openclaw-cortex 3.2.1 → 3.2.2
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/{audio-preflight-CJMYPxgz.js → audio-preflight-CketII1D.js} +4 -4
- package/dist/{audio-preflight-DrLN-6C1.js → audio-preflight-DvPjddyW.js} +4 -4
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +6 -6
- package/dist/bundled/session-memory/handler.js +6 -6
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{chrome-jiKls1lm.js → chrome-7PNldBIY.js} +7 -7
- package/dist/{chrome-DBmAGMTR.js → chrome-C-c5M24y.js} +7 -7
- package/dist/{command-registry-C2HYRZO_.js → command-registry-bnmnLUnx.js} +4 -4
- package/dist/{completion-cli-DB5qbPxk.js → completion-cli-CNWQ3fEd.js} +1 -1
- package/dist/{completion-cli-rVm9UjTQ.js → completion-cli-DkjwWQiV.js} +2 -2
- package/dist/control-ui/_app/immutable/chunks/{B1iX_42Z.js → C1foZlYx.js} +1 -1
- package/dist/control-ui/_app/immutable/entry/{app.Bd8SQgW6.js → app.CrCCwjNG.js} +2 -2
- package/dist/control-ui/_app/immutable/entry/start.COsntbkx.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{0.BhV9YmDE.js → 0.C_eDaxcG.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{1.BGSGmS27.js → 1.Bl8gqrPg.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{15.BJ_h8euT.js → 15.DprKPzQ3.js} +1 -1
- package/dist/control-ui/_app/version.json +1 -1
- package/dist/control-ui/index.html +6 -6
- package/dist/{deliver-DXKF_Nu0.js → deliver-CFSxoz2_.js} +1 -1
- package/dist/{deliver-miQ_b14_.js → deliver-Cx5HCk1u.js} +1 -1
- package/dist/{doctor-completion-CDdw31wQ.js → doctor-completion-DsPB0eOt.js} +1 -1
- package/dist/{doctor-completion-lw65Gm69.js → doctor-completion-v-5OlFRw.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/extensionAPI.js +6 -6
- package/dist/{gateway-cli-D_RCXTvo.js → gateway-cli-Can-C2Mw.js} +2 -2
- package/dist/{gateway-cli-yd0wJM_1.js → gateway-cli-DlankjZa.js} +2 -2
- package/dist/{image-DChVqMFC.js → image-DafeVSso.js} +1 -1
- package/dist/{image-Bnzq6Ut_.js → image-Dgvueazf.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/llm-slug-generator.js +6 -6
- package/dist/{onboard-DtWmcQlQ.js → onboard-Be9rD-tu.js} +1 -1
- package/dist/{onboard-Bd7A_X5U.js → onboard-Dq4WS2ai.js} +1 -1
- package/dist/{onboarding-JoS3gVBZ.js → onboarding-jX-gc6kQ.js} +1 -1
- package/dist/{onboarding-D5BRyKY0.js → onboarding-mZg7K8XF.js} +1 -1
- package/dist/{onboarding.finalize-DwWgfZqG.js → onboarding.finalize-A-p1VHgb.js} +4 -4
- package/dist/{onboarding.finalize-Bbi4NFVI.js → onboarding.finalize-CYqgr1Ah.js} +3 -3
- package/dist/{pi-embedded-D0HD9Cfc.js → pi-embedded-BUQwV3oO.js} +16 -16
- package/dist/{pi-embedded-DPsT4Vb4.js → pi-embedded-Ig1YOX5t.js} +16 -16
- package/dist/{pi-embedded-helpers--8pQ_5Ix.js → pi-embedded-helpers-C-3FQnQz.js} +4 -4
- package/dist/{pi-embedded-helpers-f1wpGfIT.js → pi-embedded-helpers-CdVb74wU.js} +4 -4
- package/dist/{program-a6gIDhmg.js → program-DuYe-jhV.js} +2 -2
- package/dist/{program-context-a5xRVp1E.js → program-context-BqVXk3-Z.js} +6 -6
- package/dist/{prompt-select-styled-BEAD7Qf_.js → prompt-select-styled-Bw0ENvI5.js} +1 -1
- package/dist/{prompt-select-styled-pDE5STe1.js → prompt-select-styled-jxYRRElg.js} +1 -1
- package/dist/{pw-ai-BJE3mkCf.js → pw-ai-BwFJauyF.js} +1 -1
- package/dist/{pw-ai-D6PxL0UG.js → pw-ai-CNp2t_EO.js} +1 -1
- package/dist/{register.maintenance-CkXb4wzI.js → register.maintenance-C4m4RDEl.js} +5 -5
- package/dist/{register.maintenance-C0OozXb_.js → register.maintenance-DGXOz6io.js} +4 -4
- package/dist/{register.onboard-B612Ekbb.js → register.onboard-BX_gqWPl.js} +2 -2
- package/dist/{register.onboard-BFR0fFZX.js → register.onboard-Cg6Xn_7w.js} +2 -2
- package/dist/{register.setup-CtDlzU4V.js → register.setup-BIKdjgm0.js} +2 -2
- package/dist/{register.setup-Caf3i42W.js → register.setup-BOb2yddg.js} +2 -2
- package/dist/{register.subclis-7bpaXBdE.js → register.subclis-NBD6Ksnk.js} +3 -3
- package/dist/{run-main-Y3Uf0qp5.js → run-main-SxDdrSGo.js} +3 -3
- package/dist/{runner-BmfMAciA.js → runner-46SPi1J0.js} +1 -1
- package/dist/{runner-CRUcM4a1.js → runner-BN1T_Ne4.js} +1 -1
- package/dist/{update-cli-D-f0EC6V.js → update-cli-BKj8J7RT.js} +5 -5
- package/dist/{update-cli-DQ-gzfuL.js → update-cli-DvEpui7q.js} +4 -4
- package/dist/{web-C0-NYLoG.js → web-BR2lk-tX.js} +6 -6
- package/dist/{web-QGqe0Uj4.js → web-ComVBhjb.js} +6 -6
- package/package.json +1 -1
- package/dist/control-ui/_app/immutable/entry/start.CNQsVt7L.js +0 -1
|
@@ -13,11 +13,11 @@ import "./accounts-4VxR4Yrw.js";
|
|
|
13
13
|
import "./fs-safe-GrTh3Ydq.js";
|
|
14
14
|
import "./pi-model-discovery-DaNAekda.js";
|
|
15
15
|
import "./message-channel-BxsLQyfw.js";
|
|
16
|
-
import "./pi-embedded-helpers
|
|
16
|
+
import "./pi-embedded-helpers-C-3FQnQz.js";
|
|
17
17
|
import "./config-C-FsU8K2.js";
|
|
18
18
|
import "./manifest-registry-DmjapxrQ.js";
|
|
19
19
|
import "./common-BLbt_nyn.js";
|
|
20
|
-
import "./chrome-
|
|
20
|
+
import "./chrome-7PNldBIY.js";
|
|
21
21
|
import "./skills-D0U6i6zO.js";
|
|
22
22
|
import "./redact-DAKoy-tb.js";
|
|
23
23
|
import "./errors-BxR4oB-s.js";
|
|
@@ -26,10 +26,10 @@ import "./store-D4zsSWrO.js";
|
|
|
26
26
|
import "./thinking-DNrVhgpB.js";
|
|
27
27
|
import "./accounts-Dh62JQhz.js";
|
|
28
28
|
import "./paths-COn9vdws.js";
|
|
29
|
-
import "./image-
|
|
29
|
+
import "./image-DafeVSso.js";
|
|
30
30
|
import "./gemini-auth-DnVjaskb.js";
|
|
31
31
|
import "./local-roots-BBJH5K5T.js";
|
|
32
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
32
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-BN1T_Ne4.js";
|
|
33
33
|
|
|
34
34
|
//#region src/media-understanding/audio-preflight.ts
|
|
35
35
|
/**
|
|
@@ -15,11 +15,11 @@ import "./model-auth-Dm1uOof6.js";
|
|
|
15
15
|
import "./github-copilot-token-BQ98eazZ.js";
|
|
16
16
|
import "./pi-model-discovery-C-yOXpma.js";
|
|
17
17
|
import "./message-channel-BDlvrUZF.js";
|
|
18
|
-
import "./pi-embedded-helpers-
|
|
18
|
+
import "./pi-embedded-helpers-CdVb74wU.js";
|
|
19
19
|
import "./config-qfEsodS7.js";
|
|
20
20
|
import "./manifest-registry-Dovhiqzt.js";
|
|
21
21
|
import "./common-y9ALHdVZ.js";
|
|
22
|
-
import "./chrome-
|
|
22
|
+
import "./chrome-C-c5M24y.js";
|
|
23
23
|
import "./frontmatter-BT4H5SZG.js";
|
|
24
24
|
import "./skills-Ci_2Mah4.js";
|
|
25
25
|
import "./redact-BBbIZgau.js";
|
|
@@ -29,10 +29,10 @@ import "./store-Be0QxLPZ.js";
|
|
|
29
29
|
import "./thinking-wiChP3LK.js";
|
|
30
30
|
import "./accounts-BOYxuJ9C.js";
|
|
31
31
|
import "./paths-gnW-md4M.js";
|
|
32
|
-
import "./image-
|
|
32
|
+
import "./image-Dgvueazf.js";
|
|
33
33
|
import "./gemini-auth-B32PFjFy.js";
|
|
34
34
|
import "./local-roots-tMzVEQD2.js";
|
|
35
|
-
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-
|
|
35
|
+
import { a as resolveMediaAttachmentLocalRoots, n as createMediaAttachmentCache, o as runCapability, r as normalizeMediaAttachments, t as buildProviderRegistry, u as isAudioAttachment } from "./runner-46SPi1J0.js";
|
|
36
36
|
|
|
37
37
|
//#region src/media-understanding/audio-preflight.ts
|
|
38
38
|
/**
|
package/dist/build-info.json
CHANGED
|
@@ -5,7 +5,7 @@ import { s as resolveAgentWorkspaceDir, t as listAgentIds } from "../../agent-sc
|
|
|
5
5
|
import { r as defaultRuntime, t as createSubsystemLogger } from "../../subsystem-B5g771Td.js";
|
|
6
6
|
import "../../workspace-D9IzNnST.js";
|
|
7
7
|
import { n as SILENT_REPLY_TOKEN } from "../../tokens-BRx7o_ZS.js";
|
|
8
|
-
import { a as createDefaultDeps, i as agentCommand } from "../../pi-embedded-
|
|
8
|
+
import { a as createDefaultDeps, i as agentCommand } from "../../pi-embedded-BUQwV3oO.js";
|
|
9
9
|
import "../../normalize-D5KCCgTX.js";
|
|
10
10
|
import "../../accounts-6btx_LVr.js";
|
|
11
11
|
import "../../boolean-B8-BqKGQ.js";
|
|
@@ -14,7 +14,7 @@ import "../../bindings-DWtXcdc8.js";
|
|
|
14
14
|
import "../../send-C1F31aYA.js";
|
|
15
15
|
import "../../plugins-CJYXNO4s.js";
|
|
16
16
|
import "../../send-D6tzL2Tv.js";
|
|
17
|
-
import "../../deliver-
|
|
17
|
+
import "../../deliver-Cx5HCk1u.js";
|
|
18
18
|
import "../../diagnostic-CoT2YQH4.js";
|
|
19
19
|
import "../../diagnostic-session-state-DmrztgHU.js";
|
|
20
20
|
import "../../accounts-Cg6z7lKw.js";
|
|
@@ -24,11 +24,11 @@ import "../../model-auth-Dm1uOof6.js";
|
|
|
24
24
|
import "../../github-copilot-token-BQ98eazZ.js";
|
|
25
25
|
import "../../pi-model-discovery-C-yOXpma.js";
|
|
26
26
|
import "../../message-channel-BDlvrUZF.js";
|
|
27
|
-
import { B as loadSessionStore, W as updateSessionStore, _t as resolveAgentMainSessionKey, yt as resolveMainSessionKey } from "../../pi-embedded-helpers-
|
|
27
|
+
import { B as loadSessionStore, W as updateSessionStore, _t as resolveAgentMainSessionKey, yt as resolveMainSessionKey } from "../../pi-embedded-helpers-CdVb74wU.js";
|
|
28
28
|
import "../../config-qfEsodS7.js";
|
|
29
29
|
import "../../manifest-registry-Dovhiqzt.js";
|
|
30
30
|
import "../../common-y9ALHdVZ.js";
|
|
31
|
-
import "../../chrome-
|
|
31
|
+
import "../../chrome-C-c5M24y.js";
|
|
32
32
|
import "../../frontmatter-BT4H5SZG.js";
|
|
33
33
|
import "../../skills-Ci_2Mah4.js";
|
|
34
34
|
import "../../redact-BBbIZgau.js";
|
|
@@ -38,7 +38,7 @@ import "../../store-Be0QxLPZ.js";
|
|
|
38
38
|
import "../../thinking-wiChP3LK.js";
|
|
39
39
|
import "../../accounts-BOYxuJ9C.js";
|
|
40
40
|
import { s as resolveStorePath } from "../../paths-gnW-md4M.js";
|
|
41
|
-
import "../../image-
|
|
41
|
+
import "../../image-Dgvueazf.js";
|
|
42
42
|
import "../../reply-prefix-BaCBHwi7.js";
|
|
43
43
|
import "../../manager-KxfmY55A.js";
|
|
44
44
|
import "../../gemini-auth-B32PFjFy.js";
|
|
@@ -51,7 +51,7 @@ import "../../ir-CRTCIHIG.js";
|
|
|
51
51
|
import "../../render-CDCvpfhh.js";
|
|
52
52
|
import "../../commands-registry-B6FYKIxi.js";
|
|
53
53
|
import "../../skill-commands-DVss6_wi.js";
|
|
54
|
-
import "../../runner-
|
|
54
|
+
import "../../runner-46SPi1J0.js";
|
|
55
55
|
import "../../fetch-DtI0mtzx.js";
|
|
56
56
|
import "../../send-DvBDdcQr.js";
|
|
57
57
|
import "../../outbound-attachment-BChLBLPg.js";
|
|
@@ -5,7 +5,7 @@ import { s as resolveAgentWorkspaceDir } from "../../agent-scope-BLYwrEEA.js";
|
|
|
5
5
|
import { t as createSubsystemLogger } from "../../subsystem-B5g771Td.js";
|
|
6
6
|
import "../../workspace-D9IzNnST.js";
|
|
7
7
|
import "../../tokens-BRx7o_ZS.js";
|
|
8
|
-
import "../../pi-embedded-
|
|
8
|
+
import "../../pi-embedded-BUQwV3oO.js";
|
|
9
9
|
import "../../normalize-D5KCCgTX.js";
|
|
10
10
|
import "../../accounts-6btx_LVr.js";
|
|
11
11
|
import "../../boolean-B8-BqKGQ.js";
|
|
@@ -14,7 +14,7 @@ import "../../bindings-DWtXcdc8.js";
|
|
|
14
14
|
import "../../send-C1F31aYA.js";
|
|
15
15
|
import "../../plugins-CJYXNO4s.js";
|
|
16
16
|
import "../../send-D6tzL2Tv.js";
|
|
17
|
-
import "../../deliver-
|
|
17
|
+
import "../../deliver-Cx5HCk1u.js";
|
|
18
18
|
import "../../diagnostic-CoT2YQH4.js";
|
|
19
19
|
import "../../diagnostic-session-state-DmrztgHU.js";
|
|
20
20
|
import "../../accounts-Cg6z7lKw.js";
|
|
@@ -24,11 +24,11 @@ import "../../model-auth-Dm1uOof6.js";
|
|
|
24
24
|
import "../../github-copilot-token-BQ98eazZ.js";
|
|
25
25
|
import "../../pi-model-discovery-C-yOXpma.js";
|
|
26
26
|
import "../../message-channel-BDlvrUZF.js";
|
|
27
|
-
import { ot as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-
|
|
27
|
+
import { ot as hasInterSessionUserProvenance } from "../../pi-embedded-helpers-CdVb74wU.js";
|
|
28
28
|
import "../../config-qfEsodS7.js";
|
|
29
29
|
import "../../manifest-registry-Dovhiqzt.js";
|
|
30
30
|
import "../../common-y9ALHdVZ.js";
|
|
31
|
-
import "../../chrome-
|
|
31
|
+
import "../../chrome-C-c5M24y.js";
|
|
32
32
|
import "../../frontmatter-BT4H5SZG.js";
|
|
33
33
|
import "../../skills-Ci_2Mah4.js";
|
|
34
34
|
import "../../redact-BBbIZgau.js";
|
|
@@ -38,7 +38,7 @@ import "../../store-Be0QxLPZ.js";
|
|
|
38
38
|
import "../../thinking-wiChP3LK.js";
|
|
39
39
|
import "../../accounts-BOYxuJ9C.js";
|
|
40
40
|
import "../../paths-gnW-md4M.js";
|
|
41
|
-
import "../../image-
|
|
41
|
+
import "../../image-Dgvueazf.js";
|
|
42
42
|
import "../../reply-prefix-BaCBHwi7.js";
|
|
43
43
|
import "../../manager-KxfmY55A.js";
|
|
44
44
|
import "../../gemini-auth-B32PFjFy.js";
|
|
@@ -51,7 +51,7 @@ import "../../ir-CRTCIHIG.js";
|
|
|
51
51
|
import "../../render-CDCvpfhh.js";
|
|
52
52
|
import "../../commands-registry-B6FYKIxi.js";
|
|
53
53
|
import "../../skill-commands-DVss6_wi.js";
|
|
54
|
-
import "../../runner-
|
|
54
|
+
import "../../runner-46SPi1J0.js";
|
|
55
55
|
import "../../fetch-DtI0mtzx.js";
|
|
56
56
|
import "../../send-DvBDdcQr.js";
|
|
57
57
|
import "../../outbound-attachment-BChLBLPg.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e969d9dd937363cbc6568e0cfd2ea0670ea32fb16e4bdc7a076a82bb9289bf51
|
|
@@ -10,7 +10,7 @@ import fs$1 from "node:fs/promises";
|
|
|
10
10
|
import { execFileSync, spawn } from "node:child_process";
|
|
11
11
|
import net from "node:net";
|
|
12
12
|
import { createServer } from "node:http";
|
|
13
|
-
import WebSocket
|
|
13
|
+
import WebSocket, { WebSocketServer } from "ws";
|
|
14
14
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
15
15
|
|
|
16
16
|
//#region src/browser/constants.ts
|
|
@@ -178,7 +178,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
178
178
|
let nextExtensionId = 1;
|
|
179
179
|
const sendToExtension = async (payload) => {
|
|
180
180
|
const ws = extensionWs;
|
|
181
|
-
if (!ws || ws.readyState !== WebSocket
|
|
181
|
+
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
182
182
|
ws.send(JSON.stringify(payload));
|
|
183
183
|
return await new Promise((resolve, reject) => {
|
|
184
184
|
const timer = setTimeout(() => {
|
|
@@ -195,12 +195,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
195
195
|
const broadcastToCdpClients = (evt) => {
|
|
196
196
|
const msg = JSON.stringify(evt);
|
|
197
197
|
for (const ws of cdpClients) {
|
|
198
|
-
if (ws.readyState !== WebSocket
|
|
198
|
+
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
199
199
|
ws.send(msg);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
const sendResponseToCdp = (ws, res) => {
|
|
203
|
-
if (ws.readyState !== WebSocket
|
|
203
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
204
204
|
ws.send(JSON.stringify(res));
|
|
205
205
|
};
|
|
206
206
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -425,7 +425,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
425
425
|
wssExtension.on("connection", (ws) => {
|
|
426
426
|
extensionWs = ws;
|
|
427
427
|
const ping = setInterval(() => {
|
|
428
|
-
if (ws.readyState !== WebSocket
|
|
428
|
+
if (ws.readyState !== WebSocket.OPEN) return;
|
|
429
429
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
430
430
|
}, 5e3);
|
|
431
431
|
ws.on("message", (data) => {
|
|
@@ -743,7 +743,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
743
743
|
}
|
|
744
744
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
745
745
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
746
|
-
const ws = new WebSocket
|
|
746
|
+
const ws = new WebSocket(wsUrl, {
|
|
747
747
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
748
748
|
...Object.keys(headers).length ? { headers } : {}
|
|
749
749
|
});
|
|
@@ -1630,7 +1630,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1630
1630
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1631
1631
|
return await new Promise((resolve) => {
|
|
1632
1632
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1633
|
-
const ws = new WebSocket
|
|
1633
|
+
const ws = new WebSocket(wsUrl, {
|
|
1634
1634
|
handshakeTimeout: timeoutMs,
|
|
1635
1635
|
...Object.keys(headers).length ? { headers } : {}
|
|
1636
1636
|
});
|
|
@@ -10,7 +10,7 @@ import fs$1 from "node:fs";
|
|
|
10
10
|
import { execFileSync, spawn } from "node:child_process";
|
|
11
11
|
import net from "node:net";
|
|
12
12
|
import { createServer } from "node:http";
|
|
13
|
-
import WebSocket, { WebSocketServer } from "ws";
|
|
13
|
+
import WebSocket$1, { WebSocketServer } from "ws";
|
|
14
14
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
15
15
|
|
|
16
16
|
//#region src/browser/constants.ts
|
|
@@ -178,7 +178,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
178
178
|
let nextExtensionId = 1;
|
|
179
179
|
const sendToExtension = async (payload) => {
|
|
180
180
|
const ws = extensionWs;
|
|
181
|
-
if (!ws || ws.readyState !== WebSocket.OPEN) throw new Error("Chrome extension not connected");
|
|
181
|
+
if (!ws || ws.readyState !== WebSocket$1.OPEN) throw new Error("Chrome extension not connected");
|
|
182
182
|
ws.send(JSON.stringify(payload));
|
|
183
183
|
return await new Promise((resolve, reject) => {
|
|
184
184
|
const timer = setTimeout(() => {
|
|
@@ -195,12 +195,12 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
195
195
|
const broadcastToCdpClients = (evt) => {
|
|
196
196
|
const msg = JSON.stringify(evt);
|
|
197
197
|
for (const ws of cdpClients) {
|
|
198
|
-
if (ws.readyState !== WebSocket.OPEN) continue;
|
|
198
|
+
if (ws.readyState !== WebSocket$1.OPEN) continue;
|
|
199
199
|
ws.send(msg);
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
const sendResponseToCdp = (ws, res) => {
|
|
203
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
203
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
204
204
|
ws.send(JSON.stringify(res));
|
|
205
205
|
};
|
|
206
206
|
const ensureTargetEventsForClient = (ws, mode) => {
|
|
@@ -425,7 +425,7 @@ async function ensureChromeExtensionRelayServer(opts) {
|
|
|
425
425
|
wssExtension.on("connection", (ws) => {
|
|
426
426
|
extensionWs = ws;
|
|
427
427
|
const ping = setInterval(() => {
|
|
428
|
-
if (ws.readyState !== WebSocket.OPEN) return;
|
|
428
|
+
if (ws.readyState !== WebSocket$1.OPEN) return;
|
|
429
429
|
ws.send(JSON.stringify({ method: "ping" }));
|
|
430
430
|
}, 5e3);
|
|
431
431
|
ws.on("message", (data) => {
|
|
@@ -743,7 +743,7 @@ async function fetchOk(url, timeoutMs = 1500, init) {
|
|
|
743
743
|
}
|
|
744
744
|
async function withCdpSocket(wsUrl, fn, opts) {
|
|
745
745
|
const headers = getHeadersWithAuth(wsUrl, opts?.headers ?? {});
|
|
746
|
-
const ws = new WebSocket(wsUrl, {
|
|
746
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
747
747
|
handshakeTimeout: typeof opts?.handshakeTimeoutMs === "number" && Number.isFinite(opts.handshakeTimeoutMs) ? Math.max(1, Math.floor(opts.handshakeTimeoutMs)) : 5e3,
|
|
748
748
|
...Object.keys(headers).length ? { headers } : {}
|
|
749
749
|
});
|
|
@@ -1630,7 +1630,7 @@ async function getChromeWebSocketUrl(cdpUrl, timeoutMs = 500) {
|
|
|
1630
1630
|
async function canOpenWebSocket(wsUrl, timeoutMs = 800) {
|
|
1631
1631
|
return await new Promise((resolve) => {
|
|
1632
1632
|
const headers = getHeadersWithAuth(wsUrl);
|
|
1633
|
-
const ws = new WebSocket(wsUrl, {
|
|
1633
|
+
const ws = new WebSocket$1(wsUrl, {
|
|
1634
1634
|
handshakeTimeout: timeoutMs,
|
|
1635
1635
|
...Object.keys(headers).length ? { headers } : {}
|
|
1636
1636
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { an as getPrimaryCommand, cn as hasHelpOrVersion } from "./entry.js";
|
|
3
|
-
import { i as registerSubCliCommands, o as reparseProgramFromActionArgs } from "./register.subclis-
|
|
3
|
+
import { i as registerSubCliCommands, o as reparseProgramFromActionArgs } from "./register.subclis-NBD6Ksnk.js";
|
|
4
4
|
|
|
5
5
|
//#region src/cli/program/command-registry.ts
|
|
6
6
|
var command_registry_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -32,7 +32,7 @@ const coreEntries = [
|
|
|
32
32
|
hasSubcommands: false
|
|
33
33
|
}],
|
|
34
34
|
register: async ({ program }) => {
|
|
35
|
-
(await import("./register.setup-
|
|
35
|
+
(await import("./register.setup-BOb2yddg.js")).registerSetupCommand(program);
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -42,7 +42,7 @@ const coreEntries = [
|
|
|
42
42
|
hasSubcommands: false
|
|
43
43
|
}],
|
|
44
44
|
register: async ({ program }) => {
|
|
45
|
-
(await import("./register.onboard-
|
|
45
|
+
(await import("./register.onboard-BX_gqWPl.js")).registerOnboardCommand(program);
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
{
|
|
@@ -89,7 +89,7 @@ const coreEntries = [
|
|
|
89
89
|
}
|
|
90
90
|
],
|
|
91
91
|
register: async ({ program }) => {
|
|
92
|
-
(await import("./register.maintenance-
|
|
92
|
+
(await import("./register.maintenance-C4m4RDEl.js")).registerMaintenanceCommands(program);
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
{
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
|
2
2
|
import { g as resolveStateDir } from "./paths-B4BZAPZh.js";
|
|
3
3
|
import { h as pathExists } from "./utils-cLdsPM0M.js";
|
|
4
4
|
import { i as routeLogsToStderr } from "./subsystem-Dye7rE17.js";
|
|
5
|
-
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-
|
|
5
|
+
import { a as registerCoreCliByName, c as getSubCliEntries, l as registerSubCliByName, r as getCoreCliCommandNames, t as getProgramContext } from "./program-context-BqVXk3-Z.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
8
8
|
import fs from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
|
|
2
2
|
import { Yt as resolveStateDir, l as routeLogsToStderr, nt as pathExists } from "./entry.js";
|
|
3
|
-
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-
|
|
4
|
-
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-
|
|
3
|
+
import { n as getSubCliEntries, r as registerSubCliByName } from "./register.subclis-NBD6Ksnk.js";
|
|
4
|
+
import { i as registerCoreCliByName, n as getCoreCliCommandNames } from "./command-registry-bnmnLUnx.js";
|
|
5
5
|
import { t as getProgramContext } from "./program-context-Ds_91dTq.js";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import path from "node:path";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as U,g as A,d as T,F as ee,bh as ht}from"./qR_TM3YX.js";import{w as ke}from"./B3DkuU-J.js";import{o as Ne}from"./B-drBnSa.js";class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function gt(e){return e.split("%25").map(decodeURI).join("%25")}function mt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function _t(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function wt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const vt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&M.delete(xe(e)),vt(e,t));const M=new Map;function yt(e,t){const n=xe(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&M.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=wt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function bt(e,t,n){if(M.size>0){const a=xe(e,n),r=M.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);M.delete(a)}}return window.fetch(t,n)}function xe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${_t(...r)}"]`}return a}const kt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Et(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Rt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(_=>parseInt(_,16))));const f=kt.exec(c),[,h,w,u,p]=f;return t.push({name:u,matcher:p,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function St(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Rt(e){return e.slice(1).split("/").filter(St)}function xt(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-o];if(c.chained&&c.rest&&o&&(l=r.slice(s-o,s+1).filter(f=>f).join("/"),o=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[s+1],h=r[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Lt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:w}=Et(s),u={id:s,exec:p=>{const _=h.exec(p);if(_)return xt(_,w,a)},errors:[1,...f||[]].map(p=>e[p]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function Ge(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const x=globalThis.__sveltekit_8c878w?.base??"",Ut=globalThis.__sveltekit_8c878w?.assets??x??"",At="1771718146338",We="sveltekit:snapshot",Ye="sveltekit:scroll",ze="sveltekit:states",Tt="sveltekit:pageurl",B="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Le(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const qe={...j,"":j.hover};function He(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Je(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=He(e)}}function _e(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=V(s,"preload-code")),r===null&&(r=V(s,"preload-data")),t===null&&(t=V(s,"keepfocus")),n===null&&(n=V(s,"noscroll")),i===null&&(i=V(s,"reload")),o===null&&(o=V(s,"replacestate")),s=He(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:qe[a??"off"],preload_data:qe[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Ve(e){const t=ke(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const Xe={v:()=>{}};function It(){const{set:e,subscribe:t}=ke(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==At;return o&&(e(!0),Xe.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function on(e){}const Qe=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Qe];const Pt=new Set([...Qe]);[...Pt];function Ot(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof Re?e.status:500}function $t(e){return e instanceof Re?e.text:"Internal Error"}let k,Y,ge;const Ct=Ne.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ne.toString());Ct?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},ge={current:!1}):(k=new class{#e=U({});get data(){return A(this.#e)}set data(t){T(this.#e,t)}#t=U(null);get form(){return A(this.#t)}set form(t){T(this.#t,t)}#n=U(null);get error(){return A(this.#n)}set error(t){T(this.#n,t)}#a=U({});get params(){return A(this.#a)}set params(t){T(this.#a,t)}#r=U({id:null});get route(){return A(this.#r)}set route(t){T(this.#r,t)}#o=U({});get state(){return A(this.#o)}set state(t){T(this.#o,t)}#s=U(-1);get status(){return A(this.#s)}set status(t){T(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return A(this.#i)}set url(t){T(this.#i,t)}},Y=new class{#e=U(null);get current(){return A(this.#e)}set current(t){T(this.#e,t)}},ge=new class{#e=U(!1);get current(){return A(this.#e)}set current(t){T(this.#e,t)}},Xe.v=()=>ge.current=!0);function jt(e){Object.assign(k,e)}const Nt=new Set(["icon","shortcut icon","apple-touch-icon"]),C=Ge(Ye)??{},z=Ge(We)??{},$={url:Ve({}),page:Ve({}),navigating:ke(null),updated:It()};function Ae(e){C[e]=D()}function Dt(e,t){let n=e+1;for(;C[n];)delete C[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Be(){}let Te,we,ne,I,ve,y;const ae=[],re=[];let L=null;function ye(){L?.fork?.then(e=>e?.discard()),L=null}const Z=new Map,et=new Set,qt=new Set,G=new Set;let m={branch:[],error:null,url:null},tt=!1,oe=!1,Ke=!0,J=!1,F=!1,nt=!1,Ie=!1,at,v,R,N;const se=new Set,Fe=new Map;async function un(e,t,n){globalThis.__sveltekit_8c878w?.data&&globalThis.__sveltekit_8c878w.data,document.URL!==location.href&&(location.href=location.href),y=e,await e.hooks.init?.(),Te=Lt(e),I=document.documentElement,ve=t,we=e.nodes[0],ne=e.nodes[1],we(),ne(),v=history.state?.[B],R=history.state?.[W],v||(v=R=Date.now(),history.replaceState({...history.state,[B]:v,[W]:R},""));const a=C[v];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Qt(ve,n)):(await K({type:"enter",url:Le(y.hash?tn(new URL(location.href)):location.href),replace_state:!0}),r()),Xt()}function Vt(){ae.length=0,Ie=!1}function rt(e){re.some(t=>t?.snapshot)&&(z[e]=re.map(t=>t?.snapshot?.capture()))}function ot(e){z[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function Me(){Ae(v),De(Ye,C),rt(R),De(We,z)}async function st(e,t,n,a){let r;t.invalidateAll&&ye(),await K({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Ie=!0,r=[...Fe.keys()]),t.invalidate&&t.invalidate.forEach(Jt)}}),t.invalidateAll&&ee().then(ee).then(()=>{Fe.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Bt(e){if(e.id!==L?.id){ye();const t={};se.add(t),L={id:e.id,token:t,promise:ct({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null}}return L.promise}async function me(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function it(e,t,n){m=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),at=new y.root({target:t,props:{...e.props,stores:$,components:re},hydrate:n,sync:!1}),await Promise.resolve(),ot(R),n){const r={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href),scroll:C[v]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(x&&(e.pathname===x||e.pathname===x+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=pt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:Ot(n).map(u=>u.node.component),page:je(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,m.branch.length);u+=1){const p=n[u],_=m.branch[u];p?.data!==_?.data&&(f=!0),p&&(l={...l,...p.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!m.url||e.href!==m.url.href||m.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function Pe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function Kt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?bt(a,r.href,t):yt(a,t);return{resolved:r,promise:i}}function Ft(e,t,n,a,r,i){if(Ie)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==m.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Oe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Gt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:je(k),constructors:[]}}}async function ct({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(L?.id===e)return se.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));const f=m.url?e!==ce(m.url):!1,h=m.route?r.id!==m.route.id:!1,w=Mt(m.url,n);let u=!1;const p=l.map(async(g,d)=>{if(!g)return;const E=m.branch[d];return g[1]===E?.loader&&!Ft(u,h,f,w,E.universal?.uses,a)?E:(u=!0,Pe({loader:g[1],url:n,params:a,route:r,parent:async()=>{const P={};for(let O=0;O<d;O+=1)Object.assign(P,(await p[O])?.data);return P},server_data_node:Oe(g[0]?{type:"skip"}:null,g[0]?E?.server:void 0)}))});for(const g of p)g.catch(()=>{});const _=[];for(let g=0;g<l.length;g+=1)if(l[g])try{_.push(await p[g])}catch(d){if(d instanceof Se)return{type:"redirect",location:d.location};if(se.has(i))return Gt({error:await X(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Ee)S=d.body;else{if(await $.updated.check())return await Ze(),await H(n);S=await X(d,{params:a,url:n,route:{id:r.id}})}const P=await Wt(g,_,o);return P?ie({url:n,params:a,branch:_.slice(0,P.idx).concat(P.node),status:E,error:S,route:r}):await ut(n,{id:r.id},S,E)}else _.push(void 0);return ie({url:n,params:a,branch:_,status:200,error:null,route:r,form:t?void 0:null})}async function Wt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function $e({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Pe({loader:we,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Oe(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return st(new URL(o.location,location.href),{},0);throw o}}async function Yt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await y.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Kt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);y.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,y.hash)){const n=await Yt(e);if(!n)return;const a=zt(n);for(const r of Te){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:mt(i),url:e}}}}function zt(e){return gt(y.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(y.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function lt({url:e,type:t,intent:n,delta:a,event:r,scroll:i}){let o=!1;const s=Ce(m,n,e,t,i??null);a!==void 0&&(s.navigation.delta=a),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return J||et.forEach(l=>l(c)),o?null:s}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Be,block:f=Be,event:h}){const w=N;N=c;const u=await fe(t,!1),p=e==="enter"?Ce(m,u,t,e):lt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:h});if(!p){f(),N===c&&(N=w);return}const _=v,g=R;l(),J=!0,oe&&p.navigation.type!=="enter"&&$.navigating.set(Y.current=p.navigation);let d=u&&await ct(u);if(!d){if(ue(t,x,y.hash))return await H(t,i);d=await ut(t,{id:null},await X(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return p.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await K({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}d=await $e({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await $.updated.check()&&(await Ze(),await H(t,i));if(Vt(),Ae(_),rt(g),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,Q={[B]:v+=b,[W]:R+=b,[ze]:o};(i?history.replaceState:history.pushState).call(history,Q,"",t),i||Dt(v,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,d.props.page.state=o;let S;if(oe){const b=(await Promise.all(Array.from(qt,q=>q(p.navigation)))).filter(q=>typeof q=="function");if(b.length>0){let q=function(){b.forEach(de=>{G.delete(de)})};b.push(q),b.forEach(de=>{G.add(de)})}m=d.state,d.props.page&&(d.props.page.url=t);const Q=E&&await E;Q?S=Q.commit():(at.$set(d.props),jt(d.props.page),S=ht?.()),nt=!0}else await it(d,ve,!1);const{activeElement:P}=document;await S,await ee(),await ee();let O=null;if(Ke){const b=n?n.scroll:r?D():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(ft(t)))?O.scrollIntoView():scrollTo(0,0)}const dt=document.activeElement!==P&&document.activeElement!==document.body;!a&&!dt&&en(t,!O),Ke=!0,d.props.page&&Object.assign(k,d.props.page),J=!1,e==="popstate"&&ot(R),p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=D()),G.forEach(b=>b(p.navigation)),$.navigating.set(Y.current=null)}async function ut(e,t,n,a,r){return e.origin===le&&e.pathname===location.pathname&&!tt?await $e({status:a,error:n,url:e,route:t}):await H(e,r)}function Ht(){let e,t={element:void 0,href:void 0},n;I.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}I.addEventListener("mousedown",a),I.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(me(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=Je(s,I),f=l===t.element&&l?.href===t.href&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=_e(l,x,y.hash);if(w||u)return;const p=te(l),_=h&&ce(m.url)===ce(h);if(!(p.reload||_))if(c<=p.preload_data){t={element:l,href:l.href},n=j.tap;const g=await fe(h,!1);if(!g)return;Bt(g)}else c<=p.preload_code&&(t={element:l,href:l.href},n=c,me(h))}function o(){r.disconnect();for(const s of I.querySelectorAll("a")){const{url:c,external:l,download:f}=_e(s,x,y.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&r.observe(s),h.preload_code===j.eager&&me(c))}}G.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),a=$t(e);return y.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function fn(e,t={}){return e=new URL(Le(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):st(e,t,0)}function Jt(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function Xt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Me(),!J){const a=Ce(m,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};et.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Me()}),navigator.connection?.saveData||Ht(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Je(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:i,download:o}=_e(n,x,y.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(y.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===he(location);if(r||s.reload&&(!h||!f)){lt({url:a,type:"link",event:t})?J=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=m.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,Ae(v),e(a),!s.replace_state)return;F=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,x,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),K({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[B]){const n=t.state[B];if(N={},n===v)return;const a=C[n],r=t.state[ze]??{},i=new URL(t.state[Tt]??location.href),o=t.state[W],s=m.url?he(location)===he(m.url):!1;if(o===R&&(nt||s)){r!==k.state&&(k.state=r),e(i),C[v]=D(),a&&scrollTo(a.x,a.y),v=n;return}const l=n-v;await K({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{v=n,R=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!F){const n=new URL(location.href);e(n),y.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[B]:++v,[W]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Nt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(Y.current=null)});function e(t){m.url=k.url=t,$.page.set(je(k)),$.page.notify()}}async function Qt(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){tt=!0;const l=new URL(location.href);let f;({params:r={},route:i={id:null}}=await fe(l,!1)||{}),f=Te.find(({id:u})=>u===i.id);let h,w=!0;try{const u=a.map(async(_,g)=>{const d=s[g];return d?.uses&&(d.uses=Zt(d.uses)),Pe({loader:y.nodes[_],url:l,params:r,route:i,parent:async()=>{const E={};for(let S=0;S<g;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Oe(d)})}),p=await Promise.all(u);if(f){const _=f.layouts;for(let g=0;g<_.length;g++)_[g]||p.splice(g,0,void 0)}h=ie({url:l,params:r,branch:p,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Se){await H(new URL(u.location,location.href));return}h=await $e({status:Ue(u),error:await X(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await it(h,e,w)}function Zt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function en(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=ft(e);if(a&&document.getElementById(a)){const{x:i,y:o}=D();setTimeout(()=>{const s=history.state;be=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,o),be=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function Ce(e,t,n,a,r=null){let i,o;const s=new Promise((l,f)=>{i=l,o=f});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:r},willUnload:!t,type:a,complete:s},fulfil:i,reject:o}}function je(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function tn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function ft(e){let t;if(y.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{un as a,fn as g,on as l,k as p,$ as s};
|
|
1
|
+
import{s as U,g as A,d as T,F as ee,bh as ht}from"./qR_TM3YX.js";import{w as ke}from"./B3DkuU-J.js";import{o as Ne}from"./B-drBnSa.js";class Ee{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function gt(e){return e.split("%25").map(decodeURI).join("%25")}function mt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function _t(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function wt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const vt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&M.delete(xe(e)),vt(e,t));const M=new Map;function yt(e,t){const n=xe(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&M.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=wt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function bt(e,t,n){if(M.size>0){const a=xe(e,n),r=M.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);M.delete(a)}}return window.fetch(t,n)}function xe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${_t(...r)}"]`}return a}const kt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Et(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Rt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(_=>parseInt(_,16))));const f=kt.exec(c),[,h,w,u,p]=f;return t.push({name:u,matcher:p,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function St(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Rt(e){return e.slice(1).split("/").filter(St)}function xt(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-o];if(c.chained&&c.rest&&o&&(l=r.slice(s-o,s+1).filter(f=>f).join("/"),o=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[s+1],h=r[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Lt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:w}=Et(s),u={id:s,exec:p=>{const _=h.exec(p);if(_)return xt(_,w,a)},errors:[1,...f||[]].map(p=>e[p]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function Ge(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const x=globalThis.__sveltekit_wi9aep?.base??"",Ut=globalThis.__sveltekit_wi9aep?.assets??x??"",At="1771720203044",We="sveltekit:snapshot",Ye="sveltekit:scroll",ze="sveltekit:states",Tt="sveltekit:pageurl",B="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Le(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function D(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const qe={...j,"":j.hover};function He(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Je(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=He(e)}}function _e(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=V(s,"preload-code")),r===null&&(r=V(s,"preload-data")),t===null&&(t=V(s,"keepfocus")),n===null&&(n=V(s,"noscroll")),i===null&&(i=V(s,"reload")),o===null&&(o=V(s,"replacestate")),s=He(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:qe[a??"off"],preload_data:qe[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Ve(e){const t=ke(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const Xe={v:()=>{}};function It(){const{set:e,subscribe:t}=ke(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==At;return o&&(e(!0),Xe.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function on(e){}const Qe=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Qe];const Pt=new Set([...Qe]);[...Pt];function Ot(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof Re?e.status:500}function $t(e){return e instanceof Re?e.text:"Internal Error"}let k,Y,ge;const Ct=Ne.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ne.toString());Ct?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},ge={current:!1}):(k=new class{#e=U({});get data(){return A(this.#e)}set data(t){T(this.#e,t)}#t=U(null);get form(){return A(this.#t)}set form(t){T(this.#t,t)}#n=U(null);get error(){return A(this.#n)}set error(t){T(this.#n,t)}#a=U({});get params(){return A(this.#a)}set params(t){T(this.#a,t)}#r=U({id:null});get route(){return A(this.#r)}set route(t){T(this.#r,t)}#o=U({});get state(){return A(this.#o)}set state(t){T(this.#o,t)}#s=U(-1);get status(){return A(this.#s)}set status(t){T(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return A(this.#i)}set url(t){T(this.#i,t)}},Y=new class{#e=U(null);get current(){return A(this.#e)}set current(t){T(this.#e,t)}},ge=new class{#e=U(!1);get current(){return A(this.#e)}set current(t){T(this.#e,t)}},Xe.v=()=>ge.current=!0);function jt(e){Object.assign(k,e)}const Nt=new Set(["icon","shortcut icon","apple-touch-icon"]),C=Ge(Ye)??{},z=Ge(We)??{},$={url:Ve({}),page:Ve({}),navigating:ke(null),updated:It()};function Ae(e){C[e]=D()}function Dt(e,t){let n=e+1;for(;C[n];)delete C[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Be(){}let Te,we,ne,I,ve,y;const ae=[],re=[];let L=null;function ye(){L?.fork?.then(e=>e?.discard()),L=null}const Z=new Map,et=new Set,qt=new Set,G=new Set;let m={branch:[],error:null,url:null},tt=!1,oe=!1,Ke=!0,J=!1,F=!1,nt=!1,Ie=!1,at,v,R,N;const se=new Set,Fe=new Map;async function un(e,t,n){globalThis.__sveltekit_wi9aep?.data&&globalThis.__sveltekit_wi9aep.data,document.URL!==location.href&&(location.href=location.href),y=e,await e.hooks.init?.(),Te=Lt(e),I=document.documentElement,ve=t,we=e.nodes[0],ne=e.nodes[1],we(),ne(),v=history.state?.[B],R=history.state?.[W],v||(v=R=Date.now(),history.replaceState({...history.state,[B]:v,[W]:R},""));const a=C[v];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Qt(ve,n)):(await K({type:"enter",url:Le(y.hash?tn(new URL(location.href)):location.href),replace_state:!0}),r()),Xt()}function Vt(){ae.length=0,Ie=!1}function rt(e){re.some(t=>t?.snapshot)&&(z[e]=re.map(t=>t?.snapshot?.capture()))}function ot(e){z[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function Me(){Ae(v),De(Ye,C),rt(R),De(We,z)}async function st(e,t,n,a){let r;t.invalidateAll&&ye(),await K({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Ie=!0,r=[...Fe.keys()]),t.invalidate&&t.invalidate.forEach(Jt)}}),t.invalidateAll&&ee().then(ee).then(()=>{Fe.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Bt(e){if(e.id!==L?.id){ye();const t={};se.add(t),L={id:e.id,token:t,promise:ct({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null}}return L.promise}async function me(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function it(e,t,n){m=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),at=new y.root({target:t,props:{...e.props,stores:$,components:re},hydrate:n,sync:!1}),await Promise.resolve(),ot(R),n){const r={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href),scroll:C[v]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(x&&(e.pathname===x||e.pathname===x+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=pt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:Ot(n).map(u=>u.node.component),page:je(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,m.branch.length);u+=1){const p=n[u],_=m.branch[u];p?.data!==_?.data&&(f=!0),p&&(l={...l,...p.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!m.url||e.href!==m.url.href||m.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function Pe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function Kt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?bt(a,r.href,t):yt(a,t);return{resolved:r,promise:i}}function Ft(e,t,n,a,r,i){if(Ie)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==m.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Oe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Mt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Gt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:je(k),constructors:[]}}}async function ct({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(L?.id===e)return se.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));const f=m.url?e!==ce(m.url):!1,h=m.route?r.id!==m.route.id:!1,w=Mt(m.url,n);let u=!1;const p=l.map(async(g,d)=>{if(!g)return;const E=m.branch[d];return g[1]===E?.loader&&!Ft(u,h,f,w,E.universal?.uses,a)?E:(u=!0,Pe({loader:g[1],url:n,params:a,route:r,parent:async()=>{const P={};for(let O=0;O<d;O+=1)Object.assign(P,(await p[O])?.data);return P},server_data_node:Oe(g[0]?{type:"skip"}:null,g[0]?E?.server:void 0)}))});for(const g of p)g.catch(()=>{});const _=[];for(let g=0;g<l.length;g+=1)if(l[g])try{_.push(await p[g])}catch(d){if(d instanceof Se)return{type:"redirect",location:d.location};if(se.has(i))return Gt({error:await X(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Ee)S=d.body;else{if(await $.updated.check())return await Ze(),await H(n);S=await X(d,{params:a,url:n,route:{id:r.id}})}const P=await Wt(g,_,o);return P?ie({url:n,params:a,branch:_.slice(0,P.idx).concat(P.node),status:E,error:S,route:r}):await ut(n,{id:r.id},S,E)}else _.push(void 0);return ie({url:n,params:a,branch:_,status:200,error:null,route:r,form:t?void 0:null})}async function Wt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function $e({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Pe({loader:we,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Oe(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return st(new URL(o.location,location.href),{},0);throw o}}async function Yt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await y.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Kt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);y.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,y.hash)){const n=await Yt(e);if(!n)return;const a=zt(n);for(const r of Te){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:mt(i),url:e}}}}function zt(e){return gt(y.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(y.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function lt({url:e,type:t,intent:n,delta:a,event:r,scroll:i}){let o=!1;const s=Ce(m,n,e,t,i??null);a!==void 0&&(s.navigation.delta=a),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return J||et.forEach(l=>l(c)),o?null:s}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Be,block:f=Be,event:h}){const w=N;N=c;const u=await fe(t,!1),p=e==="enter"?Ce(m,u,t,e):lt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:h});if(!p){f(),N===c&&(N=w);return}const _=v,g=R;l(),J=!0,oe&&p.navigation.type!=="enter"&&$.navigating.set(Y.current=p.navigation);let d=u&&await ct(u);if(!d){if(ue(t,x,y.hash))return await H(t,i);d=await ut(t,{id:null},await X(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return p.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await K({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}d=await $e({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await $.updated.check()&&(await Ze(),await H(t,i));if(Vt(),Ae(_),rt(g),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,Q={[B]:v+=b,[W]:R+=b,[ze]:o};(i?history.replaceState:history.pushState).call(history,Q,"",t),i||Dt(v,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,d.props.page.state=o;let S;if(oe){const b=(await Promise.all(Array.from(qt,q=>q(p.navigation)))).filter(q=>typeof q=="function");if(b.length>0){let q=function(){b.forEach(de=>{G.delete(de)})};b.push(q),b.forEach(de=>{G.add(de)})}m=d.state,d.props.page&&(d.props.page.url=t);const Q=E&&await E;Q?S=Q.commit():(at.$set(d.props),jt(d.props.page),S=ht?.()),nt=!0}else await it(d,ve,!1);const{activeElement:P}=document;await S,await ee(),await ee();let O=null;if(Ke){const b=n?n.scroll:r?D():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(ft(t)))?O.scrollIntoView():scrollTo(0,0)}const dt=document.activeElement!==P&&document.activeElement!==document.body;!a&&!dt&&en(t,!O),Ke=!0,d.props.page&&Object.assign(k,d.props.page),J=!1,e==="popstate"&&ot(R),p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=D()),G.forEach(b=>b(p.navigation)),$.navigating.set(Y.current=null)}async function ut(e,t,n,a,r){return e.origin===le&&e.pathname===location.pathname&&!tt?await $e({status:a,error:n,url:e,route:t}):await H(e,r)}function Ht(){let e,t={element:void 0,href:void 0},n;I.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}I.addEventListener("mousedown",a),I.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(me(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=Je(s,I),f=l===t.element&&l?.href===t.href&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=_e(l,x,y.hash);if(w||u)return;const p=te(l),_=h&&ce(m.url)===ce(h);if(!(p.reload||_))if(c<=p.preload_data){t={element:l,href:l.href},n=j.tap;const g=await fe(h,!1);if(!g)return;Bt(g)}else c<=p.preload_code&&(t={element:l,href:l.href},n=c,me(h))}function o(){r.disconnect();for(const s of I.querySelectorAll("a")){const{url:c,external:l,download:f}=_e(s,x,y.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&r.observe(s),h.preload_code===j.eager&&me(c))}}G.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),a=$t(e);return y.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function fn(e,t={}){return e=new URL(Le(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):st(e,t,0)}function Jt(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function Xt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Me(),!J){const a=Ce(m,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};et.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Me()}),navigator.connection?.saveData||Ht(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Je(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:i,download:o}=_e(n,x,y.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(y.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===he(location);if(r||s.reload&&(!h||!f)){lt({url:a,type:"link",event:t})?J=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=m.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,Ae(v),e(a),!s.replace_state)return;F=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,x,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),K({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[B]){const n=t.state[B];if(N={},n===v)return;const a=C[n],r=t.state[ze]??{},i=new URL(t.state[Tt]??location.href),o=t.state[W],s=m.url?he(location)===he(m.url):!1;if(o===R&&(nt||s)){r!==k.state&&(k.state=r),e(i),C[v]=D(),a&&scrollTo(a.x,a.y),v=n;return}const l=n-v;await K({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{v=n,R=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!F){const n=new URL(location.href);e(n),y.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[B]:++v,[W]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Nt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(Y.current=null)});function e(t){m.url=k.url=t,$.page.set(je(k)),$.page.notify()}}async function Qt(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){tt=!0;const l=new URL(location.href);let f;({params:r={},route:i={id:null}}=await fe(l,!1)||{}),f=Te.find(({id:u})=>u===i.id);let h,w=!0;try{const u=a.map(async(_,g)=>{const d=s[g];return d?.uses&&(d.uses=Zt(d.uses)),Pe({loader:y.nodes[_],url:l,params:r,route:i,parent:async()=>{const E={};for(let S=0;S<g;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Oe(d)})}),p=await Promise.all(u);if(f){const _=f.layouts;for(let g=0;g<_.length;g++)_[g]||p.splice(g,0,void 0)}h=ie({url:l,params:r,branch:p,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Se){await H(new URL(u.location,location.href));return}h=await $e({status:Ue(u),error:await X(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",w=!1}h.props.page&&(h.props.page.state={}),await it(h,e,w)}function Zt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let be=!1;function en(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=ft(e);if(a&&document.getElementById(a)){const{x:i,y:o}=D();setTimeout(()=>{const s=history.state;be=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,o),be=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function Ce(e,t,n,a,r=null){let i,o;const s=new Promise((l,f)=>{i=l,o=f});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:r},willUnload:!t,type:a,complete:s},fulfil:i,reject:o}}function je(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function tn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function ft(e){let t;if(y.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{un as a,fn as g,on as l,k as p,$ as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{B as G,i as y,_ as a}from"../chunks/DpBBTLWw.js";import{x,ak as Z,H as q,Y as z,al as J,ao as K,N as Q,M as k,am as U,O as W,d as O,a5 as X,g as u,ap as $,Z as tt,_ as et,p as rt,R as at,u as st,F as ot,j as R,f as it,c as nt,s as T,h as _t,r as mt,t as ut,i as A}from"../chunks/qR_TM3YX.js";import{h as ct,m as dt,u as lt,b as h,e as b,f as w,t as ft,s as vt}from"../chunks/B2A7gHtL.js";import{o as ht}from"../chunks/B-drBnSa.js";import{b as D}from"../chunks/BYXRTvT-.js";import{p as I}from"../chunks/CkAYskLX.js";function L(o,t,s){var n;x&&(n=W,Z());var i=new G(o);q(()=>{var e=t()??null;if(x){var r=J(n),m=r===U,P=e!==null;if(m!==P){var E=K();Q(E),i.anchor=E,k(!1),i.ensure(e,e&&(f=>s(f,e))),k(!0);return}}i.ensure(e,e&&(f=>s(f,e)))},z)}function Et(o){return class extends gt{constructor(t){super({component:o,...t})}}}class gt{#e;#t;constructor(t){var s=new Map,n=(e,r)=>{var m=et(r,!1,!1);return s.set(e,m),m};const i=new Proxy({...t.props||{},$$events:{}},{get(e,r){return u(s.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===X?!0:(u(s.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,m){return O(s.get(r)??n(r,m),m),Reflect.set(e,r,m)}});this.#t=(t.hydrate?ct:dt)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&$(),this.#e=i.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||tt(this,e,{get(){return this.#t[e]},set(r){this.#t[e]=r},enumerable:!0});this.#t.$set=e=>{Object.assign(i,e)},this.#t.$destroy=()=>{lt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const n=(...i)=>s.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}const Vt={};var pt=w('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Rt=w("<!> <!>",1);function Ot(o,t){rt(t,!0);let s=I(t,"components",23,()=>[]),n=I(t,"data_0",3,null),i=I(t,"data_1",3,null);at(()=>t.stores.page.set(t.page)),st(()=>{t.stores,t.page,t.constructors,s(),t.form,n(),i(),t.stores.page.notify()});let e=T(!1),r=T(!1),m=T(null);ht(()=>{const _=t.stores.page.subscribe(()=>{u(e)&&(O(r,!0),ot().then(()=>{O(m,document.title||"untitled page",!0)}))});return O(e,!0),_});const P=A(()=>t.constructors[1]);var E=Rt(),f=R(E);{var C=_=>{const c=A(()=>t.constructors[0]);var d=b(),g=R(d);L(g,()=>u(c),(l,v)=>{D(v(l,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(p,yt)=>{var V=b(),F=R(V);L(F,()=>u(P),(Y,B)=>{D(B(Y,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),H=>s()[1]=H,()=>s()?.[1])}),h(p,V)},$$slots:{default:!0}}),p=>s()[0]=p,()=>s()?.[0])}),h(_,d)},S=_=>{const c=A(()=>t.constructors[0]);var d=b(),g=R(d);L(g,()=>u(c),(l,v)=>{D(v(l,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),p=>s()[0]=p,()=>s()?.[0])}),h(_,d)};y(f,_=>{t.constructors[1]?_(C):_(S,!1)})}var M=it(f,2);{var N=_=>{var c=pt(),d=_t(c);{var g=l=>{var v=ft();ut(()=>vt(v,u(m))),h(l,v)};y(d,l=>{u(r)&&l(g)})}mt(c),h(_,c)};y(M,_=>{u(e)&&_(N)})}h(o,E),nt()}const xt=Et(Ot),kt=[()=>a(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C_eDaxcG.js","../chunks/B2A7gHtL.js","../chunks/qR_TM3YX.js","../chunks/Tfaq1PK1.js","../chunks/DpBBTLWw.js","../chunks/BLtDog0v.js","../chunks/Be_uRYmX.js","../chunks/C--qzJ6W.js","../chunks/CktI4lAE.js","../chunks/KBP0Pl-D.js","../chunks/nnazh41B.js","../chunks/BYXRTvT-.js","../chunks/CkAYskLX.js","../chunks/B3DkuU-J.js","../chunks/C1foZlYx.js","../chunks/B-drBnSa.js","../assets/0.CIIOt0aD.css","../nodes/1.Bl8gqrPg.js","../nodes/2.BTwPpsUd.js","../chunks/BBXALFLP.js","../chunks/CXQ1lKJR.js","../chunks/TuMlQKbB.js","../chunks/SHB02qEx.js","../chunks/DPrxUVm_.js","../assets/2.D5MMRphb.css","../nodes/3.CJTqvGaW.js","../chunks/DVP7Iy08.js","../nodes/4.Dz3JH-PB.js","../assets/4.Cst5sby_.css","../nodes/5.BbK5Iwro.js","../nodes/6.CbanPjIA.js","../nodes/7.B2G6IFSu.js","../nodes/8.C7FQ9bAP.js","../nodes/9.D4Abr5tX.js","../nodes/10.DfK8stgG.js","../nodes/11.Dzw5x9Jt.js","../nodes/12.Sd6L6Nq2.js","../nodes/13.tVVXkjFh.js","../nodes/14.D93_LX58.js","../nodes/15.DprKPzQ3.js","../nodes/16.CIr4ejir.js","../nodes/17.QX2ielYQ.js","../nodes/18.6qOW3iFE.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{B as G,i as y,_ as a}from"../chunks/DpBBTLWw.js";import{x,ak as Z,H as q,Y as z,al as J,ao as K,N as Q,M as k,am as U,O as W,d as O,a5 as X,g as u,ap as $,Z as tt,_ as et,p as rt,R as at,u as st,F as ot,j as R,f as it,c as nt,s as T,h as _t,r as mt,t as ut,i as A}from"../chunks/qR_TM3YX.js";import{h as ct,m as dt,u as lt,b as h,e as b,f as w,t as ft,s as vt}from"../chunks/B2A7gHtL.js";import{o as ht}from"../chunks/B-drBnSa.js";import{b as D}from"../chunks/BYXRTvT-.js";import{p as I}from"../chunks/CkAYskLX.js";function L(o,t,s){var n;x&&(n=W,Z());var i=new G(o);q(()=>{var e=t()??null;if(x){var r=J(n),m=r===U,P=e!==null;if(m!==P){var E=K();Q(E),i.anchor=E,k(!1),i.ensure(e,e&&(f=>s(f,e))),k(!0);return}}i.ensure(e,e&&(f=>s(f,e)))},z)}function Et(o){return class extends gt{constructor(t){super({component:o,...t})}}}class gt{#e;#t;constructor(t){var s=new Map,n=(e,r)=>{var m=et(r,!1,!1);return s.set(e,m),m};const i=new Proxy({...t.props||{},$$events:{}},{get(e,r){return u(s.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===X?!0:(u(s.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,m){return O(s.get(r)??n(r,m),m),Reflect.set(e,r,m)}});this.#t=(t.hydrate?ct:dt)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&$(),this.#e=i.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||tt(this,e,{get(){return this.#t[e]},set(r){this.#t[e]=r},enumerable:!0});this.#t.$set=e=>{Object.assign(i,e)},this.#t.$destroy=()=>{lt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const n=(...i)=>s.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#t.$destroy()}}const Vt={};var pt=w('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Rt=w("<!> <!>",1);function Ot(o,t){rt(t,!0);let s=I(t,"components",23,()=>[]),n=I(t,"data_0",3,null),i=I(t,"data_1",3,null);at(()=>t.stores.page.set(t.page)),st(()=>{t.stores,t.page,t.constructors,s(),t.form,n(),i(),t.stores.page.notify()});let e=T(!1),r=T(!1),m=T(null);ht(()=>{const _=t.stores.page.subscribe(()=>{u(e)&&(O(r,!0),ot().then(()=>{O(m,document.title||"untitled page",!0)}))});return O(e,!0),_});const P=A(()=>t.constructors[1]);var E=Rt(),f=R(E);{var C=_=>{const c=A(()=>t.constructors[0]);var d=b(),g=R(d);L(g,()=>u(c),(l,v)=>{D(v(l,{get data(){return n()},get form(){return t.form},get params(){return t.page.params},children:(p,yt)=>{var V=b(),F=R(V);L(F,()=>u(P),(Y,B)=>{D(B(Y,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),H=>s()[1]=H,()=>s()?.[1])}),h(p,V)},$$slots:{default:!0}}),p=>s()[0]=p,()=>s()?.[0])}),h(_,d)},S=_=>{const c=A(()=>t.constructors[0]);var d=b(),g=R(d);L(g,()=>u(c),(l,v)=>{D(v(l,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),p=>s()[0]=p,()=>s()?.[0])}),h(_,d)};y(f,_=>{t.constructors[1]?_(C):_(S,!1)})}var M=it(f,2);{var N=_=>{var c=pt(),d=_t(c);{var g=l=>{var v=ft();ut(()=>vt(v,u(m))),h(l,v)};y(d,l=>{u(r)&&l(g)})}mt(c),h(_,c)};y(M,_=>{u(e)&&_(N)})}h(o,E),nt()}const xt=Et(Ot),kt=[()=>a(()=>import("../nodes/0.C_eDaxcG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>a(()=>import("../nodes/1.Bl8gqrPg.js"),__vite__mapDeps([17,1,2,9,14,13,15]),import.meta.url),()=>a(()=>import("../nodes/2.BTwPpsUd.js"),__vite__mapDeps([18,19,1,2,4,5,20,10,12,13,7,6,3,21,11,22,23,24]),import.meta.url),()=>a(()=>import("../nodes/3.CJTqvGaW.js"),__vite__mapDeps([25,1,2,4,5,20,10,26,6,23]),import.meta.url),()=>a(()=>import("../nodes/4.Dz3JH-PB.js"),__vite__mapDeps([27,1,2,4,5,20,22,10,26,6,28]),import.meta.url),()=>a(()=>import("../nodes/5.BbK5Iwro.js"),__vite__mapDeps([29,1,2,4,5,20,10,26,6]),import.meta.url),()=>a(()=>import("../nodes/6.CbanPjIA.js"),__vite__mapDeps([30,1,2,4,5,20,6,23]),import.meta.url),()=>a(()=>import("../nodes/7.B2G6IFSu.js"),__vite__mapDeps([31,1,2,4,5,20,10,26,6]),import.meta.url),()=>a(()=>import("../nodes/8.C7FQ9bAP.js"),__vite__mapDeps([32,1,2,4,5,20,10,26,6]),import.meta.url),()=>a(()=>import("../nodes/9.D4Abr5tX.js"),__vite__mapDeps([33,1,2,4,5,20,10]),import.meta.url),()=>a(()=>import("../nodes/10.DfK8stgG.js"),__vite__mapDeps([34,1,2,4,5,20,22,6]),import.meta.url),()=>a(()=>import("../nodes/11.Dzw5x9Jt.js"),__vite__mapDeps([35,1,2,4,5,20,10,11]),import.meta.url),()=>a(()=>import("../nodes/12.Sd6L6Nq2.js"),__vite__mapDeps([36,1,2,4,5,20,10,26,6,23]),import.meta.url),()=>a(()=>import("../nodes/13.tVVXkjFh.js"),__vite__mapDeps([37,1,2,4,5,20,10,6,23]),import.meta.url),()=>a(()=>import("../nodes/14.D93_LX58.js"),__vite__mapDeps([38,1,2,4,5,20,7,6]),import.meta.url),()=>a(()=>import("../nodes/15.DprKPzQ3.js"),__vite__mapDeps([39,1,2,4,5,20,22,10,26,7,6,14,13,15]),import.meta.url),()=>a(()=>import("../nodes/16.CIr4ejir.js"),__vite__mapDeps([40,1,2,4,5,20,22,10,11,8,21,6]),import.meta.url),()=>a(()=>import("../nodes/17.QX2ielYQ.js"),__vite__mapDeps([41,1,2,4,5,20,10,26,6]),import.meta.url),()=>a(()=>import("../nodes/18.6qOW3iFE.js"),__vite__mapDeps([42,1,2,4,5,20,22,10,26,6]),import.meta.url)],wt=[],jt={"/":[2],"/agents":[3],"/approvals":[4],"/audit":[5],"/channels":[6],"/config":[7],"/cron":[8],"/debug":[9],"/instances":[10],"/logs":[11],"/memory":[12],"/nodes":[13],"/overview":[14],"/sessions":[15],"/settings":[16],"/skills":[17],"/usage":[18]},j={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},Pt=Object.fromEntries(Object.entries(j.transport).map(([o,t])=>[o,t.decode])),Ct=Object.fromEntries(Object.entries(j.transport).map(([o,t])=>[o,t.encode])),St=!1,Mt=(o,t)=>Pt[o](t);export{Mt as decode,Pt as decoders,jt as dictionary,Ct as encoders,St as hash,j as hooks,Vt as matchers,kt as nodes,xt as root,wt as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/C1foZlYx.js";export{o as load_css,r as start};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as fe,b as l,f,s as Q,a as j,e as Se,g as ke,t as he}from"../chunks/B2A7gHtL.js";import{p as de,c as ve,r as t,h as a,f as r,g as e,t as I,a6 as Ee,s as K,a as He,u as re,b as me,j as oe,d as o,n as ye,i as Oe,bd as Te}from"../chunks/qR_TM3YX.js";import{s as Be,g as Ue}from"../chunks/Tfaq1PK1.js";import{i as R}from"../chunks/DpBBTLWw.js";import{e as ce,s as ie,b as ge,g as Ce,r as we,i as pe,l as Ae,a as je}from"../chunks/BLtDog0v.js";import{g as De}from"../chunks/C--qzJ6W.js";import{g as Me}from"../chunks/Be_uRYmX.js";import{g as Ve,a as Ie}from"../chunks/CktI4lAE.js";import{i as Ke}from"../chunks/KBP0Pl-D.js";import{b as _e}from"../chunks/nnazh41B.js";import{b as Re}from"../chunks/BYXRTvT-.js";import{p as be,s as Pe,a as qe}from"../chunks/CkAYskLX.js";import{s as Ne,g as Le}from"../chunks/
|
|
1
|
+
import{d as fe,b as l,f,s as Q,a as j,e as Se,g as ke,t as he}from"../chunks/B2A7gHtL.js";import{p as de,c as ve,r as t,h as a,f as r,g as e,t as I,a6 as Ee,s as K,a as He,u as re,b as me,j as oe,d as o,n as ye,i as Oe,bd as Te}from"../chunks/qR_TM3YX.js";import{s as Be,g as Ue}from"../chunks/Tfaq1PK1.js";import{i as R}from"../chunks/DpBBTLWw.js";import{e as ce,s as ie,b as ge,g as Ce,r as we,i as pe,l as Ae,a as je}from"../chunks/BLtDog0v.js";import{g as De}from"../chunks/C--qzJ6W.js";import{g as Me}from"../chunks/Be_uRYmX.js";import{g as Ve,a as Ie}from"../chunks/CktI4lAE.js";import{i as Ke}from"../chunks/KBP0Pl-D.js";import{b as _e}from"../chunks/nnazh41B.js";import{b as Re}from"../chunks/BYXRTvT-.js";import{p as be,s as Pe,a as qe}from"../chunks/CkAYskLX.js";import{s as Ne,g as Le}from"../chunks/C1foZlYx.js";const We=!1,Ge=!1,Jt=Object.freeze(Object.defineProperty({__proto__:null,prerender:We,ssr:Ge},Symbol.toStringTag,{value:"Module"}));var Ye=f('<p class="text-xs text-text-secondary mt-1"> </p>'),$e=f('<div role="alert"><div class="flex items-start gap-3"><div class="flex-shrink-0 w-5 h-5 mt-0.5"><svg class="w-full h-full" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg></div> <div class="flex-1 min-w-0"><p class="text-sm font-medium text-text-primary"> </p> <!></div> <button class="flex-shrink-0 ml-auto p-1 rounded hover:bg-bg-hover text-text-muted hover:text-text-primary transition-colors" aria-label="Close notification"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div></div>'),Fe=f('<div class="fixed bottom-4 right-4 z-50 space-y-2 max-w-sm" aria-live="polite" aria-relevant="additions removals"></div>');function Xe(P,H){de(H,!1);const m=Me(),q={success:{color:"bg-accent-green border-accent-green",glow:"glow-green",icon:"M5 13l4 4L19 7"},error:{color:"bg-accent-red border-accent-red",glow:"glow-red",icon:"M6 18L18 6M6 6l12 12"},warning:{color:"bg-accent-amber border-accent-amber",glow:"glow-amber",icon:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"},info:{color:"bg-accent-cyan border-accent-cyan",glow:"glow-cyan",icon:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}};Ke();var y=Fe();ce(y,5,()=>m.list,v=>v.id,(v,n)=>{const p=Ee(()=>q[e(n).type]);var x=$e(),S=a(x),k=a(S),C=a(k),O=a(C);t(C),t(k);var D=r(k,2),T=a(D),Z=a(T,!0);t(T);var N=r(T,2);{var Y=g=>{var s=Ye(),u=a(s,!0);t(s),I(()=>Q(u,e(n).message)),l(g,s)};R(N,g=>{e(n).message&&g(Y)})}t(D);var ee=r(D,2);t(S),t(x),I(()=>{ie(x,1,`gradient-border glass p-4 rounded-lg shadow-lg ${e(p).color??""} ${e(p).glow??""} animate-in slide-in-from-right-full duration-300`,"svelte-cqwvc2"),ge(O,"d",e(p).icon),Q(Z,e(n).title)}),j("click",ee,()=>m.remove(e(n).id)),l(v,x)}),t(y),l(P,y),ve()}fe(["click"]);var Je=f(`<div><label for="gateway-token" class="block text-sm font-medium text-text-secondary mb-2">Access Token <span class="text-text-muted font-normal">(optional)</span></label> <input id="gateway-token" type="password" placeholder="Leave empty to use device pairing" class="w-full px-3 py-2 rounded-lg glass border border-border-default bg-bg-secondary
|
|
2
2
|
text-text-primary placeholder-text-muted
|
|
3
3
|
focus:outline-none focus:border-accent-cyan focus:glow-cyan
|
|
4
4
|
transition-all duration-200"/> <p class="text-xs text-text-muted mt-1">If provided, connects immediately. If empty, your gateway owner will need to approve this device.</p></div>`),Qe=f('<button type="button" class="text-xs text-text-muted hover:text-accent-cyan transition-colors flex items-center gap-1"><svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg> I have an access token</button>'),Ze=f('<div class="p-3 rounded-lg border border-accent-amber/30 bg-accent-amber/10" role="status"><div class="flex items-start gap-2"><svg class="w-5 h-5 text-accent-amber flex-shrink-0 animate-pulse mt-0.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <div><p class="text-sm font-medium text-accent-amber">Device Pairing Required</p> <p class="text-xs text-text-muted mt-1">Your gateway owner needs to approve this device. Ask them to run:</p> <code class="block text-xs font-mono text-accent-cyan bg-bg-primary/50 px-2 py-1 rounded mt-1">openclaw devices approve</code></div></div></div>'),et=f('<div class="p-3 rounded-lg border border-accent-red/30 bg-accent-red/10 glow-red" role="alert" aria-live="assertive"><div class="flex items-center gap-2"><svg class="w-4 h-4 text-accent-red flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"></path></svg> <p class="text-sm text-accent-red"> </p></div></div>'),tt=f('<div class="flex items-center justify-center gap-2"><svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> Connecting...</div>'),at=f(`<div class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm" role="dialog" aria-modal="true" aria-labelledby="auth-dialog-title"><div class="w-full max-w-md gradient-border glass p-6 rounded-lg glow-cyan animate-in zoom-in-95 duration-300 svelte-htsx5a"><div class="flex items-center gap-3 mb-6"><div class="w-12 h-12 rounded-lg gradient-bg flex items-center justify-center glow-purple"><svg class="w-6 h-6 text-accent-purple" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg></div> <div><h2 id="auth-dialog-title" class="text-lg font-semibold gradient-text">Connect to OpenClaw</h2> <p class="text-sm text-text-muted">Enter your gateway credentials to get started</p></div></div> <form class="space-y-4"><div><label for="gateway-url" class="block text-sm font-medium text-text-secondary mb-2">Gateway URL</label> <input id="gateway-url" type="url" placeholder="wss://your-openclaw-gateway.com" class="w-full px-3 py-2 rounded-lg glass border border-border-default bg-bg-secondary
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as h,f as u,s as e}from"../chunks/B2A7gHtL.js";import{i as g}from"../chunks/KBP0Pl-D.js";import{p as l,j as v,t as d,c as _,h as a,r as o,f as x}from"../chunks/qR_TM3YX.js";import{s as $,p}from"../chunks/
|
|
1
|
+
import{b as h,f as u,s as e}from"../chunks/B2A7gHtL.js";import{i as g}from"../chunks/KBP0Pl-D.js";import{p as l,j as v,t as d,c as _,h as a,r as o,f as x}from"../chunks/qR_TM3YX.js";import{s as $,p}from"../chunks/C1foZlYx.js";const b={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=b;var k=u("<h1> </h1> <p> </p>",1);function y(f,i){l(i,!1),g();var t=k(),r=v(t),c=a(r,!0);o(r);var s=x(r,2),n=a(s,!0);o(s),d(()=>{e(c,m.status),e(n,m.error?.message)}),h(f,t),_()}export{y as component};
|