@schematichq/schematic-components 2.6.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic-components.cjs.js +2062 -1270
- package/dist/schematic-components.d.ts +36 -0
- package/dist/schematic-components.esm.js +1760 -968
- package/package.json +17 -14
|
@@ -2540,84 +2540,84 @@ function entitlementCountsReducer(acc, plan) {
|
|
|
2540
2540
|
|
|
2541
2541
|
// src/utils/color.ts
|
|
2542
2542
|
function hexToHSL(color) {
|
|
2543
|
-
let
|
|
2544
|
-
let
|
|
2545
|
-
let
|
|
2543
|
+
let r3 = 0;
|
|
2544
|
+
let g3 = 0;
|
|
2545
|
+
let b3 = 0;
|
|
2546
2546
|
if (color.length == 4) {
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2547
|
+
r3 = parseInt("0x" + color[1] + color[1]);
|
|
2548
|
+
g3 = parseInt("0x" + color[2] + color[2]);
|
|
2549
|
+
b3 = parseInt("0x" + color[3] + color[3]);
|
|
2550
2550
|
} else if (color.length == 7) {
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
const cmin = Math.min(
|
|
2559
|
-
const cmax = Math.max(
|
|
2551
|
+
r3 = parseInt("0x" + color[1] + color[2]);
|
|
2552
|
+
g3 = parseInt("0x" + color[3] + color[4]);
|
|
2553
|
+
b3 = parseInt("0x" + color[5] + color[6]);
|
|
2554
|
+
}
|
|
2555
|
+
r3 /= 255;
|
|
2556
|
+
g3 /= 255;
|
|
2557
|
+
b3 /= 255;
|
|
2558
|
+
const cmin = Math.min(r3, g3, b3);
|
|
2559
|
+
const cmax = Math.max(r3, g3, b3);
|
|
2560
2560
|
const delta = cmax - cmin;
|
|
2561
|
-
let
|
|
2561
|
+
let h3 = 0;
|
|
2562
2562
|
let s = 0;
|
|
2563
|
-
let
|
|
2564
|
-
if (delta == 0)
|
|
2565
|
-
else if (cmax ==
|
|
2566
|
-
else if (cmax ==
|
|
2567
|
-
else
|
|
2568
|
-
|
|
2569
|
-
if (
|
|
2570
|
-
|
|
2571
|
-
s = delta == 0 ? 0 : delta / (1 - Math.abs(2 *
|
|
2563
|
+
let l3 = 0;
|
|
2564
|
+
if (delta == 0) h3 = 0;
|
|
2565
|
+
else if (cmax == r3) h3 = (g3 - b3) / delta % 6;
|
|
2566
|
+
else if (cmax == g3) h3 = (b3 - r3) / delta + 2;
|
|
2567
|
+
else h3 = (r3 - g3) / delta + 4;
|
|
2568
|
+
h3 = Math.round(h3 * 60);
|
|
2569
|
+
if (h3 < 0) h3 += 360;
|
|
2570
|
+
l3 = (cmax + cmin) / 2;
|
|
2571
|
+
s = delta == 0 ? 0 : delta / (1 - Math.abs(2 * l3 - 1));
|
|
2572
2572
|
s = +(s * 100).toFixed(1);
|
|
2573
|
-
|
|
2574
|
-
return { h:
|
|
2573
|
+
l3 = +(l3 * 100).toFixed(1);
|
|
2574
|
+
return { h: h3, s, l: l3 };
|
|
2575
2575
|
}
|
|
2576
|
-
function hslToHex({ h:
|
|
2576
|
+
function hslToHex({ h: h3, s, l: l3 }) {
|
|
2577
2577
|
s /= 100;
|
|
2578
|
-
|
|
2579
|
-
const
|
|
2580
|
-
const
|
|
2581
|
-
const
|
|
2582
|
-
let
|
|
2583
|
-
let
|
|
2584
|
-
let
|
|
2585
|
-
if (0 <=
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
} else if (60 <=
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
} else if (120 <=
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
} else if (180 <=
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
} else if (240 <=
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
} else if (300 <=
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
}
|
|
2610
|
-
let rs = Math.round((
|
|
2611
|
-
let gs = Math.round((
|
|
2612
|
-
let bs = Math.round((
|
|
2578
|
+
l3 /= 100;
|
|
2579
|
+
const c3 = (1 - Math.abs(2 * l3 - 1)) * s;
|
|
2580
|
+
const x3 = c3 * (1 - Math.abs(h3 / 60 % 2 - 1));
|
|
2581
|
+
const m3 = l3 - c3 / 2;
|
|
2582
|
+
let r3 = 0;
|
|
2583
|
+
let g3 = 0;
|
|
2584
|
+
let b3 = 0;
|
|
2585
|
+
if (0 <= h3 && h3 < 60) {
|
|
2586
|
+
r3 = c3;
|
|
2587
|
+
g3 = x3;
|
|
2588
|
+
b3 = 0;
|
|
2589
|
+
} else if (60 <= h3 && h3 < 120) {
|
|
2590
|
+
r3 = x3;
|
|
2591
|
+
g3 = c3;
|
|
2592
|
+
b3 = 0;
|
|
2593
|
+
} else if (120 <= h3 && h3 < 180) {
|
|
2594
|
+
r3 = 0;
|
|
2595
|
+
g3 = c3;
|
|
2596
|
+
b3 = x3;
|
|
2597
|
+
} else if (180 <= h3 && h3 < 240) {
|
|
2598
|
+
r3 = 0;
|
|
2599
|
+
g3 = x3;
|
|
2600
|
+
b3 = c3;
|
|
2601
|
+
} else if (240 <= h3 && h3 < 300) {
|
|
2602
|
+
r3 = x3;
|
|
2603
|
+
g3 = 0;
|
|
2604
|
+
b3 = c3;
|
|
2605
|
+
} else if (300 <= h3 && h3 < 360) {
|
|
2606
|
+
r3 = c3;
|
|
2607
|
+
g3 = 0;
|
|
2608
|
+
b3 = x3;
|
|
2609
|
+
}
|
|
2610
|
+
let rs = Math.round((r3 + m3) * 255).toString(16);
|
|
2611
|
+
let gs = Math.round((g3 + m3) * 255).toString(16);
|
|
2612
|
+
let bs = Math.round((b3 + m3) * 255).toString(16);
|
|
2613
2613
|
if (rs.length == 1) rs = "0" + rs;
|
|
2614
2614
|
if (gs.length == 1) gs = "0" + gs;
|
|
2615
2615
|
if (bs.length == 1) bs = "0" + bs;
|
|
2616
2616
|
return "#" + rs + gs + bs;
|
|
2617
2617
|
}
|
|
2618
2618
|
function adjustLightness(color, amount) {
|
|
2619
|
-
const { h:
|
|
2620
|
-
return hslToHex({ h:
|
|
2619
|
+
const { h: h3, s, l: l3 } = hexToHSL(color);
|
|
2620
|
+
return hslToHex({ h: h3, s, l: Math.max(Math.min(l3 + amount * 100, 100), 0) });
|
|
2621
2621
|
}
|
|
2622
2622
|
function lighten(color, amount) {
|
|
2623
2623
|
return adjustLightness(color, amount);
|
|
@@ -2626,8 +2626,8 @@ function darken(color, amount) {
|
|
|
2626
2626
|
return adjustLightness(color, -amount);
|
|
2627
2627
|
}
|
|
2628
2628
|
function hsla(color, amount) {
|
|
2629
|
-
const { h:
|
|
2630
|
-
return `hsla(${
|
|
2629
|
+
const { h: h3, s, l: l3 } = hexToHSL(color);
|
|
2630
|
+
return `hsla(${h3}, ${s}%, ${l3}%, ${amount})`;
|
|
2631
2631
|
}
|
|
2632
2632
|
function isLightColor(color) {
|
|
2633
2633
|
return hexToHSL(color).l > 50;
|
|
@@ -2681,7 +2681,7 @@ var createKeyboardExecutionHandler = (fn) => {
|
|
|
2681
2681
|
|
|
2682
2682
|
// src/utils/string.ts
|
|
2683
2683
|
function camelToHyphen(str) {
|
|
2684
|
-
return str.replace(/([a-z][A-Z])/g, (
|
|
2684
|
+
return str.replace(/([a-z][A-Z])/g, (g3) => `${g3[0]}-${g3[1].toLowerCase()}`);
|
|
2685
2685
|
}
|
|
2686
2686
|
function formatNumber(num) {
|
|
2687
2687
|
return new Intl.NumberFormat("en-US").format(num);
|
|
@@ -2749,14 +2749,14 @@ var __assign = function() {
|
|
|
2749
2749
|
__assign = Object.assign || function __assign2(t2) {
|
|
2750
2750
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2751
2751
|
s = arguments[i];
|
|
2752
|
-
for (var
|
|
2752
|
+
for (var p3 in s) if (Object.prototype.hasOwnProperty.call(s, p3)) t2[p3] = s[p3];
|
|
2753
2753
|
}
|
|
2754
2754
|
return t2;
|
|
2755
2755
|
};
|
|
2756
2756
|
return __assign.apply(this, arguments);
|
|
2757
2757
|
};
|
|
2758
2758
|
function __spreadArray(to, from2, pack) {
|
|
2759
|
-
if (pack || arguments.length === 2) for (var i = 0,
|
|
2759
|
+
if (pack || arguments.length === 2) for (var i = 0, l3 = from2.length, ar; i < l3; i++) {
|
|
2760
2760
|
if (ar || !(i in from2)) {
|
|
2761
2761
|
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
|
2762
2762
|
ar[i] = from2[i];
|
|
@@ -2784,7 +2784,7 @@ var isPropValid = /* @__PURE__ */ memoize(
|
|
|
2784
2784
|
);
|
|
2785
2785
|
|
|
2786
2786
|
// node_modules/styled-components/dist/styled-components.browser.esm.js
|
|
2787
|
-
import
|
|
2787
|
+
import o, { createElement as r } from "react";
|
|
2788
2788
|
|
|
2789
2789
|
// node_modules/stylis/src/Enum.js
|
|
2790
2790
|
var MS = "-ms-";
|
|
@@ -3125,10 +3125,10 @@ function ruleset(value, root, parent, index, offset, rules, points, type, props,
|
|
|
3125
3125
|
var post = offset - 1;
|
|
3126
3126
|
var rule = offset === 0 ? rules : [""];
|
|
3127
3127
|
var size = sizeof(rule);
|
|
3128
|
-
for (var i = 0,
|
|
3129
|
-
for (var
|
|
3130
|
-
if (
|
|
3131
|
-
props[
|
|
3128
|
+
for (var i = 0, j3 = 0, k3 = 0; i < index; ++i)
|
|
3129
|
+
for (var x3 = 0, y3 = substr(value, post + 1, post = abs(j3 = points[i])), z3 = value; x3 < size; ++x3)
|
|
3130
|
+
if (z3 = trim(j3 > 0 ? rule[x3] + " " + y3 : replace2(y3, /&\f/g, rule[x3])))
|
|
3131
|
+
props[k3++] = z3;
|
|
3132
3132
|
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
|
|
3133
3133
|
}
|
|
3134
3134
|
function comment(value, root, parent, siblings) {
|
|
@@ -3297,8 +3297,8 @@ function prefix(value, length2, children) {
|
|
|
3297
3297
|
// grid-(column|row)
|
|
3298
3298
|
case 5152:
|
|
3299
3299
|
case 5920:
|
|
3300
|
-
return replace2(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(
|
|
3301
|
-
return MS +
|
|
3300
|
+
return replace2(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_3, a3, b3, c3, d3, e2, f2) {
|
|
3301
|
+
return MS + a3 + ":" + b3 + f2 + (c3 ? MS + a3 + "-span:" + (d3 ? e2 : +e2 - +b3) + f2 : "") + value;
|
|
3302
3302
|
});
|
|
3303
3303
|
// position: sticky
|
|
3304
3304
|
case 4949:
|
|
@@ -3461,99 +3461,122 @@ var unitlessKeys = {
|
|
|
3461
3461
|
var a = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
3462
3462
|
var c = "active";
|
|
3463
3463
|
var u = "data-styled-version";
|
|
3464
|
-
var l = "6.3.
|
|
3465
|
-
var
|
|
3464
|
+
var l = "6.3.11";
|
|
3465
|
+
var p = "/*!sc*/\n";
|
|
3466
3466
|
var h = "undefined" != typeof window && "undefined" != typeof document;
|
|
3467
|
-
var
|
|
3468
|
-
var
|
|
3469
|
-
|
|
3470
|
-
var
|
|
3471
|
-
var
|
|
3472
|
-
|
|
3467
|
+
var d = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
|
|
3468
|
+
var m = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
3469
|
+
function y() {
|
|
3470
|
+
for (var e2 = [], t2 = 0; t2 < arguments.length; t2++) e2[t2] = arguments[t2];
|
|
3471
|
+
for (var n = e2[0], o3 = [], r3 = 1, s = e2.length; r3 < s; r3 += 1) o3.push(e2[r3]);
|
|
3472
|
+
return o3.forEach(function(e3) {
|
|
3473
|
+
n = n.replace(/%[a-z]/, e3);
|
|
3474
|
+
}), n;
|
|
3475
|
+
}
|
|
3476
|
+
function v(t2) {
|
|
3477
|
+
for (var n = [], o3 = 1; o3 < arguments.length; o3++) n[o3 - 1] = arguments[o3];
|
|
3478
|
+
return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t2, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(y.apply(void 0, __spreadArray([m[t2]], n, false)).trim());
|
|
3479
|
+
}
|
|
3480
|
+
var g = 1 << 30;
|
|
3481
|
+
var S = /* @__PURE__ */ new Map();
|
|
3482
|
+
var w = /* @__PURE__ */ new Map();
|
|
3483
|
+
var b = 1;
|
|
3484
|
+
var N = function(e2) {
|
|
3485
|
+
if (S.has(e2)) return S.get(e2);
|
|
3486
|
+
for (; w.has(b); ) b++;
|
|
3487
|
+
var t2 = b++;
|
|
3488
|
+
if ((0 | t2) < 0 || t2 > g) throw v(16, "".concat(t2));
|
|
3489
|
+
return S.set(e2, t2), w.set(t2, e2), t2;
|
|
3490
|
+
};
|
|
3491
|
+
var E = function(e2, t2) {
|
|
3492
|
+
b = t2 + 1, S.set(e2, t2), w.set(t2, e2);
|
|
3493
|
+
};
|
|
3494
|
+
var C = /invalid hook call/i;
|
|
3495
|
+
var A = /* @__PURE__ */ new Set();
|
|
3496
|
+
var _ = function(t2, n) {
|
|
3473
3497
|
if (true) {
|
|
3474
|
-
|
|
3475
|
-
var o2 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t2).concat(o2, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
3498
|
+
var r3 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t2).concat(r3, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
3476
3499
|
try {
|
|
3477
|
-
var
|
|
3500
|
+
var a3 = true;
|
|
3478
3501
|
console.error = function(t3) {
|
|
3479
|
-
for (var n2 = [],
|
|
3480
|
-
|
|
3481
|
-
}, "function" == typeof
|
|
3502
|
+
for (var n2 = [], o3 = 1; o3 < arguments.length; o3++) n2[o3 - 1] = arguments[o3];
|
|
3503
|
+
C.test(t3) ? (a3 = false, A.delete(s)) : i.apply(void 0, __spreadArray([t3], n2, false));
|
|
3504
|
+
}, "function" == typeof o.useState && o.useState(null), a3 && !A.has(s) && (console.warn(s), A.add(s));
|
|
3482
3505
|
} catch (e2) {
|
|
3483
|
-
|
|
3506
|
+
C.test(e2.message) && A.delete(s);
|
|
3484
3507
|
} finally {
|
|
3485
3508
|
console.error = i;
|
|
3486
3509
|
}
|
|
3487
3510
|
}
|
|
3488
3511
|
};
|
|
3489
|
-
var
|
|
3490
|
-
var
|
|
3491
|
-
function
|
|
3492
|
-
return void 0 === n && (n =
|
|
3512
|
+
var P = Object.freeze([]);
|
|
3513
|
+
var I = Object.freeze({});
|
|
3514
|
+
function O(e2, t2, n) {
|
|
3515
|
+
return void 0 === n && (n = I), e2.theme !== n.theme && e2.theme || t2 || n.theme;
|
|
3493
3516
|
}
|
|
3494
|
-
var
|
|
3495
|
-
var
|
|
3496
|
-
var
|
|
3497
|
-
function
|
|
3498
|
-
return e2.replace(
|
|
3517
|
+
var D = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
|
|
3518
|
+
var R = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
|
|
3519
|
+
var T = /(^-|-$)/g;
|
|
3520
|
+
function x(e2) {
|
|
3521
|
+
return e2.replace(R, "-").replace(T, "");
|
|
3499
3522
|
}
|
|
3500
|
-
var
|
|
3501
|
-
var
|
|
3523
|
+
var j = /(a)(d)/gi;
|
|
3524
|
+
var k = function(e2) {
|
|
3502
3525
|
return String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
|
|
3503
3526
|
};
|
|
3504
|
-
function
|
|
3527
|
+
function M(e2) {
|
|
3505
3528
|
var t2, n = "";
|
|
3506
|
-
for (t2 = Math.abs(e2); t2 > 52; t2 = t2 / 52 | 0) n =
|
|
3507
|
-
return (
|
|
3529
|
+
for (t2 = Math.abs(e2); t2 > 52; t2 = t2 / 52 | 0) n = k(t2 % 52) + n;
|
|
3530
|
+
return (k(t2 % 52) + n).replace(j, "$1-$2");
|
|
3508
3531
|
}
|
|
3509
|
-
var
|
|
3510
|
-
var
|
|
3532
|
+
var V;
|
|
3533
|
+
var F = function(e2, t2) {
|
|
3511
3534
|
for (var n = t2.length; n; ) e2 = 33 * e2 ^ t2.charCodeAt(--n);
|
|
3512
3535
|
return e2;
|
|
3513
3536
|
};
|
|
3514
|
-
var
|
|
3515
|
-
return
|
|
3537
|
+
var G = function(e2) {
|
|
3538
|
+
return F(5381, e2);
|
|
3516
3539
|
};
|
|
3517
|
-
function
|
|
3518
|
-
return
|
|
3540
|
+
function L(e2) {
|
|
3541
|
+
return M(G(e2) >>> 0);
|
|
3519
3542
|
}
|
|
3520
|
-
function
|
|
3543
|
+
function B(e2) {
|
|
3521
3544
|
return "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
|
|
3522
3545
|
}
|
|
3523
|
-
function
|
|
3546
|
+
function z(e2) {
|
|
3524
3547
|
return "string" == typeof e2 && e2.charAt(0) === e2.charAt(0).toLowerCase();
|
|
3525
3548
|
}
|
|
3526
|
-
var
|
|
3527
|
-
var
|
|
3528
|
-
var
|
|
3529
|
-
var
|
|
3530
|
-
var
|
|
3531
|
-
var
|
|
3532
|
-
var
|
|
3533
|
-
function
|
|
3534
|
-
return ("type" in (t2 = e2) && t2.type.$$typeof) ===
|
|
3549
|
+
var $ = "function" == typeof Symbol && Symbol.for;
|
|
3550
|
+
var Y = $ ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
3551
|
+
var W = $ ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
3552
|
+
var q = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
|
|
3553
|
+
var H = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
3554
|
+
var U = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
3555
|
+
var J = ((V = {})[W] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, V[Y] = U, V);
|
|
3556
|
+
function X(e2) {
|
|
3557
|
+
return ("type" in (t2 = e2) && t2.type.$$typeof) === Y ? U : "$$typeof" in e2 ? J[e2.$$typeof] : q;
|
|
3535
3558
|
var t2;
|
|
3536
3559
|
}
|
|
3537
|
-
var
|
|
3538
|
-
var
|
|
3539
|
-
var
|
|
3540
|
-
var
|
|
3541
|
-
var
|
|
3542
|
-
var
|
|
3543
|
-
function
|
|
3560
|
+
var Z = Object.defineProperty;
|
|
3561
|
+
var K = Object.getOwnPropertyNames;
|
|
3562
|
+
var Q = Object.getOwnPropertySymbols;
|
|
3563
|
+
var ee = Object.getOwnPropertyDescriptor;
|
|
3564
|
+
var te = Object.getPrototypeOf;
|
|
3565
|
+
var ne = Object.prototype;
|
|
3566
|
+
function oe(e2, t2, n) {
|
|
3544
3567
|
if ("string" != typeof t2) {
|
|
3545
|
-
if (
|
|
3546
|
-
var
|
|
3547
|
-
|
|
3548
|
-
}
|
|
3549
|
-
var
|
|
3550
|
-
|
|
3551
|
-
for (var s =
|
|
3552
|
-
var
|
|
3553
|
-
if (!(
|
|
3554
|
-
var
|
|
3568
|
+
if (ne) {
|
|
3569
|
+
var o3 = te(t2);
|
|
3570
|
+
o3 && o3 !== ne && oe(e2, o3, n);
|
|
3571
|
+
}
|
|
3572
|
+
var r3 = K(t2);
|
|
3573
|
+
Q && (r3 = r3.concat(Q(t2)));
|
|
3574
|
+
for (var s = X(e2), i = X(t2), a3 = 0; a3 < r3.length; ++a3) {
|
|
3575
|
+
var c3 = r3[a3];
|
|
3576
|
+
if (!(c3 in H || n && n[c3] || i && c3 in i || s && c3 in s)) {
|
|
3577
|
+
var u3 = ee(t2, c3);
|
|
3555
3578
|
try {
|
|
3556
|
-
|
|
3579
|
+
Z(e2, c3, u3);
|
|
3557
3580
|
} catch (e3) {
|
|
3558
3581
|
}
|
|
3559
3582
|
}
|
|
@@ -3561,43 +3584,31 @@ function J(e2, t2, n) {
|
|
|
3561
3584
|
}
|
|
3562
3585
|
return e2;
|
|
3563
3586
|
}
|
|
3564
|
-
function
|
|
3587
|
+
function re(e2) {
|
|
3565
3588
|
return "function" == typeof e2;
|
|
3566
3589
|
}
|
|
3567
|
-
function
|
|
3590
|
+
function se(e2) {
|
|
3568
3591
|
return "object" == typeof e2 && "styledComponentId" in e2;
|
|
3569
3592
|
}
|
|
3570
|
-
function
|
|
3593
|
+
function ie(e2, t2) {
|
|
3571
3594
|
return e2 && t2 ? "".concat(e2, " ").concat(t2) : e2 || t2 || "";
|
|
3572
3595
|
}
|
|
3573
|
-
function
|
|
3596
|
+
function ae(e2, t2) {
|
|
3574
3597
|
return e2.join(t2 || "");
|
|
3575
3598
|
}
|
|
3576
|
-
function
|
|
3599
|
+
function ce(e2) {
|
|
3577
3600
|
return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
|
|
3578
3601
|
}
|
|
3579
|
-
function
|
|
3580
|
-
if (void 0 === n && (n = false), !n && !
|
|
3581
|
-
if (Array.isArray(t2)) for (var
|
|
3582
|
-
else if (
|
|
3602
|
+
function ue(e2, t2, n) {
|
|
3603
|
+
if (void 0 === n && (n = false), !n && !ce(e2) && !Array.isArray(e2)) return t2;
|
|
3604
|
+
if (Array.isArray(t2)) for (var o3 = 0; o3 < t2.length; o3++) e2[o3] = ue(e2[o3], t2[o3]);
|
|
3605
|
+
else if (ce(t2)) for (var o3 in t2) e2[o3] = ue(e2[o3], t2[o3]);
|
|
3583
3606
|
return e2;
|
|
3584
3607
|
}
|
|
3585
|
-
function
|
|
3608
|
+
function le(e2, t2) {
|
|
3586
3609
|
Object.defineProperty(e2, "toString", { value: t2 });
|
|
3587
3610
|
}
|
|
3588
|
-
var
|
|
3589
|
-
function oe() {
|
|
3590
|
-
for (var e2 = [], t2 = 0; t2 < arguments.length; t2++) e2[t2] = arguments[t2];
|
|
3591
|
-
for (var n = e2[0], r2 = [], o2 = 1, s = e2.length; o2 < s; o2 += 1) r2.push(e2[o2]);
|
|
3592
|
-
return r2.forEach(function(e3) {
|
|
3593
|
-
n = n.replace(/%[a-z]/, e3);
|
|
3594
|
-
}), n;
|
|
3595
|
-
}
|
|
3596
|
-
function se(t2) {
|
|
3597
|
-
for (var n = [], r2 = 1; r2 < arguments.length; r2++) n[r2 - 1] = arguments[r2];
|
|
3598
|
-
return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t2, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(oe.apply(void 0, __spreadArray([re[t2]], n, false)).trim());
|
|
3599
|
-
}
|
|
3600
|
-
var ie = (function() {
|
|
3611
|
+
var pe = (function() {
|
|
3601
3612
|
function e2(e3) {
|
|
3602
3613
|
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e3, this._cGroup = 0, this._cIndex = 0;
|
|
3603
3614
|
}
|
|
@@ -3609,97 +3620,83 @@ var ie = (function() {
|
|
|
3609
3620
|
return this._cGroup = e3, this._cIndex = t2, t2;
|
|
3610
3621
|
}, e2.prototype.insertRules = function(e3, t2) {
|
|
3611
3622
|
if (e3 >= this.groupSizes.length) {
|
|
3612
|
-
for (var n = this.groupSizes,
|
|
3613
|
-
this.groupSizes = new Uint32Array(
|
|
3614
|
-
for (var s =
|
|
3623
|
+
for (var n = this.groupSizes, o3 = n.length, r3 = o3; e3 >= r3; ) if ((r3 <<= 1) < 0) throw v(16, "".concat(e3));
|
|
3624
|
+
this.groupSizes = new Uint32Array(r3), this.groupSizes.set(n), this.length = r3;
|
|
3625
|
+
for (var s = o3; s < r3; s++) this.groupSizes[s] = 0;
|
|
3615
3626
|
}
|
|
3616
|
-
for (var i = this.indexOfGroup(e3 + 1),
|
|
3617
|
-
|
|
3627
|
+
for (var i = this.indexOfGroup(e3 + 1), a3 = 0, c3 = (s = 0, t2.length); s < c3; s++) this.tag.insertRule(i, t2[s]) && (this.groupSizes[e3]++, i++, a3++);
|
|
3628
|
+
a3 > 0 && this._cGroup > e3 && (this._cIndex += a3);
|
|
3618
3629
|
}, e2.prototype.clearGroup = function(e3) {
|
|
3619
3630
|
if (e3 < this.length) {
|
|
3620
|
-
var t2 = this.groupSizes[e3], n = this.indexOfGroup(e3),
|
|
3631
|
+
var t2 = this.groupSizes[e3], n = this.indexOfGroup(e3), o3 = n + t2;
|
|
3621
3632
|
this.groupSizes[e3] = 0;
|
|
3622
|
-
for (var
|
|
3633
|
+
for (var r3 = n; r3 < o3; r3++) this.tag.deleteRule(n);
|
|
3623
3634
|
t2 > 0 && this._cGroup > e3 && (this._cIndex -= t2);
|
|
3624
3635
|
}
|
|
3625
3636
|
}, e2.prototype.getGroup = function(e3) {
|
|
3626
3637
|
var t2 = "";
|
|
3627
3638
|
if (e3 >= this.length || 0 === this.groupSizes[e3]) return t2;
|
|
3628
|
-
for (var n = this.groupSizes[e3],
|
|
3639
|
+
for (var n = this.groupSizes[e3], o3 = this.indexOfGroup(e3), r3 = o3 + n, s = o3; s < r3; s++) t2 += this.tag.getRule(s) + p;
|
|
3629
3640
|
return t2;
|
|
3630
3641
|
}, e2;
|
|
3631
3642
|
})();
|
|
3632
|
-
var
|
|
3633
|
-
var
|
|
3634
|
-
var
|
|
3635
|
-
var le = 1;
|
|
3636
|
-
var de = function(e2) {
|
|
3637
|
-
if (ce.has(e2)) return ce.get(e2);
|
|
3638
|
-
for (; ue.has(le); ) le++;
|
|
3639
|
-
var t2 = le++;
|
|
3640
|
-
if ((0 | t2) < 0 || t2 > ae) throw se(16, "".concat(t2));
|
|
3641
|
-
return ce.set(e2, t2), ue.set(t2, e2), t2;
|
|
3642
|
-
};
|
|
3643
|
-
var he = function(e2, t2) {
|
|
3644
|
-
le = t2 + 1, ce.set(e2, t2), ue.set(t2, e2);
|
|
3645
|
-
};
|
|
3646
|
-
var pe = "style[".concat(a, "][").concat(u, '="').concat(l, '"]');
|
|
3647
|
-
var fe = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
3648
|
-
var me = function(e2) {
|
|
3643
|
+
var he = "style[".concat(a, "][").concat(u, '="').concat(l, '"]');
|
|
3644
|
+
var de = new RegExp("^".concat(a, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
3645
|
+
var fe = function(e2) {
|
|
3649
3646
|
return "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
|
|
3650
3647
|
};
|
|
3651
|
-
var
|
|
3648
|
+
var me = function(e2) {
|
|
3652
3649
|
if (!e2) return document;
|
|
3653
|
-
if (
|
|
3650
|
+
if (fe(e2)) return e2;
|
|
3654
3651
|
if ("getRootNode" in e2) {
|
|
3655
3652
|
var t2 = e2.getRootNode();
|
|
3656
|
-
if (
|
|
3653
|
+
if (fe(t2)) return t2;
|
|
3657
3654
|
}
|
|
3658
3655
|
return document;
|
|
3659
3656
|
};
|
|
3660
|
-
var
|
|
3661
|
-
for (var
|
|
3657
|
+
var ye = function(e2, t2, n) {
|
|
3658
|
+
for (var o3, r3 = n.split(","), s = 0, i = r3.length; s < i; s++) (o3 = r3[s]) && e2.registerName(t2, o3);
|
|
3662
3659
|
};
|
|
3663
|
-
var
|
|
3664
|
-
for (var n,
|
|
3665
|
-
var
|
|
3666
|
-
if (
|
|
3667
|
-
var
|
|
3668
|
-
if (
|
|
3669
|
-
var
|
|
3670
|
-
0 !==
|
|
3671
|
-
} else
|
|
3660
|
+
var ve = function(e2, t2) {
|
|
3661
|
+
for (var n, o3 = (null !== (n = t2.textContent) && void 0 !== n ? n : "").split(p), r3 = [], s = 0, i = o3.length; s < i; s++) {
|
|
3662
|
+
var a3 = o3[s].trim();
|
|
3663
|
+
if (a3) {
|
|
3664
|
+
var c3 = a3.match(de);
|
|
3665
|
+
if (c3) {
|
|
3666
|
+
var u3 = 0 | parseInt(c3[1], 10), l3 = c3[2];
|
|
3667
|
+
0 !== u3 && (E(l3, u3), ye(e2, l3, c3[3]), e2.getTag().insertRules(u3, r3)), r3.length = 0;
|
|
3668
|
+
} else r3.push(a3);
|
|
3672
3669
|
}
|
|
3673
3670
|
}
|
|
3674
3671
|
};
|
|
3675
|
-
var
|
|
3676
|
-
for (var t2 =
|
|
3677
|
-
var
|
|
3678
|
-
|
|
3672
|
+
var ge = function(e2) {
|
|
3673
|
+
for (var t2 = me(e2.options.target).querySelectorAll(he), n = 0, o3 = t2.length; n < o3; n++) {
|
|
3674
|
+
var r3 = t2[n];
|
|
3675
|
+
r3 && r3.getAttribute(a) !== c && (ve(e2, r3), r3.parentNode && r3.parentNode.removeChild(r3));
|
|
3679
3676
|
}
|
|
3680
3677
|
};
|
|
3681
|
-
function
|
|
3678
|
+
function Se() {
|
|
3682
3679
|
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
3683
3680
|
}
|
|
3684
|
-
var
|
|
3685
|
-
var t2 = document.head, n = e2 || t2,
|
|
3681
|
+
var we = function(e2) {
|
|
3682
|
+
var t2 = document.head, n = e2 || t2, o3 = document.createElement("style"), r3 = (function(e3) {
|
|
3686
3683
|
var t3 = Array.from(e3.querySelectorAll("style[".concat(a, "]")));
|
|
3687
3684
|
return t3[t3.length - 1];
|
|
3688
|
-
})(n), s = void 0 !==
|
|
3689
|
-
|
|
3690
|
-
var i =
|
|
3691
|
-
return i &&
|
|
3685
|
+
})(n), s = void 0 !== r3 ? r3.nextSibling : null;
|
|
3686
|
+
o3.setAttribute(a, c), o3.setAttribute(u, l);
|
|
3687
|
+
var i = Se();
|
|
3688
|
+
return i && o3.setAttribute("nonce", i), n.insertBefore(o3, s), o3;
|
|
3692
3689
|
};
|
|
3693
|
-
var
|
|
3690
|
+
var be = (function() {
|
|
3694
3691
|
function e2(e3) {
|
|
3695
|
-
this.element =
|
|
3692
|
+
this.element = we(e3), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e4) {
|
|
3696
3693
|
var t2;
|
|
3697
3694
|
if (e4.sheet) return e4.sheet;
|
|
3698
|
-
for (var n = null !== (t2 = e4.getRootNode().styleSheets) && void 0 !== t2 ? t2 : document.styleSheets,
|
|
3699
|
-
var s = n[
|
|
3695
|
+
for (var n = null !== (t2 = e4.getRootNode().styleSheets) && void 0 !== t2 ? t2 : document.styleSheets, o3 = 0, r3 = n.length; o3 < r3; o3++) {
|
|
3696
|
+
var s = n[o3];
|
|
3700
3697
|
if (s.ownerNode === e4) return s;
|
|
3701
3698
|
}
|
|
3702
|
-
throw
|
|
3699
|
+
throw v(17);
|
|
3703
3700
|
})(this.element), this.length = 0;
|
|
3704
3701
|
}
|
|
3705
3702
|
return e2.prototype.insertRule = function(e3, t2) {
|
|
@@ -3715,9 +3712,9 @@ var Ne = (function() {
|
|
|
3715
3712
|
return t2 && t2.cssText ? t2.cssText : "";
|
|
3716
3713
|
}, e2;
|
|
3717
3714
|
})();
|
|
3718
|
-
var
|
|
3715
|
+
var Ne = (function() {
|
|
3719
3716
|
function e2(e3) {
|
|
3720
|
-
this.element =
|
|
3717
|
+
this.element = we(e3), this.nodes = this.element.childNodes, this.length = 0;
|
|
3721
3718
|
}
|
|
3722
3719
|
return e2.prototype.insertRule = function(e3, t2) {
|
|
3723
3720
|
if (e3 <= this.length && e3 >= 0) {
|
|
@@ -3731,7 +3728,7 @@ var Ee = (function() {
|
|
|
3731
3728
|
return e3 < this.length ? this.nodes[e3].textContent : "";
|
|
3732
3729
|
}, e2;
|
|
3733
3730
|
})();
|
|
3734
|
-
var
|
|
3731
|
+
var Ee = (function() {
|
|
3735
3732
|
function e2(e3) {
|
|
3736
3733
|
this.rules = [], this.length = 0;
|
|
3737
3734
|
}
|
|
@@ -3743,493 +3740,447 @@ var Ce = (function() {
|
|
|
3743
3740
|
return e3 < this.length ? this.rules[e3] : "";
|
|
3744
3741
|
}, e2;
|
|
3745
3742
|
})();
|
|
3746
|
-
var
|
|
3747
|
-
var
|
|
3748
|
-
var
|
|
3749
|
-
function e2(e3, n,
|
|
3750
|
-
void 0 === e3 && (e3 =
|
|
3751
|
-
var
|
|
3752
|
-
this.options = __assign(__assign({},
|
|
3743
|
+
var Ce = h;
|
|
3744
|
+
var Ae = { isServer: !h, useCSSOMInjection: !d };
|
|
3745
|
+
var _e = (function() {
|
|
3746
|
+
function e2(e3, n, o3) {
|
|
3747
|
+
void 0 === e3 && (e3 = I), void 0 === n && (n = {});
|
|
3748
|
+
var r3 = this;
|
|
3749
|
+
this.options = __assign(__assign({}, Ae), e3), this.gs = n, this.names = new Map(o3), this.server = !!e3.isServer, !this.server && h && Ce && (Ce = false, ge(this)), le(this, function() {
|
|
3753
3750
|
return (function(e4) {
|
|
3754
|
-
for (var t2 = e4.getTag(), n2 = t2.length,
|
|
3755
|
-
var
|
|
3756
|
-
return
|
|
3751
|
+
for (var t2 = e4.getTag(), n2 = t2.length, o4 = "", r4 = function(n3) {
|
|
3752
|
+
var r5 = (function(e5) {
|
|
3753
|
+
return w.get(e5);
|
|
3757
3754
|
})(n3);
|
|
3758
|
-
if (void 0 ===
|
|
3759
|
-
var s2 = e4.names.get(
|
|
3755
|
+
if (void 0 === r5) return "continue";
|
|
3756
|
+
var s2 = e4.names.get(r5);
|
|
3760
3757
|
if (void 0 === s2 || !s2.size) return "continue";
|
|
3761
3758
|
var i = t2.getGroup(n3);
|
|
3762
3759
|
if (0 === i.length) return "continue";
|
|
3763
|
-
var
|
|
3760
|
+
var c3 = a + ".g" + n3 + '[id="' + r5 + '"]', u3 = "";
|
|
3764
3761
|
s2.forEach(function(e5) {
|
|
3765
|
-
e5.length > 0 && (
|
|
3766
|
-
}),
|
|
3767
|
-
}, s = 0; s < n2; s++)
|
|
3768
|
-
return
|
|
3769
|
-
})(
|
|
3762
|
+
e5.length > 0 && (u3 += e5 + ",");
|
|
3763
|
+
}), o4 += i + c3 + '{content:"' + u3 + '"}' + p;
|
|
3764
|
+
}, s = 0; s < n2; s++) r4(s);
|
|
3765
|
+
return o4;
|
|
3766
|
+
})(r3);
|
|
3770
3767
|
});
|
|
3771
3768
|
}
|
|
3772
3769
|
return e2.registerId = function(e3) {
|
|
3773
|
-
return
|
|
3770
|
+
return N(e3);
|
|
3774
3771
|
}, e2.prototype.rehydrate = function() {
|
|
3775
|
-
!this.server && h &&
|
|
3776
|
-
}, e2.prototype.reconstructWithOptions = function(n,
|
|
3777
|
-
void 0 ===
|
|
3778
|
-
var
|
|
3779
|
-
return !this.server && h && n.target !== this.options.target &&
|
|
3772
|
+
!this.server && h && ge(this);
|
|
3773
|
+
}, e2.prototype.reconstructWithOptions = function(n, o3) {
|
|
3774
|
+
void 0 === o3 && (o3 = true);
|
|
3775
|
+
var r3 = new e2(__assign(__assign({}, this.options), n), this.gs, o3 && this.names || void 0);
|
|
3776
|
+
return !this.server && h && n.target !== this.options.target && me(this.options.target) !== me(n.target) && ge(r3), r3;
|
|
3780
3777
|
}, e2.prototype.allocateGSInstance = function(e3) {
|
|
3781
3778
|
return this.gs[e3] = (this.gs[e3] || 0) + 1;
|
|
3782
3779
|
}, e2.prototype.getTag = function() {
|
|
3783
3780
|
return this.tag || (this.tag = (e3 = (function(e4) {
|
|
3784
3781
|
var t2 = e4.useCSSOMInjection, n = e4.target;
|
|
3785
|
-
return e4.isServer ? new
|
|
3786
|
-
})(this.options), new
|
|
3782
|
+
return e4.isServer ? new Ee(n) : t2 ? new be(n) : new Ne(n);
|
|
3783
|
+
})(this.options), new pe(e3)));
|
|
3787
3784
|
var e3;
|
|
3788
3785
|
}, e2.prototype.hasNameForId = function(e3, t2) {
|
|
3789
|
-
var n,
|
|
3790
|
-
return null !== (
|
|
3786
|
+
var n, o3;
|
|
3787
|
+
return null !== (o3 = null === (n = this.names.get(e3)) || void 0 === n ? void 0 : n.has(t2)) && void 0 !== o3 && o3;
|
|
3791
3788
|
}, e2.prototype.registerName = function(e3, t2) {
|
|
3792
|
-
|
|
3789
|
+
N(e3);
|
|
3793
3790
|
var n = this.names.get(e3);
|
|
3794
3791
|
n ? n.add(t2) : this.names.set(e3, /* @__PURE__ */ new Set([t2]));
|
|
3795
3792
|
}, e2.prototype.insertRules = function(e3, t2, n) {
|
|
3796
|
-
this.registerName(e3, t2), this.getTag().insertRules(
|
|
3793
|
+
this.registerName(e3, t2), this.getTag().insertRules(N(e3), n);
|
|
3797
3794
|
}, e2.prototype.clearNames = function(e3) {
|
|
3798
3795
|
this.names.has(e3) && this.names.get(e3).clear();
|
|
3799
3796
|
}, e2.prototype.clearRules = function(e3) {
|
|
3800
|
-
this.getTag().clearGroup(
|
|
3797
|
+
this.getTag().clearGroup(N(e3)), this.clearNames(e3);
|
|
3801
3798
|
}, e2.prototype.clearTag = function() {
|
|
3802
3799
|
this.tag = void 0;
|
|
3803
3800
|
}, e2;
|
|
3804
3801
|
})();
|
|
3805
|
-
var
|
|
3806
|
-
var
|
|
3807
|
-
var
|
|
3808
|
-
function
|
|
3802
|
+
var Pe = /&/g;
|
|
3803
|
+
var Ie = 47;
|
|
3804
|
+
var Oe = 42;
|
|
3805
|
+
function De(e2) {
|
|
3809
3806
|
if (-1 === e2.indexOf("}")) return false;
|
|
3810
|
-
for (var t2 = e2.length, n = 0,
|
|
3807
|
+
for (var t2 = e2.length, n = 0, o3 = 0, r3 = false, s = 0; s < t2; s++) {
|
|
3811
3808
|
var i = e2.charCodeAt(s);
|
|
3812
|
-
if (0 !==
|
|
3809
|
+
if (0 !== o3 || r3 || i !== Ie || e2.charCodeAt(s + 1) !== Oe) if (r3) i === Oe && e2.charCodeAt(s + 1) === Ie && (r3 = false, s++);
|
|
3813
3810
|
else if (34 !== i && 39 !== i || 0 !== s && 92 === e2.charCodeAt(s - 1)) {
|
|
3814
|
-
if (0 ===
|
|
3811
|
+
if (0 === o3) {
|
|
3815
3812
|
if (123 === i) n++;
|
|
3816
3813
|
else if (125 === i && --n < 0) return true;
|
|
3817
3814
|
}
|
|
3818
|
-
} else 0 ===
|
|
3819
|
-
else
|
|
3815
|
+
} else 0 === o3 ? o3 = i : o3 === i && (o3 = 0);
|
|
3816
|
+
else r3 = true, s++;
|
|
3820
3817
|
}
|
|
3821
|
-
return 0 !== n || 0 !==
|
|
3818
|
+
return 0 !== n || 0 !== o3;
|
|
3822
3819
|
}
|
|
3823
|
-
function
|
|
3820
|
+
function Re(e2, t2) {
|
|
3824
3821
|
return e2.map(function(e3) {
|
|
3825
3822
|
return "rule" === e3.type && (e3.value = "".concat(t2, " ").concat(e3.value), e3.value = e3.value.replaceAll(",", ",".concat(t2, " ")), e3.props = e3.props.map(function(e4) {
|
|
3826
3823
|
return "".concat(t2, " ").concat(e4);
|
|
3827
|
-
})), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children =
|
|
3824
|
+
})), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = Re(e3.children, t2)), e3;
|
|
3828
3825
|
});
|
|
3829
3826
|
}
|
|
3830
|
-
function
|
|
3831
|
-
var t2, n,
|
|
3832
|
-
return
|
|
3833
|
-
},
|
|
3834
|
-
|
|
3835
|
-
e3.type === RULESET && e3.value.includes("&") && (
|
|
3836
|
-
}),
|
|
3837
|
-
var
|
|
3838
|
-
return
|
|
3839
|
-
}))), f2 = function(e3,
|
|
3840
|
-
void 0 ===
|
|
3841
|
-
var
|
|
3842
|
-
if (!
|
|
3843
|
-
for (var t3 = e4.length, n2 = "",
|
|
3844
|
-
var
|
|
3845
|
-
if (0 !== s || i3 ||
|
|
3846
|
-
else if (34 !==
|
|
3847
|
-
if (0 === s) if (123 ===
|
|
3848
|
-
else if (125 ===
|
|
3849
|
-
if (--
|
|
3850
|
-
for (var
|
|
3851
|
-
var
|
|
3852
|
-
if (59 ===
|
|
3853
|
-
|
|
3827
|
+
function Te(e2) {
|
|
3828
|
+
var t2, n, o3, r3 = void 0 === e2 ? I : e2, i = r3.options, a3 = void 0 === i ? I : i, c3 = r3.plugins, u3 = void 0 === c3 ? P : c3, l3 = function(e3, o4, r4) {
|
|
3829
|
+
return r4.startsWith(n) && r4.endsWith(n) && r4.replaceAll(n, "").length > 0 ? ".".concat(t2) : e3;
|
|
3830
|
+
}, p3 = u3.slice();
|
|
3831
|
+
p3.push(function(e3) {
|
|
3832
|
+
e3.type === RULESET && e3.value.includes("&") && (o3 || (o3 = new RegExp("\\".concat(n, "\\b"), "g")), e3.props[0] = e3.props[0].replace(Pe, n).replace(o3, l3));
|
|
3833
|
+
}), a3.prefix && p3.push(prefixer), p3.push(stringify);
|
|
3834
|
+
var h3 = [], d3 = middleware(p3.concat(rulesheet(function(e3) {
|
|
3835
|
+
return h3.push(e3);
|
|
3836
|
+
}))), f2 = function(e3, r4, i2, c4) {
|
|
3837
|
+
void 0 === r4 && (r4 = ""), void 0 === i2 && (i2 = ""), void 0 === c4 && (c4 = "&"), t2 = c4, n = r4, o3 = void 0;
|
|
3838
|
+
var u4 = (function(e4) {
|
|
3839
|
+
if (!De(e4)) return e4;
|
|
3840
|
+
for (var t3 = e4.length, n2 = "", o4 = 0, r5 = 0, s = 0, i3 = false, a4 = 0; a4 < t3; a4++) {
|
|
3841
|
+
var c5 = e4.charCodeAt(a4);
|
|
3842
|
+
if (0 !== s || i3 || c5 !== Ie || e4.charCodeAt(a4 + 1) !== Oe) if (i3) c5 === Oe && e4.charCodeAt(a4 + 1) === Ie && (i3 = false, a4++);
|
|
3843
|
+
else if (34 !== c5 && 39 !== c5 || 0 !== a4 && 92 === e4.charCodeAt(a4 - 1)) {
|
|
3844
|
+
if (0 === s) if (123 === c5) r5++;
|
|
3845
|
+
else if (125 === c5) {
|
|
3846
|
+
if (--r5 < 0) {
|
|
3847
|
+
for (var u5 = a4 + 1; u5 < t3; ) {
|
|
3848
|
+
var l5 = e4.charCodeAt(u5);
|
|
3849
|
+
if (59 === l5 || 10 === l5) break;
|
|
3850
|
+
u5++;
|
|
3854
3851
|
}
|
|
3855
|
-
|
|
3852
|
+
u5 < t3 && 59 === e4.charCodeAt(u5) && u5++, r5 = 0, a4 = u5 - 1, o4 = u5;
|
|
3856
3853
|
continue;
|
|
3857
3854
|
}
|
|
3858
|
-
0 ===
|
|
3859
|
-
} else 59 ===
|
|
3860
|
-
} else 0 === s ? s =
|
|
3861
|
-
else i3 = true,
|
|
3855
|
+
0 === r5 && (n2 += e4.substring(o4, a4 + 1), o4 = a4 + 1);
|
|
3856
|
+
} else 59 === c5 && 0 === r5 && (n2 += e4.substring(o4, a4 + 1), o4 = a4 + 1);
|
|
3857
|
+
} else 0 === s ? s = c5 : s === c5 && (s = 0);
|
|
3858
|
+
else i3 = true, a4++;
|
|
3862
3859
|
}
|
|
3863
|
-
if (
|
|
3864
|
-
var
|
|
3865
|
-
|
|
3860
|
+
if (o4 < t3) {
|
|
3861
|
+
var p4 = e4.substring(o4);
|
|
3862
|
+
De(p4) || (n2 += p4);
|
|
3866
3863
|
}
|
|
3867
3864
|
return n2;
|
|
3868
3865
|
})((function(e4) {
|
|
3869
3866
|
if (-1 === e4.indexOf("//")) return e4;
|
|
3870
|
-
for (var t3 = e4.length, n2 = [],
|
|
3871
|
-
var
|
|
3872
|
-
if (34 !==
|
|
3873
|
-
for (
|
|
3874
|
-
|
|
3875
|
-
} else if (40 ===
|
|
3876
|
-
else if (i3 > 0) 41 ===
|
|
3877
|
-
else if (
|
|
3878
|
-
else if (
|
|
3879
|
-
for (
|
|
3880
|
-
|
|
3881
|
-
} else
|
|
3882
|
-
else
|
|
3883
|
-
else 0 === s ? s =
|
|
3884
|
-
}
|
|
3885
|
-
return 0 ===
|
|
3886
|
-
})(e3)),
|
|
3887
|
-
return
|
|
3867
|
+
for (var t3 = e4.length, n2 = [], o4 = 0, r5 = 0, s = 0, i3 = 0; r5 < t3; ) {
|
|
3868
|
+
var a4 = e4.charCodeAt(r5);
|
|
3869
|
+
if (34 !== a4 && 39 !== a4 || 0 !== r5 && 92 === e4.charCodeAt(r5 - 1)) if (0 === s) if (a4 === Ie && r5 + 1 < t3 && e4.charCodeAt(r5 + 1) === Oe) {
|
|
3870
|
+
for (r5 += 2; r5 + 1 < t3 && (e4.charCodeAt(r5) !== Oe || e4.charCodeAt(r5 + 1) !== Ie); ) r5++;
|
|
3871
|
+
r5 += 2;
|
|
3872
|
+
} else if (40 === a4 && r5 >= 3 && 108 == (32 | e4.charCodeAt(r5 - 1)) && 114 == (32 | e4.charCodeAt(r5 - 2)) && 117 == (32 | e4.charCodeAt(r5 - 3))) i3 = 1, r5++;
|
|
3873
|
+
else if (i3 > 0) 41 === a4 ? i3-- : 40 === a4 && i3++, r5++;
|
|
3874
|
+
else if (a4 === Oe && r5 + 1 < t3 && e4.charCodeAt(r5 + 1) === Ie) r5 > o4 && n2.push(e4.substring(o4, r5)), o4 = r5 += 2;
|
|
3875
|
+
else if (a4 === Ie && r5 + 1 < t3 && e4.charCodeAt(r5 + 1) === Ie) {
|
|
3876
|
+
for (r5 > o4 && n2.push(e4.substring(o4, r5)); r5 < t3 && 10 !== e4.charCodeAt(r5); ) r5++;
|
|
3877
|
+
o4 = r5;
|
|
3878
|
+
} else r5++;
|
|
3879
|
+
else r5++;
|
|
3880
|
+
else 0 === s ? s = a4 : s === a4 && (s = 0), r5++;
|
|
3881
|
+
}
|
|
3882
|
+
return 0 === o4 ? e4 : (o4 < t3 && n2.push(e4.substring(o4)), n2.join(""));
|
|
3883
|
+
})(e3)), l4 = compile(i2 || r4 ? "".concat(i2, " ").concat(r4, " { ").concat(u4, " }") : u4);
|
|
3884
|
+
return a3.namespace && (l4 = Re(l4, a3.namespace)), h3 = [], serialize(l4, d3), h3;
|
|
3888
3885
|
};
|
|
3889
|
-
return f2.hash =
|
|
3890
|
-
return t3.name ||
|
|
3886
|
+
return f2.hash = u3.length ? u3.reduce(function(e3, t3) {
|
|
3887
|
+
return t3.name || v(15), F(e3, t3.name);
|
|
3891
3888
|
}, 5381).toString() : "", f2;
|
|
3892
3889
|
}
|
|
3893
|
-
var
|
|
3894
|
-
var
|
|
3895
|
-
var
|
|
3896
|
-
var
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
return
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
}, Consumer: function(e2) {
|
|
3905
|
-
return (0, e2.children)(void 0);
|
|
3906
|
-
} } : r.createContext(void 0);
|
|
3907
|
-
function Le() {
|
|
3908
|
-
return p ? Me : r.useContext(Ve);
|
|
3909
|
-
}
|
|
3910
|
-
function Be(e2) {
|
|
3911
|
-
if (p || !r.useMemo) return e2.children;
|
|
3912
|
-
var t2 = Le().styleSheet, n = r.useMemo(function() {
|
|
3890
|
+
var xe = new _e();
|
|
3891
|
+
var je = Te();
|
|
3892
|
+
var ke = o.createContext({ shouldForwardProp: void 0, styleSheet: xe, stylis: je });
|
|
3893
|
+
var Me = ke.Consumer;
|
|
3894
|
+
var Ve = o.createContext(void 0);
|
|
3895
|
+
function Fe() {
|
|
3896
|
+
return o.useContext(ke);
|
|
3897
|
+
}
|
|
3898
|
+
function Ge(e2) {
|
|
3899
|
+
if (!o.useMemo) return e2.children;
|
|
3900
|
+
var t2 = Fe().styleSheet, n = o.useMemo(function() {
|
|
3913
3901
|
var n2 = t2;
|
|
3914
3902
|
return e2.sheet ? n2 = e2.sheet : e2.target && (n2 = n2.reconstructWithOptions({ target: e2.target }, false)), e2.disableCSSOMInjection && (n2 = n2.reconstructWithOptions({ useCSSOMInjection: false })), n2;
|
|
3915
|
-
}, [e2.disableCSSOMInjection, e2.sheet, e2.target, t2]),
|
|
3916
|
-
return
|
|
3917
|
-
}, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins]), s =
|
|
3918
|
-
return { shouldForwardProp: e2.shouldForwardProp, styleSheet: n, stylis:
|
|
3919
|
-
}, [e2.shouldForwardProp, n,
|
|
3920
|
-
return
|
|
3921
|
-
}
|
|
3922
|
-
var
|
|
3903
|
+
}, [e2.disableCSSOMInjection, e2.sheet, e2.target, t2]), r3 = o.useMemo(function() {
|
|
3904
|
+
return Te({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins });
|
|
3905
|
+
}, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins]), s = o.useMemo(function() {
|
|
3906
|
+
return { shouldForwardProp: e2.shouldForwardProp, styleSheet: n, stylis: r3 };
|
|
3907
|
+
}, [e2.shouldForwardProp, n, r3]);
|
|
3908
|
+
return o.createElement(ke.Provider, { value: s }, o.createElement(Ve.Provider, { value: r3 }, e2.children));
|
|
3909
|
+
}
|
|
3910
|
+
var Le = (function() {
|
|
3923
3911
|
function e2(e3, t2) {
|
|
3924
3912
|
var n = this;
|
|
3925
3913
|
this.inject = function(e4, t3) {
|
|
3926
|
-
void 0 === t3 && (t3 =
|
|
3927
|
-
var
|
|
3928
|
-
e4.hasNameForId(n.id,
|
|
3929
|
-
}, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2,
|
|
3930
|
-
throw
|
|
3914
|
+
void 0 === t3 && (t3 = je);
|
|
3915
|
+
var o3 = n.name + t3.hash;
|
|
3916
|
+
e4.hasNameForId(n.id, o3) || e4.insertRules(n.id, o3, t3(n.rules, o3, "@keyframes"));
|
|
3917
|
+
}, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2, le(this, function() {
|
|
3918
|
+
throw v(12, String(n.name));
|
|
3931
3919
|
});
|
|
3932
3920
|
}
|
|
3933
3921
|
return e2.prototype.getName = function(e3) {
|
|
3934
|
-
return void 0 === e3 && (e3 =
|
|
3922
|
+
return void 0 === e3 && (e3 = je), this.name + e3.hash;
|
|
3935
3923
|
}, e2;
|
|
3936
3924
|
})();
|
|
3937
|
-
function
|
|
3925
|
+
function Be(e2, t2) {
|
|
3938
3926
|
return null == t2 || "boolean" == typeof t2 || "" === t2 ? "" : "number" != typeof t2 || 0 === t2 || e2 in unitlessKeys || e2.startsWith("--") ? String(t2).trim() : "".concat(t2, "px");
|
|
3939
3927
|
}
|
|
3940
|
-
var
|
|
3928
|
+
var ze = function(e2) {
|
|
3941
3929
|
return e2 >= "A" && e2 <= "Z";
|
|
3942
3930
|
};
|
|
3943
|
-
function
|
|
3931
|
+
function $e(e2) {
|
|
3944
3932
|
for (var t2 = "", n = 0; n < e2.length; n++) {
|
|
3945
|
-
var
|
|
3946
|
-
if (1 === n && "-" ===
|
|
3947
|
-
|
|
3933
|
+
var o3 = e2[n];
|
|
3934
|
+
if (1 === n && "-" === o3 && "-" === e2[0]) return e2;
|
|
3935
|
+
ze(o3) ? t2 += "-" + o3.toLowerCase() : t2 += o3;
|
|
3948
3936
|
}
|
|
3949
3937
|
return t2.startsWith("ms-") ? "-" + t2 : t2;
|
|
3950
3938
|
}
|
|
3951
|
-
var
|
|
3939
|
+
var Ye = function(e2) {
|
|
3952
3940
|
return null == e2 || false === e2 || "" === e2;
|
|
3953
3941
|
};
|
|
3954
|
-
var
|
|
3942
|
+
var We = function(t2) {
|
|
3955
3943
|
var n = [];
|
|
3956
|
-
for (var
|
|
3957
|
-
var
|
|
3958
|
-
t2.hasOwnProperty(
|
|
3944
|
+
for (var o3 in t2) {
|
|
3945
|
+
var r3 = t2[o3];
|
|
3946
|
+
t2.hasOwnProperty(o3) && !Ye(r3) && (Array.isArray(r3) && r3.isCss || re(r3) ? n.push("".concat($e(o3), ":"), r3, ";") : ce(r3) ? n.push.apply(n, __spreadArray(__spreadArray(["".concat(o3, " {")], We(r3), false), ["}"], false)) : n.push("".concat($e(o3), ": ").concat(Be(o3, r3), ";")));
|
|
3959
3947
|
}
|
|
3960
3948
|
return n;
|
|
3961
3949
|
};
|
|
3962
|
-
function
|
|
3963
|
-
if (void 0 ===
|
|
3964
|
-
if (
|
|
3965
|
-
if (
|
|
3966
|
-
if (
|
|
3967
|
-
if (!
|
|
3950
|
+
function qe(e2, t2, n, o3, r3) {
|
|
3951
|
+
if (void 0 === r3 && (r3 = []), "string" == typeof e2) return e2 && r3.push(e2), r3;
|
|
3952
|
+
if (Ye(e2)) return r3;
|
|
3953
|
+
if (se(e2)) return r3.push(".".concat(e2.styledComponentId)), r3;
|
|
3954
|
+
if (re(e2)) {
|
|
3955
|
+
if (!re(i = e2) || i.prototype && i.prototype.isReactComponent || !t2) return r3.push(e2), r3;
|
|
3968
3956
|
var s = e2(t2);
|
|
3969
|
-
return "object" != typeof s || Array.isArray(s) || s instanceof
|
|
3957
|
+
return "object" != typeof s || Array.isArray(s) || s instanceof Le || ce(s) || null === s || console.error("".concat(B(e2), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), qe(s, t2, n, o3, r3);
|
|
3970
3958
|
}
|
|
3971
3959
|
var i;
|
|
3972
|
-
if (e2 instanceof
|
|
3973
|
-
if (
|
|
3974
|
-
for (var
|
|
3975
|
-
return
|
|
3960
|
+
if (e2 instanceof Le) return n ? (e2.inject(n, o3), r3.push(e2.getName(o3))) : r3.push(e2), r3;
|
|
3961
|
+
if (ce(e2)) {
|
|
3962
|
+
for (var a3 = We(e2), c3 = 0; c3 < a3.length; c3++) r3.push(a3[c3]);
|
|
3963
|
+
return r3;
|
|
3976
3964
|
}
|
|
3977
|
-
if (!Array.isArray(e2)) return
|
|
3978
|
-
for (
|
|
3979
|
-
return
|
|
3965
|
+
if (!Array.isArray(e2)) return r3.push(e2.toString()), r3;
|
|
3966
|
+
for (c3 = 0; c3 < e2.length; c3++) qe(e2[c3], t2, n, o3, r3);
|
|
3967
|
+
return r3;
|
|
3980
3968
|
}
|
|
3981
|
-
function
|
|
3969
|
+
function He(e2) {
|
|
3982
3970
|
for (var t2 = 0; t2 < e2.length; t2 += 1) {
|
|
3983
3971
|
var n = e2[t2];
|
|
3984
|
-
if (
|
|
3972
|
+
if (re(n) && !se(n)) return false;
|
|
3985
3973
|
}
|
|
3986
3974
|
return true;
|
|
3987
3975
|
}
|
|
3988
|
-
var
|
|
3989
|
-
var
|
|
3976
|
+
var Ue = G(l);
|
|
3977
|
+
var Je = (function() {
|
|
3990
3978
|
function e2(e3, t2, n) {
|
|
3991
|
-
this.rules = e3, this.staticRulesId = "", this.isStatic = false, this.componentId = t2, this.baseHash =
|
|
3979
|
+
this.rules = e3, this.staticRulesId = "", this.isStatic = false, this.componentId = t2, this.baseHash = F(Ue, t2), this.baseStyle = n, _e.registerId(t2);
|
|
3992
3980
|
}
|
|
3993
3981
|
return e2.prototype.generateAndInjectStyles = function(e3, t2, n) {
|
|
3994
|
-
var
|
|
3995
|
-
if (this.isStatic && !n.hash) if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId))
|
|
3982
|
+
var o3 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t2, n).className : "";
|
|
3983
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId)) o3 = ie(o3, this.staticRulesId);
|
|
3996
3984
|
else {
|
|
3997
|
-
var
|
|
3985
|
+
var r3 = ae(qe(this.rules, e3, t2, n)), s = M(F(this.baseHash, r3) >>> 0);
|
|
3998
3986
|
if (!t2.hasNameForId(this.componentId, s)) {
|
|
3999
|
-
var i = n(
|
|
3987
|
+
var i = n(r3, ".".concat(s), void 0, this.componentId);
|
|
4000
3988
|
t2.insertRules(this.componentId, s, i);
|
|
4001
3989
|
}
|
|
4002
|
-
|
|
3990
|
+
o3 = ie(o3, s), this.staticRulesId = s;
|
|
4003
3991
|
}
|
|
4004
3992
|
else {
|
|
4005
|
-
for (var
|
|
4006
|
-
var
|
|
4007
|
-
if ("string" == typeof
|
|
4008
|
-
else if (
|
|
4009
|
-
var
|
|
4010
|
-
|
|
3993
|
+
for (var a3 = F(this.baseHash, n.hash), c3 = "", u3 = 0; u3 < this.rules.length; u3++) {
|
|
3994
|
+
var l3 = this.rules[u3];
|
|
3995
|
+
if ("string" == typeof l3) c3 += l3, a3 = F(a3, l3);
|
|
3996
|
+
else if (l3) {
|
|
3997
|
+
var p3 = ae(qe(l3, e3, t2, n));
|
|
3998
|
+
a3 = F(F(a3, String(u3)), p3), c3 += p3;
|
|
4011
3999
|
}
|
|
4012
4000
|
}
|
|
4013
|
-
if (
|
|
4014
|
-
var
|
|
4015
|
-
if (!t2.hasNameForId(this.componentId,
|
|
4016
|
-
var
|
|
4017
|
-
t2.insertRules(this.componentId,
|
|
4001
|
+
if (c3) {
|
|
4002
|
+
var h3 = M(a3 >>> 0);
|
|
4003
|
+
if (!t2.hasNameForId(this.componentId, h3)) {
|
|
4004
|
+
var d3 = n(c3, ".".concat(h3), void 0, this.componentId);
|
|
4005
|
+
t2.insertRules(this.componentId, h3, d3);
|
|
4018
4006
|
}
|
|
4019
|
-
|
|
4007
|
+
o3 = ie(o3, h3);
|
|
4020
4008
|
}
|
|
4021
4009
|
}
|
|
4022
|
-
return { className:
|
|
4010
|
+
return { className: o3, css: "undefined" == typeof window ? t2.getTag().getGroup(N(this.componentId)) : "" };
|
|
4023
4011
|
}, e2;
|
|
4024
4012
|
})();
|
|
4025
|
-
var
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
} } : r.createContext(void 0);
|
|
4030
|
-
var Qe = Ke.Consumer;
|
|
4031
|
-
function tt(e2) {
|
|
4032
|
-
if (p) return e2.children;
|
|
4033
|
-
var n = r.useContext(Ke), o2 = r.useMemo(function() {
|
|
4013
|
+
var Xe = o.createContext(void 0);
|
|
4014
|
+
var Ze = Xe.Consumer;
|
|
4015
|
+
function Qe(e2) {
|
|
4016
|
+
var n = o.useContext(Xe), r3 = o.useMemo(function() {
|
|
4034
4017
|
return (function(e3, n2) {
|
|
4035
|
-
if (!e3) throw
|
|
4036
|
-
if (
|
|
4037
|
-
var
|
|
4038
|
-
if (null ===
|
|
4039
|
-
return
|
|
4018
|
+
if (!e3) throw v(14);
|
|
4019
|
+
if (re(e3)) {
|
|
4020
|
+
var o3 = e3(n2);
|
|
4021
|
+
if (null === o3 || Array.isArray(o3) || "object" != typeof o3) throw v(7);
|
|
4022
|
+
return o3;
|
|
4040
4023
|
}
|
|
4041
|
-
if (Array.isArray(e3) || "object" != typeof e3) throw
|
|
4024
|
+
if (Array.isArray(e3) || "object" != typeof e3) throw v(8);
|
|
4042
4025
|
return n2 ? __assign(__assign({}, n2), e3) : e3;
|
|
4043
4026
|
})(e2.theme, n);
|
|
4044
4027
|
}, [e2.theme, n]);
|
|
4045
|
-
return e2.children ?
|
|
4046
|
-
}
|
|
4047
|
-
var
|
|
4048
|
-
var
|
|
4049
|
-
function
|
|
4050
|
-
var
|
|
4051
|
-
var n = "string" != typeof e3 ? "sc" :
|
|
4052
|
-
|
|
4053
|
-
var
|
|
4054
|
-
return t2 ? "".concat(t2, "-").concat(
|
|
4055
|
-
})(s.displayName, s.parentComponentId) :
|
|
4056
|
-
return
|
|
4057
|
-
})(e2) :
|
|
4058
|
-
if (
|
|
4059
|
-
var
|
|
4028
|
+
return e2.children ? o.createElement(Xe.Provider, { value: r3 }, e2.children) : null;
|
|
4029
|
+
}
|
|
4030
|
+
var et = {};
|
|
4031
|
+
var tt = /* @__PURE__ */ new Set();
|
|
4032
|
+
function nt(e2, s, i) {
|
|
4033
|
+
var a3 = se(e2), c3 = e2, u3 = !z(e2), p3 = s.attrs, h3 = void 0 === p3 ? P : p3, d3 = s.componentId, f2 = void 0 === d3 ? (function(e3, t2) {
|
|
4034
|
+
var n = "string" != typeof e3 ? "sc" : x(e3);
|
|
4035
|
+
et[n] = (et[n] || 0) + 1;
|
|
4036
|
+
var o3 = "".concat(n, "-").concat(L(l + n + et[n]));
|
|
4037
|
+
return t2 ? "".concat(t2, "-").concat(o3) : o3;
|
|
4038
|
+
})(s.displayName, s.parentComponentId) : d3, m3 = s.displayName, y3 = void 0 === m3 ? (function(e3) {
|
|
4039
|
+
return z(e3) ? "styled.".concat(e3) : "Styled(".concat(B(e3), ")");
|
|
4040
|
+
})(e2) : m3, v3 = s.displayName && s.componentId ? "".concat(x(s.displayName), "-").concat(s.componentId) : s.componentId || f2, g3 = a3 && c3.attrs ? c3.attrs.concat(h3).filter(Boolean) : h3, S3 = s.shouldForwardProp;
|
|
4041
|
+
if (a3 && c3.shouldForwardProp) {
|
|
4042
|
+
var w3 = c3.shouldForwardProp;
|
|
4060
4043
|
if (s.shouldForwardProp) {
|
|
4061
|
-
var
|
|
4062
|
-
|
|
4063
|
-
return
|
|
4044
|
+
var b3 = s.shouldForwardProp;
|
|
4045
|
+
S3 = function(e3, t2) {
|
|
4046
|
+
return w3(e3, t2) && b3(e3, t2);
|
|
4064
4047
|
};
|
|
4065
|
-
} else
|
|
4048
|
+
} else S3 = w3;
|
|
4066
4049
|
}
|
|
4067
|
-
var
|
|
4068
|
-
function
|
|
4050
|
+
var N3 = new Je(i, v3, a3 ? c3.componentStyle : void 0);
|
|
4051
|
+
function E3(e3, s2) {
|
|
4069
4052
|
return (function(e4, s3, i2) {
|
|
4070
|
-
var
|
|
4071
|
-
|
|
4072
|
-
var
|
|
4073
|
-
for (var
|
|
4074
|
-
var
|
|
4075
|
-
for (var
|
|
4053
|
+
var a4 = e4.attrs, c4 = e4.componentStyle, u4 = e4.defaultProps, l3 = e4.foldedComponentIds, p4 = e4.styledComponentId, h4 = e4.target, d4 = o.useContext(Xe), f3 = Fe(), m4 = e4.shouldForwardProp || f3.shouldForwardProp;
|
|
4054
|
+
o.useDebugValue && o.useDebugValue(p4);
|
|
4055
|
+
var y4 = O(s3, d4, u4) || I, v5 = (function(e5, n, o3) {
|
|
4056
|
+
for (var r3, s4 = __assign(__assign({}, n), { className: void 0, theme: o3 }), i3 = 0; i3 < e5.length; i3 += 1) {
|
|
4057
|
+
var a5 = re(r3 = e5[i3]) ? r3(s4) : r3;
|
|
4058
|
+
for (var c5 in a5) "className" === c5 ? s4.className = ie(s4.className, a5[c5]) : "style" === c5 ? s4.style = __assign(__assign({}, s4.style), a5[c5]) : s4[c5] = a5[c5];
|
|
4076
4059
|
}
|
|
4077
|
-
return "className" in n && "string" == typeof n.className && (s4.className =
|
|
4078
|
-
})(
|
|
4079
|
-
for (var
|
|
4080
|
-
var
|
|
4081
|
-
var n =
|
|
4082
|
-
return
|
|
4083
|
-
})(
|
|
4084
|
-
e4.warnTooManyClasses && e4.warnTooManyClasses(
|
|
4085
|
-
var
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
var R2 = r.forwardRef(D2);
|
|
4093
|
-
return R2.attrs = C2, R2.componentStyle = O2, R2.displayName = v2, R2.shouldForwardProp = _2, R2.foldedComponentIds = a2 ? K(c2.foldedComponentIds, c2.styledComponentId) : "", R2.styledComponentId = E2, R2.target = a2 ? c2.target : e2, Object.defineProperty(R2, "defaultProps", { get: function() {
|
|
4060
|
+
return "className" in n && "string" == typeof n.className && (s4.className = ie(s4.className, n.className)), s4;
|
|
4061
|
+
})(a4, s3, y4), g4 = v5.as || h4, S4 = {};
|
|
4062
|
+
for (var w4 in v5) void 0 === v5[w4] || "$" === w4[0] || "as" === w4 || "theme" === w4 && v5.theme === y4 || ("forwardedAs" === w4 ? S4.as = v5.forwardedAs : m4 && !m4(w4, g4) || (S4[w4] = v5[w4], m4 || false || isPropValid(w4) || tt.has(w4) || !D.has(g4) || (tt.add(w4), console.warn('styled-components: it looks like an unknown prop "'.concat(w4, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
4063
|
+
var b4 = (function(e5, t2) {
|
|
4064
|
+
var n = Fe(), r3 = e5.generateAndInjectStyles(t2, n.styleSheet, n.stylis);
|
|
4065
|
+
return o.useDebugValue && o.useDebugValue(r3.className), r3;
|
|
4066
|
+
})(c4, v5), N4 = b4.className;
|
|
4067
|
+
e4.warnTooManyClasses && e4.warnTooManyClasses(N4);
|
|
4068
|
+
var E4 = ie(l3, p4);
|
|
4069
|
+
return N4 && (E4 += " " + N4), v5.className && (E4 += " " + v5.className), S4[z(g4) && !D.has(g4) ? "class" : "className"] = E4, i2 && (S4.ref = i2), r(g4, S4);
|
|
4070
|
+
})(C3, e3, s2);
|
|
4071
|
+
}
|
|
4072
|
+
E3.displayName = y3;
|
|
4073
|
+
var C3 = o.forwardRef(E3);
|
|
4074
|
+
return C3.attrs = g3, C3.componentStyle = N3, C3.displayName = y3, C3.shouldForwardProp = S3, C3.foldedComponentIds = a3 ? ie(c3.foldedComponentIds, c3.styledComponentId) : "", C3.styledComponentId = v3, C3.target = a3 ? c3.target : e2, Object.defineProperty(C3, "defaultProps", { get: function() {
|
|
4094
4075
|
return this._foldedDefaultProps;
|
|
4095
4076
|
}, set: function(e3) {
|
|
4096
|
-
this._foldedDefaultProps =
|
|
4077
|
+
this._foldedDefaultProps = a3 ? (function(e4) {
|
|
4097
4078
|
for (var t2 = [], n = 1; n < arguments.length; n++) t2[n - 1] = arguments[n];
|
|
4098
|
-
for (var
|
|
4079
|
+
for (var o3 = 0, r3 = t2; o3 < r3.length; o3++) ue(e4, r3[o3], true);
|
|
4099
4080
|
return e4;
|
|
4100
|
-
})({},
|
|
4101
|
-
} }),
|
|
4102
|
-
var n = {},
|
|
4103
|
-
return function(
|
|
4104
|
-
if (!
|
|
4081
|
+
})({}, c3.defaultProps, e3) : e3;
|
|
4082
|
+
} }), _(y3, v3), C3.warnTooManyClasses = /* @__PURE__ */ (function(e3, t2) {
|
|
4083
|
+
var n = {}, o3 = false;
|
|
4084
|
+
return function(r3) {
|
|
4085
|
+
if (!o3 && (n[r3] = true, Object.keys(n).length >= 200)) {
|
|
4105
4086
|
var s2 = t2 ? ' with the id of "'.concat(t2, '"') : "";
|
|
4106
|
-
console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),
|
|
4087
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o3 = true, n = {};
|
|
4107
4088
|
}
|
|
4108
4089
|
};
|
|
4109
|
-
})(
|
|
4110
|
-
return ".".concat(
|
|
4111
|
-
}),
|
|
4090
|
+
})(y3, v3), le(C3, function() {
|
|
4091
|
+
return ".".concat(C3.styledComponentId);
|
|
4092
|
+
}), u3 && oe(C3, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), C3;
|
|
4112
4093
|
}
|
|
4113
|
-
function
|
|
4114
|
-
for (var n = [e2[0]],
|
|
4094
|
+
function ot(e2, t2) {
|
|
4095
|
+
for (var n = [e2[0]], o3 = 0, r3 = t2.length; o3 < r3; o3 += 1) n.push(t2[o3], e2[o3 + 1]);
|
|
4115
4096
|
return n;
|
|
4116
4097
|
}
|
|
4117
|
-
var
|
|
4098
|
+
var rt = function(e2) {
|
|
4118
4099
|
return Object.assign(e2, { isCss: true });
|
|
4119
4100
|
};
|
|
4120
|
-
function
|
|
4121
|
-
for (var n = [],
|
|
4122
|
-
if (
|
|
4123
|
-
var
|
|
4124
|
-
return 0 === n.length && 1 ===
|
|
4101
|
+
function st(t2) {
|
|
4102
|
+
for (var n = [], o3 = 1; o3 < arguments.length; o3++) n[o3 - 1] = arguments[o3];
|
|
4103
|
+
if (re(t2) || ce(t2)) return rt(qe(ot(P, __spreadArray([t2], n, true))));
|
|
4104
|
+
var r3 = t2;
|
|
4105
|
+
return 0 === n.length && 1 === r3.length && "string" == typeof r3[0] ? qe(r3) : rt(qe(ot(r3, n)));
|
|
4125
4106
|
}
|
|
4126
|
-
function
|
|
4127
|
-
if (void 0 ===
|
|
4107
|
+
function it(n, o3, r3) {
|
|
4108
|
+
if (void 0 === r3 && (r3 = I), !o3) throw v(1, o3);
|
|
4128
4109
|
var s = function(t2) {
|
|
4129
4110
|
for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
|
|
4130
|
-
return n(
|
|
4111
|
+
return n(o3, r3, st.apply(void 0, __spreadArray([t2], s2, false)));
|
|
4131
4112
|
};
|
|
4132
4113
|
return s.attrs = function(e2) {
|
|
4133
|
-
return
|
|
4114
|
+
return it(n, o3, __assign(__assign({}, r3), { attrs: Array.prototype.concat(r3.attrs, e2).filter(Boolean) }));
|
|
4134
4115
|
}, s.withConfig = function(e2) {
|
|
4135
|
-
return
|
|
4116
|
+
return it(n, o3, __assign(__assign({}, r3), e2));
|
|
4136
4117
|
}, s;
|
|
4137
4118
|
}
|
|
4138
|
-
var
|
|
4139
|
-
return
|
|
4119
|
+
var at = function(e2) {
|
|
4120
|
+
return it(nt, e2);
|
|
4140
4121
|
};
|
|
4141
|
-
var
|
|
4142
|
-
|
|
4143
|
-
|
|
4122
|
+
var ct = at;
|
|
4123
|
+
D.forEach(function(e2) {
|
|
4124
|
+
ct[e2] = at(e2);
|
|
4144
4125
|
});
|
|
4145
|
-
var
|
|
4126
|
+
var ut = (function() {
|
|
4146
4127
|
function e2(e3, t2) {
|
|
4147
|
-
this.rules = e3, this.componentId = t2, this.isStatic =
|
|
4128
|
+
this.rules = e3, this.componentId = t2, this.isStatic = He(e3), _e.registerId(this.componentId + 1);
|
|
4148
4129
|
}
|
|
4149
|
-
return e2.prototype.createStyles = function(e3, t2, n,
|
|
4150
|
-
var
|
|
4151
|
-
n.insertRules(s, s,
|
|
4130
|
+
return e2.prototype.createStyles = function(e3, t2, n, o3) {
|
|
4131
|
+
var r3 = o3(ae(qe(this.rules, t2, n, o3)), ""), s = this.componentId + e3;
|
|
4132
|
+
n.insertRules(s, s, r3);
|
|
4152
4133
|
}, e2.prototype.removeStyles = function(e3, t2) {
|
|
4153
4134
|
t2.clearRules(this.componentId + e3);
|
|
4154
|
-
}, e2.prototype.renderStyles = function(e3, t2, n,
|
|
4155
|
-
e3 > 2 &&
|
|
4156
|
-
var
|
|
4157
|
-
this.isStatic ? n.hasNameForId(
|
|
4135
|
+
}, e2.prototype.renderStyles = function(e3, t2, n, o3) {
|
|
4136
|
+
e3 > 2 && _e.registerId(this.componentId + e3);
|
|
4137
|
+
var r3 = this.componentId + e3;
|
|
4138
|
+
this.isStatic ? n.hasNameForId(r3, r3) || this.createStyles(e3, t2, n, o3) : (this.removeStyles(e3, n), this.createStyles(e3, t2, n, o3));
|
|
4158
4139
|
}, e2;
|
|
4159
4140
|
})();
|
|
4160
|
-
function ht(n) {
|
|
4161
|
-
for (var o2 = [], s = 1; s < arguments.length; s++) o2[s - 1] = arguments[s];
|
|
4162
|
-
var i = at.apply(void 0, __spreadArray([n], o2, false)), a2 = "sc-global-".concat(T(JSON.stringify(i))), c2 = new dt(i, a2);
|
|
4163
|
-
g(a2);
|
|
4164
|
-
var u2 = /* @__PURE__ */ new WeakMap(), l2 = function(e2) {
|
|
4165
|
-
var t2 = Le(), n2 = p ? void 0 : r.useContext(Ke), o3 = u2.get(t2.styleSheet);
|
|
4166
|
-
if (void 0 === o3 && (o3 = t2.styleSheet.allocateGSInstance(a2), u2.set(t2.styleSheet, o3)), r.Children.count(e2.children) && console.warn("The global style component ".concat(a2, " was given child JSX. createGlobalStyle does not render children.")), i.some(function(e3) {
|
|
4167
|
-
return "string" == typeof e3 && -1 !== e3.indexOf("@import");
|
|
4168
|
-
}) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), ("undefined" == typeof window || !t2.styleSheet.server) && d2(o3, e2, t2.styleSheet, n2, t2.stylis), p || r.useLayoutEffect(function() {
|
|
4169
|
-
return t2.styleSheet.server || d2(o3, e2, t2.styleSheet, n2, t2.stylis), function() {
|
|
4170
|
-
var e3;
|
|
4171
|
-
c2.removeStyles(o3, t2.styleSheet), e3 = t2.styleSheet.options.target, "undefined" != typeof document && (null != e3 ? e3 : document).querySelectorAll('style[data-styled-global="'.concat(a2, '"]')).forEach(function(e4) {
|
|
4172
|
-
return e4.remove();
|
|
4173
|
-
});
|
|
4174
|
-
};
|
|
4175
|
-
}, [o3, e2, t2.styleSheet, n2, t2.stylis]), p) {
|
|
4176
|
-
var s2 = a2 + o3, l3 = "undefined" == typeof window ? t2.styleSheet.getTag().getGroup(de(s2)) : "";
|
|
4177
|
-
if (l3) return r.createElement("style", { key: "".concat(a2, "-").concat(o3), "data-styled-global": a2, children: l3 });
|
|
4178
|
-
}
|
|
4179
|
-
return null;
|
|
4180
|
-
};
|
|
4181
|
-
function d2(e2, n2, r2, o3, s2) {
|
|
4182
|
-
if (c2.isStatic) c2.renderStyles(e2, m, r2, s2);
|
|
4183
|
-
else {
|
|
4184
|
-
var i2 = __assign(__assign({}, n2), { theme: b(n2, o3, l2.defaultProps) });
|
|
4185
|
-
c2.renderStyles(e2, i2, r2, s2);
|
|
4186
|
-
}
|
|
4187
|
-
}
|
|
4188
|
-
return r.memo(l2);
|
|
4189
|
-
}
|
|
4190
4141
|
function pt(t2) {
|
|
4191
|
-
for (var n = [],
|
|
4142
|
+
for (var n = [], o3 = 1; o3 < arguments.length; o3++) n[o3 - 1] = arguments[o3];
|
|
4192
4143
|
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
4193
|
-
var
|
|
4194
|
-
return new
|
|
4144
|
+
var r3 = ae(st.apply(void 0, __spreadArray([t2], n, false))), s = L(r3);
|
|
4145
|
+
return new Le(s, r3);
|
|
4195
4146
|
}
|
|
4196
|
-
var
|
|
4147
|
+
var dt = (function() {
|
|
4197
4148
|
function e2() {
|
|
4198
4149
|
var e3 = this;
|
|
4199
4150
|
this._emitSheetCSS = function() {
|
|
4200
4151
|
var t2 = e3.instance.toString();
|
|
4201
4152
|
if (!t2) return "";
|
|
4202
|
-
var n =
|
|
4203
|
-
return "<style ".concat(
|
|
4153
|
+
var n = Se(), o3 = ae([n && 'nonce="'.concat(n, '"'), "".concat(a, '="true"'), "".concat(u, '="').concat(l, '"')].filter(Boolean), " ");
|
|
4154
|
+
return "<style ".concat(o3, ">").concat(t2, "</style>");
|
|
4204
4155
|
}, this.getStyleTags = function() {
|
|
4205
|
-
if (e3.sealed) throw
|
|
4156
|
+
if (e3.sealed) throw v(2);
|
|
4206
4157
|
return e3._emitSheetCSS();
|
|
4207
4158
|
}, this.getStyleElement = function() {
|
|
4208
4159
|
var n;
|
|
4209
|
-
if (e3.sealed) throw
|
|
4210
|
-
var
|
|
4211
|
-
if (!
|
|
4212
|
-
var s = ((n = {})[a] = "", n[u] = l, n.dangerouslySetInnerHTML = { __html:
|
|
4213
|
-
return i && (s.nonce = i), [
|
|
4160
|
+
if (e3.sealed) throw v(2);
|
|
4161
|
+
var r3 = e3.instance.toString();
|
|
4162
|
+
if (!r3) return [];
|
|
4163
|
+
var s = ((n = {})[a] = "", n[u] = l, n.dangerouslySetInnerHTML = { __html: r3 }, n), i = Se();
|
|
4164
|
+
return i && (s.nonce = i), [o.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
|
|
4214
4165
|
}, this.seal = function() {
|
|
4215
4166
|
e3.sealed = true;
|
|
4216
|
-
}, this.instance = new
|
|
4167
|
+
}, this.instance = new _e({ isServer: true }), this.sealed = false;
|
|
4217
4168
|
}
|
|
4218
4169
|
return e2.prototype.collectStyles = function(e3) {
|
|
4219
|
-
if (this.sealed) throw
|
|
4220
|
-
return
|
|
4170
|
+
if (this.sealed) throw v(2);
|
|
4171
|
+
return o.createElement(Ge, { sheet: this.instance }, e3);
|
|
4221
4172
|
}, e2.prototype.interleaveWithNodeStream = function(e3) {
|
|
4222
|
-
throw
|
|
4173
|
+
throw v(3);
|
|
4223
4174
|
}, e2;
|
|
4224
4175
|
})();
|
|
4225
4176
|
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
4226
|
-
var
|
|
4227
|
-
"undefined" != typeof window && (window[
|
|
4177
|
+
var mt = "__sc-".concat(a, "__");
|
|
4178
|
+
"undefined" != typeof window && (window[mt] || (window[mt] = 0), 1 === window[mt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[mt] += 1);
|
|
4228
4179
|
|
|
4229
4180
|
// src/utils/style.ts
|
|
4230
4181
|
function attr(key, value) {
|
|
4231
4182
|
if (typeof value !== "undefined") {
|
|
4232
|
-
return
|
|
4183
|
+
return st`
|
|
4233
4184
|
${key}: ${value};
|
|
4234
4185
|
`;
|
|
4235
4186
|
}
|
|
@@ -4407,9 +4358,9 @@ var makeString = (object) => {
|
|
|
4407
4358
|
if (object == null) return "";
|
|
4408
4359
|
return "" + object;
|
|
4409
4360
|
};
|
|
4410
|
-
var copy2 = (
|
|
4411
|
-
|
|
4412
|
-
if (s[
|
|
4361
|
+
var copy2 = (a3, s, t2) => {
|
|
4362
|
+
a3.forEach((m3) => {
|
|
4363
|
+
if (s[m3]) t2[m3] = s[m3];
|
|
4413
4364
|
});
|
|
4414
4365
|
};
|
|
4415
4366
|
var lastOfPathSeparatorRegExp = /###/g;
|
|
@@ -4438,19 +4389,19 @@ var getLastOfPath = (object, path, Empty) => {
|
|
|
4438
4389
|
var setPath = (object, path, newValue) => {
|
|
4439
4390
|
const {
|
|
4440
4391
|
obj,
|
|
4441
|
-
k:
|
|
4392
|
+
k: k3
|
|
4442
4393
|
} = getLastOfPath(object, path, Object);
|
|
4443
4394
|
if (obj !== void 0 || path.length === 1) {
|
|
4444
|
-
obj[
|
|
4395
|
+
obj[k3] = newValue;
|
|
4445
4396
|
return;
|
|
4446
4397
|
}
|
|
4447
4398
|
let e2 = path[path.length - 1];
|
|
4448
|
-
let
|
|
4449
|
-
let last = getLastOfPath(object,
|
|
4450
|
-
while (last.obj === void 0 &&
|
|
4451
|
-
e2 = `${
|
|
4452
|
-
|
|
4453
|
-
last = getLastOfPath(object,
|
|
4399
|
+
let p3 = path.slice(0, path.length - 1);
|
|
4400
|
+
let last = getLastOfPath(object, p3, Object);
|
|
4401
|
+
while (last.obj === void 0 && p3.length) {
|
|
4402
|
+
e2 = `${p3[p3.length - 1]}.${e2}`;
|
|
4403
|
+
p3 = p3.slice(0, p3.length - 1);
|
|
4404
|
+
last = getLastOfPath(object, p3, Object);
|
|
4454
4405
|
if (last?.obj && typeof last.obj[`${last.k}.${e2}`] !== "undefined") {
|
|
4455
4406
|
last.obj = void 0;
|
|
4456
4407
|
}
|
|
@@ -4460,19 +4411,19 @@ var setPath = (object, path, newValue) => {
|
|
|
4460
4411
|
var pushPath = (object, path, newValue, concat) => {
|
|
4461
4412
|
const {
|
|
4462
4413
|
obj,
|
|
4463
|
-
k:
|
|
4414
|
+
k: k3
|
|
4464
4415
|
} = getLastOfPath(object, path, Object);
|
|
4465
|
-
obj[
|
|
4466
|
-
obj[
|
|
4416
|
+
obj[k3] = obj[k3] || [];
|
|
4417
|
+
obj[k3].push(newValue);
|
|
4467
4418
|
};
|
|
4468
4419
|
var getPath = (object, path) => {
|
|
4469
4420
|
const {
|
|
4470
4421
|
obj,
|
|
4471
|
-
k:
|
|
4422
|
+
k: k3
|
|
4472
4423
|
} = getLastOfPath(object, path);
|
|
4473
4424
|
if (!obj) return void 0;
|
|
4474
|
-
if (!Object.prototype.hasOwnProperty.call(obj,
|
|
4475
|
-
return obj[
|
|
4425
|
+
if (!Object.prototype.hasOwnProperty.call(obj, k3)) return void 0;
|
|
4426
|
+
return obj[k3];
|
|
4476
4427
|
};
|
|
4477
4428
|
var getPathWithDefaults = (data, defaultData, key) => {
|
|
4478
4429
|
const value = getPath(data, key);
|
|
@@ -4537,13 +4488,13 @@ var looksLikeObjectPathRegExpCache = new RegExpCache(20);
|
|
|
4537
4488
|
var looksLikeObjectPath = (key, nsSeparator, keySeparator) => {
|
|
4538
4489
|
nsSeparator = nsSeparator || "";
|
|
4539
4490
|
keySeparator = keySeparator || "";
|
|
4540
|
-
const possibleChars = chars.filter((
|
|
4491
|
+
const possibleChars = chars.filter((c3) => nsSeparator.indexOf(c3) < 0 && keySeparator.indexOf(c3) < 0);
|
|
4541
4492
|
if (possibleChars.length === 0) return true;
|
|
4542
|
-
const
|
|
4543
|
-
let matched = !
|
|
4493
|
+
const r3 = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map((c3) => c3 === "?" ? "\\?" : c3).join("|")})`);
|
|
4494
|
+
let matched = !r3.test(key);
|
|
4544
4495
|
if (!matched) {
|
|
4545
4496
|
const ki = key.indexOf(keySeparator);
|
|
4546
|
-
if (ki > 0 && !
|
|
4497
|
+
if (ki > 0 && !r3.test(key.substring(0, ki))) {
|
|
4547
4498
|
matched = true;
|
|
4548
4499
|
}
|
|
4549
4500
|
}
|
|
@@ -4563,17 +4514,17 @@ var deepFind = (obj, path, keySeparator = ".") => {
|
|
|
4563
4514
|
}
|
|
4564
4515
|
let next2;
|
|
4565
4516
|
let nextPath = "";
|
|
4566
|
-
for (let
|
|
4567
|
-
if (
|
|
4517
|
+
for (let j3 = i; j3 < tokens.length; ++j3) {
|
|
4518
|
+
if (j3 !== i) {
|
|
4568
4519
|
nextPath += keySeparator;
|
|
4569
4520
|
}
|
|
4570
|
-
nextPath += tokens[
|
|
4521
|
+
nextPath += tokens[j3];
|
|
4571
4522
|
next2 = current[nextPath];
|
|
4572
4523
|
if (next2 !== void 0) {
|
|
4573
|
-
if (["string", "number", "boolean"].indexOf(typeof next2) > -1 &&
|
|
4524
|
+
if (["string", "number", "boolean"].indexOf(typeof next2) > -1 && j3 < tokens.length - 1) {
|
|
4574
4525
|
continue;
|
|
4575
4526
|
}
|
|
4576
|
-
i +=
|
|
4527
|
+
i += j3 - i + 1;
|
|
4577
4528
|
break;
|
|
4578
4529
|
}
|
|
4579
4530
|
}
|
|
@@ -4749,8 +4700,8 @@ var ResourceStore = class extends EventEmitter {
|
|
|
4749
4700
|
addResources(lng, ns, resources, options = {
|
|
4750
4701
|
silent: false
|
|
4751
4702
|
}) {
|
|
4752
|
-
for (const
|
|
4753
|
-
if (isString(resources[
|
|
4703
|
+
for (const m3 in resources) {
|
|
4704
|
+
if (isString(resources[m3]) || Array.isArray(resources[m3])) this.addResource(lng, ns, m3, resources[m3], {
|
|
4754
4705
|
silent: true
|
|
4755
4706
|
});
|
|
4756
4707
|
}
|
|
@@ -4801,7 +4752,7 @@ var ResourceStore = class extends EventEmitter {
|
|
|
4801
4752
|
hasLanguageSomeTranslations(lng) {
|
|
4802
4753
|
const data = this.getDataByLanguage(lng);
|
|
4803
4754
|
const n = data && Object.keys(data) || [];
|
|
4804
|
-
return !!n.find((
|
|
4755
|
+
return !!n.find((v3) => data[v3] && Object.keys(data[v3]).length > 0);
|
|
4805
4756
|
}
|
|
4806
4757
|
toJSON() {
|
|
4807
4758
|
return this.data;
|
|
@@ -4854,11 +4805,11 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
4854
4805
|
changeLanguage(lng) {
|
|
4855
4806
|
if (lng) this.language = lng;
|
|
4856
4807
|
}
|
|
4857
|
-
exists(key,
|
|
4808
|
+
exists(key, o3 = {
|
|
4858
4809
|
interpolation: {}
|
|
4859
4810
|
}) {
|
|
4860
4811
|
const opt = {
|
|
4861
|
-
...
|
|
4812
|
+
...o3
|
|
4862
4813
|
};
|
|
4863
4814
|
if (key == null) return false;
|
|
4864
4815
|
const resolved = this.resolve(key, opt);
|
|
@@ -4877,8 +4828,8 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
4877
4828
|
const wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1;
|
|
4878
4829
|
const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
|
|
4879
4830
|
if (wouldCheckForNsInKey && !seemsNaturalLanguage) {
|
|
4880
|
-
const
|
|
4881
|
-
if (
|
|
4831
|
+
const m3 = key.match(this.interpolator.nestingRegexp);
|
|
4832
|
+
if (m3 && m3.length > 0) {
|
|
4882
4833
|
return {
|
|
4883
4834
|
key,
|
|
4884
4835
|
namespaces: isString(namespaces) ? [namespaces] : namespaces
|
|
@@ -4893,10 +4844,10 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
4893
4844
|
namespaces: isString(namespaces) ? [namespaces] : namespaces
|
|
4894
4845
|
};
|
|
4895
4846
|
}
|
|
4896
|
-
translate(keys,
|
|
4897
|
-
let opt = typeof
|
|
4898
|
-
...
|
|
4899
|
-
} :
|
|
4847
|
+
translate(keys, o3, lastKey) {
|
|
4848
|
+
let opt = typeof o3 === "object" ? {
|
|
4849
|
+
...o3
|
|
4850
|
+
} : o3;
|
|
4900
4851
|
if (typeof opt !== "object" && this.options.overloadTranslationOptionHandler) {
|
|
4901
4852
|
opt = this.options.overloadTranslationOptionHandler(arguments);
|
|
4902
4853
|
}
|
|
@@ -4973,35 +4924,35 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
4973
4924
|
if (!this.options.returnedObjectHandler) {
|
|
4974
4925
|
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
4975
4926
|
}
|
|
4976
|
-
const
|
|
4927
|
+
const r3 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
4977
4928
|
...opt,
|
|
4978
4929
|
ns: namespaces
|
|
4979
4930
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
4980
4931
|
if (returnDetails) {
|
|
4981
|
-
resolved.res =
|
|
4932
|
+
resolved.res = r3;
|
|
4982
4933
|
resolved.usedParams = this.getUsedParamsDetails(opt);
|
|
4983
4934
|
return resolved;
|
|
4984
4935
|
}
|
|
4985
|
-
return
|
|
4936
|
+
return r3;
|
|
4986
4937
|
}
|
|
4987
4938
|
if (keySeparator) {
|
|
4988
4939
|
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
4989
4940
|
const copy3 = resTypeIsArray ? [] : {};
|
|
4990
4941
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
4991
|
-
for (const
|
|
4992
|
-
if (Object.prototype.hasOwnProperty.call(resForObjHndl,
|
|
4993
|
-
const deepKey = `${newKeyToUse}${keySeparator}${
|
|
4942
|
+
for (const m3 in resForObjHndl) {
|
|
4943
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m3)) {
|
|
4944
|
+
const deepKey = `${newKeyToUse}${keySeparator}${m3}`;
|
|
4994
4945
|
if (hasDefaultValue && !res) {
|
|
4995
|
-
copy3[
|
|
4946
|
+
copy3[m3] = this.translate(deepKey, {
|
|
4996
4947
|
...opt,
|
|
4997
|
-
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[
|
|
4948
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m3] : void 0,
|
|
4998
4949
|
...{
|
|
4999
4950
|
joinArrays: false,
|
|
5000
4951
|
ns: namespaces
|
|
5001
4952
|
}
|
|
5002
4953
|
});
|
|
5003
4954
|
} else {
|
|
5004
|
-
copy3[
|
|
4955
|
+
copy3[m3] = this.translate(deepKey, {
|
|
5005
4956
|
...opt,
|
|
5006
4957
|
...{
|
|
5007
4958
|
joinArrays: false,
|
|
@@ -5009,7 +4960,7 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
5009
4960
|
}
|
|
5010
4961
|
});
|
|
5011
4962
|
}
|
|
5012
|
-
if (copy3[
|
|
4963
|
+
if (copy3[m3] === deepKey) copy3[m3] = resForObjHndl[m3];
|
|
5013
4964
|
}
|
|
5014
4965
|
}
|
|
5015
4966
|
res = copy3;
|
|
@@ -5051,14 +5002,14 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
5051
5002
|
} else {
|
|
5052
5003
|
lngs.push(opt.lng || this.language);
|
|
5053
5004
|
}
|
|
5054
|
-
const send = (
|
|
5005
|
+
const send = (l3, k3, specificDefaultValue) => {
|
|
5055
5006
|
const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;
|
|
5056
5007
|
if (this.options.missingKeyHandler) {
|
|
5057
|
-
this.options.missingKeyHandler(
|
|
5008
|
+
this.options.missingKeyHandler(l3, namespace, k3, defaultForMissing, updateMissing, opt);
|
|
5058
5009
|
} else if (this.backendConnector?.saveMissing) {
|
|
5059
|
-
this.backendConnector.saveMissing(
|
|
5010
|
+
this.backendConnector.saveMissing(l3, namespace, k3, defaultForMissing, updateMissing, opt);
|
|
5060
5011
|
}
|
|
5061
|
-
this.emit("missingKey",
|
|
5012
|
+
this.emit("missingKey", l3, namespace, k3, res);
|
|
5062
5013
|
};
|
|
5063
5014
|
if (this.options.saveMissing) {
|
|
5064
5015
|
if (this.options.saveMissingPlurals && needsPluralHandling) {
|
|
@@ -5156,9 +5107,9 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
5156
5107
|
let usedLng;
|
|
5157
5108
|
let usedNS;
|
|
5158
5109
|
if (isString(keys)) keys = [keys];
|
|
5159
|
-
keys.forEach((
|
|
5110
|
+
keys.forEach((k3) => {
|
|
5160
5111
|
if (this.isValidLookup(found)) return;
|
|
5161
|
-
const extracted = this.extractFromKey(
|
|
5112
|
+
const extracted = this.extractFromKey(k3, opt);
|
|
5162
5113
|
const key = extracted.key;
|
|
5163
5114
|
usedKey = key;
|
|
5164
5115
|
let namespaces = extracted.namespaces;
|
|
@@ -5275,17 +5226,17 @@ var LanguageUtil = class {
|
|
|
5275
5226
|
getScriptPartFromCode(code) {
|
|
5276
5227
|
code = getCleanedCode(code);
|
|
5277
5228
|
if (!code || code.indexOf("-") < 0) return null;
|
|
5278
|
-
const
|
|
5279
|
-
if (
|
|
5280
|
-
|
|
5281
|
-
if (
|
|
5282
|
-
return this.formatLanguageCode(
|
|
5229
|
+
const p3 = code.split("-");
|
|
5230
|
+
if (p3.length === 2) return null;
|
|
5231
|
+
p3.pop();
|
|
5232
|
+
if (p3[p3.length - 1].toLowerCase() === "x") return null;
|
|
5233
|
+
return this.formatLanguageCode(p3.join("-"));
|
|
5283
5234
|
}
|
|
5284
5235
|
getLanguagePartFromCode(code) {
|
|
5285
5236
|
code = getCleanedCode(code);
|
|
5286
5237
|
if (!code || code.indexOf("-") < 0) return code;
|
|
5287
|
-
const
|
|
5288
|
-
return this.formatLanguageCode(
|
|
5238
|
+
const p3 = code.split("-");
|
|
5239
|
+
return this.formatLanguageCode(p3[0]);
|
|
5289
5240
|
}
|
|
5290
5241
|
formatLanguageCode(code) {
|
|
5291
5242
|
if (isString(code) && code.indexOf("-") > -1) {
|
|
@@ -5353,12 +5304,12 @@ var LanguageUtil = class {
|
|
|
5353
5304
|
toResolveHierarchy(code, fallbackCode) {
|
|
5354
5305
|
const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);
|
|
5355
5306
|
const codes = [];
|
|
5356
|
-
const addCode = (
|
|
5357
|
-
if (!
|
|
5358
|
-
if (this.isSupportedCode(
|
|
5359
|
-
codes.push(
|
|
5307
|
+
const addCode = (c3) => {
|
|
5308
|
+
if (!c3) return;
|
|
5309
|
+
if (this.isSupportedCode(c3)) {
|
|
5310
|
+
codes.push(c3);
|
|
5360
5311
|
} else {
|
|
5361
|
-
this.logger.warn(`rejecting language code not found in supportedLngs: ${
|
|
5312
|
+
this.logger.warn(`rejecting language code not found in supportedLngs: ${c3}`);
|
|
5362
5313
|
}
|
|
5363
5314
|
};
|
|
5364
5315
|
if (isString(code) && (code.indexOf("-") > -1 || code.indexOf("_") > -1)) {
|
|
@@ -5531,13 +5482,13 @@ var Interpolator = class {
|
|
|
5531
5482
|
interpolationkey: key
|
|
5532
5483
|
}) : path;
|
|
5533
5484
|
}
|
|
5534
|
-
const
|
|
5535
|
-
const
|
|
5536
|
-
const f2 =
|
|
5537
|
-
return this.format(deepFindWithDefaults(data, defaultData,
|
|
5485
|
+
const p3 = key.split(this.formatSeparator);
|
|
5486
|
+
const k3 = p3.shift().trim();
|
|
5487
|
+
const f2 = p3.join(this.formatSeparator).trim();
|
|
5488
|
+
return this.format(deepFindWithDefaults(data, defaultData, k3, this.options.keySeparator, this.options.ignoreJSONStructure), f2, lng, {
|
|
5538
5489
|
...options,
|
|
5539
5490
|
...data,
|
|
5540
|
-
interpolationkey:
|
|
5491
|
+
interpolationkey: k3
|
|
5541
5492
|
});
|
|
5542
5493
|
};
|
|
5543
5494
|
this.resetRegExp();
|
|
@@ -5594,9 +5545,9 @@ var Interpolator = class {
|
|
|
5594
5545
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
5595
5546
|
const sep = this.nestingOptionsSeparator;
|
|
5596
5547
|
if (key.indexOf(sep) < 0) return key;
|
|
5597
|
-
const
|
|
5598
|
-
let optionsString = `{${
|
|
5599
|
-
key =
|
|
5548
|
+
const c3 = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));
|
|
5549
|
+
let optionsString = `{${c3[1]}`;
|
|
5550
|
+
key = c3[0];
|
|
5600
5551
|
optionsString = this.interpolate(optionsString, clonedOptions);
|
|
5601
5552
|
const matchedSingleQuotes = optionsString.match(/'/g);
|
|
5602
5553
|
const matchedDoubleQuotes = optionsString.match(/"/g);
|
|
@@ -5637,7 +5588,7 @@ var Interpolator = class {
|
|
|
5637
5588
|
value = "";
|
|
5638
5589
|
}
|
|
5639
5590
|
if (formatters.length) {
|
|
5640
|
-
value = formatters.reduce((
|
|
5591
|
+
value = formatters.reduce((v3, f2) => this.format(v3, f2, options.lng, {
|
|
5641
5592
|
...options,
|
|
5642
5593
|
interpolationkey: match2[1].trim()
|
|
5643
5594
|
}), value.trim());
|
|
@@ -5652,9 +5603,9 @@ var parseFormatStr = (formatStr) => {
|
|
|
5652
5603
|
let formatName = formatStr.toLowerCase().trim();
|
|
5653
5604
|
const formatOptions = {};
|
|
5654
5605
|
if (formatStr.indexOf("(") > -1) {
|
|
5655
|
-
const
|
|
5656
|
-
formatName =
|
|
5657
|
-
const optStr =
|
|
5606
|
+
const p3 = formatStr.split("(");
|
|
5607
|
+
formatName = p3[0].toLowerCase().trim();
|
|
5608
|
+
const optStr = p3[1].substring(0, p3[1].length - 1);
|
|
5658
5609
|
if (formatName === "currency" && optStr.indexOf(":") < 0) {
|
|
5659
5610
|
if (!formatOptions.currency) formatOptions.currency = optStr.trim();
|
|
5660
5611
|
} else if (formatName === "relativetime" && optStr.indexOf(":") < 0) {
|
|
@@ -5681,24 +5632,24 @@ var parseFormatStr = (formatStr) => {
|
|
|
5681
5632
|
};
|
|
5682
5633
|
var createCachedFormatter = (fn) => {
|
|
5683
5634
|
const cache = {};
|
|
5684
|
-
return (
|
|
5685
|
-
let optForCache =
|
|
5686
|
-
if (
|
|
5635
|
+
return (v3, l3, o3) => {
|
|
5636
|
+
let optForCache = o3;
|
|
5637
|
+
if (o3 && o3.interpolationkey && o3.formatParams && o3.formatParams[o3.interpolationkey] && o3[o3.interpolationkey]) {
|
|
5687
5638
|
optForCache = {
|
|
5688
5639
|
...optForCache,
|
|
5689
|
-
[
|
|
5640
|
+
[o3.interpolationkey]: void 0
|
|
5690
5641
|
};
|
|
5691
5642
|
}
|
|
5692
|
-
const key =
|
|
5643
|
+
const key = l3 + JSON.stringify(optForCache);
|
|
5693
5644
|
let frm = cache[key];
|
|
5694
5645
|
if (!frm) {
|
|
5695
|
-
frm = fn(getCleanedCode(
|
|
5646
|
+
frm = fn(getCleanedCode(l3), o3);
|
|
5696
5647
|
cache[key] = frm;
|
|
5697
5648
|
}
|
|
5698
|
-
return frm(
|
|
5649
|
+
return frm(v3);
|
|
5699
5650
|
};
|
|
5700
5651
|
};
|
|
5701
|
-
var createNonCachedFormatter = (fn) => (
|
|
5652
|
+
var createNonCachedFormatter = (fn) => (v3, l3, o3) => fn(getCleanedCode(l3), o3)(v3);
|
|
5702
5653
|
var Formatter = class {
|
|
5703
5654
|
constructor(options = {}) {
|
|
5704
5655
|
this.logger = baseLogger.create("formatter");
|
|
@@ -5765,8 +5716,8 @@ var Formatter = class {
|
|
|
5765
5716
|
let formatted = mem;
|
|
5766
5717
|
try {
|
|
5767
5718
|
const valOptions = options?.formatParams?.[options.interpolationkey] || {};
|
|
5768
|
-
const
|
|
5769
|
-
formatted = this.formats[formatName](mem,
|
|
5719
|
+
const l3 = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;
|
|
5720
|
+
formatted = this.formats[formatName](mem, l3, {
|
|
5770
5721
|
...formatOptions,
|
|
5771
5722
|
...options,
|
|
5772
5723
|
...valOptions
|
|
@@ -5783,10 +5734,10 @@ var Formatter = class {
|
|
|
5783
5734
|
return result;
|
|
5784
5735
|
}
|
|
5785
5736
|
};
|
|
5786
|
-
var removePending = (
|
|
5787
|
-
if (
|
|
5788
|
-
delete
|
|
5789
|
-
|
|
5737
|
+
var removePending = (q3, name) => {
|
|
5738
|
+
if (q3.pending[name] !== void 0) {
|
|
5739
|
+
delete q3.pending[name];
|
|
5740
|
+
q3.pendingCount--;
|
|
5790
5741
|
}
|
|
5791
5742
|
};
|
|
5792
5743
|
var Connector = class extends EventEmitter {
|
|
@@ -5860,30 +5811,30 @@ var Connector = class extends EventEmitter {
|
|
|
5860
5811
|
this.state[name] = err2 ? -1 : 2;
|
|
5861
5812
|
if (err2 && data) this.state[name] = 0;
|
|
5862
5813
|
const loaded = {};
|
|
5863
|
-
this.queue.forEach((
|
|
5864
|
-
pushPath(
|
|
5865
|
-
removePending(
|
|
5866
|
-
if (err2)
|
|
5867
|
-
if (
|
|
5868
|
-
Object.keys(
|
|
5869
|
-
if (!loaded[
|
|
5870
|
-
const loadedKeys =
|
|
5814
|
+
this.queue.forEach((q3) => {
|
|
5815
|
+
pushPath(q3.loaded, [lng], ns);
|
|
5816
|
+
removePending(q3, name);
|
|
5817
|
+
if (err2) q3.errors.push(err2);
|
|
5818
|
+
if (q3.pendingCount === 0 && !q3.done) {
|
|
5819
|
+
Object.keys(q3.loaded).forEach((l3) => {
|
|
5820
|
+
if (!loaded[l3]) loaded[l3] = {};
|
|
5821
|
+
const loadedKeys = q3.loaded[l3];
|
|
5871
5822
|
if (loadedKeys.length) {
|
|
5872
5823
|
loadedKeys.forEach((n) => {
|
|
5873
|
-
if (loaded[
|
|
5824
|
+
if (loaded[l3][n] === void 0) loaded[l3][n] = true;
|
|
5874
5825
|
});
|
|
5875
5826
|
}
|
|
5876
5827
|
});
|
|
5877
|
-
|
|
5878
|
-
if (
|
|
5879
|
-
|
|
5828
|
+
q3.done = true;
|
|
5829
|
+
if (q3.errors.length) {
|
|
5830
|
+
q3.callback(q3.errors);
|
|
5880
5831
|
} else {
|
|
5881
|
-
|
|
5832
|
+
q3.callback();
|
|
5882
5833
|
}
|
|
5883
5834
|
}
|
|
5884
5835
|
});
|
|
5885
5836
|
this.emit("loaded", loaded);
|
|
5886
|
-
this.queue = this.queue.filter((
|
|
5837
|
+
this.queue = this.queue.filter((q3) => !q3.done);
|
|
5887
5838
|
}
|
|
5888
5839
|
read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {
|
|
5889
5840
|
if (!lng.length) return callback(null, {});
|
|
@@ -5916,11 +5867,11 @@ var Connector = class extends EventEmitter {
|
|
|
5916
5867
|
const fc = this.backend[fcName].bind(this.backend);
|
|
5917
5868
|
if (fc.length === 2) {
|
|
5918
5869
|
try {
|
|
5919
|
-
const
|
|
5920
|
-
if (
|
|
5921
|
-
|
|
5870
|
+
const r3 = fc(lng, ns);
|
|
5871
|
+
if (r3 && typeof r3.then === "function") {
|
|
5872
|
+
r3.then((data) => resolver(null, data)).catch(resolver);
|
|
5922
5873
|
} else {
|
|
5923
|
-
resolver(null,
|
|
5874
|
+
resolver(null, r3);
|
|
5924
5875
|
}
|
|
5925
5876
|
} catch (err2) {
|
|
5926
5877
|
resolver(err2);
|
|
@@ -5978,16 +5929,16 @@ var Connector = class extends EventEmitter {
|
|
|
5978
5929
|
const fc = this.backend.create.bind(this.backend);
|
|
5979
5930
|
if (fc.length < 6) {
|
|
5980
5931
|
try {
|
|
5981
|
-
let
|
|
5932
|
+
let r3;
|
|
5982
5933
|
if (fc.length === 5) {
|
|
5983
|
-
|
|
5934
|
+
r3 = fc(languages, namespace, key, fallbackValue, opts);
|
|
5984
5935
|
} else {
|
|
5985
|
-
|
|
5936
|
+
r3 = fc(languages, namespace, key, fallbackValue);
|
|
5986
5937
|
}
|
|
5987
|
-
if (
|
|
5988
|
-
|
|
5938
|
+
if (r3 && typeof r3.then === "function") {
|
|
5939
|
+
r3.then((data) => clb(null, data)).catch(clb);
|
|
5989
5940
|
} else {
|
|
5990
|
-
clb(null,
|
|
5941
|
+
clb(null, r3);
|
|
5991
5942
|
}
|
|
5992
5943
|
} catch (err2) {
|
|
5993
5944
|
clb(err2);
|
|
@@ -6081,12 +6032,20 @@ var bindMemberFunctions = (inst) => {
|
|
|
6081
6032
|
}
|
|
6082
6033
|
});
|
|
6083
6034
|
};
|
|
6084
|
-
var
|
|
6035
|
+
var SUPPORT_NOTICE_KEY = "__i18next_supportNoticeShown";
|
|
6036
|
+
var getSupportNoticeShown = () => typeof globalThis !== "undefined" && !!globalThis[SUPPORT_NOTICE_KEY];
|
|
6037
|
+
var setSupportNoticeShown = () => {
|
|
6038
|
+
if (typeof globalThis !== "undefined") globalThis[SUPPORT_NOTICE_KEY] = true;
|
|
6039
|
+
};
|
|
6085
6040
|
var usesLocize = (inst) => {
|
|
6086
6041
|
if (inst?.modules?.backend?.name?.indexOf("Locize") > 0) return true;
|
|
6087
6042
|
if (inst?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0) return true;
|
|
6088
6043
|
if (inst?.options?.backend?.backends) {
|
|
6089
|
-
if (inst.options.backend.backends.some((
|
|
6044
|
+
if (inst.options.backend.backends.some((b3) => b3?.name?.indexOf("Locize") > 0 || b3?.constructor?.name?.indexOf("Locize") > 0)) return true;
|
|
6045
|
+
}
|
|
6046
|
+
if (inst?.options?.backend?.projectId) return true;
|
|
6047
|
+
if (inst?.options?.backend?.backendOptions) {
|
|
6048
|
+
if (inst.options.backend.backendOptions.some((b3) => b3?.projectId)) return true;
|
|
6090
6049
|
}
|
|
6091
6050
|
return false;
|
|
6092
6051
|
};
|
|
@@ -6142,9 +6101,9 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6142
6101
|
if (typeof this.options.overloadTranslationOptionHandler !== "function") {
|
|
6143
6102
|
this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
|
|
6144
6103
|
}
|
|
6145
|
-
if (this.options.showSupportNotice !== false && !usesLocize(this) && !
|
|
6104
|
+
if (this.options.showSupportNotice !== false && !usesLocize(this) && !getSupportNoticeShown()) {
|
|
6146
6105
|
if (typeof console !== "undefined" && typeof console.info !== "undefined") console.info("\u{1F310} i18next is maintained with support from Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}");
|
|
6147
|
-
|
|
6106
|
+
setSupportNoticeShown();
|
|
6148
6107
|
}
|
|
6149
6108
|
const createClassOnDemand = (ClassOrObject) => {
|
|
6150
6109
|
if (!ClassOrObject) return null;
|
|
@@ -6202,8 +6161,8 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6202
6161
|
this.translator.on("*", (event, ...args) => {
|
|
6203
6162
|
this.emit(event, ...args);
|
|
6204
6163
|
});
|
|
6205
|
-
this.modules.external.forEach((
|
|
6206
|
-
if (
|
|
6164
|
+
this.modules.external.forEach((m3) => {
|
|
6165
|
+
if (m3.init) m3.init(this);
|
|
6207
6166
|
});
|
|
6208
6167
|
}
|
|
6209
6168
|
this.format = this.options.interpolation.format;
|
|
@@ -6258,18 +6217,18 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6258
6217
|
if (!lng) return;
|
|
6259
6218
|
if (lng === "cimode") return;
|
|
6260
6219
|
const lngs = this.services.languageUtils.toResolveHierarchy(lng);
|
|
6261
|
-
lngs.forEach((
|
|
6262
|
-
if (
|
|
6263
|
-
if (toLoad.indexOf(
|
|
6220
|
+
lngs.forEach((l3) => {
|
|
6221
|
+
if (l3 === "cimode") return;
|
|
6222
|
+
if (toLoad.indexOf(l3) < 0) toLoad.push(l3);
|
|
6264
6223
|
});
|
|
6265
6224
|
};
|
|
6266
6225
|
if (!usedLng) {
|
|
6267
6226
|
const fallbacks = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
6268
|
-
fallbacks.forEach((
|
|
6227
|
+
fallbacks.forEach((l3) => append2(l3));
|
|
6269
6228
|
} else {
|
|
6270
6229
|
append2(usedLng);
|
|
6271
6230
|
}
|
|
6272
|
-
this.options.preload?.forEach?.((
|
|
6231
|
+
this.options.preload?.forEach?.((l3) => append2(l3));
|
|
6273
6232
|
this.services.backendConnector.load(toLoad, this.options.ns, (e2) => {
|
|
6274
6233
|
if (!e2 && !this.resolvedLanguage && this.language) this.setResolvedLanguage(this.language);
|
|
6275
6234
|
usedCallback(e2);
|
|
@@ -6323,9 +6282,9 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6323
6282
|
}
|
|
6324
6283
|
return this;
|
|
6325
6284
|
}
|
|
6326
|
-
setResolvedLanguage(
|
|
6327
|
-
if (!
|
|
6328
|
-
if (["cimode", "dev"].indexOf(
|
|
6285
|
+
setResolvedLanguage(l3) {
|
|
6286
|
+
if (!l3 || !this.languages) return;
|
|
6287
|
+
if (["cimode", "dev"].indexOf(l3) > -1) return;
|
|
6329
6288
|
for (let li = 0; li < this.languages.length; li++) {
|
|
6330
6289
|
const lngInLngs = this.languages[li];
|
|
6331
6290
|
if (["cimode", "dev"].indexOf(lngInLngs) > -1) continue;
|
|
@@ -6334,29 +6293,29 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6334
6293
|
break;
|
|
6335
6294
|
}
|
|
6336
6295
|
}
|
|
6337
|
-
if (!this.resolvedLanguage && this.languages.indexOf(
|
|
6338
|
-
this.resolvedLanguage =
|
|
6339
|
-
this.languages.unshift(
|
|
6296
|
+
if (!this.resolvedLanguage && this.languages.indexOf(l3) < 0 && this.store.hasLanguageSomeTranslations(l3)) {
|
|
6297
|
+
this.resolvedLanguage = l3;
|
|
6298
|
+
this.languages.unshift(l3);
|
|
6340
6299
|
}
|
|
6341
6300
|
}
|
|
6342
6301
|
changeLanguage(lng, callback) {
|
|
6343
6302
|
this.isLanguageChangingTo = lng;
|
|
6344
6303
|
const deferred = defer();
|
|
6345
6304
|
this.emit("languageChanging", lng);
|
|
6346
|
-
const setLngProps = (
|
|
6347
|
-
this.language =
|
|
6348
|
-
this.languages = this.services.languageUtils.toResolveHierarchy(
|
|
6305
|
+
const setLngProps = (l3) => {
|
|
6306
|
+
this.language = l3;
|
|
6307
|
+
this.languages = this.services.languageUtils.toResolveHierarchy(l3);
|
|
6349
6308
|
this.resolvedLanguage = void 0;
|
|
6350
|
-
this.setResolvedLanguage(
|
|
6309
|
+
this.setResolvedLanguage(l3);
|
|
6351
6310
|
};
|
|
6352
|
-
const done = (err2,
|
|
6353
|
-
if (
|
|
6311
|
+
const done = (err2, l3) => {
|
|
6312
|
+
if (l3) {
|
|
6354
6313
|
if (this.isLanguageChangingTo === lng) {
|
|
6355
|
-
setLngProps(
|
|
6356
|
-
this.translator.changeLanguage(
|
|
6314
|
+
setLngProps(l3);
|
|
6315
|
+
this.translator.changeLanguage(l3);
|
|
6357
6316
|
this.isLanguageChangingTo = void 0;
|
|
6358
|
-
this.emit("languageChanged",
|
|
6359
|
-
this.logger.log("languageChanged",
|
|
6317
|
+
this.emit("languageChanged", l3);
|
|
6318
|
+
this.logger.log("languageChanged", l3);
|
|
6360
6319
|
}
|
|
6361
6320
|
} else {
|
|
6362
6321
|
this.isLanguageChangingTo = void 0;
|
|
@@ -6367,16 +6326,16 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6367
6326
|
const setLng = (lngs) => {
|
|
6368
6327
|
if (!lng && !lngs && this.services.languageDetector) lngs = [];
|
|
6369
6328
|
const fl = isString(lngs) ? lngs : lngs && lngs[0];
|
|
6370
|
-
const
|
|
6371
|
-
if (
|
|
6329
|
+
const l3 = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
|
|
6330
|
+
if (l3) {
|
|
6372
6331
|
if (!this.language) {
|
|
6373
|
-
setLngProps(
|
|
6332
|
+
setLngProps(l3);
|
|
6374
6333
|
}
|
|
6375
|
-
if (!this.translator.language) this.translator.changeLanguage(
|
|
6376
|
-
this.services.languageDetector?.cacheUserLanguage?.(
|
|
6334
|
+
if (!this.translator.language) this.translator.changeLanguage(l3);
|
|
6335
|
+
this.services.languageDetector?.cacheUserLanguage?.(l3);
|
|
6377
6336
|
}
|
|
6378
|
-
this.loadResources(
|
|
6379
|
-
done(err2,
|
|
6337
|
+
this.loadResources(l3, (err2) => {
|
|
6338
|
+
done(err2, l3);
|
|
6380
6339
|
});
|
|
6381
6340
|
};
|
|
6382
6341
|
if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {
|
|
@@ -6394,36 +6353,36 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6394
6353
|
}
|
|
6395
6354
|
getFixedT(lng, ns, keyPrefix) {
|
|
6396
6355
|
const fixedT = (key, opts, ...rest) => {
|
|
6397
|
-
let
|
|
6356
|
+
let o3;
|
|
6398
6357
|
if (typeof opts !== "object") {
|
|
6399
|
-
|
|
6358
|
+
o3 = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));
|
|
6400
6359
|
} else {
|
|
6401
|
-
|
|
6360
|
+
o3 = {
|
|
6402
6361
|
...opts
|
|
6403
6362
|
};
|
|
6404
6363
|
}
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
if (
|
|
6364
|
+
o3.lng = o3.lng || fixedT.lng;
|
|
6365
|
+
o3.lngs = o3.lngs || fixedT.lngs;
|
|
6366
|
+
o3.ns = o3.ns || fixedT.ns;
|
|
6367
|
+
if (o3.keyPrefix !== "") o3.keyPrefix = o3.keyPrefix || keyPrefix || fixedT.keyPrefix;
|
|
6409
6368
|
const keySeparator = this.options.keySeparator || ".";
|
|
6410
6369
|
let resultKey;
|
|
6411
|
-
if (
|
|
6412
|
-
resultKey = key.map((
|
|
6413
|
-
if (typeof
|
|
6370
|
+
if (o3.keyPrefix && Array.isArray(key)) {
|
|
6371
|
+
resultKey = key.map((k3) => {
|
|
6372
|
+
if (typeof k3 === "function") k3 = keysFromSelector(k3, {
|
|
6414
6373
|
...this.options,
|
|
6415
6374
|
...opts
|
|
6416
6375
|
});
|
|
6417
|
-
return `${
|
|
6376
|
+
return `${o3.keyPrefix}${keySeparator}${k3}`;
|
|
6418
6377
|
});
|
|
6419
6378
|
} else {
|
|
6420
6379
|
if (typeof key === "function") key = keysFromSelector(key, {
|
|
6421
6380
|
...this.options,
|
|
6422
6381
|
...opts
|
|
6423
6382
|
});
|
|
6424
|
-
resultKey =
|
|
6383
|
+
resultKey = o3.keyPrefix ? `${o3.keyPrefix}${keySeparator}${key}` : key;
|
|
6425
6384
|
}
|
|
6426
|
-
return this.t(resultKey,
|
|
6385
|
+
return this.t(resultKey, o3);
|
|
6427
6386
|
};
|
|
6428
6387
|
if (isString(lng)) {
|
|
6429
6388
|
fixedT.lng = lng;
|
|
@@ -6456,8 +6415,8 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6456
6415
|
const fallbackLng = this.options ? this.options.fallbackLng : false;
|
|
6457
6416
|
const lastLng = this.languages[this.languages.length - 1];
|
|
6458
6417
|
if (lng.toLowerCase() === "cimode") return true;
|
|
6459
|
-
const loadNotPending = (
|
|
6460
|
-
const loadState = this.services.backendConnector.state[`${
|
|
6418
|
+
const loadNotPending = (l3, n) => {
|
|
6419
|
+
const loadState = this.services.backendConnector.state[`${l3}|${n}`];
|
|
6461
6420
|
return loadState === -1 || loadState === 0 || loadState === 2;
|
|
6462
6421
|
};
|
|
6463
6422
|
if (options.precheck) {
|
|
@@ -6505,9 +6464,9 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6505
6464
|
if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);
|
|
6506
6465
|
if (!lng) return "rtl";
|
|
6507
6466
|
try {
|
|
6508
|
-
const
|
|
6509
|
-
if (
|
|
6510
|
-
const ti =
|
|
6467
|
+
const l3 = new Intl.Locale(lng);
|
|
6468
|
+
if (l3 && l3.getTextInfo) {
|
|
6469
|
+
const ti = l3.getTextInfo();
|
|
6511
6470
|
if (ti && ti.direction) return ti.direction;
|
|
6512
6471
|
}
|
|
6513
6472
|
} catch (e2) {
|
|
@@ -6537,8 +6496,8 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6537
6496
|
clone.logger = clone.logger.clone(options);
|
|
6538
6497
|
}
|
|
6539
6498
|
const membersToCopy = ["store", "services", "language"];
|
|
6540
|
-
membersToCopy.forEach((
|
|
6541
|
-
clone[
|
|
6499
|
+
membersToCopy.forEach((m3) => {
|
|
6500
|
+
clone[m3] = this[m3];
|
|
6542
6501
|
});
|
|
6543
6502
|
clone.services = {
|
|
6544
6503
|
...this.services
|
|
@@ -6547,16 +6506,16 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
6547
6506
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
6548
6507
|
};
|
|
6549
6508
|
if (forkResourceStore) {
|
|
6550
|
-
const clonedData = Object.keys(this.store.data).reduce((prev2,
|
|
6551
|
-
prev2[
|
|
6552
|
-
...this.store.data[
|
|
6509
|
+
const clonedData = Object.keys(this.store.data).reduce((prev2, l3) => {
|
|
6510
|
+
prev2[l3] = {
|
|
6511
|
+
...this.store.data[l3]
|
|
6553
6512
|
};
|
|
6554
|
-
prev2[
|
|
6513
|
+
prev2[l3] = Object.keys(prev2[l3]).reduce((acc, n) => {
|
|
6555
6514
|
acc[n] = {
|
|
6556
|
-
...prev2[
|
|
6515
|
+
...prev2[l3][n]
|
|
6557
6516
|
};
|
|
6558
6517
|
return acc;
|
|
6559
|
-
}, prev2[
|
|
6518
|
+
}, prev2[l3]);
|
|
6560
6519
|
return prev2;
|
|
6561
6520
|
}, {});
|
|
6562
6521
|
clone.store = new ResourceStore(clonedData, mergedOptions);
|
|
@@ -6708,7 +6667,7 @@ var htmlEntities = {
|
|
|
6708
6667
|
"/": "/",
|
|
6709
6668
|
"/": "/"
|
|
6710
6669
|
};
|
|
6711
|
-
var unescapeHtmlEntity = (
|
|
6670
|
+
var unescapeHtmlEntity = (m3) => htmlEntities[m3];
|
|
6712
6671
|
var unescape = (text) => text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
6713
6672
|
|
|
6714
6673
|
// node_modules/react-i18next/dist/es/defaults.js
|
|
@@ -6995,7 +6954,7 @@ var commonEntities = {
|
|
|
6995
6954
|
"ℵ": "\u2135"
|
|
6996
6955
|
};
|
|
6997
6956
|
var entityPattern = new RegExp(Object.keys(commonEntities).map((entity) => entity.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|"), "g");
|
|
6998
|
-
var decodeHtmlEntities = (text) => text.replace(entityPattern, (match2) => commonEntities[match2]).replace(/&#(\d+);/g, (
|
|
6957
|
+
var decodeHtmlEntities = (text) => text.replace(entityPattern, (match2) => commonEntities[match2]).replace(/&#(\d+);/g, (_3, num) => String.fromCharCode(parseInt(num, 10))).replace(/&#x([0-9a-fA-F]+);/g, (_3, hex) => String.fromCharCode(parseInt(hex, 16)));
|
|
6999
6958
|
|
|
7000
6959
|
// node_modules/react-i18next/dist/es/IcuTransUtils/tokenizer.js
|
|
7001
6960
|
var tokenize2 = (translation) => {
|
|
@@ -7172,7 +7131,7 @@ function IcuTransWithoutContext({
|
|
|
7172
7131
|
});
|
|
7173
7132
|
return React2.createElement(React2.Fragment, {}, defaultTranslation);
|
|
7174
7133
|
}
|
|
7175
|
-
const t2 = tFromProps || i18n.t?.bind(i18n) || ((
|
|
7134
|
+
const t2 = tFromProps || i18n.t?.bind(i18n) || ((k3) => k3);
|
|
7176
7135
|
let namespaces = ns || t2.ns || i18n.options?.defaultNS;
|
|
7177
7136
|
namespaces = isString2(namespaces) ? [namespaces] : namespaces || ["translation"];
|
|
7178
7137
|
let mergedValues = values;
|
|
@@ -7253,10 +7212,10 @@ var useTranslation = (ns, props = {}) => {
|
|
|
7253
7212
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
7254
7213
|
if (!i18n) {
|
|
7255
7214
|
warnOnce(i18n, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
7256
|
-
const notReadyT = (
|
|
7215
|
+
const notReadyT = (k3, optsOrDefaultValue) => {
|
|
7257
7216
|
if (isString2(optsOrDefaultValue)) return optsOrDefaultValue;
|
|
7258
7217
|
if (isObject(optsOrDefaultValue) && isString2(optsOrDefaultValue.defaultValue)) return optsOrDefaultValue.defaultValue;
|
|
7259
|
-
return Array.isArray(
|
|
7218
|
+
return Array.isArray(k3) ? k3[k3.length - 1] : k3;
|
|
7260
7219
|
};
|
|
7261
7220
|
const retNotReady = [notReadyT, {}, false];
|
|
7262
7221
|
retNotReady.t = notReadyT;
|
|
@@ -7353,7 +7312,7 @@ import { useContext as useContext4 } from "react";
|
|
|
7353
7312
|
var en_default = {
|
|
7354
7313
|
translation: {
|
|
7355
7314
|
"A problem occurred while saving your payment method.": "A problem occurred while saving your payment method.",
|
|
7356
|
-
"Access to plan will end
|
|
7315
|
+
"Access to plan will end.": "Access to {{plan}} will end on {{date}}.",
|
|
7357
7316
|
Active: "Active",
|
|
7358
7317
|
Add: "Add",
|
|
7359
7318
|
"Add new payment method": "Add new payment method",
|
|
@@ -7371,7 +7330,7 @@ var en_default = {
|
|
|
7371
7330
|
"An unknown error occurred.": "An unknown error occurred.",
|
|
7372
7331
|
Billed: "Billed {{period}}",
|
|
7373
7332
|
"Cancel subscription": "Cancel subscription",
|
|
7374
|
-
"Cannot change to this plan.": "{{reason, list(
|
|
7333
|
+
"Cannot change to this plan.": "{{reason, list(type: 'conjunction')}} usage is over the limit.",
|
|
7375
7334
|
"Cannot downgrade entitlement": "Cannot downgrade to a quantity lower than current usage.",
|
|
7376
7335
|
"Card ending in": "\u{1F4B3} Card ending in {{value}}",
|
|
7377
7336
|
"Change add-on": "Change add-on",
|
|
@@ -7390,6 +7349,7 @@ var en_default = {
|
|
|
7390
7349
|
"Currently using": "Currently using {{quantity}} {{unit}}",
|
|
7391
7350
|
"Custom price": "Custom price",
|
|
7392
7351
|
Discount: "Discount",
|
|
7352
|
+
"Downgrade to plan scheduled": "Downgrade to {{plan}} scheduled",
|
|
7393
7353
|
"Due today": "Due today",
|
|
7394
7354
|
"Edit payment method": "Edit payment method",
|
|
7395
7355
|
Edit: "Edit",
|
|
@@ -7459,7 +7419,8 @@ var en_default = {
|
|
|
7459
7419
|
"Select quantities for add-ons": "Select quantities for add-ons",
|
|
7460
7420
|
Selected: "Selected",
|
|
7461
7421
|
"Selected plan or associated price is missing.": "Selected plan or associated price is missing.",
|
|
7462
|
-
"
|
|
7422
|
+
"Downgrade not permitted.": "Downgrade not permitted.",
|
|
7423
|
+
"Downgrade pending.": "Downgrade pending.",
|
|
7463
7424
|
"Session expired. Please refresh and try again.": "Session expired. Please refresh and try again.",
|
|
7464
7425
|
"Show details": "Show details",
|
|
7465
7426
|
"Start trial": "Start trial",
|
|
@@ -7507,6 +7468,7 @@ var en_default = {
|
|
|
7507
7468
|
"X units per use": "{{amount}} {{units}} per use",
|
|
7508
7469
|
"X time left in trial": "{{amount}} {{units}} left in trial",
|
|
7509
7470
|
"Yearly total": "Yearly total",
|
|
7471
|
+
"You will be downgraded at the end of your billing period.": "You will be downgraded to the {{plan}} plan at the end of your billing period on {{date}}.",
|
|
7510
7472
|
"You will retain access to your plan until the end of the billing period, on": "You will retain access to your plan until the end of the billing period, on",
|
|
7511
7473
|
"$X per unit": "{{cost}} per {{unit}}",
|
|
7512
7474
|
"$X per Y units": "{{cost}} per {{size}} {{units}}",
|
|
@@ -7545,6 +7507,754 @@ instance.use(initReactI18next).init({
|
|
|
7545
7507
|
// node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
|
|
7546
7508
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7547
7509
|
|
|
7510
|
+
// node_modules/@schematichq/schematic-icons/node_modules/styled-components/dist/styled-components.browser.esm.js
|
|
7511
|
+
import r2, { createElement as o2 } from "react";
|
|
7512
|
+
var a2 = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
|
|
7513
|
+
var c2 = "active";
|
|
7514
|
+
var u2 = "data-styled-version";
|
|
7515
|
+
var l2 = "6.3.9";
|
|
7516
|
+
var d2 = "/*!sc*/\n";
|
|
7517
|
+
var h2 = "undefined" != typeof window && "undefined" != typeof document;
|
|
7518
|
+
var p2 = void 0 === r2.createContext;
|
|
7519
|
+
var f = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : true);
|
|
7520
|
+
var m2 = {};
|
|
7521
|
+
var y2 = /invalid hook call/i;
|
|
7522
|
+
var v2 = /* @__PURE__ */ new Set();
|
|
7523
|
+
var g2 = function(t2, n) {
|
|
7524
|
+
if (true) {
|
|
7525
|
+
if (p2) return;
|
|
7526
|
+
var o3 = n ? ' with the id of "'.concat(n, '"') : "", s = "The component ".concat(t2).concat(o3, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
7527
|
+
try {
|
|
7528
|
+
var a3 = true;
|
|
7529
|
+
console.error = function(t3) {
|
|
7530
|
+
for (var n2 = [], r3 = 1; r3 < arguments.length; r3++) n2[r3 - 1] = arguments[r3];
|
|
7531
|
+
y2.test(t3) ? (a3 = false, v2.delete(s)) : i.apply(void 0, __spreadArray([t3], n2, false));
|
|
7532
|
+
}, "function" == typeof r2.useState && r2.useState(null), a3 && !v2.has(s) && (console.warn(s), v2.add(s));
|
|
7533
|
+
} catch (e2) {
|
|
7534
|
+
y2.test(e2.message) && v2.delete(s);
|
|
7535
|
+
} finally {
|
|
7536
|
+
console.error = i;
|
|
7537
|
+
}
|
|
7538
|
+
}
|
|
7539
|
+
};
|
|
7540
|
+
var S2 = Object.freeze([]);
|
|
7541
|
+
var w2 = Object.freeze({});
|
|
7542
|
+
function b2(e2, t2, n) {
|
|
7543
|
+
return void 0 === n && (n = w2), e2.theme !== n.theme && e2.theme || t2 || n.theme;
|
|
7544
|
+
}
|
|
7545
|
+
var N2 = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
|
|
7546
|
+
var E2 = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
|
|
7547
|
+
var C2 = /(^-|-$)/g;
|
|
7548
|
+
function A2(e2) {
|
|
7549
|
+
return e2.replace(E2, "-").replace(C2, "");
|
|
7550
|
+
}
|
|
7551
|
+
var _2 = /(a)(d)/gi;
|
|
7552
|
+
var P2 = function(e2) {
|
|
7553
|
+
return String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
|
|
7554
|
+
};
|
|
7555
|
+
function I2(e2) {
|
|
7556
|
+
var t2, n = "";
|
|
7557
|
+
for (t2 = Math.abs(e2); t2 > 52; t2 = t2 / 52 | 0) n = P2(t2 % 52) + n;
|
|
7558
|
+
return (P2(t2 % 52) + n).replace(_2, "$1-$2");
|
|
7559
|
+
}
|
|
7560
|
+
var O2;
|
|
7561
|
+
var D2 = function(e2, t2) {
|
|
7562
|
+
for (var n = t2.length; n; ) e2 = 33 * e2 ^ t2.charCodeAt(--n);
|
|
7563
|
+
return e2;
|
|
7564
|
+
};
|
|
7565
|
+
var R2 = function(e2) {
|
|
7566
|
+
return D2(5381, e2);
|
|
7567
|
+
};
|
|
7568
|
+
function T2(e2) {
|
|
7569
|
+
return I2(R2(e2) >>> 0);
|
|
7570
|
+
}
|
|
7571
|
+
function x2(e2) {
|
|
7572
|
+
return "string" == typeof e2 && e2 || e2.displayName || e2.name || "Component";
|
|
7573
|
+
}
|
|
7574
|
+
function j2(e2) {
|
|
7575
|
+
return "string" == typeof e2 && e2.charAt(0) === e2.charAt(0).toLowerCase();
|
|
7576
|
+
}
|
|
7577
|
+
var k2 = "function" == typeof Symbol && Symbol.for;
|
|
7578
|
+
var M2 = k2 ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
|
|
7579
|
+
var V2 = k2 ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
|
|
7580
|
+
var F2 = { childContextTypes: true, contextType: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, getDerivedStateFromError: true, getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true };
|
|
7581
|
+
var G2 = { name: true, length: true, prototype: true, caller: true, callee: true, arguments: true, arity: true };
|
|
7582
|
+
var L2 = { $$typeof: true, compare: true, defaultProps: true, displayName: true, propTypes: true, type: true };
|
|
7583
|
+
var B2 = ((O2 = {})[V2] = { $$typeof: true, render: true, defaultProps: true, displayName: true, propTypes: true }, O2[M2] = L2, O2);
|
|
7584
|
+
function z2(e2) {
|
|
7585
|
+
return ("type" in (t2 = e2) && t2.type.$$typeof) === M2 ? L2 : "$$typeof" in e2 ? B2[e2.$$typeof] : F2;
|
|
7586
|
+
var t2;
|
|
7587
|
+
}
|
|
7588
|
+
var $2 = Object.defineProperty;
|
|
7589
|
+
var Y2 = Object.getOwnPropertyNames;
|
|
7590
|
+
var W2 = Object.getOwnPropertySymbols;
|
|
7591
|
+
var q2 = Object.getOwnPropertyDescriptor;
|
|
7592
|
+
var H2 = Object.getPrototypeOf;
|
|
7593
|
+
var U2 = Object.prototype;
|
|
7594
|
+
function J2(e2, t2, n) {
|
|
7595
|
+
if ("string" != typeof t2) {
|
|
7596
|
+
if (U2) {
|
|
7597
|
+
var r3 = H2(t2);
|
|
7598
|
+
r3 && r3 !== U2 && J2(e2, r3, n);
|
|
7599
|
+
}
|
|
7600
|
+
var o3 = Y2(t2);
|
|
7601
|
+
W2 && (o3 = o3.concat(W2(t2)));
|
|
7602
|
+
for (var s = z2(e2), i = z2(t2), a3 = 0; a3 < o3.length; ++a3) {
|
|
7603
|
+
var c3 = o3[a3];
|
|
7604
|
+
if (!(c3 in G2 || n && n[c3] || i && c3 in i || s && c3 in s)) {
|
|
7605
|
+
var u3 = q2(t2, c3);
|
|
7606
|
+
try {
|
|
7607
|
+
$2(e2, c3, u3);
|
|
7608
|
+
} catch (e3) {
|
|
7609
|
+
}
|
|
7610
|
+
}
|
|
7611
|
+
}
|
|
7612
|
+
}
|
|
7613
|
+
return e2;
|
|
7614
|
+
}
|
|
7615
|
+
function X2(e2) {
|
|
7616
|
+
return "function" == typeof e2;
|
|
7617
|
+
}
|
|
7618
|
+
function Z2(e2) {
|
|
7619
|
+
return "object" == typeof e2 && "styledComponentId" in e2;
|
|
7620
|
+
}
|
|
7621
|
+
function K2(e2, t2) {
|
|
7622
|
+
return e2 && t2 ? "".concat(e2, " ").concat(t2) : e2 || t2 || "";
|
|
7623
|
+
}
|
|
7624
|
+
function Q2(e2, t2) {
|
|
7625
|
+
return e2.join(t2 || "");
|
|
7626
|
+
}
|
|
7627
|
+
function ee2(e2) {
|
|
7628
|
+
return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
|
|
7629
|
+
}
|
|
7630
|
+
function te2(e2, t2, n) {
|
|
7631
|
+
if (void 0 === n && (n = false), !n && !ee2(e2) && !Array.isArray(e2)) return t2;
|
|
7632
|
+
if (Array.isArray(t2)) for (var r3 = 0; r3 < t2.length; r3++) e2[r3] = te2(e2[r3], t2[r3]);
|
|
7633
|
+
else if (ee2(t2)) for (var r3 in t2) e2[r3] = te2(e2[r3], t2[r3]);
|
|
7634
|
+
return e2;
|
|
7635
|
+
}
|
|
7636
|
+
function ne2(e2, t2) {
|
|
7637
|
+
Object.defineProperty(e2, "toString", { value: t2 });
|
|
7638
|
+
}
|
|
7639
|
+
var re2 = true ? { 1: "Cannot create styled-component for component: %s.\n\n", 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n", 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n", 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n", 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n", 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n", 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n', 9: "Missing document `<head>`\n\n", 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n", 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n", 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n", 14: 'ThemeProvider: "theme" prop is required.\n\n', 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n", 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n", 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
7640
|
+
function oe2() {
|
|
7641
|
+
for (var e2 = [], t2 = 0; t2 < arguments.length; t2++) e2[t2] = arguments[t2];
|
|
7642
|
+
for (var n = e2[0], r3 = [], o3 = 1, s = e2.length; o3 < s; o3 += 1) r3.push(e2[o3]);
|
|
7643
|
+
return r3.forEach(function(e3) {
|
|
7644
|
+
n = n.replace(/%[a-z]/, e3);
|
|
7645
|
+
}), n;
|
|
7646
|
+
}
|
|
7647
|
+
function se2(t2) {
|
|
7648
|
+
for (var n = [], r3 = 1; r3 < arguments.length; r3++) n[r3 - 1] = arguments[r3];
|
|
7649
|
+
return false ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t2, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(oe2.apply(void 0, __spreadArray([re2[t2]], n, false)).trim());
|
|
7650
|
+
}
|
|
7651
|
+
var ie2 = (function() {
|
|
7652
|
+
function e2(e3) {
|
|
7653
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e3, this._cGroup = 0, this._cIndex = 0;
|
|
7654
|
+
}
|
|
7655
|
+
return e2.prototype.indexOfGroup = function(e3) {
|
|
7656
|
+
if (e3 === this._cGroup) return this._cIndex;
|
|
7657
|
+
var t2 = this._cIndex;
|
|
7658
|
+
if (e3 > this._cGroup) for (var n = this._cGroup; n < e3; n++) t2 += this.groupSizes[n];
|
|
7659
|
+
else for (n = this._cGroup - 1; n >= e3; n--) t2 -= this.groupSizes[n];
|
|
7660
|
+
return this._cGroup = e3, this._cIndex = t2, t2;
|
|
7661
|
+
}, e2.prototype.insertRules = function(e3, t2) {
|
|
7662
|
+
if (e3 >= this.groupSizes.length) {
|
|
7663
|
+
for (var n = this.groupSizes, r3 = n.length, o3 = r3; e3 >= o3; ) if ((o3 <<= 1) < 0) throw se2(16, "".concat(e3));
|
|
7664
|
+
this.groupSizes = new Uint32Array(o3), this.groupSizes.set(n), this.length = o3;
|
|
7665
|
+
for (var s = r3; s < o3; s++) this.groupSizes[s] = 0;
|
|
7666
|
+
}
|
|
7667
|
+
for (var i = this.indexOfGroup(e3 + 1), a3 = 0, c3 = (s = 0, t2.length); s < c3; s++) this.tag.insertRule(i, t2[s]) && (this.groupSizes[e3]++, i++, a3++);
|
|
7668
|
+
a3 > 0 && this._cGroup > e3 && (this._cIndex += a3);
|
|
7669
|
+
}, e2.prototype.clearGroup = function(e3) {
|
|
7670
|
+
if (e3 < this.length) {
|
|
7671
|
+
var t2 = this.groupSizes[e3], n = this.indexOfGroup(e3), r3 = n + t2;
|
|
7672
|
+
this.groupSizes[e3] = 0;
|
|
7673
|
+
for (var o3 = n; o3 < r3; o3++) this.tag.deleteRule(n);
|
|
7674
|
+
t2 > 0 && this._cGroup > e3 && (this._cIndex -= t2);
|
|
7675
|
+
}
|
|
7676
|
+
}, e2.prototype.getGroup = function(e3) {
|
|
7677
|
+
var t2 = "";
|
|
7678
|
+
if (e3 >= this.length || 0 === this.groupSizes[e3]) return t2;
|
|
7679
|
+
for (var n = this.groupSizes[e3], r3 = this.indexOfGroup(e3), o3 = r3 + n, s = r3; s < o3; s++) t2 += this.tag.getRule(s) + d2;
|
|
7680
|
+
return t2;
|
|
7681
|
+
}, e2;
|
|
7682
|
+
})();
|
|
7683
|
+
var ae2 = 1 << 30;
|
|
7684
|
+
var ce2 = /* @__PURE__ */ new Map();
|
|
7685
|
+
var ue2 = /* @__PURE__ */ new Map();
|
|
7686
|
+
var le2 = 1;
|
|
7687
|
+
var de2 = function(e2) {
|
|
7688
|
+
if (ce2.has(e2)) return ce2.get(e2);
|
|
7689
|
+
for (; ue2.has(le2); ) le2++;
|
|
7690
|
+
var t2 = le2++;
|
|
7691
|
+
if ((0 | t2) < 0 || t2 > ae2) throw se2(16, "".concat(t2));
|
|
7692
|
+
return ce2.set(e2, t2), ue2.set(t2, e2), t2;
|
|
7693
|
+
};
|
|
7694
|
+
var he2 = function(e2, t2) {
|
|
7695
|
+
le2 = t2 + 1, ce2.set(e2, t2), ue2.set(t2, e2);
|
|
7696
|
+
};
|
|
7697
|
+
var pe2 = "style[".concat(a2, "][").concat(u2, '="').concat(l2, '"]');
|
|
7698
|
+
var fe2 = new RegExp("^".concat(a2, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'));
|
|
7699
|
+
var me2 = function(e2) {
|
|
7700
|
+
return "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
|
|
7701
|
+
};
|
|
7702
|
+
var ye2 = function(e2) {
|
|
7703
|
+
if (!e2) return document;
|
|
7704
|
+
if (me2(e2)) return e2;
|
|
7705
|
+
if ("getRootNode" in e2) {
|
|
7706
|
+
var t2 = e2.getRootNode();
|
|
7707
|
+
if (me2(t2)) return t2;
|
|
7708
|
+
}
|
|
7709
|
+
return document;
|
|
7710
|
+
};
|
|
7711
|
+
var ve2 = function(e2, t2, n) {
|
|
7712
|
+
for (var r3, o3 = n.split(","), s = 0, i = o3.length; s < i; s++) (r3 = o3[s]) && e2.registerName(t2, r3);
|
|
7713
|
+
};
|
|
7714
|
+
var ge2 = function(e2, t2) {
|
|
7715
|
+
for (var n, r3 = (null !== (n = t2.textContent) && void 0 !== n ? n : "").split(d2), o3 = [], s = 0, i = r3.length; s < i; s++) {
|
|
7716
|
+
var a3 = r3[s].trim();
|
|
7717
|
+
if (a3) {
|
|
7718
|
+
var c3 = a3.match(fe2);
|
|
7719
|
+
if (c3) {
|
|
7720
|
+
var u3 = 0 | parseInt(c3[1], 10), l3 = c3[2];
|
|
7721
|
+
0 !== u3 && (he2(l3, u3), ve2(e2, l3, c3[3]), e2.getTag().insertRules(u3, o3)), o3.length = 0;
|
|
7722
|
+
} else o3.push(a3);
|
|
7723
|
+
}
|
|
7724
|
+
}
|
|
7725
|
+
};
|
|
7726
|
+
var Se2 = function(e2) {
|
|
7727
|
+
for (var t2 = ye2(e2.options.target).querySelectorAll(pe2), n = 0, r3 = t2.length; n < r3; n++) {
|
|
7728
|
+
var o3 = t2[n];
|
|
7729
|
+
o3 && o3.getAttribute(a2) !== c2 && (ge2(e2, o3), o3.parentNode && o3.parentNode.removeChild(o3));
|
|
7730
|
+
}
|
|
7731
|
+
};
|
|
7732
|
+
function we2() {
|
|
7733
|
+
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
7734
|
+
}
|
|
7735
|
+
var be2 = function(e2) {
|
|
7736
|
+
var t2 = document.head, n = e2 || t2, r3 = document.createElement("style"), o3 = (function(e3) {
|
|
7737
|
+
var t3 = Array.from(e3.querySelectorAll("style[".concat(a2, "]")));
|
|
7738
|
+
return t3[t3.length - 1];
|
|
7739
|
+
})(n), s = void 0 !== o3 ? o3.nextSibling : null;
|
|
7740
|
+
r3.setAttribute(a2, c2), r3.setAttribute(u2, l2);
|
|
7741
|
+
var i = we2();
|
|
7742
|
+
return i && r3.setAttribute("nonce", i), n.insertBefore(r3, s), r3;
|
|
7743
|
+
};
|
|
7744
|
+
var Ne2 = (function() {
|
|
7745
|
+
function e2(e3) {
|
|
7746
|
+
this.element = be2(e3), this.element.appendChild(document.createTextNode("")), this.sheet = (function(e4) {
|
|
7747
|
+
var t2;
|
|
7748
|
+
if (e4.sheet) return e4.sheet;
|
|
7749
|
+
for (var n = null !== (t2 = e4.getRootNode().styleSheets) && void 0 !== t2 ? t2 : document.styleSheets, r3 = 0, o3 = n.length; r3 < o3; r3++) {
|
|
7750
|
+
var s = n[r3];
|
|
7751
|
+
if (s.ownerNode === e4) return s;
|
|
7752
|
+
}
|
|
7753
|
+
throw se2(17);
|
|
7754
|
+
})(this.element), this.length = 0;
|
|
7755
|
+
}
|
|
7756
|
+
return e2.prototype.insertRule = function(e3, t2) {
|
|
7757
|
+
try {
|
|
7758
|
+
return this.sheet.insertRule(t2, e3), this.length++, true;
|
|
7759
|
+
} catch (e4) {
|
|
7760
|
+
return false;
|
|
7761
|
+
}
|
|
7762
|
+
}, e2.prototype.deleteRule = function(e3) {
|
|
7763
|
+
this.sheet.deleteRule(e3), this.length--;
|
|
7764
|
+
}, e2.prototype.getRule = function(e3) {
|
|
7765
|
+
var t2 = this.sheet.cssRules[e3];
|
|
7766
|
+
return t2 && t2.cssText ? t2.cssText : "";
|
|
7767
|
+
}, e2;
|
|
7768
|
+
})();
|
|
7769
|
+
var Ee2 = (function() {
|
|
7770
|
+
function e2(e3) {
|
|
7771
|
+
this.element = be2(e3), this.nodes = this.element.childNodes, this.length = 0;
|
|
7772
|
+
}
|
|
7773
|
+
return e2.prototype.insertRule = function(e3, t2) {
|
|
7774
|
+
if (e3 <= this.length && e3 >= 0) {
|
|
7775
|
+
var n = document.createTextNode(t2);
|
|
7776
|
+
return this.element.insertBefore(n, this.nodes[e3] || null), this.length++, true;
|
|
7777
|
+
}
|
|
7778
|
+
return false;
|
|
7779
|
+
}, e2.prototype.deleteRule = function(e3) {
|
|
7780
|
+
this.element.removeChild(this.nodes[e3]), this.length--;
|
|
7781
|
+
}, e2.prototype.getRule = function(e3) {
|
|
7782
|
+
return e3 < this.length ? this.nodes[e3].textContent : "";
|
|
7783
|
+
}, e2;
|
|
7784
|
+
})();
|
|
7785
|
+
var Ce2 = (function() {
|
|
7786
|
+
function e2(e3) {
|
|
7787
|
+
this.rules = [], this.length = 0;
|
|
7788
|
+
}
|
|
7789
|
+
return e2.prototype.insertRule = function(e3, t2) {
|
|
7790
|
+
return e3 <= this.length && (e3 === this.length ? this.rules.push(t2) : this.rules.splice(e3, 0, t2), this.length++, true);
|
|
7791
|
+
}, e2.prototype.deleteRule = function(e3) {
|
|
7792
|
+
this.rules.splice(e3, 1), this.length--;
|
|
7793
|
+
}, e2.prototype.getRule = function(e3) {
|
|
7794
|
+
return e3 < this.length ? this.rules[e3] : "";
|
|
7795
|
+
}, e2;
|
|
7796
|
+
})();
|
|
7797
|
+
var Ae2 = h2;
|
|
7798
|
+
var _e2 = { isServer: !h2, useCSSOMInjection: !f };
|
|
7799
|
+
var Pe2 = (function() {
|
|
7800
|
+
function e2(e3, n, r3) {
|
|
7801
|
+
void 0 === e3 && (e3 = w2), void 0 === n && (n = {});
|
|
7802
|
+
var o3 = this;
|
|
7803
|
+
this.options = __assign(__assign({}, _e2), e3), this.gs = n, this.names = new Map(r3), this.server = !!e3.isServer, !this.server && h2 && Ae2 && (Ae2 = false, Se2(this)), ne2(this, function() {
|
|
7804
|
+
return (function(e4) {
|
|
7805
|
+
for (var t2 = e4.getTag(), n2 = t2.length, r4 = "", o4 = function(n3) {
|
|
7806
|
+
var o5 = (function(e5) {
|
|
7807
|
+
return ue2.get(e5);
|
|
7808
|
+
})(n3);
|
|
7809
|
+
if (void 0 === o5) return "continue";
|
|
7810
|
+
var s2 = e4.names.get(o5);
|
|
7811
|
+
if (void 0 === s2 || !s2.size) return "continue";
|
|
7812
|
+
var i = t2.getGroup(n3);
|
|
7813
|
+
if (0 === i.length) return "continue";
|
|
7814
|
+
var c3 = a2 + ".g" + n3 + '[id="' + o5 + '"]', u3 = "";
|
|
7815
|
+
s2.forEach(function(e5) {
|
|
7816
|
+
e5.length > 0 && (u3 += e5 + ",");
|
|
7817
|
+
}), r4 += i + c3 + '{content:"' + u3 + '"}' + d2;
|
|
7818
|
+
}, s = 0; s < n2; s++) o4(s);
|
|
7819
|
+
return r4;
|
|
7820
|
+
})(o3);
|
|
7821
|
+
});
|
|
7822
|
+
}
|
|
7823
|
+
return e2.registerId = function(e3) {
|
|
7824
|
+
return de2(e3);
|
|
7825
|
+
}, e2.prototype.rehydrate = function() {
|
|
7826
|
+
!this.server && h2 && Se2(this);
|
|
7827
|
+
}, e2.prototype.reconstructWithOptions = function(n, r3) {
|
|
7828
|
+
void 0 === r3 && (r3 = true);
|
|
7829
|
+
var o3 = new e2(__assign(__assign({}, this.options), n), this.gs, r3 && this.names || void 0);
|
|
7830
|
+
return !this.server && h2 && n.target !== this.options.target && ye2(this.options.target) !== ye2(n.target) && Se2(o3), o3;
|
|
7831
|
+
}, e2.prototype.allocateGSInstance = function(e3) {
|
|
7832
|
+
return this.gs[e3] = (this.gs[e3] || 0) + 1;
|
|
7833
|
+
}, e2.prototype.getTag = function() {
|
|
7834
|
+
return this.tag || (this.tag = (e3 = (function(e4) {
|
|
7835
|
+
var t2 = e4.useCSSOMInjection, n = e4.target;
|
|
7836
|
+
return e4.isServer ? new Ce2(n) : t2 ? new Ne2(n) : new Ee2(n);
|
|
7837
|
+
})(this.options), new ie2(e3)));
|
|
7838
|
+
var e3;
|
|
7839
|
+
}, e2.prototype.hasNameForId = function(e3, t2) {
|
|
7840
|
+
var n, r3;
|
|
7841
|
+
return null !== (r3 = null === (n = this.names.get(e3)) || void 0 === n ? void 0 : n.has(t2)) && void 0 !== r3 && r3;
|
|
7842
|
+
}, e2.prototype.registerName = function(e3, t2) {
|
|
7843
|
+
de2(e3);
|
|
7844
|
+
var n = this.names.get(e3);
|
|
7845
|
+
n ? n.add(t2) : this.names.set(e3, /* @__PURE__ */ new Set([t2]));
|
|
7846
|
+
}, e2.prototype.insertRules = function(e3, t2, n) {
|
|
7847
|
+
this.registerName(e3, t2), this.getTag().insertRules(de2(e3), n);
|
|
7848
|
+
}, e2.prototype.clearNames = function(e3) {
|
|
7849
|
+
this.names.has(e3) && this.names.get(e3).clear();
|
|
7850
|
+
}, e2.prototype.clearRules = function(e3) {
|
|
7851
|
+
this.getTag().clearGroup(de2(e3)), this.clearNames(e3);
|
|
7852
|
+
}, e2.prototype.clearTag = function() {
|
|
7853
|
+
this.tag = void 0;
|
|
7854
|
+
}, e2;
|
|
7855
|
+
})();
|
|
7856
|
+
var Ie2 = /&/g;
|
|
7857
|
+
var Oe2 = 47;
|
|
7858
|
+
var De2 = 42;
|
|
7859
|
+
function Re2(e2) {
|
|
7860
|
+
if (-1 === e2.indexOf("}")) return false;
|
|
7861
|
+
for (var t2 = e2.length, n = 0, r3 = 0, o3 = false, s = 0; s < t2; s++) {
|
|
7862
|
+
var i = e2.charCodeAt(s);
|
|
7863
|
+
if (0 !== r3 || o3 || i !== Oe2 || e2.charCodeAt(s + 1) !== De2) if (o3) i === De2 && e2.charCodeAt(s + 1) === Oe2 && (o3 = false, s++);
|
|
7864
|
+
else if (34 !== i && 39 !== i || 0 !== s && 92 === e2.charCodeAt(s - 1)) {
|
|
7865
|
+
if (0 === r3) {
|
|
7866
|
+
if (123 === i) n++;
|
|
7867
|
+
else if (125 === i && --n < 0) return true;
|
|
7868
|
+
}
|
|
7869
|
+
} else 0 === r3 ? r3 = i : r3 === i && (r3 = 0);
|
|
7870
|
+
else o3 = true, s++;
|
|
7871
|
+
}
|
|
7872
|
+
return 0 !== n || 0 !== r3;
|
|
7873
|
+
}
|
|
7874
|
+
function Te2(e2, t2) {
|
|
7875
|
+
return e2.map(function(e3) {
|
|
7876
|
+
return "rule" === e3.type && (e3.value = "".concat(t2, " ").concat(e3.value), e3.value = e3.value.replaceAll(",", ",".concat(t2, " ")), e3.props = e3.props.map(function(e4) {
|
|
7877
|
+
return "".concat(t2, " ").concat(e4);
|
|
7878
|
+
})), Array.isArray(e3.children) && "@keyframes" !== e3.type && (e3.children = Te2(e3.children, t2)), e3;
|
|
7879
|
+
});
|
|
7880
|
+
}
|
|
7881
|
+
function xe2(e2) {
|
|
7882
|
+
var t2, n, r3, o3 = void 0 === e2 ? w2 : e2, i = o3.options, a3 = void 0 === i ? w2 : i, c3 = o3.plugins, u3 = void 0 === c3 ? S2 : c3, l3 = function(e3, r4, o4) {
|
|
7883
|
+
return o4.startsWith(n) && o4.endsWith(n) && o4.replaceAll(n, "").length > 0 ? ".".concat(t2) : e3;
|
|
7884
|
+
}, d3 = u3.slice();
|
|
7885
|
+
d3.push(function(e3) {
|
|
7886
|
+
e3.type === RULESET && e3.value.includes("&") && (r3 || (r3 = new RegExp("\\".concat(n, "\\b"), "g")), e3.props[0] = e3.props[0].replace(Ie2, n).replace(r3, l3));
|
|
7887
|
+
}), a3.prefix && d3.push(prefixer), d3.push(stringify);
|
|
7888
|
+
var h3 = [], p3 = middleware(d3.concat(rulesheet(function(e3) {
|
|
7889
|
+
return h3.push(e3);
|
|
7890
|
+
}))), f2 = function(e3, o4, i2, c4) {
|
|
7891
|
+
void 0 === o4 && (o4 = ""), void 0 === i2 && (i2 = ""), void 0 === c4 && (c4 = "&"), t2 = c4, n = o4, r3 = void 0;
|
|
7892
|
+
var u4 = (function(e4) {
|
|
7893
|
+
if (!Re2(e4)) return e4;
|
|
7894
|
+
for (var t3 = e4.length, n2 = "", r4 = 0, o5 = 0, s = 0, i3 = false, a4 = 0; a4 < t3; a4++) {
|
|
7895
|
+
var c5 = e4.charCodeAt(a4);
|
|
7896
|
+
if (0 !== s || i3 || c5 !== Oe2 || e4.charCodeAt(a4 + 1) !== De2) if (i3) c5 === De2 && e4.charCodeAt(a4 + 1) === Oe2 && (i3 = false, a4++);
|
|
7897
|
+
else if (34 !== c5 && 39 !== c5 || 0 !== a4 && 92 === e4.charCodeAt(a4 - 1)) {
|
|
7898
|
+
if (0 === s) if (123 === c5) o5++;
|
|
7899
|
+
else if (125 === c5) {
|
|
7900
|
+
if (--o5 < 0) {
|
|
7901
|
+
for (var u5 = a4 + 1; u5 < t3; ) {
|
|
7902
|
+
var l5 = e4.charCodeAt(u5);
|
|
7903
|
+
if (59 === l5 || 10 === l5) break;
|
|
7904
|
+
u5++;
|
|
7905
|
+
}
|
|
7906
|
+
u5 < t3 && 59 === e4.charCodeAt(u5) && u5++, o5 = 0, a4 = u5 - 1, r4 = u5;
|
|
7907
|
+
continue;
|
|
7908
|
+
}
|
|
7909
|
+
0 === o5 && (n2 += e4.substring(r4, a4 + 1), r4 = a4 + 1);
|
|
7910
|
+
} else 59 === c5 && 0 === o5 && (n2 += e4.substring(r4, a4 + 1), r4 = a4 + 1);
|
|
7911
|
+
} else 0 === s ? s = c5 : s === c5 && (s = 0);
|
|
7912
|
+
else i3 = true, a4++;
|
|
7913
|
+
}
|
|
7914
|
+
if (r4 < t3) {
|
|
7915
|
+
var d4 = e4.substring(r4);
|
|
7916
|
+
Re2(d4) || (n2 += d4);
|
|
7917
|
+
}
|
|
7918
|
+
return n2;
|
|
7919
|
+
})((function(e4) {
|
|
7920
|
+
if (-1 === e4.indexOf("//")) return e4;
|
|
7921
|
+
for (var t3 = e4.length, n2 = [], r4 = 0, o5 = 0, s = 0, i3 = 0; o5 < t3; ) {
|
|
7922
|
+
var a4 = e4.charCodeAt(o5);
|
|
7923
|
+
if (34 !== a4 && 39 !== a4 || 0 !== o5 && 92 === e4.charCodeAt(o5 - 1)) if (0 === s) if (a4 === Oe2 && o5 + 1 < t3 && e4.charCodeAt(o5 + 1) === De2) {
|
|
7924
|
+
for (o5 += 2; o5 + 1 < t3 && (e4.charCodeAt(o5) !== De2 || e4.charCodeAt(o5 + 1) !== Oe2); ) o5++;
|
|
7925
|
+
o5 += 2;
|
|
7926
|
+
} else if (40 === a4 && o5 >= 3 && 108 == (32 | e4.charCodeAt(o5 - 1)) && 114 == (32 | e4.charCodeAt(o5 - 2)) && 117 == (32 | e4.charCodeAt(o5 - 3))) i3 = 1, o5++;
|
|
7927
|
+
else if (i3 > 0) 41 === a4 ? i3-- : 40 === a4 && i3++, o5++;
|
|
7928
|
+
else if (a4 === De2 && o5 + 1 < t3 && e4.charCodeAt(o5 + 1) === Oe2) o5 > r4 && n2.push(e4.substring(r4, o5)), r4 = o5 += 2;
|
|
7929
|
+
else if (a4 === Oe2 && o5 + 1 < t3 && e4.charCodeAt(o5 + 1) === Oe2) {
|
|
7930
|
+
for (o5 > r4 && n2.push(e4.substring(r4, o5)); o5 < t3 && 10 !== e4.charCodeAt(o5); ) o5++;
|
|
7931
|
+
r4 = o5;
|
|
7932
|
+
} else o5++;
|
|
7933
|
+
else o5++;
|
|
7934
|
+
else 0 === s ? s = a4 : s === a4 && (s = 0), o5++;
|
|
7935
|
+
}
|
|
7936
|
+
return 0 === r4 ? e4 : (r4 < t3 && n2.push(e4.substring(r4)), n2.join(""));
|
|
7937
|
+
})(e3)), l4 = compile(i2 || o4 ? "".concat(i2, " ").concat(o4, " { ").concat(u4, " }") : u4);
|
|
7938
|
+
return a3.namespace && (l4 = Te2(l4, a3.namespace)), h3 = [], serialize(l4, p3), h3;
|
|
7939
|
+
};
|
|
7940
|
+
return f2.hash = u3.length ? u3.reduce(function(e3, t3) {
|
|
7941
|
+
return t3.name || se2(15), D2(e3, t3.name);
|
|
7942
|
+
}, 5381).toString() : "", f2;
|
|
7943
|
+
}
|
|
7944
|
+
var je2 = new Pe2();
|
|
7945
|
+
var ke2 = xe2();
|
|
7946
|
+
var Me2 = { shouldForwardProp: void 0, styleSheet: je2, stylis: ke2 };
|
|
7947
|
+
var Ve2 = p2 ? { Provider: function(e2) {
|
|
7948
|
+
return e2.children;
|
|
7949
|
+
}, Consumer: function(e2) {
|
|
7950
|
+
return (0, e2.children)(Me2);
|
|
7951
|
+
} } : r2.createContext(Me2);
|
|
7952
|
+
var Fe2 = Ve2.Consumer;
|
|
7953
|
+
var Ge2 = p2 ? { Provider: function(e2) {
|
|
7954
|
+
return e2.children;
|
|
7955
|
+
}, Consumer: function(e2) {
|
|
7956
|
+
return (0, e2.children)(void 0);
|
|
7957
|
+
} } : r2.createContext(void 0);
|
|
7958
|
+
function Le2() {
|
|
7959
|
+
return p2 ? Me2 : r2.useContext(Ve2);
|
|
7960
|
+
}
|
|
7961
|
+
function Be2(e2) {
|
|
7962
|
+
if (p2 || !r2.useMemo) return e2.children;
|
|
7963
|
+
var t2 = Le2().styleSheet, n = r2.useMemo(function() {
|
|
7964
|
+
var n2 = t2;
|
|
7965
|
+
return e2.sheet ? n2 = e2.sheet : e2.target && (n2 = n2.reconstructWithOptions({ target: e2.target }, false)), e2.disableCSSOMInjection && (n2 = n2.reconstructWithOptions({ useCSSOMInjection: false })), n2;
|
|
7966
|
+
}, [e2.disableCSSOMInjection, e2.sheet, e2.target, t2]), o3 = r2.useMemo(function() {
|
|
7967
|
+
return xe2({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins });
|
|
7968
|
+
}, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins]), s = r2.useMemo(function() {
|
|
7969
|
+
return { shouldForwardProp: e2.shouldForwardProp, styleSheet: n, stylis: o3 };
|
|
7970
|
+
}, [e2.shouldForwardProp, n, o3]);
|
|
7971
|
+
return r2.createElement(Ve2.Provider, { value: s }, r2.createElement(Ge2.Provider, { value: o3 }, e2.children));
|
|
7972
|
+
}
|
|
7973
|
+
var ze2 = (function() {
|
|
7974
|
+
function e2(e3, t2) {
|
|
7975
|
+
var n = this;
|
|
7976
|
+
this.inject = function(e4, t3) {
|
|
7977
|
+
void 0 === t3 && (t3 = ke2);
|
|
7978
|
+
var r3 = n.name + t3.hash;
|
|
7979
|
+
e4.hasNameForId(n.id, r3) || e4.insertRules(n.id, r3, t3(n.rules, r3, "@keyframes"));
|
|
7980
|
+
}, this.name = e3, this.id = "sc-keyframes-".concat(e3), this.rules = t2, ne2(this, function() {
|
|
7981
|
+
throw se2(12, String(n.name));
|
|
7982
|
+
});
|
|
7983
|
+
}
|
|
7984
|
+
return e2.prototype.getName = function(e3) {
|
|
7985
|
+
return void 0 === e3 && (e3 = ke2), this.name + e3.hash;
|
|
7986
|
+
}, e2;
|
|
7987
|
+
})();
|
|
7988
|
+
function $e2(e2, t2) {
|
|
7989
|
+
return null == t2 || "boolean" == typeof t2 || "" === t2 ? "" : "number" != typeof t2 || 0 === t2 || e2 in unitlessKeys || e2.startsWith("--") ? String(t2).trim() : "".concat(t2, "px");
|
|
7990
|
+
}
|
|
7991
|
+
var Ye2 = function(e2) {
|
|
7992
|
+
return e2 >= "A" && e2 <= "Z";
|
|
7993
|
+
};
|
|
7994
|
+
function We2(e2) {
|
|
7995
|
+
for (var t2 = "", n = 0; n < e2.length; n++) {
|
|
7996
|
+
var r3 = e2[n];
|
|
7997
|
+
if (1 === n && "-" === r3 && "-" === e2[0]) return e2;
|
|
7998
|
+
Ye2(r3) ? t2 += "-" + r3.toLowerCase() : t2 += r3;
|
|
7999
|
+
}
|
|
8000
|
+
return t2.startsWith("ms-") ? "-" + t2 : t2;
|
|
8001
|
+
}
|
|
8002
|
+
var qe2 = function(e2) {
|
|
8003
|
+
return null == e2 || false === e2 || "" === e2;
|
|
8004
|
+
};
|
|
8005
|
+
var He2 = function(t2) {
|
|
8006
|
+
var n = [];
|
|
8007
|
+
for (var r3 in t2) {
|
|
8008
|
+
var o3 = t2[r3];
|
|
8009
|
+
t2.hasOwnProperty(r3) && !qe2(o3) && (Array.isArray(o3) && o3.isCss || X2(o3) ? n.push("".concat(We2(r3), ":"), o3, ";") : ee2(o3) ? n.push.apply(n, __spreadArray(__spreadArray(["".concat(r3, " {")], He2(o3), false), ["}"], false)) : n.push("".concat(We2(r3), ": ").concat($e2(r3, o3), ";")));
|
|
8010
|
+
}
|
|
8011
|
+
return n;
|
|
8012
|
+
};
|
|
8013
|
+
function Ue2(e2, t2, n, r3, o3) {
|
|
8014
|
+
if (void 0 === o3 && (o3 = []), "string" == typeof e2) return e2 && o3.push(e2), o3;
|
|
8015
|
+
if (qe2(e2)) return o3;
|
|
8016
|
+
if (Z2(e2)) return o3.push(".".concat(e2.styledComponentId)), o3;
|
|
8017
|
+
if (X2(e2)) {
|
|
8018
|
+
if (!X2(i = e2) || i.prototype && i.prototype.isReactComponent || !t2) return o3.push(e2), o3;
|
|
8019
|
+
var s = e2(t2);
|
|
8020
|
+
return "object" != typeof s || Array.isArray(s) || s instanceof ze2 || ee2(s) || null === s || console.error("".concat(x2(e2), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Ue2(s, t2, n, r3, o3);
|
|
8021
|
+
}
|
|
8022
|
+
var i;
|
|
8023
|
+
if (e2 instanceof ze2) return n ? (e2.inject(n, r3), o3.push(e2.getName(r3))) : o3.push(e2), o3;
|
|
8024
|
+
if (ee2(e2)) {
|
|
8025
|
+
for (var a3 = He2(e2), c3 = 0; c3 < a3.length; c3++) o3.push(a3[c3]);
|
|
8026
|
+
return o3;
|
|
8027
|
+
}
|
|
8028
|
+
if (!Array.isArray(e2)) return o3.push(e2.toString()), o3;
|
|
8029
|
+
for (c3 = 0; c3 < e2.length; c3++) Ue2(e2[c3], t2, n, r3, o3);
|
|
8030
|
+
return o3;
|
|
8031
|
+
}
|
|
8032
|
+
function Je2(e2) {
|
|
8033
|
+
for (var t2 = 0; t2 < e2.length; t2 += 1) {
|
|
8034
|
+
var n = e2[t2];
|
|
8035
|
+
if (X2(n) && !Z2(n)) return false;
|
|
8036
|
+
}
|
|
8037
|
+
return true;
|
|
8038
|
+
}
|
|
8039
|
+
var Xe2 = R2(l2);
|
|
8040
|
+
var Ze2 = (function() {
|
|
8041
|
+
function e2(e3, t2, n) {
|
|
8042
|
+
this.rules = e3, this.staticRulesId = "", this.isStatic = false, this.componentId = t2, this.baseHash = D2(Xe2, t2), this.baseStyle = n, Pe2.registerId(t2);
|
|
8043
|
+
}
|
|
8044
|
+
return e2.prototype.generateAndInjectStyles = function(e3, t2, n) {
|
|
8045
|
+
var r3 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e3, t2, n).className : "";
|
|
8046
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && t2.hasNameForId(this.componentId, this.staticRulesId)) r3 = K2(r3, this.staticRulesId);
|
|
8047
|
+
else {
|
|
8048
|
+
var o3 = Q2(Ue2(this.rules, e3, t2, n)), s = I2(D2(this.baseHash, o3) >>> 0);
|
|
8049
|
+
if (!t2.hasNameForId(this.componentId, s)) {
|
|
8050
|
+
var i = n(o3, ".".concat(s), void 0, this.componentId);
|
|
8051
|
+
t2.insertRules(this.componentId, s, i);
|
|
8052
|
+
}
|
|
8053
|
+
r3 = K2(r3, s), this.staticRulesId = s;
|
|
8054
|
+
}
|
|
8055
|
+
else {
|
|
8056
|
+
for (var a3 = D2(this.baseHash, n.hash), c3 = "", u3 = 0; u3 < this.rules.length; u3++) {
|
|
8057
|
+
var l3 = this.rules[u3];
|
|
8058
|
+
if ("string" == typeof l3) c3 += l3, a3 = D2(a3, l3);
|
|
8059
|
+
else if (l3) {
|
|
8060
|
+
var d3 = Q2(Ue2(l3, e3, t2, n));
|
|
8061
|
+
a3 = D2(D2(a3, String(u3)), d3), c3 += d3;
|
|
8062
|
+
}
|
|
8063
|
+
}
|
|
8064
|
+
if (c3) {
|
|
8065
|
+
var h3 = I2(a3 >>> 0);
|
|
8066
|
+
if (!t2.hasNameForId(this.componentId, h3)) {
|
|
8067
|
+
var p3 = n(c3, ".".concat(h3), void 0, this.componentId);
|
|
8068
|
+
t2.insertRules(this.componentId, h3, p3);
|
|
8069
|
+
}
|
|
8070
|
+
r3 = K2(r3, h3);
|
|
8071
|
+
}
|
|
8072
|
+
}
|
|
8073
|
+
return { className: r3, css: "undefined" == typeof window ? t2.getTag().getGroup(de2(this.componentId)) : "" };
|
|
8074
|
+
}, e2;
|
|
8075
|
+
})();
|
|
8076
|
+
var Ke = p2 ? { Provider: function(e2) {
|
|
8077
|
+
return e2.children;
|
|
8078
|
+
}, Consumer: function(e2) {
|
|
8079
|
+
return (0, e2.children)(void 0);
|
|
8080
|
+
} } : r2.createContext(void 0);
|
|
8081
|
+
var Qe2 = Ke.Consumer;
|
|
8082
|
+
var nt2 = {};
|
|
8083
|
+
var rt2 = /* @__PURE__ */ new Set();
|
|
8084
|
+
function ot2(e2, s, i) {
|
|
8085
|
+
var a3 = Z2(e2), c3 = e2, u3 = !j2(e2), d3 = s.attrs, h3 = void 0 === d3 ? S2 : d3, f2 = s.componentId, m3 = void 0 === f2 ? (function(e3, t2) {
|
|
8086
|
+
var n = "string" != typeof e3 ? "sc" : A2(e3);
|
|
8087
|
+
nt2[n] = (nt2[n] || 0) + 1;
|
|
8088
|
+
var r3 = "".concat(n, "-").concat(T2(l2 + n + nt2[n]));
|
|
8089
|
+
return t2 ? "".concat(t2, "-").concat(r3) : r3;
|
|
8090
|
+
})(s.displayName, s.parentComponentId) : f2, y3 = s.displayName, v3 = void 0 === y3 ? (function(e3) {
|
|
8091
|
+
return j2(e3) ? "styled.".concat(e3) : "Styled(".concat(x2(e3), ")");
|
|
8092
|
+
})(e2) : y3, E3 = s.displayName && s.componentId ? "".concat(A2(s.displayName), "-").concat(s.componentId) : s.componentId || m3, C3 = a3 && c3.attrs ? c3.attrs.concat(h3).filter(Boolean) : h3, _3 = s.shouldForwardProp;
|
|
8093
|
+
if (a3 && c3.shouldForwardProp) {
|
|
8094
|
+
var P3 = c3.shouldForwardProp;
|
|
8095
|
+
if (s.shouldForwardProp) {
|
|
8096
|
+
var I3 = s.shouldForwardProp;
|
|
8097
|
+
_3 = function(e3, t2) {
|
|
8098
|
+
return P3(e3, t2) && I3(e3, t2);
|
|
8099
|
+
};
|
|
8100
|
+
} else _3 = P3;
|
|
8101
|
+
}
|
|
8102
|
+
var O3 = new Ze2(i, E3, a3 ? c3.componentStyle : void 0);
|
|
8103
|
+
function D3(e3, s2) {
|
|
8104
|
+
return (function(e4, s3, i2) {
|
|
8105
|
+
var a4 = e4.attrs, c4 = e4.componentStyle, u4 = e4.defaultProps, l3 = e4.foldedComponentIds, d4 = e4.styledComponentId, h4 = e4.target, f3 = p2 ? void 0 : r2.useContext(Ke), m4 = Le2(), y4 = e4.shouldForwardProp || m4.shouldForwardProp;
|
|
8106
|
+
r2.useDebugValue && r2.useDebugValue(d4);
|
|
8107
|
+
var v5 = b2(s3, f3, u4) || (p2 ? void 0 : w2), g3 = (function(e5, n, r3) {
|
|
8108
|
+
for (var o3, s4 = __assign(__assign({}, n), { className: void 0, theme: r3 }), i3 = 0; i3 < e5.length; i3 += 1) {
|
|
8109
|
+
var a5 = X2(o3 = e5[i3]) ? o3(s4) : o3;
|
|
8110
|
+
for (var c5 in a5) "className" === c5 ? s4.className = K2(s4.className, a5[c5]) : "style" === c5 ? s4.style = __assign(__assign({}, s4.style), a5[c5]) : s4[c5] = a5[c5];
|
|
8111
|
+
}
|
|
8112
|
+
return "className" in n && "string" == typeof n.className && (s4.className = K2(s4.className, n.className)), s4;
|
|
8113
|
+
})(a4, s3, v5), S3 = g3.as || h4, E4 = {};
|
|
8114
|
+
for (var C4 in g3) void 0 === g3[C4] || "$" === C4[0] || "as" === C4 || "theme" === C4 && g3.theme === v5 || ("forwardedAs" === C4 ? E4.as = g3.forwardedAs : y4 && !y4(C4, S3) || (E4[C4] = g3[C4], y4 || false || isPropValid(C4) || rt2.has(C4) || !N2.has(S3) || (rt2.add(C4), console.warn('styled-components: it looks like an unknown prop "'.concat(C4, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
8115
|
+
var A3 = (function(e5, t2) {
|
|
8116
|
+
var n = Le2(), o3 = e5.generateAndInjectStyles(t2, n.styleSheet, n.stylis);
|
|
8117
|
+
return r2.useDebugValue && r2.useDebugValue(o3.className), o3;
|
|
8118
|
+
})(c4, g3), _4 = A3.className, P4 = A3.css;
|
|
8119
|
+
e4.warnTooManyClasses && e4.warnTooManyClasses(_4);
|
|
8120
|
+
var I4 = K2(l3, d4);
|
|
8121
|
+
_4 && (I4 += " " + _4), g3.className && (I4 += " " + g3.className), E4[j2(S3) && !N2.has(S3) ? "class" : "className"] = I4, i2 && (E4.ref = i2);
|
|
8122
|
+
var O4 = o2(S3, E4);
|
|
8123
|
+
return p2 && P4 ? r2.createElement(r2.Fragment, null, r2.createElement("style", { precedence: "styled-components", href: "sc-".concat(d4, "-").concat(_4), children: P4 }), O4) : O4;
|
|
8124
|
+
})(R3, e3, s2);
|
|
8125
|
+
}
|
|
8126
|
+
D3.displayName = v3;
|
|
8127
|
+
var R3 = r2.forwardRef(D3);
|
|
8128
|
+
return R3.attrs = C3, R3.componentStyle = O3, R3.displayName = v3, R3.shouldForwardProp = _3, R3.foldedComponentIds = a3 ? K2(c3.foldedComponentIds, c3.styledComponentId) : "", R3.styledComponentId = E3, R3.target = a3 ? c3.target : e2, Object.defineProperty(R3, "defaultProps", { get: function() {
|
|
8129
|
+
return this._foldedDefaultProps;
|
|
8130
|
+
}, set: function(e3) {
|
|
8131
|
+
this._foldedDefaultProps = a3 ? (function(e4) {
|
|
8132
|
+
for (var t2 = [], n = 1; n < arguments.length; n++) t2[n - 1] = arguments[n];
|
|
8133
|
+
for (var r3 = 0, o3 = t2; r3 < o3.length; r3++) te2(e4, o3[r3], true);
|
|
8134
|
+
return e4;
|
|
8135
|
+
})({}, c3.defaultProps, e3) : e3;
|
|
8136
|
+
} }), g2(v3, E3), R3.warnTooManyClasses = /* @__PURE__ */ (function(e3, t2) {
|
|
8137
|
+
var n = {}, r3 = false;
|
|
8138
|
+
return function(o3) {
|
|
8139
|
+
if (!r3 && (n[o3] = true, Object.keys(n).length >= 200)) {
|
|
8140
|
+
var s2 = t2 ? ' with the id of "'.concat(t2, '"') : "";
|
|
8141
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(e3).concat(s2, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r3 = true, n = {};
|
|
8142
|
+
}
|
|
8143
|
+
};
|
|
8144
|
+
})(v3, E3), ne2(R3, function() {
|
|
8145
|
+
return ".".concat(R3.styledComponentId);
|
|
8146
|
+
}), u3 && J2(R3, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), R3;
|
|
8147
|
+
}
|
|
8148
|
+
function st2(e2, t2) {
|
|
8149
|
+
for (var n = [e2[0]], r3 = 0, o3 = t2.length; r3 < o3; r3 += 1) n.push(t2[r3], e2[r3 + 1]);
|
|
8150
|
+
return n;
|
|
8151
|
+
}
|
|
8152
|
+
var it2 = function(e2) {
|
|
8153
|
+
return Object.assign(e2, { isCss: true });
|
|
8154
|
+
};
|
|
8155
|
+
function at2(t2) {
|
|
8156
|
+
for (var n = [], r3 = 1; r3 < arguments.length; r3++) n[r3 - 1] = arguments[r3];
|
|
8157
|
+
if (X2(t2) || ee2(t2)) return it2(Ue2(st2(S2, __spreadArray([t2], n, true))));
|
|
8158
|
+
var o3 = t2;
|
|
8159
|
+
return 0 === n.length && 1 === o3.length && "string" == typeof o3[0] ? Ue2(o3) : it2(Ue2(st2(o3, n)));
|
|
8160
|
+
}
|
|
8161
|
+
function ct2(n, r3, o3) {
|
|
8162
|
+
if (void 0 === o3 && (o3 = w2), !r3) throw se2(1, r3);
|
|
8163
|
+
var s = function(t2) {
|
|
8164
|
+
for (var s2 = [], i = 1; i < arguments.length; i++) s2[i - 1] = arguments[i];
|
|
8165
|
+
return n(r3, o3, at2.apply(void 0, __spreadArray([t2], s2, false)));
|
|
8166
|
+
};
|
|
8167
|
+
return s.attrs = function(e2) {
|
|
8168
|
+
return ct2(n, r3, __assign(__assign({}, o3), { attrs: Array.prototype.concat(o3.attrs, e2).filter(Boolean) }));
|
|
8169
|
+
}, s.withConfig = function(e2) {
|
|
8170
|
+
return ct2(n, r3, __assign(__assign({}, o3), e2));
|
|
8171
|
+
}, s;
|
|
8172
|
+
}
|
|
8173
|
+
var ut2 = function(e2) {
|
|
8174
|
+
return ct2(ot2, e2);
|
|
8175
|
+
};
|
|
8176
|
+
var lt = ut2;
|
|
8177
|
+
N2.forEach(function(e2) {
|
|
8178
|
+
lt[e2] = ut2(e2);
|
|
8179
|
+
});
|
|
8180
|
+
var dt2 = (function() {
|
|
8181
|
+
function e2(e3, t2) {
|
|
8182
|
+
this.rules = e3, this.componentId = t2, this.isStatic = Je2(e3), Pe2.registerId(this.componentId + 1);
|
|
8183
|
+
}
|
|
8184
|
+
return e2.prototype.createStyles = function(e3, t2, n, r3) {
|
|
8185
|
+
var o3 = r3(Q2(Ue2(this.rules, t2, n, r3)), ""), s = this.componentId + e3;
|
|
8186
|
+
n.insertRules(s, s, o3);
|
|
8187
|
+
}, e2.prototype.removeStyles = function(e3, t2) {
|
|
8188
|
+
t2.clearRules(this.componentId + e3);
|
|
8189
|
+
}, e2.prototype.renderStyles = function(e3, t2, n, r3) {
|
|
8190
|
+
e3 > 2 && Pe2.registerId(this.componentId + e3);
|
|
8191
|
+
var o3 = this.componentId + e3;
|
|
8192
|
+
this.isStatic ? n.hasNameForId(o3, o3) || this.createStyles(e3, t2, n, r3) : (this.removeStyles(e3, n), this.createStyles(e3, t2, n, r3));
|
|
8193
|
+
}, e2;
|
|
8194
|
+
})();
|
|
8195
|
+
function ht(n) {
|
|
8196
|
+
for (var o3 = [], s = 1; s < arguments.length; s++) o3[s - 1] = arguments[s];
|
|
8197
|
+
var i = at2.apply(void 0, __spreadArray([n], o3, false)), a3 = "sc-global-".concat(T2(JSON.stringify(i))), c3 = new dt2(i, a3);
|
|
8198
|
+
g2(a3);
|
|
8199
|
+
var u3 = /* @__PURE__ */ new WeakMap(), l3 = function(e2) {
|
|
8200
|
+
var t2 = Le2(), n2 = p2 ? void 0 : r2.useContext(Ke), o4 = u3.get(t2.styleSheet);
|
|
8201
|
+
if (void 0 === o4 && (o4 = t2.styleSheet.allocateGSInstance(a3), u3.set(t2.styleSheet, o4)), r2.Children.count(e2.children) && console.warn("The global style component ".concat(a3, " was given child JSX. createGlobalStyle does not render children.")), i.some(function(e3) {
|
|
8202
|
+
return "string" == typeof e3 && -1 !== e3.indexOf("@import");
|
|
8203
|
+
}) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), ("undefined" == typeof window || !t2.styleSheet.server) && d3(o4, e2, t2.styleSheet, n2, t2.stylis), p2 || r2.useLayoutEffect(function() {
|
|
8204
|
+
return t2.styleSheet.server || d3(o4, e2, t2.styleSheet, n2, t2.stylis), function() {
|
|
8205
|
+
var e3;
|
|
8206
|
+
c3.removeStyles(o4, t2.styleSheet), e3 = t2.styleSheet.options.target, "undefined" != typeof document && (null != e3 ? e3 : document).querySelectorAll('style[data-styled-global="'.concat(a3, '"]')).forEach(function(e4) {
|
|
8207
|
+
return e4.remove();
|
|
8208
|
+
});
|
|
8209
|
+
};
|
|
8210
|
+
}, [o4, e2, t2.styleSheet, n2, t2.stylis]), p2) {
|
|
8211
|
+
var s2 = a3 + o4, l4 = "undefined" == typeof window ? t2.styleSheet.getTag().getGroup(de2(s2)) : "";
|
|
8212
|
+
if (l4) return r2.createElement("style", { key: "".concat(a3, "-").concat(o4), "data-styled-global": a3, children: l4 });
|
|
8213
|
+
}
|
|
8214
|
+
return null;
|
|
8215
|
+
};
|
|
8216
|
+
function d3(e2, n2, r3, o4, s2) {
|
|
8217
|
+
if (c3.isStatic) c3.renderStyles(e2, m2, r3, s2);
|
|
8218
|
+
else {
|
|
8219
|
+
var i2 = __assign(__assign({}, n2), { theme: b2(n2, o4, l3.defaultProps) });
|
|
8220
|
+
c3.renderStyles(e2, i2, r3, s2);
|
|
8221
|
+
}
|
|
8222
|
+
}
|
|
8223
|
+
return r2.memo(l3);
|
|
8224
|
+
}
|
|
8225
|
+
var mt2 = (function() {
|
|
8226
|
+
function e2() {
|
|
8227
|
+
var e3 = this;
|
|
8228
|
+
this._emitSheetCSS = function() {
|
|
8229
|
+
var t2 = e3.instance.toString();
|
|
8230
|
+
if (!t2) return "";
|
|
8231
|
+
var n = we2(), r3 = Q2([n && 'nonce="'.concat(n, '"'), "".concat(a2, '="true"'), "".concat(u2, '="').concat(l2, '"')].filter(Boolean), " ");
|
|
8232
|
+
return "<style ".concat(r3, ">").concat(t2, "</style>");
|
|
8233
|
+
}, this.getStyleTags = function() {
|
|
8234
|
+
if (e3.sealed) throw se2(2);
|
|
8235
|
+
return e3._emitSheetCSS();
|
|
8236
|
+
}, this.getStyleElement = function() {
|
|
8237
|
+
var n;
|
|
8238
|
+
if (e3.sealed) throw se2(2);
|
|
8239
|
+
var o3 = e3.instance.toString();
|
|
8240
|
+
if (!o3) return [];
|
|
8241
|
+
var s = ((n = {})[a2] = "", n[u2] = l2, n.dangerouslySetInnerHTML = { __html: o3 }, n), i = we2();
|
|
8242
|
+
return i && (s.nonce = i), [r2.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
|
|
8243
|
+
}, this.seal = function() {
|
|
8244
|
+
e3.sealed = true;
|
|
8245
|
+
}, this.instance = new Pe2({ isServer: true }), this.sealed = false;
|
|
8246
|
+
}
|
|
8247
|
+
return e2.prototype.collectStyles = function(e3) {
|
|
8248
|
+
if (this.sealed) throw se2(2);
|
|
8249
|
+
return r2.createElement(Be2, { sheet: this.instance }, e3);
|
|
8250
|
+
}, e2.prototype.interleaveWithNodeStream = function(e3) {
|
|
8251
|
+
throw se2(3);
|
|
8252
|
+
}, e2;
|
|
8253
|
+
})();
|
|
8254
|
+
"undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
8255
|
+
var vt = "__sc-".concat(a2, "__");
|
|
8256
|
+
"undefined" != typeof window && (window[vt] || (window[vt] = 0), 1 === window[vt] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."), window[vt] += 1);
|
|
8257
|
+
|
|
7548
8258
|
// node_modules/@schematichq/schematic-icons/dist/types.js
|
|
7549
8259
|
var iconsList = {
|
|
7550
8260
|
"wind": 61697,
|
|
@@ -9674,6 +10384,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9674
10384
|
return json;
|
|
9675
10385
|
}
|
|
9676
10386
|
return {
|
|
10387
|
+
activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["active_version"]),
|
|
9677
10388
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
9678
10389
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
9679
10390
|
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
@@ -9686,6 +10397,7 @@ function CompanyPlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9686
10397
|
custom: json["custom"],
|
|
9687
10398
|
customPlanConfig: json["custom_plan_config"] == null ? void 0 : CustomPlanConfigFromJSON(json["custom_plan_config"]),
|
|
9688
10399
|
description: json["description"],
|
|
10400
|
+
draftVersion: json["draft_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["draft_version"]),
|
|
9689
10401
|
entitlements: json["entitlements"].map(
|
|
9690
10402
|
PlanEntitlementResponseDataFromJSON
|
|
9691
10403
|
),
|
|
@@ -9827,6 +10539,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9827
10539
|
return json;
|
|
9828
10540
|
}
|
|
9829
10541
|
return {
|
|
10542
|
+
activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["active_version"]),
|
|
9830
10543
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
9831
10544
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
9832
10545
|
chargeType: ChargeTypeFromJSON(json["charge_type"]),
|
|
@@ -9834,6 +10547,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9834
10547
|
controlledBy: PlanControlledByTypeFromJSON(json["controlled_by"]),
|
|
9835
10548
|
createdAt: new Date(json["created_at"]),
|
|
9836
10549
|
description: json["description"],
|
|
10550
|
+
draftVersion: json["draft_version"] == null ? void 0 : PlanVersionResponseDataFromJSON(json["draft_version"]),
|
|
9837
10551
|
features: json["features"].map(
|
|
9838
10552
|
FeatureDetailResponseDataFromJSON
|
|
9839
10553
|
),
|
|
@@ -11812,6 +12526,7 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11812
12526
|
return json;
|
|
11813
12527
|
}
|
|
11814
12528
|
return {
|
|
12529
|
+
activeVersion: json["active_version"] == null ? void 0 : PlanVersionResponseDataFromJSON2(json["active_version"]),
|
|
11815
12530
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
11816
12531
|
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON2(json["billing_product"]),
|
|
11817
12532
|
chargeType: ChargeTypeFromJSON2(json["charge_type"]),
|
|
@@ -11822,6 +12537,7 @@ function PlanViewPublicResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
11822
12537
|
custom: json["custom"],
|
|
11823
12538
|
customPlanConfig: json["custom_plan_config"] == null ? void 0 : CustomPlanConfigFromJSON2(json["custom_plan_config"]),
|
|
11824
12539
|
description: json["description"],
|
|
12540
|
+
draftVersion: json["draft_version"] == null ? void 0 : PlanVersionResponseDataFromJSON2(json["draft_version"]),
|
|
11825
12541
|
entitlements: json["entitlements"].map(
|
|
11826
12542
|
PlanEntitlementResponseDataFromJSON2
|
|
11827
12543
|
),
|
|
@@ -12126,7 +12842,7 @@ var reducer = (state, action) => {
|
|
|
12126
12842
|
// src/context/EmbedProvider.tsx
|
|
12127
12843
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12128
12844
|
var getCustomHeaders = (sessionId) => ({
|
|
12129
|
-
"X-Schematic-Components-Version": "2.
|
|
12845
|
+
"X-Schematic-Components-Version": "2.7.0",
|
|
12130
12846
|
"X-Schematic-Session-ID": sessionId
|
|
12131
12847
|
});
|
|
12132
12848
|
var EmbedProvider = ({
|
|
@@ -12483,7 +13199,7 @@ var EmbedProvider = ({
|
|
|
12483
13199
|
fontSet.add(fontFamily);
|
|
12484
13200
|
});
|
|
12485
13201
|
if (fontSet.size > 0) {
|
|
12486
|
-
const weights = new Array(9).fill(0).map((
|
|
13202
|
+
const weights = new Array(9).fill(0).map((_3, i) => (i + 1) * 100);
|
|
12487
13203
|
const src = `https://fonts.googleapis.com/css2?${[...fontSet].map(
|
|
12488
13204
|
(fontFamily) => `family=${fontFamily}:wght@${weights.join(";")}&display=swap`
|
|
12489
13205
|
).join("&")}`;
|
|
@@ -12543,7 +13259,7 @@ var EmbedProvider = ({
|
|
|
12543
13259
|
updateSettings,
|
|
12544
13260
|
debug
|
|
12545
13261
|
},
|
|
12546
|
-
children: /* @__PURE__ */ jsxs(
|
|
13262
|
+
children: /* @__PURE__ */ jsxs(Qe, { theme: state.settings.theme, children: [
|
|
12547
13263
|
/* @__PURE__ */ jsx(IconStyles, {}),
|
|
12548
13264
|
children
|
|
12549
13265
|
] })
|
|
@@ -12760,7 +13476,7 @@ function useWrapChildren(ref) {
|
|
|
12760
13476
|
}
|
|
12761
13477
|
|
|
12762
13478
|
// src/components/ui/box/styles.ts
|
|
12763
|
-
var Box =
|
|
13479
|
+
var Box = ct("div")((props) => {
|
|
12764
13480
|
function reducer2(acc, [key, value]) {
|
|
12765
13481
|
if (key.startsWith("$") && !["$viewport"].includes(key)) {
|
|
12766
13482
|
acc.push(
|
|
@@ -12771,14 +13487,14 @@ var Box = lt("div")((props) => {
|
|
|
12771
13487
|
return acc;
|
|
12772
13488
|
}
|
|
12773
13489
|
const styles = Object.entries(props).reduce(reducer2, [
|
|
12774
|
-
|
|
13490
|
+
st`
|
|
12775
13491
|
&:focus-visible {
|
|
12776
13492
|
outline: 2px solid ${({ theme }) => theme.primary};
|
|
12777
13493
|
}
|
|
12778
13494
|
`
|
|
12779
13495
|
]);
|
|
12780
13496
|
for (const [key, value] of Object.entries(props.$viewport || {})) {
|
|
12781
|
-
styles.push(
|
|
13497
|
+
styles.push(st`
|
|
12782
13498
|
${{
|
|
12783
13499
|
"xs": "@container (min-width: 375px)",
|
|
12784
13500
|
"sm": "@container (min-width: 640px)",
|
|
@@ -12793,11 +13509,11 @@ var Box = lt("div")((props) => {
|
|
|
12793
13509
|
}
|
|
12794
13510
|
return styles;
|
|
12795
13511
|
});
|
|
12796
|
-
var TransitionBox =
|
|
13512
|
+
var TransitionBox = ct(Box)`
|
|
12797
13513
|
${({ $isExpanded = true }) => {
|
|
12798
|
-
return $isExpanded ?
|
|
13514
|
+
return $isExpanded ? st`
|
|
12799
13515
|
height: auto;
|
|
12800
|
-
` :
|
|
13516
|
+
` : st`
|
|
12801
13517
|
height: 0;
|
|
12802
13518
|
overflow: hidden;
|
|
12803
13519
|
`;
|
|
@@ -12814,7 +13530,7 @@ var TransitionBox = lt(Box)`
|
|
|
12814
13530
|
`;
|
|
12815
13531
|
|
|
12816
13532
|
// src/components/ui/icon/styles.ts
|
|
12817
|
-
var Icon2 =
|
|
13533
|
+
var Icon2 = ct(Icon).attrs(({ name, title, onClick }) => ({
|
|
12818
13534
|
title: title || name,
|
|
12819
13535
|
...onClick && { tabIndex: 0 }
|
|
12820
13536
|
}))`
|
|
@@ -12824,7 +13540,7 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
12824
13540
|
flex-shrink: 0;
|
|
12825
13541
|
transition: 0.1s;
|
|
12826
13542
|
|
|
12827
|
-
${({ onClick }) => onClick &&
|
|
13543
|
+
${({ onClick }) => onClick && st`
|
|
12828
13544
|
&:hover {
|
|
12829
13545
|
cursor: pointer;
|
|
12830
13546
|
}
|
|
@@ -12835,7 +13551,7 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
12835
13551
|
outline-offset: 2px;
|
|
12836
13552
|
}
|
|
12837
13553
|
|
|
12838
|
-
${({ $rounded }) => $rounded &&
|
|
13554
|
+
${({ $rounded }) => $rounded && st`
|
|
12839
13555
|
border-radius: 9999px;
|
|
12840
13556
|
`}
|
|
12841
13557
|
|
|
@@ -12866,10 +13582,10 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
12866
13582
|
scale *= 3;
|
|
12867
13583
|
break;
|
|
12868
13584
|
}
|
|
12869
|
-
return
|
|
13585
|
+
return st`
|
|
12870
13586
|
font-size: ${base * scale / TEXT_BASE_SIZE}rem;
|
|
12871
13587
|
|
|
12872
|
-
${$rounded &&
|
|
13588
|
+
${$rounded && st`
|
|
12873
13589
|
width: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
12874
13590
|
height: ${base * (11 / 6) * scale / TEXT_BASE_SIZE}rem;
|
|
12875
13591
|
`}
|
|
@@ -12877,10 +13593,10 @@ var Icon2 = lt(Icon).attrs(({ name, title, onClick }) => ({
|
|
|
12877
13593
|
}}
|
|
12878
13594
|
|
|
12879
13595
|
${({ $variant, $color, $background }) => {
|
|
12880
|
-
return $variant === "outline" ?
|
|
13596
|
+
return $variant === "outline" ? st`
|
|
12881
13597
|
color: ${$color};
|
|
12882
13598
|
background-color: transparent;
|
|
12883
|
-
` :
|
|
13599
|
+
` : st`
|
|
12884
13600
|
color: ${$color};
|
|
12885
13601
|
background-color: ${$background};
|
|
12886
13602
|
`;
|
|
@@ -12901,11 +13617,11 @@ var loaderStyles = ({
|
|
|
12901
13617
|
$color,
|
|
12902
13618
|
$size = "md",
|
|
12903
13619
|
$isLoading = true
|
|
12904
|
-
}) =>
|
|
12905
|
-
const { l:
|
|
13620
|
+
}) => st(({ theme }) => {
|
|
13621
|
+
const { l: l3 } = hexToHSL(theme.card.background);
|
|
12906
13622
|
let color = $color ?? theme.primary;
|
|
12907
13623
|
let colorFn;
|
|
12908
|
-
if (
|
|
13624
|
+
if (l3 > 50) {
|
|
12909
13625
|
color = color ?? "#000000";
|
|
12910
13626
|
colorFn = lighten;
|
|
12911
13627
|
} else {
|
|
@@ -12937,14 +13653,14 @@ var loaderStyles = ({
|
|
|
12937
13653
|
px = 64;
|
|
12938
13654
|
break;
|
|
12939
13655
|
}
|
|
12940
|
-
return
|
|
13656
|
+
return st`
|
|
12941
13657
|
display: inline-block;
|
|
12942
13658
|
width: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
12943
13659
|
height: ${($isLoading ? px : 0) / TEXT_BASE_SIZE}rem;
|
|
12944
13660
|
border-width: ${($isLoading ? px : 0) / 16 / TEXT_BASE_SIZE}rem;
|
|
12945
|
-
${$isLoading ?
|
|
13661
|
+
${$isLoading ? st`
|
|
12946
13662
|
animation: 1.5s linear infinite ${spin};
|
|
12947
|
-
` :
|
|
13663
|
+
` : st`
|
|
12948
13664
|
transform: scale(0);
|
|
12949
13665
|
`}
|
|
12950
13666
|
border-style: solid;
|
|
@@ -12955,12 +13671,12 @@ var loaderStyles = ({
|
|
|
12955
13671
|
animation: 1.5s linear infinite ${spin};
|
|
12956
13672
|
`;
|
|
12957
13673
|
});
|
|
12958
|
-
var Loader =
|
|
13674
|
+
var Loader = ct.div((props) => {
|
|
12959
13675
|
return loaderStyles(props);
|
|
12960
13676
|
});
|
|
12961
13677
|
|
|
12962
13678
|
// src/components/ui/button/styles.ts
|
|
12963
|
-
var Button =
|
|
13679
|
+
var Button = ct.button(
|
|
12964
13680
|
({
|
|
12965
13681
|
theme,
|
|
12966
13682
|
disabled = false,
|
|
@@ -12972,7 +13688,7 @@ var Button = lt.button(
|
|
|
12972
13688
|
$alignment = "center",
|
|
12973
13689
|
$selfAlignment
|
|
12974
13690
|
}) => {
|
|
12975
|
-
return
|
|
13691
|
+
return st`
|
|
12976
13692
|
appearance: none;
|
|
12977
13693
|
font-family: "Public Sans", sans-serif;
|
|
12978
13694
|
font-weight: 500;
|
|
@@ -12980,7 +13696,7 @@ var Button = lt.button(
|
|
|
12980
13696
|
display: flex;
|
|
12981
13697
|
justify-content: ${$alignment};
|
|
12982
13698
|
align-items: center;
|
|
12983
|
-
${() => $selfAlignment &&
|
|
13699
|
+
${() => $selfAlignment && st`
|
|
12984
13700
|
align-self: ${$selfAlignment};
|
|
12985
13701
|
`}
|
|
12986
13702
|
width: ${$fullWidth ? "100%" : "fit-content"};
|
|
@@ -12990,21 +13706,21 @@ var Button = lt.button(
|
|
|
12990
13706
|
${function sizeStyles() {
|
|
12991
13707
|
switch ($size) {
|
|
12992
13708
|
case "sm":
|
|
12993
|
-
return
|
|
13709
|
+
return st`
|
|
12994
13710
|
font-size: ${15 / TEXT_BASE_SIZE}rem;
|
|
12995
13711
|
height: ${40 / TEXT_BASE_SIZE}rem;
|
|
12996
13712
|
padding: ${7 / TEXT_BASE_SIZE}rem ${20 / TEXT_BASE_SIZE}rem;
|
|
12997
13713
|
border-radius: ${6 / TEXT_BASE_SIZE}rem;
|
|
12998
13714
|
`;
|
|
12999
13715
|
case "md":
|
|
13000
|
-
return
|
|
13716
|
+
return st`
|
|
13001
13717
|
font-size: ${17 / TEXT_BASE_SIZE}rem;
|
|
13002
13718
|
height: ${52 / TEXT_BASE_SIZE}rem;
|
|
13003
13719
|
padding: ${8 / TEXT_BASE_SIZE}rem ${24 / TEXT_BASE_SIZE}rem;
|
|
13004
13720
|
border-radius: ${8 / TEXT_BASE_SIZE}rem;
|
|
13005
13721
|
`;
|
|
13006
13722
|
case "lg":
|
|
13007
|
-
return
|
|
13723
|
+
return st`
|
|
13008
13724
|
font-size: ${19 / TEXT_BASE_SIZE}rem;
|
|
13009
13725
|
height: ${64 / TEXT_BASE_SIZE}rem;
|
|
13010
13726
|
padding: ${9 / TEXT_BASE_SIZE}rem ${28 / TEXT_BASE_SIZE}rem;
|
|
@@ -13014,12 +13730,12 @@ var Button = lt.button(
|
|
|
13014
13730
|
}}
|
|
13015
13731
|
|
|
13016
13732
|
${function colorStyles() {
|
|
13017
|
-
const { l:
|
|
13018
|
-
let color =
|
|
13733
|
+
const { l: l3 } = hexToHSL(theme[$color]);
|
|
13734
|
+
let color = l3 > 50 ? "#000000" : "#FFFFFF";
|
|
13019
13735
|
if (disabled) {
|
|
13020
|
-
color =
|
|
13736
|
+
color = l3 > 50 ? lighten(color, 0.625) : darken(color, 0.375);
|
|
13021
13737
|
}
|
|
13022
|
-
return
|
|
13738
|
+
return st`
|
|
13023
13739
|
color: ${color};
|
|
13024
13740
|
|
|
13025
13741
|
${Text}, ${Icon2} {
|
|
@@ -13029,14 +13745,14 @@ var Button = lt.button(
|
|
|
13029
13745
|
}}
|
|
13030
13746
|
|
|
13031
13747
|
${function variantStyles() {
|
|
13032
|
-
const { l:
|
|
13748
|
+
const { l: l3 } = hexToHSL(theme.card.background);
|
|
13033
13749
|
let color = theme[$color];
|
|
13034
13750
|
if (disabled) {
|
|
13035
|
-
color = hslToHex({ h: 0, s: 0, l:
|
|
13036
|
-
color =
|
|
13751
|
+
color = hslToHex({ h: 0, s: 0, l: l3 });
|
|
13752
|
+
color = l3 > 50 ? darken(color, 0.075) : lighten(color, 0.15);
|
|
13037
13753
|
}
|
|
13038
13754
|
if ($variant === "outline") {
|
|
13039
|
-
return
|
|
13755
|
+
return st`
|
|
13040
13756
|
color: ${color};
|
|
13041
13757
|
background-color: transparent;
|
|
13042
13758
|
border-color: ${color};
|
|
@@ -13047,10 +13763,10 @@ var Button = lt.button(
|
|
|
13047
13763
|
`;
|
|
13048
13764
|
}
|
|
13049
13765
|
if ($variant === "ghost") {
|
|
13050
|
-
return
|
|
13766
|
+
return st`
|
|
13051
13767
|
color: ${color};
|
|
13052
13768
|
background-color: transparent;
|
|
13053
|
-
border-color: ${
|
|
13769
|
+
border-color: ${l3 > 50 ? darken(theme.card.background, 0.2) : lighten(theme.card.background, 0.2)};
|
|
13054
13770
|
|
|
13055
13771
|
${Text}, ${Icon2} {
|
|
13056
13772
|
color: ${color};
|
|
@@ -13058,7 +13774,7 @@ var Button = lt.button(
|
|
|
13058
13774
|
`;
|
|
13059
13775
|
}
|
|
13060
13776
|
if ($variant === "text") {
|
|
13061
|
-
return
|
|
13777
|
+
return st`
|
|
13062
13778
|
color: ${color};
|
|
13063
13779
|
background-color: transparent;
|
|
13064
13780
|
border-color: transparent;
|
|
@@ -13068,7 +13784,7 @@ var Button = lt.button(
|
|
|
13068
13784
|
}
|
|
13069
13785
|
`;
|
|
13070
13786
|
}
|
|
13071
|
-
return
|
|
13787
|
+
return st`
|
|
13072
13788
|
background-color: ${color};
|
|
13073
13789
|
border-color: ${color};
|
|
13074
13790
|
`;
|
|
@@ -13086,7 +13802,7 @@ var Button = lt.button(
|
|
|
13086
13802
|
&::before {
|
|
13087
13803
|
content: "";
|
|
13088
13804
|
${loaderStyles({ $color: theme[$color], $size, $isLoading })}
|
|
13089
|
-
${$isLoading &&
|
|
13805
|
+
${$isLoading && st`
|
|
13090
13806
|
margin-right: 0.5rem;
|
|
13091
13807
|
`}
|
|
13092
13808
|
}
|
|
@@ -13098,19 +13814,19 @@ var Button = lt.button(
|
|
|
13098
13814
|
|
|
13099
13815
|
&:not(:disabled):hover {
|
|
13100
13816
|
${function hoverStyles() {
|
|
13101
|
-
const { l:
|
|
13102
|
-
const color =
|
|
13817
|
+
const { l: l3 } = hexToHSL(theme[$color]);
|
|
13818
|
+
const color = l3 > 50 ? "#000000" : "#FFFFFF";
|
|
13103
13819
|
const specified = theme[$color];
|
|
13104
13820
|
const lightened = lighten(specified, 0.15);
|
|
13105
13821
|
const bgColor = specified === lightened ? darken(specified, 0.15) : lightened;
|
|
13106
13822
|
if ($variant === "filled") {
|
|
13107
|
-
return
|
|
13823
|
+
return st`
|
|
13108
13824
|
background-color: ${bgColor};
|
|
13109
13825
|
border-color: ${bgColor};
|
|
13110
13826
|
`;
|
|
13111
13827
|
}
|
|
13112
13828
|
if ($variant === "outline") {
|
|
13113
|
-
return
|
|
13829
|
+
return st`
|
|
13114
13830
|
color: ${color};
|
|
13115
13831
|
background-color: ${bgColor};
|
|
13116
13832
|
border-color: ${bgColor};
|
|
@@ -13121,15 +13837,15 @@ var Button = lt.button(
|
|
|
13121
13837
|
`;
|
|
13122
13838
|
}
|
|
13123
13839
|
if ($variant === "ghost") {
|
|
13124
|
-
const { l:
|
|
13125
|
-
return
|
|
13126
|
-
border-color: ${
|
|
13840
|
+
const { l: l4 } = hexToHSL(theme.card.background);
|
|
13841
|
+
return st`
|
|
13842
|
+
border-color: ${l4 > 50 ? darken(theme.card.background, 0.125) : lighten(theme.card.background, 0.125)};
|
|
13127
13843
|
box-shadow: 0 1px 2px
|
|
13128
|
-
${
|
|
13844
|
+
${l4 > 50 ? darken(theme.card.background, 0.075) : lighten(theme.card.background, 0.075)};
|
|
13129
13845
|
`;
|
|
13130
13846
|
}
|
|
13131
13847
|
if ($variant === "text") {
|
|
13132
|
-
return
|
|
13848
|
+
return st`
|
|
13133
13849
|
text-decoration: underline;
|
|
13134
13850
|
`;
|
|
13135
13851
|
}
|
|
@@ -13149,9 +13865,9 @@ import {
|
|
|
13149
13865
|
} from "react";
|
|
13150
13866
|
|
|
13151
13867
|
// src/components/ui/dialog/styles.ts
|
|
13152
|
-
var Dialog =
|
|
13868
|
+
var Dialog = ct.dialog(
|
|
13153
13869
|
({ theme, $isModal, $size, $top }) => {
|
|
13154
|
-
return
|
|
13870
|
+
return st`
|
|
13155
13871
|
${ResetStyle}
|
|
13156
13872
|
${$isModal && ContainerStyle}
|
|
13157
13873
|
|
|
@@ -13327,7 +14043,7 @@ var DialogHeader = ({
|
|
|
13327
14043
|
};
|
|
13328
14044
|
|
|
13329
14045
|
// src/components/ui/flex/styles.ts
|
|
13330
|
-
var Flex =
|
|
14046
|
+
var Flex = ct(Box)`
|
|
13331
14047
|
display: flex;
|
|
13332
14048
|
`;
|
|
13333
14049
|
|
|
@@ -13361,9 +14077,9 @@ var Icon3 = ({
|
|
|
13361
14077
|
};
|
|
13362
14078
|
|
|
13363
14079
|
// src/components/ui/input/styles.ts
|
|
13364
|
-
var Input =
|
|
14080
|
+
var Input = ct.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
13365
14081
|
const isLightBackground = useIsLightBackground();
|
|
13366
|
-
return
|
|
14082
|
+
return st`
|
|
13367
14083
|
font-family: "Inter", sans-serif;
|
|
13368
14084
|
font-weight: 500;
|
|
13369
14085
|
width: 100%;
|
|
@@ -13383,14 +14099,14 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
13383
14099
|
${() => {
|
|
13384
14100
|
switch ($size) {
|
|
13385
14101
|
case "sm": {
|
|
13386
|
-
return
|
|
14102
|
+
return st`
|
|
13387
14103
|
font-size: 0.875rem;
|
|
13388
14104
|
line-height: 1.5rem;
|
|
13389
14105
|
height: 1.5rem;
|
|
13390
14106
|
`;
|
|
13391
14107
|
}
|
|
13392
14108
|
case "md": {
|
|
13393
|
-
return
|
|
14109
|
+
return st`
|
|
13394
14110
|
font-size: 1rem;
|
|
13395
14111
|
line-height: 3rem;
|
|
13396
14112
|
height: 3rem;
|
|
@@ -13398,7 +14114,7 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
13398
14114
|
`;
|
|
13399
14115
|
}
|
|
13400
14116
|
case "lg": {
|
|
13401
|
-
return
|
|
14117
|
+
return st`
|
|
13402
14118
|
font-size: 1.25rem;
|
|
13403
14119
|
line-height: 4rem;
|
|
13404
14120
|
height: 4rem;
|
|
@@ -13406,7 +14122,7 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
13406
14122
|
`;
|
|
13407
14123
|
}
|
|
13408
14124
|
case "full": {
|
|
13409
|
-
return
|
|
14125
|
+
return st`
|
|
13410
14126
|
font-size: 1rem;
|
|
13411
14127
|
line-height: 1;
|
|
13412
14128
|
height: 100%;
|
|
@@ -13420,7 +14136,7 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
13420
14136
|
const color = $variant !== "filled" && !isLightBackground ? theme.typography.text.color : "#000000";
|
|
13421
14137
|
const bgColor = $variant === "filled" ? "#F1F1F1" : "transparent";
|
|
13422
14138
|
const borderColor = $variant === "text" ? "transparent" : "#CBCBCB";
|
|
13423
|
-
return
|
|
14139
|
+
return st`
|
|
13424
14140
|
color: ${color};
|
|
13425
14141
|
background-color: ${bgColor};
|
|
13426
14142
|
border-color: ${borderColor};
|
|
@@ -13446,8 +14162,8 @@ var Input = lt.input(({ theme, $size = "md", $variant = "filled" }) => {
|
|
|
13446
14162
|
});
|
|
13447
14163
|
|
|
13448
14164
|
// src/components/ui/overlay/styles.ts
|
|
13449
|
-
var Overlay =
|
|
13450
|
-
return
|
|
14165
|
+
var Overlay = ct(Flex)(({ theme }) => {
|
|
14166
|
+
return st`
|
|
13451
14167
|
position: absolute;
|
|
13452
14168
|
top: 0;
|
|
13453
14169
|
right: 0;
|
|
@@ -13565,7 +14281,7 @@ var LeadingLineHeightMap = {
|
|
|
13565
14281
|
relaxed: 1.625,
|
|
13566
14282
|
loose: 2
|
|
13567
14283
|
};
|
|
13568
|
-
var Text =
|
|
14284
|
+
var Text = ct.span.withConfig({
|
|
13569
14285
|
shouldForwardProp: (prop) => prop !== "display"
|
|
13570
14286
|
}).attrs(({ onClick }) => ({
|
|
13571
14287
|
...onClick && { tabIndex: 0 }
|
|
@@ -13588,7 +14304,7 @@ var Text = lt.span.withConfig({
|
|
|
13588
14304
|
const fontWeight = $weight || fontStyle.fontWeight;
|
|
13589
14305
|
const lineHeight = $leading && LeadingLineHeightMap[$leading];
|
|
13590
14306
|
const color = $color || fontStyle.color;
|
|
13591
|
-
return
|
|
14307
|
+
return st`
|
|
13592
14308
|
font-family: ${fontFamily}, sans-serif;
|
|
13593
14309
|
font-size: ${typeof fontSize === "number" ? `${fontSize / TEXT_BASE_SIZE}rem` : fontSize};
|
|
13594
14310
|
font-weight: ${fontWeight};
|
|
@@ -13596,19 +14312,19 @@ var Text = lt.span.withConfig({
|
|
|
13596
14312
|
color: ${color};
|
|
13597
14313
|
text-wrap: pretty;
|
|
13598
14314
|
|
|
13599
|
-
${lineHeight &&
|
|
14315
|
+
${lineHeight && st`
|
|
13600
14316
|
line-height: ${lineHeight};
|
|
13601
14317
|
`}
|
|
13602
14318
|
|
|
13603
|
-
${$align &&
|
|
14319
|
+
${$align && st`
|
|
13604
14320
|
text-align: ${$align};
|
|
13605
14321
|
`};
|
|
13606
14322
|
|
|
13607
|
-
${$width &&
|
|
14323
|
+
${$width && st`
|
|
13608
14324
|
width: ${$width};
|
|
13609
14325
|
`};
|
|
13610
14326
|
|
|
13611
|
-
${onClick &&
|
|
14327
|
+
${onClick && st`
|
|
13612
14328
|
&:hover {
|
|
13613
14329
|
cursor: pointer;
|
|
13614
14330
|
text-decoration: underline;
|
|
@@ -13629,64 +14345,64 @@ import { useCallback as useCallback6, useLayoutEffect as useLayoutEffect3, useRe
|
|
|
13629
14345
|
import { createPortal } from "react-dom";
|
|
13630
14346
|
|
|
13631
14347
|
// src/components/ui/tooltip/styles.ts
|
|
13632
|
-
var Trigger =
|
|
13633
|
-
${({ $fullWidth = false }) => $fullWidth &&
|
|
14348
|
+
var Trigger = ct(Box)`
|
|
14349
|
+
${({ $fullWidth = false }) => $fullWidth && st`
|
|
13634
14350
|
width: 100%;
|
|
13635
14351
|
flex-grow: 1;
|
|
13636
14352
|
`}
|
|
13637
14353
|
`;
|
|
13638
14354
|
var coords = (position2) => {
|
|
13639
|
-
let
|
|
13640
|
-
let
|
|
14355
|
+
let x3 = 0;
|
|
14356
|
+
let y3 = 0;
|
|
13641
14357
|
switch (position2) {
|
|
13642
14358
|
case "top":
|
|
13643
|
-
|
|
13644
|
-
|
|
14359
|
+
x3 = -50;
|
|
14360
|
+
y3 = -100;
|
|
13645
14361
|
break;
|
|
13646
14362
|
case "right":
|
|
13647
|
-
|
|
13648
|
-
|
|
14363
|
+
x3 = 0;
|
|
14364
|
+
y3 = -50;
|
|
13649
14365
|
break;
|
|
13650
14366
|
case "bottom":
|
|
13651
|
-
|
|
13652
|
-
|
|
14367
|
+
x3 = -50;
|
|
14368
|
+
y3 = 0;
|
|
13653
14369
|
break;
|
|
13654
14370
|
case "left":
|
|
13655
|
-
|
|
13656
|
-
|
|
14371
|
+
x3 = -100;
|
|
14372
|
+
y3 = -50;
|
|
13657
14373
|
break;
|
|
13658
14374
|
}
|
|
13659
|
-
return { x:
|
|
14375
|
+
return { x: x3, y: y3 };
|
|
13660
14376
|
};
|
|
13661
14377
|
var arrowCoords = (position2) => {
|
|
13662
|
-
let
|
|
13663
|
-
let
|
|
14378
|
+
let x3 = 0;
|
|
14379
|
+
let y3 = 0;
|
|
13664
14380
|
switch (position2) {
|
|
13665
14381
|
case "top":
|
|
13666
|
-
|
|
13667
|
-
|
|
14382
|
+
x3 = -50;
|
|
14383
|
+
y3 = -50;
|
|
13668
14384
|
break;
|
|
13669
14385
|
case "right":
|
|
13670
|
-
|
|
13671
|
-
|
|
14386
|
+
x3 = 50;
|
|
14387
|
+
y3 = -50;
|
|
13672
14388
|
break;
|
|
13673
14389
|
case "bottom":
|
|
13674
|
-
|
|
13675
|
-
|
|
14390
|
+
x3 = -50;
|
|
14391
|
+
y3 = 50;
|
|
13676
14392
|
break;
|
|
13677
14393
|
case "left":
|
|
13678
|
-
|
|
13679
|
-
|
|
14394
|
+
x3 = -50;
|
|
14395
|
+
y3 = -50;
|
|
13680
14396
|
break;
|
|
13681
14397
|
}
|
|
13682
|
-
return { x:
|
|
14398
|
+
return { x: x3, y: y3 };
|
|
13683
14399
|
};
|
|
13684
14400
|
var origin = (position2) => {
|
|
13685
|
-
const
|
|
14401
|
+
const o3 = {
|
|
13686
14402
|
x: position2 === "top" ? "bottom" : position2 === "bottom" ? "top" : "center",
|
|
13687
14403
|
y: position2 === "left" ? "right" : position2 === "right" ? "left" : "center"
|
|
13688
14404
|
};
|
|
13689
|
-
return
|
|
14405
|
+
return o3;
|
|
13690
14406
|
};
|
|
13691
14407
|
var grow = (translate) => {
|
|
13692
14408
|
return pt`
|
|
@@ -13701,20 +14417,20 @@ var grow = (translate) => {
|
|
|
13701
14417
|
}
|
|
13702
14418
|
`;
|
|
13703
14419
|
};
|
|
13704
|
-
var Content =
|
|
14420
|
+
var Content = ct.div.withConfig({
|
|
13705
14421
|
shouldForwardProp: (prop) => !["x", "y", "position", "zIndex"].includes(prop)
|
|
13706
|
-
})(({ x:
|
|
14422
|
+
})(({ x: x3, y: y3, position: position2, theme }) => {
|
|
13707
14423
|
const translate = coords(position2);
|
|
13708
14424
|
const arrowTranslate = arrowCoords(position2);
|
|
13709
14425
|
const transformOrigin = origin(position2);
|
|
13710
|
-
return
|
|
14426
|
+
return st`
|
|
13711
14427
|
position: absolute;
|
|
13712
14428
|
top: calc(
|
|
13713
|
-
${
|
|
14429
|
+
${y3}px -
|
|
13714
14430
|
${position2 === "top" ? 0.75 : position2 === "bottom" ? -0.75 : 0}rem
|
|
13715
14431
|
);
|
|
13716
14432
|
left: calc(
|
|
13717
|
-
${
|
|
14433
|
+
${x3}px -
|
|
13718
14434
|
${position2 === "left" ? 0.75 : position2 === "right" ? -0.75 : 0}rem
|
|
13719
14435
|
);
|
|
13720
14436
|
transform: translate(${translate.x}%, ${translate.y}%);
|
|
@@ -13749,16 +14465,16 @@ var Content = lt.div.withConfig({
|
|
|
13749
14465
|
&::after {
|
|
13750
14466
|
position: absolute;
|
|
13751
14467
|
z-index: 0;
|
|
13752
|
-
${position2 === "top" ?
|
|
14468
|
+
${position2 === "top" ? st`
|
|
13753
14469
|
top: 100%;
|
|
13754
14470
|
left: 50%;
|
|
13755
|
-
` : position2 === "right" ?
|
|
14471
|
+
` : position2 === "right" ? st`
|
|
13756
14472
|
top: 50%;
|
|
13757
14473
|
right: 100%;
|
|
13758
|
-
` : position2 === "bottom" ?
|
|
14474
|
+
` : position2 === "bottom" ? st`
|
|
13759
14475
|
bottom: 100%;
|
|
13760
14476
|
left: 50%;
|
|
13761
|
-
` :
|
|
14477
|
+
` : st`
|
|
13762
14478
|
top: 50%;
|
|
13763
14479
|
left: 100%;
|
|
13764
14480
|
`};
|
|
@@ -13777,22 +14493,22 @@ var Content = lt.div.withConfig({
|
|
|
13777
14493
|
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
13778
14494
|
var getCoords = ({ element, portal, position: position2 }) => {
|
|
13779
14495
|
const { top: offsetTop, left: offsetLeft } = (portal || document.body).getBoundingClientRect();
|
|
13780
|
-
let
|
|
13781
|
-
let
|
|
14496
|
+
let x3 = 0;
|
|
14497
|
+
let y3 = 0;
|
|
13782
14498
|
if (element) {
|
|
13783
14499
|
const rect = element.getBoundingClientRect();
|
|
13784
|
-
|
|
14500
|
+
x3 = position2 === "left" ? rect.left : rect.right;
|
|
13785
14501
|
if (position2 === "top" || position2 === "bottom") {
|
|
13786
|
-
|
|
14502
|
+
x3 -= rect.width / 2;
|
|
13787
14503
|
}
|
|
13788
|
-
|
|
14504
|
+
y3 = position2 === "top" ? rect.top : rect.bottom;
|
|
13789
14505
|
if (position2 === "left" || position2 === "right") {
|
|
13790
|
-
|
|
14506
|
+
y3 -= rect.height / 2;
|
|
13791
14507
|
}
|
|
13792
14508
|
}
|
|
13793
14509
|
return {
|
|
13794
|
-
x: Math.round(
|
|
13795
|
-
y: Math.round(
|
|
14510
|
+
x: Math.round(x3 - offsetLeft),
|
|
14511
|
+
y: Math.round(y3 - offsetTop)
|
|
13796
14512
|
};
|
|
13797
14513
|
};
|
|
13798
14514
|
var Tooltip = ({
|
|
@@ -13846,15 +14562,15 @@ var Tooltip = ({
|
|
|
13846
14562
|
};
|
|
13847
14563
|
|
|
13848
14564
|
// src/components/layout/card/styles.ts
|
|
13849
|
-
var Element =
|
|
13850
|
-
var FussyChild =
|
|
13851
|
-
var Notice =
|
|
14565
|
+
var Element = ct(Box)``;
|
|
14566
|
+
var FussyChild = ct(Element)``;
|
|
14567
|
+
var Notice = ct(Box)``;
|
|
13852
14568
|
var cardBoxShadow = "0px 1px 20px 0px #1018280F, 0px 1px 3px 0px #1018281A";
|
|
13853
|
-
var StyledCard =
|
|
13854
|
-
const { l:
|
|
13855
|
-
const borderColor =
|
|
14569
|
+
var StyledCard = ct.div(({ theme }) => {
|
|
14570
|
+
const { l: l3 } = hexToHSL(theme.card.background);
|
|
14571
|
+
const borderColor = l3 > 50 ? "hsla(0, 0%, 0%, 0.1)" : "hsla(0, 0%, 100%, 0.2)";
|
|
13856
14572
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
13857
|
-
return
|
|
14573
|
+
return st`
|
|
13858
14574
|
position: relative;
|
|
13859
14575
|
|
|
13860
14576
|
${theme.sectionLayout === "merged" ? `&:not(:has(${FussyChild}))` : `${Element}:not(:is(${FussyChild}))`} {
|
|
@@ -13869,9 +14585,9 @@ var StyledCard = lt.div(({ theme }) => {
|
|
|
13869
14585
|
${theme.card.padding / TEXT_BASE_SIZE}rem;
|
|
13870
14586
|
|
|
13871
14587
|
&:not(:last-child) {
|
|
13872
|
-
${theme.sectionLayout === "merged" ?
|
|
14588
|
+
${theme.sectionLayout === "merged" ? st`
|
|
13873
14589
|
border-bottom: 1px solid ${borderColor};
|
|
13874
|
-
` :
|
|
14590
|
+
` : st`
|
|
13875
14591
|
margin-bottom: 1rem;
|
|
13876
14592
|
`}
|
|
13877
14593
|
}
|
|
@@ -13917,7 +14633,7 @@ Card.displayName = "Card";
|
|
|
13917
14633
|
import { Children as Children2, forwardRef as forwardRef5 } from "react";
|
|
13918
14634
|
|
|
13919
14635
|
// src/components/layout/column/styles.ts
|
|
13920
|
-
var StyledColumn =
|
|
14636
|
+
var StyledColumn = ct.div`
|
|
13921
14637
|
height: min-content;
|
|
13922
14638
|
`;
|
|
13923
14639
|
|
|
@@ -13934,7 +14650,7 @@ Column.displayName = "Column";
|
|
|
13934
14650
|
import { forwardRef as forwardRef6 } from "react";
|
|
13935
14651
|
|
|
13936
14652
|
// src/components/layout/root/styles.ts
|
|
13937
|
-
var ResetStyle =
|
|
14653
|
+
var ResetStyle = st`
|
|
13938
14654
|
box-sizing: border-box;
|
|
13939
14655
|
font-size: 1rem;
|
|
13940
14656
|
line-height: 1.375;
|
|
@@ -13959,11 +14675,11 @@ var ResetStyle = at`
|
|
|
13959
14675
|
vertical-align: top;
|
|
13960
14676
|
}
|
|
13961
14677
|
`;
|
|
13962
|
-
var ContainerStyle =
|
|
14678
|
+
var ContainerStyle = st`
|
|
13963
14679
|
container-type: inline-size;
|
|
13964
14680
|
interpolate-size: allow-keywords;
|
|
13965
14681
|
`;
|
|
13966
|
-
var Container =
|
|
14682
|
+
var Container = ct.div`
|
|
13967
14683
|
${ResetStyle}
|
|
13968
14684
|
${ContainerStyle}
|
|
13969
14685
|
`;
|
|
@@ -15495,6 +16211,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
15495
16211
|
);
|
|
15496
16212
|
const [promoCode, setPromoCode] = useState8(null);
|
|
15497
16213
|
const [isPaymentMethodRequired, setIsPaymentMethodRequired] = useState8(false);
|
|
16214
|
+
const [willScheduleDowngrade, setWillScheduleDowngrade] = useState8(false);
|
|
15498
16215
|
const willTrialWithoutPaymentMethod = useMemo9(
|
|
15499
16216
|
() => shouldTrial && !trialPaymentMethodRequired,
|
|
15500
16217
|
[shouldTrial, trialPaymentMethodRequired]
|
|
@@ -15706,6 +16423,7 @@ var CheckoutDialog = ({ top }) => {
|
|
|
15706
16423
|
if (response) {
|
|
15707
16424
|
setCharges(response.data.finance);
|
|
15708
16425
|
setIsPaymentMethodRequired(response.data.paymentMethodRequired);
|
|
16426
|
+
setWillScheduleDowngrade(response.data.isScheduledDowngrade);
|
|
15709
16427
|
}
|
|
15710
16428
|
if (typeof updates.promoCode !== "undefined") {
|
|
15711
16429
|
setPromoCode(code);
|
|
@@ -15729,7 +16447,14 @@ var CheckoutDialog = ({ top }) => {
|
|
|
15729
16447
|
setError(t2("Quantity is required."));
|
|
15730
16448
|
return;
|
|
15731
16449
|
case "self-service downgrade not permitted":
|
|
15732
|
-
setError(t2("
|
|
16450
|
+
setError(t2("Downgrade not permitted."));
|
|
16451
|
+
return;
|
|
16452
|
+
}
|
|
16453
|
+
}
|
|
16454
|
+
if (err2.response.status === 409) {
|
|
16455
|
+
switch (data2.error) {
|
|
16456
|
+
case "cannot purchase pay-in-advance entitlements while a scheduled downgrade is pending; cancel the scheduled downgrade first":
|
|
16457
|
+
setError(t2("Downgrade pending."));
|
|
15733
16458
|
return;
|
|
15734
16459
|
}
|
|
15735
16460
|
}
|
|
@@ -16240,7 +16965,8 @@ var CheckoutDialog = ({ top }) => {
|
|
|
16240
16965
|
updatePromoCode,
|
|
16241
16966
|
shouldTrial,
|
|
16242
16967
|
setConfirmPaymentIntent: setConfirmPaymentIntentProps,
|
|
16243
|
-
willTrialWithoutPaymentMethod
|
|
16968
|
+
willTrialWithoutPaymentMethod,
|
|
16969
|
+
willScheduleDowngrade
|
|
16244
16970
|
}
|
|
16245
16971
|
)
|
|
16246
16972
|
] })
|
|
@@ -16304,7 +17030,7 @@ import {
|
|
|
16304
17030
|
import { useState as useState10 } from "react";
|
|
16305
17031
|
|
|
16306
17032
|
// src/components/shared/payment-form/styles.ts
|
|
16307
|
-
var Label =
|
|
17033
|
+
var Label = ct.label`
|
|
16308
17034
|
display: flex;
|
|
16309
17035
|
margin-bottom: 0.75rem;
|
|
16310
17036
|
font-family: "Public Sans", system-ui, sans-serif;
|
|
@@ -16316,7 +17042,7 @@ var Label = lt.label`
|
|
|
16316
17042
|
color: ${({ theme }) => isLightColor(theme.card.background) ? "#000000" : "#cdd6f4"};
|
|
16317
17043
|
touch-action: manipulation;
|
|
16318
17044
|
`;
|
|
16319
|
-
var Input2 =
|
|
17045
|
+
var Input2 = ct.input`
|
|
16320
17046
|
padding: 0.75rem;
|
|
16321
17047
|
background-color: white;
|
|
16322
17048
|
border-radius: 0.5rem;
|
|
@@ -16756,6 +17482,7 @@ var NoPaymentRequired = ({
|
|
|
16756
17482
|
isDisabled,
|
|
16757
17483
|
isLoading,
|
|
16758
17484
|
isSticky = false,
|
|
17485
|
+
willScheduleDowngrade = false,
|
|
16759
17486
|
onClick
|
|
16760
17487
|
}) => {
|
|
16761
17488
|
const { t: t2 } = useTranslation();
|
|
@@ -16768,11 +17495,12 @@ var NoPaymentRequired = ({
|
|
|
16768
17495
|
$size: isSticky ? "sm" : "md",
|
|
16769
17496
|
$fullWidth: true,
|
|
16770
17497
|
$isLoading: isLoading,
|
|
16771
|
-
children: t2("Subscribe and close")
|
|
17498
|
+
children: willScheduleDowngrade ? t2("Schedule downgrade") : t2("Subscribe and close")
|
|
16772
17499
|
}
|
|
16773
17500
|
);
|
|
16774
17501
|
};
|
|
16775
17502
|
var CheckoutStageButton = ({
|
|
17503
|
+
canCheckout,
|
|
16776
17504
|
checkout,
|
|
16777
17505
|
checkoutStage,
|
|
16778
17506
|
checkoutStages,
|
|
@@ -16786,10 +17514,11 @@ var CheckoutStageButton = ({
|
|
|
16786
17514
|
setCheckoutStage,
|
|
16787
17515
|
trialPaymentMethodRequired,
|
|
16788
17516
|
shouldTrial,
|
|
16789
|
-
willTrialWithoutPaymentMethod
|
|
17517
|
+
willTrialWithoutPaymentMethod,
|
|
17518
|
+
willScheduleDowngrade
|
|
16790
17519
|
}) => {
|
|
16791
17520
|
const { t: t2 } = useTranslation();
|
|
16792
|
-
const isDisabled = isLoading || !hasPlan || inEditMode;
|
|
17521
|
+
const isDisabled = isLoading || !hasPlan || inEditMode || !canCheckout;
|
|
16793
17522
|
const getNextStageId = (currentStageId) => {
|
|
16794
17523
|
if (!checkoutStages) return void 0;
|
|
16795
17524
|
const currentIndex = checkoutStages.findIndex(
|
|
@@ -17060,7 +17789,7 @@ var CheckoutStageButton = ({
|
|
|
17060
17789
|
onClick: checkout,
|
|
17061
17790
|
$fullWidth: true,
|
|
17062
17791
|
$isLoading: isLoading,
|
|
17063
|
-
children: willTrialWithoutPaymentMethod ? t2("Start trial") : t2("Pay now")
|
|
17792
|
+
children: willScheduleDowngrade ? t2("Schedule downgrade") : willTrialWithoutPaymentMethod ? t2("Start trial") : t2("Pay now")
|
|
17064
17793
|
}
|
|
17065
17794
|
);
|
|
17066
17795
|
}
|
|
@@ -17222,6 +17951,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
17222
17951
|
showHeader = true,
|
|
17223
17952
|
shouldTrial = false,
|
|
17224
17953
|
willTrialWithoutPaymentMethod = false,
|
|
17954
|
+
willScheduleDowngrade = false,
|
|
17225
17955
|
setConfirmPaymentIntent
|
|
17226
17956
|
}, ref) => {
|
|
17227
17957
|
const portal = portalRef?.current || document.body;
|
|
@@ -17565,12 +18295,14 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
17565
18295
|
}, [t2, unsubscribe, setError, setIsLoading, setLayout]);
|
|
17566
18296
|
const isSelectedPlanTrialable = selectedPlan?.companyCanTrial === true && selectedPlan?.isTrialable === true;
|
|
17567
18297
|
const button = useMemo13(() => {
|
|
18298
|
+
const canCheckout = error !== t2("Downgrade not permitted.");
|
|
17568
18299
|
const isSticky = !isButtonInView;
|
|
17569
18300
|
switch (layout) {
|
|
17570
18301
|
case "checkout":
|
|
17571
18302
|
return /* @__PURE__ */ jsx30(
|
|
17572
18303
|
CheckoutStageButton,
|
|
17573
18304
|
{
|
|
18305
|
+
canCheckout,
|
|
17574
18306
|
isLoading,
|
|
17575
18307
|
isSticky,
|
|
17576
18308
|
inEditMode: settings.mode === "edit",
|
|
@@ -17583,6 +18315,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
17583
18315
|
isSelectedPlanTrialable,
|
|
17584
18316
|
trialPaymentMethodRequired,
|
|
17585
18317
|
willTrialWithoutPaymentMethod,
|
|
18318
|
+
willScheduleDowngrade,
|
|
17586
18319
|
shouldTrial,
|
|
17587
18320
|
checkout: handleCheckout
|
|
17588
18321
|
}
|
|
@@ -17606,6 +18339,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
17606
18339
|
t2,
|
|
17607
18340
|
layout,
|
|
17608
18341
|
settings.mode,
|
|
18342
|
+
error,
|
|
17609
18343
|
isLoading,
|
|
17610
18344
|
isButtonInView,
|
|
17611
18345
|
checkoutStage,
|
|
@@ -17617,6 +18351,7 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
17617
18351
|
willTrialWithoutPaymentMethod,
|
|
17618
18352
|
shouldTrial,
|
|
17619
18353
|
isPaymentMethodRequired,
|
|
18354
|
+
willScheduleDowngrade,
|
|
17620
18355
|
paymentMethod,
|
|
17621
18356
|
paymentMethodId,
|
|
17622
18357
|
handleCheckout,
|
|
@@ -18162,8 +18897,30 @@ var SubscriptionSidebar = forwardRef7(
|
|
|
18162
18897
|
portal
|
|
18163
18898
|
)
|
|
18164
18899
|
] }),
|
|
18165
|
-
!isLoading && error && /* @__PURE__ */
|
|
18166
|
-
|
|
18900
|
+
!isLoading && error && /* @__PURE__ */ jsxs23(Flex, { $flexDirection: "column", children: [
|
|
18901
|
+
/* @__PURE__ */ jsx30(Text, { $weight: 500, $color: "#DB6669", children: error }),
|
|
18902
|
+
error === t2("Downgrade not permitted.") && data?.preventSelfServiceDowngrade && data?.preventSelfServiceDowngradeUrl && data?.preventSelfServiceDowngradeButtonText && /* @__PURE__ */ jsx30(
|
|
18903
|
+
Text,
|
|
18904
|
+
{
|
|
18905
|
+
as: "a",
|
|
18906
|
+
display: "link",
|
|
18907
|
+
href: data.preventSelfServiceDowngradeUrl,
|
|
18908
|
+
children: data.preventSelfServiceDowngradeButtonText
|
|
18909
|
+
}
|
|
18910
|
+
)
|
|
18911
|
+
] }),
|
|
18912
|
+
layout !== "unsubscribe" && /* @__PURE__ */ jsx30(Box, { $opacity: "0.625", children: /* @__PURE__ */ jsx30(Text, { children: willScheduleDowngrade && selectedPlan?.name && billingSubscription ? t2(
|
|
18913
|
+
"You will be downgraded at the end of your billing period.",
|
|
18914
|
+
{
|
|
18915
|
+
plan: selectedPlan.name,
|
|
18916
|
+
date: toPrettyDate(
|
|
18917
|
+
new Date(billingSubscription.periodEnd * 1e3),
|
|
18918
|
+
{
|
|
18919
|
+
month: "numeric"
|
|
18920
|
+
}
|
|
18921
|
+
)
|
|
18922
|
+
}
|
|
18923
|
+
) : subscriptionPrice && // TODO: localize
|
|
18167
18924
|
`You will be billed ${subscriptionPrice} ${usageBasedEntitlements.length > 0 ? "plus usage based costs" : ""} for this subscription
|
|
18168
18925
|
every ${planPeriod} ${periodStart ? `on the ${formatOrdinal(periodStart.getDate())}` : ""} ${planPeriod === "year" && periodStart ? `of ${getMonthName(periodStart)}` : ""} unless you unsubscribe.` }) })
|
|
18169
18926
|
]
|
|
@@ -18377,6 +19134,9 @@ import { jsx as jsx32 } from "react/jsx-runtime";
|
|
|
18377
19134
|
var UsageViolationText = ({ violations }) => {
|
|
18378
19135
|
const { t: t2 } = useTranslation();
|
|
18379
19136
|
const { settings } = useEmbed();
|
|
19137
|
+
if (violations.length === 0) {
|
|
19138
|
+
return null;
|
|
19139
|
+
}
|
|
18380
19140
|
return /* @__PURE__ */ jsx32(
|
|
18381
19141
|
Text,
|
|
18382
19142
|
{
|
|
@@ -18530,7 +19290,7 @@ var RenderLayout = ({ children }) => {
|
|
|
18530
19290
|
};
|
|
18531
19291
|
|
|
18532
19292
|
// src/components/layout/viewport/styles.ts
|
|
18533
|
-
var StyledViewport =
|
|
19293
|
+
var StyledViewport = ct.div.withConfig({
|
|
18534
19294
|
shouldForwardProp: (prop) => !["$numberOfColumns", "numberOfColumns"].includes(prop)
|
|
18535
19295
|
})`
|
|
18536
19296
|
display: grid;
|
|
@@ -18543,7 +19303,7 @@ var StyledViewport = lt.div.withConfig({
|
|
|
18543
19303
|
}
|
|
18544
19304
|
|
|
18545
19305
|
@container (min-width: 768px) {
|
|
18546
|
-
grid-template-columns: ${({ theme }) =>
|
|
19306
|
+
grid-template-columns: ${({ theme }) => st`repeat(${theme.numberOfColumns}, minmax(300px, 1fr))`};
|
|
18547
19307
|
}
|
|
18548
19308
|
`;
|
|
18549
19309
|
|
|
@@ -19116,7 +19876,7 @@ function resolveDesignProps3(props) {
|
|
|
19116
19876
|
function formatInvoices(invoices, options) {
|
|
19117
19877
|
const { hideUpcoming = true } = options || {};
|
|
19118
19878
|
const now = /* @__PURE__ */ new Date();
|
|
19119
|
-
return (invoices || []).filter(({ dueDate }) => !hideUpcoming || dueDate && +dueDate <= +now).sort((
|
|
19879
|
+
return (invoices || []).filter(({ dueDate }) => !hideUpcoming || dueDate && +dueDate <= +now).sort((a3, b3) => a3.dueDate && b3.dueDate ? +b3.dueDate - +a3.dueDate : 1).map(({ amountDue, dueDate, url, currency }) => ({
|
|
19120
19880
|
amount: formatCurrency(amountDue, currency),
|
|
19121
19881
|
date: dueDate ? toPrettyDate(dueDate) : void 0,
|
|
19122
19882
|
url: url || void 0
|
|
@@ -19369,14 +20129,14 @@ var PriceDetails = ({
|
|
|
19369
20129
|
};
|
|
19370
20130
|
|
|
19371
20131
|
// src/components/elements/metered-features/styles.ts
|
|
19372
|
-
var Container2 =
|
|
20132
|
+
var Container2 = ct.div`
|
|
19373
20133
|
display: flex;
|
|
19374
20134
|
flex-direction: column;
|
|
19375
20135
|
|
|
19376
20136
|
&:last-child {
|
|
19377
20137
|
${({ theme }) => {
|
|
19378
20138
|
const borderRadius = `${theme.card.borderRadius / TEXT_BASE_SIZE}rem`;
|
|
19379
|
-
return theme.sectionLayout === "merged" &&
|
|
20139
|
+
return theme.sectionLayout === "merged" && st`
|
|
19380
20140
|
overflow: hidden;
|
|
19381
20141
|
border-bottom-left-radius: ${borderRadius};
|
|
19382
20142
|
border-bottom-right-radius: ${borderRadius};
|
|
@@ -20087,7 +20847,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
|
|
|
20087
20847
|
}
|
|
20088
20848
|
stripe._registerWrapper({
|
|
20089
20849
|
name: "stripe-js",
|
|
20090
|
-
version: "8.
|
|
20850
|
+
version: "8.8.0",
|
|
20091
20851
|
startTime
|
|
20092
20852
|
});
|
|
20093
20853
|
};
|
|
@@ -20165,7 +20925,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
|
|
|
20165
20925
|
var version = runtimeVersionToUrlVersion(maybeStripe.version);
|
|
20166
20926
|
var expectedVersion = RELEASE_TRAIN;
|
|
20167
20927
|
if (isTestKey && version !== expectedVersion) {
|
|
20168
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.
|
|
20928
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.8.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
20169
20929
|
}
|
|
20170
20930
|
var stripe = maybeStripe.apply(void 0, args);
|
|
20171
20931
|
registerWrapper(stripe, startTime);
|
|
@@ -20822,7 +21582,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
|
|
|
20822
21582
|
)
|
|
20823
21583
|
]
|
|
20824
21584
|
}
|
|
20825
|
-
) : willSubscriptionCancel
|
|
21585
|
+
) : willSubscriptionCancel ? /* @__PURE__ */ jsxs37(
|
|
20826
21586
|
Notice,
|
|
20827
21587
|
{
|
|
20828
21588
|
as: Flex,
|
|
@@ -20838,7 +21598,8 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
|
|
|
20838
21598
|
{
|
|
20839
21599
|
as: "p",
|
|
20840
21600
|
$size: 0.8125 * settings.theme.typography.text.fontSize,
|
|
20841
|
-
children: t2("Access to plan will end
|
|
21601
|
+
children: t2("Access to plan will end.", {
|
|
21602
|
+
plan: currentPlan?.name || "plan",
|
|
20842
21603
|
date: toPrettyDate(
|
|
20843
21604
|
new Date(billingSubscription.cancelAt * 1e3),
|
|
20844
21605
|
{
|
|
@@ -20850,6 +21611,37 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
|
|
|
20850
21611
|
)
|
|
20851
21612
|
]
|
|
20852
21613
|
}
|
|
21614
|
+
) : data?.company?.scheduledDowngrade?.toPlanName && /* @__PURE__ */ jsxs37(
|
|
21615
|
+
Notice,
|
|
21616
|
+
{
|
|
21617
|
+
as: Flex,
|
|
21618
|
+
$flexDirection: "column",
|
|
21619
|
+
$gap: "0.5rem",
|
|
21620
|
+
$padding: "1.5rem",
|
|
21621
|
+
$textAlign: "center",
|
|
21622
|
+
$backgroundColor: isLightBackground ? darken(settings.theme.card.background, 0.04) : lighten(settings.theme.card.background, 0.04),
|
|
21623
|
+
children: [
|
|
21624
|
+
/* @__PURE__ */ jsx48(Text, { as: "h3", display: "heading3", children: t2("Downgrade to plan scheduled", {
|
|
21625
|
+
plan: data.company.scheduledDowngrade.toPlanName
|
|
21626
|
+
}) }),
|
|
21627
|
+
typeof billingSubscription?.periodEnd === "number" && /* @__PURE__ */ jsx48(
|
|
21628
|
+
Text,
|
|
21629
|
+
{
|
|
21630
|
+
as: "p",
|
|
21631
|
+
$size: 0.8125 * settings.theme.typography.text.fontSize,
|
|
21632
|
+
children: t2("Access to plan will end.", {
|
|
21633
|
+
plan: data.company.scheduledDowngrade.fromPlanName,
|
|
21634
|
+
date: toPrettyDate(
|
|
21635
|
+
new Date(billingSubscription.periodEnd * 1e3),
|
|
21636
|
+
{
|
|
21637
|
+
month: "numeric"
|
|
21638
|
+
}
|
|
21639
|
+
)
|
|
21640
|
+
})
|
|
21641
|
+
}
|
|
21642
|
+
)
|
|
21643
|
+
]
|
|
21644
|
+
}
|
|
20853
21645
|
),
|
|
20854
21646
|
/* @__PURE__ */ jsxs37(
|
|
20855
21647
|
Element,
|
|
@@ -21028,7 +21820,7 @@ var PlanManager = forwardRef14(({ children, className, portal, ...rest }, ref) =
|
|
|
21028
21820
|
}
|
|
21029
21821
|
),
|
|
21030
21822
|
/* @__PURE__ */ jsx48(Flex, { $flexDirection: "column", $gap: "1rem", children: creditGroups.bundles.map((group, groupIndex) => {
|
|
21031
|
-
const bundle = group?.bundleId ? creditBundles.find((
|
|
21823
|
+
const bundle = group?.bundleId ? creditBundles.find((b3) => b3.id === group.bundleId) : void 0;
|
|
21032
21824
|
return /* @__PURE__ */ jsxs37(
|
|
21033
21825
|
Flex,
|
|
21034
21826
|
{
|
|
@@ -22494,9 +23286,9 @@ function TreeDesc(dyn_tree, stat_desc) {
|
|
|
22494
23286
|
var d_code = (dist) => {
|
|
22495
23287
|
return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];
|
|
22496
23288
|
};
|
|
22497
|
-
var put_short = (s,
|
|
22498
|
-
s.pending_buf[s.pending++] =
|
|
22499
|
-
s.pending_buf[s.pending++] =
|
|
23289
|
+
var put_short = (s, w3) => {
|
|
23290
|
+
s.pending_buf[s.pending++] = w3 & 255;
|
|
23291
|
+
s.pending_buf[s.pending++] = w3 >>> 8 & 255;
|
|
22500
23292
|
};
|
|
22501
23293
|
var send_bits = (s, value, length2) => {
|
|
22502
23294
|
if (s.bi_valid > Buf_size - length2) {
|
|
@@ -22509,11 +23301,11 @@ var send_bits = (s, value, length2) => {
|
|
|
22509
23301
|
s.bi_valid += length2;
|
|
22510
23302
|
}
|
|
22511
23303
|
};
|
|
22512
|
-
var send_code = (s,
|
|
23304
|
+
var send_code = (s, c3, tree) => {
|
|
22513
23305
|
send_bits(
|
|
22514
23306
|
s,
|
|
22515
|
-
tree[
|
|
22516
|
-
tree[
|
|
23307
|
+
tree[c3 * 2],
|
|
23308
|
+
tree[c3 * 2 + 1]
|
|
22517
23309
|
/*.Len*/
|
|
22518
23310
|
);
|
|
22519
23311
|
};
|
|
@@ -22545,8 +23337,8 @@ var gen_bitlen = (s, desc) => {
|
|
|
22545
23337
|
const extra = desc.stat_desc.extra_bits;
|
|
22546
23338
|
const base = desc.stat_desc.extra_base;
|
|
22547
23339
|
const max_length = desc.stat_desc.max_length;
|
|
22548
|
-
let
|
|
22549
|
-
let n,
|
|
23340
|
+
let h3;
|
|
23341
|
+
let n, m3;
|
|
22550
23342
|
let bits;
|
|
22551
23343
|
let xbits;
|
|
22552
23344
|
let f2;
|
|
@@ -22555,8 +23347,8 @@ var gen_bitlen = (s, desc) => {
|
|
|
22555
23347
|
s.bl_count[bits] = 0;
|
|
22556
23348
|
}
|
|
22557
23349
|
tree[s.heap[s.heap_max] * 2 + 1] = 0;
|
|
22558
|
-
for (
|
|
22559
|
-
n = s.heap[
|
|
23350
|
+
for (h3 = s.heap_max + 1; h3 < HEAP_SIZE$1; h3++) {
|
|
23351
|
+
n = s.heap[h3];
|
|
22560
23352
|
bits = tree[tree[n * 2 + 1] * 2 + 1] + 1;
|
|
22561
23353
|
if (bits > max_length) {
|
|
22562
23354
|
bits = max_length;
|
|
@@ -22593,13 +23385,13 @@ var gen_bitlen = (s, desc) => {
|
|
|
22593
23385
|
for (bits = max_length; bits !== 0; bits--) {
|
|
22594
23386
|
n = s.bl_count[bits];
|
|
22595
23387
|
while (n !== 0) {
|
|
22596
|
-
|
|
22597
|
-
if (
|
|
23388
|
+
m3 = s.heap[--h3];
|
|
23389
|
+
if (m3 > max_code) {
|
|
22598
23390
|
continue;
|
|
22599
23391
|
}
|
|
22600
|
-
if (tree[
|
|
22601
|
-
s.opt_len += (bits - tree[
|
|
22602
|
-
tree[
|
|
23392
|
+
if (tree[m3 * 2 + 1] !== bits) {
|
|
23393
|
+
s.opt_len += (bits - tree[m3 * 2 + 1]) * tree[m3 * 2];
|
|
23394
|
+
tree[m3 * 2 + 1] = bits;
|
|
22603
23395
|
}
|
|
22604
23396
|
n--;
|
|
22605
23397
|
}
|
|
@@ -22708,26 +23500,26 @@ var bi_windup = (s) => {
|
|
|
22708
23500
|
s.bi_buf = 0;
|
|
22709
23501
|
s.bi_valid = 0;
|
|
22710
23502
|
};
|
|
22711
|
-
var smaller = (tree, n,
|
|
23503
|
+
var smaller = (tree, n, m3, depth) => {
|
|
22712
23504
|
const _n2 = n * 2;
|
|
22713
|
-
const _m2 =
|
|
22714
|
-
return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n] <= depth[
|
|
23505
|
+
const _m2 = m3 * 2;
|
|
23506
|
+
return tree[_n2] < tree[_m2] || tree[_n2] === tree[_m2] && depth[n] <= depth[m3];
|
|
22715
23507
|
};
|
|
22716
|
-
var pqdownheap = (s, tree,
|
|
22717
|
-
const
|
|
22718
|
-
let
|
|
22719
|
-
while (
|
|
22720
|
-
if (
|
|
22721
|
-
|
|
23508
|
+
var pqdownheap = (s, tree, k3) => {
|
|
23509
|
+
const v3 = s.heap[k3];
|
|
23510
|
+
let j3 = k3 << 1;
|
|
23511
|
+
while (j3 <= s.heap_len) {
|
|
23512
|
+
if (j3 < s.heap_len && smaller(tree, s.heap[j3 + 1], s.heap[j3], s.depth)) {
|
|
23513
|
+
j3++;
|
|
22722
23514
|
}
|
|
22723
|
-
if (smaller(tree,
|
|
23515
|
+
if (smaller(tree, v3, s.heap[j3], s.depth)) {
|
|
22724
23516
|
break;
|
|
22725
23517
|
}
|
|
22726
|
-
s.heap[
|
|
22727
|
-
|
|
22728
|
-
|
|
23518
|
+
s.heap[k3] = s.heap[j3];
|
|
23519
|
+
k3 = j3;
|
|
23520
|
+
j3 <<= 1;
|
|
22729
23521
|
}
|
|
22730
|
-
s.heap[
|
|
23522
|
+
s.heap[k3] = v3;
|
|
22731
23523
|
};
|
|
22732
23524
|
var compress_block = (s, ltree, dtree) => {
|
|
22733
23525
|
let dist;
|
|
@@ -22768,7 +23560,7 @@ var build_tree = (s, desc) => {
|
|
|
22768
23560
|
const stree = desc.stat_desc.static_tree;
|
|
22769
23561
|
const has_stree = desc.stat_desc.has_stree;
|
|
22770
23562
|
const elems = desc.stat_desc.elems;
|
|
22771
|
-
let n,
|
|
23563
|
+
let n, m3;
|
|
22772
23564
|
let max_code = -1;
|
|
22773
23565
|
let node2;
|
|
22774
23566
|
s.heap_len = 0;
|
|
@@ -22810,15 +23602,15 @@ var build_tree = (s, desc) => {
|
|
|
22810
23602
|
1
|
|
22811
23603
|
/*SMALLEST*/
|
|
22812
23604
|
);
|
|
22813
|
-
|
|
23605
|
+
m3 = s.heap[
|
|
22814
23606
|
1
|
|
22815
23607
|
/*SMALLEST*/
|
|
22816
23608
|
];
|
|
22817
23609
|
s.heap[--s.heap_max] = n;
|
|
22818
|
-
s.heap[--s.heap_max] =
|
|
22819
|
-
tree[node2 * 2] = tree[n * 2] + tree[
|
|
22820
|
-
s.depth[node2] = (s.depth[n] >= s.depth[
|
|
22821
|
-
tree[n * 2 + 1] = tree[
|
|
23610
|
+
s.heap[--s.heap_max] = m3;
|
|
23611
|
+
tree[node2 * 2] = tree[n * 2] + tree[m3 * 2];
|
|
23612
|
+
s.depth[node2] = (s.depth[n] >= s.depth[m3] ? s.depth[n] : s.depth[m3]) + 1;
|
|
23613
|
+
tree[n * 2 + 1] = tree[m3 * 2 + 1] = node2;
|
|
22822
23614
|
s.heap[
|
|
22823
23615
|
1
|
|
22824
23616
|
/*SMALLEST*/
|
|
@@ -23075,13 +23867,13 @@ var adler32 = (adler, buf, len, pos) => {
|
|
|
23075
23867
|
};
|
|
23076
23868
|
var adler32_1 = adler32;
|
|
23077
23869
|
var makeTable = () => {
|
|
23078
|
-
let
|
|
23870
|
+
let c3, table = [];
|
|
23079
23871
|
for (var n = 0; n < 256; n++) {
|
|
23080
|
-
|
|
23081
|
-
for (var
|
|
23082
|
-
|
|
23872
|
+
c3 = n;
|
|
23873
|
+
for (var k3 = 0; k3 < 8; k3++) {
|
|
23874
|
+
c3 = c3 & 1 ? 3988292384 ^ c3 >>> 1 : c3 >>> 1;
|
|
23083
23875
|
}
|
|
23084
|
-
table[n] =
|
|
23876
|
+
table[n] = c3;
|
|
23085
23877
|
}
|
|
23086
23878
|
return table;
|
|
23087
23879
|
};
|
|
@@ -23218,20 +24010,20 @@ var zero = (buf) => {
|
|
|
23218
24010
|
}
|
|
23219
24011
|
};
|
|
23220
24012
|
var slide_hash = (s) => {
|
|
23221
|
-
let n,
|
|
23222
|
-
let
|
|
24013
|
+
let n, m3;
|
|
24014
|
+
let p3;
|
|
23223
24015
|
let wsize = s.w_size;
|
|
23224
24016
|
n = s.hash_size;
|
|
23225
|
-
|
|
24017
|
+
p3 = n;
|
|
23226
24018
|
do {
|
|
23227
|
-
|
|
23228
|
-
s.head[
|
|
24019
|
+
m3 = s.head[--p3];
|
|
24020
|
+
s.head[p3] = m3 >= wsize ? m3 - wsize : 0;
|
|
23229
24021
|
} while (--n);
|
|
23230
24022
|
n = wsize;
|
|
23231
|
-
|
|
24023
|
+
p3 = n;
|
|
23232
24024
|
do {
|
|
23233
|
-
|
|
23234
|
-
s.prev[
|
|
24025
|
+
m3 = s.prev[--p3];
|
|
24026
|
+
s.prev[p3] = m3 >= wsize ? m3 - wsize : 0;
|
|
23235
24027
|
} while (--n);
|
|
23236
24028
|
};
|
|
23237
24029
|
var HASH_ZLIB = (s, prev2, data) => (prev2 << s.hash_shift ^ data) & s.hash_mask;
|
|
@@ -23260,12 +24052,12 @@ var flush_block_only = (s, last) => {
|
|
|
23260
24052
|
s.block_start = s.strstart;
|
|
23261
24053
|
flush_pending(s.strm);
|
|
23262
24054
|
};
|
|
23263
|
-
var put_byte = (s,
|
|
23264
|
-
s.pending_buf[s.pending++] =
|
|
24055
|
+
var put_byte = (s, b3) => {
|
|
24056
|
+
s.pending_buf[s.pending++] = b3;
|
|
23265
24057
|
};
|
|
23266
|
-
var putShortMSB = (s,
|
|
23267
|
-
s.pending_buf[s.pending++] =
|
|
23268
|
-
s.pending_buf[s.pending++] =
|
|
24058
|
+
var putShortMSB = (s, b3) => {
|
|
24059
|
+
s.pending_buf[s.pending++] = b3 >>> 8 & 255;
|
|
24060
|
+
s.pending_buf[s.pending++] = b3 & 255;
|
|
23269
24061
|
};
|
|
23270
24062
|
var read_buf = (strm, buf, start, size) => {
|
|
23271
24063
|
let len = strm.avail_in;
|
|
@@ -24310,9 +25102,9 @@ var assign2 = function(obj) {
|
|
|
24310
25102
|
if (typeof source !== "object") {
|
|
24311
25103
|
throw new TypeError(source + "must be non-object");
|
|
24312
25104
|
}
|
|
24313
|
-
for (const
|
|
24314
|
-
if (_has(source,
|
|
24315
|
-
obj[
|
|
25105
|
+
for (const p3 in source) {
|
|
25106
|
+
if (_has(source, p3)) {
|
|
25107
|
+
obj[p3] = source[p3];
|
|
24316
25108
|
}
|
|
24317
25109
|
}
|
|
24318
25110
|
}
|
|
@@ -24320,11 +25112,11 @@ var assign2 = function(obj) {
|
|
|
24320
25112
|
};
|
|
24321
25113
|
var flattenChunks = (chunks) => {
|
|
24322
25114
|
let len = 0;
|
|
24323
|
-
for (let i = 0,
|
|
25115
|
+
for (let i = 0, l3 = chunks.length; i < l3; i++) {
|
|
24324
25116
|
len += chunks[i].length;
|
|
24325
25117
|
}
|
|
24326
25118
|
const result = new Uint8Array(len);
|
|
24327
|
-
for (let i = 0, pos = 0,
|
|
25119
|
+
for (let i = 0, pos = 0, l3 = chunks.length; i < l3; i++) {
|
|
24328
25120
|
let chunk = chunks[i];
|
|
24329
25121
|
result.set(chunk, pos);
|
|
24330
25122
|
pos += chunk.length;
|
|
@@ -24342,50 +25134,50 @@ try {
|
|
|
24342
25134
|
STR_APPLY_UIA_OK = false;
|
|
24343
25135
|
}
|
|
24344
25136
|
var _utf8len = new Uint8Array(256);
|
|
24345
|
-
for (let
|
|
24346
|
-
_utf8len[
|
|
25137
|
+
for (let q3 = 0; q3 < 256; q3++) {
|
|
25138
|
+
_utf8len[q3] = q3 >= 252 ? 6 : q3 >= 248 ? 5 : q3 >= 240 ? 4 : q3 >= 224 ? 3 : q3 >= 192 ? 2 : 1;
|
|
24347
25139
|
}
|
|
24348
25140
|
_utf8len[254] = _utf8len[254] = 1;
|
|
24349
25141
|
var string2buf = (str) => {
|
|
24350
25142
|
if (typeof TextEncoder === "function" && TextEncoder.prototype.encode) {
|
|
24351
25143
|
return new TextEncoder().encode(str);
|
|
24352
25144
|
}
|
|
24353
|
-
let buf,
|
|
25145
|
+
let buf, c3, c22, m_pos, i, str_len = str.length, buf_len = 0;
|
|
24354
25146
|
for (m_pos = 0; m_pos < str_len; m_pos++) {
|
|
24355
|
-
|
|
24356
|
-
if ((
|
|
25147
|
+
c3 = str.charCodeAt(m_pos);
|
|
25148
|
+
if ((c3 & 64512) === 55296 && m_pos + 1 < str_len) {
|
|
24357
25149
|
c22 = str.charCodeAt(m_pos + 1);
|
|
24358
25150
|
if ((c22 & 64512) === 56320) {
|
|
24359
|
-
|
|
25151
|
+
c3 = 65536 + (c3 - 55296 << 10) + (c22 - 56320);
|
|
24360
25152
|
m_pos++;
|
|
24361
25153
|
}
|
|
24362
25154
|
}
|
|
24363
|
-
buf_len +=
|
|
25155
|
+
buf_len += c3 < 128 ? 1 : c3 < 2048 ? 2 : c3 < 65536 ? 3 : 4;
|
|
24364
25156
|
}
|
|
24365
25157
|
buf = new Uint8Array(buf_len);
|
|
24366
25158
|
for (i = 0, m_pos = 0; i < buf_len; m_pos++) {
|
|
24367
|
-
|
|
24368
|
-
if ((
|
|
25159
|
+
c3 = str.charCodeAt(m_pos);
|
|
25160
|
+
if ((c3 & 64512) === 55296 && m_pos + 1 < str_len) {
|
|
24369
25161
|
c22 = str.charCodeAt(m_pos + 1);
|
|
24370
25162
|
if ((c22 & 64512) === 56320) {
|
|
24371
|
-
|
|
25163
|
+
c3 = 65536 + (c3 - 55296 << 10) + (c22 - 56320);
|
|
24372
25164
|
m_pos++;
|
|
24373
25165
|
}
|
|
24374
25166
|
}
|
|
24375
|
-
if (
|
|
24376
|
-
buf[i++] =
|
|
24377
|
-
} else if (
|
|
24378
|
-
buf[i++] = 192 |
|
|
24379
|
-
buf[i++] = 128 |
|
|
24380
|
-
} else if (
|
|
24381
|
-
buf[i++] = 224 |
|
|
24382
|
-
buf[i++] = 128 |
|
|
24383
|
-
buf[i++] = 128 |
|
|
25167
|
+
if (c3 < 128) {
|
|
25168
|
+
buf[i++] = c3;
|
|
25169
|
+
} else if (c3 < 2048) {
|
|
25170
|
+
buf[i++] = 192 | c3 >>> 6;
|
|
25171
|
+
buf[i++] = 128 | c3 & 63;
|
|
25172
|
+
} else if (c3 < 65536) {
|
|
25173
|
+
buf[i++] = 224 | c3 >>> 12;
|
|
25174
|
+
buf[i++] = 128 | c3 >>> 6 & 63;
|
|
25175
|
+
buf[i++] = 128 | c3 & 63;
|
|
24384
25176
|
} else {
|
|
24385
|
-
buf[i++] = 240 |
|
|
24386
|
-
buf[i++] = 128 |
|
|
24387
|
-
buf[i++] = 128 |
|
|
24388
|
-
buf[i++] = 128 |
|
|
25177
|
+
buf[i++] = 240 | c3 >>> 18;
|
|
25178
|
+
buf[i++] = 128 | c3 >>> 12 & 63;
|
|
25179
|
+
buf[i++] = 128 | c3 >>> 6 & 63;
|
|
25180
|
+
buf[i++] = 128 | c3 & 63;
|
|
24389
25181
|
}
|
|
24390
25182
|
}
|
|
24391
25183
|
return buf;
|
|
@@ -24410,32 +25202,32 @@ var buf2string = (buf, max) => {
|
|
|
24410
25202
|
let i, out;
|
|
24411
25203
|
const utf16buf = new Array(len * 2);
|
|
24412
25204
|
for (out = 0, i = 0; i < len; ) {
|
|
24413
|
-
let
|
|
24414
|
-
if (
|
|
24415
|
-
utf16buf[out++] =
|
|
25205
|
+
let c3 = buf[i++];
|
|
25206
|
+
if (c3 < 128) {
|
|
25207
|
+
utf16buf[out++] = c3;
|
|
24416
25208
|
continue;
|
|
24417
25209
|
}
|
|
24418
|
-
let c_len = _utf8len[
|
|
25210
|
+
let c_len = _utf8len[c3];
|
|
24419
25211
|
if (c_len > 4) {
|
|
24420
25212
|
utf16buf[out++] = 65533;
|
|
24421
25213
|
i += c_len - 1;
|
|
24422
25214
|
continue;
|
|
24423
25215
|
}
|
|
24424
|
-
|
|
25216
|
+
c3 &= c_len === 2 ? 31 : c_len === 3 ? 15 : 7;
|
|
24425
25217
|
while (c_len > 1 && i < len) {
|
|
24426
|
-
|
|
25218
|
+
c3 = c3 << 6 | buf[i++] & 63;
|
|
24427
25219
|
c_len--;
|
|
24428
25220
|
}
|
|
24429
25221
|
if (c_len > 1) {
|
|
24430
25222
|
utf16buf[out++] = 65533;
|
|
24431
25223
|
continue;
|
|
24432
25224
|
}
|
|
24433
|
-
if (
|
|
24434
|
-
utf16buf[out++] =
|
|
25225
|
+
if (c3 < 65536) {
|
|
25226
|
+
utf16buf[out++] = c3;
|
|
24435
25227
|
} else {
|
|
24436
|
-
|
|
24437
|
-
utf16buf[out++] = 55296 |
|
|
24438
|
-
utf16buf[out++] = 56320 |
|
|
25228
|
+
c3 -= 65536;
|
|
25229
|
+
utf16buf[out++] = 55296 | c3 >> 10 & 1023;
|
|
25230
|
+
utf16buf[out++] = 56320 | c3 & 1023;
|
|
24439
25231
|
}
|
|
24440
25232
|
}
|
|
24441
25233
|
return buf2binstring(utf16buf, out);
|
|
@@ -25211,8 +26003,8 @@ var ENOUGH_LENS = 852;
|
|
|
25211
26003
|
var ENOUGH_DISTS = 592;
|
|
25212
26004
|
var MAX_WBITS = 15;
|
|
25213
26005
|
var DEF_WBITS = MAX_WBITS;
|
|
25214
|
-
var zswap32 = (
|
|
25215
|
-
return (
|
|
26006
|
+
var zswap32 = (q3) => {
|
|
26007
|
+
return (q3 >>> 24 & 255) + (q3 >>> 8 & 65280) + ((q3 & 65280) << 8) + ((q3 & 255) << 24);
|
|
25216
26008
|
};
|
|
25217
26009
|
function InflateState() {
|
|
25218
26010
|
this.strm = null;
|
|
@@ -26712,7 +27504,7 @@ var Error2 = ({ message }) => {
|
|
|
26712
27504
|
};
|
|
26713
27505
|
var SchematicEmbed = ({ id, accessToken }) => {
|
|
26714
27506
|
const [children, setChildren] = useState21(/* @__PURE__ */ jsx56(Loading, {}));
|
|
26715
|
-
const theme = useContext6(
|
|
27507
|
+
const theme = useContext6(Xe);
|
|
26716
27508
|
const {
|
|
26717
27509
|
data,
|
|
26718
27510
|
error,
|