@plusrouter/ui 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  import { jsxs as a, jsx as e, Fragment as Fe } from "react/jsx-runtime";
2
- import { w as rt, u as et, B as G, I as Qe, R as ce, a as je, r as Rt, b as Te, L as ot, c as lt, d as Tt, P as qt, e as Ft, E as Pt, C as It, f as Et, g as Ht, S as Dt, h as Ot, i as Ut, j as zt, k as Gt, l as Xt, m as Yt, n as jt, o as Wt, p as Vt, q as Kt, s as Jt, t as _t, T as Zt, v as Qt } from "./SideNavigation-qz3aib86.js";
3
- import { x as Kr, y as Jr, z as Zr, A as Qr, D as ei, F as ti, G as ai, H as ni, J as ri, K as ii, M as si, N as oi, O as li, Q as ci, U as di, V as hi, W as pi, X as ui, Y as mi, Z as gi } from "./SideNavigation-qz3aib86.js";
4
- import Nt, { useId as Ye, useState as Be, useEffect as ke, useContext as ea, createContext as ta, useMemo as Ke, Fragment as aa, useRef as Ae, forwardRef as Pe } from "react";
2
+ import { w as rt, u as et, B as U, I as Qe, R as ce, a as je, r as Rt, b as Te, L as lt, c as ot, d as Tt, P as qt, e as Ft, E as Pt, C as It, f as Et, g as Ht, S as Dt, h as Ot, i as Ut, j as zt, k as Gt, l as Xt, m as Yt, n as jt, o as Wt, p as Vt, q as Kt, s as Jt, t as _t, T as Zt, v as Qt } from "./SideNavigation-uaK5wkfX.js";
3
+ import { M as Wr, x as Vr, y as Kr, z as Jr, A as Zr, D as Qr, F as ei, G as ti, H as ai, J as ni, K as ri, N as ii, O as si, Q as li, U as oi, V as ci, W as di, X as hi, Y as pi, Z as ui, _ as mi } from "./SideNavigation-uaK5wkfX.js";
4
+ import Nt, { useId as Ye, useState as Be, useEffect as Ce, useContext as ea, createContext as ta, useMemo as Ke, Fragment as aa, useRef as Se, forwardRef as Pe } from "react";
5
5
  import * as de from "@radix-ui/react-alert-dialog";
6
- import Z from "clsx";
6
+ import J from "clsx";
7
7
  import { Globe as na } from "lucide-react";
8
8
  const ye = { ...et, ...rt };
