@opencloud-eu/web-client 7.2.0 → 7.4.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.
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./dist-B2vdwwII.js";
1
+ import { n as e, t } from "./dist-Ciqaw6jy.js";
2
2
  //#region \0rolldown/runtime.js
3
3
  var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, a = Object.getOwnPropertyNames, o = Object.getPrototypeOf, s = Object.prototype.hasOwnProperty, c = (e, t, n) => () => {
4
4
  if (n) throw n[0];
@@ -20,12 +20,12 @@ var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescr
20
20
  enumerable: !(o = i(t, d)) || o.enumerable
21
21
  });
22
22
  return e;
23
- }, f = (e, t, i) => (i = e == null ? {} : n(o(e)), d(t || !e || !e.__esModule ? r(i, "default", {
23
+ }, f = (e, t, i) => (i = e == null ? {} : n(o(e)), d(t || !e || !e.__esModule || !s.call(e, "default") ? r(i, "default", {
24
24
  value: e,
25
25
  enumerable: !0
26
26
  }) : i, e));
27
27
  //#endregion
28
- //#region ../../node_modules/.pnpm/vite-plugin-node-polyfills@0.28.0_rollup@4.60.0_vite@8.1.4_@types+node@25.9.5_jiti@2.7.0_sass@1.101.0_yaml@2.9.0_/node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js
28
+ //#region ../../node_modules/.pnpm/vite-plugin-node-polyfills@0.28.0_vite@8.2.1_@types+node@25.9.5_jiti@2.7.0_yaml@2.9.0_/node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js
29
29
  function p(e) {
30
30
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
31
31
  }
@@ -110,7 +110,7 @@ var b, x, S, C, w, T, E, D, O, k, A = c((() => {
110
110
  }, O = b.exports, k = /*@__PURE__*/ p(O);
111
111
  }));
112
112
  //#endregion
113
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/bind.js
113
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/bind.js
114
114
  A();
115
115
  function j(e, t) {
116
116
  return function() {
@@ -118,7 +118,7 @@ function j(e, t) {
118
118
  };
119
119
  }
120
120
  //#endregion
121
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/utils.js
121
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/utils.js
122
122
  var { toString: M } = Object.prototype, { getPrototypeOf: N } = Object, { iterator: P, toStringTag: ne } = Symbol, F = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), I = (e, t) => {
123
123
  let n = e, r = [];
124
124
  for (; n != null && n !== Object.prototype;) {
@@ -403,7 +403,7 @@ var Qe = (e) => {
403
403
  }), t;
404
404
  };
405
405
  //#endregion
406
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
406
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/sanitizeHeaderValue.js
407
407
  function ot(e) {
408
408
  let t = 0, n = e.length;
409
409
  for (; t < n;) {
@@ -430,7 +430,7 @@ function ft(e) {
430
430
  }), t;
431
431
  }
432
432
  //#endregion
433
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/AxiosHeaders.js
433
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/AxiosHeaders.js
434
434
  var pt = Symbol("internals");
435
435
  function mt(e) {
436
436
  return e && String(e).trim().toLowerCase();
@@ -599,7 +599,7 @@ K.accessor([
599
599
  };
600
600
  }), G.freezeMethods(K);
601
601
  //#endregion
602
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/AxiosError.js
602
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/AxiosError.js
603
603
  var xt = "[REDACTED ****]";
604
604
  function St(e) {
605
605
  if (G.hasOwnProp(e, "toJSON")) return !0;
@@ -750,7 +750,7 @@ function kt(e, n, r) {
750
750
  return _(e), n;
751
751
  }
752
752
  //#endregion
753
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
753
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js
754
754
  function At(e) {
755
755
  let t = {
756
756
  "!": "%21",
@@ -777,7 +777,7 @@ Mt.append = function(e, t) {
777
777
  }, "").join("&");
778
778
  };
779
779
  //#endregion
780
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/buildURL.js
780
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/buildURL.js
781
781
  function Nt(e) {
782
782
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
783
783
  }
@@ -792,7 +792,7 @@ function Pt(e, t, n) {
792
792
  return e;
793
793
  }
794
794
  //#endregion
795
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/InterceptorManager.js
795
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/InterceptorManager.js
796
796
  var Ft = class {
797
797
  constructor() {
798
798
  this.handlers = [];
@@ -853,7 +853,7 @@ var Ft = class {
853
853
  ...Lt
854
854
  };
855
855
  //#endregion
856
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/toURLEncodedForm.js
856
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/toURLEncodedForm.js
857
857
  function Wt(e, t) {
858
858
  return kt(e, new J.classes.URLSearchParams(), {
859
859
  visitor: function(e, t, n, r) {
@@ -863,7 +863,7 @@ function Wt(e, t) {
863
863
  });
864
864
  }
865
865
  //#endregion
866
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/formDataToJSON.js
866
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/formDataToJSON.js
867
867
  var Gt = 100;
868
868
  function Kt(e) {
869
869
  if (e > Gt) throw new q("FormData field is too deeply nested (" + e + " levels). Max depth: " + Gt, q.ERR_FORM_DATA_DEPTH_EXCEEDED);
@@ -895,7 +895,7 @@ function Yt(e) {
895
895
  return null;
896
896
  }
897
897
  //#endregion
898
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/defaults/index.js
898
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/defaults/index.js
899
899
  var Y = (e, t) => e != null && G.hasOwnProp(e, t) ? e[t] : void 0;
900
900
  function Xt(e, t, n) {
901
901
  if (G.isString(e)) try {
@@ -971,7 +971,7 @@ G.forEach([
971
971
  Zt.headers[e] = {};
972
972
  });
973
973
  //#endregion
974
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/transformData.js
974
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/transformData.js
975
975
  function Qt(e, t) {
976
976
  let n = this || Zt, r = t || n, i = K.from(r.headers), a = r.data;
977
977
  return G.forEach(e, function(e) {
@@ -979,31 +979,31 @@ function Qt(e, t) {
979
979
  }), i.normalize(), a;
980
980
  }
981
981
  //#endregion
982
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/cancel/isCancel.js
982
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/cancel/isCancel.js
983
983
  function $t(e) {
984
984
  return !!(e && e.__CANCEL__);
985
985
  }
986
986
  //#endregion
987
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/cancel/CanceledError.js
987
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/cancel/CanceledError.js
988
988
  var en = class extends q {
989
989
  constructor(e, t, n) {
990
990
  super(e ?? "canceled", q.ERR_CANCELED, t, n), this.name = "CanceledError", this.__CANCEL__ = !0;
991
991
  }
992
992
  };
993
993
  //#endregion
994
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/settle.js
994
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/settle.js
995
995
  function tn(e, t, n) {
996
996
  let r = n.config.validateStatus;
997
997
  !n.status || !r || r(n.status) ? e(n) : t(new q("Request failed with status code " + n.status, n.status >= 400 && n.status < 500 ? q.ERR_BAD_REQUEST : q.ERR_BAD_RESPONSE, n.config, n.request, n));
998
998
  }
999
999
  //#endregion
1000
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/parseProtocol.js
1000
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/parseProtocol.js
1001
1001
  function nn(e) {
1002
1002
  let t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
1003
1003
  return t && t[1] || "";
1004
1004
  }
1005
1005
  //#endregion
1006
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/speedometer.js
1006
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/speedometer.js
1007
1007
  function rn(e, t) {
1008
1008
  e ||= 10;
1009
1009
  let n = Array(e), r = Array(e), i = 0, a = 0, o;
@@ -1018,7 +1018,7 @@ function rn(e, t) {
1018
1018
  };
1019
1019
  }
1020
1020
  //#endregion
1021
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/throttle.js
1021
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/throttle.js
1022
1022
  function an(e, t) {
1023
1023
  let n = 0, r = 1e3 / t, i, a, o = (t, r = Date.now()) => {
1024
1024
  n = r, i = null, a &&= (clearTimeout(a), null), e(...t);
@@ -1031,7 +1031,7 @@ function an(e, t) {
1031
1031
  }, () => i && o(i)];
1032
1032
  }
1033
1033
  //#endregion
1034
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/progressEventReducer.js
1034
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/progressEventReducer.js
1035
1035
  var on = (e, t, n = 3) => {
1036
1036
  let r = 0, i = rn(50, 250);
1037
1037
  return an((n) => {
@@ -1086,17 +1086,17 @@ var on = (e, t, n = 3) => {
1086
1086
  remove() {}
1087
1087
  };
1088
1088
  //#endregion
1089
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/isAbsoluteURL.js
1089
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/isAbsoluteURL.js
1090
1090
  function dn(e) {
1091
1091
  return typeof e == "string" && /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1092
1092
  }
1093
1093
  //#endregion
1094
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/combineURLs.js
1094
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/combineURLs.js
1095
1095
  function fn(e, t) {
1096
1096
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1097
1097
  }
1098
1098
  //#endregion
1099
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/buildFullPath.js
1099
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/buildFullPath.js
1100
1100
  var pn = /^https?:(?!\/\/)/i, mn = /[\t\n\r]/g;
1101
1101
  function hn(e) {
1102
1102
  let t = 0;
@@ -1115,7 +1115,7 @@ function vn(e, t, n, r) {
1115
1115
  return e && (i || n === !1) ? (_n(e, r), fn(e, t)) : t;
1116
1116
  }
1117
1117
  //#endregion
1118
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/mergeConfig.js
1118
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/mergeConfig.js
1119
1119
  var yn = (e) => e instanceof K ? { ...e } : e;
1120
1120
  function X(e, t) {
1121
1121
  e ||= {}, t ||= {};
@@ -1143,9 +1143,11 @@ function X(e, t) {
1143
1143
  }
1144
1144
  function s(n) {
1145
1145
  let r = G.hasOwnProp(t, "transitional") ? t.transitional : void 0;
1146
- if (!G.isUndefined(r)) if (G.isPlainObject(r)) {
1147
- if (G.hasOwnProp(r, n)) return r[n];
1148
- } else return;
1146
+ if (!G.isUndefined(r)) {
1147
+ if (G.isPlainObject(r)) {
1148
+ if (G.hasOwnProp(r, n)) return r[n];
1149
+ } else return;
1150
+ }
1149
1151
  let i = G.hasOwnProp(e, "transitional") ? e.transitional : void 0;
1150
1152
  if (G.isPlainObject(i) && G.hasOwnProp(i, n)) return i[n];
1151
1153
  }
@@ -1195,7 +1197,7 @@ function X(e, t) {
1195
1197
  }), G.hasOwnProp(t, "validateStatus") && G.isUndefined(t.validateStatus) && s("validateStatusUndefinedResolves") === !1 && (G.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
1196
1198
  }
1197
1199
  //#endregion
1198
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/resolveConfig.js
1200
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/resolveConfig.js
1199
1201
  var bn = ["content-type", "content-length"];
1200
1202
  function xn(e, t, n) {
1201
1203
  if (n !== "content-only") {
@@ -1365,8 +1367,8 @@ function Mn(e) {
1365
1367
  return i;
1366
1368
  }
1367
1369
  //#endregion
1368
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/env/data.js
1369
- var Nn = "1.18.1", Pn = 64 * 1024, { isFunction: Fn } = G, In = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16))), Ln = (e) => {
1370
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/env/data.js
1371
+ var Nn = "1.18.1", Pn = 65536, { isFunction: Fn } = G, In = (e) => encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi, (e, t) => String.fromCharCode(parseInt(t, 16))), Ln = (e) => {
1370
1372
  if (!G.isString(e)) return e;
1371
1373
  try {
1372
1374
  return decodeURIComponent(e);
@@ -1557,7 +1559,7 @@ var Nn = "1.18.1", Pn = 64 * 1024, { isFunction: Fn } = G, In = (e) => encodeURI
1557
1559
  };
1558
1560
  Hn();
1559
1561
  //#endregion
1560
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/adapters/adapters.js
1562
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/adapters/adapters.js
1561
1563
  var Un = {
1562
1564
  http: null,
1563
1565
  xhr: wn,
@@ -1599,7 +1601,7 @@ var qn = {
1599
1601
  adapters: Un
1600
1602
  };
1601
1603
  //#endregion
1602
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/core/dispatchRequest.js
1604
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/core/dispatchRequest.js
1603
1605
  function Jn(e) {
1604
1606
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted) throw new en(null, e);
1605
1607
  }
@@ -1630,7 +1632,7 @@ function Yn(e) {
1630
1632
  });
1631
1633
  }
1632
1634
  //#endregion
1633
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/validator.js
1635
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/validator.js
1634
1636
  var Xn = {};
1635
1637
  [
1636
1638
  "object",
@@ -1804,7 +1806,7 @@ G.forEach([
1804
1806
  Q.prototype[e] = t(), e !== "query" && (Q.prototype[e + "Form"] = t(!0));
1805
1807
  });
1806
1808
  //#endregion
1807
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/cancel/CancelToken.js
1809
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/cancel/CancelToken.js
1808
1810
  var er = class e {
1809
1811
  constructor(e) {
1810
1812
  if (typeof e != "function") throw TypeError("executor must be a function.");
@@ -1861,19 +1863,19 @@ var er = class e {
1861
1863
  }
1862
1864
  };
1863
1865
  //#endregion
1864
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/spread.js
1866
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/spread.js
1865
1867
  function tr(e) {
1866
1868
  return function(t) {
1867
1869
  return e.apply(null, t);
1868
1870
  };
1869
1871
  }
1870
1872
  //#endregion
1871
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/isAxiosError.js
1873
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/isAxiosError.js
1872
1874
  function nr(e) {
1873
1875
  return G.isObject(e) && e.isAxiosError === !0;
1874
1876
  }
1875
1877
  //#endregion
1876
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/helpers/HttpStatusCode.js
1878
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/helpers/HttpStatusCode.js
1877
1879
  var rr = {
1878
1880
  Continue: 100,
1879
1881
  SwitchingProtocols: 101,
@@ -1949,7 +1951,7 @@ Object.entries(rr).forEach(([e, t]) => {
1949
1951
  rr[t] = e;
1950
1952
  });
1951
1953
  //#endregion
1952
- //#region ../../node_modules/.pnpm/axios@1.18.1/node_modules/axios/lib/axios.js
1954
+ //#region ../../node_modules/.pnpm/axios@1.18.1_debug@4.4.3_supports-color@7.2.0__supports-color@7.2.0/node_modules/axios/lib/axios.js
1953
1955
  function ir(e) {
1954
1956
  let t = new Q(e), n = j(Q.prototype.request, t);
1955
1957
  return G.extend(n, Q.prototype, t, { allOwnKeys: !0 }), G.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(t) {
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/vite-plugin-node-polyfills@0.28.0_rollup@4.60.0_vite@8.1.4_@types+node@25.9.5_jiti@2.7.0_sass@1.101.0_yaml@2.9.0_/node_modules/vite-plugin-node-polyfills/shims/global/dist/index.js
1
+ //#region ../../node_modules/.pnpm/vite-plugin-node-polyfills@0.28.0_vite@8.2.1_@types+node@25.9.5_jiti@2.7.0_yaml@2.9.0_/node_modules/vite-plugin-node-polyfills/shims/global/dist/index.js
2
2
  var e = globalThis || self, t = {}, n = {};
3
3
  n.byteLength = u, n.toByteArray = f, n.fromByteArray = h;
4
4
  for (var r = [], i = [], a = typeof Uint8Array < "u" ? Uint8Array : Array, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, c = o.length; s < c; ++s) r[s] = o[s], i[o.charCodeAt(s)] = s;
@@ -295,8 +295,10 @@ g.read = function(e, t, n, r, i) {
295
295
  if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, Q(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
296
296
  if (i) return -1;
297
297
  n = e.length - 1;
298
- } else if (n < 0) if (i) n = 0;
299
- else return -1;
298
+ } else if (n < 0) {
299
+ if (i) n = 0;
300
+ else return -1;
301
+ }
300
302
  if (typeof t == "string" && (t = d.from(t, r)), d.isBuffer(t)) return t.length === 0 ? -1 : E(e, t, n, r, i);
301
303
  if (typeof t == "number") return t &= 255, typeof o.prototype.indexOf == "function" ? i ? o.prototype.indexOf.call(e, t, n) : o.prototype.lastIndexOf.call(e, t, n) : E(e, [t], n, r, i);
302
304
  throw TypeError("val must be string, number or Buffer");
@@ -483,13 +485,13 @@ g.read = function(e, t, n, r, i) {
483
485
  e >>>= 0, G(e, "offset");
484
486
  let t = this[e], n = this[e + 7];
485
487
  (t === void 0 || n === void 0) && K(e, this.length - 8);
486
- let r = t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, i = this[++e] + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + n * 2 ** 24;
488
+ let r = t + this[++e] * 256 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24, i = this[++e] + this[++e] * 256 + this[++e] * 2 ** 16 + n * 2 ** 24;
487
489
  return BigInt(r) + (BigInt(i) << BigInt(32));
488
490
  }), d.prototype.readBigUInt64BE = $(function(e) {
489
491
  e >>>= 0, G(e, "offset");
490
492
  let t = this[e], n = this[e + 7];
491
493
  (t === void 0 || n === void 0) && K(e, this.length - 8);
492
- let r = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e], i = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n;
494
+ let r = t * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + this[++e], i = this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + n;
493
495
  return (BigInt(r) << BigInt(32)) + BigInt(i);
494
496
  }), d.prototype.readIntLE = function(e, t, n) {
495
497
  e >>>= 0, t >>>= 0, n || N(e, t, this.length);
@@ -519,14 +521,14 @@ g.read = function(e, t, n, r, i) {
519
521
  e >>>= 0, G(e, "offset");
520
522
  let t = this[e], n = this[e + 7];
521
523
  (t === void 0 || n === void 0) && K(e, this.length - 8);
522
- let r = this[e + 4] + this[e + 5] * 2 ** 8 + this[e + 6] * 2 ** 16 + (n << 24);
523
- return (BigInt(r) << BigInt(32)) + BigInt(t + this[++e] * 2 ** 8 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
524
+ let r = this[e + 4] + this[e + 5] * 256 + this[e + 6] * 2 ** 16 + (n << 24);
525
+ return (BigInt(r) << BigInt(32)) + BigInt(t + this[++e] * 256 + this[++e] * 2 ** 16 + this[++e] * 2 ** 24);
524
526
  }), d.prototype.readBigInt64BE = $(function(e) {
525
527
  e >>>= 0, G(e, "offset");
526
528
  let t = this[e], n = this[e + 7];
527
529
  (t === void 0 || n === void 0) && K(e, this.length - 8);
528
- let r = (t << 24) + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + this[++e];
529
- return (BigInt(r) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 2 ** 8 + n);
530
+ let r = (t << 24) + this[++e] * 2 ** 16 + this[++e] * 256 + this[++e];
531
+ return (BigInt(r) << BigInt(32)) + BigInt(this[++e] * 2 ** 24 + this[++e] * 2 ** 16 + this[++e] * 256 + n);
530
532
  }), d.prototype.readFloatLE = function(e, t) {
531
533
  return e >>>= 0, t || N(e, 4, this.length), r.read(this, e, !0, 23, 4);
532
534
  }, d.prototype.readFloatBE = function(e, t) {
@@ -735,7 +737,8 @@ g.read = function(e, t, n, r, i) {
735
737
  if (n > 56319) {
736
738
  (t -= 3) > -1 && a.push(239, 191, 189);
737
739
  continue;
738
- } else if (o + 1 === r) {
740
+ }
741
+ if (o + 1 === r) {
739
742
  (t -= 3) > -1 && a.push(239, 191, 189);
740
743
  continue;
741
744
  }