@delta-comic/plugin 0.3.5 → 1.3.0
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/LICENSE +1 -1
- package/dist/core-NoooY1bz.js +2 -0
- package/dist/core-wAb1OuYe.js +521 -0
- package/dist/core-wAb1OuYe.js.map +1 -0
- package/dist/index.css +2 -2
- package/dist/index.js +2178 -1070
- package/dist/index.js.map +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +18 -23
- package/dist/lib/config.d.ts +0 -71
- package/dist/lib/depends.d.ts +0 -7
- package/dist/lib/driver/core.d.ts +0 -68
- package/dist/lib/driver/icon.d.ts +0 -3
- package/dist/lib/driver/index.d.ts +0 -3
- package/dist/lib/driver/init/booter/0_configSetter.d.ts +0 -8
- package/dist/lib/driver/init/booter/10_apiTest.d.ts +0 -9
- package/dist/lib/driver/init/booter/20_resourceTest.d.ts +0 -8
- package/dist/lib/driver/init/booter/30_boot.d.ts +0 -8
- package/dist/lib/driver/init/booter/40_auth.d.ts +0 -8
- package/dist/lib/driver/init/booter/50_otherProcess.d.ts +0 -8
- package/dist/lib/driver/init/booter/utils.d.ts +0 -3
- package/dist/lib/driver/init/index.d.ts +0 -19
- package/dist/lib/driver/init/installer/10_normalUrl.d.ts +0 -12
- package/dist/lib/driver/init/installer/20_local.d.ts +0 -12
- package/dist/lib/driver/init/installer/30_dev.d.ts +0 -12
- package/dist/lib/driver/init/installer/40_github.d.ts +0 -12
- package/dist/lib/driver/init/installer/9999_awesome.d.ts +0 -12
- package/dist/lib/driver/init/loader/1_userscript.d.ts +0 -11
- package/dist/lib/driver/init/loader/2_zip.d.ts +0 -11
- package/dist/lib/driver/init/utils.d.ts +0 -28
- package/dist/lib/driver/store.d.ts +0 -37
- package/dist/lib/env/Inject.vue.d.ts +0 -18
- package/dist/lib/env/index.d.ts +0 -12
- package/dist/lib/global.d.ts +0 -26
- package/dist/lib/index.d.ts +0 -6
- package/dist/lib/plugin/api.d.ts +0 -8
- package/dist/lib/plugin/auth.d.ts +0 -15
- package/dist/lib/plugin/content.d.ts +0 -8
- package/dist/lib/plugin/index.d.ts +0 -81
- package/dist/lib/plugin/otherProgress.d.ts +0 -4
- package/dist/lib/plugin/resource.d.ts +0 -5
- package/dist/lib/plugin/search.d.ts +0 -71
- package/dist/lib/plugin/share.d.ts +0 -26
- package/dist/lib/plugin/subscribe.d.ts +0 -13
- package/dist/lib/plugin/user.d.ts +0 -47
package/dist/index.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var G = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), K = ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
10
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
11
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
12
|
-
}), q = class {
|
|
1
|
+
import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, u as h } from "./core-wAb1OuYe.js";
|
|
2
|
+
import { PluginArchiveDB as g, db as _, useNativeStore as v } from "@delta-comic/db";
|
|
3
|
+
import { useGlobalVar as y } from "@delta-comic/utils";
|
|
4
|
+
import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, defineComponent as T, h as E, markRaw as D, mergeProps as O, openBlock as k, ref as A, renderList as j, resolveDynamicComponent as M, shallowReactive as N, unref as P, withCtx as F } from "vue";
|
|
5
|
+
import { SourcedKeyMap as I, uni as L } from "@delta-comic/model";
|
|
6
|
+
import { DcAwait as R, DcPopup as z, createDialog as B, createDownloadMessage as V, createForm as H } from "@delta-comic/ui";
|
|
7
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/promise/semaphore.mjs
|
|
8
|
+
var U = class {
|
|
13
9
|
capacity;
|
|
14
10
|
available;
|
|
15
11
|
deferredTasks = [];
|
|
@@ -34,6 +30,8 @@ var G = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), K
|
|
|
34
30
|
this.available < this.capacity && this.available++;
|
|
35
31
|
}
|
|
36
32
|
};
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/array/flatten.mjs
|
|
37
35
|
function ee(e, t = 1) {
|
|
38
36
|
let n = [], r = Math.floor(t), i = (e, t) => {
|
|
39
37
|
for (let a = 0; a < e.length; a++) {
|
|
@@ -43,6 +41,8 @@ function ee(e, t = 1) {
|
|
|
43
41
|
};
|
|
44
42
|
return i(e, 0), n;
|
|
45
43
|
}
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/array/remove.mjs
|
|
46
46
|
function te(e, t) {
|
|
47
47
|
let n = e.slice(), r = [], i = 0;
|
|
48
48
|
for (let a = 0; a < e.length; a++) {
|
|
@@ -58,29 +58,30 @@ function te(e, t) {
|
|
|
58
58
|
}
|
|
59
59
|
return e.length = i, r;
|
|
60
60
|
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
|
|
61
63
|
function ne(e) {
|
|
62
64
|
return typeof e == "symbol" || e instanceof Symbol;
|
|
63
65
|
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
64
68
|
function re(e) {
|
|
65
69
|
return ArrayBuffer.isView(e) && !(e instanceof DataView);
|
|
66
70
|
}
|
|
71
|
+
//#endregion
|
|
72
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
67
73
|
function ie(e) {
|
|
68
74
|
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
69
75
|
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/_internal/isEqualsSameValueZero.mjs
|
|
70
78
|
function ae(e, t) {
|
|
71
79
|
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
72
80
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return typeof e == "string";
|
|
78
|
-
}
|
|
79
|
-
function ce(e) {
|
|
80
|
-
return e === void 0;
|
|
81
|
-
}
|
|
82
|
-
var le = class {
|
|
83
|
-
semaphore = new q(1);
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/promise/mutex.mjs
|
|
83
|
+
var oe = class {
|
|
84
|
+
semaphore = new U(1);
|
|
84
85
|
get isLocked() {
|
|
85
86
|
return this.semaphore.available === 0;
|
|
86
87
|
}
|
|
@@ -91,23 +92,26 @@ var le = class {
|
|
|
91
92
|
this.semaphore.release();
|
|
92
93
|
}
|
|
93
94
|
};
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
function de(e) {
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/_internal/toKey.mjs
|
|
97
|
+
function se(e) {
|
|
98
98
|
return typeof e == "string" || typeof e == "symbol" ? e : Object.is(e?.valueOf?.(), -0) ? "-0" : String(e);
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/util/toString.mjs
|
|
102
|
+
function ce(e) {
|
|
101
103
|
if (e == null) return "";
|
|
102
104
|
if (typeof e == "string") return e;
|
|
103
|
-
if (Array.isArray(e)) return e.map(
|
|
105
|
+
if (Array.isArray(e)) return e.map(ce).join(",");
|
|
104
106
|
let t = String(e);
|
|
105
107
|
return t === "0" && Object.is(Number(e), -0) ? "-0" : t;
|
|
106
108
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/util/toPath.mjs
|
|
111
|
+
function le(e) {
|
|
112
|
+
if (Array.isArray(e)) return e.map(se);
|
|
109
113
|
if (typeof e == "symbol") return [e];
|
|
110
|
-
e =
|
|
114
|
+
e = ce(e);
|
|
111
115
|
let t = [], n = e.length;
|
|
112
116
|
if (n === 0) return t;
|
|
113
117
|
let r = 0, i = "", a = "", o = !1;
|
|
@@ -117,29 +121,39 @@ function pe(e) {
|
|
|
117
121
|
}
|
|
118
122
|
return i && t.push(i), t;
|
|
119
123
|
}
|
|
120
|
-
|
|
124
|
+
//#endregion
|
|
125
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isObject.mjs
|
|
126
|
+
function ue(e) {
|
|
121
127
|
return e !== null && (typeof e == "object" || typeof e == "function");
|
|
122
128
|
}
|
|
123
|
-
|
|
124
|
-
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/_internal/isIndex.mjs
|
|
131
|
+
var de = /^(?:0|[1-9]\d*)$/;
|
|
132
|
+
function fe(e, t = 2 ** 53 - 1) {
|
|
125
133
|
switch (typeof e) {
|
|
126
134
|
case "number": return Number.isInteger(e) && e >= 0 && e < t;
|
|
127
135
|
case "symbol": return !1;
|
|
128
|
-
case "string": return
|
|
136
|
+
case "string": return de.test(e);
|
|
129
137
|
}
|
|
130
138
|
}
|
|
131
|
-
|
|
139
|
+
//#endregion
|
|
140
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
|
|
141
|
+
function pe(e) {
|
|
132
142
|
return typeof e == "object" && !!e && ie(e) === "[object Arguments]";
|
|
133
143
|
}
|
|
134
|
-
|
|
135
|
-
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.mjs
|
|
146
|
+
function me(e, t, n) {
|
|
147
|
+
return ue(n) && (typeof t == "number" && f(n) && fe(t) && t < n.length || typeof t == "string" && t in n) ? ae(n[t], e) : !1;
|
|
136
148
|
}
|
|
137
|
-
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/_internal/compareValues.mjs
|
|
151
|
+
function he(e) {
|
|
138
152
|
return typeof e == "symbol" ? 1 : e === null ? 2 : e === void 0 ? 3 : e === e ? 0 : 4;
|
|
139
153
|
}
|
|
140
|
-
var
|
|
154
|
+
var ge = (e, t, n) => {
|
|
141
155
|
if (e !== t) {
|
|
142
|
-
let r =
|
|
156
|
+
let r = he(e), i = he(t);
|
|
143
157
|
if (r === i && r === 0) {
|
|
144
158
|
if (e < t) return n === "desc" ? 1 : -1;
|
|
145
159
|
if (e > t) return n === "desc" ? -1 : 1;
|
|
@@ -147,673 +161,185 @@ var be = (e, t, n) => {
|
|
|
147
161
|
return n === "desc" ? i - r : r - i;
|
|
148
162
|
}
|
|
149
163
|
return 0;
|
|
150
|
-
},
|
|
151
|
-
function
|
|
152
|
-
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ne(e) ? !0 : typeof e == "string" && (
|
|
164
|
+
}, _e = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ve = /^\w*$/;
|
|
165
|
+
function ye(e, t) {
|
|
166
|
+
return Array.isArray(e) ? !1 : typeof e == "number" || typeof e == "boolean" || e == null || ne(e) ? !0 : typeof e == "string" && (ve.test(e) || !_e.test(e)) || t != null && Object.hasOwn(t, e);
|
|
153
167
|
}
|
|
154
|
-
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/array/orderBy.mjs
|
|
170
|
+
function be(e, t, n, r) {
|
|
155
171
|
if (e == null) return [];
|
|
156
172
|
n = r ? void 0 : n, Array.isArray(e) || (e = Object.values(e)), Array.isArray(t) || (t = t == null ? [null] : [t]), t.length === 0 && (t = [null]), Array.isArray(n) || (n = n == null ? [] : [n]), n = n.map((e) => String(e));
|
|
157
173
|
let i = (e, t) => {
|
|
158
174
|
let n = e;
|
|
159
175
|
for (let e = 0; e < t.length && n != null; ++e) n = n[t[e]];
|
|
160
176
|
return n;
|
|
161
|
-
}, a = (e, t) => t == null || e == null ? t : typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : typeof t == "object" ? t[e] : t, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) ||
|
|
177
|
+
}, a = (e, t) => t == null || e == null ? t : typeof e == "object" && "key" in e ? Object.hasOwn(t, e.key) ? t[e.key] : i(t, e.path) : typeof e == "function" ? e(t) : Array.isArray(e) ? i(t, e) : typeof t == "object" ? t[e] : t, o = t.map((e) => (Array.isArray(e) && e.length === 1 && (e = e[0]), e == null || typeof e == "function" || Array.isArray(e) || ye(e) ? e : {
|
|
162
178
|
key: e,
|
|
163
|
-
path:
|
|
179
|
+
path: le(e)
|
|
164
180
|
}));
|
|
165
181
|
return e.map((e) => ({
|
|
166
182
|
original: e,
|
|
167
183
|
criteria: o.map((t) => a(t, e))
|
|
168
184
|
})).slice().sort((e, t) => {
|
|
169
185
|
for (let r = 0; r < o.length; r++) {
|
|
170
|
-
let i =
|
|
186
|
+
let i = ge(e.criteria[r], t.criteria[r], n[r]);
|
|
171
187
|
if (i !== 0) return i;
|
|
172
188
|
}
|
|
173
189
|
return 0;
|
|
174
190
|
}).map((e) => e.original);
|
|
175
191
|
}
|
|
176
|
-
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/array/sortBy.mjs
|
|
194
|
+
function xe(e, ...t) {
|
|
177
195
|
let n = t.length;
|
|
178
|
-
return n > 1 &&
|
|
196
|
+
return n > 1 && me(e, t[0], t[1]) ? t = [] : n > 2 && me(t[0], t[1], t[2]) && (t = [t[0]]), be(e, ee(t), ["asc"]);
|
|
179
197
|
}
|
|
180
|
-
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
|
|
200
|
+
function Se(e) {
|
|
181
201
|
let t = e?.constructor;
|
|
182
202
|
return e === (typeof t == "function" ? t.prototype : Object.prototype);
|
|
183
203
|
}
|
|
184
|
-
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
|
|
206
|
+
function Ce(e) {
|
|
185
207
|
return re(e);
|
|
186
208
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
for (let n = 0; n < e.length; n++) {
|
|
191
|
-
let [r, i] = e[n];
|
|
192
|
-
t[r] = i;
|
|
193
|
-
}
|
|
194
|
-
return t;
|
|
195
|
-
}
|
|
196
|
-
function ke(e) {
|
|
197
|
-
return typeof e == "function";
|
|
198
|
-
}
|
|
199
|
-
function Ae(e) {
|
|
209
|
+
//#endregion
|
|
210
|
+
//#region ../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
|
|
211
|
+
function we(e) {
|
|
200
212
|
if (e == null) return !0;
|
|
201
|
-
if (
|
|
213
|
+
if (f(e)) return typeof e.splice != "function" && typeof e != "string" && (typeof Buffer > "u" || !Buffer.isBuffer(e)) && !Ce(e) && !pe(e) ? !1 : e.length === 0;
|
|
202
214
|
if (typeof e == "object") {
|
|
203
215
|
if (e instanceof Map || e instanceof Set) return e.size === 0;
|
|
204
216
|
let t = Object.keys(e);
|
|
205
|
-
return
|
|
217
|
+
return Se(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
|
|
206
218
|
}
|
|
207
219
|
return !0;
|
|
208
220
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
off: function(t, n) {
|
|
217
|
-
var r = e.get(t);
|
|
218
|
-
r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
|
|
219
|
-
},
|
|
220
|
-
emit: function(t, n) {
|
|
221
|
-
var r = e.get(t);
|
|
222
|
-
r && r.slice().map(function(e) {
|
|
223
|
-
e(n);
|
|
224
|
-
}), (r = e.get("*")) && r.slice().map(function(e) {
|
|
225
|
-
e(t, n);
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
const Me = je(), Ne = async (e) => {
|
|
231
|
-
if (ke(e)) var t = e(window.$$safe$$);
|
|
232
|
-
else var t = e;
|
|
233
|
-
return console.log("[definePlugin] new plugin defining...", t), await Me.emit("definedPlugin", t), t;
|
|
234
|
-
}, Pe = (e) => ({
|
|
235
|
-
name: {
|
|
236
|
-
display: e["name:display"],
|
|
237
|
-
id: e["name:id"]
|
|
238
|
-
},
|
|
239
|
-
author: e.author ?? "",
|
|
240
|
-
description: e.description,
|
|
241
|
-
require: (e.require ? se(e.require) ? [e.require] : e.require : []).map((e) => {
|
|
242
|
-
let [t, ...n] = e.split(":");
|
|
243
|
-
if (t.startsWith("dc|")) return {
|
|
244
|
-
id: t.replace(/^dc\|/, ""),
|
|
245
|
-
download: n.join(":")
|
|
246
|
-
};
|
|
247
|
-
}).filter((e) => !ce(e)),
|
|
248
|
-
version: {
|
|
249
|
-
plugin: e.version.split("/")[0],
|
|
250
|
-
supportCore: (() => {
|
|
251
|
-
let t = e.version.split("/")[1];
|
|
252
|
-
return e.version.split("/")[2] ? t.replaceAll(">=", "^") : t;
|
|
253
|
-
})()
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
var Fe = new WeakMap(), Ie = (...e) => {
|
|
257
|
-
let t = e[0], n = p()?.proxy ?? m();
|
|
258
|
-
if (n == null && !g()) throw Error("injectLocal must be called in setup");
|
|
259
|
-
return n && Fe.has(n) && t in Fe.get(n) ? Fe.get(n)[t] : _(...e);
|
|
260
|
-
}, Le = typeof window < "u" && typeof document < "u";
|
|
261
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
262
|
-
var Re = Object.prototype.toString, ze = (e) => Re.call(e) === "[object Object]", Be = () => {};
|
|
263
|
-
function Ve(e) {
|
|
264
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
265
|
-
}
|
|
266
|
-
function He(e) {
|
|
267
|
-
return Array.isArray(e) ? e : [e];
|
|
268
|
-
}
|
|
269
|
-
function Ue(e, t, n) {
|
|
270
|
-
return j(e, t, {
|
|
271
|
-
...n,
|
|
272
|
-
immediate: !0
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
function We(e, t, n) {
|
|
276
|
-
let r;
|
|
277
|
-
r = v(n) ? { evaluating: n } : n || {};
|
|
278
|
-
let { lazy: i = !1, flush: a = "sync", evaluating: o = void 0, shallow: c = !0, onError: l = globalThis.reportError ?? Be } = r, u = O(!i), d = c ? O(t) : w(t), f = 0;
|
|
279
|
-
return M(async (t) => {
|
|
280
|
-
if (!u.value) return;
|
|
281
|
-
f++;
|
|
282
|
-
let n = f, r = !1;
|
|
283
|
-
o && Promise.resolve().then(() => {
|
|
284
|
-
o.value = !0;
|
|
285
|
-
});
|
|
286
|
-
try {
|
|
287
|
-
let i = await e((e) => {
|
|
288
|
-
t(() => {
|
|
289
|
-
o && (o.value = !1), r || e();
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
n === f && (d.value = i);
|
|
293
|
-
} catch (e) {
|
|
294
|
-
l(e);
|
|
295
|
-
} finally {
|
|
296
|
-
o && n === f && (o.value = !1), r = !0;
|
|
297
|
-
}
|
|
298
|
-
}, { flush: a }), i ? s(() => (u.value = !0, d.value)) : d;
|
|
299
|
-
}
|
|
300
|
-
var Ge = Le ? window : void 0;
|
|
301
|
-
Le && window.document, Le && window.navigator, Le && window.location;
|
|
302
|
-
function Ke(e) {
|
|
303
|
-
let t = k(e);
|
|
304
|
-
return t?.$el ?? t;
|
|
305
|
-
}
|
|
306
|
-
function qe(...e) {
|
|
307
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = s(() => {
|
|
308
|
-
let t = He(k(e[0])).filter((e) => e != null);
|
|
309
|
-
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
310
|
-
});
|
|
311
|
-
return Ue(() => [
|
|
312
|
-
n.value?.map((e) => Ke(e)) ?? [Ge].filter((e) => e != null),
|
|
313
|
-
He(k(n.value ? e[1] : e[0])),
|
|
314
|
-
He(A(n.value ? e[2] : e[1])),
|
|
315
|
-
k(n.value ? e[3] : e[2])
|
|
316
|
-
], ([e, n, r, i], a, o) => {
|
|
317
|
-
if (!e?.length || !n?.length || !r?.length) return;
|
|
318
|
-
let s = ze(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
319
|
-
o(() => {
|
|
320
|
-
c.forEach((e) => e());
|
|
321
|
-
});
|
|
322
|
-
}, { flush: "post" });
|
|
323
|
-
}
|
|
324
|
-
function Je() {
|
|
325
|
-
let e = O(!1), t = p();
|
|
326
|
-
return t && x(() => {
|
|
327
|
-
e.value = !0;
|
|
328
|
-
}, t), e;
|
|
329
|
-
}
|
|
330
|
-
function Ye(e) {
|
|
331
|
-
let t = Je();
|
|
332
|
-
return s(() => (t.value, !!e()));
|
|
333
|
-
}
|
|
334
|
-
var Xe = Symbol("vueuse-ssr-width");
|
|
335
|
-
function Ze() {
|
|
336
|
-
let e = g() ? Ie(Xe, null) : null;
|
|
337
|
-
return typeof e == "number" ? e : void 0;
|
|
338
|
-
}
|
|
339
|
-
function Qe(e, t = {}) {
|
|
340
|
-
let { window: n = Ge, ssrWidth: r = Ze() } = t, i = Ye(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), a = O(typeof r == "number"), o = O(), c = O(!1);
|
|
341
|
-
return M(() => {
|
|
342
|
-
if (a.value) {
|
|
343
|
-
a.value = !i.value, c.value = k(e).split(",").some((e) => {
|
|
344
|
-
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
|
|
345
|
-
return n && a && (a = r >= Ve(n[1])), i && a && (a = r <= Ve(i[1])), t ? !a : a;
|
|
346
|
-
});
|
|
347
|
-
return;
|
|
348
|
-
}
|
|
349
|
-
i.value && (o.value = n.matchMedia(k(e)), c.value = o.value.matches);
|
|
350
|
-
}), qe(o, "change", (e) => {
|
|
351
|
-
c.value = e.matches;
|
|
352
|
-
}, { passive: !0 }), s(() => c.value);
|
|
353
|
-
}
|
|
354
|
-
function $e(e) {
|
|
355
|
-
return Qe("(prefers-color-scheme: dark)", e);
|
|
356
|
-
}
|
|
357
|
-
var et = class {
|
|
358
|
-
constructor(e, t, n) {
|
|
359
|
-
this.pluginName = e, this.config = t, this.configName = n, this.key = Symbol.for(`config:${e}`);
|
|
360
|
-
}
|
|
361
|
-
key;
|
|
362
|
-
};
|
|
363
|
-
const tt = a(new et("core", {
|
|
364
|
-
recordHistory: {
|
|
365
|
-
type: "switch",
|
|
366
|
-
defaultValue: !0,
|
|
367
|
-
info: "记录历史记录"
|
|
368
|
-
},
|
|
369
|
-
showAIProject: {
|
|
370
|
-
type: "switch",
|
|
371
|
-
defaultValue: !0,
|
|
372
|
-
info: "展示AI作品"
|
|
373
|
-
},
|
|
374
|
-
darkMode: {
|
|
375
|
-
type: "radio",
|
|
376
|
-
defaultValue: "system",
|
|
377
|
-
info: "暗色模式配置",
|
|
378
|
-
comp: "select",
|
|
379
|
-
selects: [
|
|
380
|
-
{
|
|
381
|
-
label: "浅色",
|
|
382
|
-
value: "light"
|
|
383
|
-
},
|
|
384
|
-
{
|
|
385
|
-
label: "暗色",
|
|
386
|
-
value: "dark"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
label: "跟随系统",
|
|
390
|
-
value: "system"
|
|
391
|
-
}
|
|
392
|
-
]
|
|
393
|
-
},
|
|
394
|
-
easilyTitle: {
|
|
395
|
-
type: "switch",
|
|
396
|
-
defaultValue: !1,
|
|
397
|
-
info: "简化标题(实验)"
|
|
398
|
-
},
|
|
399
|
-
githubToken: {
|
|
400
|
-
type: "string",
|
|
401
|
-
defaultValue: "",
|
|
402
|
-
info: "github的token",
|
|
403
|
-
placeholder: "仅用于解除api访问限制"
|
|
404
|
-
}
|
|
405
|
-
}, "核心"), "core/plugin/config"), nt = P("config", (e) => {
|
|
406
|
-
let t = D(new Map()), n = e.action((e) => {
|
|
407
|
-
let n = t.get(e.key);
|
|
408
|
-
if (!n) throw Error(`not found config by plugin "${e.pluginName}"`);
|
|
409
|
-
return n.value;
|
|
410
|
-
}, "load"), r = $e(), a = s(() => {
|
|
411
|
-
if (!o(tt)) return r.value;
|
|
412
|
-
switch (n(tt).value.darkMode) {
|
|
413
|
-
case "light": return !1;
|
|
414
|
-
case "dark": return !0;
|
|
415
|
-
case "system": return r.value;
|
|
416
|
-
default: return !1;
|
|
417
|
-
}
|
|
418
|
-
}), o = e.action((e) => t.has(e.key), "isExistConfig");
|
|
419
|
-
return {
|
|
420
|
-
isDark: a,
|
|
421
|
-
form: t,
|
|
422
|
-
$load: n,
|
|
423
|
-
$isExistConfig: o,
|
|
424
|
-
$resignerConfig: e.action((e) => {
|
|
425
|
-
let t = nt(), n = i(e.pluginName, "config", Oe(Object.entries(e.config).map(([e, t]) => [e, t.defaultValue])));
|
|
426
|
-
t.form.set(e.key, {
|
|
427
|
-
form: e.config,
|
|
428
|
-
value: n
|
|
429
|
-
});
|
|
430
|
-
}, "resignerConfig")
|
|
431
|
-
};
|
|
432
|
-
}), rt = (e) => Symbol.for(`expose:${e}`), it = (e) => at.get(e), at = new Map(), J = a(new class {
|
|
433
|
-
share = D(I.create());
|
|
434
|
-
shareToken = D(I.create());
|
|
435
|
-
userActions = D(I.create());
|
|
436
|
-
subscribes = D(I.create());
|
|
437
|
-
globalNodes = D([]);
|
|
438
|
-
tabbar = D(new Map());
|
|
221
|
+
var W = y(new class {
|
|
222
|
+
share = N(I.createReactive());
|
|
223
|
+
shareToken = N(I.createReactive());
|
|
224
|
+
userActions = N(I.createReactive());
|
|
225
|
+
subscribes = N(I.createReactive());
|
|
226
|
+
globalNodes = N([]);
|
|
227
|
+
tabbar = N(/* @__PURE__ */ new Map());
|
|
439
228
|
addTabbar(e, ...t) {
|
|
440
229
|
let n = this.tabbar.get(e) ?? [];
|
|
441
230
|
this.tabbar.set(e, n.concat(t));
|
|
442
231
|
}
|
|
443
|
-
categories =
|
|
232
|
+
categories = N(/* @__PURE__ */ new Map());
|
|
444
233
|
addCategories(e, ...t) {
|
|
445
234
|
let n = this.categories.get(e) ?? [];
|
|
446
235
|
this.categories.set(e, n.concat(t));
|
|
447
236
|
}
|
|
448
|
-
barcode =
|
|
237
|
+
barcode = N(/* @__PURE__ */ new Map());
|
|
449
238
|
addBarcode(e, ...t) {
|
|
450
239
|
let n = this.barcode.get(e) ?? [];
|
|
451
240
|
this.barcode.set(e, n.concat(t));
|
|
452
241
|
}
|
|
453
|
-
levelboard =
|
|
242
|
+
levelboard = N(/* @__PURE__ */ new Map());
|
|
454
243
|
addLevelboard(e, ...t) {
|
|
455
244
|
let n = this.levelboard.get(e) ?? [];
|
|
456
245
|
this.levelboard.set(e, n.concat(t));
|
|
457
246
|
}
|
|
458
|
-
topButton =
|
|
247
|
+
topButton = N(/* @__PURE__ */ new Map());
|
|
459
248
|
addTopButton(e, ...t) {
|
|
460
249
|
let n = this.topButton.get(e) ?? [];
|
|
461
250
|
this.topButton.set(e, n.concat(t));
|
|
462
251
|
}
|
|
463
|
-
mainLists =
|
|
252
|
+
mainLists = N(/* @__PURE__ */ new Map());
|
|
464
253
|
addMainList(e, ...t) {
|
|
465
254
|
let n = this.mainLists.get(e) ?? [];
|
|
466
255
|
this.mainLists.set(e, n.concat(t));
|
|
467
256
|
}
|
|
468
|
-
envExtends =
|
|
257
|
+
envExtends = N(/* @__PURE__ */ new Set());
|
|
469
258
|
}(), "core/global");
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
function i(e, t) {
|
|
474
|
-
if (!r[e]) {
|
|
475
|
-
r[e] = {};
|
|
476
|
-
for (var n = 0; n < e.length; n++) r[e][e.charAt(n)] = n;
|
|
477
|
-
}
|
|
478
|
-
return r[e][t];
|
|
479
|
-
}
|
|
480
|
-
var a = {
|
|
481
|
-
compressToBase64: function(e) {
|
|
482
|
-
if (e == null) return "";
|
|
483
|
-
var n = a._compress(e, 6, function(e) {
|
|
484
|
-
return t.charAt(e);
|
|
485
|
-
});
|
|
486
|
-
switch (n.length % 4) {
|
|
487
|
-
default:
|
|
488
|
-
case 0: return n;
|
|
489
|
-
case 1: return n + "===";
|
|
490
|
-
case 2: return n + "==";
|
|
491
|
-
case 3: return n + "=";
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
decompressFromBase64: function(e) {
|
|
495
|
-
return e == null ? "" : e == "" ? null : a._decompress(e.length, 32, function(n) {
|
|
496
|
-
return i(t, e.charAt(n));
|
|
497
|
-
});
|
|
498
|
-
},
|
|
499
|
-
compressToUTF16: function(t) {
|
|
500
|
-
return t == null ? "" : a._compress(t, 15, function(t) {
|
|
501
|
-
return e(t + 32);
|
|
502
|
-
}) + " ";
|
|
503
|
-
},
|
|
504
|
-
decompressFromUTF16: function(e) {
|
|
505
|
-
return e == null ? "" : e == "" ? null : a._decompress(e.length, 16384, function(t) {
|
|
506
|
-
return e.charCodeAt(t) - 32;
|
|
507
|
-
});
|
|
508
|
-
},
|
|
509
|
-
compressToUint8Array: function(e) {
|
|
510
|
-
for (var t = a.compress(e), n = new Uint8Array(t.length * 2), r = 0, i = t.length; r < i; r++) {
|
|
511
|
-
var o = t.charCodeAt(r);
|
|
512
|
-
n[r * 2] = o >>> 8, n[r * 2 + 1] = o % 256;
|
|
513
|
-
}
|
|
514
|
-
return n;
|
|
515
|
-
},
|
|
516
|
-
decompressFromUint8Array: function(t) {
|
|
517
|
-
if (t == null) return a.decompress(t);
|
|
518
|
-
for (var n = Array(t.length / 2), r = 0, i = n.length; r < i; r++) n[r] = t[r * 2] * 256 + t[r * 2 + 1];
|
|
519
|
-
var o = [];
|
|
520
|
-
return n.forEach(function(t) {
|
|
521
|
-
o.push(e(t));
|
|
522
|
-
}), a.decompress(o.join(""));
|
|
523
|
-
},
|
|
524
|
-
compressToEncodedURIComponent: function(e) {
|
|
525
|
-
return e == null ? "" : a._compress(e, 6, function(e) {
|
|
526
|
-
return n.charAt(e);
|
|
527
|
-
});
|
|
528
|
-
},
|
|
529
|
-
decompressFromEncodedURIComponent: function(e) {
|
|
530
|
-
return e == null ? "" : e == "" ? null : (e = e.replace(/ /g, "+"), a._decompress(e.length, 32, function(t) {
|
|
531
|
-
return i(n, e.charAt(t));
|
|
532
|
-
}));
|
|
533
|
-
},
|
|
534
|
-
compress: function(t) {
|
|
535
|
-
return a._compress(t, 16, function(t) {
|
|
536
|
-
return e(t);
|
|
537
|
-
});
|
|
538
|
-
},
|
|
539
|
-
_compress: function(e, t, n) {
|
|
540
|
-
if (e == null) return "";
|
|
541
|
-
var r, i, a = {}, o = {}, s = "", c = "", l = "", u = 2, d = 3, f = 2, p = [], m = 0, h = 0, g;
|
|
542
|
-
for (g = 0; g < e.length; g += 1) if (s = e.charAt(g), Object.prototype.hasOwnProperty.call(a, s) || (a[s] = d++, o[s] = !0), c = l + s, Object.prototype.hasOwnProperty.call(a, c)) l = c;
|
|
543
|
-
else {
|
|
544
|
-
if (Object.prototype.hasOwnProperty.call(o, l)) {
|
|
545
|
-
if (l.charCodeAt(0) < 256) {
|
|
546
|
-
for (r = 0; r < f; r++) m <<= 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++;
|
|
547
|
-
for (i = l.charCodeAt(0), r = 0; r < 8; r++) m = m << 1 | i & 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i >>= 1;
|
|
548
|
-
} else {
|
|
549
|
-
for (i = 1, r = 0; r < f; r++) m = m << 1 | i, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i = 0;
|
|
550
|
-
for (i = l.charCodeAt(0), r = 0; r < 16; r++) m = m << 1 | i & 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i >>= 1;
|
|
551
|
-
}
|
|
552
|
-
u--, u == 0 && (u = 2 ** f, f++), delete o[l];
|
|
553
|
-
} else for (i = a[l], r = 0; r < f; r++) m = m << 1 | i & 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i >>= 1;
|
|
554
|
-
u--, u == 0 && (u = 2 ** f, f++), a[c] = d++, l = String(s);
|
|
555
|
-
}
|
|
556
|
-
if (l !== "") {
|
|
557
|
-
if (Object.prototype.hasOwnProperty.call(o, l)) {
|
|
558
|
-
if (l.charCodeAt(0) < 256) {
|
|
559
|
-
for (r = 0; r < f; r++) m <<= 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++;
|
|
560
|
-
for (i = l.charCodeAt(0), r = 0; r < 8; r++) m = m << 1 | i & 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i >>= 1;
|
|
561
|
-
} else {
|
|
562
|
-
for (i = 1, r = 0; r < f; r++) m = m << 1 | i, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i = 0;
|
|
563
|
-
for (i = l.charCodeAt(0), r = 0; r < 16; r++) m = m << 1 | i & 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i >>= 1;
|
|
564
|
-
}
|
|
565
|
-
u--, u == 0 && (u = 2 ** f, f++), delete o[l];
|
|
566
|
-
} else for (i = a[l], r = 0; r < f; r++) m = m << 1 | i & 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i >>= 1;
|
|
567
|
-
u--, u == 0 && (u = 2 ** f, f++);
|
|
568
|
-
}
|
|
569
|
-
for (i = 2, r = 0; r < f; r++) m = m << 1 | i & 1, h == t - 1 ? (h = 0, p.push(n(m)), m = 0) : h++, i >>= 1;
|
|
570
|
-
for (;;) if (m <<= 1, h == t - 1) {
|
|
571
|
-
p.push(n(m));
|
|
572
|
-
break;
|
|
573
|
-
} else h++;
|
|
574
|
-
return p.join("");
|
|
575
|
-
},
|
|
576
|
-
decompress: function(e) {
|
|
577
|
-
return e == null ? "" : e == "" ? null : a._decompress(e.length, 32768, function(t) {
|
|
578
|
-
return e.charCodeAt(t);
|
|
579
|
-
});
|
|
580
|
-
},
|
|
581
|
-
_decompress: function(t, n, r) {
|
|
582
|
-
var i = [], a = 4, o = 4, s = 3, c = "", l = [], u, d, f, p, m, h, g, _ = {
|
|
583
|
-
val: r(0),
|
|
584
|
-
position: n,
|
|
585
|
-
index: 1
|
|
586
|
-
};
|
|
587
|
-
for (u = 0; u < 3; u += 1) i[u] = u;
|
|
588
|
-
for (f = 0, m = 2 ** 2, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0 ? 1 : 0) * h, h <<= 1;
|
|
589
|
-
switch (f) {
|
|
590
|
-
case 0:
|
|
591
|
-
for (f = 0, m = 2 ** 8, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0 ? 1 : 0) * h, h <<= 1;
|
|
592
|
-
g = e(f);
|
|
593
|
-
break;
|
|
594
|
-
case 1:
|
|
595
|
-
for (f = 0, m = 2 ** 16, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0 ? 1 : 0) * h, h <<= 1;
|
|
596
|
-
g = e(f);
|
|
597
|
-
break;
|
|
598
|
-
case 2: return "";
|
|
599
|
-
}
|
|
600
|
-
for (i[3] = g, d = g, l.push(g);;) {
|
|
601
|
-
if (_.index > t) return "";
|
|
602
|
-
for (f = 0, m = 2 ** s, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0 ? 1 : 0) * h, h <<= 1;
|
|
603
|
-
switch (g = f) {
|
|
604
|
-
case 0:
|
|
605
|
-
for (f = 0, m = 2 ** 8, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0 ? 1 : 0) * h, h <<= 1;
|
|
606
|
-
i[o++] = e(f), g = o - 1, a--;
|
|
607
|
-
break;
|
|
608
|
-
case 1:
|
|
609
|
-
for (f = 0, m = 2 ** 16, h = 1; h != m;) p = _.val & _.position, _.position >>= 1, _.position == 0 && (_.position = n, _.val = r(_.index++)), f |= (p > 0 ? 1 : 0) * h, h <<= 1;
|
|
610
|
-
i[o++] = e(f), g = o - 1, a--;
|
|
611
|
-
break;
|
|
612
|
-
case 2: return l.join("");
|
|
613
|
-
}
|
|
614
|
-
if (a == 0 && (a = 2 ** s, s++), i[g]) c = i[g];
|
|
615
|
-
else if (g === o) c = d + d.charAt(0);
|
|
616
|
-
else return null;
|
|
617
|
-
l.push(c), i[o++] = d + c.charAt(0), a--, d = c, a == 0 && (a = 2 ** s, s++);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
return a;
|
|
622
|
-
})();
|
|
623
|
-
typeof define == "function" && define.amd ? define(function() {
|
|
624
|
-
return n;
|
|
625
|
-
}) : t !== void 0 && t != null ? t.exports = n : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
|
|
626
|
-
return n;
|
|
627
|
-
});
|
|
628
|
-
}))();
|
|
629
|
-
const st = () => d("svg", {
|
|
630
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
631
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
632
|
-
viewBox: "0 0 24 24"
|
|
633
|
-
}, [
|
|
634
|
-
d("path", {
|
|
635
|
-
d: "M5 5c-.55 0-1 .45-1 1v15c0 1.1.9 2 2 2h9c.55 0 1-.45 1-1s-.45-1-1-1H6V6c0-.55-.45-1-1-1z",
|
|
636
|
-
fill: "currentColor"
|
|
637
|
-
}, null),
|
|
638
|
-
d("path", {
|
|
639
|
-
d: "M18 1h-8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 14h-8V5h8v10z",
|
|
640
|
-
fill: "currentColor"
|
|
641
|
-
}, null),
|
|
642
|
-
d("path", {
|
|
643
|
-
d: "M12.5 10.25h2v.54c0 .45.54.67.85.35l1.29-1.29c.2-.2.2-.51 0-.71l-1.29-1.29a.5.5 0 0 0-.85.35v.54H12c-.55 0-1 .45-1 1v1.5c0 .41.34.75.75.75s.75-.34.75-.75v-.99z",
|
|
644
|
-
fill: "currentColor"
|
|
645
|
-
}, null)
|
|
646
|
-
]), ct = () => d("svg", {
|
|
647
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
648
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
649
|
-
viewBox: "0 0 1024 1024"
|
|
650
|
-
}, [d("path", {
|
|
651
|
-
d: "M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3L589 164.6L836 188l23.4 247l-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88s88-39.5 88-88s-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z",
|
|
652
|
-
fill: "currentColor"
|
|
653
|
-
}, null)]), lt = a(P("plugin", (e) => {
|
|
654
|
-
let t = D(new Map()), n = C({}), i = We(async () => Object.fromEntries((await r.value.selectFrom("plugin").select(["pluginName", "displayName"]).execute()).map((e) => [e.pluginName, e.displayName])), {}), a = s(() => Array.from(t.values()).filter((e) => e.search?.methods).map((e) => [e.name, Object.entries(e.search?.methods ?? {})]));
|
|
655
|
-
return {
|
|
656
|
-
$getPluginDisplayName: e.action((e) => i.value[e] || e, "getPluginDisplayName"),
|
|
657
|
-
plugins: t,
|
|
658
|
-
allSearchSource: a,
|
|
659
|
-
pluginSteps: n
|
|
660
|
-
};
|
|
661
|
-
}), "core/plugin/store"), ut = () => Ne({
|
|
662
|
-
name: Y,
|
|
663
|
-
config: [tt],
|
|
664
|
-
onBooted: () => {
|
|
665
|
-
R.define(async (t) => await e.countDb(r.value.selectFrom("subscribe").where("key", "=", n.key.toString([t.$$plugin, t.label]))) > 0, Y, "getIsAuthorSubscribe"), R.define(async (e) => {
|
|
666
|
-
await n.upsert({
|
|
667
|
-
key: n.key.toString([e.$$plugin, e.label]),
|
|
668
|
-
author: e,
|
|
669
|
-
plugin: e.$$plugin,
|
|
670
|
-
type: "author",
|
|
671
|
-
itemKey: null
|
|
672
|
-
});
|
|
673
|
-
}, Y, "addAuthorSubscribe"), R.define(async (e) => {
|
|
674
|
-
await r.value.deleteFrom("subscribe").where("key", "=", n.key.toString([e.$$plugin, e.label])).execute();
|
|
675
|
-
}, Y, "removeAuthorSubscribe");
|
|
676
|
-
},
|
|
677
|
-
share: {
|
|
678
|
-
initiative: [{
|
|
679
|
-
filter: () => !0,
|
|
680
|
-
icon: ct,
|
|
681
|
-
key: "token",
|
|
682
|
-
name: "复制口令",
|
|
683
|
-
async call(e) {
|
|
684
|
-
let t = e.union.value.toJSON(), n = (0, ot.compressToEncodedURIComponent)(JSON.stringify({
|
|
685
|
-
item: {
|
|
686
|
-
contentType: L.content.ContentPage.contentPage.toString(t.contentType),
|
|
687
|
-
ep: t.thisEp.index,
|
|
688
|
-
name: t.title
|
|
689
|
-
},
|
|
690
|
-
plugin: e.plugin,
|
|
691
|
-
id: e.id
|
|
692
|
-
}));
|
|
693
|
-
await R.call("pushShareToken", `[${e.union.value?.title}](复制这条口令,打开Delta Comic)${n}`);
|
|
694
|
-
}
|
|
695
|
-
}, {
|
|
696
|
-
filter: () => !0,
|
|
697
|
-
icon: st,
|
|
698
|
-
key: "native",
|
|
699
|
-
name: "原生分享",
|
|
700
|
-
async call(e) {
|
|
701
|
-
let t = e.union.value.toJSON(), n = (0, ot.compressToEncodedURIComponent)(JSON.stringify({
|
|
702
|
-
item: {
|
|
703
|
-
contentType: L.content.ContentPage.contentPage.toString(t.contentType),
|
|
704
|
-
ep: t.thisEp.index,
|
|
705
|
-
name: t.title
|
|
706
|
-
},
|
|
707
|
-
plugin: e.plugin,
|
|
708
|
-
id: e.id
|
|
709
|
-
})), r = `[${e.union.value?.title}](复制这条口令,打开Delta Comic)${n}`;
|
|
710
|
-
await navigator.share({
|
|
711
|
-
title: "Delta Comic内容分享",
|
|
712
|
-
text: r
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
}],
|
|
716
|
-
tokenListen: [{
|
|
717
|
-
key: "token",
|
|
718
|
-
name: "默认口令",
|
|
719
|
-
patten(e) {
|
|
720
|
-
return /^\[.+\]\(复制这条口令,打开Delta Comic\).+/.test(e);
|
|
721
|
-
},
|
|
722
|
-
show(e) {
|
|
723
|
-
let t = lt(), n = JSON.parse((0, ot.decompressFromEncodedURIComponent)(e.replace(/^\[.+\]/, "").replaceAll("(复制这条口令,打开Delta Comic)", "")));
|
|
724
|
-
return {
|
|
725
|
-
title: "口令",
|
|
726
|
-
detail: `发现分享的内容: ${n.item.name},需要的插件: ${t.$getPluginDisplayName(n.plugin)}`,
|
|
727
|
-
onNegative() {},
|
|
728
|
-
onPositive() {
|
|
729
|
-
return R.call("routeToContent", n.item.contentType, n.id, n.item.ep);
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
}]
|
|
734
|
-
}
|
|
735
|
-
}), Y = "core";
|
|
736
|
-
a(rt(Y), "core/plugin/coreFlag");
|
|
737
|
-
function dt(e, t, n, r) {
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region ../../node_modules/.pnpm/@tauri-apps+api@2.10.1/node_modules/@tauri-apps/api/external/tslib/tslib.es6.js
|
|
261
|
+
function Te(e, t, n, r) {
|
|
738
262
|
if (n === "a" && !r) throw TypeError("Private accessor was defined without a getter");
|
|
739
263
|
if (typeof t == "function" ? e !== t || !r : !t.has(e)) throw TypeError("Cannot read private member from an object whose class did not declare it");
|
|
740
264
|
return n === "m" ? r : n === "a" ? r.call(e) : r ? r.value : t.get(e);
|
|
741
265
|
}
|
|
742
|
-
function
|
|
266
|
+
function Ee(e, t, n, r, i) {
|
|
743
267
|
if (r === "m") throw TypeError("Private method is not writable");
|
|
744
268
|
if (r === "a" && !i) throw TypeError("Private accessor was defined without a setter");
|
|
745
269
|
if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw TypeError("Cannot write private member to an object whose class did not declare it");
|
|
746
270
|
return r === "a" ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
747
271
|
}
|
|
748
|
-
|
|
749
|
-
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region ../../node_modules/.pnpm/@tauri-apps+api@2.10.1/node_modules/@tauri-apps/api/core.js
|
|
274
|
+
var De;
|
|
275
|
+
async function G(e, t = {}, n) {
|
|
750
276
|
return window.__TAURI_INTERNALS__.invoke(e, t, n);
|
|
751
277
|
}
|
|
752
|
-
function
|
|
278
|
+
function Oe(e, t = "asset") {
|
|
753
279
|
return window.__TAURI_INTERNALS__.convertFileSrc(e, t);
|
|
754
280
|
}
|
|
755
|
-
var
|
|
281
|
+
var ke = class {
|
|
756
282
|
get rid() {
|
|
757
|
-
return
|
|
283
|
+
return Te(this, De, "f");
|
|
758
284
|
}
|
|
759
285
|
constructor(e) {
|
|
760
|
-
|
|
286
|
+
De.set(this, void 0), Ee(this, De, e, "f");
|
|
761
287
|
}
|
|
762
288
|
async close() {
|
|
763
|
-
return
|
|
289
|
+
return G("plugin:resources|close", { rid: this.rid });
|
|
764
290
|
}
|
|
765
291
|
};
|
|
766
|
-
|
|
767
|
-
|
|
292
|
+
De = /* @__PURE__ */ new WeakMap();
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region ../../node_modules/.pnpm/@tauri-apps+api@2.10.1/node_modules/@tauri-apps/api/path.js
|
|
295
|
+
var Ae;
|
|
768
296
|
(function(e) {
|
|
769
297
|
e[e.Audio = 1] = "Audio", e[e.Cache = 2] = "Cache", e[e.Config = 3] = "Config", e[e.Data = 4] = "Data", e[e.LocalData = 5] = "LocalData", e[e.Document = 6] = "Document", e[e.Download = 7] = "Download", e[e.Picture = 8] = "Picture", e[e.Public = 9] = "Public", e[e.Video = 10] = "Video", e[e.Resource = 11] = "Resource", e[e.Temp = 12] = "Temp", e[e.AppConfig = 13] = "AppConfig", e[e.AppData = 14] = "AppData", e[e.AppLocalData = 15] = "AppLocalData", e[e.AppCache = 16] = "AppCache", e[e.AppLog = 17] = "AppLog", e[e.Desktop = 18] = "Desktop", e[e.Executable = 19] = "Executable", e[e.Font = 20] = "Font", e[e.Home = 21] = "Home", e[e.Runtime = 22] = "Runtime", e[e.Template = 23] = "Template";
|
|
770
|
-
})(
|
|
771
|
-
async function
|
|
772
|
-
return
|
|
298
|
+
})(Ae ||= {});
|
|
299
|
+
async function je() {
|
|
300
|
+
return G("plugin:path|resolve_directory", { directory: Ae.AppLocalData });
|
|
773
301
|
}
|
|
774
|
-
async function
|
|
775
|
-
return
|
|
302
|
+
async function Me(...e) {
|
|
303
|
+
return G("plugin:path|join", { paths: e });
|
|
776
304
|
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
var
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region lib/driver/init/utils.ts
|
|
307
|
+
var Ne = await je(), Pe = async (e) => await Me(Ne, "plugin", e), Fe = class {}, Ie = class {}, Le = class {}, Re = new class extends Le {
|
|
780
308
|
name = "预设值";
|
|
781
309
|
async call(e, t) {
|
|
782
310
|
console.log("[PluginBooter->_ConfigSetter] new plugin defining...", e), t("预设值设定中");
|
|
783
|
-
let { name: n, content: r, resource: i, search: a, user: o, subscribe: s, share:
|
|
784
|
-
if (r) for (let [e, { commentRow: t, contentPage: n, itemCard: i, layout: a, itemTranslator: o }] of Object.entries(r)) a && L.content.ContentPage.
|
|
311
|
+
let { name: n, content: r, resource: i, search: a, user: o, subscribe: s, share: l } = e;
|
|
312
|
+
if (r) for (let [e, { commentRow: t, contentPage: n, itemCard: i, layout: a, itemTranslator: o }] of Object.entries(r)) a && L.content.ContentPage.layouts.set(e, a), i && L.item.Item.itemCards.set(e, i), n && L.content.ContentPage.contentPages.set(e, n), t && L.comment.Comment.commentRow.set(e, t), o && L.item.Item.itemTranslator.set(e, o);
|
|
785
313
|
if (i) {
|
|
786
314
|
if (i.types) for (let e of i.types) L.resource.Resource.fork.set([n, e.type], e);
|
|
787
315
|
if (i.process) for (let [e, t] of Object.entries(i.process)) L.resource.Resource.processInstances.set([n, e], t);
|
|
788
316
|
}
|
|
789
317
|
if (a) {
|
|
790
|
-
if (a.categories) for (let e of a.categories)
|
|
791
|
-
if (a.tabbar) for (let e of a.tabbar)
|
|
318
|
+
if (a.categories) for (let e of a.categories) W.addCategories(n, e);
|
|
319
|
+
if (a.tabbar) for (let e of a.tabbar) W.addTabbar(n, e);
|
|
792
320
|
if (a.hotPage) {
|
|
793
|
-
for (let e of a.hotPage.mainListCard ?? [])
|
|
794
|
-
for (let e of a.hotPage.levelBoard ?? [])
|
|
795
|
-
for (let e of a.hotPage.topButton ?? [])
|
|
321
|
+
for (let e of a.hotPage.mainListCard ?? []) W.addMainList(n, e);
|
|
322
|
+
for (let e of a.hotPage.levelBoard ?? []) W.addLevelboard(n, e);
|
|
323
|
+
for (let e of a.hotPage.topButton ?? []) W.addTopButton(n, e);
|
|
796
324
|
}
|
|
797
|
-
if (a.barcode) for (let e of a.barcode ?? [])
|
|
325
|
+
if (a.barcode) for (let e of a.barcode ?? []) W.addBarcode(n, e);
|
|
798
326
|
}
|
|
799
327
|
if (o) {
|
|
800
|
-
if (o.edit && L.user.User.userEditorBase.set(n, o.edit), o.userActions) for (let [e, t] of Object.entries(o.userActions))
|
|
328
|
+
if (o.card && L.user.User.userCards.set(n, o.card), o.edit && L.user.User.userEditorBase.set(n, o.edit), o.userActions) for (let [e, t] of Object.entries(o.userActions)) W.userActions.set([n, e], t);
|
|
801
329
|
if (o.authorIcon) for (let [e, t] of Object.entries(o.authorIcon)) L.item.Item.authorIcon.set([n, e], t);
|
|
802
330
|
}
|
|
803
|
-
if (s) for (let [e, t] of Object.entries(s))
|
|
804
|
-
if (e.config) for (let t of e.config)
|
|
805
|
-
if (
|
|
806
|
-
for (let e of
|
|
807
|
-
for (let e of
|
|
331
|
+
if (s) for (let [e, t] of Object.entries(s)) W.subscribes.set([n, e], t);
|
|
332
|
+
if (e.config) for (let t of e.config) c().$resignerConfig(t);
|
|
333
|
+
if (l) {
|
|
334
|
+
for (let e of l.initiative ?? []) W.share.set([n, e.key], e);
|
|
335
|
+
for (let e of l.tokenListen ?? []) W.shareToken.set([n, e.key], e);
|
|
808
336
|
}
|
|
809
337
|
}
|
|
810
|
-
}()
|
|
811
|
-
const Ct = async (e) => await Tt(await e.forks(), e.test), wt = (e) => {
|
|
338
|
+
}(), ze = async (e) => await Ve(await e.forks(), e.test), Be = (e) => {
|
|
812
339
|
let t = e.urls;
|
|
813
|
-
return
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
if (Ae(e)) throw Error("[plugin test] no fork found");
|
|
340
|
+
return Ve(t, e.test);
|
|
341
|
+
}, Ve = async (e, t) => {
|
|
342
|
+
if (we(e)) throw Error("[plugin test] no fork found");
|
|
817
343
|
let n = [], r = new AbortController();
|
|
818
344
|
try {
|
|
819
345
|
await Promise.all(e.map(async (e) => {
|
|
@@ -831,20 +357,20 @@ var Tt = async (e, t) => {
|
|
|
831
357
|
} catch (e) {
|
|
832
358
|
console.log("[plugin test] fetch test aborted", e);
|
|
833
359
|
}
|
|
834
|
-
let i =
|
|
360
|
+
let i = xe(n.filter((e) => e[1] != 0), (e) => e[1])[0];
|
|
835
361
|
return console.log("[plugin test] fetch test done", i), i || ["", !1];
|
|
836
|
-
},
|
|
362
|
+
}, He = new class extends Le {
|
|
837
363
|
name = "接口测试";
|
|
838
364
|
async call(e, t, n) {
|
|
839
365
|
if (!e.api) return;
|
|
840
366
|
t("开始并发测试");
|
|
841
|
-
let r = Object.keys(e.api), i = await Promise.all(r.map((t) =>
|
|
367
|
+
let r = Object.keys(e.api), i = await Promise.all(r.map((t) => ze(e.api[t]))), a = [], o = {};
|
|
842
368
|
if (r.forEach((e, t) => {
|
|
843
369
|
o[e] = i[t][0], a.push([e, i[t][1]]);
|
|
844
370
|
}), n.api = o, Object.values(o).some((e) => e == 0)) throw t("测试完成, 无法连接至服务器"), Error("can not connect to server");
|
|
845
371
|
t(`测试完成, \n${a.map((e) => `${e[0]}->${e[1]}ms`).join("\n")}`);
|
|
846
372
|
}
|
|
847
|
-
}(),
|
|
373
|
+
}(), Ue = new class extends Le {
|
|
848
374
|
name = "资源链接测试";
|
|
849
375
|
async call(e, t) {
|
|
850
376
|
if (!e.resource?.types?.length) return;
|
|
@@ -852,29 +378,29 @@ var Tt = async (e, t) => {
|
|
|
852
378
|
let n = e.resource.types.map((e) => ({
|
|
853
379
|
type: e.type,
|
|
854
380
|
val: e
|
|
855
|
-
})), r = await Promise.all(n.map((e) =>
|
|
381
|
+
})), r = await Promise.all(n.map((e) => Be(e.val))), i = [];
|
|
856
382
|
if (n.forEach((t, n) => {
|
|
857
383
|
r[n][1] && L.resource.Resource.precedenceFork.set([e.name, t.type], r[n][0]), i.push([t, r[n][1]]);
|
|
858
384
|
}), r.some((e) => e[1] == 0)) throw t("测试完成, 无法连接至服务器"), Error("[plugin test] can not connect to server");
|
|
859
385
|
t(`测试完成, \n${i.map((e) => `${e[0].type}->${e[1]}ms`).join("\n")}`);
|
|
860
386
|
}
|
|
861
|
-
}(),
|
|
387
|
+
}(), We = new class extends Le {
|
|
862
388
|
name = "自定义初始化";
|
|
863
|
-
async call(e,
|
|
389
|
+
async call(e, n, r) {
|
|
864
390
|
if (!e.onBooted) return;
|
|
865
|
-
let
|
|
866
|
-
|
|
391
|
+
let i = await e.onBooted({ api: r.api });
|
|
392
|
+
i && t.set(Symbol.for(`expose:${e.name}`), i);
|
|
867
393
|
}
|
|
868
|
-
}(),
|
|
394
|
+
}(), Ge = new oe(), Ke = new class extends Le {
|
|
869
395
|
name = "登录";
|
|
870
396
|
async call(e, t) {
|
|
871
397
|
if (!e.auth) return;
|
|
872
|
-
let n =
|
|
398
|
+
let n = p();
|
|
873
399
|
try {
|
|
874
400
|
let r = n.$getPluginDisplayName(e.name);
|
|
875
401
|
t("判定鉴权状态中...");
|
|
876
402
|
let i = await e.auth.passSelect(), a = Promise.withResolvers();
|
|
877
|
-
console.log(`[plugin auth] ${r}, isPass: ${i}`), await
|
|
403
|
+
console.log(`[plugin auth] ${r}, isPass: ${i}`), await Ge.acquire(), t("等待其他插件鉴权结束..."), i ? (t("跳过鉴权方式选择"), a.resolve(i)) : (t("选择鉴权方式"), B({
|
|
878
404
|
type: "default",
|
|
879
405
|
positiveText: "登录",
|
|
880
406
|
negativeText: "注册",
|
|
@@ -893,28 +419,28 @@ var Tt = async (e, t) => {
|
|
|
893
419
|
t("鉴权中...");
|
|
894
420
|
let s = {
|
|
895
421
|
async form(e) {
|
|
896
|
-
let t =
|
|
897
|
-
return
|
|
898
|
-
let e =
|
|
899
|
-
return t.data.then(() => e.value = !1), () =>
|
|
422
|
+
let t = H(e);
|
|
423
|
+
return W.globalNodes.push(D(T(() => {
|
|
424
|
+
let e = A(!0);
|
|
425
|
+
return t.data.then(() => e.value = !1), () => E(z, {
|
|
900
426
|
show: e.value,
|
|
901
427
|
position: "center",
|
|
902
428
|
round: !0,
|
|
903
429
|
class: "auth-popup",
|
|
904
430
|
transitionAppear: !0
|
|
905
|
-
}, [
|
|
431
|
+
}, [E("div", [r]), t.comp]);
|
|
906
432
|
}))), await t.data;
|
|
907
433
|
},
|
|
908
434
|
website(e) {
|
|
909
435
|
return window;
|
|
910
436
|
}
|
|
911
437
|
};
|
|
912
|
-
o == "logIn" ? await e.auth.logIn(s) : o == "signUp" && await e.auth.signUp(s),
|
|
438
|
+
o == "logIn" ? await e.auth.logIn(s) : o == "signUp" && await e.auth.signUp(s), Ge.release(), t("鉴权成功");
|
|
913
439
|
} catch (e) {
|
|
914
440
|
throw t(`登录失败: ${e}`), e;
|
|
915
441
|
}
|
|
916
442
|
}
|
|
917
|
-
}(),
|
|
443
|
+
}(), qe = new class extends Le {
|
|
918
444
|
name = "其他步骤";
|
|
919
445
|
async call(e, t) {
|
|
920
446
|
if (e.otherProgress?.length) for (let n of e.otherProgress) t({
|
|
@@ -927,20 +453,1596 @@ var Tt = async (e, t) => {
|
|
|
927
453
|
});
|
|
928
454
|
});
|
|
929
455
|
}
|
|
930
|
-
}(),
|
|
456
|
+
}(), Je = /* @__PURE__ */ a({
|
|
457
|
+
bootPlugin: () => Xe,
|
|
458
|
+
booters: () => Ye
|
|
459
|
+
}), Ye = xe(Object.entries(/* @__PURE__ */ Object.assign({
|
|
460
|
+
"./init/booter/0_configSetter.ts": Re,
|
|
461
|
+
"./init/booter/10_apiTest.ts": He,
|
|
462
|
+
"./init/booter/20_resourceTest.ts": Ue,
|
|
463
|
+
"./init/booter/30_boot.ts": We,
|
|
464
|
+
"./init/booter/40_auth.ts": Ke,
|
|
465
|
+
"./init/booter/50_otherProcess.ts": qe
|
|
466
|
+
})), ([e]) => Number(e.match(/[\d\.]+(?=_)/)?.[0])).map((e) => e[1]), Xe = async (e) => {
|
|
467
|
+
let { plugins: t, pluginSteps: n } = p();
|
|
468
|
+
t.set(e.name, D(e)), n[e.name] = {
|
|
469
|
+
steps: [],
|
|
470
|
+
now: {
|
|
471
|
+
stepsIndex: 0,
|
|
472
|
+
status: "wait"
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
try {
|
|
476
|
+
let t = {};
|
|
477
|
+
for (let r of Ye) {
|
|
478
|
+
let i = n[e.name].steps.length;
|
|
479
|
+
n[e.name].steps[i] = {
|
|
480
|
+
name: r.name,
|
|
481
|
+
description: ""
|
|
482
|
+
}, n[e.name].now.stepsIndex = i, n[e.name].now.status = "process", await r.call(e, (t) => {
|
|
483
|
+
l(t) ? n[e.name].steps[i].description = t : (t.description && (n[e.name].steps[i].description = t.description), t.name && (n[e.name].steps[i].name = t.name));
|
|
484
|
+
}, t);
|
|
485
|
+
}
|
|
486
|
+
n[e.name].now.stepsIndex++;
|
|
487
|
+
} catch (t) {
|
|
488
|
+
throw n[e.name].now.status = "error", n[e.name].now.error = t, t;
|
|
489
|
+
}
|
|
490
|
+
console.log(`[plugin usePluginStore.$loadPlugin] plugin "${e.name}" load done`);
|
|
491
|
+
};
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/bind.js
|
|
494
|
+
function Ze(e, t) {
|
|
495
|
+
return function() {
|
|
496
|
+
return e.apply(t, arguments);
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
//#endregion
|
|
500
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js
|
|
501
|
+
var { toString: Qe } = Object.prototype, { getPrototypeOf: $e } = Object, { iterator: et, toStringTag: tt } = Symbol, nt = ((e) => (t) => {
|
|
502
|
+
let n = Qe.call(t);
|
|
503
|
+
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
504
|
+
})(Object.create(null)), K = (e) => (e = e.toLowerCase(), (t) => nt(t) === e), rt = (e) => (t) => typeof t === e, { isArray: it } = Array, at = rt("undefined");
|
|
505
|
+
function ot(e) {
|
|
506
|
+
return e !== null && !at(e) && e.constructor !== null && !at(e.constructor) && q(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
507
|
+
}
|
|
508
|
+
var st = K("ArrayBuffer");
|
|
509
|
+
function ct(e) {
|
|
510
|
+
let t;
|
|
511
|
+
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && st(e.buffer), t;
|
|
512
|
+
}
|
|
513
|
+
var lt = rt("string"), q = rt("function"), ut = rt("number"), dt = (e) => typeof e == "object" && !!e, ft = (e) => e === !0 || e === !1, pt = (e) => {
|
|
514
|
+
if (nt(e) !== "object") return !1;
|
|
515
|
+
let t = $e(e);
|
|
516
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(tt in e) && !(et in e);
|
|
517
|
+
}, mt = (e) => {
|
|
518
|
+
if (!dt(e) || ot(e)) return !1;
|
|
519
|
+
try {
|
|
520
|
+
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
521
|
+
} catch {
|
|
522
|
+
return !1;
|
|
523
|
+
}
|
|
524
|
+
}, ht = K("Date"), gt = K("File"), _t = (e) => !!(e && e.uri !== void 0), vt = (e) => e && e.getParts !== void 0, yt = K("Blob"), bt = K("FileList"), xt = (e) => dt(e) && q(e.pipe);
|
|
525
|
+
function St() {
|
|
526
|
+
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
527
|
+
}
|
|
528
|
+
var Ct = St(), wt = Ct.FormData === void 0 ? void 0 : Ct.FormData, Tt = (e) => {
|
|
529
|
+
let t;
|
|
530
|
+
return e && (wt && e instanceof wt || q(e.append) && ((t = nt(e)) === "formdata" || t === "object" && q(e.toString) && e.toString() === "[object FormData]"));
|
|
531
|
+
}, Et = K("URLSearchParams"), [Dt, Ot, kt, At] = [
|
|
532
|
+
"ReadableStream",
|
|
533
|
+
"Request",
|
|
534
|
+
"Response",
|
|
535
|
+
"Headers"
|
|
536
|
+
].map(K), jt = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
537
|
+
function Mt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
538
|
+
if (e == null) return;
|
|
539
|
+
let r, i;
|
|
540
|
+
if (typeof e != "object" && (e = [e]), it(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
541
|
+
else {
|
|
542
|
+
if (ot(e)) return;
|
|
543
|
+
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
544
|
+
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function Nt(e, t) {
|
|
548
|
+
if (ot(e)) return null;
|
|
549
|
+
t = t.toLowerCase();
|
|
550
|
+
let n = Object.keys(e), r = n.length, i;
|
|
551
|
+
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
552
|
+
return null;
|
|
553
|
+
}
|
|
554
|
+
var Pt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ft = (e) => !at(e) && e !== Pt;
|
|
555
|
+
function It() {
|
|
556
|
+
let { caseless: e, skipUndefined: t } = Ft(this) && this || {}, n = {}, r = (r, i) => {
|
|
557
|
+
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
558
|
+
let a = e && Nt(n, i) || i;
|
|
559
|
+
pt(n[a]) && pt(r) ? n[a] = It(n[a], r) : pt(r) ? n[a] = It({}, r) : it(r) ? n[a] = r.slice() : (!t || !at(r)) && (n[a] = r);
|
|
560
|
+
};
|
|
561
|
+
for (let e = 0, t = arguments.length; e < t; e++) arguments[e] && Mt(arguments[e], r);
|
|
562
|
+
return n;
|
|
563
|
+
}
|
|
564
|
+
var Lt = (e, t, n, { allOwnKeys: r } = {}) => (Mt(t, (t, r) => {
|
|
565
|
+
n && q(t) ? Object.defineProperty(e, r, {
|
|
566
|
+
value: Ze(t, n),
|
|
567
|
+
writable: !0,
|
|
568
|
+
enumerable: !0,
|
|
569
|
+
configurable: !0
|
|
570
|
+
}) : Object.defineProperty(e, r, {
|
|
571
|
+
value: t,
|
|
572
|
+
writable: !0,
|
|
573
|
+
enumerable: !0,
|
|
574
|
+
configurable: !0
|
|
575
|
+
});
|
|
576
|
+
}, { allOwnKeys: r }), e), Rt = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), zt = (e, t, n, r) => {
|
|
577
|
+
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
578
|
+
value: e,
|
|
579
|
+
writable: !0,
|
|
580
|
+
enumerable: !1,
|
|
581
|
+
configurable: !0
|
|
582
|
+
}), Object.defineProperty(e, "super", { value: t.prototype }), n && Object.assign(e.prototype, n);
|
|
583
|
+
}, Bt = (e, t, n, r) => {
|
|
584
|
+
let i, a, o, s = {};
|
|
585
|
+
if (t ||= {}, e == null) return t;
|
|
586
|
+
do {
|
|
587
|
+
for (i = Object.getOwnPropertyNames(e), a = i.length; a-- > 0;) o = i[a], (!r || r(o, e, t)) && !s[o] && (t[o] = e[o], s[o] = !0);
|
|
588
|
+
e = n !== !1 && $e(e);
|
|
589
|
+
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
590
|
+
return t;
|
|
591
|
+
}, Vt = (e, t, n) => {
|
|
592
|
+
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
593
|
+
let r = e.indexOf(t, n);
|
|
594
|
+
return r !== -1 && r === n;
|
|
595
|
+
}, Ht = (e) => {
|
|
596
|
+
if (!e) return null;
|
|
597
|
+
if (it(e)) return e;
|
|
598
|
+
let t = e.length;
|
|
599
|
+
if (!ut(t)) return null;
|
|
600
|
+
let n = Array(t);
|
|
601
|
+
for (; t-- > 0;) n[t] = e[t];
|
|
602
|
+
return n;
|
|
603
|
+
}, Ut = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && $e(Uint8Array)), Wt = (e, t) => {
|
|
604
|
+
let n = (e && e[et]).call(e), r;
|
|
605
|
+
for (; (r = n.next()) && !r.done;) {
|
|
606
|
+
let n = r.value;
|
|
607
|
+
t.call(e, n[0], n[1]);
|
|
608
|
+
}
|
|
609
|
+
}, Gt = (e, t) => {
|
|
610
|
+
let n, r = [];
|
|
611
|
+
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
612
|
+
return r;
|
|
613
|
+
}, Kt = K("HTMLFormElement"), qt = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
614
|
+
return t.toUpperCase() + n;
|
|
615
|
+
}), Jt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Yt = K("RegExp"), Xt = (e, t) => {
|
|
616
|
+
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
617
|
+
Mt(n, (n, i) => {
|
|
618
|
+
let a;
|
|
619
|
+
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
620
|
+
}), Object.defineProperties(e, r);
|
|
621
|
+
}, Zt = (e) => {
|
|
622
|
+
Xt(e, (t, n) => {
|
|
623
|
+
if (q(e) && [
|
|
624
|
+
"arguments",
|
|
625
|
+
"caller",
|
|
626
|
+
"callee"
|
|
627
|
+
].indexOf(n) !== -1) return !1;
|
|
628
|
+
let r = e[n];
|
|
629
|
+
if (q(r)) {
|
|
630
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
631
|
+
t.writable = !1;
|
|
632
|
+
return;
|
|
633
|
+
}
|
|
634
|
+
t.set ||= () => {
|
|
635
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
}, Qt = (e, t) => {
|
|
640
|
+
let n = {}, r = (e) => {
|
|
641
|
+
e.forEach((e) => {
|
|
642
|
+
n[e] = !0;
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
return it(e) ? r(e) : r(String(e).split(t)), n;
|
|
646
|
+
}, $t = () => {}, en = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
647
|
+
function tn(e) {
|
|
648
|
+
return !!(e && q(e.append) && e[tt] === "FormData" && e[et]);
|
|
649
|
+
}
|
|
650
|
+
var nn = (e) => {
|
|
651
|
+
let t = Array(10), n = (e, r) => {
|
|
652
|
+
if (dt(e)) {
|
|
653
|
+
if (t.indexOf(e) >= 0) return;
|
|
654
|
+
if (ot(e)) return e;
|
|
655
|
+
if (!("toJSON" in e)) {
|
|
656
|
+
t[r] = e;
|
|
657
|
+
let i = it(e) ? [] : {};
|
|
658
|
+
return Mt(e, (e, t) => {
|
|
659
|
+
let a = n(e, r + 1);
|
|
660
|
+
!at(a) && (i[t] = a);
|
|
661
|
+
}), t[r] = void 0, i;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
return e;
|
|
665
|
+
};
|
|
666
|
+
return n(e, 0);
|
|
667
|
+
}, rn = K("AsyncFunction"), an = (e) => e && (dt(e) || q(e)) && q(e.then) && q(e.catch), on = ((e, t) => e ? setImmediate : t ? ((e, t) => (Pt.addEventListener("message", ({ source: n, data: r }) => {
|
|
668
|
+
n === Pt && r === e && t.length && t.shift()();
|
|
669
|
+
}, !1), (n) => {
|
|
670
|
+
t.push(n), Pt.postMessage(e, "*");
|
|
671
|
+
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", q(Pt.postMessage)), J = {
|
|
672
|
+
isArray: it,
|
|
673
|
+
isArrayBuffer: st,
|
|
674
|
+
isBuffer: ot,
|
|
675
|
+
isFormData: Tt,
|
|
676
|
+
isArrayBufferView: ct,
|
|
677
|
+
isString: lt,
|
|
678
|
+
isNumber: ut,
|
|
679
|
+
isBoolean: ft,
|
|
680
|
+
isObject: dt,
|
|
681
|
+
isPlainObject: pt,
|
|
682
|
+
isEmptyObject: mt,
|
|
683
|
+
isReadableStream: Dt,
|
|
684
|
+
isRequest: Ot,
|
|
685
|
+
isResponse: kt,
|
|
686
|
+
isHeaders: At,
|
|
687
|
+
isUndefined: at,
|
|
688
|
+
isDate: ht,
|
|
689
|
+
isFile: gt,
|
|
690
|
+
isReactNativeBlob: _t,
|
|
691
|
+
isReactNative: vt,
|
|
692
|
+
isBlob: yt,
|
|
693
|
+
isRegExp: Yt,
|
|
694
|
+
isFunction: q,
|
|
695
|
+
isStream: xt,
|
|
696
|
+
isURLSearchParams: Et,
|
|
697
|
+
isTypedArray: Ut,
|
|
698
|
+
isFileList: bt,
|
|
699
|
+
forEach: Mt,
|
|
700
|
+
merge: It,
|
|
701
|
+
extend: Lt,
|
|
702
|
+
trim: jt,
|
|
703
|
+
stripBOM: Rt,
|
|
704
|
+
inherits: zt,
|
|
705
|
+
toFlatObject: Bt,
|
|
706
|
+
kindOf: nt,
|
|
707
|
+
kindOfTest: K,
|
|
708
|
+
endsWith: Vt,
|
|
709
|
+
toArray: Ht,
|
|
710
|
+
forEachEntry: Wt,
|
|
711
|
+
matchAll: Gt,
|
|
712
|
+
isHTMLForm: Kt,
|
|
713
|
+
hasOwnProperty: Jt,
|
|
714
|
+
hasOwnProp: Jt,
|
|
715
|
+
reduceDescriptors: Xt,
|
|
716
|
+
freezeMethods: Zt,
|
|
717
|
+
toObjectSet: Qt,
|
|
718
|
+
toCamelCase: qt,
|
|
719
|
+
noop: $t,
|
|
720
|
+
toFiniteNumber: en,
|
|
721
|
+
findKey: Nt,
|
|
722
|
+
global: Pt,
|
|
723
|
+
isContextDefined: Ft,
|
|
724
|
+
isSpecCompliantForm: tn,
|
|
725
|
+
toJSONObject: nn,
|
|
726
|
+
isAsyncFn: rn,
|
|
727
|
+
isThenable: an,
|
|
728
|
+
setImmediate: on,
|
|
729
|
+
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(Pt) : typeof process < "u" && process.nextTick || on,
|
|
730
|
+
isIterable: (e) => e != null && q(e[et])
|
|
731
|
+
}, Y = class e extends Error {
|
|
732
|
+
static from(t, n, r, i, a, o) {
|
|
733
|
+
let s = new e(t.message, n || t.code, r, i, a);
|
|
734
|
+
return s.cause = t, s.name = t.name, t.status != null && s.status == null && (s.status = t.status), o && Object.assign(s, o), s;
|
|
735
|
+
}
|
|
736
|
+
constructor(e, t, n, r, i) {
|
|
737
|
+
super(e), Object.defineProperty(this, "message", {
|
|
738
|
+
value: e,
|
|
739
|
+
enumerable: !0,
|
|
740
|
+
writable: !0,
|
|
741
|
+
configurable: !0
|
|
742
|
+
}), this.name = "AxiosError", this.isAxiosError = !0, t && (this.code = t), n && (this.config = n), r && (this.request = r), i && (this.response = i, this.status = i.status);
|
|
743
|
+
}
|
|
744
|
+
toJSON() {
|
|
745
|
+
return {
|
|
746
|
+
message: this.message,
|
|
747
|
+
name: this.name,
|
|
748
|
+
description: this.description,
|
|
749
|
+
number: this.number,
|
|
750
|
+
fileName: this.fileName,
|
|
751
|
+
lineNumber: this.lineNumber,
|
|
752
|
+
columnNumber: this.columnNumber,
|
|
753
|
+
stack: this.stack,
|
|
754
|
+
config: J.toJSONObject(this.config),
|
|
755
|
+
code: this.code,
|
|
756
|
+
status: this.status
|
|
757
|
+
};
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
Y.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE", Y.ERR_BAD_OPTION = "ERR_BAD_OPTION", Y.ECONNABORTED = "ECONNABORTED", Y.ETIMEDOUT = "ETIMEDOUT", Y.ERR_NETWORK = "ERR_NETWORK", Y.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS", Y.ERR_DEPRECATED = "ERR_DEPRECATED", Y.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE", Y.ERR_BAD_REQUEST = "ERR_BAD_REQUEST", Y.ERR_CANCELED = "ERR_CANCELED", Y.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT", Y.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js
|
|
763
|
+
function sn(e) {
|
|
764
|
+
return J.isPlainObject(e) || J.isArray(e);
|
|
765
|
+
}
|
|
766
|
+
function cn(e) {
|
|
767
|
+
return J.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
768
|
+
}
|
|
769
|
+
function ln(e, t, n) {
|
|
770
|
+
return e ? e.concat(t).map(function(e, t) {
|
|
771
|
+
return e = cn(e), !n && t ? "[" + e + "]" : e;
|
|
772
|
+
}).join(n ? "." : "") : t;
|
|
773
|
+
}
|
|
774
|
+
function un(e) {
|
|
775
|
+
return J.isArray(e) && !e.some(sn);
|
|
776
|
+
}
|
|
777
|
+
var dn = J.toFlatObject(J, {}, null, function(e) {
|
|
778
|
+
return /^is[A-Z]/.test(e);
|
|
779
|
+
});
|
|
780
|
+
function fn(e, t, n) {
|
|
781
|
+
if (!J.isObject(e)) throw TypeError("target must be an object");
|
|
782
|
+
t ||= new FormData(), n = J.toFlatObject(n, {
|
|
783
|
+
metaTokens: !0,
|
|
784
|
+
dots: !1,
|
|
785
|
+
indexes: !1
|
|
786
|
+
}, !1, function(e, t) {
|
|
787
|
+
return !J.isUndefined(t[e]);
|
|
788
|
+
});
|
|
789
|
+
let r = n.metaTokens, i = n.visitor || l, a = n.dots, o = n.indexes, s = (n.Blob || typeof Blob < "u" && Blob) && J.isSpecCompliantForm(t);
|
|
790
|
+
if (!J.isFunction(i)) throw TypeError("visitor must be a function");
|
|
791
|
+
function c(e) {
|
|
792
|
+
if (e === null) return "";
|
|
793
|
+
if (J.isDate(e)) return e.toISOString();
|
|
794
|
+
if (J.isBoolean(e)) return e.toString();
|
|
795
|
+
if (!s && J.isBlob(e)) throw new Y("Blob is not supported. Use a Buffer instead.");
|
|
796
|
+
return J.isArrayBuffer(e) || J.isTypedArray(e) ? s && typeof Blob == "function" ? new Blob([e]) : Buffer.from(e) : e;
|
|
797
|
+
}
|
|
798
|
+
function l(e, n, i) {
|
|
799
|
+
let s = e;
|
|
800
|
+
if (J.isReactNative(t) && J.isReactNativeBlob(e)) return t.append(ln(i, n, a), c(e)), !1;
|
|
801
|
+
if (e && !i && typeof e == "object") {
|
|
802
|
+
if (J.endsWith(n, "{}")) n = r ? n : n.slice(0, -2), e = JSON.stringify(e);
|
|
803
|
+
else if (J.isArray(e) && un(e) || (J.isFileList(e) || J.endsWith(n, "[]")) && (s = J.toArray(e))) return n = cn(n), s.forEach(function(e, r) {
|
|
804
|
+
!(J.isUndefined(e) || e === null) && t.append(o === !0 ? ln([n], r, a) : o === null ? n : n + "[]", c(e));
|
|
805
|
+
}), !1;
|
|
806
|
+
}
|
|
807
|
+
return sn(e) ? !0 : (t.append(ln(i, n, a), c(e)), !1);
|
|
808
|
+
}
|
|
809
|
+
let u = [], d = Object.assign(dn, {
|
|
810
|
+
defaultVisitor: l,
|
|
811
|
+
convertValue: c,
|
|
812
|
+
isVisitable: sn
|
|
813
|
+
});
|
|
814
|
+
function f(e, n) {
|
|
815
|
+
if (!J.isUndefined(e)) {
|
|
816
|
+
if (u.indexOf(e) !== -1) throw Error("Circular reference detected in " + n.join("."));
|
|
817
|
+
u.push(e), J.forEach(e, function(e, r) {
|
|
818
|
+
(!(J.isUndefined(e) || e === null) && i.call(t, e, J.isString(r) ? r.trim() : r, n, d)) === !0 && f(e, n ? n.concat(r) : [r]);
|
|
819
|
+
}), u.pop();
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
if (!J.isObject(e)) throw TypeError("data must be an object");
|
|
823
|
+
return f(e), t;
|
|
824
|
+
}
|
|
825
|
+
//#endregion
|
|
826
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
|
|
827
|
+
function pn(e) {
|
|
828
|
+
let t = {
|
|
829
|
+
"!": "%21",
|
|
830
|
+
"'": "%27",
|
|
831
|
+
"(": "%28",
|
|
832
|
+
")": "%29",
|
|
833
|
+
"~": "%7E",
|
|
834
|
+
"%20": "+",
|
|
835
|
+
"%00": "\0"
|
|
836
|
+
};
|
|
837
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(e) {
|
|
838
|
+
return t[e];
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
function mn(e, t) {
|
|
842
|
+
this._pairs = [], e && fn(e, this, t);
|
|
843
|
+
}
|
|
844
|
+
var hn = mn.prototype;
|
|
845
|
+
hn.append = function(e, t) {
|
|
846
|
+
this._pairs.push([e, t]);
|
|
847
|
+
}, hn.toString = function(e) {
|
|
848
|
+
let t = e ? function(t) {
|
|
849
|
+
return e.call(this, t, pn);
|
|
850
|
+
} : pn;
|
|
851
|
+
return this._pairs.map(function(e) {
|
|
852
|
+
return t(e[0]) + "=" + t(e[1]);
|
|
853
|
+
}, "").join("&");
|
|
854
|
+
};
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/buildURL.js
|
|
857
|
+
function gn(e) {
|
|
858
|
+
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
859
|
+
}
|
|
860
|
+
function _n(e, t, n) {
|
|
861
|
+
if (!t) return e;
|
|
862
|
+
let r = n && n.encode || gn, i = J.isFunction(n) ? { serialize: n } : n, a = i && i.serialize, o;
|
|
863
|
+
if (o = a ? a(t, i) : J.isURLSearchParams(t) ? t.toString() : new mn(t, i).toString(r), o) {
|
|
864
|
+
let t = e.indexOf("#");
|
|
865
|
+
t !== -1 && (e = e.slice(0, t)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
866
|
+
}
|
|
867
|
+
return e;
|
|
868
|
+
}
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js
|
|
871
|
+
var vn = class {
|
|
872
|
+
constructor() {
|
|
873
|
+
this.handlers = [];
|
|
874
|
+
}
|
|
875
|
+
use(e, t, n) {
|
|
876
|
+
return this.handlers.push({
|
|
877
|
+
fulfilled: e,
|
|
878
|
+
rejected: t,
|
|
879
|
+
synchronous: n ? n.synchronous : !1,
|
|
880
|
+
runWhen: n ? n.runWhen : null
|
|
881
|
+
}), this.handlers.length - 1;
|
|
882
|
+
}
|
|
883
|
+
eject(e) {
|
|
884
|
+
this.handlers[e] && (this.handlers[e] = null);
|
|
885
|
+
}
|
|
886
|
+
clear() {
|
|
887
|
+
this.handlers &&= [];
|
|
888
|
+
}
|
|
889
|
+
forEach(e) {
|
|
890
|
+
J.forEach(this.handlers, function(t) {
|
|
891
|
+
t !== null && e(t);
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
}, yn = {
|
|
895
|
+
silentJSONParsing: !0,
|
|
896
|
+
forcedJSONParsing: !0,
|
|
897
|
+
clarifyTimeoutError: !1,
|
|
898
|
+
legacyInterceptorReqResOrdering: !0
|
|
899
|
+
}, bn = {
|
|
900
|
+
isBrowser: !0,
|
|
901
|
+
classes: {
|
|
902
|
+
URLSearchParams: typeof URLSearchParams < "u" ? URLSearchParams : mn,
|
|
903
|
+
FormData: typeof FormData < "u" ? FormData : null,
|
|
904
|
+
Blob: typeof Blob < "u" ? Blob : null
|
|
905
|
+
},
|
|
906
|
+
protocols: [
|
|
907
|
+
"http",
|
|
908
|
+
"https",
|
|
909
|
+
"file",
|
|
910
|
+
"blob",
|
|
911
|
+
"url",
|
|
912
|
+
"data"
|
|
913
|
+
]
|
|
914
|
+
}, xn = /* @__PURE__ */ a({
|
|
915
|
+
hasBrowserEnv: () => Sn,
|
|
916
|
+
hasStandardBrowserEnv: () => wn,
|
|
917
|
+
hasStandardBrowserWebWorkerEnv: () => Tn,
|
|
918
|
+
navigator: () => Cn,
|
|
919
|
+
origin: () => En
|
|
920
|
+
}), Sn = typeof window < "u" && typeof document < "u", Cn = typeof navigator == "object" && navigator || void 0, wn = Sn && (!Cn || [
|
|
921
|
+
"ReactNative",
|
|
922
|
+
"NativeScript",
|
|
923
|
+
"NS"
|
|
924
|
+
].indexOf(Cn.product) < 0), Tn = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope && typeof self.importScripts == "function", En = Sn && window.location.href || "http://localhost", X = {
|
|
925
|
+
...xn,
|
|
926
|
+
...bn
|
|
927
|
+
};
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js
|
|
930
|
+
function Dn(e, t) {
|
|
931
|
+
return fn(e, new X.classes.URLSearchParams(), {
|
|
932
|
+
visitor: function(e, t, n, r) {
|
|
933
|
+
return X.isNode && J.isBuffer(e) ? (this.append(t, e.toString("base64")), !1) : r.defaultVisitor.apply(this, arguments);
|
|
934
|
+
},
|
|
935
|
+
...t
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
//#endregion
|
|
939
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/formDataToJSON.js
|
|
940
|
+
function On(e) {
|
|
941
|
+
return J.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
942
|
+
}
|
|
943
|
+
function kn(e) {
|
|
944
|
+
let t = {}, n = Object.keys(e), r, i = n.length, a;
|
|
945
|
+
for (r = 0; r < i; r++) a = n[r], t[a] = e[a];
|
|
946
|
+
return t;
|
|
947
|
+
}
|
|
948
|
+
function An(e) {
|
|
949
|
+
function t(e, n, r, i) {
|
|
950
|
+
let a = e[i++];
|
|
951
|
+
if (a === "__proto__") return !0;
|
|
952
|
+
let o = Number.isFinite(+a), s = i >= e.length;
|
|
953
|
+
return a = !a && J.isArray(r) ? r.length : a, s ? (J.hasOwnProp(r, a) ? r[a] = [r[a], n] : r[a] = n, !o) : ((!r[a] || !J.isObject(r[a])) && (r[a] = []), t(e, n, r[a], i) && J.isArray(r[a]) && (r[a] = kn(r[a])), !o);
|
|
954
|
+
}
|
|
955
|
+
if (J.isFormData(e) && J.isFunction(e.entries)) {
|
|
956
|
+
let n = {};
|
|
957
|
+
return J.forEachEntry(e, (e, r) => {
|
|
958
|
+
t(On(e), r, n, 0);
|
|
959
|
+
}), n;
|
|
960
|
+
}
|
|
961
|
+
return null;
|
|
962
|
+
}
|
|
963
|
+
//#endregion
|
|
964
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/index.js
|
|
965
|
+
function jn(e, t, n) {
|
|
966
|
+
if (J.isString(e)) try {
|
|
967
|
+
return (t || JSON.parse)(e), J.trim(e);
|
|
968
|
+
} catch (e) {
|
|
969
|
+
if (e.name !== "SyntaxError") throw e;
|
|
970
|
+
}
|
|
971
|
+
return (n || JSON.stringify)(e);
|
|
972
|
+
}
|
|
973
|
+
var Mn = {
|
|
974
|
+
transitional: yn,
|
|
975
|
+
adapter: [
|
|
976
|
+
"xhr",
|
|
977
|
+
"http",
|
|
978
|
+
"fetch"
|
|
979
|
+
],
|
|
980
|
+
transformRequest: [function(e, t) {
|
|
981
|
+
let n = t.getContentType() || "", r = n.indexOf("application/json") > -1, i = J.isObject(e);
|
|
982
|
+
if (i && J.isHTMLForm(e) && (e = new FormData(e)), J.isFormData(e)) return r ? JSON.stringify(An(e)) : e;
|
|
983
|
+
if (J.isArrayBuffer(e) || J.isBuffer(e) || J.isStream(e) || J.isFile(e) || J.isBlob(e) || J.isReadableStream(e)) return e;
|
|
984
|
+
if (J.isArrayBufferView(e)) return e.buffer;
|
|
985
|
+
if (J.isURLSearchParams(e)) return t.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
986
|
+
let a;
|
|
987
|
+
if (i) {
|
|
988
|
+
if (n.indexOf("application/x-www-form-urlencoded") > -1) return Dn(e, this.formSerializer).toString();
|
|
989
|
+
if ((a = J.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
990
|
+
let t = this.env && this.env.FormData;
|
|
991
|
+
return fn(a ? { "files[]": e } : e, t && new t(), this.formSerializer);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
return i || r ? (t.setContentType("application/json", !1), jn(e)) : e;
|
|
995
|
+
}],
|
|
996
|
+
transformResponse: [function(e) {
|
|
997
|
+
let t = this.transitional || Mn.transitional, n = t && t.forcedJSONParsing, r = this.responseType === "json";
|
|
998
|
+
if (J.isResponse(e) || J.isReadableStream(e)) return e;
|
|
999
|
+
if (e && J.isString(e) && (n && !this.responseType || r)) {
|
|
1000
|
+
let n = !(t && t.silentJSONParsing) && r;
|
|
1001
|
+
try {
|
|
1002
|
+
return JSON.parse(e, this.parseReviver);
|
|
1003
|
+
} catch (e) {
|
|
1004
|
+
if (n) throw e.name === "SyntaxError" ? Y.from(e, Y.ERR_BAD_RESPONSE, this, null, this.response) : e;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
return e;
|
|
1008
|
+
}],
|
|
1009
|
+
timeout: 0,
|
|
1010
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
1011
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
1012
|
+
maxContentLength: -1,
|
|
1013
|
+
maxBodyLength: -1,
|
|
1014
|
+
env: {
|
|
1015
|
+
FormData: X.classes.FormData,
|
|
1016
|
+
Blob: X.classes.Blob
|
|
1017
|
+
},
|
|
1018
|
+
validateStatus: function(e) {
|
|
1019
|
+
return e >= 200 && e < 300;
|
|
1020
|
+
},
|
|
1021
|
+
headers: { common: {
|
|
1022
|
+
Accept: "application/json, text/plain, */*",
|
|
1023
|
+
"Content-Type": void 0
|
|
1024
|
+
} }
|
|
1025
|
+
};
|
|
1026
|
+
J.forEach([
|
|
1027
|
+
"delete",
|
|
1028
|
+
"get",
|
|
1029
|
+
"head",
|
|
1030
|
+
"post",
|
|
1031
|
+
"put",
|
|
1032
|
+
"patch"
|
|
1033
|
+
], (e) => {
|
|
1034
|
+
Mn.headers[e] = {};
|
|
1035
|
+
});
|
|
1036
|
+
//#endregion
|
|
1037
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js
|
|
1038
|
+
var Nn = J.toObjectSet([
|
|
1039
|
+
"age",
|
|
1040
|
+
"authorization",
|
|
1041
|
+
"content-length",
|
|
1042
|
+
"content-type",
|
|
1043
|
+
"etag",
|
|
1044
|
+
"expires",
|
|
1045
|
+
"from",
|
|
1046
|
+
"host",
|
|
1047
|
+
"if-modified-since",
|
|
1048
|
+
"if-unmodified-since",
|
|
1049
|
+
"last-modified",
|
|
1050
|
+
"location",
|
|
1051
|
+
"max-forwards",
|
|
1052
|
+
"proxy-authorization",
|
|
1053
|
+
"referer",
|
|
1054
|
+
"retry-after",
|
|
1055
|
+
"user-agent"
|
|
1056
|
+
]), Pn = (e) => {
|
|
1057
|
+
let t = {}, n, r, i;
|
|
1058
|
+
return e && e.split("\n").forEach(function(e) {
|
|
1059
|
+
i = e.indexOf(":"), n = e.substring(0, i).trim().toLowerCase(), r = e.substring(i + 1).trim(), !(!n || t[n] && Nn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1060
|
+
}), t;
|
|
1061
|
+
}, Fn = Symbol("internals");
|
|
1062
|
+
function In(e) {
|
|
1063
|
+
return e && String(e).trim().toLowerCase();
|
|
1064
|
+
}
|
|
1065
|
+
function Ln(e) {
|
|
1066
|
+
return e === !1 || e == null ? e : J.isArray(e) ? e.map(Ln) : String(e);
|
|
1067
|
+
}
|
|
1068
|
+
function Rn(e) {
|
|
1069
|
+
let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
|
|
1070
|
+
for (; r = n.exec(e);) t[r[1]] = r[2];
|
|
1071
|
+
return t;
|
|
1072
|
+
}
|
|
1073
|
+
var zn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1074
|
+
function Bn(e, t, n, r, i) {
|
|
1075
|
+
if (J.isFunction(r)) return r.call(this, t, n);
|
|
1076
|
+
if (i && (t = n), J.isString(t)) {
|
|
1077
|
+
if (J.isString(r)) return t.indexOf(r) !== -1;
|
|
1078
|
+
if (J.isRegExp(r)) return r.test(t);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
function Vn(e) {
|
|
1082
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, n) => t.toUpperCase() + n);
|
|
1083
|
+
}
|
|
1084
|
+
function Hn(e, t) {
|
|
1085
|
+
let n = J.toCamelCase(" " + t);
|
|
1086
|
+
[
|
|
1087
|
+
"get",
|
|
1088
|
+
"set",
|
|
1089
|
+
"has"
|
|
1090
|
+
].forEach((r) => {
|
|
1091
|
+
Object.defineProperty(e, r + n, {
|
|
1092
|
+
value: function(e, n, i) {
|
|
1093
|
+
return this[r].call(this, t, e, n, i);
|
|
1094
|
+
},
|
|
1095
|
+
configurable: !0
|
|
1096
|
+
});
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
var Z = class {
|
|
1100
|
+
constructor(e) {
|
|
1101
|
+
e && this.set(e);
|
|
1102
|
+
}
|
|
1103
|
+
set(e, t, n) {
|
|
1104
|
+
let r = this;
|
|
1105
|
+
function i(e, t, n) {
|
|
1106
|
+
let i = In(t);
|
|
1107
|
+
if (!i) throw Error("header name must be a non-empty string");
|
|
1108
|
+
let a = J.findKey(r, i);
|
|
1109
|
+
(!a || r[a] === void 0 || n === !0 || n === void 0 && r[a] !== !1) && (r[a || t] = Ln(e));
|
|
1110
|
+
}
|
|
1111
|
+
let a = (e, t) => J.forEach(e, (e, n) => i(e, n, t));
|
|
1112
|
+
if (J.isPlainObject(e) || e instanceof this.constructor) a(e, t);
|
|
1113
|
+
else if (J.isString(e) && (e = e.trim()) && !zn(e)) a(Pn(e), t);
|
|
1114
|
+
else if (J.isObject(e) && J.isIterable(e)) {
|
|
1115
|
+
let n = {}, r, i;
|
|
1116
|
+
for (let t of e) {
|
|
1117
|
+
if (!J.isArray(t)) throw TypeError("Object iterator must return a key-value pair");
|
|
1118
|
+
n[i = t[0]] = (r = n[i]) ? J.isArray(r) ? [...r, t[1]] : [r, t[1]] : t[1];
|
|
1119
|
+
}
|
|
1120
|
+
a(n, t);
|
|
1121
|
+
} else e != null && i(t, e, n);
|
|
1122
|
+
return this;
|
|
1123
|
+
}
|
|
1124
|
+
get(e, t) {
|
|
1125
|
+
if (e = In(e), e) {
|
|
1126
|
+
let n = J.findKey(this, e);
|
|
1127
|
+
if (n) {
|
|
1128
|
+
let e = this[n];
|
|
1129
|
+
if (!t) return e;
|
|
1130
|
+
if (t === !0) return Rn(e);
|
|
1131
|
+
if (J.isFunction(t)) return t.call(this, e, n);
|
|
1132
|
+
if (J.isRegExp(t)) return t.exec(e);
|
|
1133
|
+
throw TypeError("parser must be boolean|regexp|function");
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
has(e, t) {
|
|
1138
|
+
if (e = In(e), e) {
|
|
1139
|
+
let n = J.findKey(this, e);
|
|
1140
|
+
return !!(n && this[n] !== void 0 && (!t || Bn(this, this[n], n, t)));
|
|
1141
|
+
}
|
|
1142
|
+
return !1;
|
|
1143
|
+
}
|
|
1144
|
+
delete(e, t) {
|
|
1145
|
+
let n = this, r = !1;
|
|
1146
|
+
function i(e) {
|
|
1147
|
+
if (e = In(e), e) {
|
|
1148
|
+
let i = J.findKey(n, e);
|
|
1149
|
+
i && (!t || Bn(n, n[i], i, t)) && (delete n[i], r = !0);
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
return J.isArray(e) ? e.forEach(i) : i(e), r;
|
|
1153
|
+
}
|
|
1154
|
+
clear(e) {
|
|
1155
|
+
let t = Object.keys(this), n = t.length, r = !1;
|
|
1156
|
+
for (; n--;) {
|
|
1157
|
+
let i = t[n];
|
|
1158
|
+
(!e || Bn(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
1159
|
+
}
|
|
1160
|
+
return r;
|
|
1161
|
+
}
|
|
1162
|
+
normalize(e) {
|
|
1163
|
+
let t = this, n = {};
|
|
1164
|
+
return J.forEach(this, (r, i) => {
|
|
1165
|
+
let a = J.findKey(n, i);
|
|
1166
|
+
if (a) {
|
|
1167
|
+
t[a] = Ln(r), delete t[i];
|
|
1168
|
+
return;
|
|
1169
|
+
}
|
|
1170
|
+
let o = e ? Vn(i) : String(i).trim();
|
|
1171
|
+
o !== i && delete t[i], t[o] = Ln(r), n[o] = !0;
|
|
1172
|
+
}), this;
|
|
1173
|
+
}
|
|
1174
|
+
concat(...e) {
|
|
1175
|
+
return this.constructor.concat(this, ...e);
|
|
1176
|
+
}
|
|
1177
|
+
toJSON(e) {
|
|
1178
|
+
let t = Object.create(null);
|
|
1179
|
+
return J.forEach(this, (n, r) => {
|
|
1180
|
+
n != null && n !== !1 && (t[r] = e && J.isArray(n) ? n.join(", ") : n);
|
|
1181
|
+
}), t;
|
|
1182
|
+
}
|
|
1183
|
+
[Symbol.iterator]() {
|
|
1184
|
+
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
1185
|
+
}
|
|
1186
|
+
toString() {
|
|
1187
|
+
return Object.entries(this.toJSON()).map(([e, t]) => e + ": " + t).join("\n");
|
|
1188
|
+
}
|
|
1189
|
+
getSetCookie() {
|
|
1190
|
+
return this.get("set-cookie") || [];
|
|
1191
|
+
}
|
|
1192
|
+
get [Symbol.toStringTag]() {
|
|
1193
|
+
return "AxiosHeaders";
|
|
1194
|
+
}
|
|
1195
|
+
static from(e) {
|
|
1196
|
+
return e instanceof this ? e : new this(e);
|
|
1197
|
+
}
|
|
1198
|
+
static concat(e, ...t) {
|
|
1199
|
+
let n = new this(e);
|
|
1200
|
+
return t.forEach((e) => n.set(e)), n;
|
|
1201
|
+
}
|
|
1202
|
+
static accessor(e) {
|
|
1203
|
+
let t = (this[Fn] = this[Fn] = { accessors: {} }).accessors, n = this.prototype;
|
|
1204
|
+
function r(e) {
|
|
1205
|
+
let r = In(e);
|
|
1206
|
+
t[r] || (Hn(n, e), t[r] = !0);
|
|
1207
|
+
}
|
|
1208
|
+
return J.isArray(e) ? e.forEach(r) : r(e), this;
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
Z.accessor([
|
|
1212
|
+
"Content-Type",
|
|
1213
|
+
"Content-Length",
|
|
1214
|
+
"Accept",
|
|
1215
|
+
"Accept-Encoding",
|
|
1216
|
+
"User-Agent",
|
|
1217
|
+
"Authorization"
|
|
1218
|
+
]), J.reduceDescriptors(Z.prototype, ({ value: e }, t) => {
|
|
1219
|
+
let n = t[0].toUpperCase() + t.slice(1);
|
|
1220
|
+
return {
|
|
1221
|
+
get: () => e,
|
|
1222
|
+
set(e) {
|
|
1223
|
+
this[n] = e;
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
}), J.freezeMethods(Z);
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/transformData.js
|
|
1229
|
+
function Un(e, t) {
|
|
1230
|
+
let n = this || Mn, r = t || n, i = Z.from(r.headers), a = r.data;
|
|
1231
|
+
return J.forEach(e, function(e) {
|
|
1232
|
+
a = e.call(n, a, i.normalize(), t ? t.status : void 0);
|
|
1233
|
+
}), i.normalize(), a;
|
|
1234
|
+
}
|
|
1235
|
+
//#endregion
|
|
1236
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/isCancel.js
|
|
1237
|
+
function Wn(e) {
|
|
1238
|
+
return !!(e && e.__CANCEL__);
|
|
1239
|
+
}
|
|
1240
|
+
//#endregion
|
|
1241
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js
|
|
1242
|
+
var Gn = class extends Y {
|
|
1243
|
+
constructor(e, t, n) {
|
|
1244
|
+
super(e ?? "canceled", Y.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
1245
|
+
}
|
|
1246
|
+
};
|
|
1247
|
+
//#endregion
|
|
1248
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/settle.js
|
|
1249
|
+
function Kn(e, t, n) {
|
|
1250
|
+
let r = n.config.validateStatus;
|
|
1251
|
+
!n.status || !r || r(n.status) ? e(n) : t(new Y("Request failed with status code " + n.status, [Y.ERR_BAD_REQUEST, Y.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
|
|
1252
|
+
}
|
|
1253
|
+
//#endregion
|
|
1254
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js
|
|
1255
|
+
function qn(e) {
|
|
1256
|
+
let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
1257
|
+
return t && t[1] || "";
|
|
1258
|
+
}
|
|
1259
|
+
//#endregion
|
|
1260
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js
|
|
1261
|
+
function Jn(e, t) {
|
|
1262
|
+
e ||= 10;
|
|
1263
|
+
let n = Array(e), r = Array(e), i = 0, a = 0, o;
|
|
1264
|
+
return t = t === void 0 ? 1e3 : t, function(s) {
|
|
1265
|
+
let c = Date.now(), l = r[a];
|
|
1266
|
+
o ||= c, n[i] = s, r[i] = c;
|
|
1267
|
+
let u = a, d = 0;
|
|
1268
|
+
for (; u !== i;) d += n[u++], u %= e;
|
|
1269
|
+
if (i = (i + 1) % e, i === a && (a = (a + 1) % e), c - o < t) return;
|
|
1270
|
+
let f = l && c - l;
|
|
1271
|
+
return f ? Math.round(d * 1e3 / f) : void 0;
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1274
|
+
//#endregion
|
|
1275
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js
|
|
1276
|
+
function Yn(e, t) {
|
|
1277
|
+
let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
|
|
1278
|
+
n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
|
|
1279
|
+
};
|
|
1280
|
+
return [(...e) => {
|
|
1281
|
+
let t = Date.now(), s = t - n;
|
|
1282
|
+
s >= r ? o(e, t) : (i = e, a ||= setTimeout(() => {
|
|
1283
|
+
a = null, o(i);
|
|
1284
|
+
}, r - s));
|
|
1285
|
+
}, () => i && o(i)];
|
|
1286
|
+
}
|
|
1287
|
+
//#endregion
|
|
1288
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js
|
|
1289
|
+
var Xn = (e, t, n = 3) => {
|
|
1290
|
+
let r = 0, i = Jn(50, 250);
|
|
1291
|
+
return Yn((n) => {
|
|
1292
|
+
let a = n.loaded, o = n.lengthComputable ? n.total : void 0, s = a - r, c = i(s), l = a <= o;
|
|
1293
|
+
r = a, e({
|
|
1294
|
+
loaded: a,
|
|
1295
|
+
total: o,
|
|
1296
|
+
progress: o ? a / o : void 0,
|
|
1297
|
+
bytes: s,
|
|
1298
|
+
rate: c || void 0,
|
|
1299
|
+
estimated: c && o && l ? (o - a) / c : void 0,
|
|
1300
|
+
event: n,
|
|
1301
|
+
lengthComputable: o != null,
|
|
1302
|
+
[t ? "download" : "upload"]: !0
|
|
1303
|
+
});
|
|
1304
|
+
}, n);
|
|
1305
|
+
}, Zn = (e, t) => {
|
|
1306
|
+
let n = e != null;
|
|
1307
|
+
return [(r) => t[0]({
|
|
1308
|
+
lengthComputable: n,
|
|
1309
|
+
total: e,
|
|
1310
|
+
loaded: r
|
|
1311
|
+
}), t[1]];
|
|
1312
|
+
}, Qn = (e) => (...t) => J.asap(() => e(...t)), $n = X.hasStandardBrowserEnv ? ((e, t) => (n) => (n = new URL(n, X.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(new URL(X.origin), X.navigator && /(msie|trident)/i.test(X.navigator.userAgent)) : () => !0, er = X.hasStandardBrowserEnv ? {
|
|
1313
|
+
write(e, t, n, r, i, a, o) {
|
|
1314
|
+
if (typeof document > "u") return;
|
|
1315
|
+
let s = [`${e}=${encodeURIComponent(t)}`];
|
|
1316
|
+
J.isNumber(n) && s.push(`expires=${new Date(n).toUTCString()}`), J.isString(r) && s.push(`path=${r}`), J.isString(i) && s.push(`domain=${i}`), a === !0 && s.push("secure"), J.isString(o) && s.push(`SameSite=${o}`), document.cookie = s.join("; ");
|
|
1317
|
+
},
|
|
1318
|
+
read(e) {
|
|
1319
|
+
if (typeof document > "u") return null;
|
|
1320
|
+
let t = document.cookie.match(RegExp("(?:^|; )" + e + "=([^;]*)"));
|
|
1321
|
+
return t ? decodeURIComponent(t[1]) : null;
|
|
1322
|
+
},
|
|
1323
|
+
remove(e) {
|
|
1324
|
+
this.write(e, "", Date.now() - 864e5, "/");
|
|
1325
|
+
}
|
|
1326
|
+
} : {
|
|
1327
|
+
write() {},
|
|
1328
|
+
read() {
|
|
1329
|
+
return null;
|
|
1330
|
+
},
|
|
1331
|
+
remove() {}
|
|
1332
|
+
};
|
|
1333
|
+
//#endregion
|
|
1334
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js
|
|
1335
|
+
function tr(e) {
|
|
1336
|
+
return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
|
|
1337
|
+
}
|
|
1338
|
+
//#endregion
|
|
1339
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/combineURLs.js
|
|
1340
|
+
function nr(e, t) {
|
|
1341
|
+
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
1342
|
+
}
|
|
1343
|
+
//#endregion
|
|
1344
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/buildFullPath.js
|
|
1345
|
+
function rr(e, t, n) {
|
|
1346
|
+
let r = !tr(t);
|
|
1347
|
+
return e && (r || n == 0) ? nr(e, t) : t;
|
|
1348
|
+
}
|
|
1349
|
+
//#endregion
|
|
1350
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/mergeConfig.js
|
|
1351
|
+
var ir = (e) => e instanceof Z ? { ...e } : e;
|
|
1352
|
+
function ar(e, t) {
|
|
1353
|
+
t ||= {};
|
|
1354
|
+
let n = {};
|
|
1355
|
+
function r(e, t, n, r) {
|
|
1356
|
+
return J.isPlainObject(e) && J.isPlainObject(t) ? J.merge.call({ caseless: r }, e, t) : J.isPlainObject(t) ? J.merge({}, t) : J.isArray(t) ? t.slice() : t;
|
|
1357
|
+
}
|
|
1358
|
+
function i(e, t, n, i) {
|
|
1359
|
+
if (!J.isUndefined(t)) return r(e, t, n, i);
|
|
1360
|
+
if (!J.isUndefined(e)) return r(void 0, e, n, i);
|
|
1361
|
+
}
|
|
1362
|
+
function a(e, t) {
|
|
1363
|
+
if (!J.isUndefined(t)) return r(void 0, t);
|
|
1364
|
+
}
|
|
1365
|
+
function o(e, t) {
|
|
1366
|
+
if (!J.isUndefined(t)) return r(void 0, t);
|
|
1367
|
+
if (!J.isUndefined(e)) return r(void 0, e);
|
|
1368
|
+
}
|
|
1369
|
+
function s(n, i, a) {
|
|
1370
|
+
if (a in t) return r(n, i);
|
|
1371
|
+
if (a in e) return r(void 0, n);
|
|
1372
|
+
}
|
|
1373
|
+
let c = {
|
|
1374
|
+
url: a,
|
|
1375
|
+
method: a,
|
|
1376
|
+
data: a,
|
|
1377
|
+
baseURL: o,
|
|
1378
|
+
transformRequest: o,
|
|
1379
|
+
transformResponse: o,
|
|
1380
|
+
paramsSerializer: o,
|
|
1381
|
+
timeout: o,
|
|
1382
|
+
timeoutMessage: o,
|
|
1383
|
+
withCredentials: o,
|
|
1384
|
+
withXSRFToken: o,
|
|
1385
|
+
adapter: o,
|
|
1386
|
+
responseType: o,
|
|
1387
|
+
xsrfCookieName: o,
|
|
1388
|
+
xsrfHeaderName: o,
|
|
1389
|
+
onUploadProgress: o,
|
|
1390
|
+
onDownloadProgress: o,
|
|
1391
|
+
decompress: o,
|
|
1392
|
+
maxContentLength: o,
|
|
1393
|
+
maxBodyLength: o,
|
|
1394
|
+
beforeRedirect: o,
|
|
1395
|
+
transport: o,
|
|
1396
|
+
httpAgent: o,
|
|
1397
|
+
httpsAgent: o,
|
|
1398
|
+
cancelToken: o,
|
|
1399
|
+
socketPath: o,
|
|
1400
|
+
responseEncoding: o,
|
|
1401
|
+
validateStatus: s,
|
|
1402
|
+
headers: (e, t, n) => i(ir(e), ir(t), n, !0)
|
|
1403
|
+
};
|
|
1404
|
+
return J.forEach(Object.keys({
|
|
1405
|
+
...e,
|
|
1406
|
+
...t
|
|
1407
|
+
}), function(r) {
|
|
1408
|
+
if (r === "__proto__" || r === "constructor" || r === "prototype") return;
|
|
1409
|
+
let a = J.hasOwnProp(c, r) ? c[r] : i, o = a(e[r], t[r], r);
|
|
1410
|
+
J.isUndefined(o) && a !== s || (n[r] = o);
|
|
1411
|
+
}), n;
|
|
1412
|
+
}
|
|
1413
|
+
//#endregion
|
|
1414
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js
|
|
1415
|
+
var or = (e) => {
|
|
1416
|
+
let t = ar({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
|
|
1417
|
+
if (t.headers = o = Z.from(o), t.url = _n(rr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), s && o.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))), J.isFormData(n)) {
|
|
1418
|
+
if (X.hasStandardBrowserEnv || X.hasStandardBrowserWebWorkerEnv) o.setContentType(void 0);
|
|
1419
|
+
else if (J.isFunction(n.getHeaders)) {
|
|
1420
|
+
let e = n.getHeaders(), t = ["content-type", "content-length"];
|
|
1421
|
+
Object.entries(e).forEach(([e, n]) => {
|
|
1422
|
+
t.includes(e.toLowerCase()) && o.set(e, n);
|
|
1423
|
+
});
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
if (X.hasStandardBrowserEnv && (r && J.isFunction(r) && (r = r(t)), r || r !== !1 && $n(t.url))) {
|
|
1427
|
+
let e = i && a && er.read(a);
|
|
1428
|
+
e && o.set(i, e);
|
|
1429
|
+
}
|
|
1430
|
+
return t;
|
|
1431
|
+
}, sr = typeof XMLHttpRequest < "u" && function(e) {
|
|
1432
|
+
return new Promise(function(t, n) {
|
|
1433
|
+
let r = or(e), i = r.data, a = Z.from(r.headers).normalize(), { responseType: o, onUploadProgress: s, onDownloadProgress: c } = r, l, u, d, f, p;
|
|
1434
|
+
function m() {
|
|
1435
|
+
f && f(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(l), r.signal && r.signal.removeEventListener("abort", l);
|
|
1436
|
+
}
|
|
1437
|
+
let h = new XMLHttpRequest();
|
|
1438
|
+
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
1439
|
+
function g() {
|
|
1440
|
+
if (!h) return;
|
|
1441
|
+
let r = Z.from("getAllResponseHeaders" in h && h.getAllResponseHeaders());
|
|
1442
|
+
Kn(function(e) {
|
|
1443
|
+
t(e), m();
|
|
1444
|
+
}, function(e) {
|
|
1445
|
+
n(e), m();
|
|
1446
|
+
}, {
|
|
1447
|
+
data: !o || o === "text" || o === "json" ? h.responseText : h.response,
|
|
1448
|
+
status: h.status,
|
|
1449
|
+
statusText: h.statusText,
|
|
1450
|
+
headers: r,
|
|
1451
|
+
config: e,
|
|
1452
|
+
request: h
|
|
1453
|
+
}), h = null;
|
|
1454
|
+
}
|
|
1455
|
+
"onloadend" in h ? h.onloadend = g : h.onreadystatechange = function() {
|
|
1456
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(g);
|
|
1457
|
+
}, h.onabort = function() {
|
|
1458
|
+
h &&= (n(new Y("Request aborted", Y.ECONNABORTED, e, h)), null);
|
|
1459
|
+
}, h.onerror = function(t) {
|
|
1460
|
+
let r = new Y(t && t.message ? t.message : "Network Error", Y.ERR_NETWORK, e, h);
|
|
1461
|
+
r.event = t || null, n(r), h = null;
|
|
1462
|
+
}, h.ontimeout = function() {
|
|
1463
|
+
let t = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded", i = r.transitional || yn;
|
|
1464
|
+
r.timeoutErrorMessage && (t = r.timeoutErrorMessage), n(new Y(t, i.clarifyTimeoutError ? Y.ETIMEDOUT : Y.ECONNABORTED, e, h)), h = null;
|
|
1465
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && J.forEach(a.toJSON(), function(e, t) {
|
|
1466
|
+
h.setRequestHeader(t, e);
|
|
1467
|
+
}), J.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), o && o !== "json" && (h.responseType = r.responseType), c && ([d, p] = Xn(c, !0), h.addEventListener("progress", d)), s && h.upload && ([u, f] = Xn(s), h.upload.addEventListener("progress", u), h.upload.addEventListener("loadend", f)), (r.cancelToken || r.signal) && (l = (t) => {
|
|
1468
|
+
h &&= (n(!t || t.type ? new Gn(null, e, h) : t), h.abort(), null);
|
|
1469
|
+
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
1470
|
+
let _ = qn(r.url);
|
|
1471
|
+
if (_ && X.protocols.indexOf(_) === -1) {
|
|
1472
|
+
n(new Y("Unsupported protocol " + _ + ":", Y.ERR_BAD_REQUEST, e));
|
|
1473
|
+
return;
|
|
1474
|
+
}
|
|
1475
|
+
h.send(i || null);
|
|
1476
|
+
});
|
|
1477
|
+
}, cr = (e, t) => {
|
|
1478
|
+
let { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1479
|
+
if (t || n) {
|
|
1480
|
+
let n = new AbortController(), r, i = function(e) {
|
|
1481
|
+
if (!r) {
|
|
1482
|
+
r = !0, o();
|
|
1483
|
+
let t = e instanceof Error ? e : this.reason;
|
|
1484
|
+
n.abort(t instanceof Y ? t : new Gn(t instanceof Error ? t.message : t));
|
|
1485
|
+
}
|
|
1486
|
+
}, a = t && setTimeout(() => {
|
|
1487
|
+
a = null, i(new Y(`timeout of ${t}ms exceeded`, Y.ETIMEDOUT));
|
|
1488
|
+
}, t), o = () => {
|
|
1489
|
+
e &&= (a && clearTimeout(a), a = null, e.forEach((e) => {
|
|
1490
|
+
e.unsubscribe ? e.unsubscribe(i) : e.removeEventListener("abort", i);
|
|
1491
|
+
}), null);
|
|
1492
|
+
};
|
|
1493
|
+
e.forEach((e) => e.addEventListener("abort", i));
|
|
1494
|
+
let { signal: s } = n;
|
|
1495
|
+
return s.unsubscribe = () => J.asap(o), s;
|
|
1496
|
+
}
|
|
1497
|
+
}, lr = function* (e, t) {
|
|
1498
|
+
let n = e.byteLength;
|
|
1499
|
+
if (!t || n < t) {
|
|
1500
|
+
yield e;
|
|
1501
|
+
return;
|
|
1502
|
+
}
|
|
1503
|
+
let r = 0, i;
|
|
1504
|
+
for (; r < n;) i = r + t, yield e.slice(r, i), r = i;
|
|
1505
|
+
}, ur = async function* (e, t) {
|
|
1506
|
+
for await (let n of dr(e)) yield* lr(n, t);
|
|
1507
|
+
}, dr = async function* (e) {
|
|
1508
|
+
if (e[Symbol.asyncIterator]) {
|
|
1509
|
+
yield* e;
|
|
1510
|
+
return;
|
|
1511
|
+
}
|
|
1512
|
+
let t = e.getReader();
|
|
1513
|
+
try {
|
|
1514
|
+
for (;;) {
|
|
1515
|
+
let { done: e, value: n } = await t.read();
|
|
1516
|
+
if (e) break;
|
|
1517
|
+
yield n;
|
|
1518
|
+
}
|
|
1519
|
+
} finally {
|
|
1520
|
+
await t.cancel();
|
|
1521
|
+
}
|
|
1522
|
+
}, fr = (e, t, n, r) => {
|
|
1523
|
+
let i = ur(e, t), a = 0, o, s = (e) => {
|
|
1524
|
+
o || (o = !0, r && r(e));
|
|
1525
|
+
};
|
|
1526
|
+
return new ReadableStream({
|
|
1527
|
+
async pull(e) {
|
|
1528
|
+
try {
|
|
1529
|
+
let { done: t, value: r } = await i.next();
|
|
1530
|
+
if (t) {
|
|
1531
|
+
s(), e.close();
|
|
1532
|
+
return;
|
|
1533
|
+
}
|
|
1534
|
+
let o = r.byteLength;
|
|
1535
|
+
n && n(a += o), e.enqueue(new Uint8Array(r));
|
|
1536
|
+
} catch (e) {
|
|
1537
|
+
throw s(e), e;
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1540
|
+
cancel(e) {
|
|
1541
|
+
return s(e), i.return();
|
|
1542
|
+
}
|
|
1543
|
+
}, { highWaterMark: 2 });
|
|
1544
|
+
}, pr = 64 * 1024, { isFunction: mr } = J, hr = (({ Request: e, Response: t }) => ({
|
|
1545
|
+
Request: e,
|
|
1546
|
+
Response: t
|
|
1547
|
+
}))(J.global), { ReadableStream: gr, TextEncoder: _r } = J.global, vr = (e, ...t) => {
|
|
1548
|
+
try {
|
|
1549
|
+
return !!e(...t);
|
|
1550
|
+
} catch {
|
|
1551
|
+
return !1;
|
|
1552
|
+
}
|
|
1553
|
+
}, yr = (e) => {
|
|
1554
|
+
e = J.merge.call({ skipUndefined: !0 }, hr, e);
|
|
1555
|
+
let { fetch: t, Request: n, Response: r } = e, i = t ? mr(t) : typeof fetch == "function", a = mr(n), o = mr(r);
|
|
1556
|
+
if (!i) return !1;
|
|
1557
|
+
let s = i && mr(gr), c = i && (typeof _r == "function" ? ((e) => (t) => e.encode(t))(new _r()) : async (e) => new Uint8Array(await new n(e).arrayBuffer())), l = a && s && vr(() => {
|
|
1558
|
+
let e = !1, t = new n(X.origin, {
|
|
1559
|
+
body: new gr(),
|
|
1560
|
+
method: "POST",
|
|
1561
|
+
get duplex() {
|
|
1562
|
+
return e = !0, "half";
|
|
1563
|
+
}
|
|
1564
|
+
}).headers.has("Content-Type");
|
|
1565
|
+
return e && !t;
|
|
1566
|
+
}), u = o && s && vr(() => J.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
|
|
1567
|
+
i && [
|
|
1568
|
+
"text",
|
|
1569
|
+
"arrayBuffer",
|
|
1570
|
+
"blob",
|
|
1571
|
+
"formData",
|
|
1572
|
+
"stream"
|
|
1573
|
+
].forEach((e) => {
|
|
1574
|
+
!d[e] && (d[e] = (t, n) => {
|
|
1575
|
+
let r = t && t[e];
|
|
1576
|
+
if (r) return r.call(t);
|
|
1577
|
+
throw new Y(`Response type '${e}' is not supported`, Y.ERR_NOT_SUPPORT, n);
|
|
1578
|
+
});
|
|
1579
|
+
});
|
|
1580
|
+
let f = async (e) => {
|
|
1581
|
+
if (e == null) return 0;
|
|
1582
|
+
if (J.isBlob(e)) return e.size;
|
|
1583
|
+
if (J.isSpecCompliantForm(e)) return (await new n(X.origin, {
|
|
1584
|
+
method: "POST",
|
|
1585
|
+
body: e
|
|
1586
|
+
}).arrayBuffer()).byteLength;
|
|
1587
|
+
if (J.isArrayBufferView(e) || J.isArrayBuffer(e)) return e.byteLength;
|
|
1588
|
+
if (J.isURLSearchParams(e) && (e += ""), J.isString(e)) return (await c(e)).byteLength;
|
|
1589
|
+
}, p = async (e, t) => J.toFiniteNumber(e.getContentLength()) ?? f(t);
|
|
1590
|
+
return async (e) => {
|
|
1591
|
+
let { url: i, method: o, data: s, signal: c, cancelToken: f, timeout: m, onDownloadProgress: h, onUploadProgress: g, responseType: _, headers: v, withCredentials: y = "same-origin", fetchOptions: b } = or(e), x = t || fetch;
|
|
1592
|
+
_ = _ ? (_ + "").toLowerCase() : "text";
|
|
1593
|
+
let S = cr([c, f && f.toAbortSignal()], m), C = null, w = S && S.unsubscribe && (() => {
|
|
1594
|
+
S.unsubscribe();
|
|
1595
|
+
}), T;
|
|
1596
|
+
try {
|
|
1597
|
+
if (g && l && o !== "get" && o !== "head" && (T = await p(v, s)) !== 0) {
|
|
1598
|
+
let e = new n(i, {
|
|
1599
|
+
method: "POST",
|
|
1600
|
+
body: s,
|
|
1601
|
+
duplex: "half"
|
|
1602
|
+
}), t;
|
|
1603
|
+
if (J.isFormData(s) && (t = e.headers.get("content-type")) && v.setContentType(t), e.body) {
|
|
1604
|
+
let [t, n] = Zn(T, Xn(Qn(g)));
|
|
1605
|
+
s = fr(e.body, pr, t, n);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
J.isString(y) || (y = y ? "include" : "omit");
|
|
1609
|
+
let t = a && "credentials" in n.prototype, c = {
|
|
1610
|
+
...b,
|
|
1611
|
+
signal: S,
|
|
1612
|
+
method: o.toUpperCase(),
|
|
1613
|
+
headers: v.normalize().toJSON(),
|
|
1614
|
+
body: s,
|
|
1615
|
+
duplex: "half",
|
|
1616
|
+
credentials: t ? y : void 0
|
|
1617
|
+
};
|
|
1618
|
+
C = a && new n(i, c);
|
|
1619
|
+
let f = await (a ? x(C, b) : x(i, c)), m = u && (_ === "stream" || _ === "response");
|
|
1620
|
+
if (u && (h || m && w)) {
|
|
1621
|
+
let e = {};
|
|
1622
|
+
[
|
|
1623
|
+
"status",
|
|
1624
|
+
"statusText",
|
|
1625
|
+
"headers"
|
|
1626
|
+
].forEach((t) => {
|
|
1627
|
+
e[t] = f[t];
|
|
1628
|
+
});
|
|
1629
|
+
let t = J.toFiniteNumber(f.headers.get("content-length")), [n, i] = h && Zn(t, Xn(Qn(h), !0)) || [];
|
|
1630
|
+
f = new r(fr(f.body, pr, n, () => {
|
|
1631
|
+
i && i(), w && w();
|
|
1632
|
+
}), e);
|
|
1633
|
+
}
|
|
1634
|
+
_ ||= "text";
|
|
1635
|
+
let E = await d[J.findKey(d, _) || "text"](f, e);
|
|
1636
|
+
return !m && w && w(), await new Promise((t, n) => {
|
|
1637
|
+
Kn(t, n, {
|
|
1638
|
+
data: E,
|
|
1639
|
+
headers: Z.from(f.headers),
|
|
1640
|
+
status: f.status,
|
|
1641
|
+
statusText: f.statusText,
|
|
1642
|
+
config: e,
|
|
1643
|
+
request: C
|
|
1644
|
+
});
|
|
1645
|
+
});
|
|
1646
|
+
} catch (t) {
|
|
1647
|
+
throw w && w(), t && t.name === "TypeError" && /Load failed|fetch/i.test(t.message) ? Object.assign(new Y("Network Error", Y.ERR_NETWORK, e, C, t && t.response), { cause: t.cause || t }) : Y.from(t, t && t.code, e, C, t && t.response);
|
|
1648
|
+
}
|
|
1649
|
+
};
|
|
1650
|
+
}, br = /* @__PURE__ */ new Map(), xr = (e) => {
|
|
1651
|
+
let t = e && e.env || {}, { fetch: n, Request: r, Response: i } = t, a = [
|
|
1652
|
+
r,
|
|
1653
|
+
i,
|
|
1654
|
+
n
|
|
1655
|
+
], o = a.length, s, c, l = br;
|
|
1656
|
+
for (; o--;) s = a[o], c = l.get(s), c === void 0 && l.set(s, c = o ? /* @__PURE__ */ new Map() : yr(t)), l = c;
|
|
1657
|
+
return c;
|
|
1658
|
+
};
|
|
1659
|
+
xr();
|
|
1660
|
+
//#endregion
|
|
1661
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/adapters.js
|
|
1662
|
+
var Sr = {
|
|
1663
|
+
http: null,
|
|
1664
|
+
xhr: sr,
|
|
1665
|
+
fetch: { get: xr }
|
|
1666
|
+
};
|
|
1667
|
+
J.forEach(Sr, (e, t) => {
|
|
1668
|
+
if (e) {
|
|
1669
|
+
try {
|
|
1670
|
+
Object.defineProperty(e, "name", { value: t });
|
|
1671
|
+
} catch {}
|
|
1672
|
+
Object.defineProperty(e, "adapterName", { value: t });
|
|
1673
|
+
}
|
|
1674
|
+
});
|
|
1675
|
+
var Cr = (e) => `- ${e}`, wr = (e) => J.isFunction(e) || e === null || e === !1;
|
|
1676
|
+
function Tr(e, t) {
|
|
1677
|
+
e = J.isArray(e) ? e : [e];
|
|
1678
|
+
let { length: n } = e, r, i, a = {};
|
|
1679
|
+
for (let o = 0; o < n; o++) {
|
|
1680
|
+
r = e[o];
|
|
1681
|
+
let n;
|
|
1682
|
+
if (i = r, !wr(r) && (i = Sr[(n = String(r)).toLowerCase()], i === void 0)) throw new Y(`Unknown adapter '${n}'`);
|
|
1683
|
+
if (i && (J.isFunction(i) || (i = i.get(t)))) break;
|
|
1684
|
+
a[n || "#" + o] = i;
|
|
1685
|
+
}
|
|
1686
|
+
if (!i) {
|
|
1687
|
+
let e = Object.entries(a).map(([e, t]) => `adapter ${e} ` + (t === !1 ? "is not supported by the environment" : "is not available in the build"));
|
|
1688
|
+
throw new Y("There is no suitable adapter to dispatch the request " + (n ? e.length > 1 ? "since :\n" + e.map(Cr).join("\n") : " " + Cr(e[0]) : "as no adapter specified"), "ERR_NOT_SUPPORT");
|
|
1689
|
+
}
|
|
1690
|
+
return i;
|
|
1691
|
+
}
|
|
1692
|
+
var Er = {
|
|
1693
|
+
getAdapter: Tr,
|
|
1694
|
+
adapters: Sr
|
|
1695
|
+
};
|
|
1696
|
+
//#endregion
|
|
1697
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/dispatchRequest.js
|
|
1698
|
+
function Dr(e) {
|
|
1699
|
+
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Gn(null, e);
|
|
1700
|
+
}
|
|
1701
|
+
function Or(e) {
|
|
1702
|
+
return Dr(e), e.headers = Z.from(e.headers), e.data = Un.call(e, e.transformRequest), [
|
|
1703
|
+
"post",
|
|
1704
|
+
"put",
|
|
1705
|
+
"patch"
|
|
1706
|
+
].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Er.getAdapter(e.adapter || Mn.adapter, e)(e).then(function(t) {
|
|
1707
|
+
return Dr(e), t.data = Un.call(e, e.transformResponse, t), t.headers = Z.from(t.headers), t;
|
|
1708
|
+
}, function(t) {
|
|
1709
|
+
return Wn(t) || (Dr(e), t && t.response && (t.response.data = Un.call(e, e.transformResponse, t.response), t.response.headers = Z.from(t.response.headers))), Promise.reject(t);
|
|
1710
|
+
});
|
|
1711
|
+
}
|
|
1712
|
+
//#endregion
|
|
1713
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/env/data.js
|
|
1714
|
+
var kr = "1.13.6", Ar = {};
|
|
1715
|
+
[
|
|
1716
|
+
"object",
|
|
1717
|
+
"boolean",
|
|
1718
|
+
"number",
|
|
1719
|
+
"function",
|
|
1720
|
+
"string",
|
|
1721
|
+
"symbol"
|
|
1722
|
+
].forEach((e, t) => {
|
|
1723
|
+
Ar[e] = function(n) {
|
|
1724
|
+
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1725
|
+
};
|
|
1726
|
+
});
|
|
1727
|
+
var jr = {};
|
|
1728
|
+
Ar.transitional = function(e, t, n) {
|
|
1729
|
+
function r(e, t) {
|
|
1730
|
+
return "[Axios v" + kr + "] Transitional option '" + e + "'" + t + (n ? ". " + n : "");
|
|
1731
|
+
}
|
|
1732
|
+
return (n, i, a) => {
|
|
1733
|
+
if (e === !1) throw new Y(r(i, " has been removed" + (t ? " in " + t : "")), Y.ERR_DEPRECATED);
|
|
1734
|
+
return t && !jr[i] && (jr[i] = !0, console.warn(r(i, " has been deprecated since v" + t + " and will be removed in the near future"))), e ? e(n, i, a) : !0;
|
|
1735
|
+
};
|
|
1736
|
+
}, Ar.spelling = function(e) {
|
|
1737
|
+
return (t, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1738
|
+
};
|
|
1739
|
+
function Mr(e, t, n) {
|
|
1740
|
+
if (typeof e != "object") throw new Y("options must be an object", Y.ERR_BAD_OPTION_VALUE);
|
|
1741
|
+
let r = Object.keys(e), i = r.length;
|
|
1742
|
+
for (; i-- > 0;) {
|
|
1743
|
+
let a = r[i], o = t[a];
|
|
1744
|
+
if (o) {
|
|
1745
|
+
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
1746
|
+
if (n !== !0) throw new Y("option " + a + " must be " + n, Y.ERR_BAD_OPTION_VALUE);
|
|
1747
|
+
continue;
|
|
1748
|
+
}
|
|
1749
|
+
if (n !== !0) throw new Y("Unknown option " + a, Y.ERR_BAD_OPTION);
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
var Nr = {
|
|
1753
|
+
assertOptions: Mr,
|
|
1754
|
+
validators: Ar
|
|
1755
|
+
}, Q = Nr.validators, Pr = class {
|
|
1756
|
+
constructor(e) {
|
|
1757
|
+
this.defaults = e || {}, this.interceptors = {
|
|
1758
|
+
request: new vn(),
|
|
1759
|
+
response: new vn()
|
|
1760
|
+
};
|
|
1761
|
+
}
|
|
1762
|
+
async request(e, t) {
|
|
1763
|
+
try {
|
|
1764
|
+
return await this._request(e, t);
|
|
1765
|
+
} catch (e) {
|
|
1766
|
+
if (e instanceof Error) {
|
|
1767
|
+
let t = {};
|
|
1768
|
+
Error.captureStackTrace ? Error.captureStackTrace(t) : t = /* @__PURE__ */ Error();
|
|
1769
|
+
let n = t.stack ? t.stack.replace(/^.+\n/, "") : "";
|
|
1770
|
+
try {
|
|
1771
|
+
e.stack ? n && !String(e.stack).endsWith(n.replace(/^.+\n.+\n/, "")) && (e.stack += "\n" + n) : e.stack = n;
|
|
1772
|
+
} catch {}
|
|
1773
|
+
}
|
|
1774
|
+
throw e;
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
_request(e, t) {
|
|
1778
|
+
typeof e == "string" ? (t ||= {}, t.url = e) : t = e || {}, t = ar(this.defaults, t);
|
|
1779
|
+
let { transitional: n, paramsSerializer: r, headers: i } = t;
|
|
1780
|
+
n !== void 0 && Nr.assertOptions(n, {
|
|
1781
|
+
silentJSONParsing: Q.transitional(Q.boolean),
|
|
1782
|
+
forcedJSONParsing: Q.transitional(Q.boolean),
|
|
1783
|
+
clarifyTimeoutError: Q.transitional(Q.boolean),
|
|
1784
|
+
legacyInterceptorReqResOrdering: Q.transitional(Q.boolean)
|
|
1785
|
+
}, !1), r != null && (J.isFunction(r) ? t.paramsSerializer = { serialize: r } : Nr.assertOptions(r, {
|
|
1786
|
+
encode: Q.function,
|
|
1787
|
+
serialize: Q.function
|
|
1788
|
+
}, !0)), t.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls === void 0 ? t.allowAbsoluteUrls = !0 : t.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls), Nr.assertOptions(t, {
|
|
1789
|
+
baseUrl: Q.spelling("baseURL"),
|
|
1790
|
+
withXsrfToken: Q.spelling("withXSRFToken")
|
|
1791
|
+
}, !0), t.method = (t.method || this.defaults.method || "get").toLowerCase();
|
|
1792
|
+
let a = i && J.merge(i.common, i[t.method]);
|
|
1793
|
+
i && J.forEach([
|
|
1794
|
+
"delete",
|
|
1795
|
+
"get",
|
|
1796
|
+
"head",
|
|
1797
|
+
"post",
|
|
1798
|
+
"put",
|
|
1799
|
+
"patch",
|
|
1800
|
+
"common"
|
|
1801
|
+
], (e) => {
|
|
1802
|
+
delete i[e];
|
|
1803
|
+
}), t.headers = Z.concat(a, i);
|
|
1804
|
+
let o = [], s = !0;
|
|
1805
|
+
this.interceptors.request.forEach(function(e) {
|
|
1806
|
+
if (typeof e.runWhen == "function" && e.runWhen(t) === !1) return;
|
|
1807
|
+
s &&= e.synchronous;
|
|
1808
|
+
let n = t.transitional || yn;
|
|
1809
|
+
n && n.legacyInterceptorReqResOrdering ? o.unshift(e.fulfilled, e.rejected) : o.push(e.fulfilled, e.rejected);
|
|
1810
|
+
});
|
|
1811
|
+
let c = [];
|
|
1812
|
+
this.interceptors.response.forEach(function(e) {
|
|
1813
|
+
c.push(e.fulfilled, e.rejected);
|
|
1814
|
+
});
|
|
1815
|
+
let l, u = 0, d;
|
|
1816
|
+
if (!s) {
|
|
1817
|
+
let e = [Or.bind(this), void 0];
|
|
1818
|
+
for (e.unshift(...o), e.push(...c), d = e.length, l = Promise.resolve(t); u < d;) l = l.then(e[u++], e[u++]);
|
|
1819
|
+
return l;
|
|
1820
|
+
}
|
|
1821
|
+
d = o.length;
|
|
1822
|
+
let f = t;
|
|
1823
|
+
for (; u < d;) {
|
|
1824
|
+
let e = o[u++], t = o[u++];
|
|
1825
|
+
try {
|
|
1826
|
+
f = e(f);
|
|
1827
|
+
} catch (e) {
|
|
1828
|
+
t.call(this, e);
|
|
1829
|
+
break;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
try {
|
|
1833
|
+
l = Or.call(this, f);
|
|
1834
|
+
} catch (e) {
|
|
1835
|
+
return Promise.reject(e);
|
|
1836
|
+
}
|
|
1837
|
+
for (u = 0, d = c.length; u < d;) l = l.then(c[u++], c[u++]);
|
|
1838
|
+
return l;
|
|
1839
|
+
}
|
|
1840
|
+
getUri(e) {
|
|
1841
|
+
return e = ar(this.defaults, e), _n(rr(e.baseURL, e.url, e.allowAbsoluteUrls), e.params, e.paramsSerializer);
|
|
1842
|
+
}
|
|
1843
|
+
};
|
|
1844
|
+
J.forEach([
|
|
1845
|
+
"delete",
|
|
1846
|
+
"get",
|
|
1847
|
+
"head",
|
|
1848
|
+
"options"
|
|
1849
|
+
], function(e) {
|
|
1850
|
+
Pr.prototype[e] = function(t, n) {
|
|
1851
|
+
return this.request(ar(n || {}, {
|
|
1852
|
+
method: e,
|
|
1853
|
+
url: t,
|
|
1854
|
+
data: (n || {}).data
|
|
1855
|
+
}));
|
|
1856
|
+
};
|
|
1857
|
+
}), J.forEach([
|
|
1858
|
+
"post",
|
|
1859
|
+
"put",
|
|
1860
|
+
"patch"
|
|
1861
|
+
], function(e) {
|
|
1862
|
+
function t(t) {
|
|
1863
|
+
return function(n, r, i) {
|
|
1864
|
+
return this.request(ar(i || {}, {
|
|
1865
|
+
method: e,
|
|
1866
|
+
headers: t ? { "Content-Type": "multipart/form-data" } : {},
|
|
1867
|
+
url: n,
|
|
1868
|
+
data: r
|
|
1869
|
+
}));
|
|
1870
|
+
};
|
|
1871
|
+
}
|
|
1872
|
+
Pr.prototype[e] = t(), Pr.prototype[e + "Form"] = t(!0);
|
|
1873
|
+
});
|
|
1874
|
+
//#endregion
|
|
1875
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js
|
|
1876
|
+
var Fr = class e {
|
|
1877
|
+
constructor(e) {
|
|
1878
|
+
if (typeof e != "function") throw TypeError("executor must be a function.");
|
|
1879
|
+
let t;
|
|
1880
|
+
this.promise = new Promise(function(e) {
|
|
1881
|
+
t = e;
|
|
1882
|
+
});
|
|
1883
|
+
let n = this;
|
|
1884
|
+
this.promise.then((e) => {
|
|
1885
|
+
if (!n._listeners) return;
|
|
1886
|
+
let t = n._listeners.length;
|
|
1887
|
+
for (; t-- > 0;) n._listeners[t](e);
|
|
1888
|
+
n._listeners = null;
|
|
1889
|
+
}), this.promise.then = (e) => {
|
|
1890
|
+
let t, r = new Promise((e) => {
|
|
1891
|
+
n.subscribe(e), t = e;
|
|
1892
|
+
}).then(e);
|
|
1893
|
+
return r.cancel = function() {
|
|
1894
|
+
n.unsubscribe(t);
|
|
1895
|
+
}, r;
|
|
1896
|
+
}, e(function(e, r, i) {
|
|
1897
|
+
n.reason || (n.reason = new Gn(e, r, i), t(n.reason));
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
throwIfRequested() {
|
|
1901
|
+
if (this.reason) throw this.reason;
|
|
1902
|
+
}
|
|
1903
|
+
subscribe(e) {
|
|
1904
|
+
if (this.reason) {
|
|
1905
|
+
e(this.reason);
|
|
1906
|
+
return;
|
|
1907
|
+
}
|
|
1908
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
1909
|
+
}
|
|
1910
|
+
unsubscribe(e) {
|
|
1911
|
+
if (!this._listeners) return;
|
|
1912
|
+
let t = this._listeners.indexOf(e);
|
|
1913
|
+
t !== -1 && this._listeners.splice(t, 1);
|
|
1914
|
+
}
|
|
1915
|
+
toAbortSignal() {
|
|
1916
|
+
let e = new AbortController(), t = (t) => {
|
|
1917
|
+
e.abort(t);
|
|
1918
|
+
};
|
|
1919
|
+
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
1920
|
+
}
|
|
1921
|
+
static source() {
|
|
1922
|
+
let t;
|
|
1923
|
+
return {
|
|
1924
|
+
token: new e(function(e) {
|
|
1925
|
+
t = e;
|
|
1926
|
+
}),
|
|
1927
|
+
cancel: t
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
//#endregion
|
|
1932
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js
|
|
1933
|
+
function Ir(e) {
|
|
1934
|
+
return function(t) {
|
|
1935
|
+
return e.apply(null, t);
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
//#endregion
|
|
1939
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js
|
|
1940
|
+
function Lr(e) {
|
|
1941
|
+
return J.isObject(e) && e.isAxiosError === !0;
|
|
1942
|
+
}
|
|
1943
|
+
//#endregion
|
|
1944
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
1945
|
+
var Rr = {
|
|
1946
|
+
Continue: 100,
|
|
1947
|
+
SwitchingProtocols: 101,
|
|
1948
|
+
Processing: 102,
|
|
1949
|
+
EarlyHints: 103,
|
|
1950
|
+
Ok: 200,
|
|
1951
|
+
Created: 201,
|
|
1952
|
+
Accepted: 202,
|
|
1953
|
+
NonAuthoritativeInformation: 203,
|
|
1954
|
+
NoContent: 204,
|
|
1955
|
+
ResetContent: 205,
|
|
1956
|
+
PartialContent: 206,
|
|
1957
|
+
MultiStatus: 207,
|
|
1958
|
+
AlreadyReported: 208,
|
|
1959
|
+
ImUsed: 226,
|
|
1960
|
+
MultipleChoices: 300,
|
|
1961
|
+
MovedPermanently: 301,
|
|
1962
|
+
Found: 302,
|
|
1963
|
+
SeeOther: 303,
|
|
1964
|
+
NotModified: 304,
|
|
1965
|
+
UseProxy: 305,
|
|
1966
|
+
Unused: 306,
|
|
1967
|
+
TemporaryRedirect: 307,
|
|
1968
|
+
PermanentRedirect: 308,
|
|
1969
|
+
BadRequest: 400,
|
|
1970
|
+
Unauthorized: 401,
|
|
1971
|
+
PaymentRequired: 402,
|
|
1972
|
+
Forbidden: 403,
|
|
1973
|
+
NotFound: 404,
|
|
1974
|
+
MethodNotAllowed: 405,
|
|
1975
|
+
NotAcceptable: 406,
|
|
1976
|
+
ProxyAuthenticationRequired: 407,
|
|
1977
|
+
RequestTimeout: 408,
|
|
1978
|
+
Conflict: 409,
|
|
1979
|
+
Gone: 410,
|
|
1980
|
+
LengthRequired: 411,
|
|
1981
|
+
PreconditionFailed: 412,
|
|
1982
|
+
PayloadTooLarge: 413,
|
|
1983
|
+
UriTooLong: 414,
|
|
1984
|
+
UnsupportedMediaType: 415,
|
|
1985
|
+
RangeNotSatisfiable: 416,
|
|
1986
|
+
ExpectationFailed: 417,
|
|
1987
|
+
ImATeapot: 418,
|
|
1988
|
+
MisdirectedRequest: 421,
|
|
1989
|
+
UnprocessableEntity: 422,
|
|
1990
|
+
Locked: 423,
|
|
1991
|
+
FailedDependency: 424,
|
|
1992
|
+
TooEarly: 425,
|
|
1993
|
+
UpgradeRequired: 426,
|
|
1994
|
+
PreconditionRequired: 428,
|
|
1995
|
+
TooManyRequests: 429,
|
|
1996
|
+
RequestHeaderFieldsTooLarge: 431,
|
|
1997
|
+
UnavailableForLegalReasons: 451,
|
|
1998
|
+
InternalServerError: 500,
|
|
1999
|
+
NotImplemented: 501,
|
|
2000
|
+
BadGateway: 502,
|
|
2001
|
+
ServiceUnavailable: 503,
|
|
2002
|
+
GatewayTimeout: 504,
|
|
2003
|
+
HttpVersionNotSupported: 505,
|
|
2004
|
+
VariantAlsoNegotiates: 506,
|
|
2005
|
+
InsufficientStorage: 507,
|
|
2006
|
+
LoopDetected: 508,
|
|
2007
|
+
NotExtended: 510,
|
|
2008
|
+
NetworkAuthenticationRequired: 511,
|
|
2009
|
+
WebServerIsDown: 521,
|
|
2010
|
+
ConnectionTimedOut: 522,
|
|
2011
|
+
OriginIsUnreachable: 523,
|
|
2012
|
+
TimeoutOccurred: 524,
|
|
2013
|
+
SslHandshakeFailed: 525,
|
|
2014
|
+
InvalidSslCertificate: 526
|
|
2015
|
+
};
|
|
2016
|
+
Object.entries(Rr).forEach(([e, t]) => {
|
|
2017
|
+
Rr[t] = e;
|
|
2018
|
+
});
|
|
2019
|
+
//#endregion
|
|
2020
|
+
//#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js
|
|
2021
|
+
function zr(e) {
|
|
2022
|
+
let t = new Pr(e), n = Ze(Pr.prototype.request, t);
|
|
2023
|
+
return J.extend(n, Pr.prototype, t, { allOwnKeys: !0 }), J.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
|
|
2024
|
+
return zr(ar(e, t));
|
|
2025
|
+
}, n;
|
|
2026
|
+
}
|
|
2027
|
+
var $ = zr(Mn);
|
|
2028
|
+
$.Axios = Pr, $.CanceledError = Gn, $.CancelToken = Fr, $.isCancel = Wn, $.VERSION = kr, $.toFormData = fn, $.AxiosError = Y, $.Cancel = $.CanceledError, $.all = function(e) {
|
|
2029
|
+
return Promise.all(e);
|
|
2030
|
+
}, $.spread = Ir, $.isAxiosError = Lr, $.mergeConfig = ar, $.AxiosHeaders = Z, $.formToJSON = (e) => An(J.isHTMLForm(e) ? new FormData(e) : e), $.getAdapter = Er.getAdapter, $.HttpStatusCode = Rr, $.default = $;
|
|
2031
|
+
var Br = new class extends Fe {
|
|
931
2032
|
description = {
|
|
932
2033
|
title: "通过任意URL安装插件",
|
|
933
2034
|
description: "从任何你给定的url获取内容,无论内容是什么"
|
|
934
2035
|
};
|
|
935
2036
|
name = "fallbackUrl";
|
|
936
2037
|
async installer(e) {
|
|
937
|
-
let t = await
|
|
2038
|
+
let t = await $.request({
|
|
938
2039
|
url: e,
|
|
939
|
-
responseType: "blob"
|
|
2040
|
+
responseType: "blob",
|
|
2041
|
+
timeout: 1e3 * 60 * 5
|
|
940
2042
|
}), n = e.split("/").at(-1) ?? "us.js";
|
|
941
2043
|
return new File([t.data], n);
|
|
942
2044
|
}
|
|
943
|
-
async
|
|
2045
|
+
async download(e) {
|
|
944
2046
|
return await this.installer(e);
|
|
945
2047
|
}
|
|
946
2048
|
async update(e) {
|
|
@@ -949,11 +2051,11 @@ var Tt = async (e, t) => {
|
|
|
949
2051
|
isMatched(e) {
|
|
950
2052
|
return URL.canParse(e);
|
|
951
2053
|
}
|
|
952
|
-
}(),
|
|
2054
|
+
}(), Vr;
|
|
953
2055
|
(function(e) {
|
|
954
2056
|
e[e.Start = 0] = "Start", e[e.Current = 1] = "Current", e[e.End = 2] = "End";
|
|
955
|
-
})(
|
|
956
|
-
function
|
|
2057
|
+
})(Vr ||= {});
|
|
2058
|
+
function Hr(e) {
|
|
957
2059
|
return {
|
|
958
2060
|
isFile: e.isFile,
|
|
959
2061
|
isDirectory: e.isDirectory,
|
|
@@ -975,7 +2077,7 @@ function Pt(e) {
|
|
|
975
2077
|
blocks: e.blocks
|
|
976
2078
|
};
|
|
977
2079
|
}
|
|
978
|
-
function
|
|
2080
|
+
function Ur(e) {
|
|
979
2081
|
let t = new Uint8ClampedArray(e), n = t.byteLength, r = 0;
|
|
980
2082
|
for (let e = 0; e < n; e++) {
|
|
981
2083
|
let n = t[e];
|
|
@@ -983,86 +2085,86 @@ function Ft(e) {
|
|
|
983
2085
|
}
|
|
984
2086
|
return r;
|
|
985
2087
|
}
|
|
986
|
-
var
|
|
2088
|
+
var Wr = class extends ke {
|
|
987
2089
|
async read(e) {
|
|
988
2090
|
if (e.byteLength === 0) return 0;
|
|
989
|
-
let t = await
|
|
2091
|
+
let t = await G("plugin:fs|read", {
|
|
990
2092
|
rid: this.rid,
|
|
991
2093
|
len: e.byteLength
|
|
992
|
-
}), n =
|
|
2094
|
+
}), n = Ur(t.slice(-8)), r = t instanceof ArrayBuffer ? new Uint8Array(t) : t;
|
|
993
2095
|
return e.set(r.slice(0, r.length - 8)), n === 0 ? null : n;
|
|
994
2096
|
}
|
|
995
2097
|
async seek(e, t) {
|
|
996
|
-
return await
|
|
2098
|
+
return await G("plugin:fs|seek", {
|
|
997
2099
|
rid: this.rid,
|
|
998
2100
|
offset: e,
|
|
999
2101
|
whence: t
|
|
1000
2102
|
});
|
|
1001
2103
|
}
|
|
1002
2104
|
async stat() {
|
|
1003
|
-
return
|
|
2105
|
+
return Hr(await G("plugin:fs|fstat", { rid: this.rid }));
|
|
1004
2106
|
}
|
|
1005
2107
|
async truncate(e) {
|
|
1006
|
-
await
|
|
2108
|
+
await G("plugin:fs|ftruncate", {
|
|
1007
2109
|
rid: this.rid,
|
|
1008
2110
|
len: e
|
|
1009
2111
|
});
|
|
1010
2112
|
}
|
|
1011
2113
|
async write(e) {
|
|
1012
|
-
return await
|
|
2114
|
+
return await G("plugin:fs|write", {
|
|
1013
2115
|
rid: this.rid,
|
|
1014
2116
|
data: e
|
|
1015
2117
|
});
|
|
1016
2118
|
}
|
|
1017
2119
|
};
|
|
1018
|
-
async function
|
|
2120
|
+
async function Gr(e, t) {
|
|
1019
2121
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1020
|
-
return new
|
|
2122
|
+
return new Wr(await G("plugin:fs|open", {
|
|
1021
2123
|
path: e instanceof URL ? e.toString() : e,
|
|
1022
2124
|
options: t
|
|
1023
2125
|
}));
|
|
1024
2126
|
}
|
|
1025
|
-
async function
|
|
2127
|
+
async function Kr(e, t) {
|
|
1026
2128
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1027
|
-
await
|
|
2129
|
+
await G("plugin:fs|mkdir", {
|
|
1028
2130
|
path: e instanceof URL ? e.toString() : e,
|
|
1029
2131
|
options: t
|
|
1030
2132
|
});
|
|
1031
2133
|
}
|
|
1032
|
-
async function
|
|
2134
|
+
async function qr(e, t) {
|
|
1033
2135
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1034
|
-
return await
|
|
2136
|
+
return await G("plugin:fs|read_dir", {
|
|
1035
2137
|
path: e instanceof URL ? e.toString() : e,
|
|
1036
2138
|
options: t
|
|
1037
2139
|
});
|
|
1038
2140
|
}
|
|
1039
|
-
async function
|
|
2141
|
+
async function Jr(e, t) {
|
|
1040
2142
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1041
|
-
let n = await
|
|
2143
|
+
let n = await G("plugin:fs|read_file", {
|
|
1042
2144
|
path: e instanceof URL ? e.toString() : e,
|
|
1043
2145
|
options: t
|
|
1044
2146
|
});
|
|
1045
2147
|
return n instanceof ArrayBuffer ? new Uint8Array(n) : Uint8Array.from(n);
|
|
1046
2148
|
}
|
|
1047
|
-
async function
|
|
2149
|
+
async function Yr(e, t) {
|
|
1048
2150
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1049
|
-
let n = await
|
|
2151
|
+
let n = await G("plugin:fs|read_text_file", {
|
|
1050
2152
|
path: e instanceof URL ? e.toString() : e,
|
|
1051
2153
|
options: t
|
|
1052
2154
|
}), r = n instanceof ArrayBuffer ? n : Uint8Array.from(n);
|
|
1053
2155
|
return new TextDecoder().decode(r);
|
|
1054
2156
|
}
|
|
1055
|
-
async function
|
|
2157
|
+
async function Xr(e, t) {
|
|
1056
2158
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1057
|
-
await
|
|
2159
|
+
await G("plugin:fs|remove", {
|
|
1058
2160
|
path: e instanceof URL ? e.toString() : e,
|
|
1059
2161
|
options: t
|
|
1060
2162
|
});
|
|
1061
2163
|
}
|
|
1062
|
-
async function
|
|
2164
|
+
async function Zr(e, t, n) {
|
|
1063
2165
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1064
2166
|
if (t instanceof ReadableStream) {
|
|
1065
|
-
let r = await
|
|
2167
|
+
let r = await Gr(e, {
|
|
1066
2168
|
read: !1,
|
|
1067
2169
|
create: !0,
|
|
1068
2170
|
write: !0,
|
|
@@ -1077,29 +2179,29 @@ async function Ut(e, t, n) {
|
|
|
1077
2179
|
} finally {
|
|
1078
2180
|
i.releaseLock(), await r.close();
|
|
1079
2181
|
}
|
|
1080
|
-
} else await
|
|
2182
|
+
} else await G("plugin:fs|write_file", t, { headers: {
|
|
1081
2183
|
path: encodeURIComponent(e instanceof URL ? e.toString() : e),
|
|
1082
2184
|
options: JSON.stringify(n)
|
|
1083
2185
|
} });
|
|
1084
2186
|
}
|
|
1085
|
-
async function
|
|
2187
|
+
async function Qr(e, t, n) {
|
|
1086
2188
|
if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
|
|
1087
|
-
await
|
|
2189
|
+
await G("plugin:fs|write_text_file", new TextEncoder().encode(t), { headers: {
|
|
1088
2190
|
path: encodeURIComponent(e instanceof URL ? e.toString() : e),
|
|
1089
2191
|
options: JSON.stringify(n)
|
|
1090
2192
|
} });
|
|
1091
2193
|
}
|
|
1092
|
-
var
|
|
2194
|
+
var $r = new class extends Fe {
|
|
1093
2195
|
description = {
|
|
1094
2196
|
title: "安装本地插件",
|
|
1095
2197
|
description: "输入以: \"local:\"开头,后接全路径的文本"
|
|
1096
2198
|
};
|
|
1097
2199
|
name = "local";
|
|
1098
2200
|
async installer(e) {
|
|
1099
|
-
let t = decodeURIComponent(
|
|
2201
|
+
let t = decodeURIComponent(Oe(e.replace(/^local:/, ""), "local")), n = t.split(/\\|\//).at(-1) ?? "us.js", r = await Jr(t);
|
|
1100
2202
|
return new File([r], n);
|
|
1101
2203
|
}
|
|
1102
|
-
async
|
|
2204
|
+
async download(e) {
|
|
1103
2205
|
return await this.installer(e);
|
|
1104
2206
|
}
|
|
1105
2207
|
async update(e) {
|
|
@@ -1108,20 +2210,20 @@ var Gt = new class extends bt {
|
|
|
1108
2210
|
isMatched(e) {
|
|
1109
2211
|
return e.startsWith("local:");
|
|
1110
2212
|
}
|
|
1111
|
-
}(),
|
|
2213
|
+
}(), ei = new class extends Fe {
|
|
1112
2214
|
description = {
|
|
1113
2215
|
title: "安装Develop Userscript插件",
|
|
1114
2216
|
description: "输入形如: \"localhost\"或者一个可以不含port的ip"
|
|
1115
2217
|
};
|
|
1116
2218
|
name = "devUrl";
|
|
1117
2219
|
async installer(e) {
|
|
1118
|
-
let t = await
|
|
2220
|
+
let t = await $.request({
|
|
1119
2221
|
url: `http://${/:\d+$/.test(e) ? e : e + ":6173"}/__vite-plugin-monkey.install.user.js?origin=http%3A%2F%2F${e}%3A6173`,
|
|
1120
2222
|
responseType: "text"
|
|
1121
2223
|
}), n = e.replace(/:\d+$/, ""), r = t.data.replaceAll("localhost", n).replaceAll("127.0.0.1", n);
|
|
1122
2224
|
return new File([r], "us.js");
|
|
1123
2225
|
}
|
|
1124
|
-
async
|
|
2226
|
+
async download(e) {
|
|
1125
2227
|
return await this.installer(e);
|
|
1126
2228
|
}
|
|
1127
2229
|
async update(e) {
|
|
@@ -1131,14 +2233,20 @@ var Gt = new class extends bt {
|
|
|
1131
2233
|
return /^(((\d+\.?)+)|(localhost))(:\d+)?$/.test(e);
|
|
1132
2234
|
}
|
|
1133
2235
|
}();
|
|
1134
|
-
|
|
2236
|
+
//#endregion
|
|
2237
|
+
//#region ../../node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.js
|
|
2238
|
+
function ti() {
|
|
1135
2239
|
return typeof navigator == "object" && "userAgent" in navigator ? navigator.userAgent : typeof process == "object" && process.version !== void 0 ? `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})` : "<environment undetectable>";
|
|
1136
2240
|
}
|
|
1137
|
-
|
|
2241
|
+
//#endregion
|
|
2242
|
+
//#region ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/register.js
|
|
2243
|
+
function ni(e, t, n, r) {
|
|
1138
2244
|
if (typeof n != "function") throw Error("method for before hook must be a function");
|
|
1139
|
-
return r ||= {}, Array.isArray(t) ? t.reverse().reduce((t, n) =>
|
|
2245
|
+
return r ||= {}, Array.isArray(t) ? t.reverse().reduce((t, n) => ni.bind(null, e, n, t, r), n)() : Promise.resolve().then(() => e.registry[t] ? e.registry[t].reduce((e, t) => t.hook.bind(null, e, r), n)() : n(r));
|
|
1140
2246
|
}
|
|
1141
|
-
|
|
2247
|
+
//#endregion
|
|
2248
|
+
//#region ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/add.js
|
|
2249
|
+
function ri(e, t, n, r) {
|
|
1142
2250
|
let i = r;
|
|
1143
2251
|
e.registry[n] || (e.registry[n] = []), t === "before" && (r = (e, t) => Promise.resolve().then(i.bind(null, t)).then(e.bind(null, t))), t === "after" && (r = (e, t) => {
|
|
1144
2252
|
let n;
|
|
@@ -1148,14 +2256,18 @@ function Yt(e, t, n, r) {
|
|
|
1148
2256
|
orig: i
|
|
1149
2257
|
});
|
|
1150
2258
|
}
|
|
1151
|
-
|
|
2259
|
+
//#endregion
|
|
2260
|
+
//#region ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/remove.js
|
|
2261
|
+
function ii(e, t, n) {
|
|
1152
2262
|
if (!e.registry[t]) return;
|
|
1153
2263
|
let r = e.registry[t].map((e) => e.orig).indexOf(n);
|
|
1154
2264
|
r !== -1 && e.registry[t].splice(r, 1);
|
|
1155
2265
|
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
2266
|
+
//#endregion
|
|
2267
|
+
//#region ../../node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/index.js
|
|
2268
|
+
var ai = Function.bind, oi = ai.bind(ai);
|
|
2269
|
+
function si(e, t, n) {
|
|
2270
|
+
let r = oi(ii, null).apply(null, n ? [t, n] : [t]);
|
|
1159
2271
|
e.api = { remove: r }, e.remove = r, [
|
|
1160
2272
|
"before",
|
|
1161
2273
|
"error",
|
|
@@ -1167,50 +2279,50 @@ function $t(e, t, n) {
|
|
|
1167
2279
|
r,
|
|
1168
2280
|
n
|
|
1169
2281
|
] : [t, r];
|
|
1170
|
-
e[r] = e.api[r] =
|
|
2282
|
+
e[r] = e.api[r] = oi(ri, null).apply(null, i);
|
|
1171
2283
|
});
|
|
1172
2284
|
}
|
|
1173
|
-
function
|
|
1174
|
-
let e = Symbol("Singular"), t = { registry: {} }, n =
|
|
1175
|
-
return
|
|
2285
|
+
function ci() {
|
|
2286
|
+
let e = Symbol("Singular"), t = { registry: {} }, n = ni.bind(null, t, e);
|
|
2287
|
+
return si(n, t, e), n;
|
|
1176
2288
|
}
|
|
1177
|
-
function
|
|
1178
|
-
let e = { registry: {} }, t =
|
|
1179
|
-
return
|
|
2289
|
+
function li() {
|
|
2290
|
+
let e = { registry: {} }, t = ni.bind(null, e);
|
|
2291
|
+
return si(t, e), t;
|
|
1180
2292
|
}
|
|
1181
|
-
var
|
|
1182
|
-
Singular:
|
|
1183
|
-
Collection:
|
|
1184
|
-
},
|
|
2293
|
+
var ui = {
|
|
2294
|
+
Singular: ci,
|
|
2295
|
+
Collection: li
|
|
2296
|
+
}, di = `octokit-endpoint.js/0.0.0-development ${ti()}`, fi = {
|
|
1185
2297
|
method: "GET",
|
|
1186
2298
|
baseUrl: "https://api.github.com",
|
|
1187
2299
|
headers: {
|
|
1188
2300
|
accept: "application/vnd.github.v3+json",
|
|
1189
|
-
"user-agent":
|
|
2301
|
+
"user-agent": di
|
|
1190
2302
|
},
|
|
1191
2303
|
mediaType: { format: "" }
|
|
1192
2304
|
};
|
|
1193
|
-
function
|
|
2305
|
+
function pi(e) {
|
|
1194
2306
|
return e ? Object.keys(e).reduce((t, n) => (t[n.toLowerCase()] = e[n], t), {}) : {};
|
|
1195
2307
|
}
|
|
1196
|
-
function
|
|
2308
|
+
function mi(e) {
|
|
1197
2309
|
if (typeof e != "object" || !e || Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1198
2310
|
let t = Object.getPrototypeOf(e);
|
|
1199
2311
|
if (t === null) return !0;
|
|
1200
2312
|
let n = Object.prototype.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
1201
2313
|
return typeof n == "function" && n instanceof n && Function.prototype.call(n) === Function.prototype.call(e);
|
|
1202
2314
|
}
|
|
1203
|
-
function
|
|
2315
|
+
function hi(e, t) {
|
|
1204
2316
|
let n = Object.assign({}, e);
|
|
1205
2317
|
return Object.keys(t).forEach((r) => {
|
|
1206
|
-
|
|
2318
|
+
mi(t[r]) && r in e ? n[r] = hi(e[r], t[r]) : Object.assign(n, { [r]: t[r] });
|
|
1207
2319
|
}), n;
|
|
1208
2320
|
}
|
|
1209
|
-
function
|
|
2321
|
+
function gi(e) {
|
|
1210
2322
|
for (let t in e) e[t] === void 0 && delete e[t];
|
|
1211
2323
|
return e;
|
|
1212
2324
|
}
|
|
1213
|
-
function
|
|
2325
|
+
function _i(e, t, n) {
|
|
1214
2326
|
if (typeof t == "string") {
|
|
1215
2327
|
let [e, r] = t.split(" ");
|
|
1216
2328
|
n = Object.assign(r ? {
|
|
@@ -1218,69 +2330,69 @@ function un(e, t, n) {
|
|
|
1218
2330
|
url: r
|
|
1219
2331
|
} : { url: e }, n);
|
|
1220
2332
|
} else n = Object.assign({}, t);
|
|
1221
|
-
n.headers =
|
|
1222
|
-
let r =
|
|
2333
|
+
n.headers = pi(n.headers), gi(n), gi(n.headers);
|
|
2334
|
+
let r = hi(e || {}, n);
|
|
1223
2335
|
return n.url === "/graphql" && (e && e.mediaType.previews?.length && (r.mediaType.previews = e.mediaType.previews.filter((e) => !r.mediaType.previews.includes(e)).concat(r.mediaType.previews)), r.mediaType.previews = (r.mediaType.previews || []).map((e) => e.replace(/-preview/, ""))), r;
|
|
1224
2336
|
}
|
|
1225
|
-
function
|
|
2337
|
+
function vi(e, t) {
|
|
1226
2338
|
let n = /\?/.test(e) ? "&" : "?", r = Object.keys(t);
|
|
1227
2339
|
return r.length === 0 ? e : e + n + r.map((e) => e === "q" ? "q=" + t.q.split("+").map(encodeURIComponent).join("+") : `${e}=${encodeURIComponent(t[e])}`).join("&");
|
|
1228
2340
|
}
|
|
1229
|
-
var
|
|
1230
|
-
function
|
|
2341
|
+
var yi = /\{[^{}}]+\}/g;
|
|
2342
|
+
function bi(e) {
|
|
1231
2343
|
return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
|
|
1232
2344
|
}
|
|
1233
|
-
function
|
|
1234
|
-
let t = e.match(
|
|
1235
|
-
return t ? t.map(
|
|
2345
|
+
function xi(e) {
|
|
2346
|
+
let t = e.match(yi);
|
|
2347
|
+
return t ? t.map(bi).reduce((e, t) => e.concat(t), []) : [];
|
|
1236
2348
|
}
|
|
1237
|
-
function
|
|
2349
|
+
function Si(e, t) {
|
|
1238
2350
|
let n = { __proto__: null };
|
|
1239
2351
|
for (let r of Object.keys(e)) t.indexOf(r) === -1 && (n[r] = e[r]);
|
|
1240
2352
|
return n;
|
|
1241
2353
|
}
|
|
1242
|
-
function
|
|
2354
|
+
function Ci(e) {
|
|
1243
2355
|
return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e) {
|
|
1244
2356
|
return /%[0-9A-Fa-f]/.test(e) || (e = encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]")), e;
|
|
1245
2357
|
}).join("");
|
|
1246
2358
|
}
|
|
1247
|
-
function
|
|
2359
|
+
function wi(e) {
|
|
1248
2360
|
return encodeURIComponent(e).replace(/[!'()*]/g, function(e) {
|
|
1249
2361
|
return "%" + e.charCodeAt(0).toString(16).toUpperCase();
|
|
1250
2362
|
});
|
|
1251
2363
|
}
|
|
1252
|
-
function
|
|
1253
|
-
return t = e === "+" || e === "#" ?
|
|
2364
|
+
function Ti(e, t, n) {
|
|
2365
|
+
return t = e === "+" || e === "#" ? Ci(t) : wi(t), n ? wi(n) + "=" + t : t;
|
|
1254
2366
|
}
|
|
1255
|
-
function
|
|
2367
|
+
function Ei(e) {
|
|
1256
2368
|
return e != null;
|
|
1257
2369
|
}
|
|
1258
|
-
function
|
|
2370
|
+
function Di(e) {
|
|
1259
2371
|
return e === ";" || e === "&" || e === "?";
|
|
1260
2372
|
}
|
|
1261
|
-
function
|
|
2373
|
+
function Oi(e, t, n, r) {
|
|
1262
2374
|
var i = e[n], a = [];
|
|
1263
|
-
if (
|
|
1264
|
-
else if (r === "*") Array.isArray(i) ? i.filter(
|
|
1265
|
-
a.push(
|
|
2375
|
+
if (Ei(i) && i !== "") if (typeof i == "string" || typeof i == "number" || typeof i == "bigint" || typeof i == "boolean") i = i.toString(), r && r !== "*" && (i = i.substring(0, parseInt(r, 10))), a.push(Ti(t, i, Di(t) ? n : ""));
|
|
2376
|
+
else if (r === "*") Array.isArray(i) ? i.filter(Ei).forEach(function(e) {
|
|
2377
|
+
a.push(Ti(t, e, Di(t) ? n : ""));
|
|
1266
2378
|
}) : Object.keys(i).forEach(function(e) {
|
|
1267
|
-
|
|
2379
|
+
Ei(i[e]) && a.push(Ti(t, i[e], e));
|
|
1268
2380
|
});
|
|
1269
2381
|
else {
|
|
1270
2382
|
let e = [];
|
|
1271
|
-
Array.isArray(i) ? i.filter(
|
|
1272
|
-
e.push(
|
|
2383
|
+
Array.isArray(i) ? i.filter(Ei).forEach(function(n) {
|
|
2384
|
+
e.push(Ti(t, n));
|
|
1273
2385
|
}) : Object.keys(i).forEach(function(n) {
|
|
1274
|
-
|
|
1275
|
-
}),
|
|
2386
|
+
Ei(i[n]) && (e.push(wi(n)), e.push(Ti(t, i[n].toString())));
|
|
2387
|
+
}), Di(t) ? a.push(wi(n) + "=" + e.join(",")) : e.length !== 0 && a.push(e.join(","));
|
|
1276
2388
|
}
|
|
1277
|
-
else t === ";" ?
|
|
2389
|
+
else t === ";" ? Ei(i) && a.push(wi(n)) : i === "" && (t === "&" || t === "?") ? a.push(wi(n) + "=") : i === "" && a.push("");
|
|
1278
2390
|
return a;
|
|
1279
2391
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return { expand:
|
|
2392
|
+
function ki(e) {
|
|
2393
|
+
return { expand: Ai.bind(null, e) };
|
|
1282
2394
|
}
|
|
1283
|
-
function
|
|
2395
|
+
function Ai(e, t) {
|
|
1284
2396
|
var n = [
|
|
1285
2397
|
"+",
|
|
1286
2398
|
"#",
|
|
@@ -1295,44 +2407,44 @@ function Cn(e, t) {
|
|
|
1295
2407
|
let e = "", i = [];
|
|
1296
2408
|
if (n.indexOf(r.charAt(0)) !== -1 && (e = r.charAt(0), r = r.substr(1)), r.split(/,/g).forEach(function(n) {
|
|
1297
2409
|
var r = /([^:\*]*)(?::(\d+)|(\*))?/.exec(n);
|
|
1298
|
-
i.push(
|
|
2410
|
+
i.push(Oi(t, e, r[1], r[2] || r[3]));
|
|
1299
2411
|
}), e && e !== "+") {
|
|
1300
2412
|
var a = ",";
|
|
1301
2413
|
return e === "?" ? a = "&" : e !== "#" && (a = e), (i.length === 0 ? "" : e) + i.join(a);
|
|
1302
2414
|
} else return i.join(",");
|
|
1303
|
-
} else return
|
|
2415
|
+
} else return Ci(i);
|
|
1304
2416
|
}), e === "/" ? e : e.replace(/\/$/, "");
|
|
1305
2417
|
}
|
|
1306
|
-
function
|
|
1307
|
-
let t = e.method.toUpperCase(), n = (e.url || "/").replace(/:([a-z]\w+)/g, "{$1}"), r = Object.assign({}, e.headers), i, a =
|
|
2418
|
+
function ji(e) {
|
|
2419
|
+
let t = e.method.toUpperCase(), n = (e.url || "/").replace(/:([a-z]\w+)/g, "{$1}"), r = Object.assign({}, e.headers), i, a = Si(e, [
|
|
1308
2420
|
"method",
|
|
1309
2421
|
"baseUrl",
|
|
1310
2422
|
"url",
|
|
1311
2423
|
"headers",
|
|
1312
2424
|
"request",
|
|
1313
2425
|
"mediaType"
|
|
1314
|
-
]), o =
|
|
1315
|
-
n =
|
|
1316
|
-
let s =
|
|
1317
|
-
return /application\/octet-stream/i.test(r.accept) || (e.mediaType.format && (r.accept = r.accept.split(/,/).map((t) => t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${e.mediaType.format}`)).join(",")), n.endsWith("/graphql") && e.mediaType.previews?.length && (r.accept = (r.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || []).concat(e.mediaType.previews).map((t) => `application/vnd.github.${t}-preview${e.mediaType.format ? `.${e.mediaType.format}` : "+json"}`).join(","))), ["GET", "HEAD"].includes(t) ? n =
|
|
2426
|
+
]), o = xi(n);
|
|
2427
|
+
n = ki(n).expand(a), /^http/.test(n) || (n = e.baseUrl + n);
|
|
2428
|
+
let s = Si(a, Object.keys(e).filter((e) => o.includes(e)).concat("baseUrl"));
|
|
2429
|
+
return /application\/octet-stream/i.test(r.accept) || (e.mediaType.format && (r.accept = r.accept.split(/,/).map((t) => t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${e.mediaType.format}`)).join(",")), n.endsWith("/graphql") && e.mediaType.previews?.length && (r.accept = (r.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || []).concat(e.mediaType.previews).map((t) => `application/vnd.github.${t}-preview${e.mediaType.format ? `.${e.mediaType.format}` : "+json"}`).join(","))), ["GET", "HEAD"].includes(t) ? n = vi(n, s) : "data" in s ? i = s.data : Object.keys(s).length && (i = s), !r["content-type"] && i !== void 0 && (r["content-type"] = "application/json; charset=utf-8"), ["PATCH", "PUT"].includes(t) && i === void 0 && (i = ""), Object.assign({
|
|
1318
2430
|
method: t,
|
|
1319
2431
|
url: n,
|
|
1320
2432
|
headers: r
|
|
1321
2433
|
}, i === void 0 ? null : { body: i }, e.request ? { request: e.request } : null);
|
|
1322
2434
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return
|
|
2435
|
+
function Mi(e, t, n) {
|
|
2436
|
+
return ji(_i(e, t, n));
|
|
1325
2437
|
}
|
|
1326
|
-
function
|
|
1327
|
-
let n =
|
|
2438
|
+
function Ni(e, t) {
|
|
2439
|
+
let n = _i(e, t), r = Mi.bind(null, n);
|
|
1328
2440
|
return Object.assign(r, {
|
|
1329
2441
|
DEFAULTS: n,
|
|
1330
|
-
defaults:
|
|
1331
|
-
merge:
|
|
1332
|
-
parse:
|
|
2442
|
+
defaults: Ni.bind(null, n),
|
|
2443
|
+
merge: _i.bind(null, n),
|
|
2444
|
+
parse: ji
|
|
1333
2445
|
});
|
|
1334
2446
|
}
|
|
1335
|
-
var
|
|
2447
|
+
var Pi = Ni(null, fi), Fi = (/* @__PURE__ */ o(((e, t) => {
|
|
1336
2448
|
var n = function() {};
|
|
1337
2449
|
n.prototype = Object.create(null);
|
|
1338
2450
|
var r = /; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu, i = /\\([\v\u0020-\u00ff])/gu, a = /^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u, o = {
|
|
@@ -1377,37 +2489,47 @@ var Dn = En(null, an), On = G(((e, t) => {
|
|
|
1377
2489
|
parse: s,
|
|
1378
2490
|
safeParse: c
|
|
1379
2491
|
}, t.exports.parse = s, t.exports.safeParse = c, t.exports.defaultContentType = o;
|
|
1380
|
-
}))(),
|
|
1381
|
-
let
|
|
2492
|
+
})))(), Ii = /^-?\d+$/, Li = /^-?\d+n+$/, Ri = JSON.stringify, zi = JSON.parse, Bi = /^-?\d+n$/, Vi = /([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g, Hi = /([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g, Ui = (e, t, n) => "rawJSON" in JSON ? Ri(e, (e, n) => typeof n == "bigint" ? JSON.rawJSON(n.toString()) : typeof t == "function" ? t(e, n) : (Array.isArray(t) && t.includes(e), n), n) : e ? Ri(e, (e, n) => typeof n == "string" && Li.test(n) || typeof n == "bigint" ? n.toString() + "n" : typeof t == "function" ? t(e, n) : (Array.isArray(t) && t.includes(e), n), n).replace(Vi, "$1$2$3").replace(Hi, "$1$2$3") : Ri(e, t, n), Wi = /* @__PURE__ */ new Map(), Gi = () => {
|
|
2493
|
+
let e = JSON.parse.toString();
|
|
2494
|
+
if (Wi.has(e)) return Wi.get(e);
|
|
2495
|
+
try {
|
|
2496
|
+
let t = JSON.parse("1", (e, t, n) => !!n?.source && n.source === "1");
|
|
2497
|
+
return Wi.set(e, t), t;
|
|
2498
|
+
} catch {
|
|
2499
|
+
return Wi.set(e, !1), !1;
|
|
2500
|
+
}
|
|
2501
|
+
}, Ki = (e, t, n, r) => typeof t == "string" && Bi.test(t) ? BigInt(t.slice(0, -1)) : typeof t == "string" && Li.test(t) ? t.slice(0, -1) : typeof r == "function" ? r(e, t, n) : t, qi = (e, t) => JSON.parse(e, (e, n, r) => {
|
|
2502
|
+
let i = typeof n == "number" && (n > 2 ** 53 - 1 || n < -(2 ** 53 - 1)), a = r && Ii.test(r.source);
|
|
1382
2503
|
return i && a ? BigInt(r.source) : typeof t == "function" ? t(e, n, r) : n;
|
|
1383
|
-
}),
|
|
2504
|
+
}), Ji = (2 ** 53 - 1).toString(), Yi = Ji.length, Xi = /"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g, Zi = /^"-?\d+n+"$/, Qi = (e, t) => e ? Gi() ? qi(e, t) : zi(e.replace(Xi, (e, t, n, r) => {
|
|
1384
2505
|
let i = e[0] === "\"";
|
|
1385
|
-
if (i &&
|
|
1386
|
-
let a = n || r, o = t && (t.length <
|
|
2506
|
+
if (i && Zi.test(e)) return e.substring(0, e.length - 1) + "n\"";
|
|
2507
|
+
let a = n || r, o = t && (t.length < Yi || t.length === Yi && t <= Ji);
|
|
1387
2508
|
return i || a || o ? e : "\"" + e + "n\"";
|
|
1388
|
-
}), (e, n, r) =>
|
|
2509
|
+
}), (e, n, r) => Ki(e, n, r, t)) : zi(e, t), $i = class extends Error {
|
|
1389
2510
|
name;
|
|
1390
2511
|
status;
|
|
1391
2512
|
request;
|
|
1392
2513
|
response;
|
|
1393
2514
|
constructor(e, t, n) {
|
|
2515
|
+
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */
|
|
1394
2516
|
super(e, { cause: n.cause }), this.name = "HttpError", this.status = Number.parseInt(t), Number.isNaN(this.status) && (this.status = 0), "response" in n && (this.response = n.response);
|
|
1395
2517
|
let r = Object.assign({}, n.request);
|
|
1396
2518
|
n.request.headers.authorization && (r.headers = Object.assign({}, n.request.headers, { authorization: n.request.headers.authorization.replace(/(?<! ) .*$/, " [REDACTED]") })), r.url = r.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"), this.request = r;
|
|
1397
2519
|
}
|
|
1398
|
-
},
|
|
1399
|
-
function
|
|
2520
|
+
}, ea = "10.0.8", ta = { headers: { "user-agent": `octokit-request.js/${ea} ${ti()}` } };
|
|
2521
|
+
function na(e) {
|
|
1400
2522
|
if (typeof e != "object" || !e || Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1401
2523
|
let t = Object.getPrototypeOf(e);
|
|
1402
2524
|
if (t === null) return !0;
|
|
1403
2525
|
let n = Object.prototype.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
1404
2526
|
return typeof n == "function" && n instanceof n && Function.prototype.call(n) === Function.prototype.call(e);
|
|
1405
2527
|
}
|
|
1406
|
-
var
|
|
1407
|
-
async function
|
|
2528
|
+
var ra = () => "";
|
|
2529
|
+
async function ia(e) {
|
|
1408
2530
|
let t = e.request?.fetch || globalThis.fetch;
|
|
1409
2531
|
if (!t) throw Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");
|
|
1410
|
-
let n = e.request?.log || console, r = e.request?.parseSuccessResponseBody !== !1, i =
|
|
2532
|
+
let n = e.request?.log || console, r = e.request?.parseSuccessResponseBody !== !1, i = na(e.body) || Array.isArray(e.body) ? Ui(e.body) : e.body, a = Object.fromEntries(Object.entries(e.headers).map(([e, t]) => [e, String(t)])), o;
|
|
1411
2533
|
try {
|
|
1412
2534
|
o = await t(e.url, {
|
|
1413
2535
|
method: e.method,
|
|
@@ -1423,7 +2545,7 @@ async function Xn(e) {
|
|
|
1423
2545
|
if (t.name === "AbortError") throw t.status = 500, t;
|
|
1424
2546
|
n = t.message, t.name === "TypeError" && "cause" in t && (t.cause instanceof Error ? n = t.cause.message : typeof t.cause == "string" && (n = t.cause));
|
|
1425
2547
|
}
|
|
1426
|
-
let r = new
|
|
2548
|
+
let r = new $i(n, 500, { request: e });
|
|
1427
2549
|
throw r.cause = t, r;
|
|
1428
2550
|
}
|
|
1429
2551
|
let s = o.status, c = o.url, l = {};
|
|
@@ -1441,39 +2563,42 @@ async function Xn(e) {
|
|
|
1441
2563
|
if (s === 204 || s === 205) return u;
|
|
1442
2564
|
if (e.method === "HEAD") {
|
|
1443
2565
|
if (s < 400) return u;
|
|
1444
|
-
throw new
|
|
2566
|
+
throw new $i(o.statusText, s, {
|
|
1445
2567
|
response: u,
|
|
1446
2568
|
request: e
|
|
1447
2569
|
});
|
|
1448
2570
|
}
|
|
1449
|
-
if (s === 304) throw u.data = await
|
|
2571
|
+
if (s === 304) throw u.data = await aa(o), new $i("Not modified", s, {
|
|
1450
2572
|
response: u,
|
|
1451
2573
|
request: e
|
|
1452
2574
|
});
|
|
1453
|
-
if (s >= 400) throw u.data = await
|
|
2575
|
+
if (s >= 400) throw u.data = await aa(o), new $i(sa(u.data), s, {
|
|
1454
2576
|
response: u,
|
|
1455
2577
|
request: e
|
|
1456
2578
|
});
|
|
1457
|
-
return u.data = r ? await
|
|
2579
|
+
return u.data = r ? await aa(o) : o.body, u;
|
|
1458
2580
|
}
|
|
1459
|
-
async function
|
|
2581
|
+
async function aa(e) {
|
|
1460
2582
|
let t = e.headers.get("content-type");
|
|
1461
|
-
if (!t) return e.text().catch(
|
|
1462
|
-
let n = (0,
|
|
1463
|
-
if (
|
|
2583
|
+
if (!t) return e.text().catch(ra);
|
|
2584
|
+
let n = (0, Fi.safeParse)(t);
|
|
2585
|
+
if (oa(n)) {
|
|
1464
2586
|
let t = "";
|
|
1465
2587
|
try {
|
|
1466
|
-
return t = await e.text(),
|
|
2588
|
+
return t = await e.text(), Qi(t);
|
|
1467
2589
|
} catch {
|
|
1468
2590
|
return t;
|
|
1469
2591
|
}
|
|
1470
|
-
} else if (n.type.startsWith("text/") || n.parameters.charset?.toLowerCase() === "utf-8") return e.text().catch(
|
|
1471
|
-
else return e.arrayBuffer().catch(
|
|
2592
|
+
} else if (n.type.startsWith("text/") || n.parameters.charset?.toLowerCase() === "utf-8") return e.text().catch(ra);
|
|
2593
|
+
else return e.arrayBuffer().catch(
|
|
2594
|
+
/* v8 ignore next -- @preserve */
|
|
2595
|
+
() => /* @__PURE__ */ new ArrayBuffer(0)
|
|
2596
|
+
);
|
|
1472
2597
|
}
|
|
1473
|
-
function
|
|
2598
|
+
function oa(e) {
|
|
1474
2599
|
return e.type === "application/json" || e.type === "application/scim+json";
|
|
1475
2600
|
}
|
|
1476
|
-
function
|
|
2601
|
+
function sa(e) {
|
|
1477
2602
|
if (typeof e == "string") return e;
|
|
1478
2603
|
if (e instanceof ArrayBuffer) return "Unknown error";
|
|
1479
2604
|
if ("message" in e) {
|
|
@@ -1482,33 +2607,33 @@ function $n(e) {
|
|
|
1482
2607
|
}
|
|
1483
2608
|
return `Unknown error: ${JSON.stringify(e)}`;
|
|
1484
2609
|
}
|
|
1485
|
-
function
|
|
2610
|
+
function ca(e, t) {
|
|
1486
2611
|
let n = e.defaults(t);
|
|
1487
2612
|
return Object.assign(function(e, t) {
|
|
1488
2613
|
let r = n.merge(e, t);
|
|
1489
|
-
if (!r.request || !r.request.hook) return
|
|
1490
|
-
let i = (e, t) =>
|
|
2614
|
+
if (!r.request || !r.request.hook) return ia(n.parse(r));
|
|
2615
|
+
let i = (e, t) => ia(n.parse(n.merge(e, t)));
|
|
1491
2616
|
return Object.assign(i, {
|
|
1492
2617
|
endpoint: n,
|
|
1493
|
-
defaults:
|
|
2618
|
+
defaults: ca.bind(null, n)
|
|
1494
2619
|
}), r.request.hook(i, r);
|
|
1495
2620
|
}, {
|
|
1496
2621
|
endpoint: n,
|
|
1497
|
-
defaults:
|
|
2622
|
+
defaults: ca.bind(null, n)
|
|
1498
2623
|
});
|
|
1499
2624
|
}
|
|
1500
|
-
var
|
|
1501
|
-
function
|
|
2625
|
+
var la = ca(Pi, ta), ua = "0.0.0-development";
|
|
2626
|
+
function da(e) {
|
|
1502
2627
|
return "Request failed due to following response errors:\n" + e.errors.map((e) => ` - ${e.message}`).join("\n");
|
|
1503
2628
|
}
|
|
1504
|
-
var
|
|
2629
|
+
var fa = class extends Error {
|
|
1505
2630
|
constructor(e, t, n) {
|
|
1506
|
-
super(
|
|
2631
|
+
super(da(n)), this.request = e, this.headers = t, this.response = n, this.errors = n.errors, this.data = n.data, Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
|
|
1507
2632
|
}
|
|
1508
2633
|
name = "GraphqlResponseError";
|
|
1509
2634
|
errors;
|
|
1510
2635
|
data;
|
|
1511
|
-
},
|
|
2636
|
+
}, pa = [
|
|
1512
2637
|
"method",
|
|
1513
2638
|
"baseUrl",
|
|
1514
2639
|
"url",
|
|
@@ -1517,70 +2642,72 @@ var ir = class extends Error {
|
|
|
1517
2642
|
"query",
|
|
1518
2643
|
"mediaType",
|
|
1519
2644
|
"operationName"
|
|
1520
|
-
],
|
|
2645
|
+
], ma = [
|
|
1521
2646
|
"query",
|
|
1522
2647
|
"method",
|
|
1523
2648
|
"url"
|
|
1524
|
-
],
|
|
1525
|
-
function
|
|
2649
|
+
], ha = /\/api\/v3\/?$/;
|
|
2650
|
+
function ga(e, t, n) {
|
|
1526
2651
|
if (n) {
|
|
1527
|
-
if (typeof t == "string" && "query" in n) return Promise.reject(Error("[@octokit/graphql] \"query\" cannot be used as variable name"));
|
|
1528
|
-
for (let e in n) if (
|
|
2652
|
+
if (typeof t == "string" && "query" in n) return Promise.reject(/* @__PURE__ */ Error("[@octokit/graphql] \"query\" cannot be used as variable name"));
|
|
2653
|
+
for (let e in n) if (ma.includes(e)) return Promise.reject(/* @__PURE__ */ Error(`[@octokit/graphql] "${e}" cannot be used as variable name`));
|
|
1529
2654
|
}
|
|
1530
|
-
let r = typeof t == "string" ? Object.assign({ query: t }, n) : t, i = Object.keys(r).reduce((e, t) =>
|
|
1531
|
-
return
|
|
2655
|
+
let r = typeof t == "string" ? Object.assign({ query: t }, n) : t, i = Object.keys(r).reduce((e, t) => pa.includes(t) ? (e[t] = r[t], e) : (e.variables ||= {}, e.variables[t] = r[t], e), {}), a = r.baseUrl || e.endpoint.DEFAULTS.baseUrl;
|
|
2656
|
+
return ha.test(a) && (i.url = a.replace(ha, "/api/graphql")), e(i).then((e) => {
|
|
1532
2657
|
if (e.data.errors) {
|
|
1533
2658
|
let t = {};
|
|
1534
2659
|
for (let n of Object.keys(e.headers)) t[n] = e.headers[n];
|
|
1535
|
-
throw new
|
|
2660
|
+
throw new fa(i, t, e.data);
|
|
1536
2661
|
}
|
|
1537
2662
|
return e.data.data;
|
|
1538
2663
|
});
|
|
1539
2664
|
}
|
|
1540
|
-
function
|
|
2665
|
+
function _a(e, t) {
|
|
1541
2666
|
let n = e.defaults(t);
|
|
1542
|
-
return Object.assign((e, t) =>
|
|
1543
|
-
defaults:
|
|
2667
|
+
return Object.assign((e, t) => ga(n, e, t), {
|
|
2668
|
+
defaults: _a.bind(null, n),
|
|
1544
2669
|
endpoint: n.endpoint
|
|
1545
2670
|
});
|
|
1546
2671
|
}
|
|
1547
|
-
|
|
1548
|
-
headers: { "user-agent": `octokit-graphql.js/${
|
|
2672
|
+
_a(la, {
|
|
2673
|
+
headers: { "user-agent": `octokit-graphql.js/${ua} ${ti()}` },
|
|
1549
2674
|
method: "POST",
|
|
1550
2675
|
url: "/graphql"
|
|
1551
2676
|
});
|
|
1552
|
-
function
|
|
1553
|
-
return
|
|
2677
|
+
function va(e) {
|
|
2678
|
+
return _a(e, {
|
|
1554
2679
|
method: "POST",
|
|
1555
2680
|
url: "/graphql"
|
|
1556
2681
|
});
|
|
1557
2682
|
}
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
2683
|
+
//#endregion
|
|
2684
|
+
//#region ../../node_modules/.pnpm/@octokit+auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.js
|
|
2685
|
+
var ya = "(?:[a-zA-Z0-9_-]+)", ba = "\\.", xa = RegExp(`^${ya}${ba}${ya}${ba}${ya}$`), Sa = xa.test.bind(xa);
|
|
2686
|
+
async function Ca(e) {
|
|
2687
|
+
let t = Sa(e), n = e.startsWith("v1.") || e.startsWith("ghs_"), r = e.startsWith("ghu_");
|
|
1561
2688
|
return {
|
|
1562
2689
|
type: "token",
|
|
1563
2690
|
token: e,
|
|
1564
2691
|
tokenType: t ? "app" : n ? "installation" : r ? "user-to-server" : "oauth"
|
|
1565
2692
|
};
|
|
1566
2693
|
}
|
|
1567
|
-
function
|
|
2694
|
+
function wa(e) {
|
|
1568
2695
|
return e.split(/\./).length === 3 ? `bearer ${e}` : `token ${e}`;
|
|
1569
2696
|
}
|
|
1570
|
-
async function
|
|
2697
|
+
async function Ta(e, t, n, r) {
|
|
1571
2698
|
let i = t.endpoint.merge(n, r);
|
|
1572
|
-
return i.headers.authorization =
|
|
2699
|
+
return i.headers.authorization = wa(e), t(i);
|
|
1573
2700
|
}
|
|
1574
|
-
var
|
|
2701
|
+
var Ea = function(e) {
|
|
1575
2702
|
if (!e) throw Error("[@octokit/auth-token] No token passed to createTokenAuth");
|
|
1576
2703
|
if (typeof e != "string") throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
|
|
1577
|
-
return e = e.replace(/^(token|bearer) +/i, ""), Object.assign(
|
|
1578
|
-
},
|
|
1579
|
-
function
|
|
1580
|
-
return typeof e.debug != "function" && (e.debug =
|
|
2704
|
+
return e = e.replace(/^(token|bearer) +/i, ""), Object.assign(Ca.bind(null, e), { hook: Ta.bind(null, e) });
|
|
2705
|
+
}, Da = "7.0.6", Oa = () => {}, ka = console.warn.bind(console), Aa = console.error.bind(console);
|
|
2706
|
+
function ja(e = {}) {
|
|
2707
|
+
return typeof e.debug != "function" && (e.debug = Oa), typeof e.info != "function" && (e.info = Oa), typeof e.warn != "function" && (e.warn = ka), typeof e.error != "function" && (e.error = Aa), e;
|
|
1581
2708
|
}
|
|
1582
|
-
var
|
|
1583
|
-
static VERSION =
|
|
2709
|
+
var Ma = `octokit-core.js/${Da} ${ti()}`, Na = class {
|
|
2710
|
+
static VERSION = Da;
|
|
1584
2711
|
static defaults(e) {
|
|
1585
2712
|
return class extends this {
|
|
1586
2713
|
constructor(...t) {
|
|
@@ -1601,8 +2728,8 @@ var wr = `octokit-core.js/${yr} ${qt()}`, Tr = class {
|
|
|
1601
2728
|
};
|
|
1602
2729
|
}
|
|
1603
2730
|
constructor(e = {}) {
|
|
1604
|
-
let t = new
|
|
1605
|
-
baseUrl:
|
|
2731
|
+
let t = new ui.Collection(), n = {
|
|
2732
|
+
baseUrl: la.endpoint.DEFAULTS.baseUrl,
|
|
1606
2733
|
headers: {},
|
|
1607
2734
|
request: Object.assign({}, e.request, { hook: t.bind(null, "request") }),
|
|
1608
2735
|
mediaType: {
|
|
@@ -1610,7 +2737,7 @@ var wr = `octokit-core.js/${yr} ${qt()}`, Tr = class {
|
|
|
1610
2737
|
format: ""
|
|
1611
2738
|
}
|
|
1612
2739
|
};
|
|
1613
|
-
if (n.headers["user-agent"] = e.userAgent ? `${e.userAgent} ${
|
|
2740
|
+
if (n.headers["user-agent"] = e.userAgent ? `${e.userAgent} ${Ma}` : Ma, e.baseUrl && (n.baseUrl = e.baseUrl), e.previews && (n.mediaType.previews = e.previews), e.timeZone && (n.headers["time-zone"] = e.timeZone), this.request = la.defaults(n), this.graphql = va(this.request).defaults(n), this.log = ja(e.log), this.hook = t, e.authStrategy) {
|
|
1614
2741
|
let { authStrategy: n, ...r } = e, i = n(Object.assign({
|
|
1615
2742
|
request: this.request,
|
|
1616
2743
|
log: this.log,
|
|
@@ -1620,7 +2747,7 @@ var wr = `octokit-core.js/${yr} ${qt()}`, Tr = class {
|
|
|
1620
2747
|
t.wrap("request", i.hook), this.auth = i;
|
|
1621
2748
|
} else if (!e.auth) this.auth = async () => ({ type: "unauthenticated" });
|
|
1622
2749
|
else {
|
|
1623
|
-
let n =
|
|
2750
|
+
let n = Ea(e.auth);
|
|
1624
2751
|
t.wrap("request", n.hook), this.auth = n;
|
|
1625
2752
|
}
|
|
1626
2753
|
let r = this.constructor;
|
|
@@ -1631,8 +2758,10 @@ var wr = `octokit-core.js/${yr} ${qt()}`, Tr = class {
|
|
|
1631
2758
|
log;
|
|
1632
2759
|
hook;
|
|
1633
2760
|
auth;
|
|
1634
|
-
},
|
|
1635
|
-
|
|
2761
|
+
}, Pa = "6.0.0";
|
|
2762
|
+
//#endregion
|
|
2763
|
+
//#region ../../node_modules/.pnpm/@octokit+plugin-request-log@6.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-request-log/dist-src/index.js
|
|
2764
|
+
function Fa(e) {
|
|
1636
2765
|
e.hook.wrap("request", (t, n) => {
|
|
1637
2766
|
e.log.debug("request", n);
|
|
1638
2767
|
let r = Date.now(), i = e.request.endpoint.parse(n), a = i.url.replace(n.baseUrl, "");
|
|
@@ -1645,9 +2774,11 @@ function Dr(e) {
|
|
|
1645
2774
|
});
|
|
1646
2775
|
});
|
|
1647
2776
|
}
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
2777
|
+
Fa.VERSION = Pa;
|
|
2778
|
+
//#endregion
|
|
2779
|
+
//#region ../../node_modules/.pnpm/@octokit+plugin-paginate-rest@14.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.js
|
|
2780
|
+
var Ia = "0.0.0-development";
|
|
2781
|
+
function La(e) {
|
|
1651
2782
|
if (!e.data) return {
|
|
1652
2783
|
...e,
|
|
1653
2784
|
data: []
|
|
@@ -1658,12 +2789,12 @@ function kr(e) {
|
|
|
1658
2789
|
let a = Object.keys(e.data)[0];
|
|
1659
2790
|
return e.data = e.data[a], t !== void 0 && (e.data.incomplete_results = t), n !== void 0 && (e.data.repository_selection = n), e.data.total_count = r, e.data.total_commits = i, e;
|
|
1660
2791
|
}
|
|
1661
|
-
function
|
|
2792
|
+
function Ra(e, t, n) {
|
|
1662
2793
|
let r = typeof t == "function" ? t.endpoint(n) : e.request.endpoint(t, n), i = typeof t == "function" ? t : e.request, a = r.method, o = r.headers, s = r.url;
|
|
1663
2794
|
return { [Symbol.asyncIterator]: () => ({ async next() {
|
|
1664
2795
|
if (!s) return { done: !0 };
|
|
1665
2796
|
try {
|
|
1666
|
-
let e =
|
|
2797
|
+
let e = La(await i({
|
|
1667
2798
|
method: a,
|
|
1668
2799
|
url: s,
|
|
1669
2800
|
headers: o
|
|
@@ -1683,25 +2814,27 @@ function Ar(e, t, n) {
|
|
|
1683
2814
|
}
|
|
1684
2815
|
} }) };
|
|
1685
2816
|
}
|
|
1686
|
-
function
|
|
1687
|
-
return typeof n == "function" && (r = n, n = void 0),
|
|
2817
|
+
function za(e, t, n, r) {
|
|
2818
|
+
return typeof n == "function" && (r = n, n = void 0), Ba(e, [], Ra(e, t, n)[Symbol.asyncIterator](), r);
|
|
1688
2819
|
}
|
|
1689
|
-
function
|
|
2820
|
+
function Ba(e, t, n, r) {
|
|
1690
2821
|
return n.next().then((i) => {
|
|
1691
2822
|
if (i.done) return t;
|
|
1692
2823
|
let a = !1;
|
|
1693
2824
|
function o() {
|
|
1694
2825
|
a = !0;
|
|
1695
2826
|
}
|
|
1696
|
-
return t = t.concat(r ? r(i.value, o) : i.value.data), a ? t :
|
|
2827
|
+
return t = t.concat(r ? r(i.value, o) : i.value.data), a ? t : Ba(e, t, n, r);
|
|
1697
2828
|
});
|
|
1698
2829
|
}
|
|
1699
|
-
Object.assign(
|
|
1700
|
-
function
|
|
1701
|
-
return { paginate: Object.assign(
|
|
2830
|
+
Object.assign(za, { iterator: Ra });
|
|
2831
|
+
function Va(e) {
|
|
2832
|
+
return { paginate: Object.assign(za.bind(null, e), { iterator: Ra.bind(null, e) }) };
|
|
1702
2833
|
}
|
|
1703
|
-
|
|
1704
|
-
|
|
2834
|
+
Va.VERSION = Ia;
|
|
2835
|
+
//#endregion
|
|
2836
|
+
//#region ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
|
2837
|
+
var Ha = "17.0.0", Ua = {
|
|
1705
2838
|
actions: {
|
|
1706
2839
|
addCustomLabelsToSelfHostedRunnerForOrg: ["POST /orgs/{org}/actions/runners/{runner_id}/labels"],
|
|
1707
2840
|
addCustomLabelsToSelfHostedRunnerForRepo: ["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
|
|
@@ -2992,22 +4125,22 @@ var Pr = "17.0.0", Fr = {
|
|
|
2992
4125
|
unfollow: ["DELETE /user/following/{username}"],
|
|
2993
4126
|
updateAuthenticated: ["PATCH /user"]
|
|
2994
4127
|
}
|
|
2995
|
-
},
|
|
2996
|
-
for (let [e, t] of Object.entries(
|
|
4128
|
+
}, Wa = /* @__PURE__ */ new Map();
|
|
4129
|
+
for (let [e, t] of Object.entries(Ua)) for (let [n, r] of Object.entries(t)) {
|
|
2997
4130
|
let [t, i, a] = r, [o, s] = t.split(/ /), c = Object.assign({
|
|
2998
4131
|
method: o,
|
|
2999
4132
|
url: s
|
|
3000
4133
|
}, i);
|
|
3001
|
-
|
|
4134
|
+
Wa.has(e) || Wa.set(e, /* @__PURE__ */ new Map()), Wa.get(e).set(n, {
|
|
3002
4135
|
scope: e,
|
|
3003
4136
|
methodName: n,
|
|
3004
4137
|
endpointDefaults: c,
|
|
3005
4138
|
decorations: a
|
|
3006
4139
|
});
|
|
3007
4140
|
}
|
|
3008
|
-
var
|
|
4141
|
+
var Ga = {
|
|
3009
4142
|
has({ scope: e }, t) {
|
|
3010
|
-
return
|
|
4143
|
+
return Wa.get(e).has(t);
|
|
3011
4144
|
},
|
|
3012
4145
|
getOwnPropertyDescriptor(e, t) {
|
|
3013
4146
|
return {
|
|
@@ -3024,29 +4157,29 @@ var Ir = {
|
|
|
3024
4157
|
return delete e.cache[t], !0;
|
|
3025
4158
|
},
|
|
3026
4159
|
ownKeys({ scope: e }) {
|
|
3027
|
-
return [
|
|
4160
|
+
return [...Wa.get(e).keys()];
|
|
3028
4161
|
},
|
|
3029
4162
|
set(e, t, n) {
|
|
3030
4163
|
return e.cache[t] = n;
|
|
3031
4164
|
},
|
|
3032
4165
|
get({ octokit: e, scope: t, cache: n }, r) {
|
|
3033
4166
|
if (n[r]) return n[r];
|
|
3034
|
-
let i =
|
|
4167
|
+
let i = Wa.get(t).get(r);
|
|
3035
4168
|
if (!i) return;
|
|
3036
4169
|
let { endpointDefaults: a, decorations: o } = i;
|
|
3037
|
-
return o ? n[r] =
|
|
4170
|
+
return o ? n[r] = qa(e, t, r, a, o) : n[r] = e.request.defaults(a), n[r];
|
|
3038
4171
|
}
|
|
3039
4172
|
};
|
|
3040
|
-
function
|
|
4173
|
+
function Ka(e) {
|
|
3041
4174
|
let t = {};
|
|
3042
|
-
for (let n of
|
|
4175
|
+
for (let n of Wa.keys()) t[n] = new Proxy({
|
|
3043
4176
|
octokit: e,
|
|
3044
4177
|
scope: n,
|
|
3045
4178
|
cache: {}
|
|
3046
|
-
},
|
|
4179
|
+
}, Ga);
|
|
3047
4180
|
return t;
|
|
3048
4181
|
}
|
|
3049
|
-
function
|
|
4182
|
+
function qa(e, t, n, r, i) {
|
|
3050
4183
|
let a = e.request.defaults(r);
|
|
3051
4184
|
function o(...r) {
|
|
3052
4185
|
let o = a.endpoint.merge(...r);
|
|
@@ -3067,19 +4200,23 @@ function Rr(e, t, n, r, i) {
|
|
|
3067
4200
|
}
|
|
3068
4201
|
return Object.assign(o, a);
|
|
3069
4202
|
}
|
|
3070
|
-
|
|
3071
|
-
|
|
4203
|
+
//#endregion
|
|
4204
|
+
//#region ../../node_modules/.pnpm/@octokit+plugin-rest-endpoint-methods@17.0.0_@octokit+core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
|
|
4205
|
+
function Ja(e) {
|
|
4206
|
+
return { rest: Ka(e) };
|
|
3072
4207
|
}
|
|
3073
|
-
|
|
3074
|
-
function
|
|
3075
|
-
let t =
|
|
4208
|
+
Ja.VERSION = Ha;
|
|
4209
|
+
function Ya(e) {
|
|
4210
|
+
let t = Ka(e);
|
|
3076
4211
|
return {
|
|
3077
4212
|
...t,
|
|
3078
4213
|
rest: t
|
|
3079
4214
|
};
|
|
3080
4215
|
}
|
|
3081
|
-
|
|
3082
|
-
|
|
4216
|
+
Ya.VERSION = Ha;
|
|
4217
|
+
//#endregion
|
|
4218
|
+
//#region ../../node_modules/.pnpm/@octokit+rest@22.0.1/node_modules/@octokit/rest/dist-src/index.js
|
|
4219
|
+
var Xa = Na.plugin(Fa, Ya, Va).defaults({ userAgent: "octokit-rest.js/22.0.1" }), Za = new class extends Fe {
|
|
3083
4220
|
description = {
|
|
3084
4221
|
title: "通过Github安装插件",
|
|
3085
4222
|
description: "输入形如: \"gh:owner/repo\"的内容"
|
|
@@ -3087,23 +4224,24 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
3087
4224
|
name = "github";
|
|
3088
4225
|
async installer(e) {
|
|
3089
4226
|
try {
|
|
3090
|
-
var t =
|
|
4227
|
+
var t = c().$load(n).value.githubToken;
|
|
3091
4228
|
} catch (e) {
|
|
3092
4229
|
console.error("fail to get github token", e);
|
|
3093
4230
|
var t = "";
|
|
3094
4231
|
}
|
|
3095
|
-
let
|
|
3096
|
-
owner:
|
|
3097
|
-
repo:
|
|
3098
|
-
}),
|
|
3099
|
-
if (!
|
|
3100
|
-
let { data:
|
|
3101
|
-
url:
|
|
3102
|
-
responseType: "blob"
|
|
4232
|
+
let r = new Xa({ auth: we(t) ? void 0 : t }), [i, a] = e.replace(/^gh:/, "").split("/"), { data: o } = await r.rest.repos.getLatestRelease({
|
|
4233
|
+
owner: i,
|
|
4234
|
+
repo: a
|
|
4235
|
+
}), s = o.assets[0];
|
|
4236
|
+
if (!s) throw Error("未找到资源");
|
|
4237
|
+
let { data: l } = await $.request({
|
|
4238
|
+
url: s.browser_download_url,
|
|
4239
|
+
responseType: "blob",
|
|
4240
|
+
timeout: 1e3 * 60 * 5
|
|
3103
4241
|
});
|
|
3104
|
-
return new File([
|
|
4242
|
+
return new File([l], s.name);
|
|
3105
4243
|
}
|
|
3106
|
-
async
|
|
4244
|
+
async download(e) {
|
|
3107
4245
|
return await this.installer(e);
|
|
3108
4246
|
}
|
|
3109
4247
|
async update(e) {
|
|
@@ -3112,17 +4250,17 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
3112
4250
|
isMatched(e) {
|
|
3113
4251
|
return e.startsWith("gh:") && e.split("/").length === 2;
|
|
3114
4252
|
}
|
|
3115
|
-
}(),
|
|
4253
|
+
}(), Qa = "https://raw.githubusercontent.com/delta-comic/awesome-plugins/refs/heads/main/pages", $a = new class extends Fe {
|
|
3116
4254
|
description = {
|
|
3117
4255
|
title: "快速安装插件",
|
|
3118
4256
|
description: "输入形如: \"ap:jmcomic\"的内容"
|
|
3119
4257
|
};
|
|
3120
4258
|
name = "awesome";
|
|
3121
4259
|
async installer(e) {
|
|
3122
|
-
let t = e.replace(/^ap:/, ""), { data: n } = await
|
|
4260
|
+
let t = e.replace(/^ap:/, ""), { data: n } = await $.get(`${Qa}/${t}.json`, { responseType: "json" });
|
|
3123
4261
|
return n.download;
|
|
3124
4262
|
}
|
|
3125
|
-
async
|
|
4263
|
+
async download(e) {
|
|
3126
4264
|
return await this.installer(e);
|
|
3127
4265
|
}
|
|
3128
4266
|
async update(e) {
|
|
@@ -3131,7 +4269,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
3131
4269
|
isMatched(e) {
|
|
3132
4270
|
return /^ap:[A-Za-z0-9\-\_]+$/.test(e);
|
|
3133
4271
|
}
|
|
3134
|
-
}(),
|
|
4272
|
+
}(), eo = (/* @__PURE__ */ o(((e) => {
|
|
3135
4273
|
function t(e) {
|
|
3136
4274
|
return e === void 0;
|
|
3137
4275
|
}
|
|
@@ -3145,47 +4283,50 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
3145
4283
|
}, {});
|
|
3146
4284
|
}
|
|
3147
4285
|
e.parse = n;
|
|
3148
|
-
}))(),
|
|
4286
|
+
})))(), to = new class extends Ie {
|
|
3149
4287
|
name = "userscript";
|
|
3150
|
-
async
|
|
3151
|
-
let t = await e.text(), n =
|
|
3152
|
-
return await
|
|
4288
|
+
async install(e) {
|
|
4289
|
+
let t = await e.text(), n = h((0, eo.parse)(t)), r = await Pe(n.name.id);
|
|
4290
|
+
return await Kr(r, { recursive: !0 }), await Qr(await Me(r, "us.js"), t, { create: !0 }), n;
|
|
3153
4291
|
}
|
|
3154
4292
|
canInstall(e) {
|
|
3155
4293
|
return e.name.endsWith(".js");
|
|
3156
4294
|
}
|
|
3157
4295
|
async load(e) {
|
|
3158
|
-
let t = await
|
|
4296
|
+
let t = await Yr(await Me(await Pe(e.pluginName), "us.js")), n = t.lastIndexOf(";") + 1, r = new Blob([t.slice(0, n)], { type: "text/javascript" }), i = URL.createObjectURL(r), a = document.createElement("script");
|
|
3159
4297
|
a.addEventListener("load", () => {
|
|
3160
4298
|
URL.revokeObjectURL(i);
|
|
3161
4299
|
}), a.addEventListener("error", (e) => {
|
|
3162
4300
|
throw URL.revokeObjectURL(i), e;
|
|
3163
4301
|
}), a.async = !0, a.src = i, document.body.appendChild(a);
|
|
3164
4302
|
}
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
4303
|
+
async decodeMeta(e) {
|
|
4304
|
+
return h((0, eo.parse)(await e.text()));
|
|
4305
|
+
}
|
|
4306
|
+
}(), no = (/* @__PURE__ */ o(((t, n) => {
|
|
4307
|
+
(function(e) {
|
|
4308
|
+
typeof t == "object" && n !== void 0 ? n.exports = e() : typeof define == "function" && define.amd ? define([], e) : (typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : this).JSZip = e();
|
|
3168
4309
|
})(function() {
|
|
3169
|
-
return function
|
|
3170
|
-
function
|
|
3171
|
-
if (!
|
|
3172
|
-
if (!
|
|
3173
|
-
var
|
|
3174
|
-
if (!
|
|
3175
|
-
if (
|
|
3176
|
-
var
|
|
3177
|
-
throw
|
|
4310
|
+
return function t(n, r, i) {
|
|
4311
|
+
function a(s, c) {
|
|
4312
|
+
if (!r[s]) {
|
|
4313
|
+
if (!n[s]) {
|
|
4314
|
+
var l = typeof e == "function" && e;
|
|
4315
|
+
if (!c && l) return l(s, !0);
|
|
4316
|
+
if (o) return o(s, !0);
|
|
4317
|
+
var u = /* @__PURE__ */ Error("Cannot find module '" + s + "'");
|
|
4318
|
+
throw u.code = "MODULE_NOT_FOUND", u;
|
|
3178
4319
|
}
|
|
3179
|
-
var
|
|
3180
|
-
|
|
3181
|
-
var
|
|
3182
|
-
return
|
|
3183
|
-
},
|
|
4320
|
+
var d = r[s] = { exports: {} };
|
|
4321
|
+
n[s][0].call(d.exports, function(e) {
|
|
4322
|
+
var t = n[s][1][e];
|
|
4323
|
+
return a(t || e);
|
|
4324
|
+
}, d, d.exports, t, n, r, i);
|
|
3184
4325
|
}
|
|
3185
|
-
return
|
|
4326
|
+
return r[s].exports;
|
|
3186
4327
|
}
|
|
3187
|
-
for (var
|
|
3188
|
-
return
|
|
4328
|
+
for (var o = typeof e == "function" && e, s = 0; s < i.length; s++) a(i[s]);
|
|
4329
|
+
return a;
|
|
3189
4330
|
}({
|
|
3190
4331
|
1: [function(e, t, n) {
|
|
3191
4332
|
var r = e("./utils"), i = e("./support"), a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
@@ -3474,7 +4615,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
3474
4615
|
r.on("error", function(e) {
|
|
3475
4616
|
n(e);
|
|
3476
4617
|
}).on("end", function() {
|
|
3477
|
-
r.streamInfo.crc32 === e.decompressed.crc32 ? t() : n(Error("Corrupted zip : CRC32 mismatch"));
|
|
4618
|
+
r.streamInfo.crc32 === e.decompressed.crc32 ? t() : n(/* @__PURE__ */ Error("Corrupted zip : CRC32 mismatch"));
|
|
3478
4619
|
}).resume();
|
|
3479
4620
|
});
|
|
3480
4621
|
}
|
|
@@ -3486,7 +4627,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
3486
4627
|
optimizedBinaryString: !1,
|
|
3487
4628
|
createFolders: !1,
|
|
3488
4629
|
decodeFileName: a.utf8decode
|
|
3489
|
-
}), c.isNode && c.isStream(e) ? i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")) : r.prepareContent("the loaded zip file", e, !0, t.optimizedBinaryString, t.base64).then(function(e) {
|
|
4630
|
+
}), c.isNode && c.isStream(e) ? i.Promise.reject(/* @__PURE__ */ Error("JSZip can't accept a stream when loading a zip file.")) : r.prepareContent("the loaded zip file", e, !0, t.optimizedBinaryString, t.base64).then(function(e) {
|
|
3490
4631
|
var n = new o(t);
|
|
3491
4632
|
return n.load(e), n;
|
|
3492
4633
|
}).then(function(e) {
|
|
@@ -3588,7 +4729,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
3588
4729
|
15: [function(e, t, n) {
|
|
3589
4730
|
function r(e, t, n) {
|
|
3590
4731
|
var r, i = a.getTypeOf(t), s = a.extend(n || {}, c);
|
|
3591
|
-
s.date = s.date || new Date(), s.compression !== null && (s.compression = s.compression.toUpperCase()), typeof s.unixPermissions == "string" && (s.unixPermissions = parseInt(s.unixPermissions, 8)), s.unixPermissions && 16384 & s.unixPermissions && (s.dir = !0), s.dosPermissions && 16 & s.dosPermissions && (s.dir = !0), s.dir && (e = h(e)), s.createFolders && (r = m(e)) && g.call(this, r, !0);
|
|
4732
|
+
s.date = s.date || /* @__PURE__ */ new Date(), s.compression !== null && (s.compression = s.compression.toUpperCase()), typeof s.unixPermissions == "string" && (s.unixPermissions = parseInt(s.unixPermissions, 8)), s.unixPermissions && 16384 & s.unixPermissions && (s.dir = !0), s.dosPermissions && 16 & s.dosPermissions && (s.dir = !0), s.dir && (e = h(e)), s.createFolders && (r = m(e)) && g.call(this, r, !0);
|
|
3592
4733
|
var d = i === "string" && !1 === s.binary && !1 === s.base64;
|
|
3593
4734
|
n && n.binary !== void 0 || (s.binary = !d), (t instanceof l && t.uncompressedSize === 0 || s.dir || !t || t.length === 0) && (s.base64 = !1, s.binary = !0, t = "", s.compression = "STORE", i = "string");
|
|
3594
4735
|
var _ = null;
|
|
@@ -4074,7 +5215,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
4074
5215
|
30: [function(e, t, n) {
|
|
4075
5216
|
if (n.base64 = !0, n.array = !0, n.string = !0, n.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", n.nodebuffer = typeof Buffer < "u", n.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") n.blob = !1;
|
|
4076
5217
|
else {
|
|
4077
|
-
var r = new ArrayBuffer(0);
|
|
5218
|
+
var r = /* @__PURE__ */ new ArrayBuffer(0);
|
|
4078
5219
|
try {
|
|
4079
5220
|
n.blob = new Blob([r], { type: "application/zip" }).size === 0;
|
|
4080
5221
|
} catch {
|
|
@@ -4324,7 +5465,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
4324
5465
|
var u = n.getTypeOf(t);
|
|
4325
5466
|
return u ? (u === "arraybuffer" ? t = n.transformTo("uint8array", t) : u === "string" && (l ? t = i.decode(t) : a && !0 !== s && (t = function(e) {
|
|
4326
5467
|
return c(e, r.uint8array ? new Uint8Array(e.length) : Array(e.length));
|
|
4327
|
-
}(t))), t) : o.Promise.reject(Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
5468
|
+
}(t))), t) : o.Promise.reject(/* @__PURE__ */ Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
4328
5469
|
});
|
|
4329
5470
|
};
|
|
4330
5471
|
}, {
|
|
@@ -4380,7 +5521,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
4380
5521
|
},
|
|
4381
5522
|
readEndOfCentral: function() {
|
|
4382
5523
|
var e = this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);
|
|
4383
|
-
if (e < 0) throw this.isSignature(0, a.LOCAL_FILE_HEADER) ? Error("Corrupted zip: can't find end of central directory") : Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
|
|
5524
|
+
if (e < 0) throw this.isSignature(0, a.LOCAL_FILE_HEADER) ? /* @__PURE__ */ Error("Corrupted zip: can't find end of central directory") : /* @__PURE__ */ Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
|
|
4384
5525
|
this.reader.setIndex(e);
|
|
4385
5526
|
var t = e;
|
|
4386
5527
|
if (this.checkSignature(a.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) {
|
|
@@ -4609,7 +5750,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
4609
5750
|
} catch (t) {
|
|
4610
5751
|
return a.reject(e, t);
|
|
4611
5752
|
}
|
|
4612
|
-
r === e ? a.reject(e, TypeError("Cannot resolve promise with itself")) : a.resolve(e, r);
|
|
5753
|
+
r === e ? a.reject(e, /* @__PURE__ */ TypeError("Cannot resolve promise with itself")) : a.resolve(e, r);
|
|
4613
5754
|
});
|
|
4614
5755
|
}
|
|
4615
5756
|
function f(e) {
|
|
@@ -4687,7 +5828,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
4687
5828
|
return a.reject(t, e);
|
|
4688
5829
|
}, l.all = function(e) {
|
|
4689
5830
|
var t = this;
|
|
4690
|
-
if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(TypeError("must be an array"));
|
|
5831
|
+
if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(/* @__PURE__ */ TypeError("must be an array"));
|
|
4691
5832
|
var n = e.length, r = !1;
|
|
4692
5833
|
if (!n) return this.resolve([]);
|
|
4693
5834
|
for (var o = Array(n), s = 0, c = -1, l = new this(i); ++c < n;) u(e[c], c);
|
|
@@ -4701,7 +5842,7 @@ var Vr = Tr.plugin(Dr, Br, Nr).defaults({ userAgent: "octokit-rest.js/22.0.1" })
|
|
|
4701
5842
|
}
|
|
4702
5843
|
}, l.race = function(e) {
|
|
4703
5844
|
var t = this;
|
|
4704
|
-
if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(TypeError("must be an array"));
|
|
5845
|
+
if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(/* @__PURE__ */ TypeError("must be an array"));
|
|
4705
5846
|
var n = e.length, r = !1;
|
|
4706
5847
|
if (!n) return this.resolve([]);
|
|
4707
5848
|
for (var o = -1, s = new this(i); ++o < n;) c = e[o], t.resolve(c).then(function(e) {
|
|
@@ -5041,26 +6182,26 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
|
|
|
5041
6182
|
function U(e, t, n, r, i) {
|
|
5042
6183
|
this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
|
|
5043
6184
|
}
|
|
5044
|
-
function
|
|
6185
|
+
function ee() {
|
|
5045
6186
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = g, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new i.Buf16(2 * x), this.dyn_dtree = new i.Buf16(2 * (2 * y + 1)), this.bl_tree = new i.Buf16(2 * (2 * b + 1)), P(this.dyn_ltree), P(this.dyn_dtree), P(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new i.Buf16(S + 1), this.heap = new i.Buf16(2 * v + 1), P(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new i.Buf16(2 * v + 1), P(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
5046
6187
|
}
|
|
5047
|
-
function
|
|
6188
|
+
function te(e) {
|
|
5048
6189
|
var t;
|
|
5049
6190
|
return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = h, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? E : D, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = l, a._tr_init(t), d) : M(e, f);
|
|
5050
6191
|
}
|
|
5051
|
-
function
|
|
5052
|
-
var t =
|
|
6192
|
+
function ne(e) {
|
|
6193
|
+
var t = te(e);
|
|
5053
6194
|
return t === d && function(e) {
|
|
5054
6195
|
e.window_size = 2 * e.w_size, P(e.head), e.max_lazy_match = r[e.level].max_lazy, e.good_match = r[e.level].good_length, e.nice_match = r[e.level].nice_length, e.max_chain_length = r[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = C - 1, e.match_available = 0, e.ins_h = 0;
|
|
5055
6196
|
}(e.state), t;
|
|
5056
6197
|
}
|
|
5057
|
-
function
|
|
6198
|
+
function re(e, t, n, r, a, o) {
|
|
5058
6199
|
if (!e) return f;
|
|
5059
6200
|
var s = 1;
|
|
5060
6201
|
if (t === p && (t = 6), r < 0 ? (s = 0, r = -r) : 15 < r && (s = 2, r -= 16), a < 1 || _ < a || n !== g || r < 8 || 15 < r || t < 0 || 9 < t || o < 0 || m < o) return M(e, f);
|
|
5061
6202
|
r === 8 && (r = 9);
|
|
5062
|
-
var c = new
|
|
5063
|
-
return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n,
|
|
6203
|
+
var c = new ee();
|
|
6204
|
+
return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n, ne(e);
|
|
5064
6205
|
}
|
|
5065
6206
|
r = [
|
|
5066
6207
|
new U(0, 0, 0, 0, function(e, t) {
|
|
@@ -5086,8 +6227,8 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
|
|
|
5086
6227
|
new U(32, 128, 258, 1024, H),
|
|
5087
6228
|
new U(32, 258, 258, 4096, H)
|
|
5088
6229
|
], n.deflateInit = function(e, t) {
|
|
5089
|
-
return
|
|
5090
|
-
}, n.deflateInit2 =
|
|
6230
|
+
return re(e, t, g, 15, 8, 0);
|
|
6231
|
+
}, n.deflateInit2 = re, n.deflateReset = ne, n.deflateResetKeep = te, n.deflateSetHeader = function(e, t) {
|
|
5091
6232
|
return e && e.state && e.state.wrap === 2 ? (e.state.gzhead = t, d) : f;
|
|
5092
6233
|
}, n.deflate = function(e, t) {
|
|
5093
6234
|
var n, i, o, c;
|
|
@@ -6015,25 +7156,25 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6015
7156
|
function U(e) {
|
|
6016
7157
|
8 < e.bi_valid ? L(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
6017
7158
|
}
|
|
6018
|
-
function
|
|
7159
|
+
function ee(e, t, n, r) {
|
|
6019
7160
|
var i = 2 * t, a = 2 * n;
|
|
6020
7161
|
return e[i] < e[a] || e[i] === e[a] && r[t] <= r[n];
|
|
6021
7162
|
}
|
|
6022
|
-
function
|
|
6023
|
-
for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len &&
|
|
7163
|
+
function te(e, t, n) {
|
|
7164
|
+
for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len && ee(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !ee(t, r, e.heap[i], e.depth));) e.heap[n] = e.heap[i], n = i, i <<= 1;
|
|
6024
7165
|
e.heap[n] = r;
|
|
6025
7166
|
}
|
|
6026
|
-
function
|
|
7167
|
+
function ne(e, t, n) {
|
|
6027
7168
|
var r, i, a, o, s = 0;
|
|
6028
7169
|
if (e.last_lit !== 0) for (; r = e.pending_buf[e.d_buf + 2 * s] << 8 | e.pending_buf[e.d_buf + 2 * s + 1], i = e.pending_buf[e.l_buf + s], s++, r === 0 ? z(e, i, t) : (z(e, (a = O[i]) + l + 1, t), (o = x[a]) !== 0 && R(e, i -= k[a], o), z(e, a = I(--r), n), (o = S[a]) !== 0 && R(e, r -= N[a], o)), s < e.last_lit;);
|
|
6029
7170
|
z(e, _, t);
|
|
6030
7171
|
}
|
|
6031
|
-
function
|
|
7172
|
+
function re(e, t) {
|
|
6032
7173
|
var n, r, i, a = t.dyn_tree, o = t.stat_desc.static_tree, s = t.stat_desc.has_stree, c = t.stat_desc.elems, l = -1;
|
|
6033
7174
|
for (e.heap_len = 0, e.heap_max = p, n = 0; n < c; n++) a[2 * n] === 0 ? a[2 * n + 1] = 0 : (e.heap[++e.heap_len] = l = n, e.depth[n] = 0);
|
|
6034
7175
|
for (; e.heap_len < 2;) a[2 * (i = e.heap[++e.heap_len] = l < 2 ? ++l : 0)] = 1, e.depth[i] = 0, e.opt_len--, s && (e.static_len -= o[2 * i + 1]);
|
|
6035
|
-
for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--)
|
|
6036
|
-
for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--],
|
|
7176
|
+
for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--) te(e, a, n);
|
|
7177
|
+
for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--], te(e, a, 1), r = e.heap[1], e.heap[--e.heap_max] = n, e.heap[--e.heap_max] = r, a[2 * i] = a[2 * n] + a[2 * r], e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1, a[2 * n + 1] = a[2 * r + 1] = i, e.heap[1] = i++, te(e, a, 1), 2 <= e.heap_len;);
|
|
6037
7178
|
e.heap[--e.heap_max] = e.heap[1], function(e, t) {
|
|
6038
7179
|
var n, r, i, a, o, s, c = t.dyn_tree, l = t.max_code, u = t.stat_desc.static_tree, d = t.stat_desc.has_stree, f = t.stat_desc.extra_bits, h = t.stat_desc.extra_base, g = t.stat_desc.max_length, _ = 0;
|
|
6039
7180
|
for (a = 0; a <= m; a++) e.bl_count[a] = 0;
|
|
@@ -6047,11 +7188,11 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6047
7188
|
}
|
|
6048
7189
|
}(e, t), V(a, l, e.bl_count);
|
|
6049
7190
|
}
|
|
6050
|
-
function
|
|
7191
|
+
function ie(e, t, n) {
|
|
6051
7192
|
var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
|
|
6052
7193
|
for (o === 0 && (c = 138, l = 3), t[2 * (n + 1) + 1] = 65535, r = 0; r <= n; r++) i = o, o = t[2 * (r + 1) + 1], ++s < c && i === o || (s < l ? e.bl_tree[2 * i] += s : i === 0 ? s <= 10 ? e.bl_tree[2 * y]++ : e.bl_tree[2 * b]++ : (i !== a && e.bl_tree[2 * i]++, e.bl_tree[2 * v]++), a = i, l = (s = 0) === o ? (c = 138, 3) : i === o ? (c = 6, 3) : (c = 7, 4));
|
|
6053
7194
|
}
|
|
6054
|
-
function
|
|
7195
|
+
function ae(e, t, n) {
|
|
6055
7196
|
var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
|
|
6056
7197
|
for (o === 0 && (c = 138, l = 3), r = 0; r <= n; r++) if (i = o, o = t[2 * (r + 1) + 1], !(++s < c && i === o)) {
|
|
6057
7198
|
if (s < l) for (; z(e, i, e.bl_tree), --s != 0;);
|
|
@@ -6060,14 +7201,14 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6060
7201
|
}
|
|
6061
7202
|
}
|
|
6062
7203
|
o(N);
|
|
6063
|
-
var
|
|
6064
|
-
function
|
|
7204
|
+
var oe = !1;
|
|
7205
|
+
function se(e, t, n, i) {
|
|
6065
7206
|
R(e, (s << 1) + (i ? 1 : 0), 3), function(e, t, n, i) {
|
|
6066
7207
|
U(e), i && (L(e, n), L(e, ~n)), r.arraySet(e.pending_buf, e.window, t, n, e.pending), e.pending += n;
|
|
6067
7208
|
}(e, t, n, !0);
|
|
6068
7209
|
}
|
|
6069
7210
|
n._tr_init = function(e) {
|
|
6070
|
-
|
|
7211
|
+
oe ||= (function() {
|
|
6071
7212
|
var e, t, n, r, i, a = Array(m + 1);
|
|
6072
7213
|
for (r = n = 0; r < c - 1; r++) for (k[r] = n, e = 0; e < 1 << x[r]; e++) O[n++] = r;
|
|
6073
7214
|
for (O[n - 1] = r, r = i = 0; r < 16; r++) for (N[r] = i, e = 0; e < 1 << S[r]; e++) D[i++] = r;
|
|
@@ -6080,7 +7221,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6080
7221
|
for (V(T, u + 1, a), e = 0; e < d; e++) E[2 * e + 1] = 5, E[2 * e] = B(e, 5);
|
|
6081
7222
|
A = new P(T, x, l + 1, u, m), j = new P(E, S, 0, d, m), M = new P([], C, 0, f, g);
|
|
6082
7223
|
}(), !0), e.l_desc = new F(e.dyn_ltree, A), e.d_desc = new F(e.dyn_dtree, j), e.bl_desc = new F(e.bl_tree, M), e.bi_buf = 0, e.bi_valid = 0, H(e);
|
|
6083
|
-
}, n._tr_stored_block =
|
|
7224
|
+
}, n._tr_stored_block = se, n._tr_flush_block = function(e, t, n, r) {
|
|
6084
7225
|
var o, s, c = 0;
|
|
6085
7226
|
0 < e.level ? (e.strm.data_type === 2 && (e.strm.data_type = function(e) {
|
|
6086
7227
|
var t, n = 4093624447;
|
|
@@ -6088,15 +7229,15 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6088
7229
|
if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0) return a;
|
|
6089
7230
|
for (t = 32; t < l; t++) if (e.dyn_ltree[2 * t] !== 0) return a;
|
|
6090
7231
|
return i;
|
|
6091
|
-
}(e)),
|
|
7232
|
+
}(e)), re(e, e.l_desc), re(e, e.d_desc), c = function(e) {
|
|
6092
7233
|
var t;
|
|
6093
|
-
for (
|
|
7234
|
+
for (ie(e, e.dyn_ltree, e.l_desc.max_code), ie(e, e.dyn_dtree, e.d_desc.max_code), re(e, e.bl_desc), t = f - 1; 3 <= t && e.bl_tree[2 * w[t] + 1] === 0; t--);
|
|
6094
7235
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
6095
|
-
}(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ?
|
|
7236
|
+
}(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ? se(e, t, n, r) : e.strategy === 4 || s === o ? (R(e, 2 + (r ? 1 : 0), 3), ne(e, T, E)) : (R(e, 4 + (r ? 1 : 0), 3), function(e, t, n, r) {
|
|
6096
7237
|
var i;
|
|
6097
7238
|
for (R(e, t - 257, 5), R(e, n - 1, 5), R(e, r - 4, 4), i = 0; i < r; i++) R(e, e.bl_tree[2 * w[i] + 1], 3);
|
|
6098
|
-
|
|
6099
|
-
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1),
|
|
7239
|
+
ae(e, e.dyn_ltree, t - 1), ae(e, e.dyn_dtree, n - 1);
|
|
7240
|
+
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1), ne(e, e.dyn_ltree, e.dyn_dtree)), H(e), r && U(e);
|
|
6100
7241
|
}, n._tr_tally = function(e, t, n) {
|
|
6101
7242
|
return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & n, e.last_lit++, t === 0 ? e.dyn_ltree[2 * n]++ : (e.matches++, t--, e.dyn_ltree[2 * (O[n] + l + 1)]++, e.dyn_dtree[2 * I(t)]++), e.last_lit === e.lit_bufsize - 1;
|
|
6102
7243
|
}, n._tr_align = function(e) {
|
|
@@ -6190,19 +7331,19 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6190
7331
|
}, {}]
|
|
6191
7332
|
}, {}, [10])(10);
|
|
6192
7333
|
});
|
|
6193
|
-
}))(),
|
|
7334
|
+
})))(), ro = new class extends Ie {
|
|
6194
7335
|
name = "zip";
|
|
6195
|
-
async
|
|
7336
|
+
async install(e) {
|
|
6196
7337
|
console.log("[loader zip] begin:", e);
|
|
6197
|
-
let t = await
|
|
6198
|
-
await
|
|
6199
|
-
let n = await (0,
|
|
7338
|
+
let t = await Pe("__temp__");
|
|
7339
|
+
await Kr(t, { recursive: !0 }), await Zr(await Me(t, "temp.zip"), new Uint8Array(await e.arrayBuffer())), console.log("[loader zip] temp:", t);
|
|
7340
|
+
let n = await (0, no.loadAsync)(e);
|
|
6200
7341
|
console.log(n.files);
|
|
6201
|
-
let r = JSON.parse(await n.file("manifest.json")?.async("string") ?? "{}"), i = await
|
|
7342
|
+
let r = JSON.parse(await n.file("manifest.json")?.async("string") ?? "{}"), i = await Pe(r.name.id);
|
|
6202
7343
|
try {
|
|
6203
|
-
await
|
|
7344
|
+
await Xr(i, { recursive: !0 });
|
|
6204
7345
|
} catch {}
|
|
6205
|
-
await
|
|
7346
|
+
await Kr(i, { recursive: !0 });
|
|
6206
7347
|
let a = [];
|
|
6207
7348
|
n.forEach((e, t) => {
|
|
6208
7349
|
a.push({
|
|
@@ -6210,7 +7351,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6210
7351
|
file: t
|
|
6211
7352
|
});
|
|
6212
7353
|
});
|
|
6213
|
-
for (let { file: e, path: t } of a) e.dir ? await
|
|
7354
|
+
for (let { file: e, path: t } of a) e.dir ? await Kr(await Me(i, t), { recursive: !0 }) : await Zr(await Me(i, t), await e.async("uint8array"), { create: !0 });
|
|
6214
7355
|
return r;
|
|
6215
7356
|
}
|
|
6216
7357
|
canInstall(e) {
|
|
@@ -6218,16 +7359,16 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6218
7359
|
}
|
|
6219
7360
|
async load(e) {
|
|
6220
7361
|
if (!e.meta.entry) throw Error("not found entry");
|
|
6221
|
-
let t = await
|
|
7362
|
+
let t = await Pe(e.pluginName);
|
|
6222
7363
|
console.log("[loader zip] baseDir:", t, e.meta.entry);
|
|
6223
7364
|
let n = document.createElement("script");
|
|
6224
7365
|
if (n.addEventListener("error", (e) => {
|
|
6225
7366
|
throw e;
|
|
6226
|
-
}), n.type = "module", n.async = !0, n.src = decodeURIComponent(
|
|
7367
|
+
}), n.type = "module", n.async = !0, n.src = decodeURIComponent(Oe(await Me(t, e.meta.entry.jsPath), "local")), document.body.appendChild(n), !e.meta.entry?.cssPath) return;
|
|
6227
7368
|
let r = e.meta.entry.cssPath;
|
|
6228
7369
|
if (r == "auto") {
|
|
6229
7370
|
var i = "";
|
|
6230
|
-
let e = await
|
|
7371
|
+
let e = await qr(t);
|
|
6231
7372
|
for (let t of e) if (t.name.endsWith(".css")) {
|
|
6232
7373
|
var i = t.name;
|
|
6233
7374
|
break;
|
|
@@ -6236,175 +7377,142 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
6236
7377
|
let a = document.createElement("link");
|
|
6237
7378
|
a.addEventListener("error", (e) => {
|
|
6238
7379
|
throw e;
|
|
6239
|
-
}), a.rel = "stylesheet", a.href = decodeURIComponent(
|
|
6240
|
-
}
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
7380
|
+
}), a.rel = "stylesheet", a.href = decodeURIComponent(Oe(await Me(t, i), "local")), document.head.appendChild(a);
|
|
7381
|
+
}
|
|
7382
|
+
async decodeMeta(e) {
|
|
7383
|
+
let t = await (0, no.loadAsync)(e);
|
|
7384
|
+
return console.log(t.files), JSON.parse(await t.file("manifest.json")?.async("string") ?? "{}");
|
|
7385
|
+
}
|
|
7386
|
+
}(), io = /* @__PURE__ */ a({
|
|
7387
|
+
loadAllPlugins: () => lo,
|
|
7388
|
+
loadPlugin: () => co,
|
|
7389
|
+
loaders: () => ao
|
|
7390
|
+
}), ao = xe(Object.entries(/* @__PURE__ */ Object.assign({
|
|
7391
|
+
"./init/loader/1_userscript.ts": to,
|
|
7392
|
+
"./init/loader/2_zip.ts": ro
|
|
7393
|
+
})), ([e]) => Number(e.match(/[\d\.]+(?=_)/)?.[0])).map((e) => e[1]), oo = {}, so = (e) => oo[e] ??= new oe(), co = async (e) => {
|
|
7394
|
+
console.log(`[plugin bootPlugin] booting name "${e.pluginName}"`);
|
|
7395
|
+
let t = so(e.pluginName), n = p();
|
|
7396
|
+
n.pluginSteps[e.pluginName] = {
|
|
6253
7397
|
now: {
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
}
|
|
7398
|
+
status: "wait",
|
|
7399
|
+
stepsIndex: 0
|
|
7400
|
+
},
|
|
7401
|
+
steps: [{
|
|
7402
|
+
name: "等待",
|
|
7403
|
+
description: "插件载入中"
|
|
7404
|
+
}]
|
|
6257
7405
|
};
|
|
6258
7406
|
try {
|
|
6259
|
-
|
|
6260
|
-
for (let r of Xr) {
|
|
6261
|
-
let i = n[e.name].steps.length;
|
|
6262
|
-
n[e.name].steps[i] = {
|
|
6263
|
-
name: r.name,
|
|
6264
|
-
description: ""
|
|
6265
|
-
}, n[e.name].now.stepsIndex = i, n[e.name].now.status = "process", await r.call(e, (t) => {
|
|
6266
|
-
se(t) ? n[e.name].steps[i].description = t : (t.description && (n[e.name].steps[i].description = t.description), t.name && (n[e.name].steps[i].name = t.name));
|
|
6267
|
-
}, t);
|
|
6268
|
-
}
|
|
6269
|
-
n[e.name].now.stepsIndex++;
|
|
7407
|
+
await t.acquire(), await ao.find((t) => t.name == e.loaderName).load(e), await t.acquire();
|
|
6270
7408
|
} catch (t) {
|
|
6271
|
-
throw n[e.
|
|
7409
|
+
throw n.pluginSteps[e.pluginName].now.status = "error", n.pluginSteps[e.pluginName].now.error = t, t;
|
|
6272
7410
|
}
|
|
6273
|
-
console.log(`[plugin
|
|
7411
|
+
console.log(`[plugin bootPlugin] boot name done "${e.pluginName}"`);
|
|
6274
7412
|
};
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
7413
|
+
i.on("definedPlugin", async (e) => {
|
|
7414
|
+
console.log("[plugin addPlugin] new plugin defined", e.name, e);
|
|
7415
|
+
let t = so(e.name);
|
|
7416
|
+
await Xe(e), console.log("[plugin addPlugin] done", e.name), t.release();
|
|
7417
|
+
});
|
|
7418
|
+
var lo = async () => {
|
|
7419
|
+
let { $initCore: e, coreName: t } = await import("./core-NoooY1bz.js");
|
|
7420
|
+
await e();
|
|
7421
|
+
let n = new Set([t]), r = await _.selectFrom("plugin").where("enable", "is", !0).selectAll().execute(), i = [];
|
|
7422
|
+
for (;;) {
|
|
7423
|
+
let e = r.filter((e) => e.meta.require.every((e) => n.has(e.id)));
|
|
7424
|
+
i.push(e), te(r, (t) => e.includes(t));
|
|
7425
|
+
for (let { pluginName: t } of e) n.add(t);
|
|
7426
|
+
if (we(e)) break;
|
|
7427
|
+
}
|
|
7428
|
+
if (!we(r)) throw Error(`插件循环引用: ${r.map((e) => e.pluginName).join(", ")}`);
|
|
7429
|
+
for (let e of i) await Promise.all(e.map((e) => co(e)));
|
|
7430
|
+
console.log("[plugin bootPlugin] all load done");
|
|
7431
|
+
}, uo = /* @__PURE__ */ a({
|
|
7432
|
+
installDepends: () => mo,
|
|
7433
|
+
installFilePlugin: () => _o,
|
|
7434
|
+
installPlugin: () => go,
|
|
7435
|
+
installers: () => fo,
|
|
7436
|
+
updatePlugin: () => vo,
|
|
7437
|
+
usePluginConfig: () => po
|
|
7438
|
+
}), fo = xe(Object.entries(/* @__PURE__ */ Object.assign({
|
|
7439
|
+
"./init/installer/10_normalUrl.ts": Br,
|
|
7440
|
+
"./init/installer/20_local.ts": $r,
|
|
7441
|
+
"./init/installer/30_dev.ts": ei,
|
|
7442
|
+
"./init/installer/40_github.ts": Za,
|
|
7443
|
+
"./init/installer/9999_awesome.ts": $a
|
|
7444
|
+
})), ([e]) => Number(e.match(/[\d\.]+(?=_)/)?.[0])).map((e) => e[1]).reverse(), po = () => v(u, "pluginInstallSourceOverrides", []), mo = (e, t, n) => e.createLoading("依赖安装/检查", async (e) => {
|
|
6283
7445
|
e.retryable = !0;
|
|
6284
|
-
let
|
|
6285
|
-
for (let { id: n, download:
|
|
6286
|
-
e.description = `安装完成,共${
|
|
6287
|
-
}),
|
|
6288
|
-
let
|
|
7446
|
+
let r = 0, i = n ?? new Set((await _.selectFrom("plugin").select("pluginName").execute()).map((e) => e.pluginName)), a = po();
|
|
7447
|
+
for (let { id: n, download: o } of t.require) i.has(n) || !o || (console.log(`从 ${t.name.id} 发现未安装依赖: ${n} ->`, o), e.description = `安装: ${n}`, await go(a.value.find((e) => e.id == n && e.enabled)?.install ?? o), r++);
|
|
7448
|
+
e.description = `安装完成,共${r}个`;
|
|
7449
|
+
}), ho = async (e, t, n, r, i) => {
|
|
7450
|
+
let a = await e.createLoading("安装插件", async (e) => {
|
|
7451
|
+
e.retryable = !0;
|
|
7452
|
+
let i = ao.filter((e) => e.canInstall(t)).at(-1);
|
|
7453
|
+
if (!i) throw Error("没有符合的安装器");
|
|
7454
|
+
e.description = i.name;
|
|
7455
|
+
let a = await i.install(t);
|
|
7456
|
+
e.description = "写入数据库";
|
|
7457
|
+
let { upsert: o } = g.useUpsert();
|
|
7458
|
+
return await o({ archives: [{
|
|
7459
|
+
displayName: a.name.display,
|
|
7460
|
+
enable: !0,
|
|
7461
|
+
installerName: n,
|
|
7462
|
+
installInput: r,
|
|
7463
|
+
loaderName: i.name,
|
|
7464
|
+
meta: a,
|
|
7465
|
+
pluginName: a.name.id
|
|
7466
|
+
}] }), a;
|
|
7467
|
+
});
|
|
7468
|
+
console.log(`安装插件成功: ${a.name.id} ->`, a), await mo(e, a, i);
|
|
7469
|
+
}, go = (e, t) => V(`下载插件-${e}`, async (n) => {
|
|
7470
|
+
let [r, i] = await n.createLoading("下载", async (t) => {
|
|
6289
7471
|
t.retryable = !0;
|
|
6290
7472
|
let n = e;
|
|
6291
7473
|
for (;;) {
|
|
6292
|
-
let e =
|
|
7474
|
+
let e = fo.filter((e) => e.isMatched(n)).at(0);
|
|
6293
7475
|
if (!e) throw Error("没有符合的下载器:" + n);
|
|
6294
7476
|
t.description = e.name;
|
|
6295
|
-
let r = await e.
|
|
6296
|
-
if (
|
|
7477
|
+
let r = await e.download(n);
|
|
7478
|
+
if (l(r)) n = r;
|
|
6297
7479
|
else return [r, e];
|
|
6298
7480
|
}
|
|
6299
|
-
}), o = await n.createLoading("安装插件", async (t) => {
|
|
6300
|
-
t.retryable = !0;
|
|
6301
|
-
let n = oi.filter((e) => e.canInstall(i)).at(-1);
|
|
6302
|
-
if (!n) throw Error("没有符合的安装器:" + e);
|
|
6303
|
-
t.description = n.name;
|
|
6304
|
-
let o = await n.installDownload(i);
|
|
6305
|
-
return t.description = "写入数据库", await r.value.replaceInto("plugin").values({
|
|
6306
|
-
displayName: o.name.display,
|
|
6307
|
-
enable: !0,
|
|
6308
|
-
installerName: a.name,
|
|
6309
|
-
installInput: e,
|
|
6310
|
-
loaderName: n.name,
|
|
6311
|
-
meta: JSON.stringify(o),
|
|
6312
|
-
pluginName: o.name.id
|
|
6313
|
-
}).execute(), o;
|
|
6314
|
-
});
|
|
6315
|
-
console.log(`安装插件成功: ${o.name.id} ->`, o), await ti(n, o, t);
|
|
6316
|
-
}), ri = (e, t) => H(`安装插件-${e.name}`, async (n) => {
|
|
6317
|
-
let i = await n.createLoading("安装插件", async (t) => {
|
|
6318
|
-
t.retryable = !0;
|
|
6319
|
-
let n = oi.filter((t) => t.canInstall(e)).at(-1);
|
|
6320
|
-
if (!n) throw Error("没有符合的安装器");
|
|
6321
|
-
t.description = n.name;
|
|
6322
|
-
let i = await n.installDownload(e);
|
|
6323
|
-
return t.description = "写入数据库", await r.value.replaceInto("plugin").values({
|
|
6324
|
-
displayName: i.name.display,
|
|
6325
|
-
enable: !0,
|
|
6326
|
-
installerName: "",
|
|
6327
|
-
installInput: "",
|
|
6328
|
-
loaderName: n.name,
|
|
6329
|
-
meta: JSON.stringify(i),
|
|
6330
|
-
pluginName: i.name.id
|
|
6331
|
-
}).execute(), i;
|
|
6332
7481
|
});
|
|
6333
|
-
|
|
6334
|
-
}),
|
|
6335
|
-
|
|
7482
|
+
await ho(n, r, i.name, e, t);
|
|
7483
|
+
}), _o = (e, t) => V(`安装插件-${e.name}`, async (n) => {
|
|
7484
|
+
await ho(n, e, "", "", t);
|
|
7485
|
+
}), vo = async (e, t) => V(`更新插件-${e.pluginName}`, async (n) => {
|
|
7486
|
+
let r = await n.createLoading("更新", async (t) => {
|
|
6336
7487
|
t.retryable = !0;
|
|
6337
7488
|
let n = e.installerName;
|
|
6338
7489
|
for (;;) {
|
|
6339
|
-
let r =
|
|
7490
|
+
let r = fo.find((e) => e.name == n);
|
|
6340
7491
|
if (!r) throw Error("没有符合的下载器");
|
|
6341
7492
|
t.description = r.name;
|
|
6342
7493
|
let i = await r.update(e);
|
|
6343
|
-
if (
|
|
7494
|
+
if (l(i)) n = i;
|
|
6344
7495
|
else return i;
|
|
6345
7496
|
}
|
|
6346
|
-
}),
|
|
7497
|
+
}), i = await n.createLoading("安装插件", async (t) => {
|
|
6347
7498
|
t.retryable = !0;
|
|
6348
|
-
let n =
|
|
7499
|
+
let n = ao.find((t) => t.name == e.loaderName);
|
|
6349
7500
|
if (!n) throw Error("没有符合的安装器");
|
|
6350
|
-
return await n.
|
|
6351
|
-
});
|
|
6352
|
-
await
|
|
7501
|
+
return await n.install(r);
|
|
7502
|
+
}), { upsert: a } = g.useUpsert();
|
|
7503
|
+
await a({ archives: [{
|
|
6353
7504
|
...e,
|
|
6354
|
-
meta:
|
|
6355
|
-
})
|
|
6356
|
-
})
|
|
6357
|
-
var ai = Object.assign({
|
|
6358
|
-
"./loader/1_userscript.ts": Kr,
|
|
6359
|
-
"./loader/2_zip.ts": Jr
|
|
6360
|
-
}), oi = Te(Object.entries(ai), ([e]) => Number(e.match(/[\d\.]+(?=_)/)?.[0])).map((e) => e[1]), si = {}, ci = (e) => si[e] ??= new le();
|
|
6361
|
-
const li = async (e) => {
|
|
6362
|
-
console.log(`[plugin bootPlugin] booting name "${e.pluginName}"`);
|
|
6363
|
-
let t = ci(e.pluginName), n = lt();
|
|
6364
|
-
n.pluginSteps[e.pluginName] = {
|
|
6365
|
-
now: {
|
|
6366
|
-
status: "wait",
|
|
6367
|
-
stepsIndex: 0
|
|
6368
|
-
},
|
|
6369
|
-
steps: [{
|
|
6370
|
-
name: "等待",
|
|
6371
|
-
description: "插件载入中"
|
|
6372
|
-
}]
|
|
6373
|
-
};
|
|
6374
|
-
try {
|
|
6375
|
-
await t.acquire(), await oi.find((t) => t.name == e.loaderName).load(e), await t.acquire();
|
|
6376
|
-
} catch (t) {
|
|
6377
|
-
throw n.pluginSteps[e.pluginName].now.status = "error", n.pluginSteps[e.pluginName].now.error = t, t;
|
|
6378
|
-
}
|
|
6379
|
-
console.log(`[plugin bootPlugin] boot name done "${e.pluginName}"`);
|
|
6380
|
-
};
|
|
6381
|
-
Me.on("definedPlugin", async (e) => {
|
|
6382
|
-
console.log("[plugin addPlugin] new plugin defined", e.name, e);
|
|
6383
|
-
let t = ci(e.name);
|
|
6384
|
-
await Zr(e), console.log("[plugin addPlugin] done", e.name), t.release();
|
|
6385
|
-
}), window.$api.loaders = oi, window.$api.installers = $r;
|
|
6386
|
-
const ui = F.fromAsyncFunction(async () => {
|
|
6387
|
-
await ut();
|
|
6388
|
-
let e = new Set([Y]), n = await t.getByEnabled(!0), r = [];
|
|
6389
|
-
for (;;) {
|
|
6390
|
-
let t = n.filter((t) => t.meta.require.every((t) => e.has(t.id)));
|
|
6391
|
-
r.push(t), te(n, (e) => t.includes(e));
|
|
6392
|
-
for (let { pluginName: n } of t) e.add(n);
|
|
6393
|
-
if (Ae(t)) break;
|
|
6394
|
-
}
|
|
6395
|
-
if (!Ae(n)) throw Error(`插件循环引用: ${n.map((e) => e.pluginName).join(", ")}`);
|
|
6396
|
-
for (let e of r) await Promise.all(e.map((e) => li(e)));
|
|
6397
|
-
console.log("[plugin bootPlugin] all load done");
|
|
6398
|
-
});
|
|
6399
|
-
var di = f({
|
|
7505
|
+
meta: i
|
|
7506
|
+
}] }), await mo(n, i, t);
|
|
7507
|
+
}), yo = /* @__PURE__ */ T({
|
|
6400
7508
|
__name: "Inject",
|
|
6401
7509
|
props: {
|
|
6402
7510
|
key: {},
|
|
6403
7511
|
args: {}
|
|
6404
7512
|
},
|
|
6405
7513
|
setup(e) {
|
|
6406
|
-
let t = e, n =
|
|
6407
|
-
return (t, r) => (
|
|
7514
|
+
let t = e, n = x(() => Array.from(W.envExtends.values()).filter((e) => e.key == t.key));
|
|
7515
|
+
return (t, r) => (k(!0), w(b, null, j(n.value, (t) => (k(), S(P(R), {
|
|
6408
7516
|
promise: async () => {
|
|
6409
7517
|
try {
|
|
6410
7518
|
return await t.condition(e.args);
|
|
@@ -6414,21 +7522,21 @@ var di = f({
|
|
|
6414
7522
|
},
|
|
6415
7523
|
"auto-load": ""
|
|
6416
7524
|
}, {
|
|
6417
|
-
default:
|
|
7525
|
+
default: F(({ result: n }) => [n ? (k(), S(M(t.component), O({
|
|
6418
7526
|
key: 0,
|
|
6419
7527
|
ref_for: !0
|
|
6420
|
-
}, e.args), null, 16)) :
|
|
7528
|
+
}, e.args), null, 16)) : C("", !0)]),
|
|
6421
7529
|
_: 2
|
|
6422
7530
|
}, 1032, ["promise"]))), 256));
|
|
6423
7531
|
}
|
|
6424
|
-
})
|
|
6425
|
-
|
|
6426
|
-
J.envExtends.add({
|
|
7532
|
+
}), bo = (e, t, n) => {
|
|
7533
|
+
W.envExtends.add({
|
|
6427
7534
|
key: e,
|
|
6428
7535
|
component: t,
|
|
6429
7536
|
condition: n ?? (() => !0)
|
|
6430
7537
|
});
|
|
6431
7538
|
};
|
|
6432
|
-
|
|
7539
|
+
//#endregion
|
|
7540
|
+
export { Je as Booter, m as ConfigPointer, W as Global, yo as Inject, uo as Install, io as Loader, bo as addInjection, n as appConfig, s as declareDepType, h as decodePluginMeta, r as definePlugin, i as pluginEmitter, t as pluginExposes, d as require, c as useConfig, p as usePluginStore };
|
|
6433
7541
|
|
|
6434
7542
|
//# sourceMappingURL=index.js.map
|