@schematichq/schematic-components 2.36.1 → 2.38.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.
@@ -2300,9 +2300,9 @@ var init_stream = __esm({
2300
2300
  }
2301
2301
  });
2302
2302
 
2303
- // node_modules/.pnpm/styled-components@6.5.3_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/styled-components/dist/styled-components.cjs.js
2303
+ // node_modules/.pnpm/styled-components@6.6.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/styled-components/dist/styled-components.cjs.js
2304
2304
  var require_styled_components_cjs = __commonJS({
2305
- "node_modules/.pnpm/styled-components@6.5.3_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/styled-components/dist/styled-components.cjs.js"(exports) {
2305
+ "node_modules/.pnpm/styled-components@6.6.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/styled-components/dist/styled-components.cjs.js"(exports) {
2306
2306
  "use strict";
2307
2307
  Object.defineProperty(exports, "__esModule", { value: true });
2308
2308
  var e = (init_emotion_is_prop_valid_esm(), __toCommonJS(emotion_is_prop_valid_esm_exports));
@@ -2323,29 +2323,11 @@ var require_styled_components_cjs = __commonJS({
2323
2323
  }
2324
2324
  }), t3.default = e2, Object.freeze(t3);
2325
2325
  }
2326
- var r;
2327
- var i;
2328
- var l = /* @__PURE__ */ o(e);
2329
- var a = /* @__PURE__ */ o(t2);
2330
- var c = /* @__PURE__ */ s(n);
2331
- var u = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
2332
- var d = "active";
2333
- var h = "data-styled-version";
2334
- var p = "6.5.3";
2335
- var f = "/*!sc*/\n";
2336
- var m = "undefined" != typeof window && "undefined" != typeof document;
2337
- var y = void 0 === a.default.createContext;
2338
- function g(e2) {
2339
- if ("undefined" != typeof process && void 0 !== process.env) {
2340
- const t3 = process.env[e2];
2341
- if (void 0 !== t3 && "" !== t3) return "false" !== t3;
2342
- }
2343
- }
2344
- var v = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (i = null !== (r = g("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== r ? r : g("SC_DISABLE_SPEEDY")) && void 0 !== i ? i : "undefined" != typeof process && void 0 !== process.env && true);
2345
- var S = "sc-keyframes-";
2346
- var b = {};
2347
- var w = 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. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://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\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledCompoent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n" } : {};
2348
- function C(e2, ...t3) {
2326
+ var r = /* @__PURE__ */ o(e);
2327
+ var i = /* @__PURE__ */ o(t2);
2328
+ var l = /* @__PURE__ */ s(n);
2329
+ var a = 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. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://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\n", 18: "Accessing `useTheme` hook outside of a `<ThemeProvider>` element.\n\n```jsx\nimport { useTheme } from 'styled-components';\nexport function StyledComponent({ children }) {\n const theme = useTheme();\n return <div style={{ width: theme.sizes.full }}>{children}</div>;\n}\n\nimport { StyledComponent } from './StyledComponent';\nimport { theme } from './theme';\nexport function App() {\n return (\n <ThemeProvider theme={theme}>\n <StyledComponent />\n </ThemeProvider>\n );\n}\n```\n\nIf you need access to the theme in an uncertain composition scenario, `React.useContext(ThemeContext)` will not emit an error if there is no `ThemeProvider` ancestor.\n\n", 19: "styled-components loaded its browser build in a React Server Components environment. This usually happens when a route renders on the server with the edge runtime, or when a server bundle resolves the package's browser build. Remove `export const runtime = 'edge'`, or set it to `'nodejs'`, on every route that renders styled-components on the server, and make sure server code resolves the package's server build.\n\n", 20: "styled-components tried to create a `<style>` element on the server, where no `document` exists. This usually happens when a route renders on the server with the edge runtime, or when a server bundle resolves the package's browser build. Remove `export const runtime = 'edge'`, or set it to `'nodejs'`, on every route that renders styled-components on the server, and make sure server code resolves the package's server build.\n" } : {};
2330
+ function c(e2, ...t3) {
2349
2331
  return false ? new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e2} for more information.${t3.length > 0 ? ` Args: ${t3.join(", ")}` : ""}`) : new Error((function(...e3) {
2350
2332
  let t4 = e3[0];
2351
2333
  const n2 = [];
@@ -2353,28 +2335,47 @@ var require_styled_components_cjs = __commonJS({
2353
2335
  return n2.forEach((e4) => {
2354
2336
  t4 = t4.replace(/%[a-z]/, e4);
2355
2337
  }), t4;
2356
- })(w[e2], ...t3).trim());
2338
+ })(a[e2], ...t3).trim());
2339
+ }
2340
+ var u;
2341
+ var d;
2342
+ var h = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled";
2343
+ var p = "active";
2344
+ var f = "data-styled-version";
2345
+ var m = "6.6.0";
2346
+ var y = "/*!sc*/\n";
2347
+ var g = "undefined" != typeof window && "undefined" != typeof document;
2348
+ var v = void 0 === i.default.createContext;
2349
+ if (!v && !i.default.createContext) throw c(19);
2350
+ function b(e2) {
2351
+ if ("undefined" != typeof process && void 0 !== process.env) {
2352
+ const t3 = process.env[e2];
2353
+ if (void 0 !== t3 && "" !== t3) return "false" !== t3;
2354
+ }
2357
2355
  }
2358
- var N = 1 << 30;
2359
- var P = /* @__PURE__ */ new Map();
2356
+ var S = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : null !== (d = null !== (u = b("REACT_APP_SC_DISABLE_SPEEDY")) && void 0 !== u ? u : b("SC_DISABLE_SPEEDY")) && void 0 !== d ? d : "undefined" != typeof process && void 0 !== process.env && true);
2357
+ var w = "sc-keyframes-";
2358
+ var N = {};
2359
+ var C = 1 << 30;
2360
2360
  var O = /* @__PURE__ */ new Map();
2361
- var x = 1;
2362
- var E = (e2) => {
2363
- if (P.has(e2)) return P.get(e2);
2364
- for (; O.has(x); ) x++;
2365
- const t3 = x++;
2366
- if ((0 | t3) < 0 || t3 > N) throw C(16, `${t3}`);
2367
- return P.set(e2, t3), O.set(t3, e2), t3;
2361
+ var P = /* @__PURE__ */ new Map();
2362
+ var E = 1;
2363
+ var x = (e2) => {
2364
+ if (O.has(e2)) return O.get(e2);
2365
+ for (; P.has(E); ) E++;
2366
+ const t3 = E++;
2367
+ if ((0 | t3) < 0 || t3 > C) throw c(16, `${t3}`);
2368
+ return O.set(e2, t3), P.set(t3, e2), t3;
2368
2369
  };
2369
- var _ = (e2) => O.get(e2);
2370
- var I = (e2, t3) => {
2371
- x = t3 + 1, P.set(e2, t3), O.set(t3, e2);
2370
+ var _ = (e2) => P.get(e2);
2371
+ var A = (e2, t3) => {
2372
+ E = t3 + 1, O.set(e2, t3), P.set(t3, e2);
2372
2373
  };
2373
- var A = /invalid hook call/i;
2374
- var R = /* @__PURE__ */ new Set();
2375
- var $ = (e2, t3) => {
2374
+ var I = /invalid hook call/i;
2375
+ var $ = /* @__PURE__ */ new Set();
2376
+ var R = (e2, t3) => {
2376
2377
  if (true) {
2377
- if (y) return;
2378
+ if (v) return;
2378
2379
  const n2 = `The component ${e2}${t3 ? ` with the id of "${t3}"` : ""} has been created dynamically.
2379
2380
  You may see this warning because you've called styled inside another component.
2380
2381
  To resolve this only create new StyledComponents outside of any render method and function component.
@@ -2383,18 +2384,18 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2383
2384
  try {
2384
2385
  let e3 = true;
2385
2386
  console.error = (t4, ...s2) => {
2386
- A.test(t4) ? (e3 = false, R.delete(n2)) : o2(t4, ...s2);
2387
- }, "function" == typeof a.default.useState && a.default.useState(null), e3 && !R.has(n2) && (console.warn(n2), R.add(n2));
2387
+ I.test(t4) ? (e3 = false, $.delete(n2)) : o2(t4, ...s2);
2388
+ }, "function" == typeof i.default.useState && i.default.useState(null), e3 && !$.has(n2) && (console.warn(n2), $.add(n2));
2388
2389
  } catch (e3) {
2389
- A.test(e3.message) && R.delete(n2);
2390
+ I.test(e3.message) && $.delete(n2);
2390
2391
  } finally {
2391
2392
  console.error = o2;
2392
2393
  }
2393
2394
  }
2394
2395
  };
2395
2396
  var j = Object.freeze([]);
2396
- var T = Object.freeze({});
2397
- function k(e2, t3, n2 = T) {
2397
+ var k = Object.freeze({});
2398
+ function T(e2, t3, n2 = k) {
2398
2399
  return e2.theme !== n2.theme && e2.theme || t3 || n2.theme;
2399
2400
  }
2400
2401
  var D = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
@@ -2402,12 +2403,12 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2402
2403
  function V(e2) {
2403
2404
  return e2.replace(D, "-").replace(M, "");
2404
2405
  }
2405
- var G = /(a)(d)/gi;
2406
- var F = (e2) => String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
2406
+ var F = /(a)(d)/gi;
2407
+ var G = (e2) => String.fromCharCode(e2 + (e2 > 25 ? 39 : 97));
2407
2408
  function z(e2) {
2408
2409
  let t3, n2 = "";
2409
- for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 = F(t3 % 52) + n2;
2410
- return (F(t3 % 52) + n2).replace(G, "$1-$2");
2410
+ for (t3 = Math.abs(e2); t3 > 52; t3 = t3 / 52 | 0) n2 = G(t3 % 52) + n2;
2411
+ return (G(t3 % 52) + n2).replace(F, "$1-$2");
2411
2412
  }
2412
2413
  var W = 5381;
2413
2414
  var q = (e2, t3) => {
@@ -2477,11 +2478,11 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2477
2478
  }
2478
2479
  function fe(e2) {
2479
2480
  let t3 = "";
2480
- for (let n2 = 0; n2 < e2.length; n2++) t3 += e2[n2] + f;
2481
+ for (let n2 = 0; n2 < e2.length; n2++) t3 += e2[n2] + y;
2481
2482
  return t3;
2482
2483
  }
2483
2484
  function me(e2) {
2484
- return e2 ? e2.replaceAll(f, "") : e2;
2485
+ return e2 ? e2.replaceAll(y, "") : e2;
2485
2486
  }
2486
2487
  function ye(e2) {
2487
2488
  return null !== e2 && "object" == typeof e2 && e2.constructor.name === Object.name && !("props" in e2 && e2.$$typeof);
@@ -2493,14 +2494,14 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2493
2494
  return e2;
2494
2495
  }
2495
2496
  function ve(e2) {
2496
- if (!y) return null;
2497
- const t3 = a.default.cache;
2497
+ if (!v) return null;
2498
+ const t3 = i.default.cache;
2498
2499
  return t3 ? t3(e2) : null;
2499
2500
  }
2500
- function Se(e2, t3) {
2501
+ function be(e2, t3) {
2501
2502
  Object.defineProperty(e2, "toString", { value: t3 });
2502
2503
  }
2503
- var be = class {
2504
+ var Se = class {
2504
2505
  constructor(e2) {
2505
2506
  this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e2, this._cGroup = 0, this._cIndex = 0;
2506
2507
  }
@@ -2515,7 +2516,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2515
2516
  if (e2 >= this.groupSizes.length) {
2516
2517
  const t4 = this.groupSizes, n3 = t4.length;
2517
2518
  let o3 = n3;
2518
- for (; e2 >= o3; ) if (o3 <<= 1, o3 < 0) throw C(16, `${e2}`);
2519
+ for (; e2 >= o3; ) if (o3 <<= 1, o3 < 0) throw c(16, `${e2}`);
2519
2520
  this.groupSizes = new Uint32Array(o3), this.groupSizes.set(t4), this.length = o3;
2520
2521
  for (let e3 = n3; e3 < o3; e3++) this.groupSizes[e3] = 0;
2521
2522
  }
@@ -2535,70 +2536,84 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2535
2536
  let t3 = "";
2536
2537
  if (e2 >= this.length || 0 === this.groupSizes[e2]) return t3;
2537
2538
  const n2 = this.groupSizes[e2], o2 = this.indexOfGroup(e2), s2 = o2 + n2;
2538
- for (let e3 = o2; e3 < s2; e3++) t3 += this.tag.getRule(e3) + f;
2539
+ for (let e3 = o2; e3 < s2; e3++) t3 += this.tag.getRule(e3) + y;
2539
2540
  return t3;
2540
2541
  }
2541
2542
  };
2542
- var we = `style[${u}][${h}="${p}"]`;
2543
- var Ce = new RegExp(`^${u}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
2544
- var Ne = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
2543
+ var we = `style[${h}][${f}="${m}"]`;
2544
+ var Ne = new RegExp(`^${h}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`);
2545
+ var Ce = false;
2546
+ var Oe = (e2) => "undefined" != typeof ShadowRoot && e2 instanceof ShadowRoot || "host" in e2 && 11 === e2.nodeType;
2545
2547
  var Pe = (e2) => {
2546
2548
  if (!e2) return document;
2547
- if (Ne(e2)) return e2;
2549
+ if (Oe(e2)) return e2;
2548
2550
  if ("getRootNode" in e2) {
2549
2551
  const t3 = e2.getRootNode();
2550
- if (Ne(t3)) return t3;
2552
+ if (Oe(t3)) return t3;
2551
2553
  }
2552
2554
  return document;
2553
2555
  };
2554
- var Oe = (e2, t3, n2) => {
2556
+ var Ee = (e2, t3, n2) => {
2555
2557
  const o2 = n2.split(",");
2556
2558
  let s2;
2557
2559
  for (let n3 = 0, r2 = o2.length; n3 < r2; n3++) (s2 = o2[n3]) && e2.registerName(t3, s2);
2558
2560
  };
2559
2561
  var xe = (e2, t3) => {
2560
2562
  var n2;
2561
- const o2 = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(f), s2 = [];
2563
+ const o2 = (null !== (n2 = t3.textContent) && void 0 !== n2 ? n2 : "").split(y), s2 = [];
2562
2564
  for (let t4 = 0, n3 = o2.length; t4 < n3; t4++) {
2563
2565
  const n4 = o2[t4].trim();
2564
2566
  if (!n4) continue;
2565
- const r2 = n4.match(Ce);
2567
+ const r2 = n4.match(Ne);
2566
2568
  if (r2) {
2567
2569
  const t5 = 0 | parseInt(r2[1], 10), n5 = r2[2];
2568
- 0 !== t5 && (I(n5, t5), Oe(e2, n5, r2[3]), e2.getTag().insertRules(t5, s2)), s2.length = 0;
2570
+ 0 !== t5 && (A(n5, t5), Ee(e2, n5, r2[3]), e2.getTag().insertRules(t5, s2)), s2.length = 0;
2569
2571
  } else s2.push(n4);
2570
2572
  }
2571
2573
  };
2572
- var Ee = (e2) => {
2573
- const t3 = Pe(e2.options.target).querySelectorAll(we);
2574
- for (let n2 = 0, o2 = t3.length; n2 < o2; n2++) {
2575
- const o3 = t3[n2];
2576
- o3 && o3.getAttribute(u) !== d && (xe(e2, o3), o3.parentNode && o3.parentNode.removeChild(o3));
2574
+ var _e = (e2) => {
2575
+ const t3 = Pe(e2.options.target);
2576
+ ((e3) => {
2577
+ if (true) {
2578
+ if (Ce) return;
2579
+ const t4 = e3.querySelectorAll(`style[${h}]`);
2580
+ for (let e4 = 0, n3 = t4.length; e4 < n3; e4++) {
2581
+ if (t4[e4].getAttribute(h) === p) continue;
2582
+ const n4 = t4[e4].getAttribute(f);
2583
+ if (null !== n4 && n4 !== m) return Ce = true, void console.warn(`Found server-rendered styles from styled-components ${n4}, but this copy is ${m}. If both come from the same app, class names will not match and hydration will fail: make sure the server and the browser load the same version (run \`npm ls styled-components\` to find duplicates). Pages that intentionally host separate apps on different versions can ignore this.`);
2584
+ }
2585
+ }
2586
+ })(t3);
2587
+ const n2 = t3.querySelectorAll(we);
2588
+ for (let t4 = 0, o2 = n2.length; t4 < o2; t4++) {
2589
+ const o3 = n2[t4];
2590
+ o3 && o3.getAttribute(h) !== p && (xe(e2, o3), o3.parentNode && o3.parentNode.removeChild(o3));
2577
2591
  }
2578
2592
  };
2579
- var _e = false;
2593
+ var Ae = false;
2580
2594
  function Ie() {
2581
- if (false !== _e) return _e;
2595
+ if (false !== Ae) return Ae;
2582
2596
  if ("undefined" != typeof document) {
2583
2597
  const e2 = document.head.querySelector('meta[property="csp-nonce"]');
2584
- if (e2) return _e = e2.nonce || e2.getAttribute("content") || void 0;
2598
+ if (e2) return Ae = e2.nonce || e2.getAttribute("content") || void 0;
2585
2599
  const t3 = document.head.querySelector('meta[name="sc-nonce"]');
2586
- if (t3) return _e = t3.getAttribute("content") || void 0;
2600
+ if (t3) return Ae = t3.getAttribute("content") || void 0;
2587
2601
  }
2588
- return _e = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
2602
+ return Ae = "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : void 0;
2589
2603
  }
2590
- var Ae = (e2, t3) => {
2604
+ var $e = (e2, t3) => {
2605
+ if ("undefined" == typeof document) throw c(20);
2591
2606
  const n2 = document.head, o2 = e2 || n2, s2 = document.createElement("style"), r2 = ((e3) => {
2592
- const t4 = Array.from(e3.querySelectorAll(`style[${u}]`));
2607
+ const t4 = Array.from(e3.querySelectorAll(`style[${h}]`));
2593
2608
  return t4[t4.length - 1];
2594
2609
  })(o2), i2 = void 0 !== r2 ? r2.nextSibling : null;
2595
- s2.setAttribute(u, d), s2.setAttribute(h, p);
2610
+ s2.setAttribute(h, p), s2.setAttribute(f, m);
2596
2611
  const l2 = t3 || Ie();
2597
2612
  return l2 && s2.setAttribute("nonce", l2), o2.insertBefore(s2, i2), s2;
2598
2613
  };
2599
2614
  var Re = class {
2600
2615
  constructor(e2, t3) {
2601
- this.element = Ae(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
2616
+ this.element = $e(e2, t3), this.element.appendChild(document.createTextNode("")), this.sheet = ((e3) => {
2602
2617
  var t4;
2603
2618
  if (e3.sheet) return e3.sheet;
2604
2619
  const n2 = null !== (t4 = e3.getRootNode().styleSheets) && void 0 !== t4 ? t4 : document.styleSheets;
@@ -2606,7 +2621,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2606
2621
  const o3 = n2[t5];
2607
2622
  if (o3.ownerNode === e3) return o3;
2608
2623
  }
2609
- throw C(17);
2624
+ throw c(17);
2610
2625
  })(this.element), this.length = 0;
2611
2626
  }
2612
2627
  insertRule(e2, t3) {
@@ -2624,9 +2639,9 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2624
2639
  return t3 && t3.cssText ? t3.cssText : "";
2625
2640
  }
2626
2641
  };
2627
- var $e = class {
2642
+ var je = class {
2628
2643
  constructor(e2, t3) {
2629
- this.element = Ae(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
2644
+ this.element = $e(e2, t3), this.nodes = this.element.childNodes, this.length = 0;
2630
2645
  }
2631
2646
  insertRule(e2, t3) {
2632
2647
  if (e2 <= this.length && e2 >= 0) {
@@ -2642,7 +2657,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2642
2657
  return e2 < this.length ? this.nodes[e2].textContent : "";
2643
2658
  }
2644
2659
  };
2645
- var je = class {
2660
+ var ke = class {
2646
2661
  constructor(e2) {
2647
2662
  this.rules = [], this.length = 0;
2648
2663
  }
@@ -2656,14 +2671,14 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2656
2671
  return e2 < this.length ? this.rules[e2] : "";
2657
2672
  }
2658
2673
  };
2659
- var Te = m;
2660
- var ke = { isServer: !m, useCSSOMInjection: !v };
2661
- var De = class _De {
2674
+ var Te = g;
2675
+ var De = { isServer: !g, useCSSOMInjection: !S };
2676
+ var Me = class _Me {
2662
2677
  static registerId(e2) {
2663
- return E(e2);
2678
+ return x(e2);
2664
2679
  }
2665
- constructor(e2 = T, t3 = {}, n2) {
2666
- this.options = Object.assign(Object.assign({}, ke), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && m && Te && (Te = false, Ee(this)), Se(this, () => ((e3) => {
2680
+ constructor(e2 = k, t3 = {}, n2) {
2681
+ this.options = Object.assign(Object.assign({}, De), e2), this.gs = t3, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(n2), this.server = !!e2.isServer, !this.server && g && Te && (Te = false, _e(this)), be(this, () => ((e3) => {
2667
2682
  const t4 = e3.getTag(), { length: n3 } = t4;
2668
2683
  let o2 = "";
2669
2684
  for (let s2 = 0; s2 < n3; s2++) {
@@ -2673,26 +2688,26 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2673
2688
  if (void 0 === r2 || !r2.size) continue;
2674
2689
  const i2 = t4.getGroup(s2);
2675
2690
  if (0 === i2.length) continue;
2676
- const l2 = u + ".g" + s2 + '[id="' + n4 + '"]';
2691
+ const l2 = h + ".g" + s2 + '[id="' + n4 + '"]';
2677
2692
  let a2 = "";
2678
2693
  for (const e4 of r2) e4.length > 0 && (a2 += e4 + ",");
2679
- o2 += i2 + l2 + '{content:"' + a2 + '"}' + f;
2694
+ o2 += i2 + l2 + '{content:"' + a2 + '"}' + y;
2680
2695
  }
2681
2696
  return o2;
2682
2697
  })(this));
2683
2698
  }
2684
2699
  rehydrate() {
2685
- !this.server && m && Ee(this);
2700
+ !this.server && g && _e(this);
2686
2701
  }
2687
2702
  reconstructWithOptions(e2, t3 = true) {
2688
- const n2 = new _De(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
2689
- return n2.keyframeIds = new Set(this.keyframeIds), !this.server && m && e2.target !== this.options.target && Pe(this.options.target) !== Pe(e2.target) && Ee(n2), n2;
2703
+ const n2 = new _Me(Object.assign(Object.assign({}, this.options), e2), this.gs, t3 && this.names || void 0);
2704
+ return n2.keyframeIds = new Set(this.keyframeIds), !this.server && g && e2.target !== this.options.target && Pe(this.options.target) !== Pe(e2.target) && _e(n2), n2;
2690
2705
  }
2691
2706
  allocateGSInstance(e2) {
2692
2707
  return this.gs[e2] = (this.gs[e2] || 0) + 1;
2693
2708
  }
2694
2709
  getTag() {
2695
- return this.tag || (this.tag = (e2 = (({ isServer: e3, useCSSOMInjection: t3, target: n2, nonce: o2 }) => e3 ? new je(n2) : t3 ? new Re(n2, o2) : new $e(n2, o2))(this.options), new be(e2)));
2710
+ return this.tag || (this.tag = (e2 = (({ isServer: e3, useCSSOMInjection: t3, target: n2, nonce: o2 }) => e3 ? new ke(n2) : t3 ? new Re(n2, o2) : new je(n2, o2))(this.options), new Se(e2)));
2696
2711
  var e2;
2697
2712
  }
2698
2713
  hasNameForId(e2, t3) {
@@ -2700,30 +2715,30 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2700
2715
  return null !== (o2 = null === (n2 = this.names.get(e2)) || void 0 === n2 ? void 0 : n2.has(t3)) && void 0 !== o2 && o2;
2701
2716
  }
2702
2717
  registerName(e2, t3) {
2703
- E(e2), e2.startsWith(S) && this.keyframeIds.add(e2);
2718
+ x(e2), e2.startsWith(w) && this.keyframeIds.add(e2);
2704
2719
  const n2 = this.names.get(e2);
2705
2720
  n2 ? n2.add(t3) : this.names.set(e2, /* @__PURE__ */ new Set([t3]));
2706
2721
  }
2707
2722
  insertRules(e2, t3, n2) {
2708
- this.registerName(e2, t3), this.getTag().insertRules(E(e2), n2);
2723
+ this.registerName(e2, t3), this.getTag().insertRules(x(e2), n2);
2709
2724
  }
2710
2725
  clearNames(e2) {
2711
2726
  this.names.has(e2) && this.names.get(e2).clear();
2712
2727
  }
2713
2728
  clearRules(e2) {
2714
- this.getTag().clearGroup(E(e2)), this.clearNames(e2);
2729
+ this.getTag().clearGroup(x(e2)), this.clearNames(e2);
2715
2730
  }
2716
2731
  clearTag() {
2717
2732
  this.tag = void 0;
2718
2733
  }
2719
2734
  };
2720
- var Me = /* @__PURE__ */ new WeakSet();
2721
- var Ve = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
2735
+ var Ve = /* @__PURE__ */ new WeakSet();
2736
+ var Fe = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
2722
2737
  function Ge(e2, t3) {
2723
- return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in Ve || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
2738
+ return null == t3 || "boolean" == typeof t3 || "" === t3 ? "" : "number" != typeof t3 || 0 === t3 || e2 in Fe || e2.startsWith("--") ? String(t3).trim() : t3 + "px";
2724
2739
  }
2725
- var Fe = 47;
2726
- function ze(e2) {
2740
+ var ze = 47;
2741
+ function We(e2) {
2727
2742
  if (45 === e2.charCodeAt(0) && 45 === e2.charCodeAt(1)) return e2;
2728
2743
  let t3 = "";
2729
2744
  for (let n2 = 0; n2 < e2.length; n2++) {
@@ -2732,65 +2747,55 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2732
2747
  }
2733
2748
  return t3.startsWith("ms-") ? "-" + t3 : t3;
2734
2749
  }
2735
- var We = /* @__PURE__ */ Symbol.for("sc-keyframes");
2736
- function qe(e2) {
2737
- return "object" == typeof e2 && null !== e2 && We in e2;
2738
- }
2750
+ var qe = /* @__PURE__ */ Symbol.for("sc-keyframes");
2739
2751
  function Le(e2) {
2740
- return ce(e2) && !(e2.prototype && e2.prototype.isReactComponent);
2752
+ return "object" == typeof e2 && null !== e2 && qe in e2;
2741
2753
  }
2742
- var Be = (e2) => null == e2 || false === e2 || "" === e2;
2743
- var He = /* @__PURE__ */ Symbol.for("react.client.reference");
2744
- function Ue(e2) {
2745
- return e2.$$typeof === He;
2754
+ function Be(e2) {
2755
+ return ce(e2) && !(e2.prototype && e2.prototype.isReactComponent);
2746
2756
  }
2757
+ var He = (e2) => null == e2 || false === e2 || "" === e2;
2758
+ var Ue = /* @__PURE__ */ Symbol.for("react.client.reference");
2747
2759
  function Ye(e2) {
2760
+ return e2.$$typeof === Ue;
2761
+ }
2762
+ function Je(e2) {
2748
2763
  const t3 = e2.$$id, n2 = (t3 && t3.includes("#") ? t3.split("#").pop() : t3) || e2.name || "unknown";
2749
2764
  console.warn(`Interpolating a client component (${n2}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`);
2750
2765
  }
2751
- function Je(e2, t3) {
2766
+ function Xe(e2, t3) {
2752
2767
  for (const n2 in e2) {
2753
2768
  const o2 = e2[n2];
2754
- e2.hasOwnProperty(n2) && !Be(o2) && (Array.isArray(o2) && Me.has(o2) || ce(o2) ? t3.push(ze(n2) + ":", o2, ";") : ye(o2) ? (t3.push(n2 + " {"), Je(o2, t3), t3.push("}")) : t3.push(ze(n2) + ": " + Ge(n2, o2) + ";"));
2769
+ e2.hasOwnProperty(n2) && !He(o2) && (Array.isArray(o2) && Ve.has(o2) || ce(o2) ? t3.push(We(n2) + ":", o2, ";") : ye(o2) ? (t3.push(n2 + " {"), Xe(o2, t3), t3.push("}")) : t3.push(We(n2) + ": " + Ge(n2, o2) + ";"));
2755
2770
  }
2756
2771
  }
2757
- function Xe(e2, t3, n2, o2, s2 = []) {
2758
- if (Be(e2)) return s2;
2772
+ function Ze(e2, t3, n2, o2, s2 = []) {
2773
+ if (He(e2)) return s2;
2759
2774
  const r2 = typeof e2;
2760
2775
  if ("string" === r2) return s2.push(e2), s2;
2761
2776
  if ("function" === r2) {
2762
- if (Ue(e2)) return Ye(e2), s2;
2763
- if (Le(e2) && t3) {
2777
+ if (Ye(e2)) return Je(e2), s2;
2778
+ if (Be(e2) && t3) {
2764
2779
  const r3 = e2(t3);
2765
- return "object" != typeof r3 || Array.isArray(r3) || qe(r3) || ye(r3) || null === r3 || console.error(`${H(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), Xe(r3, t3, n2, o2, s2);
2780
+ return "object" != typeof r3 || Array.isArray(r3) || Le(r3) || ye(r3) || null === r3 || console.error(`${H(e2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), Ze(r3, t3, n2, o2, s2);
2766
2781
  }
2767
2782
  return s2.push(e2), s2;
2768
2783
  }
2769
2784
  if (Array.isArray(e2)) {
2770
- for (let r3 = 0; r3 < e2.length; r3++) Xe(e2[r3], t3, n2, o2, s2);
2785
+ for (let r3 = 0; r3 < e2.length; r3++) Ze(e2[r3], t3, n2, o2, s2);
2771
2786
  return s2;
2772
2787
  }
2773
- return de(e2) ? (s2.push(`.${e2.styledComponentId}`), s2) : qe(e2) ? (n2 ? (e2.inject(n2, o2), s2.push(e2.getName(o2))) : s2.push(e2), s2) : Ue(e2) ? (Ye(e2), s2) : ye(e2) ? e2.toString !== Object.prototype.toString ? (s2.push(e2.toString()), s2) : (Je(e2, s2), s2) : (s2.push(e2.toString()), s2);
2788
+ return de(e2) ? (s2.push(`.${e2.styledComponentId}`), s2) : Le(e2) ? (n2 ? (e2.inject(n2, o2), s2.push(e2.getName(o2))) : s2.push(e2), s2) : Ye(e2) ? (Je(e2), s2) : ye(e2) ? e2.toString !== Object.prototype.toString ? (s2.push(e2.toString()), s2) : (Xe(e2, s2), s2) : (s2.push(e2.toString()), s2);
2774
2789
  }
2775
- var Ze = L(p);
2776
- var Ke = y ? /* @__PURE__ */ new WeakMap() : null;
2777
- function Qe(e2, t3) {
2778
- if (!Ke) return null;
2779
- const n2 = Ke.get(e2);
2780
- if (!n2) return null;
2781
- const o2 = t3.names.get(e2.componentId);
2782
- if (!o2) return null;
2783
- let s2 = "";
2784
- for (const e3 of o2) {
2785
- const t4 = n2.get(e3);
2786
- if (!t4) return null;
2787
- s2 += t4;
2788
- }
2789
- return s2;
2790
+ var Ke = L(m);
2791
+ var Qe = v ? /* @__PURE__ */ new WeakMap() : null;
2792
+ function et(e2, t3) {
2793
+ var n2, o2;
2794
+ return null !== (o2 = null === (n2 = null == Qe ? void 0 : Qe.get(e2)) || void 0 === n2 ? void 0 : n2.get(t3)) && void 0 !== o2 ? o2 : null;
2790
2795
  }
2791
- var et = class {
2796
+ var tt = class {
2792
2797
  constructor(e2, t3, n2) {
2793
- this.rules = e2, this.componentId = t3, this.baseHash = q(Ze, t3), this.baseStyle = n2, De.registerId(t3);
2798
+ this.rules = e2, this.componentId = t3, this.baseHash = q(Ke, t3), this.baseStyle = n2, Me.registerId(t3);
2794
2799
  }
2795
2800
  generateAndInjectStyles(e2, t3, n2) {
2796
2801
  let o2 = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e2, t3, n2) : "";
@@ -2799,10 +2804,10 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2799
2804
  for (let o3 = 0; o3 < this.rules.length; o3++) {
2800
2805
  const r2 = this.rules[o3];
2801
2806
  if ("string" == typeof r2) s2 += r2;
2802
- else if (r2) if (Le(r2)) {
2807
+ else if (r2) if (Be(r2)) {
2803
2808
  const o4 = r2(e2);
2804
- "string" == typeof o4 ? s2 += o4 : null != o4 && false !== o4 && ("object" != typeof o4 || Array.isArray(o4) || qe(o4) || ye(o4) || console.error(`${H(r2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s2 += pe(Xe(o4, e2, t3, n2)));
2805
- } else s2 += pe(Xe(r2, e2, t3, n2));
2809
+ "string" == typeof o4 ? s2 += o4 : null != o4 && false !== o4 && ("object" != typeof o4 || Array.isArray(o4) || Le(o4) || ye(o4) || console.error(`${H(r2)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s2 += pe(Ze(o4, e2, t3, n2)));
2810
+ } else s2 += pe(Ze(r2, e2, t3, n2));
2806
2811
  }
2807
2812
  if (s2) {
2808
2813
  this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
@@ -2815,16 +2820,16 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2815
2820
  }
2816
2821
  this.dynamicNameCache.set(e3, r2);
2817
2822
  }
2818
- if (!t3.hasNameForId(this.componentId, r2)) if (y && (function(e4, t4) {
2823
+ if (!t3.hasNameForId(this.componentId, r2)) if (v && (function(e4, t4) {
2819
2824
  var n3, o3;
2820
- return null !== (o3 = null === (n3 = null == Ke ? void 0 : Ke.get(e4)) || void 0 === n3 ? void 0 : n3.has(t4)) && void 0 !== o3 && o3;
2825
+ return null !== (o3 = null === (n3 = null == Qe ? void 0 : Qe.get(e4)) || void 0 === n3 ? void 0 : n3.has(t4)) && void 0 !== o3 && o3;
2821
2826
  })(this, r2)) t3.registerName(this.componentId, r2);
2822
2827
  else {
2823
2828
  const e4 = n2(s2, "." + r2, void 0, this.componentId);
2824
- y && (function(e5, t4, n3) {
2825
- if (!Ke) return;
2826
- let o3 = Ke.get(e5);
2827
- o3 || (o3 = /* @__PURE__ */ new Map(), Ke.set(e5, o3)), o3.set(t4, fe(n3));
2829
+ v && (function(e5, t4, n3) {
2830
+ if (!Qe) return;
2831
+ let o3 = Qe.get(e5);
2832
+ o3 || (o3 = /* @__PURE__ */ new Map(), Qe.set(e5, o3)), o3.set(t4, fe(n3));
2828
2833
  })(this, r2, e4), t3.insertRules(this.componentId, r2, e4);
2829
2834
  }
2830
2835
  o2 = he(o2, r2);
@@ -2833,19 +2838,19 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2833
2838
  return o2;
2834
2839
  }
2835
2840
  };
2836
- var tt = /&/g;
2837
- function nt(e2, t3) {
2841
+ var nt = /&/g;
2842
+ function ot(e2, t3) {
2838
2843
  let n2 = 0;
2839
2844
  for (; --t3 >= 0 && 92 === e2.charCodeAt(t3); ) n2++;
2840
2845
  return !(1 & ~n2);
2841
2846
  }
2842
- function ot(e2) {
2847
+ function st(e2) {
2843
2848
  const t3 = e2.length;
2844
2849
  let n2 = "", o2 = 0, s2 = 0, r2 = 0, i2 = false, l2 = false;
2845
2850
  for (let a2 = 0; a2 < t3; a2++) {
2846
2851
  const c2 = e2.charCodeAt(a2);
2847
- if (0 !== r2 || i2 || c2 !== Fe || 42 !== e2.charCodeAt(a2 + 1)) if (i2) 42 === c2 && e2.charCodeAt(a2 + 1) === Fe && (i2 = false, a2++);
2848
- else if (34 !== c2 && 39 !== c2 || nt(e2, a2)) {
2852
+ if (0 !== r2 || i2 || c2 !== ze || 42 !== e2.charCodeAt(a2 + 1)) if (i2) 42 === c2 && e2.charCodeAt(a2 + 1) === ze && (i2 = false, a2++);
2853
+ else if (34 !== c2 && 39 !== c2 || ot(e2, a2)) {
2849
2854
  if (0 === r2) if (123 === c2) s2++;
2850
2855
  else if (125 === c2) {
2851
2856
  if (s2--, s2 < 0) {
@@ -2866,7 +2871,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2866
2871
  }
2867
2872
  return l2 || 0 !== s2 || 0 !== r2 ? (o2 < t3 && 0 === s2 && 0 === r2 && (n2 += e2.substring(o2)), n2) : e2;
2868
2873
  }
2869
- function st(e2, t3) {
2874
+ function rt(e2, t3) {
2870
2875
  const n2 = t3 + " ", o2 = "," + n2;
2871
2876
  for (let s2 = 0; s2 < e2.length; s2++) {
2872
2877
  const r2 = e2[s2];
@@ -2876,209 +2881,215 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
2876
2881
  for (let o3 = 0; o3 < e3.length; o3++) t4[o3] = n2 + e3[o3];
2877
2882
  r2.props = t4;
2878
2883
  }
2879
- Array.isArray(r2.children) && "@keyframes" !== r2.type && st(r2.children, t3);
2884
+ Array.isArray(r2.children) && "@keyframes" !== r2.type && rt(r2.children, t3);
2880
2885
  }
2881
2886
  return e2;
2882
2887
  }
2883
- function rt({ options: e2 = T, plugins: t3 = j } = T) {
2888
+ function it2({ options: e2 = k, plugins: t3 = j } = k) {
2884
2889
  let n2, o2, s2;
2885
2890
  const r2 = (e3, t4, s3) => s3.startsWith(o2) && s3.endsWith(o2) && s3.replaceAll(o2, "").length > 0 ? `.${n2}` : e3, i2 = t3.slice();
2886
2891
  i2.push((e3) => {
2887
- e3.type === c.RULESET && e3.value.includes("&") && (s2 || (s2 = new RegExp(`\\${o2}\\b`, "g")), e3.props[0] = e3.props[0].replace(tt, o2).replace(s2, r2));
2888
- }), e2.prefix && i2.push(c.prefixer), i2.push(c.stringify);
2889
- let l2 = [];
2890
- const a2 = c.middleware(i2.concat(c.rulesheet((e3) => l2.push(e3)))), u2 = (t4, r3 = "", i3 = "", u3 = "&") => {
2891
- n2 = u3, o2 = r3, s2 = void 0;
2892
+ e3.type === l.RULESET && e3.value.includes("&") && (s2 || (s2 = new RegExp(`\\${o2}\\b`, "g")), e3.props[0] = e3.props[0].replace(nt, o2).replace(s2, r2));
2893
+ }), e2.prefix && i2.push(l.prefixer), i2.push(l.stringify);
2894
+ let a2 = [];
2895
+ const u2 = l.middleware(i2.concat(l.rulesheet((e3) => a2.push(e3)))), d2 = (t4, r3 = "", i3 = "", c2 = "&") => {
2896
+ n2 = c2, o2 = r3, s2 = void 0;
2892
2897
  const d3 = (function(e3) {
2893
2898
  const t5 = -1 !== e3.indexOf("//"), n3 = -1 !== e3.indexOf("}");
2894
2899
  if (!t5 && !n3) return e3;
2895
- if (!t5) return ot(e3);
2900
+ if (!t5) return st(e3);
2896
2901
  const o3 = e3.length;
2897
- let s3 = "", r4 = 0, i4 = 0, l3 = 0, a3 = 0, c2 = 0, u4 = false;
2902
+ let s3 = "", r4 = 0, i4 = 0, l2 = 0, a3 = 0, c3 = 0, u3 = false;
2898
2903
  for (; i4 < o3; ) {
2899
2904
  const t6 = e3.charCodeAt(i4);
2900
- if (34 !== t6 && 39 !== t6 || nt(e3, i4)) if (0 === l3) if (t6 === Fe && i4 + 1 < o3 && 42 === e3.charCodeAt(i4 + 1)) {
2901
- for (i4 += 2; i4 + 1 < o3 && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== Fe); ) i4++;
2905
+ if (34 !== t6 && 39 !== t6 || ot(e3, i4)) if (0 === l2) if (t6 === ze && i4 + 1 < o3 && 42 === e3.charCodeAt(i4 + 1)) {
2906
+ for (i4 += 2; i4 + 1 < o3 && (42 !== e3.charCodeAt(i4) || e3.charCodeAt(i4 + 1) !== ze); ) i4++;
2902
2907
  i4 += 2;
2903
2908
  } else if (40 !== t6) if (41 !== t6) if (a3 > 0) i4++;
2904
- else if (42 === t6 && i4 + 1 < o3 && e3.charCodeAt(i4 + 1) === Fe) s3 += e3.substring(r4, i4), i4 += 2, r4 = i4, u4 = true;
2905
- else if (t6 === Fe && i4 + 1 < o3 && e3.charCodeAt(i4 + 1) === Fe) {
2909
+ else if (42 === t6 && i4 + 1 < o3 && e3.charCodeAt(i4 + 1) === ze) s3 += e3.substring(r4, i4), i4 += 2, r4 = i4, u3 = true;
2910
+ else if (t6 === ze && i4 + 1 < o3 && e3.charCodeAt(i4 + 1) === ze) {
2906
2911
  for (s3 += e3.substring(r4, i4); i4 < o3 && 10 !== e3.charCodeAt(i4); ) i4++;
2907
- r4 = i4, u4 = true;
2908
- } else 123 === t6 ? c2++ : 125 === t6 && c2--, i4++;
2912
+ r4 = i4, u3 = true;
2913
+ } else 123 === t6 ? c3++ : 125 === t6 && c3--, i4++;
2909
2914
  else a3 > 0 && a3--, i4++;
2910
2915
  else a3++, i4++;
2911
2916
  else i4++;
2912
- else 0 === l3 ? l3 = t6 : l3 === t6 && (l3 = 0), i4++;
2917
+ else 0 === l2 ? l2 = t6 : l2 === t6 && (l2 = 0), i4++;
2913
2918
  }
2914
- return u4 ? (r4 < o3 && (s3 += e3.substring(r4)), 0 === c2 ? s3 : ot(s3)) : 0 === c2 ? e3 : ot(e3);
2919
+ return u3 ? (r4 < o3 && (s3 += e3.substring(r4)), 0 === c3 ? s3 : st(s3)) : 0 === c3 ? e3 : st(e3);
2915
2920
  })(t4);
2916
- let h3 = c.compile(i3 || r3 ? i3 + " " + r3 + " { " + d3 + " }" : d3);
2917
- return e2.namespace && (h3 = st(h3, e2.namespace)), l2 = [], c.serialize(h3, a2), l2;
2918
- }, d2 = e2;
2919
- let h2 = W;
2920
- for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || C(15), h2 = q(h2, t3[e3].name);
2921
- return (null == d2 ? void 0 : d2.namespace) && (h2 = q(h2, d2.namespace)), (null == d2 ? void 0 : d2.prefix) && (h2 = q(h2, "p")), u2.hash = h2 !== W ? h2.toString() : "", u2;
2922
- }
2923
- var it2;
2921
+ let h3 = l.compile(i3 || r3 ? i3 + " " + r3 + " { " + d3 + " }" : d3);
2922
+ return e2.namespace && (h3 = rt(h3, e2.namespace)), a2 = [], l.serialize(h3, u2), a2;
2923
+ }, h2 = e2;
2924
+ let p2 = W;
2925
+ for (let e3 = 0; e3 < t3.length; e3++) t3[e3].name || c(15), p2 = q(p2, t3[e3].name);
2926
+ return (null == h2 ? void 0 : h2.namespace) && (p2 = q(p2, h2.namespace)), (null == h2 ? void 0 : h2.prefix) && (p2 = q(p2, "p")), d2.hash = p2 !== W ? p2.toString() : "", d2;
2927
+ }
2924
2928
  var lt;
2925
2929
  var at;
2926
- var ct = new De();
2927
- var ut = rt();
2928
- var dt;
2929
- var ht = null;
2930
- var pt = ut;
2931
- var ft = y && null !== (at = null === (lt = (it2 = a.default).cache) || void 0 === lt ? void 0 : lt.call(it2, () => {
2932
- ct.names.clear(), ct.keyframeIds.clear(), ct.clearTag(), ht = null;
2933
- })) && void 0 !== at ? at : null;
2934
- var mt = { shouldForwardProp: void 0, styleSheet: ct, stylis: ut, stylisPlugins: void 0 };
2935
- var yt = y ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(mt) } : a.default.createContext(mt);
2936
- var gt = yt.Consumer;
2937
- function vt() {
2938
- return y ? (ft && ft(), ht || mt) : a.default.useContext(yt);
2930
+ var ct;
2931
+ var ut = new Me();
2932
+ var dt = it2();
2933
+ var ht;
2934
+ var pt = null;
2935
+ var ft = dt;
2936
+ var mt = v && null !== (ct = null === (at = (lt = i.default).cache) || void 0 === at ? void 0 : at.call(lt, () => {
2937
+ ut.names.clear(), ut.keyframeIds.clear(), ut.clearTag(), pt = null;
2938
+ })) && void 0 !== ct ? ct : null;
2939
+ var yt = { shouldForwardProp: void 0, styleSheet: ut, stylis: dt, stylisPlugins: void 0 };
2940
+ var gt = v ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(yt) } : i.default.createContext(yt);
2941
+ var vt = gt.Consumer;
2942
+ function bt() {
2943
+ return v ? (mt && mt(), pt || yt) : i.default.useContext(gt);
2939
2944
  }
2940
2945
  function St(e2) {
2941
2946
  var t3, n2, o2;
2942
- if (y) {
2943
- ft && ft();
2944
- const o3 = ht || mt, s3 = void 0 !== e2.stylisPlugins || void 0 !== e2.namespace || void 0 !== e2.enableVendorPrefixes;
2945
- s3 && (e2.stylisPlugins && e2.stylisPlugins !== dt ? (dt = e2.stylisPlugins, pt = rt({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins })) : void 0 === e2.namespace && void 0 === e2.enableVendorPrefixes || (pt = rt({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: null !== (t3 = e2.stylisPlugins) && void 0 !== t3 ? t3 : o3.stylisPlugins })));
2946
- const r3 = s3 ? void 0 === e2.stylisPlugins || e2.stylisPlugins.length ? pt : ut : o3.stylis, i3 = "shouldForwardProp" in e2 ? e2.shouldForwardProp : o3.shouldForwardProp, l3 = null !== (n2 = e2.stylisPlugins) && void 0 !== n2 ? n2 : o3.stylisPlugins;
2947
- return ht = r3 !== ut || i3 ? { shouldForwardProp: i3, styleSheet: ct, stylis: r3, stylisPlugins: l3 } : null, e2.children;
2948
- }
2949
- const s2 = vt(), { styleSheet: r2 } = s2, i2 = a.default.useMemo(() => {
2947
+ if (v) {
2948
+ mt && mt();
2949
+ const o3 = pt || yt, s3 = void 0 !== e2.stylisPlugins || void 0 !== e2.namespace || void 0 !== e2.enableVendorPrefixes;
2950
+ s3 && (e2.stylisPlugins && e2.stylisPlugins !== ht ? (ht = e2.stylisPlugins, ft = it2({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: e2.stylisPlugins })) : void 0 === e2.namespace && void 0 === e2.enableVendorPrefixes || (ft = it2({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: null !== (t3 = e2.stylisPlugins) && void 0 !== t3 ? t3 : o3.stylisPlugins })));
2951
+ const r3 = s3 ? void 0 === e2.stylisPlugins || e2.stylisPlugins.length ? ft : dt : o3.stylis, i2 = "shouldForwardProp" in e2 ? e2.shouldForwardProp : o3.shouldForwardProp, l3 = null !== (n2 = e2.stylisPlugins) && void 0 !== n2 ? n2 : o3.stylisPlugins;
2952
+ return pt = r3 !== dt || i2 ? { shouldForwardProp: i2, styleSheet: ut, stylis: r3, stylisPlugins: l3 } : null, e2.children;
2953
+ }
2954
+ const s2 = bt(), { styleSheet: r2 } = s2, l2 = i.default.useMemo(() => {
2950
2955
  let t4 = r2;
2951
2956
  return e2.sheet ? t4 = e2.sheet : e2.target ? t4 = t4.reconstructWithOptions(void 0 !== e2.nonce ? { target: e2.target, nonce: e2.nonce } : { target: e2.target }, false) : void 0 !== e2.nonce && (t4 = t4.reconstructWithOptions({ nonce: e2.nonce })), e2.disableCSSOMInjection && (t4 = t4.reconstructWithOptions({ useCSSOMInjection: false })), t4;
2952
- }, [e2.disableCSSOMInjection, e2.nonce, e2.sheet, e2.target, r2]), l2 = a.default.useMemo(() => {
2957
+ }, [e2.disableCSSOMInjection, e2.nonce, e2.sheet, e2.target, r2]), a2 = i.default.useMemo(() => {
2953
2958
  var t4;
2954
- return void 0 === e2.stylisPlugins && void 0 === e2.namespace && void 0 === e2.enableVendorPrefixes ? s2.stylis : rt({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: null !== (t4 = e2.stylisPlugins) && void 0 !== t4 ? t4 : s2.stylisPlugins });
2955
- }, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins, s2.stylis, s2.stylisPlugins]), c2 = "shouldForwardProp" in e2 ? e2.shouldForwardProp : s2.shouldForwardProp, u2 = null !== (o2 = e2.stylisPlugins) && void 0 !== o2 ? o2 : s2.stylisPlugins, d2 = a.default.useMemo(() => ({ shouldForwardProp: c2, styleSheet: i2, stylis: l2, stylisPlugins: u2 }), [c2, i2, l2, u2]);
2956
- return a.default.createElement(yt.Provider, { value: d2 }, e2.children);
2959
+ return void 0 === e2.stylisPlugins && void 0 === e2.namespace && void 0 === e2.enableVendorPrefixes ? s2.stylis : it2({ options: { namespace: e2.namespace, prefix: e2.enableVendorPrefixes }, plugins: null !== (t4 = e2.stylisPlugins) && void 0 !== t4 ? t4 : s2.stylisPlugins });
2960
+ }, [e2.enableVendorPrefixes, e2.namespace, e2.stylisPlugins, s2.stylis, s2.stylisPlugins]), c2 = "shouldForwardProp" in e2 ? e2.shouldForwardProp : s2.shouldForwardProp, u2 = null !== (o2 = e2.stylisPlugins) && void 0 !== o2 ? o2 : s2.stylisPlugins, d2 = i.default.useMemo(() => ({ shouldForwardProp: c2, styleSheet: l2, stylis: a2, stylisPlugins: u2 }), [c2, l2, a2, u2]);
2961
+ return i.default.createElement(gt.Provider, { value: d2 }, e2.children);
2957
2962
  }
2958
- var bt = y ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(void 0) } : a.default.createContext(void 0);
2959
- var wt = bt.Consumer;
2963
+ var wt = v ? { Provider: ({ children: e2 }) => e2, Consumer: ({ children: e2 }) => e2(void 0) } : i.default.createContext(void 0);
2964
+ var Nt = wt.Consumer;
2960
2965
  var Ct = {};
2961
- function Nt(e2, t3) {
2966
+ function Ot(e2, t3) {
2962
2967
  const n2 = "string" != typeof e2 ? "sc" : V(e2);
2963
2968
  Ct[n2] = (Ct[n2] || 0) + 1;
2964
- const o2 = n2 + "-" + B(p + n2 + Ct[n2]);
2969
+ const o2 = n2 + "-" + B(m + n2 + Ct[n2]);
2965
2970
  return t3 ? t3 + "-" + o2 : o2;
2966
2971
  }
2967
2972
  var Pt;
2968
- var Ot = ve(() => /* @__PURE__ */ new Set());
2969
- var xt = /* @__PURE__ */ new Map();
2970
- function Et(e2) {
2971
- let t3 = xt.get(e2);
2972
- return t3 || (t3 = new RegExp("\\." + e2 + "(?![a-zA-Z0-9_-])", "g"), xt.set(e2, t3)), t3;
2973
- }
2974
- function _t(e2, t3, n2) {
2975
- const o2 = n2.names.get(t3);
2976
- if (o2) for (const t4 of o2) {
2977
- const n3 = Et(t4);
2978
- n3.lastIndex = 0, e2 = e2.replace(n3, ":where(." + t4 + ")");
2973
+ var Et = v && true ? ve(() => /* @__PURE__ */ new Map()) : null;
2974
+ var xt = v ? ve(() => /* @__PURE__ */ new Map()) : null;
2975
+ var _t = /* @__PURE__ */ new Map();
2976
+ function At(e2) {
2977
+ let t3 = _t.get(e2);
2978
+ return t3 || (t3 = new RegExp("\\." + e2 + "(?![a-zA-Z0-9_-])", "g"), _t.set(e2, t3)), t3;
2979
+ }
2980
+ function It(e2, t3) {
2981
+ for (let n2 = 0; n2 < t3.length; n2++) {
2982
+ const o2 = At(t3[n2]);
2983
+ o2.lastIndex = 0, e2 = e2.replace(o2, ":where(." + t3[n2] + ")");
2979
2984
  }
2980
2985
  return e2;
2981
2986
  }
2982
- function It(e2, n2, o2) {
2983
- const s2 = de(e2), r2 = e2, i2 = !U(e2), { attrs: c2 = j, componentId: d2 = Nt(n2.displayName, n2.parentComponentId), displayName: h2 = Y(e2) } = n2, p2 = n2.displayName && n2.componentId ? V(n2.displayName) + "-" + n2.componentId : n2.componentId || d2, m2 = s2 && r2.attrs ? r2.attrs.concat(c2).filter(Boolean) : c2;
2984
- let { shouldForwardProp: g2 } = n2;
2985
- if (s2 && r2.shouldForwardProp) {
2986
- const e3 = r2.shouldForwardProp;
2987
+ function $t(e2, n2, o2) {
2988
+ const s2 = de(e2), l2 = e2, a2 = !U(e2), { attrs: c2 = j, componentId: u2 = Ot(n2.displayName, n2.parentComponentId), displayName: d2 = Y(e2) } = n2, p2 = n2.displayName && n2.componentId ? V(n2.displayName) + "-" + n2.componentId : n2.componentId || u2, f2 = s2 && l2.attrs ? l2.attrs.concat(c2).filter(Boolean) : c2;
2989
+ let { shouldForwardProp: m2 } = n2;
2990
+ if (s2 && l2.shouldForwardProp) {
2991
+ const e3 = l2.shouldForwardProp;
2987
2992
  if (n2.shouldForwardProp) {
2988
2993
  const t3 = n2.shouldForwardProp;
2989
- g2 = (n3, o3) => e3(n3, o3) && t3(n3, o3);
2990
- } else g2 = e3;
2994
+ m2 = (n3, o3) => e3(n3, o3) && t3(n3, o3);
2995
+ } else m2 = e3;
2991
2996
  }
2992
- const v2 = new et(o2, p2, s2 ? r2.componentStyle : void 0);
2993
- function S2(e3, n3) {
2997
+ const y2 = new tt(o2, p2, s2 ? l2.componentStyle : void 0);
2998
+ function g2(e3, n3) {
2994
2999
  return (function(e4, n4, o3) {
2995
- const { attrs: s3, componentStyle: r3, defaultProps: i3, foldedComponentIds: c3, styledComponentId: d3, target: h3 } = e4, p3 = y ? void 0 : a.default.useContext(bt), m3 = vt(), g3 = e4.shouldForwardProp || m3.shouldForwardProp;
2996
- a.default.useDebugValue && a.default.useDebugValue(d3);
2997
- const v3 = k(n4, p3, i3) || (y ? void 0 : T);
2998
- let S3, b3;
2999
- S3 = (function(e5, t3, n5) {
3000
- const o4 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n5 }), s4 = e5.length > 1;
3001
- for (let n6 = 0; n6 < e5.length; n6++) {
3002
- const r4 = e5[n6], i4 = ce(r4) ? r4(s4 ? Object.assign({}, o4) : o4) : r4;
3003
- for (const e6 in i4) "className" === e6 ? o4.className = he(o4.className, i4[e6]) : "style" === e6 ? o4.style = Object.assign(Object.assign({}, o4.style), i4[e6]) : e6 in t3 && void 0 === t3[e6] || (o4[e6] = i4[e6]);
3000
+ const { attrs: s3, componentStyle: l3, defaultProps: a3, foldedComponentIds: c3, styledComponentId: u3, target: d3 } = e4, p3 = v ? void 0 : i.default.useContext(wt), f3 = bt(), m3 = e4.shouldForwardProp || f3.shouldForwardProp;
3001
+ i.default.useDebugValue && i.default.useDebugValue(u3);
3002
+ const y3 = T(n4, p3, a3) || (v ? void 0 : k), [g3, b3] = (function(e5, t3, n5) {
3003
+ const o4 = Object.assign(Object.assign({}, t3), { className: void 0, theme: n5 });
3004
+ let s4 = null;
3005
+ const r2 = e5.length > 1;
3006
+ for (let t4 = 0; t4 < e5.length; t4++) {
3007
+ const n6 = e5[t4], i2 = ce(n6) ? n6(r2 ? Object.assign({}, o4) : o4) : n6;
3008
+ for (const e6 in i2) "className" === e6 ? o4.className = he(o4.className, i2[e6]) : "style" === e6 ? o4.style = Object.assign(Object.assign({}, o4.style), i2[e6]) : void 0 === i2[e6] ? e6 in o4 && (void 0 !== o4[e6] && (s4 || (s4 = [])).push(e6), o4[e6] = void 0) : o4[e6] = i2[e6];
3004
3009
  }
3005
- return "className" in t3 && "string" == typeof t3.className && (o4.className = he(o4.className, t3.className)), o4;
3006
- })(s3, n4, v3), b3 = r3.generateAndInjectStyles(S3, m3.styleSheet, m3.stylis), a.default.useDebugValue && a.default.useDebugValue(b3), e4.warnTooManyClasses && e4.warnTooManyClasses(b3);
3007
- const w2 = S3.as || h3, C2 = (function(e5, t3, n5, o4) {
3008
- const s4 = {};
3009
- for (const r4 in e5) void 0 === e5[r4] || "$" === r4[0] || "as" === r4 || "theme" === r4 && e5.theme === n5 || ("forwardedAs" === r4 ? s4.as = e5.forwardedAs : o4 && !o4(r4, t3) || (s4[r4] = e5[r4], o4 || false || l.default(r4) || (Pt || (Pt = /* @__PURE__ */ new Set())).has(r4) || !U(t3) || t3.includes("-") || (Pt.add(r4), console.warn(`styled-components: it looks like an unknown prop "${r4}" 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.)`))));
3010
- return s4;
3011
- })(S3, w2, v3, g3);
3012
- let N2 = he(c3, d3);
3013
- b3 && (N2 += " " + b3), S3.className && (N2 += " " + S3.className), C2[U(w2) && w2.includes("-") ? "class" : "className"] = N2, o3 && (C2.ref = o3);
3010
+ return "className" in t3 && "string" == typeof t3.className && (o4.className = he(o4.className, t3.className)), [o4, s4];
3011
+ })(s3, n4, y3), S2 = l3.generateAndInjectStyles(g3, f3.styleSheet, f3.stylis);
3012
+ i.default.useDebugValue && i.default.useDebugValue(S2), e4.warnTooManyClasses && e4.warnTooManyClasses(S2);
3013
+ const w2 = g3.as || d3, N2 = U(w2), C2 = (function(e5, t3, n5, o4, s4, i2) {
3014
+ const l4 = {};
3015
+ for (const a4 in e5) "$" === a4[0] || "as" === a4 || "theme" === a4 && e5.theme === n5 || ("forwardedAs" === a4 ? void 0 !== e5.forwardedAs && (l4.as = e5.forwardedAs) : void 0 === e5[a4] ? "className" === a4 || s4 || null !== i2 && -1 !== i2.indexOf(a4) || o4 && !o4(a4, t3) || (l4[a4] = void 0) : o4 && !o4(a4, t3) || (l4[a4] = e5[a4], o4 || false || r.default(a4) || (Pt || (Pt = /* @__PURE__ */ new Set())).has(a4) || !U(t3) || t3.includes("-") || (Pt.add(a4), console.warn(`styled-components: it looks like an unknown prop "${a4}" 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.)`))));
3016
+ return l4;
3017
+ })(g3, w2, y3, m3, N2, b3);
3018
+ let O2 = he(c3, u3);
3019
+ S2 && (O2 += " " + S2), g3.className && (O2 += " " + g3.className), C2[N2 && w2.includes("-") ? "class" : "className"] = O2, o3 && (C2.ref = o3);
3014
3020
  const P2 = t2.createElement(w2, C2);
3015
- if (y) {
3016
- const e5 = Ot ? Ot() : null;
3017
- let t3 = null, n5 = 0, o4 = "", s4 = true, i4 = r3;
3018
- for (; i4; ) {
3019
- const l3 = m3.styleSheet.names.get(i4.componentId);
3020
- if (l3) {
3021
- n5 += l3.size;
3022
- for (const n6 of l3) e5 && e5.has(n6) || (t3 || (t3 = []), t3.push(n6), e5 && e5.add(n6));
3023
- }
3024
- if (t3 && s4) {
3025
- let e6 = Qe(i4, m3.styleSheet);
3026
- null === e6 ? s4 = false : (i4 !== r3 && (e6 = _t(e6, i4.componentId, m3.styleSheet)), o4 = e6 + o4);
3027
- }
3028
- i4 = i4.baseStyle;
3029
- }
3030
- if (t3 && !s4) {
3031
- o4 = "";
3032
- const e6 = m3.styleSheet.getTag();
3033
- let t4 = r3;
3034
- for (; t4; ) {
3035
- let n6 = e6.getGroup(E(t4.componentId));
3036
- n6 && t4 !== r3 && (n6 = _t(n6, t4.componentId, m3.styleSheet)), o4 = n6 + o4, t4 = t4.baseStyle;
3037
- }
3038
- }
3039
- let l2 = "";
3040
- if (m3.styleSheet.keyframeIds.size > 0) {
3041
- const t4 = m3.styleSheet.getTag();
3042
- for (const n6 of m3.styleSheet.keyframeIds) {
3043
- if (e5 && e5.has(n6)) continue;
3044
- const o5 = t4.getGroup(E(n6));
3045
- o5 && (l2 += o5, e5 && e5.add(n6));
3046
- }
3047
- }
3048
- if (o4 && e5 && t3 && t3.length < n5) {
3049
- const e6 = o4.split(f);
3050
- let n6 = "";
3051
- for (let o5 = 0; o5 < e6.length; o5++) {
3052
- const s5 = e6[o5];
3053
- if (s5) for (let e7 = 0; e7 < t3.length; e7++) {
3054
- const o6 = Et(t3[e7]);
3055
- if (o6.lastIndex = 0, o6.test(s5)) {
3056
- n6 += s5 + f;
3057
- break;
3021
+ if (v && S2) {
3022
+ const t3 = xt && xt(), n5 = l3.componentId + " " + S2;
3023
+ let o4 = t3 && t3.get(n5);
3024
+ if (!o4) {
3025
+ const e5 = (function(e6, t4, n6) {
3026
+ const o5 = t4.split(" ");
3027
+ let s4 = "", r2 = e6;
3028
+ for (; r2; ) {
3029
+ const t5 = n6.names.get(r2.componentId);
3030
+ if (t5) {
3031
+ const n7 = [];
3032
+ for (let e7 = 0; e7 < o5.length; e7++) t5.has(o5[e7]) && n7.push(o5[e7]);
3033
+ if (n7.length) {
3034
+ let t6 = "";
3035
+ for (let e7 = 0; e7 < n7.length; e7++) t6 += et(r2, n7[e7]) || "";
3036
+ t6 && (r2 !== e6 && (t6 = It(t6, n7)), s4 = t6 + s4);
3037
+ }
3058
3038
  }
3039
+ r2 = r2.baseStyle;
3059
3040
  }
3060
- }
3061
- o4 = n6;
3041
+ let i2 = "";
3042
+ if (s4 && n6.keyframeIds.size > 0) {
3043
+ const e7 = n6.getTag();
3044
+ for (const t5 of n6.keyframeIds) {
3045
+ const o6 = n6.names.get(t5);
3046
+ if (!o6) continue;
3047
+ let r3 = false;
3048
+ for (const e8 of o6) if (-1 !== s4.indexOf(e8)) {
3049
+ r3 = true;
3050
+ break;
3051
+ }
3052
+ if (r3) {
3053
+ const n7 = e7.getGroup(x(t5));
3054
+ n7 && (i2 += n7);
3055
+ }
3056
+ }
3057
+ }
3058
+ return me(i2 + s4);
3059
+ })(l3, S2, f3.styleSheet);
3060
+ e5 && (o4 = i.default.createElement("style", { [h]: "", key: "sc-" + l3.componentId, children: e5 }), t3 && t3.set(n5, o4));
3062
3061
  }
3063
- const c4 = me(l2 + o4);
3064
- if (c4) {
3065
- const e6 = a.default.createElement("style", { [u]: "", key: "sc-" + r3.componentId, children: c4 });
3066
- return a.default.createElement(a.default.Fragment, null, e6, P2);
3062
+ if (o4) {
3063
+ if (Et) {
3064
+ const t4 = Et(), n6 = (t4.get(l3.componentId) || 0) + 1;
3065
+ t4.set(l3.componentId, n6), 1e3 === n6 && console.warn(`${n6} instances of the styled component ${e4.displayName || u3} were rendered on one server-rendered page, so its styles repeat that many times in the HTML.
3066
+ This is fine at normal sizes. To trim a very large list, style the items from one styled parent element (for example a \`& > li\` selector) and render plain children, so the whole list emits a single tag.
3067
+ If items must differ, move the changing values into a style object with the attrs method so every copy is identical and compresses away.
3068
+ Example:
3069
+ const Component = styled.div.attrs(props => ({
3070
+ style: {
3071
+ background: props.background,
3072
+ },
3073
+ }))\`width: 100%;\`
3074
+
3075
+ <Component />`);
3076
+ }
3077
+ return i.default.createElement(i.default.Fragment, null, o4, P2);
3067
3078
  }
3068
3079
  }
3069
3080
  return P2;
3070
3081
  })(b2, e3, n3);
3071
3082
  }
3072
- S2.displayName = h2;
3073
- let b2 = a.default.forwardRef(S2);
3074
- return b2.attrs = m2, b2.componentStyle = v2, b2.displayName = h2, b2.shouldForwardProp = g2, b2.foldedComponentIds = s2 ? he(r2.foldedComponentIds, r2.styledComponentId) : "", b2.styledComponentId = p2, b2.target = s2 ? r2.target : e2, Object.defineProperty(b2, "defaultProps", { get() {
3083
+ g2.displayName = d2;
3084
+ let b2 = i.default.forwardRef(g2);
3085
+ return b2.attrs = f2, b2.componentStyle = y2, b2.displayName = d2, b2.shouldForwardProp = m2, b2.foldedComponentIds = s2 ? he(l2.foldedComponentIds, l2.styledComponentId) : "", b2.styledComponentId = p2, b2.target = s2 ? l2.target : e2, Object.defineProperty(b2, "defaultProps", { get() {
3075
3086
  return this._foldedDefaultProps;
3076
3087
  }, set(e3) {
3077
3088
  this._foldedDefaultProps = s2 ? (function(e4, ...t3) {
3078
3089
  for (const n3 of t3) ge(e4, n3, true);
3079
3090
  return e4;
3080
- })({}, r2.defaultProps, e3) : e3;
3081
- } }), $(h2, p2), b2.warnTooManyClasses = /* @__PURE__ */ ((e3, t3) => {
3091
+ })({}, l2.defaultProps, e3) : e3;
3092
+ } }), R(d2, p2), b2.warnTooManyClasses = /* @__PURE__ */ ((e3, t3) => {
3082
3093
  let n3 = {}, o3 = false;
3083
3094
  return (s3) => {
3084
3095
  !o3 && (n3[s3] = true, Object.keys(n3).length >= 200) && (console.warn(`Over 200 classes were generated for component ${e3}${t3 ? ` with the id of "${t3}"` : ""}.
@@ -3092,31 +3103,31 @@ Example:
3092
3103
 
3093
3104
  <Component />`), o3 = true, n3 = {});
3094
3105
  };
3095
- })(h2, p2), Se(b2, () => `.${b2.styledComponentId}`), i2 && ae(b2, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), b2;
3106
+ })(d2, p2), be(b2, () => `.${b2.styledComponentId}`), a2 && ae(b2, e2, { attrs: true, componentStyle: true, displayName: true, foldedComponentIds: true, shouldForwardProp: true, styledComponentId: true, target: true }), b2;
3096
3107
  }
3097
- var At = /* @__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"]);
3098
- function Rt(e2, t3) {
3108
+ var Rt = /* @__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"]);
3109
+ function jt(e2, t3) {
3099
3110
  const n2 = [e2[0]];
3100
3111
  for (let o2 = 0, s2 = t3.length; o2 < s2; o2 += 1) n2.push(t3[o2], e2[o2 + 1]);
3101
3112
  return n2;
3102
3113
  }
3103
- var $t = (e2) => (Me.add(e2), e2);
3104
- function jt(e2, ...t3) {
3105
- if (ce(e2) || ye(e2)) return $t(Xe(Rt(j, [e2, ...t3])));
3114
+ var kt = (e2) => (Ve.add(e2), e2);
3115
+ function Tt(e2, ...t3) {
3116
+ if (ce(e2) || ye(e2)) return kt(Ze(jt(j, [e2, ...t3])));
3106
3117
  const n2 = e2;
3107
- return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? Xe(n2) : $t(Xe(Rt(n2, t3)));
3118
+ return 0 === t3.length && 1 === n2.length && "string" == typeof n2[0] ? Ze(n2) : kt(Ze(jt(n2, t3)));
3108
3119
  }
3109
- function Tt(e2, t3, n2 = T) {
3110
- if (!t3) throw C(1, t3);
3111
- const o2 = (o3, ...s2) => e2(t3, n2, jt(o3, ...s2));
3112
- return o2.attrs = (o3) => Tt(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o3).filter(Boolean) })), o2.withConfig = (o3) => Tt(e2, t3, Object.assign(Object.assign({}, n2), o3)), o2;
3120
+ function Dt(e2, t3, n2 = k) {
3121
+ if (!t3) throw c(1, t3);
3122
+ const o2 = (o3, ...s2) => e2(t3, n2, Tt(o3, ...s2));
3123
+ return o2.attrs = (o3) => Dt(e2, t3, Object.assign(Object.assign({}, n2), { attrs: Array.prototype.concat(n2.attrs, o3).filter(Boolean) })), o2.withConfig = (o3) => Dt(e2, t3, Object.assign(Object.assign({}, n2), o3)), o2;
3113
3124
  }
3114
- var kt = (e2) => Tt(It, e2);
3115
- var Dt = kt;
3116
- At.forEach((e2) => {
3117
- Dt[e2] = kt(e2);
3125
+ var Mt = (e2) => Dt($t, e2);
3126
+ var Vt = Mt;
3127
+ Rt.forEach((e2) => {
3128
+ Vt[e2] = Mt(e2);
3118
3129
  });
3119
- var Mt = class {
3130
+ var Ft = class {
3120
3131
  constructor(e2, t3) {
3121
3132
  this.instanceRules = /* @__PURE__ */ new Map(), this.rules = e2, this.componentId = t3, this.isStatic = (function(e3) {
3122
3133
  for (let t4 = 0; t4 < e3.length; t4 += 1) {
@@ -3124,7 +3135,7 @@ Example:
3124
3135
  if (ce(n2) && !de(n2)) return false;
3125
3136
  }
3126
3137
  return true;
3127
- })(e2), De.registerId(this.componentId);
3138
+ })(e2), Me.registerId(this.componentId);
3128
3139
  }
3129
3140
  removeStyles(e2, t3) {
3130
3141
  this.instanceRules.delete(e2), this.rebuildGroup(t3);
@@ -3154,7 +3165,7 @@ Example:
3154
3165
  this.rebuildGroup(n2);
3155
3166
  }
3156
3167
  computeRules(e2, t3, n2, o2) {
3157
- const s2 = pe(Xe(this.rules, t3, n2, o2)), r2 = { name: this.componentId + e2, rules: o2(s2, "") };
3168
+ const s2 = pe(Ze(this.rules, t3, n2, o2)), r2 = { name: this.componentId + e2, rules: o2(s2, "") };
3158
3169
  return this.instanceRules.set(e2, r2), r2;
3159
3170
  }
3160
3171
  rebuildGroup(e2) {
@@ -3163,93 +3174,94 @@ Example:
3163
3174
  for (const n2 of this.instanceRules.values()) e2.insertRules(t3, n2.name, n2.rules);
3164
3175
  }
3165
3176
  };
3166
- var Vt = ve(() => /* @__PURE__ */ new Set());
3167
- function Gt(e2, ...t3) {
3168
- const n2 = jt(e2, ...t3), o2 = `sc-global-${B(JSON.stringify(n2))}`, s2 = new Mt(n2, o2);
3169
- $(o2);
3177
+ var Gt = v && true ? ve(() => /* @__PURE__ */ new Map()) : null;
3178
+ var zt = v ? ve(() => /* @__PURE__ */ new Map()) : null;
3179
+ function Wt(e2, ...t3) {
3180
+ const n2 = Tt(e2, ...t3), o2 = `sc-global-${B(JSON.stringify(n2))}`, s2 = new Ft(n2, o2);
3181
+ R(o2);
3170
3182
  const r2 = (e3) => {
3171
- const t4 = vt(), i2 = y ? void 0 : a.default.useContext(bt);
3172
- let l2;
3173
- if (l2 = t4.styleSheet.allocateGSInstance(o2), a.default.Children.count(e3.children) && console.warn(`The global style component ${o2} was given child JSX. createGlobalStyle does not render children.`), n2.some((e4) => "string" == typeof e4 && -1 !== e4.indexOf("@import")) && 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."), (y || t4.styleSheet.server) && (function(e4, t5, n3, o3, i3) {
3174
- if (s2.isStatic) s2.renderStyles(e4, b, n3, i3);
3183
+ const t4 = bt(), l2 = v ? void 0 : i.default.useContext(wt);
3184
+ let a2;
3185
+ if (a2 = t4.styleSheet.allocateGSInstance(o2), i.default.Children.count(e3.children) && console.warn(`The global style component ${o2} was given child JSX. createGlobalStyle does not render children.`), n2.some((e4) => "string" == typeof e4 && -1 !== e4.indexOf("@import")) && 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."), (v || t4.styleSheet.server) && (function(e4, t5, n3, o3, i2) {
3186
+ if (s2.isStatic) s2.renderStyles(e4, N, n3, i2);
3175
3187
  else {
3176
- const l3 = Object.assign(Object.assign({}, t5), { theme: k(t5, o3, r2.defaultProps) });
3177
- s2.renderStyles(e4, l3, n3, i3);
3188
+ const l3 = Object.assign(Object.assign({}, t5), { theme: T(t5, o3, r2.defaultProps) });
3189
+ s2.renderStyles(e4, l3, n3, i2);
3178
3190
  }
3179
- })(l2, e3, t4.styleSheet, i2, t4.stylis), y) {
3180
- const e4 = "undefined" == typeof window ? s2.instanceRules.get(l2) : void 0, n3 = e4 ? fe(e4.rules) : "";
3181
- if (n3) {
3182
- s2.instanceRules.delete(l2);
3183
- const e5 = Vt ? Vt() : null;
3184
- if (e5) {
3185
- const r3 = s2.isStatic ? o2 + t4.stylis.hash : n3;
3186
- if (e5.has(r3)) return null;
3187
- e5.add(r3);
3191
+ })(a2, e3, t4.styleSheet, l2, t4.stylis), v) {
3192
+ const e4 = "undefined" == typeof window ? s2.instanceRules.get(a2) : void 0, t5 = e4 ? fe(e4.rules) : "";
3193
+ if (t5) {
3194
+ if (s2.instanceRules.delete(a2), Gt) {
3195
+ const e6 = Gt(), t6 = (e6.get(o2) || 0) + 1;
3196
+ e6.set(o2, t6), 1e3 === t6 && console.warn(`${t6} instances of the global style ${o2} were rendered on one server-rendered page, so its styles repeat that many times in the HTML.
3197
+ A global style is normally mounted once, at the root of the app. Move it higher in the tree so it renders only once per page.`);
3188
3198
  }
3189
- return a.default.createElement("style", { key: o2 + "-" + l2, "data-styled-global": o2, children: me(n3) });
3199
+ const e5 = zt && zt(), n3 = o2 + "\n" + t5;
3200
+ let r3 = e5 && e5.get(n3);
3201
+ return r3 || (r3 = i.default.createElement("style", { key: o2, "data-styled-global": o2, children: me(t5) }), e5 && e5.set(n3, r3)), [r3];
3190
3202
  }
3191
3203
  }
3192
- return s2.instanceRules.delete(l2), null;
3204
+ return s2.instanceRules.delete(a2), null;
3193
3205
  };
3194
- return a.default.memo(r2);
3206
+ return i.default.memo(r2);
3195
3207
  }
3196
- function Ft(e2, t3, n2, o2, s2) {
3208
+ function qt(e2, t3, n2, o2, s2) {
3197
3209
  for (const r2 in e2) {
3198
3210
  const i2 = e2[r2], l2 = s2 ? s2 + "-" + r2 : r2;
3199
3211
  if ("object" == typeof i2 && null !== i2) {
3200
3212
  const e3 = {};
3201
- Ft(i2, t3, e3, o2, l2), n2[r2] = e3;
3213
+ qt(i2, t3, e3, o2, l2), n2[r2] = e3;
3202
3214
  } else n2[r2] = o2(l2, i2, r2);
3203
3215
  }
3204
3216
  }
3205
- function zt(e2, t3, n2, o2) {
3217
+ function Lt(e2, t3, n2, o2) {
3206
3218
  let s2 = "";
3207
3219
  for (const r2 in e2) {
3208
3220
  const i2 = e2[r2], l2 = t3[r2], a2 = o2 ? o2 + "-" + r2 : r2;
3209
- "object" == typeof i2 && null !== i2 ? "object" == typeof l2 && null !== l2 && (s2 += zt(i2, l2, n2, a2)) : void 0 !== l2 && "function" != typeof l2 && (s2 += "--" + n2 + a2 + ":" + l2 + ";");
3221
+ "object" == typeof i2 && null !== i2 ? "object" == typeof l2 && null !== l2 && (s2 += Lt(i2, l2, n2, a2)) : void 0 !== l2 && "function" != typeof l2 && (s2 += "--" + n2 + a2 + ":" + l2 + ";");
3210
3222
  }
3211
3223
  return s2;
3212
3224
  }
3213
- var Wt;
3214
- var qt = y ? /* @__PURE__ */ new WeakMap() : null;
3215
- var Lt = class {
3225
+ var Bt;
3226
+ var Ht = v ? /* @__PURE__ */ new WeakMap() : null;
3227
+ var Ut = class {
3216
3228
  constructor(e2, t3) {
3217
- this[Wt] = true, this.inject = (e3, t4 = ut) => {
3229
+ this[Bt] = true, this.inject = (e3, t4 = dt) => {
3218
3230
  var n2;
3219
3231
  const o2 = this.getName(t4);
3220
3232
  if (!e3.hasNameForId(this.id, o2)) {
3221
- const s2 = t4.hash || "", r2 = y ? null === (n2 = null == qt ? void 0 : qt.get(this)) || void 0 === n2 ? void 0 : n2.get(s2) : void 0;
3233
+ const s2 = t4.hash || "", r2 = v ? null === (n2 = null == Ht ? void 0 : Ht.get(this)) || void 0 === n2 ? void 0 : n2.get(s2) : void 0;
3222
3234
  if (r2) e3.insertRules(this.id, o2, r2);
3223
3235
  else {
3224
3236
  const n3 = t4(this.rules, o2, "@keyframes");
3225
- if (y && qt) {
3226
- let e4 = qt.get(this);
3227
- e4 || (e4 = /* @__PURE__ */ new Map(), qt.set(this, e4)), e4.set(s2, n3);
3237
+ if (v && Ht) {
3238
+ let e4 = Ht.get(this);
3239
+ e4 || (e4 = /* @__PURE__ */ new Map(), Ht.set(this, e4)), e4.set(s2, n3);
3228
3240
  }
3229
3241
  e3.insertRules(this.id, o2, n3);
3230
3242
  }
3231
3243
  }
3232
- }, this.name = e2, this.id = S + e2, this.rules = t3, E(this.id), Se(this, () => {
3233
- throw C(12, String(this.name));
3244
+ }, this.name = e2, this.id = w + e2, this.rules = t3, x(this.id), be(this, () => {
3245
+ throw c(12, String(this.name));
3234
3246
  });
3235
3247
  }
3236
- getName(e2 = ut) {
3248
+ getName(e2 = dt) {
3237
3249
  return e2.hash ? this.name + z(+e2.hash >>> 0) : this.name;
3238
3250
  }
3239
3251
  };
3240
- Wt = We;
3241
- var Bt = /^\s*<\/[a-z]/i;
3242
- var Ht = { StyleSheet: De, mainSheet: ct };
3252
+ Bt = qe;
3253
+ var Yt = /^\s*<\/[a-z]/i;
3254
+ var Jt = { StyleSheet: Me, mainSheet: ut };
3243
3255
  "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://styled-components.com/docs/basics#react-native");
3244
- var Ut = `__sc-${u}__`;
3245
- "undefined" != typeof window && (window[Ut] || (window[Ut] = 0), 1 === window[Ut] && 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[Ut] += 1);
3246
- var Yt = /:(?:(first)-child|(last)-child|(only)-child|(nth-child)\(([^()]+)\)|(nth-last-child)\(([^()]+)\))/g;
3247
- var Jt = `:not(style[${u}])`;
3248
- var Xt = `style[${u}]`;
3249
- function Zt(e2) {
3250
- return -1 === e2.indexOf("-child") ? e2 : (Yt.lastIndex = 0, e2.replace(Yt, (e3, t3, n2, o2, s2, r2, i2, l2) => t3 ? `:nth-child(1 of ${Jt})` : n2 ? `:nth-last-child(1 of ${Jt})` : o2 ? `:nth-child(1 of ${Jt}):nth-last-child(1 of ${Jt})` : s2 ? -1 !== r2.indexOf(" of ") ? e3 : `:nth-child(${r2} of ${Jt})` : -1 !== l2.indexOf(" of ") ? e3 : `:nth-last-child(${l2} of ${Jt})`));
3251
- }
3252
- function Kt(e2, t3) {
3256
+ var Xt = `__sc-${h}__`;
3257
+ "undefined" != typeof window && (window[Xt] || (window[Xt] = 0), 1 === window[Xt] && 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[Xt] += 1);
3258
+ var Zt = /:(?:(first)-child|(last)-child|(only)-child|(nth-child)\(([^()]+)\)|(nth-last-child)\(([^()]+)\))/g;
3259
+ var Kt = `:not(style[${h}])`;
3260
+ var Qt = `style[${h}]`;
3261
+ function en2(e2) {
3262
+ return -1 === e2.indexOf("-child") ? e2 : (Zt.lastIndex = 0, e2.replace(Zt, (e3, t3, n2, o2, s2, r2, i2, l2) => t3 ? `:nth-child(1 of ${Kt})` : n2 ? `:nth-last-child(1 of ${Kt})` : o2 ? `:nth-child(1 of ${Kt}):nth-last-child(1 of ${Kt})` : s2 ? -1 !== r2.indexOf(" of ") ? e3 : `:nth-child(${r2} of ${Kt})` : -1 !== l2.indexOf(" of ") ? e3 : `:nth-last-child(${l2} of ${Kt})`));
3263
+ }
3264
+ function tn(e2, t3) {
3253
3265
  if (-1 === e2.indexOf("+")) return;
3254
3266
  let n2 = 0, o2 = 0;
3255
3267
  for (let s2 = 0; s2 < e2.length; s2++) {
@@ -3258,9 +3270,9 @@ Example:
3258
3270
  else if (41 === r2) n2--;
3259
3271
  else if (91 === r2) o2++;
3260
3272
  else if (93 === r2) o2--;
3261
- else if (43 === r2 && 0 === n2 && 0 === o2 && !nt(e2, s2)) {
3273
+ else if (43 === r2 && 0 === n2 && 0 === o2 && !ot(e2, s2)) {
3262
3274
  const n3 = e2.substring(0, s2), o3 = e2.substring(s2 + 1);
3263
- t3.push(n3 + "+" + Xt + "+" + o3), t3.push(n3 + "+" + Xt + "+" + Xt + "+" + o3);
3275
+ t3.push(n3 + "+" + Qt + "+" + o3), t3.push(n3 + "+" + Qt + "+" + Qt + "+" + o3);
3264
3276
  }
3265
3277
  }
3266
3278
  }
@@ -3270,30 +3282,30 @@ Example:
3270
3282
  const e3 = this.instance.toString();
3271
3283
  if (!e3) return "";
3272
3284
  const t3 = this.instance.options.nonce || Ie();
3273
- return `<style ${pe([t3 && `nonce="${t3}"`, `${u}="true"`, `${h}="${p}"`].filter(Boolean), " ")}>${e3}</style>`;
3285
+ return `<style ${pe([t3 && `nonce="${t3}"`, `${h}="true"`, `${f}="${m}"`].filter(Boolean), " ")}>${e3}</style>`;
3274
3286
  }, this.getStyleTags = () => {
3275
- if (this.sealed) throw C(2);
3287
+ if (this.sealed) throw c(2);
3276
3288
  return this._emitSheetCSS();
3277
3289
  }, this.getStyleElement = () => {
3278
- if (this.sealed) throw C(2);
3290
+ if (this.sealed) throw c(2);
3279
3291
  const e3 = this.instance.toString();
3280
3292
  if (!e3) return [];
3281
- const t3 = { [u]: "", [h]: p, dangerouslySetInnerHTML: { __html: e3 } }, n2 = this.instance.options.nonce || Ie();
3282
- return n2 && (t3.nonce = n2), [a.default.createElement("style", Object.assign({}, t3, { key: "sc-0-0" }))];
3293
+ const t3 = { [h]: "", [f]: m, dangerouslySetInnerHTML: { __html: e3 } }, n2 = this.instance.options.nonce || Ie();
3294
+ return n2 && (t3.nonce = n2), [i.default.createElement("style", Object.assign({}, t3, { key: "sc-0-0" }))];
3283
3295
  }, this.seal = () => {
3284
3296
  this.sealed = true;
3285
- }, this.instance = new De({ isServer: true, nonce: e2 }), this.sealed = false;
3297
+ }, this.instance = new Me({ isServer: true, nonce: e2 }), this.sealed = false;
3286
3298
  }
3287
3299
  collectStyles(e2) {
3288
- if (this.sealed) throw C(2);
3289
- return a.default.createElement(St, { sheet: this.instance }, e2);
3300
+ if (this.sealed) throw c(2);
3301
+ return i.default.createElement(St, { sheet: this.instance }, e2);
3290
3302
  }
3291
3303
  interleaveWithNodeStream(e2) {
3292
- if (this.sealed) throw C(2);
3304
+ if (this.sealed) throw c(2);
3293
3305
  this.seal();
3294
3306
  const { Transform: t3 } = (init_stream(), __toCommonJS(stream_exports)), { instance: n2, _emitSheetCSS: o2 } = this, s2 = new t3({ transform: function(e3, t4, s3) {
3295
3307
  const r2 = e3.toString(), i2 = o2();
3296
- if (n2.clearTag(), Bt.test(r2)) {
3308
+ if (n2.clearTag(), Yt.test(r2)) {
3297
3309
  const e4 = r2.indexOf(">") + 1, t5 = r2.slice(0, e4), n3 = r2.slice(e4);
3298
3310
  this.push(t5 + i2 + n3);
3299
3311
  } else this.push(i2 + r2);
@@ -3308,27 +3320,27 @@ Example:
3308
3320
  if ("pipe" in e2 && "function" == typeof e2.pipe) return e2.pipe(s2);
3309
3321
  throw new Error("Unsupported stream type");
3310
3322
  }
3311
- }, exports.StyleSheetConsumer = gt, exports.StyleSheetContext = yt, exports.StyleSheetManager = St, exports.ThemeConsumer = wt, exports.ThemeContext = bt, exports.ThemeProvider = function(e2) {
3312
- if (y) return e2.children;
3313
- const t3 = a.default.useContext(bt), n2 = a.default.useMemo(() => (function(e3, t4) {
3314
- if (!e3) throw C(14);
3323
+ }, exports.StyleSheetConsumer = vt, exports.StyleSheetContext = gt, exports.StyleSheetManager = St, exports.ThemeConsumer = Nt, exports.ThemeContext = wt, exports.ThemeProvider = function(e2) {
3324
+ if (v) return e2.children;
3325
+ const t3 = i.default.useContext(wt), n2 = i.default.useMemo(() => (function(e3, t4) {
3326
+ if (!e3) throw c(14);
3315
3327
  if (ce(e3)) {
3316
3328
  const n3 = e3(t4);
3317
- if (null === n3 || Array.isArray(n3) || "object" != typeof n3) throw C(7);
3329
+ if (null === n3 || Array.isArray(n3) || "object" != typeof n3) throw c(7);
3318
3330
  return n3;
3319
3331
  }
3320
- if (Array.isArray(e3) || "object" != typeof e3) throw C(8);
3332
+ if (Array.isArray(e3) || "object" != typeof e3) throw c(8);
3321
3333
  return t4 ? Object.assign(Object.assign({}, t4), e3) : e3;
3322
3334
  })(e2.theme, t3), [e2.theme, t3]);
3323
- return e2.children ? a.default.createElement(bt.Provider, { value: n2 }, e2.children) : null;
3324
- }, exports.__PRIVATE__ = Ht, exports.createGlobalStyle = Gt, exports.createTheme = function(e2, t3) {
3335
+ return e2.children ? i.default.createElement(wt.Provider, { value: n2 }, e2.children) : null;
3336
+ }, exports.__PRIVATE__ = Jt, exports.createGlobalStyle = Wt, exports.createTheme = function(e2, t3) {
3325
3337
  var n2, o2;
3326
3338
  const s2 = (null !== (n2 = null == t3 ? void 0 : t3.prefix) && void 0 !== n2 ? n2 : "sc") + "-", r2 = null !== (o2 = null == t3 ? void 0 : t3.selector) && void 0 !== o2 ? o2 : ":root", i2 = (function(e3, t4) {
3327
3339
  const n3 = {};
3328
- return Ft(e3, t4, n3, (e4) => "--" + t4 + e4), n3;
3340
+ return qt(e3, t4, n3, (e4) => "--" + t4 + e4), n3;
3329
3341
  })(e2, s2), l2 = (function(e3, t4) {
3330
3342
  const n3 = {};
3331
- return Ft(e3, t4, n3, (e4, n4) => {
3343
+ return qt(e3, t4, n3, (e4, n4) => {
3332
3344
  if (true) {
3333
3345
  const t5 = String(n4);
3334
3346
  let o3 = 0;
@@ -3337,40 +3349,40 @@ Example:
3337
3349
  }
3338
3350
  return "var(--" + t4 + e4 + ", " + n4 + ")";
3339
3351
  }), n3;
3340
- })(e2, s2), a2 = Gt`
3352
+ })(e2, s2), a2 = Wt`
3341
3353
  ${r2} {
3342
- ${(t4) => zt(e2, t4.theme, s2)}
3354
+ ${(t4) => Lt(e2, t4.theme, s2)}
3343
3355
  }
3344
3356
  `;
3345
3357
  return Object.assign(l2, { GlobalStyle: a2, raw: e2, vars: i2, resolve(t4) {
3346
- if (!m) throw new Error("createTheme.resolve() is client-only");
3358
+ if (!g) throw new Error("createTheme.resolve() is client-only");
3347
3359
  const n3 = null != t4 ? t4 : document.documentElement;
3348
3360
  return (function(e3, t5, n4) {
3349
3361
  const o3 = {};
3350
- return Ft(e3, t5, o3, (e4, o4) => n4.getPropertyValue("--" + t5 + e4).trim() || o4), o3;
3362
+ return qt(e3, t5, o3, (e4, o4) => n4.getPropertyValue("--" + t5 + e4).trim() || o4), o3;
3351
3363
  })(e2, s2, getComputedStyle(n3));
3352
3364
  } });
3353
- }, exports.css = jt, exports.default = Dt, exports.isStyledComponent = de, exports.keyframes = function(e2, ...t3) {
3365
+ }, exports.css = Tt, exports.default = Vt, exports.isStyledComponent = de, exports.keyframes = function(e2, ...t3) {
3354
3366
  "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.");
3355
- const n2 = pe(jt(e2, ...t3)), o2 = B(n2);
3356
- return new Lt(o2, n2);
3357
- }, exports.styled = Dt, exports.stylisPluginRSC = function(e2) {
3367
+ const n2 = pe(Tt(e2, ...t3)), o2 = B(n2);
3368
+ return new Ut(o2, n2);
3369
+ }, exports.styled = Vt, exports.stylisPluginRSC = function(e2) {
3358
3370
  if (e2.type === n.RULESET) {
3359
3371
  const t3 = e2.props, n2 = [];
3360
3372
  for (let e3 = 0; e3 < t3.length; e3++) {
3361
- const o2 = Zt(t3[e3]);
3362
- n2.push(o2), Kt(o2, n2);
3373
+ const o2 = en2(t3[e3]);
3374
+ n2.push(o2), tn(o2, n2);
3363
3375
  }
3364
3376
  e2.props = n2;
3365
3377
  }
3366
3378
  }, exports.useTheme = function() {
3367
- const e2 = y ? void 0 : a.default.useContext(bt);
3368
- if (!e2) throw C(18);
3379
+ const e2 = v ? void 0 : i.default.useContext(wt);
3380
+ if (!e2) throw c(18);
3369
3381
  return e2;
3370
- }, exports.version = p, exports.withTheme = function(e2) {
3371
- const t3 = a.default.forwardRef((t4, n2) => {
3372
- const o2 = k(t4, y ? void 0 : a.default.useContext(bt), e2.defaultProps);
3373
- return void 0 === o2 && console.warn(`[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "${H(e2)}"`), a.default.createElement(e2, Object.assign(Object.assign({}, t4), { theme: o2, ref: n2 }));
3382
+ }, exports.version = m, exports.withTheme = function(e2) {
3383
+ const t3 = i.default.forwardRef((t4, n2) => {
3384
+ const o2 = T(t4, v ? void 0 : i.default.useContext(wt), e2.defaultProps);
3385
+ return void 0 === o2 && console.warn(`[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "${H(e2)}"`), i.default.createElement(e2, Object.assign(Object.assign({}, t4), { theme: o2, ref: n2 }));
3374
3386
  });
3375
3387
  return t3.displayName = `WithTheme(${H(e2)})`, ae(t3, e2);
3376
3388
  };
@@ -3802,6 +3814,7 @@ var initialContext = {
3802
3814
  getUpcomingInvoice: stub,
3803
3815
  getCustomerBalance: stub,
3804
3816
  listInvoices: stub,
3817
+ getInvoiceLink: stub,
3805
3818
  getCreditUsageByUser: stub,
3806
3819
  getFeatureUsageByUser: stub,
3807
3820
  createSetupIntent: stub,
@@ -3828,13 +3841,13 @@ var initialContext = {
3828
3841
  };
3829
3842
  var EmbedContext = (0, import_react.createContext)(initialContext);
3830
3843
 
3831
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
3844
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
3832
3845
  var import_jsx_runtime = require("react/jsx-runtime");
3833
3846
 
3834
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
3847
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
3835
3848
  var import_styled_components = __toESM(require_styled_components_cjs(), 1);
3836
3849
 
3837
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/types.js
3850
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@schematichq/schematic-icons/dist/types.js
3838
3851
  var iconsList = {
3839
3852
  "workos": 61697,
3840
3853
  "wind": 61698,
@@ -3971,7 +3984,7 @@ var FONT_FACE_RULE = `@font-face {
3971
3984
  src: url(data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI97ktIAAABjAAAAGBjbWFwA5tULQAAA/QAAAhwZ2x5ZqIKp3MAAA1sAABfDGhlYWRYkZ/xAAAA4AAAADZoaGVhAiMBfQAAALwAAAAkaG10eJcsAAAAAAHsAAACCGxvY2Hbt8MiAAAMZAAAAQZtYXhwAZ0BZAAAARgAAAAgbmFtZUitZjIAAGx4AAACanBvc3TZi0lrAABu5AAABagAAQAAAPr/zgAAASwAAAAAAScAAQAAAAAAAAAAAAAAAAAAAIIAAQAAAAEAAHMn36VfDzz1AAsBLAAAAAB8JbCAAAAAAHwlsIAAAP/aAScA7gAAAAgAAgAAAAAAAAABAAAAggFYABEAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQBKgGQAAUAAAC+ANIAAAAqAL4A0gAAAJAADgBNAAACAAUDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFBmRWQAwPEB8YEA+v/OABsBFQAyAAAAAQAAAAAAAAAAAAAAAAACAAAAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAEsAAABLAAAASwAAAAAAAUAAAADAAAALAAAAAQAAAJUAAEAAAAAAU4AAwABAAAALAADAAoAAAJUAAQBIgAAAAQABAABAADxgf//AADxAf//AAAAAQAEAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKAApACoAKwAsAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBKAEsATABNAE4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YWdlB2h1YnNwb3QFaGVhcnQEaGFzaAZoYW1tZXIGZ29vZ2xlBWdsb2JlB2dsYXNzZXMGZ2l0aHViD2dlbmVyaWMtcGF5bWVudAZmb2xkZXILZm9sZGVyLXBsdXMMZm9sZGVyLW1pbnVzBWZsYXNrBmZpbHRlcgNleWUaZXhjbGFtYXRpb24tcm91bmRlZC1maWxsZWQJZXF1YWxpemVyDGVudGl0bGVtZW50cw1kcmFnLXZlcnRpY2FsD2RyYWctaG9yaXpvbnRhbA1kb3RzLXZlcnRpY2FsD2RvdHMtaG9yaXpvbnRhbA5kb2xsYXItcm91bmRlZAdkaWFtb25kB2N5bG5kZXIGY3JlZGl0C2NyZWRpdC10eXBlBGNvcHkKY29ubmVjdGlvbgdjb21wYXNzCGNvbGxhcHNlDmNvbGxhcHNlLWVtcHR5A2NvZwZjb2ZmZWUEY29kZQNjbWQEY2x1YghjbG91ZC11cAVjbG9zZRRjbG9zZS1yb3VuZGVkLWZpbGxlZAVjbGVyawVjaGlwcwRjaGlwCmNoZXZyb24tdXANY2hldnJvbi1yaWdodAxjaGV2cm9uLWxlZnQMY2hldnJvbi1kb3duBWNoZWNrDWNoZWNrLXJvdW5kZWQHY2FzaGFwcAZidXJnZXIEYnVsYgdib29sZWFuCmJvb2xlYW4tb24IYm9va21hcmsFYm9hcmQEYmVsbARiYW5rCWJhY2tzcGFjZQVhdXRoMAxhcnJvdy11cHdhcmQIYXJyb3ctdXALYXJyb3ctcmlnaHQKYXJyb3ctbGVmdAphcnJvdy1kb3duDGFycm93LWN1cnZlZA9hcnJvdy1hbmFseXRpY3MIYXBwbGVwYXkEYW1leAlhbWF6b25wYXkFYWxhcm0AAA==) format("truetype");
3972
3985
  }`;
3973
3986
 
3974
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
3987
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@schematichq/schematic-icons/dist/components/Icon/styles.js
3975
3988
  var IconStyles = import_styled_components.createGlobalStyle`
3976
3989
  ${FONT_FACE_RULE};
3977
3990
 
@@ -3995,7 +4008,7 @@ var StyledIcon = import_styled_components.styled.i`
3995
4008
  }
3996
4009
  `;
3997
4010
 
3998
- // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
4011
+ // node_modules/.pnpm/@schematichq+schematic-icons@0.8.0_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@schematichq/schematic-icons/dist/components/Icon/Icon.js
3999
4012
  var Icon = ({ name, className = "", ...rest }) => {
4000
4013
  return (0, import_jsx_runtime.jsx)(StyledIcon, { className: `icon icon-${name} ${className}`, "$name": name, ...rest });
4001
4014
  };
@@ -5101,6 +5114,14 @@ function BillingSubscriptionDiscountViewFromJSONTyped(json, ignoreDiscriminator)
5101
5114
  };
5102
5115
  }
5103
5116
 
5117
+ // src/api/checkoutexternal/models/BillingSubscriptionPauseBehavior.ts
5118
+ function BillingSubscriptionPauseBehaviorFromJSON(json) {
5119
+ return BillingSubscriptionPauseBehaviorFromJSONTyped(json, false);
5120
+ }
5121
+ function BillingSubscriptionPauseBehaviorFromJSONTyped(json, ignoreDiscriminator) {
5122
+ return json;
5123
+ }
5124
+
5104
5125
  // src/api/checkoutexternal/models/BillingSubscriptionTrialEndSetting.ts
5105
5126
  function BillingSubscriptionTrialEndSettingFromJSON(json) {
5106
5127
  return BillingSubscriptionTrialEndSettingFromJSONTyped(json, false);
@@ -5197,6 +5218,7 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
5197
5218
  return json;
5198
5219
  }
5199
5220
  return {
5221
+ accessRevokedAt: json["access_revoked_at"] == null ? void 0 : new Date(json["access_revoked_at"]),
5200
5222
  applicationId: json["application_id"] == null ? void 0 : json["application_id"],
5201
5223
  cancelAt: json["cancel_at"] == null ? void 0 : json["cancel_at"],
5202
5224
  cancelAtPeriodEnd: json["cancel_at_period_end"],
@@ -5213,6 +5235,9 @@ function BillingSubscriptionViewFromJSONTyped(json, ignoreDiscriminator) {
5213
5235
  interval: json["interval"],
5214
5236
  latestInvoice: json["latest_invoice"] == null ? void 0 : InvoiceResponseDataFromJSON(json["latest_invoice"]),
5215
5237
  metadata: json["metadata"] == null ? void 0 : json["metadata"],
5238
+ pauseBehavior: json["pause_behavior"] == null ? void 0 : BillingSubscriptionPauseBehaviorFromJSON(json["pause_behavior"]),
5239
+ pauseResumesAt: json["pause_resumes_at"] == null ? void 0 : json["pause_resumes_at"],
5240
+ pausedAt: json["paused_at"] == null ? void 0 : new Date(json["paused_at"]),
5216
5241
  paymentMethod: json["payment_method"] == null ? void 0 : PaymentMethodResponseDataFromJSON(json["payment_method"]),
5217
5242
  periodEnd: json["period_end"],
5218
5243
  periodStart: json["period_start"],
@@ -5433,6 +5458,21 @@ function CatalogUsageViolationResponseDataFromJSONTyped(json, ignoreDiscriminato
5433
5458
  };
5434
5459
  }
5435
5460
 
5461
+ // src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
5462
+ function CatalogCustomPlanCTAResponseDataFromJSON(json) {
5463
+ return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
5464
+ }
5465
+ function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5466
+ if (json == null) {
5467
+ return json;
5468
+ }
5469
+ return {
5470
+ ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
5471
+ ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
5472
+ priceText: json["price_text"] == null ? void 0 : json["price_text"]
5473
+ };
5474
+ }
5475
+
5436
5476
  // src/api/checkoutexternal/models/EntitlementValueType.ts
5437
5477
  var EntitlementValueType = {
5438
5478
  Boolean: "boolean",
@@ -5616,6 +5656,8 @@ function CatalogCompanyPlanResponseDataFromJSONTyped(json, ignoreDiscriminator)
5616
5656
  CatalogCurrencyPricesResponseDataFromJSON
5617
5657
  ),
5618
5658
  current: json["current"],
5659
+ custom: json["custom"],
5660
+ customPlanCta: json["custom_plan_cta"] == null ? void 0 : CatalogCustomPlanCTAResponseDataFromJSON(json["custom_plan_cta"]),
5619
5661
  description: json["description"],
5620
5662
  entitlements: json["entitlements"].map(
5621
5663
  CatalogPlanEntitlementResponseDataFromJSON
@@ -5670,21 +5712,6 @@ function CatalogCreditBundleResponseDataFromJSONTyped(json, ignoreDiscriminator)
5670
5712
  };
5671
5713
  }
5672
5714
 
5673
- // src/api/checkoutexternal/models/CatalogCustomPlanCTAResponseData.ts
5674
- function CatalogCustomPlanCTAResponseDataFromJSON(json) {
5675
- return CatalogCustomPlanCTAResponseDataFromJSONTyped(json, false);
5676
- }
5677
- function CatalogCustomPlanCTAResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5678
- if (json == null) {
5679
- return json;
5680
- }
5681
- return {
5682
- ctaText: json["cta_text"] == null ? void 0 : json["cta_text"],
5683
- ctaUrl: json["cta_url"] == null ? void 0 : json["cta_url"],
5684
- priceText: json["price_text"] == null ? void 0 : json["price_text"]
5685
- };
5686
- }
5687
-
5688
5715
  // src/api/checkoutexternal/models/UpdatePayInAdvanceRequestBody.ts
5689
5716
  function UpdatePayInAdvanceRequestBodyFromJSON(json) {
5690
5717
  return UpdatePayInAdvanceRequestBodyFromJSONTyped(json, false);
@@ -6128,6 +6155,7 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6128
6155
  return json;
6129
6156
  }
6130
6157
  return {
6158
+ accessRevokedAt: json["access_revoked_at"] == null ? void 0 : new Date(json["access_revoked_at"]),
6131
6159
  applicationId: json["application_id"] == null ? void 0 : json["application_id"],
6132
6160
  cancelAt: json["cancel_at"] == null ? void 0 : json["cancel_at"],
6133
6161
  cancelAtPeriodEnd: json["cancel_at_period_end"],
@@ -6142,6 +6170,9 @@ function CheckoutResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6142
6170
  id: json["id"],
6143
6171
  interval: json["interval"],
6144
6172
  metadata: json["metadata"] == null ? void 0 : json["metadata"],
6173
+ pauseBehavior: json["pause_behavior"] == null ? void 0 : BillingSubscriptionPauseBehaviorFromJSON(json["pause_behavior"]),
6174
+ pauseResumesAt: json["pause_resumes_at"] == null ? void 0 : json["pause_resumes_at"],
6175
+ pausedAt: json["paused_at"] == null ? void 0 : new Date(json["paused_at"]),
6145
6176
  periodEnd: json["period_end"],
6146
6177
  periodStart: json["period_start"],
6147
6178
  providerType: BillingProviderTypeFromJSON(json["provider_type"]),
@@ -6850,6 +6881,7 @@ function CustomPlanBillingResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6850
6881
  json["activation_strategy"]
6851
6882
  ),
6852
6883
  billingCycleAnchor: json["billing_cycle_anchor"] == null ? void 0 : new Date(json["billing_cycle_anchor"]),
6884
+ billingEntityId: json["billing_entity_id"] == null ? void 0 : json["billing_entity_id"],
6853
6885
  billingStartDate: json["billing_start_date"] == null ? void 0 : new Date(json["billing_start_date"]),
6854
6886
  checkoutId: json["checkout_id"] == null ? void 0 : json["checkout_id"],
6855
6887
  companyId: json["company_id"],
@@ -7311,6 +7343,22 @@ function CompanyOverrideNoteResponseDataFromJSONTyped(json, ignoreDiscriminator)
7311
7343
  };
7312
7344
  }
7313
7345
 
7346
+ // src/api/checkoutexternal/models/CreditModelRate.ts
7347
+ function CreditModelRateFromJSON(json) {
7348
+ return CreditModelRateFromJSONTyped(json, false);
7349
+ }
7350
+ function CreditModelRateFromJSONTyped(json, ignoreDiscriminator) {
7351
+ if (json == null) {
7352
+ return json;
7353
+ }
7354
+ return {
7355
+ consumptionRate: json["consumption_rate"],
7356
+ model: json["model"],
7357
+ provider: json["provider"],
7358
+ quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"]
7359
+ };
7360
+ }
7361
+
7314
7362
  // src/api/checkoutexternal/models/FeatureEventSource.ts
7315
7363
  function FeatureEventSourceFromJSON(json) {
7316
7364
  return FeatureEventSourceFromJSONTyped(json, false);
@@ -7375,6 +7423,7 @@ function CompanyOverrideResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7375
7423
  id: json["id"],
7376
7424
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
7377
7425
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
7426
+ modelRates: json["model_rates"] == null ? void 0 : json["model_rates"].map(CreditModelRateFromJSON),
7378
7427
  notes: json["notes"].map(
7379
7428
  CompanyOverrideNoteResponseDataFromJSON
7380
7429
  ),
@@ -7545,6 +7594,7 @@ function PlanEntitlementResponseDataFromJSONTyped(json, ignoreDiscriminator) {
7545
7594
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON(json["metered_yearly_price"]),
7546
7595
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON(json["metric_period"]),
7547
7596
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON(json["metric_period_month_reset"]),
7597
+ modelRates: json["model_rates"] == null ? void 0 : json["model_rates"].map(CreditModelRateFromJSON),
7548
7598
  overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON(json["overage_billing_cadence"]),
7549
7599
  overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON(json["overage_invoice_anchor"]),
7550
7600
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON(json["plan"]),
@@ -8121,7 +8171,12 @@ function CompanySubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator)
8121
8171
  interval: json["interval"],
8122
8172
  isInitial: json["is_initial"],
8123
8173
  latestInvoice: json["latest_invoice"] == null ? void 0 : InvoiceResponseDataFromJSON(json["latest_invoice"]),
8174
+ pauseBehavior: json["pause_behavior"] == null ? void 0 : BillingSubscriptionPauseBehaviorFromJSON(json["pause_behavior"]),
8175
+ pauseResumesAt: json["pause_resumes_at"] == null ? void 0 : new Date(json["pause_resumes_at"]),
8176
+ pausedAt: json["paused_at"] == null ? void 0 : new Date(json["paused_at"]),
8124
8177
  paymentMethod: json["payment_method"] == null ? void 0 : PaymentMethodResponseDataFromJSON(json["payment_method"]),
8178
+ periodEnd: json["period_end"] == null ? void 0 : new Date(json["period_end"]),
8179
+ periodStart: json["period_start"] == null ? void 0 : new Date(json["period_start"]),
8125
8180
  products: json["products"].map(
8126
8181
  BillingProductForSubscriptionResponseDataFromJSON
8127
8182
  ),
@@ -8590,6 +8645,84 @@ function CreateCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
8590
8645
  };
8591
8646
  }
8592
8647
 
8648
+ // src/api/checkoutexternal/models/CreditSpendWindowUnit.ts
8649
+ function CreditSpendWindowUnitFromJSON(json) {
8650
+ return CreditSpendWindowUnitFromJSONTyped(json, false);
8651
+ }
8652
+ function CreditSpendWindowUnitFromJSONTyped(json, ignoreDiscriminator) {
8653
+ return json;
8654
+ }
8655
+ function CreditSpendWindowUnitToJSON(value) {
8656
+ return value;
8657
+ }
8658
+
8659
+ // src/api/checkoutexternal/models/CreateCompanySpendPolicyRequestBody.ts
8660
+ function CreateCompanySpendPolicyRequestBodyToJSON(json) {
8661
+ return CreateCompanySpendPolicyRequestBodyToJSONTyped(json, false);
8662
+ }
8663
+ function CreateCompanySpendPolicyRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
8664
+ if (value == null) {
8665
+ return value;
8666
+ }
8667
+ return {
8668
+ billing_credit_id: value["billingCreditId"],
8669
+ label: value["label"],
8670
+ max_per_draw: value["maxPerDraw"],
8671
+ user_id: value["userId"],
8672
+ window_amount: value["windowAmount"],
8673
+ window_unit: CreditSpendWindowUnitToJSON(value["windowUnit"])
8674
+ };
8675
+ }
8676
+
8677
+ // src/api/checkoutexternal/models/CreditSpendPolicyScope.ts
8678
+ function CreditSpendPolicyScopeFromJSON(json) {
8679
+ return CreditSpendPolicyScopeFromJSONTyped(json, false);
8680
+ }
8681
+ function CreditSpendPolicyScopeFromJSONTyped(json, ignoreDiscriminator) {
8682
+ return json;
8683
+ }
8684
+
8685
+ // src/api/checkoutexternal/models/CreditSpendPolicyResponseData.ts
8686
+ function CreditSpendPolicyResponseDataFromJSON(json) {
8687
+ return CreditSpendPolicyResponseDataFromJSONTyped(json, false);
8688
+ }
8689
+ function CreditSpendPolicyResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8690
+ if (json == null) {
8691
+ return json;
8692
+ }
8693
+ return {
8694
+ billingCreditId: json["billing_credit_id"],
8695
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
8696
+ consumed: json["consumed"] == null ? void 0 : json["consumed"],
8697
+ createdAt: new Date(json["created_at"]),
8698
+ headroom: json["headroom"] == null ? void 0 : json["headroom"],
8699
+ id: json["id"],
8700
+ label: json["label"] == null ? void 0 : json["label"],
8701
+ maxPerDraw: json["max_per_draw"] == null ? void 0 : json["max_per_draw"],
8702
+ resetsAt: json["resets_at"] == null ? void 0 : new Date(json["resets_at"]),
8703
+ scopeType: CreditSpendPolicyScopeFromJSON(json["scope_type"]),
8704
+ updatedAt: new Date(json["updated_at"]),
8705
+ userId: json["user_id"] == null ? void 0 : json["user_id"],
8706
+ windowAmount: json["window_amount"] == null ? void 0 : json["window_amount"],
8707
+ windowCount: json["window_count"],
8708
+ windowUnit: json["window_unit"] == null ? void 0 : CreditSpendWindowUnitFromJSON(json["window_unit"])
8709
+ };
8710
+ }
8711
+
8712
+ // src/api/checkoutexternal/models/CreateCompanySpendPolicyResponse.ts
8713
+ function CreateCompanySpendPolicyResponseFromJSON(json) {
8714
+ return CreateCompanySpendPolicyResponseFromJSONTyped(json, false);
8715
+ }
8716
+ function CreateCompanySpendPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
8717
+ if (json == null) {
8718
+ return json;
8719
+ }
8720
+ return {
8721
+ data: CreditSpendPolicyResponseDataFromJSON(json["data"]),
8722
+ params: json["params"]
8723
+ };
8724
+ }
8725
+
8593
8726
  // src/api/checkoutexternal/models/SetupIntentResponseData.ts
8594
8727
  function SetupIntentResponseDataFromJSON(json) {
8595
8728
  return SetupIntentResponseDataFromJSONTyped(json, false);
@@ -8678,6 +8811,20 @@ function CreditUserUsageResponseDataFromJSONTyped(json, ignoreDiscriminator) {
8678
8811
  };
8679
8812
  }
8680
8813
 
8814
+ // src/api/checkoutexternal/models/DeleteCompanySpendPolicyResponse.ts
8815
+ function DeleteCompanySpendPolicyResponseFromJSON(json) {
8816
+ return DeleteCompanySpendPolicyResponseFromJSONTyped(json, false);
8817
+ }
8818
+ function DeleteCompanySpendPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
8819
+ if (json == null) {
8820
+ return json;
8821
+ }
8822
+ return {
8823
+ data: DeleteResponseFromJSON(json["data"]),
8824
+ params: json["params"]
8825
+ };
8826
+ }
8827
+
8681
8828
  // src/api/checkoutexternal/models/DeletePaymentMethodResponse.ts
8682
8829
  function DeletePaymentMethodResponseFromJSON(json) {
8683
8830
  return DeletePaymentMethodResponseFromJSONTyped(json, false);
@@ -9052,6 +9199,34 @@ function GetFeatureUsageByUserResponseFromJSONTyped(json, ignoreDiscriminator) {
9052
9199
  };
9053
9200
  }
9054
9201
 
9202
+ // src/api/checkoutexternal/models/InvoiceLink.ts
9203
+ function InvoiceLinkFromJSON(json) {
9204
+ return InvoiceLinkFromJSONTyped(json, false);
9205
+ }
9206
+ function InvoiceLinkFromJSONTyped(json, ignoreDiscriminator) {
9207
+ if (json == null) {
9208
+ return json;
9209
+ }
9210
+ return {
9211
+ id: json["id"],
9212
+ url: json["url"]
9213
+ };
9214
+ }
9215
+
9216
+ // src/api/checkoutexternal/models/GetInvoiceLinkResponse.ts
9217
+ function GetInvoiceLinkResponseFromJSON(json) {
9218
+ return GetInvoiceLinkResponseFromJSONTyped(json, false);
9219
+ }
9220
+ function GetInvoiceLinkResponseFromJSONTyped(json, ignoreDiscriminator) {
9221
+ if (json == null) {
9222
+ return json;
9223
+ }
9224
+ return {
9225
+ data: InvoiceLinkFromJSON(json["data"]),
9226
+ params: json["params"]
9227
+ };
9228
+ }
9229
+
9055
9230
  // src/api/checkoutexternal/models/GetSetupIntentResponse.ts
9056
9231
  function GetSetupIntentResponseFromJSON(json) {
9057
9232
  return GetSetupIntentResponseFromJSONTyped(json, false);
@@ -9165,6 +9340,35 @@ function ListCheckoutsResponseFromJSONTyped(json, ignoreDiscriminator) {
9165
9340
  };
9166
9341
  }
9167
9342
 
9343
+ // src/api/checkoutexternal/models/ListCompanySpendPoliciesParams.ts
9344
+ function ListCompanySpendPoliciesParamsFromJSON(json) {
9345
+ return ListCompanySpendPoliciesParamsFromJSONTyped(json, false);
9346
+ }
9347
+ function ListCompanySpendPoliciesParamsFromJSONTyped(json, ignoreDiscriminator) {
9348
+ if (json == null) {
9349
+ return json;
9350
+ }
9351
+ return {
9352
+ billingCreditId: json["billing_credit_id"] == null ? void 0 : json["billing_credit_id"]
9353
+ };
9354
+ }
9355
+
9356
+ // src/api/checkoutexternal/models/ListCompanySpendPoliciesResponse.ts
9357
+ function ListCompanySpendPoliciesResponseFromJSON(json) {
9358
+ return ListCompanySpendPoliciesResponseFromJSONTyped(json, false);
9359
+ }
9360
+ function ListCompanySpendPoliciesResponseFromJSONTyped(json, ignoreDiscriminator) {
9361
+ if (json == null) {
9362
+ return json;
9363
+ }
9364
+ return {
9365
+ data: json["data"].map(
9366
+ CreditSpendPolicyResponseDataFromJSON
9367
+ ),
9368
+ params: ListCompanySpendPoliciesParamsFromJSON(json["params"])
9369
+ };
9370
+ }
9371
+
9168
9372
  // src/api/checkoutexternal/models/ListInvoicesParams.ts
9169
9373
  function ListInvoicesParamsFromJSON(json) {
9170
9374
  return ListInvoicesParamsFromJSONTyped(json, false);
@@ -9495,6 +9699,36 @@ function UpdateCheckoutTaxIDResponseFromJSONTyped(json, ignoreDiscriminator) {
9495
9699
  };
9496
9700
  }
9497
9701
 
9702
+ // src/api/checkoutexternal/models/UpdateCompanySpendPolicyResponse.ts
9703
+ function UpdateCompanySpendPolicyResponseFromJSON(json) {
9704
+ return UpdateCompanySpendPolicyResponseFromJSONTyped(json, false);
9705
+ }
9706
+ function UpdateCompanySpendPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
9707
+ if (json == null) {
9708
+ return json;
9709
+ }
9710
+ return {
9711
+ data: CreditSpendPolicyResponseDataFromJSON(json["data"]),
9712
+ params: json["params"]
9713
+ };
9714
+ }
9715
+
9716
+ // src/api/checkoutexternal/models/UpdateCreditSpendPolicyRequestBody.ts
9717
+ function UpdateCreditSpendPolicyRequestBodyToJSON(json) {
9718
+ return UpdateCreditSpendPolicyRequestBodyToJSONTyped(json, false);
9719
+ }
9720
+ function UpdateCreditSpendPolicyRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
9721
+ if (value == null) {
9722
+ return value;
9723
+ }
9724
+ return {
9725
+ label: value["label"],
9726
+ max_per_draw: value["maxPerDraw"],
9727
+ window_amount: value["windowAmount"],
9728
+ window_unit: CreditSpendWindowUnitToJSON(value["windowUnit"])
9729
+ };
9730
+ }
9731
+
9498
9732
  // src/api/checkoutexternal/models/UpdatePaymentMethodRequestBody.ts
9499
9733
  function UpdatePaymentMethodRequestBodyToJSON(json) {
9500
9734
  return UpdatePaymentMethodRequestBodyToJSONTyped(json, false);
@@ -9572,7 +9806,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9572
9806
  return await response.value();
9573
9807
  }
9574
9808
  /**
9575
- * Checkout unsubscribe
9809
+ * Cancels the company\'s subscription at the end of the current period.
9810
+ * Cancel the subscription
9576
9811
  */
9577
9812
  async checkoutUnsubscribeRaw(initOverrides) {
9578
9813
  const queryParameters = {};
@@ -9597,14 +9832,16 @@ var CheckoutexternalApi = class extends BaseAPI {
9597
9832
  );
9598
9833
  }
9599
9834
  /**
9600
- * Checkout unsubscribe
9835
+ * Cancels the company\'s subscription at the end of the current period.
9836
+ * Cancel the subscription
9601
9837
  */
9602
9838
  async checkoutUnsubscribe(initOverrides) {
9603
9839
  const response = await this.checkoutUnsubscribeRaw(initOverrides);
9604
9840
  return await response.value();
9605
9841
  }
9606
9842
  /**
9607
- * Create checkout
9843
+ * Opens a checkout for the token\'s company and prices the cart when it is priceable. A cart the purchase rules reject is still created, open, with the one problem that says why; a refusal creates nothing. The response carries the `version` every later write must send, and `expires_at` says when an open checkout closes on its own.
9844
+ * Create a checkout
9608
9845
  */
9609
9846
  async createCheckoutRaw(requestParameters, initOverrides) {
9610
9847
  if (requestParameters["createCheckoutRequest"] == null) {
@@ -9639,7 +9876,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9639
9876
  );
9640
9877
  }
9641
9878
  /**
9642
- * Create checkout
9879
+ * Opens a checkout for the token\'s company and prices the cart when it is priceable. A cart the purchase rules reject is still created, open, with the one problem that says why; a refusal creates nothing. The response carries the `version` every later write must send, and `expires_at` says when an open checkout closes on its own.
9880
+ * Create a checkout
9643
9881
  */
9644
9882
  async createCheckout(requestParameters, initOverrides) {
9645
9883
  const response = await this.createCheckoutRaw(
@@ -9649,7 +9887,53 @@ var CheckoutexternalApi = class extends BaseAPI {
9649
9887
  return await response.value();
9650
9888
  }
9651
9889
  /**
9652
- * Create setup intent
9890
+ * Create company spend policy
9891
+ */
9892
+ async createCompanySpendPolicyRaw(requestParameters, initOverrides) {
9893
+ if (requestParameters["createCompanySpendPolicyRequestBody"] == null) {
9894
+ throw new RequiredError(
9895
+ "createCompanySpendPolicyRequestBody",
9896
+ 'Required parameter "createCompanySpendPolicyRequestBody" was null or undefined when calling createCompanySpendPolicy().'
9897
+ );
9898
+ }
9899
+ const queryParameters = {};
9900
+ const headerParameters = {};
9901
+ headerParameters["Content-Type"] = "application/json";
9902
+ if (this.configuration && this.configuration.apiKey) {
9903
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9904
+ "X-Schematic-Api-Key"
9905
+ );
9906
+ }
9907
+ const response = await this.request(
9908
+ {
9909
+ path: `/company/credits/spend-policies`,
9910
+ method: "POST",
9911
+ headers: headerParameters,
9912
+ query: queryParameters,
9913
+ body: CreateCompanySpendPolicyRequestBodyToJSON(
9914
+ requestParameters["createCompanySpendPolicyRequestBody"]
9915
+ )
9916
+ },
9917
+ initOverrides
9918
+ );
9919
+ return new JSONApiResponse(
9920
+ response,
9921
+ (jsonValue) => CreateCompanySpendPolicyResponseFromJSON(jsonValue)
9922
+ );
9923
+ }
9924
+ /**
9925
+ * Create company spend policy
9926
+ */
9927
+ async createCompanySpendPolicy(requestParameters, initOverrides) {
9928
+ const response = await this.createCompanySpendPolicyRaw(
9929
+ requestParameters,
9930
+ initOverrides
9931
+ );
9932
+ return await response.value();
9933
+ }
9934
+ /**
9935
+ * A Stripe SetupIntent for collecting a new payment method with Stripe\'s Payment Element. Confirm it with `stripe.confirmSetup`; the method it saves joins the company\'s methods on file.
9936
+ * Create a setup intent
9653
9937
  */
9654
9938
  async createSetupIntentRaw(initOverrides) {
9655
9939
  const queryParameters = {};
@@ -9674,14 +9958,60 @@ var CheckoutexternalApi = class extends BaseAPI {
9674
9958
  );
9675
9959
  }
9676
9960
  /**
9677
- * Create setup intent
9961
+ * A Stripe SetupIntent for collecting a new payment method with Stripe\'s Payment Element. Confirm it with `stripe.confirmSetup`; the method it saves joins the company\'s methods on file.
9962
+ * Create a setup intent
9678
9963
  */
9679
9964
  async createSetupIntent(initOverrides) {
9680
9965
  const response = await this.createSetupIntentRaw(initOverrides);
9681
9966
  return await response.value();
9682
9967
  }
9683
9968
  /**
9684
- * Delete payment method
9969
+ * Delete company spend policy
9970
+ */
9971
+ async deleteCompanySpendPolicyRaw(requestParameters, initOverrides) {
9972
+ if (requestParameters["spendPolicyId"] == null) {
9973
+ throw new RequiredError(
9974
+ "spendPolicyId",
9975
+ 'Required parameter "spendPolicyId" was null or undefined when calling deleteCompanySpendPolicy().'
9976
+ );
9977
+ }
9978
+ const queryParameters = {};
9979
+ const headerParameters = {};
9980
+ if (this.configuration && this.configuration.apiKey) {
9981
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
9982
+ "X-Schematic-Api-Key"
9983
+ );
9984
+ }
9985
+ const response = await this.request(
9986
+ {
9987
+ path: `/company/credits/spend-policies/{spend_policy_id}`.replace(
9988
+ `{${"spend_policy_id"}}`,
9989
+ encodeURIComponent(String(requestParameters["spendPolicyId"]))
9990
+ ),
9991
+ method: "DELETE",
9992
+ headers: headerParameters,
9993
+ query: queryParameters
9994
+ },
9995
+ initOverrides
9996
+ );
9997
+ return new JSONApiResponse(
9998
+ response,
9999
+ (jsonValue) => DeleteCompanySpendPolicyResponseFromJSON(jsonValue)
10000
+ );
10001
+ }
10002
+ /**
10003
+ * Delete company spend policy
10004
+ */
10005
+ async deleteCompanySpendPolicy(requestParameters, initOverrides) {
10006
+ const response = await this.deleteCompanySpendPolicyRaw(
10007
+ requestParameters,
10008
+ initOverrides
10009
+ );
10010
+ return await response.value();
10011
+ }
10012
+ /**
10013
+ * Detaches a payment method from the company\'s billing customer. The path parameter is the payment method\'s `id` from the list, not a checkout\'s; `usePaymentMethods().remove` calls this and reloads the list. The list says whether each method can be removed.
10014
+ * Remove a payment method
9685
10015
  */
9686
10016
  async deletePaymentMethodRaw(requestParameters, initOverrides) {
9687
10017
  if (requestParameters["checkoutId"] == null) {
@@ -9715,7 +10045,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9715
10045
  );
9716
10046
  }
9717
10047
  /**
9718
- * Delete payment method
10048
+ * Detaches a payment method from the company\'s billing customer. The path parameter is the payment method\'s `id` from the list, not a checkout\'s; `usePaymentMethods().remove` calls this and reloads the list. The list says whether each method can be removed.
10049
+ * Remove a payment method
9719
10050
  */
9720
10051
  async deletePaymentMethod(requestParameters, initOverrides) {
9721
10052
  const response = await this.deletePaymentMethodRaw(
@@ -9757,7 +10088,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9757
10088
  return await response.value();
9758
10089
  }
9759
10090
  /**
9760
- * Finalize checkout
10091
+ * Charges the cart at `version` and applies it to the subscription. The version is claimed before the billing provider is called, so of two concurrent finalizes only one charges. The cart is priced once more first: a blocking problem refuses the purchase with 400 and the fresh `problems` list, and a checkout priced before a sibling completed is refused with 409. The claim is not released when the charge fails, so read the checkout before trying again. When the charge needs the customer, as with 3-D Secure, the response carries `confirm_payment_intent_client_secret` to confirm with Stripe.
10092
+ * Finalize a checkout
9761
10093
  */
9762
10094
  async finalizeCheckoutRaw(requestParameters, initOverrides) {
9763
10095
  if (requestParameters["checkoutId"] == null) {
@@ -9806,7 +10138,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9806
10138
  );
9807
10139
  }
9808
10140
  /**
9809
- * Finalize checkout
10141
+ * Charges the cart at `version` and applies it to the subscription. The version is claimed before the billing provider is called, so of two concurrent finalizes only one charges. The cart is priced once more first: a blocking problem refuses the purchase with 400 and the fresh `problems` list, and a checkout priced before a sibling completed is refused with 409. The claim is not released when the charge fails, so read the checkout before trying again. When the charge needs the customer, as with 3-D Secure, the response carries `confirm_payment_intent_client_secret` to confirm with Stripe.
10142
+ * Finalize a checkout
9810
10143
  */
9811
10144
  async finalizeCheckout(requestParameters, initOverrides) {
9812
10145
  const response = await this.finalizeCheckoutRaw(
@@ -9816,7 +10149,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9816
10149
  return await response.value();
9817
10150
  }
9818
10151
  /**
9819
- * Get catalog view
10152
+ * The environment\'s catalog as the company sees it: plans, add-ons and credit bundles, each with the company\'s standing against it (`current`, `valid`, `invalid_reason`, `company_can_trial`), the checkout settings, and `capabilities.checkout`. Needs the `multi-product-catalog` flag on the account.
10153
+ * Get the catalog view
9820
10154
  */
9821
10155
  async getCatalogViewRaw(initOverrides) {
9822
10156
  const queryParameters = {};
@@ -9841,14 +10175,16 @@ var CheckoutexternalApi = class extends BaseAPI {
9841
10175
  );
9842
10176
  }
9843
10177
  /**
9844
- * Get catalog view
10178
+ * The environment\'s catalog as the company sees it: plans, add-ons and credit bundles, each with the company\'s standing against it (`current`, `valid`, `invalid_reason`, `company_can_trial`), the checkout settings, and `capabilities.checkout`. Needs the `multi-product-catalog` flag on the account.
10179
+ * Get the catalog view
9845
10180
  */
9846
10181
  async getCatalogView(initOverrides) {
9847
10182
  const response = await this.getCatalogViewRaw(initOverrides);
9848
10183
  return await response.value();
9849
10184
  }
9850
10185
  /**
9851
- * Get catalog view by ID
10186
+ * The same view for the catalog `catalog_id` names rather than the environment\'s default catalog.
10187
+ * Get a catalog view by ID
9852
10188
  */
9853
10189
  async getCatalogViewByIDRaw(requestParameters, initOverrides) {
9854
10190
  if (requestParameters["catalogId"] == null) {
@@ -9882,7 +10218,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9882
10218
  );
9883
10219
  }
9884
10220
  /**
9885
- * Get catalog view by ID
10221
+ * The same view for the catalog `catalog_id` names rather than the environment\'s default catalog.
10222
+ * Get a catalog view by ID
9886
10223
  */
9887
10224
  async getCatalogViewByID(requestParameters, initOverrides) {
9888
10225
  const response = await this.getCatalogViewByIDRaw(
@@ -9892,7 +10229,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9892
10229
  return await response.value();
9893
10230
  }
9894
10231
  /**
9895
- * Get checkout
10232
+ * Reads a checkout this session opened. Resume from here before writing: the `version` it returns is the one the next update must send. A checkout another session built, or one for another company, reads as not found.
10233
+ * Get a checkout
9896
10234
  */
9897
10235
  async getCheckoutRaw(requestParameters, initOverrides) {
9898
10236
  if (requestParameters["checkoutId"] == null) {
@@ -9926,7 +10264,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9926
10264
  );
9927
10265
  }
9928
10266
  /**
9929
- * Get checkout
10267
+ * Reads a checkout this session opened. Resume from here before writing: the `version` it returns is the one the next update must send. A checkout another session built, or one for another company, reads as not found.
10268
+ * Get a checkout
9930
10269
  */
9931
10270
  async getCheckout(requestParameters, initOverrides) {
9932
10271
  const response = await this.getCheckoutRaw(
@@ -9936,7 +10275,8 @@ var CheckoutexternalApi = class extends BaseAPI {
9936
10275
  return await response.value();
9937
10276
  }
9938
10277
  /**
9939
- * Get checkout tax ID
10278
+ * The company\'s tax IDs on file with the billing provider.
10279
+ * List tax IDs
9940
10280
  */
9941
10281
  async getCheckoutTaxIDRaw(initOverrides) {
9942
10282
  const queryParameters = {};
@@ -9961,14 +10301,16 @@ var CheckoutexternalApi = class extends BaseAPI {
9961
10301
  );
9962
10302
  }
9963
10303
  /**
9964
- * Get checkout tax ID
10304
+ * The company\'s tax IDs on file with the billing provider.
10305
+ * List tax IDs
9965
10306
  */
9966
10307
  async getCheckoutTaxID(initOverrides) {
9967
10308
  const response = await this.getCheckoutTaxIDRaw(initOverrides);
9968
10309
  return await response.value();
9969
10310
  }
9970
10311
  /**
9971
- * Get company
10312
+ * The token\'s company: its plan and add-ons, the subscription\'s period and currency, and the payment method on file. Needs the `company-context-api` flag on the account; without it every `/company` read answers 404.
10313
+ * Get the company
9972
10314
  */
9973
10315
  async getCompanyRaw(initOverrides) {
9974
10316
  const queryParameters = {};
@@ -9993,14 +10335,16 @@ var CheckoutexternalApi = class extends BaseAPI {
9993
10335
  );
9994
10336
  }
9995
10337
  /**
9996
- * Get company
10338
+ * The token\'s company: its plan and add-ons, the subscription\'s period and currency, and the payment method on file. Needs the `company-context-api` flag on the account; without it every `/company` read answers 404.
10339
+ * Get the company
9997
10340
  */
9998
10341
  async getCompany(initOverrides) {
9999
10342
  const response = await this.getCompanyRaw(initOverrides);
10000
10343
  return await response.value();
10001
10344
  }
10002
10345
  /**
10003
- * Get company credit balances
10346
+ * The company\'s credit balances, with what each grant holds and what is purchasable.
10347
+ * List credit balances
10004
10348
  */
10005
10349
  async getCompanyCreditBalancesRaw(initOverrides) {
10006
10350
  const queryParameters = {};
@@ -10025,14 +10369,16 @@ var CheckoutexternalApi = class extends BaseAPI {
10025
10369
  );
10026
10370
  }
10027
10371
  /**
10028
- * Get company credit balances
10372
+ * The company\'s credit balances, with what each grant holds and what is purchasable.
10373
+ * List credit balances
10029
10374
  */
10030
10375
  async getCompanyCreditBalances(initOverrides) {
10031
10376
  const response = await this.getCompanyCreditBalancesRaw(initOverrides);
10032
10377
  return await response.value();
10033
10378
  }
10034
10379
  /**
10035
- * Get company credit user usage
10380
+ * Who in the company consumed the credit, and how much each.
10381
+ * List credit usage by user
10036
10382
  */
10037
10383
  async getCompanyCreditUserUsageRaw(requestParameters, initOverrides) {
10038
10384
  if (requestParameters["creditId"] == null) {
@@ -10072,7 +10418,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10072
10418
  );
10073
10419
  }
10074
10420
  /**
10075
- * Get company credit user usage
10421
+ * Who in the company consumed the credit, and how much each.
10422
+ * List credit usage by user
10076
10423
  */
10077
10424
  async getCompanyCreditUserUsage(requestParameters, initOverrides) {
10078
10425
  const response = await this.getCompanyCreditUserUsageRaw(
@@ -10082,7 +10429,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10082
10429
  return await response.value();
10083
10430
  }
10084
10431
  /**
10085
- * Get company feature usage
10432
+ * The company\'s entitlements and usage against each metered feature.
10433
+ * List feature usage
10086
10434
  */
10087
10435
  async getCompanyFeatureUsageRaw(initOverrides) {
10088
10436
  const queryParameters = {};
@@ -10107,14 +10455,16 @@ var CheckoutexternalApi = class extends BaseAPI {
10107
10455
  );
10108
10456
  }
10109
10457
  /**
10110
- * Get company feature usage
10458
+ * The company\'s entitlements and usage against each metered feature.
10459
+ * List feature usage
10111
10460
  */
10112
10461
  async getCompanyFeatureUsage(initOverrides) {
10113
10462
  const response = await this.getCompanyFeatureUsageRaw(initOverrides);
10114
10463
  return await response.value();
10115
10464
  }
10116
10465
  /**
10117
- * Get company feature user usage
10466
+ * Who in the company used the feature, and how much each.
10467
+ * List feature usage by user
10118
10468
  */
10119
10469
  async getCompanyFeatureUserUsageRaw(requestParameters, initOverrides) {
10120
10470
  if (requestParameters["featureId"] == null) {
@@ -10154,7 +10504,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10154
10504
  );
10155
10505
  }
10156
10506
  /**
10157
- * Get company feature user usage
10507
+ * Who in the company used the feature, and how much each.
10508
+ * List feature usage by user
10158
10509
  */
10159
10510
  async getCompanyFeatureUserUsage(requestParameters, initOverrides) {
10160
10511
  const response = await this.getCompanyFeatureUserUsageRaw(
@@ -10164,7 +10515,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10164
10515
  return await response.value();
10165
10516
  }
10166
10517
  /**
10167
- * Get company invoices
10518
+ * The company\'s invoices, newest first. An empty list is a company with none.
10519
+ * List invoices
10168
10520
  */
10169
10521
  async getCompanyInvoicesRaw(requestParameters, initOverrides) {
10170
10522
  const queryParameters = {};
@@ -10198,7 +10550,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10198
10550
  );
10199
10551
  }
10200
10552
  /**
10201
- * Get company invoices
10553
+ * The company\'s invoices, newest first. An empty list is a company with none.
10554
+ * List invoices
10202
10555
  */
10203
10556
  async getCompanyInvoices(requestParameters = {}, initOverrides) {
10204
10557
  const response = await this.getCompanyInvoicesRaw(
@@ -10208,7 +10561,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10208
10561
  return await response.value();
10209
10562
  }
10210
10563
  /**
10211
- * Get company payment methods
10564
+ * The company\'s payment methods on file, with the default marked and whether each can be removed.
10565
+ * List payment methods
10212
10566
  */
10213
10567
  async getCompanyPaymentMethodsRaw(initOverrides) {
10214
10568
  const queryParameters = {};
@@ -10233,14 +10587,16 @@ var CheckoutexternalApi = class extends BaseAPI {
10233
10587
  );
10234
10588
  }
10235
10589
  /**
10236
- * Get company payment methods
10590
+ * The company\'s payment methods on file, with the default marked and whether each can be removed.
10591
+ * List payment methods
10237
10592
  */
10238
10593
  async getCompanyPaymentMethods(initOverrides) {
10239
10594
  const response = await this.getCompanyPaymentMethodsRaw(initOverrides);
10240
10595
  return await response.value();
10241
10596
  }
10242
10597
  /**
10243
- * Get company upcoming invoice
10598
+ * A live preview of the company\'s next invoice from the billing provider. A company with nothing to bill answers 204.
10599
+ * Get the upcoming invoice
10244
10600
  */
10245
10601
  async getCompanyUpcomingInvoiceRaw(initOverrides) {
10246
10602
  const queryParameters = {};
@@ -10265,7 +10621,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10265
10621
  );
10266
10622
  }
10267
10623
  /**
10268
- * Get company upcoming invoice
10624
+ * A live preview of the company\'s next invoice from the billing provider. A company with nothing to bill answers 204.
10625
+ * Get the upcoming invoice
10269
10626
  */
10270
10627
  async getCompanyUpcomingInvoice(initOverrides) {
10271
10628
  const response = await this.getCompanyUpcomingInvoiceRaw(initOverrides);
@@ -10378,6 +10735,50 @@ var CheckoutexternalApi = class extends BaseAPI {
10378
10735
  );
10379
10736
  return await response.value();
10380
10737
  }
10738
+ /**
10739
+ * Get invoice link
10740
+ */
10741
+ async getInvoiceLinkRaw(requestParameters, initOverrides) {
10742
+ if (requestParameters["billingInvoiceId"] == null) {
10743
+ throw new RequiredError(
10744
+ "billingInvoiceId",
10745
+ 'Required parameter "billingInvoiceId" was null or undefined when calling getInvoiceLink().'
10746
+ );
10747
+ }
10748
+ const queryParameters = {};
10749
+ const headerParameters = {};
10750
+ if (this.configuration && this.configuration.apiKey) {
10751
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
10752
+ "X-Schematic-Api-Key"
10753
+ );
10754
+ }
10755
+ const response = await this.request(
10756
+ {
10757
+ path: `/components/invoices/{billing_invoice_id}/link`.replace(
10758
+ `{${"billing_invoice_id"}}`,
10759
+ encodeURIComponent(String(requestParameters["billingInvoiceId"]))
10760
+ ),
10761
+ method: "GET",
10762
+ headers: headerParameters,
10763
+ query: queryParameters
10764
+ },
10765
+ initOverrides
10766
+ );
10767
+ return new JSONApiResponse(
10768
+ response,
10769
+ (jsonValue) => GetInvoiceLinkResponseFromJSON(jsonValue)
10770
+ );
10771
+ }
10772
+ /**
10773
+ * Get invoice link
10774
+ */
10775
+ async getInvoiceLink(requestParameters, initOverrides) {
10776
+ const response = await this.getInvoiceLinkRaw(
10777
+ requestParameters,
10778
+ initOverrides
10779
+ );
10780
+ return await response.value();
10781
+ }
10381
10782
  /**
10382
10783
  * Get setup intent
10383
10784
  */
@@ -10552,6 +10953,7 @@ var CheckoutexternalApi = class extends BaseAPI {
10552
10953
  return await response.value();
10553
10954
  }
10554
10955
  /**
10956
+ * The checkouts this session opened for the token\'s company. Filter by `statuses`.
10555
10957
  * List checkouts
10556
10958
  */
10557
10959
  async listCheckoutsRaw(requestParameters, initOverrides) {
@@ -10589,6 +10991,7 @@ var CheckoutexternalApi = class extends BaseAPI {
10589
10991
  );
10590
10992
  }
10591
10993
  /**
10994
+ * The checkouts this session opened for the token\'s company. Filter by `statuses`.
10592
10995
  * List checkouts
10593
10996
  */
10594
10997
  async listCheckouts(requestParameters = {}, initOverrides) {
@@ -10598,6 +11001,44 @@ var CheckoutexternalApi = class extends BaseAPI {
10598
11001
  );
10599
11002
  return await response.value();
10600
11003
  }
11004
+ /**
11005
+ * List company spend policies
11006
+ */
11007
+ async listCompanySpendPoliciesRaw(requestParameters, initOverrides) {
11008
+ const queryParameters = {};
11009
+ if (requestParameters["billingCreditId"] != null) {
11010
+ queryParameters["billing_credit_id"] = requestParameters["billingCreditId"];
11011
+ }
11012
+ const headerParameters = {};
11013
+ if (this.configuration && this.configuration.apiKey) {
11014
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
11015
+ "X-Schematic-Api-Key"
11016
+ );
11017
+ }
11018
+ const response = await this.request(
11019
+ {
11020
+ path: `/company/credits/spend-policies`,
11021
+ method: "GET",
11022
+ headers: headerParameters,
11023
+ query: queryParameters
11024
+ },
11025
+ initOverrides
11026
+ );
11027
+ return new JSONApiResponse(
11028
+ response,
11029
+ (jsonValue) => ListCompanySpendPoliciesResponseFromJSON(jsonValue)
11030
+ );
11031
+ }
11032
+ /**
11033
+ * List company spend policies
11034
+ */
11035
+ async listCompanySpendPolicies(requestParameters = {}, initOverrides) {
11036
+ const response = await this.listCompanySpendPoliciesRaw(
11037
+ requestParameters,
11038
+ initOverrides
11039
+ );
11040
+ return await response.value();
11041
+ }
10601
11042
  /**
10602
11043
  * List invoices
10603
11044
  */
@@ -10685,7 +11126,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10685
11126
  return await response.value();
10686
11127
  }
10687
11128
  /**
10688
- * Update checkout
11129
+ * Replaces the cart and prices it again. Send the `version` last read; a stale one answers 409 and changes nothing, so read the checkout and send the write again at its version. A cart the purchase rules reject is saved with its price cleared and one problem saying why, and the version still advances. The `X-Checkout-Session-ID` response header names the session this price belongs to; send it back on the finalize that follows.
11130
+ * Update a checkout
10689
11131
  */
10690
11132
  async updateCheckoutRaw(requestParameters, initOverrides) {
10691
11133
  if (requestParameters["checkoutId"] == null) {
@@ -10729,7 +11171,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10729
11171
  );
10730
11172
  }
10731
11173
  /**
10732
- * Update checkout
11174
+ * Replaces the cart and prices it again. Send the `version` last read; a stale one answers 409 and changes nothing, so read the checkout and send the write again at its version. A cart the purchase rules reject is saved with its price cleared and one problem saying why, and the version still advances. The `X-Checkout-Session-ID` response header names the session this price belongs to; send it back on the finalize that follows.
11175
+ * Update a checkout
10733
11176
  */
10734
11177
  async updateCheckout(requestParameters, initOverrides) {
10735
11178
  const response = await this.updateCheckoutRaw(
@@ -10784,7 +11227,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10784
11227
  return await response.value();
10785
11228
  }
10786
11229
  /**
10787
- * Update checkout tax ID
11230
+ * Saves a tax ID on the company\'s billing customer and answers with every tax ID now on file. The tax ID is not part of a checkout\'s cart; save it before the finalize that needs it.
11231
+ * Set the tax ID
10788
11232
  */
10789
11233
  async updateCheckoutTaxIDRaw(requestParameters, initOverrides) {
10790
11234
  if (requestParameters["updateCheckoutTaxIDRequestBody"] == null) {
@@ -10819,7 +11263,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10819
11263
  );
10820
11264
  }
10821
11265
  /**
10822
- * Update checkout tax ID
11266
+ * Saves a tax ID on the company\'s billing customer and answers with every tax ID now on file. The tax ID is not part of a checkout\'s cart; save it before the finalize that needs it.
11267
+ * Set the tax ID
10823
11268
  */
10824
11269
  async updateCheckoutTaxID(requestParameters, initOverrides) {
10825
11270
  const response = await this.updateCheckoutTaxIDRaw(
@@ -10829,7 +11274,62 @@ var CheckoutexternalApi = class extends BaseAPI {
10829
11274
  return await response.value();
10830
11275
  }
10831
11276
  /**
10832
- * Update payment method
11277
+ * Update company spend policy
11278
+ */
11279
+ async updateCompanySpendPolicyRaw(requestParameters, initOverrides) {
11280
+ if (requestParameters["spendPolicyId"] == null) {
11281
+ throw new RequiredError(
11282
+ "spendPolicyId",
11283
+ 'Required parameter "spendPolicyId" was null or undefined when calling updateCompanySpendPolicy().'
11284
+ );
11285
+ }
11286
+ if (requestParameters["updateCreditSpendPolicyRequestBody"] == null) {
11287
+ throw new RequiredError(
11288
+ "updateCreditSpendPolicyRequestBody",
11289
+ 'Required parameter "updateCreditSpendPolicyRequestBody" was null or undefined when calling updateCompanySpendPolicy().'
11290
+ );
11291
+ }
11292
+ const queryParameters = {};
11293
+ const headerParameters = {};
11294
+ headerParameters["Content-Type"] = "application/json";
11295
+ if (this.configuration && this.configuration.apiKey) {
11296
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
11297
+ "X-Schematic-Api-Key"
11298
+ );
11299
+ }
11300
+ const response = await this.request(
11301
+ {
11302
+ path: `/company/credits/spend-policies/{spend_policy_id}`.replace(
11303
+ `{${"spend_policy_id"}}`,
11304
+ encodeURIComponent(String(requestParameters["spendPolicyId"]))
11305
+ ),
11306
+ method: "PUT",
11307
+ headers: headerParameters,
11308
+ query: queryParameters,
11309
+ body: UpdateCreditSpendPolicyRequestBodyToJSON(
11310
+ requestParameters["updateCreditSpendPolicyRequestBody"]
11311
+ )
11312
+ },
11313
+ initOverrides
11314
+ );
11315
+ return new JSONApiResponse(
11316
+ response,
11317
+ (jsonValue) => UpdateCompanySpendPolicyResponseFromJSON(jsonValue)
11318
+ );
11319
+ }
11320
+ /**
11321
+ * Update company spend policy
11322
+ */
11323
+ async updateCompanySpendPolicy(requestParameters, initOverrides) {
11324
+ const response = await this.updateCompanySpendPolicyRaw(
11325
+ requestParameters,
11326
+ initOverrides
11327
+ );
11328
+ return await response.value();
11329
+ }
11330
+ /**
11331
+ * Makes a method on file the one the company\'s charges use. The body\'s `payment_method_id` is the provider\'s id of the method, the `external_id` the list returns; `usePaymentMethods().setDefault` calls this and reloads the list. A card saved during a checkout joins the methods on file and becomes the default the same way.
11332
+ * Make a payment method the default
10833
11333
  */
10834
11334
  async updatePaymentMethodRaw(requestParameters, initOverrides) {
10835
11335
  if (requestParameters["updatePaymentMethodRequestBody"] == null) {
@@ -10864,7 +11364,8 @@ var CheckoutexternalApi = class extends BaseAPI {
10864
11364
  );
10865
11365
  }
10866
11366
  /**
10867
- * Update payment method
11367
+ * Makes a method on file the one the company\'s charges use. The body\'s `payment_method_id` is the provider\'s id of the method, the `external_id` the list returns; `usePaymentMethods().setDefault` calls this and reloads the list. A card saved during a checkout joins the methods on file and becomes the default the same way.
11368
+ * Make a payment method the default
10868
11369
  */
10869
11370
  async updatePaymentMethod(requestParameters, initOverrides) {
10870
11371
  const response = await this.updatePaymentMethodRaw(
@@ -11706,6 +12207,22 @@ function ConditionTypeFromJSONTyped5(json, ignoreDiscriminator) {
11706
12207
  return json;
11707
12208
  }
11708
12209
 
12210
+ // src/api/componentspublic/models/CreditModelRate.ts
12211
+ function CreditModelRateFromJSON2(json) {
12212
+ return CreditModelRateFromJSONTyped4(json, false);
12213
+ }
12214
+ function CreditModelRateFromJSONTyped4(json, ignoreDiscriminator) {
12215
+ if (json == null) {
12216
+ return json;
12217
+ }
12218
+ return {
12219
+ consumptionRate: json["consumption_rate"],
12220
+ model: json["model"],
12221
+ provider: json["provider"],
12222
+ quantityRates: json["quantity_rates"] == null ? void 0 : json["quantity_rates"]
12223
+ };
12224
+ }
12225
+
11709
12226
  // src/api/componentspublic/models/CustomPlanConfig.ts
11710
12227
  function CustomPlanConfigFromJSON2(json) {
11711
12228
  return CustomPlanConfigFromJSONTyped3(json, false);
@@ -12124,6 +12641,7 @@ function PlanEntitlementResponseDataFromJSONTyped6(json, ignoreDiscriminator) {
12124
12641
  meteredYearlyPrice: json["metered_yearly_price"] == null ? void 0 : BillingPriceViewFromJSON2(json["metered_yearly_price"]),
12125
12642
  metricPeriod: json["metric_period"] == null ? void 0 : MetricPeriodFromJSON2(json["metric_period"]),
12126
12643
  metricPeriodMonthReset: json["metric_period_month_reset"] == null ? void 0 : MetricPeriodMonthResetFromJSON2(json["metric_period_month_reset"]),
12644
+ modelRates: json["model_rates"] == null ? void 0 : json["model_rates"].map(CreditModelRateFromJSON2),
12127
12645
  overageBillingCadence: json["overage_billing_cadence"] == null ? void 0 : BillingArrearsCadenceFromJSON2(json["overage_billing_cadence"]),
12128
12646
  overageInvoiceAnchor: json["overage_invoice_anchor"] == null ? void 0 : BillingArrearsAnchorFromJSON2(json["overage_invoice_anchor"]),
12129
12647
  plan: json["plan"] == null ? void 0 : PlanResponseDataFromJSON2(json["plan"]),
@@ -12836,7 +13354,7 @@ function resolveLocale(locale) {
12836
13354
  return locale !== void 0 && locale !== "" && isUsableLocale(locale) ? locale : DEFAULT_LOCALE;
12837
13355
  }
12838
13356
 
12839
- // node_modules/.pnpm/i18next@26.4.2_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
13357
+ // node_modules/.pnpm/i18next@27.0.0_typescript@6.0.3/node_modules/i18next/dist/esm/i18next.js
12840
13358
  var isString = (obj) => typeof obj === "string";
12841
13359
  var defer = () => {
12842
13360
  let res;
@@ -12853,6 +13371,8 @@ var makeString = (object) => {
12853
13371
  if (object == null) return "";
12854
13372
  return String(object);
12855
13373
  };
13374
+ var isSafeLanguageCode = (code) => isString(code) && /^[A-Za-z0-9_@.-]{1,128}$/.test(code) && !code.includes("..") && !["__proto__", "constructor", "prototype"].includes(code);
13375
+ var callbackApiOf = (plugin) => plugin?.callbackApi ?? plugin?.constructor?.callbackApi;
12856
13376
  var copy = (a, s, t2) => {
12857
13377
  a.forEach((m) => {
12858
13378
  if (s[m]) t2[m] = s[m];
@@ -12949,12 +13469,11 @@ var _entityMap = {
12949
13469
  "<": "&lt;",
12950
13470
  ">": "&gt;",
12951
13471
  '"': "&quot;",
12952
- "'": "&#39;",
12953
- "/": "&#x2F;"
13472
+ "'": "&#39;"
12954
13473
  };
12955
13474
  var escape = (data) => {
12956
13475
  if (isString(data)) {
12957
- return data.replace(/[&<>"'\/]/g, (s) => _entityMap[s]);
13476
+ return data.replace(/[&<>"']/g, (s) => _entityMap[s]);
12958
13477
  }
12959
13478
  return data;
12960
13479
  };
@@ -13001,6 +13520,9 @@ var deepFind = (obj, path, keySeparator = ".") => {
13001
13520
  if (!Object.prototype.hasOwnProperty.call(obj, path)) return void 0;
13002
13521
  return obj[path];
13003
13522
  }
13523
+ if (!keySeparator) {
13524
+ return Object.prototype.hasOwnProperty.call(obj, path) ? obj[path] : void 0;
13525
+ }
13004
13526
  const tokens = path.split(keySeparator);
13005
13527
  let current = obj;
13006
13528
  for (let i = 0; i < tokens.length; ) {
@@ -13015,6 +13537,9 @@ var deepFind = (obj, path, keySeparator = ".") => {
13015
13537
  }
13016
13538
  nextPath += tokens[j];
13017
13539
  next = current[nextPath];
13540
+ if ((typeof next === "function" || nextPath === "__proto__") && !Object.prototype.hasOwnProperty.call(current, nextPath)) {
13541
+ next = void 0;
13542
+ }
13018
13543
  if (next !== void 0) {
13019
13544
  if (["string", "number", "boolean"].includes(typeof next) && j < tokens.length - 1) {
13020
13545
  continue;
@@ -13052,6 +13577,7 @@ var Logger = class _Logger {
13052
13577
  this.logger = concreteLogger || consoleLogger;
13053
13578
  this.options = options;
13054
13579
  this.debug = options.debug;
13580
+ this.seen = /* @__PURE__ */ new Set();
13055
13581
  }
13056
13582
  log(...args) {
13057
13583
  return this.forward(args, "log", "", true);
@@ -13065,6 +13591,11 @@ var Logger = class _Logger {
13065
13591
  deprecate(...args) {
13066
13592
  return this.forward(args, "warn", "WARNING DEPRECATED: ", true);
13067
13593
  }
13594
+ once(key, lvl, ...args) {
13595
+ if (!this.debug || this.seen.has(key) || this.seen.size >= 1e3) return null;
13596
+ this.seen.add(key);
13597
+ return this[lvl](...args);
13598
+ }
13068
13599
  forward(args, lvl, prefix, debugOnly) {
13069
13600
  if (debugOnly && !this.debug) return null;
13070
13601
  args = args.map((a) => isString(a) ? a.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : a);
@@ -13098,13 +13629,15 @@ var EventEmitter = class {
13098
13629
  });
13099
13630
  return this;
13100
13631
  }
13101
- off(event, listener) {
13102
- if (!this.observers[event]) return;
13103
- if (!listener) {
13104
- delete this.observers[event];
13105
- return;
13106
- }
13107
- this.observers[event].delete(listener);
13632
+ off(events, listener) {
13633
+ (typeof events === "string" ? events.split(" ") : [events]).forEach((event) => {
13634
+ if (!this.observers[event]) return;
13635
+ if (!listener) {
13636
+ delete this.observers[event];
13637
+ return;
13638
+ }
13639
+ this.observers[event].delete(listener);
13640
+ });
13108
13641
  }
13109
13642
  once(event, listener) {
13110
13643
  const wrapper = (...args) => {
@@ -13133,14 +13666,21 @@ var EventEmitter = class {
13133
13666
  }
13134
13667
  }
13135
13668
  };
13669
+ var nonEmptyBundles = /* @__PURE__ */ new WeakSet();
13670
+ var assertSeparateArguments = (method, ...args) => {
13671
+ if (args.some((a) => !isString(a))) {
13672
+ throw new TypeError(`${method}: pass language, namespace${method === "addResource" ? " and key" : ""} as separate strings; the dotted form ('en.translation.key') was removed in i18next v27`);
13673
+ }
13674
+ };
13136
13675
  var ResourceStore = class extends EventEmitter {
13137
13676
  constructor(data, options = {
13138
13677
  ns: ["translation"],
13139
13678
  defaultNS: "translation"
13140
- }) {
13679
+ }, logger = baseLogger) {
13141
13680
  super();
13142
13681
  this.data = data || {};
13143
13682
  this.options = options;
13683
+ this.logger = logger.create("resourceStore");
13144
13684
  if (this.options.keySeparator === void 0) {
13145
13685
  this.options.keySeparator = ".";
13146
13686
  }
@@ -13162,41 +13702,27 @@ var ResourceStore = class extends EventEmitter {
13162
13702
  getResource(lng, ns, key, options = {}) {
13163
13703
  const keySeparator = options.keySeparator !== void 0 ? options.keySeparator : this.options.keySeparator;
13164
13704
  const ignoreJSONStructure = options.ignoreJSONStructure !== void 0 ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;
13165
- let path;
13166
- if (lng.includes(".")) {
13167
- path = lng.split(".");
13168
- } else {
13169
- path = [lng, ns];
13170
- if (key) {
13171
- if (Array.isArray(key)) {
13172
- path.push(...key);
13173
- } else if (isString(key) && keySeparator) {
13174
- path.push(...key.split(keySeparator));
13175
- } else {
13176
- path.push(key);
13177
- }
13705
+ const path = [lng, ns];
13706
+ if (key) {
13707
+ if (Array.isArray(key)) {
13708
+ path.push(...key);
13709
+ } else if (isString(key) && keySeparator) {
13710
+ path.push(...key.split(keySeparator));
13711
+ } else {
13712
+ path.push(key);
13178
13713
  }
13179
13714
  }
13180
13715
  const result = getPath(this.data, path);
13181
- if (!result && !ns && !key && lng.includes(".")) {
13182
- lng = path[0];
13183
- ns = path[1];
13184
- key = path.slice(2).join(".");
13185
- }
13186
- if (result || !ignoreJSONStructure || !isString(key)) return result;
13716
+ if (result != null || !ignoreJSONStructure || !isString(key)) return result;
13187
13717
  return deepFind(this.data?.[lng]?.[ns], key, keySeparator);
13188
13718
  }
13189
13719
  addResource(lng, ns, key, value, options = {
13190
13720
  silent: false
13191
13721
  }) {
13722
+ assertSeparateArguments("addResource", lng, ns, key);
13192
13723
  const keySeparator = options.keySeparator !== void 0 ? options.keySeparator : this.options.keySeparator;
13193
13724
  let path = [lng, ns];
13194
13725
  if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);
13195
- if (lng.includes(".")) {
13196
- path = lng.split(".");
13197
- value = ns;
13198
- ns = path[1];
13199
- }
13200
13726
  this.addNamespaces(ns);
13201
13727
  setPath(this.data, path, value);
13202
13728
  if (!options.silent) this.emit("added", lng, ns, key, value);
@@ -13204,24 +13730,21 @@ var ResourceStore = class extends EventEmitter {
13204
13730
  addResources(lng, ns, resources, options = {
13205
13731
  silent: false
13206
13732
  }) {
13207
- for (const m in resources) {
13208
- if (isString(resources[m]) || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {
13733
+ assertSeparateArguments("addResources", lng, ns);
13734
+ Object.keys(resources || {}).forEach((m) => {
13735
+ if (m === "__proto__" || m === "constructor") return;
13736
+ this.addResource(lng, ns, m, resources[m], {
13209
13737
  silent: true
13210
13738
  });
13211
- }
13739
+ });
13212
13740
  if (!options.silent) this.emit("added", lng, ns, resources);
13213
13741
  }
13214
13742
  addResourceBundle(lng, ns, resources, deep, overwrite, options = {
13215
13743
  silent: false,
13216
13744
  skipCopy: false
13217
13745
  }) {
13218
- let path = [lng, ns];
13219
- if (lng.includes(".")) {
13220
- path = lng.split(".");
13221
- deep = resources;
13222
- resources = ns;
13223
- ns = path[1];
13224
- }
13746
+ assertSeparateArguments("addResourceBundle", lng, ns);
13747
+ const path = [lng, ns];
13225
13748
  this.addNamespaces(ns);
13226
13749
  let pack = getPath(this.data, path) || {};
13227
13750
  if (!options.skipCopy) resources = JSON.parse(JSON.stringify(resources));
@@ -13256,24 +13779,18 @@ var ResourceStore = class extends EventEmitter {
13256
13779
  hasLanguageSomeTranslations(lng) {
13257
13780
  const data = this.getDataByLanguage(lng);
13258
13781
  const n = data && Object.keys(data) || [];
13259
- return !!n.find((v) => data[v] && Object.keys(data[v]).length > 0);
13782
+ return !!n.find((v) => {
13783
+ const bundle = data[v];
13784
+ if (nonEmptyBundles.has(bundle)) return true;
13785
+ if (!bundle || Object.keys(bundle).length === 0) return false;
13786
+ if (typeof bundle === "object") nonEmptyBundles.add(bundle);
13787
+ return true;
13788
+ });
13260
13789
  }
13261
13790
  toJSON() {
13262
13791
  return this.data;
13263
13792
  }
13264
13793
  };
13265
- var postProcessor = {
13266
- processors: {},
13267
- addPostProcessor(module2) {
13268
- this.processors[module2.name] = module2;
13269
- },
13270
- handle(processors, value, key, options, translator) {
13271
- processors.forEach((processor) => {
13272
- value = this.processors[processor]?.process(value, key, options, translator) ?? value;
13273
- });
13274
- return value;
13275
- }
13276
- };
13277
13794
  var PATH_KEY = /* @__PURE__ */ Symbol("i18next/PATH_KEY");
13278
13795
  function createProxy() {
13279
13796
  const state = [];
@@ -13292,7 +13809,7 @@ function keysFromSelector(selector, opts) {
13292
13809
  const {
13293
13810
  [PATH_KEY]: path
13294
13811
  } = selector(createProxy());
13295
- const keySeparator = opts?.keySeparator ?? ".";
13812
+ const keySeparator = opts?.keySeparator || ".";
13296
13813
  const nsSeparator = opts?.nsSeparator ?? ":";
13297
13814
  const strict = opts?.enableSelector === "strict";
13298
13815
  if (path.length > 1 && nsSeparator) {
@@ -13311,12 +13828,12 @@ var shouldHandleAsObject = (res) => !isString(res) && typeof res !== "boolean" &
13311
13828
  var Translator = class _Translator extends EventEmitter {
13312
13829
  constructor(services, options = {}) {
13313
13830
  super();
13314
- copy(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], services, this);
13831
+ copy(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils", "postProcessors"], services, this);
13315
13832
  this.options = options;
13316
13833
  if (this.options.keySeparator === void 0) {
13317
13834
  this.options.keySeparator = ".";
13318
13835
  }
13319
- this.logger = baseLogger.create("translator");
13836
+ this.logger = (services.logger || baseLogger).create("translator");
13320
13837
  this.checkedLoadedFor = {};
13321
13838
  }
13322
13839
  changeLanguage(lng) {
@@ -13440,22 +13957,24 @@ var Translator = class _Translator extends EventEmitter {
13440
13957
  }
13441
13958
  const handleAsObject = shouldHandleAsObject(resForObjHndl);
13442
13959
  const resType = Object.prototype.toString.apply(resForObjHndl);
13443
- if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && !noObject.includes(resType) && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {
13444
- if (!opt.returnObjects && !this.options.returnObjects) {
13445
- if (!this.options.returnedObjectHandler) {
13446
- this.logger.warn("accessing an object - but returnObjects options is not enabled!");
13447
- }
13448
- const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
13449
- ...opt,
13450
- ns: namespaces
13451
- }) : `key '${key} (${this.language})' returned an object instead of string.`;
13452
- if (returnDetails) {
13453
- resolved.res = r;
13454
- resolved.usedParams = this.getUsedParamsDetails(opt);
13455
- return resolved;
13456
- }
13457
- return r;
13960
+ const isObjectHit = handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && !noObject.includes(resType) && !(isString(joinArrays) && Array.isArray(resForObjHndl));
13961
+ const objectNotReturned = isObjectHit && !opt.returnObjects && !this.options.returnObjects;
13962
+ if (objectNotReturned && this.options.returnedObjectHandler) {
13963
+ const r = this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
13964
+ ...opt,
13965
+ ns: namespaces
13966
+ });
13967
+ if (returnDetails) {
13968
+ resolved.res = r;
13969
+ resolved.usedParams = this.getUsedParamsDetails(opt);
13970
+ return resolved;
13458
13971
  }
13972
+ return r;
13973
+ }
13974
+ if (objectNotReturned) {
13975
+ this.logger.warn("accessing an object - but returnObjects options is not enabled!");
13976
+ }
13977
+ if (isObjectHit && !objectNotReturned) {
13459
13978
  if (keySeparator) {
13460
13979
  const resTypeIsArray = Array.isArray(resForObjHndl);
13461
13980
  const copy2 = resTypeIsArray ? [] : {};
@@ -13488,22 +14007,23 @@ var Translator = class _Translator extends EventEmitter {
13488
14007
  }
13489
14008
  } else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {
13490
14009
  res = res.join(joinArrays);
13491
- if (res) res = this.extendTranslation(res, keys, opt, lastKey);
14010
+ if (res) res = this.extendTranslation(res, keys, opt, resolved, lastKey);
13492
14011
  } else {
13493
14012
  let usedDefault = false;
13494
14013
  let usedKey = false;
13495
- if (!this.isValidLookup(res) && hasDefaultValue) {
14014
+ if (objectNotReturned) res = void 0;
14015
+ if (!this.isValidLookup(res) && hasDefaultValue && !(objectNotReturned && shouldHandleAsObject(defaultValue))) {
13496
14016
  usedDefault = true;
13497
14017
  res = defaultValue;
13498
14018
  }
13499
- if (!this.isValidLookup(res)) {
14019
+ if (!this.isValidLookup(res) && !(usedDefault && res === "")) {
13500
14020
  usedKey = true;
13501
14021
  res = key;
13502
14022
  }
13503
14023
  const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;
13504
14024
  const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? void 0 : res;
13505
14025
  const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;
13506
- if (usedKey || usedDefault || updateMissing) {
14026
+ if (!objectNotReturned && (usedKey || usedDefault || updateMissing)) {
13507
14027
  this.logger.log(updateMissing ? "updateKey" : "missingKey", lng, namespace, needsPluralHandling && !updateMissing ? `${key}${this.pluralResolver.getSuffix(lng, opt.count, opt)}` : key, updateMissing ? defaultValue : res);
13508
14028
  if (keySeparator) {
13509
14029
  const fk = this.resolve(key, {
@@ -13528,7 +14048,7 @@ var Translator = class _Translator extends EventEmitter {
13528
14048
  if (this.options.missingKeyHandler) {
13529
14049
  this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);
13530
14050
  } else if (this.backendConnector?.saveMissing) {
13531
- this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt);
14051
+ this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt, void 0, this.utils?.hasLoadedNamespace);
13532
14052
  }
13533
14053
  this.emit("missingKey", l, namespace, k, res);
13534
14054
  };
@@ -13611,13 +14131,21 @@ var Translator = class _Translator extends EventEmitter {
13611
14131
  const postProcess = opt.postProcess || this.options.postProcess;
13612
14132
  const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;
13613
14133
  if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {
13614
- res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {
14134
+ const ppOptions = this.options?.postProcessPassResolved ? {
13615
14135
  i18nResolved: {
13616
14136
  ...resolved,
13617
14137
  usedParams: this.getUsedParamsDetails(opt)
13618
14138
  },
13619
14139
  ...opt
13620
- } : opt, this);
14140
+ } : opt;
14141
+ postProcessorNames.forEach((name) => {
14142
+ const processor = this.postProcessors?.[name];
14143
+ if (!processor) {
14144
+ this.logger.once(`postProcess:${name}`, "warn", `postProcess: '${name}' is not registered on this i18next instance; call use() with it on this instance`);
14145
+ return;
14146
+ }
14147
+ res = processor.process(res, key, ppOptions, this) ?? res;
14148
+ });
13621
14149
  }
13622
14150
  return res;
13623
14151
  }
@@ -13746,14 +14274,16 @@ var Translator = class _Translator extends EventEmitter {
13746
14274
  }
13747
14275
  };
13748
14276
  var LanguageUtil = class {
13749
- constructor(options) {
14277
+ constructor(options, logger = baseLogger) {
13750
14278
  this.options = options;
13751
14279
  this.supportedLngs = this.options.supportedLngs || false;
13752
- this.logger = baseLogger.create("languageUtils");
14280
+ this.logger = logger.create("languageUtils");
13753
14281
  this.resolveHierarchyCache = {};
14282
+ this.formattedCodes = /* @__PURE__ */ new Map();
13754
14283
  }
13755
14284
  clearCache() {
13756
14285
  this.resolveHierarchyCache = {};
14286
+ this.formattedCodes.clear();
13757
14287
  }
13758
14288
  getScriptPartFromCode(code) {
13759
14289
  code = getCleanedCode(code);
@@ -13771,22 +14301,28 @@ var LanguageUtil = class {
13771
14301
  return this.formatLanguageCode(p[0]);
13772
14302
  }
13773
14303
  formatLanguageCode(code) {
13774
- if (isString(code) && code.includes("-")) {
13775
- let formattedCode;
14304
+ if (!isString(code)) return code;
14305
+ let formatted = this.formattedCodes.get(code);
14306
+ if (formatted !== void 0) return formatted;
14307
+ formatted = this.formatUncached(code);
14308
+ if (this.formattedCodes.size >= 1e3) this.formattedCodes.clear();
14309
+ this.formattedCodes.set(code, formatted);
14310
+ return formatted;
14311
+ }
14312
+ formatUncached(code) {
14313
+ const hasSubtags = code.includes("-");
14314
+ if (hasSubtags || this.options.cleanCode !== false) {
14315
+ let canonical;
13776
14316
  try {
13777
- formattedCode = Intl.getCanonicalLocales(code)[0];
14317
+ canonical = Intl.getCanonicalLocales(code)[0];
13778
14318
  } catch (e) {
13779
14319
  }
13780
- if (formattedCode && this.options.lowerCaseLng) {
13781
- formattedCode = formattedCode.toLowerCase();
14320
+ if (canonical && (hasSubtags || canonical.toLowerCase() === code.toLowerCase())) {
14321
+ return this.options.lowerCaseLng ? canonical.toLowerCase() : canonical;
13782
14322
  }
13783
- if (formattedCode) return formattedCode;
13784
- if (this.options.lowerCaseLng) {
13785
- return code.toLowerCase();
13786
- }
13787
- return code;
14323
+ if (canonical) return code.toLowerCase();
13788
14324
  }
13789
- return this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;
14325
+ return this.options.lowerCaseLng || this.options.cleanCode && !hasSubtags ? code.toLowerCase() : code;
13790
14326
  }
13791
14327
  isSupportedCode(code) {
13792
14328
  if (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) {
@@ -13813,7 +14349,6 @@ var LanguageUtil = class {
13813
14349
  if (supportedLng === lngOnly) return true;
13814
14350
  if (!supportedLng.includes("-") && !lngOnly.includes("-")) return false;
13815
14351
  if (supportedLng.includes("-") && !lngOnly.includes("-") && supportedLng.slice(0, supportedLng.indexOf("-")) === lngOnly) return true;
13816
- if (supportedLng.startsWith(lngOnly) && lngOnly.length > 1) return true;
13817
14352
  return false;
13818
14353
  });
13819
14354
  });
@@ -13874,7 +14409,8 @@ var LanguageUtil = class {
13874
14409
  addCode(this.formatLanguageCode(code));
13875
14410
  }
13876
14411
  fallbackCodes.forEach((fc) => {
13877
- if (!codes.includes(fc)) addCode(this.formatLanguageCode(fc));
14412
+ const formattedFc = this.formatLanguageCode(fc);
14413
+ if (!codes.includes(formattedFc)) addCode(formattedFc);
13878
14414
  });
13879
14415
  if (cacheKey !== null) {
13880
14416
  this.resolveHierarchyCache[cacheKey] = codes;
@@ -13898,10 +14434,10 @@ var dummyRule = {
13898
14434
  })
13899
14435
  };
13900
14436
  var PluralResolver = class {
13901
- constructor(languageUtils, options = {}) {
14437
+ constructor(languageUtils, options = {}, logger = baseLogger) {
13902
14438
  this.languageUtils = languageUtils;
13903
14439
  this.options = options;
13904
- this.logger = baseLogger.create("pluralResolver");
14440
+ this.logger = logger.create("pluralResolver");
13905
14441
  this.pluralRulesCache = {};
13906
14442
  }
13907
14443
  clearCache() {
@@ -13959,16 +14495,15 @@ var PluralResolver = class {
13959
14495
  };
13960
14496
  var deepFindWithDefaults = (data, defaultData, key, keySeparator = ".", ignoreJSONStructure = true) => {
13961
14497
  let path = getPathWithDefaults(data, defaultData, key);
13962
- if (!path && ignoreJSONStructure && isString(key)) {
14498
+ if (path == null && ignoreJSONStructure && isString(key)) {
13963
14499
  path = deepFind(data, key, keySeparator);
13964
14500
  if (path === void 0) path = deepFind(defaultData, key, keySeparator);
13965
14501
  }
13966
14502
  return path;
13967
14503
  };
13968
- var regexSafe = (val) => val.replace(/\$/g, "$$$$");
13969
14504
  var Interpolator = class {
13970
- constructor(options = {}) {
13971
- this.logger = baseLogger.create("interpolator");
14505
+ constructor(options = {}, logger = baseLogger) {
14506
+ this.logger = logger.create("interpolator");
13972
14507
  this.options = options;
13973
14508
  this.format = options?.interpolation?.format || ((value) => value);
13974
14509
  this.init(options);
@@ -13982,16 +14517,12 @@ var Interpolator = class {
13982
14517
  escapeValue,
13983
14518
  useRawValueToEscape,
13984
14519
  prefix,
13985
- prefixEscaped,
13986
14520
  suffix,
13987
- suffixEscaped,
13988
14521
  formatSeparator,
13989
14522
  unescapeSuffix,
13990
14523
  unescapePrefix,
13991
14524
  nestingPrefix,
13992
- nestingPrefixEscaped,
13993
14525
  nestingSuffix,
13994
- nestingSuffixEscaped,
13995
14526
  nestingOptionsSeparator,
13996
14527
  maxReplaces,
13997
14528
  alwaysFormat
@@ -13999,13 +14530,13 @@ var Interpolator = class {
13999
14530
  this.escape = escape$1 !== void 0 ? escape$1 : escape;
14000
14531
  this.escapeValue = escapeValue !== void 0 ? escapeValue : true;
14001
14532
  this.useRawValueToEscape = useRawValueToEscape !== void 0 ? useRawValueToEscape : false;
14002
- this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || "{{";
14003
- this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || "}}";
14533
+ this.prefix = prefix ? regexEscape(prefix) : "{{";
14534
+ this.suffix = suffix ? regexEscape(suffix) : "}}";
14004
14535
  this.formatSeparator = formatSeparator || ",";
14005
14536
  this.unescapePrefix = unescapeSuffix ? "" : unescapePrefix ? regexEscape(unescapePrefix) : "-";
14006
14537
  this.unescapeSuffix = this.unescapePrefix ? "" : unescapeSuffix ? regexEscape(unescapeSuffix) : "";
14007
- this.nestingPrefix = nestingPrefix ? regexEscape(nestingPrefix) : nestingPrefixEscaped || regexEscape("$t(");
14008
- this.nestingSuffix = nestingSuffix ? regexEscape(nestingSuffix) : nestingSuffixEscaped || regexEscape(")");
14538
+ this.nestingPrefix = regexEscape(nestingPrefix || "$t(");
14539
+ this.nestingSuffix = regexEscape(nestingSuffix || ")");
14009
14540
  this.nestingOptionsSeparator = nestingOptionsSeparator || ",";
14010
14541
  this.maxReplaces = maxReplaces || 1e3;
14011
14542
  this.alwaysFormat = alwaysFormat !== void 0 ? alwaysFormat : false;
@@ -14024,12 +14555,13 @@ var Interpolator = class {
14024
14555
  };
14025
14556
  this.regexp = getOrResetRegExp(this.regexp, `${this.prefix}(.+?)${this.suffix}`);
14026
14557
  this.regexpUnescape = getOrResetRegExp(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`);
14027
- this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
14558
+ this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
14028
14559
  }
14029
14560
  interpolate(str, data, lng, options) {
14030
14561
  let match;
14031
14562
  let value;
14032
14563
  let replaces;
14564
+ const original = str;
14033
14565
  const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
14034
14566
  const handleFormat = (key) => {
14035
14567
  if (!key.includes(this.formatSeparator)) {
@@ -14062,9 +14594,17 @@ var Interpolator = class {
14062
14594
  regex: this.regexp,
14063
14595
  safeValue: (val) => this.escapeValue ? this.escape(val) : val
14064
14596
  }];
14597
+ const unescapedValues = [];
14598
+ let shift = 0;
14065
14599
  todos.forEach((todo) => {
14066
14600
  replaces = 0;
14067
14601
  while (match = todo.regex.exec(str)) {
14602
+ const at = match.index - shift;
14603
+ const written = unescapedValues.find(([start, end]) => at >= start && at < end);
14604
+ if (written) {
14605
+ todo.regex.lastIndex = written[1] + shift;
14606
+ continue;
14607
+ }
14068
14608
  const matchedVar = match[1].trim();
14069
14609
  value = handleFormat(matchedVar);
14070
14610
  if (value === void 0) {
@@ -14074,6 +14614,9 @@ var Interpolator = class {
14074
14614
  } else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
14075
14615
  value = "";
14076
14616
  } else if (skipOnVariables) {
14617
+ if (this.logger.debug) {
14618
+ this.logger.once(`${original}\0${match[0]}`, "warn", `missed to pass in variable ${matchedVar} for interpolating ${original}`);
14619
+ }
14077
14620
  value = match[0];
14078
14621
  continue;
14079
14622
  } else {
@@ -14083,9 +14626,14 @@ var Interpolator = class {
14083
14626
  } else if (!isString(value) && !this.useRawValueToEscape) {
14084
14627
  value = makeString(value);
14085
14628
  }
14086
- const safeValue = todo.safeValue(value);
14087
- str = str.replace(match[0], regexSafe(safeValue));
14629
+ const safeValue = makeString(todo.safeValue(value));
14630
+ str = str.slice(0, match.index) + safeValue + str.slice(match.index + match[0].length);
14088
14631
  if (skipOnVariables) {
14632
+ if (todo.regex === this.regexpUnescape) {
14633
+ unescapedValues.push([match.index, match.index + safeValue.length]);
14634
+ } else {
14635
+ shift += safeValue.length - match[0].length;
14636
+ }
14089
14637
  todo.regex.lastIndex += safeValue.length;
14090
14638
  todo.regex.lastIndex -= match[0].length;
14091
14639
  } else {
@@ -14128,7 +14676,10 @@ var Interpolator = class {
14128
14676
  if (clonedOptions.defaultValue && clonedOptions.defaultValue.includes(this.prefix)) delete clonedOptions.defaultValue;
14129
14677
  return key;
14130
14678
  };
14131
- while (match = this.nestingRegexp.exec(str)) {
14679
+ const nestingRegexp = new RegExp(this.nestingRegexp);
14680
+ let out = "";
14681
+ let lastEnd = 0;
14682
+ while (match = nestingRegexp.exec(str)) {
14132
14683
  let formatters = [];
14133
14684
  clonedOptions = {
14134
14685
  ...options
@@ -14154,10 +14705,11 @@ var Interpolator = class {
14154
14705
  interpolationkey: match[1].trim()
14155
14706
  }), value.trim());
14156
14707
  }
14157
- str = str.replace(match[0], regexSafe(makeString(value)));
14708
+ out += str.slice(lastEnd, match.index) + makeString(value);
14709
+ lastEnd = nestingRegexp.lastIndex;
14158
14710
  this.regexp.lastIndex = 0;
14159
14711
  }
14160
- return str;
14712
+ return lastEnd ? out + str.slice(lastEnd) : str;
14161
14713
  }
14162
14714
  };
14163
14715
  var parseFormatStr = (formatStr) => {
@@ -14201,7 +14753,12 @@ var createCachedFormatter = (fn) => {
14201
14753
  [o.interpolationkey]: void 0
14202
14754
  };
14203
14755
  }
14204
- const key = l + JSON.stringify(optForCache);
14756
+ let key;
14757
+ try {
14758
+ key = l + JSON.stringify(optForCache);
14759
+ } catch (e) {
14760
+ return fn(getCleanedCode(l), o)(v);
14761
+ }
14205
14762
  let frm = cache[key];
14206
14763
  if (!frm) {
14207
14764
  frm = fn(getCleanedCode(l), o);
@@ -14220,6 +14777,7 @@ var Formatter = class {
14220
14777
  init(services, options = {
14221
14778
  interpolation: {}
14222
14779
  }) {
14780
+ if (services?.logger?.create) this.logger = services.logger.create("formatter");
14223
14781
  this.formatSeparator = options.interpolation.formatSeparator || ",";
14224
14782
  const cf = options.cacheInBuiltFormats ? createCachedFormatter : createNonCachedFormatter;
14225
14783
  this.formats = {
@@ -14315,7 +14873,7 @@ var Connector = class extends EventEmitter {
14315
14873
  this.services = services;
14316
14874
  this.languageUtils = services.languageUtils;
14317
14875
  this.options = options;
14318
- this.logger = baseLogger.create("backendConnector");
14876
+ this.logger = (services.logger || baseLogger).create("backendConnector");
14319
14877
  this.waitingReads = [];
14320
14878
  this.maxParallelReads = options.maxParallelReads || 10;
14321
14879
  this.readingCalls = 0;
@@ -14324,6 +14882,10 @@ var Connector = class extends EventEmitter {
14324
14882
  this.state = {};
14325
14883
  this.queue = [];
14326
14884
  this.backend?.init?.(services, options.backend, options);
14885
+ this.callbackApi = callbackApiOf(this.backend);
14886
+ if (this.backend && this.callbackApi === void 0 && (this.backend.read || this.backend.create)) {
14887
+ this.logger.deprecate("backend: set callbackApi to declare the calling convention (true: read(language, namespace, callback) and create(languages, namespace, key, fallbackValue, callback, options); false: both return a promise or a value); guessing it from the number of parameters is deprecated");
14888
+ }
14327
14889
  }
14328
14890
  queueLoad(languages, namespaces, options, callback) {
14329
14891
  const toLoad = {};
@@ -14336,7 +14898,7 @@ var Connector = class extends EventEmitter {
14336
14898
  const name = `${lng}|${ns}`;
14337
14899
  if (!options.reload && this.store.hasResourceBundle(lng, ns)) {
14338
14900
  this.state[name] = 2;
14339
- } else if (this.state[name] < 0) ;
14901
+ } else if (!options.reload && this.state[name] < 0) ;
14340
14902
  else if (this.state[name] === 1) {
14341
14903
  if (pending[name] === void 0) pending[name] = true;
14342
14904
  } else {
@@ -14432,7 +14994,7 @@ var Connector = class extends EventEmitter {
14432
14994
  callback(err, data);
14433
14995
  };
14434
14996
  const fc = this.backend[fcName].bind(this.backend);
14435
- if (fc.length === 2) {
14997
+ if (this.callbackApi === false || this.callbackApi === void 0 && fc.length === 2) {
14436
14998
  try {
14437
14999
  const r = fc(lng, ns);
14438
15000
  if (r && typeof r.then === "function") {
@@ -14482,8 +15044,8 @@ var Connector = class extends EventEmitter {
14482
15044
  });
14483
15045
  }
14484
15046
  saveMissing(languages, namespace, key, fallbackValue, isUpdate, options = {}, clb = () => {
14485
- }) {
14486
- if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(namespace)) {
15047
+ }, hasLoadedNamespace2 = this.newestCloneHasLoadedNamespace || this.services?.utils?.hasLoadedNamespace) {
15048
+ if (hasLoadedNamespace2 && !hasLoadedNamespace2(namespace)) {
14487
15049
  this.logger.warn(`did not save key "${key}" as the namespace "${namespace}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
14488
15050
  return;
14489
15051
  }
@@ -14494,10 +15056,10 @@ var Connector = class extends EventEmitter {
14494
15056
  isUpdate
14495
15057
  };
14496
15058
  const fc = this.backend.create.bind(this.backend);
14497
- if (fc.length < 6) {
15059
+ if (this.callbackApi === false || this.callbackApi === void 0 && fc.length < 6) {
14498
15060
  try {
14499
15061
  let r;
14500
- if (fc.length === 5) {
15062
+ if (this.callbackApi === false || fc.length === 5) {
14501
15063
  r = fc(languages, namespace, key, fallbackValue, opts);
14502
15064
  } else {
14503
15065
  r = fc(languages, namespace, key, fallbackValue);
@@ -14523,7 +15085,7 @@ var get = () => ({
14523
15085
  initAsync: true,
14524
15086
  ns: ["translation"],
14525
15087
  defaultNS: ["translation"],
14526
- fallbackLng: ["dev"],
15088
+ fallbackLng: false,
14527
15089
  fallbackNS: false,
14528
15090
  supportedLngs: false,
14529
15091
  nonExplicitSupportedLngs: false,
@@ -14544,7 +15106,7 @@ var get = () => ({
14544
15106
  postProcess: false,
14545
15107
  postProcessPassResolved: false,
14546
15108
  returnNull: false,
14547
- returnEmptyString: true,
15109
+ returnEmptyString: false,
14548
15110
  returnObjects: false,
14549
15111
  joinArrays: false,
14550
15112
  returnedObjectHandler: false,
@@ -14589,6 +15151,39 @@ var transformOptions = (options) => {
14589
15151
  };
14590
15152
  var noop = () => {
14591
15153
  };
15154
+ var withDefaults = (options) => {
15155
+ const defOpts = get();
15156
+ const merged = {
15157
+ ...defOpts,
15158
+ ...options
15159
+ };
15160
+ merged.interpolation = {
15161
+ ...defOpts.interpolation,
15162
+ ...options.interpolation
15163
+ };
15164
+ if (typeof merged.overloadTranslationOptionHandler !== "function") {
15165
+ merged.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
15166
+ }
15167
+ return merged;
15168
+ };
15169
+ var configuredLanguageCodes = (options) => {
15170
+ const codes = [].concat(options.supportedLngs || [], options.preload || []);
15171
+ codes.push(...Object.keys(options.resources || {}));
15172
+ const fallbackLng = options.fallbackLng;
15173
+ if (isString(fallbackLng) || Array.isArray(fallbackLng)) codes.push(...[].concat(fallbackLng));
15174
+ else if (fallbackLng && typeof fallbackLng === "object") {
15175
+ Object.keys(fallbackLng).forEach((code) => {
15176
+ if (code !== "default") codes.push(code);
15177
+ codes.push(...[].concat(fallbackLng[code]));
15178
+ });
15179
+ }
15180
+ return codes;
15181
+ };
15182
+ var isRefusedLanguageCode = (i18n2, code) => {
15183
+ if (!isString(code) || isSafeLanguageCode(code) || i18n2.configuredLngs?.has(code)) return false;
15184
+ i18n2.logger.once(`lng:${code}`, "warn", `refused the language code '${code.slice(0, 64)}' from lng, changeLanguage(), the language detector or loadLanguages(): it is not configured and has other characters than letters, digits, '-', '_', '@' and '.' (or '..', or more than 128). List it in supportedLngs to use it`);
15185
+ return true;
15186
+ };
14592
15187
  var bindMemberFunctions = (inst) => {
14593
15188
  const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));
14594
15189
  mems.forEach((mem) => {
@@ -14600,15 +15195,18 @@ var bindMemberFunctions = (inst) => {
14600
15195
  var I18n = class _I18n extends EventEmitter {
14601
15196
  constructor(options = {}, callback) {
14602
15197
  super();
14603
- this.options = transformOptions(options);
14604
- this.services = {};
14605
- this.logger = baseLogger;
15198
+ this.userOptions = transformOptions(options);
15199
+ this.options = withDefaults(this.userOptions);
15200
+ this.services = {
15201
+ postProcessors: /* @__PURE__ */ Object.create(null)
15202
+ };
15203
+ this.logger = new Logger(null, this.options);
14606
15204
  this.modules = {
14607
15205
  external: []
14608
15206
  };
14609
15207
  bindMemberFunctions(this);
14610
15208
  if (callback && !this.isInitialized && !options.isClone) {
14611
- if (!this.options.initAsync) {
15209
+ if (!this.userOptions.initAsync) {
14612
15210
  this.init(options, callback);
14613
15211
  return this;
14614
15212
  }
@@ -14630,24 +15228,23 @@ var I18n = class _I18n extends EventEmitter {
14630
15228
  options.defaultNS = options.ns[0];
14631
15229
  }
14632
15230
  }
14633
- const defOpts = get();
14634
- this.options = {
14635
- ...defOpts,
14636
- ...this.options,
14637
- ...transformOptions(options)
15231
+ transformOptions(options);
15232
+ const userOptions = {
15233
+ ...this.userOptions,
15234
+ ...options
14638
15235
  };
14639
- this.options.interpolation = {
14640
- ...defOpts.interpolation,
14641
- ...this.options.interpolation
14642
- };
14643
- if (options.keySeparator !== void 0) {
14644
- this.options.userDefinedKeySeparator = options.keySeparator;
15236
+ this.options = withDefaults({
15237
+ ...this.options,
15238
+ ...options
15239
+ });
15240
+ if (userOptions.keySeparator !== void 0) {
15241
+ this.options.userDefinedKeySeparator = userOptions.keySeparator;
14645
15242
  }
14646
- if (options.nsSeparator !== void 0) {
14647
- this.options.userDefinedNsSeparator = options.nsSeparator;
15243
+ if (userOptions.nsSeparator !== void 0) {
15244
+ this.options.userDefinedNsSeparator = userOptions.nsSeparator;
14648
15245
  }
14649
- if (typeof this.options.overloadTranslationOptionHandler !== "function") {
14650
- this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
15246
+ if (!this.options.isClone) {
15247
+ this.configuredLngs = /* @__PURE__ */ new Set([...this.configuredLngs || [], ...configuredLanguageCodes(userOptions)]);
14651
15248
  }
14652
15249
  const createClassOnDemand = (ClassOrObject) => {
14653
15250
  if (!ClassOrObject) return null;
@@ -14655,34 +15252,36 @@ var I18n = class _I18n extends EventEmitter {
14655
15252
  return ClassOrObject;
14656
15253
  };
14657
15254
  if (!this.options.isClone) {
14658
- if (this.modules.logger) {
14659
- baseLogger.init(createClassOnDemand(this.modules.logger), this.options);
14660
- } else {
14661
- baseLogger.init(null, this.options);
14662
- }
15255
+ this.logger.init(createClassOnDemand(this.modules.logger), this.options);
15256
+ const {
15257
+ logger
15258
+ } = this;
15259
+ this.pendingWarnings?.forEach((msg) => this.logger.warn(msg));
15260
+ this.pendingWarnings = void 0;
14663
15261
  let formatter;
14664
15262
  if (this.modules.formatter) {
14665
15263
  formatter = this.modules.formatter;
14666
15264
  } else {
14667
15265
  formatter = Formatter;
14668
15266
  }
14669
- const lu = new LanguageUtil(this.options);
14670
- this.store = new ResourceStore(this.options.resources, this.options);
15267
+ const lu = new LanguageUtil(this.options, logger);
15268
+ this.store = new ResourceStore(this.options.resources, this.options, logger);
14671
15269
  const s = this.services;
14672
- s.logger = baseLogger;
15270
+ s.logger = logger;
14673
15271
  s.resourceStore = this.store;
14674
15272
  s.languageUtils = lu;
14675
15273
  s.pluralResolver = new PluralResolver(lu, {
14676
15274
  prepend: this.options.pluralSeparator
14677
- });
15275
+ }, logger);
14678
15276
  if (formatter) {
14679
15277
  s.formatter = createClassOnDemand(formatter);
14680
15278
  if (s.formatter.init) s.formatter.init(s, this.options);
14681
15279
  this.options.interpolation.format = s.formatter.format.bind(s.formatter);
14682
15280
  }
14683
- s.interpolator = new Interpolator(this.options);
15281
+ s.interpolator = new Interpolator(this.options, logger);
14684
15282
  s.utils = {
14685
- hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
15283
+ hasLoadedNamespace: this.hasLoadedNamespace.bind(this),
15284
+ reloadResources: this.reloadResources.bind(this)
14686
15285
  };
14687
15286
  s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);
14688
15287
  s.backendConnector.on("*", (event, ...args) => {
@@ -14691,6 +15290,9 @@ var I18n = class _I18n extends EventEmitter {
14691
15290
  if (this.modules.languageDetector) {
14692
15291
  s.languageDetector = createClassOnDemand(this.modules.languageDetector);
14693
15292
  if (s.languageDetector.init) s.languageDetector.init(s, this.options.detection, this.options);
15293
+ if (s.languageDetector.async && callbackApiOf(s.languageDetector) === void 0) {
15294
+ this.logger.deprecate("languageDetector: set callbackApi to declare how the async detect() answers (true: detect(callback); false: detect() returns a promise); guessing it from the number of parameters is deprecated");
15295
+ }
14694
15296
  }
14695
15297
  if (this.modules.i18nFormat) {
14696
15298
  s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
@@ -14786,7 +15388,10 @@ var I18n = class _I18n extends EventEmitter {
14786
15388
  callback = ns;
14787
15389
  ns = void 0;
14788
15390
  }
14789
- if (!lngs) lngs = this.languages;
15391
+ if (!lngs) {
15392
+ const requested = Object.keys(this.services.backendConnector.state).map((name) => name.split("|")[0]);
15393
+ lngs = [.../* @__PURE__ */ new Set([...this.languages || [], ...requested])].filter((l) => l !== "cimode");
15394
+ }
14790
15395
  if (!ns) ns = this.options.ns;
14791
15396
  if (!callback) callback = noop;
14792
15397
  this.services.backendConnector.reload(lngs, ns, (err) => {
@@ -14798,29 +15403,59 @@ var I18n = class _I18n extends EventEmitter {
14798
15403
  use(module2) {
14799
15404
  if (!module2) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
14800
15405
  if (!module2.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
15406
+ const setModule = (type) => {
15407
+ if (this.modules[type] && this.modules[type] !== module2) {
15408
+ const msg = `use: this ${type} replaces the ${type} passed to an earlier use() call; only one ${type} is used per instance`;
15409
+ if (this.isInitializing || this.isInitialized) this.logger.warn(msg);
15410
+ else (this.pendingWarnings = this.pendingWarnings || []).push(msg);
15411
+ }
15412
+ this.modules[type] = module2;
15413
+ };
14801
15414
  if (module2.type === "backend") {
14802
- this.modules.backend = module2;
15415
+ setModule("backend");
14803
15416
  }
14804
15417
  if (module2.type === "logger" || module2.log && module2.warn && module2.error) {
14805
15418
  this.modules.logger = module2;
14806
15419
  }
14807
15420
  if (module2.type === "languageDetector") {
14808
- this.modules.languageDetector = module2;
15421
+ setModule("languageDetector");
14809
15422
  }
14810
15423
  if (module2.type === "i18nFormat") {
14811
- this.modules.i18nFormat = module2;
15424
+ setModule("i18nFormat");
14812
15425
  }
14813
15426
  if (module2.type === "postProcessor") {
14814
- postProcessor.addPostProcessor(module2);
15427
+ this.services.postProcessors[module2.name] = module2;
14815
15428
  }
14816
15429
  if (module2.type === "formatter") {
14817
- this.modules.formatter = module2;
15430
+ setModule("formatter");
14818
15431
  }
14819
15432
  if (module2.type === "3rdParty") {
14820
15433
  this.modules.external.push(module2);
14821
15434
  }
14822
15435
  return this;
14823
15436
  }
15437
+ hydrate(resources, lng) {
15438
+ if (this.options.isClone) return this;
15439
+ if (!this.services.resourceStore) {
15440
+ this.logger.warn("hydrate: call init() first, the instance has no resource store yet");
15441
+ return this;
15442
+ }
15443
+ if (resources && !this.initializedStoreOnce) {
15444
+ this.services.resourceStore.data = resources;
15445
+ Object.values(resources).forEach((lngResources) => {
15446
+ Object.keys(lngResources).forEach((ns) => {
15447
+ if (!this.options.ns.includes(ns)) this.options.ns.push(ns);
15448
+ });
15449
+ });
15450
+ this.initializedStoreOnce = true;
15451
+ this.isInitialized = true;
15452
+ }
15453
+ if (lng && !this.initializedLanguageOnce) {
15454
+ this.changeLanguage(lng);
15455
+ this.initializedLanguageOnce = true;
15456
+ }
15457
+ return this;
15458
+ }
14824
15459
  setResolvedLanguage(l) {
14825
15460
  if (!l || !this.languages) return;
14826
15461
  if (["cimode", "dev"].includes(l)) return;
@@ -14864,8 +15499,16 @@ var I18n = class _I18n extends EventEmitter {
14864
15499
  };
14865
15500
  const setLng = (lngs) => {
14866
15501
  if (!lng && !lngs && this.services.languageDetector) lngs = [];
15502
+ const {
15503
+ supportedLngs
15504
+ } = this.options;
15505
+ if (lngs && !supportedLngs) {
15506
+ const accepted = [].concat(lngs).filter((c) => !isRefusedLanguageCode(this, c));
15507
+ if (accepted.length < [].concat(lngs).length) lngs = accepted;
15508
+ }
14867
15509
  const fl = isString(lngs) ? lngs : lngs && lngs[0];
14868
- const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
15510
+ let l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
15511
+ if (supportedLngs && isRefusedLanguageCode(this, l)) l = this.services.languageUtils.getBestMatchFromCodes([]);
14869
15512
  if (l) {
14870
15513
  if (!this.language) {
14871
15514
  setLngProps(l);
@@ -14880,7 +15523,8 @@ var I18n = class _I18n extends EventEmitter {
14880
15523
  if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {
14881
15524
  setLng(this.services.languageDetector.detect());
14882
15525
  } else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {
14883
- if (this.services.languageDetector.detect.length === 0) {
15526
+ const callbackApi = callbackApiOf(this.services.languageDetector);
15527
+ if (callbackApi === false || callbackApi === void 0 && this.services.languageDetector.detect.length === 0) {
14884
15528
  this.services.languageDetector.detect().then(setLng);
14885
15529
  } else {
14886
15530
  this.services.languageDetector.detect(setLng);
@@ -14935,7 +15579,11 @@ var I18n = class _I18n extends EventEmitter {
14935
15579
  return fixedT;
14936
15580
  }
14937
15581
  t(...args) {
14938
- return this.translator?.translate(...args);
15582
+ if (!this.translator) {
15583
+ this.logger.warn("t: called before init(); returning an empty string");
15584
+ return "";
15585
+ }
15586
+ return this.translator.translate(...args);
14939
15587
  }
14940
15588
  exists(...args) {
14941
15589
  return this.translator?.exists(...args);
@@ -14966,12 +15614,16 @@ var I18n = class _I18n extends EventEmitter {
14966
15614
  }
14967
15615
  if (this.hasResourceBundle(lng, ns)) return true;
14968
15616
  if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;
14969
- if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
15617
+ const {
15618
+ languageUtils
15619
+ } = this.services;
15620
+ const loadLng = !options.lng ? lng : languageUtils.isSupportedCode(lng) && languageUtils.toResolveHierarchy(lng, false)[0];
15621
+ if ((!loadLng || loadNotPending(loadLng, ns)) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
14970
15622
  return false;
14971
15623
  }
14972
15624
  loadNamespaces(ns, callback) {
14973
15625
  const deferred = defer();
14974
- if (!this.options.ns) {
15626
+ if (!this.options.ns || !this.services.backendConnector) {
14975
15627
  if (callback) callback();
14976
15628
  return Promise.resolve();
14977
15629
  }
@@ -14989,7 +15641,7 @@ var I18n = class _I18n extends EventEmitter {
14989
15641
  const deferred = defer();
14990
15642
  if (isString(lngs)) lngs = [lngs];
14991
15643
  const preloaded = this.options.preload || [];
14992
- const newLngs = lngs.filter((lng) => !preloaded.includes(lng) && this.services.languageUtils.isSupportedCode(lng));
15644
+ const newLngs = lngs.filter((lng) => !preloaded.includes(lng) && !isRefusedLanguageCode(this, lng) && this.services.languageUtils.isSupportedCode(lng));
14993
15645
  if (!newLngs.length) {
14994
15646
  if (callback) callback();
14995
15647
  return Promise.resolve();
@@ -15003,7 +15655,7 @@ var I18n = class _I18n extends EventEmitter {
15003
15655
  }
15004
15656
  dir(lng) {
15005
15657
  if (!lng) lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);
15006
- if (!lng) return "rtl";
15658
+ if (!lng) return "ltr";
15007
15659
  try {
15008
15660
  const l = new Intl.Locale(lng);
15009
15661
  if (l && l.getTextInfo) {
@@ -15024,42 +15676,47 @@ var I18n = class _I18n extends EventEmitter {
15024
15676
  }
15025
15677
  cloneInstance(options = {}, callback = noop) {
15026
15678
  const forkResourceStore = options.forkResourceStore;
15027
- if (forkResourceStore) delete options.forkResourceStore;
15679
+ if (forkResourceStore) {
15680
+ options = {
15681
+ ...options
15682
+ };
15683
+ delete options.forkResourceStore;
15684
+ }
15028
15685
  const mergedOptions = {
15029
15686
  ...this.options,
15687
+ preload: false,
15030
15688
  ...options,
15031
15689
  ...{
15032
15690
  isClone: true
15033
15691
  }
15034
15692
  };
15035
15693
  const clone = new _I18n(mergedOptions);
15036
- if (options.debug !== void 0 || options.prefix !== void 0) {
15037
- clone.logger = clone.logger.clone(options);
15038
- }
15039
- const membersToCopy = ["store", "services", "language"];
15694
+ clone.logger = options.debug !== void 0 || options.prefix !== void 0 ? this.logger.clone(options) : this.logger;
15695
+ const membersToCopy = ["store", "language"];
15040
15696
  membersToCopy.forEach((m) => {
15041
15697
  clone[m] = this[m];
15042
15698
  });
15043
15699
  clone.services = {
15044
15700
  ...this.services
15045
15701
  };
15702
+ clone.services.postProcessors = Object.create(this.services.postProcessors);
15046
15703
  clone.services.utils = {
15047
- hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
15704
+ ...clone.services.utils,
15705
+ hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone),
15706
+ reloadResources: clone.reloadResources.bind(clone)
15048
15707
  };
15049
15708
  if (forkResourceStore) {
15050
- const clonedData = Object.keys(this.store.data).reduce((prev, l) => {
15051
- prev[l] = {
15052
- ...this.store.data[l]
15709
+ const copyData = (obj) => {
15710
+ const copied = Array.isArray(obj) ? [...obj] : {
15711
+ ...obj
15053
15712
  };
15054
- prev[l] = Object.keys(prev[l]).reduce((acc, n) => {
15055
- acc[n] = {
15056
- ...prev[l][n]
15057
- };
15058
- return acc;
15059
- }, prev[l]);
15060
- return prev;
15061
- }, {});
15062
- clone.store = new ResourceStore(clonedData, mergedOptions);
15713
+ Object.keys(copied).forEach((k) => {
15714
+ if (copied[k] && typeof copied[k] === "object") copied[k] = copyData(copied[k]);
15715
+ });
15716
+ return copied;
15717
+ };
15718
+ const clonedData = copyData(this.store.data);
15719
+ clone.store = new ResourceStore(clonedData, mergedOptions, this.logger);
15063
15720
  clone.services.resourceStore = clone.store;
15064
15721
  }
15065
15722
  if (options.interpolation) {
@@ -15073,17 +15730,16 @@ var I18n = class _I18n extends EventEmitter {
15073
15730
  ...mergedOptions,
15074
15731
  interpolation: mergedInterpolation
15075
15732
  };
15076
- clone.services.interpolator = new Interpolator(mergedForInterpolator);
15733
+ clone.services.interpolator = new Interpolator(mergedForInterpolator, this.logger);
15077
15734
  }
15735
+ clone.configuredLngs = /* @__PURE__ */ new Set([...this.configuredLngs || [], ...configuredLanguageCodes(options)]);
15078
15736
  clone.translator = new Translator(clone.services, mergedOptions);
15079
15737
  clone.translator.on("*", (event, ...args) => {
15080
15738
  clone.emit(event, ...args);
15081
15739
  });
15082
15740
  clone.init(mergedOptions, callback);
15083
15741
  clone.translator.options = mergedOptions;
15084
- clone.translator.backendConnector.services.utils = {
15085
- hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
15086
- };
15742
+ clone.translator.backendConnector.newestCloneHasLoadedNamespace = clone.hasLoadedNamespace.bind(clone);
15087
15743
  return clone;
15088
15744
  }
15089
15745
  toJSON() {
@@ -17104,6 +17760,25 @@ var createKeyboardExecutionHandler = (fn) => {
17104
17760
  return handler;
17105
17761
  };
17106
17762
 
17763
+ // src/utils/invoiceLink.ts
17764
+ function openInvoiceLink(event, storedUrl, fetchUrl) {
17765
+ if (event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey) {
17766
+ return Promise.resolve();
17767
+ }
17768
+ const tab = window.open("", "_blank");
17769
+ if (tab === null) {
17770
+ return Promise.resolve();
17771
+ }
17772
+ event.preventDefault();
17773
+ tab.opener = null;
17774
+ return fetchUrl().then(
17775
+ (url) => url || storedUrl,
17776
+ () => storedUrl
17777
+ ).then((url) => {
17778
+ tab.location.href = url;
17779
+ });
17780
+ }
17781
+
17107
17782
  // src/utils/markdown.tsx
17108
17783
  var import_react3 = require("react");
17109
17784
  var import_jsx_runtime3 = require("react/jsx-runtime");
@@ -17857,7 +18532,7 @@ var reducer = (state, action) => {
17857
18532
  // src/context/EmbedProvider.tsx
17858
18533
  var import_jsx_runtime4 = require("react/jsx-runtime");
17859
18534
  var getCustomHeaders = (sessionId) => ({
17860
- "X-Schematic-Components-Version": "2.36.1",
18535
+ "X-Schematic-Components-Version": "2.38.0",
17861
18536
  "X-Schematic-Session-ID": sessionId
17862
18537
  });
17863
18538
  var normalizeCurrencyFilter = (filter) => {
@@ -18245,6 +18920,12 @@ var EmbedProvider = ({
18245
18920
  () => (0, import_debounce2.default)(listInvoices, FETCH_DEBOUNCE_TIMEOUT, LEADING_DEBOUNCE_SETTINGS),
18246
18921
  [listInvoices]
18247
18922
  );
18923
+ const getInvoiceLink = (0, import_react4.useCallback)(
18924
+ async (billingInvoiceId) => {
18925
+ return checkoutApi?.getInvoiceLink({ billingInvoiceId });
18926
+ },
18927
+ [checkoutApi]
18928
+ );
18248
18929
  const getCreditUsageByUser = (0, import_react4.useCallback)(
18249
18930
  async (billingCreditId, limit) => {
18250
18931
  return checkoutApi?.getCreditUsageByUser({ billingCreditId, limit });
@@ -18439,6 +19120,7 @@ var EmbedProvider = ({
18439
19120
  getUpcomingInvoice: debouncedGetUpcomingInvoice,
18440
19121
  getCustomerBalance: debouncedGetCustomerBalance,
18441
19122
  listInvoices: debouncedListInvoices,
19123
+ getInvoiceLink,
18442
19124
  getCreditUsageByUser: debouncedGetCreditUsageByUser,
18443
19125
  getFeatureUsageByUser: debouncedGetFeatureUsageByUser,
18444
19126
  finishCheckout,
@@ -27438,12 +28120,13 @@ function formatInvoices(invoices, locale, options) {
27438
28120
  const dateA = a.dueDate ?? a.createdAt;
27439
28121
  const dateB = b.dueDate ?? b.createdAt;
27440
28122
  return +dateB - +dateA;
27441
- }).map(({ amountDue, dueDate, createdAt, url, currency }) => {
28123
+ }).map(({ amountDue, dueDate, createdAt, id, url, currency }) => {
27442
28124
  const formatted = formatCurrency(Math.abs(amountDue), {
27443
28125
  locale,
27444
28126
  currency
27445
28127
  });
27446
28128
  return {
28129
+ id,
27447
28130
  amount: amountDue < 0 ? `(${formatted})` : formatted,
27448
28131
  amountDue,
27449
28132
  date: toPrettyDate(dueDate ?? createdAt, { locale }),
@@ -27454,7 +28137,7 @@ function formatInvoices(invoices, locale, options) {
27454
28137
  var Invoices = (0, import_react44.forwardRef)(({ className, ...rest }, ref) => {
27455
28138
  const props = resolveDesignProps3(rest);
27456
28139
  const { t: t2, locale } = useTranslation();
27457
- const { data, listInvoices, settings } = useEmbed();
28140
+ const { data, getInvoiceLink, listInvoices, settings } = useEmbed();
27458
28141
  const [isLoading, setIsLoading] = (0, import_react44.useState)(false);
27459
28142
  const [error, setError] = (0, import_react44.useState)();
27460
28143
  const [rawInvoices, setInvoices] = (0, import_react44.useState)(
@@ -27531,7 +28214,7 @@ var Invoices = (0, import_react44.forwardRef)(({ className, ...rest }, ref) => {
27531
28214
  props.header.isVisible && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Flex, { $justifyContent: "space-between", $alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Text, { display: props.header.fontStyle, children: t2("Invoices") }) }),
27532
28215
  invoices.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
27533
28216
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Flex, { $flexDirection: "column", $gap: "0.5rem", children: visibleInvoices.items.map(
27534
- ({ date, amount, amountDue, url }, index) => {
28217
+ ({ id, date, amount, amountDue, url }, index) => {
27535
28218
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
27536
28219
  Flex,
27537
28220
  {
@@ -27542,11 +28225,18 @@ var Invoices = (0, import_react44.forwardRef)(({ className, ...rest }, ref) => {
27542
28225
  Text,
27543
28226
  {
27544
28227
  display: props.date.fontStyle,
27545
- ...url && {
28228
+ ...id && url && {
27546
28229
  as: "a",
27547
28230
  href: url,
27548
28231
  target: "_blank",
27549
- rel: "noreferrer"
28232
+ rel: "noreferrer",
28233
+ onClick: (event) => {
28234
+ void openInvoiceLink(
28235
+ event,
28236
+ url,
28237
+ async () => (await getInvoiceLink(id))?.data.url
28238
+ );
28239
+ }
27550
28240
  },
27551
28241
  $color: url ? settings.theme.typography.link.color : settings.theme.typography.text.color,
27552
28242
  children: date
@@ -31724,8 +32414,8 @@ var UpcomingBill = (0, import_react57.forwardRef)(({ className, ...rest }, ref)
31724
32414
  });
31725
32415
  UpcomingBill.displayName = "UpcomingBill";
31726
32416
 
31727
- // node_modules/.pnpm/pako@3.0.2/node_modules/pako/dist/pako.mjs
31728
- var Z_FIXED = 4;
32417
+ // node_modules/.pnpm/pako@3.0.3/node_modules/pako/dist/pako.mjs
32418
+ var Z_FIXED$1 = 4;
31729
32419
  var Z_BINARY = 0;
31730
32420
  var Z_TEXT = 1;
31731
32421
  var Z_UNKNOWN = 2;
@@ -32197,10 +32887,10 @@ var _tr_flush_block = (s, buf, stored_len, last) => {
32197
32887
  max_blindex = build_bl_tree(s);
32198
32888
  opt_lenb = s.opt_len + 3 + 7 >>> 3;
32199
32889
  static_lenb = s.static_len + 3 + 7 >>> 3;
32200
- if (static_lenb <= opt_lenb || s.strategy === Z_FIXED) opt_lenb = static_lenb;
32890
+ if (static_lenb <= opt_lenb || s.strategy === Z_FIXED$1) opt_lenb = static_lenb;
32201
32891
  } else opt_lenb = static_lenb = stored_len + 5;
32202
32892
  if (stored_len + 4 <= opt_lenb && buf !== -1) _tr_stored_block(s, buf, stored_len, last);
32203
- else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {
32893
+ else if (s.strategy === Z_FIXED$1 || static_lenb === opt_lenb) {
32204
32894
  send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);
32205
32895
  compress_block(s, static_ltree, static_dtree);
32206
32896
  } else {
@@ -32239,20 +32929,33 @@ var adler32 = (adler, buf, len, pos) => {
32239
32929
  return s1 | s2 << 16 | 0;
32240
32930
  };
32241
32931
  var makeTable = () => {
32242
- let c, table = [];
32243
- for (var n = 0; n < 256; n++) {
32932
+ const table = new Uint32Array(256 * 8);
32933
+ let c;
32934
+ for (let n = 0; n < 256; n++) {
32244
32935
  c = n;
32245
- for (var k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
32936
+ for (let k = 0; k < 8; k++) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
32246
32937
  table[n] = c;
32247
32938
  }
32939
+ for (let n = 0; n < 256; n++) {
32940
+ c = table[n];
32941
+ for (let k = 256; k < 256 * 8; k += 256) {
32942
+ c = table[c & 255] ^ c >>> 8;
32943
+ table[k + n] = c;
32944
+ }
32945
+ }
32248
32946
  return table;
32249
32947
  };
32250
- var crcTable = new Uint32Array(makeTable());
32948
+ var crcTable = makeTable();
32251
32949
  var crc32 = (crc, buf, len, pos) => {
32252
32950
  const t2 = crcTable;
32253
32951
  const end = pos + len;
32952
+ let i = pos;
32254
32953
  crc ^= -1;
32255
- for (let i = pos; i < end; i++) crc = crc >>> 8 ^ t2[(crc ^ buf[i]) & 255];
32954
+ for (const end8 = end - 7; i < end8; i += 8) {
32955
+ crc ^= buf[i] | buf[i + 1] << 8 | buf[i + 2] << 16 | buf[i + 3] << 24;
32956
+ crc = t2[1792 + (crc & 255)] ^ t2[1536 + (crc >>> 8 & 255)] ^ t2[1280 + (crc >>> 16 & 255)] ^ t2[1024 + (crc >>> 24)] ^ t2[768 + buf[i + 4]] ^ t2[512 + buf[i + 5]] ^ t2[256 + buf[i + 6]] ^ t2[buf[i + 7]];
32957
+ }
32958
+ for (; i < end; i++) crc = crc >>> 8 ^ t2[(crc ^ buf[i]) & 255];
32256
32959
  return crc ^ -1;
32257
32960
  };
32258
32961
  var messages_default = {
@@ -33512,7 +34215,10 @@ var inflate$1 = (strm, flush) => {
33512
34215
  copy2 = 0;
33513
34216
  do {
33514
34217
  len = input[next + copy2++];
33515
- if (state.head && len && state.length < 65536) state.head.name += String.fromCharCode(len);
34218
+ if (state.head && len && state.length < 65536) {
34219
+ state.head.name += String.fromCharCode(len);
34220
+ state.length++;
34221
+ }
33516
34222
  } while (len && copy2 < have);
33517
34223
  if (state.flags & 512 && state.wrap & 4) state.check = crc32(state.check, input, copy2, next);
33518
34224
  have -= copy2;
@@ -33527,7 +34233,10 @@ var inflate$1 = (strm, flush) => {
33527
34233
  copy2 = 0;
33528
34234
  do {
33529
34235
  len = input[next + copy2++];
33530
- if (state.head && len && state.length < 65536) state.head.comment += String.fromCharCode(len);
34236
+ if (state.head && len && state.length < 65536) {
34237
+ state.head.comment += String.fromCharCode(len);
34238
+ state.length++;
34239
+ }
33531
34240
  } while (len && copy2 < have);
33532
34241
  if (state.flags & 512 && state.wrap & 4) state.check = crc32(state.check, input, copy2, next);
33533
34242
  have -= copy2;