@opencloud-eu/web-client 5.1.0 → 6.0.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,37 +1,44 @@
1
- import { p as it, a as br } from "./index-CRMq09Yn.js";
2
- import { y as ne, I as ft, J as Et, e as lt, d as vr, l as We, c as wr, K as Q } from "./functions-JSgappH3.js";
1
+ import { p as it, a as br } from "./index-Bjx4f50a.js";
2
+ import { y as se, I as ft, J as Et, e as lt, d as vr, l as qe, c as wr, K as Q } from "./functions-BBKWOL6l.js";
3
3
  import { u as I } from "./toString-CKeGA2IK.js";
4
- import { g as xr, o as Nr, X as Pr } from "./index-Bjk4YP4o.js";
4
+ import { o as xr, X as Nr } from "./index-Dn8UfKx7.js";
5
5
  import { g as St } from "./index-cttW6Cve.js";
6
6
  const Ct = (r) => encodeURIComponent(r).split("%2F").join("/");
7
- class qe extends Error {
7
+ class Ge extends Error {
8
8
  response;
9
9
  statusCode;
10
10
  constructor(t, e, n = null) {
11
11
  super(t), this.response = e, this.statusCode = n;
12
12
  }
13
13
  }
14
- class Er extends qe {
14
+ class Pr extends Ge {
15
15
  errorCode;
16
16
  constructor(t, e, n, s = null) {
17
17
  super(t, n, s), this.errorCode = e;
18
18
  }
19
19
  }
20
- const Ar = `
20
+ const Er = `
21
21
  `;
22
- function Tr(r, t) {
22
+ function Ar(r, t) {
23
23
  let e = "";
24
- return t.format && t.indentBy.length > 0 && (e = Ar), Ge(r, t, "", e);
24
+ return t.format && t.indentBy.length > 0 && (e = Er), ze(r, t, "", e);
25
25
  }
26
- function Ge(r, t, e, n) {
26
+ function ze(r, t, e, n) {
27
27
  let s = "", o = !1;
28
+ if (!Array.isArray(r)) {
29
+ if (r != null) {
30
+ let i = r.toString();
31
+ return i = Yt(i, t), i;
32
+ }
33
+ return "";
34
+ }
28
35
  for (let i = 0; i < r.length; i++) {
29
- const a = r[i], l = Or(a);
36
+ const a = r[i], l = Tr(a);
30
37
  if (l === void 0) continue;
31
38
  let c = "";
32
39
  if (e.length === 0 ? c = l : c = `${e}.${l}`, l === t.textNodeName) {
33
40
  let g = a[l];
34
- Sr(c, t) || (g = t.tagValueProcessor(l, g), g = ze(g, t)), o && (s += n), s += g, o = !1;
41
+ Or(c, t) || (g = t.tagValueProcessor(l, g), g = Yt(g, t)), o && (s += n), s += g, o = !1;
35
42
  continue;
36
43
  } else if (l === t.cdataPropName) {
37
44
  o && (s += n), s += `<![CDATA[${a[l][0][t.textNodeName]}]]>`, o = !1;
@@ -40,44 +47,44 @@ function Ge(r, t, e, n) {
40
47
  s += n + `<!--${a[l][0][t.textNodeName]}-->`, o = !0;
41
48
  continue;
42
49
  } else if (l[0] === "?") {
43
- const g = fe(a[":@"], t), p = l === "?xml" ? "" : n;
50
+ const g = pe(a[":@"], t), p = l === "?xml" ? "" : n;
44
51
  let m = a[l][0][t.textNodeName];
45
52
  m = m.length !== 0 ? " " + m : "", s += p + `<${l}${m}${g}?>`, o = !0;
46
53
  continue;
47
54
  }
48
55
  let u = n;
49
56
  u !== "" && (u += t.indentBy);
50
- const f = fe(a[":@"], t), h = n + `<${l}${f}`, d = Ge(a[l], t, c, u);
57
+ const f = pe(a[":@"], t), h = n + `<${l}${f}`, d = ze(a[l], t, c, u);
51
58
  t.unpairedTags.indexOf(l) !== -1 ? t.suppressUnpairedNode ? s += h + ">" : s += h + "/>" : (!d || d.length === 0) && t.suppressEmptyNode ? s += h + "/>" : d && d.endsWith(">") ? s += h + `>${d}${n}</${l}>` : (s += h + ">", d && n !== "" && (d.includes("/>") || d.includes("</")) ? s += n + t.indentBy + d + n : s += d, s += `</${l}>`), o = !0;
52
59
  }
53
60
  return s;
54
61
  }
55
- function Or(r) {
62
+ function Tr(r) {
56
63
  const t = Object.keys(r);
57
64
  for (let e = 0; e < t.length; e++) {
58
65
  const n = t[e];
59
- if (r.hasOwnProperty(n) && n !== ":@")
66
+ if (Object.prototype.hasOwnProperty.call(r, n) && n !== ":@")
60
67
  return n;
61
68
  }
62
69
  }
63
- function fe(r, t) {
70
+ function pe(r, t) {
64
71
  let e = "";
65
72
  if (r && !t.ignoreAttributes)
66
73
  for (let n in r) {
67
- if (!r.hasOwnProperty(n)) continue;
74
+ if (!Object.prototype.hasOwnProperty.call(r, n)) continue;
68
75
  let s = t.attributeValueProcessor(n, r[n]);
69
- s = ze(s, t), s === !0 && t.suppressBooleanAttributes ? e += ` ${n.substr(t.attributeNamePrefix.length)}` : e += ` ${n.substr(t.attributeNamePrefix.length)}="${s}"`;
76
+ s = Yt(s, t), s === !0 && t.suppressBooleanAttributes ? e += ` ${n.substr(t.attributeNamePrefix.length)}` : e += ` ${n.substr(t.attributeNamePrefix.length)}="${s}"`;
70
77
  }
71
78
  return e;
72
79
  }
73
- function Sr(r, t) {
80
+ function Or(r, t) {
74
81
  r = r.substr(0, r.length - t.textNodeName.length - 1);
75
82
  let e = r.substr(r.lastIndexOf(".") + 1);
76
83
  for (let n in t.stopNodes)
77
84
  if (t.stopNodes[n] === r || t.stopNodes[n] === "*." + e) return !0;
78
85
  return !1;
79
86
  }
80
- function ze(r, t) {
87
+ function Yt(r, t) {
81
88
  if (r && r.length > 0 && t.processEntities)
82
89
  for (let e = 0; e < t.entities.length; e++) {
83
90
  const n = t.entities[e];
@@ -85,6 +92,13 @@ function ze(r, t) {
85
92
  }
86
93
  return r;
87
94
  }
95
+ function Sr(r) {
96
+ return typeof r == "function" ? r : Array.isArray(r) ? (t) => {
97
+ for (const e of r)
98
+ if (typeof e == "string" && t === e || e instanceof RegExp && e.test(t))
99
+ return !0;
100
+ } : () => !1;
101
+ }
88
102
  const Cr = {
89
103
  attributeNamePrefix: "@_",
90
104
  attributesGroupName: !1,
@@ -122,14 +136,14 @@ const Cr = {
122
136
  function J(r) {
123
137
  this.options = Object.assign({}, Cr, r), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
124
138
  return !1;
125
- } : (this.ignoreAttributesFn = xr(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Fr), this.processTextOrObjNode = Ir, this.options.format ? (this.indentate = $r, this.tagEndChar = `>
139
+ } : (this.ignoreAttributesFn = Sr(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Fr), this.processTextOrObjNode = Ir, this.options.format ? (this.indentate = $r, this.tagEndChar = `>
126
140
  `, this.newLine = `
127
141
  `) : (this.indentate = function() {
128
142
  return "";
129
143
  }, this.tagEndChar = ">", this.newLine = "");
130
144
  }
131
145
  J.prototype.build = function(r) {
132
- return this.options.preserveOrder ? Tr(r, this.options) : (Array.isArray(r) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (r = {
146
+ return this.options.preserveOrder ? Ar(r, this.options) : (Array.isArray(r) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (r = {
133
147
  [this.options.arrayNodeName]: r
134
148
  }), this.j2x(r, 0, []).val);
135
149
  };
@@ -231,7 +245,7 @@ const Z = (r, { fileId: t, path: e, name: n }) => {
231
245
  if (e !== void 0)
232
246
  return I(r.webDavPath, e);
233
247
  if (t !== void 0) {
234
- if (ne(r))
248
+ if (se(r))
235
249
  throw new Error("public spaces need a path provided");
236
250
  return I("spaces", t, n || "");
237
251
  }
@@ -288,7 +302,7 @@ const Z = (r, { fileId: t, path: e, name: n }) => {
288
302
  };
289
303
  } catch (c) {
290
304
  const { message: u, response: f } = c;
291
- throw new qe(u, f, f.status);
305
+ throw new Ge(u, f, f.status);
292
306
  }
293
307
  }
294
308
  }), Ur = (r, t) => ({
@@ -316,7 +330,7 @@ const Z = (r, { fileId: t, path: e, name: n }) => {
316
330
  if (!c)
317
331
  throw new Error("username is required for URL signing");
318
332
  const h = r.getFileUrl(I("meta", i.fileId, "v", l));
319
- return await Nr(s, n).signUrl(h, c);
333
+ return await xr(s, n).signUrl(h, c);
320
334
  }
321
335
  if (i.downloadURL)
322
336
  return i.downloadURL;
@@ -335,7 +349,7 @@ const Z = (r, { fileId: t, path: e, name: n }) => {
335
349
  }), Mr = (r, t, e) => ({
336
350
  async listFiles(n, { path: s, fileId: o } = {}, { depth: i = 1, davProperties: a, isTrash: l = !1, ...c } = {}) {
337
351
  let u;
338
- if (ne(n)) {
352
+ if (se(n)) {
339
353
  u = await r.propfind(I(n.webDavPath, s), {
340
354
  depth: i,
341
355
  properties: a || Et.PublicLink,
@@ -378,7 +392,7 @@ const Z = (r, { fileId: t, path: e, name: n }) => {
378
392
  };
379
393
  try {
380
394
  let h = "";
381
- if (l ? h = We(n.id) : h = Z(n, { fileId: o, path: s }), u = await r.propfind(h, {
395
+ if (l ? h = qe(n.id) : h = Z(n, { fileId: o, path: s }), u = await r.propfind(h, {
382
396
  depth: i,
383
397
  properties: a || Et.Default,
384
398
  ...c
@@ -442,7 +456,7 @@ const Z = (r, { fileId: t, path: e, name: n }) => {
442
456
  }
443
457
  }), Wr = (r, t) => ({
444
458
  restoreFile(e, { id: n }, { path: s }, { overwrite: o, ...i } = {}) {
445
- if (ne(e))
459
+ if (se(e))
446
460
  return;
447
461
  const a = I(e.webDavPath, s);
448
462
  return r.move(I(e.webDavTrashPath, n), a, {
@@ -457,7 +471,7 @@ const Z = (r, { fileId: t, path: e, name: n }) => {
457
471
  }
458
472
  }), Gr = (r, t) => ({
459
473
  clearTrashBin(e, { id: n, ...s } = {}) {
460
- let o = We(e.id);
474
+ let o = qe(e.id);
461
475
  return n && (o = I(o, n)), r.delete(o, s);
462
476
  }
463
477
  }), zr = (r, t) => ({
@@ -674,10 +688,10 @@ var Xr = { 2: (r) => {
674
688
  var K;
675
689
  if (nt) (K = String.fromCharCode(X)) === "\\" && (K = "");
676
690
  else if (K = String(X), Ot) {
677
- var ce = q - K.length;
678
- if (ce > 0) {
679
- var he = new Array(ce + 1).join("0");
680
- K = X < 0 ? "-" + he + K.slice(1) : he + K;
691
+ var he = q - K.length;
692
+ if (he > 0) {
693
+ var fe = new Array(he + 1).join("0");
694
+ K = X < 0 ? "-" + fe + K.slice(1) : fe + K;
681
695
  }
682
696
  }
683
697
  F.push(K);
@@ -1047,11 +1061,11 @@ var Xr = { 2: (r) => {
1047
1061
  return !1;
1048
1062
  }
1049
1063
  }, ObjectPrototypeMutationError: i };
1050
- } }, pe = {};
1064
+ } }, ge = {};
1051
1065
  function O(r) {
1052
- var t = pe[r];
1066
+ var t = ge[r];
1053
1067
  if (t !== void 0) return t.exports;
1054
- var e = pe[r] = { id: r, loaded: !1, exports: {} };
1068
+ var e = ge[r] = { id: r, loaded: !1, exports: {} };
1055
1069
  return Xr[r].call(e.exports, e, e.exports, O), e.loaded = !0, e.exports;
1056
1070
  }
1057
1071
  O.n = (r) => {
@@ -1062,9 +1076,9 @@ O.n = (r) => {
1062
1076
  }, O.o = (r, t) => Object.prototype.hasOwnProperty.call(r, t), O.nmd = (r) => (r.paths = [], r.children || (r.children = []), r);
1063
1077
  var Yr = O(737), Zr = O.n(Yr);
1064
1078
  function Mt(r) {
1065
- if (!Yt(r)) throw new Error("Parameter was not an error");
1079
+ if (!Zt(r)) throw new Error("Parameter was not an error");
1066
1080
  }
1067
- function Yt(r) {
1081
+ function Zt(r) {
1068
1082
  return !!r && typeof r == "object" && (t = r, Object.prototype.toString.call(t) === "[object Error]") || r instanceof Error;
1069
1083
  var t;
1070
1084
  }
@@ -1073,7 +1087,7 @@ class V extends Error {
1073
1087
  const n = [...arguments], { options: s, shortMessage: o } = (function(a) {
1074
1088
  let l, c = "";
1075
1089
  if (a.length === 0) l = {};
1076
- else if (Yt(a[0])) l = { cause: a[0] }, c = a.slice(1).join(" ") || "";
1090
+ else if (Zt(a[0])) l = { cause: a[0] }, c = a.slice(1).join(" ") || "";
1077
1091
  else if (a[0] && typeof a[0] == "object") l = Object.assign({}, a[0]), c = a.slice(1).join(" ") || "";
1078
1092
  else {
1079
1093
  if (typeof a[0] != "string") throw new Error("Invalid arguments passed to Layerr");
@@ -1088,7 +1102,7 @@ class V extends Error {
1088
1102
  }
1089
1103
  }
1090
1104
  static cause(t) {
1091
- return Mt(t), t._cause && Yt(t._cause) ? t._cause : null;
1105
+ return Mt(t), t._cause && Zt(t._cause) ? t._cause : null;
1092
1106
  }
1093
1107
  static fullStack(t) {
1094
1108
  Mt(t);
@@ -1107,16 +1121,16 @@ caused by: ${V.fullStack(e)}` : t.stack ?? "";
1107
1121
  }
1108
1122
  }
1109
1123
  var Jr = O(47), $t = O.n(Jr);
1110
- const ge = "__PATH_SEPARATOR_POSIX__", de = "__PATH_SEPARATOR_WINDOWS__";
1124
+ const de = "__PATH_SEPARATOR_POSIX__", me = "__PATH_SEPARATOR_WINDOWS__";
1111
1125
  function S(r) {
1112
1126
  try {
1113
- const t = r.replace(/\//g, ge).replace(/\\\\/g, de);
1114
- return encodeURIComponent(t).split(de).join("\\\\").split(ge).join("/");
1127
+ const t = r.replace(/\//g, de).replace(/\\\\/g, me);
1128
+ return encodeURIComponent(t).split(me).join("\\\\").split(de).join("/");
1115
1129
  } catch (t) {
1116
1130
  throw new V(t, "Failed encoding path");
1117
1131
  }
1118
1132
  }
1119
- function me(r) {
1133
+ function ye(r) {
1120
1134
  return r.startsWith("/") ? r : "/" + r;
1121
1135
  }
1122
1136
  function At(r) {
@@ -1150,7 +1164,7 @@ function C() {
1150
1164
  })(t.reduce(((n, s, o) => ((o === 0 || s !== "/" || s === "/" && n[n.length - 1] !== "/") && n.push(s), n)), []));
1151
1165
  }
1152
1166
  var Qr = O(542), bt = O.n(Qr);
1153
- function ye(r, t) {
1167
+ function be(r, t) {
1154
1168
  const e = r.url.replace("//", ""), n = e.indexOf("/") == -1 ? "/" : e.slice(e.indexOf("/")), s = r.method ? r.method.toUpperCase() : "GET", o = !!/(^|,)\s*auth\s*($|,)/.test(t.qop) && "auth", i = `00000000${t.nc}`.slice(-8), a = (function(h, d, g, p, m, b, y) {
1155
1169
  const v = y || bt()(`${d}:${g}:${p}`);
1156
1170
  return h && h.toLowerCase() === "md5-sess" ? bt()(`${v}:${m}:${b}`) : v;
@@ -1162,14 +1176,14 @@ function He(r) {
1162
1176
  return (r.headers && r.headers.get("www-authenticate") || "").split(/\s/)[0].toLowerCase() === "digest";
1163
1177
  }
1164
1178
  var tn = O(101), Xe = O.n(tn);
1165
- function be(r) {
1179
+ function ve(r) {
1166
1180
  return Xe().decode(r);
1167
1181
  }
1168
- function ve(r, t) {
1182
+ function we(r, t) {
1169
1183
  var e;
1170
1184
  return `Basic ${e = `${r}:${t}`, Xe().encode(e)}`;
1171
1185
  }
1172
- const we = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : typeof window < "u" ? window : globalThis, en = we.fetch.bind(we);
1186
+ const xe = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope ? self : typeof window < "u" ? window : globalThis, en = xe.fetch.bind(xe);
1173
1187
  let W = (function(r) {
1174
1188
  return r.Auto = "auto", r.Digest = "digest", r.None = "none", r.Password = "password", r.Token = "token", r;
1175
1189
  })({}), et = (function(r) {
@@ -1178,7 +1192,7 @@ let W = (function(r) {
1178
1192
  function Ye(r, t, e, n, s) {
1179
1193
  switch (r.authType) {
1180
1194
  case W.Auto:
1181
- t && e && (r.headers.Authorization = ve(t, e));
1195
+ t && e && (r.headers.Authorization = we(t, e));
1182
1196
  break;
1183
1197
  case W.Digest:
1184
1198
  r.digest = /* @__PURE__ */ (function(i, a, l) {
@@ -1188,7 +1202,7 @@ function Ye(r, t, e, n, s) {
1188
1202
  case W.None:
1189
1203
  break;
1190
1204
  case W.Password:
1191
- r.headers.Authorization = ve(t, e);
1205
+ r.headers.Authorization = we(t, e);
1192
1206
  break;
1193
1207
  case W.Token:
1194
1208
  r.headers.Authorization = `${(o = n).token_type} ${o.access_token}`;
@@ -1199,14 +1213,14 @@ function Ye(r, t, e, n, s) {
1199
1213
  var o;
1200
1214
  }
1201
1215
  O(345), O(800);
1202
- const xe = "@@HOTPATCHER", rn = () => {
1216
+ const Ne = "@@HOTPATCHER", rn = () => {
1203
1217
  };
1204
1218
  function _t(r) {
1205
1219
  return { original: r, methods: [r], final: !1 };
1206
1220
  }
1207
1221
  class nn {
1208
1222
  constructor() {
1209
- this._configuration = { registry: {}, getEmptyAction: "null" }, this.__type__ = xe;
1223
+ this._configuration = { registry: {}, getEmptyAction: "null" }, this.__type__ = Ne;
1210
1224
  }
1211
1225
  get configuration() {
1212
1226
  return this._configuration;
@@ -1219,7 +1233,7 @@ class nn {
1219
1233
  }
1220
1234
  control(t) {
1221
1235
  let e = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
1222
- if (!t || t.__type__ !== xe) throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");
1236
+ if (!t || t.__type__ !== Ne) throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");
1223
1237
  return Object.keys(t.configuration.registry).forEach(((n) => {
1224
1238
  this.configuration.registry.hasOwnProperty(n) ? e && (this.configuration.registry[n] = Object.assign({}, t.configuration.registry[n])) : this.configuration.registry[n] = Object.assign({}, t.configuration.registry[n]);
1225
1239
  })), t._configuration = this.configuration, this;
@@ -1300,7 +1314,7 @@ function Ft(r) {
1300
1314
  return Object.getPrototypeOf(t) === e;
1301
1315
  })(r) ? Object.assign({}, r) : Object.setPrototypeOf(Object.assign({}, r), Object.getPrototypeOf(r));
1302
1316
  }
1303
- function Ne() {
1317
+ function Pe() {
1304
1318
  for (var r = arguments.length, t = new Array(r), e = 0; e < r; e++) t[e] = arguments[e];
1305
1319
  let n = null, s = [...t];
1306
1320
  for (; s.length > 0; ) {
@@ -1320,7 +1334,7 @@ function on(r) {
1320
1334
  for (const e of r.keys()) t[e] = r.get(e);
1321
1335
  return t;
1322
1336
  }
1323
- function Zt() {
1337
+ function Jt() {
1324
1338
  for (var r = arguments.length, t = new Array(r), e = 0; e < r; e++) t[e] = arguments[e];
1325
1339
  if (t.length === 0) return {};
1326
1340
  const n = {};
@@ -1337,7 +1351,7 @@ function Je(r) {
1337
1351
  function Ke(r) {
1338
1352
  return r != null && r.constructor != null && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
1339
1353
  }
1340
- function se(r) {
1354
+ function oe(r) {
1341
1355
  return function() {
1342
1356
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
1343
1357
  try {
@@ -1347,12 +1361,12 @@ function se(r) {
1347
1361
  }
1348
1362
  };
1349
1363
  }
1350
- function Jt(r, t, e) {
1364
+ function Kt(r, t, e) {
1351
1365
  return e ? t ? t(r) : r : (r && r.then || (r = Promise.resolve(r)), t ? r.then(t) : r);
1352
1366
  }
1353
- const Qe = se((function(r) {
1367
+ const Qe = oe((function(r) {
1354
1368
  const t = r._digest;
1355
- return delete r._digest, t.hasDigestAuth && (r = Ne(r, { headers: { Authorization: ye(r, t) } })), Jt(jt(r), (function(e) {
1369
+ return delete r._digest, t.hasDigestAuth && (r = Pe(r, { headers: { Authorization: be(r, t) } })), Kt(jt(r), (function(e) {
1356
1370
  let n = !1;
1357
1371
  return s = function(i) {
1358
1372
  return n ? i : e;
@@ -1371,7 +1385,7 @@ const Qe = se((function(r) {
1371
1385
  return c;
1372
1386
  })(), !0;
1373
1387
  })(e, t), (function() {
1374
- if (t.hasDigestAuth) return Jt(jt(r = Ne(r, { headers: { Authorization: ye(r, t) } })), (function(i) {
1388
+ if (t.hasDigestAuth) return Kt(jt(r = Pe(r, { headers: { Authorization: be(r, t) } })), (function(i) {
1375
1389
  return i.status == 401 ? t.hasDigestAuth = !1 : t.nc++, n = !0, i;
1376
1390
  }));
1377
1391
  })();
@@ -1379,23 +1393,23 @@ const Qe = se((function(r) {
1379
1393
  })()) && o.then ? o.then(s) : s(o);
1380
1394
  var s, o;
1381
1395
  }));
1382
- })), ln = se((function(r, t) {
1383
- return Jt(jt(r), (function(e) {
1396
+ })), ln = oe((function(r, t) {
1397
+ return Kt(jt(r), (function(e) {
1384
1398
  return e.ok ? (t.authType = W.Password, e) : e.status == 401 && He(e) ? (t.authType = W.Digest, Ye(t, t.username, t.password, void 0, void 0), r._digest = t.digest, Qe(r)) : e;
1385
1399
  }));
1386
- })), j = se((function(r, t) {
1400
+ })), j = oe((function(r, t) {
1387
1401
  return t.authType === W.Auto ? ln(r, t) : r._digest ? Qe(r) : jt(r);
1388
1402
  }));
1389
1403
  function R(r, t, e) {
1390
1404
  const n = Ft(r);
1391
- return n.headers = Zt(t.headers, n.headers || {}, e.headers || {}), e.data !== void 0 && (n.data = e.data), e.signal && (n.signal = e.signal), t.httpAgent && (n.httpAgent = t.httpAgent), t.httpsAgent && (n.httpsAgent = t.httpsAgent), t.digest && (n._digest = t.digest), typeof t.withCredentials == "boolean" && (n.withCredentials = t.withCredentials), n;
1405
+ return n.headers = Jt(t.headers, n.headers || {}, e.headers || {}), e.data !== void 0 && (n.data = e.data), e.signal && (n.signal = e.signal), t.httpAgent && (n.httpAgent = t.httpAgent), t.httpsAgent && (n.httpsAgent = t.httpsAgent), t.digest && (n._digest = t.digest), typeof t.withCredentials == "boolean" && (n.withCredentials = t.withCredentials), n;
1392
1406
  }
1393
1407
  function jt(r) {
1394
1408
  const t = sn();
1395
1409
  return t.patchInline("request", ((e) => t.patchInline("fetch", en, e.url, (function(n) {
1396
1410
  let s = {};
1397
1411
  const o = { method: n.method };
1398
- if (n.headers && (s = Zt(s, n.headers)), n.data !== void 0) {
1412
+ if (n.headers && (s = Jt(s, n.headers)), n.data !== void 0) {
1399
1413
  const [i, a] = (function(l) {
1400
1414
  if (typeof l == "string") return [l, {}];
1401
1415
  if (Ke(l)) return [l, {}];
@@ -1403,7 +1417,7 @@ function jt(r) {
1403
1417
  if (l && typeof l == "object") return [JSON.stringify(l), { "content-type": "application/json" }];
1404
1418
  throw new Error("Unable to convert request body: Unexpected body type: " + typeof l);
1405
1419
  })(n.data);
1406
- o.body = i, s = Zt(s, a);
1420
+ o.body = i, s = Jt(s, a);
1407
1421
  }
1408
1422
  return n.signal && (o.signal = n.signal), n.withCredentials && (o.credentials = "include"), o.headers = s, o;
1409
1423
  })(e))), r);
@@ -1412,7 +1426,7 @@ var cn = O(285);
1412
1426
  const Rt = (r) => {
1413
1427
  if (typeof r != "string") throw new TypeError("invalid pattern");
1414
1428
  if (r.length > 65536) throw new TypeError("pattern is too long");
1415
- }, hn = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0], "[:alpha:]": ["\\p{L}\\p{Nl}", !0], "[:ascii:]": ["\\x00-\\x7f", !1], "[:blank:]": ["\\p{Zs}\\t", !0], "[:cntrl:]": ["\\p{Cc}", !0], "[:digit:]": ["\\p{Nd}", !0], "[:graph:]": ["\\p{Z}\\p{C}", !0, !0], "[:lower:]": ["\\p{Ll}", !0], "[:print:]": ["\\p{C}", !0], "[:punct:]": ["\\p{P}", !0], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0], "[:upper:]": ["\\p{Lu}", !0], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0], "[:xdigit:]": ["A-Fa-f0-9", !1] }, vt = (r) => r.replace(/[[\]\\-]/g, "\\$&"), Pe = (r) => r.join(""), fn = (r, t) => {
1429
+ }, hn = { "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", !0], "[:alpha:]": ["\\p{L}\\p{Nl}", !0], "[:ascii:]": ["\\x00-\\x7f", !1], "[:blank:]": ["\\p{Zs}\\t", !0], "[:cntrl:]": ["\\p{Cc}", !0], "[:digit:]": ["\\p{Nd}", !0], "[:graph:]": ["\\p{Z}\\p{C}", !0, !0], "[:lower:]": ["\\p{Ll}", !0], "[:print:]": ["\\p{C}", !0], "[:punct:]": ["\\p{P}", !0], "[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", !0], "[:upper:]": ["\\p{Lu}", !0], "[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", !0], "[:xdigit:]": ["A-Fa-f0-9", !1] }, vt = (r) => r.replace(/[[\]\\-]/g, "\\$&"), Ee = (r) => r.join(""), fn = (r, t) => {
1416
1430
  const e = t;
1417
1431
  if (r.charAt(e) !== "[") throw new Error("not in a brace expression");
1418
1432
  const n = [], s = [];
@@ -1441,12 +1455,12 @@ const Rt = (r) => {
1441
1455
  if (s.length === 0 && n.length === 1 && /^\\?.$/.test(n[0]) && !c)
1442
1456
  return [(h = n[0].length === 2 ? n[0].slice(-1) : n[0], h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")), !1, u - e, !1];
1443
1457
  var h;
1444
- const d = "[" + (c ? "^" : "") + Pe(n) + "]", g = "[" + (c ? "" : "^") + Pe(s) + "]";
1458
+ const d = "[" + (c ? "^" : "") + Ee(n) + "]", g = "[" + (c ? "" : "^") + Ee(s) + "]";
1445
1459
  return [n.length && s.length ? "(" + d + "|" + g + ")" : n.length ? d : g, a, u - e, !0];
1446
1460
  }, Nt = function(r) {
1447
1461
  let { windowsPathsNoEscape: t = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1448
1462
  return t ? r.replace(/\[([^\/\\])\]/g, "$1") : r.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
1449
- }, pn = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), Ee = (r) => pn.has(r), Bt = "(?!\\.)", gn = /* @__PURE__ */ new Set(["[", "."]), dn = /* @__PURE__ */ new Set(["..", "."]), mn = new Set("().*{}+?[]^$\\!"), oe = "[^/]", Ae = oe + "*?", Te = oe + "+?";
1463
+ }, pn = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), Ae = (r) => pn.has(r), Bt = "(?!\\.)", gn = /* @__PURE__ */ new Set(["[", "."]), dn = /* @__PURE__ */ new Set(["..", "."]), mn = new Set("().*{}+?[]^$\\!"), ie = "[^/]", Te = ie + "*?", Oe = ie + "+?";
1450
1464
  class M {
1451
1465
  type;
1452
1466
  #r;
@@ -1534,7 +1548,7 @@ class M {
1534
1548
  const p = t.charAt(d++);
1535
1549
  if (o || p === "\\") o = !o, g += p;
1536
1550
  else if (i) d === a + 1 ? p !== "^" && p !== "!" || (l = !0) : p !== "]" || d === a + 2 && l || (i = !1), g += p;
1537
- else if (p !== "[") if (s.noext || !Ee(p) || t.charAt(d) !== "(") g += p;
1551
+ else if (p !== "[") if (s.noext || !Ae(p) || t.charAt(d) !== "(") g += p;
1538
1552
  else {
1539
1553
  e.push(g), g = "";
1540
1554
  const m = new M(p, e);
@@ -1551,7 +1565,7 @@ class M {
1551
1565
  const d = t.charAt(c++);
1552
1566
  if (o || d === "\\") o = !o, h += d;
1553
1567
  else if (i) c === a + 1 ? d !== "^" && d !== "!" || (l = !0) : d !== "]" || c === a + 2 && l || (i = !1), h += d;
1554
- else if (d !== "[") if (Ee(d) && t.charAt(c) === "(") {
1568
+ else if (d !== "[") if (Ae(d) && t.charAt(c) === "(") {
1555
1569
  u.push(h), h = "";
1556
1570
  const g = new M(d, u);
1557
1571
  u.push(g), c = M.#c(t, g, c, s);
@@ -1602,7 +1616,7 @@ class M {
1602
1616
  let i = !n || t || e ? "" : this.#f(!0);
1603
1617
  i === o && (i = ""), i && (o = `(?:${o})(?:${i})*?`);
1604
1618
  let a = "";
1605
- return a = this.type === "!" && this.#h ? (this.isStart() && !e ? Bt : "") + Te : s + o + (this.type === "!" ? "))" + (!this.isStart() || e || t ? "" : Bt) + Ae + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && i ? ")" : this.type === "*" && i ? ")?" : `)${this.type}`), [a, Nt(o), this.#n = !!this.#n, this.#o];
1619
+ return a = this.type === "!" && this.#h ? (this.isStart() && !e ? Bt : "") + Oe : s + o + (this.type === "!" ? "))" + (!this.isStart() || e || t ? "" : Bt) + Te + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && i ? ")" : this.type === "*" && i ? ")?" : `)${this.type}`), [a, Nt(o), this.#n = !!this.#n, this.#o];
1606
1620
  }
1607
1621
  #f(t) {
1608
1622
  return this.#t.map(((e) => {
@@ -1624,7 +1638,7 @@ class M {
1624
1638
  continue;
1625
1639
  }
1626
1640
  }
1627
- l !== "*" ? l !== "?" ? o += l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : (o += oe, e = !0) : (o += n && t === "*" ? Te : Ae, e = !0);
1641
+ l !== "*" ? l !== "?" ? o += l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : (o += ie, e = !0) : (o += n && t === "*" ? Oe : Te, e = !0);
1628
1642
  } else a === t.length - 1 ? o += "\\\\" : s = !0;
1629
1643
  }
1630
1644
  return [o, Nt(t), !!e, i];
@@ -1718,7 +1732,7 @@ D.braceExpand = nr, D.makeRe = function(r) {
1718
1732
  const e = new Lt(t, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {});
1719
1733
  return r = r.filter(((n) => e.match(n))), e.options.nonull && !r.length && r.push(t), r;
1720
1734
  };
1721
- const Oe = /[?*]|[+@!]\(.*?\)|\[|\]/;
1735
+ const Se = /[?*]|[+@!]\(.*?\)|\[|\]/;
1722
1736
  class Lt {
1723
1737
  options;
1724
1738
  set;
@@ -1759,7 +1773,7 @@ class Lt {
1759
1773
  this.globParts = this.preprocess(n), this.debug(this.pattern, this.globParts);
1760
1774
  let s = this.globParts.map(((o, i, a) => {
1761
1775
  if (this.isWindows && this.windowsNoMagicRoot) {
1762
- const l = !(o[0] !== "" || o[1] !== "" || o[2] !== "?" && Oe.test(o[2]) || Oe.test(o[3])), c = /^[a-z]:/i.test(o[0]);
1776
+ const l = !(o[0] !== "" || o[1] !== "" || o[2] !== "?" && Se.test(o[2]) || Se.test(o[3])), c = /^[a-z]:/i.test(o[0]);
1763
1777
  if (l) return [...o.slice(0, 4), ...o.slice(4).map(((u) => this.parse(u)))];
1764
1778
  if (c) return [o[0], ...o.slice(1).map(((u) => this.parse(u)))];
1765
1779
  }
@@ -1988,14 +2002,14 @@ globstar while`, t, h, e, d, g), this.matchOne(t.slice(h), e.slice(d), n)) retur
1988
2002
  return D.defaults(t).Minimatch;
1989
2003
  }
1990
2004
  }
1991
- function ie(r) {
2005
+ function ae(r) {
1992
2006
  const t = new Error(`${arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ""}Invalid response: ${r.status} ${r.statusText}`);
1993
2007
  return t.status = r.status, t.response = r, t;
1994
2008
  }
1995
2009
  function L(r, t) {
1996
2010
  const { status: e } = t;
1997
2011
  if (e === 401 && r.digest) return t;
1998
- if (e >= 400) throw ie(t);
2012
+ if (e >= 400) throw ae(t);
1999
2013
  return t;
2000
2014
  }
2001
2015
  function pt(r, t) {
@@ -2005,7 +2019,7 @@ D.AST = M, D.Minimatch = Lt, D.escape = function(r) {
2005
2019
  let { windowsPathsNoEscape: t = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2006
2020
  return t ? r.replace(/[?*()[\]]/g, "[$&]") : r.replace(/[?*()[\]\\]/g, "\\$&");
2007
2021
  }, D.unescape = Nt;
2008
- const Ln = (Se = function(r, t, e) {
2022
+ const Ln = (Ce = function(r, t, e) {
2009
2023
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2010
2024
  const s = R({ url: C(r.remoteURL, S(t)), method: "COPY", headers: { Destination: C(r.remoteURL, S(e)), Overwrite: n.overwrite === !1 ? "F" : "T", Depth: n.shallow ? "0" : "infinity" } }, r, n);
2011
2025
  return i = function(a) {
@@ -2015,19 +2029,19 @@ const Ln = (Se = function(r, t, e) {
2015
2029
  }, function() {
2016
2030
  for (var r = [], t = 0; t < arguments.length; t++) r[t] = arguments[t];
2017
2031
  try {
2018
- return Promise.resolve(Se.apply(this, r));
2032
+ return Promise.resolve(Ce.apply(this, r));
2019
2033
  } catch (e) {
2020
2034
  return Promise.reject(e);
2021
2035
  }
2022
2036
  });
2023
- var Se;
2037
+ var Ce;
2024
2038
  const Un = { preserveOrder: !1, attributeNamePrefix: "@_", attributesGroupName: !1, textNodeName: "#text", ignoreAttributes: !0, removeNSPrefix: !1, allowBooleanAttributes: !1, parseTagValue: !0, parseAttributeValue: !1, trimValues: !0, cdataPropName: !1, numberParseOptions: { hex: !0, leadingZeros: !0, eNotation: !0 }, tagValueProcessor: function(r, t) {
2025
2039
  return t;
2026
2040
  }, attributeValueProcessor: function(r, t) {
2027
2041
  return t;
2028
2042
  }, stopNodes: [], alwaysCreateTextNode: !1, isArray: () => !1, commentPropName: !1, unpairedTags: [], processEntities: !0, htmlEntities: !1, ignoreDeclaration: !1, ignorePiTags: !1, transformTagName: !1, transformAttributeName: !1, updateTag: function(r, t, e) {
2029
2043
  return r;
2030
- }, captureMetaData: !1 }, Ce = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", Dn = new RegExp("^[" + Ce + "][" + Ce + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
2044
+ }, captureMetaData: !1 }, Ie = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", Dn = new RegExp("^[" + Ie + "][" + Ie + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");
2031
2045
  function sr(r, t) {
2032
2046
  const e = [];
2033
2047
  let n = t.exec(r);
@@ -2043,8 +2057,8 @@ function sr(r, t) {
2043
2057
  const Dt = function(r) {
2044
2058
  return Dn.exec(r) != null;
2045
2059
  };
2046
- let Kt;
2047
- Kt = typeof Symbol != "function" ? "@@xmlMetadata" : /* @__PURE__ */ Symbol("XML Node Metadata");
2060
+ let Qt;
2061
+ Qt = typeof Symbol != "function" ? "@@xmlMetadata" : /* @__PURE__ */ Symbol("XML Node Metadata");
2048
2062
  class at {
2049
2063
  constructor(t) {
2050
2064
  this.tagname = t, this.child = [], this[":@"] = {};
@@ -2053,10 +2067,10 @@ class at {
2053
2067
  t === "__proto__" && (t = "#__proto__"), this.child.push({ [t]: e });
2054
2068
  }
2055
2069
  addChild(t, e) {
2056
- t.tagname === "__proto__" && (t.tagname = "#__proto__"), t[":@"] && Object.keys(t[":@"]).length > 0 ? this.child.push({ [t.tagname]: t.child, ":@": t[":@"] }) : this.child.push({ [t.tagname]: t.child }), e !== void 0 && (this.child[this.child.length - 1][Kt] = { startIndex: e });
2070
+ t.tagname === "__proto__" && (t.tagname = "#__proto__"), t[":@"] && Object.keys(t[":@"]).length > 0 ? this.child.push({ [t.tagname]: t.child, ":@": t[":@"] }) : this.child.push({ [t.tagname]: t.child }), e !== void 0 && (this.child[this.child.length - 1][Qt] = { startIndex: e });
2057
2071
  }
2058
2072
  static getMetaDataSymbol() {
2059
- return Kt;
2073
+ return Qt;
2060
2074
  }
2061
2075
  }
2062
2076
  class kn {
@@ -2194,7 +2208,7 @@ function or(r) {
2194
2208
  }
2195
2209
  class Wn {
2196
2210
  constructor(t) {
2197
- if (this.options = t, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (e, n) => Ie(n, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (e, n) => Ie(n, 16, "&#x") } }, this.addExternalEntities = qn, this.parseXml = Yn, this.parseTextData = Gn, this.resolveNameSpace = zn, this.buildAttributesMap = Xn, this.isItStopNode = Qn, this.replaceEntitiesValue = Jn, this.readStopNodeData = ts, this.saveTextToParentTag = Kn, this.addChild = Zn, this.ignoreAttributesFn = or(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
2211
+ if (this.options = t, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = { apos: { regex: /&(apos|#39|#x27);/g, val: "'" }, gt: { regex: /&(gt|#62|#x3E);/g, val: ">" }, lt: { regex: /&(lt|#60|#x3C);/g, val: "<" }, quot: { regex: /&(quot|#34|#x22);/g, val: '"' } }, this.ampEntity = { regex: /&(amp|#38|#x26);/g, val: "&" }, this.htmlEntities = { space: { regex: /&(nbsp|#160);/g, val: " " }, cent: { regex: /&(cent|#162);/g, val: "¢" }, pound: { regex: /&(pound|#163);/g, val: "£" }, yen: { regex: /&(yen|#165);/g, val: "¥" }, euro: { regex: /&(euro|#8364);/g, val: "€" }, copyright: { regex: /&(copy|#169);/g, val: "©" }, reg: { regex: /&(reg|#174);/g, val: "®" }, inr: { regex: /&(inr|#8377);/g, val: "₹" }, num_dec: { regex: /&#([0-9]{1,7});/g, val: (e, n) => $e(n, 10, "&#") }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (e, n) => $e(n, 16, "&#x") } }, this.addExternalEntities = qn, this.parseXml = Yn, this.parseTextData = Gn, this.resolveNameSpace = zn, this.buildAttributesMap = Xn, this.isItStopNode = Qn, this.replaceEntitiesValue = Jn, this.readStopNodeData = ts, this.saveTextToParentTag = Kn, this.addChild = Zn, this.ignoreAttributesFn = or(this.options.ignoreAttributes), this.options.stopNodes && this.options.stopNodes.length > 0) {
2198
2212
  this.stopNodesExact = /* @__PURE__ */ new Set(), this.stopNodesWildcard = /* @__PURE__ */ new Set();
2199
2213
  for (let e = 0; e < this.options.stopNodes.length; e++) {
2200
2214
  const n = this.options.stopNodes[e];
@@ -2266,7 +2280,7 @@ const Yn = function(r) {
2266
2280
  let u = 0;
2267
2281
  c && this.options.unpairedTags.indexOf(c) !== -1 ? (u = s.lastIndexOf(".", s.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : u = s.lastIndexOf("."), s = s.substring(0, u), e = this.tagsNodeStack.pop(), n = "", i = a;
2268
2282
  } else if (r[i + 1] === "?") {
2269
- let a = Qt(r, i, !1, "?>");
2283
+ let a = te(r, i, !1, "?>");
2270
2284
  if (!a) throw new Error("Pi Tag is not closed.");
2271
2285
  if (n = this.saveTextToParentTag(n, e, s), !(this.options.ignoreDeclaration && a.tagName === "?xml" || this.options.ignorePiTags)) {
2272
2286
  const l = new at(a.tagName);
@@ -2289,7 +2303,7 @@ const Yn = function(r) {
2289
2303
  let c = this.parseTextData(l, e.tagname, s, !0, !1, !0, !0);
2290
2304
  c == null && (c = ""), this.options.cdataPropName ? e.add(this.options.cdataPropName, [{ [this.options.textNodeName]: l }]) : e.add(this.options.textNodeName, c), i = a + 2;
2291
2305
  } else {
2292
- let a = Qt(r, i, this.options.removeNSPrefix), l = a.tagName;
2306
+ let a = te(r, i, this.options.removeNSPrefix), l = a.tagName;
2293
2307
  const c = a.rawTagName;
2294
2308
  let u = a.tagExp, f = a.attrExpPresent, h = a.closeIndex;
2295
2309
  if (this.options.transformTagName) {
@@ -2363,7 +2377,7 @@ function ut(r, t, e, n) {
2363
2377
  if (s === -1) throw new Error(n);
2364
2378
  return s + t.length - 1;
2365
2379
  }
2366
- function Qt(r, t, e) {
2380
+ function te(r, t, e) {
2367
2381
  const n = (function(u, f) {
2368
2382
  let h, d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ">", g = "";
2369
2383
  for (let p = f; p < u.length; p++) {
@@ -2400,7 +2414,7 @@ function ts(r, t, e) {
2400
2414
  else if (r.substr(e + 1, 3) === "!--") e = ut(r, "-->", e + 3, "StopNode is not closed.");
2401
2415
  else if (r.substr(e + 1, 2) === "![") e = ut(r, "]]>", e, "StopNode is not closed.") - 2;
2402
2416
  else {
2403
- const o = Qt(r, e, ">");
2417
+ const o = te(r, e, ">");
2404
2418
  o && ((o && o.tagName) === t && o.tagExp[o.tagExp.length - 1] !== "/" && s++, e = o.closeIndex);
2405
2419
  }
2406
2420
  }
@@ -2452,7 +2466,7 @@ function ir(r, t, e) {
2452
2466
  }
2453
2467
  return r !== void 0 ? r : "";
2454
2468
  }
2455
- function Ie(r, t, e) {
2469
+ function $e(r, t, e) {
2456
2470
  const n = Number.parseInt(r, t);
2457
2471
  return n >= 0 && n <= 1114111 ? String.fromCodePoint(n) : e + r + ";";
2458
2472
  }
@@ -2499,11 +2513,11 @@ function ss(r, t) {
2499
2513
  return n === 0 || !(n !== 1 || !r[e] && typeof r[e] != "boolean" && r[e] !== 0);
2500
2514
  }
2501
2515
  const os = { allowBooleanAttributes: !1, unpairedTags: [] };
2502
- function $e(r) {
2516
+ function Fe(r) {
2503
2517
  return r === " " || r === " " || r === `
2504
2518
  ` || r === "\r";
2505
2519
  }
2506
- function Fe(r, t) {
2520
+ function je(r, t) {
2507
2521
  const e = t;
2508
2522
  for (; t < r.length; t++) if (!(r[t] != "?" && r[t] != " ")) {
2509
2523
  const n = r.substr(e, t - e);
@@ -2515,7 +2529,7 @@ function Fe(r, t) {
2515
2529
  }
2516
2530
  return t;
2517
2531
  }
2518
- function je(r, t) {
2532
+ function Re(r, t) {
2519
2533
  if (r.length > t + 5 && r[t + 1] === "-" && r[t + 2] === "-") {
2520
2534
  for (t += 3; t < r.length; t++) if (r[t] === "-" && r[t + 1] === "-" && r[t + 2] === ">") {
2521
2535
  t += 2;
@@ -2546,7 +2560,7 @@ function is(r, t) {
2546
2560
  return n === "" && { value: e, index: t, tagClosed: s };
2547
2561
  }
2548
2562
  const as = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
2549
- function Re(r, t) {
2563
+ function Le(r, t) {
2550
2564
  const e = sr(r, as), n = {};
2551
2565
  for (let s = 0; s < e.length; s++) {
2552
2566
  if (e[s][1].length === 0) return $("InvalidAttr", "Attribute '" + e[s][2] + "' has no space in starting.", xt(e[s]));
@@ -2606,16 +2620,16 @@ class ur {
2606
2620
  let c = !1, u = !1;
2607
2621
  i[0] === "\uFEFF" && (i = i.substr(1));
2608
2622
  for (let f = 0; f < i.length; f++) if (i[f] === "<" && i[f + 1] === "?") {
2609
- if (f += 2, f = Fe(i, f), f.err) return f;
2623
+ if (f += 2, f = je(i, f), f.err) return f;
2610
2624
  } else {
2611
2625
  if (i[f] !== "<") {
2612
- if ($e(i[f])) continue;
2626
+ if (Fe(i[f])) continue;
2613
2627
  return $("InvalidChar", "char '" + i[f] + "' is not expected.", k(i, f));
2614
2628
  }
2615
2629
  {
2616
2630
  let h = f;
2617
2631
  if (f++, i[f] === "!") {
2618
- f = je(i, f);
2632
+ f = Re(i, f);
2619
2633
  continue;
2620
2634
  }
2621
2635
  {
@@ -2634,7 +2648,7 @@ class ur {
2634
2648
  if (f = p.index, m[m.length - 1] === "/") {
2635
2649
  const b = f - m.length;
2636
2650
  m = m.substring(0, m.length - 1);
2637
- const y = Re(m, a);
2651
+ const y = Le(m, a);
2638
2652
  if (y !== !0) return $(y.err.code, y.err.msg, k(i, b + y.err.line));
2639
2653
  c = !0;
2640
2654
  } else if (d) {
@@ -2650,23 +2664,23 @@ class ur {
2650
2664
  l.length == 0 && (u = !0);
2651
2665
  }
2652
2666
  } else {
2653
- const b = Re(m, a);
2667
+ const b = Le(m, a);
2654
2668
  if (b !== !0) return $(b.err.code, b.err.msg, k(i, f - m.length + b.err.line));
2655
2669
  if (u === !0) return $("InvalidXml", "Multiple possible root nodes found.", k(i, f));
2656
2670
  a.unpairedTags.indexOf(g) !== -1 || l.push({ tagName: g, tagStartPos: h }), c = !0;
2657
2671
  }
2658
2672
  for (f++; f < i.length; f++) if (i[f] === "<") {
2659
2673
  if (i[f + 1] === "!") {
2660
- f++, f = je(i, f);
2674
+ f++, f = Re(i, f);
2661
2675
  continue;
2662
2676
  }
2663
2677
  if (i[f + 1] !== "?") break;
2664
- if (f = Fe(i, ++f), f.err) return f;
2678
+ if (f = je(i, ++f), f.err) return f;
2665
2679
  } else if (i[f] === "&") {
2666
2680
  const b = us(i, f);
2667
2681
  if (b == -1) return $("InvalidChar", "char '&' is not expected.", k(i, f));
2668
2682
  f = b;
2669
- } else if (u === !0 && !$e(i[f])) return $("InvalidXml", "Extra text at the end", k(i, f));
2683
+ } else if (u === !0 && !Fe(i[f])) return $("InvalidXml", "Extra text at the end", k(i, f));
2670
2684
  i[f] === "<" && f--;
2671
2685
  }
2672
2686
  }
@@ -2765,7 +2779,7 @@ function fs(r) {
2765
2779
  function qt(r, t, e) {
2766
2780
  return e ? t ? t(r) : r : (r && r.then || (r = Promise.resolve(r)), t ? r.then(t) : r);
2767
2781
  }
2768
- const ae = /* @__PURE__ */ (function(r) {
2782
+ const ue = /* @__PURE__ */ (function(r) {
2769
2783
  return function() {
2770
2784
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
2771
2785
  try {
@@ -2803,11 +2817,11 @@ const ps = hr((function(r, t) {
2803
2817
  n.sort(((o, i) => o.length > i.length ? 1 : i.length > o.length ? -1 : 0));
2804
2818
  let s = !1;
2805
2819
  return (function(o, i, a) {
2806
- if (typeof o[Ue] == "function") {
2820
+ if (typeof o[De] == "function") {
2807
2821
  let p = function(m) {
2808
2822
  try {
2809
2823
  for (; !(l = f.next()).done; ) if ((m = i(l.value)) && m.then) {
2810
- if (!De(m)) return void m.then(p, u || (u = _.bind(null, c = new ht(), 2)));
2824
+ if (!ke(m)) return void m.then(p, u || (u = _.bind(null, c = new ht(), 2)));
2811
2825
  m = m.v;
2812
2826
  }
2813
2827
  c ? _(c, 1, m) : c = m;
@@ -2815,7 +2829,7 @@ const ps = hr((function(r, t) {
2815
2829
  _(c || (c = new ht()), 2, b);
2816
2830
  }
2817
2831
  };
2818
- var l, c, u, f = o[Ue]();
2832
+ var l, c, u, f = o[De]();
2819
2833
  if (p(), f.return) {
2820
2834
  var h = function(m) {
2821
2835
  try {
@@ -2838,7 +2852,7 @@ const ps = hr((function(r, t) {
2838
2852
  return (function x(P) {
2839
2853
  try {
2840
2854
  for (; ++w < p.length && (!b || !b()); ) if ((P = m(w)) && P.then) {
2841
- if (!De(P)) return void P.then(x, v || (v = _.bind(null, y = new ht(), 2)));
2855
+ if (!ke(P)) return void P.then(x, v || (v = _.bind(null, y = new ht(), 2)));
2842
2856
  P = P.v;
2843
2857
  }
2844
2858
  y ? _(y, 1, P) : y = P;
@@ -2853,7 +2867,7 @@ const ps = hr((function(r, t) {
2853
2867
  return i = function() {
2854
2868
  return (function(l, c) {
2855
2869
  try {
2856
- var u = cr(ae(r, o), (function(f) {
2870
+ var u = cr(ue(r, o), (function(f) {
2857
2871
  if (f.type !== "directory") throw new Error(`Path includes a file: ${t}`);
2858
2872
  }));
2859
2873
  } catch (f) {
@@ -2863,12 +2877,12 @@ const ps = hr((function(r, t) {
2863
2877
  })(0, (function(l) {
2864
2878
  const c = l;
2865
2879
  return (function() {
2866
- if (c.status === 404) return s = !0, Le(te(r, o, { ...e, recursive: !1 }));
2880
+ if (c.status === 404) return s = !0, Ue(ee(r, o, { ...e, recursive: !1 }));
2867
2881
  throw l;
2868
2882
  })();
2869
2883
  }));
2870
2884
  }, (a = (function() {
2871
- if (s) return Le(te(r, o, { ...e, recursive: !1 }));
2885
+ if (s) return Ue(ee(r, o, { ...e, recursive: !1 }));
2872
2886
  })()) && a.then ? a.then(i) : i();
2873
2887
  var i, a;
2874
2888
  }), (function() {
@@ -2887,10 +2901,10 @@ function hr(r) {
2887
2901
  }
2888
2902
  function gs() {
2889
2903
  }
2890
- function Le(r, t) {
2904
+ function Ue(r, t) {
2891
2905
  return r && r.then ? r.then(gs) : Promise.resolve();
2892
2906
  }
2893
- const Ue = typeof Symbol < "u" ? Symbol.iterator || (Symbol.iterator = /* @__PURE__ */ Symbol("Symbol.iterator")) : "@@iterator";
2907
+ const De = typeof Symbol < "u" ? Symbol.iterator || (Symbol.iterator = /* @__PURE__ */ Symbol("Symbol.iterator")) : "@@iterator";
2894
2908
  function _(r, t, e) {
2895
2909
  if (!r.s) {
2896
2910
  if (e instanceof ht) {
@@ -2930,10 +2944,10 @@ const ht = (function() {
2930
2944
  }, n;
2931
2945
  }, r;
2932
2946
  })();
2933
- function De(r) {
2947
+ function ke(r) {
2934
2948
  return r instanceof ht && 1 & r.s;
2935
2949
  }
2936
- const te = hr((function(r, t) {
2950
+ const ee = hr((function(r, t) {
2937
2951
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2938
2952
  if (e.recursive === !0) return ps(r, t, e);
2939
2953
  const n = R({ url: C(r.remoteURL, (s = S(t), s.endsWith("/") ? s : s + "/")), method: "MKCOL" }, r, e);
@@ -2942,7 +2956,7 @@ const te = hr((function(r, t) {
2942
2956
  L(r, o);
2943
2957
  }));
2944
2958
  }));
2945
- var ds = O(388), ke = O.n(ds);
2959
+ var ds = O(388), Me = O.n(ds);
2946
2960
  const ms = /* @__PURE__ */ (function(r) {
2947
2961
  return function() {
2948
2962
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
@@ -3016,7 +3030,7 @@ const ms = /* @__PURE__ */ (function(r) {
3016
3030
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3017
3031
  return (function(n, s) {
3018
3032
  try {
3019
- var o = (i = ae(r, t, e), a = function() {
3033
+ var o = (i = ue(r, t, e), a = function() {
3020
3034
  return !0;
3021
3035
  }, l ? a ? a(i) : i : (i && i.then || (i = Promise.resolve(i)), a ? i.then(a) : i));
3022
3036
  } catch (c) {
@@ -3048,7 +3062,7 @@ const xs = /* @__PURE__ */ (function(r) {
3048
3062
  return L(r, s), Gt(s.text(), (function(o) {
3049
3063
  if (!o) throw new Error("Failed parsing directory contents: Empty response");
3050
3064
  return Gt(Tt(o, r.parsing), (function(i) {
3051
- const a = me(t);
3065
+ const a = ye(t);
3052
3066
  let l = (function(c, u, f) {
3053
3067
  let h = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], d = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
3054
3068
  const g = $t().join(u, "/"), { multistatus: { response: p } } = c, m = p.map(((b) => {
@@ -3062,7 +3076,7 @@ const xs = /* @__PURE__ */ (function(r) {
3062
3076
  return kt(v, g === "/" ? decodeURIComponent(At(y)) : At($t().relative(decodeURIComponent(g), decodeURIComponent(y))), h);
3063
3077
  }));
3064
3078
  return d ? m : m.filter(((b) => b.basename && (b.type === "file" || b.filename !== f.replace(/\/$/, ""))));
3065
- })(i, me(r.remoteBasePath || r.remotePath), a, e.details, e.includeSelf);
3079
+ })(i, ye(r.remoteBasePath || r.remotePath), a, e.details, e.includeSelf);
3066
3080
  return e.glob && (l = (function(c, u) {
3067
3081
  return c.filter(((f) => D(f.filename, u, { matchBase: !0 })));
3068
3082
  })(l, e.glob)), pt(s, l, e.details);
@@ -3070,7 +3084,7 @@ const xs = /* @__PURE__ */ (function(r) {
3070
3084
  }));
3071
3085
  }));
3072
3086
  }));
3073
- function ue(r) {
3087
+ function le(r) {
3074
3088
  return function() {
3075
3089
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
3076
3090
  try {
@@ -3080,7 +3094,7 @@ function ue(r) {
3080
3094
  }
3081
3095
  };
3082
3096
  }
3083
- const Ns = ue((function(r, t) {
3097
+ const Ns = le((function(r, t) {
3084
3098
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3085
3099
  const n = R({ url: C(r.remoteURL, S(t)), method: "GET", headers: { Accept: "text/plain" }, transformResponse: [As] }, r, e);
3086
3100
  return Ut(j(n, r), (function(s) {
@@ -3092,7 +3106,7 @@ const Ns = ue((function(r, t) {
3092
3106
  function Ut(r, t, e) {
3093
3107
  return e ? t ? t(r) : r : (r && r.then || (r = Promise.resolve(r)), t ? r.then(t) : r);
3094
3108
  }
3095
- const Ps = ue((function(r, t) {
3109
+ const Ps = le((function(r, t) {
3096
3110
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3097
3111
  const n = R({ url: C(r.remoteURL, S(t)), method: "GET" }, r, e);
3098
3112
  return Ut(j(n, r), (function(s) {
@@ -3108,7 +3122,7 @@ const Ps = ue((function(r, t) {
3108
3122
  return pt(s, o, e.details);
3109
3123
  }));
3110
3124
  }));
3111
- })), Es = ue((function(r, t) {
3125
+ })), Es = le((function(r, t) {
3112
3126
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3113
3127
  const { format: n = "binary" } = e;
3114
3128
  if (n !== "binary" && n !== "text") throw new V({ info: { code: et.InvalidOutputFormat } }, `Invalid output format: ${n}`);
@@ -3139,14 +3153,14 @@ function fr(r, t, e, n) {
3139
3153
  continue;
3140
3154
  }
3141
3155
  if (l[0] === "?") {
3142
- const d = Me(a[":@"], t), g = l === "?xml" ? "" : n;
3156
+ const d = _e(a[":@"], t), g = l === "?xml" ? "" : n;
3143
3157
  let p = a[l][0][t.textNodeName];
3144
3158
  p = p.length !== 0 ? " " + p : "", s += g + `<${l}${p}${d}?>`, o = !0;
3145
3159
  continue;
3146
3160
  }
3147
3161
  let u = n;
3148
3162
  u !== "" && (u += t.indentBy);
3149
- const f = n + `<${l}${Me(a[":@"], t)}`, h = fr(a[l], t, c, u);
3163
+ const f = n + `<${l}${_e(a[":@"], t)}`, h = fr(a[l], t, c, u);
3150
3164
  t.unpairedTags.indexOf(l) !== -1 ? t.suppressUnpairedNode ? s += f + ">" : s += f + "/>" : h && h.length !== 0 || !t.suppressEmptyNode ? h && h.endsWith(">") ? s += f + `>${h}${n}</${l}>` : (s += f + ">", h && n !== "" && (h.includes("/>") || h.includes("</")) ? s += n + t.indentBy + h + n : s += h, s += `</${l}>`) : s += f + "/>", o = !0;
3151
3165
  }
3152
3166
  return s;
@@ -3158,7 +3172,7 @@ function Os(r) {
3158
3172
  if (r.hasOwnProperty(n) && n !== ":@") return n;
3159
3173
  }
3160
3174
  }
3161
- function Me(r, t) {
3175
+ function _e(r, t) {
3162
3176
  let e = "";
3163
3177
  if (r && !t.ignoreAttributes) for (let n in r) {
3164
3178
  if (!r.hasOwnProperty(n)) continue;
@@ -3211,7 +3225,7 @@ function gr(r, t) {
3211
3225
  for (const n in e) e.hasOwnProperty(n) && (e[n] && typeof e[n] == "object" && n.indexOf(":") === -1 ? (e[`${t}:${n}`] = gr(e[n], t), delete e[n]) : /^@_/.test(n) === !1 && (e[`${t}:${n}`] = e[n], delete e[n]));
3212
3226
  return e;
3213
3227
  }
3214
- function ee(r, t, e) {
3228
+ function re(r, t, e) {
3215
3229
  return e ? t ? t(r) : r : (r && r.then || (r = Promise.resolve(r)), t ? r.then(t) : r);
3216
3230
  }
3217
3231
  function dr(r) {
@@ -3289,19 +3303,19 @@ tt.prototype.build = function(r) {
3289
3303
  const Rs = dr((function(r, t, e) {
3290
3304
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3291
3305
  const s = R({ url: C(r.remoteURL, S(t)), method: "UNLOCK", headers: { "Lock-Token": e } }, r, n);
3292
- return ee(j(s, r), (function(o) {
3293
- if (L(r, o), o.status !== 204 && o.status !== 200) throw ie(o);
3306
+ return re(j(s, r), (function(o) {
3307
+ if (L(r, o), o.status !== 204 && o.status !== 200) throw ae(o);
3294
3308
  }));
3295
3309
  })), Ls = dr((function(r, t) {
3296
3310
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3297
3311
  const { refreshToken: n, timeout: s = Us } = e, o = { Accept: "text/plain,application/xml", Timeout: s };
3298
3312
  n && (o.If = n);
3299
3313
  const i = R({ url: C(r.remoteURL, S(t)), method: "LOCK", headers: o, data: js(r.contactHref) }, r, e);
3300
- return ee(j(i, r), (function(a) {
3301
- return L(r, a), ee(a.text(), (function(l) {
3314
+ return re(j(i, r), (function(a) {
3315
+ return L(r, a), re(a.text(), (function(l) {
3302
3316
  const c = (h = l, new ur({ removeNSPrefix: !0, parseAttributeValue: !0, parseTagValue: !0 }).parse(h)), u = Y().get(c, "prop.lockdiscovery.activelock.locktoken.href"), f = Y().get(c, "prop.lockdiscovery.activelock.timeout");
3303
3317
  var h;
3304
- if (!u) throw ie(a, "No lock token received: ");
3318
+ if (!u) throw ae(a, "No lock token received: ");
3305
3319
  return { token: u, serverTimeout: f };
3306
3320
  }));
3307
3321
  }));
@@ -3441,7 +3455,7 @@ const Bs = /* @__PURE__ */ (function(r) {
3441
3455
  function Pt(r, t, e) {
3442
3456
  return e ? t ? t(r) : r : (r && r.then || (r = Promise.resolve(r)), t ? r.then(t) : r);
3443
3457
  }
3444
- const Ws = le((function(r, t, e, n, s) {
3458
+ const Ws = ce((function(r, t, e, n, s) {
3445
3459
  let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3446
3460
  if (e > n || e < 0) throw new V({ info: { code: et.InvalidUpdateRange } }, `Invalid update range ${e} for partial update`);
3447
3461
  const i = { "Content-Type": "application/octet-stream", "Content-Length": "" + (n - e + 1), "Content-Range": `bytes ${e}-${n}/*` }, a = R({ url: C(r.remoteURL, S(t)), method: "PUT", headers: i, data: s }, r, o);
@@ -3449,11 +3463,11 @@ const Ws = le((function(r, t, e, n, s) {
3449
3463
  L(r, l);
3450
3464
  }));
3451
3465
  }));
3452
- function _e(r, t) {
3466
+ function Ve(r, t) {
3453
3467
  var e = r();
3454
3468
  return e && e.then ? e.then(t) : t(e);
3455
3469
  }
3456
- const qs = le((function(r, t, e, n, s) {
3470
+ const qs = ce((function(r, t, e, n, s) {
3457
3471
  let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3458
3472
  if (e > n || e < 0) throw new V({ info: { code: et.InvalidUpdateRange } }, `Invalid update range ${e} for partial update`);
3459
3473
  const i = { "Content-Type": "application/x-sabredav-partialupdate", "Content-Length": "" + (n - e + 1), "X-Update-Range": `bytes=${e}-${n}` }, a = R({ url: C(r.remoteURL, S(t)), method: "PATCH", headers: i, data: s }, r, o);
@@ -3461,7 +3475,7 @@ const qs = le((function(r, t, e, n, s) {
3461
3475
  L(r, l);
3462
3476
  }));
3463
3477
  }));
3464
- function le(r) {
3478
+ function ce(r) {
3465
3479
  return function() {
3466
3480
  for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
3467
3481
  try {
@@ -3471,17 +3485,17 @@ function le(r) {
3471
3485
  }
3472
3486
  };
3473
3487
  }
3474
- const Gs = le((function(r, t, e, n, s) {
3488
+ const Gs = ce((function(r, t, e, n, s) {
3475
3489
  let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3476
3490
  return Pt(mr(r, t, o), (function(i) {
3477
3491
  let a = !1;
3478
- return _e((function() {
3492
+ return Ve((function() {
3479
3493
  if (i.compliance.includes("sabredav-partialupdate")) return Pt(qs(r, t, e, n, s, o), (function(l) {
3480
3494
  return a = !0, l;
3481
3495
  }));
3482
3496
  }), (function(l) {
3483
3497
  let c = !1;
3484
- return a ? l : _e((function() {
3498
+ return a ? l : Ve((function() {
3485
3499
  if (i.server.includes("Apache") && i.compliance.includes("<http://apache.org/dav/propset/fs/1>")) return Pt(Ws(r, t, e, n, s, o), (function(u) {
3486
3500
  return c = !0, u;
3487
3501
  }));
@@ -3498,9 +3512,9 @@ function Hs(r) {
3498
3512
  let d = e;
3499
3513
  d || (d = f || c ? W.Password : W.None);
3500
3514
  const g = { authType: d, remoteBasePath: n, contactHref: s, ha1: o, headers: Object.assign({}, i), httpAgent: a, httpsAgent: l, password: c, parsing: { attributeNamePrefix: t.attributeNamePrefix ?? "@", attributeParsers: [], tagParsers: [lr] }, remotePath: Kr(r), remoteURL: r, token: u, username: f, withCredentials: h };
3501
- return Ye(g, f, c, u, o), { copyFile: (p, m, b) => Ln(g, p, m, b), createDirectory: (p, m) => te(g, p, m), createReadStream: (p, m) => (function(b, y) {
3515
+ return Ye(g, f, c, u, o), { copyFile: (p, m, b) => Ln(g, p, m, b), createDirectory: (p, m) => ee(g, p, m), createReadStream: (p, m) => (function(b, y) {
3502
3516
  let v = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3503
- const w = new (ke()).PassThrough();
3517
+ const w = new (Me()).PassThrough();
3504
3518
  return ms(b, y, v).then(((x) => {
3505
3519
  x.pipe(w);
3506
3520
  })).catch(((x) => {
@@ -3508,7 +3522,7 @@ function Hs(r) {
3508
3522
  })), w;
3509
3523
  })(g, p, m), createWriteStream: (p, m, b) => (function(y, v) {
3510
3524
  let w = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, x = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ys;
3511
- const P = new (ke()).PassThrough(), E = {};
3525
+ const P = new (Me()).PassThrough(), E = {};
3512
3526
  w.overwrite === !1 && (E["If-None-Match"] = "*");
3513
3527
  const T = R({ url: C(y.remoteURL, S(v)), method: "PUT", headers: E, data: P, maxRedirects: 0 }, y, w);
3514
3528
  return j(T, y).then(((A) => L(y, A))).then(((A) => {
@@ -3525,7 +3539,7 @@ function Hs(r) {
3525
3539
  case W.None:
3526
3540
  break;
3527
3541
  case W.Password: {
3528
- const w = be(m.headers.Authorization.replace(/^Basic /i, "").trim());
3542
+ const w = ve(m.headers.Authorization.replace(/^Basic /i, "").trim());
3529
3543
  y = y.replace(/^https?:\/\//, `${v}://${w}@`);
3530
3544
  break;
3531
3545
  }
@@ -3540,7 +3554,7 @@ function Hs(r) {
3540
3554
  case W.None:
3541
3555
  break;
3542
3556
  case W.Password: {
3543
- const w = be(m.headers.Authorization.replace(/^Basic /i, "").trim());
3557
+ const w = ve(m.headers.Authorization.replace(/^Basic /i, "").trim());
3544
3558
  y = y.replace(/^https?:\/\//, `${v}://${w}@`);
3545
3559
  break;
3546
3560
  }
@@ -3550,7 +3564,7 @@ function Hs(r) {
3550
3564
  return y;
3551
3565
  })(g, p), getHeaders: () => Object.assign({}, g.headers), getQuota: (p) => Ds(g, p), lock: (p, m) => Ls(g, p, m), moveFile: (p, m, b) => Ms(g, p, m, b), putFileContents: (p, m, b) => Bs(g, p, m, b), partialUpdateFileContents: (p, m, b, y, v) => Gs(g, p, m, b, y, v), getDAVCompliance: (p) => mr(g, p), search: (p, m) => ks(g, p, m), setHeaders: (p) => {
3552
3566
  g.headers = Object.assign({}, p);
3553
- }, stat: (p, m) => ae(g, p, m), unlock: (p, m, b) => Rs(g, p, m, b), registerAttributeParser: (p) => {
3567
+ }, stat: (p, m) => ue(g, p, m), unlock: (p, m, b) => Rs(g, p, m, b), registerAttributeParser: (p) => {
3554
3568
  g.parsing.attributeParsers.push(p);
3555
3569
  }, registerTagParser: (p) => {
3556
3570
  g.parsing.tagParsers.push(p);
@@ -3572,7 +3586,7 @@ function Zs() {
3572
3586
  }
3573
3587
  return Xt(Ys);
3574
3588
  }
3575
- const Js = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ve = { randomUUID: Js };
3589
+ const Js = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Be = { randomUUID: Js };
3576
3590
  function Ks(r, t, e) {
3577
3591
  r = r || {};
3578
3592
  const n = r.random ?? r.rng?.() ?? Zs();
@@ -3581,11 +3595,11 @@ function Ks(r, t, e) {
3581
3595
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Xs(n);
3582
3596
  }
3583
3597
  function Qs(r, t, e) {
3584
- return Ve.randomUUID && !r ? Ve.randomUUID() : Ks(r);
3598
+ return Be.randomUUID && !r ? Be.randomUUID() : Ks(r);
3585
3599
  }
3586
- const re = (r, t) => Object.fromEntries(
3600
+ const ne = (r, t) => Object.fromEntries(
3587
3601
  Object.entries(r).map(([e, n]) => t.includes(e) ? [e, n || ""] : [Et.DavNamespace.includes(e) ? `d:${e}` : `oc:${e}`, n || ""])
3588
- ), Be = (r = [], {
3602
+ ), We = (r = [], {
3589
3603
  pattern: t,
3590
3604
  filterRules: e,
3591
3605
  limit: n = 0,
@@ -3593,7 +3607,7 @@ const re = (r, t) => Object.fromEntries(
3593
3607
  }) => {
3594
3608
  let o = "d:propfind";
3595
3609
  t && (o = "oc:search-files"), e && (o = "oc:filter-files");
3596
- const i = r.reduce((u, f) => Object.assign(u, { [f]: null }), {}), a = re(i, s), l = {
3610
+ const i = r.reduce((u, f) => Object.assign(u, { [f]: null }), {}), a = ne(i, s), l = {
3597
3611
  [o]: {
3598
3612
  "d:prop": a,
3599
3613
  "@@xmlns:d": "DAV:",
@@ -3602,7 +3616,7 @@ const re = (r, t) => Object.fromEntries(
3602
3616
  "oc:search": { "oc:pattern": t, "oc:limit": n }
3603
3617
  },
3604
3618
  ...e && {
3605
- "oc:filter-rules": re(e, [])
3619
+ "oc:filter-rules": ne(e, [])
3606
3620
  }
3607
3621
  }
3608
3622
  };
@@ -3615,7 +3629,7 @@ const re = (r, t) => Object.fromEntries(
3615
3629
  }, to = (r) => {
3616
3630
  const t = {
3617
3631
  "d:propertyupdate": {
3618
- "d:set": { "d:prop": re(r, []) },
3632
+ "d:set": { "d:prop": ne(r, []) },
3619
3633
  "@@xmlns:d": "DAV:",
3620
3634
  "@@xmlns:oc": "http://owncloud.org/ns"
3621
3635
  }
@@ -3645,7 +3659,7 @@ const re = (r, t) => Object.fromEntries(
3645
3659
  return o.props.name && (o.props.name = o.props.name.toString()), o;
3646
3660
  });
3647
3661
  }, no = (r) => {
3648
- const t = new Pr(), e = {
3662
+ const t = new Nr(), e = {
3649
3663
  message: "Unknown error",
3650
3664
  errorCode: void 0
3651
3665
  };
@@ -3685,7 +3699,7 @@ class so {
3685
3699
  } = {}) {
3686
3700
  const i = { ...s, Depth: e.toString() }, { body: a, result: l } = await this.request(t, {
3687
3701
  method: Q.propfind,
3688
- data: Be(n, { extraProps: this.extraProps }),
3702
+ data: We(n, { extraProps: this.extraProps }),
3689
3703
  headers: i,
3690
3704
  ...o
3691
3705
  });
@@ -3700,7 +3714,7 @@ class so {
3700
3714
  } = {}) {
3701
3715
  const { body: a, result: l } = await this.request(t, {
3702
3716
  method: Q.report,
3703
- data: Be(o, {
3717
+ data: We(o, {
3704
3718
  pattern: e,
3705
3719
  filterRules: n,
3706
3720
  limit: s,
@@ -3784,7 +3798,7 @@ class so {
3784
3798
  };
3785
3799
  } catch (o) {
3786
3800
  const { response: i } = o, a = await i.text(), l = no(a);
3787
- throw new Er(
3801
+ throw new Pr(
3788
3802
  l.message,
3789
3803
  l.errorCode,
3790
3804
  i,
@@ -3853,8 +3867,8 @@ const oo = (r, t) => ({
3853
3867
  };
3854
3868
  };
3855
3869
  export {
3856
- Er as D,
3857
- qe as H,
3870
+ Pr as D,
3871
+ Ge as H,
3858
3872
  Ct as e,
3859
3873
  po as w
3860
3874
  };