@feedmepos/mf-common 1.6.8 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ var _o = (i, n, a) => {
|
|
2
2
|
if (!n.has(i))
|
3
3
|
throw TypeError("Cannot " + a);
|
4
4
|
};
|
5
|
-
var
|
5
|
+
var I = (i, n, a) => (_o(i, n, "read from private field"), a ? a.call(i) : n.get(i)), Ae = (i, n, a) => {
|
6
6
|
if (n.has(i))
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
8
8
|
n instanceof WeakSet ? n.add(i) : n.set(i, a);
|
@@ -93,10 +93,10 @@ function Oi(i) {
|
|
93
93
|
let u = "", l = !1;
|
94
94
|
const h = a[0] || "text/plain";
|
95
95
|
let c = h;
|
96
|
-
for (let
|
97
|
-
a[
|
96
|
+
for (let v = 1; v < a.length; v++)
|
97
|
+
a[v] === "base64" ? l = !0 : a[v] && (c += `;${a[v]}`, a[v].indexOf("charset=") === 0 && (u = a[v].substring(8)));
|
98
98
|
!a[0] && !u.length && (c += ";charset=US-ASCII", u = "US-ASCII");
|
99
|
-
const
|
99
|
+
const C = l ? "base64" : "ascii", T = unescape(i.substring(n + 1)), _ = Buffer.from(T, C);
|
100
100
|
return _.type = h, _.typeFull = c, _.charset = u, _;
|
101
101
|
}
|
102
102
|
var Vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Jt = { exports: {} };
|
@@ -128,49 +128,49 @@ function zi() {
|
|
128
128
|
} catch {
|
129
129
|
}
|
130
130
|
}
|
131
|
-
const
|
132
|
-
function
|
133
|
-
return new
|
131
|
+
const C = Promise, T = Promise.prototype.then, _ = Promise.reject.bind(C);
|
132
|
+
function v(e) {
|
133
|
+
return new C(e);
|
134
134
|
}
|
135
135
|
function w(e) {
|
136
|
-
return
|
136
|
+
return v((t) => t(e));
|
137
137
|
}
|
138
138
|
function m(e) {
|
139
139
|
return _(e);
|
140
140
|
}
|
141
141
|
function W(e, t, r) {
|
142
|
-
return
|
142
|
+
return T.call(e, t, r);
|
143
143
|
}
|
144
144
|
function p(e, t, r) {
|
145
145
|
W(W(e, t, r), void 0, h);
|
146
146
|
}
|
147
|
-
function
|
147
|
+
function E(e, t) {
|
148
148
|
p(e, t);
|
149
149
|
}
|
150
|
-
function
|
150
|
+
function B(e, t) {
|
151
151
|
p(e, void 0, t);
|
152
152
|
}
|
153
|
-
function
|
153
|
+
function z(e, t, r) {
|
154
154
|
return W(e, t, r);
|
155
155
|
}
|
156
156
|
function x(e) {
|
157
157
|
W(e, void 0, h);
|
158
158
|
}
|
159
|
-
let
|
159
|
+
let K = (e) => {
|
160
160
|
if (typeof queueMicrotask == "function")
|
161
|
-
|
161
|
+
K = queueMicrotask;
|
162
162
|
else {
|
163
163
|
const t = w(void 0);
|
164
|
-
|
164
|
+
K = (r) => W(t, r);
|
165
165
|
}
|
166
|
-
return
|
166
|
+
return K(e);
|
167
167
|
};
|
168
168
|
function O(e, t, r) {
|
169
169
|
if (typeof e != "function")
|
170
170
|
throw new TypeError("Argument is not a function");
|
171
171
|
return Function.prototype.apply.call(e, t, r);
|
172
172
|
}
|
173
|
-
function
|
173
|
+
function F(e, t, r) {
|
174
174
|
try {
|
175
175
|
return w(O(e, t, r));
|
176
176
|
} catch (o) {
|
@@ -236,7 +236,7 @@ function zi() {
|
|
236
236
|
}
|
237
237
|
function ur(e, t) {
|
238
238
|
const r = e._ownerReadableStream;
|
239
|
-
return
|
239
|
+
return ee(r, t);
|
240
240
|
}
|
241
241
|
function le(e) {
|
242
242
|
const t = e._ownerReadableStream;
|
@@ -246,7 +246,7 @@ function zi() {
|
|
246
246
|
return new TypeError("Cannot " + e + " a stream using a released reader");
|
247
247
|
}
|
248
248
|
function fr(e) {
|
249
|
-
e._closedPromise =
|
249
|
+
e._closedPromise = v((t, r) => {
|
250
250
|
e._closedPromise_resolve = t, e._closedPromise_reject = r;
|
251
251
|
});
|
252
252
|
}
|
@@ -365,7 +365,7 @@ function zi() {
|
|
365
365
|
if (this._ownerReadableStream === void 0)
|
366
366
|
return m(St("read from"));
|
367
367
|
let t, r;
|
368
|
-
const o =
|
368
|
+
const o = v((f, d) => {
|
369
369
|
t = f, r = d;
|
370
370
|
});
|
371
371
|
return tt(this, {
|
@@ -427,23 +427,23 @@ function zi() {
|
|
427
427
|
}
|
428
428
|
next() {
|
429
429
|
const t = () => this._nextSteps();
|
430
|
-
return this._ongoingPromise = this._ongoingPromise ?
|
430
|
+
return this._ongoingPromise = this._ongoingPromise ? z(this._ongoingPromise, t, t) : t(), this._ongoingPromise;
|
431
431
|
}
|
432
432
|
return(t) {
|
433
433
|
const r = () => this._returnSteps(t);
|
434
|
-
return this._ongoingPromise ?
|
434
|
+
return this._ongoingPromise ? z(this._ongoingPromise, r, r) : r();
|
435
435
|
}
|
436
436
|
_nextSteps() {
|
437
437
|
if (this._isFinished)
|
438
438
|
return Promise.resolve({ value: void 0, done: !0 });
|
439
439
|
const t = this._reader;
|
440
440
|
let r, o;
|
441
|
-
const s =
|
441
|
+
const s = v((d, b) => {
|
442
442
|
r = d, o = b;
|
443
443
|
});
|
444
444
|
return tt(t, {
|
445
445
|
_chunkSteps: (d) => {
|
446
|
-
this._ongoingPromise = void 0,
|
446
|
+
this._ongoingPromise = void 0, K(() => r({ value: d, done: !1 }));
|
447
447
|
},
|
448
448
|
_closeSteps: () => {
|
449
449
|
this._ongoingPromise = void 0, this._isFinished = !0, le(t), r({ value: void 0, done: !0 });
|
@@ -460,7 +460,7 @@ function zi() {
|
|
460
460
|
const r = this._reader;
|
461
461
|
if (!this._preventCancel) {
|
462
462
|
const o = ur(r, t);
|
463
|
-
return le(r),
|
463
|
+
return le(r), z(o, () => ({ value: t, done: !0 }));
|
464
464
|
}
|
465
465
|
return le(r), w({ value: t, done: !0 });
|
466
466
|
}
|
@@ -791,8 +791,8 @@ function zi() {
|
|
791
791
|
b >= t.minimumFill && (s = b - t.bytesFilled, f = !0);
|
792
792
|
const S = e._queue;
|
793
793
|
for (; s > 0; ) {
|
794
|
-
const y = S.peek(),
|
795
|
-
pn(t.buffer, P, y.buffer, y.byteOffset,
|
794
|
+
const y = S.peek(), R = Math.min(s, y.byteLength), P = t.byteOffset + t.bytesFilled;
|
795
|
+
pn(t.buffer, P, y.buffer, y.byteOffset, R), y.byteLength === R ? S.shift() : (y.byteOffset += R, y.byteLength -= R), e._queueTotalSize -= R, vn(e, R, t), s -= R;
|
796
796
|
}
|
797
797
|
return f;
|
798
798
|
}
|
@@ -824,16 +824,16 @@ function zi() {
|
|
824
824
|
}
|
825
825
|
function Ko(e, t, r, o) {
|
826
826
|
const s = e._controlledReadableByteStream, f = t.constructor, d = Jo(f), { byteOffset: b, byteLength: S } = t, y = r * d;
|
827
|
-
let
|
827
|
+
let R;
|
828
828
|
try {
|
829
|
-
|
829
|
+
R = fe(t.buffer);
|
830
830
|
} catch (k) {
|
831
831
|
o._errorSteps(k);
|
832
832
|
return;
|
833
833
|
}
|
834
834
|
const P = {
|
835
|
-
buffer:
|
836
|
-
bufferByteLength:
|
835
|
+
buffer: R,
|
836
|
+
bufferByteLength: R.byteLength,
|
837
837
|
byteOffset: b,
|
838
838
|
byteLength: S,
|
839
839
|
bytesFilled: 0,
|
@@ -1106,8 +1106,8 @@ function zi() {
|
|
1106
1106
|
if (this._ownerReadableStream === void 0)
|
1107
1107
|
return m(St("read from"));
|
1108
1108
|
let f, d;
|
1109
|
-
const b =
|
1110
|
-
f = y, d =
|
1109
|
+
const b = v((y, R) => {
|
1110
|
+
f = y, d = R;
|
1111
1111
|
});
|
1112
1112
|
return Fn(this, t, s, {
|
1113
1113
|
_chunkSteps: (y) => f({ value: y, done: !1 }),
|
@@ -1195,16 +1195,16 @@ function zi() {
|
|
1195
1195
|
};
|
1196
1196
|
}
|
1197
1197
|
function da(e, t, r) {
|
1198
|
-
return Y(e, r), (o) =>
|
1198
|
+
return Y(e, r), (o) => F(e, t, [o]);
|
1199
1199
|
}
|
1200
1200
|
function ca(e, t, r) {
|
1201
|
-
return Y(e, r), () =>
|
1201
|
+
return Y(e, r), () => F(e, t, []);
|
1202
1202
|
}
|
1203
1203
|
function ha(e, t, r) {
|
1204
1204
|
return Y(e, r), (o) => O(e, t, [o]);
|
1205
1205
|
}
|
1206
1206
|
function ma(e, t, r) {
|
1207
|
-
return Y(e, r), (o, s) =>
|
1207
|
+
return Y(e, r), (o, s) => F(e, t, [o, s]);
|
1208
1208
|
}
|
1209
1209
|
function jn(e, t) {
|
1210
1210
|
if (!$e(e))
|
@@ -1317,7 +1317,7 @@ function zi() {
|
|
1317
1317
|
return e._pendingAbortRequest._promise;
|
1318
1318
|
let s = !1;
|
1319
1319
|
o === "erroring" && (s = !0, t = void 0);
|
1320
|
-
const f =
|
1320
|
+
const f = v((d, b) => {
|
1321
1321
|
e._pendingAbortRequest = {
|
1322
1322
|
_promise: void 0,
|
1323
1323
|
_resolve: d,
|
@@ -1332,7 +1332,7 @@ function zi() {
|
|
1332
1332
|
const t = e._state;
|
1333
1333
|
if (t === "closed" || t === "errored")
|
1334
1334
|
return m(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));
|
1335
|
-
const r =
|
1335
|
+
const r = v((s, f) => {
|
1336
1336
|
const d = {
|
1337
1337
|
_resolve: s,
|
1338
1338
|
_reject: f
|
@@ -1342,7 +1342,7 @@ function zi() {
|
|
1342
1342
|
return o !== void 0 && e._backpressure && t === "writable" && Dr(o), qa(e._writableStreamController), r;
|
1343
1343
|
}
|
1344
1344
|
function _a(e) {
|
1345
|
-
return
|
1345
|
+
return v((r, o) => {
|
1346
1346
|
const s = {
|
1347
1347
|
_resolve: r,
|
1348
1348
|
_reject: o
|
@@ -1618,8 +1618,8 @@ function zi() {
|
|
1618
1618
|
t._controlledWritableStream = e, e._writableStreamController = t, t._queue = void 0, t._queueTotalSize = void 0, we(t), t._abortReason = void 0, t._abortController = ya(), t._started = !1, t._strategySizeAlgorithm = b, t._strategyHWM = d, t._writeAlgorithm = o, t._closeAlgorithm = s, t._abortAlgorithm = f;
|
1619
1619
|
const S = Fr(t);
|
1620
1620
|
Or(e, S);
|
1621
|
-
const y = r(),
|
1622
|
-
p(
|
1621
|
+
const y = r(), R = w(y);
|
1622
|
+
p(R, () => (t._started = !0, Ft(t), null), (P) => (t._started = !0, Wr(e, P), null));
|
1623
1623
|
}
|
1624
1624
|
function ka(e, t, r, o) {
|
1625
1625
|
const s = Object.create(Ue.prototype);
|
@@ -1713,7 +1713,7 @@ function zi() {
|
|
1713
1713
|
return new TypeError("Cannot " + e + " a stream using a released writer");
|
1714
1714
|
}
|
1715
1715
|
function jt(e) {
|
1716
|
-
e._closedPromise =
|
1716
|
+
e._closedPromise = v((t, r) => {
|
1717
1717
|
e._closedPromise_resolve = t, e._closedPromise_reject = r, e._closedPromiseState = "pending";
|
1718
1718
|
});
|
1719
1719
|
}
|
@@ -1733,7 +1733,7 @@ function zi() {
|
|
1733
1733
|
e._closedPromise_resolve !== void 0 && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0, e._closedPromiseState = "resolved");
|
1734
1734
|
}
|
1735
1735
|
function Lt(e) {
|
1736
|
-
e._readyPromise =
|
1736
|
+
e._readyPromise = v((t, r) => {
|
1737
1737
|
e._readyPromise_resolve = t, e._readyPromise_reject = r;
|
1738
1738
|
}), e._readyPromiseState = "pending";
|
1739
1739
|
}
|
@@ -1788,20 +1788,20 @@ function zi() {
|
|
1788
1788
|
const d = Le(e), b = Ln(t);
|
1789
1789
|
e._disturbed = !0;
|
1790
1790
|
let S = !1, y = w(void 0);
|
1791
|
-
return
|
1791
|
+
return v((R, P) => {
|
1792
1792
|
let k;
|
1793
1793
|
if (f !== void 0) {
|
1794
1794
|
if (k = () => {
|
1795
1795
|
const g = f.reason !== void 0 ? f.reason : new Ha("Aborted", "AbortError"), A = [];
|
1796
|
-
o || A.push(() => t._state === "writable" ? qt(t, g) : w(void 0)), s || A.push(() => e._state === "readable" ?
|
1796
|
+
o || A.push(() => t._state === "writable" ? qt(t, g) : w(void 0)), s || A.push(() => e._state === "readable" ? ee(e, g) : w(void 0)), N(() => Promise.all(A.map((q) => q())), !0, g);
|
1797
1797
|
}, f.aborted) {
|
1798
1798
|
k();
|
1799
1799
|
return;
|
1800
1800
|
}
|
1801
1801
|
f.addEventListener("abort", k);
|
1802
1802
|
}
|
1803
|
-
function
|
1804
|
-
return
|
1803
|
+
function te() {
|
1804
|
+
return v((g, A) => {
|
1805
1805
|
function q(Q) {
|
1806
1806
|
Q ? g() : W(Qe(), q, A);
|
1807
1807
|
}
|
@@ -1809,7 +1809,7 @@ function zi() {
|
|
1809
1809
|
});
|
1810
1810
|
}
|
1811
1811
|
function Qe() {
|
1812
|
-
return S ? w(!0) : W(b._readyPromise, () =>
|
1812
|
+
return S ? w(!0) : W(b._readyPromise, () => v((g, A) => {
|
1813
1813
|
tt(d, {
|
1814
1814
|
_chunkSteps: (q) => {
|
1815
1815
|
y = W(Nn(b, q), void 0, u), g(!1);
|
@@ -1819,34 +1819,34 @@ function zi() {
|
|
1819
1819
|
});
|
1820
1820
|
}));
|
1821
1821
|
}
|
1822
|
-
if (me(e, d._closedPromise, (g) => (o ? J(!0, g) : N(() => qt(t, g), !0, g), null)), me(t, b._closedPromise, (g) => (s ? J(!0, g) : N(() =>
|
1822
|
+
if (me(e, d._closedPromise, (g) => (o ? J(!0, g) : N(() => qt(t, g), !0, g), null)), me(t, b._closedPromise, (g) => (s ? J(!0, g) : N(() => ee(e, g), !0, g), null)), U(e, d._closedPromise, () => (r ? J() : N(() => Aa(b)), null)), oe(t) || t._state === "closed") {
|
1823
1823
|
const g = new TypeError("the destination writable stream closed before all data could be piped to it");
|
1824
|
-
s ? J(!0, g) : N(() =>
|
1824
|
+
s ? J(!0, g) : N(() => ee(e, g), !0, g);
|
1825
1825
|
}
|
1826
|
-
x(
|
1826
|
+
x(te());
|
1827
1827
|
function Ee() {
|
1828
1828
|
const g = y;
|
1829
1829
|
return W(y, () => g !== y ? Ee() : void 0);
|
1830
1830
|
}
|
1831
1831
|
function me(g, A, q) {
|
1832
|
-
g._state === "errored" ? q(g._storedError) :
|
1832
|
+
g._state === "errored" ? q(g._storedError) : B(A, q);
|
1833
1833
|
}
|
1834
1834
|
function U(g, A, q) {
|
1835
|
-
g._state === "closed" ? q() :
|
1835
|
+
g._state === "closed" ? q() : E(A, q);
|
1836
1836
|
}
|
1837
1837
|
function N(g, A, q) {
|
1838
1838
|
if (S)
|
1839
1839
|
return;
|
1840
|
-
S = !0, t._state === "writable" && !oe(t) ?
|
1840
|
+
S = !0, t._state === "writable" && !oe(t) ? E(Ee(), Q) : Q();
|
1841
1841
|
function Q() {
|
1842
1842
|
return p(g(), () => be(A, q), (Ve) => be(!0, Ve)), null;
|
1843
1843
|
}
|
1844
1844
|
}
|
1845
1845
|
function J(g, A) {
|
1846
|
-
S || (S = !0, t._state === "writable" && !oe(t) ?
|
1846
|
+
S || (S = !0, t._state === "writable" && !oe(t) ? E(Ee(), () => be(g, A)) : be(g, A));
|
1847
1847
|
}
|
1848
1848
|
function be(g, A) {
|
1849
|
-
return xn(b), le(d), f !== void 0 && f.removeEventListener("abort", k), g ? P(A) :
|
1849
|
+
return xn(b), le(d), f !== void 0 && f.removeEventListener("abort", k), g ? P(A) : R(void 0), null;
|
1850
1850
|
}
|
1851
1851
|
});
|
1852
1852
|
}
|
@@ -1887,7 +1887,7 @@ function zi() {
|
|
1887
1887
|
error(t = void 0) {
|
1888
1888
|
if (!Dt(this))
|
1889
1889
|
throw Mt("error");
|
1890
|
-
|
1890
|
+
X(this, t);
|
1891
1891
|
}
|
1892
1892
|
/** @internal */
|
1893
1893
|
[ir](t) {
|
@@ -1929,7 +1929,7 @@ function zi() {
|
|
1929
1929
|
}
|
1930
1930
|
e._pulling = !0;
|
1931
1931
|
const r = e._pullAlgorithm();
|
1932
|
-
p(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, lt(e)), null), (o) => (
|
1932
|
+
p(r, () => (e._pulling = !1, e._pullAgain && (e._pullAgain = !1, lt(e)), null), (o) => (X(e, o), null));
|
1933
1933
|
}
|
1934
1934
|
function eo(e) {
|
1935
1935
|
const t = e._controlledReadableStream;
|
@@ -1955,17 +1955,17 @@ function zi() {
|
|
1955
1955
|
try {
|
1956
1956
|
o = e._strategySizeAlgorithm(t);
|
1957
1957
|
} catch (s) {
|
1958
|
-
throw
|
1958
|
+
throw X(e, s), s;
|
1959
1959
|
}
|
1960
1960
|
try {
|
1961
1961
|
Rr(e, t, o);
|
1962
1962
|
} catch (s) {
|
1963
|
-
throw
|
1963
|
+
throw X(e, s), s;
|
1964
1964
|
}
|
1965
1965
|
}
|
1966
1966
|
lt(e);
|
1967
1967
|
}
|
1968
|
-
function
|
1968
|
+
function X(e, t) {
|
1969
1969
|
const r = e._controlledReadableStream;
|
1970
1970
|
r._state === "readable" && (we(e), $t(e), oo(r, t));
|
1971
1971
|
}
|
@@ -1983,7 +1983,7 @@ function zi() {
|
|
1983
1983
|
function to(e, t, r, o, s, f, d) {
|
1984
1984
|
t._controlledReadableStream = e, t._queue = void 0, t._queueTotalSize = void 0, we(t), t._started = !1, t._closeRequested = !1, t._pullAgain = !1, t._pulling = !1, t._strategySizeAlgorithm = d, t._strategyHWM = f, t._pullAlgorithm = o, t._cancelAlgorithm = s, e._readableStreamController = t;
|
1985
1985
|
const b = r();
|
1986
|
-
p(w(b), () => (t._started = !0, lt(t), null), (S) => (
|
1986
|
+
p(w(b), () => (t._started = !0, lt(t), null), (S) => (X(t, S), null));
|
1987
1987
|
}
|
1988
1988
|
function Va(e, t, r, o) {
|
1989
1989
|
const s = Object.create(he.prototype);
|
@@ -1999,21 +1999,21 @@ function zi() {
|
|
1999
1999
|
}
|
2000
2000
|
function Ga(e, t) {
|
2001
2001
|
const r = Le(e);
|
2002
|
-
let o = !1, s = !1, f = !1, d = !1, b, S, y,
|
2003
|
-
const k =
|
2002
|
+
let o = !1, s = !1, f = !1, d = !1, b, S, y, R, P;
|
2003
|
+
const k = v((U) => {
|
2004
2004
|
P = U;
|
2005
2005
|
});
|
2006
|
-
function
|
2006
|
+
function te() {
|
2007
2007
|
return o ? (s = !0, w(void 0)) : (o = !0, tt(r, {
|
2008
2008
|
_chunkSteps: (N) => {
|
2009
|
-
|
2009
|
+
K(() => {
|
2010
2010
|
s = !1;
|
2011
2011
|
const J = N, be = N;
|
2012
|
-
f || xe(y._readableStreamController, J), d || xe(
|
2012
|
+
f || xe(y._readableStreamController, J), d || xe(R._readableStreamController, be), o = !1, s && te();
|
2013
2013
|
});
|
2014
2014
|
},
|
2015
2015
|
_closeSteps: () => {
|
2016
|
-
o = !1, f || Fe(y._readableStreamController), d || Fe(
|
2016
|
+
o = !1, f || Fe(y._readableStreamController), d || Fe(R._readableStreamController), (!f || !d) && P(void 0);
|
2017
2017
|
},
|
2018
2018
|
_errorSteps: () => {
|
2019
2019
|
o = !1;
|
@@ -2022,34 +2022,34 @@ function zi() {
|
|
2022
2022
|
}
|
2023
2023
|
function Qe(U) {
|
2024
2024
|
if (f = !0, b = U, d) {
|
2025
|
-
const N = rt([b, S]), J =
|
2025
|
+
const N = rt([b, S]), J = ee(e, N);
|
2026
2026
|
P(J);
|
2027
2027
|
}
|
2028
2028
|
return k;
|
2029
2029
|
}
|
2030
2030
|
function Ee(U) {
|
2031
2031
|
if (d = !0, S = U, f) {
|
2032
|
-
const N = rt([b, S]), J =
|
2032
|
+
const N = rt([b, S]), J = ee(e, N);
|
2033
2033
|
P(J);
|
2034
2034
|
}
|
2035
2035
|
return k;
|
2036
2036
|
}
|
2037
2037
|
function me() {
|
2038
2038
|
}
|
2039
|
-
return y = ut(me,
|
2039
|
+
return y = ut(me, te, Qe), R = ut(me, te, Ee), B(r._closedPromise, (U) => (X(y._readableStreamController, U), X(R._readableStreamController, U), (!f || !d) && P(void 0), null)), [y, R];
|
2040
2040
|
}
|
2041
2041
|
function Ja(e) {
|
2042
|
-
let t = Le(e), r = !1, o = !1, s = !1, f = !1, d = !1, b, S, y,
|
2043
|
-
const k =
|
2042
|
+
let t = Le(e), r = !1, o = !1, s = !1, f = !1, d = !1, b, S, y, R, P;
|
2043
|
+
const k = v((g) => {
|
2044
2044
|
P = g;
|
2045
2045
|
});
|
2046
|
-
function
|
2047
|
-
|
2046
|
+
function te(g) {
|
2047
|
+
B(g._closedPromise, (A) => (g !== t || (G(y._readableStreamController, A), G(R._readableStreamController, A), (!f || !d) && P(void 0)), null));
|
2048
2048
|
}
|
2049
2049
|
function Qe() {
|
2050
|
-
qe(t) && (le(t), t = Le(e),
|
2050
|
+
qe(t) && (le(t), t = Le(e), te(t)), tt(t, {
|
2051
2051
|
_chunkSteps: (A) => {
|
2052
|
-
|
2052
|
+
K(() => {
|
2053
2053
|
o = !1, s = !1;
|
2054
2054
|
const q = A;
|
2055
2055
|
let Q = A;
|
@@ -2057,14 +2057,14 @@ function zi() {
|
|
2057
2057
|
try {
|
2058
2058
|
Q = _n(A);
|
2059
2059
|
} catch (Ve) {
|
2060
|
-
G(y._readableStreamController, Ve), G(
|
2060
|
+
G(y._readableStreamController, Ve), G(R._readableStreamController, Ve), P(ee(e, Ve));
|
2061
2061
|
return;
|
2062
2062
|
}
|
2063
|
-
f || vt(y._readableStreamController, q), d || vt(
|
2063
|
+
f || vt(y._readableStreamController, q), d || vt(R._readableStreamController, Q), r = !1, o ? me() : s && U();
|
2064
2064
|
});
|
2065
2065
|
},
|
2066
2066
|
_closeSteps: () => {
|
2067
|
-
r = !1, f || nt(y._readableStreamController), d || nt(
|
2067
|
+
r = !1, f || nt(y._readableStreamController), d || nt(R._readableStreamController), y._readableStreamController._pendingPullIntos.length > 0 && Et(y._readableStreamController, 0), R._readableStreamController._pendingPullIntos.length > 0 && Et(R._readableStreamController, 0), (!f || !d) && P(void 0);
|
2068
2068
|
},
|
2069
2069
|
_errorSteps: () => {
|
2070
2070
|
r = !1;
|
@@ -2072,11 +2072,11 @@ function zi() {
|
|
2072
2072
|
});
|
2073
2073
|
}
|
2074
2074
|
function Ee(g, A) {
|
2075
|
-
_e(t) && (le(t), t = qn(e),
|
2076
|
-
const q = A ?
|
2075
|
+
_e(t) && (le(t), t = qn(e), te(t));
|
2076
|
+
const q = A ? R : y, Q = A ? y : R;
|
2077
2077
|
Fn(t, g, 1, {
|
2078
2078
|
_chunkSteps: (Ye) => {
|
2079
|
-
|
2079
|
+
K(() => {
|
2080
2080
|
o = !1, s = !1;
|
2081
2081
|
const Ge = A ? d : f;
|
2082
2082
|
if (A ? f : d)
|
@@ -2086,7 +2086,7 @@ function zi() {
|
|
2086
2086
|
try {
|
2087
2087
|
go = _n(Ye);
|
2088
2088
|
} catch (Qr) {
|
2089
|
-
G(q._readableStreamController, Qr), G(Q._readableStreamController, Qr), P(
|
2089
|
+
G(q._readableStreamController, Qr), G(Q._readableStreamController, Qr), P(ee(e, Qr));
|
2090
2090
|
return;
|
2091
2091
|
}
|
2092
2092
|
Ge || At(q._readableStreamController, Ye), vt(Q._readableStreamController, go);
|
@@ -2115,26 +2115,26 @@ function zi() {
|
|
2115
2115
|
if (r)
|
2116
2116
|
return s = !0, w(void 0);
|
2117
2117
|
r = !0;
|
2118
|
-
const g = Er(
|
2118
|
+
const g = Er(R._readableStreamController);
|
2119
2119
|
return g === null ? Qe() : Ee(g._view, !0), w(void 0);
|
2120
2120
|
}
|
2121
2121
|
function N(g) {
|
2122
2122
|
if (f = !0, b = g, d) {
|
2123
|
-
const A = rt([b, S]), q =
|
2123
|
+
const A = rt([b, S]), q = ee(e, A);
|
2124
2124
|
P(q);
|
2125
2125
|
}
|
2126
2126
|
return k;
|
2127
2127
|
}
|
2128
2128
|
function J(g) {
|
2129
2129
|
if (d = !0, S = g, f) {
|
2130
|
-
const A = rt([b, S]), q =
|
2130
|
+
const A = rt([b, S]), q = ee(e, A);
|
2131
2131
|
P(q);
|
2132
2132
|
}
|
2133
2133
|
return k;
|
2134
2134
|
}
|
2135
2135
|
function be() {
|
2136
2136
|
}
|
2137
|
-
return y = no(be, me, N),
|
2137
|
+
return y = no(be, me, N), R = no(be, U, J), te(t), [y, R];
|
2138
2138
|
}
|
2139
2139
|
function Za(e) {
|
2140
2140
|
return l(e) && typeof e.getReader < "u";
|
@@ -2153,14 +2153,14 @@ function zi() {
|
|
2153
2153
|
return m(S);
|
2154
2154
|
}
|
2155
2155
|
const b = w(d);
|
2156
|
-
return
|
2156
|
+
return z(b, (S) => {
|
2157
2157
|
if (!l(S))
|
2158
2158
|
throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");
|
2159
2159
|
if (Ho(S))
|
2160
2160
|
Fe(t._readableStreamController);
|
2161
2161
|
else {
|
2162
|
-
const
|
2163
|
-
xe(t._readableStreamController,
|
2162
|
+
const R = Qo(S);
|
2163
|
+
xe(t._readableStreamController, R);
|
2164
2164
|
}
|
2165
2165
|
});
|
2166
2166
|
}
|
@@ -2180,8 +2180,8 @@ function zi() {
|
|
2180
2180
|
} catch (P) {
|
2181
2181
|
return m(P);
|
2182
2182
|
}
|
2183
|
-
const
|
2184
|
-
return
|
2183
|
+
const R = w(y);
|
2184
|
+
return z(R, (P) => {
|
2185
2185
|
if (!l(P))
|
2186
2186
|
throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object");
|
2187
2187
|
});
|
@@ -2198,7 +2198,7 @@ function zi() {
|
|
2198
2198
|
} catch (d) {
|
2199
2199
|
return m(d);
|
2200
2200
|
}
|
2201
|
-
return
|
2201
|
+
return z(f, (d) => {
|
2202
2202
|
if (!l(d))
|
2203
2203
|
throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");
|
2204
2204
|
if (d.done)
|
@@ -2230,10 +2230,10 @@ function zi() {
|
|
2230
2230
|
};
|
2231
2231
|
}
|
2232
2232
|
function ri(e, t, r) {
|
2233
|
-
return Y(e, r), (o) =>
|
2233
|
+
return Y(e, r), (o) => F(e, t, [o]);
|
2234
2234
|
}
|
2235
2235
|
function ni(e, t, r) {
|
2236
|
-
return Y(e, r), (o) =>
|
2236
|
+
return Y(e, r), (o) => F(e, t, [o]);
|
2237
2237
|
}
|
2238
2238
|
function oi(e, t, r) {
|
2239
2239
|
return Y(e, r), (o) => O(e, t, [o]);
|
@@ -2296,7 +2296,7 @@ function zi() {
|
|
2296
2296
|
* method, which might or might not use it.
|
2297
2297
|
*/
|
2298
2298
|
cancel(t = void 0) {
|
2299
|
-
return Te(this) ? Pe(this) ? m(new TypeError("Cannot cancel a stream that already has a reader")) :
|
2299
|
+
return Te(this) ? Pe(this) ? m(new TypeError("Cannot cancel a stream that already has a reader")) : ee(this, t) : m(Ie("cancel"));
|
2300
2300
|
}
|
2301
2301
|
getReader(t = void 0) {
|
2302
2302
|
if (!Te(this))
|
@@ -2405,7 +2405,7 @@ function zi() {
|
|
2405
2405
|
function Pe(e) {
|
2406
2406
|
return e._reader !== void 0;
|
2407
2407
|
}
|
2408
|
-
function
|
2408
|
+
function ee(e, t) {
|
2409
2409
|
if (e._disturbed = !0, e._state === "closed")
|
2410
2410
|
return w(void 0);
|
2411
2411
|
if (e._state === "errored")
|
@@ -2419,7 +2419,7 @@ function zi() {
|
|
2419
2419
|
});
|
2420
2420
|
}
|
2421
2421
|
const o = e._readableStreamController[ir](t);
|
2422
|
-
return
|
2422
|
+
return z(o, u);
|
2423
2423
|
}
|
2424
2424
|
function ft(e) {
|
2425
2425
|
e._state = "closed";
|
@@ -2532,16 +2532,16 @@ function zi() {
|
|
2532
2532
|
};
|
2533
2533
|
}
|
2534
2534
|
function fi(e, t, r) {
|
2535
|
-
return Y(e, r), (o) =>
|
2535
|
+
return Y(e, r), (o) => F(e, t, [o]);
|
2536
2536
|
}
|
2537
2537
|
function di(e, t, r) {
|
2538
2538
|
return Y(e, r), (o) => O(e, t, [o]);
|
2539
2539
|
}
|
2540
2540
|
function ci(e, t, r) {
|
2541
|
-
return Y(e, r), (o, s) =>
|
2541
|
+
return Y(e, r), (o, s) => F(e, t, [o, s]);
|
2542
2542
|
}
|
2543
2543
|
function hi(e, t, r) {
|
2544
|
-
return Y(e, r), (o) =>
|
2544
|
+
return Y(e, r), (o) => F(e, t, [o]);
|
2545
2545
|
}
|
2546
2546
|
class Nt {
|
2547
2547
|
constructor(t = {}, r = {}, o = {}) {
|
@@ -2551,12 +2551,12 @@ function zi() {
|
|
2551
2551
|
throw new RangeError("Invalid readableType specified");
|
2552
2552
|
if (d.writableType !== void 0)
|
2553
2553
|
throw new RangeError("Invalid writableType specified");
|
2554
|
-
const b = at(f, 0), S = Wt(f), y = at(s, 1),
|
2554
|
+
const b = at(f, 0), S = Wt(f), y = at(s, 1), R = Wt(s);
|
2555
2555
|
let P;
|
2556
|
-
const k =
|
2557
|
-
P =
|
2556
|
+
const k = v((te) => {
|
2557
|
+
P = te;
|
2558
2558
|
});
|
2559
|
-
mi(this, k, y,
|
2559
|
+
mi(this, k, y, R, b, S), pi(this, d), d.start !== void 0 ? P(d.start(this._transformStreamController)) : P(void 0);
|
2560
2560
|
}
|
2561
2561
|
/**
|
2562
2562
|
* The readable side of the transform stream.
|
@@ -2596,19 +2596,19 @@ function zi() {
|
|
2596
2596
|
return wi(e);
|
2597
2597
|
}
|
2598
2598
|
e._writable = ga(d, b, y, S, r, o);
|
2599
|
-
function
|
2599
|
+
function R() {
|
2600
2600
|
return Ri(e);
|
2601
2601
|
}
|
2602
2602
|
function P(k) {
|
2603
2603
|
return Ci(e, k);
|
2604
2604
|
}
|
2605
|
-
e._readable = ut(d,
|
2605
|
+
e._readable = ut(d, R, P, s, f), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, Ht(e, !0), e._transformStreamController = void 0;
|
2606
2606
|
}
|
2607
2607
|
function ho(e) {
|
2608
2608
|
return !l(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof Nt;
|
2609
2609
|
}
|
2610
2610
|
function mo(e, t) {
|
2611
|
-
|
2611
|
+
X(e._readable._readableStreamController, t), xr(e, t);
|
2612
2612
|
}
|
2613
2613
|
function xr(e, t) {
|
2614
2614
|
Vt(e._transformStreamController), it(e._writable._writableStreamController, t), Nr(e);
|
@@ -2617,7 +2617,7 @@ function zi() {
|
|
2617
2617
|
e._backpressure && Ht(e, !1);
|
2618
2618
|
}
|
2619
2619
|
function Ht(e, t) {
|
2620
|
-
e._backpressureChangePromise !== void 0 && e._backpressureChangePromise_resolve(), e._backpressureChangePromise =
|
2620
|
+
e._backpressureChangePromise !== void 0 && e._backpressureChangePromise_resolve(), e._backpressureChangePromise = v((r) => {
|
2621
2621
|
e._backpressureChangePromise_resolve = r;
|
2622
2622
|
}), e._backpressure = t;
|
2623
2623
|
}
|
@@ -2703,7 +2703,7 @@ function zi() {
|
|
2703
2703
|
}
|
2704
2704
|
function po(e, t) {
|
2705
2705
|
const r = e._transformAlgorithm(t);
|
2706
|
-
return
|
2706
|
+
return z(r, void 0, (o) => {
|
2707
2707
|
throw mo(e._controlledTransformStream, o), o;
|
2708
2708
|
});
|
2709
2709
|
}
|
@@ -2717,7 +2717,7 @@ function zi() {
|
|
2717
2717
|
const r = e._transformStreamController;
|
2718
2718
|
if (e._backpressure) {
|
2719
2719
|
const o = e._backpressureChangePromise;
|
2720
|
-
return
|
2720
|
+
return z(o, () => {
|
2721
2721
|
const s = e._writable;
|
2722
2722
|
if (s._state === "erroring")
|
2723
2723
|
throw s._storedError;
|
@@ -2731,22 +2731,22 @@ function zi() {
|
|
2731
2731
|
if (r._finishPromise !== void 0)
|
2732
2732
|
return r._finishPromise;
|
2733
2733
|
const o = e._readable;
|
2734
|
-
r._finishPromise =
|
2734
|
+
r._finishPromise = v((f, d) => {
|
2735
2735
|
r._finishPromise_resolve = f, r._finishPromise_reject = d;
|
2736
2736
|
});
|
2737
2737
|
const s = r._cancelAlgorithm(t);
|
2738
|
-
return Vt(r), p(s, () => (o._state === "errored" ? He(r, o._storedError) : (
|
2738
|
+
return Vt(r), p(s, () => (o._state === "errored" ? He(r, o._storedError) : (X(o._readableStreamController, t), Hr(r)), null), (f) => (X(o._readableStreamController, f), He(r, f), null)), r._finishPromise;
|
2739
2739
|
}
|
2740
2740
|
function wi(e) {
|
2741
2741
|
const t = e._transformStreamController;
|
2742
2742
|
if (t._finishPromise !== void 0)
|
2743
2743
|
return t._finishPromise;
|
2744
2744
|
const r = e._readable;
|
2745
|
-
t._finishPromise =
|
2745
|
+
t._finishPromise = v((s, f) => {
|
2746
2746
|
t._finishPromise_resolve = s, t._finishPromise_reject = f;
|
2747
2747
|
});
|
2748
2748
|
const o = t._flushAlgorithm();
|
2749
|
-
return Vt(t), p(o, () => (r._state === "errored" ? He(t, r._storedError) : (Fe(r._readableStreamController), Hr(t)), null), (s) => (
|
2749
|
+
return Vt(t), p(o, () => (r._state === "errored" ? He(t, r._storedError) : (Fe(r._readableStreamController), Hr(t)), null), (s) => (X(r._readableStreamController, s), He(t, s), null)), t._finishPromise;
|
2750
2750
|
}
|
2751
2751
|
function Ri(e) {
|
2752
2752
|
return Ht(e, !1), e._backpressureChangePromise;
|
@@ -2756,7 +2756,7 @@ function zi() {
|
|
2756
2756
|
if (r._finishPromise !== void 0)
|
2757
2757
|
return r._finishPromise;
|
2758
2758
|
const o = e._writable;
|
2759
|
-
r._finishPromise =
|
2759
|
+
r._finishPromise = v((f, d) => {
|
2760
2760
|
r._finishPromise_resolve = f, r._finishPromise_reject = d;
|
2761
2761
|
});
|
2762
2762
|
const s = r._cancelAlgorithm(t);
|
@@ -2799,8 +2799,8 @@ try {
|
|
2799
2799
|
return new ReadableStream({
|
2800
2800
|
type: "bytes",
|
2801
2801
|
async pull(h) {
|
2802
|
-
const
|
2803
|
-
u +=
|
2802
|
+
const C = await l.slice(u, Math.min(l.size, u + Fi)).arrayBuffer();
|
2803
|
+
u += C.byteLength, h.enqueue(new Uint8Array(C)), u === l.size && h.close();
|
2804
2804
|
}
|
2805
2805
|
});
|
2806
2806
|
});
|
@@ -2862,7 +2862,7 @@ const Ao = (et = class {
|
|
2862
2862
|
const u = new TextEncoder();
|
2863
2863
|
for (const h of n) {
|
2864
2864
|
let c;
|
2865
|
-
ArrayBuffer.isView(h) ? c = new Uint8Array(h.buffer.slice(h.byteOffset, h.byteOffset + h.byteLength)) : h instanceof ArrayBuffer ? c = new Uint8Array(h.slice(0)) : h instanceof et ? c = h : c = u.encode(`${h}`), ae(this, Xe,
|
2865
|
+
ArrayBuffer.isView(h) ? c = new Uint8Array(h.buffer.slice(h.byteOffset, h.byteOffset + h.byteLength)) : h instanceof ArrayBuffer ? c = new Uint8Array(h.slice(0)) : h instanceof et ? c = h : c = u.encode(`${h}`), ae(this, Xe, I(this, Xe) + (ArrayBuffer.isView(c) ? c.byteLength : c.size)), I(this, pe).push(c);
|
2866
2866
|
}
|
2867
2867
|
ae(this, nr, `${a.endings === void 0 ? "transparent" : a.endings}`);
|
2868
2868
|
const l = a.type === void 0 ? "" : String(a.type);
|
@@ -2873,13 +2873,13 @@ const Ao = (et = class {
|
|
2873
2873
|
* size of the Blob in bytes.
|
2874
2874
|
*/
|
2875
2875
|
get size() {
|
2876
|
-
return
|
2876
|
+
return I(this, Xe);
|
2877
2877
|
}
|
2878
2878
|
/**
|
2879
2879
|
* The type property of a Blob object returns the MIME type of the file.
|
2880
2880
|
*/
|
2881
2881
|
get type() {
|
2882
|
-
return
|
2882
|
+
return I(this, pt);
|
2883
2883
|
}
|
2884
2884
|
/**
|
2885
2885
|
* The text() method in the Blob interface returns a Promise
|
@@ -2891,7 +2891,7 @@ const Ao = (et = class {
|
|
2891
2891
|
async text() {
|
2892
2892
|
const n = new TextDecoder();
|
2893
2893
|
let a = "";
|
2894
|
-
for await (const u of Yr(
|
2894
|
+
for await (const u of Yr(I(this, pe), !1))
|
2895
2895
|
a += n.decode(u, { stream: !0 });
|
2896
2896
|
return a += n.decode(), a;
|
2897
2897
|
}
|
@@ -2905,12 +2905,12 @@ const Ao = (et = class {
|
|
2905
2905
|
async arrayBuffer() {
|
2906
2906
|
const n = new Uint8Array(this.size);
|
2907
2907
|
let a = 0;
|
2908
|
-
for await (const u of Yr(
|
2908
|
+
for await (const u of Yr(I(this, pe), !1))
|
2909
2909
|
n.set(u, a), a += u.length;
|
2910
2910
|
return n.buffer;
|
2911
2911
|
}
|
2912
2912
|
stream() {
|
2913
|
-
const n = Yr(
|
2913
|
+
const n = Yr(I(this, pe), !0);
|
2914
2914
|
return new globalThis.ReadableStream({
|
2915
2915
|
// @ts-ignore
|
2916
2916
|
type: "bytes",
|
@@ -2935,21 +2935,21 @@ const Ao = (et = class {
|
|
2935
2935
|
slice(n = 0, a = this.size, u = "") {
|
2936
2936
|
const { size: l } = this;
|
2937
2937
|
let h = n < 0 ? Math.max(l + n, 0) : Math.min(n, l), c = a < 0 ? Math.max(l + a, 0) : Math.min(a, l);
|
2938
|
-
const
|
2939
|
-
let
|
2940
|
-
for (const m of
|
2941
|
-
if (
|
2938
|
+
const C = Math.max(c - h, 0), T = I(this, pe), _ = [];
|
2939
|
+
let v = 0;
|
2940
|
+
for (const m of T) {
|
2941
|
+
if (v >= C)
|
2942
2942
|
break;
|
2943
2943
|
const W = ArrayBuffer.isView(m) ? m.byteLength : m.size;
|
2944
2944
|
if (h && W <= h)
|
2945
2945
|
h -= W, c -= W;
|
2946
2946
|
else {
|
2947
2947
|
let p;
|
2948
|
-
ArrayBuffer.isView(m) ? (p = m.subarray(h, Math.min(W, c)),
|
2948
|
+
ArrayBuffer.isView(m) ? (p = m.subarray(h, Math.min(W, c)), v += p.byteLength) : (p = m.slice(h, Math.min(W, c)), v += p.size), c -= W, _.push(p), h = 0;
|
2949
2949
|
}
|
2950
2950
|
}
|
2951
2951
|
const w = new et([], { type: String(u).toLowerCase() });
|
2952
|
-
return ae(w, Xe,
|
2952
|
+
return ae(w, Xe, C), ae(w, pe, _), w;
|
2953
2953
|
}
|
2954
2954
|
get [Symbol.toStringTag]() {
|
2955
2955
|
return "Blob";
|
@@ -2983,10 +2983,10 @@ const ji = (vo = class extends er {
|
|
2983
2983
|
Number.isNaN(h) || ae(this, yt, h), ae(this, gt, String(u));
|
2984
2984
|
}
|
2985
2985
|
get name() {
|
2986
|
-
return
|
2986
|
+
return I(this, gt);
|
2987
2987
|
}
|
2988
2988
|
get lastModified() {
|
2989
|
-
return
|
2989
|
+
return I(this, yt);
|
2990
2990
|
}
|
2991
2991
|
get [Symbol.toStringTag]() {
|
2992
2992
|
return "File";
|
@@ -3017,23 +3017,23 @@ const Zr = (Eo = class {
|
|
3017
3017
|
return n && typeof n == "object" && n[ct] === "FormData" && !Mi.some((a) => typeof n[a] != "function");
|
3018
3018
|
}
|
3019
3019
|
append(...n) {
|
3020
|
-
je("append", arguments, 2),
|
3020
|
+
je("append", arguments, 2), I(this, Z).push(To(...n));
|
3021
3021
|
}
|
3022
3022
|
delete(n) {
|
3023
|
-
je("delete", arguments, 1), n += "", ae(this, Z,
|
3023
|
+
je("delete", arguments, 1), n += "", ae(this, Z, I(this, Z).filter(([a]) => a !== n));
|
3024
3024
|
}
|
3025
3025
|
get(n) {
|
3026
3026
|
je("get", arguments, 1), n += "";
|
3027
|
-
for (var a =
|
3027
|
+
for (var a = I(this, Z), u = a.length, l = 0; l < u; l++)
|
3028
3028
|
if (a[l][0] === n)
|
3029
3029
|
return a[l][1];
|
3030
3030
|
return null;
|
3031
3031
|
}
|
3032
3032
|
getAll(n, a) {
|
3033
|
-
return je("getAll", arguments, 1), a = [], n += "",
|
3033
|
+
return je("getAll", arguments, 1), a = [], n += "", I(this, Z).forEach((u) => u[0] === n && a.push(u[1])), a;
|
3034
3034
|
}
|
3035
3035
|
has(n) {
|
3036
|
-
return je("has", arguments, 1), n += "",
|
3036
|
+
return je("has", arguments, 1), n += "", I(this, Z).some((a) => a[0] === n);
|
3037
3037
|
}
|
3038
3038
|
forEach(n, a) {
|
3039
3039
|
je("forEach", arguments, 1);
|
@@ -3043,12 +3043,12 @@ const Zr = (Eo = class {
|
|
3043
3043
|
set(...n) {
|
3044
3044
|
je("set", arguments, 2);
|
3045
3045
|
var a = [], u = !0;
|
3046
|
-
n = To(...n),
|
3046
|
+
n = To(...n), I(this, Z).forEach((l) => {
|
3047
3047
|
l[0] === n[0] ? u && (u = !a.push(n)) : a.push(l);
|
3048
3048
|
}), u && a.push(n), ae(this, Z, a);
|
3049
3049
|
}
|
3050
3050
|
*entries() {
|
3051
|
-
yield*
|
3051
|
+
yield* I(this, Z);
|
3052
3052
|
}
|
3053
3053
|
*keys() {
|
3054
3054
|
for (var [n] of this)
|
@@ -3141,7 +3141,7 @@ class mt {
|
|
3141
3141
|
u.append(h, c);
|
3142
3142
|
return u;
|
3143
3143
|
}
|
3144
|
-
const { toFormData: a } = await import("./multipart-parser-
|
3144
|
+
const { toFormData: a } = await import("./multipart-parser-4f71d0e6.js");
|
3145
3145
|
return a(this.body, n);
|
3146
3146
|
}
|
3147
3147
|
/**
|
@@ -3292,10 +3292,10 @@ class ye extends URLSearchParams {
|
|
3292
3292
|
switch (l) {
|
3293
3293
|
case "append":
|
3294
3294
|
case "set":
|
3295
|
-
return (c,
|
3295
|
+
return (c, C) => (Zt(c), Kr(c, String(C)), URLSearchParams.prototype[l].call(
|
3296
3296
|
u,
|
3297
3297
|
String(c).toLowerCase(),
|
3298
|
-
String(
|
3298
|
+
String(C)
|
3299
3299
|
));
|
3300
3300
|
case "delete":
|
3301
3301
|
case "has":
|
@@ -3376,7 +3376,7 @@ function Ji(i = []) {
|
|
3376
3376
|
})
|
3377
3377
|
);
|
3378
3378
|
}
|
3379
|
-
const Zi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), ko = (i) => Zi.has(i),
|
3379
|
+
const Zi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), ko = (i) => Zi.has(i), re = Symbol("Response internals");
|
3380
3380
|
class V extends mt {
|
3381
3381
|
constructor(n = null, a = {}) {
|
3382
3382
|
super(n, a);
|
@@ -3385,7 +3385,7 @@ class V extends mt {
|
|
3385
3385
|
const h = Wo(n, this);
|
3386
3386
|
h && l.append("Content-Type", h);
|
3387
3387
|
}
|
3388
|
-
this[
|
3388
|
+
this[re] = {
|
3389
3389
|
type: "default",
|
3390
3390
|
url: a.url,
|
3391
3391
|
status: u,
|
@@ -3396,31 +3396,31 @@ class V extends mt {
|
|
3396
3396
|
};
|
3397
3397
|
}
|
3398
3398
|
get type() {
|
3399
|
-
return this[
|
3399
|
+
return this[re].type;
|
3400
3400
|
}
|
3401
3401
|
get url() {
|
3402
|
-
return this[
|
3402
|
+
return this[re].url || "";
|
3403
3403
|
}
|
3404
3404
|
get status() {
|
3405
|
-
return this[
|
3405
|
+
return this[re].status;
|
3406
3406
|
}
|
3407
3407
|
/**
|
3408
3408
|
* Convenience property representing if the request ended normally
|
3409
3409
|
*/
|
3410
3410
|
get ok() {
|
3411
|
-
return this[
|
3411
|
+
return this[re].status >= 200 && this[re].status < 300;
|
3412
3412
|
}
|
3413
3413
|
get redirected() {
|
3414
|
-
return this[
|
3414
|
+
return this[re].counter > 0;
|
3415
3415
|
}
|
3416
3416
|
get statusText() {
|
3417
|
-
return this[
|
3417
|
+
return this[re].statusText;
|
3418
3418
|
}
|
3419
3419
|
get headers() {
|
3420
|
-
return this[
|
3420
|
+
return this[re].headers;
|
3421
3421
|
}
|
3422
3422
|
get highWaterMark() {
|
3423
|
-
return this[
|
3423
|
+
return this[re].highWaterMark;
|
3424
3424
|
}
|
3425
3425
|
/**
|
3426
3426
|
* Clone this response
|
@@ -3457,7 +3457,7 @@ class V extends mt {
|
|
3457
3457
|
}
|
3458
3458
|
static error() {
|
3459
3459
|
const n = new V(null, { status: 0, statusText: "" });
|
3460
|
-
return n[
|
3460
|
+
return n[re].type = "error", n;
|
3461
3461
|
}
|
3462
3462
|
static json(n = void 0, a = {}) {
|
3463
3463
|
const u = JSON.stringify(n);
|
@@ -3526,7 +3526,7 @@ function rs(i, { referrerURLCallback: n, referrerOriginCallback: a } = {}) {
|
|
3526
3526
|
const l = i.referrer;
|
3527
3527
|
let h = Po(l), c = Po(l, !0);
|
3528
3528
|
h.toString().length > 4096 && (h = c), n && (h = n(h)), a && (c = a(c));
|
3529
|
-
const
|
3529
|
+
const C = new URL(i.url);
|
3530
3530
|
switch (u) {
|
3531
3531
|
case "no-referrer":
|
3532
3532
|
return "no-referrer";
|
@@ -3535,15 +3535,15 @@ function rs(i, { referrerURLCallback: n, referrerOriginCallback: a } = {}) {
|
|
3535
3535
|
case "unsafe-url":
|
3536
3536
|
return h;
|
3537
3537
|
case "strict-origin":
|
3538
|
-
return Ke(h) && !Ke(
|
3538
|
+
return Ke(h) && !Ke(C) ? "no-referrer" : c.toString();
|
3539
3539
|
case "strict-origin-when-cross-origin":
|
3540
|
-
return h.origin ===
|
3540
|
+
return h.origin === C.origin ? h : Ke(h) && !Ke(C) ? "no-referrer" : c;
|
3541
3541
|
case "same-origin":
|
3542
|
-
return h.origin ===
|
3542
|
+
return h.origin === C.origin ? h : "no-referrer";
|
3543
3543
|
case "origin-when-cross-origin":
|
3544
|
-
return h.origin ===
|
3544
|
+
return h.origin === C.origin ? h : c;
|
3545
3545
|
case "no-referrer-when-downgrade":
|
3546
|
-
return Ke(h) && !Ke(
|
3546
|
+
return Ke(h) && !Ke(C) ? "no-referrer" : h;
|
3547
3547
|
default:
|
3548
3548
|
throw new TypeError(`Invalid referrerPolicy: ${u}`);
|
3549
3549
|
}
|
@@ -3555,7 +3555,7 @@ function ns(i) {
|
|
3555
3555
|
u && qo.has(u) && (a = u);
|
3556
3556
|
return a;
|
3557
3557
|
}
|
3558
|
-
const
|
3558
|
+
const j = Symbol("Request internals"), dt = (i) => typeof i == "object" && typeof i[j] == "object", os = or(
|
3559
3559
|
() => {
|
3560
3560
|
},
|
3561
3561
|
".data is not a valid RequestInit property, use .body instead",
|
@@ -3578,59 +3578,59 @@ class bt extends mt {
|
|
3578
3578
|
const _ = Wo(h, this);
|
3579
3579
|
_ && c.set("Content-Type", _);
|
3580
3580
|
}
|
3581
|
-
let
|
3582
|
-
if ("signal" in a && (
|
3581
|
+
let C = dt(n) ? n.signal : null;
|
3582
|
+
if ("signal" in a && (C = a.signal), C != null && !xi(C))
|
3583
3583
|
throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");
|
3584
|
-
let
|
3585
|
-
if (
|
3586
|
-
|
3587
|
-
else if (
|
3588
|
-
const _ = new URL(
|
3589
|
-
|
3584
|
+
let T = a.referrer == null ? n.referrer : a.referrer;
|
3585
|
+
if (T === "")
|
3586
|
+
T = "no-referrer";
|
3587
|
+
else if (T) {
|
3588
|
+
const _ = new URL(T);
|
3589
|
+
T = /^about:(\/\/)?client$/.test(_) ? "client" : _;
|
3590
3590
|
} else
|
3591
|
-
|
3592
|
-
this[
|
3591
|
+
T = void 0;
|
3592
|
+
this[j] = {
|
3593
3593
|
method: l,
|
3594
3594
|
redirect: a.redirect || n.redirect || "follow",
|
3595
3595
|
headers: c,
|
3596
3596
|
parsedURL: u,
|
3597
|
-
signal:
|
3598
|
-
referrer:
|
3597
|
+
signal: C,
|
3598
|
+
referrer: T
|
3599
3599
|
}, this.follow = a.follow === void 0 ? n.follow === void 0 ? 20 : n.follow : a.follow, this.compress = a.compress === void 0 ? n.compress === void 0 ? !0 : n.compress : a.compress, this.counter = a.counter || n.counter || 0, this.agent = a.agent || n.agent, this.highWaterMark = a.highWaterMark || n.highWaterMark || 16384, this.insecureHTTPParser = a.insecureHTTPParser || n.insecureHTTPParser || !1, this.referrerPolicy = a.referrerPolicy || n.referrerPolicy || "";
|
3600
3600
|
}
|
3601
3601
|
/** @returns {string} */
|
3602
3602
|
get method() {
|
3603
|
-
return this[
|
3603
|
+
return this[j].method;
|
3604
3604
|
}
|
3605
3605
|
/** @returns {string} */
|
3606
3606
|
get url() {
|
3607
|
-
return Ei(this[
|
3607
|
+
return Ei(this[j].parsedURL);
|
3608
3608
|
}
|
3609
3609
|
/** @returns {Headers} */
|
3610
3610
|
get headers() {
|
3611
|
-
return this[
|
3611
|
+
return this[j].headers;
|
3612
3612
|
}
|
3613
3613
|
get redirect() {
|
3614
|
-
return this[
|
3614
|
+
return this[j].redirect;
|
3615
3615
|
}
|
3616
3616
|
/** @returns {AbortSignal} */
|
3617
3617
|
get signal() {
|
3618
|
-
return this[
|
3618
|
+
return this[j].signal;
|
3619
3619
|
}
|
3620
3620
|
// https://fetch.spec.whatwg.org/#dom-request-referrer
|
3621
3621
|
get referrer() {
|
3622
|
-
if (this[
|
3622
|
+
if (this[j].referrer === "no-referrer")
|
3623
3623
|
return "";
|
3624
|
-
if (this[
|
3624
|
+
if (this[j].referrer === "client")
|
3625
3625
|
return "about:client";
|
3626
|
-
if (this[
|
3627
|
-
return this[
|
3626
|
+
if (this[j].referrer)
|
3627
|
+
return this[j].referrer.toString();
|
3628
3628
|
}
|
3629
3629
|
get referrerPolicy() {
|
3630
|
-
return this[
|
3630
|
+
return this[j].referrerPolicy;
|
3631
3631
|
}
|
3632
3632
|
set referrerPolicy(n) {
|
3633
|
-
this[
|
3633
|
+
this[j].referrerPolicy = es(n);
|
3634
3634
|
}
|
3635
3635
|
/**
|
3636
3636
|
* Clone this request
|
@@ -3655,14 +3655,14 @@ Object.defineProperties(bt.prototype, {
|
|
3655
3655
|
referrerPolicy: { enumerable: !0 }
|
3656
3656
|
});
|
3657
3657
|
const as = (i) => {
|
3658
|
-
const { parsedURL: n } = i[
|
3658
|
+
const { parsedURL: n } = i[j], a = new ye(i[j].headers);
|
3659
3659
|
a.has("Accept") || a.set("Accept", "*/*");
|
3660
3660
|
let u = null;
|
3661
3661
|
if (i.body === null && /^(post|put)$/i.test(i.method) && (u = "0"), i.body !== null) {
|
3662
|
-
const
|
3663
|
-
typeof
|
3662
|
+
const C = Yi(i);
|
3663
|
+
typeof C == "number" && !Number.isNaN(C) && (u = String(C));
|
3664
3664
|
}
|
3665
|
-
u && a.set("Content-Length", u), i.referrerPolicy === "" && (i.referrerPolicy = Xi), i.referrer && i.referrer !== "no-referrer" ? i[
|
3665
|
+
u && a.set("Content-Length", u), i.referrerPolicy === "" && (i.referrerPolicy = Xi), i.referrer && i.referrer !== "no-referrer" ? i[j].referrer = rs(i) : i[j].referrer = "no-referrer", i[j].referrer instanceof URL && a.set("Referer", i.referrer), a.has("User-Agent") || a.set("User-Agent", "node-fetch"), i.compress && !a.has("Accept-Encoding") && a.set("Accept-Encoding", "gzip, deflate, br");
|
3666
3666
|
let { agent: l } = i;
|
3667
3667
|
typeof l == "function" && (l = l(n));
|
3668
3668
|
const h = Ki(n), c = {
|
@@ -3700,49 +3700,49 @@ async function Oo(i, n) {
|
|
3700
3700
|
if (!ss.has(h.protocol))
|
3701
3701
|
throw new TypeError(`node-fetch cannot load ${i}. URL scheme "${h.protocol.replace(/:$/, "")}" is not supported.`);
|
3702
3702
|
if (h.protocol === "data:") {
|
3703
|
-
const p = Oi(l.url),
|
3704
|
-
a(
|
3703
|
+
const p = Oi(l.url), E = new V(p, { headers: { "Content-Type": p.typeFull } });
|
3704
|
+
a(E);
|
3705
3705
|
return;
|
3706
3706
|
}
|
3707
|
-
const
|
3707
|
+
const C = (h.protocol === "https:" ? Pi : ht).request, { signal: T } = l;
|
3708
3708
|
let _ = null;
|
3709
|
-
const
|
3709
|
+
const v = () => {
|
3710
3710
|
const p = new is("The operation was aborted.");
|
3711
3711
|
u(p), l.body && l.body instanceof se.Readable && l.body.destroy(p), !(!_ || !_.body) && _.body.emit("error", p);
|
3712
3712
|
};
|
3713
|
-
if (
|
3714
|
-
|
3713
|
+
if (T && T.aborted) {
|
3714
|
+
v();
|
3715
3715
|
return;
|
3716
3716
|
}
|
3717
3717
|
const w = () => {
|
3718
|
-
|
3719
|
-
}, m =
|
3720
|
-
|
3718
|
+
v(), W();
|
3719
|
+
}, m = C(h.toString(), c);
|
3720
|
+
T && T.addEventListener("abort", w);
|
3721
3721
|
const W = () => {
|
3722
|
-
m.abort(),
|
3722
|
+
m.abort(), T && T.removeEventListener("abort", w);
|
3723
3723
|
};
|
3724
3724
|
m.on("error", (p) => {
|
3725
3725
|
u(new ie(`request to ${l.url} failed, reason: ${p.message}`, "system", p)), W();
|
3726
3726
|
}), ls(m, (p) => {
|
3727
3727
|
_ && _.body && _.body.destroy(p);
|
3728
3728
|
}), process.version < "v14" && m.on("socket", (p) => {
|
3729
|
-
let
|
3729
|
+
let E;
|
3730
3730
|
p.prependListener("end", () => {
|
3731
|
-
|
3732
|
-
}), p.prependListener("close", (
|
3733
|
-
if (_ &&
|
3734
|
-
const
|
3735
|
-
|
3731
|
+
E = p._eventsCount;
|
3732
|
+
}), p.prependListener("close", (B) => {
|
3733
|
+
if (_ && E < p._eventsCount && !B) {
|
3734
|
+
const z = new Error("Premature close");
|
3735
|
+
z.code = "ERR_STREAM_PREMATURE_CLOSE", _.body.emit("error", z);
|
3736
3736
|
}
|
3737
3737
|
});
|
3738
3738
|
}), m.on("response", (p) => {
|
3739
3739
|
m.setTimeout(0);
|
3740
|
-
const
|
3740
|
+
const E = Ji(p.rawHeaders);
|
3741
3741
|
if (ko(p.statusCode)) {
|
3742
|
-
const O =
|
3743
|
-
let
|
3742
|
+
const O = E.get("Location");
|
3743
|
+
let F = null;
|
3744
3744
|
try {
|
3745
|
-
|
3745
|
+
F = O === null ? null : new URL(O, l.url);
|
3746
3746
|
} catch {
|
3747
3747
|
if (l.redirect !== "manual") {
|
3748
3748
|
u(new ie(`uri requested responds with an invalid redirect URL: ${O}`, "invalid-redirect")), W();
|
@@ -3756,7 +3756,7 @@ async function Oo(i, n) {
|
|
3756
3756
|
case "manual":
|
3757
3757
|
break;
|
3758
3758
|
case "follow": {
|
3759
|
-
if (
|
3759
|
+
if (F === null)
|
3760
3760
|
break;
|
3761
3761
|
if (l.counter >= l.follow) {
|
3762
3762
|
u(new ie(`maximum redirect reached at: ${l.url}`, "max-redirect")), W();
|
@@ -3775,7 +3775,7 @@ async function Oo(i, n) {
|
|
3775
3775
|
referrer: l.referrer,
|
3776
3776
|
referrerPolicy: l.referrerPolicy
|
3777
3777
|
};
|
3778
|
-
if (!Ni(l.url,
|
3778
|
+
if (!Ni(l.url, F) || !Hi(l.url, F))
|
3779
3779
|
for (const _t of ["authorization", "www-authenticate", "cookie", "cookie2"])
|
3780
3780
|
$.headers.delete(_t);
|
3781
3781
|
if (p.statusCode !== 303 && l.body && n.body instanceof se.Readable) {
|
@@ -3783,66 +3783,66 @@ async function Oo(i, n) {
|
|
3783
3783
|
return;
|
3784
3784
|
}
|
3785
3785
|
(p.statusCode === 303 || (p.statusCode === 301 || p.statusCode === 302) && l.method === "POST") && ($.method = "GET", $.body = void 0, $.headers.delete("content-length"));
|
3786
|
-
const M = ns(
|
3787
|
-
M && ($.referrerPolicy = M), a(Oo(new bt(
|
3786
|
+
const M = ns(E);
|
3787
|
+
M && ($.referrerPolicy = M), a(Oo(new bt(F, $))), W();
|
3788
3788
|
return;
|
3789
3789
|
}
|
3790
3790
|
default:
|
3791
3791
|
return u(new TypeError(`Redirect option '${l.redirect}' is not a valid value of RequestRedirect`));
|
3792
3792
|
}
|
3793
3793
|
}
|
3794
|
-
|
3795
|
-
|
3794
|
+
T && p.once("end", () => {
|
3795
|
+
T.removeEventListener("abort", w);
|
3796
3796
|
});
|
3797
|
-
let
|
3797
|
+
let B = Ze(p, new Kt(), (O) => {
|
3798
3798
|
O && u(O);
|
3799
3799
|
});
|
3800
3800
|
process.version < "v12.10" && p.on("aborted", w);
|
3801
|
-
const
|
3801
|
+
const z = {
|
3802
3802
|
url: l.url,
|
3803
3803
|
status: p.statusCode,
|
3804
3804
|
statusText: p.statusMessage,
|
3805
|
-
headers:
|
3805
|
+
headers: E,
|
3806
3806
|
size: l.size,
|
3807
3807
|
counter: l.counter,
|
3808
3808
|
highWaterMark: l.highWaterMark
|
3809
|
-
}, x =
|
3809
|
+
}, x = E.get("Content-Encoding");
|
3810
3810
|
if (!l.compress || l.method === "HEAD" || x === null || p.statusCode === 204 || p.statusCode === 304) {
|
3811
|
-
_ = new V(
|
3811
|
+
_ = new V(B, z), a(_);
|
3812
3812
|
return;
|
3813
3813
|
}
|
3814
|
-
const
|
3814
|
+
const K = {
|
3815
3815
|
flush: Je.Z_SYNC_FLUSH,
|
3816
3816
|
finishFlush: Je.Z_SYNC_FLUSH
|
3817
3817
|
};
|
3818
3818
|
if (x === "gzip" || x === "x-gzip") {
|
3819
|
-
|
3819
|
+
B = Ze(B, Je.createGunzip(K), (O) => {
|
3820
3820
|
O && u(O);
|
3821
|
-
}), _ = new V(
|
3821
|
+
}), _ = new V(B, z), a(_);
|
3822
3822
|
return;
|
3823
3823
|
}
|
3824
3824
|
if (x === "deflate" || x === "x-deflate") {
|
3825
|
-
const O = Ze(p, new Kt(), (
|
3826
|
-
|
3825
|
+
const O = Ze(p, new Kt(), (F) => {
|
3826
|
+
F && u(F);
|
3827
3827
|
});
|
3828
|
-
O.once("data", (
|
3829
|
-
(
|
3828
|
+
O.once("data", (F) => {
|
3829
|
+
(F[0] & 15) === 8 ? B = Ze(B, Je.createInflate(), ($) => {
|
3830
3830
|
$ && u($);
|
3831
|
-
}) :
|
3831
|
+
}) : B = Ze(B, Je.createInflateRaw(), ($) => {
|
3832
3832
|
$ && u($);
|
3833
|
-
}), _ = new V(
|
3833
|
+
}), _ = new V(B, z), a(_);
|
3834
3834
|
}), O.once("end", () => {
|
3835
|
-
_ || (_ = new V(
|
3835
|
+
_ || (_ = new V(B, z), a(_));
|
3836
3836
|
});
|
3837
3837
|
return;
|
3838
3838
|
}
|
3839
3839
|
if (x === "br") {
|
3840
|
-
|
3840
|
+
B = Ze(B, Je.createBrotliDecompress(), (O) => {
|
3841
3841
|
O && u(O);
|
3842
|
-
}), _ = new V(
|
3842
|
+
}), _ = new V(B, z), a(_);
|
3843
3843
|
return;
|
3844
3844
|
}
|
3845
|
-
_ = new V(
|
3845
|
+
_ = new V(B, z), a(_);
|
3846
3846
|
}), Gi(m, l).catch(u);
|
3847
3847
|
});
|
3848
3848
|
}
|
@@ -3852,31 +3852,31 @@ function ls(i, n) {
|
|
3852
3852
|
`);
|
3853
3853
|
let u = !1, l = !1, h;
|
3854
3854
|
i.on("response", (c) => {
|
3855
|
-
const { headers:
|
3856
|
-
u =
|
3855
|
+
const { headers: C } = c;
|
3856
|
+
u = C["transfer-encoding"] === "chunked" && !C["content-length"];
|
3857
3857
|
}), i.on("socket", (c) => {
|
3858
|
-
const
|
3858
|
+
const C = () => {
|
3859
3859
|
if (u && !l) {
|
3860
3860
|
const _ = new Error("Premature close");
|
3861
3861
|
_.code = "ERR_STREAM_PREMATURE_CLOSE", n(_);
|
3862
3862
|
}
|
3863
|
-
},
|
3863
|
+
}, T = (_) => {
|
3864
3864
|
l = D.compare(_.slice(-5), a) === 0, !l && h && (l = D.compare(h.slice(-3), a.slice(0, 3)) === 0 && D.compare(_.slice(-2), a.slice(3)) === 0), h = _;
|
3865
3865
|
};
|
3866
|
-
c.prependListener("close",
|
3867
|
-
c.removeListener("close",
|
3866
|
+
c.prependListener("close", C), c.on("data", T), i.on("close", () => {
|
3867
|
+
c.removeListener("close", C), c.removeListener("data", T);
|
3868
3868
|
});
|
3869
3869
|
});
|
3870
3870
|
}
|
3871
3871
|
const us = "@feedmepos/mf-", Ps = async (i, { command: n, mode: a }, u = {}) => {
|
3872
|
-
var m, W, p
|
3872
|
+
var m, W, p;
|
3873
3873
|
const l = JSON.parse(
|
3874
3874
|
Ti(So(process.cwd(), "package.json"), "utf-8")
|
3875
|
-
), h = Object.keys(l.dependencies).filter((
|
3876
|
-
(m = u.includeFmmfPackages) == null || m.forEach((
|
3877
|
-
h[
|
3878
|
-
}), (W = u.excludeFmmfPackages) == null || W.forEach((
|
3879
|
-
delete h[
|
3875
|
+
), h = Object.keys(l.dependencies).filter((E) => E.startsWith(us)).reduce((E, B) => (E[B] = l.dependencies[B], E), {});
|
3876
|
+
(m = u.includeFmmfPackages) == null || m.forEach((E) => {
|
3877
|
+
h[E] = l.dependencies[E] ?? "latest";
|
3878
|
+
}), (W = u.excludeFmmfPackages) == null || W.forEach((E) => {
|
3879
|
+
delete h[E];
|
3880
3880
|
});
|
3881
3881
|
const c = {
|
3882
3882
|
"@vue/devtools-api": "6.5.0/lib/esm/index.js",
|
@@ -3884,39 +3884,38 @@ const us = "@feedmepos/mf-", Ps = async (i, { command: n, mode: a }, u = {}) =>
|
|
3884
3884
|
"vue-router": "4.2.5/dist/vue-router.esm-browser.min.js",
|
3885
3885
|
pinia: "2.1.7/+esm"
|
3886
3886
|
};
|
3887
|
-
let
|
3888
|
-
const
|
3889
|
-
n == "build" && a.startsWith("fmmf") && (
|
3887
|
+
let C = [...Object.keys(c), ...Object.keys(h)];
|
3888
|
+
const T = { ...i };
|
3889
|
+
n == "build" && a.startsWith("fmmf") && (C = [...Object.keys(h), ...Object.keys(c)], T.build = {
|
3890
3890
|
emptyOutDir: !0,
|
3891
3891
|
lib: {
|
3892
3892
|
entry: {
|
3893
3893
|
app: So(process.cwd(), "src/app.ts")
|
3894
3894
|
},
|
3895
3895
|
formats: ["es"]
|
3896
|
-
},
|
3897
|
-
rollupOptions: {
|
3898
|
-
external: T
|
3899
3896
|
}
|
3900
|
-
}),
|
3897
|
+
}), T.plugins ?? (T.plugins = []), T.plugins.push(qi({ externals: C })), T.build ?? (T.build = {}), (p = T.build).rollupOptions ?? (p.rollupOptions = {}), T.build.rollupOptions.external = C.concat(
|
3898
|
+
...T.build.rollupOptions.external ?? []
|
3899
|
+
);
|
3901
3900
|
const _ = h;
|
3902
3901
|
await Promise.all(
|
3903
|
-
Object.keys(_).map(async (
|
3902
|
+
Object.keys(_).map(async (E) => {
|
3904
3903
|
let B = "latest";
|
3905
|
-
return u.isDev && await Oo(`https://cdn.jsdelivr.net/npm/${
|
3904
|
+
return u.isDev && await Oo(`https://cdn.jsdelivr.net/npm/${E}@beta/dist/app.js`).then((K) => K.ok).catch(() => !1) && (B = "beta"), _[E] = `https://cdn.jsdelivr.net/npm/${E}@${B}/dist/app.js`;
|
3906
3905
|
})
|
3907
3906
|
);
|
3908
|
-
const
|
3907
|
+
const v = {
|
3909
3908
|
imports: {
|
3910
3909
|
..._,
|
3911
|
-
...Object.keys(c).reduce((
|
3910
|
+
...Object.keys(c).reduce((E, B) => (E[B] = `https://cdn.jsdelivr.net/npm/${B}@${c[B]}`, E), {})
|
3912
3911
|
},
|
3913
3912
|
scopes: u.importMapScopes ?? {}
|
3914
3913
|
};
|
3915
|
-
u.replaceFmmfPackages && Object.entries(u.replaceFmmfPackages).forEach(([
|
3916
|
-
if (
|
3917
|
-
|
3914
|
+
u.replaceFmmfPackages && Object.entries(u.replaceFmmfPackages).forEach(([E, B]) => {
|
3915
|
+
if (E.startsWith("@feedmepos/mf-") || E === "@feedmepos/ui-library")
|
3916
|
+
v.imports[E] = B;
|
3918
3917
|
else
|
3919
|
-
throw new Error(`Invalid replaceFmmfPackages key: ${
|
3918
|
+
throw new Error(`Invalid replaceFmmfPackages key: ${E}, must start with @feedmepos/mf-`);
|
3920
3919
|
});
|
3921
3920
|
const w = {
|
3922
3921
|
name: "vite-plugin-feedme-microfrontend",
|
@@ -3925,16 +3924,16 @@ const us = "@feedmepos/mf-", Ps = async (i, { command: n, mode: a }, u = {}) =>
|
|
3925
3924
|
},
|
3926
3925
|
transformIndexHtml: {
|
3927
3926
|
enforce: "pre",
|
3928
|
-
transform(
|
3927
|
+
transform(E) {
|
3929
3928
|
return {
|
3930
|
-
html:
|
3929
|
+
html: E,
|
3931
3930
|
tags: [
|
3932
3931
|
{
|
3933
3932
|
tag: "script",
|
3934
3933
|
attrs: {
|
3935
3934
|
type: "importmap"
|
3936
3935
|
},
|
3937
|
-
children: JSON.stringify(
|
3936
|
+
children: JSON.stringify(v, null, 2),
|
3938
3937
|
injectTo: "head-prepend"
|
3939
3938
|
},
|
3940
3939
|
{
|
@@ -3949,7 +3948,7 @@ const us = "@feedmepos/mf-", Ps = async (i, { command: n, mode: a }, u = {}) =>
|
|
3949
3948
|
}
|
3950
3949
|
}
|
3951
3950
|
};
|
3952
|
-
return
|
3951
|
+
return T.plugins.push(w), T;
|
3953
3952
|
};
|
3954
3953
|
export {
|
3955
3954
|
Zr as F,
|