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