@plusrouter/ui 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { w as
|
|
3
|
-
import { M as
|
|
4
|
-
import
|
|
5
|
-
import * as
|
|
6
|
-
import
|
|
7
|
-
import { Globe as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
+
import { w as ut, u as ct, B as W, I as ot, R as ue, a as at, r as jt, b as He, L as ft, c as bt, d as Wt, P as Vt, e as Kt, E as Jt, C as Zt, f as Qt, g as ea, S as ta, h as aa, i as na, j as ra, k as ia, l as sa, m as oa, n as la, o as ca, p as da, q as ha, s as pa, t as Bt, T as ma, v as ua } from "./SideNavigation-uaK5wkfX.js";
|
|
3
|
+
import { M as ci, x as di, y as hi, z as pi, A as mi, D as ui, F as gi, G as fi, H as bi, J as vi, K as yi, N as _i, O as Ni, Q as wi, U as Mi, V as ki, W as $i, X as xi, Y as Ci, Z as Ai, _ as Li } from "./SideNavigation-uaK5wkfX.js";
|
|
4
|
+
import Rt, { useId as tt, useState as Ie, useEffect as Ce, useContext as ga, createContext as fa, useMemo as rt, Fragment as ba, useRef as Be, forwardRef as Ue } from "react";
|
|
5
|
+
import * as ge from "@radix-ui/react-alert-dialog";
|
|
6
|
+
import re from "clsx";
|
|
7
|
+
import { Globe as va } from "lucide-react";
|
|
8
|
+
const $e = { ...ct, ...ut };
|
|
9
|
+
function Fr({
|
|
10
10
|
languageControl: t
|
|
11
11
|
} = {}) {
|
|
12
12
|
return /* @__PURE__ */ a("div", { className: "customer-incumbent", style: { display: "contents" }, children: [
|
|
@@ -14,7 +14,7 @@ function Er({
|
|
|
14
14
|
/* @__PURE__ */ e("link", { rel: "stylesheet", href: "/issued-key-modal.css" }),
|
|
15
15
|
`
|
|
16
16
|
`,
|
|
17
|
-
/* @__PURE__ */ a("aside", { className: `${
|
|
17
|
+
/* @__PURE__ */ a("aside", { className: `${$e.sidebar}`, children: [
|
|
18
18
|
/* @__PURE__ */ a("div", { className: "sidebar-account", children: [
|
|
19
19
|
/* @__PURE__ */ a("div", { className: "account-top", children: [
|
|
20
20
|
/* @__PURE__ */ e(W, { id: "account-name", "data-topup": !0, children: "Your account" }),
|
|
@@ -157,9 +157,9 @@ function Er({
|
|
|
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(W, { id: "hero-key", className: `${
|
|
160
|
+
/* @__PURE__ */ e(W, { id: "hero-key", className: `${$e.primary}`, children: "Generate API key" })
|
|
161
161
|
] }),
|
|
162
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
162
|
+
/* @__PURE__ */ a("div", { className: `${$e.panel} key-panel`, children: [
|
|
163
163
|
/* @__PURE__ */ a("div", { className: "key-row key-labels", children: [
|
|
164
164
|
/* @__PURE__ */ e("span", { children: "Name" }),
|
|
165
165
|
/* @__PURE__ */ e("span", { children: "Key" }),
|
|
@@ -197,7 +197,7 @@ function Er({
|
|
|
197
197
|
W,
|
|
198
198
|
{
|
|
199
199
|
id: "create-anonymous-key",
|
|
200
|
-
className: `${
|
|
200
|
+
className: `${$e.primary}`,
|
|
201
201
|
children: "Generate key"
|
|
202
202
|
}
|
|
203
203
|
),
|
|
@@ -210,7 +210,7 @@ function Er({
|
|
|
210
210
|
/* @__PURE__ */ e("h2", { children: "Already have a key?" }),
|
|
211
211
|
/* @__PURE__ */ e("form", { id: "account-form", children: /* @__PURE__ */ a("div", { className: "entry", children: [
|
|
212
212
|
/* @__PURE__ */ e(
|
|
213
|
-
|
|
213
|
+
ot,
|
|
214
214
|
{
|
|
215
215
|
id: "api-key",
|
|
216
216
|
name: "api_key",
|
|
@@ -231,7 +231,7 @@ function Er({
|
|
|
231
231
|
`
|
|
232
232
|
`,
|
|
233
233
|
/* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Connection settings" }) }),
|
|
234
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
234
|
+
/* @__PURE__ */ a("div", { className: `${$e.panel} settings-list`, children: [
|
|
235
235
|
/* @__PURE__ */ a("div", { className: "setting-row", children: [
|
|
236
236
|
/* @__PURE__ */ a("div", { children: [
|
|
237
237
|
/* @__PURE__ */ e("h3", { children: "Base URL" }),
|
|
@@ -275,7 +275,7 @@ function Er({
|
|
|
275
275
|
/* @__PURE__ */ e("h2", { children: "Recent requests" }),
|
|
276
276
|
/* @__PURE__ */ e("span", { children: "Request activity" })
|
|
277
277
|
] }),
|
|
278
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
278
|
+
/* @__PURE__ */ a("div", { className: `${$e.panel} log-panel`, children: [
|
|
279
279
|
/* @__PURE__ */ a("div", { className: "log-head", children: [
|
|
280
280
|
/* @__PURE__ */ e("span", { children: "Time" }),
|
|
281
281
|
/* @__PURE__ */ e("span", { children: "Model" }),
|
|
@@ -283,7 +283,7 @@ function Er({
|
|
|
283
283
|
/* @__PURE__ */ e("span", { children: "Duration" }),
|
|
284
284
|
/* @__PURE__ */ e("span", { children: "Status" })
|
|
285
285
|
] }),
|
|
286
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
286
|
+
/* @__PURE__ */ a("div", { className: `${$e["empty-state"]}`, children: [
|
|
287
287
|
/* @__PURE__ */ e("h3", { children: "Request logs aren’t available yet" }),
|
|
288
288
|
/* @__PURE__ */ e("p", { children: "Your account’s request history will appear here when logging is connected." }),
|
|
289
289
|
/* @__PURE__ */ e("a", { href: "/docs", children: "View API documentation ↗" })
|
|
@@ -297,7 +297,7 @@ function Er({
|
|
|
297
297
|
/* @__PURE__ */ e("h2", { children: "Your access" }),
|
|
298
298
|
/* @__PURE__ */ e(W, { "data-topup": !0, children: "Manage subscription" })
|
|
299
299
|
] }),
|
|
300
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
300
|
+
/* @__PURE__ */ e("div", { className: `${$e.panel} settings-list`, children: /* @__PURE__ */ a("div", { className: "setting-row", children: [
|
|
301
301
|
/* @__PURE__ */ a("div", { children: [
|
|
302
302
|
/* @__PURE__ */ e("h3", { id: "current-plan", children: "No account connected" }),
|
|
303
303
|
/* @__PURE__ */ e("p", { id: "current-expiry", children: "Connect your key to view your access." })
|
|
@@ -308,7 +308,7 @@ function Er({
|
|
|
308
308
|
/* @__PURE__ */ e("h2", { children: "Choose a plan" }),
|
|
309
309
|
/* @__PURE__ */ e("span", { children: "No payment fee" })
|
|
310
310
|
] }),
|
|
311
|
-
/* @__PURE__ */ e("div", { className: `${
|
|
311
|
+
/* @__PURE__ */ e("div", { className: `${$e.panel}`, id: "plans-list", children: /* @__PURE__ */ e("p", { className: "loading-note", children: "Loading plans…" }) }),
|
|
312
312
|
/* @__PURE__ */ e("p", { id: "plans-status", role: "status" }),
|
|
313
313
|
/* @__PURE__ */ a("section", { id: "catalog", "aria-label": "Available models", children: [
|
|
314
314
|
/* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Included models" }) }),
|
|
@@ -316,7 +316,7 @@ function Er({
|
|
|
316
316
|
/* @__PURE__ */ e("ul", { id: "catalog-items" })
|
|
317
317
|
] }),
|
|
318
318
|
/* @__PURE__ */ e("div", { className: "section-heading", children: /* @__PURE__ */ e("h2", { children: "Latest payment" }) }),
|
|
319
|
-
/* @__PURE__ */ a("div", { className: `${
|
|
319
|
+
/* @__PURE__ */ a("div", { className: `${$e.panel} payment-summary`, children: [
|
|
320
320
|
/* @__PURE__ */ e("span", { id: "latest-payment", children: "Connect your account to view payments." }),
|
|
321
321
|
/* @__PURE__ */ e(W, { "data-topup": !0, children: "View invoice" })
|
|
322
322
|
] })
|
|
@@ -353,7 +353,7 @@ function Er({
|
|
|
353
353
|
/* @__PURE__ */ a("div", { className: "balance-amount", children: [
|
|
354
354
|
/* @__PURE__ */ e("span", { children: "$" }),
|
|
355
355
|
/* @__PURE__ */ e(
|
|
356
|
-
|
|
356
|
+
ot,
|
|
357
357
|
{
|
|
358
358
|
id: "preview-amount",
|
|
359
359
|
type: "number",
|
|
@@ -381,7 +381,7 @@ function Er({
|
|
|
381
381
|
}
|
|
382
382
|
),
|
|
383
383
|
/* @__PURE__ */ a("div", { className: "balance-preview-footer", children: [
|
|
384
|
-
/* @__PURE__ */ a(W, { id: "preview-connect", className: `${
|
|
384
|
+
/* @__PURE__ */ a(W, { id: "preview-connect", className: `${$e.primary}`, children: [
|
|
385
385
|
"Connect API key ",
|
|
386
386
|
/* @__PURE__ */ e("span", { children: "→" })
|
|
387
387
|
] }),
|
|
@@ -480,7 +480,7 @@ function Er({
|
|
|
480
480
|
W,
|
|
481
481
|
{
|
|
482
482
|
id: "pay",
|
|
483
|
-
className: `${
|
|
483
|
+
className: `${$e.primary}`,
|
|
484
484
|
type: "submit",
|
|
485
485
|
children: "Create invoice"
|
|
486
486
|
}
|
|
@@ -650,7 +650,7 @@ function Er({
|
|
|
650
650
|
/* @__PURE__ */ a("label", { children: [
|
|
651
651
|
"Subject",
|
|
652
652
|
/* @__PURE__ */ e(
|
|
653
|
-
|
|
653
|
+
ot,
|
|
654
654
|
{
|
|
655
655
|
id: "ticket-subject",
|
|
656
656
|
required: !0,
|
|
@@ -684,19 +684,19 @@ function Er({
|
|
|
684
684
|
`
|
|
685
685
|
] });
|
|
686
686
|
}
|
|
687
|
-
const c = { ...
|
|
687
|
+
const c = { ...ct, ...ut }, vt = [
|
|
688
688
|
["agents", "Agents", "terminal"],
|
|
689
689
|
["sessions", "Sessions", "screen"],
|
|
690
690
|
["library", "Library", "library"],
|
|
691
691
|
["connection", "Connection", "key"],
|
|
692
692
|
["balance", "Balance", "wallet"],
|
|
693
693
|
["usage", "Usage", "chart"]
|
|
694
|
-
],
|
|
695
|
-
function
|
|
694
|
+
], Ft = fa(null), ya = ["Overview", "Requests", "Sessions", "Context"];
|
|
695
|
+
function _a({
|
|
696
696
|
children: t,
|
|
697
697
|
onClick: n,
|
|
698
698
|
primary: r = !1,
|
|
699
|
-
label:
|
|
699
|
+
label: o
|
|
700
700
|
}) {
|
|
701
701
|
return /* @__PURE__ */ e(
|
|
702
702
|
"button",
|
|
@@ -705,83 +705,83 @@ function $a({
|
|
|
705
705
|
className: `${c.text}${r ? " primary" : ""}`,
|
|
706
706
|
onClick: n,
|
|
707
707
|
disabled: !n,
|
|
708
|
-
"aria-label":
|
|
708
|
+
"aria-label": o,
|
|
709
709
|
children: t
|
|
710
710
|
}
|
|
711
711
|
);
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function We({
|
|
714
714
|
status: t,
|
|
715
715
|
error: n,
|
|
716
716
|
onRetry: r,
|
|
717
|
-
loading:
|
|
717
|
+
loading: o,
|
|
718
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
|
-
r && /* @__PURE__ */ e(
|
|
723
|
-
] }) : /* @__PURE__ */ e("div", { className: `${c["empty-state"]}`, role: "status", children: t === "loading" ?
|
|
722
|
+
r && /* @__PURE__ */ e(_a, { onClick: r, children: "Try again" })
|
|
723
|
+
] }) : /* @__PURE__ */ e("div", { className: `${c["empty-state"]}`, role: "status", children: t === "loading" ? o : l });
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Tr({
|
|
726
726
|
page: t,
|
|
727
727
|
theme: n,
|
|
728
728
|
children: r,
|
|
729
|
-
onNavigate:
|
|
729
|
+
onNavigate: o,
|
|
730
730
|
onRefresh: l,
|
|
731
731
|
refreshing: i = !1,
|
|
732
732
|
usageSection: d = "Overview",
|
|
733
|
-
usageSections: h =
|
|
734
|
-
onUsageSectionChange:
|
|
735
|
-
notice:
|
|
736
|
-
headerActions:
|
|
737
|
-
sidebarFooter:
|
|
738
|
-
beforeContent:
|
|
733
|
+
usageSections: h = ya,
|
|
734
|
+
onUsageSectionChange: g,
|
|
735
|
+
notice: $,
|
|
736
|
+
headerActions: x,
|
|
737
|
+
sidebarFooter: k,
|
|
738
|
+
beforeContent: S
|
|
739
739
|
}) {
|
|
740
|
-
const [
|
|
740
|
+
const [M, b] = Ie(
|
|
741
741
|
() => typeof matchMedia < "u" && matchMedia(
|
|
742
742
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
743
743
|
).matches
|
|
744
744
|
);
|
|
745
745
|
Ce(() => {
|
|
746
|
-
const
|
|
746
|
+
const F = matchMedia(
|
|
747
747
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
748
|
-
),
|
|
749
|
-
return
|
|
748
|
+
), B = () => b(F.matches);
|
|
749
|
+
return F.addEventListener("change", B), () => F.removeEventListener("change", B);
|
|
750
750
|
}, []);
|
|
751
|
-
const
|
|
752
|
-
/* @__PURE__ */ e("span", { className: `${c.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src:
|
|
751
|
+
const _ = t === "settings" ? "Settings" : vt.find(([F]) => F === t)[1], f = ["agents", "sessions", "library"].includes(t) ? "Work" : ["usage", "balance"].includes(t) ? "Insights" : "Models", E = t === "connection" ? "providers" : t, s = /* @__PURE__ */ a("div", { className: `${c.brand}`, children: [
|
|
752
|
+
/* @__PURE__ */ e("span", { className: `${c.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src: jt, width: "22", height: "22", alt: "" }) }),
|
|
753
753
|
/* @__PURE__ */ e("span", { children: "RouterPlus" })
|
|
754
|
-
] }),
|
|
754
|
+
] }), N = /* @__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: () =>
|
|
761
|
+
onClick: () => o?.("settings"),
|
|
762
762
|
children: [
|
|
763
|
-
/* @__PURE__ */ e(
|
|
763
|
+
/* @__PURE__ */ e(ue, { name: "settings" }),
|
|
764
764
|
/* @__PURE__ */ e("span", { className: `${c["side-l"]}`, children: "Settings" })
|
|
765
765
|
]
|
|
766
766
|
}
|
|
767
767
|
), C = /* @__PURE__ */ a(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
771
|
-
id:
|
|
772
|
-
ref: (
|
|
773
|
-
if (!
|
|
774
|
-
const
|
|
775
|
-
const
|
|
776
|
-
|
|
770
|
+
className: M ? c.segs : c["nav-sub"],
|
|
771
|
+
id: M ? "usageTab" : void 0,
|
|
772
|
+
ref: (F) => {
|
|
773
|
+
if (!F || !M) return;
|
|
774
|
+
const B = () => {
|
|
775
|
+
const H = F.querySelector("button.on"), ae = F.querySelector(".thumb");
|
|
776
|
+
H && ae && (ae.style.width = H.offsetWidth + "px", ae.style.transform = `translateX(${H.offsetLeft}px)`);
|
|
777
777
|
};
|
|
778
|
-
|
|
778
|
+
B(), document.fonts.ready.then(B);
|
|
779
779
|
},
|
|
780
780
|
role: "group",
|
|
781
781
|
"aria-label": "Usage section",
|
|
782
782
|
children: [
|
|
783
|
-
|
|
784
|
-
!
|
|
783
|
+
M && /* @__PURE__ */ e("span", { className: `${c.thumb}` }),
|
|
784
|
+
!M && /* @__PURE__ */ e(
|
|
785
785
|
"span",
|
|
786
786
|
{
|
|
787
787
|
className: `${c["nav-hl"]} ${c.still}`,
|
|
@@ -790,16 +790,16 @@ function Hr({
|
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
),
|
|
793
|
-
h.map((
|
|
793
|
+
h.map((F) => /* @__PURE__ */ e(
|
|
794
794
|
"button",
|
|
795
795
|
{
|
|
796
|
-
className:
|
|
796
|
+
className: M ? `opt${d === F ? c.on : ""}` : `nav-s${d === F ? c.cur : ""}`,
|
|
797
797
|
type: "button",
|
|
798
|
-
"aria-pressed": d ===
|
|
799
|
-
onClick: () =>
|
|
800
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
798
|
+
"aria-pressed": d === F,
|
|
799
|
+
onClick: () => g?.(F),
|
|
800
|
+
children: /* @__PURE__ */ e("span", { children: F })
|
|
801
801
|
},
|
|
802
|
-
|
|
802
|
+
F
|
|
803
803
|
))
|
|
804
804
|
]
|
|
805
805
|
}
|
|
@@ -808,51 +808,51 @@ function Hr({
|
|
|
808
808
|
"div",
|
|
809
809
|
{
|
|
810
810
|
"data-theme": n,
|
|
811
|
-
className: `mp-ui ${c["mp-ui"]} ${c.window} ${c.web}${
|
|
811
|
+
className: `mp-ui ${c["mp-ui"]} ${c.window} ${c.web}${M ? "" : " side-nav"}`,
|
|
812
812
|
children: [
|
|
813
|
-
!
|
|
814
|
-
/* @__PURE__ */ e("div", { className: `${c["side-top"]}`, children:
|
|
813
|
+
!M && /* @__PURE__ */ a("aside", { className: `${c.sidebar}`, id: "side", children: [
|
|
814
|
+
/* @__PURE__ */ e("div", { className: `${c["side-top"]}`, children: s }),
|
|
815
815
|
/* @__PURE__ */ e("div", { className: `${c["side-scroll"]}`, children: /* @__PURE__ */ e(
|
|
816
816
|
"nav",
|
|
817
817
|
{
|
|
818
818
|
className: `${c.seg}`,
|
|
819
819
|
id: "nav",
|
|
820
820
|
"aria-label": "Main navigation",
|
|
821
|
-
children:
|
|
821
|
+
children: vt.map(([F, B, H]) => /* @__PURE__ */ a(Rt.Fragment, { children: [
|
|
822
822
|
/* @__PURE__ */ a(
|
|
823
823
|
"button",
|
|
824
824
|
{
|
|
825
825
|
type: "button",
|
|
826
|
-
"data-view":
|
|
827
|
-
className: t ===
|
|
828
|
-
"aria-current": t ===
|
|
829
|
-
onClick: () =>
|
|
826
|
+
"data-view": F === "connection" ? "providers" : F,
|
|
827
|
+
className: t === F ? c.on : "",
|
|
828
|
+
"aria-current": t === F ? "page" : void 0,
|
|
829
|
+
onClick: () => o?.(F),
|
|
830
830
|
children: [
|
|
831
|
-
/* @__PURE__ */ e(
|
|
832
|
-
/* @__PURE__ */ e("span", { children:
|
|
831
|
+
/* @__PURE__ */ e(ue, { name: H }),
|
|
832
|
+
/* @__PURE__ */ e("span", { children: B })
|
|
833
833
|
]
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
|
-
|
|
837
|
-
] },
|
|
836
|
+
F === "usage" && t === "usage" && C
|
|
837
|
+
] }, F))
|
|
838
838
|
}
|
|
839
839
|
) }),
|
|
840
840
|
/* @__PURE__ */ a("div", { className: `${c["side-foot"]}`, children: [
|
|
841
|
-
|
|
842
|
-
|
|
841
|
+
N,
|
|
842
|
+
k
|
|
843
843
|
] })
|
|
844
844
|
] }),
|
|
845
845
|
/* @__PURE__ */ a("header", { className: `${c.top}`, children: [
|
|
846
|
-
|
|
847
|
-
/* @__PURE__ */ e("h1", { className: `${c["sr-only"]}`, children:
|
|
848
|
-
!
|
|
849
|
-
/* @__PURE__ */ e("span", { children:
|
|
846
|
+
M && s,
|
|
847
|
+
/* @__PURE__ */ e("h1", { className: `${c["sr-only"]}`, children: _ }),
|
|
848
|
+
!M && /* @__PURE__ */ a("div", { className: `${c.crumb}`, "aria-hidden": "true", children: [
|
|
849
|
+
/* @__PURE__ */ e("span", { children: f }),
|
|
850
850
|
/* @__PURE__ */ e("i", { children: "/" }),
|
|
851
|
-
t === "usage" ? /* @__PURE__ */ a(
|
|
851
|
+
t === "usage" ? /* @__PURE__ */ a(Oe, { 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: _ })
|
|
856
856
|
] }),
|
|
857
857
|
/* @__PURE__ */ a("div", { className: `${c.actions}`, children: [
|
|
858
858
|
/* @__PURE__ */ e(
|
|
@@ -864,44 +864,44 @@ function Hr({
|
|
|
864
864
|
"aria-label": "Refresh",
|
|
865
865
|
disabled: i,
|
|
866
866
|
onClick: l,
|
|
867
|
-
children: /* @__PURE__ */ e(
|
|
867
|
+
children: /* @__PURE__ */ e(ue, { name: "refresh" })
|
|
868
868
|
}
|
|
869
869
|
),
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
x,
|
|
871
|
+
M && N
|
|
872
872
|
] })
|
|
873
873
|
] }),
|
|
874
|
-
/* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${
|
|
875
|
-
|
|
876
|
-
/* @__PURE__ */ e(
|
|
874
|
+
/* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${E}`, children: [
|
|
875
|
+
S,
|
|
876
|
+
/* @__PURE__ */ e(Ft.Provider, { value: t === "usage" && M ? C : null, children: r })
|
|
877
877
|
] }),
|
|
878
|
-
|
|
878
|
+
$ && /* @__PURE__ */ e("footer", { className: `${c["mp-notice"]}`, children: $ })
|
|
879
879
|
]
|
|
880
880
|
}
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function qr({
|
|
884
884
|
groups: t,
|
|
885
885
|
query: n,
|
|
886
886
|
onQueryChange: r,
|
|
887
|
-
onSelect:
|
|
887
|
+
onSelect: o,
|
|
888
888
|
onImport: l,
|
|
889
889
|
onCustomProvider: i,
|
|
890
890
|
onPlugins: d,
|
|
891
891
|
hasProviders: h = !1,
|
|
892
|
-
status:
|
|
893
|
-
error:
|
|
894
|
-
onRetry:
|
|
892
|
+
status: g = "ready",
|
|
893
|
+
error: $,
|
|
894
|
+
onRetry: x
|
|
895
895
|
}) {
|
|
896
|
-
const
|
|
897
|
-
...
|
|
898
|
-
providers:
|
|
899
|
-
(
|
|
900
|
-
(
|
|
896
|
+
const k = tt(), S = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), M = t.map((b) => ({
|
|
897
|
+
...b,
|
|
898
|
+
providers: b.providers.filter(
|
|
899
|
+
(_) => S.every(
|
|
900
|
+
(f) => `${_.name} ${_.detail ?? ""} ${b.title} ${b.hint ?? ""}`.toLocaleLowerCase().includes(f)
|
|
901
901
|
)
|
|
902
902
|
)
|
|
903
|
-
})).filter((
|
|
904
|
-
return /* @__PURE__ */ a(
|
|
903
|
+
})).filter((b) => b.providers.length);
|
|
904
|
+
return /* @__PURE__ */ a(Oe, { 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(
|
|
907
907
|
"section",
|
|
@@ -909,23 +909,23 @@ function Dr({
|
|
|
909
909
|
className: `${c.sheet}`,
|
|
910
910
|
id: "addSheet",
|
|
911
911
|
"aria-label": "Providers",
|
|
912
|
-
"aria-busy":
|
|
912
|
+
"aria-busy": g === "loading",
|
|
913
913
|
children: [
|
|
914
914
|
/* @__PURE__ */ a("div", { className: `${c["row-head"]}`, children: [
|
|
915
|
-
/* @__PURE__ */ e("label", { className: `${c.label}`, htmlFor:
|
|
915
|
+
/* @__PURE__ */ e("label", { className: `${c.label}`, htmlFor: k, 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:
|
|
921
|
+
id: k,
|
|
922
922
|
type: "text",
|
|
923
923
|
"aria-label": "Find a vendor",
|
|
924
924
|
placeholder: "Find a vendor…",
|
|
925
925
|
value: n,
|
|
926
|
-
onChange: (
|
|
927
|
-
onKeyDown: (
|
|
928
|
-
|
|
926
|
+
onChange: (b) => r(b.target.value),
|
|
927
|
+
onKeyDown: (b) => {
|
|
928
|
+
b.key === "Escape" && r("");
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
),
|
|
@@ -939,58 +939,58 @@ function Dr({
|
|
|
939
939
|
}
|
|
940
940
|
)
|
|
941
941
|
] }),
|
|
942
|
-
|
|
943
|
-
|
|
942
|
+
g !== "ready" ? /* @__PURE__ */ e(
|
|
943
|
+
We,
|
|
944
944
|
{
|
|
945
|
-
status:
|
|
946
|
-
error:
|
|
947
|
-
onRetry:
|
|
945
|
+
status: g,
|
|
946
|
+
error: $,
|
|
947
|
+
onRetry: x,
|
|
948
948
|
loading: "Loading providers…"
|
|
949
949
|
}
|
|
950
950
|
) : /* @__PURE__ */ a("div", { className: "tiles", children: [
|
|
951
|
-
|
|
952
|
-
|
|
951
|
+
M.length === 0 && /* @__PURE__ */ e(
|
|
952
|
+
We,
|
|
953
953
|
{
|
|
954
954
|
loading: "",
|
|
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
|
-
|
|
958
|
+
M.map((b) => /* @__PURE__ */ a(Rt.Fragment, { children: [
|
|
959
959
|
/* @__PURE__ */ a("div", { className: `${c.kind}`, children: [
|
|
960
|
-
/* @__PURE__ */ e("b", { children:
|
|
961
|
-
|
|
960
|
+
/* @__PURE__ */ e("b", { children: b.title }),
|
|
961
|
+
b.hint && /* @__PURE__ */ e("span", { children: b.hint })
|
|
962
962
|
] }),
|
|
963
963
|
/* @__PURE__ */ a("div", { className: `${c.grid}`, children: [
|
|
964
|
-
|
|
964
|
+
b.providers.map((_) => /* @__PURE__ */ a(
|
|
965
965
|
"button",
|
|
966
966
|
{
|
|
967
967
|
type: "button",
|
|
968
968
|
className: `${c.tile}`,
|
|
969
|
-
disabled:
|
|
970
|
-
onClick: () =>
|
|
971
|
-
title:
|
|
969
|
+
disabled: _.disabled,
|
|
970
|
+
onClick: () => o?.(_),
|
|
971
|
+
title: _.detail || _.name,
|
|
972
972
|
children: [
|
|
973
|
-
/* @__PURE__ */ e(
|
|
974
|
-
/* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children:
|
|
973
|
+
/* @__PURE__ */ e(at, { name: _.icon }),
|
|
974
|
+
/* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: _.name }) })
|
|
975
975
|
]
|
|
976
976
|
},
|
|
977
|
-
|
|
977
|
+
_.id
|
|
978
978
|
)),
|
|
979
|
-
|
|
979
|
+
b.id === "subscriptions" && !n.trim() && /* @__PURE__ */ a(
|
|
980
980
|
"button",
|
|
981
981
|
{
|
|
982
982
|
type: "button",
|
|
983
983
|
className: `${c.tile} ${c["more-plugins"]}`,
|
|
984
984
|
onClick: d,
|
|
985
985
|
children: [
|
|
986
|
-
/* @__PURE__ */ e("span", { className: `${c.puzzle}`, children: /* @__PURE__ */ e(
|
|
986
|
+
/* @__PURE__ */ e("span", { className: `${c.puzzle}`, children: /* @__PURE__ */ e(ue, { name: "plugin" }) }),
|
|
987
987
|
/* @__PURE__ */ e("span", { className: `${c.nm}`, children: /* @__PURE__ */ e("span", { className: `${c.n}`, children: "More in Plugins" }) }),
|
|
988
|
-
/* @__PURE__ */ e(
|
|
988
|
+
/* @__PURE__ */ e(ue, { name: "chevron" })
|
|
989
989
|
]
|
|
990
990
|
}
|
|
991
991
|
)
|
|
992
992
|
] })
|
|
993
|
-
] },
|
|
993
|
+
] }, b.id)),
|
|
994
994
|
!n.trim() && /* @__PURE__ */ a("div", { className: `${c["custom-foot"]}`, children: [
|
|
995
995
|
/* @__PURE__ */ a(
|
|
996
996
|
"button",
|
|
@@ -999,7 +999,7 @@ function Dr({
|
|
|
999
999
|
className: `${c.custom}`,
|
|
1000
1000
|
onClick: i,
|
|
1001
1001
|
children: [
|
|
1002
|
-
/* @__PURE__ */ e(
|
|
1002
|
+
/* @__PURE__ */ e(ue, { name: "plus" }),
|
|
1003
1003
|
/* @__PURE__ */ e("span", { children: "Custom provider" })
|
|
1004
1004
|
]
|
|
1005
1005
|
}
|
|
@@ -1012,27 +1012,27 @@ function Dr({
|
|
|
1012
1012
|
)
|
|
1013
1013
|
] });
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Pr({
|
|
1016
1016
|
agents: t,
|
|
1017
1017
|
endpoint: n,
|
|
1018
1018
|
onCopyEndpoint: r,
|
|
1019
|
-
onOpenConnection:
|
|
1019
|
+
onOpenConnection: o,
|
|
1020
1020
|
onToggle: l,
|
|
1021
1021
|
onMappingChange: i,
|
|
1022
1022
|
showGuide: d = !0,
|
|
1023
1023
|
onDismissGuide: h,
|
|
1024
|
-
connectionReady:
|
|
1025
|
-
onSaveProfile:
|
|
1026
|
-
profileLabel:
|
|
1027
|
-
onManage:
|
|
1028
|
-
onInstall:
|
|
1029
|
-
installCount:
|
|
1030
|
-
status:
|
|
1031
|
-
error:
|
|
1032
|
-
onRetry:
|
|
1024
|
+
connectionReady: g = !1,
|
|
1025
|
+
onSaveProfile: $,
|
|
1026
|
+
profileLabel: x = "none yet · save the setup to switch back in one click",
|
|
1027
|
+
onManage: k,
|
|
1028
|
+
onInstall: S,
|
|
1029
|
+
installCount: M,
|
|
1030
|
+
status: b = "ready",
|
|
1031
|
+
error: _,
|
|
1032
|
+
onRetry: f
|
|
1033
1033
|
}) {
|
|
1034
|
-
const
|
|
1035
|
-
return /* @__PURE__ */ a(
|
|
1034
|
+
const E = Number(g) + Number(t.some((s) => s.state === "connected"));
|
|
1035
|
+
return /* @__PURE__ */ a(Oe, { children: [
|
|
1036
1036
|
/* @__PURE__ */ a("div", { className: `${c["row-head"]}`, children: [
|
|
1037
1037
|
/* @__PURE__ */ a(
|
|
1038
1038
|
"button",
|
|
@@ -1041,7 +1041,7 @@ function Or({
|
|
|
1041
1041
|
type: "button",
|
|
1042
1042
|
"aria-expanded": !1,
|
|
1043
1043
|
children: [
|
|
1044
|
-
/* @__PURE__ */ e(
|
|
1044
|
+
/* @__PURE__ */ e(ue, { name: "chevron" }),
|
|
1045
1045
|
/* @__PURE__ */ e("span", { className: `${c.label}`, children: "Connect" })
|
|
1046
1046
|
]
|
|
1047
1047
|
}
|
|
@@ -1061,7 +1061,7 @@ function Or({
|
|
|
1061
1061
|
className: `${c.copy}`,
|
|
1062
1062
|
"aria-label": "Copy endpoint",
|
|
1063
1063
|
onClick: r,
|
|
1064
|
-
children: /* @__PURE__ */ e(
|
|
1064
|
+
children: /* @__PURE__ */ e(ue, { name: "copy" })
|
|
1065
1065
|
}
|
|
1066
1066
|
)
|
|
1067
1067
|
]
|
|
@@ -1070,27 +1070,27 @@ function Or({
|
|
|
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
|
{
|
|
1077
1077
|
type: "button",
|
|
1078
1078
|
id: "save",
|
|
1079
1079
|
className: `${c.text}`,
|
|
1080
|
-
onClick:
|
|
1080
|
+
onClick: $,
|
|
1081
1081
|
children: "+ Save current"
|
|
1082
1082
|
}
|
|
1083
1083
|
)
|
|
1084
1084
|
] }),
|
|
1085
|
-
|
|
1086
|
-
|
|
1085
|
+
b !== "ready" ? /* @__PURE__ */ e(
|
|
1086
|
+
We,
|
|
1087
1087
|
{
|
|
1088
|
-
status:
|
|
1089
|
-
error:
|
|
1090
|
-
onRetry:
|
|
1088
|
+
status: b,
|
|
1089
|
+
error: _,
|
|
1090
|
+
onRetry: f,
|
|
1091
1091
|
loading: "Loading agents…"
|
|
1092
1092
|
}
|
|
1093
|
-
) : /* @__PURE__ */ a(
|
|
1093
|
+
) : /* @__PURE__ */ a(Oe, { children: [
|
|
1094
1094
|
d && /* @__PURE__ */ e("div", { className: `${c["ag-lead"]} ${c.guiding}`, children: /* @__PURE__ */ a(
|
|
1095
1095
|
"section",
|
|
1096
1096
|
{
|
|
@@ -1100,7 +1100,7 @@ function Or({
|
|
|
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
|
-
|
|
1103
|
+
E,
|
|
1104
1104
|
" of 2 done"
|
|
1105
1105
|
] }),
|
|
1106
1106
|
/* @__PURE__ */ e(
|
|
@@ -1110,7 +1110,7 @@ function Or({
|
|
|
1110
1110
|
className: `${c["guide-x"]}`,
|
|
1111
1111
|
"aria-label": "Dismiss setup guide",
|
|
1112
1112
|
onClick: h,
|
|
1113
|
-
children: /* @__PURE__ */ e(
|
|
1113
|
+
children: /* @__PURE__ */ e(ue, { name: "close" })
|
|
1114
1114
|
}
|
|
1115
1115
|
)
|
|
1116
1116
|
] }),
|
|
@@ -1119,13 +1119,13 @@ function Or({
|
|
|
1119
1119
|
/* @__PURE__ */ e("span", { className: `${c["guide-tick"]}`, children: "1" }),
|
|
1120
1120
|
/* @__PURE__ */ a("div", { className: `${c["guide-body"]}`, children: [
|
|
1121
1121
|
/* @__PURE__ */ e("b", { className: `${c["guide-title"]}`, children: "Connect RouterPlus" }),
|
|
1122
|
-
/* @__PURE__ */ e("span", { className: `${c["guide-say"]}`, children:
|
|
1123
|
-
!
|
|
1122
|
+
/* @__PURE__ */ e("span", { className: `${c["guide-say"]}`, children: g ? "RouterPlus connection is ready" : "Save your RouterPlus API key on the Connection page" }),
|
|
1123
|
+
!g && /* @__PURE__ */ e(
|
|
1124
1124
|
"button",
|
|
1125
1125
|
{
|
|
1126
1126
|
type: "button",
|
|
1127
1127
|
className: `${c.text} ${c.primary} guide-go`,
|
|
1128
|
-
onClick:
|
|
1128
|
+
onClick: o,
|
|
1129
1129
|
children: "Open Connection"
|
|
1130
1130
|
}
|
|
1131
1131
|
)
|
|
@@ -1136,22 +1136,22 @@ function Or({
|
|
|
1136
1136
|
/* @__PURE__ */ a("div", { className: `${c["guide-body"]}`, children: [
|
|
1137
1137
|
/* @__PURE__ */ e("b", { className: `${c["guide-title"]}`, children: "Connect an agent" }),
|
|
1138
1138
|
/* @__PURE__ */ e("span", { className: `${c["guide-say"]}`, children: "RouterPlus found these agents. Choose one to connect it:" }),
|
|
1139
|
-
/* @__PURE__ */ e("div", { className: `${c["guide-agents"]}`, children: t.filter((
|
|
1139
|
+
/* @__PURE__ */ e("div", { className: `${c["guide-agents"]}`, children: t.filter((s) => s.state !== "missing").map((s) => /* @__PURE__ */ a(
|
|
1140
1140
|
"button",
|
|
1141
1141
|
{
|
|
1142
1142
|
type: "button",
|
|
1143
1143
|
className: `${c["guide-agent"]}`,
|
|
1144
|
-
disabled: !l || !
|
|
1144
|
+
disabled: !l || !g && s.state === "needs-connection" || s.pending,
|
|
1145
1145
|
onClick: () => l?.(
|
|
1146
|
-
|
|
1147
|
-
|
|
1146
|
+
s.id,
|
|
1147
|
+
s.state !== "connected"
|
|
1148
1148
|
),
|
|
1149
1149
|
children: [
|
|
1150
|
-
/* @__PURE__ */ e(
|
|
1151
|
-
/* @__PURE__ */ e("span", { children:
|
|
1150
|
+
/* @__PURE__ */ e(at, { name: s.icon }),
|
|
1151
|
+
/* @__PURE__ */ e("span", { children: s.name })
|
|
1152
1152
|
]
|
|
1153
1153
|
},
|
|
1154
|
-
|
|
1154
|
+
s.id
|
|
1155
1155
|
)) })
|
|
1156
1156
|
] })
|
|
1157
1157
|
] })
|
|
@@ -1160,97 +1160,97 @@ function Or({
|
|
|
1160
1160
|
}
|
|
1161
1161
|
) }),
|
|
1162
1162
|
t.length === 0 && /* @__PURE__ */ e(
|
|
1163
|
-
|
|
1163
|
+
We,
|
|
1164
1164
|
{
|
|
1165
1165
|
loading: "",
|
|
1166
1166
|
empty: "No agents found. Install an agent to configure its models."
|
|
1167
1167
|
}
|
|
1168
1168
|
),
|
|
1169
1169
|
/* @__PURE__ */ a("div", { className: `${c.list} ${c.extras}`, id: "agents", children: [
|
|
1170
|
-
t.map((
|
|
1170
|
+
t.map((s) => /* @__PURE__ */ a(
|
|
1171
1171
|
"article",
|
|
1172
1172
|
{
|
|
1173
|
-
className: `${c.row} ${c.agent}${
|
|
1174
|
-
"aria-label":
|
|
1175
|
-
"aria-busy":
|
|
1173
|
+
className: `${c.row} ${c.agent}${s.state === "missing" ? " gone" : " conn"}${s.state === "disconnected" ? " unplugged" : ""}`,
|
|
1174
|
+
"aria-label": s.name,
|
|
1175
|
+
"aria-busy": s.pending,
|
|
1176
1176
|
children: [
|
|
1177
1177
|
/* @__PURE__ */ e(
|
|
1178
1178
|
"button",
|
|
1179
1179
|
{
|
|
1180
1180
|
type: "button",
|
|
1181
1181
|
className: `${c["ag-handle"]}`,
|
|
1182
|
-
"aria-label": `Arrange ${
|
|
1183
|
-
children: /* @__PURE__ */ e(
|
|
1182
|
+
"aria-label": `Arrange ${s.name}`,
|
|
1183
|
+
children: /* @__PURE__ */ e(at, { name: s.icon })
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
1186
|
/* @__PURE__ */ a(
|
|
1187
1187
|
"div",
|
|
1188
1188
|
{
|
|
1189
|
-
className: `${c.who}${
|
|
1189
|
+
className: `${c.who}${s.state === "missing" ? "" : " with-models"}`,
|
|
1190
1190
|
children: [
|
|
1191
|
-
/* @__PURE__ */ e("div", { className: `${c.name}`, children:
|
|
1192
|
-
/* @__PURE__ */ e("span", { className: `${c["ag-cli"]}`, children:
|
|
1193
|
-
|
|
1191
|
+
/* @__PURE__ */ e("div", { className: `${c.name}`, children: s.name }),
|
|
1192
|
+
/* @__PURE__ */ e("span", { className: `${c["ag-cli"]}`, children: s.state === "missing" ? /* @__PURE__ */ e("span", { className: `${c["ag-missing"]}`, children: "CLI not found" }) : s.version && /* @__PURE__ */ e("span", { className: `${c["ag-ver"]}`, children: s.version }) }),
|
|
1193
|
+
s.state !== "missing" && /* @__PURE__ */ a(
|
|
1194
1194
|
"div",
|
|
1195
1195
|
{
|
|
1196
|
-
className: `${c["ag-st"]}${
|
|
1196
|
+
className: `${c["ag-st"]}${s.state === "connected" ? " on" : ""}`,
|
|
1197
1197
|
children: [
|
|
1198
1198
|
/* @__PURE__ */ e("span", { className: `${c["ag-dot"]}` }),
|
|
1199
|
-
/* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children:
|
|
1199
|
+
/* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children: s.pending ? "Applying changes…" : s.state === "needs-connection" ? "Save your API key on the Connection page first" : s.state === "connected" ? "Connected" : "Not connected" })
|
|
1200
1200
|
]
|
|
1201
1201
|
}
|
|
1202
1202
|
)
|
|
1203
1203
|
]
|
|
1204
1204
|
}
|
|
1205
1205
|
),
|
|
1206
|
-
|
|
1206
|
+
s.state === "needs-connection" && /* @__PURE__ */ e(
|
|
1207
1207
|
"button",
|
|
1208
1208
|
{
|
|
1209
1209
|
type: "button",
|
|
1210
1210
|
className: `${c["ag-add"]}`,
|
|
1211
|
-
onClick:
|
|
1211
|
+
onClick: o,
|
|
1212
1212
|
children: "Open Connection"
|
|
1213
1213
|
}
|
|
1214
1214
|
),
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
/* @__PURE__ */ e("span", { children:
|
|
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((N) => /* @__PURE__ */ a("label", { className: `${c.field}`, children: [
|
|
1217
|
+
/* @__PURE__ */ e("span", { children: N.label }),
|
|
1218
1218
|
/* @__PURE__ */ e(
|
|
1219
1219
|
"select",
|
|
1220
1220
|
{
|
|
1221
|
-
"aria-label":
|
|
1222
|
-
value:
|
|
1223
|
-
disabled:
|
|
1224
|
-
onChange: (C) => i?.(
|
|
1225
|
-
children:
|
|
1221
|
+
"aria-label": N.label,
|
|
1222
|
+
value: N.value,
|
|
1223
|
+
disabled: N.disabled || s.pending || !i,
|
|
1224
|
+
onChange: (C) => i?.(s.id, N.id, C.target.value),
|
|
1225
|
+
children: N.options.map((C) => /* @__PURE__ */ e("option", { value: C.value, children: C.label }, C.value))
|
|
1226
1226
|
}
|
|
1227
1227
|
)
|
|
1228
|
-
] },
|
|
1229
|
-
|
|
1228
|
+
] }, N.id)),
|
|
1229
|
+
s.state !== "missing" && /* @__PURE__ */ e(
|
|
1230
1230
|
"button",
|
|
1231
1231
|
{
|
|
1232
1232
|
type: "button",
|
|
1233
1233
|
role: "switch",
|
|
1234
|
-
className: `${c["lib-switch"]} ${c["ag-conn"]}${
|
|
1235
|
-
"aria-label": `Connect ${
|
|
1236
|
-
"aria-checked":
|
|
1237
|
-
disabled: !l ||
|
|
1238
|
-
onClick: () => l?.(
|
|
1234
|
+
className: `${c["lib-switch"]} ${c["ag-conn"]}${s.state === "connected" ? " on" : ""}`,
|
|
1235
|
+
"aria-label": `Connect ${s.name}`,
|
|
1236
|
+
"aria-checked": 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
|
)
|
|
1242
1242
|
]
|
|
1243
1243
|
},
|
|
1244
|
-
|
|
1244
|
+
s.id
|
|
1245
1245
|
)),
|
|
1246
1246
|
/* @__PURE__ */ e("div", { className: `${c["ag-manage-bar"]}`, children: /* @__PURE__ */ a(
|
|
1247
1247
|
"button",
|
|
1248
1248
|
{
|
|
1249
1249
|
className: `${c["ag-manage-button"]}`,
|
|
1250
1250
|
type: "button",
|
|
1251
|
-
onClick:
|
|
1251
|
+
onClick: k,
|
|
1252
1252
|
children: [
|
|
1253
|
-
/* @__PURE__ */ e(
|
|
1253
|
+
/* @__PURE__ */ e(ue, { name: "manage" }),
|
|
1254
1254
|
/* @__PURE__ */ e("span", { children: "Manage" })
|
|
1255
1255
|
]
|
|
1256
1256
|
}
|
|
@@ -1261,76 +1261,76 @@ function Or({
|
|
|
1261
1261
|
{
|
|
1262
1262
|
type: "button",
|
|
1263
1263
|
className: `${c["ag-install-head"]}`,
|
|
1264
|
-
onClick:
|
|
1264
|
+
onClick: S,
|
|
1265
1265
|
children: [
|
|
1266
1266
|
/* @__PURE__ */ a("span", { children: [
|
|
1267
1267
|
"Install another agent",
|
|
1268
|
-
|
|
1268
|
+
M !== void 0 ? ` (${M})` : ""
|
|
1269
1269
|
] }),
|
|
1270
|
-
/* @__PURE__ */ e("span", { className: `${c.chev}`, children: /* @__PURE__ */ e(
|
|
1270
|
+
/* @__PURE__ */ e("span", { className: `${c.chev}`, children: /* @__PURE__ */ e(ue, { name: "down" }) })
|
|
1271
1271
|
]
|
|
1272
1272
|
}
|
|
1273
1273
|
) })
|
|
1274
1274
|
] })
|
|
1275
1275
|
] });
|
|
1276
1276
|
}
|
|
1277
|
-
const
|
|
1277
|
+
const yt = [
|
|
1278
1278
|
"Today",
|
|
1279
1279
|
"7 days",
|
|
1280
1280
|
"30 days",
|
|
1281
1281
|
"All",
|
|
1282
1282
|
"Custom"
|
|
1283
1283
|
];
|
|
1284
|
-
function
|
|
1284
|
+
function Ir({
|
|
1285
1285
|
period: t,
|
|
1286
1286
|
onPeriodChange: n,
|
|
1287
1287
|
data: r,
|
|
1288
|
-
onRefresh:
|
|
1288
|
+
onRefresh: o,
|
|
1289
1289
|
refreshInterval: l = "5 s",
|
|
1290
1290
|
onRefreshIntervalChange: i,
|
|
1291
1291
|
customRange: d,
|
|
1292
1292
|
onCustomRangeChange: h,
|
|
1293
|
-
status:
|
|
1294
|
-
error:
|
|
1295
|
-
onRetry:
|
|
1293
|
+
status: g = "ready",
|
|
1294
|
+
error: $,
|
|
1295
|
+
onRetry: x
|
|
1296
1296
|
}) {
|
|
1297
|
-
const
|
|
1297
|
+
const k = ga(Ft), [S, M] = Ie(!1), [b, _] = Ie(!1), f = g === "ready" ? r : null, E = Math.max(
|
|
1298
1298
|
1,
|
|
1299
|
-
...
|
|
1299
|
+
...f?.series.map((s) => s.calls) ?? []
|
|
1300
1300
|
);
|
|
1301
|
-
return /* @__PURE__ */ a(
|
|
1301
|
+
return /* @__PURE__ */ a(Oe, { children: [
|
|
1302
1302
|
/* @__PURE__ */ a("div", { className: `${c["usage-head"]}`, children: [
|
|
1303
|
-
|
|
1303
|
+
k,
|
|
1304
1304
|
/* @__PURE__ */ a(
|
|
1305
1305
|
"div",
|
|
1306
1306
|
{
|
|
1307
1307
|
className: `${c.segs}`,
|
|
1308
1308
|
id: "period",
|
|
1309
|
-
ref: (
|
|
1310
|
-
if (!
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1313
|
-
C.style.width =
|
|
1309
|
+
ref: (s) => {
|
|
1310
|
+
if (!s) return;
|
|
1311
|
+
const N = s.querySelector("button.on"), C = s.querySelector(".thumb");
|
|
1312
|
+
N && C && (C.style.width = N.offsetWidth + "px", C.style.transform = `translateX(${N.offsetLeft}px)`, document.fonts.ready.then(() => {
|
|
1313
|
+
C.style.width = N.offsetWidth + "px", C.style.transform = `translateX(${N.offsetLeft}px)`;
|
|
1314
1314
|
}));
|
|
1315
1315
|
},
|
|
1316
1316
|
role: "group",
|
|
1317
1317
|
"aria-label": "Usage period",
|
|
1318
1318
|
children: [
|
|
1319
1319
|
/* @__PURE__ */ e("span", { className: `${c.thumb}` }),
|
|
1320
|
-
|
|
1320
|
+
yt.map((s) => /* @__PURE__ */ a(
|
|
1321
1321
|
"button",
|
|
1322
1322
|
{
|
|
1323
1323
|
type: "button",
|
|
1324
|
-
className: `${c.opt}${
|
|
1325
|
-
"aria-pressed": t ===
|
|
1324
|
+
className: `${c.opt}${s === "Custom" ? " range-opt" : ""}${t === s ? " on" : ""}`,
|
|
1325
|
+
"aria-pressed": t === s,
|
|
1326
1326
|
disabled: !n,
|
|
1327
|
-
onClick: () => n?.(
|
|
1327
|
+
onClick: () => n?.(s),
|
|
1328
1328
|
children: [
|
|
1329
|
-
|
|
1330
|
-
|
|
1329
|
+
s === "Custom" && /* @__PURE__ */ e(ue, { name: "calendar" }),
|
|
1330
|
+
s
|
|
1331
1331
|
]
|
|
1332
1332
|
},
|
|
1333
|
-
|
|
1333
|
+
s
|
|
1334
1334
|
))
|
|
1335
1335
|
]
|
|
1336
1336
|
}
|
|
@@ -1341,11 +1341,11 @@ function Ur({
|
|
|
1341
1341
|
type: "button",
|
|
1342
1342
|
className: `${c["usage-range-menu"]}`,
|
|
1343
1343
|
"aria-label": "Usage period",
|
|
1344
|
-
"aria-expanded":
|
|
1345
|
-
onClick: () =>
|
|
1344
|
+
"aria-expanded": S,
|
|
1345
|
+
onClick: () => M(!S),
|
|
1346
1346
|
children: [
|
|
1347
1347
|
/* @__PURE__ */ e("span", { children: t }),
|
|
1348
|
-
/* @__PURE__ */ e(
|
|
1348
|
+
/* @__PURE__ */ e(ue, { name: "down" })
|
|
1349
1349
|
]
|
|
1350
1350
|
}
|
|
1351
1351
|
),
|
|
@@ -1357,9 +1357,9 @@ function Ur({
|
|
|
1357
1357
|
type: "button",
|
|
1358
1358
|
className: `${c.icon}`,
|
|
1359
1359
|
"aria-label": "Refresh usage",
|
|
1360
|
-
disabled: !
|
|
1361
|
-
onClick:
|
|
1362
|
-
children: /* @__PURE__ */ e(
|
|
1360
|
+
disabled: !o || g === "loading",
|
|
1361
|
+
onClick: o,
|
|
1362
|
+
children: /* @__PURE__ */ e(ue, { name: "refresh" })
|
|
1363
1363
|
}
|
|
1364
1364
|
),
|
|
1365
1365
|
/* @__PURE__ */ a(
|
|
@@ -1368,17 +1368,17 @@ function Ur({
|
|
|
1368
1368
|
type: "button",
|
|
1369
1369
|
className: `${c["sess-pick"]} ${c.live}`,
|
|
1370
1370
|
"aria-label": "Refresh interval",
|
|
1371
|
-
"aria-expanded":
|
|
1372
|
-
onClick: () =>
|
|
1371
|
+
"aria-expanded": b,
|
|
1372
|
+
onClick: () => _(!b),
|
|
1373
1373
|
children: [
|
|
1374
1374
|
/* @__PURE__ */ e("span", { children: l }),
|
|
1375
|
-
/* @__PURE__ */ e(
|
|
1375
|
+
/* @__PURE__ */ e(ue, { 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:
|
|
1381
|
+
/* @__PURE__ */ e("b", { children: f?.cost ?? "—" }),
|
|
1382
1382
|
/* @__PURE__ */ e("span", { children: "effective prices" })
|
|
1383
1383
|
] })
|
|
1384
1384
|
] }),
|
|
@@ -1392,8 +1392,8 @@ function Ur({
|
|
|
1392
1392
|
value: d?.from ?? "",
|
|
1393
1393
|
max: d?.to || void 0,
|
|
1394
1394
|
disabled: !h,
|
|
1395
|
-
onChange: (
|
|
1396
|
-
from:
|
|
1395
|
+
onChange: (s) => h?.({
|
|
1396
|
+
from: s.target.value,
|
|
1397
1397
|
to: d?.to ?? ""
|
|
1398
1398
|
})
|
|
1399
1399
|
}
|
|
@@ -1408,81 +1408,81 @@ function Ur({
|
|
|
1408
1408
|
value: d?.to ?? "",
|
|
1409
1409
|
min: d?.from || void 0,
|
|
1410
1410
|
disabled: !h,
|
|
1411
|
-
onChange: (
|
|
1411
|
+
onChange: (s) => h?.({
|
|
1412
1412
|
from: d?.from ?? "",
|
|
1413
|
-
to:
|
|
1413
|
+
to: s.target.value
|
|
1414
1414
|
})
|
|
1415
1415
|
}
|
|
1416
1416
|
)
|
|
1417
1417
|
] })
|
|
1418
1418
|
] }),
|
|
1419
|
-
|
|
1419
|
+
S && /* @__PURE__ */ e(
|
|
1420
1420
|
"div",
|
|
1421
1421
|
{
|
|
1422
1422
|
className: `${c.pop}`,
|
|
1423
1423
|
role: "menu",
|
|
1424
1424
|
"aria-label": "Usage period",
|
|
1425
|
-
children:
|
|
1425
|
+
children: yt.map((s) => /* @__PURE__ */ a(
|
|
1426
1426
|
"button",
|
|
1427
1427
|
{
|
|
1428
1428
|
role: "menuitem",
|
|
1429
1429
|
onClick: () => {
|
|
1430
|
-
n?.(
|
|
1430
|
+
n?.(s), M(!1);
|
|
1431
1431
|
},
|
|
1432
1432
|
children: [
|
|
1433
|
-
|
|
1434
|
-
|
|
1433
|
+
s === "Custom" && /* @__PURE__ */ e(ue, { name: "calendar" }),
|
|
1434
|
+
s
|
|
1435
1435
|
]
|
|
1436
1436
|
},
|
|
1437
|
-
|
|
1437
|
+
s
|
|
1438
1438
|
))
|
|
1439
1439
|
}
|
|
1440
1440
|
),
|
|
1441
|
-
|
|
1441
|
+
b && /* @__PURE__ */ e(
|
|
1442
1442
|
"div",
|
|
1443
1443
|
{
|
|
1444
1444
|
className: `${c.pop}`,
|
|
1445
1445
|
role: "menu",
|
|
1446
1446
|
"aria-label": "Refresh interval",
|
|
1447
|
-
children: ["Off", "5 s", "30 s", "1 min"].map((
|
|
1447
|
+
children: ["Off", "5 s", "30 s", "1 min"].map((s) => /* @__PURE__ */ e(
|
|
1448
1448
|
"button",
|
|
1449
1449
|
{
|
|
1450
1450
|
role: "menuitem",
|
|
1451
1451
|
onClick: () => {
|
|
1452
|
-
i?.(
|
|
1452
|
+
i?.(s), _(!1);
|
|
1453
1453
|
},
|
|
1454
|
-
children:
|
|
1454
|
+
children: s
|
|
1455
1455
|
},
|
|
1456
|
-
|
|
1456
|
+
s
|
|
1457
1457
|
))
|
|
1458
1458
|
}
|
|
1459
1459
|
),
|
|
1460
1460
|
/* @__PURE__ */ e("p", { className: `${c["usage-note"]}`, children: "Gateway calls only; session-log calls are in Requests. Local rejections are excluded from totals." }),
|
|
1461
|
-
|
|
1462
|
-
|
|
1461
|
+
g !== "ready" ? /* @__PURE__ */ e(
|
|
1462
|
+
We,
|
|
1463
1463
|
{
|
|
1464
|
-
status:
|
|
1465
|
-
error:
|
|
1466
|
-
onRetry:
|
|
1464
|
+
status: g,
|
|
1465
|
+
error: $,
|
|
1466
|
+
onRetry: x,
|
|
1467
1467
|
loading: "Loading usage…"
|
|
1468
1468
|
}
|
|
1469
|
-
) :
|
|
1469
|
+
) : f ? f.calls === 0 ? /* @__PURE__ */ e("div", { className: `${c.stats} ${c.empty}`, children: /* @__PURE__ */ e(
|
|
1470
1470
|
"div",
|
|
1471
1471
|
{
|
|
1472
1472
|
className: `${c.none}`,
|
|
1473
1473
|
role: "status",
|
|
1474
1474
|
children: `No calls ${t === "Today" ? "today" : "in this period"}. Point an agent at a catalog model and use it; every call through the gateway is counted here.`
|
|
1475
1475
|
}
|
|
1476
|
-
) }) : /* @__PURE__ */ a(
|
|
1476
|
+
) }) : /* @__PURE__ */ a(Oe, { children: [
|
|
1477
1477
|
/* @__PURE__ */ e("dl", { className: "mp-usage-metrics", children: [
|
|
1478
|
-
["Calls",
|
|
1479
|
-
["Errors",
|
|
1480
|
-
["Input tokens",
|
|
1481
|
-
["Output tokens",
|
|
1482
|
-
].map(([
|
|
1483
|
-
/* @__PURE__ */ e("dt", { children:
|
|
1484
|
-
/* @__PURE__ */ e("dd", { children: typeof
|
|
1485
|
-
] },
|
|
1478
|
+
["Calls", f.calls],
|
|
1479
|
+
["Errors", f.errors],
|
|
1480
|
+
["Input tokens", f.input],
|
|
1481
|
+
["Output tokens", f.output]
|
|
1482
|
+
].map(([s, N]) => /* @__PURE__ */ a("div", { children: [
|
|
1483
|
+
/* @__PURE__ */ e("dt", { children: s }),
|
|
1484
|
+
/* @__PURE__ */ e("dd", { children: typeof N == "number" ? N.toLocaleString("en-US") : N })
|
|
1485
|
+
] }, s)) }),
|
|
1486
1486
|
/* @__PURE__ */ a(
|
|
1487
1487
|
"section",
|
|
1488
1488
|
{
|
|
@@ -1490,8 +1490,8 @@ function Ur({
|
|
|
1490
1490
|
"aria-label": "Calls over time",
|
|
1491
1491
|
children: [
|
|
1492
1492
|
/* @__PURE__ */ e("h2", { children: "Calls" }),
|
|
1493
|
-
|
|
1494
|
-
|
|
1493
|
+
f.series.length === 0 ? /* @__PURE__ */ e(
|
|
1494
|
+
We,
|
|
1495
1495
|
{
|
|
1496
1496
|
loading: "",
|
|
1497
1497
|
empty: "No time-series breakdown available."
|
|
@@ -1501,25 +1501,25 @@ function Ur({
|
|
|
1501
1501
|
{
|
|
1502
1502
|
className: "mp-chart-bars",
|
|
1503
1503
|
role: "img",
|
|
1504
|
-
"aria-label":
|
|
1505
|
-
children:
|
|
1504
|
+
"aria-label": f.series.map((s) => `${s.label}: ${s.calls} calls`).join("; "),
|
|
1505
|
+
children: f.series.map((s, N) => /* @__PURE__ */ a(
|
|
1506
1506
|
"div",
|
|
1507
1507
|
{
|
|
1508
1508
|
className: "mp-chart-column",
|
|
1509
1509
|
children: [
|
|
1510
|
-
/* @__PURE__ */ e("span", { children:
|
|
1510
|
+
/* @__PURE__ */ e("span", { children: s.calls }),
|
|
1511
1511
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
1512
1512
|
"i",
|
|
1513
1513
|
{
|
|
1514
1514
|
style: {
|
|
1515
|
-
height: `${Math.max(0,
|
|
1515
|
+
height: `${Math.max(0, s.calls) / E * 100}%`
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
1518
|
) }),
|
|
1519
|
-
/* @__PURE__ */ e("small", { children:
|
|
1519
|
+
/* @__PURE__ */ e("small", { children: s.label })
|
|
1520
1520
|
]
|
|
1521
1521
|
},
|
|
1522
|
-
`${
|
|
1522
|
+
`${s.label}-${N}`
|
|
1523
1523
|
))
|
|
1524
1524
|
}
|
|
1525
1525
|
)
|
|
@@ -1527,7 +1527,7 @@ function Ur({
|
|
|
1527
1527
|
}
|
|
1528
1528
|
)
|
|
1529
1529
|
] }) : /* @__PURE__ */ e(
|
|
1530
|
-
|
|
1530
|
+
We,
|
|
1531
1531
|
{
|
|
1532
1532
|
loading: "",
|
|
1533
1533
|
empty: "Usage is unavailable. Refresh to try again."
|
|
@@ -1535,12 +1535,12 @@ function Ur({
|
|
|
1535
1535
|
)
|
|
1536
1536
|
] });
|
|
1537
1537
|
}
|
|
1538
|
-
const ht = { ...
|
|
1539
|
-
function
|
|
1538
|
+
const ht = { ...ct, ...ut };
|
|
1539
|
+
function Er({
|
|
1540
1540
|
name: t,
|
|
1541
1541
|
icon: n,
|
|
1542
1542
|
detail: r,
|
|
1543
|
-
className:
|
|
1543
|
+
className: o = "",
|
|
1544
1544
|
type: l = "button",
|
|
1545
1545
|
...i
|
|
1546
1546
|
}) {
|
|
@@ -1548,31 +1548,31 @@ function zr({
|
|
|
1548
1548
|
"button",
|
|
1549
1549
|
{
|
|
1550
1550
|
type: l,
|
|
1551
|
-
className: `${ht.tile}${
|
|
1551
|
+
className: `${ht.tile}${o ? ` ${o}` : ""}`,
|
|
1552
1552
|
title: r || t,
|
|
1553
1553
|
...i,
|
|
1554
1554
|
children: [
|
|
1555
|
-
/* @__PURE__ */ e(
|
|
1555
|
+
/* @__PURE__ */ e(at, { name: n }),
|
|
1556
1556
|
/* @__PURE__ */ e("span", { className: ht.nm, children: /* @__PURE__ */ e("span", { className: ht.n, children: t }) })
|
|
1557
1557
|
]
|
|
1558
1558
|
}
|
|
1559
1559
|
);
|
|
1560
1560
|
}
|
|
1561
|
-
const
|
|
1561
|
+
const _t = {
|
|
1562
1562
|
sm: { box: 32, icon: 20, text: 12 },
|
|
1563
1563
|
md: { box: 48, icon: 32, text: 14 },
|
|
1564
1564
|
lg: { box: 72, icon: 48, text: 16 }
|
|
1565
1565
|
};
|
|
1566
|
-
function
|
|
1566
|
+
function Hr({
|
|
1567
1567
|
name: t,
|
|
1568
1568
|
icon: n,
|
|
1569
1569
|
showIcon: r = !0,
|
|
1570
|
-
size:
|
|
1570
|
+
size: o = "md",
|
|
1571
1571
|
className: l = "",
|
|
1572
1572
|
style: i,
|
|
1573
1573
|
...d
|
|
1574
1574
|
}) {
|
|
1575
|
-
const h =
|
|
1575
|
+
const h = _t[o] ?? _t.md, g = {
|
|
1576
1576
|
display: "inline-flex",
|
|
1577
1577
|
alignItems: "center",
|
|
1578
1578
|
gap: 10,
|
|
@@ -1580,13 +1580,13 @@ function Xr({
|
|
|
1580
1580
|
minWidth: 0,
|
|
1581
1581
|
color: "var(--rp-color-text, inherit)",
|
|
1582
1582
|
...i
|
|
1583
|
-
},
|
|
1583
|
+
}, $ = {
|
|
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,73 +1598,73 @@ function Xr({
|
|
|
1598
1598
|
fontSize: h.icon,
|
|
1599
1599
|
lineHeight: 1
|
|
1600
1600
|
};
|
|
1601
|
-
return /* @__PURE__ */ a("span", { className: l, style:
|
|
1602
|
-
r ? /* @__PURE__ */ e("span", { style:
|
|
1603
|
-
t ? /* @__PURE__ */ e("span", { style:
|
|
1601
|
+
return /* @__PURE__ */ a("span", { className: l, style: g, ...d, children: [
|
|
1602
|
+
r ? /* @__PURE__ */ e("span", { style: x, "aria-hidden": t ? !0 : void 0, children: /* @__PURE__ */ e(at, { name: n }) }) : null,
|
|
1603
|
+
t ? /* @__PURE__ */ e("span", { style: $, children: t }) : null
|
|
1604
1604
|
] });
|
|
1605
1605
|
}
|
|
1606
|
-
const
|
|
1607
|
-
billing:
|
|
1608
|
-
inline:
|
|
1609
|
-
body:
|
|
1610
|
-
sheet:
|
|
1611
|
-
header:
|
|
1612
|
-
footer:
|
|
1613
|
-
titleIcon:
|
|
1614
|
-
heading:
|
|
1615
|
-
title:
|
|
1616
|
-
description:
|
|
1617
|
-
bodyWrap:
|
|
1618
|
-
scrollFade:
|
|
1619
|
-
section:
|
|
1620
|
-
fieldLabel:
|
|
1621
|
-
amount:
|
|
1622
|
-
amountCurrency:
|
|
1623
|
-
quickAmounts:
|
|
1624
|
-
quickAmount:
|
|
1625
|
-
quickAmountActive:
|
|
1626
|
-
cashback:
|
|
1627
|
-
cashbackHead:
|
|
1628
|
-
cashbackRate:
|
|
1629
|
-
cashbackHint:
|
|
1630
|
-
track:
|
|
1631
|
-
trackDot:
|
|
1632
|
-
tiers:
|
|
1633
|
-
tier:
|
|
1634
|
-
tierRate:
|
|
1635
|
-
tierMin:
|
|
1636
|
-
tierFirst:
|
|
1637
|
-
tierMid:
|
|
1638
|
-
tierLast:
|
|
1639
|
-
tierCurrent:
|
|
1640
|
-
methodGroups:
|
|
1641
|
-
group:
|
|
1642
|
-
groupHead:
|
|
1643
|
-
groupTitle:
|
|
1644
|
-
groupBody:
|
|
1645
|
-
method:
|
|
1646
|
-
methodIcon:
|
|
1647
|
-
methodText:
|
|
1648
|
-
methodLabel:
|
|
1649
|
-
methodDescription:
|
|
1650
|
-
methodFee:
|
|
1651
|
-
methodCheck:
|
|
1652
|
-
checkIcon:
|
|
1653
|
-
empty:
|
|
1654
|
-
region:
|
|
1655
|
-
regionLabel:
|
|
1656
|
-
regionTrigger:
|
|
1657
|
-
regionValue:
|
|
1658
|
-
regionGlobe:
|
|
1659
|
-
optionGlobe:
|
|
1660
|
-
regionContent:
|
|
1661
|
-
regionHint:
|
|
1662
|
-
pay:
|
|
1663
|
-
payPending:
|
|
1664
|
-
error:
|
|
1665
|
-
payLabel:
|
|
1666
|
-
notice:
|
|
1667
|
-
},
|
|
1606
|
+
const Na = "rp_Billing-module_billing_jVpbPSwf", wa = "rp_Billing-module_inline_Mf5K0TOB", Ma = "rp_Billing-module_body_73T3WPhM", ka = "rp_Billing-module_sheet_uq-sE7Kj", $a = "rp_Billing-module_header_6ZibPvV0", xa = "rp_Billing-module_footer_sZ8dMMt3", Ca = "rp_Billing-module_titleIcon_yvF5gUEf", Aa = "rp_Billing-module_heading_hXnE-5Dq", La = "rp_Billing-module_title_XVWBtjrY", Sa = "rp_Billing-module_description_15DMv8fm", Ba = "rp_Billing-module_bodyWrap_73GWDsL6", Ra = "rp_Billing-module_scrollFade_Vp55lLY8", Fa = "rp_Billing-module_section_CCEnjKJi", Ta = "rp_Billing-module_fieldLabel_j4TFB90Z", qa = "rp_Billing-module_amount_huNHfEM9", Pa = "rp_Billing-module_amountCurrency_5BAcrLkG", Ia = "rp_Billing-module_quickAmounts_-zXxHGvq", Ea = "rp_Billing-module_quickAmount_wZ1vL5t7", Ha = "rp_Billing-module_quickAmountActive_UN-iKg7L", Da = "rp_Billing-module_cashback_SEKfvhCV", Oa = "rp_Billing-module_cashbackHead_TeiHoLw6", Ua = "rp_Billing-module_cashbackRate_snXI6bxo", za = "rp_Billing-module_cashbackHint_8hFT1XBR", Xa = "rp_Billing-module_track_gUZMl3uW", Ga = "rp_Billing-module_trackDot_yY1N2NRt", Ya = "rp_Billing-module_tiers_BavMzMhY", ja = "rp_Billing-module_tier_HO96mY1F", Wa = "rp_Billing-module_tierRate_vgFEdh-O", Va = "rp_Billing-module_tierMin_N22iOx8J", Ka = "rp_Billing-module_tierFirst_6Hc74rSN", Ja = "rp_Billing-module_tierMid_NeSUtEn1", Za = "rp_Billing-module_tierLast_lE0S52qZ", Qa = "rp_Billing-module_tierCurrent_GctoON0O", en = "rp_Billing-module_methodGroups_zpebVDsx", tn = "rp_Billing-module_group_pHl7zEfy", an = "rp_Billing-module_groupHead_P-SY4GHg", nn = "rp_Billing-module_groupTitle_wdOq-XTd", rn = "rp_Billing-module_groupBody_lrnARuI0", sn = "rp_Billing-module_method_faV0uTen", on = "rp_Billing-module_methodIcon_JUWyNcoC", ln = "rp_Billing-module_methodText_-dgM99xC", cn = "rp_Billing-module_methodLabel_5TAtp3w3", dn = "rp_Billing-module_methodDescription_DFZuV4o0", hn = "rp_Billing-module_methodFee_5X-xX3q5", pn = "rp_Billing-module_methodCheck_QhxGxyBe", mn = "rp_Billing-module_checkIcon_5PuJJ6qi", un = "rp_Billing-module_empty_XLKm1aHR", gn = "rp_Billing-module_region_LaGBn-om", fn = "rp_Billing-module_regionLabel_7ufpgJpv", bn = "rp_Billing-module_regionTrigger_V3TL-sZd", vn = "rp_Billing-module_regionValue_RRhFjyaZ", yn = "rp_Billing-module_regionGlobe_oSvgpNSR", _n = "rp_Billing-module_optionGlobe_FVCNGrV9", Nn = "rp_Billing-module_regionContent_644AhED-", wn = "rp_Billing-module_regionHint_ioA4L3ju", Mn = "rp_Billing-module_pay_htbzTpTf", kn = "rp_Billing-module_payPending_rNhFyReW", $n = "rp_Billing-module_error_VTbjGrSy", xn = "rp_Billing-module_payLabel_9cFNb7Af", Cn = "rp_Billing-module_notice_uwuIHit3", L = {
|
|
1607
|
+
billing: Na,
|
|
1608
|
+
inline: wa,
|
|
1609
|
+
body: Ma,
|
|
1610
|
+
sheet: ka,
|
|
1611
|
+
header: $a,
|
|
1612
|
+
footer: xa,
|
|
1613
|
+
titleIcon: Ca,
|
|
1614
|
+
heading: Aa,
|
|
1615
|
+
title: La,
|
|
1616
|
+
description: Sa,
|
|
1617
|
+
bodyWrap: Ba,
|
|
1618
|
+
scrollFade: Ra,
|
|
1619
|
+
section: Fa,
|
|
1620
|
+
fieldLabel: Ta,
|
|
1621
|
+
amount: qa,
|
|
1622
|
+
amountCurrency: Pa,
|
|
1623
|
+
quickAmounts: Ia,
|
|
1624
|
+
quickAmount: Ea,
|
|
1625
|
+
quickAmountActive: Ha,
|
|
1626
|
+
cashback: Da,
|
|
1627
|
+
cashbackHead: Oa,
|
|
1628
|
+
cashbackRate: Ua,
|
|
1629
|
+
cashbackHint: za,
|
|
1630
|
+
track: Xa,
|
|
1631
|
+
trackDot: Ga,
|
|
1632
|
+
tiers: Ya,
|
|
1633
|
+
tier: ja,
|
|
1634
|
+
tierRate: Wa,
|
|
1635
|
+
tierMin: Va,
|
|
1636
|
+
tierFirst: Ka,
|
|
1637
|
+
tierMid: Ja,
|
|
1638
|
+
tierLast: Za,
|
|
1639
|
+
tierCurrent: Qa,
|
|
1640
|
+
methodGroups: en,
|
|
1641
|
+
group: tn,
|
|
1642
|
+
groupHead: an,
|
|
1643
|
+
groupTitle: nn,
|
|
1644
|
+
groupBody: rn,
|
|
1645
|
+
method: sn,
|
|
1646
|
+
methodIcon: on,
|
|
1647
|
+
methodText: ln,
|
|
1648
|
+
methodLabel: cn,
|
|
1649
|
+
methodDescription: dn,
|
|
1650
|
+
methodFee: hn,
|
|
1651
|
+
methodCheck: pn,
|
|
1652
|
+
checkIcon: mn,
|
|
1653
|
+
empty: un,
|
|
1654
|
+
region: gn,
|
|
1655
|
+
regionLabel: fn,
|
|
1656
|
+
regionTrigger: bn,
|
|
1657
|
+
regionValue: vn,
|
|
1658
|
+
regionGlobe: yn,
|
|
1659
|
+
optionGlobe: _n,
|
|
1660
|
+
regionContent: Nn,
|
|
1661
|
+
regionHint: wn,
|
|
1662
|
+
pay: Mn,
|
|
1663
|
+
payPending: kn,
|
|
1664
|
+
error: $n,
|
|
1665
|
+
payLabel: xn,
|
|
1666
|
+
notice: Cn
|
|
1667
|
+
}, An = {
|
|
1668
1668
|
title: "Top up",
|
|
1669
1669
|
amount: "Amount",
|
|
1670
1670
|
cashback: "Cashback",
|
|
@@ -1676,14 +1676,14 @@ const xa = "rp_Billing-module_billing_jVpbPSwf", Ca = "rp_Billing-module_inline_
|
|
|
1676
1676
|
pending: "Preparing payment…",
|
|
1677
1677
|
empty: "No payment methods here."
|
|
1678
1678
|
};
|
|
1679
|
-
function
|
|
1679
|
+
function Ln(t) {
|
|
1680
1680
|
try {
|
|
1681
1681
|
return new Intl.Locale(t).maximize().region?.toUpperCase();
|
|
1682
1682
|
} catch {
|
|
1683
1683
|
return t.replace("_", "-").split("-")[1]?.toUpperCase();
|
|
1684
1684
|
}
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function Dr(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(
|
|
@@ -1691,17 +1691,17 @@ function Gr(t) {
|
|
|
1691
1691
|
)
|
|
1692
1692
|
) : "🌐";
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1694
|
+
function Sn(t, n) {
|
|
1695
1695
|
try {
|
|
1696
1696
|
return new Intl.NumberFormat(t, {
|
|
1697
1697
|
style: "currency",
|
|
1698
1698
|
currency: n
|
|
1699
|
-
}).formatToParts(0).find((
|
|
1699
|
+
}).formatToParts(0).find((o) => o.type === "currency")?.value ?? n;
|
|
1700
1700
|
} catch {
|
|
1701
1701
|
return n;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function Tt(t, n, r) {
|
|
1705
1705
|
try {
|
|
1706
1706
|
return new Intl.NumberFormat(t, {
|
|
1707
1707
|
style: "currency",
|
|
@@ -1712,7 +1712,7 @@ function It(t, n, r) {
|
|
|
1712
1712
|
return `${n} ${r.toFixed(2)}`;
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Bn(t, n, r) {
|
|
1716
1716
|
try {
|
|
1717
1717
|
return new Intl.NumberFormat(t, {
|
|
1718
1718
|
style: "currency",
|
|
@@ -1723,16 +1723,16 @@ function Pn(t, n, r) {
|
|
|
1723
1723
|
return `${n} ${Math.round(r)}`;
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return t.next ? `Add ${
|
|
1726
|
+
function Rn(t) {
|
|
1727
|
+
return t.next ? `Add ${Tt(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
|
-
function
|
|
1730
|
-
const [t, n] =
|
|
1729
|
+
function Fn() {
|
|
1730
|
+
const [t, n] = Ie(null), [r, o] = Ie({ overflowing: !1, atEnd: !0 });
|
|
1731
1731
|
return Ce(() => {
|
|
1732
1732
|
if (!t) return;
|
|
1733
1733
|
const l = () => {
|
|
1734
1734
|
const h = t.scrollHeight - t.clientHeight > 1;
|
|
1735
|
-
|
|
1735
|
+
o({
|
|
1736
1736
|
overflowing: h,
|
|
1737
1737
|
atEnd: t.scrollTop + t.clientHeight >= t.scrollHeight - 1
|
|
1738
1738
|
});
|
|
@@ -1746,172 +1746,172 @@ function En() {
|
|
|
1746
1746
|
};
|
|
1747
1747
|
}, [t]), [n, r.overflowing && !r.atEnd];
|
|
1748
1748
|
}
|
|
1749
|
-
const
|
|
1749
|
+
const Or = ({
|
|
1750
1750
|
locale: t = typeof navigator > "u" ? "en-US" : navigator.language,
|
|
1751
1751
|
countries: n,
|
|
1752
1752
|
cryptoMethods: r = [],
|
|
1753
|
-
cryptoTitle:
|
|
1753
|
+
cryptoTitle: o = "Crypto",
|
|
1754
1754
|
tiers: l = [],
|
|
1755
1755
|
defaultCountryCode: i,
|
|
1756
1756
|
countryCode: d,
|
|
1757
1757
|
onCountryChange: h,
|
|
1758
|
-
defaultAmount:
|
|
1759
|
-
amount:
|
|
1760
|
-
onAmountChange:
|
|
1761
|
-
quickAmounts:
|
|
1762
|
-
defaultMethodId:
|
|
1763
|
-
methodId:
|
|
1764
|
-
onMethodChange:
|
|
1765
|
-
minAmount:
|
|
1766
|
-
maxAmount:
|
|
1767
|
-
title:
|
|
1768
|
-
description:
|
|
1769
|
-
copy:
|
|
1758
|
+
defaultAmount: g = 0,
|
|
1759
|
+
amount: $,
|
|
1760
|
+
onAmountChange: x,
|
|
1761
|
+
quickAmounts: k = [10, 25, 50, 100],
|
|
1762
|
+
defaultMethodId: S,
|
|
1763
|
+
methodId: M,
|
|
1764
|
+
onMethodChange: b,
|
|
1765
|
+
minAmount: _ = 0,
|
|
1766
|
+
maxAmount: f,
|
|
1767
|
+
title: E,
|
|
1768
|
+
description: s,
|
|
1769
|
+
copy: N,
|
|
1770
1770
|
formatCashback: C,
|
|
1771
|
-
onPay:
|
|
1772
|
-
pending:
|
|
1773
|
-
error:
|
|
1774
|
-
children:
|
|
1771
|
+
onPay: F,
|
|
1772
|
+
pending: B = !1,
|
|
1773
|
+
error: H,
|
|
1774
|
+
children: ae,
|
|
1775
1775
|
notice: z,
|
|
1776
|
-
variant:
|
|
1777
|
-
className:
|
|
1776
|
+
variant: ie = "panel",
|
|
1777
|
+
className: Y
|
|
1778
1778
|
}) => {
|
|
1779
|
-
const
|
|
1780
|
-
() => i ??
|
|
1781
|
-
), [
|
|
1782
|
-
|
|
1783
|
-
),
|
|
1784
|
-
(
|
|
1785
|
-
) ?? n.find((
|
|
1786
|
-
const
|
|
1787
|
-
(
|
|
1788
|
-
), u = r.length > 0 ? { id: "crypto", title:
|
|
1789
|
-
return u ? [...
|
|
1790
|
-
}, [
|
|
1791
|
-
() =>
|
|
1792
|
-
[
|
|
1793
|
-
),
|
|
1794
|
-
const
|
|
1795
|
-
return
|
|
1796
|
-
(
|
|
1797
|
-
)?.id ??
|
|
1798
|
-
}, [
|
|
1799
|
-
() => [...l].sort((
|
|
1779
|
+
const Q = { ...An, ...N }, te = tt(), G = tt(), ne = tt(), [pe, j] = Fn(), [w, I] = Ie(
|
|
1780
|
+
() => i ?? Ln(t) ?? n[0]?.code ?? ""
|
|
1781
|
+
), [m, y] = Ie(g), [v, q] = Ie(
|
|
1782
|
+
S
|
|
1783
|
+
), A = n.find(
|
|
1784
|
+
(p) => p.code === (d ?? w)
|
|
1785
|
+
) ?? n.find((p) => p.code === i) ?? n[0], D = $ ?? m, T = A?.currency ?? "EUR", J = Sn(t, T), ee = rt(() => {
|
|
1786
|
+
const p = (A?.groups ?? []).filter(
|
|
1787
|
+
(P) => P.methods.length > 0
|
|
1788
|
+
), u = r.length > 0 ? { id: "crypto", title: o, methods: r } : void 0;
|
|
1789
|
+
return u ? [...p, u] : [...p];
|
|
1790
|
+
}, [A, r, o]), de = rt(
|
|
1791
|
+
() => ee.flatMap((p) => p.methods),
|
|
1792
|
+
[ee]
|
|
1793
|
+
), be = rt(() => {
|
|
1794
|
+
const p = M ?? v;
|
|
1795
|
+
return de.find(
|
|
1796
|
+
(P) => P.id === p && !P.disabled
|
|
1797
|
+
)?.id ?? de.find((P) => !P.disabled)?.id;
|
|
1798
|
+
}, [M, v, de]), ye = de.find((p) => p.id === be), he = rt(
|
|
1799
|
+
() => [...l].sort((p, u) => p.min - u.min),
|
|
1800
1800
|
[l]
|
|
1801
|
-
),
|
|
1802
|
-
(
|
|
1801
|
+
), me = he.reduce(
|
|
1802
|
+
(p, u) => D >= u.min ? u : p,
|
|
1803
1803
|
void 0
|
|
1804
|
-
),
|
|
1805
|
-
amount:
|
|
1806
|
-
rate:
|
|
1807
|
-
next:
|
|
1808
|
-
currency:
|
|
1804
|
+
), Ae = he.find((p) => D < p.min), Re = me?.rate ?? 0, Le = he[he.length - 1]?.min || 0, _e = Math.max(0, Math.min(D, Le)), fe = Le ? _e / Le * 100 : 0, Ne = {
|
|
1805
|
+
amount: D,
|
|
1806
|
+
rate: Re,
|
|
1807
|
+
next: Ae,
|
|
1808
|
+
currency: T,
|
|
1809
1809
|
locale: t
|
|
1810
|
-
},
|
|
1811
|
-
const u = Number.isFinite(
|
|
1812
|
-
|
|
1813
|
-
},
|
|
1814
|
-
const u = n.find((
|
|
1810
|
+
}, qe = C?.(Ne) ?? Rn(Ne), Te = (p) => {
|
|
1811
|
+
const u = Number.isFinite(p) ? Math.max(0, p) : 0;
|
|
1812
|
+
$ === void 0 && y(u), x?.(u);
|
|
1813
|
+
}, R = (p) => {
|
|
1814
|
+
const u = n.find((U) => U.code === p);
|
|
1815
1815
|
if (!u) return;
|
|
1816
|
-
d === void 0 &&
|
|
1817
|
-
const
|
|
1818
|
-
...u.groups.flatMap((
|
|
1816
|
+
d === void 0 && I(p);
|
|
1817
|
+
const P = [
|
|
1818
|
+
...u.groups.flatMap((U) => U.methods),
|
|
1819
1819
|
...r
|
|
1820
1820
|
];
|
|
1821
|
-
if (!
|
|
1822
|
-
(
|
|
1821
|
+
if (!P.some(
|
|
1822
|
+
(U) => U.id === be && !U.disabled
|
|
1823
1823
|
)) {
|
|
1824
|
-
const
|
|
1825
|
-
|
|
1824
|
+
const U = P.find((O) => !O.disabled);
|
|
1825
|
+
M === void 0 && q(U?.id), U && b?.(U);
|
|
1826
1826
|
}
|
|
1827
1827
|
h?.(u);
|
|
1828
|
-
},
|
|
1829
|
-
const u =
|
|
1830
|
-
u && (
|
|
1831
|
-
},
|
|
1832
|
-
!
|
|
1828
|
+
}, X = (p) => {
|
|
1829
|
+
const u = de.find((P) => P.id === p);
|
|
1830
|
+
u && (M === void 0 && q(p), b?.(u));
|
|
1831
|
+
}, V = !B && Number.isFinite(D) && D > 0 && D >= _ && (f === void 0 || D <= f) && !!ye && !!A, Z = () => {
|
|
1832
|
+
!V || !ye || !A || F?.({ amount: D, method: ye, country: A });
|
|
1833
1833
|
};
|
|
1834
1834
|
return /* @__PURE__ */ a(
|
|
1835
1835
|
"section",
|
|
1836
1836
|
{
|
|
1837
|
-
className:
|
|
1837
|
+
className: re(
|
|
1838
1838
|
L.billing,
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1839
|
+
ie === "inline" && L.inline,
|
|
1840
|
+
ie === "sheet" && L.sheet,
|
|
1841
|
+
Y
|
|
1842
1842
|
),
|
|
1843
1843
|
"aria-labelledby": te,
|
|
1844
1844
|
children: [
|
|
1845
1845
|
/* @__PURE__ */ a("header", { className: L.header, children: [
|
|
1846
|
-
/* @__PURE__ */ e("span", { className: L.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
1846
|
+
/* @__PURE__ */ e("span", { className: L.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(He.Wallet, { size: 18 }) }),
|
|
1847
1847
|
/* @__PURE__ */ a("div", { className: L.heading, children: [
|
|
1848
|
-
/* @__PURE__ */ e("h2", { className: L.title, id: te, children:
|
|
1849
|
-
|
|
1848
|
+
/* @__PURE__ */ e("h2", { className: L.title, id: te, children: E ?? Q.title }),
|
|
1849
|
+
s && /* @__PURE__ */ e("p", { className: L.description, children: s })
|
|
1850
1850
|
] })
|
|
1851
1851
|
] }),
|
|
1852
1852
|
/* @__PURE__ */ a("div", { className: L.bodyWrap, children: [
|
|
1853
|
-
/* @__PURE__ */ a("div", { className: L.body, ref:
|
|
1853
|
+
/* @__PURE__ */ a("div", { className: L.body, ref: pe, children: [
|
|
1854
1854
|
/* @__PURE__ */ a("div", { className: L.section, children: [
|
|
1855
|
-
/* @__PURE__ */ e(
|
|
1856
|
-
/* @__PURE__ */ a(
|
|
1857
|
-
/* @__PURE__ */ e("span", { className: L.amountCurrency, "aria-hidden": "true", children:
|
|
1855
|
+
/* @__PURE__ */ e(ft, { className: L.fieldLabel, htmlFor: G, children: Q.amount }),
|
|
1856
|
+
/* @__PURE__ */ a(bt.Root, { className: L.amount, disabled: B, children: [
|
|
1857
|
+
/* @__PURE__ */ e("span", { className: L.amountCurrency, "aria-hidden": "true", children: J }),
|
|
1858
1858
|
/* @__PURE__ */ e(
|
|
1859
|
-
|
|
1859
|
+
bt.Control,
|
|
1860
1860
|
{
|
|
1861
|
-
disabled:
|
|
1862
|
-
id:
|
|
1861
|
+
disabled: B,
|
|
1862
|
+
id: G,
|
|
1863
1863
|
className: L.amountInput,
|
|
1864
1864
|
type: "number",
|
|
1865
1865
|
inputMode: "decimal",
|
|
1866
|
-
min:
|
|
1867
|
-
max:
|
|
1866
|
+
min: _,
|
|
1867
|
+
max: f,
|
|
1868
1868
|
step: "0.01",
|
|
1869
1869
|
placeholder: "0",
|
|
1870
|
-
value:
|
|
1871
|
-
onChange: (
|
|
1872
|
-
const u = Number.parseFloat(
|
|
1873
|
-
|
|
1870
|
+
value: D === 0 ? "" : D,
|
|
1871
|
+
onChange: (p) => {
|
|
1872
|
+
const u = Number.parseFloat(p.target.value);
|
|
1873
|
+
Te(Number.isFinite(u) ? u : 0);
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
)
|
|
1877
1877
|
] }),
|
|
1878
|
-
|
|
1878
|
+
k && k.length > 0 && /* @__PURE__ */ e("div", { className: L.quickAmounts, children: k.map((p) => /* @__PURE__ */ a(
|
|
1879
1879
|
W,
|
|
1880
1880
|
{
|
|
1881
1881
|
variant: "secondary",
|
|
1882
|
-
textVariant:
|
|
1883
|
-
className:
|
|
1882
|
+
textVariant: Wt.Button_Link_Extra_Small_1,
|
|
1883
|
+
className: re(
|
|
1884
1884
|
L.quickAmount,
|
|
1885
|
-
|
|
1885
|
+
D === p && L.quickAmountActive
|
|
1886
1886
|
),
|
|
1887
|
-
"aria-pressed":
|
|
1888
|
-
disabled:
|
|
1889
|
-
onClick: () =>
|
|
1887
|
+
"aria-pressed": D === p,
|
|
1888
|
+
disabled: B,
|
|
1889
|
+
onClick: () => Te(p),
|
|
1890
1890
|
children: [
|
|
1891
1891
|
"+",
|
|
1892
|
-
|
|
1892
|
+
p
|
|
1893
1893
|
]
|
|
1894
1894
|
},
|
|
1895
|
-
|
|
1895
|
+
p
|
|
1896
1896
|
)) })
|
|
1897
1897
|
] }),
|
|
1898
|
-
|
|
1898
|
+
he.length > 1 && /* @__PURE__ */ a("div", { className: L.cashback, children: [
|
|
1899
1899
|
/* @__PURE__ */ a("div", { className: L.cashbackHead, children: [
|
|
1900
|
-
/* @__PURE__ */ e("span", { children:
|
|
1900
|
+
/* @__PURE__ */ e("span", { children: Q.cashback }),
|
|
1901
1901
|
/* @__PURE__ */ a("strong", { className: L.cashbackRate, children: [
|
|
1902
|
-
|
|
1902
|
+
Re,
|
|
1903
1903
|
"%"
|
|
1904
1904
|
] })
|
|
1905
1905
|
] }),
|
|
1906
|
-
/* @__PURE__ */ e("p", { className: L.cashbackHint, children:
|
|
1906
|
+
/* @__PURE__ */ e("p", { className: L.cashbackHint, children: qe }),
|
|
1907
1907
|
/* @__PURE__ */ a("div", { className: L.track, children: [
|
|
1908
1908
|
/* @__PURE__ */ e(
|
|
1909
|
-
|
|
1909
|
+
Vt,
|
|
1910
1910
|
{
|
|
1911
1911
|
className: L.progress,
|
|
1912
|
-
value:
|
|
1912
|
+
value: _e,
|
|
1913
1913
|
max: Le || 1,
|
|
1914
|
-
ariaLabel:
|
|
1914
|
+
ariaLabel: Q.cashback
|
|
1915
1915
|
}
|
|
1916
1916
|
),
|
|
1917
1917
|
/* @__PURE__ */ e(
|
|
@@ -1919,7 +1919,7 @@ const Yr = ({
|
|
|
1919
1919
|
{
|
|
1920
1920
|
className: L.trackDot,
|
|
1921
1921
|
style: {
|
|
1922
|
-
left: `calc(8px + (100% - 16px) * ${
|
|
1922
|
+
left: `calc(8px + (100% - 16px) * ${fe / 100})`
|
|
1923
1923
|
},
|
|
1924
1924
|
"aria-hidden": "true"
|
|
1925
1925
|
}
|
|
@@ -1930,152 +1930,152 @@ const Yr = ({
|
|
|
1930
1930
|
{
|
|
1931
1931
|
className: L.tiers,
|
|
1932
1932
|
style: {
|
|
1933
|
-
gridTemplateColumns: `repeat(${
|
|
1933
|
+
gridTemplateColumns: `repeat(${he.length}, minmax(0, 1fr))`
|
|
1934
1934
|
},
|
|
1935
|
-
children:
|
|
1935
|
+
children: he.map((p, u) => /* @__PURE__ */ a(
|
|
1936
1936
|
"div",
|
|
1937
1937
|
{
|
|
1938
|
-
className:
|
|
1938
|
+
className: re(
|
|
1939
1939
|
L.tier,
|
|
1940
1940
|
u === 0 && L.tierFirst,
|
|
1941
|
-
u > 0 && u <
|
|
1942
|
-
u ===
|
|
1943
|
-
|
|
1941
|
+
u > 0 && u < he.length - 1 && L.tierMid,
|
|
1942
|
+
u === he.length - 1 && L.tierLast,
|
|
1943
|
+
p === me && L.tierCurrent
|
|
1944
1944
|
),
|
|
1945
1945
|
children: [
|
|
1946
1946
|
/* @__PURE__ */ a("span", { className: L.tierRate, children: [
|
|
1947
|
-
|
|
1947
|
+
p.rate,
|
|
1948
1948
|
"%"
|
|
1949
1949
|
] }),
|
|
1950
|
-
/* @__PURE__ */ e("span", { className: L.tierMin, children:
|
|
1950
|
+
/* @__PURE__ */ e("span", { className: L.tierMin, children: Bn(t, T, p.min) })
|
|
1951
1951
|
]
|
|
1952
1952
|
},
|
|
1953
|
-
|
|
1953
|
+
p.min
|
|
1954
1954
|
))
|
|
1955
1955
|
}
|
|
1956
1956
|
)
|
|
1957
1957
|
] }),
|
|
1958
1958
|
/* @__PURE__ */ a(
|
|
1959
|
-
|
|
1959
|
+
Kt,
|
|
1960
1960
|
{
|
|
1961
|
-
disabled:
|
|
1962
|
-
value:
|
|
1963
|
-
onValueChange:
|
|
1964
|
-
"aria-label":
|
|
1961
|
+
disabled: B,
|
|
1962
|
+
value: be ?? "",
|
|
1963
|
+
onValueChange: X,
|
|
1964
|
+
"aria-label": Q.methodLabel,
|
|
1965
1965
|
className: L.methodGroups,
|
|
1966
1966
|
children: [
|
|
1967
|
-
|
|
1968
|
-
|
|
1967
|
+
ee.length === 0 && /* @__PURE__ */ e(Jt, { className: L.empty, title: Q.empty }),
|
|
1968
|
+
ee.map((p) => /* @__PURE__ */ a(
|
|
1969
1969
|
"section",
|
|
1970
1970
|
{
|
|
1971
1971
|
className: L.group,
|
|
1972
|
-
"aria-labelledby": `${te}-${
|
|
1972
|
+
"aria-labelledby": `${te}-${p.id}`,
|
|
1973
1973
|
children: [
|
|
1974
1974
|
/* @__PURE__ */ a("div", { className: L.groupHead, children: [
|
|
1975
1975
|
/* @__PURE__ */ e(
|
|
1976
1976
|
"h3",
|
|
1977
1977
|
{
|
|
1978
1978
|
className: L.groupTitle,
|
|
1979
|
-
id: `${te}-${
|
|
1980
|
-
children:
|
|
1979
|
+
id: `${te}-${p.id}`,
|
|
1980
|
+
children: p.title
|
|
1981
1981
|
}
|
|
1982
1982
|
),
|
|
1983
|
-
/* @__PURE__ */ e("span", { children:
|
|
1983
|
+
/* @__PURE__ */ e("span", { children: p.feeLabel ?? Q.fee })
|
|
1984
1984
|
] }),
|
|
1985
|
-
/* @__PURE__ */ e(
|
|
1986
|
-
|
|
1985
|
+
/* @__PURE__ */ e(Zt, { variant: "reference", className: L.groupBody, children: p.methods.map((u) => /* @__PURE__ */ a(
|
|
1986
|
+
Qt,
|
|
1987
1987
|
{
|
|
1988
1988
|
value: u.id,
|
|
1989
1989
|
disabled: u.disabled,
|
|
1990
1990
|
className: L.method,
|
|
1991
1991
|
children: [
|
|
1992
|
-
/* @__PURE__ */ e("span", { className: L.methodIcon, "aria-hidden": "true", children: u.icon ?? /* @__PURE__ */ e(
|
|
1992
|
+
/* @__PURE__ */ e("span", { className: L.methodIcon, "aria-hidden": "true", children: u.icon ?? /* @__PURE__ */ e(He.Card, { size: 22 }) }),
|
|
1993
1993
|
/* @__PURE__ */ a("span", { className: L.methodText, children: [
|
|
1994
1994
|
/* @__PURE__ */ a("span", { className: L.methodLabel, children: [
|
|
1995
1995
|
u.label,
|
|
1996
|
-
u.badge && /* @__PURE__ */ e(
|
|
1996
|
+
u.badge && /* @__PURE__ */ e(ea, { children: u.badge })
|
|
1997
1997
|
] }),
|
|
1998
1998
|
u.description && /* @__PURE__ */ e("span", { className: L.methodDescription, children: u.description })
|
|
1999
1999
|
] }),
|
|
2000
2000
|
u.fee && /* @__PURE__ */ e("span", { className: L.methodFee, children: u.fee }),
|
|
2001
|
-
/* @__PURE__ */ e("span", { className: L.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
2001
|
+
/* @__PURE__ */ e("span", { className: L.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(He.Check, { size: 12, className: L.checkIcon }) })
|
|
2002
2002
|
]
|
|
2003
2003
|
},
|
|
2004
2004
|
u.id
|
|
2005
2005
|
)) })
|
|
2006
2006
|
]
|
|
2007
2007
|
},
|
|
2008
|
-
|
|
2008
|
+
p.id
|
|
2009
2009
|
))
|
|
2010
2010
|
]
|
|
2011
2011
|
}
|
|
2012
2012
|
),
|
|
2013
|
-
|
|
2013
|
+
ae
|
|
2014
2014
|
] }),
|
|
2015
2015
|
j && /* @__PURE__ */ e("span", { className: L.scrollFade, "aria-hidden": "true" })
|
|
2016
2016
|
] }),
|
|
2017
2017
|
/* @__PURE__ */ a("footer", { className: L.footer, children: [
|
|
2018
2018
|
/* @__PURE__ */ a("div", { className: L.region, children: [
|
|
2019
|
-
/* @__PURE__ */ e(
|
|
2019
|
+
/* @__PURE__ */ e(ft, { className: L.regionLabel, htmlFor: ne, children: Q.region }),
|
|
2020
2020
|
/* @__PURE__ */ a(
|
|
2021
|
-
|
|
2021
|
+
ta,
|
|
2022
2022
|
{
|
|
2023
|
-
disabled:
|
|
2024
|
-
value:
|
|
2025
|
-
onValueChange:
|
|
2023
|
+
disabled: B || n.length === 0,
|
|
2024
|
+
value: A?.code ?? "",
|
|
2025
|
+
onValueChange: R,
|
|
2026
2026
|
children: [
|
|
2027
2027
|
/* @__PURE__ */ a(
|
|
2028
|
-
|
|
2028
|
+
aa,
|
|
2029
2029
|
{
|
|
2030
2030
|
id: ne,
|
|
2031
2031
|
className: L.regionTrigger,
|
|
2032
|
-
"aria-label":
|
|
2032
|
+
"aria-label": Q.region,
|
|
2033
2033
|
children: [
|
|
2034
|
-
/* @__PURE__ */ e(
|
|
2035
|
-
/* @__PURE__ */ e(
|
|
2036
|
-
/* @__PURE__ */ e(
|
|
2034
|
+
/* @__PURE__ */ e(He.Globe, { size: 16, className: L.regionGlobe }),
|
|
2035
|
+
/* @__PURE__ */ e(na, { className: L.regionValue }),
|
|
2036
|
+
/* @__PURE__ */ e(ra, { children: /* @__PURE__ */ e(He.Down, { size: 16 }) })
|
|
2037
2037
|
]
|
|
2038
2038
|
}
|
|
2039
2039
|
),
|
|
2040
|
-
/* @__PURE__ */ e(
|
|
2041
|
-
|
|
2040
|
+
/* @__PURE__ */ e(ia, { children: /* @__PURE__ */ e(
|
|
2041
|
+
sa,
|
|
2042
2042
|
{
|
|
2043
2043
|
position: "popper",
|
|
2044
2044
|
sideOffset: 6,
|
|
2045
2045
|
align: "start",
|
|
2046
2046
|
className: L.regionContent,
|
|
2047
|
-
children: /* @__PURE__ */ e(
|
|
2048
|
-
/* @__PURE__ */ e(
|
|
2049
|
-
/* @__PURE__ */ e(
|
|
2050
|
-
/* @__PURE__ */ e(
|
|
2051
|
-
] },
|
|
2047
|
+
children: /* @__PURE__ */ e(oa, { children: /* @__PURE__ */ e(la, { children: n.map((p) => /* @__PURE__ */ a(ca, { value: p.code, children: [
|
|
2048
|
+
/* @__PURE__ */ e(He.Globe, { size: 15, className: L.optionGlobe }),
|
|
2049
|
+
/* @__PURE__ */ e(da, { children: p.name }),
|
|
2050
|
+
/* @__PURE__ */ e(ha, {})
|
|
2051
|
+
] }, p.code)) }) })
|
|
2052
2052
|
}
|
|
2053
2053
|
) })
|
|
2054
2054
|
]
|
|
2055
2055
|
}
|
|
2056
2056
|
),
|
|
2057
|
-
/* @__PURE__ */ e("p", { className: L.regionHint, children:
|
|
2057
|
+
/* @__PURE__ */ e("p", { className: L.regionHint, children: Q.regionHint })
|
|
2058
2058
|
] }),
|
|
2059
|
-
|
|
2060
|
-
/* @__PURE__ */ e(
|
|
2061
|
-
|
|
2059
|
+
H && /* @__PURE__ */ a("p", { className: L.error, role: "alert", children: [
|
|
2060
|
+
/* @__PURE__ */ e(He.Close, { size: 14 }),
|
|
2061
|
+
H
|
|
2062
2062
|
] }),
|
|
2063
2063
|
/* @__PURE__ */ e(
|
|
2064
2064
|
W,
|
|
2065
2065
|
{
|
|
2066
2066
|
variant: "primary",
|
|
2067
|
-
className:
|
|
2068
|
-
disabled: !
|
|
2069
|
-
onClick:
|
|
2070
|
-
children:
|
|
2071
|
-
/* @__PURE__ */ e(
|
|
2072
|
-
/* @__PURE__ */ e("span", { children:
|
|
2073
|
-
] }) : /* @__PURE__ */ a(
|
|
2067
|
+
className: re(L.pay, B && L.payPending),
|
|
2068
|
+
disabled: !V,
|
|
2069
|
+
onClick: Z,
|
|
2070
|
+
children: B ? /* @__PURE__ */ a(Oe, { children: [
|
|
2071
|
+
/* @__PURE__ */ e(pa, { label: Q.pending }),
|
|
2072
|
+
/* @__PURE__ */ e("span", { children: Q.pending })
|
|
2073
|
+
] }) : /* @__PURE__ */ a(Oe, { children: [
|
|
2074
2074
|
/* @__PURE__ */ a("span", { className: L.payLabel, children: [
|
|
2075
|
-
/* @__PURE__ */ e(
|
|
2076
|
-
|
|
2075
|
+
/* @__PURE__ */ e(He.Card, { size: 16 }),
|
|
2076
|
+
Q.pay
|
|
2077
2077
|
] }),
|
|
2078
|
-
/* @__PURE__ */ e("strong", { children:
|
|
2078
|
+
/* @__PURE__ */ e("strong", { children: Tt(t, T, D) })
|
|
2079
2079
|
] })
|
|
2080
2080
|
}
|
|
2081
2081
|
),
|
|
@@ -2084,7 +2084,7 @@ const Yr = ({
|
|
|
2084
2084
|
]
|
|
2085
2085
|
}
|
|
2086
2086
|
);
|
|
2087
|
-
},
|
|
2087
|
+
}, Se = {
|
|
2088
2088
|
"rp-bar-chart": "rp_BarChart-module_rp-bar-chart_G8Uh2qms",
|
|
2089
2089
|
"rp-bar-chart-peak": "rp_BarChart-module_rp-bar-chart-peak_rhpNOWBx",
|
|
2090
2090
|
"rp-bar-chart-bars": "rp_BarChart-module_rp-bar-chart-bars_XQGh3NRE",
|
|
@@ -2093,48 +2093,48 @@ const Yr = ({
|
|
|
2093
2093
|
"rp-bar-chart-segment": "rp_BarChart-module_rp-bar-chart-segment_rUqceCrY",
|
|
2094
2094
|
"rp-bar-chart-segment-inner": "rp_BarChart-module_rp-bar-chart-segment-inner_78F2D8Fq",
|
|
2095
2095
|
"rp-bar-chart-labels": "rp_BarChart-module_rp-bar-chart-labels_ZrSAwFYl"
|
|
2096
|
-
},
|
|
2096
|
+
}, Nt = [
|
|
2097
2097
|
"var(--rp-color-accent)",
|
|
2098
2098
|
"var(--rp-color-success)",
|
|
2099
2099
|
"var(--rp-color-warning)",
|
|
2100
2100
|
"var(--rp-color-danger)",
|
|
2101
2101
|
"var(--rp-color-border-strong)",
|
|
2102
2102
|
"var(--rp-color-text-muted)"
|
|
2103
|
-
],
|
|
2103
|
+
], Ur = ({
|
|
2104
2104
|
values: t,
|
|
2105
2105
|
labels: n,
|
|
2106
2106
|
stacked: r = !1,
|
|
2107
|
-
label:
|
|
2107
|
+
label: o = "Daily token usage"
|
|
2108
2108
|
}) => {
|
|
2109
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:
|
|
2114
|
-
|
|
2115
|
-
r &&
|
|
2113
|
+
className: re(
|
|
2114
|
+
Se["rp-bar-chart"],
|
|
2115
|
+
r && Se["rp-bar-chart--stacked"]
|
|
2116
2116
|
),
|
|
2117
2117
|
children: [
|
|
2118
|
-
/* @__PURE__ */ a("div", { className:
|
|
2118
|
+
/* @__PURE__ */ a("div", { className: Se["rp-bar-chart-peak"], children: [
|
|
2119
2119
|
l,
|
|
2120
2120
|
"M"
|
|
2121
2121
|
] }),
|
|
2122
2122
|
/* @__PURE__ */ e(
|
|
2123
2123
|
"div",
|
|
2124
2124
|
{
|
|
2125
|
-
className:
|
|
2125
|
+
className: Se["rp-bar-chart-bars"],
|
|
2126
2126
|
role: "img",
|
|
2127
|
-
"aria-label": `${
|
|
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
|
-
className:
|
|
2131
|
+
className: Se["rp-bar-chart-bar"],
|
|
2132
2132
|
title: `${i[h] ?? h + 1}: ${d}`,
|
|
2133
2133
|
children: [
|
|
2134
2134
|
/* @__PURE__ */ e(
|
|
2135
2135
|
"i",
|
|
2136
2136
|
{
|
|
2137
|
-
className:
|
|
2137
|
+
className: Se["rp-bar-chart-segment"],
|
|
2138
2138
|
style: {
|
|
2139
2139
|
height: `${d / l * 85 * (r ? 0.25 : 0.15)}%`
|
|
2140
2140
|
}
|
|
@@ -2143,22 +2143,22 @@ const Yr = ({
|
|
|
2143
2143
|
/* @__PURE__ */ e(
|
|
2144
2144
|
"i",
|
|
2145
2145
|
{
|
|
2146
|
-
className:
|
|
2147
|
-
|
|
2148
|
-
|
|
2146
|
+
className: re(
|
|
2147
|
+
Se["rp-bar-chart-segment"],
|
|
2148
|
+
Se["rp-bar-chart-segment-inner"]
|
|
2149
2149
|
),
|
|
2150
2150
|
style: {
|
|
2151
2151
|
height: `${d / l * 85 * (r ? 0.5 : 0.85)}%`,
|
|
2152
|
-
background: r ?
|
|
2152
|
+
background: r ? Nt[h % Nt.length] : void 0
|
|
2153
2153
|
}
|
|
2154
2154
|
}
|
|
2155
2155
|
),
|
|
2156
2156
|
r && /* @__PURE__ */ e(
|
|
2157
2157
|
"i",
|
|
2158
2158
|
{
|
|
2159
|
-
className:
|
|
2160
|
-
|
|
2161
|
-
|
|
2159
|
+
className: re(
|
|
2160
|
+
Se["rp-bar-chart-segment"],
|
|
2161
|
+
Se["rp-bar-chart-segment-top"]
|
|
2162
2162
|
),
|
|
2163
2163
|
style: {
|
|
2164
2164
|
height: `${d / l * 21}%`,
|
|
@@ -2172,11 +2172,11 @@ const Yr = ({
|
|
|
2172
2172
|
))
|
|
2173
2173
|
}
|
|
2174
2174
|
),
|
|
2175
|
-
/* @__PURE__ */ e("div", { className:
|
|
2175
|
+
/* @__PURE__ */ e("div", { className: Se["rp-bar-chart-labels"], children: i.map((d, h) => /* @__PURE__ */ e("span", { children: d }, `${h}-${d}`)) })
|
|
2176
2176
|
]
|
|
2177
2177
|
}
|
|
2178
2178
|
);
|
|
2179
|
-
},
|
|
2179
|
+
}, De = {
|
|
2180
2180
|
"rp-heatmap-scroll": "rp_Heatmap-module_rp-heatmap-scroll_b8EDFy7x",
|
|
2181
2181
|
"rp-heatmap-grid": "rp_Heatmap-module_rp-heatmap-grid_w-Q4clqM",
|
|
2182
2182
|
"rp-heatmap--hours": "rp_Heatmap-module_rp-heatmap--hours_0ejkT-5j",
|
|
@@ -2189,82 +2189,82 @@ const Yr = ({
|
|
|
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
|
-
},
|
|
2192
|
+
}, wt = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], zr = ({
|
|
2193
2193
|
levels: t,
|
|
2194
2194
|
columnLabels: n = [],
|
|
2195
2195
|
label: r = "Activity heatmap"
|
|
2196
2196
|
}) => {
|
|
2197
|
-
const
|
|
2198
|
-
return /* @__PURE__ */ e("div", { className:
|
|
2197
|
+
const o = t[0]?.length ?? 0, l = o === 24;
|
|
2198
|
+
return /* @__PURE__ */ e("div", { className: De["rp-heatmap-scroll"], children: /* @__PURE__ */ e(
|
|
2199
2199
|
"div",
|
|
2200
2200
|
{
|
|
2201
|
-
className:
|
|
2202
|
-
l ?
|
|
2203
|
-
l &&
|
|
2201
|
+
className: re(
|
|
2202
|
+
l ? De["rp-heatmap-hours"] : De["rp-heatmap-grid"],
|
|
2203
|
+
l && De["rp-heatmap--hours"]
|
|
2204
2204
|
),
|
|
2205
|
-
style: l ? void 0 : { gridTemplateColumns: `auto repeat(${
|
|
2205
|
+
style: l ? void 0 : { gridTemplateColumns: `auto repeat(${o}, minmax(10px, 1fr))` },
|
|
2206
2206
|
role: "img",
|
|
2207
2207
|
"aria-label": r,
|
|
2208
|
-
children: Array.from({ length: 8 }, (i, d) => /* @__PURE__ */ a(
|
|
2209
|
-
/* @__PURE__ */ e("span", { className:
|
|
2208
|
+
children: Array.from({ length: 8 }, (i, d) => /* @__PURE__ */ a(ba, { children: [
|
|
2209
|
+
/* @__PURE__ */ e("span", { className: De["rp-heatmap-day"], children: d === 0 ? "" : wt[d - 1] }),
|
|
2210
2210
|
Array.from(
|
|
2211
|
-
{ length:
|
|
2212
|
-
(h,
|
|
2211
|
+
{ length: o },
|
|
2212
|
+
(h, g) => d === 0 ? /* @__PURE__ */ e("span", { className: De["rp-heatmap-month"], children: n[g] ?? "" }, g) : /* @__PURE__ */ e(
|
|
2213
2213
|
"i",
|
|
2214
2214
|
{
|
|
2215
|
-
className:
|
|
2216
|
-
|
|
2217
|
-
|
|
2215
|
+
className: re(
|
|
2216
|
+
De["rp-heatmap-cell"],
|
|
2217
|
+
De[`rp-heatmap-level-${t[d - 1]?.[g] ?? 0}`]
|
|
2218
2218
|
),
|
|
2219
|
-
title: `${
|
|
2219
|
+
title: `${wt[d - 1]}, ${l ? "hour" : "column"} ${g + 1}`
|
|
2220
2220
|
},
|
|
2221
|
-
|
|
2221
|
+
g
|
|
2222
2222
|
)
|
|
2223
2223
|
)
|
|
2224
2224
|
] }, d))
|
|
2225
2225
|
}
|
|
2226
2226
|
) });
|
|
2227
|
-
},
|
|
2227
|
+
}, Ke = {
|
|
2228
2228
|
"rp-metric-strip": "rp_MetricStrip-module_rp-metric-strip_oAjqn-aO",
|
|
2229
2229
|
"rp-metric-strip--six": "rp_MetricStrip-module_rp-metric-strip--six_THBfnydZ",
|
|
2230
2230
|
"rp-metric-strip-card": "rp_MetricStrip-module_rp-metric-strip-card_63Ke96LL",
|
|
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
|
-
},
|
|
2235
|
-
const n =
|
|
2236
|
-
|
|
2237
|
-
t.length === 6 &&
|
|
2234
|
+
}, Xr = ({ metrics: t }) => {
|
|
2235
|
+
const n = re(
|
|
2236
|
+
Ke["rp-metric-strip"],
|
|
2237
|
+
t.length === 6 && Ke["rp-metric-strip--six"]
|
|
2238
2238
|
);
|
|
2239
|
-
return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className:
|
|
2240
|
-
/* @__PURE__ */ e("b", { className:
|
|
2241
|
-
/* @__PURE__ */ e("span", { className:
|
|
2242
|
-
r.detail && /* @__PURE__ */ e("small", { className:
|
|
2239
|
+
return /* @__PURE__ */ e("div", { className: n, children: t.map((r) => /* @__PURE__ */ a("div", { className: Ke["rp-metric-strip-card"], children: [
|
|
2240
|
+
/* @__PURE__ */ e("b", { className: Ke["rp-metric-strip-value"], children: r.value }),
|
|
2241
|
+
/* @__PURE__ */ e("span", { className: Ke["rp-metric-strip-label"], children: r.label }),
|
|
2242
|
+
r.detail && /* @__PURE__ */ e("small", { className: Ke["rp-metric-strip-detail"], children: r.detail })
|
|
2243
2243
|
] }, r.label)) });
|
|
2244
|
-
},
|
|
2244
|
+
}, Ze = {
|
|
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
|
-
},
|
|
2250
|
+
}, Gr = ({
|
|
2251
2251
|
title: t,
|
|
2252
2252
|
actions: n,
|
|
2253
2253
|
children: r,
|
|
2254
|
-
className:
|
|
2254
|
+
className: o,
|
|
2255
2255
|
footer: l
|
|
2256
2256
|
}) => {
|
|
2257
|
-
const i =
|
|
2257
|
+
const i = tt(), d = re(Ze["rp-panel"], o);
|
|
2258
2258
|
return /* @__PURE__ */ a("section", { className: d, "aria-labelledby": i, children: [
|
|
2259
|
-
/* @__PURE__ */ a("div", { className:
|
|
2260
|
-
/* @__PURE__ */ e("h2", { className:
|
|
2261
|
-
/* @__PURE__ */ e("span", { className:
|
|
2259
|
+
/* @__PURE__ */ a("div", { className: Ze["rp-panel-header"], children: [
|
|
2260
|
+
/* @__PURE__ */ e("h2", { className: Ze["rp-panel-title"], id: i, children: t }),
|
|
2261
|
+
/* @__PURE__ */ e("span", { className: Ze["rp-panel-spacer"] }),
|
|
2262
2262
|
n
|
|
2263
2263
|
] }),
|
|
2264
2264
|
r,
|
|
2265
|
-
l && /* @__PURE__ */ e("div", { className:
|
|
2265
|
+
l && /* @__PURE__ */ e("div", { className: Ze["rp-panel-footer"], children: l })
|
|
2266
2266
|
] });
|
|
2267
|
-
},
|
|
2267
|
+
}, Pe = {
|
|
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,29 +2274,29 @@ const Yr = ({
|
|
|
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
|
-
},
|
|
2277
|
+
}, Yr = ({ items: t, onSelect: n }) => /* @__PURE__ */ e(
|
|
2278
2278
|
"div",
|
|
2279
2279
|
{
|
|
2280
|
-
className:
|
|
2280
|
+
className: Pe["rp-ranking"],
|
|
2281
2281
|
style: { "--rp-ranking-label-width": "140px" },
|
|
2282
2282
|
children: t.map((r) => /* @__PURE__ */ a(
|
|
2283
2283
|
"button",
|
|
2284
2284
|
{
|
|
2285
2285
|
type: "button",
|
|
2286
|
-
className:
|
|
2287
|
-
|
|
2288
|
-
n &&
|
|
2286
|
+
className: re(
|
|
2287
|
+
Pe["rp-ranking-row"],
|
|
2288
|
+
n && Pe["rp-ranking-row-clickable"]
|
|
2289
2289
|
),
|
|
2290
2290
|
onClick: () => n?.(r),
|
|
2291
2291
|
disabled: !n,
|
|
2292
2292
|
children: [
|
|
2293
|
-
/* @__PURE__ */ a("span", { className:
|
|
2294
|
-
r.icon ? /* @__PURE__ */ e("span", { className:
|
|
2295
|
-
/* @__PURE__ */ e("span", { className:
|
|
2293
|
+
/* @__PURE__ */ a("span", { className: Pe["rp-ranking-label"], children: [
|
|
2294
|
+
r.icon ? /* @__PURE__ */ e("span", { className: Pe["rp-ranking-icon"], "aria-hidden": "true", children: r.icon }) : null,
|
|
2295
|
+
/* @__PURE__ */ e("span", { className: Pe["rp-ranking-name"], title: r.name, children: r.name })
|
|
2296
2296
|
] }),
|
|
2297
|
-
/* @__PURE__ */ e("span", { className:
|
|
2298
|
-
/* @__PURE__ */ e("span", { className:
|
|
2299
|
-
/* @__PURE__ */ e("span", { className:
|
|
2297
|
+
/* @__PURE__ */ e("span", { className: Pe["rp-ranking-track"], children: /* @__PURE__ */ e("i", { style: { width: `${Math.max(0, Math.min(100, r.share))}%` } }) }),
|
|
2298
|
+
/* @__PURE__ */ e("span", { className: Pe["rp-ranking-value"], children: r.value }),
|
|
2299
|
+
/* @__PURE__ */ e("span", { className: Pe["rp-ranking-cost"], children: r.cost })
|
|
2300
2300
|
]
|
|
2301
2301
|
},
|
|
2302
2302
|
r.name
|
|
@@ -2315,7 +2315,7 @@ const Yr = ({
|
|
|
2315
2315
|
"rp-request-table-status": "rp_RequestTable-module_rp-request-table-status_MzQap-jR",
|
|
2316
2316
|
"rp-request-table-status--succeeded": "rp_RequestTable-module_rp-request-table-status--succeeded_XIp7zeex",
|
|
2317
2317
|
"rp-request-table-status--failed": "rp_RequestTable-module_rp-request-table-status--failed_BZ4zoupJ"
|
|
2318
|
-
},
|
|
2318
|
+
}, Tn = [
|
|
2319
2319
|
"Time",
|
|
2320
2320
|
"Agent",
|
|
2321
2321
|
"Requested",
|
|
@@ -2324,7 +2324,7 @@ const Yr = ({
|
|
|
2324
2324
|
"Out",
|
|
2325
2325
|
"Cost",
|
|
2326
2326
|
"Status"
|
|
2327
|
-
],
|
|
2327
|
+
], jr = ({ rows: t }) => /* @__PURE__ */ e(
|
|
2328
2328
|
"div",
|
|
2329
2329
|
{
|
|
2330
2330
|
className: ve["rp-request-table-scroll"],
|
|
@@ -2332,7 +2332,7 @@ const Yr = ({
|
|
|
2332
2332
|
"aria-label": "Scrollable requests",
|
|
2333
2333
|
children: /* @__PURE__ */ a("table", { className: ve["rp-request-table"], children: [
|
|
2334
2334
|
/* @__PURE__ */ e("caption", { className: ve["rp-request-table-caption"], children: "Requests" }),
|
|
2335
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children:
|
|
2335
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: Tn.map((n) => /* @__PURE__ */ e("th", { scope: "col", children: n }, n)) }) }),
|
|
2336
2336
|
/* @__PURE__ */ e("tbody", { children: t.map((n) => /* @__PURE__ */ a("tr", { children: [
|
|
2337
2337
|
/* @__PURE__ */ e("td", { className: ve["rp-request-table-time"], children: n.time }),
|
|
2338
2338
|
/* @__PURE__ */ e("td", { children: n.agent }),
|
|
@@ -2354,7 +2354,7 @@ const Yr = ({
|
|
|
2354
2354
|
/* @__PURE__ */ e(
|
|
2355
2355
|
"td",
|
|
2356
2356
|
{
|
|
2357
|
-
className:
|
|
2357
|
+
className: re(
|
|
2358
2358
|
ve["rp-request-table-num"],
|
|
2359
2359
|
ve["rp-request-table-cost"]
|
|
2360
2360
|
),
|
|
@@ -2365,7 +2365,7 @@ const Yr = ({
|
|
|
2365
2365
|
/* @__PURE__ */ e(
|
|
2366
2366
|
"span",
|
|
2367
2367
|
{
|
|
2368
|
-
className:
|
|
2368
|
+
className: re(
|
|
2369
2369
|
ve["rp-request-table-status"],
|
|
2370
2370
|
n.status === "Failed" ? ve["rp-request-table-status--failed"] : ve["rp-request-table-status--succeeded"]
|
|
2371
2371
|
),
|
|
@@ -2379,7 +2379,7 @@ const Yr = ({
|
|
|
2379
2379
|
] }, n.id)) })
|
|
2380
2380
|
] })
|
|
2381
2381
|
}
|
|
2382
|
-
),
|
|
2382
|
+
), Ge = {
|
|
2383
2383
|
"rp-session-shape": "rp_SessionShape-module_rp-session-shape_lK5H99s2",
|
|
2384
2384
|
"rp-session-shape-col": "rp_SessionShape-module_rp-session-shape-col_b7cDXHSU",
|
|
2385
2385
|
"rp-session-shape-plot": "rp_SessionShape-module_rp-session-shape-plot_rHVHdFET",
|
|
@@ -2387,43 +2387,43 @@ const Yr = ({
|
|
|
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
|
-
},
|
|
2390
|
+
}, Wr = ({ values: t, labels: n }) => {
|
|
2391
2391
|
const r = Math.max(1, ...t);
|
|
2392
2392
|
return /* @__PURE__ */ e(
|
|
2393
2393
|
"div",
|
|
2394
2394
|
{
|
|
2395
|
-
className:
|
|
2395
|
+
className: Ge["rp-session-shape"],
|
|
2396
2396
|
style: {
|
|
2397
2397
|
gridTemplateColumns: `repeat(${t.length}, minmax(0, 1fr))`
|
|
2398
2398
|
},
|
|
2399
2399
|
role: "img",
|
|
2400
|
-
"aria-label": t.map((
|
|
2401
|
-
children: t.map((
|
|
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:
|
|
2405
|
-
|
|
2406
|
-
|
|
2404
|
+
className: re(
|
|
2405
|
+
Ge["rp-session-shape-col"],
|
|
2406
|
+
o === r && Ge["rp-session-shape-col--peak"]
|
|
2407
2407
|
),
|
|
2408
2408
|
children: [
|
|
2409
|
-
/* @__PURE__ */ a("div", { className:
|
|
2410
|
-
/* @__PURE__ */ e("b", { className:
|
|
2409
|
+
/* @__PURE__ */ a("div", { className: Ge["rp-session-shape-plot"], children: [
|
|
2410
|
+
/* @__PURE__ */ e("b", { className: Ge["rp-session-shape-count"], children: o }),
|
|
2411
2411
|
/* @__PURE__ */ e(
|
|
2412
2412
|
"i",
|
|
2413
2413
|
{
|
|
2414
|
-
className:
|
|
2415
|
-
style: { height: `${
|
|
2414
|
+
className: Ge["rp-session-shape-bar"],
|
|
2415
|
+
style: { height: `${o / r * 110}px` }
|
|
2416
2416
|
}
|
|
2417
2417
|
)
|
|
2418
2418
|
] }),
|
|
2419
|
-
/* @__PURE__ */ e("span", { className:
|
|
2419
|
+
/* @__PURE__ */ e("span", { className: Ge["rp-session-shape-label"], children: n[l] })
|
|
2420
2420
|
]
|
|
2421
2421
|
},
|
|
2422
2422
|
l
|
|
2423
2423
|
))
|
|
2424
2424
|
}
|
|
2425
2425
|
);
|
|
2426
|
-
},
|
|
2426
|
+
}, we = {
|
|
2427
2427
|
"rp-usage-list": "rp_UsageList-module_rp-usage-list_z8RMAIHR",
|
|
2428
2428
|
"rp-usage-list-row": "rp_UsageList-module_rp-usage-list-row_W7kgCICI",
|
|
2429
2429
|
"rp-usage-list-icon": "rp_UsageList-module_rp-usage-list-icon_XI-hUKig",
|
|
@@ -2437,377 +2437,387 @@ const Yr = ({
|
|
|
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
|
-
},
|
|
2440
|
+
}, Vr = ({ items: t }) => /* @__PURE__ */ e("div", { className: we["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
|
|
2441
2441
|
"div",
|
|
2442
2442
|
{
|
|
2443
|
-
className:
|
|
2444
|
-
|
|
2445
|
-
|
|
2443
|
+
className: re(
|
|
2444
|
+
we["rp-usage-list-row"],
|
|
2445
|
+
we["rp-usage-list-row--stat"]
|
|
2446
2446
|
),
|
|
2447
2447
|
children: [
|
|
2448
|
-
/* @__PURE__ */ e("span", { className:
|
|
2449
|
-
/* @__PURE__ */ a("div", { className:
|
|
2450
|
-
/* @__PURE__ */ e("div", { className:
|
|
2451
|
-
/* @__PURE__ */ e("div", { className:
|
|
2448
|
+
/* @__PURE__ */ e("span", { className: we["rp-usage-list-icon"], "aria-hidden": "true", children: n.icon ?? /* @__PURE__ */ e("span", { className: we["rp-usage-list-fallback-icon"] }) }),
|
|
2449
|
+
/* @__PURE__ */ a("div", { className: we["rp-usage-list-who"], children: [
|
|
2450
|
+
/* @__PURE__ */ e("div", { className: we["rp-usage-list-name"], children: n.name }),
|
|
2451
|
+
/* @__PURE__ */ e("div", { className: we["rp-usage-list-sub"], children: n.detail })
|
|
2452
2452
|
] }),
|
|
2453
|
-
/* @__PURE__ */ e("span", { className:
|
|
2454
|
-
/* @__PURE__ */ a("span", { className:
|
|
2455
|
-
/* @__PURE__ */ e("b", { className:
|
|
2456
|
-
/* @__PURE__ */ e("small", { className:
|
|
2453
|
+
/* @__PURE__ */ e("span", { className: we["rp-usage-list-share"], children: /* @__PURE__ */ e("i", { style: { width: `${n.share}%` } }) }),
|
|
2454
|
+
/* @__PURE__ */ a("span", { className: we["rp-usage-list-num"], children: [
|
|
2455
|
+
/* @__PURE__ */ e("b", { className: we["rp-usage-list-value"], children: n.value }),
|
|
2456
|
+
/* @__PURE__ */ e("small", { className: we["rp-usage-list-breakdown"], children: n.breakdown })
|
|
2457
2457
|
] }),
|
|
2458
|
-
/* @__PURE__ */ e("span", { className:
|
|
2458
|
+
/* @__PURE__ */ e("span", { className: we["rp-usage-list-cost"], children: n.cost })
|
|
2459
2459
|
]
|
|
2460
2460
|
},
|
|
2461
2461
|
n.name
|
|
2462
|
-
)) }),
|
|
2462
|
+
)) }), qn = {
|
|
2463
2463
|
"rp-plus-background-canvas": "rp_BackgroundPlus-module_rp-plus-background-canvas_qV-SHke3"
|
|
2464
2464
|
};
|
|
2465
|
-
function
|
|
2466
|
-
const r =
|
|
2465
|
+
function qt(t, n) {
|
|
2466
|
+
const r = Be(null), o = Be(n ?? (t ? 7 : 14));
|
|
2467
2467
|
return Ce(() => {
|
|
2468
|
-
|
|
2468
|
+
o.current = n ?? (t ? 7 : 14);
|
|
2469
2469
|
}, [n, t]), Ce(() => {
|
|
2470
2470
|
const l = r.current;
|
|
2471
2471
|
if (!l || typeof window > "u") return;
|
|
2472
2472
|
const i = l.getContext("2d"), d = l.parentElement;
|
|
2473
2473
|
if (!i || !d) return;
|
|
2474
2474
|
const h = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2475
|
-
let
|
|
2476
|
-
const
|
|
2477
|
-
let
|
|
2478
|
-
const
|
|
2479
|
-
if (
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2482
|
-
const
|
|
2483
|
-
if (
|
|
2484
|
-
const
|
|
2485
|
-
for (let
|
|
2486
|
-
for (let
|
|
2487
|
-
const
|
|
2488
|
-
|
|
2475
|
+
let g = 0, $ = 0, x = 0, k = !0, S = [], M = null;
|
|
2476
|
+
const b = window.matchMedia("(hover: hover) and (pointer: fine)"), _ = 10;
|
|
2477
|
+
let f = 0, E = 0, s = new Float32Array(0), N = new Float32Array(0), C = 0, F = 0, B = null, H = null;
|
|
2478
|
+
const ae = () => {
|
|
2479
|
+
if (B) {
|
|
2480
|
+
const m = (B.targetX - B.x) * 0.22, y = (B.targetY - B.y) * 0.22;
|
|
2481
|
+
B.x += m, B.y += y;
|
|
2482
|
+
const v = Math.hypot(m, y);
|
|
2483
|
+
if (v > 0.02) {
|
|
2484
|
+
const q = B.x / _ + 1, A = B.y / _ + 1, D = Math.min(v, 12) * 0.065;
|
|
2485
|
+
for (let T = Math.max(1, Math.floor(A - 7)); T < Math.min(E - 1, A + 8); T++)
|
|
2486
|
+
for (let J = Math.max(1, Math.floor(q - 7)); J < Math.min(f - 1, q + 8); J++) {
|
|
2487
|
+
const ee = J - q, de = T - A, be = (ee * m + de * y) / v;
|
|
2488
|
+
N[T * f + J] += be * Math.exp(-(ee * ee + de * de) / 9) * D;
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
for (let
|
|
2493
|
-
for (let
|
|
2494
|
-
const
|
|
2495
|
-
|
|
2492
|
+
for (let m = 1; m < E - 1; m++)
|
|
2493
|
+
for (let y = 1; y < f - 1; y++) {
|
|
2494
|
+
const v = m * f + y, q = s[v - 1] + s[v + 1] + s[v - f] + s[v + f] - 4 * s[v], A = Math.min(y, m, f - 1 - y, E - 1 - m);
|
|
2495
|
+
N[v] = (N[v] + q * 0.32) * (A < 8 ? 0.88 : 0.985);
|
|
2496
2496
|
}
|
|
2497
|
-
for (let
|
|
2498
|
-
}, z = (
|
|
2499
|
-
const
|
|
2500
|
-
return (
|
|
2501
|
-
},
|
|
2502
|
-
if (
|
|
2503
|
-
|
|
2497
|
+
for (let m = 0; m < s.length; m++) s[m] += N[m];
|
|
2498
|
+
}, z = (m, y) => {
|
|
2499
|
+
const v = Math.max(0, Math.min(f - 2, m / _ + 1)), q = Math.max(0, Math.min(E - 2, y / _ + 1)), A = Math.floor(v), D = Math.floor(q), T = v - A, J = q - D, ee = D * f + A;
|
|
2500
|
+
return (s[ee] * (1 - T) + s[ee + 1] * T) * (1 - J) + (s[ee + f] * (1 - T) + s[ee + f + 1] * T) * J;
|
|
2501
|
+
}, ie = (m) => {
|
|
2502
|
+
if (!k || document.hidden) {
|
|
2503
|
+
x = 0;
|
|
2504
2504
|
return;
|
|
2505
2505
|
}
|
|
2506
|
-
if (
|
|
2507
|
-
|
|
2508
|
-
else for (;
|
|
2509
|
-
|
|
2510
|
-
i.clearRect(0, 0,
|
|
2511
|
-
const
|
|
2512
|
-
for (let
|
|
2513
|
-
for (let
|
|
2514
|
-
let
|
|
2515
|
-
if (
|
|
2516
|
-
const
|
|
2506
|
+
if (F += Math.min(50, C ? m - C : 0), C = m, h.matches)
|
|
2507
|
+
F = 0;
|
|
2508
|
+
else for (; F >= 1e3 / 60; )
|
|
2509
|
+
ae(), F -= 1e3 / 60;
|
|
2510
|
+
i.clearRect(0, 0, g, $), S = S.filter((A) => m - A.time < 2400);
|
|
2511
|
+
const y = o.current, v = y / 2, q = y * 0.25;
|
|
2512
|
+
for (let A = v, D = 0; A < $; A += y, D++)
|
|
2513
|
+
for (let T = v + D % 2 * y / 2; T < g; T += y) {
|
|
2514
|
+
let J = 0, ee = 0, de = 0;
|
|
2515
|
+
if (M && !h.matches) {
|
|
2516
|
+
const P = (m - M.time) / 1e3, K = (T - g / 2) / (g * 0.58), U = (A - $ * 0.42) / ($ * 0.7), O = Math.hypot(K, U), se = 0.22 + 0.98 * Math.exp(-O * O * 2.1), oe = Math.max(
|
|
2517
2517
|
0,
|
|
2518
|
-
Math.min(
|
|
2519
|
-
),
|
|
2520
|
-
|
|
2518
|
+
Math.min(P, 2.4) - Math.min(0.045, O * 0.025)
|
|
2519
|
+
), le = 1.55 * (1 - Math.exp(-oe / 0.12)) * se;
|
|
2520
|
+
de = K * 210 * le, ee = -260 * le * (1 - 0.3 * Math.tanh(U));
|
|
2521
2521
|
}
|
|
2522
2522
|
if (!h.matches)
|
|
2523
|
-
for (const
|
|
2524
|
-
const
|
|
2525
|
-
if (
|
|
2526
|
-
const
|
|
2527
|
-
|
|
2523
|
+
for (const P of S) {
|
|
2524
|
+
const K = (m - P.time) / 1e3, U = Math.hypot(T - P.x, A - P.y);
|
|
2525
|
+
if (K < 0) continue;
|
|
2526
|
+
const O = U - K * 320;
|
|
2527
|
+
J += Math.sin(O * 0.065) * Math.exp(-O * O / 13e3) * Math.max(0, 1 - K / 2.4) * 11;
|
|
2528
2528
|
}
|
|
2529
|
-
const
|
|
2530
|
-
-Math.pow((
|
|
2531
|
-
) * 0.55,
|
|
2529
|
+
const be = h.matches ? 0 : z(T + _, A) - z(T - _, A), ye = h.matches ? 0 : z(T, A + _) - z(T, A - _), he = 12 * Math.tanh(be * 0.65), me = 12 * Math.tanh(ye * 0.65), Ae = Math.pow(Math.max(0, 1 - A / $), 0.6), Re = 1 - Math.exp(
|
|
2530
|
+
-Math.pow((T - g / 2) / (g * 0.28), 2) - Math.pow((A - $ * 0.38) / ($ * 0.24), 2)
|
|
2531
|
+
) * 0.55, Fe = Math.hypot(he, me);
|
|
2532
2532
|
if (t) {
|
|
2533
|
-
const
|
|
2534
|
-
let
|
|
2535
|
-
-((
|
|
2536
|
-
) : 0,
|
|
2533
|
+
const P = Math.abs(z(T, A)) * 0.12 + Fe * 0.035 + Math.abs(J) * 0.035;
|
|
2534
|
+
let K = H ? Math.exp(
|
|
2535
|
+
-((T - H.x) ** 2 + (A - H.y) ** 2) / (2 * 24 ** 2)
|
|
2536
|
+
) : 0, U = 0;
|
|
2537
2537
|
if (!h.matches)
|
|
2538
|
-
for (const
|
|
2539
|
-
const
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
Math.exp(-(oe ** 2) / (2 *
|
|
2543
|
-
|
|
2544
|
-
),
|
|
2538
|
+
for (const O of S) {
|
|
2539
|
+
const se = (m - O.time) / 1e3, oe = Math.hypot(T - O.x, A - O.y), le = 32 + 64 * Math.min(1, se / 0.3), ce = Math.max(0, 1 - se / 2.4), ke = Math.exp(-((oe - se * 320) ** 2) / (2 * 36 ** 2)) * ce;
|
|
2540
|
+
K = Math.max(
|
|
2541
|
+
K,
|
|
2542
|
+
Math.exp(-(oe ** 2) / (2 * le ** 2)) * ce,
|
|
2543
|
+
ke
|
|
2544
|
+
), U = Math.max(U, ke);
|
|
2545
2545
|
}
|
|
2546
|
-
i.globalAlpha = Math.min(0.28, 0.1 +
|
|
2547
|
-
|
|
2548
|
-
|
|
2546
|
+
i.globalAlpha = Math.min(0.28, 0.1 + P * 0.12 + U * 0.12) * K, i.fillStyle = "#8a8f98", i.beginPath(), i.arc(
|
|
2547
|
+
T + J * 0.4 + he * 0.25,
|
|
2548
|
+
A + J + me * 0.25,
|
|
2549
2549
|
1.25,
|
|
2550
2550
|
0,
|
|
2551
2551
|
Math.PI * 2
|
|
2552
2552
|
), i.fill();
|
|
2553
2553
|
continue;
|
|
2554
2554
|
}
|
|
2555
|
-
const Le =
|
|
2555
|
+
const Le = J * 0.055 + Math.tanh((be - ye) * 0.2) * 0.18, _e = q + Math.abs(J) * 0.16 + Fe * 0.08, fe = Math.sin(T * 12.9898 + A * 78.233) * 43758.5453, Ne = fe - Math.floor(fe), qe = m / 1e3, Te = Math.sin(T * 39.346 + A * 11.135) * 24634.6345, R = Te - Math.floor(Te), X = qe / (3 + R * 5) + R * 17, V = X - Math.floor(X), Z = V < 0.32 ? Math.pow(Math.sin(Math.PI * V / 0.32), 2) : 0, p = Ne < 0.22, u = h.matches || !p ? 1 : 1 - 0.98 * Z;
|
|
2556
2556
|
i.save(), i.translate(
|
|
2557
|
-
|
|
2558
|
-
|
|
2557
|
+
T + J * 0.4 + he + de,
|
|
2558
|
+
A + J + me + ee
|
|
2559
2559
|
), i.rotate(Le), i.globalAlpha = Math.min(
|
|
2560
2560
|
1,
|
|
2561
2561
|
Math.min(
|
|
2562
2562
|
0.95,
|
|
2563
|
-
0.38 +
|
|
2564
|
-
) *
|
|
2565
|
-
), i.strokeStyle = "#f5f8ff", i.lineWidth =
|
|
2563
|
+
0.38 + Ne * 0.22 + (p ? 0.32 : 0) + Math.abs(J) * 0.045 + Fe * 0.018
|
|
2564
|
+
) * Ae * Re * u
|
|
2565
|
+
), i.strokeStyle = "#f5f8ff", i.lineWidth = q * (p ? 0.357 : 0.3), i.beginPath(), i.moveTo(-_e, 0), i.lineTo(_e, 0), i.moveTo(0, -_e), i.lineTo(0, _e), i.stroke(), i.restore();
|
|
2566
2566
|
}
|
|
2567
|
-
|
|
2568
|
-
},
|
|
2569
|
-
cancelAnimationFrame(
|
|
2570
|
-
},
|
|
2571
|
-
const
|
|
2572
|
-
|
|
2573
|
-
const
|
|
2574
|
-
l.width =
|
|
2567
|
+
x = k && !document.hidden && !h.matches ? requestAnimationFrame(ie) : 0;
|
|
2568
|
+
}, Y = () => {
|
|
2569
|
+
cancelAnimationFrame(x), x = 0, C = 0, k && !document.hidden && ie(performance.now());
|
|
2570
|
+
}, Q = () => {
|
|
2571
|
+
const m = l.getBoundingClientRect();
|
|
2572
|
+
g = m.width, $ = m.height, f = Math.ceil(g / _) + 3, E = Math.ceil($ / _) + 3, s = new Float32Array(f * E), N = new Float32Array(f * E), B = null, F = 0;
|
|
2573
|
+
const y = Math.min(devicePixelRatio || 1, 2);
|
|
2574
|
+
l.width = g * y, l.height = $ * y, i.setTransform(y, 0, 0, y, 0, 0), Y();
|
|
2575
2575
|
};
|
|
2576
2576
|
let te = 0;
|
|
2577
|
-
const
|
|
2578
|
-
if (h.matches || !
|
|
2577
|
+
const G = (m) => {
|
|
2578
|
+
if (h.matches || !b.matches || m.pointerType === "touch")
|
|
2579
2579
|
return;
|
|
2580
|
-
if (!t && (performance.now() < te ||
|
|
2581
|
-
|
|
2580
|
+
if (!t && (performance.now() < te || m.target.closest("#hero-download"))) {
|
|
2581
|
+
B = null;
|
|
2582
2582
|
return;
|
|
2583
2583
|
}
|
|
2584
|
-
const
|
|
2585
|
-
|
|
2584
|
+
const y = l.getBoundingClientRect(), v = m.clientX - y.left, q = m.clientY - y.top;
|
|
2585
|
+
H = { x: v, y: q }, B ? (B.targetX = v, B.targetY = q) : B = { x: t ? v - 8 : v, y: q, targetX: v, targetY: q }, x || Y();
|
|
2586
2586
|
}, ne = () => {
|
|
2587
|
-
|
|
2588
|
-
},
|
|
2589
|
-
if (
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
y:
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2587
|
+
B = null, H = null;
|
|
2588
|
+
}, pe = (m) => {
|
|
2589
|
+
if (h.matches || m.button !== 0 || m.target.closest("a,button,input,select"))
|
|
2590
|
+
return;
|
|
2591
|
+
const y = l.getBoundingClientRect(), v = m.clientX - y.left, q = m.clientY - y.top;
|
|
2592
|
+
if (t)
|
|
2593
|
+
S.push({ x: v, y: q, time: performance.now() }), S = S.slice(-5);
|
|
2594
|
+
else {
|
|
2595
|
+
const A = v / _ + 1, D = q / _ + 1, T = 3;
|
|
2596
|
+
for (let J = Math.max(1, Math.floor(D - T * 3)); J < Math.min(E - 1, D + T * 3); J++)
|
|
2597
|
+
for (let ee = Math.max(1, Math.floor(A - T * 3)); ee < Math.min(f - 1, A + T * 3); ee++) {
|
|
2598
|
+
const de = ((ee - A) ** 2 + (J - D) ** 2) / T ** 2, be = (1 - de) * Math.exp(-de), ye = J * f + ee;
|
|
2599
|
+
N[ye] = Math.max(
|
|
2600
|
+
-4,
|
|
2601
|
+
Math.min(4, N[ye] - be * 2.4)
|
|
2602
|
+
);
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
x || Y();
|
|
2606
|
+
}, j = (m) => {
|
|
2597
2607
|
if (t || h.matches) return;
|
|
2598
|
-
const
|
|
2599
|
-
if (
|
|
2600
|
-
|
|
2608
|
+
const y = m.detail;
|
|
2609
|
+
if (y.cancel) {
|
|
2610
|
+
M = null, te = 0;
|
|
2601
2611
|
return;
|
|
2602
2612
|
}
|
|
2603
|
-
if (
|
|
2604
|
-
|
|
2613
|
+
if (M && y.progress > 0) {
|
|
2614
|
+
M.progress = y.progress;
|
|
2605
2615
|
return;
|
|
2606
2616
|
}
|
|
2607
|
-
if (
|
|
2608
|
-
const
|
|
2609
|
-
if (!
|
|
2610
|
-
const
|
|
2611
|
-
te =
|
|
2612
|
-
x:
|
|
2613
|
-
y:
|
|
2614
|
-
time:
|
|
2617
|
+
if (y.progress > 0) return;
|
|
2618
|
+
const v = d.querySelector("#hero-download");
|
|
2619
|
+
if (!v) return;
|
|
2620
|
+
const q = l.getBoundingClientRect(), A = v.getBoundingClientRect(), D = performance.now();
|
|
2621
|
+
te = D + 3220, M = {
|
|
2622
|
+
x: A.left + A.width / 2 - q.left,
|
|
2623
|
+
y: A.top + A.height / 2 - q.top,
|
|
2624
|
+
time: D,
|
|
2615
2625
|
progress: 0
|
|
2616
|
-
},
|
|
2626
|
+
}, S = [], s.fill(0), N.fill(0), B = null, S = S.slice(-5), x || Y();
|
|
2617
2627
|
};
|
|
2618
2628
|
d.addEventListener("hero-scroll-inertia", j);
|
|
2619
|
-
const
|
|
2620
|
-
|
|
2621
|
-
const
|
|
2622
|
-
|
|
2629
|
+
const w = new ResizeObserver(Q);
|
|
2630
|
+
w.observe(l);
|
|
2631
|
+
const I = new IntersectionObserver((m) => {
|
|
2632
|
+
k = m.some((y) => y.isIntersecting), Y();
|
|
2623
2633
|
});
|
|
2624
|
-
return
|
|
2625
|
-
cancelAnimationFrame(
|
|
2634
|
+
return I.observe(l), d.addEventListener("pointermove", G), d.addEventListener("pointerleave", ne), d.addEventListener("pointerdown", pe), h.addEventListener("change", Y), document.addEventListener("visibilitychange", Y), Q(), () => {
|
|
2635
|
+
cancelAnimationFrame(x), w.disconnect(), I.disconnect(), d.removeEventListener("hero-scroll-inertia", j), d.removeEventListener("pointermove", G), d.removeEventListener("pointerleave", ne), d.removeEventListener("pointerdown", pe), h.removeEventListener("change", Y), document.removeEventListener("visibilitychange", Y);
|
|
2626
2636
|
};
|
|
2627
2637
|
}, [t]), r;
|
|
2628
2638
|
}
|
|
2629
|
-
function
|
|
2630
|
-
const r =
|
|
2639
|
+
function Kr({ background: t, cellSize: n }) {
|
|
2640
|
+
const r = qt(!1, n);
|
|
2631
2641
|
return /* @__PURE__ */ e(
|
|
2632
2642
|
"canvas",
|
|
2633
2643
|
{
|
|
2634
|
-
className: `${
|
|
2644
|
+
className: `${qn["rp-plus-background-canvas"]} rp-plus-background`,
|
|
2635
2645
|
style: t === void 0 ? void 0 : { background: t },
|
|
2636
2646
|
ref: r,
|
|
2637
2647
|
"aria-hidden": "true"
|
|
2638
2648
|
}
|
|
2639
2649
|
);
|
|
2640
2650
|
}
|
|
2641
|
-
const
|
|
2651
|
+
const Mt = {
|
|
2642
2652
|
"rp-plus-field-canvas": "rp_PlusField-module_rp-plus-field-canvas_ZN-2OlaQ",
|
|
2643
2653
|
"rp-plus-field-dots": "rp_PlusField-module_rp-plus-field-dots_e1Khngt7"
|
|
2644
2654
|
};
|
|
2645
|
-
function
|
|
2646
|
-
const n =
|
|
2655
|
+
function Jr({ dots: t = !1 }) {
|
|
2656
|
+
const n = Be(null);
|
|
2647
2657
|
return Ce(() => {
|
|
2648
2658
|
const r = n.current;
|
|
2649
2659
|
if (!r || typeof window > "u") return;
|
|
2650
|
-
const
|
|
2651
|
-
if (!
|
|
2660
|
+
const o = r.getContext("2d"), l = r.parentElement;
|
|
2661
|
+
if (!o || !l) return;
|
|
2652
2662
|
const i = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2653
|
-
let d = 0, h = 0,
|
|
2654
|
-
const
|
|
2655
|
-
let
|
|
2656
|
-
const
|
|
2663
|
+
let d = 0, h = 0, g = 0, $ = !0, x = [], k = null;
|
|
2664
|
+
const S = window.matchMedia("(hover: hover) and (pointer: fine)"), M = 10;
|
|
2665
|
+
let b = 0, _ = 0, f = new Float32Array(0), E = new Float32Array(0), s = 0, N = 0, C = null, F = null;
|
|
2666
|
+
const B = () => {
|
|
2657
2667
|
if (C) {
|
|
2658
|
-
const
|
|
2659
|
-
C.x +=
|
|
2660
|
-
const
|
|
2661
|
-
if (
|
|
2662
|
-
const
|
|
2663
|
-
for (let
|
|
2664
|
-
for (let
|
|
2665
|
-
const
|
|
2666
|
-
|
|
2668
|
+
const w = (C.targetX - C.x) * 0.22, I = (C.targetY - C.y) * 0.22;
|
|
2669
|
+
C.x += w, C.y += I;
|
|
2670
|
+
const m = Math.hypot(w, I);
|
|
2671
|
+
if (m > 0.02) {
|
|
2672
|
+
const y = C.x / M + 1, v = C.y / M + 1, q = Math.min(m, 12) * 0.065;
|
|
2673
|
+
for (let A = Math.max(1, Math.floor(v - 7)); A < Math.min(_ - 1, v + 8); A++)
|
|
2674
|
+
for (let D = Math.max(1, Math.floor(y - 7)); D < Math.min(b - 1, y + 8); D++) {
|
|
2675
|
+
const T = D - y, J = A - v, ee = (T * w + J * I) / m;
|
|
2676
|
+
E[A * b + D] += ee * Math.exp(-(T * T + J * J) / 9) * q;
|
|
2667
2677
|
}
|
|
2668
2678
|
}
|
|
2669
2679
|
}
|
|
2670
|
-
for (let
|
|
2671
|
-
for (let
|
|
2672
|
-
const
|
|
2673
|
-
|
|
2680
|
+
for (let w = 1; w < _ - 1; w++)
|
|
2681
|
+
for (let I = 1; I < b - 1; I++) {
|
|
2682
|
+
const m = w * b + I, y = f[m - 1] + f[m + 1] + f[m - b] + f[m + b] - 4 * f[m], v = Math.min(I, w, b - 1 - I, _ - 1 - w);
|
|
2683
|
+
E[m] = (E[m] + y * 0.32) * (v < 8 ? 0.88 : 0.985);
|
|
2674
2684
|
}
|
|
2675
|
-
for (let
|
|
2676
|
-
},
|
|
2677
|
-
const
|
|
2678
|
-
return (
|
|
2679
|
-
},
|
|
2680
|
-
if (
|
|
2681
|
-
|
|
2682
|
-
else for (;
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
const
|
|
2686
|
-
for (let
|
|
2687
|
-
for (let
|
|
2688
|
-
let
|
|
2689
|
-
if (
|
|
2690
|
-
const
|
|
2685
|
+
for (let w = 0; w < f.length; w++) f[w] += E[w];
|
|
2686
|
+
}, H = (w, I) => {
|
|
2687
|
+
const m = Math.max(0, Math.min(b - 2, w / M + 1)), y = Math.max(0, Math.min(_ - 2, I / M + 1)), v = Math.floor(m), q = Math.floor(y), A = m - v, D = y - q, T = q * b + v;
|
|
2688
|
+
return (f[T] * (1 - A) + f[T + 1] * A) * (1 - D) + (f[T + b] * (1 - A) + f[T + b + 1] * A) * D;
|
|
2689
|
+
}, ae = (w) => {
|
|
2690
|
+
if (N += Math.min(50, s ? w - s : 0), s = w, i.matches)
|
|
2691
|
+
N = 0;
|
|
2692
|
+
else for (; N >= 1e3 / 60; )
|
|
2693
|
+
B(), N -= 1e3 / 60;
|
|
2694
|
+
o.clearRect(0, 0, d, h), x = x.filter((m) => w - m.time < 2400);
|
|
2695
|
+
const I = t ? 7 : 14;
|
|
2696
|
+
for (let m = 7, y = 0; m < h; m += I, y++)
|
|
2697
|
+
for (let v = 7 + y % 2 * I / 2; v < d; v += I) {
|
|
2698
|
+
let q = 0, A = 0, D = 0;
|
|
2699
|
+
if (k && !i.matches) {
|
|
2700
|
+
const V = (w - k.time) / 1e3, Z = (v - d / 2) / (d * 0.58), p = (m - h * 0.42) / (h * 0.7), u = Math.hypot(Z, p), P = 0.22 + 0.98 * Math.exp(-u * u * 2.1), K = Math.max(
|
|
2691
2701
|
0,
|
|
2692
|
-
Math.min(
|
|
2693
|
-
),
|
|
2694
|
-
|
|
2702
|
+
Math.min(V, 2.4) - Math.min(0.045, u * 0.025)
|
|
2703
|
+
), U = 1.55 * (1 - Math.exp(-K / 0.12)) * P;
|
|
2704
|
+
D = Z * 210 * U, A = -260 * U * (1 - 0.3 * Math.tanh(p));
|
|
2695
2705
|
}
|
|
2696
2706
|
if (!i.matches)
|
|
2697
|
-
for (const
|
|
2698
|
-
const
|
|
2699
|
-
if (
|
|
2700
|
-
const u =
|
|
2701
|
-
|
|
2707
|
+
for (const V of x) {
|
|
2708
|
+
const Z = (w - V.time) / 1e3, p = Math.hypot(v - V.x, m - V.y);
|
|
2709
|
+
if (Z < 0) continue;
|
|
2710
|
+
const u = p - Z * 320;
|
|
2711
|
+
q += Math.sin(u * 0.065) * Math.exp(-u * u / 13e3) * Math.max(0, 1 - Z / 2.4) * 11;
|
|
2702
2712
|
}
|
|
2703
|
-
const
|
|
2704
|
-
-Math.pow((
|
|
2705
|
-
) * 0.55,
|
|
2713
|
+
const T = i.matches ? 0 : H(v + M, m) - H(v - M, m), J = i.matches ? 0 : H(v, m + M) - H(v, m - M), ee = 12 * Math.tanh(T * 0.65), de = 12 * Math.tanh(J * 0.65), be = Math.pow(Math.max(0, 1 - m / h), 0.6), ye = 1 - Math.exp(
|
|
2714
|
+
-Math.pow((v - d / 2) / (d * 0.28), 2) - Math.pow((m - h * 0.38) / (h * 0.24), 2)
|
|
2715
|
+
) * 0.55, he = Math.hypot(ee, de);
|
|
2706
2716
|
if (t) {
|
|
2707
|
-
const
|
|
2708
|
-
let
|
|
2709
|
-
-((
|
|
2710
|
-
) : 0,
|
|
2717
|
+
const V = Math.abs(H(v, m)) * 0.12 + he * 0.035 + Math.abs(q) * 0.035;
|
|
2718
|
+
let Z = F ? Math.exp(
|
|
2719
|
+
-((v - F.x) ** 2 + (m - F.y) ** 2) / (2 * 24 ** 2)
|
|
2720
|
+
) : 0, p = 0;
|
|
2711
2721
|
if (!i.matches)
|
|
2712
|
-
for (const u of
|
|
2713
|
-
const
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
Math.exp(-(
|
|
2717
|
-
|
|
2718
|
-
),
|
|
2722
|
+
for (const u of x) {
|
|
2723
|
+
const P = (w - u.time) / 1e3, K = Math.hypot(v - u.x, m - u.y), U = 32 + 64 * Math.min(1, P / 0.3), O = Math.max(0, 1 - P / 2.4), se = Math.exp(-((K - P * 320) ** 2) / (2 * 36 ** 2)) * O;
|
|
2724
|
+
Z = Math.max(
|
|
2725
|
+
Z,
|
|
2726
|
+
Math.exp(-(K ** 2) / (2 * U ** 2)) * O,
|
|
2727
|
+
se
|
|
2728
|
+
), p = Math.max(p, se);
|
|
2719
2729
|
}
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2730
|
+
o.globalAlpha = Math.min(0.28, 0.1 + V * 0.12 + p * 0.12) * Z, o.fillStyle = "#8a8f98", o.beginPath(), o.arc(
|
|
2731
|
+
v + q * 0.4 + ee * 0.25,
|
|
2732
|
+
m + q + de * 0.25,
|
|
2723
2733
|
1.25,
|
|
2724
2734
|
0,
|
|
2725
2735
|
Math.PI * 2
|
|
2726
|
-
),
|
|
2736
|
+
), o.fill();
|
|
2727
2737
|
continue;
|
|
2728
2738
|
}
|
|
2729
|
-
const
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
),
|
|
2739
|
+
const me = q * 0.055 + Math.tanh((T - J) * 0.2) * 0.18, Ae = 3.5 + Math.abs(q) * 0.16 + he * 0.08, Re = Math.sin(v * 12.9898 + m * 78.233) * 43758.5453, Fe = Re - Math.floor(Re), Le = w / 1e3, _e = Math.sin(v * 39.346 + m * 11.135) * 24634.6345, fe = _e - Math.floor(_e), Ne = Le / (3 + fe * 5) + fe * 17, qe = Ne - Math.floor(Ne), Te = qe < 0.32 ? Math.pow(Math.sin(Math.PI * qe / 0.32), 2) : 0, R = Fe < 0.22, X = i.matches || !R ? 1 : 1 - 0.98 * Te;
|
|
2740
|
+
o.save(), o.translate(
|
|
2741
|
+
v + q * 0.4 + ee + D,
|
|
2742
|
+
m + q + de + A
|
|
2743
|
+
), o.rotate(me), o.globalAlpha = Math.min(
|
|
2734
2744
|
1,
|
|
2735
2745
|
Math.min(
|
|
2736
2746
|
0.95,
|
|
2737
|
-
0.38 +
|
|
2738
|
-
) *
|
|
2739
|
-
),
|
|
2747
|
+
0.38 + Fe * 0.22 + (R ? 0.32 : 0) + Math.abs(q) * 0.045 + he * 0.018
|
|
2748
|
+
) * be * ye * X
|
|
2749
|
+
), o.strokeStyle = "#f5f8ff", o.lineWidth = R ? 1.25 : 1.05, o.beginPath(), o.moveTo(-Ae, 0), o.lineTo(Ae, 0), o.moveTo(0, -Ae), o.lineTo(0, Ae), o.stroke(), o.restore();
|
|
2740
2750
|
}
|
|
2741
|
-
|
|
2751
|
+
g = $ && !document.hidden && !i.matches ? requestAnimationFrame(ae) : 0;
|
|
2742
2752
|
}, z = () => {
|
|
2743
|
-
cancelAnimationFrame(
|
|
2744
|
-
},
|
|
2745
|
-
const
|
|
2746
|
-
d =
|
|
2747
|
-
const
|
|
2748
|
-
r.width = d *
|
|
2753
|
+
cancelAnimationFrame(g), s = 0, ae(performance.now());
|
|
2754
|
+
}, ie = () => {
|
|
2755
|
+
const w = r.getBoundingClientRect();
|
|
2756
|
+
d = w.width, h = w.height, b = Math.ceil(d / M) + 3, _ = Math.ceil(h / M) + 3, f = new Float32Array(b * _), E = new Float32Array(b * _), C = null, N = 0;
|
|
2757
|
+
const I = Math.min(devicePixelRatio || 1, 2);
|
|
2758
|
+
r.width = d * I, r.height = h * I, o.setTransform(I, 0, 0, I, 0, 0), z();
|
|
2749
2759
|
};
|
|
2750
|
-
let
|
|
2751
|
-
const
|
|
2752
|
-
if (i.matches || !
|
|
2760
|
+
let Y = 0;
|
|
2761
|
+
const Q = (w) => {
|
|
2762
|
+
if (i.matches || !S.matches || w.pointerType === "touch")
|
|
2753
2763
|
return;
|
|
2754
|
-
if (!t && (performance.now() <
|
|
2764
|
+
if (!t && (performance.now() < Y || w.target.closest("#hero-download"))) {
|
|
2755
2765
|
C = null;
|
|
2756
2766
|
return;
|
|
2757
2767
|
}
|
|
2758
|
-
const
|
|
2759
|
-
|
|
2768
|
+
const I = r.getBoundingClientRect(), m = w.clientX - I.left, y = w.clientY - I.top;
|
|
2769
|
+
F = { x: m, y }, C ? (C.targetX = m, C.targetY = y) : C = { x: t ? m - 8 : m, y, targetX: m, targetY: y }, g || z();
|
|
2760
2770
|
}, te = () => {
|
|
2761
|
-
C = null,
|
|
2762
|
-
},
|
|
2763
|
-
if (
|
|
2764
|
-
const
|
|
2765
|
-
|
|
2766
|
-
x:
|
|
2767
|
-
y:
|
|
2771
|
+
C = null, F = null;
|
|
2772
|
+
}, G = (w) => {
|
|
2773
|
+
if (w.target.closest("a,button,input,select")) return;
|
|
2774
|
+
const I = r.getBoundingClientRect();
|
|
2775
|
+
x.push({
|
|
2776
|
+
x: w.clientX - I.left,
|
|
2777
|
+
y: w.clientY - I.top,
|
|
2768
2778
|
time: performance.now()
|
|
2769
|
-
}),
|
|
2770
|
-
}, ne = (
|
|
2779
|
+
}), x = x.slice(-5), g || z();
|
|
2780
|
+
}, ne = (w) => {
|
|
2771
2781
|
if (t || i.matches) return;
|
|
2772
|
-
const
|
|
2773
|
-
if (
|
|
2774
|
-
|
|
2782
|
+
const I = w.detail;
|
|
2783
|
+
if (I.cancel) {
|
|
2784
|
+
k = null, Y = 0;
|
|
2775
2785
|
return;
|
|
2776
2786
|
}
|
|
2777
|
-
if (
|
|
2778
|
-
|
|
2787
|
+
if (k && I.progress > 0) {
|
|
2788
|
+
k.progress = I.progress;
|
|
2779
2789
|
return;
|
|
2780
2790
|
}
|
|
2781
|
-
if (
|
|
2782
|
-
const
|
|
2783
|
-
if (!
|
|
2784
|
-
const
|
|
2785
|
-
|
|
2786
|
-
x:
|
|
2787
|
-
y:
|
|
2788
|
-
time:
|
|
2791
|
+
if (I.progress > 0) return;
|
|
2792
|
+
const m = l.querySelector("#hero-download");
|
|
2793
|
+
if (!m) return;
|
|
2794
|
+
const y = r.getBoundingClientRect(), v = m.getBoundingClientRect(), q = performance.now();
|
|
2795
|
+
Y = q + 3220, k = {
|
|
2796
|
+
x: v.left + v.width / 2 - y.left,
|
|
2797
|
+
y: v.top + v.height / 2 - y.top,
|
|
2798
|
+
time: q,
|
|
2789
2799
|
progress: 0
|
|
2790
|
-
},
|
|
2800
|
+
}, x = [], f.fill(0), E.fill(0), C = null, x = x.slice(-5), g || z();
|
|
2791
2801
|
};
|
|
2792
2802
|
l.addEventListener("hero-scroll-inertia", ne);
|
|
2793
|
-
const
|
|
2794
|
-
|
|
2795
|
-
const j = new IntersectionObserver((
|
|
2796
|
-
|
|
2803
|
+
const pe = new ResizeObserver(ie);
|
|
2804
|
+
pe.observe(r);
|
|
2805
|
+
const j = new IntersectionObserver((w) => {
|
|
2806
|
+
$ = w.some((I) => I.isIntersecting), z();
|
|
2797
2807
|
});
|
|
2798
|
-
return j.observe(r), l.addEventListener("pointermove",
|
|
2799
|
-
cancelAnimationFrame(
|
|
2808
|
+
return j.observe(r), l.addEventListener("pointermove", Q), l.addEventListener("pointerleave", te), l.addEventListener("pointerdown", G), i.addEventListener("change", z), document.addEventListener("visibilitychange", z), ie(), () => {
|
|
2809
|
+
cancelAnimationFrame(g), pe.disconnect(), j.disconnect(), l.removeEventListener("hero-scroll-inertia", ne), l.removeEventListener("pointermove", Q), l.removeEventListener("pointerleave", te), l.removeEventListener("pointerdown", G), i.removeEventListener("change", z), document.removeEventListener("visibilitychange", z);
|
|
2800
2810
|
};
|
|
2801
2811
|
}, [t]), /* @__PURE__ */ e(
|
|
2802
2812
|
"canvas",
|
|
2803
2813
|
{
|
|
2804
|
-
className: `${
|
|
2814
|
+
className: `${Mt["rp-plus-field-canvas"]} ${t ? `${Mt["rp-plus-field-dots"]} rp-download-ripple` : "rp-plus-field"}`,
|
|
2805
2815
|
ref: n,
|
|
2806
2816
|
"aria-hidden": "true"
|
|
2807
2817
|
}
|
|
2808
2818
|
);
|
|
2809
2819
|
}
|
|
2810
|
-
const
|
|
2820
|
+
const Ye = {
|
|
2811
2821
|
"rp-line-field-background": "rp_BackgroundLineField-module_rp-line-field-background_iKQMVmpE",
|
|
2812
2822
|
"rp-line-field-canvas": "rp_BackgroundLineField-module_rp-line-field-canvas_NvZpohlj",
|
|
2813
2823
|
"rp-line-field-veil": "rp_BackgroundLineField-module_rp-line-field-veil_sMxIIjHC",
|
|
@@ -2815,176 +2825,176 @@ const je = {
|
|
|
2815
2825
|
"rp-line-field-left": "rp_BackgroundLineField-module_rp-line-field-left_NSpgJvyP",
|
|
2816
2826
|
"rp-line-field-right": "rp_BackgroundLineField-module_rp-line-field-right_o4I52Xbf",
|
|
2817
2827
|
"rp-line-field-bottom": "rp_BackgroundLineField-module_rp-line-field-bottom_7BxG7-Fk"
|
|
2818
|
-
},
|
|
2828
|
+
}, kt = 0.07, Pn = 0.66, In = 3.1, En = [0.0625, 0.25, 0.375, 0.5], $t = 0.045, Hn = 0.44, Dn = 14, On = 4, xt = ["#ebba00", "#a7e66b", "#cd99fd", "#0000ff"], Un = [
|
|
2819
2829
|
"--rp-color-line-field-tier-1",
|
|
2820
2830
|
"--rp-color-line-field-tier-2",
|
|
2821
2831
|
"--rp-color-line-field-tier-3",
|
|
2822
2832
|
"--rp-color-line-field-tier-4"
|
|
2823
|
-
],
|
|
2833
|
+
], je = (t) => {
|
|
2824
2834
|
const n = Math.sin(t * 127.1) * 43758.5453;
|
|
2825
2835
|
return n - Math.floor(n);
|
|
2826
|
-
},
|
|
2827
|
-
angle:
|
|
2828
|
-
width: 0.02 +
|
|
2829
|
-
dashes: 22 +
|
|
2830
|
-
phase:
|
|
2831
|
-
drift: (
|
|
2832
|
-
speed: 0.4 +
|
|
2833
|
-
})),
|
|
2834
|
-
const d = n *
|
|
2835
|
-
for (let
|
|
2836
|
-
const
|
|
2837
|
-
for (let
|
|
2838
|
-
const
|
|
2839
|
-
let
|
|
2840
|
-
for (const
|
|
2841
|
-
const
|
|
2842
|
-
if (
|
|
2843
|
-
const C = 0.5 + 0.5 * Math.sin(
|
|
2844
|
-
|
|
2836
|
+
}, zn = Array.from({ length: Dn }, (t, n) => ({
|
|
2837
|
+
angle: je(n + 1) * Math.PI * 2,
|
|
2838
|
+
width: 0.02 + je(n + 21) * 0.05,
|
|
2839
|
+
dashes: 22 + je(n + 41) * 26,
|
|
2840
|
+
phase: je(n + 61) * Math.PI * 2,
|
|
2841
|
+
drift: (je(n + 81) - 0.5) * 0.09,
|
|
2842
|
+
speed: 0.4 + je(n + 101) * 0.7
|
|
2843
|
+
})), Xn = (t) => Math.atan2(Math.sin(t), Math.cos(t)), Gn = (t) => t < 0.2 ? -1 : t < 0.4 ? 0 : t < 0.6 ? 1 : t < 0.8 ? 2 : 3, Yn = (t, n, r, o, l, i) => {
|
|
2844
|
+
const d = n * o / 2, h = r * l / 2, g = n * o * 0.5;
|
|
2845
|
+
for (let $ = 0; $ < r; $++) {
|
|
2846
|
+
const x = ($ + 0.5) * l - h;
|
|
2847
|
+
for (let k = 0; k < n; k++) {
|
|
2848
|
+
const S = (k + 0.5) * o - d, M = Math.hypot(S, x) / g, b = Math.atan2(x, S);
|
|
2849
|
+
let _ = 0;
|
|
2850
|
+
for (const E of zn) {
|
|
2851
|
+
const s = Xn(b - E.angle - i * E.drift), N = Math.exp(-(s * s) / (2 * E.width * E.width));
|
|
2852
|
+
if (N < 0.01) continue;
|
|
2853
|
+
const C = 0.5 + 0.5 * Math.sin(M * E.dashes - i * E.speed + E.phase);
|
|
2854
|
+
_ = Math.max(_, N * (0.3 + 0.7 * C));
|
|
2845
2855
|
}
|
|
2846
|
-
|
|
2847
|
-
const
|
|
2848
|
-
|
|
2856
|
+
_ *= 0.7 + 0.6 * je(k * 3.17 + $ * 7.31);
|
|
2857
|
+
const f = Math.min(1, Math.max(0, (M - 0.12) / 0.3));
|
|
2858
|
+
_ *= f * f * (3 - 2 * f), t[$ * n + k] = Math.min(
|
|
2849
2859
|
1,
|
|
2850
|
-
Math.max(0, (
|
|
2860
|
+
Math.max(0, (_ - 0.58) * In + 0.5)
|
|
2851
2861
|
);
|
|
2852
2862
|
}
|
|
2853
2863
|
}
|
|
2854
|
-
},
|
|
2855
|
-
const i = Math.min(l *
|
|
2856
|
-
t.beginPath(), t.moveTo(d + i, r), t.lineTo(h - i, r), t.quadraticCurveTo(h, r, h, r + i), t.lineTo(h,
|
|
2857
|
-
},
|
|
2858
|
-
t.clearRect(0, 0, x
|
|
2859
|
-
for (let
|
|
2860
|
-
for (let
|
|
2861
|
-
const
|
|
2862
|
-
if (
|
|
2863
|
-
const
|
|
2864
|
-
let
|
|
2865
|
-
if (
|
|
2866
|
-
const
|
|
2867
|
-
let C = (
|
|
2864
|
+
}, jn = (t, n, r, o, l) => {
|
|
2865
|
+
const i = Math.min(l * Hn, (o - r) / 2), d = n - l / 2, h = n + l / 2;
|
|
2866
|
+
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();
|
|
2867
|
+
}, Wn = (t, n, r, o, l, i, d, h, g, $, x) => {
|
|
2868
|
+
t.clearRect(0, 0, $, x);
|
|
2869
|
+
for (let k = 0; k < o; k++)
|
|
2870
|
+
for (let S = 0; S < r; S++) {
|
|
2871
|
+
const M = k * r + S, b = n[M];
|
|
2872
|
+
if (b < 0) continue;
|
|
2873
|
+
const _ = k > 0 ? n[M - r] : -1, f = k < o - 1 ? n[M + r] : -1;
|
|
2874
|
+
let E = k * i, s = (k + 1) * i;
|
|
2875
|
+
if (_ !== b && (E += $t * 0.5 * i), f !== b && (s -= $t * 0.5 * i), s <= E) continue;
|
|
2876
|
+
const N = Math.max(1, 2 * En[b] * Pn * l);
|
|
2877
|
+
let C = (S + 0.5) * l, F = 1;
|
|
2868
2878
|
if (h) {
|
|
2869
|
-
const
|
|
2870
|
-
if (
|
|
2871
|
-
const z = (1 -
|
|
2872
|
-
C +=
|
|
2879
|
+
const B = C - h.x, H = (E + s) / 2 - h.y, ae = Math.hypot(B, H) / g;
|
|
2880
|
+
if (ae < 1) {
|
|
2881
|
+
const z = (1 - ae) ** 2;
|
|
2882
|
+
C += B * 0.06 * z, F = 1 - 0.7 * z;
|
|
2873
2883
|
}
|
|
2874
2884
|
}
|
|
2875
|
-
t.globalAlpha =
|
|
2885
|
+
t.globalAlpha = F, t.fillStyle = d[b % On], jn(t, C, E, s, N), t.fill();
|
|
2876
2886
|
}
|
|
2877
2887
|
t.globalAlpha = 1;
|
|
2878
2888
|
};
|
|
2879
|
-
function
|
|
2880
|
-
const t =
|
|
2889
|
+
function Vn() {
|
|
2890
|
+
const t = Be(null);
|
|
2881
2891
|
return Ce(() => {
|
|
2882
2892
|
const n = t.current, r = n?.parentElement;
|
|
2883
2893
|
if (!n || !r || typeof window > "u") return;
|
|
2884
|
-
const
|
|
2885
|
-
if (!
|
|
2894
|
+
const o = n.getContext("2d");
|
|
2895
|
+
if (!o) return;
|
|
2886
2896
|
const l = window.matchMedia("(prefers-reduced-motion: reduce)"), i = window.matchMedia("(hover: hover) and (pointer: fine)");
|
|
2887
|
-
let d = 0, h = 0,
|
|
2897
|
+
let d = 0, h = 0, g = 0, $ = 0, x = 0, k = 0, S = 0, M = !0, b = 0, _ = 0, f = new Float32Array(0), E = new Int8Array(0), s = [...xt], N = null;
|
|
2888
2898
|
const C = () => {
|
|
2889
|
-
const
|
|
2890
|
-
|
|
2891
|
-
},
|
|
2892
|
-
|
|
2893
|
-
for (let
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
s,
|
|
2897
|
-
F,
|
|
2898
|
-
m,
|
|
2899
|
-
x,
|
|
2900
|
-
M,
|
|
2901
|
-
$,
|
|
2899
|
+
const G = getComputedStyle(r);
|
|
2900
|
+
s = Un.map((ne, pe) => G.getPropertyValue(ne).trim() || xt[pe]);
|
|
2901
|
+
}, F = () => {
|
|
2902
|
+
Yn(f, g, $, x, k, b);
|
|
2903
|
+
for (let G = 0; G < f.length; G++)
|
|
2904
|
+
E[G] = Gn(f[G]);
|
|
2905
|
+
Wn(
|
|
2902
2906
|
o,
|
|
2903
|
-
|
|
2907
|
+
E,
|
|
2908
|
+
g,
|
|
2909
|
+
$,
|
|
2910
|
+
x,
|
|
2911
|
+
k,
|
|
2912
|
+
s,
|
|
2913
|
+
N,
|
|
2904
2914
|
Math.min(d, h) * 0.18,
|
|
2905
2915
|
d,
|
|
2906
2916
|
h
|
|
2907
2917
|
);
|
|
2908
|
-
},
|
|
2909
|
-
|
|
2910
|
-
},
|
|
2911
|
-
cancelAnimationFrame(
|
|
2912
|
-
},
|
|
2913
|
-
const
|
|
2914
|
-
d =
|
|
2918
|
+
}, B = (G) => {
|
|
2919
|
+
S = 0, !(!M || document.hidden) && (_ && (b += Math.min(80, G - _) * 28e-5), _ = G, F(), l.matches || (S = requestAnimationFrame(B)));
|
|
2920
|
+
}, H = () => {
|
|
2921
|
+
cancelAnimationFrame(S), S = 0, _ = 0, M && !document.hidden && (S = requestAnimationFrame(B));
|
|
2922
|
+
}, ae = () => {
|
|
2923
|
+
const G = r.getBoundingClientRect();
|
|
2924
|
+
d = G.width, h = G.height, g = Math.max(1, Math.round(d * kt)), $ = Math.max(1, Math.round(h * kt)), x = d / g, k = h / $, f = new Float32Array(g * $), E = new Int8Array(g * $);
|
|
2915
2925
|
const ne = Math.min(window.devicePixelRatio || 1, 2);
|
|
2916
|
-
n.width = Math.round(d * ne), n.height = Math.round(h * ne),
|
|
2917
|
-
}, z = (
|
|
2918
|
-
if (l.matches || !i.matches ||
|
|
2926
|
+
n.width = Math.round(d * ne), n.height = Math.round(h * ne), o.setTransform(ne, 0, 0, ne, 0, 0), C(), H();
|
|
2927
|
+
}, z = (G) => {
|
|
2928
|
+
if (l.matches || !i.matches || G.pointerType === "touch")
|
|
2919
2929
|
return;
|
|
2920
2930
|
const ne = r.getBoundingClientRect();
|
|
2921
|
-
|
|
2922
|
-
x:
|
|
2923
|
-
y:
|
|
2924
|
-
},
|
|
2925
|
-
},
|
|
2926
|
-
|
|
2927
|
-
},
|
|
2928
|
-
C(),
|
|
2931
|
+
N = {
|
|
2932
|
+
x: G.clientX - ne.left,
|
|
2933
|
+
y: G.clientY - ne.top
|
|
2934
|
+
}, S || H();
|
|
2935
|
+
}, ie = () => {
|
|
2936
|
+
N = null, S || H();
|
|
2937
|
+
}, Y = new MutationObserver(() => {
|
|
2938
|
+
C(), S || H();
|
|
2929
2939
|
});
|
|
2930
|
-
|
|
2940
|
+
Y.observe(document.body, {
|
|
2931
2941
|
attributes: !0,
|
|
2932
2942
|
attributeFilter: ["data-theme"],
|
|
2933
2943
|
subtree: !0
|
|
2934
2944
|
});
|
|
2935
|
-
const
|
|
2936
|
-
|
|
2937
|
-
const te = new IntersectionObserver((
|
|
2938
|
-
|
|
2945
|
+
const Q = new ResizeObserver(ae);
|
|
2946
|
+
Q.observe(r);
|
|
2947
|
+
const te = new IntersectionObserver((G) => {
|
|
2948
|
+
M = G.some((ne) => ne.isIntersecting), H();
|
|
2939
2949
|
});
|
|
2940
|
-
return te.observe(n), window.addEventListener("pointermove", z, { passive: !0 }), window.addEventListener("pointerleave",
|
|
2941
|
-
cancelAnimationFrame(
|
|
2950
|
+
return te.observe(n), window.addEventListener("pointermove", z, { passive: !0 }), window.addEventListener("pointerleave", ie), l.addEventListener("change", H), document.addEventListener("visibilitychange", H), ae(), () => {
|
|
2951
|
+
cancelAnimationFrame(S), Q.disconnect(), te.disconnect(), Y.disconnect(), window.removeEventListener("pointermove", z), window.removeEventListener("pointerleave", ie), l.removeEventListener("change", H), document.removeEventListener("visibilitychange", H);
|
|
2942
2952
|
};
|
|
2943
2953
|
}, []), t;
|
|
2944
2954
|
}
|
|
2945
|
-
function
|
|
2946
|
-
const n =
|
|
2955
|
+
function Zr({ className: t }) {
|
|
2956
|
+
const n = Vn();
|
|
2947
2957
|
return /* @__PURE__ */ a(
|
|
2948
2958
|
"div",
|
|
2949
2959
|
{
|
|
2950
|
-
className: `${
|
|
2960
|
+
className: `${Ye["rp-line-field-background"]}${t ? ` ${t}` : ""}`,
|
|
2951
2961
|
"aria-hidden": "true",
|
|
2952
2962
|
children: [
|
|
2953
2963
|
/* @__PURE__ */ e(
|
|
2954
2964
|
"canvas",
|
|
2955
2965
|
{
|
|
2956
|
-
className:
|
|
2966
|
+
className: Ye["rp-line-field-canvas"],
|
|
2957
2967
|
ref: n,
|
|
2958
2968
|
tabIndex: -1
|
|
2959
2969
|
}
|
|
2960
2970
|
),
|
|
2961
|
-
/* @__PURE__ */ e("div", { className:
|
|
2962
|
-
/* @__PURE__ */ e("div", { className:
|
|
2963
|
-
/* @__PURE__ */ e("div", { className:
|
|
2964
|
-
/* @__PURE__ */ e("div", { className:
|
|
2965
|
-
/* @__PURE__ */ e("div", { className:
|
|
2971
|
+
/* @__PURE__ */ e("div", { className: Ye["rp-line-field-veil"] }),
|
|
2972
|
+
/* @__PURE__ */ e("div", { className: Ye["rp-line-field-top"] }),
|
|
2973
|
+
/* @__PURE__ */ e("div", { className: Ye["rp-line-field-left"] }),
|
|
2974
|
+
/* @__PURE__ */ e("div", { className: Ye["rp-line-field-right"] }),
|
|
2975
|
+
/* @__PURE__ */ e("div", { className: Ye["rp-line-field-bottom"] })
|
|
2966
2976
|
]
|
|
2967
2977
|
}
|
|
2968
2978
|
);
|
|
2969
2979
|
}
|
|
2970
|
-
const
|
|
2980
|
+
const Kn = {
|
|
2971
2981
|
"rp-dotted-background-canvas": "rp_BackgroundDotted-module_rp-dotted-background-canvas_-HlLHshb"
|
|
2972
2982
|
};
|
|
2973
|
-
function
|
|
2974
|
-
const n =
|
|
2983
|
+
function Jn({ background: t }) {
|
|
2984
|
+
const n = qt(!0);
|
|
2975
2985
|
return /* @__PURE__ */ e(
|
|
2976
2986
|
"canvas",
|
|
2977
2987
|
{
|
|
2978
|
-
className: `${
|
|
2988
|
+
className: `${Kn["rp-dotted-background-canvas"]} rp-download-ripple`,
|
|
2979
2989
|
style: t === void 0 ? void 0 : { background: t },
|
|
2980
2990
|
ref: n,
|
|
2981
2991
|
"aria-hidden": "true"
|
|
2982
2992
|
}
|
|
2983
2993
|
);
|
|
2984
2994
|
}
|
|
2985
|
-
const
|
|
2986
|
-
canvas:
|
|
2987
|
-
},
|
|
2995
|
+
const Zn = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", Qn = {
|
|
2996
|
+
canvas: Zn
|
|
2997
|
+
}, Qe = [
|
|
2988
2998
|
"#244cf0",
|
|
2989
2999
|
"#3459f1",
|
|
2990
3000
|
"#4869f3",
|
|
@@ -2997,182 +3007,179 @@ const nr = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", rr = {
|
|
|
2997
3007
|
"#d7defc",
|
|
2998
3008
|
"#e9edfe",
|
|
2999
3009
|
"#ffffff"
|
|
3000
|
-
],
|
|
3001
|
-
function
|
|
3002
|
-
const r = (
|
|
3003
|
-
let
|
|
3004
|
-
return
|
|
3005
|
-
},
|
|
3006
|
-
return
|
|
3010
|
+
], Ct = 24, At = 90, Me = 32, it = 1, pt = 900;
|
|
3011
|
+
function lt(t, n) {
|
|
3012
|
+
const r = (M, b) => {
|
|
3013
|
+
let _ = Math.imul(M, 374761393) + Math.imul(b, 668265263);
|
|
3014
|
+
return _ = Math.imul(_ ^ _ >>> 13, 1274126177), ((_ ^ _ >>> 16) >>> 0) / 4294967296;
|
|
3015
|
+
}, o = Math.floor(t), l = Math.floor(n), i = t - o, d = n - l, h = i * i * (3 - 2 * i), g = d * d * (3 - 2 * d), $ = r(o, l), x = r(o + 1, l), k = r(o, l + 1), S = r(o + 1, l + 1);
|
|
3016
|
+
return $ + (x - $) * h + (k - $) * g + ($ - x - k + S) * h * g;
|
|
3007
3017
|
}
|
|
3008
|
-
function
|
|
3009
|
-
const
|
|
3018
|
+
function et(t, n, r) {
|
|
3019
|
+
const o = Math.floor(r), l = r - o, i = l * l * (3 - 2 * l), d = lt(t + o * 137.3, n + o * 193.7), h = lt(t + (o + 1) * 137.3, n + (o + 1) * 193.7);
|
|
3010
3020
|
return d + (h - d) * i;
|
|
3011
3021
|
}
|
|
3012
|
-
function
|
|
3013
|
-
const l = t / 220 +
|
|
3022
|
+
function er(t, n, r, o) {
|
|
3023
|
+
const l = t / 220 + o * 0.12, i = n / 220, d = (et(l * 0.8, i * 0.8, r * 0.13 + 11.3) - 0.5) * 2.8, h = (et(l * 0.8 + 37, i * 0.8 + 71, r * 0.11 + 29.7) - 0.5) * 2.8, g = l + d, $ = i + h, x = et(g, $, r * 0.09 + 47.2), k = et(g * 2, $ * 2, r * 0.17 + 73.8), S = et(
|
|
3014
3024
|
l * 0.65 + 19,
|
|
3015
3025
|
i * 0.65 + 43,
|
|
3016
3026
|
r * 0.12 + 97.5
|
|
3017
3027
|
);
|
|
3018
|
-
return 0.5 + Math.sin((
|
|
3028
|
+
return 0.5 + Math.sin((g * 0.62 + $) * 2.2 + x * 5.5 + (S - 0.5) * 5) * 0.35 + (k - 0.5) * 0.32;
|
|
3019
3029
|
}
|
|
3020
|
-
function
|
|
3030
|
+
function Qr({
|
|
3021
3031
|
scene: t,
|
|
3022
|
-
cellSize: n =
|
|
3032
|
+
cellSize: n = Ct,
|
|
3023
3033
|
density: r = 1,
|
|
3024
|
-
speed:
|
|
3034
|
+
speed: o = 1,
|
|
3025
3035
|
step: l = 0
|
|
3026
3036
|
}) {
|
|
3027
|
-
const i =
|
|
3037
|
+
const i = Be(null), d = Be(t), h = Number.isFinite(r) ? Math.min(4, Math.max(0.25, r)) : 1, g = Number.isFinite(n) ? Math.max(4, n) : Ct, $ = Math.max(4, g / Math.sqrt(h)), x = Be($), k = Be(o), S = Be(Number.isFinite(l) ? l : 0), M = Be(null);
|
|
3028
3038
|
return Ce(() => {
|
|
3029
3039
|
d.current = t;
|
|
3030
3040
|
}, [t]), Ce(() => {
|
|
3031
|
-
|
|
3032
|
-
}, [
|
|
3033
|
-
|
|
3034
|
-
}, [
|
|
3035
|
-
|
|
3041
|
+
x.current = $, M.current?.();
|
|
3042
|
+
}, [$]), Ce(() => {
|
|
3043
|
+
k.current = Number.isFinite(o) ? Math.max(0, o) : 1;
|
|
3044
|
+
}, [o]), Ce(() => {
|
|
3045
|
+
S.current = Number.isFinite(l) ? l : 0, M.current?.();
|
|
3036
3046
|
}, [l]), Ce(() => {
|
|
3037
|
-
const
|
|
3038
|
-
if (!
|
|
3039
|
-
const
|
|
3040
|
-
let
|
|
3047
|
+
const b = i.current, _ = b?.getContext("2d");
|
|
3048
|
+
if (!b || !_) return;
|
|
3049
|
+
const f = matchMedia("(prefers-reduced-motion: reduce)"), E = matchMedia("(any-hover: hover)"), s = b.parentElement ?? b;
|
|
3050
|
+
let N = 0, C = 0, F = 0, B = !1, H = d.current * 7.13, ae = d.current, z = 0, ie = 0, Y = S.current * it, Q = Y, te = Y, G = pt, ne = Y, pe = 0;
|
|
3041
3051
|
const j = { x: 0, y: 0, active: !1, down: !1, at: 0, id: -1 };
|
|
3042
|
-
let
|
|
3043
|
-
const
|
|
3044
|
-
|
|
3045
|
-
const
|
|
3046
|
-
|
|
3047
|
-
},
|
|
3048
|
-
const
|
|
3052
|
+
let w = 0, I = 0, m = new Float32Array(0), y = new Float32Array(0), v = new Float32Array(0), q = new Float32Array(0), A = new Float32Array(0), D = new Float32Array(0);
|
|
3053
|
+
const T = () => {
|
|
3054
|
+
w = Math.ceil(C / Me) + 1, I = Math.ceil(F / Me) + 1;
|
|
3055
|
+
const R = w * I;
|
|
3056
|
+
m = new Float32Array(R), y = new Float32Array(R), v = new Float32Array(R), q = new Float32Array(R), A = new Float32Array(R), D = new Float32Array(R);
|
|
3057
|
+
}, J = (R, X) => {
|
|
3058
|
+
const V = Math.max(0, Math.min(w - 1, R / Me)), Z = Math.max(0, Math.min(I - 1, X / Me)), p = Math.floor(V), u = Math.floor(Z), P = Math.min(p + 1, w - 1), K = Math.min(u + 1, I - 1), U = V - p, O = Z - u, se = (Xe) => Xe[u * w + p] * (1 - U) * (1 - O) + Xe[u * w + P] * U * (1 - O) + Xe[K * w + p] * (1 - U) * O + Xe[K * w + P] * U * O, oe = u * w + p, le = u * w + P, ce = K * w + p, ke = K * w + P, Ee = ((m[le] - m[oe]) * (1 - O) + (m[ke] - m[ce]) * O) / Me, Ve = ((y[ce] - y[oe]) * (1 - U) + (y[ke] - y[le]) * U) / Me;
|
|
3049
3059
|
return {
|
|
3050
|
-
x:
|
|
3051
|
-
y:
|
|
3052
|
-
crest: Math.min(1, Math.max(0,
|
|
3060
|
+
x: se(m),
|
|
3061
|
+
y: se(y),
|
|
3062
|
+
crest: Math.min(1, Math.max(0, Ee + Ve))
|
|
3053
3063
|
};
|
|
3054
|
-
},
|
|
3055
|
-
const
|
|
3056
|
-
for (let
|
|
3057
|
-
for (let
|
|
3058
|
-
const
|
|
3059
|
-
-(
|
|
3060
|
-
),
|
|
3061
|
-
|
|
3062
|
-
const
|
|
3064
|
+
}, ee = (R, X, V, Z, p = 0, u = At * (j.down ? 1.25 : 1)) => {
|
|
3065
|
+
const P = J(R, X);
|
|
3066
|
+
for (let K = Math.max(0, Math.floor((X - u * 2) / Me)); K < Math.min(I, Math.ceil((X + u * 2) / Me)); K++)
|
|
3067
|
+
for (let U = Math.max(0, Math.floor((R - u * 2) / Me)); U < Math.min(w, Math.ceil((R + u * 2) / Me)); U++) {
|
|
3068
|
+
const O = K * w + U, se = U * Me - R - (p ? m[O] - P.x : 0), oe = K * Me - X - (p ? y[O] - P.y : 0), le = Math.exp(
|
|
3069
|
+
-(se * se + oe * oe) / (u * u * 0.5)
|
|
3070
|
+
), ce = p ? 1 / (1 + (Math.hypot(m[O], y[O]) / 48) ** 2) : 1, ke = (V - se * p) * le * ce, Ee = (Z - oe * p) * le * ce;
|
|
3071
|
+
v[O] += ke, q[O] += Ee, p && (m[O] += ke * 0.02, y[O] += Ee * 0.02);
|
|
3072
|
+
const Ve = Math.max(
|
|
3063
3073
|
1,
|
|
3064
|
-
Math.hypot(
|
|
3074
|
+
Math.hypot(v[O], q[O]) / 900
|
|
3065
3075
|
);
|
|
3066
|
-
|
|
3076
|
+
v[O] /= Ve, q[O] /= Ve;
|
|
3067
3077
|
}
|
|
3068
|
-
},
|
|
3069
|
-
const
|
|
3070
|
-
for (let
|
|
3071
|
-
for (let
|
|
3072
|
-
for (let
|
|
3073
|
-
const
|
|
3074
|
-
const
|
|
3075
|
-
return le[
|
|
3078
|
+
}, de = (R) => {
|
|
3079
|
+
const X = Math.ceil(R / 8), V = R / X / 1e3;
|
|
3080
|
+
for (let Z = 0; Z < X; Z++) {
|
|
3081
|
+
for (let p = 0; p < I; p++)
|
|
3082
|
+
for (let u = 0; u < w; u++) {
|
|
3083
|
+
const P = p * w + u, K = p * w + Math.max(0, u - 1), U = p * w + Math.min(w - 1, u + 1), O = Math.max(0, p - 1) * w + u, se = Math.min(I - 1, p + 1) * w + u, oe = (le, ce) => {
|
|
3084
|
+
const ke = (le[K] + le[U] + le[O] + le[se] - le[P] * 4) * 2.2, Ee = (ce[K] + ce[U] + ce[O] + ce[se] - ce[P] * 4) * 36;
|
|
3085
|
+
return le[P] + (ke + Ee - le[P] * 1.7 - ce[P] * 0.9) * V;
|
|
3076
3086
|
};
|
|
3077
|
-
|
|
3087
|
+
A[P] = oe(v, m), D[P] = oe(q, y);
|
|
3078
3088
|
}
|
|
3079
|
-
[
|
|
3080
|
-
for (let
|
|
3081
|
-
p
|
|
3089
|
+
[v, A] = [A, v], [q, D] = [D, q];
|
|
3090
|
+
for (let p = 0; p < m.length; p++) {
|
|
3091
|
+
m[p] += v[p] * V, y[p] += q[p] * V;
|
|
3092
|
+
const u = Math.max(
|
|
3093
|
+
1,
|
|
3094
|
+
Math.hypot(m[p], y[p]) / 72
|
|
3095
|
+
);
|
|
3096
|
+
m[p] /= u, y[p] /= u;
|
|
3097
|
+
}
|
|
3082
3098
|
}
|
|
3083
|
-
},
|
|
3084
|
-
const
|
|
3085
|
-
(Math.floor(u / Ee) + 0.5) * Ee - D.x,
|
|
3086
|
-
(Math.floor(A / Ee) + 0.5) * Ee - D.y
|
|
3087
|
-
), G = O(M.current), K = O(M.current / 2), oe = Math.floor(u / M.current), ae = Math.floor(A / M.current), le = ot(oe * 17 + 31, ae * 29 + 47), re = ne * (0.55 + le * 0.45) + le * 19, be = Math.floor(re), Me = re - be, ct = ot(oe + be * 193, ae - be * 137), Ke = F.matches || ct < 0.84 ? 0 : Math.sin(Me * Math.PI) ** 6 * (0.02 + le * 0.025), gt = G + (K - G) * g, Yt = D.crest * 0.16 * Math.max(0, gt) ** 2, jt = gt + Yt + Ke, ft = Math.max(
|
|
3099
|
+
}, be = (R, X) => er(R, X, ne, H), ye = (R, X, V) => {
|
|
3100
|
+
const Z = R + V / 2, p = X + V / 2, u = J(Z, p), P = be(Z - u.x, p - u.y), K = Math.floor(Z / x.current), U = Math.floor(p / x.current), O = lt(K * 17 + 31, U * 29 + 47), se = ne * (0.55 + O * 0.45) + O * 19, oe = Math.floor(se), le = se - oe, ce = lt(K + oe * 193, U - oe * 137), ke = f.matches || ce < 0.84 ? 0 : Math.sin(le * Math.PI) ** 6 * (0.02 + O * 0.025), Ee = u.crest * 0.16 * Math.max(0, P) ** 2, Ve = P + Ee + ke, Xe = Math.max(
|
|
3088
3101
|
0,
|
|
3089
|
-
Math.min(
|
|
3090
|
-
), dt = Math.floor(
|
|
3091
|
-
|
|
3092
|
-
const
|
|
3093
|
-
return Math.round(
|
|
3094
|
-
}).join(",") + ")",
|
|
3095
|
-
},
|
|
3096
|
-
|
|
3097
|
-
const
|
|
3098
|
-
|
|
3099
|
-
const
|
|
3100
|
-
|
|
3101
|
-
const
|
|
3102
|
-
|
|
3103
|
-
for (let
|
|
3104
|
-
for (let
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
if (E.set(G, ae < 1e-3 ? 0 : ae), ae > 1e-3) {
|
|
3110
|
-
const re = M.current / 2;
|
|
3111
|
-
for (let be = 0; be < 2; be++)
|
|
3112
|
-
for (let Me = 0; Me < 2; Me++)
|
|
3113
|
-
de(D + Me * re, A + be * re, re, ae);
|
|
3114
|
-
} else
|
|
3115
|
-
de(D, A, M.current, 0);
|
|
3116
|
-
}
|
|
3117
|
-
U && !document.hidden && !F.matches && (C = requestAnimationFrame(Ae));
|
|
3118
|
-
}, ue = () => {
|
|
3119
|
-
cancelAnimationFrame(C), he = 0, document.hidden || Ae(performance.now());
|
|
3102
|
+
Math.min(Qe.length - 1, Ve * 1.08 * (Qe.length - 1))
|
|
3103
|
+
), dt = Math.floor(Xe), zt = Xe - dt, Xt = Qe[dt], Gt = Qe[Math.min(dt + 1, Qe.length - 1)];
|
|
3104
|
+
_.fillStyle = "rgb(" + [1, 3, 5].map((nt) => {
|
|
3105
|
+
const gt = parseInt(Xt.slice(nt, nt + 2), 16), Yt = parseInt(Gt.slice(nt, nt + 2), 16);
|
|
3106
|
+
return Math.round(gt + (Yt - gt) * zt);
|
|
3107
|
+
}).join(",") + ")", _.fillRect(R, X, V + 0.6, V + 0.6);
|
|
3108
|
+
}, he = (R) => {
|
|
3109
|
+
N = 0;
|
|
3110
|
+
const X = pe ? Math.min(R - pe, 64) : 16;
|
|
3111
|
+
pe = R, ae = d.current, H += (ae * 7.13 - H) * (1 - Math.exp(-X / 500)), f.matches || (z += X / 1e3 * k.current, de(X));
|
|
3112
|
+
const V = S.current * it + ie;
|
|
3113
|
+
V !== te && (Q = Y, te = V, G = 0), G = Math.min(pt, G + X);
|
|
3114
|
+
const Z = f.matches ? 1 : G / pt, p = Z * Z * (3 - 2 * Z);
|
|
3115
|
+
Y = Q + (te - Q) * p, ne = z + Y;
|
|
3116
|
+
for (let u = 0; u < F; u += x.current)
|
|
3117
|
+
for (let P = 0; P < C; P += x.current)
|
|
3118
|
+
ye(P, u, x.current);
|
|
3119
|
+
B && !document.hidden && !f.matches && (N = requestAnimationFrame(he));
|
|
3120
|
+
}, me = () => {
|
|
3121
|
+
cancelAnimationFrame(N), pe = 0, document.hidden || he(performance.now());
|
|
3120
3122
|
};
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
+
M.current = () => {
|
|
3124
|
+
N || me();
|
|
3123
3125
|
};
|
|
3124
|
-
const
|
|
3125
|
-
const
|
|
3126
|
-
(
|
|
3127
|
-
const
|
|
3128
|
-
|
|
3129
|
-
},
|
|
3126
|
+
const Ae = () => {
|
|
3127
|
+
const R = b.getBoundingClientRect();
|
|
3128
|
+
(C !== R.width || F !== R.height) && (C = R.width, F = R.height, T()), w || T();
|
|
3129
|
+
const X = Math.min(devicePixelRatio || 1, 2);
|
|
3130
|
+
b.width = Math.round(C * X), b.height = Math.round(F * X), _.setTransform(X, 0, 0, X, 0, 0), me();
|
|
3131
|
+
}, Re = (R) => R.target instanceof Element && !!R.target.closest(
|
|
3130
3132
|
'a,button,input,textarea,select,[contenteditable],[role="button"],[role="switch"],[role="combobox"],[role="slider"]'
|
|
3131
|
-
),
|
|
3132
|
-
if (
|
|
3133
|
+
), Fe = (R) => {
|
|
3134
|
+
if (f.matches || Re(R) || (R.pointerType === "touch" || !E.matches) && !j.down || j.down && R.pointerId !== j.id)
|
|
3133
3135
|
return;
|
|
3134
|
-
const
|
|
3135
|
-
if (j.active &&
|
|
3136
|
-
const
|
|
3136
|
+
const X = b.getBoundingClientRect(), V = performance.now(), Z = R.clientX - X.left, p = R.clientY - X.top;
|
|
3137
|
+
if (j.active && V - j.at < 150) {
|
|
3138
|
+
const u = Z - j.x, P = p - j.y, K = Math.hypot(u, P), U = Math.max(8, V - j.at) / 1e3, O = K / U, se = (j.down ? 3 : 0.65) * (0.5 + Math.min(O, 1800) / 900), oe = Math.min(
|
|
3137
3139
|
64,
|
|
3138
|
-
Math.max(1, Math.ceil(
|
|
3139
|
-
), le = Math.min(1, 240 / Math.max(1,
|
|
3140
|
-
for (let
|
|
3141
|
-
|
|
3142
|
-
j.x +
|
|
3143
|
-
j.y +
|
|
3144
|
-
|
|
3145
|
-
|
|
3140
|
+
Math.max(1, Math.ceil(K / (Me / 2)))
|
|
3141
|
+
), le = Math.min(1, 240 / Math.max(1, K));
|
|
3142
|
+
for (let ce = 1; ce <= oe; ce++)
|
|
3143
|
+
ee(
|
|
3144
|
+
j.x + u * ce / oe,
|
|
3145
|
+
j.y + P * ce / oe,
|
|
3146
|
+
u * le * se / oe,
|
|
3147
|
+
P * le * se / oe
|
|
3146
3148
|
);
|
|
3147
3149
|
}
|
|
3148
|
-
Object.assign(j, { x:
|
|
3149
|
-
},
|
|
3150
|
-
if (
|
|
3150
|
+
Object.assign(j, { x: Z, y: p, at: V, active: !0 }), N || me();
|
|
3151
|
+
}, Le = (R) => {
|
|
3152
|
+
if (f.matches || Re(R) || !R.isPrimary || R.button !== 0)
|
|
3151
3153
|
return;
|
|
3152
|
-
const
|
|
3154
|
+
const X = b.getBoundingClientRect();
|
|
3153
3155
|
Object.assign(j, {
|
|
3154
|
-
x:
|
|
3155
|
-
y:
|
|
3156
|
+
x: R.clientX - X.left,
|
|
3157
|
+
y: R.clientY - X.top,
|
|
3156
3158
|
at: performance.now(),
|
|
3157
3159
|
active: !0,
|
|
3158
3160
|
down: !0,
|
|
3159
|
-
id:
|
|
3160
|
-
})
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3161
|
+
id: R.pointerId
|
|
3162
|
+
});
|
|
3163
|
+
const V = Math.max(
|
|
3164
|
+
0,
|
|
3165
|
+
S.current * it + ie - Y
|
|
3166
|
+
);
|
|
3167
|
+
ie += Math.max(0, 5 * it - V), ee(j.x, j.y, 0, 0, -32, At * 1.2), N || me();
|
|
3168
|
+
}, _e = (R) => {
|
|
3169
|
+
R.pointerId === j.id && (j.down = !1, j.id = -1);
|
|
3170
|
+
}, fe = () => {
|
|
3164
3171
|
j.active = !1, j.down = !1, j.id = -1;
|
|
3165
|
-
},
|
|
3166
|
-
|
|
3167
|
-
},
|
|
3168
|
-
|
|
3172
|
+
}, Ne = () => {
|
|
3173
|
+
fe(), f.matches && T(), me();
|
|
3174
|
+
}, qe = new ResizeObserver(Ae), Te = new IntersectionObserver((R) => {
|
|
3175
|
+
B = R.some((X) => X.isIntersecting), me();
|
|
3169
3176
|
});
|
|
3170
|
-
return
|
|
3171
|
-
|
|
3177
|
+
return qe.observe(b), Te.observe(b), f.addEventListener("change", Ne), E.addEventListener("change", Ne), s.addEventListener("pointermove", Fe), s.addEventListener("pointerdown", Le), s.addEventListener("pointerleave", fe), s.addEventListener("pointercancel", fe), window.addEventListener("pointerup", _e), window.addEventListener("blur", fe), document.addEventListener("visibilitychange", me), Ae(), () => {
|
|
3178
|
+
M.current = null, cancelAnimationFrame(N), qe.disconnect(), Te.disconnect(), f.removeEventListener("change", Ne), E.removeEventListener("change", Ne), s.removeEventListener("pointermove", Fe), s.removeEventListener("pointerdown", Le), s.removeEventListener("pointerleave", fe), s.removeEventListener("pointercancel", fe), window.removeEventListener("pointerup", _e), window.removeEventListener("blur", fe), document.removeEventListener("visibilitychange", me);
|
|
3172
3179
|
};
|
|
3173
|
-
}, []), /* @__PURE__ */ e("canvas", { ref: i, className:
|
|
3180
|
+
}, []), /* @__PURE__ */ e("canvas", { ref: i, className: Qn.canvas, "aria-hidden": "true" });
|
|
3174
3181
|
}
|
|
3175
|
-
const
|
|
3182
|
+
const tr = [
|
|
3176
3183
|
"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.",
|
|
3177
3184
|
"Different providers speak different protocols. A common interface carries messages across those boundaries while preserving the shape of each tool call.",
|
|
3178
3185
|
"Context follows the request. Earlier messages form the working memory of a conversation. A continuation returns to the source that owns its state.",
|
|
@@ -3201,30 +3208,30 @@ const sr = [
|
|
|
3201
3208
|
"The final token is only one part of completion. A terminal event tells the client that no further output is expected. Structured tools depend on that contract.",
|
|
3202
3209
|
"A shared connection reduces repetitive setup. Each local tool can use the same service while preserving its own interface, workspace, and interaction model.",
|
|
3203
3210
|
"Transparent provenance is a separate capability. Signed and verifiable model requests remain a future feature until a public verification path is available."
|
|
3204
|
-
],
|
|
3211
|
+
], Lt = (t) => {
|
|
3205
3212
|
const n = Math.max(0, Math.min(1, t));
|
|
3206
3213
|
return n * n * (3 - 2 * n);
|
|
3207
3214
|
};
|
|
3208
|
-
function
|
|
3215
|
+
function ei({
|
|
3209
3216
|
onComplete: t,
|
|
3210
3217
|
passages: n
|
|
3211
3218
|
}) {
|
|
3212
|
-
const r = n ??
|
|
3219
|
+
const r = n ?? tr, o = Be(null);
|
|
3213
3220
|
return Ce(() => {
|
|
3214
|
-
const l =
|
|
3221
|
+
const l = o.current, i = l?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
|
|
3215
3222
|
if (!l || !i || d.matches) {
|
|
3216
3223
|
t();
|
|
3217
3224
|
return;
|
|
3218
3225
|
}
|
|
3219
|
-
let h = 0,
|
|
3220
|
-
const
|
|
3221
|
-
h = innerWidth,
|
|
3222
|
-
const
|
|
3223
|
-
l.width = h *
|
|
3226
|
+
let h = 0, g = 0, $ = 0;
|
|
3227
|
+
const x = () => {
|
|
3228
|
+
h = innerWidth, g = innerHeight;
|
|
3229
|
+
const s = Math.min(devicePixelRatio || 1, 2);
|
|
3230
|
+
l.width = h * s, l.height = g * s, i.setTransform(s, 0, 0, s, 0, 0);
|
|
3224
3231
|
};
|
|
3225
|
-
|
|
3226
|
-
const
|
|
3227
|
-
text:
|
|
3232
|
+
x();
|
|
3233
|
+
const k = r.map((s, N) => ({
|
|
3234
|
+
text: s,
|
|
3228
3235
|
order: Math.random(),
|
|
3229
3236
|
x: Math.random() * 0.88 - 0.03,
|
|
3230
3237
|
y: Math.random() * 0.9 - 0.03,
|
|
@@ -3233,32 +3240,32 @@ function ii({
|
|
|
3233
3240
|
size: 9 + Math.random() * 13,
|
|
3234
3241
|
dark: Math.random() > 0.35,
|
|
3235
3242
|
phase: Math.random() * 1e3,
|
|
3236
|
-
index:
|
|
3237
|
-
})).sort((
|
|
3238
|
-
const
|
|
3239
|
-
i.globalAlpha = 1, i.fillStyle =
|
|
3240
|
-
for (const
|
|
3241
|
-
const
|
|
3242
|
-
i.save(), i.globalAlpha = 1 - C, i.fillStyle =
|
|
3243
|
-
let te =
|
|
3244
|
-
const ne =
|
|
3245
|
-
for (let
|
|
3246
|
-
const j = ne[
|
|
3247
|
-
if (te +
|
|
3248
|
-
const
|
|
3243
|
+
index: N
|
|
3244
|
+
})).sort((s, N) => s.order - N.order), S = 2500, M = 4e3, b = performance.now(), _ = (s) => {
|
|
3245
|
+
const N = (s - b) * M / S, C = Lt((N - 2900) / 850), F = Math.floor(N / 340);
|
|
3246
|
+
i.globalAlpha = 1, i.fillStyle = N < 650 || N >= 1600 ? "#101216" : "#fafafa", i.fillRect(0, 0, h, g);
|
|
3247
|
+
for (const B of k) {
|
|
3248
|
+
const H = B.x * h, ae = B.y * g, z = B.width * h, ie = B.height * g, Y = B.size * (N < 650 ? 1.6 : N < 1600 ? 1.15 : 1), Q = Y * 1.04;
|
|
3249
|
+
i.save(), i.globalAlpha = 1 - C, i.fillStyle = B.dark ? "#101216" : "#f4f5f7", i.fillRect(H, ae, z, ie), i.beginPath(), i.rect(H, ae, z, ie), i.clip(), i.font = Y + "px sans-serif", i.textBaseline = "top";
|
|
3250
|
+
let te = H, G = ae - (N * 0.012 + B.phase) % Q;
|
|
3251
|
+
const ne = B.text.split(" ");
|
|
3252
|
+
for (let pe = 0; pe < ne.length; pe++) {
|
|
3253
|
+
const j = ne[pe], w = i.measureText(j + " ").width;
|
|
3254
|
+
if (te + w > H + z && (te = H, G += Q), G > ae + ie) break;
|
|
3255
|
+
const I = B.index * 53 + pe * 17;
|
|
3249
3256
|
i.save();
|
|
3250
|
-
const
|
|
3251
|
-
if (i.translate(te + (
|
|
3252
|
-
i.restore(), te +=
|
|
3257
|
+
const m = Math.round((G - 7) / 14), y = 7 + Math.round((te - 7) / 14) * 14 + m % 2 * 7, v = 7 + m * 14;
|
|
3258
|
+
if (i.translate(te + (y - te) * C, G + (v - G) * C), i.scale(1 - C * 0.94, 1 - C * 0.94), N < 650 && (I + F) % 4 > 0) {
|
|
3259
|
+
i.restore(), te += w;
|
|
3253
3260
|
continue;
|
|
3254
3261
|
}
|
|
3255
|
-
(
|
|
3262
|
+
(I + F) % 8 < 3 ? (i.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(I + F) % 3], i.fillRect(0, 0, i.measureText(j).width, Q), i.fillStyle = (I + F) % 3 === 0 ? "#fff" : "#101216") : i.fillStyle = B.dark ? "#f5f8ff" : "#101216", i.fillText(N < 650 ? j.toUpperCase() : j, 0, 0), i.restore(), te += w;
|
|
3256
3263
|
}
|
|
3257
3264
|
i.restore();
|
|
3258
3265
|
}
|
|
3259
3266
|
if (C > 0) {
|
|
3260
|
-
const
|
|
3261
|
-
for (const [z,
|
|
3267
|
+
const B = document.querySelector(".rp-hero"), H = B?.getBoundingClientRect().height || g, ae = i.createLinearGradient(0, 0, 0, H);
|
|
3268
|
+
for (const [z, ie] of [
|
|
3262
3269
|
[0, "#0b205e"],
|
|
3263
3270
|
[0.35, "#214eaf"],
|
|
3264
3271
|
[0.55, "#3564cc"],
|
|
@@ -3266,29 +3273,29 @@ function ii({
|
|
|
3266
3273
|
[0.93, "#edf4ff"],
|
|
3267
3274
|
[1, "#fff"]
|
|
3268
3275
|
])
|
|
3269
|
-
|
|
3270
|
-
i.globalAlpha = C, i.fillStyle =
|
|
3271
|
-
for (let z = 7,
|
|
3272
|
-
for (let
|
|
3273
|
-
const
|
|
3274
|
-
-Math.pow((
|
|
3276
|
+
ae.addColorStop(z, ie);
|
|
3277
|
+
i.globalAlpha = C, i.fillStyle = ae, i.fillRect(0, 0, h, g);
|
|
3278
|
+
for (let z = 7, ie = 0; z < g; z += 14, ie++)
|
|
3279
|
+
for (let Y = 7 + ie % 2 * 7; Y < h; Y += 14) {
|
|
3280
|
+
const Q = Math.pow(Math.max(0, 1 - z / H), 0.6), te = 1 - Math.exp(
|
|
3281
|
+
-Math.pow((Y - h / 2) / (h * 0.28), 2) - Math.pow((z - H * 0.38) / (H * 0.24), 2)
|
|
3275
3282
|
) * 0.55;
|
|
3276
|
-
i.globalAlpha = C * 0.54 *
|
|
3283
|
+
i.globalAlpha = C * 0.54 * Q * te, i.strokeStyle = "#f5f8ff", i.lineWidth = 1.2, i.beginPath(), i.moveTo(Y - 3.5, z), i.lineTo(Y + 3.5, z), i.moveTo(Y, z - 3.5), i.lineTo(Y, z + 3.5), i.stroke();
|
|
3277
3284
|
}
|
|
3278
3285
|
}
|
|
3279
|
-
i.globalAlpha = 1, l.style.opacity = String(1 -
|
|
3286
|
+
i.globalAlpha = 1, l.style.opacity = String(1 - Lt((N - 3750) / 250)), N < M ? $ = requestAnimationFrame(_) : t();
|
|
3280
3287
|
};
|
|
3281
|
-
|
|
3282
|
-
const
|
|
3288
|
+
$ = requestAnimationFrame(_);
|
|
3289
|
+
const f = setTimeout(t, S + 300), E = () => {
|
|
3283
3290
|
d.matches && t();
|
|
3284
3291
|
};
|
|
3285
|
-
return addEventListener("resize",
|
|
3286
|
-
cancelAnimationFrame(
|
|
3292
|
+
return addEventListener("resize", x), d.addEventListener("change", E), () => {
|
|
3293
|
+
cancelAnimationFrame($), clearTimeout(f), removeEventListener("resize", x), d.removeEventListener("change", E);
|
|
3287
3294
|
};
|
|
3288
3295
|
}, [t, r]), /* @__PURE__ */ e(
|
|
3289
3296
|
"canvas",
|
|
3290
3297
|
{
|
|
3291
|
-
ref:
|
|
3298
|
+
ref: o,
|
|
3292
3299
|
"aria-hidden": "true",
|
|
3293
3300
|
style: {
|
|
3294
3301
|
position: "fixed",
|
|
@@ -3301,27 +3308,27 @@ function ii({
|
|
|
3301
3308
|
}
|
|
3302
3309
|
);
|
|
3303
3310
|
}
|
|
3304
|
-
const
|
|
3311
|
+
const ar = {
|
|
3305
3312
|
"rp-effect-card": "rp_EffectCard-module_rp-effect-card_hcD4035l",
|
|
3306
3313
|
"rp-effect-content": "rp_EffectCard-module_rp-effect-content_4Oy-i-OP"
|
|
3307
|
-
},
|
|
3308
|
-
function
|
|
3314
|
+
}, mt = { ...ct, ...ar };
|
|
3315
|
+
function nr({
|
|
3309
3316
|
className: t = "",
|
|
3310
3317
|
children: n,
|
|
3311
3318
|
contentHTML: r,
|
|
3312
|
-
...
|
|
3319
|
+
...o
|
|
3313
3320
|
}) {
|
|
3314
3321
|
return /* @__PURE__ */ a(
|
|
3315
3322
|
"div",
|
|
3316
3323
|
{
|
|
3317
|
-
className:
|
|
3318
|
-
...
|
|
3324
|
+
className: mt["rp-card"] + " " + mt["rp-effect-card"] + " " + t,
|
|
3325
|
+
...o,
|
|
3319
3326
|
children: [
|
|
3320
|
-
/* @__PURE__ */ e(
|
|
3327
|
+
/* @__PURE__ */ e(Jn, {}),
|
|
3321
3328
|
r === void 0 ? n : /* @__PURE__ */ e(
|
|
3322
3329
|
"div",
|
|
3323
3330
|
{
|
|
3324
|
-
className:
|
|
3331
|
+
className: mt["rp-effect-content"],
|
|
3325
3332
|
dangerouslySetInnerHTML: { __html: r }
|
|
3326
3333
|
}
|
|
3327
3334
|
)
|
|
@@ -3329,39 +3336,39 @@ function lr({
|
|
|
3329
3336
|
}
|
|
3330
3337
|
);
|
|
3331
3338
|
}
|
|
3332
|
-
function
|
|
3339
|
+
function ti(t = Math.random() * 4294967295) {
|
|
3333
3340
|
let n = t >>> 0;
|
|
3334
3341
|
const r = () => {
|
|
3335
3342
|
n += 1831565813;
|
|
3336
3343
|
let i = Math.imul(n ^ n >>> 15, n | 1);
|
|
3337
3344
|
return i ^= i + Math.imul(i ^ i >>> 7, i | 61), ((i ^ i >>> 14) >>> 0) / 4294967296;
|
|
3338
|
-
},
|
|
3345
|
+
}, o = (i, d) => i + r() * (d - i), l = Math.floor(r() * 3);
|
|
3339
3346
|
return {
|
|
3340
3347
|
seed: t,
|
|
3341
3348
|
family: l,
|
|
3342
|
-
arms: Math.floor(
|
|
3343
|
-
rotation:
|
|
3344
|
-
curl: l === 0 ?
|
|
3349
|
+
arms: Math.floor(o(3, 8)),
|
|
3350
|
+
rotation: o(0, Math.PI * 2),
|
|
3351
|
+
curl: l === 0 ? o(9e-3, 0.018) : o(1e-3, 6e-3),
|
|
3345
3352
|
direction: r() < 0.5 ? -1 : 1,
|
|
3346
|
-
speed:
|
|
3347
|
-
width:
|
|
3348
|
-
lobes: l === 1 ?
|
|
3349
|
-
decay:
|
|
3350
|
-
strength:
|
|
3351
|
-
spacing:
|
|
3352
|
-
phase:
|
|
3353
|
+
speed: o(500, 640),
|
|
3354
|
+
width: o(36, 52),
|
|
3355
|
+
lobes: l === 1 ? o(0.18, 0.28) : o(0.06, 0.14),
|
|
3356
|
+
decay: o(0.8, 1.1),
|
|
3357
|
+
strength: o(26, 36),
|
|
3358
|
+
spacing: o(210, 270),
|
|
3359
|
+
phase: o(0, Math.PI * 2)
|
|
3353
3360
|
};
|
|
3354
3361
|
}
|
|
3355
|
-
function
|
|
3356
|
-
if (
|
|
3357
|
-
const l = Math.hypot(n, r), i = Math.atan2(r, n), d = i * t.arms + t.rotation, h = d - l * t.curl * t.direction,
|
|
3362
|
+
function ai(t, n, r, o) {
|
|
3363
|
+
if (o < 0) return { x: 0, y: 0, energy: 0 };
|
|
3364
|
+
const l = Math.hypot(n, r), i = Math.atan2(r, n), d = i * t.arms + t.rotation, h = d - l * t.curl * t.direction, g = Math.exp(-o * t.decay) * Math.min(1, o / 0.08), $ = o * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(i * (t.arms + 3) + t.phase)), x = (l - $) / t.width, k = 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) * g * k, M = Math.pow(Math.max(0, Math.cos(h)), 8), b = Math.exp(-Math.pow((l - $ * 0.6) / 95, 2)) * M * g, _ = Math.exp(-l * l / 14e3) * Math.max(0, 1 - o / 0.6), f = S * t.strength + b * 22 + _ * 8, E = b * 18 * Math.sin(h) * t.direction;
|
|
3358
3365
|
return {
|
|
3359
|
-
x: (n *
|
|
3360
|
-
y: (r *
|
|
3361
|
-
energy:
|
|
3366
|
+
x: (n * f - r * E) / Math.max(1, l),
|
|
3367
|
+
y: (r * f + n * E) / Math.max(1, l),
|
|
3368
|
+
energy: S * 0.55 + b * 0.8 + _ * 0.3
|
|
3362
3369
|
};
|
|
3363
3370
|
}
|
|
3364
|
-
const
|
|
3371
|
+
const ze = {
|
|
3365
3372
|
"rp-alert-dialog__trigger": "rp_AlertDialog-module_rp-alert-dialog__trigger_zDrVBZPv",
|
|
3366
3373
|
"rp-alert-dialog__overlay": "rp_AlertDialog-module_rp-alert-dialog__overlay_aHs-GNOy",
|
|
3367
3374
|
"rp-alert-dialog__content": "rp_AlertDialog-module_rp-alert-dialog__content_2yGt8Pjg",
|
|
@@ -3370,165 +3377,165 @@ const Ge = {
|
|
|
3370
3377
|
"rp-alert-dialog__action": "rp_AlertDialog-module_rp-alert-dialog__action_1Axjzt0X",
|
|
3371
3378
|
"rp-alert-dialog__cancel": "rp_AlertDialog-module_rp-alert-dialog__cancel_BkaoYoMJ",
|
|
3372
3379
|
"rp-alert-dialog__footer": "rp_AlertDialog-module_rp-alert-dialog__footer_7cTm367U"
|
|
3373
|
-
},
|
|
3374
|
-
|
|
3380
|
+
}, St = (t) => /* @__PURE__ */ e(ge.Root, { ...t }), Pt = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3381
|
+
ge.Trigger,
|
|
3375
3382
|
{
|
|
3376
3383
|
ref: r,
|
|
3377
|
-
className:
|
|
3378
|
-
!n.asChild &&
|
|
3384
|
+
className: re(
|
|
3385
|
+
!n.asChild && ze["rp-alert-dialog__trigger"],
|
|
3379
3386
|
t
|
|
3380
3387
|
),
|
|
3381
3388
|
...n
|
|
3382
3389
|
}
|
|
3383
3390
|
));
|
|
3384
|
-
|
|
3385
|
-
const
|
|
3386
|
-
|
|
3391
|
+
Pt.displayName = ge.Trigger.displayName;
|
|
3392
|
+
const rr = ge.Portal, It = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3393
|
+
ge.Overlay,
|
|
3387
3394
|
{
|
|
3388
3395
|
ref: r,
|
|
3389
|
-
className:
|
|
3396
|
+
className: re(ze["rp-alert-dialog__overlay"], t),
|
|
3390
3397
|
...n
|
|
3391
3398
|
}
|
|
3392
3399
|
));
|
|
3393
|
-
|
|
3394
|
-
const
|
|
3395
|
-
|
|
3400
|
+
It.displayName = ge.Overlay.displayName;
|
|
3401
|
+
const Et = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3402
|
+
ge.Content,
|
|
3396
3403
|
{
|
|
3397
3404
|
ref: r,
|
|
3398
|
-
className:
|
|
3405
|
+
className: re(ze["rp-alert-dialog__content"], t),
|
|
3399
3406
|
...n
|
|
3400
3407
|
}
|
|
3401
3408
|
));
|
|
3402
|
-
|
|
3403
|
-
const
|
|
3404
|
-
|
|
3409
|
+
Et.displayName = ge.Content.displayName;
|
|
3410
|
+
const Ht = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3411
|
+
ge.Title,
|
|
3405
3412
|
{
|
|
3406
3413
|
ref: r,
|
|
3407
|
-
className:
|
|
3414
|
+
className: re(ze["rp-alert-dialog__title"], t),
|
|
3408
3415
|
...n
|
|
3409
3416
|
}
|
|
3410
3417
|
));
|
|
3411
|
-
|
|
3412
|
-
const
|
|
3413
|
-
|
|
3418
|
+
Ht.displayName = ge.Title.displayName;
|
|
3419
|
+
const Dt = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3420
|
+
ge.Description,
|
|
3414
3421
|
{
|
|
3415
3422
|
ref: r,
|
|
3416
|
-
className:
|
|
3423
|
+
className: re(ze["rp-alert-dialog__description"], t),
|
|
3417
3424
|
...n
|
|
3418
3425
|
}
|
|
3419
3426
|
));
|
|
3420
|
-
|
|
3421
|
-
const
|
|
3422
|
-
|
|
3427
|
+
Dt.displayName = ge.Description.displayName;
|
|
3428
|
+
const Ot = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3429
|
+
ge.Action,
|
|
3423
3430
|
{
|
|
3424
3431
|
ref: r,
|
|
3425
|
-
className:
|
|
3426
|
-
!n.asChild &&
|
|
3432
|
+
className: re(
|
|
3433
|
+
!n.asChild && ze["rp-alert-dialog__action"],
|
|
3427
3434
|
t
|
|
3428
3435
|
),
|
|
3429
3436
|
...n
|
|
3430
3437
|
}
|
|
3431
3438
|
));
|
|
3432
|
-
|
|
3433
|
-
const
|
|
3434
|
-
|
|
3439
|
+
Ot.displayName = ge.Action.displayName;
|
|
3440
|
+
const Ut = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3441
|
+
ge.Cancel,
|
|
3435
3442
|
{
|
|
3436
3443
|
ref: r,
|
|
3437
|
-
className:
|
|
3438
|
-
!n.asChild &&
|
|
3444
|
+
className: re(
|
|
3445
|
+
!n.asChild && ze["rp-alert-dialog__cancel"],
|
|
3439
3446
|
t
|
|
3440
3447
|
),
|
|
3441
3448
|
...n
|
|
3442
3449
|
}
|
|
3443
3450
|
));
|
|
3444
|
-
|
|
3445
|
-
const
|
|
3451
|
+
Ut.displayName = ge.Cancel.displayName;
|
|
3452
|
+
const ir = Ue(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
3446
3453
|
"div",
|
|
3447
3454
|
{
|
|
3448
3455
|
ref: r,
|
|
3449
|
-
className:
|
|
3456
|
+
className: re(ze["rp-alert-dialog__footer"], t),
|
|
3450
3457
|
...n
|
|
3451
3458
|
}
|
|
3452
|
-
)),
|
|
3453
|
-
Root:
|
|
3454
|
-
Trigger:
|
|
3455
|
-
Portal:
|
|
3456
|
-
Overlay:
|
|
3457
|
-
Content:
|
|
3458
|
-
Title:
|
|
3459
|
-
Description:
|
|
3460
|
-
Action:
|
|
3461
|
-
Cancel:
|
|
3462
|
-
Footer:
|
|
3463
|
-
}),
|
|
3464
|
-
card:
|
|
3465
|
-
header:
|
|
3466
|
-
title:
|
|
3467
|
-
description:
|
|
3468
|
-
providers:
|
|
3469
|
-
providerButton:
|
|
3470
|
-
providerIcon:
|
|
3471
|
-
keyForm:
|
|
3472
|
-
divider:
|
|
3473
|
-
keyInputRow:
|
|
3474
|
-
keyInput:
|
|
3475
|
-
footer:
|
|
3476
|
-
},
|
|
3459
|
+
)), ni = Object.assign(St, {
|
|
3460
|
+
Root: St,
|
|
3461
|
+
Trigger: Pt,
|
|
3462
|
+
Portal: rr,
|
|
3463
|
+
Overlay: It,
|
|
3464
|
+
Content: Et,
|
|
3465
|
+
Title: Ht,
|
|
3466
|
+
Description: Dt,
|
|
3467
|
+
Action: Ot,
|
|
3468
|
+
Cancel: Ut,
|
|
3469
|
+
Footer: ir
|
|
3470
|
+
}), sr = "rp_AuthCard-module_card_3af6mRI1", or = "rp_AuthCard-module_header_WB-cRppT", lr = "rp_AuthCard-module_title_b2lbN-iF", cr = "rp_AuthCard-module_description_zPbJJzv5", dr = "rp_AuthCard-module_providers_Lr2Os9jM", hr = "rp_AuthCard-module_providerButton_ibhdV26C", pr = "rp_AuthCard-module_providerIcon_Uj09QL-n", mr = "rp_AuthCard-module_keyForm_0VG0GeLp", ur = "rp_AuthCard-module_divider_r-wmQ2Yq", gr = "rp_AuthCard-module_keyInputRow_n4XX9BYm", fr = "rp_AuthCard-module_keyInput_rzjbrJea", br = "rp_AuthCard-module_footer_51y8yr80", xe = {
|
|
3471
|
+
card: sr,
|
|
3472
|
+
header: or,
|
|
3473
|
+
title: lr,
|
|
3474
|
+
description: cr,
|
|
3475
|
+
providers: dr,
|
|
3476
|
+
providerButton: hr,
|
|
3477
|
+
providerIcon: pr,
|
|
3478
|
+
keyForm: mr,
|
|
3479
|
+
divider: ur,
|
|
3480
|
+
keyInputRow: gr,
|
|
3481
|
+
keyInput: fr,
|
|
3482
|
+
footer: br
|
|
3483
|
+
}, ri = ({
|
|
3477
3484
|
title: t = "Sign in to RouterPlus",
|
|
3478
3485
|
description: n = "Access models and manage your account",
|
|
3479
3486
|
providers: r = [],
|
|
3480
|
-
apiKeyLabel:
|
|
3487
|
+
apiKeyLabel: o = "Or continue with API key",
|
|
3481
3488
|
apiKeyPlaceholder: l = "Enter your rp_live_... API key",
|
|
3482
3489
|
onApiKeySubmit: i,
|
|
3483
3490
|
footer: d,
|
|
3484
3491
|
className: h
|
|
3485
3492
|
}) => {
|
|
3486
|
-
const [
|
|
3487
|
-
|
|
3493
|
+
const [g, $] = Ie(""), x = (k) => {
|
|
3494
|
+
k.preventDefault(), g.trim() && i?.(g.trim());
|
|
3488
3495
|
};
|
|
3489
|
-
return /* @__PURE__ */ a(
|
|
3490
|
-
/* @__PURE__ */ a("div", { className:
|
|
3491
|
-
/* @__PURE__ */ e("h1", { className:
|
|
3492
|
-
n && /* @__PURE__ */ e("p", { className:
|
|
3496
|
+
return /* @__PURE__ */ a(nr, { className: re(xe.card, h), children: [
|
|
3497
|
+
/* @__PURE__ */ a("div", { className: xe.header, children: [
|
|
3498
|
+
/* @__PURE__ */ e("h1", { className: xe.title, children: t }),
|
|
3499
|
+
n && /* @__PURE__ */ e("p", { className: xe.description, children: n })
|
|
3493
3500
|
] }),
|
|
3494
|
-
r.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
3501
|
+
r.length > 0 && /* @__PURE__ */ e("div", { className: xe.providers, children: r.map((k) => /* @__PURE__ */ a(
|
|
3495
3502
|
W,
|
|
3496
3503
|
{
|
|
3497
|
-
className:
|
|
3504
|
+
className: xe.providerButton,
|
|
3498
3505
|
variant: "outline",
|
|
3499
|
-
href:
|
|
3500
|
-
onClick:
|
|
3506
|
+
href: k.href,
|
|
3507
|
+
onClick: k.onClick,
|
|
3501
3508
|
children: [
|
|
3502
|
-
|
|
3503
|
-
/* @__PURE__ */ e("span", { children:
|
|
3509
|
+
k.icon && /* @__PURE__ */ e("span", { className: xe.providerIcon, "aria-hidden": "true", children: k.icon }),
|
|
3510
|
+
/* @__PURE__ */ e("span", { children: k.name })
|
|
3504
3511
|
]
|
|
3505
3512
|
},
|
|
3506
|
-
|
|
3513
|
+
k.id
|
|
3507
3514
|
)) }),
|
|
3508
|
-
i && /* @__PURE__ */ a("form", { className:
|
|
3509
|
-
/* @__PURE__ */ e("div", { className:
|
|
3510
|
-
/* @__PURE__ */ a("div", { className:
|
|
3515
|
+
i && /* @__PURE__ */ a("form", { className: xe.keyForm, onSubmit: x, children: [
|
|
3516
|
+
/* @__PURE__ */ e("div", { className: xe.divider, children: /* @__PURE__ */ e("span", { children: o }) }),
|
|
3517
|
+
/* @__PURE__ */ a("div", { className: xe.keyInputRow, children: [
|
|
3511
3518
|
/* @__PURE__ */ e(
|
|
3512
|
-
|
|
3519
|
+
ot,
|
|
3513
3520
|
{
|
|
3514
3521
|
type: "password",
|
|
3515
3522
|
placeholder: l,
|
|
3516
|
-
value:
|
|
3517
|
-
onChange: (
|
|
3518
|
-
className:
|
|
3523
|
+
value: g,
|
|
3524
|
+
onChange: (k) => $(k.target.value),
|
|
3525
|
+
className: xe.keyInput
|
|
3519
3526
|
}
|
|
3520
3527
|
),
|
|
3521
|
-
/* @__PURE__ */ e(W, { variant: "primary", type: "submit", disabled: !
|
|
3528
|
+
/* @__PURE__ */ e(W, { variant: "primary", type: "submit", disabled: !g.trim(), children: "Continue" })
|
|
3522
3529
|
] })
|
|
3523
3530
|
] }),
|
|
3524
|
-
d && /* @__PURE__ */ e("div", { className:
|
|
3531
|
+
d && /* @__PURE__ */ e("div", { className: xe.footer, children: d })
|
|
3525
3532
|
] });
|
|
3526
|
-
},
|
|
3527
|
-
footer:
|
|
3528
|
-
nav:
|
|
3529
|
-
link:
|
|
3530
|
-
copyright:
|
|
3531
|
-
},
|
|
3533
|
+
}, vr = "rp_Footer-module_footer_hxH87TcN", yr = "rp_Footer-module_nav_nBjfaMF3", _r = "rp_Footer-module_link_8Rd1iGUN", Nr = "rp_Footer-module_copyright_MOU-OKDL", st = {
|
|
3534
|
+
footer: vr,
|
|
3535
|
+
nav: yr,
|
|
3536
|
+
link: _r,
|
|
3537
|
+
copyright: Nr
|
|
3538
|
+
}, ii = ({
|
|
3532
3539
|
logoHref: t = "/",
|
|
3533
3540
|
links: n = [
|
|
3534
3541
|
{ label: "Sign in", href: "/auth" },
|
|
@@ -3542,147 +3549,147 @@ const dr = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
3542
3549
|
}
|
|
3543
3550
|
],
|
|
3544
3551
|
copyright: r,
|
|
3545
|
-
className:
|
|
3546
|
-
}) => /* @__PURE__ */ a("footer", { className:
|
|
3547
|
-
/* @__PURE__ */ e(
|
|
3548
|
-
/* @__PURE__ */ e("nav", { className:
|
|
3552
|
+
className: o
|
|
3553
|
+
}) => /* @__PURE__ */ a("footer", { className: re(st.footer, o), children: [
|
|
3554
|
+
/* @__PURE__ */ e(Bt, { href: t, footer: !0 }),
|
|
3555
|
+
/* @__PURE__ */ e("nav", { className: st.nav, "aria-label": "Footer navigation", children: n.map((l) => /* @__PURE__ */ e(
|
|
3549
3556
|
"a",
|
|
3550
3557
|
{
|
|
3551
3558
|
href: l.href,
|
|
3552
3559
|
target: l.target,
|
|
3553
3560
|
rel: l.rel,
|
|
3554
|
-
className:
|
|
3561
|
+
className: st.link,
|
|
3555
3562
|
children: l.label
|
|
3556
3563
|
},
|
|
3557
3564
|
l.label
|
|
3558
3565
|
)) }),
|
|
3559
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
3560
|
-
] }),
|
|
3561
|
-
header:
|
|
3562
|
-
lead:
|
|
3563
|
-
logo:
|
|
3564
|
-
center:
|
|
3565
|
-
tools:
|
|
3566
|
-
},
|
|
3566
|
+
r && /* @__PURE__ */ e("div", { className: st.copyright, children: r })
|
|
3567
|
+
] }), wr = "rp_Header-module_header_Turig8tF", Mr = "rp_Header-module_lead_0DaE0r8e", kr = "rp_Header-module_logo_mtMWQXw6", $r = "rp_Header-module_center_q6eURj1J", xr = "rp_Header-module_tools_H6sckGtR", Je = {
|
|
3568
|
+
header: wr,
|
|
3569
|
+
lead: Mr,
|
|
3570
|
+
logo: kr,
|
|
3571
|
+
center: $r,
|
|
3572
|
+
tools: xr
|
|
3573
|
+
}, Cr = [
|
|
3567
3574
|
{ value: "en", label: "English" },
|
|
3568
3575
|
{ value: "de", label: "Deutsch" },
|
|
3569
3576
|
{ value: "es", label: "Español" },
|
|
3570
3577
|
{ value: "fr", label: "Français" },
|
|
3571
3578
|
{ value: "ru", label: "Русский" }
|
|
3572
3579
|
];
|
|
3573
|
-
function
|
|
3580
|
+
function si({
|
|
3574
3581
|
dark: t = !1,
|
|
3575
3582
|
onThemeChange: n,
|
|
3576
3583
|
language: r = "en",
|
|
3577
|
-
languages:
|
|
3584
|
+
languages: o = Cr,
|
|
3578
3585
|
onLanguageChange: l,
|
|
3579
3586
|
left: i,
|
|
3580
3587
|
afterLogo: d,
|
|
3581
3588
|
center: h,
|
|
3582
|
-
right:
|
|
3583
|
-
action:
|
|
3584
|
-
surface:
|
|
3585
|
-
href:
|
|
3589
|
+
right: g,
|
|
3590
|
+
action: $,
|
|
3591
|
+
surface: x = "hero",
|
|
3592
|
+
href: k = "/en"
|
|
3586
3593
|
}) {
|
|
3587
|
-
const
|
|
3594
|
+
const S = g === void 0 ? $ : g;
|
|
3588
3595
|
return /* @__PURE__ */ a(
|
|
3589
3596
|
"header",
|
|
3590
3597
|
{
|
|
3591
|
-
className:
|
|
3598
|
+
className: Je.header,
|
|
3592
3599
|
"data-theme": t ? "dark" : "light",
|
|
3593
|
-
"data-surface":
|
|
3600
|
+
"data-surface": x,
|
|
3594
3601
|
children: [
|
|
3595
|
-
/* @__PURE__ */ a("div", { className:
|
|
3602
|
+
/* @__PURE__ */ a("div", { className: Je.lead, children: [
|
|
3596
3603
|
i,
|
|
3597
|
-
/* @__PURE__ */ e(
|
|
3604
|
+
/* @__PURE__ */ e(Bt, { className: Je.logo, href: k }),
|
|
3598
3605
|
d
|
|
3599
3606
|
] }),
|
|
3600
|
-
h !== void 0 && h !== !1 && /* @__PURE__ */ e("div", { className:
|
|
3601
|
-
/* @__PURE__ */ a("div", { className:
|
|
3602
|
-
/* @__PURE__ */ e(
|
|
3607
|
+
h !== void 0 && h !== !1 && /* @__PURE__ */ e("div", { className: Je.center, children: h }),
|
|
3608
|
+
/* @__PURE__ */ a("div", { className: Je.tools, children: [
|
|
3609
|
+
/* @__PURE__ */ e(ma, { dark: t, onThemeChange: n }),
|
|
3603
3610
|
/* @__PURE__ */ e(
|
|
3604
|
-
|
|
3611
|
+
ua,
|
|
3605
3612
|
{
|
|
3606
|
-
className:
|
|
3607
|
-
triggerContent: /* @__PURE__ */ e(
|
|
3613
|
+
className: Je.language,
|
|
3614
|
+
triggerContent: /* @__PURE__ */ e(va, { size: 18, "aria-hidden": "true" }),
|
|
3608
3615
|
popupAlign: "end",
|
|
3609
3616
|
popupTheme: t ? "dark" : "light",
|
|
3610
|
-
options:
|
|
3617
|
+
options: o,
|
|
3611
3618
|
value: r,
|
|
3612
|
-
onValueChange: (
|
|
3613
|
-
ariaLabel: `Change language: ${
|
|
3619
|
+
onValueChange: (M) => l?.(M),
|
|
3620
|
+
ariaLabel: `Change language: ${o.find((M) => M.value === r)?.label ?? r}`
|
|
3614
3621
|
}
|
|
3615
3622
|
),
|
|
3616
|
-
|
|
3623
|
+
S === void 0 ? /* @__PURE__ */ e(W, { variant: "primary", href: "/en/auth", children: "API Key" }) : S
|
|
3617
3624
|
] })
|
|
3618
3625
|
]
|
|
3619
3626
|
}
|
|
3620
3627
|
);
|
|
3621
3628
|
}
|
|
3622
3629
|
export {
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3630
|
+
ni as AlertDialog,
|
|
3631
|
+
Ot as AlertDialogAction,
|
|
3632
|
+
Ut as AlertDialogCancel,
|
|
3633
|
+
Et as AlertDialogContent,
|
|
3634
|
+
Dt as AlertDialogDescription,
|
|
3635
|
+
ir as AlertDialogFooter,
|
|
3636
|
+
It as AlertDialogOverlay,
|
|
3637
|
+
rr as AlertDialogPortal,
|
|
3638
|
+
St as AlertDialogRoot,
|
|
3639
|
+
Ht as AlertDialogTitle,
|
|
3640
|
+
Pt as AlertDialogTrigger,
|
|
3641
|
+
ri as AuthCard,
|
|
3642
|
+
Jn as BackgroundDotted,
|
|
3643
|
+
Zr as BackgroundLineField,
|
|
3644
|
+
Kr as BackgroundPlus,
|
|
3645
|
+
Qr as BackgroundSquare,
|
|
3646
|
+
Ur as BarChart,
|
|
3647
|
+
Or as Billing,
|
|
3648
|
+
ei as BrandIntro,
|
|
3649
|
+
Fr as CustomerDashboard,
|
|
3650
|
+
nr as EffectCard,
|
|
3651
|
+
ii as Footer,
|
|
3652
|
+
si as Header,
|
|
3653
|
+
zr as Heatmap,
|
|
3654
|
+
Xr as MetricStrip,
|
|
3655
|
+
ci as MonthlySubscription,
|
|
3656
|
+
Gr as Panel,
|
|
3657
|
+
Jr as PlusField,
|
|
3658
|
+
Er as Provider,
|
|
3659
|
+
Hr as ProviderLogo,
|
|
3660
|
+
Yr as Ranking,
|
|
3661
|
+
jr as RequestTable,
|
|
3662
|
+
ue as RouterPlusGlyph,
|
|
3663
|
+
Pr as RouterPlusHarnessMapping,
|
|
3664
|
+
at as RouterPlusIcon,
|
|
3665
|
+
qr as RouterPlusProviderList,
|
|
3666
|
+
Tr as RouterPlusShell,
|
|
3667
|
+
Ir as RouterPlusUsageSummary,
|
|
3668
|
+
Wr as SessionShape,
|
|
3669
|
+
di as Shop,
|
|
3670
|
+
hi as ShopAccountCard,
|
|
3671
|
+
pi as ShopCard,
|
|
3672
|
+
mi as SideNavigation,
|
|
3673
|
+
ui as SideNavigationBrand,
|
|
3674
|
+
gi as SideNavigationEmpty,
|
|
3675
|
+
fi as SideNavigationFooter,
|
|
3676
|
+
bi as SideNavigationHeader,
|
|
3677
|
+
vi as SideNavigationItem,
|
|
3678
|
+
yi as SideNavigationScroll,
|
|
3679
|
+
_i as SideNavigationSection,
|
|
3680
|
+
Ni as SideNavigationStatus,
|
|
3681
|
+
wi as SideNavigationSubItem,
|
|
3682
|
+
Mi as SideNavigationSubNav,
|
|
3683
|
+
ki as SideNavigationToggle,
|
|
3684
|
+
$i as Support,
|
|
3685
|
+
xi as SupportDialog,
|
|
3686
|
+
Vr as UsageList,
|
|
3687
|
+
Dr as flagForRegion,
|
|
3688
|
+
ti as generateBlast,
|
|
3689
|
+
Ci as glyphs,
|
|
3690
|
+
Ai as icons,
|
|
3691
|
+
Ln as regionForLocale,
|
|
3692
|
+
jt as routerPlusLogo,
|
|
3693
|
+
ai as sampleBlast,
|
|
3694
|
+
Li as useThemeTransition
|
|
3688
3695
|
};
|