next 14.1.2 → 14.1.3
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/bin/next +1 -1
- package/dist/build/index.js +1 -1
- package/dist/build/swc/index.js +1 -1
- package/dist/build/webpack-config.js +3 -3
- package/dist/build/webpack-config.js.map +1 -1
- package/dist/client/app-bootstrap.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/compiled/@edge-runtime/cookies/index.d.ts +13 -8
- package/dist/compiled/@edge-runtime/cookies/index.js +4 -1
- package/dist/compiled/@edge-runtime/cookies/package.json +1 -1
- package/dist/compiled/@edge-runtime/ponyfill/index.js +1 -0
- package/dist/compiled/@edge-runtime/ponyfill/package.json +1 -1
- package/dist/compiled/@edge-runtime/primitives/abort-controller.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/blob.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/console.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/events.d.ts +0 -1
- package/dist/compiled/@edge-runtime/primitives/events.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/fetch.d.ts +1 -1
- package/dist/compiled/@edge-runtime/primitives/fetch.js.text.js +1 -1
- package/dist/compiled/@edge-runtime/primitives/index.d.ts +11 -3
- package/dist/compiled/@edge-runtime/primitives/load.d.ts +1 -1
- package/dist/compiled/@edge-runtime/primitives/load.js +3 -8
- package/dist/compiled/@edge-runtime/primitives/package.json +1 -1
- package/dist/compiled/@edge-runtime/primitives/timers.d.ts +2 -2
- package/dist/compiled/@edge-runtime/primitives/url.js.text.js +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-page-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-page-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-page-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-page.runtime.dev.js +1 -1
- package/dist/compiled/next-server/app-page.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-page.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-page.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.dev.js +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route-turbo-experimental.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route-turbo-experimental.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/app-route.runtime.dev.js +1 -1
- package/dist/compiled/next-server/app-route.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/app-route.runtime.prod.js +1 -1
- package/dist/compiled/next-server/app-route.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js +5 -5
- package/dist/compiled/next-server/pages-api-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/pages-api.runtime.dev.js +6 -6
- package/dist/compiled/next-server/pages-api.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages-api.runtime.prod.js +5 -5
- package/dist/compiled/next-server/pages-api.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages-turbo.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/pages.runtime.dev.js +1 -1
- package/dist/compiled/next-server/pages.runtime.dev.js.map +1 -1
- package/dist/compiled/next-server/pages.runtime.prod.js +1 -1
- package/dist/compiled/next-server/pages.runtime.prod.js.map +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js +1 -1
- package/dist/compiled/next-server/server.runtime.prod.js.map +1 -1
- package/dist/esm/build/index.js +1 -1
- package/dist/esm/build/swc/index.js +1 -1
- package/dist/esm/build/webpack-config.js +3 -3
- package/dist/esm/build/webpack-config.js.map +1 -1
- package/dist/esm/client/app-bootstrap.js +1 -1
- package/dist/esm/client/index.js +1 -1
- package/dist/esm/server/base-server.js +0 -19
- package/dist/esm/server/base-server.js.map +1 -1
- package/dist/esm/server/config.js +1 -1
- package/dist/esm/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/esm/server/lib/app-info-log.js +1 -1
- package/dist/esm/server/lib/router-server.js +38 -0
- package/dist/esm/server/lib/router-server.js.map +1 -1
- package/dist/esm/server/web/sandbox/context.js +1 -0
- package/dist/esm/server/web/sandbox/context.js.map +1 -1
- package/dist/server/base-server.js +0 -19
- package/dist/server/base-server.js.map +1 -1
- package/dist/server/config.js +1 -1
- package/dist/server/dev/hot-reloader-webpack.js +1 -1
- package/dist/server/lib/app-info-log.js +1 -1
- package/dist/server/lib/router-server.js +38 -0
- package/dist/server/lib/router-server.js.map +1 -1
- package/dist/server/web/sandbox/context.js +1 -0
- package/dist/server/web/sandbox/context.js.map +1 -1
- package/dist/telemetry/anonymous-meta.js +1 -1
- package/dist/telemetry/events/session-stopped.js +2 -2
- package/dist/telemetry/events/version.js +2 -2
- package/package.json +19 -19
- package/dist/compiled/@edge-runtime/primitives/encoding.d.ts +0 -8
- package/dist/compiled/@edge-runtime/primitives/encoding.js.LEGAL.txt +0 -0
- package/dist/compiled/@edge-runtime/primitives/encoding.js.text.js +0 -1
|
@@ -2,13 +2,19 @@ export { AbortController, AbortSignal, DOMException } from './abort-controller.d
|
|
|
2
2
|
export { Blob } from './blob.d.js';
|
|
3
3
|
export { console } from './console.d.js';
|
|
4
4
|
export { Crypto, CryptoKey, SubtleCrypto, crypto } from './crypto.d.js';
|
|
5
|
-
export { TextDecoder, TextEncoder, atob, btoa } from './encoding.d.js';
|
|
6
5
|
export { Event, EventTarget, FetchEvent, PromiseRejectionEvent } from './events.d.js';
|
|
7
6
|
export { File, FormData, Headers, Request, RequestInfo, RequestInit, Response, WebSocket, fetch } from './fetch.d.js';
|
|
8
7
|
export { structuredClone } from './structured-clone.d.js';
|
|
9
8
|
export { URL, URLPattern, URLSearchParams } from './url.d.js';
|
|
10
9
|
export { setInterval, setTimeout } from './timers.d.js';
|
|
11
10
|
|
|
11
|
+
declare const TextEncoderConstructor: typeof TextEncoder
|
|
12
|
+
declare const TextDecoderConstructor: typeof TextDecoder
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
declare const _atob: typeof atob
|
|
16
|
+
declare const _btoa: typeof btoa
|
|
17
|
+
|
|
12
18
|
/**
|
|
13
19
|
* The type of `ReadableStreamBYOBReader` is not included in Typescript so we
|
|
14
20
|
* are declaring it inline to not have to worry about bundling.
|
|
@@ -18,7 +24,7 @@ declare class ReadableStreamBYOBReader {
|
|
|
18
24
|
get closed(): Promise<undefined>
|
|
19
25
|
cancel(reason?: any): Promise<void>
|
|
20
26
|
read<T extends ArrayBufferView>(
|
|
21
|
-
view: T
|
|
27
|
+
view: T,
|
|
22
28
|
): Promise<{ done: false; value: T } | { done: true; value: T | undefined }>
|
|
23
29
|
releaseLock(): void
|
|
24
30
|
}
|
|
@@ -33,4 +39,6 @@ declare const WritableStreamDefaultWriterConstructor: typeof WritableStreamDefau
|
|
|
33
39
|
declare const TextDecoderStreamConstructor: typeof TextDecoderStream
|
|
34
40
|
declare const TextEncoderStreamConstructor: typeof TextEncoderStream
|
|
35
41
|
|
|
36
|
-
|
|
42
|
+
declare const performanceConstructor: typeof performance
|
|
43
|
+
|
|
44
|
+
export { ReadableStreamConstructor as ReadableStream, ReadableStreamBYOBReaderConstructor as ReadableStreamBYOBReader, ReadableStreamDefaultReaderConstructor as ReadableStreamDefaultReader, TextDecoderConstructor as TextDecoder, TextDecoderStreamConstructor as TextDecoderStream, TextEncoderConstructor as TextEncoder, TextEncoderStreamConstructor as TextEncoderStream, TransformStreamConstructor as TransformStream, WritableStreamConstructor as WritableStream, WritableStreamDefaultWriterConstructor as WritableStreamDefaultWriter, _atob as atob, _btoa as btoa, performanceConstructor as performance };
|
|
@@ -74,19 +74,14 @@ function requireWithFakeGlobalScope(params) {
|
|
|
74
74
|
__name(requireWithFakeGlobalScope, "requireWithFakeGlobalScope");
|
|
75
75
|
function load(scopedContext = {}) {
|
|
76
76
|
const context = {};
|
|
77
|
-
const encodingImpl = requireWithFakeGlobalScope({
|
|
78
|
-
context,
|
|
79
|
-
id: "encoding.js",
|
|
80
|
-
sourceCode: require("./encoding.js.text.js"),
|
|
81
|
-
scopedContext
|
|
82
|
-
});
|
|
83
77
|
assign(context, {
|
|
84
78
|
TextDecoder,
|
|
85
79
|
TextEncoder,
|
|
86
80
|
TextEncoderStream: import_web.TextEncoderStream,
|
|
87
81
|
TextDecoderStream: import_web.TextDecoderStream,
|
|
88
|
-
atob
|
|
89
|
-
btoa
|
|
82
|
+
atob,
|
|
83
|
+
btoa,
|
|
84
|
+
performance
|
|
90
85
|
});
|
|
91
86
|
const consoleImpl = requireWithFakeGlobalScope({
|
|
92
87
|
context,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@edge-runtime/primitives","version":"4.0
|
|
1
|
+
{"name":"@edge-runtime/primitives","version":"4.1.0","main":"./index.js","license":"MPL-2.0"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _setTimeout:
|
|
2
|
-
declare const _setInterval:
|
|
1
|
+
declare const _setTimeout: (callback: () => void, ms?: number) => number
|
|
2
|
+
declare const _setInterval: (callback: () => void, ms?: number) => number
|
|
3
3
|
|
|
4
4
|
export { _setInterval as setInterval, _setTimeout as setTimeout };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __accessCheck = (obj, member, msg) => {\n if (!member.has(obj))\n throw TypeError(\"Cannot \" + msg);\n};\nvar __privateGet = (obj, member, getter) => {\n __accessCheck(obj, member, \"read from private field\");\n return getter ? getter.call(obj) : member.get(obj);\n};\nvar __privateAdd = (obj, member, value) => {\n if (member.has(obj))\n throw TypeError(\"Cannot add the same private member more than once\");\n member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\n};\nvar __privateSet = (obj, member, value, setter) => {\n __accessCheck(obj, member, \"write to private field\");\n setter ? setter.call(obj, value) : member.set(obj, value);\n return value;\n};\nvar __privateMethod = (obj, member, method) => {\n __accessCheck(obj, member, \"access private method\");\n return method;\n};\n\n// src/primitives/url.js\nvar url_exports = {};\n__export(url_exports, {\n URLPattern: () => me\n});\nmodule.exports = __toCommonJS(url_exports);\n\n// ../../node_modules/.pnpm/urlpattern-polyfill@9.0.0/node_modules/urlpattern-polyfill/dist/urlpattern.js\nvar _a;\nvar k = (_a = class {\n type = 3;\n name = \"\";\n prefix = \"\";\n value = \"\";\n suffix = \"\";\n modifier = 3;\n constructor(t, r, n, o, c, l) {\n this.type = t, this.name = r, this.prefix = n, this.value = o, this.suffix = c, this.modifier = l;\n }\n hasCustomName() {\n return this.name !== \"\" && typeof this.name != \"number\";\n }\n}, __name(_a, \"k\"), _a);\nvar Pe = /[$_\\p{ID_Start}]/u;\nvar Se = /[$_\\u200C\\u200D\\p{ID_Continue}]/u;\nvar M = \".*\";\nfunction ke(e, t) {\n return (t ? /^[\\x00-\\xFF]*$/ : /^[\\x00-\\x7F]*$/).test(e);\n}\n__name(ke, \"ke\");\nfunction v(e, t = false) {\n let r = [], n = 0;\n for (; n < e.length; ) {\n let o = e[n], c = /* @__PURE__ */ __name(function(l) {\n if (!t)\n throw new TypeError(l);\n r.push({ type: \"INVALID_CHAR\", index: n, value: e[n++] });\n }, \"c\");\n if (o === \"*\") {\n r.push({ type: \"ASTERISK\", index: n, value: e[n++] });\n continue;\n }\n if (o === \"+\" || o === \"?\") {\n r.push({ type: \"OTHER_MODIFIER\", index: n, value: e[n++] });\n continue;\n }\n if (o === \"\\\\\") {\n r.push({ type: \"ESCAPED_CHAR\", index: n++, value: e[n++] });\n continue;\n }\n if (o === \"{\") {\n r.push({ type: \"OPEN\", index: n, value: e[n++] });\n continue;\n }\n if (o === \"}\") {\n r.push({ type: \"CLOSE\", index: n, value: e[n++] });\n continue;\n }\n if (o === \":\") {\n let l = \"\", s = n + 1;\n for (; s < e.length; ) {\n let i = e.substr(s, 1);\n if (s === n + 1 && Pe.test(i) || s !== n + 1 && Se.test(i)) {\n l += e[s++];\n continue;\n }\n break;\n }\n if (!l) {\n c(`Missing parameter name at ${n}`);\n continue;\n }\n r.push({ type: \"NAME\", index: n, value: l }), n = s;\n continue;\n }\n if (o === \"(\") {\n let l = 1, s = \"\", i = n + 1, a = false;\n if (e[i] === \"?\") {\n c(`Pattern cannot start with \"?\" at ${i}`);\n continue;\n }\n for (; i < e.length; ) {\n if (!ke(e[i], false)) {\n c(`Invalid character '${e[i]}' at ${i}.`), a = true;\n break;\n }\n if (e[i] === \"\\\\\") {\n s += e[i++] + e[i++];\n continue;\n }\n if (e[i] === \")\") {\n if (l--, l === 0) {\n i++;\n break;\n }\n } else if (e[i] === \"(\" && (l++, e[i + 1] !== \"?\")) {\n c(`Capturing groups are not allowed at ${i}`), a = true;\n break;\n }\n s += e[i++];\n }\n if (a)\n continue;\n if (l) {\n c(`Unbalanced pattern at ${n}`);\n continue;\n }\n if (!s) {\n c(`Missing pattern at ${n}`);\n continue;\n }\n r.push({ type: \"REGEX\", index: n, value: s }), n = i;\n continue;\n }\n r.push({ type: \"CHAR\", index: n, value: e[n++] });\n }\n return r.push({ type: \"END\", index: n, value: \"\" }), r;\n}\n__name(v, \"v\");\nfunction D(e, t = {}) {\n let r = v(e);\n t.delimiter ??= \"/#?\", t.prefixes ??= \"./\";\n let n = `[^${x(t.delimiter)}]+?`, o = [], c = 0, l = 0, s = \"\", i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ __name((f) => {\n if (l < r.length && r[l].type === f)\n return r[l++].value;\n }, \"a\"), h = /* @__PURE__ */ __name(() => a(\"OTHER_MODIFIER\") ?? a(\"ASTERISK\"), \"h\"), p = /* @__PURE__ */ __name((f) => {\n let u = a(f);\n if (u !== void 0)\n return u;\n let { type: d, index: T } = r[l];\n throw new TypeError(`Unexpected ${d} at ${T}, expected ${f}`);\n }, \"p\"), O = /* @__PURE__ */ __name(() => {\n let f = \"\", u;\n for (; u = a(\"CHAR\") ?? a(\"ESCAPED_CHAR\"); )\n f += u;\n return f;\n }, \"O\"), xe = /* @__PURE__ */ __name((f) => f, \"xe\"), L = t.encodePart || xe, I = \"\", H = /* @__PURE__ */ __name((f) => {\n I += f;\n }, \"H\"), $ = /* @__PURE__ */ __name(() => {\n I.length && (o.push(new k(3, \"\", \"\", L(I), \"\", 3)), I = \"\");\n }, \"$\"), G = /* @__PURE__ */ __name((f, u, d, T, Y) => {\n let g = 3;\n switch (Y) {\n case \"?\":\n g = 1;\n break;\n case \"*\":\n g = 0;\n break;\n case \"+\":\n g = 2;\n break;\n }\n if (!u && !d && g === 3) {\n H(f);\n return;\n }\n if ($(), !u && !d) {\n if (!f)\n return;\n o.push(new k(3, \"\", \"\", L(f), \"\", g));\n return;\n }\n let m;\n d ? d === \"*\" ? m = M : m = d : m = n;\n let R = 2;\n m === n ? (R = 1, m = \"\") : m === M && (R = 0, m = \"\");\n let S;\n if (u ? S = u : d && (S = c++), i.has(S))\n throw new TypeError(`Duplicate name '${S}'.`);\n i.add(S), o.push(new k(R, S, L(f), m, L(T), g));\n }, \"G\");\n for (; l < r.length; ) {\n let f = a(\"CHAR\"), u = a(\"NAME\"), d = a(\"REGEX\");\n if (!u && !d && (d = a(\"ASTERISK\")), u || d) {\n let g = f ?? \"\";\n t.prefixes.indexOf(g) === -1 && (H(g), g = \"\"), $();\n let m = h();\n G(g, u, d, \"\", m);\n continue;\n }\n let T = f ?? a(\"ESCAPED_CHAR\");\n if (T) {\n H(T);\n continue;\n }\n if (a(\"OPEN\")) {\n let g = O(), m = a(\"NAME\"), R = a(\"REGEX\");\n !m && !R && (R = a(\"ASTERISK\"));\n let S = O();\n p(\"CLOSE\");\n let be = h();\n G(g, m, R, S, be);\n continue;\n }\n $(), p(\"END\");\n }\n return o;\n}\n__name(D, \"D\");\nfunction x(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, \"\\\\$1\");\n}\n__name(x, \"x\");\nfunction X(e) {\n return e && e.ignoreCase ? \"ui\" : \"u\";\n}\n__name(X, \"X\");\nfunction Z(e, t, r) {\n return F(D(e, r), t, r);\n}\n__name(Z, \"Z\");\nfunction y(e) {\n switch (e) {\n case 0:\n return \"*\";\n case 1:\n return \"?\";\n case 2:\n return \"+\";\n case 3:\n return \"\";\n }\n}\n__name(y, \"y\");\nfunction F(e, t, r = {}) {\n r.delimiter ??= \"/#?\", r.prefixes ??= \"./\", r.sensitive ??= false, r.strict ??= false, r.end ??= true, r.start ??= true, r.endsWith = \"\";\n let n = r.start ? \"^\" : \"\";\n for (let s of e) {\n if (s.type === 3) {\n s.modifier === 3 ? n += x(s.value) : n += `(?:${x(s.value)})${y(s.modifier)}`;\n continue;\n }\n t && t.push(s.name);\n let i = `[^${x(r.delimiter)}]+?`, a = s.value;\n if (s.type === 1 ? a = i : s.type === 0 && (a = M), !s.prefix.length && !s.suffix.length) {\n s.modifier === 3 || s.modifier === 1 ? n += `(${a})${y(s.modifier)}` : n += `((?:${a})${y(s.modifier)})`;\n continue;\n }\n if (s.modifier === 3 || s.modifier === 1) {\n n += `(?:${x(s.prefix)}(${a})${x(s.suffix)})`, n += y(s.modifier);\n continue;\n }\n n += `(?:${x(s.prefix)}`, n += `((?:${a})(?:`, n += x(s.suffix), n += x(s.prefix), n += `(?:${a}))*)${x(s.suffix)})`, s.modifier === 0 && (n += \"?\");\n }\n let o = `[${x(r.endsWith)}]|$`, c = `[${x(r.delimiter)}]`;\n if (r.end)\n return r.strict || (n += `${c}?`), r.endsWith.length ? n += `(?=${o})` : n += \"$\", new RegExp(n, X(r));\n r.strict || (n += `(?:${c}(?=${o}))?`);\n let l = false;\n if (e.length) {\n let s = e[e.length - 1];\n s.type === 3 && s.modifier === 3 && (l = r.delimiter.indexOf(s) > -1);\n }\n return l || (n += `(?=${c}|${o})`), new RegExp(n, X(r));\n}\n__name(F, \"F\");\nvar b = { delimiter: \"\", prefixes: \"\", sensitive: true, strict: true };\nvar B = { delimiter: \".\", prefixes: \"\", sensitive: true, strict: true };\nvar q = { delimiter: \"/\", prefixes: \"/\", sensitive: true, strict: true };\nfunction J(e, t) {\n return e.length ? e[0] === \"/\" ? true : !t || e.length < 2 ? false : (e[0] == \"\\\\\" || e[0] == \"{\") && e[1] == \"/\" : false;\n}\n__name(J, \"J\");\nfunction Q(e, t) {\n return e.startsWith(t) ? e.substring(t.length, e.length) : e;\n}\n__name(Q, \"Q\");\nfunction Ee(e, t) {\n return e.endsWith(t) ? e.substr(0, e.length - t.length) : e;\n}\n__name(Ee, \"Ee\");\nfunction W(e) {\n return !e || e.length < 2 ? false : e[0] === \"[\" || (e[0] === \"\\\\\" || e[0] === \"{\") && e[1] === \"[\";\n}\n__name(W, \"W\");\nvar ee = [\"ftp\", \"file\", \"http\", \"https\", \"ws\", \"wss\"];\nfunction N(e) {\n if (!e)\n return true;\n for (let t of ee)\n if (e.test(t))\n return true;\n return false;\n}\n__name(N, \"N\");\nfunction te(e, t) {\n if (e = Q(e, \"#\"), t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.hash = e, r.hash ? r.hash.substring(1, r.hash.length) : \"\";\n}\n__name(te, \"te\");\nfunction re(e, t) {\n if (e = Q(e, \"?\"), t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.search = e, r.search ? r.search.substring(1, r.search.length) : \"\";\n}\n__name(re, \"re\");\nfunction ne(e, t) {\n return t || e === \"\" ? e : W(e) ? j(e) : z(e);\n}\n__name(ne, \"ne\");\nfunction se(e, t) {\n if (t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.password = e, r.password;\n}\n__name(se, \"se\");\nfunction ie(e, t) {\n if (t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.username = e, r.username;\n}\n__name(ie, \"ie\");\nfunction ae(e, t, r) {\n if (r || e === \"\")\n return e;\n if (t && !ee.includes(t))\n return new URL(`${t}:${e}`).pathname;\n let n = e[0] == \"/\";\n return e = new URL(n ? e : \"/-\" + e, \"https://example.com\").pathname, n || (e = e.substring(2, e.length)), e;\n}\n__name(ae, \"ae\");\nfunction oe(e, t, r) {\n return _(t) === e && (e = \"\"), r || e === \"\" ? e : K(e);\n}\n__name(oe, \"oe\");\nfunction ce(e, t) {\n return e = Ee(e, \":\"), t || e === \"\" ? e : A(e);\n}\n__name(ce, \"ce\");\nfunction _(e) {\n switch (e) {\n case \"ws\":\n case \"http\":\n return \"80\";\n case \"wws\":\n case \"https\":\n return \"443\";\n case \"ftp\":\n return \"21\";\n default:\n return \"\";\n }\n}\n__name(_, \"_\");\nfunction A(e) {\n if (e === \"\")\n return e;\n if (/^[-+.A-Za-z0-9]*$/.test(e))\n return e.toLowerCase();\n throw new TypeError(`Invalid protocol '${e}'.`);\n}\n__name(A, \"A\");\nfunction le(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.username = e, t.username;\n}\n__name(le, \"le\");\nfunction he(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.password = e, t.password;\n}\n__name(he, \"he\");\nfunction z(e) {\n if (e === \"\")\n return e;\n if (/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e))\n throw new TypeError(`Invalid hostname '${e}'`);\n let t = new URL(\"https://example.com\");\n return t.hostname = e, t.hostname;\n}\n__name(z, \"z\");\nfunction j(e) {\n if (e === \"\")\n return e;\n if (/[^0-9a-fA-F[\\]:]/g.test(e))\n throw new TypeError(`Invalid IPv6 hostname '${e}'`);\n return e.toLowerCase();\n}\n__name(j, \"j\");\nfunction K(e) {\n if (e === \"\" || /^[0-9]*$/.test(e) && parseInt(e) <= 65535)\n return e;\n throw new TypeError(`Invalid port '${e}'.`);\n}\n__name(K, \"K\");\nfunction fe(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.pathname = e[0] !== \"/\" ? \"/-\" + e : e, e[0] !== \"/\" ? t.pathname.substring(2, t.pathname.length) : t.pathname;\n}\n__name(fe, \"fe\");\nfunction ue(e) {\n return e === \"\" ? e : new URL(`data:${e}`).pathname;\n}\n__name(ue, \"ue\");\nfunction pe(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.search = e, t.search.substring(1, t.search.length);\n}\n__name(pe, \"pe\");\nfunction de(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.hash = e, t.hash.substring(1, t.hash.length);\n}\n__name(de, \"de\");\nvar _i, _n, _t, _e, _s, _u, _c, _p, _d, _g, _r, r_fn, _k, k_fn, _P, P_fn, _f, f_fn, _m, m_fn, _a2, a_fn, _S, S_fn, _E, E_fn, _x, x_fn, _R, R_fn, _y, y_fn, _b, b_fn, _h, h_fn, _l, l_fn, _O, O_fn, _T, T_fn, _A, A_fn, _w, w_fn, _o, o_fn, _C, C_fn, _a3;\nvar U = (_a3 = class {\n constructor(t) {\n __privateAdd(this, _r);\n __privateAdd(this, _k);\n __privateAdd(this, _P);\n __privateAdd(this, _f);\n __privateAdd(this, _m);\n __privateAdd(this, _a2);\n __privateAdd(this, _S);\n __privateAdd(this, _E);\n __privateAdd(this, _x);\n __privateAdd(this, _R);\n __privateAdd(this, _y);\n __privateAdd(this, _b);\n __privateAdd(this, _h);\n __privateAdd(this, _l);\n __privateAdd(this, _O);\n __privateAdd(this, _T);\n __privateAdd(this, _A);\n __privateAdd(this, _w);\n __privateAdd(this, _o);\n __privateAdd(this, _C);\n __privateAdd(this, _i, void 0);\n __privateAdd(this, _n, []);\n __privateAdd(this, _t, {});\n __privateAdd(this, _e, 0);\n __privateAdd(this, _s, 1);\n __privateAdd(this, _u, 0);\n __privateAdd(this, _c, 0);\n __privateAdd(this, _p, 0);\n __privateAdd(this, _d, 0);\n __privateAdd(this, _g, false);\n __privateSet(this, _i, t);\n }\n get result() {\n return __privateGet(this, _t);\n }\n parse() {\n for (__privateSet(this, _n, v(__privateGet(this, _i), true)); __privateGet(this, _e) < __privateGet(this, _n).length; __privateSet(this, _e, __privateGet(this, _e) + __privateGet(this, _s))) {\n if (__privateSet(this, _s, 1), __privateGet(this, _n)[__privateGet(this, _e)].type === \"END\") {\n if (__privateGet(this, _c) === 0) {\n __privateMethod(this, _P, P_fn).call(this), __privateMethod(this, _l, l_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 9, 1) : __privateMethod(this, _h, h_fn).call(this) ? (__privateMethod(this, _r, r_fn).call(this, 8, 1), __privateGet(this, _t).hash = \"\") : (__privateMethod(this, _r, r_fn).call(this, 7, 0), __privateGet(this, _t).search = \"\", __privateGet(this, _t).hash = \"\");\n continue;\n } else if (__privateGet(this, _c) === 2) {\n __privateMethod(this, _f, f_fn).call(this, 5);\n continue;\n }\n __privateMethod(this, _r, r_fn).call(this, 10, 0);\n break;\n }\n if (__privateGet(this, _p) > 0)\n if (__privateMethod(this, _T, T_fn).call(this))\n __privateSet(this, _p, __privateGet(this, _p) - 1);\n else\n continue;\n if (__privateMethod(this, _O, O_fn).call(this)) {\n __privateSet(this, _p, __privateGet(this, _p) + 1);\n continue;\n }\n switch (__privateGet(this, _c)) {\n case 0:\n __privateMethod(this, _S, S_fn).call(this) && (__privateGet(this, _t).username = \"\", __privateGet(this, _t).password = \"\", __privateGet(this, _t).hostname = \"\", __privateGet(this, _t).port = \"\", __privateGet(this, _t).pathname = \"\", __privateGet(this, _t).search = \"\", __privateGet(this, _t).hash = \"\", __privateMethod(this, _f, f_fn).call(this, 1));\n break;\n case 1:\n if (__privateMethod(this, _S, S_fn).call(this)) {\n __privateMethod(this, _C, C_fn).call(this);\n let t = 7, r = 1;\n __privateGet(this, _g) && (__privateGet(this, _t).pathname = \"/\"), __privateMethod(this, _E, E_fn).call(this) ? (t = 2, r = 3) : __privateGet(this, _g) && (t = 2), __privateMethod(this, _r, r_fn).call(this, t, r);\n }\n break;\n case 2:\n __privateMethod(this, _x, x_fn).call(this) ? __privateMethod(this, _f, f_fn).call(this, 3) : (__privateMethod(this, _b, b_fn).call(this) || __privateMethod(this, _h, h_fn).call(this) || __privateMethod(this, _l, l_fn).call(this)) && __privateMethod(this, _f, f_fn).call(this, 5);\n break;\n case 3:\n __privateMethod(this, _R, R_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 4, 1) : __privateMethod(this, _x, x_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 5, 1);\n break;\n case 4:\n __privateMethod(this, _x, x_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 5, 1);\n break;\n case 5:\n __privateMethod(this, _A, A_fn).call(this) ? __privateSet(this, _d, __privateGet(this, _d) + 1) : __privateMethod(this, _w, w_fn).call(this) && __privateSet(this, _d, __privateGet(this, _d) - 1), __privateMethod(this, _y, y_fn).call(this) && !__privateGet(this, _d) ? __privateMethod(this, _r, r_fn).call(this, 6, 1) : __privateMethod(this, _b, b_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 7, 0) : __privateMethod(this, _h, h_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 8, 1) : __privateMethod(this, _l, l_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 6:\n __privateMethod(this, _b, b_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 7, 0) : __privateMethod(this, _h, h_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 8, 1) : __privateMethod(this, _l, l_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 7:\n __privateMethod(this, _h, h_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 8, 1) : __privateMethod(this, _l, l_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 8:\n __privateMethod(this, _l, l_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 9:\n break;\n case 10:\n break;\n }\n }\n }\n}, _i = new WeakMap(), _n = new WeakMap(), _t = new WeakMap(), _e = new WeakMap(), _s = new WeakMap(), _u = new WeakMap(), _c = new WeakMap(), _p = new WeakMap(), _d = new WeakMap(), _g = new WeakMap(), _r = new WeakSet(), r_fn = /* @__PURE__ */ __name(function(t, r) {\n switch (__privateGet(this, _c)) {\n case 0:\n break;\n case 1:\n __privateGet(this, _t).protocol = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 2:\n break;\n case 3:\n __privateGet(this, _t).username = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 4:\n __privateGet(this, _t).password = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 5:\n __privateGet(this, _t).hostname = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 6:\n __privateGet(this, _t).port = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 7:\n __privateGet(this, _t).pathname = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 8:\n __privateGet(this, _t).search = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 9:\n __privateGet(this, _t).hash = __privateMethod(this, _o, o_fn).call(this);\n break;\n case 10:\n break;\n }\n __privateMethod(this, _k, k_fn).call(this, t, r);\n}, \"#r\"), _k = new WeakSet(), k_fn = /* @__PURE__ */ __name(function(t, r) {\n __privateSet(this, _c, t), __privateSet(this, _u, __privateGet(this, _e) + r), __privateSet(this, _e, __privateGet(this, _e) + r), __privateSet(this, _s, 0);\n}, \"#k\"), _P = new WeakSet(), P_fn = /* @__PURE__ */ __name(function() {\n __privateSet(this, _e, __privateGet(this, _u)), __privateSet(this, _s, 0);\n}, \"#P\"), _f = new WeakSet(), f_fn = /* @__PURE__ */ __name(function(t) {\n __privateMethod(this, _P, P_fn).call(this), __privateSet(this, _c, t);\n}, \"#f\"), _m = new WeakSet(), m_fn = /* @__PURE__ */ __name(function(t) {\n return t < 0 && (t = __privateGet(this, _n).length - t), t < __privateGet(this, _n).length ? __privateGet(this, _n)[t] : __privateGet(this, _n)[__privateGet(this, _n).length - 1];\n}, \"#m\"), _a2 = new WeakSet(), a_fn = /* @__PURE__ */ __name(function(t, r) {\n let n = __privateMethod(this, _m, m_fn).call(this, t);\n return n.value === r && (n.type === \"CHAR\" || n.type === \"ESCAPED_CHAR\" || n.type === \"INVALID_CHAR\");\n}, \"#a\"), _S = new WeakSet(), S_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \":\");\n}, \"#S\"), _E = new WeakSet(), E_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e) + 1, \"/\") && __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e) + 2, \"/\");\n}, \"#E\"), _x = new WeakSet(), x_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"@\");\n}, \"#x\"), _R = new WeakSet(), R_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \":\");\n}, \"#R\"), _y = new WeakSet(), y_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \":\");\n}, \"#y\"), _b = new WeakSet(), b_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"/\");\n}, \"#b\"), _h = new WeakSet(), h_fn = /* @__PURE__ */ __name(function() {\n if (__privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"?\"))\n return true;\n if (__privateGet(this, _n)[__privateGet(this, _e)].value !== \"?\")\n return false;\n let t = __privateMethod(this, _m, m_fn).call(this, __privateGet(this, _e) - 1);\n return t.type !== \"NAME\" && t.type !== \"REGEX\" && t.type !== \"CLOSE\" && t.type !== \"ASTERISK\";\n}, \"#h\"), _l = new WeakSet(), l_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"#\");\n}, \"#l\"), _O = new WeakSet(), O_fn = /* @__PURE__ */ __name(function() {\n return __privateGet(this, _n)[__privateGet(this, _e)].type == \"OPEN\";\n}, \"#O\"), _T = new WeakSet(), T_fn = /* @__PURE__ */ __name(function() {\n return __privateGet(this, _n)[__privateGet(this, _e)].type == \"CLOSE\";\n}, \"#T\"), _A = new WeakSet(), A_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"[\");\n}, \"#A\"), _w = new WeakSet(), w_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"]\");\n}, \"#w\"), _o = new WeakSet(), o_fn = /* @__PURE__ */ __name(function() {\n let t = __privateGet(this, _n)[__privateGet(this, _e)], r = __privateMethod(this, _m, m_fn).call(this, __privateGet(this, _u)).index;\n return __privateGet(this, _i).substring(r, t.index);\n}, \"#o\"), _C = new WeakSet(), C_fn = /* @__PURE__ */ __name(function() {\n let t = {};\n Object.assign(t, b), t.encodePart = A;\n let r = Z(__privateMethod(this, _o, o_fn).call(this), void 0, t);\n __privateSet(this, _g, N(r));\n}, \"#C\"), __name(_a3, \"U\"), _a3);\nvar V = [\"protocol\", \"username\", \"password\", \"hostname\", \"port\", \"pathname\", \"search\", \"hash\"];\nvar E = \"*\";\nfunction ge(e, t) {\n if (typeof e != \"string\")\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n let r = new URL(e, t);\n return { protocol: r.protocol.substring(0, r.protocol.length - 1), username: r.username, password: r.password, hostname: r.hostname, port: r.port, pathname: r.pathname, search: r.search !== \"\" ? r.search.substring(1, r.search.length) : void 0, hash: r.hash !== \"\" ? r.hash.substring(1, r.hash.length) : void 0 };\n}\n__name(ge, \"ge\");\nfunction P(e, t) {\n return t ? C(e) : e;\n}\n__name(P, \"P\");\nfunction w(e, t, r) {\n let n;\n if (typeof t.baseURL == \"string\")\n try {\n n = new URL(t.baseURL), e.protocol = P(n.protocol.substring(0, n.protocol.length - 1), r), e.username = P(n.username, r), e.password = P(n.password, r), e.hostname = P(n.hostname, r), e.port = P(n.port, r), e.pathname = P(n.pathname, r), e.search = P(n.search.substring(1, n.search.length), r), e.hash = P(n.hash.substring(1, n.hash.length), r);\n } catch {\n throw new TypeError(`invalid baseURL '${t.baseURL}'.`);\n }\n if (typeof t.protocol == \"string\" && (e.protocol = ce(t.protocol, r)), typeof t.username == \"string\" && (e.username = ie(t.username, r)), typeof t.password == \"string\" && (e.password = se(t.password, r)), typeof t.hostname == \"string\" && (e.hostname = ne(t.hostname, r)), typeof t.port == \"string\" && (e.port = oe(t.port, e.protocol, r)), typeof t.pathname == \"string\") {\n if (e.pathname = t.pathname, n && !J(e.pathname, r)) {\n let o = n.pathname.lastIndexOf(\"/\");\n o >= 0 && (e.pathname = P(n.pathname.substring(0, o + 1), r) + e.pathname);\n }\n e.pathname = ae(e.pathname, e.protocol, r);\n }\n return typeof t.search == \"string\" && (e.search = re(t.search, r)), typeof t.hash == \"string\" && (e.hash = te(t.hash, r)), e;\n}\n__name(w, \"w\");\nfunction C(e) {\n return e.replace(/([+*?:{}()\\\\])/g, \"\\\\$1\");\n}\n__name(C, \"C\");\nfunction Re(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, \"\\\\$1\");\n}\n__name(Re, \"Re\");\nfunction ye(e, t) {\n t.delimiter ??= \"/#?\", t.prefixes ??= \"./\", t.sensitive ??= false, t.strict ??= false, t.end ??= true, t.start ??= true, t.endsWith = \"\";\n let r = \".*\", n = `[^${Re(t.delimiter)}]+?`, o = /[$_\\u200C\\u200D\\p{ID_Continue}]/u, c = \"\";\n for (let l = 0; l < e.length; ++l) {\n let s = e[l];\n if (s.type === 3) {\n if (s.modifier === 3) {\n c += C(s.value);\n continue;\n }\n c += `{${C(s.value)}}${y(s.modifier)}`;\n continue;\n }\n let i = s.hasCustomName(), a = !!s.suffix.length || !!s.prefix.length && (s.prefix.length !== 1 || !t.prefixes.includes(s.prefix)), h = l > 0 ? e[l - 1] : null, p = l < e.length - 1 ? e[l + 1] : null;\n if (!a && i && s.type === 1 && s.modifier === 3 && p && !p.prefix.length && !p.suffix.length)\n if (p.type === 3) {\n let O = p.value.length > 0 ? p.value[0] : \"\";\n a = o.test(O);\n } else\n a = !p.hasCustomName();\n if (!a && !s.prefix.length && h && h.type === 3) {\n let O = h.value[h.value.length - 1];\n a = t.prefixes.includes(O);\n }\n a && (c += \"{\"), c += C(s.prefix), i && (c += `:${s.name}`), s.type === 2 ? c += `(${s.value})` : s.type === 1 ? i || (c += `(${n})`) : s.type === 0 && (!i && (!h || h.type === 3 || h.modifier !== 3 || a || s.prefix !== \"\") ? c += \"*\" : c += `(${r})`), s.type === 1 && i && s.suffix.length && o.test(s.suffix[0]) && (c += \"\\\\\"), c += C(s.suffix), a && (c += \"}\"), s.modifier !== 3 && (c += y(s.modifier));\n }\n return c;\n}\n__name(ye, \"ye\");\nvar _i2, _n2, _t2, _e2, _s2, _a4;\nvar me = (_a4 = class {\n constructor(t = {}, r, n) {\n __privateAdd(this, _i2, void 0);\n __privateAdd(this, _n2, {});\n __privateAdd(this, _t2, {});\n __privateAdd(this, _e2, {});\n __privateAdd(this, _s2, {});\n try {\n let o;\n if (typeof r == \"string\" ? o = r : n = r, typeof t == \"string\") {\n let i = new U(t);\n if (i.parse(), t = i.result, o === void 0 && typeof t.protocol != \"string\")\n throw new TypeError(\"A base URL must be provided for a relative constructor string.\");\n t.baseURL = o;\n } else {\n if (!t || typeof t != \"object\")\n throw new TypeError(\"parameter 1 is not of type 'string' and cannot convert to dictionary.\");\n if (o)\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n }\n typeof n > \"u\" && (n = { ignoreCase: false });\n let c = { ignoreCase: n.ignoreCase === true }, l = { pathname: E, protocol: E, username: E, password: E, hostname: E, port: E, search: E, hash: E };\n __privateSet(this, _i2, w(l, t, true)), _(__privateGet(this, _i2).protocol) === __privateGet(this, _i2).port && (__privateGet(this, _i2).port = \"\");\n let s;\n for (s of V) {\n if (!(s in __privateGet(this, _i2)))\n continue;\n let i = {}, a = __privateGet(this, _i2)[s];\n switch (__privateGet(this, _t2)[s] = [], s) {\n case \"protocol\":\n Object.assign(i, b), i.encodePart = A;\n break;\n case \"username\":\n Object.assign(i, b), i.encodePart = le;\n break;\n case \"password\":\n Object.assign(i, b), i.encodePart = he;\n break;\n case \"hostname\":\n Object.assign(i, B), W(a) ? i.encodePart = j : i.encodePart = z;\n break;\n case \"port\":\n Object.assign(i, b), i.encodePart = K;\n break;\n case \"pathname\":\n N(__privateGet(this, _n2).protocol) ? (Object.assign(i, q, c), i.encodePart = fe) : (Object.assign(i, b, c), i.encodePart = ue);\n break;\n case \"search\":\n Object.assign(i, b, c), i.encodePart = pe;\n break;\n case \"hash\":\n Object.assign(i, b, c), i.encodePart = de;\n break;\n }\n try {\n __privateGet(this, _s2)[s] = D(a, i), __privateGet(this, _n2)[s] = F(__privateGet(this, _s2)[s], __privateGet(this, _t2)[s], i), __privateGet(this, _e2)[s] = ye(__privateGet(this, _s2)[s], i);\n } catch {\n throw new TypeError(`invalid ${s} pattern '${__privateGet(this, _i2)[s]}'.`);\n }\n }\n } catch (o) {\n throw new TypeError(`Failed to construct 'URLPattern': ${o.message}`);\n }\n }\n test(t = {}, r) {\n let n = { pathname: \"\", protocol: \"\", username: \"\", password: \"\", hostname: \"\", port: \"\", search: \"\", hash: \"\" };\n if (typeof t != \"string\" && r)\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n if (typeof t > \"u\")\n return false;\n try {\n typeof t == \"object\" ? n = w(n, t, false) : n = w(n, ge(t, r), false);\n } catch {\n return false;\n }\n let o;\n for (o of V)\n if (!__privateGet(this, _n2)[o].exec(n[o]))\n return false;\n return true;\n }\n exec(t = {}, r) {\n let n = { pathname: \"\", protocol: \"\", username: \"\", password: \"\", hostname: \"\", port: \"\", search: \"\", hash: \"\" };\n if (typeof t != \"string\" && r)\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n if (typeof t > \"u\")\n return;\n try {\n typeof t == \"object\" ? n = w(n, t, false) : n = w(n, ge(t, r), false);\n } catch {\n return null;\n }\n let o = {};\n r ? o.inputs = [t, r] : o.inputs = [t];\n let c;\n for (c of V) {\n let l = __privateGet(this, _n2)[c].exec(n[c]);\n if (!l)\n return null;\n let s = {};\n for (let [i, a] of __privateGet(this, _t2)[c].entries())\n if (typeof a == \"string\" || typeof a == \"number\") {\n let h = l[i + 1];\n s[a] = h;\n }\n o[c] = { input: n[c] ?? \"\", groups: s };\n }\n return o;\n }\n static compareComponent(t, r, n) {\n let o = /* @__PURE__ */ __name((i, a) => {\n for (let h of [\"type\", \"modifier\", \"prefix\", \"value\", \"suffix\"]) {\n if (i[h] < a[h])\n return -1;\n if (i[h] === a[h])\n continue;\n return 1;\n }\n return 0;\n }, \"o\"), c = new k(3, \"\", \"\", \"\", \"\", 3), l = new k(0, \"\", \"\", \"\", \"\", 3), s = /* @__PURE__ */ __name((i, a) => {\n let h = 0;\n for (; h < Math.min(i.length, a.length); ++h) {\n let p = o(i[h], a[h]);\n if (p)\n return p;\n }\n return i.length === a.length ? 0 : o(i[h] ?? c, a[h] ?? c);\n }, \"s\");\n return !__privateGet(r, _e2)[t] && !__privateGet(n, _e2)[t] ? 0 : __privateGet(r, _e2)[t] && !__privateGet(n, _e2)[t] ? s(__privateGet(r, _s2)[t], [l]) : !__privateGet(r, _e2)[t] && __privateGet(n, _e2)[t] ? s([l], __privateGet(n, _s2)[t]) : s(__privateGet(r, _s2)[t], __privateGet(n, _s2)[t]);\n }\n get protocol() {\n return __privateGet(this, _e2).protocol;\n }\n get username() {\n return __privateGet(this, _e2).username;\n }\n get password() {\n return __privateGet(this, _e2).password;\n }\n get hostname() {\n return __privateGet(this, _e2).hostname;\n }\n get port() {\n return __privateGet(this, _e2).port;\n }\n get pathname() {\n return __privateGet(this, _e2).pathname;\n }\n get search() {\n return __privateGet(this, _e2).search;\n }\n get hash() {\n return __privateGet(this, _e2).hash;\n }\n}, _i2 = new WeakMap(), _n2 = new WeakMap(), _t2 = new WeakMap(), _e2 = new WeakMap(), _s2 = new WeakMap(), __name(_a4, \"me\"), _a4);\n\n// ../../node_modules/.pnpm/urlpattern-polyfill@9.0.0/node_modules/urlpattern-polyfill/index.js\nif (!globalThis.URLPattern) {\n globalThis.URLPattern = me;\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n URLPattern\n});\n"
|
|
1
|
+
module.exports = "\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __name = (target, value) => __defProp(target, \"name\", { value, configurable: true });\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar __accessCheck = (obj, member, msg) => {\n if (!member.has(obj))\n throw TypeError(\"Cannot \" + msg);\n};\nvar __privateGet = (obj, member, getter) => {\n __accessCheck(obj, member, \"read from private field\");\n return getter ? getter.call(obj) : member.get(obj);\n};\nvar __privateAdd = (obj, member, value) => {\n if (member.has(obj))\n throw TypeError(\"Cannot add the same private member more than once\");\n member instanceof WeakSet ? member.add(obj) : member.set(obj, value);\n};\nvar __privateSet = (obj, member, value, setter) => {\n __accessCheck(obj, member, \"write to private field\");\n setter ? setter.call(obj, value) : member.set(obj, value);\n return value;\n};\nvar __privateMethod = (obj, member, method) => {\n __accessCheck(obj, member, \"access private method\");\n return method;\n};\n\n// src/primitives/url.js\nvar url_exports = {};\n__export(url_exports, {\n URLPattern: () => me\n});\nmodule.exports = __toCommonJS(url_exports);\n\n// ../../node_modules/.pnpm/urlpattern-polyfill@10.0.0/node_modules/urlpattern-polyfill/dist/urlpattern.js\nvar _a;\nvar R = (_a = class {\n type = 3;\n name = \"\";\n prefix = \"\";\n value = \"\";\n suffix = \"\";\n modifier = 3;\n constructor(t, r, n, o, c, l) {\n this.type = t, this.name = r, this.prefix = n, this.value = o, this.suffix = c, this.modifier = l;\n }\n hasCustomName() {\n return this.name !== \"\" && typeof this.name != \"number\";\n }\n}, __name(_a, \"R\"), _a);\nvar be = /[$_\\p{ID_Start}]/u;\nvar Pe = /[$_\\u200C\\u200D\\p{ID_Continue}]/u;\nvar M = \".*\";\nfunction Re(e, t) {\n return (t ? /^[\\x00-\\xFF]*$/ : /^[\\x00-\\x7F]*$/).test(e);\n}\n__name(Re, \"Re\");\nfunction v(e, t = false) {\n let r = [], n = 0;\n for (; n < e.length; ) {\n let o = e[n], c = /* @__PURE__ */ __name(function(l) {\n if (!t)\n throw new TypeError(l);\n r.push({ type: \"INVALID_CHAR\", index: n, value: e[n++] });\n }, \"c\");\n if (o === \"*\") {\n r.push({ type: \"ASTERISK\", index: n, value: e[n++] });\n continue;\n }\n if (o === \"+\" || o === \"?\") {\n r.push({ type: \"OTHER_MODIFIER\", index: n, value: e[n++] });\n continue;\n }\n if (o === \"\\\\\") {\n r.push({ type: \"ESCAPED_CHAR\", index: n++, value: e[n++] });\n continue;\n }\n if (o === \"{\") {\n r.push({ type: \"OPEN\", index: n, value: e[n++] });\n continue;\n }\n if (o === \"}\") {\n r.push({ type: \"CLOSE\", index: n, value: e[n++] });\n continue;\n }\n if (o === \":\") {\n let l = \"\", s = n + 1;\n for (; s < e.length; ) {\n let i = e.substr(s, 1);\n if (s === n + 1 && be.test(i) || s !== n + 1 && Pe.test(i)) {\n l += e[s++];\n continue;\n }\n break;\n }\n if (!l) {\n c(`Missing parameter name at ${n}`);\n continue;\n }\n r.push({ type: \"NAME\", index: n, value: l }), n = s;\n continue;\n }\n if (o === \"(\") {\n let l = 1, s = \"\", i = n + 1, a = false;\n if (e[i] === \"?\") {\n c(`Pattern cannot start with \"?\" at ${i}`);\n continue;\n }\n for (; i < e.length; ) {\n if (!Re(e[i], false)) {\n c(`Invalid character '${e[i]}' at ${i}.`), a = true;\n break;\n }\n if (e[i] === \"\\\\\") {\n s += e[i++] + e[i++];\n continue;\n }\n if (e[i] === \")\") {\n if (l--, l === 0) {\n i++;\n break;\n }\n } else if (e[i] === \"(\" && (l++, e[i + 1] !== \"?\")) {\n c(`Capturing groups are not allowed at ${i}`), a = true;\n break;\n }\n s += e[i++];\n }\n if (a)\n continue;\n if (l) {\n c(`Unbalanced pattern at ${n}`);\n continue;\n }\n if (!s) {\n c(`Missing pattern at ${n}`);\n continue;\n }\n r.push({ type: \"REGEX\", index: n, value: s }), n = i;\n continue;\n }\n r.push({ type: \"CHAR\", index: n, value: e[n++] });\n }\n return r.push({ type: \"END\", index: n, value: \"\" }), r;\n}\n__name(v, \"v\");\nfunction D(e, t = {}) {\n let r = v(e);\n t.delimiter ??= \"/#?\", t.prefixes ??= \"./\";\n let n = `[^${S(t.delimiter)}]+?`, o = [], c = 0, l = 0, s = \"\", i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ __name((h) => {\n if (l < r.length && r[l].type === h)\n return r[l++].value;\n }, \"a\"), f = /* @__PURE__ */ __name(() => a(\"OTHER_MODIFIER\") ?? a(\"ASTERISK\"), \"f\"), d = /* @__PURE__ */ __name((h) => {\n let u = a(h);\n if (u !== void 0)\n return u;\n let { type: p, index: A } = r[l];\n throw new TypeError(`Unexpected ${p} at ${A}, expected ${h}`);\n }, \"d\"), T = /* @__PURE__ */ __name(() => {\n let h = \"\", u;\n for (; u = a(\"CHAR\") ?? a(\"ESCAPED_CHAR\"); )\n h += u;\n return h;\n }, \"T\"), Se = /* @__PURE__ */ __name((h) => h, \"Se\"), L = t.encodePart || Se, I = \"\", U = /* @__PURE__ */ __name((h) => {\n I += h;\n }, \"U\"), $ = /* @__PURE__ */ __name(() => {\n I.length && (o.push(new R(3, \"\", \"\", L(I), \"\", 3)), I = \"\");\n }, \"$\"), V = /* @__PURE__ */ __name((h, u, p, A, Y) => {\n let g = 3;\n switch (Y) {\n case \"?\":\n g = 1;\n break;\n case \"*\":\n g = 0;\n break;\n case \"+\":\n g = 2;\n break;\n }\n if (!u && !p && g === 3) {\n U(h);\n return;\n }\n if ($(), !u && !p) {\n if (!h)\n return;\n o.push(new R(3, \"\", \"\", L(h), \"\", g));\n return;\n }\n let m;\n p ? p === \"*\" ? m = M : m = p : m = n;\n let O = 2;\n m === n ? (O = 1, m = \"\") : m === M && (O = 0, m = \"\");\n let P;\n if (u ? P = u : p && (P = c++), i.has(P))\n throw new TypeError(`Duplicate name '${P}'.`);\n i.add(P), o.push(new R(O, P, L(h), m, L(A), g));\n }, \"V\");\n for (; l < r.length; ) {\n let h = a(\"CHAR\"), u = a(\"NAME\"), p = a(\"REGEX\");\n if (!u && !p && (p = a(\"ASTERISK\")), u || p) {\n let g = h ?? \"\";\n t.prefixes.indexOf(g) === -1 && (U(g), g = \"\"), $();\n let m = f();\n V(g, u, p, \"\", m);\n continue;\n }\n let A = h ?? a(\"ESCAPED_CHAR\");\n if (A) {\n U(A);\n continue;\n }\n if (a(\"OPEN\")) {\n let g = T(), m = a(\"NAME\"), O = a(\"REGEX\");\n !m && !O && (O = a(\"ASTERISK\"));\n let P = T();\n d(\"CLOSE\");\n let xe = f();\n V(g, m, O, P, xe);\n continue;\n }\n $(), d(\"END\");\n }\n return o;\n}\n__name(D, \"D\");\nfunction S(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, \"\\\\$1\");\n}\n__name(S, \"S\");\nfunction X(e) {\n return e && e.ignoreCase ? \"ui\" : \"u\";\n}\n__name(X, \"X\");\nfunction Z(e, t, r) {\n return F(D(e, r), t, r);\n}\n__name(Z, \"Z\");\nfunction k(e) {\n switch (e) {\n case 0:\n return \"*\";\n case 1:\n return \"?\";\n case 2:\n return \"+\";\n case 3:\n return \"\";\n }\n}\n__name(k, \"k\");\nfunction F(e, t, r = {}) {\n r.delimiter ??= \"/#?\", r.prefixes ??= \"./\", r.sensitive ??= false, r.strict ??= false, r.end ??= true, r.start ??= true, r.endsWith = \"\";\n let n = r.start ? \"^\" : \"\";\n for (let s of e) {\n if (s.type === 3) {\n s.modifier === 3 ? n += S(s.value) : n += `(?:${S(s.value)})${k(s.modifier)}`;\n continue;\n }\n t && t.push(s.name);\n let i = `[^${S(r.delimiter)}]+?`, a = s.value;\n if (s.type === 1 ? a = i : s.type === 0 && (a = M), !s.prefix.length && !s.suffix.length) {\n s.modifier === 3 || s.modifier === 1 ? n += `(${a})${k(s.modifier)}` : n += `((?:${a})${k(s.modifier)})`;\n continue;\n }\n if (s.modifier === 3 || s.modifier === 1) {\n n += `(?:${S(s.prefix)}(${a})${S(s.suffix)})`, n += k(s.modifier);\n continue;\n }\n n += `(?:${S(s.prefix)}`, n += `((?:${a})(?:`, n += S(s.suffix), n += S(s.prefix), n += `(?:${a}))*)${S(s.suffix)})`, s.modifier === 0 && (n += \"?\");\n }\n let o = `[${S(r.endsWith)}]|$`, c = `[${S(r.delimiter)}]`;\n if (r.end)\n return r.strict || (n += `${c}?`), r.endsWith.length ? n += `(?=${o})` : n += \"$\", new RegExp(n, X(r));\n r.strict || (n += `(?:${c}(?=${o}))?`);\n let l = false;\n if (e.length) {\n let s = e[e.length - 1];\n s.type === 3 && s.modifier === 3 && (l = r.delimiter.indexOf(s) > -1);\n }\n return l || (n += `(?=${c}|${o})`), new RegExp(n, X(r));\n}\n__name(F, \"F\");\nvar x = { delimiter: \"\", prefixes: \"\", sensitive: true, strict: true };\nvar B = { delimiter: \".\", prefixes: \"\", sensitive: true, strict: true };\nvar q = { delimiter: \"/\", prefixes: \"/\", sensitive: true, strict: true };\nfunction J(e, t) {\n return e.length ? e[0] === \"/\" ? true : !t || e.length < 2 ? false : (e[0] == \"\\\\\" || e[0] == \"{\") && e[1] == \"/\" : false;\n}\n__name(J, \"J\");\nfunction Q(e, t) {\n return e.startsWith(t) ? e.substring(t.length, e.length) : e;\n}\n__name(Q, \"Q\");\nfunction Ee(e, t) {\n return e.endsWith(t) ? e.substr(0, e.length - t.length) : e;\n}\n__name(Ee, \"Ee\");\nfunction W(e) {\n return !e || e.length < 2 ? false : e[0] === \"[\" || (e[0] === \"\\\\\" || e[0] === \"{\") && e[1] === \"[\";\n}\n__name(W, \"W\");\nvar ee = [\"ftp\", \"file\", \"http\", \"https\", \"ws\", \"wss\"];\nfunction N(e) {\n if (!e)\n return true;\n for (let t of ee)\n if (e.test(t))\n return true;\n return false;\n}\n__name(N, \"N\");\nfunction te(e, t) {\n if (e = Q(e, \"#\"), t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.hash = e, r.hash ? r.hash.substring(1, r.hash.length) : \"\";\n}\n__name(te, \"te\");\nfunction re(e, t) {\n if (e = Q(e, \"?\"), t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.search = e, r.search ? r.search.substring(1, r.search.length) : \"\";\n}\n__name(re, \"re\");\nfunction ne(e, t) {\n return t || e === \"\" ? e : W(e) ? j(e) : z(e);\n}\n__name(ne, \"ne\");\nfunction se(e, t) {\n if (t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.password = e, r.password;\n}\n__name(se, \"se\");\nfunction ie(e, t) {\n if (t || e === \"\")\n return e;\n let r = new URL(\"https://example.com\");\n return r.username = e, r.username;\n}\n__name(ie, \"ie\");\nfunction ae(e, t, r) {\n if (r || e === \"\")\n return e;\n if (t && !ee.includes(t))\n return new URL(`${t}:${e}`).pathname;\n let n = e[0] == \"/\";\n return e = new URL(n ? e : \"/-\" + e, \"https://example.com\").pathname, n || (e = e.substring(2, e.length)), e;\n}\n__name(ae, \"ae\");\nfunction oe(e, t, r) {\n return _(t) === e && (e = \"\"), r || e === \"\" ? e : K(e);\n}\n__name(oe, \"oe\");\nfunction ce(e, t) {\n return e = Ee(e, \":\"), t || e === \"\" ? e : y(e);\n}\n__name(ce, \"ce\");\nfunction _(e) {\n switch (e) {\n case \"ws\":\n case \"http\":\n return \"80\";\n case \"wws\":\n case \"https\":\n return \"443\";\n case \"ftp\":\n return \"21\";\n default:\n return \"\";\n }\n}\n__name(_, \"_\");\nfunction y(e) {\n if (e === \"\")\n return e;\n if (/^[-+.A-Za-z0-9]*$/.test(e))\n return e.toLowerCase();\n throw new TypeError(`Invalid protocol '${e}'.`);\n}\n__name(y, \"y\");\nfunction le(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.username = e, t.username;\n}\n__name(le, \"le\");\nfunction fe(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.password = e, t.password;\n}\n__name(fe, \"fe\");\nfunction z(e) {\n if (e === \"\")\n return e;\n if (/[\\t\\n\\r #%/:<>?@[\\]^\\\\|]/g.test(e))\n throw new TypeError(`Invalid hostname '${e}'`);\n let t = new URL(\"https://example.com\");\n return t.hostname = e, t.hostname;\n}\n__name(z, \"z\");\nfunction j(e) {\n if (e === \"\")\n return e;\n if (/[^0-9a-fA-F[\\]:]/g.test(e))\n throw new TypeError(`Invalid IPv6 hostname '${e}'`);\n return e.toLowerCase();\n}\n__name(j, \"j\");\nfunction K(e) {\n if (e === \"\" || /^[0-9]*$/.test(e) && parseInt(e) <= 65535)\n return e;\n throw new TypeError(`Invalid port '${e}'.`);\n}\n__name(K, \"K\");\nfunction he(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.pathname = e[0] !== \"/\" ? \"/-\" + e : e, e[0] !== \"/\" ? t.pathname.substring(2, t.pathname.length) : t.pathname;\n}\n__name(he, \"he\");\nfunction ue(e) {\n return e === \"\" ? e : new URL(`data:${e}`).pathname;\n}\n__name(ue, \"ue\");\nfunction de(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.search = e, t.search.substring(1, t.search.length);\n}\n__name(de, \"de\");\nfunction pe(e) {\n if (e === \"\")\n return e;\n let t = new URL(\"https://example.com\");\n return t.hash = e, t.hash.substring(1, t.hash.length);\n}\n__name(pe, \"pe\");\nvar _i, _n, _t, _e, _s, _l, _o, _d, _p, _g, _r, r_fn, _R, R_fn, _b, b_fn, _u, u_fn, _m, m_fn, _a2, a_fn, _P, P_fn, _E, E_fn, _S, S_fn, _O, O_fn, _k, k_fn, _x, x_fn, _h, h_fn, _f, f_fn, _T, T_fn, _A, A_fn, _y, y_fn, _w, w_fn, _c, c_fn, _C, C_fn, _a3;\nvar H = (_a3 = class {\n constructor(t) {\n __privateAdd(this, _r);\n __privateAdd(this, _R);\n __privateAdd(this, _b);\n __privateAdd(this, _u);\n __privateAdd(this, _m);\n __privateAdd(this, _a2);\n __privateAdd(this, _P);\n __privateAdd(this, _E);\n __privateAdd(this, _S);\n __privateAdd(this, _O);\n __privateAdd(this, _k);\n __privateAdd(this, _x);\n __privateAdd(this, _h);\n __privateAdd(this, _f);\n __privateAdd(this, _T);\n __privateAdd(this, _A);\n __privateAdd(this, _y);\n __privateAdd(this, _w);\n __privateAdd(this, _c);\n __privateAdd(this, _C);\n __privateAdd(this, _i, void 0);\n __privateAdd(this, _n, []);\n __privateAdd(this, _t, {});\n __privateAdd(this, _e, 0);\n __privateAdd(this, _s, 1);\n __privateAdd(this, _l, 0);\n __privateAdd(this, _o, 0);\n __privateAdd(this, _d, 0);\n __privateAdd(this, _p, 0);\n __privateAdd(this, _g, false);\n __privateSet(this, _i, t);\n }\n get result() {\n return __privateGet(this, _t);\n }\n parse() {\n for (__privateSet(this, _n, v(__privateGet(this, _i), true)); __privateGet(this, _e) < __privateGet(this, _n).length; __privateSet(this, _e, __privateGet(this, _e) + __privateGet(this, _s))) {\n if (__privateSet(this, _s, 1), __privateGet(this, _n)[__privateGet(this, _e)].type === \"END\") {\n if (__privateGet(this, _o) === 0) {\n __privateMethod(this, _b, b_fn).call(this), __privateMethod(this, _f, f_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 9, 1) : __privateMethod(this, _h, h_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 8, 1) : __privateMethod(this, _r, r_fn).call(this, 7, 0);\n continue;\n } else if (__privateGet(this, _o) === 2) {\n __privateMethod(this, _u, u_fn).call(this, 5);\n continue;\n }\n __privateMethod(this, _r, r_fn).call(this, 10, 0);\n break;\n }\n if (__privateGet(this, _d) > 0)\n if (__privateMethod(this, _A, A_fn).call(this))\n __privateSet(this, _d, __privateGet(this, _d) - 1);\n else\n continue;\n if (__privateMethod(this, _T, T_fn).call(this)) {\n __privateSet(this, _d, __privateGet(this, _d) + 1);\n continue;\n }\n switch (__privateGet(this, _o)) {\n case 0:\n __privateMethod(this, _P, P_fn).call(this) && __privateMethod(this, _u, u_fn).call(this, 1);\n break;\n case 1:\n if (__privateMethod(this, _P, P_fn).call(this)) {\n __privateMethod(this, _C, C_fn).call(this);\n let t = 7, r = 1;\n __privateMethod(this, _E, E_fn).call(this) ? (t = 2, r = 3) : __privateGet(this, _g) && (t = 2), __privateMethod(this, _r, r_fn).call(this, t, r);\n }\n break;\n case 2:\n __privateMethod(this, _S, S_fn).call(this) ? __privateMethod(this, _u, u_fn).call(this, 3) : (__privateMethod(this, _x, x_fn).call(this) || __privateMethod(this, _h, h_fn).call(this) || __privateMethod(this, _f, f_fn).call(this)) && __privateMethod(this, _u, u_fn).call(this, 5);\n break;\n case 3:\n __privateMethod(this, _O, O_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 4, 1) : __privateMethod(this, _S, S_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 5, 1);\n break;\n case 4:\n __privateMethod(this, _S, S_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 5, 1);\n break;\n case 5:\n __privateMethod(this, _y, y_fn).call(this) ? __privateSet(this, _p, __privateGet(this, _p) + 1) : __privateMethod(this, _w, w_fn).call(this) && __privateSet(this, _p, __privateGet(this, _p) - 1), __privateMethod(this, _k, k_fn).call(this) && !__privateGet(this, _p) ? __privateMethod(this, _r, r_fn).call(this, 6, 1) : __privateMethod(this, _x, x_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 7, 0) : __privateMethod(this, _h, h_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 8, 1) : __privateMethod(this, _f, f_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 6:\n __privateMethod(this, _x, x_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 7, 0) : __privateMethod(this, _h, h_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 8, 1) : __privateMethod(this, _f, f_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 7:\n __privateMethod(this, _h, h_fn).call(this) ? __privateMethod(this, _r, r_fn).call(this, 8, 1) : __privateMethod(this, _f, f_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 8:\n __privateMethod(this, _f, f_fn).call(this) && __privateMethod(this, _r, r_fn).call(this, 9, 1);\n break;\n case 9:\n break;\n case 10:\n break;\n }\n }\n __privateGet(this, _t).hostname !== void 0 && __privateGet(this, _t).port === void 0 && (__privateGet(this, _t).port = \"\");\n }\n}, _i = new WeakMap(), _n = new WeakMap(), _t = new WeakMap(), _e = new WeakMap(), _s = new WeakMap(), _l = new WeakMap(), _o = new WeakMap(), _d = new WeakMap(), _p = new WeakMap(), _g = new WeakMap(), _r = new WeakSet(), r_fn = /* @__PURE__ */ __name(function(t, r) {\n switch (__privateGet(this, _o)) {\n case 0:\n break;\n case 1:\n __privateGet(this, _t).protocol = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 2:\n break;\n case 3:\n __privateGet(this, _t).username = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 4:\n __privateGet(this, _t).password = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 5:\n __privateGet(this, _t).hostname = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 6:\n __privateGet(this, _t).port = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 7:\n __privateGet(this, _t).pathname = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 8:\n __privateGet(this, _t).search = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 9:\n __privateGet(this, _t).hash = __privateMethod(this, _c, c_fn).call(this);\n break;\n case 10:\n break;\n }\n __privateGet(this, _o) !== 0 && t !== 10 && ([1, 2, 3, 4].includes(__privateGet(this, _o)) && [6, 7, 8, 9].includes(t) && (__privateGet(this, _t).hostname ??= \"\"), [1, 2, 3, 4, 5, 6].includes(__privateGet(this, _o)) && [8, 9].includes(t) && (__privateGet(this, _t).pathname ??= __privateGet(this, _g) ? \"/\" : \"\"), [1, 2, 3, 4, 5, 6, 7].includes(__privateGet(this, _o)) && t === 9 && (__privateGet(this, _t).search ??= \"\")), __privateMethod(this, _R, R_fn).call(this, t, r);\n}, \"#r\"), _R = new WeakSet(), R_fn = /* @__PURE__ */ __name(function(t, r) {\n __privateSet(this, _o, t), __privateSet(this, _l, __privateGet(this, _e) + r), __privateSet(this, _e, __privateGet(this, _e) + r), __privateSet(this, _s, 0);\n}, \"#R\"), _b = new WeakSet(), b_fn = /* @__PURE__ */ __name(function() {\n __privateSet(this, _e, __privateGet(this, _l)), __privateSet(this, _s, 0);\n}, \"#b\"), _u = new WeakSet(), u_fn = /* @__PURE__ */ __name(function(t) {\n __privateMethod(this, _b, b_fn).call(this), __privateSet(this, _o, t);\n}, \"#u\"), _m = new WeakSet(), m_fn = /* @__PURE__ */ __name(function(t) {\n return t < 0 && (t = __privateGet(this, _n).length - t), t < __privateGet(this, _n).length ? __privateGet(this, _n)[t] : __privateGet(this, _n)[__privateGet(this, _n).length - 1];\n}, \"#m\"), _a2 = new WeakSet(), a_fn = /* @__PURE__ */ __name(function(t, r) {\n let n = __privateMethod(this, _m, m_fn).call(this, t);\n return n.value === r && (n.type === \"CHAR\" || n.type === \"ESCAPED_CHAR\" || n.type === \"INVALID_CHAR\");\n}, \"#a\"), _P = new WeakSet(), P_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \":\");\n}, \"#P\"), _E = new WeakSet(), E_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e) + 1, \"/\") && __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e) + 2, \"/\");\n}, \"#E\"), _S = new WeakSet(), S_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"@\");\n}, \"#S\"), _O = new WeakSet(), O_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \":\");\n}, \"#O\"), _k = new WeakSet(), k_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \":\");\n}, \"#k\"), _x = new WeakSet(), x_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"/\");\n}, \"#x\"), _h = new WeakSet(), h_fn = /* @__PURE__ */ __name(function() {\n if (__privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"?\"))\n return true;\n if (__privateGet(this, _n)[__privateGet(this, _e)].value !== \"?\")\n return false;\n let t = __privateMethod(this, _m, m_fn).call(this, __privateGet(this, _e) - 1);\n return t.type !== \"NAME\" && t.type !== \"REGEX\" && t.type !== \"CLOSE\" && t.type !== \"ASTERISK\";\n}, \"#h\"), _f = new WeakSet(), f_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"#\");\n}, \"#f\"), _T = new WeakSet(), T_fn = /* @__PURE__ */ __name(function() {\n return __privateGet(this, _n)[__privateGet(this, _e)].type == \"OPEN\";\n}, \"#T\"), _A = new WeakSet(), A_fn = /* @__PURE__ */ __name(function() {\n return __privateGet(this, _n)[__privateGet(this, _e)].type == \"CLOSE\";\n}, \"#A\"), _y = new WeakSet(), y_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"[\");\n}, \"#y\"), _w = new WeakSet(), w_fn = /* @__PURE__ */ __name(function() {\n return __privateMethod(this, _a2, a_fn).call(this, __privateGet(this, _e), \"]\");\n}, \"#w\"), _c = new WeakSet(), c_fn = /* @__PURE__ */ __name(function() {\n let t = __privateGet(this, _n)[__privateGet(this, _e)], r = __privateMethod(this, _m, m_fn).call(this, __privateGet(this, _l)).index;\n return __privateGet(this, _i).substring(r, t.index);\n}, \"#c\"), _C = new WeakSet(), C_fn = /* @__PURE__ */ __name(function() {\n let t = {};\n Object.assign(t, x), t.encodePart = y;\n let r = Z(__privateMethod(this, _c, c_fn).call(this), void 0, t);\n __privateSet(this, _g, N(r));\n}, \"#C\"), __name(_a3, \"H\"), _a3);\nvar G = [\"protocol\", \"username\", \"password\", \"hostname\", \"port\", \"pathname\", \"search\", \"hash\"];\nvar E = \"*\";\nfunction ge(e, t) {\n if (typeof e != \"string\")\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n let r = new URL(e, t);\n return { protocol: r.protocol.substring(0, r.protocol.length - 1), username: r.username, password: r.password, hostname: r.hostname, port: r.port, pathname: r.pathname, search: r.search !== \"\" ? r.search.substring(1, r.search.length) : void 0, hash: r.hash !== \"\" ? r.hash.substring(1, r.hash.length) : void 0 };\n}\n__name(ge, \"ge\");\nfunction b(e, t) {\n return t ? C(e) : e;\n}\n__name(b, \"b\");\nfunction w(e, t, r) {\n let n;\n if (typeof t.baseURL == \"string\")\n try {\n n = new URL(t.baseURL), t.protocol === void 0 && (e.protocol = b(n.protocol.substring(0, n.protocol.length - 1), r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && (e.username = b(n.username, r)), !r && t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.username === void 0 && t.password === void 0 && (e.password = b(n.password, r)), t.protocol === void 0 && t.hostname === void 0 && (e.hostname = b(n.hostname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && (e.port = b(n.port, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && (e.pathname = b(n.pathname, r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && (e.search = b(n.search.substring(1, n.search.length), r)), t.protocol === void 0 && t.hostname === void 0 && t.port === void 0 && t.pathname === void 0 && t.search === void 0 && t.hash === void 0 && (e.hash = b(n.hash.substring(1, n.hash.length), r));\n } catch {\n throw new TypeError(`invalid baseURL '${t.baseURL}'.`);\n }\n if (typeof t.protocol == \"string\" && (e.protocol = ce(t.protocol, r)), typeof t.username == \"string\" && (e.username = ie(t.username, r)), typeof t.password == \"string\" && (e.password = se(t.password, r)), typeof t.hostname == \"string\" && (e.hostname = ne(t.hostname, r)), typeof t.port == \"string\" && (e.port = oe(t.port, e.protocol, r)), typeof t.pathname == \"string\") {\n if (e.pathname = t.pathname, n && !J(e.pathname, r)) {\n let o = n.pathname.lastIndexOf(\"/\");\n o >= 0 && (e.pathname = b(n.pathname.substring(0, o + 1), r) + e.pathname);\n }\n e.pathname = ae(e.pathname, e.protocol, r);\n }\n return typeof t.search == \"string\" && (e.search = re(t.search, r)), typeof t.hash == \"string\" && (e.hash = te(t.hash, r)), e;\n}\n__name(w, \"w\");\nfunction C(e) {\n return e.replace(/([+*?:{}()\\\\])/g, \"\\\\$1\");\n}\n__name(C, \"C\");\nfunction Oe(e) {\n return e.replace(/([.+*?^${}()[\\]|/\\\\])/g, \"\\\\$1\");\n}\n__name(Oe, \"Oe\");\nfunction ke(e, t) {\n t.delimiter ??= \"/#?\", t.prefixes ??= \"./\", t.sensitive ??= false, t.strict ??= false, t.end ??= true, t.start ??= true, t.endsWith = \"\";\n let r = \".*\", n = `[^${Oe(t.delimiter)}]+?`, o = /[$_\\u200C\\u200D\\p{ID_Continue}]/u, c = \"\";\n for (let l = 0; l < e.length; ++l) {\n let s = e[l];\n if (s.type === 3) {\n if (s.modifier === 3) {\n c += C(s.value);\n continue;\n }\n c += `{${C(s.value)}}${k(s.modifier)}`;\n continue;\n }\n let i = s.hasCustomName(), a = !!s.suffix.length || !!s.prefix.length && (s.prefix.length !== 1 || !t.prefixes.includes(s.prefix)), f = l > 0 ? e[l - 1] : null, d = l < e.length - 1 ? e[l + 1] : null;\n if (!a && i && s.type === 1 && s.modifier === 3 && d && !d.prefix.length && !d.suffix.length)\n if (d.type === 3) {\n let T = d.value.length > 0 ? d.value[0] : \"\";\n a = o.test(T);\n } else\n a = !d.hasCustomName();\n if (!a && !s.prefix.length && f && f.type === 3) {\n let T = f.value[f.value.length - 1];\n a = t.prefixes.includes(T);\n }\n a && (c += \"{\"), c += C(s.prefix), i && (c += `:${s.name}`), s.type === 2 ? c += `(${s.value})` : s.type === 1 ? i || (c += `(${n})`) : s.type === 0 && (!i && (!f || f.type === 3 || f.modifier !== 3 || a || s.prefix !== \"\") ? c += \"*\" : c += `(${r})`), s.type === 1 && i && s.suffix.length && o.test(s.suffix[0]) && (c += \"\\\\\"), c += C(s.suffix), a && (c += \"}\"), s.modifier !== 3 && (c += k(s.modifier));\n }\n return c;\n}\n__name(ke, \"ke\");\nvar _i2, _n2, _t2, _e2, _s2, _l2, _a4;\nvar me = (_a4 = class {\n constructor(t = {}, r, n) {\n __privateAdd(this, _i2, void 0);\n __privateAdd(this, _n2, {});\n __privateAdd(this, _t2, {});\n __privateAdd(this, _e2, {});\n __privateAdd(this, _s2, {});\n __privateAdd(this, _l2, false);\n try {\n let o;\n if (typeof r == \"string\" ? o = r : n = r, typeof t == \"string\") {\n let i = new H(t);\n if (i.parse(), t = i.result, o === void 0 && typeof t.protocol != \"string\")\n throw new TypeError(\"A base URL must be provided for a relative constructor string.\");\n t.baseURL = o;\n } else {\n if (!t || typeof t != \"object\")\n throw new TypeError(\"parameter 1 is not of type 'string' and cannot convert to dictionary.\");\n if (o)\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n }\n typeof n > \"u\" && (n = { ignoreCase: false });\n let c = { ignoreCase: n.ignoreCase === true }, l = { pathname: E, protocol: E, username: E, password: E, hostname: E, port: E, search: E, hash: E };\n __privateSet(this, _i2, w(l, t, true)), _(__privateGet(this, _i2).protocol) === __privateGet(this, _i2).port && (__privateGet(this, _i2).port = \"\");\n let s;\n for (s of G) {\n if (!(s in __privateGet(this, _i2)))\n continue;\n let i = {}, a = __privateGet(this, _i2)[s];\n switch (__privateGet(this, _t2)[s] = [], s) {\n case \"protocol\":\n Object.assign(i, x), i.encodePart = y;\n break;\n case \"username\":\n Object.assign(i, x), i.encodePart = le;\n break;\n case \"password\":\n Object.assign(i, x), i.encodePart = fe;\n break;\n case \"hostname\":\n Object.assign(i, B), W(a) ? i.encodePart = j : i.encodePart = z;\n break;\n case \"port\":\n Object.assign(i, x), i.encodePart = K;\n break;\n case \"pathname\":\n N(__privateGet(this, _n2).protocol) ? (Object.assign(i, q, c), i.encodePart = he) : (Object.assign(i, x, c), i.encodePart = ue);\n break;\n case \"search\":\n Object.assign(i, x, c), i.encodePart = de;\n break;\n case \"hash\":\n Object.assign(i, x, c), i.encodePart = pe;\n break;\n }\n try {\n __privateGet(this, _s2)[s] = D(a, i), __privateGet(this, _n2)[s] = F(__privateGet(this, _s2)[s], __privateGet(this, _t2)[s], i), __privateGet(this, _e2)[s] = ke(__privateGet(this, _s2)[s], i), __privateSet(this, _l2, __privateGet(this, _l2) || __privateGet(this, _s2)[s].some((f) => f.type === 2));\n } catch {\n throw new TypeError(`invalid ${s} pattern '${__privateGet(this, _i2)[s]}'.`);\n }\n }\n } catch (o) {\n throw new TypeError(`Failed to construct 'URLPattern': ${o.message}`);\n }\n }\n test(t = {}, r) {\n let n = { pathname: \"\", protocol: \"\", username: \"\", password: \"\", hostname: \"\", port: \"\", search: \"\", hash: \"\" };\n if (typeof t != \"string\" && r)\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n if (typeof t > \"u\")\n return false;\n try {\n typeof t == \"object\" ? n = w(n, t, false) : n = w(n, ge(t, r), false);\n } catch {\n return false;\n }\n let o;\n for (o of G)\n if (!__privateGet(this, _n2)[o].exec(n[o]))\n return false;\n return true;\n }\n exec(t = {}, r) {\n let n = { pathname: \"\", protocol: \"\", username: \"\", password: \"\", hostname: \"\", port: \"\", search: \"\", hash: \"\" };\n if (typeof t != \"string\" && r)\n throw new TypeError(\"parameter 1 is not of type 'string'.\");\n if (typeof t > \"u\")\n return;\n try {\n typeof t == \"object\" ? n = w(n, t, false) : n = w(n, ge(t, r), false);\n } catch {\n return null;\n }\n let o = {};\n r ? o.inputs = [t, r] : o.inputs = [t];\n let c;\n for (c of G) {\n let l = __privateGet(this, _n2)[c].exec(n[c]);\n if (!l)\n return null;\n let s = {};\n for (let [i, a] of __privateGet(this, _t2)[c].entries())\n if (typeof a == \"string\" || typeof a == \"number\") {\n let f = l[i + 1];\n s[a] = f;\n }\n o[c] = { input: n[c] ?? \"\", groups: s };\n }\n return o;\n }\n static compareComponent(t, r, n) {\n let o = /* @__PURE__ */ __name((i, a) => {\n for (let f of [\"type\", \"modifier\", \"prefix\", \"value\", \"suffix\"]) {\n if (i[f] < a[f])\n return -1;\n if (i[f] === a[f])\n continue;\n return 1;\n }\n return 0;\n }, \"o\"), c = new R(3, \"\", \"\", \"\", \"\", 3), l = new R(0, \"\", \"\", \"\", \"\", 3), s = /* @__PURE__ */ __name((i, a) => {\n let f = 0;\n for (; f < Math.min(i.length, a.length); ++f) {\n let d = o(i[f], a[f]);\n if (d)\n return d;\n }\n return i.length === a.length ? 0 : o(i[f] ?? c, a[f] ?? c);\n }, \"s\");\n return !__privateGet(r, _e2)[t] && !__privateGet(n, _e2)[t] ? 0 : __privateGet(r, _e2)[t] && !__privateGet(n, _e2)[t] ? s(__privateGet(r, _s2)[t], [l]) : !__privateGet(r, _e2)[t] && __privateGet(n, _e2)[t] ? s([l], __privateGet(n, _s2)[t]) : s(__privateGet(r, _s2)[t], __privateGet(n, _s2)[t]);\n }\n get protocol() {\n return __privateGet(this, _e2).protocol;\n }\n get username() {\n return __privateGet(this, _e2).username;\n }\n get password() {\n return __privateGet(this, _e2).password;\n }\n get hostname() {\n return __privateGet(this, _e2).hostname;\n }\n get port() {\n return __privateGet(this, _e2).port;\n }\n get pathname() {\n return __privateGet(this, _e2).pathname;\n }\n get search() {\n return __privateGet(this, _e2).search;\n }\n get hash() {\n return __privateGet(this, _e2).hash;\n }\n get hasRegExpGroups() {\n return __privateGet(this, _l2);\n }\n}, _i2 = new WeakMap(), _n2 = new WeakMap(), _t2 = new WeakMap(), _e2 = new WeakMap(), _s2 = new WeakMap(), _l2 = new WeakMap(), __name(_a4, \"me\"), _a4);\n\n// ../../node_modules/.pnpm/urlpattern-polyfill@10.0.0/node_modules/urlpattern-polyfill/index.js\nif (!globalThis.URLPattern) {\n globalThis.URLPattern = me;\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n URLPattern\n});\n"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(()=>{var e={"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/index.js":(e,t,r)=>{"use strict";let{parseContentType:n}=r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js"),o=[r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/multipart.js"),r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/urlencoded.js")].filter(function(e){return"function"==typeof e.detect});e.exports=e=>{if(("object"!=typeof e||null===e)&&(e={}),"object"!=typeof e.headers||null===e.headers||"string"!=typeof e.headers["content-type"])throw Error("Missing Content-Type");return function(e){let t=e.headers,r=n(t["content-type"]);if(!r)throw Error("Malformed content type");for(let n of o){let o=n.detect(r);if(!o)continue;let a={limits:e.limits,headers:t,conType:r,highWaterMark:void 0,fileHwm:void 0,defCharset:void 0,defParamCharset:void 0,preservePath:!1};return e.highWaterMark&&(a.highWaterMark=e.highWaterMark),e.fileHwm&&(a.fileHwm=e.fileHwm),a.defCharset=e.defCharset,a.defParamCharset=e.defParamCharset,a.preservePath=e.preservePath,new n(a)}throw Error(`Unsupported content type: ${t["content-type"]}`)}(e)}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/multipart.js":(e,t,r)=>{"use strict";let{Readable:n,Writable:o}=r("stream"),a=r("../../node_modules/.pnpm/streamsearch@1.1.0/node_modules/streamsearch/lib/sbmh.js"),{basename:i,convertToUTF8:s,getDecoder:l,parseContentType:u,parseDisposition:c}=r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js"),f=Buffer.from("\r\n"),p=Buffer.from("\r"),d=Buffer.from("-");function h(){}class y{constructor(e){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0,this.cb=e}reset(){this.header=Object.create(null),this.pairCount=0,this.byteCount=0,this.state=0,this.name="",this.value="",this.crlf=0}push(e,t,r){let n=t;for(;t<r;)switch(this.state){case 0:{let o=!1;for(;t<r;++t){if(16384===this.byteCount)return -1;++this.byteCount;let r=e[t];if(1!==S[r]){if(58!==r||(this.name+=e.latin1Slice(n,t),0===this.name.length))return -1;++t,o=!0,this.state=1;break}}if(!o){this.name+=e.latin1Slice(n,t);break}}case 1:{let o=!1;for(;t<r;++t){if(16384===this.byteCount)return -1;++this.byteCount;let r=e[t];if(32!==r&&9!==r){n=t,o=!0,this.state=2;break}}if(!o)break}case 2:switch(this.crlf){case 0:for(;t<r;++t){if(16384===this.byteCount)return -1;++this.byteCount;let r=e[t];if(1!==k[r]){if(13!==r)return -1;++this.crlf;break}}this.value+=e.latin1Slice(n,t++);break;case 1:if(16384===this.byteCount||(++this.byteCount,10!==e[t++]))return -1;++this.crlf;break;case 2:{if(16384===this.byteCount)return -1;++this.byteCount;let r=e[t];32===r||9===r?(n=t,this.crlf=0):(++this.pairCount<2e3&&(this.name=this.name.toLowerCase(),void 0===this.header[this.name]?this.header[this.name]=[this.value]:this.header[this.name].push(this.value)),13===r?(++this.crlf,++t):(n=t,this.crlf=0,this.state=0,this.name="",this.value=""));break}case 3:{if(16384===this.byteCount||(++this.byteCount,10!==e[t++]))return -1;let r=this.header;return this.reset(),this.cb(r),t}}}return t}}class m extends n{constructor(e,t){super(e),this.truncated=!1,this._readcb=null,this.once("end",()=>{if(this._read(),0==--t._fileEndsLeft&&t._finalcb){let e=t._finalcb;t._finalcb=null,process.nextTick(e)}})}_read(e){let t=this._readcb;t&&(this._readcb=null,t())}}let v={push:(e,t)=>{},destroy:()=>{}};function g(e,t){return e}function b(e,t,r){if(r)return t(r);t(r=w(e))}function w(e){if(e._hparser)return Error("Malformed part header");let t=e._fileStream;if(t&&(e._fileStream=null,t.destroy(Error("Unexpected end of file"))),!e._complete)return Error("Unexpected end of form")}let S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.exports=class extends o{constructor(e){let t,r,n,o,b;let w={autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0};if(super(w),!e.conType.params||"string"!=typeof e.conType.params.boundary)throw Error("Multipart: Boundary not found");let S=e.conType.params.boundary,k="string"==typeof e.defParamCharset&&e.defParamCharset?l(e.defParamCharset):g,_=e.defCharset||"utf8",C=e.preservePath,x={autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.fileHwm?e.fileHwm:void 0},R=e.limits,j=R&&"number"==typeof R.fieldSize?R.fieldSize:1048576,O=R&&"number"==typeof R.fileSize?R.fileSize:1/0,T=R&&"number"==typeof R.files?R.files:1/0,P=R&&"number"==typeof R.fields?R.fields:1/0,$=R&&"number"==typeof R.parts?R.parts:1/0,E=-1,I=0,A=0,D=!1;this._fileEndsLeft=0,this._fileStream=void 0,this._complete=!1;let N=0,M=0,F=!1,L=!1,U=!1;this._hparser=null;let W=new y(e=>{let a;if(this._hparser=null,D=!1,o="text/plain",r=_,n="7bit",b=void 0,F=!1,!e["content-disposition"]){D=!0;return}let s=c(e["content-disposition"][0],k);if(!s||"form-data"!==s.type){D=!0;return}if(s.params&&(s.params.name&&(b=s.params.name),s.params["filename*"]?a=s.params["filename*"]:s.params.filename&&(a=s.params.filename),void 0===a||C||(a=i(a))),e["content-type"]){let t=u(e["content-type"][0]);t&&(o=`${t.type}/${t.subtype}`,t.params&&"string"==typeof t.params.charset&&(r=t.params.charset.toLowerCase()))}if(e["content-transfer-encoding"]&&(n=e["content-transfer-encoding"][0].toLowerCase()),"application/octet-stream"===o||void 0!==a){if(A===T){L||(L=!0,this.emit("filesLimit")),D=!0;return}if(++A,0===this.listenerCount("file")){D=!0;return}N=0,this._fileStream=new m(x,this),++this._fileEndsLeft,this.emit("file",b,this._fileStream,{filename:a,encoding:n,mimeType:o})}else{if(I===P){U||(U=!0,this.emit("fieldsLimit")),D=!0;return}if(++I,0===this.listenerCount("field")){D=!0;return}t=[],M=0}}),z=0,B=(e,a,i,l,u)=>{for(;a;){if(null!==this._hparser){let e=this._hparser.push(a,i,l);if(-1===e){this._hparser=null,W.reset(),this.emit("error",Error("Malformed part header"));break}i=e}if(i===l)break;if(0!==z){if(1===z){switch(a[i]){case 45:z=2,++i;break;case 13:z=3,++i;break;default:z=0}if(i===l)return}if(2===z){if(z=0,45===a[i]){this._complete=!0,this._bparser=v;return}let e=this._writecb;this._writecb=h,B(!1,d,0,1,!1),this._writecb=e}else if(3===z){if(z=0,10===a[i]){if(++i,E>=$||(this._hparser=W,i===l))break;continue}{let e=this._writecb;this._writecb=h,B(!1,p,0,1,!1),this._writecb=e}}}if(!D){if(this._fileStream){let e;let t=Math.min(l-i,O-N);u?e=a.slice(i,i+t):(e=Buffer.allocUnsafe(t),a.copy(e,0,i,i+t)),(N+=e.length)===O?(e.length>0&&this._fileStream.push(e),this._fileStream.emit("limit"),this._fileStream.truncated=!0,D=!0):this._fileStream.push(e)||(this._writecb&&(this._fileStream._readcb=this._writecb),this._writecb=null)}else if(void 0!==t){let e;let r=Math.min(l-i,j-M);u?e=a.slice(i,i+r):(e=Buffer.allocUnsafe(r),a.copy(e,0,i,i+r)),M+=r,t.push(e),M===j&&(D=!0,F=!0)}}break}if(e){if(z=1,this._fileStream)this._fileStream.push(null),this._fileStream=null;else if(void 0!==t){let e;switch(t.length){case 0:e="";break;case 1:e=s(t[0],r,0);break;default:e=s(Buffer.concat(t,M),r,0)}t=void 0,M=0,this.emit("field",b,e,{nameTruncated:!1,valueTruncated:F,encoding:n,mimeType:o})}++E===$&&this.emit("partsLimit")}};this._bparser=new a(`\r
|
|
2
|
-
--${S}`,B),this._writecb=null,this._finalcb=null,this.write(f)}static detect(e){return"multipart"===e.type&&"form-data"===e.subtype}_write(e,t,r){this._writecb=r,this._bparser.push(e,0),this._writecb&&function(e,t){let r=e._writecb;e._writecb=null,t?e.destroy(t):r&&r()}(this)}_destroy(e,t){this._hparser=null,this._bparser=v,e||(e=w(this));let r=this._fileStream;r&&(this._fileStream=null,r.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=b.bind(null,this,e):b(this,e)}}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/urlencoded.js":(e,t,r)=>{"use strict";let{Writable:n}=r("stream"),{getDecoder:o}=r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js");function a(e,t,r,n){if(r>=n)return n;if(-1===e._byte){let o=l[t[r++]];if(-1===o)return -1;if(o>=8&&(e._encode=2),r<n){let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((o<<4)+n):e._val+=String.fromCharCode((o<<4)+n),e._byte=-2,e._lastPos=r}else e._byte=o}else{let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+n):e._val+=String.fromCharCode((e._byte<<4)+n),e._byte=-2,e._lastPos=r}return r}function i(e,t,r,n){if(e._bytesKey>e.fieldNameSizeLimit){for(!e._keyTrunc&&e._lastPos<r&&(e._key+=t.latin1Slice(e._lastPos,r-1)),e._keyTrunc=!0;r<n;++r){let n=t[r];if(61===n||38===n)break;++e._bytesKey}e._lastPos=r}return r}function s(e,t,r,n){if(e._bytesVal>e.fieldSizeLimit){for(!e._valTrunc&&e._lastPos<r&&(e._val+=t.latin1Slice(e._lastPos,r-1)),e._valTrunc=!0;r<n&&38!==t[r];++r)++e._bytesVal;e._lastPos=r}return r}let l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports=class extends n{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0};super(t);let r=e.defCharset||"utf8";e.conType.params&&"string"==typeof e.conType.params.charset&&(r=e.conType.params.charset),this.charset=r;let n=e.limits;this.fieldSizeLimit=n&&"number"==typeof n.fieldSize?n.fieldSize:1048576,this.fieldsLimit=n&&"number"==typeof n.fields?n.fields:1/0,this.fieldNameSizeLimit=n&&"number"==typeof n.fieldNameSize?n.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=o(r)}static detect(e){return"application"===e.type&&"x-www-form-urlencoded"===e.subtype}_write(e,t,r){if(this._fields>=this.fieldsLimit)return r();let n=0,o=e.length;if(this._lastPos=0,-2!==this._byte){if(-1===(n=a(this,e,n,o)))return r(Error("Malformed urlencoded form"));if(n>=o)return r();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;n<o;)if(this._inKey){for(n=i(this,e,n,o);n<o;){switch(e[n]){case 61:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue;case 43:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._key+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,-1===(n=a(this,e,n+1,o)))return r(Error("Malformed urlencoded form"));if(n>=o)return r();++this._bytesKey,n=i(this,e,n,o);continue}++n,++this._bytesKey,n=i(this,e,n,o)}this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n))}else{for(n=s(this,e,n,o);n<o;){switch(e[n]){case 38:if(this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue e;case 43:this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._val+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,-1===(n=a(this,e,n+1,o)))return r(Error("Malformed urlencoded form"));if(n>=o)return r();++this._bytesVal,n=s(this,e,n,o);continue}++n,++this._bytesVal,n=s(this,e,n,o)}this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n))}r()}_final(e){if(-2!==this._byte)return e(Error("Malformed urlencoded form"));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"})),e()}}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js":function(e){"use strict";function t(e){let t;for(;;)switch(e){case"utf-8":case"utf8":return r.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return r.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return r.utf16le;case"base64":return r.base64;default:if(void 0===t){t=!0,e=e.toLowerCase();continue}return r.other.bind(e)}}let r={utf8:(e,t)=>{if(0===e.length)return"";if("string"==typeof e){if(t<2)return e;e=Buffer.from(e,"latin1")}return e.utf8Slice(0,e.length)},latin1:(e,t)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.ucs2Slice(0,e.length)),base64:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.base64Slice(0,e.length)),other:(e,t)=>{if(0===e.length)return"";"string"==typeof e&&(e=Buffer.from(e,"latin1"));try{let t=new TextDecoder(this);return t.decode(e)}catch{}}};function n(e,r,n){let o=t(r);if(o)return o(e,n)}let o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports={basename:function(e){if("string"!=typeof e)return"";for(let t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return".."===(e=e.slice(t+1))||"."===e?"":e}return".."===e||"."===e?"":e},convertToUTF8:n,getDecoder:t,parseContentType:function(e){if(0===e.length)return;let t=Object.create(null),r=0;for(;r<e.length;++r){let t=e.charCodeAt(r);if(1!==o[t]){if(47!==t||0===r)return;break}}if(r===e.length)return;let n=e.slice(0,r).toLowerCase(),i=++r;for(;r<e.length;++r){let n=e.charCodeAt(r);if(1!==o[n]){if(r===i||void 0===function(e,t,r){for(;t<e.length;){let n,i;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let s=t;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(61!==r)return;break}}if(t===e.length||(n=e.slice(s,t),++t===e.length))return;let l="";if(34===e.charCodeAt(t)){i=++t;let r=!1;for(;t<e.length;++t){let n=e.charCodeAt(t);if(92===n){r?(i=t,r=!1):(l+=e.slice(i,t),r=!0);continue}if(34===n){if(r){i=t,r=!1;continue}l+=e.slice(i,t);break}if(r&&(i=t-1,r=!1),1!==a[n])return}if(t===e.length)return;++t}else{for(i=t;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(t===i)return;break}}l=e.slice(i,t)}void 0===r[n=n.toLowerCase()]&&(r[n]=l)}return r}(e,r,t))return;break}}if(r===i)return;let s=e.slice(i,r).toLowerCase();return{type:n,subtype:s,params:t}},parseDisposition:function(e,t){if(0===e.length)return;let r=Object.create(null),u=0;for(;u<e.length;++u){let c=e.charCodeAt(u);if(1!==o[c]){if(void 0===function(e,t,r,u){for(;t<e.length;){let c,f,p;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let d=t;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(61===r)break;return}}if(t===e.length)return;let h="";if(42===(c=e.slice(d,t)).charCodeAt(c.length-1)){let r=++t;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==i[r]){if(39!==r)return;break}}if(t===e.length)return;for(p=e.slice(r,t),++t;t<e.length;++t){let r=e.charCodeAt(t);if(39===r)break}if(t===e.length||++t===e.length)return;f=t;let o=0;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==s[r]){if(37===r){let r,n;if(t+2<e.length&&-1!==(r=l[e.charCodeAt(t+1)])&&-1!==(n=l[e.charCodeAt(t+2)])){let a=(r<<4)+n;h+=e.slice(f,t)+String.fromCharCode(a),t+=2,f=t+1,a>=128?o=2:0===o&&(o=1);continue}return}break}}if(h+=e.slice(f,t),void 0===(h=n(h,p,o)))return}else{if(++t===e.length)return;if(34===e.charCodeAt(t)){f=++t;let r=!1;for(;t<e.length;++t){let n=e.charCodeAt(t);if(92===n){r?(f=t,r=!1):(h+=e.slice(f,t),r=!0);continue}if(34===n){if(r){f=t,r=!1;continue}h+=e.slice(f,t);break}if(r&&(f=t-1,r=!1),1!==a[n])return}if(t===e.length)return;++t}else{for(f=t;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(t===f)return;break}}h=e.slice(f,t)}if(void 0===(h=u(h,2)))return}void 0===r[c=c.toLowerCase()]&&(r[c]=h)}return r}(e,u,r,t))return;break}}let c=e.slice(0,u).toLowerCase();return{type:c,params:r}}}},"../../node_modules/.pnpm/streamsearch@1.1.0/node_modules/streamsearch/lib/sbmh.js":e=>{"use strict";function t(e,t,r,n,o){for(let a=0;a<o;++a)if(e[t+a]!==r[n+a])return!1;return!0}function r(e,t,r,n){let o=e._lookbehind,a=e._lookbehindSize,i=e._needle;for(let e=0;e<n;++e,++r){let n=r<0?o[a+r]:t[r];if(n!==i[e])return!1}return!0}e.exports=class{constructor(e,t){if("function"!=typeof t)throw Error("Missing match callback");if("string"==typeof e)e=Buffer.from(e);else if(!Buffer.isBuffer(e))throw Error(`Expected Buffer for needle, got ${typeof e}`);let r=e.length;if(this.maxMatches=1/0,this.matches=0,this._cb=t,this._lookbehindSize=0,this._needle=e,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(r),this._occ=[r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r],r>1)for(let t=0;t<r-1;++t)this._occ[e[t]]=r-1-t}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(e,n){let o;Buffer.isBuffer(e)||(e=Buffer.from(e,"latin1"));let a=e.length;for(this._bufPos=n||0;o!==a&&this.matches<this.maxMatches;)o=function(e,n){let o=n.length,a=e._needle,i=a.length,s=-e._lookbehindSize,l=i-1,u=a[l],c=o-i,f=e._occ,p=e._lookbehind;if(s<0){for(;s<0&&s<=c;){let t=s+l,o=t<0?p[e._lookbehindSize+t]:n[t];if(o===u&&r(e,n,s,l))return e._lookbehindSize=0,++e.matches,s>-e._lookbehindSize?e._cb(!0,p,0,e._lookbehindSize+s,!1):e._cb(!0,void 0,0,0,!0),e._bufPos=s+i;s+=f[o]}for(;s<0&&!r(e,n,s,o-s);)++s;if(s<0){let t=e._lookbehindSize+s;return t>0&&e._cb(!1,p,0,t,!1),e._lookbehindSize-=t,p.copy(p,0,t,e._lookbehindSize),p.set(n,e._lookbehindSize),e._lookbehindSize+=o,e._bufPos=o,o}e._cb(!1,p,0,e._lookbehindSize,!1),e._lookbehindSize=0}s+=e._bufPos;let d=a[0];for(;s<=c;){let r=n[s+l];if(r===u&&n[s]===d&&t(a,0,n,s,l))return++e.matches,s>0?e._cb(!0,n,e._bufPos,s,!0):e._cb(!0,void 0,0,0,!0),e._bufPos=s+i;s+=f[r]}for(;s<o;){if(n[s]!==d||!t(n,s,a,0,o-s)){++s;continue}n.copy(p,0,s,o),e._lookbehindSize=o-s;break}return s>0&&e._cb(!1,n,e._bufPos,s<o?s:o,!0),e._bufPos=o,o}(this,e);return o}destroy(){let e=this._lookbehindSize;e&&this._cb(!1,this._lookbehind,0,e,!1),this.reset()}}},"./dist/build/webpack/alias/react-dom-server-edge-experimental.js":(e,t,r)=>{"use strict";var n;function o(){throw Error("Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo.")}n=r("./dist/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js"),t.version=n.version,t.renderToReadableStream=n.renderToReadableStream,t.renderToNodeStream=n.renderToNodeStream,t.renderToStaticNodeStream=n.renderToStaticNodeStream,t.renderToString=o,t.renderToStaticMarkup=o,n.resume&&(t.resume=n.resume)},"./dist/compiled/@edge-runtime/cookies/index.js":e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};function i(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function s(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,o]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=o?o:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,o],...a]=s(e),{domain:i,expires:l,httponly:f,maxage:p,path:d,samesite:h,secure:y,priority:m}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase(),t])),v={name:n,value:decodeURIComponent(o),domain:i,...l&&{expires:new Date(l)},...f&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:d,...h&&{sameSite:u.includes(t=(t=h).toLowerCase())?t:void 0},...y&&{secure:!0},...m&&{priority:c.includes(r=(r=m).toLowerCase())?r:void 0}};return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}(v)}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(a,{RequestCookies:()=>f,ResponseCookies:()=>p,parseCookie:()=>s,parseSetCookie:()=>l,stringifyCookie:()=>i}),e.exports=((e,a,i,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of n(a))o.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(s=r(a,i))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var u=["strict","lax","none"],c=["low","medium","high"],f=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let e=s(t);for(let[t,r]of e)this._parsed.set(t,{name:t,value:r})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>i(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>i(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},p=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let o=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[],a=Array.isArray(o)?o:function(e){if(!e)return[];var t,r,n,o,a,i=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}(o);for(let e of a){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,o=this._parsed;return o.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=i(r);t.append("set-cookie",e)}}(o,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(i).join("; ")}}},"./dist/compiled/bytes/index.js":e=>{(()=>{"use strict";var t={56:e=>{/*!
|
|
2
|
+
--${S}`,B),this._writecb=null,this._finalcb=null,this.write(f)}static detect(e){return"multipart"===e.type&&"form-data"===e.subtype}_write(e,t,r){this._writecb=r,this._bparser.push(e,0),this._writecb&&function(e,t){let r=e._writecb;e._writecb=null,t?e.destroy(t):r&&r()}(this)}_destroy(e,t){this._hparser=null,this._bparser=v,e||(e=w(this));let r=this._fileStream;r&&(this._fileStream=null,r.destroy(e)),t(e)}_final(e){if(this._bparser.destroy(),!this._complete)return e(Error("Unexpected end of form"));this._fileEndsLeft?this._finalcb=b.bind(null,this,e):b(this,e)}}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/types/urlencoded.js":(e,t,r)=>{"use strict";let{Writable:n}=r("stream"),{getDecoder:o}=r("../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js");function a(e,t,r,n){if(r>=n)return n;if(-1===e._byte){let o=l[t[r++]];if(-1===o)return -1;if(o>=8&&(e._encode=2),r<n){let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((o<<4)+n):e._val+=String.fromCharCode((o<<4)+n),e._byte=-2,e._lastPos=r}else e._byte=o}else{let n=l[t[r++]];if(-1===n)return -1;e._inKey?e._key+=String.fromCharCode((e._byte<<4)+n):e._val+=String.fromCharCode((e._byte<<4)+n),e._byte=-2,e._lastPos=r}return r}function i(e,t,r,n){if(e._bytesKey>e.fieldNameSizeLimit){for(!e._keyTrunc&&e._lastPos<r&&(e._key+=t.latin1Slice(e._lastPos,r-1)),e._keyTrunc=!0;r<n;++r){let n=t[r];if(61===n||38===n)break;++e._bytesKey}e._lastPos=r}return r}function s(e,t,r,n){if(e._bytesVal>e.fieldSizeLimit){for(!e._valTrunc&&e._lastPos<r&&(e._val+=t.latin1Slice(e._lastPos,r-1)),e._valTrunc=!0;r<n&&38!==t[r];++r)++e._bytesVal;e._lastPos=r}return r}let l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports=class extends n{constructor(e){let t={autoDestroy:!0,emitClose:!0,highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:void 0};super(t);let r=e.defCharset||"utf8";e.conType.params&&"string"==typeof e.conType.params.charset&&(r=e.conType.params.charset),this.charset=r;let n=e.limits;this.fieldSizeLimit=n&&"number"==typeof n.fieldSize?n.fieldSize:1048576,this.fieldsLimit=n&&"number"==typeof n.fields?n.fields:1/0,this.fieldNameSizeLimit=n&&"number"==typeof n.fieldNameSize?n.fieldNameSize:100,this._inKey=!0,this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,this._fields=0,this._key="",this._val="",this._byte=-2,this._lastPos=0,this._encode=0,this._decoder=o(r)}static detect(e){return"application"===e.type&&"x-www-form-urlencoded"===e.subtype}_write(e,t,r){if(this._fields>=this.fieldsLimit)return r();let n=0,o=e.length;if(this._lastPos=0,-2!==this._byte){if(-1===(n=a(this,e,n,o)))return r(Error("Malformed urlencoded form"));if(n>=o)return r();this._inKey?++this._bytesKey:++this._bytesVal}e:for(;n<o;)if(this._inKey){for(n=i(this,e,n,o);n<o;){switch(e[n]){case 61:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._inKey=!1;continue e;case 38:if(this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._key=this._decoder(this._key,this._encode),this._encode=0,this._bytesKey>0&&this.emit("field",this._key,"",{nameTruncated:this._keyTrunc,valueTruncated:!1,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue;case 43:this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._key+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,-1===(n=a(this,e,n+1,o)))return r(Error("Malformed urlencoded form"));if(n>=o)return r();++this._bytesKey,n=i(this,e,n,o);continue}++n,++this._bytesKey,n=i(this,e,n,o)}this._lastPos<n&&(this._key+=e.latin1Slice(this._lastPos,n))}else{for(n=s(this,e,n,o);n<o;){switch(e[n]){case 38:if(this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=++n,this._inKey=!0,this._val=this._decoder(this._val,this._encode),this._encode=0,(this._bytesKey>0||this._bytesVal>0)&&this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"}),this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._bytesKey=0,this._bytesVal=0,++this._fields>=this.fieldsLimit)return this.emit("fieldsLimit"),r();continue e;case 43:this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._val+=" ",this._lastPos=n+1;break;case 37:if(0===this._encode&&(this._encode=1),this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n)),this._lastPos=n+1,this._byte=-1,-1===(n=a(this,e,n+1,o)))return r(Error("Malformed urlencoded form"));if(n>=o)return r();++this._bytesVal,n=s(this,e,n,o);continue}++n,++this._bytesVal,n=s(this,e,n,o)}this._lastPos<n&&(this._val+=e.latin1Slice(this._lastPos,n))}r()}_final(e){if(-2!==this._byte)return e(Error("Malformed urlencoded form"));(!this._inKey||this._bytesKey>0||this._bytesVal>0)&&(this._inKey?this._key=this._decoder(this._key,this._encode):this._val=this._decoder(this._val,this._encode),this.emit("field",this._key,this._val,{nameTruncated:this._keyTrunc,valueTruncated:this._valTrunc,encoding:this.charset,mimeType:"text/plain"})),e()}}},"../../node_modules/.pnpm/busboy@1.6.0/node_modules/busboy/lib/utils.js":function(e){"use strict";function t(e){let t;for(;;)switch(e){case"utf-8":case"utf8":return r.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return r.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return r.utf16le;case"base64":return r.base64;default:if(void 0===t){t=!0,e=e.toLowerCase();continue}return r.other.bind(e)}}let r={utf8:(e,t)=>{if(0===e.length)return"";if("string"==typeof e){if(t<2)return e;e=Buffer.from(e,"latin1")}return e.utf8Slice(0,e.length)},latin1:(e,t)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.ucs2Slice(0,e.length)),base64:(e,t)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,"latin1")),e.base64Slice(0,e.length)),other:(e,t)=>{if(0===e.length)return"";"string"==typeof e&&(e=Buffer.from(e,"latin1"));try{let t=new TextDecoder(this);return t.decode(e)}catch{}}};function n(e,r,n){let o=t(r);if(o)return o(e,n)}let o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1],i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,1,0,0,0,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.exports={basename:function(e){if("string"!=typeof e)return"";for(let t=e.length-1;t>=0;--t)switch(e.charCodeAt(t)){case 47:case 92:return".."===(e=e.slice(t+1))||"."===e?"":e}return".."===e||"."===e?"":e},convertToUTF8:n,getDecoder:t,parseContentType:function(e){if(0===e.length)return;let t=Object.create(null),r=0;for(;r<e.length;++r){let t=e.charCodeAt(r);if(1!==o[t]){if(47!==t||0===r)return;break}}if(r===e.length)return;let n=e.slice(0,r).toLowerCase(),i=++r;for(;r<e.length;++r){let n=e.charCodeAt(r);if(1!==o[n]){if(r===i||void 0===function(e,t,r){for(;t<e.length;){let n,i;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let s=t;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(61!==r)return;break}}if(t===e.length||(n=e.slice(s,t),++t===e.length))return;let l="";if(34===e.charCodeAt(t)){i=++t;let r=!1;for(;t<e.length;++t){let n=e.charCodeAt(t);if(92===n){r?(i=t,r=!1):(l+=e.slice(i,t),r=!0);continue}if(34===n){if(r){i=t,r=!1;continue}l+=e.slice(i,t);break}if(r&&(i=t-1,r=!1),1!==a[n])return}if(t===e.length)return;++t}else{for(i=t;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(t===i)return;break}}l=e.slice(i,t)}void 0===r[n=n.toLowerCase()]&&(r[n]=l)}return r}(e,r,t))return;break}}if(r===i)return;let s=e.slice(i,r).toLowerCase();return{type:n,subtype:s,params:t}},parseDisposition:function(e,t){if(0===e.length)return;let r=Object.create(null),u=0;for(;u<e.length;++u){let c=e.charCodeAt(u);if(1!==o[c]){if(void 0===function(e,t,r,u){for(;t<e.length;){let c,f,p;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)break;if(59!==e.charCodeAt(t++))return;for(;t<e.length;++t){let r=e.charCodeAt(t);if(32!==r&&9!==r)break}if(t===e.length)return;let d=t;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(61===r)break;return}}if(t===e.length)return;let h="";if(42===(c=e.slice(d,t)).charCodeAt(c.length-1)){let r=++t;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==i[r]){if(39!==r)return;break}}if(t===e.length)return;for(p=e.slice(r,t),++t;t<e.length;++t){let r=e.charCodeAt(t);if(39===r)break}if(t===e.length||++t===e.length)return;f=t;let o=0;for(;t<e.length;++t){let r=e.charCodeAt(t);if(1!==s[r]){if(37===r){let r,n;if(t+2<e.length&&-1!==(r=l[e.charCodeAt(t+1)])&&-1!==(n=l[e.charCodeAt(t+2)])){let a=(r<<4)+n;h+=e.slice(f,t)+String.fromCharCode(a),t+=2,f=t+1,a>=128?o=2:0===o&&(o=1);continue}return}break}}if(h+=e.slice(f,t),void 0===(h=n(h,p,o)))return}else{if(++t===e.length)return;if(34===e.charCodeAt(t)){f=++t;let r=!1;for(;t<e.length;++t){let n=e.charCodeAt(t);if(92===n){r?(f=t,r=!1):(h+=e.slice(f,t),r=!0);continue}if(34===n){if(r){f=t,r=!1;continue}h+=e.slice(f,t);break}if(r&&(f=t-1,r=!1),1!==a[n])return}if(t===e.length)return;++t}else{for(f=t;t<e.length;++t){let r=e.charCodeAt(t);if(1!==o[r]){if(t===f)return;break}}h=e.slice(f,t)}if(void 0===(h=u(h,2)))return}void 0===r[c=c.toLowerCase()]&&(r[c]=h)}return r}(e,u,r,t))return;break}}let c=e.slice(0,u).toLowerCase();return{type:c,params:r}}}},"../../node_modules/.pnpm/streamsearch@1.1.0/node_modules/streamsearch/lib/sbmh.js":e=>{"use strict";function t(e,t,r,n,o){for(let a=0;a<o;++a)if(e[t+a]!==r[n+a])return!1;return!0}function r(e,t,r,n){let o=e._lookbehind,a=e._lookbehindSize,i=e._needle;for(let e=0;e<n;++e,++r){let n=r<0?o[a+r]:t[r];if(n!==i[e])return!1}return!0}e.exports=class{constructor(e,t){if("function"!=typeof t)throw Error("Missing match callback");if("string"==typeof e)e=Buffer.from(e);else if(!Buffer.isBuffer(e))throw Error(`Expected Buffer for needle, got ${typeof e}`);let r=e.length;if(this.maxMatches=1/0,this.matches=0,this._cb=t,this._lookbehindSize=0,this._needle=e,this._bufPos=0,this._lookbehind=Buffer.allocUnsafe(r),this._occ=[r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r,r],r>1)for(let t=0;t<r-1;++t)this._occ[e[t]]=r-1-t}reset(){this.matches=0,this._lookbehindSize=0,this._bufPos=0}push(e,n){let o;Buffer.isBuffer(e)||(e=Buffer.from(e,"latin1"));let a=e.length;for(this._bufPos=n||0;o!==a&&this.matches<this.maxMatches;)o=function(e,n){let o=n.length,a=e._needle,i=a.length,s=-e._lookbehindSize,l=i-1,u=a[l],c=o-i,f=e._occ,p=e._lookbehind;if(s<0){for(;s<0&&s<=c;){let t=s+l,o=t<0?p[e._lookbehindSize+t]:n[t];if(o===u&&r(e,n,s,l))return e._lookbehindSize=0,++e.matches,s>-e._lookbehindSize?e._cb(!0,p,0,e._lookbehindSize+s,!1):e._cb(!0,void 0,0,0,!0),e._bufPos=s+i;s+=f[o]}for(;s<0&&!r(e,n,s,o-s);)++s;if(s<0){let t=e._lookbehindSize+s;return t>0&&e._cb(!1,p,0,t,!1),e._lookbehindSize-=t,p.copy(p,0,t,e._lookbehindSize),p.set(n,e._lookbehindSize),e._lookbehindSize+=o,e._bufPos=o,o}e._cb(!1,p,0,e._lookbehindSize,!1),e._lookbehindSize=0}s+=e._bufPos;let d=a[0];for(;s<=c;){let r=n[s+l];if(r===u&&n[s]===d&&t(a,0,n,s,l))return++e.matches,s>0?e._cb(!0,n,e._bufPos,s,!0):e._cb(!0,void 0,0,0,!0),e._bufPos=s+i;s+=f[r]}for(;s<o;){if(n[s]!==d||!t(n,s,a,0,o-s)){++s;continue}n.copy(p,0,s,o),e._lookbehindSize=o-s;break}return s>0&&e._cb(!1,n,e._bufPos,s<o?s:o,!0),e._bufPos=o,o}(this,e);return o}destroy(){let e=this._lookbehindSize;e&&this._cb(!1,this._lookbehind,0,e,!1),this.reset()}}},"./dist/build/webpack/alias/react-dom-server-edge-experimental.js":(e,t,r)=>{"use strict";var n;function o(){throw Error("Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo.")}n=r("./dist/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js"),t.version=n.version,t.renderToReadableStream=n.renderToReadableStream,t.renderToNodeStream=n.renderToNodeStream,t.renderToStaticNodeStream=n.renderToStaticNodeStream,t.renderToString=o,t.renderToStaticMarkup=o,n.resume&&(t.resume=n.resume)},"./dist/compiled/@edge-runtime/cookies/index.js":e=>{"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,a={};function i(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean);return`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}; ${r.join("; ")}`}function s(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,o]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=o?o:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[n,o],...a]=s(e),{domain:i,expires:l,httponly:f,maxage:p,path:d,samesite:h,secure:y,partitioned:m,priority:v}=Object.fromEntries(a.map(([e,t])=>[e.toLowerCase(),t])),g={name:n,value:decodeURIComponent(o),domain:i,...l&&{expires:new Date(l)},...f&&{httpOnly:!0},..."string"==typeof p&&{maxAge:Number(p)},path:d,...h&&{sameSite:u.includes(t=(t=h).toLowerCase())?t:void 0},...y&&{secure:!0},...v&&{priority:c.includes(r=(r=v).toLowerCase())?r:void 0},...m&&{partitioned:!0}};return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}(g)}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(a,{RequestCookies:()=>f,ResponseCookies:()=>p,parseCookie:()=>s,parseSetCookie:()=>l,stringifyCookie:()=>i}),e.exports=((e,a,i,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let i of n(a))o.call(e,i)||void 0===i||t(e,i,{get:()=>a[i],enumerable:!(s=r(a,i))||s.enumerable});return e})(t({},"__esModule",{value:!0}),a);var u=["strict","lax","none"],c=["low","medium","high"],f=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t){let e=s(t);for(let[t,r]of e)this._parsed.set(t,{name:t,value:r})}}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>i(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>i(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},p=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let o=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[],a=Array.isArray(o)?o:function(e){if(!e)return[];var t,r,n,o,a,i=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}(o);for(let e of a){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,o=this._parsed;return o.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=i(r);t.append("set-cookie",e)}}(o,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(i).join("; ")}}},"./dist/compiled/bytes/index.js":e=>{(()=>{"use strict";var t={56:e=>{/*!
|
|
3
3
|
* bytes
|
|
4
4
|
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
5
5
|
* Copyright(c) 2015 Jed Watson
|