@delta-comic/plugin 1.3.4 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
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";
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-Czlf2w3A.js";
2
2
  import { PluginArchiveDB as g, db as _, useNativeStore as v } from "@delta-comic/db";
3
3
  import { useGlobalVar as y } from "@delta-comic/utils";
4
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";
@@ -490,14 +490,14 @@ var Ne = await je(), Pe = async (e) => await Me(Ne, "plugin", e), Fe = class {},
490
490
  console.log(`[plugin usePluginStore.$loadPlugin] plugin "${e.name}" load done`);
491
491
  };
492
492
  //#endregion
493
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/bind.js
493
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/bind.js
494
494
  function Ze(e, t) {
495
495
  return function() {
496
496
  return e.apply(t, arguments);
497
497
  };
498
498
  }
499
499
  //#endregion
500
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/utils.js
500
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/utils.js
501
501
  var { toString: Qe } = Object.prototype, { getPrototypeOf: $e } = Object, { iterator: et, toStringTag: tt } = Symbol, nt = ((e) => (t) => {
502
502
  let n = Qe.call(t);
503
503
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
@@ -759,7 +759,7 @@ var nn = (e) => {
759
759
  };
760
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
761
  //#endregion
762
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toFormData.js
762
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js
763
763
  function sn(e) {
764
764
  return J.isPlainObject(e) || J.isArray(e);
765
765
  }
@@ -823,7 +823,7 @@ function fn(e, t, n) {
823
823
  return f(e), t;
824
824
  }
825
825
  //#endregion
826
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
826
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
827
827
  function pn(e) {
828
828
  let t = {
829
829
  "!": "%21",
@@ -853,7 +853,7 @@ hn.append = function(e, t) {
853
853
  }, "").join("&");
854
854
  };
855
855
  //#endregion
856
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/buildURL.js
856
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js
857
857
  function gn(e) {
858
858
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
859
859
  }
@@ -867,7 +867,7 @@ function _n(e, t, n) {
867
867
  return e;
868
868
  }
869
869
  //#endregion
870
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/InterceptorManager.js
870
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js
871
871
  var vn = class {
872
872
  constructor() {
873
873
  this.handlers = [];
@@ -926,7 +926,7 @@ var vn = class {
926
926
  ...bn
927
927
  };
928
928
  //#endregion
929
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/toURLEncodedForm.js
929
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
930
930
  function Dn(e, t) {
931
931
  return fn(e, new X.classes.URLSearchParams(), {
932
932
  visitor: function(e, t, n, r) {
@@ -936,7 +936,7 @@ function Dn(e, t) {
936
936
  });
937
937
  }
938
938
  //#endregion
939
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/formDataToJSON.js
939
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js
940
940
  function On(e) {
941
941
  return J.matchAll(/\w+|\[(\w*)]/g, e).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
942
942
  }
@@ -961,7 +961,7 @@ function An(e) {
961
961
  return null;
962
962
  }
963
963
  //#endregion
964
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/defaults/index.js
964
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/index.js
965
965
  function jn(e, t, n) {
966
966
  if (J.isString(e)) try {
967
967
  return (t || JSON.parse)(e), J.trim(e);
@@ -1034,7 +1034,7 @@ J.forEach([
1034
1034
  Mn.headers[e] = {};
1035
1035
  });
1036
1036
  //#endregion
1037
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseHeaders.js
1037
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js
1038
1038
  var Nn = J.toObjectSet([
1039
1039
  "age",
1040
1040
  "authorization",
@@ -1063,7 +1063,7 @@ function In(e) {
1063
1063
  return e && String(e).trim().toLowerCase();
1064
1064
  }
1065
1065
  function Ln(e) {
1066
- return e === !1 || e == null ? e : J.isArray(e) ? e.map(Ln) : String(e);
1066
+ return e === !1 || e == null ? e : J.isArray(e) ? e.map(Ln) : String(e).replace(/[\r\n]+$/, "");
1067
1067
  }
1068
1068
  function Rn(e) {
1069
1069
  let t = Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g, r;
@@ -1225,7 +1225,7 @@ Z.accessor([
1225
1225
  };
1226
1226
  }), J.freezeMethods(Z);
1227
1227
  //#endregion
1228
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/transformData.js
1228
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js
1229
1229
  function Un(e, t) {
1230
1230
  let n = this || Mn, r = t || n, i = Z.from(r.headers), a = r.data;
1231
1231
  return J.forEach(e, function(e) {
@@ -1233,31 +1233,31 @@ function Un(e, t) {
1233
1233
  }), i.normalize(), a;
1234
1234
  }
1235
1235
  //#endregion
1236
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/isCancel.js
1236
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js
1237
1237
  function Wn(e) {
1238
1238
  return !!(e && e.__CANCEL__);
1239
1239
  }
1240
1240
  //#endregion
1241
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CanceledError.js
1241
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js
1242
1242
  var Gn = class extends Y {
1243
1243
  constructor(e, t, n) {
1244
1244
  super(e ?? "canceled", Y.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
1245
1245
  }
1246
1246
  };
1247
1247
  //#endregion
1248
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/settle.js
1248
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/settle.js
1249
1249
  function Kn(e, t, n) {
1250
1250
  let r = n.config.validateStatus;
1251
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
1252
  }
1253
1253
  //#endregion
1254
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/parseProtocol.js
1254
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js
1255
1255
  function qn(e) {
1256
1256
  let t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1257
1257
  return t && t[1] || "";
1258
1258
  }
1259
1259
  //#endregion
1260
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/speedometer.js
1260
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js
1261
1261
  function Jn(e, t) {
1262
1262
  e ||= 10;
1263
1263
  let n = Array(e), r = Array(e), i = 0, a = 0, o;
@@ -1272,7 +1272,7 @@ function Jn(e, t) {
1272
1272
  };
1273
1273
  }
1274
1274
  //#endregion
1275
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/throttle.js
1275
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js
1276
1276
  function Yn(e, t) {
1277
1277
  let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
1278
1278
  n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
@@ -1285,7 +1285,7 @@ function Yn(e, t) {
1285
1285
  }, () => i && o(i)];
1286
1286
  }
1287
1287
  //#endregion
1288
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/progressEventReducer.js
1288
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js
1289
1289
  var Xn = (e, t, n = 3) => {
1290
1290
  let r = 0, i = Jn(50, 250);
1291
1291
  return Yn((n) => {
@@ -1331,23 +1331,23 @@ var Xn = (e, t, n = 3) => {
1331
1331
  remove() {}
1332
1332
  };
1333
1333
  //#endregion
1334
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAbsoluteURL.js
1334
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
1335
1335
  function tr(e) {
1336
1336
  return typeof e == "string" ? /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e) : !1;
1337
1337
  }
1338
1338
  //#endregion
1339
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/combineURLs.js
1339
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js
1340
1340
  function nr(e, t) {
1341
1341
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1342
1342
  }
1343
1343
  //#endregion
1344
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/buildFullPath.js
1344
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js
1345
1345
  function rr(e, t, n) {
1346
1346
  let r = !tr(t);
1347
1347
  return e && (r || n == 0) ? nr(e, t) : t;
1348
1348
  }
1349
1349
  //#endregion
1350
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/mergeConfig.js
1350
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js
1351
1351
  var ir = (e) => e instanceof Z ? { ...e } : e;
1352
1352
  function ar(e, t) {
1353
1353
  t ||= {};
@@ -1411,7 +1411,7 @@ function ar(e, t) {
1411
1411
  }), n;
1412
1412
  }
1413
1413
  //#endregion
1414
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/resolveConfig.js
1414
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js
1415
1415
  var or = (e) => {
1416
1416
  let t = ar({}, e), { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: s } = t;
1417
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)) {
@@ -1555,14 +1555,14 @@ var or = (e) => {
1555
1555
  let { fetch: t, Request: n, Response: r } = e, i = t ? mr(t) : typeof fetch == "function", a = mr(n), o = mr(r);
1556
1556
  if (!i) return !1;
1557
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(),
1558
+ let e = !1, t = new gr(), r = new n(X.origin, {
1559
+ body: t,
1560
1560
  method: "POST",
1561
1561
  get duplex() {
1562
1562
  return e = !0, "half";
1563
1563
  }
1564
1564
  }).headers.has("Content-Type");
1565
- return e && !t;
1565
+ return t.cancel(), e && !r;
1566
1566
  }), u = o && s && vr(() => J.isReadableStream(new r("").body)), d = { stream: u && ((e) => e.body) };
1567
1567
  i && [
1568
1568
  "text",
@@ -1658,7 +1658,7 @@ var or = (e) => {
1658
1658
  };
1659
1659
  xr();
1660
1660
  //#endregion
1661
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/adapters/adapters.js
1661
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js
1662
1662
  var Sr = {
1663
1663
  http: null,
1664
1664
  xhr: sr,
@@ -1694,7 +1694,7 @@ var Er = {
1694
1694
  adapters: Sr
1695
1695
  };
1696
1696
  //#endregion
1697
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/core/dispatchRequest.js
1697
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js
1698
1698
  function Dr(e) {
1699
1699
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new Gn(null, e);
1700
1700
  }
@@ -1710,8 +1710,8 @@ function Or(e) {
1710
1710
  });
1711
1711
  }
1712
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 = {};
1713
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js
1714
+ var kr = "1.14.0", Ar = {};
1715
1715
  [
1716
1716
  "object",
1717
1717
  "boolean",
@@ -1872,7 +1872,7 @@ J.forEach([
1872
1872
  Pr.prototype[e] = t(), Pr.prototype[e + "Form"] = t(!0);
1873
1873
  });
1874
1874
  //#endregion
1875
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/cancel/CancelToken.js
1875
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js
1876
1876
  var Fr = class e {
1877
1877
  constructor(e) {
1878
1878
  if (typeof e != "function") throw TypeError("executor must be a function.");
@@ -1929,19 +1929,19 @@ var Fr = class e {
1929
1929
  }
1930
1930
  };
1931
1931
  //#endregion
1932
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/spread.js
1932
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/spread.js
1933
1933
  function Ir(e) {
1934
1934
  return function(t) {
1935
1935
  return e.apply(null, t);
1936
1936
  };
1937
1937
  }
1938
1938
  //#endregion
1939
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/isAxiosError.js
1939
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js
1940
1940
  function Lr(e) {
1941
1941
  return J.isObject(e) && e.isAxiosError === !0;
1942
1942
  }
1943
1943
  //#endregion
1944
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/helpers/HttpStatusCode.js
1944
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js
1945
1945
  var Rr = {
1946
1946
  Continue: 100,
1947
1947
  SwitchingProtocols: 101,
@@ -2017,7 +2017,7 @@ Object.entries(Rr).forEach(([e, t]) => {
2017
2017
  Rr[t] = e;
2018
2018
  });
2019
2019
  //#endregion
2020
- //#region ../../node_modules/.pnpm/axios@1.13.6/node_modules/axios/lib/axios.js
2020
+ //#region ../../node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js
2021
2021
  function zr(e) {
2022
2022
  let t = new Pr(e), n = Ze(Pr.prototype.request, t);
2023
2023
  return J.extend(n, Pr.prototype, t, { allOwnKeys: !0 }), J.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
@@ -2152,7 +2152,7 @@ async function Yr(e, t) {
2152
2152
  path: e instanceof URL ? e.toString() : e,
2153
2153
  options: t
2154
2154
  }), r = n instanceof ArrayBuffer ? n : Uint8Array.from(n);
2155
- return new TextDecoder().decode(r);
2155
+ return new TextDecoder(t?.encoding ?? "utf-8").decode(r);
2156
2156
  }
2157
2157
  async function Xr(e, t) {
2158
2158
  if (e instanceof URL && e.protocol !== "file:") throw TypeError("Must be a file URL.");
@@ -2293,36 +2293,36 @@ function li() {
2293
2293
  var ui = {
2294
2294
  Singular: ci,
2295
2295
  Collection: li
2296
- }, di = `octokit-endpoint.js/0.0.0-development ${ti()}`, fi = {
2296
+ }, di = {
2297
2297
  method: "GET",
2298
2298
  baseUrl: "https://api.github.com",
2299
2299
  headers: {
2300
2300
  accept: "application/vnd.github.v3+json",
2301
- "user-agent": di
2301
+ "user-agent": `octokit-endpoint.js/0.0.0-development ${ti()}`
2302
2302
  },
2303
2303
  mediaType: { format: "" }
2304
2304
  };
2305
- function pi(e) {
2305
+ function fi(e) {
2306
2306
  return e ? Object.keys(e).reduce((t, n) => (t[n.toLowerCase()] = e[n], t), {}) : {};
2307
2307
  }
2308
- function mi(e) {
2308
+ function pi(e) {
2309
2309
  if (typeof e != "object" || !e || Object.prototype.toString.call(e) !== "[object Object]") return !1;
2310
2310
  let t = Object.getPrototypeOf(e);
2311
2311
  if (t === null) return !0;
2312
2312
  let n = Object.prototype.hasOwnProperty.call(t, "constructor") && t.constructor;
2313
2313
  return typeof n == "function" && n instanceof n && Function.prototype.call(n) === Function.prototype.call(e);
2314
2314
  }
2315
- function hi(e, t) {
2315
+ function mi(e, t) {
2316
2316
  let n = Object.assign({}, e);
2317
2317
  return Object.keys(t).forEach((r) => {
2318
- mi(t[r]) && r in e ? n[r] = hi(e[r], t[r]) : Object.assign(n, { [r]: t[r] });
2318
+ pi(t[r]) && r in e ? n[r] = mi(e[r], t[r]) : Object.assign(n, { [r]: t[r] });
2319
2319
  }), n;
2320
2320
  }
2321
- function gi(e) {
2321
+ function hi(e) {
2322
2322
  for (let t in e) e[t] === void 0 && delete e[t];
2323
2323
  return e;
2324
2324
  }
2325
- function _i(e, t, n) {
2325
+ function gi(e, t, n) {
2326
2326
  if (typeof t == "string") {
2327
2327
  let [e, r] = t.split(" ");
2328
2328
  n = Object.assign(r ? {
@@ -2330,69 +2330,69 @@ function _i(e, t, n) {
2330
2330
  url: r
2331
2331
  } : { url: e }, n);
2332
2332
  } else n = Object.assign({}, t);
2333
- n.headers = pi(n.headers), gi(n), gi(n.headers);
2334
- let r = hi(e || {}, n);
2333
+ n.headers = fi(n.headers), hi(n), hi(n.headers);
2334
+ let r = mi(e || {}, n);
2335
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;
2336
2336
  }
2337
- function vi(e, t) {
2337
+ function _i(e, t) {
2338
2338
  let n = /\?/.test(e) ? "&" : "?", r = Object.keys(t);
2339
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("&");
2340
2340
  }
2341
- var yi = /\{[^{}}]+\}/g;
2342
- function bi(e) {
2341
+ var vi = /\{[^{}}]+\}/g;
2342
+ function yi(e) {
2343
2343
  return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
2344
2344
  }
2345
- function xi(e) {
2346
- let t = e.match(yi);
2347
- return t ? t.map(bi).reduce((e, t) => e.concat(t), []) : [];
2345
+ function bi(e) {
2346
+ let t = e.match(vi);
2347
+ return t ? t.map(yi).reduce((e, t) => e.concat(t), []) : [];
2348
2348
  }
2349
- function Si(e, t) {
2349
+ function xi(e, t) {
2350
2350
  let n = { __proto__: null };
2351
2351
  for (let r of Object.keys(e)) t.indexOf(r) === -1 && (n[r] = e[r]);
2352
2352
  return n;
2353
2353
  }
2354
- function Ci(e) {
2354
+ function Si(e) {
2355
2355
  return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e) {
2356
2356
  return /%[0-9A-Fa-f]/.test(e) || (e = encodeURI(e).replace(/%5B/g, "[").replace(/%5D/g, "]")), e;
2357
2357
  }).join("");
2358
2358
  }
2359
- function wi(e) {
2359
+ function Ci(e) {
2360
2360
  return encodeURIComponent(e).replace(/[!'()*]/g, function(e) {
2361
2361
  return "%" + e.charCodeAt(0).toString(16).toUpperCase();
2362
2362
  });
2363
2363
  }
2364
- function Ti(e, t, n) {
2365
- return t = e === "+" || e === "#" ? Ci(t) : wi(t), n ? wi(n) + "=" + t : t;
2364
+ function wi(e, t, n) {
2365
+ return t = e === "+" || e === "#" ? Si(t) : Ci(t), n ? Ci(n) + "=" + t : t;
2366
2366
  }
2367
- function Ei(e) {
2367
+ function Ti(e) {
2368
2368
  return e != null;
2369
2369
  }
2370
- function Di(e) {
2370
+ function Ei(e) {
2371
2371
  return e === ";" || e === "&" || e === "?";
2372
2372
  }
2373
- function Oi(e, t, n, r) {
2373
+ function Di(e, t, n, r) {
2374
2374
  var i = e[n], a = [];
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 : ""));
2375
+ if (Ti(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(wi(t, i, Ei(t) ? n : ""));
2376
+ else if (r === "*") Array.isArray(i) ? i.filter(Ti).forEach(function(e) {
2377
+ a.push(wi(t, e, Ei(t) ? n : ""));
2378
2378
  }) : Object.keys(i).forEach(function(e) {
2379
- Ei(i[e]) && a.push(Ti(t, i[e], e));
2379
+ Ti(i[e]) && a.push(wi(t, i[e], e));
2380
2380
  });
2381
2381
  else {
2382
2382
  let e = [];
2383
- Array.isArray(i) ? i.filter(Ei).forEach(function(n) {
2384
- e.push(Ti(t, n));
2383
+ Array.isArray(i) ? i.filter(Ti).forEach(function(n) {
2384
+ e.push(wi(t, n));
2385
2385
  }) : Object.keys(i).forEach(function(n) {
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(","));
2386
+ Ti(i[n]) && (e.push(Ci(n)), e.push(wi(t, i[n].toString())));
2387
+ }), Ei(t) ? a.push(Ci(n) + "=" + e.join(",")) : e.length !== 0 && a.push(e.join(","));
2388
2388
  }
2389
- else t === ";" ? Ei(i) && a.push(wi(n)) : i === "" && (t === "&" || t === "?") ? a.push(wi(n) + "=") : i === "" && a.push("");
2389
+ else t === ";" ? Ti(i) && a.push(Ci(n)) : i === "" && (t === "&" || t === "?") ? a.push(Ci(n) + "=") : i === "" && a.push("");
2390
2390
  return a;
2391
2391
  }
2392
- function ki(e) {
2393
- return { expand: Ai.bind(null, e) };
2392
+ function Oi(e) {
2393
+ return { expand: ki.bind(null, e) };
2394
2394
  }
2395
- function Ai(e, t) {
2395
+ function ki(e, t) {
2396
2396
  var n = [
2397
2397
  "+",
2398
2398
  "#",
@@ -2407,44 +2407,44 @@ function Ai(e, t) {
2407
2407
  let e = "", i = [];
2408
2408
  if (n.indexOf(r.charAt(0)) !== -1 && (e = r.charAt(0), r = r.substr(1)), r.split(/,/g).forEach(function(n) {
2409
2409
  var r = /([^:\*]*)(?::(\d+)|(\*))?/.exec(n);
2410
- i.push(Oi(t, e, r[1], r[2] || r[3]));
2410
+ i.push(Di(t, e, r[1], r[2] || r[3]));
2411
2411
  }), e && e !== "+") {
2412
2412
  var a = ",";
2413
2413
  return e === "?" ? a = "&" : e !== "#" && (a = e), (i.length === 0 ? "" : e) + i.join(a);
2414
2414
  } else return i.join(",");
2415
- } else return Ci(i);
2415
+ } else return Si(i);
2416
2416
  }), e === "/" ? e : e.replace(/\/$/, "");
2417
2417
  }
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, [
2418
+ function Ai(e) {
2419
+ let t = e.method.toUpperCase(), n = (e.url || "/").replace(/:([a-z]\w+)/g, "{$1}"), r = Object.assign({}, e.headers), i, a = xi(e, [
2420
2420
  "method",
2421
2421
  "baseUrl",
2422
2422
  "url",
2423
2423
  "headers",
2424
2424
  "request",
2425
2425
  "mediaType"
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({
2426
+ ]), o = bi(n);
2427
+ n = Oi(n).expand(a), /^http/.test(n) || (n = e.baseUrl + n);
2428
+ let s = xi(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 = _i(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({
2430
2430
  method: t,
2431
2431
  url: n,
2432
2432
  headers: r
2433
2433
  }, i === void 0 ? null : { body: i }, e.request ? { request: e.request } : null);
2434
2434
  }
2435
- function Mi(e, t, n) {
2436
- return ji(_i(e, t, n));
2435
+ function ji(e, t, n) {
2436
+ return Ai(gi(e, t, n));
2437
2437
  }
2438
- function Ni(e, t) {
2439
- let n = _i(e, t), r = Mi.bind(null, n);
2438
+ function Mi(e, t) {
2439
+ let n = gi(e, t), r = ji.bind(null, n);
2440
2440
  return Object.assign(r, {
2441
2441
  DEFAULTS: n,
2442
- defaults: Ni.bind(null, n),
2443
- merge: _i.bind(null, n),
2444
- parse: ji
2442
+ defaults: Mi.bind(null, n),
2443
+ merge: gi.bind(null, n),
2444
+ parse: Ai
2445
2445
  });
2446
2446
  }
2447
- var Pi = Ni(null, fi), Fi = (/* @__PURE__ */ o(((e, t) => {
2447
+ var Ni = Mi(null, di), Pi = (/* @__PURE__ */ o(((e, t) => {
2448
2448
  var n = function() {};
2449
2449
  n.prototype = Object.create(null);
2450
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 = {
@@ -2489,24 +2489,24 @@ var Pi = Ni(null, fi), Fi = (/* @__PURE__ */ o(((e, t) => {
2489
2489
  parse: s,
2490
2490
  safeParse: c
2491
2491
  }, t.exports.parse = s, t.exports.safeParse = c, t.exports.defaultContentType = o;
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 = () => {
2492
+ })))(), Fi = /^-?\d+$/, Ii = /^-?\d+n+$/, Li = JSON.stringify, Ri = JSON.parse, zi = /^-?\d+n$/, Bi = /([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g, Vi = /([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g, Hi = (e, t, n) => "rawJSON" in JSON ? Li(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 ? Li(e, (e, n) => typeof n == "string" && Ii.test(n) || typeof n == "bigint" ? n.toString() + "n" : typeof t == "function" ? t(e, n) : (Array.isArray(t) && t.includes(e), n), n).replace(Bi, "$1$2$3").replace(Vi, "$1$2$3") : Li(e, t, n), Ui = /* @__PURE__ */ new Map(), Wi = () => {
2493
2493
  let e = JSON.parse.toString();
2494
- if (Wi.has(e)) return Wi.get(e);
2494
+ if (Ui.has(e)) return Ui.get(e);
2495
2495
  try {
2496
2496
  let t = JSON.parse("1", (e, t, n) => !!n?.source && n.source === "1");
2497
- return Wi.set(e, t), t;
2497
+ return Ui.set(e, t), t;
2498
2498
  } catch {
2499
- return Wi.set(e, !1), !1;
2499
+ return Ui.set(e, !1), !1;
2500
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);
2501
+ }, Gi = (e, t, n, r) => typeof t == "string" && zi.test(t) ? BigInt(t.slice(0, -1)) : typeof t == "string" && Ii.test(t) ? t.slice(0, -1) : typeof r == "function" ? r(e, t, n) : t, Ki = (e, t) => JSON.parse(e, (e, n, r) => {
2502
+ let i = typeof n == "number" && (n > 2 ** 53 - 1 || n < -(2 ** 53 - 1)), a = r && Fi.test(r.source);
2503
2503
  return i && a ? BigInt(r.source) : typeof t == "function" ? t(e, n, r) : n;
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) => {
2504
+ }), qi = (2 ** 53 - 1).toString(), Ji = qi.length, Yi = /"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g, Xi = /^"-?\d+n+"$/, Zi = (e, t) => e ? Wi() ? Ki(e, t) : Ri(e.replace(Yi, (e, t, n, r) => {
2505
2505
  let i = e[0] === "\"";
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);
2506
+ if (i && Xi.test(e)) return e.substring(0, e.length - 1) + "n\"";
2507
+ let a = n || r, o = t && (t.length < Ji || t.length === Ji && t <= qi);
2508
2508
  return i || a || o ? e : "\"" + e + "n\"";
2509
- }), (e, n, r) => Ki(e, n, r, t)) : zi(e, t), $i = class extends Error {
2509
+ }), (e, n, r) => Gi(e, n, r, t)) : Ri(e, t), Qi = class extends Error {
2510
2510
  name;
2511
2511
  status;
2512
2512
  request;
@@ -2517,19 +2517,19 @@ var Pi = Ni(null, fi), Fi = (/* @__PURE__ */ o(((e, t) => {
2517
2517
  let r = Object.assign({}, n.request);
2518
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;
2519
2519
  }
2520
- }, ea = "10.0.8", ta = { headers: { "user-agent": `octokit-request.js/${ea} ${ti()}` } };
2521
- function na(e) {
2520
+ }, $i = { headers: { "user-agent": `octokit-request.js/10.0.8 ${ti()}` } };
2521
+ function ea(e) {
2522
2522
  if (typeof e != "object" || !e || Object.prototype.toString.call(e) !== "[object Object]") return !1;
2523
2523
  let t = Object.getPrototypeOf(e);
2524
2524
  if (t === null) return !0;
2525
2525
  let n = Object.prototype.hasOwnProperty.call(t, "constructor") && t.constructor;
2526
2526
  return typeof n == "function" && n instanceof n && Function.prototype.call(n) === Function.prototype.call(e);
2527
2527
  }
2528
- var ra = () => "";
2529
- async function ia(e) {
2528
+ var ta = () => "";
2529
+ async function na(e) {
2530
2530
  let t = e.request?.fetch || globalThis.fetch;
2531
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");
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;
2532
+ let n = e.request?.log || console, r = e.request?.parseSuccessResponseBody !== !1, i = ea(e.body) || Array.isArray(e.body) ? Hi(e.body) : e.body, a = Object.fromEntries(Object.entries(e.headers).map(([e, t]) => [e, String(t)])), o;
2533
2533
  try {
2534
2534
  o = await t(e.url, {
2535
2535
  method: e.method,
@@ -2545,7 +2545,7 @@ async function ia(e) {
2545
2545
  if (t.name === "AbortError") throw t.status = 500, t;
2546
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));
2547
2547
  }
2548
- let r = new $i(n, 500, { request: e });
2548
+ let r = new Qi(n, 500, { request: e });
2549
2549
  throw r.cause = t, r;
2550
2550
  }
2551
2551
  let s = o.status, c = o.url, l = {};
@@ -2563,42 +2563,42 @@ async function ia(e) {
2563
2563
  if (s === 204 || s === 205) return u;
2564
2564
  if (e.method === "HEAD") {
2565
2565
  if (s < 400) return u;
2566
- throw new $i(o.statusText, s, {
2566
+ throw new Qi(o.statusText, s, {
2567
2567
  response: u,
2568
2568
  request: e
2569
2569
  });
2570
2570
  }
2571
- if (s === 304) throw u.data = await aa(o), new $i("Not modified", s, {
2571
+ if (s === 304) throw u.data = await ra(o), new Qi("Not modified", s, {
2572
2572
  response: u,
2573
2573
  request: e
2574
2574
  });
2575
- if (s >= 400) throw u.data = await aa(o), new $i(sa(u.data), s, {
2575
+ if (s >= 400) throw u.data = await ra(o), new Qi(aa(u.data), s, {
2576
2576
  response: u,
2577
2577
  request: e
2578
2578
  });
2579
- return u.data = r ? await aa(o) : o.body, u;
2579
+ return u.data = r ? await ra(o) : o.body, u;
2580
2580
  }
2581
- async function aa(e) {
2581
+ async function ra(e) {
2582
2582
  let t = e.headers.get("content-type");
2583
- if (!t) return e.text().catch(ra);
2584
- let n = (0, Fi.safeParse)(t);
2585
- if (oa(n)) {
2583
+ if (!t) return e.text().catch(ta);
2584
+ let n = (0, Pi.safeParse)(t);
2585
+ if (ia(n)) {
2586
2586
  let t = "";
2587
2587
  try {
2588
- return t = await e.text(), Qi(t);
2588
+ return t = await e.text(), Zi(t);
2589
2589
  } catch {
2590
2590
  return t;
2591
2591
  }
2592
- } else if (n.type.startsWith("text/") || n.parameters.charset?.toLowerCase() === "utf-8") return e.text().catch(ra);
2592
+ } else if (n.type.startsWith("text/") || n.parameters.charset?.toLowerCase() === "utf-8") return e.text().catch(ta);
2593
2593
  else return e.arrayBuffer().catch(
2594
2594
  /* v8 ignore next -- @preserve */
2595
2595
  () => /* @__PURE__ */ new ArrayBuffer(0)
2596
2596
  );
2597
2597
  }
2598
- function oa(e) {
2598
+ function ia(e) {
2599
2599
  return e.type === "application/json" || e.type === "application/scim+json";
2600
2600
  }
2601
- function sa(e) {
2601
+ function aa(e) {
2602
2602
  if (typeof e == "string") return e;
2603
2603
  if (e instanceof ArrayBuffer) return "Unknown error";
2604
2604
  if ("message" in e) {
@@ -2607,33 +2607,33 @@ function sa(e) {
2607
2607
  }
2608
2608
  return `Unknown error: ${JSON.stringify(e)}`;
2609
2609
  }
2610
- function ca(e, t) {
2610
+ function oa(e, t) {
2611
2611
  let n = e.defaults(t);
2612
2612
  return Object.assign(function(e, t) {
2613
2613
  let r = n.merge(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)));
2614
+ if (!r.request || !r.request.hook) return na(n.parse(r));
2615
+ let i = (e, t) => na(n.parse(n.merge(e, t)));
2616
2616
  return Object.assign(i, {
2617
2617
  endpoint: n,
2618
- defaults: ca.bind(null, n)
2618
+ defaults: oa.bind(null, n)
2619
2619
  }), r.request.hook(i, r);
2620
2620
  }, {
2621
2621
  endpoint: n,
2622
- defaults: ca.bind(null, n)
2622
+ defaults: oa.bind(null, n)
2623
2623
  });
2624
2624
  }
2625
- var la = ca(Pi, ta), ua = "0.0.0-development";
2626
- function da(e) {
2625
+ var sa = oa(Ni, $i), ca = "0.0.0-development";
2626
+ function la(e) {
2627
2627
  return "Request failed due to following response errors:\n" + e.errors.map((e) => ` - ${e.message}`).join("\n");
2628
2628
  }
2629
- var fa = class extends Error {
2629
+ var ua = class extends Error {
2630
2630
  constructor(e, t, n) {
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);
2631
+ super(la(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);
2632
2632
  }
2633
2633
  name = "GraphqlResponseError";
2634
2634
  errors;
2635
2635
  data;
2636
- }, pa = [
2636
+ }, da = [
2637
2637
  "method",
2638
2638
  "baseUrl",
2639
2639
  "url",
@@ -2642,72 +2642,72 @@ var fa = class extends Error {
2642
2642
  "query",
2643
2643
  "mediaType",
2644
2644
  "operationName"
2645
- ], ma = [
2645
+ ], fa = [
2646
2646
  "query",
2647
2647
  "method",
2648
2648
  "url"
2649
- ], ha = /\/api\/v3\/?$/;
2650
- function ga(e, t, n) {
2649
+ ], pa = /\/api\/v3\/?$/;
2650
+ function ma(e, t, n) {
2651
2651
  if (n) {
2652
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`));
2653
+ for (let e in n) if (fa.includes(e)) return Promise.reject(/* @__PURE__ */ Error(`[@octokit/graphql] "${e}" cannot be used as variable name`));
2654
2654
  }
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) => {
2655
+ let r = typeof t == "string" ? Object.assign({ query: t }, n) : t, i = Object.keys(r).reduce((e, t) => da.includes(t) ? (e[t] = r[t], e) : (e.variables ||= {}, e.variables[t] = r[t], e), {}), a = r.baseUrl || e.endpoint.DEFAULTS.baseUrl;
2656
+ return pa.test(a) && (i.url = a.replace(pa, "/api/graphql")), e(i).then((e) => {
2657
2657
  if (e.data.errors) {
2658
2658
  let t = {};
2659
2659
  for (let n of Object.keys(e.headers)) t[n] = e.headers[n];
2660
- throw new fa(i, t, e.data);
2660
+ throw new ua(i, t, e.data);
2661
2661
  }
2662
2662
  return e.data.data;
2663
2663
  });
2664
2664
  }
2665
- function _a(e, t) {
2665
+ function ha(e, t) {
2666
2666
  let n = e.defaults(t);
2667
- return Object.assign((e, t) => ga(n, e, t), {
2668
- defaults: _a.bind(null, n),
2667
+ return Object.assign((e, t) => ma(n, e, t), {
2668
+ defaults: ha.bind(null, n),
2669
2669
  endpoint: n.endpoint
2670
2670
  });
2671
2671
  }
2672
- _a(la, {
2673
- headers: { "user-agent": `octokit-graphql.js/${ua} ${ti()}` },
2672
+ ha(sa, {
2673
+ headers: { "user-agent": `octokit-graphql.js/${ca} ${ti()}` },
2674
2674
  method: "POST",
2675
2675
  url: "/graphql"
2676
2676
  });
2677
- function va(e) {
2678
- return _a(e, {
2677
+ function ga(e) {
2678
+ return ha(e, {
2679
2679
  method: "POST",
2680
2680
  url: "/graphql"
2681
2681
  });
2682
2682
  }
2683
2683
  //#endregion
2684
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_");
2685
+ var _a = "(?:[a-zA-Z0-9_-]+)", va = "\\.", ya = RegExp(`^${_a}${va}${_a}${va}${_a}$`), ba = ya.test.bind(ya);
2686
+ async function xa(e) {
2687
+ let t = ba(e), n = e.startsWith("v1.") || e.startsWith("ghs_"), r = e.startsWith("ghu_");
2688
2688
  return {
2689
2689
  type: "token",
2690
2690
  token: e,
2691
2691
  tokenType: t ? "app" : n ? "installation" : r ? "user-to-server" : "oauth"
2692
2692
  };
2693
2693
  }
2694
- function wa(e) {
2694
+ function Sa(e) {
2695
2695
  return e.split(/\./).length === 3 ? `bearer ${e}` : `token ${e}`;
2696
2696
  }
2697
- async function Ta(e, t, n, r) {
2697
+ async function Ca(e, t, n, r) {
2698
2698
  let i = t.endpoint.merge(n, r);
2699
- return i.headers.authorization = wa(e), t(i);
2699
+ return i.headers.authorization = Sa(e), t(i);
2700
2700
  }
2701
- var Ea = function(e) {
2701
+ var wa = function(e) {
2702
2702
  if (!e) throw Error("[@octokit/auth-token] No token passed to createTokenAuth");
2703
2703
  if (typeof e != "string") throw Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
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;
2704
+ return e = e.replace(/^(token|bearer) +/i, ""), Object.assign(xa.bind(null, e), { hook: Ca.bind(null, e) });
2705
+ }, Ta = "7.0.6", Ea = () => {}, Da = console.warn.bind(console), Oa = console.error.bind(console);
2706
+ function ka(e = {}) {
2707
+ return typeof e.debug != "function" && (e.debug = Ea), typeof e.info != "function" && (e.info = Ea), typeof e.warn != "function" && (e.warn = Da), typeof e.error != "function" && (e.error = Oa), e;
2708
2708
  }
2709
- var Ma = `octokit-core.js/${Da} ${ti()}`, Na = class {
2710
- static VERSION = Da;
2709
+ var Aa = `octokit-core.js/${Ta} ${ti()}`, ja = class {
2710
+ static VERSION = Ta;
2711
2711
  static defaults(e) {
2712
2712
  return class extends this {
2713
2713
  constructor(...t) {
@@ -2729,7 +2729,7 @@ var Ma = `octokit-core.js/${Da} ${ti()}`, Na = class {
2729
2729
  }
2730
2730
  constructor(e = {}) {
2731
2731
  let t = new ui.Collection(), n = {
2732
- baseUrl: la.endpoint.DEFAULTS.baseUrl,
2732
+ baseUrl: sa.endpoint.DEFAULTS.baseUrl,
2733
2733
  headers: {},
2734
2734
  request: Object.assign({}, e.request, { hook: t.bind(null, "request") }),
2735
2735
  mediaType: {
@@ -2737,7 +2737,7 @@ var Ma = `octokit-core.js/${Da} ${ti()}`, Na = class {
2737
2737
  format: ""
2738
2738
  }
2739
2739
  };
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) {
2740
+ if (n.headers["user-agent"] = e.userAgent ? `${e.userAgent} ${Aa}` : Aa, e.baseUrl && (n.baseUrl = e.baseUrl), e.previews && (n.mediaType.previews = e.previews), e.timeZone && (n.headers["time-zone"] = e.timeZone), this.request = sa.defaults(n), this.graphql = ga(this.request).defaults(n), this.log = ka(e.log), this.hook = t, e.authStrategy) {
2741
2741
  let { authStrategy: n, ...r } = e, i = n(Object.assign({
2742
2742
  request: this.request,
2743
2743
  log: this.log,
@@ -2747,7 +2747,7 @@ var Ma = `octokit-core.js/${Da} ${ti()}`, Na = class {
2747
2747
  t.wrap("request", i.hook), this.auth = i;
2748
2748
  } else if (!e.auth) this.auth = async () => ({ type: "unauthenticated" });
2749
2749
  else {
2750
- let n = Ea(e.auth);
2750
+ let n = wa(e.auth);
2751
2751
  t.wrap("request", n.hook), this.auth = n;
2752
2752
  }
2753
2753
  let r = this.constructor;
@@ -2758,10 +2758,10 @@ var Ma = `octokit-core.js/${Da} ${ti()}`, Na = class {
2758
2758
  log;
2759
2759
  hook;
2760
2760
  auth;
2761
- }, Pa = "6.0.0";
2761
+ }, Ma = "6.0.0";
2762
2762
  //#endregion
2763
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) {
2764
+ function Na(e) {
2765
2765
  e.hook.wrap("request", (t, n) => {
2766
2766
  e.log.debug("request", n);
2767
2767
  let r = Date.now(), i = e.request.endpoint.parse(n), a = i.url.replace(n.baseUrl, "");
@@ -2774,11 +2774,11 @@ function Fa(e) {
2774
2774
  });
2775
2775
  });
2776
2776
  }
2777
- Fa.VERSION = Pa;
2777
+ Na.VERSION = Ma;
2778
2778
  //#endregion
2779
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) {
2780
+ var Pa = "0.0.0-development";
2781
+ function Fa(e) {
2782
2782
  if (!e.data) return {
2783
2783
  ...e,
2784
2784
  data: []
@@ -2789,12 +2789,12 @@ function La(e) {
2789
2789
  let a = Object.keys(e.data)[0];
2790
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;
2791
2791
  }
2792
- function Ra(e, t, n) {
2792
+ function Ia(e, t, n) {
2793
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;
2794
2794
  return { [Symbol.asyncIterator]: () => ({ async next() {
2795
2795
  if (!s) return { done: !0 };
2796
2796
  try {
2797
- let e = La(await i({
2797
+ let e = Fa(await i({
2798
2798
  method: a,
2799
2799
  url: s,
2800
2800
  headers: o
@@ -2814,27 +2814,27 @@ function Ra(e, t, n) {
2814
2814
  }
2815
2815
  } }) };
2816
2816
  }
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);
2817
+ function La(e, t, n, r) {
2818
+ return typeof n == "function" && (r = n, n = void 0), Ra(e, [], Ia(e, t, n)[Symbol.asyncIterator](), r);
2819
2819
  }
2820
- function Ba(e, t, n, r) {
2820
+ function Ra(e, t, n, r) {
2821
2821
  return n.next().then((i) => {
2822
2822
  if (i.done) return t;
2823
2823
  let a = !1;
2824
2824
  function o() {
2825
2825
  a = !0;
2826
2826
  }
2827
- return t = t.concat(r ? r(i.value, o) : i.value.data), a ? t : Ba(e, t, n, r);
2827
+ return t = t.concat(r ? r(i.value, o) : i.value.data), a ? t : Ra(e, t, n, r);
2828
2828
  });
2829
2829
  }
2830
- Object.assign(za, { iterator: Ra });
2831
- function Va(e) {
2832
- return { paginate: Object.assign(za.bind(null, e), { iterator: Ra.bind(null, e) }) };
2830
+ Object.assign(La, { iterator: Ia });
2831
+ function za(e) {
2832
+ return { paginate: Object.assign(La.bind(null, e), { iterator: Ia.bind(null, e) }) };
2833
2833
  }
2834
- Va.VERSION = Ia;
2834
+ za.VERSION = Pa;
2835
2835
  //#endregion
2836
- //#region ../../node_modules/.pnpm/@octokit+plugin-rest-endpoi_88f1cfdccbcd12f9bd89a662a3d08bce/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
2837
- var Ha = "17.0.0", Ua = {
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 Ba = "17.0.0", Va = {
2838
2838
  actions: {
2839
2839
  addCustomLabelsToSelfHostedRunnerForOrg: ["POST /orgs/{org}/actions/runners/{runner_id}/labels"],
2840
2840
  addCustomLabelsToSelfHostedRunnerForRepo: ["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],
@@ -4125,22 +4125,22 @@ var Ha = "17.0.0", Ua = {
4125
4125
  unfollow: ["DELETE /user/following/{username}"],
4126
4126
  updateAuthenticated: ["PATCH /user"]
4127
4127
  }
4128
- }, Wa = /* @__PURE__ */ new Map();
4129
- for (let [e, t] of Object.entries(Ua)) for (let [n, r] of Object.entries(t)) {
4128
+ }, Ha = /* @__PURE__ */ new Map();
4129
+ for (let [e, t] of Object.entries(Va)) for (let [n, r] of Object.entries(t)) {
4130
4130
  let [t, i, a] = r, [o, s] = t.split(/ /), c = Object.assign({
4131
4131
  method: o,
4132
4132
  url: s
4133
4133
  }, i);
4134
- Wa.has(e) || Wa.set(e, /* @__PURE__ */ new Map()), Wa.get(e).set(n, {
4134
+ Ha.has(e) || Ha.set(e, /* @__PURE__ */ new Map()), Ha.get(e).set(n, {
4135
4135
  scope: e,
4136
4136
  methodName: n,
4137
4137
  endpointDefaults: c,
4138
4138
  decorations: a
4139
4139
  });
4140
4140
  }
4141
- var Ga = {
4141
+ var Ua = {
4142
4142
  has({ scope: e }, t) {
4143
- return Wa.get(e).has(t);
4143
+ return Ha.get(e).has(t);
4144
4144
  },
4145
4145
  getOwnPropertyDescriptor(e, t) {
4146
4146
  return {
@@ -4157,29 +4157,29 @@ var Ga = {
4157
4157
  return delete e.cache[t], !0;
4158
4158
  },
4159
4159
  ownKeys({ scope: e }) {
4160
- return [...Wa.get(e).keys()];
4160
+ return [...Ha.get(e).keys()];
4161
4161
  },
4162
4162
  set(e, t, n) {
4163
4163
  return e.cache[t] = n;
4164
4164
  },
4165
4165
  get({ octokit: e, scope: t, cache: n }, r) {
4166
4166
  if (n[r]) return n[r];
4167
- let i = Wa.get(t).get(r);
4167
+ let i = Ha.get(t).get(r);
4168
4168
  if (!i) return;
4169
4169
  let { endpointDefaults: a, decorations: o } = i;
4170
- return o ? n[r] = qa(e, t, r, a, o) : n[r] = e.request.defaults(a), n[r];
4170
+ return o ? n[r] = Ga(e, t, r, a, o) : n[r] = e.request.defaults(a), n[r];
4171
4171
  }
4172
4172
  };
4173
- function Ka(e) {
4173
+ function Wa(e) {
4174
4174
  let t = {};
4175
- for (let n of Wa.keys()) t[n] = new Proxy({
4175
+ for (let n of Ha.keys()) t[n] = new Proxy({
4176
4176
  octokit: e,
4177
4177
  scope: n,
4178
4178
  cache: {}
4179
- }, Ga);
4179
+ }, Ua);
4180
4180
  return t;
4181
4181
  }
4182
- function qa(e, t, n, r, i) {
4182
+ function Ga(e, t, n, r, i) {
4183
4183
  let a = e.request.defaults(r);
4184
4184
  function o(...r) {
4185
4185
  let o = a.endpoint.merge(...r);
@@ -4201,22 +4201,22 @@ function qa(e, t, n, r, i) {
4201
4201
  return Object.assign(o, a);
4202
4202
  }
4203
4203
  //#endregion
4204
- //#region ../../node_modules/.pnpm/@octokit+plugin-rest-endpoi_88f1cfdccbcd12f9bd89a662a3d08bce/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js
4205
- function Ja(e) {
4206
- return { rest: Ka(e) };
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 Ka(e) {
4206
+ return { rest: Wa(e) };
4207
4207
  }
4208
- Ja.VERSION = Ha;
4209
- function Ya(e) {
4210
- let t = Ka(e);
4208
+ Ka.VERSION = Ba;
4209
+ function qa(e) {
4210
+ let t = Wa(e);
4211
4211
  return {
4212
4212
  ...t,
4213
4213
  rest: t
4214
4214
  };
4215
4215
  }
4216
- Ya.VERSION = Ha;
4216
+ qa.VERSION = Ba;
4217
4217
  //#endregion
4218
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 {
4219
+ var Ja = ja.plugin(Na, qa, za).defaults({ userAgent: "octokit-rest.js/22.0.1" }), Ya = new class extends Fe {
4220
4220
  description = {
4221
4221
  title: "通过Github安装插件",
4222
4222
  description: "输入形如: \"gh:owner/repo\"的内容"
@@ -4229,7 +4229,7 @@ var Xa = Na.plugin(Fa, Ya, Va).defaults({ userAgent: "octokit-rest.js/22.0.1" })
4229
4229
  console.error("fail to get github token", e);
4230
4230
  var t = "";
4231
4231
  }
4232
- let r = new Xa({ auth: we(t) ? void 0 : t }), [i, a] = e.replace(/^gh:/, "").split("/"), { data: o } = await r.rest.repos.getLatestRelease({
4232
+ let r = new Ja({ auth: we(t) ? void 0 : t }), [i, a] = e.replace(/^gh:/, "").split("/"), { data: o } = await r.rest.repos.getLatestRelease({
4233
4233
  owner: i,
4234
4234
  repo: a
4235
4235
  }), s = o.assets[0];
@@ -4250,14 +4250,14 @@ var Xa = Na.plugin(Fa, Ya, Va).defaults({ userAgent: "octokit-rest.js/22.0.1" })
4250
4250
  isMatched(e) {
4251
4251
  return e.startsWith("gh:") && e.split("/").length === 2;
4252
4252
  }
4253
- }(), Qa = "https://raw.githubusercontent.com/delta-comic/awesome-plugins/refs/heads/main/pages", $a = new class extends Fe {
4253
+ }(), Xa = "https://raw.githubusercontent.com/delta-comic/awesome-plugins/refs/heads/main/pages", Za = new class extends Fe {
4254
4254
  description = {
4255
4255
  title: "快速安装插件",
4256
4256
  description: "输入形如: \"ap:jmcomic\"的内容"
4257
4257
  };
4258
4258
  name = "awesome";
4259
4259
  async installer(e) {
4260
- let t = e.replace(/^ap:/, ""), { data: n } = await $.get(`${Qa}/${t}.json`, { responseType: "json" });
4260
+ let t = e.replace(/^ap:/, ""), { data: n } = await $.get(`${Xa}/${t}.json`, { responseType: "json" });
4261
4261
  return n.download;
4262
4262
  }
4263
4263
  async download(e) {
@@ -4269,7 +4269,7 @@ var Xa = Na.plugin(Fa, Ya, Va).defaults({ userAgent: "octokit-rest.js/22.0.1" })
4269
4269
  isMatched(e) {
4270
4270
  return /^ap:[A-Za-z0-9\-\_]+$/.test(e);
4271
4271
  }
4272
- }(), eo = (/* @__PURE__ */ o(((e) => {
4272
+ }(), Qa = (/* @__PURE__ */ o(((e) => {
4273
4273
  function t(e) {
4274
4274
  return e === void 0;
4275
4275
  }
@@ -4283,10 +4283,10 @@ var Xa = Na.plugin(Fa, Ya, Va).defaults({ userAgent: "octokit-rest.js/22.0.1" })
4283
4283
  }, {});
4284
4284
  }
4285
4285
  e.parse = n;
4286
- })))(), to = new class extends Ie {
4286
+ })))(), $a = new class extends Ie {
4287
4287
  name = "userscript";
4288
4288
  async install(e) {
4289
- let t = await e.text(), n = h((0, eo.parse)(t)), r = await Pe(n.name.id);
4289
+ let t = await e.text(), n = h((0, Qa.parse)(t)), r = await Pe(n.name.id);
4290
4290
  return await Kr(r, { recursive: !0 }), await Qr(await Me(r, "us.js"), t, { create: !0 }), n;
4291
4291
  }
4292
4292
  canInstall(e) {
@@ -4301,9 +4301,9 @@ var Xa = Na.plugin(Fa, Ya, Va).defaults({ userAgent: "octokit-rest.js/22.0.1" })
4301
4301
  }), a.async = !0, a.src = i, document.body.appendChild(a);
4302
4302
  }
4303
4303
  async decodeMeta(e) {
4304
- return h((0, eo.parse)(await e.text()));
4304
+ return h((0, Qa.parse)(await e.text()));
4305
4305
  }
4306
- }(), no = (/* @__PURE__ */ o(((t, n) => {
4306
+ }(), eo = (/* @__PURE__ */ o(((t, n) => {
4307
4307
  (function(e) {
4308
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();
4309
4309
  })(function() {
@@ -6234,7 +6234,7 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
6234
6234
  var n, i, o, c;
6235
6235
  if (!e || !e.state || 5 < t || t < 0) return e ? M(e, f) : f;
6236
6236
  if (i = e.state, !e.output || !e.input && e.avail_in !== 0 || i.status === 666 && t !== u) return M(e, e.avail_out === 0 ? -5 : f);
6237
- if (i.strm = e, n = i.last_flush, i.last_flush = t, i.status === E) if (i.wrap === 2) e.adler = 0, L(i, 31), L(i, 139), L(i, 8), i.gzhead ? (L(i, (i.gzhead.text ? 1 : 0) + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)), L(i, 255 & i.gzhead.time), L(i, i.gzhead.time >> 8 & 255), L(i, i.gzhead.time >> 16 & 255), L(i, i.gzhead.time >> 24 & 255), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 255 & i.gzhead.os), i.gzhead.extra && i.gzhead.extra.length && (L(i, 255 & i.gzhead.extra.length), L(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = s(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = 69) : (L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 3), i.status = D);
6237
+ if (i.strm = e, n = i.last_flush, i.last_flush = t, i.status === E) if (i.wrap === 2) e.adler = 0, L(i, 31), L(i, 139), L(i, 8), i.gzhead ? (L(i, +!!i.gzhead.text + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)), L(i, 255 & i.gzhead.time), L(i, i.gzhead.time >> 8 & 255), L(i, i.gzhead.time >> 16 & 255), L(i, i.gzhead.time >> 24 & 255), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 255 & i.gzhead.os), i.gzhead.extra && i.gzhead.extra.length && (L(i, 255 & i.gzhead.extra.length), L(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = s(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = 69) : (L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 3), i.status = D);
6238
6238
  else {
6239
6239
  var p = g + (i.w_bits - 8 << 4) << 8;
6240
6240
  p |= (2 <= i.strategy || i.level < 2 ? 0 : i.level < 6 ? 1 : i.level === 6 ? 2 : 3) << 6, i.strstart !== 0 && (p |= 32), p += 31 - p % 31, i.status = D, R(i, p), i.strstart !== 0 && (R(i, e.adler >>> 16), R(i, 65535 & e.adler)), e.adler = 1;
@@ -7203,7 +7203,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
7203
7203
  o(N);
7204
7204
  var oe = !1;
7205
7205
  function se(e, t, n, i) {
7206
- R(e, (s << 1) + (i ? 1 : 0), 3), function(e, t, n, i) {
7206
+ R(e, (s << 1) + +!!i, 3), function(e, t, n, i) {
7207
7207
  U(e), i && (L(e, n), L(e, ~n)), r.arraySet(e.pending_buf, e.window, t, n, e.pending), e.pending += n;
7208
7208
  }(e, t, n, !0);
7209
7209
  }
@@ -7233,7 +7233,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
7233
7233
  var t;
7234
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--);
7235
7235
  return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
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) {
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, 3), ne(e, T, E)) : (R(e, 4 + +!!r, 3), function(e, t, n, r) {
7237
7237
  var i;
7238
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);
7239
7239
  ae(e, e.dyn_ltree, t - 1), ae(e, e.dyn_dtree, n - 1);
@@ -7331,13 +7331,13 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
7331
7331
  }, {}]
7332
7332
  }, {}, [10])(10);
7333
7333
  });
7334
- })))(), ro = new class extends Ie {
7334
+ })))(), to = new class extends Ie {
7335
7335
  name = "zip";
7336
7336
  async install(e) {
7337
7337
  console.log("[loader zip] begin:", e);
7338
7338
  let t = await Pe("__temp__");
7339
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);
7340
+ let n = await (0, eo.loadAsync)(e);
7341
7341
  console.log(n.files);
7342
7342
  let r = JSON.parse(await n.file("manifest.json")?.async("string") ?? "{}"), i = await Pe(r.name.id);
7343
7343
  try {
@@ -7380,19 +7380,19 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
7380
7380
  }), a.rel = "stylesheet", a.href = decodeURIComponent(Oe(await Me(t, i), "local")), document.head.appendChild(a);
7381
7381
  }
7382
7382
  async decodeMeta(e) {
7383
- let t = await (0, no.loadAsync)(e);
7383
+ let t = await (0, eo.loadAsync)(e);
7384
7384
  return console.log(t.files), JSON.parse(await t.file("manifest.json")?.async("string") ?? "{}");
7385
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) => {
7386
+ }(), no = /* @__PURE__ */ a({
7387
+ loadAllPlugins: () => so,
7388
+ loadPlugin: () => oo,
7389
+ loaders: () => ro
7390
+ }), ro = xe(Object.entries(/* @__PURE__ */ Object.assign({
7391
+ "./init/loader/1_userscript.ts": $a,
7392
+ "./init/loader/2_zip.ts": to
7393
+ })), ([e]) => Number(e.match(/[\d\.]+(?=_)/)?.[0])).map((e) => e[1]), io = {}, ao = (e) => io[e] ??= new oe(), oo = async (e) => {
7394
7394
  console.log(`[plugin bootPlugin] booting name "${e.pluginName}"`);
7395
- let t = so(e.pluginName), n = p();
7395
+ let t = ao(e.pluginName), n = p();
7396
7396
  n.pluginSteps[e.pluginName] = {
7397
7397
  now: {
7398
7398
  status: "wait",
@@ -7404,7 +7404,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
7404
7404
  }]
7405
7405
  };
7406
7406
  try {
7407
- await t.acquire(), await ao.find((t) => t.name == e.loaderName).load(e), await t.acquire();
7407
+ await t.acquire(), await ro.find((t) => t.name == e.loaderName).load(e), await t.acquire();
7408
7408
  } catch (t) {
7409
7409
  throw n.pluginSteps[e.pluginName].now.status = "error", n.pluginSteps[e.pluginName].now.error = t, t;
7410
7410
  }
@@ -7412,11 +7412,11 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
7412
7412
  };
7413
7413
  i.on("definedPlugin", async (e) => {
7414
7414
  console.log("[plugin addPlugin] new plugin defined", e.name, e);
7415
- let t = so(e.name);
7415
+ let t = ao(e.name);
7416
7416
  await Xe(e), console.log("[plugin addPlugin] done", e.name), t.release();
7417
7417
  });
7418
- var lo = async () => {
7419
- let { $initCore: e, coreName: t } = await import("./core-NoooY1bz.js");
7418
+ var so = async () => {
7419
+ let { $initCore: e, coreName: t } = await import("./core-BF7YwnuZ.js");
7420
7420
  await e();
7421
7421
  let n = new Set([t]), r = await _.selectFrom("plugin").where("enable", "is", !0).selectAll().execute(), i = [];
7422
7422
  for (;;) {
@@ -7426,30 +7426,30 @@ var lo = async () => {
7426
7426
  if (we(e)) break;
7427
7427
  }
7428
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)));
7429
+ for (let e of i) await Promise.all(e.map((e) => oo(e)));
7430
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({
7431
+ }, co = /* @__PURE__ */ a({
7432
+ installDepends: () => fo,
7433
+ installFilePlugin: () => ho,
7434
+ installPlugin: () => mo,
7435
+ installers: () => lo,
7436
+ updatePlugin: () => go,
7437
+ usePluginConfig: () => uo
7438
+ }), lo = xe(Object.entries(/* @__PURE__ */ Object.assign({
7439
7439
  "./init/installer/10_normalUrl.ts": Br,
7440
7440
  "./init/installer/20_local.ts": $r,
7441
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) => {
7442
+ "./init/installer/40_github.ts": Ya,
7443
+ "./init/installer/9999_awesome.ts": Za
7444
+ })), ([e]) => Number(e.match(/[\d\.]+(?=_)/)?.[0])).map((e) => e[1]).reverse(), uo = () => v(u, "pluginInstallSourceOverrides", []), fo = (e, t, n) => e.createLoading("依赖安装/检查", async (e) => {
7445
7445
  e.retryable = !0;
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++);
7446
+ let r = 0, i = n ?? new Set((await _.selectFrom("plugin").select("pluginName").execute()).map((e) => e.pluginName)), a = uo();
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 mo(a.value.find((e) => e.id == n && e.enabled)?.install ?? o), r++);
7448
7448
  e.description = `安装完成,共${r}个`;
7449
- }), ho = async (e, t, n, r, i) => {
7449
+ }), po = async (e, t, n, r, i) => {
7450
7450
  let a = await e.createLoading("安装插件", async (e) => {
7451
7451
  e.retryable = !0;
7452
- let i = ao.filter((e) => e.canInstall(t)).at(-1);
7452
+ let i = ro.filter((e) => e.canInstall(t)).at(-1);
7453
7453
  if (!i) throw Error("没有符合的安装器");
7454
7454
  e.description = i.name;
7455
7455
  let a = await i.install(t);
@@ -7465,13 +7465,13 @@ var lo = async () => {
7465
7465
  pluginName: a.name.id
7466
7466
  }] }), a;
7467
7467
  });
7468
- console.log(`安装插件成功: ${a.name.id} ->`, a), await mo(e, a, i);
7469
- }, go = (e, t) => V(`下载插件-${e}`, async (n) => {
7468
+ console.log(`安装插件成功: ${a.name.id} ->`, a), await fo(e, a, i);
7469
+ }, mo = (e, t) => V(`下载插件-${e}`, async (n) => {
7470
7470
  let [r, i] = await n.createLoading("下载", async (t) => {
7471
7471
  t.retryable = !0;
7472
7472
  let n = e;
7473
7473
  for (;;) {
7474
- let e = fo.filter((e) => e.isMatched(n)).at(0);
7474
+ let e = lo.filter((e) => e.isMatched(n)).at(0);
7475
7475
  if (!e) throw Error("没有符合的下载器:" + n);
7476
7476
  t.description = e.name;
7477
7477
  let r = await e.download(n);
@@ -7479,15 +7479,15 @@ var lo = async () => {
7479
7479
  else return [r, e];
7480
7480
  }
7481
7481
  });
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) => {
7482
+ await po(n, r, i.name, e, t);
7483
+ }), ho = (e, t) => V(`安装插件-${e.name}`, async (n) => {
7484
+ await po(n, e, "", "", t);
7485
+ }), go = async (e, t) => V(`更新插件-${e.pluginName}`, async (n) => {
7486
7486
  let r = await n.createLoading("更新", async (t) => {
7487
7487
  t.retryable = !0;
7488
7488
  let n = e.installerName;
7489
7489
  for (;;) {
7490
- let r = fo.find((e) => e.name == n);
7490
+ let r = lo.find((e) => e.name == n);
7491
7491
  if (!r) throw Error("没有符合的下载器");
7492
7492
  t.description = r.name;
7493
7493
  let i = await r.update(e);
@@ -7496,15 +7496,15 @@ var lo = async () => {
7496
7496
  }
7497
7497
  }), i = await n.createLoading("安装插件", async (t) => {
7498
7498
  t.retryable = !0;
7499
- let n = ao.find((t) => t.name == e.loaderName);
7499
+ let n = ro.find((t) => t.name == e.loaderName);
7500
7500
  if (!n) throw Error("没有符合的安装器");
7501
7501
  return await n.install(r);
7502
7502
  }), { upsert: a } = g.useUpsert();
7503
7503
  await a({ archives: [{
7504
7504
  ...e,
7505
7505
  meta: i
7506
- }] }), await mo(n, i, t);
7507
- }), yo = /* @__PURE__ */ T({
7506
+ }] }), await fo(n, i, t);
7507
+ }), _o = /* @__PURE__ */ T({
7508
7508
  __name: "Inject",
7509
7509
  props: {
7510
7510
  key: {},
@@ -7529,7 +7529,7 @@ var lo = async () => {
7529
7529
  _: 2
7530
7530
  }, 1032, ["promise"]))), 256));
7531
7531
  }
7532
- }), bo = (e, t, n) => {
7532
+ }), vo = (e, t, n) => {
7533
7533
  W.envExtends.add({
7534
7534
  key: e,
7535
7535
  component: t,
@@ -7537,6 +7537,6 @@ var lo = async () => {
7537
7537
  });
7538
7538
  };
7539
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 };
7540
+ export { Je as Booter, m as ConfigPointer, W as Global, _o as Inject, co as Install, no as Loader, vo 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 };
7541
7541
 
7542
7542
  //# sourceMappingURL=index.js.map