@harbour-enterprises/superdoc 0.9.39 → 0.9.40
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/chunks/{super-editor.es-DCbnxyYl.es.js → super-editor.es-BMGaeJBV.es.js} +2507 -2507
- package/dist/chunks/{super-editor.es-TG5bwOai.cjs → super-editor.es-BPWmPyPV.cjs} +43 -43
- package/dist/super-editor/chunks/{converter-DXuU2GGe.js → converter-3lmRyrJr.js} +339 -339
- package/dist/super-editor/chunks/{docx-zipper-BuYva3j1.js → docx-zipper-pzhEkORK.js} +1 -1
- package/dist/super-editor/chunks/{editor-Dqrro-7d.js → editor-B7eTfGQw.js} +3 -3
- package/dist/super-editor/chunks/{toolbar-DHjcVYGZ.js → toolbar-BfM-mqT5.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/tests/e2e/test-app/dist/assets/{index-DX0vnkoa.d.ts → index-BTMvkUyI.d.ts} +1 -1
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +1 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +3 -3
- package/dist/superdoc.umd.js +341 -341
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DX0vnkoa.d.ts.map +0 -1
package/dist/superdoc.umd.js
CHANGED
|
@@ -7778,7 +7778,7 @@
|
|
|
7778
7778
|
}
|
|
7779
7779
|
return G < me2 ? -1 : me2 < G ? 1 : 0;
|
|
7780
7780
|
};
|
|
7781
|
-
function
|
|
7781
|
+
function E3(y, l, d, v, O3) {
|
|
7782
7782
|
if (y.length === 0) return -1;
|
|
7783
7783
|
if (typeof d == "string" ? (v = d, d = 0) : d > 2147483647 ? d = 2147483647 : d < -2147483648 && (d = -2147483648), d = +d, st2(d) && (d = O3 ? 0 : y.length - 1), d < 0 && (d = y.length + d), d >= y.length) {
|
|
7784
7784
|
if (O3) return -1;
|
|
@@ -7825,9 +7825,9 @@
|
|
|
7825
7825
|
c3.prototype.includes = function(l, d, v) {
|
|
7826
7826
|
return this.indexOf(l, d, v) !== -1;
|
|
7827
7827
|
}, c3.prototype.indexOf = function(l, d, v) {
|
|
7828
|
-
return
|
|
7828
|
+
return E3(this, l, d, v, true);
|
|
7829
7829
|
}, c3.prototype.lastIndexOf = function(l, d, v) {
|
|
7830
|
-
return
|
|
7830
|
+
return E3(this, l, d, v, false);
|
|
7831
7831
|
};
|
|
7832
7832
|
function oe2(y, l, d, v) {
|
|
7833
7833
|
d = Number(d) || 0;
|
|
@@ -8160,13 +8160,13 @@
|
|
|
8160
8160
|
}, c3.prototype.writeFloatBE = function(l, d, v) {
|
|
8161
8161
|
return R(this, l, d, false, v);
|
|
8162
8162
|
};
|
|
8163
|
-
function
|
|
8163
|
+
function D3(y, l, d, v, O3) {
|
|
8164
8164
|
return l = +l, d = d >>> 0, O3 || m(y, l, d, 8), t.write(y, l, d, v, 52, 8), d + 8;
|
|
8165
8165
|
}
|
|
8166
8166
|
c3.prototype.writeDoubleLE = function(l, d, v) {
|
|
8167
|
-
return
|
|
8167
|
+
return D3(this, l, d, true, v);
|
|
8168
8168
|
}, c3.prototype.writeDoubleBE = function(l, d, v) {
|
|
8169
|
-
return
|
|
8169
|
+
return D3(this, l, d, false, v);
|
|
8170
8170
|
}, c3.prototype.copy = function(l, d, v, O3) {
|
|
8171
8171
|
if (!c3.isBuffer(l)) throw new TypeError("argument should be a Buffer");
|
|
8172
8172
|
if (v || (v = 0), !O3 && O3 !== 0 && (O3 = this.length), d >= l.length && (d = l.length), d || (d = 0), O3 > 0 && O3 < v && (O3 = v), O3 === v || l.length === 0 || this.length === 0) return 0;
|
|
@@ -8462,9 +8462,9 @@
|
|
|
8462
8462
|
return u(this);
|
|
8463
8463
|
}, s.prototype.emit = function(F3) {
|
|
8464
8464
|
for (var N3 = [], q = 1; q < arguments.length; q++) N3.push(arguments[q]);
|
|
8465
|
-
var H3 = F3 === "error",
|
|
8466
|
-
if (
|
|
8467
|
-
H3 = H3 &&
|
|
8465
|
+
var H3 = F3 === "error", E3 = this._events;
|
|
8466
|
+
if (E3 !== void 0)
|
|
8467
|
+
H3 = H3 && E3.error === void 0;
|
|
8468
8468
|
else if (!H3)
|
|
8469
8469
|
return false;
|
|
8470
8470
|
if (H3) {
|
|
@@ -8474,7 +8474,7 @@
|
|
|
8474
8474
|
var oe2 = new Error("Unhandled error." + (K3 ? " (" + K3.message + ")" : ""));
|
|
8475
8475
|
throw oe2.context = K3, oe2;
|
|
8476
8476
|
}
|
|
8477
|
-
var ee =
|
|
8477
|
+
var ee = E3[F3];
|
|
8478
8478
|
if (ee === void 0)
|
|
8479
8479
|
return false;
|
|
8480
8480
|
if (typeof ee == "function")
|
|
@@ -8485,14 +8485,14 @@
|
|
|
8485
8485
|
return true;
|
|
8486
8486
|
};
|
|
8487
8487
|
function f3(C, F3, N3, q) {
|
|
8488
|
-
var H3,
|
|
8489
|
-
if (a(N3),
|
|
8488
|
+
var H3, E3, K3;
|
|
8489
|
+
if (a(N3), E3 = C._events, E3 === void 0 ? (E3 = C._events = /* @__PURE__ */ Object.create(null), C._eventsCount = 0) : (E3.newListener !== void 0 && (C.emit(
|
|
8490
8490
|
"newListener",
|
|
8491
8491
|
F3,
|
|
8492
8492
|
N3.listener ? N3.listener : N3
|
|
8493
|
-
),
|
|
8494
|
-
K3 =
|
|
8495
|
-
else if (typeof K3 == "function" ? K3 =
|
|
8493
|
+
), E3 = C._events), K3 = E3[F3]), K3 === void 0)
|
|
8494
|
+
K3 = E3[F3] = N3, ++C._eventsCount;
|
|
8495
|
+
else if (typeof K3 == "function" ? K3 = E3[F3] = q ? [N3, K3] : [K3, N3] : q ? K3.unshift(N3) : K3.push(N3), H3 = u(C), H3 > 0 && K3.length > H3 && !K3.warned) {
|
|
8496
8496
|
K3.warned = true;
|
|
8497
8497
|
var oe2 = new Error("Possible EventEmitter memory leak detected. " + K3.length + " " + String(F3) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
8498
8498
|
oe2.name = "MaxListenersExceededWarning", oe2.emitter = C, oe2.type = F3, oe2.count = K3.length, n(oe2);
|
|
@@ -8517,7 +8517,7 @@
|
|
|
8517
8517
|
}, s.prototype.prependOnceListener = function(F3, N3) {
|
|
8518
8518
|
return a(N3), this.prependListener(F3, h3(this, F3, N3)), this;
|
|
8519
8519
|
}, s.prototype.removeListener = function(F3, N3) {
|
|
8520
|
-
var q, H3,
|
|
8520
|
+
var q, H3, E3, K3, oe2;
|
|
8521
8521
|
if (a(N3), H3 = this._events, H3 === void 0)
|
|
8522
8522
|
return this;
|
|
8523
8523
|
if (q = H3[F3], q === void 0)
|
|
@@ -8525,14 +8525,14 @@
|
|
|
8525
8525
|
if (q === N3 || q.listener === N3)
|
|
8526
8526
|
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete H3[F3], H3.removeListener && this.emit("removeListener", F3, q.listener || N3));
|
|
8527
8527
|
else if (typeof q != "function") {
|
|
8528
|
-
for (
|
|
8528
|
+
for (E3 = -1, K3 = q.length - 1; K3 >= 0; K3--)
|
|
8529
8529
|
if (q[K3] === N3 || q[K3].listener === N3) {
|
|
8530
|
-
oe2 = q[K3].listener,
|
|
8530
|
+
oe2 = q[K3].listener, E3 = K3;
|
|
8531
8531
|
break;
|
|
8532
8532
|
}
|
|
8533
|
-
if (
|
|
8533
|
+
if (E3 < 0)
|
|
8534
8534
|
return this;
|
|
8535
|
-
|
|
8535
|
+
E3 === 0 ? q.shift() : A(q, E3), q.length === 1 && (H3[F3] = q[0]), H3.removeListener !== void 0 && this.emit("removeListener", F3, oe2 || N3);
|
|
8536
8536
|
}
|
|
8537
8537
|
return this;
|
|
8538
8538
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(F3) {
|
|
@@ -8542,9 +8542,9 @@
|
|
|
8542
8542
|
if (q.removeListener === void 0)
|
|
8543
8543
|
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : q[F3] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete q[F3]), this;
|
|
8544
8544
|
if (arguments.length === 0) {
|
|
8545
|
-
var
|
|
8546
|
-
for (H3 = 0; H3 <
|
|
8547
|
-
K3 =
|
|
8545
|
+
var E3 = Object.keys(q), K3;
|
|
8546
|
+
for (H3 = 0; H3 < E3.length; ++H3)
|
|
8547
|
+
K3 = E3[H3], K3 !== "removeListener" && this.removeAllListeners(K3);
|
|
8548
8548
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
8549
8549
|
}
|
|
8550
8550
|
if (N3 = q[F3], typeof N3 == "function")
|
|
@@ -8600,12 +8600,12 @@
|
|
|
8600
8600
|
function w(C, F3) {
|
|
8601
8601
|
return new Promise(function(N3, q) {
|
|
8602
8602
|
function H3(K3) {
|
|
8603
|
-
C.removeListener(F3,
|
|
8603
|
+
C.removeListener(F3, E3), q(K3);
|
|
8604
8604
|
}
|
|
8605
|
-
function
|
|
8605
|
+
function E3() {
|
|
8606
8606
|
typeof C.removeListener == "function" && C.removeListener("error", H3), N3([].slice.call(arguments));
|
|
8607
8607
|
}
|
|
8608
|
-
I3(C, F3,
|
|
8608
|
+
I3(C, F3, E3, { once: true }), F3 !== "error" && k(C, H3, { once: true });
|
|
8609
8609
|
});
|
|
8610
8610
|
}
|
|
8611
8611
|
function k(C, F3, N3) {
|
|
@@ -8615,8 +8615,8 @@
|
|
|
8615
8615
|
if (typeof C.on == "function")
|
|
8616
8616
|
q.once ? C.once(F3, N3) : C.on(F3, N3);
|
|
8617
8617
|
else if (typeof C.addEventListener == "function")
|
|
8618
|
-
C.addEventListener(F3, function H3(
|
|
8619
|
-
q.once && C.removeEventListener(F3, H3), N3(
|
|
8618
|
+
C.addEventListener(F3, function H3(E3) {
|
|
8619
|
+
q.once && C.removeEventListener(F3, H3), N3(E3);
|
|
8620
8620
|
});
|
|
8621
8621
|
else
|
|
8622
8622
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof C);
|
|
@@ -9072,7 +9072,7 @@
|
|
|
9072
9072
|
return C;
|
|
9073
9073
|
}
|
|
9074
9074
|
}
|
|
9075
|
-
}() : C, N3 = vl$2()(), q = Di$2(), H3 = $o$1(),
|
|
9075
|
+
}() : C, N3 = vl$2()(), q = Di$2(), H3 = $o$1(), E3 = Ko$1(), K3 = xi$2(), oe2 = bi$1(), ee = {}, Q3 = typeof Uint8Array > "u" || !q ? r22 : q(Uint8Array), ce2 = {
|
|
9076
9076
|
__proto__: null,
|
|
9077
9077
|
"%AggregateError%": typeof AggregateError > "u" ? r22 : AggregateError,
|
|
9078
9078
|
"%Array%": Array,
|
|
@@ -9154,7 +9154,7 @@
|
|
|
9154
9154
|
"%Math.pow%": S,
|
|
9155
9155
|
"%Math.round%": T3,
|
|
9156
9156
|
"%Math.sign%": A,
|
|
9157
|
-
"%Reflect.getPrototypeOf%":
|
|
9157
|
+
"%Reflect.getPrototypeOf%": E3
|
|
9158
9158
|
};
|
|
9159
9159
|
if (q)
|
|
9160
9160
|
try {
|
|
@@ -9163,22 +9163,22 @@
|
|
|
9163
9163
|
var ae2 = q(q(R));
|
|
9164
9164
|
ce2["%Error.prototype%"] = ae2;
|
|
9165
9165
|
}
|
|
9166
|
-
var se = function R(
|
|
9166
|
+
var se = function R(D3) {
|
|
9167
9167
|
var b;
|
|
9168
|
-
if (
|
|
9168
|
+
if (D3 === "%AsyncFunction%")
|
|
9169
9169
|
b = w("async function () {}");
|
|
9170
|
-
else if (
|
|
9170
|
+
else if (D3 === "%GeneratorFunction%")
|
|
9171
9171
|
b = w("function* () {}");
|
|
9172
|
-
else if (
|
|
9172
|
+
else if (D3 === "%AsyncGeneratorFunction%")
|
|
9173
9173
|
b = w("async function* () {}");
|
|
9174
|
-
else if (
|
|
9174
|
+
else if (D3 === "%AsyncGenerator%") {
|
|
9175
9175
|
var x = R("%AsyncGeneratorFunction%");
|
|
9176
9176
|
x && (b = x.prototype);
|
|
9177
|
-
} else if (
|
|
9177
|
+
} else if (D3 === "%AsyncIteratorPrototype%") {
|
|
9178
9178
|
var _ = R("%AsyncGenerator%");
|
|
9179
9179
|
_ && q && (b = q(_.prototype));
|
|
9180
9180
|
}
|
|
9181
|
-
return ce2[
|
|
9181
|
+
return ce2[D3] = b, b;
|
|
9182
9182
|
}, Y = {
|
|
9183
9183
|
__proto__: null,
|
|
9184
9184
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
@@ -9232,38 +9232,38 @@
|
|
|
9232
9232
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
9233
9233
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
9234
9234
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
9235
|
-
}, de2 = Kt$2(), J3 = Yo$2(), te2 = de2.call(oe2, Array.prototype.concat), ie = de2.call(K3, Array.prototype.splice), L3 = de2.call(oe2, String.prototype.replace), j = de2.call(oe2, String.prototype.slice), V = de2.call(oe2, RegExp.prototype.exec), $3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P3 = /\\(\\)?/g, p3 = function(
|
|
9236
|
-
var b = j(
|
|
9235
|
+
}, de2 = Kt$2(), J3 = Yo$2(), te2 = de2.call(oe2, Array.prototype.concat), ie = de2.call(K3, Array.prototype.splice), L3 = de2.call(oe2, String.prototype.replace), j = de2.call(oe2, String.prototype.slice), V = de2.call(oe2, RegExp.prototype.exec), $3 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P3 = /\\(\\)?/g, p3 = function(D3) {
|
|
9236
|
+
var b = j(D3, 0, 1), x = j(D3, -1);
|
|
9237
9237
|
if (b === "%" && x !== "%")
|
|
9238
9238
|
throw new o("invalid intrinsic syntax, expected closing `%`");
|
|
9239
9239
|
if (x === "%" && b !== "%")
|
|
9240
9240
|
throw new o("invalid intrinsic syntax, expected opening `%`");
|
|
9241
9241
|
var _ = [];
|
|
9242
|
-
return L3(
|
|
9242
|
+
return L3(D3, $3, function(W, re2, X3, ne) {
|
|
9243
9243
|
_[_.length] = X3 ? L3(ne, P3, "$1") : re2 || W;
|
|
9244
9244
|
}), _;
|
|
9245
|
-
}, m = function(
|
|
9246
|
-
var x =
|
|
9245
|
+
}, m = function(D3, b) {
|
|
9246
|
+
var x = D3, _;
|
|
9247
9247
|
if (J3(Y, x) && (_ = Y[x], x = "%" + _[0] + "%"), J3(ce2, x)) {
|
|
9248
9248
|
var W = ce2[x];
|
|
9249
9249
|
if (W === ee && (W = se(x)), typeof W > "u" && !b)
|
|
9250
|
-
throw new a("intrinsic " +
|
|
9250
|
+
throw new a("intrinsic " + D3 + " exists, but is not available. Please file an issue!");
|
|
9251
9251
|
return {
|
|
9252
9252
|
alias: _,
|
|
9253
9253
|
name: x,
|
|
9254
9254
|
value: W
|
|
9255
9255
|
};
|
|
9256
9256
|
}
|
|
9257
|
-
throw new o("intrinsic " +
|
|
9257
|
+
throw new o("intrinsic " + D3 + " does not exist!");
|
|
9258
9258
|
};
|
|
9259
|
-
return wn$3 = function(
|
|
9260
|
-
if (typeof
|
|
9259
|
+
return wn$3 = function(D3, b) {
|
|
9260
|
+
if (typeof D3 != "string" || D3.length === 0)
|
|
9261
9261
|
throw new a("intrinsic name must be a non-empty string");
|
|
9262
9262
|
if (arguments.length > 1 && typeof b != "boolean")
|
|
9263
9263
|
throw new a('"allowMissing" argument must be a boolean');
|
|
9264
|
-
if (V(/^%?[^%]*%?$/,
|
|
9264
|
+
if (V(/^%?[^%]*%?$/, D3) === null)
|
|
9265
9265
|
throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
9266
|
-
var x = p3(
|
|
9266
|
+
var x = p3(D3), _ = x.length > 0 ? x[0] : "", W = m("%" + _ + "%", b), re2 = W.name, X3 = W.value, ne = false, ye2 = W.alias;
|
|
9267
9267
|
ye2 && (_ = ye2[0], ie(x, te2([0, 1], ye2)));
|
|
9268
9268
|
for (var z = 1, Be2 = true; z < x.length; z += 1) {
|
|
9269
9269
|
var Fe2 = x[z], He2 = j(Fe2, 0, 1), ze2 = j(Fe2, -1);
|
|
@@ -9274,7 +9274,7 @@
|
|
|
9274
9274
|
else if (X3 != null) {
|
|
9275
9275
|
if (!(Fe2 in X3)) {
|
|
9276
9276
|
if (!b)
|
|
9277
|
-
throw new a("base intrinsic for " +
|
|
9277
|
+
throw new a("base intrinsic for " + D3 + " exists, but the property is not available.");
|
|
9278
9278
|
return;
|
|
9279
9279
|
}
|
|
9280
9280
|
if (k && z + 1 >= x.length) {
|
|
@@ -9774,10 +9774,10 @@
|
|
|
9774
9774
|
return n(z) === "Float32Array";
|
|
9775
9775
|
}
|
|
9776
9776
|
r22.isFloat32Array = H3;
|
|
9777
|
-
function
|
|
9777
|
+
function E3(z) {
|
|
9778
9778
|
return n(z) === "Float64Array";
|
|
9779
9779
|
}
|
|
9780
|
-
r22.isFloat64Array =
|
|
9780
|
+
r22.isFloat64Array = E3;
|
|
9781
9781
|
function K3(z) {
|
|
9782
9782
|
return n(z) === "BigInt64Array";
|
|
9783
9783
|
}
|
|
@@ -9854,10 +9854,10 @@
|
|
|
9854
9854
|
return u(z) === "[object Set Iterator]";
|
|
9855
9855
|
}
|
|
9856
9856
|
r22.isSetIterator = R;
|
|
9857
|
-
function
|
|
9857
|
+
function D3(z) {
|
|
9858
9858
|
return u(z) === "[object Generator]";
|
|
9859
9859
|
}
|
|
9860
|
-
r22.isGeneratorObject =
|
|
9860
|
+
r22.isGeneratorObject = D3;
|
|
9861
9861
|
function b(z) {
|
|
9862
9862
|
return u(z) === "[object WebAssembly.Module]";
|
|
9863
9863
|
}
|
|
@@ -9937,7 +9937,7 @@
|
|
|
9937
9937
|
return R;
|
|
9938
9938
|
}
|
|
9939
9939
|
}), m = $3[V]; V < P3; m = $3[++V])
|
|
9940
|
-
k(m) || !
|
|
9940
|
+
k(m) || !E3(m) ? p3 += " " + m : p3 += " " + o(m);
|
|
9941
9941
|
return p3;
|
|
9942
9942
|
}, r22.deprecate = function(L3, j) {
|
|
9943
9943
|
if (typeof he$2 < "u" && he$2.noDeprecation === true)
|
|
@@ -10045,20 +10045,20 @@
|
|
|
10045
10045
|
if (oe2(j))
|
|
10046
10046
|
return g(j);
|
|
10047
10047
|
}
|
|
10048
|
-
var
|
|
10048
|
+
var D3 = "", b = false, x = ["{", "}"];
|
|
10049
10049
|
if (B(j) && (b = true, x = ["[", "]"]), ee(j)) {
|
|
10050
10050
|
var _ = j.name ? ": " + j.name : "";
|
|
10051
|
-
|
|
10051
|
+
D3 = " [Function" + _ + "]";
|
|
10052
10052
|
}
|
|
10053
|
-
if (H3(j) && (
|
|
10054
|
-
return x[0] +
|
|
10053
|
+
if (H3(j) && (D3 = " " + RegExp.prototype.toString.call(j)), K3(j) && (D3 = " " + Date.prototype.toUTCString.call(j)), oe2(j) && (D3 = " " + g(j)), p3.length === 0 && (!b || j.length == 0))
|
|
10054
|
+
return x[0] + D3 + x[1];
|
|
10055
10055
|
if (V < 0)
|
|
10056
10056
|
return H3(j) ? L3.stylize(RegExp.prototype.toString.call(j), "regexp") : L3.stylize("[Object]", "special");
|
|
10057
10057
|
L3.seen.push(j);
|
|
10058
10058
|
var W;
|
|
10059
10059
|
return b ? W = S(L3, j, V, m, p3) : W = p3.map(function(re2) {
|
|
10060
10060
|
return T3(L3, j, V, m, re2, b);
|
|
10061
|
-
}), L3.seen.pop(), A(W,
|
|
10061
|
+
}), L3.seen.pop(), A(W, D3, x);
|
|
10062
10062
|
}
|
|
10063
10063
|
function h3(L3, j) {
|
|
10064
10064
|
if (q(j))
|
|
@@ -10087,20 +10087,20 @@
|
|
|
10087
10087
|
String(m),
|
|
10088
10088
|
true
|
|
10089
10089
|
)) : p3.push("");
|
|
10090
|
-
return P3.forEach(function(
|
|
10091
|
-
|
|
10090
|
+
return P3.forEach(function(D3) {
|
|
10091
|
+
D3.match(/^\d+$/) || p3.push(T3(
|
|
10092
10092
|
L3,
|
|
10093
10093
|
j,
|
|
10094
10094
|
V,
|
|
10095
10095
|
$3,
|
|
10096
|
-
|
|
10096
|
+
D3,
|
|
10097
10097
|
true
|
|
10098
10098
|
));
|
|
10099
10099
|
}), p3;
|
|
10100
10100
|
}
|
|
10101
10101
|
function T3(L3, j, V, $3, P3, p3) {
|
|
10102
|
-
var m, R,
|
|
10103
|
-
if (
|
|
10102
|
+
var m, R, D3;
|
|
10103
|
+
if (D3 = Object.getOwnPropertyDescriptor(j, P3) || { value: j[P3] }, D3.get ? D3.set ? R = L3.stylize("[Getter/Setter]", "special") : R = L3.stylize("[Getter]", "special") : D3.set && (R = L3.stylize("[Setter]", "special")), de2($3, P3) || (m = "[" + P3 + "]"), R || (L3.seen.indexOf(D3.value) < 0 ? (k(V) ? R = c3(L3, D3.value, null) : R = c3(L3, D3.value, V - 1), R.indexOf(`
|
|
10104
10104
|
`) > -1 && (p3 ? R = R.split(`
|
|
10105
10105
|
`).map(function(b) {
|
|
10106
10106
|
return " " + b;
|
|
@@ -10160,19 +10160,19 @@
|
|
|
10160
10160
|
}
|
|
10161
10161
|
r22.isUndefined = q;
|
|
10162
10162
|
function H3(L3) {
|
|
10163
|
-
return
|
|
10163
|
+
return E3(L3) && ce2(L3) === "[object RegExp]";
|
|
10164
10164
|
}
|
|
10165
10165
|
r22.isRegExp = H3, r22.types.isRegExp = H3;
|
|
10166
|
-
function
|
|
10166
|
+
function E3(L3) {
|
|
10167
10167
|
return typeof L3 == "object" && L3 !== null;
|
|
10168
10168
|
}
|
|
10169
|
-
r22.isObject =
|
|
10169
|
+
r22.isObject = E3;
|
|
10170
10170
|
function K3(L3) {
|
|
10171
|
-
return
|
|
10171
|
+
return E3(L3) && ce2(L3) === "[object Date]";
|
|
10172
10172
|
}
|
|
10173
10173
|
r22.isDate = K3, r22.types.isDate = K3;
|
|
10174
10174
|
function oe2(L3) {
|
|
10175
|
-
return
|
|
10175
|
+
return E3(L3) && (ce2(L3) === "[object Error]" || L3 instanceof Error);
|
|
10176
10176
|
}
|
|
10177
10177
|
r22.isError = oe2, r22.types.isNativeError = oe2;
|
|
10178
10178
|
function ee(L3) {
|
|
@@ -10215,7 +10215,7 @@
|
|
|
10215
10215
|
r22.log = function() {
|
|
10216
10216
|
console.log("%s - %s", Y(), r22.format.apply(r22, arguments));
|
|
10217
10217
|
}, r22.inherits = wt$1(), r22._extend = function(L3, j) {
|
|
10218
|
-
if (!j || !
|
|
10218
|
+
if (!j || !E3(j)) return L3;
|
|
10219
10219
|
for (var V = Object.keys(j), $3 = V.length; $3--; )
|
|
10220
10220
|
L3[V[$3]] = j[V[$3]];
|
|
10221
10221
|
return L3;
|
|
@@ -10239,17 +10239,17 @@
|
|
|
10239
10239
|
}), V;
|
|
10240
10240
|
}
|
|
10241
10241
|
function V() {
|
|
10242
|
-
for (var $3, P3, p3 = new Promise(function(
|
|
10243
|
-
$3 =
|
|
10242
|
+
for (var $3, P3, p3 = new Promise(function(D3, b) {
|
|
10243
|
+
$3 = D3, P3 = b;
|
|
10244
10244
|
}), m = [], R = 0; R < arguments.length; R++)
|
|
10245
10245
|
m.push(arguments[R]);
|
|
10246
|
-
m.push(function(
|
|
10247
|
-
|
|
10246
|
+
m.push(function(D3, b) {
|
|
10247
|
+
D3 ? P3(D3) : $3(b);
|
|
10248
10248
|
});
|
|
10249
10249
|
try {
|
|
10250
10250
|
j.apply(this, m);
|
|
10251
|
-
} catch (
|
|
10252
|
-
P3(
|
|
10251
|
+
} catch (D3) {
|
|
10252
|
+
P3(D3);
|
|
10253
10253
|
}
|
|
10254
10254
|
return p3;
|
|
10255
10255
|
}
|
|
@@ -10638,8 +10638,8 @@
|
|
|
10638
10638
|
function N3(P3, p3, m) {
|
|
10639
10639
|
e = e || Ct$3(), P3 = P3 || {}, typeof m != "boolean" && (m = p3 instanceof e), this.objectMode = !!P3.objectMode, m && (this.objectMode = this.objectMode || !!P3.writableObjectMode), this.highWaterMark = c3(this, P3, "writableHighWaterMark", m), this.finalCalled = false, this.needDrain = false, this.ending = false, this.ended = false, this.finished = false, this.destroyed = false;
|
|
10640
10640
|
var R = P3.decodeStrings === false;
|
|
10641
|
-
this.decodeStrings = !R, this.defaultEncoding = P3.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(
|
|
10642
|
-
se(p3,
|
|
10641
|
+
this.decodeStrings = !R, this.defaultEncoding = P3.defaultEncoding || "utf8", this.length = 0, this.writing = false, this.corked = 0, this.sync = true, this.bufferProcessing = false, this.onwrite = function(D3) {
|
|
10642
|
+
se(p3, D3);
|
|
10643
10643
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = false, this.errorEmitted = false, this.emitClose = P3.emitClose !== false, this.autoDestroy = !!P3.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new r22(this);
|
|
10644
10644
|
}
|
|
10645
10645
|
N3.prototype.getBuffer = function() {
|
|
@@ -10673,17 +10673,17 @@
|
|
|
10673
10673
|
H3.prototype.pipe = function() {
|
|
10674
10674
|
C(this, new A());
|
|
10675
10675
|
};
|
|
10676
|
-
function
|
|
10676
|
+
function E3(P3, p3) {
|
|
10677
10677
|
var m = new k();
|
|
10678
10678
|
C(P3, m), he$2.nextTick(p3, m);
|
|
10679
10679
|
}
|
|
10680
10680
|
function K3(P3, p3, m, R) {
|
|
10681
|
-
var
|
|
10682
|
-
return m === null ?
|
|
10681
|
+
var D3;
|
|
10682
|
+
return m === null ? D3 = new w() : typeof m != "string" && !p3.objectMode && (D3 = new g("chunk", ["string", "Buffer"], m)), D3 ? (C(P3, D3), he$2.nextTick(R, D3), false) : true;
|
|
10683
10683
|
}
|
|
10684
10684
|
H3.prototype.write = function(P3, p3, m) {
|
|
10685
|
-
var R = this._writableState,
|
|
10686
|
-
return b && !i3.isBuffer(P3) && (P3 = o(P3)), typeof p3 == "function" && (m = p3, p3 = null), b ? p3 = "buffer" : p3 || (p3 = R.defaultEncoding), typeof m != "function" && (m = F3), R.ending ?
|
|
10685
|
+
var R = this._writableState, D3 = false, b = !R.objectMode && a(P3);
|
|
10686
|
+
return b && !i3.isBuffer(P3) && (P3 = o(P3)), typeof p3 == "function" && (m = p3, p3 = null), b ? p3 = "buffer" : p3 || (p3 = R.defaultEncoding), typeof m != "function" && (m = F3), R.ending ? E3(this, m) : (b || K3(this, R, P3, m)) && (R.pendingcb++, D3 = ee(this, R, b, P3, p3, m)), D3;
|
|
10687
10687
|
}, H3.prototype.cork = function() {
|
|
10688
10688
|
this._writableState.corked++;
|
|
10689
10689
|
}, H3.prototype.uncork = function() {
|
|
@@ -10713,10 +10713,10 @@
|
|
|
10713
10713
|
return this._writableState.highWaterMark;
|
|
10714
10714
|
}
|
|
10715
10715
|
});
|
|
10716
|
-
function ee(P3, p3, m, R,
|
|
10716
|
+
function ee(P3, p3, m, R, D3, b) {
|
|
10717
10717
|
if (!m) {
|
|
10718
|
-
var x = oe2(p3, R,
|
|
10719
|
-
R !== x && (m = true,
|
|
10718
|
+
var x = oe2(p3, R, D3);
|
|
10719
|
+
R !== x && (m = true, D3 = "buffer", R = x);
|
|
10720
10720
|
}
|
|
10721
10721
|
var _ = p3.objectMode ? 1 : R.length;
|
|
10722
10722
|
p3.length += _;
|
|
@@ -10725,31 +10725,31 @@
|
|
|
10725
10725
|
var re2 = p3.lastBufferedRequest;
|
|
10726
10726
|
p3.lastBufferedRequest = {
|
|
10727
10727
|
chunk: R,
|
|
10728
|
-
encoding:
|
|
10728
|
+
encoding: D3,
|
|
10729
10729
|
isBuf: m,
|
|
10730
10730
|
callback: b,
|
|
10731
10731
|
next: null
|
|
10732
10732
|
}, re2 ? re2.next = p3.lastBufferedRequest : p3.bufferedRequest = p3.lastBufferedRequest, p3.bufferedRequestCount += 1;
|
|
10733
10733
|
} else
|
|
10734
|
-
Q3(P3, p3, false, _, R,
|
|
10734
|
+
Q3(P3, p3, false, _, R, D3, b);
|
|
10735
10735
|
return W;
|
|
10736
10736
|
}
|
|
10737
|
-
function Q3(P3, p3, m, R,
|
|
10738
|
-
p3.writelen = R, p3.writecb = x, p3.writing = true, p3.sync = true, p3.destroyed ? p3.onwrite(new B("write")) : m ? P3._writev(
|
|
10737
|
+
function Q3(P3, p3, m, R, D3, b, x) {
|
|
10738
|
+
p3.writelen = R, p3.writecb = x, p3.writing = true, p3.sync = true, p3.destroyed ? p3.onwrite(new B("write")) : m ? P3._writev(D3, p3.onwrite) : P3._write(D3, b, p3.onwrite), p3.sync = false;
|
|
10739
10739
|
}
|
|
10740
|
-
function ce2(P3, p3, m, R,
|
|
10741
|
-
--p3.pendingcb, m ? (he$2.nextTick(
|
|
10740
|
+
function ce2(P3, p3, m, R, D3) {
|
|
10741
|
+
--p3.pendingcb, m ? (he$2.nextTick(D3, R), he$2.nextTick(j, P3, p3), P3._writableState.errorEmitted = true, C(P3, R)) : (D3(R), P3._writableState.errorEmitted = true, C(P3, R), j(P3, p3));
|
|
10742
10742
|
}
|
|
10743
10743
|
function ae2(P3) {
|
|
10744
10744
|
P3.writing = false, P3.writecb = null, P3.length -= P3.writelen, P3.writelen = 0;
|
|
10745
10745
|
}
|
|
10746
10746
|
function se(P3, p3) {
|
|
10747
|
-
var m = P3._writableState, R = m.sync,
|
|
10748
|
-
if (typeof
|
|
10749
|
-
if (ae2(m), p3) ce2(P3, m, R, p3,
|
|
10747
|
+
var m = P3._writableState, R = m.sync, D3 = m.writecb;
|
|
10748
|
+
if (typeof D3 != "function") throw new T3();
|
|
10749
|
+
if (ae2(m), p3) ce2(P3, m, R, p3, D3);
|
|
10750
10750
|
else {
|
|
10751
10751
|
var b = te2(m) || P3.destroyed;
|
|
10752
|
-
!b && !m.corked && !m.bufferProcessing && m.bufferedRequest && J3(P3, m), R ? he$2.nextTick(Y, P3, m, b,
|
|
10752
|
+
!b && !m.corked && !m.bufferProcessing && m.bufferedRequest && J3(P3, m), R ? he$2.nextTick(Y, P3, m, b, D3) : Y(P3, m, b, D3);
|
|
10753
10753
|
}
|
|
10754
10754
|
}
|
|
10755
10755
|
function Y(P3, p3, m, R) {
|
|
@@ -10762,11 +10762,11 @@
|
|
|
10762
10762
|
p3.bufferProcessing = true;
|
|
10763
10763
|
var m = p3.bufferedRequest;
|
|
10764
10764
|
if (P3._writev && m && m.next) {
|
|
10765
|
-
var R = p3.bufferedRequestCount,
|
|
10765
|
+
var R = p3.bufferedRequestCount, D3 = new Array(R), b = p3.corkedRequestsFree;
|
|
10766
10766
|
b.entry = m;
|
|
10767
10767
|
for (var x = 0, _ = true; m; )
|
|
10768
|
-
|
|
10769
|
-
|
|
10768
|
+
D3[x] = m, m.isBuf || (_ = false), m = m.next, x += 1;
|
|
10769
|
+
D3.allBuffers = _, Q3(P3, p3, true, p3.length, D3, "", b.finish), p3.pendingcb++, p3.lastBufferedRequest = null, b.next ? (p3.corkedRequestsFree = b.next, b.next = null) : p3.corkedRequestsFree = new r22(p3), p3.bufferedRequestCount = 0;
|
|
10770
10770
|
} else {
|
|
10771
10771
|
for (; m; ) {
|
|
10772
10772
|
var W = m.chunk, re2 = m.encoding, X3 = m.callback, ne = p3.objectMode ? 1 : W.length;
|
|
@@ -10816,8 +10816,8 @@
|
|
|
10816
10816
|
function $3(P3, p3, m) {
|
|
10817
10817
|
var R = P3.entry;
|
|
10818
10818
|
for (P3.entry = null; R; ) {
|
|
10819
|
-
var
|
|
10820
|
-
p3.pendingcb--,
|
|
10819
|
+
var D3 = R.callback;
|
|
10820
|
+
p3.pendingcb--, D3(m), R = R.next;
|
|
10821
10821
|
}
|
|
10822
10822
|
p3.corkedRequestsFree.next = P3;
|
|
10823
10823
|
}
|
|
@@ -11199,9 +11199,9 @@
|
|
|
11199
11199
|
if (this[u])
|
|
11200
11200
|
return Promise.resolve(g(void 0, true));
|
|
11201
11201
|
if (this[h3].destroyed)
|
|
11202
|
-
return new Promise(function(
|
|
11202
|
+
return new Promise(function(E3, K3) {
|
|
11203
11203
|
he$2.nextTick(function() {
|
|
11204
|
-
C[a] ? K3(C[a]) :
|
|
11204
|
+
C[a] ? K3(C[a]) : E3(g(void 0, true));
|
|
11205
11205
|
});
|
|
11206
11206
|
});
|
|
11207
11207
|
var N3 = this[f3], q;
|
|
@@ -11245,9 +11245,9 @@
|
|
|
11245
11245
|
value: C._readableState.endEmitted,
|
|
11246
11246
|
writable: true
|
|
11247
11247
|
}), e(F3, c3, {
|
|
11248
|
-
value: function(H3,
|
|
11248
|
+
value: function(H3, E3) {
|
|
11249
11249
|
var K3 = N3[h3].read();
|
|
11250
|
-
K3 ? (N3[f3] = null, N3[s] = null, N3[o] = null, H3(g(K3, false))) : (N3[s] = H3, N3[o] =
|
|
11250
|
+
K3 ? (N3[f3] = null, N3[s] = null, N3[o] = null, H3(g(K3, false))) : (N3[s] = H3, N3[o] = E3);
|
|
11251
11251
|
},
|
|
11252
11252
|
writable: true
|
|
11253
11253
|
}), F3));
|
|
@@ -11257,8 +11257,8 @@
|
|
|
11257
11257
|
H3 !== null && (N3[f3] = null, N3[s] = null, N3[o] = null, H3(q)), N3[a] = q;
|
|
11258
11258
|
return;
|
|
11259
11259
|
}
|
|
11260
|
-
var
|
|
11261
|
-
|
|
11260
|
+
var E3 = N3[s];
|
|
11261
|
+
E3 !== null && (N3[f3] = null, N3[s] = null, N3[o] = null, E3(g(void 0, true))), N3[u] = true;
|
|
11262
11262
|
}), C.on("readable", T3.bind(null, N3)), N3;
|
|
11263
11263
|
};
|
|
11264
11264
|
return zn$3 = k, zn$3;
|
|
@@ -11272,9 +11272,9 @@
|
|
|
11272
11272
|
var Wn$2, Ys$1;
|
|
11273
11273
|
function ia$2() {
|
|
11274
11274
|
if (Ys$1) return Wn$2;
|
|
11275
|
-
Ys$1 = 1, Wn$2 =
|
|
11275
|
+
Ys$1 = 1, Wn$2 = E3;
|
|
11276
11276
|
var r22;
|
|
11277
|
-
|
|
11277
|
+
E3.ReadableState = H3, yi$2().EventEmitter;
|
|
11278
11278
|
var e = function(x, _) {
|
|
11279
11279
|
return x.listeners(_).length;
|
|
11280
11280
|
}, t = zo$2(), n = Dr$1.Buffer, i3 = (typeof We$2 < "u" ? We$2 : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
@@ -11289,7 +11289,7 @@
|
|
|
11289
11289
|
a && a.debuglog ? u = a.debuglog("stream") : u = function() {
|
|
11290
11290
|
};
|
|
11291
11291
|
var f3 = zl$2(), c3 = ta$1(), h3 = ra$2(), g = h3.getHighWaterMark, S = Rt$3().codes, T3 = S.ERR_INVALID_ARG_TYPE, A = S.ERR_STREAM_PUSH_AFTER_EOF, B = S.ERR_METHOD_NOT_IMPLEMENTED, w = S.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, k, I3, C;
|
|
11292
|
-
wt$1()(
|
|
11292
|
+
wt$1()(E3, t);
|
|
11293
11293
|
var F3 = c3.errorOrDestroy, N3 = ["error", "close", "destroy", "pause", "resume"];
|
|
11294
11294
|
function q(b, x, _) {
|
|
11295
11295
|
if (typeof b.prependListener == "function") return b.prependListener(x, _);
|
|
@@ -11298,12 +11298,12 @@
|
|
|
11298
11298
|
function H3(b, x, _) {
|
|
11299
11299
|
r22 = r22 || Ct$3(), b = b || {}, typeof _ != "boolean" && (_ = x instanceof r22), this.objectMode = !!b.objectMode, _ && (this.objectMode = this.objectMode || !!b.readableObjectMode), this.highWaterMark = g(this, b, "readableHighWaterMark", _), this.buffer = new f3(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = false, this.endEmitted = false, this.reading = false, this.sync = true, this.needReadable = false, this.emittedReadable = false, this.readableListening = false, this.resumeScheduled = false, this.paused = true, this.emitClose = b.emitClose !== false, this.autoDestroy = !!b.autoDestroy, this.destroyed = false, this.defaultEncoding = b.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = false, this.decoder = null, this.encoding = null, b.encoding && (k || (k = ui$2().StringDecoder), this.decoder = new k(b.encoding), this.encoding = b.encoding);
|
|
11300
11300
|
}
|
|
11301
|
-
function
|
|
11302
|
-
if (r22 = r22 || Ct$3(), !(this instanceof
|
|
11301
|
+
function E3(b) {
|
|
11302
|
+
if (r22 = r22 || Ct$3(), !(this instanceof E3)) return new E3(b);
|
|
11303
11303
|
var x = this instanceof r22;
|
|
11304
11304
|
this._readableState = new H3(b, this, x), this.readable = true, b && (typeof b.read == "function" && (this._read = b.read), typeof b.destroy == "function" && (this._destroy = b.destroy)), t.call(this);
|
|
11305
11305
|
}
|
|
11306
|
-
Object.defineProperty(
|
|
11306
|
+
Object.defineProperty(E3.prototype, "destroyed", {
|
|
11307
11307
|
// making it explicit this property is not enumerable
|
|
11308
11308
|
// because otherwise some prototype manipulation in
|
|
11309
11309
|
// userland will fail
|
|
@@ -11314,12 +11314,12 @@
|
|
|
11314
11314
|
set: function(x) {
|
|
11315
11315
|
this._readableState && (this._readableState.destroyed = x);
|
|
11316
11316
|
}
|
|
11317
|
-
}),
|
|
11317
|
+
}), E3.prototype.destroy = c3.destroy, E3.prototype._undestroy = c3.undestroy, E3.prototype._destroy = function(b, x) {
|
|
11318
11318
|
x(b);
|
|
11319
|
-
},
|
|
11319
|
+
}, E3.prototype.push = function(b, x) {
|
|
11320
11320
|
var _ = this._readableState, W;
|
|
11321
11321
|
return _.objectMode ? W = true : typeof b == "string" && (x = x || _.defaultEncoding, x !== _.encoding && (b = n.from(b, x), x = ""), W = true), K3(this, b, x, false, W);
|
|
11322
|
-
},
|
|
11322
|
+
}, E3.prototype.unshift = function(b) {
|
|
11323
11323
|
return K3(this, b, null, true, false);
|
|
11324
11324
|
};
|
|
11325
11325
|
function K3(b, x, _, W, re2) {
|
|
@@ -11352,9 +11352,9 @@
|
|
|
11352
11352
|
var _;
|
|
11353
11353
|
return !o(x) && typeof x != "string" && x !== void 0 && !b.objectMode && (_ = new T3("chunk", ["string", "Buffer", "Uint8Array"], x)), _;
|
|
11354
11354
|
}
|
|
11355
|
-
|
|
11355
|
+
E3.prototype.isPaused = function() {
|
|
11356
11356
|
return this._readableState.flowing === false;
|
|
11357
|
-
},
|
|
11357
|
+
}, E3.prototype.setEncoding = function(b) {
|
|
11358
11358
|
k || (k = ui$2().StringDecoder);
|
|
11359
11359
|
var x = new k(b);
|
|
11360
11360
|
this._readableState.decoder = x, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
@@ -11369,7 +11369,7 @@
|
|
|
11369
11369
|
function ae2(b, x) {
|
|
11370
11370
|
return b <= 0 || x.length === 0 && x.ended ? 0 : x.objectMode ? 1 : b !== b ? x.flowing && x.length ? x.buffer.head.data.length : x.length : (b > x.highWaterMark && (x.highWaterMark = ce2(b)), b <= x.length ? b : x.ended ? x.length : (x.needReadable = true, 0));
|
|
11371
11371
|
}
|
|
11372
|
-
|
|
11372
|
+
E3.prototype.read = function(b) {
|
|
11373
11373
|
u("read", b), b = parseInt(b, 10);
|
|
11374
11374
|
var x = this._readableState, _ = b;
|
|
11375
11375
|
if (b !== 0 && (x.emittedReadable = false), b === 0 && x.needReadable && ((x.highWaterMark !== 0 ? x.length >= x.highWaterMark : x.length > 0) || x.ended))
|
|
@@ -11409,9 +11409,9 @@
|
|
|
11409
11409
|
}
|
|
11410
11410
|
x.readingMore = false;
|
|
11411
11411
|
}
|
|
11412
|
-
|
|
11412
|
+
E3.prototype._read = function(b) {
|
|
11413
11413
|
F3(this, new B("_read()"));
|
|
11414
|
-
},
|
|
11414
|
+
}, E3.prototype.pipe = function(b, x) {
|
|
11415
11415
|
var _ = this, W = this._readableState;
|
|
11416
11416
|
switch (W.pipesCount) {
|
|
11417
11417
|
case 0:
|
|
@@ -11443,7 +11443,7 @@
|
|
|
11443
11443
|
function He2(lt2) {
|
|
11444
11444
|
u("ondata");
|
|
11445
11445
|
var Le2 = b.write(lt2);
|
|
11446
|
-
u("dest.write", Le2), Le2 === false && ((W.pipesCount === 1 && W.pipes === b || W.pipesCount > 1 &&
|
|
11446
|
+
u("dest.write", Le2), Le2 === false && ((W.pipesCount === 1 && W.pipes === b || W.pipesCount > 1 && D3(W.pipes, b) !== -1) && !Be2 && (u("false write response, pause", W.awaitDrain), W.awaitDrain++), _.pause());
|
|
11447
11447
|
}
|
|
11448
11448
|
function ze2(lt2) {
|
|
11449
11449
|
u("onerror", lt2), st2(), b.removeListener("error", ze2), e(b, "error") === 0 && F3(b, lt2);
|
|
@@ -11468,7 +11468,7 @@
|
|
|
11468
11468
|
u("pipeOnDrain", _.awaitDrain), _.awaitDrain && _.awaitDrain--, _.awaitDrain === 0 && e(b, "data") && (_.flowing = true, P3(b));
|
|
11469
11469
|
};
|
|
11470
11470
|
}
|
|
11471
|
-
|
|
11471
|
+
E3.prototype.unpipe = function(b) {
|
|
11472
11472
|
var x = this._readableState, _ = {
|
|
11473
11473
|
hasUnpiped: false
|
|
11474
11474
|
};
|
|
@@ -11483,15 +11483,15 @@
|
|
|
11483
11483
|
});
|
|
11484
11484
|
return this;
|
|
11485
11485
|
}
|
|
11486
|
-
var ne =
|
|
11486
|
+
var ne = D3(x.pipes, b);
|
|
11487
11487
|
return ne === -1 ? this : (x.pipes.splice(ne, 1), x.pipesCount -= 1, x.pipesCount === 1 && (x.pipes = x.pipes[0]), b.emit("unpipe", this, _), this);
|
|
11488
|
-
},
|
|
11488
|
+
}, E3.prototype.on = function(b, x) {
|
|
11489
11489
|
var _ = t.prototype.on.call(this, b, x), W = this._readableState;
|
|
11490
11490
|
return b === "data" ? (W.readableListening = this.listenerCount("readable") > 0, W.flowing !== false && this.resume()) : b === "readable" && !W.endEmitted && !W.readableListening && (W.readableListening = W.needReadable = true, W.flowing = false, W.emittedReadable = false, u("on readable", W.length, W.reading), W.length ? Y(this) : W.reading || he$2.nextTick(j, this)), _;
|
|
11491
|
-
},
|
|
11491
|
+
}, E3.prototype.addListener = E3.prototype.on, E3.prototype.removeListener = function(b, x) {
|
|
11492
11492
|
var _ = t.prototype.removeListener.call(this, b, x);
|
|
11493
11493
|
return b === "readable" && he$2.nextTick(L3, this), _;
|
|
11494
|
-
},
|
|
11494
|
+
}, E3.prototype.removeAllListeners = function(b) {
|
|
11495
11495
|
var x = t.prototype.removeAllListeners.apply(this, arguments);
|
|
11496
11496
|
return (b === "readable" || b === void 0) && he$2.nextTick(L3, this), x;
|
|
11497
11497
|
};
|
|
@@ -11502,7 +11502,7 @@
|
|
|
11502
11502
|
function j(b) {
|
|
11503
11503
|
u("readable nexttick read 0"), b.read(0);
|
|
11504
11504
|
}
|
|
11505
|
-
|
|
11505
|
+
E3.prototype.resume = function() {
|
|
11506
11506
|
var b = this._readableState;
|
|
11507
11507
|
return b.flowing || (u("resume"), b.flowing = !b.readableListening, V(this, b)), b.paused = false, this;
|
|
11508
11508
|
};
|
|
@@ -11512,14 +11512,14 @@
|
|
|
11512
11512
|
function $3(b, x) {
|
|
11513
11513
|
u("resume", x.reading), x.reading || b.read(0), x.resumeScheduled = false, b.emit("resume"), P3(b), x.flowing && !x.reading && b.read(0);
|
|
11514
11514
|
}
|
|
11515
|
-
|
|
11515
|
+
E3.prototype.pause = function() {
|
|
11516
11516
|
return u("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== false && (u("pause"), this._readableState.flowing = false, this.emit("pause")), this._readableState.paused = true, this;
|
|
11517
11517
|
};
|
|
11518
11518
|
function P3(b) {
|
|
11519
11519
|
var x = b._readableState;
|
|
11520
11520
|
for (u("flow", x.flowing); x.flowing && b.read() !== null; ) ;
|
|
11521
11521
|
}
|
|
11522
|
-
|
|
11522
|
+
E3.prototype.wrap = function(b) {
|
|
11523
11523
|
var x = this, _ = this._readableState, W = false;
|
|
11524
11524
|
b.on("end", function() {
|
|
11525
11525
|
if (u("wrapped end"), _.decoder && !_.ended) {
|
|
@@ -11544,9 +11544,9 @@
|
|
|
11544
11544
|
return this._read = function(ne) {
|
|
11545
11545
|
u("wrapped _read", ne), W && (W = false, b.resume());
|
|
11546
11546
|
}, this;
|
|
11547
|
-
}, typeof Symbol == "function" && (
|
|
11547
|
+
}, typeof Symbol == "function" && (E3.prototype[Symbol.asyncIterator] = function() {
|
|
11548
11548
|
return I3 === void 0 && (I3 = Jl$1()), I3(this);
|
|
11549
|
-
}), Object.defineProperty(
|
|
11549
|
+
}), Object.defineProperty(E3.prototype, "readableHighWaterMark", {
|
|
11550
11550
|
// making it explicit this property is not enumerable
|
|
11551
11551
|
// because otherwise some prototype manipulation in
|
|
11552
11552
|
// userland will fail
|
|
@@ -11554,7 +11554,7 @@
|
|
|
11554
11554
|
get: function() {
|
|
11555
11555
|
return this._readableState.highWaterMark;
|
|
11556
11556
|
}
|
|
11557
|
-
}), Object.defineProperty(
|
|
11557
|
+
}), Object.defineProperty(E3.prototype, "readableBuffer", {
|
|
11558
11558
|
// making it explicit this property is not enumerable
|
|
11559
11559
|
// because otherwise some prototype manipulation in
|
|
11560
11560
|
// userland will fail
|
|
@@ -11562,7 +11562,7 @@
|
|
|
11562
11562
|
get: function() {
|
|
11563
11563
|
return this._readableState && this._readableState.buffer;
|
|
11564
11564
|
}
|
|
11565
|
-
}), Object.defineProperty(
|
|
11565
|
+
}), Object.defineProperty(E3.prototype, "readableFlowing", {
|
|
11566
11566
|
// making it explicit this property is not enumerable
|
|
11567
11567
|
// because otherwise some prototype manipulation in
|
|
11568
11568
|
// userland will fail
|
|
@@ -11573,7 +11573,7 @@
|
|
|
11573
11573
|
set: function(x) {
|
|
11574
11574
|
this._readableState && (this._readableState.flowing = x);
|
|
11575
11575
|
}
|
|
11576
|
-
}),
|
|
11576
|
+
}), E3._fromList = p3, Object.defineProperty(E3.prototype, "readableLength", {
|
|
11577
11577
|
// making it explicit this property is not enumerable
|
|
11578
11578
|
// because otherwise some prototype manipulation in
|
|
11579
11579
|
// userland will fail
|
|
@@ -11597,10 +11597,10 @@
|
|
|
11597
11597
|
(!_ || _.autoDestroy && _.finished) && x.destroy();
|
|
11598
11598
|
}
|
|
11599
11599
|
}
|
|
11600
|
-
typeof Symbol == "function" && (
|
|
11601
|
-
return C === void 0 && (C = Kl$2()), C(
|
|
11600
|
+
typeof Symbol == "function" && (E3.from = function(b, x) {
|
|
11601
|
+
return C === void 0 && (C = Kl$2()), C(E3, b, x);
|
|
11602
11602
|
});
|
|
11603
|
-
function
|
|
11603
|
+
function D3(b, x) {
|
|
11604
11604
|
for (var _ = 0, W = b.length; _ < W; _++)
|
|
11605
11605
|
if (b[_] === x) return _;
|
|
11606
11606
|
return -1;
|
|
@@ -11824,7 +11824,7 @@
|
|
|
11824
11824
|
if (!(this instanceof n))
|
|
11825
11825
|
return new n(p3, m);
|
|
11826
11826
|
var R = this;
|
|
11827
|
-
s(R), R.q = R.c = "", R.bufferCheckPosition = e.MAX_BUFFER_LENGTH, R.opt = m || {}, R.opt.lowercase = R.opt.lowercase || R.opt.lowercasetags, R.looseCase = R.opt.lowercase ? "toLowerCase" : "toUpperCase", R.tags = [], R.closed = R.closedRoot = R.sawRoot = false, R.tag = R.error = null, R.strict = !!p3, R.noscript = !!(p3 || R.opt.noscript), R.state =
|
|
11827
|
+
s(R), R.q = R.c = "", R.bufferCheckPosition = e.MAX_BUFFER_LENGTH, R.opt = m || {}, R.opt.lowercase = R.opt.lowercase || R.opt.lowercasetags, R.looseCase = R.opt.lowercase ? "toLowerCase" : "toUpperCase", R.tags = [], R.closed = R.closedRoot = R.sawRoot = false, R.tag = R.error = null, R.strict = !!p3, R.noscript = !!(p3 || R.opt.noscript), R.state = E3.BEGIN, R.strictEntities = R.opt.strictEntities, R.ENTITIES = R.strictEntities ? Object.create(e.XML_ENTITIES) : Object.create(e.ENTITIES), R.attribList = [], R.opt.xmlns && (R.ns = Object.create(A)), R.opt.unquotedAttributeValues === void 0 && (R.opt.unquotedAttributeValues = !p3), R.trackPosition = R.opt.position !== false, R.trackPosition && (R.position = R.line = R.column = 0), oe2(R, "onready");
|
|
11828
11828
|
}
|
|
11829
11829
|
Object.create || (Object.create = function(p3) {
|
|
11830
11830
|
function m() {
|
|
@@ -11838,10 +11838,10 @@
|
|
|
11838
11838
|
return m;
|
|
11839
11839
|
});
|
|
11840
11840
|
function i3(p3) {
|
|
11841
|
-
for (var m = Math.max(e.MAX_BUFFER_LENGTH, 10), R = 0,
|
|
11842
|
-
var x = p3[t[
|
|
11841
|
+
for (var m = Math.max(e.MAX_BUFFER_LENGTH, 10), R = 0, D3 = 0, b = t.length; D3 < b; D3++) {
|
|
11842
|
+
var x = p3[t[D3]].length;
|
|
11843
11843
|
if (x > m)
|
|
11844
|
-
switch (t[
|
|
11844
|
+
switch (t[D3]) {
|
|
11845
11845
|
case "textNode":
|
|
11846
11846
|
Q3(p3);
|
|
11847
11847
|
break;
|
|
@@ -11852,7 +11852,7 @@
|
|
|
11852
11852
|
ee(p3, "onscript", p3.script), p3.script = "";
|
|
11853
11853
|
break;
|
|
11854
11854
|
default:
|
|
11855
|
-
ae2(p3, "Max buffer length exceeded: " + t[
|
|
11855
|
+
ae2(p3, "Max buffer length exceeded: " + t[D3]);
|
|
11856
11856
|
}
|
|
11857
11857
|
R = Math.max(R, x);
|
|
11858
11858
|
}
|
|
@@ -11903,17 +11903,17 @@
|
|
|
11903
11903
|
var R = this;
|
|
11904
11904
|
this._parser.onend = function() {
|
|
11905
11905
|
R.emit("end");
|
|
11906
|
-
}, this._parser.onerror = function(
|
|
11907
|
-
R.emit("error",
|
|
11908
|
-
}, this._decoder = null, u.forEach(function(
|
|
11909
|
-
Object.defineProperty(R, "on" +
|
|
11906
|
+
}, this._parser.onerror = function(D3) {
|
|
11907
|
+
R.emit("error", D3), R._parser.error = null;
|
|
11908
|
+
}, this._decoder = null, u.forEach(function(D3) {
|
|
11909
|
+
Object.defineProperty(R, "on" + D3, {
|
|
11910
11910
|
get: function() {
|
|
11911
|
-
return R._parser["on" +
|
|
11911
|
+
return R._parser["on" + D3];
|
|
11912
11912
|
},
|
|
11913
11913
|
set: function(b) {
|
|
11914
11914
|
if (!b)
|
|
11915
|
-
return R.removeAllListeners(
|
|
11916
|
-
R.on(
|
|
11915
|
+
return R.removeAllListeners(D3), R._parser["on" + D3] = b, b;
|
|
11916
|
+
R.on(D3, b);
|
|
11917
11917
|
},
|
|
11918
11918
|
enumerable: true,
|
|
11919
11919
|
configurable: false
|
|
@@ -11938,8 +11938,8 @@
|
|
|
11938
11938
|
}, c3.prototype.on = function(p3, m) {
|
|
11939
11939
|
var R = this;
|
|
11940
11940
|
return !R._parser["on" + p3] && u.indexOf(p3) !== -1 && (R._parser["on" + p3] = function() {
|
|
11941
|
-
var
|
|
11942
|
-
|
|
11941
|
+
var D3 = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
11942
|
+
D3.splice(0, 0, p3), R.emit.apply(R, D3);
|
|
11943
11943
|
}), a.prototype.on.call(R, p3, m);
|
|
11944
11944
|
};
|
|
11945
11945
|
var h3 = "[CDATA[", g = "DOCTYPE", S = "http://www.w3.org/XML/1998/namespace", T3 = "http://www.w3.org/2000/xmlns/", A = { xml: S, xmlns: T3 }, B = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, w = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/, k = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/, I3 = /[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;
|
|
@@ -11959,79 +11959,79 @@
|
|
|
11959
11959
|
function H3(p3, m) {
|
|
11960
11960
|
return !q(p3, m);
|
|
11961
11961
|
}
|
|
11962
|
-
var
|
|
11962
|
+
var E3 = 0;
|
|
11963
11963
|
e.STATE = {
|
|
11964
|
-
BEGIN:
|
|
11964
|
+
BEGIN: E3++,
|
|
11965
11965
|
// leading byte order mark or whitespace
|
|
11966
|
-
BEGIN_WHITESPACE:
|
|
11966
|
+
BEGIN_WHITESPACE: E3++,
|
|
11967
11967
|
// leading whitespace
|
|
11968
|
-
TEXT:
|
|
11968
|
+
TEXT: E3++,
|
|
11969
11969
|
// general stuff
|
|
11970
|
-
TEXT_ENTITY:
|
|
11970
|
+
TEXT_ENTITY: E3++,
|
|
11971
11971
|
// & and such.
|
|
11972
|
-
OPEN_WAKA:
|
|
11972
|
+
OPEN_WAKA: E3++,
|
|
11973
11973
|
// <
|
|
11974
|
-
SGML_DECL:
|
|
11974
|
+
SGML_DECL: E3++,
|
|
11975
11975
|
// <!BLARG
|
|
11976
|
-
SGML_DECL_QUOTED:
|
|
11976
|
+
SGML_DECL_QUOTED: E3++,
|
|
11977
11977
|
// <!BLARG foo "bar
|
|
11978
|
-
DOCTYPE:
|
|
11978
|
+
DOCTYPE: E3++,
|
|
11979
11979
|
// <!DOCTYPE
|
|
11980
|
-
DOCTYPE_QUOTED:
|
|
11980
|
+
DOCTYPE_QUOTED: E3++,
|
|
11981
11981
|
// <!DOCTYPE "//blah
|
|
11982
|
-
DOCTYPE_DTD:
|
|
11982
|
+
DOCTYPE_DTD: E3++,
|
|
11983
11983
|
// <!DOCTYPE "//blah" [ ...
|
|
11984
|
-
DOCTYPE_DTD_QUOTED:
|
|
11984
|
+
DOCTYPE_DTD_QUOTED: E3++,
|
|
11985
11985
|
// <!DOCTYPE "//blah" [ "foo
|
|
11986
|
-
COMMENT_STARTING:
|
|
11986
|
+
COMMENT_STARTING: E3++,
|
|
11987
11987
|
// <!-
|
|
11988
|
-
COMMENT:
|
|
11988
|
+
COMMENT: E3++,
|
|
11989
11989
|
// <!--
|
|
11990
|
-
COMMENT_ENDING:
|
|
11990
|
+
COMMENT_ENDING: E3++,
|
|
11991
11991
|
// <!-- blah -
|
|
11992
|
-
COMMENT_ENDED:
|
|
11992
|
+
COMMENT_ENDED: E3++,
|
|
11993
11993
|
// <!-- blah --
|
|
11994
|
-
CDATA:
|
|
11994
|
+
CDATA: E3++,
|
|
11995
11995
|
// <![CDATA[ something
|
|
11996
|
-
CDATA_ENDING:
|
|
11996
|
+
CDATA_ENDING: E3++,
|
|
11997
11997
|
// ]
|
|
11998
|
-
CDATA_ENDING_2:
|
|
11998
|
+
CDATA_ENDING_2: E3++,
|
|
11999
11999
|
// ]]
|
|
12000
|
-
PROC_INST:
|
|
12000
|
+
PROC_INST: E3++,
|
|
12001
12001
|
// <?hi
|
|
12002
|
-
PROC_INST_BODY:
|
|
12002
|
+
PROC_INST_BODY: E3++,
|
|
12003
12003
|
// <?hi there
|
|
12004
|
-
PROC_INST_ENDING:
|
|
12004
|
+
PROC_INST_ENDING: E3++,
|
|
12005
12005
|
// <?hi "there" ?
|
|
12006
|
-
OPEN_TAG:
|
|
12006
|
+
OPEN_TAG: E3++,
|
|
12007
12007
|
// <strong
|
|
12008
|
-
OPEN_TAG_SLASH:
|
|
12008
|
+
OPEN_TAG_SLASH: E3++,
|
|
12009
12009
|
// <strong /
|
|
12010
|
-
ATTRIB:
|
|
12010
|
+
ATTRIB: E3++,
|
|
12011
12011
|
// <a
|
|
12012
|
-
ATTRIB_NAME:
|
|
12012
|
+
ATTRIB_NAME: E3++,
|
|
12013
12013
|
// <a foo
|
|
12014
|
-
ATTRIB_NAME_SAW_WHITE:
|
|
12014
|
+
ATTRIB_NAME_SAW_WHITE: E3++,
|
|
12015
12015
|
// <a foo _
|
|
12016
|
-
ATTRIB_VALUE:
|
|
12016
|
+
ATTRIB_VALUE: E3++,
|
|
12017
12017
|
// <a foo=
|
|
12018
|
-
ATTRIB_VALUE_QUOTED:
|
|
12018
|
+
ATTRIB_VALUE_QUOTED: E3++,
|
|
12019
12019
|
// <a foo="bar
|
|
12020
|
-
ATTRIB_VALUE_CLOSED:
|
|
12020
|
+
ATTRIB_VALUE_CLOSED: E3++,
|
|
12021
12021
|
// <a foo="bar"
|
|
12022
|
-
ATTRIB_VALUE_UNQUOTED:
|
|
12022
|
+
ATTRIB_VALUE_UNQUOTED: E3++,
|
|
12023
12023
|
// <a foo=bar
|
|
12024
|
-
ATTRIB_VALUE_ENTITY_Q:
|
|
12024
|
+
ATTRIB_VALUE_ENTITY_Q: E3++,
|
|
12025
12025
|
// <foo bar="""
|
|
12026
|
-
ATTRIB_VALUE_ENTITY_U:
|
|
12026
|
+
ATTRIB_VALUE_ENTITY_U: E3++,
|
|
12027
12027
|
// <foo bar="
|
|
12028
|
-
CLOSE_TAG:
|
|
12028
|
+
CLOSE_TAG: E3++,
|
|
12029
12029
|
// </a
|
|
12030
|
-
CLOSE_TAG_SAW_WHITE:
|
|
12030
|
+
CLOSE_TAG_SAW_WHITE: E3++,
|
|
12031
12031
|
// </a >
|
|
12032
|
-
SCRIPT:
|
|
12032
|
+
SCRIPT: E3++,
|
|
12033
12033
|
// <script> ...
|
|
12034
|
-
SCRIPT_ENDING:
|
|
12034
|
+
SCRIPT_ENDING: E3++
|
|
12035
12035
|
// <script> ... <
|
|
12036
12036
|
}, e.XML_ENTITIES = {
|
|
12037
12037
|
amp: "&",
|
|
@@ -12299,7 +12299,7 @@
|
|
|
12299
12299
|
});
|
|
12300
12300
|
for (var K3 in e.STATE)
|
|
12301
12301
|
e.STATE[e.STATE[K3]] = K3;
|
|
12302
|
-
|
|
12302
|
+
E3 = e.STATE;
|
|
12303
12303
|
function oe2(p3, m, R) {
|
|
12304
12304
|
p3[m] && p3[m](R);
|
|
12305
12305
|
}
|
|
@@ -12319,7 +12319,7 @@ Column: ` + p3.column + `
|
|
|
12319
12319
|
Char: ` + p3.c), m = new Error(m), p3.error = m, oe2(p3, "onerror", m), p3;
|
|
12320
12320
|
}
|
|
12321
12321
|
function se(p3) {
|
|
12322
|
-
return p3.sawRoot && !p3.closedRoot && Y(p3, "Unclosed root tag"), p3.state !==
|
|
12322
|
+
return p3.sawRoot && !p3.closedRoot && Y(p3, "Unclosed root tag"), p3.state !== E3.BEGIN && p3.state !== E3.BEGIN_WHITESPACE && p3.state !== E3.TEXT && ae2(p3, "Unexpected end"), Q3(p3), p3.c = "", p3.closed = true, oe2(p3, "onend"), n.call(p3, p3.strict, p3.opt), p3;
|
|
12323
12323
|
}
|
|
12324
12324
|
function Y(p3, m) {
|
|
12325
12325
|
if (typeof p3 != "object" || !(p3 instanceof n))
|
|
@@ -12332,7 +12332,7 @@ Char: ` + p3.c), m = new Error(m), p3.error = m, oe2(p3, "onerror", m), p3;
|
|
|
12332
12332
|
p3.opt.xmlns && (R.ns = m.ns), p3.attribList.length = 0, ee(p3, "onopentagstart", R);
|
|
12333
12333
|
}
|
|
12334
12334
|
function J3(p3, m) {
|
|
12335
|
-
var R = p3.indexOf(":"),
|
|
12335
|
+
var R = p3.indexOf(":"), D3 = R < 0 ? ["", p3] : p3.split(":"), b = D3[0], x = D3[1];
|
|
12336
12336
|
return m && p3 === "xmlns" && (b = "xmlns", x = ""), { prefix: b, local: x };
|
|
12337
12337
|
}
|
|
12338
12338
|
function te2(p3) {
|
|
@@ -12341,15 +12341,15 @@ Char: ` + p3.c), m = new Error(m), p3.error = m, oe2(p3, "onerror", m), p3;
|
|
|
12341
12341
|
return;
|
|
12342
12342
|
}
|
|
12343
12343
|
if (p3.opt.xmlns) {
|
|
12344
|
-
var m = J3(p3.attribName, true), R = m.prefix,
|
|
12344
|
+
var m = J3(p3.attribName, true), R = m.prefix, D3 = m.local;
|
|
12345
12345
|
if (R === "xmlns")
|
|
12346
|
-
if (
|
|
12346
|
+
if (D3 === "xml" && p3.attribValue !== S)
|
|
12347
12347
|
Y(
|
|
12348
12348
|
p3,
|
|
12349
12349
|
"xml: prefix must be bound to " + S + `
|
|
12350
12350
|
Actual: ` + p3.attribValue
|
|
12351
12351
|
);
|
|
12352
|
-
else if (
|
|
12352
|
+
else if (D3 === "xmlns" && p3.attribValue !== T3)
|
|
12353
12353
|
Y(
|
|
12354
12354
|
p3,
|
|
12355
12355
|
"xmlns: prefix must be bound to " + T3 + `
|
|
@@ -12357,7 +12357,7 @@ Actual: ` + p3.attribValue
|
|
|
12357
12357
|
);
|
|
12358
12358
|
else {
|
|
12359
12359
|
var b = p3.tag, x = p3.tags[p3.tags.length - 1] || p3;
|
|
12360
|
-
b.ns === x.ns && (b.ns = Object.create(x.ns)), b.ns[
|
|
12360
|
+
b.ns === x.ns && (b.ns = Object.create(x.ns)), b.ns[D3] = p3.attribValue;
|
|
12361
12361
|
}
|
|
12362
12362
|
p3.attribList.push([p3.attribName, p3.attribValue]);
|
|
12363
12363
|
} else
|
|
@@ -12369,8 +12369,8 @@ Actual: ` + p3.attribValue
|
|
|
12369
12369
|
}
|
|
12370
12370
|
function ie(p3, m) {
|
|
12371
12371
|
if (p3.opt.xmlns) {
|
|
12372
|
-
var R = p3.tag,
|
|
12373
|
-
R.prefix =
|
|
12372
|
+
var R = p3.tag, D3 = J3(p3.tagName);
|
|
12373
|
+
R.prefix = D3.prefix, R.local = D3.local, R.uri = R.ns[D3.prefix] || "", R.prefix && !R.uri && (Y(p3, "Unbound namespace prefix: " + JSON.stringify(p3.tagName)), R.uri = D3.prefix);
|
|
12374
12374
|
var b = p3.tags[p3.tags.length - 1] || p3;
|
|
12375
12375
|
R.ns && b.ns !== R.ns && Object.keys(R.ns).forEach(function(He2) {
|
|
12376
12376
|
ee(p3, "onopennamespace", {
|
|
@@ -12390,31 +12390,31 @@ Actual: ` + p3.attribValue
|
|
|
12390
12390
|
}
|
|
12391
12391
|
p3.attribList.length = 0;
|
|
12392
12392
|
}
|
|
12393
|
-
p3.tag.isSelfClosing = !!m, p3.sawRoot = true, p3.tags.push(p3.tag), ee(p3, "onopentag", p3.tag), m || (!p3.noscript && p3.tagName.toLowerCase() === "script" ? p3.state =
|
|
12393
|
+
p3.tag.isSelfClosing = !!m, p3.sawRoot = true, p3.tags.push(p3.tag), ee(p3, "onopentag", p3.tag), m || (!p3.noscript && p3.tagName.toLowerCase() === "script" ? p3.state = E3.SCRIPT : p3.state = E3.TEXT, p3.tag = null, p3.tagName = ""), p3.attribName = p3.attribValue = "", p3.attribList.length = 0;
|
|
12394
12394
|
}
|
|
12395
12395
|
function L3(p3) {
|
|
12396
12396
|
if (!p3.tagName) {
|
|
12397
|
-
Y(p3, "Weird empty close tag."), p3.textNode += "</>", p3.state =
|
|
12397
|
+
Y(p3, "Weird empty close tag."), p3.textNode += "</>", p3.state = E3.TEXT;
|
|
12398
12398
|
return;
|
|
12399
12399
|
}
|
|
12400
12400
|
if (p3.script) {
|
|
12401
12401
|
if (p3.tagName !== "script") {
|
|
12402
|
-
p3.script += "</" + p3.tagName + ">", p3.tagName = "", p3.state =
|
|
12402
|
+
p3.script += "</" + p3.tagName + ">", p3.tagName = "", p3.state = E3.SCRIPT;
|
|
12403
12403
|
return;
|
|
12404
12404
|
}
|
|
12405
12405
|
ee(p3, "onscript", p3.script), p3.script = "";
|
|
12406
12406
|
}
|
|
12407
12407
|
var m = p3.tags.length, R = p3.tagName;
|
|
12408
12408
|
p3.strict || (R = R[p3.looseCase]());
|
|
12409
|
-
for (var
|
|
12409
|
+
for (var D3 = R; m--; ) {
|
|
12410
12410
|
var b = p3.tags[m];
|
|
12411
|
-
if (b.name !==
|
|
12411
|
+
if (b.name !== D3)
|
|
12412
12412
|
Y(p3, "Unexpected close tag");
|
|
12413
12413
|
else
|
|
12414
12414
|
break;
|
|
12415
12415
|
}
|
|
12416
12416
|
if (m < 0) {
|
|
12417
|
-
Y(p3, "Unmatched closing tag: " + p3.tagName), p3.textNode += "</" + p3.tagName + ">", p3.state =
|
|
12417
|
+
Y(p3, "Unmatched closing tag: " + p3.tagName), p3.textNode += "</" + p3.tagName + ">", p3.state = E3.TEXT;
|
|
12418
12418
|
return;
|
|
12419
12419
|
}
|
|
12420
12420
|
p3.tagName = R;
|
|
@@ -12430,14 +12430,14 @@ Actual: ` + p3.attribValue
|
|
|
12430
12430
|
ee(p3, "onclosenamespace", { prefix: ne, uri: ye2 });
|
|
12431
12431
|
});
|
|
12432
12432
|
}
|
|
12433
|
-
m === 0 && (p3.closedRoot = true), p3.tagName = p3.attribValue = p3.attribName = "", p3.attribList.length = 0, p3.state =
|
|
12433
|
+
m === 0 && (p3.closedRoot = true), p3.tagName = p3.attribValue = p3.attribName = "", p3.attribList.length = 0, p3.state = E3.TEXT;
|
|
12434
12434
|
}
|
|
12435
12435
|
function j(p3) {
|
|
12436
|
-
var m = p3.entity, R = m.toLowerCase(),
|
|
12437
|
-
return p3.ENTITIES[m] ? p3.ENTITIES[m] : p3.ENTITIES[R] ? p3.ENTITIES[R] : (m = R, m.charAt(0) === "#" && (m.charAt(1) === "x" ? (m = m.slice(2),
|
|
12436
|
+
var m = p3.entity, R = m.toLowerCase(), D3, b = "";
|
|
12437
|
+
return p3.ENTITIES[m] ? p3.ENTITIES[m] : p3.ENTITIES[R] ? p3.ENTITIES[R] : (m = R, m.charAt(0) === "#" && (m.charAt(1) === "x" ? (m = m.slice(2), D3 = parseInt(m, 16), b = D3.toString(16)) : (m = m.slice(1), D3 = parseInt(m, 10), b = D3.toString(10))), m = m.replace(/^0+/, ""), isNaN(D3) || b.toLowerCase() !== m ? (Y(p3, "Invalid character entity"), "&" + p3.entity + ";") : String.fromCodePoint(D3));
|
|
12438
12438
|
}
|
|
12439
12439
|
function V(p3, m) {
|
|
12440
|
-
m === "<" ? (p3.state =
|
|
12440
|
+
m === "<" ? (p3.state = E3.OPEN_WAKA, p3.startTagPosition = p3.position) : C(m) || (Y(p3, "Non-whitespace before first tag."), p3.textNode = m, p3.state = E3.TEXT);
|
|
12441
12441
|
}
|
|
12442
12442
|
function $3(p3, m) {
|
|
12443
12443
|
var R = "";
|
|
@@ -12455,187 +12455,187 @@ Actual: ` + p3.attribValue
|
|
|
12455
12455
|
if (p3 === null)
|
|
12456
12456
|
return se(m);
|
|
12457
12457
|
typeof p3 == "object" && (p3 = p3.toString());
|
|
12458
|
-
for (var R = 0,
|
|
12459
|
-
switch (m.trackPosition && (m.position++,
|
|
12458
|
+
for (var R = 0, D3 = ""; D3 = $3(p3, R++), m.c = D3, !!D3; )
|
|
12459
|
+
switch (m.trackPosition && (m.position++, D3 === `
|
|
12460
12460
|
` ? (m.line++, m.column = 0) : m.column++), m.state) {
|
|
12461
|
-
case
|
|
12462
|
-
if (m.state =
|
|
12461
|
+
case E3.BEGIN:
|
|
12462
|
+
if (m.state = E3.BEGIN_WHITESPACE, D3 === "\uFEFF")
|
|
12463
12463
|
continue;
|
|
12464
|
-
V(m,
|
|
12464
|
+
V(m, D3);
|
|
12465
12465
|
continue;
|
|
12466
|
-
case
|
|
12467
|
-
V(m,
|
|
12466
|
+
case E3.BEGIN_WHITESPACE:
|
|
12467
|
+
V(m, D3);
|
|
12468
12468
|
continue;
|
|
12469
|
-
case
|
|
12469
|
+
case E3.TEXT:
|
|
12470
12470
|
if (m.sawRoot && !m.closedRoot) {
|
|
12471
|
-
for (var b = R - 1;
|
|
12472
|
-
|
|
12471
|
+
for (var b = R - 1; D3 && D3 !== "<" && D3 !== "&"; )
|
|
12472
|
+
D3 = $3(p3, R++), D3 && m.trackPosition && (m.position++, D3 === `
|
|
12473
12473
|
` ? (m.line++, m.column = 0) : m.column++);
|
|
12474
12474
|
m.textNode += p3.substring(b, R - 1);
|
|
12475
12475
|
}
|
|
12476
|
-
|
|
12476
|
+
D3 === "<" && !(m.sawRoot && m.closedRoot && !m.strict) ? (m.state = E3.OPEN_WAKA, m.startTagPosition = m.position) : (!C(D3) && (!m.sawRoot || m.closedRoot) && Y(m, "Text data outside of root node."), D3 === "&" ? m.state = E3.TEXT_ENTITY : m.textNode += D3);
|
|
12477
12477
|
continue;
|
|
12478
|
-
case
|
|
12479
|
-
|
|
12478
|
+
case E3.SCRIPT:
|
|
12479
|
+
D3 === "<" ? m.state = E3.SCRIPT_ENDING : m.script += D3;
|
|
12480
12480
|
continue;
|
|
12481
|
-
case
|
|
12482
|
-
|
|
12481
|
+
case E3.SCRIPT_ENDING:
|
|
12482
|
+
D3 === "/" ? m.state = E3.CLOSE_TAG : (m.script += "<" + D3, m.state = E3.SCRIPT);
|
|
12483
12483
|
continue;
|
|
12484
|
-
case
|
|
12485
|
-
if (
|
|
12486
|
-
m.state =
|
|
12487
|
-
else if (!C(
|
|
12488
|
-
m.state =
|
|
12489
|
-
else if (
|
|
12490
|
-
m.state =
|
|
12491
|
-
else if (
|
|
12492
|
-
m.state =
|
|
12484
|
+
case E3.OPEN_WAKA:
|
|
12485
|
+
if (D3 === "!")
|
|
12486
|
+
m.state = E3.SGML_DECL, m.sgmlDecl = "";
|
|
12487
|
+
else if (!C(D3)) if (q(B, D3))
|
|
12488
|
+
m.state = E3.OPEN_TAG, m.tagName = D3;
|
|
12489
|
+
else if (D3 === "/")
|
|
12490
|
+
m.state = E3.CLOSE_TAG, m.tagName = "";
|
|
12491
|
+
else if (D3 === "?")
|
|
12492
|
+
m.state = E3.PROC_INST, m.procInstName = m.procInstBody = "";
|
|
12493
12493
|
else {
|
|
12494
12494
|
if (Y(m, "Unencoded <"), m.startTagPosition + 1 < m.position) {
|
|
12495
12495
|
var x = m.position - m.startTagPosition;
|
|
12496
|
-
|
|
12496
|
+
D3 = new Array(x).join(" ") + D3;
|
|
12497
12497
|
}
|
|
12498
|
-
m.textNode += "<" +
|
|
12498
|
+
m.textNode += "<" + D3, m.state = E3.TEXT;
|
|
12499
12499
|
}
|
|
12500
12500
|
continue;
|
|
12501
|
-
case
|
|
12502
|
-
if (m.sgmlDecl +
|
|
12503
|
-
m.state =
|
|
12501
|
+
case E3.SGML_DECL:
|
|
12502
|
+
if (m.sgmlDecl + D3 === "--") {
|
|
12503
|
+
m.state = E3.COMMENT, m.comment = "", m.sgmlDecl = "";
|
|
12504
12504
|
continue;
|
|
12505
12505
|
}
|
|
12506
|
-
m.doctype && m.doctype !== true && m.sgmlDecl ? (m.state =
|
|
12506
|
+
m.doctype && m.doctype !== true && m.sgmlDecl ? (m.state = E3.DOCTYPE_DTD, m.doctype += "<!" + m.sgmlDecl + D3, m.sgmlDecl = "") : (m.sgmlDecl + D3).toUpperCase() === h3 ? (ee(m, "onopencdata"), m.state = E3.CDATA, m.sgmlDecl = "", m.cdata = "") : (m.sgmlDecl + D3).toUpperCase() === g ? (m.state = E3.DOCTYPE, (m.doctype || m.sawRoot) && Y(
|
|
12507
12507
|
m,
|
|
12508
12508
|
"Inappropriately located doctype declaration"
|
|
12509
|
-
), m.doctype = "", m.sgmlDecl = "") :
|
|
12509
|
+
), m.doctype = "", m.sgmlDecl = "") : D3 === ">" ? (ee(m, "onsgmldeclaration", m.sgmlDecl), m.sgmlDecl = "", m.state = E3.TEXT) : (F3(D3) && (m.state = E3.SGML_DECL_QUOTED), m.sgmlDecl += D3);
|
|
12510
12510
|
continue;
|
|
12511
|
-
case
|
|
12512
|
-
|
|
12511
|
+
case E3.SGML_DECL_QUOTED:
|
|
12512
|
+
D3 === m.q && (m.state = E3.SGML_DECL, m.q = ""), m.sgmlDecl += D3;
|
|
12513
12513
|
continue;
|
|
12514
|
-
case
|
|
12515
|
-
|
|
12514
|
+
case E3.DOCTYPE:
|
|
12515
|
+
D3 === ">" ? (m.state = E3.TEXT, ee(m, "ondoctype", m.doctype), m.doctype = true) : (m.doctype += D3, D3 === "[" ? m.state = E3.DOCTYPE_DTD : F3(D3) && (m.state = E3.DOCTYPE_QUOTED, m.q = D3));
|
|
12516
12516
|
continue;
|
|
12517
|
-
case
|
|
12518
|
-
m.doctype +=
|
|
12517
|
+
case E3.DOCTYPE_QUOTED:
|
|
12518
|
+
m.doctype += D3, D3 === m.q && (m.q = "", m.state = E3.DOCTYPE);
|
|
12519
12519
|
continue;
|
|
12520
|
-
case
|
|
12521
|
-
|
|
12520
|
+
case E3.DOCTYPE_DTD:
|
|
12521
|
+
D3 === "]" ? (m.doctype += D3, m.state = E3.DOCTYPE) : D3 === "<" ? (m.state = E3.OPEN_WAKA, m.startTagPosition = m.position) : F3(D3) ? (m.doctype += D3, m.state = E3.DOCTYPE_DTD_QUOTED, m.q = D3) : m.doctype += D3;
|
|
12522
12522
|
continue;
|
|
12523
|
-
case
|
|
12524
|
-
m.doctype +=
|
|
12523
|
+
case E3.DOCTYPE_DTD_QUOTED:
|
|
12524
|
+
m.doctype += D3, D3 === m.q && (m.state = E3.DOCTYPE_DTD, m.q = "");
|
|
12525
12525
|
continue;
|
|
12526
|
-
case
|
|
12527
|
-
|
|
12526
|
+
case E3.COMMENT:
|
|
12527
|
+
D3 === "-" ? m.state = E3.COMMENT_ENDING : m.comment += D3;
|
|
12528
12528
|
continue;
|
|
12529
|
-
case
|
|
12530
|
-
|
|
12529
|
+
case E3.COMMENT_ENDING:
|
|
12530
|
+
D3 === "-" ? (m.state = E3.COMMENT_ENDED, m.comment = ce2(m.opt, m.comment), m.comment && ee(m, "oncomment", m.comment), m.comment = "") : (m.comment += "-" + D3, m.state = E3.COMMENT);
|
|
12531
12531
|
continue;
|
|
12532
|
-
case
|
|
12533
|
-
|
|
12532
|
+
case E3.COMMENT_ENDED:
|
|
12533
|
+
D3 !== ">" ? (Y(m, "Malformed comment"), m.comment += "--" + D3, m.state = E3.COMMENT) : m.doctype && m.doctype !== true ? m.state = E3.DOCTYPE_DTD : m.state = E3.TEXT;
|
|
12534
12534
|
continue;
|
|
12535
|
-
case
|
|
12536
|
-
|
|
12535
|
+
case E3.CDATA:
|
|
12536
|
+
D3 === "]" ? m.state = E3.CDATA_ENDING : m.cdata += D3;
|
|
12537
12537
|
continue;
|
|
12538
|
-
case
|
|
12539
|
-
|
|
12538
|
+
case E3.CDATA_ENDING:
|
|
12539
|
+
D3 === "]" ? m.state = E3.CDATA_ENDING_2 : (m.cdata += "]" + D3, m.state = E3.CDATA);
|
|
12540
12540
|
continue;
|
|
12541
|
-
case
|
|
12542
|
-
|
|
12541
|
+
case E3.CDATA_ENDING_2:
|
|
12542
|
+
D3 === ">" ? (m.cdata && ee(m, "oncdata", m.cdata), ee(m, "onclosecdata"), m.cdata = "", m.state = E3.TEXT) : D3 === "]" ? m.cdata += "]" : (m.cdata += "]]" + D3, m.state = E3.CDATA);
|
|
12543
12543
|
continue;
|
|
12544
|
-
case
|
|
12545
|
-
|
|
12544
|
+
case E3.PROC_INST:
|
|
12545
|
+
D3 === "?" ? m.state = E3.PROC_INST_ENDING : C(D3) ? m.state = E3.PROC_INST_BODY : m.procInstName += D3;
|
|
12546
12546
|
continue;
|
|
12547
|
-
case
|
|
12548
|
-
if (!m.procInstBody && C(
|
|
12547
|
+
case E3.PROC_INST_BODY:
|
|
12548
|
+
if (!m.procInstBody && C(D3))
|
|
12549
12549
|
continue;
|
|
12550
|
-
|
|
12550
|
+
D3 === "?" ? m.state = E3.PROC_INST_ENDING : m.procInstBody += D3;
|
|
12551
12551
|
continue;
|
|
12552
|
-
case
|
|
12553
|
-
|
|
12552
|
+
case E3.PROC_INST_ENDING:
|
|
12553
|
+
D3 === ">" ? (ee(m, "onprocessinginstruction", {
|
|
12554
12554
|
name: m.procInstName,
|
|
12555
12555
|
body: m.procInstBody
|
|
12556
|
-
}), m.procInstName = m.procInstBody = "", m.state =
|
|
12556
|
+
}), m.procInstName = m.procInstBody = "", m.state = E3.TEXT) : (m.procInstBody += "?" + D3, m.state = E3.PROC_INST_BODY);
|
|
12557
12557
|
continue;
|
|
12558
|
-
case
|
|
12559
|
-
q(w,
|
|
12558
|
+
case E3.OPEN_TAG:
|
|
12559
|
+
q(w, D3) ? m.tagName += D3 : (de2(m), D3 === ">" ? ie(m) : D3 === "/" ? m.state = E3.OPEN_TAG_SLASH : (C(D3) || Y(m, "Invalid character in tag name"), m.state = E3.ATTRIB));
|
|
12560
12560
|
continue;
|
|
12561
|
-
case
|
|
12562
|
-
|
|
12561
|
+
case E3.OPEN_TAG_SLASH:
|
|
12562
|
+
D3 === ">" ? (ie(m, true), L3(m)) : (Y(m, "Forward-slash in opening tag not followed by >"), m.state = E3.ATTRIB);
|
|
12563
12563
|
continue;
|
|
12564
|
-
case
|
|
12565
|
-
if (C(
|
|
12564
|
+
case E3.ATTRIB:
|
|
12565
|
+
if (C(D3))
|
|
12566
12566
|
continue;
|
|
12567
|
-
|
|
12567
|
+
D3 === ">" ? ie(m) : D3 === "/" ? m.state = E3.OPEN_TAG_SLASH : q(B, D3) ? (m.attribName = D3, m.attribValue = "", m.state = E3.ATTRIB_NAME) : Y(m, "Invalid attribute name");
|
|
12568
12568
|
continue;
|
|
12569
|
-
case
|
|
12570
|
-
|
|
12569
|
+
case E3.ATTRIB_NAME:
|
|
12570
|
+
D3 === "=" ? m.state = E3.ATTRIB_VALUE : D3 === ">" ? (Y(m, "Attribute without value"), m.attribValue = m.attribName, te2(m), ie(m)) : C(D3) ? m.state = E3.ATTRIB_NAME_SAW_WHITE : q(w, D3) ? m.attribName += D3 : Y(m, "Invalid attribute name");
|
|
12571
12571
|
continue;
|
|
12572
|
-
case
|
|
12573
|
-
if (
|
|
12574
|
-
m.state =
|
|
12572
|
+
case E3.ATTRIB_NAME_SAW_WHITE:
|
|
12573
|
+
if (D3 === "=")
|
|
12574
|
+
m.state = E3.ATTRIB_VALUE;
|
|
12575
12575
|
else {
|
|
12576
|
-
if (C(
|
|
12576
|
+
if (C(D3))
|
|
12577
12577
|
continue;
|
|
12578
12578
|
Y(m, "Attribute without value"), m.tag.attributes[m.attribName] = "", m.attribValue = "", ee(m, "onattribute", {
|
|
12579
12579
|
name: m.attribName,
|
|
12580
12580
|
value: ""
|
|
12581
|
-
}), m.attribName = "",
|
|
12581
|
+
}), m.attribName = "", D3 === ">" ? ie(m) : q(B, D3) ? (m.attribName = D3, m.state = E3.ATTRIB_NAME) : (Y(m, "Invalid attribute name"), m.state = E3.ATTRIB);
|
|
12582
12582
|
}
|
|
12583
12583
|
continue;
|
|
12584
|
-
case
|
|
12585
|
-
if (C(
|
|
12584
|
+
case E3.ATTRIB_VALUE:
|
|
12585
|
+
if (C(D3))
|
|
12586
12586
|
continue;
|
|
12587
|
-
F3(
|
|
12587
|
+
F3(D3) ? (m.q = D3, m.state = E3.ATTRIB_VALUE_QUOTED) : (m.opt.unquotedAttributeValues || ae2(m, "Unquoted attribute value"), m.state = E3.ATTRIB_VALUE_UNQUOTED, m.attribValue = D3);
|
|
12588
12588
|
continue;
|
|
12589
|
-
case
|
|
12590
|
-
if (
|
|
12591
|
-
|
|
12589
|
+
case E3.ATTRIB_VALUE_QUOTED:
|
|
12590
|
+
if (D3 !== m.q) {
|
|
12591
|
+
D3 === "&" ? m.state = E3.ATTRIB_VALUE_ENTITY_Q : m.attribValue += D3;
|
|
12592
12592
|
continue;
|
|
12593
12593
|
}
|
|
12594
|
-
te2(m), m.q = "", m.state =
|
|
12594
|
+
te2(m), m.q = "", m.state = E3.ATTRIB_VALUE_CLOSED;
|
|
12595
12595
|
continue;
|
|
12596
|
-
case
|
|
12597
|
-
C(
|
|
12596
|
+
case E3.ATTRIB_VALUE_CLOSED:
|
|
12597
|
+
C(D3) ? m.state = E3.ATTRIB : D3 === ">" ? ie(m) : D3 === "/" ? m.state = E3.OPEN_TAG_SLASH : q(B, D3) ? (Y(m, "No whitespace between attributes"), m.attribName = D3, m.attribValue = "", m.state = E3.ATTRIB_NAME) : Y(m, "Invalid attribute name");
|
|
12598
12598
|
continue;
|
|
12599
|
-
case
|
|
12600
|
-
if (!N3(
|
|
12601
|
-
|
|
12599
|
+
case E3.ATTRIB_VALUE_UNQUOTED:
|
|
12600
|
+
if (!N3(D3)) {
|
|
12601
|
+
D3 === "&" ? m.state = E3.ATTRIB_VALUE_ENTITY_U : m.attribValue += D3;
|
|
12602
12602
|
continue;
|
|
12603
12603
|
}
|
|
12604
|
-
te2(m),
|
|
12604
|
+
te2(m), D3 === ">" ? ie(m) : m.state = E3.ATTRIB;
|
|
12605
12605
|
continue;
|
|
12606
|
-
case
|
|
12606
|
+
case E3.CLOSE_TAG:
|
|
12607
12607
|
if (m.tagName)
|
|
12608
|
-
|
|
12608
|
+
D3 === ">" ? L3(m) : q(w, D3) ? m.tagName += D3 : m.script ? (m.script += "</" + m.tagName, m.tagName = "", m.state = E3.SCRIPT) : (C(D3) || Y(m, "Invalid tagname in closing tag"), m.state = E3.CLOSE_TAG_SAW_WHITE);
|
|
12609
12609
|
else {
|
|
12610
|
-
if (C(
|
|
12610
|
+
if (C(D3))
|
|
12611
12611
|
continue;
|
|
12612
|
-
H3(B,
|
|
12612
|
+
H3(B, D3) ? m.script ? (m.script += "</" + D3, m.state = E3.SCRIPT) : Y(m, "Invalid tagname in closing tag.") : m.tagName = D3;
|
|
12613
12613
|
}
|
|
12614
12614
|
continue;
|
|
12615
|
-
case
|
|
12616
|
-
if (C(
|
|
12615
|
+
case E3.CLOSE_TAG_SAW_WHITE:
|
|
12616
|
+
if (C(D3))
|
|
12617
12617
|
continue;
|
|
12618
|
-
|
|
12618
|
+
D3 === ">" ? L3(m) : Y(m, "Invalid characters in closing tag");
|
|
12619
12619
|
continue;
|
|
12620
|
-
case
|
|
12621
|
-
case
|
|
12622
|
-
case
|
|
12620
|
+
case E3.TEXT_ENTITY:
|
|
12621
|
+
case E3.ATTRIB_VALUE_ENTITY_Q:
|
|
12622
|
+
case E3.ATTRIB_VALUE_ENTITY_U:
|
|
12623
12623
|
var _, W;
|
|
12624
12624
|
switch (m.state) {
|
|
12625
|
-
case
|
|
12626
|
-
_ =
|
|
12625
|
+
case E3.TEXT_ENTITY:
|
|
12626
|
+
_ = E3.TEXT, W = "textNode";
|
|
12627
12627
|
break;
|
|
12628
|
-
case
|
|
12629
|
-
_ =
|
|
12628
|
+
case E3.ATTRIB_VALUE_ENTITY_Q:
|
|
12629
|
+
_ = E3.ATTRIB_VALUE_QUOTED, W = "attribValue";
|
|
12630
12630
|
break;
|
|
12631
|
-
case
|
|
12632
|
-
_ =
|
|
12631
|
+
case E3.ATTRIB_VALUE_ENTITY_U:
|
|
12632
|
+
_ = E3.ATTRIB_VALUE_UNQUOTED, W = "attribValue";
|
|
12633
12633
|
break;
|
|
12634
12634
|
}
|
|
12635
|
-
if (
|
|
12635
|
+
if (D3 === ";") {
|
|
12636
12636
|
var re2 = j(m);
|
|
12637
12637
|
m.opt.unparsedEntities && !Object.values(e.XML_ENTITIES).includes(re2) ? (m.entity = "", m.state = _, m.write(re2)) : (m[W] += re2, m.entity = "", m.state = _);
|
|
12638
|
-
} else q(m.entity.length ? I3 : k,
|
|
12638
|
+
} else q(m.entity.length ? I3 : k, D3) ? m.entity += D3 : (Y(m, "Invalid character in entity name"), m[W] += "&" + m.entity + D3, m.entity = "", m.state = _);
|
|
12639
12639
|
continue;
|
|
12640
12640
|
default:
|
|
12641
12641
|
throw new Error(m, "Unknown state: " + m.state);
|
|
@@ -12645,7 +12645,7 @@ Actual: ` + p3.attribValue
|
|
|
12645
12645
|
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
|
|
12646
12646
|
String.fromCodePoint || function() {
|
|
12647
12647
|
var p3 = String.fromCharCode, m = Math.floor, R = function() {
|
|
12648
|
-
var
|
|
12648
|
+
var D3 = 16384, b = [], x, _, W = -1, re2 = arguments.length;
|
|
12649
12649
|
if (!re2)
|
|
12650
12650
|
return "";
|
|
12651
12651
|
for (var X3 = ""; ++W < re2; ) {
|
|
@@ -12655,7 +12655,7 @@ Actual: ` + p3.attribValue
|
|
|
12655
12655
|
ne > 1114111 || // not a valid Unicode code point
|
|
12656
12656
|
m(ne) !== ne)
|
|
12657
12657
|
throw RangeError("Invalid code point: " + ne);
|
|
12658
|
-
ne <= 65535 ? b.push(ne) : (ne -= 65536, x = (ne >> 10) + 55296, _ = ne % 1024 + 56320, b.push(x, _)), (W + 1 === re2 || b.length >
|
|
12658
|
+
ne <= 65535 ? b.push(ne) : (ne -= 65536, x = (ne >> 10) + 55296, _ = ne % 1024 + 56320, b.push(x, _)), (W + 1 === re2 || b.length > D3) && (X3 += p3.apply(null, b), b.length = 0);
|
|
12659
12659
|
}
|
|
12660
12660
|
return X3;
|
|
12661
12661
|
};
|
|
@@ -13068,7 +13068,7 @@ Actual: ` + p3.attribValue
|
|
|
13068
13068
|
if (J3[ie] == te2)
|
|
13069
13069
|
return true;
|
|
13070
13070
|
return false;
|
|
13071
|
-
},
|
|
13071
|
+
}, E3 = function(J3, te2) {
|
|
13072
13072
|
if (!J3)
|
|
13073
13073
|
return te2;
|
|
13074
13074
|
var ie = {}, L3;
|
|
@@ -13085,7 +13085,7 @@ Actual: ` + p3.attribValue
|
|
|
13085
13085
|
}, Q3 = function(J3) {
|
|
13086
13086
|
throw Error("Parse error: " + J3);
|
|
13087
13087
|
}, ce2 = function(J3, te2) {
|
|
13088
|
-
te2 =
|
|
13088
|
+
te2 = E3(te2, ce2.options);
|
|
13089
13089
|
var ie = te2.strict;
|
|
13090
13090
|
ie && T3.test(J3) && Q3("forbidden code point");
|
|
13091
13091
|
var L3 = te2.encodeEverything, j = te2.useNamedReferences, V = te2.allowUnsafeSymbols, $3 = te2.decimal ? ee : oe2, P3 = function(p3) {
|
|
@@ -13100,8 +13100,8 @@ Actual: ` + p3.attribValue
|
|
|
13100
13100
|
})), J3 = J3.replace(/>\u20D2/g, ">⃒").replace(/<\u20D2/g, "<⃒"), J3 = J3.replace(f3, function(p3) {
|
|
13101
13101
|
return "&" + c3[p3] + ";";
|
|
13102
13102
|
})) : V || (J3 = J3.replace(h3, P3)), J3.replace(o, function(p3) {
|
|
13103
|
-
var m = p3.charCodeAt(0), R = p3.charCodeAt(1),
|
|
13104
|
-
return $3(
|
|
13103
|
+
var m = p3.charCodeAt(0), R = p3.charCodeAt(1), D3 = (m - 55296) * 1024 + R - 56320 + 65536;
|
|
13104
|
+
return $3(D3);
|
|
13105
13105
|
}).replace(u, P3);
|
|
13106
13106
|
};
|
|
13107
13107
|
ce2.options = {
|
|
@@ -13112,9 +13112,9 @@ Actual: ` + p3.attribValue
|
|
|
13112
13112
|
decimal: false
|
|
13113
13113
|
};
|
|
13114
13114
|
var ae2 = function(J3, te2) {
|
|
13115
|
-
te2 =
|
|
13115
|
+
te2 = E3(te2, ae2.options);
|
|
13116
13116
|
var ie = te2.strict;
|
|
13117
|
-
return ie && S.test(J3) && Q3("malformed character reference"), J3.replace(A, function(L3, j, V, $3, P3, p3, m, R,
|
|
13117
|
+
return ie && S.test(J3) && Q3("malformed character reference"), J3.replace(A, function(L3, j, V, $3, P3, p3, m, R, D3) {
|
|
13118
13118
|
var b, x, _, W, re2, X3;
|
|
13119
13119
|
return j ? (re2 = j, B[re2]) : V ? (re2 = V, X3 = $3, X3 && te2.isAttributeValue ? (ie && X3 == "=" && Q3("`&` did not start a character reference"), L3) : (ie && Q3(
|
|
13120
13120
|
"named character reference was not terminated by a semicolon"
|
|
@@ -21254,7 +21254,7 @@ Actual: ` + p3.attribValue
|
|
|
21254
21254
|
w.elements || (w.elements = []);
|
|
21255
21255
|
const k = w.elements.findIndex((N3) => N3.name === "w:pPr");
|
|
21256
21256
|
if (!w.elements.filter((N3) => N3.name !== "w:pPr").length) {
|
|
21257
|
-
const N3 = w.elements[k]?.elements.find((
|
|
21257
|
+
const N3 = w.elements[k]?.elements.find((E3) => E3.name === "w:spacing"), H3 = {
|
|
21258
21258
|
name: "w:p",
|
|
21259
21259
|
type: "element",
|
|
21260
21260
|
elements: N3 ? [{
|
|
@@ -22090,7 +22090,7 @@ Actual: ` + p3.attribValue
|
|
|
22090
22090
|
!A && i3 && (A = i3);
|
|
22091
22091
|
const w = ko$2(r22), { attributes: k } = w || {}, C = {
|
|
22092
22092
|
color: c3?.elements?.find((ae2) => ae2.name === "w:shd")?.attributes["w:fill"]
|
|
22093
|
-
}, N3 = c3?.elements?.find((ae2) => ae2.name === "w:gridSpan")?.attributes["w:val"], q = c3?.elements?.find((ae2) => ae2.name === "w:tcMar"),
|
|
22093
|
+
}, N3 = c3?.elements?.find((ae2) => ae2.name === "w:gridSpan")?.attributes["w:val"], q = c3?.elements?.find((ae2) => ae2.name === "w:tcMar"), E3 = c3?.elements?.find((ae2) => ae2.name === "w:vAlign")?.attributes["w:val"] || "top", K3 = {}, oe2 = cu$2(s, u) || {};
|
|
22094
22094
|
K3.cellMargins = $d$2(q, oe2);
|
|
22095
22095
|
const { fontSize: ee, fonts: Q3 = {} } = oe2, ce2 = Q3.ascii;
|
|
22096
22096
|
if (A) {
|
|
@@ -22105,7 +22105,7 @@ Actual: ` + p3.attribValue
|
|
|
22105
22105
|
de2.length && (K3.colwidth = [...de2]);
|
|
22106
22106
|
}
|
|
22107
22107
|
}
|
|
22108
|
-
if (B && (K3.widthType = B), N3 && (K3.colspan = parseInt(N3, 10)), C && (K3.background = C), K3.verticalAlign =
|
|
22108
|
+
if (B && (K3.widthType = B), N3 && (K3.colspan = parseInt(N3, 10)), C && (K3.background = C), K3.verticalAlign = E3, ee && (K3.fontSize = ee), ce2 && (K3.fontFamily = ce2.ascii), n && (K3.borders = { ...n }), g && (K3.borders = Object.assign(K3.borders || {}, g)), k && k["w:val"] === "restart") {
|
|
22109
22109
|
const ae2 = t.elements.filter((ie) => ie.name === "w:tr"), se = ae2.findIndex((ie) => ie === e), Y = ae2.slice(se + 1);
|
|
22110
22110
|
let J3 = e.elements.filter((ie) => ie.name === "w:tc").findIndex((ie) => ie === r22), te2 = 1;
|
|
22111
22111
|
for (let ie of Y) {
|
|
@@ -22261,7 +22261,7 @@ Actual: ` + p3.attribValue
|
|
|
22261
22261
|
}, { attributes: C } = g, F3 = C["r:embed"];
|
|
22262
22262
|
let q = n[`word/_rels/${e || "document.xml"}.rels`];
|
|
22263
22263
|
q || (q = n["word/_rels/document.xml.rels"]);
|
|
22264
|
-
const H3 = q.elements.find((Q3) => Q3.name === "Relationships"), { elements:
|
|
22264
|
+
const H3 = q.elements.find((Q3) => Q3.name === "Relationships"), { elements: E3 } = H3, K3 = E3.find((Q3) => Q3.attributes.Id === F3), { attributes: oe2 } = K3;
|
|
22265
22265
|
return {
|
|
22266
22266
|
type: "image",
|
|
22267
22267
|
attrs: {
|
|
@@ -22431,7 +22431,7 @@ Actual: ` + p3.attribValue
|
|
|
22431
22431
|
w.marks || (w.marks = []), w.marks.push(A);
|
|
22432
22432
|
const k = w.elements.find((I3) => I3.name === "w:rPr");
|
|
22433
22433
|
if (k && k.elements.find((C) => C.name === "w:rStyle")) {
|
|
22434
|
-
const C = t["word/styles.xml"], { elements: F3 } = C.elements[0], H3 = F3.filter((
|
|
22434
|
+
const C = t["word/styles.xml"], { elements: F3 } = C.elements[0], H3 = F3.filter((E3) => E3.name === "w:style").find((E3) => E3.attributes["w:styleId"] === "Hyperlink")?.elements?.find((E3) => E3.name === "w:rPr");
|
|
22435
22435
|
H3 && w.elements.unshift(H3);
|
|
22436
22436
|
}
|
|
22437
22437
|
}
|
|
@@ -22565,7 +22565,7 @@ Actual: ` + p3.attribValue
|
|
|
22565
22565
|
P3 && h3[h3.length - 1]?.content.push(P3), N3.seen = true;
|
|
22566
22566
|
continue;
|
|
22567
22567
|
}
|
|
22568
|
-
const { attributes: q, elements: H3, marks:
|
|
22568
|
+
const { attributes: q, elements: H3, marks: E3 = [] } = Lt$2(N3), K3 = E3.find((P3) => P3.type === "textStyle"), {
|
|
22569
22569
|
listType: oe2,
|
|
22570
22570
|
listOrderingType: ee,
|
|
22571
22571
|
ilvl: Q3,
|
|
@@ -22611,10 +22611,10 @@ Actual: ` + p3.attribValue
|
|
|
22611
22611
|
}), m = W;
|
|
22612
22612
|
}
|
|
22613
22613
|
}
|
|
22614
|
-
const
|
|
22615
|
-
if (
|
|
22614
|
+
const D3 = N3.elements.find((_) => _.name === "w:pPr")?.elements.find((_) => _.name === "w:ind");
|
|
22615
|
+
if (D3) {
|
|
22616
22616
|
const _ = {};
|
|
22617
|
-
|
|
22617
|
+
D3.attributes || (D3.attributes = {}), D3.attributes["w:left"] !== void 0 && (_.left = xe$2(D3.attributes["w:left"])), D3.attributes["w:right"] !== void 0 && (_.right = xe$2(D3.attributes["w:right"])), D3.attributes["w:firstLine"] !== void 0 && (_.firstLine = xe$2(D3.attributes["w:firstLine"])), D3.attributes["w:hanging"] !== void 0 && (_.hanging = xe$2(D3.attributes["w:hanging"])), $3.indent = _;
|
|
22618
22618
|
}
|
|
22619
22619
|
ae2 && ($3.listParagraphProperties = ae2), ce2 && ($3.listRunProperties = ce2), $3.textStyle = K3, $3.order = se, $3.lvlText = Y, $3.lvlJc = K3?.attrs.textAlign, $3.listLevel = m, $3.listNumberingType = ee, $3.attributes = {
|
|
22620
22620
|
parentAttributes: N3?.attributes || null
|
|
@@ -22772,9 +22772,9 @@ Actual: ` + p3.attribValue
|
|
|
22772
22772
|
};
|
|
22773
22773
|
function vm$1(r22, e, t) {
|
|
22774
22774
|
if (!r22) return;
|
|
22775
|
-
const { attributes: n = {} } = r22, { paragraphProperties: i3 = {} } = n, { elements: s = [] } = i3, u = r22.elements.find((
|
|
22775
|
+
const { attributes: n = {} } = r22, { paragraphProperties: i3 = {} } = n, { elements: s = [] } = i3, u = r22.elements.find((E3) => E3.name === "w:pPr")?.elements?.find((E3) => E3.name === "w:pStyle")?.attributes["w:val"], f3 = kr$1({ node: r22, styleId: u, docx: t });
|
|
22776
22776
|
if (!f3) return {};
|
|
22777
|
-
const h3 = f3?.elements.find((
|
|
22777
|
+
const h3 = f3?.elements.find((E3) => E3.name === "w:numId")?.attributes["w:val"], S = f3?.elements.find((E3) => E3.name === "w:ilvl")?.attributes["w:val"] || wu$2(u, t), A = s.find((E3) => E3.name === "w:pStyle")?.attributes["w:val"], {
|
|
22778
22778
|
start: B,
|
|
22779
22779
|
numFmt: w,
|
|
22780
22780
|
lvlText: k,
|
|
@@ -22941,8 +22941,8 @@ Actual: ` + p3.attribValue
|
|
|
22941
22941
|
let B, w, k, I3;
|
|
22942
22942
|
g && (B = h3?.attributes["w:val"], w = xe$2(g?.attributes["w:left"]), k = xe$2(g?.attributes["w:right"]), I3 = xe$2(g?.attributes["w:firstLine"]));
|
|
22943
22943
|
const C = f3?.elements?.find((se) => se.name === "w:keepNext"), F3 = f3?.elements?.find((se) => se.name === "w:keepLines"), N3 = f3?.elements?.find((se) => se.name === "w:outlineLvl"), q = N3?.attributes["w:val"], H3 = f3?.elements?.find((se) => se.name === "w:pageBreakBefore");
|
|
22944
|
-
let
|
|
22945
|
-
H3 && (H3.attributes?.["w:val"] ?
|
|
22944
|
+
let E3 = 0;
|
|
22945
|
+
H3 && (H3.attributes?.["w:val"] ? E3 = Number(H3?.attributes?.["w:val"]) : E3 = 1);
|
|
22946
22946
|
const K3 = f3?.elements?.find((se) => se.name === "w:pageBreakAfter");
|
|
22947
22947
|
let oe2;
|
|
22948
22948
|
K3 && (K3.attributes?.["w:val"] ? oe2 = Number(K3?.attributes?.["w:val"]) : oe2 = 1);
|
|
@@ -22952,7 +22952,7 @@ Actual: ` + p3.attribValue
|
|
|
22952
22952
|
keepNext: !!C,
|
|
22953
22953
|
keepLines: !!F3,
|
|
22954
22954
|
outlineLevel: N3 ? parseInt(q) : null,
|
|
22955
|
-
pageBreakBefore: !!
|
|
22955
|
+
pageBreakBefore: !!E3,
|
|
22956
22956
|
pageBreakAfter: !!oe2
|
|
22957
22957
|
}, Q3 = o.elements.find((se) => se.name === "w:rPr"), ce2 = Bt$2(Q3, [], e) || {}, ae2 = {
|
|
22958
22958
|
spacing: { lineSpaceAfter: T3, lineSpaceBefore: S, line: A },
|
|
@@ -23215,7 +23215,7 @@ Actual: ` + p3.attribValue
|
|
|
23215
23215
|
nodes: a.elements,
|
|
23216
23216
|
nodeListHandler: e,
|
|
23217
23217
|
docx: r22
|
|
23218
|
-
}), { attrs:
|
|
23218
|
+
}), { attrs: E3 } = H3[0], K3 = E3["w14:paraId"];
|
|
23219
23219
|
return {
|
|
23220
23220
|
commentId: T3 || ba$2(),
|
|
23221
23221
|
importedId: f3,
|
|
@@ -23569,7 +23569,7 @@ Actual: ` + p3.attribValue
|
|
|
23569
23569
|
return;
|
|
23570
23570
|
}
|
|
23571
23571
|
}
|
|
23572
|
-
static updateDocumentVersion(e = this.convertedXml, t = "0.9.
|
|
23572
|
+
static updateDocumentVersion(e = this.convertedXml, t = "0.9.40") {
|
|
23573
23573
|
const n = "docProps/custom.xml";
|
|
23574
23574
|
e[n] || (e[n] = Tu$2());
|
|
23575
23575
|
const i3 = e["docProps/custom.xml"];
|
|
@@ -23794,7 +23794,7 @@ Actual: ` + p3.attribValue
|
|
|
23794
23794
|
function Tu$2() {
|
|
23795
23795
|
return _f$2;
|
|
23796
23796
|
}
|
|
23797
|
-
function Fu$2(r22 = 2, e = "0.9.
|
|
23797
|
+
function Fu$2(r22 = 2, e = "0.9.40") {
|
|
23798
23798
|
return {
|
|
23799
23799
|
type: "element",
|
|
23800
23800
|
name: "property",
|
|
@@ -36304,7 +36304,7 @@ Actual: ` + p3.attribValue
|
|
|
36304
36304
|
* @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
|
|
36305
36305
|
*/
|
|
36306
36306
|
processCollaborationMigrations() {
|
|
36307
|
-
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.
|
|
36307
|
+
if (console.debug("[checkVersionMigrations] Current editor version", "0.9.40"), !this.options.ydoc) return;
|
|
36308
36308
|
let r = this.options.ydoc.getMap("meta").get("version");
|
|
36309
36309
|
r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
|
|
36310
36310
|
const o = Qa$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
|
|
@@ -68594,7 +68594,7 @@ ${style2}
|
|
|
68594
68594
|
this.config.colors = shuffleArray(this.config.colors);
|
|
68595
68595
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
68596
68596
|
this.colorIndex = 0;
|
|
68597
|
-
this.version = "0.9.
|
|
68597
|
+
this.version = "0.9.40";
|
|
68598
68598
|
console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
68599
68599
|
this.superdocId = config.superdocId || v4();
|
|
68600
68600
|
this.colors = this.config.colors;
|