@plusrouter/ui 0.1.17 → 0.1.18
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 +639 -629
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as ze } from "react/jsx-runtime";
|
|
2
2
|
import { w as mt, u as lt, B as W, I as st, R as ge, a as nt, r as Zt, b as Oe, L as vt, c as yt, d as Qt, P as ea, e as ta, E as aa, C as na, f as ra, g as ia, S as sa, h as oa, i as la, j as ca, k as da, l as ha, m as pa, n as ua, o as ma, p as ga, q as fa, s as ba, t as Tt, T as va, v as ya } from "./SideNavigation-uaK5wkfX.js";
|
|
3
3
|
import { M as mi, x as gi, y as fi, z as bi, A as vi, D as yi, F as _i, G as Ni, H as wi, J as Mi, K as ki, N as $i, O as xi, Q as Ci, U as Ai, V as Li, W as Si, X as Bi, Y as Ri, Z as Fi, _ as Ti } from "./SideNavigation-uaK5wkfX.js";
|
|
4
|
-
import qt, { useId as at, useState as De, useEffect as
|
|
4
|
+
import qt, { useId as at, useState as De, useEffect as Ae, useContext as _a, createContext as Na, useMemo as rt, Fragment as wa, useRef as Ce, forwardRef as Xe } from "react";
|
|
5
5
|
import * as fe from "@radix-ui/react-alert-dialog";
|
|
6
6
|
import se from "clsx";
|
|
7
7
|
import { Globe as Ma } from "lucide-react";
|
|
8
|
-
const
|
|
8
|
+
const $e = { ...lt, ...mt };
|
|
9
9
|
function Er({
|
|
10
10
|
languageControl: t
|
|
11
11
|
} = {}) {
|
|
@@ -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
|
),
|
|
@@ -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
|
] })
|
|
@@ -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
|
}
|
|
@@ -735,23 +735,23 @@ function Hr({
|
|
|
735
735
|
notice: x,
|
|
736
736
|
headerActions: M,
|
|
737
737
|
sidebarFooter: $,
|
|
738
|
-
beforeContent:
|
|
738
|
+
beforeContent: R
|
|
739
739
|
}) {
|
|
740
|
-
const [
|
|
740
|
+
const [N, k] = De(
|
|
741
741
|
() => typeof matchMedia < "u" && matchMedia(
|
|
742
742
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
743
743
|
).matches
|
|
744
744
|
);
|
|
745
|
-
|
|
745
|
+
Ae(() => {
|
|
746
746
|
const q = matchMedia(
|
|
747
747
|
"(max-width: 760px), (pointer: coarse) and (max-width: 1024px)"
|
|
748
|
-
),
|
|
749
|
-
return q.addEventListener("change",
|
|
748
|
+
), B = () => k(q.matches);
|
|
749
|
+
return q.addEventListener("change", B), () => q.removeEventListener("change", B);
|
|
750
750
|
}, []);
|
|
751
|
-
const f = t === "settings" ? "Settings" : _t.find(([q]) => q === t)[1],
|
|
751
|
+
const f = t === "settings" ? "Settings" : _t.find(([q]) => q === t)[1], v = ["agents", "sessions", "library"].includes(t) ? "Work" : ["usage", "balance"].includes(t) ? "Insights" : "Models", F = t === "connection" ? "providers" : t, o = /* @__PURE__ */ a("div", { className: `${c.brand}`, children: [
|
|
752
752
|
/* @__PURE__ */ e("span", { className: `${c.logo}`, "aria-hidden": "true", children: /* @__PURE__ */ e("img", { src: Zt, width: "22", height: "22", alt: "" }) }),
|
|
753
753
|
/* @__PURE__ */ e("span", { children: "RouterPlus" })
|
|
754
|
-
] }),
|
|
754
|
+
] }), y = /* @__PURE__ */ a(
|
|
755
755
|
"button",
|
|
756
756
|
{
|
|
757
757
|
type: "button",
|
|
@@ -767,21 +767,21 @@ function Hr({
|
|
|
767
767
|
), C = /* @__PURE__ */ a(
|
|
768
768
|
"div",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
771
|
-
id:
|
|
770
|
+
className: N ? c.segs : c["nav-sub"],
|
|
771
|
+
id: N ? "usageTab" : void 0,
|
|
772
772
|
ref: (q) => {
|
|
773
|
-
if (!q || !
|
|
774
|
-
const
|
|
775
|
-
const U = q.querySelector("button.on"),
|
|
776
|
-
U &&
|
|
773
|
+
if (!q || !N) return;
|
|
774
|
+
const B = () => {
|
|
775
|
+
const U = q.querySelector("button.on"), te = q.querySelector(".thumb");
|
|
776
|
+
U && te && (te.style.width = U.offsetWidth + "px", te.style.transform = `translateX(${U.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
|
+
N && /* @__PURE__ */ e("span", { className: `${c.thumb}` }),
|
|
784
|
+
!N && /* @__PURE__ */ e(
|
|
785
785
|
"span",
|
|
786
786
|
{
|
|
787
787
|
className: `${c["nav-hl"]} ${c.still}`,
|
|
@@ -793,7 +793,7 @@ function Hr({
|
|
|
793
793
|
h.map((q) => /* @__PURE__ */ e(
|
|
794
794
|
"button",
|
|
795
795
|
{
|
|
796
|
-
className:
|
|
796
|
+
className: N ? `opt${d === q ? c.on : ""}` : `nav-s${d === q ? c.cur : ""}`,
|
|
797
797
|
type: "button",
|
|
798
798
|
"aria-pressed": d === q,
|
|
799
799
|
onClick: () => m?.(q),
|
|
@@ -808,9 +808,9 @@ 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}${N ? "" : " side-nav"}`,
|
|
812
812
|
children: [
|
|
813
|
-
!
|
|
813
|
+
!N && /* @__PURE__ */ a("aside", { className: `${c.sidebar}`, id: "side", children: [
|
|
814
814
|
/* @__PURE__ */ e("div", { className: `${c["side-top"]}`, children: o }),
|
|
815
815
|
/* @__PURE__ */ e("div", { className: `${c["side-scroll"]}`, children: /* @__PURE__ */ e(
|
|
816
816
|
"nav",
|
|
@@ -818,7 +818,7 @@ function Hr({
|
|
|
818
818
|
className: `${c.seg}`,
|
|
819
819
|
id: "nav",
|
|
820
820
|
"aria-label": "Main navigation",
|
|
821
|
-
children: _t.map(([q,
|
|
821
|
+
children: _t.map(([q, B, U]) => /* @__PURE__ */ a(qt.Fragment, { children: [
|
|
822
822
|
/* @__PURE__ */ a(
|
|
823
823
|
"button",
|
|
824
824
|
{
|
|
@@ -829,7 +829,7 @@ function Hr({
|
|
|
829
829
|
onClick: () => s?.(q),
|
|
830
830
|
children: [
|
|
831
831
|
/* @__PURE__ */ e(ge, { name: U }),
|
|
832
|
-
/* @__PURE__ */ e("span", { children:
|
|
832
|
+
/* @__PURE__ */ e("span", { children: B })
|
|
833
833
|
]
|
|
834
834
|
}
|
|
835
835
|
),
|
|
@@ -838,15 +838,15 @@ function Hr({
|
|
|
838
838
|
}
|
|
839
839
|
) }),
|
|
840
840
|
/* @__PURE__ */ a("div", { className: `${c["side-foot"]}`, children: [
|
|
841
|
-
|
|
841
|
+
y,
|
|
842
842
|
$
|
|
843
843
|
] })
|
|
844
844
|
] }),
|
|
845
845
|
/* @__PURE__ */ a("header", { className: `${c.top}`, children: [
|
|
846
|
-
|
|
846
|
+
N && o,
|
|
847
847
|
/* @__PURE__ */ e("h1", { className: `${c["sr-only"]}`, children: f }),
|
|
848
|
-
!
|
|
849
|
-
/* @__PURE__ */ e("span", { children:
|
|
848
|
+
!N && /* @__PURE__ */ a("div", { className: `${c.crumb}`, "aria-hidden": "true", children: [
|
|
849
|
+
/* @__PURE__ */ e("span", { children: v }),
|
|
850
850
|
/* @__PURE__ */ e("i", { children: "/" }),
|
|
851
851
|
t === "usage" ? /* @__PURE__ */ a(ze, { children: [
|
|
852
852
|
/* @__PURE__ */ e("span", { children: "Usage" }),
|
|
@@ -868,12 +868,12 @@ function Hr({
|
|
|
868
868
|
}
|
|
869
869
|
),
|
|
870
870
|
M,
|
|
871
|
-
|
|
871
|
+
N && y
|
|
872
872
|
] })
|
|
873
873
|
] }),
|
|
874
874
|
/* @__PURE__ */ a("main", { className: `${c.view}`, id: `view-${F}`, children: [
|
|
875
|
-
|
|
876
|
-
/* @__PURE__ */ e(Pt.Provider, { value: t === "usage" &&
|
|
875
|
+
R,
|
|
876
|
+
/* @__PURE__ */ e(Pt.Provider, { value: t === "usage" && N ? C : null, children: r })
|
|
877
877
|
] }),
|
|
878
878
|
x && /* @__PURE__ */ e("footer", { className: `${c["mp-notice"]}`, children: x })
|
|
879
879
|
]
|
|
@@ -893,11 +893,11 @@ function Dr({
|
|
|
893
893
|
error: x,
|
|
894
894
|
onRetry: M
|
|
895
895
|
}) {
|
|
896
|
-
const $ = at(),
|
|
896
|
+
const $ = at(), R = n.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean), N = t.map((k) => ({
|
|
897
897
|
...k,
|
|
898
898
|
providers: k.providers.filter(
|
|
899
|
-
(f) =>
|
|
900
|
-
(
|
|
899
|
+
(f) => R.every(
|
|
900
|
+
(v) => `${f.name} ${f.detail ?? ""} ${k.title} ${k.hint ?? ""}`.toLocaleLowerCase().includes(v)
|
|
901
901
|
)
|
|
902
902
|
)
|
|
903
903
|
})).filter((k) => k.providers.length);
|
|
@@ -948,14 +948,14 @@ function Dr({
|
|
|
948
948
|
loading: "Loading providers…"
|
|
949
949
|
}
|
|
950
950
|
) : /* @__PURE__ */ a("div", { className: "tiles", children: [
|
|
951
|
-
|
|
951
|
+
N.length === 0 && /* @__PURE__ */ e(
|
|
952
952
|
Ve,
|
|
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
|
+
N.map((k) => /* @__PURE__ */ a(qt.Fragment, { children: [
|
|
959
959
|
/* @__PURE__ */ a("div", { className: `${c.kind}`, children: [
|
|
960
960
|
/* @__PURE__ */ e("b", { children: k.title }),
|
|
961
961
|
k.hint && /* @__PURE__ */ e("span", { children: k.hint })
|
|
@@ -1025,11 +1025,11 @@ function Or({
|
|
|
1025
1025
|
onSaveProfile: x,
|
|
1026
1026
|
profileLabel: M = "none yet · save the setup to switch back in one click",
|
|
1027
1027
|
onManage: $,
|
|
1028
|
-
onInstall:
|
|
1029
|
-
installCount:
|
|
1028
|
+
onInstall: R,
|
|
1029
|
+
installCount: N,
|
|
1030
1030
|
status: k = "ready",
|
|
1031
1031
|
error: f,
|
|
1032
|
-
onRetry:
|
|
1032
|
+
onRetry: v
|
|
1033
1033
|
}) {
|
|
1034
1034
|
const F = Number(m) + Number(t.some((o) => o.state === "connected"));
|
|
1035
1035
|
return /* @__PURE__ */ a(ze, { children: [
|
|
@@ -1087,7 +1087,7 @@ function Or({
|
|
|
1087
1087
|
{
|
|
1088
1088
|
status: k,
|
|
1089
1089
|
error: f,
|
|
1090
|
-
onRetry:
|
|
1090
|
+
onRetry: v,
|
|
1091
1091
|
loading: "Loading agents…"
|
|
1092
1092
|
}
|
|
1093
1093
|
) : /* @__PURE__ */ a(ze, { children: [
|
|
@@ -1213,19 +1213,19 @@ function Or({
|
|
|
1213
1213
|
}
|
|
1214
1214
|
),
|
|
1215
1215
|
o.detail && /* @__PURE__ */ e("div", { className: `${c["ag-card-description"]}`, children: /* @__PURE__ */ e("span", { className: `${c["ag-st-t"]}`, children: o.detail }) }),
|
|
1216
|
-
o.state === "connected" && o.fields?.map((
|
|
1217
|
-
/* @__PURE__ */ e("span", { children:
|
|
1216
|
+
o.state === "connected" && o.fields?.map((y) => /* @__PURE__ */ a("label", { className: `${c.field}`, children: [
|
|
1217
|
+
/* @__PURE__ */ e("span", { children: y.label }),
|
|
1218
1218
|
/* @__PURE__ */ e(
|
|
1219
1219
|
"select",
|
|
1220
1220
|
{
|
|
1221
|
-
"aria-label":
|
|
1222
|
-
value:
|
|
1223
|
-
disabled:
|
|
1224
|
-
onChange: (C) => i?.(o.id,
|
|
1225
|
-
children:
|
|
1221
|
+
"aria-label": y.label,
|
|
1222
|
+
value: y.value,
|
|
1223
|
+
disabled: y.disabled || o.pending || !i,
|
|
1224
|
+
onChange: (C) => i?.(o.id, y.id, C.target.value),
|
|
1225
|
+
children: y.options.map((C) => /* @__PURE__ */ e("option", { value: C.value, children: C.label }, C.value))
|
|
1226
1226
|
}
|
|
1227
1227
|
)
|
|
1228
|
-
] },
|
|
1228
|
+
] }, y.id)),
|
|
1229
1229
|
o.state !== "missing" && /* @__PURE__ */ e(
|
|
1230
1230
|
"button",
|
|
1231
1231
|
{
|
|
@@ -1261,11 +1261,11 @@ function Or({
|
|
|
1261
1261
|
{
|
|
1262
1262
|
type: "button",
|
|
1263
1263
|
className: `${c["ag-install-head"]}`,
|
|
1264
|
-
onClick:
|
|
1264
|
+
onClick: R,
|
|
1265
1265
|
children: [
|
|
1266
1266
|
/* @__PURE__ */ a("span", { children: [
|
|
1267
1267
|
"Install another agent",
|
|
1268
|
-
|
|
1268
|
+
N !== void 0 ? ` (${N})` : ""
|
|
1269
1269
|
] }),
|
|
1270
1270
|
/* @__PURE__ */ e("span", { className: `${c.chev}`, children: /* @__PURE__ */ e(ge, { name: "down" }) })
|
|
1271
1271
|
]
|
|
@@ -1294,9 +1294,9 @@ function Ur({
|
|
|
1294
1294
|
error: x,
|
|
1295
1295
|
onRetry: M
|
|
1296
1296
|
}) {
|
|
1297
|
-
const $ = _a(Pt), [
|
|
1297
|
+
const $ = _a(Pt), [R, N] = De(!1), [k, f] = De(!1), v = m === "ready" ? r : null, F = Math.max(
|
|
1298
1298
|
1,
|
|
1299
|
-
...
|
|
1299
|
+
...v?.series.map((o) => o.calls) ?? []
|
|
1300
1300
|
);
|
|
1301
1301
|
return /* @__PURE__ */ a(ze, { children: [
|
|
1302
1302
|
/* @__PURE__ */ a("div", { className: `${c["usage-head"]}`, children: [
|
|
@@ -1308,9 +1308,9 @@ function Ur({
|
|
|
1308
1308
|
id: "period",
|
|
1309
1309
|
ref: (o) => {
|
|
1310
1310
|
if (!o) return;
|
|
1311
|
-
const
|
|
1312
|
-
|
|
1313
|
-
C.style.width =
|
|
1311
|
+
const y = o.querySelector("button.on"), C = o.querySelector(".thumb");
|
|
1312
|
+
y && C && (C.style.width = y.offsetWidth + "px", C.style.transform = `translateX(${y.offsetLeft}px)`, document.fonts.ready.then(() => {
|
|
1313
|
+
C.style.width = y.offsetWidth + "px", C.style.transform = `translateX(${y.offsetLeft}px)`;
|
|
1314
1314
|
}));
|
|
1315
1315
|
},
|
|
1316
1316
|
role: "group",
|
|
@@ -1341,8 +1341,8 @@ 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": R,
|
|
1345
|
+
onClick: () => N(!R),
|
|
1346
1346
|
children: [
|
|
1347
1347
|
/* @__PURE__ */ e("span", { children: t }),
|
|
1348
1348
|
/* @__PURE__ */ e(ge, { name: "down" })
|
|
@@ -1378,7 +1378,7 @@ function Ur({
|
|
|
1378
1378
|
)
|
|
1379
1379
|
] }),
|
|
1380
1380
|
/* @__PURE__ */ a("span", { className: `${c["usage-cost"]}`, children: [
|
|
1381
|
-
/* @__PURE__ */ e("b", { children:
|
|
1381
|
+
/* @__PURE__ */ e("b", { children: v?.cost ?? "—" }),
|
|
1382
1382
|
/* @__PURE__ */ e("span", { children: "effective prices" })
|
|
1383
1383
|
] })
|
|
1384
1384
|
] }),
|
|
@@ -1416,7 +1416,7 @@ function Ur({
|
|
|
1416
1416
|
)
|
|
1417
1417
|
] })
|
|
1418
1418
|
] }),
|
|
1419
|
-
|
|
1419
|
+
R && /* @__PURE__ */ e(
|
|
1420
1420
|
"div",
|
|
1421
1421
|
{
|
|
1422
1422
|
className: `${c.pop}`,
|
|
@@ -1427,7 +1427,7 @@ function Ur({
|
|
|
1427
1427
|
{
|
|
1428
1428
|
role: "menuitem",
|
|
1429
1429
|
onClick: () => {
|
|
1430
|
-
n?.(o),
|
|
1430
|
+
n?.(o), N(!1);
|
|
1431
1431
|
},
|
|
1432
1432
|
children: [
|
|
1433
1433
|
o === "Custom" && /* @__PURE__ */ e(ge, { name: "calendar" }),
|
|
@@ -1466,7 +1466,7 @@ function Ur({
|
|
|
1466
1466
|
onRetry: M,
|
|
1467
1467
|
loading: "Loading usage…"
|
|
1468
1468
|
}
|
|
1469
|
-
) :
|
|
1469
|
+
) : v ? v.calls === 0 ? /* @__PURE__ */ e("div", { className: `${c.stats} ${c.empty}`, children: /* @__PURE__ */ e(
|
|
1470
1470
|
"div",
|
|
1471
1471
|
{
|
|
1472
1472
|
className: `${c.none}`,
|
|
@@ -1475,13 +1475,13 @@ function Ur({
|
|
|
1475
1475
|
}
|
|
1476
1476
|
) }) : /* @__PURE__ */ a(ze, { children: [
|
|
1477
1477
|
/* @__PURE__ */ e("dl", { className: "mp-usage-metrics", children: [
|
|
1478
|
-
["Calls",
|
|
1479
|
-
["Errors",
|
|
1480
|
-
["Input tokens",
|
|
1481
|
-
["Output tokens",
|
|
1482
|
-
].map(([o,
|
|
1478
|
+
["Calls", v.calls],
|
|
1479
|
+
["Errors", v.errors],
|
|
1480
|
+
["Input tokens", v.input],
|
|
1481
|
+
["Output tokens", v.output]
|
|
1482
|
+
].map(([o, y]) => /* @__PURE__ */ a("div", { children: [
|
|
1483
1483
|
/* @__PURE__ */ e("dt", { children: o }),
|
|
1484
|
-
/* @__PURE__ */ e("dd", { children: typeof
|
|
1484
|
+
/* @__PURE__ */ e("dd", { children: typeof y == "number" ? y.toLocaleString("en-US") : y })
|
|
1485
1485
|
] }, o)) }),
|
|
1486
1486
|
/* @__PURE__ */ a(
|
|
1487
1487
|
"section",
|
|
@@ -1490,7 +1490,7 @@ function Ur({
|
|
|
1490
1490
|
"aria-label": "Calls over time",
|
|
1491
1491
|
children: [
|
|
1492
1492
|
/* @__PURE__ */ e("h2", { children: "Calls" }),
|
|
1493
|
-
|
|
1493
|
+
v.series.length === 0 ? /* @__PURE__ */ e(
|
|
1494
1494
|
Ve,
|
|
1495
1495
|
{
|
|
1496
1496
|
loading: "",
|
|
@@ -1501,8 +1501,8 @@ function Ur({
|
|
|
1501
1501
|
{
|
|
1502
1502
|
className: "mp-chart-bars",
|
|
1503
1503
|
role: "img",
|
|
1504
|
-
"aria-label":
|
|
1505
|
-
children:
|
|
1504
|
+
"aria-label": v.series.map((o) => `${o.label}: ${o.calls} calls`).join("; "),
|
|
1505
|
+
children: v.series.map((o, y) => /* @__PURE__ */ a(
|
|
1506
1506
|
"div",
|
|
1507
1507
|
{
|
|
1508
1508
|
className: "mp-chart-column",
|
|
@@ -1519,7 +1519,7 @@ function Ur({
|
|
|
1519
1519
|
/* @__PURE__ */ e("small", { children: o.label })
|
|
1520
1520
|
]
|
|
1521
1521
|
},
|
|
1522
|
-
`${o.label}-${
|
|
1522
|
+
`${o.label}-${y}`
|
|
1523
1523
|
))
|
|
1524
1524
|
}
|
|
1525
1525
|
)
|
|
@@ -1603,7 +1603,7 @@ function Xr({
|
|
|
1603
1603
|
t ? /* @__PURE__ */ e("span", { style: x, children: t }) : null
|
|
1604
1604
|
] });
|
|
1605
1605
|
}
|
|
1606
|
-
const xa = "rp_Billing-module_billing_jVpbPSwf", Ca = "rp_Billing-module_inline_Mf5K0TOB", Aa = "rp_Billing-module_body_73T3WPhM", La = "rp_Billing-module_sheet_uq-sE7Kj", Sa = "rp_Billing-module_header_6ZibPvV0", Ba = "rp_Billing-module_footer_sZ8dMMt3", Ra = "rp_Billing-module_titleIcon_yvF5gUEf", Fa = "rp_Billing-module_heading_hXnE-5Dq", Ta = "rp_Billing-module_title_XVWBtjrY", qa = "rp_Billing-module_description_15DMv8fm", Pa = "rp_Billing-module_bodyWrap_73GWDsL6", Ia = "rp_Billing-module_scrollFade_Vp55lLY8", Ea = "rp_Billing-module_section_CCEnjKJi", Ha = "rp_Billing-module_fieldLabel_j4TFB90Z", Da = "rp_Billing-module_amount_huNHfEM9", Oa = "rp_Billing-module_amountCurrency_5BAcrLkG", Ua = "rp_Billing-module_quickAmounts_-zXxHGvq", za = "rp_Billing-module_quickAmount_wZ1vL5t7", Xa = "rp_Billing-module_quickAmountActive_UN-iKg7L", Ga = "rp_Billing-module_cashback_SEKfvhCV", Ya = "rp_Billing-module_cashbackHead_TeiHoLw6", ja = "rp_Billing-module_cashbackRate_snXI6bxo", Wa = "rp_Billing-module_cashbackHint_8hFT1XBR", Va = "rp_Billing-module_track_gUZMl3uW", Ka = "rp_Billing-module_trackDot_yY1N2NRt", Ja = "rp_Billing-module_tiers_BavMzMhY", Za = "rp_Billing-module_tier_HO96mY1F", Qa = "rp_Billing-module_tierRate_vgFEdh-O", en = "rp_Billing-module_tierMin_N22iOx8J", tn = "rp_Billing-module_tierFirst_6Hc74rSN", an = "rp_Billing-module_tierMid_NeSUtEn1", nn = "rp_Billing-module_tierLast_lE0S52qZ", rn = "rp_Billing-module_tierCurrent_GctoON0O", sn = "rp_Billing-module_methodGroups_zpebVDsx", on = "rp_Billing-module_group_pHl7zEfy", ln = "rp_Billing-module_groupHead_P-SY4GHg", cn = "rp_Billing-module_groupTitle_wdOq-XTd", dn = "rp_Billing-module_groupBody_lrnARuI0", hn = "rp_Billing-module_method_faV0uTen", pn = "rp_Billing-module_methodIcon_JUWyNcoC", un = "rp_Billing-module_methodText_-dgM99xC", mn = "rp_Billing-module_methodLabel_5TAtp3w3", gn = "rp_Billing-module_methodDescription_DFZuV4o0", fn = "rp_Billing-module_methodFee_5X-xX3q5", bn = "rp_Billing-module_methodCheck_QhxGxyBe", vn = "rp_Billing-module_checkIcon_5PuJJ6qi", yn = "rp_Billing-module_empty_XLKm1aHR", _n = "rp_Billing-module_region_LaGBn-om", Nn = "rp_Billing-module_regionLabel_7ufpgJpv", wn = "rp_Billing-module_regionTrigger_V3TL-sZd", Mn = "rp_Billing-module_regionValue_RRhFjyaZ", kn = "rp_Billing-module_regionGlobe_oSvgpNSR", $n = "rp_Billing-module_optionGlobe_FVCNGrV9", xn = "rp_Billing-module_regionContent_644AhED-", Cn = "rp_Billing-module_regionHint_ioA4L3ju", An = "rp_Billing-module_pay_htbzTpTf", Ln = "rp_Billing-module_payPending_rNhFyReW", Sn = "rp_Billing-module_error_VTbjGrSy", Bn = "rp_Billing-module_payLabel_9cFNb7Af", Rn = "rp_Billing-module_notice_uwuIHit3",
|
|
1606
|
+
const xa = "rp_Billing-module_billing_jVpbPSwf", Ca = "rp_Billing-module_inline_Mf5K0TOB", Aa = "rp_Billing-module_body_73T3WPhM", La = "rp_Billing-module_sheet_uq-sE7Kj", Sa = "rp_Billing-module_header_6ZibPvV0", Ba = "rp_Billing-module_footer_sZ8dMMt3", Ra = "rp_Billing-module_titleIcon_yvF5gUEf", Fa = "rp_Billing-module_heading_hXnE-5Dq", Ta = "rp_Billing-module_title_XVWBtjrY", qa = "rp_Billing-module_description_15DMv8fm", Pa = "rp_Billing-module_bodyWrap_73GWDsL6", Ia = "rp_Billing-module_scrollFade_Vp55lLY8", Ea = "rp_Billing-module_section_CCEnjKJi", Ha = "rp_Billing-module_fieldLabel_j4TFB90Z", Da = "rp_Billing-module_amount_huNHfEM9", Oa = "rp_Billing-module_amountCurrency_5BAcrLkG", Ua = "rp_Billing-module_quickAmounts_-zXxHGvq", za = "rp_Billing-module_quickAmount_wZ1vL5t7", Xa = "rp_Billing-module_quickAmountActive_UN-iKg7L", Ga = "rp_Billing-module_cashback_SEKfvhCV", Ya = "rp_Billing-module_cashbackHead_TeiHoLw6", ja = "rp_Billing-module_cashbackRate_snXI6bxo", Wa = "rp_Billing-module_cashbackHint_8hFT1XBR", Va = "rp_Billing-module_track_gUZMl3uW", Ka = "rp_Billing-module_trackDot_yY1N2NRt", Ja = "rp_Billing-module_tiers_BavMzMhY", Za = "rp_Billing-module_tier_HO96mY1F", Qa = "rp_Billing-module_tierRate_vgFEdh-O", en = "rp_Billing-module_tierMin_N22iOx8J", tn = "rp_Billing-module_tierFirst_6Hc74rSN", an = "rp_Billing-module_tierMid_NeSUtEn1", nn = "rp_Billing-module_tierLast_lE0S52qZ", rn = "rp_Billing-module_tierCurrent_GctoON0O", sn = "rp_Billing-module_methodGroups_zpebVDsx", on = "rp_Billing-module_group_pHl7zEfy", ln = "rp_Billing-module_groupHead_P-SY4GHg", cn = "rp_Billing-module_groupTitle_wdOq-XTd", dn = "rp_Billing-module_groupBody_lrnARuI0", hn = "rp_Billing-module_method_faV0uTen", pn = "rp_Billing-module_methodIcon_JUWyNcoC", un = "rp_Billing-module_methodText_-dgM99xC", mn = "rp_Billing-module_methodLabel_5TAtp3w3", gn = "rp_Billing-module_methodDescription_DFZuV4o0", fn = "rp_Billing-module_methodFee_5X-xX3q5", bn = "rp_Billing-module_methodCheck_QhxGxyBe", vn = "rp_Billing-module_checkIcon_5PuJJ6qi", yn = "rp_Billing-module_empty_XLKm1aHR", _n = "rp_Billing-module_region_LaGBn-om", Nn = "rp_Billing-module_regionLabel_7ufpgJpv", wn = "rp_Billing-module_regionTrigger_V3TL-sZd", Mn = "rp_Billing-module_regionValue_RRhFjyaZ", kn = "rp_Billing-module_regionGlobe_oSvgpNSR", $n = "rp_Billing-module_optionGlobe_FVCNGrV9", xn = "rp_Billing-module_regionContent_644AhED-", Cn = "rp_Billing-module_regionHint_ioA4L3ju", An = "rp_Billing-module_pay_htbzTpTf", Ln = "rp_Billing-module_payPending_rNhFyReW", Sn = "rp_Billing-module_error_VTbjGrSy", Bn = "rp_Billing-module_payLabel_9cFNb7Af", Rn = "rp_Billing-module_notice_uwuIHit3", S = {
|
|
1607
1607
|
billing: xa,
|
|
1608
1608
|
inline: Ca,
|
|
1609
1609
|
body: Aa,
|
|
@@ -1728,7 +1728,7 @@ function In(t) {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
function En() {
|
|
1730
1730
|
const [t, n] = De(null), [r, s] = De({ overflowing: !1, atEnd: !0 });
|
|
1731
|
-
return
|
|
1731
|
+
return Ae(() => {
|
|
1732
1732
|
if (!t) return;
|
|
1733
1733
|
const l = () => {
|
|
1734
1734
|
const h = t.scrollHeight - t.clientHeight > 1;
|
|
@@ -1759,115 +1759,115 @@ const Yr = ({
|
|
|
1759
1759
|
amount: x,
|
|
1760
1760
|
onAmountChange: M,
|
|
1761
1761
|
quickAmounts: $ = [10, 25, 50, 100],
|
|
1762
|
-
defaultMethodId:
|
|
1763
|
-
methodId:
|
|
1762
|
+
defaultMethodId: R,
|
|
1763
|
+
methodId: N,
|
|
1764
1764
|
onMethodChange: k,
|
|
1765
1765
|
minAmount: f = 0,
|
|
1766
|
-
maxAmount:
|
|
1766
|
+
maxAmount: v,
|
|
1767
1767
|
title: F,
|
|
1768
1768
|
description: o,
|
|
1769
|
-
copy:
|
|
1769
|
+
copy: y,
|
|
1770
1770
|
formatCashback: C,
|
|
1771
1771
|
onPay: q,
|
|
1772
|
-
pending:
|
|
1772
|
+
pending: B = !1,
|
|
1773
1773
|
error: U,
|
|
1774
|
-
children:
|
|
1775
|
-
notice:
|
|
1774
|
+
children: te,
|
|
1775
|
+
notice: X,
|
|
1776
1776
|
variant: ce = "panel",
|
|
1777
1777
|
className: V
|
|
1778
1778
|
}) => {
|
|
1779
|
-
const
|
|
1779
|
+
const Q = { ...Fn, ...y }, ae = at(), Y = at(), re = at(), [pe, j] = En(), [_, E] = De(
|
|
1780
1780
|
() => i ?? Tn(t) ?? n[0]?.code ?? ""
|
|
1781
|
-
), [p, w] = De(m), [
|
|
1782
|
-
|
|
1783
|
-
),
|
|
1784
|
-
(g) => g.code === (d ??
|
|
1785
|
-
) ?? n.find((g) => g.code === i) ?? n[0],
|
|
1786
|
-
const g = (
|
|
1787
|
-
(
|
|
1781
|
+
), [p, w] = De(m), [b, I] = De(
|
|
1782
|
+
R
|
|
1783
|
+
), A = n.find(
|
|
1784
|
+
(g) => g.code === (d ?? _)
|
|
1785
|
+
) ?? n.find((g) => g.code === i) ?? n[0], z = x ?? p, P = A?.currency ?? "EUR", J = qn(t, P), ee = rt(() => {
|
|
1786
|
+
const g = (A?.groups ?? []).filter(
|
|
1787
|
+
(L) => L.methods.length > 0
|
|
1788
1788
|
), u = r.length > 0 ? { id: "crypto", title: s, methods: r } : void 0;
|
|
1789
1789
|
return u ? [...g, u] : [...g];
|
|
1790
|
-
}, [
|
|
1791
|
-
() =>
|
|
1792
|
-
[
|
|
1793
|
-
),
|
|
1794
|
-
const g =
|
|
1795
|
-
return
|
|
1796
|
-
(
|
|
1797
|
-
)?.id ??
|
|
1798
|
-
}, [
|
|
1790
|
+
}, [A, r, s]), de = rt(
|
|
1791
|
+
() => ee.flatMap((g) => g.methods),
|
|
1792
|
+
[ee]
|
|
1793
|
+
), ve = rt(() => {
|
|
1794
|
+
const g = N ?? b;
|
|
1795
|
+
return de.find(
|
|
1796
|
+
(L) => L.id === g && !L.disabled
|
|
1797
|
+
)?.id ?? de.find((L) => !L.disabled)?.id;
|
|
1798
|
+
}, [N, b, de]), _e = de.find((g) => g.id === ve), he = rt(
|
|
1799
1799
|
() => [...l].sort((g, u) => g.min - u.min),
|
|
1800
1800
|
[l]
|
|
1801
|
-
),
|
|
1802
|
-
(g, u) =>
|
|
1801
|
+
), Le = he.reduce(
|
|
1802
|
+
(g, u) => z >= u.min ? u : g,
|
|
1803
1803
|
void 0
|
|
1804
|
-
), ue =
|
|
1805
|
-
amount:
|
|
1804
|
+
), ue = he.find((g) => z < g.min), Te = Le?.rate ?? 0, Se = he[he.length - 1]?.min || 0, Ne = Math.max(0, Math.min(z, Se)), Pe = Se ? Ne / Se * 100 : 0, me = {
|
|
1805
|
+
amount: z,
|
|
1806
1806
|
rate: Te,
|
|
1807
1807
|
next: ue,
|
|
1808
|
-
currency:
|
|
1808
|
+
currency: P,
|
|
1809
1809
|
locale: t
|
|
1810
|
-
},
|
|
1810
|
+
}, Be = C?.(me) ?? In(me), Ie = (g) => {
|
|
1811
1811
|
const u = Number.isFinite(g) ? Math.max(0, g) : 0;
|
|
1812
1812
|
x === void 0 && w(u), M?.(u);
|
|
1813
|
-
},
|
|
1813
|
+
}, Re = (g) => {
|
|
1814
1814
|
const u = n.find((O) => O.code === g);
|
|
1815
1815
|
if (!u) return;
|
|
1816
|
-
d === void 0 &&
|
|
1817
|
-
const
|
|
1816
|
+
d === void 0 && E(g);
|
|
1817
|
+
const L = [
|
|
1818
1818
|
...u.groups.flatMap((O) => O.methods),
|
|
1819
1819
|
...r
|
|
1820
1820
|
];
|
|
1821
|
-
if (!
|
|
1822
|
-
(O) => O.id ===
|
|
1821
|
+
if (!L.some(
|
|
1822
|
+
(O) => O.id === ve && !O.disabled
|
|
1823
1823
|
)) {
|
|
1824
|
-
const O =
|
|
1825
|
-
|
|
1824
|
+
const O = L.find((G) => !G.disabled);
|
|
1825
|
+
N === void 0 && I(O?.id), O && k?.(O);
|
|
1826
1826
|
}
|
|
1827
1827
|
h?.(u);
|
|
1828
1828
|
}, T = (g) => {
|
|
1829
|
-
const u =
|
|
1830
|
-
u && (
|
|
1831
|
-
}, H = !
|
|
1832
|
-
!H || !
|
|
1829
|
+
const u = de.find((L) => L.id === g);
|
|
1830
|
+
u && (N === void 0 && I(g), k?.(u));
|
|
1831
|
+
}, H = !B && Number.isFinite(z) && z > 0 && z >= f && (v === void 0 || z <= v) && !!_e && !!A, Z = () => {
|
|
1832
|
+
!H || !_e || !A || q?.({ amount: z, method: _e, country: A });
|
|
1833
1833
|
};
|
|
1834
1834
|
return /* @__PURE__ */ a(
|
|
1835
1835
|
"section",
|
|
1836
1836
|
{
|
|
1837
1837
|
className: se(
|
|
1838
|
-
|
|
1839
|
-
ce === "inline" &&
|
|
1840
|
-
ce === "sheet" &&
|
|
1838
|
+
S.billing,
|
|
1839
|
+
ce === "inline" && S.inline,
|
|
1840
|
+
ce === "sheet" && S.sheet,
|
|
1841
1841
|
V
|
|
1842
1842
|
),
|
|
1843
|
-
"aria-labelledby":
|
|
1843
|
+
"aria-labelledby": ae,
|
|
1844
1844
|
children: [
|
|
1845
|
-
/* @__PURE__ */ a("header", { className:
|
|
1846
|
-
/* @__PURE__ */ e("span", { className:
|
|
1847
|
-
/* @__PURE__ */ a("div", { className:
|
|
1848
|
-
/* @__PURE__ */ e("h2", { className:
|
|
1849
|
-
o && /* @__PURE__ */ e("p", { className:
|
|
1845
|
+
/* @__PURE__ */ a("header", { className: S.header, children: [
|
|
1846
|
+
/* @__PURE__ */ e("span", { className: S.titleIcon, "aria-hidden": "true", children: /* @__PURE__ */ e(Oe.Wallet, { size: 18 }) }),
|
|
1847
|
+
/* @__PURE__ */ a("div", { className: S.heading, children: [
|
|
1848
|
+
/* @__PURE__ */ e("h2", { className: S.title, id: ae, children: F ?? Q.title }),
|
|
1849
|
+
o && /* @__PURE__ */ e("p", { className: S.description, children: o })
|
|
1850
1850
|
] })
|
|
1851
1851
|
] }),
|
|
1852
|
-
/* @__PURE__ */ a("div", { className:
|
|
1853
|
-
/* @__PURE__ */ a("div", { className:
|
|
1854
|
-
/* @__PURE__ */ a("div", { className:
|
|
1855
|
-
/* @__PURE__ */ e(vt, { className:
|
|
1856
|
-
/* @__PURE__ */ a(yt.Root, { className:
|
|
1857
|
-
/* @__PURE__ */ e("span", { className:
|
|
1852
|
+
/* @__PURE__ */ a("div", { className: S.bodyWrap, children: [
|
|
1853
|
+
/* @__PURE__ */ a("div", { className: S.body, ref: pe, children: [
|
|
1854
|
+
/* @__PURE__ */ a("div", { className: S.section, children: [
|
|
1855
|
+
/* @__PURE__ */ e(vt, { className: S.fieldLabel, htmlFor: Y, children: Q.amount }),
|
|
1856
|
+
/* @__PURE__ */ a(yt.Root, { className: S.amount, disabled: B, children: [
|
|
1857
|
+
/* @__PURE__ */ e("span", { className: S.amountCurrency, "aria-hidden": "true", children: J }),
|
|
1858
1858
|
/* @__PURE__ */ e(
|
|
1859
1859
|
yt.Control,
|
|
1860
1860
|
{
|
|
1861
|
-
disabled:
|
|
1861
|
+
disabled: B,
|
|
1862
1862
|
id: Y,
|
|
1863
|
-
className:
|
|
1863
|
+
className: S.amountInput,
|
|
1864
1864
|
type: "number",
|
|
1865
1865
|
inputMode: "decimal",
|
|
1866
1866
|
min: f,
|
|
1867
|
-
max:
|
|
1867
|
+
max: v,
|
|
1868
1868
|
step: "0.01",
|
|
1869
1869
|
placeholder: "0",
|
|
1870
|
-
value:
|
|
1870
|
+
value: z === 0 ? "" : z,
|
|
1871
1871
|
onChange: (g) => {
|
|
1872
1872
|
const u = Number.parseFloat(g.target.value);
|
|
1873
1873
|
Ie(Number.isFinite(u) ? u : 0);
|
|
@@ -1875,17 +1875,17 @@ const Yr = ({
|
|
|
1875
1875
|
}
|
|
1876
1876
|
)
|
|
1877
1877
|
] }),
|
|
1878
|
-
$ && $.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
1878
|
+
$ && $.length > 0 && /* @__PURE__ */ e("div", { className: S.quickAmounts, children: $.map((g) => /* @__PURE__ */ a(
|
|
1879
1879
|
W,
|
|
1880
1880
|
{
|
|
1881
1881
|
variant: "secondary",
|
|
1882
1882
|
textVariant: Qt.Button_Link_Extra_Small_1,
|
|
1883
1883
|
className: se(
|
|
1884
|
-
|
|
1885
|
-
|
|
1884
|
+
S.quickAmount,
|
|
1885
|
+
z === g && S.quickAmountActive
|
|
1886
1886
|
),
|
|
1887
|
-
"aria-pressed":
|
|
1888
|
-
disabled:
|
|
1887
|
+
"aria-pressed": z === g,
|
|
1888
|
+
disabled: B,
|
|
1889
1889
|
onClick: () => Ie(g),
|
|
1890
1890
|
children: [
|
|
1891
1891
|
"+",
|
|
@@ -1895,29 +1895,29 @@ const Yr = ({
|
|
|
1895
1895
|
g
|
|
1896
1896
|
)) })
|
|
1897
1897
|
] }),
|
|
1898
|
-
|
|
1899
|
-
/* @__PURE__ */ a("div", { className:
|
|
1900
|
-
/* @__PURE__ */ e("span", { children:
|
|
1901
|
-
/* @__PURE__ */ a("strong", { className:
|
|
1898
|
+
he.length > 1 && /* @__PURE__ */ a("div", { className: S.cashback, children: [
|
|
1899
|
+
/* @__PURE__ */ a("div", { className: S.cashbackHead, children: [
|
|
1900
|
+
/* @__PURE__ */ e("span", { children: Q.cashback }),
|
|
1901
|
+
/* @__PURE__ */ a("strong", { className: S.cashbackRate, children: [
|
|
1902
1902
|
Te,
|
|
1903
1903
|
"%"
|
|
1904
1904
|
] })
|
|
1905
1905
|
] }),
|
|
1906
|
-
/* @__PURE__ */ e("p", { className:
|
|
1907
|
-
/* @__PURE__ */ a("div", { className:
|
|
1906
|
+
/* @__PURE__ */ e("p", { className: S.cashbackHint, children: Be }),
|
|
1907
|
+
/* @__PURE__ */ a("div", { className: S.track, children: [
|
|
1908
1908
|
/* @__PURE__ */ e(
|
|
1909
1909
|
ea,
|
|
1910
1910
|
{
|
|
1911
|
-
className:
|
|
1912
|
-
value:
|
|
1913
|
-
max:
|
|
1914
|
-
ariaLabel:
|
|
1911
|
+
className: S.progress,
|
|
1912
|
+
value: Ne,
|
|
1913
|
+
max: Se || 1,
|
|
1914
|
+
ariaLabel: Q.cashback
|
|
1915
1915
|
}
|
|
1916
1916
|
),
|
|
1917
1917
|
/* @__PURE__ */ e(
|
|
1918
1918
|
"span",
|
|
1919
1919
|
{
|
|
1920
|
-
className:
|
|
1920
|
+
className: S.trackDot,
|
|
1921
1921
|
style: {
|
|
1922
1922
|
left: `calc(8px + (100% - 16px) * ${Pe / 100})`
|
|
1923
1923
|
},
|
|
@@ -1928,26 +1928,26 @@ const Yr = ({
|
|
|
1928
1928
|
/* @__PURE__ */ e(
|
|
1929
1929
|
"div",
|
|
1930
1930
|
{
|
|
1931
|
-
className:
|
|
1931
|
+
className: S.tiers,
|
|
1932
1932
|
style: {
|
|
1933
|
-
gridTemplateColumns: `repeat(${
|
|
1933
|
+
gridTemplateColumns: `repeat(${he.length}, minmax(0, 1fr))`
|
|
1934
1934
|
},
|
|
1935
|
-
children:
|
|
1935
|
+
children: he.map((g, u) => /* @__PURE__ */ a(
|
|
1936
1936
|
"div",
|
|
1937
1937
|
{
|
|
1938
1938
|
className: se(
|
|
1939
|
-
|
|
1940
|
-
u === 0 &&
|
|
1941
|
-
u > 0 && u <
|
|
1942
|
-
u ===
|
|
1943
|
-
g ===
|
|
1939
|
+
S.tier,
|
|
1940
|
+
u === 0 && S.tierFirst,
|
|
1941
|
+
u > 0 && u < he.length - 1 && S.tierMid,
|
|
1942
|
+
u === he.length - 1 && S.tierLast,
|
|
1943
|
+
g === Le && S.tierCurrent
|
|
1944
1944
|
),
|
|
1945
1945
|
children: [
|
|
1946
|
-
/* @__PURE__ */ a("span", { className:
|
|
1946
|
+
/* @__PURE__ */ a("span", { className: S.tierRate, children: [
|
|
1947
1947
|
g.rate,
|
|
1948
1948
|
"%"
|
|
1949
1949
|
] }),
|
|
1950
|
-
/* @__PURE__ */ e("span", { className:
|
|
1950
|
+
/* @__PURE__ */ e("span", { className: S.tierMin, children: Pn(t, P, g.min) })
|
|
1951
1951
|
]
|
|
1952
1952
|
},
|
|
1953
1953
|
g.min
|
|
@@ -1958,47 +1958,47 @@ const Yr = ({
|
|
|
1958
1958
|
/* @__PURE__ */ a(
|
|
1959
1959
|
ta,
|
|
1960
1960
|
{
|
|
1961
|
-
disabled:
|
|
1962
|
-
value:
|
|
1961
|
+
disabled: B,
|
|
1962
|
+
value: ve ?? "",
|
|
1963
1963
|
onValueChange: T,
|
|
1964
|
-
"aria-label":
|
|
1965
|
-
className:
|
|
1964
|
+
"aria-label": Q.methodLabel,
|
|
1965
|
+
className: S.methodGroups,
|
|
1966
1966
|
children: [
|
|
1967
|
-
|
|
1968
|
-
|
|
1967
|
+
ee.length === 0 && /* @__PURE__ */ e(aa, { className: S.empty, title: Q.empty }),
|
|
1968
|
+
ee.map((g) => /* @__PURE__ */ a(
|
|
1969
1969
|
"section",
|
|
1970
1970
|
{
|
|
1971
|
-
className:
|
|
1972
|
-
"aria-labelledby": `${
|
|
1971
|
+
className: S.group,
|
|
1972
|
+
"aria-labelledby": `${ae}-${g.id}`,
|
|
1973
1973
|
children: [
|
|
1974
|
-
/* @__PURE__ */ a("div", { className:
|
|
1974
|
+
/* @__PURE__ */ a("div", { className: S.groupHead, children: [
|
|
1975
1975
|
/* @__PURE__ */ e(
|
|
1976
1976
|
"h3",
|
|
1977
1977
|
{
|
|
1978
|
-
className:
|
|
1979
|
-
id: `${
|
|
1978
|
+
className: S.groupTitle,
|
|
1979
|
+
id: `${ae}-${g.id}`,
|
|
1980
1980
|
children: g.title
|
|
1981
1981
|
}
|
|
1982
1982
|
),
|
|
1983
|
-
/* @__PURE__ */ e("span", { children: g.feeLabel ??
|
|
1983
|
+
/* @__PURE__ */ e("span", { children: g.feeLabel ?? Q.fee })
|
|
1984
1984
|
] }),
|
|
1985
|
-
/* @__PURE__ */ e(na, { variant: "reference", className:
|
|
1985
|
+
/* @__PURE__ */ e(na, { variant: "reference", className: S.groupBody, children: g.methods.map((u) => /* @__PURE__ */ a(
|
|
1986
1986
|
ra,
|
|
1987
1987
|
{
|
|
1988
1988
|
value: u.id,
|
|
1989
1989
|
disabled: u.disabled,
|
|
1990
|
-
className:
|
|
1990
|
+
className: S.method,
|
|
1991
1991
|
children: [
|
|
1992
|
-
/* @__PURE__ */ e("span", { className:
|
|
1993
|
-
/* @__PURE__ */ a("span", { className:
|
|
1994
|
-
/* @__PURE__ */ a("span", { className:
|
|
1992
|
+
/* @__PURE__ */ e("span", { className: S.methodIcon, "aria-hidden": "true", children: u.icon ?? /* @__PURE__ */ e(Oe.Card, { size: 22 }) }),
|
|
1993
|
+
/* @__PURE__ */ a("span", { className: S.methodText, children: [
|
|
1994
|
+
/* @__PURE__ */ a("span", { className: S.methodLabel, children: [
|
|
1995
1995
|
u.label,
|
|
1996
1996
|
u.badge && /* @__PURE__ */ e(ia, { children: u.badge })
|
|
1997
1997
|
] }),
|
|
1998
|
-
u.description && /* @__PURE__ */ e("span", { className:
|
|
1998
|
+
u.description && /* @__PURE__ */ e("span", { className: S.methodDescription, children: u.description })
|
|
1999
1999
|
] }),
|
|
2000
|
-
u.fee && /* @__PURE__ */ e("span", { className:
|
|
2001
|
-
/* @__PURE__ */ e("span", { className:
|
|
2000
|
+
u.fee && /* @__PURE__ */ e("span", { className: S.methodFee, children: u.fee }),
|
|
2001
|
+
/* @__PURE__ */ e("span", { className: S.methodCheck, "aria-hidden": "true", children: /* @__PURE__ */ e(Oe.Check, { size: 12, className: S.checkIcon }) })
|
|
2002
2002
|
]
|
|
2003
2003
|
},
|
|
2004
2004
|
u.id
|
|
@@ -2010,29 +2010,29 @@ const Yr = ({
|
|
|
2010
2010
|
]
|
|
2011
2011
|
}
|
|
2012
2012
|
),
|
|
2013
|
-
|
|
2013
|
+
te
|
|
2014
2014
|
] }),
|
|
2015
|
-
j && /* @__PURE__ */ e("span", { className:
|
|
2015
|
+
j && /* @__PURE__ */ e("span", { className: S.scrollFade, "aria-hidden": "true" })
|
|
2016
2016
|
] }),
|
|
2017
|
-
/* @__PURE__ */ a("footer", { className:
|
|
2018
|
-
/* @__PURE__ */ a("div", { className:
|
|
2019
|
-
/* @__PURE__ */ e(vt, { className:
|
|
2017
|
+
/* @__PURE__ */ a("footer", { className: S.footer, children: [
|
|
2018
|
+
/* @__PURE__ */ a("div", { className: S.region, children: [
|
|
2019
|
+
/* @__PURE__ */ e(vt, { className: S.regionLabel, htmlFor: re, children: Q.region }),
|
|
2020
2020
|
/* @__PURE__ */ a(
|
|
2021
2021
|
sa,
|
|
2022
2022
|
{
|
|
2023
|
-
disabled:
|
|
2024
|
-
value:
|
|
2025
|
-
onValueChange:
|
|
2023
|
+
disabled: B || n.length === 0,
|
|
2024
|
+
value: A?.code ?? "",
|
|
2025
|
+
onValueChange: Re,
|
|
2026
2026
|
children: [
|
|
2027
2027
|
/* @__PURE__ */ a(
|
|
2028
2028
|
oa,
|
|
2029
2029
|
{
|
|
2030
|
-
id:
|
|
2031
|
-
className:
|
|
2032
|
-
"aria-label":
|
|
2030
|
+
id: re,
|
|
2031
|
+
className: S.regionTrigger,
|
|
2032
|
+
"aria-label": Q.region,
|
|
2033
2033
|
children: [
|
|
2034
|
-
/* @__PURE__ */ e(Oe.Globe, { size: 16, className:
|
|
2035
|
-
/* @__PURE__ */ e(la, { className:
|
|
2034
|
+
/* @__PURE__ */ e(Oe.Globe, { size: 16, className: S.regionGlobe }),
|
|
2035
|
+
/* @__PURE__ */ e(la, { className: S.regionValue }),
|
|
2036
2036
|
/* @__PURE__ */ e(ca, { children: /* @__PURE__ */ e(Oe.Down, { size: 16 }) })
|
|
2037
2037
|
]
|
|
2038
2038
|
}
|
|
@@ -2043,9 +2043,9 @@ const Yr = ({
|
|
|
2043
2043
|
position: "popper",
|
|
2044
2044
|
sideOffset: 6,
|
|
2045
2045
|
align: "start",
|
|
2046
|
-
className:
|
|
2046
|
+
className: S.regionContent,
|
|
2047
2047
|
children: /* @__PURE__ */ e(pa, { children: /* @__PURE__ */ e(ua, { children: n.map((g) => /* @__PURE__ */ a(ma, { value: g.code, children: [
|
|
2048
|
-
/* @__PURE__ */ e(Oe.Globe, { size: 15, className:
|
|
2048
|
+
/* @__PURE__ */ e(Oe.Globe, { size: 15, className: S.optionGlobe }),
|
|
2049
2049
|
/* @__PURE__ */ e(ga, { children: g.name }),
|
|
2050
2050
|
/* @__PURE__ */ e(fa, {})
|
|
2051
2051
|
] }, g.code)) }) })
|
|
@@ -2054,9 +2054,9 @@ const Yr = ({
|
|
|
2054
2054
|
]
|
|
2055
2055
|
}
|
|
2056
2056
|
),
|
|
2057
|
-
/* @__PURE__ */ e("p", { className:
|
|
2057
|
+
/* @__PURE__ */ e("p", { className: S.regionHint, children: Q.regionHint })
|
|
2058
2058
|
] }),
|
|
2059
|
-
U && /* @__PURE__ */ a("p", { className:
|
|
2059
|
+
U && /* @__PURE__ */ a("p", { className: S.error, role: "alert", children: [
|
|
2060
2060
|
/* @__PURE__ */ e(Oe.Close, { size: 14 }),
|
|
2061
2061
|
U
|
|
2062
2062
|
] }),
|
|
@@ -2064,27 +2064,27 @@ const Yr = ({
|
|
|
2064
2064
|
W,
|
|
2065
2065
|
{
|
|
2066
2066
|
variant: "primary",
|
|
2067
|
-
className: se(
|
|
2067
|
+
className: se(S.pay, B && S.payPending),
|
|
2068
2068
|
disabled: !H,
|
|
2069
|
-
onClick:
|
|
2070
|
-
children:
|
|
2071
|
-
/* @__PURE__ */ e(ba, { label:
|
|
2072
|
-
/* @__PURE__ */ e("span", { children:
|
|
2069
|
+
onClick: Z,
|
|
2070
|
+
children: B ? /* @__PURE__ */ a(ze, { children: [
|
|
2071
|
+
/* @__PURE__ */ e(ba, { label: Q.pending }),
|
|
2072
|
+
/* @__PURE__ */ e("span", { children: Q.pending })
|
|
2073
2073
|
] }) : /* @__PURE__ */ a(ze, { children: [
|
|
2074
|
-
/* @__PURE__ */ a("span", { className:
|
|
2074
|
+
/* @__PURE__ */ a("span", { className: S.payLabel, children: [
|
|
2075
2075
|
/* @__PURE__ */ e(Oe.Card, { size: 16 }),
|
|
2076
|
-
|
|
2076
|
+
Q.pay
|
|
2077
2077
|
] }),
|
|
2078
|
-
/* @__PURE__ */ e("strong", { children: It(t,
|
|
2078
|
+
/* @__PURE__ */ e("strong", { children: It(t, P, z) })
|
|
2079
2079
|
] })
|
|
2080
2080
|
}
|
|
2081
2081
|
),
|
|
2082
|
-
|
|
2082
|
+
X && /* @__PURE__ */ e("p", { className: S.notice, children: X })
|
|
2083
2083
|
] })
|
|
2084
2084
|
]
|
|
2085
2085
|
}
|
|
2086
2086
|
);
|
|
2087
|
-
},
|
|
2087
|
+
}, Fe = {
|
|
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",
|
|
@@ -2111,30 +2111,30 @@ const Yr = ({
|
|
|
2111
2111
|
"div",
|
|
2112
2112
|
{
|
|
2113
2113
|
className: se(
|
|
2114
|
-
|
|
2115
|
-
r &&
|
|
2114
|
+
Fe["rp-bar-chart"],
|
|
2115
|
+
r && Fe["rp-bar-chart--stacked"]
|
|
2116
2116
|
),
|
|
2117
2117
|
children: [
|
|
2118
|
-
/* @__PURE__ */ a("div", { className:
|
|
2118
|
+
/* @__PURE__ */ a("div", { className: Fe["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: Fe["rp-bar-chart-bars"],
|
|
2126
2126
|
role: "img",
|
|
2127
2127
|
"aria-label": `${s}: ${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: Fe["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: Fe["rp-bar-chart-segment"],
|
|
2138
2138
|
style: {
|
|
2139
2139
|
height: `${d / l * 85 * (r ? 0.25 : 0.15)}%`
|
|
2140
2140
|
}
|
|
@@ -2144,8 +2144,8 @@ const Yr = ({
|
|
|
2144
2144
|
"i",
|
|
2145
2145
|
{
|
|
2146
2146
|
className: se(
|
|
2147
|
-
|
|
2148
|
-
|
|
2147
|
+
Fe["rp-bar-chart-segment"],
|
|
2148
|
+
Fe["rp-bar-chart-segment-inner"]
|
|
2149
2149
|
),
|
|
2150
2150
|
style: {
|
|
2151
2151
|
height: `${d / l * 85 * (r ? 0.5 : 0.85)}%`,
|
|
@@ -2157,8 +2157,8 @@ const Yr = ({
|
|
|
2157
2157
|
"i",
|
|
2158
2158
|
{
|
|
2159
2159
|
className: se(
|
|
2160
|
-
|
|
2161
|
-
|
|
2160
|
+
Fe["rp-bar-chart-segment"],
|
|
2161
|
+
Fe["rp-bar-chart-segment-top"]
|
|
2162
2162
|
),
|
|
2163
2163
|
style: {
|
|
2164
2164
|
height: `${d / l * 21}%`,
|
|
@@ -2172,7 +2172,7 @@ const Yr = ({
|
|
|
2172
2172
|
))
|
|
2173
2173
|
}
|
|
2174
2174
|
),
|
|
2175
|
-
/* @__PURE__ */ e("div", { className:
|
|
2175
|
+
/* @__PURE__ */ e("div", { className: Fe["rp-bar-chart-labels"], children: i.map((d, h) => /* @__PURE__ */ e("span", { children: d }, `${h}-${d}`)) })
|
|
2176
2176
|
]
|
|
2177
2177
|
}
|
|
2178
2178
|
);
|
|
@@ -2302,7 +2302,7 @@ const Yr = ({
|
|
|
2302
2302
|
r.name
|
|
2303
2303
|
))
|
|
2304
2304
|
}
|
|
2305
|
-
),
|
|
2305
|
+
), ye = {
|
|
2306
2306
|
"rp-request-table-scroll": "rp_RequestTable-module_rp-request-table-scroll_iHWzajvC",
|
|
2307
2307
|
"rp-request-table": "rp_RequestTable-module_rp-request-table_jVxKsH-c",
|
|
2308
2308
|
"rp-request-table-caption": "rp_RequestTable-module_rp-request-table-caption_tDVFUwew",
|
|
@@ -2327,36 +2327,36 @@ const Yr = ({
|
|
|
2327
2327
|
], Zr = ({ rows: t }) => /* @__PURE__ */ e(
|
|
2328
2328
|
"div",
|
|
2329
2329
|
{
|
|
2330
|
-
className:
|
|
2330
|
+
className: ye["rp-request-table-scroll"],
|
|
2331
2331
|
tabIndex: 0,
|
|
2332
2332
|
"aria-label": "Scrollable requests",
|
|
2333
|
-
children: /* @__PURE__ */ a("table", { className:
|
|
2334
|
-
/* @__PURE__ */ e("caption", { className:
|
|
2333
|
+
children: /* @__PURE__ */ a("table", { className: ye["rp-request-table"], children: [
|
|
2334
|
+
/* @__PURE__ */ e("caption", { className: ye["rp-request-table-caption"], children: "Requests" }),
|
|
2335
2335
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: Hn.map((n) => /* @__PURE__ */ e("th", { scope: "col", children: n }, n)) }) }),
|
|
2336
2336
|
/* @__PURE__ */ e("tbody", { children: t.map((n) => /* @__PURE__ */ a("tr", { children: [
|
|
2337
|
-
/* @__PURE__ */ e("td", { className:
|
|
2337
|
+
/* @__PURE__ */ e("td", { className: ye["rp-request-table-time"], children: n.time }),
|
|
2338
2338
|
/* @__PURE__ */ e("td", { children: n.agent }),
|
|
2339
2339
|
/* @__PURE__ */ e("td", { children: n.model }),
|
|
2340
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ a("span", { className:
|
|
2340
|
+
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ a("span", { className: ye["rp-request-table-provider"], children: [
|
|
2341
2341
|
n.providerIcon ? /* @__PURE__ */ e(
|
|
2342
2342
|
"span",
|
|
2343
2343
|
{
|
|
2344
|
-
className:
|
|
2344
|
+
className: ye["rp-request-table-provider-icon"],
|
|
2345
2345
|
"aria-hidden": "true",
|
|
2346
2346
|
children: n.providerIcon
|
|
2347
2347
|
}
|
|
2348
2348
|
) : null,
|
|
2349
2349
|
n.provider,
|
|
2350
|
-
/* @__PURE__ */ e("span", { className:
|
|
2350
|
+
/* @__PURE__ */ e("span", { className: ye["rp-request-table-account"], children: n.account })
|
|
2351
2351
|
] }) }),
|
|
2352
|
-
/* @__PURE__ */ e("td", { className:
|
|
2353
|
-
/* @__PURE__ */ e("td", { className:
|
|
2352
|
+
/* @__PURE__ */ e("td", { className: ye["rp-request-table-num"], children: n.tokens }),
|
|
2353
|
+
/* @__PURE__ */ e("td", { className: ye["rp-request-table-num"], children: n.output ?? "—" }),
|
|
2354
2354
|
/* @__PURE__ */ e(
|
|
2355
2355
|
"td",
|
|
2356
2356
|
{
|
|
2357
2357
|
className: se(
|
|
2358
|
-
|
|
2359
|
-
|
|
2358
|
+
ye["rp-request-table-num"],
|
|
2359
|
+
ye["rp-request-table-cost"]
|
|
2360
2360
|
),
|
|
2361
2361
|
children: n.cost
|
|
2362
2362
|
}
|
|
@@ -2366,8 +2366,8 @@ const Yr = ({
|
|
|
2366
2366
|
"span",
|
|
2367
2367
|
{
|
|
2368
2368
|
className: se(
|
|
2369
|
-
|
|
2370
|
-
n.status === "Failed" ?
|
|
2369
|
+
ye["rp-request-table-status"],
|
|
2370
|
+
n.status === "Failed" ? ye["rp-request-table-status--failed"] : ye["rp-request-table-status--succeeded"]
|
|
2371
2371
|
),
|
|
2372
2372
|
"aria-hidden": "true",
|
|
2373
2373
|
children: n.status === "Failed" ? "×" : "•"
|
|
@@ -2423,7 +2423,7 @@ const Yr = ({
|
|
|
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,25 +2437,25 @@ 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
|
-
}, ei = ({ items: t }) => /* @__PURE__ */ e("div", { className:
|
|
2440
|
+
}, ei = ({ items: t }) => /* @__PURE__ */ e("div", { className: we["rp-usage-list"], children: t.map((n) => /* @__PURE__ */ a(
|
|
2441
2441
|
"div",
|
|
2442
2442
|
{
|
|
2443
2443
|
className: se(
|
|
2444
|
-
|
|
2445
|
-
|
|
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
|
|
@@ -2463,41 +2463,41 @@ const Yr = ({
|
|
|
2463
2463
|
"rp-plus-background-canvas": "rp_BackgroundPlus-module_rp-plus-background-canvas_qV-SHke3"
|
|
2464
2464
|
};
|
|
2465
2465
|
function Et(t, n) {
|
|
2466
|
-
const r =
|
|
2467
|
-
return
|
|
2466
|
+
const r = Ce(null), s = Ce(n ?? (t ? 7 : 14));
|
|
2467
|
+
return Ae(() => {
|
|
2468
2468
|
s.current = n ?? (t ? 7 : 14);
|
|
2469
|
-
}, [n, t]),
|
|
2469
|
+
}, [n, t]), Ae(() => {
|
|
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 m = 0, x = 0, M = 0, $ = !0,
|
|
2475
|
+
let m = 0, x = 0, M = 0, $ = !0, R = [], N = null;
|
|
2476
2476
|
const k = window.matchMedia("(hover: hover) and (pointer: fine)"), f = 10;
|
|
2477
|
-
let
|
|
2478
|
-
const
|
|
2479
|
-
if (
|
|
2480
|
-
const p = (
|
|
2481
|
-
|
|
2482
|
-
const
|
|
2483
|
-
if (
|
|
2484
|
-
const I =
|
|
2485
|
-
for (let
|
|
2486
|
-
for (let
|
|
2487
|
-
const
|
|
2488
|
-
|
|
2477
|
+
let v = 0, F = 0, o = new Float32Array(0), y = new Float32Array(0), C = 0, q = 0, B = null, U = null;
|
|
2478
|
+
const te = () => {
|
|
2479
|
+
if (B) {
|
|
2480
|
+
const p = (B.targetX - B.x) * 0.22, w = (B.targetY - B.y) * 0.22;
|
|
2481
|
+
B.x += p, B.y += w;
|
|
2482
|
+
const b = Math.hypot(p, w);
|
|
2483
|
+
if (b > 0.02) {
|
|
2484
|
+
const I = B.x / f + 1, A = B.y / f + 1, z = Math.min(b, 12) * 0.065;
|
|
2485
|
+
for (let P = Math.max(1, Math.floor(A - 7)); P < Math.min(F - 1, A + 8); P++)
|
|
2486
|
+
for (let J = Math.max(1, Math.floor(I - 7)); J < Math.min(v - 1, I + 8); J++) {
|
|
2487
|
+
const ee = J - I, de = P - A, ve = (ee * p + de * w) / b;
|
|
2488
|
+
y[P * v + J] += ve * Math.exp(-(ee * ee + de * de) / 9) * z;
|
|
2489
2489
|
}
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
2492
|
for (let p = 1; p < F - 1; p++)
|
|
2493
|
-
for (let w = 1; w <
|
|
2494
|
-
const
|
|
2495
|
-
|
|
2493
|
+
for (let w = 1; w < v - 1; w++) {
|
|
2494
|
+
const b = p * v + w, I = o[b - 1] + o[b + 1] + o[b - v] + o[b + v] - 4 * o[b], A = Math.min(w, p, v - 1 - w, F - 1 - p);
|
|
2495
|
+
y[b] = (y[b] + I * 0.32) * (A < 8 ? 0.88 : 0.985);
|
|
2496
2496
|
}
|
|
2497
|
-
for (let p = 0; p < o.length; p++) o[p] +=
|
|
2498
|
-
},
|
|
2499
|
-
const
|
|
2500
|
-
return (o[
|
|
2497
|
+
for (let p = 0; p < o.length; p++) o[p] += y[p];
|
|
2498
|
+
}, X = (p, w) => {
|
|
2499
|
+
const b = Math.max(0, Math.min(v - 2, p / f + 1)), I = Math.max(0, Math.min(F - 2, w / f + 1)), A = Math.floor(b), z = Math.floor(I), P = b - A, J = I - z, ee = z * v + A;
|
|
2500
|
+
return (o[ee] * (1 - P) + o[ee + 1] * P) * (1 - J) + (o[ee + v] * (1 - P) + o[ee + v + 1] * P) * J;
|
|
2501
2501
|
}, ce = (p) => {
|
|
2502
2502
|
if (!$ || document.hidden) {
|
|
2503
2503
|
M = 0;
|
|
@@ -2506,123 +2506,133 @@ function Et(t, n) {
|
|
|
2506
2506
|
if (q += Math.min(50, C ? p - C : 0), C = p, h.matches)
|
|
2507
2507
|
q = 0;
|
|
2508
2508
|
else for (; q >= 1e3 / 60; )
|
|
2509
|
-
|
|
2510
|
-
i.clearRect(0, 0, m, x),
|
|
2511
|
-
const w = s.current,
|
|
2512
|
-
for (let
|
|
2513
|
-
for (let
|
|
2514
|
-
let
|
|
2515
|
-
if (
|
|
2516
|
-
const
|
|
2509
|
+
te(), q -= 1e3 / 60;
|
|
2510
|
+
i.clearRect(0, 0, m, x), R = R.filter((A) => p - A.time < 2400);
|
|
2511
|
+
const w = s.current, b = w / 2, I = w * 0.25;
|
|
2512
|
+
for (let A = b, z = 0; A < x; A += w, z++)
|
|
2513
|
+
for (let P = b + z % 2 * w / 2; P < m; P += w) {
|
|
2514
|
+
let J = 0, ee = 0, de = 0;
|
|
2515
|
+
if (N && !h.matches) {
|
|
2516
|
+
const L = (p - N.time) / 1e3, D = (P - m / 2) / (m * 0.58), O = (A - x * 0.42) / (x * 0.7), G = Math.hypot(D, O), K = 0.22 + 0.98 * Math.exp(-G * G * 2.1), oe = Math.max(
|
|
2517
2517
|
0,
|
|
2518
|
-
Math.min(
|
|
2519
|
-
),
|
|
2520
|
-
|
|
2518
|
+
Math.min(L, 2.4) - Math.min(0.045, G * 0.025)
|
|
2519
|
+
), ne = 1.55 * (1 - Math.exp(-oe / 0.12)) * K;
|
|
2520
|
+
de = D * 210 * ne, ee = -260 * ne * (1 - 0.3 * Math.tanh(O));
|
|
2521
2521
|
}
|
|
2522
2522
|
if (!h.matches)
|
|
2523
|
-
for (const
|
|
2524
|
-
const D = (p -
|
|
2523
|
+
for (const L of R) {
|
|
2524
|
+
const D = (p - L.time) / 1e3, O = Math.hypot(P - L.x, A - L.y);
|
|
2525
2525
|
if (D < 0) continue;
|
|
2526
2526
|
const G = O - D * 320;
|
|
2527
|
-
|
|
2527
|
+
J += Math.sin(G * 0.065) * Math.exp(-G * G / 13e3) * Math.max(0, 1 - D / 2.4) * 11;
|
|
2528
2528
|
}
|
|
2529
|
-
const
|
|
2530
|
-
-Math.pow((
|
|
2531
|
-
) * 0.55, qe = Math.hypot(
|
|
2529
|
+
const ve = h.matches ? 0 : X(P + f, A) - X(P - f, A), _e = h.matches ? 0 : X(P, A + f) - X(P, A - f), he = 12 * Math.tanh(ve * 0.65), Le = 12 * Math.tanh(_e * 0.65), ue = Math.pow(Math.max(0, 1 - A / x), 0.6), Te = 1 - Math.exp(
|
|
2530
|
+
-Math.pow((P - m / 2) / (m * 0.28), 2) - Math.pow((A - x * 0.38) / (x * 0.24), 2)
|
|
2531
|
+
) * 0.55, qe = Math.hypot(he, Le);
|
|
2532
2532
|
if (t) {
|
|
2533
|
-
const
|
|
2533
|
+
const L = Math.abs(X(P, A)) * 0.12 + qe * 0.035 + Math.abs(J) * 0.035;
|
|
2534
2534
|
let D = U ? Math.exp(
|
|
2535
|
-
-((
|
|
2535
|
+
-((P - U.x) ** 2 + (A - U.y) ** 2) / (2 * 24 ** 2)
|
|
2536
2536
|
) : 0, O = 0;
|
|
2537
2537
|
if (!h.matches)
|
|
2538
|
-
for (const G of
|
|
2539
|
-
const K = (p - G.time) / 1e3, oe = Math.hypot(
|
|
2538
|
+
for (const G of R) {
|
|
2539
|
+
const K = (p - G.time) / 1e3, oe = Math.hypot(P - G.x, A - G.y), ne = 32 + 64 * Math.min(1, K / 0.3), le = Math.max(0, 1 - K / 2.4), ie = Math.exp(-((oe - K * 320) ** 2) / (2 * 36 ** 2)) * le;
|
|
2540
2540
|
D = Math.max(
|
|
2541
2541
|
D,
|
|
2542
|
-
Math.exp(-(oe ** 2) / (2 *
|
|
2543
|
-
|
|
2544
|
-
), O = Math.max(O,
|
|
2542
|
+
Math.exp(-(oe ** 2) / (2 * ne ** 2)) * le,
|
|
2543
|
+
ie
|
|
2544
|
+
), O = Math.max(O, ie);
|
|
2545
2545
|
}
|
|
2546
|
-
i.globalAlpha = Math.min(0.28, 0.1 +
|
|
2547
|
-
|
|
2548
|
-
|
|
2546
|
+
i.globalAlpha = Math.min(0.28, 0.1 + L * 0.12 + O * 0.12) * D, i.fillStyle = "#8a8f98", i.beginPath(), i.arc(
|
|
2547
|
+
P + J * 0.4 + he * 0.25,
|
|
2548
|
+
A + J + Le * 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
|
|
2555
|
+
const Se = J * 0.055 + Math.tanh((ve - _e) * 0.2) * 0.18, Ne = I + Math.abs(J) * 0.16 + qe * 0.08, Pe = Math.sin(P * 12.9898 + A * 78.233) * 43758.5453, me = Pe - Math.floor(Pe), Be = p / 1e3, Ie = Math.sin(P * 39.346 + A * 11.135) * 24634.6345, Re = Ie - Math.floor(Ie), T = Be / (3 + Re * 5) + Re * 17, H = T - Math.floor(T), Z = H < 0.32 ? Math.pow(Math.sin(Math.PI * H / 0.32), 2) : 0, g = me < 0.22, u = h.matches || !g ? 1 : 1 - 0.98 * Z;
|
|
2556
2556
|
i.save(), i.translate(
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
), i.rotate(
|
|
2557
|
+
P + J * 0.4 + he + de,
|
|
2558
|
+
A + J + Le + ee
|
|
2559
|
+
), i.rotate(Se), i.globalAlpha = Math.min(
|
|
2560
2560
|
1,
|
|
2561
2561
|
Math.min(
|
|
2562
2562
|
0.95,
|
|
2563
|
-
0.38 + me * 0.22 + (g ? 0.32 : 0) + Math.abs(
|
|
2563
|
+
0.38 + me * 0.22 + (g ? 0.32 : 0) + Math.abs(J) * 0.045 + qe * 0.018
|
|
2564
2564
|
) * ue * Te * u
|
|
2565
|
-
), i.strokeStyle = "#f5f8ff", i.lineWidth = I * (g ? 0.357 : 0.3), i.beginPath(), i.moveTo(-
|
|
2565
|
+
), i.strokeStyle = "#f5f8ff", i.lineWidth = I * (g ? 0.357 : 0.3), i.beginPath(), i.moveTo(-Ne, 0), i.lineTo(Ne, 0), i.moveTo(0, -Ne), i.lineTo(0, Ne), i.stroke(), i.restore();
|
|
2566
2566
|
}
|
|
2567
2567
|
M = $ && !document.hidden && !h.matches ? requestAnimationFrame(ce) : 0;
|
|
2568
2568
|
}, V = () => {
|
|
2569
2569
|
cancelAnimationFrame(M), M = 0, C = 0, $ && !document.hidden && ce(performance.now());
|
|
2570
|
-
},
|
|
2570
|
+
}, Q = () => {
|
|
2571
2571
|
const p = l.getBoundingClientRect();
|
|
2572
|
-
m = p.width, x = p.height,
|
|
2572
|
+
m = p.width, x = p.height, v = Math.ceil(m / f) + 3, F = Math.ceil(x / f) + 3, o = new Float32Array(v * F), y = new Float32Array(v * F), B = null, q = 0;
|
|
2573
2573
|
const w = Math.min(devicePixelRatio || 1, 2);
|
|
2574
2574
|
l.width = m * w, l.height = x * w, i.setTransform(w, 0, 0, w, 0, 0), V();
|
|
2575
2575
|
};
|
|
2576
|
-
let
|
|
2576
|
+
let ae = 0;
|
|
2577
2577
|
const Y = (p) => {
|
|
2578
2578
|
if (h.matches || !k.matches || p.pointerType === "touch")
|
|
2579
2579
|
return;
|
|
2580
|
-
if (!t && (performance.now() <
|
|
2581
|
-
|
|
2580
|
+
if (!t && (performance.now() < ae || p.target.closest("#hero-download"))) {
|
|
2581
|
+
B = null;
|
|
2582
2582
|
return;
|
|
2583
2583
|
}
|
|
2584
|
-
const w = l.getBoundingClientRect(),
|
|
2585
|
-
U = { x:
|
|
2586
|
-
},
|
|
2587
|
-
|
|
2588
|
-
},
|
|
2589
|
-
if (p.target.closest("a,button,input,select"))
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
y:
|
|
2594
|
-
|
|
2595
|
-
|
|
2584
|
+
const w = l.getBoundingClientRect(), b = p.clientX - w.left, I = p.clientY - w.top;
|
|
2585
|
+
U = { x: b, y: I }, B ? (B.targetX = b, B.targetY = I) : B = { x: t ? b - 8 : b, y: I, targetX: b, targetY: I }, M || V();
|
|
2586
|
+
}, re = () => {
|
|
2587
|
+
B = null, U = null;
|
|
2588
|
+
}, pe = (p) => {
|
|
2589
|
+
if (h.matches || p.button !== 0 || p.target.closest("a,button,input,select"))
|
|
2590
|
+
return;
|
|
2591
|
+
const w = l.getBoundingClientRect(), b = p.clientX - w.left, I = p.clientY - w.top;
|
|
2592
|
+
if (t)
|
|
2593
|
+
R.push({ x: b, y: I, time: performance.now() }), R = R.slice(-5);
|
|
2594
|
+
else {
|
|
2595
|
+
const A = b / f + 1, z = I / f + 1, P = 3;
|
|
2596
|
+
for (let J = Math.max(1, Math.floor(z - P * 3)); J < Math.min(F - 1, z + P * 3); J++)
|
|
2597
|
+
for (let ee = Math.max(1, Math.floor(A - P * 3)); ee < Math.min(v - 1, A + P * 3); ee++) {
|
|
2598
|
+
const de = ((ee - A) ** 2 + (J - z) ** 2) / P ** 2, ve = (1 - de) * Math.exp(-de), _e = J * v + ee;
|
|
2599
|
+
y[_e] = Math.max(
|
|
2600
|
+
-4,
|
|
2601
|
+
Math.min(4, y[_e] - ve * 2.4)
|
|
2602
|
+
);
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
M || V();
|
|
2596
2606
|
}, j = (p) => {
|
|
2597
2607
|
if (t || h.matches) return;
|
|
2598
2608
|
const w = p.detail;
|
|
2599
2609
|
if (w.cancel) {
|
|
2600
|
-
|
|
2610
|
+
N = null, ae = 0;
|
|
2601
2611
|
return;
|
|
2602
2612
|
}
|
|
2603
|
-
if (
|
|
2604
|
-
|
|
2613
|
+
if (N && w.progress > 0) {
|
|
2614
|
+
N.progress = w.progress;
|
|
2605
2615
|
return;
|
|
2606
2616
|
}
|
|
2607
2617
|
if (w.progress > 0) return;
|
|
2608
|
-
const
|
|
2609
|
-
if (!
|
|
2610
|
-
const I = l.getBoundingClientRect(),
|
|
2611
|
-
|
|
2612
|
-
x:
|
|
2613
|
-
y:
|
|
2614
|
-
time:
|
|
2618
|
+
const b = d.querySelector("#hero-download");
|
|
2619
|
+
if (!b) return;
|
|
2620
|
+
const I = l.getBoundingClientRect(), A = b.getBoundingClientRect(), z = performance.now();
|
|
2621
|
+
ae = z + 3220, N = {
|
|
2622
|
+
x: A.left + A.width / 2 - I.left,
|
|
2623
|
+
y: A.top + A.height / 2 - I.top,
|
|
2624
|
+
time: z,
|
|
2615
2625
|
progress: 0
|
|
2616
|
-
},
|
|
2626
|
+
}, R = [], o.fill(0), y.fill(0), B = null, R = R.slice(-5), M || V();
|
|
2617
2627
|
};
|
|
2618
2628
|
d.addEventListener("hero-scroll-inertia", j);
|
|
2619
|
-
const
|
|
2620
|
-
|
|
2621
|
-
const
|
|
2629
|
+
const _ = new ResizeObserver(Q);
|
|
2630
|
+
_.observe(l);
|
|
2631
|
+
const E = new IntersectionObserver((p) => {
|
|
2622
2632
|
$ = p.some((w) => w.isIntersecting), V();
|
|
2623
2633
|
});
|
|
2624
|
-
return
|
|
2625
|
-
cancelAnimationFrame(M),
|
|
2634
|
+
return E.observe(l), d.addEventListener("pointermove", Y), d.addEventListener("pointerleave", re), d.addEventListener("pointerdown", pe), h.addEventListener("change", V), document.addEventListener("visibilitychange", V), Q(), () => {
|
|
2635
|
+
cancelAnimationFrame(M), _.disconnect(), E.disconnect(), d.removeEventListener("hero-scroll-inertia", j), d.removeEventListener("pointermove", Y), d.removeEventListener("pointerleave", re), d.removeEventListener("pointerdown", pe), h.removeEventListener("change", V), document.removeEventListener("visibilitychange", V);
|
|
2626
2636
|
};
|
|
2627
2637
|
}, [t]), r;
|
|
2628
2638
|
}
|
|
@@ -2643,160 +2653,160 @@ const $t = {
|
|
|
2643
2653
|
"rp-plus-field-dots": "rp_PlusField-module_rp-plus-field-dots_e1Khngt7"
|
|
2644
2654
|
};
|
|
2645
2655
|
function ai({ dots: t = !1 }) {
|
|
2646
|
-
const n =
|
|
2647
|
-
return
|
|
2656
|
+
const n = Ce(null);
|
|
2657
|
+
return Ae(() => {
|
|
2648
2658
|
const r = n.current;
|
|
2649
2659
|
if (!r || typeof window > "u") return;
|
|
2650
2660
|
const s = r.getContext("2d"), l = r.parentElement;
|
|
2651
2661
|
if (!s || !l) return;
|
|
2652
2662
|
const i = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
2653
2663
|
let d = 0, h = 0, m = 0, x = !0, M = [], $ = null;
|
|
2654
|
-
const
|
|
2655
|
-
let k = 0, f = 0,
|
|
2656
|
-
const
|
|
2664
|
+
const R = window.matchMedia("(hover: hover) and (pointer: fine)"), N = 10;
|
|
2665
|
+
let k = 0, f = 0, v = new Float32Array(0), F = new Float32Array(0), o = 0, y = 0, C = null, q = null;
|
|
2666
|
+
const B = () => {
|
|
2657
2667
|
if (C) {
|
|
2658
|
-
const
|
|
2659
|
-
C.x +=
|
|
2660
|
-
const p = Math.hypot(
|
|
2668
|
+
const _ = (C.targetX - C.x) * 0.22, E = (C.targetY - C.y) * 0.22;
|
|
2669
|
+
C.x += _, C.y += E;
|
|
2670
|
+
const p = Math.hypot(_, E);
|
|
2661
2671
|
if (p > 0.02) {
|
|
2662
|
-
const w = C.x /
|
|
2663
|
-
for (let
|
|
2664
|
-
for (let
|
|
2665
|
-
const
|
|
2666
|
-
F[
|
|
2672
|
+
const w = C.x / N + 1, b = C.y / N + 1, I = Math.min(p, 12) * 0.065;
|
|
2673
|
+
for (let A = Math.max(1, Math.floor(b - 7)); A < Math.min(f - 1, b + 8); A++)
|
|
2674
|
+
for (let z = Math.max(1, Math.floor(w - 7)); z < Math.min(k - 1, w + 8); z++) {
|
|
2675
|
+
const P = z - w, J = A - b, ee = (P * _ + J * E) / p;
|
|
2676
|
+
F[A * k + z] += ee * Math.exp(-(P * P + J * J) / 9) * I;
|
|
2667
2677
|
}
|
|
2668
2678
|
}
|
|
2669
2679
|
}
|
|
2670
|
-
for (let
|
|
2671
|
-
for (let
|
|
2672
|
-
const p =
|
|
2673
|
-
F[p] = (F[p] + w * 0.32) * (
|
|
2680
|
+
for (let _ = 1; _ < f - 1; _++)
|
|
2681
|
+
for (let E = 1; E < k - 1; E++) {
|
|
2682
|
+
const p = _ * k + E, w = v[p - 1] + v[p + 1] + v[p - k] + v[p + k] - 4 * v[p], b = Math.min(E, _, k - 1 - E, f - 1 - _);
|
|
2683
|
+
F[p] = (F[p] + w * 0.32) * (b < 8 ? 0.88 : 0.985);
|
|
2674
2684
|
}
|
|
2675
|
-
for (let
|
|
2676
|
-
}, U = (
|
|
2677
|
-
const p = Math.max(0, Math.min(k - 2,
|
|
2678
|
-
return (
|
|
2679
|
-
},
|
|
2680
|
-
if (
|
|
2681
|
-
|
|
2682
|
-
else for (;
|
|
2683
|
-
|
|
2684
|
-
s.clearRect(0, 0, d, h), M = M.filter((p) =>
|
|
2685
|
-
const
|
|
2686
|
-
for (let p = 7, w = 0; p < h; p +=
|
|
2687
|
-
for (let
|
|
2688
|
-
let I = 0,
|
|
2685
|
+
for (let _ = 0; _ < v.length; _++) v[_] += F[_];
|
|
2686
|
+
}, U = (_, E) => {
|
|
2687
|
+
const p = Math.max(0, Math.min(k - 2, _ / N + 1)), w = Math.max(0, Math.min(f - 2, E / N + 1)), b = Math.floor(p), I = Math.floor(w), A = p - b, z = w - I, P = I * k + b;
|
|
2688
|
+
return (v[P] * (1 - A) + v[P + 1] * A) * (1 - z) + (v[P + k] * (1 - A) + v[P + k + 1] * A) * z;
|
|
2689
|
+
}, te = (_) => {
|
|
2690
|
+
if (y += Math.min(50, o ? _ - o : 0), o = _, i.matches)
|
|
2691
|
+
y = 0;
|
|
2692
|
+
else for (; y >= 1e3 / 60; )
|
|
2693
|
+
B(), y -= 1e3 / 60;
|
|
2694
|
+
s.clearRect(0, 0, d, h), M = M.filter((p) => _ - p.time < 2400);
|
|
2695
|
+
const E = t ? 7 : 14;
|
|
2696
|
+
for (let p = 7, w = 0; p < h; p += E, w++)
|
|
2697
|
+
for (let b = 7 + w % 2 * E / 2; b < d; b += E) {
|
|
2698
|
+
let I = 0, A = 0, z = 0;
|
|
2689
2699
|
if ($ && !i.matches) {
|
|
2690
|
-
const H = (
|
|
2700
|
+
const H = (_ - $.time) / 1e3, Z = (b - d / 2) / (d * 0.58), g = (p - h * 0.42) / (h * 0.7), u = Math.hypot(Z, g), L = 0.22 + 0.98 * Math.exp(-u * u * 2.1), D = Math.max(
|
|
2691
2701
|
0,
|
|
2692
2702
|
Math.min(H, 2.4) - Math.min(0.045, u * 0.025)
|
|
2693
|
-
), O = 1.55 * (1 - Math.exp(-D / 0.12)) *
|
|
2694
|
-
|
|
2703
|
+
), O = 1.55 * (1 - Math.exp(-D / 0.12)) * L;
|
|
2704
|
+
z = Z * 210 * O, A = -260 * O * (1 - 0.3 * Math.tanh(g));
|
|
2695
2705
|
}
|
|
2696
2706
|
if (!i.matches)
|
|
2697
2707
|
for (const H of M) {
|
|
2698
|
-
const
|
|
2699
|
-
if (
|
|
2700
|
-
const u = g -
|
|
2701
|
-
I += Math.sin(u * 0.065) * Math.exp(-u * u / 13e3) * Math.max(0, 1 -
|
|
2708
|
+
const Z = (_ - H.time) / 1e3, g = Math.hypot(b - H.x, p - H.y);
|
|
2709
|
+
if (Z < 0) continue;
|
|
2710
|
+
const u = g - Z * 320;
|
|
2711
|
+
I += 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 P = i.matches ? 0 : U(b + N, p) - U(b - N, p), J = i.matches ? 0 : U(b, p + N) - U(b, p - N), ee = 12 * Math.tanh(P * 0.65), de = 12 * Math.tanh(J * 0.65), ve = Math.pow(Math.max(0, 1 - p / h), 0.6), _e = 1 - Math.exp(
|
|
2714
|
+
-Math.pow((b - d / 2) / (d * 0.28), 2) - Math.pow((p - h * 0.38) / (h * 0.24), 2)
|
|
2715
|
+
) * 0.55, he = Math.hypot(ee, de);
|
|
2706
2716
|
if (t) {
|
|
2707
|
-
const H = Math.abs(U(
|
|
2708
|
-
let
|
|
2709
|
-
-((
|
|
2717
|
+
const H = Math.abs(U(b, p)) * 0.12 + he * 0.035 + Math.abs(I) * 0.035;
|
|
2718
|
+
let Z = q ? Math.exp(
|
|
2719
|
+
-((b - q.x) ** 2 + (p - q.y) ** 2) / (2 * 24 ** 2)
|
|
2710
2720
|
) : 0, g = 0;
|
|
2711
2721
|
if (!i.matches)
|
|
2712
2722
|
for (const u of M) {
|
|
2713
|
-
const
|
|
2714
|
-
|
|
2715
|
-
|
|
2723
|
+
const L = (_ - u.time) / 1e3, D = Math.hypot(b - u.x, p - u.y), O = 32 + 64 * Math.min(1, L / 0.3), G = Math.max(0, 1 - L / 2.4), K = Math.exp(-((D - L * 320) ** 2) / (2 * 36 ** 2)) * G;
|
|
2724
|
+
Z = Math.max(
|
|
2725
|
+
Z,
|
|
2716
2726
|
Math.exp(-(D ** 2) / (2 * O ** 2)) * G,
|
|
2717
2727
|
K
|
|
2718
2728
|
), g = Math.max(g, K);
|
|
2719
2729
|
}
|
|
2720
|
-
s.globalAlpha = Math.min(0.28, 0.1 + H * 0.12 + g * 0.12) *
|
|
2721
|
-
|
|
2722
|
-
p + I +
|
|
2730
|
+
s.globalAlpha = Math.min(0.28, 0.1 + H * 0.12 + g * 0.12) * Z, s.fillStyle = "#8a8f98", s.beginPath(), s.arc(
|
|
2731
|
+
b + I * 0.4 + ee * 0.25,
|
|
2732
|
+
p + I + de * 0.25,
|
|
2723
2733
|
1.25,
|
|
2724
2734
|
0,
|
|
2725
2735
|
Math.PI * 2
|
|
2726
2736
|
), s.fill();
|
|
2727
2737
|
continue;
|
|
2728
2738
|
}
|
|
2729
|
-
const
|
|
2739
|
+
const Le = I * 0.055 + Math.tanh((P - J) * 0.2) * 0.18, ue = 3.5 + Math.abs(I) * 0.16 + he * 0.08, Te = Math.sin(b * 12.9898 + p * 78.233) * 43758.5453, qe = Te - Math.floor(Te), Se = _ / 1e3, Ne = Math.sin(b * 39.346 + p * 11.135) * 24634.6345, Pe = Ne - Math.floor(Ne), me = Se / (3 + Pe * 5) + Pe * 17, Be = me - Math.floor(me), Ie = Be < 0.32 ? Math.pow(Math.sin(Math.PI * Be / 0.32), 2) : 0, Re = qe < 0.22, T = i.matches || !Re ? 1 : 1 - 0.98 * Ie;
|
|
2730
2740
|
s.save(), s.translate(
|
|
2731
|
-
|
|
2732
|
-
p + I +
|
|
2733
|
-
), s.rotate(
|
|
2741
|
+
b + I * 0.4 + ee + z,
|
|
2742
|
+
p + I + de + A
|
|
2743
|
+
), s.rotate(Le), s.globalAlpha = Math.min(
|
|
2734
2744
|
1,
|
|
2735
2745
|
Math.min(
|
|
2736
2746
|
0.95,
|
|
2737
|
-
0.38 + qe * 0.22 + (
|
|
2738
|
-
) *
|
|
2739
|
-
), s.strokeStyle = "#f5f8ff", s.lineWidth =
|
|
2747
|
+
0.38 + qe * 0.22 + (Re ? 0.32 : 0) + Math.abs(I) * 0.045 + he * 0.018
|
|
2748
|
+
) * ve * _e * T
|
|
2749
|
+
), s.strokeStyle = "#f5f8ff", s.lineWidth = Re ? 1.25 : 1.05, s.beginPath(), s.moveTo(-ue, 0), s.lineTo(ue, 0), s.moveTo(0, -ue), s.lineTo(0, ue), s.stroke(), s.restore();
|
|
2740
2750
|
}
|
|
2741
|
-
m = x && !document.hidden && !i.matches ? requestAnimationFrame(
|
|
2742
|
-
},
|
|
2743
|
-
cancelAnimationFrame(m), o = 0,
|
|
2751
|
+
m = x && !document.hidden && !i.matches ? requestAnimationFrame(te) : 0;
|
|
2752
|
+
}, X = () => {
|
|
2753
|
+
cancelAnimationFrame(m), o = 0, te(performance.now());
|
|
2744
2754
|
}, ce = () => {
|
|
2745
|
-
const
|
|
2746
|
-
d =
|
|
2747
|
-
const
|
|
2748
|
-
r.width = d *
|
|
2755
|
+
const _ = r.getBoundingClientRect();
|
|
2756
|
+
d = _.width, h = _.height, k = Math.ceil(d / N) + 3, f = Math.ceil(h / N) + 3, v = new Float32Array(k * f), F = new Float32Array(k * f), C = null, y = 0;
|
|
2757
|
+
const E = Math.min(devicePixelRatio || 1, 2);
|
|
2758
|
+
r.width = d * E, r.height = h * E, s.setTransform(E, 0, 0, E, 0, 0), X();
|
|
2749
2759
|
};
|
|
2750
2760
|
let V = 0;
|
|
2751
|
-
const
|
|
2752
|
-
if (i.matches || !
|
|
2761
|
+
const Q = (_) => {
|
|
2762
|
+
if (i.matches || !R.matches || _.pointerType === "touch")
|
|
2753
2763
|
return;
|
|
2754
|
-
if (!t && (performance.now() < V ||
|
|
2764
|
+
if (!t && (performance.now() < V || _.target.closest("#hero-download"))) {
|
|
2755
2765
|
C = null;
|
|
2756
2766
|
return;
|
|
2757
2767
|
}
|
|
2758
|
-
const
|
|
2759
|
-
q = { x: p, y: w }, C ? (C.targetX = p, C.targetY = w) : C = { x: t ? p - 8 : p, y: w, targetX: p, targetY: w }, m ||
|
|
2760
|
-
},
|
|
2768
|
+
const E = r.getBoundingClientRect(), p = _.clientX - E.left, w = _.clientY - E.top;
|
|
2769
|
+
q = { x: p, y: w }, C ? (C.targetX = p, C.targetY = w) : C = { x: t ? p - 8 : p, y: w, targetX: p, targetY: w }, m || X();
|
|
2770
|
+
}, ae = () => {
|
|
2761
2771
|
C = null, q = null;
|
|
2762
|
-
}, Y = (
|
|
2763
|
-
if (
|
|
2764
|
-
const
|
|
2772
|
+
}, Y = (_) => {
|
|
2773
|
+
if (_.target.closest("a,button,input,select")) return;
|
|
2774
|
+
const E = r.getBoundingClientRect();
|
|
2765
2775
|
M.push({
|
|
2766
|
-
x:
|
|
2767
|
-
y:
|
|
2776
|
+
x: _.clientX - E.left,
|
|
2777
|
+
y: _.clientY - E.top,
|
|
2768
2778
|
time: performance.now()
|
|
2769
|
-
}), M = M.slice(-5), m ||
|
|
2770
|
-
},
|
|
2779
|
+
}), M = M.slice(-5), m || X();
|
|
2780
|
+
}, re = (_) => {
|
|
2771
2781
|
if (t || i.matches) return;
|
|
2772
|
-
const
|
|
2773
|
-
if (
|
|
2782
|
+
const E = _.detail;
|
|
2783
|
+
if (E.cancel) {
|
|
2774
2784
|
$ = null, V = 0;
|
|
2775
2785
|
return;
|
|
2776
2786
|
}
|
|
2777
|
-
if ($ &&
|
|
2778
|
-
$.progress =
|
|
2787
|
+
if ($ && E.progress > 0) {
|
|
2788
|
+
$.progress = E.progress;
|
|
2779
2789
|
return;
|
|
2780
2790
|
}
|
|
2781
|
-
if (
|
|
2791
|
+
if (E.progress > 0) return;
|
|
2782
2792
|
const p = l.querySelector("#hero-download");
|
|
2783
2793
|
if (!p) return;
|
|
2784
|
-
const w = r.getBoundingClientRect(),
|
|
2794
|
+
const w = r.getBoundingClientRect(), b = p.getBoundingClientRect(), I = performance.now();
|
|
2785
2795
|
V = I + 3220, $ = {
|
|
2786
|
-
x:
|
|
2787
|
-
y:
|
|
2796
|
+
x: b.left + b.width / 2 - w.left,
|
|
2797
|
+
y: b.top + b.height / 2 - w.top,
|
|
2788
2798
|
time: I,
|
|
2789
2799
|
progress: 0
|
|
2790
|
-
}, M = [],
|
|
2800
|
+
}, M = [], v.fill(0), F.fill(0), C = null, M = M.slice(-5), m || X();
|
|
2791
2801
|
};
|
|
2792
|
-
l.addEventListener("hero-scroll-inertia",
|
|
2793
|
-
const
|
|
2794
|
-
|
|
2795
|
-
const j = new IntersectionObserver((
|
|
2796
|
-
x =
|
|
2802
|
+
l.addEventListener("hero-scroll-inertia", re);
|
|
2803
|
+
const pe = new ResizeObserver(ce);
|
|
2804
|
+
pe.observe(r);
|
|
2805
|
+
const j = new IntersectionObserver((_) => {
|
|
2806
|
+
x = _.some((E) => E.isIntersecting), X();
|
|
2797
2807
|
});
|
|
2798
|
-
return j.observe(r), l.addEventListener("pointermove",
|
|
2799
|
-
cancelAnimationFrame(m),
|
|
2808
|
+
return j.observe(r), l.addEventListener("pointermove", Q), l.addEventListener("pointerleave", ae), l.addEventListener("pointerdown", Y), i.addEventListener("change", X), document.addEventListener("visibilitychange", X), ce(), () => {
|
|
2809
|
+
cancelAnimationFrame(m), pe.disconnect(), j.disconnect(), l.removeEventListener("hero-scroll-inertia", re), l.removeEventListener("pointermove", Q), l.removeEventListener("pointerleave", ae), l.removeEventListener("pointerdown", Y), i.removeEventListener("change", X), document.removeEventListener("visibilitychange", X);
|
|
2800
2810
|
};
|
|
2801
2811
|
}, [t]), /* @__PURE__ */ e(
|
|
2802
2812
|
"canvas",
|
|
@@ -2835,17 +2845,17 @@ const je = {
|
|
|
2835
2845
|
for (let x = 0; x < r; x++) {
|
|
2836
2846
|
const M = (x + 0.5) * l - h;
|
|
2837
2847
|
for (let $ = 0; $ < n; $++) {
|
|
2838
|
-
const
|
|
2848
|
+
const R = ($ + 0.5) * s - d, N = Math.hypot(R, M) / m, k = Math.atan2(M, R);
|
|
2839
2849
|
let f = 0;
|
|
2840
2850
|
for (const F of Wn) {
|
|
2841
|
-
const o = Vn(k - F.angle - i * F.drift),
|
|
2842
|
-
if (
|
|
2843
|
-
const C = 0.5 + 0.5 * Math.sin(
|
|
2844
|
-
f = Math.max(f,
|
|
2851
|
+
const o = Vn(k - F.angle - i * F.drift), y = Math.exp(-(o * o) / (2 * F.width * F.width));
|
|
2852
|
+
if (y < 0.01) continue;
|
|
2853
|
+
const C = 0.5 + 0.5 * Math.sin(N * F.dashes - i * F.speed + F.phase);
|
|
2854
|
+
f = Math.max(f, y * (0.3 + 0.7 * C));
|
|
2845
2855
|
}
|
|
2846
2856
|
f *= 0.7 + 0.6 * We($ * 3.17 + x * 7.31);
|
|
2847
|
-
const
|
|
2848
|
-
f *=
|
|
2857
|
+
const v = Math.min(1, Math.max(0, (N - 0.12) / 0.3));
|
|
2858
|
+
f *= v * v * (3 - 2 * v), t[x * n + $] = Math.min(
|
|
2849
2859
|
1,
|
|
2850
2860
|
Math.max(0, (f - 0.58) * Un + 0.5)
|
|
2851
2861
|
);
|
|
@@ -2857,41 +2867,41 @@ const je = {
|
|
|
2857
2867
|
}, Qn = (t, n, r, s, l, i, d, h, m, x, M) => {
|
|
2858
2868
|
t.clearRect(0, 0, x, M);
|
|
2859
2869
|
for (let $ = 0; $ < s; $++)
|
|
2860
|
-
for (let
|
|
2861
|
-
const
|
|
2870
|
+
for (let R = 0; R < r; R++) {
|
|
2871
|
+
const N = $ * r + R, k = n[N];
|
|
2862
2872
|
if (k < 0) continue;
|
|
2863
|
-
const f = $ > 0 ? n[
|
|
2873
|
+
const f = $ > 0 ? n[N - r] : -1, v = $ < s - 1 ? n[N + r] : -1;
|
|
2864
2874
|
let F = $ * i, o = ($ + 1) * i;
|
|
2865
|
-
if (f !== k && (F += Ct * 0.5 * i),
|
|
2866
|
-
const
|
|
2867
|
-
let C = (
|
|
2875
|
+
if (f !== k && (F += Ct * 0.5 * i), v !== k && (o -= Ct * 0.5 * i), o <= F) continue;
|
|
2876
|
+
const y = Math.max(1, 2 * zn[k] * On * l);
|
|
2877
|
+
let C = (R + 0.5) * l, q = 1;
|
|
2868
2878
|
if (h) {
|
|
2869
|
-
const
|
|
2870
|
-
if (
|
|
2871
|
-
const
|
|
2872
|
-
C +=
|
|
2879
|
+
const B = C - h.x, U = (F + o) / 2 - h.y, te = Math.hypot(B, U) / m;
|
|
2880
|
+
if (te < 1) {
|
|
2881
|
+
const X = (1 - te) ** 2;
|
|
2882
|
+
C += B * 0.06 * X, q = 1 - 0.7 * X;
|
|
2873
2883
|
}
|
|
2874
2884
|
}
|
|
2875
|
-
t.globalAlpha = q, t.fillStyle = d[k % Yn], Zn(t, C, F, o,
|
|
2885
|
+
t.globalAlpha = q, t.fillStyle = d[k % Yn], Zn(t, C, F, o, y), t.fill();
|
|
2876
2886
|
}
|
|
2877
2887
|
t.globalAlpha = 1;
|
|
2878
2888
|
};
|
|
2879
2889
|
function er() {
|
|
2880
|
-
const t =
|
|
2881
|
-
return
|
|
2890
|
+
const t = Ce(null);
|
|
2891
|
+
return Ae(() => {
|
|
2882
2892
|
const n = t.current, r = n?.parentElement;
|
|
2883
2893
|
if (!n || !r || typeof window > "u") return;
|
|
2884
2894
|
const s = n.getContext("2d");
|
|
2885
2895
|
if (!s) 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, m = 0, x = 0, M = 0, $ = 0,
|
|
2897
|
+
let d = 0, h = 0, m = 0, x = 0, M = 0, $ = 0, R = 0, N = !0, k = 0, f = 0, v = new Float32Array(0), F = new Int8Array(0), o = [...At], y = null;
|
|
2888
2898
|
const C = () => {
|
|
2889
2899
|
const Y = getComputedStyle(r);
|
|
2890
|
-
o = jn.map((
|
|
2900
|
+
o = jn.map((re, pe) => Y.getPropertyValue(re).trim() || At[pe]);
|
|
2891
2901
|
}, q = () => {
|
|
2892
|
-
Jn(
|
|
2893
|
-
for (let Y = 0; Y <
|
|
2894
|
-
F[Y] = Kn(
|
|
2902
|
+
Jn(v, m, x, M, $, k);
|
|
2903
|
+
for (let Y = 0; Y < v.length; Y++)
|
|
2904
|
+
F[Y] = Kn(v[Y]);
|
|
2895
2905
|
Qn(
|
|
2896
2906
|
s,
|
|
2897
2907
|
F,
|
|
@@ -2900,45 +2910,45 @@ function er() {
|
|
|
2900
2910
|
M,
|
|
2901
2911
|
$,
|
|
2902
2912
|
o,
|
|
2903
|
-
|
|
2913
|
+
y,
|
|
2904
2914
|
Math.min(d, h) * 0.18,
|
|
2905
2915
|
d,
|
|
2906
2916
|
h
|
|
2907
2917
|
);
|
|
2908
|
-
},
|
|
2909
|
-
|
|
2918
|
+
}, B = (Y) => {
|
|
2919
|
+
R = 0, !(!N || document.hidden) && (f && (k += Math.min(80, Y - f) * 28e-5), f = Y, q(), l.matches || (R = requestAnimationFrame(B)));
|
|
2910
2920
|
}, U = () => {
|
|
2911
|
-
cancelAnimationFrame(
|
|
2912
|
-
},
|
|
2921
|
+
cancelAnimationFrame(R), R = 0, f = 0, N && !document.hidden && (R = requestAnimationFrame(B));
|
|
2922
|
+
}, te = () => {
|
|
2913
2923
|
const Y = r.getBoundingClientRect();
|
|
2914
|
-
d = Y.width, h = Y.height, m = Math.max(1, Math.round(d * xt)), x = Math.max(1, Math.round(h * xt)), M = d / m, $ = h / x,
|
|
2915
|
-
const
|
|
2916
|
-
n.width = Math.round(d *
|
|
2917
|
-
},
|
|
2924
|
+
d = Y.width, h = Y.height, m = Math.max(1, Math.round(d * xt)), x = Math.max(1, Math.round(h * xt)), M = d / m, $ = h / x, v = new Float32Array(m * x), F = new Int8Array(m * x);
|
|
2925
|
+
const re = Math.min(window.devicePixelRatio || 1, 2);
|
|
2926
|
+
n.width = Math.round(d * re), n.height = Math.round(h * re), s.setTransform(re, 0, 0, re, 0, 0), C(), U();
|
|
2927
|
+
}, X = (Y) => {
|
|
2918
2928
|
if (l.matches || !i.matches || Y.pointerType === "touch")
|
|
2919
2929
|
return;
|
|
2920
|
-
const
|
|
2921
|
-
|
|
2922
|
-
x: Y.clientX -
|
|
2923
|
-
y: Y.clientY -
|
|
2924
|
-
},
|
|
2930
|
+
const re = r.getBoundingClientRect();
|
|
2931
|
+
y = {
|
|
2932
|
+
x: Y.clientX - re.left,
|
|
2933
|
+
y: Y.clientY - re.top
|
|
2934
|
+
}, R || U();
|
|
2925
2935
|
}, ce = () => {
|
|
2926
|
-
|
|
2936
|
+
y = null, R || U();
|
|
2927
2937
|
}, V = new MutationObserver(() => {
|
|
2928
|
-
C(),
|
|
2938
|
+
C(), R || U();
|
|
2929
2939
|
});
|
|
2930
2940
|
V.observe(document.body, {
|
|
2931
2941
|
attributes: !0,
|
|
2932
2942
|
attributeFilter: ["data-theme"],
|
|
2933
2943
|
subtree: !0
|
|
2934
2944
|
});
|
|
2935
|
-
const
|
|
2936
|
-
|
|
2937
|
-
const
|
|
2938
|
-
|
|
2945
|
+
const Q = new ResizeObserver(te);
|
|
2946
|
+
Q.observe(r);
|
|
2947
|
+
const ae = new IntersectionObserver((Y) => {
|
|
2948
|
+
N = Y.some((re) => re.isIntersecting), U();
|
|
2939
2949
|
});
|
|
2940
|
-
return
|
|
2941
|
-
cancelAnimationFrame(
|
|
2950
|
+
return ae.observe(n), window.addEventListener("pointermove", X, { passive: !0 }), window.addEventListener("pointerleave", ce), l.addEventListener("change", U), document.addEventListener("visibilitychange", U), te(), () => {
|
|
2951
|
+
cancelAnimationFrame(R), Q.disconnect(), ae.disconnect(), V.disconnect(), window.removeEventListener("pointermove", X), window.removeEventListener("pointerleave", ce), l.removeEventListener("change", U), document.removeEventListener("visibilitychange", U);
|
|
2942
2952
|
};
|
|
2943
2953
|
}, []), t;
|
|
2944
2954
|
}
|
|
@@ -2997,25 +3007,25 @@ const nr = "rp_BackgroundSquare-module_canvas_4Yh0JJmR", rr = {
|
|
|
2997
3007
|
"#d7defc",
|
|
2998
3008
|
"#e9edfe",
|
|
2999
3009
|
"#ffffff"
|
|
3000
|
-
], Lt = 24, St = 90,
|
|
3010
|
+
], Lt = 24, St = 90, Me = 32, Bt = 10, pt = 900;
|
|
3001
3011
|
function ot(t, n) {
|
|
3002
|
-
const r = (
|
|
3003
|
-
let f = Math.imul(
|
|
3012
|
+
const r = (N, k) => {
|
|
3013
|
+
let f = Math.imul(N, 374761393) + Math.imul(k, 668265263);
|
|
3004
3014
|
return f = Math.imul(f ^ f >>> 13, 1274126177), ((f ^ f >>> 16) >>> 0) / 4294967296;
|
|
3005
|
-
}, s = Math.floor(t), l = Math.floor(n), i = t - s, d = n - l, h = i * i * (3 - 2 * i), m = d * d * (3 - 2 * d), x = r(s, l), M = r(s + 1, l), $ = r(s, l + 1),
|
|
3006
|
-
return x + (M - x) * h + ($ - x) * m + (x - M - $ +
|
|
3015
|
+
}, s = Math.floor(t), l = Math.floor(n), i = t - s, d = n - l, h = i * i * (3 - 2 * i), m = d * d * (3 - 2 * d), x = r(s, l), M = r(s + 1, l), $ = r(s, l + 1), R = r(s + 1, l + 1);
|
|
3016
|
+
return x + (M - x) * h + ($ - x) * m + (x - M - $ + R) * h * m;
|
|
3007
3017
|
}
|
|
3008
3018
|
function tt(t, n, r) {
|
|
3009
3019
|
const s = Math.floor(r), l = r - s, i = l * l * (3 - 2 * l), d = ot(t + s * 137.3, n + s * 193.7), h = ot(t + (s + 1) * 137.3, n + (s + 1) * 193.7);
|
|
3010
3020
|
return d + (h - d) * i;
|
|
3011
3021
|
}
|
|
3012
3022
|
function ir(t, n, r, s) {
|
|
3013
|
-
const l = t / 220 + s * 0.12, i = n / 220, d = (tt(l * 0.8, i * 0.8, r * 0.13 + 11.3) - 0.5) * 2.8, h = (tt(l * 0.8 + 37, i * 0.8 + 71, r * 0.11 + 29.7) - 0.5) * 2.8, m = l + d, x = i + h, M = tt(m, x, r * 0.09 + 47.2), $ = tt(m * 2, x * 2, r * 0.17 + 73.8),
|
|
3023
|
+
const l = t / 220 + s * 0.12, i = n / 220, d = (tt(l * 0.8, i * 0.8, r * 0.13 + 11.3) - 0.5) * 2.8, h = (tt(l * 0.8 + 37, i * 0.8 + 71, r * 0.11 + 29.7) - 0.5) * 2.8, m = l + d, x = i + h, M = tt(m, x, r * 0.09 + 47.2), $ = tt(m * 2, x * 2, r * 0.17 + 73.8), R = tt(
|
|
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((m * 0.62 + x) * 2.2 + M * 5.5 + (
|
|
3028
|
+
return 0.5 + Math.sin((m * 0.62 + x) * 2.2 + M * 5.5 + (R - 0.5) * 5) * 0.35 + ($ - 0.5) * 0.32;
|
|
3019
3029
|
}
|
|
3020
3030
|
function ri({
|
|
3021
3031
|
scene: t,
|
|
@@ -3024,129 +3034,129 @@ function ri({
|
|
|
3024
3034
|
speed: s = 1,
|
|
3025
3035
|
step: l = 0
|
|
3026
3036
|
}) {
|
|
3027
|
-
const i =
|
|
3028
|
-
return
|
|
3037
|
+
const i = Ce(null), d = Ce(t), h = Number.isFinite(r) ? Math.min(4, Math.max(0.25, r)) : 1, m = Number.isFinite(n) ? Math.max(4, n) : Lt, x = Math.max(4, m / Math.sqrt(h)), M = Ce(x), $ = Ce(s), R = Ce(Number.isFinite(l) ? l : 0), N = Ce(null), k = Ce(/* @__PURE__ */ new Map());
|
|
3038
|
+
return Ae(() => {
|
|
3029
3039
|
d.current = t;
|
|
3030
|
-
}, [t]),
|
|
3031
|
-
M.current = x, k.current.clear(),
|
|
3032
|
-
}, [x]),
|
|
3040
|
+
}, [t]), Ae(() => {
|
|
3041
|
+
M.current = x, k.current.clear(), N.current?.();
|
|
3042
|
+
}, [x]), Ae(() => {
|
|
3033
3043
|
$.current = Number.isFinite(s) ? Math.max(0, s) : 1;
|
|
3034
|
-
}, [s]),
|
|
3035
|
-
|
|
3036
|
-
}, [l]),
|
|
3037
|
-
const f = i.current,
|
|
3038
|
-
if (!f || !
|
|
3039
|
-
const F = matchMedia("(prefers-reduced-motion: reduce)"), o = matchMedia("(any-hover: hover)"),
|
|
3040
|
-
let C = 0, q = 0,
|
|
3044
|
+
}, [s]), Ae(() => {
|
|
3045
|
+
R.current = Number.isFinite(l) ? l : 0, N.current?.();
|
|
3046
|
+
}, [l]), Ae(() => {
|
|
3047
|
+
const f = i.current, v = f?.getContext("2d");
|
|
3048
|
+
if (!f || !v) return;
|
|
3049
|
+
const F = matchMedia("(prefers-reduced-motion: reduce)"), o = matchMedia("(any-hover: hover)"), y = f.parentElement ?? f;
|
|
3050
|
+
let C = 0, q = 0, B = 0, U = !1, te = d.current * 7.13, X = d.current, ce = 0, V = R.current * Bt, Q = V, ae = V, Y = pt, re = V, 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 T =
|
|
3046
|
-
p = new Float32Array(T), w = new Float32Array(T),
|
|
3047
|
-
},
|
|
3048
|
-
const
|
|
3052
|
+
let _ = 0, E = 0, p = new Float32Array(0), w = new Float32Array(0), b = new Float32Array(0), I = new Float32Array(0), A = new Float32Array(0), z = new Float32Array(0);
|
|
3053
|
+
const P = k.current, J = () => {
|
|
3054
|
+
_ = Math.ceil(q / Me) + 1, E = Math.ceil(B / Me) + 1;
|
|
3055
|
+
const T = _ * E;
|
|
3056
|
+
p = new Float32Array(T), w = new Float32Array(T), b = new Float32Array(T), I = new Float32Array(T), A = new Float32Array(T), z = new Float32Array(T);
|
|
3057
|
+
}, ee = (T, H) => {
|
|
3058
|
+
const Z = Math.max(0, Math.min(_ - 1, T / Me)), g = Math.max(0, Math.min(E - 1, H / Me)), u = Math.floor(Z), L = Math.floor(g), D = Math.min(u + 1, _ - 1), O = Math.min(L + 1, E - 1), G = Z - u, K = g - L, oe = (Ke) => Ke[L * _ + u] * (1 - G) * (1 - K) + Ke[L * _ + D] * G * (1 - K) + Ke[O * _ + u] * (1 - G) * K + Ke[O * _ + D] * G * K, ne = L * _ + u, le = L * _ + D, ie = O * _ + u, be = O * _ + D, ke = ((p[le] - p[ne]) * (1 - K) + (p[be] - p[ie]) * K) / Me, ct = ((w[ie] - w[ne]) * (1 - G) + (w[be] - w[le]) * G) / Me;
|
|
3049
3059
|
return {
|
|
3050
3060
|
x: oe(p),
|
|
3051
3061
|
y: oe(w),
|
|
3052
|
-
crest: Math.min(1, Math.max(0,
|
|
3062
|
+
crest: Math.min(1, Math.max(0, ke + ct))
|
|
3053
3063
|
};
|
|
3054
|
-
},
|
|
3055
|
-
const D =
|
|
3056
|
-
for (let O = Math.max(0, Math.floor((H -
|
|
3057
|
-
for (let G = Math.max(0, Math.floor((T -
|
|
3058
|
-
const K = O *
|
|
3059
|
-
-(oe * oe +
|
|
3060
|
-
),
|
|
3061
|
-
|
|
3062
|
-
const
|
|
3064
|
+
}, de = (T, H, Z, g, u = 0, L = St * (j.down ? 1.25 : 1)) => {
|
|
3065
|
+
const D = ee(T, H);
|
|
3066
|
+
for (let O = Math.max(0, Math.floor((H - L * 2) / Me)); O < Math.min(E, Math.ceil((H + L * 2) / Me)); O++)
|
|
3067
|
+
for (let G = Math.max(0, Math.floor((T - L * 2) / Me)); G < Math.min(_, Math.ceil((T + L * 2) / Me)); G++) {
|
|
3068
|
+
const K = O * _ + G, oe = G * Me - T - (u ? p[K] - D.x : 0), ne = O * Me - H - (u ? w[K] - D.y : 0), le = Math.exp(
|
|
3069
|
+
-(oe * oe + ne * ne) / (L * L * 0.5)
|
|
3070
|
+
), ie = (Z - oe * u) * le, be = (g - ne * u) * le;
|
|
3071
|
+
b[K] += ie, I[K] += be, u && (p[K] += ie * 0.02, w[K] += be * 0.02);
|
|
3072
|
+
const ke = Math.max(
|
|
3063
3073
|
1,
|
|
3064
|
-
Math.hypot(
|
|
3074
|
+
Math.hypot(b[K], I[K]) / 900
|
|
3065
3075
|
);
|
|
3066
|
-
|
|
3076
|
+
b[K] /= ke, I[K] /= ke;
|
|
3067
3077
|
}
|
|
3068
|
-
},
|
|
3069
|
-
const H = Math.ceil(T / 8),
|
|
3078
|
+
}, ve = (T) => {
|
|
3079
|
+
const H = Math.ceil(T / 8), Z = T / H / 1e3;
|
|
3070
3080
|
for (let g = 0; g < H; g++) {
|
|
3071
|
-
for (let u = 0; u <
|
|
3072
|
-
for (let
|
|
3073
|
-
const D = u *
|
|
3074
|
-
const be = (le[O] + le[G] + le[K] + le[oe] - le[D] * 4) * 2.2,
|
|
3075
|
-
return le[D] + (be +
|
|
3081
|
+
for (let u = 0; u < E; u++)
|
|
3082
|
+
for (let L = 0; L < _; L++) {
|
|
3083
|
+
const D = u * _ + L, O = u * _ + Math.max(0, L - 1), G = u * _ + Math.min(_ - 1, L + 1), K = Math.max(0, u - 1) * _ + L, oe = Math.min(E - 1, u + 1) * _ + L, ne = (le, ie) => {
|
|
3084
|
+
const be = (le[O] + le[G] + le[K] + le[oe] - le[D] * 4) * 2.2, ke = (ie[O] + ie[G] + ie[K] + ie[oe] - ie[D] * 4) * 36;
|
|
3085
|
+
return le[D] + (be + ke - le[D] * 1.7 - ie[D] * 0.9) * Z;
|
|
3076
3086
|
};
|
|
3077
|
-
|
|
3087
|
+
A[D] = ne(b, p), z[D] = ne(I, w);
|
|
3078
3088
|
}
|
|
3079
|
-
[
|
|
3089
|
+
[b, A] = [A, b], [I, z] = [z, I];
|
|
3080
3090
|
for (let u = 0; u < p.length; u++)
|
|
3081
|
-
p[u] +=
|
|
3091
|
+
p[u] += b[u] * Z, w[u] += I[u] * Z;
|
|
3082
3092
|
}
|
|
3083
|
-
},
|
|
3084
|
-
const u = T +
|
|
3093
|
+
}, _e = (T, H) => ir(T, H, re, te), he = (T, H, Z, g = 1) => {
|
|
3094
|
+
const u = T + Z / 2, L = H + Z / 2, D = ee(u, L), O = (Ee) => _e(
|
|
3085
3095
|
(Math.floor(u / Ee) + 0.5) * Ee - D.x,
|
|
3086
|
-
(Math.floor(
|
|
3087
|
-
), G = O(M.current), K = O(M.current / 2), oe = Math.floor(u / M.current),
|
|
3096
|
+
(Math.floor(L / Ee) + 0.5) * Ee - D.y
|
|
3097
|
+
), G = O(M.current), K = O(M.current / 2), oe = Math.floor(u / M.current), ne = Math.floor(L / M.current), le = ot(oe * 17 + 31, ne * 29 + 47), ie = re * (0.55 + le * 0.45) + le * 19, be = Math.floor(ie), ke = ie - be, ct = ot(oe + be * 193, ne - be * 137), Ke = F.matches || ct < 0.84 ? 0 : Math.sin(ke * 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(
|
|
3088
3098
|
0,
|
|
3089
3099
|
Math.min(et.length - 1, jt * 1.08 * (et.length - 1))
|
|
3090
3100
|
), dt = Math.floor(ft), Wt = ft - dt, Vt = et[dt], Kt = et[Math.min(dt + 1, et.length - 1)];
|
|
3091
|
-
|
|
3101
|
+
v.fillStyle = "rgb(" + [1, 3, 5].map((Ee) => {
|
|
3092
3102
|
const bt = parseInt(Vt.slice(Ee, Ee + 2), 16), Jt = parseInt(Kt.slice(Ee, Ee + 2), 16);
|
|
3093
3103
|
return Math.round(bt + (Jt - bt) * Wt);
|
|
3094
|
-
}).join(",") + ")",
|
|
3095
|
-
},
|
|
3104
|
+
}).join(",") + ")", v.fillRect(T, H, Z + 0.6, Z + 0.6);
|
|
3105
|
+
}, Le = (T) => {
|
|
3096
3106
|
C = 0;
|
|
3097
|
-
const H =
|
|
3098
|
-
|
|
3099
|
-
const
|
|
3100
|
-
|
|
3107
|
+
const H = pe ? Math.min(T - pe, 64) : 16;
|
|
3108
|
+
pe = T, X = d.current, te += (X * 7.13 - te) * (1 - Math.exp(-H / 500)), F.matches || (ce += H / 1e3 * $.current, ve(H));
|
|
3109
|
+
const Z = R.current * Bt;
|
|
3110
|
+
Z !== ae && (Q = V, ae = Z, Y = 0), Y = Math.min(pt, Y + H);
|
|
3101
3111
|
const g = F.matches ? 1 : Y / pt, u = g * g * (3 - 2 * g);
|
|
3102
|
-
V =
|
|
3103
|
-
for (let
|
|
3112
|
+
V = Q + (ae - Q) * u, re = ce + V;
|
|
3113
|
+
for (let L = 0; L < B; L += M.current)
|
|
3104
3114
|
for (let D = 0; D < q; D += M.current) {
|
|
3105
|
-
const O =
|
|
3115
|
+
const O = ee(
|
|
3106
3116
|
D + M.current / 2,
|
|
3107
|
-
|
|
3108
|
-
), G = D + "," +
|
|
3109
|
-
if (
|
|
3110
|
-
const
|
|
3117
|
+
L + M.current / 2
|
|
3118
|
+
), G = D + "," + L, K = F.matches ? 0 : Math.min(1, Math.hypot(O.x, O.y) / 24), oe = P.get(G) ?? 0, ne = oe + (K - oe) * (1 - Math.exp(-H / (K > oe ? 80 : 320)));
|
|
3119
|
+
if (P.set(G, ne < 1e-3 ? 0 : ne), ne > 1e-3) {
|
|
3120
|
+
const ie = M.current / 2;
|
|
3111
3121
|
for (let be = 0; be < 2; be++)
|
|
3112
|
-
for (let
|
|
3113
|
-
|
|
3122
|
+
for (let ke = 0; ke < 2; ke++)
|
|
3123
|
+
he(D + ke * ie, L + be * ie, ie, ne);
|
|
3114
3124
|
} else
|
|
3115
|
-
|
|
3125
|
+
he(D, L, M.current, 0);
|
|
3116
3126
|
}
|
|
3117
|
-
U && !document.hidden && !F.matches && (C = requestAnimationFrame(
|
|
3127
|
+
U && !document.hidden && !F.matches && (C = requestAnimationFrame(Le));
|
|
3118
3128
|
}, ue = () => {
|
|
3119
|
-
cancelAnimationFrame(C),
|
|
3129
|
+
cancelAnimationFrame(C), pe = 0, document.hidden || Le(performance.now());
|
|
3120
3130
|
};
|
|
3121
|
-
|
|
3131
|
+
N.current = () => {
|
|
3122
3132
|
C || ue();
|
|
3123
3133
|
};
|
|
3124
3134
|
const Te = () => {
|
|
3125
3135
|
const T = f.getBoundingClientRect();
|
|
3126
|
-
(q !== T.width ||
|
|
3136
|
+
(q !== T.width || B !== T.height) && (q = T.width, B = T.height, J()), _ || J(), P.clear();
|
|
3127
3137
|
const H = Math.min(devicePixelRatio || 1, 2);
|
|
3128
|
-
f.width = Math.round(q * H), f.height = Math.round(
|
|
3138
|
+
f.width = Math.round(q * H), f.height = Math.round(B * H), v.setTransform(H, 0, 0, H, 0, 0), ue();
|
|
3129
3139
|
}, qe = (T) => T.target instanceof Element && !!T.target.closest(
|
|
3130
3140
|
'a,button,input,textarea,select,[contenteditable],[role="button"],[role="switch"],[role="combobox"],[role="slider"]'
|
|
3131
|
-
),
|
|
3141
|
+
), Se = (T) => {
|
|
3132
3142
|
if (F.matches || qe(T) || (T.pointerType === "touch" || !o.matches) && !j.down || j.down && T.pointerId !== j.id)
|
|
3133
3143
|
return;
|
|
3134
|
-
const H = f.getBoundingClientRect(),
|
|
3135
|
-
if (j.active &&
|
|
3136
|
-
const
|
|
3144
|
+
const H = f.getBoundingClientRect(), Z = performance.now(), g = T.clientX - H.left, u = T.clientY - H.top;
|
|
3145
|
+
if (j.active && Z - j.at < 150) {
|
|
3146
|
+
const L = g - j.x, D = u - j.y, O = Math.hypot(L, D), G = Math.max(8, Z - j.at) / 1e3, K = O / G, oe = (j.down ? 3 : 0.65) * (0.5 + Math.min(K, 1800) / 900), ne = Math.min(
|
|
3137
3147
|
64,
|
|
3138
|
-
Math.max(1, Math.ceil(O / (
|
|
3148
|
+
Math.max(1, Math.ceil(O / (Me / 2)))
|
|
3139
3149
|
), le = Math.min(1, 240 / Math.max(1, O));
|
|
3140
|
-
for (let
|
|
3141
|
-
|
|
3142
|
-
j.x +
|
|
3143
|
-
j.y + D *
|
|
3144
|
-
|
|
3145
|
-
D * le * oe /
|
|
3150
|
+
for (let ie = 1; ie <= ne; ie++)
|
|
3151
|
+
de(
|
|
3152
|
+
j.x + L * ie / ne,
|
|
3153
|
+
j.y + D * ie / ne,
|
|
3154
|
+
L * le * oe / ne,
|
|
3155
|
+
D * le * oe / ne
|
|
3146
3156
|
);
|
|
3147
3157
|
}
|
|
3148
|
-
Object.assign(j, { x: g, y: u, at:
|
|
3149
|
-
},
|
|
3158
|
+
Object.assign(j, { x: g, y: u, at: Z, active: !0 }), C || ue();
|
|
3159
|
+
}, Ne = (T) => {
|
|
3150
3160
|
if (F.matches || qe(T) || !T.isPrimary || T.button !== 0)
|
|
3151
3161
|
return;
|
|
3152
3162
|
const H = f.getBoundingClientRect();
|
|
@@ -3157,18 +3167,18 @@ function ri({
|
|
|
3157
3167
|
active: !0,
|
|
3158
3168
|
down: !0,
|
|
3159
3169
|
id: T.pointerId
|
|
3160
|
-
}),
|
|
3170
|
+
}), de(j.x, j.y, 0, 0, -32, St * 1.2), C || ue();
|
|
3161
3171
|
}, Pe = (T) => {
|
|
3162
3172
|
T.pointerId === j.id && (j.down = !1, j.id = -1);
|
|
3163
3173
|
}, me = () => {
|
|
3164
3174
|
j.active = !1, j.down = !1, j.id = -1;
|
|
3165
|
-
},
|
|
3166
|
-
me(), F.matches && (
|
|
3167
|
-
}, Ie = new ResizeObserver(Te),
|
|
3175
|
+
}, Be = () => {
|
|
3176
|
+
me(), F.matches && (J(), P.clear()), ue();
|
|
3177
|
+
}, Ie = new ResizeObserver(Te), Re = new IntersectionObserver((T) => {
|
|
3168
3178
|
U = T.some((H) => H.isIntersecting), ue();
|
|
3169
3179
|
});
|
|
3170
|
-
return Ie.observe(f),
|
|
3171
|
-
|
|
3180
|
+
return Ie.observe(f), Re.observe(f), F.addEventListener("change", Be), o.addEventListener("change", Be), y.addEventListener("pointermove", Se), y.addEventListener("pointerdown", Ne), y.addEventListener("pointerleave", me), y.addEventListener("pointercancel", me), window.addEventListener("pointerup", Pe), window.addEventListener("blur", me), document.addEventListener("visibilitychange", ue), Te(), () => {
|
|
3181
|
+
N.current = null, cancelAnimationFrame(C), Ie.disconnect(), Re.disconnect(), F.removeEventListener("change", Be), o.removeEventListener("change", Be), y.removeEventListener("pointermove", Se), y.removeEventListener("pointerdown", Ne), y.removeEventListener("pointerleave", me), y.removeEventListener("pointercancel", me), window.removeEventListener("pointerup", Pe), window.removeEventListener("blur", me), document.removeEventListener("visibilitychange", ue);
|
|
3172
3182
|
};
|
|
3173
3183
|
}, []), /* @__PURE__ */ e("canvas", { ref: i, className: rr.canvas, "aria-hidden": "true" });
|
|
3174
3184
|
}
|
|
@@ -3209,8 +3219,8 @@ function ii({
|
|
|
3209
3219
|
onComplete: t,
|
|
3210
3220
|
passages: n
|
|
3211
3221
|
}) {
|
|
3212
|
-
const r = n ?? sr, s =
|
|
3213
|
-
return
|
|
3222
|
+
const r = n ?? sr, s = Ce(null);
|
|
3223
|
+
return Ae(() => {
|
|
3214
3224
|
const l = s.current, i = l?.getContext("2d"), d = matchMedia("(prefers-reduced-motion: reduce)");
|
|
3215
3225
|
if (!l || !i || d.matches) {
|
|
3216
3226
|
t();
|
|
@@ -3223,7 +3233,7 @@ function ii({
|
|
|
3223
3233
|
l.width = h * o, l.height = m * o, i.setTransform(o, 0, 0, o, 0, 0);
|
|
3224
3234
|
};
|
|
3225
3235
|
M();
|
|
3226
|
-
const $ = r.map((o,
|
|
3236
|
+
const $ = r.map((o, y) => ({
|
|
3227
3237
|
text: o,
|
|
3228
3238
|
order: Math.random(),
|
|
3229
3239
|
x: Math.random() * 0.88 - 0.03,
|
|
@@ -3233,32 +3243,32 @@ function ii({
|
|
|
3233
3243
|
size: 9 + Math.random() * 13,
|
|
3234
3244
|
dark: Math.random() > 0.35,
|
|
3235
3245
|
phase: Math.random() * 1e3,
|
|
3236
|
-
index:
|
|
3237
|
-
})).sort((o,
|
|
3238
|
-
const
|
|
3239
|
-
i.globalAlpha = 1, i.fillStyle =
|
|
3240
|
-
for (const
|
|
3241
|
-
const U =
|
|
3242
|
-
i.save(), i.globalAlpha = 1 - C, i.fillStyle =
|
|
3243
|
-
let
|
|
3244
|
-
const
|
|
3245
|
-
for (let
|
|
3246
|
-
const j =
|
|
3247
|
-
if (
|
|
3248
|
-
const
|
|
3246
|
+
index: y
|
|
3247
|
+
})).sort((o, y) => o.order - y.order), R = 2500, N = 4e3, k = performance.now(), f = (o) => {
|
|
3248
|
+
const y = (o - k) * N / R, C = Rt((y - 2900) / 850), q = Math.floor(y / 340);
|
|
3249
|
+
i.globalAlpha = 1, i.fillStyle = y < 650 || y >= 1600 ? "#101216" : "#fafafa", i.fillRect(0, 0, h, m);
|
|
3250
|
+
for (const B of $) {
|
|
3251
|
+
const U = B.x * h, te = B.y * m, X = B.width * h, ce = B.height * m, V = B.size * (y < 650 ? 1.6 : y < 1600 ? 1.15 : 1), Q = V * 1.04;
|
|
3252
|
+
i.save(), i.globalAlpha = 1 - C, i.fillStyle = B.dark ? "#101216" : "#f4f5f7", i.fillRect(U, te, X, ce), i.beginPath(), i.rect(U, te, X, ce), i.clip(), i.font = V + "px sans-serif", i.textBaseline = "top";
|
|
3253
|
+
let ae = U, Y = te - (y * 0.012 + B.phase) % Q;
|
|
3254
|
+
const re = B.text.split(" ");
|
|
3255
|
+
for (let pe = 0; pe < re.length; pe++) {
|
|
3256
|
+
const j = re[pe], _ = i.measureText(j + " ").width;
|
|
3257
|
+
if (ae + _ > U + X && (ae = U, Y += Q), Y > te + ce) break;
|
|
3258
|
+
const E = B.index * 53 + pe * 17;
|
|
3249
3259
|
i.save();
|
|
3250
|
-
const p = Math.round((Y - 7) / 14), w = 7 + Math.round((
|
|
3251
|
-
if (i.translate(
|
|
3252
|
-
i.restore(),
|
|
3260
|
+
const p = Math.round((Y - 7) / 14), w = 7 + Math.round((ae - 7) / 14) * 14 + p % 2 * 7, b = 7 + p * 14;
|
|
3261
|
+
if (i.translate(ae + (w - ae) * C, Y + (b - Y) * C), i.scale(1 - C * 0.94, 1 - C * 0.94), y < 650 && (E + q) % 4 > 0) {
|
|
3262
|
+
i.restore(), ae += _;
|
|
3253
3263
|
continue;
|
|
3254
3264
|
}
|
|
3255
|
-
(
|
|
3265
|
+
(E + q) % 8 < 3 ? (i.fillStyle = ["#245bff", "#aab1bd", "#e8edf7"][(E + q) % 3], i.fillRect(0, 0, i.measureText(j).width, Q), i.fillStyle = (E + q) % 3 === 0 ? "#fff" : "#101216") : i.fillStyle = B.dark ? "#f5f8ff" : "#101216", i.fillText(y < 650 ? j.toUpperCase() : j, 0, 0), i.restore(), ae += _;
|
|
3256
3266
|
}
|
|
3257
3267
|
i.restore();
|
|
3258
3268
|
}
|
|
3259
3269
|
if (C > 0) {
|
|
3260
|
-
const
|
|
3261
|
-
for (const [
|
|
3270
|
+
const B = document.querySelector(".rp-hero"), U = B?.getBoundingClientRect().height || m, te = i.createLinearGradient(0, 0, 0, U);
|
|
3271
|
+
for (const [X, ce] of [
|
|
3262
3272
|
[0, "#0b205e"],
|
|
3263
3273
|
[0.35, "#214eaf"],
|
|
3264
3274
|
[0.55, "#3564cc"],
|
|
@@ -3266,24 +3276,24 @@ function ii({
|
|
|
3266
3276
|
[0.93, "#edf4ff"],
|
|
3267
3277
|
[1, "#fff"]
|
|
3268
3278
|
])
|
|
3269
|
-
|
|
3270
|
-
i.globalAlpha = C, i.fillStyle =
|
|
3271
|
-
for (let
|
|
3279
|
+
te.addColorStop(X, ce);
|
|
3280
|
+
i.globalAlpha = C, i.fillStyle = te, i.fillRect(0, 0, h, m);
|
|
3281
|
+
for (let X = 7, ce = 0; X < m; X += 14, ce++)
|
|
3272
3282
|
for (let V = 7 + ce % 2 * 7; V < h; V += 14) {
|
|
3273
|
-
const
|
|
3274
|
-
-Math.pow((V - h / 2) / (h * 0.28), 2) - Math.pow((
|
|
3283
|
+
const Q = Math.pow(Math.max(0, 1 - X / U), 0.6), ae = 1 - Math.exp(
|
|
3284
|
+
-Math.pow((V - h / 2) / (h * 0.28), 2) - Math.pow((X - U * 0.38) / (U * 0.24), 2)
|
|
3275
3285
|
) * 0.55;
|
|
3276
|
-
i.globalAlpha = C * 0.54 *
|
|
3286
|
+
i.globalAlpha = C * 0.54 * Q * ae, i.strokeStyle = "#f5f8ff", i.lineWidth = 1.2, i.beginPath(), i.moveTo(V - 3.5, X), i.lineTo(V + 3.5, X), i.moveTo(V, X - 3.5), i.lineTo(V, X + 3.5), i.stroke();
|
|
3277
3287
|
}
|
|
3278
3288
|
}
|
|
3279
|
-
i.globalAlpha = 1, l.style.opacity = String(1 - Rt((
|
|
3289
|
+
i.globalAlpha = 1, l.style.opacity = String(1 - Rt((y - 3750) / 250)), y < N ? x = requestAnimationFrame(f) : t();
|
|
3280
3290
|
};
|
|
3281
3291
|
x = requestAnimationFrame(f);
|
|
3282
|
-
const
|
|
3292
|
+
const v = setTimeout(t, R + 300), F = () => {
|
|
3283
3293
|
d.matches && t();
|
|
3284
3294
|
};
|
|
3285
3295
|
return addEventListener("resize", M), d.addEventListener("change", F), () => {
|
|
3286
|
-
cancelAnimationFrame(x), clearTimeout(
|
|
3296
|
+
cancelAnimationFrame(x), clearTimeout(v), removeEventListener("resize", M), d.removeEventListener("change", F);
|
|
3287
3297
|
};
|
|
3288
3298
|
}, [t, r]), /* @__PURE__ */ e(
|
|
3289
3299
|
"canvas",
|
|
@@ -3354,11 +3364,11 @@ function si(t = Math.random() * 4294967295) {
|
|
|
3354
3364
|
}
|
|
3355
3365
|
function oi(t, n, r, s) {
|
|
3356
3366
|
if (s < 0) return { x: 0, y: 0, energy: 0 };
|
|
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, m = Math.exp(-s * t.decay) * Math.min(1, s / 0.08), x = s * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(i * (t.arms + 3) + t.phase)), M = (l - x) / t.width, $ = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1,
|
|
3367
|
+
const l = Math.hypot(n, r), i = Math.atan2(r, n), d = i * t.arms + t.rotation, h = d - l * t.curl * t.direction, m = Math.exp(-s * t.decay) * Math.min(1, s / 0.08), x = s * t.speed * (1 + t.lobes * Math.sin(d) + 0.035 * Math.sin(i * (t.arms + 3) + t.phase)), M = (l - x) / t.width, $ = t.family === 2 ? 0.25 + 0.75 * Math.pow(0.5 + 0.5 * Math.sin(d + t.phase), 2) : 1, R = Math.exp(-M * M) * m * $, N = Math.pow(Math.max(0, Math.cos(h)), 8), k = Math.exp(-Math.pow((l - x * 0.6) / 95, 2)) * N * m, f = Math.exp(-l * l / 14e3) * Math.max(0, 1 - s / 0.6), v = R * t.strength + k * 22 + f * 8, F = k * 18 * Math.sin(h) * t.direction;
|
|
3358
3368
|
return {
|
|
3359
|
-
x: (n *
|
|
3360
|
-
y: (r *
|
|
3361
|
-
energy:
|
|
3369
|
+
x: (n * v - r * F) / Math.max(1, l),
|
|
3370
|
+
y: (r * v + n * F) / Math.max(1, l),
|
|
3371
|
+
energy: R * 0.55 + k * 0.8 + f * 0.3
|
|
3362
3372
|
};
|
|
3363
3373
|
}
|
|
3364
3374
|
const Ge = {
|
|
@@ -3460,7 +3470,7 @@ const dr = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
3460
3470
|
Action: Xt,
|
|
3461
3471
|
Cancel: Gt,
|
|
3462
3472
|
Footer: dr
|
|
3463
|
-
}), hr = "rp_AuthCard-module_card_3af6mRI1", pr = "rp_AuthCard-module_header_WB-cRppT", ur = "rp_AuthCard-module_title_b2lbN-iF", mr = "rp_AuthCard-module_description_zPbJJzv5", gr = "rp_AuthCard-module_providers_Lr2Os9jM", fr = "rp_AuthCard-module_providerButton_ibhdV26C", br = "rp_AuthCard-module_providerIcon_Uj09QL-n", vr = "rp_AuthCard-module_keyForm_0VG0GeLp", yr = "rp_AuthCard-module_divider_r-wmQ2Yq", _r = "rp_AuthCard-module_keyInputRow_n4XX9BYm", Nr = "rp_AuthCard-module_keyInput_rzjbrJea", wr = "rp_AuthCard-module_footer_51y8yr80",
|
|
3473
|
+
}), hr = "rp_AuthCard-module_card_3af6mRI1", pr = "rp_AuthCard-module_header_WB-cRppT", ur = "rp_AuthCard-module_title_b2lbN-iF", mr = "rp_AuthCard-module_description_zPbJJzv5", gr = "rp_AuthCard-module_providers_Lr2Os9jM", fr = "rp_AuthCard-module_providerButton_ibhdV26C", br = "rp_AuthCard-module_providerIcon_Uj09QL-n", vr = "rp_AuthCard-module_keyForm_0VG0GeLp", yr = "rp_AuthCard-module_divider_r-wmQ2Yq", _r = "rp_AuthCard-module_keyInputRow_n4XX9BYm", Nr = "rp_AuthCard-module_keyInput_rzjbrJea", wr = "rp_AuthCard-module_footer_51y8yr80", xe = {
|
|
3464
3474
|
card: hr,
|
|
3465
3475
|
header: pr,
|
|
3466
3476
|
title: ur,
|
|
@@ -3486,28 +3496,28 @@ const dr = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
3486
3496
|
const [m, x] = De(""), M = ($) => {
|
|
3487
3497
|
$.preventDefault(), m.trim() && i?.(m.trim());
|
|
3488
3498
|
};
|
|
3489
|
-
return /* @__PURE__ */ a(lr, { className: se(
|
|
3490
|
-
/* @__PURE__ */ a("div", { className:
|
|
3491
|
-
/* @__PURE__ */ e("h1", { className:
|
|
3492
|
-
n && /* @__PURE__ */ e("p", { className:
|
|
3499
|
+
return /* @__PURE__ */ a(lr, { className: se(xe.card, h), children: [
|
|
3500
|
+
/* @__PURE__ */ a("div", { className: xe.header, children: [
|
|
3501
|
+
/* @__PURE__ */ e("h1", { className: xe.title, children: t }),
|
|
3502
|
+
n && /* @__PURE__ */ e("p", { className: xe.description, children: n })
|
|
3493
3503
|
] }),
|
|
3494
|
-
r.length > 0 && /* @__PURE__ */ e("div", { className:
|
|
3504
|
+
r.length > 0 && /* @__PURE__ */ e("div", { className: xe.providers, children: r.map(($) => /* @__PURE__ */ a(
|
|
3495
3505
|
W,
|
|
3496
3506
|
{
|
|
3497
|
-
className:
|
|
3507
|
+
className: xe.providerButton,
|
|
3498
3508
|
variant: "outline",
|
|
3499
3509
|
href: $.href,
|
|
3500
3510
|
onClick: $.onClick,
|
|
3501
3511
|
children: [
|
|
3502
|
-
$.icon && /* @__PURE__ */ e("span", { className:
|
|
3512
|
+
$.icon && /* @__PURE__ */ e("span", { className: xe.providerIcon, "aria-hidden": "true", children: $.icon }),
|
|
3503
3513
|
/* @__PURE__ */ e("span", { children: $.name })
|
|
3504
3514
|
]
|
|
3505
3515
|
},
|
|
3506
3516
|
$.id
|
|
3507
3517
|
)) }),
|
|
3508
|
-
i && /* @__PURE__ */ a("form", { className:
|
|
3509
|
-
/* @__PURE__ */ e("div", { className:
|
|
3510
|
-
/* @__PURE__ */ a("div", { className:
|
|
3518
|
+
i && /* @__PURE__ */ a("form", { className: xe.keyForm, onSubmit: M, children: [
|
|
3519
|
+
/* @__PURE__ */ e("div", { className: xe.divider, children: /* @__PURE__ */ e("span", { children: s }) }),
|
|
3520
|
+
/* @__PURE__ */ a("div", { className: xe.keyInputRow, children: [
|
|
3511
3521
|
/* @__PURE__ */ e(
|
|
3512
3522
|
st,
|
|
3513
3523
|
{
|
|
@@ -3515,13 +3525,13 @@ const dr = Xe(({ className: t, ...n }, r) => /* @__PURE__ */ e(
|
|
|
3515
3525
|
placeholder: l,
|
|
3516
3526
|
value: m,
|
|
3517
3527
|
onChange: ($) => x($.target.value),
|
|
3518
|
-
className:
|
|
3528
|
+
className: xe.keyInput
|
|
3519
3529
|
}
|
|
3520
3530
|
),
|
|
3521
3531
|
/* @__PURE__ */ e(W, { variant: "primary", type: "submit", disabled: !m.trim(), children: "Continue" })
|
|
3522
3532
|
] })
|
|
3523
3533
|
] }),
|
|
3524
|
-
d && /* @__PURE__ */ e("div", { className:
|
|
3534
|
+
d && /* @__PURE__ */ e("div", { className: xe.footer, children: d })
|
|
3525
3535
|
] });
|
|
3526
3536
|
}, Mr = "rp_Footer-module_footer_hxH87TcN", kr = "rp_Footer-module_nav_nBjfaMF3", $r = "rp_Footer-module_link_8Rd1iGUN", xr = "rp_Footer-module_copyright_MOU-OKDL", it = {
|
|
3527
3537
|
footer: Mr,
|
|
@@ -3584,7 +3594,7 @@ function hi({
|
|
|
3584
3594
|
surface: M = "hero",
|
|
3585
3595
|
href: $ = "/en"
|
|
3586
3596
|
}) {
|
|
3587
|
-
const
|
|
3597
|
+
const R = m === void 0 ? x : m;
|
|
3588
3598
|
return /* @__PURE__ */ a(
|
|
3589
3599
|
"header",
|
|
3590
3600
|
{
|
|
@@ -3609,11 +3619,11 @@ function hi({
|
|
|
3609
3619
|
popupTheme: t ? "dark" : "light",
|
|
3610
3620
|
options: s,
|
|
3611
3621
|
value: r,
|
|
3612
|
-
onValueChange: (
|
|
3613
|
-
ariaLabel: `Change language: ${s.find((
|
|
3622
|
+
onValueChange: (N) => l?.(N),
|
|
3623
|
+
ariaLabel: `Change language: ${s.find((N) => N.value === r)?.label ?? r}`
|
|
3614
3624
|
}
|
|
3615
3625
|
),
|
|
3616
|
-
|
|
3626
|
+
R === void 0 ? /* @__PURE__ */ e(W, { variant: "primary", href: "/en/auth", children: "API Key" }) : R
|
|
3617
3627
|
] })
|
|
3618
3628
|
]
|
|
3619
3629
|
}
|