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