@revenuecat/purchases-js 1.22.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Purchases.es.js +99 -99
- package/dist/Purchases.umd.js +58 -58
- package/package.json +2 -2
package/dist/Purchases.es.js
CHANGED
|
@@ -7645,10 +7645,10 @@ function Ng(e) {
|
|
|
7645
7645
|
function Og() {
|
|
7646
7646
|
return Ve(Fu) ?? vn(!1);
|
|
7647
7647
|
}
|
|
7648
|
-
var Lg = /* @__PURE__ */ U('<div class="option-wrapper svelte-
|
|
7648
|
+
var Lg = /* @__PURE__ */ U('<div class="option-wrapper svelte-19jisow"><!></div>');
|
|
7649
7649
|
const Bg = {
|
|
7650
|
-
hash: "svelte-
|
|
7651
|
-
code: ".option-wrapper.svelte-
|
|
7650
|
+
hash: "svelte-19jisow",
|
|
7651
|
+
code: ".option-wrapper.svelte-19jisow {display:contents;}"
|
|
7652
7652
|
};
|
|
7653
7653
|
function Ug(e, r) {
|
|
7654
7654
|
te(r, !0), oe(e, Bg);
|
|
@@ -9201,10 +9201,10 @@ function df() {
|
|
|
9201
9201
|
}
|
|
9202
9202
|
var pf = df();
|
|
9203
9203
|
const _f = /* @__PURE__ */ Vg(pf);
|
|
9204
|
-
var gf = /* @__PURE__ */ U('<div class="qr-wrapper svelte-
|
|
9204
|
+
var gf = /* @__PURE__ */ U('<div class="qr-wrapper svelte-1il5mbc"><img alt="Redemption QR Code" class="qr-code svelte-1il5mbc"/></div>');
|
|
9205
9205
|
const ff = {
|
|
9206
|
-
hash: "svelte-
|
|
9207
|
-
code: ".qr-wrapper.svelte-
|
|
9206
|
+
hash: "svelte-1il5mbc",
|
|
9207
|
+
code: ".qr-wrapper.svelte-1il5mbc {display:flex;justify-content:center;align-items:center;align-self:center;width:fit-content;margin:0 auto;background-color:#ffffff;border-radius:8px;padding:16px;}.qr-code.svelte-1il5mbc {display:block;width:128px;height:128px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;}"
|
|
9208
9208
|
};
|
|
9209
9209
|
function mf(e, r) {
|
|
9210
9210
|
te(r, !0), oe(e, ff);
|
|
@@ -9655,10 +9655,10 @@ function to(e) {
|
|
|
9655
9655
|
const r = window.getComputedStyle(e);
|
|
9656
9656
|
return new WebKitCSSMatrix(r.transform).m41;
|
|
9657
9657
|
}
|
|
9658
|
-
var Wf = /* @__PURE__ */ U('<div class="page svelte-
|
|
9658
|
+
var Wf = /* @__PURE__ */ U('<div class="page svelte-1cxmtou" role="group" aria-roledescription="slide"><!></div>');
|
|
9659
9659
|
const Yf = {
|
|
9660
|
-
hash: "svelte-
|
|
9661
|
-
code: "div.svelte-
|
|
9660
|
+
hash: "svelte-1cxmtou",
|
|
9661
|
+
code: "div.svelte-1cxmtou {flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;}"
|
|
9662
9662
|
};
|
|
9663
9663
|
function xi(e, r) {
|
|
9664
9664
|
oe(e, Yf);
|
|
@@ -9668,10 +9668,10 @@ function xi(e, r) {
|
|
|
9668
9668
|
ae(n, "aria-label", `Slide ${r.index + 1} of ${r.pages}`), ae(n, "aria-current", r.selected), ae(n, "aria-hidden", t());
|
|
9669
9669
|
}), T(e, n);
|
|
9670
9670
|
}
|
|
9671
|
-
var Gf = /* @__PURE__ */ U("<div></div>"), $f = /* @__PURE__ */ U('<div class="control svelte-
|
|
9671
|
+
var Gf = /* @__PURE__ */ U("<div></div>"), $f = /* @__PURE__ */ U('<div class="control svelte-1t68hwt"></div>');
|
|
9672
9672
|
const Kf = {
|
|
9673
|
-
hash: "svelte-
|
|
9674
|
-
code: ".control.svelte-
|
|
9673
|
+
hash: "svelte-1t68hwt",
|
|
9674
|
+
code: ".control.svelte-1t68hwt {align-self:center;display:flex;flex-direction:row;align-items:center;justify-content:center;}"
|
|
9675
9675
|
};
|
|
9676
9676
|
function Xf(e, r) {
|
|
9677
9677
|
te(r, !0), oe(e, Kf);
|
|
@@ -9704,10 +9704,10 @@ function Xf(e, r) {
|
|
|
9704
9704
|
V(() => be(m, y === r.selected ? i(p) : i(d))), T(f, m);
|
|
9705
9705
|
}), V(() => be(_, i(g))), T(e, _), ne();
|
|
9706
9706
|
}
|
|
9707
|
-
var Zf = /* @__PURE__ */ U('<div class="carousel svelte-
|
|
9707
|
+
var Zf = /* @__PURE__ */ U('<div class="carousel svelte-1pfgqxn"><div class="slider svelte-1pfgqxn" role="region" aria-label="Feature carousel" aria-roledescription="carousel" aria-live="polite"><!> <!> <!></div> <!></div>');
|
|
9708
9708
|
const Jf = {
|
|
9709
|
-
hash: "svelte-
|
|
9710
|
-
code: ".carousel.svelte-
|
|
9709
|
+
hash: "svelte-1pfgqxn",
|
|
9710
|
+
code: ".carousel.svelte-1pfgqxn {max-width:100%;display:flex;flex-direction:column;overflow:hidden;}.slider.svelte-1pfgqxn {display:flex;flex-direction:row;flex-wrap:nowrap;transition-property:transform;transition-duration:500ms;transition-timing-function:ease-in-out;transition-delay:2500ms;transform:translateX(0);cursor:grab;&:active {cursor:grabbing;user-select:none;}}"
|
|
9711
9711
|
};
|
|
9712
9712
|
function Qf(e, r) {
|
|
9713
9713
|
te(r, !0), oe(e, Jf);
|
|
@@ -9961,10 +9961,10 @@ function nm(e, r) {
|
|
|
9961
9961
|
n(r.tab_id, r.tab_index);
|
|
9962
9962
|
} })), ne();
|
|
9963
9963
|
}
|
|
9964
|
-
var am = /* @__PURE__ */ U('<div role="button" tabindex="0" aria-label="Toggle" class="toggle svelte-
|
|
9964
|
+
var am = /* @__PURE__ */ U('<div role="button" tabindex="0" aria-label="Toggle" class="toggle svelte-jfea2b"><div class="thumb svelte-jfea2b"></div></div>');
|
|
9965
9965
|
const om = {
|
|
9966
|
-
hash: "svelte-
|
|
9967
|
-
code: `.toggle.svelte-
|
|
9966
|
+
hash: "svelte-jfea2b",
|
|
9967
|
+
code: `.toggle.svelte-jfea2b {appearance:none;--height: 31px;position:relative;width:51px;height:var(--height);border-radius:calc(var(--height) / 2);cursor:pointer;user-select:none;transition:background-color 300ms ease;}.thumb.svelte-jfea2b {--size: 27px;position:absolute;top:2px;width:var(--size);height:var(--size);border-radius:50%;box-shadow:0 1px 3px rgba(0, 0, 0, 0.2),
|
|
9968
9968
|
0 1px 2px rgba(0, 0, 0, 0.12);transition:left 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
9969
9969
|
background-color 300ms ease;}`
|
|
9970
9970
|
};
|
|
@@ -10142,8 +10142,8 @@ function _m(e, r) {
|
|
|
10142
10142
|
}
|
|
10143
10143
|
var gm = /* @__PURE__ */ U("<div><!></div>"), fm = /* @__PURE__ */ U("<div><!></div>"), mm = /* @__PURE__ */ U('<div style="position: relative; width: 100%; height: 100%;"></div>'), hm = /* @__PURE__ */ U("<!> <!> <!>", 1);
|
|
10144
10144
|
const ym = {
|
|
10145
|
-
hash: "svelte-
|
|
10146
|
-
code: '.stack.svelte-
|
|
10145
|
+
hash: "svelte-1v53j4l",
|
|
10146
|
+
code: '.stack.svelte-1v53j4l {appearance:none;position:relative;&[role="button"] {cursor:pointer;}&::before {content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--overlay);}}'
|
|
10147
10147
|
};
|
|
10148
10148
|
function Ar(e, r) {
|
|
10149
10149
|
te(r, !0), oe(e, ym);
|
|
@@ -10194,7 +10194,7 @@ function Ar(e, r) {
|
|
|
10194
10194
|
void 0,
|
|
10195
10195
|
void 0,
|
|
10196
10196
|
void 0,
|
|
10197
|
-
"svelte-
|
|
10197
|
+
"svelte-1v53j4l"
|
|
10198
10198
|
);
|
|
10199
10199
|
var N = hm(), G = Q(N);
|
|
10200
10200
|
{
|
|
@@ -10292,10 +10292,10 @@ function vm(e, r) {
|
|
|
10292
10292
|
const d = /* @__PURE__ */ h(() => i(s) && a ? a : n);
|
|
10293
10293
|
Ar(e, Xe(() => i(d))), ne();
|
|
10294
10294
|
}
|
|
10295
|
-
var bm = /* @__PURE__ */ U('<div class="svelte-
|
|
10295
|
+
var bm = /* @__PURE__ */ U('<div class="svelte-19m2lyh"><!></div>');
|
|
10296
10296
|
const km = {
|
|
10297
|
-
hash: "svelte-
|
|
10298
|
-
code: "div.svelte-
|
|
10297
|
+
hash: "svelte-19m2lyh",
|
|
10298
|
+
code: "div.svelte-19m2lyh {position:sticky;bottom:0;width:100%;z-index:1000;display:flex;flex-direction:row;justify-content:center;}"
|
|
10299
10299
|
};
|
|
10300
10300
|
function Xu(e, r) {
|
|
10301
10301
|
oe(e, km);
|
|
@@ -10423,10 +10423,10 @@ function Zu(e, r) {
|
|
|
10423
10423
|
}
|
|
10424
10424
|
T(e, t), ne();
|
|
10425
10425
|
}
|
|
10426
|
-
var Fm = /* @__PURE__ */ nr('<use fill="transparent"></use>'), zm = /* @__PURE__ */ nr('<rect x="0" y="0" height="100%" width="100%"></rect>'), Mm = /* @__PURE__ */ nr('<use fill="none"></use>'), jm = /* @__PURE__ */ U('<div><svg width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!></defs><!><g><foreignObject x="0" y="0" width="100%" height="100%"><img alt="" class="svelte-
|
|
10426
|
+
var Fm = /* @__PURE__ */ nr('<use fill="transparent"></use>'), zm = /* @__PURE__ */ nr('<rect x="0" y="0" height="100%" width="100%"></rect>'), Mm = /* @__PURE__ */ nr('<use fill="none"></use>'), jm = /* @__PURE__ */ U('<div><svg width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!></defs><!><g><foreignObject x="0" y="0" width="100%" height="100%"><img alt="" class="svelte-1iah3jt"/></foreignObject><!><!></g></svg></div>');
|
|
10427
10427
|
const Nm = {
|
|
10428
|
-
hash: "svelte-
|
|
10429
|
-
code: "img.svelte-
|
|
10428
|
+
hash: "svelte-1iah3jt",
|
|
10429
|
+
code: "img.svelte-1iah3jt {width:100%;height:100%;object-fit:contain;object-position:center;}"
|
|
10430
10430
|
};
|
|
10431
10431
|
function Om(e, r) {
|
|
10432
10432
|
te(r, !0), oe(e, Nm);
|
|
@@ -10563,10 +10563,10 @@ function Lm(e, r) {
|
|
|
10563
10563
|
});
|
|
10564
10564
|
Wu(_), Ar(e, Xe(() => r.stack, { onclick: u })), ne(), o();
|
|
10565
10565
|
}
|
|
10566
|
-
var Bm = /* @__PURE__ */ U('<div class="backdrop svelte-
|
|
10566
|
+
var Bm = /* @__PURE__ */ U('<div class="backdrop svelte-eghi46" role="presentation" tabindex="-1" aria-hidden="true"><div role="dialog" aria-modal="true"><!></div></div>');
|
|
10567
10567
|
const Um = {
|
|
10568
|
-
hash: "svelte-
|
|
10569
|
-
code: ".backdrop.svelte-
|
|
10568
|
+
hash: "svelte-eghi46",
|
|
10569
|
+
code: ".backdrop.svelte-eghi46 {position:absolute;inset:0 0 0 0;width:100%;height:100%;background-color:#0000003f;display:flex;flex-direction:column;}.sheet.svelte-eghi46 {position:absolute;inset:auto 0 0 0;transition-property:transform;transition-duration:225ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:translateY(100%);&.visible {transform:translateY(0);}}"
|
|
10570
10570
|
};
|
|
10571
10571
|
function Rm(e, r) {
|
|
10572
10572
|
te(r, !0), oe(e, Um);
|
|
@@ -10597,35 +10597,35 @@ function Rm(e, r) {
|
|
|
10597
10597
|
D.__click = C, D.__keydown = E;
|
|
10598
10598
|
var I = M(D), j = M(I);
|
|
10599
10599
|
Ar(j, Xe(() => s)), Bo(I, (F) => m = F, () => m), V(() => {
|
|
10600
|
-
be(D, i(f)), tr(I, 1, ws(i(x)), "svelte-
|
|
10600
|
+
be(D, i(f)), tr(I, 1, ws(i(x)), "svelte-eghi46"), be(I, i(k));
|
|
10601
10601
|
}), Ur("transitionend", I, v), T(e, D), ne(), a();
|
|
10602
10602
|
}
|
|
10603
10603
|
Ga(["click", "keydown"]);
|
|
10604
10604
|
var Vm = /* @__PURE__ */ U("<div><!> <!></div> <!>", 1);
|
|
10605
10605
|
const Hm = {
|
|
10606
|
-
hash: "svelte-
|
|
10607
|
-
code: `.paywall.svelte-
|
|
10608
|
-
|
|
10609
|
-
*::
|
|
10610
|
-
|
|
10611
|
-
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10606
|
+
hash: "svelte-8mv7c5",
|
|
10607
|
+
code: `.paywall.svelte-8mv7c5 {position:relative;display:flex;flex-direction:column;align-items:stretch;height:100%;transition-property:filter, transform;transition-duration:0.1s;transition-timing-function:ease-in-out;transform-origin:center;&.blur {filter:blur(10px) brightness(0.8);transform:scale(1.045);}& > *:first-child {flex-grow:1;overflow-y:auto;}}
|
|
10608
|
+
/* Scoped reset - same as original but only affects .paywall descendants */.paywall *,
|
|
10609
|
+
.paywall *::before,
|
|
10610
|
+
.paywall *::after {box-sizing:border-box;margin:0;padding:0;font-family:sans-serif;}.paywall {line-height:1.5;-webkit-font-smoothing:antialiased;}.paywall img,
|
|
10611
|
+
.paywall picture,
|
|
10612
|
+
.paywall video,
|
|
10613
|
+
.paywall canvas,
|
|
10614
|
+
.paywall svg {display:block;max-width:100%;}.paywall input,
|
|
10615
|
+
.paywall button,
|
|
10616
|
+
.paywall textarea,
|
|
10617
|
+
.paywall select {font:inherit;}.paywall p,
|
|
10618
|
+
.paywall h1,
|
|
10619
|
+
.paywall h2,
|
|
10620
|
+
.paywall h3,
|
|
10621
|
+
.paywall h4,
|
|
10622
|
+
.paywall h5,
|
|
10623
|
+
.paywall h6 {overflow-wrap:break-word;}.paywall p {text-wrap:pretty;}.paywall h1,
|
|
10624
|
+
.paywall h2,
|
|
10625
|
+
.paywall h3,
|
|
10626
|
+
.paywall h4,
|
|
10627
|
+
.paywall h5,
|
|
10628
|
+
.paywall h6 {text-wrap:balance;}`
|
|
10629
10629
|
};
|
|
10630
10630
|
function Wm(e, r) {
|
|
10631
10631
|
te(r, !0), oe(e, Hm);
|
|
@@ -10727,27 +10727,27 @@ function Wm(e, r) {
|
|
|
10727
10727
|
});
|
|
10728
10728
|
}
|
|
10729
10729
|
V(() => {
|
|
10730
|
-
tr(q, 1, ws(i(x)), "svelte-
|
|
10730
|
+
tr(q, 1, ws(i(x)), "svelte-8mv7c5"), be(q, i(E));
|
|
10731
10731
|
}), T(P, S);
|
|
10732
10732
|
}
|
|
10733
10733
|
), T(e, j), ne(), a();
|
|
10734
10734
|
}
|
|
10735
|
-
var Ym = /* @__PURE__ */ U('<div class="svelte-
|
|
10735
|
+
var Ym = /* @__PURE__ */ U('<div class="svelte-1mlwczg"><div style="flex-grow: 1; width:100%;" class="svelte-1mlwczg"></div></div>'), Gm = /* @__PURE__ */ U('<div class="wallet-skeleton svelte-1mlwczg" aria-hidden="true"> </div>'), $m = /* @__PURE__ */ U("<!> <!>", 1);
|
|
10736
10736
|
const Km = {
|
|
10737
|
-
hash: "svelte-
|
|
10738
|
-
code: `.wallet-skeleton.svelte-
|
|
10737
|
+
hash: "svelte-1mlwczg",
|
|
10738
|
+
code: `.wallet-skeleton.svelte-1mlwczg {position:relative;overflow:hidden;border-radius:9999px;background-color:rgba(128, 128, 128, 0.16);backdrop-filter:blur(18px);min-height:48px;content:" ";flex-grow:1;width:100%;}.wallet-skeleton.svelte-1mlwczg::before {content:"";position:absolute;inset:0;background:linear-gradient(
|
|
10739
10739
|
135deg,
|
|
10740
10740
|
rgba(255, 255, 255, 0.2),
|
|
10741
10741
|
rgba(255, 255, 255, 0.01)
|
|
10742
|
-
);opacity:0.9;mix-blend-mode:screen;}.wallet-skeleton.svelte-
|
|
10742
|
+
);opacity:0.9;mix-blend-mode:screen;}.wallet-skeleton.svelte-1mlwczg::after {content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(
|
|
10743
10743
|
120deg,
|
|
10744
10744
|
transparent 0%,
|
|
10745
10745
|
rgba(255, 255, 255, 0.6) 20%,
|
|
10746
10746
|
transparent 40%
|
|
10747
10747
|
);opacity:0.8;
|
|
10748
|
-
animation: svelte-
|
|
10748
|
+
animation: svelte-1mlwczg-wallet-skeleton-shimmer 1.4s ease-in-out infinite;}
|
|
10749
10749
|
|
|
10750
|
-
@keyframes svelte-
|
|
10750
|
+
@keyframes svelte-1mlwczg-wallet-skeleton-shimmer {
|
|
10751
10751
|
100% {
|
|
10752
10752
|
transform: translateX(100%);
|
|
10753
10753
|
}
|
|
@@ -10953,11 +10953,11 @@ function nh(e, r) {
|
|
|
10953
10953
|
}
|
|
10954
10954
|
T(e, b), ne(), a();
|
|
10955
10955
|
}
|
|
10956
|
-
var ah = /* @__PURE__ */ nr('<use fill="transparent"></use>'), oh = /* @__PURE__ */ U('<img alt="" class="svelte-
|
|
10956
|
+
var ah = /* @__PURE__ */ nr('<use fill="transparent"></use>'), oh = /* @__PURE__ */ U('<img alt="" class="svelte-1w3c2m5"/>'), ih = /* @__PURE__ */ U('<video playsinline="" class="svelte-1w3c2m5"><track kind="captions"/></video>', 2), sh = /* @__PURE__ */ nr('<rect x="0" y="0" height="100%" width="100%"></rect>'), lh = /* @__PURE__ */ nr('<use fill="none"></use>'), ch = /* @__PURE__ */ U('<div><svg width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!></defs><!><g><foreignObject x="0" y="0" width="100%" height="100%"><!></foreignObject><!><!></g></svg></div>');
|
|
10957
10957
|
const uh = {
|
|
10958
|
-
hash: "svelte-
|
|
10959
|
-
code: `video.svelte-
|
|
10960
|
-
img.svelte-
|
|
10958
|
+
hash: "svelte-1w3c2m5",
|
|
10959
|
+
code: `video.svelte-1w3c2m5,
|
|
10960
|
+
img.svelte-1w3c2m5 {width:100%;height:100%;object-fit:contain;object-position:center;}`
|
|
10961
10961
|
};
|
|
10962
10962
|
function dh(e, r) {
|
|
10963
10963
|
te(r, !0), oe(e, uh);
|
|
@@ -11145,55 +11145,55 @@ function dh(e, r) {
|
|
|
11145
11145
|
}
|
|
11146
11146
|
var ph = /* @__PURE__ */ U("<span><!></span>");
|
|
11147
11147
|
const _h = {
|
|
11148
|
-
hash: "svelte-
|
|
11148
|
+
hash: "svelte-hevbos",
|
|
11149
11149
|
code: `
|
|
11150
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-
|
|
11150
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-hevbos {font:var(--rc-text-heading2xl-mobile);}
|
|
11151
11151
|
|
|
11152
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-
|
|
11152
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-hevbos {font:var(--rc-text-headingXl-mobile);}
|
|
11153
11153
|
|
|
11154
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-
|
|
11154
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-hevbos {font:var(--rc-text-headingLg-mobile);}
|
|
11155
11155
|
|
|
11156
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-
|
|
11156
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-hevbos {font:var(--rc-text-headingMd-mobile);}
|
|
11157
11157
|
|
|
11158
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-
|
|
11158
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-hevbos {font:var(--rc-text-bodyBase-mobile);}
|
|
11159
11159
|
|
|
11160
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-
|
|
11160
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-hevbos {font:var(--rc-text-bodySmall-mobile);}
|
|
11161
11161
|
|
|
11162
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-
|
|
11162
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-hevbos {font:var(--rc-text-labelButton-mobile);}
|
|
11163
11163
|
|
|
11164
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-
|
|
11164
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-hevbos {font:var(--rc-text-labelDefault-mobile);}
|
|
11165
11165
|
|
|
11166
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-
|
|
11166
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-hevbos {font:var(--rc-text-captionDefault-mobile);}
|
|
11167
11167
|
|
|
11168
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-
|
|
11168
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-hevbos {font:var(--rc-text-captionLink-mobile);}
|
|
11169
11169
|
|
|
11170
11170
|
@container layout-query-container (width >= 768px) {
|
|
11171
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-
|
|
11171
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-hevbos {font:var(--rc-text-heading2xl-desktop);}
|
|
11172
11172
|
|
|
11173
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-
|
|
11173
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-hevbos {font:var(--rc-text-headingXl-desktop);}
|
|
11174
11174
|
|
|
11175
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-
|
|
11175
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-hevbos {font:var(--rc-text-headingLg-desktop);}
|
|
11176
11176
|
|
|
11177
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-
|
|
11177
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-hevbos {font:var(--rc-text-headingMd-desktop);}
|
|
11178
11178
|
|
|
11179
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-
|
|
11179
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-hevbos {font:var(--rc-text-bodyBase-desktop);}
|
|
11180
11180
|
|
|
11181
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-
|
|
11181
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-hevbos {font:var(--rc-text-bodySmall-desktop);}
|
|
11182
11182
|
|
|
11183
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-
|
|
11183
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-hevbos {font:var(--rc-text-labelButton-desktop);}
|
|
11184
11184
|
|
|
11185
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-
|
|
11185
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-hevbos {font:var(--rc-text-labelDefault-desktop);}
|
|
11186
11186
|
|
|
11187
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-
|
|
11187
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-hevbos {font:var(--rc-text-captionDefault-desktop);}
|
|
11188
11188
|
|
|
11189
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-
|
|
11189
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-hevbos {font:var(--rc-text-captionLink-desktop);}
|
|
11190
11190
|
}`
|
|
11191
11191
|
};
|
|
11192
11192
|
function gh(e, r) {
|
|
11193
11193
|
oe(e, _h);
|
|
11194
11194
|
const t = K(r, "size", 3, "body-base");
|
|
11195
11195
|
var n = ph(), a = M(n);
|
|
11196
|
-
Ze(a, () => r.children ?? Te), V(() => tr(n, 1, `rcb-typography rcb-typography-${t() ?? ""}`, "svelte-
|
|
11196
|
+
Ze(a, () => r.children ?? Te), V(() => tr(n, 1, `rcb-typography rcb-typography-${t() ?? ""}`, "svelte-hevbos")), T(e, n);
|
|
11197
11197
|
}
|
|
11198
11198
|
const fh = {
|
|
11199
11199
|
outerPadding: {
|
|
@@ -11573,13 +11573,13 @@ let zh = class {
|
|
|
11573
11573
|
return Fh("spacing", this.spacing);
|
|
11574
11574
|
}
|
|
11575
11575
|
};
|
|
11576
|
-
var Mh = /* @__PURE__ */ U('<div class="rcb-processing svelte-
|
|
11576
|
+
var Mh = /* @__PURE__ */ U('<div class="rcb-processing svelte-1422nx8"></div>');
|
|
11577
11577
|
const jh = {
|
|
11578
|
-
hash: "svelte-
|
|
11579
|
-
code: `.rcb-processing.svelte-
|
|
11580
|
-
animation: svelte-
|
|
11578
|
+
hash: "svelte-1422nx8",
|
|
11579
|
+
code: `.rcb-processing.svelte-1422nx8 {width:var(--width, 12px);aspect-ratio:1;border-radius:50%;
|
|
11580
|
+
animation: svelte-1422nx8-l5 1.5s infinite linear;}
|
|
11581
11581
|
|
|
11582
|
-
@keyframes svelte-
|
|
11582
|
+
@keyframes svelte-1422nx8-l5 {
|
|
11583
11583
|
0% {
|
|
11584
11584
|
box-shadow:
|
|
11585
11585
|
var(--shadow-offset) 0 #fff2,
|
|
@@ -11625,14 +11625,14 @@ function Nh(e, r) {
|
|
|
11625
11625
|
}
|
|
11626
11626
|
var Oh = /* @__PURE__ */ U("<button><!></button>");
|
|
11627
11627
|
const Lh = {
|
|
11628
|
-
hash: "svelte-
|
|
11629
|
-
code: `button.svelte-
|
|
11628
|
+
hash: "svelte-1hiu80c",
|
|
11629
|
+
code: `button.svelte-1hiu80c {border:none;border-radius:var(--rc-shape-input-button-border-radius);cursor:pointer;height:var(--rc-spacing-inputHeight-mobile);color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent;transition:background-color 0.15s ease-in-out;user-select:none;}
|
|
11630
11630
|
|
|
11631
|
-
@container layout-query-container (width >= 768px) {button.svelte-
|
|
11631
|
+
@container layout-query-container (width >= 768px) {button.svelte-1hiu80c {height:var(--rc-spacing-inputHeight-desktop);}
|
|
11632
11632
|
}
|
|
11633
11633
|
|
|
11634
|
-
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-
|
|
11635
|
-
button.svelte-
|
|
11634
|
+
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-1hiu80c:focus-visible {outline:2px solid var(--rc-color-focus);}button.intent-primary.svelte-1hiu80c {background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);}button.svelte-1hiu80c:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);outline:none;}button.intent-primary.svelte-1hiu80c:not(:disabled):hover {background-color:var(--rc-color-primary-hover);}button.intent-primary.svelte-1hiu80c:not(:disabled):active,
|
|
11635
|
+
button.svelte-1hiu80c:active {background-color:var(--rc-color-primary-pressed);outline:none;}button.intent-primary.svelte-1hiu80c:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);}`
|
|
11636
11636
|
};
|
|
11637
11637
|
function td(e, r) {
|
|
11638
11638
|
te(r, !0), oe(e, Lh);
|
|
@@ -11667,7 +11667,7 @@ function td(e, r) {
|
|
|
11667
11667
|
});
|
|
11668
11668
|
}
|
|
11669
11669
|
V(() => {
|
|
11670
|
-
tr(p, 1, `intent-${t()}`, "svelte-
|
|
11670
|
+
tr(p, 1, `intent-${t()}`, "svelte-1hiu80c"), p.disabled = n(), ae(p, "data-testid", r.testId), ae(p, "type", r.type), be(p, i(d));
|
|
11671
11671
|
}), T(e, p), ne();
|
|
11672
11672
|
}
|
|
11673
11673
|
Ga(["click"]);
|
|
@@ -17179,7 +17179,7 @@ function vw(e) {
|
|
|
17179
17179
|
}
|
|
17180
17180
|
return r;
|
|
17181
17181
|
}
|
|
17182
|
-
const zd = "1.22.
|
|
17182
|
+
const zd = "1.22.1", bw = "https://api.revenuecat.com", kw = "https://e.revenue.cat";
|
|
17183
17183
|
var So;
|
|
17184
17184
|
(function(e) {
|
|
17185
17185
|
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";
|
package/dist/Purchases.umd.js
CHANGED
|
@@ -4,101 +4,101 @@
|
|
|
4
4
|
<path d="M87.6668 41.504L82.4968 36.334L62.0002 56.8307L41.5035 36.334L36.3335 41.504L56.8302 62.0006L36.3335 82.4973L41.5035 87.6673L62.0002 67.1706L82.4968 87.6673L87.6668 82.4973L67.1702 62.0006L87.6668 41.504Z"
|
|
5
5
|
/>
|
|
6
6
|
</svg>
|
|
7
|
-
`;var Sg=U('<div style="color:var(--rc-color-primary);"><!></div>');function Cc(e){var r=Sg(),t=M(r);ln(t,()=>Eg),T(e,r)}const Ac=Symbol("paywall");function Tg(e){vr(Ac,e)}function ua(){const e=We(Ac);if(e===void 0)throw new Error("Paywall context not found");return e}const qc=Symbol("selected");function jo(e){vr(qc,e)}function Xr(){return We(qc)??xn(!1)}function Ig({stack:e,sticky_footer:r}){const t=a=>{if(a.type==="package"&&a.is_selected_by_default)return a;if("components"in a&&Array.isArray(a.components))for(const o of a.components){const s=t(o);if(s!==void 0)return s}if("stack"in a){const o=t(a.stack);if(o!==void 0)return o}},n=t(e);if(n!==void 0)return n==null?void 0:n.package_id;if(r!=null){const a=t(r);if(a!==void 0)return a==null?void 0:a.package_id}}const Zr=(e,r)=>{if(!e)return{};const t=r==null?void 0:r.find(n=>n.conditions.find(a=>a.type==="selected"));return(t==null?void 0:t.properties)??{}},Dg=(e,r)=>{if(!e)return{};const t=r==null?void 0:r.find(n=>n.conditions.find(a=>a.type==="hover"));return(t==null?void 0:t.properties)??{}},Cg=(e,r)=>{if(!e)return{};const t=r==null?void 0:r.find(n=>n.conditions.find(a=>a.type==="intro_offer"||a.type==="introductory_offer"));return(t==null?void 0:t.properties)??{}};function Ag(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).action),{onButtonAction:u,hideBackButtons:d}=ua(),p=()=>{var v;const f=(v=r.triggers)==null?void 0:v.on_press;u(r.action,f)},_=h(()=>{switch(i(c).type){case"workflow":return!0;case"restore_purchases":return!1;case"navigate_back":return!d;case"navigate_to":return i(c).destination!=="web_paywall_link";default:return!0}}),g=h(()=>({visibility:i(_)?"visible":"hidden"}));Lr(e,rr(()=>r.stack,{onclick:p,get style(){return i(g)}})),ae(),a()}const Fc=Symbol("inputChoice");function zc(e,r){const t=Xt(new Set);return{fieldId:e,mode:r,selectedOptionIds:t,selectOption:a=>{t.update(o=>{if(r==="single")return new Set([a]);{const s=new Set(o);return s.has(a)?s.delete(a):s.add(a),s}})}}}function Mc(e){vr(Fc,e)}function qg(){return We(Fc)}function Fg(e,r){ne(r,!0);const t=gr(r,["$$slots","$$events","$$legacy"]),{stack:n,field_id:a}=t,o=zc(a,"multiple");Mc(o),Ga(e,{get nodeData(){return n}}),ae()}const jc=Symbol("hover");function zg(e){vr(jc,e)}function Mg(){return We(jc)??xn(!1)}var jg=U('<div class="option-wrapper svelte-yn1862"><!></div>');const Og={hash:"svelte-yn1862",code:".option-wrapper.svelte-yn1862 {display:contents;}"};function Ng(e,r){ne(r,!0),oe(e,Og);const t=gr(r,["$$slots","$$events","$$legacy"]),{stack:n,option_id:a}=t,{onButtonAction:o}=ua(),s=qg(),l=s?mt(s.selectedOptionIds,f=>f.has(a)):xn(!1);jo(l);const c=Xt(!1);zg(c);const u=()=>c.set(!0),d=()=>c.set(!1),p=()=>{var v;const f=(v=r.triggers)==null?void 0:v.on_press;o({type:"workflow"},f),s==null||s.selectOption(a)};var _=jg(),g=M(_);Lr(g,rr(()=>n,{onclick:p})),$r("mouseenter",_,u),$r("mouseleave",_,d),T(e,_),ae()}function Lg(e,r){ne(r,!0);const t=gr(r,["$$slots","$$events","$$legacy"]),{stack:n,field_id:a}=t,o=zc(a,"single");Mc(o),Ga(e,{get nodeData(){return n}}),ae()}const Oc=Symbol("variables");function Yi(e){vr(Oc,e)}function Oo(){const e=We(Oc);if(e===void 0)throw new Error("Variables context not found");return e}function Bg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var da={},Gi,Nc;function Ug(){return Nc||(Nc=1,Gi=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Gi}var $i={},un={},Lc;function En(){if(Lc)return un;Lc=1;let e;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return un.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},un.getSymbolTotalCodewords=function(n){return r[n]},un.getBCHDigit=function(t){let n=0;for(;t!==0;)n++,t>>>=1;return n},un.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},un.isKanjiModeEnabled=function(){return typeof e<"u"},un.toSJIS=function(n){return e(n)},un}var Ki={},Bc;function Xi(){return Bc||(Bc=1,function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function r(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,a){if(e.isValid(n))return n;try{return r(n)}catch{return a}}}(Ki)),Ki}var Zi,Uc;function Rg(){if(Uc)return Zi;Uc=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(r){const t=Math.floor(r/8);return(this.buffer[t]>>>7-r%8&1)===1},put:function(r,t){for(let n=0;n<t;n++)this.putBit((r>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Zi=e,Zi}var Ji,Rc;function Vg(){if(Rc)return Ji;Rc=1;function e(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return e.prototype.set=function(r,t,n,a){const o=r*this.size+t;this.data[o]=n,a&&(this.reservedBit[o]=!0)},e.prototype.get=function(r,t){return this.data[r*this.size+t]},e.prototype.xor=function(r,t,n){this.data[r*this.size+t]^=n},e.prototype.isReserved=function(r,t){return this.reservedBit[r*this.size+t]},Ji=e,Ji}var Qi={},Vc;function Hg(){return Vc||(Vc=1,function(e){const r=En().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const a=Math.floor(n/7)+2,o=r(n),s=o===145?26:Math.ceil((o-13)/(2*a-2))*2,l=[o-7];for(let c=1;c<a-1;c++)l[c]=l[c-1]-s;return l.push(6),l.reverse()},e.getPositions=function(n){const a=[],o=e.getRowColCoords(n),s=o.length;for(let l=0;l<s;l++)for(let c=0;c<s;c++)l===0&&c===0||l===0&&c===s-1||l===s-1&&c===0||a.push([o[l],o[c]]);return a}}(Qi)),Qi}var es={},Hc;function Wg(){if(Hc)return es;Hc=1;const e=En().getSymbolSize,r=7;return es.getPositions=function(n){const a=e(n);return[[0,0],[a-r,0],[0,a-r]]},es}var rs={},Wc;function Yg(){return Wc||(Wc=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const o=a.size;let s=0,l=0,c=0,u=null,d=null;for(let p=0;p<o;p++){l=c=0,u=d=null;for(let _=0;_<o;_++){let g=a.get(p,_);g===u?l++:(l>=5&&(s+=r.N1+(l-5)),u=g,l=1),g=a.get(_,p),g===d?c++:(c>=5&&(s+=r.N1+(c-5)),d=g,c=1)}l>=5&&(s+=r.N1+(l-5)),c>=5&&(s+=r.N1+(c-5))}return s},e.getPenaltyN2=function(a){const o=a.size;let s=0;for(let l=0;l<o-1;l++)for(let c=0;c<o-1;c++){const u=a.get(l,c)+a.get(l,c+1)+a.get(l+1,c)+a.get(l+1,c+1);(u===4||u===0)&&s++}return s*r.N2},e.getPenaltyN3=function(a){const o=a.size;let s=0,l=0,c=0;for(let u=0;u<o;u++){l=c=0;for(let d=0;d<o;d++)l=l<<1&2047|a.get(u,d),d>=10&&(l===1488||l===93)&&s++,c=c<<1&2047|a.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*r.N3},e.getPenaltyN4=function(a){let o=0;const s=a.data.length;for(let c=0;c<s;c++)o+=a.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*r.N4};function t(n,a,o){switch(n){case e.Patterns.PATTERN000:return(a+o)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(a+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return a*o%2+a*o%3===0;case e.Patterns.PATTERN110:return(a*o%2+a*o%3)%2===0;case e.Patterns.PATTERN111:return(a*o%3+(a+o)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(a,o){const s=o.size;for(let l=0;l<s;l++)for(let c=0;c<s;c++)o.isReserved(c,l)||o.xor(c,l,t(a,c,l))},e.getBestMask=function(a,o){const s=Object.keys(e.Patterns).length;let l=0,c=1/0;for(let u=0;u<s;u++){o(u),e.applyMask(u,a);const d=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(u,a),d<c&&(c=d,l=u)}return l}}(rs)),rs}var No={},Yc;function Gc(){if(Yc)return No;Yc=1;const e=Xi(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],t=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return No.getBlocksCount=function(a,o){switch(o){case e.L:return r[(a-1)*4+0];case e.M:return r[(a-1)*4+1];case e.Q:return r[(a-1)*4+2];case e.H:return r[(a-1)*4+3];default:return}},No.getTotalCodewordsCount=function(a,o){switch(o){case e.L:return t[(a-1)*4+0];case e.M:return t[(a-1)*4+1];case e.Q:return t[(a-1)*4+2];case e.H:return t[(a-1)*4+3];default:return}},No}var ts={},Ya={},$c;function Gg(){if($c)return Ya;$c=1;const e=new Uint8Array(512),r=new Uint8Array(256);return function(){let n=1;for(let a=0;a<255;a++)e[a]=n,r[n]=a,n<<=1,n&256&&(n^=285);for(let a=255;a<512;a++)e[a]=e[a-255]}(),Ya.log=function(n){if(n<1)throw new Error("log("+n+")");return r[n]},Ya.exp=function(n){return e[n]},Ya.mul=function(n,a){return n===0||a===0?0:e[r[n]+r[a]]},Ya}var Kc;function $g(){return Kc||(Kc=1,function(e){const r=Gg();e.mul=function(n,a){const o=new Uint8Array(n.length+a.length-1);for(let s=0;s<n.length;s++)for(let l=0;l<a.length;l++)o[s+l]^=r.mul(n[s],a[l]);return o},e.mod=function(n,a){let o=new Uint8Array(n);for(;o.length-a.length>=0;){const s=o[0];for(let c=0;c<a.length;c++)o[c]^=r.mul(a[c],s);let l=0;for(;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},e.generateECPolynomial=function(n){let a=new Uint8Array([1]);for(let o=0;o<n;o++)a=e.mul(a,new Uint8Array([1,r.exp(o)]));return a}}(ts)),ts}var ns,Xc;function Kg(){if(Xc)return ns;Xc=1;const e=$g();function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},r.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(n.length+this.degree);a.set(n);const o=e.mod(a,this.genPoly),s=this.degree-o.length;if(s>0){const l=new Uint8Array(this.degree);return l.set(o,s),l}return o},ns=r,ns}var as={},os={},is={},Zc;function Jc(){return Zc||(Zc=1,is.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),is}var Ct={},Qc;function eu(){if(Qc)return Ct;Qc=1;const e="[0-9]+",r="[A-Z $%*+\\-./:]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
7
|
+
`;var Sg=U('<div style="color:var(--rc-color-primary);"><!></div>');function Cc(e){var r=Sg(),t=M(r);ln(t,()=>Eg),T(e,r)}const Ac=Symbol("paywall");function Tg(e){vr(Ac,e)}function ua(){const e=We(Ac);if(e===void 0)throw new Error("Paywall context not found");return e}const qc=Symbol("selected");function jo(e){vr(qc,e)}function Xr(){return We(qc)??xn(!1)}function Ig({stack:e,sticky_footer:r}){const t=a=>{if(a.type==="package"&&a.is_selected_by_default)return a;if("components"in a&&Array.isArray(a.components))for(const o of a.components){const s=t(o);if(s!==void 0)return s}if("stack"in a){const o=t(a.stack);if(o!==void 0)return o}},n=t(e);if(n!==void 0)return n==null?void 0:n.package_id;if(r!=null){const a=t(r);if(a!==void 0)return a==null?void 0:a.package_id}}const Zr=(e,r)=>{if(!e)return{};const t=r==null?void 0:r.find(n=>n.conditions.find(a=>a.type==="selected"));return(t==null?void 0:t.properties)??{}},Dg=(e,r)=>{if(!e)return{};const t=r==null?void 0:r.find(n=>n.conditions.find(a=>a.type==="hover"));return(t==null?void 0:t.properties)??{}},Cg=(e,r)=>{if(!e)return{};const t=r==null?void 0:r.find(n=>n.conditions.find(a=>a.type==="intro_offer"||a.type==="introductory_offer"));return(t==null?void 0:t.properties)??{}};function Ag(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).action),{onButtonAction:u,hideBackButtons:d}=ua(),p=()=>{var v;const f=(v=r.triggers)==null?void 0:v.on_press;u(r.action,f)},_=h(()=>{switch(i(c).type){case"workflow":return!0;case"restore_purchases":return!1;case"navigate_back":return!d;case"navigate_to":return i(c).destination!=="web_paywall_link";default:return!0}}),g=h(()=>({visibility:i(_)?"visible":"hidden"}));Lr(e,rr(()=>r.stack,{onclick:p,get style(){return i(g)}})),ae(),a()}const Fc=Symbol("inputChoice");function zc(e,r){const t=Xt(new Set);return{fieldId:e,mode:r,selectedOptionIds:t,selectOption:a=>{t.update(o=>{if(r==="single")return new Set([a]);{const s=new Set(o);return s.has(a)?s.delete(a):s.add(a),s}})}}}function Mc(e){vr(Fc,e)}function qg(){return We(Fc)}function Fg(e,r){ne(r,!0);const t=gr(r,["$$slots","$$events","$$legacy"]),{stack:n,field_id:a}=t,o=zc(a,"multiple");Mc(o),Ga(e,{get nodeData(){return n}}),ae()}const jc=Symbol("hover");function zg(e){vr(jc,e)}function Mg(){return We(jc)??xn(!1)}var jg=U('<div class="option-wrapper svelte-19jisow"><!></div>');const Og={hash:"svelte-19jisow",code:".option-wrapper.svelte-19jisow {display:contents;}"};function Ng(e,r){ne(r,!0),oe(e,Og);const t=gr(r,["$$slots","$$events","$$legacy"]),{stack:n,option_id:a}=t,{onButtonAction:o}=ua(),s=qg(),l=s?mt(s.selectedOptionIds,f=>f.has(a)):xn(!1);jo(l);const c=Xt(!1);zg(c);const u=()=>c.set(!0),d=()=>c.set(!1),p=()=>{var v;const f=(v=r.triggers)==null?void 0:v.on_press;o({type:"workflow"},f),s==null||s.selectOption(a)};var _=jg(),g=M(_);Lr(g,rr(()=>n,{onclick:p})),$r("mouseenter",_,u),$r("mouseleave",_,d),T(e,_),ae()}function Lg(e,r){ne(r,!0);const t=gr(r,["$$slots","$$events","$$legacy"]),{stack:n,field_id:a}=t,o=zc(a,"single");Mc(o),Ga(e,{get nodeData(){return n}}),ae()}const Oc=Symbol("variables");function Yi(e){vr(Oc,e)}function Oo(){const e=We(Oc);if(e===void 0)throw new Error("Variables context not found");return e}function Bg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var da={},Gi,Nc;function Ug(){return Nc||(Nc=1,Gi=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Gi}var $i={},un={},Lc;function En(){if(Lc)return un;Lc=1;let e;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return un.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},un.getSymbolTotalCodewords=function(n){return r[n]},un.getBCHDigit=function(t){let n=0;for(;t!==0;)n++,t>>>=1;return n},un.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},un.isKanjiModeEnabled=function(){return typeof e<"u"},un.toSJIS=function(n){return e(n)},un}var Ki={},Bc;function Xi(){return Bc||(Bc=1,function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function r(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,a){if(e.isValid(n))return n;try{return r(n)}catch{return a}}}(Ki)),Ki}var Zi,Uc;function Rg(){if(Uc)return Zi;Uc=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(r){const t=Math.floor(r/8);return(this.buffer[t]>>>7-r%8&1)===1},put:function(r,t){for(let n=0;n<t;n++)this.putBit((r>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),r&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Zi=e,Zi}var Ji,Rc;function Vg(){if(Rc)return Ji;Rc=1;function e(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return e.prototype.set=function(r,t,n,a){const o=r*this.size+t;this.data[o]=n,a&&(this.reservedBit[o]=!0)},e.prototype.get=function(r,t){return this.data[r*this.size+t]},e.prototype.xor=function(r,t,n){this.data[r*this.size+t]^=n},e.prototype.isReserved=function(r,t){return this.reservedBit[r*this.size+t]},Ji=e,Ji}var Qi={},Vc;function Hg(){return Vc||(Vc=1,function(e){const r=En().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const a=Math.floor(n/7)+2,o=r(n),s=o===145?26:Math.ceil((o-13)/(2*a-2))*2,l=[o-7];for(let c=1;c<a-1;c++)l[c]=l[c-1]-s;return l.push(6),l.reverse()},e.getPositions=function(n){const a=[],o=e.getRowColCoords(n),s=o.length;for(let l=0;l<s;l++)for(let c=0;c<s;c++)l===0&&c===0||l===0&&c===s-1||l===s-1&&c===0||a.push([o[l],o[c]]);return a}}(Qi)),Qi}var es={},Hc;function Wg(){if(Hc)return es;Hc=1;const e=En().getSymbolSize,r=7;return es.getPositions=function(n){const a=e(n);return[[0,0],[a-r,0],[0,a-r]]},es}var rs={},Wc;function Yg(){return Wc||(Wc=1,function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const o=a.size;let s=0,l=0,c=0,u=null,d=null;for(let p=0;p<o;p++){l=c=0,u=d=null;for(let _=0;_<o;_++){let g=a.get(p,_);g===u?l++:(l>=5&&(s+=r.N1+(l-5)),u=g,l=1),g=a.get(_,p),g===d?c++:(c>=5&&(s+=r.N1+(c-5)),d=g,c=1)}l>=5&&(s+=r.N1+(l-5)),c>=5&&(s+=r.N1+(c-5))}return s},e.getPenaltyN2=function(a){const o=a.size;let s=0;for(let l=0;l<o-1;l++)for(let c=0;c<o-1;c++){const u=a.get(l,c)+a.get(l,c+1)+a.get(l+1,c)+a.get(l+1,c+1);(u===4||u===0)&&s++}return s*r.N2},e.getPenaltyN3=function(a){const o=a.size;let s=0,l=0,c=0;for(let u=0;u<o;u++){l=c=0;for(let d=0;d<o;d++)l=l<<1&2047|a.get(u,d),d>=10&&(l===1488||l===93)&&s++,c=c<<1&2047|a.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*r.N3},e.getPenaltyN4=function(a){let o=0;const s=a.data.length;for(let c=0;c<s;c++)o+=a.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*r.N4};function t(n,a,o){switch(n){case e.Patterns.PATTERN000:return(a+o)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(a+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return a*o%2+a*o%3===0;case e.Patterns.PATTERN110:return(a*o%2+a*o%3)%2===0;case e.Patterns.PATTERN111:return(a*o%3+(a+o)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(a,o){const s=o.size;for(let l=0;l<s;l++)for(let c=0;c<s;c++)o.isReserved(c,l)||o.xor(c,l,t(a,c,l))},e.getBestMask=function(a,o){const s=Object.keys(e.Patterns).length;let l=0,c=1/0;for(let u=0;u<s;u++){o(u),e.applyMask(u,a);const d=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(u,a),d<c&&(c=d,l=u)}return l}}(rs)),rs}var No={},Yc;function Gc(){if(Yc)return No;Yc=1;const e=Xi(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],t=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return No.getBlocksCount=function(a,o){switch(o){case e.L:return r[(a-1)*4+0];case e.M:return r[(a-1)*4+1];case e.Q:return r[(a-1)*4+2];case e.H:return r[(a-1)*4+3];default:return}},No.getTotalCodewordsCount=function(a,o){switch(o){case e.L:return t[(a-1)*4+0];case e.M:return t[(a-1)*4+1];case e.Q:return t[(a-1)*4+2];case e.H:return t[(a-1)*4+3];default:return}},No}var ts={},Ya={},$c;function Gg(){if($c)return Ya;$c=1;const e=new Uint8Array(512),r=new Uint8Array(256);return function(){let n=1;for(let a=0;a<255;a++)e[a]=n,r[n]=a,n<<=1,n&256&&(n^=285);for(let a=255;a<512;a++)e[a]=e[a-255]}(),Ya.log=function(n){if(n<1)throw new Error("log("+n+")");return r[n]},Ya.exp=function(n){return e[n]},Ya.mul=function(n,a){return n===0||a===0?0:e[r[n]+r[a]]},Ya}var Kc;function $g(){return Kc||(Kc=1,function(e){const r=Gg();e.mul=function(n,a){const o=new Uint8Array(n.length+a.length-1);for(let s=0;s<n.length;s++)for(let l=0;l<a.length;l++)o[s+l]^=r.mul(n[s],a[l]);return o},e.mod=function(n,a){let o=new Uint8Array(n);for(;o.length-a.length>=0;){const s=o[0];for(let c=0;c<a.length;c++)o[c]^=r.mul(a[c],s);let l=0;for(;l<o.length&&o[l]===0;)l++;o=o.slice(l)}return o},e.generateECPolynomial=function(n){let a=new Uint8Array([1]);for(let o=0;o<n;o++)a=e.mul(a,new Uint8Array([1,r.exp(o)]));return a}}(ts)),ts}var ns,Xc;function Kg(){if(Xc)return ns;Xc=1;const e=$g();function r(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},r.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(n.length+this.degree);a.set(n);const o=e.mod(a,this.genPoly),s=this.degree-o.length;if(s>0){const l=new Uint8Array(this.degree);return l.set(o,s),l}return o},ns=r,ns}var as={},os={},is={},Zc;function Jc(){return Zc||(Zc=1,is.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),is}var Ct={},Qc;function eu(){if(Qc)return Ct;Qc=1;const e="[0-9]+",r="[A-Z $%*+\\-./:]+";let t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
8
8
|
]))+`;Ct.KANJI=new RegExp(t,"g"),Ct.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ct.BYTE=new RegExp(n,"g"),Ct.NUMERIC=new RegExp(e,"g"),Ct.ALPHANUMERIC=new RegExp(r,"g");const a=new RegExp("^"+t+"$"),o=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ct.testKanji=function(c){return a.test(c)},Ct.testNumeric=function(c){return o.test(c)},Ct.testAlphanumeric=function(c){return s.test(c)},Ct}var ru;function Sn(){return ru||(ru=1,function(e){const r=Jc(),t=eu();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!r.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return t.testNumeric(o)?e.NUMERIC:t.testAlphanumeric(o)?e.ALPHANUMERIC:t.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function n(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+a)}}e.from=function(o,s){if(e.isValid(o))return o;try{return n(o)}catch{return s}}}(os)),os}var tu;function Xg(){return tu||(tu=1,function(e){const r=En(),t=Gc(),n=Xi(),a=Sn(),o=Jc(),s=7973,l=r.getBCHDigit(s);function c(_,g,f){for(let v=1;v<=40;v++)if(g<=e.getCapacity(v,f,_))return v}function u(_,g){return a.getCharCountIndicator(_,g)+4}function d(_,g){let f=0;return _.forEach(function(v){const y=u(v.mode,g);f+=y+v.getBitsLength()}),f}function p(_,g){for(let f=1;f<=40;f++)if(d(_,f)<=e.getCapacity(f,g,a.MIXED))return f}e.from=function(g,f){return o.isValid(g)?parseInt(g,10):f},e.getCapacity=function(g,f,v){if(!o.isValid(g))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=a.BYTE);const y=r.getSymbolTotalCodewords(g),m=t.getTotalCodewordsCount(g,f),w=(y-m)*8;if(v===a.MIXED)return w;const k=w-u(v,g);switch(v){case a.NUMERIC:return Math.floor(k/10*3);case a.ALPHANUMERIC:return Math.floor(k/11*2);case a.KANJI:return Math.floor(k/13);case a.BYTE:default:return Math.floor(k/8)}},e.getBestVersionForData=function(g,f){let v;const y=n.from(f,n.M);if(Array.isArray(g)){if(g.length>1)return p(g,y);if(g.length===0)return 1;v=g[0]}else v=g;return c(v.mode,v.getLength(),y)},e.getEncodedBits=function(g){if(!o.isValid(g)||g<7)throw new Error("Invalid QR Code version");let f=g<<12;for(;r.getBCHDigit(f)-l>=0;)f^=s<<r.getBCHDigit(f)-l;return g<<12|f}}(as)),as}var ss={},nu;function Zg(){if(nu)return ss;nu=1;const e=En(),r=1335,t=21522,n=e.getBCHDigit(r);return ss.getEncodedBits=function(o,s){const l=o.bit<<3|s;let c=l<<10;for(;e.getBCHDigit(c)-n>=0;)c^=r<<e.getBCHDigit(c)-n;return(l<<10|c)^t},ss}var ls={},cs,au;function Jg(){if(au)return cs;au=1;const e=Sn();function r(t){this.mode=e.NUMERIC,this.data=t.toString()}return r.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(n){let a,o,s;for(a=0;a+3<=this.data.length;a+=3)o=this.data.substr(a,3),s=parseInt(o,10),n.put(s,10);const l=this.data.length-a;l>0&&(o=this.data.substr(a),s=parseInt(o,10),n.put(s,l*3+1))},cs=r,cs}var us,ou;function Qg(){if(ou)return us;ou=1;const e=Sn(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function t(n){this.mode=e.ALPHANUMERIC,this.data=n}return t.getBitsLength=function(a){return 11*Math.floor(a/2)+6*(a%2)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(a){let o;for(o=0;o+2<=this.data.length;o+=2){let s=r.indexOf(this.data[o])*45;s+=r.indexOf(this.data[o+1]),a.put(s,11)}this.data.length%2&&a.put(r.indexOf(this.data[o]),6)},us=t,us}var ds,iu;function ef(){if(iu)return ds;iu=1;const e=Sn();function r(t){this.mode=e.BYTE,typeof t=="string"?this.data=new TextEncoder().encode(t):this.data=new Uint8Array(t)}return r.getBitsLength=function(n){return n*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){for(let n=0,a=this.data.length;n<a;n++)t.put(this.data[n],8)},ds=r,ds}var ps,su;function rf(){if(su)return ps;su=1;const e=Sn(),r=En();function t(n){this.mode=e.KANJI,this.data=n}return t.getBitsLength=function(a){return a*13},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let a;for(a=0;a<this.data.length;a++){let o=r.toSJIS(this.data[a]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+`
|
|
9
9
|
Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),n.put(o,13)}},ps=t,ps}var _s={exports:{}},lu;function tf(){return lu||(lu=1,function(e){var r={single_source_shortest_paths:function(t,n,a){var o={},s={};s[n]=0;var l=r.PriorityQueue.make();l.push(n,0);for(var c,u,d,p,_,g,f,v,y;!l.empty();){c=l.pop(),u=c.value,p=c.cost,_=t[u]||{};for(d in _)_.hasOwnProperty(d)&&(g=_[d],f=p+g,v=s[d],y=typeof s[d]>"u",(y||v>f)&&(s[d]=f,l.push(d,f),o[d]=u))}if(typeof a<"u"&&typeof s[a]>"u"){var m=["Could not find a path from ",n," to ",a,"."].join("");throw new Error(m)}return o},extract_shortest_path_from_predecessor_list:function(t,n){for(var a=[],o=n;o;)a.push(o),t[o],o=t[o];return a.reverse(),a},find_path:function(t,n,a){var o=r.single_source_shortest_paths(t,n,a);return r.extract_shortest_path_from_predecessor_list(o,a)},PriorityQueue:{make:function(t){var n=r.PriorityQueue,a={},o;t=t||{};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);return a.queue=[],a.sorter=t.sorter||n.default_sorter,a},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var a={value:t,cost:n};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=r}(_s)),_s.exports}var cu;function nf(){return cu||(cu=1,function(e){const r=Sn(),t=Jg(),n=Qg(),a=ef(),o=rf(),s=eu(),l=En(),c=tf();function u(m){return unescape(encodeURIComponent(m)).length}function d(m,w,k){const b=[];let A;for(;(A=m.exec(k))!==null;)b.push({data:A[0],index:A.index,mode:w,length:A[0].length});return b}function p(m){const w=d(s.NUMERIC,r.NUMERIC,m),k=d(s.ALPHANUMERIC,r.ALPHANUMERIC,m);let b,A;return l.isKanjiModeEnabled()?(b=d(s.BYTE,r.BYTE,m),A=d(s.KANJI,r.KANJI,m)):(b=d(s.BYTE_KANJI,r.BYTE,m),A=[]),w.concat(k,b,A).sort(function(x,D){return x.index-D.index}).map(function(x){return{data:x.data,mode:x.mode,length:x.length}})}function _(m,w){switch(w){case r.NUMERIC:return t.getBitsLength(m);case r.ALPHANUMERIC:return n.getBitsLength(m);case r.KANJI:return o.getBitsLength(m);case r.BYTE:return a.getBitsLength(m)}}function g(m){return m.reduce(function(w,k){const b=w.length-1>=0?w[w.length-1]:null;return b&&b.mode===k.mode?(w[w.length-1].data+=k.data,w):(w.push(k),w)},[])}function f(m){const w=[];for(let k=0;k<m.length;k++){const b=m[k];switch(b.mode){case r.NUMERIC:w.push([b,{data:b.data,mode:r.ALPHANUMERIC,length:b.length},{data:b.data,mode:r.BYTE,length:b.length}]);break;case r.ALPHANUMERIC:w.push([b,{data:b.data,mode:r.BYTE,length:b.length}]);break;case r.KANJI:w.push([b,{data:b.data,mode:r.BYTE,length:u(b.data)}]);break;case r.BYTE:w.push([{data:b.data,mode:r.BYTE,length:u(b.data)}])}}return w}function v(m,w){const k={},b={start:{}};let A=["start"];for(let E=0;E<m.length;E++){const x=m[E],D=[];for(let I=0;I<x.length;I++){const j=x[I],F=""+E+I;D.push(F),k[F]={node:j,lastCount:0},b[F]={};for(let P=0;P<A.length;P++){const S=A[P];k[S]&&k[S].node.mode===j.mode?(b[S][F]=_(k[S].lastCount+j.length,j.mode)-_(k[S].lastCount,j.mode),k[S].lastCount+=j.length):(k[S]&&(k[S].lastCount=j.length),b[S][F]=_(j.length,j.mode)+4+r.getCharCountIndicator(j.mode,w))}}A=D}for(let E=0;E<A.length;E++)b[A[E]].end=0;return{map:b,table:k}}function y(m,w){let k;const b=r.getBestModeForData(m);if(k=r.from(w,b),k!==r.BYTE&&k.bit<b.bit)throw new Error('"'+m+'" cannot be encoded with mode '+r.toString(k)+`.
|
|
10
10
|
Suggested mode is: `+r.toString(b));switch(k===r.KANJI&&!l.isKanjiModeEnabled()&&(k=r.BYTE),k){case r.NUMERIC:return new t(m);case r.ALPHANUMERIC:return new n(m);case r.KANJI:return new o(m);case r.BYTE:return new a(m)}}e.fromArray=function(w){return w.reduce(function(k,b){return typeof b=="string"?k.push(y(b,null)):b.data&&k.push(y(b.data,b.mode)),k},[])},e.fromString=function(w,k){const b=p(w,l.isKanjiModeEnabled()),A=f(b),E=v(A,k),x=c.find_path(E.map,"start","end"),D=[];for(let I=1;I<x.length-1;I++)D.push(E.table[x[I]].node);return e.fromArray(g(D))},e.rawSplit=function(w){return e.fromArray(p(w,l.isKanjiModeEnabled()))}}(ls)),ls}var uu;function af(){if(uu)return $i;uu=1;const e=En(),r=Xi(),t=Rg(),n=Vg(),a=Hg(),o=Wg(),s=Yg(),l=Gc(),c=Kg(),u=Xg(),d=Zg(),p=Sn(),_=nf();function g(E,x){const D=E.size,I=o.getPositions(x);for(let j=0;j<I.length;j++){const F=I[j][0],P=I[j][1];for(let S=-1;S<=7;S++)if(!(F+S<=-1||D<=F+S))for(let q=-1;q<=7;q++)P+q<=-1||D<=P+q||(S>=0&&S<=6&&(q===0||q===6)||q>=0&&q<=6&&(S===0||S===6)||S>=2&&S<=4&&q>=2&&q<=4?E.set(F+S,P+q,!0,!0):E.set(F+S,P+q,!1,!0))}}function f(E){const x=E.size;for(let D=8;D<x-8;D++){const I=D%2===0;E.set(D,6,I,!0),E.set(6,D,I,!0)}}function v(E,x){const D=a.getPositions(x);for(let I=0;I<D.length;I++){const j=D[I][0],F=D[I][1];for(let P=-2;P<=2;P++)for(let S=-2;S<=2;S++)P===-2||P===2||S===-2||S===2||P===0&&S===0?E.set(j+P,F+S,!0,!0):E.set(j+P,F+S,!1,!0)}}function y(E,x){const D=E.size,I=u.getEncodedBits(x);let j,F,P;for(let S=0;S<18;S++)j=Math.floor(S/3),F=S%3+D-8-3,P=(I>>S&1)===1,E.set(j,F,P,!0),E.set(F,j,P,!0)}function m(E,x,D){const I=E.size,j=d.getEncodedBits(x,D);let F,P;for(F=0;F<15;F++)P=(j>>F&1)===1,F<6?E.set(F,8,P,!0):F<8?E.set(F+1,8,P,!0):E.set(I-15+F,8,P,!0),F<8?E.set(8,I-F-1,P,!0):F<9?E.set(8,15-F-1+1,P,!0):E.set(8,15-F-1,P,!0);E.set(I-8,8,1,!0)}function w(E,x){const D=E.size;let I=-1,j=D-1,F=7,P=0;for(let S=D-1;S>0;S-=2)for(S===6&&S--;;){for(let q=0;q<2;q++)if(!E.isReserved(j,S-q)){let N=!1;P<x.length&&(N=(x[P]>>>F&1)===1),E.set(j,S-q,N),F--,F===-1&&(P++,F=7)}if(j+=I,j<0||D<=j){j-=I,I=-I;break}}}function k(E,x,D){const I=new t;D.forEach(function(q){I.put(q.mode.bit,4),I.put(q.getLength(),p.getCharCountIndicator(q.mode,E)),q.write(I)});const j=e.getSymbolTotalCodewords(E),F=l.getTotalCodewordsCount(E,x),P=(j-F)*8;for(I.getLengthInBits()+4<=P&&I.put(0,4);I.getLengthInBits()%8!==0;)I.putBit(0);const S=(P-I.getLengthInBits())/8;for(let q=0;q<S;q++)I.put(q%2?17:236,8);return b(I,E,x)}function b(E,x,D){const I=e.getSymbolTotalCodewords(x),j=l.getTotalCodewordsCount(x,D),F=I-j,P=l.getBlocksCount(x,D),S=I%P,q=P-S,N=Math.floor(I/P),C=Math.floor(F/P),z=C+1,O=N-C,G=new c(O);let R=0;const $=new Array(P),te=new Array(P);let ge=0;const pe=new Uint8Array(E.buffer);for(let Ue=0;Ue<P;Ue++){const Ve=Ue<q?C:z;$[Ue]=pe.slice(R,R+Ve),te[Ue]=G.encode($[Ue]),R+=Ve,ge=Math.max(ge,Ve)}const fe=new Uint8Array(I);let ye=0,me,qe;for(me=0;me<ge;me++)for(qe=0;qe<P;qe++)me<$[qe].length&&(fe[ye++]=$[qe][me]);for(me=0;me<O;me++)for(qe=0;qe<P;qe++)fe[ye++]=te[qe][me];return fe}function A(E,x,D,I){let j;if(Array.isArray(E))j=_.fromArray(E);else if(typeof E=="string"){let N=x;if(!N){const C=_.rawSplit(E);N=u.getBestVersionForData(C,D)}j=_.fromString(E,N||40)}else throw new Error("Invalid data");const F=u.getBestVersionForData(j,D);if(!F)throw new Error("The amount of data is too big to be stored in a QR Code");if(!x)x=F;else if(x<F)throw new Error(`
|
|
11
11
|
The chosen QR Code version cannot contain this amount of data.
|
|
12
12
|
Minimum version required to store current data is: `+F+`.
|
|
13
13
|
`);const P=k(x,D,j),S=e.getSymbolSize(x),q=new n(S);return g(q,x),f(q),v(q,x),m(q,D,0),x>=7&&y(q,x),w(q,P),isNaN(I)&&(I=s.getBestMask(q,m.bind(null,q,D))),s.applyMask(I,q),m(q,D,I),{modules:q,version:x,errorCorrectionLevel:D,maskPattern:I,segments:j}}return $i.create=function(x,D){if(typeof x>"u"||x==="")throw new Error("No input text");let I=r.M,j,F;return typeof D<"u"&&(I=r.from(D.errorCorrectionLevel,r.M),j=u.from(D.version),F=s.from(D.maskPattern),D.toSJISFunc&&e.setToSJISFunction(D.toSJISFunc)),A(x,j,I,F)},$i}var gs={},fs={},du;function pu(){return du||(du=1,function(e){function r(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(o){return[o,o]}))),n.length===6&&n.push("F","F");const a=parseInt(n.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const a=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,o=n.width&&n.width>=21?n.width:void 0,s=n.scale||4;return{width:o,scale:o?4:s,margin:a,color:{dark:r(n.color.dark||"#000000ff"),light:r(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,a){return a.width&&a.width>=n+a.margin*2?a.width/(n+a.margin*2):a.scale},e.getImageWidth=function(n,a){const o=e.getScale(n,a);return Math.floor((n+a.margin*2)*o)},e.qrToImageData=function(n,a,o){const s=a.modules.size,l=a.modules.data,c=e.getScale(s,o),u=Math.floor((s+o.margin*2)*c),d=o.margin*c,p=[o.color.light,o.color.dark];for(let _=0;_<u;_++)for(let g=0;g<u;g++){let f=(_*u+g)*4,v=o.color.light;if(_>=d&&g>=d&&_<u-d&&g<u-d){const y=Math.floor((_-d)/c),m=Math.floor((g-d)/c);v=p[l[y*s+m]?1:0]}n[f++]=v.r,n[f++]=v.g,n[f++]=v.b,n[f]=v.a}}}(fs)),fs}var _u;function of(){return _u||(_u=1,function(e){const r=pu();function t(a,o,s){a.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,s,l){let c=l,u=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=n()),c=r.getOptions(c);const d=r.getImageWidth(o.modules.size,c),p=u.getContext("2d"),_=p.createImageData(d,d);return r.qrToImageData(_.data,o,c),t(p,u,d),p.putImageData(_,0,0),u},e.renderToDataURL=function(o,s,l){let c=l;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=e.render(o,s,c),d=c.type||"image/png",p=c.rendererOpts||{};return u.toDataURL(d,p.quality)}}(gs)),gs}var ms={},gu;function sf(){if(gu)return ms;gu=1;const e=pu();function r(a,o){const s=a.a/255,l=o+'="'+a.hex+'"';return s<1?l+" "+o+'-opacity="'+s.toFixed(2).slice(1)+'"':l}function t(a,o,s){let l=a+o;return typeof s<"u"&&(l+=" "+s),l}function n(a,o,s){let l="",c=0,u=!1,d=0;for(let p=0;p<a.length;p++){const _=Math.floor(p%o),g=Math.floor(p/o);!_&&!u&&(u=!0),a[p]?(d++,p>0&&_>0&&a[p-1]||(l+=u?t("M",_+s,.5+g+s):t("m",c,0),c=0,u=!1),_+1<o&&a[p+1]||(l+=t("h",d),d=0)):c++}return l}return ms.render=function(o,s,l){const c=e.getOptions(s),u=o.modules.size,d=o.modules.data,p=u+c.margin*2,_=c.color.light.a?"<path "+r(c.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",g="<path "+r(c.color.dark,"stroke")+' d="'+n(d,u,c.margin)+'"/>',f='viewBox="0 0 '+p+" "+p+'"',y='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+f+' shape-rendering="crispEdges">'+_+g+`</svg>
|
|
14
|
-
`;return typeof l=="function"&&l(null,y),y},ms}var fu;function lf(){if(fu)return da;fu=1;const e=Ug(),r=af(),t=of(),n=sf();function a(o,s,l,c,u){const d=[].slice.call(arguments,1),p=d.length,_=typeof d[p-1]=="function";if(!_&&!e())throw new Error("Callback required as last argument");if(_){if(p<2)throw new Error("Too few arguments provided");p===2?(u=l,l=s,s=c=void 0):p===3&&(s.getContext&&typeof u>"u"?(u=c,c=void 0):(u=c,c=l,l=s,s=void 0))}else{if(p<1)throw new Error("Too few arguments provided");return p===1?(l=s,s=c=void 0):p===2&&!s.getContext&&(c=l,l=s,s=void 0),new Promise(function(g,f){try{const v=r.create(l,c);g(o(v,s,c))}catch(v){f(v)}})}try{const g=r.create(l,c);u(null,o(g,s,c))}catch(g){u(g)}}return da.create=r.create,da.toCanvas=a.bind(null,t.render),da.toDataURL=a.bind(null,t.renderToDataURL),da.toString=a.bind(null,function(o,s,l){return n.render(o,l)}),da}var cf=lf();const uf=Bg(cf);var df=U('<div class="qr-wrapper svelte-1q6j10y"><img alt="Redemption QR Code" class="qr-code svelte-1q6j10y"/></div>');const pf={hash:"svelte-1q6j10y",code:".qr-wrapper.svelte-1q6j10y {display:flex;justify-content:center;align-items:center;align-self:center;width:fit-content;margin:0 auto;background-color:#ffffff;border-radius:8px;padding:16px;}.qr-code.svelte-1q6j10y {display:block;width:128px;height:128px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;}"};function _f(e,r){ne(r,!0),oe(e,pf);const t=()=>Se(o,"$variables",n),[n,a]=Me(),o=Oo(),s=h(()=>{var f;return(f=t())==null?void 0:f["success.redemption_url"]});let l=X(!0),c=X(""),u=X(!1);_r(()=>{const f=window.matchMedia("(max-width: 767px)");L(l,f.matches,!0);const v=y=>{L(l,y.matches,!0)};return f.addEventListener("change",v),()=>{f.removeEventListener("change",v)}}),tt(()=>{!i(l)&&i(s)&&(L(u,!1),uf.toDataURL(i(s),{width:512,margin:2,errorCorrectionLevel:"M",color:{dark:"#000000",light:"#ffffff"}}).then(f=>{L(c,f,!0)}).catch(f=>{console.warn("Failed to generate QR code:",f),L(u,!0)}))});var d=he(),p=ee(d);{var _=f=>{Lr(f,rr(()=>r.stack,{onclick:()=>{window.location.href=i(s)}}))},g=f=>{var v=he(),y=ee(v);{var m=w=>{var k=df(),b=M(k);V(()=>ie(b,"src",i(c))),T(w,k)};Y(y,w=>{i(c)&&w(m)},!0)}T(f,v)};Y(p,f=>{(i(l)||i(u))&&i(s)?f(_):f(g,!1)})}T(e,d),ae(),a()}var mu;(function(e){e.body_s="p",e.body_m="p",e.body_l="p",e.body_xl="p",e.heading_xs="h6",e.heading_s="h5",e.heading_m="h4",e.heading_l="h3",e.heading_xl="h2",e.heading_xxl="h1"})(mu||(mu={}));var Lo;(function(e){e[e.extra_light=100]="extra_light",e[e.thin=200]="thin",e[e.light=300]="light",e[e.regular=400]="regular",e[e.medium=500]="medium",e[e.semibold=600]="semibold",e[e.bold=700]="bold",e[e.extra_bold=800]="extra_bold",e[e.black=900]="black"})(Lo||(Lo={}));var Bo;(function(e){e.body_s="13px",e.body_m="14px",e.body_l="15px",e.body_xl="16px",e.heading_xs="14px",e.heading_s="16px",e.heading_m="18px",e.heading_l="20px",e.heading_xl="26px",e.heading_xxl="32px"})(Bo||(Bo={}));var Uo;(function(e){e.leading="start",e.center="center",e.trailing="end"})(Uo||(Uo={}));var hu;(function(e){e.vertical="column",e.horizontal="row",e.zlayer="zstack"})(hu||(hu={}));var yu;(function(e){e.top="flex-start",e.leading="flex-start",e.center="center",e.bottom="flex-end",e.trailing="flex-end"})(yu||(yu={}));var vu;(function(e){e.space_between="space-between",e.space_around="space-around",e.space_evenly="space-evenly",e.start="flex-start",e.center="center",e.end="flex-end"})(vu||(vu={}));const hs="light",gf="#000000",bu={top:0,bottom:0,leading:0,trailing:0};function He(e){return Object.entries(e).map(([r,t])=>`${r}:${t}`).join(";")}function Er(e){return`${e}px`}function ku(...e){return e.map(Er).join(" ")}function Jt(e,r){return r[e]??r.light}function wr(e){switch(e.type){case"fill":return navigator.userAgent.includes("Firefox")?"-moz-available":"-webkit-fill-available";case"fit":return"fit-content";case"fixed":return Er(e.value);case"relative":return`${e.value*100}%`}}function ur(e){const{top:r,bottom:t,leading:n,trailing:a}=e??bu;return ku(r,a,t,n)}function wu(e){if(e.type==="alias"||e.type==="hex")return e.value;const r=e.points.map(t=>`${t.color} ${t.percent}%`).join(", ");switch(e.type){case"linear":return`linear-gradient(${e.degrees}deg, ${r})`;case"radial":return`radial-gradient(circle, ${r})`}}function Pr(e,r){if(r==null)return"transparent";const t=Jt(e,r);return wu(t)}function ff(e,r){return r==null?"transparent":Pr(e,r)}function Tn(e,r){if(r==null)return"none";const t=Pr(e,r.color);return`${r.width}px solid ${t}`}function mf(e){if(e==null)return"0";const{top_leading:r,top_trailing:t,bottom_trailing:n,bottom_leading:a}=e;return ku(r,t,n,a)}function pa(e){switch(e==null?void 0:e.type){case void 0:case"concave":case"convex":return"0";case"rectangle":return`${mf(e.corners)}`;case"circle":case"pill":return"9999px"}}function _a(e,r){if(r==null)return"none";const{x:t,y:n,radius:a}=r,o=Pr(e,r.color);return`${t}px ${n}px ${a}px ${o}`}function Ro(e){switch(e){case"fill":return"cover";case"fit":return"contain"}}function hf(e,r){return`url(${Jt(e,r).webp})`}function yf(e,r){return console.error("Not supported yet"),`url(${Jt(e,r)})`}function vf(e,r,t){return t==null?r==null?"none":Pr(e,r):t.type==="color"?Pr(e,r??t.value):t.type==="image"?hf(e,t.value):yf(e,t.value)}function In(e,r,t){const n=vf(e,r,t);if((t==null?void 0:t.type)!=="image")return{background:n};const{fit_mode:a,color_overlay:o}=t;return{background:n,"background-size":Ro(a),"background-position":a==="fill"?"center":"top center","background-repeat":"no-repeat","--overlay":ff(e,o)}}function bf(e){return e.startsWith("RCFM:")}function ys(e){return`RevCatPaywall-${e}`}async function kf(e){var t;if(!e.app.fonts||typeof document>"u")return;const r=[];for(const[n,a]of Object.entries(e.app.fonts)){const o=a.web;if(!o||!o.url||!o.family){console.warn(`[Font Registration] Skipping font ${n}: missing web config or required fields`);continue}try{const s=`${ys(o.family)}-${o.style}-${o.weight}`,l=new FontFace(s,`url(${o.url})`,{weight:((t=o.weight)==null?void 0:t.toString())||"400",style:o.style||"normal"});l.family=ys(o.family);const c=l.load().then(()=>{document.fonts.add(l),console.debug(`[Font Registration] Successfully registered font: ${s} (${o.family}, ${o.weight}, ${o.style})`)}).catch(u=>{console.warn(`[Font Registration] Failed to load font ${o.family}:`,u)});r.push(c)}catch(s){console.warn(`[Font Registration] Failed to create FontFace for ${n}:`,s)}}try{await Promise.allSettled(r),console.debug(`[Font Registration] Font registration complete. Processed ${r.length} fonts.`)}catch(n){console.warn("[Font Registration] Unexpected error during font registration:",n)}}const wf={light:{type:"hex",value:gf}};function Pf(e,r){const t=Jt(e,r),n=wu(t);switch(t.type){case"alias":case"hex":return{color:n};case"linear":case"radial":return{color:"transparent",background:n,"-webkit-background-clip":"text","background-clip":"text"}}}const xf=(e,r,t)=>{var f;const{font_name:n,font_size:a,font_weight:o,font_weight_int:s,horizontal_alignment:l,color:c=wf,padding:u,margin:d,size:p}=r,_=t[n??""],g=(f=_==null?void 0:_.web)==null?void 0:f.family;return He({display:"block",width:wr(p.width),height:wr(p.height),margin:ur(d),padding:ur(u),...Pf(e,c),"text-align":Uo[l]||Uo.leading,"font-weight":s??Lo[o]??Lo.regular,"font-size":Number.isInteger(Number(a))?`${a}px`:Bo[a]||Bo.body_m,"font-family":bf(n??"")?ys(g??""):"sans-serif"})};function Ef(e,r,t,n){return He({display:"block",position:"relative",width:wr(t.width),height:wr(t.height),...In(e,n,null)})}function Sf(e){return e?Object.values({newLine:{regexp:/\\\n/g,output:"<br/>"},bold:{regexp:/\*\*(.*?)\*\*/g,output:"<b>$1</b>"},italic:{regexp:/\*(.*?)\*/g,output:"<i>$1</i>"},strikethrough:{regexp:/~(.*?)~/g,output:"<s>$1</s>"},code:{regexp:/`(.*?)`/g,output:"<span style='font-family: monospace'>$1</span>"},link:{regexp:/\[(.*?)\]\((.*?)\)/g,output:"<a href=$2 target='_blank' rel='noopener noreferrer'>$1</a>"}}).reduce((t,{regexp:n,output:a})=>t.replaceAll(n,a),e):""}function Tf(e,r){const t=K(r,"style",3,""),n=K(r,"component",3,"p");var a=he(),o=ee(a);Mi(o,n,!1,(s,l)=>{Bi(s,()=>({style:t()}));var c=he(),u=ee(c);er(u,()=>r.children??De),T(l,c)}),T(e,a)}class If{constructor(r,t){we(this,po);we(this,_o);de(this,po,r),de(this,_o,Il(t))}get current(){return B(this,_o).call(this),B(this,po).call(this)}}po=new WeakMap,_o=new WeakMap;const Df=/\(.+\)/,Cf=new Set(["all","print","screen","and","or","not","only"]);class Af extends If{constructor(r,t){let n=Df.test(r)||r.split(/[\s,]+/).some(o=>Cf.has(o.trim()))?r:`(${r})`;const a=window.matchMedia(n);super(()=>a.matches,o=>u_(a,"change",o))}}const Pu=Symbol("color-mode");function qf(e){const r=new Af("prefers-color-scheme: dark",((e==null?void 0:e())??hs)==="dark"),t=()=>(e==null?void 0:e())??(r.current?"dark":hs);return vr(Pu,t),t}function at(){return We(Pu)??(()=>hs)}const xu=Symbol("localization");function Ff(e){const t={getLocalizedString:n=>{var d,p;if(!n)return"";const{selectedLocale:a,defaultLocale:o,localizations:s}=e(),c=(d=s[a??o])==null?void 0:d[n],u=(p=s[o])==null?void 0:p[n];return c??u}};return vr(xu,t),t}function zf(){const e=We(xu);if(e===void 0)throw new Error("Localization context not found");return e}function Mf(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const jf={uppercase:e=>String(e??"").toUpperCase(),lowercase:e=>String(e??"").toLowerCase(),capitalize:e=>String(e??"").replaceAll(new RegExp("(\\p{Letter}+)","giu"),Mf)};function Of(e,r){const t=/\{\{\s*([a-z0-9._-]+)(?:\s*\|\s*([^}]*))?\s*\}\}/gi;return e.replace(t,(n,a,o)=>{const s=a==null?void 0:a.trim(),l=s&&r[s];if(l===void 0)return"N/A";const c=o==null?void 0:o.trim();if(c===void 0)return l;const u=jf[c];return u?u(l):l})}function Nf(e="",r){return r===void 0?e:Of(e,r)}const Eu=Symbol("packageInfo");function Su(e){vr(Eu,e)}function Tu(){const e=We(Eu);if(e===void 0)throw new Error("PackageInfo context not found");return e}var Lf=U("<span><!></span>");function vs(e,r){ne(r,!0);const t=()=>Se(c,"$selectedState",o),n=()=>Se(u,"$packageInfo",o),a=()=>Se(y,"$variables",o),[o,s]=Me(),l=gr(r,["$$slots","$$events","$$legacy"]),c=Xr(),u=Tu(),d=h(()=>{var E;return{...l,...Zr(t(),r.overrides),...Cg(!!((E=n())!=null&&E.hasIntroOffer),r.overrides)}}),p=at(),_=h(p),{uiConfig:g}=ua();let f=h(()=>xf(i(_),i(d),g.app.fonts));const v=h(()=>Ef(i(_),i(d),i(d).size,i(d).background_color)),y=Oo(),{getLocalizedString:m}=zf(),w=h(()=>Nf(m(i(d).text_lid),a())),k=h(()=>Sf(i(w)));var b=Lf(),A=M(b);Tf(A,{get style(){return i(f)},component:"span",children:(E,x)=>{var D=he(),I=ee(D);ln(I,()=>i(k)),T(E,D)},$$slots:{default:!0}}),V(()=>be(b,i(v))),T(e,b),ae(),s()}function Bf(e){switch(e){case"top":return"flex-start";case"center":return"center";case"bottom":return"flex-end"}}function Uf(e,r,t){return Math.max(r,Math.min(e,t))}function Vo(e){if(e===null)return 0;const r=window.getComputedStyle(e);return new WebKitCSSMatrix(r.transform).m41}var Rf=U('<div class="page svelte-oq7kh0" role="group" aria-roledescription="slide"><!></div>');const Vf={hash:"svelte-oq7kh0",code:"div.svelte-oq7kh0 {flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;}"};function bs(e,r){oe(e,Vf);const t=K(r,"hidden",3,!1);var n=Rf(),a=M(n);Lr(a,rr(()=>r.page)),V(()=>{ie(n,"aria-label",`Slide ${r.index+1} of ${r.pages}`),ie(n,"aria-current",r.selected),ie(n,"aria-hidden",t())}),T(e,n)}var Hf=U("<div></div>"),Wf=U('<div class="control svelte-17y9evf"></div>');const Yf={hash:"svelte-17y9evf",code:".control.svelte-17y9evf {align-self:center;display:flex;flex-direction:row;align-items:center;justify-content:center;}"};function Gf(e,r){ne(r,!0),oe(e,Yf);const t=K(r,"background_color",3,null),n=K(r,"border",3,null),a=K(r,"shape",3,null),o=K(r,"shadow",3,null),s=at(),l=h(s);function c(f){return f.stroke_width==null||f.stroke_color==null?"none":Tn(i(l),{width:f.stroke_width,color:f.stroke_color})}function u(f){return He({width:Er(f.width),height:Er(f.height),background:Pr(i(l),f.color),border:c(f),"border-radius":"9999px"})}const d=h(()=>u(r.default)),p=h(()=>u(r.active)),_=h(()=>He({order:r.position==="top"?-1:1,gap:Er(r.spacing),margin:ur(r.margin),padding:ur(r.padding),...In(i(l),t(),null),border:Tn(i(l),n()),"border-radius":pa(a()),"box-shadow":_a(i(l),o())}));var g=Wf();Et(g,21,()=>({length:r.length}),$t,(f,v,y)=>{var m=Hf();V(()=>be(m,y===r.selected?i(p):i(d))),T(f,m)}),V(()=>be(g,i(_))),T(e,g),ae()}var $f=U('<div class="carousel svelte-1ooevy5"><div class="slider svelte-1ooevy5" role="region" aria-label="Feature carousel" aria-roledescription="carousel" aria-live="polite"><!> <!> <!></div> <!></div>');const Kf={hash:"svelte-1ooevy5",code:".carousel.svelte-1ooevy5 {max-width:100%;display:flex;flex-direction:column;overflow:hidden;}.slider.svelte-1ooevy5 {display:flex;flex-direction:row;flex-wrap:nowrap;transition-property:transform;transition-duration:500ms;transition-timing-function:ease-in-out;transition-delay:2500ms;transform:translateX(0);cursor:grab;&:active {cursor:grabbing;user-select:none;}}"};function Xf(e,r){ne(r,!0),oe(e,Kf);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).pages),u=h(()=>i(l).padding),d=h(()=>i(l).margin),p=h(()=>i(l).background),_=h(()=>i(l).shape),g=h(()=>i(l).border),f=h(()=>i(l).shadow),v=h(()=>i(l).page_alignment),y=h(()=>i(l).page_spacing),m=h(()=>i(l).page_peek),w=h(()=>i(l).page_control),k=h(()=>i(l).initial_page_index),b=h(()=>i(l).loop),A=h(()=>i(l).auto_advance),E=at(),x=h(E),D=h(()=>{var le;return He({margin:ur(i(d)),padding:ur(i(u)),...In(i(x),null,i(p)),border:Tn(i(x),i(g)),"border-radius":pa(i(_)),"box-shadow":_a(i(x),i(f)),"transition-duration":`${((le=i(A))==null?void 0:le.ms_transition_time)??0}ms`})}),I=h(()=>He({gap:Er(i(y)),padding:`0 ${i(m)+i(y)}px`,"align-items":Bf(i(v))})),j=h(()=>{if(!i(b))return[];const le=i(c).length-1;switch(i(c).length){case 0:return[];case 1:return[0,0];case 2:return[0,le];default:return[le-1,le]}}),F=h(()=>{if(!i(b))return[];switch(i(c).length){case 0:return[];case 1:return[0,0];default:return[0,1]}});let P=null,S=X(0),q=X(0),N=h(()=>2*i(m)+i(y)),C=h(()=>i(q)-i(N));function z(le=!0,je){var pr,ut;if(P===null)return;const tr=le?((pr=i(A))==null?void 0:pr.ms_time_per_page)??0:0;je??(je=((ut=i(A))==null?void 0:ut.ms_transition_time)??0),P.style.transition=`transform ${je}ms ease-in-out ${tr}ms`}function O(){P!==null&&(P.style.transition="none")}const G=h(()=>i(b)?2:0);function R(le){P!==null&&(P.style.transform=`translateX(${le}px)`)}function $(le){if(P===null)return;le+=i(G);const je=le*-i(C);R(je)}function te(le){le%=i(c).length+i(G),z(!0),$(le)}function ge(){i(A)!=null&&requestAnimationFrame(()=>{te(i(S)+1)})}_r(()=>{const le=i(c).at(i(k))!==void 0?i(k):0;L(S,le,!0),O(),$(i(S)),ge()});function pe(le){return Math.round(le/-i(C))-i(G)}function fe(){const le=Vo(P),je=pe(le);L(S,(je+i(c).length)%i(c).length),O(),$(i(S)),requestAnimationFrame(()=>{ge()})}let ye=X(0);function me(le){le.currentTarget.setPointerCapture(le.pointerId),L(ye,Vo(P),!0)}function qe(le){le.currentTarget.releasePointerCapture(le.pointerId);const tr=Vo(P),pr=pe(tr);z(!1,500),$(pr)}function Ue(le){if(!le.currentTarget.hasPointerCapture(le.pointerId))return;const[tr,pr]=i(b)?[i(ye)-i(q),i(ye)+i(q)]:[-(i(c).length-1)*i(C),0],ut=Vo(P),xa=Uf(ut+le.movementX,tr,pr),On=pe(xa);L(S,(On+i(c).length)%i(c).length),R(xa),O()}var Ve=$f(),Je=M(Ve);Je.__pointerdown=me,Je.__pointerup=qe,Je.__pointermove=Ue;var Tr=M(Je);Et(Tr,17,()=>i(j),$t,(le,je)=>{{let tr=h(()=>i(S)===i(je));bs(le,{get page(){return i(c)[i(je)]},get index(){return i(je)},get pages(){return i(c).length},get selected(){return i(tr)},hidden:!0})}});var Rr=H(Tr,2);Et(Rr,17,()=>i(c),$t,(le,je,tr)=>{{let pr=h(()=>i(S)===tr);bs(le,{get page(){return i(je)},index:tr,get pages(){return i(c).length},get selected(){return i(pr)}})}});var ve=H(Rr,2);Et(ve,17,()=>i(F),$t,(le,je)=>{{let tr=h(()=>i(S)===i(je));bs(le,{get page(){return i(c)[i(je)]},get index(){return i(je)},get pages(){return i(c).length},get selected(){return i(tr)},hidden:!0})}}),zo(Je,le=>P=le,()=>P);var Ge=H(Je,2);{var Qr=le=>{Gf(le,rr(()=>i(w),{get length(){return i(c).length},get selected(){return i(S)}}))};Y(Ge,le=>{i(w)!=null&&le(Qr)})}V(()=>{be(Ve,i(D)),be(Je,i(I))}),$r("transitionend",Je,fe),Ri(Je,"clientWidth",le=>L(q,le)),T(e,Ve),ae(),a()}Ua(["pointerdown","pointerup","pointermove"]);var Zf=U("<div><div></div></div>");function Iu(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).base_url),u=h(()=>i(l).formats),d=h(()=>i(l).size),p=h(()=>i(l).margin),_=h(()=>i(l).padding),g=h(()=>i(l).color),f=h(()=>i(l).icon_background),v=at(),y=h(v),m=h(()=>{var E,x,D,I;return He({width:wr(i(d).width),height:wr(i(d).height),margin:ur(i(p)),padding:ur(i(_)),"background-color":Pr(i(y),(E=i(f))==null?void 0:E.color),border:Tn(i(y),(x=i(f))==null?void 0:x.border),"border-radius":pa((D=i(f))==null?void 0:D.shape),"box-shadow":_a(i(y),(I=i(f))==null?void 0:I.shadow),flex:"0 0 auto"})}),w=h(()=>`${i(c)}/${i(u).webp}`),k=h(()=>He({width:"100%",height:"100%",position:"relative","z-index":1,overflow:"hidden","background-color":Pr(i(y),i(g)),"mask-image":`url(${i(w)})`,"-webkit-mask-image":`url(${i(w)})`,"mask-size":"contain","-webkit-mask-size":"contain","mask-position":"center","-webkit-mask-position":"center","mask-repeat":"no-repeat","-webkit-mask-repeat":"no-repeat"}));var b=Zf(),A=M(b);V(()=>{be(b,i(m)),be(A,i(k))}),T(e,b),ae(),a()}const Du=Symbol("selected");function Jf(e){vr(Du,e)}function ks(){const e=We(Du);if(e===void 0)throw new Error("Tabs context not found");return e}function Qf(e,r){ne(r,!0);const t=()=>Se(o,"$control",n),[n,a]=Me(),{control:o}=ks();Lr(e,rr(()=>t().stack)),ae(),a()}function em(e,r){ne(r,!0);const{selectedTabId:t,selectTab:n}=ks();jo(mt(t,o=>o===r.tab_id)),Lr(e,rr(()=>r.stack,{onclick:()=>{n(r.tab_id,r.tab_index)}})),ae()}var rm=U('<div role="button" tabindex="0" aria-label="Toggle" class="toggle svelte-ijnnlh"><div class="thumb svelte-ijnnlh"></div></div>');const tm={hash:"svelte-ijnnlh",code:`.toggle.svelte-ijnnlh {appearance:none;--height: 31px;position:relative;width:51px;height:var(--height);border-radius:calc(var(--height) / 2);cursor:pointer;user-select:none;transition:background-color 300ms ease;}.thumb.svelte-ijnnlh {--size: 27px;position:absolute;top:2px;width:var(--size);height:var(--size);border-radius:50%;box-shadow:0 1px 3px rgba(0, 0, 0, 0.2),
|
|
14
|
+
`;return typeof l=="function"&&l(null,y),y},ms}var fu;function lf(){if(fu)return da;fu=1;const e=Ug(),r=af(),t=of(),n=sf();function a(o,s,l,c,u){const d=[].slice.call(arguments,1),p=d.length,_=typeof d[p-1]=="function";if(!_&&!e())throw new Error("Callback required as last argument");if(_){if(p<2)throw new Error("Too few arguments provided");p===2?(u=l,l=s,s=c=void 0):p===3&&(s.getContext&&typeof u>"u"?(u=c,c=void 0):(u=c,c=l,l=s,s=void 0))}else{if(p<1)throw new Error("Too few arguments provided");return p===1?(l=s,s=c=void 0):p===2&&!s.getContext&&(c=l,l=s,s=void 0),new Promise(function(g,f){try{const v=r.create(l,c);g(o(v,s,c))}catch(v){f(v)}})}try{const g=r.create(l,c);u(null,o(g,s,c))}catch(g){u(g)}}return da.create=r.create,da.toCanvas=a.bind(null,t.render),da.toDataURL=a.bind(null,t.renderToDataURL),da.toString=a.bind(null,function(o,s,l){return n.render(o,l)}),da}var cf=lf();const uf=Bg(cf);var df=U('<div class="qr-wrapper svelte-1il5mbc"><img alt="Redemption QR Code" class="qr-code svelte-1il5mbc"/></div>');const pf={hash:"svelte-1il5mbc",code:".qr-wrapper.svelte-1il5mbc {display:flex;justify-content:center;align-items:center;align-self:center;width:fit-content;margin:0 auto;background-color:#ffffff;border-radius:8px;padding:16px;}.qr-code.svelte-1il5mbc {display:block;width:128px;height:128px;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;}"};function _f(e,r){ne(r,!0),oe(e,pf);const t=()=>Se(o,"$variables",n),[n,a]=Me(),o=Oo(),s=h(()=>{var f;return(f=t())==null?void 0:f["success.redemption_url"]});let l=X(!0),c=X(""),u=X(!1);_r(()=>{const f=window.matchMedia("(max-width: 767px)");L(l,f.matches,!0);const v=y=>{L(l,y.matches,!0)};return f.addEventListener("change",v),()=>{f.removeEventListener("change",v)}}),tt(()=>{!i(l)&&i(s)&&(L(u,!1),uf.toDataURL(i(s),{width:512,margin:2,errorCorrectionLevel:"M",color:{dark:"#000000",light:"#ffffff"}}).then(f=>{L(c,f,!0)}).catch(f=>{console.warn("Failed to generate QR code:",f),L(u,!0)}))});var d=he(),p=ee(d);{var _=f=>{Lr(f,rr(()=>r.stack,{onclick:()=>{window.location.href=i(s)}}))},g=f=>{var v=he(),y=ee(v);{var m=w=>{var k=df(),b=M(k);V(()=>ie(b,"src",i(c))),T(w,k)};Y(y,w=>{i(c)&&w(m)},!0)}T(f,v)};Y(p,f=>{(i(l)||i(u))&&i(s)?f(_):f(g,!1)})}T(e,d),ae(),a()}var mu;(function(e){e.body_s="p",e.body_m="p",e.body_l="p",e.body_xl="p",e.heading_xs="h6",e.heading_s="h5",e.heading_m="h4",e.heading_l="h3",e.heading_xl="h2",e.heading_xxl="h1"})(mu||(mu={}));var Lo;(function(e){e[e.extra_light=100]="extra_light",e[e.thin=200]="thin",e[e.light=300]="light",e[e.regular=400]="regular",e[e.medium=500]="medium",e[e.semibold=600]="semibold",e[e.bold=700]="bold",e[e.extra_bold=800]="extra_bold",e[e.black=900]="black"})(Lo||(Lo={}));var Bo;(function(e){e.body_s="13px",e.body_m="14px",e.body_l="15px",e.body_xl="16px",e.heading_xs="14px",e.heading_s="16px",e.heading_m="18px",e.heading_l="20px",e.heading_xl="26px",e.heading_xxl="32px"})(Bo||(Bo={}));var Uo;(function(e){e.leading="start",e.center="center",e.trailing="end"})(Uo||(Uo={}));var hu;(function(e){e.vertical="column",e.horizontal="row",e.zlayer="zstack"})(hu||(hu={}));var yu;(function(e){e.top="flex-start",e.leading="flex-start",e.center="center",e.bottom="flex-end",e.trailing="flex-end"})(yu||(yu={}));var vu;(function(e){e.space_between="space-between",e.space_around="space-around",e.space_evenly="space-evenly",e.start="flex-start",e.center="center",e.end="flex-end"})(vu||(vu={}));const hs="light",gf="#000000",bu={top:0,bottom:0,leading:0,trailing:0};function He(e){return Object.entries(e).map(([r,t])=>`${r}:${t}`).join(";")}function Er(e){return`${e}px`}function ku(...e){return e.map(Er).join(" ")}function Jt(e,r){return r[e]??r.light}function wr(e){switch(e.type){case"fill":return navigator.userAgent.includes("Firefox")?"-moz-available":"-webkit-fill-available";case"fit":return"fit-content";case"fixed":return Er(e.value);case"relative":return`${e.value*100}%`}}function ur(e){const{top:r,bottom:t,leading:n,trailing:a}=e??bu;return ku(r,a,t,n)}function wu(e){if(e.type==="alias"||e.type==="hex")return e.value;const r=e.points.map(t=>`${t.color} ${t.percent}%`).join(", ");switch(e.type){case"linear":return`linear-gradient(${e.degrees}deg, ${r})`;case"radial":return`radial-gradient(circle, ${r})`}}function Pr(e,r){if(r==null)return"transparent";const t=Jt(e,r);return wu(t)}function ff(e,r){return r==null?"transparent":Pr(e,r)}function Tn(e,r){if(r==null)return"none";const t=Pr(e,r.color);return`${r.width}px solid ${t}`}function mf(e){if(e==null)return"0";const{top_leading:r,top_trailing:t,bottom_trailing:n,bottom_leading:a}=e;return ku(r,t,n,a)}function pa(e){switch(e==null?void 0:e.type){case void 0:case"concave":case"convex":return"0";case"rectangle":return`${mf(e.corners)}`;case"circle":case"pill":return"9999px"}}function _a(e,r){if(r==null)return"none";const{x:t,y:n,radius:a}=r,o=Pr(e,r.color);return`${t}px ${n}px ${a}px ${o}`}function Ro(e){switch(e){case"fill":return"cover";case"fit":return"contain"}}function hf(e,r){return`url(${Jt(e,r).webp})`}function yf(e,r){return console.error("Not supported yet"),`url(${Jt(e,r)})`}function vf(e,r,t){return t==null?r==null?"none":Pr(e,r):t.type==="color"?Pr(e,r??t.value):t.type==="image"?hf(e,t.value):yf(e,t.value)}function In(e,r,t){const n=vf(e,r,t);if((t==null?void 0:t.type)!=="image")return{background:n};const{fit_mode:a,color_overlay:o}=t;return{background:n,"background-size":Ro(a),"background-position":a==="fill"?"center":"top center","background-repeat":"no-repeat","--overlay":ff(e,o)}}function bf(e){return e.startsWith("RCFM:")}function ys(e){return`RevCatPaywall-${e}`}async function kf(e){var t;if(!e.app.fonts||typeof document>"u")return;const r=[];for(const[n,a]of Object.entries(e.app.fonts)){const o=a.web;if(!o||!o.url||!o.family){console.warn(`[Font Registration] Skipping font ${n}: missing web config or required fields`);continue}try{const s=`${ys(o.family)}-${o.style}-${o.weight}`,l=new FontFace(s,`url(${o.url})`,{weight:((t=o.weight)==null?void 0:t.toString())||"400",style:o.style||"normal"});l.family=ys(o.family);const c=l.load().then(()=>{document.fonts.add(l),console.debug(`[Font Registration] Successfully registered font: ${s} (${o.family}, ${o.weight}, ${o.style})`)}).catch(u=>{console.warn(`[Font Registration] Failed to load font ${o.family}:`,u)});r.push(c)}catch(s){console.warn(`[Font Registration] Failed to create FontFace for ${n}:`,s)}}try{await Promise.allSettled(r),console.debug(`[Font Registration] Font registration complete. Processed ${r.length} fonts.`)}catch(n){console.warn("[Font Registration] Unexpected error during font registration:",n)}}const wf={light:{type:"hex",value:gf}};function Pf(e,r){const t=Jt(e,r),n=wu(t);switch(t.type){case"alias":case"hex":return{color:n};case"linear":case"radial":return{color:"transparent",background:n,"-webkit-background-clip":"text","background-clip":"text"}}}const xf=(e,r,t)=>{var f;const{font_name:n,font_size:a,font_weight:o,font_weight_int:s,horizontal_alignment:l,color:c=wf,padding:u,margin:d,size:p}=r,_=t[n??""],g=(f=_==null?void 0:_.web)==null?void 0:f.family;return He({display:"block",width:wr(p.width),height:wr(p.height),margin:ur(d),padding:ur(u),...Pf(e,c),"text-align":Uo[l]||Uo.leading,"font-weight":s??Lo[o]??Lo.regular,"font-size":Number.isInteger(Number(a))?`${a}px`:Bo[a]||Bo.body_m,"font-family":bf(n??"")?ys(g??""):"sans-serif"})};function Ef(e,r,t,n){return He({display:"block",position:"relative",width:wr(t.width),height:wr(t.height),...In(e,n,null)})}function Sf(e){return e?Object.values({newLine:{regexp:/\\\n/g,output:"<br/>"},bold:{regexp:/\*\*(.*?)\*\*/g,output:"<b>$1</b>"},italic:{regexp:/\*(.*?)\*/g,output:"<i>$1</i>"},strikethrough:{regexp:/~(.*?)~/g,output:"<s>$1</s>"},code:{regexp:/`(.*?)`/g,output:"<span style='font-family: monospace'>$1</span>"},link:{regexp:/\[(.*?)\]\((.*?)\)/g,output:"<a href=$2 target='_blank' rel='noopener noreferrer'>$1</a>"}}).reduce((t,{regexp:n,output:a})=>t.replaceAll(n,a),e):""}function Tf(e,r){const t=K(r,"style",3,""),n=K(r,"component",3,"p");var a=he(),o=ee(a);Mi(o,n,!1,(s,l)=>{Bi(s,()=>({style:t()}));var c=he(),u=ee(c);er(u,()=>r.children??De),T(l,c)}),T(e,a)}class If{constructor(r,t){we(this,po);we(this,_o);de(this,po,r),de(this,_o,Il(t))}get current(){return B(this,_o).call(this),B(this,po).call(this)}}po=new WeakMap,_o=new WeakMap;const Df=/\(.+\)/,Cf=new Set(["all","print","screen","and","or","not","only"]);class Af extends If{constructor(r,t){let n=Df.test(r)||r.split(/[\s,]+/).some(o=>Cf.has(o.trim()))?r:`(${r})`;const a=window.matchMedia(n);super(()=>a.matches,o=>u_(a,"change",o))}}const Pu=Symbol("color-mode");function qf(e){const r=new Af("prefers-color-scheme: dark",((e==null?void 0:e())??hs)==="dark"),t=()=>(e==null?void 0:e())??(r.current?"dark":hs);return vr(Pu,t),t}function at(){return We(Pu)??(()=>hs)}const xu=Symbol("localization");function Ff(e){const t={getLocalizedString:n=>{var d,p;if(!n)return"";const{selectedLocale:a,defaultLocale:o,localizations:s}=e(),c=(d=s[a??o])==null?void 0:d[n],u=(p=s[o])==null?void 0:p[n];return c??u}};return vr(xu,t),t}function zf(){const e=We(xu);if(e===void 0)throw new Error("Localization context not found");return e}function Mf(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}const jf={uppercase:e=>String(e??"").toUpperCase(),lowercase:e=>String(e??"").toLowerCase(),capitalize:e=>String(e??"").replaceAll(new RegExp("(\\p{Letter}+)","giu"),Mf)};function Of(e,r){const t=/\{\{\s*([a-z0-9._-]+)(?:\s*\|\s*([^}]*))?\s*\}\}/gi;return e.replace(t,(n,a,o)=>{const s=a==null?void 0:a.trim(),l=s&&r[s];if(l===void 0)return"N/A";const c=o==null?void 0:o.trim();if(c===void 0)return l;const u=jf[c];return u?u(l):l})}function Nf(e="",r){return r===void 0?e:Of(e,r)}const Eu=Symbol("packageInfo");function Su(e){vr(Eu,e)}function Tu(){const e=We(Eu);if(e===void 0)throw new Error("PackageInfo context not found");return e}var Lf=U("<span><!></span>");function vs(e,r){ne(r,!0);const t=()=>Se(c,"$selectedState",o),n=()=>Se(u,"$packageInfo",o),a=()=>Se(y,"$variables",o),[o,s]=Me(),l=gr(r,["$$slots","$$events","$$legacy"]),c=Xr(),u=Tu(),d=h(()=>{var E;return{...l,...Zr(t(),r.overrides),...Cg(!!((E=n())!=null&&E.hasIntroOffer),r.overrides)}}),p=at(),_=h(p),{uiConfig:g}=ua();let f=h(()=>xf(i(_),i(d),g.app.fonts));const v=h(()=>Ef(i(_),i(d),i(d).size,i(d).background_color)),y=Oo(),{getLocalizedString:m}=zf(),w=h(()=>Nf(m(i(d).text_lid),a())),k=h(()=>Sf(i(w)));var b=Lf(),A=M(b);Tf(A,{get style(){return i(f)},component:"span",children:(E,x)=>{var D=he(),I=ee(D);ln(I,()=>i(k)),T(E,D)},$$slots:{default:!0}}),V(()=>be(b,i(v))),T(e,b),ae(),s()}function Bf(e){switch(e){case"top":return"flex-start";case"center":return"center";case"bottom":return"flex-end"}}function Uf(e,r,t){return Math.max(r,Math.min(e,t))}function Vo(e){if(e===null)return 0;const r=window.getComputedStyle(e);return new WebKitCSSMatrix(r.transform).m41}var Rf=U('<div class="page svelte-1cxmtou" role="group" aria-roledescription="slide"><!></div>');const Vf={hash:"svelte-1cxmtou",code:"div.svelte-1cxmtou {flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;}"};function bs(e,r){oe(e,Vf);const t=K(r,"hidden",3,!1);var n=Rf(),a=M(n);Lr(a,rr(()=>r.page)),V(()=>{ie(n,"aria-label",`Slide ${r.index+1} of ${r.pages}`),ie(n,"aria-current",r.selected),ie(n,"aria-hidden",t())}),T(e,n)}var Hf=U("<div></div>"),Wf=U('<div class="control svelte-1t68hwt"></div>');const Yf={hash:"svelte-1t68hwt",code:".control.svelte-1t68hwt {align-self:center;display:flex;flex-direction:row;align-items:center;justify-content:center;}"};function Gf(e,r){ne(r,!0),oe(e,Yf);const t=K(r,"background_color",3,null),n=K(r,"border",3,null),a=K(r,"shape",3,null),o=K(r,"shadow",3,null),s=at(),l=h(s);function c(f){return f.stroke_width==null||f.stroke_color==null?"none":Tn(i(l),{width:f.stroke_width,color:f.stroke_color})}function u(f){return He({width:Er(f.width),height:Er(f.height),background:Pr(i(l),f.color),border:c(f),"border-radius":"9999px"})}const d=h(()=>u(r.default)),p=h(()=>u(r.active)),_=h(()=>He({order:r.position==="top"?-1:1,gap:Er(r.spacing),margin:ur(r.margin),padding:ur(r.padding),...In(i(l),t(),null),border:Tn(i(l),n()),"border-radius":pa(a()),"box-shadow":_a(i(l),o())}));var g=Wf();Et(g,21,()=>({length:r.length}),$t,(f,v,y)=>{var m=Hf();V(()=>be(m,y===r.selected?i(p):i(d))),T(f,m)}),V(()=>be(g,i(_))),T(e,g),ae()}var $f=U('<div class="carousel svelte-1pfgqxn"><div class="slider svelte-1pfgqxn" role="region" aria-label="Feature carousel" aria-roledescription="carousel" aria-live="polite"><!> <!> <!></div> <!></div>');const Kf={hash:"svelte-1pfgqxn",code:".carousel.svelte-1pfgqxn {max-width:100%;display:flex;flex-direction:column;overflow:hidden;}.slider.svelte-1pfgqxn {display:flex;flex-direction:row;flex-wrap:nowrap;transition-property:transform;transition-duration:500ms;transition-timing-function:ease-in-out;transition-delay:2500ms;transform:translateX(0);cursor:grab;&:active {cursor:grabbing;user-select:none;}}"};function Xf(e,r){ne(r,!0),oe(e,Kf);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).pages),u=h(()=>i(l).padding),d=h(()=>i(l).margin),p=h(()=>i(l).background),_=h(()=>i(l).shape),g=h(()=>i(l).border),f=h(()=>i(l).shadow),v=h(()=>i(l).page_alignment),y=h(()=>i(l).page_spacing),m=h(()=>i(l).page_peek),w=h(()=>i(l).page_control),k=h(()=>i(l).initial_page_index),b=h(()=>i(l).loop),A=h(()=>i(l).auto_advance),E=at(),x=h(E),D=h(()=>{var le;return He({margin:ur(i(d)),padding:ur(i(u)),...In(i(x),null,i(p)),border:Tn(i(x),i(g)),"border-radius":pa(i(_)),"box-shadow":_a(i(x),i(f)),"transition-duration":`${((le=i(A))==null?void 0:le.ms_transition_time)??0}ms`})}),I=h(()=>He({gap:Er(i(y)),padding:`0 ${i(m)+i(y)}px`,"align-items":Bf(i(v))})),j=h(()=>{if(!i(b))return[];const le=i(c).length-1;switch(i(c).length){case 0:return[];case 1:return[0,0];case 2:return[0,le];default:return[le-1,le]}}),F=h(()=>{if(!i(b))return[];switch(i(c).length){case 0:return[];case 1:return[0,0];default:return[0,1]}});let P=null,S=X(0),q=X(0),N=h(()=>2*i(m)+i(y)),C=h(()=>i(q)-i(N));function z(le=!0,je){var pr,ut;if(P===null)return;const tr=le?((pr=i(A))==null?void 0:pr.ms_time_per_page)??0:0;je??(je=((ut=i(A))==null?void 0:ut.ms_transition_time)??0),P.style.transition=`transform ${je}ms ease-in-out ${tr}ms`}function O(){P!==null&&(P.style.transition="none")}const G=h(()=>i(b)?2:0);function R(le){P!==null&&(P.style.transform=`translateX(${le}px)`)}function $(le){if(P===null)return;le+=i(G);const je=le*-i(C);R(je)}function te(le){le%=i(c).length+i(G),z(!0),$(le)}function ge(){i(A)!=null&&requestAnimationFrame(()=>{te(i(S)+1)})}_r(()=>{const le=i(c).at(i(k))!==void 0?i(k):0;L(S,le,!0),O(),$(i(S)),ge()});function pe(le){return Math.round(le/-i(C))-i(G)}function fe(){const le=Vo(P),je=pe(le);L(S,(je+i(c).length)%i(c).length),O(),$(i(S)),requestAnimationFrame(()=>{ge()})}let ye=X(0);function me(le){le.currentTarget.setPointerCapture(le.pointerId),L(ye,Vo(P),!0)}function qe(le){le.currentTarget.releasePointerCapture(le.pointerId);const tr=Vo(P),pr=pe(tr);z(!1,500),$(pr)}function Ue(le){if(!le.currentTarget.hasPointerCapture(le.pointerId))return;const[tr,pr]=i(b)?[i(ye)-i(q),i(ye)+i(q)]:[-(i(c).length-1)*i(C),0],ut=Vo(P),xa=Uf(ut+le.movementX,tr,pr),On=pe(xa);L(S,(On+i(c).length)%i(c).length),R(xa),O()}var Ve=$f(),Je=M(Ve);Je.__pointerdown=me,Je.__pointerup=qe,Je.__pointermove=Ue;var Tr=M(Je);Et(Tr,17,()=>i(j),$t,(le,je)=>{{let tr=h(()=>i(S)===i(je));bs(le,{get page(){return i(c)[i(je)]},get index(){return i(je)},get pages(){return i(c).length},get selected(){return i(tr)},hidden:!0})}});var Rr=H(Tr,2);Et(Rr,17,()=>i(c),$t,(le,je,tr)=>{{let pr=h(()=>i(S)===tr);bs(le,{get page(){return i(je)},index:tr,get pages(){return i(c).length},get selected(){return i(pr)}})}});var ve=H(Rr,2);Et(ve,17,()=>i(F),$t,(le,je)=>{{let tr=h(()=>i(S)===i(je));bs(le,{get page(){return i(c)[i(je)]},get index(){return i(je)},get pages(){return i(c).length},get selected(){return i(tr)},hidden:!0})}}),zo(Je,le=>P=le,()=>P);var Ge=H(Je,2);{var Qr=le=>{Gf(le,rr(()=>i(w),{get length(){return i(c).length},get selected(){return i(S)}}))};Y(Ge,le=>{i(w)!=null&&le(Qr)})}V(()=>{be(Ve,i(D)),be(Je,i(I))}),$r("transitionend",Je,fe),Ri(Je,"clientWidth",le=>L(q,le)),T(e,Ve),ae(),a()}Ua(["pointerdown","pointerup","pointermove"]);var Zf=U("<div><div></div></div>");function Iu(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).base_url),u=h(()=>i(l).formats),d=h(()=>i(l).size),p=h(()=>i(l).margin),_=h(()=>i(l).padding),g=h(()=>i(l).color),f=h(()=>i(l).icon_background),v=at(),y=h(v),m=h(()=>{var E,x,D,I;return He({width:wr(i(d).width),height:wr(i(d).height),margin:ur(i(p)),padding:ur(i(_)),"background-color":Pr(i(y),(E=i(f))==null?void 0:E.color),border:Tn(i(y),(x=i(f))==null?void 0:x.border),"border-radius":pa((D=i(f))==null?void 0:D.shape),"box-shadow":_a(i(y),(I=i(f))==null?void 0:I.shadow),flex:"0 0 auto"})}),w=h(()=>`${i(c)}/${i(u).webp}`),k=h(()=>He({width:"100%",height:"100%",position:"relative","z-index":1,overflow:"hidden","background-color":Pr(i(y),i(g)),"mask-image":`url(${i(w)})`,"-webkit-mask-image":`url(${i(w)})`,"mask-size":"contain","-webkit-mask-size":"contain","mask-position":"center","-webkit-mask-position":"center","mask-repeat":"no-repeat","-webkit-mask-repeat":"no-repeat"}));var b=Zf(),A=M(b);V(()=>{be(b,i(m)),be(A,i(k))}),T(e,b),ae(),a()}const Du=Symbol("selected");function Jf(e){vr(Du,e)}function ks(){const e=We(Du);if(e===void 0)throw new Error("Tabs context not found");return e}function Qf(e,r){ne(r,!0);const t=()=>Se(o,"$control",n),[n,a]=Me(),{control:o}=ks();Lr(e,rr(()=>t().stack)),ae(),a()}function em(e,r){ne(r,!0);const{selectedTabId:t,selectTab:n}=ks();jo(mt(t,o=>o===r.tab_id)),Lr(e,rr(()=>r.stack,{onclick:()=>{n(r.tab_id,r.tab_index)}})),ae()}var rm=U('<div role="button" tabindex="0" aria-label="Toggle" class="toggle svelte-jfea2b"><div class="thumb svelte-jfea2b"></div></div>');const tm={hash:"svelte-jfea2b",code:`.toggle.svelte-jfea2b {appearance:none;--height: 31px;position:relative;width:51px;height:var(--height);border-radius:calc(var(--height) / 2);cursor:pointer;user-select:none;transition:background-color 300ms ease;}.thumb.svelte-jfea2b {--size: 27px;position:absolute;top:2px;width:var(--size);height:var(--size);border-radius:50%;box-shadow:0 1px 3px rgba(0, 0, 0, 0.2),
|
|
15
15
|
0 1px 2px rgba(0, 0, 0, 0.12);transition:left 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
16
|
-
background-color 300ms ease;}`};function nm(e,r){ne(r,!0),oe(e,tm);const t=()=>Se(l,"$selectedState",a),n=()=>Se(g,"$isActive",a),[a,o]=Me(),s=gr(r,["$$slots","$$events","$$legacy"]),l=Xr(),c=h(()=>({...s,...Zr(t(),r.overrides)})),u=h(()=>i(c).thumb_color_on),d=h(()=>i(c).thumb_color_off),p=h(()=>i(c).track_color_on),_=h(()=>i(c).track_color_off),{isActive:g,selectTab:f}=ks();jo(g);const v=at(),y=h(v),m=h(()=>He({background:n()?Pr(i(y),i(p)):Pr(i(y),i(_))})),w=h(()=>He({left:n()?"22px":"2px",background:n()?Pr(i(y),i(u)):Pr(i(y),i(d))})),k=()=>{f("",n()?0:1)},b=x=>{(x.code==="Enter"||x.code==="Space")&&k()};var A=rm();A.__click=k,A.__keydown=b;var E=M(A);V(()=>{be(A,i(m)),be(E,i(w))}),T(e,A),ae(),o()}Ua(["click","keydown"]);var am=U("<div><!></div>");function om(e,r){ne(r,!0);const t=()=>Se(d,"$selectedState",a),n=()=>Se(x,"$tab",a),[a,o]=Me(),s=gr(r,["$$slots","$$events","$$legacy"]),{control:l,tabs:c,default_tab_id:u}=s,d=Xr(),p=h(()=>({...s,...Zr(t(),r.overrides)})),_=h(()=>i(p).size),g=h(()=>i(p).padding),f=h(()=>i(p).margin),v=h(()=>i(p).background),y=h(()=>i(p).shape),m=h(()=>i(p).border),w=h(()=>i(p).shadow),k=at(),b=h(k),A=h(()=>He({width:wr(i(_).width),height:wr(i(_).height),margin:ur(i(f)),padding:ur(i(g)),...In(i(b),null,i(v)),border:Tn(i(b),i(m)),"border-radius":pa(i(y)),"box-shadow":_a(i(b),i(w))})),E=Xt(Math.max(0,c.findIndex(P=>P.id===u))),x=mt(E,P=>c[P]),D=(P,S)=>{const q=c.findIndex(C=>C.id===P),N=q!==-1?q:S;N>=0&&N<c.length&&E.set(S)};Jf({control:xn(l),selectedTabId:mt(x,P=>P.id),selectTab:D,isActive:mt(E,P=>P===1)});var I=am(),j=M(I);{var F=P=>{Lr(P,rr(()=>n().stack))};Y(j,P=>{n()!==void 0&&P(F)})}V(()=>be(I,i(A))),T(e,I),ae(),o()}function Ga(e,r){ne(r,!0);const t={button:Ag,carousel:Xf,countdown:mm,footer:Fu,icon:Iu,image:Mm,input_multiple_choice:Fg,input_option:Ng,input_single_choice:Lg,package:jm,purchase_button:Gm,redemption_button:_f,stack:Lr,tab_control_button:em,tab_control_toggle:nm,tab_control:Qf,tabs:om,text:vs,timeline:eh,video:lh},n=g=>{if(t[g.type])return[t[g.type],g];const{fallback:f}=g;if(f&&t[f==null?void 0:f.type])return[t[f.type],f]},a=gr(r,["$$slots","$$events","$$legacy","nodeData"]),o=h(()=>n(r.nodeData)??[]),s=h(()=>bo(i(o),2)),l=h(()=>i(s)[0]),c=h(()=>i(s)[1]);var u={getComponentClass:n},d=he(),p=ee(d);{var _=g=>{var f=he(),v=ee(f);k_(v,()=>i(l),(y,m)=>{m(y,rr(()=>i(c)||{},()=>a))}),T(g,f)};Y(p,g=>{i(l)&&g(_)})}return T(e,d),ae(u)}const im=Object.freeze({leading:"flex-start",top:"flex-start",center:"center",trailing:"flex-end",bottom:"flex-end"}),sm=Object.freeze({space_between:"space-between",space_around:"space-around",space_evenly:"space-evenly",start:"flex-start",center:"center",end:"flex-end"});function Cu(e){if(e.type==="zlayer")return{};const r=e.type==="vertical"?"column":"row",t=sm[e.distribution]||"center",n=im[e.alignment]||"center";return{"flex-direction":r,"justify-content":t,"align-items":n}}const lm=Object.freeze({top_leading:{justifyContent:"flex-start",alignItems:"flex-start"},top:{justifyContent:"center",alignItems:"flex-start"},top_trailing:{justifyContent:"flex-end",alignItems:"flex-start"},leading:{justifyContent:"flex-start",alignItems:"center"},center:{justifyContent:"center",alignItems:"center"},trailing:{justifyContent:"flex-end",alignItems:"center"},bottom_leading:{justifyContent:"flex-start",alignItems:"flex-end"},bottom:{justifyContent:"center",alignItems:"flex-end"},bottom_trailing:{justifyContent:"flex-end",alignItems:"flex-end"}});function cm(e){return lm[e]}function um(e,r){if(e==null)return{};const{style:t,alignment:n}=e,a=n.startsWith("top"),o=n.endsWith("leading"),s=n.endsWith("trailing"),l=!o&&!s,c=r??0;if(t==="overlay"){const u=l?"translateX(-50%)":"",d=a?"translateY(-50%)":"translateY(50%)";return{"z-index":10,position:"absolute",width:"max-content",top:a?Er(-c/2):"initial",bottom:a?"initial":Er(-c/2),left:o?Er(-c):l?"50%":"initial",right:s?Er(-c):"initial",transform:`${u} ${d}`}}return t==="nested"?{"z-index":10,position:"absolute",inset:0,display:"flex",top:a?Er(c):"initial",bottom:a?"initial":Er(c),left:o?Er(c):l?"50%":"initial",right:s?Er(c):"initial",transform:l?"translateX(-50%)":"initial"}:{}}var dm=U("<div><!></div>"),pm=U("<div><!></div>"),_m=U('<div style="position: relative; width: 100%; height: 100%;"></div>'),gm=U("<!> <!> <!>",1);const fm={hash:"svelte-
|
|
16
|
+
background-color 300ms ease;}`};function nm(e,r){ne(r,!0),oe(e,tm);const t=()=>Se(l,"$selectedState",a),n=()=>Se(g,"$isActive",a),[a,o]=Me(),s=gr(r,["$$slots","$$events","$$legacy"]),l=Xr(),c=h(()=>({...s,...Zr(t(),r.overrides)})),u=h(()=>i(c).thumb_color_on),d=h(()=>i(c).thumb_color_off),p=h(()=>i(c).track_color_on),_=h(()=>i(c).track_color_off),{isActive:g,selectTab:f}=ks();jo(g);const v=at(),y=h(v),m=h(()=>He({background:n()?Pr(i(y),i(p)):Pr(i(y),i(_))})),w=h(()=>He({left:n()?"22px":"2px",background:n()?Pr(i(y),i(u)):Pr(i(y),i(d))})),k=()=>{f("",n()?0:1)},b=x=>{(x.code==="Enter"||x.code==="Space")&&k()};var A=rm();A.__click=k,A.__keydown=b;var E=M(A);V(()=>{be(A,i(m)),be(E,i(w))}),T(e,A),ae(),o()}Ua(["click","keydown"]);var am=U("<div><!></div>");function om(e,r){ne(r,!0);const t=()=>Se(d,"$selectedState",a),n=()=>Se(x,"$tab",a),[a,o]=Me(),s=gr(r,["$$slots","$$events","$$legacy"]),{control:l,tabs:c,default_tab_id:u}=s,d=Xr(),p=h(()=>({...s,...Zr(t(),r.overrides)})),_=h(()=>i(p).size),g=h(()=>i(p).padding),f=h(()=>i(p).margin),v=h(()=>i(p).background),y=h(()=>i(p).shape),m=h(()=>i(p).border),w=h(()=>i(p).shadow),k=at(),b=h(k),A=h(()=>He({width:wr(i(_).width),height:wr(i(_).height),margin:ur(i(f)),padding:ur(i(g)),...In(i(b),null,i(v)),border:Tn(i(b),i(m)),"border-radius":pa(i(y)),"box-shadow":_a(i(b),i(w))})),E=Xt(Math.max(0,c.findIndex(P=>P.id===u))),x=mt(E,P=>c[P]),D=(P,S)=>{const q=c.findIndex(C=>C.id===P),N=q!==-1?q:S;N>=0&&N<c.length&&E.set(S)};Jf({control:xn(l),selectedTabId:mt(x,P=>P.id),selectTab:D,isActive:mt(E,P=>P===1)});var I=am(),j=M(I);{var F=P=>{Lr(P,rr(()=>n().stack))};Y(j,P=>{n()!==void 0&&P(F)})}V(()=>be(I,i(A))),T(e,I),ae(),o()}function Ga(e,r){ne(r,!0);const t={button:Ag,carousel:Xf,countdown:mm,footer:Fu,icon:Iu,image:Mm,input_multiple_choice:Fg,input_option:Ng,input_single_choice:Lg,package:jm,purchase_button:Gm,redemption_button:_f,stack:Lr,tab_control_button:em,tab_control_toggle:nm,tab_control:Qf,tabs:om,text:vs,timeline:eh,video:lh},n=g=>{if(t[g.type])return[t[g.type],g];const{fallback:f}=g;if(f&&t[f==null?void 0:f.type])return[t[f.type],f]},a=gr(r,["$$slots","$$events","$$legacy","nodeData"]),o=h(()=>n(r.nodeData)??[]),s=h(()=>bo(i(o),2)),l=h(()=>i(s)[0]),c=h(()=>i(s)[1]);var u={getComponentClass:n},d=he(),p=ee(d);{var _=g=>{var f=he(),v=ee(f);k_(v,()=>i(l),(y,m)=>{m(y,rr(()=>i(c)||{},()=>a))}),T(g,f)};Y(p,g=>{i(l)&&g(_)})}return T(e,d),ae(u)}const im=Object.freeze({leading:"flex-start",top:"flex-start",center:"center",trailing:"flex-end",bottom:"flex-end"}),sm=Object.freeze({space_between:"space-between",space_around:"space-around",space_evenly:"space-evenly",start:"flex-start",center:"center",end:"flex-end"});function Cu(e){if(e.type==="zlayer")return{};const r=e.type==="vertical"?"column":"row",t=sm[e.distribution]||"center",n=im[e.alignment]||"center";return{"flex-direction":r,"justify-content":t,"align-items":n}}const lm=Object.freeze({top_leading:{justifyContent:"flex-start",alignItems:"flex-start"},top:{justifyContent:"center",alignItems:"flex-start"},top_trailing:{justifyContent:"flex-end",alignItems:"flex-start"},leading:{justifyContent:"flex-start",alignItems:"center"},center:{justifyContent:"center",alignItems:"center"},trailing:{justifyContent:"flex-end",alignItems:"center"},bottom_leading:{justifyContent:"flex-start",alignItems:"flex-end"},bottom:{justifyContent:"center",alignItems:"flex-end"},bottom_trailing:{justifyContent:"flex-end",alignItems:"flex-end"}});function cm(e){return lm[e]}function um(e,r){if(e==null)return{};const{style:t,alignment:n}=e,a=n.startsWith("top"),o=n.endsWith("leading"),s=n.endsWith("trailing"),l=!o&&!s,c=r??0;if(t==="overlay"){const u=l?"translateX(-50%)":"",d=a?"translateY(-50%)":"translateY(50%)";return{"z-index":10,position:"absolute",width:"max-content",top:a?Er(-c/2):"initial",bottom:a?"initial":Er(-c/2),left:o?Er(-c):l?"50%":"initial",right:s?Er(-c):"initial",transform:`${u} ${d}`}}return t==="nested"?{"z-index":10,position:"absolute",inset:0,display:"flex",top:a?Er(c):"initial",bottom:a?"initial":Er(c),left:o?Er(c):l?"50%":"initial",right:s?Er(c):"initial",transform:l?"translateX(-50%)":"initial"}:{}}var dm=U("<div><!></div>"),pm=U("<div><!></div>"),_m=U('<div style="position: relative; width: 100%; height: 100%;"></div>'),gm=U("<!> <!> <!>",1);const fm={hash:"svelte-1v53j4l",code:'.stack.svelte-1v53j4l {appearance:none;position:relative;&[role="button"] {cursor:pointer;}&::before {content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--overlay);}}'};function Lr(e,r){ne(r,!0),oe(e,fm);const t=()=>Se(p,"$hoverState",a),n=()=>Se(d,"$selectedState",a),[a,o]=Me(),s=gr(r,["$$slots","$$events","$$legacy"]),{onclick:l,children:c,style:u}=s,d=Xr(),p=Mg(),_=h(()=>({...s,...Dg(t(),r.overrides),...Zr(n(),r.overrides)})),g=h(()=>i(_).components),f=h(()=>i(_).size),v=h(()=>i(_).dimension),y=h(()=>i(_).spacing),m=h(()=>i(_).margin),w=h(()=>i(_).padding),k=h(()=>i(_).background_color),b=h(()=>i(_).background),A=h(()=>i(_).border),E=h(()=>i(_).shape),x=h(()=>i(_).shadow),D=h(()=>i(_).badge),I=at(),j=h(I),F=h(()=>He({...u,display:"flex",position:"relative",width:wr(i(f).width),height:wr(i(f).height),...Cu(i(v)),gap:Er(i(y)),margin:ur(i(m)),padding:ur(i(w)),...In(i(j),i(k),i(b)),border:Tn(i(j),i(A)),"border-radius":pa(i(E)),"box-shadow":_a(i(j),i(x))})),P=C=>{if(C===0||i(v).type!=="zlayer")return"";const{justifyContent:z,alignItems:O}=cm(i(v).alignment);return He({position:"absolute",inset:0,display:"flex","justify-content":z,"align-items":O,"z-index":C+1})},S=h(()=>{var C;return He(um(i(D),(C=i(A))==null?void 0:C.width))});var q=he(),N=ee(q);Mi(N,()=>l!==void 0?"button":"div",!1,(C,z)=>{Bi(C,()=>({role:l!==void 0?"button":void 0,onclick:l,style:i(F),class:"stack"}),void 0,void 0,void 0,"svelte-1v53j4l");var O=gm(),G=ee(O);{var R=fe=>{var ye=dm(),me=M(ye);Ga(me,{get nodeData(){return i(D).stack}}),V(()=>be(ye,i(S))),T(fe,ye)};Y(G,fe=>{i(D)&&fe(R)})}var $=H(G,2);{var te=fe=>{var ye=_m();Et(ye,21,()=>i(g),$t,(me,qe,Ue)=>{var Ve=pm(),Je=M(Ve);Ga(Je,{get nodeData(){return i(qe)}}),V(Tr=>be(Ve,Tr),[()=>P(Ue)]),T(me,Ve)}),T(fe,ye)},ge=fe=>{var ye=he(),me=ee(ye);Et(me,17,()=>i(g),$t,(qe,Ue)=>{Ga(qe,{get nodeData(){return i(Ue)}})}),T(fe,ye)};Y($,fe=>{i(v).type==="zlayer"?fe(te):fe(ge,!1)})}var pe=H($,2);c==null||c(pe),T(z,O)}),T(e,q),ae(),o()}function Ho(e){return e<10?`0${e}`:`${e}`}function Wo(e){return`${e}`}function Au(e){const r=new Date,n=new Date(e).getTime()-r.getTime();if(n<=0)return{count_days_with_zero:"00",count_days_without_zero:"0",count_hours_with_zero:"00",count_hours_without_zero:"0",count_minutes_with_zero:"00",count_minutes_without_zero:"0",count_seconds_with_zero:"00",count_seconds_without_zero:"0"};const a=Math.floor(n/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=Math.floor(s/24),u=s%24,d=o%60,p=a%60;return{count_days_with_zero:Ho(c),count_days_without_zero:Wo(c),count_hours_with_zero:Ho(u),count_hours_without_zero:Wo(u),count_minutes_with_zero:Ho(d),count_minutes_without_zero:Wo(d),count_seconds_with_zero:Ho(p),count_seconds_without_zero:Wo(p)}}function qu(e){const r=new Date;return new Date(e).getTime()<=r.getTime()}function mm(e,r){ne(r,!0);const t=gr(r,["$$slots","$$events","$$legacy"]),{countdown_stack:n,end_stack:a}=t;let o=X(Ze(Au(r.style.date))),s=X(Ze(qu(r.style.date)));const l=Oo(),c=Xt(i(o)),u=mt([l,c],([p,_])=>({...p,..._}));Yi(u),tt(()=>{const p=setInterval(()=>{L(o,Au(r.style.date),!0),L(s,qu(r.style.date),!0),c.set(i(o))},1e3);return()=>clearInterval(p)});const d=h(()=>i(s)&&a?a:n);Lr(e,rr(()=>i(d))),ae()}var hm=U('<div class="svelte-19m2lyh"><!></div>');const ym={hash:"svelte-19m2lyh",code:"div.svelte-19m2lyh {position:sticky;bottom:0;width:100%;z-index:1000;display:flex;flex-direction:row;justify-content:center;}"};function Fu(e,r){oe(e,ym);var t=hm(),n=M(t);Lr(n,rr(()=>r.stack)),T(e,t)}var vm=ar("<circle></circle>"),bm=ar("<path></path>"),km=ar("<path></path>"),wm=ar("<path></path>"),Pm=ar("<!><!><!><!>",1);function Yo(e,r){ne(r,!0);const t=h(()=>{var w;if(((w=r.shape)==null?void 0:w.type)!=="rectangle")return[0,0,0,0];const{corners:m}=r.shape;return[(m==null?void 0:m.top_leading)??0,(m==null?void 0:m.top_trailing)??0,(m==null?void 0:m.bottom_trailing)??0,(m==null?void 0:m.bottom_leading)??0]}),n=h(()=>bo(i(t),4)),a=h(()=>i(n)[0]),o=h(()=>i(n)[1]),s=h(()=>i(n)[2]),l=h(()=>i(n)[3]);var c=Pm(),u=ee(c);{var d=m=>{var w=vm();V(k=>{ie(w,"cx",r.width/2),ie(w,"cy",r.height/2),ie(w,"r",k)},[()=>Math.min(r.width,r.height)/2]),T(m,w)};Y(u,m=>{var w;((w=r.shape)==null?void 0:w.type)==="circle"&&m(d)})}var p=H(u);{var _=m=>{var w=bm();V(()=>ie(w,"d",`M 0 0 L ${r.width} 0 L ${r.width} ${r.height} Q ${r.width/2} ${r.height-54} 0 ${r.height} Z`)),T(m,w)};Y(p,m=>{var w;((w=r.shape)==null?void 0:w.type)==="concave"&&m(_)})}var g=H(p);{var f=m=>{var w=km();V(()=>ie(w,"d",`M 0 0 L ${r.width} 0 L ${r.width} ${r.height-27} Q ${r.width/2} ${r.height+27} 0 ${r.height-27} Z`)),T(m,w)};Y(g,m=>{var w;((w=r.shape)==null?void 0:w.type)==="convex"&&m(f)})}var v=H(g);{var y=m=>{var w=wm();V(()=>ie(w,"d",`M ${i(a)} 0 H ${r.width-i(o)} A ${i(o)} ${i(o)} 0 0 1 ${r.width} ${i(o)}
|
|
17
17
|
V ${r.height-i(s)} A ${i(s)} ${i(s)} 0 0 1 ${r.width-i(s)} ${r.height}
|
|
18
18
|
H ${i(l)} A ${i(l)} ${i(l)} 0 0 1 0 ${r.height-i(l)}
|
|
19
|
-
V ${i(a)} A ${i(a)} ${i(a)} 0 0 1 ${i(a)} 0 Z`)),T(m,w)};Y(v,m=>{var w,k;(((w=r.shape)==null?void 0:w.type)==="rectangle"||((k=r.shape)==null?void 0:k.type)===void 0)&&m(y)})}T(e,c),ae()}var xm=ar('<linearGradient x1="0" y1="0" x2="100%" y2="100%"><stop offset="0%"></stop><stop offset="100%"></stop></linearGradient>'),Em=ar("<stop></stop>"),Sm=ar("<linearGradient></linearGradient>"),Tm=ar("<stop></stop>"),Im=ar("<radialGradient></radialGradient>"),Dm=ar("<!><!><!>",1);function zu(e,r){ne(r,!0);var t=Dm(),n=ee(t);{var a=u=>{var d=xm(),p=M(d),_=H(p);V(()=>{ie(d,"id",r.id),ie(p,"stop-color",r.overlay.value),ie(_,"stop-color",r.overlay.value)}),T(u,d)};Y(n,u=>{var d;((d=r.overlay)==null?void 0:d.type)==="hex"&&u(a)})}var o=H(n);{var s=u=>{var d=Sm();Et(d,21,()=>r.overlay.points,$t,(p,_)=>{var g=Em();V(()=>{ie(g,"offset",`${i(_).percent}%`),ie(g,"stop-color",i(_).color)}),T(p,g)}),V(()=>{ie(d,"id",r.id),ie(d,"gradientTransform",`rotate(${r.overlay.degrees-90}, 0.5, 0.5)`)}),T(u,d)};Y(o,u=>{var d;((d=r.overlay)==null?void 0:d.type)==="linear"&&u(s)})}var l=H(o);{var c=u=>{var d=Im();Et(d,21,()=>r.overlay.points,$t,(p,_)=>{var g=Tm();V(()=>{ie(g,"offset",`${i(_).percent}%`),ie(g,"stop-color",i(_).color)}),T(p,g)}),V(()=>ie(d,"id",r.id)),T(u,d)};Y(l,u=>{var d;((d=r.overlay)==null?void 0:d.type)==="radial"&&u(c)})}T(e,t),ae()}var Cm=ar('<use fill="transparent"></use>'),Am=ar('<rect x="0" y="0" height="100%" width="100%"></rect>'),qm=ar('<use fill="none"></use>'),Fm=U('<div><svg width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!></defs><!><g><foreignObject x="0" y="0" width="100%" height="100%"><img alt="" class="svelte-
|
|
20
|
-
|
|
21
|
-
*::
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
V ${i(a)} A ${i(a)} ${i(a)} 0 0 1 ${i(a)} 0 Z`)),T(m,w)};Y(v,m=>{var w,k;(((w=r.shape)==null?void 0:w.type)==="rectangle"||((k=r.shape)==null?void 0:k.type)===void 0)&&m(y)})}T(e,c),ae()}var xm=ar('<linearGradient x1="0" y1="0" x2="100%" y2="100%"><stop offset="0%"></stop><stop offset="100%"></stop></linearGradient>'),Em=ar("<stop></stop>"),Sm=ar("<linearGradient></linearGradient>"),Tm=ar("<stop></stop>"),Im=ar("<radialGradient></radialGradient>"),Dm=ar("<!><!><!>",1);function zu(e,r){ne(r,!0);var t=Dm(),n=ee(t);{var a=u=>{var d=xm(),p=M(d),_=H(p);V(()=>{ie(d,"id",r.id),ie(p,"stop-color",r.overlay.value),ie(_,"stop-color",r.overlay.value)}),T(u,d)};Y(n,u=>{var d;((d=r.overlay)==null?void 0:d.type)==="hex"&&u(a)})}var o=H(n);{var s=u=>{var d=Sm();Et(d,21,()=>r.overlay.points,$t,(p,_)=>{var g=Em();V(()=>{ie(g,"offset",`${i(_).percent}%`),ie(g,"stop-color",i(_).color)}),T(p,g)}),V(()=>{ie(d,"id",r.id),ie(d,"gradientTransform",`rotate(${r.overlay.degrees-90}, 0.5, 0.5)`)}),T(u,d)};Y(o,u=>{var d;((d=r.overlay)==null?void 0:d.type)==="linear"&&u(s)})}var l=H(o);{var c=u=>{var d=Im();Et(d,21,()=>r.overlay.points,$t,(p,_)=>{var g=Tm();V(()=>{ie(g,"offset",`${i(_).percent}%`),ie(g,"stop-color",i(_).color)}),T(p,g)}),V(()=>ie(d,"id",r.id)),T(u,d)};Y(l,u=>{var d;((d=r.overlay)==null?void 0:d.type)==="radial"&&u(c)})}T(e,t),ae()}var Cm=ar('<use fill="transparent"></use>'),Am=ar('<rect x="0" y="0" height="100%" width="100%"></rect>'),qm=ar('<use fill="none"></use>'),Fm=U('<div><svg width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!></defs><!><g><foreignObject x="0" y="0" width="100%" height="100%"><img alt="" class="svelte-1iah3jt"/></foreignObject><!><!></g></svg></div>');const zm={hash:"svelte-1iah3jt",code:"img.svelte-1iah3jt {width:100%;height:100%;object-fit:contain;object-position:center;}"};function Mm(e,r){ne(r,!0),oe(e,zm);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).id),u=h(()=>i(l).source),d=h(()=>i(l).size),p=h(()=>i(l).mask_shape),_=h(()=>i(l).fit_mode),g=h(()=>i(l).padding),f=h(()=>i(l).margin),v=h(()=>i(l).color_overlay),y=h(()=>i(l).border),m=h(()=>i(l).shadow),w=at(),k=h(w),b=h(()=>Jt(i(k),i(u)));let A=X(0),E=X(Ze({height:0,width:0}));tt(()=>{if(i(b).width||i(b).height){L(E,{height:i(b).height,width:i(b).width},!0);return}const ve=new window.Image;ve.src=i(b).original;const Ge=()=>{L(E,{height:ve.height,width:ve.width},!0)};return ve.addEventListener("load",Ge),()=>{ve.removeEventListener("load",Ge)}});const x=h(()=>i(d).height.type==="fixed"?i(d).height.value:Math.round(i(A)*(i(E).height/i(E).width))),D=h(()=>He({width:wr(i(d).width),height:`${i(x)}px`,margin:ur(i(f)),padding:ur(i(g)),"line-height":0,"flex-shrink":i(d).width.type==="fixed"?0:1}));let I=X(null);const j=h(()=>{var ve,Ge;return[((ve=i(I))==null?void 0:ve.width)??0,((Ge=i(I))==null?void 0:Ge.height)??0]}),F=h(()=>bo(i(j),2)),P=h(()=>i(F)[0]),S=h(()=>i(F)[1]),q=h(()=>`0 0 ${i(P)} ${i(S)}`),N=h(()=>{var tr;if(!((tr=i(m))!=null&&tr.color))return"";const{x:ve,y:Ge,radius:Qr,color:le}=i(m),je=Pr(i(k),le);return`filter: drop-shadow(${ve}px ${Ge}px ${Qr}px ${je})`}),C=h(()=>i(v)&&Jt(i(k),i(v)));var z=Fm(),O=M(z),G=M(O),R=M(G),$=M(R);Yo($,{get shape(){return i(p)},get width(){return i(P)},get height(){return i(S)}});var te=H(R),ge=M(te);Yo(ge,{get shape(){return i(p)},get width(){return i(P)},get height(){return i(S)}});var pe=H(te);{let ve=h(()=>`${i(c)}-overlay`);zu(pe,{get id(){return i(ve)},get overlay(){return i(C)}})}var fe=H(G);{var ye=ve=>{var Ge=Cm();V(()=>ie(Ge,"href",`#${i(c)}-border`)),T(ve,Ge)};Y(fe,ve=>{i(y)&&i(y).width>0&&ve(ye)})}var me=H(fe),qe=M(me),Ue=M(qe),Ve=H(qe);{var Je=ve=>{var Ge=Am();V(()=>ie(Ge,"fill",`url(#${i(c)}-overlay)`)),T(ve,Ge)};Y(Ve,ve=>{i(C)&&ve(Je)})}var Tr=H(Ve);{var Rr=ve=>{var Ge=qm();V(Qr=>{ie(Ge,"href",`#${i(c)}-border`),ie(Ge,"stroke",Qr),ie(Ge,"stroke-width",i(y).width)},[()=>Pr(i(k),i(y).color)]),T(ve,Ge)};Y(Tr,ve=>{i(y)&&i(y).width>0&&ve(Rr)})}V(ve=>{be(z,i(D)),ie(O,"viewBox",i(q)),be(O,i(N)),ie(R,"id",`${i(c)}-path`),ie(te,"id",`${i(c)}-border`),ie(me,"clip-path",`url(#${i(c)}-path)`),ie(Ue,"src",i(b).original),be(Ue,`object-fit:${ve??""}`)},[()=>Ro(i(_))]),bc(O,"contentRect",ve=>L(I,ve)),Ri(z,"clientWidth",ve=>L(A,ve)),T(e,z),ae(),a()}function jm(e,r){ne(r,!0);const t=()=>Se(l,"$variablesPerPackage",a),n=()=>Se(c,"$infoPerPackage",a),[a,o]=Me(),{selectedPackageId:s,variablesPerPackage:l,infoPerPackage:c}=ua();jo(mt(s,f=>f===r.package_id));const u=()=>{O_(s,r.package_id)},d=Oo(),p=mt(d,f=>{var v;return((v=t())==null?void 0:v[r.package_id])??f});Yi(p);const _=Tu(),g=mt(_,f=>{var v;return((v=n())==null?void 0:v[r.package_id])??f});Su(g),Lr(e,rr(()=>r.stack,{onclick:u})),ae(),o()}var Om=U('<div class="backdrop svelte-eghi46" role="presentation" tabindex="-1" aria-hidden="true"><div role="dialog" aria-modal="true"><!></div></div>');const Nm={hash:"svelte-eghi46",code:".backdrop.svelte-eghi46 {position:absolute;inset:0 0 0 0;width:100%;height:100%;background-color:#0000003f;display:flex;flex-direction:column;}.sheet.svelte-eghi46 {position:absolute;inset:auto 0 0 0;transition-property:transform;transition-duration:225ms;transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:translateY(100%);&.visible {transform:translateY(0);}}"};function Lm(e,r){ne(r,!0),oe(e,Nm);const t=()=>Se(l,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),{stack:s}=o,l=Xr(),c=h(()=>({...o,...Zr(t(),r.overrides)})),u=h(()=>i(c).size),d=h(()=>i(c).background),p=h(()=>i(c).background_blur),_=at(),g=h(_),f=h(()=>He({background:i(p)?"#0000003f":""})),v=h(()=>He({height:wr(i(u).height),...In(i(g),null,i(d))})),{onButtonAction:y}=ua();let m,w=X(!1);_r(()=>{requestAnimationFrame(()=>{L(w,!0)})});const k=()=>{L(w,!1)},b=()=>{i(w)||y({type:"navigate_to",destination:"sheet",sheet:null})},A=F=>{F.target===F.currentTarget&&k()},E=F=>{F.key==="Escape"&&k()};let x=h(()=>`sheet ${i(w)?"visible":""}`);var D=Om();D.__click=A,D.__keydown=E;var I=M(D),j=M(I);Lr(j,rr(()=>s)),zo(I,F=>m=F,()=>m),V(()=>{be(D,i(f)),or(I,1,ji(i(x)),"svelte-eghi46"),be(I,i(v))}),$r("transitionend",I,b),T(e,D),ae(),a()}Ua(["click","keydown"]);var Bm=U("<div><!> <!></div> <!>",1);const Um={hash:"svelte-8mv7c5",code:`.paywall.svelte-8mv7c5 {position:relative;display:flex;flex-direction:column;align-items:stretch;height:100%;transition-property:filter, transform;transition-duration:0.1s;transition-timing-function:ease-in-out;transform-origin:center;&.blur {filter:blur(10px) brightness(0.8);transform:scale(1.045);}& > *:first-child {flex-grow:1;overflow-y:auto;}}
|
|
20
|
+
/* Scoped reset - same as original but only affects .paywall descendants */.paywall *,
|
|
21
|
+
.paywall *::before,
|
|
22
|
+
.paywall *::after {box-sizing:border-box;margin:0;padding:0;font-family:sans-serif;}.paywall {line-height:1.5;-webkit-font-smoothing:antialiased;}.paywall img,
|
|
23
|
+
.paywall picture,
|
|
24
|
+
.paywall video,
|
|
25
|
+
.paywall canvas,
|
|
26
|
+
.paywall svg {display:block;max-width:100%;}.paywall input,
|
|
27
|
+
.paywall button,
|
|
28
|
+
.paywall textarea,
|
|
29
|
+
.paywall select {font:inherit;}.paywall p,
|
|
30
|
+
.paywall h1,
|
|
31
|
+
.paywall h2,
|
|
32
|
+
.paywall h3,
|
|
33
|
+
.paywall h4,
|
|
34
|
+
.paywall h5,
|
|
35
|
+
.paywall h6 {overflow-wrap:break-word;}.paywall p {text-wrap:pretty;}.paywall h1,
|
|
36
|
+
.paywall h2,
|
|
37
|
+
.paywall h3,
|
|
38
|
+
.paywall h4,
|
|
39
|
+
.paywall h5,
|
|
40
|
+
.paywall h6 {text-wrap:balance;}`};function Rm(e,r){ne(r,!0),oe(e,Um);const t=()=>Se(y,"$selectedPackageId",n),[n,a]=Me(),o=K(r,"variablesPerPackage",19,()=>({})),s=K(r,"globalVariables",19,()=>({})),l=K(r,"infoPerPackage",19,()=>({})),c=K(r,"hideBackButtons",3,!1),u=qf(()=>r.preferredColorMode),d=h(u),{default_locale:p,components_config:_,components_localizations:g}=r.paywallData,{base:f}=_,{getLocalizedString:v}=Ff(()=>({defaultLocale:p,selectedLocale:r.selectedLocale,localizations:g})),y=Xt(Ig(f)),m=P=>{var q;const S=t();S!==void 0&&((q=r.onPurchaseClicked)==null||q.call(r,S,P??""))};let w=X(void 0);const k=(P,S)=>{var q,N,C,z,O;switch(P.type){case"workflow":S&&((q=r.onActionTriggered)==null||q.call(r,S));return;case"navigate_back":(N=r.onBackClicked)==null||N.call(r);return;case"restore_purchases":(C=r.onRestorePurchasesClicked)==null||C.call(r);return}switch(P.destination){case"customer_center":(z=r.onVisitCustomerCenterClicked)==null||z.call(r);return;case"privacy_policy":case"terms":case"url":const G=v(P.url.url_lid);G&&((O=r.onNavigateToUrlClicked)==null||O.call(r,G));return;case"sheet":L(w,P.sheet??void 0,!0);return;case"offer_code":case"web_paywall_link":return}};Tg({selectedPackageId:y,variablesPerPackage:xn(o()),infoPerPackage:xn(l()),onPurchase:m,onButtonAction:k,walletButtonRender:r.walletButtonRender,uiConfig:r.uiConfig,hideBackButtons:c()});const b=mt(y,P=>{const S=o()[P||""];return{...s(),...S}});Yi(b);const A=mt(y,P=>l()[P||""]);Su(A);const E=h(()=>He({...In(i(d),null,f.background),...r.maxContentWidth&&{"padding-inline":`max(0px, calc((100vw - ${r.maxContentWidth}) / 2))`}}));_r(()=>{kf(r.uiConfig)});const x=h(()=>i(w)?"paywall blur":"paywall"),{stack:D,sticky_footer:I}=f;var j=he(),F=ee(j);Dl(F,{get onerror(){return r.onError}},P=>{var S=Bm(),q=ee(S),N=M(q);Lr(N,rr(()=>D));var C=H(N,2);{var z=R=>{Fu(R,rr(()=>I))};Y(C,R=>{I&&R(z)})}var O=H(q,2);{var G=R=>{Lm(R,rr(()=>i(w)))};Y(O,R=>{i(w)&&R(G)})}V(()=>{or(q,1,ji(i(x)),"svelte-8mv7c5"),be(q,i(E))}),T(P,S)}),T(e,j),ae(),a()}var Vm=U('<div class="svelte-1mlwczg"><div style="flex-grow: 1; width:100%;" class="svelte-1mlwczg"></div></div>'),Hm=U('<div class="wallet-skeleton svelte-1mlwczg" aria-hidden="true"> </div>'),Wm=U("<!> <!>",1);const Ym={hash:"svelte-1mlwczg",code:`.wallet-skeleton.svelte-1mlwczg {position:relative;overflow:hidden;border-radius:9999px;background-color:rgba(128, 128, 128, 0.16);backdrop-filter:blur(18px);min-height:48px;content:" ";flex-grow:1;width:100%;}.wallet-skeleton.svelte-1mlwczg::before {content:"";position:absolute;inset:0;background:linear-gradient(
|
|
41
41
|
135deg,
|
|
42
42
|
rgba(255, 255, 255, 0.2),
|
|
43
43
|
rgba(255, 255, 255, 0.01)
|
|
44
|
-
);opacity:0.9;mix-blend-mode:screen;}.wallet-skeleton.svelte-
|
|
44
|
+
);opacity:0.9;mix-blend-mode:screen;}.wallet-skeleton.svelte-1mlwczg::after {content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(
|
|
45
45
|
120deg,
|
|
46
46
|
transparent 0%,
|
|
47
47
|
rgba(255, 255, 255, 0.6) 20%,
|
|
48
48
|
transparent 40%
|
|
49
49
|
);opacity:0.8;
|
|
50
|
-
animation: svelte-
|
|
50
|
+
animation: svelte-1mlwczg-wallet-skeleton-shimmer 1.4s ease-in-out infinite;}
|
|
51
51
|
|
|
52
|
-
@keyframes svelte-
|
|
52
|
+
@keyframes svelte-1mlwczg-wallet-skeleton-shimmer {
|
|
53
53
|
100% {
|
|
54
54
|
transform: translateX(100%);
|
|
55
55
|
}
|
|
56
|
-
}`};function Gm(e,r){ne(r,!0),oe(e,Ym);const t=()=>Se(_,"$selectedState",a),n=()=>Se(d,"$selectedPackageId",a),[a,o]=Me(),s=gr(r,["$$slots","$$events","$$legacy"]),{stack:l}=s,{onPurchase:c,walletButtonRender:u,selectedPackageId:d}=ua(),p={...l},_=Xr(),g=h(()=>({...p,...Zr(t(),p.overrides)})),f=h(()=>i(g).size),v=h(()=>i(g).dimension),y=h(()=>i(g).spacing),m=h(()=>i(g).margin),w=h(()=>i(g).border),k=h(()=>i(g).shape),b=h(()=>i(g).shadow),A=10,E=3e3,x=at(),D=h(x),I=h(()=>({...p.style,display:"flex",position:"relative",width:wr(i(f).width),height:wr(i(f).height),...Cu(i(v)),gap:Er(i(y)),margin:ur({...i(m)?{...i(m),bottom:Math.max(i(m).bottom,A)}:{...bu,bottom:A}})})),j=h(()=>He(i(I))),F=h(()=>He({...i(I),border:Tn(i(D),i(w)),"border-radius":pa(i(k)),"box-shadow":_a(i(D),i(b))})),P=()=>{var te;const $=(te=r.triggers)==null?void 0:te.on_purchase_press;c($)};let S=X(!!u);const q=()=>{L(S,!1)};_r(()=>{setTimeout(()=>{L(S,!1)},E)});var N=Wm(),C=ee(N);{var z=$=>{var te=Vm(),ge=M(te);w_(ge,(pe,fe)=>u==null?void 0:u(pe,fe),()=>({selectedPackageId:n(),onReady:q})),V(()=>be(te,i(j))),T($,te)};Y(C,$=>{u&&n()&&$(z)})}var O=H(C,2);{var G=$=>{var te=Hm();V(()=>be(te,i(F))),T($,te)},R=$=>{Lr($,rr(()=>l,{onclick:P}))};Y(O,$=>{i(S)?$(G):$(R,!1)})}T(e,N),ae(),o()}function $m(e){return{display:"grid","grid-template-columns":"auto 1fr","column-gap":`${e.column_gutter}px`,"align-items":"stretch",position:"relative",flex:"0 1 auto",width:wr(e.size.width),height:wr(e.size.height),padding:ur(e.padding),margin:ur(e.margin)}}function Km(e,r){return{display:"flex","flex-direction":"column","justify-content":"flex-start","align-items":"flex-start",gap:`${r.text_spacing}px`,height:"fit-content","margin-bottom":`${r.item_spacing}px`}}var Xm=U("<div><div></div></div>"),Zm=U("<div><!> <div><!></div></div> <div><!> <!></div>",1);function Jm(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).icon),u=h(()=>i(l).title),d=h(()=>i(l).description),p=h(()=>i(l).connector),_=h(()=>i(l).text_spacing),g=h(()=>i(l).item_spacing),f=at(),v=h(f),y=He({position:"relative"}),m=He({position:"relative","z-index":"2"}),w=h(()=>He(Km(i(v),{text_spacing:i(_),item_spacing:i(g)}))),k=h(()=>{var N;return i(p)?He({position:"absolute",left:"50%",top:`${(((N=i(c))==null?void 0:N.size.width.value)??24)/2}px`,transform:"translateX(-50%)","z-index":"1",width:`${i(p).width}px`,height:"100%","padding-top":`${i(p).margin.top}px`,"padding-bottom":`${i(p).margin.bottom}px`}):""}),b=h(()=>{if(!i(p))return"";const N=Pr(i(v),i(p).color);return He({width:"100%",height:"100%",background:N})});var A=Zm(),E=ee(A),x=M(E);{var D=N=>{var C=Xm(),z=M(C);V(()=>{be(C,i(k)),be(z,i(b))}),T(N,C)};Y(x,N=>{i(p)&&N(D)})}var I=H(x,2),j=M(I);Iu(j,rr(()=>i(c)));var F=H(E,2),P=M(F);vs(P,rr(()=>i(u)));var S=H(P,2);{var q=N=>{vs(N,rr(()=>i(d)))};Y(S,N=>{i(d)&&N(q)})}V(()=>{be(E,y),be(I,m),be(F,i(w))}),T(e,A),ae(),a()}var Qm=U("<div></div>");function eh(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).items),u=h(()=>i(l).text_spacing),d=h(()=>i(l).item_spacing),p=h(()=>i(l).column_gutter),_=h(()=>i(l).icon_alignment),g=h(()=>i(l).size),f=h(()=>i(l).padding),v=h(()=>i(l).margin),y=h(()=>c_(i(l),["items","text_spacing","item_spacing","column_gutter","icon_alignment","size","padding","margin"])),m=h(()=>He($m({items:i(c),text_spacing:i(u),item_spacing:i(d),column_gutter:i(p),icon_alignment:i(_),size:i(g),padding:i(f),margin:i(v),...i(y)})));var w=he(),k=ee(w);{var b=A=>{var E=Qm();Et(E,21,()=>i(c),x=>x.id,(x,D)=>{Jm(x,rr(()=>i(D),{get text_spacing(){return i(u)},get item_spacing(){return i(d)}}))}),V(()=>be(E,i(m))),T(A,E)};Y(k,A=>{i(c).length&&A(b)})}T(e,w),ae(),a()}var rh=ar('<use fill="transparent"></use>'),th=U('<img alt="" class="svelte-
|
|
57
|
-
img.svelte-
|
|
58
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-
|
|
56
|
+
}`};function Gm(e,r){ne(r,!0),oe(e,Ym);const t=()=>Se(_,"$selectedState",a),n=()=>Se(d,"$selectedPackageId",a),[a,o]=Me(),s=gr(r,["$$slots","$$events","$$legacy"]),{stack:l}=s,{onPurchase:c,walletButtonRender:u,selectedPackageId:d}=ua(),p={...l},_=Xr(),g=h(()=>({...p,...Zr(t(),p.overrides)})),f=h(()=>i(g).size),v=h(()=>i(g).dimension),y=h(()=>i(g).spacing),m=h(()=>i(g).margin),w=h(()=>i(g).border),k=h(()=>i(g).shape),b=h(()=>i(g).shadow),A=10,E=3e3,x=at(),D=h(x),I=h(()=>({...p.style,display:"flex",position:"relative",width:wr(i(f).width),height:wr(i(f).height),...Cu(i(v)),gap:Er(i(y)),margin:ur({...i(m)?{...i(m),bottom:Math.max(i(m).bottom,A)}:{...bu,bottom:A}})})),j=h(()=>He(i(I))),F=h(()=>He({...i(I),border:Tn(i(D),i(w)),"border-radius":pa(i(k)),"box-shadow":_a(i(D),i(b))})),P=()=>{var te;const $=(te=r.triggers)==null?void 0:te.on_purchase_press;c($)};let S=X(!!u);const q=()=>{L(S,!1)};_r(()=>{setTimeout(()=>{L(S,!1)},E)});var N=Wm(),C=ee(N);{var z=$=>{var te=Vm(),ge=M(te);w_(ge,(pe,fe)=>u==null?void 0:u(pe,fe),()=>({selectedPackageId:n(),onReady:q})),V(()=>be(te,i(j))),T($,te)};Y(C,$=>{u&&n()&&$(z)})}var O=H(C,2);{var G=$=>{var te=Hm();V(()=>be(te,i(F))),T($,te)},R=$=>{Lr($,rr(()=>l,{onclick:P}))};Y(O,$=>{i(S)?$(G):$(R,!1)})}T(e,N),ae(),o()}function $m(e){return{display:"grid","grid-template-columns":"auto 1fr","column-gap":`${e.column_gutter}px`,"align-items":"stretch",position:"relative",flex:"0 1 auto",width:wr(e.size.width),height:wr(e.size.height),padding:ur(e.padding),margin:ur(e.margin)}}function Km(e,r){return{display:"flex","flex-direction":"column","justify-content":"flex-start","align-items":"flex-start",gap:`${r.text_spacing}px`,height:"fit-content","margin-bottom":`${r.item_spacing}px`}}var Xm=U("<div><div></div></div>"),Zm=U("<div><!> <div><!></div></div> <div><!> <!></div>",1);function Jm(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).icon),u=h(()=>i(l).title),d=h(()=>i(l).description),p=h(()=>i(l).connector),_=h(()=>i(l).text_spacing),g=h(()=>i(l).item_spacing),f=at(),v=h(f),y=He({position:"relative"}),m=He({position:"relative","z-index":"2"}),w=h(()=>He(Km(i(v),{text_spacing:i(_),item_spacing:i(g)}))),k=h(()=>{var N;return i(p)?He({position:"absolute",left:"50%",top:`${(((N=i(c))==null?void 0:N.size.width.value)??24)/2}px`,transform:"translateX(-50%)","z-index":"1",width:`${i(p).width}px`,height:"100%","padding-top":`${i(p).margin.top}px`,"padding-bottom":`${i(p).margin.bottom}px`}):""}),b=h(()=>{if(!i(p))return"";const N=Pr(i(v),i(p).color);return He({width:"100%",height:"100%",background:N})});var A=Zm(),E=ee(A),x=M(E);{var D=N=>{var C=Xm(),z=M(C);V(()=>{be(C,i(k)),be(z,i(b))}),T(N,C)};Y(x,N=>{i(p)&&N(D)})}var I=H(x,2),j=M(I);Iu(j,rr(()=>i(c)));var F=H(E,2),P=M(F);vs(P,rr(()=>i(u)));var S=H(P,2);{var q=N=>{vs(N,rr(()=>i(d)))};Y(S,N=>{i(d)&&N(q)})}V(()=>{be(E,y),be(I,m),be(F,i(w))}),T(e,A),ae(),a()}var Qm=U("<div></div>");function eh(e,r){ne(r,!0);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).items),u=h(()=>i(l).text_spacing),d=h(()=>i(l).item_spacing),p=h(()=>i(l).column_gutter),_=h(()=>i(l).icon_alignment),g=h(()=>i(l).size),f=h(()=>i(l).padding),v=h(()=>i(l).margin),y=h(()=>c_(i(l),["items","text_spacing","item_spacing","column_gutter","icon_alignment","size","padding","margin"])),m=h(()=>He($m({items:i(c),text_spacing:i(u),item_spacing:i(d),column_gutter:i(p),icon_alignment:i(_),size:i(g),padding:i(f),margin:i(v),...i(y)})));var w=he(),k=ee(w);{var b=A=>{var E=Qm();Et(E,21,()=>i(c),x=>x.id,(x,D)=>{Jm(x,rr(()=>i(D),{get text_spacing(){return i(u)},get item_spacing(){return i(d)}}))}),V(()=>be(E,i(m))),T(A,E)};Y(k,A=>{i(c).length&&A(b)})}T(e,w),ae(),a()}var rh=ar('<use fill="transparent"></use>'),th=U('<img alt="" class="svelte-1w3c2m5"/>'),nh=U('<video playsinline="" class="svelte-1w3c2m5"><track kind="captions"/></video>',2),ah=ar('<rect x="0" y="0" height="100%" width="100%"></rect>'),oh=ar('<use fill="none"></use>'),ih=U('<div><svg width="100%" height="100%"><defs><clipPath><!></clipPath><g><!></g><!></defs><!><g><foreignObject x="0" y="0" width="100%" height="100%"><!></foreignObject><!><!></g></svg></div>');const sh={hash:"svelte-1w3c2m5",code:`video.svelte-1w3c2m5,
|
|
57
|
+
img.svelte-1w3c2m5 {width:100%;height:100%;object-fit:contain;object-position:center;}`};function lh(e,r){ne(r,!0),oe(e,sh);const t=()=>Se(s,"$selectedState",n),[n,a]=Me(),o=gr(r,["$$slots","$$events","$$legacy"]),s=Xr(),l=h(()=>({...o,...Zr(t(),r.overrides)})),c=h(()=>i(l).id),u=h(()=>i(l).source),d=h(()=>i(l).fallback_source),p=h(()=>i(l).size),_=h(()=>i(l).mask_shape),g=h(()=>i(l).fit_mode),f=h(()=>i(l).padding),v=h(()=>i(l).margin),y=h(()=>i(l).color_overlay),m=h(()=>i(l).border),w=h(()=>i(l).shadow),k=h(()=>i(l).auto_play),b=h(()=>i(l).loop),A=h(()=>i(l).mute_audio),E=h(()=>i(l).show_controls),x=at(),D=h(x),I=h(()=>i(u)?Jt(i(D),i(u)):null),j=h(()=>i(d)?Jt(i(D),i(d)):null);let F=X(0),P=X(Ze({height:0,width:0})),S=X(null),q=X(!1);tt(()=>{if(i(I)){if(i(I).width&&i(I).height){L(P,{height:i(I).height,width:i(I).width},!0);return}if(i(S)){const ke=()=>{var Ir,dt;L(P,{height:((Ir=i(S))==null?void 0:Ir.videoHeight)??0,width:((dt=i(S))==null?void 0:dt.videoWidth)??0},!0)},ze=()=>{L(q,!0)};return i(S).addEventListener("loadedmetadata",ke),i(S).addEventListener("error",ze),()=>{var Ir,dt;(Ir=i(S))==null||Ir.removeEventListener("loadedmetadata",ke),(dt=i(S))==null||dt.removeEventListener("error",ze)}}}else if(i(j)){if(i(j).width&&i(j).height){L(P,{height:i(j).height,width:i(j).width},!0);return}const ke=new window.Image;ke.src=i(j).original;const ze=()=>{L(P,{height:ke.height,width:ke.width},!0)};return ke.addEventListener("load",ze),()=>{ke.removeEventListener("load",ze)}}});const N=h(()=>i(p).height.type==="fixed"?i(p).height.value:Math.round(i(F)*(i(P).height/i(P).width))),C=h(()=>He({width:wr(i(p).width),height:`${i(N)}px`,margin:ur(i(v)),padding:ur(i(f)),"line-height":0,"flex-shrink":i(p).width.type==="fixed"?0:1}));let z=X(null);const O=h(()=>{var ke,ze;return[((ke=i(z))==null?void 0:ke.width)??0,((ze=i(z))==null?void 0:ze.height)??0]}),G=h(()=>bo(i(O),2)),R=h(()=>i(G)[0]),$=h(()=>i(G)[1]),te=h(()=>`0 0 ${i(R)} ${i($)}`),ge=h(()=>{var et;if(!((et=i(w))!=null&&et.color))return"";const{x:ke,y:ze,radius:Ir,color:dt}=i(w),Nn=Pr(i(D),dt);return`filter: drop-shadow(${ke}px ${ze}px ${Ir}px ${Nn})`}),pe=h(()=>i(y)&&Jt(i(D),i(y))),fe=h(()=>i(q)||!i(I));var ye=ih(),me=M(ye),qe=M(me),Ue=M(qe),Ve=M(Ue);Yo(Ve,{get shape(){return i(_)},get width(){return i(R)},get height(){return i($)}});var Je=H(Ue),Tr=M(Je);Yo(Tr,{get shape(){return i(_)},get width(){return i(R)},get height(){return i($)}});var Rr=H(Je);{let ke=h(()=>`${i(c)}-overlay`);zu(Rr,{get id(){return i(ke)},get overlay(){return i(pe)}})}var ve=H(qe);{var Ge=ke=>{var ze=rh();V(()=>ie(ze,"href",`#${i(c)}-border`)),T(ke,ze)};Y(ve,ke=>{i(m)&&i(m).width>0&&ke(Ge)})}var Qr=H(ve),le=M(Qr),je=M(le);{var tr=ke=>{var ze=th();V(Ir=>{ie(ze,"src",i(j).original),be(ze,`object-fit:${Ir??""}`)},[()=>Ro(i(g))]),T(ke,ze)},pr=ke=>{var ze=he(),Ir=ee(ze);{var dt=Nn=>{var et=nh();zo(et,Ea=>L(S,Ea),()=>i(S)),V(Ea=>{ie(et,"src",i(I).url),be(et,`object-fit:${Ea??""}`),et.autoplay=i(k),et.loop=i(b),et.muted=i(A),et.controls=i(E)},[()=>Ro(i(g))]),T(Nn,et)};Y(Ir,Nn=>{i(I)&&Nn(dt)},!0)}T(ke,ze)};Y(je,ke=>{i(fe)&&i(j)?ke(tr):ke(pr,!1)})}var ut=H(le);{var xa=ke=>{var ze=ah();V(()=>ie(ze,"fill",`url(#${i(c)}-overlay)`)),T(ke,ze)};Y(ut,ke=>{i(pe)&&ke(xa)})}var On=H(ut);{var _i=ke=>{var ze=oh();V(Ir=>{ie(ze,"href",`#${i(c)}-border`),ie(ze,"stroke",Ir),ie(ze,"stroke-width",i(m).width)},[()=>Pr(i(D),i(m).color)]),T(ke,ze)};Y(On,ke=>{i(m)&&i(m).width>0&&ke(_i)})}V(()=>{be(ye,i(C)),ie(me,"viewBox",i(te)),be(me,i(ge)),ie(Ue,"id",`${i(c)}-path`),ie(Je,"id",`${i(c)}-border`),ie(Qr,"clip-path",`url(#${i(c)}-path)`)}),bc(me,"contentRect",ke=>L(z,ke)),Ri(ye,"clientWidth",ke=>L(F,ke)),T(e,ye),ae(),a()}var ch=U("<span><!></span>");const uh={hash:"svelte-hevbos",code:`
|
|
58
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-hevbos {font:var(--rc-text-heading2xl-mobile);}
|
|
59
59
|
|
|
60
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-
|
|
60
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-hevbos {font:var(--rc-text-headingXl-mobile);}
|
|
61
61
|
|
|
62
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-
|
|
62
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-hevbos {font:var(--rc-text-headingLg-mobile);}
|
|
63
63
|
|
|
64
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-
|
|
64
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-hevbos {font:var(--rc-text-headingMd-mobile);}
|
|
65
65
|
|
|
66
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-
|
|
66
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-hevbos {font:var(--rc-text-bodyBase-mobile);}
|
|
67
67
|
|
|
68
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-
|
|
68
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-hevbos {font:var(--rc-text-bodySmall-mobile);}
|
|
69
69
|
|
|
70
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-
|
|
70
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-hevbos {font:var(--rc-text-labelButton-mobile);}
|
|
71
71
|
|
|
72
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-
|
|
72
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-hevbos {font:var(--rc-text-labelDefault-mobile);}
|
|
73
73
|
|
|
74
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-
|
|
74
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-hevbos {font:var(--rc-text-captionDefault-mobile);}
|
|
75
75
|
|
|
76
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-
|
|
76
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-hevbos {font:var(--rc-text-captionLink-mobile);}
|
|
77
77
|
|
|
78
78
|
@container layout-query-container (width >= 768px) {
|
|
79
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-
|
|
79
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-2xl.svelte-hevbos {font:var(--rc-text-heading2xl-desktop);}
|
|
80
80
|
|
|
81
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-
|
|
81
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-xl.svelte-hevbos {font:var(--rc-text-headingXl-desktop);}
|
|
82
82
|
|
|
83
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-
|
|
83
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-lg.svelte-hevbos {font:var(--rc-text-headingLg-desktop);}
|
|
84
84
|
|
|
85
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-
|
|
85
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-heading-md.svelte-hevbos {font:var(--rc-text-headingMd-desktop);}
|
|
86
86
|
|
|
87
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-
|
|
87
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-base.svelte-hevbos {font:var(--rc-text-bodyBase-desktop);}
|
|
88
88
|
|
|
89
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-
|
|
89
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-body-small.svelte-hevbos {font:var(--rc-text-bodySmall-desktop);}
|
|
90
90
|
|
|
91
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-
|
|
91
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-button.svelte-hevbos {font:var(--rc-text-labelButton-desktop);}
|
|
92
92
|
|
|
93
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-
|
|
93
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-label-default.svelte-hevbos {font:var(--rc-text-labelDefault-desktop);}
|
|
94
94
|
|
|
95
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-
|
|
95
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-default.svelte-hevbos {font:var(--rc-text-captionDefault-desktop);}
|
|
96
96
|
|
|
97
|
-
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-
|
|
98
|
-
}`};function dh(e,r){oe(e,uh);const t=K(r,"size",3,"body-base");var n=ch(),a=M(n);er(a,()=>r.children??De),V(()=>or(n,1,`rcb-typography rcb-typography-${t()??""}`,"svelte-
|
|
99
|
-
animation: svelte-
|
|
97
|
+
/* svelte-ignore css-unused-selector */.rcb-typography-caption-link.svelte-hevbos {font:var(--rc-text-captionLink-desktop);}
|
|
98
|
+
}`};function dh(e,r){oe(e,uh);const t=K(r,"size",3,"body-base");var n=ch(),a=M(n);er(a,()=>r.children??De),V(()=>or(n,1,`rcb-typography rcb-typography-${t()??""}`,"svelte-hevbos")),T(e,n)}const ph={outerPadding:{mobile:"clamp(1.3125rem, 5.6vw, 1.5rem)",desktop:"clamp(1.5rem, 9.44vw, 5rem)"},outerPaddingSmall:{mobile:"clamp(0.75rem, 4.2vw, 1rem)",desktop:"clamp(1.5rem, 9.44vw, 5rem)"},gapSmall:{mobile:"0.25rem",desktop:"0.375rem"},gapMedium:{mobile:"0.5rem",desktop:"0.75rem"},gapLarge:{mobile:"0.75rem",desktop:"0.75rem"},gapXLarge:{mobile:"1rem",desktop:"1.5rem"},gapXXLarge:{mobile:"1.25rem",desktop:"2.25rem"},gapXXXLarge:{mobile:"2.25rem",desktop:"4.5rem"},inputHeight:{mobile:"3rem",desktop:"3rem"},gapStripeElement:{mobile:"0.70rem",desktop:"1rem"}},Mu="-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif",At={regular:"400",medium:"500",semibold:"600"},ot={12:"12px",14:"14px",16:"16px",18:"18px",24:"24px",28:"28px",32:"32px",36:"36px"},qt={120:"120%",130:"130%",140:"140%"},Ft={tight:"0.20%",regular:"0"},ir={heading2xl:{fontSize:ot[28],lineHeight:qt[120],fontWeight:At.semibold,letterSpacing:Ft.tight},headingXl:{fontSize:ot[24],lineHeight:qt[130],fontWeight:At.semibold,letterSpacing:Ft.regular},headingLg:{fontSize:"20px",lineHeight:qt[130],fontWeight:At.semibold,letterSpacing:Ft.regular},headingMd:{fontSize:"16px",lineHeight:qt[140],fontWeight:At.medium,letterSpacing:Ft.regular},bodyBase:{fontSize:ot[16],lineHeight:qt[140],fontWeight:At.regular,letterSpacing:Ft.regular},bodySmall:{fontSize:ot[14],lineHeight:qt[140],fontWeight:At.regular,letterSpacing:Ft.regular},labelButton:{fontSize:ot[16],lineHeight:qt[140],fontWeight:At.regular,letterSpacing:Ft.tight},labelDefault:{fontSize:ot[14],lineHeight:qt[140],fontWeight:At.regular,letterSpacing:Ft.tight},captionDefault:{fontSize:ot[12],lineHeight:qt[140],fontWeight:At.regular,letterSpacing:Ft.regular},captionLink:{fontSize:ot[12],lineHeight:qt[140],fontWeight:At.regular,letterSpacing:Ft.regular}},zt={heading2xl:{...ir.heading2xl,fontSize:ot[36]},headingXl:{...ir.headingXl,fontSize:ot[32]},headingLg:{...ir.headingLg,fontSize:ot[24]},headingMd:{...ir.headingMd,fontSize:ot[18]},bodyBase:{...ir.bodyBase},bodySmall:{...ir.bodySmall},labelButton:{...ir.labelButton},labelDefault:{...ir.labelDefault},captionDefault:{...ir.captionDefault},captionLink:{...ir.captionLink}},_h={heading2xl:{mobile:ir.heading2xl,desktop:zt.heading2xl},headingXl:{desktop:zt.headingXl,mobile:ir.headingXl},headingLg:{desktop:zt.headingLg,mobile:ir.headingLg},headingMd:{desktop:zt.headingMd,mobile:ir.headingMd},bodyBase:{desktop:zt.bodyBase,mobile:ir.bodyBase},bodySmall:{desktop:zt.bodySmall,mobile:ir.bodySmall},labelButton:{desktop:zt.labelButton,mobile:ir.labelButton},labelDefault:{desktop:zt.labelDefault,mobile:ir.labelDefault},captionDefault:{desktop:zt.captionDefault,mobile:ir.captionDefault},captionLink:{desktop:zt.captionLink,mobile:ir.captionLink}},gh={error:"#B0171F",warning:"#f4e971",focus:"#1148B8",accent:"#767676",primary:"#576CDB","primary-hover":"rgba(87, 108, 219, .8)","primary-pressed":"rgba(87, 108, 219, .9)","primary-text":"#ffffff",white:"#ffffff","grey-text-dark":"rgba(0,0,0,1)","grey-text-light":"rgba(0,0,0,0.7)","grey-ui-dark":"rgba(0,0,0,0.3)","grey-ui-light":"rgba(0,0,0,0.1)","input-background":"white",background:"white"},fh={error:"#B0171F",warning:"#f4e971",focus:"#1148B8",accent:"#767676",primary:"#576CDB","primary-hover":"rgba(87, 108, 219, .8)","primary-pressed":"rgba(87, 108, 219, .9)","primary-text":"#ffffff",white:"#ffffff","grey-text-dark":"rgba(0,0,0,1)","grey-text-light":"rgba(0,0,0,0.7)","grey-ui-dark":"rgba(0,0,0,0.3)","grey-ui-light":"rgba(0,0,0,0.1)","input-background":"white",background:"#EFF3FA"},ju={error:"color_error",focus:"color_accent",accent:"color_accent",primary:"color_buttons_primary"},mh={...ju,"input-background":"color_form_bg",background:"color_form_bg"},hh={...ju,"input-background":"color_product_info_bg",background:"color_product_info_bg"},Ou={"input-border-radius":"4px","input-button-border-radius":"8px"},yh={"input-border-radius":"0px","input-button-border-radius":"0px"},vh={"input-border-radius":"12px","input-button-border-radius":"9999px"},Nu=Ou,$a=e=>e.length==7?{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16)}:e.length==4?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null,ws=({r:e,g:r,b:t,luminanceThreshold:n})=>{const a=s=>(s=s/255,s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4));return .2126*a(e)+.7152*a(r)+.0722*a(t)>n},Ps=.37,bh=(e,r=Ps)=>{const t=ws({...e,luminanceThreshold:r})?"0,0,0":"255,255,255";return{"grey-text-dark":`rgb(${t})`,"grey-text-light":`rgba(${t},0.70)`,"grey-ui-dark":`rgba(${t},0.3)`,"grey-ui-light":`rgba(${t},0.1)`}};function kh(e,r,t){const n=$a(e)||{r:0,g:0,b:0},a=$a(r)||{r:255,g:255,b:255},o=Math.round(a.r*t+n.r*(1-t)),s=Math.round(a.g*t+n.g*(1-t)),l=Math.round(a.b*t+n.b*(1-t));return`#${xs(o)}${xs(s)}${xs(l)}`}function Lu(e,r){const t={r:255,g:255,b:255},n=Math.max(0,Math.min(1,r));let a=e,o=$a(e)||t;(isNaN(o.r)||isNaN(o.g)||isNaN(o.b))&&(o=t,a="#FFFFFF");const l=ws({...o,luminanceThreshold:Ps})?"#000000":"#FFFFFF";return kh(a,l,n)}function xs(e){return e.toString(16).padStart(2,"0").toUpperCase()}const wh=(e,r,t,n=Ps)=>{const a={"grey-text-dark":t["grey-text-dark"],"grey-text-light":t["grey-text-light"],"grey-ui-dark":t["grey-ui-dark"],"grey-ui-light":t["grey-ui-light"],"primary-text":t["primary-text"]};if(e!=null&&e.startsWith("#")){const o=$a(e);o!==null&&Object.assign(a,bh(o))}if(r!=null&&r.startsWith("#")){const o=$a(r);o!==null&&(a["primary-text"]=ws({...o,luminanceThreshold:n})?"black":"white")}return a},Ph=e=>({"primary-hover":Lu(e,.1),"primary-pressed":Lu(e,.15)}),xh=(e,r)=>e||r,Eh=(e,r,t)=>{const n=Object.entries(e).map(([a,o])=>[a,xh(t?t[o]:null,r[a])]);return Object.fromEntries(n)},Bu=(e,r,t)=>{const n=Eh(e,r,t);return t?{...r,...n,...wh(n.background,n.primary,r),...Ph(n.primary)}:{...r}},Sh=e=>Bu(hh,fh,e),Uu=e=>Bu(mh,gh,e),Es=e=>{if(!e)return Nu;switch(e.shapes){case"rounded":return Ou;case"rectangle":return yh;case"pill":return vh;default:return Nu}},Go=(e="",r)=>r.map(([t,n])=>`--rc-${e}-${t}: ${n}`).join("; "),Th=e=>{const r=Go("color",Object.entries(Sh(e))),t=Go("shape",Object.entries(Es(e)));return[r,t].join("; ")},Ih=e=>{const r=Go("color",Object.entries(Uu(e))),t=Go("shape",Object.entries(Es(e)));return[r,t].join("; ")},Dh=(e="",r)=>Object.entries(r).flatMap(([t,{desktop:n,mobile:a}])=>[`--rc-${e}-${t}-desktop: normal normal ${n.fontWeight} ${n.fontSize}/${n.lineHeight} ${Mu}`,`--rc-${e}-${t}-mobile: normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${Mu}`,`--rc-${e}-${t}-desktop-font-size: ${n.fontSize}`,`--rc-${e}-${t}-mobile-font-size: ${a.fontSize}`]).join("; "),Ch=(e="",r)=>Object.entries(r).map(([t,{mobile:n,desktop:a}])=>`--rc-${e}-${t}-mobile: ${n}; --rc-${e}-${t}-desktop: ${a};`).join(" ");let Ah=class{constructor(r){W(this,"brandingAppearance");r?this.brandingAppearance=r:this.brandingAppearance=void 0}get shape(){return Es(this.brandingAppearance)}get formColors(){return Uu(this.brandingAppearance)}get formStyleVars(){return Ih(this.brandingAppearance)}get productInfoStyleVars(){return Th(this.brandingAppearance)}get spacing(){return ph}get textStyles(){return _h}get textStyleVars(){return Dh("text",this.textStyles)}get spacingStyleVars(){return Ch("spacing",this.spacing)}};var qh=U('<div class="rcb-processing svelte-1422nx8"></div>');const Fh={hash:"svelte-1422nx8",code:`.rcb-processing.svelte-1422nx8 {width:var(--width, 12px);aspect-ratio:1;border-radius:50%;
|
|
99
|
+
animation: svelte-1422nx8-l5 1.5s infinite linear;}
|
|
100
100
|
|
|
101
|
-
@keyframes svelte-
|
|
101
|
+
@keyframes svelte-1422nx8-l5 {
|
|
102
102
|
0% {
|
|
103
103
|
box-shadow:
|
|
104
104
|
var(--shadow-offset) 0 #fff2,
|
|
@@ -129,13 +129,13 @@ Minimum version required to store current data is: `+F+`.
|
|
|
129
129
|
calc(-1 * var(--shadow-offset)) 0 #fff2;
|
|
130
130
|
background: #fff2;
|
|
131
131
|
}
|
|
132
|
-
}`};function zh(e,r){oe(e,Fh);let t=K(r,"size",8,"medium");const n={small:{width:"8px",offset:"10px"},medium:{width:"12px",offset:"20px"},large:{width:"16px",offset:"30px"}};var a=qh();V(()=>be(a,`--shadow-offset: ${$e(t()),Re(()=>n[t()].offset)??""}; --width: ${$e(t()),Re(()=>n[t()].width)??""};`)),T(e,a)}var Mh=U("<button><!></button>");const jh={hash:"svelte-
|
|
132
|
+
}`};function zh(e,r){oe(e,Fh);let t=K(r,"size",8,"medium");const n={small:{width:"8px",offset:"10px"},medium:{width:"12px",offset:"20px"},large:{width:"16px",offset:"30px"}};var a=qh();V(()=>be(a,`--shadow-offset: ${$e(t()),Re(()=>n[t()].offset)??""}; --width: ${$e(t()),Re(()=>n[t()].width)??""};`)),T(e,a)}var Mh=U("<button><!></button>");const jh={hash:"svelte-1hiu80c",code:`button.svelte-1hiu80c {border:none;border-radius:var(--rc-shape-input-button-border-radius);cursor:pointer;height:var(--rc-spacing-inputHeight-mobile);color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent;transition:background-color 0.15s ease-in-out;user-select:none;}
|
|
133
133
|
|
|
134
|
-
@container layout-query-container (width >= 768px) {button.svelte-
|
|
134
|
+
@container layout-query-container (width >= 768px) {button.svelte-1hiu80c {height:var(--rc-spacing-inputHeight-desktop);}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-
|
|
138
|
-
button.svelte-
|
|
137
|
+
/* focus-visible is triggered only when focused with keyboard/reader */button.svelte-1hiu80c:focus-visible {outline:2px solid var(--rc-color-focus);}button.intent-primary.svelte-1hiu80c {background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);}button.svelte-1hiu80c:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);outline:none;}button.intent-primary.svelte-1hiu80c:not(:disabled):hover {background-color:var(--rc-color-primary-hover);}button.intent-primary.svelte-1hiu80c:not(:disabled):active,
|
|
138
|
+
button.svelte-1hiu80c:active {background-color:var(--rc-color-primary-pressed);outline:none;}button.intent-primary.svelte-1hiu80c:disabled {color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark);}`};function Ru(e,r){ne(r,!0),oe(e,jh);const t=K(r,"intent",3,"primary"),n=K(r,"disabled",3,!1),a=K(r,"loading",3,!1),o=h(()=>new Ah(r.brandingAppearance)),s=h(()=>i(o).textStyleVars),l=h(()=>i(o).spacingStyleVars),c=h(()=>i(o).productInfoStyleVars),u=h(()=>i(o).formStyleVars),d=h(()=>[r.styleOverrides,i(s),i(l),i(c),i(u)].join("; "));var p=Mh();p.__click=function(...v){var y;(y=r.onclick)==null||y.apply(this,v)};var _=M(p);{var g=v=>{zh(v,{size:"small"})},f=v=>{dh(v,{size:"body-base",children:(y,m)=>{var w=he(),k=ee(w);er(k,()=>r.children??De),T(y,w)},$$slots:{default:!0}})};Y(_,v=>{a()?v(g):v(f,!1)})}V(()=>{or(p,1,`intent-${t()}`,"svelte-1hiu80c"),p.disabled=n(),ie(p,"data-testid",r.testId),ie(p,"type",r.type),be(p,i(d))}),T(e,p),ae()}Ua(["click"]);var Oh=U('<footer class="rcb-modal-footer svelte-gz2zuy"><!></footer>');const Nh={hash:"svelte-gz2zuy",code:"footer.svelte-gz2zuy {display:flex;flex-direction:column;}"};function Lh(e,r){oe(e,Nh);let t=K(r,"children",8);var n=Oh(),a=M(n);er(a,()=>t()??De),T(e,n)}const Bh={hash:"svelte-1lkpm18",code:".rcb-modal-section.svelte-1lkpm18 {padding:8px 0px;display:flex;}section.rcb-modal-section.svelte-1lkpm18 {flex-grow:1;}.rcb-modal-section.svelte-1lkpm18:last-of-type {padding:0;}"};function Uh(e,r){oe(e,Bh);let t=K(r,"as",8,"section"),n=K(r,"children",8);var a=he(),o=ee(a);Mi(o,t,!1,(s,l)=>{Bi(s,()=>({class:"rcb-modal-section"}),void 0,void 0,void 0,"svelte-1lkpm18");var c=he(),u=ee(c);er(u,()=>n()??De),T(l,c)}),T(e,a)}var Rh=U("<div><!></div>");const Vh={hash:"svelte-7lmlfa",code:`.rcb-column.svelte-7lmlfa {display:flex;flex-direction:column;justify-content:flex-start;flex-grow:1;min-width:100%;}.rcb-column.justify-center.svelte-7lmlfa {justify-content:center;}.rcb-column.justify-end.svelte-7lmlfa {justify-content:flex-end;}.rcb-column.align-center.svelte-7lmlfa {align-items:center;}.rcb-column.align-end.svelte-7lmlfa {align-items:flex-end;}.rcb-column.gap-small.svelte-7lmlfa {gap:var(--rc-spacing-gapSmall-mobile);}.rcb-column.gap-medium.svelte-7lmlfa {gap:var(--rc-spacing-gapXLarge-mobile);}.rcb-column.gap-large.svelte-7lmlfa {gap:var(--rc-spacing-gapXXLarge-mobile);}
|
|
139
139
|
|
|
140
140
|
@container layout-query-container (width >= 768px) {.rcb-column.gap-small.svelte-7lmlfa {gap:var(--rc-spacing-gapSmall-desktop);}.rcb-column.gap-medium.svelte-7lmlfa {gap:var(--rc-spacing-gapLarge-desktop);}.rcb-column.gap-large.svelte-7lmlfa {gap:var(--rc-spacing-gapXXLarge-desktop);}
|
|
141
141
|
}`};function Ss(e,r){oe(e,Vh);let t=K(r,"gap",8,"small"),n=K(r,"justify",8,"start"),a=K(r,"align",8,"start"),o=K(r,"children",8);var s=Rh(),l=M(s);er(l,()=>o()??De),V(()=>or(s,1,`rcb-column gap-${t()??""} justify-${n()??""} align-${a()??""}`,"svelte-7lmlfa")),T(e,s)}var Hh=U('<div class="rcb-row svelte-130pyos"><!></div>');const Wh={hash:"svelte-130pyos",code:".rcb-row.svelte-130pyos {display:flex;flex-direction:row;justify-content:flex-start;}"};function Yh(e,r){oe(e,Wh);let t=K(r,"children",8);var n=Hh(),a=M(n);er(a,()=>t()??De),T(e,n)}var Gh=U("<span><!></span>");const $h={hash:"svelte-y2q9vo",code:`.rcb-typography.svelte-y2q9vo {display:inline-block;line-height:normal;}
|
|
@@ -371,7 +371,7 @@ Minimum version required to store current data is: `+F+`.
|
|
|
371
371
|
|
|
372
372
|
@media (min-width: 768px) {.rcb-fullscreen-header.svelte-skuziz {padding-top:var(--rc-spacing-gapXXLarge-desktop);}.rcb-fullscreen-content.svelte-skuziz {padding:0 var(--rc-spacing-outerPadding-desktop)
|
|
373
373
|
var(--rc-spacing-outerPadding-desktop);}
|
|
374
|
-
}`};function tw(e,r){ne(r,!0),oe(e,rw);const t=h(()=>{var u;return new fa((u=r.brandingInfo)==null?void 0:u.appearance).pageStyleVars}),n=h(()=>{var u,d;return((d=(u=r.brandingInfo)==null?void 0:u.appearance)==null?void 0:d.color_page_bg)??"#ffffff"}),a=h(()=>Ed(r.brandingInfo)),o=h(()=>i(a).wordmarkSrc),s=h(()=>i(a).wordmarkSrcWebp),l=h(()=>i(a).src),c=h(()=>i(a).srcWebp);{let u=h(()=>{var p;return(p=r.brandingInfo)==null?void 0:p.appearance}),d=h(()=>{var p;return(p=r.brandingInfo)==null?void 0:p.brand_font_config});vd(e,{get brandingAppearance(){return i(u)},get brandFontConfig(){return i(d)},get isInElement(){return r.isInElement},children:(p,_)=>{var g=ew(),f=ee(g);{var v=D=>{Pd(D,{get style(){return i(t)},get isInElement(){return r.isInElement},get brandingInfo(){return r.brandingInfo}})};Y(f,D=>{r.isSandbox&&D(v)})}var y=H(f,2),m=M(y);let w;var k=M(m);{var b=D=>{Sd(D,{get src(){return i(o)},get srcWebp(){return i(s)}})},A=D=>{var I=he(),j=ee(I);{var F=S=>{xd(S,{get src(){return i(l)},get srcWebp(){return i(c)}})},P=S=>{var q=he(),N=ee(q);{var C=z=>{xe(z,{size:"body-base",children:(O,G)=>{var R=Fe();V(()=>Pe(R,r.brandingInfo.app_name)),T(O,R)},$$slots:{default:!0}})};Y(N,z=>{var O;(O=r.brandingInfo)!=null&&O.app_name&&z(C)},!0)}T(S,q)};Y(j,S=>{i(l)!==null&&i(c)!==null?S(F):S(P,!1)},!0)}T(D,I)};Y(k,D=>{i(o)!==null?D(b):D(A,!1)})}var E=H(m,2),x=M(E);er(x,()=>r.mainContent??De),V(()=>{be(y,`${i(t)??""}; background-color: ${i(n)??""}`),w=or(m,1,"rcb-fullscreen-header svelte-skuziz",null,w,{"static-header":r.isInElement})}),T(p,g)},$$slots:{default:!0}})}ae()}var nw=U("<!> <!> <!>",1),aw=U('<div class="rcb-ui-loading-container svelte-1r889ax"><!></div>');const ow={hash:"svelte-1r889ax",code:".rcb-ui-loading-container.svelte-1r889ax {display:flex;flex-direction:column;align-items:center;}"};function iw(e,r){ne(r,!0),oe(e,ow);const t=()=>Se(o,"$translator",n),[n,a]=Me(),o=We(xr);tw(e,{get brandingInfo(){return r.brandingInfo},get isInElement(){return r.isInElement},get isSandbox(){return r.isSandbox},mainContent:l=>{var c=he(),u=ee(c);{var d=_=>{var g=aw(),f=M(g);Ss(f,{gap:"medium",align:"center",children:(v,y)=>{var m=nw(),w=ee(m);Zu(w,{color:"var(--rc-color-grey-text-dark)"});var k=H(w,2);xe(k,{size:"heading-md",children:(A,E)=>{var x=Fe();V(D=>Pe(x,D),[()=>t().translate(J.LoadingPageProcessingPayment)]),T(A,x)},$$slots:{default:!0}});var b=H(k,2);xe(b,{size:"body-small",children:(A,E)=>{var x=Fe();V(D=>Pe(x,D),[()=>t().translate(J.LoadingPageKeepPageOpen)]),T(A,x)},$$slots:{default:!0}}),T(v,m)},$$slots:{default:!0}}),T(_,g)},p=_=>{var g=he(),f=ee(g);{var v=m=>{yd(m,{get onContinue(){return r.onContinue},fullWidth:!0})},y=m=>{var w=he(),k=ee(w);{var b=A=>{{let E=h(()=>{var D;return((D=r.brandingInfo)==null?void 0:D.support_email)??null}),x=h(()=>{var D;return((D=r.brandingInfo)==null?void 0:D.app_name)??null});hd(A,{get lastError(){return r.lastError},get productDetails(){return r.productDetails},get supportEmail(){return i(E)},get onDismiss(){return r.closeWithError},get appName(){return i(x)},fullWidth:!0})}};Y(k,A=>{r.currentPage==="error"&&A(b)},!0)}T(m,w)};Y(f,m=>{r.currentPage==="success"?m(v):m(y,!1)},!0)}T(_,g)};Y(u,_=>{r.currentPage==="loading"?_(d):_(p,!1)})}T(l,c)},$$slots:{mainContent:!0}}),ae(),a()}function sw(e,r){var k;ne(r,!0);const t=K(r,"customTranslations",19,()=>({})),n=K(r,"skipSuccessPage",3,!1);let a=new ca(t(),r.selectedLocale,r.defaultLocale),o=Xt(a);vr(xr,o),vr(Ka,(k=r.brandingInfo)==null?void 0:k.appearance),vr($o,r.eventsTracker);let s=X(!1),l=X(null),c=X(null),u=X("waiting");tt(()=>{i(u)==="success"&&i(l)&&n()&&r.onFinished(i(l))});const d=()=>{i(u)==="success"&&i(l)&&r.onFinished(i(l))},p=()=>{r.onError(i(c)??new se(re.UnknownError,"Unknown error without state set.")),r.unmountPaddlePurchaseUi()},_=(b,A)=>b instanceof se?b:b instanceof Be?se.fromPurchasesError(b,re.UnknownError):new se(re.UnknownError,A);let g=null,f=null,v=null;_r(async()=>{var x;r.isInElement||(g=document.documentElement.style.height,f=document.documentElement.style.overflow,v=document.body.style.height,document.documentElement.style.height="100%",document.body.style.height="100%",document.documentElement.style.overflow="hidden");const b=()=>{L(u,"loading")},A={offeringIdentifier:r.productDetails.presentedOfferingContext.offeringIdentifier,targetingContext:null,placementIdentifier:null};let E;try{E=await r.paddleService.startCheckout({appUserId:r.appUserId,productId:r.productDetails.identifier,presentedOfferingContext:A,purchaseOption:r.purchaseOption,customerEmail:r.customerEmail,metadata:r.metadata}),L(s,E.paddle_billing_params.is_sandbox,!0)}catch(D){const I=_(D,`Start Paddle checkout failed: ${D}`);L(c,I,!0),L(u,"error"),r.onError(I);return}try{const D=await r.paddleService.purchase({operationSessionId:E.operation_session_id,transactionId:(x=E.paddle_billing_params)==null?void 0:x.transaction_id,onCheckoutLoaded:b,onClose:r.onClose,params:{rcPackage:r.rcPackage,purchaseOption:r.purchaseOption,appUserId:r.appUserId,presentedOfferingIdentifier:r.productDetails.presentedOfferingContext.offeringIdentifier,customerEmail:r.customerEmail,locale:r.selectedLocale||r.defaultLocale}});n()?r.onFinished(D):(L(l,D,!0),L(u,"success"))}catch(D){const I=_(D,`Paddle purchase failed: ${D}`);L(c,I,!0),L(u,"error"),r.onError(I)}}),ra(()=>{if(!r.isInElement){const b=(A,E,x)=>{x===""?A.style.removeProperty(E):A.style.setProperty(E,x)};b(document.documentElement,"height",g),b(document.body,"height",v),b(document.documentElement,"overflow",f)}});var y=he(),m=ee(y);{var w=b=>{iw(b,{get currentPage(){return i(u)},get brandingInfo(){return r.brandingInfo},get productDetails(){return r.productDetails},get isSandbox(){return i(s)},get lastError(){return i(c)},get isInElement(){return r.isInElement},onContinue:d,closeWithError:p})};Y(m,b=>{i(u)!=="waiting"&&b(w)})}T(e,y),ae()}function zd(e){return e==null?!0:new Date(e)>new Date}function lw(e,r,t,n){const a=r.product_identifier;if(a in t)return cw(e,r,t[a]);if(a in n)return uw(e,r,n[a]);throw new Be(Xe.CustomerInfoError,"Could not find entitlement product in subscriptions or non-subscriptions.")}function cw(e,r,t){return{identifier:e,isActive:zd(r.expires_date),willRenew:Md(r.expires_date,t),store:(t==null?void 0:t.store)??"unknown",latestPurchaseDate:new Date(r.purchase_date),originalPurchaseDate:new Date(r.purchase_date),expirationDate:Bt(r.expires_date),productIdentifier:r.product_identifier,productPlanIdentifier:r.product_plan_identifier??null,unsubscribeDetectedAt:Bt(t==null?void 0:t.unsubscribe_detected_at),billingIssueDetectedAt:Bt(t==null?void 0:t.billing_issues_detected_at),isSandbox:(t==null?void 0:t.is_sandbox)??!1,periodType:(t==null?void 0:t.period_type)??"normal",ownershipType:(t==null?void 0:t.ownership_type)??"UNKNOWN"}}function uw(e,r,t){return{identifier:e,isActive:!0,willRenew:!1,store:t.store,latestPurchaseDate:new Date(r.purchase_date),originalPurchaseDate:new Date(t.original_purchase_date),expirationDate:null,productIdentifier:r.product_identifier,productPlanIdentifier:null,unsubscribeDetectedAt:null,billingIssueDetectedAt:null,isSandbox:t.is_sandbox,periodType:"normal",ownershipType:"UNKNOWN"}}function dw(e,r,t){const n={},a={};for(const o in e){const s=lw(o,e[o],r,t);n[o]=s,s.isActive&&(a[o]=s)}return{all:n,active:a}}function Bt(e){return e==null?null:new Date(e)}function Hs(e){const r=_w(e),t=e.subscriber,n=fw(t.non_subscriptions),a=Object.entries(e.subscriber.non_subscriptions).flatMap(([l,c])=>c.map(u=>({transactionIdentifier:u.id,productIdentifier:l,purchaseDate:new Date(u.purchase_date||u.original_purchase_date),storeTransactionId:u.store_transaction_id||null,store:u.store}))),o=new Date(e.request_date),s=Object.fromEntries(Object.entries(e.subscriber.subscriptions).map(([l,c])=>[l,{productIdentifier:l,purchaseDate:new Date(c.purchase_date),originalPurchaseDate:Bt(c.original_purchase_date),expiresDate:Bt(c.expires_date),store:c.store,unsubscribeDetectedAt:Bt(c.unsubscribe_detected_at),isSandbox:c.is_sandbox,billingIssuesDetectedAt:Bt(c.billing_issues_detected_at),gracePeriodExpiresDate:Bt(c.grace_period_expires_date),ownershipType:c.ownership_type??"UNKNOWN",periodType:c.period_type,refundedAt:Bt(c.refunded_at),storeTransactionId:c.store_transaction_id||null,isActive:zd(c.expires_date),willRenew:Md(c.expires_date,c)}]));return{entitlements:dw(t.entitlements,t.subscriptions,n),allExpirationDatesByProduct:r,allPurchaseDatesByProduct:pw(e,n),activeSubscriptions:gw(r),managementURL:t.management_url,requestDate:o,firstSeenDate:new Date(t.first_seen),originalPurchaseDate:Bt(t.original_purchase_date),originalAppUserId:e.subscriber.original_app_user_id,nonSubscriptionTransactions:a,subscriptionsByProductIdentifier:s}}function Md(e,r){if(r==null)return!1;const t=r.store=="promotional",n=e==null,a=r.unsubscribe_detected_at!=null,o=r.billing_issues_detected_at!=null;return!(t||n||a||o)}function pw(e,r){const t={};for(const n in e.subscriber.subscriptions){const a=e.subscriber.subscriptions[n];t[n]=new Date(a.purchase_date)}for(const n in r){const a=r[n].purchase_date;a==null?t[n]=null:t[n]=new Date(a)}return t}function _w(e){const r={};for(const t in e.subscriber.subscriptions){const n=e.subscriber.subscriptions[t];n.expires_date==null?r[t]=null:r[t]=new Date(n.expires_date)}return r}function gw(e){const r=new Set,t=new Date;for(const n in e){const a=e[n];(a==null||a>t)&&r.add(n)}return r}function fw(e){const r={};for(const t in e){if(e[t].length===0)continue;const n=e[t].length;r[t]=e[t][n-1]}return r}const jd="1.22.0",mw="https://api.revenuecat.com",hw="https://e.revenue.cat";var ei;(function(e){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"})(ei||(ei={}));const yw=/^rcb_[a-zA-Z0-9_.-]+$/,vw=/^pdl_[a-zA-Z0-9_.-]+$/,bw=/^test_[a-zA-Z0-9_.-]+$/;function ri(e){return e?e.startsWith("rcb_sb_"):!1}function kw(e){return e?yw.test(e):!1}function Od(e){return e?vw.test(e):!1}function Dn(e){return e?bw.test(e):!1}async function ht(e,r,t){return(await Nd(e,r,t)).data}async function Nd(e,r,t){const{apiKey:n,body:a,headers:o,httpConfig:s}=r,c=`${(s==null?void 0:s.proxyURL)??mw}${e.urlPath()}`;try{const u=await fetch(c,{method:e.method,headers:Gd(n,o,s==null?void 0:s.additionalHeaders),body:Pw(a),signal:t});await ww(u,e);const d=u.status;return{data:await u.json(),statusCode:d}}catch(u){throw u instanceof TypeError?new Be(Xe.NetworkError,aa.getPublicMessage(Xe.NetworkError),u.message):u}}async function ww(e,r){const t=e.status;if(t>=ei.INTERNAL_SERVER_ERROR)Ws(r,t,await e.text());else if(t>=ei.BAD_REQUEST){const n=await e.json(),a=n?JSON.stringify(n):null,o=n==null?void 0:n.code,s=n==null?void 0:n.message;if(o!=null){const l=aa.convertCodeToBackendErrorCode(o);if(l==null)Ws(r,t,a,o);else throw Be.getForBackendError(l,s)}else Ws(r,t,a)}}function Ws(e,r,t,n){throw new Be(Xe.UnknownBackendError,"Unknown backend error.",`Request: ${e.name}. Status code: ${r}. Body: ${t}.`,{backendErrorCode:n})}function Pw(e){return e==null?null:JSON.stringify(e)}const Ld="Authorization",Bd="Content-Type",Ud="Accept",Rd="X-Platform",Vd="X-Version",Hd="X-Platform-Flavor",Wd="X-Platform-Flavor-Version",Yd="X-Is-Sandbox",xw=new Set([Ld,Bd,Ud,Rd,Vd,Yd,Hd,Wd]);function Gd(e,r,t){let n={[Ld]:`Bearer ${e}`,[Bd]:"application/json",[Ud]:"application/json",[Rd]:"web",[Vd]:jd,[Yd]:`${ri(e)}`};const a=ii.getPlatformInfo();if(a){const o={[Hd]:a.flavor,[Wd]:a.version};n={...n,...o}}return r&&(n={...n,...r}),t&&(n={...t,...n}),n}const io="/v1/subscribers",ma="/rcbilling/v1";class Ew{constructor(r){W(this,"appUserId");W(this,"method","GET");W(this,"name","getOfferings");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}/offerings`}}class Sw{constructor(r,t,n){W(this,"method","GET");W(this,"name","getProducts");W(this,"appUserId");W(this,"productIds");W(this,"currency");this.appUserId=r,this.productIds=t,this.currency=n}urlPath(){const r=encodeURIComponent(this.appUserId),t=this.productIds.map(encodeURIComponent).join("&id="),n=this.currency?`¤cy=${this.currency}`:"";return`${ma}/subscribers/${r}/products?id=${t}${n}`}}class Tw{constructor(r){W(this,"method","GET");W(this,"name","getCustomerInfo");W(this,"appUserId");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}`}}class Iw{constructor(){W(this,"method","POST");W(this,"name","identify")}urlPath(){return`${io}/identify`}}class Dw{constructor(){W(this,"method","GET");W(this,"name","getBrandingInfo")}urlPath(){return`${ma}/branding`}}class Cw{constructor(){W(this,"method","POST");W(this,"name","postCheckoutStart")}urlPath(){return`${ma}/checkout/start`}}class Aw{constructor(r){W(this,"method","POST");W(this,"name","postCheckoutCalculateTax");W(this,"operationSessionId");this.operationSessionId=r}urlPath(){return`${ma}/checkout/${this.operationSessionId}/calculate_taxes`}}class qw{constructor(r){W(this,"method","POST");W(this,"name","postCheckoutComplete");W(this,"operationSessionId");this.operationSessionId=r}urlPath(){return`${ma}/checkout/${this.operationSessionId}/complete`}}class Fw{constructor(r){W(this,"method","GET");W(this,"name","getCheckoutStatus");W(this,"operationSessionId");this.operationSessionId=r}urlPath(){return`${ma}/checkout/${this.operationSessionId}`}}class zw{constructor(r){W(this,"method","POST");W(this,"name","setAttributes");W(this,"appUserId");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}/attributes`}}class Mw{constructor(){W(this,"method","POST");W(this,"name","postReceipt")}urlPath(){return"/v1/receipts"}}class jw{constructor(r){W(this,"method","GET");W(this,"name","getVirtualCurrencies");W(this,"appUserId");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}/virtual_currencies`}}const Ys={};class Ow{constructor(r,t=Ys,n){W(this,"API_KEY");W(this,"httpConfig");W(this,"isSandbox");W(this,"purchasesContext");this.API_KEY=r,this.httpConfig=t,this.isSandbox=ri(r),this.purchasesContext=n}getIsSandbox(){return this.isSandbox}async getOfferings(r){return await ht(new Ew(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async getCustomerInfo(r){return await ht(new Tw(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async identify(r,t){const n={app_user_id:r,new_app_user_id:t},a=await Nd(new Iw,{apiKey:this.API_KEY,body:n,httpConfig:this.httpConfig}),o=a.statusCode===201;return{...a.data,was_created:o}}async getProducts(r,t,n){return await ht(new Sw(r,t,n),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async getBrandingInfo(){return await ht(new Dw,{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async postCheckoutStart(r,t,n,a,o,s,l=void 0,c){var d,p;const u={app_user_id:r,product_id:t,email:s,price_id:a.priceId,presented_offering_identifier:n.offeringIdentifier,trace_id:o};return l&&(u.metadata=l),a.id!=="base_option"&&(u.offer_id=a.id),n.targetingContext&&(u.applied_targeting_rule={rule_id:n.targetingContext.ruleId,revision:n.targetingContext.revision}),n.placementIdentifier&&(u.presented_placement_identifier=n.placementIdentifier),(p=(d=this.purchasesContext)==null?void 0:d.workflowContext)!=null&&p.workflowIdentifier&&(u.presented_workflow_id=this.purchasesContext.workflowContext.workflowIdentifier),c&&(u.presented_step_id=c),await ht(new Cw,{apiKey:this.API_KEY,body:u,httpConfig:this.httpConfig})}async postCheckoutCalculateTax(r,t,n,a){const o={country_code:t,postal_code:n};return await ht(new Aw(r),{apiKey:this.API_KEY,body:o,httpConfig:this.httpConfig},a)}async postCheckoutComplete(r,t){const n={email:t};return await ht(new qw(r),{apiKey:this.API_KEY,body:n,httpConfig:this.httpConfig})}async getCheckoutStatus(r){return await ht(new Fw(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async setAttributes(r,t){const n=Date.now(),a={};for(const[s,l]of Object.entries(t))a[s]={value:l,updated_at_ms:n};const o={attributes:a};return await ht(new zw(r),{apiKey:this.API_KEY,body:o,httpConfig:this.httpConfig})}async postReceipt(r,t,n,a,o,s){var u,d;let l=null;o.targetingContext&&(l={rule_id:o.targetingContext.ruleId,revision:o.targetingContext.revision});const c={fetch_token:a,product_id:t,currency:n,app_user_id:r,presented_offering_identifier:o.offeringIdentifier,presented_placement_identifier:o.placementIdentifier,presented_workflow_id:(d=(u=this.purchasesContext)==null?void 0:u.workflowContext)==null?void 0:d.workflowIdentifier,applied_targeting_rule:l,initiation_source:s};return await ht(new Mw,{apiKey:this.API_KEY,body:c,httpConfig:this.httpConfig})}async getVirtualCurrencies(r){return await ht(new jw(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}}function Nw(e){if(!(kw(e)||Dn(e)||Od(e)))throw new Be(Xe.InvalidCredentialsError,"Invalid API key. Use your Web Billing API key.")}function Gs(e){if(!e||new Set(["no_user","null","none","nil","(null)","NaN","\\x00","","unidentified","undefined","unknown"]).has(e)||e.includes("/"))throw new Be(Xe.InvalidAppUserIdError,'Provided user id: "'+(e??"[Not provided]")+'" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.')}function Lw(e){if(e!=null&&e.endsWith("/"))throw new Be(Xe.ConfigurationError,"Invalid proxy URL. The proxy URL should not end with a trailing slash.")}function Bw(e){if(e){for(const r in e)if(xw.has(r))throw new Be(Xe.ConfigurationError,"Invalid additional headers. Some headers are reserved for internal use.")}}var $s=(e=>(e.Current="current",e))($s||{});function $d(e,r){async function t(...n){return await this.preload(),await e.call(this,...n)}return t}const Kd=(e,r)=>{const t={...e.webBillingProduct,presentedOfferingContext:{...e.webBillingProduct.presentedOfferingContext,placementIdentifier:r}};return{...e,webBillingProduct:t,rcBillingProduct:t}},Cn=(e,r)=>e==null?null:Kd(e,r),Uw=(e,r,t)=>{const n=e.offering_ids_by_placement??null;if(n==null)return null;const a=e.fallback_offering_id??null;let o;if(t in n){const l=n[t]??null;if(l==null)return null;o=r[l],o==null&&(o=r[a])}else o=r[a];if(o==null)return null;const s=Object.fromEntries(Object.entries(o.packagesById).map(([l,c])=>[l,Kd(c,t)]));return{...o,packagesById:s,availablePackages:Object.values(s),weekly:Cn(o.weekly,t),monthly:Cn(o.monthly,t),twoMonth:Cn(o.twoMonth,t),threeMonth:Cn(o.threeMonth,t),sixMonth:Cn(o.sixMonth,t),annual:Cn(o.annual,t),lifetime:Cn(o.lifetime,t)}};function Rw(e,r){const t={};r.product_details.forEach(o=>{t[o.identifier]=o});const n={};e.offerings.forEach(o=>{const s=o.identifier===e.current_offering_id,l=Mv(s,o,t,e.targeting,e.ui_config);l!=null&&(n[o.identifier]=l)});const a=e.current_offering_id?n[e.current_offering_id]??null:null;return Object.keys(n).length==0&&ce.debugLog("Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."),{all:n,current:a}}const Vw=1000001,Ks=7,ti=30,Xs=365,ni=4.33,Zs=52,ai=12;function Hw(e){switch(e.unit){case ue.Year:return e.number*Xs;case ue.Month:return e.number*ti;case ue.Week:return e.number*Ks;case ue.Day:return e.number}}function Ww(e){switch(e.unit){case ue.Year:return e.number*Zs;case ue.Month:return e.number*ni;case ue.Week:return e.number;case ue.Day:return 0}}function Yw(e){switch(e.unit){case ue.Year:return e.number*ai;case ue.Month:return e.number;case ue.Week:case ue.Day:return 0}}function Gw(e){switch(e.unit){case ue.Year:return e.number;case ue.Month:case ue.Week:case ue.Day:return 0}}function Js(e,r){const{unit:t,number:n}=e;return{period:r.translatePeriodUnit(t,{noWhitespace:!0})??"",periodAbbreviated:r.translatePeriodUnit(t,{noWhitespace:!0,short:!0})??"",periodWithUnit:r.translatePeriod(n,t)??"",periodInDays:Hw(e).toString(),periodInWeeks:Ww(e).toString(),periodInMonths:Yw(e).toString(),periodInYears:Gw(e).toString()}}function $w(e,r,t){const n=t.formatPrice(e.amountMicros,e.currency);return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/Xs/r.number,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros/ti/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros/Ks/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros/r.number,e.currency):n:n}function Kw(e,r,t){const n=t.formatPrice(e.amountMicros,e.currency);return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/Zs/r.number,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros/ni/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros*Ks/r.number,e.currency):n:n}function Xw(e,r,t){return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/ai,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros*ni/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros*ti/r.number,e.currency):t.formatPrice(e.amountMicros/(r.number||1),e.currency):t.formatPrice(e.amountMicros,e.currency)}function Zw(e,r,t){const n=t.formatPrice(e.amountMicros,e.currency);return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/r.number,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros*ai/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros*Zs/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros*Xs/r.number,e.currency):n:n}function Xd(e,r,t){return{pricePerDay:$w(e,r,t),pricePerWeek:Kw(e,r,t),pricePerMonth:Xw(e,r,t),pricePerYear:Zw(e,r,t)}}function Jw(e,r){const t=new Date;switch(e.unit){case ue.Year:t.setFullYear(t.getFullYear()+e.number);break;case ue.Month:t.setMonth(t.getMonth()+e.number);break;case ue.Week:t.setDate(t.getDate()+e.number*7);break;case ue.Day:t.setDate(t.getDate()+e.number);break}return r.translateDate(t,{dateStyle:"long"})??""}function Qw(e,r,t){const n=e.trial??e.introPrice,a=e.trial?e.introPrice:null;if(n===null)return;const{period:o,price:s}=n;if(s!==null){const l=Xd(s,o,r);t["product.offer_price"]=r.formatPrice(s.amountMicros,s.currency),t["product.offer_price_per_day"]=l.pricePerDay,t["product.offer_price_per_week"]=l.pricePerWeek,t["product.offer_price_per_month"]=l.pricePerMonth,t["product.offer_price_per_year"]=l.pricePerYear}if(o!==null){const l=Js(o,r);t["product.offer_period"]=l.period,t["product.offer_period_abbreviated"]=l.periodAbbreviated,t["product.offer_period_with_unit"]=l.periodWithUnit,t["product.offer_period_in_days"]=l.periodInDays,t["product.offer_period_in_weeks"]=l.periodInWeeks,t["product.offer_period_in_months"]=l.periodInMonths,t["product.offer_period_in_years"]=l.periodInYears,t["product.offer_end_date"]=Jw(o,r)}if(a!==null&&(a.price!==null&&(t["product.secondary_offer_price"]=r.formatPrice(a.price.amountMicros,a.price.currency)),a.period!==null)){const l=Js(a.period,r);t["product.secondary_offer_period"]=l.period,t["product.secondary_offer_period_abbreviated"]=l.periodAbbreviated}}function oi(e){var a;const r=e.webBillingProduct.price,t=Zd(e),n=e.webBillingProduct.period||((a=t==null?void 0:t.base)==null?void 0:a.period);if(!n||!n.number||n.number<=0)return r.amountMicros;switch(n.unit){case ue.Year:return r.amountMicros/ai;case ue.Month:return r.amountMicros/n.number;case ue.Week:return r.amountMicros*ni/n.number;case ue.Day:return r.amountMicros*ti/n.number;default:return r.amountMicros/(n.number||1)}}function Zd(e){return e.webBillingProduct.productType===Lt.Subscription?e.webBillingProduct.defaultSubscriptionOption:e.webBillingProduct.defaultPurchaseOption}function eP(e,r){return e===Lt.Subscription&&r!=null}function Jd(e,r,t,n=!1){return t.translate(J.PaywallVariablesPricePerPeriod,{formattedPrice:e,period:r.base.period?r.base.period.number===1?t.translatePeriodUnit(r.base.period.unit,{noWhitespace:!0,short:!n}):t.translatePeriod(r.base.period.number,r.base.period.unit,{noWhitespace:!0,short:!n}):""})}function rP(e,r){const t=e.availablePackages,n=t.reduce((a,o)=>{const s=oi(a),l=oi(o);return s>l?a:o});return t.reduce((a,o)=>(a[o.identifier]=tP(o,n,r),a),{})}function tP(e,r,t){const n=e.webBillingProduct,a=n.price,o=t.formatPrice(a.amountMicros,a.currency),s=Zd(e),l=n.productType,c={"product.store_product_name":n.title,"product.price":o,"product.price_per_period":"","product.price_per_period_abbreviated":"","product.price_per_day":"","product.price_per_week":"","product.price_per_month":"","product.price_per_year":"","product.period":"","product.period_abbreviated":"","product.periodly":"","product.period_in_days":"","product.period_in_weeks":"","product.period_in_months":"","product.period_in_years":"","product.period_with_unit":"","product.currency_code":a.currency,"product.currency_symbol":t.formatPrice(0,a.currency).replace("0",""),"product.offer_price":"","product.offer_price_per_day":"","product.offer_price_per_week":"","product.offer_price_per_month":"","product.offer_price_per_year":"","product.offer_period":"","product.offer_period_abbreviated":"","product.offer_period_in_days":"","product.offer_period_in_weeks":"","product.offer_period_in_months":"","product.offer_period_in_years":"","product.offer_period_with_unit":"","product.offer_end_date":"","product.secondary_offer_price":"","product.secondary_offer_period":"","product.secondary_offer_period_abbreviated":"","product.relative_discount":""};if(eP(l,s)){c["product.price_per_period_abbreviated"]=Jd(o,s,t),c["product.price_per_period"]=Jd(o,s,t,!0);const u=n.period||s.base.period,d=Xd(a,u,t);if(c["product.price_per_day"]=d.pricePerDay,c["product.price_per_week"]=d.pricePerWeek,c["product.price_per_month"]=d.pricePerMonth,c["product.price_per_year"]=d.pricePerYear,u){const f=Js(u,t);c["product.period"]=f.period,c["product.period_abbreviated"]=f.periodAbbreviated,c["product.period_with_unit"]=f.periodWithUnit,c["product.period_in_days"]=f.periodInDays,c["product.period_in_weeks"]=f.periodInWeeks,c["product.period_in_months"]=f.periodInMonths,c["product.period_in_years"]=f.periodInYears,c["product.periodly"]=t.translatePeriodFrequency(u.number,u.unit)||""}const p=oi(e),_=oi(r),g=(_-p)*100/_;c["product.relative_discount"]=g<1?"":t.translate(J.PaywallVariablesSubRelativeDiscount,{discount:g.toFixed(0)}),Qw(s,t,c)}return(l===Lt.NonConsumable||l===Lt.Consumable)&&s&&(c["product.price"]=o,c["product.price_per_period"]=o,c["product.price_per_period_abbreviated"]=o,c["product.price_per_month"]=o,c["product.period_with_unit"]=t.translate(J.PeriodsLifetime),c["product.period_in_months"]=t.translate(J.PeriodsLifetime),c["product.periodly"]=t.translate(J.PeriodsLifetime),c["product.price_per_week"]="",c["product.relative_discount"]="",c["product.period"]="",c["product.period_abbreviated"]=""),c}var nP=/(%?)(%([sdijo]))/g;function aP(e,r){switch(r){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const t=JSON.stringify(e);return t==="{}"||t==="[]"||/^\[object .+?\]$/.test(t)?e:t}}}function Qs(e,...r){if(r.length===0)return e;let t=0,n=e.replace(nP,(a,o,s,l)=>{const c=r[t],u=aP(c,l);return o?a:(t++,u)});return t<r.length&&(n+=` ${r.slice(t).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var oP=2;function iP(e){if(!e.stack)return;const r=e.stack.split(`
|
|
374
|
+
}`};function tw(e,r){ne(r,!0),oe(e,rw);const t=h(()=>{var u;return new fa((u=r.brandingInfo)==null?void 0:u.appearance).pageStyleVars}),n=h(()=>{var u,d;return((d=(u=r.brandingInfo)==null?void 0:u.appearance)==null?void 0:d.color_page_bg)??"#ffffff"}),a=h(()=>Ed(r.brandingInfo)),o=h(()=>i(a).wordmarkSrc),s=h(()=>i(a).wordmarkSrcWebp),l=h(()=>i(a).src),c=h(()=>i(a).srcWebp);{let u=h(()=>{var p;return(p=r.brandingInfo)==null?void 0:p.appearance}),d=h(()=>{var p;return(p=r.brandingInfo)==null?void 0:p.brand_font_config});vd(e,{get brandingAppearance(){return i(u)},get brandFontConfig(){return i(d)},get isInElement(){return r.isInElement},children:(p,_)=>{var g=ew(),f=ee(g);{var v=D=>{Pd(D,{get style(){return i(t)},get isInElement(){return r.isInElement},get brandingInfo(){return r.brandingInfo}})};Y(f,D=>{r.isSandbox&&D(v)})}var y=H(f,2),m=M(y);let w;var k=M(m);{var b=D=>{Sd(D,{get src(){return i(o)},get srcWebp(){return i(s)}})},A=D=>{var I=he(),j=ee(I);{var F=S=>{xd(S,{get src(){return i(l)},get srcWebp(){return i(c)}})},P=S=>{var q=he(),N=ee(q);{var C=z=>{xe(z,{size:"body-base",children:(O,G)=>{var R=Fe();V(()=>Pe(R,r.brandingInfo.app_name)),T(O,R)},$$slots:{default:!0}})};Y(N,z=>{var O;(O=r.brandingInfo)!=null&&O.app_name&&z(C)},!0)}T(S,q)};Y(j,S=>{i(l)!==null&&i(c)!==null?S(F):S(P,!1)},!0)}T(D,I)};Y(k,D=>{i(o)!==null?D(b):D(A,!1)})}var E=H(m,2),x=M(E);er(x,()=>r.mainContent??De),V(()=>{be(y,`${i(t)??""}; background-color: ${i(n)??""}`),w=or(m,1,"rcb-fullscreen-header svelte-skuziz",null,w,{"static-header":r.isInElement})}),T(p,g)},$$slots:{default:!0}})}ae()}var nw=U("<!> <!> <!>",1),aw=U('<div class="rcb-ui-loading-container svelte-1r889ax"><!></div>');const ow={hash:"svelte-1r889ax",code:".rcb-ui-loading-container.svelte-1r889ax {display:flex;flex-direction:column;align-items:center;}"};function iw(e,r){ne(r,!0),oe(e,ow);const t=()=>Se(o,"$translator",n),[n,a]=Me(),o=We(xr);tw(e,{get brandingInfo(){return r.brandingInfo},get isInElement(){return r.isInElement},get isSandbox(){return r.isSandbox},mainContent:l=>{var c=he(),u=ee(c);{var d=_=>{var g=aw(),f=M(g);Ss(f,{gap:"medium",align:"center",children:(v,y)=>{var m=nw(),w=ee(m);Zu(w,{color:"var(--rc-color-grey-text-dark)"});var k=H(w,2);xe(k,{size:"heading-md",children:(A,E)=>{var x=Fe();V(D=>Pe(x,D),[()=>t().translate(J.LoadingPageProcessingPayment)]),T(A,x)},$$slots:{default:!0}});var b=H(k,2);xe(b,{size:"body-small",children:(A,E)=>{var x=Fe();V(D=>Pe(x,D),[()=>t().translate(J.LoadingPageKeepPageOpen)]),T(A,x)},$$slots:{default:!0}}),T(v,m)},$$slots:{default:!0}}),T(_,g)},p=_=>{var g=he(),f=ee(g);{var v=m=>{yd(m,{get onContinue(){return r.onContinue},fullWidth:!0})},y=m=>{var w=he(),k=ee(w);{var b=A=>{{let E=h(()=>{var D;return((D=r.brandingInfo)==null?void 0:D.support_email)??null}),x=h(()=>{var D;return((D=r.brandingInfo)==null?void 0:D.app_name)??null});hd(A,{get lastError(){return r.lastError},get productDetails(){return r.productDetails},get supportEmail(){return i(E)},get onDismiss(){return r.closeWithError},get appName(){return i(x)},fullWidth:!0})}};Y(k,A=>{r.currentPage==="error"&&A(b)},!0)}T(m,w)};Y(f,m=>{r.currentPage==="success"?m(v):m(y,!1)},!0)}T(_,g)};Y(u,_=>{r.currentPage==="loading"?_(d):_(p,!1)})}T(l,c)},$$slots:{mainContent:!0}}),ae(),a()}function sw(e,r){var k;ne(r,!0);const t=K(r,"customTranslations",19,()=>({})),n=K(r,"skipSuccessPage",3,!1);let a=new ca(t(),r.selectedLocale,r.defaultLocale),o=Xt(a);vr(xr,o),vr(Ka,(k=r.brandingInfo)==null?void 0:k.appearance),vr($o,r.eventsTracker);let s=X(!1),l=X(null),c=X(null),u=X("waiting");tt(()=>{i(u)==="success"&&i(l)&&n()&&r.onFinished(i(l))});const d=()=>{i(u)==="success"&&i(l)&&r.onFinished(i(l))},p=()=>{r.onError(i(c)??new se(re.UnknownError,"Unknown error without state set.")),r.unmountPaddlePurchaseUi()},_=(b,A)=>b instanceof se?b:b instanceof Be?se.fromPurchasesError(b,re.UnknownError):new se(re.UnknownError,A);let g=null,f=null,v=null;_r(async()=>{var x;r.isInElement||(g=document.documentElement.style.height,f=document.documentElement.style.overflow,v=document.body.style.height,document.documentElement.style.height="100%",document.body.style.height="100%",document.documentElement.style.overflow="hidden");const b=()=>{L(u,"loading")},A={offeringIdentifier:r.productDetails.presentedOfferingContext.offeringIdentifier,targetingContext:null,placementIdentifier:null};let E;try{E=await r.paddleService.startCheckout({appUserId:r.appUserId,productId:r.productDetails.identifier,presentedOfferingContext:A,purchaseOption:r.purchaseOption,customerEmail:r.customerEmail,metadata:r.metadata}),L(s,E.paddle_billing_params.is_sandbox,!0)}catch(D){const I=_(D,`Start Paddle checkout failed: ${D}`);L(c,I,!0),L(u,"error"),r.onError(I);return}try{const D=await r.paddleService.purchase({operationSessionId:E.operation_session_id,transactionId:(x=E.paddle_billing_params)==null?void 0:x.transaction_id,onCheckoutLoaded:b,onClose:r.onClose,params:{rcPackage:r.rcPackage,purchaseOption:r.purchaseOption,appUserId:r.appUserId,presentedOfferingIdentifier:r.productDetails.presentedOfferingContext.offeringIdentifier,customerEmail:r.customerEmail,locale:r.selectedLocale||r.defaultLocale}});n()?r.onFinished(D):(L(l,D,!0),L(u,"success"))}catch(D){const I=_(D,`Paddle purchase failed: ${D}`);L(c,I,!0),L(u,"error"),r.onError(I)}}),ra(()=>{if(!r.isInElement){const b=(A,E,x)=>{x===""?A.style.removeProperty(E):A.style.setProperty(E,x)};b(document.documentElement,"height",g),b(document.body,"height",v),b(document.documentElement,"overflow",f)}});var y=he(),m=ee(y);{var w=b=>{iw(b,{get currentPage(){return i(u)},get brandingInfo(){return r.brandingInfo},get productDetails(){return r.productDetails},get isSandbox(){return i(s)},get lastError(){return i(c)},get isInElement(){return r.isInElement},onContinue:d,closeWithError:p})};Y(m,b=>{i(u)!=="waiting"&&b(w)})}T(e,y),ae()}function zd(e){return e==null?!0:new Date(e)>new Date}function lw(e,r,t,n){const a=r.product_identifier;if(a in t)return cw(e,r,t[a]);if(a in n)return uw(e,r,n[a]);throw new Be(Xe.CustomerInfoError,"Could not find entitlement product in subscriptions or non-subscriptions.")}function cw(e,r,t){return{identifier:e,isActive:zd(r.expires_date),willRenew:Md(r.expires_date,t),store:(t==null?void 0:t.store)??"unknown",latestPurchaseDate:new Date(r.purchase_date),originalPurchaseDate:new Date(r.purchase_date),expirationDate:Bt(r.expires_date),productIdentifier:r.product_identifier,productPlanIdentifier:r.product_plan_identifier??null,unsubscribeDetectedAt:Bt(t==null?void 0:t.unsubscribe_detected_at),billingIssueDetectedAt:Bt(t==null?void 0:t.billing_issues_detected_at),isSandbox:(t==null?void 0:t.is_sandbox)??!1,periodType:(t==null?void 0:t.period_type)??"normal",ownershipType:(t==null?void 0:t.ownership_type)??"UNKNOWN"}}function uw(e,r,t){return{identifier:e,isActive:!0,willRenew:!1,store:t.store,latestPurchaseDate:new Date(r.purchase_date),originalPurchaseDate:new Date(t.original_purchase_date),expirationDate:null,productIdentifier:r.product_identifier,productPlanIdentifier:null,unsubscribeDetectedAt:null,billingIssueDetectedAt:null,isSandbox:t.is_sandbox,periodType:"normal",ownershipType:"UNKNOWN"}}function dw(e,r,t){const n={},a={};for(const o in e){const s=lw(o,e[o],r,t);n[o]=s,s.isActive&&(a[o]=s)}return{all:n,active:a}}function Bt(e){return e==null?null:new Date(e)}function Hs(e){const r=_w(e),t=e.subscriber,n=fw(t.non_subscriptions),a=Object.entries(e.subscriber.non_subscriptions).flatMap(([l,c])=>c.map(u=>({transactionIdentifier:u.id,productIdentifier:l,purchaseDate:new Date(u.purchase_date||u.original_purchase_date),storeTransactionId:u.store_transaction_id||null,store:u.store}))),o=new Date(e.request_date),s=Object.fromEntries(Object.entries(e.subscriber.subscriptions).map(([l,c])=>[l,{productIdentifier:l,purchaseDate:new Date(c.purchase_date),originalPurchaseDate:Bt(c.original_purchase_date),expiresDate:Bt(c.expires_date),store:c.store,unsubscribeDetectedAt:Bt(c.unsubscribe_detected_at),isSandbox:c.is_sandbox,billingIssuesDetectedAt:Bt(c.billing_issues_detected_at),gracePeriodExpiresDate:Bt(c.grace_period_expires_date),ownershipType:c.ownership_type??"UNKNOWN",periodType:c.period_type,refundedAt:Bt(c.refunded_at),storeTransactionId:c.store_transaction_id||null,isActive:zd(c.expires_date),willRenew:Md(c.expires_date,c)}]));return{entitlements:dw(t.entitlements,t.subscriptions,n),allExpirationDatesByProduct:r,allPurchaseDatesByProduct:pw(e,n),activeSubscriptions:gw(r),managementURL:t.management_url,requestDate:o,firstSeenDate:new Date(t.first_seen),originalPurchaseDate:Bt(t.original_purchase_date),originalAppUserId:e.subscriber.original_app_user_id,nonSubscriptionTransactions:a,subscriptionsByProductIdentifier:s}}function Md(e,r){if(r==null)return!1;const t=r.store=="promotional",n=e==null,a=r.unsubscribe_detected_at!=null,o=r.billing_issues_detected_at!=null;return!(t||n||a||o)}function pw(e,r){const t={};for(const n in e.subscriber.subscriptions){const a=e.subscriber.subscriptions[n];t[n]=new Date(a.purchase_date)}for(const n in r){const a=r[n].purchase_date;a==null?t[n]=null:t[n]=new Date(a)}return t}function _w(e){const r={};for(const t in e.subscriber.subscriptions){const n=e.subscriber.subscriptions[t];n.expires_date==null?r[t]=null:r[t]=new Date(n.expires_date)}return r}function gw(e){const r=new Set,t=new Date;for(const n in e){const a=e[n];(a==null||a>t)&&r.add(n)}return r}function fw(e){const r={};for(const t in e){if(e[t].length===0)continue;const n=e[t].length;r[t]=e[t][n-1]}return r}const jd="1.22.1",mw="https://api.revenuecat.com",hw="https://e.revenue.cat";var ei;(function(e){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"})(ei||(ei={}));const yw=/^rcb_[a-zA-Z0-9_.-]+$/,vw=/^pdl_[a-zA-Z0-9_.-]+$/,bw=/^test_[a-zA-Z0-9_.-]+$/;function ri(e){return e?e.startsWith("rcb_sb_"):!1}function kw(e){return e?yw.test(e):!1}function Od(e){return e?vw.test(e):!1}function Dn(e){return e?bw.test(e):!1}async function ht(e,r,t){return(await Nd(e,r,t)).data}async function Nd(e,r,t){const{apiKey:n,body:a,headers:o,httpConfig:s}=r,c=`${(s==null?void 0:s.proxyURL)??mw}${e.urlPath()}`;try{const u=await fetch(c,{method:e.method,headers:Gd(n,o,s==null?void 0:s.additionalHeaders),body:Pw(a),signal:t});await ww(u,e);const d=u.status;return{data:await u.json(),statusCode:d}}catch(u){throw u instanceof TypeError?new Be(Xe.NetworkError,aa.getPublicMessage(Xe.NetworkError),u.message):u}}async function ww(e,r){const t=e.status;if(t>=ei.INTERNAL_SERVER_ERROR)Ws(r,t,await e.text());else if(t>=ei.BAD_REQUEST){const n=await e.json(),a=n?JSON.stringify(n):null,o=n==null?void 0:n.code,s=n==null?void 0:n.message;if(o!=null){const l=aa.convertCodeToBackendErrorCode(o);if(l==null)Ws(r,t,a,o);else throw Be.getForBackendError(l,s)}else Ws(r,t,a)}}function Ws(e,r,t,n){throw new Be(Xe.UnknownBackendError,"Unknown backend error.",`Request: ${e.name}. Status code: ${r}. Body: ${t}.`,{backendErrorCode:n})}function Pw(e){return e==null?null:JSON.stringify(e)}const Ld="Authorization",Bd="Content-Type",Ud="Accept",Rd="X-Platform",Vd="X-Version",Hd="X-Platform-Flavor",Wd="X-Platform-Flavor-Version",Yd="X-Is-Sandbox",xw=new Set([Ld,Bd,Ud,Rd,Vd,Yd,Hd,Wd]);function Gd(e,r,t){let n={[Ld]:`Bearer ${e}`,[Bd]:"application/json",[Ud]:"application/json",[Rd]:"web",[Vd]:jd,[Yd]:`${ri(e)}`};const a=ii.getPlatformInfo();if(a){const o={[Hd]:a.flavor,[Wd]:a.version};n={...n,...o}}return r&&(n={...n,...r}),t&&(n={...t,...n}),n}const io="/v1/subscribers",ma="/rcbilling/v1";class Ew{constructor(r){W(this,"appUserId");W(this,"method","GET");W(this,"name","getOfferings");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}/offerings`}}class Sw{constructor(r,t,n){W(this,"method","GET");W(this,"name","getProducts");W(this,"appUserId");W(this,"productIds");W(this,"currency");this.appUserId=r,this.productIds=t,this.currency=n}urlPath(){const r=encodeURIComponent(this.appUserId),t=this.productIds.map(encodeURIComponent).join("&id="),n=this.currency?`¤cy=${this.currency}`:"";return`${ma}/subscribers/${r}/products?id=${t}${n}`}}class Tw{constructor(r){W(this,"method","GET");W(this,"name","getCustomerInfo");W(this,"appUserId");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}`}}class Iw{constructor(){W(this,"method","POST");W(this,"name","identify")}urlPath(){return`${io}/identify`}}class Dw{constructor(){W(this,"method","GET");W(this,"name","getBrandingInfo")}urlPath(){return`${ma}/branding`}}class Cw{constructor(){W(this,"method","POST");W(this,"name","postCheckoutStart")}urlPath(){return`${ma}/checkout/start`}}class Aw{constructor(r){W(this,"method","POST");W(this,"name","postCheckoutCalculateTax");W(this,"operationSessionId");this.operationSessionId=r}urlPath(){return`${ma}/checkout/${this.operationSessionId}/calculate_taxes`}}class qw{constructor(r){W(this,"method","POST");W(this,"name","postCheckoutComplete");W(this,"operationSessionId");this.operationSessionId=r}urlPath(){return`${ma}/checkout/${this.operationSessionId}/complete`}}class Fw{constructor(r){W(this,"method","GET");W(this,"name","getCheckoutStatus");W(this,"operationSessionId");this.operationSessionId=r}urlPath(){return`${ma}/checkout/${this.operationSessionId}`}}class zw{constructor(r){W(this,"method","POST");W(this,"name","setAttributes");W(this,"appUserId");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}/attributes`}}class Mw{constructor(){W(this,"method","POST");W(this,"name","postReceipt")}urlPath(){return"/v1/receipts"}}class jw{constructor(r){W(this,"method","GET");W(this,"name","getVirtualCurrencies");W(this,"appUserId");this.appUserId=r}urlPath(){const r=encodeURIComponent(this.appUserId);return`${io}/${r}/virtual_currencies`}}const Ys={};class Ow{constructor(r,t=Ys,n){W(this,"API_KEY");W(this,"httpConfig");W(this,"isSandbox");W(this,"purchasesContext");this.API_KEY=r,this.httpConfig=t,this.isSandbox=ri(r),this.purchasesContext=n}getIsSandbox(){return this.isSandbox}async getOfferings(r){return await ht(new Ew(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async getCustomerInfo(r){return await ht(new Tw(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async identify(r,t){const n={app_user_id:r,new_app_user_id:t},a=await Nd(new Iw,{apiKey:this.API_KEY,body:n,httpConfig:this.httpConfig}),o=a.statusCode===201;return{...a.data,was_created:o}}async getProducts(r,t,n){return await ht(new Sw(r,t,n),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async getBrandingInfo(){return await ht(new Dw,{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async postCheckoutStart(r,t,n,a,o,s,l=void 0,c){var d,p;const u={app_user_id:r,product_id:t,email:s,price_id:a.priceId,presented_offering_identifier:n.offeringIdentifier,trace_id:o};return l&&(u.metadata=l),a.id!=="base_option"&&(u.offer_id=a.id),n.targetingContext&&(u.applied_targeting_rule={rule_id:n.targetingContext.ruleId,revision:n.targetingContext.revision}),n.placementIdentifier&&(u.presented_placement_identifier=n.placementIdentifier),(p=(d=this.purchasesContext)==null?void 0:d.workflowContext)!=null&&p.workflowIdentifier&&(u.presented_workflow_id=this.purchasesContext.workflowContext.workflowIdentifier),c&&(u.presented_step_id=c),await ht(new Cw,{apiKey:this.API_KEY,body:u,httpConfig:this.httpConfig})}async postCheckoutCalculateTax(r,t,n,a){const o={country_code:t,postal_code:n};return await ht(new Aw(r),{apiKey:this.API_KEY,body:o,httpConfig:this.httpConfig},a)}async postCheckoutComplete(r,t){const n={email:t};return await ht(new qw(r),{apiKey:this.API_KEY,body:n,httpConfig:this.httpConfig})}async getCheckoutStatus(r){return await ht(new Fw(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}async setAttributes(r,t){const n=Date.now(),a={};for(const[s,l]of Object.entries(t))a[s]={value:l,updated_at_ms:n};const o={attributes:a};return await ht(new zw(r),{apiKey:this.API_KEY,body:o,httpConfig:this.httpConfig})}async postReceipt(r,t,n,a,o,s){var u,d;let l=null;o.targetingContext&&(l={rule_id:o.targetingContext.ruleId,revision:o.targetingContext.revision});const c={fetch_token:a,product_id:t,currency:n,app_user_id:r,presented_offering_identifier:o.offeringIdentifier,presented_placement_identifier:o.placementIdentifier,presented_workflow_id:(d=(u=this.purchasesContext)==null?void 0:u.workflowContext)==null?void 0:d.workflowIdentifier,applied_targeting_rule:l,initiation_source:s};return await ht(new Mw,{apiKey:this.API_KEY,body:c,httpConfig:this.httpConfig})}async getVirtualCurrencies(r){return await ht(new jw(r),{apiKey:this.API_KEY,httpConfig:this.httpConfig})}}function Nw(e){if(!(kw(e)||Dn(e)||Od(e)))throw new Be(Xe.InvalidCredentialsError,"Invalid API key. Use your Web Billing API key.")}function Gs(e){if(!e||new Set(["no_user","null","none","nil","(null)","NaN","\\x00","","unidentified","undefined","unknown"]).has(e)||e.includes("/"))throw new Be(Xe.InvalidAppUserIdError,'Provided user id: "'+(e??"[Not provided]")+'" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.')}function Lw(e){if(e!=null&&e.endsWith("/"))throw new Be(Xe.ConfigurationError,"Invalid proxy URL. The proxy URL should not end with a trailing slash.")}function Bw(e){if(e){for(const r in e)if(xw.has(r))throw new Be(Xe.ConfigurationError,"Invalid additional headers. Some headers are reserved for internal use.")}}var $s=(e=>(e.Current="current",e))($s||{});function $d(e,r){async function t(...n){return await this.preload(),await e.call(this,...n)}return t}const Kd=(e,r)=>{const t={...e.webBillingProduct,presentedOfferingContext:{...e.webBillingProduct.presentedOfferingContext,placementIdentifier:r}};return{...e,webBillingProduct:t,rcBillingProduct:t}},Cn=(e,r)=>e==null?null:Kd(e,r),Uw=(e,r,t)=>{const n=e.offering_ids_by_placement??null;if(n==null)return null;const a=e.fallback_offering_id??null;let o;if(t in n){const l=n[t]??null;if(l==null)return null;o=r[l],o==null&&(o=r[a])}else o=r[a];if(o==null)return null;const s=Object.fromEntries(Object.entries(o.packagesById).map(([l,c])=>[l,Kd(c,t)]));return{...o,packagesById:s,availablePackages:Object.values(s),weekly:Cn(o.weekly,t),monthly:Cn(o.monthly,t),twoMonth:Cn(o.twoMonth,t),threeMonth:Cn(o.threeMonth,t),sixMonth:Cn(o.sixMonth,t),annual:Cn(o.annual,t),lifetime:Cn(o.lifetime,t)}};function Rw(e,r){const t={};r.product_details.forEach(o=>{t[o.identifier]=o});const n={};e.offerings.forEach(o=>{const s=o.identifier===e.current_offering_id,l=Mv(s,o,t,e.targeting,e.ui_config);l!=null&&(n[o.identifier]=l)});const a=e.current_offering_id?n[e.current_offering_id]??null:null;return Object.keys(n).length==0&&ce.debugLog("Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."),{all:n,current:a}}const Vw=1000001,Ks=7,ti=30,Xs=365,ni=4.33,Zs=52,ai=12;function Hw(e){switch(e.unit){case ue.Year:return e.number*Xs;case ue.Month:return e.number*ti;case ue.Week:return e.number*Ks;case ue.Day:return e.number}}function Ww(e){switch(e.unit){case ue.Year:return e.number*Zs;case ue.Month:return e.number*ni;case ue.Week:return e.number;case ue.Day:return 0}}function Yw(e){switch(e.unit){case ue.Year:return e.number*ai;case ue.Month:return e.number;case ue.Week:case ue.Day:return 0}}function Gw(e){switch(e.unit){case ue.Year:return e.number;case ue.Month:case ue.Week:case ue.Day:return 0}}function Js(e,r){const{unit:t,number:n}=e;return{period:r.translatePeriodUnit(t,{noWhitespace:!0})??"",periodAbbreviated:r.translatePeriodUnit(t,{noWhitespace:!0,short:!0})??"",periodWithUnit:r.translatePeriod(n,t)??"",periodInDays:Hw(e).toString(),periodInWeeks:Ww(e).toString(),periodInMonths:Yw(e).toString(),periodInYears:Gw(e).toString()}}function $w(e,r,t){const n=t.formatPrice(e.amountMicros,e.currency);return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/Xs/r.number,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros/ti/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros/Ks/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros/r.number,e.currency):n:n}function Kw(e,r,t){const n=t.formatPrice(e.amountMicros,e.currency);return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/Zs/r.number,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros/ni/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros*Ks/r.number,e.currency):n:n}function Xw(e,r,t){return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/ai,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros*ni/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros*ti/r.number,e.currency):t.formatPrice(e.amountMicros/(r.number||1),e.currency):t.formatPrice(e.amountMicros,e.currency)}function Zw(e,r,t){const n=t.formatPrice(e.amountMicros,e.currency);return r?r.unit===ue.Year?t.formatPrice(e.amountMicros/r.number,e.currency):r.unit===ue.Month?t.formatPrice(e.amountMicros*ai/r.number,e.currency):r.unit===ue.Week?t.formatPrice(e.amountMicros*Zs/r.number,e.currency):r.unit===ue.Day?t.formatPrice(e.amountMicros*Xs/r.number,e.currency):n:n}function Xd(e,r,t){return{pricePerDay:$w(e,r,t),pricePerWeek:Kw(e,r,t),pricePerMonth:Xw(e,r,t),pricePerYear:Zw(e,r,t)}}function Jw(e,r){const t=new Date;switch(e.unit){case ue.Year:t.setFullYear(t.getFullYear()+e.number);break;case ue.Month:t.setMonth(t.getMonth()+e.number);break;case ue.Week:t.setDate(t.getDate()+e.number*7);break;case ue.Day:t.setDate(t.getDate()+e.number);break}return r.translateDate(t,{dateStyle:"long"})??""}function Qw(e,r,t){const n=e.trial??e.introPrice,a=e.trial?e.introPrice:null;if(n===null)return;const{period:o,price:s}=n;if(s!==null){const l=Xd(s,o,r);t["product.offer_price"]=r.formatPrice(s.amountMicros,s.currency),t["product.offer_price_per_day"]=l.pricePerDay,t["product.offer_price_per_week"]=l.pricePerWeek,t["product.offer_price_per_month"]=l.pricePerMonth,t["product.offer_price_per_year"]=l.pricePerYear}if(o!==null){const l=Js(o,r);t["product.offer_period"]=l.period,t["product.offer_period_abbreviated"]=l.periodAbbreviated,t["product.offer_period_with_unit"]=l.periodWithUnit,t["product.offer_period_in_days"]=l.periodInDays,t["product.offer_period_in_weeks"]=l.periodInWeeks,t["product.offer_period_in_months"]=l.periodInMonths,t["product.offer_period_in_years"]=l.periodInYears,t["product.offer_end_date"]=Jw(o,r)}if(a!==null&&(a.price!==null&&(t["product.secondary_offer_price"]=r.formatPrice(a.price.amountMicros,a.price.currency)),a.period!==null)){const l=Js(a.period,r);t["product.secondary_offer_period"]=l.period,t["product.secondary_offer_period_abbreviated"]=l.periodAbbreviated}}function oi(e){var a;const r=e.webBillingProduct.price,t=Zd(e),n=e.webBillingProduct.period||((a=t==null?void 0:t.base)==null?void 0:a.period);if(!n||!n.number||n.number<=0)return r.amountMicros;switch(n.unit){case ue.Year:return r.amountMicros/ai;case ue.Month:return r.amountMicros/n.number;case ue.Week:return r.amountMicros*ni/n.number;case ue.Day:return r.amountMicros*ti/n.number;default:return r.amountMicros/(n.number||1)}}function Zd(e){return e.webBillingProduct.productType===Lt.Subscription?e.webBillingProduct.defaultSubscriptionOption:e.webBillingProduct.defaultPurchaseOption}function eP(e,r){return e===Lt.Subscription&&r!=null}function Jd(e,r,t,n=!1){return t.translate(J.PaywallVariablesPricePerPeriod,{formattedPrice:e,period:r.base.period?r.base.period.number===1?t.translatePeriodUnit(r.base.period.unit,{noWhitespace:!0,short:!n}):t.translatePeriod(r.base.period.number,r.base.period.unit,{noWhitespace:!0,short:!n}):""})}function rP(e,r){const t=e.availablePackages,n=t.reduce((a,o)=>{const s=oi(a),l=oi(o);return s>l?a:o});return t.reduce((a,o)=>(a[o.identifier]=tP(o,n,r),a),{})}function tP(e,r,t){const n=e.webBillingProduct,a=n.price,o=t.formatPrice(a.amountMicros,a.currency),s=Zd(e),l=n.productType,c={"product.store_product_name":n.title,"product.price":o,"product.price_per_period":"","product.price_per_period_abbreviated":"","product.price_per_day":"","product.price_per_week":"","product.price_per_month":"","product.price_per_year":"","product.period":"","product.period_abbreviated":"","product.periodly":"","product.period_in_days":"","product.period_in_weeks":"","product.period_in_months":"","product.period_in_years":"","product.period_with_unit":"","product.currency_code":a.currency,"product.currency_symbol":t.formatPrice(0,a.currency).replace("0",""),"product.offer_price":"","product.offer_price_per_day":"","product.offer_price_per_week":"","product.offer_price_per_month":"","product.offer_price_per_year":"","product.offer_period":"","product.offer_period_abbreviated":"","product.offer_period_in_days":"","product.offer_period_in_weeks":"","product.offer_period_in_months":"","product.offer_period_in_years":"","product.offer_period_with_unit":"","product.offer_end_date":"","product.secondary_offer_price":"","product.secondary_offer_period":"","product.secondary_offer_period_abbreviated":"","product.relative_discount":""};if(eP(l,s)){c["product.price_per_period_abbreviated"]=Jd(o,s,t),c["product.price_per_period"]=Jd(o,s,t,!0);const u=n.period||s.base.period,d=Xd(a,u,t);if(c["product.price_per_day"]=d.pricePerDay,c["product.price_per_week"]=d.pricePerWeek,c["product.price_per_month"]=d.pricePerMonth,c["product.price_per_year"]=d.pricePerYear,u){const f=Js(u,t);c["product.period"]=f.period,c["product.period_abbreviated"]=f.periodAbbreviated,c["product.period_with_unit"]=f.periodWithUnit,c["product.period_in_days"]=f.periodInDays,c["product.period_in_weeks"]=f.periodInWeeks,c["product.period_in_months"]=f.periodInMonths,c["product.period_in_years"]=f.periodInYears,c["product.periodly"]=t.translatePeriodFrequency(u.number,u.unit)||""}const p=oi(e),_=oi(r),g=(_-p)*100/_;c["product.relative_discount"]=g<1?"":t.translate(J.PaywallVariablesSubRelativeDiscount,{discount:g.toFixed(0)}),Qw(s,t,c)}return(l===Lt.NonConsumable||l===Lt.Consumable)&&s&&(c["product.price"]=o,c["product.price_per_period"]=o,c["product.price_per_period_abbreviated"]=o,c["product.price_per_month"]=o,c["product.period_with_unit"]=t.translate(J.PeriodsLifetime),c["product.period_in_months"]=t.translate(J.PeriodsLifetime),c["product.periodly"]=t.translate(J.PeriodsLifetime),c["product.price_per_week"]="",c["product.relative_discount"]="",c["product.period"]="",c["product.period_abbreviated"]=""),c}var nP=/(%?)(%([sdijo]))/g;function aP(e,r){switch(r){case"s":return e;case"d":case"i":return Number(e);case"j":return JSON.stringify(e);case"o":{if(typeof e=="string")return e;const t=JSON.stringify(e);return t==="{}"||t==="[]"||/^\[object .+?\]$/.test(t)?e:t}}}function Qs(e,...r){if(r.length===0)return e;let t=0,n=e.replace(nP,(a,o,s,l)=>{const c=r[t],u=aP(c,l);return o?a:(t++,u)});return t<r.length&&(n+=` ${r.slice(t).join(" ")}`),n=n.replace(/%{2,2}/g,"%"),n}var oP=2;function iP(e){if(!e.stack)return;const r=e.stack.split(`
|
|
375
375
|
`);r.splice(1,oP),e.stack=r.join(`
|
|
376
376
|
`)}var sP=class extends Error{constructor(e,...r){super(e),this.message=e,this.name="Invariant Violation",this.message=Qs(e,...r),iP(this)}},Qd=(e,r,...t)=>{if(!e)throw new sP(r,...t)};Qd.as=(e,r,t,...n)=>{if(!r){const a=n.length===0?t:Qs(t,...n);let o;try{o=Reflect.construct(e,[a])}catch{o=e(a)}throw o}};const lP="[MSW]";function el(e,...r){const t=Qs(e,...r);return`${lP} ${t}`}function cP(e,...r){console.warn(el(e,...r))}function uP(e,...r){console.error(el(e,...r))}const dP={formatMessage:el,warn:cP,error:uP};function pP(){Qd(typeof URL<"u",dP.formatMessage(`Global "URL" class is not defined. This likely means that you're running MSW in an environment that doesn't support all Node.js standard API (e.g. React Native). If that's the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".`))}var ep=(e=>(e.HEAD="HEAD",e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.OPTIONS="OPTIONS",e.DELETE="DELETE",e))(ep||{});pP();class _P{constructor(r,t,n,a){W(this,"initialDelay");W(this,"maxDelay");W(this,"jitterPercent");W(this,"callback");W(this,"currentDelay");W(this,"timeoutId");W(this,"executingCallback",!1);this.initialDelay=r,this.currentDelay=r,this.maxDelay=t,this.jitterPercent=n,this.callback=a}tryFlush(){if(this.backingOff()){ce.debugLog("Backing off, not flushing");return}this.clearTimeout(),this.executeCallbackWithRetries()}stop(){this.clearTimeout()}schedule(r){if(this.timeoutId!==void 0)return;const t=this.addJitter(r||this.currentDelay);this.timeoutId=setTimeout(()=>{this.timeoutId=void 0,this.executeCallbackWithRetries()},t)}backoff(){const r=this.currentDelay,t=Math.min(this.currentDelay*2,this.maxDelay);ce.debugLog(`Backing next off to ${r}ms delay`),this.clearTimeout(),this.currentDelay=t,this.schedule(r)}reset(){this.currentDelay!==this.initialDelay&&(this.clearTimeout(),this.currentDelay=this.initialDelay)}async executeCallbackWithRetries(){if(this.executingCallback){ce.debugLog("Callback already running, rescheduling"),this.schedule();return}this.executingCallback=!0;try{await this.callback(),this.reset()}catch{this.backoff()}finally{this.executingCallback=!1}}backingOff(){return this.currentDelay>this.initialDelay}clearTimeout(){clearTimeout(this.timeoutId),this.timeoutId=void 0}addJitter(r){const t=r*this.jitterPercent,n=r-t,a=r+t;return Math.floor(Math.random()*(a-n+1)+n)}}function gP(e,r){const t=new URLSearchParams(window.location.search);let n=null,a=null;typeof screen<"u"&&screen&&(n=screen.width,a=screen.height);let o=null,s=null;return typeof document<"u"&&document&&(o=document.referrer,s=document.title),{libraryName:"purchases-js",libraryVersion:jd,locale:navigator.language,userAgent:navigator.userAgent,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenWidth:n,screenHeight:a,utmSource:t.get("utm_source")??null,utmMedium:t.get("utm_medium")??null,utmCampaign:t.get("utm_campaign")??null,utmContent:t.get("utm_content")??null,utmTerm:t.get("utm_term")??null,pageReferrer:o,pageUrl:`${window.location.origin}${window.location.pathname}`,pageTitle:s,source:e,rcSource:r}}const fP=2e3,mP=5*6e4,hP=.1;class yP{constructor(r){W(this,"apiKey");W(this,"eventsQueue",[]);W(this,"eventsUrl");W(this,"flushManager");W(this,"traceId",Xa());W(this,"appUserId");W(this,"isSilent");W(this,"rcSource");W(this,"workflowContext");this.apiKey=r.apiKey,this.eventsUrl=`${hw}/v1/events`,this.appUserId=r.appUserId,this.isSilent=r.silent||!1,this.rcSource=r.rcSource,this.workflowContext=r.workflowContext,this.flushManager=new _P(fP,mP,hP,this.flushEvents.bind(this))}async updateUser(r){this.appUserId=r}getTraceId(){return this.traceId}trackSDKEvent(r){this.trackEvent({...r,source:"sdk"})}trackExternalEvent(r){this.trackEvent({...r})}trackEvent(r){var t;if(this.isSilent){ce.verboseLog("Skipping event tracking, the EventsTracker is silent");return}try{const n=new my({eventName:r.eventName,traceId:this.traceId,appUserId:this.appUserId,context:gP(r.source,this.rcSource),workflowIdentifier:(t=this.workflowContext)==null?void 0:t.workflowIdentifier,properties:r.properties||{mode:qr}});this.eventsQueue.push(n),this.flushManager.tryFlush()}catch(n){ce.errorLog(`Error while tracking event ${r.eventName}: ${n}`)}}dispose(){this.flushManager.stop()}flushEvents(){if(this.eventsQueue.length===0)return Promise.resolve();const r=[...this.eventsQueue];return fetch(this.eventsUrl,{method:ep.POST,headers:Gd(this.apiKey),body:JSON.stringify({events:r})}).then(t=>{if(t.status===200||t.status===201){this.eventsQueue.splice(0,r.length);return}else throw ce.debugLog("Events failed to flush due to server error"),new Error("Events failed to flush due to server error")}).catch(t=>{throw ce.debugLog("Error while flushing events"),t})}}const rl=()=>{const e=new URLSearchParams(window.location.search),r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],t={};return r.forEach(n=>{const a=e.get(n);a!==null&&(t[n]=a)}),t},vP=["app","embedded"],tl={autoCollectUTMAsMetadata:!0,collectAnalyticsEvents:!0};var bP=U('<p class="svelte-17914yi"><strong>Free Trial:</strong> </p>'),kP=U('<p class="svelte-17914yi"><strong>Intro Price:</strong> </p>'),wP=U('<div class="rc-simulated-store-modal-overlay svelte-17914yi"><div class="rc-simulated-store-modal svelte-17914yi"><div class="rc-simulated-store-modal-content svelte-17914yi"><h2 class="rc-simulated-store-modal-title svelte-17914yi">Test Store Purchase</h2> <div class="rc-simulated-store-modal-details svelte-17914yi"><div><p class="svelte-17914yi"><strong>Product:</strong> </p> <p class="svelte-17914yi"><strong>Type:</strong> </p> <p class="svelte-17914yi"><strong>Price:</strong> </p> <!> <!></div></div> <div class="rc-simulated-store-modal-buttons svelte-17914yi"><button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-primary svelte-17914yi">Test valid purchase</button> <button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-secondary svelte-17914yi">Test failed purchase</button> <button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-cancel svelte-17914yi">Cancel</button></div></div></div></div>');const PP={hash:"svelte-17914yi",code:`.rc-simulated-store-modal-overlay.svelte-17914yi {position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;
|
|
377
377
|
/** One more than the paywall */z-index:1000002;}.rc-simulated-store-modal.svelte-17914yi {background:white;border-radius:8px;padding:0;max-width:500px;width:90%;max-height:90%;overflow-y:auto;box-shadow:0 4px 20px rgba(0, 0, 0, 0.15);}.rc-simulated-store-modal-content.svelte-17914yi {padding:24px;}.rc-simulated-store-modal-title.svelte-17914yi {margin:0 0 20px 0;font-size:24px;font-weight:600;color:#333;}.rc-simulated-store-modal-details.svelte-17914yi {margin-bottom:24px;}.rc-simulated-store-modal-details.svelte-17914yi p:where(.svelte-17914yi) {margin:8px 0;color:#666;line-height:1.5;}.rc-simulated-store-modal-buttons.svelte-17914yi {display:flex;flex-direction:column;gap:12px;}.rc-simulated-store-modal-button.svelte-17914yi {padding:12px 24px;border:none;border-radius:6px;font-size:16px;font-weight:500;cursor:pointer;transition:background-color 0.2s ease;}.rc-simulated-store-modal-button-primary.svelte-17914yi {background-color:#007aff;color:white;}.rc-simulated-store-modal-button-primary.svelte-17914yi:hover {background-color:#0056cc;}.rc-simulated-store-modal-button-secondary.svelte-17914yi {background-color:#ff3b30;color:white;}.rc-simulated-store-modal-button-secondary.svelte-17914yi:hover {background-color:#cc2e24;}.rc-simulated-store-modal-button-cancel.svelte-17914yi {background-color:#f2f2f7;color:#333;}.rc-simulated-store-modal-button-cancel.svelte-17914yi:hover {background-color:#e5e5ea;}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@revenuecat/purchases-js",
|
|
3
3
|
"description": "Web subscriptions made easy. Powered by RevenueCat",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "1.22.
|
|
5
|
+
"version": "1.22.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@eslint/js": "^9.16.0",
|
|
61
61
|
"@microsoft/api-extractor": "^7.48.0",
|
|
62
62
|
"@paddle/paddle-js": "^1.5.1",
|
|
63
|
-
"@revenuecat/purchases-ui-js": "3.5.
|
|
63
|
+
"@revenuecat/purchases-ui-js": "3.5.2",
|
|
64
64
|
"@storybook/addon-essentials": "^8.5.0",
|
|
65
65
|
"@storybook/addon-interactions": "^8.5.0",
|
|
66
66
|
"@storybook/addon-links": "^8.5.0",
|