@telia-ace/alliance-utilities 1.0.7-next.0 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/dist/index.js +608 -605
- package/dist/index.js.map +1 -1
- package/dist/vite-plugin-css-import.d.ts +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Le = (e, t, r) => (
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { pipeline as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
1
|
+
var $n = Object.defineProperty;
|
|
2
|
+
var Pn = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var Le = (e, t, r) => (Pn(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
+
import dr from "fs";
|
|
5
|
+
import X, { resolve as xt, dirname as kn, relative as Fn } from "path";
|
|
6
|
+
import { pipeline as jn } from "stream/promises";
|
|
7
|
+
var mr = /* @__PURE__ */ ((e) => (e[e.Done = 0] = "Done", e[e.NoWorkspaceName = 1] = "NoWorkspaceName", e[e.NoAppName = 2] = "NoAppName", e[e.AlreadyExists = 3] = "AlreadyExists", e[e.NoAppOrWorkspaceInCurrentDirectory = 4] = "NoAppOrWorkspaceInCurrentDirectory", e[e.UnrecognizedCommand = 5] = "UnrecognizedCommand", e[e.WorkspaceCreated = 6] = "WorkspaceCreated", e[e.AppCreated = 7] = "AppCreated", e[e.ServedStopped = 8] = "ServedStopped", e[e.WorkspaceNameInquiry = 9] = "WorkspaceNameInquiry", e[e.AppNameInquiry = 10] = "AppNameInquiry", e[e.ServerModeInquiry = 11] = "ServerModeInquiry", e[e.CreateWorkspaceDescription = 12] = "CreateWorkspaceDescription", e[e.CreateAppDescription = 13] = "CreateAppDescription", e[e.ServeDescription = 14] = "ServeDescription", e[e.BuildDescription = 15] = "BuildDescription", e[e.MissingTranslationKey = 16] = "MissingTranslationKey", e[e.OperationCancelled = 17] = "OperationCancelled", e[e.StopServerInstructions = 18] = "StopServerInstructions", e[e.TemplateLanguageInquiry = 19] = "TemplateLanguageInquiry", e[e.TemplateFrameworkInquiry = 20] = "TemplateFrameworkInquiry", e[e.DevServerPortDescription = 21] = "DevServerPortDescription", e[e.ApiGatewayPortDescription = 22] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 23] = "ApiServerModeDescription", e[e.DevServerOpenDescription = 24] = "DevServerOpenDescription", e[e.BuildWatchDescription = 25] = "BuildWatchDescription", e[e.CouldNotStartGatewayInDocker = 26] = "CouldNotStartGatewayInDocker", e[e.PullingLatestImage = 27] = "PullingLatestImage", e[e.AppEntryBuildOptionDescription = 28] = "AppEntryBuildOptionDescription", e[e.ManifestEntryBuildOptionDescription = 29] = "ManifestEntryBuildOptionDescription", e[e.BuildModeOptionDescription = 30] = "BuildModeOptionDescription", e[e.FetchPackageVersionError = 31] = "FetchPackageVersionError", e[e.DockerNotStartedOrInstalled = 32] = "DockerNotStartedOrInstalled", e[e.EnableDevAuthentication = 33] = "EnableDevAuthentication", e[e.NoAppNameFound = 34] = "NoAppNameFound", e[e.AppConfigurationPath = 35] = "AppConfigurationPath", e[e.ServerGatewayMode = 36] = "ServerGatewayMode", e[e.ServerProxyMode = 37] = "ServerProxyMode", e[e.ServerMode = 38] = "ServerMode", e[e.DevLoginUrl = 39] = "DevLoginUrl", e))(mr || {});
|
|
8
|
+
const Dn = {
|
|
9
9
|
[
|
|
10
10
|
0
|
|
11
11
|
/* Done */
|
|
@@ -170,7 +170,7 @@ const Fn = {
|
|
|
170
170
|
}, et = class {
|
|
171
171
|
};
|
|
172
172
|
let je = et;
|
|
173
|
-
Le(je, "getTranslations", () =>
|
|
173
|
+
Le(je, "getTranslations", () => Dn), Le(je, "getTranslation", (t, ...r) => {
|
|
174
174
|
const i = et.getTranslations()[t];
|
|
175
175
|
if (!i)
|
|
176
176
|
throw new Error(`Could not find text with given key '${t}'.`);
|
|
@@ -178,9 +178,9 @@ Le(je, "getTranslations", () => Fn), Le(je, "getTranslation", (t, ...r) => {
|
|
|
178
178
|
(a, u, y) => a.toString().replace(`{${y}}`, u.toString()),
|
|
179
179
|
i
|
|
180
180
|
).toString();
|
|
181
|
-
}), Le(je, "get", (t =
|
|
181
|
+
}), Le(je, "get", (t = mr.MissingTranslationKey, ...r) => et.getTranslation(t, ...r));
|
|
182
182
|
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
183
|
-
function
|
|
183
|
+
function In(e) {
|
|
184
184
|
if (e.__esModule)
|
|
185
185
|
return e;
|
|
186
186
|
var t = e.default;
|
|
@@ -230,70 +230,70 @@ q.fromPromise = function(e) {
|
|
|
230
230
|
e.apply(this, t.slice(0, -1)).then((n) => r(null, n), r);
|
|
231
231
|
}, "name", { value: e.name });
|
|
232
232
|
};
|
|
233
|
-
const
|
|
233
|
+
const Nn = {}, Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
234
234
|
__proto__: null,
|
|
235
|
-
default:
|
|
236
|
-
}, Symbol.toStringTag, { value: "Module" })), It = /* @__PURE__ */
|
|
237
|
-
var oe = It,
|
|
235
|
+
default: Nn
|
|
236
|
+
}, Symbol.toStringTag, { value: "Module" })), It = /* @__PURE__ */ In(Cn);
|
|
237
|
+
var oe = It, Bn = process.cwd, xe = null, _n = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
238
238
|
process.cwd = function() {
|
|
239
|
-
return xe || (xe =
|
|
239
|
+
return xe || (xe = Bn.call(process)), xe;
|
|
240
240
|
};
|
|
241
241
|
try {
|
|
242
242
|
process.cwd();
|
|
243
243
|
} catch {
|
|
244
244
|
}
|
|
245
245
|
if (typeof process.chdir == "function") {
|
|
246
|
-
var
|
|
246
|
+
var qt = process.chdir;
|
|
247
247
|
process.chdir = function(e) {
|
|
248
|
-
xe = null,
|
|
249
|
-
}, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir,
|
|
248
|
+
xe = null, qt.call(process, e);
|
|
249
|
+
}, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, qt);
|
|
250
250
|
}
|
|
251
|
-
var
|
|
252
|
-
function
|
|
251
|
+
var Mn = Rn;
|
|
252
|
+
function Rn(e) {
|
|
253
253
|
oe.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && t(e), e.lutimes || r(e), e.chown = o(e.chown), e.fchown = o(e.fchown), e.lchown = o(e.lchown), e.chmod = n(e.chmod), e.fchmod = n(e.fchmod), e.lchmod = n(e.lchmod), e.chownSync = a(e.chownSync), e.fchownSync = a(e.fchownSync), e.lchownSync = a(e.lchownSync), e.chmodSync = i(e.chmodSync), e.fchmodSync = i(e.fchmodSync), e.lchmodSync = i(e.lchmodSync), e.stat = u(e.stat), e.fstat = u(e.fstat), e.lstat = u(e.lstat), e.statSync = y(e.statSync), e.fstatSync = y(e.fstatSync), e.lstatSync = y(e.lstatSync), e.chmod && !e.lchmod && (e.lchmod = function(f, d, m) {
|
|
254
254
|
m && process.nextTick(m);
|
|
255
255
|
}, e.lchmodSync = function() {
|
|
256
256
|
}), e.chown && !e.lchown && (e.lchown = function(f, d, m, h) {
|
|
257
257
|
h && process.nextTick(h);
|
|
258
258
|
}, e.lchownSync = function() {
|
|
259
|
-
}),
|
|
260
|
-
function d(m, h,
|
|
261
|
-
var $ = Date.now(),
|
|
259
|
+
}), _n === "win32" && (e.rename = typeof e.rename != "function" ? e.rename : function(f) {
|
|
260
|
+
function d(m, h, g) {
|
|
261
|
+
var $ = Date.now(), F = 0;
|
|
262
262
|
f(m, h, function I(L) {
|
|
263
263
|
if (L && (L.code === "EACCES" || L.code === "EPERM") && Date.now() - $ < 6e4) {
|
|
264
264
|
setTimeout(function() {
|
|
265
265
|
e.stat(h, function(G, te) {
|
|
266
|
-
G && G.code === "ENOENT" ? f(m, h, I) :
|
|
266
|
+
G && G.code === "ENOENT" ? f(m, h, I) : g(L);
|
|
267
267
|
});
|
|
268
|
-
},
|
|
268
|
+
}, F), F < 100 && (F += 10);
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
|
-
|
|
271
|
+
g && g(L);
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
return Object.setPrototypeOf && Object.setPrototypeOf(d, f), d;
|
|
275
275
|
}(e.rename)), e.read = typeof e.read != "function" ? e.read : function(f) {
|
|
276
|
-
function d(m, h,
|
|
276
|
+
function d(m, h, g, $, F, I) {
|
|
277
277
|
var L;
|
|
278
278
|
if (I && typeof I == "function") {
|
|
279
279
|
var G = 0;
|
|
280
280
|
L = function(te, ie, he) {
|
|
281
281
|
if (te && te.code === "EAGAIN" && G < 10)
|
|
282
|
-
return G++, f.call(e, m, h,
|
|
282
|
+
return G++, f.call(e, m, h, g, $, F, L);
|
|
283
283
|
I.apply(this, arguments);
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
return f.call(e, m, h,
|
|
286
|
+
return f.call(e, m, h, g, $, F, L);
|
|
287
287
|
}
|
|
288
288
|
return Object.setPrototypeOf && Object.setPrototypeOf(d, f), d;
|
|
289
289
|
}(e.read), e.readSync = typeof e.readSync != "function" ? e.readSync : function(f) {
|
|
290
|
-
return function(d, m, h,
|
|
291
|
-
for (var
|
|
290
|
+
return function(d, m, h, g, $) {
|
|
291
|
+
for (var F = 0; ; )
|
|
292
292
|
try {
|
|
293
|
-
return f.call(e, d, m, h,
|
|
293
|
+
return f.call(e, d, m, h, g, $);
|
|
294
294
|
} catch (I) {
|
|
295
|
-
if (I.code === "EAGAIN" &&
|
|
296
|
-
|
|
295
|
+
if (I.code === "EAGAIN" && F < 10) {
|
|
296
|
+
F++;
|
|
297
297
|
continue;
|
|
298
298
|
}
|
|
299
299
|
throw I;
|
|
@@ -306,24 +306,24 @@ function Bn(e) {
|
|
|
306
306
|
d,
|
|
307
307
|
oe.O_WRONLY | oe.O_SYMLINK,
|
|
308
308
|
m,
|
|
309
|
-
function(
|
|
310
|
-
if (
|
|
311
|
-
h && h(
|
|
309
|
+
function(g, $) {
|
|
310
|
+
if (g) {
|
|
311
|
+
h && h(g);
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
|
-
f.fchmod($, m, function(
|
|
314
|
+
f.fchmod($, m, function(F) {
|
|
315
315
|
f.close($, function(I) {
|
|
316
|
-
h && h(
|
|
316
|
+
h && h(F || I);
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
);
|
|
321
321
|
}, f.lchmodSync = function(d, m) {
|
|
322
|
-
var h = f.openSync(d, oe.O_WRONLY | oe.O_SYMLINK, m),
|
|
322
|
+
var h = f.openSync(d, oe.O_WRONLY | oe.O_SYMLINK, m), g = !0, $;
|
|
323
323
|
try {
|
|
324
|
-
$ = f.fchmodSync(h, m),
|
|
324
|
+
$ = f.fchmodSync(h, m), g = !1;
|
|
325
325
|
} finally {
|
|
326
|
-
if (
|
|
326
|
+
if (g)
|
|
327
327
|
try {
|
|
328
328
|
f.closeSync(h);
|
|
329
329
|
} catch {
|
|
@@ -335,41 +335,41 @@ function Bn(e) {
|
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
function r(f) {
|
|
338
|
-
oe.hasOwnProperty("O_SYMLINK") && f.futimes ? (f.lutimes = function(d, m, h,
|
|
339
|
-
f.open(d, oe.O_SYMLINK, function($,
|
|
338
|
+
oe.hasOwnProperty("O_SYMLINK") && f.futimes ? (f.lutimes = function(d, m, h, g) {
|
|
339
|
+
f.open(d, oe.O_SYMLINK, function($, F) {
|
|
340
340
|
if ($) {
|
|
341
|
-
|
|
341
|
+
g && g($);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
f.futimes(
|
|
345
|
-
f.close(
|
|
346
|
-
|
|
344
|
+
f.futimes(F, m, h, function(I) {
|
|
345
|
+
f.close(F, function(L) {
|
|
346
|
+
g && g(I || L);
|
|
347
347
|
});
|
|
348
348
|
});
|
|
349
349
|
});
|
|
350
350
|
}, f.lutimesSync = function(d, m, h) {
|
|
351
|
-
var
|
|
351
|
+
var g = f.openSync(d, oe.O_SYMLINK), $, F = !0;
|
|
352
352
|
try {
|
|
353
|
-
$ = f.futimesSync(
|
|
353
|
+
$ = f.futimesSync(g, m, h), F = !1;
|
|
354
354
|
} finally {
|
|
355
|
-
if (
|
|
355
|
+
if (F)
|
|
356
356
|
try {
|
|
357
|
-
f.closeSync(
|
|
357
|
+
f.closeSync(g);
|
|
358
358
|
} catch {
|
|
359
359
|
}
|
|
360
360
|
else
|
|
361
|
-
f.closeSync(
|
|
361
|
+
f.closeSync(g);
|
|
362
362
|
}
|
|
363
363
|
return $;
|
|
364
|
-
}) : f.futimes && (f.lutimes = function(d, m, h,
|
|
365
|
-
|
|
364
|
+
}) : f.futimes && (f.lutimes = function(d, m, h, g) {
|
|
365
|
+
g && process.nextTick(g);
|
|
366
366
|
}, f.lutimesSync = function() {
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
function n(f) {
|
|
370
370
|
return f && function(d, m, h) {
|
|
371
|
-
return f.call(e, d, m, function(
|
|
372
|
-
g
|
|
371
|
+
return f.call(e, d, m, function(g) {
|
|
372
|
+
S(g) && (g = null), h && h.apply(this, arguments);
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
375
|
}
|
|
@@ -378,15 +378,15 @@ function Bn(e) {
|
|
|
378
378
|
try {
|
|
379
379
|
return f.call(e, d, m);
|
|
380
380
|
} catch (h) {
|
|
381
|
-
if (!
|
|
381
|
+
if (!S(h))
|
|
382
382
|
throw h;
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
function o(f) {
|
|
387
|
-
return f && function(d, m, h,
|
|
387
|
+
return f && function(d, m, h, g) {
|
|
388
388
|
return f.call(e, d, m, h, function($) {
|
|
389
|
-
|
|
389
|
+
S($) && ($ = null), g && g.apply(this, arguments);
|
|
390
390
|
});
|
|
391
391
|
};
|
|
392
392
|
}
|
|
@@ -394,19 +394,19 @@ function Bn(e) {
|
|
|
394
394
|
return f && function(d, m, h) {
|
|
395
395
|
try {
|
|
396
396
|
return f.call(e, d, m, h);
|
|
397
|
-
} catch (
|
|
398
|
-
if (!g
|
|
399
|
-
throw
|
|
397
|
+
} catch (g) {
|
|
398
|
+
if (!S(g))
|
|
399
|
+
throw g;
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
function u(f) {
|
|
404
404
|
return f && function(d, m, h) {
|
|
405
405
|
typeof m == "function" && (h = m, m = null);
|
|
406
|
-
function
|
|
407
|
-
|
|
406
|
+
function g($, F) {
|
|
407
|
+
F && (F.uid < 0 && (F.uid += 4294967296), F.gid < 0 && (F.gid += 4294967296)), h && h.apply(this, arguments);
|
|
408
408
|
}
|
|
409
|
-
return m ? f.call(e, d, m,
|
|
409
|
+
return m ? f.call(e, d, m, g) : f.call(e, d, g);
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
function y(f) {
|
|
@@ -415,15 +415,15 @@ function Bn(e) {
|
|
|
415
415
|
return h && (h.uid < 0 && (h.uid += 4294967296), h.gid < 0 && (h.gid += 4294967296)), h;
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function S(f) {
|
|
419
419
|
if (!f || f.code === "ENOSYS")
|
|
420
420
|
return !0;
|
|
421
421
|
var d = !process.getuid || process.getuid() !== 0;
|
|
422
422
|
return !!(d && (f.code === "EINVAL" || f.code === "EPERM"));
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
426
|
-
function
|
|
425
|
+
var Ht = It.Stream, Wn = Un;
|
|
426
|
+
function Un(e) {
|
|
427
427
|
return {
|
|
428
428
|
ReadStream: t,
|
|
429
429
|
WriteStream: r
|
|
@@ -431,12 +431,12 @@ function Mn(e) {
|
|
|
431
431
|
function t(n, i) {
|
|
432
432
|
if (!(this instanceof t))
|
|
433
433
|
return new t(n, i);
|
|
434
|
-
|
|
434
|
+
Ht.call(this);
|
|
435
435
|
var o = this;
|
|
436
436
|
this.path = n, this.fd = null, this.readable = !0, this.paused = !1, this.flags = "r", this.mode = 438, this.bufferSize = 64 * 1024, i = i || {};
|
|
437
437
|
for (var a = Object.keys(i), u = 0, y = a.length; u < y; u++) {
|
|
438
|
-
var
|
|
439
|
-
this[
|
|
438
|
+
var S = a[u];
|
|
439
|
+
this[S] = i[S];
|
|
440
440
|
}
|
|
441
441
|
if (this.encoding && this.setEncoding(this.encoding), this.start !== void 0) {
|
|
442
442
|
if (typeof this.start != "number")
|
|
@@ -466,7 +466,7 @@ function Mn(e) {
|
|
|
466
466
|
function r(n, i) {
|
|
467
467
|
if (!(this instanceof r))
|
|
468
468
|
return new r(n, i);
|
|
469
|
-
|
|
469
|
+
Ht.call(this), this.path = n, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten = 0, i = i || {};
|
|
470
470
|
for (var o = Object.keys(i), a = 0, u = o.length; a < u; a++) {
|
|
471
471
|
var y = o[a];
|
|
472
472
|
this[y] = i[y];
|
|
@@ -481,21 +481,21 @@ function Mn(e) {
|
|
|
481
481
|
this.busy = !1, this._queue = [], this.fd === null && (this._open = e.open, this._queue.push([this._open, this.path, this.flags, this.mode, void 0]), this.flush());
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
var
|
|
484
|
+
var Tn = Gn, Ln = Object.getPrototypeOf || function(e) {
|
|
485
485
|
return e.__proto__;
|
|
486
486
|
};
|
|
487
|
-
function
|
|
487
|
+
function Gn(e) {
|
|
488
488
|
if (e === null || typeof e != "object")
|
|
489
489
|
return e;
|
|
490
490
|
if (e instanceof Object)
|
|
491
|
-
var t = { __proto__:
|
|
491
|
+
var t = { __proto__: Ln(e) };
|
|
492
492
|
else
|
|
493
493
|
var t = /* @__PURE__ */ Object.create(null);
|
|
494
494
|
return Object.getOwnPropertyNames(e).forEach(function(r) {
|
|
495
495
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
496
496
|
}), t;
|
|
497
497
|
}
|
|
498
|
-
var Nt = {},
|
|
498
|
+
var Nt = {}, hr = {}, gr = function() {
|
|
499
499
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
500
500
|
return !1;
|
|
501
501
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -518,14 +518,14 @@ var Nt = {}, mr = {}, hr = function() {
|
|
|
518
518
|
return !1;
|
|
519
519
|
}
|
|
520
520
|
return !0;
|
|
521
|
-
},
|
|
522
|
-
return
|
|
523
|
-
},
|
|
524
|
-
return typeof
|
|
525
|
-
},
|
|
521
|
+
}, Jn = gr, tt = function() {
|
|
522
|
+
return Jn() && !!Symbol.toStringTag;
|
|
523
|
+
}, Yt = typeof Symbol < "u" && Symbol, Vn = gr, zn = function() {
|
|
524
|
+
return typeof Yt != "function" || typeof Symbol != "function" || typeof Yt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Vn();
|
|
525
|
+
}, xn = "Function.prototype.bind called on incompatible ", ct = Array.prototype.slice, qn = Object.prototype.toString, Hn = "[object Function]", Yn = function(t) {
|
|
526
526
|
var r = this;
|
|
527
|
-
if (typeof r != "function" ||
|
|
528
|
-
throw new TypeError(
|
|
527
|
+
if (typeof r != "function" || qn.call(r) !== Hn)
|
|
528
|
+
throw new TypeError(xn + r);
|
|
529
529
|
for (var n = ct.call(arguments, 1), i, o = function() {
|
|
530
530
|
if (this instanceof i) {
|
|
531
531
|
var f = r.apply(
|
|
@@ -541,12 +541,12 @@ var Nt = {}, mr = {}, hr = function() {
|
|
|
541
541
|
}, a = Math.max(0, r.length - n.length), u = [], y = 0; y < a; y++)
|
|
542
542
|
u.push("$" + y);
|
|
543
543
|
if (i = Function("binder", "return function (" + u.join(",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
544
|
-
var
|
|
544
|
+
var S = function() {
|
|
545
545
|
};
|
|
546
|
-
|
|
546
|
+
S.prototype = r.prototype, i.prototype = new S(), S.prototype = null;
|
|
547
547
|
}
|
|
548
548
|
return i;
|
|
549
|
-
},
|
|
549
|
+
}, Qn = Yn, Ct = Function.prototype.bind || Qn, Xn = Ct, Zn = Xn.call(Function.call, Object.prototype.hasOwnProperty), E, $e = SyntaxError, Sr = Function, Ae = TypeError, ut = function(e) {
|
|
550
550
|
try {
|
|
551
551
|
return Sr('"use strict"; return (' + e + ").constructor;")();
|
|
552
552
|
} catch {
|
|
@@ -560,7 +560,7 @@ if (le)
|
|
|
560
560
|
}
|
|
561
561
|
var ft = function() {
|
|
562
562
|
throw new Ae();
|
|
563
|
-
},
|
|
563
|
+
}, Kn = le ? function() {
|
|
564
564
|
try {
|
|
565
565
|
return arguments.callee, ft;
|
|
566
566
|
} catch {
|
|
@@ -570,13 +570,13 @@ var ft = function() {
|
|
|
570
570
|
return ft;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
}() : ft,
|
|
573
|
+
}() : ft, Se = zn(), re = Object.getPrototypeOf || function(e) {
|
|
574
574
|
return e.__proto__;
|
|
575
|
-
}, we = {},
|
|
575
|
+
}, we = {}, ei = typeof Uint8Array > "u" ? E : re(Uint8Array), ye = {
|
|
576
576
|
"%AggregateError%": typeof AggregateError > "u" ? E : AggregateError,
|
|
577
577
|
"%Array%": Array,
|
|
578
578
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? E : ArrayBuffer,
|
|
579
|
-
"%ArrayIteratorPrototype%":
|
|
579
|
+
"%ArrayIteratorPrototype%": Se ? re([][Symbol.iterator]()) : E,
|
|
580
580
|
"%AsyncFromSyncIteratorPrototype%": E,
|
|
581
581
|
"%AsyncFunction%": we,
|
|
582
582
|
"%AsyncGenerator%": we,
|
|
@@ -607,10 +607,10 @@ var ft = function() {
|
|
|
607
607
|
"%Int32Array%": typeof Int32Array > "u" ? E : Int32Array,
|
|
608
608
|
"%isFinite%": isFinite,
|
|
609
609
|
"%isNaN%": isNaN,
|
|
610
|
-
"%IteratorPrototype%":
|
|
610
|
+
"%IteratorPrototype%": Se ? re(re([][Symbol.iterator]())) : E,
|
|
611
611
|
"%JSON%": typeof JSON == "object" ? JSON : E,
|
|
612
612
|
"%Map%": typeof Map > "u" ? E : Map,
|
|
613
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
613
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Se ? E : re((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
614
614
|
"%Math%": Math,
|
|
615
615
|
"%Number%": Number,
|
|
616
616
|
"%Object%": Object,
|
|
@@ -623,14 +623,14 @@ var ft = function() {
|
|
|
623
623
|
"%Reflect%": typeof Reflect > "u" ? E : Reflect,
|
|
624
624
|
"%RegExp%": RegExp,
|
|
625
625
|
"%Set%": typeof Set > "u" ? E : Set,
|
|
626
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
626
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Se ? E : re((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
627
627
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? E : SharedArrayBuffer,
|
|
628
628
|
"%String%": String,
|
|
629
|
-
"%StringIteratorPrototype%":
|
|
630
|
-
"%Symbol%":
|
|
629
|
+
"%StringIteratorPrototype%": Se ? re(""[Symbol.iterator]()) : E,
|
|
630
|
+
"%Symbol%": Se ? Symbol : E,
|
|
631
631
|
"%SyntaxError%": $e,
|
|
632
|
-
"%ThrowTypeError%":
|
|
633
|
-
"%TypedArray%":
|
|
632
|
+
"%ThrowTypeError%": Kn,
|
|
633
|
+
"%TypedArray%": ei,
|
|
634
634
|
"%TypeError%": Ae,
|
|
635
635
|
"%Uint8Array%": typeof Uint8Array > "u" ? E : Uint8Array,
|
|
636
636
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? E : Uint8ClampedArray,
|
|
@@ -644,10 +644,10 @@ var ft = function() {
|
|
|
644
644
|
try {
|
|
645
645
|
null.error;
|
|
646
646
|
} catch (e) {
|
|
647
|
-
var
|
|
648
|
-
ye["%Error.prototype%"] =
|
|
647
|
+
var ti = re(re(e));
|
|
648
|
+
ye["%Error.prototype%"] = ti;
|
|
649
649
|
}
|
|
650
|
-
var
|
|
650
|
+
var ri = function e(t) {
|
|
651
651
|
var r;
|
|
652
652
|
if (t === "%AsyncFunction%")
|
|
653
653
|
r = ut("async function () {}");
|
|
@@ -663,7 +663,7 @@ var Kn = function e(t) {
|
|
|
663
663
|
i && (r = re(i.prototype));
|
|
664
664
|
}
|
|
665
665
|
return ye[t] = r, r;
|
|
666
|
-
},
|
|
666
|
+
}, Qt = {
|
|
667
667
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
668
668
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
669
669
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -715,21 +715,21 @@ var Kn = function e(t) {
|
|
|
715
715
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
716
716
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
717
717
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
718
|
-
}, Me = Ct, Xe =
|
|
718
|
+
}, Me = Ct, Xe = Zn, ni = Me.call(Function.call, Array.prototype.concat), ii = Me.call(Function.apply, Array.prototype.splice), Xt = Me.call(Function.call, String.prototype.replace), Ze = Me.call(Function.call, String.prototype.slice), oi = Me.call(Function.call, RegExp.prototype.exec), ai = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ci = /\\(\\)?/g, ui = function(t) {
|
|
719
719
|
var r = Ze(t, 0, 1), n = Ze(t, -1);
|
|
720
720
|
if (r === "%" && n !== "%")
|
|
721
721
|
throw new $e("invalid intrinsic syntax, expected closing `%`");
|
|
722
722
|
if (n === "%" && r !== "%")
|
|
723
723
|
throw new $e("invalid intrinsic syntax, expected opening `%`");
|
|
724
724
|
var i = [];
|
|
725
|
-
return
|
|
726
|
-
i[i.length] = u ?
|
|
725
|
+
return Xt(t, ai, function(o, a, u, y) {
|
|
726
|
+
i[i.length] = u ? Xt(y, ci, "$1") : a || o;
|
|
727
727
|
}), i;
|
|
728
|
-
},
|
|
728
|
+
}, fi = function(t, r) {
|
|
729
729
|
var n = t, i;
|
|
730
|
-
if (Xe(
|
|
730
|
+
if (Xe(Qt, n) && (i = Qt[n], n = "%" + i[0] + "%"), Xe(ye, n)) {
|
|
731
731
|
var o = ye[n];
|
|
732
|
-
if (o === we && (o =
|
|
732
|
+
if (o === we && (o = ri(n)), typeof o > "u" && !r)
|
|
733
733
|
throw new Ae("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
734
734
|
return {
|
|
735
735
|
alias: i,
|
|
@@ -743,13 +743,13 @@ var Kn = function e(t) {
|
|
|
743
743
|
throw new Ae("intrinsic name must be a non-empty string");
|
|
744
744
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
745
745
|
throw new Ae('"allowMissing" argument must be a boolean');
|
|
746
|
-
if (
|
|
746
|
+
if (oi(/^%?[^%]*%?$/, t) === null)
|
|
747
747
|
throw new $e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
748
|
-
var n =
|
|
749
|
-
|
|
748
|
+
var n = ui(t), i = n.length > 0 ? n[0] : "", o = fi("%" + i + "%", r), a = o.name, u = o.value, y = !1, S = o.alias;
|
|
749
|
+
S && (i = S[0], ii(n, ni([0, 1], S)));
|
|
750
750
|
for (var f = 1, d = !0; f < n.length; f += 1) {
|
|
751
|
-
var m = n[f], h = Ze(m, 0, 1),
|
|
752
|
-
if ((h === '"' || h === "'" || h === "`" ||
|
|
751
|
+
var m = n[f], h = Ze(m, 0, 1), g = Ze(m, -1);
|
|
752
|
+
if ((h === '"' || h === "'" || h === "`" || g === '"' || g === "'" || g === "`") && h !== g)
|
|
753
753
|
throw new $e("property names with quotes must have matching quotes");
|
|
754
754
|
if ((m === "constructor" || !d) && (y = !0), i += "." + m, a = "%" + i + "%", Xe(ye, a))
|
|
755
755
|
u = ye[a];
|
|
@@ -768,7 +768,7 @@ var Kn = function e(t) {
|
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
return u;
|
|
771
|
-
}, bt = {},
|
|
771
|
+
}, bt = {}, si = {
|
|
772
772
|
get exports() {
|
|
773
773
|
return bt;
|
|
774
774
|
},
|
|
@@ -796,46 +796,46 @@ var Kn = function e(t) {
|
|
|
796
796
|
}
|
|
797
797
|
return m;
|
|
798
798
|
};
|
|
799
|
-
var
|
|
799
|
+
var S = function() {
|
|
800
800
|
return o(t, n, arguments);
|
|
801
801
|
};
|
|
802
|
-
u ? u(e.exports, "apply", { value:
|
|
803
|
-
})(
|
|
804
|
-
var
|
|
805
|
-
var n =
|
|
806
|
-
return typeof n == "function" &&
|
|
807
|
-
},
|
|
808
|
-
return
|
|
809
|
-
},
|
|
802
|
+
u ? u(e.exports, "apply", { value: S }) : e.exports.apply = S;
|
|
803
|
+
})(si);
|
|
804
|
+
var vr = Bt, wr = bt, li = wr(vr("String.prototype.indexOf")), _t = function(t, r) {
|
|
805
|
+
var n = vr(t, !!r);
|
|
806
|
+
return typeof n == "function" && li(t, ".prototype.") > -1 ? wr(n) : n;
|
|
807
|
+
}, yi = tt(), pi = _t, At = pi("Object.prototype.toString"), rt = function(t) {
|
|
808
|
+
return yi && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : At(t) === "[object Arguments]";
|
|
809
|
+
}, br = function(t) {
|
|
810
810
|
return rt(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && At(t) !== "[object Array]" && At(t.callee) === "[object Function]";
|
|
811
|
-
},
|
|
811
|
+
}, di = function() {
|
|
812
812
|
return rt(arguments);
|
|
813
813
|
}();
|
|
814
|
-
rt.isLegacyArguments =
|
|
815
|
-
var
|
|
816
|
-
if (!
|
|
814
|
+
rt.isLegacyArguments = br;
|
|
815
|
+
var mi = di ? rt : br, hi = Object.prototype.toString, gi = Function.prototype.toString, Si = /^\s*(?:function)?\*/, Ar = tt(), st = Object.getPrototypeOf, vi = function() {
|
|
816
|
+
if (!Ar)
|
|
817
817
|
return !1;
|
|
818
818
|
try {
|
|
819
819
|
return Function("return function*() {}")();
|
|
820
820
|
} catch {
|
|
821
821
|
}
|
|
822
|
-
}, lt,
|
|
822
|
+
}, lt, wi = function(t) {
|
|
823
823
|
if (typeof t != "function")
|
|
824
824
|
return !1;
|
|
825
|
-
if (
|
|
825
|
+
if (Si.test(gi.call(t)))
|
|
826
826
|
return !0;
|
|
827
|
-
if (!
|
|
828
|
-
var r =
|
|
827
|
+
if (!Ar) {
|
|
828
|
+
var r = hi.call(t);
|
|
829
829
|
return r === "[object GeneratorFunction]";
|
|
830
830
|
}
|
|
831
831
|
if (!st)
|
|
832
832
|
return !1;
|
|
833
833
|
if (typeof lt > "u") {
|
|
834
|
-
var n =
|
|
834
|
+
var n = vi();
|
|
835
835
|
lt = n ? st(n) : !1;
|
|
836
836
|
}
|
|
837
837
|
return st(t) === lt;
|
|
838
|
-
},
|
|
838
|
+
}, Or = Function.prototype.toString, be = typeof Reflect == "object" && Reflect !== null && Reflect.apply, Ot, qe;
|
|
839
839
|
if (typeof be == "function" && typeof Object.defineProperty == "function")
|
|
840
840
|
try {
|
|
841
841
|
Ot = Object.defineProperty({}, "length", {
|
|
@@ -850,35 +850,35 @@ if (typeof be == "function" && typeof Object.defineProperty == "function")
|
|
|
850
850
|
}
|
|
851
851
|
else
|
|
852
852
|
be = null;
|
|
853
|
-
var
|
|
853
|
+
var bi = /^\s*class\b/, Et = function(t) {
|
|
854
854
|
try {
|
|
855
|
-
var r =
|
|
856
|
-
return
|
|
855
|
+
var r = Or.call(t);
|
|
856
|
+
return bi.test(r);
|
|
857
857
|
} catch {
|
|
858
858
|
return !1;
|
|
859
859
|
}
|
|
860
860
|
}, yt = function(t) {
|
|
861
861
|
try {
|
|
862
|
-
return Et(t) ? !1 : (
|
|
862
|
+
return Et(t) ? !1 : (Or.call(t), !0);
|
|
863
863
|
} catch {
|
|
864
864
|
return !1;
|
|
865
865
|
}
|
|
866
|
-
}, He = Object.prototype.toString,
|
|
866
|
+
}, He = Object.prototype.toString, Ai = "[object Object]", Oi = "[object Function]", Ei = "[object GeneratorFunction]", $i = "[object HTMLAllCollection]", Pi = "[object HTML document.all class]", ki = "[object HTMLCollection]", Fi = typeof Symbol == "function" && !!Symbol.toStringTag, ji = !(0 in [,]), $t = function() {
|
|
867
867
|
return !1;
|
|
868
868
|
};
|
|
869
869
|
if (typeof document == "object") {
|
|
870
|
-
var
|
|
871
|
-
He.call(
|
|
872
|
-
if ((
|
|
870
|
+
var Di = document.all;
|
|
871
|
+
He.call(Di) === He.call(document.all) && ($t = function(t) {
|
|
872
|
+
if ((ji || !t) && (typeof t > "u" || typeof t == "object"))
|
|
873
873
|
try {
|
|
874
874
|
var r = He.call(t);
|
|
875
|
-
return (r ===
|
|
875
|
+
return (r === $i || r === Pi || r === ki || r === Ai) && t("") == null;
|
|
876
876
|
} catch {
|
|
877
877
|
}
|
|
878
878
|
return !1;
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
var
|
|
881
|
+
var Ii = be ? function(t) {
|
|
882
882
|
if ($t(t))
|
|
883
883
|
return !0;
|
|
884
884
|
if (!t || typeof t != "function" && typeof t != "object")
|
|
@@ -895,27 +895,27 @@ var ki = be ? function(t) {
|
|
|
895
895
|
return !0;
|
|
896
896
|
if (!t || typeof t != "function" && typeof t != "object")
|
|
897
897
|
return !1;
|
|
898
|
-
if (
|
|
898
|
+
if (Fi)
|
|
899
899
|
return yt(t);
|
|
900
900
|
if (Et(t))
|
|
901
901
|
return !1;
|
|
902
902
|
var r = He.call(t);
|
|
903
|
-
return r !==
|
|
904
|
-
},
|
|
903
|
+
return r !== Oi && r !== Ei && !/^\[object HTML/.test(r) ? !1 : yt(t);
|
|
904
|
+
}, Ni = Ii, Ci = Object.prototype.toString, Er = Object.prototype.hasOwnProperty, Bi = function(t, r, n) {
|
|
905
905
|
for (var i = 0, o = t.length; i < o; i++)
|
|
906
|
-
|
|
907
|
-
},
|
|
906
|
+
Er.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
|
|
907
|
+
}, _i = function(t, r, n) {
|
|
908
908
|
for (var i = 0, o = t.length; i < o; i++)
|
|
909
909
|
n == null ? r(t.charAt(i), i, t) : r.call(n, t.charAt(i), i, t);
|
|
910
|
-
},
|
|
910
|
+
}, Mi = function(t, r, n) {
|
|
911
911
|
for (var i in t)
|
|
912
|
-
|
|
913
|
-
},
|
|
914
|
-
if (!
|
|
912
|
+
Er.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
|
|
913
|
+
}, Ri = function(t, r, n) {
|
|
914
|
+
if (!Ni(r))
|
|
915
915
|
throw new TypeError("iterator must be a function");
|
|
916
916
|
var i;
|
|
917
|
-
arguments.length >= 3 && (i = n),
|
|
918
|
-
},
|
|
917
|
+
arguments.length >= 3 && (i = n), Ci.call(t) === "[object Array]" ? Bi(t, r, i) : typeof t == "string" ? _i(t, r, i) : Mi(t, r, i);
|
|
918
|
+
}, $r = Ri, pt = [
|
|
919
919
|
"BigInt64Array",
|
|
920
920
|
"BigUint64Array",
|
|
921
921
|
"Float32Array",
|
|
@@ -927,68 +927,68 @@ var ki = be ? function(t) {
|
|
|
927
927
|
"Uint32Array",
|
|
928
928
|
"Uint8Array",
|
|
929
929
|
"Uint8ClampedArray"
|
|
930
|
-
],
|
|
930
|
+
], Wi = typeof globalThis > "u" ? Ee : globalThis, Pr = function() {
|
|
931
931
|
for (var t = [], r = 0; r < pt.length; r++)
|
|
932
|
-
typeof
|
|
932
|
+
typeof Wi[pt[r]] == "function" && (t[t.length] = pt[r]);
|
|
933
933
|
return t;
|
|
934
|
-
},
|
|
934
|
+
}, Ui = Bt, Ye = Ui("%Object.getOwnPropertyDescriptor%", !0);
|
|
935
935
|
if (Ye)
|
|
936
936
|
try {
|
|
937
937
|
Ye([], "length");
|
|
938
938
|
} catch {
|
|
939
939
|
Ye = null;
|
|
940
940
|
}
|
|
941
|
-
var
|
|
941
|
+
var kr = Ye, Fr = $r, Ti = Pr, Mt = _t, Li = Mt("Object.prototype.toString"), jr = tt(), Qe = kr, Gi = typeof globalThis > "u" ? Ee : globalThis, Dr = Ti(), Ji = Mt("Array.prototype.indexOf", !0) || function(t, r) {
|
|
942
942
|
for (var n = 0; n < t.length; n += 1)
|
|
943
943
|
if (t[n] === r)
|
|
944
944
|
return n;
|
|
945
945
|
return -1;
|
|
946
|
-
},
|
|
947
|
-
|
|
948
|
-
var t = new
|
|
946
|
+
}, Vi = Mt("String.prototype.slice"), Ir = {}, dt = Object.getPrototypeOf;
|
|
947
|
+
jr && Qe && dt && Fr(Dr, function(e) {
|
|
948
|
+
var t = new Gi[e]();
|
|
949
949
|
if (Symbol.toStringTag in t) {
|
|
950
950
|
var r = dt(t), n = Qe(r, Symbol.toStringTag);
|
|
951
951
|
if (!n) {
|
|
952
952
|
var i = dt(r);
|
|
953
953
|
n = Qe(i, Symbol.toStringTag);
|
|
954
954
|
}
|
|
955
|
-
|
|
955
|
+
Ir[e] = n.get;
|
|
956
956
|
}
|
|
957
957
|
});
|
|
958
|
-
var
|
|
958
|
+
var zi = function(t) {
|
|
959
959
|
var r = !1;
|
|
960
|
-
return Fr(
|
|
960
|
+
return Fr(Ir, function(n, i) {
|
|
961
961
|
if (!r)
|
|
962
962
|
try {
|
|
963
963
|
r = n.call(t) === i;
|
|
964
964
|
} catch {
|
|
965
965
|
}
|
|
966
966
|
}), r;
|
|
967
|
-
},
|
|
967
|
+
}, Nr = function(t) {
|
|
968
968
|
if (!t || typeof t != "object")
|
|
969
969
|
return !1;
|
|
970
|
-
if (!
|
|
971
|
-
var r = Li(
|
|
972
|
-
return
|
|
973
|
-
}
|
|
974
|
-
return Qe ?
|
|
975
|
-
},
|
|
976
|
-
|
|
977
|
-
if (typeof
|
|
978
|
-
var t = new
|
|
970
|
+
if (!jr || !(Symbol.toStringTag in t)) {
|
|
971
|
+
var r = Vi(Li(t), 8, -1);
|
|
972
|
+
return Ji(Dr, r) > -1;
|
|
973
|
+
}
|
|
974
|
+
return Qe ? zi(t) : !1;
|
|
975
|
+
}, Cr = $r, xi = Pr, Br = _t, mt = kr, qi = Br("Object.prototype.toString"), _r = tt(), Zt = typeof globalThis > "u" ? Ee : globalThis, Hi = xi(), Yi = Br("String.prototype.slice"), Mr = {}, ht = Object.getPrototypeOf;
|
|
976
|
+
_r && mt && ht && Cr(Hi, function(e) {
|
|
977
|
+
if (typeof Zt[e] == "function") {
|
|
978
|
+
var t = new Zt[e]();
|
|
979
979
|
if (Symbol.toStringTag in t) {
|
|
980
980
|
var r = ht(t), n = mt(r, Symbol.toStringTag);
|
|
981
981
|
if (!n) {
|
|
982
982
|
var i = ht(r);
|
|
983
983
|
n = mt(i, Symbol.toStringTag);
|
|
984
984
|
}
|
|
985
|
-
|
|
985
|
+
Mr[e] = n.get;
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
});
|
|
989
|
-
var
|
|
989
|
+
var Qi = function(t) {
|
|
990
990
|
var r = !1;
|
|
991
|
-
return
|
|
991
|
+
return Cr(Mr, function(n, i) {
|
|
992
992
|
if (!r)
|
|
993
993
|
try {
|
|
994
994
|
var o = n.call(t);
|
|
@@ -996,24 +996,24 @@ var qi = function(t) {
|
|
|
996
996
|
} catch {
|
|
997
997
|
}
|
|
998
998
|
}), r;
|
|
999
|
-
},
|
|
1000
|
-
return
|
|
999
|
+
}, Xi = Nr, Zi = function(t) {
|
|
1000
|
+
return Xi(t) ? !_r || !(Symbol.toStringTag in t) ? Yi(qi(t), 8, -1) : Qi(t) : !1;
|
|
1001
1001
|
};
|
|
1002
1002
|
(function(e) {
|
|
1003
|
-
var t =
|
|
1003
|
+
var t = mi, r = wi, n = Zi, i = Nr;
|
|
1004
1004
|
function o(l) {
|
|
1005
1005
|
return l.call.bind(l);
|
|
1006
1006
|
}
|
|
1007
|
-
var a = typeof BigInt < "u", u = typeof Symbol < "u", y = o(Object.prototype.toString),
|
|
1007
|
+
var a = typeof BigInt < "u", u = typeof Symbol < "u", y = o(Object.prototype.toString), S = o(Number.prototype.valueOf), f = o(String.prototype.valueOf), d = o(Boolean.prototype.valueOf);
|
|
1008
1008
|
if (a)
|
|
1009
1009
|
var m = o(BigInt.prototype.valueOf);
|
|
1010
1010
|
if (u)
|
|
1011
1011
|
var h = o(Symbol.prototype.valueOf);
|
|
1012
|
-
function
|
|
1012
|
+
function g(l, En) {
|
|
1013
1013
|
if (typeof l != "object")
|
|
1014
1014
|
return !1;
|
|
1015
1015
|
try {
|
|
1016
|
-
return
|
|
1016
|
+
return En(l), !0;
|
|
1017
1017
|
} catch {
|
|
1018
1018
|
return !1;
|
|
1019
1019
|
}
|
|
@@ -1023,10 +1023,10 @@ var qi = function(t) {
|
|
|
1023
1023
|
return typeof Promise < "u" && l instanceof Promise || l !== null && typeof l == "object" && typeof l.then == "function" && typeof l.catch == "function";
|
|
1024
1024
|
}
|
|
1025
1025
|
e.isPromise = $;
|
|
1026
|
-
function
|
|
1026
|
+
function F(l) {
|
|
1027
1027
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(l) : i(l) || s(l);
|
|
1028
1028
|
}
|
|
1029
|
-
e.isArrayBufferView =
|
|
1029
|
+
e.isArrayBufferView = F;
|
|
1030
1030
|
function I(l) {
|
|
1031
1031
|
return n(l) === "Uint8Array";
|
|
1032
1032
|
}
|
|
@@ -1135,10 +1135,10 @@ var qi = function(t) {
|
|
|
1135
1135
|
return y(l) === "[object Map Iterator]";
|
|
1136
1136
|
}
|
|
1137
1137
|
e.isMapIterator = O;
|
|
1138
|
-
function
|
|
1138
|
+
function k(l) {
|
|
1139
1139
|
return y(l) === "[object Set Iterator]";
|
|
1140
1140
|
}
|
|
1141
|
-
e.isSetIterator =
|
|
1141
|
+
e.isSetIterator = k;
|
|
1142
1142
|
function R(l) {
|
|
1143
1143
|
return y(l) === "[object Generator]";
|
|
1144
1144
|
}
|
|
@@ -1148,33 +1148,33 @@ var qi = function(t) {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
e.isWebAssemblyCompiledModule = H;
|
|
1150
1150
|
function se(l) {
|
|
1151
|
-
return
|
|
1151
|
+
return g(l, S);
|
|
1152
1152
|
}
|
|
1153
1153
|
e.isNumberObject = se;
|
|
1154
1154
|
function Ue(l) {
|
|
1155
|
-
return
|
|
1155
|
+
return g(l, f);
|
|
1156
1156
|
}
|
|
1157
1157
|
e.isStringObject = Ue;
|
|
1158
|
-
function
|
|
1159
|
-
return
|
|
1158
|
+
function ge(l) {
|
|
1159
|
+
return g(l, d);
|
|
1160
1160
|
}
|
|
1161
|
-
e.isBooleanObject =
|
|
1161
|
+
e.isBooleanObject = ge;
|
|
1162
1162
|
function Te(l) {
|
|
1163
|
-
return a &&
|
|
1163
|
+
return a && g(l, m);
|
|
1164
1164
|
}
|
|
1165
1165
|
e.isBigIntObject = Te;
|
|
1166
1166
|
function zt(l) {
|
|
1167
|
-
return u &&
|
|
1167
|
+
return u && g(l, h);
|
|
1168
1168
|
}
|
|
1169
1169
|
e.isSymbolObject = zt;
|
|
1170
|
-
function bn(l) {
|
|
1171
|
-
return se(l) || Ue(l) || Se(l) || Te(l) || zt(l);
|
|
1172
|
-
}
|
|
1173
|
-
e.isBoxedPrimitive = bn;
|
|
1174
1170
|
function An(l) {
|
|
1171
|
+
return se(l) || Ue(l) || ge(l) || Te(l) || zt(l);
|
|
1172
|
+
}
|
|
1173
|
+
e.isBoxedPrimitive = An;
|
|
1174
|
+
function On(l) {
|
|
1175
1175
|
return typeof Uint8Array < "u" && (We(l) || j(l));
|
|
1176
1176
|
}
|
|
1177
|
-
e.isAnyArrayBuffer =
|
|
1177
|
+
e.isAnyArrayBuffer = On, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(l) {
|
|
1178
1178
|
Object.defineProperty(e, l, {
|
|
1179
1179
|
enumerable: !1,
|
|
1180
1180
|
value: function() {
|
|
@@ -1182,10 +1182,10 @@ var qi = function(t) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
});
|
|
1184
1184
|
});
|
|
1185
|
-
})(
|
|
1186
|
-
var
|
|
1185
|
+
})(hr);
|
|
1186
|
+
var Ki = function(t) {
|
|
1187
1187
|
return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
|
|
1188
|
-
}, Pt = {},
|
|
1188
|
+
}, Pt = {}, Kt = {
|
|
1189
1189
|
get exports() {
|
|
1190
1190
|
return Pt;
|
|
1191
1191
|
},
|
|
@@ -1193,7 +1193,7 @@ var Qi = function(t) {
|
|
|
1193
1193
|
Pt = e;
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
|
-
typeof Object.create == "function" ?
|
|
1196
|
+
typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
1197
1197
|
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
1198
1198
|
constructor: {
|
|
1199
1199
|
value: t,
|
|
@@ -1202,7 +1202,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1202
1202
|
configurable: !0
|
|
1203
1203
|
}
|
|
1204
1204
|
}));
|
|
1205
|
-
} :
|
|
1205
|
+
} : Kt.exports = function(t, r) {
|
|
1206
1206
|
if (r) {
|
|
1207
1207
|
t.super_ = r;
|
|
1208
1208
|
var n = function() {
|
|
@@ -1222,12 +1222,12 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1222
1222
|
s.push(a(arguments[p]));
|
|
1223
1223
|
return s.join(" ");
|
|
1224
1224
|
}
|
|
1225
|
-
for (var p = 1, w = arguments, j = w.length, B = String(c).replace(r, function(
|
|
1226
|
-
if (
|
|
1225
|
+
for (var p = 1, w = arguments, j = w.length, B = String(c).replace(r, function(k) {
|
|
1226
|
+
if (k === "%%")
|
|
1227
1227
|
return "%";
|
|
1228
1228
|
if (p >= j)
|
|
1229
|
-
return
|
|
1230
|
-
switch (
|
|
1229
|
+
return k;
|
|
1230
|
+
switch (k) {
|
|
1231
1231
|
case "%s":
|
|
1232
1232
|
return String(w[p++]);
|
|
1233
1233
|
case "%d":
|
|
@@ -1239,7 +1239,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1239
1239
|
return "[Circular]";
|
|
1240
1240
|
}
|
|
1241
1241
|
default:
|
|
1242
|
-
return
|
|
1242
|
+
return k;
|
|
1243
1243
|
}
|
|
1244
1244
|
}), O = w[p]; p < j; O = w[++p])
|
|
1245
1245
|
L(O) || !v(O) ? B += " " + O : B += " " + a(O);
|
|
@@ -1319,7 +1319,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1319
1319
|
function y(c, s) {
|
|
1320
1320
|
return c;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function S(c) {
|
|
1323
1323
|
var s = {};
|
|
1324
1324
|
return c.forEach(function(p, w) {
|
|
1325
1325
|
s[p] = !0;
|
|
@@ -1335,13 +1335,13 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1335
1335
|
var j = d(c, s);
|
|
1336
1336
|
if (j)
|
|
1337
1337
|
return j;
|
|
1338
|
-
var B = Object.keys(s), O =
|
|
1338
|
+
var B = Object.keys(s), O = S(B);
|
|
1339
1339
|
if (c.showHidden && (B = Object.getOwnPropertyNames(s)), b(s) && (B.indexOf("message") >= 0 || B.indexOf("description") >= 0))
|
|
1340
1340
|
return m(s);
|
|
1341
1341
|
if (B.length === 0) {
|
|
1342
1342
|
if (_(s)) {
|
|
1343
|
-
var
|
|
1344
|
-
return c.stylize("[Function" +
|
|
1343
|
+
var k = s.name ? ": " + s.name : "";
|
|
1344
|
+
return c.stylize("[Function" + k + "]", "special");
|
|
1345
1345
|
}
|
|
1346
1346
|
if (K(s))
|
|
1347
1347
|
return c.stylize(RegExp.prototype.toString.call(s), "regexp");
|
|
@@ -1351,7 +1351,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1351
1351
|
return m(s);
|
|
1352
1352
|
}
|
|
1353
1353
|
var R = "", H = !1, se = ["{", "}"];
|
|
1354
|
-
if (
|
|
1354
|
+
if (F(s) && (H = !0, se = ["[", "]"]), _(s)) {
|
|
1355
1355
|
var Ue = s.name ? ": " + s.name : "";
|
|
1356
1356
|
R = " [Function" + Ue + "]";
|
|
1357
1357
|
}
|
|
@@ -1360,10 +1360,10 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1360
1360
|
if (p < 0)
|
|
1361
1361
|
return K(s) ? c.stylize(RegExp.prototype.toString.call(s), "regexp") : c.stylize("[Object]", "special");
|
|
1362
1362
|
c.seen.push(s);
|
|
1363
|
-
var
|
|
1364
|
-
return H ?
|
|
1365
|
-
return
|
|
1366
|
-
}), c.seen.pop(), $(
|
|
1363
|
+
var ge;
|
|
1364
|
+
return H ? ge = h(c, s, p, O, B) : ge = B.map(function(Te) {
|
|
1365
|
+
return g(c, s, p, O, Te, H);
|
|
1366
|
+
}), c.seen.pop(), $(ge, R, se);
|
|
1367
1367
|
}
|
|
1368
1368
|
function d(c, s) {
|
|
1369
1369
|
if (Z(s))
|
|
@@ -1383,8 +1383,8 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1383
1383
|
return "[" + Error.prototype.toString.call(c) + "]";
|
|
1384
1384
|
}
|
|
1385
1385
|
function h(c, s, p, w, j) {
|
|
1386
|
-
for (var B = [], O = 0,
|
|
1387
|
-
W(s, String(O)) ? B.push(
|
|
1386
|
+
for (var B = [], O = 0, k = s.length; O < k; ++O)
|
|
1387
|
+
W(s, String(O)) ? B.push(g(
|
|
1388
1388
|
c,
|
|
1389
1389
|
s,
|
|
1390
1390
|
p,
|
|
@@ -1393,7 +1393,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1393
1393
|
!0
|
|
1394
1394
|
)) : B.push("");
|
|
1395
1395
|
return j.forEach(function(R) {
|
|
1396
|
-
R.match(/^\d+$/) || B.push(
|
|
1396
|
+
R.match(/^\d+$/) || B.push(g(
|
|
1397
1397
|
c,
|
|
1398
1398
|
s,
|
|
1399
1399
|
p,
|
|
@@ -1403,24 +1403,24 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1403
1403
|
));
|
|
1404
1404
|
}), B;
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1407
|
-
var O,
|
|
1408
|
-
if (R = Object.getOwnPropertyDescriptor(s, j) || { value: s[j] }, R.get ? R.set ?
|
|
1409
|
-
`) > -1 && (B ?
|
|
1406
|
+
function g(c, s, p, w, j, B) {
|
|
1407
|
+
var O, k, R;
|
|
1408
|
+
if (R = Object.getOwnPropertyDescriptor(s, j) || { value: s[j] }, R.get ? R.set ? k = c.stylize("[Getter/Setter]", "special") : k = c.stylize("[Getter]", "special") : R.set && (k = c.stylize("[Setter]", "special")), W(w, j) || (O = "[" + j + "]"), k || (c.seen.indexOf(R.value) < 0 ? (L(p) ? k = f(c, R.value, null) : k = f(c, R.value, p - 1), k.indexOf(`
|
|
1409
|
+
`) > -1 && (B ? k = k.split(`
|
|
1410
1410
|
`).map(function(H) {
|
|
1411
1411
|
return " " + H;
|
|
1412
1412
|
}).join(`
|
|
1413
|
-
`).slice(2) :
|
|
1414
|
-
` +
|
|
1413
|
+
`).slice(2) : k = `
|
|
1414
|
+
` + k.split(`
|
|
1415
1415
|
`).map(function(H) {
|
|
1416
1416
|
return " " + H;
|
|
1417
1417
|
}).join(`
|
|
1418
|
-
`))) :
|
|
1418
|
+
`))) : k = c.stylize("[Circular]", "special")), Z(O)) {
|
|
1419
1419
|
if (B && j.match(/^\d+$/))
|
|
1420
|
-
return
|
|
1420
|
+
return k;
|
|
1421
1421
|
O = JSON.stringify("" + j), O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (O = O.slice(1, -1), O = c.stylize(O, "name")) : (O = O.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), O = c.stylize(O, "string"));
|
|
1422
1422
|
}
|
|
1423
|
-
return O + ": " +
|
|
1423
|
+
return O + ": " + k;
|
|
1424
1424
|
}
|
|
1425
1425
|
function $(c, s, p) {
|
|
1426
1426
|
var w = c.reduce(function(j, B) {
|
|
@@ -1431,11 +1431,11 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1431
1431
|
`) + " " + c.join(`,
|
|
1432
1432
|
`) + " " + p[1] : p[0] + s + " " + c.join(", ") + " " + p[1];
|
|
1433
1433
|
}
|
|
1434
|
-
e.types =
|
|
1435
|
-
function
|
|
1434
|
+
e.types = hr;
|
|
1435
|
+
function F(c) {
|
|
1436
1436
|
return Array.isArray(c);
|
|
1437
1437
|
}
|
|
1438
|
-
e.isArray =
|
|
1438
|
+
e.isArray = F;
|
|
1439
1439
|
function I(c) {
|
|
1440
1440
|
return typeof c == "boolean";
|
|
1441
1441
|
}
|
|
@@ -1488,7 +1488,7 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1488
1488
|
return c === null || typeof c == "boolean" || typeof c == "number" || typeof c == "string" || typeof c == "symbol" || // ES6 symbol
|
|
1489
1489
|
typeof c > "u";
|
|
1490
1490
|
}
|
|
1491
|
-
e.isPrimitive = T, e.isBuffer =
|
|
1491
|
+
e.isPrimitive = T, e.isBuffer = Ki;
|
|
1492
1492
|
function M(c) {
|
|
1493
1493
|
return Object.prototype.toString.call(c);
|
|
1494
1494
|
}
|
|
@@ -1547,8 +1547,8 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1547
1547
|
function p() {
|
|
1548
1548
|
for (var w, j, B = new Promise(function(R, H) {
|
|
1549
1549
|
w = R, j = H;
|
|
1550
|
-
}), O = [],
|
|
1551
|
-
O.push(arguments[
|
|
1550
|
+
}), O = [], k = 0; k < arguments.length; k++)
|
|
1551
|
+
O.push(arguments[k]);
|
|
1552
1552
|
O.push(function(R, H) {
|
|
1553
1553
|
R ? j(R) : w(H);
|
|
1554
1554
|
});
|
|
@@ -1589,11 +1589,11 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1589
1589
|
return j.apply(B, arguments);
|
|
1590
1590
|
};
|
|
1591
1591
|
c.apply(this, p).then(
|
|
1592
|
-
function(
|
|
1593
|
-
process.nextTick(O.bind(null, null,
|
|
1592
|
+
function(k) {
|
|
1593
|
+
process.nextTick(O.bind(null, null, k));
|
|
1594
1594
|
},
|
|
1595
|
-
function(
|
|
1596
|
-
process.nextTick(fe.bind(null,
|
|
1595
|
+
function(k) {
|
|
1596
|
+
process.nextTick(fe.bind(null, k, O));
|
|
1597
1597
|
}
|
|
1598
1598
|
);
|
|
1599
1599
|
}
|
|
@@ -1604,29 +1604,29 @@ typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
e.callbackify = We;
|
|
1606
1606
|
})(Nt);
|
|
1607
|
-
var U =
|
|
1607
|
+
var U = dr, eo = Mn, to = Wn, ro = Tn, Ge = Nt, V, Ke;
|
|
1608
1608
|
typeof Symbol == "function" && typeof Symbol.for == "function" ? (V = Symbol.for("graceful-fs.queue"), Ke = Symbol.for("graceful-fs.previous")) : (V = "___graceful-fs.queue", Ke = "___graceful-fs.previous");
|
|
1609
|
-
function
|
|
1609
|
+
function no() {
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function Rr(e, t) {
|
|
1612
1612
|
Object.defineProperty(e, V, {
|
|
1613
1613
|
get: function() {
|
|
1614
1614
|
return t;
|
|
1615
1615
|
}
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
|
-
var pe =
|
|
1618
|
+
var pe = no;
|
|
1619
1619
|
Ge.debuglog ? pe = Ge.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (pe = function() {
|
|
1620
1620
|
var e = Ge.format.apply(Ge, arguments);
|
|
1621
1621
|
e = "GFS4: " + e.split(/\n/).join(`
|
|
1622
1622
|
GFS4: `), console.error(e);
|
|
1623
1623
|
});
|
|
1624
1624
|
if (!U[V]) {
|
|
1625
|
-
var
|
|
1626
|
-
|
|
1625
|
+
var io = Ee[V] || [];
|
|
1626
|
+
Rr(U, io), U.close = function(e) {
|
|
1627
1627
|
function t(r, n) {
|
|
1628
1628
|
return e.call(U, r, function(i) {
|
|
1629
|
-
i ||
|
|
1629
|
+
i || er(), typeof n == "function" && n.apply(this, arguments);
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
return Object.defineProperty(t, Ke, {
|
|
@@ -1634,7 +1634,7 @@ if (!U[V]) {
|
|
|
1634
1634
|
}), t;
|
|
1635
1635
|
}(U.close), U.closeSync = function(e) {
|
|
1636
1636
|
function t(r) {
|
|
1637
|
-
e.apply(U, arguments),
|
|
1637
|
+
e.apply(U, arguments), er();
|
|
1638
1638
|
}
|
|
1639
1639
|
return Object.defineProperty(t, Ke, {
|
|
1640
1640
|
value: e
|
|
@@ -1643,11 +1643,11 @@ if (!U[V]) {
|
|
|
1643
1643
|
pe(U[V]), It.equal(U[V].length, 0);
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
|
-
Ee[V] ||
|
|
1647
|
-
var
|
|
1648
|
-
process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !U.__patched && (
|
|
1646
|
+
Ee[V] || Rr(Ee, U[V]);
|
|
1647
|
+
var Q = Rt(ro(U));
|
|
1648
|
+
process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !U.__patched && (Q = Rt(U), U.__patched = !0);
|
|
1649
1649
|
function Rt(e) {
|
|
1650
|
-
|
|
1650
|
+
eo(e), e.gracefulify = Rt, e.createReadStream = ie, e.createWriteStream = he;
|
|
1651
1651
|
var t = e.readFile;
|
|
1652
1652
|
e.readFile = r;
|
|
1653
1653
|
function r(v, A, b) {
|
|
@@ -1688,20 +1688,20 @@ function Rt(e) {
|
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
var
|
|
1691
|
+
var S = e.readdir;
|
|
1692
1692
|
e.readdir = d;
|
|
1693
1693
|
var f = /^v[0-5]\./;
|
|
1694
1694
|
function d(v, A, b) {
|
|
1695
1695
|
typeof A == "function" && (b = A, A = null);
|
|
1696
1696
|
var _ = f.test(process.version) ? function(N, C, D, W) {
|
|
1697
|
-
return
|
|
1697
|
+
return S(N, T(
|
|
1698
1698
|
N,
|
|
1699
1699
|
C,
|
|
1700
1700
|
D,
|
|
1701
1701
|
W
|
|
1702
1702
|
));
|
|
1703
1703
|
} : function(N, C, D, W) {
|
|
1704
|
-
return
|
|
1704
|
+
return S(N, C, T(
|
|
1705
1705
|
N,
|
|
1706
1706
|
C,
|
|
1707
1707
|
D,
|
|
@@ -1722,13 +1722,13 @@ function Rt(e) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
1725
|
-
var m =
|
|
1725
|
+
var m = to(e);
|
|
1726
1726
|
I = m.ReadStream, G = m.WriteStream;
|
|
1727
1727
|
}
|
|
1728
1728
|
var h = e.ReadStream;
|
|
1729
1729
|
h && (I.prototype = Object.create(h.prototype), I.prototype.open = L);
|
|
1730
|
-
var
|
|
1731
|
-
|
|
1730
|
+
var g = e.WriteStream;
|
|
1731
|
+
g && (G.prototype = Object.create(g.prototype), G.prototype.open = te), Object.defineProperty(e, "ReadStream", {
|
|
1732
1732
|
get: function() {
|
|
1733
1733
|
return I;
|
|
1734
1734
|
},
|
|
@@ -1758,13 +1758,13 @@ function Rt(e) {
|
|
|
1758
1758
|
enumerable: !0,
|
|
1759
1759
|
configurable: !0
|
|
1760
1760
|
});
|
|
1761
|
-
var
|
|
1761
|
+
var F = G;
|
|
1762
1762
|
Object.defineProperty(e, "FileWriteStream", {
|
|
1763
1763
|
get: function() {
|
|
1764
|
-
return
|
|
1764
|
+
return F;
|
|
1765
1765
|
},
|
|
1766
1766
|
set: function(v) {
|
|
1767
|
-
|
|
1767
|
+
F = v;
|
|
1768
1768
|
},
|
|
1769
1769
|
enumerable: !0,
|
|
1770
1770
|
configurable: !0
|
|
@@ -1779,7 +1779,7 @@ function Rt(e) {
|
|
|
1779
1779
|
});
|
|
1780
1780
|
}
|
|
1781
1781
|
function G(v, A) {
|
|
1782
|
-
return this instanceof G ? (
|
|
1782
|
+
return this instanceof G ? (g.apply(this, arguments), this) : G.apply(Object.create(G.prototype), arguments);
|
|
1783
1783
|
}
|
|
1784
1784
|
function te() {
|
|
1785
1785
|
var v = this;
|
|
@@ -1809,7 +1809,7 @@ function ve(e) {
|
|
|
1809
1809
|
pe("ENQUEUE", e[0].name, e[1]), U[V].push(e), Wt();
|
|
1810
1810
|
}
|
|
1811
1811
|
var Je;
|
|
1812
|
-
function
|
|
1812
|
+
function er() {
|
|
1813
1813
|
for (var e = Date.now(), t = 0; t < U[V].length; ++t)
|
|
1814
1814
|
U[V][t].length > 2 && (U[V][t][3] = e, U[V][t][4] = e);
|
|
1815
1815
|
Wt();
|
|
@@ -1824,14 +1824,14 @@ function Wt() {
|
|
|
1824
1824
|
var a = r.pop();
|
|
1825
1825
|
typeof a == "function" && a.call(null, n);
|
|
1826
1826
|
} else {
|
|
1827
|
-
var u = Date.now() - o, y = Math.max(o - i, 1),
|
|
1828
|
-
u >=
|
|
1827
|
+
var u = Date.now() - o, y = Math.max(o - i, 1), S = Math.min(y * 1.2, 100);
|
|
1828
|
+
u >= S ? (pe("RETRY", t.name, r), t.apply(null, r.concat([i]))) : U[V].push(e);
|
|
1829
1829
|
}
|
|
1830
1830
|
Je === void 0 && (Je = setTimeout(Wt, 0));
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
(function(e) {
|
|
1834
|
-
const t = q.fromCallback, r =
|
|
1834
|
+
const t = q.fromCallback, r = Q, n = [
|
|
1835
1835
|
"access",
|
|
1836
1836
|
"appendFile",
|
|
1837
1837
|
"chmod",
|
|
@@ -1871,35 +1871,35 @@ function Wt() {
|
|
|
1871
1871
|
e[i] = t(r[i]);
|
|
1872
1872
|
}), e.exists = function(i, o) {
|
|
1873
1873
|
return typeof o == "function" ? r.exists(i, o) : new Promise((a) => r.exists(i, a));
|
|
1874
|
-
}, e.read = function(i, o, a, u, y,
|
|
1875
|
-
return typeof
|
|
1876
|
-
r.read(i, o, a, u, y, (m, h,
|
|
1874
|
+
}, e.read = function(i, o, a, u, y, S) {
|
|
1875
|
+
return typeof S == "function" ? r.read(i, o, a, u, y, S) : new Promise((f, d) => {
|
|
1876
|
+
r.read(i, o, a, u, y, (m, h, g) => {
|
|
1877
1877
|
if (m)
|
|
1878
1878
|
return d(m);
|
|
1879
|
-
f({ bytesRead: h, buffer:
|
|
1879
|
+
f({ bytesRead: h, buffer: g });
|
|
1880
1880
|
});
|
|
1881
1881
|
});
|
|
1882
1882
|
}, e.write = function(i, o, ...a) {
|
|
1883
1883
|
return typeof a[a.length - 1] == "function" ? r.write(i, o, ...a) : new Promise((u, y) => {
|
|
1884
|
-
r.write(i, o, ...a, (
|
|
1885
|
-
if (
|
|
1886
|
-
return y(
|
|
1884
|
+
r.write(i, o, ...a, (S, f, d) => {
|
|
1885
|
+
if (S)
|
|
1886
|
+
return y(S);
|
|
1887
1887
|
u({ bytesWritten: f, buffer: d });
|
|
1888
1888
|
});
|
|
1889
1889
|
});
|
|
1890
1890
|
}, e.readv = function(i, o, ...a) {
|
|
1891
1891
|
return typeof a[a.length - 1] == "function" ? r.readv(i, o, ...a) : new Promise((u, y) => {
|
|
1892
|
-
r.readv(i, o, ...a, (
|
|
1893
|
-
if (
|
|
1894
|
-
return y(
|
|
1892
|
+
r.readv(i, o, ...a, (S, f, d) => {
|
|
1893
|
+
if (S)
|
|
1894
|
+
return y(S);
|
|
1895
1895
|
u({ bytesRead: f, buffers: d });
|
|
1896
1896
|
});
|
|
1897
1897
|
});
|
|
1898
1898
|
}, e.writev = function(i, o, ...a) {
|
|
1899
1899
|
return typeof a[a.length - 1] == "function" ? r.writev(i, o, ...a) : new Promise((u, y) => {
|
|
1900
|
-
r.writev(i, o, ...a, (
|
|
1901
|
-
if (
|
|
1902
|
-
return y(
|
|
1900
|
+
r.writev(i, o, ...a, (S, f, d) => {
|
|
1901
|
+
if (S)
|
|
1902
|
+
return y(S);
|
|
1903
1903
|
u({ bytesWritten: f, buffers: d });
|
|
1904
1904
|
});
|
|
1905
1905
|
});
|
|
@@ -1909,46 +1909,46 @@ function Wt() {
|
|
|
1909
1909
|
"fs-extra-WARN0003"
|
|
1910
1910
|
);
|
|
1911
1911
|
})(de);
|
|
1912
|
-
var Ut = {},
|
|
1913
|
-
const
|
|
1914
|
-
|
|
1915
|
-
if (process.platform === "win32" && /[<>:"|?*]/.test(t.replace(
|
|
1912
|
+
var Ut = {}, Wr = {};
|
|
1913
|
+
const oo = X;
|
|
1914
|
+
Wr.checkPath = function(t) {
|
|
1915
|
+
if (process.platform === "win32" && /[<>:"|?*]/.test(t.replace(oo.parse(t).root, ""))) {
|
|
1916
1916
|
const n = new Error(`Path contains invalid characters: ${t}`);
|
|
1917
1917
|
throw n.code = "EINVAL", n;
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
|
-
const
|
|
1920
|
+
const Ur = de, { checkPath: Tr } = Wr, Lr = (e) => {
|
|
1921
1921
|
const t = { mode: 511 };
|
|
1922
1922
|
return typeof e == "number" ? e : { ...t, ...e }.mode;
|
|
1923
1923
|
};
|
|
1924
|
-
Ut.makeDir = async (e, t) => (
|
|
1925
|
-
mode:
|
|
1924
|
+
Ut.makeDir = async (e, t) => (Tr(e), Ur.mkdir(e, {
|
|
1925
|
+
mode: Lr(t),
|
|
1926
1926
|
recursive: !0
|
|
1927
1927
|
}));
|
|
1928
|
-
Ut.makeDirSync = (e, t) => (
|
|
1929
|
-
mode:
|
|
1928
|
+
Ut.makeDirSync = (e, t) => (Tr(e), Ur.mkdirSync(e, {
|
|
1929
|
+
mode: Lr(t),
|
|
1930
1930
|
recursive: !0
|
|
1931
1931
|
}));
|
|
1932
|
-
const
|
|
1932
|
+
const ao = q.fromPromise, { makeDir: co, makeDirSync: gt } = Ut, St = ao(co);
|
|
1933
1933
|
var ne = {
|
|
1934
|
-
mkdirs:
|
|
1935
|
-
mkdirsSync:
|
|
1934
|
+
mkdirs: St,
|
|
1935
|
+
mkdirsSync: gt,
|
|
1936
1936
|
// alias
|
|
1937
|
-
mkdirp:
|
|
1938
|
-
mkdirpSync:
|
|
1939
|
-
ensureDir:
|
|
1940
|
-
ensureDirSync:
|
|
1937
|
+
mkdirp: St,
|
|
1938
|
+
mkdirpSync: gt,
|
|
1939
|
+
ensureDir: St,
|
|
1940
|
+
ensureDirSync: gt
|
|
1941
1941
|
};
|
|
1942
|
-
const
|
|
1943
|
-
function
|
|
1944
|
-
return
|
|
1942
|
+
const uo = q.fromPromise, Gr = de;
|
|
1943
|
+
function fo(e) {
|
|
1944
|
+
return Gr.access(e).then(() => !0).catch(() => !1);
|
|
1945
1945
|
}
|
|
1946
1946
|
var me = {
|
|
1947
|
-
pathExists:
|
|
1948
|
-
pathExistsSync:
|
|
1947
|
+
pathExists: uo(fo),
|
|
1948
|
+
pathExistsSync: Gr.existsSync
|
|
1949
1949
|
};
|
|
1950
|
-
const Oe =
|
|
1951
|
-
function
|
|
1950
|
+
const Oe = Q;
|
|
1951
|
+
function so(e, t, r, n) {
|
|
1952
1952
|
Oe.open(e, "r+", (i, o) => {
|
|
1953
1953
|
if (i)
|
|
1954
1954
|
return n(i);
|
|
@@ -1959,16 +1959,16 @@ function co(e, t, r, n) {
|
|
|
1959
1959
|
});
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function lo(e, t, r) {
|
|
1963
1963
|
const n = Oe.openSync(e, "r+");
|
|
1964
1964
|
return Oe.futimesSync(n, t, r), Oe.closeSync(n);
|
|
1965
1965
|
}
|
|
1966
|
-
var
|
|
1967
|
-
utimesMillis:
|
|
1968
|
-
utimesMillisSync:
|
|
1966
|
+
var Jr = {
|
|
1967
|
+
utimesMillis: so,
|
|
1968
|
+
utimesMillisSync: lo
|
|
1969
1969
|
};
|
|
1970
|
-
const Pe = de, J =
|
|
1971
|
-
function
|
|
1970
|
+
const Pe = de, J = X, yo = Nt;
|
|
1971
|
+
function po(e, t, r) {
|
|
1972
1972
|
const n = r.dereference ? (i) => Pe.stat(i, { bigint: !0 }) : (i) => Pe.lstat(i, { bigint: !0 });
|
|
1973
1973
|
return Promise.all([
|
|
1974
1974
|
n(e),
|
|
@@ -1979,7 +1979,7 @@ function so(e, t, r) {
|
|
|
1979
1979
|
})
|
|
1980
1980
|
]).then(([i, o]) => ({ srcStat: i, destStat: o }));
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function mo(e, t, r) {
|
|
1983
1983
|
let n;
|
|
1984
1984
|
const i = r.dereference ? (a) => Pe.statSync(a, { bigint: !0 }) : (a) => Pe.lstatSync(a, { bigint: !0 }), o = i(e);
|
|
1985
1985
|
try {
|
|
@@ -1991,15 +1991,15 @@ function lo(e, t, r) {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
return { srcStat: o, destStat: n };
|
|
1993
1993
|
}
|
|
1994
|
-
function
|
|
1995
|
-
|
|
1994
|
+
function ho(e, t, r, n, i) {
|
|
1995
|
+
yo.callbackify(po)(e, t, n, (o, a) => {
|
|
1996
1996
|
if (o)
|
|
1997
1997
|
return i(o);
|
|
1998
1998
|
const { srcStat: u, destStat: y } = a;
|
|
1999
1999
|
if (y) {
|
|
2000
2000
|
if (Re(u, y)) {
|
|
2001
|
-
const
|
|
2002
|
-
return r === "move" &&
|
|
2001
|
+
const S = J.basename(e), f = J.basename(t);
|
|
2002
|
+
return r === "move" && S !== f && S.toLowerCase() === f.toLowerCase() ? i(null, { srcStat: u, destStat: y, isChangingCase: !0 }) : i(new Error("Source and destination must not be the same."));
|
|
2003
2003
|
}
|
|
2004
2004
|
if (u.isDirectory() && !y.isDirectory())
|
|
2005
2005
|
return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));
|
|
@@ -2009,8 +2009,8 @@ function yo(e, t, r, n, i) {
|
|
|
2009
2009
|
return u.isDirectory() && Tt(e, t) ? i(new Error(nt(e, t, r))) : i(null, { srcStat: u, destStat: y });
|
|
2010
2010
|
});
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2013
|
-
const { srcStat: i, destStat: o } =
|
|
2012
|
+
function go(e, t, r, n) {
|
|
2013
|
+
const { srcStat: i, destStat: o } = mo(e, t, n);
|
|
2014
2014
|
if (o) {
|
|
2015
2015
|
if (Re(i, o)) {
|
|
2016
2016
|
const a = J.basename(e), u = J.basename(t);
|
|
@@ -2027,13 +2027,13 @@ function po(e, t, r, n) {
|
|
|
2027
2027
|
throw new Error(nt(e, t, r));
|
|
2028
2028
|
return { srcStat: i, destStat: o };
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2030
|
+
function Vr(e, t, r, n, i) {
|
|
2031
2031
|
const o = J.resolve(J.dirname(e)), a = J.resolve(J.dirname(r));
|
|
2032
2032
|
if (a === o || a === J.parse(a).root)
|
|
2033
2033
|
return i();
|
|
2034
|
-
Pe.stat(a, { bigint: !0 }, (u, y) => u ? u.code === "ENOENT" ? i() : i(u) : Re(t, y) ? i(new Error(nt(e, r, n))) :
|
|
2034
|
+
Pe.stat(a, { bigint: !0 }, (u, y) => u ? u.code === "ENOENT" ? i() : i(u) : Re(t, y) ? i(new Error(nt(e, r, n))) : Vr(e, t, a, n, i));
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function zr(e, t, r, n) {
|
|
2037
2037
|
const i = J.resolve(J.dirname(e)), o = J.resolve(J.dirname(r));
|
|
2038
2038
|
if (o === i || o === J.parse(o).root)
|
|
2039
2039
|
return;
|
|
@@ -2047,7 +2047,7 @@ function Vr(e, t, r, n) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
if (Re(t, a))
|
|
2049
2049
|
throw new Error(nt(e, r, n));
|
|
2050
|
-
return
|
|
2050
|
+
return zr(e, t, o, n);
|
|
2051
2051
|
}
|
|
2052
2052
|
function Re(e, t) {
|
|
2053
2053
|
return t.ino && t.dev && t.ino === e.ino && t.dev === e.dev;
|
|
@@ -2059,16 +2059,16 @@ function Tt(e, t) {
|
|
|
2059
2059
|
function nt(e, t, r) {
|
|
2060
2060
|
return `Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`;
|
|
2061
2061
|
}
|
|
2062
|
-
var
|
|
2063
|
-
checkPaths:
|
|
2064
|
-
checkPathsSync:
|
|
2065
|
-
checkParentPaths:
|
|
2066
|
-
checkParentPathsSync:
|
|
2062
|
+
var Fe = {
|
|
2063
|
+
checkPaths: ho,
|
|
2064
|
+
checkPathsSync: go,
|
|
2065
|
+
checkParentPaths: Vr,
|
|
2066
|
+
checkParentPathsSync: zr,
|
|
2067
2067
|
isSrcSubdir: Tt,
|
|
2068
2068
|
areIdentical: Re
|
|
2069
2069
|
};
|
|
2070
|
-
const Y =
|
|
2071
|
-
function
|
|
2070
|
+
const Y = Q, Ne = X, So = ne.mkdirs, vo = me.pathExists, wo = Jr.utimesMillis, Ce = Fe;
|
|
2071
|
+
function bo(e, t, r, n) {
|
|
2072
2072
|
typeof r == "function" && !n ? (n = r, r = {}) : typeof r == "function" && (r = { filter: r }), n = n || function() {
|
|
2073
2073
|
}, r = r || {}, r.clobber = "clobber" in r ? !!r.clobber : !0, r.overwrite = "overwrite" in r ? !!r.overwrite : r.clobber, r.preserveTimestamps && process.arch === "ia32" && process.emitWarning(
|
|
2074
2074
|
`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
@@ -2083,112 +2083,112 @@ function go(e, t, r, n) {
|
|
|
2083
2083
|
Ce.checkParentPaths(e, a, t, "copy", (y) => {
|
|
2084
2084
|
if (y)
|
|
2085
2085
|
return n(y);
|
|
2086
|
-
|
|
2087
|
-
if (
|
|
2088
|
-
return n(
|
|
2086
|
+
xr(e, t, r, (S, f) => {
|
|
2087
|
+
if (S)
|
|
2088
|
+
return n(S);
|
|
2089
2089
|
if (!f)
|
|
2090
2090
|
return n();
|
|
2091
|
-
|
|
2091
|
+
Ao(u, e, t, r, n);
|
|
2092
2092
|
});
|
|
2093
2093
|
});
|
|
2094
2094
|
});
|
|
2095
2095
|
}
|
|
2096
|
-
function
|
|
2096
|
+
function Ao(e, t, r, n, i) {
|
|
2097
2097
|
const o = Ne.dirname(r);
|
|
2098
|
-
|
|
2098
|
+
vo(o, (a, u) => {
|
|
2099
2099
|
if (a)
|
|
2100
2100
|
return i(a);
|
|
2101
2101
|
if (u)
|
|
2102
|
-
return
|
|
2103
|
-
|
|
2102
|
+
return kt(e, t, r, n, i);
|
|
2103
|
+
So(o, (y) => y ? i(y) : kt(e, t, r, n, i));
|
|
2104
2104
|
});
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function xr(e, t, r, n) {
|
|
2107
2107
|
if (!r.filter)
|
|
2108
2108
|
return n(null, !0);
|
|
2109
2109
|
Promise.resolve(r.filter(e, t)).then((i) => n(null, i), (i) => n(i));
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2112
|
-
(n.dereference ? Y.stat : Y.lstat)(t, (a, u) => a ? i(a) : u.isDirectory() ?
|
|
2111
|
+
function kt(e, t, r, n, i) {
|
|
2112
|
+
(n.dereference ? Y.stat : Y.lstat)(t, (a, u) => a ? i(a) : u.isDirectory() ? jo(u, e, t, r, n, i) : u.isFile() || u.isCharacterDevice() || u.isBlockDevice() ? Oo(u, e, t, r, n, i) : u.isSymbolicLink() ? No(e, t, r, n, i) : u.isSocket() ? i(new Error(`Cannot copy a socket file: ${t}`)) : u.isFIFO() ? i(new Error(`Cannot copy a FIFO pipe: ${t}`)) : i(new Error(`Unknown file: ${t}`)));
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2115
|
-
return t ?
|
|
2114
|
+
function Oo(e, t, r, n, i, o) {
|
|
2115
|
+
return t ? Eo(e, r, n, i, o) : qr(e, r, n, i, o);
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function Eo(e, t, r, n, i) {
|
|
2118
2118
|
if (n.overwrite)
|
|
2119
|
-
Y.unlink(r, (o) => o ? i(o) :
|
|
2119
|
+
Y.unlink(r, (o) => o ? i(o) : qr(e, t, r, n, i));
|
|
2120
2120
|
else
|
|
2121
2121
|
return n.errorOnExist ? i(new Error(`'${r}' already exists`)) : i();
|
|
2122
2122
|
}
|
|
2123
|
-
function
|
|
2124
|
-
Y.copyFile(t, r, (o) => o ? i(o) : n.preserveTimestamps ?
|
|
2123
|
+
function qr(e, t, r, n, i) {
|
|
2124
|
+
Y.copyFile(t, r, (o) => o ? i(o) : n.preserveTimestamps ? $o(e.mode, t, r, i) : it(r, e.mode, i));
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2127
|
-
return
|
|
2126
|
+
function $o(e, t, r, n) {
|
|
2127
|
+
return Po(e) ? ko(r, e, (i) => i ? n(i) : tr(e, t, r, n)) : tr(e, t, r, n);
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function Po(e) {
|
|
2130
2130
|
return (e & 128) === 0;
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function ko(e, t, r) {
|
|
2133
2133
|
return it(e, t | 128, r);
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2136
|
-
|
|
2135
|
+
function tr(e, t, r, n) {
|
|
2136
|
+
Fo(t, r, (i) => i ? n(i) : it(r, e, n));
|
|
2137
2137
|
}
|
|
2138
2138
|
function it(e, t, r) {
|
|
2139
2139
|
return Y.chmod(e, t, r);
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2142
|
-
Y.stat(e, (n, i) => n ? r(n) :
|
|
2141
|
+
function Fo(e, t, r) {
|
|
2142
|
+
Y.stat(e, (n, i) => n ? r(n) : wo(t, i.atime, i.mtime, r));
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2145
|
-
return t ?
|
|
2144
|
+
function jo(e, t, r, n, i, o) {
|
|
2145
|
+
return t ? Hr(r, n, i, o) : Do(e.mode, r, n, i, o);
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2147
|
+
function Do(e, t, r, n, i) {
|
|
2148
2148
|
Y.mkdir(r, (o) => {
|
|
2149
2149
|
if (o)
|
|
2150
2150
|
return i(o);
|
|
2151
|
-
|
|
2151
|
+
Hr(t, r, n, (a) => a ? i(a) : it(r, e, i));
|
|
2152
2152
|
});
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
Y.readdir(e, (i, o) => i ? n(i) :
|
|
2154
|
+
function Hr(e, t, r, n) {
|
|
2155
|
+
Y.readdir(e, (i, o) => i ? n(i) : Ft(o, e, t, r, n));
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2157
|
+
function Ft(e, t, r, n, i) {
|
|
2158
2158
|
const o = e.pop();
|
|
2159
|
-
return o ?
|
|
2159
|
+
return o ? Io(e, o, t, r, n, i) : i();
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function Io(e, t, r, n, i, o) {
|
|
2162
2162
|
const a = Ne.join(r, t), u = Ne.join(n, t);
|
|
2163
|
-
|
|
2163
|
+
xr(a, u, i, (y, S) => {
|
|
2164
2164
|
if (y)
|
|
2165
2165
|
return o(y);
|
|
2166
|
-
if (!
|
|
2167
|
-
return
|
|
2166
|
+
if (!S)
|
|
2167
|
+
return Ft(e, r, n, i, o);
|
|
2168
2168
|
Ce.checkPaths(a, u, "copy", i, (f, d) => {
|
|
2169
2169
|
if (f)
|
|
2170
2170
|
return o(f);
|
|
2171
2171
|
const { destStat: m } = d;
|
|
2172
|
-
|
|
2172
|
+
kt(m, a, u, i, (h) => h ? o(h) : Ft(e, r, n, i, o));
|
|
2173
2173
|
});
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function No(e, t, r, n, i) {
|
|
2177
2177
|
Y.readlink(t, (o, a) => {
|
|
2178
2178
|
if (o)
|
|
2179
2179
|
return i(o);
|
|
2180
2180
|
if (n.dereference && (a = Ne.resolve(process.cwd(), a)), e)
|
|
2181
|
-
Y.readlink(r, (u, y) => u ? u.code === "EINVAL" || u.code === "UNKNOWN" ? Y.symlink(a, r, i) : i(u) : (n.dereference && (y = Ne.resolve(process.cwd(), y)), Ce.isSrcSubdir(a, y) ? i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${y}'.`)) : Ce.isSrcSubdir(y, a) ? i(new Error(`Cannot overwrite '${y}' with '${a}'.`)) :
|
|
2181
|
+
Y.readlink(r, (u, y) => u ? u.code === "EINVAL" || u.code === "UNKNOWN" ? Y.symlink(a, r, i) : i(u) : (n.dereference && (y = Ne.resolve(process.cwd(), y)), Ce.isSrcSubdir(a, y) ? i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${y}'.`)) : Ce.isSrcSubdir(y, a) ? i(new Error(`Cannot overwrite '${y}' with '${a}'.`)) : Co(a, r, i)));
|
|
2182
2182
|
else
|
|
2183
2183
|
return Y.symlink(a, r, i);
|
|
2184
2184
|
});
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2186
|
+
function Co(e, t, r) {
|
|
2187
2187
|
Y.unlink(t, (n) => n ? r(n) : Y.symlink(e, t, r));
|
|
2188
2188
|
}
|
|
2189
|
-
var
|
|
2190
|
-
const z =
|
|
2191
|
-
function
|
|
2189
|
+
var Bo = bo;
|
|
2190
|
+
const z = Q, Be = X, _o = ne.mkdirsSync, Mo = Jr.utimesMillisSync, _e = Fe;
|
|
2191
|
+
function Ro(e, t, r) {
|
|
2192
2192
|
typeof r == "function" && (r = { filter: r }), r = r || {}, r.clobber = "clobber" in r ? !!r.clobber : !0, r.overwrite = "overwrite" in r ? !!r.overwrite : r.clobber, r.preserveTimestamps && process.arch === "ia32" && process.emitWarning(
|
|
2193
2193
|
`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
2194
2194
|
|
|
@@ -2200,63 +2200,63 @@ function Bo(e, t, r) {
|
|
|
2200
2200
|
if (_e.checkParentPathsSync(e, n, t, "copy"), r.filter && !r.filter(e, t))
|
|
2201
2201
|
return;
|
|
2202
2202
|
const o = Be.dirname(t);
|
|
2203
|
-
return z.existsSync(o) ||
|
|
2203
|
+
return z.existsSync(o) || _o(o), Yr(i, e, t, r);
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Yr(e, t, r, n) {
|
|
2206
2206
|
const o = (n.dereference ? z.statSync : z.lstatSync)(t);
|
|
2207
2207
|
if (o.isDirectory())
|
|
2208
|
-
return
|
|
2208
|
+
return Vo(o, e, t, r, n);
|
|
2209
2209
|
if (o.isFile() || o.isCharacterDevice() || o.isBlockDevice())
|
|
2210
|
-
return
|
|
2210
|
+
return Wo(o, e, t, r, n);
|
|
2211
2211
|
if (o.isSymbolicLink())
|
|
2212
|
-
return
|
|
2212
|
+
return qo(e, t, r, n);
|
|
2213
2213
|
throw o.isSocket() ? new Error(`Cannot copy a socket file: ${t}`) : o.isFIFO() ? new Error(`Cannot copy a FIFO pipe: ${t}`) : new Error(`Unknown file: ${t}`);
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2216
|
-
return t ?
|
|
2215
|
+
function Wo(e, t, r, n, i) {
|
|
2216
|
+
return t ? Uo(e, r, n, i) : Qr(e, r, n, i);
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function Uo(e, t, r, n) {
|
|
2219
2219
|
if (n.overwrite)
|
|
2220
|
-
return z.unlinkSync(r),
|
|
2220
|
+
return z.unlinkSync(r), Qr(e, t, r, n);
|
|
2221
2221
|
if (n.errorOnExist)
|
|
2222
2222
|
throw new Error(`'${r}' already exists`);
|
|
2223
2223
|
}
|
|
2224
|
-
function
|
|
2225
|
-
return z.copyFileSync(t, r), n.preserveTimestamps &&
|
|
2224
|
+
function Qr(e, t, r, n) {
|
|
2225
|
+
return z.copyFileSync(t, r), n.preserveTimestamps && To(e.mode, t, r), Lt(r, e.mode);
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2228
|
-
return
|
|
2227
|
+
function To(e, t, r) {
|
|
2228
|
+
return Lo(e) && Go(r, e), Jo(t, r);
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function Lo(e) {
|
|
2231
2231
|
return (e & 128) === 0;
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function Go(e, t) {
|
|
2234
2234
|
return Lt(e, t | 128);
|
|
2235
2235
|
}
|
|
2236
2236
|
function Lt(e, t) {
|
|
2237
2237
|
return z.chmodSync(e, t);
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function Jo(e, t) {
|
|
2240
2240
|
const r = z.statSync(e);
|
|
2241
|
-
return
|
|
2241
|
+
return Mo(t, r.atime, r.mtime);
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2244
|
-
return t ?
|
|
2243
|
+
function Vo(e, t, r, n, i) {
|
|
2244
|
+
return t ? Xr(r, n, i) : zo(e.mode, r, n, i);
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2247
|
-
return z.mkdirSync(r),
|
|
2246
|
+
function zo(e, t, r, n) {
|
|
2247
|
+
return z.mkdirSync(r), Xr(t, r, n), Lt(r, e);
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2250
|
-
z.readdirSync(e).forEach((n) =>
|
|
2249
|
+
function Xr(e, t, r) {
|
|
2250
|
+
z.readdirSync(e).forEach((n) => xo(n, e, t, r));
|
|
2251
2251
|
}
|
|
2252
|
-
function
|
|
2252
|
+
function xo(e, t, r, n) {
|
|
2253
2253
|
const i = Be.join(t, e), o = Be.join(r, e);
|
|
2254
2254
|
if (n.filter && !n.filter(i, o))
|
|
2255
2255
|
return;
|
|
2256
2256
|
const { destStat: a } = _e.checkPathsSync(i, o, "copy", n);
|
|
2257
|
-
return
|
|
2257
|
+
return Yr(a, i, o, n);
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function qo(e, t, r, n) {
|
|
2260
2260
|
let i = z.readlinkSync(t);
|
|
2261
2261
|
if (n.dereference && (i = Be.resolve(process.cwd(), i)), e) {
|
|
2262
2262
|
let o;
|
|
@@ -2271,58 +2271,58 @@ function Vo(e, t, r, n) {
|
|
|
2271
2271
|
throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);
|
|
2272
2272
|
if (_e.isSrcSubdir(o, i))
|
|
2273
2273
|
throw new Error(`Cannot overwrite '${o}' with '${i}'.`);
|
|
2274
|
-
return
|
|
2274
|
+
return Ho(i, r);
|
|
2275
2275
|
} else
|
|
2276
2276
|
return z.symlinkSync(i, r);
|
|
2277
2277
|
}
|
|
2278
|
-
function
|
|
2278
|
+
function Ho(e, t) {
|
|
2279
2279
|
return z.unlinkSync(t), z.symlinkSync(e, t);
|
|
2280
2280
|
}
|
|
2281
|
-
var
|
|
2282
|
-
const
|
|
2281
|
+
var Yo = Ro;
|
|
2282
|
+
const Qo = q.fromCallback;
|
|
2283
2283
|
var Gt = {
|
|
2284
|
-
copy:
|
|
2285
|
-
copySync:
|
|
2284
|
+
copy: Qo(Bo),
|
|
2285
|
+
copySync: Yo
|
|
2286
2286
|
};
|
|
2287
|
-
const
|
|
2288
|
-
function
|
|
2289
|
-
|
|
2287
|
+
const Zr = Q, Xo = q.fromCallback;
|
|
2288
|
+
function Zo(e, t) {
|
|
2289
|
+
Zr.rm(e, { recursive: !0, force: !0 }, t);
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2292
|
-
|
|
2291
|
+
function Ko(e) {
|
|
2292
|
+
Zr.rmSync(e, { recursive: !0, force: !0 });
|
|
2293
2293
|
}
|
|
2294
2294
|
var ot = {
|
|
2295
|
-
remove:
|
|
2296
|
-
removeSync:
|
|
2295
|
+
remove: Xo(Zo),
|
|
2296
|
+
removeSync: Ko
|
|
2297
2297
|
};
|
|
2298
|
-
const
|
|
2298
|
+
const ea = q.fromPromise, Kr = de, en = X, tn = ne, rn = ot, rr = ea(async function(t) {
|
|
2299
2299
|
let r;
|
|
2300
2300
|
try {
|
|
2301
|
-
r = await
|
|
2301
|
+
r = await Kr.readdir(t);
|
|
2302
2302
|
} catch {
|
|
2303
|
-
return
|
|
2303
|
+
return tn.mkdirs(t);
|
|
2304
2304
|
}
|
|
2305
|
-
return Promise.all(r.map((n) =>
|
|
2305
|
+
return Promise.all(r.map((n) => rn.remove(en.join(t, n))));
|
|
2306
2306
|
});
|
|
2307
|
-
function
|
|
2307
|
+
function nr(e) {
|
|
2308
2308
|
let t;
|
|
2309
2309
|
try {
|
|
2310
|
-
t =
|
|
2310
|
+
t = Kr.readdirSync(e);
|
|
2311
2311
|
} catch {
|
|
2312
|
-
return
|
|
2312
|
+
return tn.mkdirsSync(e);
|
|
2313
2313
|
}
|
|
2314
2314
|
t.forEach((r) => {
|
|
2315
|
-
r =
|
|
2315
|
+
r = en.join(e, r), rn.removeSync(r);
|
|
2316
2316
|
});
|
|
2317
2317
|
}
|
|
2318
|
-
var
|
|
2319
|
-
emptyDirSync:
|
|
2320
|
-
emptydirSync:
|
|
2321
|
-
emptyDir:
|
|
2322
|
-
emptydir:
|
|
2318
|
+
var ta = {
|
|
2319
|
+
emptyDirSync: nr,
|
|
2320
|
+
emptydirSync: nr,
|
|
2321
|
+
emptyDir: rr,
|
|
2322
|
+
emptydir: rr
|
|
2323
2323
|
};
|
|
2324
|
-
const
|
|
2325
|
-
function
|
|
2324
|
+
const ra = q.fromCallback, nn = X, ce = Q, on = ne;
|
|
2325
|
+
function na(e, t) {
|
|
2326
2326
|
function r() {
|
|
2327
2327
|
ce.writeFile(e, "", (n) => {
|
|
2328
2328
|
if (n)
|
|
@@ -2333,10 +2333,10 @@ function ea(e, t) {
|
|
|
2333
2333
|
ce.stat(e, (n, i) => {
|
|
2334
2334
|
if (!n && i.isFile())
|
|
2335
2335
|
return t();
|
|
2336
|
-
const o =
|
|
2336
|
+
const o = nn.dirname(e);
|
|
2337
2337
|
ce.stat(o, (a, u) => {
|
|
2338
2338
|
if (a)
|
|
2339
|
-
return a.code === "ENOENT" ?
|
|
2339
|
+
return a.code === "ENOENT" ? on.mkdirs(o, (y) => {
|
|
2340
2340
|
if (y)
|
|
2341
2341
|
return t(y);
|
|
2342
2342
|
r();
|
|
@@ -2348,7 +2348,7 @@ function ea(e, t) {
|
|
|
2348
2348
|
});
|
|
2349
2349
|
});
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function ia(e) {
|
|
2352
2352
|
let t;
|
|
2353
2353
|
try {
|
|
2354
2354
|
t = ce.statSync(e);
|
|
@@ -2356,23 +2356,23 @@ function ta(e) {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
if (t && t.isFile())
|
|
2358
2358
|
return;
|
|
2359
|
-
const r =
|
|
2359
|
+
const r = nn.dirname(e);
|
|
2360
2360
|
try {
|
|
2361
2361
|
ce.statSync(r).isDirectory() || ce.readdirSync(r);
|
|
2362
2362
|
} catch (n) {
|
|
2363
2363
|
if (n && n.code === "ENOENT")
|
|
2364
|
-
|
|
2364
|
+
on.mkdirsSync(r);
|
|
2365
2365
|
else
|
|
2366
2366
|
throw n;
|
|
2367
2367
|
}
|
|
2368
2368
|
ce.writeFileSync(e, "");
|
|
2369
2369
|
}
|
|
2370
|
-
var
|
|
2371
|
-
createFile:
|
|
2372
|
-
createFileSync:
|
|
2370
|
+
var oa = {
|
|
2371
|
+
createFile: ra(na),
|
|
2372
|
+
createFileSync: ia
|
|
2373
2373
|
};
|
|
2374
|
-
const
|
|
2375
|
-
function
|
|
2374
|
+
const aa = q.fromCallback, an = X, ae = Q, cn = ne, ca = me.pathExists, { areIdentical: un } = Fe;
|
|
2375
|
+
function ua(e, t, r) {
|
|
2376
2376
|
function n(i, o) {
|
|
2377
2377
|
ae.link(i, o, (a) => {
|
|
2378
2378
|
if (a)
|
|
@@ -2384,15 +2384,15 @@ function oa(e, t, r) {
|
|
|
2384
2384
|
ae.lstat(e, (a, u) => {
|
|
2385
2385
|
if (a)
|
|
2386
2386
|
return a.message = a.message.replace("lstat", "ensureLink"), r(a);
|
|
2387
|
-
if (o &&
|
|
2387
|
+
if (o && un(u, o))
|
|
2388
2388
|
return r(null);
|
|
2389
|
-
const y =
|
|
2390
|
-
|
|
2391
|
-
if (
|
|
2392
|
-
return r(
|
|
2389
|
+
const y = an.dirname(t);
|
|
2390
|
+
ca(y, (S, f) => {
|
|
2391
|
+
if (S)
|
|
2392
|
+
return r(S);
|
|
2393
2393
|
if (f)
|
|
2394
2394
|
return n(e, t);
|
|
2395
|
-
|
|
2395
|
+
cn.mkdirs(y, (d) => {
|
|
2396
2396
|
if (d)
|
|
2397
2397
|
return r(d);
|
|
2398
2398
|
n(e, t);
|
|
@@ -2401,7 +2401,7 @@ function oa(e, t, r) {
|
|
|
2401
2401
|
});
|
|
2402
2402
|
});
|
|
2403
2403
|
}
|
|
2404
|
-
function
|
|
2404
|
+
function fa(e, t) {
|
|
2405
2405
|
let r;
|
|
2406
2406
|
try {
|
|
2407
2407
|
r = ae.lstatSync(t);
|
|
@@ -2409,20 +2409,20 @@ function aa(e, t) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
try {
|
|
2411
2411
|
const o = ae.lstatSync(e);
|
|
2412
|
-
if (r &&
|
|
2412
|
+
if (r && un(o, r))
|
|
2413
2413
|
return;
|
|
2414
2414
|
} catch (o) {
|
|
2415
2415
|
throw o.message = o.message.replace("lstat", "ensureLink"), o;
|
|
2416
2416
|
}
|
|
2417
|
-
const n =
|
|
2418
|
-
return ae.existsSync(n) ||
|
|
2417
|
+
const n = an.dirname(t);
|
|
2418
|
+
return ae.existsSync(n) || cn.mkdirsSync(n), ae.linkSync(e, t);
|
|
2419
2419
|
}
|
|
2420
|
-
var
|
|
2421
|
-
createLink:
|
|
2422
|
-
createLinkSync:
|
|
2420
|
+
var sa = {
|
|
2421
|
+
createLink: aa(ua),
|
|
2422
|
+
createLinkSync: fa
|
|
2423
2423
|
};
|
|
2424
|
-
const ue =
|
|
2425
|
-
function
|
|
2424
|
+
const ue = X, De = Q, la = me.pathExists;
|
|
2425
|
+
function ya(e, t, r) {
|
|
2426
2426
|
if (ue.isAbsolute(e))
|
|
2427
2427
|
return De.lstat(e, (n) => n ? (n.message = n.message.replace("lstat", "ensureSymlink"), r(n)) : r(null, {
|
|
2428
2428
|
toCwd: e,
|
|
@@ -2430,7 +2430,7 @@ function fa(e, t, r) {
|
|
|
2430
2430
|
}));
|
|
2431
2431
|
{
|
|
2432
2432
|
const n = ue.dirname(t), i = ue.join(n, e);
|
|
2433
|
-
return
|
|
2433
|
+
return la(i, (o, a) => o ? r(o) : a ? r(null, {
|
|
2434
2434
|
toCwd: i,
|
|
2435
2435
|
toDst: e
|
|
2436
2436
|
}) : De.lstat(e, (u) => u ? (u.message = u.message.replace("lstat", "ensureSymlink"), r(u)) : r(null, {
|
|
@@ -2439,7 +2439,7 @@ function fa(e, t, r) {
|
|
|
2439
2439
|
})));
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function pa(e, t) {
|
|
2443
2443
|
let r;
|
|
2444
2444
|
if (ue.isAbsolute(e)) {
|
|
2445
2445
|
if (r = De.existsSync(e), !r)
|
|
@@ -2463,62 +2463,62 @@ function sa(e, t) {
|
|
|
2463
2463
|
};
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
|
-
var
|
|
2467
|
-
symlinkPaths:
|
|
2468
|
-
symlinkPathsSync:
|
|
2466
|
+
var da = {
|
|
2467
|
+
symlinkPaths: ya,
|
|
2468
|
+
symlinkPathsSync: pa
|
|
2469
2469
|
};
|
|
2470
|
-
const
|
|
2471
|
-
function
|
|
2470
|
+
const fn = Q;
|
|
2471
|
+
function ma(e, t, r) {
|
|
2472
2472
|
if (r = typeof t == "function" ? t : r, t = typeof t == "function" ? !1 : t, t)
|
|
2473
2473
|
return r(null, t);
|
|
2474
|
-
|
|
2474
|
+
fn.lstat(e, (n, i) => {
|
|
2475
2475
|
if (n)
|
|
2476
2476
|
return r(null, "file");
|
|
2477
2477
|
t = i && i.isDirectory() ? "dir" : "file", r(null, t);
|
|
2478
2478
|
});
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function ha(e, t) {
|
|
2481
2481
|
let r;
|
|
2482
2482
|
if (t)
|
|
2483
2483
|
return t;
|
|
2484
2484
|
try {
|
|
2485
|
-
r =
|
|
2485
|
+
r = fn.lstatSync(e);
|
|
2486
2486
|
} catch {
|
|
2487
2487
|
return "file";
|
|
2488
2488
|
}
|
|
2489
2489
|
return r && r.isDirectory() ? "dir" : "file";
|
|
2490
2490
|
}
|
|
2491
|
-
var
|
|
2492
|
-
symlinkType:
|
|
2493
|
-
symlinkTypeSync:
|
|
2491
|
+
var ga = {
|
|
2492
|
+
symlinkType: ma,
|
|
2493
|
+
symlinkTypeSync: ha
|
|
2494
2494
|
};
|
|
2495
|
-
const
|
|
2496
|
-
function
|
|
2495
|
+
const Sa = q.fromCallback, sn = X, ee = de, ln = ne, va = ln.mkdirs, wa = ln.mkdirsSync, yn = da, ba = yn.symlinkPaths, Aa = yn.symlinkPathsSync, pn = ga, Oa = pn.symlinkType, Ea = pn.symlinkTypeSync, $a = me.pathExists, { areIdentical: dn } = Fe;
|
|
2496
|
+
function Pa(e, t, r, n) {
|
|
2497
2497
|
n = typeof r == "function" ? r : n, r = typeof r == "function" ? !1 : r, ee.lstat(t, (i, o) => {
|
|
2498
2498
|
!i && o.isSymbolicLink() ? Promise.all([
|
|
2499
2499
|
ee.stat(e),
|
|
2500
2500
|
ee.stat(t)
|
|
2501
2501
|
]).then(([a, u]) => {
|
|
2502
|
-
if (
|
|
2502
|
+
if (dn(a, u))
|
|
2503
2503
|
return n(null);
|
|
2504
|
-
|
|
2505
|
-
}) :
|
|
2504
|
+
ir(e, t, r, n);
|
|
2505
|
+
}) : ir(e, t, r, n);
|
|
2506
2506
|
});
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2509
|
-
|
|
2508
|
+
function ir(e, t, r, n) {
|
|
2509
|
+
ba(e, t, (i, o) => {
|
|
2510
2510
|
if (i)
|
|
2511
2511
|
return n(i);
|
|
2512
|
-
e = o.toDst,
|
|
2512
|
+
e = o.toDst, Oa(o.toCwd, r, (a, u) => {
|
|
2513
2513
|
if (a)
|
|
2514
2514
|
return n(a);
|
|
2515
|
-
const y =
|
|
2516
|
-
|
|
2517
|
-
if (
|
|
2518
|
-
return n(
|
|
2515
|
+
const y = sn.dirname(t);
|
|
2516
|
+
$a(y, (S, f) => {
|
|
2517
|
+
if (S)
|
|
2518
|
+
return n(S);
|
|
2519
2519
|
if (f)
|
|
2520
2520
|
return ee.symlink(e, t, u, n);
|
|
2521
|
-
|
|
2521
|
+
va(y, (d) => {
|
|
2522
2522
|
if (d)
|
|
2523
2523
|
return n(d);
|
|
2524
2524
|
ee.symlink(e, t, u, n);
|
|
@@ -2527,7 +2527,7 @@ function nr(e, t, r, n) {
|
|
|
2527
2527
|
});
|
|
2528
2528
|
});
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function ka(e, t, r) {
|
|
2531
2531
|
let n;
|
|
2532
2532
|
try {
|
|
2533
2533
|
n = ee.lstatSync(t);
|
|
@@ -2535,57 +2535,57 @@ function Ea(e, t, r) {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
if (n && n.isSymbolicLink()) {
|
|
2537
2537
|
const u = ee.statSync(e), y = ee.statSync(t);
|
|
2538
|
-
if (
|
|
2538
|
+
if (dn(u, y))
|
|
2539
2539
|
return;
|
|
2540
2540
|
}
|
|
2541
|
-
const i =
|
|
2542
|
-
e = i.toDst, r =
|
|
2543
|
-
const o =
|
|
2544
|
-
return ee.existsSync(o) ||
|
|
2541
|
+
const i = Aa(e, t);
|
|
2542
|
+
e = i.toDst, r = Ea(i.toCwd, r);
|
|
2543
|
+
const o = sn.dirname(t);
|
|
2544
|
+
return ee.existsSync(o) || wa(o), ee.symlinkSync(e, t, r);
|
|
2545
2545
|
}
|
|
2546
|
-
var
|
|
2547
|
-
createSymlink:
|
|
2548
|
-
createSymlinkSync:
|
|
2546
|
+
var Fa = {
|
|
2547
|
+
createSymlink: Sa(Pa),
|
|
2548
|
+
createSymlinkSync: ka
|
|
2549
2549
|
};
|
|
2550
|
-
const { createFile:
|
|
2551
|
-
var
|
|
2550
|
+
const { createFile: or, createFileSync: ar } = oa, { createLink: cr, createLinkSync: ur } = sa, { createSymlink: fr, createSymlinkSync: sr } = Fa;
|
|
2551
|
+
var ja = {
|
|
2552
2552
|
// file
|
|
2553
|
-
createFile:
|
|
2554
|
-
createFileSync:
|
|
2555
|
-
ensureFile:
|
|
2556
|
-
ensureFileSync:
|
|
2553
|
+
createFile: or,
|
|
2554
|
+
createFileSync: ar,
|
|
2555
|
+
ensureFile: or,
|
|
2556
|
+
ensureFileSync: ar,
|
|
2557
2557
|
// link
|
|
2558
|
-
createLink:
|
|
2559
|
-
createLinkSync:
|
|
2560
|
-
ensureLink:
|
|
2561
|
-
ensureLinkSync:
|
|
2558
|
+
createLink: cr,
|
|
2559
|
+
createLinkSync: ur,
|
|
2560
|
+
ensureLink: cr,
|
|
2561
|
+
ensureLinkSync: ur,
|
|
2562
2562
|
// symlink
|
|
2563
|
-
createSymlink:
|
|
2564
|
-
createSymlinkSync:
|
|
2565
|
-
ensureSymlink:
|
|
2566
|
-
ensureSymlinkSync:
|
|
2563
|
+
createSymlink: fr,
|
|
2564
|
+
createSymlinkSync: sr,
|
|
2565
|
+
ensureSymlink: fr,
|
|
2566
|
+
ensureSymlinkSync: sr
|
|
2567
2567
|
};
|
|
2568
|
-
function
|
|
2568
|
+
function Da(e, { EOL: t = `
|
|
2569
2569
|
`, finalEOL: r = !0, replacer: n = null, spaces: i } = {}) {
|
|
2570
2570
|
const o = r ? t : "";
|
|
2571
2571
|
return JSON.stringify(e, n, i).replace(/\n/g, t) + o;
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function Ia(e) {
|
|
2574
2574
|
return Buffer.isBuffer(e) && (e = e.toString("utf8")), e.replace(/^\uFEFF/, "");
|
|
2575
2575
|
}
|
|
2576
|
-
var Jt = { stringify:
|
|
2577
|
-
let
|
|
2576
|
+
var Jt = { stringify: Da, stripBom: Ia };
|
|
2577
|
+
let ke;
|
|
2578
2578
|
try {
|
|
2579
|
-
|
|
2579
|
+
ke = Q;
|
|
2580
2580
|
} catch {
|
|
2581
|
-
|
|
2581
|
+
ke = dr;
|
|
2582
2582
|
}
|
|
2583
|
-
const at = q, { stringify:
|
|
2584
|
-
async function
|
|
2583
|
+
const at = q, { stringify: mn, stripBom: hn } = Jt;
|
|
2584
|
+
async function Na(e, t = {}) {
|
|
2585
2585
|
typeof t == "string" && (t = { encoding: t });
|
|
2586
|
-
const r = t.fs ||
|
|
2586
|
+
const r = t.fs || ke, n = "throws" in t ? t.throws : !0;
|
|
2587
2587
|
let i = await at.fromCallback(r.readFile)(e, t);
|
|
2588
|
-
i =
|
|
2588
|
+
i = hn(i);
|
|
2589
2589
|
let o;
|
|
2590
2590
|
try {
|
|
2591
2591
|
o = JSON.parse(i, t ? t.reviver : null);
|
|
@@ -2596,48 +2596,48 @@ async function ja(e, t = {}) {
|
|
|
2596
2596
|
}
|
|
2597
2597
|
return o;
|
|
2598
2598
|
}
|
|
2599
|
-
const
|
|
2600
|
-
function
|
|
2599
|
+
const Ca = at.fromPromise(Na);
|
|
2600
|
+
function Ba(e, t = {}) {
|
|
2601
2601
|
typeof t == "string" && (t = { encoding: t });
|
|
2602
|
-
const r = t.fs ||
|
|
2602
|
+
const r = t.fs || ke, n = "throws" in t ? t.throws : !0;
|
|
2603
2603
|
try {
|
|
2604
2604
|
let i = r.readFileSync(e, t);
|
|
2605
|
-
return i =
|
|
2605
|
+
return i = hn(i), JSON.parse(i, t.reviver);
|
|
2606
2606
|
} catch (i) {
|
|
2607
2607
|
if (n)
|
|
2608
2608
|
throw i.message = `${e}: ${i.message}`, i;
|
|
2609
2609
|
return null;
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
async function
|
|
2613
|
-
const n = r.fs ||
|
|
2612
|
+
async function _a(e, t, r = {}) {
|
|
2613
|
+
const n = r.fs || ke, i = mn(t, r);
|
|
2614
2614
|
await at.fromCallback(n.writeFile)(e, i, r);
|
|
2615
2615
|
}
|
|
2616
|
-
const
|
|
2617
|
-
function
|
|
2618
|
-
const n = r.fs ||
|
|
2616
|
+
const Ma = at.fromPromise(_a);
|
|
2617
|
+
function Ra(e, t, r = {}) {
|
|
2618
|
+
const n = r.fs || ke, i = mn(t, r);
|
|
2619
2619
|
return n.writeFileSync(e, i, r);
|
|
2620
2620
|
}
|
|
2621
|
-
const
|
|
2622
|
-
readFile:
|
|
2623
|
-
readFileSync:
|
|
2624
|
-
writeFile:
|
|
2625
|
-
writeFileSync:
|
|
2621
|
+
const Wa = {
|
|
2622
|
+
readFile: Ca,
|
|
2623
|
+
readFileSync: Ba,
|
|
2624
|
+
writeFile: Ma,
|
|
2625
|
+
writeFileSync: Ra
|
|
2626
2626
|
};
|
|
2627
|
-
var
|
|
2628
|
-
const Ve =
|
|
2629
|
-
var
|
|
2627
|
+
var Ua = Wa;
|
|
2628
|
+
const Ve = Ua;
|
|
2629
|
+
var Ta = {
|
|
2630
2630
|
// jsonfile exports
|
|
2631
2631
|
readJson: Ve.readFile,
|
|
2632
2632
|
readJsonSync: Ve.readFileSync,
|
|
2633
2633
|
writeJson: Ve.writeFile,
|
|
2634
2634
|
writeJsonSync: Ve.writeFileSync
|
|
2635
2635
|
};
|
|
2636
|
-
const
|
|
2637
|
-
function
|
|
2636
|
+
const La = q.fromCallback, Ie = Q, gn = X, Sn = ne, Ga = me.pathExists;
|
|
2637
|
+
function Ja(e, t, r, n) {
|
|
2638
2638
|
typeof r == "function" && (n = r, r = "utf8");
|
|
2639
|
-
const i =
|
|
2640
|
-
|
|
2639
|
+
const i = gn.dirname(e);
|
|
2640
|
+
Ga(i, (o, a) => {
|
|
2641
2641
|
if (o)
|
|
2642
2642
|
return n(o);
|
|
2643
2643
|
if (a)
|
|
@@ -2649,131 +2649,131 @@ function Ta(e, t, r, n) {
|
|
|
2649
2649
|
});
|
|
2650
2650
|
});
|
|
2651
2651
|
}
|
|
2652
|
-
function
|
|
2653
|
-
const r =
|
|
2652
|
+
function Va(e, ...t) {
|
|
2653
|
+
const r = gn.dirname(e);
|
|
2654
2654
|
if (Ie.existsSync(r))
|
|
2655
2655
|
return Ie.writeFileSync(e, ...t);
|
|
2656
2656
|
Sn.mkdirsSync(r), Ie.writeFileSync(e, ...t);
|
|
2657
2657
|
}
|
|
2658
2658
|
var Vt = {
|
|
2659
|
-
outputFile:
|
|
2660
|
-
outputFileSync:
|
|
2659
|
+
outputFile: La(Ja),
|
|
2660
|
+
outputFileSync: Va
|
|
2661
2661
|
};
|
|
2662
|
-
const { stringify:
|
|
2663
|
-
async function
|
|
2664
|
-
const n =
|
|
2665
|
-
await
|
|
2666
|
-
}
|
|
2667
|
-
var
|
|
2668
|
-
const { stringify:
|
|
2669
|
-
function
|
|
2670
|
-
const n =
|
|
2671
|
-
|
|
2672
|
-
}
|
|
2673
|
-
var
|
|
2674
|
-
const
|
|
2675
|
-
x.outputJson =
|
|
2676
|
-
x.outputJsonSync =
|
|
2662
|
+
const { stringify: za } = Jt, { outputFile: xa } = Vt;
|
|
2663
|
+
async function qa(e, t, r = {}) {
|
|
2664
|
+
const n = za(t, r);
|
|
2665
|
+
await xa(e, n, r);
|
|
2666
|
+
}
|
|
2667
|
+
var Ha = qa;
|
|
2668
|
+
const { stringify: Ya } = Jt, { outputFileSync: Qa } = Vt;
|
|
2669
|
+
function Xa(e, t, r) {
|
|
2670
|
+
const n = Ya(t, r);
|
|
2671
|
+
Qa(e, n, r);
|
|
2672
|
+
}
|
|
2673
|
+
var Za = Xa;
|
|
2674
|
+
const Ka = q.fromPromise, x = Ta;
|
|
2675
|
+
x.outputJson = Ka(Ha);
|
|
2676
|
+
x.outputJsonSync = Za;
|
|
2677
2677
|
x.outputJSON = x.outputJson;
|
|
2678
2678
|
x.outputJSONSync = x.outputJsonSync;
|
|
2679
2679
|
x.writeJSON = x.writeJson;
|
|
2680
2680
|
x.writeJSONSync = x.writeJsonSync;
|
|
2681
2681
|
x.readJSON = x.readJson;
|
|
2682
2682
|
x.readJSONSync = x.readJsonSync;
|
|
2683
|
-
var
|
|
2684
|
-
const
|
|
2685
|
-
function
|
|
2683
|
+
var ec = x;
|
|
2684
|
+
const tc = Q, jt = X, rc = Gt.copy, vn = ot.remove, nc = ne.mkdirp, ic = me.pathExists, lr = Fe;
|
|
2685
|
+
function oc(e, t, r, n) {
|
|
2686
2686
|
typeof r == "function" && (n = r, r = {}), r = r || {};
|
|
2687
2687
|
const i = r.overwrite || r.clobber || !1;
|
|
2688
|
-
|
|
2688
|
+
lr.checkPaths(e, t, "move", r, (o, a) => {
|
|
2689
2689
|
if (o)
|
|
2690
2690
|
return n(o);
|
|
2691
2691
|
const { srcStat: u, isChangingCase: y = !1 } = a;
|
|
2692
|
-
|
|
2693
|
-
if (
|
|
2694
|
-
return n(
|
|
2695
|
-
if (
|
|
2696
|
-
return
|
|
2697
|
-
|
|
2692
|
+
lr.checkParentPaths(e, u, t, "move", (S) => {
|
|
2693
|
+
if (S)
|
|
2694
|
+
return n(S);
|
|
2695
|
+
if (ac(t))
|
|
2696
|
+
return yr(e, t, i, y, n);
|
|
2697
|
+
nc(jt.dirname(t), (f) => f ? n(f) : yr(e, t, i, y, n));
|
|
2698
2698
|
});
|
|
2699
2699
|
});
|
|
2700
2700
|
}
|
|
2701
|
-
function
|
|
2701
|
+
function ac(e) {
|
|
2702
2702
|
const t = jt.dirname(e);
|
|
2703
2703
|
return jt.parse(t).root === t;
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function yr(e, t, r, n, i) {
|
|
2706
2706
|
if (n)
|
|
2707
2707
|
return vt(e, t, r, i);
|
|
2708
2708
|
if (r)
|
|
2709
|
-
return
|
|
2710
|
-
|
|
2709
|
+
return vn(t, (o) => o ? i(o) : vt(e, t, r, i));
|
|
2710
|
+
ic(t, (o, a) => o ? i(o) : a ? i(new Error("dest already exists.")) : vt(e, t, r, i));
|
|
2711
2711
|
}
|
|
2712
2712
|
function vt(e, t, r, n) {
|
|
2713
|
-
|
|
2713
|
+
tc.rename(e, t, (i) => i ? i.code !== "EXDEV" ? n(i) : cc(e, t, r, n) : n());
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2716
|
-
|
|
2715
|
+
function cc(e, t, r, n) {
|
|
2716
|
+
rc(e, t, {
|
|
2717
2717
|
overwrite: r,
|
|
2718
2718
|
errorOnExist: !0
|
|
2719
|
-
}, (o) => o ? n(o) :
|
|
2719
|
+
}, (o) => o ? n(o) : vn(e, n));
|
|
2720
2720
|
}
|
|
2721
|
-
var
|
|
2722
|
-
const
|
|
2723
|
-
function
|
|
2721
|
+
var uc = oc;
|
|
2722
|
+
const wn = Q, Dt = X, fc = Gt.copySync, bn = ot.removeSync, sc = ne.mkdirpSync, pr = Fe;
|
|
2723
|
+
function lc(e, t, r) {
|
|
2724
2724
|
r = r || {};
|
|
2725
|
-
const n = r.overwrite || r.clobber || !1, { srcStat: i, isChangingCase: o = !1 } =
|
|
2726
|
-
return
|
|
2725
|
+
const n = r.overwrite || r.clobber || !1, { srcStat: i, isChangingCase: o = !1 } = pr.checkPathsSync(e, t, "move", r);
|
|
2726
|
+
return pr.checkParentPathsSync(e, i, t, "move"), yc(t) || sc(Dt.dirname(t)), pc(e, t, n, o);
|
|
2727
2727
|
}
|
|
2728
|
-
function
|
|
2728
|
+
function yc(e) {
|
|
2729
2729
|
const t = Dt.dirname(e);
|
|
2730
2730
|
return Dt.parse(t).root === t;
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function pc(e, t, r, n) {
|
|
2733
2733
|
if (n)
|
|
2734
2734
|
return wt(e, t, r);
|
|
2735
2735
|
if (r)
|
|
2736
|
-
return
|
|
2737
|
-
if (
|
|
2736
|
+
return bn(t), wt(e, t, r);
|
|
2737
|
+
if (wn.existsSync(t))
|
|
2738
2738
|
throw new Error("dest already exists.");
|
|
2739
2739
|
return wt(e, t, r);
|
|
2740
2740
|
}
|
|
2741
2741
|
function wt(e, t, r) {
|
|
2742
2742
|
try {
|
|
2743
|
-
|
|
2743
|
+
wn.renameSync(e, t);
|
|
2744
2744
|
} catch (n) {
|
|
2745
2745
|
if (n.code !== "EXDEV")
|
|
2746
2746
|
throw n;
|
|
2747
|
-
return
|
|
2747
|
+
return dc(e, t, r);
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2751
|
-
return
|
|
2750
|
+
function dc(e, t, r) {
|
|
2751
|
+
return fc(e, t, {
|
|
2752
2752
|
overwrite: r,
|
|
2753
2753
|
errorOnExist: !0
|
|
2754
|
-
}),
|
|
2755
|
-
}
|
|
2756
|
-
var
|
|
2757
|
-
const
|
|
2758
|
-
var
|
|
2759
|
-
move:
|
|
2760
|
-
moveSync:
|
|
2761
|
-
},
|
|
2754
|
+
}), bn(e);
|
|
2755
|
+
}
|
|
2756
|
+
var mc = lc;
|
|
2757
|
+
const hc = q.fromCallback;
|
|
2758
|
+
var gc = {
|
|
2759
|
+
move: hc(uc),
|
|
2760
|
+
moveSync: mc
|
|
2761
|
+
}, Sc = {
|
|
2762
2762
|
// Export promiseified graceful-fs:
|
|
2763
2763
|
...de,
|
|
2764
2764
|
// Export extra methods:
|
|
2765
2765
|
...Gt,
|
|
2766
|
-
...
|
|
2767
|
-
...
|
|
2768
|
-
...
|
|
2766
|
+
...ta,
|
|
2767
|
+
...ja,
|
|
2768
|
+
...ec,
|
|
2769
2769
|
...ne,
|
|
2770
|
-
...
|
|
2770
|
+
...gc,
|
|
2771
2771
|
...Vt,
|
|
2772
2772
|
...me,
|
|
2773
2773
|
...ot
|
|
2774
2774
|
};
|
|
2775
|
-
const ze =
|
|
2776
|
-
function
|
|
2775
|
+
const ze = Sc;
|
|
2776
|
+
function Ec(e, t = !1) {
|
|
2777
2777
|
return {
|
|
2778
2778
|
name: "vite-plugin-css-import",
|
|
2779
2779
|
apply: "build",
|
|
@@ -2782,21 +2782,24 @@ function bc(e, t) {
|
|
|
2782
2782
|
const i = Object.keys(n).filter((f) => f.endsWith(".css"));
|
|
2783
2783
|
if (!i.length)
|
|
2784
2784
|
return;
|
|
2785
|
-
const o = i.reduce((f, d) =>
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2785
|
+
const o = xt(process.cwd(), `${e}-temp.js`), a = xt(process.cwd(), `${e}.js`), u = i.reduce((f, d) => {
|
|
2786
|
+
if (t) {
|
|
2787
|
+
const m = kn(a), h = Fn(m, d);
|
|
2788
|
+
return `${f}import "${h.replaceAll("\\", "/")}";
|
|
2789
|
+
`;
|
|
2790
|
+
}
|
|
2791
|
+
return `${f}import "./${d}";
|
|
2792
|
+
`;
|
|
2793
|
+
}, ""), y = ze.createWriteStream(o);
|
|
2794
|
+
y.write(u, "utf8");
|
|
2795
|
+
const S = ze.createReadStream(a);
|
|
2796
|
+
await jn(S, y), await ze.remove(a), await ze.rename(o, a), y.end();
|
|
2794
2797
|
}
|
|
2795
2798
|
};
|
|
2796
2799
|
}
|
|
2797
2800
|
export {
|
|
2798
2801
|
je as Texts,
|
|
2799
|
-
|
|
2800
|
-
|
|
2802
|
+
mr as TranslationsKey,
|
|
2803
|
+
Ec as viteCssImportPlugin
|
|
2801
2804
|
};
|
|
2802
2805
|
//# sourceMappingURL=index.js.map
|