9
- function yr({
9
+ function br({
10
10
  languageControl: t
11
11
  } = {}) {
12
12
  return /* @__PURE__ */ a("div", { className: "customer-incumbent", style: { display: "contents" }, children: [
@@ -17,8 +17,8 @@ function yr({
17
17
  /* @__PURE__ */ a("aside", { className: `${ye.sidebar}`, children: [
18
18
  /* @__PURE__ */ a("div", { className: "sidebar-account", children: [
19
19
  /* @__PURE__ */ a("div", { className: "account-top", children: [
20
- /* @__PURE__ */ e(G, { id: "account-name", "data-topup": !0, children: "Your account" }),
21
- /* @__PURE__ */ e(G, { "data-support": "notifications", "aria-label": "Notifications", children: /* @__PURE__ */ e(
20
+ /* @__PURE__ */ e(U, { id: "account-name", "data-topup": !0, children: "Your account" }),
21
+ /* @__PURE__ */ e(U, { "data-support": "notifications", "aria-label": "Notifications", children: /* @__PURE__ */ e(
22
22
  "svg",
23
23
  {
24
24
  viewBox: "0 0 20 20",
@@ -38,7 +38,7 @@ function yr({
38
38
  /* @__PURE__ */ e("small", { children: "Balance unavailable" })
39
39
  ] }),
40
40
  /* @__PURE__ */ e(
41
- G,
41
+ U,
42
42
  {
43
43
  className: "topup-icon",
44
44
  "data-topup": !0,
@@ -49,7 +49,7 @@ function yr({
49
49
  ] })
50
50
  ] }),
51
51
  /* @__PURE__ */ a("nav", { "aria-label": "Dashboard", children: [
52
- /* @__PURE__ */ a(G, { "data-page": "access", children: [
52
+ /* @__PURE__ */ a(U, { "data-page": "access", children: [
53
53
  /* @__PURE__ */ e(
54
54
  "svg",
55
55
  {
@@ -65,7 +65,7 @@ function yr({
65
65
  ),
66
66
  /* @__PURE__ */ e("span", { children: "API keys" })
67
67
  ] }),
68
- /* @__PURE__ */ a(G, { "data-page": "logs", children: [
68
+ /* @__PURE__ */ a(U, { "data-page": "logs", children: [
69
69
  /* @__PURE__ */ e(
70
70
  "svg",
71
71
  {
@@ -81,7 +81,7 @@ function yr({
81
81
  ),
82
82
  /* @__PURE__ */ e("span", { children: "LLM logs" })
83
83
  ] }),
84
- /* @__PURE__ */ a(G, { "data-page": "plans", children: [
84
+ /* @__PURE__ */ a(U, { "data-page": "plans", children: [
85
85
  /* @__PURE__ */ e(
86
86
  "svg",
87
87
  {
@@ -101,9 +101,9 @@ function yr({
101
101
  /* @__PURE__ */ a("div", { className: "sidebar-bottom", children: [
102
102
  /* @__PURE__ */ a("div", { id: "identity-session", hidden: !0, children: [
103
103
  /* @__PURE__ */ e("span", { id: "identity-status", role: "status", "aria-live": "polite" }),
104
- /* @__PURE__ */ e(G, { id: "telegram-link", type: "button", hidden: !0, children: "Connect Telegram" }),
104
+ /* @__PURE__ */ e(U, { id: "telegram-link", type: "button", hidden: !0, children: "Connect Telegram" }),
105
105
  /* @__PURE__ */ e("span", { id: "telegram-link-status", role: "status" }),
106
- /* @__PURE__ */ e(G, { id: "identity-logout", type: "button", children: "Sign out" })
106
+ /* @__PURE__ */ e(U, { id: "identity-logout", type: "button", children: "Sign out" })
107
107
  ] }),
108
108
  /* @__PURE__ */ a(
109
109
  "a",
@@ -157,7 +157,7 @@ function yr({
157
157
  /* @__PURE__ */ a("section", { "data-panel": "access", children: [
158
158
  /* @__PURE__ */ a("div", { className: "section-heading", children: [
159
159
  /* @__PURE__ */ e("h2", { children: "Your API key" }),
160
- /* @__PURE__ */ e(G, { id: "hero-key", className: `${ye.primary}`, children: "Generate API key" })
160
+ /* @__PURE__ */ e(U, { id: "hero-key", className: `${ye.primary}`, children: "Generate API key" })
161
161
  ] }),
162
162
  /* @__PURE__ */ a("div", { className: `${ye.panel} key-panel`, children: [
163
163
  /* @__PURE__ */ a("div", { className: "key-row key-labels", children: [
@@ -173,7 +173,7 @@ function yr({
173
173
  ] }),
174
174
  /* @__PURE__ */ e("code", { id: "profile-key", children: "No key connected" }),
175
175
  /* @__PURE__ */ e("span", { id: "key-status", children: "Not connected" }),
176
- /* @__PURE__ */ e(G, { id: "rotate-key", hidden: !0, children: "Rotate key" })
176
+ /* @__PURE__ */ e(U, { id: "rotate-key", hidden: !0, children: "Rotate key" })
177
177
  ] }),
178
178
  /* @__PURE__ */ e("div", { className: "key-note", id: "key-note", children: "Generate a key to get started, or connect an existing key below." })
179
179
  ] }),
@@ -181,7 +181,7 @@ function yr({
181
181
  `,
182
182
  /* @__PURE__ */ a("div", { id: "new-key-mount", children: [
183
183
  /* @__PURE__ */ e(
184
- G,
184
+ U,
185
185
  {
186
186
  id: "new-key",
187
187
  className: "text-button",
@@ -194,7 +194,7 @@ function yr({
194
194
  /* @__PURE__ */ e("h2", { children: "Create your API key" }),
195
195
  /* @__PURE__ */ e("p", { children: "We’ll show your key once. Save it before closing the window." }),
196
196
  /* @__PURE__ */ e(
197
- G,
197
+ U,
198
198
  {
199
199
  id: "create-anonymous-key",
200
200
  className: `${ye.primary}`,
@@ -224,7 +224,7 @@ function yr({
224
224
  "aria-label": "API key"
225
225
  }
226
226
  ),
227
- /* @__PURE__ */ e(G, { type: "submit", children: "Connect key" })
227
+ /* @__PURE__ */ e(U, { type: "submit", children: "Connect key" })
228
228
  ] }) }),
229
229
  /* @__PURE__ */ e("p", { id: "account-status", role: "status", "aria-live": "polite" })
230
230
  ] }),
@@ -239,7 +239,7 @@ function yr({
239
239
  ] }),
240
240
  /* @__PURE__ */ a("div", { className: "copy-inline", children: [
241
241
  /* @__PURE__ */ e("code", { children: "https://router.plus/v1" }),
242
- /* @__PURE__ */ e(G, { id: "copy-endpoint", "aria-label": "Copy base URL", children: "Copy" })
242
+ /* @__PURE__ */ e(U, { id: "copy-endpoint", "aria-label": "Copy base URL", children: "Copy" })
243
243
  ] })
244
244
  ] }),
245
245
  /* @__PURE__ */ a("div", { className: "setting-row", children: [
@@ -295,7 +295,7 @@ function yr({
295
295
  /* @__PURE__ */ a("section", { "data-panel": "plans", hidden: !0, children: [
296
296
  /* @__PURE__ */ a("div", { className: "section-heading", children: [
297
297
  /* @__PURE__ */ e("h2", { children: "Your access" }),
298
- /* @__PURE__ */ e(G, { "data-topup": !0, children: "Manage subscription" })
298
+ /* @__PURE__ */ e(U, { "data-topup": !0, children: "Manage subscription" })
299
299
  ] }),
300
300
  /* @__PURE__ */ e("div", { className: `${ye.panel} settings-list`, children: /* @__PURE__ */ a("div", { className: "setting-row", children: [
301
301
  /* @__PURE__ */ a("div", { children: [
@@ -318,7 +318,7 @@ function yr({
318
318
  /* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Latest payment" }) }),
319
319
  /* @__PURE__ */ a("div", { className: `${ye.panel} payment-summary`, children: [
320
320
  /* @__PURE__ */ e("span", { id: "latest-payment", children: "Connect your account to view payments." }),
321
- /* @__PURE__ */ e(G, { "data-topup": !0, children: "View invoice" })
321
+ /* @__PURE__ */ e(U, { "data-topup": !0, children: "View invoice" })
322
322
  ] })
323
323
  ] }),
324
324
  `
@@ -337,7 +337,7 @@ function yr({
337
337
  "aria-labelledby": "topup-title",
338
338
  children: [
339
339
  /* @__PURE__ */ a("header", { className: "drawer-header", children: [
340
- /* @__PURE__ */ e(G, { id: "close-topup", "aria-label": "Close top up", children: "×" }),
340
+ /* @__PURE__ */ e(U, { id: "close-topup", "aria-label": "Close top up", children: "×" }),
341
341
  /* @__PURE__ */ e("span", { children: "Finance / Add funds" })
342
342
  ] }),
343
343
  /* @__PURE__ */ a("div", { className: "drawer-body", children: [
@@ -381,7 +381,7 @@ function yr({
381
381
  }
382
382
  ),
383
383
  /* @__PURE__ */ a("div", { className: "balance-preview-footer", children: [
384
- /* @__PURE__ */ a(G, { id: "preview-connect", className: `${ye.primary}`, children: [
384
+ /* @__PURE__ */ a(U, { id: "preview-connect", className: `${ye.primary}`, children: [
385
385
  "Connect API key ",
386
386
  /* @__PURE__ */ e("span", { children: "→" })
387
387
  ] }),
@@ -406,7 +406,7 @@ function yr({
406
406
  `
407
407
  `,
408
408
  /* @__PURE__ */ e(
409
- G,
409
+ U,
410
410
  {
411
411
  id: "refresh",
412
412
  className: "text-button",
@@ -417,7 +417,7 @@ function yr({
417
417
  `
418
418
  `,
419
419
  /* @__PURE__ */ e(
420
- G,
420
+ U,
421
421
  {
422
422
  id: "logout",
423
423
  className: "text-button",
@@ -477,7 +477,7 @@ function yr({
477
477
  }
478
478
  ),
479
479
  /* @__PURE__ */ e(
480
- G,
480
+ U,
481
481
  {
482
482
  id: "pay",
483
483
  className: `${ye.primary}`,
@@ -500,7 +500,7 @@ function yr({
500
500
  /* @__PURE__ */ a("section", { id: "invoice", hidden: !0, "aria-label": "Payment invoice", children: [
501
501
  `
502
502
  `,
503
- /* @__PURE__ */ e(G, { id: "invoice-back", children: "← Payment methods" }),
503
+ /* @__PURE__ */ e(U, { id: "invoice-back", children: "← Payment methods" }),
504
504
  /* @__PURE__ */ e("h2", { children: "Pay by QR code" }),
505
505
  /* @__PURE__ */ e("p", { children: "Send the exact amount in one transaction." }),
506
506
  /* @__PURE__ */ e("p", { id: "invoice-countdown" }),
@@ -513,12 +513,12 @@ function yr({
513
513
  ] }),
514
514
  /* @__PURE__ */ a("div", { className: "payment-copy", children: [
515
515
  /* @__PURE__ */ e("span", { children: "Wallet address" }),
516
- /* @__PURE__ */ e(G, { id: "copy-wallet", children: "Copy" }),
516
+ /* @__PURE__ */ e(U, { id: "copy-wallet", children: "Copy" }),
517
517
  /* @__PURE__ */ e("code", { id: "payment-wallet" })
518
518
  ] }),
519
519
  /* @__PURE__ */ a("div", { className: "payment-copy", children: [
520
520
  /* @__PURE__ */ e("span", { children: "Amount to pay" }),
521
- /* @__PURE__ */ e(G, { id: "copy-payment", children: "Copy" }),
521
+ /* @__PURE__ */ e(U, { id: "copy-payment", children: "Copy" }),
522
522
  /* @__PURE__ */ e("code", { id: "payment-amount" })
523
523
  ] }),
524
524
  /* @__PURE__ */ e("p", { id: "payment-copy-status", role: "status" }),
@@ -544,7 +544,7 @@ function yr({
544
544
  `
545
545
  `,
546
546
  /* @__PURE__ */ a(
547
- G,
547
+ U,
548
548
  {
549
549
  id: "support-launcher",
550
550
  className: "support-launcher",
@@ -581,7 +581,7 @@ function yr({
581
581
  children: [
582
582
  /* @__PURE__ */ a("div", { className: "support-sidebar", children: [
583
583
  /* @__PURE__ */ a("div", { className: "support-tools", children: [
584
- /* @__PURE__ */ e(G, { id: "close-support", "aria-label": "Close support", children: "×" }),
584
+ /* @__PURE__ */ e(U, { id: "close-support", "aria-label": "Close support", children: "×" }),
585
585
  /* @__PURE__ */ e("span", { className: "window-handle" })
586
586
  ] }),
587
587
  /* @__PURE__ */ e("h2", { id: "support-title", children: "Support" }),
@@ -592,13 +592,13 @@ function yr({
592
592
  role: "group",
593
593
  "aria-label": "Support inbox",
594
594
  children: [
595
- /* @__PURE__ */ e(G, { "data-inbox": "active", "aria-pressed": "true", children: "Active" }),
596
- /* @__PURE__ */ e(G, { "data-inbox": "archive", "aria-pressed": "false", children: "Archive" })
595
+ /* @__PURE__ */ e(U, { "data-inbox": "active", "aria-pressed": "true", children: "Active" }),
596
+ /* @__PURE__ */ e(U, { "data-inbox": "archive", "aria-pressed": "false", children: "Archive" })
597
597
  ]
598
598
  }
599
599
  ),
600
600
  /* @__PURE__ */ a(
601
- G,
601
+ U,
602
602
  {
603
603
  className: "notification-row",
604
604
  "data-inbox": "notifications",
@@ -621,7 +621,7 @@ function yr({
621
621
  }
622
622
  ),
623
623
  /* @__PURE__ */ e("p", { id: "support-list-status", children: "Ticket history is not connected." }),
624
- /* @__PURE__ */ a(G, { id: "new-ticket", children: [
624
+ /* @__PURE__ */ a(U, { id: "new-ticket", children: [
625
625
  "New ticket ",
626
626
  /* @__PURE__ */ e("span", { children: "+" })
627
627
  ] })
@@ -643,7 +643,7 @@ function yr({
643
643
  ) }),
644
644
  /* @__PURE__ */ e("h3", { children: "How can we help?" }),
645
645
  /* @__PURE__ */ e("p", { children: "Support messages are not connected yet. You can prepare your request here." }),
646
- /* @__PURE__ */ e(G, { id: "compose-ticket", children: "Write a request" })
646
+ /* @__PURE__ */ e(U, { id: "compose-ticket", children: "Write a request" })
647
647
  ] }),
648
648
  /* @__PURE__ */ a("form", { id: "ticket-form", hidden: !0, children: [
649
649
  /* @__PURE__ */ e("h3", { children: "New request" }),
@@ -673,7 +673,7 @@ function yr({
673
673
  )
674
674
  ] }),
675
675
  /* @__PURE__ */ e("p", { children: "Sending tickets is not available yet." }),
676
- /* @__PURE__ */ e(G, { type: "submit", children: "Copy request" }),
676
+ /* @__PURE__ */ e(U, { type: "submit", children: "Copy request" }),
677
677
  /* @__PURE__ */ e("p", { id: "ticket-status", role: "status" })
678
678
  ] })
679
679
  ] })
@@ -695,17 +695,17 @@ const c = { ...et, ...rt }, ct = [
695
695
  function ia({
696
696
  children: t,
697
697
  onClick: n,
698
- primary: i = !1,
699
- label: l
698
+ primary: r = !1,
699
+ label: o
700
700
  }) {
701
701
  return /* @__PURE__ */ e(
702
702
  "button",
703
703
  {
704
704
  type: "button",
705
- className: `${c.text}${i ? " primary" : ""}`,
705
+ className: `${c.text}${r ? " primary" : ""}`,
706
706
  onClick: n,
707
707
  disabled: !n,
708
- "aria-label": l,
708
+ "aria-label": o,
709
709
  children: t
710
710
  }
711
711
  );
@@ -713,52 +713,52 @@ function ia({
713
713
  function Oe({
714
714
  status: t,
715
715
  error: n,
716
- onRetry: i,
717
- loading: l,
718
- empty: o
716
+ onRetry: r,
717
+ loading: o,
718
+ empty: l
719
719
  }) {
720
720
  return t === "error" ? /* @__PURE__ */ a("div", { className: `${c["empty-state"]}`, role: "alert", children: [
721
721
  /* @__PURE__ */ e("span", { children: n || "Unable to load this information." }),
722
- i && /* @__PURE__ */ e(ia, { onClick: i, children: "Try again" })
723
- ] }) : /* @__PURE__ */ e("div", { className: `${c["empty-state"]}`, role: "status", children: t === "loading" ? l : o });
722
+ r && /* @__PURE__ */ e(ia, { onClick: r, children: "Try again" })
723
+ ] }) : /* @__PURE__ */ e("div", { className: `${c["empty-state"]}`, role: "status", children: t === "loading" ? o : l });
724
724
  }
725
- function _r({
725
+ function yr({
726
726
  page: t,
727
727
  theme: n,
728
- children: i,
729
- onNavigate: l,
730
- onRefresh: o,
731
- refreshing: r = !1,
728
+ children: r,
729
+ onNavigate: o,
730
+ onRefresh: l,
731
+ refreshing: i = !1,
732
732
  usageSection: d = "Overview",
733
733
  usageSections: h = ra,
734
734
  onUsageSectionChange: m,
735
735
  notice: C,
736
- headerActions: $,
737
- sidebarFooter: b,
738
- beforeContent: A
736
+ headerActions: x,
737
+ sidebarFooter: _,
738
+ beforeContent: S
739
739
  }) {
740
- const [v, f] = Be(
740
+ const [v, w] = Be(
741
741
  () => typeof matchMedia < "u" && matchMedia(
742
742
  "(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
743
743
  ).matches
744
744
  );
745
- ke(() => {
745
+ Ce(() => {
746
746
  const B = matchMedia(
747
747
  "(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
748
- ), w = () => f(B.matches);
749
- return B.addEventListener("change", w), () => B.removeEventListener("change", w);
748
+ ), k = () => w(B.matches);
749
+ return B.addEventListener("change", k), () => B.removeEventListener("change", k);
750
750
  }, []);
751
- const _ = t === "settings" ? "Settings" : ct.find(([B]) => B === t)[1], N = ["agents", "sessions", "library"].includes(t) ? "Work" : ["usage", "balance"].includes(t) ? "Insights" : "Models", T = t === "connection" ? "providers" : t, s = /* @__PURE__ */ a("div", { className: `${c.brand}`, children: [
751
+ const N = t === "settings" ? "Settings" : ct.find(([B]) => B === t)[1], b = ["agents", "sessions", "library"].includes(t) ? "Work" : ["usage", "balance"].includes(t) ? "Insights" : "Models", P = t === "connection" ? "providers" : t, s = /* @__PURE__ */ a("div", { className: `${c.brand}`, children: [
752
752
  /* @__PURE__ */ e("span", { className: `${c.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src: Rt, width: "22", height: "22", alt: "" }) }),
753
753
  /* @__PURE__ */ e("span", { children: "RouterPlus" })
754
- ] }), k = /* @__PURE__ */ a(
754
+ ] }), $ = /* @__PURE__ */ a(
755
755
  "button",
756
756
  {
757
757
  type: "button",
758
758
  id: "prefs",
759
759
  className: `${c.icon}${t === "settings" ? " on" : ""}`,
760
760
  "aria-label": "Settings",
761
- onClick: () => l?.("settings"),
761
+ onClick: () => o?.("settings"),
762
762
  children: [
763
763
  /* @__PURE__ */ e(ce, { name: "settings" }),
764
764
  /* @__PURE__ */ e("span", { className: `${c["side-l"]}`, children: "Settings" })
@@ -771,11 +771,11 @@ function _r({
771
771
  id: v ? "usageTab" : void 0,
772
772
  ref: (B) => {
773
773
  if (!B || !v) return;
774
- const w = () => {
775
- const E = B.querySelector("button.on"), O = B.querySelector(".thumb");
776
- E && O && (O.style.width = E.offsetWidth + "px", O.style.transform = `translateX(${E.offsetLeft}px)`);
774
+ const k = () => {
775
+ const H = B.querySelector("button.on"), j = B.querySelector(".thumb");
776
+ H && j && (j.style.width = H.offsetWidth + "px", j.style.transform = `translateX(${H.offsetLeft}px)`);
777
777
  };
778
- w(), document.fonts.ready.then(w);
778
+ k(), document.fonts.ready.then(k);
779
779
  },
780
780
  role: "group",
781
781
  "aria-label": "Usage section",
@@ -818,7 +818,7 @@ function _r({
818
818
  className: `${c.seg}`,
819
819
  id: "nav",
820
820
  "aria-label": "Main navigation",
821
- children: ct.map(([B, w, E]) => /* @__PURE__ */ a(Nt.Fragment, { children: [
821
+ children: ct.map(([B, k, H]) => /* @__PURE__ */ a(Nt.Fragment, { children: [
822
822
  /* @__PURE__ */ a(
823
823
  "button",
824
824
  {
@@ -826,10 +826,10 @@ function _r({
826
826
  "data-view": B === "connection" ? "providers" : B,
827
827
  className: t === B ? c.on : "",
828
828
  "aria-current": t === B ? "page" : void 0,
829
- onClick: () => l?.(B),
829
+ onClick: () => o?.(B),
830
830
  children: [
831
- /* @__PURE__ */ e(ce, { name: E }),
832
- /* @__PURE__ */ e("span", { children: w })
831
+ /* @__PURE__ */ e(ce, { name: H }),
832
+ /* @__PURE__ */ e("span", { children: k })
833
833
  ]
834
834
  }
835
835
  ),
@@ -838,21 +838,21 @@ function _r({
838
838
  }
839
839
  ) }),
840
840
  /* @__PURE__ */ a("div", { className: `${c["side-foot"]}`, children: [
841
- k,
842
- b
841
+ $,
842
+ _
843
843
  ] })
844
844
  ] }),
845
845
  /* @__PURE__ */ a("header", { className: `${c.top}`, children: [
846
846
  v && s,
847
- /* @__PURE__ */ e("h1", { className: `${c["sr-only"]}`, children: _ }),
847
+ /* @__PURE__ */ e("h1", { className: `${c["sr-only"]}`, children: N }),
848
848
  !v && /* @__PURE__ */ a("div", { className: `${c.crumb}`, "aria-hidden": "true", children: [
849
- /* @__PURE__ */ e("span", { children: N }),
849
+ /* @__PURE__ */ e("span", { children: b }),
850
850
  /* @__PURE__ */ e("i", { children: "/" }),
851
851
  t === "usage" ? /* @__PURE__ */ a(Fe, { children: [
852
852
  /* @__PURE__ */ e("span", { children: "Usage" }),
853
853
  /* @__PURE__ */ e("i", { children: "/" }),
854
854
  /* @__PURE__ */ e("b", { children: d })
855
- ] }) : /* @__PURE__ */ e("b", { children: _ })
855
+ ] }) : /* @__PURE__ */ e("b", { children: N })
856
856
  ] }),
857
857
  /* @__PURE__ */ a("div", { className: `${c.actions}`, children: [
858
858
  /* @__PURE__ */ e(
@@ -862,45 +862,45 @@ function _r({
862
862
  className: `${c.icon}`,
863
863
  id: "sync",
864
864
  "aria-label": "Refresh",
865
- disabled: r,
866
- onClick: o,
865
+ disabled: i,
866
+ onClick: l,
867
867
  children: /* @__PURE__ */ e(ce, { name: "refresh" })
868
868
  }
869
869
  ),
870
- $,
871
- v && k
870
+ x,
871
+ v && $
872
872
  ] })
873
873
  ] }),
874
- /* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${T}`, children: [
875
- A,
876
- /* @__PURE__ */ e(wt.Provider, { value: t === "usage" && v ? g : null, children: i })
874
+ /* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${P}`, children: [
875
+ S,
876
+ /* @__PURE__ */ e(wt.Provider, { value: t === "usage" && v ? g : null, children: r })
877
877
  ] }),
878
878
  C && /* @__PURE__ */ e("footer", { className: `${c["mp-notice"]}`, children: C })
879
879
  ]
880
880
  }
881
881
  );
882
882
  }
883
- function Nr({
883
+ function _r({
884
884
  groups: t,
885
885
  query: n,
886
- onQueryChange: i,
887
- onSelect: l,
888
- onImport: o,
889
- onCustomProvider: r,
886
+ onQueryChange: r,
887
+ onSelect: o,
888
+ onImport: l,
889
+ onCustomProvider: i,
890
890
  onPlugins: d,
891
891
  hasProviders: h = !1,
892
892
  status: m = "ready",
893
893
  error: C,
894
- onRetry: $
894
+ onRetry: x
895
895
  }) {
896
- const b = Ye(), A = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), v = t.map((f) => ({
897
- ...f,
898
- providers: f.providers.filter(
899
- (_) => A.every(
900
- (N) => `${_.name} ${_.detail ?? ""} ${f.title} ${f.hint ?? ""}`.toLocaleLowerCase().includes(N)
896
+ const _ = Ye(), S = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), v = t.map((w) => ({
897
+ ...w,
898
+ providers: w.providers.filter(
899
+ (N) => S.every(
900
+ (b) => `${N.name} ${N.detail ?? ""} ${w.title} ${w.hint ?? ""}`.toLocaleLowerCase().includes(b)
901
901
  )
902
902
  )
903
- })).filter((f) => f.providers.length);
903
+ })).filter((w) => w.providers.length);
904
904
  return /* @__PURE__ */ a(Fe, { children: [
905
905
  /* @__PURE__ */ e("div", { className: `${c["after-list"]} ${c.away}`, children: /* @__PURE__ */ e("button", { className: `${c.text}`, children: "+ Add provider" }) }),
906
906
  /* @__PURE__ */ a(
@@ -912,20 +912,20 @@ function Nr({
912
912
  "aria-busy": m === "loading",
913
913
  children: [
914
914
  /* @__PURE__ */ a("div", { className: `${c["row-head"]}`, children: [
915
- /* @__PURE__ */ e("label", { className: `${c.label}`, htmlFor: b, children: h ? "Add a provider" : "Add your first provider" }),
915
+ /* @__PURE__ */ e("label", { className: `${c.label}`, htmlFor: _, children: h ? "Add a provider" : "Add your first provider" }),
916
916
  /* @__PURE__ */ e("span", { className: `${c.grow}` }),
917
917
  /* @__PURE__ */ e(
918
918
  "input",
919
919
  {
920
920
  className: `${c.find}`,
921
- id: b,
921
+ id: _,
922
922
  type: "text",
923
923
  "aria-label": "Find a vendor",
924
924
  placeholder: "Find a vendor…",
925
925
  value: n,
926
- onChange: (f) => i(f.target.value),
927
- onKeyDown: (f) => {
928
- f.key === "Escape" && i("");
926
+ onChange: (w) => r(w.target.value),
927
+ onKeyDown: (w) => {
928
+ w.key === "Escape" && r("");
929
929
  }
930
930
  }
931
931
  ),
@@ -934,7 +934,7 @@ function Nr({
934
934
  {
935
935
  type: "button",
936
936
  className: `${c.text}`,
937
- onClick: o,
937
+ onClick: l,
938
938
  children: "Import…"
939
939
  }
940
940
  )
@@ -944,7 +944,7 @@ function Nr({
944
944
  {
945
945
  status: m,
946
946
  error: C,
947
- onRetry: $,
947
+ onRetry: x,
948
948
  loading: "Loading providers…"
949
949
  }
950
950
  ) : /* @__PURE__ */ a("div", { className: "tiles", children: [
@@ -955,28 +955,28 @@ function Nr({
955
955
  empty: n.trim() ? `No providers match “${n.trim()}”. Try another name or add a custom provider.` : "No providers available."
956
956
  }
957
957
  ),
958
- v.map((f) => /* @__PURE__ */ a(Nt.Fragment, { children: [
958
+ v.map((w) => /* @__PURE__ */ a(Nt.Fragment, { children: [
959
959
  /* @__PURE__ */ a("div", { className: `${c.kind}`, children: [
960
- /* @__PURE__ */ e("b", { children: f.title }),
961
- f.hint && /* @__PURE__ */ e("span", { children: f.hint })
960
+ /* @__PURE__ */ e("b", { children: w.title }),
961
+ w.hint && /* @__PURE__ */ e("span", { children: w.hint })
962
962
  ] }),
963
963
  /* @__PURE__ */ a("div", { className: `${c.grid}`, children: [
964
- f.providers.map((_) => /* @__PURE__ */ a(
964
+ w.providers.map((N) => /* @__PURE__ */ a(
965
965
  "button",
966
966
  {
967
967
  type: "button",
968
968
  className: `${c.tile}`,
969
- disabled: _.disabled,
970
- onClick: () => l?.(_),
971
- title: _.detail || _.name,
969
+ disabled: N.disabled,
970
+ onClick: () => o?.(N),
971
+ title: N.detail || N.name,
972
972
  children: [
973
- /* @__PURE__ */ e(je, { name: _.icon }),
974
- /* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: _.name }) })
973
+ /* @__PURE__ */ e(je, { name: N.icon }),
974
+ /* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: N.name }) })
975
975
  ]
976
976
  },
977
- _.id
977
+ N.id
978
978
  )),
979
- f.id === "subscriptions" && !n.trim() && /* @__PURE__ */ a(
979
+ w.id === "subscriptions" && !n.trim() && /* @__PURE__ */ a(
980
980
  "button",
981
981
  {
982
982
  type: "button",
@@ -990,14 +990,14 @@ function Nr({
990
990
  }
991
991
  )
992
992
  ] })
993
- ] }, f.id)),
993
+ ] }, w.id)),
994
994
  !n.trim() && /* @__PURE__ */ a("div", { className: `${c["custom-foot"]}`, children: [
995
995
  /* @__PURE__ */ a(
996
996
  "button",
997
997
  {
998
998
  type: "button",
999
999
  className: `${c.custom}`,
1000
- onClick: r,
1000
+ onClick: i,
1001
1001
  children: [
1002
1002
  /* @__PURE__ */ e(ce, { name: "plus" }),
1003
1003
  /* @__PURE__ */ e("span", { children: "Custom provider" })
@@ -1012,26 +1012,26 @@ function Nr({
1012
1012
  )
1013
1013
  ] });
1014
1014
  }
1015
- function wr({
1015
+ function Nr({
1016
1016
  agents: t,
1017
1017
  endpoint: n,
1018
- onCopyEndpoint: i,
1019
- onOpenConnection: l,
1020
- onToggle: o,
1021
- onMappingChange: r,
1018
+ onCopyEndpoint: r,
1019
+ onOpenConnection: o,
1020
+ onToggle: l,
1021
+ onMappingChange: i,
1022
1022
  showGuide: d = !0,
1023
1023
  onDismissGuide: h,
1024
1024
  connectionReady: m = !1,
1025
1025
  onSaveProfile: C,
1026
- profileLabel: $ = "none yet · save the setup to switch back in one click",
1027
- onManage: b,
1028
- onInstall: A,
1026
+ profileLabel: x = "none yet · save the setup to switch back in one click",
1027
+ onManage: _,
1028
+ onInstall: S,
1029
1029
  installCount: v,
1030
- status: f = "ready",
1031
- error: _,
1032
- onRetry: N
1030
+ status: w = "ready",
1031
+ error: N,
1032
+ onRetry: b
1033
1033
  }) {
1034
- const T = Number(m) + Number(t.some((s) => s.state === "connected"));
1034
+ const P = Number(m) + Number(t.some((s) => s.state === "connected"));
1035
1035
  return /* @__PURE__ */ a(Fe, { children: [
1036
1036
  /* @__PURE__ */ a("div", { className: `${c["row-head"]}`, children: [
1037
1037
  /* @__PURE__ */ a(
@@ -1060,7 +1060,7 @@ function wr({
1060
1060
  type: "button",
1061
1061
  className: `${c.copy}`,
1062
1062
  "aria-label": "Copy endpoint",
1063
- onClick: i,
1063
+ onClick: r,
1064
1064
  children: /* @__PURE__ */ e(ce, { name: "copy" })
1065
1065
  }
1066
1066
  )
@@ -1070,7 +1070,7 @@ function wr({
1070
1070
  ] }),
1071
1071
  /* @__PURE__ */ a("section", { className: `${c.profiles}`, children: [
1072
1072
  /* @__PURE__ */ e("span", { className: `${c.label}`, children: "Profiles" }),
1073
- /* @__PURE__ */ e("div", { id: "profiles", className: `${c.chips}`, children: /* @__PURE__ */ e("span", { className: `${c.hint}`, children: $ }) }),
1073
+ /* @__PURE__ */ e("div", { id: "profiles", className: `${c.chips}`, children: /* @__PURE__ */ e("span", { className: `${c.hint}`, children: x }) }),
1074
1074
  /* @__PURE__ */ e(
1075
1075
  "button",
1076
1076
  {
@@ -1082,12 +1082,12 @@ function wr({
1082
1082
  }
1083
1083
  )
1084
1084
  ] }),
1085
- f !== "ready" ? /* @__PURE__ */ e(
1085
+ w !== "ready" ? /* @__PURE__ */ e(
1086
1086
  Oe,
1087
1087
  {
1088
- status: f,
1089
- error: _,
1090
- onRetry: N,
1088
+ status: w,
1089
+ error: N,
1090
+ onRetry: b,
1091
1091
  loading: "Loading agents…"
1092
1092
  }
1093
1093
  ) : /* @__PURE__ */ a(Fe, { children: [
@@ -1100,7 +1100,7 @@ function wr({
1100
1100
  /* @__PURE__ */ a("div", { className: `${c["guide-head"]}`, children: [
1101
1101
  /* @__PURE__ */ e("b", { className: `${c["guide-h"]}`, children: "Get started" }),
1102
1102
  /* @__PURE__ */ a("span", { className: `${c["guide-n"]}`, children: [
1103
- T,
1103
+ P,
1104
1104
  " of 2 done"
1105
1105
  ] }),
1106
1106
  /* @__PURE__ */ e(
@@ -1125,7 +1125,7 @@ function wr({
1125
1125
  {
1126
1126
  type: "button",
1127
1127
  className: `${c.text} ${c.primary} guide-go`,
1128
- onClick: l,
1128
+ onClick: o,
1129
1129
  children: "Open Connection"
1130
1130
  }
1131
1131
  )
@@ -1141,8 +1141,8 @@ function wr({
1141
1141
  {
1142
1142
  type: "button",
1143
1143
  className: `${c["guide-agent"]}`,
1144
- disabled: !o || !m && s.state === "needs-connection" || s.pending,
1145
- onClick: () => o?.(
1144
+ disabled: !l || !m && s.state === "needs-connection" || s.pending,
1145
+ onClick: () => l?.(
1146
1146
  s.id,
1147
1147
  s.state !== "connected"
1148
1148
  ),
@@ -1208,24 +1208,24 @@ function wr({
1208
1208
  {
1209
1209
  type: "button",
1210
1210
  className: `${c["ag-add"]}`,
1211
- onClick: l,
1211
+ onClick: o,
1212
1212
  children: "Open Connection"
1213
1213
  }
1214
1214
  ),
1215
1215
  s.detail && /* @__PURE__ */ e("div", { className: `${c["ag-card-description"]}`, children: /* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children: s.detail }) }),
1216
- s.state === "connected" && s.fields?.map((k) => /* @__PURE__ */ a("label", { className: `${c.field}`, children: [
1217
- /* @__PURE__ */ e("span", { children: k.label }),
1216
+ s.state === "connected" && s.fields?.map(($) => /* @__PURE__ */ a("label", { className: `${c.field}`, children: [
1217
+ /* @__PURE__ */ e("span", { children: $.label }),
1218
1218
  /* @__PURE__ */ e(
1219
1219
  "select",
1220
1220
  {
1221
- "aria-label": k.label,
1222
- value: k.value,
1223
- disabled: k.disabled || s.pending || !r,
1224
- onChange: (g) => r?.(s.id, k.id, g.target.value),
1225
- children: k.options.map((g) => /* @__PURE__ */ e("option", { value: g.value, children: g.label }, g.value))
1221
+ "aria-label": $.label,
1222
+ value: $.value,
1223
+ disabled: $.disabled || s.pending || !i,
1224
+ onChange: (g) => i?.(s.id, $.id, g.target.value),
1225
+ children: $.options.map((g) => /* @__PURE__ */ e("option", { value: g.value, children: g.label }, g.value))
1226
1226
  }
1227
1227
  )
1228
- ] }, k.id)),
1228
+ ] }, $.id)),
1229
1229
  s.state !== "missing" && /* @__PURE__ */ e(
1230
1230
  "button",
1231
1231
  {
@@ -1234,8 +1234,8 @@ function wr({
1234
1234
  className: `${c["lib-switch"]} ${c["ag-conn"]}${s.state === "connected" ? " on" : ""}`,
1235
1235
  "aria-label": `Connect ${s.name}`,
1236
1236
  "aria-checked": s.state === "connected",
1237
- disabled: !o || s.state === "needs-connection" || s.pending,
1238
- onClick: () => o?.(s.id, s.state !== "connected"),
1237
+ disabled: !l || s.state === "needs-connection" || s.pending,
1238
+ onClick: () => l?.(s.id, s.state !== "connected"),
1239
1239
  children: /* @__PURE__ */ e("i", {})
1240
1240
  }
1241
1241
  )
@@ -1248,7 +1248,7 @@ function wr({
1248
1248
  {
1249
1249
  className: `${c["ag-manage-button"]}`,
1250
1250
  type: "button",
1251
- onClick: b,
1251
+ onClick: _,
1252
1252
  children: [
1253
1253
  /* @__PURE__ */ e(ce, { name: "manage" }),
1254
1254
  /* @__PURE__ */ e("span", { children: "Manage" })
@@ -1261,7 +1261,7 @@ function wr({
1261
1261
  {
1262
1262
  type: "button",
1263
1263
  className: `${c["ag-install-head"]}`,
1264
- onClick: A,
1264
+ onClick: S,
1265
1265
  children: [
1266
1266
  /* @__PURE__ */ a("span", { children: [
1267
1267
  "Install another agent",
@@ -1281,26 +1281,26 @@ const dt = [
1281
1281
  "All",
1282
1282
  "Custom"
1283
1283
  ];
1284
- function kr({
1284
+ function wr({
1285
1285
  period: t,
1286
1286
  onPeriodChange: n,
1287
- data: i,
1288
- onRefresh: l,
1289
- refreshInterval: o = "5 s",
1290
- onRefreshIntervalChange: r,
1287
+ data: r,
1288
+ onRefresh: o,
1289
+ refreshInterval: l = "5 s",
1290
+ onRefreshIntervalChange: i,
1291
1291
  customRange: d,
1292
1292
  onCustomRangeChange: h,
1293
1293
  status: m = "ready",
1294
1294
  error: C,
1295
- onRetry: $
1295
+ onRetry: x
1296
1296
  }) {
1297
- const b = ea(wt), [A, v] = Be(!1), [f, _] = Be(!1), N = m === "ready" ? i : null, T = Math.max(
1297
+ const _ = ea(wt), [S, v] = Be(!1), [w, N] = Be(!1), b = m === "ready" ? r : null, P = Math.max(
1298
1298
  1,
1299
- ...N?.series.map((s) => s.calls) ?? []
1299
+ ...b?.series.map((s) => s.calls) ?? []
1300
1300
  );
1301
1301
  return /* @__PURE__ */ a(Fe, { children: [
1302
1302
  /* @__PURE__ */ a("div", { className: `${c["usage-head"]}`, children: [
1303
- b,
1303
+ _,
1304
1304
  /* @__PURE__ */ a(
1305
1305
  "div",
1306
1306
  {
@@ -1308,9 +1308,9 @@ function kr({
1308
1308
  id: "period",
1309
1309
  ref: (s) => {
1310
1310
  if (!s) return;
1311
- const k = s.querySelector("button.on"), g = s.querySelector(".thumb");
1312
- k && g && (g.style.width = k.offsetWidth + "px", g.style.transform = `translateX(${k.offsetLeft}px)`, document.fonts.ready.then(() => {
1313
- g.style.width = k.offsetWidth + "px", g.style.transform = `translateX(${k.offsetLeft}px)`;
1311
+ const $ = s.querySelector("button.on"), g = s.querySelector(".thumb");
1312
+ $ && g && (g.style.width = $.offsetWidth + "px", g.style.transform = `translateX(${$.offsetLeft}px)`, document.fonts.ready.then(() => {
1313
+ g.style.width = $.offsetWidth + "px", g.style.transform = `translateX(${$.offsetLeft}px)`;
1314
1314
  }));
1315
1315
  },
1316
1316
  role: "group",
@@ -1341,8 +1341,8 @@ function kr({
1341
1341
  type: "button",
1342
1342
  className: `${c["usage-range-menu"]}`,
1343
1343
  "aria-label": "Usage period",
1344
- "aria-expanded": A,
1345
- onClick: () => v(!A),
1344
+ "aria-expanded": S,
1345
+ onClick: () => v(!S),
1346
1346
  children: [
1347
1347
  /* @__PURE__ */ e("span", { children: t }),
1348
1348
  /* @__PURE__ */ e(ce, { name: "down" })
@@ -1357,8 +1357,8 @@ function kr({
1357
1357
  type: "button",
1358
1358
  className: `${c.icon}`,
1359
1359
  "aria-label": "Refresh usage",
1360
- disabled: !l || m === "loading",
1361
- onClick: l,
1360
+ disabled: !o || m === "loading",
1361
+ onClick: o,
1362
1362
  children: /* @__PURE__ */ e(ce, { name: "refresh" })
1363
1363
  }
1364
1364
  ),
@@ -1368,17 +1368,17 @@ function kr({
1368
1368
  type: "button",
1369
1369
  className: `${c["sess-pick"]} ${c.live}`,
1370
1370
  "aria-label": "Refresh interval",
1371
- "aria-expanded": f,
1372
- onClick: () => _(!f),
1371
+ "aria-expanded": w,
1372
+ onClick: () => N(!w),
1373
1373
  children: [
1374
- /* @__PURE__ */ e("span", { children: o }),
1374
+ /* @__PURE__ */ e("span", { children: l }),
1375
1375
  /* @__PURE__ */ e(ce, { name: "down" })
1376
1376
  ]
1377
1377
  }
1378
1378
  )
1379
1379
  ] }),
1380
1380
  /* @__PURE__ */ a("span", { className: `${c["usage-cost"]}`, children: [
1381
- /* @__PURE__ */ e("b", { children: N?.cost ?? "—" }),
1381
+ /* @__PURE__ */ e("b", { children: b?.cost ?? "—" }),
1382
1382
  /* @__PURE__ */ e("span", { children: "effective prices" })
1383
1383
  ] })
1384
1384
  ] }),
@@ -1416,7 +1416,7 @@ function kr({
1416
1416
  )
1417
1417
  ] })
1418
1418
  ] }),
1419
- A && /* @__PURE__ */ e(
1419
+ S && /* @__PURE__ */ e(
1420
1420
  "div",
1421
1421
  {
1422
1422
  className: `${c.pop}`,
@@ -1438,7 +1438,7 @@ function kr({
1438
1438
  ))
1439
1439
  }
1440
1440
  ),
1441
- f && /* @__PURE__ */ e(
1441
+ w && /* @__PURE__ */ e(
1442
1442
  "div",
1443
1443
  {
1444
1444
  className: `${c.pop}`,
@@ -1449,7 +1449,7 @@ function kr({
1449
1449
  {
1450
1450
  role: "menuitem",
1451
1451
  onClick: () => {
1452
- r?.(s), _(!1);
1452
+ i?.(s), N(!1);
1453
1453
  },
1454
1454
  children: s
1455
1455
  },
@@ -1463,10 +1463,10 @@ function kr({
1463
1463
  {
1464
1464
  status: m,
1465
1465
  error: C,
1466
- onRetry: $,
1466
+ onRetry: x,
1467
1467
  loading: "Loading usage…"
1468
1468
  }
1469
- ) : N ? N.calls === 0 ? /* @__PURE__ */ e("div", { className: `${c.stats} ${c.empty}`, children: /* @__PURE__ */ e(
1469
+ ) : b ? b.calls === 0 ? /* @__PURE__ */ e("div", { className: `${c.stats} ${c.empty}`, children: /* @__PURE__ */ e(
1470
1470
  "div",
1471
1471
  {
1472
1472
  className: `${c.none}`,
@@ -1475,13 +1475,13 @@ function kr({
1475
1475
  }
1476
1476
  ) }) : /* @__PURE__ */ a(Fe, { children: [
1477
1477
  /* @__PURE__ */ e("dl", { className: "mp-usage-metrics", children: [
1478
- ["Calls", N.calls],
1479
- ["Errors", N.errors],
1480
- ["Input tokens", N.input],
1481
- ["Output tokens", N.output]
1482
- ].map(([s, k]) => /* @__PURE__ */ a("div", { children: [
1478
+ ["Calls", b.calls],
1479
+ ["Errors", b.errors],
1480
+ ["Input tokens", b.input],
1481
+ ["Output tokens", b.output]
1482
+ ].map(([s, $]) => /* @__PURE__ */ a("div", { children: [
1483
1483
  /* @__PURE__ */ e("dt", { children: s }),
1484
- /* @__PURE__ */ e("dd", { children: typeof k == "number" ? k.toLocaleString("en-US") : k })
1484
+ /* @__PURE__ */ e("dd", { children: typeof $ == "number" ? $.toLocaleString("en-US") : $ })
1485
1485
  ] }, s)) }),
1486
1486
  /* @__PURE__ */ a(
1487
1487
  "section",
@@ -1490,7 +1490,7 @@ function kr({
1490
1490
  "aria-label": "Calls over time",
1491
1491
  children: [
1492
1492
  /* @__PURE__ */ e("h2", { children: "Calls" }),
1493
- N.series.length === 0 ? /* @__PURE__ */ e(
1493
+ b.series.length === 0 ? /* @__PURE__ */ e(
1494
1494
  Oe,
1495
1495
  {
1496
1496
  loading: "",
@@ -1501,8 +1501,8 @@ function kr({
1501
1501
  {
1502
1502
  className: "mp-chart-bars",
1503
1503
  role: "img",
1504
- "aria-label": N.series.map((s) => `${s.label}: ${s.calls} calls`).join("; "),
1505
- children: N.series.map((s, k) => /* @__PURE__ */ a(
1504
+ "aria-label": b.series.map((s) => `${s.label}: ${s.calls} calls`).join("; "),
1505
+ children: b.series.map((s, $) => /* @__PURE__ */ a(
1506
1506
  "div",
1507
1507
  {
1508
1508
  className: "mp-chart-column",
@@ -1512,14 +1512,14 @@ function kr({
1512
1512
  "i",
1513
1513
  {
1514
1514
  style: {
1515
- height: `${Math.max(0, s.calls) / T * 100}%`
1515
+ height: `${Math.max(0, s.calls) / P * 100}%`
1516
1516
  }
1517
1517
  }
1518
1518
  ) }),
1519
1519
  /* @__PURE__ */ e("small", { children: s.label })
1520
1520
  ]
1521
1521
  },
1522
- `${s.label}-${k}`
1522
+ `${s.label}-${$}`
1523
1523
  ))
1524
1524
  }
1525
1525
  )
@@ -1536,21 +1536,21 @@ function kr({
1536
1536
  ] });
1537
1537
  }
1538
1538
  const tt = { ...et, ...rt };
1539
- function Mr({
1539
+ function kr({
1540
1540
  name: t,
1541
1541
  icon: n,
1542
- detail: i,
1543
- className: l = "",
1544
- type: o = "button",
1545
- ...r
1542
+ detail: r,
1543
+ className: o = "",
1544
+ type: l = "button",
1545
+ ...i
1546
1546
  }) {
1547
1547
  return /* @__PURE__ */ a(
1548
1548
  "button",
1549
1549
  {
1550
- type: o,
1551
- className: `${tt.tile}${l ? ` ${l}` : ""}`,
1552
- title: i || t,
1553
- ...r,
1550
+ type: l,
1551
+ className: `${tt.tile}${o ? ` ${o}` : ""}`,
1552
+ title: r || t,
1553
+ ...i,
1554
1554
  children: [
1555
1555
  /* @__PURE__ */ e(je, { name: n }),
1556
1556
  /* @__PURE__ */ e("span", { className: tt.nm, children: /* @__PURE__ */ e("span", { className: tt.n, children: t }) })
@@ -1563,30 +1563,30 @@ const ht = {
1563
1563
  md: { box: 48, icon: 32, text: 14 },
1564
1564
  lg: { box: 72, icon: 48, text: 16 }
1565
1565
  };
1566
- function $r({
1566
+ function Mr({
1567
1567
  name: t,
1568
1568
  icon: n,
1569
- showIcon: i = !0,
1570
- size: l = "md",
1571
- className: o = "",
1572
- style: r,
1569
+ showIcon: r = !0,
1570
+ size: o = "md",
1571
+ className: l = "",
1572
+ style: i,
1573
1573
  ...d
1574
1574
  }) {
1575
- const h = ht[l] ?? ht.md, m = {
1575
+ const h = ht[o] ?? ht.md, m = {
1576
1576
  display: "inline-flex",
1577
1577
  alignItems: "center",
1578
1578
  gap: 10,
1579
1579
  maxWidth: "100%",
1580
1580
  minWidth: 0,
1581
1581
  color: "var(--rp-color-text, inherit)",
1582
- ...r
1582
+ ...i
1583
1583
  }, C = {
1584
1584
  minWidth: 0,
1585
1585
  fontSize: h.text,
1586
1586
  fontWeight: 600,
1587
1587
  lineHeight: 1.4,
1588
1588
  overflowWrap: "anywhere"
1589
- }, $ = {
1589
+ }, x = {
1590
1590
  display: "inline-flex",
1591
1591
  alignItems: "center",
1592
1592
  justifyContent: "center",
@@ -1598,15 +1598,15 @@ function $r({
1598
1598
  fontSize: h.icon,
1599
1599
  lineHeight: 1
1600
1600
  };
1601
- return /* @__PURE__ */ a("span", { className: o, style: m, ...d, children: [
1602
- i ? /* @__PURE__ */ e("span", { style: $, "aria-hidden": t ? !0 : void 0, children: /* @__PURE__ */ e(je, { name: n }) }) : null,
1601
+ return /* @__PURE__ */ a("span", { className: l, style: m, ...d, children: [
1602
+ r ? /* @__PURE__ */ e("span", { style: x, "aria-hidden": t ? !0 : void 0, children: /* @__PURE__ */ e(je, { name: n }) }) : null,
1603
1603
  t ? /* @__PURE__ */ e("span", { style: C, children: t }) : null
1604
1604
  ] });
1605
1605
  }
1606
- const sa = "rp_Billing-module_billing_jVpbPSwf", oa = "rp_Billing-module_inline_Mf5K0TOB", la = "rp_Billing-module_body_73T3WPhM", ca = "rp_Billing-module_sheet_uq-sE7Kj", da = "rp_Billing-module_header_6ZibPvV0", ha = "rp_Billing-module_footer_sZ8dMMt3", pa = "rp_Billing-module_titleIcon_yvF5gUEf", ua = "rp_Billing-module_heading_hXnE-5Dq", ma = "rp_Billing-module_title_XVWBtjrY", ga = "rp_Billing-module_description_15DMv8fm", fa = "rp_Billing-module_bodyWrap_73GWDsL6", va = "rp_Billing-module_scrollFade_Vp55lLY8", ba = "rp_Billing-module_section_CCEnjKJi", ya = "rp_Billing-module_fieldLabel_j4TFB90Z", _a = "rp_Billing-module_amount_huNHfEM9", Na = "rp_Billing-module_amountCurrency_5BAcrLkG", wa = "rp_Billing-module_quickAmounts_-zXxHGvq", ka = "rp_Billing-module_quickAmount_wZ1vL5t7", Ma = "rp_Billing-module_quickAmountActive_UN-iKg7L", $a = "rp_Billing-module_cashback_SEKfvhCV", xa = "rp_Billing-module_cashbackHead_TeiHoLw6", Ca = "rp_Billing-module_cashbackRate_snXI6bxo", Aa = "rp_Billing-module_cashbackHint_8hFT1XBR", La = "rp_Billing-module_track_gUZMl3uW", Sa = "rp_Billing-module_trackDot_yY1N2NRt", Ba = "rp_Billing-module_tiers_BavMzMhY", Ra = "rp_Billing-module_tier_HO96mY1F", Ta = "rp_Billing-module_tierRate_vgFEdh-O", qa = "rp_Billing-module_tierMin_N22iOx8J", Fa = "rp_Billing-module_tierFirst_6Hc74rSN", Pa = "rp_Billing-module_tierMid_NeSUtEn1", Ia = "rp_Billing-module_tierLast_lE0S52qZ", Ea = "rp_Billing-module_tierCurrent_GctoON0O", Ha = "rp_Billing-module_methodGroups_zpebVDsx", Da = "rp_Billing-module_group_pHl7zEfy", Oa = "rp_Billing-module_groupHead_P-SY4GHg", Ua = "rp_Billing-module_groupTitle_wdOq-XTd", za = "rp_Billing-module_groupBody_lrnARuI0", Ga = "rp_Billing-module_method_faV0uTen", Xa = "rp_Billing-module_methodIcon_JUWyNcoC", Ya = "rp_Billing-module_methodText_-dgM99xC", ja = "rp_Billing-module_methodLabel_5TAtp3w3", Wa = "rp_Billing-module_methodDescription_DFZuV4o0", Va = "rp_Billing-module_methodFee_5X-xX3q5", Ka = "rp_Billing-module_methodCheck_QhxGxyBe", Ja = "rp_Billing-module_checkIcon_5PuJJ6qi", Za = "rp_Billing-module_empty_XLKm1aHR", Qa = "rp_Billing-module_region_LaGBn-om", en = "rp_Billing-module_regionLabel_7ufpgJpv", tn = "rp_Billing-module_regionTrigger_V3TL-sZd", an = "rp_Billing-module_regionValue_RRhFjyaZ", nn = "rp_Billing-module_regionGlobe_oSvgpNSR", rn = "rp_Billing-module_optionGlobe_FVCNGrV9", sn = "rp_Billing-module_regionContent_644AhED-", on = "rp_Billing-module_regionHint_ioA4L3ju", ln = "rp_Billing-module_pay_htbzTpTf", cn = "rp_Billing-module_payPending_rNhFyReW", dn = "rp_Billing-module_error_VTbjGrSy", hn = "rp_Billing-module_payLabel_9cFNb7Af", pn = "rp_Billing-module_notice_uwuIHit3", S = {
1606
+ const sa = "rp_Billing-module_billing_jVpbPSwf", la = "rp_Billing-module_inline_Mf5K0TOB", oa = "rp_Billing-module_body_73T3WPhM", ca = "rp_Billing-module_sheet_uq-sE7Kj", da = "rp_Billing-module_header_6ZibPvV0", ha = "rp_Billing-module_footer_sZ8dMMt3", pa = "rp_Billing-module_titleIcon_yvF5gUEf", ua = "rp_Billing-module_heading_hXnE-5Dq", ma = "rp_Billing-module_title_XVWBtjrY", ga = "rp_Billing-module_description_15DMv8fm", fa = "rp_Billing-module_bodyWrap_73GWDsL6", va = "rp_Billing-module_scrollFade_Vp55lLY8", ba = "rp_Billing-module_section_CCEnjKJi", ya = "rp_Billing-module_fieldLabel_j4TFB90Z", _a = "rp_Billing-module_amount_huNHfEM9", Na = "rp_Billing-module_amountCurrency_5BAcrLkG", wa = "rp_Billing-module_quickAmounts_-zXxHGvq", ka = "rp_Billing-module_quickAmount_wZ1vL5t7", Ma = "rp_Billing-module_quickAmountActive_UN-iKg7L", $a = "rp_Billing-module_cashback_SEKfvhCV", xa = "rp_Billing-module_cashbackHead_TeiHoLw6", Ca = "rp_Billing-module_cashbackRate_snXI6bxo", Aa = "rp_Billing-module_cashbackHint_8hFT1XBR", La = "rp_Billing-module_track_gUZMl3uW", Sa = "rp_Billing-module_trackDot_yY1N2NRt", Ba = "rp_Billing-module_tiers_BavMzMhY", Ra = "rp_Billing-module_tier_HO96mY1F", Ta = "rp_Billing-module_tierRate_vgFEdh-O", qa = "rp_Billing-module_tierMin_N22iOx8J", Fa = "rp_Billing-module_tierFirst_6Hc74rSN", Pa = "rp_Billing-module_tierMid_NeSUtEn1", Ia = "rp_Billing-module_tierLast_lE0S52qZ", Ea = "rp_Billing-module_tierCurrent_GctoON0O", Ha = "rp_Billing-module_methodGroups_zpebVDsx", Da = "rp_Billing-module_group_pHl7zEfy", Oa = "rp_Billing-module_groupHead_P-SY4GHg", Ua = "rp_Billing-module_groupTitle_wdOq-XTd", za = "rp_Billing-module_groupBody_lrnARuI0", Ga = "rp_Billing-module_method_faV0uTen", Xa = "rp_Billing-module_methodIcon_JUWyNcoC", Ya = "rp_Billing-module_methodText_-dgM99xC", ja = "rp_Billing-module_methodLabel_5TAtp3w3", Wa = "rp_Billing-module_methodDescription_DFZuV4o0", Va = "rp_Billing-module_methodFee_5X-xX3q5", Ka = "rp_Billing-module_methodCheck_QhxGxyBe", Ja = "rp_Billing-module_checkIcon_5PuJJ6qi", Za = "rp_Billing-module_empty_XLKm1aHR", Qa = "rp_Billing-module_region_LaGBn-om", en = "rp_Billing-module_regionLabel_7ufpgJpv", tn = "rp_Billing-module_regionTrigger_V3TL-sZd", an = "rp_Billing-module_regionValue_RRhFjyaZ", nn = "rp_Billing-module_regionGlobe_oSvgpNSR", rn = "rp_Billing-module_optionGlobe_FVCNGrV9", sn = "rp_Billing-module_regionContent_644AhED-", ln = "rp_Billing-module_regionHint_ioA4L3ju", on = "rp_Billing-module_pay_htbzTpTf", cn = "rp_Billing-module_payPending_rNhFyReW", dn = "rp_Billing-module_error_VTbjGrSy", hn = "rp_Billing-module_payLabel_9cFNb7Af", pn = "rp_Billing-module_notice_uwuIHit3", L = {
1607
1607
  billing: sa,
1608
- inline: oa,
1609
- body: la,
1608
+ inline: la,
1609
+ body: oa,
1610
1610
  sheet: ca,
1611
1611
  header: da,
1612
1612
  footer: ha,
@@ -1658,8 +1658,8 @@ const sa = "rp_Billing-module_billing_jVpbPSwf", oa = "rp_Billing-module_inline_
1658
1658
  regionGlobe: nn,
1659
1659
  optionGlobe: rn,
1660
1660
  regionContent: sn,
1661
- regionHint: on,
1662
- pay: ln,
1661
+ regionHint: ln,
1662
+ pay: on,
1663
1663
  payPending: cn,
1664
1664
  error: dn,
1665
1665
  payLabel: hn,
@@ -1683,11 +1683,11 @@ function mn(t) {
1683
1683
  return t.replace("_", "-").split("-")[1]?.toUpperCase();
1684
1684
  }
1685
1685
  }
1686
- function xr(t) {
1686
+ function $r(t) {
1687
1687
  const n = t.trim().toUpperCase();
1688
1688
  return /^[A-Z]{2}$/.test(n) ? String.fromCodePoint(
1689
1689
  ...[n.charCodeAt(0), n.charCodeAt(1)].map(
1690
- (i) => 127462 + i - 65
1690
+ (r) => 127462 + r - 65
1691
1691
  )
1692
1692
  ) : "🌐";
1693
1693
  }
@@ -1696,228 +1696,228 @@ function gn(t, n) {
1696
1696
  return new Intl.NumberFormat(t, {
1697
1697
  style: "currency",
1698
1698
  currency: n
1699
- }).formatToParts(0).find((l) => l.type === "currency")?.value ?? n;
1699
+ }).formatToParts(0).find((o) => o.type === "currency")?.value ?? n;
1700
1700
  } catch {
1701
1701
  return n;
1702
1702
  }
1703
1703
  }
1704
- function kt(t, n, i) {
1704
+ function kt(t, n, r) {
1705
1705
  try {
1706
1706
  return new Intl.NumberFormat(t, {
1707
1707
  style: "currency",
1708
1708
  currency: n,
1709
1709
  maximumFractionDigits: 2
1710
- }).format(i);
1710
+ }).format(r);
1711
1711
  } catch {
1712
- return `${n} ${i.toFixed(2)}`;
1712
+ return `${n} ${r.toFixed(2)}`;
1713
1713
  }
1714
1714
  }
1715
- function fn(t, n, i) {
1715
+ function fn(t, n, r) {
1716
1716
  try {
1717
1717
  return new Intl.NumberFormat(t, {
1718
1718
  style: "currency",
1719
1719
  currency: n,
1720
1720
  maximumFractionDigits: 0
1721
- }).format(i);
1721
+ }).format(r);
1722
1722
  } catch {
1723
- return `${n} ${Math.round(i)}`;
1723
+ return `${n} ${Math.round(r)}`;
1724
1724
  }
1725
1725
  }
1726
1726
  function vn(t) {
1727
1727
  return t.next ? `Add ${kt(t.locale, t.currency, t.next.min)} for ${t.next.rate}% cashback.` : t.rate > 0 ? `${t.rate}% cashback added to your balance.` : "Cashback starts at the next tier.";
1728
1728
  }
1729
1729
  function bn() {
1730
- const [t, n] = Be(null), [i, l] = Be({ overflowing: !1, atEnd: !0 });
1731
- return ke(() => {
1730
+ const [t, n] = Be(null), [r, o] = Be({ overflowing: !1, atEnd: !0 });
1731
+ return Ce(() => {
1732
1732
  if (!t) return;
1733
- const o = () => {
1733
+ const l = () => {
1734
1734
  const h = t.scrollHeight - t.clientHeight > 1;
1735
- l({
1735
+ o({
1736
1736
  overflowing: h,
1737
1737
  atEnd: t.scrollTop + t.clientHeight >= t.scrollHeight - 1
1738
1738
  });
1739
1739
  };
1740
- o(), t.addEventListener("scroll", o, { passive: !0 });
1741
- const r = new ResizeObserver(o);
1742
- r.observe(t);
1743
- const d = new MutationObserver(o);
1740
+ l(), t.addEventListener("scroll", l, { passive: !0 });
1741
+ const i = new ResizeObserver(l);
1742
+ i.observe(t);
1743
+ const d = new MutationObserver(l);
1744
1744
  return d.observe(t, { childList: !0, subtree: !0 }), () => {
1745
- t.removeEventListener("scroll", o), r.disconnect(), d.disconnect();
1745
+ t.removeEventListener("scroll", l), i.disconnect(), d.disconnect();
1746
1746
  };
1747
- }, [t]), [n, i.overflowing && !i.atEnd];
1747
+ }, [t]), [n, r.overflowing && !r.atEnd];
1748
1748
  }
1749
- const Cr = ({
1749
+ const xr = ({
1750
1750
  locale: t = typeof navigator > "u" ? "en-US" : navigator.language,
1751
1751
  countries: n,
1752
- cryptoMethods: i = [],
1753
- cryptoTitle: l = "Crypto",
1754
- tiers: o = [],
1755
- defaultCountryCode: r,
1752
+ cryptoMethods: r = [],
1753
+ cryptoTitle: o = "Crypto",
1754
+ tiers: l = [],
1755
+ defaultCountryCode: i,
1756
1756
  countryCode: d,
1757
1757
  onCountryChange: h,
1758
1758
  defaultAmount: m = 0,
1759
1759
  amount: C,
1760
- onAmountChange: $,
1761
- quickAmounts: b = [10, 25, 50, 100],
1762
- defaultMethodId: A,
1760
+ onAmountChange: x,
1761
+ quickAmounts: _ = [10, 25, 50, 100],
1762
+ defaultMethodId: S,
1763
1763
  methodId: v,
1764
- onMethodChange: f,
1765
- minAmount: _ = 0,
1766
- maxAmount: N,
1767
- title: T,
1764
+ onMethodChange: w,
1765
+ minAmount: N = 0,
1766
+ maxAmount: b,
1767
+ title: P,
1768
1768
  description: s,
1769
- copy: k,
1769
+ copy: $,
1770
1770
  formatCashback: g,
1771
1771
  onPay: B,
1772
- pending: w = !1,
1773
- error: E,
1774
- children: O,
1775
- notice: R,
1776
- variant: W = "panel",
1777
- className: z
1772
+ pending: k = !1,
1773
+ error: H,
1774
+ children: j,
1775
+ notice: D,
1776
+ variant: Z = "panel",
1777
+ className: X
1778
1778
  }) => {
1779
- const X = { ...un, ...k }, V = Ye(), U = Ye(), J = Ye(), [ne, se] = bn(), [q, H] = Be(
1780
- () => r ?? mn(t) ?? n[0]?.code ?? ""
1781
- ), [p, L] = Be(m), [u, M] = Be(
1782
- A
1783
- ), y = n.find(
1784
- (x) => x.code === (d ?? q)
1785
- ) ?? n.find((x) => x.code === r) ?? n[0], F = C ?? p, I = y?.currency ?? "EUR", D = gn(t, I), Y = Ke(() => {
1786
- const x = (y?.groups ?? []).filter(
1787
- (K) => K.methods.length > 0
1788
- ), P = i.length > 0 ? { id: "crypto", title: l, methods: i } : void 0;
1789
- return P ? [...x, P] : [...x];
1790
- }, [y, i, l]), Q = Ke(
1791
- () => Y.flatMap((x) => x.methods),
1792
- [Y]
1779
+ const Y = { ...un, ...$ }, W = Ye(), O = Ye(), K = Ye(), [ne, se] = bn(), [R, I] = Be(
1780
+ () => i ?? mn(t) ?? n[0]?.code ?? ""
1781
+ ), [p, A] = Be(m), [u, y] = Be(
1782
+ S
1783
+ ), f = n.find(
1784
+ (M) => M.code === (d ?? R)
1785
+ ) ?? n.find((M) => M.code === i) ?? n[0], T = C ?? p, F = f?.currency ?? "EUR", E = gn(t, F), z = Ke(() => {
1786
+ const M = (f?.groups ?? []).filter(
1787
+ (V) => V.methods.length > 0
1788
+ ), q = r.length > 0 ? { id: "crypto", title: o, methods: r } : void 0;
1789
+ return q ? [...M, q] : [...M];
1790
+ }, [f, r, o]), Q = Ke(
1791
+ () => z.flatMap((M) => M.methods),
1792
+ [z]
1793
1793
  ), he = Ke(() => {
1794
- const x = v ?? u;
1794
+ const M = v ?? u;
1795
1795
  return Q.find(
1796
- (K) => K.id === x && !K.disabled
1797
- )?.id ?? Q.find((K) => !K.disabled)?.id;
1798
- }, [v, u, Q]), oe = Q.find((x) => x.id === he), ee = Ke(
1799
- () => [...o].sort((x, P) => x.min - P.min),
1800
- [o]
1796
+ (V) => V.id === M && !V.disabled
1797
+ )?.id ?? Q.find((V) => !V.disabled)?.id;
1798
+ }, [v, u, Q]), le = Q.find((M) => M.id === he), ee = Ke(
1799
+ () => [...l].sort((M, q) => M.min - q.min),
1800
+ [l]
1801
1801
  ), ge = ee.reduce(
1802
- (x, P) => F >= P.min ? P : x,
1802
+ (M, q) => T >= q.min ? q : M,
1803
1803
  void 0
1804
- ), le = ee.find((x) => F < x.min), ve = ge?.rate ?? 0, pe = ee[ee.length - 1]?.min || 0, re = Math.max(0, Math.min(F, pe)), ue = pe ? re / pe * 100 : 0, Ne = {
1805
- amount: F,
1804
+ ), oe = ee.find((M) => T < M.min), ve = ge?.rate ?? 0, pe = ee[ee.length - 1]?.min || 0, re = Math.max(0, Math.min(T, pe)), ue = pe ? re / pe * 100 : 0, Ne = {
1805
+ amount: T,
1806
1806
  rate: ve,
1807
- next: le,
1808
- currency: I,
1807
+ next: oe,
1808
+ currency: F,
1809
1809
  locale: t
1810
- }, $e = g?.(Ne) ?? vn(Ne), Le = (x) => {
1811
- const P = Number.isFinite(x) ? Math.max(0, x) : 0;
1812
- C === void 0 && L(P), $?.(P);
1813
- }, xe = (x) => {
1814
- const P = n.find((j) => j.code === x);
1815
- if (!P) return;
1816
- d === void 0 && H(x);
1817
- const K = [
1818
- ...P.groups.flatMap((j) => j.methods),
1819
- ...i
1810
+ }, Me = g?.(Ne) ?? vn(Ne), Ae = (M) => {
1811
+ const q = Number.isFinite(M) ? Math.max(0, M) : 0;
1812
+ C === void 0 && A(q), x?.(q);
1813
+ }, $e = (M) => {
1814
+ const q = n.find((G) => G.code === M);
1815
+ if (!q) return;
1816
+ d === void 0 && I(M);
1817
+ const V = [
1818
+ ...q.groups.flatMap((G) => G.methods),
1819
+ ...r
1820
1820
  ];
1821
- if (!K.some(
1822
- (j) => j.id === he && !j.disabled
1821
+ if (!V.some(
1822
+ (G) => G.id === he && !G.disabled
1823
1823
  )) {
1824
- const j = K.find((te) => !te.disabled);
1825
- v === void 0 && M(j?.id), j && f?.(j);
1824
+ const G = V.find((te) => !te.disabled);
1825
+ v === void 0 && y(G?.id), G && w?.(G);
1826
1826
  }
1827
- h?.(P);
1828
- }, Re = (x) => {
1829
- const P = Q.find((K) => K.id === x);
1830
- P && (v === void 0 && M(x), f?.(P));
1831
- }, me = !w && Number.isFinite(F) && F > 0 && F >= _ && (N === void 0 || F <= N) && !!oe && !!y, ie = () => {
1832
- !me || !oe || !y || B?.({ amount: F, method: oe, country: y });
1827
+ h?.(q);
1828
+ }, Re = (M) => {
1829
+ const q = Q.find((V) => V.id === M);
1830
+ q && (v === void 0 && y(M), w?.(q));
1831
+ }, me = !k && Number.isFinite(T) && T > 0 && T >= N && (b === void 0 || T <= b) && !!le && !!f, ie = () => {
1832
+ !me || !le || !f || B?.({ amount: T, method: le, country: f });
1833
1833
  };
1834
1834
  return /* @__PURE__ */ a(
1835
1835
  "section",
1836
1836
  {
1837
- className: Z(
1838
- S.billing,
1839
- W === "inline" && S.inline,
1840
- W === "sheet" && S.sheet,
1841
- z
1837
+ className: J(
1838
+ L.billing,
1839
+ Z === "inline" && L.inline,
1840
+ Z === "sheet" && L.sheet,
1841
+ X
1842
1842
  ),
1843
- "aria-labelledby": V,
1843
+ "aria-labelledby": W,
1844
1844
  children: [
1845
- /* @__PURE__ */ a("header", { className: S.header, children: [
1846
- /* @__PURE__ */ e("span", { className: S.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(Te.Wallet, { size: 18 }) }),
1847
- /* @__PURE__ */ a("div", { className: S.heading, children: [
1848
- /* @__PURE__ */ e("h2", { className: S.title, id: V, children: T ?? X.title }),
1849
- s && /* @__PURE__ */ e("p", { className: S.description, children: s })
1845
+ /* @__PURE__ */ a("header", { className: L.header, children: [
1846
+ /* @__PURE__ */ e("span", { className: L.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(Te.Wallet, { size: 18 }) }),
1847
+ /* @__PURE__ */ a("div", { className: L.heading, children: [
1848
+ /* @__PURE__ */ e("h2", { className: L.title, id: W, children: P ?? Y.title }),
1849
+ s && /* @__PURE__ */ e("p", { className: L.description, children: s })
1850
1850
  ] })
1851
1851
  ] }),
1852
- /* @__PURE__ */ a("div", { className: S.bodyWrap, children: [
1853
- /* @__PURE__ */ a("div", { className: S.body, ref: ne, children: [
1854
- /* @__PURE__ */ a("div", { className: S.section, children: [
1855
- /* @__PURE__ */ e(ot, { className: S.fieldLabel, htmlFor: U, children: X.amount }),
1856
- /* @__PURE__ */ a(lt.Root, { className: S.amount, disabled: w, children: [
1857
- /* @__PURE__ */ e("span", { className: S.amountCurrency, "aria-hidden": "true", children: D }),
1852
+ /* @__PURE__ */ a("div", { className: L.bodyWrap, children: [
1853
+ /* @__PURE__ */ a("div", { className: L.body, ref: ne, children: [
1854
+ /* @__PURE__ */ a("div", { className: L.section, children: [
1855
+ /* @__PURE__ */ e(lt, { className: L.fieldLabel, htmlFor: O, children: Y.amount }),
1856
+ /* @__PURE__ */ a(ot.Root, { className: L.amount, disabled: k, children: [
1857
+ /* @__PURE__ */ e("span", { className: L.amountCurrency, "aria-hidden": "true", children: E }),
1858
1858
  /* @__PURE__ */ e(
1859
- lt.Control,
1859
+ ot.Control,
1860
1860
  {
1861
- disabled: w,
1862
- id: U,
1863
- className: S.amountInput,
1861
+ disabled: k,
1862
+ id: O,
1863
+ className: L.amountInput,
1864
1864
  type: "number",
1865
1865
  inputMode: "decimal",
1866
- min: _,
1867
- max: N,
1866
+ min: N,
1867
+ max: b,
1868
1868
  step: "0.01",
1869
1869
  placeholder: "0",
1870
- value: F === 0 ? "" : F,
1871
- onChange: (x) => {
1872
- const P = Number.parseFloat(x.target.value);
1873
- Le(Number.isFinite(P) ? P : 0);
1870
+ value: T === 0 ? "" : T,
1871
+ onChange: (M) => {
1872
+ const q = Number.parseFloat(M.target.value);
1873
+ Ae(Number.isFinite(q) ? q : 0);
1874
1874
  }
1875
1875
  }
1876
1876
  )
1877
1877
  ] }),
1878
- b && b.length > 0 && /* @__PURE__ */ e("div", { className: S.quickAmounts, children: b.map((x) => /* @__PURE__ */ a(
1879
- G,
1878
+ _ && _.length > 0 && /* @__PURE__ */ e("div", { className: L.quickAmounts, children: _.map((M) => /* @__PURE__ */ a(
1879
+ U,
1880
1880
  {
1881
1881
  variant: "secondary",
1882
1882
  textVariant: Tt.Button_Link_Extra_Small_1,
1883
- className: Z(
1884
- S.quickAmount,
1885
- F === x && S.quickAmountActive
1883
+ className: J(
1884
+ L.quickAmount,
1885
+ T === M && L.quickAmountActive
1886
1886
  ),
1887
- "aria-pressed": F === x,
1888
- disabled: w,
1889
- onClick: () => Le(x),
1887
+ "aria-pressed": T === M,
1888
+ disabled: k,
1889
+ onClick: () => Ae(M),
1890
1890
  children: [
1891
1891
  "+",
1892
- x
1892
+ M
1893
1893
  ]
1894
1894
  },
1895
- x
1895
+ M
1896
1896
  )) })
1897
1897
  ] }),
1898
- ee.length > 1 && /* @__PURE__ */ a("div", { className: S.cashback, children: [
1899
- /* @__PURE__ */ a("div", { className: S.cashbackHead, children: [
1900
- /* @__PURE__ */ e("span", { children: X.cashback }),
1901
- /* @__PURE__ */ a("strong", { className: S.cashbackRate, children: [
1898
+ ee.length > 1 && /* @__PURE__ */ a("div", { className: L.cashback, children: [
1899
+ /* @__PURE__ */ a("div", { className: L.cashbackHead, children: [
1900
+ /* @__PURE__ */ e("span", { children: Y.cashback }),
1901
+ /* @__PURE__ */ a("strong", { className: L.cashbackRate, children: [
1902
1902
  ve,
1903
1903
  "%"
1904
1904
  ] })
1905
1905
  ] }),
1906
- /* @__PURE__ */ e("p", { className: S.cashbackHint, children: $e }),
1907
- /* @__PURE__ */ a("div", { className: S.track, children: [
1906
+ /* @__PURE__ */ e("p", { className: L.cashbackHint, children: Me }),
1907
+ /* @__PURE__ */ a("div", { className: L.track, children: [
1908
1908
  /* @__PURE__ */ e(
1909
1909
  qt,
1910
1910
  {
1911
- className: S.progress,
1911
+ className: L.progress,
1912
1912
  value: re,
1913
1913
  max: pe || 1,
1914
- ariaLabel: X.cashback
1914
+ ariaLabel: Y.cashback
1915
1915
  }
1916
1916
  ),
1917
1917
  /* @__PURE__ */ e(
1918
1918
  "span",
1919
1919
  {
1920
- className: S.trackDot,
1920
+ className: L.trackDot,
1921
1921
  style: {
1922
1922
  left: `calc(8px + (100% - 16px) * ${ue / 100})`
1923
1923
  },
@@ -1928,29 +1928,29 @@ const Cr = ({
1928
1928
  /* @__PURE__ */ e(
1929
1929
  "div",
1930
1930
  {
1931
- className: S.tiers,
1931
+ className: L.tiers,
1932
1932
  style: {
1933
1933
  gridTemplateColumns: `repeat(${ee.length}, minmax(0, 1fr))`
1934
1934
  },
1935
- children: ee.map((x, P) => /* @__PURE__ */ a(
1935
+ children: ee.map((M, q) => /* @__PURE__ */ a(
1936
1936
  "div",
1937
1937
  {
1938
- className: Z(
1939
- S.tier,
1940
- P === 0 && S.tierFirst,
1941
- P > 0 && P < ee.length - 1 && S.tierMid,
1942
- P === ee.length - 1 && S.tierLast,
1943
- x === ge && S.tierCurrent
1938
+ className: J(
1939
+ L.tier,
1940
+ q === 0 && L.tierFirst,
1941
+ q > 0 && q < ee.length - 1 && L.tierMid,
1942
+ q === ee.length - 1 && L.tierLast,
1943
+ M === ge && L.tierCurrent
1944
1944
  ),
1945
1945
  children: [
1946
- /* @__PURE__ */ a("span", { className: S.tierRate, children: [
1947
- x.rate,
1946
+ /* @__PURE__ */ a("span", { className: L.tierRate, children: [
1947
+ M.rate,
1948
1948
  "%"
1949
1949
  ] }),
1950
- /* @__PURE__ */ e("span", { className: S.tierMin, children: fn(t, I, x.min) })
1950
+ /* @__PURE__ */ e("span", { className: L.tierMin, children: fn(t, F, M.min) })
1951
1951
  ]
1952
1952
  },
1953
- x.min
1953
+ M.min
1954
1954
  ))
1955
1955
  }
1956
1956
  )
@@ -1958,81 +1958,81 @@ const Cr = ({
1958
1958
  /* @__PURE__ */ a(
1959
1959
  Ft,
1960
1960
  {
1961
- disabled: w,
1961
+ disabled: k,
1962
1962
  value: he ?? "",
1963
1963
  onValueChange: Re,
1964
- "aria-label": X.methodLabel,
1965
- className: S.methodGroups,
1964
+ "aria-label": Y.methodLabel,
1965
+ className: L.methodGroups,
1966
1966
  children: [
1967
- Y.length === 0 && /* @__PURE__ */ e(Pt, { className: S.empty, title: X.empty }),
1968
- Y.map((x) => /* @__PURE__ */ a(
1967
+ z.length === 0 && /* @__PURE__ */ e(Pt, { className: L.empty, title: Y.empty }),
1968
+ z.map((M) => /* @__PURE__ */ a(
1969
1969
  "section",
1970
1970
  {
1971
- className: S.group,
1972
- "aria-labelledby": `${V}-${x.id}`,
1971
+ className: L.group,
1972
+ "aria-labelledby": `${W}-${M.id}`,
1973
1973
  children: [
1974
- /* @__PURE__ */ a("div", { className: S.groupHead, children: [
1974
+ /* @__PURE__ */ a("div", { className: L.groupHead, children: [
1975
1975
  /* @__PURE__ */ e(
1976
1976
  "h3",
1977
1977
  {
1978
- className: S.groupTitle,
1979
- id: `${V}-${x.id}`,
1980
- children: x.title
1978
+ className: L.groupTitle,
1979
+ id: `${W}-${M.id}`,
1980
+ children: M.title
1981
1981
  }
1982
1982
  ),
1983
- /* @__PURE__ */ e("span", { children: x.feeLabel ?? X.fee })
1983
+ /* @__PURE__ */ e("span", { children: M.feeLabel ?? Y.fee })
1984
1984
  ] }),
1985
- /* @__PURE__ */ e(It, { variant: "reference", className: S.groupBody, children: x.methods.map((P) => /* @__PURE__ */ a(
1985
+ /* @__PURE__ */ e(It, { variant: "reference", className: L.groupBody, children: M.methods.map((q) => /* @__PURE__ */ a(
1986
1986
  Et,
1987
1987
  {
1988
- value: P.id,
1989
- disabled: P.disabled,
1990
- className: S.method,
1988
+ value: q.id,
1989
+ disabled: q.disabled,
1990
+ className: L.method,
1991
1991
  children: [
1992
- /* @__PURE__ */ e("span", { className: S.methodIcon, "aria-hidden": "true", children: P.icon ?? /* @__PURE__ */ e(Te.Card, { size: 22 }) }),
1993
- /* @__PURE__ */ a("span", { className: S.methodText, children: [
1994
- /* @__PURE__ */ a("span", { className: S.methodLabel, children: [
1995
- P.label,
1996
- P.badge && /* @__PURE__ */ e(Ht, { children: P.badge })
1992
+ /* @__PURE__ */ e("span", { className: L.methodIcon, "aria-hidden": "true", children: q.icon ?? /* @__PURE__ */ e(Te.Card, { size: 22 }) }),
1993
+ /* @__PURE__ */ a("span", { className: L.methodText, children: [
1994
+ /* @__PURE__ */ a("span", { className: L.methodLabel, children: [
1995
+ q.label,
1996
+ q.badge && /* @__PURE__ */ e(Ht, { children: q.badge })
1997
1997
  ] }),
1998
- P.description && /* @__PURE__ */ e("span", { className: S.methodDescription, children: P.description })
1998
+ q.description && /* @__PURE__ */ e("span", { className: L.methodDescription, children: q.description })
1999
1999
  ] }),
2000
- P.fee && /* @__PURE__ */ e("span", { className: S.methodFee, children: P.fee }),
2001
- /* @__PURE__ */ e("span", { className: S.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(Te.Check, { size: 12, className: S.checkIcon }) })
2000
+ q.fee && /* @__PURE__ */ e("span", { className: L.methodFee, children: q.fee }),
2001
+ /* @__PURE__ */ e("span", { className: L.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(Te.Check, { size: 12, className: L.checkIcon }) })
2002
2002
  ]
2003
2003
  },
2004
- P.id
2004
+ q.id
2005
2005
  )) })
2006
2006
  ]
2007
2007
  },
2008
- x.id
2008
+ M.id
2009
2009
  ))
2010
2010
  ]
2011
2011
  }
2012
2012
  ),
2013
- O
2013
+ j
2014
2014
  ] }),
2015
- se && /* @__PURE__ */ e("span", { className: S.scrollFade, "aria-hidden": "true" })
2015
+ se && /* @__PURE__ */ e("span", { className: L.scrollFade, "aria-hidden": "true" })
2016
2016
  ] }),
2017
- /* @__PURE__ */ a("footer", { className: S.footer, children: [
2018
- /* @__PURE__ */ a("div", { className: S.region, children: [
2019
- /* @__PURE__ */ e(ot, { className: S.regionLabel, htmlFor: J, children: X.region }),
2017
+ /* @__PURE__ */ a("footer", { className: L.footer, children: [
2018
+ /* @__PURE__ */ a("div", { className: L.region, children: [
2019
+ /* @__PURE__ */ e(lt, { className: L.regionLabel, htmlFor: K, children: Y.region }),
2020
2020
  /* @__PURE__ */ a(
2021
2021
  Dt,
2022
2022
  {
2023
- disabled: w || n.length === 0,
2024
- value: y?.code ?? "",
2025
- onValueChange: xe,
2023
+ disabled: k || n.length === 0,
2024
+ value: f?.code ?? "",
2025
+ onValueChange: $e,
2026
2026
  children: [
2027
2027
  /* @__PURE__ */ a(
2028
2028
  Ot,
2029
2029
  {
2030
- id: J,
2031
- className: S.regionTrigger,
2032
- "aria-label": X.region,
2030
+ id: K,
2031
+ className: L.regionTrigger,
2032
+ "aria-label": Y.region,
2033
2033
  children: [
2034
- /* @__PURE__ */ e(Te.Globe, { size: 16, className: S.regionGlobe }),
2035
- /* @__PURE__ */ e(Ut, { className: S.regionValue }),
2034
+ /* @__PURE__ */ e(Te.Globe, { size: 16, className: L.regionGlobe }),
2035
+ /* @__PURE__ */ e(Ut, { className: L.regionValue }),
2036
2036
  /* @__PURE__ */ e(zt, { children: /* @__PURE__ */ e(Te.Down, { size: 16 }) })
2037
2037
  ]
2038
2038
  }
@@ -2043,43 +2043,43 @@ const Cr = ({
2043
2043
  position: "popper",
2044
2044
  sideOffset: 6,
2045
2045
  align: "start",
2046
- className: S.regionContent,
2047
- children: /* @__PURE__ */ e(Yt, { children: /* @__PURE__ */ e(jt, { children: n.map((x) => /* @__PURE__ */ a(Wt, { value: x.code, children: [
2048
- /* @__PURE__ */ e(Te.Globe, { size: 15, className: S.optionGlobe }),
2049
- /* @__PURE__ */ e(Vt, { children: x.name }),
2046
+ className: L.regionContent,
2047
+ children: /* @__PURE__ */ e(Yt, { children: /* @__PURE__ */ e(jt, { children: n.map((M) => /* @__PURE__ */ a(Wt, { value: M.code, children: [
2048
+ /* @__PURE__ */ e(Te.Globe, { size: 15, className: L.optionGlobe }),
2049
+ /* @__PURE__ */ e(Vt, { children: M.name }),
2050
2050
  /* @__PURE__ */ e(Kt, {})
2051
- ] }, x.code)) }) })
2051
+ ] }, M.code)) }) })
2052
2052
  }
2053
2053
  ) })
2054
2054
  ]
2055
2055
  }
2056
2056
  ),
2057
- /* @__PURE__ */ e("p", { className: S.regionHint, children: X.regionHint })
2057
+ /* @__PURE__ */ e("p", { className: L.regionHint, children: Y.regionHint })
2058
2058
  ] }),
2059
- E && /* @__PURE__ */ a("p", { className: S.error, role: "alert", children: [
2059
+ H && /* @__PURE__ */ a("p", { className: L.error, role: "alert", children: [
2060
2060
  /* @__PURE__ */ e(Te.Close, { size: 14 }),
2061
- E
2061
+ H
2062
2062
  ] }),
2063
2063
  /* @__PURE__ */ e(
2064
- G,
2064
+ U,
2065
2065
  {
2066
2066
  variant: "primary",
2067
- className: Z(S.pay, w && S.payPending),
2067
+ className: J(L.pay, k && L.payPending),
2068
2068
  disabled: !me,
2069
2069
  onClick: ie,
2070
- children: w ? /* @__PURE__ */ a(Fe, { children: [
2071
- /* @__PURE__ */ e(Jt, { label: X.pending }),
2072
- /* @__PURE__ */ e("span", { children: X.pending })
2070
+ children: k ? /* @__PURE__ */ a(Fe, { children: [
2071
+ /* @__PURE__ */ e(Jt, { label: Y.pending }),
2072
+ /* @__PURE__ */ e("span", { children: Y.pending })
2073
2073
  ] }) : /* @__PURE__ */ a(Fe, { children: [
2074
- /* @__PURE__ */ a("span", { className: S.payLabel, children: [
2074
+ /* @__PURE__ */ a("span", { className: L.payLabel, children: [
2075
2075
  /* @__PURE__ */ e(Te.Card, { size: 16 }),
2076
- X.pay
2076
+ Y.pay
2077
2077
  ] }),
2078
- /* @__PURE__ */ e("strong", { children: kt(t, I, F) })
2078
+ /* @__PURE__ */ e("strong", { children: kt(t, F, T) })
2079
2079
  ] })
2080
2080
  }
2081
2081
  ),
2082
- R && /* @__PURE__ */ e("p", { className: S.notice, children: R })
2082
+ D && /* @__PURE__ */ e("p", { className: L.notice, children: D })
2083
2083
  ] })
2084
2084
  ]
2085
2085
  }
@@ -2100,23 +2100,23 @@ const Cr = ({
2100
2100
  "var(--rp-color-danger)",
2101
2101
  "var(--rp-color-border-strong)",
2102
2102
  "var(--rp-color-text-muted)"
2103
- ], Ar = ({
2103
+ ], Cr = ({
2104
2104
  values: t,
2105
2105
  labels: n,
2106
- stacked: i = !1,
2107
- label: l = "Daily token usage"
2106
+ stacked: r = !1,
2107
+ label: o = "Daily token usage"
2108
2108
  }) => {
2109
- const o = Math.max(1, ...t), r = n ?? t.map((d, h) => String(h + 1));
2109
+ const l = Math.max(1, ...t), i = n ?? t.map((d, h) => String(h + 1));
2110
2110
  return /* @__PURE__ */ a(
2111
2111
  "div",
2112
2112
  {
2113
- className: Z(
2113
+ className: J(
2114
2114
  we["rp-bar-chart"],
2115
- i && we["rp-bar-chart--stacked"]
2115
+ r && we["rp-bar-chart--stacked"]
2116
2116
  ),
2117
2117
  children: [
2118
2118
  /* @__PURE__ */ a("div", { className: we["rp-bar-chart-peak"], children: [
2119
- o,
2119
+ l,
2120
2120
  "M"
2121
2121
  ] }),
2122
2122
  /* @__PURE__ */ e(
@@ -2124,44 +2124,44 @@ const Cr = ({
2124
2124
  {
2125
2125
  className: we["rp-bar-chart-bars"],
2126
2126
  role: "img",
2127
- "aria-label": `${l}: ${t.map((d, h) => `${r[h] ?? h + 1}: ${d}`).join(", ")}`,
2127
+ "aria-label": `${o}: ${t.map((d, h) => `${i[h] ?? h + 1}: ${d}`).join(", ")}`,
2128
2128
  children: t.map((d, h) => /* @__PURE__ */ a(
2129
2129
  "div",
2130
2130
  {
2131
2131
  className: we["rp-bar-chart-bar"],
2132
- title: `${r[h] ?? h + 1}: ${d}`,
2132
+ title: `${i[h] ?? h + 1}: ${d}`,
2133
2133
  children: [
2134
2134
  /* @__PURE__ */ e(
2135
2135
  "i",
2136
2136
  {
2137
2137
  className: we["rp-bar-chart-segment"],
2138
2138
  style: {
2139
- height: `${d / o * 85 * (i ? 0.25 : 0.15)}%`
2139
+ height: `${d / l * 85 * (r ? 0.25 : 0.15)}%`
2140
2140
  }
2141
2141
  }
2142
2142
  ),
2143
2143
  /* @__PURE__ */ e(
2144
2144
  "i",
2145
2145
  {
2146
- className: Z(
2146
+ className: J(
2147
2147
  we["rp-bar-chart-segment"],
2148
2148
  we["rp-bar-chart-segment-inner"]
2149
2149
  ),
2150
2150
  style: {
2151
- height: `${d / o * 85 * (i ? 0.5 : 0.85)}%`,
2152
- background: i ? pt[h % pt.length] : void 0
2151
+ height: `${d / l * 85 * (r ? 0.5 : 0.85)}%`,
2152
+ background: r ? pt[h % pt.length] : void 0
2153
2153
  }
2154
2154
  }
2155
2155
  ),
2156
- i && /* @__PURE__ */ e(
2156
+ r && /* @__PURE__ */ e(
2157
2157
  "i",
2158
2158
  {
2159
- className: Z(
2159
+ className: J(
2160
2160
  we["rp-bar-chart-segment"],
2161
2161
  we["rp-bar-chart-segment-top"]
2162
2162
  ),
2163
2163
  style: {
2164
- height: `${d / o * 21}%`,
2164
+ height: `${d / l * 21}%`,
2165
2165
  background: "var(--rp-color-success)"
2166
2166
  }
2167
2167
  }
@@ -2172,7 +2172,7 @@ const Cr = ({
2172
2172
  ))
2173
2173
  }
2174
2174
  ),
2175
- /* @__PURE__ */ e("div", { className: we["rp-bar-chart-labels"], children: r.map((d, h) => /* @__PURE__ */ e("span", { children: d }, `${h}-${d}`)) })
2175
+ /* @__PURE__ */ e("div", { className: we["rp-bar-chart-labels"], children: i.map((d, h) => /* @__PURE__ */ e("span", { children: d }, `${h}-${d}`)) })
2176
2176
  ]
2177
2177
  }
2178
2178
  );
@@ -2189,34 +2189,34 @@ const Cr = ({
2189
2189
  "rp-heatmap-level-2": "rp_Heatmap-module_rp-heatmap-level-2_WdX9AXcf",
2190
2190
  "rp-heatmap-level-3": "rp_Heatmap-module_rp-heatmap-level-3_5zBU5sNx",
2191
2191
  "rp-heatmap-level-4": "rp_Heatmap-module_rp-heatmap-level-4_aMEF1e1x"
2192
- }, ut = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Lr = ({
2192
+ }, ut = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Ar = ({
2193
2193
  levels: t,
2194
2194
  columnLabels: n = [],
2195
- label: i = "Activity heatmap"
2195
+ label: r = "Activity heatmap"
2196
2196
  }) => {
2197
- const l = t[0]?.length ?? 0, o = l === 24;
2197
+ const o = t[0]?.length ?? 0, l = o === 24;
2198
2198
  return /* @__PURE__ */ e("div", { className: qe["rp-heatmap-scroll"], children: /* @__PURE__ */ e(
2199
2199
  "div",
2200
2200
  {
2201
- className: Z(
2202
- o ? qe["rp-heatmap-hours"] : qe["rp-heatmap-grid"],
2203
- o && qe["rp-heatmap--hours"]
2201
+ className: J(
2202
+ l ? qe["rp-heatmap-hours"] : qe["rp-heatmap-grid"],
2203
+ l && qe["rp-heatmap--hours"]
2204
2204
  ),
2205
- style: o ? void 0 : { gridTemplateColumns: `auto repeat(${l}, minmax(10px, 1fr))` },
2205
+ style: l ? void 0 : { gridTemplateColumns: `auto repeat(${o}, minmax(10px, 1fr))` },
2206
2206
  role: "img",
2207
- "aria-label": i,
2208
- children: Array.from({ length: 8 }, (r, d) => /* @__PURE__ */ a(aa, { children: [
2207
+ "aria-label": r,
2208
+ children: Array.from({ length: 8 }, (i, d) => /* @__PURE__ */ a(aa, { children: [
2209
2209
  /* @__PURE__ */ e("span", { className: qe["rp-heatmap-day"], children: d === 0 ? "" : ut[d - 1] }),
2210
2210
  Array.from(
2211
- { length: l },
2211
+ { length: o },
2212
2212
  (h, m) => d === 0 ? /* @__PURE__ */ e("span", { className: qe["rp-heatmap-month"], children: n[m] ?? "" }, m) : /* @__PURE__ */ e(
2213
2213
  "i",
2214
2214
  {
2215
- className: Z(
2215
+ className: J(
2216
2216
  qe["rp-heatmap-cell"],
2217
2217
  qe[`rp-heatmap-level-${t[d - 1]?.[m] ?? 0}`]
2218
2218
  ),
2219
- title: `${ut[d - 1]}, ${o ? "hour" : "column"} ${m + 1}`
2219
+ title: `${ut[d - 1]}, ${l ? "hour" : "column"} ${m + 1}`
2220
2220
  },
2221
2221
  m
2222
2222
  )
@@ -2231,40 +2231,40 @@ const Cr = ({
2231
2231
  "rp-metric-strip-value": "rp_MetricStrip-module_rp-metric-strip-value_uZ3-dhTN",
2232
2232
  "rp-metric-strip-label": "rp_MetricStrip-module_rp-metric-strip-label_vPmmuX6U",
2233
2233
  "rp-metric-strip-detail": "rp_MetricStrip-module_rp-metric-strip-detail_eX9vbuU3"
2234
- }, Sr = ({ metrics: t }) => {
2235
- const n = Z(
2234
+ }, Lr = ({ metrics: t }) => {
2235
+ const n = J(
2236
2236
  Ue["rp-metric-strip"],
2237
2237
  t.length === 6 && Ue["rp-metric-strip--six"]
2238
2238
  );
2239
- return /* @__PURE__ */ e("div", { className: n, children: t.map((i) => /* @__PURE__ */ a("div", { className: Ue["rp-metric-strip-card"], children: [
2240
- /* @__PURE__ */ e("b", { className: Ue["rp-metric-strip-value"], children: i.value }),
2241
- /* @__PURE__ */ e("span", { className: Ue["rp-metric-strip-label"], children: i.label }),
2242
- i.detail && /* @__PURE__ */ e("small", { className: Ue["rp-metric-strip-detail"], children: i.detail })
2243
- ] }, i.label)) });
2239
+ return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className: Ue["rp-metric-strip-card"], children: [
2240
+ /* @__PURE__ */ e("b", { className: Ue["rp-metric-strip-value"], children: r.value }),
2241
+ /* @__PURE__ */ e("span", { className: Ue["rp-metric-strip-label"], children: r.label }),
2242
+ r.detail && /* @__PURE__ */ e("small", { className: Ue["rp-metric-strip-detail"], children: r.detail })
2243
+ ] }, r.label)) });
2244
2244
  }, Ge = {
2245
2245
  "rp-panel": "rp_Panel-module_rp-panel_phtJNPn-",
2246
2246
  "rp-panel-header": "rp_Panel-module_rp-panel-header_btNJsltk",
2247
2247
  "rp-panel-title": "rp_Panel-module_rp-panel-title_i0XnBxgm",
2248
2248
  "rp-panel-spacer": "rp_Panel-module_rp-panel-spacer_Kv3uqewf",
2249
2249
  "rp-panel-footer": "rp_Panel-module_rp-panel-footer_VMolMpS9"
2250
- }, Br = ({
2250
+ }, Sr = ({
2251
2251
  title: t,
2252
2252
  actions: n,
2253
- children: i,
2254
- className: l,
2255
- footer: o
2253
+ children: r,
2254
+ className: o,
2255
+ footer: l
2256
2256
  }) => {
2257
- const r = Ye(), d = Z(Ge["rp-panel"], l);
2258
- return /* @__PURE__ */ a("section", { className: d, "aria-labelledby": r, children: [
2257
+ const i = Ye(), d = J(Ge["rp-panel"], o);
2258
+ return /* @__PURE__ */ a("section", { className: d, "aria-labelledby": i, children: [
2259
2259
  /* @__PURE__ */ a("div", { className: Ge["rp-panel-header"], children: [
2260
- /* @__PURE__ */ e("h2", { className: Ge["rp-panel-title"], id: r, children: t }),
2260
+ /* @__PURE__ */ e("h2", { className: Ge["rp-panel-title"], id: i, children: t }),
2261
2261
  /* @__PURE__ */ e("span", { className: Ge["rp-panel-spacer"] }),
2262
2262
  n
2263
2263
  ] }),
2264
- i,
2265
- o && /* @__PURE__ */ e("div", { className: Ge["rp-panel-footer"], children: o })
2264
+ r,
2265
+ l && /* @__PURE__ */ e("div", { className: Ge["rp-panel-footer"], children: l })
2266
2266
  ] });
2267
- }, Se = {
2267
+ }, Le = {
2268
2268
  "rp-ranking": "rp_Ranking-module_rp-ranking_J6gdvsdH",
2269
2269
  "rp-ranking-row": "rp_Ranking-module_rp-ranking-row_gUD73n6g",
2270
2270
  "rp-ranking-row-clickable": "rp_Ranking-module_rp-ranking-row-clickable_HfPGjDGs",
@@ -2274,32 +2274,32 @@ const Cr = ({
2274
2274
  "rp-ranking-track": "rp_Ranking-module_rp-ranking-track_aXkuRs2Q",
2275
2275
  "rp-ranking-value": "rp_Ranking-module_rp-ranking-value_fEjyec2m",
2276
2276
  "rp-ranking-cost": "rp_Ranking-module_rp-ranking-cost_xFBMNKql"
2277
- }, Rr = ({ items: t, onSelect: n }) => /* @__PURE__ */ e(
2277
+ }, Br = ({ items: t, onSelect: n }) => /* @__PURE__ */ e(
2278
2278
  "div",
2279
2279
  {
2280
- className: Se["rp-ranking"],
2280
+ className: Le["rp-ranking"],
2281
2281
  style: { "--rp-ranking-label-width": "140px" },
2282
- children: t.map((i) => /* @__PURE__ */ a(
2282
+ children: t.map((r) => /* @__PURE__ */ a(
2283
2283
  "button",
2284
2284
  {
2285
2285
  type: "button",
2286
- className: Z(
2287
- Se["rp-ranking-row"],
2288
- n && Se["rp-ranking-row-clickable"]
2286
+ className: J(
2287
+ Le["rp-ranking-row"],
2288
+ n && Le["rp-ranking-row-clickable"]
2289
2289
  ),
2290
- onClick: () => n?.(i),
2290
+ onClick: () => n?.(r),
2291
2291
  disabled: !n,
2292
2292
  children: [
2293
- /* @__PURE__ */ a("span", { className: Se["rp-ranking-label"], children: [
2294
- i.icon ? /* @__PURE__ */ e("span", { className: Se["rp-ranking-icon"], "aria-hidden": "true", children: i.icon }) : null,
2295
- /* @__PURE__ */ e("span", { className: Se["rp-ranking-name"], title: i.name, children: i.name })
2293
+ /* @__PURE__ */ a("span", { className: Le["rp-ranking-label"], children: [
2294
+ r.icon ? /* @__PURE__ */ e("span", { className: Le["rp-ranking-icon"], "aria-hidden": "true", children: r.icon }) : null,
2295
+ /* @__PURE__ */ e("span", { className: Le["rp-ranking-name"], title: r.name, children: r.name })
2296
2296
  ] }),
2297
- /* @__PURE__ */ e("span", { className: Se["rp-ranking-track"], children: /* @__PURE__ */ e("i", { style: { width: `${Math.max(0, Math.min(100, i.share))}%` } }) }),
2298
- /* @__PURE__ */ e("span", { className: Se["rp-ranking-value"], children: i.value }),
2299
- /* @__PURE__ */ e("span", { className: Se["rp-ranking-cost"], children: i.cost })
2297
+ /* @__PURE__ */ e("span", { className: Le["rp-ranking-track"], children: /* @__PURE__ */ e("i", { style: { width: `${Math.max(0, Math.min(100, r.share))}%` } }) }),
2298
+ /* @__PURE__ */ e("span", { className: Le["rp-ranking-value"], children: r.value }),
2299
+ /* @__PURE__ */ e("span", { className: Le["rp-ranking-cost"], children: r.cost })
2300
2300
  ]
2301
2301
  },
2302
- i.name
2302
+ r.name
2303
2303
  ))
2304
2304
  }
2305
2305
  ), fe = {
@@ -2324,7 +2324,7 @@ const Cr = ({
2324
2324
  "Out",
2325
2325
  "Cost",
2326
2326
  "Status"
2327
- ], Tr = ({ rows: t }) => /* @__PURE__ */ e(
2327
+ ], Rr = ({ rows: t }) => /* @__PURE__ */ e(
2328
2328
  "div",
2329
2329
  {
2330
2330
  className: fe["rp-request-table-scroll"],
@@ -2354,7 +2354,7 @@ const Cr = ({
2354
2354
  /* @__PURE__ */ e(
2355
2355
  "td",
2356
2356
  {
2357
- className: Z(
2357
+ className: J(
2358
2358
  fe["rp-request-table-num"],
2359
2359
  fe["rp-request-table-cost"]
2360
2360
  ),
@@ -2365,7 +2365,7 @@ const Cr = ({
2365
2365
  /* @__PURE__ */ e(
2366
2366
  "span",
2367
2367
  {
2368
- className: Z(
2368
+ className: J(
2369
2369
  fe["rp-request-table-status"],
2370
2370
  n.status === "Failed" ? fe["rp-request-table-status--failed"] : fe["rp-request-table-status--succeeded"]
2371
2371
  ),
@@ -2387,8 +2387,8 @@ const Cr = ({
2387
2387
  "rp-session-shape-bar": "rp_SessionShape-module_rp-session-shape-bar_RundK3ML",
2388
2388
  "rp-session-shape-col--peak": "rp_SessionShape-module_rp-session-shape-col--peak_2FbAs9hr",
2389
2389
  "rp-session-shape-label": "rp_SessionShape-module_rp-session-shape-label_QhTXuqr6"
2390
- }, qr = ({ values: t, labels: n }) => {
2391
- const i = Math.max(1, ...t);
2390
+ }, Tr = ({ values: t, labels: n }) => {
2391
+ const r = Math.max(1, ...t);
2392
2392
  return /* @__PURE__ */ e(
2393
2393
  "div",
2394
2394
  {
@@ -2397,29 +2397,29 @@ const Cr = ({
2397
2397
  gridTemplateColumns: `repeat(${t.length}, minmax(0, 1fr))`
2398
2398
  },
2399
2399
  role: "img",
2400
- "aria-label": t.map((l, o) => `${n[o]} messages: ${l} sessions`).join(", "),
2401
- children: t.map((l, o) => /* @__PURE__ */ a(
2400
+ "aria-label": t.map((o, l) => `${n[l]} messages: ${o} sessions`).join(", "),
2401
+ children: t.map((o, l) => /* @__PURE__ */ a(
2402
2402
  "div",
2403
2403
  {
2404
- className: Z(
2404
+ className: J(
2405
2405
  Ee["rp-session-shape-col"],
2406
- l === i && Ee["rp-session-shape-col--peak"]
2406
+ o === r && Ee["rp-session-shape-col--peak"]
2407
2407
  ),
2408
2408
  children: [
2409
2409
  /* @__PURE__ */ a("div", { className: Ee["rp-session-shape-plot"], children: [
2410
- /* @__PURE__ */ e("b", { className: Ee["rp-session-shape-count"], children: l }),
2410
+ /* @__PURE__ */ e("b", { className: Ee["rp-session-shape-count"], children: o }),
2411
2411
  /* @__PURE__ */ e(
2412
2412
  "i",
2413
2413
  {
2414
2414
  className: Ee["rp-session-shape-bar"],
2415
- style: { height: `${l / i * 110}px` }
2415
+ style: { height: `${o / r * 110}px` }
2416
2416
  }
2417
2417
  )
2418
2418
  ] }),
2419
- /* @__PURE__ */ e("span", { className: Ee["rp-session-shape-label"], children: n[o] })
2419
+ /* @__PURE__ */ e("span", { className: Ee["rp-session-shape-label"], children: n[l] })
2420
2420
  ]
2421
2421
  },
2422
- o
2422
+ l
2423
2423
  ))
2424
2424
  }
2425
2425
  );
@@ -2437,10 +2437,10 @@ const Cr = ({
2437
2437
  "rp-usage-list-value": "rp_UsageList-module_rp-usage-list-value_ZYLULILo",
2438
2438
  "rp-usage-list-breakdown": "rp_UsageList-module_rp-usage-list-breakdown_lqbEDax6",
2439
2439
  "rp-usage-list-cost": "rp_UsageList-module_rp-usage-list-cost_wVgLbsTn"
2440
- }, Fr = ({ items: t }) => /* @__PURE__ */ e("div", { className: be["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
2440
+ }, qr = ({ items: t }) => /* @__PURE__ */ e("div", { className: be["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
2441
2441
  "div",
2442
2442
  {
2443
- className: Z(
2443
+ className: J(
2444
2444
  be["rp-usage-list-row"],
2445
2445
  be["rp-usage-list-row--stat"]
2446
2446
  ),
@@ -2463,177 +2463,177 @@ const Cr = ({
2463
2463
  "rp-plus-background-canvas": "rp_BackgroundPlus-module_rp-plus-background-canvas_qV-SHke3"
2464
2464
  };
2465
2465
  function Mt(t, n) {
2466
- const i = Ae(null), l = Ae(n ?? (t ? 7 : 14));
2467
- return ke(() => {
2468
- l.current = n ?? (t ? 7 : 14);
2469
- }, [n, t]), ke(() => {
2470
- const o = i.current;
2471
- if (!o || typeof window > "u") return;
2472
- const r = o.getContext("2d"), d = o.parentElement;
2473
- if (!r || !d) return;
2466
+ const r = Se(null), o = Se(n ?? (t ? 7 : 14));
2467
+ return Ce(() => {
2468
+ o.current = n ?? (t ? 7 : 14);
2469
+ }, [n, t]), Ce(() => {
2470
+ const l = r.current;
2471
+ if (!l || typeof window > "u") return;
2472
+ const i = l.getContext("2d"), d = l.parentElement;
2473
+ if (!i || !d) return;
2474
2474
  const h = window.matchMedia("(prefers-reduced-motion: reduce)");
2475
- let m = 0, C = 0, $ = 0, b = !0, A = [], v = null;
2476
- const f = window.matchMedia("(hover: hover) and (pointer: fine)"), _ = 10;
2477
- let N = 0, T = 0, s = new Float32Array(0), k = new Float32Array(0), g = 0, B = 0, w = null, E = null;
2478
- const O = () => {
2479
- if (w) {
2480
- const p = (w.targetX - w.x) * 0.22, L = (w.targetY - w.y) * 0.22;
2481
- w.x += p, w.y += L;
2482
- const u = Math.hypot(p, L);
2475
+ let m = 0, C = 0, x = 0, _ = !0, S = [], v = null;
2476
+ const w = window.matchMedia("(hover: hover) and (pointer: fine)"), N = 10;
2477
+ let b = 0, P = 0, s = new Float32Array(0), $ = new Float32Array(0), g = 0, B = 0, k = null, H = null;
2478
+ const j = () => {
2479
+ if (k) {
2480
+ const p = (k.targetX - k.x) * 0.22, A = (k.targetY - k.y) * 0.22;
2481
+ k.x += p, k.y += A;
2482
+ const u = Math.hypot(p, A);
2483
2483
  if (u > 0.02) {
2484
- const M = w.x / _ + 1, y = w.y / _ + 1, F = Math.min(u, 12) * 0.065;
2485
- for (let I = Math.max(1, Math.floor(y - 7)); I < Math.min(T - 1, y + 8); I++)
2486
- for (let D = Math.max(1, Math.floor(M - 7)); D < Math.min(N - 1, M + 8); D++) {
2487
- const Y = D - M, Q = I - y, he = (Y * p + Q * L) / u;
2488
- k[I * N + D] += he * Math.exp(-(Y * Y + Q * Q) / 9) * F;
2484
+ const y = k.x / N + 1, f = k.y / N + 1, T = Math.min(u, 12) * 0.065;
2485
+ for (let F = Math.max(1, Math.floor(f - 7)); F < Math.min(P - 1, f + 8); F++)
2486
+ for (let E = Math.max(1, Math.floor(y - 7)); E < Math.min(b - 1, y + 8); E++) {
2487
+ const z = E - y, Q = F - f, he = (z * p + Q * A) / u;
2488
+ $[F * b + E] += he * Math.exp(-(z * z + Q * Q) / 9) * T;
2489
2489
  }
2490
2490
  }
2491
2491
  }
2492
- for (let p = 1; p < T - 1; p++)
2493
- for (let L = 1; L < N - 1; L++) {
2494
- const u = p * N + L, M = s[u - 1] + s[u + 1] + s[u - N] + s[u + N] - 4 * s[u], y = Math.min(L, p, N - 1 - L, T - 1 - p);
2495
- k[u] = (k[u] + M * 0.32) * (y < 8 ? 0.88 : 0.985);
2492
+ for (let p = 1; p < P - 1; p++)
2493
+ for (let A = 1; A < b - 1; A++) {
2494
+ const u = p * b + A, y = s[u - 1] + s[u + 1] + s[u - b] + s[u + b] - 4 * s[u], f = Math.min(A, p, b - 1 - A, P - 1 - p);
2495
+ $[u] = ($[u] + y * 0.32) * (f < 8 ? 0.88 : 0.985);
2496
2496
  }
2497
- for (let p = 0; p < s.length; p++) s[p] += k[p];
2498
- }, R = (p, L) => {
2499
- const u = Math.max(0, Math.min(N - 2, p / _ + 1)), M = Math.max(0, Math.min(T - 2, L / _ + 1)), y = Math.floor(u), F = Math.floor(M), I = u - y, D = M - F, Y = F * N + y;
2500
- return (s[Y] * (1 - I) + s[Y + 1] * I) * (1 - D) + (s[Y + N] * (1 - I) + s[Y + N + 1] * I) * D;
2501
- }, W = (p) => {
2502
- if (!b || document.hidden) {
2503
- $ = 0;
2497
+ for (let p = 0; p < s.length; p++) s[p] += $[p];
2498
+ }, D = (p, A) => {
2499
+ const u = Math.max(0, Math.min(b - 2, p / N + 1)), y = Math.max(0, Math.min(P - 2, A / N + 1)), f = Math.floor(u), T = Math.floor(y), F = u - f, E = y - T, z = T * b + f;
2500
+ return (s[z] * (1 - F) + s[z + 1] * F) * (1 - E) + (s[z + b] * (1 - F) + s[z + b + 1] * F) * E;
2501
+ }, Z = (p) => {
2502
+ if (!_ || document.hidden) {
2503
+ x = 0;
2504
2504
  return;
2505
2505
  }
2506
2506
  if (B += Math.min(50, g ? p - g : 0), g = p, h.matches)
2507
2507
  B = 0;
2508
2508
  else for (; B >= 1e3 / 60; )
2509
- O(), B -= 1e3 / 60;
2510
- r.clearRect(0, 0, m, C), A = A.filter((y) => p - y.time < 2400);
2511
- const L = l.current, u = L / 2, M = L * 0.25;
2512
- for (let y = u, F = 0; y < C; y += L, F++)
2513
- for (let I = u + F % 2 * L / 2; I < m; I += L) {
2514
- let D = 0, Y = 0, Q = 0;
2509
+ j(), B -= 1e3 / 60;
2510
+ i.clearRect(0, 0, m, C), S = S.filter((f) => p - f.time < 2400);
2511
+ const A = o.current, u = A / 2, y = A * 0.25;
2512
+ for (let f = u, T = 0; f < C; f += A, T++)
2513
+ for (let F = u + T % 2 * A / 2; F < m; F += A) {
2514
+ let E = 0, z = 0, Q = 0;
2515
2515
  if (v && !h.matches) {
2516
- const K = (p - v.time) / 1e3, ae = (I - m / 2) / (m * 0.58), j = (y - C * 0.42) / (C * 0.7), te = Math.hypot(ae, j), Ce = 0.22 + 0.98 * Math.exp(-te * te * 2.1), We = Math.max(
2516
+ const V = (p - v.time) / 1e3, ae = (F - m / 2) / (m * 0.58), G = (f - C * 0.42) / (C * 0.7), te = Math.hypot(ae, G), xe = 0.22 + 0.98 * Math.exp(-te * te * 2.1), We = Math.max(
2517
2517
  0,
2518
- Math.min(K, 2.4) - Math.min(0.045, te * 0.025)
2519
- ), Ve = 1.55 * (1 - Math.exp(-We / 0.12)) * Ce;
2520
- Q = ae * 210 * Ve, Y = -260 * Ve * (1 - 0.3 * Math.tanh(j));
2518
+ Math.min(V, 2.4) - Math.min(0.045, te * 0.025)
2519
+ ), Ve = 1.55 * (1 - Math.exp(-We / 0.12)) * xe;
2520
+ Q = ae * 210 * Ve, z = -260 * Ve * (1 - 0.3 * Math.tanh(G));
2521
2521
  }
2522
2522
  if (!h.matches)
2523
- for (const K of A) {
2524
- const ae = (p - K.time) / 1e3, j = Math.hypot(I - K.x, y - K.y);
2523
+ for (const V of S) {
2524
+ const ae = (p - V.time) / 1e3, G = Math.hypot(F - V.x, f - V.y);
2525
2525
  if (ae < 0) continue;
2526
- const te = j - ae * 320;
2527
- D += Math.sin(te * 0.065) * Math.exp(-te * te / 13e3) * Math.max(0, 1 - ae / 2.4) * 11;
2526
+ const te = G - ae * 320;
2527
+ E += Math.sin(te * 0.065) * Math.exp(-te * te / 13e3) * Math.max(0, 1 - ae / 2.4) * 11;
2528
2528
  }
2529
- const he = h.matches ? 0 : R(I + _, y) - R(I - _, y), oe = h.matches ? 0 : R(I, y + _) - R(I, y - _), ee = 12 * Math.tanh(he * 0.65), ge = 12 * Math.tanh(oe * 0.65), le = Math.pow(Math.max(0, 1 - y / C), 0.6), ve = 1 - Math.exp(
2530
- -Math.pow((I - m / 2) / (m * 0.28), 2) - Math.pow((y - C * 0.38) / (C * 0.24), 2)
2531
- ) * 0.55, Me = Math.hypot(ee, ge);
2529
+ const he = h.matches ? 0 : D(F + N, f) - D(F - N, f), le = h.matches ? 0 : D(F, f + N) - D(F, f - N), ee = 12 * Math.tanh(he * 0.65), ge = 12 * Math.tanh(le * 0.65), oe = Math.pow(Math.max(0, 1 - f / C), 0.6), ve = 1 - Math.exp(
2530
+ -Math.pow((F - m / 2) / (m * 0.28), 2) - Math.pow((f - C * 0.38) / (C * 0.24), 2)
2531
+ ) * 0.55, ke = Math.hypot(ee, ge);
2532
2532
  if (t) {
2533
- const K = Math.abs(R(I, y)) * 0.12 + Me * 0.035 + Math.abs(D) * 0.035;
2534
- let ae = E ? Math.exp(
2535
- -((I - E.x) ** 2 + (y - E.y) ** 2) / (2 * 24 ** 2)
2536
- ) : 0, j = 0;
2533
+ const V = Math.abs(D(F, f)) * 0.12 + ke * 0.035 + Math.abs(E) * 0.035;
2534
+ let ae = H ? Math.exp(
2535
+ -((F - H.x) ** 2 + (f - H.y) ** 2) / (2 * 24 ** 2)
2536
+ ) : 0, G = 0;
2537
2537
  if (!h.matches)
2538
- for (const te of A) {
2539
- const Ce = (p - te.time) / 1e3, We = Math.hypot(I - te.x, y - te.y), Ve = 32 + 64 * Math.min(1, Ce / 0.3), it = Math.max(0, 1 - Ce / 2.4), st = Math.exp(-((We - Ce * 320) ** 2) / (2 * 36 ** 2)) * it;
2538
+ for (const te of S) {
2539
+ const xe = (p - te.time) / 1e3, We = Math.hypot(F - te.x, f - te.y), Ve = 32 + 64 * Math.min(1, xe / 0.3), it = Math.max(0, 1 - xe / 2.4), st = Math.exp(-((We - xe * 320) ** 2) / (2 * 36 ** 2)) * it;
2540
2540
  ae = Math.max(
2541
2541
  ae,
2542
2542
  Math.exp(-(We ** 2) / (2 * Ve ** 2)) * it,
2543
2543
  st
2544
- ), j = Math.max(j, st);
2544
+ ), G = Math.max(G, st);
2545
2545
  }
2546
- r.globalAlpha = Math.min(0.28, 0.1 + K * 0.12 + j * 0.12) * ae, r.fillStyle = "#8a8f98", r.beginPath(), r.arc(
2547
- I + D * 0.4 + ee * 0.25,
2548
- y + D + ge * 0.25,
2546
+ i.globalAlpha = Math.min(0.28, 0.1 + V * 0.12 + G * 0.12) * ae, i.fillStyle = "#8a8f98", i.beginPath(), i.arc(
2547
+ F + E * 0.4 + ee * 0.25,
2548
+ f + E + ge * 0.25,
2549
2549
  1.25,
2550
2550
  0,
2551
2551
  Math.PI * 2
2552
- ), r.fill();
2552
+ ), i.fill();
2553
2553
  continue;
2554
2554
  }
2555
- const pe = D * 0.055 + Math.tanh((he - oe) * 0.2) * 0.18, re = M + Math.abs(D) * 0.16 + Me * 0.08, ue = Math.sin(I * 12.9898 + y * 78.233) * 43758.5453, Ne = ue - Math.floor(ue), $e = p / 1e3, Le = Math.sin(I * 39.346 + y * 11.135) * 24634.6345, xe = Le - Math.floor(Le), Re = $e / (3 + xe * 5) + xe * 17, me = Re - Math.floor(Re), ie = me < 0.32 ? Math.pow(Math.sin(Math.PI * me / 0.32), 2) : 0, x = Ne < 0.22, P = h.matches || !x ? 1 : 1 - 0.98 * ie;
2556
- r.save(), r.translate(
2557
- I + D * 0.4 + ee + Q,
2558
- y + D + ge + Y
2559
- ), r.rotate(pe), r.globalAlpha = Math.min(
2555
+ const pe = E * 0.055 + Math.tanh((he - le) * 0.2) * 0.18, re = y + Math.abs(E) * 0.16 + ke * 0.08, ue = Math.sin(F * 12.9898 + f * 78.233) * 43758.5453, Ne = ue - Math.floor(ue), Me = p / 1e3, Ae = Math.sin(F * 39.346 + f * 11.135) * 24634.6345, $e = Ae - Math.floor(Ae), Re = Me / (3 + $e * 5) + $e * 17, me = Re - Math.floor(Re), ie = me < 0.32 ? Math.pow(Math.sin(Math.PI * me / 0.32), 2) : 0, M = Ne < 0.22, q = h.matches || !M ? 1 : 1 - 0.98 * ie;
2556
+ i.save(), i.translate(
2557
+ F + E * 0.4 + ee + Q,
2558
+ f + E + ge + z
2559
+ ), i.rotate(pe), i.globalAlpha = Math.min(
2560
2560
  1,
2561
2561
  Math.min(
2562
2562
  0.95,
2563
- 0.38 + Ne * 0.22 + (x ? 0.32 : 0) + Math.abs(D) * 0.045 + Me * 0.018
2564
- ) * le * ve * P
2565
- ), r.strokeStyle = "#f5f8ff", r.lineWidth = M * (x ? 0.357 : 0.3), r.beginPath(), r.moveTo(-re, 0), r.lineTo(re, 0), r.moveTo(0, -re), r.lineTo(0, re), r.stroke(), r.restore();
2563
+ 0.38 + Ne * 0.22 + (M ? 0.32 : 0) + Math.abs(E) * 0.045 + ke * 0.018
2564
+ ) * oe * ve * q
2565
+ ), i.strokeStyle = "#f5f8ff", i.lineWidth = y * (M ? 0.357 : 0.3), i.beginPath(), i.moveTo(-re, 0), i.lineTo(re, 0), i.moveTo(0, -re), i.lineTo(0, re), i.stroke(), i.restore();
2566
2566
  }
2567
- $ = b && !document.hidden && !h.matches ? requestAnimationFrame(W) : 0;
2568
- }, z = () => {
2569
- cancelAnimationFrame($), $ = 0, g = 0, b && !document.hidden && W(performance.now());
2567
+ x = _ && !document.hidden && !h.matches ? requestAnimationFrame(Z) : 0;
2570
2568
  }, X = () => {
2571
- const p = o.getBoundingClientRect();
2572
- m = p.width, C = p.height, N = Math.ceil(m / _) + 3, T = Math.ceil(C / _) + 3, s = new Float32Array(N * T), k = new Float32Array(N * T), w = null, B = 0;
2573
- const L = Math.min(devicePixelRatio || 1, 2);
2574
- o.width = m * L, o.height = C * L, r.setTransform(L, 0, 0, L, 0, 0), z();
2569
+ cancelAnimationFrame(x), x = 0, g = 0, _ && !document.hidden && Z(performance.now());
2570
+ }, Y = () => {
2571
+ const p = l.getBoundingClientRect();
2572
+ m = p.width, C = p.height, b = Math.ceil(m / N) + 3, P = Math.ceil(C / N) + 3, s = new Float32Array(b * P), $ = new Float32Array(b * P), k = null, B = 0;
2573
+ const A = Math.min(devicePixelRatio || 1, 2);
2574
+ l.width = m * A, l.height = C * A, i.setTransform(A, 0, 0, A, 0, 0), X();
2575
2575
  };
2576
- let V = 0;
2577
- const U = (p) => {
2578
- if (h.matches || !f.matches || p.pointerType === "touch")
2576
+ let W = 0;
2577
+ const O = (p) => {
2578
+ if (h.matches || !w.matches || p.pointerType === "touch")
2579
2579
  return;
2580
- if (!t && (performance.now() < V || p.target.closest("#hero-download"))) {
2581
- w = null;
2580
+ if (!t && (performance.now() < W || p.target.closest("#hero-download"))) {
2581
+ k = null;
2582
2582
  return;
2583
2583
  }
2584
- const L = o.getBoundingClientRect(), u = p.clientX - L.left, M = p.clientY - L.top;
2585
- E = { x: u, y: M }, w ? (w.targetX = u, w.targetY = M) : w = { x: t ? u - 8 : u, y: M, targetX: u, targetY: M }, $ || z();
2586
- }, J = () => {
2587
- w = null, E = null;
2584
+ const A = l.getBoundingClientRect(), u = p.clientX - A.left, y = p.clientY - A.top;
2585
+ H = { x: u, y }, k ? (k.targetX = u, k.targetY = y) : k = { x: t ? u - 8 : u, y, targetX: u, targetY: y }, x || X();
2586
+ }, K = () => {
2587
+ k = null, H = null;
2588
2588
  }, ne = (p) => {
2589
2589
  if (p.target.closest("a,button,input,select")) return;
2590
- const L = o.getBoundingClientRect();
2591
- A.push({
2592
- x: p.clientX - L.left,
2593
- y: p.clientY - L.top,
2590
+ const A = l.getBoundingClientRect();
2591
+ S.push({
2592
+ x: p.clientX - A.left,
2593
+ y: p.clientY - A.top,
2594
2594
  time: performance.now()
2595
- }), A = A.slice(-5), $ || z();
2595
+ }), S = S.slice(-5), x || X();
2596
2596
  }, se = (p) => {
2597
2597
  if (t || h.matches) return;
2598
- const L = p.detail;
2599
- if (L.cancel) {
2600
- v = null, V = 0;
2598
+ const A = p.detail;
2599
+ if (A.cancel) {
2600
+ v = null, W = 0;
2601
2601
  return;
2602
2602
  }
2603
- if (v && L.progress > 0) {
2604
- v.progress = L.progress;
2603
+ if (v && A.progress > 0) {
2604
+ v.progress = A.progress;
2605
2605
  return;
2606
2606
  }
2607
- if (L.progress > 0) return;
2607
+ if (A.progress > 0) return;
2608
2608
  const u = d.querySelector("#hero-download");
2609
2609
  if (!u) return;
2610
- const M = o.getBoundingClientRect(), y = u.getBoundingClientRect(), F = performance.now();
2611
- V = F + 3220, v = {
2612
- x: y.left + y.width / 2 - M.left,
2613
- y: y.top + y.height / 2 - M.top,
2614
- time: F,
2610
+ const y = l.getBoundingClientRect(), f = u.getBoundingClientRect(), T = performance.now();
2611
+ W = T + 3220, v = {
2612
+ x: f.left + f.width / 2 - y.left,
2613
+ y: f.top + f.height / 2 - y.top,
2614
+ time: T,
2615
2615
  progress: 0
2616
- }, A = [], s.fill(0), k.fill(0), w = null, A = A.slice(-5), $ || z();
2616
+ }, S = [], s.fill(0), $.fill(0), k = null, S = S.slice(-5), x || X();
2617
2617
  };
2618
2618
  d.addEventListener("hero-scroll-inertia", se);
2619
- const q = new ResizeObserver(X);
2620
- q.observe(o);
2621
- const H = new IntersectionObserver((p) => {
2622
- b = p.some((L) => L.isIntersecting), z();
2619
+ const R = new ResizeObserver(Y);
2620
+ R.observe(l);
2621
+ const I = new IntersectionObserver((p) => {
2622
+ _ = p.some((A) => A.isIntersecting), X();
2623
2623
  });
2624
- return H.observe(o), d.addEventListener("pointermove", U), d.addEventListener("pointerleave", J), d.addEventListener("pointerdown", ne), h.addEventListener("change", z), document.addEventListener("visibilitychange", z), X(), () => {
2625
- cancelAnimationFrame($), q.disconnect(), H.disconnect(), d.removeEventListener("hero-scroll-inertia", se), d.removeEventListener("pointermove", U), d.removeEventListener("pointerleave", J), d.removeEventListener("pointerdown", ne), h.removeEventListener("change", z), document.removeEventListener("visibilitychange", z);
2624
+ return I.observe(l), d.addEventListener("pointermove", O), d.addEventListener("pointerleave", K), d.addEventListener("pointerdown", ne), h.addEventListener("change", X), document.addEventListener("visibilitychange", X), Y(), () => {
2625
+ cancelAnimationFrame(x), R.disconnect(), I.disconnect(), d.removeEventListener("hero-scroll-inertia", se), d.removeEventListener("pointermove", O), d.removeEventListener("pointerleave", K), d.removeEventListener("pointerdown", ne), h.removeEventListener("change", X), document.removeEventListener("visibilitychange", X);
2626
2626
  };
2627
- }, [t]), i;
2627
+ }, [t]), r;
2628
2628
  }
2629
- function Pr({ background: t, cellSize: n }) {
2630
- const i = Mt(!1, n);
2629
+ function Fr({ background: t, cellSize: n }) {
2630
+ const r = Mt(!1, n);
2631
2631
  return /* @__PURE__ */ e(
2632
2632
  "canvas",
2633
2633
  {
2634
2634
  className: `${_n["rp-plus-background-canvas"]} rp-plus-background`,
2635
2635
  style: t === void 0 ? void 0 : { background: t },
2636
- ref: i,
2636
+ ref: r,
2637
2637
  "aria-hidden": "true"
2638
2638
  }
2639
2639
  );
@@ -2642,161 +2642,161 @@ const mt = {
2642
2642
  "rp-plus-field-canvas": "rp_PlusField-module_rp-plus-field-canvas_ZN-2OlaQ",
2643
2643
  "rp-plus-field-dots": "rp_PlusField-module_rp-plus-field-dots_e1Khngt7"
2644
2644
  };
2645
- function Ir({ dots: t = !1 }) {
2646
- const n = Ae(null);
2647
- return ke(() => {
2648
- const i = n.current;
2649
- if (!i || typeof window > "u") return;
2650
- const l = i.getContext("2d"), o = i.parentElement;
2651
- if (!l || !o) return;
2652
- const r = window.matchMedia("(prefers-reduced-motion: reduce)");
2653
- let d = 0, h = 0, m = 0, C = !0, $ = [], b = null;
2654
- const A = window.matchMedia("(hover: hover) and (pointer: fine)"), v = 10;
2655
- let f = 0, _ = 0, N = new Float32Array(0), T = new Float32Array(0), s = 0, k = 0, g = null, B = null;
2656
- const w = () => {
2645
+ function Pr({ dots: t = !1 }) {
2646
+ const n = Se(null);
2647
+ return Ce(() => {
2648
+ const r = n.current;
2649
+ if (!r || typeof window > "u") return;
2650
+ const o = r.getContext("2d"), l = r.parentElement;
2651
+ if (!o || !l) return;
2652
+ const i = window.matchMedia("(prefers-reduced-motion: reduce)");
2653
+ let d = 0, h = 0, m = 0, C = !0, x = [], _ = null;
2654
+ const S = window.matchMedia("(hover: hover) and (pointer: fine)"), v = 10;
2655
+ let w = 0, N = 0, b = new Float32Array(0), P = new Float32Array(0), s = 0, $ = 0, g = null, B = null;
2656
+ const k = () => {
2657
2657
  if (g) {
2658
- const q = (g.targetX - g.x) * 0.22, H = (g.targetY - g.y) * 0.22;
2659
- g.x += q, g.y += H;
2660
- const p = Math.hypot(q, H);
2658
+ const R = (g.targetX - g.x) * 0.22, I = (g.targetY - g.y) * 0.22;
2659
+ g.x += R, g.y += I;
2660
+ const p = Math.hypot(R, I);
2661
2661
  if (p > 0.02) {
2662
- const L = g.x / v + 1, u = g.y / v + 1, M = Math.min(p, 12) * 0.065;
2663
- for (let y = Math.max(1, Math.floor(u - 7)); y < Math.min(_ - 1, u + 8); y++)
2664
- for (let F = Math.max(1, Math.floor(L - 7)); F < Math.min(f - 1, L + 8); F++) {
2665
- const I = F - L, D = y - u, Y = (I * q + D * H) / p;
2666
- T[y * f + F] += Y * Math.exp(-(I * I + D * D) / 9) * M;
2662
+ const A = g.x / v + 1, u = g.y / v + 1, y = Math.min(p, 12) * 0.065;
2663
+ for (let f = Math.max(1, Math.floor(u - 7)); f < Math.min(N - 1, u + 8); f++)
2664
+ for (let T = Math.max(1, Math.floor(A - 7)); T < Math.min(w - 1, A + 8); T++) {
2665
+ const F = T - A, E = f - u, z = (F * R + E * I) / p;
2666
+ P[f * w + T] += z * Math.exp(-(F * F + E * E) / 9) * y;
2667
2667
  }
2668
2668
  }
2669
2669
  }
2670
- for (let q = 1; q < _ - 1; q++)
2671
- for (let H = 1; H < f - 1; H++) {
2672
- const p = q * f + H, L = N[p - 1] + N[p + 1] + N[p - f] + N[p + f] - 4 * N[p], u = Math.min(H, q, f - 1 - H, _ - 1 - q);
2673
- T[p] = (T[p] + L * 0.32) * (u < 8 ? 0.88 : 0.985);
2670
+ for (let R = 1; R < N - 1; R++)
2671
+ for (let I = 1; I < w - 1; I++) {
2672
+ const p = R * w + I, A = b[p - 1] + b[p + 1] + b[p - w] + b[p + w] - 4 * b[p], u = Math.min(I, R, w - 1 - I, N - 1 - R);
2673
+ P[p] = (P[p] + A * 0.32) * (u < 8 ? 0.88 : 0.985);
2674
2674
  }
2675
- for (let q = 0; q < N.length; q++) N[q] += T[q];
2676
- }, E = (q, H) => {
2677
- const p = Math.max(0, Math.min(f - 2, q / v + 1)), L = Math.max(0, Math.min(_ - 2, H / v + 1)), u = Math.floor(p), M = Math.floor(L), y = p - u, F = L - M, I = M * f + u;
2678
- return (N[I] * (1 - y) + N[I + 1] * y) * (1 - F) + (N[I + f] * (1 - y) + N[I + f + 1] * y) * F;
2679
- }, O = (q) => {
2680
- if (k += Math.min(50, s ? q - s : 0), s = q, r.matches)
2681
- k = 0;
2682
- else for (; k >= 1e3 / 60; )
2683
- w(), k -= 1e3 / 60;
2684
- l.clearRect(0, 0, d, h), $ = $.filter((p) => q - p.time < 2400);
2685
- const H = t ? 7 : 14;
2686
- for (let p = 7, L = 0; p < h; p += H, L++)
2687
- for (let u = 7 + L % 2 * H / 2; u < d; u += H) {
2688
- let M = 0, y = 0, F = 0;
2689
- if (b && !r.matches) {
2690
- const me = (q - b.time) / 1e3, ie = (u - d / 2) / (d * 0.58), x = (p - h * 0.42) / (h * 0.7), P = Math.hypot(ie, x), K = 0.22 + 0.98 * Math.exp(-P * P * 2.1), ae = Math.max(
2675
+ for (let R = 0; R < b.length; R++) b[R] += P[R];
2676
+ }, H = (R, I) => {
2677
+ const p = Math.max(0, Math.min(w - 2, R / v + 1)), A = Math.max(0, Math.min(N - 2, I / v + 1)), u = Math.floor(p), y = Math.floor(A), f = p - u, T = A - y, F = y * w + u;
2678
+ return (b[F] * (1 - f) + b[F + 1] * f) * (1 - T) + (b[F + w] * (1 - f) + b[F + w + 1] * f) * T;
2679
+ }, j = (R) => {
2680
+ if ($ += Math.min(50, s ? R - s : 0), s = R, i.matches)
2681
+ $ = 0;
2682
+ else for (; $ >= 1e3 / 60; )
2683
+ k(), $ -= 1e3 / 60;
2684
+ o.clearRect(0, 0, d, h), x = x.filter((p) => R - p.time < 2400);
2685
+ const I = t ? 7 : 14;
2686
+ for (let p = 7, A = 0; p < h; p += I, A++)
2687
+ for (let u = 7 + A % 2 * I / 2; u < d; u += I) {
2688
+ let y = 0, f = 0, T = 0;
2689
+ if (_ && !i.matches) {
2690
+ const me = (R - _.time) / 1e3, ie = (u - d / 2) / (d * 0.58), M = (p - h * 0.42) / (h * 0.7), q = Math.hypot(ie, M), V = 0.22 + 0.98 * Math.exp(-q * q * 2.1), ae = Math.max(
2691
2691
  0,
2692
- Math.min(me, 2.4) - Math.min(0.045, P * 0.025)
2693
- ), j = 1.55 * (1 - Math.exp(-ae / 0.12)) * K;
2694
- F = ie * 210 * j, y = -260 * j * (1 - 0.3 * Math.tanh(x));
2692
+ Math.min(me, 2.4) - Math.min(0.045, q * 0.025)
2693
+ ), G = 1.55 * (1 - Math.exp(-ae / 0.12)) * V;
2694
+ T = ie * 210 * G, f = -260 * G * (1 - 0.3 * Math.tanh(M));
2695
2695
  }
2696
- if (!r.matches)
2697
- for (const me of $) {
2698
- const ie = (q - me.time) / 1e3, x = Math.hypot(u - me.x, p - me.y);
2696
+ if (!i.matches)
2697
+ for (const me of x) {
2698
+ const ie = (R - me.time) / 1e3, M = Math.hypot(u - me.x, p - me.y);
2699
2699
  if (ie < 0) continue;
2700
- const P = x - ie * 320;
2701
- M += Math.sin(P * 0.065) * Math.exp(-P * P / 13e3) * Math.max(0, 1 - ie / 2.4) * 11;
2700
+ const q = M - ie * 320;
2701
+ y += Math.sin(q * 0.065) * Math.exp(-q * q / 13e3) * Math.max(0, 1 - ie / 2.4) * 11;
2702
2702
  }
2703
- const I = r.matches ? 0 : E(u + v, p) - E(u - v, p), D = r.matches ? 0 : E(u, p + v) - E(u, p - v), Y = 12 * Math.tanh(I * 0.65), Q = 12 * Math.tanh(D * 0.65), he = Math.pow(Math.max(0, 1 - p / h), 0.6), oe = 1 - Math.exp(
2703
+ const F = i.matches ? 0 : H(u + v, p) - H(u - v, p), E = i.matches ? 0 : H(u, p + v) - H(u, p - v), z = 12 * Math.tanh(F * 0.65), Q = 12 * Math.tanh(E * 0.65), he = Math.pow(Math.max(0, 1 - p / h), 0.6), le = 1 - Math.exp(
2704
2704
  -Math.pow((u - d / 2) / (d * 0.28), 2) - Math.pow((p - h * 0.38) / (h * 0.24), 2)
2705
- ) * 0.55, ee = Math.hypot(Y, Q);
2705
+ ) * 0.55, ee = Math.hypot(z, Q);
2706
2706
  if (t) {
2707
- const me = Math.abs(E(u, p)) * 0.12 + ee * 0.035 + Math.abs(M) * 0.035;
2707
+ const me = Math.abs(H(u, p)) * 0.12 + ee * 0.035 + Math.abs(y) * 0.035;
2708
2708
  let ie = B ? Math.exp(
2709
2709
  -((u - B.x) ** 2 + (p - B.y) ** 2) / (2 * 24 ** 2)
2710
- ) : 0, x = 0;
2711
- if (!r.matches)
2712
- for (const P of $) {
2713
- const K = (q - P.time) / 1e3, ae = Math.hypot(u - P.x, p - P.y), j = 32 + 64 * Math.min(1, K / 0.3), te = Math.max(0, 1 - K / 2.4), Ce = Math.exp(-((ae - K * 320) ** 2) / (2 * 36 ** 2)) * te;
2710
+ ) : 0, M = 0;
2711
+ if (!i.matches)
2712
+ for (const q of x) {
2713
+ const V = (R - q.time) / 1e3, ae = Math.hypot(u - q.x, p - q.y), G = 32 + 64 * Math.min(1, V / 0.3), te = Math.max(0, 1 - V / 2.4), xe = Math.exp(-((ae - V * 320) ** 2) / (2 * 36 ** 2)) * te;
2714
2714
  ie = Math.max(
2715
2715
  ie,
2716
- Math.exp(-(ae ** 2) / (2 * j ** 2)) * te,
2717
- Ce
2718
- ), x = Math.max(x, Ce);
2716
+ Math.exp(-(ae ** 2) / (2 * G ** 2)) * te,
2717
+ xe
2718
+ ), M = Math.max(M, xe);
2719
2719
  }
2720
- l.globalAlpha = Math.min(0.28, 0.1 + me * 0.12 + x * 0.12) * ie, l.fillStyle = "#8a8f98", l.beginPath(), l.arc(
2721
- u + M * 0.4 + Y * 0.25,
2722
- p + M + Q * 0.25,
2720
+ o.globalAlpha = Math.min(0.28, 0.1 + me * 0.12 + M * 0.12) * ie, o.fillStyle = "#8a8f98", o.beginPath(), o.arc(
2721
+ u + y * 0.4 + z * 0.25,
2722
+ p + y + Q * 0.25,
2723
2723
  1.25,
2724
2724
  0,
2725
2725
  Math.PI * 2
2726
- ), l.fill();
2726
+ ), o.fill();
2727
2727
  continue;
2728
2728
  }
2729
- const ge = M * 0.055 + Math.tanh((I - D) * 0.2) * 0.18, le = 3.5 + Math.abs(M) * 0.16 + ee * 0.08, ve = Math.sin(u * 12.9898 + p * 78.233) * 43758.5453, Me = ve - Math.floor(ve), pe = q / 1e3, re = Math.sin(u * 39.346 + p * 11.135) * 24634.6345, ue = re - Math.floor(re), Ne = pe / (3 + ue * 5) + ue * 17, $e = Ne - Math.floor(Ne), Le = $e < 0.32 ? Math.pow(Math.sin(Math.PI * $e / 0.32), 2) : 0, xe = Me < 0.22, Re = r.matches || !xe ? 1 : 1 - 0.98 * Le;
2730
- l.save(), l.translate(
2731
- u + M * 0.4 + Y + F,
2732
- p + M + Q + y
2733
- ), l.rotate(ge), l.globalAlpha = Math.min(
2729
+ const ge = y * 0.055 + Math.tanh((F - E) * 0.2) * 0.18, oe = 3.5 + Math.abs(y) * 0.16 + ee * 0.08, ve = Math.sin(u * 12.9898 + p * 78.233) * 43758.5453, ke = ve - Math.floor(ve), pe = R / 1e3, re = Math.sin(u * 39.346 + p * 11.135) * 24634.6345, ue = re - Math.floor(re), Ne = pe / (3 + ue * 5) + ue * 17, Me = Ne - Math.floor(Ne), Ae = Me < 0.32 ? Math.pow(Math.sin(Math.PI * Me / 0.32), 2) : 0, $e = ke < 0.22, Re = i.matches || !$e ? 1 : 1 - 0.98 * Ae;
2730
+ o.save(), o.translate(
2731
+ u + y * 0.4 + z + T,
2732
+ p + y + Q + f
2733
+ ), o.rotate(ge), o.globalAlpha = Math.min(
2734
2734
  1,
2735
2735
  Math.min(
2736
2736
  0.95,
2737
- 0.38 + Me * 0.22 + (xe ? 0.32 : 0) + Math.abs(M) * 0.045 + ee * 0.018
2738
- ) * he * oe * Re
2739
- ), l.strokeStyle = "#f5f8ff", l.lineWidth = xe ? 1.25 : 1.05, l.beginPath(), l.moveTo(-le, 0), l.lineTo(le, 0), l.moveTo(0, -le), l.lineTo(0, le), l.stroke(), l.restore();
2737
+ 0.38 + ke * 0.22 + ($e ? 0.32 : 0) + Math.abs(y) * 0.045 + ee * 0.018
2738
+ ) * he * le * Re
2739
+ ), o.strokeStyle = "#f5f8ff", o.lineWidth = $e ? 1.25 : 1.05, o.beginPath(), o.moveTo(-oe, 0), o.lineTo(oe, 0), o.moveTo(0, -oe), o.lineTo(0, oe), o.stroke(), o.restore();
2740
2740
  }
2741
- m = C && !document.hidden && !r.matches ? requestAnimationFrame(O) : 0;
2742
- }, R = () => {
2743
- cancelAnimationFrame(m), s = 0, O(performance.now());
2744
- }, W = () => {
2745
- const q = i.getBoundingClientRect();
2746
- d = q.width, h = q.height, f = Math.ceil(d / v) + 3, _ = Math.ceil(h / v) + 3, N = new Float32Array(f * _), T = new Float32Array(f * _), g = null, k = 0;
2747
- const H = Math.min(devicePixelRatio || 1, 2);
2748
- i.width = d * H, i.height = h * H, l.setTransform(H, 0, 0, H, 0, 0), R();
2741
+ m = C && !document.hidden && !i.matches ? requestAnimationFrame(j) : 0;
2742
+ }, D = () => {
2743
+ cancelAnimationFrame(m), s = 0, j(performance.now());
2744
+ }, Z = () => {
2745
+ const R = r.getBoundingClientRect();
2746
+ d = R.width, h = R.height, w = Math.ceil(d / v) + 3, N = Math.ceil(h / v) + 3, b = new Float32Array(w * N), P = new Float32Array(w * N), g = null, $ = 0;
2747
+ const I = Math.min(devicePixelRatio || 1, 2);
2748
+ r.width = d * I, r.height = h * I, o.setTransform(I, 0, 0, I, 0, 0), D();
2749
2749
  };
2750
- let z = 0;
2751
- const X = (q) => {
2752
- if (r.matches || !A.matches || q.pointerType === "touch")
2750
+ let X = 0;
2751
+ const Y = (R) => {
2752
+ if (i.matches || !S.matches || R.pointerType === "touch")
2753
2753
  return;
2754
- if (!t && (performance.now() < z || q.target.closest("#hero-download"))) {
2754
+ if (!t && (performance.now() < X || R.target.closest("#hero-download"))) {
2755
2755
  g = null;
2756
2756
  return;
2757
2757
  }
2758
- const H = i.getBoundingClientRect(), p = q.clientX - H.left, L = q.clientY - H.top;
2759
- B = { x: p, y: L }, g ? (g.targetX = p, g.targetY = L) : g = { x: t ? p - 8 : p, y: L, targetX: p, targetY: L }, m || R();
2760
- }, V = () => {
2758
+ const I = r.getBoundingClientRect(), p = R.clientX - I.left, A = R.clientY - I.top;
2759
+ B = { x: p, y: A }, g ? (g.targetX = p, g.targetY = A) : g = { x: t ? p - 8 : p, y: A, targetX: p, targetY: A }, m || D();
2760
+ }, W = () => {
2761
2761
  g = null, B = null;
2762
- }, U = (q) => {
2763
- if (q.target.closest("a,button,input,select")) return;
2764
- const H = i.getBoundingClientRect();
2765
- $.push({
2766
- x: q.clientX - H.left,
2767
- y: q.clientY - H.top,
2762
+ }, O = (R) => {
2763
+ if (R.target.closest("a,button,input,select")) return;
2764
+ const I = r.getBoundingClientRect();
2765
+ x.push({
2766
+ x: R.clientX - I.left,
2767
+ y: R.clientY - I.top,
2768
2768
  time: performance.now()
2769
- }), $ = $.slice(-5), m || R();
2770
- }, J = (q) => {
2771
- if (t || r.matches) return;
2772
- const H = q.detail;
2773
- if (H.cancel) {
2774
- b = null, z = 0;
2769
+ }), x = x.slice(-5), m || D();
2770
+ }, K = (R) => {
2771
+ if (t || i.matches) return;
2772
+ const I = R.detail;
2773
+ if (I.cancel) {
2774
+ _ = null, X = 0;
2775
2775
  return;
2776
2776
  }
2777
- if (b && H.progress > 0) {
2778
- b.progress = H.progress;
2777
+ if (_ && I.progress > 0) {
2778
+ _.progress = I.progress;
2779
2779
  return;
2780
2780
  }
2781
- if (H.progress > 0) return;
2782
- const p = o.querySelector("#hero-download");
2781
+ if (I.progress > 0) return;
2782
+ const p = l.querySelector("#hero-download");
2783
2783
  if (!p) return;
2784
- const L = i.getBoundingClientRect(), u = p.getBoundingClientRect(), M = performance.now();
2785
- z = M + 3220, b = {
2786
- x: u.left + u.width / 2 - L.left,
2787
- y: u.top + u.height / 2 - L.top,
2788
- time: M,
2784
+ const A = r.getBoundingClientRect(), u = p.getBoundingClientRect(), y = performance.now();
2785
+ X = y + 3220, _ = {
2786
+ x: u.left + u.width / 2 - A.left,
2787
+ y: u.top + u.height / 2 - A.top,
2788
+ time: y,
2789
2789
  progress: 0
2790
- }, $ = [], N.fill(0), T.fill(0), g = null, $ = $.slice(-5), m || R();
2790
+ }, x = [], b.fill(0), P.fill(0), g = null, x = x.slice(-5), m || D();
2791
2791
  };
2792
- o.addEventListener("hero-scroll-inertia", J);
2793
- const ne = new ResizeObserver(W);
2794
- ne.observe(i);
2795
- const se = new IntersectionObserver((q) => {
2796
- C = q.some((H) => H.isIntersecting), R();
2792
+ l.addEventListener("hero-scroll-inertia", K);
2793
+ const ne = new ResizeObserver(Z);
2794
+ ne.observe(r);
2795
+ const se = new IntersectionObserver((R) => {
2796
+ C = R.some((I) => I.isIntersecting), D();
2797
2797
  });
2798
- return se.observe(i), o.addEventListener("pointermove", X), o.addEventListener("pointerleave", V), o.addEventListener("pointerdown", U), r.addEventListener("change", R), document.addEventListener("visibilitychange", R), W(), () => {
2799
- cancelAnimationFrame(m), ne.disconnect(), se.disconnect(), o.removeEventListener("hero-scroll-inertia", J), o.removeEventListener("pointermove", X), o.removeEventListener("pointerleave", V), o.removeEventListener("pointerdown", U), r.removeEventListener("change", R), document.removeEventListener("visibilitychange", R);
2798
+ return se.observe(r), l.addEventListener("pointermove", Y), l.addEventListener("pointerleave", W), l.addEventListener("pointerdown", O), i.addEventListener("change", D), document.addEventListener("visibilitychange", D), Z(), () => {
2799
+ cancelAnimationFrame(m), ne.disconnect(), se.disconnect(), l.removeEventListener("hero-scroll-inertia", K), l.removeEventListener("pointermove", Y), l.removeEventListener("pointerleave", W), l.removeEventListener("pointerdown", O), i.removeEventListener("change", D), document.removeEventListener("visibilitychange", D);
2800
2800
  };
2801
2801
  }, [t]), /* @__PURE__ */ e(
2802
2802
  "canvas",
@@ -2807,71 +2807,6 @@ function Ir({ dots: t = !1 }) {
2807
2807
  }
2808
2808
  );
2809
2809
  }
2810
- const Nn = {
2811
- "rp-cursor-plus-canvas": "rp_BackgroundCursor-module_rp-cursor-plus-canvas_JA90aE-l"
2812
- };
2813
- function Er({
2814
- radius: t = 170,
2815
- spacing: n = 18,
2816
- opacity: i = 0.55,
2817
- color: l
2818
- }) {
2819
- const o = Ae(null);
2820
- return ke(() => {
2821
- const r = o.current, d = r?.parentElement;
2822
- if (!r || !d) return;
2823
- const h = r.getContext("2d");
2824
- if (!h) return;
2825
- const m = window.matchMedia("(prefers-reduced-motion: reduce)"), C = window.matchMedia("(hover: hover) and (pointer: fine)");
2826
- let $ = 0, b = 0, A = 0, v = null;
2827
- const f = { x: 0, y: 0, strength: 0 };
2828
- let _ = l || "#17191d";
2829
- const N = () => {
2830
- const O = getComputedStyle(d).getPropertyValue("--rp-cursor-plus-color").trim();
2831
- _ = l || O || "#17191d";
2832
- }, T = () => {
2833
- if (h.clearRect(0, 0, $, b), !(f.strength <= 0.01)) {
2834
- h.strokeStyle = _, h.lineWidth = 1, h.lineCap = "round";
2835
- for (let O = n; O < b; O += n)
2836
- for (let R = n; R < $; R += n) {
2837
- const W = Math.hypot(R - f.x, O - f.y);
2838
- if (W > t) continue;
2839
- const z = (1 - W / t) ** 2, X = 2.5 + z * 2;
2840
- h.globalAlpha = f.strength * z * i, h.beginPath(), h.moveTo(R - X, O), h.lineTo(R + X, O), h.moveTo(R, O - X), h.lineTo(R, O + X), h.stroke();
2841
- }
2842
- h.globalAlpha = 1;
2843
- }
2844
- }, s = () => {
2845
- const O = d.getBoundingClientRect();
2846
- $ = O.width, b = O.height;
2847
- const R = Math.min(window.devicePixelRatio || 1, 2);
2848
- r.width = Math.round($ * R), r.height = Math.round(b * R), h.setTransform(R, 0, 0, R, 0, 0), N(), T();
2849
- }, k = () => {
2850
- A = 0, f.strength += ((v ? 1 : 0) - f.strength) * 0.12, v && (f.x += (v.x - f.x) * 0.18, f.y += (v.y - f.y) * 0.18), T(), f.strength > 0.01 && !m.matches && (A = requestAnimationFrame(k));
2851
- }, g = () => {
2852
- A || (A = requestAnimationFrame(k));
2853
- }, B = (O) => {
2854
- if (!C.matches || O.pointerType === "touch") return;
2855
- const R = r.getBoundingClientRect(), W = O.clientX - R.left, z = O.clientY - R.top;
2856
- v || (f.x = W, f.y = z), v = { x: W, y: z }, m.matches ? (f.strength = 1, T()) : g();
2857
- }, w = () => {
2858
- v = null, m.matches ? (f.strength = 0, T()) : g();
2859
- };
2860
- d.addEventListener("pointermove", B), d.addEventListener("pointerleave", w);
2861
- const E = new ResizeObserver(s);
2862
- return E.observe(d), s(), () => {
2863
- cancelAnimationFrame(A), E.disconnect(), d.removeEventListener("pointermove", B), d.removeEventListener("pointerleave", w);
2864
- };
2865
- }, [t, n, i, l]), /* @__PURE__ */ e(
2866
- "canvas",
2867
- {
2868
- className: Nn["rp-cursor-plus-canvas"],
2869
- ref: o,
2870
- tabIndex: -1,
2871
- "aria-hidden": "true"
2872
- }
2873
- );
2874
- }
2875
2810
  const He = {
2876
2811
  "rp-line-field-background": "rp_BackgroundLineField-module_rp-line-field-background_iKQMVmpE",
2877
2812
  "rp-line-field-canvas": "rp_BackgroundLineField-module_rp-line-field-canvas_NvZpohlj",
@@ -2880,7 +2815,7 @@ const He = {
2880
2815
  "rp-line-field-left": "rp_BackgroundLineField-module_rp-line-field-left_NSpgJvyP",
2881
2816
  "rp-line-field-right": "rp_BackgroundLineField-module_rp-line-field-right_o4I52Xbf",
2882
2817
  "rp-line-field-bottom": "rp_BackgroundLineField-module_rp-line-field-bottom_7BxG7-Fk"
2883
- }, gt = 0.07, wn = 0.66, kn = 3.1, Mn = [0.0625, 0.25, 0.375, 0.5], ft = 0.045, $n = 0.44, xn = 14, Cn = 4, vt = ["#ebba00", "#a7e66b", "#cd99fd", "#0000ff"], An = [
2818
+ }, gt = 0.07, Nn = 0.66, wn = 3.1, kn = [0.0625, 0.25, 0.375, 0.5], ft = 0.045, Mn = 0.44, $n = 14, xn = 4, vt = ["#ebba00", "#a7e66b", "#cd99fd", "#0000ff"], Cn = [
2884
2819
  "--rp-color-line-field-tier-1",
2885
2820
  "--rp-color-line-field-tier-2",
2886
2821
  "--rp-color-line-field-tier-3",
@@ -2888,127 +2823,127 @@ const He = {
2888
2823
  ], De = (t) => {
2889
2824
  const n = Math.sin(t * 127.1) * 43758.5453;
2890
2825
  return n - Math.floor(n);
2891
- }, Ln = Array.from({ length: xn }, (t, n) => ({
2826
+ }, An = Array.from({ length: $n }, (t, n) => ({
2892
2827
  angle: De(n + 1) * Math.PI * 2,
2893
2828
  width: 0.02 + De(n + 21) * 0.05,
2894
2829
  dashes: 22 + De(n + 41) * 26,
2895
2830
  phase: De(n + 61) * Math.PI * 2,
2896
2831
  drift: (De(n + 81) - 0.5) * 0.09,
2897
2832
  speed: 0.4 + De(n + 101) * 0.7
2898
- })), Sn = (t) => Math.atan2(Math.sin(t), Math.cos(t)), Bn = (t) => t < 0.2 ? -1 : t < 0.4 ? 0 : t < 0.6 ? 1 : t < 0.8 ? 2 : 3, Rn = (t, n, i, l, o, r) => {
2899
- const d = n * l / 2, h = i * o / 2, m = n * l * 0.5;
2900
- for (let C = 0; C < i; C++) {
2901
- const $ = (C + 0.5) * o - h;
2902
- for (let b = 0; b < n; b++) {
2903
- const A = (b + 0.5) * l - d, v = Math.hypot(A, $) / m, f = Math.atan2($, A);
2904
- let _ = 0;
2905
- for (const T of Ln) {
2906
- const s = Sn(f - T.angle - r * T.drift), k = Math.exp(-(s * s) / (2 * T.width * T.width));
2907
- if (k < 0.01) continue;
2908
- const g = 0.5 + 0.5 * Math.sin(v * T.dashes - r * T.speed + T.phase);
2909
- _ = Math.max(_, k * (0.3 + 0.7 * g));
2833
+ })), Ln = (t) => Math.atan2(Math.sin(t), Math.cos(t)), Sn = (t) => t < 0.2 ? -1 : t < 0.4 ? 0 : t < 0.6 ? 1 : t < 0.8 ? 2 : 3, Bn = (t, n, r, o, l, i) => {
2834
+ const d = n * o / 2, h = r * l / 2, m = n * o * 0.5;
2835
+ for (let C = 0; C < r; C++) {
2836
+ const x = (C + 0.5) * l - h;
2837
+ for (let _ = 0; _ < n; _++) {
2838
+ const S = (_ + 0.5) * o - d, v = Math.hypot(S, x) / m, w = Math.atan2(x, S);
2839
+ let N = 0;
2840
+ for (const P of An) {
2841
+ const s = Ln(w - P.angle - i * P.drift), $ = Math.exp(-(s * s) / (2 * P.width * P.width));
2842
+ if ($ < 0.01) continue;
2843
+ const g = 0.5 + 0.5 * Math.sin(v * P.dashes - i * P.speed + P.phase);
2844
+ N = Math.max(N, $ * (0.3 + 0.7 * g));
2910
2845
  }
2911
- _ *= 0.7 + 0.6 * De(b * 3.17 + C * 7.31);
2912
- const N = Math.min(1, Math.max(0, (v - 0.12) / 0.3));
2913
- _ *= N * N * (3 - 2 * N), t[C * n + b] = Math.min(
2846
+ N *= 0.7 + 0.6 * De(_ * 3.17 + C * 7.31);
2847
+ const b = Math.min(1, Math.max(0, (v - 0.12) / 0.3));
2848
+ N *= b * b * (3 - 2 * b), t[C * n + _] = Math.min(
2914
2849
  1,
2915
- Math.max(0, (_ - 0.58) * kn + 0.5)
2850
+ Math.max(0, (N - 0.58) * wn + 0.5)
2916
2851
  );
2917
2852
  }
2918
2853
  }
2919
- }, Tn = (t, n, i, l, o) => {
2920
- const r = Math.min(o * $n, (l - i) / 2), d = n - o / 2, h = n + o / 2;
2921
- t.beginPath(), t.moveTo(d + r, i), t.lineTo(h - r, i), t.quadraticCurveTo(h, i, h, i + r), t.lineTo(h, l - r), t.quadraticCurveTo(h, l, h - r, l), t.lineTo(d + r, l), t.quadraticCurveTo(d, l, d, l - r), t.lineTo(d, i + r), t.quadraticCurveTo(d, i, d + r, i), t.closePath();
2922
- }, qn = (t, n, i, l, o, r, d, h, m, C, $) => {
2923
- t.clearRect(0, 0, C, $);
2924
- for (let b = 0; b < l; b++)
2925
- for (let A = 0; A < i; A++) {
2926
- const v = b * i + A, f = n[v];
2927
- if (f < 0) continue;
2928
- const _ = b > 0 ? n[v - i] : -1, N = b < l - 1 ? n[v + i] : -1;
2929
- let T = b * r, s = (b + 1) * r;
2930
- if (_ !== f && (T += ft * 0.5 * r), N !== f && (s -= ft * 0.5 * r), s <= T) continue;
2931
- const k = Math.max(1, 2 * Mn[f] * wn * o);
2932
- let g = (A + 0.5) * o, B = 1;
2854
+ }, Rn = (t, n, r, o, l) => {
2855
+ const i = Math.min(l * Mn, (o - r) / 2), d = n - l / 2, h = n + l / 2;
2856
+ t.beginPath(), t.moveTo(d + i, r), t.lineTo(h - i, r), t.quadraticCurveTo(h, r, h, r + i), t.lineTo(h, o - i), t.quadraticCurveTo(h, o, h - i, o), t.lineTo(d + i, o), t.quadraticCurveTo(d, o, d, o - i), t.lineTo(d, r + i), t.quadraticCurveTo(d, r, d + i, r), t.closePath();
2857
+ }, Tn = (t, n, r, o, l, i, d, h, m, C, x) => {
2858
+ t.clearRect(0, 0, C, x);
2859
+ for (let _ = 0; _ < o; _++)
2860
+ for (let S = 0; S < r; S++) {
2861
+ const v = _ * r + S, w = n[v];
2862
+ if (w < 0) continue;
2863
+ const N = _ > 0 ? n[v - r] : -1, b = _ < o - 1 ? n[v + r] : -1;
2864
+ let P = _ * i, s = (_ + 1) * i;
2865
+ if (N !== w && (P += ft * 0.5 * i), b !== w && (s -= ft * 0.5 * i), s <= P) continue;
2866
+ const $ = Math.max(1, 2 * kn[w] * Nn * l);
2867
+ let g = (S + 0.5) * l, B = 1;
2933
2868
  if (h) {
2934
- const w = g - h.x, E = (T + s) / 2 - h.y, O = Math.hypot(w, E) / m;
2935
- if (O < 1) {
2936
- const R = (1 - O) ** 2;
2937
- g += w * 0.06 * R, B = 1 - 0.7 * R;
2869
+ const k = g - h.x, H = (P + s) / 2 - h.y, j = Math.hypot(k, H) / m;
2870
+ if (j < 1) {
2871
+ const D = (1 - j) ** 2;
2872
+ g += k * 0.06 * D, B = 1 - 0.7 * D;
2938
2873
  }
2939
2874
  }
2940
- t.globalAlpha = B, t.fillStyle = d[f % Cn], Tn(t, g, T, s, k), t.fill();
2875
+ t.globalAlpha = B, t.fillStyle = d[w % xn], Rn(t, g, P, s, $), t.fill();
2941
2876
  }
2942
2877
  t.globalAlpha = 1;
2943
2878
  };
2944
- function Fn() {
2945
- const t = Ae(null);
2946
- return ke(() => {
2947
- const n = t.current, i = n?.parentElement;
2948
- if (!n || !i || typeof window > "u") return;
2949
- const l = n.getContext("2d");
2950
- if (!l) return;
2951
- const o = window.matchMedia("(prefers-reduced-motion: reduce)"), r = window.matchMedia("(hover: hover) and (pointer: fine)");
2952
- let d = 0, h = 0, m = 0, C = 0, $ = 0, b = 0, A = 0, v = !0, f = 0, _ = 0, N = new Float32Array(0), T = new Int8Array(0), s = [...vt], k = null;
2879
+ function qn() {
2880
+ const t = Se(null);
2881
+ return Ce(() => {
2882
+ const n = t.current, r = n?.parentElement;
2883
+ if (!n || !r || typeof window > "u") return;
2884
+ const o = n.getContext("2d");
2885
+ if (!o) return;
2886
+ const l = window.matchMedia("(prefers-reduced-motion: reduce)"), i = window.matchMedia("(hover: hover) and (pointer: fine)");
2887
+ let d = 0, h = 0, m = 0, C = 0, x = 0, _ = 0, S = 0, v = !0, w = 0, N = 0, b = new Float32Array(0), P = new Int8Array(0), s = [...vt], $ = null;
2953
2888
  const g = () => {
2954
- const U = getComputedStyle(i);
2955
- s = An.map((J, ne) => U.getPropertyValue(J).trim() || vt[ne]);
2889
+ const O = getComputedStyle(r);
2890
+ s = Cn.map((K, ne) => O.getPropertyValue(K).trim() || vt[ne]);
2956
2891
  }, B = () => {
2957
- Rn(N, m, C, $, b, f);
2958
- for (let U = 0; U < N.length; U++)
2959
- T[U] = Bn(N[U]);
2960
- qn(
2961
- l,
2962
- T,
2892
+ Bn(b, m, C, x, _, w);
2893
+ for (let O = 0; O < b.length; O++)
2894
+ P[O] = Sn(b[O]);
2895
+ Tn(
2896
+ o,
2897
+ P,
2963
2898
  m,
2964
2899
  C,
2965
- $,
2966
- b,
2900
+ x,
2901
+ _,
2967
2902
  s,
2968
- k,
2903
+ $,
2969
2904
  Math.min(d, h) * 0.18,
2970
2905
  d,
2971
2906
  h
2972
2907
  );
2973
- }, w = (U) => {
2974
- A = 0, !(!v || document.hidden) && (_ && (f += Math.min(80, U - _) * 28e-5), _ = U, B(), o.matches || (A = requestAnimationFrame(w)));
2975
- }, E = () => {
2976
- cancelAnimationFrame(A), A = 0, _ = 0, v && !document.hidden && (A = requestAnimationFrame(w));
2977
- }, O = () => {
2978
- const U = i.getBoundingClientRect();
2979
- d = U.width, h = U.height, m = Math.max(1, Math.round(d * gt)), C = Math.max(1, Math.round(h * gt)), $ = d / m, b = h / C, N = new Float32Array(m * C), T = new Int8Array(m * C);
2980
- const J = Math.min(window.devicePixelRatio || 1, 2);
2981
- n.width = Math.round(d * J), n.height = Math.round(h * J), l.setTransform(J, 0, 0, J, 0, 0), g(), E();
2982
- }, R = (U) => {
2983
- if (o.matches || !r.matches || U.pointerType === "touch")
2908
+ }, k = (O) => {
2909
+ S = 0, !(!v || document.hidden) && (N && (w += Math.min(80, O - N) * 28e-5), N = O, B(), l.matches || (S = requestAnimationFrame(k)));
2910
+ }, H = () => {
2911
+ cancelAnimationFrame(S), S = 0, N = 0, v && !document.hidden && (S = requestAnimationFrame(k));
2912
+ }, j = () => {
2913
+ const O = r.getBoundingClientRect();
2914
+ d = O.width, h = O.height, m = Math.max(1, Math.round(d * gt)), C = Math.max(1, Math.round(h * gt)), x = d / m, _ = h / C, b = new Float32Array(m * C), P = new Int8Array(m * C);
2915
+ const K = Math.min(window.devicePixelRatio || 1, 2);
2916
+ n.width = Math.round(d * K), n.height = Math.round(h * K), o.setTransform(K, 0, 0, K, 0, 0), g(), H();
2917
+ }, D = (O) => {
2918
+ if (l.matches || !i.matches || O.pointerType === "touch")
2984
2919
  return;
2985
- const J = i.getBoundingClientRect();
2986
- k = {
2987
- x: U.clientX - J.left,
2988
- y: U.clientY - J.top
2989
- }, A || E();
2990
- }, W = () => {
2991
- k = null, A || E();
2992
- }, z = new MutationObserver(() => {
2993
- g(), A || E();
2920
+ const K = r.getBoundingClientRect();
2921
+ $ = {
2922
+ x: O.clientX - K.left,
2923
+ y: O.clientY - K.top
2924
+ }, S || H();
2925
+ }, Z = () => {
2926
+ $ = null, S || H();
2927
+ }, X = new MutationObserver(() => {
2928
+ g(), S || H();
2994
2929
  });
2995
- z.observe(document.body, {
2930
+ X.observe(document.body, {
2996
2931
  attributes: !0,
2997
2932
  attributeFilter: ["data-theme"],
2998
2933
  subtree: !0
2999
2934
  });
3000
- const X = new ResizeObserver(O);
3001
- X.observe(i);
3002
- const V = new IntersectionObserver((U) => {
3003
- v = U.some((J) => J.isIntersecting), E();
2935
+ const Y = new ResizeObserver(j);
2936
+ Y.observe(r);
2937
+ const W = new IntersectionObserver((O) => {
2938
+ v = O.some((K) => K.isIntersecting), H();
3004
2939
  });
3005
- return V.observe(n), window.addEventListener("pointermove", R, { passive: !0 }), window.addEventListener("pointerleave", W), o.addEventListener("change", E), document.addEventListener("visibilitychange", E), O(), () => {
3006
- cancelAnimationFrame(A), X.disconnect(), V.disconnect(), z.disconnect(), window.removeEventListener("pointermove", R), window.removeEventListener("pointerleave", W), o.removeEventListener("change", E), document.removeEventListener("visibilitychange", E);
2940
+ return W.observe(n), window.addEventListener("pointermove", D, { passive: !0 }), window.addEventListener("pointerleave", Z), l.addEventListener("change", H), document.addEventListener("visibilitychange", H), j(), () => {
2941
+ cancelAnimationFrame(S), Y.disconnect(), W.disconnect(), X.disconnect(), window.removeEventListener("pointermove", D), window.removeEventListener("pointerleave", Z), l.removeEventListener("change", H), document.removeEventListener("visibilitychange", H);
3007
2942
  };
3008
2943
  }, []), t;
3009
2944
  }
3010
- function Hr({ className: t }) {
3011
- const n = Fn();
2945
+ function Ir({ className: t }) {
2946
+ const n = qn();
3012
2947
  return /* @__PURE__ */ a(
3013
2948
  "div",
3014
2949
  {
@@ -3032,23 +2967,23 @@ function Hr({ className: t }) {
3032
2967
  }
3033
2968
  );
3034
2969
  }
3035
- const Pn = {
2970
+ const Fn = {
3036
2971
  "rp-dotted-background-canvas": "rp_BackgroundDotted-module_rp-dotted-background-canvas_-HlLHshb"
3037
2972
  };
3038
- function In({ background: t }) {
2973
+ function Pn({ background: t }) {
3039
2974
  const n = Mt(!0);
3040
2975
  return /* @__PURE__ */ e(
3041
2976
  "canvas",
3042
2977
  {
3043
- className: `${Pn["rp-dotted-background-canvas"]} rp-download-ripple`,
2978
+ className: `${Fn["rp-dotted-background-canvas"]} rp-download-ripple`,
3044
2979
  style: t === void 0 ? void 0 : { background: t },
3045
2980
  ref: n,
3046
2981
  "aria-hidden": "true"
3047
2982
  }
3048
2983
  );
3049
2984
  }
3050
- const En = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", Hn = {
3051
- canvas: En
2985
+ const In = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", En = {
2986
+ canvas: In
3052
2987
  }, Xe = [
3053
2988
  "#244cf0",
3054
2989
  "#3459f1",
@@ -3061,133 +2996,133 @@ const En = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", Hn = {
3061
2996
  "#c3cefa",
3062
2997
  "#d7defc",
3063
2998
  "#e9edfe"
3064
- ], Dn = 24, at = 90;
2999
+ ], Hn = 24, at = 90;
3065
3000
  function Je(t, n) {
3066
- const i = (v, f) => {
3067
- let _ = Math.imul(v, 374761393) + Math.imul(f, 668265263);
3068
- return _ = Math.imul(_ ^ _ >>> 13, 1274126177), ((_ ^ _ >>> 16) >>> 0) / 4294967296;
3069
- }, l = Math.floor(t), o = Math.floor(n), r = t - l, d = n - o, h = r * r * (3 - 2 * r), m = d * d * (3 - 2 * d), C = i(l, o), $ = i(l + 1, o), b = i(l, o + 1), A = i(l + 1, o + 1);
3070
- return C + ($ - C) * h + (b - C) * m + (C - $ - b + A) * h * m;
3001
+ const r = (v, w) => {
3002
+ let N = Math.imul(v, 374761393) + Math.imul(w, 668265263);
3003
+ return N = Math.imul(N ^ N >>> 13, 1274126177), ((N ^ N >>> 16) >>> 0) / 4294967296;
3004
+ }, o = Math.floor(t), l = Math.floor(n), i = t - o, d = n - l, h = i * i * (3 - 2 * i), m = d * d * (3 - 2 * d), C = r(o, l), x = r(o + 1, l), _ = r(o, l + 1), S = r(o + 1, l + 1);
3005
+ return C + (x - C) * h + (_ - C) * m + (C - x - _ + S) * h * m;
3071
3006
  }
3072
- function Dr({
3007
+ function Er({
3073
3008
  scene: t,
3074
- cellSize: n = Dn
3009
+ cellSize: n = Hn
3075
3010
  }) {
3076
- const i = Ae(null), l = Ae(t), o = Ae(n), r = Ae(/* @__PURE__ */ new Map());
3077
- return ke(() => {
3078
- l.current = t;
3079
- }, [t]), ke(() => {
3080
- o.current = n, r.current.clear();
3081
- }, [n]), ke(() => {
3082
- const d = i.current, h = d?.getContext("2d");
3011
+ const r = Se(null), o = Se(t), l = Se(n), i = Se(/* @__PURE__ */ new Map());
3012
+ return Ce(() => {
3013
+ o.current = t;
3014
+ }, [t]), Ce(() => {
3015
+ l.current = n, i.current.clear();
3016
+ }, [n]), Ce(() => {
3017
+ const d = r.current, h = d?.getContext("2d");
3083
3018
  if (!d || !h) return;
3084
- const m = matchMedia("(prefers-reduced-motion: reduce)"), C = matchMedia("(any-hover: hover)"), $ = d.parentElement ?? d;
3085
- let b = 0, A = 0, v = 0, f = !1, _ = l.current, N = l.current, T = 0, s = 1, k = 0;
3019
+ const m = matchMedia("(prefers-reduced-motion: reduce)"), C = matchMedia("(any-hover: hover)"), x = d.parentElement ?? d;
3020
+ let _ = 0, S = 0, v = 0, w = !1, N = o.current, b = o.current, P = 0, s = 1, $ = 0;
3086
3021
  const g = { x: -1e3, y: -1e3, active: !1, strength: 0 }, B = { x: -1e3, y: -1e3 };
3087
- let w = [], E = 0, O = 0;
3088
- const R = r.current, W = (u, M) => {
3089
- let y = 0;
3090
- if (m.matches) return y;
3091
- for (const F of w) {
3092
- const I = (O - F.born) / 1e3, D = Math.hypot(u - F.x, M - F.y) - I * 320;
3093
- y += Math.sin(D * 0.065) * Math.exp(-D * D / 13e3) * Math.max(0, 1 - I / 2.4) * F.strength;
3022
+ let k = [], H = 0, j = 0;
3023
+ const D = i.current, Z = (u, y) => {
3024
+ let f = 0;
3025
+ if (m.matches) return f;
3026
+ for (const T of k) {
3027
+ const F = (j - T.born) / 1e3, E = Math.hypot(u - T.x, y - T.y) - F * 320;
3028
+ f += Math.sin(E * 0.065) * Math.exp(-E * E / 13e3) * Math.max(0, 1 - F / 2.4) * T.strength;
3094
3029
  }
3095
- return y;
3096
- }, z = (u, M) => {
3097
- const y = u / 220 + T * 0.018 + _ * 0.12, F = M / 220 - T * 0.012, I = Je(y * 2, F * 2), D = Je(y, F);
3098
- return 0.5 + Math.sin((u * 0.62 + M) / 100 + D * 5.5 + T * 0.12) * 0.35 + (I - 0.5) * 0.32;
3099
- }, X = (u, M, y, F = 0, I = 1) => {
3100
- const D = u + y / 2, Y = M + y / 2, Q = D - g.x, he = Y - g.y, oe = Math.hypot(Q, he), ee = W(D, Y), ge = Math.exp(-oe * oe / (at * at)) * g.strength * 16 + ee * 12, le = (j) => z(
3101
- (Math.floor(D / j) + 0.5) * j + Q / Math.max(1, oe) * ge,
3102
- (Math.floor(Y / j) + 0.5) * j + he / Math.max(1, oe) * ge
3103
- ), ve = le(o.current), Me = le(o.current / 2), pe = Math.floor(D / o.current), re = Math.floor(Y / o.current), ue = Je(pe * 17 + 31, re * 29 + 47), Ne = T * (0.55 + ue * 0.45) + ue * 19, $e = Math.floor(Ne), Le = Ne - $e, xe = Je(pe + $e * 193, re - $e * 137), Re = m.matches || xe < 0.84 ? 0 : Math.sin(Le * Math.PI) ** 6 * (0.02 + ue * 0.025), me = ve + (Me - ve) * I + F + ee * 0.1 + Re, ie = Math.max(
3030
+ return f;
3031
+ }, X = (u, y) => {
3032
+ const f = u / 220 + P * 0.018 + N * 0.12, T = y / 220 - P * 0.012, F = Je(f * 2, T * 2), E = Je(f, T);
3033
+ return 0.5 + Math.sin((u * 0.62 + y) / 100 + E * 5.5 + P * 0.12) * 0.35 + (F - 0.5) * 0.32;
3034
+ }, Y = (u, y, f, T = 0, F = 1) => {
3035
+ const E = u + f / 2, z = y + f / 2, Q = E - g.x, he = z - g.y, le = Math.hypot(Q, he), ee = Z(E, z), ge = Math.exp(-le * le / (at * at)) * g.strength * 16 + ee * 12, oe = (G) => X(
3036
+ (Math.floor(E / G) + 0.5) * G + Q / Math.max(1, le) * ge,
3037
+ (Math.floor(z / G) + 0.5) * G + he / Math.max(1, le) * ge
3038
+ ), ve = oe(l.current), ke = oe(l.current / 2), pe = Math.floor(E / l.current), re = Math.floor(z / l.current), ue = Je(pe * 17 + 31, re * 29 + 47), Ne = P * (0.55 + ue * 0.45) + ue * 19, Me = Math.floor(Ne), Ae = Ne - Me, $e = Je(pe + Me * 193, re - Me * 137), Re = m.matches || $e < 0.84 ? 0 : Math.sin(Ae * Math.PI) ** 6 * (0.02 + ue * 0.025), me = ve + (ke - ve) * F + T + ee * 0.1 + Re, ie = Math.max(
3104
3039
  0,
3105
3040
  Math.min(Xe.length - 1, me * (Xe.length - 1))
3106
- ), x = Math.floor(ie), P = ie - x, K = Xe[x], ae = Xe[Math.min(x + 1, Xe.length - 1)];
3107
- h.fillStyle = "rgb(" + [1, 3, 5].map((j) => {
3108
- const te = parseInt(K.slice(j, j + 2), 16), Ce = parseInt(ae.slice(j, j + 2), 16);
3109
- return Math.round(te + (Ce - te) * P);
3110
- }).join(",") + ")", h.fillRect(u, M, y + 0.6, y + 0.6);
3111
- }, V = (u) => {
3112
- b = 0;
3113
- const M = k ? Math.min(u - k, 64) : 16;
3114
- k = u, O = u, N !== l.current && (N = l.current, w.push({
3115
- x: A * 0.5,
3041
+ ), M = Math.floor(ie), q = ie - M, V = Xe[M], ae = Xe[Math.min(M + 1, Xe.length - 1)];
3042
+ h.fillStyle = "rgb(" + [1, 3, 5].map((G) => {
3043
+ const te = parseInt(V.slice(G, G + 2), 16), xe = parseInt(ae.slice(G, G + 2), 16);
3044
+ return Math.round(te + (xe - te) * q);
3045
+ }).join(",") + ")", h.fillRect(u, y, f + 0.6, f + 0.6);
3046
+ }, W = (u) => {
3047
+ _ = 0;
3048
+ const y = $ ? Math.min(u - $, 64) : 16;
3049
+ $ = u, j = u, b !== o.current && (b = o.current, k.push({
3050
+ x: S * 0.5,
3116
3051
  y: v * 0.5,
3117
3052
  born: u,
3118
3053
  strength: 0.7
3119
- })), _ += (N * 7.13 - _) * (1 - Math.exp(-M / 500)), w = w.filter((D) => u - D.born < 2400), g.strength += ((g.active ? 1 : 0) - g.strength) * (1 - Math.exp(-M / 150));
3120
- const y = g.active || g.strength > 0.01 || w.length > 0;
3121
- s += ((y ? 0.35 : 1) - s) * (1 - Math.exp(-M / (y ? 500 : 1200))), m.matches || (T += M / 1e3 * 0.35 * s);
3122
- const F = at * g.strength, I = 1 - Math.exp(-M / 75);
3123
- g.x += (B.x - g.x) * I, g.y += (B.y - g.y) * I;
3124
- for (let D = 0; D < v; D += o.current)
3125
- for (let Y = 0; Y < A; Y += o.current) {
3054
+ })), N += (b * 7.13 - N) * (1 - Math.exp(-y / 500)), k = k.filter((E) => u - E.born < 2400), g.strength += ((g.active ? 1 : 0) - g.strength) * (1 - Math.exp(-y / 150));
3055
+ const f = g.active || g.strength > 0.01 || k.length > 0;
3056
+ s += ((f ? 0.35 : 1) - s) * (1 - Math.exp(-y / (f ? 500 : 1200))), m.matches || (P += y / 1e3 * 0.35 * s);
3057
+ const T = at * g.strength, F = 1 - Math.exp(-y / 75);
3058
+ g.x += (B.x - g.x) * F, g.y += (B.y - g.y) * F;
3059
+ for (let E = 0; E < v; E += l.current)
3060
+ for (let z = 0; z < S; z += l.current) {
3126
3061
  const Q = Math.hypot(
3127
- Y + o.current / 2 - g.x,
3128
- D + o.current / 2 - g.y
3062
+ z + l.current / 2 - g.x,
3063
+ E + l.current / 2 - g.y
3129
3064
  ), he = Math.abs(
3130
- W(Y + o.current / 2, D + o.current / 2)
3131
- ), oe = Y + "," + D, ee = m.matches ? 0 : Math.max(
3132
- F > 1 ? Math.max(0, 1 - Q / F) : 0,
3065
+ Z(z + l.current / 2, E + l.current / 2)
3066
+ ), le = z + "," + E, ee = m.matches ? 0 : Math.max(
3067
+ T > 1 ? Math.max(0, 1 - Q / T) : 0,
3133
3068
  Math.min(1, he * 4)
3134
- ), ge = R.get(oe) ?? 0, le = ge + (ee - ge) * (1 - Math.exp(-M / 320));
3135
- R.set(oe, le < 1e-3 ? 0 : le);
3136
- const ve = F > 1 ? 0.08 * Math.max(0, 1 - Q / F) ** 2 : 0;
3137
- if (le > 1e-3) {
3138
- const pe = o.current / 2;
3069
+ ), ge = D.get(le) ?? 0, oe = ge + (ee - ge) * (1 - Math.exp(-y / 320));
3070
+ D.set(le, oe < 1e-3 ? 0 : oe);
3071
+ const ve = T > 1 ? 0.08 * Math.max(0, 1 - Q / T) ** 2 : 0;
3072
+ if (oe > 1e-3) {
3073
+ const pe = l.current / 2;
3139
3074
  for (let re = 0; re < 2; re++)
3140
3075
  for (let ue = 0; ue < 2; ue++)
3141
- X(Y + ue * pe, D + re * pe, pe, ve, le);
3076
+ Y(z + ue * pe, E + re * pe, pe, ve, oe);
3142
3077
  } else
3143
- X(Y, D, o.current, ve, 0);
3078
+ Y(z, E, l.current, ve, 0);
3144
3079
  }
3145
- f && !document.hidden && !m.matches && (b = requestAnimationFrame(V));
3146
- }, U = () => {
3147
- cancelAnimationFrame(b), k = 0, document.hidden || V(performance.now());
3148
- }, J = () => {
3080
+ w && !document.hidden && !m.matches && (_ = requestAnimationFrame(W));
3081
+ }, O = () => {
3082
+ cancelAnimationFrame(_), $ = 0, document.hidden || W(performance.now());
3083
+ }, K = () => {
3149
3084
  const u = d.getBoundingClientRect();
3150
- A = u.width, v = u.height, R.clear();
3151
- const M = Math.min(devicePixelRatio || 1, 2);
3152
- d.width = Math.round(A * M), d.height = Math.round(v * M), h.setTransform(M, 0, 0, M, 0, 0), U();
3085
+ S = u.width, v = u.height, D.clear();
3086
+ const y = Math.min(devicePixelRatio || 1, 2);
3087
+ d.width = Math.round(S * y), d.height = Math.round(v * y), h.setTransform(y, 0, 0, y, 0, 0), O();
3153
3088
  }, ne = (u) => {
3154
3089
  if (!C.matches || m.matches || !["mouse", "pen"].includes(u.pointerType))
3155
3090
  return;
3156
- const M = d.getBoundingClientRect(), y = performance.now(), F = Math.hypot(
3157
- u.clientX - M.left - B.x,
3158
- u.clientY - M.top - B.y
3091
+ const y = d.getBoundingClientRect(), f = performance.now(), T = Math.hypot(
3092
+ u.clientX - y.left - B.x,
3093
+ u.clientY - y.top - B.y
3159
3094
  );
3160
- g.active && F > 2 && y - E > 90 && (w.push({
3095
+ g.active && T > 2 && f - H > 90 && (k.push({
3161
3096
  x: g.x,
3162
3097
  y: g.y,
3163
- born: y,
3164
- strength: Math.min(F / 40, 0.35)
3165
- }), w = w.slice(-12), E = y), B.x = u.clientX - M.left, B.y = u.clientY - M.top, g.active || (g.x = B.x, g.y = B.y), g.active = !0, b || U();
3098
+ born: f,
3099
+ strength: Math.min(T / 40, 0.35)
3100
+ }), k = k.slice(-12), H = f), B.x = u.clientX - y.left, B.y = u.clientY - y.top, g.active || (g.x = B.x, g.y = B.y), g.active = !0, _ || O();
3166
3101
  }, se = (u) => {
3167
3102
  if (m.matches || u.target.closest(
3168
3103
  'a,button,input,select,[role="switch"],[role="combobox"]'
3169
3104
  ))
3170
3105
  return;
3171
- const M = d.getBoundingClientRect();
3172
- w.push({
3173
- x: u.clientX - M.left,
3174
- y: u.clientY - M.top,
3106
+ const y = d.getBoundingClientRect();
3107
+ k.push({
3108
+ x: u.clientX - y.left,
3109
+ y: u.clientY - y.top,
3175
3110
  born: performance.now(),
3176
3111
  strength: 1
3177
- }), w = w.slice(-12), b || U();
3178
- }, q = () => {
3112
+ }), k = k.slice(-12), _ || O();
3113
+ }, R = () => {
3179
3114
  g.active = !1;
3180
- }, H = () => {
3181
- g.active = !1, g.strength = 0, w = [], U();
3182
- }, p = new ResizeObserver(J), L = new IntersectionObserver((u) => {
3183
- f = u.some((M) => M.isIntersecting), U();
3115
+ }, I = () => {
3116
+ g.active = !1, g.strength = 0, k = [], O();
3117
+ }, p = new ResizeObserver(K), A = new IntersectionObserver((u) => {
3118
+ w = u.some((y) => y.isIntersecting), O();
3184
3119
  });
3185
- return p.observe(d), L.observe(d), m.addEventListener("change", H), C.addEventListener("change", H), $.addEventListener("pointermove", ne), $.addEventListener("pointerdown", se), $.addEventListener("pointerleave", q), $.addEventListener("pointercancel", q), document.addEventListener("visibilitychange", U), J(), () => {
3186
- cancelAnimationFrame(b), p.disconnect(), L.disconnect(), m.removeEventListener("change", H), C.removeEventListener("change", H), $.removeEventListener("pointermove", ne), $.removeEventListener("pointerdown", se), $.removeEventListener("pointerleave", q), $.removeEventListener("pointercancel", q), document.removeEventListener("visibilitychange", U);
3120
+ return p.observe(d), A.observe(d), m.addEventListener("change", I), C.addEventListener("change", I), x.addEventListener("pointermove", ne), x.addEventListener("pointerdown", se), x.addEventListener("pointerleave", R), x.addEventListener("pointercancel", R), document.addEventListener("visibilitychange", O), K(), () => {
3121
+ cancelAnimationFrame(_), p.disconnect(), A.disconnect(), m.removeEventListener("change", I), C.removeEventListener("change", I), x.removeEventListener("pointermove", ne), x.removeEventListener("pointerdown", se), x.removeEventListener("pointerleave", R), x.removeEventListener("pointercancel", R), document.removeEventListener("visibilitychange", O);
3187
3122
  };
3188
- }, []), /* @__PURE__ */ e("canvas", { ref: i, className: Hn.canvas, "aria-hidden": "true" });
3123
+ }, []), /* @__PURE__ */ e("canvas", { ref: r, className: En.canvas, "aria-hidden": "true" });
3189
3124
  }
3190
- const On = [
3125
+ const Dn = [
3191
3126
  "A request begins in a local client. The router reads the requested model and finds an available source. The conversation stays in the tool where it started.",
3192
3127
  "Different providers speak different protocols. A common interface carries messages across those boundaries while preserving the shape of each tool call.",
3193
3128
  "Context follows the request. Earlier messages form the working memory of a conversation. A continuation returns to the source that owns its state.",
@@ -3220,25 +3155,25 @@ const On = [
3220
3155
  const n = Math.max(0, Math.min(1, t));
3221
3156
  return n * n * (3 - 2 * n);
3222
3157
  };
3223
- function Or({
3158
+ function Hr({
3224
3159
  onComplete: t,
3225
3160
  passages: n
3226
3161
  }) {
3227
- const i = n ?? On, l = Ae(null);
3228
- return ke(() => {
3229
- const o = l.current, r = o?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
3230
- if (!o || !r || d.matches) {
3162
+ const r = n ?? Dn, o = Se(null);
3163
+ return Ce(() => {
3164
+ const l = o.current, i = l?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
3165
+ if (!l || !i || d.matches) {
3231
3166
  t();
3232
3167
  return;
3233
3168
  }
3234
3169
  let h = 0, m = 0, C = 0;
3235
- const $ = () => {
3170
+ const x = () => {
3236
3171
  h = innerWidth, m = innerHeight;
3237
3172
  const s = Math.min(devicePixelRatio || 1, 2);
3238
- o.width = h * s, o.height = m * s, r.setTransform(s, 0, 0, s, 0, 0);
3173
+ l.width = h * s, l.height = m * s, i.setTransform(s, 0, 0, s, 0, 0);
3239
3174
  };
3240
- $();
3241
- const b = i.map((s, k) => ({
3175
+ x();
3176
+ const _ = r.map((s, $) => ({
3242
3177
  text: s,
3243
3178
  order: Math.random(),
3244
3179
  x: Math.random() * 0.88 - 0.03,
@@ -3248,32 +3183,32 @@ function Or({
3248
3183
  size: 9 + Math.random() * 13,
3249
3184
  dark: Math.random() > 0.35,
3250
3185
  phase: Math.random() * 1e3,
3251
- index: k
3252
- })).sort((s, k) => s.order - k.order), A = 2500, v = 4e3, f = performance.now(), _ = (s) => {
3253
- const k = (s - f) * v / A, g = bt((k - 2900) / 850), B = Math.floor(k / 340);
3254
- r.globalAlpha = 1, r.fillStyle = k < 650 || k >= 1600 ? "#101216" : "#fafafa", r.fillRect(0, 0, h, m);
3255
- for (const w of b) {
3256
- const E = w.x * h, O = w.y * m, R = w.width * h, W = w.height * m, z = w.size * (k < 650 ? 1.6 : k < 1600 ? 1.15 : 1), X = z * 1.04;
3257
- r.save(), r.globalAlpha = 1 - g, r.fillStyle = w.dark ? "#101216" : "#f4f5f7", r.fillRect(E, O, R, W), r.beginPath(), r.rect(E, O, R, W), r.clip(), r.font = z + "px sans-serif", r.textBaseline = "top";
3258
- let V = E, U = O - (k * 0.012 + w.phase) % X;
3259
- const J = w.text.split(" ");
3260
- for (let ne = 0; ne < J.length; ne++) {
3261
- const se = J[ne], q = r.measureText(se + " ").width;
3262
- if (V + q > E + R && (V = E, U += X), U > O + W) break;
3263
- const H = w.index * 53 + ne * 17;
3264
- r.save();
3265
- const p = Math.round((U - 7) / 14), L = 7 + Math.round((V - 7) / 14) * 14 + p % 2 * 7, u = 7 + p * 14;
3266
- if (r.translate(V + (L - V) * g, U + (u - U) * g), r.scale(1 - g * 0.94, 1 - g * 0.94), k < 650 && (H + B) % 4 > 0) {
3267
- r.restore(), V += q;
3186
+ index: $
3187
+ })).sort((s, $) => s.order - $.order), S = 2500, v = 4e3, w = performance.now(), N = (s) => {
3188
+ const $ = (s - w) * v / S, g = bt(($ - 2900) / 850), B = Math.floor($ / 340);
3189
+ i.globalAlpha = 1, i.fillStyle = $ < 650 || $ >= 1600 ? "#101216" : "#fafafa", i.fillRect(0, 0, h, m);
3190
+ for (const k of _) {
3191
+ const H = k.x * h, j = k.y * m, D = k.width * h, Z = k.height * m, X = k.size * ($ < 650 ? 1.6 : $ < 1600 ? 1.15 : 1), Y = X * 1.04;
3192
+ i.save(), i.globalAlpha = 1 - g, i.fillStyle = k.dark ? "#101216" : "#f4f5f7", i.fillRect(H, j, D, Z), i.beginPath(), i.rect(H, j, D, Z), i.clip(), i.font = X + "px sans-serif", i.textBaseline = "top";
3193
+ let W = H, O = j - ($ * 0.012 + k.phase) % Y;
3194
+ const K = k.text.split(" ");
3195
+ for (let ne = 0; ne < K.length; ne++) {
3196
+ const se = K[ne], R = i.measureText(se + " ").width;
3197
+ if (W + R > H + D && (W = H, O += Y), O > j + Z) break;
3198
+ const I = k.index * 53 + ne * 17;
3199
+ i.save();
3200
+ const p = Math.round((O - 7) / 14), A = 7 + Math.round((W - 7) / 14) * 14 + p % 2 * 7, u = 7 + p * 14;
3201
+ if (i.translate(W + (A - W) * g, O + (u - O) * g), i.scale(1 - g * 0.94, 1 - g * 0.94), $ < 650 && (I + B) % 4 > 0) {
3202
+ i.restore(), W += R;
3268
3203
  continue;
3269
3204
  }
3270
- (H + B) % 8 < 3 ? (r.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(H + B) % 3], r.fillRect(0, 0, r.measureText(se).width, X), r.fillStyle = (H + B) % 3 === 0 ? "#fff" : "#101216") : r.fillStyle = w.dark ? "#f5f8ff" : "#101216", r.fillText(k < 650 ? se.toUpperCase() : se, 0, 0), r.restore(), V += q;
3205
+ (I + B) % 8 < 3 ? (i.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(I + B) % 3], i.fillRect(0, 0, i.measureText(se).width, Y), i.fillStyle = (I + B) % 3 === 0 ? "#fff" : "#101216") : i.fillStyle = k.dark ? "#f5f8ff" : "#101216", i.fillText($ < 650 ? se.toUpperCase() : se, 0, 0), i.restore(), W += R;
3271
3206
  }
3272
- r.restore();
3207
+ i.restore();
3273
3208
  }
3274
3209
  if (g > 0) {
3275
- const w = document.querySelector(".rp-hero"), E = w?.getBoundingClientRect().height || m, O = r.createLinearGradient(0, 0, 0, E);
3276
- for (const [R, W] of [
3210
+ const k = document.querySelector(".rp-hero"), H = k?.getBoundingClientRect().height || m, j = i.createLinearGradient(0, 0, 0, H);
3211
+ for (const [D, Z] of [
3277
3212
  [0, "#0b205e"],
3278
3213
  [0.35, "#214eaf"],
3279
3214
  [0.55, "#3564cc"],
@@ -3281,29 +3216,29 @@ function Or({
3281
3216
  [0.93, "#edf4ff"],
3282
3217
  [1, "#fff"]
3283
3218
  ])
3284
- O.addColorStop(R, W);
3285
- r.globalAlpha = g, r.fillStyle = O, r.fillRect(0, 0, h, m);
3286
- for (let R = 7, W = 0; R < m; R += 14, W++)
3287
- for (let z = 7 + W % 2 * 7; z < h; z += 14) {
3288
- const X = Math.pow(Math.max(0, 1 - R / E), 0.6), V = 1 - Math.exp(
3289
- -Math.pow((z - h / 2) / (h * 0.28), 2) - Math.pow((R - E * 0.38) / (E * 0.24), 2)
3219
+ j.addColorStop(D, Z);
3220
+ i.globalAlpha = g, i.fillStyle = j, i.fillRect(0, 0, h, m);
3221
+ for (let D = 7, Z = 0; D < m; D += 14, Z++)
3222
+ for (let X = 7 + Z % 2 * 7; X < h; X += 14) {
3223
+ const Y = Math.pow(Math.max(0, 1 - D / H), 0.6), W = 1 - Math.exp(
3224
+ -Math.pow((X - h / 2) / (h * 0.28), 2) - Math.pow((D - H * 0.38) / (H * 0.24), 2)
3290
3225
  ) * 0.55;
3291
- r.globalAlpha = g * 0.54 * X * V, r.strokeStyle = "#f5f8ff", r.lineWidth = 1.2, r.beginPath(), r.moveTo(z - 3.5, R), r.lineTo(z + 3.5, R), r.moveTo(z, R - 3.5), r.lineTo(z, R + 3.5), r.stroke();
3226
+ i.globalAlpha = g * 0.54 * Y * W, i.strokeStyle = "#f5f8ff", i.lineWidth = 1.2, i.beginPath(), i.moveTo(X - 3.5, D), i.lineTo(X + 3.5, D), i.moveTo(X, D - 3.5), i.lineTo(X, D + 3.5), i.stroke();
3292
3227
  }
3293
3228
  }
3294
- r.globalAlpha = 1, o.style.opacity = String(1 - bt((k - 3750) / 250)), k < v ? C = requestAnimationFrame(_) : t();
3229
+ i.globalAlpha = 1, l.style.opacity = String(1 - bt(($ - 3750) / 250)), $ < v ? C = requestAnimationFrame(N) : t();
3295
3230
  };
3296
- C = requestAnimationFrame(_);
3297
- const N = setTimeout(t, A + 300), T = () => {
3231
+ C = requestAnimationFrame(N);
3232
+ const b = setTimeout(t, S + 300), P = () => {
3298
3233
  d.matches && t();
3299
3234
  };
3300
- return addEventListener("resize", $), d.addEventListener("change", T), () => {
3301
- cancelAnimationFrame(C), clearTimeout(N), removeEventListener("resize", $), d.removeEventListener("change", T);
3235
+ return addEventListener("resize", x), d.addEventListener("change", P), () => {
3236
+ cancelAnimationFrame(C), clearTimeout(b), removeEventListener("resize", x), d.removeEventListener("change", P);
3302
3237
  };
3303
- }, [t, i]), /* @__PURE__ */ e(
3238
+ }, [t, r]), /* @__PURE__ */ e(
3304
3239
  "canvas",
3305
3240
  {
3306
- ref: l,
3241
+ ref: o,
3307
3242
  "aria-hidden": "true",
3308
3243
  style: {
3309
3244
  position: "fixed",
@@ -3316,64 +3251,64 @@ function Or({
3316
3251
  }
3317
3252
  );
3318
3253
  }
3319
- const Un = {
3254
+ const On = {
3320
3255
  "rp-effect-card": "rp_EffectCard-module_rp-effect-card_hcD4035l",
3321
3256
  "rp-effect-content": "rp_EffectCard-module_rp-effect-content_4Oy-i-OP"
3322
- }, nt = { ...et, ...Un };
3323
- function zn({
3257
+ }, nt = { ...et, ...On };
3258
+ function Un({
3324
3259
  className: t = "",
3325
3260
  children: n,
3326
- contentHTML: i,
3327
- ...l
3261
+ contentHTML: r,
3262
+ ...o
3328
3263
  }) {
3329
3264
  return /* @__PURE__ */ a(
3330
3265
  "div",
3331
3266
  {
3332
3267
  className: nt["rp-card"] + " " + nt["rp-effect-card"] + " " + t,
3333
- ...l,
3268
+ ...o,
3334
3269
  children: [
3335
- /* @__PURE__ */ e(In, {}),
3336
- i === void 0 ? n : /* @__PURE__ */ e(
3270
+ /* @__PURE__ */ e(Pn, {}),
3271
+ r === void 0 ? n : /* @__PURE__ */ e(
3337
3272
  "div",
3338
3273
  {
3339
3274
  className: nt["rp-effect-content"],
3340
- dangerouslySetInnerHTML: { __html: i }
3275
+ dangerouslySetInnerHTML: { __html: r }
3341
3276
  }
3342
3277
  )
3343
3278
  ]
3344
3279
  }
3345
3280
  );
3346
3281
  }
3347
- function Ur(t = Math.random() * 4294967295) {
3282
+ function Dr(t = Math.random() * 4294967295) {
3348
3283
  let n = t >>> 0;
3349
- const i = () => {
3284
+ const r = () => {
3350
3285
  n += 1831565813;
3351
- let r = Math.imul(n ^ n >>> 15, n | 1);
3352
- return r ^= r + Math.imul(r ^ r >>> 7, r | 61), ((r ^ r >>> 14) >>> 0) / 4294967296;
3353
- }, l = (r, d) => r + i() * (d - r), o = Math.floor(i() * 3);
3286
+ let i = Math.imul(n ^ n >>> 15, n | 1);
3287
+ return i ^= i + Math.imul(i ^ i >>> 7, i | 61), ((i ^ i >>> 14) >>> 0) / 4294967296;
3288
+ }, o = (i, d) => i + r() * (d - i), l = Math.floor(r() * 3);
3354
3289
  return {
3355
3290
  seed: t,
3356
- family: o,
3357
- arms: Math.floor(l(3, 8)),
3358
- rotation: l(0, Math.PI * 2),
3359
- curl: o === 0 ? l(9e-3, 0.018) : l(1e-3, 6e-3),
3360
- direction: i() < 0.5 ? -1 : 1,
3361
- speed: l(500, 640),
3362
- width: l(36, 52),
3363
- lobes: o === 1 ? l(0.18, 0.28) : l(0.06, 0.14),
3364
- decay: l(0.8, 1.1),
3365
- strength: l(26, 36),
3366
- spacing: l(210, 270),
3367
- phase: l(0, Math.PI * 2)
3291
+ family: l,
3292
+ arms: Math.floor(o(3, 8)),
3293
+ rotation: o(0, Math.PI * 2),
3294
+ curl: l === 0 ? o(9e-3, 0.018) : o(1e-3, 6e-3),
3295
+ direction: r() < 0.5 ? -1 : 1,
3296
+ speed: o(500, 640),
3297
+ width: o(36, 52),
3298
+ lobes: l === 1 ? o(0.18, 0.28) : o(0.06, 0.14),
3299
+ decay: o(0.8, 1.1),
3300
+ strength: o(26, 36),
3301
+ spacing: o(210, 270),
3302
+ phase: o(0, Math.PI * 2)
3368
3303
  };
3369
3304
  }
3370
- function zr(t, n, i, l) {
3371
- if (l < 0) return { x: 0, y: 0, energy: 0 };
3372
- const o = Math.hypot(n, i), r = Math.atan2(i, n), d = r * t.arms + t.rotation, h = d - o * t.curl * t.direction, m = Math.exp(-l * t.decay) * Math.min(1, l / 0.08), C = l * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(r * (t.arms + 3) + t.phase)), $ = (o - C) / t.width, b = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1, A = Math.exp(-$ * $) * m * b, v = Math.pow(Math.max(0, Math.cos(h)), 8), f = Math.exp(-Math.pow((o - C * 0.6) / 95, 2)) * v * m, _ = Math.exp(-o * o / 14e3) * Math.max(0, 1 - l / 0.6), N = A * t.strength + f * 22 + _ * 8, T = f * 18 * Math.sin(h) * t.direction;
3305
+ function Or(t, n, r, o) {
3306
+ if (o < 0) return { x: 0, y: 0, energy: 0 };
3307
+ const l = Math.hypot(n, r), i = Math.atan2(r, n), d = i * t.arms + t.rotation, h = d - l * t.curl * t.direction, m = Math.exp(-o * t.decay) * Math.min(1, o / 0.08), C = o * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(i * (t.arms + 3) + t.phase)), x = (l - C) / t.width, _ = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1, S = Math.exp(-x * x) * m * _, v = Math.pow(Math.max(0, Math.cos(h)), 8), w = Math.exp(-Math.pow((l - C * 0.6) / 95, 2)) * v * m, N = Math.exp(-l * l / 14e3) * Math.max(0, 1 - o / 0.6), b = S * t.strength + w * 22 + N * 8, P = w * 18 * Math.sin(h) * t.direction;
3373
3308
  return {
3374
- x: (n * N - i * T) / Math.max(1, o),
3375
- y: (i * N + n * T) / Math.max(1, o),
3376
- energy: A * 0.55 + f * 0.8 + _ * 0.3
3309
+ x: (n * b - r * P) / Math.max(1, l),
3310
+ y: (r * b + n * P) / Math.max(1, l),
3311
+ energy: S * 0.55 + w * 0.8 + N * 0.3
3377
3312
  };
3378
3313
  }
3379
3314
  const Ie = {
@@ -3385,11 +3320,11 @@ const Ie = {
3385
3320
  "rp-alert-dialog__action": "rp_AlertDialog-module_rp-alert-dialog__action_1Axjzt0X",
3386
3321
  "rp-alert-dialog__cancel": "rp_AlertDialog-module_rp-alert-dialog__cancel_BkaoYoMJ",
3387
3322
  "rp-alert-dialog__footer": "rp_AlertDialog-module_rp-alert-dialog__footer_7cTm367U"
3388
- }, yt = (t) => /* @__PURE__ */ e(de.Root, { ...t }), $t = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3323
+ }, yt = (t) => /* @__PURE__ */ e(de.Root, { ...t }), $t = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3389
3324
  de.Trigger,
3390
3325
  {
3391
- ref: i,
3392
- className: Z(
3326
+ ref: r,
3327
+ className: J(
3393
3328
  !n.asChild && Ie["rp-alert-dialog__trigger"],
3394
3329
  t
3395
3330
  ),
@@ -3397,47 +3332,47 @@ const Ie = {
3397
3332
  }
3398
3333
  ));
3399
3334
  $t.displayName = de.Trigger.displayName;
3400
- const Gn = de.Portal, xt = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3335
+ const zn = de.Portal, xt = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3401
3336
  de.Overlay,
3402
3337
  {
3403
- ref: i,
3404
- className: Z(Ie["rp-alert-dialog__overlay"], t),
3338
+ ref: r,
3339
+ className: J(Ie["rp-alert-dialog__overlay"], t),
3405
3340
  ...n
3406
3341
  }
3407
3342
  ));
3408
3343
  xt.displayName = de.Overlay.displayName;
3409
- const Ct = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3344
+ const Ct = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3410
3345
  de.Content,
3411
3346
  {
3412
- ref: i,
3413
- className: Z(Ie["rp-alert-dialog__content"], t),
3347
+ ref: r,
3348
+ className: J(Ie["rp-alert-dialog__content"], t),
3414
3349
  ...n
3415
3350
  }
3416
3351
  ));
3417
3352
  Ct.displayName = de.Content.displayName;
3418
- const At = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3353
+ const At = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3419
3354
  de.Title,
3420
3355
  {
3421
- ref: i,
3422
- className: Z(Ie["rp-alert-dialog__title"], t),
3356
+ ref: r,
3357
+ className: J(Ie["rp-alert-dialog__title"], t),
3423
3358
  ...n
3424
3359
  }
3425
3360
  ));
3426
3361
  At.displayName = de.Title.displayName;
3427
- const Lt = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3362
+ const Lt = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3428
3363
  de.Description,
3429
3364
  {
3430
- ref: i,
3431
- className: Z(Ie["rp-alert-dialog__description"], t),
3365
+ ref: r,
3366
+ className: J(Ie["rp-alert-dialog__description"], t),
3432
3367
  ...n
3433
3368
  }
3434
3369
  ));
3435
3370
  Lt.displayName = de.Description.displayName;
3436
- const St = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3371
+ const St = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3437
3372
  de.Action,
3438
3373
  {
3439
- ref: i,
3440
- className: Z(
3374
+ ref: r,
3375
+ className: J(
3441
3376
  !n.asChild && Ie["rp-alert-dialog__action"],
3442
3377
  t
3443
3378
  ),
@@ -3445,11 +3380,11 @@ const St = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3445
3380
  }
3446
3381
  ));
3447
3382
  St.displayName = de.Action.displayName;
3448
- const Bt = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3383
+ const Bt = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3449
3384
  de.Cancel,
3450
3385
  {
3451
- ref: i,
3452
- className: Z(
3386
+ ref: r,
3387
+ className: J(
3453
3388
  !n.asChild && Ie["rp-alert-dialog__cancel"],
3454
3389
  t
3455
3390
  ),
@@ -3457,93 +3392,93 @@ const Bt = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3457
3392
  }
3458
3393
  ));
3459
3394
  Bt.displayName = de.Cancel.displayName;
3460
- const Xn = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3395
+ const Gn = Pe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
3461
3396
  "div",
3462
3397
  {
3463
- ref: i,
3464
- className: Z(Ie["rp-alert-dialog__footer"], t),
3398
+ ref: r,
3399
+ className: J(Ie["rp-alert-dialog__footer"], t),
3465
3400
  ...n
3466
3401
  }
3467
- )), Gr = Object.assign(yt, {
3402
+ )), Ur = Object.assign(yt, {
3468
3403
  Root: yt,
3469
3404
  Trigger: $t,
3470
- Portal: Gn,
3405
+ Portal: zn,
3471
3406
  Overlay: xt,
3472
3407
  Content: Ct,
3473
3408
  Title: At,
3474
3409
  Description: Lt,
3475
3410
  Action: St,
3476
3411
  Cancel: Bt,
3477
- Footer: Xn
3478
- }), Yn = "rp_AuthCard-module_card_3af6mRI1", jn = "rp_AuthCard-module_header_WB-cRppT", Wn = "rp_AuthCard-module_title_b2lbN-iF", Vn = "rp_AuthCard-module_description_zPbJJzv5", Kn = "rp_AuthCard-module_providers_Lr2Os9jM", Jn = "rp_AuthCard-module_providerButton_ibhdV26C", Zn = "rp_AuthCard-module_providerIcon_Uj09QL-n", Qn = "rp_AuthCard-module_keyForm_0VG0GeLp", er = "rp_AuthCard-module_divider_r-wmQ2Yq", tr = "rp_AuthCard-module_keyInputRow_n4XX9BYm", ar = "rp_AuthCard-module_keyInput_rzjbrJea", nr = "rp_AuthCard-module_footer_51y8yr80", _e = {
3479
- card: Yn,
3480
- header: jn,
3481
- title: Wn,
3482
- description: Vn,
3483
- providers: Kn,
3484
- providerButton: Jn,
3485
- providerIcon: Zn,
3486
- keyForm: Qn,
3487
- divider: er,
3488
- keyInputRow: tr,
3489
- keyInput: ar,
3490
- footer: nr
3491
- }, Xr = ({
3412
+ Footer: Gn
3413
+ }), Xn = "rp_AuthCard-module_card_3af6mRI1", Yn = "rp_AuthCard-module_header_WB-cRppT", jn = "rp_AuthCard-module_title_b2lbN-iF", Wn = "rp_AuthCard-module_description_zPbJJzv5", Vn = "rp_AuthCard-module_providers_Lr2Os9jM", Kn = "rp_AuthCard-module_providerButton_ibhdV26C", Jn = "rp_AuthCard-module_providerIcon_Uj09QL-n", Zn = "rp_AuthCard-module_keyForm_0VG0GeLp", Qn = "rp_AuthCard-module_divider_r-wmQ2Yq", er = "rp_AuthCard-module_keyInputRow_n4XX9BYm", tr = "rp_AuthCard-module_keyInput_rzjbrJea", ar = "rp_AuthCard-module_footer_51y8yr80", _e = {
3414
+ card: Xn,
3415
+ header: Yn,
3416
+ title: jn,
3417
+ description: Wn,
3418
+ providers: Vn,
3419
+ providerButton: Kn,
3420
+ providerIcon: Jn,
3421
+ keyForm: Zn,
3422
+ divider: Qn,
3423
+ keyInputRow: er,
3424
+ keyInput: tr,
3425
+ footer: ar
3426
+ }, zr = ({
3492
3427
  title: t = "Sign in to RouterPlus",
3493
3428
  description: n = "Access models and manage your account",
3494
- providers: i = [],
3495
- apiKeyLabel: l = "Or continue with API key",
3496
- apiKeyPlaceholder: o = "Enter your rp_live_... API key",
3497
- onApiKeySubmit: r,
3429
+ providers: r = [],
3430
+ apiKeyLabel: o = "Or continue with API key",
3431
+ apiKeyPlaceholder: l = "Enter your rp_live_... API key",
3432
+ onApiKeySubmit: i,
3498
3433
  footer: d,
3499
3434
  className: h
3500
3435
  }) => {
3501
- const [m, C] = Be(""), $ = (b) => {
3502
- b.preventDefault(), m.trim() && r?.(m.trim());
3436
+ const [m, C] = Be(""), x = (_) => {
3437
+ _.preventDefault(), m.trim() && i?.(m.trim());
3503
3438
  };
3504
- return /* @__PURE__ */ a(zn, { className: Z(_e.card, h), children: [
3439
+ return /* @__PURE__ */ a(Un, { className: J(_e.card, h), children: [
3505
3440
  /* @__PURE__ */ a("div", { className: _e.header, children: [
3506
3441
  /* @__PURE__ */ e("h1", { className: _e.title, children: t }),
3507
3442
  n && /* @__PURE__ */ e("p", { className: _e.description, children: n })
3508
3443
  ] }),
3509
- i.length > 0 && /* @__PURE__ */ e("div", { className: _e.providers, children: i.map((b) => /* @__PURE__ */ a(
3510
- G,
3444
+ r.length > 0 && /* @__PURE__ */ e("div", { className: _e.providers, children: r.map((_) => /* @__PURE__ */ a(
3445
+ U,
3511
3446
  {
3512
3447
  className: _e.providerButton,
3513
3448
  variant: "outline",
3514
- href: b.href,
3515
- onClick: b.onClick,
3449
+ href: _.href,
3450
+ onClick: _.onClick,
3516
3451
  children: [
3517
- b.icon && /* @__PURE__ */ e("span", { className: _e.providerIcon, "aria-hidden": "true", children: b.icon }),
3518
- /* @__PURE__ */ e("span", { children: b.name })
3452
+ _.icon && /* @__PURE__ */ e("span", { className: _e.providerIcon, "aria-hidden": "true", children: _.icon }),
3453
+ /* @__PURE__ */ e("span", { children: _.name })
3519
3454
  ]
3520
3455
  },
3521
- b.id
3456
+ _.id
3522
3457
  )) }),
3523
- r && /* @__PURE__ */ a("form", { className: _e.keyForm, onSubmit: $, children: [
3524
- /* @__PURE__ */ e("div", { className: _e.divider, children: /* @__PURE__ */ e("span", { children: l }) }),
3458
+ i && /* @__PURE__ */ a("form", { className: _e.keyForm, onSubmit: x, children: [
3459
+ /* @__PURE__ */ e("div", { className: _e.divider, children: /* @__PURE__ */ e("span", { children: o }) }),
3525
3460
  /* @__PURE__ */ a("div", { className: _e.keyInputRow, children: [
3526
3461
  /* @__PURE__ */ e(
3527
3462
  Qe,
3528
3463
  {
3529
3464
  type: "password",
3530
- placeholder: o,
3465
+ placeholder: l,
3531
3466
  value: m,
3532
- onChange: (b) => C(b.target.value),
3467
+ onChange: (_) => C(_.target.value),
3533
3468
  className: _e.keyInput
3534
3469
  }
3535
3470
  ),
3536
- /* @__PURE__ */ e(G, { variant: "primary", type: "submit", disabled: !m.trim(), children: "Continue" })
3471
+ /* @__PURE__ */ e(U, { variant: "primary", type: "submit", disabled: !m.trim(), children: "Continue" })
3537
3472
  ] })
3538
3473
  ] }),
3539
3474
  d && /* @__PURE__ */ e("div", { className: _e.footer, children: d })
3540
3475
  ] });
3541
- }, rr = "rp_Footer-module_footer_hxH87TcN", ir = "rp_Footer-module_nav_nBjfaMF3", sr = "rp_Footer-module_link_8Rd1iGUN", or = "rp_Footer-module_copyright_MOU-OKDL", Ze = {
3542
- footer: rr,
3543
- nav: ir,
3544
- link: sr,
3545
- copyright: or
3546
- }, Yr = ({
3476
+ }, nr = "rp_Footer-module_footer_hxH87TcN", rr = "rp_Footer-module_nav_nBjfaMF3", ir = "rp_Footer-module_link_8Rd1iGUN", sr = "rp_Footer-module_copyright_MOU-OKDL", Ze = {
3477
+ footer: nr,
3478
+ nav: rr,
3479
+ link: ir,
3480
+ copyright: sr
3481
+ }, Gr = ({
3547
3482
  logoHref: t = "/",
3548
3483
  links: n = [
3549
3484
  { label: "Sign in", href: "/auth" },
@@ -3556,60 +3491,60 @@ const Xn = Pe(({ className: t, ...n }, i) => /* @__PURE__ */ e(
3556
3491
  rel: "noopener noreferrer"
3557
3492
  }
3558
3493
  ],
3559
- copyright: i,
3560
- className: l
3561
- }) => /* @__PURE__ */ a("footer", { className: Z(Ze.footer, l), children: [
3494
+ copyright: r,
3495
+ className: o
3496
+ }) => /* @__PURE__ */ a("footer", { className: J(Ze.footer, o), children: [
3562
3497
  /* @__PURE__ */ e(_t, { href: t, footer: !0 }),
3563
- /* @__PURE__ */ e("nav", { className: Ze.nav, "aria-label": "Footer navigation", children: n.map((o) => /* @__PURE__ */ e(
3498
+ /* @__PURE__ */ e("nav", { className: Ze.nav, "aria-label": "Footer navigation", children: n.map((l) => /* @__PURE__ */ e(
3564
3499
  "a",
3565
3500
  {
3566
- href: o.href,
3567
- target: o.target,
3568
- rel: o.rel,
3501
+ href: l.href,
3502
+ target: l.target,
3503
+ rel: l.rel,
3569
3504
  className: Ze.link,
3570
- children: o.label
3505
+ children: l.label
3571
3506
  },
3572
- o.label
3507
+ l.label
3573
3508
  )) }),
3574
- i && /* @__PURE__ */ e("div", { className: Ze.copyright, children: i })
3575
- ] }), lr = "rp_Header-module_header_Turig8tF", cr = "rp_Header-module_lead_0DaE0r8e", dr = "rp_Header-module_logo_mtMWQXw6", hr = "rp_Header-module_center_q6eURj1J", pr = "rp_Header-module_tools_H6sckGtR", ze = {
3509
+ r && /* @__PURE__ */ e("div", { className: Ze.copyright, children: r })
3510
+ ] }), lr = "rp_Header-module_header_Turig8tF", or = "rp_Header-module_lead_0DaE0r8e", cr = "rp_Header-module_logo_mtMWQXw6", dr = "rp_Header-module_center_q6eURj1J", hr = "rp_Header-module_tools_H6sckGtR", ze = {
3576
3511
  header: lr,
3577
- lead: cr,
3578
- logo: dr,
3579
- center: hr,
3580
- tools: pr
3581
- }, ur = [
3512
+ lead: or,
3513
+ logo: cr,
3514
+ center: dr,
3515
+ tools: hr
3516
+ }, pr = [
3582
3517
  { value: "en", label: "English" },
3583
3518
  { value: "de", label: "Deutsch" },
3584
3519
  { value: "es", label: "Español" },
3585
3520
  { value: "fr", label: "Français" },
3586
3521
  { value: "ru", label: "Русский" }
3587
3522
  ];
3588
- function jr({
3523
+ function Xr({
3589
3524
  dark: t = !1,
3590
3525
  onThemeChange: n,
3591
- language: i = "en",
3592
- languages: l = ur,
3593
- onLanguageChange: o,
3594
- left: r,
3526
+ language: r = "en",
3527
+ languages: o = pr,
3528
+ onLanguageChange: l,
3529
+ left: i,
3595
3530
  afterLogo: d,
3596
3531
  center: h,
3597
3532
  right: m,
3598
3533
  action: C,
3599
- surface: $ = "hero",
3600
- href: b = "/en"
3534
+ surface: x = "hero",
3535
+ href: _ = "/en"
3601
3536
  }) {
3602
- const A = m === void 0 ? C : m;
3537
+ const S = m === void 0 ? C : m;
3603
3538
  return /* @__PURE__ */ a(
3604
3539
  "header",
3605
3540
  {
3606
3541
  className: ze.header,
3607
3542
  "data-theme": t ? "dark" : "light",
3608
- "data-surface": $,
3543
+ "data-surface": x,
3609
3544
  children: [
3610
3545
  /* @__PURE__ */ a("div", { className: ze.lead, children: [
3611
- r,
3612
- /* @__PURE__ */ e(_t, { className: ze.logo, href: b }),
3546
+ i,
3547
+ /* @__PURE__ */ e(_t, { className: ze.logo, href: _ }),
3613
3548
  d
3614
3549
  ] }),
3615
3550
  h !== void 0 && h !== !1 && /* @__PURE__ */ e("div", { className: ze.center, children: h }),
@@ -3622,82 +3557,82 @@ function jr({
3622
3557
  triggerContent: /* @__PURE__ */ e(na, { size: 18, "aria-hidden": "true" }),
3623
3558
  popupAlign: "end",
3624
3559
  popupTheme: t ? "dark" : "light",
3625
- options: l,
3626
- value: i,
3627
- onValueChange: (v) => o?.(v),
3628
- ariaLabel: `Change language: ${l.find((v) => v.value === i)?.label ?? i}`
3560
+ options: o,
3561
+ value: r,
3562
+ onValueChange: (v) => l?.(v),
3563
+ ariaLabel: `Change language: ${o.find((v) => v.value === r)?.label ?? r}`
3629
3564
  }
3630
3565
  ),
3631
- A === void 0 ? /* @__PURE__ */ e(G, { variant: "primary", href: "/en/auth", children: "API Key" }) : A
3566
+ S === void 0 ? /* @__PURE__ */ e(U, { variant: "primary", href: "/en/auth", children: "API Key" }) : S
3632
3567
  ] })
3633
3568
  ]
3634
3569
  }
3635
3570
  );
3636
3571
  }
3637
3572
  export {
3638
- Gr as AlertDialog,
3573
+ Ur as AlertDialog,
3639
3574
  St as AlertDialogAction,
3640
3575
  Bt as AlertDialogCancel,
3641
3576
  Ct as AlertDialogContent,
3642
3577
  Lt as AlertDialogDescription,
3643
- Xn as AlertDialogFooter,
3578
+ Gn as AlertDialogFooter,
3644
3579
  xt as AlertDialogOverlay,
3645
- Gn as AlertDialogPortal,
3580
+ zn as AlertDialogPortal,
3646
3581
  yt as AlertDialogRoot,
3647
3582
  At as AlertDialogTitle,
3648
3583
  $t as AlertDialogTrigger,
3649
- Xr as AuthCard,
3650
- Er as BackgroundCursor,
3651
- In as BackgroundDotted,
3652
- Hr as BackgroundLineField,
3653
- Pr as BackgroundPlus,
3654
- Dr as BackgroundSquare,
3655
- Ar as BarChart,
3656
- Cr as Billing,
3657
- Or as BrandIntro,
3658
- yr as CustomerDashboard,
3659
- zn as EffectCard,
3660
- Yr as Footer,
3661
- jr as Header,
3662
- Lr as Heatmap,
3663
- Sr as MetricStrip,
3664
- Br as Panel,
3665
- Ir as PlusField,
3666
- Mr as Provider,
3667
- $r as ProviderLogo,
3668
- Rr as Ranking,
3669
- Tr as RequestTable,
3584
+ zr as AuthCard,
3585
+ Pn as BackgroundDotted,
3586
+ Ir as BackgroundLineField,
3587
+ Fr as BackgroundPlus,
3588
+ Er as BackgroundSquare,
3589
+ Cr as BarChart,
3590
+ xr as Billing,
3591
+ Hr as BrandIntro,
3592
+ br as CustomerDashboard,
3593
+ Un as EffectCard,
3594
+ Gr as Footer,
3595
+ Xr as Header,
3596
+ Ar as Heatmap,
3597
+ Lr as MetricStrip,
3598
+ Wr as MonthlySubscription,
3599
+ Sr as Panel,
3600
+ Pr as PlusField,
3601
+ kr as Provider,
3602
+ Mr as ProviderLogo,
3603
+ Br as Ranking,
3604
+ Rr as RequestTable,
3670
3605
  ce as RouterPlusGlyph,
3671
- wr as RouterPlusHarnessMapping,
3606
+ Nr as RouterPlusHarnessMapping,
3672
3607
  je as RouterPlusIcon,
3673
- Nr as RouterPlusProviderList,
3674
- _r as RouterPlusShell,
3675
- kr as RouterPlusUsageSummary,
3676
- qr as SessionShape,
3677
- Kr as Shop,
3678
- Jr as ShopAccountCard,
3679
- Zr as ShopCard,
3680
- Qr as SideNavigation,
3681
- ei as SideNavigationBrand,
3682
- ti as SideNavigationEmpty,
3683
- ai as SideNavigationFooter,
3684
- ni as SideNavigationHeader,
3685
- ri as SideNavigationItem,
3686
- ii as SideNavigationScroll,
3687
- si as SideNavigationSection,
3688
- oi as SideNavigationStatus,
3608
+ _r as RouterPlusProviderList,
3609
+ yr as RouterPlusShell,
3610
+ wr as RouterPlusUsageSummary,
3611
+ Tr as SessionShape,
3612
+ Vr as Shop,
3613
+ Kr as ShopAccountCard,
3614
+ Jr as ShopCard,
3615
+ Zr as SideNavigation,
3616
+ Qr as SideNavigationBrand,
3617
+ ei as SideNavigationEmpty,
3618
+ ti as SideNavigationFooter,
3619
+ ai as SideNavigationHeader,
3620
+ ni as SideNavigationItem,
3621
+ ri as SideNavigationScroll,
3622
+ ii as SideNavigationSection,
3623
+ si as SideNavigationStatus,
3689
3624
  li as SideNavigationSubItem,
3690
- ci as SideNavigationSubNav,
3691
- di as SideNavigationToggle,
3692
- hi as Support,
3693
- pi as SupportDialog,
3694
- Fr as UsageList,
3695
- xr as flagForRegion,
3696
- Ur as generateBlast,
3697
- ui as glyphs,
3698
- mi as icons,
3625
+ oi as SideNavigationSubNav,
3626
+ ci as SideNavigationToggle,
3627
+ di as Support,
3628
+ hi as SupportDialog,
3629
+ qr as UsageList,
3630
+ $r as flagForRegion,
3631
+ Dr as generateBlast,
3632
+ pi as glyphs,
3633
+ ui as icons,
3699
3634
  mn as regionForLocale,
3700
3635
  Rt as routerPlusLogo,
3701
- zr as sampleBlast,
3702
- gi as useThemeTransition
3636
+ Or as sampleBlast,
3637
+ mi as useThemeTransition
3703
3638
  };