@wix/zero-config-implementation 1.33.0 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2742 -45
- package/dist/index.js +289 -280
- package/dist/jsx-runtime-interceptor.d.ts +58 -42
- package/dist/jsx-runtime-loader.d.ts +27 -23
- package/package.json +4 -4
- package/src/index.ts +4 -0
- package/vite.config.ts +12 -0
- package/dist/component-renderer.d.ts +0 -31
- package/dist/converters/data-item-builder.d.ts +0 -18
- package/dist/converters/index.d.ts +0 -1
- package/dist/converters/to-editor-component.d.ts +0 -3
- package/dist/converters/utils.d.ts +0 -20
- package/dist/errors.d.ts +0 -230
- package/dist/extraction-types.d.ts +0 -7
- package/dist/information-extractors/css/index.d.ts +0 -3
- package/dist/information-extractors/css/parse.d.ts +0 -7
- package/dist/information-extractors/css/sass-adapter.d.ts +0 -2
- package/dist/information-extractors/css/selector-matcher.d.ts +0 -6
- package/dist/information-extractors/css/types.d.ts +0 -61
- package/dist/information-extractors/react/extractors/core/index.d.ts +0 -6
- package/dist/information-extractors/react/extractors/core/runner.d.ts +0 -23
- package/dist/information-extractors/react/extractors/core/store.d.ts +0 -17
- package/dist/information-extractors/react/extractors/core/tree-builder.d.ts +0 -15
- package/dist/information-extractors/react/extractors/core/types.d.ts +0 -40
- package/dist/information-extractors/react/extractors/css-properties.d.ts +0 -20
- package/dist/information-extractors/react/extractors/index.d.ts +0 -11
- package/dist/information-extractors/react/extractors/prop-tracker.d.ts +0 -21
- package/dist/information-extractors/react/index.d.ts +0 -8
- package/dist/information-extractors/react/types.d.ts +0 -38
- package/dist/information-extractors/react/utils/mock-generator.d.ts +0 -21
- package/dist/information-extractors/ts/components.d.ts +0 -14
- package/dist/information-extractors/ts/css-imports.d.ts +0 -2
- package/dist/information-extractors/ts/index.d.ts +0 -3
- package/dist/information-extractors/ts/types.d.ts +0 -54
- package/dist/information-extractors/ts/utils/semantic-type-resolver.d.ts +0 -12
- package/dist/manifest-pipeline.d.ts +0 -29
- package/dist/module-loader.d.ts +0 -27
- package/dist/ts-compiler.d.ts +0 -13
- package/dist/utils/css-class.d.ts +0 -9
- package/dist/wix-type-to-data-type.d.ts +0 -6
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import xe from "typescript";
|
|
|
9
9
|
import * as cc from "node:fs";
|
|
10
10
|
import My, { existsSync as Ly, promises as xy } from "node:fs";
|
|
11
11
|
import * as ha from "node:path";
|
|
12
|
-
import
|
|
12
|
+
import Rt, { dirname as Bd, join as Uy } from "node:path";
|
|
13
13
|
import { createRequire as nh } from "node:module";
|
|
14
14
|
import zi from "react";
|
|
15
15
|
import { renderToStaticMarkup as Oy } from "react-dom/server";
|
|
@@ -156,21 +156,21 @@ function zy(e) {
|
|
|
156
156
|
}, o);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
class
|
|
159
|
+
class Tt {
|
|
160
160
|
constructor(t) {
|
|
161
161
|
this._promise = t;
|
|
162
162
|
}
|
|
163
163
|
static fromSafePromise(t) {
|
|
164
164
|
const r = t.then((n) => new Mr(n));
|
|
165
|
-
return new
|
|
165
|
+
return new Tt(r);
|
|
166
166
|
}
|
|
167
167
|
static fromPromise(t, r) {
|
|
168
168
|
const n = t.then((a) => new Mr(a)).catch((a) => new Lr(r(a)));
|
|
169
|
-
return new
|
|
169
|
+
return new Tt(n);
|
|
170
170
|
}
|
|
171
171
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
172
172
|
static fromThrowable(t, r) {
|
|
173
|
-
return (...n) => new
|
|
173
|
+
return (...n) => new Tt(Un(this, void 0, void 0, function* () {
|
|
174
174
|
try {
|
|
175
175
|
return new Mr(yield t(...n));
|
|
176
176
|
} catch (a) {
|
|
@@ -185,12 +185,12 @@ class Wt {
|
|
|
185
185
|
return Zy(t);
|
|
186
186
|
}
|
|
187
187
|
map(t) {
|
|
188
|
-
return new
|
|
188
|
+
return new Tt(this._promise.then((r) => Un(this, void 0, void 0, function* () {
|
|
189
189
|
return r.isErr() ? new Lr(r.error) : new Mr(yield t(r.value));
|
|
190
190
|
})));
|
|
191
191
|
}
|
|
192
192
|
andThrough(t) {
|
|
193
|
-
return new
|
|
193
|
+
return new Tt(this._promise.then((r) => Un(this, void 0, void 0, function* () {
|
|
194
194
|
if (r.isErr())
|
|
195
195
|
return new Lr(r.error);
|
|
196
196
|
const n = yield t(r.value);
|
|
@@ -198,7 +198,7 @@ class Wt {
|
|
|
198
198
|
})));
|
|
199
199
|
}
|
|
200
200
|
andTee(t) {
|
|
201
|
-
return new
|
|
201
|
+
return new Tt(this._promise.then((r) => Un(this, void 0, void 0, function* () {
|
|
202
202
|
if (r.isErr())
|
|
203
203
|
return new Lr(r.error);
|
|
204
204
|
try {
|
|
@@ -209,7 +209,7 @@ class Wt {
|
|
|
209
209
|
})));
|
|
210
210
|
}
|
|
211
211
|
orTee(t) {
|
|
212
|
-
return new
|
|
212
|
+
return new Tt(this._promise.then((r) => Un(this, void 0, void 0, function* () {
|
|
213
213
|
if (r.isOk())
|
|
214
214
|
return new Mr(r.value);
|
|
215
215
|
try {
|
|
@@ -220,22 +220,22 @@ class Wt {
|
|
|
220
220
|
})));
|
|
221
221
|
}
|
|
222
222
|
mapErr(t) {
|
|
223
|
-
return new
|
|
223
|
+
return new Tt(this._promise.then((r) => Un(this, void 0, void 0, function* () {
|
|
224
224
|
return r.isOk() ? new Mr(r.value) : new Lr(yield t(r.error));
|
|
225
225
|
})));
|
|
226
226
|
}
|
|
227
227
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
228
228
|
andThen(t) {
|
|
229
|
-
return new
|
|
229
|
+
return new Tt(this._promise.then((r) => {
|
|
230
230
|
if (r.isErr())
|
|
231
231
|
return new Lr(r.error);
|
|
232
232
|
const n = t(r.value);
|
|
233
|
-
return n instanceof
|
|
233
|
+
return n instanceof Tt ? n._promise : n;
|
|
234
234
|
}));
|
|
235
235
|
}
|
|
236
236
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
237
237
|
orElse(t) {
|
|
238
|
-
return new
|
|
238
|
+
return new Tt(this._promise.then((r) => Un(this, void 0, void 0, function* () {
|
|
239
239
|
return r.isErr() ? t(r.error) : new Mr(r.value);
|
|
240
240
|
})));
|
|
241
241
|
}
|
|
@@ -274,13 +274,16 @@ class Wt {
|
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
function yE(e) {
|
|
277
|
-
return new
|
|
277
|
+
return new Tt(Promise.resolve(new Mr(e)));
|
|
278
278
|
}
|
|
279
279
|
function Jn(e) {
|
|
280
|
-
return new
|
|
280
|
+
return new Tt(Promise.resolve(new Lr(e)));
|
|
281
281
|
}
|
|
282
|
+
Tt.fromPromise;
|
|
283
|
+
Tt.fromSafePromise;
|
|
284
|
+
Tt.fromThrowable;
|
|
282
285
|
const IE = (e) => {
|
|
283
|
-
let t =
|
|
286
|
+
let t = Nt([]);
|
|
284
287
|
for (const r of e)
|
|
285
288
|
if (r.isErr()) {
|
|
286
289
|
t = gr(r.error);
|
|
@@ -288,19 +291,19 @@ const IE = (e) => {
|
|
|
288
291
|
} else
|
|
289
292
|
t.map((n) => n.push(r.value));
|
|
290
293
|
return t;
|
|
291
|
-
}, jy = (e) =>
|
|
292
|
-
let t =
|
|
294
|
+
}, jy = (e) => Tt.fromSafePromise(Promise.all(e)).andThen(IE), FE = (e) => {
|
|
295
|
+
let t = Nt([]);
|
|
293
296
|
for (const r of e)
|
|
294
297
|
r.isErr() && t.isErr() ? t.error.push(r.error) : r.isErr() && t.isOk() ? t = gr([r.error]) : r.isOk() && t.isOk() && t.value.push(r.value);
|
|
295
298
|
return t;
|
|
296
|
-
}, Zy = (e) =>
|
|
299
|
+
}, Zy = (e) => Tt.fromSafePromise(Promise.all(e)).andThen(FE);
|
|
297
300
|
var Ea;
|
|
298
301
|
(function(e) {
|
|
299
302
|
function t(a, i) {
|
|
300
303
|
return (...o) => {
|
|
301
304
|
try {
|
|
302
305
|
const u = a(...o);
|
|
303
|
-
return
|
|
306
|
+
return Nt(u);
|
|
304
307
|
} catch (u) {
|
|
305
308
|
return gr(i ? i(u) : u);
|
|
306
309
|
}
|
|
@@ -316,7 +319,7 @@ var Ea;
|
|
|
316
319
|
}
|
|
317
320
|
e.combineWithAllErrors = n;
|
|
318
321
|
})(Ea || (Ea = {}));
|
|
319
|
-
function
|
|
322
|
+
function Nt(e) {
|
|
320
323
|
return new Mr(e);
|
|
321
324
|
}
|
|
322
325
|
function gr(e) {
|
|
@@ -333,11 +336,11 @@ class Mr {
|
|
|
333
336
|
return !this.isOk();
|
|
334
337
|
}
|
|
335
338
|
map(t) {
|
|
336
|
-
return
|
|
339
|
+
return Nt(t(this.value));
|
|
337
340
|
}
|
|
338
341
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
339
342
|
mapErr(t) {
|
|
340
|
-
return
|
|
343
|
+
return Nt(this.value);
|
|
341
344
|
}
|
|
342
345
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
343
346
|
andThen(t) {
|
|
@@ -352,14 +355,14 @@ class Mr {
|
|
|
352
355
|
t(this.value);
|
|
353
356
|
} catch {
|
|
354
357
|
}
|
|
355
|
-
return
|
|
358
|
+
return Nt(this.value);
|
|
356
359
|
}
|
|
357
360
|
orTee(t) {
|
|
358
|
-
return
|
|
361
|
+
return Nt(this.value);
|
|
359
362
|
}
|
|
360
363
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
361
364
|
orElse(t) {
|
|
362
|
-
return
|
|
365
|
+
return Nt(this.value);
|
|
363
366
|
}
|
|
364
367
|
asyncAndThen(t) {
|
|
365
368
|
return t(this.value);
|
|
@@ -369,7 +372,7 @@ class Mr {
|
|
|
369
372
|
return t(this.value).map(() => this.value);
|
|
370
373
|
}
|
|
371
374
|
asyncMap(t) {
|
|
372
|
-
return
|
|
375
|
+
return Tt.fromSafePromise(t(this.value));
|
|
373
376
|
}
|
|
374
377
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
375
378
|
unwrapOr(t) {
|
|
@@ -3047,17 +3050,17 @@ function IC(e, t, r, n) {
|
|
|
3047
3050
|
};
|
|
3048
3051
|
t !== void 0 && (a.defaultValue = t);
|
|
3049
3052
|
const i = ph(a, e.resolvedType, e, r, n);
|
|
3050
|
-
return i.isErr() ? gr(i.error) :
|
|
3053
|
+
return i.isErr() ? gr(i.error) : Nt(a);
|
|
3051
3054
|
}
|
|
3052
3055
|
function ph(e, t, r, n, a) {
|
|
3053
3056
|
const i = n && a ? q2(n, a) : void 0;
|
|
3054
3057
|
switch (t.kind) {
|
|
3055
3058
|
case "primitive":
|
|
3056
|
-
return z2(e, t, r, i),
|
|
3059
|
+
return z2(e, t, r, i), Nt(void 0);
|
|
3057
3060
|
case "literal":
|
|
3058
|
-
return j2(e),
|
|
3061
|
+
return j2(e), Nt(void 0);
|
|
3059
3062
|
case "enum":
|
|
3060
|
-
return Z2(e),
|
|
3063
|
+
return Z2(e), Nt(void 0);
|
|
3061
3064
|
case "array":
|
|
3062
3065
|
return X2(e, t, n, a);
|
|
3063
3066
|
case "object":
|
|
@@ -3065,11 +3068,11 @@ function ph(e, t, r, n, a) {
|
|
|
3065
3068
|
case "union":
|
|
3066
3069
|
return ew(e, t, r);
|
|
3067
3070
|
case "function":
|
|
3068
|
-
return rw(e, r, i),
|
|
3071
|
+
return rw(e, r, i), Nt(void 0);
|
|
3069
3072
|
case "semantic":
|
|
3070
|
-
return tw(e, t),
|
|
3073
|
+
return tw(e, t), Nt(void 0);
|
|
3071
3074
|
default:
|
|
3072
|
-
return e.dataType = ut.text, e.text = {},
|
|
3075
|
+
return e.dataType = ut.text, e.text = {}, Nt(void 0);
|
|
3073
3076
|
}
|
|
3074
3077
|
}
|
|
3075
3078
|
function z2(e, t, r, n) {
|
|
@@ -3105,7 +3108,7 @@ function X2(e, t, r, n) {
|
|
|
3105
3108
|
);
|
|
3106
3109
|
return i.isErr() ? i : (e.arrayItems = {
|
|
3107
3110
|
dataItem: a
|
|
3108
|
-
},
|
|
3111
|
+
}, Nt(void 0));
|
|
3109
3112
|
}
|
|
3110
3113
|
function $2(e, t, r, n) {
|
|
3111
3114
|
if (e.dataType = ut.data, t.properties) {
|
|
@@ -3123,18 +3126,18 @@ function $2(e, t, r, n) {
|
|
|
3123
3126
|
e.data = {
|
|
3124
3127
|
items: {}
|
|
3125
3128
|
};
|
|
3126
|
-
return
|
|
3129
|
+
return Nt(void 0);
|
|
3127
3130
|
}
|
|
3128
3131
|
function ew(e, t, r) {
|
|
3129
3132
|
if (!t.types || t.types.length === 0)
|
|
3130
|
-
return e.dataType = ut.text, e.text = {},
|
|
3133
|
+
return e.dataType = ut.text, e.text = {}, Nt(void 0);
|
|
3131
3134
|
const n = t.types.filter((u) => u.value !== "undefined" && u.value !== "null");
|
|
3132
3135
|
if (n.length === 0)
|
|
3133
|
-
return e.dataType = ut.text, e.text = {},
|
|
3136
|
+
return e.dataType = ut.text, e.text = {}, Nt(void 0);
|
|
3134
3137
|
if (n.length <= 2 && n.every(
|
|
3135
3138
|
(u) => u.kind === "literal" && (u.value === !0 || u.value === !1)
|
|
3136
3139
|
))
|
|
3137
|
-
return e.dataType = ut.booleanValue,
|
|
3140
|
+
return e.dataType = ut.booleanValue, Nt(void 0);
|
|
3138
3141
|
if (n.every(
|
|
3139
3142
|
(u) => u.kind === "literal" && typeof u.value == "string"
|
|
3140
3143
|
))
|
|
@@ -3143,9 +3146,9 @@ function ew(e, t, r) {
|
|
|
3143
3146
|
value: String(u.value || ""),
|
|
3144
3147
|
displayName: Es(String(u.value || ""))
|
|
3145
3148
|
})).filter((u) => u.value)
|
|
3146
|
-
},
|
|
3149
|
+
}, Nt(void 0);
|
|
3147
3150
|
const o = n[0];
|
|
3148
|
-
return o ? ph(e, o, r) : (e.dataType = ut.text, e.text = {},
|
|
3151
|
+
return o ? ph(e, o, r) : (e.dataType = ut.text, e.text = {}, Nt(void 0));
|
|
3149
3152
|
}
|
|
3150
3153
|
function tw(e, t) {
|
|
3151
3154
|
const r = t.value, n = t.source;
|
|
@@ -3557,8 +3560,8 @@ function fw() {
|
|
|
3557
3560
|
if (!j.valueDeclaration)
|
|
3558
3561
|
return this.componentsInfoCache.set(le, null), null;
|
|
3559
3562
|
for (var Le = this.extractDefaultPropsFromComponent(j, j.valueDeclaration.getSourceFile()), de = this.getPropsInfo(he, Le), rt = 0, gt = Object.keys(de); rt < gt.length; rt++) {
|
|
3560
|
-
var ct = gt[rt],
|
|
3561
|
-
this.propFilter(
|
|
3563
|
+
var ct = gt[rt], vt = de[ct], pt = { name: ce };
|
|
3564
|
+
this.propFilter(vt, pt) || delete de[ct];
|
|
3562
3565
|
}
|
|
3563
3566
|
be = {
|
|
3564
3567
|
tags: _e,
|
|
@@ -10369,11 +10372,11 @@ var $n = class {
|
|
|
10369
10372
|
constructor(e) {
|
|
10370
10373
|
this.faker = e, iM(this);
|
|
10371
10374
|
}
|
|
10372
|
-
},
|
|
10375
|
+
}, Ht = class extends $n {
|
|
10373
10376
|
constructor(e) {
|
|
10374
10377
|
super(e), this.faker = e;
|
|
10375
10378
|
}
|
|
10376
|
-
}, h1 = ((e) => (e.Narrowbody = "narrowbody", e.Regional = "regional", e.Widebody = "widebody", e))(h1 || {}), oM = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], sM = ["0", "O", "1", "I", "L"], uM = { regional: 20, narrowbody: 35, widebody: 60 }, AM = { regional: ["A", "B", "C", "D"], narrowbody: ["A", "B", "C", "D", "E", "F"], widebody: ["A", "B", "C", "D", "E", "F", "G", "H", "J", "K"] }, lM = class extends
|
|
10379
|
+
}, h1 = ((e) => (e.Narrowbody = "narrowbody", e.Regional = "regional", e.Widebody = "widebody", e))(h1 || {}), oM = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], sM = ["0", "O", "1", "I", "L"], uM = { regional: 20, narrowbody: 35, widebody: 60 }, AM = { regional: ["A", "B", "C", "D"], narrowbody: ["A", "B", "C", "D", "E", "F"], widebody: ["A", "B", "C", "D", "E", "F", "G", "H", "J", "K"] }, lM = class extends Ht {
|
|
10377
10380
|
airport() {
|
|
10378
10381
|
return this.faker.helpers.arrayElement(this.faker.definitions.airline.airport);
|
|
10379
10382
|
}
|
|
@@ -10459,7 +10462,7 @@ function Hn(e, t, r = "rgb", n = "sRGB") {
|
|
|
10459
10462
|
return e;
|
|
10460
10463
|
}
|
|
10461
10464
|
}
|
|
10462
|
-
var dM = class extends
|
|
10465
|
+
var dM = class extends Ht {
|
|
10463
10466
|
human() {
|
|
10464
10467
|
return this.faker.helpers.arrayElement(this.faker.definitions.color.human);
|
|
10465
10468
|
}
|
|
@@ -10525,7 +10528,7 @@ function Og(e, t) {
|
|
|
10525
10528
|
let n = e.helpers.slugify(e.lorem.word());
|
|
10526
10529
|
return Ug(n) ? n : e.string.alpha({ casing: "lower", length: e.number.int({ min: 4, max: 8 }) });
|
|
10527
10530
|
}
|
|
10528
|
-
var FM = class extends
|
|
10531
|
+
var FM = class extends Ht {
|
|
10529
10532
|
email(e = {}) {
|
|
10530
10533
|
let { firstName: t, lastName: r, provider: n = this.faker.helpers.arrayElement(this.faker.definitions.internet.free_email), allowSpecialCharacters: a = !1 } = e, i = this.username({ firstName: t, lastName: r });
|
|
10531
10534
|
if (i = i.replaceAll(/[^A-Za-z0-9._+-]+/g, ""), i = i.substring(0, 50), a) {
|
|
@@ -10634,7 +10637,7 @@ function Ga(e, t, r) {
|
|
|
10634
10637
|
return n ?? e.helpers.arrayElement([a, i]) ?? [];
|
|
10635
10638
|
}
|
|
10636
10639
|
}
|
|
10637
|
-
var QM = class extends
|
|
10640
|
+
var QM = class extends Ht {
|
|
10638
10641
|
firstName(t) {
|
|
10639
10642
|
return this.faker.helpers.arrayElement(Ga(this.faker, t, this.faker.definitions.person.first_name));
|
|
10640
10643
|
}
|
|
@@ -11443,7 +11446,7 @@ function zM(e) {
|
|
|
11443
11446
|
}
|
|
11444
11447
|
return t;
|
|
11445
11448
|
}
|
|
11446
|
-
var jM = class extends
|
|
11449
|
+
var jM = class extends Ht {
|
|
11447
11450
|
dog() {
|
|
11448
11451
|
return this.faker.helpers.arrayElement(this.faker.definitions.animal.dog);
|
|
11449
11452
|
}
|
|
@@ -11492,7 +11495,7 @@ var jM = class extends Ot {
|
|
|
11492
11495
|
petName() {
|
|
11493
11496
|
return this.faker.helpers.arrayElement(this.faker.definitions.animal.pet_name);
|
|
11494
11497
|
}
|
|
11495
|
-
}, ZM = class extends
|
|
11498
|
+
}, ZM = class extends Ht {
|
|
11496
11499
|
author() {
|
|
11497
11500
|
return this.faker.helpers.arrayElement(this.faker.definitions.book.author);
|
|
11498
11501
|
}
|
|
@@ -11521,7 +11524,7 @@ function XM(e) {
|
|
|
11521
11524
|
}
|
|
11522
11525
|
return (10 - t % 10) % 10;
|
|
11523
11526
|
}
|
|
11524
|
-
var $M = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999, 4], [6389999, 3], [6397999, 4], [6399999, 7], [6449999, 3], [6459999, 7], [6479999, 3], [6489999, 7], [6549999, 3], [6559999, 4], [6999999, 3], [8499999, 4], [8999999, 5], [9499999, 6], [9999999, 7]], 1: [[99999, 3], [299999, 2], [349999, 3], [399999, 4], [499999, 3], [699999, 2], [999999, 4], [3979999, 3], [5499999, 4], [6499999, 5], [6799999, 4], [6859999, 5], [7139999, 4], [7169999, 3], [7319999, 4], [7399999, 7], [7749999, 5], [7753999, 7], [7763999, 5], [7764999, 7], [7769999, 5], [7782999, 7], [7899999, 5], [7999999, 4], [8004999, 5], [8049999, 5], [8379999, 5], [8384999, 7], [8671999, 5], [8675999, 4], [8697999, 5], [9159999, 6], [9165059, 7], [9168699, 6], [9169079, 7], [9195999, 6], [9196549, 7], [9729999, 6], [9877999, 4], [9911499, 6], [9911999, 7], [9989899, 6], [9999999, 7]] }, e3 = class extends
|
|
11527
|
+
var $M = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999, 4], [6389999, 3], [6397999, 4], [6399999, 7], [6449999, 3], [6459999, 7], [6479999, 3], [6489999, 7], [6549999, 3], [6559999, 4], [6999999, 3], [8499999, 4], [8999999, 5], [9499999, 6], [9999999, 7]], 1: [[99999, 3], [299999, 2], [349999, 3], [399999, 4], [499999, 3], [699999, 2], [999999, 4], [3979999, 3], [5499999, 4], [6499999, 5], [6799999, 4], [6859999, 5], [7139999, 4], [7169999, 3], [7319999, 4], [7399999, 7], [7749999, 5], [7753999, 7], [7763999, 5], [7764999, 7], [7769999, 5], [7782999, 7], [7899999, 5], [7999999, 4], [8004999, 5], [8049999, 5], [8379999, 5], [8384999, 7], [8671999, 5], [8675999, 4], [8697999, 5], [9159999, 6], [9165059, 7], [9168699, 6], [9169079, 7], [9195999, 6], [9196549, 7], [9729999, 6], [9877999, 4], [9911499, 6], [9911999, 7], [9989899, 6], [9999999, 7]] }, e3 = class extends Ht {
|
|
11525
11528
|
department() {
|
|
11526
11529
|
return this.faker.helpers.arrayElement(this.faker.definitions.commerce.department);
|
|
11527
11530
|
}
|
|
@@ -11570,7 +11573,7 @@ var $M = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999,
|
|
|
11570
11573
|
let r = 11 - t.length, n = this.faker.string.numeric({ length: r, allowLeadingZeros: !0 }), a = `${t}${n}`, i = XM(a);
|
|
11571
11574
|
return `${a}${i}`;
|
|
11572
11575
|
}
|
|
11573
|
-
}, t3 = class extends
|
|
11576
|
+
}, t3 = class extends Ht {
|
|
11574
11577
|
name() {
|
|
11575
11578
|
return this.faker.helpers.fake(this.faker.definitions.company.name_pattern);
|
|
11576
11579
|
}
|
|
@@ -11598,7 +11601,7 @@ var $M = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999,
|
|
|
11598
11601
|
buzzNoun() {
|
|
11599
11602
|
return this.faker.helpers.arrayElement(this.faker.definitions.company.buzz_noun);
|
|
11600
11603
|
}
|
|
11601
|
-
}, r3 = class extends
|
|
11604
|
+
}, r3 = class extends Ht {
|
|
11602
11605
|
column() {
|
|
11603
11606
|
return this.faker.helpers.arrayElement(this.faker.definitions.database.column);
|
|
11604
11607
|
}
|
|
@@ -11624,7 +11627,7 @@ function a3(e) {
|
|
|
11624
11627
|
for (let r = 0; r < e.length; r += 4) t += `${e.substring(r, r + 4)} `;
|
|
11625
11628
|
return t.trimEnd();
|
|
11626
11629
|
}
|
|
11627
|
-
var i3 = class extends
|
|
11630
|
+
var i3 = class extends Ht {
|
|
11628
11631
|
accountNumber(e = {}) {
|
|
11629
11632
|
typeof e == "number" && (e = { length: e });
|
|
11630
11633
|
let { length: t = 8 } = e;
|
|
@@ -11723,7 +11726,7 @@ var i3 = class extends Ot {
|
|
|
11723
11726
|
function Gg(e) {
|
|
11724
11727
|
return e.split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" ");
|
|
11725
11728
|
}
|
|
11726
|
-
var o3 = class extends
|
|
11729
|
+
var o3 = class extends Ht {
|
|
11727
11730
|
adjective() {
|
|
11728
11731
|
return this.faker.helpers.arrayElement(this.faker.definitions.food.adjective);
|
|
11729
11732
|
}
|
|
@@ -11751,7 +11754,7 @@ var o3 = class extends Ot {
|
|
|
11751
11754
|
vegetable() {
|
|
11752
11755
|
return this.faker.helpers.arrayElement(this.faker.definitions.food.vegetable);
|
|
11753
11756
|
}
|
|
11754
|
-
}, s3 = " ", u3 = class extends
|
|
11757
|
+
}, s3 = " ", u3 = class extends Ht {
|
|
11755
11758
|
branch() {
|
|
11756
11759
|
let e = this.faker.hacker.noun().replace(" ", "-"), t = this.faker.hacker.verb().replace(" ", "-");
|
|
11757
11760
|
return `${e}-${t}`;
|
|
@@ -11777,7 +11780,7 @@ var o3 = class extends Ot {
|
|
|
11777
11780
|
let { length: t = 40 } = e;
|
|
11778
11781
|
return this.faker.string.hexadecimal({ length: t, casing: "lower", prefix: "" });
|
|
11779
11782
|
}
|
|
11780
|
-
}, A3 = class extends
|
|
11783
|
+
}, A3 = class extends Ht {
|
|
11781
11784
|
abbreviation() {
|
|
11782
11785
|
return this.faker.helpers.arrayElement(this.faker.definitions.hacker.abbreviation);
|
|
11783
11786
|
}
|
|
@@ -11802,7 +11805,7 @@ function l3(e) {
|
|
|
11802
11805
|
let { deprecated: t, since: r, until: n, proposed: a } = e, i = `[@faker-js/faker]: ${t} is deprecated`;
|
|
11803
11806
|
r && (i += ` since v${r}`), n && (i += ` and will be removed in v${n}`), a && (i += `. Please use ${a} instead`), console.warn(`${i}.`);
|
|
11804
11807
|
}
|
|
11805
|
-
var c3 = class extends
|
|
11808
|
+
var c3 = class extends Ht {
|
|
11806
11809
|
avatar() {
|
|
11807
11810
|
return this.faker.helpers.arrayElement([this.personPortrait, this.avatarGitHub])();
|
|
11808
11811
|
}
|
|
@@ -11859,7 +11862,7 @@ function Fn(e) {
|
|
|
11859
11862
|
} else if (n === "shortest" || n === "longest") return su[n](t);
|
|
11860
11863
|
return [...t];
|
|
11861
11864
|
}
|
|
11862
|
-
var d3 = class extends
|
|
11865
|
+
var d3 = class extends Ht {
|
|
11863
11866
|
word(e = {}) {
|
|
11864
11867
|
return typeof e == "number" && (e = { length: e }), this.faker.helpers.arrayElement(Fn({ ...e, wordList: this.faker.definitions.lorem.word }));
|
|
11865
11868
|
}
|
|
@@ -11892,7 +11895,7 @@ var d3 = class extends Ot {
|
|
|
11892
11895
|
return this.sentences(e, `
|
|
11893
11896
|
`);
|
|
11894
11897
|
}
|
|
11895
|
-
}, g3 = class extends
|
|
11898
|
+
}, g3 = class extends Ht {
|
|
11896
11899
|
album() {
|
|
11897
11900
|
return this.faker.helpers.arrayElement(this.faker.definitions.music.album);
|
|
11898
11901
|
}
|
|
@@ -11905,7 +11908,7 @@ var d3 = class extends Ot {
|
|
|
11905
11908
|
songName() {
|
|
11906
11909
|
return this.faker.helpers.arrayElement(this.faker.definitions.music.song_name);
|
|
11907
11910
|
}
|
|
11908
|
-
}, f3 = class extends
|
|
11911
|
+
}, f3 = class extends Ht {
|
|
11909
11912
|
number(e = {}) {
|
|
11910
11913
|
let { style: t = "human" } = e, r = this.faker.definitions.phone_number.format[t];
|
|
11911
11914
|
if (!r) throw new Error(`No definitions for ${t} in this locale`);
|
|
@@ -11915,14 +11918,14 @@ var d3 = class extends Ot {
|
|
|
11915
11918
|
imei() {
|
|
11916
11919
|
return this.faker.helpers.replaceCreditCardSymbols("##-######-######-L", "#");
|
|
11917
11920
|
}
|
|
11918
|
-
}, m3 = class extends
|
|
11921
|
+
}, m3 = class extends Ht {
|
|
11919
11922
|
chemicalElement() {
|
|
11920
11923
|
return this.faker.helpers.arrayElement(this.faker.definitions.science.chemical_element);
|
|
11921
11924
|
}
|
|
11922
11925
|
unit() {
|
|
11923
11926
|
return this.faker.helpers.arrayElement(this.faker.definitions.science.unit);
|
|
11924
11927
|
}
|
|
11925
|
-
}, p3 = ["video", "audio", "image", "text", "application"], E3 = ["application/pdf", "audio/mpeg", "audio/wav", "image/png", "image/jpeg", "image/gif", "video/mp4", "video/mpeg", "text/html"], C3 = ["en", "wl", "ww"], Yg = { index: "o", slot: "s", mac: "x", pci: "p" }, B3 = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], b3 = class extends
|
|
11928
|
+
}, p3 = ["video", "audio", "image", "text", "application"], E3 = ["application/pdf", "audio/mpeg", "audio/wav", "image/png", "image/jpeg", "image/gif", "video/mp4", "video/mpeg", "text/html"], C3 = ["en", "wl", "ww"], Yg = { index: "o", slot: "s", mac: "x", pci: "p" }, B3 = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], b3 = class extends Ht {
|
|
11926
11929
|
fileName(e = {}) {
|
|
11927
11930
|
let { extensionCount: t = 1 } = e, r = this.faker.word.words().toLowerCase().replaceAll(/\W/g, "_"), n = this.faker.helpers.multiple(() => this.fileExt(), { count: t }).join(".");
|
|
11928
11931
|
return n.length === 0 ? r : `${r}.${n}`;
|
|
@@ -11988,7 +11991,7 @@ var d3 = class extends Ot {
|
|
|
11988
11991
|
let m = ["@annually", "@daily", "@hourly", "@monthly", "@reboot", "@weekly", "@yearly"];
|
|
11989
11992
|
return !r || this.faker.datatype.boolean() ? f : this.faker.helpers.arrayElement(m);
|
|
11990
11993
|
}
|
|
11991
|
-
}, y3 = class extends
|
|
11994
|
+
}, y3 = class extends Ht {
|
|
11992
11995
|
vehicle() {
|
|
11993
11996
|
return `${this.manufacturer()} ${this.model()}`;
|
|
11994
11997
|
}
|
|
@@ -12017,7 +12020,7 @@ var d3 = class extends Ot {
|
|
|
12017
12020
|
bicycle() {
|
|
12018
12021
|
return this.faker.helpers.arrayElement(this.faker.definitions.vehicle.bicycle_type);
|
|
12019
12022
|
}
|
|
12020
|
-
}, I3 = class extends
|
|
12023
|
+
}, I3 = class extends Ht {
|
|
12021
12024
|
adjective(e = {}) {
|
|
12022
12025
|
return typeof e == "number" && (e = { length: e }), this.faker.helpers.arrayElement(Fn({ ...e, wordList: this.faker.definitions.word.adjective }));
|
|
12023
12026
|
}
|
|
@@ -12645,7 +12648,7 @@ function UL() {
|
|
|
12645
12648
|
state: { stores: n }
|
|
12646
12649
|
};
|
|
12647
12650
|
}
|
|
12648
|
-
const Dn = 0, Se = 1, Ve = 2,
|
|
12651
|
+
const Dn = 0, Se = 1, Ve = 2, Yt = 3, Bt = 4, _r = 5, Fs = 6, rr = 7, cr = 8, et = 9, We = 10, St = 11, $e = 12, Dt = 13, Ri = 14, hr = 15, nr = 16, ar = 17, mr = 18, Fr = 19, Tr = 20, at = 21, Ge = 22, Zt = 23, Ir = 24, er = 25, OL = 0;
|
|
12649
12652
|
function $t(e) {
|
|
12650
12653
|
return e >= 48 && e <= 57;
|
|
12651
12654
|
}
|
|
@@ -13183,7 +13186,7 @@ function Ds(e, t) {
|
|
|
13183
13186
|
break;
|
|
13184
13187
|
// U+0040 COMMERCIAL AT (@)
|
|
13185
13188
|
case 64:
|
|
13186
|
-
wo(r(s + 1), r(s + 2), r(s + 3)) ? (A =
|
|
13189
|
+
wo(r(s + 1), r(s + 2), r(s + 3)) ? (A = Yt, s = ro(e, s + 1)) : (A = et, s++);
|
|
13187
13190
|
break;
|
|
13188
13191
|
// U+005B LEFT SQUARE BRACKET ([)
|
|
13189
13192
|
case 91:
|
|
@@ -14190,15 +14193,15 @@ const l8 = 43, c8 = 45, Bu = (e, t) => (e === et && (e = t), typeof e == "string
|
|
|
14190
14193
|
[Se, $e],
|
|
14191
14194
|
[Se, hr],
|
|
14192
14195
|
[Se, at],
|
|
14193
|
-
[
|
|
14194
|
-
[
|
|
14195
|
-
[
|
|
14196
|
-
[
|
|
14197
|
-
[
|
|
14198
|
-
[
|
|
14199
|
-
[
|
|
14200
|
-
[
|
|
14201
|
-
[
|
|
14196
|
+
[Yt, Se],
|
|
14197
|
+
[Yt, Ve],
|
|
14198
|
+
[Yt, rr],
|
|
14199
|
+
[Yt, cr],
|
|
14200
|
+
[Yt, "-"],
|
|
14201
|
+
[Yt, We],
|
|
14202
|
+
[Yt, St],
|
|
14203
|
+
[Yt, $e],
|
|
14204
|
+
[Yt, hr],
|
|
14202
14205
|
[Bt, Se],
|
|
14203
14206
|
[Bt, Ve],
|
|
14204
14207
|
[Bt, rr],
|
|
@@ -14265,9 +14268,9 @@ const l8 = 43, c8 = 45, Bu = (e, t) => (e === et && (e = t), typeof e == "string
|
|
|
14265
14268
|
[Se, Bt],
|
|
14266
14269
|
[$e, Bt],
|
|
14267
14270
|
[Bt, Bt],
|
|
14268
|
-
[
|
|
14269
|
-
[
|
|
14270
|
-
[
|
|
14271
|
+
[Yt, at],
|
|
14272
|
+
[Yt, _r],
|
|
14273
|
+
[Yt, nr],
|
|
14271
14274
|
[St, St],
|
|
14272
14275
|
[St, $e],
|
|
14273
14276
|
[St, Ve],
|
|
@@ -15060,7 +15063,7 @@ function q8(e, t, r) {
|
|
|
15060
15063
|
const z8 = {
|
|
15061
15064
|
"ident-token": Ct(Se),
|
|
15062
15065
|
"function-token": Ct(Ve),
|
|
15063
|
-
"at-keyword-token": Ct(
|
|
15066
|
+
"at-keyword-token": Ct(Yt),
|
|
15064
15067
|
"hash-token": Ct(Bt),
|
|
15065
15068
|
"string-token": Ct(_r),
|
|
15066
15069
|
"bad-string-token": Ct(Fs),
|
|
@@ -18282,7 +18285,7 @@ function u6() {
|
|
|
18282
18285
|
for (let e = 1, t; t = this.lookupType(e); e++) {
|
|
18283
18286
|
if (t === Ir)
|
|
18284
18287
|
return !0;
|
|
18285
|
-
if (t === Zt || t ===
|
|
18288
|
+
if (t === Zt || t === Yt)
|
|
18286
18289
|
return !1;
|
|
18287
18290
|
}
|
|
18288
18291
|
return !1;
|
|
@@ -18295,7 +18298,7 @@ const A6 = "Atrule", l6 = "atrule", c6 = {
|
|
|
18295
18298
|
function lB(e = !1) {
|
|
18296
18299
|
const t = this.tokenStart;
|
|
18297
18300
|
let r, n, a = null, i = null;
|
|
18298
|
-
switch (this.eat(
|
|
18301
|
+
switch (this.eat(Yt), r = this.substrToCursor(t + 1), n = r.toLowerCase(), this.skipSC(), this.eof === !1 && this.tokenType !== Zt && this.tokenType !== ar && (this.parseAtrulePrelude ? a = this.parseWithFallback(this.AtrulePrelude.bind(this, r, e), xf) : a = xf.call(this, this.tokenIndex), this.skipSC()), this.tokenType) {
|
|
18299
18302
|
case ar:
|
|
18300
18303
|
this.next();
|
|
18301
18304
|
break;
|
|
@@ -18312,7 +18315,7 @@ function lB(e = !1) {
|
|
|
18312
18315
|
};
|
|
18313
18316
|
}
|
|
18314
18317
|
function h6(e) {
|
|
18315
|
-
this.token(
|
|
18318
|
+
this.token(Yt, "@" + e.name), e.prelude !== null && this.node(e.prelude), e.block ? this.node(e.block) : this.token(ar, ";");
|
|
18316
18319
|
}
|
|
18317
18320
|
const d6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18318
18321
|
__proto__: null,
|
|
@@ -18425,7 +18428,7 @@ function fB(e) {
|
|
|
18425
18428
|
case er:
|
|
18426
18429
|
this.next();
|
|
18427
18430
|
break;
|
|
18428
|
-
case
|
|
18431
|
+
case Yt:
|
|
18429
18432
|
n.push(this.parseWithFallback(this.Atrule.bind(this, e), gB));
|
|
18430
18433
|
break;
|
|
18431
18434
|
default:
|
|
@@ -18753,7 +18756,7 @@ function QB() {
|
|
|
18753
18756
|
case ar:
|
|
18754
18757
|
this.next();
|
|
18755
18758
|
break;
|
|
18756
|
-
case
|
|
18759
|
+
case Yt:
|
|
18757
18760
|
e.push(this.parseWithFallback(this.Atrule.bind(this, !0), Tu));
|
|
18758
18761
|
break;
|
|
18759
18762
|
default:
|
|
@@ -19637,7 +19640,7 @@ function rb() {
|
|
|
19637
19640
|
// CSS Syntax Module Level 3
|
|
19638
19641
|
// §2.2 Error handling
|
|
19639
19642
|
// At the "top level" of a stylesheet, an <at-keyword-token> starts an at-rule.
|
|
19640
|
-
case
|
|
19643
|
+
case Yt:
|
|
19641
19644
|
r = this.parseWithFallback(this.Atrule, qf);
|
|
19642
19645
|
break;
|
|
19643
19646
|
// Anything else starts a qualified rule ...
|
|
@@ -20744,7 +20747,7 @@ function qc(e) {
|
|
|
20744
20747
|
function Rn(e) {
|
|
20745
20748
|
return e.type === At.Root;
|
|
20746
20749
|
}
|
|
20747
|
-
function
|
|
20750
|
+
function Ot(e) {
|
|
20748
20751
|
return Object.prototype.hasOwnProperty.call(e, "children");
|
|
20749
20752
|
}
|
|
20750
20753
|
function Bi(e, t = !1) {
|
|
@@ -21104,20 +21107,20 @@ function yb(e, t) {
|
|
|
21104
21107
|
return vs(e, t);
|
|
21105
21108
|
}
|
|
21106
21109
|
function lP(e, t) {
|
|
21107
|
-
return
|
|
21110
|
+
return Ot(e) ? e.children.map((r) => yb(r, t)).join("") : "";
|
|
21108
21111
|
}
|
|
21109
21112
|
function vo(e) {
|
|
21110
21113
|
return Array.isArray(e) ? e.map(vo).join("") : Ye(e) ? e.name === "br" ? `
|
|
21111
21114
|
` : vo(e.children) : Ns(e) ? vo(e.children) : Xr(e) ? e.data : "";
|
|
21112
21115
|
}
|
|
21113
21116
|
function Sa(e) {
|
|
21114
|
-
return Array.isArray(e) ? e.map(Sa).join("") :
|
|
21117
|
+
return Array.isArray(e) ? e.map(Sa).join("") : Ot(e) && !Rs(e) ? Sa(e.children) : Xr(e) ? e.data : "";
|
|
21115
21118
|
}
|
|
21116
21119
|
function rs(e) {
|
|
21117
|
-
return Array.isArray(e) ? e.map(rs).join("") :
|
|
21120
|
+
return Array.isArray(e) ? e.map(rs).join("") : Ot(e) && (e.type === At.Tag || Ns(e)) ? rs(e.children) : Xr(e) ? e.data : "";
|
|
21118
21121
|
}
|
|
21119
21122
|
function Ms(e) {
|
|
21120
|
-
return
|
|
21123
|
+
return Ot(e) ? e.children : [];
|
|
21121
21124
|
}
|
|
21122
21125
|
function Ib(e) {
|
|
21123
21126
|
return e.parent || null;
|
|
@@ -21222,7 +21225,7 @@ function Zh(e, t, r, n) {
|
|
|
21222
21225
|
const u = i[0][o[0]++];
|
|
21223
21226
|
if (e(u) && (a.push(u), --n <= 0))
|
|
21224
21227
|
return a;
|
|
21225
|
-
r &&
|
|
21228
|
+
r && Ot(u) && u.children.length > 0 && (o.unshift(0), i.unshift(u.children));
|
|
21226
21229
|
}
|
|
21227
21230
|
}
|
|
21228
21231
|
function CP(e, t) {
|
|
@@ -21234,7 +21237,7 @@ function Xh(e, t, r = !0) {
|
|
|
21234
21237
|
const i = n[a];
|
|
21235
21238
|
if (Ye(i) && e(i))
|
|
21236
21239
|
return i;
|
|
21237
|
-
if (r &&
|
|
21240
|
+
if (r && Ot(i) && i.children.length > 0) {
|
|
21238
21241
|
const o = Xh(e, i.children, !0);
|
|
21239
21242
|
if (o)
|
|
21240
21243
|
return o;
|
|
@@ -21243,7 +21246,7 @@ function Xh(e, t, r = !0) {
|
|
|
21243
21246
|
return null;
|
|
21244
21247
|
}
|
|
21245
21248
|
function Qb(e, t) {
|
|
21246
|
-
return (Array.isArray(t) ? t : [t]).some((r) => Ye(r) && e(r) ||
|
|
21249
|
+
return (Array.isArray(t) ? t : [t]).some((r) => Ye(r) && e(r) || Ot(r) && Qb(e, r.children));
|
|
21247
21250
|
}
|
|
21248
21251
|
function BP(e, t) {
|
|
21249
21252
|
const r = [], n = [Array.isArray(t) ? t : [t]], a = [0];
|
|
@@ -21255,7 +21258,7 @@ function BP(e, t) {
|
|
|
21255
21258
|
continue;
|
|
21256
21259
|
}
|
|
21257
21260
|
const i = n[0][a[0]++];
|
|
21258
|
-
Ye(i) && e(i) && r.push(i),
|
|
21261
|
+
Ye(i) && e(i) && r.push(i), Ot(i) && i.children.length > 0 && (a.unshift(0), n.unshift(i.children));
|
|
21259
21262
|
}
|
|
21260
21263
|
}
|
|
21261
21264
|
const ns = {
|
|
@@ -21326,10 +21329,10 @@ function Db(e, t) {
|
|
|
21326
21329
|
const r = [], n = [];
|
|
21327
21330
|
if (e === t)
|
|
21328
21331
|
return 0;
|
|
21329
|
-
let a =
|
|
21332
|
+
let a = Ot(e) ? e : e.parent;
|
|
21330
21333
|
for (; a; )
|
|
21331
21334
|
r.unshift(a), a = a.parent;
|
|
21332
|
-
for (a =
|
|
21335
|
+
for (a = Ot(t) ? t : t.parent; a; )
|
|
21333
21336
|
n.unshift(a), a = a.parent;
|
|
21334
21337
|
const i = Math.min(r.length, n.length);
|
|
21335
21338
|
let o = 0;
|
|
@@ -21453,7 +21456,7 @@ const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21453
21456
|
getSiblings: Fb,
|
|
21454
21457
|
getText: vo,
|
|
21455
21458
|
hasAttrib: hP,
|
|
21456
|
-
hasChildren:
|
|
21459
|
+
hasChildren: Ot,
|
|
21457
21460
|
innerText: rs,
|
|
21458
21461
|
isCDATA: Ns,
|
|
21459
21462
|
isComment: Rs,
|
|
@@ -21918,7 +21921,7 @@ var jr;
|
|
|
21918
21921
|
(function(e) {
|
|
21919
21922
|
e[e.NoValue = 0] = "NoValue", e[e.Unquoted = 1] = "Unquoted", e[e.Single = 2] = "Single", e[e.Double = 3] = "Double";
|
|
21920
21923
|
})(jr || (jr = {}));
|
|
21921
|
-
const
|
|
21924
|
+
const Gt = {
|
|
21922
21925
|
Cdata: new Uint8Array([67, 68, 65, 84, 65, 91]),
|
|
21923
21926
|
// CDATA[
|
|
21924
21927
|
CdataEnd: new Uint8Array([93, 93, 62]),
|
|
@@ -21999,10 +22002,10 @@ class e_ {
|
|
|
21999
22002
|
}
|
|
22000
22003
|
this.sequenceIndex = 0;
|
|
22001
22004
|
}
|
|
22002
|
-
(t | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence ===
|
|
22005
|
+
(t | 32) === this.currentSequence[this.sequenceIndex] ? this.sequenceIndex += 1 : this.sequenceIndex === 0 ? this.currentSequence === Gt.TitleEnd ? this.decodeEntities && t === Ue.Amp && this.startEntity() : this.fastForwardTo(Ue.Lt) && (this.sequenceIndex = 1) : this.sequenceIndex = +(t === Ue.Lt);
|
|
22003
22006
|
}
|
|
22004
22007
|
stateCDATASequence(t) {
|
|
22005
|
-
t ===
|
|
22008
|
+
t === Gt.Cdata[this.sequenceIndex] ? ++this.sequenceIndex === Gt.Cdata.length && (this.state = Ce.InCommentLike, this.currentSequence = Gt.CdataEnd, this.sequenceIndex = 0, this.sectionStart = this.index + 1) : (this.sequenceIndex = 0, this.state = Ce.InDeclaration, this.stateInDeclaration(t));
|
|
22006
22009
|
}
|
|
22007
22010
|
/**
|
|
22008
22011
|
* When we wait for one specific character, we can speed things up
|
|
@@ -22025,7 +22028,7 @@ class e_ {
|
|
|
22025
22028
|
* - All characters but the start character of the sequence can be skipped.
|
|
22026
22029
|
*/
|
|
22027
22030
|
stateInCommentLike(t) {
|
|
22028
|
-
t === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence ===
|
|
22031
|
+
t === this.currentSequence[this.sequenceIndex] ? ++this.sequenceIndex === this.currentSequence.length && (this.currentSequence === Gt.CdataEnd ? this.cbs.oncdata(this.sectionStart, this.index, 2) : this.cbs.oncomment(this.sectionStart, this.index, 2), this.sequenceIndex = 0, this.sectionStart = this.index + 1, this.state = Ce.Text) : this.sequenceIndex === 0 ? this.fastForwardTo(this.currentSequence[0]) && (this.sequenceIndex = 1) : t !== this.currentSequence[this.sequenceIndex - 1] && (this.sequenceIndex = 0);
|
|
22029
22032
|
}
|
|
22030
22033
|
/**
|
|
22031
22034
|
* HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name.
|
|
@@ -22046,7 +22049,7 @@ class e_ {
|
|
|
22046
22049
|
this.state = Ce.InProcessingInstruction, this.sectionStart = this.index + 1;
|
|
22047
22050
|
else if (this.isTagStartChar(t)) {
|
|
22048
22051
|
const r = t | 32;
|
|
22049
|
-
this.sectionStart = this.index, this.xmlMode ? this.state = Ce.InTagName : r ===
|
|
22052
|
+
this.sectionStart = this.index, this.xmlMode ? this.state = Ce.InTagName : r === Gt.ScriptEnd[2] ? this.state = Ce.BeforeSpecialS : r === Gt.TitleEnd[2] || r === Gt.XmpEnd[2] ? this.state = Ce.BeforeSpecialT : this.state = Ce.InTagName;
|
|
22050
22053
|
} else t === Ue.Slash ? this.state = Ce.BeforeClosingTagName : (this.state = Ce.Text, this.stateText(t));
|
|
22051
22054
|
}
|
|
22052
22055
|
stateInTagName(t) {
|
|
@@ -22098,27 +22101,27 @@ class e_ {
|
|
|
22098
22101
|
(t === Ue.Gt || this.fastForwardTo(Ue.Gt)) && (this.cbs.onprocessinginstruction(this.sectionStart, this.index), this.state = Ce.Text, this.sectionStart = this.index + 1);
|
|
22099
22102
|
}
|
|
22100
22103
|
stateBeforeComment(t) {
|
|
22101
|
-
t === Ue.Dash ? (this.state = Ce.InCommentLike, this.currentSequence =
|
|
22104
|
+
t === Ue.Dash ? (this.state = Ce.InCommentLike, this.currentSequence = Gt.CommentEnd, this.sequenceIndex = 2, this.sectionStart = this.index + 1) : this.state = Ce.InDeclaration;
|
|
22102
22105
|
}
|
|
22103
22106
|
stateInSpecialComment(t) {
|
|
22104
22107
|
(t === Ue.Gt || this.fastForwardTo(Ue.Gt)) && (this.cbs.oncomment(this.sectionStart, this.index, 0), this.state = Ce.Text, this.sectionStart = this.index + 1);
|
|
22105
22108
|
}
|
|
22106
22109
|
stateBeforeSpecialS(t) {
|
|
22107
22110
|
const r = t | 32;
|
|
22108
|
-
r ===
|
|
22111
|
+
r === Gt.ScriptEnd[3] ? this.startSpecial(Gt.ScriptEnd, 4) : r === Gt.StyleEnd[3] ? this.startSpecial(Gt.StyleEnd, 4) : (this.state = Ce.InTagName, this.stateInTagName(t));
|
|
22109
22112
|
}
|
|
22110
22113
|
stateBeforeSpecialT(t) {
|
|
22111
22114
|
switch (t | 32) {
|
|
22112
|
-
case
|
|
22113
|
-
this.startSpecial(
|
|
22115
|
+
case Gt.TitleEnd[3]: {
|
|
22116
|
+
this.startSpecial(Gt.TitleEnd, 4);
|
|
22114
22117
|
break;
|
|
22115
22118
|
}
|
|
22116
|
-
case
|
|
22117
|
-
this.startSpecial(
|
|
22119
|
+
case Gt.TextareaEnd[3]: {
|
|
22120
|
+
this.startSpecial(Gt.TextareaEnd, 4);
|
|
22118
22121
|
break;
|
|
22119
22122
|
}
|
|
22120
|
-
case
|
|
22121
|
-
this.startSpecial(
|
|
22123
|
+
case Gt.XmpEnd[3]: {
|
|
22124
|
+
this.startSpecial(Gt.XmpEnd, 4);
|
|
22122
22125
|
break;
|
|
22123
22126
|
}
|
|
22124
22127
|
default:
|
|
@@ -22273,7 +22276,7 @@ class e_ {
|
|
|
22273
22276
|
/** Handle any trailing data. */
|
|
22274
22277
|
handleTrailingData() {
|
|
22275
22278
|
const t = this.buffer.length + this.offset;
|
|
22276
|
-
this.sectionStart >= t || (this.state === Ce.InCommentLike ? this.currentSequence ===
|
|
22279
|
+
this.sectionStart >= t || (this.state === Ce.InCommentLike ? this.currentSequence === Gt.CdataEnd ? this.cbs.oncdata(this.sectionStart, t, 0) : this.cbs.oncomment(this.sectionStart, t, 0) : this.state === Ce.InTagName || this.state === Ce.BeforeAttributeName || this.state === Ce.BeforeAttributeValue || this.state === Ce.AfterAttributeName || this.state === Ce.InAttributeName || this.state === Ce.InAttributeValueSq || this.state === Ce.InAttributeValueDq || this.state === Ce.InAttributeValueNq || this.state === Ce.InClosingTagName || this.cbs.ontext(this.sectionStart, t));
|
|
22277
22280
|
}
|
|
22278
22281
|
emitCodePoint(t, r) {
|
|
22279
22282
|
this.baseState !== Ce.Text && this.baseState !== Ce.InSpecialTag ? (this.sectionStart < this.entityStart && this.cbs.onattribdata(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + r, this.index = this.sectionStart - 1, this.cbs.onattribentity(t)) : (this.sectionStart < this.entityStart && this.cbs.ontext(this.sectionStart, this.entityStart), this.sectionStart = this.entityStart + r, this.index = this.sectionStart - 1, this.cbs.ontextentity(t, this.sectionStart));
|
|
@@ -24110,7 +24113,7 @@ const iG = id((e) => zh(e)), oG = Li((e) => {
|
|
|
24110
24113
|
return t;
|
|
24111
24114
|
}, Na), lG = od((e) => jh(e), Na), cG = Li((e) => Fb(e).filter((t) => Ye(t) && t !== e), Ta), hG = Li((e) => Ms(e).filter(Ye), Na);
|
|
24112
24115
|
function dG() {
|
|
24113
|
-
const e = this.toArray().reduce((t, r) =>
|
|
24116
|
+
const e = this.toArray().reduce((t, r) => Ot(r) ? t.concat(r.children) : t, []);
|
|
24114
24117
|
return this._make(e);
|
|
24115
24118
|
}
|
|
24116
24119
|
function gG(e) {
|
|
@@ -24279,7 +24282,7 @@ function Xb(e) {
|
|
|
24279
24282
|
return function(...t) {
|
|
24280
24283
|
const r = this.length - 1;
|
|
24281
24284
|
return wt(this, (n, a) => {
|
|
24282
|
-
if (!
|
|
24285
|
+
if (!Ot(n))
|
|
24283
24286
|
return;
|
|
24284
24287
|
const i = typeof t[0] == "function" ? t[0].call(n, a, this._render(n.children)) : t, o = this._makeDomArray(i, a < r);
|
|
24285
24288
|
e(o, n.children, n);
|
|
@@ -24319,7 +24322,7 @@ function $b(e) {
|
|
|
24319
24322
|
const r = this.length - 1, n = this.parents().last();
|
|
24320
24323
|
for (let a = 0; a < this.length; a++) {
|
|
24321
24324
|
const i = this[a], o = typeof t == "function" ? t.call(i, a, i) : typeof t == "string" && !zc(t) ? n.find(t).clone() : t, [u] = this._makeDomArray(o, a < r);
|
|
24322
|
-
if (!u || !
|
|
24325
|
+
if (!u || !Ot(u))
|
|
24323
24326
|
continue;
|
|
24324
24327
|
let l = u, s = 0;
|
|
24325
24328
|
for (; s < l.children.length; ) {
|
|
@@ -24338,7 +24341,7 @@ const UG = $b((e, t, r) => {
|
|
|
24338
24341
|
const a = n.children, i = a.indexOf(e);
|
|
24339
24342
|
Zn([e], t), vn(a, i, 0, r, n);
|
|
24340
24343
|
}), OG = $b((e, t, r) => {
|
|
24341
|
-
|
|
24344
|
+
Ot(e) && (Zn(e.children, t), Zn(r, e));
|
|
24342
24345
|
});
|
|
24343
24346
|
function HG(e) {
|
|
24344
24347
|
return this.parent(e).not("body").each((t, r) => {
|
|
@@ -24364,7 +24367,7 @@ function PG(e) {
|
|
|
24364
24367
|
function _G(...e) {
|
|
24365
24368
|
const t = this.length - 1;
|
|
24366
24369
|
return wt(this, (r, n) => {
|
|
24367
|
-
if (!
|
|
24370
|
+
if (!Ot(r) || !r.parent)
|
|
24368
24371
|
return;
|
|
24369
24372
|
const a = r.parent.children, i = a.indexOf(r);
|
|
24370
24373
|
if (i === -1)
|
|
@@ -24388,7 +24391,7 @@ function GG(e) {
|
|
|
24388
24391
|
function YG(...e) {
|
|
24389
24392
|
const t = this.length - 1;
|
|
24390
24393
|
return wt(this, (r, n) => {
|
|
24391
|
-
if (!
|
|
24394
|
+
if (!Ot(r) || !r.parent)
|
|
24392
24395
|
return;
|
|
24393
24396
|
const a = r.parent.children, i = a.indexOf(r);
|
|
24394
24397
|
if (i === -1)
|
|
@@ -24428,7 +24431,7 @@ function VG(e) {
|
|
|
24428
24431
|
}
|
|
24429
24432
|
function KG() {
|
|
24430
24433
|
return wt(this, (e) => {
|
|
24431
|
-
if (
|
|
24434
|
+
if (Ot(e)) {
|
|
24432
24435
|
for (const t of e.children)
|
|
24433
24436
|
t.next = t.prev = t.parent = null;
|
|
24434
24437
|
e.children.length = 0;
|
|
@@ -24438,10 +24441,10 @@ function KG() {
|
|
|
24438
24441
|
function qG(e) {
|
|
24439
24442
|
if (e === void 0) {
|
|
24440
24443
|
const t = this[0];
|
|
24441
|
-
return !t || !
|
|
24444
|
+
return !t || !Ot(t) ? null : this._render(t.children);
|
|
24442
24445
|
}
|
|
24443
24446
|
return wt(this, (t) => {
|
|
24444
|
-
if (!
|
|
24447
|
+
if (!Ot(t))
|
|
24445
24448
|
return;
|
|
24446
24449
|
for (const n of t.children)
|
|
24447
24450
|
n.next = n.prev = n.parent = null;
|
|
@@ -24454,7 +24457,7 @@ function zG() {
|
|
|
24454
24457
|
}
|
|
24455
24458
|
function jG(e) {
|
|
24456
24459
|
return e === void 0 ? bi(this) : typeof e == "function" ? wt(this, (t, r) => this._make(t).text(e.call(t, r, bi([t])))) : wt(this, (t) => {
|
|
24457
|
-
if (!
|
|
24460
|
+
if (!Ot(t))
|
|
24458
24461
|
return;
|
|
24459
24462
|
for (const n of t.children)
|
|
24460
24463
|
n.next = n.prev = n.parent = null;
|
|
@@ -32531,7 +32534,7 @@ function Ke() {
|
|
|
32531
32534
|
size: V[3] ? parseInt(V[3]) : null
|
|
32532
32535
|
} : null;
|
|
32533
32536
|
}
|
|
32534
|
-
function
|
|
32537
|
+
function vt(R, V, ne) {
|
|
32535
32538
|
return (R[n] ??= []).push([V, ne]), R.on(V, ne), R;
|
|
32536
32539
|
}
|
|
32537
32540
|
function pt(R) {
|
|
@@ -32542,7 +32545,7 @@ function Ke() {
|
|
|
32542
32545
|
}
|
|
32543
32546
|
return R;
|
|
32544
32547
|
}
|
|
32545
|
-
function
|
|
32548
|
+
function Pt(R, V, ne) {
|
|
32546
32549
|
try {
|
|
32547
32550
|
V.onError(ne), e(V.aborted);
|
|
32548
32551
|
} catch (ye) {
|
|
@@ -32555,7 +32558,7 @@ function Ke() {
|
|
|
32555
32558
|
let ne = null, ye = null;
|
|
32556
32559
|
const we = A.setFastTimeout(() => {
|
|
32557
32560
|
ne = setImmediate(() => {
|
|
32558
|
-
ye = setImmediate(() =>
|
|
32561
|
+
ye = setImmediate(() => _t(R.deref(), V));
|
|
32559
32562
|
});
|
|
32560
32563
|
}, V.timeout);
|
|
32561
32564
|
return () => {
|
|
@@ -32567,20 +32570,20 @@ function Ke() {
|
|
|
32567
32570
|
let ne = null;
|
|
32568
32571
|
const ye = A.setFastTimeout(() => {
|
|
32569
32572
|
ne = setImmediate(() => {
|
|
32570
|
-
|
|
32573
|
+
_t(R.deref(), V);
|
|
32571
32574
|
});
|
|
32572
32575
|
}, V.timeout);
|
|
32573
32576
|
return () => {
|
|
32574
32577
|
A.clearFastTimeout(ye), clearImmediate(ne);
|
|
32575
32578
|
};
|
|
32576
32579
|
};
|
|
32577
|
-
function
|
|
32580
|
+
function _t(R, V) {
|
|
32578
32581
|
if (R == null)
|
|
32579
32582
|
return;
|
|
32580
32583
|
let ne = "Connect Timeout Error";
|
|
32581
32584
|
Array.isArray(R.autoSelectFamilyAttemptedAddresses) ? ne += ` (attempted addresses: ${R.autoSelectFamilyAttemptedAddresses.join(", ")},` : ne += ` (attempted address: ${V.hostname}:${V.port},`, ne += ` timeout: ${V.timeout}ms)`, W(R, new c(ne));
|
|
32582
32585
|
}
|
|
32583
|
-
function
|
|
32586
|
+
function Mt(R) {
|
|
32584
32587
|
if (R[0] === "h" && R[1] === "t" && R[2] === "t" && R[3] === "p")
|
|
32585
32588
|
switch (R[4]) {
|
|
32586
32589
|
case ":":
|
|
@@ -32591,8 +32594,8 @@ function Ke() {
|
|
|
32591
32594
|
}
|
|
32592
32595
|
return R.slice(0, R.indexOf(":") + 1);
|
|
32593
32596
|
}
|
|
32594
|
-
const
|
|
32595
|
-
|
|
32597
|
+
const Wt = /* @__PURE__ */ Object.create(null);
|
|
32598
|
+
Wt.enumerable = !0;
|
|
32596
32599
|
const te = {
|
|
32597
32600
|
delete: "DELETE",
|
|
32598
32601
|
DELETE: "DELETE",
|
|
@@ -32612,7 +32615,7 @@ function Ke() {
|
|
|
32612
32615
|
PATCH: "PATCH"
|
|
32613
32616
|
};
|
|
32614
32617
|
return Object.setPrototypeOf(te, null), Object.setPrototypeOf(z, null), EA = {
|
|
32615
|
-
kEnumerableProperty:
|
|
32618
|
+
kEnumerableProperty: Wt,
|
|
32616
32619
|
isDisturbed: De,
|
|
32617
32620
|
isBlobLike: E,
|
|
32618
32621
|
parseOrigin: S,
|
|
@@ -32624,9 +32627,9 @@ function Ke() {
|
|
|
32624
32627
|
isDestroyed: x,
|
|
32625
32628
|
headerNameToString: $,
|
|
32626
32629
|
bufferToLowerCasedHeaderName: Ie,
|
|
32627
|
-
addListener:
|
|
32630
|
+
addListener: vt,
|
|
32628
32631
|
removeAllListeners: pt,
|
|
32629
|
-
errorRequest:
|
|
32632
|
+
errorRequest: Pt,
|
|
32630
32633
|
parseRawHeaders: ve,
|
|
32631
32634
|
encodeRawHeaders: ie,
|
|
32632
32635
|
parseHeaders: le,
|
|
@@ -32655,7 +32658,7 @@ function Ke() {
|
|
|
32655
32658
|
safeHTTPMethods: Object.freeze(["GET", "HEAD", "OPTIONS", "TRACE"]),
|
|
32656
32659
|
wrapRequestBody: I,
|
|
32657
32660
|
setupConnectTimeout: kt,
|
|
32658
|
-
getProtocolFromUrlString:
|
|
32661
|
+
getProtocolFromUrlString: Mt
|
|
32659
32662
|
}, EA;
|
|
32660
32663
|
}
|
|
32661
32664
|
var CA, lm;
|
|
@@ -35140,7 +35143,7 @@ function Nr() {
|
|
|
35140
35143
|
case "no-referrer-when-downgrade":
|
|
35141
35144
|
case "strict-origin":
|
|
35142
35145
|
case "strict-origin-when-cross-origin":
|
|
35143
|
-
Y.origin &&
|
|
35146
|
+
Y.origin && Pt(Y.origin) && !Pt(Q(Y)) && (oe = null);
|
|
35144
35147
|
break;
|
|
35145
35148
|
case "same-origin":
|
|
35146
35149
|
_e(Y, Q(Y)) || (oe = null);
|
|
@@ -35376,7 +35379,7 @@ function Nr() {
|
|
|
35376
35379
|
const q = oe, O = me;
|
|
35377
35380
|
try {
|
|
35378
35381
|
const G = Y.stream.getReader();
|
|
35379
|
-
|
|
35382
|
+
vt(G, q, O);
|
|
35380
35383
|
} catch (G) {
|
|
35381
35384
|
O(G);
|
|
35382
35385
|
}
|
|
@@ -35389,7 +35392,7 @@ function Nr() {
|
|
|
35389
35392
|
throw oe;
|
|
35390
35393
|
}
|
|
35391
35394
|
}
|
|
35392
|
-
async function
|
|
35395
|
+
async function vt(Y, oe, me) {
|
|
35393
35396
|
try {
|
|
35394
35397
|
const q = [];
|
|
35395
35398
|
let O = 0;
|
|
@@ -35414,7 +35417,7 @@ function Nr() {
|
|
|
35414
35417
|
const oe = Y.protocol;
|
|
35415
35418
|
return oe === "about:" || oe === "blob:" || oe === "data:";
|
|
35416
35419
|
}
|
|
35417
|
-
function
|
|
35420
|
+
function Pt(Y) {
|
|
35418
35421
|
return typeof Y == "string" && Y[5] === ":" && Y[0] === "h" && Y[1] === "t" && Y[2] === "t" && Y[3] === "p" && Y[4] === "s" || Y.protocol === "https:";
|
|
35419
35422
|
}
|
|
35420
35423
|
function kt(Y) {
|
|
@@ -35422,7 +35425,7 @@ function Nr() {
|
|
|
35422
35425
|
const oe = Y.protocol;
|
|
35423
35426
|
return oe === "http:" || oe === "https:";
|
|
35424
35427
|
}
|
|
35425
|
-
function
|
|
35428
|
+
function _t(Y, oe) {
|
|
35426
35429
|
const me = Y;
|
|
35427
35430
|
if (!me.startsWith("bytes"))
|
|
35428
35431
|
return "failure";
|
|
@@ -35467,11 +35470,11 @@ function Nr() {
|
|
|
35467
35470
|
), se = ue.length ? Number(ue) : null;
|
|
35468
35471
|
return q.position < me.length || se === null && G === null || G > se ? "failure" : { rangeStartValue: G, rangeEndValue: se };
|
|
35469
35472
|
}
|
|
35470
|
-
function
|
|
35473
|
+
function Mt(Y, oe, me) {
|
|
35471
35474
|
let q = "bytes ";
|
|
35472
35475
|
return q += f(`${Y}`), q += "-", q += f(`${oe}`), q += "/", q += f(`${me}`), q;
|
|
35473
35476
|
}
|
|
35474
|
-
class
|
|
35477
|
+
class Wt extends e {
|
|
35475
35478
|
#e;
|
|
35476
35479
|
/** @param {zlib.ZlibOptions} [zlibOptions] */
|
|
35477
35480
|
constructor(oe) {
|
|
@@ -35492,7 +35495,7 @@ function Nr() {
|
|
|
35492
35495
|
}
|
|
35493
35496
|
}
|
|
35494
35497
|
function te(Y) {
|
|
35495
|
-
return new
|
|
35498
|
+
return new Wt(Y);
|
|
35496
35499
|
}
|
|
35497
35500
|
function z(Y) {
|
|
35498
35501
|
let oe = null, me = null, q = null;
|
|
@@ -35587,11 +35590,11 @@ function Nr() {
|
|
|
35587
35590
|
fullyReadBody: gt,
|
|
35588
35591
|
readableStreamClose: ct,
|
|
35589
35592
|
urlIsLocal: pt,
|
|
35590
|
-
urlHasHttpsScheme:
|
|
35593
|
+
urlHasHttpsScheme: Pt,
|
|
35591
35594
|
urlIsHttpHttpsScheme: kt,
|
|
35592
|
-
readAllBytes:
|
|
35593
|
-
simpleRangeHeaderValue:
|
|
35594
|
-
buildContentRange:
|
|
35595
|
+
readAllBytes: vt,
|
|
35596
|
+
simpleRangeHeaderValue: _t,
|
|
35597
|
+
buildContentRange: Mt,
|
|
35595
35598
|
createInflate: te,
|
|
35596
35599
|
extractMimeType: z,
|
|
35597
35600
|
getDecodeSplit: V,
|
|
@@ -36276,8 +36279,8 @@ function aJ() {
|
|
|
36276
36279
|
});
|
|
36277
36280
|
}
|
|
36278
36281
|
let be = null, Le = null, de = null, rt = 0, gt = null;
|
|
36279
|
-
const ct = 0,
|
|
36280
|
-
class
|
|
36282
|
+
const ct = 0, vt = 1, pt = 2 | vt, Pt = 4 | vt, kt = 8 | ct;
|
|
36283
|
+
class _t {
|
|
36281
36284
|
/**
|
|
36282
36285
|
* @param {import('./client.js')} client
|
|
36283
36286
|
* @param {import('net').Socket} socket
|
|
@@ -36287,10 +36290,10 @@ function aJ() {
|
|
|
36287
36290
|
this.llhttp = ue, this.ptr = this.llhttp.llhttp_alloc(Ee.TYPE.RESPONSE), this.client = O, this.socket = G, this.timeout = null, this.timeoutValue = null, this.timeoutType = null, this.statusCode = 0, this.statusText = "", this.upgrade = !1, this.headers = [], this.headersSize = 0, this.headersMaxSize = O[v], this.shouldKeepAlive = !1, this.paused = !1, this.resume = this.resume.bind(this), this.bytesRead = 0, this.keepAlive = "", this.contentLength = "", this.connection = "", this.maxResponseSize = O[ve];
|
|
36288
36291
|
}
|
|
36289
36292
|
setTimeout(O, G) {
|
|
36290
|
-
O !== this.timeoutValue || G &
|
|
36293
|
+
O !== this.timeoutValue || G & vt ^ this.timeoutType & vt ? (this.timeout && (n.clearTimeout(this.timeout), this.timeout = null), O && (G & vt ? this.timeout = n.setFastTimeout(Mt, O, new WeakRef(this)) : (this.timeout = setTimeout(Mt, O, new WeakRef(this)), this.timeout?.unref())), this.timeoutValue = O) : this.timeout && this.timeout.refresh && this.timeout.refresh(), this.timeoutType = G;
|
|
36291
36294
|
}
|
|
36292
36295
|
resume() {
|
|
36293
|
-
this.socket.destroyed || !this.paused || (e(this.ptr != null), e(Le === null), this.llhttp.llhttp_resume(this.ptr), e(this.timeoutType ===
|
|
36296
|
+
this.socket.destroyed || !this.paused || (e(this.ptr != null), e(Le === null), this.llhttp.llhttp_resume(this.ptr), e(this.timeoutType === Pt), this.timeout && this.timeout.refresh && this.timeout.refresh(), this.paused = !1, this.execute(this.socket.read() || _), this.readMore());
|
|
36294
36297
|
}
|
|
36295
36298
|
readMore() {
|
|
36296
36299
|
for (; !this.paused && this.ptr; ) {
|
|
@@ -36417,7 +36420,7 @@ function aJ() {
|
|
|
36417
36420
|
if (e(this.timeoutType === pt), this.statusCode = O, this.shouldKeepAlive = ue || // Override llhttp value which does not allow keepAlive for HEAD.
|
|
36418
36421
|
ke.method === "HEAD" && !pe[f] && this.connection.toLowerCase() === "keep-alive", this.statusCode >= 200) {
|
|
36419
36422
|
const Ne = ke.bodyTimeout != null ? ke.bodyTimeout : se[X];
|
|
36420
|
-
this.setTimeout(Ne,
|
|
36423
|
+
this.setTimeout(Ne, Pt);
|
|
36421
36424
|
} else this.timeout && this.timeout.refresh && this.timeout.refresh();
|
|
36422
36425
|
if (ke.method === "CONNECT")
|
|
36423
36426
|
return e(se[I] === 1), this.upgrade = !0, 2;
|
|
@@ -36447,7 +36450,7 @@ function aJ() {
|
|
|
36447
36450
|
if (ue.destroyed)
|
|
36448
36451
|
return -1;
|
|
36449
36452
|
const Te = G[F][G[k]];
|
|
36450
|
-
return e(Te), e(this.timeoutType ===
|
|
36453
|
+
return e(Te), e(this.timeoutType === Pt), this.timeout && this.timeout.refresh && this.timeout.refresh(), e(se >= 200), pe > -1 && this.bytesRead + O.length > pe ? (t.destroy(ue, new h()), -1) : (this.bytesRead += O.length, Te.onData(O) === !1 ? Ee.ERROR.PAUSED : 0);
|
|
36451
36454
|
}
|
|
36452
36455
|
/**
|
|
36453
36456
|
* @returns {number}
|
|
@@ -36474,16 +36477,16 @@ function aJ() {
|
|
|
36474
36477
|
return 0;
|
|
36475
36478
|
}
|
|
36476
36479
|
}
|
|
36477
|
-
function
|
|
36480
|
+
function Mt(q) {
|
|
36478
36481
|
const { socket: O, timeoutType: G, client: ue, paused: se } = q.deref();
|
|
36479
|
-
G === pt ? (!O[Q] || O.writableNeedDrain || ue[I] > 1) && (e(!se, "cannot be paused while waiting for headers"), t.destroy(O, new u())) : G ===
|
|
36482
|
+
G === pt ? (!O[Q] || O.writableNeedDrain || ue[I] > 1) && (e(!se, "cannot be paused while waiting for headers"), t.destroy(O, new u())) : G === Pt ? se || t.destroy(O, new d()) : G === kt && (e(ue[I] === 0 && ue[L]), t.destroy(O, new A("socket idle timeout")));
|
|
36480
36483
|
}
|
|
36481
|
-
function
|
|
36484
|
+
function Wt(q, O) {
|
|
36482
36485
|
if (q[M] = O, be || (be = Fe()), O.errored)
|
|
36483
36486
|
throw O.errored;
|
|
36484
36487
|
if (O.destroyed)
|
|
36485
36488
|
throw new s("destroyed");
|
|
36486
|
-
return O[y] = !1, O[Q] = !1, O[f] = !1, O[b] = !1, O[C] = new
|
|
36489
|
+
return O[y] = !1, O[Q] = !1, O[f] = !1, O[b] = !1, O[C] = new _t(q, O, be), t.addListener(O, "error", te), t.addListener(O, "readable", z), t.addListener(O, "end", R), t.addListener(O, "close", V), O[De] = !1, O.on("close", ne), {
|
|
36487
36490
|
version: "h1",
|
|
36488
36491
|
defaultPipelining: 1,
|
|
36489
36492
|
write(G) {
|
|
@@ -36772,7 +36775,7 @@ ${je.toString(16)}\r
|
|
|
36772
36775
|
G[Q] = !1, O && (e(ue[I] <= 1, "pipeline should only contain this request"), se(O));
|
|
36773
36776
|
}
|
|
36774
36777
|
}
|
|
36775
|
-
return HA =
|
|
36778
|
+
return HA = Wt, HA;
|
|
36776
36779
|
}
|
|
36777
36780
|
var PA, xm;
|
|
36778
36781
|
function iJ() {
|
|
@@ -36851,7 +36854,7 @@ function iJ() {
|
|
|
36851
36854
|
...V != null ? { initialWindowSize: V } : null
|
|
36852
36855
|
}
|
|
36853
36856
|
});
|
|
36854
|
-
return ye[v] = 0, ye[A] = z, ye[C] = R, ye[E] = null, ye[w] = !1, ye[T] = !1, ne && r.addListener(ye, "connect", _e.bind(ye, ne)), r.addListener(ye, "error", Fe), r.addListener(ye, "frameError", be), r.addListener(ye, "end", Le), r.addListener(ye, "goaway", de), r.addListener(ye, "close", rt), r.addListener(ye, "remoteSettings", ce), ye.unref(), z[E] = ye, R[E] = ye, r.addListener(R, "error", ct), r.addListener(R, "end",
|
|
36857
|
+
return ye[v] = 0, ye[A] = z, ye[C] = R, ye[E] = null, ye[w] = !1, ye[T] = !1, ne && r.addListener(ye, "connect", _e.bind(ye, ne)), r.addListener(ye, "error", Fe), r.addListener(ye, "frameError", be), r.addListener(ye, "end", Le), r.addListener(ye, "goaway", de), r.addListener(ye, "close", rt), r.addListener(ye, "remoteSettings", ce), ye.unref(), z[E] = ye, R[E] = ye, r.addListener(R, "error", ct), r.addListener(R, "end", vt), r.addListener(R, "close", gt), R[S] = !1, R.on("close", pt), {
|
|
36855
36858
|
version: "h2",
|
|
36856
36859
|
defaultPipelining: 1 / 0,
|
|
36857
36860
|
/**
|
|
@@ -36951,13 +36954,13 @@ function iJ() {
|
|
|
36951
36954
|
function ct(z) {
|
|
36952
36955
|
e(z.code !== "ERR_TLS_CERT_ALTNAME_INVALID"), this[m] = z, this[A][I](z);
|
|
36953
36956
|
}
|
|
36954
|
-
function
|
|
36957
|
+
function vt() {
|
|
36955
36958
|
r.destroy(this, new i("other side closed", r.getSocketInfo(this)));
|
|
36956
36959
|
}
|
|
36957
36960
|
function pt() {
|
|
36958
36961
|
this[S] = !0;
|
|
36959
36962
|
}
|
|
36960
|
-
function
|
|
36963
|
+
function Pt(z) {
|
|
36961
36964
|
return z !== "GET" && z !== "HEAD" && z !== "OPTIONS" && z !== "TRACE" && z !== "CONNECT";
|
|
36962
36965
|
}
|
|
36963
36966
|
function kt(z, R) {
|
|
@@ -37013,7 +37016,7 @@ function iJ() {
|
|
|
37013
37016
|
const [Ne, J] = x(q);
|
|
37014
37017
|
O["content-type"] = J, q = Ne.stream, Me = Ne.length;
|
|
37015
37018
|
}
|
|
37016
|
-
if (Me == null && (Me = R.contentLength), Te || (Me = null),
|
|
37019
|
+
if (Me == null && (Me = R.contentLength), Te || (Me = null), Pt(ye) && Me > 0 && R.contentLength != null && R.contentLength !== Me) {
|
|
37017
37020
|
if (z[b])
|
|
37018
37021
|
return r.errorRequest(z, R, new n()), !1;
|
|
37019
37022
|
process.emitWarning(new n());
|
|
@@ -37055,7 +37058,7 @@ function iJ() {
|
|
|
37055
37058
|
R.aborted || R.completed || R.onComplete(Ne);
|
|
37056
37059
|
}), !0;
|
|
37057
37060
|
function je() {
|
|
37058
|
-
!q || Me === 0 ?
|
|
37061
|
+
!q || Me === 0 ? _t(
|
|
37059
37062
|
pe,
|
|
37060
37063
|
G,
|
|
37061
37064
|
null,
|
|
@@ -37064,7 +37067,7 @@ function iJ() {
|
|
|
37064
37067
|
z[C],
|
|
37065
37068
|
Me,
|
|
37066
37069
|
Te
|
|
37067
|
-
) : r.isBuffer(q) ?
|
|
37070
|
+
) : r.isBuffer(q) ? _t(
|
|
37068
37071
|
pe,
|
|
37069
37072
|
G,
|
|
37070
37073
|
q,
|
|
@@ -37082,7 +37085,7 @@ function iJ() {
|
|
|
37082
37085
|
z[C],
|
|
37083
37086
|
Me,
|
|
37084
37087
|
Te
|
|
37085
|
-
) :
|
|
37088
|
+
) : Wt(
|
|
37086
37089
|
pe,
|
|
37087
37090
|
G,
|
|
37088
37091
|
q,
|
|
@@ -37091,7 +37094,7 @@ function iJ() {
|
|
|
37091
37094
|
z[C],
|
|
37092
37095
|
Me,
|
|
37093
37096
|
Te
|
|
37094
|
-
) : r.isStream(q) ?
|
|
37097
|
+
) : r.isStream(q) ? Mt(
|
|
37095
37098
|
pe,
|
|
37096
37099
|
z[C],
|
|
37097
37100
|
Te,
|
|
@@ -37112,14 +37115,14 @@ function iJ() {
|
|
|
37112
37115
|
) : e(!1);
|
|
37113
37116
|
}
|
|
37114
37117
|
}
|
|
37115
|
-
function
|
|
37118
|
+
function _t(z, R, V, ne, ye, we, He, ot) {
|
|
37116
37119
|
try {
|
|
37117
37120
|
V != null && r.isBuffer(V) && (e(He === V.byteLength, "buffer body must have content length"), R.cork(), R.write(V), R.uncork(), R.end(), ye.onBodySent(V)), ot || (we[s] = !0), ye.onRequestSent(), ne[y]();
|
|
37118
37121
|
} catch (nt) {
|
|
37119
37122
|
z(nt);
|
|
37120
37123
|
}
|
|
37121
37124
|
}
|
|
37122
|
-
function
|
|
37125
|
+
function Mt(z, R, V, ne, ye, we, He, ot) {
|
|
37123
37126
|
e(ot !== 0 || we[d] === 0, "stream body cannot be pipelined");
|
|
37124
37127
|
const nt = t(
|
|
37125
37128
|
ye,
|
|
@@ -37133,7 +37136,7 @@ function iJ() {
|
|
|
37133
37136
|
He.onBodySent(oe);
|
|
37134
37137
|
}
|
|
37135
37138
|
}
|
|
37136
|
-
async function
|
|
37139
|
+
async function Wt(z, R, V, ne, ye, we, He, ot) {
|
|
37137
37140
|
e(He === V.size, "blob body must have content length");
|
|
37138
37141
|
try {
|
|
37139
37142
|
if (He != null && He !== V.size)
|
|
@@ -37229,7 +37232,7 @@ function ra() {
|
|
|
37229
37232
|
function ct(te) {
|
|
37230
37233
|
return te[T] ?? te[_]?.defaultPipelining ?? 1;
|
|
37231
37234
|
}
|
|
37232
|
-
class
|
|
37235
|
+
class vt extends u {
|
|
37233
37236
|
/**
|
|
37234
37237
|
*
|
|
37235
37238
|
* @param {string|URL} url
|
|
@@ -37325,7 +37328,7 @@ function ra() {
|
|
|
37325
37328
|
...typeof Ne == "boolean" ? { autoSelectFamily: Ne, autoSelectFamilyAttemptTimeout: J } : void 0,
|
|
37326
37329
|
...Te
|
|
37327
37330
|
})), this[c] = n.parseOrigin(z), this[$] = Te, this[T] = G ?? 1, this[L] = R, this[D] = Y ?? 4e3, this[v] = me ?? 6e5, this[x] = q ?? 2e3, this[M] = this[D], this[h] = null, this[he] = ke ?? null, this[C] = 0, this[y] = 0, this[N] = `host: ${this[c].hostname}${this[c].port ? `:${this[c].port}` : ""}\r
|
|
37328
|
-
`, this[j] = He ?? 3e5, this[W] = V ?? 3e5, this[X] = se ?? !0, this[Ie] = Me, this[de] = null, this[De] = je > -1 ? je : -1, this[Re] = fe ?? 100, this[_e] = Qe ?? 262144, this[ce] = Ae ?? 524288, this[_] = null, this[E] = [], this[k] = 0, this[S] = 0, this[Fe] = (Je) =>
|
|
37331
|
+
`, this[j] = He ?? 3e5, this[W] = V ?? 3e5, this[X] = se ?? !0, this[Ie] = Me, this[de] = null, this[De] = je > -1 ? je : -1, this[Re] = fe ?? 100, this[_e] = Qe ?? 262144, this[ce] = Ae ?? 524288, this[_] = null, this[E] = [], this[k] = 0, this[S] = 0, this[Fe] = (Je) => Mt(this, Je), this[Ee] = (Je) => pt(this, Je);
|
|
37329
37332
|
}
|
|
37330
37333
|
get pipelining() {
|
|
37331
37334
|
return this[T];
|
|
@@ -37352,11 +37355,11 @@ function ra() {
|
|
|
37352
37355
|
return !!(this[_]?.busy(null) || this[B] >= (ct(this) || 1) || this[I] > 0);
|
|
37353
37356
|
}
|
|
37354
37357
|
[m](z) {
|
|
37355
|
-
|
|
37358
|
+
Pt(this), this.once("connect", z);
|
|
37356
37359
|
}
|
|
37357
37360
|
[ae](z, R) {
|
|
37358
37361
|
const V = new o(this[c].origin, z, R);
|
|
37359
|
-
return this[E].push(V), this[C] || (n.bodyLength(V.body) == null && n.isIterable(V.body) ? (this[C] = 1, queueMicrotask(() =>
|
|
37362
|
+
return this[E].push(V), this[C] || (n.bodyLength(V.body) == null && n.isIterable(V.body) ? (this[C] = 1, queueMicrotask(() => Mt(this))) : this[Fe](!0)), this[C] && this[y] !== 2 && this[f] && (this[y] = 2), this[y] < 2;
|
|
37360
37363
|
}
|
|
37361
37364
|
[ve]() {
|
|
37362
37365
|
return new Promise((z) => {
|
|
@@ -37388,7 +37391,7 @@ function ra() {
|
|
|
37388
37391
|
e(te[B] === 0);
|
|
37389
37392
|
}
|
|
37390
37393
|
}
|
|
37391
|
-
function
|
|
37394
|
+
function Pt(te) {
|
|
37392
37395
|
e(!te[F]), e(!te[_]);
|
|
37393
37396
|
let { host: z, hostname: R, protocol: V, port: ne } = te[c];
|
|
37394
37397
|
if (R[0] === "[") {
|
|
@@ -37470,13 +37473,13 @@ function ra() {
|
|
|
37470
37473
|
te.emit("connectionError", te[c], [te], z);
|
|
37471
37474
|
}
|
|
37472
37475
|
}
|
|
37473
|
-
function
|
|
37476
|
+
function _t(te) {
|
|
37474
37477
|
te[y] = 0, te.emit("drain", te[c], [te]);
|
|
37475
37478
|
}
|
|
37476
|
-
function
|
|
37477
|
-
te[C] !== 2 && (te[C] = 2,
|
|
37479
|
+
function Mt(te, z) {
|
|
37480
|
+
te[C] !== 2 && (te[C] = 2, Wt(te, z), te[C] = 0, te[k] > 256 && (te[E].splice(0, te[k]), te[S] -= te[k], te[k] = 0));
|
|
37478
37481
|
}
|
|
37479
|
-
function
|
|
37482
|
+
function Wt(te, z) {
|
|
37480
37483
|
for (; ; ) {
|
|
37481
37484
|
if (te.destroyed) {
|
|
37482
37485
|
e(te[I] === 0);
|
|
@@ -37489,7 +37492,7 @@ function ra() {
|
|
|
37489
37492
|
if (te[_] && te[_].resume(), te[f])
|
|
37490
37493
|
te[y] = 2;
|
|
37491
37494
|
else if (te[y] === 2) {
|
|
37492
|
-
z ? (te[y] = 1, queueMicrotask(() =>
|
|
37495
|
+
z ? (te[y] = 1, queueMicrotask(() => _t(te))) : _t(te);
|
|
37493
37496
|
continue;
|
|
37494
37497
|
}
|
|
37495
37498
|
if (te[I] === 0 || te[b] >= (ct(te) || 1))
|
|
@@ -37499,13 +37502,13 @@ function ra() {
|
|
|
37499
37502
|
if (te[b] > 0)
|
|
37500
37503
|
return;
|
|
37501
37504
|
te[h] = R.servername, te[_]?.destroy(new s("servername changed"), () => {
|
|
37502
|
-
te[_] = null,
|
|
37505
|
+
te[_] = null, Mt(te);
|
|
37503
37506
|
});
|
|
37504
37507
|
}
|
|
37505
37508
|
if (te[F])
|
|
37506
37509
|
return;
|
|
37507
37510
|
if (!te[_]) {
|
|
37508
|
-
|
|
37511
|
+
Pt(te);
|
|
37509
37512
|
return;
|
|
37510
37513
|
}
|
|
37511
37514
|
if (te[_].destroyed || te[_].busy(R))
|
|
@@ -37513,7 +37516,7 @@ function ra() {
|
|
|
37513
37516
|
!R.aborted && te[_].write(R) ? te[S]++ : te[E].splice(te[S], 1);
|
|
37514
37517
|
}
|
|
37515
37518
|
}
|
|
37516
|
-
return _A =
|
|
37519
|
+
return _A = vt, _A;
|
|
37517
37520
|
}
|
|
37518
37521
|
var GA, Om;
|
|
37519
37522
|
function sy() {
|
|
@@ -40156,7 +40159,7 @@ var dl, dp;
|
|
|
40156
40159
|
function CJ() {
|
|
40157
40160
|
if (dp) return dl;
|
|
40158
40161
|
dp = 1;
|
|
40159
|
-
const { writeFile: e, readFile: t, mkdir: r } = Wy, { dirname: n, resolve: a } =
|
|
40162
|
+
const { writeFile: e, readFile: t, mkdir: r } = Wy, { dirname: n, resolve: a } = Rt, { setTimeout: i, clearTimeout: o } = Jy, { InvalidArgumentError: u, UndiciError: l } = ze(), { hashId: s, isUrlExcludedFactory: A, normalizeHeaders: d, createHeaderFilters: c } = fy();
|
|
40160
40163
|
function h(b, I, B = {}) {
|
|
40161
40164
|
const E = new URL(b.path, b.origin), Q = b._normalizedHeaders || d(b.headers);
|
|
40162
40165
|
return b._normalizedHeaders || (b._normalizedHeaders = Q), {
|
|
@@ -43902,9 +43905,9 @@ function Wi() {
|
|
|
43902
43905
|
de = _({ urlList: [R] }), rt = "cors";
|
|
43903
43906
|
} else
|
|
43904
43907
|
T(S.is.Request(Fe)), de = Fe.#n, ct = Fe.#e, this.#t = be.dispatcher || Fe.#t;
|
|
43905
|
-
const
|
|
43908
|
+
const vt = f.settingsObject.origin;
|
|
43906
43909
|
let pt = "client";
|
|
43907
|
-
if (de.window?.constructor?.name === "EnvironmentSettingsObject" && g(de.window,
|
|
43910
|
+
if (de.window?.constructor?.name === "EnvironmentSettingsObject" && g(de.window, vt) && (pt = de.window), be.window != null)
|
|
43908
43911
|
throw new TypeError(`'window' option '${pt}' must be null`);
|
|
43909
43912
|
"window" in be && (pt = "no-window"), de = _({
|
|
43910
43913
|
// URL request’s URL.
|
|
@@ -43949,8 +43952,8 @@ function Wi() {
|
|
|
43949
43952
|
// URL list A clone of request’s URL list.
|
|
43950
43953
|
urlList: [...de.urlList]
|
|
43951
43954
|
});
|
|
43952
|
-
const
|
|
43953
|
-
if (
|
|
43955
|
+
const Pt = Object.keys(be).length !== 0;
|
|
43956
|
+
if (Pt && (de.mode === "navigate" && (de.mode = "same-origin"), de.reloadNavigation = !1, de.historyNavigation = !1, de.origin = "client", de.referrer = "client", de.referrerPolicy = "", de.url = de.urlList[de.urlList.length - 1], de.urlList = [de.url]), be.referrer !== void 0) {
|
|
43954
43957
|
const R = be.referrer;
|
|
43955
43958
|
if (R === "")
|
|
43956
43959
|
de.referrer = "no-referrer";
|
|
@@ -43961,7 +43964,7 @@ function Wi() {
|
|
|
43961
43964
|
} catch (ne) {
|
|
43962
43965
|
throw new TypeError(`Referrer "${R}" is not a valid URL.`, { cause: ne });
|
|
43963
43966
|
}
|
|
43964
|
-
V.protocol === "about:" && V.hostname === "client" ||
|
|
43967
|
+
V.protocol === "about:" && V.hostname === "client" || vt && !g(V, f.settingsObject.baseUrl) ? de.referrer = "client" : de.referrer = V;
|
|
43965
43968
|
}
|
|
43966
43969
|
}
|
|
43967
43970
|
be.referrerPolicy !== void 0 && (de.referrerPolicy = be.referrerPolicy);
|
|
@@ -43993,14 +43996,14 @@ function Wi() {
|
|
|
43993
43996
|
}), Ie = !0);
|
|
43994
43997
|
}
|
|
43995
43998
|
be.signal !== void 0 && (ct = be.signal), this.#n = de;
|
|
43996
|
-
const
|
|
43997
|
-
if (this.#e =
|
|
43999
|
+
const _t = new AbortController();
|
|
44000
|
+
if (this.#e = _t.signal, ct != null)
|
|
43998
44001
|
if (ct.aborted)
|
|
43999
|
-
|
|
44002
|
+
_t.abort(ct.reason);
|
|
44000
44003
|
else {
|
|
44001
|
-
this[x] =
|
|
44002
|
-
const R = new WeakRef(
|
|
44003
|
-
X && M(ct) === v && L(1500, ct), d.addAbortListener(ct, V), W.register(
|
|
44004
|
+
this[x] = _t;
|
|
44005
|
+
const R = new WeakRef(_t), V = $(R);
|
|
44006
|
+
X && M(ct) === v && L(1500, ct), d.addAbortListener(ct, V), W.register(_t, { signal: ct, abort: V }, V);
|
|
44004
44007
|
}
|
|
44005
44008
|
if (this.#r = new a(w), s(this.#r, de.headersList), u(this.#r, "request"), kt === "no-cors") {
|
|
44006
44009
|
if (!C.has(de.method))
|
|
@@ -44009,7 +44012,7 @@ function Wi() {
|
|
|
44009
44012
|
);
|
|
44010
44013
|
u(this.#r, "request-no-cors");
|
|
44011
44014
|
}
|
|
44012
|
-
if (
|
|
44015
|
+
if (Pt) {
|
|
44013
44016
|
const R = A(this.#r), V = be.headers !== void 0 ? be.headers : new o(R);
|
|
44014
44017
|
if (R.clear(), V instanceof o) {
|
|
44015
44018
|
for (const { name: ne, value: ye } of V.rawValues())
|
|
@@ -44018,20 +44021,20 @@ function Wi() {
|
|
|
44018
44021
|
} else
|
|
44019
44022
|
i(this.#r, V);
|
|
44020
44023
|
}
|
|
44021
|
-
const
|
|
44022
|
-
if ((be.body != null ||
|
|
44024
|
+
const Mt = S.is.Request(Fe) ? Fe.#n.body : null;
|
|
44025
|
+
if ((be.body != null || Mt != null) && (de.method === "GET" || de.method === "HEAD"))
|
|
44023
44026
|
throw new TypeError("Request with GET/HEAD method cannot have body.");
|
|
44024
|
-
let
|
|
44027
|
+
let Wt = null;
|
|
44025
44028
|
if (be.body != null) {
|
|
44026
44029
|
const [R, V] = e(
|
|
44027
44030
|
be.body,
|
|
44028
44031
|
de.keepalive
|
|
44029
44032
|
);
|
|
44030
|
-
|
|
44033
|
+
Wt = R, V && !A(this.#r).contains("content-type", !0) && this.#r.append("content-type", V, !0);
|
|
44031
44034
|
}
|
|
44032
|
-
const te =
|
|
44035
|
+
const te = Wt ?? Mt;
|
|
44033
44036
|
if (te != null && te.source == null) {
|
|
44034
|
-
if (
|
|
44037
|
+
if (Wt != null && be.duplex == null)
|
|
44035
44038
|
throw new TypeError("RequestInit: duplex option is required when sending a body.");
|
|
44036
44039
|
if (de.mode !== "same-origin" && de.mode !== "cors")
|
|
44037
44040
|
throw new TypeError(
|
|
@@ -44040,15 +44043,15 @@ function Wi() {
|
|
|
44040
44043
|
de.useCORSPreflightFlag = !0;
|
|
44041
44044
|
}
|
|
44042
44045
|
let z = te;
|
|
44043
|
-
if (
|
|
44046
|
+
if (Wt == null && Mt != null) {
|
|
44044
44047
|
if (n(Fe.#n))
|
|
44045
44048
|
throw new TypeError(
|
|
44046
44049
|
"Cannot construct a Request with a Request object that has already been used."
|
|
44047
44050
|
);
|
|
44048
44051
|
const R = new TransformStream();
|
|
44049
|
-
|
|
44050
|
-
source:
|
|
44051
|
-
length:
|
|
44052
|
+
Mt.stream.pipeThrough(R), z = {
|
|
44053
|
+
source: Mt.source,
|
|
44054
|
+
length: Mt.length,
|
|
44052
44055
|
stream: R.readable
|
|
44053
44056
|
};
|
|
44054
44057
|
}
|
|
@@ -44545,7 +44548,7 @@ function Js() {
|
|
|
44545
44548
|
safeMethodsSet: _e,
|
|
44546
44549
|
requestBodyHeader: ce,
|
|
44547
44550
|
subresourceSet: Fe
|
|
44548
|
-
} = Hs(), be = Da, { Readable: Le, pipeline: de, finished: rt, isErrored: gt, isReadable: ct } = ir, { addAbortListener:
|
|
44551
|
+
} = Hs(), be = Da, { Readable: Le, pipeline: de, finished: rt, isErrored: gt, isReadable: ct } = ir, { addAbortListener: vt, bufferToLowerCasedHeaderName: pt } = Ke(), { dataURLProcessor: Pt, serializeAMimeType: kt, minimizeSupportedMimeType: _t } = Gr(), { getGlobalDispatcher: Mt } = hd(), { webidl: Wt } = ur(), { STATUS_CODES: te } = hs, { bytesMatch: z } = MJ(), { createDeferredPromise: R } = _s(), { isomorphicEncode: V } = Mn(), { runtimeFeatures: ne } = Ln(), ye = ne.has("zstd"), we = ["GET", "HEAD"], He = typeof __UNDICI_IS_NODE__ < "u" || typeof esbuildDetection < "u" ? "node" : "undici";
|
|
44549
44552
|
let ot;
|
|
44550
44553
|
class nt extends be {
|
|
44551
44554
|
constructor(fe) {
|
|
@@ -44563,7 +44566,7 @@ function Js() {
|
|
|
44563
44566
|
me(J, "fetch");
|
|
44564
44567
|
}
|
|
44565
44568
|
function oe(J, fe = void 0) {
|
|
44566
|
-
|
|
44569
|
+
Wt.argumentLengthCheck(arguments, 1, "globalThis.fetch");
|
|
44567
44570
|
let Z = R(), re;
|
|
44568
44571
|
try {
|
|
44569
44572
|
re = new u(J, fe);
|
|
@@ -44575,7 +44578,7 @@ function Js() {
|
|
|
44575
44578
|
return O(Z, Qe, null, re.signal.reason), Z.promise;
|
|
44576
44579
|
Qe.client.globalObject?.constructor?.name === "ServiceWorkerGlobalScope" && (Qe.serviceWorkers = "none");
|
|
44577
44580
|
let Je = null, ft = !1, bt = null;
|
|
44578
|
-
return
|
|
44581
|
+
return vt(
|
|
44579
44582
|
re.signal,
|
|
44580
44583
|
() => {
|
|
44581
44584
|
ft = !0, he(bt != null), bt.abort(re.signal.reason);
|
|
@@ -44641,13 +44644,13 @@ function Js() {
|
|
|
44641
44644
|
processResponseEndOfBody: Qe,
|
|
44642
44645
|
processResponseConsumeBody: Ae,
|
|
44643
44646
|
useParallelQueue: Je = !1,
|
|
44644
|
-
dispatcher: ft =
|
|
44647
|
+
dispatcher: ft = Mt()
|
|
44645
44648
|
// undici
|
|
44646
44649
|
}) {
|
|
44647
44650
|
he(ft);
|
|
44648
|
-
let bt = null,
|
|
44649
|
-
J.client != null && (bt = J.client.globalObject,
|
|
44650
|
-
const Et = N(
|
|
44651
|
+
let bt = null, Lt = !1;
|
|
44652
|
+
J.client != null && (bt = J.client.globalObject, Lt = J.client.crossOriginIsolatedCapability);
|
|
44653
|
+
const Et = N(Lt), Qr = E({
|
|
44651
44654
|
startTime: Et
|
|
44652
44655
|
}), qe = {
|
|
44653
44656
|
controller: new nt(ft),
|
|
@@ -44659,7 +44662,7 @@ function Js() {
|
|
|
44659
44662
|
processResponseConsumeBody: Ae,
|
|
44660
44663
|
processResponseEndOfBody: Qe,
|
|
44661
44664
|
taskDestination: bt,
|
|
44662
|
-
crossOriginIsolatedCapability:
|
|
44665
|
+
crossOriginIsolatedCapability: Lt
|
|
44663
44666
|
};
|
|
44664
44667
|
return he(!J.body || J.body.stream), J.window === "client" && (J.window = J.client?.globalObject?.constructor?.name === "Window" ? J.client : "no-window"), J.origin === "client" && (J.origin = J.client.origin), J.policyContainer === "client" && (J.client != null ? J.policyContainer = h(
|
|
44665
44668
|
J.client.policyContainer
|
|
@@ -44716,12 +44719,12 @@ function Js() {
|
|
|
44716
44719
|
if (re.search.length !== 0)
|
|
44717
44720
|
return Promise.resolve(e("NetworkError when attempting to fetch resource."));
|
|
44718
44721
|
const Qe = ot(re.toString());
|
|
44719
|
-
if (fe.method !== "GET" || !
|
|
44722
|
+
if (fe.method !== "GET" || !Wt.is.Blob(Qe))
|
|
44720
44723
|
return Promise.resolve(e("invalid method"));
|
|
44721
44724
|
const Ae = n(), Je = Qe.size, ft = V(`${Je}`), bt = Qe.type;
|
|
44722
44725
|
if (fe.headersList.contains("range", !0)) {
|
|
44723
44726
|
Ae.rangeRequested = !0;
|
|
44724
|
-
const
|
|
44727
|
+
const Lt = fe.headersList.get("range", !0), Et = X(Lt, !0);
|
|
44725
44728
|
if (Et === "failure")
|
|
44726
44729
|
return Promise.resolve(e("failed to fetch the data URL"));
|
|
44727
44730
|
let { rangeStartValue: Qr, rangeEndValue: qe } = Et;
|
|
@@ -44734,16 +44737,16 @@ function Js() {
|
|
|
44734
44737
|
}
|
|
44735
44738
|
const Xt = Qe.slice(Qr, qe + 1, bt), Sr = Ee(Xt);
|
|
44736
44739
|
Ae.body = Sr[0];
|
|
44737
|
-
const
|
|
44738
|
-
Ae.status = 206, Ae.statusText = "Partial Content", Ae.headersList.set("content-length",
|
|
44740
|
+
const xt = V(`${Xt.size}`), en = $(Qr, qe, Je);
|
|
44741
|
+
Ae.status = 206, Ae.statusText = "Partial Content", Ae.headersList.set("content-length", xt, !0), Ae.headersList.set("content-type", bt, !0), Ae.headersList.set("content-range", en, !0);
|
|
44739
44742
|
} else {
|
|
44740
|
-
const
|
|
44741
|
-
Ae.statusText = "OK", Ae.body =
|
|
44743
|
+
const Lt = Ee(Qe);
|
|
44744
|
+
Ae.statusText = "OK", Ae.body = Lt[0], Ae.headersList.set("content-length", ft, !0), Ae.headersList.set("content-type", bt, !0);
|
|
44742
44745
|
}
|
|
44743
44746
|
return Promise.resolve(Ae);
|
|
44744
44747
|
}
|
|
44745
44748
|
case "data:": {
|
|
44746
|
-
const re = b(fe), Qe =
|
|
44749
|
+
const re = b(fe), Qe = Pt(re);
|
|
44747
44750
|
if (Qe === "failure")
|
|
44748
44751
|
return Promise.resolve(e("failed to fetch the data URL"));
|
|
44749
44752
|
const Ae = kt(Qe.mimeType);
|
|
@@ -44778,13 +44781,13 @@ function Js() {
|
|
|
44778
44781
|
let ft = fe.cacheState;
|
|
44779
44782
|
const bt = fe.bodyInfo;
|
|
44780
44783
|
fe.timingAllowPassed || (Z = E(Z), ft = "");
|
|
44781
|
-
let
|
|
44784
|
+
let Lt = 0;
|
|
44782
44785
|
if (J.request.mode !== "navigator" || !fe.hasCrossOriginRedirects) {
|
|
44783
|
-
|
|
44786
|
+
Lt = fe.status;
|
|
44784
44787
|
const Et = le(fe.headersList);
|
|
44785
|
-
Et !== "failure" && (bt.contentType =
|
|
44788
|
+
Et !== "failure" && (bt.contentType = _t(Et));
|
|
44786
44789
|
}
|
|
44787
|
-
J.request.initiatorType != null && q(Z, J.request.url.href, J.request.initiatorType, globalThis, ft, bt,
|
|
44790
|
+
J.request.initiatorType != null && q(Z, J.request.url.href, J.request.initiatorType, globalThis, ft, bt, Lt);
|
|
44788
44791
|
};
|
|
44789
44792
|
const Je = () => {
|
|
44790
44793
|
J.request.done = !0, J.processResponseEndOfBody != null && queueMicrotask(() => J.processResponseEndOfBody(fe)), J.request.initiatorType != null && J.controller.reportTimingSteps();
|
|
@@ -44853,8 +44856,8 @@ function Js() {
|
|
|
44853
44856
|
let Qe = null, Ae = null, Je = null;
|
|
44854
44857
|
re.window === "no-window" && re.redirect === "error" ? (Qe = J, Ae = re) : (Ae = l(re), Qe = { ...J }, Qe.request = Ae);
|
|
44855
44858
|
const ft = re.credentials === "include" || re.credentials === "same-origin" && re.responseTainting === "basic", bt = Ae.body ? Ae.body.length : null;
|
|
44856
|
-
let
|
|
44857
|
-
if (Ae.body == null && ["POST", "PUT"].includes(Ae.method) && (
|
|
44859
|
+
let Lt = null;
|
|
44860
|
+
if (Ae.body == null && ["POST", "PUT"].includes(Ae.method) && (Lt = "0"), bt != null && (Lt = V(`${bt}`)), Lt != null && Ae.headersList.append("content-length", Lt, !0), bt != null && Ae.keepalive, Wt.is.URL(Ae.referrer) && Ae.headersList.append("referer", V(Ae.referrer.href), !0), m(Ae), Q(Ae), Ae.headersList.contains("user-agent", !0) || Ae.headersList.append("user-agent", He, !0), Ae.cache === "default" && (Ae.headersList.contains("if-modified-since", !0) || Ae.headersList.contains("if-none-match", !0) || Ae.headersList.contains("if-unmodified-since", !0) || Ae.headersList.contains("if-match", !0) || Ae.headersList.contains("if-range", !0)) && (Ae.cache = "no-store"), Ae.cache === "no-cache" && !Ae.preventNoCacheCacheControlHeaderModification && !Ae.headersList.contains("cache-control", !0) && Ae.headersList.append("cache-control", "max-age=0", !0), (Ae.cache === "no-store" || Ae.cache === "reload") && (Ae.headersList.contains("pragma", !0) || Ae.headersList.append("pragma", "no-cache", !0), Ae.headersList.contains("cache-control", !0) || Ae.headersList.append("cache-control", "no-cache", !0)), Ae.headersList.contains("range", !0) && Ae.headersList.append("accept-encoding", "identity", !0), Ae.headersList.contains("accept-encoding", !0) || (W(b(Ae)) ? Ae.headersList.append("accept-encoding", "br, gzip, deflate", !0) : Ae.headersList.append("accept-encoding", "gzip, deflate", !0)), Ae.headersList.delete("host", !0), ft && !Ae.headersList.contains("authorization", !0)) {
|
|
44858
44861
|
let Et = null;
|
|
44859
44862
|
if (!(ve(Ae) && (Ae.useURLCredentials === void 0 || !ie(b(Ae))))) {
|
|
44860
44863
|
if (ie(b(Ae)) && fe) {
|
|
@@ -44918,37 +44921,37 @@ function Js() {
|
|
|
44918
44921
|
if (re.body == null && J.processRequestEndOfBody)
|
|
44919
44922
|
queueMicrotask(() => J.processRequestEndOfBody());
|
|
44920
44923
|
else if (re.body != null) {
|
|
44921
|
-
const qe = async function* (
|
|
44922
|
-
k(J) || (yield
|
|
44924
|
+
const qe = async function* (xt) {
|
|
44925
|
+
k(J) || (yield xt, J.processRequestBodyChunkLength?.(xt.byteLength));
|
|
44923
44926
|
}, Xt = () => {
|
|
44924
44927
|
k(J) || J.processRequestEndOfBody && J.processRequestEndOfBody();
|
|
44925
|
-
}, Sr = (
|
|
44926
|
-
k(J) || (
|
|
44928
|
+
}, Sr = (xt) => {
|
|
44929
|
+
k(J) || (xt.name === "AbortError" ? J.controller.abort() : J.controller.terminate(xt));
|
|
44927
44930
|
};
|
|
44928
44931
|
Je = (async function* () {
|
|
44929
44932
|
try {
|
|
44930
|
-
for await (const
|
|
44931
|
-
yield* qe(
|
|
44933
|
+
for await (const xt of re.body.stream)
|
|
44934
|
+
yield* qe(xt);
|
|
44932
44935
|
Xt();
|
|
44933
|
-
} catch (
|
|
44934
|
-
Sr(
|
|
44936
|
+
} catch (xt) {
|
|
44937
|
+
Sr(xt);
|
|
44935
44938
|
}
|
|
44936
44939
|
})();
|
|
44937
44940
|
}
|
|
44938
44941
|
try {
|
|
44939
|
-
const { body: qe, status: Xt, statusText: Sr, headersList:
|
|
44942
|
+
const { body: qe, status: Xt, statusText: Sr, headersList: xt, socket: en } = await Qr({ body: Je });
|
|
44940
44943
|
if (en)
|
|
44941
|
-
Qe = n({ status: Xt, statusText: Sr, headersList:
|
|
44944
|
+
Qe = n({ status: Xt, statusText: Sr, headersList: xt, socket: en });
|
|
44942
44945
|
else {
|
|
44943
|
-
const
|
|
44944
|
-
J.controller.next = () =>
|
|
44946
|
+
const Ut = qe[Symbol.asyncIterator]();
|
|
44947
|
+
J.controller.next = () => Ut.next(), Qe = n({ status: Xt, statusText: Sr, headersList: xt });
|
|
44945
44948
|
}
|
|
44946
44949
|
} catch (qe) {
|
|
44947
44950
|
return qe.name === "AbortError" ? (J.controller.connection.destroy(), t(J, qe)) : e(qe);
|
|
44948
44951
|
}
|
|
44949
44952
|
const ft = () => J.controller.resume(), bt = (qe) => {
|
|
44950
44953
|
k(J) || J.controller.abort(qe);
|
|
44951
|
-
},
|
|
44954
|
+
}, Lt = new ReadableStream(
|
|
44952
44955
|
{
|
|
44953
44956
|
start(qe) {
|
|
44954
44957
|
J.controller.controller = qe;
|
|
@@ -44958,16 +44961,16 @@ function Js() {
|
|
|
44958
44961
|
type: "bytes"
|
|
44959
44962
|
}
|
|
44960
44963
|
);
|
|
44961
|
-
Qe.body = { stream:
|
|
44964
|
+
Qe.body = { stream: Lt, source: null, length: null }, J.controller.resume || J.controller.on("terminated", Et), J.controller.resume = async () => {
|
|
44962
44965
|
for (; ; ) {
|
|
44963
44966
|
let qe, Xt;
|
|
44964
44967
|
try {
|
|
44965
|
-
const { done:
|
|
44968
|
+
const { done: xt, value: en } = await J.controller.next();
|
|
44966
44969
|
if (w(J))
|
|
44967
44970
|
break;
|
|
44968
|
-
qe =
|
|
44969
|
-
} catch (
|
|
44970
|
-
J.controller.ended && !Ae.encodedBodySize ? qe = void 0 : (qe =
|
|
44971
|
+
qe = xt ? void 0 : en;
|
|
44972
|
+
} catch (xt) {
|
|
44973
|
+
J.controller.ended && !Ae.encodedBodySize ? qe = void 0 : (qe = xt, Xt = !0);
|
|
44971
44974
|
}
|
|
44972
44975
|
if (qe === void 0) {
|
|
44973
44976
|
L(J.controller.controller), pe(J, Qe);
|
|
@@ -44978,7 +44981,7 @@ function Js() {
|
|
|
44978
44981
|
return;
|
|
44979
44982
|
}
|
|
44980
44983
|
const Sr = new Uint8Array(qe);
|
|
44981
|
-
if (Sr.byteLength && J.controller.controller.enqueue(Sr), gt(
|
|
44984
|
+
if (Sr.byteLength && J.controller.controller.enqueue(Sr), gt(Lt)) {
|
|
44982
44985
|
J.controller.terminate();
|
|
44983
44986
|
return;
|
|
44984
44987
|
}
|
|
@@ -44987,16 +44990,16 @@ function Js() {
|
|
|
44987
44990
|
}
|
|
44988
44991
|
};
|
|
44989
44992
|
function Et(qe) {
|
|
44990
|
-
w(J) ? (Qe.aborted = !0, ct(
|
|
44993
|
+
w(J) ? (Qe.aborted = !0, ct(Lt) && J.controller.controller.error(
|
|
44991
44994
|
J.controller.serializedAbortReason
|
|
44992
|
-
)) : ct(
|
|
44995
|
+
)) : ct(Lt) && J.controller.controller.error(new TypeError("terminated", {
|
|
44993
44996
|
cause: T(qe) ? qe : void 0
|
|
44994
44997
|
})), J.controller.connection.destroy();
|
|
44995
44998
|
}
|
|
44996
44999
|
return Qe;
|
|
44997
45000
|
function Qr({ body: qe }) {
|
|
44998
45001
|
const Xt = b(re), Sr = J.controller.dispatcher;
|
|
44999
|
-
return new Promise((
|
|
45002
|
+
return new Promise((xt, en) => Sr.dispatch(
|
|
45000
45003
|
{
|
|
45001
45004
|
path: Xt.pathname + Xt.search,
|
|
45002
45005
|
origin: Xt.origin,
|
|
@@ -45009,23 +45012,23 @@ function Js() {
|
|
|
45009
45012
|
{
|
|
45010
45013
|
body: null,
|
|
45011
45014
|
abort: null,
|
|
45012
|
-
onConnect(
|
|
45015
|
+
onConnect(Ut) {
|
|
45013
45016
|
const { connection: pr } = J.controller;
|
|
45014
|
-
Ae.finalConnectionTimingInfo = j(void 0, Ae.postRedirectStartTime, J.crossOriginIsolatedCapability), pr.destroyed ?
|
|
45017
|
+
Ae.finalConnectionTimingInfo = j(void 0, Ae.postRedirectStartTime, J.crossOriginIsolatedCapability), pr.destroyed ? Ut(new DOMException("The operation was aborted.", "AbortError")) : (J.controller.on("terminated", Ut), this.abort = pr.abort = Ut), Ae.finalNetworkRequestStartTime = N(J.crossOriginIsolatedCapability);
|
|
45015
45018
|
},
|
|
45016
45019
|
onResponseStarted() {
|
|
45017
45020
|
Ae.finalNetworkResponseStartTime = N(J.crossOriginIsolatedCapability);
|
|
45018
45021
|
},
|
|
45019
|
-
onHeaders(
|
|
45020
|
-
if (
|
|
45022
|
+
onHeaders(Ut, pr, xa, Ki) {
|
|
45023
|
+
if (Ut < 200)
|
|
45021
45024
|
return !1;
|
|
45022
45025
|
const tn = new o();
|
|
45023
45026
|
for (let Yr = 0; Yr < pr.length; Yr += 2)
|
|
45024
45027
|
tn.append(pt(pr[Yr]), pr[Yr + 1].toString("latin1"), !0);
|
|
45025
45028
|
const Fy = tn.get("location", !0);
|
|
45026
45029
|
this.body = new Le({ read: xa });
|
|
45027
|
-
const Qy = Fy && re.redirect === "follow" && _.has(
|
|
45028
|
-
if (re.method !== "HEAD" && re.method !== "CONNECT" && !Re.includes(
|
|
45030
|
+
const Qy = Fy && re.redirect === "follow" && _.has(Ut), xn = [];
|
|
45031
|
+
if (re.method !== "HEAD" && re.method !== "CONNECT" && !Re.includes(Ut) && !Qy) {
|
|
45029
45032
|
const Yr = tn.get("content-encoding", !0), qi = Yr ? Yr.toLowerCase().split(",") : [], Ed = 5;
|
|
45030
45033
|
if (qi.length > Ed)
|
|
45031
45034
|
return en(new Error(`too many content-encodings in response: ${qi.length}, maximum allowed is ${Ed}`)), !0;
|
|
@@ -45062,8 +45065,8 @@ function Js() {
|
|
|
45062
45065
|
}
|
|
45063
45066
|
}
|
|
45064
45067
|
const pd = this.onError.bind(this);
|
|
45065
|
-
return
|
|
45066
|
-
status:
|
|
45068
|
+
return xt({
|
|
45069
|
+
status: Ut,
|
|
45067
45070
|
statusText: Ki,
|
|
45068
45071
|
headersList: tn,
|
|
45069
45072
|
body: xn.length ? de(this.body, ...xn, (Yr) => {
|
|
@@ -45071,27 +45074,27 @@ function Js() {
|
|
|
45071
45074
|
}).on("error", pd) : this.body.on("error", pd)
|
|
45072
45075
|
}), !0;
|
|
45073
45076
|
},
|
|
45074
|
-
onData(
|
|
45077
|
+
onData(Ut) {
|
|
45075
45078
|
if (J.controller.dump)
|
|
45076
45079
|
return;
|
|
45077
|
-
const pr =
|
|
45080
|
+
const pr = Ut;
|
|
45078
45081
|
return Ae.encodedBodySize += pr.byteLength, this.body.push(pr);
|
|
45079
45082
|
},
|
|
45080
45083
|
onComplete() {
|
|
45081
45084
|
this.abort && J.controller.off("terminated", this.abort), J.controller.ended = !0, this.body.push(null);
|
|
45082
45085
|
},
|
|
45083
|
-
onError(
|
|
45084
|
-
this.abort && J.controller.off("terminated", this.abort), this.body?.destroy(
|
|
45086
|
+
onError(Ut) {
|
|
45087
|
+
this.abort && J.controller.off("terminated", this.abort), this.body?.destroy(Ut), J.controller.terminate(Ut), en(Ut);
|
|
45085
45088
|
},
|
|
45086
|
-
onUpgrade(
|
|
45087
|
-
if (xa.session != null &&
|
|
45089
|
+
onUpgrade(Ut, pr, xa) {
|
|
45090
|
+
if (xa.session != null && Ut !== 200 || xa.session == null && Ut !== 101)
|
|
45088
45091
|
return !1;
|
|
45089
45092
|
const Ki = new o();
|
|
45090
45093
|
for (let tn = 0; tn < pr.length; tn += 2)
|
|
45091
45094
|
Ki.append(pt(pr[tn]), pr[tn + 1].toString("latin1"), !0);
|
|
45092
|
-
return
|
|
45093
|
-
status:
|
|
45094
|
-
statusText: te[
|
|
45095
|
+
return xt({
|
|
45096
|
+
status: Ut,
|
|
45097
|
+
statusText: te[Ut],
|
|
45095
45098
|
headersList: Ki,
|
|
45096
45099
|
socket: xa
|
|
45097
45100
|
}), !0;
|
|
@@ -48448,7 +48451,7 @@ function lV(e, t, r) {
|
|
|
48448
48451
|
return n;
|
|
48449
48452
|
}
|
|
48450
48453
|
function cV(e) {
|
|
48451
|
-
return e ?
|
|
48454
|
+
return e ? Tt.fromPromise(
|
|
48452
48455
|
import(e),
|
|
48453
48456
|
(t) => t instanceof Error ? t : new Error(String(t))
|
|
48454
48457
|
).orElse((t) => {
|
|
@@ -48480,9 +48483,9 @@ function hV(e, t) {
|
|
|
48480
48483
|
}
|
|
48481
48484
|
return null;
|
|
48482
48485
|
}
|
|
48483
|
-
const dV = new RegExp("\\" +
|
|
48486
|
+
const dV = new RegExp("\\" + Rt.posix.sep, "g"), gV = new RegExp("\\" + Rt.sep, "g"), Ac = /* @__PURE__ */ new Map(), ca = "**/*", Ks = [".ts", ".tsx", ".mts", ".cts"], fV = [".js", ".jsx", ".mjs", ".cjs"], fd = Ks.concat(fV), mV = `\\.(?:${Ks.map((e) => e.substring(1)).join("|")})`, pV = `\\.(?:${fd.map((e) => e.substring(1)).join(
|
|
48484
48487
|
"|"
|
|
48485
|
-
)})`, md =
|
|
48488
|
+
)})`, md = Rt.posix.sep === Rt.sep;
|
|
48486
48489
|
function EV() {
|
|
48487
48490
|
let e, t;
|
|
48488
48491
|
return { promise: new Promise((n, a) => {
|
|
@@ -48497,22 +48500,22 @@ async function yy() {
|
|
|
48497
48500
|
}
|
|
48498
48501
|
}
|
|
48499
48502
|
async function CV(e, t) {
|
|
48500
|
-
if (
|
|
48503
|
+
if (Rt.extname(e) !== ".json")
|
|
48501
48504
|
return;
|
|
48502
|
-
const r =
|
|
48505
|
+
const r = Rt.resolve(e);
|
|
48503
48506
|
return xy.stat(r).then((n) => {
|
|
48504
48507
|
if (n.isFile() || n.isFIFO())
|
|
48505
48508
|
return r;
|
|
48506
48509
|
throw new Error(`${e} exists but is not a regular file.`);
|
|
48507
48510
|
});
|
|
48508
48511
|
}
|
|
48509
|
-
const lc = md ? (e) => e : (e) => e.replace(dV,
|
|
48510
|
-
e ?
|
|
48512
|
+
const lc = md ? (e) => e : (e) => e.replace(dV, Rt.sep), Vi = md ? (e) => e : (e) => e.replace(gV, Rt.posix.sep), ls = md ? (e, t) => e ? Rt.resolve(e, t) : Rt.resolve(t) : (e, t) => Vi(
|
|
48513
|
+
e ? Rt.resolve(lc(e), lc(t)) : Rt.resolve(lc(t))
|
|
48511
48514
|
);
|
|
48512
48515
|
function BV(e, t) {
|
|
48513
|
-
const r =
|
|
48516
|
+
const r = Rt.dirname(e.tsconfigFile);
|
|
48514
48517
|
return e.tsconfig.references.map((n) => {
|
|
48515
|
-
const a = n.path.endsWith(".json") ? n.path :
|
|
48518
|
+
const a = n.path.endsWith(".json") ? n.path : Rt.join(n.path, "tsconfig.json");
|
|
48516
48519
|
return ls(r, a);
|
|
48517
48520
|
});
|
|
48518
48521
|
}
|
|
@@ -48528,7 +48531,7 @@ function bV(e, t) {
|
|
|
48528
48531
|
return t;
|
|
48529
48532
|
}
|
|
48530
48533
|
function dE(e, t) {
|
|
48531
|
-
const r = Vi(
|
|
48534
|
+
const r = Vi(Rt.dirname(t.tsconfigFile)), n = (t.tsconfig.files || []).map((u) => ls(r, u)), a = ls(null, e);
|
|
48532
48535
|
if (n.includes(e))
|
|
48533
48536
|
return !0;
|
|
48534
48537
|
const i = t.tsconfig.compilerOptions?.allowJs;
|
|
@@ -48593,12 +48596,12 @@ function yV(e, t) {
|
|
|
48593
48596
|
}
|
|
48594
48597
|
function IV(e) {
|
|
48595
48598
|
e.tsconfig && (e.tsconfig = JSON.parse(
|
|
48596
|
-
JSON.stringify(e.tsconfig).replaceAll(/"\${configDir}/g, `"${Vi(
|
|
48599
|
+
JSON.stringify(e.tsconfig).replaceAll(/"\${configDir}/g, `"${Vi(Rt.dirname(e.tsconfigFile))}`)
|
|
48597
48600
|
));
|
|
48598
48601
|
}
|
|
48599
|
-
|
|
48602
|
+
Rt.sep;
|
|
48600
48603
|
async function FV(e, t) {
|
|
48601
|
-
let r = Vi(
|
|
48604
|
+
let r = Vi(Rt.dirname(Rt.resolve(e)));
|
|
48602
48605
|
const n = void 0, a = "tsconfig.json", i = await yy(), { findConfigFile: o, sys: u } = i;
|
|
48603
48606
|
let l = o(r, u.fileExists, a);
|
|
48604
48607
|
return (!l || QV(l, n)) && (l = null), l;
|
|
@@ -48647,7 +48650,7 @@ function Iy(e, t, r, n) {
|
|
|
48647
48650
|
}, c = o(
|
|
48648
48651
|
s,
|
|
48649
48652
|
d,
|
|
48650
|
-
|
|
48653
|
+
Rt.dirname(i),
|
|
48651
48654
|
void 0,
|
|
48652
48655
|
i
|
|
48653
48656
|
);
|
|
@@ -48766,8 +48769,8 @@ class Fi extends Error {
|
|
|
48766
48769
|
result;
|
|
48767
48770
|
}
|
|
48768
48771
|
function NV(e) {
|
|
48769
|
-
const t =
|
|
48770
|
-
return cc.existsSync(t) ?
|
|
48772
|
+
const t = Rt.resolve(e);
|
|
48773
|
+
return cc.existsSync(t) ? Tt.fromPromise(
|
|
48771
48774
|
DV(t),
|
|
48772
48775
|
(r) => new ba(`Failed to parse TypeScript config for ${t}`, {
|
|
48773
48776
|
cause: r,
|
|
@@ -48839,17 +48842,23 @@ export {
|
|
|
48839
48842
|
ei as IoError,
|
|
48840
48843
|
bC as NotFoundError,
|
|
48841
48844
|
ba as ParseError,
|
|
48845
|
+
Ea as Result,
|
|
48846
|
+
Tt as ResultAsync,
|
|
48842
48847
|
gK as ValidationError,
|
|
48843
48848
|
LL as buildElementTree,
|
|
48844
48849
|
NV as compileTsFile,
|
|
48845
48850
|
DL as createCssPropertiesExtractor,
|
|
48846
48851
|
UL as createPropTrackerExtractor,
|
|
48852
|
+
gr as err,
|
|
48853
|
+
Jn as errAsync,
|
|
48847
48854
|
Ig as extractAllComponentInfo,
|
|
48848
48855
|
UK as extractComponentManifest,
|
|
48849
48856
|
Yw as extractCssImports,
|
|
48850
48857
|
Rw as extractDefaultComponentInfo,
|
|
48851
48858
|
hV as findComponent,
|
|
48852
48859
|
cV as loadModule,
|
|
48860
|
+
Nt as ok,
|
|
48861
|
+
yE as okAsync,
|
|
48853
48862
|
vH as parseCss,
|
|
48854
48863
|
Vw as renderWithExtractors,
|
|
48855
48864
|
xL as runExtractors,
|