@opencloud-eu/web-client 4.1.0 → 4.2.1

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,5 +1,5 @@
1
- import { a as Nr } from "./index-BIL0cW_q.js";
2
- import { D as st, I as de, J as me, t as xr, l as ue, p as Kt, m as Pr, K as se } from "./functions-aGu-ugzD.js";
1
+ import { a as Nr } from "./index-2zDycGQj.js";
2
+ import { D as st, I as he, J as me, t as xr, l as ue, p as Kt, m as Pr, K as se } from "./functions-DSF_kNxK.js";
3
3
  import { u as M } from "./toString-XlfBosfh.js";
4
4
  import { ocs as Er } from "./web-client/ocs.js";
5
5
  import { p as oe, g as ve } from "./index-JHVTaNRI.js";
@@ -13,8 +13,8 @@ class Qt extends Error {
13
13
  }
14
14
  class Ar extends Qt {
15
15
  errorCode;
16
- constructor(e, t, n, o = null) {
17
- super(e, n, o), this.errorCode = t;
16
+ constructor(e, t, n, a = null) {
17
+ super(e, n, a), this.errorCode = t;
18
18
  }
19
19
  }
20
20
  const re = (r, { fileId: e, path: t, name: n }) => {
@@ -27,13 +27,13 @@ const re = (r, { fileId: e, path: t, name: n }) => {
27
27
  }
28
28
  return r.webDavPath;
29
29
  }, Tr = (r, e) => ({
30
- copyFiles(t, { path: n, fileId: o }, u, {
30
+ copyFiles(t, { path: n, fileId: a }, u, {
31
31
  path: c,
32
32
  parentFolderId: i,
33
33
  name: h
34
- }, { overwrite: a, ...s } = {}) {
34
+ }, { overwrite: o, ...s } = {}) {
35
35
  const f = re(t, {
36
- fileId: o,
36
+ fileId: a,
37
37
  path: n
38
38
  }), l = re(u, {
39
39
  fileId: i,
@@ -41,25 +41,25 @@ const re = (r, { fileId: e, path: t, name: n }) => {
41
41
  name: h
42
42
  });
43
43
  return r.copy(f, l, {
44
- overwrite: a || !1,
44
+ overwrite: o || !1,
45
45
  ...s
46
46
  });
47
47
  }
48
48
  }), Or = (r, e, t) => ({
49
- async createFolder(n, { path: o, parentFolderId: u, folderName: c, fetchFolder: i = !0, ...h }) {
50
- const a = re(n, { fileId: u, path: o, name: c });
51
- if (await r.mkcol(a), i)
52
- return e.getFileInfo(n, { path: o }, h);
49
+ async createFolder(n, { path: a, parentFolderId: u, folderName: c, fetchFolder: i = !0, ...h }) {
50
+ const o = re(n, { fileId: u, path: a, name: c });
51
+ if (await r.mkcol(o), i)
52
+ return e.getFileInfo(n, { path: a }, h);
53
53
  }
54
54
  }), Cr = (r, { axiosClient: e }) => ({
55
- async getFileContents(t, { fileId: n, path: o }, {
55
+ async getFileContents(t, { fileId: n, path: a }, {
56
56
  responseType: u = "text",
57
57
  noCache: c = !0,
58
58
  headers: i,
59
59
  ...h
60
60
  } = {}) {
61
61
  try {
62
- const a = re(t, { fileId: n, path: o }), s = await e.get(r.getFileUrl(a), {
62
+ const o = re(t, { fileId: n, path: a }), s = await e.get(r.getFileUrl(o), {
63
63
  responseType: u,
64
64
  headers: {
65
65
  ...c && { "Cache-Control": "no-cache" },
@@ -76,63 +76,72 @@ const re = (r, { fileId: e, path: t, name: n }) => {
76
76
  "OC-FileId": s.headers["oc-fileid"]
77
77
  }
78
78
  };
79
- } catch (a) {
80
- const { message: s, response: f } = a;
79
+ } catch (o) {
80
+ const { message: s, response: f } = o;
81
81
  throw new Qt(s, f, f.status);
82
82
  }
83
83
  }
84
84
  }), Ir = (r, e) => ({
85
- async getFileInfo(t, n, o) {
85
+ async getFileInfo(t, n, a) {
86
86
  return (await r.listFiles(t, n, {
87
87
  depth: 0,
88
- ...o
88
+ ...a
89
89
  })).resource;
90
90
  }
91
- }), Sr = (r, e, { axiosClient: t, baseUrl: n }) => ({
92
- async getFileUrl(o, u, {
93
- disposition: c = "attachment",
94
- isUrlSigningEnabled: i = !1,
95
- signUrlTimeout: h = 86400,
96
- version: a = null,
97
- doHeadRequest: s = !1,
98
- username: f = "",
99
- ...l
91
+ }), Sr = (r, e, t, { axiosClient: n, baseUrl: a }) => ({
92
+ async getFileUrl(u, c, {
93
+ disposition: i = "attachment",
94
+ isUrlSigningEnabled: h = !0,
95
+ signUrlTimeout: o = 86400,
96
+ version: s = null,
97
+ doHeadRequest: f = !1,
98
+ username: l = "",
99
+ ...g
100
100
  }) {
101
- const g = c === "inline";
102
- let { downloadURL: d } = u, m = !0;
103
- if (!d && !g && (d = a ? r.getFileUrl(M("meta", u.fileId, "v", a)) : r.getFileUrl(u.webDavPath), f && s && await t.head(d), i && f ? d = await Er(n, t).signUrl(d, f) : m = !1), !m || g) {
104
- const w = await e.getFileContents(o, u, {
101
+ if (i === "inline") {
102
+ const m = await e.getFileContents(u, c, {
105
103
  responseType: "blob",
106
- ...l
104
+ ...g
107
105
  });
108
- d = URL.createObjectURL(w.body);
109
- }
106
+ return URL.createObjectURL(m.body);
107
+ }
108
+ if (s) {
109
+ if (!l)
110
+ throw new Error("username is required for URL signing");
111
+ const m = r.getFileUrl(M("meta", c.fileId, "v", s));
112
+ return await Er(a, n).signUrl(m, l);
113
+ }
114
+ if (c.downloadURL)
115
+ return c.downloadURL;
116
+ const { downloadURL: d } = await t.getFileInfo(u, c, {
117
+ davProperties: [he.DownloadURL]
118
+ });
110
119
  return d;
111
120
  },
112
- revokeUrl: (o) => {
113
- o && o.startsWith("blob:") && URL.revokeObjectURL(o);
121
+ revokeUrl: (u) => {
122
+ u && u.startsWith("blob:") && URL.revokeObjectURL(u);
114
123
  }
115
124
  }), Fr = (r, e) => ({
116
125
  getPublicFileUrl(t, n) {
117
126
  return r.getFileUrl(M("public-files", n));
118
127
  }
119
128
  }), jr = (r, e, t) => ({
120
- async listFiles(n, { path: o, fileId: u } = {}, { depth: c = 1, davProperties: i, isTrash: h = !1, ...a } = {}) {
129
+ async listFiles(n, { path: a, fileId: u } = {}, { depth: c = 1, davProperties: i, isTrash: h = !1, ...o } = {}) {
121
130
  let s;
122
131
  if (st(n)) {
123
- s = await r.propfind(M(n.webDavPath, o), {
132
+ s = await r.propfind(M(n.webDavPath, a), {
124
133
  depth: c,
125
- properties: i || de.PublicLink,
126
- ...a
134
+ properties: i || me.PublicLink,
135
+ ...o
127
136
  }), s.forEach((d) => {
128
137
  d.filename = d.filename.split("/").slice(1).join("/");
129
- }), s.length === 1 && (s[0].filename = M(n.id, o, {
138
+ }), s.length === 1 && (s[0].filename = M(n.id, a, {
130
139
  leadingSlash: !0
131
140
  })), s.forEach((d) => {
132
141
  d.filename = d.filename.split("/").slice(2).join("/");
133
142
  });
134
143
  const l = n.driveAlias.startsWith("ocm/") ? "ocm" : "public-link";
135
- if ((!o || o === "/") && c > 0 && l === "ocm" && s[0].props[me.PublicLinkItemType] === "file" && (s = [
144
+ if ((!a || a === "/") && c > 0 && l === "ocm" && s[0].props[he.PublicLinkItemType] === "file" && (s = [
136
145
  {
137
146
  basename: n.fileId,
138
147
  type: "directory",
@@ -140,7 +149,7 @@ const re = (r, { fileId: e, path: t, name: n }) => {
140
149
  props: {}
141
150
  },
142
151
  ...s
143
- ]), !o) {
152
+ ]), !a) {
144
153
  const [d, ...m] = s;
145
154
  return {
146
155
  resource: xr({
@@ -162,17 +171,17 @@ const re = (r, { fileId: e, path: t, name: n }) => {
162
171
  };
163
172
  try {
164
173
  let l = "";
165
- if (h ? l = Kt(n.id) : l = re(n, { fileId: u, path: o }), s = await r.propfind(l, {
174
+ if (h ? l = Kt(n.id) : l = re(n, { fileId: u, path: a }), s = await r.propfind(l, {
166
175
  depth: c,
167
- properties: i || de.Default,
168
- ...a
176
+ properties: i || me.Default,
177
+ ...o
169
178
  }), h)
170
179
  return {
171
180
  resource: ue(s[0], r.extraProps),
172
181
  children: s.slice(1).map(Pr)
173
182
  };
174
183
  const g = s.map((m) => ue(m, r.extraProps)), d = u === n.id;
175
- return u && !d && u !== g[0].fileId ? f() : { resource: g[0], children: g.slice(1) };
184
+ return u && !d && g[0].fileId && u !== g[0].fileId ? f() : { resource: g[0], children: g.slice(1) };
176
185
  } catch (l) {
177
186
  if (l.statusCode === 404 && u)
178
187
  return f();
@@ -180,13 +189,13 @@ const re = (r, { fileId: e, path: t, name: n }) => {
180
189
  }
181
190
  }
182
191
  }), $r = (r, e) => ({
183
- moveFiles(t, { path: n, fileId: o }, u, {
192
+ moveFiles(t, { path: n, fileId: a }, u, {
184
193
  path: c,
185
194
  parentFolderId: i,
186
195
  name: h
187
- }, { overwrite: a, ...s } = {}) {
196
+ }, { overwrite: o, ...s } = {}) {
188
197
  const f = re(t, {
189
- fileId: o,
198
+ fileId: a,
190
199
  path: n
191
200
  }), l = re(u, {
192
201
  fileId: i,
@@ -194,24 +203,24 @@ const re = (r, { fileId: e, path: t, name: n }) => {
194
203
  name: h
195
204
  });
196
205
  return r.move(f, l, {
197
- overwrite: a || !1,
206
+ overwrite: o || !1,
198
207
  ...s
199
208
  });
200
209
  }
201
210
  }), Rr = (r, e, t) => ({
202
211
  async putFileContents(n, {
203
- fileName: o,
212
+ fileName: a,
204
213
  path: u,
205
214
  parentFolderId: c,
206
215
  content: i = "",
207
216
  previousEntityTag: h = "",
208
- overwrite: a,
217
+ overwrite: o,
209
218
  onUploadProgress: s = null,
210
219
  ...f
211
220
  }) {
212
- const l = re(n, { fileId: c, name: o, path: u }), { result: g } = await r.put(l, i, {
221
+ const l = re(n, { fileId: c, name: a, path: u }), { result: g } = await r.put(l, i, {
213
222
  previousEntityTag: h,
214
- overwrite: a,
223
+ overwrite: o,
215
224
  onUploadProgress: s,
216
225
  ...f
217
226
  });
@@ -221,41 +230,41 @@ const re = (r, { fileId: e, path: t, name: n }) => {
221
230
  });
222
231
  }
223
232
  }), Lr = (r, e) => ({
224
- deleteFile(t, { path: n, ...o }) {
225
- return r.delete(M(t.webDavPath, n), o);
233
+ deleteFile(t, { path: n, ...a }) {
234
+ return r.delete(M(t.webDavPath, n), a);
226
235
  }
227
236
  }), kr = (r, e) => ({
228
- restoreFile(t, { id: n }, { path: o }, { overwrite: u, ...c } = {}) {
237
+ restoreFile(t, { id: n }, { path: a }, { overwrite: u, ...c } = {}) {
229
238
  if (st(t))
230
239
  return;
231
- const i = M(t.webDavPath, o);
240
+ const i = M(t.webDavPath, a);
232
241
  return r.move(M(t.webDavTrashPath, n), i, {
233
242
  overwrite: u,
234
243
  ...c
235
244
  });
236
245
  }
237
246
  }), Ur = (r, e) => ({
238
- restoreFileVersion(t, { parentFolderId: n, name: o, path: u }, c, i = {}) {
239
- const h = re(t, { path: u, fileId: n, name: o }), a = M("meta", n, "v", c, { leadingSlash: !0 }), s = M("files", h, { leadingSlash: !0 });
240
- return r.copy(a, s, i);
247
+ restoreFileVersion(t, { parentFolderId: n, name: a, path: u }, c, i = {}) {
248
+ const h = re(t, { path: u, fileId: n, name: a }), o = M("meta", n, "v", c, { leadingSlash: !0 }), s = M("files", h, { leadingSlash: !0 });
249
+ return r.copy(o, s, i);
241
250
  }
242
251
  }), _r = (r, e) => ({
243
- clearTrashBin(t, { id: n, ...o } = {}) {
252
+ clearTrashBin(t, { id: n, ...a } = {}) {
244
253
  let u = Kt(t.id);
245
- return n && (u = M(u, n)), r.delete(u, o);
254
+ return n && (u = M(u, n)), r.delete(u, a);
246
255
  }
247
256
  }), Mr = (r, e) => ({
248
- async search(t, { davProperties: n = de.Default, searchLimit: o, ...u }) {
257
+ async search(t, { davProperties: n = me.Default, searchLimit: a, ...u }) {
249
258
  const c = "/spaces/", { range: i, results: h } = await r.report(c, {
250
259
  pattern: t,
251
- limit: o,
260
+ limit: a,
252
261
  properties: n,
253
262
  ...u
254
263
  });
255
264
  return {
256
- resources: h.map((a) => ({
257
- ...ue(a, r.extraProps),
258
- highlights: a.props[me.Highlights] || ""
265
+ resources: h.map((o) => ({
266
+ ...ue(o, r.extraProps),
267
+ highlights: o.props[he.Highlights] || ""
259
268
  })),
260
269
  totalResults: i ? parseInt(i?.split("/")[1]) : null
261
270
  };
@@ -263,34 +272,34 @@ const re = (r, { fileId: e, path: t, name: n }) => {
263
272
  }), Vr = (r, e) => ({
264
273
  async getPathForFileId(t, n = {}) {
265
274
  return (await r.propfind(M("meta", t, { leadingSlash: !0 }), {
266
- properties: [me.MetaPathForUser],
275
+ properties: [he.MetaPathForUser],
267
276
  ...n
268
- }))[0].props[me.MetaPathForUser];
277
+ }))[0].props[he.MetaPathForUser];
269
278
  }
270
279
  });
271
280
  /*! For license information please see index.js.LICENSE.txt */
272
281
  var Br = { 2: (r) => {
273
- function e(o, u, c) {
274
- o instanceof RegExp && (o = t(o, c)), u instanceof RegExp && (u = t(u, c));
275
- var i = n(o, u, c);
276
- return i && { start: i[0], end: i[1], pre: c.slice(0, i[0]), body: c.slice(i[0] + o.length, i[1]), post: c.slice(i[1] + u.length) };
282
+ function e(a, u, c) {
283
+ a instanceof RegExp && (a = t(a, c)), u instanceof RegExp && (u = t(u, c));
284
+ var i = n(a, u, c);
285
+ return i && { start: i[0], end: i[1], pre: c.slice(0, i[0]), body: c.slice(i[0] + a.length, i[1]), post: c.slice(i[1] + u.length) };
277
286
  }
278
- function t(o, u) {
279
- var c = u.match(o);
287
+ function t(a, u) {
288
+ var c = u.match(a);
280
289
  return c ? c[0] : null;
281
290
  }
282
- function n(o, u, c) {
283
- var i, h, a, s, f, l = c.indexOf(o), g = c.indexOf(u, l + 1), d = l;
291
+ function n(a, u, c) {
292
+ var i, h, o, s, f, l = c.indexOf(a), g = c.indexOf(u, l + 1), d = l;
284
293
  if (l >= 0 && g > 0) {
285
- for (i = [], a = c.length; d >= 0 && !f; ) d == l ? (i.push(d), l = c.indexOf(o, d + 1)) : i.length == 1 ? f = [i.pop(), g] : ((h = i.pop()) < a && (a = h, s = g), g = c.indexOf(u, d + 1)), d = l < g && l >= 0 ? l : g;
286
- i.length && (f = [a, s]);
294
+ for (i = [], o = c.length; d >= 0 && !f; ) d == l ? (i.push(d), l = c.indexOf(a, d + 1)) : i.length == 1 ? f = [i.pop(), g] : ((h = i.pop()) < o && (o = h, s = g), g = c.indexOf(u, d + 1)), d = l < g && l >= 0 ? l : g;
295
+ i.length && (f = [o, s]);
287
296
  }
288
297
  return f;
289
298
  }
290
299
  r.exports = e, e.range = n;
291
300
  }, 101: function(r, e, t) {
292
301
  var n;
293
- r = t.nmd(r), (function(o) {
302
+ r = t.nmd(r), (function(a) {
294
303
  var u = (r && r.exports, typeof ve == "object" && ve);
295
304
  u.global !== u && u.window;
296
305
  var c = function(f) {
@@ -299,12 +308,12 @@ var Br = { 2: (r) => {
299
308
  (c.prototype = new Error()).name = "InvalidCharacterError";
300
309
  var i = function(f) {
301
310
  throw new c(f);
302
- }, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = /[\t\n\f\r ]/g, s = { encode: function(f) {
311
+ }, h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = /[\t\n\f\r ]/g, s = { encode: function(f) {
303
312
  f = String(f), /[^\0-\xFF]/.test(f) && i("The string to be encoded contains characters outside of the Latin1 range.");
304
313
  for (var l, g, d, m, w = f.length % 3, v = "", p = -1, y = f.length - w; ++p < y; ) l = f.charCodeAt(p) << 16, g = f.charCodeAt(++p) << 8, d = f.charCodeAt(++p), v += h.charAt((m = l + g + d) >> 18 & 63) + h.charAt(m >> 12 & 63) + h.charAt(m >> 6 & 63) + h.charAt(63 & m);
305
314
  return w == 2 ? (l = f.charCodeAt(p) << 8, g = f.charCodeAt(++p), v += h.charAt((m = l + g) >> 10) + h.charAt(m >> 4 & 63) + h.charAt(m << 2 & 63) + "=") : w == 1 && (m = f.charCodeAt(p), v += h.charAt(m >> 2) + h.charAt(m << 4 & 63) + "=="), v;
306
315
  }, decode: function(f) {
307
- var l = (f = String(f).replace(a, "")).length;
316
+ var l = (f = String(f).replace(o, "")).length;
308
317
  l % 4 == 0 && (l = (f = f.replace(/==?$/, "")).length), (l % 4 == 1 || /[^+a-zA-Z0-9/]/.test(f)) && i("Invalid character: the string to be decoded is not correctly encoded.");
309
318
  for (var g, d, m = 0, w = "", v = -1; ++v < l; ) d = h.indexOf(f.charAt(v)), g = m % 4 ? 64 * g + d : d, m++ % 4 && (w += String.fromCharCode(255 & g >> (-2 * m & 6)));
310
319
  return w;
@@ -316,9 +325,9 @@ var Br = { 2: (r) => {
316
325
  }, 172: (r, e) => {
317
326
  e.d = function(t) {
318
327
  if (!t) return 0;
319
- for (var n = (t = t.toString()).length, o = t.length; o--; ) {
320
- var u = t.charCodeAt(o);
321
- 56320 <= u && u <= 57343 && o--, 127 < u && u <= 2047 ? n++ : 2047 < u && u <= 65535 && (n += 2);
328
+ for (var n = (t = t.toString()).length, a = t.length; a--; ) {
329
+ var u = t.charCodeAt(a);
330
+ 56320 <= u && u <= 57343 && a--, 127 < u && u <= 2047 ? n++ : 2047 < u && u <= 65535 && (n += 2);
322
331
  }
323
332
  return n;
324
333
  };
@@ -328,49 +337,49 @@ var Br = { 2: (r) => {
328
337
  }, bytesToString: function(t) {
329
338
  return decodeURIComponent(escape(e.bin.bytesToString(t)));
330
339
  } }, bin: { stringToBytes: function(t) {
331
- for (var n = [], o = 0; o < t.length; o++) n.push(255 & t.charCodeAt(o));
340
+ for (var n = [], a = 0; a < t.length; a++) n.push(255 & t.charCodeAt(a));
332
341
  return n;
333
342
  }, bytesToString: function(t) {
334
- for (var n = [], o = 0; o < t.length; o++) n.push(String.fromCharCode(t[o]));
343
+ for (var n = [], a = 0; a < t.length; a++) n.push(String.fromCharCode(t[a]));
335
344
  return n.join("");
336
345
  } } };
337
346
  r.exports = e;
338
347
  }, 298: (r) => {
339
348
  var e, t;
340
- e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = { rotl: function(n, o) {
341
- return n << o | n >>> 32 - o;
342
- }, rotr: function(n, o) {
343
- return n << 32 - o | n >>> o;
349
+ e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = { rotl: function(n, a) {
350
+ return n << a | n >>> 32 - a;
351
+ }, rotr: function(n, a) {
352
+ return n << 32 - a | n >>> a;
344
353
  }, endian: function(n) {
345
354
  if (n.constructor == Number) return 16711935 & t.rotl(n, 8) | 4278255360 & t.rotl(n, 24);
346
- for (var o = 0; o < n.length; o++) n[o] = t.endian(n[o]);
355
+ for (var a = 0; a < n.length; a++) n[a] = t.endian(n[a]);
347
356
  return n;
348
357
  }, randomBytes: function(n) {
349
- for (var o = []; n > 0; n--) o.push(Math.floor(256 * Math.random()));
350
- return o;
358
+ for (var a = []; n > 0; n--) a.push(Math.floor(256 * Math.random()));
359
+ return a;
351
360
  }, bytesToWords: function(n) {
352
- for (var o = [], u = 0, c = 0; u < n.length; u++, c += 8) o[c >>> 5] |= n[u] << 24 - c % 32;
353
- return o;
361
+ for (var a = [], u = 0, c = 0; u < n.length; u++, c += 8) a[c >>> 5] |= n[u] << 24 - c % 32;
362
+ return a;
354
363
  }, wordsToBytes: function(n) {
355
- for (var o = [], u = 0; u < 32 * n.length; u += 8) o.push(n[u >>> 5] >>> 24 - u % 32 & 255);
356
- return o;
364
+ for (var a = [], u = 0; u < 32 * n.length; u += 8) a.push(n[u >>> 5] >>> 24 - u % 32 & 255);
365
+ return a;
357
366
  }, bytesToHex: function(n) {
358
- for (var o = [], u = 0; u < n.length; u++) o.push((n[u] >>> 4).toString(16)), o.push((15 & n[u]).toString(16));
359
- return o.join("");
367
+ for (var a = [], u = 0; u < n.length; u++) a.push((n[u] >>> 4).toString(16)), a.push((15 & n[u]).toString(16));
368
+ return a.join("");
360
369
  }, hexToBytes: function(n) {
361
- for (var o = [], u = 0; u < n.length; u += 2) o.push(parseInt(n.substr(u, 2), 16));
362
- return o;
370
+ for (var a = [], u = 0; u < n.length; u += 2) a.push(parseInt(n.substr(u, 2), 16));
371
+ return a;
363
372
  }, bytesToBase64: function(n) {
364
- for (var o = [], u = 0; u < n.length; u += 3) for (var c = n[u] << 16 | n[u + 1] << 8 | n[u + 2], i = 0; i < 4; i++) 8 * u + 6 * i <= 8 * n.length ? o.push(e.charAt(c >>> 6 * (3 - i) & 63)) : o.push("=");
365
- return o.join("");
373
+ for (var a = [], u = 0; u < n.length; u += 3) for (var c = n[u] << 16 | n[u + 1] << 8 | n[u + 2], i = 0; i < 4; i++) 8 * u + 6 * i <= 8 * n.length ? a.push(e.charAt(c >>> 6 * (3 - i) & 63)) : a.push("=");
374
+ return a.join("");
366
375
  }, base64ToBytes: function(n) {
367
376
  n = n.replace(/[^A-Z0-9+\/]/gi, "");
368
- for (var o = [], u = 0, c = 0; u < n.length; c = ++u % 4) c != 0 && o.push((e.indexOf(n.charAt(u - 1)) & Math.pow(2, -2 * c + 8) - 1) << 2 * c | e.indexOf(n.charAt(u)) >>> 6 - 2 * c);
369
- return o;
377
+ for (var a = [], u = 0, c = 0; u < n.length; c = ++u % 4) c != 0 && a.push((e.indexOf(n.charAt(u - 1)) & Math.pow(2, -2 * c + 8) - 1) << 2 * c | e.indexOf(n.charAt(u)) >>> 6 - 2 * c);
378
+ return a;
370
379
  } }, r.exports = t;
371
380
  }, 635: (r, e, t) => {
372
- const n = t(31), o = t(338), u = t(221);
373
- r.exports = { XMLParser: o, XMLValidator: n, XMLBuilder: u };
381
+ const n = t(31), a = t(338), u = t(221);
382
+ r.exports = { XMLParser: a, XMLValidator: n, XMLBuilder: u };
374
383
  }, 118: (r) => {
375
384
  r.exports = function(e) {
376
385
  return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
@@ -379,34 +388,34 @@ var Br = { 2: (r) => {
379
388
  } : () => !1;
380
389
  };
381
390
  }, 705: (r, e) => {
382
- const t = ":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", n = "[" + t + "][" + t + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*", o = new RegExp("^" + n + "$");
391
+ const t = ":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", n = "[" + t + "][" + t + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*", a = new RegExp("^" + n + "$");
383
392
  e.isExist = function(u) {
384
393
  return u !== void 0;
385
394
  }, e.isEmptyObject = function(u) {
386
395
  return Object.keys(u).length === 0;
387
396
  }, e.merge = function(u, c, i) {
388
397
  if (c) {
389
- const h = Object.keys(c), a = h.length;
390
- for (let s = 0; s < a; s++) u[h[s]] = i === "strict" ? [c[h[s]]] : c[h[s]];
398
+ const h = Object.keys(c), o = h.length;
399
+ for (let s = 0; s < o; s++) u[h[s]] = i === "strict" ? [c[h[s]]] : c[h[s]];
391
400
  }
392
401
  }, e.getValue = function(u) {
393
402
  return e.isExist(u) ? u : "";
394
403
  }, e.isName = function(u) {
395
- return o.exec(u) != null;
404
+ return a.exec(u) != null;
396
405
  }, e.getAllMatches = function(u, c) {
397
406
  const i = [];
398
407
  let h = c.exec(u);
399
408
  for (; h; ) {
400
- const a = [];
401
- a.startIndex = c.lastIndex - h[0].length;
409
+ const o = [];
410
+ o.startIndex = c.lastIndex - h[0].length;
402
411
  const s = h.length;
403
- for (let f = 0; f < s; f++) a.push(h[f]);
404
- i.push(a), h = c.exec(u);
412
+ for (let f = 0; f < s; f++) o.push(h[f]);
413
+ i.push(o), h = c.exec(u);
405
414
  }
406
415
  return i;
407
416
  }, e.nameRegexp = n;
408
417
  }, 31: (r, e, t) => {
409
- const n = t(705), o = { allowBooleanAttributes: !1, unpairedTags: [] };
418
+ const n = t(705), a = { allowBooleanAttributes: !1, unpairedTags: [] };
410
419
  function u(p) {
411
420
  return p === " " || p === " " || p === `
412
421
  ` || p === "\r";
@@ -442,7 +451,7 @@ var Br = { 2: (r) => {
442
451
  return y;
443
452
  }
444
453
  e.validate = function(p, y) {
445
- y = Object.assign({}, o, y);
454
+ y = Object.assign({}, a, y);
446
455
  const A = [];
447
456
  let N = !1, b = !1;
448
457
  p[0] === "\uFEFF" && (p = p.substr(1));
@@ -515,11 +524,11 @@ var Br = { 2: (r) => {
515
524
  var E;
516
525
  return N ? A.length == 1 ? d("InvalidTag", "Unclosed tag '" + A[0].tagName + "'.", w(p, A[0].tagStartPos)) : !(A.length > 0) || d("InvalidXml", "Invalid '" + JSON.stringify(A.map(((x) => x.tagName)), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 }) : d("InvalidXml", "Start tag expected.", 1);
517
526
  };
518
- const h = '"', a = "'";
527
+ const h = '"', o = "'";
519
528
  function s(p, y) {
520
529
  let A = "", N = "", b = !1;
521
530
  for (; y < p.length; y++) {
522
- if (p[y] === h || p[y] === a) N === "" ? N = p[y] : N !== p[y] || (N = "");
531
+ if (p[y] === h || p[y] === o) N === "" ? N = p[y] : N !== p[y] || (N = "");
523
532
  else if (p[y] === ">" && N === "") {
524
533
  b = !0;
525
534
  break;
@@ -573,7 +582,7 @@ var Br = { 2: (r) => {
573
582
  return p.startIndex + p[1].length;
574
583
  }
575
584
  }, 221: (r, e, t) => {
576
- const n = t(87), o = t(118), u = { attributeNamePrefix: "@_", attributesGroupName: !1, textNodeName: "#text", ignoreAttributes: !0, cdataPropName: !1, format: !1, indentBy: " ", suppressEmptyNode: !1, suppressUnpairedNode: !0, suppressBooleanAttributes: !0, tagValueProcessor: function(s, f) {
585
+ const n = t(87), a = t(118), u = { attributeNamePrefix: "@_", attributesGroupName: !1, textNodeName: "#text", ignoreAttributes: !0, cdataPropName: !1, format: !1, indentBy: " ", suppressEmptyNode: !1, suppressUnpairedNode: !0, suppressBooleanAttributes: !0, tagValueProcessor: function(s, f) {
577
586
  return f;
578
587
  }, attributeValueProcessor: function(s, f) {
579
588
  return f;
@@ -581,7 +590,7 @@ var Br = { 2: (r) => {
581
590
  function c(s) {
582
591
  this.options = Object.assign({}, u, s), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
583
592
  return !1;
584
- } : (this.ignoreAttributesFn = o(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = a), this.processTextOrObjNode = i, this.options.format ? (this.indentate = h, this.tagEndChar = `>
593
+ } : (this.ignoreAttributesFn = a(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = o), this.processTextOrObjNode = i, this.options.format ? (this.indentate = h, this.tagEndChar = `>
585
594
  `, this.newLine = `
586
595
  `) : (this.indentate = function() {
587
596
  return "";
@@ -594,7 +603,7 @@ var Br = { 2: (r) => {
594
603
  function h(s) {
595
604
  return this.options.indentBy.repeat(s);
596
605
  }
597
- function a(s) {
606
+ function o(s) {
598
607
  return !(!s.startsWith(this.options.attributeNamePrefix) || s === this.options.textNodeName) && s.substr(this.attrPrefixLen);
599
608
  }
600
609
  c.prototype.build = function(s) {
@@ -660,7 +669,7 @@ var Br = { 2: (r) => {
660
669
  return s;
661
670
  }, r.exports = c;
662
671
  }, 87: (r) => {
663
- function e(c, i, h, a) {
672
+ function e(c, i, h, o) {
664
673
  let s = "", f = !1;
665
674
  for (let l = 0; l < c.length; l++) {
666
675
  const g = c[l], d = t(g);
@@ -668,55 +677,55 @@ var Br = { 2: (r) => {
668
677
  let m = "";
669
678
  if (m = h.length === 0 ? d : `${h}.${d}`, d === i.textNodeName) {
670
679
  let y = g[d];
671
- o(m, i) || (y = i.tagValueProcessor(d, y), y = u(y, i)), f && (s += a), s += y, f = !1;
680
+ a(m, i) || (y = i.tagValueProcessor(d, y), y = u(y, i)), f && (s += o), s += y, f = !1;
672
681
  continue;
673
682
  }
674
683
  if (d === i.cdataPropName) {
675
- f && (s += a), s += `<![CDATA[${g[d][0][i.textNodeName]}]]>`, f = !1;
684
+ f && (s += o), s += `<![CDATA[${g[d][0][i.textNodeName]}]]>`, f = !1;
676
685
  continue;
677
686
  }
678
687
  if (d === i.commentPropName) {
679
- s += a + `<!--${g[d][0][i.textNodeName]}-->`, f = !0;
688
+ s += o + `<!--${g[d][0][i.textNodeName]}-->`, f = !0;
680
689
  continue;
681
690
  }
682
691
  if (d[0] === "?") {
683
- const y = n(g[":@"], i), A = d === "?xml" ? "" : a;
692
+ const y = n(g[":@"], i), A = d === "?xml" ? "" : o;
684
693
  let N = g[d][0][i.textNodeName];
685
694
  N = N.length !== 0 ? " " + N : "", s += A + `<${d}${N}${y}?>`, f = !0;
686
695
  continue;
687
696
  }
688
- let w = a;
697
+ let w = o;
689
698
  w !== "" && (w += i.indentBy);
690
- const v = a + `<${d}${n(g[":@"], i)}`, p = e(g[d], i, m, w);
691
- i.unpairedTags.indexOf(d) !== -1 ? i.suppressUnpairedNode ? s += v + ">" : s += v + "/>" : p && p.length !== 0 || !i.suppressEmptyNode ? p && p.endsWith(">") ? s += v + `>${p}${a}</${d}>` : (s += v + ">", p && a !== "" && (p.includes("/>") || p.includes("</")) ? s += a + i.indentBy + p + a : s += p, s += `</${d}>`) : s += v + "/>", f = !0;
699
+ const v = o + `<${d}${n(g[":@"], i)}`, p = e(g[d], i, m, w);
700
+ i.unpairedTags.indexOf(d) !== -1 ? i.suppressUnpairedNode ? s += v + ">" : s += v + "/>" : p && p.length !== 0 || !i.suppressEmptyNode ? p && p.endsWith(">") ? s += v + `>${p}${o}</${d}>` : (s += v + ">", p && o !== "" && (p.includes("/>") || p.includes("</")) ? s += o + i.indentBy + p + o : s += p, s += `</${d}>`) : s += v + "/>", f = !0;
692
701
  }
693
702
  return s;
694
703
  }
695
704
  function t(c) {
696
705
  const i = Object.keys(c);
697
706
  for (let h = 0; h < i.length; h++) {
698
- const a = i[h];
699
- if (c.hasOwnProperty(a) && a !== ":@") return a;
707
+ const o = i[h];
708
+ if (c.hasOwnProperty(o) && o !== ":@") return o;
700
709
  }
701
710
  }
702
711
  function n(c, i) {
703
712
  let h = "";
704
- if (c && !i.ignoreAttributes) for (let a in c) {
705
- if (!c.hasOwnProperty(a)) continue;
706
- let s = i.attributeValueProcessor(a, c[a]);
707
- s = u(s, i), s === !0 && i.suppressBooleanAttributes ? h += ` ${a.substr(i.attributeNamePrefix.length)}` : h += ` ${a.substr(i.attributeNamePrefix.length)}="${s}"`;
713
+ if (c && !i.ignoreAttributes) for (let o in c) {
714
+ if (!c.hasOwnProperty(o)) continue;
715
+ let s = i.attributeValueProcessor(o, c[o]);
716
+ s = u(s, i), s === !0 && i.suppressBooleanAttributes ? h += ` ${o.substr(i.attributeNamePrefix.length)}` : h += ` ${o.substr(i.attributeNamePrefix.length)}="${s}"`;
708
717
  }
709
718
  return h;
710
719
  }
711
- function o(c, i) {
720
+ function a(c, i) {
712
721
  let h = (c = c.substr(0, c.length - i.textNodeName.length - 1)).substr(c.lastIndexOf(".") + 1);
713
- for (let a in i.stopNodes) if (i.stopNodes[a] === c || i.stopNodes[a] === "*." + h) return !0;
722
+ for (let o in i.stopNodes) if (i.stopNodes[o] === c || i.stopNodes[o] === "*." + h) return !0;
714
723
  return !1;
715
724
  }
716
725
  function u(c, i) {
717
726
  if (c && c.length > 0 && i.processEntities) for (let h = 0; h < i.entities.length; h++) {
718
- const a = i.entities[h];
719
- c = c.replace(a.regex, a.val);
727
+ const o = i.entities[h];
728
+ c = c.replace(o.regex, o.val);
720
729
  }
721
730
  return c;
722
731
  }
@@ -727,7 +736,7 @@ var Br = { 2: (r) => {
727
736
  };
728
737
  }, 193: (r, e, t) => {
729
738
  const n = t(705);
730
- function o(f, l) {
739
+ function a(f, l) {
731
740
  let g = "";
732
741
  for (; l < f.length && f[l] !== "'" && f[l] !== '"'; l++) g += f[l];
733
742
  if (g = g.trim(), g.indexOf(" ") !== -1) throw new Error("External entites are not supported");
@@ -748,7 +757,7 @@ var Br = { 2: (r) => {
748
757
  function h(f, l) {
749
758
  return f[l + 1] === "!" && f[l + 2] === "A" && f[l + 3] === "T" && f[l + 4] === "T" && f[l + 5] === "L" && f[l + 6] === "I" && f[l + 7] === "S" && f[l + 8] === "T";
750
759
  }
751
- function a(f, l) {
760
+ function o(f, l) {
752
761
  return f[l + 1] === "!" && f[l + 2] === "N" && f[l + 3] === "O" && f[l + 4] === "T" && f[l + 5] === "A" && f[l + 6] === "T" && f[l + 7] === "I" && f[l + 8] === "O" && f[l + 9] === "N";
753
762
  }
754
763
  function s(f) {
@@ -767,10 +776,10 @@ var Br = { 2: (r) => {
767
776
  else {
768
777
  if (m && c(f, l)) {
769
778
  let p, y;
770
- l += 7, [p, y, l] = o(f, l + 1), y.indexOf("&") === -1 && (g[s(p)] = { regx: RegExp(`&${p};`, "g"), val: y });
779
+ l += 7, [p, y, l] = a(f, l + 1), y.indexOf("&") === -1 && (g[s(p)] = { regx: RegExp(`&${p};`, "g"), val: y });
771
780
  } else if (m && i(f, l)) l += 8;
772
781
  else if (m && h(f, l)) l += 8;
773
- else if (m && a(f, l)) l += 9;
782
+ else if (m && o(f, l)) l += 9;
774
783
  else {
775
784
  if (!u) throw new Error("Invalid DOCTYPE");
776
785
  w = !0;
@@ -782,18 +791,18 @@ var Br = { 2: (r) => {
782
791
  return { entities: g, i: l };
783
792
  };
784
793
  }, 63: (r, e) => {
785
- const t = { 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(n, o) {
786
- return o;
787
- }, attributeValueProcessor: function(n, o) {
788
- return o;
789
- }, stopNodes: [], alwaysCreateTextNode: !1, isArray: () => !1, commentPropName: !1, unpairedTags: [], processEntities: !0, htmlEntities: !1, ignoreDeclaration: !1, ignorePiTags: !1, transformTagName: !1, transformAttributeName: !1, updateTag: function(n, o, u) {
794
+ const t = { 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(n, a) {
795
+ return a;
796
+ }, attributeValueProcessor: function(n, a) {
797
+ return a;
798
+ }, stopNodes: [], alwaysCreateTextNode: !1, isArray: () => !1, commentPropName: !1, unpairedTags: [], processEntities: !0, htmlEntities: !1, ignoreDeclaration: !1, ignorePiTags: !1, transformTagName: !1, transformAttributeName: !1, updateTag: function(n, a, u) {
790
799
  return n;
791
800
  } };
792
801
  e.buildOptions = function(n) {
793
802
  return Object.assign({}, t, n);
794
803
  }, e.defaultOptions = t;
795
804
  }, 299: (r, e, t) => {
796
- const n = t(705), o = t(365), u = t(193), c = t(494), i = t(118);
805
+ const n = t(705), a = t(365), u = t(193), c = t(494), i = t(118);
797
806
  function h(b) {
798
807
  const E = Object.keys(b);
799
808
  for (let x = 0; x < E.length; x++) {
@@ -801,7 +810,7 @@ var Br = { 2: (r) => {
801
810
  this.lastEntities[T] = { regex: new RegExp("&" + T + ";", "g"), val: b[T] };
802
811
  }
803
812
  }
804
- function a(b, E, x, T, O, I, C) {
813
+ function o(b, E, x, T, O, I, C) {
805
814
  if (b !== void 0 && (this.options.trimValues && !T && (b = b.trim()), b.length > 0)) {
806
815
  C || (b = this.replaceEntitiesValue(b));
807
816
  const P = this.options.tagValueProcessor(E, b, x, O, I);
@@ -841,7 +850,7 @@ var Br = { 2: (r) => {
841
850
  const g = function(b) {
842
851
  b = b.replace(/\r\n?/g, `
843
852
  `);
844
- const E = new o("!xml");
853
+ const E = new a("!xml");
845
854
  let x = E, T = "", O = "";
846
855
  for (let I = 0; I < b.length; I++) if (b[I] === "<") if (b[I + 1] === "/") {
847
856
  const C = p(b, ">", I, "Closing Tag is not closed.");
@@ -859,7 +868,7 @@ var Br = { 2: (r) => {
859
868
  let C = y(b, I, !1, "?>");
860
869
  if (!C) throw new Error("Pi Tag is not closed.");
861
870
  if (T = this.saveTextToParentTag(T, x, O), !(this.options.ignoreDeclaration && C.tagName === "?xml" || this.options.ignorePiTags)) {
862
- const P = new o(C.tagName);
871
+ const P = new a(C.tagName);
863
872
  P.add(this.options.textNodeName, ""), C.tagName !== C.tagExp && C.attrExpPresent && (P[":@"] = this.buildAttributesMap(C.tagExp, O, C.tagName)), this.addChild(x, P, O);
864
873
  }
865
874
  I = C.closeIndex + 1;
@@ -893,15 +902,15 @@ var Br = { 2: (r) => {
893
902
  if (!L) throw new Error(`Unexpected end of ${F}`);
894
903
  I = L.i, $ = L.tagContent;
895
904
  }
896
- const z = new o(P);
905
+ const z = new a(P);
897
906
  P !== S && j && (z[":@"] = this.buildAttributesMap(S, O, P)), $ && ($ = this.parseTextData($, P, O, !0, j, !0, !0)), O = O.substr(0, O.lastIndexOf(".")), z.add(this.options.textNodeName, $), this.addChild(x, z, O);
898
907
  } else {
899
908
  if (S.length > 0 && S.lastIndexOf("/") === S.length - 1) {
900
909
  P[P.length - 1] === "/" ? (P = P.substr(0, P.length - 1), O = O.substr(0, O.length - 1), S = P) : S = S.substr(0, S.length - 1), this.options.transformTagName && (P = this.options.transformTagName(P));
901
- const $ = new o(P);
910
+ const $ = new a(P);
902
911
  P !== S && j && ($[":@"] = this.buildAttributesMap(S, O, P)), this.addChild(x, $, O), O = O.substr(0, O.lastIndexOf("."));
903
912
  } else {
904
- const $ = new o(P);
913
+ const $ = new a(P);
905
914
  this.tagsNodeStack.push(x), P !== S && j && ($[":@"] = this.buildAttributesMap(S, O, P)), this.addChild(x, $, O), x = $;
906
915
  }
907
916
  T = "", I = V;
@@ -998,11 +1007,11 @@ var Br = { 2: (r) => {
998
1007
  }
999
1008
  r.exports = class {
1000
1009
  constructor(b) {
1001
- this.options = b, 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, x) => String.fromCharCode(Number.parseInt(x, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) } }, this.addExternalEntities = h, this.parseXml = g, this.parseTextData = a, this.resolveNameSpace = s, this.buildAttributesMap = l, this.isItStopNode = v, this.replaceEntitiesValue = m, this.readStopNodeData = A, this.saveTextToParentTag = w, this.addChild = d, this.ignoreAttributesFn = i(this.options.ignoreAttributes);
1010
+ this.options = b, 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, x) => String.fromCharCode(Number.parseInt(x, 10)) }, num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) } }, this.addExternalEntities = h, this.parseXml = g, this.parseTextData = o, this.resolveNameSpace = s, this.buildAttributesMap = l, this.isItStopNode = v, this.replaceEntitiesValue = m, this.readStopNodeData = A, this.saveTextToParentTag = w, this.addChild = d, this.ignoreAttributesFn = i(this.options.ignoreAttributes);
1002
1011
  }
1003
1012
  };
1004
1013
  }, 338: (r, e, t) => {
1005
- const { buildOptions: n } = t(63), o = t(299), { prettify: u } = t(728), c = t(31);
1014
+ const { buildOptions: n } = t(63), a = t(299), { prettify: u } = t(728), c = t(31);
1006
1015
  r.exports = class {
1007
1016
  constructor(i) {
1008
1017
  this.externalEntities = {}, this.options = n(i);
@@ -1017,9 +1026,9 @@ var Br = { 2: (r) => {
1017
1026
  const f = c.validate(i, h);
1018
1027
  if (f !== !0) throw Error(`${f.err.msg}:${f.err.line}:${f.err.col}`);
1019
1028
  }
1020
- const a = new o(this.options);
1021
- a.addExternalEntities(this.externalEntities);
1022
- const s = a.parseXml(i);
1029
+ const o = new a(this.options);
1030
+ o.addExternalEntities(this.externalEntities);
1031
+ const s = o.parseXml(i);
1023
1032
  return this.options.preserveOrder || s === void 0 ? s : u(s, this.options);
1024
1033
  }
1025
1034
  addEntity(i, h) {
@@ -1031,42 +1040,42 @@ var Br = { 2: (r) => {
1031
1040
  };
1032
1041
  }, 728: (r, e) => {
1033
1042
  function t(c, i, h) {
1034
- let a;
1043
+ let o;
1035
1044
  const s = {};
1036
1045
  for (let f = 0; f < c.length; f++) {
1037
1046
  const l = c[f], g = n(l);
1038
1047
  let d = "";
1039
- if (d = h === void 0 ? g : h + "." + g, g === i.textNodeName) a === void 0 ? a = l[g] : a += "" + l[g];
1048
+ if (d = h === void 0 ? g : h + "." + g, g === i.textNodeName) o === void 0 ? o = l[g] : o += "" + l[g];
1040
1049
  else {
1041
1050
  if (g === void 0) continue;
1042
1051
  if (l[g]) {
1043
1052
  let m = t(l[g], i, d);
1044
1053
  const w = u(m, i);
1045
- l[":@"] ? o(m, l[":@"], d, i) : Object.keys(m).length !== 1 || m[i.textNodeName] === void 0 || i.alwaysCreateTextNode ? Object.keys(m).length === 0 && (i.alwaysCreateTextNode ? m[i.textNodeName] = "" : m = "") : m = m[i.textNodeName], s[g] !== void 0 && s.hasOwnProperty(g) ? (Array.isArray(s[g]) || (s[g] = [s[g]]), s[g].push(m)) : i.isArray(g, d, w) ? s[g] = [m] : s[g] = m;
1054
+ l[":@"] ? a(m, l[":@"], d, i) : Object.keys(m).length !== 1 || m[i.textNodeName] === void 0 || i.alwaysCreateTextNode ? Object.keys(m).length === 0 && (i.alwaysCreateTextNode ? m[i.textNodeName] = "" : m = "") : m = m[i.textNodeName], s[g] !== void 0 && s.hasOwnProperty(g) ? (Array.isArray(s[g]) || (s[g] = [s[g]]), s[g].push(m)) : i.isArray(g, d, w) ? s[g] = [m] : s[g] = m;
1046
1055
  }
1047
1056
  }
1048
1057
  }
1049
- return typeof a == "string" ? a.length > 0 && (s[i.textNodeName] = a) : a !== void 0 && (s[i.textNodeName] = a), s;
1058
+ return typeof o == "string" ? o.length > 0 && (s[i.textNodeName] = o) : o !== void 0 && (s[i.textNodeName] = o), s;
1050
1059
  }
1051
1060
  function n(c) {
1052
1061
  const i = Object.keys(c);
1053
1062
  for (let h = 0; h < i.length; h++) {
1054
- const a = i[h];
1055
- if (a !== ":@") return a;
1063
+ const o = i[h];
1064
+ if (o !== ":@") return o;
1056
1065
  }
1057
1066
  }
1058
- function o(c, i, h, a) {
1067
+ function a(c, i, h, o) {
1059
1068
  if (i) {
1060
1069
  const s = Object.keys(i), f = s.length;
1061
1070
  for (let l = 0; l < f; l++) {
1062
1071
  const g = s[l];
1063
- a.isArray(g, h + "." + g, !0, !0) ? c[g] = [i[g]] : c[g] = i[g];
1072
+ o.isArray(g, h + "." + g, !0, !0) ? c[g] = [i[g]] : c[g] = i[g];
1064
1073
  }
1065
1074
  }
1066
1075
  }
1067
1076
  function u(c, i) {
1068
- const { textNodeName: h } = i, a = Object.keys(c).length;
1069
- return a === 0 || !(a !== 1 || !c[h] && typeof c[h] != "boolean" && c[h] !== 0);
1077
+ const { textNodeName: h } = i, o = Object.keys(c).length;
1078
+ return o === 0 || !(o !== 1 || !c[h] && typeof c[h] != "boolean" && c[h] !== 0);
1070
1079
  }
1071
1080
  e.prettify = function(c, i) {
1072
1081
  return t(c, i);
@@ -1094,8 +1103,8 @@ var Br = { 2: (r) => {
1094
1103
  };
1095
1104
  }, 542: (r, e, t) => {
1096
1105
  (function() {
1097
- var n = t(298), o = t(526).utf8, u = t(135), c = t(526).bin, i = function(h, a) {
1098
- h.constructor == String ? h = a && a.encoding === "binary" ? c.stringToBytes(h) : o.stringToBytes(h) : u(h) ? h = Array.prototype.slice.call(h, 0) : Array.isArray(h) || h.constructor === Uint8Array || (h = h.toString());
1106
+ var n = t(298), a = t(526).utf8, u = t(135), c = t(526).bin, i = function(h, o) {
1107
+ h.constructor == String ? h = o && o.encoding === "binary" ? c.stringToBytes(h) : a.stringToBytes(h) : u(h) ? h = Array.prototype.slice.call(h, 0) : Array.isArray(h) || h.constructor === Uint8Array || (h = h.toString());
1099
1108
  for (var s = n.bytesToWords(h), f = 8 * h.length, l = 1732584193, g = -271733879, d = -1732584194, m = 271733878, w = 0; w < s.length; w++) s[w] = 16711935 & (s[w] << 8 | s[w] >>> 24) | 4278255360 & (s[w] << 24 | s[w] >>> 8);
1100
1109
  s[f >>> 5] |= 128 << f % 32, s[14 + (f + 64 >>> 9 << 4)] = f;
1101
1110
  var v = i._ff, p = i._gg, y = i._hh, A = i._ii;
@@ -1105,37 +1114,37 @@ var Br = { 2: (r) => {
1105
1114
  }
1106
1115
  return n.endian([l, g, d, m]);
1107
1116
  };
1108
- i._ff = function(h, a, s, f, l, g, d) {
1109
- var m = h + (a & s | ~a & f) + (l >>> 0) + d;
1110
- return (m << g | m >>> 32 - g) + a;
1111
- }, i._gg = function(h, a, s, f, l, g, d) {
1112
- var m = h + (a & f | s & ~f) + (l >>> 0) + d;
1113
- return (m << g | m >>> 32 - g) + a;
1114
- }, i._hh = function(h, a, s, f, l, g, d) {
1115
- var m = h + (a ^ s ^ f) + (l >>> 0) + d;
1116
- return (m << g | m >>> 32 - g) + a;
1117
- }, i._ii = function(h, a, s, f, l, g, d) {
1118
- var m = h + (s ^ (a | ~f)) + (l >>> 0) + d;
1119
- return (m << g | m >>> 32 - g) + a;
1120
- }, i._blocksize = 16, i._digestsize = 16, r.exports = function(h, a) {
1117
+ i._ff = function(h, o, s, f, l, g, d) {
1118
+ var m = h + (o & s | ~o & f) + (l >>> 0) + d;
1119
+ return (m << g | m >>> 32 - g) + o;
1120
+ }, i._gg = function(h, o, s, f, l, g, d) {
1121
+ var m = h + (o & f | s & ~f) + (l >>> 0) + d;
1122
+ return (m << g | m >>> 32 - g) + o;
1123
+ }, i._hh = function(h, o, s, f, l, g, d) {
1124
+ var m = h + (o ^ s ^ f) + (l >>> 0) + d;
1125
+ return (m << g | m >>> 32 - g) + o;
1126
+ }, i._ii = function(h, o, s, f, l, g, d) {
1127
+ var m = h + (s ^ (o | ~f)) + (l >>> 0) + d;
1128
+ return (m << g | m >>> 32 - g) + o;
1129
+ }, i._blocksize = 16, i._digestsize = 16, r.exports = function(h, o) {
1121
1130
  if (h == null) throw new Error("Illegal argument " + h);
1122
- var s = n.wordsToBytes(i(h, a));
1123
- return a && a.asBytes ? s : a && a.asString ? c.bytesToString(s) : n.bytesToHex(s);
1131
+ var s = n.wordsToBytes(i(h, o));
1132
+ return o && o.asBytes ? s : o && o.asString ? c.bytesToString(s) : n.bytesToHex(s);
1124
1133
  };
1125
1134
  })();
1126
1135
  }, 285: (r, e, t) => {
1127
1136
  var n = t(2);
1128
1137
  r.exports = function(v) {
1129
1138
  return v ? (v.substr(0, 2) === "{}" && (v = "\\{\\}" + v.substr(2)), w((function(p) {
1130
- return p.split("\\\\").join(o).split("\\{").join(u).split("\\}").join(c).split("\\,").join(i).split("\\.").join(h);
1139
+ return p.split("\\\\").join(a).split("\\{").join(u).split("\\}").join(c).split("\\,").join(i).split("\\.").join(h);
1131
1140
  })(v), !0).map(s)) : [];
1132
1141
  };
1133
- var o = "\0SLASH" + Math.random() + "\0", u = "\0OPEN" + Math.random() + "\0", c = "\0CLOSE" + Math.random() + "\0", i = "\0COMMA" + Math.random() + "\0", h = "\0PERIOD" + Math.random() + "\0";
1134
- function a(v) {
1142
+ var a = "\0SLASH" + Math.random() + "\0", u = "\0OPEN" + Math.random() + "\0", c = "\0CLOSE" + Math.random() + "\0", i = "\0COMMA" + Math.random() + "\0", h = "\0PERIOD" + Math.random() + "\0";
1143
+ function o(v) {
1135
1144
  return parseInt(v, 10) == v ? parseInt(v, 10) : v.charCodeAt(0);
1136
1145
  }
1137
1146
  function s(v) {
1138
- return v.split(o).join("\\").split(u).join("{").split(c).join("}").split(i).join(",").split(h).join(".");
1147
+ return v.split(a).join("\\").split(u).join("{").split(c).join("}").split(i).join(",").split(h).join(".");
1139
1148
  }
1140
1149
  function f(v) {
1141
1150
  if (!v) return [""];
@@ -1174,7 +1183,7 @@ var Br = { 2: (r) => {
1174
1183
  return A.pre + T[0] + wr;
1175
1184
  }));
1176
1185
  if (P) {
1177
- var S = a(T[0]), j = a(T[1]), V = Math.max(T[0].length, T[1].length), _ = T.length == 3 ? Math.abs(a(T[2])) : 1, $ = d;
1186
+ var S = o(T[0]), j = o(T[1]), V = Math.max(T[0].length, T[1].length), _ = T.length == 3 ? Math.abs(o(T[2])) : 1, $ = d;
1178
1187
  j < S && (_ *= -1, $ = m);
1179
1188
  var z = T.some(g);
1180
1189
  O = [];
@@ -1199,14 +1208,14 @@ var Br = { 2: (r) => {
1199
1208
  return y;
1200
1209
  }
1201
1210
  }, 829: (r) => {
1202
- function e(a) {
1211
+ function e(o) {
1203
1212
  return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
1204
1213
  return typeof s;
1205
1214
  } : function(s) {
1206
1215
  return s && typeof Symbol == "function" && s.constructor === Symbol && s !== Symbol.prototype ? "symbol" : typeof s;
1207
- }, e(a);
1216
+ }, e(o);
1208
1217
  }
1209
- function t(a) {
1218
+ function t(o) {
1210
1219
  var s = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1211
1220
  return t = function(f) {
1212
1221
  if (f === null || (l = f, Function.toString.call(l).indexOf("[native code]") === -1)) return f;
@@ -1219,10 +1228,10 @@ var Br = { 2: (r) => {
1219
1228
  function g() {
1220
1229
  return n(f, arguments, u(this).constructor);
1221
1230
  }
1222
- return g.prototype = Object.create(f.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), o(g, f);
1223
- }, t(a);
1231
+ return g.prototype = Object.create(f.prototype, { constructor: { value: g, enumerable: !1, writable: !0, configurable: !0 } }), a(g, f);
1232
+ }, t(o);
1224
1233
  }
1225
- function n(a, s, f) {
1234
+ function n(o, s, f) {
1226
1235
  return n = (function() {
1227
1236
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1228
1237
  if (typeof Proxy == "function") return !0;
@@ -1236,20 +1245,20 @@ var Br = { 2: (r) => {
1236
1245
  var m = [null];
1237
1246
  m.push.apply(m, g);
1238
1247
  var w = new (Function.bind.apply(l, m))();
1239
- return d && o(w, d.prototype), w;
1248
+ return d && a(w, d.prototype), w;
1240
1249
  }, n.apply(null, arguments);
1241
1250
  }
1242
- function o(a, s) {
1243
- return o = Object.setPrototypeOf || function(f, l) {
1251
+ function a(o, s) {
1252
+ return a = Object.setPrototypeOf || function(f, l) {
1244
1253
  return f.__proto__ = l, f;
1245
- }, o(a, s);
1254
+ }, a(o, s);
1246
1255
  }
1247
- function u(a) {
1256
+ function u(o) {
1248
1257
  return u = Object.setPrototypeOf ? Object.getPrototypeOf : function(s) {
1249
1258
  return s.__proto__ || Object.getPrototypeOf(s);
1250
- }, u(a);
1259
+ }, u(o);
1251
1260
  }
1252
- var c = (function(a) {
1261
+ var c = (function(o) {
1253
1262
  function s(f) {
1254
1263
  var l;
1255
1264
  return (function(g, d) {
@@ -1263,37 +1272,37 @@ var Br = { 2: (r) => {
1263
1272
  }
1264
1273
  return (function(f, l) {
1265
1274
  if (typeof l != "function" && l !== null) throw new TypeError("Super expression must either be null or a function");
1266
- f.prototype = Object.create(l && l.prototype, { constructor: { value: f, writable: !0, configurable: !0 } }), l && o(f, l);
1267
- })(s, a), s;
1275
+ f.prototype = Object.create(l && l.prototype, { constructor: { value: f, writable: !0, configurable: !0 } }), l && a(f, l);
1276
+ })(s, o), s;
1268
1277
  })(t(Error));
1269
- function i(a, s) {
1278
+ function i(o, s) {
1270
1279
  for (var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
1271
1280
  }, l = s.split("."), g = l.length, d = function(v) {
1272
1281
  var p = l[v];
1273
- if (!a) return { v: void 0 };
1282
+ if (!o) return { v: void 0 };
1274
1283
  if (p === "+") {
1275
- if (Array.isArray(a)) return { v: a.map((function(A, N) {
1284
+ if (Array.isArray(o)) return { v: o.map((function(A, N) {
1276
1285
  var b = l.slice(v + 1);
1277
- return b.length > 0 ? i(A, b.join("."), f) : f(a, N, l, v);
1286
+ return b.length > 0 ? i(A, b.join("."), f) : f(o, N, l, v);
1278
1287
  })) };
1279
1288
  var y = l.slice(0, v).join(".");
1280
1289
  throw new Error("Object at wildcard (".concat(y, ") is not an array"));
1281
1290
  }
1282
- a = f(a, p, l, v);
1291
+ o = f(o, p, l, v);
1283
1292
  }, m = 0; m < g; m++) {
1284
1293
  var w = d(m);
1285
1294
  if (e(w) === "object") return w.v;
1286
1295
  }
1287
- return a;
1296
+ return o;
1288
1297
  }
1289
- function h(a, s) {
1290
- return a.length === s + 1;
1298
+ function h(o, s) {
1299
+ return o.length === s + 1;
1291
1300
  }
1292
- r.exports = { set: function(a, s, f) {
1293
- if (e(a) != "object" || a === null || s === void 0) return a;
1294
- if (typeof s == "number") return a[s] = f, a[s];
1301
+ r.exports = { set: function(o, s, f) {
1302
+ if (e(o) != "object" || o === null || s === void 0) return o;
1303
+ if (typeof s == "number") return o[s] = f, o[s];
1295
1304
  try {
1296
- return i(a, s, (function(l, g, d, m) {
1305
+ return i(o, s, (function(l, g, d, m) {
1297
1306
  if (l === Reflect.getPrototypeOf({})) throw new c("Attempting to mutate Object.prototype");
1298
1307
  if (!l[g]) {
1299
1308
  var w = Number.isInteger(Number(d[m + 1])), v = d[m + 1] === "+";
@@ -1303,39 +1312,39 @@ var Br = { 2: (r) => {
1303
1312
  }));
1304
1313
  } catch (l) {
1305
1314
  if (l instanceof c) throw l;
1306
- return a;
1315
+ return o;
1307
1316
  }
1308
- }, get: function(a, s) {
1309
- if (e(a) != "object" || a === null || s === void 0) return a;
1310
- if (typeof s == "number") return a[s];
1317
+ }, get: function(o, s) {
1318
+ if (e(o) != "object" || o === null || s === void 0) return o;
1319
+ if (typeof s == "number") return o[s];
1311
1320
  try {
1312
- return i(a, s, (function(f, l) {
1321
+ return i(o, s, (function(f, l) {
1313
1322
  return f[l];
1314
1323
  }));
1315
1324
  } catch {
1316
- return a;
1325
+ return o;
1317
1326
  }
1318
- }, has: function(a, s) {
1327
+ }, has: function(o, s) {
1319
1328
  var f = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1320
- if (e(a) != "object" || a === null || s === void 0) return !1;
1321
- if (typeof s == "number") return s in a;
1329
+ if (e(o) != "object" || o === null || s === void 0) return !1;
1330
+ if (typeof s == "number") return s in o;
1322
1331
  try {
1323
1332
  var l = !1;
1324
- return i(a, s, (function(g, d, m, w) {
1333
+ return i(o, s, (function(g, d, m, w) {
1325
1334
  if (!h(m, w)) return g && g[d];
1326
1335
  l = f.own ? g.hasOwnProperty(d) : d in g;
1327
1336
  })), l;
1328
1337
  } catch {
1329
1338
  return !1;
1330
1339
  }
1331
- }, hasOwn: function(a, s, f) {
1332
- return this.has(a, s, f || { own: !0 });
1333
- }, isIn: function(a, s, f) {
1340
+ }, hasOwn: function(o, s, f) {
1341
+ return this.has(o, s, f || { own: !0 });
1342
+ }, isIn: function(o, s, f) {
1334
1343
  var l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
1335
- if (e(a) != "object" || a === null || s === void 0) return !1;
1344
+ if (e(o) != "object" || o === null || s === void 0) return !1;
1336
1345
  try {
1337
1346
  var g = !1, d = !1;
1338
- return i(a, s, (function(m, w, v, p) {
1347
+ return i(o, s, (function(m, w, v, p) {
1339
1348
  return g = g || m === f || !!m && m[w] === f, d = h(v, p) && e(m) === "object" && w in m, m && m[w];
1340
1349
  })), l.validPath ? g && d : g;
1341
1350
  } catch {
@@ -1343,72 +1352,72 @@ var Br = { 2: (r) => {
1343
1352
  }
1344
1353
  }, ObjectPrototypeMutationError: c };
1345
1354
  }, 47: (r, e, t) => {
1346
- var n = t(410), o = function(a) {
1347
- return typeof a == "string";
1355
+ var n = t(410), a = function(o) {
1356
+ return typeof o == "string";
1348
1357
  };
1349
- function u(a, s) {
1350
- for (var f = [], l = 0; l < a.length; l++) {
1351
- var g = a[l];
1358
+ function u(o, s) {
1359
+ for (var f = [], l = 0; l < o.length; l++) {
1360
+ var g = o[l];
1352
1361
  g && g !== "." && (g === ".." ? f.length && f[f.length - 1] !== ".." ? f.pop() : s && f.push("..") : f.push(g));
1353
1362
  }
1354
1363
  return f;
1355
1364
  }
1356
1365
  var c = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/, i = {};
1357
- function h(a) {
1358
- return c.exec(a).slice(1);
1366
+ function h(o) {
1367
+ return c.exec(o).slice(1);
1359
1368
  }
1360
1369
  i.resolve = function() {
1361
- for (var a = "", s = !1, f = arguments.length - 1; f >= -1 && !s; f--) {
1370
+ for (var o = "", s = !1, f = arguments.length - 1; f >= -1 && !s; f--) {
1362
1371
  var l = f >= 0 ? arguments[f] : oe.cwd();
1363
- if (!o(l)) throw new TypeError("Arguments to path.resolve must be strings");
1364
- l && (a = l + "/" + a, s = l.charAt(0) === "/");
1365
- }
1366
- return (s ? "/" : "") + (a = u(a.split("/"), !s).join("/")) || ".";
1367
- }, i.normalize = function(a) {
1368
- var s = i.isAbsolute(a), f = a.substr(-1) === "/";
1369
- return (a = u(a.split("/"), !s).join("/")) || s || (a = "."), a && f && (a += "/"), (s ? "/" : "") + a;
1370
- }, i.isAbsolute = function(a) {
1371
- return a.charAt(0) === "/";
1372
+ if (!a(l)) throw new TypeError("Arguments to path.resolve must be strings");
1373
+ l && (o = l + "/" + o, s = l.charAt(0) === "/");
1374
+ }
1375
+ return (s ? "/" : "") + (o = u(o.split("/"), !s).join("/")) || ".";
1376
+ }, i.normalize = function(o) {
1377
+ var s = i.isAbsolute(o), f = o.substr(-1) === "/";
1378
+ return (o = u(o.split("/"), !s).join("/")) || s || (o = "."), o && f && (o += "/"), (s ? "/" : "") + o;
1379
+ }, i.isAbsolute = function(o) {
1380
+ return o.charAt(0) === "/";
1372
1381
  }, i.join = function() {
1373
- for (var a = "", s = 0; s < arguments.length; s++) {
1382
+ for (var o = "", s = 0; s < arguments.length; s++) {
1374
1383
  var f = arguments[s];
1375
- if (!o(f)) throw new TypeError("Arguments to path.join must be strings");
1376
- f && (a += a ? "/" + f : f);
1384
+ if (!a(f)) throw new TypeError("Arguments to path.join must be strings");
1385
+ f && (o += o ? "/" + f : f);
1377
1386
  }
1378
- return i.normalize(a);
1379
- }, i.relative = function(a, s) {
1387
+ return i.normalize(o);
1388
+ }, i.relative = function(o, s) {
1380
1389
  function f(p) {
1381
1390
  for (var y = 0; y < p.length && p[y] === ""; y++) ;
1382
1391
  for (var A = p.length - 1; A >= 0 && p[A] === ""; A--) ;
1383
1392
  return y > A ? [] : p.slice(y, A + 1);
1384
1393
  }
1385
- a = i.resolve(a).substr(1), s = i.resolve(s).substr(1);
1386
- for (var l = f(a.split("/")), g = f(s.split("/")), d = Math.min(l.length, g.length), m = d, w = 0; w < d; w++) if (l[w] !== g[w]) {
1394
+ o = i.resolve(o).substr(1), s = i.resolve(s).substr(1);
1395
+ for (var l = f(o.split("/")), g = f(s.split("/")), d = Math.min(l.length, g.length), m = d, w = 0; w < d; w++) if (l[w] !== g[w]) {
1387
1396
  m = w;
1388
1397
  break;
1389
1398
  }
1390
1399
  var v = [];
1391
1400
  for (w = m; w < l.length; w++) v.push("..");
1392
1401
  return (v = v.concat(g.slice(m))).join("/");
1393
- }, i._makeLong = function(a) {
1394
- return a;
1395
- }, i.dirname = function(a) {
1396
- var s = h(a), f = s[0], l = s[1];
1402
+ }, i._makeLong = function(o) {
1403
+ return o;
1404
+ }, i.dirname = function(o) {
1405
+ var s = h(o), f = s[0], l = s[1];
1397
1406
  return f || l ? (l && (l = l.substr(0, l.length - 1)), f + l) : ".";
1398
- }, i.basename = function(a, s) {
1399
- var f = h(a)[2];
1407
+ }, i.basename = function(o, s) {
1408
+ var f = h(o)[2];
1400
1409
  return s && f.substr(-1 * s.length) === s && (f = f.substr(0, f.length - s.length)), f;
1401
- }, i.extname = function(a) {
1402
- return h(a)[3];
1403
- }, i.format = function(a) {
1404
- if (!n.isObject(a)) throw new TypeError("Parameter 'pathObject' must be an object, not " + typeof a);
1405
- var s = a.root || "";
1406
- if (!o(s)) throw new TypeError("'pathObject.root' must be a string or undefined, not " + typeof a.root);
1407
- return (a.dir ? a.dir + i.sep : "") + (a.base || "");
1408
- }, i.parse = function(a) {
1409
- if (!o(a)) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof a);
1410
- var s = h(a);
1411
- if (!s || s.length !== 4) throw new TypeError("Invalid path '" + a + "'");
1410
+ }, i.extname = function(o) {
1411
+ return h(o)[3];
1412
+ }, i.format = function(o) {
1413
+ if (!n.isObject(o)) throw new TypeError("Parameter 'pathObject' must be an object, not " + typeof o);
1414
+ var s = o.root || "";
1415
+ if (!a(s)) throw new TypeError("'pathObject.root' must be a string or undefined, not " + typeof o.root);
1416
+ return (o.dir ? o.dir + i.sep : "") + (o.base || "");
1417
+ }, i.parse = function(o) {
1418
+ if (!a(o)) throw new TypeError("Parameter 'pathString' must be a string, not " + typeof o);
1419
+ var s = h(o);
1420
+ if (!s || s.length !== 4) throw new TypeError("Invalid path '" + o + "'");
1412
1421
  return s[1] = s[1] || "", s[2] = s[2] || "", s[3] = s[3] || "", { root: s[0], dir: s[0] + s[1].slice(0, s[1].length - 1), base: s[2], ext: s[3], name: s[2].slice(0, s[2].length - s[3].length) };
1413
1422
  }, i.sep = "/", i.delimiter = ":", r.exports = i;
1414
1423
  }, 647: (r, e) => {
@@ -1420,7 +1429,7 @@ var Br = { 2: (r) => {
1420
1429
  return null;
1421
1430
  }
1422
1431
  }
1423
- function o(u) {
1432
+ function a(u) {
1424
1433
  try {
1425
1434
  return encodeURIComponent(u);
1426
1435
  } catch {
@@ -1429,16 +1438,16 @@ var Br = { 2: (r) => {
1429
1438
  }
1430
1439
  e.stringify = function(u, c) {
1431
1440
  c = c || "";
1432
- var i, h, a = [];
1441
+ var i, h, o = [];
1433
1442
  for (h in typeof c != "string" && (c = "?"), u) if (t.call(u, h)) {
1434
- if ((i = u[h]) || i != null && !isNaN(i) || (i = ""), h = o(h), i = o(i), h === null || i === null) continue;
1435
- a.push(h + "=" + i);
1443
+ if ((i = u[h]) || i != null && !isNaN(i) || (i = ""), h = a(h), i = a(i), h === null || i === null) continue;
1444
+ o.push(h + "=" + i);
1436
1445
  }
1437
- return a.length ? c + a.join("&") : "";
1446
+ return o.length ? c + o.join("&") : "";
1438
1447
  }, e.parse = function(u) {
1439
1448
  for (var c, i = /([^=?#&]+)=?([^&]*)/g, h = {}; c = i.exec(u); ) {
1440
- var a = n(c[1]), s = n(c[2]);
1441
- a === null || s === null || a in h || (h[a] = s);
1449
+ var o = n(c[1]), s = n(c[2]);
1450
+ o === null || s === null || o in h || (h[o] = s);
1442
1451
  }
1443
1452
  return h;
1444
1453
  };
@@ -1465,30 +1474,30 @@ var Br = { 2: (r) => {
1465
1474
  const e = /^[-+]?0x[a-fA-F0-9]+$/, t = /^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;
1466
1475
  !Number.parseInt && window.parseInt && (Number.parseInt = window.parseInt), !Number.parseFloat && window.parseFloat && (Number.parseFloat = window.parseFloat);
1467
1476
  const n = { hex: !0, leadingZeros: !0, decimalPoint: ".", eNotation: !0 };
1468
- r.exports = function(o) {
1477
+ r.exports = function(a) {
1469
1478
  let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1470
- if (u = Object.assign({}, n, u), !o || typeof o != "string") return o;
1471
- let c = o.trim();
1472
- if (u.skipLike !== void 0 && u.skipLike.test(c)) return o;
1479
+ if (u = Object.assign({}, n, u), !a || typeof a != "string") return a;
1480
+ let c = a.trim();
1481
+ if (u.skipLike !== void 0 && u.skipLike.test(c)) return a;
1473
1482
  if (u.hex && e.test(c)) return Number.parseInt(c, 16);
1474
1483
  {
1475
1484
  const h = t.exec(c);
1476
1485
  if (h) {
1477
- const a = h[1], s = h[2];
1486
+ const o = h[1], s = h[2];
1478
1487
  let f = ((i = h[3]) && i.indexOf(".") !== -1 && ((i = i.replace(/0+$/, "")) === "." ? i = "0" : i[0] === "." ? i = "0" + i : i[i.length - 1] === "." && (i = i.substr(0, i.length - 1))), i);
1479
1488
  const l = h[4] || h[6];
1480
- if (!u.leadingZeros && s.length > 0 && a && c[2] !== "." || !u.leadingZeros && s.length > 0 && !a && c[1] !== ".") return o;
1489
+ if (!u.leadingZeros && s.length > 0 && o && c[2] !== "." || !u.leadingZeros && s.length > 0 && !o && c[1] !== ".") return a;
1481
1490
  {
1482
1491
  const g = Number(c), d = "" + g;
1483
- return d.search(/[eE]/) !== -1 || l ? u.eNotation ? g : o : c.indexOf(".") !== -1 ? d === "0" && f === "" || d === f || a && d === "-" + f ? g : o : s ? f === d || a + f === d ? g : o : c === d || c === a + d ? g : o;
1492
+ return d.search(/[eE]/) !== -1 || l ? u.eNotation ? g : a : c.indexOf(".") !== -1 ? d === "0" && f === "" || d === f || o && d === "-" + f ? g : a : s ? f === d || o + f === d ? g : a : c === d || c === o + d ? g : a;
1484
1493
  }
1485
1494
  }
1486
- return o;
1495
+ return a;
1487
1496
  }
1488
1497
  var i;
1489
1498
  };
1490
1499
  }, 737: (r, e, t) => {
1491
- var n = t(670), o = t(647), u = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, c = /[\n\r\t]/g, i = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, h = /:\d+$/, a = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, s = /^[a-zA-Z]:/;
1500
+ var n = t(670), a = t(647), u = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, c = /[\n\r\t]/g, i = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, h = /:\d+$/, o = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, s = /^[a-zA-Z]:/;
1492
1501
  function f(p) {
1493
1502
  return (p || "").toString().replace(u, "");
1494
1503
  }
@@ -1510,13 +1519,13 @@ var Br = { 2: (r) => {
1510
1519
  }
1511
1520
  function w(p, y) {
1512
1521
  p = (p = f(p)).replace(c, ""), y = y || {};
1513
- var A, N = a.exec(p), b = N[1] ? N[1].toLowerCase() : "", E = !!N[2], x = !!N[3], T = 0;
1522
+ var A, N = o.exec(p), b = N[1] ? N[1].toLowerCase() : "", E = !!N[2], x = !!N[3], T = 0;
1514
1523
  return E ? x ? (A = N[2] + N[3] + N[4], T = N[2].length + N[3].length) : (A = N[2] + N[4], T = N[2].length) : x ? (A = N[3] + N[4], T = N[3].length) : A = N[4], b === "file:" ? T >= 2 && (A = A.slice(2)) : m(b) ? A = N[4] : b ? E && (A = A.slice(2)) : T >= 2 && m(y.protocol) && (A = N[4]), { protocol: b, slashes: E || m(b), slashesCount: T, rest: A };
1515
1524
  }
1516
1525
  function v(p, y, A) {
1517
1526
  if (p = (p = f(p)).replace(c, ""), !(this instanceof v)) return new v(p, y, A);
1518
1527
  var N, b, E, x, T, O, I = l.slice(), C = typeof y, P = this, F = 0;
1519
- for (C !== "object" && C !== "string" && (A = y, y = null), A && typeof A != "function" && (A = o.parse), N = !(b = w(p || "", y = d(y))).protocol && !b.slashes, P.slashes = b.slashes || N && y.slashes, P.protocol = b.protocol || y.protocol || "", p = b.rest, (b.protocol === "file:" && (b.slashesCount !== 2 || s.test(p)) || !b.slashes && (b.protocol || b.slashesCount < 2 || !m(P.protocol))) && (I[3] = [/(.*)/, "pathname"]); F < I.length; F++) typeof (x = I[F]) != "function" ? (E = x[0], O = x[1], E != E ? P[O] = p : typeof E == "string" ? ~(T = E === "@" ? p.lastIndexOf(E) : p.indexOf(E)) && (typeof x[2] == "number" ? (P[O] = p.slice(0, T), p = p.slice(T + x[2])) : (P[O] = p.slice(T), p = p.slice(0, T))) : (T = E.exec(p)) && (P[O] = T[1], p = p.slice(0, T.index)), P[O] = P[O] || N && x[3] && y[O] || "", x[4] && (P[O] = P[O].toLowerCase())) : p = x(p, P);
1528
+ for (C !== "object" && C !== "string" && (A = y, y = null), A && typeof A != "function" && (A = a.parse), N = !(b = w(p || "", y = d(y))).protocol && !b.slashes, P.slashes = b.slashes || N && y.slashes, P.protocol = b.protocol || y.protocol || "", p = b.rest, (b.protocol === "file:" && (b.slashesCount !== 2 || s.test(p)) || !b.slashes && (b.protocol || b.slashesCount < 2 || !m(P.protocol))) && (I[3] = [/(.*)/, "pathname"]); F < I.length; F++) typeof (x = I[F]) != "function" ? (E = x[0], O = x[1], E != E ? P[O] = p : typeof E == "string" ? ~(T = E === "@" ? p.lastIndexOf(E) : p.indexOf(E)) && (typeof x[2] == "number" ? (P[O] = p.slice(0, T), p = p.slice(T + x[2])) : (P[O] = p.slice(T), p = p.slice(0, T))) : (T = E.exec(p)) && (P[O] = T[1], p = p.slice(0, T.index)), P[O] = P[O] || N && x[3] && y[O] || "", x[4] && (P[O] = P[O].toLowerCase())) : p = x(p, P);
1520
1529
  A && (P.query = A(P.query)), N && y.slashes && P.pathname.charAt(0) !== "/" && (P.pathname !== "" || y.pathname !== "") && (P.pathname = (function(S, j) {
1521
1530
  if (S === "") return j;
1522
1531
  for (var V = (j || "/").split("/").slice(0, -1).concat(S.split("/")), _ = V.length, $ = V[_ - 1], z = !1, L = 0; _--; ) V[_] === "." ? V.splice(_, 1) : V[_] === ".." ? (V.splice(_, 1), L++) : L && (_ === 0 && (z = !0), V.splice(_, 1), L--);
@@ -1527,7 +1536,7 @@ var Br = { 2: (r) => {
1527
1536
  var N = this;
1528
1537
  switch (p) {
1529
1538
  case "query":
1530
- typeof y == "string" && y.length && (y = (A || o.parse)(y)), N[p] = y;
1539
+ typeof y == "string" && y.length && (y = (A || a.parse)(y)), N[p] = y;
1531
1540
  break;
1532
1541
  case "port":
1533
1542
  N[p] = y, n(y, N.protocol) ? y && (N.host = N.hostname + ":" + y) : (N.host = N.hostname, N[p] = "");
@@ -1562,12 +1571,12 @@ var Br = { 2: (r) => {
1562
1571
  }
1563
1572
  return N.auth = N.password ? N.username + ":" + N.password : N.username, N.origin = N.protocol !== "file:" && m(N.protocol) && N.host ? N.protocol + "//" + N.host : "null", N.href = N.toString(), N;
1564
1573
  }, toString: function(p) {
1565
- p && typeof p == "function" || (p = o.stringify);
1574
+ p && typeof p == "function" || (p = a.stringify);
1566
1575
  var y, A = this, N = A.host, b = A.protocol;
1567
1576
  b && b.charAt(b.length - 1) !== ":" && (b += ":");
1568
1577
  var E = b + (A.protocol && A.slashes || m(A.protocol) ? "//" : "");
1569
1578
  return A.username ? (E += A.username, A.password && (E += ":" + A.password), E += "@") : A.password ? (E += ":" + A.password, E += "@") : A.protocol !== "file:" && m(A.protocol) && !N && A.pathname !== "/" && (E += "@"), (N[N.length - 1] === ":" || h.test(A.hostname) && !A.port) && (N += ":"), E += N + A.pathname, (y = typeof A.query == "object" ? p(A.query) : A.query) && (E += y.charAt(0) !== "?" ? "?" + y : y), A.hash && (E += A.hash), E;
1570
- } }, v.extractProtocol = w, v.location = d, v.trimLeft = f, v.qs = o, r.exports = v;
1579
+ } }, v.extractProtocol = w, v.location = d, v.trimLeft = f, v.qs = a, r.exports = v;
1571
1580
  }, 410: () => {
1572
1581
  }, 388: () => {
1573
1582
  }, 805: () => {
@@ -1598,20 +1607,20 @@ function Qe(r) {
1598
1607
  }
1599
1608
  class K extends Error {
1600
1609
  constructor(e, t) {
1601
- const n = [...arguments], { options: o, shortMessage: u } = (function(i) {
1602
- let h, a = "";
1610
+ const n = [...arguments], { options: a, shortMessage: u } = (function(i) {
1611
+ let h, o = "";
1603
1612
  if (i.length === 0) h = {};
1604
- else if (Qe(i[0])) h = { cause: i[0] }, a = i.slice(1).join(" ") || "";
1605
- else if (i[0] && typeof i[0] == "object") h = Object.assign({}, i[0]), a = i.slice(1).join(" ") || "";
1613
+ else if (Qe(i[0])) h = { cause: i[0] }, o = i.slice(1).join(" ") || "";
1614
+ else if (i[0] && typeof i[0] == "object") h = Object.assign({}, i[0]), o = i.slice(1).join(" ") || "";
1606
1615
  else {
1607
1616
  if (typeof i[0] != "string") throw new Error("Invalid arguments passed to Layerr");
1608
- h = {}, a = a = i.join(" ") || "";
1617
+ h = {}, o = o = i.join(" ") || "";
1609
1618
  }
1610
- return { options: h, shortMessage: a };
1619
+ return { options: h, shortMessage: o };
1611
1620
  })(n);
1612
1621
  let c = u;
1613
- if (o.cause && (c = `${c}: ${o.cause.message}`), super(c), this.message = c, o.name && typeof o.name == "string" ? this.name = o.name : this.name = "Layerr", o.cause && Object.defineProperty(this, "_cause", { value: o.cause }), Object.defineProperty(this, "_info", { value: {} }), o.info && typeof o.info == "object" && Object.assign(this._info, o.info), Error.captureStackTrace) {
1614
- const i = o.constructorOpt || this.constructor;
1622
+ if (a.cause && (c = `${c}: ${a.cause.message}`), super(c), this.message = c, a.name && typeof a.name == "string" ? this.name = a.name : this.name = "Layerr", a.cause && Object.defineProperty(this, "_cause", { value: a.cause }), Object.defineProperty(this, "_info", { value: {} }), a.info && typeof a.info == "object" && Object.assign(this._info, a.info), Error.captureStackTrace) {
1623
+ const i = a.constructorOpt || this.constructor;
1615
1624
  Error.captureStackTrace(this, i);
1616
1625
  }
1617
1626
  }
@@ -1659,7 +1668,7 @@ function U() {
1659
1668
  for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t];
1660
1669
  return (function() {
1661
1670
  return (function(n) {
1662
- var o = [];
1671
+ var a = [];
1663
1672
  if (n.length === 0) return "";
1664
1673
  if (typeof n[0] != "string") throw new TypeError("Url must be a string. Received " + n[0]);
1665
1674
  if (n[0].match(/^[^/:]+:\/*$/) && n.length > 1) {
@@ -1670,20 +1679,20 @@ function U() {
1670
1679
  for (var c = 0; c < n.length; c++) {
1671
1680
  var i = n[c];
1672
1681
  if (typeof i != "string") throw new TypeError("Url must be a string. Received " + i);
1673
- i !== "" && (c > 0 && (i = i.replace(/^[\/]+/, "")), i = c < n.length - 1 ? i.replace(/[\/]+$/, "") : i.replace(/[\/]+$/, "/"), o.push(i));
1682
+ i !== "" && (c > 0 && (i = i.replace(/^[\/]+/, "")), i = c < n.length - 1 ? i.replace(/[\/]+$/, "") : i.replace(/[\/]+$/, "/"), a.push(i));
1674
1683
  }
1675
- var h = o.join("/"), a = (h = h.replace(/\/(\?|&|#[^!])/g, "$1")).split("?");
1676
- return a.shift() + (a.length > 0 ? "?" : "") + a.join("&");
1684
+ var h = a.join("/"), o = (h = h.replace(/\/(\?|&|#[^!])/g, "$1")).split("?");
1685
+ return o.shift() + (o.length > 0 ? "?" : "") + o.join("&");
1677
1686
  })(typeof arguments[0] == "object" ? arguments[0] : [].slice.call(arguments));
1678
- })(e.reduce(((n, o, u) => ((u === 0 || o !== "/" || o === "/" && n[n.length - 1] !== "/") && n.push(o), n)), []));
1687
+ })(e.reduce(((n, a, u) => ((u === 0 || a !== "/" || a === "/" && n[n.length - 1] !== "/") && n.push(a), n)), []));
1679
1688
  }
1680
- var zr = R(542), he = R.n(zr);
1689
+ var zr = R(542), fe = R.n(zr);
1681
1690
  const Hr = "abcdef0123456789";
1682
1691
  function wt(r, e) {
1683
- const t = r.url.replace("//", ""), n = t.indexOf("/") == -1 ? "/" : t.slice(t.indexOf("/")), o = r.method ? r.method.toUpperCase() : "GET", u = !!/(^|,)\s*auth\s*($|,)/.test(e.qop) && "auth", c = `00000000${e.nc}`.slice(-8), i = (function(l, g, d, m, w, v, p) {
1684
- const y = p || he()(`${g}:${d}:${m}`);
1685
- return l && l.toLowerCase() === "md5-sess" ? he()(`${y}:${w}:${v}`) : y;
1686
- })(e.algorithm, e.username, e.realm, e.password, e.nonce, e.cnonce, e.ha1), h = he()(`${o}:${n}`), a = u ? he()(`${i}:${e.nonce}:${c}:${e.cnonce}:${u}:${h}`) : he()(`${i}:${e.nonce}:${h}`), s = { username: e.username, realm: e.realm, nonce: e.nonce, uri: n, qop: u, response: a, nc: c, cnonce: e.cnonce, algorithm: e.algorithm, opaque: e.opaque }, f = [];
1692
+ const t = r.url.replace("//", ""), n = t.indexOf("/") == -1 ? "/" : t.slice(t.indexOf("/")), a = r.method ? r.method.toUpperCase() : "GET", u = !!/(^|,)\s*auth\s*($|,)/.test(e.qop) && "auth", c = `00000000${e.nc}`.slice(-8), i = (function(l, g, d, m, w, v, p) {
1693
+ const y = p || fe()(`${g}:${d}:${m}`);
1694
+ return l && l.toLowerCase() === "md5-sess" ? fe()(`${y}:${w}:${v}`) : y;
1695
+ })(e.algorithm, e.username, e.realm, e.password, e.nonce, e.cnonce, e.ha1), h = fe()(`${a}:${n}`), o = u ? fe()(`${i}:${e.nonce}:${c}:${e.cnonce}:${u}:${h}`) : fe()(`${i}:${e.nonce}:${h}`), s = { username: e.username, realm: e.realm, nonce: e.nonce, uri: n, qop: u, response: o, nc: c, cnonce: e.cnonce, algorithm: e.algorithm, opaque: e.opaque }, f = [];
1687
1696
  for (const l in s) s[l] && (l === "qop" || l === "nc" || l === "algorithm" ? f.push(`${l}=${s[l]}`) : f.push(`${l}="${s[l]}"`));
1688
1697
  return `Digest ${f.join(", ")}`;
1689
1698
  }
@@ -1704,7 +1713,7 @@ let J = (function(r) {
1704
1713
  })({}), ne = (function(r) {
1705
1714
  return r.DataTypeNoLength = "data-type-no-length", r.InvalidAuthType = "invalid-auth-type", r.InvalidOutputFormat = "invalid-output-format", r.LinkUnsupportedAuthType = "link-unsupported-auth", r.InvalidUpdateRange = "invalid-update-range", r.NotSupported = "not-supported", r;
1706
1715
  })({});
1707
- function tr(r, e, t, n, o) {
1716
+ function tr(r, e, t, n, a) {
1708
1717
  switch (r.authType) {
1709
1718
  case J.Auto:
1710
1719
  e && t && (r.headers.Authorization = xt(e, t));
@@ -1712,7 +1721,7 @@ function tr(r, e, t, n, o) {
1712
1721
  case J.Digest:
1713
1722
  r.digest = /* @__PURE__ */ (function(c, i, h) {
1714
1723
  return { username: c, password: i, ha1: h, nc: 0, algorithm: "md5", hasDigestAuth: !1 };
1715
- })(e, t, o);
1724
+ })(e, t, a);
1716
1725
  break;
1717
1726
  case J.None:
1718
1727
  break;
@@ -1755,8 +1764,8 @@ class Dr {
1755
1764
  }
1756
1765
  execute(e) {
1757
1766
  const t = this.get(e) || Qr;
1758
- for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++) o[u - 1] = arguments[u];
1759
- return t(...o);
1767
+ for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), u = 1; u < n; u++) a[u - 1] = arguments[u];
1768
+ return t(...a);
1760
1769
  }
1761
1770
  get(e) {
1762
1771
  const t = this.configuration.registry[e];
@@ -1769,14 +1778,14 @@ class Dr {
1769
1778
  throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`);
1770
1779
  }
1771
1780
  return (function() {
1772
- for (var n = arguments.length, o = new Array(n), u = 0; u < n; u++) o[u] = arguments[u];
1773
- if (o.length === 0) throw new Error("Failed creating sequence: No functions provided");
1781
+ for (var n = arguments.length, a = new Array(n), u = 0; u < n; u++) a[u] = arguments[u];
1782
+ if (a.length === 0) throw new Error("Failed creating sequence: No functions provided");
1774
1783
  return function() {
1775
1784
  for (var c = arguments.length, i = new Array(c), h = 0; h < c; h++) i[h] = arguments[h];
1776
- let a = i;
1785
+ let o = i;
1777
1786
  const s = this;
1778
- for (; o.length > 0; ) a = [o.shift().apply(s, a)];
1779
- return a[0];
1787
+ for (; a.length > 0; ) o = [a.shift().apply(s, o)];
1788
+ return o[0];
1780
1789
  };
1781
1790
  })(...t.methods);
1782
1791
  }
@@ -1785,10 +1794,10 @@ class Dr {
1785
1794
  }
1786
1795
  patch(e, t) {
1787
1796
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1788
- const { chain: o = !1 } = n;
1797
+ const { chain: a = !1 } = n;
1789
1798
  if (this.configuration.registry[e] && this.configuration.registry[e].final) throw new Error(`Failed patching '${e}': Method marked as being final`);
1790
1799
  if (typeof t != "function") throw new Error(`Failed patching '${e}': Provided method is not a function`);
1791
- if (o) this.configuration.registry[e] ? this.configuration.registry[e].methods.push(t) : this.configuration.registry[e] = je(t);
1800
+ if (a) this.configuration.registry[e] ? this.configuration.registry[e].methods.push(t) : this.configuration.registry[e] = je(t);
1792
1801
  else if (this.isPatched(e)) {
1793
1802
  const { original: u } = this.configuration.registry[e];
1794
1803
  this.configuration.registry[e] = Object.assign(je(t), { original: u });
@@ -1797,11 +1806,11 @@ class Dr {
1797
1806
  }
1798
1807
  patchInline(e, t) {
1799
1808
  this.isPatched(e) || this.patch(e, t);
1800
- for (var n = arguments.length, o = new Array(n > 2 ? n - 2 : 0), u = 2; u < n; u++) o[u - 2] = arguments[u];
1801
- return this.execute(e, ...o);
1809
+ for (var n = arguments.length, a = new Array(n > 2 ? n - 2 : 0), u = 2; u < n; u++) a[u - 2] = arguments[u];
1810
+ return this.execute(e, ...a);
1802
1811
  }
1803
1812
  plugin(e) {
1804
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) n[o - 1] = arguments[o];
1813
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a];
1805
1814
  return n.forEach(((u) => {
1806
1815
  this.patch(e, u, { chain: !0 });
1807
1816
  })), this;
@@ -1831,9 +1840,9 @@ function Ae(r) {
1831
1840
  }
1832
1841
  function Et() {
1833
1842
  for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t];
1834
- let n = null, o = [...e];
1835
- for (; o.length > 0; ) {
1836
- const u = o.shift();
1843
+ let n = null, a = [...e];
1844
+ for (; a.length > 0; ) {
1845
+ const u = a.shift();
1837
1846
  n = n ? nr(n, u) : Ae(u);
1838
1847
  }
1839
1848
  return n;
@@ -1853,10 +1862,10 @@ function De() {
1853
1862
  for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t];
1854
1863
  if (e.length === 0) return {};
1855
1864
  const n = {};
1856
- return e.reduce(((o, u) => (Object.keys(u).forEach(((c) => {
1865
+ return e.reduce(((a, u) => (Object.keys(u).forEach(((c) => {
1857
1866
  const i = c.toLowerCase();
1858
- n.hasOwnProperty(i) ? o[n[i]] = u[c] : (n[i] = c, o[c] = u[c]);
1859
- })), o)), {});
1867
+ n.hasOwnProperty(i) ? a[n[i]] = u[c] : (n[i] = c, a[c] = u[c]);
1868
+ })), a)), {});
1860
1869
  }
1861
1870
  R(805);
1862
1871
  const tn = typeof ArrayBuffer == "function", { toString: rn } = Object.prototype;
@@ -1883,21 +1892,21 @@ const or = it((function(r) {
1883
1892
  const e = r._digest;
1884
1893
  return delete r._digest, e.hasDigestAuth && (r = Et(r, { headers: { Authorization: wt(r, e) } })), et(Te(r), (function(t) {
1885
1894
  let n = !1;
1886
- return o = function(c) {
1895
+ return a = function(c) {
1887
1896
  return n ? c : t;
1888
1897
  }, (u = (function() {
1889
1898
  if (t.status == 401) return e.hasDigestAuth = (function(c, i) {
1890
1899
  if (!Dt(c)) return !1;
1891
1900
  const h = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;
1892
1901
  for (; ; ) {
1893
- const a = c.headers && c.headers.get("www-authenticate") || "", s = h.exec(a);
1902
+ const o = c.headers && c.headers.get("www-authenticate") || "", s = h.exec(o);
1894
1903
  if (!s) break;
1895
1904
  i[s[1]] = s[2] || s[3];
1896
1905
  }
1897
1906
  return i.nc += 1, i.cnonce = (function() {
1898
- let a = "";
1899
- for (let s = 0; s < 32; ++s) a = `${a}${Hr[Math.floor(16 * Math.random())]}`;
1900
- return a;
1907
+ let o = "";
1908
+ for (let s = 0; s < 32; ++s) o = `${o}${Hr[Math.floor(16 * Math.random())]}`;
1909
+ return o;
1901
1910
  })(), !0;
1902
1911
  })(t, e), (function() {
1903
1912
  if (e.hasDigestAuth) return et(Te(r = Et(r, { headers: { Authorization: wt(r, e) } })), (function(c) {
@@ -1905,8 +1914,8 @@ const or = it((function(r) {
1905
1914
  }));
1906
1915
  })();
1907
1916
  e.nc++;
1908
- })()) && u.then ? u.then(o) : o(u);
1909
- var o, u;
1917
+ })()) && u.then ? u.then(a) : a(u);
1918
+ var a, u;
1910
1919
  }));
1911
1920
  })), nn = it((function(r, e) {
1912
1921
  return et(Te(r), (function(t) {
@@ -1922,9 +1931,9 @@ function q(r, e, t) {
1922
1931
  function Te(r) {
1923
1932
  const e = rr();
1924
1933
  return e.patchInline("request", ((t) => e.patchInline("fetch", Jr, t.url, (function(n) {
1925
- let o = {};
1934
+ let a = {};
1926
1935
  const u = { method: n.method };
1927
- if (n.headers && (o = De(o, n.headers)), n.data !== void 0) {
1936
+ if (n.headers && (a = De(a, n.headers)), n.data !== void 0) {
1928
1937
  const [c, i] = (function(h) {
1929
1938
  if (typeof h == "string") return [h, {}];
1930
1939
  if (ir(h)) return [h, {}];
@@ -1932,20 +1941,20 @@ function Te(r) {
1932
1941
  if (h && typeof h == "object") return [JSON.stringify(h), { "content-type": "application/json" }];
1933
1942
  throw new Error("Unable to convert request body: Unexpected body type: " + typeof h);
1934
1943
  })(n.data);
1935
- u.body = c, o = De(o, i);
1944
+ u.body = c, a = De(a, i);
1936
1945
  }
1937
- return n.signal && (u.signal = n.signal), n.withCredentials && (u.credentials = "include"), u.headers = o, u;
1946
+ return n.signal && (u.signal = n.signal), n.withCredentials && (u.credentials = "include"), u.headers = a, u;
1938
1947
  })(t))), r);
1939
1948
  }
1940
1949
  var sn = R(285);
1941
1950
  const Oe = (r) => {
1942
1951
  if (typeof r != "string") throw new TypeError("invalid pattern");
1943
1952
  if (r.length > 65536) throw new TypeError("pattern is too long");
1944
- }, on = { "[: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] }, fe = (r) => r.replace(/[[\]\\-]/g, "\\$&"), At = (r) => r.join(""), an = (r, e) => {
1953
+ }, on = { "[: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] }, pe = (r) => r.replace(/[[\]\\-]/g, "\\$&"), At = (r) => r.join(""), an = (r, e) => {
1945
1954
  const t = e;
1946
1955
  if (r.charAt(t) !== "[") throw new Error("not in a brace expression");
1947
- const n = [], o = [];
1948
- let u = t + 1, c = !1, i = !1, h = !1, a = !1, s = t, f = "";
1956
+ const n = [], a = [];
1957
+ let u = t + 1, c = !1, i = !1, h = !1, o = !1, s = t, f = "";
1949
1958
  e: for (; u < r.length; ) {
1950
1959
  const m = r.charAt(u);
1951
1960
  if (m !== "!" && m !== "^" || u !== t + 1) {
@@ -1957,22 +1966,22 @@ const Oe = (r) => {
1957
1966
  if (m === "[" && !h) {
1958
1967
  for (const [w, [v, p, y]] of Object.entries(on)) if (r.startsWith(w, u)) {
1959
1968
  if (f) return ["$.", !1, r.length - t, !0];
1960
- u += w.length, y ? o.push(v) : n.push(v), i = i || p;
1969
+ u += w.length, y ? a.push(v) : n.push(v), i = i || p;
1961
1970
  continue e;
1962
1971
  }
1963
1972
  }
1964
- h = !1, f ? (m > f ? n.push(fe(f) + "-" + fe(m)) : m === f && n.push(fe(m)), f = "", u++) : r.startsWith("-]", u + 1) ? (n.push(fe(m + "-")), u += 2) : r.startsWith("-", u + 1) ? (f = m, u += 2) : (n.push(fe(m)), u++);
1973
+ h = !1, f ? (m > f ? n.push(pe(f) + "-" + pe(m)) : m === f && n.push(pe(m)), f = "", u++) : r.startsWith("-]", u + 1) ? (n.push(pe(m + "-")), u += 2) : r.startsWith("-", u + 1) ? (f = m, u += 2) : (n.push(pe(m)), u++);
1965
1974
  } else h = !0, u++;
1966
- } else a = !0, u++;
1975
+ } else o = !0, u++;
1967
1976
  }
1968
1977
  if (s < u) return ["", !1, 0, !1];
1969
- if (!n.length && !o.length) return ["$.", !1, r.length - t, !0];
1970
- if (o.length === 0 && n.length === 1 && /^\\?.$/.test(n[0]) && !a)
1978
+ if (!n.length && !a.length) return ["$.", !1, r.length - t, !0];
1979
+ if (a.length === 0 && n.length === 1 && /^\\?.$/.test(n[0]) && !o)
1971
1980
  return [(l = n[0].length === 2 ? n[0].slice(-1) : n[0], l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&")), !1, s - t, !1];
1972
1981
  var l;
1973
- const g = "[" + (a ? "^" : "") + At(n) + "]", d = "[" + (a ? "" : "^") + At(o) + "]";
1974
- return [n.length && o.length ? "(" + g + "|" + d + ")" : n.length ? g : d, i, s - t, !0];
1975
- }, pe = function(r) {
1982
+ const g = "[" + (o ? "^" : "") + At(n) + "]", d = "[" + (o ? "" : "^") + At(a) + "]";
1983
+ return [n.length && a.length ? "(" + g + "|" + d + ")" : n.length ? g : d, i, s - t, !0];
1984
+ }, ge = function(r) {
1976
1985
  let { windowsPathsNoEscape: e = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1977
1986
  return e ? r.replace(/\[([^\/\\])\]/g, "$1") : r.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
1978
1987
  }, un = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]), Tt = (r) => un.has(r), Re = "(?!\\.)", ln = /* @__PURE__ */ new Set(["[", "."]), cn = /* @__PURE__ */ new Set(["..", "."]), hn = new Set("().*{}+?[]^$\\!"), ot = "[^/]", Ot = ot + "*?", Ct = ot + "+?";
@@ -2009,9 +2018,9 @@ class Z {
2009
2018
  if (e.type !== "!") continue;
2010
2019
  let t = e, n = t.#t;
2011
2020
  for (; n; ) {
2012
- for (let o = t.#o + 1; !n.type && o < n.#e.length; o++) for (const u of e.#e) {
2021
+ for (let a = t.#o + 1; !n.type && a < n.#e.length; a++) for (const u of e.#e) {
2013
2022
  if (typeof u == "string") throw new Error("string part in extglob AST??");
2014
- u.copyIn(n.#e[o]);
2023
+ u.copyIn(n.#e[a]);
2015
2024
  }
2016
2025
  t = n, n = t.#t;
2017
2026
  }
@@ -2020,9 +2029,9 @@ class Z {
2020
2029
  }
2021
2030
  push() {
2022
2031
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
2023
- for (const o of t) if (o !== "") {
2024
- if (typeof o != "string" && !(o instanceof Z && o.#t === this)) throw new Error("invalid part: " + o);
2025
- this.#e.push(o);
2032
+ for (const a of t) if (a !== "") {
2033
+ if (typeof a != "string" && !(a instanceof Z && a.#t === this)) throw new Error("invalid part: " + a);
2034
+ this.#e.push(a);
2026
2035
  }
2027
2036
  }
2028
2037
  toJSON() {
@@ -2055,7 +2064,7 @@ class Z {
2055
2064
  for (const n of this.#e) t.copyIn(n);
2056
2065
  return t;
2057
2066
  }
2058
- static #c(e, t, n, o) {
2067
+ static #c(e, t, n, a) {
2059
2068
  let u = !1, c = !1, i = -1, h = !1;
2060
2069
  if (t.type === null) {
2061
2070
  let g = n, d = "";
@@ -2063,34 +2072,34 @@ class Z {
2063
2072
  const m = e.charAt(g++);
2064
2073
  if (u || m === "\\") u = !u, d += m;
2065
2074
  else if (c) g === i + 1 ? m !== "^" && m !== "!" || (h = !0) : m !== "]" || g === i + 2 && h || (c = !1), d += m;
2066
- else if (m !== "[") if (o.noext || !Tt(m) || e.charAt(g) !== "(") d += m;
2075
+ else if (m !== "[") if (a.noext || !Tt(m) || e.charAt(g) !== "(") d += m;
2067
2076
  else {
2068
2077
  t.push(d), d = "";
2069
2078
  const w = new Z(m, t);
2070
- g = Z.#c(e, w, g, o), t.push(w);
2079
+ g = Z.#c(e, w, g, a), t.push(w);
2071
2080
  }
2072
2081
  else c = !0, i = g, h = !1, d += m;
2073
2082
  }
2074
2083
  return t.push(d), g;
2075
2084
  }
2076
- let a = n + 1, s = new Z(null, t);
2085
+ let o = n + 1, s = new Z(null, t);
2077
2086
  const f = [];
2078
2087
  let l = "";
2079
- for (; a < e.length; ) {
2080
- const g = e.charAt(a++);
2088
+ for (; o < e.length; ) {
2089
+ const g = e.charAt(o++);
2081
2090
  if (u || g === "\\") u = !u, l += g;
2082
- else if (c) a === i + 1 ? g !== "^" && g !== "!" || (h = !0) : g !== "]" || a === i + 2 && h || (c = !1), l += g;
2083
- else if (g !== "[") if (Tt(g) && e.charAt(a) === "(") {
2091
+ else if (c) o === i + 1 ? g !== "^" && g !== "!" || (h = !0) : g !== "]" || o === i + 2 && h || (c = !1), l += g;
2092
+ else if (g !== "[") if (Tt(g) && e.charAt(o) === "(") {
2084
2093
  s.push(l), l = "";
2085
2094
  const d = new Z(g, s);
2086
- s.push(d), a = Z.#c(e, d, a, o);
2095
+ s.push(d), o = Z.#c(e, d, o, a);
2087
2096
  } else if (g !== "|") {
2088
- if (g === ")") return l === "" && t.#e.length === 0 && (t.#h = !0), s.push(l), l = "", t.push(...f, s), a;
2097
+ if (g === ")") return l === "" && t.#e.length === 0 && (t.#h = !0), s.push(l), l = "", t.push(...f, s), o;
2089
2098
  l += g;
2090
2099
  } else s.push(l), l = "", f.push(s), s = new Z(null, t);
2091
- else c = !0, i = a, h = !1, l += g;
2100
+ else c = !0, i = o, h = !1, l += g;
2092
2101
  }
2093
- return t.type = null, t.#n = void 0, t.#e = [e.substring(n - 1)], a;
2102
+ return t.type = null, t.#n = void 0, t.#e = [e.substring(n - 1)], o;
2094
2103
  }
2095
2104
  static fromGlob(e) {
2096
2105
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -2099,8 +2108,8 @@ class Z {
2099
2108
  }
2100
2109
  toMMPattern() {
2101
2110
  if (this !== this.#r) return this.#r.toMMPattern();
2102
- const e = this.toString(), [t, n, o, u] = this.toRegExpSource();
2103
- if (!(o || this.#n || this.#s.nocase && !this.#s.nocaseMagicOnly && e.toUpperCase() !== e.toLowerCase())) return n;
2111
+ const e = this.toString(), [t, n, a, u] = this.toRegExpSource();
2112
+ if (!(a || this.#n || this.#s.nocase && !this.#s.nocaseMagicOnly && e.toUpperCase() !== e.toLowerCase())) return n;
2104
2113
  const c = (this.#s.nocase ? "i" : "") + (u ? "u" : "");
2105
2114
  return Object.assign(new RegExp(`^${t}$`, c), { _src: t, _glob: e });
2106
2115
  }
@@ -2110,53 +2119,53 @@ class Z {
2110
2119
  toRegExpSource(e) {
2111
2120
  const t = e ?? !!this.#s.dot;
2112
2121
  if (this.#r === this && this.#p(), !this.type) {
2113
- const h = this.isStart() && this.isEnd(), a = this.#e.map(((l) => {
2122
+ const h = this.isStart() && this.isEnd(), o = this.#e.map(((l) => {
2114
2123
  const [g, d, m, w] = typeof l == "string" ? Z.#g(l, this.#n, h) : l.toRegExpSource(e);
2115
2124
  return this.#n = this.#n || m, this.#i = this.#i || w, g;
2116
2125
  })).join("");
2117
2126
  let s = "";
2118
2127
  if (this.isStart() && typeof this.#e[0] == "string" && (this.#e.length !== 1 || !cn.has(this.#e[0]))) {
2119
- const l = ln, g = t && l.has(a.charAt(0)) || a.startsWith("\\.") && l.has(a.charAt(2)) || a.startsWith("\\.\\.") && l.has(a.charAt(4)), d = !t && !e && l.has(a.charAt(0));
2128
+ const l = ln, g = t && l.has(o.charAt(0)) || o.startsWith("\\.") && l.has(o.charAt(2)) || o.startsWith("\\.\\.") && l.has(o.charAt(4)), d = !t && !e && l.has(o.charAt(0));
2120
2129
  s = g ? "(?!(?:^|/)\\.\\.?(?:$|/))" : d ? Re : "";
2121
2130
  }
2122
2131
  let f = "";
2123
- return this.isEnd() && this.#r.#a && this.#t?.type === "!" && (f = "(?:$|\\/)"), [s + a + f, pe(a), this.#n = !!this.#n, this.#i];
2132
+ return this.isEnd() && this.#r.#a && this.#t?.type === "!" && (f = "(?:$|\\/)"), [s + o + f, ge(o), this.#n = !!this.#n, this.#i];
2124
2133
  }
2125
- const n = this.type === "*" || this.type === "+", o = this.type === "!" ? "(?:(?!(?:" : "(?:";
2134
+ const n = this.type === "*" || this.type === "+", a = this.type === "!" ? "(?:(?!(?:" : "(?:";
2126
2135
  let u = this.#f(t);
2127
2136
  if (this.isStart() && this.isEnd() && !u && this.type !== "!") {
2128
2137
  const h = this.toString();
2129
- return this.#e = [h], this.type = null, this.#n = void 0, [h, pe(this.toString()), !1, !1];
2138
+ return this.#e = [h], this.type = null, this.#n = void 0, [h, ge(this.toString()), !1, !1];
2130
2139
  }
2131
2140
  let c = !n || e || t ? "" : this.#f(!0);
2132
2141
  c === u && (c = ""), c && (u = `(?:${u})(?:${c})*?`);
2133
2142
  let i = "";
2134
- return i = this.type === "!" && this.#h ? (this.isStart() && !t ? Re : "") + Ct : o + u + (this.type === "!" ? "))" + (!this.isStart() || t || e ? "" : Re) + Ot + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && c ? ")" : this.type === "*" && c ? ")?" : `)${this.type}`), [i, pe(u), this.#n = !!this.#n, this.#i];
2143
+ return i = this.type === "!" && this.#h ? (this.isStart() && !t ? Re : "") + Ct : a + u + (this.type === "!" ? "))" + (!this.isStart() || t || e ? "" : Re) + Ot + ")" : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && c ? ")" : this.type === "*" && c ? ")?" : `)${this.type}`), [i, ge(u), this.#n = !!this.#n, this.#i];
2135
2144
  }
2136
2145
  #f(e) {
2137
2146
  return this.#e.map(((t) => {
2138
2147
  if (typeof t == "string") throw new Error("string type in extglob ast??");
2139
- const [n, o, u, c] = t.toRegExpSource(e);
2148
+ const [n, a, u, c] = t.toRegExpSource(e);
2140
2149
  return this.#i = this.#i || c, n;
2141
2150
  })).filter(((t) => !(this.isStart() && this.isEnd() && !t))).join("|");
2142
2151
  }
2143
2152
  static #g(e, t) {
2144
- let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], o = !1, u = "", c = !1;
2153
+ let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], a = !1, u = "", c = !1;
2145
2154
  for (let i = 0; i < e.length; i++) {
2146
2155
  const h = e.charAt(i);
2147
- if (o) o = !1, u += (hn.has(h) ? "\\" : "") + h;
2156
+ if (a) a = !1, u += (hn.has(h) ? "\\" : "") + h;
2148
2157
  else if (h !== "\\") {
2149
2158
  if (h === "[") {
2150
- const [a, s, f, l] = an(e, i);
2159
+ const [o, s, f, l] = an(e, i);
2151
2160
  if (f) {
2152
- u += a, c = c || s, i += f - 1, t = t || l;
2161
+ u += o, c = c || s, i += f - 1, t = t || l;
2153
2162
  continue;
2154
2163
  }
2155
2164
  }
2156
2165
  h !== "*" ? h !== "?" ? u += h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : (u += ot, t = !0) : (u += n && e === "*" ? Ct : Ot, t = !0);
2157
- } else i === e.length - 1 ? u += "\\\\" : o = !0;
2166
+ } else i === e.length - 1 ? u += "\\\\" : a = !0;
2158
2167
  }
2159
- return [u, pe(e), !!t, c];
2168
+ return [u, ge(e), !!t, c];
2160
2169
  }
2161
2170
  }
2162
2171
  const H = function(r, e) {
@@ -2165,19 +2174,19 @@ const H = function(r, e) {
2165
2174
  }, fn = /^\*+([^+@!?\*\[\(]*)$/, pn = (r) => (e) => !e.startsWith(".") && e.endsWith(r), gn = (r) => (e) => e.endsWith(r), dn = (r) => (r = r.toLowerCase(), (e) => !e.startsWith(".") && e.toLowerCase().endsWith(r)), mn = (r) => (r = r.toLowerCase(), (e) => e.toLowerCase().endsWith(r)), bn = /^\*+\.\*+$/, yn = (r) => !r.startsWith(".") && r.includes("."), vn = (r) => r !== "." && r !== ".." && r.includes("."), wn = /^\.\*+$/, Nn = (r) => r !== "." && r !== ".." && r.startsWith("."), xn = /^\*+$/, Pn = (r) => r.length !== 0 && !r.startsWith("."), En = (r) => r.length !== 0 && r !== "." && r !== "..", An = /^\?+([^+@!?\*\[\(]*)?$/, Tn = (r) => {
2166
2175
  let [e, t = ""] = r;
2167
2176
  const n = ar([e]);
2168
- return t ? (t = t.toLowerCase(), (o) => n(o) && o.toLowerCase().endsWith(t)) : n;
2177
+ return t ? (t = t.toLowerCase(), (a) => n(a) && a.toLowerCase().endsWith(t)) : n;
2169
2178
  }, On = (r) => {
2170
2179
  let [e, t = ""] = r;
2171
2180
  const n = ur([e]);
2172
- return t ? (t = t.toLowerCase(), (o) => n(o) && o.toLowerCase().endsWith(t)) : n;
2181
+ return t ? (t = t.toLowerCase(), (a) => n(a) && a.toLowerCase().endsWith(t)) : n;
2173
2182
  }, Cn = (r) => {
2174
2183
  let [e, t = ""] = r;
2175
2184
  const n = ur([e]);
2176
- return t ? (o) => n(o) && o.endsWith(t) : n;
2185
+ return t ? (a) => n(a) && a.endsWith(t) : n;
2177
2186
  }, In = (r) => {
2178
2187
  let [e, t = ""] = r;
2179
2188
  const n = ar([e]);
2180
- return t ? (o) => n(o) && o.endsWith(t) : n;
2189
+ return t ? (a) => n(a) && a.endsWith(t) : n;
2181
2190
  }, ar = (r) => {
2182
2191
  let [e] = r;
2183
2192
  const t = e.length;
@@ -2233,8 +2242,8 @@ H.defaults = (r) => {
2233
2242
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2234
2243
  return e.braceExpand(t, Q(r, n));
2235
2244
  }, match: function(t, n) {
2236
- let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2237
- return e.match(t, n, Q(r, o));
2245
+ let a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2246
+ return e.match(t, n, Q(r, a));
2238
2247
  }, sep: e.sep, GLOBSTAR: D });
2239
2248
  };
2240
2249
  const cr = function(r) {
@@ -2286,22 +2295,22 @@ class Ce {
2286
2295
  }), this.debug(this.pattern, this.globSet);
2287
2296
  const n = this.globSet.map(((u) => this.slashSplit(u)));
2288
2297
  this.globParts = this.preprocess(n), this.debug(this.pattern, this.globParts);
2289
- let o = this.globParts.map(((u, c, i) => {
2298
+ let a = this.globParts.map(((u, c, i) => {
2290
2299
  if (this.isWindows && this.windowsNoMagicRoot) {
2291
- const h = !(u[0] !== "" || u[1] !== "" || u[2] !== "?" && It.test(u[2]) || It.test(u[3])), a = /^[a-z]:/i.test(u[0]);
2300
+ const h = !(u[0] !== "" || u[1] !== "" || u[2] !== "?" && It.test(u[2]) || It.test(u[3])), o = /^[a-z]:/i.test(u[0]);
2292
2301
  if (h) return [...u.slice(0, 4), ...u.slice(4).map(((s) => this.parse(s)))];
2293
- if (a) return [u[0], ...u.slice(1).map(((s) => this.parse(s)))];
2302
+ if (o) return [u[0], ...u.slice(1).map(((s) => this.parse(s)))];
2294
2303
  }
2295
2304
  return u.map(((h) => this.parse(h)));
2296
2305
  }));
2297
- if (this.debug(this.pattern, o), this.set = o.filter(((u) => u.indexOf(!1) === -1)), this.isWindows) for (let u = 0; u < this.set.length; u++) {
2306
+ if (this.debug(this.pattern, a), this.set = a.filter(((u) => u.indexOf(!1) === -1)), this.isWindows) for (let u = 0; u < this.set.length; u++) {
2298
2307
  const c = this.set[u];
2299
2308
  c[0] === "" && c[1] === "" && this.globParts[u][2] === "?" && typeof c[3] == "string" && /^[a-z]:$/i.test(c[3]) && (c[2] = "?");
2300
2309
  }
2301
2310
  this.debug(this.pattern, this.set);
2302
2311
  }
2303
2312
  preprocess(e) {
2304
- if (this.options.noglobstar) for (let n = 0; n < e.length; n++) for (let o = 0; o < e[n].length; o++) e[n][o] === "**" && (e[n][o] = "*");
2313
+ if (this.options.noglobstar) for (let n = 0; n < e.length; n++) for (let a = 0; a < e[n].length; a++) e[n][a] === "**" && (e[n][a] = "*");
2305
2314
  const { optimizationLevel: t = 1 } = this.options;
2306
2315
  return t >= 2 ? (e = this.firstPhasePreProcess(e), e = this.secondPhasePreProcess(e)) : e = t >= 1 ? this.levelOneOptimize(e) : this.adjascentGlobstarOptimize(e), e;
2307
2316
  }
@@ -2309,17 +2318,17 @@ class Ce {
2309
2318
  return e.map(((t) => {
2310
2319
  let n = -1;
2311
2320
  for (; (n = t.indexOf("**", n + 1)) !== -1; ) {
2312
- let o = n;
2313
- for (; t[o + 1] === "**"; ) o++;
2314
- o !== n && t.splice(n, o - n);
2321
+ let a = n;
2322
+ for (; t[a + 1] === "**"; ) a++;
2323
+ a !== n && t.splice(n, a - n);
2315
2324
  }
2316
2325
  return t;
2317
2326
  }));
2318
2327
  }
2319
2328
  levelOneOptimize(e) {
2320
- return e.map(((t) => (t = t.reduce(((n, o) => {
2329
+ return e.map(((t) => (t = t.reduce(((n, a) => {
2321
2330
  const u = n[n.length - 1];
2322
- return o === "**" && u === "**" ? n : o === ".." && u && u !== ".." && u !== "." && u !== "**" ? (n.pop(), n) : (n.push(o), n);
2331
+ return a === "**" && u === "**" ? n : a === ".." && u && u !== ".." && u !== "." && u !== "**" ? (n.pop(), n) : (n.push(a), n);
2323
2332
  }), [])).length === 0 ? [""] : t));
2324
2333
  }
2325
2334
  levelTwoFileOptimize(e) {
@@ -2327,16 +2336,16 @@ class Ce {
2327
2336
  let t = !1;
2328
2337
  do {
2329
2338
  if (t = !1, !this.preserveMultipleSlashes) {
2330
- for (let o = 1; o < e.length - 1; o++) {
2331
- const u = e[o];
2332
- o === 1 && u === "" && e[0] === "" || u !== "." && u !== "" || (t = !0, e.splice(o, 1), o--);
2339
+ for (let a = 1; a < e.length - 1; a++) {
2340
+ const u = e[a];
2341
+ a === 1 && u === "" && e[0] === "" || u !== "." && u !== "" || (t = !0, e.splice(a, 1), a--);
2333
2342
  }
2334
2343
  e[0] !== "." || e.length !== 2 || e[1] !== "." && e[1] !== "" || (t = !0, e.pop());
2335
2344
  }
2336
2345
  let n = 0;
2337
2346
  for (; (n = e.indexOf("..", n + 1)) !== -1; ) {
2338
- const o = e[n - 1];
2339
- o && o !== "." && o !== ".." && o !== "**" && (t = !0, e.splice(n - 1, 2), n -= 2);
2347
+ const a = e[n - 1];
2348
+ a && a !== "." && a !== ".." && a !== "**" && (t = !0, e.splice(n - 1, 2), n -= 2);
2340
2349
  }
2341
2350
  } while (t);
2342
2351
  return e.length === 0 ? [""] : e;
@@ -2346,17 +2355,17 @@ class Ce {
2346
2355
  do {
2347
2356
  t = !1;
2348
2357
  for (let n of e) {
2349
- let o = -1;
2350
- for (; (o = n.indexOf("**", o + 1)) !== -1; ) {
2351
- let c = o;
2358
+ let a = -1;
2359
+ for (; (a = n.indexOf("**", a + 1)) !== -1; ) {
2360
+ let c = a;
2352
2361
  for (; n[c + 1] === "**"; ) c++;
2353
- c > o && n.splice(o + 1, c - o);
2354
- let i = n[o + 1];
2355
- const h = n[o + 2], a = n[o + 3];
2356
- if (i !== ".." || !h || h === "." || h === ".." || !a || a === "." || a === "..") continue;
2357
- t = !0, n.splice(o, 1);
2362
+ c > a && n.splice(a + 1, c - a);
2363
+ let i = n[a + 1];
2364
+ const h = n[a + 2], o = n[a + 3];
2365
+ if (i !== ".." || !h || h === "." || h === ".." || !o || o === "." || o === "..") continue;
2366
+ t = !0, n.splice(a, 1);
2358
2367
  const s = n.slice(0);
2359
- s[o] = "**", e.push(s), o--;
2368
+ s[a] = "**", e.push(s), a--;
2360
2369
  }
2361
2370
  if (!this.preserveMultipleSlashes) {
2362
2371
  for (let c = 1; c < n.length - 1; c++) {
@@ -2380,25 +2389,25 @@ class Ce {
2380
2389
  }
2381
2390
  secondPhasePreProcess(e) {
2382
2391
  for (let t = 0; t < e.length - 1; t++) for (let n = t + 1; n < e.length; n++) {
2383
- const o = this.partsMatch(e[t], e[n], !this.preserveMultipleSlashes);
2384
- if (o) {
2385
- e[t] = [], e[n] = o;
2392
+ const a = this.partsMatch(e[t], e[n], !this.preserveMultipleSlashes);
2393
+ if (a) {
2394
+ e[t] = [], e[n] = a;
2386
2395
  break;
2387
2396
  }
2388
2397
  }
2389
2398
  return e.filter(((t) => t.length));
2390
2399
  }
2391
2400
  partsMatch(e, t) {
2392
- let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], o = 0, u = 0, c = [], i = "";
2393
- for (; o < e.length && u < t.length; ) if (e[o] === t[u]) c.push(i === "b" ? t[u] : e[o]), o++, u++;
2394
- else if (n && e[o] === "**" && t[u] === e[o + 1]) c.push(e[o]), o++;
2395
- else if (n && t[u] === "**" && e[o] === t[u + 1]) c.push(t[u]), u++;
2396
- else if (e[o] !== "*" || !t[u] || !this.options.dot && t[u].startsWith(".") || t[u] === "**") {
2397
- if (t[u] !== "*" || !e[o] || !this.options.dot && e[o].startsWith(".") || e[o] === "**" || i === "a") return !1;
2398
- i = "b", c.push(t[u]), o++, u++;
2401
+ let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], a = 0, u = 0, c = [], i = "";
2402
+ for (; a < e.length && u < t.length; ) if (e[a] === t[u]) c.push(i === "b" ? t[u] : e[a]), a++, u++;
2403
+ else if (n && e[a] === "**" && t[u] === e[a + 1]) c.push(e[a]), a++;
2404
+ else if (n && t[u] === "**" && e[a] === t[u + 1]) c.push(t[u]), u++;
2405
+ else if (e[a] !== "*" || !t[u] || !this.options.dot && t[u].startsWith(".") || t[u] === "**") {
2406
+ if (t[u] !== "*" || !e[a] || !this.options.dot && e[a].startsWith(".") || e[a] === "**" || i === "a") return !1;
2407
+ i = "b", c.push(t[u]), a++, u++;
2399
2408
  } else {
2400
2409
  if (i === "b") return !1;
2401
- i = "a", c.push(e[o]), o++, u++;
2410
+ i = "a", c.push(e[a]), a++, u++;
2402
2411
  }
2403
2412
  return e.length === t.length && c;
2404
2413
  }
@@ -2406,12 +2415,12 @@ class Ce {
2406
2415
  if (this.nonegate) return;
2407
2416
  const e = this.pattern;
2408
2417
  let t = !1, n = 0;
2409
- for (let o = 0; o < e.length && e.charAt(o) === "!"; o++) t = !t, n++;
2418
+ for (let a = 0; a < e.length && e.charAt(a) === "!"; a++) t = !t, n++;
2410
2419
  n && (this.pattern = e.slice(n)), this.negate = t;
2411
2420
  }
2412
2421
  matchOne(e, t) {
2413
2422
  let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
2414
- const o = this.options;
2423
+ const a = this.options;
2415
2424
  if (this.isWindows) {
2416
2425
  const m = typeof e[0] == "string" && /^[a-z]:$/i.test(e[0]), w = !m && e[0] === "" && e[1] === "" && e[2] === "?" && /^[a-z]:$/i.test(e[3]), v = typeof t[0] == "string" && /^[a-z]:$/i.test(t[0]), p = w ? 3 : m ? 0 : void 0, y = !v && t[0] === "" && t[1] === "" && t[2] === "?" && typeof t[3] == "string" && /^[a-z]:$/i.test(t[3]) ? 3 : v ? 0 : void 0;
2417
2426
  if (typeof p == "number" && typeof y == "number") {
@@ -2421,22 +2430,22 @@ class Ce {
2421
2430
  }
2422
2431
  const { optimizationLevel: u = 1 } = this.options;
2423
2432
  u >= 2 && (e = this.levelTwoFileOptimize(e)), this.debug("matchOne", this, { file: e, pattern: t }), this.debug("matchOne", e.length, t.length);
2424
- for (var c = 0, i = 0, h = e.length, a = t.length; c < h && i < a; c++, i++) {
2433
+ for (var c = 0, i = 0, h = e.length, o = t.length; c < h && i < o; c++, i++) {
2425
2434
  this.debug("matchOne loop");
2426
2435
  var s = t[i], f = e[c];
2427
2436
  if (this.debug(t, s, f), s === !1) return !1;
2428
2437
  if (s === D) {
2429
2438
  this.debug("GLOBSTAR", [t, s, f]);
2430
2439
  var l = c, g = i + 1;
2431
- if (g === a) {
2432
- for (this.debug("** at the end"); c < h; c++) if (e[c] === "." || e[c] === ".." || !o.dot && e[c].charAt(0) === ".") return !1;
2440
+ if (g === o) {
2441
+ for (this.debug("** at the end"); c < h; c++) if (e[c] === "." || e[c] === ".." || !a.dot && e[c].charAt(0) === ".") return !1;
2433
2442
  return !0;
2434
2443
  }
2435
2444
  for (; l < h; ) {
2436
2445
  var d = e[l];
2437
2446
  if (this.debug(`
2438
2447
  globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) return this.debug("globstar found match!", l, h, d), !0;
2439
- if (d === "." || d === ".." || !o.dot && d.charAt(0) === ".") {
2448
+ if (d === "." || d === ".." || !a.dot && d.charAt(0) === ".") {
2440
2449
  this.debug("dot detected!", e, l, t, g);
2441
2450
  break;
2442
2451
  }
@@ -2448,9 +2457,9 @@ globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) retur
2448
2457
  let m;
2449
2458
  if (typeof s == "string" ? (m = f === s, this.debug("string match", s, f, m)) : (m = s.test(f), this.debug("pattern match", s, f, m)), !m) return !1;
2450
2459
  }
2451
- if (c === h && i === a) return !0;
2460
+ if (c === h && i === o) return !0;
2452
2461
  if (c === h) return n;
2453
- if (i === a) return c === h - 1 && e[c] === "";
2462
+ if (i === o) return c === h - 1 && e[c] === "";
2454
2463
  throw new Error("wtf?");
2455
2464
  }
2456
2465
  braceExpand() {
@@ -2461,30 +2470,30 @@ globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) retur
2461
2470
  const t = this.options;
2462
2471
  if (e === "**") return D;
2463
2472
  if (e === "") return "";
2464
- let n, o = null;
2465
- (n = e.match(xn)) ? o = t.dot ? En : Pn : (n = e.match(fn)) ? o = (t.nocase ? t.dot ? mn : dn : t.dot ? gn : pn)(n[1]) : (n = e.match(An)) ? o = (t.nocase ? t.dot ? On : Tn : t.dot ? Cn : In)(n) : (n = e.match(bn)) ? o = t.dot ? vn : yn : (n = e.match(wn)) && (o = Nn);
2473
+ let n, a = null;
2474
+ (n = e.match(xn)) ? a = t.dot ? En : Pn : (n = e.match(fn)) ? a = (t.nocase ? t.dot ? mn : dn : t.dot ? gn : pn)(n[1]) : (n = e.match(An)) ? a = (t.nocase ? t.dot ? On : Tn : t.dot ? Cn : In)(n) : (n = e.match(bn)) ? a = t.dot ? vn : yn : (n = e.match(wn)) && (a = Nn);
2466
2475
  const u = Z.fromGlob(e, this.options).toMMPattern();
2467
- return o && typeof u == "object" && Reflect.defineProperty(u, "test", { value: o }), u;
2476
+ return a && typeof u == "object" && Reflect.defineProperty(u, "test", { value: a }), u;
2468
2477
  }
2469
2478
  makeRe() {
2470
2479
  if (this.regexp || this.regexp === !1) return this.regexp;
2471
2480
  const e = this.set;
2472
2481
  if (!e.length) return this.regexp = !1, this.regexp;
2473
- const t = this.options, n = t.noglobstar ? "[^/]*?" : t.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", o = new Set(t.nocase ? ["i"] : []);
2482
+ const t = this.options, n = t.noglobstar ? "[^/]*?" : t.dot ? "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?" : "(?:(?!(?:\\/|^)\\.).)*?", a = new Set(t.nocase ? ["i"] : []);
2474
2483
  let u = e.map(((h) => {
2475
- const a = h.map(((s) => {
2476
- if (s instanceof RegExp) for (const f of s.flags.split("")) o.add(f);
2484
+ const o = h.map(((s) => {
2485
+ if (s instanceof RegExp) for (const f of s.flags.split("")) a.add(f);
2477
2486
  return typeof s == "string" ? s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : s === D ? D : s._src;
2478
2487
  }));
2479
- return a.forEach(((s, f) => {
2480
- const l = a[f + 1], g = a[f - 1];
2481
- s === D && g !== D && (g === void 0 ? l !== void 0 && l !== D ? a[f + 1] = "(?:\\/|" + n + "\\/)?" + l : a[f] = n : l === void 0 ? a[f - 1] = g + "(?:\\/|" + n + ")?" : l !== D && (a[f - 1] = g + "(?:\\/|\\/" + n + "\\/)" + l, a[f + 1] = D));
2482
- })), a.filter(((s) => s !== D)).join("/");
2488
+ return o.forEach(((s, f) => {
2489
+ const l = o[f + 1], g = o[f - 1];
2490
+ s === D && g !== D && (g === void 0 ? l !== void 0 && l !== D ? o[f + 1] = "(?:\\/|" + n + "\\/)?" + l : o[f] = n : l === void 0 ? o[f - 1] = g + "(?:\\/|" + n + ")?" : l !== D && (o[f - 1] = g + "(?:\\/|\\/" + n + "\\/)" + l, o[f + 1] = D));
2491
+ })), o.filter(((s) => s !== D)).join("/");
2483
2492
  })).join("|");
2484
2493
  const [c, i] = e.length > 1 ? ["(?:", ")"] : ["", ""];
2485
2494
  u = "^" + c + u + i + "$", this.negate && (u = "^(?!" + u + ").+$");
2486
2495
  try {
2487
- this.regexp = new RegExp(u, [...o].join(""));
2496
+ this.regexp = new RegExp(u, [...a].join(""));
2488
2497
  } catch {
2489
2498
  this.regexp = !1;
2490
2499
  }
@@ -2500,16 +2509,16 @@ globstar while`, e, l, t, g, d), this.matchOne(e.slice(l), t.slice(g), n)) retur
2500
2509
  if (e === "/" && t) return !0;
2501
2510
  const n = this.options;
2502
2511
  this.isWindows && (e = e.split("\\").join("/"));
2503
- const o = this.slashSplit(e);
2504
- this.debug(this.pattern, "split", o);
2512
+ const a = this.slashSplit(e);
2513
+ this.debug(this.pattern, "split", a);
2505
2514
  const u = this.set;
2506
2515
  this.debug(this.pattern, "set", u);
2507
- let c = o[o.length - 1];
2508
- if (!c) for (let i = o.length - 2; !c && i >= 0; i--) c = o[i];
2516
+ let c = a[a.length - 1];
2517
+ if (!c) for (let i = a.length - 2; !c && i >= 0; i--) c = a[i];
2509
2518
  for (let i = 0; i < u.length; i++) {
2510
2519
  const h = u[i];
2511
- let a = o;
2512
- if (n.matchBase && h.length === 1 && (a = [c]), this.matchOne(a, h, t)) return !!n.flipNegate || !this.negate;
2520
+ let o = a;
2521
+ if (n.matchBase && h.length === 1 && (o = [c]), this.matchOne(o, h, t)) return !!n.flipNegate || !this.negate;
2513
2522
  }
2514
2523
  return !n.flipNegate && this.negate;
2515
2524
  }
@@ -2533,13 +2542,13 @@ function ae(r, e) {
2533
2542
  H.AST = Z, H.Minimatch = Ce, H.escape = function(r) {
2534
2543
  let { windowsPathsNoEscape: e = !1 } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2535
2544
  return e ? r.replace(/[?*()[\]]/g, "[$&]") : r.replace(/[?*()[\]\\]/g, "\\$&");
2536
- }, H.unescape = pe;
2545
+ }, H.unescape = ge;
2537
2546
  const Sn = (St = function(r, e, t) {
2538
2547
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2539
- const o = q({ url: U(r.remoteURL, k(e)), method: "COPY", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T", Depth: n.shallow ? "0" : "infinity" } }, r, n);
2548
+ const a = q({ url: U(r.remoteURL, k(e)), method: "COPY", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T", Depth: n.shallow ? "0" : "infinity" } }, r, n);
2540
2549
  return c = function(i) {
2541
2550
  W(r, i);
2542
- }, (u = B(o, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2551
+ }, (u = B(a, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2543
2552
  var u, c;
2544
2553
  }, function() {
2545
2554
  for (var r = [], e = 0; e < arguments.length; e++) r[e] = arguments[e];
@@ -2563,20 +2572,20 @@ function ye(r) {
2563
2572
  const { multistatus: n } = t;
2564
2573
  if (n === "") return { multistatus: { response: [] } };
2565
2574
  if (!n) throw new Error("Invalid response: No root multistatus found");
2566
- const o = { multistatus: Array.isArray(n) ? n[0] : n };
2567
- return te().set(o, "multistatus.response", Ne(o, "multistatus.response", le.Array)), te().set(o, "multistatus.response", te().get(o, "multistatus.response").map(((u) => (function(c) {
2575
+ const a = { multistatus: Array.isArray(n) ? n[0] : n };
2576
+ return te().set(a, "multistatus.response", Ne(a, "multistatus.response", le.Array)), te().set(a, "multistatus.response", te().get(a, "multistatus.response").map(((u) => (function(c) {
2568
2577
  const i = Object.assign({}, c);
2569
2578
  return i.status ? te().set(i, "status", Ne(i, "status", le.Object)) : (te().set(i, "propstat", Ne(i, "propstat", le.Object)), te().set(i, "propstat.prop", Ne(i, "propstat.prop", le.Object))), i;
2570
- })(u)))), o;
2571
- })(new ut.XMLParser({ allowBooleanAttributes: !0, attributeNamePrefix: "", textNodeName: "text", ignoreAttributes: !1, removeNSPrefix: !0, numberParseOptions: { hex: !0, leadingZeros: !1 }, attributeValueProcessor: (t, n, o) => n === "true" || n === "false" ? n === "true" : n, tagValueProcessor(t, n, o) {
2572
- if (!o.endsWith("propstat.prop.displayname")) return n;
2579
+ })(u)))), a;
2580
+ })(new ut.XMLParser({ allowBooleanAttributes: !0, attributeNamePrefix: "", textNodeName: "text", ignoreAttributes: !1, removeNSPrefix: !0, numberParseOptions: { hex: !0, leadingZeros: !1 }, attributeValueProcessor: (t, n, a) => n === "true" || n === "false" ? n === "true" : n, tagValueProcessor(t, n, a) {
2581
+ if (!a.endsWith("propstat.prop.displayname")) return n;
2573
2582
  } }).parse(r)));
2574
2583
  }));
2575
2584
  }
2576
2585
  function Se(r, e) {
2577
2586
  let t = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
2578
- const { getlastmodified: n = null, getcontentlength: o = "0", resourcetype: u = null, getcontenttype: c = null, getetag: i = null } = r, h = u && typeof u == "object" && u.collection !== void 0 ? "directory" : "file", a = { filename: e, basename: Pe().basename(e), lastmod: n, size: parseInt(o, 10), type: h, etag: typeof i == "string" ? i.replace(/"/g, "") : null };
2579
- return h === "file" && (a.mime = c && typeof c == "string" ? c.split(";")[0] : ""), t && (r.displayname !== void 0 && (r.displayname = String(r.displayname)), a.props = r), a;
2587
+ const { getlastmodified: n = null, getcontentlength: a = "0", resourcetype: u = null, getcontenttype: c = null, getetag: i = null } = r, h = u && typeof u == "object" && u.collection !== void 0 ? "directory" : "file", o = { filename: e, basename: Pe().basename(e), lastmod: n, size: parseInt(a, 10), type: h, etag: typeof i == "string" ? i.replace(/"/g, "") : null };
2588
+ return h === "file" && (o.mime = c && typeof c == "string" ? c.split(";")[0] : ""), t && (r.displayname !== void 0 && (r.displayname = String(r.displayname)), o.props = r), o;
2580
2589
  }
2581
2590
  function hr(r, e) {
2582
2591
  let t = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], n = null;
@@ -2585,12 +2594,12 @@ function hr(r, e) {
2585
2594
  } catch {
2586
2595
  }
2587
2596
  if (!n) throw new Error("Failed getting item stat: bad response");
2588
- const { propstat: { prop: o, status: u } } = n, [c, i, h] = u.split(" ", 3), a = parseInt(i, 10);
2589
- if (a >= 400) {
2590
- const s = new Error(`Invalid response: ${a} ${h}`);
2591
- throw s.status = a, s;
2597
+ const { propstat: { prop: a, status: u } } = n, [c, i, h] = u.split(" ", 3), o = parseInt(i, 10);
2598
+ if (o >= 400) {
2599
+ const s = new Error(`Invalid response: ${o} ${h}`);
2600
+ throw s.status = o, s;
2592
2601
  }
2593
- return Se(o, be(e), t);
2602
+ return Se(a, be(e), t);
2594
2603
  }
2595
2604
  function fr(r) {
2596
2605
  switch (String(r)) {
@@ -2617,8 +2626,8 @@ const lt = /* @__PURE__ */ (function(r) {
2617
2626
  };
2618
2627
  })((function(r, e) {
2619
2628
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2620
- const { details: n = !1 } = t, o = q({ url: U(r.remoteURL, k(e)), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: "0" } }, r, t);
2621
- return Le(B(o, r), (function(u) {
2629
+ const { details: n = !1 } = t, a = q({ url: U(r.remoteURL, k(e)), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: "0" } }, r, t);
2630
+ return Le(B(a, r), (function(u) {
2622
2631
  return W(r, u), Le(u.text(), (function(c) {
2623
2632
  return Le(ye(c), (function(i) {
2624
2633
  const h = hr(i, e, n);
@@ -2642,21 +2651,21 @@ const jn = gr((function(r, e) {
2642
2651
  return i;
2643
2652
  })(be(e));
2644
2653
  n.sort(((u, c) => u.length > c.length ? 1 : c.length > u.length ? -1 : 0));
2645
- let o = !1;
2654
+ let a = !1;
2646
2655
  return (function(u, c, i) {
2647
2656
  if (typeof u[jt] == "function") {
2648
2657
  let m = function(w) {
2649
2658
  try {
2650
2659
  for (; !(h = f.next()).done; ) if ((w = c(h.value)) && w.then) {
2651
- if (!$t(w)) return void w.then(m, s || (s = Y.bind(null, a = new ce(), 2)));
2660
+ if (!$t(w)) return void w.then(m, s || (s = Y.bind(null, o = new ce(), 2)));
2652
2661
  w = w.v;
2653
2662
  }
2654
- a ? Y(a, 1, w) : a = w;
2663
+ o ? Y(o, 1, w) : o = w;
2655
2664
  } catch (v) {
2656
- Y(a || (a = new ce()), 2, v);
2665
+ Y(o || (o = new ce()), 2, v);
2657
2666
  }
2658
2667
  };
2659
- var h, a, s, f = u[jt]();
2668
+ var h, o, s, f = u[jt]();
2660
2669
  if (m(), f.return) {
2661
2670
  var l = function(w) {
2662
2671
  try {
@@ -2665,12 +2674,12 @@ const jn = gr((function(r, e) {
2665
2674
  }
2666
2675
  return w;
2667
2676
  };
2668
- if (a && a.then) return a.then(l, (function(w) {
2677
+ if (o && o.then) return o.then(l, (function(w) {
2669
2678
  throw l(w);
2670
2679
  }));
2671
2680
  l();
2672
2681
  }
2673
- return a;
2682
+ return o;
2674
2683
  }
2675
2684
  if (!("length" in u)) throw new TypeError("Object is not iterable");
2676
2685
  for (var g = [], d = 0; d < u.length; d++) g.push(u[d]);
@@ -2692,24 +2701,24 @@ const jn = gr((function(r, e) {
2692
2701
  }), i);
2693
2702
  })(n, (function(u) {
2694
2703
  return c = function() {
2695
- return (function(h, a) {
2704
+ return (function(h, o) {
2696
2705
  try {
2697
2706
  var s = pr(lt(r, u), (function(f) {
2698
2707
  if (f.type !== "directory") throw new Error(`Path includes a file: ${e}`);
2699
2708
  }));
2700
2709
  } catch (f) {
2701
- return a(f);
2710
+ return o(f);
2702
2711
  }
2703
- return s && s.then ? s.then(void 0, a) : s;
2712
+ return s && s.then ? s.then(void 0, o) : s;
2704
2713
  })(0, (function(h) {
2705
- const a = h;
2714
+ const o = h;
2706
2715
  return (function() {
2707
- if (a.status === 404) return o = !0, Ft(tt(r, u, { ...t, recursive: !1 }));
2716
+ if (o.status === 404) return a = !0, Ft(tt(r, u, { ...t, recursive: !1 }));
2708
2717
  throw h;
2709
2718
  })();
2710
2719
  }));
2711
2720
  }, (i = (function() {
2712
- if (o) return Ft(tt(r, u, { ...t, recursive: !1 }));
2721
+ if (a) return Ft(tt(r, u, { ...t, recursive: !1 }));
2713
2722
  })()) && i.then ? i.then(c) : c();
2714
2723
  var c, i;
2715
2724
  }), (function() {
@@ -2748,9 +2757,9 @@ const ce = (function() {
2748
2757
  function r() {
2749
2758
  }
2750
2759
  return r.prototype.then = function(e, t) {
2751
- const n = new r(), o = this.s;
2752
- if (o) {
2753
- const u = 1 & o ? e : t;
2760
+ const n = new r(), a = this.s;
2761
+ if (a) {
2762
+ const u = 1 & a ? e : t;
2754
2763
  if (u) {
2755
2764
  try {
2756
2765
  Y(n, 1, u(this.v));
@@ -2777,8 +2786,8 @@ function $t(r) {
2777
2786
  const tt = gr((function(r, e) {
2778
2787
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2779
2788
  if (t.recursive === !0) return jn(r, e, t);
2780
- const n = q({ url: U(r.remoteURL, (o = k(e), o.endsWith("/") ? o : o + "/")), method: "MKCOL" }, r, t);
2781
- var o;
2789
+ const n = q({ url: U(r.remoteURL, (a = k(e), a.endsWith("/") ? a : a + "/")), method: "MKCOL" }, r, t);
2790
+ var a;
2782
2791
  return pr(B(n, r), (function(u) {
2783
2792
  W(r, u);
2784
2793
  }));
@@ -2800,7 +2809,7 @@ const Ln = /* @__PURE__ */ (function(r) {
2800
2809
  let i = `bytes=${t.range.start}-`;
2801
2810
  typeof t.range.end == "number" && (i = `${i}${t.range.end}`), n.Range = i;
2802
2811
  }
2803
- const o = q({ url: U(r.remoteURL, k(e)), method: "GET", headers: n }, r, t);
2812
+ const a = q({ url: U(r.remoteURL, k(e)), method: "GET", headers: n }, r, t);
2804
2813
  return c = function(i) {
2805
2814
  if (W(r, i), n.Range && i.status !== 206) {
2806
2815
  const h = new Error(`Invalid response code for partial request: ${i.status}`);
@@ -2809,7 +2818,7 @@ const Ln = /* @__PURE__ */ (function(r) {
2809
2818
  return t.callback && setTimeout((() => {
2810
2819
  t.callback(i);
2811
2820
  }), 0), i.body;
2812
- }, (u = B(o, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2821
+ }, (u = B(a, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
2813
2822
  var u, c;
2814
2823
  })), kn = () => {
2815
2824
  }, Un = /* @__PURE__ */ (function(r) {
@@ -2826,8 +2835,8 @@ const Ln = /* @__PURE__ */ (function(r) {
2826
2835
  const n = q(t, r, {});
2827
2836
  return u = function(c) {
2828
2837
  return W(r, c), c;
2829
- }, (o = B(n, r)) && o.then || (o = Promise.resolve(o)), u ? o.then(u) : o;
2830
- var o, u;
2838
+ }, (a = B(n, r)) && a.then || (a = Promise.resolve(a)), u ? a.then(u) : a;
2839
+ var a, u;
2831
2840
  })), _n = /* @__PURE__ */ (function(r) {
2832
2841
  return function() {
2833
2842
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
@@ -2842,8 +2851,8 @@ const Ln = /* @__PURE__ */ (function(r) {
2842
2851
  const n = q({ url: U(r.remoteURL, k(e)), method: "DELETE" }, r, t);
2843
2852
  return u = function(c) {
2844
2853
  W(r, c);
2845
- }, (o = B(n, r)) && o.then || (o = Promise.resolve(o)), u ? o.then(u) : o;
2846
- var o, u;
2854
+ }, (a = B(n, r)) && a.then || (a = Promise.resolve(a)), u ? a.then(u) : a;
2855
+ var a, u;
2847
2856
  })), Mn = /* @__PURE__ */ (function(r) {
2848
2857
  return function() {
2849
2858
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
@@ -2855,16 +2864,16 @@ const Ln = /* @__PURE__ */ (function(r) {
2855
2864
  };
2856
2865
  })((function(r, e) {
2857
2866
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2858
- return (function(n, o) {
2867
+ return (function(n, a) {
2859
2868
  try {
2860
2869
  var u = (c = lt(r, e, t), i = function() {
2861
2870
  return !0;
2862
2871
  }, h ? i ? i(c) : c : (c && c.then || (c = Promise.resolve(c)), i ? c.then(i) : c));
2863
- } catch (a) {
2864
- return o(a);
2872
+ } catch (o) {
2873
+ return a(o);
2865
2874
  }
2866
2875
  var c, i, h;
2867
- return u && u.then ? u.then(void 0, o) : u;
2876
+ return u && u.then ? u.then(void 0, a) : u;
2868
2877
  })(0, (function(n) {
2869
2878
  if (n.status === 404) return !1;
2870
2879
  throw n;
@@ -2885,14 +2894,14 @@ const Vn = /* @__PURE__ */ (function(r) {
2885
2894
  })((function(r, e) {
2886
2895
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2887
2896
  const n = q({ url: U(r.remoteURL, k(e), "/"), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: t.deep ? "infinity" : "1" } }, r, t);
2888
- return ke(B(n, r), (function(o) {
2889
- return W(r, o), ke(o.text(), (function(u) {
2897
+ return ke(B(n, r), (function(a) {
2898
+ return W(r, a), ke(a.text(), (function(u) {
2890
2899
  if (!u) throw new Error("Failed parsing directory contents: Empty response");
2891
2900
  return ke(ye(u), (function(c) {
2892
2901
  const i = vt(e);
2893
- let h = (function(a, s, f) {
2902
+ let h = (function(o, s, f) {
2894
2903
  let l = arguments.length > 3 && arguments[3] !== void 0 && arguments[3], g = arguments.length > 4 && arguments[4] !== void 0 && arguments[4];
2895
- const d = Pe().join(s, "/"), { multistatus: { response: m } } = a, w = m.map(((v) => {
2904
+ const d = Pe().join(s, "/"), { multistatus: { response: m } } = o, w = m.map(((v) => {
2896
2905
  const p = (function(A) {
2897
2906
  try {
2898
2907
  return A.replace(/^https?:\/\/[^\/]+/, "");
@@ -2904,9 +2913,9 @@ const Vn = /* @__PURE__ */ (function(r) {
2904
2913
  }));
2905
2914
  return g ? w : w.filter(((v) => v.basename && (v.type === "file" || v.filename !== f.replace(/\/$/, ""))));
2906
2915
  })(c, vt(r.remoteBasePath || r.remotePath), i, t.details, t.includeSelf);
2907
- return t.glob && (h = (function(a, s) {
2908
- return a.filter(((f) => H(f.filename, s, { matchBase: !0 })));
2909
- })(h, t.glob)), ae(o, h, t.details);
2916
+ return t.glob && (h = (function(o, s) {
2917
+ return o.filter(((f) => H(f.filename, s, { matchBase: !0 })));
2918
+ })(h, t.glob)), ae(a, h, t.details);
2910
2919
  }));
2911
2920
  }));
2912
2921
  }));
@@ -2924,9 +2933,9 @@ function ct(r) {
2924
2933
  const Bn = ct((function(r, e) {
2925
2934
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2926
2935
  const n = q({ url: U(r.remoteURL, k(e)), method: "GET", headers: { Accept: "text/plain" }, transformResponse: [Xn] }, r, t);
2927
- return Ie(B(n, r), (function(o) {
2928
- return W(r, o), Ie(o.text(), (function(u) {
2929
- return ae(o, u, t.details);
2936
+ return Ie(B(n, r), (function(a) {
2937
+ return W(r, a), Ie(a.text(), (function(u) {
2938
+ return ae(a, u, t.details);
2930
2939
  }));
2931
2940
  }));
2932
2941
  }));
@@ -2936,17 +2945,17 @@ function Ie(r, e, t) {
2936
2945
  const qn = ct((function(r, e) {
2937
2946
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2938
2947
  const n = q({ url: U(r.remoteURL, k(e)), method: "GET" }, r, t);
2939
- return Ie(B(n, r), (function(o) {
2948
+ return Ie(B(n, r), (function(a) {
2940
2949
  let u;
2941
- return W(r, o), (function(c, i) {
2950
+ return W(r, a), (function(c, i) {
2942
2951
  var h = c();
2943
2952
  return h && h.then ? h.then(i) : i();
2944
2953
  })((function() {
2945
- return Ie(o.arrayBuffer(), (function(c) {
2954
+ return Ie(a.arrayBuffer(), (function(c) {
2946
2955
  u = c;
2947
2956
  }));
2948
2957
  }), (function() {
2949
- return ae(o, u, t.details);
2958
+ return ae(a, u, t.details);
2950
2959
  }));
2951
2960
  }));
2952
2961
  })), Wn = ct((function(r, e) {
@@ -2978,18 +2987,18 @@ function mr(r) {
2978
2987
  }
2979
2988
  const zn = mr((function(r, e, t) {
2980
2989
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
2981
- const o = q({ url: U(r.remoteURL, k(e)), method: "UNLOCK", headers: { "Lock-Token": t } }, r, n);
2982
- return rt(B(o, r), (function(u) {
2990
+ const a = q({ url: U(r.remoteURL, k(e)), method: "UNLOCK", headers: { "Lock-Token": t } }, r, n);
2991
+ return rt(B(a, r), (function(u) {
2983
2992
  if (W(r, u), u.status !== 204 && u.status !== 200) throw at(u);
2984
2993
  }));
2985
2994
  })), Hn = mr((function(r, e) {
2986
2995
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2987
- const { refreshToken: n, timeout: o = Zn } = t, u = { Accept: "text/plain,application/xml", Timeout: o };
2996
+ const { refreshToken: n, timeout: a = Zn } = t, u = { Accept: "text/plain,application/xml", Timeout: a };
2988
2997
  n && (u.If = n);
2989
2998
  const c = q({ url: U(r.remoteURL, k(e)), method: "LOCK", headers: u, data: Gn(r.contactHref) }, r, t);
2990
2999
  return rt(B(c, r), (function(i) {
2991
3000
  return W(r, i), rt(i.text(), (function(h) {
2992
- const a = (l = h, new ut.XMLParser({ removeNSPrefix: !0, parseAttributeValue: !0, parseTagValue: !0 }).parse(l)), s = te().get(a, "prop.lockdiscovery.activelock.locktoken.href"), f = te().get(a, "prop.lockdiscovery.activelock.timeout");
3001
+ const o = (l = h, new ut.XMLParser({ removeNSPrefix: !0, parseAttributeValue: !0, parseTagValue: !0 }).parse(l)), s = te().get(o, "prop.lockdiscovery.activelock.locktoken.href"), f = te().get(o, "prop.lockdiscovery.activelock.timeout");
2993
3002
  var l;
2994
3003
  if (!s) throw at(i, "No lock token received: ");
2995
3004
  return { token: s, serverTimeout: f };
@@ -3011,18 +3020,18 @@ const Jn = /* @__PURE__ */ (function(r) {
3011
3020
  })((function(r) {
3012
3021
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3013
3022
  const t = e.path || "/", n = q({ url: U(r.remoteURL, t), method: "PROPFIND", headers: { Accept: "text/plain,application/xml", Depth: "0" } }, r, e);
3014
- return Ue(B(n, r), (function(o) {
3015
- return W(r, o), Ue(o.text(), (function(u) {
3023
+ return Ue(B(n, r), (function(a) {
3024
+ return W(r, a), Ue(a.text(), (function(u) {
3016
3025
  return Ue(ye(u), (function(c) {
3017
3026
  const i = (function(h) {
3018
3027
  try {
3019
- const [a] = h.multistatus.response, { propstat: { prop: { "quota-used-bytes": s, "quota-available-bytes": f } } } = a;
3028
+ const [o] = h.multistatus.response, { propstat: { prop: { "quota-used-bytes": s, "quota-available-bytes": f } } } = o;
3020
3029
  return s !== void 0 && f !== void 0 ? { used: parseInt(String(s), 10), available: fr(f) } : null;
3021
3030
  } catch {
3022
3031
  }
3023
3032
  return null;
3024
3033
  })(c);
3025
- return ae(o, i, e.details);
3034
+ return ae(a, i, e.details);
3026
3035
  }));
3027
3036
  }));
3028
3037
  }));
@@ -3041,13 +3050,13 @@ const Yn = /* @__PURE__ */ (function(r) {
3041
3050
  };
3042
3051
  })((function(r, e) {
3043
3052
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3044
- const { details: n = !1 } = t, o = q({ url: U(r.remoteURL, k(e)), method: "SEARCH", headers: { Accept: "text/plain,application/xml", "Content-Type": r.headers["Content-Type"] || "application/xml; charset=utf-8" } }, r, t);
3045
- return _e(B(o, r), (function(u) {
3053
+ const { details: n = !1 } = t, a = q({ url: U(r.remoteURL, k(e)), method: "SEARCH", headers: { Accept: "text/plain,application/xml", "Content-Type": r.headers["Content-Type"] || "application/xml; charset=utf-8" } }, r, t);
3054
+ return _e(B(a, r), (function(u) {
3046
3055
  return W(r, u), _e(u.text(), (function(c) {
3047
3056
  return _e(ye(c), (function(i) {
3048
- const h = (function(a, s, f) {
3057
+ const h = (function(o, s, f) {
3049
3058
  const l = { truncated: !1, results: [] };
3050
- return l.truncated = a.multistatus.response.some(((g) => (g.status || g.propstat?.status).split(" ", 3)?.[1] === "507" && g.href.replace(/\/$/, "").endsWith(k(s).replace(/\/$/, "")))), a.multistatus.response.forEach(((g) => {
3059
+ return l.truncated = o.multistatus.response.some(((g) => (g.status || g.propstat?.status).split(" ", 3)?.[1] === "507" && g.href.replace(/\/$/, "").endsWith(k(s).replace(/\/$/, "")))), o.multistatus.response.forEach(((g) => {
3051
3060
  if (g.propstat === void 0) return;
3052
3061
  const d = g.href.split("/").map(decodeURIComponent).join("/");
3053
3062
  l.results.push(Se(g.propstat.prop, d, f));
@@ -3068,10 +3077,10 @@ const Yn = /* @__PURE__ */ (function(r) {
3068
3077
  };
3069
3078
  })((function(r, e, t) {
3070
3079
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3071
- const o = q({ url: U(r.remoteURL, k(e)), method: "MOVE", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T" } }, r, n);
3080
+ const a = q({ url: U(r.remoteURL, k(e)), method: "MOVE", headers: { Destination: U(r.remoteURL, k(t)), Overwrite: n.overwrite === !1 ? "F" : "T" } }, r, n);
3072
3081
  return c = function(i) {
3073
3082
  W(r, i);
3074
- }, (u = B(o, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
3083
+ }, (u = B(a, r)) && u.then || (u = Promise.resolve(u)), c ? u.then(c) : u;
3075
3084
  var u, c;
3076
3085
  }));
3077
3086
  var Qn = R(172);
@@ -3086,15 +3095,15 @@ const Dn = /* @__PURE__ */ (function(r) {
3086
3095
  };
3087
3096
  })((function(r, e, t) {
3088
3097
  let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3089
- const { contentLength: o = !0, overwrite: u = !0 } = n, c = { "Content-Type": "application/octet-stream" };
3090
- o === !1 || (c["Content-Length"] = typeof o == "number" ? `${o}` : `${(function(s) {
3098
+ const { contentLength: a = !0, overwrite: u = !0 } = n, c = { "Content-Type": "application/octet-stream" };
3099
+ a === !1 || (c["Content-Length"] = typeof a == "number" ? `${a}` : `${(function(s) {
3091
3100
  if (sr(s)) return s.byteLength;
3092
3101
  if (ir(s)) return s.length;
3093
3102
  if (typeof s == "string") return (0, Qn.d)(s);
3094
3103
  throw new K({ info: { code: ne.DataTypeNoLength } }, "Cannot calculate data length: Invalid type");
3095
3104
  })(t)}`), u || (c["If-None-Match"] = "*");
3096
3105
  const i = q({ url: U(r.remoteURL, k(e)), method: "PUT", headers: c, data: t }, r, n);
3097
- return a = function(s) {
3106
+ return o = function(s) {
3098
3107
  try {
3099
3108
  W(r, s);
3100
3109
  } catch (f) {
@@ -3103,8 +3112,8 @@ const Dn = /* @__PURE__ */ (function(r) {
3103
3112
  return !1;
3104
3113
  }
3105
3114
  return !0;
3106
- }, (h = B(i, r)) && h.then || (h = Promise.resolve(h)), a ? h.then(a) : h;
3107
- var h, a;
3115
+ }, (h = B(i, r)) && h.then || (h = Promise.resolve(h)), o ? h.then(o) : h;
3116
+ var h, o;
3108
3117
  })), br = /* @__PURE__ */ (function(r) {
3109
3118
  return function() {
3110
3119
  for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
@@ -3124,17 +3133,17 @@ const Dn = /* @__PURE__ */ (function(r) {
3124
3133
  throw i;
3125
3134
  }
3126
3135
  return { compliance: (c.headers.get("DAV") ?? "").split(",").map(((i) => i.trim())), server: c.headers.get("Server") ?? "" };
3127
- }, (o = B(n, r)) && o.then || (o = Promise.resolve(o)), u ? o.then(u) : o;
3128
- var o, u;
3136
+ }, (a = B(n, r)) && a.then || (a = Promise.resolve(a)), u ? a.then(u) : a;
3137
+ var a, u;
3129
3138
  }));
3130
- function ge(r, e, t) {
3139
+ function de(r, e, t) {
3131
3140
  return t ? e ? e(r) : r : (r && r.then || (r = Promise.resolve(r)), e ? r.then(e) : r);
3132
3141
  }
3133
- const es = ht((function(r, e, t, n, o) {
3142
+ const es = ht((function(r, e, t, n, a) {
3134
3143
  let u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3135
3144
  if (t > n || t < 0) throw new K({ info: { code: ne.InvalidUpdateRange } }, `Invalid update range ${t} for partial update`);
3136
- const c = { "Content-Type": "application/octet-stream", "Content-Length": "" + (n - t + 1), "Content-Range": `bytes ${t}-${n}/*` }, i = q({ url: U(r.remoteURL, k(e)), method: "PUT", headers: c, data: o }, r, u);
3137
- return ge(B(i, r), (function(h) {
3145
+ const c = { "Content-Type": "application/octet-stream", "Content-Length": "" + (n - t + 1), "Content-Range": `bytes ${t}-${n}/*` }, i = q({ url: U(r.remoteURL, k(e)), method: "PUT", headers: c, data: a }, r, u);
3146
+ return de(B(i, r), (function(h) {
3138
3147
  W(r, h);
3139
3148
  }));
3140
3149
  }));
@@ -3142,11 +3151,11 @@ function Lt(r, e) {
3142
3151
  var t = r();
3143
3152
  return t && t.then ? t.then(e) : e(t);
3144
3153
  }
3145
- const ts = ht((function(r, e, t, n, o) {
3154
+ const ts = ht((function(r, e, t, n, a) {
3146
3155
  let u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3147
3156
  if (t > n || t < 0) throw new K({ info: { code: ne.InvalidUpdateRange } }, `Invalid update range ${t} for partial update`);
3148
- const c = { "Content-Type": "application/x-sabredav-partialupdate", "Content-Length": "" + (n - t + 1), "X-Update-Range": `bytes=${t}-${n}` }, i = q({ url: U(r.remoteURL, k(e)), method: "PATCH", headers: c, data: o }, r, u);
3149
- return ge(B(i, r), (function(h) {
3157
+ const c = { "Content-Type": "application/x-sabredav-partialupdate", "Content-Length": "" + (n - t + 1), "X-Update-Range": `bytes=${t}-${n}` }, i = q({ url: U(r.remoteURL, k(e)), method: "PATCH", headers: c, data: a }, r, u);
3158
+ return de(B(i, r), (function(h) {
3150
3159
  W(r, h);
3151
3160
  }));
3152
3161
  }));
@@ -3160,22 +3169,22 @@ function ht(r) {
3160
3169
  }
3161
3170
  };
3162
3171
  }
3163
- const rs = ht((function(r, e, t, n, o) {
3172
+ const rs = ht((function(r, e, t, n, a) {
3164
3173
  let u = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
3165
- return ge(br(r, e, u), (function(c) {
3174
+ return de(br(r, e, u), (function(c) {
3166
3175
  let i = !1;
3167
3176
  return Lt((function() {
3168
- if (c.compliance.includes("sabredav-partialupdate")) return ge(ts(r, e, t, n, o, u), (function(h) {
3177
+ if (c.compliance.includes("sabredav-partialupdate")) return de(ts(r, e, t, n, a, u), (function(h) {
3169
3178
  return i = !0, h;
3170
3179
  }));
3171
3180
  }), (function(h) {
3172
- let a = !1;
3181
+ let o = !1;
3173
3182
  return i ? h : Lt((function() {
3174
- if (c.server.includes("Apache") && c.compliance.includes("<http://apache.org/dav/propset/fs/1>")) return ge(es(r, e, t, n, o, u), (function(s) {
3175
- return a = !0, s;
3183
+ if (c.server.includes("Apache") && c.compliance.includes("<http://apache.org/dav/propset/fs/1>")) return de(es(r, e, t, n, a, u), (function(s) {
3184
+ return o = !0, s;
3176
3185
  }));
3177
3186
  }), (function(s) {
3178
- if (a) return s;
3187
+ if (o) return s;
3179
3188
  throw new K({ info: { code: ne.NotSupported } }, "Not supported");
3180
3189
  }));
3181
3190
  }));
@@ -3183,11 +3192,11 @@ const rs = ht((function(r, e, t, n, o) {
3183
3192
  })), ns = "https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";
3184
3193
  function ss(r) {
3185
3194
  let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3186
- const { authType: t = null, remoteBasePath: n, contactHref: o = ns, ha1: u, headers: c = {}, httpAgent: i, httpsAgent: h, password: a, token: s, username: f, withCredentials: l } = e;
3195
+ const { authType: t = null, remoteBasePath: n, contactHref: a = ns, ha1: u, headers: c = {}, httpAgent: i, httpsAgent: h, password: o, token: s, username: f, withCredentials: l } = e;
3187
3196
  let g = t;
3188
- g || (g = f || a ? J.Password : J.None);
3189
- const d = { authType: g, remoteBasePath: n, contactHref: o, ha1: u, headers: Object.assign({}, c), httpAgent: i, httpsAgent: h, password: a, remotePath: Gr(r), remoteURL: r, token: s, username: f, withCredentials: l };
3190
- return tr(d, f, a, s, u), { copyFile: (m, w, v) => Sn(d, m, w, v), createDirectory: (m, w) => tt(d, m, w), createReadStream: (m, w) => (function(v, p) {
3197
+ g || (g = f || o ? J.Password : J.None);
3198
+ const d = { authType: g, remoteBasePath: n, contactHref: a, ha1: u, headers: Object.assign({}, c), httpAgent: i, httpsAgent: h, password: o, remotePath: Gr(r), remoteURL: r, token: s, username: f, withCredentials: l };
3199
+ return tr(d, f, o, s, u), { copyFile: (m, w, v) => Sn(d, m, w, v), createDirectory: (m, w) => tt(d, m, w), createReadStream: (m, w) => (function(v, p) {
3191
3200
  let y = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3192
3201
  const A = new (Rt()).PassThrough();
3193
3202
  return Ln(v, p, y).then(((N) => {
@@ -3281,8 +3290,8 @@ function ps(r, e, t) {
3281
3290
  var Ve = {}, Be = {}, Ut;
3282
3291
  function ft() {
3283
3292
  return Ut || (Ut = 1, (function(r) {
3284
- const e = ":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", t = e + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", n = "[" + e + "][" + t + "]*", o = new RegExp("^" + n + "$"), u = function(i, h) {
3285
- const a = [];
3293
+ const e = ":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", t = e + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", n = "[" + e + "][" + t + "]*", a = new RegExp("^" + n + "$"), u = function(i, h) {
3294
+ const o = [];
3286
3295
  let s = h.exec(i);
3287
3296
  for (; s; ) {
3288
3297
  const f = [];
@@ -3290,22 +3299,22 @@ function ft() {
3290
3299
  const l = s.length;
3291
3300
  for (let g = 0; g < l; g++)
3292
3301
  f.push(s[g]);
3293
- a.push(f), s = h.exec(i);
3302
+ o.push(f), s = h.exec(i);
3294
3303
  }
3295
- return a;
3304
+ return o;
3296
3305
  }, c = function(i) {
3297
- const h = o.exec(i);
3306
+ const h = a.exec(i);
3298
3307
  return !(h === null || typeof h > "u");
3299
3308
  };
3300
3309
  r.isExist = function(i) {
3301
3310
  return typeof i < "u";
3302
3311
  }, r.isEmptyObject = function(i) {
3303
3312
  return Object.keys(i).length === 0;
3304
- }, r.merge = function(i, h, a) {
3313
+ }, r.merge = function(i, h, o) {
3305
3314
  if (h) {
3306
3315
  const s = Object.keys(h), f = s.length;
3307
3316
  for (let l = 0; l < f; l++)
3308
- a === "strict" ? i[s[l]] = [h[s[l]]] : i[s[l]] = h[s[l]];
3317
+ o === "strict" ? i[s[l]] = [h[s[l]]] : i[s[l]] = h[s[l]];
3309
3318
  }
3310
3319
  }, r.getValue = function(i) {
3311
3320
  return r.isExist(i) ? i : "";
@@ -3332,7 +3341,7 @@ function yr() {
3332
3341
  } else if (v[b] === "<") {
3333
3342
  let E = b;
3334
3343
  if (b++, v[b] === "!") {
3335
- b = o(v, b);
3344
+ b = a(v, b);
3336
3345
  continue;
3337
3346
  } else {
3338
3347
  let x = !1;
@@ -3352,7 +3361,7 @@ function yr() {
3352
3361
  if (b = O.index, I[I.length - 1] === "/") {
3353
3362
  const C = b - I.length;
3354
3363
  I = I.substring(0, I.length - 1);
3355
- const P = a(I, p);
3364
+ const P = o(I, p);
3356
3365
  if (P === !0)
3357
3366
  A = !0;
3358
3367
  else
@@ -3377,7 +3386,7 @@ function yr() {
3377
3386
  }
3378
3387
  } else return l("InvalidTag", "Closing tag '" + T + "' doesn't have proper closing.", m(v, b));
3379
3388
  else {
3380
- const C = a(I, p);
3389
+ const C = o(I, p);
3381
3390
  if (C !== !0)
3382
3391
  return l(C.err.code, C.err.msg, m(v, b - I.length + C.err.line));
3383
3392
  if (N === !0)
@@ -3387,7 +3396,7 @@ function yr() {
3387
3396
  for (b++; b < v.length; b++)
3388
3397
  if (v[b] === "<")
3389
3398
  if (v[b + 1] === "!") {
3390
- b++, b = o(v, b);
3399
+ b++, b = a(v, b);
3391
3400
  continue;
3392
3401
  } else if (v[b + 1] === "?") {
3393
3402
  if (b = n(v, ++b), b.err) return b;
@@ -3434,7 +3443,7 @@ function yr() {
3434
3443
  }
3435
3444
  return p;
3436
3445
  }
3437
- function o(v, p) {
3446
+ function a(v, p) {
3438
3447
  if (v.length > p + 5 && v[p + 1] === "-" && v[p + 2] === "-") {
3439
3448
  for (p += 3; p < v.length; p++)
3440
3449
  if (v[p] === "-" && v[p + 1] === "-" && v[p + 2] === ">") {
@@ -3476,7 +3485,7 @@ function yr() {
3476
3485
  };
3477
3486
  }
3478
3487
  const h = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
3479
- function a(v, p) {
3488
+ function o(v, p) {
3480
3489
  const y = r.getAllMatches(v, h), A = {};
3481
3490
  for (let N = 0; N < y.length; N++) {
3482
3491
  if (y[N][1].length === 0)
@@ -3591,7 +3600,7 @@ function gs() {
3591
3600
  ignorePiTags: !1,
3592
3601
  transformTagName: !1,
3593
3602
  transformAttributeName: !1,
3594
- updateTag: function(t, n, o) {
3603
+ updateTag: function(t, n, a) {
3595
3604
  return t;
3596
3605
  }
3597
3606
  // skipEmptyListItem: false
@@ -3622,66 +3631,66 @@ function ms() {
3622
3631
  if (Bt) return We;
3623
3632
  Bt = 1;
3624
3633
  const r = ft();
3625
- function e(a, s) {
3634
+ function e(o, s) {
3626
3635
  const f = {};
3627
- if (a[s + 3] === "O" && a[s + 4] === "C" && a[s + 5] === "T" && a[s + 6] === "Y" && a[s + 7] === "P" && a[s + 8] === "E") {
3636
+ if (o[s + 3] === "O" && o[s + 4] === "C" && o[s + 5] === "T" && o[s + 6] === "Y" && o[s + 7] === "P" && o[s + 8] === "E") {
3628
3637
  s = s + 9;
3629
3638
  let l = 1, g = !1, d = !1, m = "";
3630
- for (; s < a.length; s++)
3631
- if (a[s] === "<" && !d) {
3632
- if (g && o(a, s)) {
3639
+ for (; s < o.length; s++)
3640
+ if (o[s] === "<" && !d) {
3641
+ if (g && a(o, s)) {
3633
3642
  s += 7;
3634
3643
  let w, v;
3635
- [w, v, s] = t(a, s + 1), v.indexOf("&") === -1 && (f[h(w)] = {
3644
+ [w, v, s] = t(o, s + 1), v.indexOf("&") === -1 && (f[h(w)] = {
3636
3645
  regx: RegExp(`&${w};`, "g"),
3637
3646
  val: v
3638
3647
  });
3639
- } else if (g && u(a, s)) s += 8;
3640
- else if (g && c(a, s)) s += 8;
3641
- else if (g && i(a, s)) s += 9;
3648
+ } else if (g && u(o, s)) s += 8;
3649
+ else if (g && c(o, s)) s += 8;
3650
+ else if (g && i(o, s)) s += 9;
3642
3651
  else if (n) d = !0;
3643
3652
  else throw new Error("Invalid DOCTYPE");
3644
3653
  l++, m = "";
3645
- } else if (a[s] === ">") {
3646
- if (d ? a[s - 1] === "-" && a[s - 2] === "-" && (d = !1, l--) : l--, l === 0)
3654
+ } else if (o[s] === ">") {
3655
+ if (d ? o[s - 1] === "-" && o[s - 2] === "-" && (d = !1, l--) : l--, l === 0)
3647
3656
  break;
3648
- } else a[s] === "[" ? g = !0 : m += a[s];
3657
+ } else o[s] === "[" ? g = !0 : m += o[s];
3649
3658
  if (l !== 0)
3650
3659
  throw new Error("Unclosed DOCTYPE");
3651
3660
  } else
3652
3661
  throw new Error("Invalid Tag instead of DOCTYPE");
3653
3662
  return { entities: f, i: s };
3654
3663
  }
3655
- function t(a, s) {
3664
+ function t(o, s) {
3656
3665
  let f = "";
3657
- for (; s < a.length && a[s] !== "'" && a[s] !== '"'; s++)
3658
- f += a[s];
3666
+ for (; s < o.length && o[s] !== "'" && o[s] !== '"'; s++)
3667
+ f += o[s];
3659
3668
  if (f = f.trim(), f.indexOf(" ") !== -1) throw new Error("External entites are not supported");
3660
- const l = a[s++];
3669
+ const l = o[s++];
3661
3670
  let g = "";
3662
- for (; s < a.length && a[s] !== l; s++)
3663
- g += a[s];
3671
+ for (; s < o.length && o[s] !== l; s++)
3672
+ g += o[s];
3664
3673
  return [f, g, s];
3665
3674
  }
3666
- function n(a, s) {
3667
- return a[s + 1] === "!" && a[s + 2] === "-" && a[s + 3] === "-";
3675
+ function n(o, s) {
3676
+ return o[s + 1] === "!" && o[s + 2] === "-" && o[s + 3] === "-";
3668
3677
  }
3669
- function o(a, s) {
3670
- return a[s + 1] === "!" && a[s + 2] === "E" && a[s + 3] === "N" && a[s + 4] === "T" && a[s + 5] === "I" && a[s + 6] === "T" && a[s + 7] === "Y";
3678
+ function a(o, s) {
3679
+ return o[s + 1] === "!" && o[s + 2] === "E" && o[s + 3] === "N" && o[s + 4] === "T" && o[s + 5] === "I" && o[s + 6] === "T" && o[s + 7] === "Y";
3671
3680
  }
3672
- function u(a, s) {
3673
- return a[s + 1] === "!" && a[s + 2] === "E" && a[s + 3] === "L" && a[s + 4] === "E" && a[s + 5] === "M" && a[s + 6] === "E" && a[s + 7] === "N" && a[s + 8] === "T";
3681
+ function u(o, s) {
3682
+ return o[s + 1] === "!" && o[s + 2] === "E" && o[s + 3] === "L" && o[s + 4] === "E" && o[s + 5] === "M" && o[s + 6] === "E" && o[s + 7] === "N" && o[s + 8] === "T";
3674
3683
  }
3675
- function c(a, s) {
3676
- return a[s + 1] === "!" && a[s + 2] === "A" && a[s + 3] === "T" && a[s + 4] === "T" && a[s + 5] === "L" && a[s + 6] === "I" && a[s + 7] === "S" && a[s + 8] === "T";
3684
+ function c(o, s) {
3685
+ return o[s + 1] === "!" && o[s + 2] === "A" && o[s + 3] === "T" && o[s + 4] === "T" && o[s + 5] === "L" && o[s + 6] === "I" && o[s + 7] === "S" && o[s + 8] === "T";
3677
3686
  }
3678
- function i(a, s) {
3679
- return a[s + 1] === "!" && a[s + 2] === "N" && a[s + 3] === "O" && a[s + 4] === "T" && a[s + 5] === "A" && a[s + 6] === "T" && a[s + 7] === "I" && a[s + 8] === "O" && a[s + 9] === "N";
3687
+ function i(o, s) {
3688
+ return o[s + 1] === "!" && o[s + 2] === "N" && o[s + 3] === "O" && o[s + 4] === "T" && o[s + 5] === "A" && o[s + 6] === "T" && o[s + 7] === "I" && o[s + 8] === "O" && o[s + 9] === "N";
3680
3689
  }
3681
- function h(a) {
3682
- if (r.isName(a))
3683
- return a;
3684
- throw new Error(`Invalid entity name ${a}`);
3690
+ function h(o) {
3691
+ if (r.isName(o))
3692
+ return o;
3693
+ throw new Error(`Invalid entity name ${o}`);
3685
3694
  }
3686
3695
  return We = e, We;
3687
3696
  }
@@ -3705,19 +3714,19 @@ function bs() {
3705
3714
  if (i.hex && r.test(h))
3706
3715
  return u(h, 16);
3707
3716
  if (h.search(/[eE]/) !== -1) {
3708
- const a = h.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
3709
- if (a) {
3717
+ const o = h.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);
3718
+ if (o) {
3710
3719
  if (i.leadingZeros)
3711
- h = (a[1] || "") + a[3];
3712
- else if (!(a[2] === "0" && a[3][0] === ".")) return c;
3720
+ h = (o[1] || "") + o[3];
3721
+ else if (!(o[2] === "0" && o[3][0] === ".")) return c;
3713
3722
  return i.eNotation ? Number(h) : c;
3714
3723
  } else
3715
3724
  return c;
3716
3725
  } else {
3717
- const a = e.exec(h);
3718
- if (a) {
3719
- const s = a[1], f = a[2];
3720
- let l = o(a[3]);
3726
+ const o = e.exec(h);
3727
+ if (o) {
3728
+ const s = o[1], f = o[2];
3729
+ let l = a(o[3]);
3721
3730
  if (!i.leadingZeros && f.length > 0 && s && h[2] !== ".") return c;
3722
3731
  if (!i.leadingZeros && f.length > 0 && !s && h[1] !== ".") return c;
3723
3732
  if (i.leadingZeros && f === c) return 0;
@@ -3729,7 +3738,7 @@ function bs() {
3729
3738
  return c;
3730
3739
  }
3731
3740
  }
3732
- function o(c) {
3741
+ function a(c) {
3733
3742
  return c && c.indexOf(".") !== -1 && (c = c.replace(/0+$/, ""), c === "." ? c = "0" : c[0] === "." ? c = "0" + c : c[c.length - 1] === "." && (c = c.substr(0, c.length - 1))), c;
3734
3743
  }
3735
3744
  function u(c, i) {
@@ -3757,7 +3766,7 @@ var ze, Xt;
3757
3766
  function ys() {
3758
3767
  if (Xt) return ze;
3759
3768
  Xt = 1;
3760
- const r = ft(), e = ds(), t = ms(), n = bs(), o = vr();
3769
+ const r = ft(), e = ds(), t = ms(), n = bs(), a = vr();
3761
3770
  class u {
3762
3771
  constructor(b) {
3763
3772
  this.options = b, this.currentNode = null, this.tagsNodeStack = [], this.docTypeEntities = {}, this.lastEntities = {
@@ -3781,7 +3790,7 @@ function ys() {
3781
3790
  inr: { regex: /&(inr|#8377);/g, val: "₹" },
3782
3791
  num_dec: { regex: /&#([0-9]{1,7});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 10)) },
3783
3792
  num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (E, x) => String.fromCharCode(Number.parseInt(x, 16)) }
3784
- }, this.addExternalEntities = c, this.parseXml = f, this.parseTextData = i, this.resolveNameSpace = h, this.buildAttributesMap = s, this.isItStopNode = m, this.replaceEntitiesValue = g, this.readStopNodeData = y, this.saveTextToParentTag = d, this.addChild = l, this.ignoreAttributesFn = o(this.options.ignoreAttributes);
3793
+ }, this.addExternalEntities = c, this.parseXml = f, this.parseTextData = i, this.resolveNameSpace = h, this.buildAttributesMap = s, this.isItStopNode = m, this.replaceEntitiesValue = g, this.readStopNodeData = y, this.saveTextToParentTag = d, this.addChild = l, this.ignoreAttributesFn = a(this.options.ignoreAttributes);
3785
3794
  }
3786
3795
  }
3787
3796
  function c(N) {
@@ -3810,10 +3819,10 @@ function ys() {
3810
3819
  }
3811
3820
  return N;
3812
3821
  }
3813
- const a = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3822
+ const o = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
3814
3823
  function s(N, b, E) {
3815
3824
  if (this.options.ignoreAttributes !== !0 && typeof N == "string") {
3816
- const x = r.getAllMatches(N, a), T = x.length, O = {};
3825
+ const x = r.getAllMatches(N, o), T = x.length, O = {};
3817
3826
  for (let I = 0; I < T; I++) {
3818
3827
  const C = this.resolveNameSpace(x[I][1]);
3819
3828
  if (this.ignoreAttributesFn(C, b))
@@ -4050,7 +4059,7 @@ function vs() {
4050
4059
  }
4051
4060
  function e(u, c, i) {
4052
4061
  let h;
4053
- const a = {};
4062
+ const o = {};
4054
4063
  for (let s = 0; s < u.length; s++) {
4055
4064
  const f = u[s], l = t(f);
4056
4065
  let g = "";
@@ -4061,12 +4070,12 @@ function vs() {
4061
4070
  continue;
4062
4071
  if (f[l]) {
4063
4072
  let d = e(f[l], c, g);
4064
- const m = o(d, c);
4065
- f[":@"] ? n(d, f[":@"], g, c) : Object.keys(d).length === 1 && d[c.textNodeName] !== void 0 && !c.alwaysCreateTextNode ? d = d[c.textNodeName] : Object.keys(d).length === 0 && (c.alwaysCreateTextNode ? d[c.textNodeName] = "" : d = ""), a[l] !== void 0 && a.hasOwnProperty(l) ? (Array.isArray(a[l]) || (a[l] = [a[l]]), a[l].push(d)) : c.isArray(l, g, m) ? a[l] = [d] : a[l] = d;
4073
+ const m = a(d, c);
4074
+ f[":@"] ? n(d, f[":@"], g, c) : Object.keys(d).length === 1 && d[c.textNodeName] !== void 0 && !c.alwaysCreateTextNode ? d = d[c.textNodeName] : Object.keys(d).length === 0 && (c.alwaysCreateTextNode ? d[c.textNodeName] = "" : d = ""), o[l] !== void 0 && o.hasOwnProperty(l) ? (Array.isArray(o[l]) || (o[l] = [o[l]]), o[l].push(d)) : c.isArray(l, g, m) ? o[l] = [d] : o[l] = d;
4066
4075
  }
4067
4076
  }
4068
4077
  }
4069
- return typeof h == "string" ? h.length > 0 && (a[c.textNodeName] = h) : h !== void 0 && (a[c.textNodeName] = h), a;
4078
+ return typeof h == "string" ? h.length > 0 && (o[c.textNodeName] = h) : h !== void 0 && (o[c.textNodeName] = h), o;
4070
4079
  }
4071
4080
  function t(u) {
4072
4081
  const c = Object.keys(u);
@@ -4077,14 +4086,14 @@ function vs() {
4077
4086
  }
4078
4087
  function n(u, c, i, h) {
4079
4088
  if (c) {
4080
- const a = Object.keys(c), s = a.length;
4089
+ const o = Object.keys(c), s = o.length;
4081
4090
  for (let f = 0; f < s; f++) {
4082
- const l = a[f];
4091
+ const l = o[f];
4083
4092
  h.isArray(l, i + "." + l, !0, !0) ? u[l] = [c[l]] : u[l] = c[l];
4084
4093
  }
4085
4094
  }
4086
4095
  }
4087
- function o(u, c) {
4096
+ function a(u, c) {
4088
4097
  const { textNodeName: i } = c, h = Object.keys(u).length;
4089
4098
  return !!(h === 0 || h === 1 && (u[i] || typeof u[i] == "boolean" || u[i] === 0));
4090
4099
  }
@@ -4095,7 +4104,7 @@ function ws() {
4095
4104
  if (zt) return Ze;
4096
4105
  zt = 1;
4097
4106
  const { buildOptions: r } = gs(), e = ys(), { prettify: t } = vs(), n = yr();
4098
- class o {
4107
+ class a {
4099
4108
  constructor(c) {
4100
4109
  this.externalEntities = {}, this.options = r(c);
4101
4110
  }
@@ -4117,8 +4126,8 @@ function ws() {
4117
4126
  }
4118
4127
  const h = new e(this.options);
4119
4128
  h.addExternalEntities(this.externalEntities);
4120
- const a = h.parseXml(c);
4121
- return this.options.preserveOrder || a === void 0 ? a : t(a, this.options);
4129
+ const o = h.parseXml(c);
4130
+ return this.options.preserveOrder || o === void 0 ? o : t(o, this.options);
4122
4131
  }
4123
4132
  /**
4124
4133
  * Add Entity which is not by default supported by this library
@@ -4135,7 +4144,7 @@ function ws() {
4135
4144
  this.externalEntities[c] = i;
4136
4145
  }
4137
4146
  }
4138
- return Ze = o, Ze;
4147
+ return Ze = a, Ze;
4139
4148
  }
4140
4149
  var Je, Ht;
4141
4150
  function Ns() {
@@ -4144,16 +4153,16 @@ function Ns() {
4144
4153
  const r = `
4145
4154
  `;
4146
4155
  function e(i, h) {
4147
- let a = "";
4148
- return h.format && h.indentBy.length > 0 && (a = r), t(i, h, "", a);
4156
+ let o = "";
4157
+ return h.format && h.indentBy.length > 0 && (o = r), t(i, h, "", o);
4149
4158
  }
4150
- function t(i, h, a, s) {
4159
+ function t(i, h, o, s) {
4151
4160
  let f = "", l = !1;
4152
4161
  for (let g = 0; g < i.length; g++) {
4153
4162
  const d = i[g], m = n(d);
4154
4163
  if (m === void 0) continue;
4155
4164
  let w = "";
4156
- if (a.length === 0 ? w = m : w = `${a}.${m}`, m === h.textNodeName) {
4165
+ if (o.length === 0 ? w = m : w = `${o}.${m}`, m === h.textNodeName) {
4157
4166
  let N = d[m];
4158
4167
  u(w, h) || (N = h.tagValueProcessor(m, N), N = c(N, h)), l && (f += s), f += N, l = !1;
4159
4168
  continue;
@@ -4164,47 +4173,47 @@ function Ns() {
4164
4173
  f += s + `<!--${d[m][0][h.textNodeName]}-->`, l = !0;
4165
4174
  continue;
4166
4175
  } else if (m[0] === "?") {
4167
- const N = o(d[":@"], h), b = m === "?xml" ? "" : s;
4176
+ const N = a(d[":@"], h), b = m === "?xml" ? "" : s;
4168
4177
  let E = d[m][0][h.textNodeName];
4169
4178
  E = E.length !== 0 ? " " + E : "", f += b + `<${m}${E}${N}?>`, l = !0;
4170
4179
  continue;
4171
4180
  }
4172
4181
  let v = s;
4173
4182
  v !== "" && (v += h.indentBy);
4174
- const p = o(d[":@"], h), y = s + `<${m}${p}`, A = t(d[m], h, w, v);
4183
+ const p = a(d[":@"], h), y = s + `<${m}${p}`, A = t(d[m], h, w, v);
4175
4184
  h.unpairedTags.indexOf(m) !== -1 ? h.suppressUnpairedNode ? f += y + ">" : f += y + "/>" : (!A || A.length === 0) && h.suppressEmptyNode ? f += y + "/>" : A && A.endsWith(">") ? f += y + `>${A}${s}</${m}>` : (f += y + ">", A && s !== "" && (A.includes("/>") || A.includes("</")) ? f += s + h.indentBy + A + s : f += A, f += `</${m}>`), l = !0;
4176
4185
  }
4177
4186
  return f;
4178
4187
  }
4179
4188
  function n(i) {
4180
4189
  const h = Object.keys(i);
4181
- for (let a = 0; a < h.length; a++) {
4182
- const s = h[a];
4190
+ for (let o = 0; o < h.length; o++) {
4191
+ const s = h[o];
4183
4192
  if (i.hasOwnProperty(s) && s !== ":@")
4184
4193
  return s;
4185
4194
  }
4186
4195
  }
4187
- function o(i, h) {
4188
- let a = "";
4196
+ function a(i, h) {
4197
+ let o = "";
4189
4198
  if (i && !h.ignoreAttributes)
4190
4199
  for (let s in i) {
4191
4200
  if (!i.hasOwnProperty(s)) continue;
4192
4201
  let f = h.attributeValueProcessor(s, i[s]);
4193
- f = c(f, h), f === !0 && h.suppressBooleanAttributes ? a += ` ${s.substr(h.attributeNamePrefix.length)}` : a += ` ${s.substr(h.attributeNamePrefix.length)}="${f}"`;
4202
+ f = c(f, h), f === !0 && h.suppressBooleanAttributes ? o += ` ${s.substr(h.attributeNamePrefix.length)}` : o += ` ${s.substr(h.attributeNamePrefix.length)}="${f}"`;
4194
4203
  }
4195
- return a;
4204
+ return o;
4196
4205
  }
4197
4206
  function u(i, h) {
4198
4207
  i = i.substr(0, i.length - h.textNodeName.length - 1);
4199
- let a = i.substr(i.lastIndexOf(".") + 1);
4208
+ let o = i.substr(i.lastIndexOf(".") + 1);
4200
4209
  for (let s in h.stopNodes)
4201
- if (h.stopNodes[s] === i || h.stopNodes[s] === "*." + a) return !0;
4210
+ if (h.stopNodes[s] === i || h.stopNodes[s] === "*." + o) return !0;
4202
4211
  return !1;
4203
4212
  }
4204
4213
  function c(i, h) {
4205
4214
  if (i && i.length > 0 && h.processEntities)
4206
- for (let a = 0; a < h.entities.length; a++) {
4207
- const s = h.entities[a];
4215
+ for (let o = 0; o < h.entities.length; o++) {
4216
+ const s = h.entities[o];
4208
4217
  i = i.replace(s.regex, s.val);
4209
4218
  }
4210
4219
  return i;
@@ -4252,7 +4261,7 @@ function xs() {
4252
4261
  function n(i) {
4253
4262
  this.options = Object.assign({}, t, i), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
4254
4263
  return !1;
4255
- } : (this.ignoreAttributesFn = e(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = c), this.processTextOrObjNode = o, this.options.format ? (this.indentate = u, this.tagEndChar = `>
4264
+ } : (this.ignoreAttributesFn = e(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = c), this.processTextOrObjNode = a, this.options.format ? (this.indentate = u, this.tagEndChar = `>
4256
4265
  `, this.newLine = `
4257
4266
  `) : (this.indentate = function() {
4258
4267
  return "";
@@ -4262,9 +4271,9 @@ function xs() {
4262
4271
  return this.options.preserveOrder ? r(i, this.options) : (Array.isArray(i) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (i = {
4263
4272
  [this.options.arrayNodeName]: i
4264
4273
  }), this.j2x(i, 0, []).val);
4265
- }, n.prototype.j2x = function(i, h, a) {
4274
+ }, n.prototype.j2x = function(i, h, o) {
4266
4275
  let s = "", f = "";
4267
- const l = a.join(".");
4276
+ const l = o.join(".");
4268
4277
  for (let g in i)
4269
4278
  if (Object.prototype.hasOwnProperty.call(i, g))
4270
4279
  if (typeof i[g] > "u")
@@ -4292,10 +4301,10 @@ function xs() {
4292
4301
  g[0] === "?" ? f += this.indentate(h) + "<" + g + "?" + this.tagEndChar : f += this.indentate(h) + "<" + g + "/" + this.tagEndChar;
4293
4302
  else if (typeof p == "object")
4294
4303
  if (this.options.oneListGroup) {
4295
- const y = this.j2x(p, h + 1, a.concat(g));
4304
+ const y = this.j2x(p, h + 1, o.concat(g));
4296
4305
  m += y.val, this.options.attributesGroupName && p.hasOwnProperty(this.options.attributesGroupName) && (w += y.attrStr);
4297
4306
  } else
4298
- m += this.processTextOrObjNode(p, g, h, a);
4307
+ m += this.processTextOrObjNode(p, g, h, o);
4299
4308
  else if (this.options.oneListGroup) {
4300
4309
  let y = this.options.tagValueProcessor(g, p);
4301
4310
  y = this.replaceEntitiesValue(y), m += y;
@@ -4308,41 +4317,41 @@ function xs() {
4308
4317
  for (let w = 0; w < m; w++)
4309
4318
  s += this.buildAttrPairStr(d[w], "" + i[g][d[w]]);
4310
4319
  } else
4311
- f += this.processTextOrObjNode(i[g], g, h, a);
4320
+ f += this.processTextOrObjNode(i[g], g, h, o);
4312
4321
  return { attrStr: s, val: f };
4313
4322
  }, n.prototype.buildAttrPairStr = function(i, h) {
4314
4323
  return h = this.options.attributeValueProcessor(i, "" + h), h = this.replaceEntitiesValue(h), this.options.suppressBooleanAttributes && h === "true" ? " " + i : " " + i + '="' + h + '"';
4315
4324
  };
4316
- function o(i, h, a, s) {
4317
- const f = this.j2x(i, a + 1, s.concat(h));
4318
- return i[this.options.textNodeName] !== void 0 && Object.keys(i).length === 1 ? this.buildTextValNode(i[this.options.textNodeName], h, f.attrStr, a) : this.buildObjectNode(f.val, h, f.attrStr, a);
4325
+ function a(i, h, o, s) {
4326
+ const f = this.j2x(i, o + 1, s.concat(h));
4327
+ return i[this.options.textNodeName] !== void 0 && Object.keys(i).length === 1 ? this.buildTextValNode(i[this.options.textNodeName], h, f.attrStr, o) : this.buildObjectNode(f.val, h, f.attrStr, o);
4319
4328
  }
4320
- n.prototype.buildObjectNode = function(i, h, a, s) {
4329
+ n.prototype.buildObjectNode = function(i, h, o, s) {
4321
4330
  if (i === "")
4322
- return h[0] === "?" ? this.indentate(s) + "<" + h + a + "?" + this.tagEndChar : this.indentate(s) + "<" + h + a + this.closeTag(h) + this.tagEndChar;
4331
+ return h[0] === "?" ? this.indentate(s) + "<" + h + o + "?" + this.tagEndChar : this.indentate(s) + "<" + h + o + this.closeTag(h) + this.tagEndChar;
4323
4332
  {
4324
4333
  let f = "</" + h + this.tagEndChar, l = "";
4325
- return h[0] === "?" && (l = "?", f = ""), (a || a === "") && i.indexOf("<") === -1 ? this.indentate(s) + "<" + h + a + l + ">" + i + f : this.options.commentPropName !== !1 && h === this.options.commentPropName && l.length === 0 ? this.indentate(s) + `<!--${i}-->` + this.newLine : this.indentate(s) + "<" + h + a + l + this.tagEndChar + i + this.indentate(s) + f;
4334
+ return h[0] === "?" && (l = "?", f = ""), (o || o === "") && i.indexOf("<") === -1 ? this.indentate(s) + "<" + h + o + l + ">" + i + f : this.options.commentPropName !== !1 && h === this.options.commentPropName && l.length === 0 ? this.indentate(s) + `<!--${i}-->` + this.newLine : this.indentate(s) + "<" + h + o + l + this.tagEndChar + i + this.indentate(s) + f;
4326
4335
  }
4327
4336
  }, n.prototype.closeTag = function(i) {
4328
4337
  let h = "";
4329
4338
  return this.options.unpairedTags.indexOf(i) !== -1 ? this.options.suppressUnpairedNode || (h = "/") : this.options.suppressEmptyNode ? h = "/" : h = `></${i}`, h;
4330
- }, n.prototype.buildTextValNode = function(i, h, a, s) {
4339
+ }, n.prototype.buildTextValNode = function(i, h, o, s) {
4331
4340
  if (this.options.cdataPropName !== !1 && h === this.options.cdataPropName)
4332
4341
  return this.indentate(s) + `<![CDATA[${i}]]>` + this.newLine;
4333
4342
  if (this.options.commentPropName !== !1 && h === this.options.commentPropName)
4334
4343
  return this.indentate(s) + `<!--${i}-->` + this.newLine;
4335
4344
  if (h[0] === "?")
4336
- return this.indentate(s) + "<" + h + a + "?" + this.tagEndChar;
4345
+ return this.indentate(s) + "<" + h + o + "?" + this.tagEndChar;
4337
4346
  {
4338
4347
  let f = this.options.tagValueProcessor(h, i);
4339
- return f = this.replaceEntitiesValue(f), f === "" ? this.indentate(s) + "<" + h + a + this.closeTag(h) + this.tagEndChar : this.indentate(s) + "<" + h + a + ">" + f + "</" + h + this.tagEndChar;
4348
+ return f = this.replaceEntitiesValue(f), f === "" ? this.indentate(s) + "<" + h + o + this.closeTag(h) + this.tagEndChar : this.indentate(s) + "<" + h + o + ">" + f + "</" + h + this.tagEndChar;
4340
4349
  }
4341
4350
  }, n.prototype.replaceEntitiesValue = function(i) {
4342
4351
  if (i && i.length > 0 && this.options.processEntities)
4343
4352
  for (let h = 0; h < this.options.entities.length; h++) {
4344
- const a = this.options.entities[h];
4345
- i = i.replace(a.regex, a.val);
4353
+ const o = this.options.entities[h];
4354
+ i = i.replace(o.regex, o.val);
4346
4355
  }
4347
4356
  return i;
4348
4357
  };
@@ -4367,16 +4376,16 @@ function Ps() {
4367
4376
  }
4368
4377
  var pt = Ps();
4369
4378
  const nt = (r, e) => Object.fromEntries(
4370
- Object.entries(r).map(([t, n]) => e.includes(t) ? [t, n || ""] : [de.DavNamespace.includes(t) ? `d:${t}` : `oc:${t}`, n || ""])
4379
+ Object.entries(r).map(([t, n]) => e.includes(t) ? [t, n || ""] : [me.DavNamespace.includes(t) ? `d:${t}` : `oc:${t}`, n || ""])
4371
4380
  ), Yt = (r = [], {
4372
4381
  pattern: e,
4373
4382
  filterRules: t,
4374
4383
  limit: n = 0,
4375
- extraProps: o = []
4384
+ extraProps: a = []
4376
4385
  }) => {
4377
4386
  let u = "d:propfind";
4378
4387
  e && (u = "oc:search-files"), t && (u = "oc:filter-files");
4379
- const c = r.reduce((s, f) => Object.assign(s, { [f]: null }), {}), i = nt(c, o), h = {
4388
+ const c = r.reduce((s, f) => Object.assign(s, { [f]: null }), {}), i = nt(c, a), h = {
4380
4389
  [u]: {
4381
4390
  "d:prop": i,
4382
4391
  "@@xmlns:d": "DAV:",
@@ -4414,16 +4423,16 @@ const nt = (r, e) => Object.fromEntries(
4414
4423
  return t ? (e.version = t.split(","), r.get("tus-extension") && (e.extension = r.get("tus-extension").split(",")), r.get("tus-resumable") && (e.resumable = r.get("tus-resumable")), r.get("tus-max-size") && (e.maxSize = parseInt(r.get("tus-max-size"), 10)), e) : null;
4415
4424
  }, Ts = async (r) => {
4416
4425
  const e = (n) => {
4417
- const o = decodeURIComponent(n);
4418
- return n?.startsWith("/remote.php/dav/") ? M(o.replace("/remote.php/dav/", ""), {
4426
+ const a = decodeURIComponent(n);
4427
+ return n?.startsWith("/remote.php/dav/") ? M(a.replace("/remote.php/dav/", ""), {
4419
4428
  leadingSlash: !0,
4420
4429
  trailingSlash: !1
4421
- }) : o;
4430
+ }) : a;
4422
4431
  };
4423
- return (await os(r)).multistatus.response.map(({ href: n, propstat: o }) => {
4432
+ return (await os(r)).multistatus.response.map(({ href: n, propstat: a }) => {
4424
4433
  const u = {
4425
- ...as(o.prop, e(n), !0),
4426
- processing: o.status === "HTTP/1.1 425 TOO EARLY"
4434
+ ...as(a.prop, e(n), !0),
4435
+ processing: a.status === "HTTP/1.1 425 TOO EARLY"
4427
4436
  };
4428
4437
  return u.props.name && (u.props.name = u.props.name.toString()), u;
4429
4438
  });
@@ -4437,12 +4446,12 @@ const nt = (r, e) => Object.fromEntries(
4437
4446
  if (!n["d:error"])
4438
4447
  return t;
4439
4448
  if (n["d:error"]["s:message"]) {
4440
- const o = n["d:error"]["s:message"];
4441
- typeof o == "string" && (t.message = o);
4449
+ const a = n["d:error"]["s:message"];
4450
+ typeof a == "string" && (t.message = a);
4442
4451
  }
4443
4452
  if (n["d:error"]["s:errorcode"]) {
4444
- const o = n["d:error"]["s:errorcode"];
4445
- typeof o == "string" && (t.errorCode = o);
4453
+ const a = n["d:error"]["s:errorcode"];
4454
+ typeof a == "string" && (t.errorCode = a);
4446
4455
  }
4447
4456
  } catch {
4448
4457
  return t;
@@ -4463,10 +4472,10 @@ class Cs {
4463
4472
  async propfind(e, {
4464
4473
  depth: t = 1,
4465
4474
  properties: n = [],
4466
- headers: o = {},
4475
+ headers: a = {},
4467
4476
  ...u
4468
4477
  } = {}) {
4469
- const c = { ...o, Depth: t.toString() }, { body: i, result: h } = await this.request(e, {
4478
+ const c = { ...a, Depth: t.toString() }, { body: i, result: h } = await this.request(e, {
4470
4479
  method: se.propfind,
4471
4480
  data: Yt(n, { extraProps: this.extraProps }),
4472
4481
  headers: c,
@@ -4477,7 +4486,7 @@ class Cs {
4477
4486
  async report(e, {
4478
4487
  pattern: t = "",
4479
4488
  filterRules: n = null,
4480
- limit: o = 30,
4489
+ limit: a = 30,
4481
4490
  properties: u,
4482
4491
  ...c
4483
4492
  } = {}) {
@@ -4486,7 +4495,7 @@ class Cs {
4486
4495
  data: Yt(u, {
4487
4496
  pattern: t,
4488
4497
  filterRules: n,
4489
- limit: o,
4498
+ limit: a,
4490
4499
  extraProps: this.extraProps
4491
4500
  }),
4492
4501
  ...c
@@ -4496,25 +4505,25 @@ class Cs {
4496
4505
  range: h.headers.get("content-range")
4497
4506
  };
4498
4507
  }
4499
- copy(e, t, { overwrite: n = !1, headers: o = {}, ...u } = {}) {
4508
+ copy(e, t, { overwrite: n = !1, headers: a = {}, ...u } = {}) {
4500
4509
  const c = M(this.davPath, we(t));
4501
4510
  return this.request(e, {
4502
4511
  method: se.copy,
4503
- headers: { ...o, Destination: c, overwrite: n ? "T" : "F" },
4512
+ headers: { ...a, Destination: c, overwrite: n ? "T" : "F" },
4504
4513
  ...u
4505
4514
  });
4506
4515
  }
4507
- move(e, t, { overwrite: n = !1, headers: o = {}, ...u } = {}) {
4516
+ move(e, t, { overwrite: n = !1, headers: a = {}, ...u } = {}) {
4508
4517
  const c = M(this.davPath, we(t));
4509
4518
  return this.request(e, {
4510
4519
  method: se.move,
4511
- headers: { ...o, Destination: c, overwrite: n ? "T" : "F" },
4520
+ headers: { ...a, Destination: c, overwrite: n ? "T" : "F" },
4512
4521
  ...u
4513
4522
  });
4514
4523
  }
4515
4524
  put(e, t, {
4516
4525
  headers: n = {},
4517
- onUploadProgress: o,
4526
+ onUploadProgress: a,
4518
4527
  previousEntityTag: u,
4519
4528
  overwrite: c,
4520
4529
  ...i
@@ -4524,7 +4533,7 @@ class Cs {
4524
4533
  method: se.put,
4525
4534
  data: t,
4526
4535
  headers: h,
4527
- onUploadProgress: o,
4536
+ onUploadProgress: a,
4528
4537
  ...i
4529
4538
  });
4530
4539
  }
@@ -4532,8 +4541,8 @@ class Cs {
4532
4541
  return this.request(e, { method: se.delete, ...t });
4533
4542
  }
4534
4543
  propPatch(e, t, n = {}) {
4535
- const o = Es(t);
4536
- return this.request(e, { method: se.proppatch, data: o, ...n });
4544
+ const a = Es(t);
4545
+ return this.request(e, { method: se.proppatch, data: a, ...n });
4537
4546
  }
4538
4547
  getFileUrl(e) {
4539
4548
  return M(this.davPath, we(e));
@@ -4548,13 +4557,13 @@ class Cs {
4548
4557
  };
4549
4558
  }
4550
4559
  async request(e, t) {
4551
- const n = M(this.davPath, we(e), { leadingSlash: !0 }), o = {
4560
+ const n = M(this.davPath, we(e), { leadingSlash: !0 }), a = {
4552
4561
  ...t,
4553
4562
  url: n,
4554
4563
  headers: this.buildHeaders(t.headers || {})
4555
4564
  };
4556
4565
  try {
4557
- const u = await this.client.customRequest("", o);
4566
+ const u = await this.client.customRequest("", a);
4558
4567
  let c;
4559
4568
  if (u.status === 207) {
4560
4569
  const i = await u.text();
@@ -4578,35 +4587,40 @@ class Cs {
4578
4587
  }
4579
4588
  const Is = (r, e) => ({
4580
4589
  async listFileVersions(t, n = {}) {
4581
- const [o, ...u] = await r.propfind(
4590
+ const [a, ...u] = await r.propfind(
4582
4591
  M("meta", t, "v", { leadingSlash: !0 }),
4583
4592
  n
4584
4593
  );
4585
4594
  return u.map((c) => ue(c, r.extraProps));
4586
4595
  }
4587
4596
  }), Ss = (r, e) => ({
4588
- setFavorite(t, { path: n }, o, u = {}) {
4589
- const c = { [me.IsFavorite]: o ? "true" : "false" };
4597
+ setFavorite(t, { path: n }, a, u = {}) {
4598
+ const c = { [he.IsFavorite]: a ? "true" : "false" };
4590
4599
  return r.propPatch(M(t.webDavPath, n), c, u);
4591
4600
  }
4592
4601
  }), Fs = (r, e) => ({
4593
4602
  listFavoriteFiles({
4594
- davProperties: t = de.Default,
4603
+ davProperties: t = me.Default,
4595
4604
  username: n = "",
4596
- ...o
4605
+ ...a
4597
4606
  } = {}) {
4598
4607
  return r.report(M("files", n), {
4599
4608
  properties: t,
4600
4609
  filterRules: { favorite: 1 },
4601
- ...o
4610
+ ...a
4602
4611
  });
4603
4612
  }
4604
4613
  }), Us = (r, e) => {
4605
4614
  const t = Nr.create();
4606
4615
  e && t.interceptors.request.use((P) => (Object.assign(P.headers, e()), P));
4607
- const n = { axiosClient: t, baseUrl: r }, o = new Cs({ baseUrl: r, headers: e }), u = (P) => {
4608
- o.extraProps.push(P);
4609
- }, c = Vr(o), { getPathForFileId: i } = c, h = jr(o, c), { listFiles: a } = h, s = Ir(h), { getFileInfo: f } = s, { createFolder: l } = Or(o, s), g = Cr(o, n), { getFileContents: d } = g, { putFileContents: m } = Rr(o, s), { getFileUrl: w, revokeUrl: v } = Sr(o, g, n), { getPublicFileUrl: p } = Fr(o), { copyFiles: y } = Tr(o), { moveFiles: A } = $r(o), { deleteFile: N } = Lr(o), { restoreFile: b } = kr(o), { listFileVersions: E } = Is(o), { restoreFileVersion: x } = Ur(o), { clearTrashBin: T } = _r(o), { search: O } = Mr(o), { listFavoriteFiles: I } = Fs(o), { setFavorite: C } = Ss(o);
4616
+ const n = { axiosClient: t, baseUrl: r }, a = new Cs({ baseUrl: r, headers: e }), u = (P) => {
4617
+ a.extraProps.push(P);
4618
+ }, c = Vr(a), { getPathForFileId: i } = c, h = jr(a, c), { listFiles: o } = h, s = Ir(h), { getFileInfo: f } = s, { createFolder: l } = Or(a, s), g = Cr(a, n), { getFileContents: d } = g, { putFileContents: m } = Rr(a, s), { getFileUrl: w, revokeUrl: v } = Sr(
4619
+ a,
4620
+ g,
4621
+ s,
4622
+ n
4623
+ ), { getPublicFileUrl: p } = Fr(a), { copyFiles: y } = Tr(a), { moveFiles: A } = $r(a), { deleteFile: N } = Lr(a), { restoreFile: b } = kr(a), { listFileVersions: E } = Is(a), { restoreFileVersion: x } = Ur(a), { clearTrashBin: T } = _r(a), { search: O } = Mr(a), { listFavoriteFiles: I } = Fs(a), { setFavorite: C } = Ss(a);
4610
4624
  return {
4611
4625
  copyFiles: y,
4612
4626
  createFolder: l,
@@ -4618,7 +4632,7 @@ const Is = (r, e) => ({
4618
4632
  getFileUrl: w,
4619
4633
  getPublicFileUrl: p,
4620
4634
  getPathForFileId: i,
4621
- listFiles: a,
4635
+ listFiles: o,
4622
4636
  listFileVersions: E,
4623
4637
  moveFiles: A,
4624
4638
  putFileContents: m,