codeforlife 2.11.3 → 2.11.5
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/{client-BK9NlSVR.js → client-CUE3jVb4.js} +1998 -1979
- package/dist/{client-BK9NlSVR.js.map → client-CUE3jVb4.js.map} +1 -1
- package/dist/{client-CmAMc2Wj.cjs → client-C_dmBP2e.cjs} +55 -55
- package/dist/{client-CmAMc2Wj.cjs.map → client-C_dmBP2e.cjs.map} +1 -1
- package/dist/emotion-server-create-instance.browser.esm-CgeoyX9a.js +2122 -0
- package/dist/emotion-server-create-instance.browser.esm-CgeoyX9a.js.map +1 -0
- package/dist/emotion-server-create-instance.browser.esm-CpbXhK4a.cjs +6 -0
- package/dist/emotion-server-create-instance.browser.esm-CpbXhK4a.cjs.map +1 -0
- package/dist/server/entry.cjs.js +1 -208
- package/dist/server/entry.cjs.js.map +1 -1
- package/dist/server/entry.d.ts +3 -3
- package/dist/server/entry.es.js +32 -21870
- package/dist/server/entry.es.js.map +1 -1
- package/dist/server.browser-DeLuEZOk.cjs +205 -0
- package/dist/server.browser-DeLuEZOk.cjs.map +1 -0
- package/dist/server.browser-gAvZ6xhz.js +19744 -0
- package/dist/server.browser-gAvZ6xhz.js.map +1 -0
- package/dist/style-BgmNVuOg.cjs +2 -0
- package/dist/style-BgmNVuOg.cjs.map +1 -0
- package/dist/style-C3515J9T.js +5 -0
- package/dist/style-C3515J9T.js.map +1 -0
- package/dist/utils/test.cjs.js +1 -1
- package/dist/utils/test.es.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2122 @@
|
|
|
1
|
+
import { g as He, c as te } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
+
import Y from "stream";
|
|
3
|
+
import ae from "buffer";
|
|
4
|
+
import ze from "events";
|
|
5
|
+
import Ct from "util";
|
|
6
|
+
var me = { exports: {} }, Ge;
|
|
7
|
+
function Lt() {
|
|
8
|
+
return Ge || (Ge = 1, (function(b, h) {
|
|
9
|
+
var y = Y;
|
|
10
|
+
b.exports = d, d.through = d;
|
|
11
|
+
function d(p, l, f) {
|
|
12
|
+
p = p || function(q) {
|
|
13
|
+
this.queue(q);
|
|
14
|
+
}, l = l || function() {
|
|
15
|
+
this.queue(null);
|
|
16
|
+
};
|
|
17
|
+
var t = !1, o = !1, c = [], v = !1, s = new y();
|
|
18
|
+
s.readable = s.writable = !0, s.paused = !1, s.autoDestroy = !(f && f.autoDestroy === !1), s.write = function(q) {
|
|
19
|
+
return p.call(this, q), !s.paused;
|
|
20
|
+
};
|
|
21
|
+
function k() {
|
|
22
|
+
for (; c.length && !s.paused; ) {
|
|
23
|
+
var q = c.shift();
|
|
24
|
+
if (q === null)
|
|
25
|
+
return s.emit("end");
|
|
26
|
+
s.emit("data", q);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
s.queue = s.push = function(q) {
|
|
30
|
+
return v || (q === null && (v = !0), c.push(q), k()), s;
|
|
31
|
+
}, s.on("end", function() {
|
|
32
|
+
s.readable = !1, !s.writable && s.autoDestroy && process.nextTick(function() {
|
|
33
|
+
s.destroy();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
function M() {
|
|
37
|
+
s.writable = !1, l.call(s), !s.readable && s.autoDestroy && s.destroy();
|
|
38
|
+
}
|
|
39
|
+
return s.end = function(q) {
|
|
40
|
+
if (!t)
|
|
41
|
+
return t = !0, arguments.length && s.write(q), M(), s;
|
|
42
|
+
}, s.destroy = function() {
|
|
43
|
+
if (!o)
|
|
44
|
+
return o = !0, t = !0, c.length = 0, s.writable = s.readable = !1, s.emit("close"), s;
|
|
45
|
+
}, s.pause = function() {
|
|
46
|
+
if (!s.paused)
|
|
47
|
+
return s.paused = !0, s;
|
|
48
|
+
}, s.resume = function() {
|
|
49
|
+
return s.paused && (s.paused = !1, s.emit("resume")), k(), s.paused || s.emit("drain"), s;
|
|
50
|
+
}, s;
|
|
51
|
+
}
|
|
52
|
+
})(me)), me.exports;
|
|
53
|
+
}
|
|
54
|
+
var Nt = Lt();
|
|
55
|
+
const Pt = /* @__PURE__ */ He(Nt);
|
|
56
|
+
var _e, Ke;
|
|
57
|
+
function Ut() {
|
|
58
|
+
if (Ke) return _e;
|
|
59
|
+
Ke = 1;
|
|
60
|
+
var b = Object.prototype.toString, h = typeof Buffer.alloc == "function" && typeof Buffer.allocUnsafe == "function" && typeof Buffer.from == "function";
|
|
61
|
+
function y(f) {
|
|
62
|
+
return b.call(f).slice(8, -1) === "ArrayBuffer";
|
|
63
|
+
}
|
|
64
|
+
function d(f, t, o) {
|
|
65
|
+
t >>>= 0;
|
|
66
|
+
var c = f.byteLength - t;
|
|
67
|
+
if (c < 0)
|
|
68
|
+
throw new RangeError("'offset' is out of bounds");
|
|
69
|
+
if (o === void 0)
|
|
70
|
+
o = c;
|
|
71
|
+
else if (o >>>= 0, o > c)
|
|
72
|
+
throw new RangeError("'length' is out of bounds");
|
|
73
|
+
return h ? Buffer.from(f.slice(t, t + o)) : new Buffer(new Uint8Array(f.slice(t, t + o)));
|
|
74
|
+
}
|
|
75
|
+
function p(f, t) {
|
|
76
|
+
if ((typeof t != "string" || t === "") && (t = "utf8"), !Buffer.isEncoding(t))
|
|
77
|
+
throw new TypeError('"encoding" must be a valid string encoding');
|
|
78
|
+
return h ? Buffer.from(f, t) : new Buffer(f, t);
|
|
79
|
+
}
|
|
80
|
+
function l(f, t, o) {
|
|
81
|
+
if (typeof f == "number")
|
|
82
|
+
throw new TypeError('"value" argument must not be a number');
|
|
83
|
+
return y(f) ? d(f, t, o) : typeof f == "string" ? p(f, t) : h ? Buffer.from(f) : new Buffer(f);
|
|
84
|
+
}
|
|
85
|
+
return _e = l, _e;
|
|
86
|
+
}
|
|
87
|
+
var se = { exports: {} }, Se, Je;
|
|
88
|
+
function It() {
|
|
89
|
+
return Je || (Je = 1, Se = Array.isArray || function(b) {
|
|
90
|
+
return Object.prototype.toString.call(b) == "[object Array]";
|
|
91
|
+
}), Se;
|
|
92
|
+
}
|
|
93
|
+
var z = {}, Qe;
|
|
94
|
+
function J() {
|
|
95
|
+
if (Qe) return z;
|
|
96
|
+
Qe = 1;
|
|
97
|
+
function b(w) {
|
|
98
|
+
return Array.isArray ? Array.isArray(w) : q(w) === "[object Array]";
|
|
99
|
+
}
|
|
100
|
+
z.isArray = b;
|
|
101
|
+
function h(w) {
|
|
102
|
+
return typeof w == "boolean";
|
|
103
|
+
}
|
|
104
|
+
z.isBoolean = h;
|
|
105
|
+
function y(w) {
|
|
106
|
+
return w === null;
|
|
107
|
+
}
|
|
108
|
+
z.isNull = y;
|
|
109
|
+
function d(w) {
|
|
110
|
+
return w == null;
|
|
111
|
+
}
|
|
112
|
+
z.isNullOrUndefined = d;
|
|
113
|
+
function p(w) {
|
|
114
|
+
return typeof w == "number";
|
|
115
|
+
}
|
|
116
|
+
z.isNumber = p;
|
|
117
|
+
function l(w) {
|
|
118
|
+
return typeof w == "string";
|
|
119
|
+
}
|
|
120
|
+
z.isString = l;
|
|
121
|
+
function f(w) {
|
|
122
|
+
return typeof w == "symbol";
|
|
123
|
+
}
|
|
124
|
+
z.isSymbol = f;
|
|
125
|
+
function t(w) {
|
|
126
|
+
return w === void 0;
|
|
127
|
+
}
|
|
128
|
+
z.isUndefined = t;
|
|
129
|
+
function o(w) {
|
|
130
|
+
return q(w) === "[object RegExp]";
|
|
131
|
+
}
|
|
132
|
+
z.isRegExp = o;
|
|
133
|
+
function c(w) {
|
|
134
|
+
return typeof w == "object" && w !== null;
|
|
135
|
+
}
|
|
136
|
+
z.isObject = c;
|
|
137
|
+
function v(w) {
|
|
138
|
+
return q(w) === "[object Date]";
|
|
139
|
+
}
|
|
140
|
+
z.isDate = v;
|
|
141
|
+
function s(w) {
|
|
142
|
+
return q(w) === "[object Error]" || w instanceof Error;
|
|
143
|
+
}
|
|
144
|
+
z.isError = s;
|
|
145
|
+
function k(w) {
|
|
146
|
+
return typeof w == "function";
|
|
147
|
+
}
|
|
148
|
+
z.isFunction = k;
|
|
149
|
+
function M(w) {
|
|
150
|
+
return w === null || typeof w == "boolean" || typeof w == "number" || typeof w == "string" || typeof w == "symbol" || // ES6 symbol
|
|
151
|
+
typeof w > "u";
|
|
152
|
+
}
|
|
153
|
+
z.isPrimitive = M, z.isBuffer = ae.Buffer.isBuffer;
|
|
154
|
+
function q(w) {
|
|
155
|
+
return Object.prototype.toString.call(w);
|
|
156
|
+
}
|
|
157
|
+
return z;
|
|
158
|
+
}
|
|
159
|
+
var oe = { exports: {} }, Ye;
|
|
160
|
+
function K() {
|
|
161
|
+
return Ye || (Ye = 1, typeof Object.create == "function" ? oe.exports = function(h, y) {
|
|
162
|
+
y && (h.super_ = y, h.prototype = Object.create(y.prototype, {
|
|
163
|
+
constructor: {
|
|
164
|
+
value: h,
|
|
165
|
+
enumerable: !1,
|
|
166
|
+
writable: !0,
|
|
167
|
+
configurable: !0
|
|
168
|
+
}
|
|
169
|
+
}));
|
|
170
|
+
} : oe.exports = function(h, y) {
|
|
171
|
+
if (y) {
|
|
172
|
+
h.super_ = y;
|
|
173
|
+
var d = function() {
|
|
174
|
+
};
|
|
175
|
+
d.prototype = y.prototype, h.prototype = new d(), h.prototype.constructor = h;
|
|
176
|
+
}
|
|
177
|
+
}), oe.exports;
|
|
178
|
+
}
|
|
179
|
+
var xe = {}, et;
|
|
180
|
+
function tt() {
|
|
181
|
+
if (et) return xe;
|
|
182
|
+
et = 1;
|
|
183
|
+
var b = ae.Buffer, h = b.isEncoding || function(t) {
|
|
184
|
+
switch (t && t.toLowerCase()) {
|
|
185
|
+
case "hex":
|
|
186
|
+
case "utf8":
|
|
187
|
+
case "utf-8":
|
|
188
|
+
case "ascii":
|
|
189
|
+
case "binary":
|
|
190
|
+
case "base64":
|
|
191
|
+
case "ucs2":
|
|
192
|
+
case "ucs-2":
|
|
193
|
+
case "utf16le":
|
|
194
|
+
case "utf-16le":
|
|
195
|
+
case "raw":
|
|
196
|
+
return !0;
|
|
197
|
+
default:
|
|
198
|
+
return !1;
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
function y(t) {
|
|
202
|
+
if (t && !h(t))
|
|
203
|
+
throw new Error("Unknown encoding: " + t);
|
|
204
|
+
}
|
|
205
|
+
var d = xe.StringDecoder = function(t) {
|
|
206
|
+
switch (this.encoding = (t || "utf8").toLowerCase().replace(/[-_]/, ""), y(t), this.encoding) {
|
|
207
|
+
case "utf8":
|
|
208
|
+
this.surrogateSize = 3;
|
|
209
|
+
break;
|
|
210
|
+
case "ucs2":
|
|
211
|
+
case "utf16le":
|
|
212
|
+
this.surrogateSize = 2, this.detectIncompleteChar = l;
|
|
213
|
+
break;
|
|
214
|
+
case "base64":
|
|
215
|
+
this.surrogateSize = 3, this.detectIncompleteChar = f;
|
|
216
|
+
break;
|
|
217
|
+
default:
|
|
218
|
+
this.write = p;
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
this.charBuffer = new b(6), this.charReceived = 0, this.charLength = 0;
|
|
222
|
+
};
|
|
223
|
+
d.prototype.write = function(t) {
|
|
224
|
+
for (var o = ""; this.charLength; ) {
|
|
225
|
+
var c = t.length >= this.charLength - this.charReceived ? this.charLength - this.charReceived : t.length;
|
|
226
|
+
if (t.copy(this.charBuffer, this.charReceived, 0, c), this.charReceived += c, this.charReceived < this.charLength)
|
|
227
|
+
return "";
|
|
228
|
+
t = t.slice(c, t.length), o = this.charBuffer.slice(0, this.charLength).toString(this.encoding);
|
|
229
|
+
var s = o.charCodeAt(o.length - 1);
|
|
230
|
+
if (s >= 55296 && s <= 56319) {
|
|
231
|
+
this.charLength += this.surrogateSize, o = "";
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
if (this.charReceived = this.charLength = 0, t.length === 0)
|
|
235
|
+
return o;
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
this.detectIncompleteChar(t);
|
|
239
|
+
var v = t.length;
|
|
240
|
+
this.charLength && (t.copy(this.charBuffer, 0, t.length - this.charReceived, v), v -= this.charReceived), o += t.toString(this.encoding, 0, v);
|
|
241
|
+
var v = o.length - 1, s = o.charCodeAt(v);
|
|
242
|
+
if (s >= 55296 && s <= 56319) {
|
|
243
|
+
var k = this.surrogateSize;
|
|
244
|
+
return this.charLength += k, this.charReceived += k, this.charBuffer.copy(this.charBuffer, k, 0, k), t.copy(this.charBuffer, 0, 0, k), o.substring(0, v);
|
|
245
|
+
}
|
|
246
|
+
return o;
|
|
247
|
+
}, d.prototype.detectIncompleteChar = function(t) {
|
|
248
|
+
for (var o = t.length >= 3 ? 3 : t.length; o > 0; o--) {
|
|
249
|
+
var c = t[t.length - o];
|
|
250
|
+
if (o == 1 && c >> 5 == 6) {
|
|
251
|
+
this.charLength = 2;
|
|
252
|
+
break;
|
|
253
|
+
}
|
|
254
|
+
if (o <= 2 && c >> 4 == 14) {
|
|
255
|
+
this.charLength = 3;
|
|
256
|
+
break;
|
|
257
|
+
}
|
|
258
|
+
if (o <= 3 && c >> 3 == 30) {
|
|
259
|
+
this.charLength = 4;
|
|
260
|
+
break;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
this.charReceived = o;
|
|
264
|
+
}, d.prototype.end = function(t) {
|
|
265
|
+
var o = "";
|
|
266
|
+
if (t && t.length && (o = this.write(t)), this.charReceived) {
|
|
267
|
+
var c = this.charReceived, v = this.charBuffer, s = this.encoding;
|
|
268
|
+
o += v.slice(0, c).toString(s);
|
|
269
|
+
}
|
|
270
|
+
return o;
|
|
271
|
+
};
|
|
272
|
+
function p(t) {
|
|
273
|
+
return t.toString(this.encoding);
|
|
274
|
+
}
|
|
275
|
+
function l(t) {
|
|
276
|
+
this.charReceived = t.length % 2, this.charLength = this.charReceived ? 2 : 0;
|
|
277
|
+
}
|
|
278
|
+
function f(t) {
|
|
279
|
+
this.charReceived = t.length % 3, this.charLength = this.charReceived ? 3 : 0;
|
|
280
|
+
}
|
|
281
|
+
return xe;
|
|
282
|
+
}
|
|
283
|
+
var Re, rt;
|
|
284
|
+
function Mt() {
|
|
285
|
+
if (rt) return Re;
|
|
286
|
+
rt = 1, Re = t;
|
|
287
|
+
var b = It(), h = ae.Buffer;
|
|
288
|
+
t.ReadableState = f;
|
|
289
|
+
var y = ze.EventEmitter;
|
|
290
|
+
y.listenerCount || (y.listenerCount = function(i, n) {
|
|
291
|
+
return i.listeners(n).length;
|
|
292
|
+
});
|
|
293
|
+
var d = Y, p = J();
|
|
294
|
+
p.inherits = K();
|
|
295
|
+
var l;
|
|
296
|
+
p.inherits(t, d);
|
|
297
|
+
function f(i, n) {
|
|
298
|
+
i = i || {};
|
|
299
|
+
var R = i.highWaterMark;
|
|
300
|
+
this.highWaterMark = R || R === 0 ? R : 16 * 1024, this.highWaterMark = ~~this.highWaterMark, this.buffer = [], this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = !1, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.calledRead = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.objectMode = !!i.objectMode, this.defaultEncoding = i.defaultEncoding || "utf8", this.ranOut = !1, this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, i.encoding && (l || (l = tt().StringDecoder), this.decoder = new l(i.encoding), this.encoding = i.encoding);
|
|
301
|
+
}
|
|
302
|
+
function t(i) {
|
|
303
|
+
if (!(this instanceof t))
|
|
304
|
+
return new t(i);
|
|
305
|
+
this._readableState = new f(i), this.readable = !0, d.call(this);
|
|
306
|
+
}
|
|
307
|
+
t.prototype.push = function(i, n) {
|
|
308
|
+
var R = this._readableState;
|
|
309
|
+
return typeof i == "string" && !R.objectMode && (n = n || R.defaultEncoding, n !== R.encoding && (i = new h(i, n), n = "")), o(this, R, i, n, !1);
|
|
310
|
+
}, t.prototype.unshift = function(i) {
|
|
311
|
+
var n = this._readableState;
|
|
312
|
+
return o(this, n, i, "", !0);
|
|
313
|
+
};
|
|
314
|
+
function o(i, n, R, j, N) {
|
|
315
|
+
var H = M(n, R);
|
|
316
|
+
if (H)
|
|
317
|
+
i.emit("error", H);
|
|
318
|
+
else if (R == null)
|
|
319
|
+
n.reading = !1, n.ended || q(i, n);
|
|
320
|
+
else if (n.objectMode || R && R.length > 0)
|
|
321
|
+
if (n.ended && !N) {
|
|
322
|
+
var a = new Error("stream.push() after EOF");
|
|
323
|
+
i.emit("error", a);
|
|
324
|
+
} else if (n.endEmitted && N) {
|
|
325
|
+
var a = new Error("stream.unshift() after end event");
|
|
326
|
+
i.emit("error", a);
|
|
327
|
+
} else
|
|
328
|
+
n.decoder && !N && !j && (R = n.decoder.write(R)), n.length += n.objectMode ? 1 : R.length, N ? n.buffer.unshift(R) : (n.reading = !1, n.buffer.push(R)), n.needReadable && w(i), g(i, n);
|
|
329
|
+
else N || (n.reading = !1);
|
|
330
|
+
return c(n);
|
|
331
|
+
}
|
|
332
|
+
function c(i) {
|
|
333
|
+
return !i.ended && (i.needReadable || i.length < i.highWaterMark || i.length === 0);
|
|
334
|
+
}
|
|
335
|
+
t.prototype.setEncoding = function(i) {
|
|
336
|
+
l || (l = tt().StringDecoder), this._readableState.decoder = new l(i), this._readableState.encoding = i;
|
|
337
|
+
};
|
|
338
|
+
var v = 8388608;
|
|
339
|
+
function s(i) {
|
|
340
|
+
if (i >= v)
|
|
341
|
+
i = v;
|
|
342
|
+
else {
|
|
343
|
+
i--;
|
|
344
|
+
for (var n = 1; n < 32; n <<= 1) i |= i >> n;
|
|
345
|
+
i++;
|
|
346
|
+
}
|
|
347
|
+
return i;
|
|
348
|
+
}
|
|
349
|
+
function k(i, n) {
|
|
350
|
+
return n.length === 0 && n.ended ? 0 : n.objectMode ? i === 0 ? 0 : 1 : i === null || isNaN(i) ? n.flowing && n.buffer.length ? n.buffer[0].length : n.length : i <= 0 ? 0 : (i > n.highWaterMark && (n.highWaterMark = s(i)), i > n.length ? n.ended ? n.length : (n.needReadable = !0, 0) : i);
|
|
351
|
+
}
|
|
352
|
+
t.prototype.read = function(i) {
|
|
353
|
+
var n = this._readableState;
|
|
354
|
+
n.calledRead = !0;
|
|
355
|
+
var R = i, j;
|
|
356
|
+
if ((typeof i != "number" || i > 0) && (n.emittedReadable = !1), i === 0 && n.needReadable && (n.length >= n.highWaterMark || n.ended))
|
|
357
|
+
return w(this), null;
|
|
358
|
+
if (i = k(i, n), i === 0 && n.ended)
|
|
359
|
+
return j = null, n.length > 0 && n.decoder && (j = D(i, n), n.length -= j.length), n.length === 0 && U(this), j;
|
|
360
|
+
var N = n.needReadable;
|
|
361
|
+
return n.length - i <= n.highWaterMark && (N = !0), (n.ended || n.reading) && (N = !1), N && (n.reading = !0, n.sync = !0, n.length === 0 && (n.needReadable = !0), this._read(n.highWaterMark), n.sync = !1), N && !n.reading && (i = k(R, n)), i > 0 ? j = D(i, n) : j = null, j === null && (n.needReadable = !0, i = 0), n.length -= i, n.length === 0 && !n.ended && (n.needReadable = !0), n.ended && !n.endEmitted && n.length === 0 && U(this), j;
|
|
362
|
+
};
|
|
363
|
+
function M(i, n) {
|
|
364
|
+
var R = null;
|
|
365
|
+
return !h.isBuffer(n) && typeof n != "string" && n !== null && n !== void 0 && !i.objectMode && (R = new TypeError("Invalid non-string/buffer chunk")), R;
|
|
366
|
+
}
|
|
367
|
+
function q(i, n) {
|
|
368
|
+
if (n.decoder && !n.ended) {
|
|
369
|
+
var R = n.decoder.end();
|
|
370
|
+
R && R.length && (n.buffer.push(R), n.length += n.objectMode ? 1 : R.length);
|
|
371
|
+
}
|
|
372
|
+
n.ended = !0, n.length > 0 ? w(i) : U(i);
|
|
373
|
+
}
|
|
374
|
+
function w(i) {
|
|
375
|
+
var n = i._readableState;
|
|
376
|
+
n.needReadable = !1, !n.emittedReadable && (n.emittedReadable = !0, n.sync ? process.nextTick(function() {
|
|
377
|
+
F(i);
|
|
378
|
+
}) : F(i));
|
|
379
|
+
}
|
|
380
|
+
function F(i) {
|
|
381
|
+
i.emit("readable");
|
|
382
|
+
}
|
|
383
|
+
function g(i, n) {
|
|
384
|
+
n.readingMore || (n.readingMore = !0, process.nextTick(function() {
|
|
385
|
+
x(i, n);
|
|
386
|
+
}));
|
|
387
|
+
}
|
|
388
|
+
function x(i, n) {
|
|
389
|
+
for (var R = n.length; !n.reading && !n.flowing && !n.ended && n.length < n.highWaterMark && (i.read(0), R !== n.length); )
|
|
390
|
+
R = n.length;
|
|
391
|
+
n.readingMore = !1;
|
|
392
|
+
}
|
|
393
|
+
t.prototype._read = function(i) {
|
|
394
|
+
this.emit("error", new Error("not implemented"));
|
|
395
|
+
}, t.prototype.pipe = function(i, n) {
|
|
396
|
+
var R = this, j = this._readableState;
|
|
397
|
+
switch (j.pipesCount) {
|
|
398
|
+
case 0:
|
|
399
|
+
j.pipes = i;
|
|
400
|
+
break;
|
|
401
|
+
case 1:
|
|
402
|
+
j.pipes = [j.pipes, i];
|
|
403
|
+
break;
|
|
404
|
+
default:
|
|
405
|
+
j.pipes.push(i);
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
j.pipesCount += 1;
|
|
409
|
+
var N = (!n || n.end !== !1) && i !== process.stdout && i !== process.stderr, H = N ? u : B;
|
|
410
|
+
j.endEmitted ? process.nextTick(H) : R.once("end", H), i.on("unpipe", a);
|
|
411
|
+
function a(G) {
|
|
412
|
+
G === R && B();
|
|
413
|
+
}
|
|
414
|
+
function u() {
|
|
415
|
+
i.end();
|
|
416
|
+
}
|
|
417
|
+
var S = O(R);
|
|
418
|
+
i.on("drain", S);
|
|
419
|
+
function B() {
|
|
420
|
+
i.removeListener("close", L), i.removeListener("finish", V), i.removeListener("drain", S), i.removeListener("error", W), i.removeListener("unpipe", a), R.removeListener("end", u), R.removeListener("end", B), (!i._writableState || i._writableState.needDrain) && S();
|
|
421
|
+
}
|
|
422
|
+
function W(G) {
|
|
423
|
+
X(), i.removeListener("error", W), y.listenerCount(i, "error") === 0 && i.emit("error", G);
|
|
424
|
+
}
|
|
425
|
+
!i._events || !i._events.error ? i.on("error", W) : b(i._events.error) ? i._events.error.unshift(W) : i._events.error = [W, i._events.error];
|
|
426
|
+
function L() {
|
|
427
|
+
i.removeListener("finish", V), X();
|
|
428
|
+
}
|
|
429
|
+
i.once("close", L);
|
|
430
|
+
function V() {
|
|
431
|
+
i.removeListener("close", L), X();
|
|
432
|
+
}
|
|
433
|
+
i.once("finish", V);
|
|
434
|
+
function X() {
|
|
435
|
+
R.unpipe(i);
|
|
436
|
+
}
|
|
437
|
+
return i.emit("pipe", R), j.flowing || (this.on("readable", m), j.flowing = !0, process.nextTick(function() {
|
|
438
|
+
_(R);
|
|
439
|
+
})), i;
|
|
440
|
+
};
|
|
441
|
+
function O(i) {
|
|
442
|
+
return function() {
|
|
443
|
+
var n = i._readableState;
|
|
444
|
+
n.awaitDrain--, n.awaitDrain === 0 && _(i);
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
function _(i) {
|
|
448
|
+
var n = i._readableState, R;
|
|
449
|
+
n.awaitDrain = 0;
|
|
450
|
+
function j(N, H, a) {
|
|
451
|
+
var u = N.write(R);
|
|
452
|
+
u === !1 && n.awaitDrain++;
|
|
453
|
+
}
|
|
454
|
+
for (; n.pipesCount && (R = i.read()) !== null; )
|
|
455
|
+
if (n.pipesCount === 1 ? j(n.pipes) : $(n.pipes, j), i.emit("data", R), n.awaitDrain > 0)
|
|
456
|
+
return;
|
|
457
|
+
if (n.pipesCount === 0) {
|
|
458
|
+
n.flowing = !1, y.listenerCount(i, "data") > 0 && T(i);
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
n.ranOut = !0;
|
|
462
|
+
}
|
|
463
|
+
function m() {
|
|
464
|
+
this._readableState.ranOut && (this._readableState.ranOut = !1, _(this));
|
|
465
|
+
}
|
|
466
|
+
t.prototype.unpipe = function(i) {
|
|
467
|
+
var n = this._readableState;
|
|
468
|
+
if (n.pipesCount === 0)
|
|
469
|
+
return this;
|
|
470
|
+
if (n.pipesCount === 1)
|
|
471
|
+
return i && i !== n.pipes ? this : (i || (i = n.pipes), n.pipes = null, n.pipesCount = 0, this.removeListener("readable", m), n.flowing = !1, i && i.emit("unpipe", this), this);
|
|
472
|
+
if (!i) {
|
|
473
|
+
var R = n.pipes, j = n.pipesCount;
|
|
474
|
+
n.pipes = null, n.pipesCount = 0, this.removeListener("readable", m), n.flowing = !1;
|
|
475
|
+
for (var N = 0; N < j; N++)
|
|
476
|
+
R[N].emit("unpipe", this);
|
|
477
|
+
return this;
|
|
478
|
+
}
|
|
479
|
+
var N = Z(n.pipes, i);
|
|
480
|
+
return N === -1 ? this : (n.pipes.splice(N, 1), n.pipesCount -= 1, n.pipesCount === 1 && (n.pipes = n.pipes[0]), i.emit("unpipe", this), this);
|
|
481
|
+
}, t.prototype.on = function(i, n) {
|
|
482
|
+
var R = d.prototype.on.call(this, i, n);
|
|
483
|
+
if (i === "data" && !this._readableState.flowing && T(this), i === "readable" && this.readable) {
|
|
484
|
+
var j = this._readableState;
|
|
485
|
+
j.readableListening || (j.readableListening = !0, j.emittedReadable = !1, j.needReadable = !0, j.reading ? j.length && w(this) : this.read(0));
|
|
486
|
+
}
|
|
487
|
+
return R;
|
|
488
|
+
}, t.prototype.addListener = t.prototype.on, t.prototype.resume = function() {
|
|
489
|
+
T(this), this.read(0), this.emit("resume");
|
|
490
|
+
}, t.prototype.pause = function() {
|
|
491
|
+
T(this, !0), this.emit("pause");
|
|
492
|
+
};
|
|
493
|
+
function T(i, n) {
|
|
494
|
+
var R = i._readableState;
|
|
495
|
+
if (R.flowing)
|
|
496
|
+
throw new Error("Cannot switch to old mode now.");
|
|
497
|
+
var j = n || !1, N = !1;
|
|
498
|
+
i.readable = !0, i.pipe = d.prototype.pipe, i.on = i.addListener = d.prototype.on, i.on("readable", function() {
|
|
499
|
+
N = !0;
|
|
500
|
+
for (var H; !j && (H = i.read()) !== null; )
|
|
501
|
+
i.emit("data", H);
|
|
502
|
+
H === null && (N = !1, i._readableState.needReadable = !0);
|
|
503
|
+
}), i.pause = function() {
|
|
504
|
+
j = !0, this.emit("pause");
|
|
505
|
+
}, i.resume = function() {
|
|
506
|
+
j = !1, N ? process.nextTick(function() {
|
|
507
|
+
i.emit("readable");
|
|
508
|
+
}) : this.read(0), this.emit("resume");
|
|
509
|
+
}, i.emit("readable");
|
|
510
|
+
}
|
|
511
|
+
t.prototype.wrap = function(i) {
|
|
512
|
+
var n = this._readableState, R = !1, j = this;
|
|
513
|
+
i.on("end", function() {
|
|
514
|
+
if (n.decoder && !n.ended) {
|
|
515
|
+
var a = n.decoder.end();
|
|
516
|
+
a && a.length && j.push(a);
|
|
517
|
+
}
|
|
518
|
+
j.push(null);
|
|
519
|
+
}), i.on("data", function(a) {
|
|
520
|
+
if (n.decoder && (a = n.decoder.write(a)), !(n.objectMode && a == null) && !(!n.objectMode && (!a || !a.length))) {
|
|
521
|
+
var u = j.push(a);
|
|
522
|
+
u || (R = !0, i.pause());
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
for (var N in i)
|
|
526
|
+
typeof i[N] == "function" && typeof this[N] > "u" && (this[N] = /* @__PURE__ */ (function(a) {
|
|
527
|
+
return function() {
|
|
528
|
+
return i[a].apply(i, arguments);
|
|
529
|
+
};
|
|
530
|
+
})(N));
|
|
531
|
+
var H = ["error", "close", "destroy", "pause", "resume"];
|
|
532
|
+
return $(H, function(a) {
|
|
533
|
+
i.on(a, j.emit.bind(j, a));
|
|
534
|
+
}), j._read = function(a) {
|
|
535
|
+
R && (R = !1, i.resume());
|
|
536
|
+
}, j;
|
|
537
|
+
}, t._fromList = D;
|
|
538
|
+
function D(i, n) {
|
|
539
|
+
var R = n.buffer, j = n.length, N = !!n.decoder, H = !!n.objectMode, a;
|
|
540
|
+
if (R.length === 0)
|
|
541
|
+
return null;
|
|
542
|
+
if (j === 0)
|
|
543
|
+
a = null;
|
|
544
|
+
else if (H)
|
|
545
|
+
a = R.shift();
|
|
546
|
+
else if (!i || i >= j)
|
|
547
|
+
N ? a = R.join("") : a = h.concat(R, j), R.length = 0;
|
|
548
|
+
else if (i < R[0].length) {
|
|
549
|
+
var u = R[0];
|
|
550
|
+
a = u.slice(0, i), R[0] = u.slice(i);
|
|
551
|
+
} else if (i === R[0].length)
|
|
552
|
+
a = R.shift();
|
|
553
|
+
else {
|
|
554
|
+
N ? a = "" : a = new h(i);
|
|
555
|
+
for (var S = 0, B = 0, W = R.length; B < W && S < i; B++) {
|
|
556
|
+
var u = R[0], L = Math.min(i - S, u.length);
|
|
557
|
+
N ? a += u.slice(0, L) : u.copy(a, S, 0, L), L < u.length ? R[0] = u.slice(L) : R.shift(), S += L;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
return a;
|
|
561
|
+
}
|
|
562
|
+
function U(i) {
|
|
563
|
+
var n = i._readableState;
|
|
564
|
+
if (n.length > 0)
|
|
565
|
+
throw new Error("endReadable called on non-empty stream");
|
|
566
|
+
!n.endEmitted && n.calledRead && (n.ended = !0, process.nextTick(function() {
|
|
567
|
+
!n.endEmitted && n.length === 0 && (n.endEmitted = !0, i.readable = !1, i.emit("end"));
|
|
568
|
+
}));
|
|
569
|
+
}
|
|
570
|
+
function $(i, n) {
|
|
571
|
+
for (var R = 0, j = i.length; R < j; R++)
|
|
572
|
+
n(i[R], R);
|
|
573
|
+
}
|
|
574
|
+
function Z(i, n) {
|
|
575
|
+
for (var R = 0, j = i.length; R < j; R++)
|
|
576
|
+
if (i[R] === n) return R;
|
|
577
|
+
return -1;
|
|
578
|
+
}
|
|
579
|
+
return Re;
|
|
580
|
+
}
|
|
581
|
+
var Ee, it;
|
|
582
|
+
function Ve() {
|
|
583
|
+
if (it) return Ee;
|
|
584
|
+
it = 1, Ee = p;
|
|
585
|
+
var b = Object.keys || function(t) {
|
|
586
|
+
var o = [];
|
|
587
|
+
for (var c in t) o.push(c);
|
|
588
|
+
return o;
|
|
589
|
+
}, h = J();
|
|
590
|
+
h.inherits = K();
|
|
591
|
+
var y = Mt(), d = kt();
|
|
592
|
+
h.inherits(p, y), f(b(d.prototype), function(t) {
|
|
593
|
+
p.prototype[t] || (p.prototype[t] = d.prototype[t]);
|
|
594
|
+
});
|
|
595
|
+
function p(t) {
|
|
596
|
+
if (!(this instanceof p))
|
|
597
|
+
return new p(t);
|
|
598
|
+
y.call(this, t), d.call(this, t), t && t.readable === !1 && (this.readable = !1), t && t.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, t && t.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", l);
|
|
599
|
+
}
|
|
600
|
+
function l() {
|
|
601
|
+
this.allowHalfOpen || this._writableState.ended || process.nextTick(this.end.bind(this));
|
|
602
|
+
}
|
|
603
|
+
function f(t, o) {
|
|
604
|
+
for (var c = 0, v = t.length; c < v; c++)
|
|
605
|
+
o(t[c], c);
|
|
606
|
+
}
|
|
607
|
+
return Ee;
|
|
608
|
+
}
|
|
609
|
+
var Te, nt;
|
|
610
|
+
function kt() {
|
|
611
|
+
if (nt) return Te;
|
|
612
|
+
nt = 1, Te = l;
|
|
613
|
+
var b = ae.Buffer;
|
|
614
|
+
l.WritableState = p;
|
|
615
|
+
var h = J();
|
|
616
|
+
h.inherits = K();
|
|
617
|
+
var y = Y;
|
|
618
|
+
h.inherits(l, y);
|
|
619
|
+
function d(_, m, T) {
|
|
620
|
+
this.chunk = _, this.encoding = m, this.callback = T;
|
|
621
|
+
}
|
|
622
|
+
function p(_, m) {
|
|
623
|
+
_ = _ || {};
|
|
624
|
+
var T = _.highWaterMark;
|
|
625
|
+
this.highWaterMark = T || T === 0 ? T : 16 * 1024, this.objectMode = !!_.objectMode, this.highWaterMark = ~~this.highWaterMark, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1;
|
|
626
|
+
var D = _.decodeStrings === !1;
|
|
627
|
+
this.decodeStrings = !D, this.defaultEncoding = _.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(U) {
|
|
628
|
+
M(m, U);
|
|
629
|
+
}, this.writecb = null, this.writelen = 0, this.buffer = [], this.errorEmitted = !1;
|
|
630
|
+
}
|
|
631
|
+
function l(_) {
|
|
632
|
+
var m = Ve();
|
|
633
|
+
if (!(this instanceof l) && !(this instanceof m))
|
|
634
|
+
return new l(_);
|
|
635
|
+
this._writableState = new p(_, this), this.writable = !0, y.call(this);
|
|
636
|
+
}
|
|
637
|
+
l.prototype.pipe = function() {
|
|
638
|
+
this.emit("error", new Error("Cannot pipe. Not readable."));
|
|
639
|
+
};
|
|
640
|
+
function f(_, m, T) {
|
|
641
|
+
var D = new Error("write after end");
|
|
642
|
+
_.emit("error", D), process.nextTick(function() {
|
|
643
|
+
T(D);
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
function t(_, m, T, D) {
|
|
647
|
+
var U = !0;
|
|
648
|
+
if (!b.isBuffer(T) && typeof T != "string" && T !== null && T !== void 0 && !m.objectMode) {
|
|
649
|
+
var $ = new TypeError("Invalid non-string/buffer chunk");
|
|
650
|
+
_.emit("error", $), process.nextTick(function() {
|
|
651
|
+
D($);
|
|
652
|
+
}), U = !1;
|
|
653
|
+
}
|
|
654
|
+
return U;
|
|
655
|
+
}
|
|
656
|
+
l.prototype.write = function(_, m, T) {
|
|
657
|
+
var D = this._writableState, U = !1;
|
|
658
|
+
return typeof m == "function" && (T = m, m = null), b.isBuffer(_) ? m = "buffer" : m || (m = D.defaultEncoding), typeof T != "function" && (T = function() {
|
|
659
|
+
}), D.ended ? f(this, D, T) : t(this, D, _, T) && (U = c(this, D, _, m, T)), U;
|
|
660
|
+
};
|
|
661
|
+
function o(_, m, T) {
|
|
662
|
+
return !_.objectMode && _.decodeStrings !== !1 && typeof m == "string" && (m = new b(m, T)), m;
|
|
663
|
+
}
|
|
664
|
+
function c(_, m, T, D, U) {
|
|
665
|
+
T = o(m, T, D), b.isBuffer(T) && (D = "buffer");
|
|
666
|
+
var $ = m.objectMode ? 1 : T.length;
|
|
667
|
+
m.length += $;
|
|
668
|
+
var Z = m.length < m.highWaterMark;
|
|
669
|
+
return Z || (m.needDrain = !0), m.writing ? m.buffer.push(new d(T, D, U)) : v(_, m, $, T, D, U), Z;
|
|
670
|
+
}
|
|
671
|
+
function v(_, m, T, D, U, $) {
|
|
672
|
+
m.writelen = T, m.writecb = $, m.writing = !0, m.sync = !0, _._write(D, U, m.onwrite), m.sync = !1;
|
|
673
|
+
}
|
|
674
|
+
function s(_, m, T, D, U) {
|
|
675
|
+
T ? process.nextTick(function() {
|
|
676
|
+
U(D);
|
|
677
|
+
}) : U(D), _._writableState.errorEmitted = !0, _.emit("error", D);
|
|
678
|
+
}
|
|
679
|
+
function k(_) {
|
|
680
|
+
_.writing = !1, _.writecb = null, _.length -= _.writelen, _.writelen = 0;
|
|
681
|
+
}
|
|
682
|
+
function M(_, m) {
|
|
683
|
+
var T = _._writableState, D = T.sync, U = T.writecb;
|
|
684
|
+
if (k(T), m)
|
|
685
|
+
s(_, T, D, m, U);
|
|
686
|
+
else {
|
|
687
|
+
var $ = g(_, T);
|
|
688
|
+
!$ && !T.bufferProcessing && T.buffer.length && F(_, T), D ? process.nextTick(function() {
|
|
689
|
+
q(_, T, $, U);
|
|
690
|
+
}) : q(_, T, $, U);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
function q(_, m, T, D) {
|
|
694
|
+
T || w(_, m), D(), T && x(_, m);
|
|
695
|
+
}
|
|
696
|
+
function w(_, m) {
|
|
697
|
+
m.length === 0 && m.needDrain && (m.needDrain = !1, _.emit("drain"));
|
|
698
|
+
}
|
|
699
|
+
function F(_, m) {
|
|
700
|
+
m.bufferProcessing = !0;
|
|
701
|
+
for (var T = 0; T < m.buffer.length; T++) {
|
|
702
|
+
var D = m.buffer[T], U = D.chunk, $ = D.encoding, Z = D.callback, i = m.objectMode ? 1 : U.length;
|
|
703
|
+
if (v(_, m, i, U, $, Z), m.writing) {
|
|
704
|
+
T++;
|
|
705
|
+
break;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
m.bufferProcessing = !1, T < m.buffer.length ? m.buffer = m.buffer.slice(T) : m.buffer.length = 0;
|
|
709
|
+
}
|
|
710
|
+
l.prototype._write = function(_, m, T) {
|
|
711
|
+
T(new Error("not implemented"));
|
|
712
|
+
}, l.prototype.end = function(_, m, T) {
|
|
713
|
+
var D = this._writableState;
|
|
714
|
+
typeof _ == "function" ? (T = _, _ = null, m = null) : typeof m == "function" && (T = m, m = null), typeof _ < "u" && _ !== null && this.write(_, m), !D.ending && !D.finished && O(this, D, T);
|
|
715
|
+
};
|
|
716
|
+
function g(_, m) {
|
|
717
|
+
return m.ending && m.length === 0 && !m.finished && !m.writing;
|
|
718
|
+
}
|
|
719
|
+
function x(_, m) {
|
|
720
|
+
var T = g(_, m);
|
|
721
|
+
return T && (m.finished = !0, _.emit("finish")), T;
|
|
722
|
+
}
|
|
723
|
+
function O(_, m, T) {
|
|
724
|
+
m.ending = !0, x(_, m), T && (m.finished ? process.nextTick(T) : _.once("finish", T)), m.ended = !0;
|
|
725
|
+
}
|
|
726
|
+
return Te;
|
|
727
|
+
}
|
|
728
|
+
var Ce, at;
|
|
729
|
+
function qt() {
|
|
730
|
+
if (at) return Ce;
|
|
731
|
+
at = 1, Ce = p;
|
|
732
|
+
var b = Ve(), h = J();
|
|
733
|
+
h.inherits = K(), h.inherits(p, b);
|
|
734
|
+
function y(f, t) {
|
|
735
|
+
this.afterTransform = function(o, c) {
|
|
736
|
+
return d(t, o, c);
|
|
737
|
+
}, this.needTransform = !1, this.transforming = !1, this.writecb = null, this.writechunk = null;
|
|
738
|
+
}
|
|
739
|
+
function d(f, t, o) {
|
|
740
|
+
var c = f._transformState;
|
|
741
|
+
c.transforming = !1;
|
|
742
|
+
var v = c.writecb;
|
|
743
|
+
if (!v)
|
|
744
|
+
return f.emit("error", new Error("no writecb in Transform class"));
|
|
745
|
+
c.writechunk = null, c.writecb = null, o != null && f.push(o), v && v(t);
|
|
746
|
+
var s = f._readableState;
|
|
747
|
+
s.reading = !1, (s.needReadable || s.length < s.highWaterMark) && f._read(s.highWaterMark);
|
|
748
|
+
}
|
|
749
|
+
function p(f) {
|
|
750
|
+
if (!(this instanceof p))
|
|
751
|
+
return new p(f);
|
|
752
|
+
b.call(this, f), this._transformState = new y(f, this);
|
|
753
|
+
var t = this;
|
|
754
|
+
this._readableState.needReadable = !0, this._readableState.sync = !1, this.once("finish", function() {
|
|
755
|
+
typeof this._flush == "function" ? this._flush(function(o) {
|
|
756
|
+
l(t, o);
|
|
757
|
+
}) : l(t);
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
p.prototype.push = function(f, t) {
|
|
761
|
+
return this._transformState.needTransform = !1, b.prototype.push.call(this, f, t);
|
|
762
|
+
}, p.prototype._transform = function(f, t, o) {
|
|
763
|
+
throw new Error("not implemented");
|
|
764
|
+
}, p.prototype._write = function(f, t, o) {
|
|
765
|
+
var c = this._transformState;
|
|
766
|
+
if (c.writecb = o, c.writechunk = f, c.writeencoding = t, !c.transforming) {
|
|
767
|
+
var v = this._readableState;
|
|
768
|
+
(c.needTransform || v.needReadable || v.length < v.highWaterMark) && this._read(v.highWaterMark);
|
|
769
|
+
}
|
|
770
|
+
}, p.prototype._read = function(f) {
|
|
771
|
+
var t = this._transformState;
|
|
772
|
+
t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
|
|
773
|
+
};
|
|
774
|
+
function l(f, t) {
|
|
775
|
+
if (t)
|
|
776
|
+
return f.emit("error", t);
|
|
777
|
+
var o = f._writableState;
|
|
778
|
+
f._readableState;
|
|
779
|
+
var c = f._transformState;
|
|
780
|
+
if (o.length)
|
|
781
|
+
throw new Error("calling transform done when ws.length != 0");
|
|
782
|
+
if (c.transforming)
|
|
783
|
+
throw new Error("calling transform done when still transforming");
|
|
784
|
+
return f.push(null);
|
|
785
|
+
}
|
|
786
|
+
return Ce;
|
|
787
|
+
}
|
|
788
|
+
var Me, ft;
|
|
789
|
+
function Ft() {
|
|
790
|
+
if (ft) return Me;
|
|
791
|
+
ft = 1, Me = y;
|
|
792
|
+
var b = qt(), h = J();
|
|
793
|
+
h.inherits = K(), h.inherits(y, b);
|
|
794
|
+
function y(d) {
|
|
795
|
+
if (!(this instanceof y))
|
|
796
|
+
return new y(d);
|
|
797
|
+
b.call(this, d);
|
|
798
|
+
}
|
|
799
|
+
return y.prototype._transform = function(d, p, l) {
|
|
800
|
+
l(null, d);
|
|
801
|
+
}, Me;
|
|
802
|
+
}
|
|
803
|
+
var st;
|
|
804
|
+
function $t() {
|
|
805
|
+
return st || (st = 1, (function(b, h) {
|
|
806
|
+
var y = Y;
|
|
807
|
+
h = b.exports = Mt(), h.Stream = y, h.Readable = h, h.Writable = kt(), h.Duplex = Ve(), h.Transform = qt(), h.PassThrough = Ft(), !process.browser && process.env.READABLE_STREAM === "disable" && (b.exports = Y);
|
|
808
|
+
})(se, se.exports)), se.exports;
|
|
809
|
+
}
|
|
810
|
+
var ke, ot;
|
|
811
|
+
function Ht() {
|
|
812
|
+
if (ot) return ke;
|
|
813
|
+
ot = 1;
|
|
814
|
+
var b = Ut(), h = $t().Transform, y = K();
|
|
815
|
+
y(f, h), ke = f;
|
|
816
|
+
var d = {
|
|
817
|
+
lt: 60,
|
|
818
|
+
gt: 62,
|
|
819
|
+
slash: 47,
|
|
820
|
+
dquote: 34,
|
|
821
|
+
squote: 39,
|
|
822
|
+
equal: 61
|
|
823
|
+
}, p = {
|
|
824
|
+
endScript: b("<\/script"),
|
|
825
|
+
endStyle: b("</style"),
|
|
826
|
+
endTitle: b("</title"),
|
|
827
|
+
comment: b("<!--"),
|
|
828
|
+
endComment: b("-->"),
|
|
829
|
+
cdata: b("<![CDATA["),
|
|
830
|
+
endCdata: b("]]>")
|
|
831
|
+
}, l = {
|
|
832
|
+
TagNameState: 1,
|
|
833
|
+
AttributeNameState: 2,
|
|
834
|
+
BeforeAttributeValueState: 3,
|
|
835
|
+
AttributeValueState: 4
|
|
836
|
+
};
|
|
837
|
+
function f() {
|
|
838
|
+
if (!(this instanceof f)) return new f();
|
|
839
|
+
h.call(this), this._readableState.objectMode = !0, this.state = "text", this.tagState = null, this.quoteState = null, this.raw = null, this.buffers = [], this._last = [];
|
|
840
|
+
}
|
|
841
|
+
f.prototype._transform = function(v, s, k) {
|
|
842
|
+
var M = 0, q = 0;
|
|
843
|
+
for (this._prev && (v = Buffer.concat([this._prev, v]), M = this._prev.length - 1, q = this._offset, this._prev = null, this._offset = 0); M < v.length; M++) {
|
|
844
|
+
var w = v[M];
|
|
845
|
+
if (this._last.push(w), this._last.length > 9 && this._last.shift(), this.raw) {
|
|
846
|
+
var F = this._testRaw(v, q, M);
|
|
847
|
+
F && (this.push(["text", F[0]]), this.raw === p.endComment || this.raw === p.endCdata ? (this.state = "text", this.buffers = [], this.push(["close", F[1]])) : (this.state = "open", this.buffers = [F[1]]), this.raw = null, q = M + 1);
|
|
848
|
+
} else {
|
|
849
|
+
if (this.state === "text" && w === d.lt && M === v.length - 1)
|
|
850
|
+
return this._prev = v, this._offset = q, k();
|
|
851
|
+
if (this.state === "text" && w === d.lt && !c(v[M + 1]))
|
|
852
|
+
M > 0 && M - q > 0 && this.buffers.push(v.slice(q, M)), q = M, this.state = "open", this.tagState = l.TagNameState, this._pushState("text");
|
|
853
|
+
else if (this.tagState === l.TagNameState && c(w))
|
|
854
|
+
this.tagState = l.AttributeNameState;
|
|
855
|
+
else if (this.tagState === l.AttributeNameState && w === d.equal)
|
|
856
|
+
this.tagState = l.BeforeAttributeValueState;
|
|
857
|
+
else if (!(this.tagState === l.BeforeAttributeValueState && c(w))) if (this.tagState === l.BeforeAttributeValueState && w !== d.gt)
|
|
858
|
+
this.tagState = l.AttributeValueState, w === d.dquote ? this.quoteState = "double" : w === d.squote ? this.quoteState = "single" : this.quoteState = null;
|
|
859
|
+
else if (this.tagState === l.AttributeValueState && !this.quoteState && c(w))
|
|
860
|
+
this.tagState = l.AttributeNameState;
|
|
861
|
+
else if (this.tagState === l.AttributeValueState && this.quoteState === "double" && w === d.dquote)
|
|
862
|
+
this.quoteState = null, this.tagState = l.AttributeNameState;
|
|
863
|
+
else if (this.tagState === l.AttributeValueState && this.quoteState === "single" && w === d.squote)
|
|
864
|
+
this.quoteState = null, this.tagState = l.AttributeNameState;
|
|
865
|
+
else if (this.state === "open" && w === d.gt && !this.quoteState)
|
|
866
|
+
if (this.buffers.push(v.slice(q, M + 1)), q = M + 1, this.state = "text", this.tagState = null, this._getChar(1) === d.slash)
|
|
867
|
+
this._pushState("close");
|
|
868
|
+
else {
|
|
869
|
+
var g = this._getTag();
|
|
870
|
+
g === "script" && (this.raw = p.endScript), g === "style" && (this.raw = p.endStyle), g === "title" && (this.raw = p.endTitle), this._pushState("open");
|
|
871
|
+
}
|
|
872
|
+
else this.state === "open" && t(this._last, p.comment) ? (this.buffers.push(v.slice(q, M + 1)), q = M + 1, this.state = "text", this.raw = p.endComment, this._pushState("open")) : this.state === "open" && t(this._last, p.cdata) && (this.buffers.push(v.slice(q, M + 1)), q = M + 1, this.state = "text", this.raw = p.endCdata, this._pushState("open"));
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
q < v.length && this.buffers.push(v.slice(q)), k();
|
|
876
|
+
}, f.prototype._flush = function(v) {
|
|
877
|
+
this.state === "text" && this._pushState("text"), this.push(null), v();
|
|
878
|
+
}, f.prototype._pushState = function(v) {
|
|
879
|
+
if (this.buffers.length !== 0) {
|
|
880
|
+
var s = Buffer.concat(this.buffers);
|
|
881
|
+
this.buffers = [], this.push([v, s]);
|
|
882
|
+
}
|
|
883
|
+
}, f.prototype._getChar = function(v) {
|
|
884
|
+
for (var s = 0, k = 0; k < this.buffers.length; k++) {
|
|
885
|
+
var M = this.buffers[k];
|
|
886
|
+
if (s + M.length > v)
|
|
887
|
+
return M[v - s];
|
|
888
|
+
s += M;
|
|
889
|
+
}
|
|
890
|
+
}, f.prototype._getTag = function() {
|
|
891
|
+
for (var v = 0, s = "", k = 0; k < this.buffers.length; k++) {
|
|
892
|
+
for (var M = this.buffers[k], q = 0; q < M.length; q++)
|
|
893
|
+
if (!(v === 0 && q === 0)) {
|
|
894
|
+
var w = String.fromCharCode(M[q]);
|
|
895
|
+
if (/[^\w-!\[\]]/.test(w))
|
|
896
|
+
return s.toLowerCase();
|
|
897
|
+
s += w;
|
|
898
|
+
}
|
|
899
|
+
v += M.length;
|
|
900
|
+
}
|
|
901
|
+
}, f.prototype._testRaw = function(w, s, k) {
|
|
902
|
+
var M = this.raw, q = this._last;
|
|
903
|
+
if (t(q, M)) {
|
|
904
|
+
this.buffers.push(w.slice(s, k + 1));
|
|
905
|
+
var w = Buffer.concat(this.buffers), F = w.length - M.length;
|
|
906
|
+
return [w.slice(0, F), w.slice(F)];
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
function t(v, s) {
|
|
910
|
+
if (v.length < s.length) return !1;
|
|
911
|
+
for (var k = v.length - 1, M = s.length - 1; k >= 0 && M >= 0; k--, M--)
|
|
912
|
+
if (o(v[k]) !== o(s[M])) return !1;
|
|
913
|
+
return !0;
|
|
914
|
+
}
|
|
915
|
+
function o(v) {
|
|
916
|
+
return v >= 65 && v <= 90 ? v + 32 : v;
|
|
917
|
+
}
|
|
918
|
+
function c(v) {
|
|
919
|
+
return v === 32 || v === 9 || v === 10 || v === 12 || v === 13;
|
|
920
|
+
}
|
|
921
|
+
return ke;
|
|
922
|
+
}
|
|
923
|
+
var zt = Ht();
|
|
924
|
+
const Vt = /* @__PURE__ */ He(zt);
|
|
925
|
+
var le = { exports: {} }, ue = { exports: {} }, he = { exports: {} }, lt;
|
|
926
|
+
function ce() {
|
|
927
|
+
if (lt) return he.exports;
|
|
928
|
+
lt = 1, typeof process > "u" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version.indexOf("v1.8.") !== 0 ? he.exports = { nextTick: b } : he.exports = process;
|
|
929
|
+
function b(h, y, d, p) {
|
|
930
|
+
if (typeof h != "function")
|
|
931
|
+
throw new TypeError('"callback" argument must be a function');
|
|
932
|
+
var l = arguments.length, f, t;
|
|
933
|
+
switch (l) {
|
|
934
|
+
case 0:
|
|
935
|
+
case 1:
|
|
936
|
+
return process.nextTick(h);
|
|
937
|
+
case 2:
|
|
938
|
+
return process.nextTick(function() {
|
|
939
|
+
h.call(null, y);
|
|
940
|
+
});
|
|
941
|
+
case 3:
|
|
942
|
+
return process.nextTick(function() {
|
|
943
|
+
h.call(null, y, d);
|
|
944
|
+
});
|
|
945
|
+
case 4:
|
|
946
|
+
return process.nextTick(function() {
|
|
947
|
+
h.call(null, y, d, p);
|
|
948
|
+
});
|
|
949
|
+
default:
|
|
950
|
+
for (f = new Array(l - 1), t = 0; t < f.length; )
|
|
951
|
+
f[t++] = arguments[t];
|
|
952
|
+
return process.nextTick(function() {
|
|
953
|
+
h.apply(null, f);
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
return he.exports;
|
|
958
|
+
}
|
|
959
|
+
var qe, ut;
|
|
960
|
+
function Xt() {
|
|
961
|
+
if (ut) return qe;
|
|
962
|
+
ut = 1;
|
|
963
|
+
var b = {}.toString;
|
|
964
|
+
return qe = Array.isArray || function(h) {
|
|
965
|
+
return b.call(h) == "[object Array]";
|
|
966
|
+
}, qe;
|
|
967
|
+
}
|
|
968
|
+
var je, ht;
|
|
969
|
+
function jt() {
|
|
970
|
+
return ht || (ht = 1, je = ze.EventEmitter), je;
|
|
971
|
+
}
|
|
972
|
+
var de = { exports: {} }, dt;
|
|
973
|
+
function pe() {
|
|
974
|
+
return dt || (dt = 1, (function(b, h) {
|
|
975
|
+
var y = ae, d = y.Buffer;
|
|
976
|
+
function p(f, t) {
|
|
977
|
+
for (var o in f)
|
|
978
|
+
t[o] = f[o];
|
|
979
|
+
}
|
|
980
|
+
d.from && d.alloc && d.allocUnsafe && d.allocUnsafeSlow ? b.exports = y : (p(y, h), h.Buffer = l);
|
|
981
|
+
function l(f, t, o) {
|
|
982
|
+
return d(f, t, o);
|
|
983
|
+
}
|
|
984
|
+
p(d, l), l.from = function(f, t, o) {
|
|
985
|
+
if (typeof f == "number")
|
|
986
|
+
throw new TypeError("Argument must not be a number");
|
|
987
|
+
return d(f, t, o);
|
|
988
|
+
}, l.alloc = function(f, t, o) {
|
|
989
|
+
if (typeof f != "number")
|
|
990
|
+
throw new TypeError("Argument must be a number");
|
|
991
|
+
var c = d(f);
|
|
992
|
+
return t !== void 0 ? typeof o == "string" ? c.fill(t, o) : c.fill(t) : c.fill(0), c;
|
|
993
|
+
}, l.allocUnsafe = function(f) {
|
|
994
|
+
if (typeof f != "number")
|
|
995
|
+
throw new TypeError("Argument must be a number");
|
|
996
|
+
return d(f);
|
|
997
|
+
}, l.allocUnsafeSlow = function(f) {
|
|
998
|
+
if (typeof f != "number")
|
|
999
|
+
throw new TypeError("Argument must be a number");
|
|
1000
|
+
return y.SlowBuffer(f);
|
|
1001
|
+
};
|
|
1002
|
+
})(de, de.exports)), de.exports;
|
|
1003
|
+
}
|
|
1004
|
+
var Be = { exports: {} }, ct;
|
|
1005
|
+
function Zt() {
|
|
1006
|
+
return ct || (ct = 1, (function(b) {
|
|
1007
|
+
function h(l, f) {
|
|
1008
|
+
if (!(l instanceof f))
|
|
1009
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1010
|
+
}
|
|
1011
|
+
var y = pe().Buffer, d = Ct;
|
|
1012
|
+
function p(l, f, t) {
|
|
1013
|
+
l.copy(f, t);
|
|
1014
|
+
}
|
|
1015
|
+
b.exports = (function() {
|
|
1016
|
+
function l() {
|
|
1017
|
+
h(this, l), this.head = null, this.tail = null, this.length = 0;
|
|
1018
|
+
}
|
|
1019
|
+
return l.prototype.push = function(t) {
|
|
1020
|
+
var o = { data: t, next: null };
|
|
1021
|
+
this.length > 0 ? this.tail.next = o : this.head = o, this.tail = o, ++this.length;
|
|
1022
|
+
}, l.prototype.unshift = function(t) {
|
|
1023
|
+
var o = { data: t, next: this.head };
|
|
1024
|
+
this.length === 0 && (this.tail = o), this.head = o, ++this.length;
|
|
1025
|
+
}, l.prototype.shift = function() {
|
|
1026
|
+
if (this.length !== 0) {
|
|
1027
|
+
var t = this.head.data;
|
|
1028
|
+
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, t;
|
|
1029
|
+
}
|
|
1030
|
+
}, l.prototype.clear = function() {
|
|
1031
|
+
this.head = this.tail = null, this.length = 0;
|
|
1032
|
+
}, l.prototype.join = function(t) {
|
|
1033
|
+
if (this.length === 0) return "";
|
|
1034
|
+
for (var o = this.head, c = "" + o.data; o = o.next; )
|
|
1035
|
+
c += t + o.data;
|
|
1036
|
+
return c;
|
|
1037
|
+
}, l.prototype.concat = function(t) {
|
|
1038
|
+
if (this.length === 0) return y.alloc(0);
|
|
1039
|
+
for (var o = y.allocUnsafe(t >>> 0), c = this.head, v = 0; c; )
|
|
1040
|
+
p(c.data, o, v), v += c.data.length, c = c.next;
|
|
1041
|
+
return o;
|
|
1042
|
+
}, l;
|
|
1043
|
+
})(), d && d.inspect && d.inspect.custom && (b.exports.prototype[d.inspect.custom] = function() {
|
|
1044
|
+
var l = d.inspect({ length: this.length });
|
|
1045
|
+
return this.constructor.name + " " + l;
|
|
1046
|
+
});
|
|
1047
|
+
})(Be)), Be.exports;
|
|
1048
|
+
}
|
|
1049
|
+
var De, pt;
|
|
1050
|
+
function Bt() {
|
|
1051
|
+
if (pt) return De;
|
|
1052
|
+
pt = 1;
|
|
1053
|
+
var b = ce();
|
|
1054
|
+
function h(p, l) {
|
|
1055
|
+
var f = this, t = this._readableState && this._readableState.destroyed, o = this._writableState && this._writableState.destroyed;
|
|
1056
|
+
return t || o ? (l ? l(p) : p && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, b.nextTick(d, this, p)) : b.nextTick(d, this, p)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(p || null, function(c) {
|
|
1057
|
+
!l && c ? f._writableState ? f._writableState.errorEmitted || (f._writableState.errorEmitted = !0, b.nextTick(d, f, c)) : b.nextTick(d, f, c) : l && l(c);
|
|
1058
|
+
}), this);
|
|
1059
|
+
}
|
|
1060
|
+
function y() {
|
|
1061
|
+
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
|
|
1062
|
+
}
|
|
1063
|
+
function d(p, l) {
|
|
1064
|
+
p.emit("error", l);
|
|
1065
|
+
}
|
|
1066
|
+
return De = {
|
|
1067
|
+
destroy: h,
|
|
1068
|
+
undestroy: y
|
|
1069
|
+
}, De;
|
|
1070
|
+
}
|
|
1071
|
+
var Ae, gt;
|
|
1072
|
+
function Gt() {
|
|
1073
|
+
if (gt) return Ae;
|
|
1074
|
+
gt = 1, Ae = b;
|
|
1075
|
+
function b(y, d) {
|
|
1076
|
+
if (h("noDeprecation"))
|
|
1077
|
+
return y;
|
|
1078
|
+
var p = !1;
|
|
1079
|
+
function l() {
|
|
1080
|
+
if (!p) {
|
|
1081
|
+
if (h("throwDeprecation"))
|
|
1082
|
+
throw new Error(d);
|
|
1083
|
+
h("traceDeprecation") ? console.trace(d) : console.warn(d), p = !0;
|
|
1084
|
+
}
|
|
1085
|
+
return y.apply(this, arguments);
|
|
1086
|
+
}
|
|
1087
|
+
return l;
|
|
1088
|
+
}
|
|
1089
|
+
function h(y) {
|
|
1090
|
+
try {
|
|
1091
|
+
if (!te.localStorage) return !1;
|
|
1092
|
+
} catch {
|
|
1093
|
+
return !1;
|
|
1094
|
+
}
|
|
1095
|
+
var d = te.localStorage[y];
|
|
1096
|
+
return d == null ? !1 : String(d).toLowerCase() === "true";
|
|
1097
|
+
}
|
|
1098
|
+
return Ae;
|
|
1099
|
+
}
|
|
1100
|
+
var Oe, vt;
|
|
1101
|
+
function Dt() {
|
|
1102
|
+
if (vt) return Oe;
|
|
1103
|
+
vt = 1;
|
|
1104
|
+
var b = ce();
|
|
1105
|
+
Oe = w;
|
|
1106
|
+
function h(a) {
|
|
1107
|
+
var u = this;
|
|
1108
|
+
this.next = null, this.entry = null, this.finish = function() {
|
|
1109
|
+
H(u, a);
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
var y = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : b.nextTick, d;
|
|
1113
|
+
w.WritableState = M;
|
|
1114
|
+
var p = Object.create(J());
|
|
1115
|
+
p.inherits = K();
|
|
1116
|
+
var l = {
|
|
1117
|
+
deprecate: Gt()
|
|
1118
|
+
}, f = jt(), t = pe().Buffer, o = (typeof te < "u" ? te : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
1119
|
+
};
|
|
1120
|
+
function c(a) {
|
|
1121
|
+
return t.from(a);
|
|
1122
|
+
}
|
|
1123
|
+
function v(a) {
|
|
1124
|
+
return t.isBuffer(a) || a instanceof o;
|
|
1125
|
+
}
|
|
1126
|
+
var s = Bt();
|
|
1127
|
+
p.inherits(w, f);
|
|
1128
|
+
function k() {
|
|
1129
|
+
}
|
|
1130
|
+
function M(a, u) {
|
|
1131
|
+
d = d || re(), a = a || {};
|
|
1132
|
+
var S = u instanceof d;
|
|
1133
|
+
this.objectMode = !!a.objectMode, S && (this.objectMode = this.objectMode || !!a.writableObjectMode);
|
|
1134
|
+
var B = a.highWaterMark, W = a.writableHighWaterMark, L = this.objectMode ? 16 : 16 * 1024;
|
|
1135
|
+
B || B === 0 ? this.highWaterMark = B : S && (W || W === 0) ? this.highWaterMark = W : this.highWaterMark = L, this.highWaterMark = Math.floor(this.highWaterMark), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
1136
|
+
var V = a.decodeStrings === !1;
|
|
1137
|
+
this.decodeStrings = !V, this.defaultEncoding = a.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(X) {
|
|
1138
|
+
D(u, X);
|
|
1139
|
+
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.bufferedRequestCount = 0, this.corkedRequestsFree = new h(this);
|
|
1140
|
+
}
|
|
1141
|
+
M.prototype.getBuffer = function() {
|
|
1142
|
+
for (var u = this.bufferedRequest, S = []; u; )
|
|
1143
|
+
S.push(u), u = u.next;
|
|
1144
|
+
return S;
|
|
1145
|
+
}, (function() {
|
|
1146
|
+
try {
|
|
1147
|
+
Object.defineProperty(M.prototype, "buffer", {
|
|
1148
|
+
get: l.deprecate(function() {
|
|
1149
|
+
return this.getBuffer();
|
|
1150
|
+
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
1151
|
+
});
|
|
1152
|
+
} catch {
|
|
1153
|
+
}
|
|
1154
|
+
})();
|
|
1155
|
+
var q;
|
|
1156
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (q = Function.prototype[Symbol.hasInstance], Object.defineProperty(w, Symbol.hasInstance, {
|
|
1157
|
+
value: function(a) {
|
|
1158
|
+
return q.call(this, a) ? !0 : this !== w ? !1 : a && a._writableState instanceof M;
|
|
1159
|
+
}
|
|
1160
|
+
})) : q = function(a) {
|
|
1161
|
+
return a instanceof this;
|
|
1162
|
+
};
|
|
1163
|
+
function w(a) {
|
|
1164
|
+
if (d = d || re(), !q.call(w, this) && !(this instanceof d))
|
|
1165
|
+
return new w(a);
|
|
1166
|
+
this._writableState = new M(a, this), this.writable = !0, a && (typeof a.write == "function" && (this._write = a.write), typeof a.writev == "function" && (this._writev = a.writev), typeof a.destroy == "function" && (this._destroy = a.destroy), typeof a.final == "function" && (this._final = a.final)), f.call(this);
|
|
1167
|
+
}
|
|
1168
|
+
w.prototype.pipe = function() {
|
|
1169
|
+
this.emit("error", new Error("Cannot pipe, not readable"));
|
|
1170
|
+
};
|
|
1171
|
+
function F(a, u) {
|
|
1172
|
+
var S = new Error("write after end");
|
|
1173
|
+
a.emit("error", S), b.nextTick(u, S);
|
|
1174
|
+
}
|
|
1175
|
+
function g(a, u, S, B) {
|
|
1176
|
+
var W = !0, L = !1;
|
|
1177
|
+
return S === null ? L = new TypeError("May not write null values to stream") : typeof S != "string" && S !== void 0 && !u.objectMode && (L = new TypeError("Invalid non-string/buffer chunk")), L && (a.emit("error", L), b.nextTick(B, L), W = !1), W;
|
|
1178
|
+
}
|
|
1179
|
+
w.prototype.write = function(a, u, S) {
|
|
1180
|
+
var B = this._writableState, W = !1, L = !B.objectMode && v(a);
|
|
1181
|
+
return L && !t.isBuffer(a) && (a = c(a)), typeof u == "function" && (S = u, u = null), L ? u = "buffer" : u || (u = B.defaultEncoding), typeof S != "function" && (S = k), B.ended ? F(this, S) : (L || g(this, B, a, S)) && (B.pendingcb++, W = O(this, B, L, a, u, S)), W;
|
|
1182
|
+
}, w.prototype.cork = function() {
|
|
1183
|
+
var a = this._writableState;
|
|
1184
|
+
a.corked++;
|
|
1185
|
+
}, w.prototype.uncork = function() {
|
|
1186
|
+
var a = this._writableState;
|
|
1187
|
+
a.corked && (a.corked--, !a.writing && !a.corked && !a.bufferProcessing && a.bufferedRequest && Z(this, a));
|
|
1188
|
+
}, w.prototype.setDefaultEncoding = function(u) {
|
|
1189
|
+
if (typeof u == "string" && (u = u.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((u + "").toLowerCase()) > -1)) throw new TypeError("Unknown encoding: " + u);
|
|
1190
|
+
return this._writableState.defaultEncoding = u, this;
|
|
1191
|
+
};
|
|
1192
|
+
function x(a, u, S) {
|
|
1193
|
+
return !a.objectMode && a.decodeStrings !== !1 && typeof u == "string" && (u = t.from(u, S)), u;
|
|
1194
|
+
}
|
|
1195
|
+
Object.defineProperty(w.prototype, "writableHighWaterMark", {
|
|
1196
|
+
// making it explicit this property is not enumerable
|
|
1197
|
+
// because otherwise some prototype manipulation in
|
|
1198
|
+
// userland will fail
|
|
1199
|
+
enumerable: !1,
|
|
1200
|
+
get: function() {
|
|
1201
|
+
return this._writableState.highWaterMark;
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
function O(a, u, S, B, W, L) {
|
|
1205
|
+
if (!S) {
|
|
1206
|
+
var V = x(u, B, W);
|
|
1207
|
+
B !== V && (S = !0, W = "buffer", B = V);
|
|
1208
|
+
}
|
|
1209
|
+
var X = u.objectMode ? 1 : B.length;
|
|
1210
|
+
u.length += X;
|
|
1211
|
+
var G = u.length < u.highWaterMark;
|
|
1212
|
+
if (G || (u.needDrain = !0), u.writing || u.corked) {
|
|
1213
|
+
var Q = u.lastBufferedRequest;
|
|
1214
|
+
u.lastBufferedRequest = {
|
|
1215
|
+
chunk: B,
|
|
1216
|
+
encoding: W,
|
|
1217
|
+
isBuf: S,
|
|
1218
|
+
callback: L,
|
|
1219
|
+
next: null
|
|
1220
|
+
}, Q ? Q.next = u.lastBufferedRequest : u.bufferedRequest = u.lastBufferedRequest, u.bufferedRequestCount += 1;
|
|
1221
|
+
} else
|
|
1222
|
+
_(a, u, !1, X, B, W, L);
|
|
1223
|
+
return G;
|
|
1224
|
+
}
|
|
1225
|
+
function _(a, u, S, B, W, L, V) {
|
|
1226
|
+
u.writelen = B, u.writecb = V, u.writing = !0, u.sync = !0, S ? a._writev(W, u.onwrite) : a._write(W, L, u.onwrite), u.sync = !1;
|
|
1227
|
+
}
|
|
1228
|
+
function m(a, u, S, B, W) {
|
|
1229
|
+
--u.pendingcb, S ? (b.nextTick(W, B), b.nextTick(j, a, u), a._writableState.errorEmitted = !0, a.emit("error", B)) : (W(B), a._writableState.errorEmitted = !0, a.emit("error", B), j(a, u));
|
|
1230
|
+
}
|
|
1231
|
+
function T(a) {
|
|
1232
|
+
a.writing = !1, a.writecb = null, a.length -= a.writelen, a.writelen = 0;
|
|
1233
|
+
}
|
|
1234
|
+
function D(a, u) {
|
|
1235
|
+
var S = a._writableState, B = S.sync, W = S.writecb;
|
|
1236
|
+
if (T(S), u) m(a, S, B, u, W);
|
|
1237
|
+
else {
|
|
1238
|
+
var L = i(S);
|
|
1239
|
+
!L && !S.corked && !S.bufferProcessing && S.bufferedRequest && Z(a, S), B ? y(U, a, S, L, W) : U(a, S, L, W);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
function U(a, u, S, B) {
|
|
1243
|
+
S || $(a, u), u.pendingcb--, B(), j(a, u);
|
|
1244
|
+
}
|
|
1245
|
+
function $(a, u) {
|
|
1246
|
+
u.length === 0 && u.needDrain && (u.needDrain = !1, a.emit("drain"));
|
|
1247
|
+
}
|
|
1248
|
+
function Z(a, u) {
|
|
1249
|
+
u.bufferProcessing = !0;
|
|
1250
|
+
var S = u.bufferedRequest;
|
|
1251
|
+
if (a._writev && S && S.next) {
|
|
1252
|
+
var B = u.bufferedRequestCount, W = new Array(B), L = u.corkedRequestsFree;
|
|
1253
|
+
L.entry = S;
|
|
1254
|
+
for (var V = 0, X = !0; S; )
|
|
1255
|
+
W[V] = S, S.isBuf || (X = !1), S = S.next, V += 1;
|
|
1256
|
+
W.allBuffers = X, _(a, u, !0, u.length, W, "", L.finish), u.pendingcb++, u.lastBufferedRequest = null, L.next ? (u.corkedRequestsFree = L.next, L.next = null) : u.corkedRequestsFree = new h(u), u.bufferedRequestCount = 0;
|
|
1257
|
+
} else {
|
|
1258
|
+
for (; S; ) {
|
|
1259
|
+
var G = S.chunk, Q = S.encoding, e = S.callback, r = u.objectMode ? 1 : G.length;
|
|
1260
|
+
if (_(a, u, !1, r, G, Q, e), S = S.next, u.bufferedRequestCount--, u.writing)
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1263
|
+
S === null && (u.lastBufferedRequest = null);
|
|
1264
|
+
}
|
|
1265
|
+
u.bufferedRequest = S, u.bufferProcessing = !1;
|
|
1266
|
+
}
|
|
1267
|
+
w.prototype._write = function(a, u, S) {
|
|
1268
|
+
S(new Error("_write() is not implemented"));
|
|
1269
|
+
}, w.prototype._writev = null, w.prototype.end = function(a, u, S) {
|
|
1270
|
+
var B = this._writableState;
|
|
1271
|
+
typeof a == "function" ? (S = a, a = null, u = null) : typeof u == "function" && (S = u, u = null), a != null && this.write(a, u), B.corked && (B.corked = 1, this.uncork()), B.ending || N(this, B, S);
|
|
1272
|
+
};
|
|
1273
|
+
function i(a) {
|
|
1274
|
+
return a.ending && a.length === 0 && a.bufferedRequest === null && !a.finished && !a.writing;
|
|
1275
|
+
}
|
|
1276
|
+
function n(a, u) {
|
|
1277
|
+
a._final(function(S) {
|
|
1278
|
+
u.pendingcb--, S && a.emit("error", S), u.prefinished = !0, a.emit("prefinish"), j(a, u);
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
function R(a, u) {
|
|
1282
|
+
!u.prefinished && !u.finalCalled && (typeof a._final == "function" ? (u.pendingcb++, u.finalCalled = !0, b.nextTick(n, a, u)) : (u.prefinished = !0, a.emit("prefinish")));
|
|
1283
|
+
}
|
|
1284
|
+
function j(a, u) {
|
|
1285
|
+
var S = i(u);
|
|
1286
|
+
return S && (R(a, u), u.pendingcb === 0 && (u.finished = !0, a.emit("finish"))), S;
|
|
1287
|
+
}
|
|
1288
|
+
function N(a, u, S) {
|
|
1289
|
+
u.ending = !0, j(a, u), S && (u.finished ? b.nextTick(S) : a.once("finish", S)), u.ended = !0, a.writable = !1;
|
|
1290
|
+
}
|
|
1291
|
+
function H(a, u, S) {
|
|
1292
|
+
var B = a.entry;
|
|
1293
|
+
for (a.entry = null; B; ) {
|
|
1294
|
+
var W = B.callback;
|
|
1295
|
+
u.pendingcb--, W(S), B = B.next;
|
|
1296
|
+
}
|
|
1297
|
+
u.corkedRequestsFree.next = a;
|
|
1298
|
+
}
|
|
1299
|
+
return Object.defineProperty(w.prototype, "destroyed", {
|
|
1300
|
+
get: function() {
|
|
1301
|
+
return this._writableState === void 0 ? !1 : this._writableState.destroyed;
|
|
1302
|
+
},
|
|
1303
|
+
set: function(a) {
|
|
1304
|
+
this._writableState && (this._writableState.destroyed = a);
|
|
1305
|
+
}
|
|
1306
|
+
}), w.prototype.destroy = s.destroy, w.prototype._undestroy = s.undestroy, w.prototype._destroy = function(a, u) {
|
|
1307
|
+
this.end(), u(a);
|
|
1308
|
+
}, Oe;
|
|
1309
|
+
}
|
|
1310
|
+
var We, wt;
|
|
1311
|
+
function re() {
|
|
1312
|
+
if (wt) return We;
|
|
1313
|
+
wt = 1;
|
|
1314
|
+
var b = ce(), h = Object.keys || function(s) {
|
|
1315
|
+
var k = [];
|
|
1316
|
+
for (var M in s)
|
|
1317
|
+
k.push(M);
|
|
1318
|
+
return k;
|
|
1319
|
+
};
|
|
1320
|
+
We = o;
|
|
1321
|
+
var y = Object.create(J());
|
|
1322
|
+
y.inherits = K();
|
|
1323
|
+
var d = At(), p = Dt();
|
|
1324
|
+
y.inherits(o, d);
|
|
1325
|
+
for (var l = h(p.prototype), f = 0; f < l.length; f++) {
|
|
1326
|
+
var t = l[f];
|
|
1327
|
+
o.prototype[t] || (o.prototype[t] = p.prototype[t]);
|
|
1328
|
+
}
|
|
1329
|
+
function o(s) {
|
|
1330
|
+
if (!(this instanceof o)) return new o(s);
|
|
1331
|
+
d.call(this, s), p.call(this, s), s && s.readable === !1 && (this.readable = !1), s && s.writable === !1 && (this.writable = !1), this.allowHalfOpen = !0, s && s.allowHalfOpen === !1 && (this.allowHalfOpen = !1), this.once("end", c);
|
|
1332
|
+
}
|
|
1333
|
+
Object.defineProperty(o.prototype, "writableHighWaterMark", {
|
|
1334
|
+
// making it explicit this property is not enumerable
|
|
1335
|
+
// because otherwise some prototype manipulation in
|
|
1336
|
+
// userland will fail
|
|
1337
|
+
enumerable: !1,
|
|
1338
|
+
get: function() {
|
|
1339
|
+
return this._writableState.highWaterMark;
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
function c() {
|
|
1343
|
+
this.allowHalfOpen || this._writableState.ended || b.nextTick(v, this);
|
|
1344
|
+
}
|
|
1345
|
+
function v(s) {
|
|
1346
|
+
s.end();
|
|
1347
|
+
}
|
|
1348
|
+
return Object.defineProperty(o.prototype, "destroyed", {
|
|
1349
|
+
get: function() {
|
|
1350
|
+
return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
|
|
1351
|
+
},
|
|
1352
|
+
set: function(s) {
|
|
1353
|
+
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = s, this._writableState.destroyed = s);
|
|
1354
|
+
}
|
|
1355
|
+
}), o.prototype._destroy = function(s, k) {
|
|
1356
|
+
this.push(null), this.end(), b.nextTick(k, s);
|
|
1357
|
+
}, We;
|
|
1358
|
+
}
|
|
1359
|
+
var Le = {}, bt;
|
|
1360
|
+
function yt() {
|
|
1361
|
+
if (bt) return Le;
|
|
1362
|
+
bt = 1;
|
|
1363
|
+
var b = pe().Buffer, h = b.isEncoding || function(g) {
|
|
1364
|
+
switch (g = "" + g, g && g.toLowerCase()) {
|
|
1365
|
+
case "hex":
|
|
1366
|
+
case "utf8":
|
|
1367
|
+
case "utf-8":
|
|
1368
|
+
case "ascii":
|
|
1369
|
+
case "binary":
|
|
1370
|
+
case "base64":
|
|
1371
|
+
case "ucs2":
|
|
1372
|
+
case "ucs-2":
|
|
1373
|
+
case "utf16le":
|
|
1374
|
+
case "utf-16le":
|
|
1375
|
+
case "raw":
|
|
1376
|
+
return !0;
|
|
1377
|
+
default:
|
|
1378
|
+
return !1;
|
|
1379
|
+
}
|
|
1380
|
+
};
|
|
1381
|
+
function y(g) {
|
|
1382
|
+
if (!g) return "utf8";
|
|
1383
|
+
for (var x; ; )
|
|
1384
|
+
switch (g) {
|
|
1385
|
+
case "utf8":
|
|
1386
|
+
case "utf-8":
|
|
1387
|
+
return "utf8";
|
|
1388
|
+
case "ucs2":
|
|
1389
|
+
case "ucs-2":
|
|
1390
|
+
case "utf16le":
|
|
1391
|
+
case "utf-16le":
|
|
1392
|
+
return "utf16le";
|
|
1393
|
+
case "latin1":
|
|
1394
|
+
case "binary":
|
|
1395
|
+
return "latin1";
|
|
1396
|
+
case "base64":
|
|
1397
|
+
case "ascii":
|
|
1398
|
+
case "hex":
|
|
1399
|
+
return g;
|
|
1400
|
+
default:
|
|
1401
|
+
if (x) return;
|
|
1402
|
+
g = ("" + g).toLowerCase(), x = !0;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
function d(g) {
|
|
1406
|
+
var x = y(g);
|
|
1407
|
+
if (typeof x != "string" && (b.isEncoding === h || !h(g))) throw new Error("Unknown encoding: " + g);
|
|
1408
|
+
return x || g;
|
|
1409
|
+
}
|
|
1410
|
+
Le.StringDecoder = p;
|
|
1411
|
+
function p(g) {
|
|
1412
|
+
this.encoding = d(g);
|
|
1413
|
+
var x;
|
|
1414
|
+
switch (this.encoding) {
|
|
1415
|
+
case "utf16le":
|
|
1416
|
+
this.text = s, this.end = k, x = 4;
|
|
1417
|
+
break;
|
|
1418
|
+
case "utf8":
|
|
1419
|
+
this.fillLast = o, x = 4;
|
|
1420
|
+
break;
|
|
1421
|
+
case "base64":
|
|
1422
|
+
this.text = M, this.end = q, x = 3;
|
|
1423
|
+
break;
|
|
1424
|
+
default:
|
|
1425
|
+
this.write = w, this.end = F;
|
|
1426
|
+
return;
|
|
1427
|
+
}
|
|
1428
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = b.allocUnsafe(x);
|
|
1429
|
+
}
|
|
1430
|
+
p.prototype.write = function(g) {
|
|
1431
|
+
if (g.length === 0) return "";
|
|
1432
|
+
var x, O;
|
|
1433
|
+
if (this.lastNeed) {
|
|
1434
|
+
if (x = this.fillLast(g), x === void 0) return "";
|
|
1435
|
+
O = this.lastNeed, this.lastNeed = 0;
|
|
1436
|
+
} else
|
|
1437
|
+
O = 0;
|
|
1438
|
+
return O < g.length ? x ? x + this.text(g, O) : this.text(g, O) : x || "";
|
|
1439
|
+
}, p.prototype.end = v, p.prototype.text = c, p.prototype.fillLast = function(g) {
|
|
1440
|
+
if (this.lastNeed <= g.length)
|
|
1441
|
+
return g.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1442
|
+
g.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, g.length), this.lastNeed -= g.length;
|
|
1443
|
+
};
|
|
1444
|
+
function l(g) {
|
|
1445
|
+
return g <= 127 ? 0 : g >> 5 === 6 ? 2 : g >> 4 === 14 ? 3 : g >> 3 === 30 ? 4 : g >> 6 === 2 ? -1 : -2;
|
|
1446
|
+
}
|
|
1447
|
+
function f(g, x, O) {
|
|
1448
|
+
var _ = x.length - 1;
|
|
1449
|
+
if (_ < O) return 0;
|
|
1450
|
+
var m = l(x[_]);
|
|
1451
|
+
return m >= 0 ? (m > 0 && (g.lastNeed = m - 1), m) : --_ < O || m === -2 ? 0 : (m = l(x[_]), m >= 0 ? (m > 0 && (g.lastNeed = m - 2), m) : --_ < O || m === -2 ? 0 : (m = l(x[_]), m >= 0 ? (m > 0 && (m === 2 ? m = 0 : g.lastNeed = m - 3), m) : 0));
|
|
1452
|
+
}
|
|
1453
|
+
function t(g, x, O) {
|
|
1454
|
+
if ((x[0] & 192) !== 128)
|
|
1455
|
+
return g.lastNeed = 0, "�";
|
|
1456
|
+
if (g.lastNeed > 1 && x.length > 1) {
|
|
1457
|
+
if ((x[1] & 192) !== 128)
|
|
1458
|
+
return g.lastNeed = 1, "�";
|
|
1459
|
+
if (g.lastNeed > 2 && x.length > 2 && (x[2] & 192) !== 128)
|
|
1460
|
+
return g.lastNeed = 2, "�";
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
function o(g) {
|
|
1464
|
+
var x = this.lastTotal - this.lastNeed, O = t(this, g);
|
|
1465
|
+
if (O !== void 0) return O;
|
|
1466
|
+
if (this.lastNeed <= g.length)
|
|
1467
|
+
return g.copy(this.lastChar, x, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
1468
|
+
g.copy(this.lastChar, x, 0, g.length), this.lastNeed -= g.length;
|
|
1469
|
+
}
|
|
1470
|
+
function c(g, x) {
|
|
1471
|
+
var O = f(this, g, x);
|
|
1472
|
+
if (!this.lastNeed) return g.toString("utf8", x);
|
|
1473
|
+
this.lastTotal = O;
|
|
1474
|
+
var _ = g.length - (O - this.lastNeed);
|
|
1475
|
+
return g.copy(this.lastChar, 0, _), g.toString("utf8", x, _);
|
|
1476
|
+
}
|
|
1477
|
+
function v(g) {
|
|
1478
|
+
var x = g && g.length ? this.write(g) : "";
|
|
1479
|
+
return this.lastNeed ? x + "�" : x;
|
|
1480
|
+
}
|
|
1481
|
+
function s(g, x) {
|
|
1482
|
+
if ((g.length - x) % 2 === 0) {
|
|
1483
|
+
var O = g.toString("utf16le", x);
|
|
1484
|
+
if (O) {
|
|
1485
|
+
var _ = O.charCodeAt(O.length - 1);
|
|
1486
|
+
if (_ >= 55296 && _ <= 56319)
|
|
1487
|
+
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = g[g.length - 2], this.lastChar[1] = g[g.length - 1], O.slice(0, -1);
|
|
1488
|
+
}
|
|
1489
|
+
return O;
|
|
1490
|
+
}
|
|
1491
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = g[g.length - 1], g.toString("utf16le", x, g.length - 1);
|
|
1492
|
+
}
|
|
1493
|
+
function k(g) {
|
|
1494
|
+
var x = g && g.length ? this.write(g) : "";
|
|
1495
|
+
if (this.lastNeed) {
|
|
1496
|
+
var O = this.lastTotal - this.lastNeed;
|
|
1497
|
+
return x + this.lastChar.toString("utf16le", 0, O);
|
|
1498
|
+
}
|
|
1499
|
+
return x;
|
|
1500
|
+
}
|
|
1501
|
+
function M(g, x) {
|
|
1502
|
+
var O = (g.length - x) % 3;
|
|
1503
|
+
return O === 0 ? g.toString("base64", x) : (this.lastNeed = 3 - O, this.lastTotal = 3, O === 1 ? this.lastChar[0] = g[g.length - 1] : (this.lastChar[0] = g[g.length - 2], this.lastChar[1] = g[g.length - 1]), g.toString("base64", x, g.length - O));
|
|
1504
|
+
}
|
|
1505
|
+
function q(g) {
|
|
1506
|
+
var x = g && g.length ? this.write(g) : "";
|
|
1507
|
+
return this.lastNeed ? x + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : x;
|
|
1508
|
+
}
|
|
1509
|
+
function w(g) {
|
|
1510
|
+
return g.toString(this.encoding);
|
|
1511
|
+
}
|
|
1512
|
+
function F(g) {
|
|
1513
|
+
return g && g.length ? this.write(g) : "";
|
|
1514
|
+
}
|
|
1515
|
+
return Le;
|
|
1516
|
+
}
|
|
1517
|
+
var Ne, mt;
|
|
1518
|
+
function At() {
|
|
1519
|
+
if (mt) return Ne;
|
|
1520
|
+
mt = 1;
|
|
1521
|
+
var b = ce();
|
|
1522
|
+
Ne = x;
|
|
1523
|
+
var h = Xt(), y;
|
|
1524
|
+
x.ReadableState = g, ze.EventEmitter;
|
|
1525
|
+
var d = function(e, r) {
|
|
1526
|
+
return e.listeners(r).length;
|
|
1527
|
+
}, p = jt(), l = pe().Buffer, f = (typeof te < "u" ? te : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
1528
|
+
};
|
|
1529
|
+
function t(e) {
|
|
1530
|
+
return l.from(e);
|
|
1531
|
+
}
|
|
1532
|
+
function o(e) {
|
|
1533
|
+
return l.isBuffer(e) || e instanceof f;
|
|
1534
|
+
}
|
|
1535
|
+
var c = Object.create(J());
|
|
1536
|
+
c.inherits = K();
|
|
1537
|
+
var v = Ct, s = void 0;
|
|
1538
|
+
v && v.debuglog ? s = v.debuglog("stream") : s = function() {
|
|
1539
|
+
};
|
|
1540
|
+
var k = Zt(), M = Bt(), q;
|
|
1541
|
+
c.inherits(x, p);
|
|
1542
|
+
var w = ["error", "close", "destroy", "pause", "resume"];
|
|
1543
|
+
function F(e, r, E) {
|
|
1544
|
+
if (typeof e.prependListener == "function") return e.prependListener(r, E);
|
|
1545
|
+
!e._events || !e._events[r] ? e.on(r, E) : h(e._events[r]) ? e._events[r].unshift(E) : e._events[r] = [E, e._events[r]];
|
|
1546
|
+
}
|
|
1547
|
+
function g(e, r) {
|
|
1548
|
+
y = y || re(), e = e || {};
|
|
1549
|
+
var E = r instanceof y;
|
|
1550
|
+
this.objectMode = !!e.objectMode, E && (this.objectMode = this.objectMode || !!e.readableObjectMode);
|
|
1551
|
+
var C = e.highWaterMark, I = e.readableHighWaterMark, A = this.objectMode ? 16 : 16 * 1024;
|
|
1552
|
+
C || C === 0 ? this.highWaterMark = C : E && (I || I === 0) ? this.highWaterMark = I : this.highWaterMark = A, this.highWaterMark = Math.floor(this.highWaterMark), this.buffer = new k(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.destroyed = !1, this.defaultEncoding = e.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, e.encoding && (q || (q = yt().StringDecoder), this.decoder = new q(e.encoding), this.encoding = e.encoding);
|
|
1553
|
+
}
|
|
1554
|
+
function x(e) {
|
|
1555
|
+
if (y = y || re(), !(this instanceof x)) return new x(e);
|
|
1556
|
+
this._readableState = new g(e, this), this.readable = !0, e && (typeof e.read == "function" && (this._read = e.read), typeof e.destroy == "function" && (this._destroy = e.destroy)), p.call(this);
|
|
1557
|
+
}
|
|
1558
|
+
Object.defineProperty(x.prototype, "destroyed", {
|
|
1559
|
+
get: function() {
|
|
1560
|
+
return this._readableState === void 0 ? !1 : this._readableState.destroyed;
|
|
1561
|
+
},
|
|
1562
|
+
set: function(e) {
|
|
1563
|
+
this._readableState && (this._readableState.destroyed = e);
|
|
1564
|
+
}
|
|
1565
|
+
}), x.prototype.destroy = M.destroy, x.prototype._undestroy = M.undestroy, x.prototype._destroy = function(e, r) {
|
|
1566
|
+
this.push(null), r(e);
|
|
1567
|
+
}, x.prototype.push = function(e, r) {
|
|
1568
|
+
var E = this._readableState, C;
|
|
1569
|
+
return E.objectMode ? C = !0 : typeof e == "string" && (r = r || E.defaultEncoding, r !== E.encoding && (e = l.from(e, r), r = ""), C = !0), O(this, e, r, !1, C);
|
|
1570
|
+
}, x.prototype.unshift = function(e) {
|
|
1571
|
+
return O(this, e, null, !0, !1);
|
|
1572
|
+
};
|
|
1573
|
+
function O(e, r, E, C, I) {
|
|
1574
|
+
var A = e._readableState;
|
|
1575
|
+
if (r === null)
|
|
1576
|
+
A.reading = !1, Z(e, A);
|
|
1577
|
+
else {
|
|
1578
|
+
var P;
|
|
1579
|
+
I || (P = m(A, r)), P ? e.emit("error", P) : A.objectMode || r && r.length > 0 ? (typeof r != "string" && !A.objectMode && Object.getPrototypeOf(r) !== l.prototype && (r = t(r)), C ? A.endEmitted ? e.emit("error", new Error("stream.unshift() after end event")) : _(e, A, r, !0) : A.ended ? e.emit("error", new Error("stream.push() after EOF")) : (A.reading = !1, A.decoder && !E ? (r = A.decoder.write(r), A.objectMode || r.length !== 0 ? _(e, A, r, !1) : R(e, A)) : _(e, A, r, !1))) : C || (A.reading = !1);
|
|
1580
|
+
}
|
|
1581
|
+
return T(A);
|
|
1582
|
+
}
|
|
1583
|
+
function _(e, r, E, C) {
|
|
1584
|
+
r.flowing && r.length === 0 && !r.sync ? (e.emit("data", E), e.read(0)) : (r.length += r.objectMode ? 1 : E.length, C ? r.buffer.unshift(E) : r.buffer.push(E), r.needReadable && i(e)), R(e, r);
|
|
1585
|
+
}
|
|
1586
|
+
function m(e, r) {
|
|
1587
|
+
var E;
|
|
1588
|
+
return !o(r) && typeof r != "string" && r !== void 0 && !e.objectMode && (E = new TypeError("Invalid non-string/buffer chunk")), E;
|
|
1589
|
+
}
|
|
1590
|
+
function T(e) {
|
|
1591
|
+
return !e.ended && (e.needReadable || e.length < e.highWaterMark || e.length === 0);
|
|
1592
|
+
}
|
|
1593
|
+
x.prototype.isPaused = function() {
|
|
1594
|
+
return this._readableState.flowing === !1;
|
|
1595
|
+
}, x.prototype.setEncoding = function(e) {
|
|
1596
|
+
return q || (q = yt().StringDecoder), this._readableState.decoder = new q(e), this._readableState.encoding = e, this;
|
|
1597
|
+
};
|
|
1598
|
+
var D = 8388608;
|
|
1599
|
+
function U(e) {
|
|
1600
|
+
return e >= D ? e = D : (e--, e |= e >>> 1, e |= e >>> 2, e |= e >>> 4, e |= e >>> 8, e |= e >>> 16, e++), e;
|
|
1601
|
+
}
|
|
1602
|
+
function $(e, r) {
|
|
1603
|
+
return e <= 0 || r.length === 0 && r.ended ? 0 : r.objectMode ? 1 : e !== e ? r.flowing && r.length ? r.buffer.head.data.length : r.length : (e > r.highWaterMark && (r.highWaterMark = U(e)), e <= r.length ? e : r.ended ? r.length : (r.needReadable = !0, 0));
|
|
1604
|
+
}
|
|
1605
|
+
x.prototype.read = function(e) {
|
|
1606
|
+
s("read", e), e = parseInt(e, 10);
|
|
1607
|
+
var r = this._readableState, E = e;
|
|
1608
|
+
if (e !== 0 && (r.emittedReadable = !1), e === 0 && r.needReadable && (r.length >= r.highWaterMark || r.ended))
|
|
1609
|
+
return s("read: emitReadable", r.length, r.ended), r.length === 0 && r.ended ? X(this) : i(this), null;
|
|
1610
|
+
if (e = $(e, r), e === 0 && r.ended)
|
|
1611
|
+
return r.length === 0 && X(this), null;
|
|
1612
|
+
var C = r.needReadable;
|
|
1613
|
+
s("need readable", C), (r.length === 0 || r.length - e < r.highWaterMark) && (C = !0, s("length less than watermark", C)), r.ended || r.reading ? (C = !1, s("reading or ended", C)) : C && (s("do read"), r.reading = !0, r.sync = !0, r.length === 0 && (r.needReadable = !0), this._read(r.highWaterMark), r.sync = !1, r.reading || (e = $(E, r)));
|
|
1614
|
+
var I;
|
|
1615
|
+
return e > 0 ? I = B(e, r) : I = null, I === null ? (r.needReadable = !0, e = 0) : r.length -= e, r.length === 0 && (r.ended || (r.needReadable = !0), E !== e && r.ended && X(this)), I !== null && this.emit("data", I), I;
|
|
1616
|
+
};
|
|
1617
|
+
function Z(e, r) {
|
|
1618
|
+
if (!r.ended) {
|
|
1619
|
+
if (r.decoder) {
|
|
1620
|
+
var E = r.decoder.end();
|
|
1621
|
+
E && E.length && (r.buffer.push(E), r.length += r.objectMode ? 1 : E.length);
|
|
1622
|
+
}
|
|
1623
|
+
r.ended = !0, i(e);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
function i(e) {
|
|
1627
|
+
var r = e._readableState;
|
|
1628
|
+
r.needReadable = !1, r.emittedReadable || (s("emitReadable", r.flowing), r.emittedReadable = !0, r.sync ? b.nextTick(n, e) : n(e));
|
|
1629
|
+
}
|
|
1630
|
+
function n(e) {
|
|
1631
|
+
s("emit readable"), e.emit("readable"), S(e);
|
|
1632
|
+
}
|
|
1633
|
+
function R(e, r) {
|
|
1634
|
+
r.readingMore || (r.readingMore = !0, b.nextTick(j, e, r));
|
|
1635
|
+
}
|
|
1636
|
+
function j(e, r) {
|
|
1637
|
+
for (var E = r.length; !r.reading && !r.flowing && !r.ended && r.length < r.highWaterMark && (s("maybeReadMore read 0"), e.read(0), E !== r.length); )
|
|
1638
|
+
E = r.length;
|
|
1639
|
+
r.readingMore = !1;
|
|
1640
|
+
}
|
|
1641
|
+
x.prototype._read = function(e) {
|
|
1642
|
+
this.emit("error", new Error("_read() is not implemented"));
|
|
1643
|
+
}, x.prototype.pipe = function(e, r) {
|
|
1644
|
+
var E = this, C = this._readableState;
|
|
1645
|
+
switch (C.pipesCount) {
|
|
1646
|
+
case 0:
|
|
1647
|
+
C.pipes = e;
|
|
1648
|
+
break;
|
|
1649
|
+
case 1:
|
|
1650
|
+
C.pipes = [C.pipes, e];
|
|
1651
|
+
break;
|
|
1652
|
+
default:
|
|
1653
|
+
C.pipes.push(e);
|
|
1654
|
+
break;
|
|
1655
|
+
}
|
|
1656
|
+
C.pipesCount += 1, s("pipe count=%d opts=%j", C.pipesCount, r);
|
|
1657
|
+
var I = (!r || r.end !== !1) && e !== process.stdout && e !== process.stderr, A = I ? fe : ie;
|
|
1658
|
+
C.endEmitted ? b.nextTick(A) : E.once("end", A), e.on("unpipe", P);
|
|
1659
|
+
function P(ee, ne) {
|
|
1660
|
+
s("onunpipe"), ee === E && ne && ne.hasUnpiped === !1 && (ne.hasUnpiped = !0, Wt());
|
|
1661
|
+
}
|
|
1662
|
+
function fe() {
|
|
1663
|
+
s("onend"), e.end();
|
|
1664
|
+
}
|
|
1665
|
+
var ge = N(E);
|
|
1666
|
+
e.on("drain", ge);
|
|
1667
|
+
var Xe = !1;
|
|
1668
|
+
function Wt() {
|
|
1669
|
+
s("cleanup"), e.removeListener("close", be), e.removeListener("finish", ye), e.removeListener("drain", ge), e.removeListener("error", we), e.removeListener("unpipe", P), E.removeListener("end", fe), E.removeListener("end", ie), E.removeListener("data", Ze), Xe = !0, C.awaitDrain && (!e._writableState || e._writableState.needDrain) && ge();
|
|
1670
|
+
}
|
|
1671
|
+
var ve = !1;
|
|
1672
|
+
E.on("data", Ze);
|
|
1673
|
+
function Ze(ee) {
|
|
1674
|
+
s("ondata"), ve = !1;
|
|
1675
|
+
var ne = e.write(ee);
|
|
1676
|
+
ne === !1 && !ve && ((C.pipesCount === 1 && C.pipes === e || C.pipesCount > 1 && Q(C.pipes, e) !== -1) && !Xe && (s("false write response, pause", C.awaitDrain), C.awaitDrain++, ve = !0), E.pause());
|
|
1677
|
+
}
|
|
1678
|
+
function we(ee) {
|
|
1679
|
+
s("onerror", ee), ie(), e.removeListener("error", we), d(e, "error") === 0 && e.emit("error", ee);
|
|
1680
|
+
}
|
|
1681
|
+
F(e, "error", we);
|
|
1682
|
+
function be() {
|
|
1683
|
+
e.removeListener("finish", ye), ie();
|
|
1684
|
+
}
|
|
1685
|
+
e.once("close", be);
|
|
1686
|
+
function ye() {
|
|
1687
|
+
s("onfinish"), e.removeListener("close", be), ie();
|
|
1688
|
+
}
|
|
1689
|
+
e.once("finish", ye);
|
|
1690
|
+
function ie() {
|
|
1691
|
+
s("unpipe"), E.unpipe(e);
|
|
1692
|
+
}
|
|
1693
|
+
return e.emit("pipe", E), C.flowing || (s("pipe resume"), E.resume()), e;
|
|
1694
|
+
};
|
|
1695
|
+
function N(e) {
|
|
1696
|
+
return function() {
|
|
1697
|
+
var r = e._readableState;
|
|
1698
|
+
s("pipeOnDrain", r.awaitDrain), r.awaitDrain && r.awaitDrain--, r.awaitDrain === 0 && d(e, "data") && (r.flowing = !0, S(e));
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
x.prototype.unpipe = function(e) {
|
|
1702
|
+
var r = this._readableState, E = { hasUnpiped: !1 };
|
|
1703
|
+
if (r.pipesCount === 0) return this;
|
|
1704
|
+
if (r.pipesCount === 1)
|
|
1705
|
+
return e && e !== r.pipes ? this : (e || (e = r.pipes), r.pipes = null, r.pipesCount = 0, r.flowing = !1, e && e.emit("unpipe", this, E), this);
|
|
1706
|
+
if (!e) {
|
|
1707
|
+
var C = r.pipes, I = r.pipesCount;
|
|
1708
|
+
r.pipes = null, r.pipesCount = 0, r.flowing = !1;
|
|
1709
|
+
for (var A = 0; A < I; A++)
|
|
1710
|
+
C[A].emit("unpipe", this, { hasUnpiped: !1 });
|
|
1711
|
+
return this;
|
|
1712
|
+
}
|
|
1713
|
+
var P = Q(r.pipes, e);
|
|
1714
|
+
return P === -1 ? this : (r.pipes.splice(P, 1), r.pipesCount -= 1, r.pipesCount === 1 && (r.pipes = r.pipes[0]), e.emit("unpipe", this, E), this);
|
|
1715
|
+
}, x.prototype.on = function(e, r) {
|
|
1716
|
+
var E = p.prototype.on.call(this, e, r);
|
|
1717
|
+
if (e === "data")
|
|
1718
|
+
this._readableState.flowing !== !1 && this.resume();
|
|
1719
|
+
else if (e === "readable") {
|
|
1720
|
+
var C = this._readableState;
|
|
1721
|
+
!C.endEmitted && !C.readableListening && (C.readableListening = C.needReadable = !0, C.emittedReadable = !1, C.reading ? C.length && i(this) : b.nextTick(H, this));
|
|
1722
|
+
}
|
|
1723
|
+
return E;
|
|
1724
|
+
}, x.prototype.addListener = x.prototype.on;
|
|
1725
|
+
function H(e) {
|
|
1726
|
+
s("readable nexttick read 0"), e.read(0);
|
|
1727
|
+
}
|
|
1728
|
+
x.prototype.resume = function() {
|
|
1729
|
+
var e = this._readableState;
|
|
1730
|
+
return e.flowing || (s("resume"), e.flowing = !0, a(this, e)), this;
|
|
1731
|
+
};
|
|
1732
|
+
function a(e, r) {
|
|
1733
|
+
r.resumeScheduled || (r.resumeScheduled = !0, b.nextTick(u, e, r));
|
|
1734
|
+
}
|
|
1735
|
+
function u(e, r) {
|
|
1736
|
+
r.reading || (s("resume read 0"), e.read(0)), r.resumeScheduled = !1, r.awaitDrain = 0, e.emit("resume"), S(e), r.flowing && !r.reading && e.read(0);
|
|
1737
|
+
}
|
|
1738
|
+
x.prototype.pause = function() {
|
|
1739
|
+
return s("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (s("pause"), this._readableState.flowing = !1, this.emit("pause")), this;
|
|
1740
|
+
};
|
|
1741
|
+
function S(e) {
|
|
1742
|
+
var r = e._readableState;
|
|
1743
|
+
for (s("flow", r.flowing); r.flowing && e.read() !== null; )
|
|
1744
|
+
;
|
|
1745
|
+
}
|
|
1746
|
+
x.prototype.wrap = function(e) {
|
|
1747
|
+
var r = this, E = this._readableState, C = !1;
|
|
1748
|
+
e.on("end", function() {
|
|
1749
|
+
if (s("wrapped end"), E.decoder && !E.ended) {
|
|
1750
|
+
var P = E.decoder.end();
|
|
1751
|
+
P && P.length && r.push(P);
|
|
1752
|
+
}
|
|
1753
|
+
r.push(null);
|
|
1754
|
+
}), e.on("data", function(P) {
|
|
1755
|
+
if (s("wrapped data"), E.decoder && (P = E.decoder.write(P)), !(E.objectMode && P == null) && !(!E.objectMode && (!P || !P.length))) {
|
|
1756
|
+
var fe = r.push(P);
|
|
1757
|
+
fe || (C = !0, e.pause());
|
|
1758
|
+
}
|
|
1759
|
+
});
|
|
1760
|
+
for (var I in e)
|
|
1761
|
+
this[I] === void 0 && typeof e[I] == "function" && (this[I] = /* @__PURE__ */ (function(P) {
|
|
1762
|
+
return function() {
|
|
1763
|
+
return e[P].apply(e, arguments);
|
|
1764
|
+
};
|
|
1765
|
+
})(I));
|
|
1766
|
+
for (var A = 0; A < w.length; A++)
|
|
1767
|
+
e.on(w[A], this.emit.bind(this, w[A]));
|
|
1768
|
+
return this._read = function(P) {
|
|
1769
|
+
s("wrapped _read", P), C && (C = !1, e.resume());
|
|
1770
|
+
}, this;
|
|
1771
|
+
}, Object.defineProperty(x.prototype, "readableHighWaterMark", {
|
|
1772
|
+
// making it explicit this property is not enumerable
|
|
1773
|
+
// because otherwise some prototype manipulation in
|
|
1774
|
+
// userland will fail
|
|
1775
|
+
enumerable: !1,
|
|
1776
|
+
get: function() {
|
|
1777
|
+
return this._readableState.highWaterMark;
|
|
1778
|
+
}
|
|
1779
|
+
}), x._fromList = B;
|
|
1780
|
+
function B(e, r) {
|
|
1781
|
+
if (r.length === 0) return null;
|
|
1782
|
+
var E;
|
|
1783
|
+
return r.objectMode ? E = r.buffer.shift() : !e || e >= r.length ? (r.decoder ? E = r.buffer.join("") : r.buffer.length === 1 ? E = r.buffer.head.data : E = r.buffer.concat(r.length), r.buffer.clear()) : E = W(e, r.buffer, r.decoder), E;
|
|
1784
|
+
}
|
|
1785
|
+
function W(e, r, E) {
|
|
1786
|
+
var C;
|
|
1787
|
+
return e < r.head.data.length ? (C = r.head.data.slice(0, e), r.head.data = r.head.data.slice(e)) : e === r.head.data.length ? C = r.shift() : C = E ? L(e, r) : V(e, r), C;
|
|
1788
|
+
}
|
|
1789
|
+
function L(e, r) {
|
|
1790
|
+
var E = r.head, C = 1, I = E.data;
|
|
1791
|
+
for (e -= I.length; E = E.next; ) {
|
|
1792
|
+
var A = E.data, P = e > A.length ? A.length : e;
|
|
1793
|
+
if (P === A.length ? I += A : I += A.slice(0, e), e -= P, e === 0) {
|
|
1794
|
+
P === A.length ? (++C, E.next ? r.head = E.next : r.head = r.tail = null) : (r.head = E, E.data = A.slice(P));
|
|
1795
|
+
break;
|
|
1796
|
+
}
|
|
1797
|
+
++C;
|
|
1798
|
+
}
|
|
1799
|
+
return r.length -= C, I;
|
|
1800
|
+
}
|
|
1801
|
+
function V(e, r) {
|
|
1802
|
+
var E = l.allocUnsafe(e), C = r.head, I = 1;
|
|
1803
|
+
for (C.data.copy(E), e -= C.data.length; C = C.next; ) {
|
|
1804
|
+
var A = C.data, P = e > A.length ? A.length : e;
|
|
1805
|
+
if (A.copy(E, E.length - e, 0, P), e -= P, e === 0) {
|
|
1806
|
+
P === A.length ? (++I, C.next ? r.head = C.next : r.head = r.tail = null) : (r.head = C, C.data = A.slice(P));
|
|
1807
|
+
break;
|
|
1808
|
+
}
|
|
1809
|
+
++I;
|
|
1810
|
+
}
|
|
1811
|
+
return r.length -= I, E;
|
|
1812
|
+
}
|
|
1813
|
+
function X(e) {
|
|
1814
|
+
var r = e._readableState;
|
|
1815
|
+
if (r.length > 0) throw new Error('"endReadable()" called on non-empty stream');
|
|
1816
|
+
r.endEmitted || (r.ended = !0, b.nextTick(G, r, e));
|
|
1817
|
+
}
|
|
1818
|
+
function G(e, r) {
|
|
1819
|
+
!e.endEmitted && e.length === 0 && (e.endEmitted = !0, r.readable = !1, r.emit("end"));
|
|
1820
|
+
}
|
|
1821
|
+
function Q(e, r) {
|
|
1822
|
+
for (var E = 0, C = e.length; E < C; E++)
|
|
1823
|
+
if (e[E] === r) return E;
|
|
1824
|
+
return -1;
|
|
1825
|
+
}
|
|
1826
|
+
return Ne;
|
|
1827
|
+
}
|
|
1828
|
+
var Pe, _t;
|
|
1829
|
+
function Ot() {
|
|
1830
|
+
if (_t) return Pe;
|
|
1831
|
+
_t = 1, Pe = d;
|
|
1832
|
+
var b = re(), h = Object.create(J());
|
|
1833
|
+
h.inherits = K(), h.inherits(d, b);
|
|
1834
|
+
function y(f, t) {
|
|
1835
|
+
var o = this._transformState;
|
|
1836
|
+
o.transforming = !1;
|
|
1837
|
+
var c = o.writecb;
|
|
1838
|
+
if (!c)
|
|
1839
|
+
return this.emit("error", new Error("write callback called multiple times"));
|
|
1840
|
+
o.writechunk = null, o.writecb = null, t != null && this.push(t), c(f);
|
|
1841
|
+
var v = this._readableState;
|
|
1842
|
+
v.reading = !1, (v.needReadable || v.length < v.highWaterMark) && this._read(v.highWaterMark);
|
|
1843
|
+
}
|
|
1844
|
+
function d(f) {
|
|
1845
|
+
if (!(this instanceof d)) return new d(f);
|
|
1846
|
+
b.call(this, f), this._transformState = {
|
|
1847
|
+
afterTransform: y.bind(this),
|
|
1848
|
+
needTransform: !1,
|
|
1849
|
+
transforming: !1,
|
|
1850
|
+
writecb: null,
|
|
1851
|
+
writechunk: null,
|
|
1852
|
+
writeencoding: null
|
|
1853
|
+
}, this._readableState.needReadable = !0, this._readableState.sync = !1, f && (typeof f.transform == "function" && (this._transform = f.transform), typeof f.flush == "function" && (this._flush = f.flush)), this.on("prefinish", p);
|
|
1854
|
+
}
|
|
1855
|
+
function p() {
|
|
1856
|
+
var f = this;
|
|
1857
|
+
typeof this._flush == "function" ? this._flush(function(t, o) {
|
|
1858
|
+
l(f, t, o);
|
|
1859
|
+
}) : l(this, null, null);
|
|
1860
|
+
}
|
|
1861
|
+
d.prototype.push = function(f, t) {
|
|
1862
|
+
return this._transformState.needTransform = !1, b.prototype.push.call(this, f, t);
|
|
1863
|
+
}, d.prototype._transform = function(f, t, o) {
|
|
1864
|
+
throw new Error("_transform() is not implemented");
|
|
1865
|
+
}, d.prototype._write = function(f, t, o) {
|
|
1866
|
+
var c = this._transformState;
|
|
1867
|
+
if (c.writecb = o, c.writechunk = f, c.writeencoding = t, !c.transforming) {
|
|
1868
|
+
var v = this._readableState;
|
|
1869
|
+
(c.needTransform || v.needReadable || v.length < v.highWaterMark) && this._read(v.highWaterMark);
|
|
1870
|
+
}
|
|
1871
|
+
}, d.prototype._read = function(f) {
|
|
1872
|
+
var t = this._transformState;
|
|
1873
|
+
t.writechunk !== null && t.writecb && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
|
|
1874
|
+
}, d.prototype._destroy = function(f, t) {
|
|
1875
|
+
var o = this;
|
|
1876
|
+
b.prototype._destroy.call(this, f, function(c) {
|
|
1877
|
+
t(c), o.emit("close");
|
|
1878
|
+
});
|
|
1879
|
+
};
|
|
1880
|
+
function l(f, t, o) {
|
|
1881
|
+
if (t) return f.emit("error", t);
|
|
1882
|
+
if (o != null && f.push(o), f._writableState.length) throw new Error("Calling transform done when ws.length != 0");
|
|
1883
|
+
if (f._transformState.transforming) throw new Error("Calling transform done when still transforming");
|
|
1884
|
+
return f.push(null);
|
|
1885
|
+
}
|
|
1886
|
+
return Pe;
|
|
1887
|
+
}
|
|
1888
|
+
var Ue, St;
|
|
1889
|
+
function Kt() {
|
|
1890
|
+
if (St) return Ue;
|
|
1891
|
+
St = 1, Ue = y;
|
|
1892
|
+
var b = Ot(), h = Object.create(J());
|
|
1893
|
+
h.inherits = K(), h.inherits(y, b);
|
|
1894
|
+
function y(d) {
|
|
1895
|
+
if (!(this instanceof y)) return new y(d);
|
|
1896
|
+
b.call(this, d);
|
|
1897
|
+
}
|
|
1898
|
+
return y.prototype._transform = function(d, p, l) {
|
|
1899
|
+
l(null, d);
|
|
1900
|
+
}, Ue;
|
|
1901
|
+
}
|
|
1902
|
+
var xt;
|
|
1903
|
+
function Jt() {
|
|
1904
|
+
return xt || (xt = 1, (function(b, h) {
|
|
1905
|
+
h = b.exports = At(), h.Stream = h, h.Readable = h, h.Writable = Dt(), h.Duplex = re(), h.Transform = Ot(), h.PassThrough = Kt();
|
|
1906
|
+
})(ue, ue.exports)), ue.exports;
|
|
1907
|
+
}
|
|
1908
|
+
var Rt;
|
|
1909
|
+
function Qt() {
|
|
1910
|
+
if (Rt) return le.exports;
|
|
1911
|
+
Rt = 1;
|
|
1912
|
+
var b = Jt();
|
|
1913
|
+
function h(y, d, p) {
|
|
1914
|
+
typeof p > "u" && (p = d, d = y, y = null), b.Duplex.call(this, y), typeof p.read != "function" && (p = new b.Readable(y).wrap(p)), this._writable = d, this._readable = p, this._waiting = !1;
|
|
1915
|
+
var l = this;
|
|
1916
|
+
d.once("finish", function() {
|
|
1917
|
+
l.end();
|
|
1918
|
+
}), this.once("finish", function() {
|
|
1919
|
+
d.end();
|
|
1920
|
+
}), p.on("readable", function() {
|
|
1921
|
+
l._waiting && (l._waiting = !1, l._read());
|
|
1922
|
+
}), p.once("end", function() {
|
|
1923
|
+
l.push(null);
|
|
1924
|
+
}), (!y || typeof y.bubbleErrors > "u" || y.bubbleErrors) && (d.on("error", function(f) {
|
|
1925
|
+
l.emit("error", f);
|
|
1926
|
+
}), p.on("error", function(f) {
|
|
1927
|
+
l.emit("error", f);
|
|
1928
|
+
}));
|
|
1929
|
+
}
|
|
1930
|
+
return h.prototype = Object.create(b.Duplex.prototype, { constructor: { value: h } }), h.prototype._write = function(d, p, l) {
|
|
1931
|
+
this._writable.write(d, p, l);
|
|
1932
|
+
}, h.prototype._read = function() {
|
|
1933
|
+
for (var d, p = 0; (d = this._readable.read()) !== null; )
|
|
1934
|
+
this.push(d), p++;
|
|
1935
|
+
p === 0 && (this._waiting = !0);
|
|
1936
|
+
}, le.exports = function(d, p, l) {
|
|
1937
|
+
return new h(d, p, l);
|
|
1938
|
+
}, le.exports.DuplexWrapper = h, le.exports;
|
|
1939
|
+
}
|
|
1940
|
+
/*
|
|
1941
|
+
object-assign
|
|
1942
|
+
(c) Sindre Sorhus
|
|
1943
|
+
@license MIT
|
|
1944
|
+
*/
|
|
1945
|
+
var Ie, Et;
|
|
1946
|
+
function Yt() {
|
|
1947
|
+
if (Et) return Ie;
|
|
1948
|
+
Et = 1;
|
|
1949
|
+
var b = Object.getOwnPropertySymbols, h = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
1950
|
+
function d(l) {
|
|
1951
|
+
if (l == null)
|
|
1952
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
1953
|
+
return Object(l);
|
|
1954
|
+
}
|
|
1955
|
+
function p() {
|
|
1956
|
+
try {
|
|
1957
|
+
if (!Object.assign)
|
|
1958
|
+
return !1;
|
|
1959
|
+
var l = new String("abc");
|
|
1960
|
+
if (l[5] = "de", Object.getOwnPropertyNames(l)[0] === "5")
|
|
1961
|
+
return !1;
|
|
1962
|
+
for (var f = {}, t = 0; t < 10; t++)
|
|
1963
|
+
f["_" + String.fromCharCode(t)] = t;
|
|
1964
|
+
var o = Object.getOwnPropertyNames(f).map(function(v) {
|
|
1965
|
+
return f[v];
|
|
1966
|
+
});
|
|
1967
|
+
if (o.join("") !== "0123456789")
|
|
1968
|
+
return !1;
|
|
1969
|
+
var c = {};
|
|
1970
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(v) {
|
|
1971
|
+
c[v] = v;
|
|
1972
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
1973
|
+
} catch {
|
|
1974
|
+
return !1;
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
return Ie = p() ? Object.assign : function(l, f) {
|
|
1978
|
+
for (var t, o = d(l), c, v = 1; v < arguments.length; v++) {
|
|
1979
|
+
t = Object(arguments[v]);
|
|
1980
|
+
for (var s in t)
|
|
1981
|
+
h.call(t, s) && (o[s] = t[s]);
|
|
1982
|
+
if (b) {
|
|
1983
|
+
c = b(t);
|
|
1984
|
+
for (var k = 0; k < c.length; k++)
|
|
1985
|
+
y.call(t, c[k]) && (o[c[k]] = t[c[k]]);
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
return o;
|
|
1989
|
+
}, Ie;
|
|
1990
|
+
}
|
|
1991
|
+
var Fe, Tt;
|
|
1992
|
+
function er() {
|
|
1993
|
+
if (Tt) return Fe;
|
|
1994
|
+
Tt = 1;
|
|
1995
|
+
var b = Qt(), h = Y.PassThrough, y = Y.PassThrough, d = Yt(), p = [].slice, l = {
|
|
1996
|
+
bubbleErrors: !1,
|
|
1997
|
+
objectMode: !0
|
|
1998
|
+
};
|
|
1999
|
+
Fe = f;
|
|
2000
|
+
function f(t, o, c) {
|
|
2001
|
+
Array.isArray(t) || (t = p.call(arguments), o = null, c = null);
|
|
2002
|
+
var v = t[t.length - 1];
|
|
2003
|
+
typeof v == "function" && (c = t.splice(-1)[0], v = t[t.length - 1]), typeof v == "object" && typeof v.pipe != "function" && (o = t.splice(-1)[0]);
|
|
2004
|
+
var s = t[0], k = t[t.length - 1], M;
|
|
2005
|
+
if (o = d({}, l, o), !s)
|
|
2006
|
+
return c && process.nextTick(c), new h(o);
|
|
2007
|
+
if (s.writable && k.readable ? M = b(o, s, k) : t.length == 1 ? M = new y(o).wrap(t[0]) : s.writable ? M = s : k.readable ? M = k : M = new h(o), t.forEach(function(w, F) {
|
|
2008
|
+
var g = t[F + 1];
|
|
2009
|
+
g && w.pipe(g), w != M && w.on("error", M.emit.bind(M, "error"));
|
|
2010
|
+
}), c) {
|
|
2011
|
+
let w = function(F) {
|
|
2012
|
+
q || (q = !0, c(F));
|
|
2013
|
+
};
|
|
2014
|
+
var q = !1;
|
|
2015
|
+
M.on("error", w), k.on("finish", function() {
|
|
2016
|
+
w();
|
|
2017
|
+
}), k.on("close", function() {
|
|
2018
|
+
w();
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
return M;
|
|
2022
|
+
}
|
|
2023
|
+
return Fe;
|
|
2024
|
+
}
|
|
2025
|
+
var tr = er();
|
|
2026
|
+
const rr = /* @__PURE__ */ He(tr);
|
|
2027
|
+
var ir = function(h) {
|
|
2028
|
+
return function(y) {
|
|
2029
|
+
for (var d = new RegExp(h.key + "-([a-zA-Z0-9-_]+)", "gm"), p = {
|
|
2030
|
+
html: y,
|
|
2031
|
+
ids: [],
|
|
2032
|
+
css: ""
|
|
2033
|
+
}, l, f = {}; (l = d.exec(y)) !== null; )
|
|
2034
|
+
f[l[1]] === void 0 && (f[l[1]] = !0);
|
|
2035
|
+
return p.ids = Object.keys(h.inserted).filter(function(t) {
|
|
2036
|
+
if ((f[t] !== void 0 || h.registered[h.key + "-" + t] === void 0) && h.inserted[t] !== !0)
|
|
2037
|
+
return p.css += h.inserted[t], !0;
|
|
2038
|
+
}), p;
|
|
2039
|
+
};
|
|
2040
|
+
}, nr = function(h) {
|
|
2041
|
+
return function(y) {
|
|
2042
|
+
for (var d = new RegExp(h.key + "-([a-zA-Z0-9-_]+)", "gm"), p = {
|
|
2043
|
+
html: y,
|
|
2044
|
+
styles: []
|
|
2045
|
+
}, l, f = {}; (l = d.exec(y)) !== null; )
|
|
2046
|
+
f[l[1]] === void 0 && (f[l[1]] = !0);
|
|
2047
|
+
var t = [], o = "";
|
|
2048
|
+
return Object.keys(h.inserted).forEach(function(c) {
|
|
2049
|
+
(f[c] !== void 0 || h.registered[h.key + "-" + c] === void 0) && h.inserted[c] !== !0 && (h.registered[h.key + "-" + c] ? (t.push(c), o += h.inserted[c]) : p.styles.push({
|
|
2050
|
+
key: h.key + "-global",
|
|
2051
|
+
ids: [c],
|
|
2052
|
+
css: h.inserted[c]
|
|
2053
|
+
}));
|
|
2054
|
+
}), p.styles.push({
|
|
2055
|
+
key: h.key,
|
|
2056
|
+
ids: t,
|
|
2057
|
+
css: o
|
|
2058
|
+
}), p;
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
function $e(b, h, y, d) {
|
|
2062
|
+
return '<style data-emotion="' + b + " " + h + '"' + d + ">" + y + "</style>";
|
|
2063
|
+
}
|
|
2064
|
+
var ar = function(h, y) {
|
|
2065
|
+
return function(d) {
|
|
2066
|
+
var p = h.inserted, l = h.key, f = h.registered, t = new RegExp("<|" + l + "-([a-zA-Z0-9-_]+)", "gm"), o = {}, c = "", v = "", s = "";
|
|
2067
|
+
for (var k in p)
|
|
2068
|
+
if (p.hasOwnProperty(k)) {
|
|
2069
|
+
var M = p[k], q = l + "-" + k;
|
|
2070
|
+
M !== !0 && f[q] === void 0 && (s += M, v += " " + k);
|
|
2071
|
+
}
|
|
2072
|
+
s !== "" && (c = $e(l, v.substring(1), s, y));
|
|
2073
|
+
for (var w = "", F = "", g = 0, x; (x = t.exec(d)) !== null; ) {
|
|
2074
|
+
if (x[0] === "<") {
|
|
2075
|
+
w !== "" && (c += $e(l, w.substring(1), F, y), w = "", F = ""), c += d.substring(g, x.index), g = x.index;
|
|
2076
|
+
continue;
|
|
2077
|
+
}
|
|
2078
|
+
var O = x[1], _ = p[O];
|
|
2079
|
+
_ === !0 || _ === void 0 || o[O] || (o[O] = !0, F += _, w += " " + O);
|
|
2080
|
+
}
|
|
2081
|
+
return c += d.substring(g), c;
|
|
2082
|
+
};
|
|
2083
|
+
}, fr = function(h, y) {
|
|
2084
|
+
return function() {
|
|
2085
|
+
var d = {}, p = Vt(), l = Pt(function(t) {
|
|
2086
|
+
var o = t[0], c = t[1];
|
|
2087
|
+
if (o === "open") {
|
|
2088
|
+
for (var v = "", s = {}, k, M = c.toString(), q = new RegExp(h.key + "-([a-zA-Z0-9-_]+)", "gm"); (k = q.exec(M)) !== null; )
|
|
2089
|
+
k !== null && d[k[1]] === void 0 && (s[k[1]] = !0);
|
|
2090
|
+
Object.keys(h.inserted).forEach(function(w) {
|
|
2091
|
+
h.inserted[w] !== !0 && d[w] === void 0 && (s[w] === !0 || h.registered[h.key + "-" + w] === void 0 && (s[w] = !0)) && (d[w] = !0, v += h.inserted[w]);
|
|
2092
|
+
}), v !== "" && this.queue('<style data-emotion="' + h.key + " " + Object.keys(s).join(" ") + '"' + y + ">" + v + "</style>");
|
|
2093
|
+
}
|
|
2094
|
+
this.queue(c);
|
|
2095
|
+
}, function() {
|
|
2096
|
+
this.queue(null);
|
|
2097
|
+
});
|
|
2098
|
+
return rr(p, l);
|
|
2099
|
+
};
|
|
2100
|
+
}, sr = function(h, y) {
|
|
2101
|
+
return function(d) {
|
|
2102
|
+
var p = "";
|
|
2103
|
+
return d.styles.forEach(function(l) {
|
|
2104
|
+
p += $e(l.key, l.ids.join(" "), l.css, y);
|
|
2105
|
+
}), p;
|
|
2106
|
+
};
|
|
2107
|
+
};
|
|
2108
|
+
function cr(b) {
|
|
2109
|
+
b.compat !== !0 && (b.compat = !0);
|
|
2110
|
+
var h = b.nonce !== void 0 ? ' nonce="' + b.nonce + '"' : "";
|
|
2111
|
+
return {
|
|
2112
|
+
extractCritical: ir(b),
|
|
2113
|
+
extractCriticalToChunks: nr(b),
|
|
2114
|
+
renderStylesToString: ar(b, h),
|
|
2115
|
+
renderStylesToNodeStream: fr(b, h),
|
|
2116
|
+
constructStyleTagsFromChunks: sr(b, h)
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
export {
|
|
2120
|
+
cr as default
|
|
2121
|
+
};
|
|
2122
|
+
//# sourceMappingURL=emotion-server-create-instance.browser.esm-CgeoyX9a.js.map
|