superdoc 0.31.0-next.7 → 0.31.0-next.9
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/{PdfViewer-HhmcCtfd.es.js → PdfViewer-ChLbIG8u.es.js} +2 -2
- package/dist/chunks/{PdfViewer-C_gVEaJa.cjs → PdfViewer-DGBrTPth.cjs} +2 -2
- package/dist/chunks/{eventemitter3-hYlnBzSA.es.js → eventemitter3-BZXKb7j7.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DmHNHvFX.cjs → eventemitter3-CFCpOk3d.cjs} +1 -1
- package/dist/chunks/{index-Cz10rZ5n.es.js → index-AnYOPAqD.es.js} +6 -6
- package/dist/chunks/{index-wLtubQ87.cjs → index-Cypk5knN.cjs} +6 -6
- package/dist/chunks/{index-BJ6cOegF-C-oX4LAe.es.js → index-mvOjU9rn-CQ6Y6D-C.es.js} +1 -1
- package/dist/chunks/{index-BJ6cOegF-BuvRSNoV.cjs → index-mvOjU9rn-HqKSYwVo.cjs} +1 -1
- package/dist/chunks/{jszip-BP2FTbpi.cjs → jszip-B99MTu59.cjs} +1 -1
- package/dist/chunks/{jszip-jKrsZoMS.es.js → jszip-Duxs2YMV.es.js} +1 -1
- package/dist/chunks/{super-editor.es-Bz-s1Pw4.cjs → super-editor.es-D55QKmsp.cjs} +779 -641
- package/dist/chunks/{super-editor.es-C20nShDu.es.js → super-editor.es-_tc99cB9.es.js} +732 -594
- package/dist/chunks/{vue-Cwv-wUpm.cjs → vue-ARQSyfaw.cjs} +2401 -2360
- package/dist/chunks/{vue-CKmzTNVs.es.js → vue-B5QAf5pA.es.js} +2401 -2360
- package/dist/chunks/xml-js-CVyfrKaV.es.js +2 -0
- package/dist/chunks/xml-js-DQa4Ye5C.cjs +3 -0
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_disclaimer.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/altText_spinner.svg +30 -0
- package/dist/images/altText_warning.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/messageBar_closingButton.svg +3 -0
- package/dist/images/messageBar_warning.svg +3 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts +8 -0
- package/dist/packages/superdoc/src/core/SuperDoc.d.ts.map +1 -1
- package/dist/packages/superdoc/src/core/types/index.d.ts +8 -0
- package/dist/packages/superdoc/src/core/types/index.d.ts.map +1 -1
- package/dist/style.css +2 -0
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-DVDL6NWz.js → converter-DkFlFcso.js} +313 -294
- package/dist/super-editor/chunks/{docx-zipper-4ipmBNSH.js → docx-zipper-BSQJw-fX.js} +1 -1
- package/dist/super-editor/chunks/{editor-B8v33PJq.js → editor-bUoNJi-W.js} +155 -36
- package/dist/super-editor/chunks/{index-BJ6cOegF.js → index-mvOjU9rn.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-CfUofx7k.js → toolbar-CkPV7I8i.js} +2 -2
- package/dist/super-editor/converter.es.js +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/style.css +2 -0
- package/dist/super-editor/super-editor/src/core/Editor.d.ts +9 -0
- package/dist/super-editor/super-editor/src/core/Editor.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Node.d.ts +1 -1
- package/dist/super-editor/super-editor/src/core/Node.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/Schema.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/core/schema-summary.d.ts +4 -0
- package/dist/super-editor/super-editor/src/core/schema-summary.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts +35 -0
- package/dist/super-editor/super-editor/src/core/types/EditorSchema.d.ts.map +1 -0
- package/dist/super-editor/super-editor/src/extensions/ai/ai-marks.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/ai/ai-nodes.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/collaboration/collaboration-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/mention/mention.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/paragraph/paragraph.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/structured-content/document-part-object.d.ts.map +1 -1
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts +8 -0
- package/dist/super-editor/super-editor/src/extensions/track-changes/permission-helpers.d.ts.map +1 -1
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +2 -2
- package/dist/super-editor.es.js +2 -2
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +1120 -942
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/xml-js-BSDu25I7.cjs +0 -3
- package/dist/chunks/xml-js-CBrRls0f.es.js +0 -2
package/dist/superdoc.umd.js
CHANGED
|
@@ -434,17 +434,17 @@
|
|
|
434
434
|
);
|
|
435
435
|
}
|
|
436
436
|
if (a2 === b2) return 0;
|
|
437
|
-
let
|
|
437
|
+
let x2 = a2.length;
|
|
438
438
|
let y2 = b2.length;
|
|
439
|
-
for (let i2 = 0, len2 = Math.min(
|
|
439
|
+
for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
|
|
440
440
|
if (a2[i2] !== b2[i2]) {
|
|
441
|
-
|
|
441
|
+
x2 = a2[i2];
|
|
442
442
|
y2 = b2[i2];
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
if (
|
|
447
|
-
if (y2 <
|
|
446
|
+
if (x2 < y2) return -1;
|
|
447
|
+
if (y2 < x2) return 1;
|
|
448
448
|
return 0;
|
|
449
449
|
};
|
|
450
450
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -693,20 +693,20 @@
|
|
|
693
693
|
thisStart >>>= 0;
|
|
694
694
|
thisEnd >>>= 0;
|
|
695
695
|
if (this === target) return 0;
|
|
696
|
-
let
|
|
696
|
+
let x2 = thisEnd - thisStart;
|
|
697
697
|
let y2 = end2 - start2;
|
|
698
|
-
const len2 = Math.min(
|
|
698
|
+
const len2 = Math.min(x2, y2);
|
|
699
699
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
700
700
|
const targetCopy = target.slice(start2, end2);
|
|
701
701
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
702
702
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
703
|
-
|
|
703
|
+
x2 = thisCopy[i2];
|
|
704
704
|
y2 = targetCopy[i2];
|
|
705
705
|
break;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
if (
|
|
709
|
-
if (y2 <
|
|
708
|
+
if (x2 < y2) return -1;
|
|
709
|
+
if (y2 < x2) return 1;
|
|
710
710
|
return 0;
|
|
711
711
|
};
|
|
712
712
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -1796,8 +1796,8 @@
|
|
|
1796
1796
|
})(buffer);
|
|
1797
1797
|
const Buffer2 = buffer.Buffer;
|
|
1798
1798
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
1799
|
-
function getDefaultExportFromCjs$2(
|
|
1800
|
-
return
|
|
1799
|
+
function getDefaultExportFromCjs$2(x2) {
|
|
1800
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
1801
1801
|
}
|
|
1802
1802
|
var sax = {};
|
|
1803
1803
|
var events$2 = { exports: {} };
|
|
@@ -1805,13 +1805,13 @@
|
|
|
1805
1805
|
function requireEvents() {
|
|
1806
1806
|
if (hasRequiredEvents) return events$2.exports;
|
|
1807
1807
|
hasRequiredEvents = 1;
|
|
1808
|
-
var
|
|
1809
|
-
var ReflectApply =
|
|
1808
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
1809
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
1810
1810
|
return Function.prototype.apply.call(target, receiver, args);
|
|
1811
1811
|
};
|
|
1812
1812
|
var ReflectOwnKeys;
|
|
1813
|
-
if (
|
|
1814
|
-
ReflectOwnKeys =
|
|
1813
|
+
if (R && typeof R.ownKeys === "function") {
|
|
1814
|
+
ReflectOwnKeys = R.ownKeys;
|
|
1815
1815
|
} else if (Object.getOwnPropertySymbols) {
|
|
1816
1816
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1817
1817
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -2201,8 +2201,8 @@
|
|
|
2201
2201
|
}
|
|
2202
2202
|
return inherits_browser.exports;
|
|
2203
2203
|
}
|
|
2204
|
-
function getDefaultExportFromCjs$1(
|
|
2205
|
-
return
|
|
2204
|
+
function getDefaultExportFromCjs$1(x2) {
|
|
2205
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
2206
2206
|
}
|
|
2207
2207
|
var browser$1 = { exports: {} };
|
|
2208
2208
|
var process$2 = browser$1.exports = {};
|
|
@@ -2783,17 +2783,17 @@
|
|
|
2783
2783
|
);
|
|
2784
2784
|
}
|
|
2785
2785
|
if (a2 === b2) return 0;
|
|
2786
|
-
let
|
|
2786
|
+
let x2 = a2.length;
|
|
2787
2787
|
let y2 = b2.length;
|
|
2788
|
-
for (let i22 = 0, len22 = Math.min(
|
|
2788
|
+
for (let i22 = 0, len22 = Math.min(x2, y2); i22 < len22; ++i22) {
|
|
2789
2789
|
if (a2[i22] !== b2[i22]) {
|
|
2790
|
-
|
|
2790
|
+
x2 = a2[i22];
|
|
2791
2791
|
y2 = b2[i22];
|
|
2792
2792
|
break;
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
if (
|
|
2796
|
-
if (y2 <
|
|
2795
|
+
if (x2 < y2) return -1;
|
|
2796
|
+
if (y2 < x2) return 1;
|
|
2797
2797
|
return 0;
|
|
2798
2798
|
};
|
|
2799
2799
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -3042,20 +3042,20 @@
|
|
|
3042
3042
|
thisStart >>>= 0;
|
|
3043
3043
|
thisEnd >>>= 0;
|
|
3044
3044
|
if (this === target) return 0;
|
|
3045
|
-
let
|
|
3045
|
+
let x2 = thisEnd - thisStart;
|
|
3046
3046
|
let y2 = end2 - start2;
|
|
3047
|
-
const len22 = Math.min(
|
|
3047
|
+
const len22 = Math.min(x2, y2);
|
|
3048
3048
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
3049
3049
|
const targetCopy = target.slice(start2, end2);
|
|
3050
3050
|
for (let i22 = 0; i22 < len22; ++i22) {
|
|
3051
3051
|
if (thisCopy[i22] !== targetCopy[i22]) {
|
|
3052
|
-
|
|
3052
|
+
x2 = thisCopy[i22];
|
|
3053
3053
|
y2 = targetCopy[i22];
|
|
3054
3054
|
break;
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
|
-
if (
|
|
3058
|
-
if (y2 <
|
|
3057
|
+
if (x2 < y2) return -1;
|
|
3058
|
+
if (y2 < x2) return 1;
|
|
3059
3059
|
return 0;
|
|
3060
3060
|
};
|
|
3061
3061
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -4627,15 +4627,15 @@
|
|
|
4627
4627
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
4628
4628
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
4629
4629
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
4630
|
-
getProto$1 = reflectGetProto ? function getProto2(
|
|
4631
|
-
return reflectGetProto(
|
|
4632
|
-
} : originalGetProto ? function getProto2(
|
|
4633
|
-
if (!
|
|
4630
|
+
getProto$1 = reflectGetProto ? function getProto2(O) {
|
|
4631
|
+
return reflectGetProto(O);
|
|
4632
|
+
} : originalGetProto ? function getProto2(O) {
|
|
4633
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
4634
4634
|
throw new TypeError("getProto: not an object");
|
|
4635
4635
|
}
|
|
4636
|
-
return originalGetProto(
|
|
4637
|
-
} : getDunderProto ? function getProto2(
|
|
4638
|
-
return getDunderProto(
|
|
4636
|
+
return originalGetProto(O);
|
|
4637
|
+
} : getDunderProto ? function getProto2(O) {
|
|
4638
|
+
return getDunderProto(O);
|
|
4639
4639
|
} : null;
|
|
4640
4640
|
return getProto$1;
|
|
4641
4641
|
}
|
|
@@ -5313,8 +5313,8 @@
|
|
|
5313
5313
|
}
|
|
5314
5314
|
}
|
|
5315
5315
|
};
|
|
5316
|
-
function isArray2(
|
|
5317
|
-
return toStr.call(
|
|
5316
|
+
function isArray2(x2) {
|
|
5317
|
+
return toStr.call(x2) === "[object Array]";
|
|
5318
5318
|
}
|
|
5319
5319
|
forEach = function forEach2(list2, iterator2, thisArg) {
|
|
5320
5320
|
if (!isCallable2(iterator2)) {
|
|
@@ -5923,10 +5923,10 @@
|
|
|
5923
5923
|
var i2 = 1;
|
|
5924
5924
|
var args = arguments;
|
|
5925
5925
|
var len2 = args.length;
|
|
5926
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
5927
|
-
if (
|
|
5928
|
-
if (i2 >= len2) return
|
|
5929
|
-
switch (
|
|
5926
|
+
var str = String(f2).replace(formatRegExp, function(x3) {
|
|
5927
|
+
if (x3 === "%%") return "%";
|
|
5928
|
+
if (i2 >= len2) return x3;
|
|
5929
|
+
switch (x3) {
|
|
5930
5930
|
case "%s":
|
|
5931
5931
|
return String(args[i2++]);
|
|
5932
5932
|
case "%d":
|
|
@@ -5938,14 +5938,14 @@
|
|
|
5938
5938
|
return "[Circular]";
|
|
5939
5939
|
}
|
|
5940
5940
|
default:
|
|
5941
|
-
return
|
|
5941
|
+
return x3;
|
|
5942
5942
|
}
|
|
5943
5943
|
});
|
|
5944
|
-
for (var
|
|
5945
|
-
if (isNull(
|
|
5946
|
-
str += " " +
|
|
5944
|
+
for (var x2 = args[i2]; i2 < len2; x2 = args[++i2]) {
|
|
5945
|
+
if (isNull(x2) || !isObject2(x2)) {
|
|
5946
|
+
str += " " + x2;
|
|
5947
5947
|
} else {
|
|
5948
|
-
str += " " + inspect2(
|
|
5948
|
+
str += " " + inspect2(x2);
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
5951
5951
|
return str;
|
|
@@ -7510,6 +7510,7 @@
|
|
|
7510
7510
|
}
|
|
7511
7511
|
var string_decoder = {};
|
|
7512
7512
|
var safeBuffer = { exports: {} };
|
|
7513
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
7513
7514
|
var hasRequiredSafeBuffer;
|
|
7514
7515
|
function requireSafeBuffer() {
|
|
7515
7516
|
if (hasRequiredSafeBuffer) return safeBuffer.exports;
|
|
@@ -7531,6 +7532,7 @@
|
|
|
7531
7532
|
function SafeBuffer(arg, encodingOrOffset, length2) {
|
|
7532
7533
|
return Buffer3(arg, encodingOrOffset, length2);
|
|
7533
7534
|
}
|
|
7535
|
+
SafeBuffer.prototype = Object.create(Buffer3.prototype);
|
|
7534
7536
|
copyProps(Buffer3, SafeBuffer);
|
|
7535
7537
|
SafeBuffer.from = function(arg, encodingOrOffset, length2) {
|
|
7536
7538
|
if (typeof arg === "number") {
|
|
@@ -8808,9 +8810,9 @@
|
|
|
8808
8810
|
return from2(Readable, iterable, opts);
|
|
8809
8811
|
};
|
|
8810
8812
|
}
|
|
8811
|
-
function indexOf(xs,
|
|
8813
|
+
function indexOf(xs, x2) {
|
|
8812
8814
|
for (var i2 = 0, l3 = xs.length; i2 < l3; i2++) {
|
|
8813
|
-
if (xs[i2] ===
|
|
8815
|
+
if (xs[i2] === x2) return i2;
|
|
8814
8816
|
}
|
|
8815
8817
|
return -1;
|
|
8816
8818
|
}
|
|
@@ -9268,27 +9270,27 @@
|
|
|
9268
9270
|
this._parser = new SAXParser(strict, opt);
|
|
9269
9271
|
this.writable = true;
|
|
9270
9272
|
this.readable = true;
|
|
9271
|
-
var
|
|
9273
|
+
var me2 = this;
|
|
9272
9274
|
this._parser.onend = function() {
|
|
9273
|
-
|
|
9275
|
+
me2.emit("end");
|
|
9274
9276
|
};
|
|
9275
9277
|
this._parser.onerror = function(er) {
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
+
me2.emit("error", er);
|
|
9279
|
+
me2._parser.error = null;
|
|
9278
9280
|
};
|
|
9279
9281
|
this._decoder = null;
|
|
9280
9282
|
streamWraps.forEach(function(ev) {
|
|
9281
|
-
Object.defineProperty(
|
|
9283
|
+
Object.defineProperty(me2, "on" + ev, {
|
|
9282
9284
|
get: function() {
|
|
9283
|
-
return
|
|
9285
|
+
return me2._parser["on" + ev];
|
|
9284
9286
|
},
|
|
9285
9287
|
set: function(h2) {
|
|
9286
9288
|
if (!h2) {
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
+
me2.removeAllListeners(ev);
|
|
9290
|
+
me2._parser["on" + ev] = h2;
|
|
9289
9291
|
return h2;
|
|
9290
9292
|
}
|
|
9291
|
-
|
|
9293
|
+
me2.on(ev, h2);
|
|
9292
9294
|
},
|
|
9293
9295
|
enumerable: true,
|
|
9294
9296
|
configurable: false
|
|
@@ -9320,15 +9322,15 @@
|
|
|
9320
9322
|
return true;
|
|
9321
9323
|
};
|
|
9322
9324
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9323
|
-
var
|
|
9324
|
-
if (!
|
|
9325
|
-
|
|
9325
|
+
var me2 = this;
|
|
9326
|
+
if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9327
|
+
me2._parser["on" + ev] = function() {
|
|
9326
9328
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9327
9329
|
args.splice(0, 0, ev);
|
|
9328
|
-
|
|
9330
|
+
me2.emit.apply(me2, args);
|
|
9329
9331
|
};
|
|
9330
9332
|
}
|
|
9331
|
-
return Stream.prototype.on.call(
|
|
9333
|
+
return Stream.prototype.on.call(me2, ev, handler2);
|
|
9332
9334
|
};
|
|
9333
9335
|
var CDATA = "[CDATA[";
|
|
9334
9336
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9920,9 +9922,9 @@
|
|
|
9920
9922
|
var tag = parser.tag = parser.tags.pop();
|
|
9921
9923
|
parser.tagName = parser.tag.name;
|
|
9922
9924
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9923
|
-
var
|
|
9925
|
+
var x2 = {};
|
|
9924
9926
|
for (var i2 in tag.ns) {
|
|
9925
|
-
|
|
9927
|
+
x2[i2] = tag.ns[i2];
|
|
9926
9928
|
}
|
|
9927
9929
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9928
9930
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -11402,8 +11404,8 @@
|
|
|
11402
11404
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11403
11405
|
return unsafeStringify$1(rnds);
|
|
11404
11406
|
}
|
|
11405
|
-
function getDefaultExportFromCjs$3(
|
|
11406
|
-
return
|
|
11407
|
+
function getDefaultExportFromCjs$3(x2) {
|
|
11408
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
11407
11409
|
}
|
|
11408
11410
|
const CRC_TABLE = new Int32Array([
|
|
11409
11411
|
0,
|
|
@@ -15229,8 +15231,8 @@
|
|
|
15229
15231
|
const points = [];
|
|
15230
15232
|
polygonNode.elements.forEach((element2) => {
|
|
15231
15233
|
if (["wp:start", "wp:lineTo"].includes(element2.name)) {
|
|
15232
|
-
const { x, y: y2 } = element2.attributes;
|
|
15233
|
-
points.push([polygonUnitsToPixels(
|
|
15234
|
+
const { x: x2, y: y2 } = element2.attributes;
|
|
15235
|
+
points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
|
|
15234
15236
|
}
|
|
15235
15237
|
});
|
|
15236
15238
|
if (points.length > 1) {
|
|
@@ -15253,13 +15255,13 @@
|
|
|
15253
15255
|
elements: []
|
|
15254
15256
|
};
|
|
15255
15257
|
points.forEach((point2, index2) => {
|
|
15256
|
-
const [
|
|
15258
|
+
const [x2, y2] = point2;
|
|
15257
15259
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15258
15260
|
const pointNode = {
|
|
15259
15261
|
name: tagName,
|
|
15260
15262
|
type: tagName,
|
|
15261
15263
|
attributes: {
|
|
15262
|
-
x: pixelsToPolygonUnits(
|
|
15264
|
+
x: pixelsToPolygonUnits(x2),
|
|
15263
15265
|
y: pixelsToPolygonUnits(y2)
|
|
15264
15266
|
}
|
|
15265
15267
|
};
|
|
@@ -25031,18 +25033,18 @@
|
|
|
25031
25033
|
const rawY = shapeOff?.attributes?.["y"] ? parseFloat(shapeOff.attributes["y"]) : 0;
|
|
25032
25034
|
const rawWidth = shapeExt?.attributes?.["cx"] ? parseFloat(shapeExt.attributes["cx"]) : 914400;
|
|
25033
25035
|
const rawHeight = shapeExt?.attributes?.["cy"] ? parseFloat(shapeExt.attributes["cy"]) : 914400;
|
|
25034
|
-
let
|
|
25036
|
+
let x2, y2, width, height;
|
|
25035
25037
|
if (groupTransform.childWidth && groupTransform.childHeight) {
|
|
25036
25038
|
const scaleX = groupTransform.width / groupTransform.childWidth;
|
|
25037
25039
|
const scaleY = groupTransform.height / groupTransform.childHeight;
|
|
25038
25040
|
const childOriginX = groupTransform.childOriginXEmu || 0;
|
|
25039
25041
|
const childOriginY = groupTransform.childOriginYEmu || 0;
|
|
25040
|
-
|
|
25042
|
+
x2 = groupTransform.x + emuToPixels((rawX - childOriginX) * scaleX);
|
|
25041
25043
|
y2 = groupTransform.y + emuToPixels((rawY - childOriginY) * scaleY);
|
|
25042
25044
|
width = emuToPixels(rawWidth * scaleX);
|
|
25043
25045
|
height = emuToPixels(rawHeight * scaleY);
|
|
25044
25046
|
} else {
|
|
25045
|
-
|
|
25047
|
+
x2 = emuToPixels(rawX);
|
|
25046
25048
|
y2 = emuToPixels(rawY);
|
|
25047
25049
|
width = emuToPixels(rawWidth);
|
|
25048
25050
|
height = emuToPixels(rawHeight);
|
|
@@ -25061,7 +25063,7 @@
|
|
|
25061
25063
|
shapeType: "vectorShape",
|
|
25062
25064
|
attrs: {
|
|
25063
25065
|
kind: shapeKind,
|
|
25064
|
-
x,
|
|
25066
|
+
x: x2,
|
|
25065
25067
|
y: y2,
|
|
25066
25068
|
width,
|
|
25067
25069
|
height,
|
|
@@ -25684,7 +25686,7 @@
|
|
|
25684
25686
|
const right2 = Math.max(start2.right, end2.right);
|
|
25685
25687
|
const width = right2 - left2;
|
|
25686
25688
|
const height = bottom2 - top2;
|
|
25687
|
-
const
|
|
25689
|
+
const x2 = left2;
|
|
25688
25690
|
const y2 = top2;
|
|
25689
25691
|
const data = {
|
|
25690
25692
|
top: top2,
|
|
@@ -25693,7 +25695,7 @@
|
|
|
25693
25695
|
right: right2,
|
|
25694
25696
|
width,
|
|
25695
25697
|
height,
|
|
25696
|
-
x,
|
|
25698
|
+
x: x2,
|
|
25697
25699
|
y: y2
|
|
25698
25700
|
};
|
|
25699
25701
|
return {
|
|
@@ -28833,25 +28835,31 @@
|
|
|
28833
28835
|
function L() {
|
|
28834
28836
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
28835
28837
|
}
|
|
28836
|
-
var
|
|
28838
|
+
var T = L();
|
|
28837
28839
|
function G(l3) {
|
|
28838
|
-
|
|
28840
|
+
T = l3;
|
|
28839
28841
|
}
|
|
28840
28842
|
var E = { exec: () => null };
|
|
28841
|
-
function
|
|
28843
|
+
function d$1(l3, e = "") {
|
|
28842
28844
|
let t = typeof l3 == "string" ? l3 : l3.source, n = { replace: (r2, i2) => {
|
|
28843
28845
|
let s2 = typeof i2 == "string" ? i2 : i2.source;
|
|
28844
28846
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
28845
28847
|
}, getRegex: () => new RegExp(t, e) };
|
|
28846
28848
|
return n;
|
|
28847
28849
|
}
|
|
28848
|
-
var
|
|
28849
|
-
|
|
28850
|
-
|
|
28850
|
+
var be = (() => {
|
|
28851
|
+
try {
|
|
28852
|
+
return !!new RegExp("(?<=1)(?<!1)");
|
|
28853
|
+
} catch {
|
|
28854
|
+
return false;
|
|
28855
|
+
}
|
|
28856
|
+
})(), m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (l3) => new RegExp(`^( {0,3}${l3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}#`), htmlBeginRegex: (l3) => new RegExp(`^ {0,${Math.min(3, l3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, Re = /^(?:[ \t]*(?:\n|$))+/, Te = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Oe = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, I = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, we = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = d$1(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), ye = d$1(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Pe = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Se = d$1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $e = d$1(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _e = d$1("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = d$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: Le, code: Te, def: Se, fences: Oe, heading: we, hr: I, html: _e, lheading: oe, list: $e, newline: Re, paragraph: ae, table: E, text: Pe }, re$1 = d$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Me = { ...K$1, lheading: ye, table: re$1, paragraph: d$1(j).replace("hr", I).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re$1).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, ze = { ...K$1, html: d$1(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: E, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: d$1(j).replace("hr", I).replace("heading", ` *#{1,6} *[^
|
|
28857
|
+
]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ae = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ee = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ce = d$1(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Be = /(?!~)[\s\p{P}\p{S}]/u, qe = /(?:[^\s\p{P}\p{S}]|~)/u, ve = d$1(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", be ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, De = d$1(ce, "u").replace(/punct/g, D).getRegex(), He = d$1(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ze = d$1(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ge = d$1(he$3, "gu").replace(/notPunctSpace/g, qe).replace(/punctSpace/g, Be).replace(/punct/g, pe).getRegex(), Ne = d$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Fe = d$1(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), je = d$1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Qe = d$1(U).replace("(?:-->|$)", "-->").getRegex(), Ue = d$1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Qe).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q$1 = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ke = d$1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q$1).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = d$1(/^!?\[(label)\]\[(ref)\]/).replace("label", q$1).replace("ref", Q).getRegex(), ke = d$1(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), We = d$1("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: E, anyPunctuation: Fe, autolink: je, blockSkip: ve, br: le, code: Ee, del: E, emStrongLDelim: De, emStrongRDelimAst: Ze, emStrongRDelimUnd: Ne, escape: Ae, link: Ke, nolink: ke, punctuation: Ce, reflink: de, reflinkSearch: We, tag: Ue, text: Ie, url: E }, Xe = { ...X, link: d$1(/^!?\[(label)\]\((.*?)\)/).replace("label", q$1).getRegex(), reflink: d$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q$1).getRegex() }, N = { ...X, emStrongRDelimAst: Ge, emStrongLDelim: He, url: d$1(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: d$1(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Je = { ...N, br: d$1(le).replace("{2,}", "*").getRegex(), text: d$1(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Me, pedantic: ze }, M$1 = { normal: X, gfm: N, breaks: Je, pedantic: Xe };
|
|
28858
|
+
var Ve = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (l3) => Ve[l3];
|
|
28851
28859
|
function w(l3, e) {
|
|
28852
28860
|
if (e) {
|
|
28853
|
-
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace,
|
|
28854
|
-
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode,
|
|
28861
|
+
if (m.escapeTest.test(l3)) return l3.replace(m.escapeReplace, ge);
|
|
28862
|
+
} else if (m.escapeTestNoEncode.test(l3)) return l3.replace(m.escapeReplaceNoEncode, ge);
|
|
28855
28863
|
return l3;
|
|
28856
28864
|
}
|
|
28857
28865
|
function J(l3) {
|
|
@@ -28863,10 +28871,10 @@
|
|
|
28863
28871
|
return l3;
|
|
28864
28872
|
}
|
|
28865
28873
|
function V(l3, e) {
|
|
28866
|
-
let t = l3.replace(m.findPipe, (i2, s2,
|
|
28867
|
-
let
|
|
28868
|
-
for (; --
|
|
28869
|
-
return
|
|
28874
|
+
let t = l3.replace(m.findPipe, (i2, s2, a2) => {
|
|
28875
|
+
let o = false, p2 = s2;
|
|
28876
|
+
for (; --p2 >= 0 && a2[p2] === "\\"; ) o = !o;
|
|
28877
|
+
return o ? "|" : " |";
|
|
28870
28878
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
28871
28879
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
28872
28880
|
else for (; n.length < e; ) n.push("");
|
|
@@ -28884,7 +28892,7 @@
|
|
|
28884
28892
|
}
|
|
28885
28893
|
return l3.slice(0, n - r2);
|
|
28886
28894
|
}
|
|
28887
|
-
function
|
|
28895
|
+
function fe(l3, e) {
|
|
28888
28896
|
if (l3.indexOf(e[1]) === -1) return -1;
|
|
28889
28897
|
let t = 0;
|
|
28890
28898
|
for (let n = 0; n < l3.length; n++) if (l3[n] === "\\") n++;
|
|
@@ -28892,13 +28900,13 @@
|
|
|
28892
28900
|
else if (l3[n] === e[1] && (t--, t < 0)) return n;
|
|
28893
28901
|
return t > 0 ? -2 : -1;
|
|
28894
28902
|
}
|
|
28895
|
-
function
|
|
28896
|
-
let i2 = e.href, s2 = e.title || null,
|
|
28903
|
+
function me(l3, e, t, n, r2) {
|
|
28904
|
+
let i2 = e.href, s2 = e.title || null, a2 = l3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
28897
28905
|
n.state.inLink = true;
|
|
28898
|
-
let
|
|
28899
|
-
return n.state.inLink = false,
|
|
28906
|
+
let o = { type: l3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i2, title: s2, text: a2, tokens: n.inlineTokens(a2) };
|
|
28907
|
+
return n.state.inLink = false, o;
|
|
28900
28908
|
}
|
|
28901
|
-
function
|
|
28909
|
+
function Ye(l3, e, t) {
|
|
28902
28910
|
let n = l3.match(t.other.indentCodeCompensation);
|
|
28903
28911
|
if (n === null) return e;
|
|
28904
28912
|
let r2 = n[1];
|
|
@@ -28906,8 +28914,8 @@
|
|
|
28906
28914
|
`).map((i2) => {
|
|
28907
28915
|
let s2 = i2.match(t.other.beginningSpace);
|
|
28908
28916
|
if (s2 === null) return i2;
|
|
28909
|
-
let [
|
|
28910
|
-
return
|
|
28917
|
+
let [a2] = s2;
|
|
28918
|
+
return a2.length >= r2.length ? i2.slice(r2.length) : i2;
|
|
28911
28919
|
}).join(`
|
|
28912
28920
|
`);
|
|
28913
28921
|
}
|
|
@@ -28916,7 +28924,7 @@
|
|
|
28916
28924
|
__publicField$2(this, "options");
|
|
28917
28925
|
__publicField$2(this, "rules");
|
|
28918
28926
|
__publicField$2(this, "lexer");
|
|
28919
|
-
this.options = e ||
|
|
28927
|
+
this.options = e || T;
|
|
28920
28928
|
}
|
|
28921
28929
|
space(e) {
|
|
28922
28930
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -28933,7 +28941,7 @@
|
|
|
28933
28941
|
fences(e) {
|
|
28934
28942
|
let t = this.rules.block.fences.exec(e);
|
|
28935
28943
|
if (t) {
|
|
28936
|
-
let n = t[0], r2 =
|
|
28944
|
+
let n = t[0], r2 = Ye(n, t[3] || "", this.rules);
|
|
28937
28945
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
28938
28946
|
}
|
|
28939
28947
|
}
|
|
@@ -28960,32 +28968,32 @@
|
|
|
28960
28968
|
`).split(`
|
|
28961
28969
|
`), r2 = "", i2 = "", s2 = [];
|
|
28962
28970
|
for (; n.length > 0; ) {
|
|
28963
|
-
let
|
|
28964
|
-
for (
|
|
28965
|
-
else if (!
|
|
28971
|
+
let a2 = false, o = [], p2;
|
|
28972
|
+
for (p2 = 0; p2 < n.length; p2++) if (this.rules.other.blockquoteStart.test(n[p2])) o.push(n[p2]), a2 = true;
|
|
28973
|
+
else if (!a2) o.push(n[p2]);
|
|
28966
28974
|
else break;
|
|
28967
|
-
n = n.slice(
|
|
28968
|
-
let
|
|
28969
|
-
`), c2 =
|
|
28975
|
+
n = n.slice(p2);
|
|
28976
|
+
let u = o.join(`
|
|
28977
|
+
`), c2 = u.replace(this.rules.other.blockquoteSetextReplace, `
|
|
28970
28978
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
28971
28979
|
r2 = r2 ? `${r2}
|
|
28972
|
-
${
|
|
28980
|
+
${u}` : u, i2 = i2 ? `${i2}
|
|
28973
28981
|
${c2}` : c2;
|
|
28974
|
-
let
|
|
28975
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top =
|
|
28976
|
-
let
|
|
28977
|
-
if (
|
|
28978
|
-
if (
|
|
28979
|
-
let
|
|
28982
|
+
let g = this.lexer.state.top;
|
|
28983
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(c2, s2, true), this.lexer.state.top = g, n.length === 0) break;
|
|
28984
|
+
let h2 = s2.at(-1);
|
|
28985
|
+
if (h2?.type === "code") break;
|
|
28986
|
+
if (h2?.type === "blockquote") {
|
|
28987
|
+
let R = h2, f2 = R.raw + `
|
|
28980
28988
|
` + n.join(`
|
|
28981
|
-
`),
|
|
28982
|
-
s2[s2.length - 1] =
|
|
28989
|
+
`), O = this.blockquote(f2);
|
|
28990
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.text.length) + O.text;
|
|
28983
28991
|
break;
|
|
28984
|
-
} else if (
|
|
28985
|
-
let
|
|
28992
|
+
} else if (h2?.type === "list") {
|
|
28993
|
+
let R = h2, f2 = R.raw + `
|
|
28986
28994
|
` + n.join(`
|
|
28987
|
-
`),
|
|
28988
|
-
s2[s2.length - 1] =
|
|
28995
|
+
`), O = this.list(f2);
|
|
28996
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - h2.raw.length) + O.raw, i2 = i2.substring(0, i2.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
|
|
28989
28997
|
`);
|
|
28990
28998
|
continue;
|
|
28991
28999
|
}
|
|
@@ -28998,45 +29006,45 @@ ${c2}` : c2;
|
|
|
28998
29006
|
if (t) {
|
|
28999
29007
|
let n = t[1].trim(), r2 = n.length > 1, i2 = { type: "list", raw: "", ordered: r2, start: r2 ? +n.slice(0, -1) : "", loose: false, items: [] };
|
|
29000
29008
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
29001
|
-
let s2 = this.rules.other.listItemRegex(n),
|
|
29009
|
+
let s2 = this.rules.other.listItemRegex(n), a2 = false;
|
|
29002
29010
|
for (; e; ) {
|
|
29003
|
-
let
|
|
29011
|
+
let p2 = false, u = "", c2 = "";
|
|
29004
29012
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
29005
|
-
|
|
29006
|
-
let
|
|
29007
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
29008
|
-
`, 1)[0],
|
|
29009
|
-
if (this.options.pedantic ? (
|
|
29010
|
-
`, e = e.substring(
|
|
29011
|
-
let H = this.rules.other.nextBulletRegex(
|
|
29013
|
+
u = t[0], e = e.substring(u.length);
|
|
29014
|
+
let g = t[2].split(`
|
|
29015
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), h2 = e.split(`
|
|
29016
|
+
`, 1)[0], R = !g.trim(), f2 = 0;
|
|
29017
|
+
if (this.options.pedantic ? (f2 = 2, c2 = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, c2 = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(h2) && (u += h2 + `
|
|
29018
|
+
`, e = e.substring(h2.length + 1), p2 = true), !p2) {
|
|
29019
|
+
let H = this.rules.other.nextBulletRegex(f2), ee = this.rules.other.hrRegex(f2), te = this.rules.other.fencesBeginRegex(f2), ne = this.rules.other.headingBeginRegex(f2), xe = this.rules.other.htmlBeginRegex(f2);
|
|
29012
29020
|
for (; e; ) {
|
|
29013
29021
|
let Z = e.split(`
|
|
29014
29022
|
`, 1)[0], A2;
|
|
29015
|
-
if (
|
|
29016
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
29017
|
-
` + A2.slice(
|
|
29023
|
+
if (h2 = Z, this.options.pedantic ? (h2 = h2.replace(this.rules.other.listReplaceNesting, " "), A2 = h2) : A2 = h2.replace(this.rules.other.tabCharGlobal, " "), te.test(h2) || ne.test(h2) || xe.test(h2) || H.test(h2) || ee.test(h2)) break;
|
|
29024
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !h2.trim()) c2 += `
|
|
29025
|
+
` + A2.slice(f2);
|
|
29018
29026
|
else {
|
|
29019
|
-
if (
|
|
29027
|
+
if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
|
|
29020
29028
|
c2 += `
|
|
29021
|
-
` +
|
|
29029
|
+
` + h2;
|
|
29022
29030
|
}
|
|
29023
|
-
!
|
|
29024
|
-
`, e = e.substring(Z.length + 1),
|
|
29031
|
+
!R && !h2.trim() && (R = true), u += Z + `
|
|
29032
|
+
`, e = e.substring(Z.length + 1), g = A2.slice(f2);
|
|
29025
29033
|
}
|
|
29026
29034
|
}
|
|
29027
|
-
i2.loose || (
|
|
29028
|
-
let
|
|
29029
|
-
this.options.gfm && (
|
|
29035
|
+
i2.loose || (a2 ? i2.loose = true : this.rules.other.doubleBlankLine.test(u) && (a2 = true));
|
|
29036
|
+
let O = null, Y2;
|
|
29037
|
+
this.options.gfm && (O = this.rules.other.listIsTask.exec(c2), O && (Y2 = O[0] !== "[ ] ", c2 = c2.replace(this.rules.other.listReplaceTask, ""))), i2.items.push({ type: "list_item", raw: u, task: !!O, checked: Y2, loose: false, text: c2, tokens: [] }), i2.raw += u;
|
|
29030
29038
|
}
|
|
29031
|
-
let
|
|
29032
|
-
if (
|
|
29039
|
+
let o = i2.items.at(-1);
|
|
29040
|
+
if (o) o.raw = o.raw.trimEnd(), o.text = o.text.trimEnd();
|
|
29033
29041
|
else return;
|
|
29034
29042
|
i2.raw = i2.raw.trimEnd();
|
|
29035
|
-
for (let
|
|
29036
|
-
let
|
|
29043
|
+
for (let p2 = 0; p2 < i2.items.length; p2++) if (this.lexer.state.top = false, i2.items[p2].tokens = this.lexer.blockTokens(i2.items[p2].text, []), !i2.loose) {
|
|
29044
|
+
let u = i2.items[p2].tokens.filter((g) => g.type === "space"), c2 = u.length > 0 && u.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
29037
29045
|
i2.loose = c2;
|
|
29038
29046
|
}
|
|
29039
|
-
if (i2.loose) for (let
|
|
29047
|
+
if (i2.loose) for (let p2 = 0; p2 < i2.items.length; p2++) i2.items[p2].loose = true;
|
|
29040
29048
|
return i2;
|
|
29041
29049
|
}
|
|
29042
29050
|
}
|
|
@@ -29057,9 +29065,9 @@ ${c2}` : c2;
|
|
|
29057
29065
|
let n = V(t[1]), r2 = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i2 = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
29058
29066
|
`) : [], s2 = { type: "table", raw: t[0], header: [], align: [], rows: [] };
|
|
29059
29067
|
if (n.length === r2.length) {
|
|
29060
|
-
for (let
|
|
29061
|
-
for (let
|
|
29062
|
-
for (let
|
|
29068
|
+
for (let a2 of r2) this.rules.other.tableAlignRight.test(a2) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(a2) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(a2) ? s2.align.push("left") : s2.align.push(null);
|
|
29069
|
+
for (let a2 = 0; a2 < n.length; a2++) s2.header.push({ text: n[a2], tokens: this.lexer.inline(n[a2]), header: true, align: s2.align[a2] });
|
|
29070
|
+
for (let a2 of i2) s2.rows.push(V(a2, s2.header.length).map((o, p2) => ({ text: o, tokens: this.lexer.inline(o), header: false, align: s2.align[p2] })));
|
|
29063
29071
|
return s2;
|
|
29064
29072
|
}
|
|
29065
29073
|
}
|
|
@@ -29096,11 +29104,11 @@ ${c2}` : c2;
|
|
|
29096
29104
|
let s2 = z(n.slice(0, -1), "\\");
|
|
29097
29105
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
29098
29106
|
} else {
|
|
29099
|
-
let s2 =
|
|
29107
|
+
let s2 = fe(t[2], "()");
|
|
29100
29108
|
if (s2 === -2) return;
|
|
29101
29109
|
if (s2 > -1) {
|
|
29102
|
-
let
|
|
29103
|
-
t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0,
|
|
29110
|
+
let o = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
29111
|
+
t[2] = t[2].substring(0, s2), t[0] = t[0].substring(0, o).trim(), t[3] = "";
|
|
29104
29112
|
}
|
|
29105
29113
|
}
|
|
29106
29114
|
let r2 = t[2], i2 = "";
|
|
@@ -29108,7 +29116,7 @@ ${c2}` : c2;
|
|
|
29108
29116
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
29109
29117
|
s2 && (r2 = s2[1], i2 = s2[3]);
|
|
29110
29118
|
} else i2 = t[3] ? t[3].slice(1, -1) : "";
|
|
29111
|
-
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)),
|
|
29119
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), me(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i2 && i2.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
|
|
29112
29120
|
}
|
|
29113
29121
|
}
|
|
29114
29122
|
reflink(e, t) {
|
|
@@ -29119,32 +29127,32 @@ ${c2}` : c2;
|
|
|
29119
29127
|
let s2 = n[0].charAt(0);
|
|
29120
29128
|
return { type: "text", raw: s2, text: s2 };
|
|
29121
29129
|
}
|
|
29122
|
-
return
|
|
29130
|
+
return me(n, i2, n[0], this.lexer, this.rules);
|
|
29123
29131
|
}
|
|
29124
29132
|
}
|
|
29125
29133
|
emStrong(e, t, n = "") {
|
|
29126
29134
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
29127
29135
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
29128
29136
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
29129
|
-
let s2 = [...r2[0]].length - 1,
|
|
29137
|
+
let s2 = [...r2[0]].length - 1, a2, o, p2 = s2, u = 0, c2 = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
29130
29138
|
for (c2.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = c2.exec(t)) != null; ) {
|
|
29131
|
-
if (
|
|
29132
|
-
if (
|
|
29133
|
-
|
|
29139
|
+
if (a2 = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !a2) continue;
|
|
29140
|
+
if (o = [...a2].length, r2[3] || r2[4]) {
|
|
29141
|
+
p2 += o;
|
|
29134
29142
|
continue;
|
|
29135
|
-
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 +
|
|
29136
|
-
|
|
29143
|
+
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + o) % 3)) {
|
|
29144
|
+
u += o;
|
|
29137
29145
|
continue;
|
|
29138
29146
|
}
|
|
29139
|
-
if (
|
|
29140
|
-
|
|
29141
|
-
let
|
|
29142
|
-
if (Math.min(s2,
|
|
29143
|
-
let
|
|
29144
|
-
return { type: "em", raw:
|
|
29147
|
+
if (p2 -= o, p2 > 0) continue;
|
|
29148
|
+
o = Math.min(o, o + p2 + u);
|
|
29149
|
+
let g = [...r2[0]][0].length, h2 = e.slice(0, s2 + r2.index + g + o);
|
|
29150
|
+
if (Math.min(s2, o) % 2) {
|
|
29151
|
+
let f2 = h2.slice(1, -1);
|
|
29152
|
+
return { type: "em", raw: h2, text: f2, tokens: this.lexer.inlineTokens(f2) };
|
|
29145
29153
|
}
|
|
29146
|
-
let
|
|
29147
|
-
return { type: "strong", raw:
|
|
29154
|
+
let R = h2.slice(2, -2);
|
|
29155
|
+
return { type: "strong", raw: h2, text: R, tokens: this.lexer.inlineTokens(R) };
|
|
29148
29156
|
}
|
|
29149
29157
|
}
|
|
29150
29158
|
}
|
|
@@ -29193,19 +29201,19 @@ ${c2}` : c2;
|
|
|
29193
29201
|
}
|
|
29194
29202
|
}
|
|
29195
29203
|
};
|
|
29196
|
-
var
|
|
29204
|
+
var x = class l {
|
|
29197
29205
|
constructor(e) {
|
|
29198
29206
|
__publicField$2(this, "tokens");
|
|
29199
29207
|
__publicField$2(this, "options");
|
|
29200
29208
|
__publicField$2(this, "state");
|
|
29201
29209
|
__publicField$2(this, "tokenizer");
|
|
29202
29210
|
__publicField$2(this, "inlineQueue");
|
|
29203
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
29204
|
-
let t = { other: m, block:
|
|
29205
|
-
this.options.pedantic ? (t.block =
|
|
29211
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
|
|
29212
|
+
let t = { other: m, block: C.normal, inline: M$1.normal };
|
|
29213
|
+
this.options.pedantic ? (t.block = C.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
29206
29214
|
}
|
|
29207
29215
|
static get rules() {
|
|
29208
|
-
return { block:
|
|
29216
|
+
return { block: C, inline: M$1 };
|
|
29209
29217
|
}
|
|
29210
29218
|
static lex(e, t) {
|
|
29211
29219
|
return new l(t).lex(e);
|
|
@@ -29285,9 +29293,9 @@ ${c2}` : c2;
|
|
|
29285
29293
|
}
|
|
29286
29294
|
let i2 = e;
|
|
29287
29295
|
if (this.options.extensions?.startBlock) {
|
|
29288
|
-
let s2 = 1 / 0,
|
|
29289
|
-
this.options.extensions.startBlock.forEach((
|
|
29290
|
-
|
|
29296
|
+
let s2 = 1 / 0, a2 = e.slice(1), o;
|
|
29297
|
+
this.options.extensions.startBlock.forEach((p2) => {
|
|
29298
|
+
o = p2.call({ lexer: this }, a2), typeof o == "number" && o >= 0 && (s2 = Math.min(s2, o));
|
|
29291
29299
|
}), s2 < 1 / 0 && s2 >= 0 && (i2 = e.substring(0, s2 + 1));
|
|
29292
29300
|
}
|
|
29293
29301
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i2))) {
|
|
@@ -29327,11 +29335,12 @@ ${c2}` : c2;
|
|
|
29327
29335
|
if (o.length > 0) for (; (r2 = this.tokenizer.rules.inline.reflinkSearch.exec(n)) != null; ) o.includes(r2[0].slice(r2[0].lastIndexOf("[") + 1, -1)) && (n = n.slice(0, r2.index) + "[" + "a".repeat(r2[0].length - 2) + "]" + n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));
|
|
29328
29336
|
}
|
|
29329
29337
|
for (; (r2 = this.tokenizer.rules.inline.anyPunctuation.exec(n)) != null; ) n = n.slice(0, r2.index) + "++" + n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);
|
|
29330
|
-
|
|
29338
|
+
let i2;
|
|
29339
|
+
for (; (r2 = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) i2 = r2[2] ? r2[2].length : 0, n = n.slice(0, r2.index + i2) + "[" + "a".repeat(r2[0].length - i2 - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
|
|
29331
29340
|
n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
|
|
29332
|
-
let
|
|
29341
|
+
let s2 = false, a2 = "";
|
|
29333
29342
|
for (; e; ) {
|
|
29334
|
-
|
|
29343
|
+
s2 || (a2 = ""), s2 = false;
|
|
29335
29344
|
let o;
|
|
29336
29345
|
if (this.options.extensions?.inline?.some((u) => (o = u.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
|
|
29337
29346
|
if (o = this.tokenizer.escape(e)) {
|
|
@@ -29352,7 +29361,7 @@ ${c2}` : c2;
|
|
|
29352
29361
|
o.type === "text" && u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
29353
29362
|
continue;
|
|
29354
29363
|
}
|
|
29355
|
-
if (o = this.tokenizer.emStrong(e, n,
|
|
29364
|
+
if (o = this.tokenizer.emStrong(e, n, a2)) {
|
|
29356
29365
|
e = e.substring(o.raw.length), t.push(o);
|
|
29357
29366
|
continue;
|
|
29358
29367
|
}
|
|
@@ -29376,15 +29385,15 @@ ${c2}` : c2;
|
|
|
29376
29385
|
e = e.substring(o.raw.length), t.push(o);
|
|
29377
29386
|
continue;
|
|
29378
29387
|
}
|
|
29379
|
-
let
|
|
29388
|
+
let p2 = e;
|
|
29380
29389
|
if (this.options.extensions?.startInline) {
|
|
29381
|
-
let u = 1 / 0,
|
|
29382
|
-
this.options.extensions.startInline.forEach((
|
|
29383
|
-
|
|
29384
|
-
}), u < 1 / 0 && u >= 0 && (
|
|
29390
|
+
let u = 1 / 0, c2 = e.slice(1), g;
|
|
29391
|
+
this.options.extensions.startInline.forEach((h2) => {
|
|
29392
|
+
g = h2.call({ lexer: this }, c2), typeof g == "number" && g >= 0 && (u = Math.min(u, g));
|
|
29393
|
+
}), u < 1 / 0 && u >= 0 && (p2 = e.substring(0, u + 1));
|
|
29385
29394
|
}
|
|
29386
|
-
if (o = this.tokenizer.inlineText(
|
|
29387
|
-
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (
|
|
29395
|
+
if (o = this.tokenizer.inlineText(p2)) {
|
|
29396
|
+
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (a2 = o.raw.slice(-1)), s2 = true;
|
|
29388
29397
|
let u = t.at(-1);
|
|
29389
29398
|
u?.type === "text" ? (u.raw += o.raw, u.text += o.text) : t.push(o);
|
|
29390
29399
|
continue;
|
|
@@ -29404,7 +29413,7 @@ ${c2}` : c2;
|
|
|
29404
29413
|
constructor(e) {
|
|
29405
29414
|
__publicField$2(this, "options");
|
|
29406
29415
|
__publicField$2(this, "parser");
|
|
29407
|
-
this.options = e ||
|
|
29416
|
+
this.options = e || T;
|
|
29408
29417
|
}
|
|
29409
29418
|
space(e) {
|
|
29410
29419
|
return "";
|
|
@@ -29437,9 +29446,9 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
29437
29446
|
}
|
|
29438
29447
|
list(e) {
|
|
29439
29448
|
let t = e.ordered, n = e.start, r2 = "";
|
|
29440
|
-
for (let
|
|
29441
|
-
let
|
|
29442
|
-
r2 += this.listitem(
|
|
29449
|
+
for (let a2 = 0; a2 < e.items.length; a2++) {
|
|
29450
|
+
let o = e.items[a2];
|
|
29451
|
+
r2 += this.listitem(o);
|
|
29443
29452
|
}
|
|
29444
29453
|
let i2 = t ? "ol" : "ul", s2 = t && n !== 1 ? ' start="' + n + '"' : "";
|
|
29445
29454
|
return "<" + i2 + s2 + `>
|
|
@@ -29470,7 +29479,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
29470
29479
|
for (let i2 = 0; i2 < e.rows.length; i2++) {
|
|
29471
29480
|
let s2 = e.rows[i2];
|
|
29472
29481
|
n = "";
|
|
29473
|
-
for (let
|
|
29482
|
+
for (let a2 = 0; a2 < s2.length; a2++) n += this.tablecell(s2[a2]);
|
|
29474
29483
|
r2 += this.tablerow({ text: n });
|
|
29475
29484
|
}
|
|
29476
29485
|
return r2 && (r2 = `<tbody>${r2}</tbody>`), `<table>
|
|
@@ -29552,12 +29561,12 @@ ${e}</tr>
|
|
|
29552
29561
|
return "";
|
|
29553
29562
|
}
|
|
29554
29563
|
};
|
|
29555
|
-
var
|
|
29564
|
+
var b = class l2 {
|
|
29556
29565
|
constructor(e) {
|
|
29557
29566
|
__publicField$2(this, "options");
|
|
29558
29567
|
__publicField$2(this, "renderer");
|
|
29559
29568
|
__publicField$2(this, "textRenderer");
|
|
29560
|
-
this.options = e ||
|
|
29569
|
+
this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $$1();
|
|
29561
29570
|
}
|
|
29562
29571
|
static parse(e, t) {
|
|
29563
29572
|
return new l2(t).parse(e);
|
|
@@ -29570,9 +29579,9 @@ ${e}</tr>
|
|
|
29570
29579
|
for (let r2 = 0; r2 < e.length; r2++) {
|
|
29571
29580
|
let i2 = e[r2];
|
|
29572
29581
|
if (this.options.extensions?.renderers?.[i2.type]) {
|
|
29573
|
-
let
|
|
29574
|
-
if (
|
|
29575
|
-
n +=
|
|
29582
|
+
let a2 = i2, o = this.options.extensions.renderers[a2.type].call({ parser: this }, a2);
|
|
29583
|
+
if (o !== false || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(a2.type)) {
|
|
29584
|
+
n += o || "";
|
|
29576
29585
|
continue;
|
|
29577
29586
|
}
|
|
29578
29587
|
}
|
|
@@ -29619,16 +29628,16 @@ ${e}</tr>
|
|
|
29619
29628
|
continue;
|
|
29620
29629
|
}
|
|
29621
29630
|
case "text": {
|
|
29622
|
-
let
|
|
29623
|
-
for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; )
|
|
29624
|
-
` + this.renderer.text(
|
|
29625
|
-
t ? n += this.renderer.paragraph({ type: "paragraph", raw:
|
|
29631
|
+
let a2 = s2, o = this.renderer.text(a2);
|
|
29632
|
+
for (; r2 + 1 < e.length && e[r2 + 1].type === "text"; ) a2 = e[++r2], o += `
|
|
29633
|
+
` + this.renderer.text(a2);
|
|
29634
|
+
t ? n += this.renderer.paragraph({ type: "paragraph", raw: o, text: o, tokens: [{ type: "text", raw: o, text: o, escaped: true }] }) : n += o;
|
|
29626
29635
|
continue;
|
|
29627
29636
|
}
|
|
29628
29637
|
default: {
|
|
29629
|
-
let
|
|
29630
|
-
if (this.options.silent) return console.error(
|
|
29631
|
-
throw new Error(
|
|
29638
|
+
let a2 = 'Token with "' + s2.type + '" type was not found.';
|
|
29639
|
+
if (this.options.silent) return console.error(a2), "";
|
|
29640
|
+
throw new Error(a2);
|
|
29632
29641
|
}
|
|
29633
29642
|
}
|
|
29634
29643
|
}
|
|
@@ -29639,9 +29648,9 @@ ${e}</tr>
|
|
|
29639
29648
|
for (let r2 = 0; r2 < e.length; r2++) {
|
|
29640
29649
|
let i2 = e[r2];
|
|
29641
29650
|
if (this.options.extensions?.renderers?.[i2.type]) {
|
|
29642
|
-
let
|
|
29643
|
-
if (
|
|
29644
|
-
n +=
|
|
29651
|
+
let a2 = this.options.extensions.renderers[i2.type].call({ parser: this }, i2);
|
|
29652
|
+
if (a2 !== false || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(i2.type)) {
|
|
29653
|
+
n += a2 || "";
|
|
29645
29654
|
continue;
|
|
29646
29655
|
}
|
|
29647
29656
|
}
|
|
@@ -29688,9 +29697,9 @@ ${e}</tr>
|
|
|
29688
29697
|
break;
|
|
29689
29698
|
}
|
|
29690
29699
|
default: {
|
|
29691
|
-
let
|
|
29692
|
-
if (this.options.silent) return console.error(
|
|
29693
|
-
throw new Error(
|
|
29700
|
+
let a2 = 'Token with "' + s2.type + '" type was not found.';
|
|
29701
|
+
if (this.options.silent) return console.error(a2), "";
|
|
29702
|
+
throw new Error(a2);
|
|
29694
29703
|
}
|
|
29695
29704
|
}
|
|
29696
29705
|
}
|
|
@@ -29701,7 +29710,7 @@ ${e}</tr>
|
|
|
29701
29710
|
constructor(e) {
|
|
29702
29711
|
__publicField$2(this, "options");
|
|
29703
29712
|
__publicField$2(this, "block");
|
|
29704
|
-
this.options = e ||
|
|
29713
|
+
this.options = e || T;
|
|
29705
29714
|
}
|
|
29706
29715
|
preprocess(e) {
|
|
29707
29716
|
return e;
|
|
@@ -29716,10 +29725,10 @@ ${e}</tr>
|
|
|
29716
29725
|
return e;
|
|
29717
29726
|
}
|
|
29718
29727
|
provideLexer() {
|
|
29719
|
-
return this.block ?
|
|
29728
|
+
return this.block ? x.lex : x.lexInline;
|
|
29720
29729
|
}
|
|
29721
29730
|
provideParser() {
|
|
29722
|
-
return this.block ?
|
|
29731
|
+
return this.block ? b.parse : b.parseInline;
|
|
29723
29732
|
}
|
|
29724
29733
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
29725
29734
|
var B = class {
|
|
@@ -29728,10 +29737,10 @@ ${e}</tr>
|
|
|
29728
29737
|
__publicField$2(this, "options", this.setOptions);
|
|
29729
29738
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
29730
29739
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
29731
|
-
__publicField$2(this, "Parser",
|
|
29740
|
+
__publicField$2(this, "Parser", b);
|
|
29732
29741
|
__publicField$2(this, "Renderer", P);
|
|
29733
29742
|
__publicField$2(this, "TextRenderer", $$1);
|
|
29734
|
-
__publicField$2(this, "Lexer",
|
|
29743
|
+
__publicField$2(this, "Lexer", x);
|
|
29735
29744
|
__publicField$2(this, "Tokenizer", y);
|
|
29736
29745
|
__publicField$2(this, "Hooks", S);
|
|
29737
29746
|
this.use(...e);
|
|
@@ -29742,7 +29751,7 @@ ${e}</tr>
|
|
|
29742
29751
|
case "table": {
|
|
29743
29752
|
let i2 = r2;
|
|
29744
29753
|
for (let s2 of i2.header) n = n.concat(this.walkTokens(s2.tokens, t));
|
|
29745
|
-
for (let s2 of i2.rows) for (let
|
|
29754
|
+
for (let s2 of i2.rows) for (let a2 of s2) n = n.concat(this.walkTokens(a2.tokens, t));
|
|
29746
29755
|
break;
|
|
29747
29756
|
}
|
|
29748
29757
|
case "list": {
|
|
@@ -29753,8 +29762,8 @@ ${e}</tr>
|
|
|
29753
29762
|
default: {
|
|
29754
29763
|
let i2 = r2;
|
|
29755
29764
|
this.defaults.extensions?.childTokens?.[i2.type] ? this.defaults.extensions.childTokens[i2.type].forEach((s2) => {
|
|
29756
|
-
let
|
|
29757
|
-
n = n.concat(this.walkTokens(
|
|
29765
|
+
let a2 = i2[s2].flat(1 / 0);
|
|
29766
|
+
n = n.concat(this.walkTokens(a2, t));
|
|
29758
29767
|
}) : i2.tokens && (n = n.concat(this.walkTokens(i2.tokens, t)));
|
|
29759
29768
|
}
|
|
29760
29769
|
}
|
|
@@ -29768,9 +29777,9 @@ ${e}</tr>
|
|
|
29768
29777
|
if (!i2.name) throw new Error("extension name required");
|
|
29769
29778
|
if ("renderer" in i2) {
|
|
29770
29779
|
let s2 = t.renderers[i2.name];
|
|
29771
|
-
s2 ? t.renderers[i2.name] = function(...
|
|
29772
|
-
let
|
|
29773
|
-
return
|
|
29780
|
+
s2 ? t.renderers[i2.name] = function(...a2) {
|
|
29781
|
+
let o = i2.renderer.apply(this, a2);
|
|
29782
|
+
return o === false && (o = s2.apply(this, a2)), o;
|
|
29774
29783
|
} : t.renderers[i2.name] = i2.renderer;
|
|
29775
29784
|
}
|
|
29776
29785
|
if ("tokenizer" in i2) {
|
|
@@ -29784,10 +29793,10 @@ ${e}</tr>
|
|
|
29784
29793
|
for (let s2 in n.renderer) {
|
|
29785
29794
|
if (!(s2 in i2)) throw new Error(`renderer '${s2}' does not exist`);
|
|
29786
29795
|
if (["options", "parser"].includes(s2)) continue;
|
|
29787
|
-
let
|
|
29788
|
-
i2[
|
|
29789
|
-
let c2 =
|
|
29790
|
-
return c2 === false && (c2 =
|
|
29796
|
+
let a2 = s2, o = n.renderer[a2], p2 = i2[a2];
|
|
29797
|
+
i2[a2] = (...u) => {
|
|
29798
|
+
let c2 = o.apply(i2, u);
|
|
29799
|
+
return c2 === false && (c2 = p2.apply(i2, u)), c2 || "";
|
|
29791
29800
|
};
|
|
29792
29801
|
}
|
|
29793
29802
|
r2.renderer = i2;
|
|
@@ -29797,10 +29806,10 @@ ${e}</tr>
|
|
|
29797
29806
|
for (let s2 in n.tokenizer) {
|
|
29798
29807
|
if (!(s2 in i2)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
29799
29808
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
29800
|
-
let
|
|
29801
|
-
i2[
|
|
29802
|
-
let c2 =
|
|
29803
|
-
return c2 === false && (c2 =
|
|
29809
|
+
let a2 = s2, o = n.tokenizer[a2], p2 = i2[a2];
|
|
29810
|
+
i2[a2] = (...u) => {
|
|
29811
|
+
let c2 = o.apply(i2, u);
|
|
29812
|
+
return c2 === false && (c2 = p2.apply(i2, u)), c2;
|
|
29804
29813
|
};
|
|
29805
29814
|
}
|
|
29806
29815
|
r2.tokenizer = i2;
|
|
@@ -29810,23 +29819,30 @@ ${e}</tr>
|
|
|
29810
29819
|
for (let s2 in n.hooks) {
|
|
29811
29820
|
if (!(s2 in i2)) throw new Error(`hook '${s2}' does not exist`);
|
|
29812
29821
|
if (["options", "block"].includes(s2)) continue;
|
|
29813
|
-
let
|
|
29814
|
-
S.passThroughHooks.has(s2) ? i2[
|
|
29815
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return
|
|
29816
|
-
|
|
29817
|
-
|
|
29818
|
-
|
|
29819
|
-
let c2 =
|
|
29820
|
-
return
|
|
29822
|
+
let a2 = s2, o = n.hooks[a2], p2 = i2[a2];
|
|
29823
|
+
S.passThroughHooks.has(s2) ? i2[a2] = (u) => {
|
|
29824
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
|
|
29825
|
+
let g = await o.call(i2, u);
|
|
29826
|
+
return p2.call(i2, g);
|
|
29827
|
+
})();
|
|
29828
|
+
let c2 = o.call(i2, u);
|
|
29829
|
+
return p2.call(i2, c2);
|
|
29830
|
+
} : i2[a2] = (...u) => {
|
|
29831
|
+
if (this.defaults.async) return (async () => {
|
|
29832
|
+
let g = await o.apply(i2, u);
|
|
29833
|
+
return g === false && (g = await p2.apply(i2, u)), g;
|
|
29834
|
+
})();
|
|
29835
|
+
let c2 = o.apply(i2, u);
|
|
29836
|
+
return c2 === false && (c2 = p2.apply(i2, u)), c2;
|
|
29821
29837
|
};
|
|
29822
29838
|
}
|
|
29823
29839
|
r2.hooks = i2;
|
|
29824
29840
|
}
|
|
29825
29841
|
if (n.walkTokens) {
|
|
29826
29842
|
let i2 = this.defaults.walkTokens, s2 = n.walkTokens;
|
|
29827
|
-
r2.walkTokens = function(
|
|
29828
|
-
let
|
|
29829
|
-
return
|
|
29843
|
+
r2.walkTokens = function(a2) {
|
|
29844
|
+
let o = [];
|
|
29845
|
+
return o.push(s2.call(this, a2)), i2 && (o = o.concat(i2.call(this, a2))), o;
|
|
29830
29846
|
};
|
|
29831
29847
|
}
|
|
29832
29848
|
this.defaults = { ...this.defaults, ...r2 };
|
|
@@ -29836,28 +29852,31 @@ ${e}</tr>
|
|
|
29836
29852
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
29837
29853
|
}
|
|
29838
29854
|
lexer(e, t) {
|
|
29839
|
-
return
|
|
29855
|
+
return x.lex(e, t ?? this.defaults);
|
|
29840
29856
|
}
|
|
29841
29857
|
parser(e, t) {
|
|
29842
|
-
return
|
|
29858
|
+
return b.parse(e, t ?? this.defaults);
|
|
29843
29859
|
}
|
|
29844
29860
|
parseMarkdown(e) {
|
|
29845
29861
|
return (n, r2) => {
|
|
29846
|
-
let i2 = { ...r2 }, s2 = { ...this.defaults, ...i2 },
|
|
29847
|
-
if (this.defaults.async === true && i2.async === false) return
|
|
29848
|
-
if (typeof n > "u" || n === null) return
|
|
29849
|
-
if (typeof n != "string") return
|
|
29850
|
-
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e)
|
|
29851
|
-
|
|
29852
|
-
|
|
29862
|
+
let i2 = { ...r2 }, s2 = { ...this.defaults, ...i2 }, a2 = this.onError(!!s2.silent, !!s2.async);
|
|
29863
|
+
if (this.defaults.async === true && i2.async === false) return a2(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
29864
|
+
if (typeof n > "u" || n === null) return a2(new Error("marked(): input parameter is undefined or null"));
|
|
29865
|
+
if (typeof n != "string") return a2(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
29866
|
+
if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
|
|
29867
|
+
let o = s2.hooks ? await s2.hooks.preprocess(n) : n, u = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s2), c2 = s2.hooks ? await s2.hooks.processAllTokens(u) : u;
|
|
29868
|
+
s2.walkTokens && await Promise.all(this.walkTokens(c2, s2.walkTokens));
|
|
29869
|
+
let h2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(c2, s2);
|
|
29870
|
+
return s2.hooks ? await s2.hooks.postprocess(h2) : h2;
|
|
29871
|
+
})().catch(a2);
|
|
29853
29872
|
try {
|
|
29854
29873
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
29855
|
-
let p2 =
|
|
29874
|
+
let p2 = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
|
|
29856
29875
|
s2.hooks && (p2 = s2.hooks.processAllTokens(p2)), s2.walkTokens && this.walkTokens(p2, s2.walkTokens);
|
|
29857
|
-
let c2 =
|
|
29876
|
+
let c2 = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p2, s2);
|
|
29858
29877
|
return s2.hooks && (c2 = s2.hooks.postprocess(c2)), c2;
|
|
29859
|
-
} catch (
|
|
29860
|
-
return o
|
|
29878
|
+
} catch (o) {
|
|
29879
|
+
return a2(o);
|
|
29861
29880
|
}
|
|
29862
29881
|
};
|
|
29863
29882
|
}
|
|
@@ -29874,38 +29893,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
29874
29893
|
}
|
|
29875
29894
|
};
|
|
29876
29895
|
var _ = new B();
|
|
29877
|
-
function
|
|
29896
|
+
function k$1(l3, e) {
|
|
29878
29897
|
return _.parse(l3, e);
|
|
29879
29898
|
}
|
|
29880
|
-
|
|
29881
|
-
return _.setOptions(l3),
|
|
29899
|
+
k$1.options = k$1.setOptions = function(l3) {
|
|
29900
|
+
return _.setOptions(l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
29882
29901
|
};
|
|
29883
|
-
|
|
29884
|
-
|
|
29885
|
-
|
|
29886
|
-
return _.use(...l3),
|
|
29902
|
+
k$1.getDefaults = L;
|
|
29903
|
+
k$1.defaults = T;
|
|
29904
|
+
k$1.use = function(...l3) {
|
|
29905
|
+
return _.use(...l3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
29887
29906
|
};
|
|
29888
|
-
|
|
29907
|
+
k$1.walkTokens = function(l3, e) {
|
|
29889
29908
|
return _.walkTokens(l3, e);
|
|
29890
29909
|
};
|
|
29891
|
-
|
|
29892
|
-
|
|
29893
|
-
|
|
29894
|
-
|
|
29895
|
-
|
|
29896
|
-
|
|
29897
|
-
|
|
29898
|
-
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29903
|
-
|
|
29904
|
-
|
|
29905
|
-
|
|
29906
|
-
|
|
29907
|
-
|
|
29908
|
-
|
|
29910
|
+
k$1.parseInline = _.parseInline;
|
|
29911
|
+
k$1.Parser = b;
|
|
29912
|
+
k$1.parser = b.parse;
|
|
29913
|
+
k$1.Renderer = P;
|
|
29914
|
+
k$1.TextRenderer = $$1;
|
|
29915
|
+
k$1.Lexer = x;
|
|
29916
|
+
k$1.lexer = x.lex;
|
|
29917
|
+
k$1.Tokenizer = y;
|
|
29918
|
+
k$1.Hooks = S;
|
|
29919
|
+
k$1.parse = k$1;
|
|
29920
|
+
k$1.options;
|
|
29921
|
+
k$1.setOptions;
|
|
29922
|
+
k$1.use;
|
|
29923
|
+
k$1.walkTokens;
|
|
29924
|
+
k$1.parseInline;
|
|
29925
|
+
b.parse;
|
|
29926
|
+
x.lex;
|
|
29927
|
+
k$1.use({
|
|
29909
29928
|
breaks: false,
|
|
29910
29929
|
// Use proper paragraphs, not <br> tags
|
|
29911
29930
|
gfm: true
|
|
@@ -29916,7 +29935,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
29916
29935
|
return createDocFromHTML(html2, editor, options);
|
|
29917
29936
|
}
|
|
29918
29937
|
function convertMarkdownToHTML(markdown) {
|
|
29919
|
-
let html2 =
|
|
29938
|
+
let html2 = k$1.parse(markdown, { async: false });
|
|
29920
29939
|
return html2.replace(/<\/p>\n<ul>/g, "</p>\n<p> </p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p> </p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p> </p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p> </p>\n<h");
|
|
29921
29940
|
}
|
|
29922
29941
|
function processContent({ content: content2, type: type2, editor }) {
|
|
@@ -35350,7 +35369,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35350
35369
|
static getStoredSuperdocVersion(docx) {
|
|
35351
35370
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35352
35371
|
}
|
|
35353
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.31.0-next.
|
|
35372
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.31.0-next.9") {
|
|
35354
35373
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35355
35374
|
}
|
|
35356
35375
|
/**
|
|
@@ -35744,7 +35763,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35744
35763
|
};
|
|
35745
35764
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
35746
35765
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
35747
|
-
const relationships = relsData.elements.find((
|
|
35766
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
35748
35767
|
const newDocRels = [];
|
|
35749
35768
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
35750
35769
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -35785,7 +35804,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35785
35804
|
}
|
|
35786
35805
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35787
35806
|
if (params2.relationships.length) {
|
|
35788
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
35807
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
35789
35808
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35790
35809
|
declaration: this.initialJSON?.declaration,
|
|
35791
35810
|
elements: [
|
|
@@ -35839,7 +35858,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35839
35858
|
}
|
|
35840
35859
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35841
35860
|
if (params2.relationships.length) {
|
|
35842
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
35861
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
35843
35862
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35844
35863
|
declaration: this.initialJSON?.declaration,
|
|
35845
35864
|
elements: [
|
|
@@ -35858,7 +35877,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
35858
35877
|
};
|
|
35859
35878
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
35860
35879
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
35861
|
-
const relationships = relsData.elements.find((
|
|
35880
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
35862
35881
|
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
35863
35882
|
};
|
|
35864
35883
|
exportProcessMediaFiles_fn = async function(media2 = {}) {
|
|
@@ -36054,8 +36073,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36054
36073
|
return n2;
|
|
36055
36074
|
}
|
|
36056
36075
|
function n(e2, t2, r22, n2, i22, s22) {
|
|
36057
|
-
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !==
|
|
36058
|
-
t2 && !r22 || (
|
|
36076
|
+
var a2, o, h2 = e2.file, u = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p2 = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
36077
|
+
t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
|
|
36059
36078
|
var S2 = 0;
|
|
36060
36079
|
t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
|
|
36061
36080
|
var z2 = 0, C2 = 0;
|
|
@@ -36066,9 +36085,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36066
36085
|
return 63 & (e3 || 0);
|
|
36067
36086
|
})(h2.dosPermissions)), a2 = k2.getUTCHours(), a2 <<= 6, a2 |= k2.getUTCMinutes(), a2 <<= 5, a2 |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p2), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
|
|
36068
36087
|
var E2 = "";
|
|
36069
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(
|
|
36088
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u.magic, E2 += A2(a2, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p2.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p2 };
|
|
36070
36089
|
}
|
|
36071
|
-
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"),
|
|
36090
|
+
var I2 = e("../utils"), i2 = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
|
|
36072
36091
|
function s2(e2, t2, r22, n2) {
|
|
36073
36092
|
i2.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
36074
36093
|
}
|
|
@@ -36086,7 +36105,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36086
36105
|
this.accumulate = false;
|
|
36087
36106
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36088
36107
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36089
|
-
return
|
|
36108
|
+
return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36090
36109
|
})(e2), meta: { percent: 100 } });
|
|
36091
36110
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36092
36111
|
this.currentFile = null;
|
|
@@ -36094,7 +36113,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
36094
36113
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36095
36114
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i22) {
|
|
36096
36115
|
var s22 = I2.transformTo("string", i22(n3));
|
|
36097
|
-
return
|
|
36116
|
+
return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
36098
36117
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36099
36118
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36100
36119
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -37294,11 +37313,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37294
37313
|
return -1 ^ e2;
|
|
37295
37314
|
};
|
|
37296
37315
|
}, {}], 46: [function(e, t, r2) {
|
|
37297
|
-
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15,
|
|
37298
|
-
function
|
|
37316
|
+
var h2, c2 = e("../utils/common"), u = e("./trees"), d2 = e("./adler32"), p2 = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i2 = 2, v2 = 8, y2 = 9, s2 = 286, a2 = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
|
|
37317
|
+
function R(e2, t2) {
|
|
37299
37318
|
return e2.msg = n[t2], t2;
|
|
37300
37319
|
}
|
|
37301
|
-
function
|
|
37320
|
+
function T2(e2) {
|
|
37302
37321
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37303
37322
|
}
|
|
37304
37323
|
function D2(e2) {
|
|
@@ -37342,7 +37361,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37342
37361
|
i22 += f22;
|
|
37343
37362
|
}
|
|
37344
37363
|
if (0 === e2.strm.avail_in) break;
|
|
37345
|
-
if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >=
|
|
37364
|
+
if (a22 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u2 = i22, l2 = void 0, l2 = a22.avail_in, u2 < l2 && (l2 = u2), r22 = 0 === l2 ? 0 : (a22.avail_in -= l2, c2.arraySet(o2, a22.input, a22.next_in, l2, h22), 1 === a22.state.wrap ? a22.adler = d2(a22.adler, o2, l2, h22) : 2 === a22.state.wrap && (a22.adler = p2(a22.adler, o2, l2, h22)), a22.next_in += l2, a22.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >= x2) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x2 - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x2)); ) ;
|
|
37346
37365
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37347
37366
|
}
|
|
37348
37367
|
function Z(e2, t2) {
|
|
@@ -37351,14 +37370,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37351
37370
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37352
37371
|
if (0 === e2.lookahead) break;
|
|
37353
37372
|
}
|
|
37354
|
-
if (r22 = 0, e2.lookahead >=
|
|
37355
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37373
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x2) if (n2 = u._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
|
|
37374
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
37356
37375
|
e2.strstart++;
|
|
37357
37376
|
} else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
|
|
37358
37377
|
else n2 = u._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37359
37378
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37360
37379
|
}
|
|
37361
|
-
return e2.insert = e2.strstart <
|
|
37380
|
+
return e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37362
37381
|
}
|
|
37363
37382
|
function W2(e2, t2) {
|
|
37364
37383
|
for (var r22, n2, i22; ; ) {
|
|
@@ -37366,14 +37385,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37366
37385
|
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37367
37386
|
if (0 === e2.lookahead) break;
|
|
37368
37387
|
}
|
|
37369
|
-
if (r22 = 0, e2.lookahead >=
|
|
37370
|
-
for (i22 = e2.strstart + e2.lookahead -
|
|
37371
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37388
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x2 - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x2 && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x2 - 1)), e2.prev_length >= x2 && e2.match_length <= e2.prev_length) {
|
|
37389
|
+
for (i22 = e2.strstart + e2.lookahead - x2, n2 = u._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i22 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
37390
|
+
if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37372
37391
|
} else if (e2.match_available) {
|
|
37373
37392
|
if ((n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
|
|
37374
37393
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37375
37394
|
}
|
|
37376
|
-
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart <
|
|
37395
|
+
return e2.match_available && (n2 = u._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37377
37396
|
}
|
|
37378
37397
|
function M2(e2, t2, r22, n2, i22) {
|
|
37379
37398
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i22;
|
|
@@ -37383,21 +37402,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37383
37402
|
}
|
|
37384
37403
|
function G2(e2) {
|
|
37385
37404
|
var t2;
|
|
37386
|
-
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m2) :
|
|
37405
|
+
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i2, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u._tr_init(t2), m2) : R(e2, _2);
|
|
37387
37406
|
}
|
|
37388
37407
|
function K2(e2) {
|
|
37389
37408
|
var t2 = G2(e2);
|
|
37390
37409
|
return t2 === m2 && (function(e3) {
|
|
37391
|
-
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length =
|
|
37410
|
+
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x2 - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
37392
37411
|
})(e2.state), t2;
|
|
37393
37412
|
}
|
|
37394
37413
|
function Y2(e2, t2, r22, n2, i22, s22) {
|
|
37395
37414
|
if (!e2) return _2;
|
|
37396
37415
|
var a22 = 1;
|
|
37397
|
-
if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return
|
|
37416
|
+
if (t2 === g && (t2 = 6), n2 < 0 ? (a22 = 0, n2 = -n2) : 15 < n2 && (a22 = 2, n2 -= 16), i22 < 1 || y2 < i22 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
|
|
37398
37417
|
8 === n2 && (n2 = 9);
|
|
37399
37418
|
var o2 = new H();
|
|
37400
|
-
return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits +
|
|
37419
|
+
return (e2.state = o2).strm = e2, o2.wrap = a22, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i22 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x2 - 1) / x2), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i22 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
|
|
37401
37420
|
}
|
|
37402
37421
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37403
37422
|
var r22 = 65535;
|
|
@@ -37411,15 +37430,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37411
37430
|
if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37412
37431
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37413
37432
|
}
|
|
37414
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37433
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
37415
37434
|
}), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
|
|
37416
37435
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37417
37436
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37418
37437
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37419
37438
|
}, r2.deflate = function(e2, t2) {
|
|
37420
37439
|
var r22, n2, i22, s22;
|
|
37421
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37422
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37440
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
|
|
37441
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R(e2, 0 === e2.avail_out ? -5 : _2);
|
|
37423
37442
|
if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p2(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
|
|
37424
37443
|
else {
|
|
37425
37444
|
var a22 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37453,8 +37472,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37453
37472
|
} else n2.status = 103;
|
|
37454
37473
|
if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F2(e2), n2.pending + 2 <= n2.pending_buf_size && (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E2)) : n2.status = E2), 0 !== n2.pending) {
|
|
37455
37474
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37456
|
-
} else if (0 === e2.avail_in &&
|
|
37457
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37475
|
+
} else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
|
|
37476
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
|
|
37458
37477
|
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
|
|
37459
37478
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37460
37479
|
for (var r3; ; ) {
|
|
@@ -37464,39 +37483,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37464
37483
|
}
|
|
37465
37484
|
if (e3.match_length = 0, r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37466
37485
|
}
|
|
37467
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37486
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37468
37487
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37469
37488
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37470
37489
|
if (e3.lookahead <= S2) {
|
|
37471
37490
|
if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
|
|
37472
37491
|
if (0 === e3.lookahead) break;
|
|
37473
37492
|
}
|
|
37474
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37493
|
+
if (e3.match_length = 0, e3.lookahead >= x2 && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
37475
37494
|
s3 = e3.strstart + S2;
|
|
37476
37495
|
do {
|
|
37477
37496
|
} while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);
|
|
37478
37497
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37479
37498
|
}
|
|
37480
|
-
if (e3.match_length >=
|
|
37499
|
+
if (e3.match_length >= x2 ? (r3 = u._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37481
37500
|
}
|
|
37482
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37501
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37483
37502
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
37484
|
-
if (o2 !==
|
|
37503
|
+
if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
37485
37504
|
if (o2 === I2 && (1 === t2 ? u._tr_align(n2) : 5 !== t2 && (u._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
|
|
37486
37505
|
}
|
|
37487
37506
|
return t2 !== f2 ? m2 : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), U2(n2, e2.adler >> 16 & 255), U2(n2, e2.adler >> 24 & 255), U2(n2, 255 & e2.total_in), U2(n2, e2.total_in >> 8 & 255), U2(n2, e2.total_in >> 16 & 255), U2(n2, e2.total_in >> 24 & 255)) : (P2(n2, e2.adler >>> 16), P2(n2, 65535 & e2.adler)), F2(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m2 : 1);
|
|
37488
37507
|
}, r2.deflateEnd = function(e2) {
|
|
37489
37508
|
var t2;
|
|
37490
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37509
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R(e2, _2) : (e2.state = null, t2 === E2 ? R(e2, -3) : m2) : _2;
|
|
37491
37510
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
37492
37511
|
var r22, n2, i22, s22, a22, o2, h22, u2, l2 = t2.length;
|
|
37493
37512
|
if (!e2 || !e2.state) return _2;
|
|
37494
37513
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
37495
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >=
|
|
37496
|
-
for (n2 = r22.strstart, i22 = r22.lookahead - (
|
|
37497
|
-
r22.strstart = n2, r22.lookahead =
|
|
37514
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u2 = new c2.Buf8(r22.w_size), c2.arraySet(u2, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u2, l2 = r22.w_size), a22 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
|
|
37515
|
+
for (n2 = r22.strstart, i22 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i22; ) ;
|
|
37516
|
+
r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
|
|
37498
37517
|
}
|
|
37499
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37518
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a22, r22.wrap = s22, m2;
|
|
37500
37519
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
37501
37520
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
37502
37521
|
t.exports = function() {
|
|
@@ -37504,7 +37523,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37504
37523
|
};
|
|
37505
37524
|
}, {}], 48: [function(e, t, r2) {
|
|
37506
37525
|
t.exports = function(e2, t2) {
|
|
37507
|
-
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
37526
|
+
var r22, n, i2, s2, a2, o, h2, u, l, f2, c2, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
|
|
37508
37527
|
r22 = e2.state, n = e2.next_in, z2 = e2.input, i2 = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a2 = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u = r22.wsize, l = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p2 = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
|
|
37509
37528
|
e: do {
|
|
37510
37529
|
p2 < 15 && (d2 += z2[n++] << p2, p2 += 8, d2 += z2[n++] << p2, p2 += 8), v2 = m2[d2 & g];
|
|
@@ -37542,28 +37561,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37542
37561
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
37543
37562
|
break e;
|
|
37544
37563
|
}
|
|
37545
|
-
if (S2 = c2, (
|
|
37546
|
-
if (
|
|
37547
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37548
|
-
|
|
37564
|
+
if (S2 = c2, (x2 = 0) === f2) {
|
|
37565
|
+
if (x2 += u - y2, y2 < w2) {
|
|
37566
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37567
|
+
x2 = s2 - k2, S2 = C2;
|
|
37549
37568
|
}
|
|
37550
37569
|
} else if (f2 < y2) {
|
|
37551
|
-
if (
|
|
37552
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37553
|
-
if (
|
|
37554
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
37555
|
-
|
|
37570
|
+
if (x2 += u + f2 - y2, (y2 -= f2) < w2) {
|
|
37571
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37572
|
+
if (x2 = 0, f2 < w2) {
|
|
37573
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37574
|
+
x2 = s2 - k2, S2 = C2;
|
|
37556
37575
|
}
|
|
37557
37576
|
}
|
|
37558
|
-
} else if (
|
|
37559
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37560
|
-
|
|
37577
|
+
} else if (x2 += f2 - y2, y2 < w2) {
|
|
37578
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37579
|
+
x2 = s2 - k2, S2 = C2;
|
|
37561
37580
|
}
|
|
37562
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
37563
|
-
w2 && (C2[s2++] = S2[
|
|
37581
|
+
for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
|
|
37582
|
+
w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
|
|
37564
37583
|
} else {
|
|
37565
|
-
for (
|
|
37566
|
-
w2 && (C2[s2++] = C2[
|
|
37584
|
+
for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
|
|
37585
|
+
w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
|
|
37567
37586
|
}
|
|
37568
37587
|
break;
|
|
37569
37588
|
}
|
|
@@ -37574,7 +37593,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37574
37593
|
n -= w2 = p2 >> 3, d2 &= (1 << (p2 -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i2 ? i2 - n + 5 : 5 - (n - i2), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p2;
|
|
37575
37594
|
};
|
|
37576
37595
|
}, {}], 49: [function(e, t, r2) {
|
|
37577
|
-
var I2 = e("../utils/common"),
|
|
37596
|
+
var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i2 = 592;
|
|
37578
37597
|
function L2(e2) {
|
|
37579
37598
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
37580
37599
|
}
|
|
@@ -37605,8 +37624,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37605
37624
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
37606
37625
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
37607
37626
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
37608
|
-
for (
|
|
37609
|
-
|
|
37627
|
+
for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
37628
|
+
T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
37610
37629
|
}
|
|
37611
37630
|
e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
37612
37631
|
}
|
|
@@ -37617,9 +37636,9 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37617
37636
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a2, r2.inflateInit = function(e2) {
|
|
37618
37637
|
return u(e2, 15);
|
|
37619
37638
|
}, r2.inflateInit2 = u, r2.inflate = function(e2, t2) {
|
|
37620
|
-
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2,
|
|
37639
|
+
var r22, n2, i22, s22, a22, o2, h22, u2, l2, f22, c22, d2, p2, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
37621
37640
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
37622
|
-
12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22,
|
|
37641
|
+
12 === (r22 = e2.state).mode && (r22.mode = 13), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
|
|
37623
37642
|
e: for (; ; ) switch (r22.mode) {
|
|
37624
37643
|
case P2:
|
|
37625
37644
|
if (0 === r22.wrap) {
|
|
@@ -37790,7 +37809,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37790
37809
|
r22.lens[A2[r22.have++]] = 7 & u2, u2 >>>= 3, l2 -= 3;
|
|
37791
37810
|
}
|
|
37792
37811
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
37793
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
37812
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x2 = T2(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
37794
37813
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
37795
37814
|
break;
|
|
37796
37815
|
}
|
|
@@ -37838,11 +37857,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37838
37857
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
37839
37858
|
break;
|
|
37840
37859
|
}
|
|
37841
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
37860
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x2 = T2(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
37842
37861
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
37843
37862
|
break;
|
|
37844
37863
|
}
|
|
37845
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
37864
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x2 = T2(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x2) {
|
|
37846
37865
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
37847
37866
|
break;
|
|
37848
37867
|
}
|
|
@@ -37851,7 +37870,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37851
37870
|
r22.mode = 21;
|
|
37852
37871
|
case 21:
|
|
37853
37872
|
if (6 <= o2 && 258 <= h22) {
|
|
37854
|
-
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2,
|
|
37873
|
+
e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, R(e2, c22), a22 = e2.next_out, i22 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u2 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
37855
37874
|
break;
|
|
37856
37875
|
}
|
|
37857
37876
|
for (r22.back = 0; g = (C2 = r22.lencode[u2 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
@@ -37939,7 +37958,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37939
37958
|
if (0 === o2) break e;
|
|
37940
37959
|
o2--, u2 |= n2[s22++] << l2, l2 += 8;
|
|
37941
37960
|
}
|
|
37942
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) :
|
|
37961
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, a22 - c22) : O(r22.check, i22, c22, a22 - c22)), c22 = h22, (r22.flags ? u2 : L2(u2)) !== r22.check) {
|
|
37943
37962
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
37944
37963
|
break;
|
|
37945
37964
|
}
|
|
@@ -37960,10 +37979,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37960
37979
|
}
|
|
37961
37980
|
r22.mode = 29;
|
|
37962
37981
|
case 29:
|
|
37963
|
-
|
|
37982
|
+
x2 = 1;
|
|
37964
37983
|
break e;
|
|
37965
37984
|
case 30:
|
|
37966
|
-
|
|
37985
|
+
x2 = -3;
|
|
37967
37986
|
break e;
|
|
37968
37987
|
case 31:
|
|
37969
37988
|
return -4;
|
|
@@ -37971,7 +37990,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37971
37990
|
default:
|
|
37972
37991
|
return U2;
|
|
37973
37992
|
}
|
|
37974
|
-
return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, e2.next_out - c22) :
|
|
37993
|
+
return e2.next_out = a22, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u2, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i22, c22, e2.next_out - c22) : O(r22.check, i22, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x2 === N2 && (x2 = -5), x2);
|
|
37975
37994
|
}, r2.inflateEnd = function(e2) {
|
|
37976
37995
|
if (!e2 || !e2.state) return U2;
|
|
37977
37996
|
var t2 = e2.state;
|
|
@@ -37981,33 +38000,33 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
37981
38000
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
37982
38001
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
37983
38002
|
var r22, n2 = t2.length;
|
|
37984
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
38003
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
37985
38004
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
37986
38005
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
37987
38006
|
var D2 = e("../utils/common"), F2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N2 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
37988
38007
|
t.exports = function(e2, t2, r22, n, i2, s2, a2, o) {
|
|
37989
|
-
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0,
|
|
37990
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
37991
|
-
for (v2 = 0; v2 < n; v2++)
|
|
37992
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
38008
|
+
var h2, u, l, f2, c2, d2, p2, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
|
|
38009
|
+
for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
|
|
38010
|
+
for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
|
|
38011
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
|
|
37993
38012
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i2[s2++] = 20971520, i2[s2++] = 20971520, o.bits = 1, 0;
|
|
37994
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
37995
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
38013
|
+
for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
|
|
38014
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
|
|
37996
38015
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
37997
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
38016
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
|
|
37998
38017
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a2[B2[t2[r22 + v2]]++] = v2);
|
|
37999
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
38018
|
+
if (d2 = 0 === e2 ? (A2 = R = a2, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38000
38019
|
for (; ; ) {
|
|
38001
|
-
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 =
|
|
38020
|
+
for (p2 = b2 - S2, _2 = a2[v2] < d2 ? (m2 = 0, a2[v2]) : a2[v2] > d2 ? (m2 = R[T2 + a2[v2]], A2[I2 + a2[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u = 1 << x2; i2[c2 + (E2 >> S2) + (u -= h2)] = p2 << 24 | m2 << 16 | _2 | 0, 0 !== u; ) ;
|
|
38002
38021
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38003
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
38022
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
|
|
38004
38023
|
if (b2 === w2) break;
|
|
38005
38024
|
b2 = t2[r22 + a2[v2]];
|
|
38006
38025
|
}
|
|
38007
38026
|
if (k2 < b2 && (E2 & f2) !== l) {
|
|
38008
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38009
|
-
if (C2 += 1 <<
|
|
38010
|
-
i2[l = E2 & f2] = k2 << 24 |
|
|
38027
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
|
|
38028
|
+
if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38029
|
+
i2[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
|
|
38011
38030
|
}
|
|
38012
38031
|
}
|
|
38013
38032
|
return 0 !== E2 && (i2[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38019,7 +38038,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38019
38038
|
function n(e2) {
|
|
38020
38039
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38021
38040
|
}
|
|
38022
|
-
var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13],
|
|
38041
|
+
var s2 = 0, a2 = 29, u = 256, l = u + 1 + a2, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p2 = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l + 2));
|
|
38023
38042
|
n(z2);
|
|
38024
38043
|
var C2 = new Array(2 * f2);
|
|
38025
38044
|
n(C2);
|
|
@@ -38029,7 +38048,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38029
38048
|
n(A2);
|
|
38030
38049
|
var I2 = new Array(a2);
|
|
38031
38050
|
n(I2);
|
|
38032
|
-
var
|
|
38051
|
+
var O, B2, R, T2 = new Array(f2);
|
|
38033
38052
|
function D2(e2, t2, r22, n2, i22) {
|
|
38034
38053
|
this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i22, this.has_stree = e2 && e2.length;
|
|
38035
38054
|
}
|
|
@@ -38080,7 +38099,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38080
38099
|
}
|
|
38081
38100
|
function K2(e2, t2, r22) {
|
|
38082
38101
|
var n2, i22, s22, a22, o2 = 0;
|
|
38083
|
-
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -=
|
|
38102
|
+
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i22 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i22, t2) : (L2(e2, (s22 = A2[i22]) + u + 1, t2), 0 !== (a22 = w2[s22]) && P2(e2, i22 -= I2[s22], a22), L2(e2, s22 = N2(--n2), r22), 0 !== (a22 = k2[s22]) && P2(e2, n2 -= T2[s22], a22)), o2 < e2.last_lit; ) ;
|
|
38084
38103
|
L2(e2, m2, t2);
|
|
38085
38104
|
}
|
|
38086
38105
|
function Y2(e2, t2) {
|
|
@@ -38114,7 +38133,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38114
38133
|
s22 = i22, u2 = (o2 = 0) === a22 ? (h22 = 138, 3) : i22 === a22 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38115
38134
|
}
|
|
38116
38135
|
}
|
|
38117
|
-
n(
|
|
38136
|
+
n(T2);
|
|
38118
38137
|
var q2 = false;
|
|
38119
38138
|
function J2(e2, t2, r22, n2) {
|
|
38120
38139
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38125,16 +38144,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38125
38144
|
q2 || ((function() {
|
|
38126
38145
|
var e3, t2, r22, n2, i22, s22 = new Array(g + 1);
|
|
38127
38146
|
for (n2 = r22 = 0; n2 < a2 - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38128
|
-
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (
|
|
38129
|
-
for (i22 >>= 7; n2 < f2; n2++) for (
|
|
38147
|
+
for (A2[r22 - 1] = n2, n2 = i22 = 0; n2 < 16; n2++) for (T2[n2] = i22, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i22++] = n2;
|
|
38148
|
+
for (i22 >>= 7; n2 < f2; n2++) for (T2[n2] = i22 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i22++] = n2;
|
|
38130
38149
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38131
38150
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38132
38151
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38133
38152
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38134
38153
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38135
38154
|
for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38136
|
-
|
|
38137
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38155
|
+
O = new D2(z2, w2, u + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p2);
|
|
38156
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
38138
38157
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38139
38158
|
var i22, s22, a22 = 0;
|
|
38140
38159
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
@@ -38539,7 +38558,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
38539
38558
|
}
|
|
38540
38559
|
}
|
|
38541
38560
|
/**
|
|
38542
|
-
* @vue/shared v3.5.
|
|
38561
|
+
* @vue/shared v3.5.25
|
|
38543
38562
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
38544
38563
|
* @license MIT
|
|
38545
38564
|
**/
|
|
@@ -39335,19 +39354,25 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39335
39354
|
track$1(arr = toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
|
|
39336
39355
|
return arr;
|
|
39337
39356
|
}
|
|
39357
|
+
function toWrapped(target, item) {
|
|
39358
|
+
if (isReadonly(target)) {
|
|
39359
|
+
return isReactive(target) ? toReadonly(toReactive(item)) : toReadonly(item);
|
|
39360
|
+
}
|
|
39361
|
+
return toReactive(item);
|
|
39362
|
+
}
|
|
39338
39363
|
const arrayInstrumentations = {
|
|
39339
39364
|
__proto__: null,
|
|
39340
39365
|
[Symbol.iterator]() {
|
|
39341
|
-
return iterator(this, Symbol.iterator,
|
|
39366
|
+
return iterator(this, Symbol.iterator, (item) => toWrapped(this, item));
|
|
39342
39367
|
},
|
|
39343
39368
|
concat(...args) {
|
|
39344
39369
|
return reactiveReadArray(this).concat(
|
|
39345
|
-
...args.map((
|
|
39370
|
+
...args.map((x2) => isArray$3(x2) ? reactiveReadArray(x2) : x2)
|
|
39346
39371
|
);
|
|
39347
39372
|
},
|
|
39348
39373
|
entries() {
|
|
39349
39374
|
return iterator(this, "entries", (value) => {
|
|
39350
|
-
value[1] =
|
|
39375
|
+
value[1] = toWrapped(this, value[1]);
|
|
39351
39376
|
return value;
|
|
39352
39377
|
});
|
|
39353
39378
|
},
|
|
@@ -39355,16 +39380,37 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39355
39380
|
return apply$3(this, "every", fn, thisArg, void 0, arguments);
|
|
39356
39381
|
},
|
|
39357
39382
|
filter(fn, thisArg) {
|
|
39358
|
-
return apply$3(
|
|
39383
|
+
return apply$3(
|
|
39384
|
+
this,
|
|
39385
|
+
"filter",
|
|
39386
|
+
fn,
|
|
39387
|
+
thisArg,
|
|
39388
|
+
(v2) => v2.map((item) => toWrapped(this, item)),
|
|
39389
|
+
arguments
|
|
39390
|
+
);
|
|
39359
39391
|
},
|
|
39360
39392
|
find(fn, thisArg) {
|
|
39361
|
-
return apply$3(
|
|
39393
|
+
return apply$3(
|
|
39394
|
+
this,
|
|
39395
|
+
"find",
|
|
39396
|
+
fn,
|
|
39397
|
+
thisArg,
|
|
39398
|
+
(item) => toWrapped(this, item),
|
|
39399
|
+
arguments
|
|
39400
|
+
);
|
|
39362
39401
|
},
|
|
39363
39402
|
findIndex(fn, thisArg) {
|
|
39364
39403
|
return apply$3(this, "findIndex", fn, thisArg, void 0, arguments);
|
|
39365
39404
|
},
|
|
39366
39405
|
findLast(fn, thisArg) {
|
|
39367
|
-
return apply$3(
|
|
39406
|
+
return apply$3(
|
|
39407
|
+
this,
|
|
39408
|
+
"findLast",
|
|
39409
|
+
fn,
|
|
39410
|
+
thisArg,
|
|
39411
|
+
(item) => toWrapped(this, item),
|
|
39412
|
+
arguments
|
|
39413
|
+
);
|
|
39368
39414
|
},
|
|
39369
39415
|
findLastIndex(fn, thisArg) {
|
|
39370
39416
|
return apply$3(this, "findLastIndex", fn, thisArg, void 0, arguments);
|
|
@@ -39424,7 +39470,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39424
39470
|
return noTracking(this, "unshift", args);
|
|
39425
39471
|
},
|
|
39426
39472
|
values() {
|
|
39427
|
-
return iterator(this, "values",
|
|
39473
|
+
return iterator(this, "values", (item) => toWrapped(this, item));
|
|
39428
39474
|
}
|
|
39429
39475
|
};
|
|
39430
39476
|
function iterator(self2, method, wrapValue) {
|
|
@@ -39455,7 +39501,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39455
39501
|
if (arr !== self2) {
|
|
39456
39502
|
if (needsWrap) {
|
|
39457
39503
|
wrappedFn = function(item, index2) {
|
|
39458
|
-
return fn.call(this,
|
|
39504
|
+
return fn.call(this, toWrapped(self2, item), index2, self2);
|
|
39459
39505
|
};
|
|
39460
39506
|
} else if (fn.length > 2) {
|
|
39461
39507
|
wrappedFn = function(item, index2) {
|
|
@@ -39472,7 +39518,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39472
39518
|
if (arr !== self2) {
|
|
39473
39519
|
if (!isShallow(self2)) {
|
|
39474
39520
|
wrappedFn = function(acc, item, index2) {
|
|
39475
|
-
return fn.call(this, acc,
|
|
39521
|
+
return fn.call(this, acc, toWrapped(self2, item), index2, self2);
|
|
39476
39522
|
};
|
|
39477
39523
|
} else if (fn.length > 3) {
|
|
39478
39524
|
wrappedFn = function(acc, item, index2) {
|
|
@@ -39575,13 +39621,14 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39575
39621
|
}
|
|
39576
39622
|
set(target, key2, value, receiver) {
|
|
39577
39623
|
let oldValue = target[key2];
|
|
39624
|
+
const isArrayWithIntegerKey = isArray$3(target) && isIntegerKey(key2);
|
|
39578
39625
|
if (!this._isShallow) {
|
|
39579
39626
|
const isOldValueReadonly = isReadonly(oldValue);
|
|
39580
39627
|
if (!isShallow(value) && !isReadonly(value)) {
|
|
39581
39628
|
oldValue = toRaw(oldValue);
|
|
39582
39629
|
value = toRaw(value);
|
|
39583
39630
|
}
|
|
39584
|
-
if (!
|
|
39631
|
+
if (!isArrayWithIntegerKey && isRef(oldValue) && !isRef(value)) {
|
|
39585
39632
|
if (isOldValueReadonly) {
|
|
39586
39633
|
return true;
|
|
39587
39634
|
} else {
|
|
@@ -39590,7 +39637,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
39590
39637
|
}
|
|
39591
39638
|
}
|
|
39592
39639
|
}
|
|
39593
|
-
const hadKey =
|
|
39640
|
+
const hadKey = isArrayWithIntegerKey ? Number(key2) < target.length : hasOwn(target, key2);
|
|
39594
39641
|
const result = Reflect.set(
|
|
39595
39642
|
target,
|
|
39596
39643
|
key2,
|
|
@@ -40029,16 +40076,35 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40029
40076
|
this._defaultValue = _defaultValue;
|
|
40030
40077
|
this["__v_isRef"] = true;
|
|
40031
40078
|
this._value = void 0;
|
|
40079
|
+
this._raw = toRaw(_object);
|
|
40080
|
+
let shallow = true;
|
|
40081
|
+
let obj = _object;
|
|
40082
|
+
if (!isArray$3(_object) || !isIntegerKey(String(_key))) {
|
|
40083
|
+
do {
|
|
40084
|
+
shallow = !isProxy(obj) || isShallow(obj);
|
|
40085
|
+
} while (shallow && (obj = obj["__v_raw"]));
|
|
40086
|
+
}
|
|
40087
|
+
this._shallow = shallow;
|
|
40032
40088
|
}
|
|
40033
40089
|
get value() {
|
|
40034
|
-
|
|
40090
|
+
let val = this._object[this._key];
|
|
40091
|
+
if (this._shallow) {
|
|
40092
|
+
val = unref(val);
|
|
40093
|
+
}
|
|
40035
40094
|
return this._value = val === void 0 ? this._defaultValue : val;
|
|
40036
40095
|
}
|
|
40037
40096
|
set value(newVal) {
|
|
40097
|
+
if (this._shallow && isRef(this._raw[this._key])) {
|
|
40098
|
+
const nestedRef = this._object[this._key];
|
|
40099
|
+
if (isRef(nestedRef)) {
|
|
40100
|
+
nestedRef.value = newVal;
|
|
40101
|
+
return;
|
|
40102
|
+
}
|
|
40103
|
+
}
|
|
40038
40104
|
this._object[this._key] = newVal;
|
|
40039
40105
|
}
|
|
40040
40106
|
get dep() {
|
|
40041
|
-
return getDepFromReactive(
|
|
40107
|
+
return getDepFromReactive(this._raw, this._key);
|
|
40042
40108
|
}
|
|
40043
40109
|
}
|
|
40044
40110
|
class GetterRefImpl {
|
|
@@ -40064,8 +40130,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
40064
40130
|
}
|
|
40065
40131
|
}
|
|
40066
40132
|
function propertyToRef(source, key2, defaultValue) {
|
|
40067
|
-
|
|
40068
|
-
return isRef(val) ? val : new ObjectRefImpl(source, key2, defaultValue);
|
|
40133
|
+
return new ObjectRefImpl(source, key2, defaultValue);
|
|
40069
40134
|
}
|
|
40070
40135
|
class ComputedRefImpl {
|
|
40071
40136
|
constructor(fn, setter, isSSR) {
|
|
@@ -41927,7 +41992,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41927
41992
|
return true;
|
|
41928
41993
|
}
|
|
41929
41994
|
const { ctx: ctx2, setupState, data, props, accessCache, type: type2, appContext } = instance;
|
|
41930
|
-
let normalizedProps;
|
|
41931
41995
|
if (key2[0] !== "$") {
|
|
41932
41996
|
const n = accessCache[key2];
|
|
41933
41997
|
if (n !== void 0) {
|
|
@@ -41947,11 +42011,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
41947
42011
|
} else if (data !== EMPTY_OBJ && hasOwn(data, key2)) {
|
|
41948
42012
|
accessCache[key2] = 2;
|
|
41949
42013
|
return data[key2];
|
|
41950
|
-
} else if (
|
|
41951
|
-
// only cache other properties when instance has declared (thus stable)
|
|
41952
|
-
// props
|
|
41953
|
-
(normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key2)
|
|
41954
|
-
) {
|
|
42014
|
+
} else if (hasOwn(props, key2)) {
|
|
41955
42015
|
accessCache[key2] = 3;
|
|
41956
42016
|
return props[key2];
|
|
41957
42017
|
} else if (ctx2 !== EMPTY_OBJ && hasOwn(ctx2, key2)) {
|
|
@@ -42006,10 +42066,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42006
42066
|
return true;
|
|
42007
42067
|
},
|
|
42008
42068
|
has({
|
|
42009
|
-
_: { data, setupState, accessCache, ctx: ctx2, appContext,
|
|
42069
|
+
_: { data, setupState, accessCache, ctx: ctx2, appContext, props, type: type2 }
|
|
42010
42070
|
}, key2) {
|
|
42011
|
-
let
|
|
42012
|
-
return !!(accessCache[key2] || data !== EMPTY_OBJ && key2[0] !== "$" && hasOwn(data, key2) || hasSetupBinding(setupState, key2) ||
|
|
42071
|
+
let cssModules;
|
|
42072
|
+
return !!(accessCache[key2] || data !== EMPTY_OBJ && key2[0] !== "$" && hasOwn(data, key2) || hasSetupBinding(setupState, key2) || hasOwn(props, key2) || hasOwn(ctx2, key2) || hasOwn(publicPropertiesMap, key2) || hasOwn(appContext.config.globalProperties, key2) || (cssModules = type2.__cssModules) && cssModules[key2]);
|
|
42013
42073
|
},
|
|
42014
42074
|
defineProperty(target, key2, descriptor) {
|
|
42015
42075
|
if (descriptor.get != null) {
|
|
@@ -42496,8 +42556,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42496
42556
|
}
|
|
42497
42557
|
let currentApp = null;
|
|
42498
42558
|
function provide(key2, value) {
|
|
42499
|
-
if (
|
|
42500
|
-
else {
|
|
42559
|
+
if (currentInstance) {
|
|
42501
42560
|
let provides = currentInstance.provides;
|
|
42502
42561
|
const parentProvides = currentInstance.parent && currentInstance.parent.provides;
|
|
42503
42562
|
if (parentProvides === provides) {
|
|
@@ -42520,6 +42579,391 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
42520
42579
|
function hasInjectionContext() {
|
|
42521
42580
|
return !!(getCurrentInstance() || currentApp);
|
|
42522
42581
|
}
|
|
42582
|
+
const ssrContextKey$2 = Symbol.for("v-scx");
|
|
42583
|
+
const useSSRContext = () => {
|
|
42584
|
+
{
|
|
42585
|
+
const ctx2 = inject(ssrContextKey$2);
|
|
42586
|
+
return ctx2;
|
|
42587
|
+
}
|
|
42588
|
+
};
|
|
42589
|
+
function watchEffect(effect2, options) {
|
|
42590
|
+
return doWatch(effect2, null, options);
|
|
42591
|
+
}
|
|
42592
|
+
function watch(source, cb, options) {
|
|
42593
|
+
return doWatch(source, cb, options);
|
|
42594
|
+
}
|
|
42595
|
+
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
42596
|
+
const { immediate, deep, flush, once } = options;
|
|
42597
|
+
const baseWatchOptions = extend$2({}, options);
|
|
42598
|
+
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
42599
|
+
let ssrCleanup;
|
|
42600
|
+
if (isInSSRComponentSetup) {
|
|
42601
|
+
if (flush === "sync") {
|
|
42602
|
+
const ctx2 = useSSRContext();
|
|
42603
|
+
ssrCleanup = ctx2.__watcherHandles || (ctx2.__watcherHandles = []);
|
|
42604
|
+
} else if (!runsImmediately) {
|
|
42605
|
+
const watchStopHandle = () => {
|
|
42606
|
+
};
|
|
42607
|
+
watchStopHandle.stop = NOOP;
|
|
42608
|
+
watchStopHandle.resume = NOOP;
|
|
42609
|
+
watchStopHandle.pause = NOOP;
|
|
42610
|
+
return watchStopHandle;
|
|
42611
|
+
}
|
|
42612
|
+
}
|
|
42613
|
+
const instance = currentInstance;
|
|
42614
|
+
baseWatchOptions.call = (fn, type2, args) => callWithAsyncErrorHandling(fn, instance, type2, args);
|
|
42615
|
+
let isPre = false;
|
|
42616
|
+
if (flush === "post") {
|
|
42617
|
+
baseWatchOptions.scheduler = (job) => {
|
|
42618
|
+
queuePostRenderEffect(job, instance && instance.suspense);
|
|
42619
|
+
};
|
|
42620
|
+
} else if (flush !== "sync") {
|
|
42621
|
+
isPre = true;
|
|
42622
|
+
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
42623
|
+
if (isFirstRun) {
|
|
42624
|
+
job();
|
|
42625
|
+
} else {
|
|
42626
|
+
queueJob(job);
|
|
42627
|
+
}
|
|
42628
|
+
};
|
|
42629
|
+
}
|
|
42630
|
+
baseWatchOptions.augmentJob = (job) => {
|
|
42631
|
+
if (cb) {
|
|
42632
|
+
job.flags |= 4;
|
|
42633
|
+
}
|
|
42634
|
+
if (isPre) {
|
|
42635
|
+
job.flags |= 2;
|
|
42636
|
+
if (instance) {
|
|
42637
|
+
job.id = instance.uid;
|
|
42638
|
+
job.i = instance;
|
|
42639
|
+
}
|
|
42640
|
+
}
|
|
42641
|
+
};
|
|
42642
|
+
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
42643
|
+
if (isInSSRComponentSetup) {
|
|
42644
|
+
if (ssrCleanup) {
|
|
42645
|
+
ssrCleanup.push(watchHandle);
|
|
42646
|
+
} else if (runsImmediately) {
|
|
42647
|
+
watchHandle();
|
|
42648
|
+
}
|
|
42649
|
+
}
|
|
42650
|
+
return watchHandle;
|
|
42651
|
+
}
|
|
42652
|
+
function instanceWatch(source, value, options) {
|
|
42653
|
+
const publicThis = this.proxy;
|
|
42654
|
+
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
42655
|
+
let cb;
|
|
42656
|
+
if (isFunction$2(value)) {
|
|
42657
|
+
cb = value;
|
|
42658
|
+
} else {
|
|
42659
|
+
cb = value.handler;
|
|
42660
|
+
options = value;
|
|
42661
|
+
}
|
|
42662
|
+
const reset = setCurrentInstance(this);
|
|
42663
|
+
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
42664
|
+
reset();
|
|
42665
|
+
return res;
|
|
42666
|
+
}
|
|
42667
|
+
function createPathGetter(ctx2, path2) {
|
|
42668
|
+
const segments = path2.split(".");
|
|
42669
|
+
return () => {
|
|
42670
|
+
let cur = ctx2;
|
|
42671
|
+
for (let i2 = 0; i2 < segments.length && cur; i2++) {
|
|
42672
|
+
cur = cur[segments[i2]];
|
|
42673
|
+
}
|
|
42674
|
+
return cur;
|
|
42675
|
+
};
|
|
42676
|
+
}
|
|
42677
|
+
const getModelModifiers = (props, modelName) => {
|
|
42678
|
+
return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
|
|
42679
|
+
};
|
|
42680
|
+
function emit(instance, event, ...rawArgs) {
|
|
42681
|
+
if (instance.isUnmounted) return;
|
|
42682
|
+
const props = instance.vnode.props || EMPTY_OBJ;
|
|
42683
|
+
let args = rawArgs;
|
|
42684
|
+
const isModelListener2 = event.startsWith("update:");
|
|
42685
|
+
const modifiers2 = isModelListener2 && getModelModifiers(props, event.slice(7));
|
|
42686
|
+
if (modifiers2) {
|
|
42687
|
+
if (modifiers2.trim) {
|
|
42688
|
+
args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2);
|
|
42689
|
+
}
|
|
42690
|
+
if (modifiers2.number) {
|
|
42691
|
+
args = rawArgs.map(looseToNumber);
|
|
42692
|
+
}
|
|
42693
|
+
}
|
|
42694
|
+
let handlerName;
|
|
42695
|
+
let handler2 = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
|
|
42696
|
+
props[handlerName = toHandlerKey(camelize(event))];
|
|
42697
|
+
if (!handler2 && isModelListener2) {
|
|
42698
|
+
handler2 = props[handlerName = toHandlerKey(hyphenate(event))];
|
|
42699
|
+
}
|
|
42700
|
+
if (handler2) {
|
|
42701
|
+
callWithAsyncErrorHandling(
|
|
42702
|
+
handler2,
|
|
42703
|
+
instance,
|
|
42704
|
+
6,
|
|
42705
|
+
args
|
|
42706
|
+
);
|
|
42707
|
+
}
|
|
42708
|
+
const onceHandler = props[handlerName + `Once`];
|
|
42709
|
+
if (onceHandler) {
|
|
42710
|
+
if (!instance.emitted) {
|
|
42711
|
+
instance.emitted = {};
|
|
42712
|
+
} else if (instance.emitted[handlerName]) {
|
|
42713
|
+
return;
|
|
42714
|
+
}
|
|
42715
|
+
instance.emitted[handlerName] = true;
|
|
42716
|
+
callWithAsyncErrorHandling(
|
|
42717
|
+
onceHandler,
|
|
42718
|
+
instance,
|
|
42719
|
+
6,
|
|
42720
|
+
args
|
|
42721
|
+
);
|
|
42722
|
+
}
|
|
42723
|
+
}
|
|
42724
|
+
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
42725
|
+
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
42726
|
+
const cache2 = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
42727
|
+
const cached = cache2.get(comp);
|
|
42728
|
+
if (cached !== void 0) {
|
|
42729
|
+
return cached;
|
|
42730
|
+
}
|
|
42731
|
+
const raw = comp.emits;
|
|
42732
|
+
let normalized = {};
|
|
42733
|
+
let hasExtends = false;
|
|
42734
|
+
if (!isFunction$2(comp)) {
|
|
42735
|
+
const extendEmits = (raw2) => {
|
|
42736
|
+
const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
|
|
42737
|
+
if (normalizedFromExtend) {
|
|
42738
|
+
hasExtends = true;
|
|
42739
|
+
extend$2(normalized, normalizedFromExtend);
|
|
42740
|
+
}
|
|
42741
|
+
};
|
|
42742
|
+
if (!asMixin && appContext.mixins.length) {
|
|
42743
|
+
appContext.mixins.forEach(extendEmits);
|
|
42744
|
+
}
|
|
42745
|
+
if (comp.extends) {
|
|
42746
|
+
extendEmits(comp.extends);
|
|
42747
|
+
}
|
|
42748
|
+
if (comp.mixins) {
|
|
42749
|
+
comp.mixins.forEach(extendEmits);
|
|
42750
|
+
}
|
|
42751
|
+
}
|
|
42752
|
+
if (!raw && !hasExtends) {
|
|
42753
|
+
if (isObject$3(comp)) {
|
|
42754
|
+
cache2.set(comp, null);
|
|
42755
|
+
}
|
|
42756
|
+
return null;
|
|
42757
|
+
}
|
|
42758
|
+
if (isArray$3(raw)) {
|
|
42759
|
+
raw.forEach((key2) => normalized[key2] = null);
|
|
42760
|
+
} else {
|
|
42761
|
+
extend$2(normalized, raw);
|
|
42762
|
+
}
|
|
42763
|
+
if (isObject$3(comp)) {
|
|
42764
|
+
cache2.set(comp, normalized);
|
|
42765
|
+
}
|
|
42766
|
+
return normalized;
|
|
42767
|
+
}
|
|
42768
|
+
function isEmitListener(options, key2) {
|
|
42769
|
+
if (!options || !isOn(key2)) {
|
|
42770
|
+
return false;
|
|
42771
|
+
}
|
|
42772
|
+
key2 = key2.slice(2).replace(/Once$/, "");
|
|
42773
|
+
return hasOwn(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn(options, hyphenate(key2)) || hasOwn(options, key2);
|
|
42774
|
+
}
|
|
42775
|
+
function markAttrsAccessed() {
|
|
42776
|
+
}
|
|
42777
|
+
function renderComponentRoot(instance) {
|
|
42778
|
+
const {
|
|
42779
|
+
type: Component,
|
|
42780
|
+
vnode,
|
|
42781
|
+
proxy,
|
|
42782
|
+
withProxy,
|
|
42783
|
+
propsOptions: [propsOptions],
|
|
42784
|
+
slots,
|
|
42785
|
+
attrs,
|
|
42786
|
+
emit: emit2,
|
|
42787
|
+
render: render2,
|
|
42788
|
+
renderCache,
|
|
42789
|
+
props,
|
|
42790
|
+
data,
|
|
42791
|
+
setupState,
|
|
42792
|
+
ctx: ctx2,
|
|
42793
|
+
inheritAttrs
|
|
42794
|
+
} = instance;
|
|
42795
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
42796
|
+
let result;
|
|
42797
|
+
let fallthroughAttrs;
|
|
42798
|
+
try {
|
|
42799
|
+
if (vnode.shapeFlag & 4) {
|
|
42800
|
+
const proxyToUse = withProxy || proxy;
|
|
42801
|
+
const thisProxy = !!(define_process_default$2.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
|
|
42802
|
+
get(target, key2, receiver) {
|
|
42803
|
+
warn$1$2(
|
|
42804
|
+
`Property '${String(
|
|
42805
|
+
key2
|
|
42806
|
+
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
42807
|
+
);
|
|
42808
|
+
return Reflect.get(target, key2, receiver);
|
|
42809
|
+
}
|
|
42810
|
+
}) : proxyToUse;
|
|
42811
|
+
result = normalizeVNode(
|
|
42812
|
+
render2.call(
|
|
42813
|
+
thisProxy,
|
|
42814
|
+
proxyToUse,
|
|
42815
|
+
renderCache,
|
|
42816
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
42817
|
+
setupState,
|
|
42818
|
+
data,
|
|
42819
|
+
ctx2
|
|
42820
|
+
)
|
|
42821
|
+
);
|
|
42822
|
+
fallthroughAttrs = attrs;
|
|
42823
|
+
} else {
|
|
42824
|
+
const render22 = Component;
|
|
42825
|
+
if (!!(define_process_default$2.env.NODE_ENV !== "production") && attrs === props) ;
|
|
42826
|
+
result = normalizeVNode(
|
|
42827
|
+
render22.length > 1 ? render22(
|
|
42828
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
42829
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? {
|
|
42830
|
+
get attrs() {
|
|
42831
|
+
markAttrsAccessed();
|
|
42832
|
+
return shallowReadonly(attrs);
|
|
42833
|
+
},
|
|
42834
|
+
slots,
|
|
42835
|
+
emit: emit2
|
|
42836
|
+
} : { attrs, slots, emit: emit2 }
|
|
42837
|
+
) : render22(
|
|
42838
|
+
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
42839
|
+
null
|
|
42840
|
+
)
|
|
42841
|
+
);
|
|
42842
|
+
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
42843
|
+
}
|
|
42844
|
+
} catch (err) {
|
|
42845
|
+
blockStack.length = 0;
|
|
42846
|
+
handleError(err, instance, 1);
|
|
42847
|
+
result = createVNode(Comment);
|
|
42848
|
+
}
|
|
42849
|
+
let root2 = result;
|
|
42850
|
+
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
42851
|
+
const keys2 = Object.keys(fallthroughAttrs);
|
|
42852
|
+
const { shapeFlag } = root2;
|
|
42853
|
+
if (keys2.length) {
|
|
42854
|
+
if (shapeFlag & (1 | 6)) {
|
|
42855
|
+
if (propsOptions && keys2.some(isModelListener)) {
|
|
42856
|
+
fallthroughAttrs = filterModelListeners(
|
|
42857
|
+
fallthroughAttrs,
|
|
42858
|
+
propsOptions
|
|
42859
|
+
);
|
|
42860
|
+
}
|
|
42861
|
+
root2 = cloneVNode(root2, fallthroughAttrs, false, true);
|
|
42862
|
+
}
|
|
42863
|
+
}
|
|
42864
|
+
}
|
|
42865
|
+
if (vnode.dirs) {
|
|
42866
|
+
root2 = cloneVNode(root2, null, false, true);
|
|
42867
|
+
root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
42868
|
+
}
|
|
42869
|
+
if (vnode.transition) {
|
|
42870
|
+
setTransitionHooks(root2, vnode.transition);
|
|
42871
|
+
}
|
|
42872
|
+
{
|
|
42873
|
+
result = root2;
|
|
42874
|
+
}
|
|
42875
|
+
setCurrentRenderingInstance(prev);
|
|
42876
|
+
return result;
|
|
42877
|
+
}
|
|
42878
|
+
const getFunctionalFallthrough = (attrs) => {
|
|
42879
|
+
let res;
|
|
42880
|
+
for (const key2 in attrs) {
|
|
42881
|
+
if (key2 === "class" || key2 === "style" || isOn(key2)) {
|
|
42882
|
+
(res || (res = {}))[key2] = attrs[key2];
|
|
42883
|
+
}
|
|
42884
|
+
}
|
|
42885
|
+
return res;
|
|
42886
|
+
};
|
|
42887
|
+
const filterModelListeners = (attrs, props) => {
|
|
42888
|
+
const res = {};
|
|
42889
|
+
for (const key2 in attrs) {
|
|
42890
|
+
if (!isModelListener(key2) || !(key2.slice(9) in props)) {
|
|
42891
|
+
res[key2] = attrs[key2];
|
|
42892
|
+
}
|
|
42893
|
+
}
|
|
42894
|
+
return res;
|
|
42895
|
+
};
|
|
42896
|
+
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
42897
|
+
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
42898
|
+
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
42899
|
+
const emits = component.emitsOptions;
|
|
42900
|
+
if (nextVNode.dirs || nextVNode.transition) {
|
|
42901
|
+
return true;
|
|
42902
|
+
}
|
|
42903
|
+
if (optimized && patchFlag >= 0) {
|
|
42904
|
+
if (patchFlag & 1024) {
|
|
42905
|
+
return true;
|
|
42906
|
+
}
|
|
42907
|
+
if (patchFlag & 16) {
|
|
42908
|
+
if (!prevProps) {
|
|
42909
|
+
return !!nextProps;
|
|
42910
|
+
}
|
|
42911
|
+
return hasPropsChanged(prevProps, nextProps, emits);
|
|
42912
|
+
} else if (patchFlag & 8) {
|
|
42913
|
+
const dynamicProps = nextVNode.dynamicProps;
|
|
42914
|
+
for (let i2 = 0; i2 < dynamicProps.length; i2++) {
|
|
42915
|
+
const key2 = dynamicProps[i2];
|
|
42916
|
+
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits, key2)) {
|
|
42917
|
+
return true;
|
|
42918
|
+
}
|
|
42919
|
+
}
|
|
42920
|
+
}
|
|
42921
|
+
} else {
|
|
42922
|
+
if (prevChildren || nextChildren) {
|
|
42923
|
+
if (!nextChildren || !nextChildren.$stable) {
|
|
42924
|
+
return true;
|
|
42925
|
+
}
|
|
42926
|
+
}
|
|
42927
|
+
if (prevProps === nextProps) {
|
|
42928
|
+
return false;
|
|
42929
|
+
}
|
|
42930
|
+
if (!prevProps) {
|
|
42931
|
+
return !!nextProps;
|
|
42932
|
+
}
|
|
42933
|
+
if (!nextProps) {
|
|
42934
|
+
return true;
|
|
42935
|
+
}
|
|
42936
|
+
return hasPropsChanged(prevProps, nextProps, emits);
|
|
42937
|
+
}
|
|
42938
|
+
return false;
|
|
42939
|
+
}
|
|
42940
|
+
function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
42941
|
+
const nextKeys = Object.keys(nextProps);
|
|
42942
|
+
if (nextKeys.length !== Object.keys(prevProps).length) {
|
|
42943
|
+
return true;
|
|
42944
|
+
}
|
|
42945
|
+
for (let i2 = 0; i2 < nextKeys.length; i2++) {
|
|
42946
|
+
const key2 = nextKeys[i2];
|
|
42947
|
+
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) {
|
|
42948
|
+
return true;
|
|
42949
|
+
}
|
|
42950
|
+
}
|
|
42951
|
+
return false;
|
|
42952
|
+
}
|
|
42953
|
+
function updateHOCHostEl({ vnode, parent }, el) {
|
|
42954
|
+
while (parent) {
|
|
42955
|
+
const root2 = parent.subTree;
|
|
42956
|
+
if (root2.suspense && root2.suspense.activeBranch === vnode) {
|
|
42957
|
+
root2.el = vnode.el;
|
|
42958
|
+
}
|
|
42959
|
+
if (root2 === vnode) {
|
|
42960
|
+
(vnode = parent.vnode).el = el;
|
|
42961
|
+
parent = parent.parent;
|
|
42962
|
+
} else {
|
|
42963
|
+
break;
|
|
42964
|
+
}
|
|
42965
|
+
}
|
|
42966
|
+
}
|
|
42523
42967
|
const internalObjectProto = {};
|
|
42524
42968
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
42525
42969
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
@@ -44240,391 +44684,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
44240
44684
|
hooks[i2].flags |= 8;
|
|
44241
44685
|
}
|
|
44242
44686
|
}
|
|
44243
|
-
const ssrContextKey$2 = Symbol.for("v-scx");
|
|
44244
|
-
const useSSRContext = () => {
|
|
44245
|
-
{
|
|
44246
|
-
const ctx2 = inject(ssrContextKey$2);
|
|
44247
|
-
return ctx2;
|
|
44248
|
-
}
|
|
44249
|
-
};
|
|
44250
|
-
function watchEffect(effect2, options) {
|
|
44251
|
-
return doWatch(effect2, null, options);
|
|
44252
|
-
}
|
|
44253
|
-
function watch(source, cb, options) {
|
|
44254
|
-
return doWatch(source, cb, options);
|
|
44255
|
-
}
|
|
44256
|
-
function doWatch(source, cb, options = EMPTY_OBJ) {
|
|
44257
|
-
const { immediate, deep, flush, once } = options;
|
|
44258
|
-
const baseWatchOptions = extend$2({}, options);
|
|
44259
|
-
const runsImmediately = cb && immediate || !cb && flush !== "post";
|
|
44260
|
-
let ssrCleanup;
|
|
44261
|
-
if (isInSSRComponentSetup) {
|
|
44262
|
-
if (flush === "sync") {
|
|
44263
|
-
const ctx2 = useSSRContext();
|
|
44264
|
-
ssrCleanup = ctx2.__watcherHandles || (ctx2.__watcherHandles = []);
|
|
44265
|
-
} else if (!runsImmediately) {
|
|
44266
|
-
const watchStopHandle = () => {
|
|
44267
|
-
};
|
|
44268
|
-
watchStopHandle.stop = NOOP;
|
|
44269
|
-
watchStopHandle.resume = NOOP;
|
|
44270
|
-
watchStopHandle.pause = NOOP;
|
|
44271
|
-
return watchStopHandle;
|
|
44272
|
-
}
|
|
44273
|
-
}
|
|
44274
|
-
const instance = currentInstance;
|
|
44275
|
-
baseWatchOptions.call = (fn, type2, args) => callWithAsyncErrorHandling(fn, instance, type2, args);
|
|
44276
|
-
let isPre = false;
|
|
44277
|
-
if (flush === "post") {
|
|
44278
|
-
baseWatchOptions.scheduler = (job) => {
|
|
44279
|
-
queuePostRenderEffect(job, instance && instance.suspense);
|
|
44280
|
-
};
|
|
44281
|
-
} else if (flush !== "sync") {
|
|
44282
|
-
isPre = true;
|
|
44283
|
-
baseWatchOptions.scheduler = (job, isFirstRun) => {
|
|
44284
|
-
if (isFirstRun) {
|
|
44285
|
-
job();
|
|
44286
|
-
} else {
|
|
44287
|
-
queueJob(job);
|
|
44288
|
-
}
|
|
44289
|
-
};
|
|
44290
|
-
}
|
|
44291
|
-
baseWatchOptions.augmentJob = (job) => {
|
|
44292
|
-
if (cb) {
|
|
44293
|
-
job.flags |= 4;
|
|
44294
|
-
}
|
|
44295
|
-
if (isPre) {
|
|
44296
|
-
job.flags |= 2;
|
|
44297
|
-
if (instance) {
|
|
44298
|
-
job.id = instance.uid;
|
|
44299
|
-
job.i = instance;
|
|
44300
|
-
}
|
|
44301
|
-
}
|
|
44302
|
-
};
|
|
44303
|
-
const watchHandle = watch$1(source, cb, baseWatchOptions);
|
|
44304
|
-
if (isInSSRComponentSetup) {
|
|
44305
|
-
if (ssrCleanup) {
|
|
44306
|
-
ssrCleanup.push(watchHandle);
|
|
44307
|
-
} else if (runsImmediately) {
|
|
44308
|
-
watchHandle();
|
|
44309
|
-
}
|
|
44310
|
-
}
|
|
44311
|
-
return watchHandle;
|
|
44312
|
-
}
|
|
44313
|
-
function instanceWatch(source, value, options) {
|
|
44314
|
-
const publicThis = this.proxy;
|
|
44315
|
-
const getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis);
|
|
44316
|
-
let cb;
|
|
44317
|
-
if (isFunction$2(value)) {
|
|
44318
|
-
cb = value;
|
|
44319
|
-
} else {
|
|
44320
|
-
cb = value.handler;
|
|
44321
|
-
options = value;
|
|
44322
|
-
}
|
|
44323
|
-
const reset = setCurrentInstance(this);
|
|
44324
|
-
const res = doWatch(getter, cb.bind(publicThis), options);
|
|
44325
|
-
reset();
|
|
44326
|
-
return res;
|
|
44327
|
-
}
|
|
44328
|
-
function createPathGetter(ctx2, path2) {
|
|
44329
|
-
const segments = path2.split(".");
|
|
44330
|
-
return () => {
|
|
44331
|
-
let cur = ctx2;
|
|
44332
|
-
for (let i2 = 0; i2 < segments.length && cur; i2++) {
|
|
44333
|
-
cur = cur[segments[i2]];
|
|
44334
|
-
}
|
|
44335
|
-
return cur;
|
|
44336
|
-
};
|
|
44337
|
-
}
|
|
44338
|
-
const getModelModifiers = (props, modelName) => {
|
|
44339
|
-
return modelName === "modelValue" || modelName === "model-value" ? props.modelModifiers : props[`${modelName}Modifiers`] || props[`${camelize(modelName)}Modifiers`] || props[`${hyphenate(modelName)}Modifiers`];
|
|
44340
|
-
};
|
|
44341
|
-
function emit(instance, event, ...rawArgs) {
|
|
44342
|
-
if (instance.isUnmounted) return;
|
|
44343
|
-
const props = instance.vnode.props || EMPTY_OBJ;
|
|
44344
|
-
let args = rawArgs;
|
|
44345
|
-
const isModelListener2 = event.startsWith("update:");
|
|
44346
|
-
const modifiers2 = isModelListener2 && getModelModifiers(props, event.slice(7));
|
|
44347
|
-
if (modifiers2) {
|
|
44348
|
-
if (modifiers2.trim) {
|
|
44349
|
-
args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2);
|
|
44350
|
-
}
|
|
44351
|
-
if (modifiers2.number) {
|
|
44352
|
-
args = rawArgs.map(looseToNumber);
|
|
44353
|
-
}
|
|
44354
|
-
}
|
|
44355
|
-
let handlerName;
|
|
44356
|
-
let handler2 = props[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249)
|
|
44357
|
-
props[handlerName = toHandlerKey(camelize(event))];
|
|
44358
|
-
if (!handler2 && isModelListener2) {
|
|
44359
|
-
handler2 = props[handlerName = toHandlerKey(hyphenate(event))];
|
|
44360
|
-
}
|
|
44361
|
-
if (handler2) {
|
|
44362
|
-
callWithAsyncErrorHandling(
|
|
44363
|
-
handler2,
|
|
44364
|
-
instance,
|
|
44365
|
-
6,
|
|
44366
|
-
args
|
|
44367
|
-
);
|
|
44368
|
-
}
|
|
44369
|
-
const onceHandler = props[handlerName + `Once`];
|
|
44370
|
-
if (onceHandler) {
|
|
44371
|
-
if (!instance.emitted) {
|
|
44372
|
-
instance.emitted = {};
|
|
44373
|
-
} else if (instance.emitted[handlerName]) {
|
|
44374
|
-
return;
|
|
44375
|
-
}
|
|
44376
|
-
instance.emitted[handlerName] = true;
|
|
44377
|
-
callWithAsyncErrorHandling(
|
|
44378
|
-
onceHandler,
|
|
44379
|
-
instance,
|
|
44380
|
-
6,
|
|
44381
|
-
args
|
|
44382
|
-
);
|
|
44383
|
-
}
|
|
44384
|
-
}
|
|
44385
|
-
const mixinEmitsCache = /* @__PURE__ */ new WeakMap();
|
|
44386
|
-
function normalizeEmitsOptions(comp, appContext, asMixin = false) {
|
|
44387
|
-
const cache2 = asMixin ? mixinEmitsCache : appContext.emitsCache;
|
|
44388
|
-
const cached = cache2.get(comp);
|
|
44389
|
-
if (cached !== void 0) {
|
|
44390
|
-
return cached;
|
|
44391
|
-
}
|
|
44392
|
-
const raw = comp.emits;
|
|
44393
|
-
let normalized = {};
|
|
44394
|
-
let hasExtends = false;
|
|
44395
|
-
if (!isFunction$2(comp)) {
|
|
44396
|
-
const extendEmits = (raw2) => {
|
|
44397
|
-
const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true);
|
|
44398
|
-
if (normalizedFromExtend) {
|
|
44399
|
-
hasExtends = true;
|
|
44400
|
-
extend$2(normalized, normalizedFromExtend);
|
|
44401
|
-
}
|
|
44402
|
-
};
|
|
44403
|
-
if (!asMixin && appContext.mixins.length) {
|
|
44404
|
-
appContext.mixins.forEach(extendEmits);
|
|
44405
|
-
}
|
|
44406
|
-
if (comp.extends) {
|
|
44407
|
-
extendEmits(comp.extends);
|
|
44408
|
-
}
|
|
44409
|
-
if (comp.mixins) {
|
|
44410
|
-
comp.mixins.forEach(extendEmits);
|
|
44411
|
-
}
|
|
44412
|
-
}
|
|
44413
|
-
if (!raw && !hasExtends) {
|
|
44414
|
-
if (isObject$3(comp)) {
|
|
44415
|
-
cache2.set(comp, null);
|
|
44416
|
-
}
|
|
44417
|
-
return null;
|
|
44418
|
-
}
|
|
44419
|
-
if (isArray$3(raw)) {
|
|
44420
|
-
raw.forEach((key2) => normalized[key2] = null);
|
|
44421
|
-
} else {
|
|
44422
|
-
extend$2(normalized, raw);
|
|
44423
|
-
}
|
|
44424
|
-
if (isObject$3(comp)) {
|
|
44425
|
-
cache2.set(comp, normalized);
|
|
44426
|
-
}
|
|
44427
|
-
return normalized;
|
|
44428
|
-
}
|
|
44429
|
-
function isEmitListener(options, key2) {
|
|
44430
|
-
if (!options || !isOn(key2)) {
|
|
44431
|
-
return false;
|
|
44432
|
-
}
|
|
44433
|
-
key2 = key2.slice(2).replace(/Once$/, "");
|
|
44434
|
-
return hasOwn(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn(options, hyphenate(key2)) || hasOwn(options, key2);
|
|
44435
|
-
}
|
|
44436
|
-
function markAttrsAccessed() {
|
|
44437
|
-
}
|
|
44438
|
-
function renderComponentRoot(instance) {
|
|
44439
|
-
const {
|
|
44440
|
-
type: Component,
|
|
44441
|
-
vnode,
|
|
44442
|
-
proxy,
|
|
44443
|
-
withProxy,
|
|
44444
|
-
propsOptions: [propsOptions],
|
|
44445
|
-
slots,
|
|
44446
|
-
attrs,
|
|
44447
|
-
emit: emit2,
|
|
44448
|
-
render: render2,
|
|
44449
|
-
renderCache,
|
|
44450
|
-
props,
|
|
44451
|
-
data,
|
|
44452
|
-
setupState,
|
|
44453
|
-
ctx: ctx2,
|
|
44454
|
-
inheritAttrs
|
|
44455
|
-
} = instance;
|
|
44456
|
-
const prev = setCurrentRenderingInstance(instance);
|
|
44457
|
-
let result;
|
|
44458
|
-
let fallthroughAttrs;
|
|
44459
|
-
try {
|
|
44460
|
-
if (vnode.shapeFlag & 4) {
|
|
44461
|
-
const proxyToUse = withProxy || proxy;
|
|
44462
|
-
const thisProxy = !!(define_process_default$2.env.NODE_ENV !== "production") && setupState.__isScriptSetup ? new Proxy(proxyToUse, {
|
|
44463
|
-
get(target, key2, receiver) {
|
|
44464
|
-
warn$1$2(
|
|
44465
|
-
`Property '${String(
|
|
44466
|
-
key2
|
|
44467
|
-
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
44468
|
-
);
|
|
44469
|
-
return Reflect.get(target, key2, receiver);
|
|
44470
|
-
}
|
|
44471
|
-
}) : proxyToUse;
|
|
44472
|
-
result = normalizeVNode(
|
|
44473
|
-
render2.call(
|
|
44474
|
-
thisProxy,
|
|
44475
|
-
proxyToUse,
|
|
44476
|
-
renderCache,
|
|
44477
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
44478
|
-
setupState,
|
|
44479
|
-
data,
|
|
44480
|
-
ctx2
|
|
44481
|
-
)
|
|
44482
|
-
);
|
|
44483
|
-
fallthroughAttrs = attrs;
|
|
44484
|
-
} else {
|
|
44485
|
-
const render22 = Component;
|
|
44486
|
-
if (!!(define_process_default$2.env.NODE_ENV !== "production") && attrs === props) ;
|
|
44487
|
-
result = normalizeVNode(
|
|
44488
|
-
render22.length > 1 ? render22(
|
|
44489
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
44490
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? {
|
|
44491
|
-
get attrs() {
|
|
44492
|
-
markAttrsAccessed();
|
|
44493
|
-
return shallowReadonly(attrs);
|
|
44494
|
-
},
|
|
44495
|
-
slots,
|
|
44496
|
-
emit: emit2
|
|
44497
|
-
} : { attrs, slots, emit: emit2 }
|
|
44498
|
-
) : render22(
|
|
44499
|
-
!!(define_process_default$2.env.NODE_ENV !== "production") ? shallowReadonly(props) : props,
|
|
44500
|
-
null
|
|
44501
|
-
)
|
|
44502
|
-
);
|
|
44503
|
-
fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
|
|
44504
|
-
}
|
|
44505
|
-
} catch (err) {
|
|
44506
|
-
blockStack.length = 0;
|
|
44507
|
-
handleError(err, instance, 1);
|
|
44508
|
-
result = createVNode(Comment);
|
|
44509
|
-
}
|
|
44510
|
-
let root2 = result;
|
|
44511
|
-
if (fallthroughAttrs && inheritAttrs !== false) {
|
|
44512
|
-
const keys2 = Object.keys(fallthroughAttrs);
|
|
44513
|
-
const { shapeFlag } = root2;
|
|
44514
|
-
if (keys2.length) {
|
|
44515
|
-
if (shapeFlag & (1 | 6)) {
|
|
44516
|
-
if (propsOptions && keys2.some(isModelListener)) {
|
|
44517
|
-
fallthroughAttrs = filterModelListeners(
|
|
44518
|
-
fallthroughAttrs,
|
|
44519
|
-
propsOptions
|
|
44520
|
-
);
|
|
44521
|
-
}
|
|
44522
|
-
root2 = cloneVNode(root2, fallthroughAttrs, false, true);
|
|
44523
|
-
}
|
|
44524
|
-
}
|
|
44525
|
-
}
|
|
44526
|
-
if (vnode.dirs) {
|
|
44527
|
-
root2 = cloneVNode(root2, null, false, true);
|
|
44528
|
-
root2.dirs = root2.dirs ? root2.dirs.concat(vnode.dirs) : vnode.dirs;
|
|
44529
|
-
}
|
|
44530
|
-
if (vnode.transition) {
|
|
44531
|
-
setTransitionHooks(root2, vnode.transition);
|
|
44532
|
-
}
|
|
44533
|
-
{
|
|
44534
|
-
result = root2;
|
|
44535
|
-
}
|
|
44536
|
-
setCurrentRenderingInstance(prev);
|
|
44537
|
-
return result;
|
|
44538
|
-
}
|
|
44539
|
-
const getFunctionalFallthrough = (attrs) => {
|
|
44540
|
-
let res;
|
|
44541
|
-
for (const key2 in attrs) {
|
|
44542
|
-
if (key2 === "class" || key2 === "style" || isOn(key2)) {
|
|
44543
|
-
(res || (res = {}))[key2] = attrs[key2];
|
|
44544
|
-
}
|
|
44545
|
-
}
|
|
44546
|
-
return res;
|
|
44547
|
-
};
|
|
44548
|
-
const filterModelListeners = (attrs, props) => {
|
|
44549
|
-
const res = {};
|
|
44550
|
-
for (const key2 in attrs) {
|
|
44551
|
-
if (!isModelListener(key2) || !(key2.slice(9) in props)) {
|
|
44552
|
-
res[key2] = attrs[key2];
|
|
44553
|
-
}
|
|
44554
|
-
}
|
|
44555
|
-
return res;
|
|
44556
|
-
};
|
|
44557
|
-
function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
|
|
44558
|
-
const { props: prevProps, children: prevChildren, component } = prevVNode;
|
|
44559
|
-
const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
|
|
44560
|
-
const emits = component.emitsOptions;
|
|
44561
|
-
if (nextVNode.dirs || nextVNode.transition) {
|
|
44562
|
-
return true;
|
|
44563
|
-
}
|
|
44564
|
-
if (optimized && patchFlag >= 0) {
|
|
44565
|
-
if (patchFlag & 1024) {
|
|
44566
|
-
return true;
|
|
44567
|
-
}
|
|
44568
|
-
if (patchFlag & 16) {
|
|
44569
|
-
if (!prevProps) {
|
|
44570
|
-
return !!nextProps;
|
|
44571
|
-
}
|
|
44572
|
-
return hasPropsChanged(prevProps, nextProps, emits);
|
|
44573
|
-
} else if (patchFlag & 8) {
|
|
44574
|
-
const dynamicProps = nextVNode.dynamicProps;
|
|
44575
|
-
for (let i2 = 0; i2 < dynamicProps.length; i2++) {
|
|
44576
|
-
const key2 = dynamicProps[i2];
|
|
44577
|
-
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits, key2)) {
|
|
44578
|
-
return true;
|
|
44579
|
-
}
|
|
44580
|
-
}
|
|
44581
|
-
}
|
|
44582
|
-
} else {
|
|
44583
|
-
if (prevChildren || nextChildren) {
|
|
44584
|
-
if (!nextChildren || !nextChildren.$stable) {
|
|
44585
|
-
return true;
|
|
44586
|
-
}
|
|
44587
|
-
}
|
|
44588
|
-
if (prevProps === nextProps) {
|
|
44589
|
-
return false;
|
|
44590
|
-
}
|
|
44591
|
-
if (!prevProps) {
|
|
44592
|
-
return !!nextProps;
|
|
44593
|
-
}
|
|
44594
|
-
if (!nextProps) {
|
|
44595
|
-
return true;
|
|
44596
|
-
}
|
|
44597
|
-
return hasPropsChanged(prevProps, nextProps, emits);
|
|
44598
|
-
}
|
|
44599
|
-
return false;
|
|
44600
|
-
}
|
|
44601
|
-
function hasPropsChanged(prevProps, nextProps, emitsOptions) {
|
|
44602
|
-
const nextKeys = Object.keys(nextProps);
|
|
44603
|
-
if (nextKeys.length !== Object.keys(prevProps).length) {
|
|
44604
|
-
return true;
|
|
44605
|
-
}
|
|
44606
|
-
for (let i2 = 0; i2 < nextKeys.length; i2++) {
|
|
44607
|
-
const key2 = nextKeys[i2];
|
|
44608
|
-
if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) {
|
|
44609
|
-
return true;
|
|
44610
|
-
}
|
|
44611
|
-
}
|
|
44612
|
-
return false;
|
|
44613
|
-
}
|
|
44614
|
-
function updateHOCHostEl({ vnode, parent }, el) {
|
|
44615
|
-
while (parent) {
|
|
44616
|
-
const root2 = parent.subTree;
|
|
44617
|
-
if (root2.suspense && root2.suspense.activeBranch === vnode) {
|
|
44618
|
-
root2.el = vnode.el;
|
|
44619
|
-
}
|
|
44620
|
-
if (root2 === vnode) {
|
|
44621
|
-
(vnode = parent.vnode).el = el;
|
|
44622
|
-
parent = parent.parent;
|
|
44623
|
-
} else {
|
|
44624
|
-
break;
|
|
44625
|
-
}
|
|
44626
|
-
}
|
|
44627
|
-
}
|
|
44628
44687
|
const isSuspense = (type2) => type2.__isSuspense;
|
|
44629
44688
|
function queueEffectWithSuspense(fn, suspense) {
|
|
44630
44689
|
if (suspense && suspense.pendingBranch) {
|
|
@@ -45232,7 +45291,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45232
45291
|
name = match[1];
|
|
45233
45292
|
}
|
|
45234
45293
|
}
|
|
45235
|
-
if (!name && instance
|
|
45294
|
+
if (!name && instance) {
|
|
45236
45295
|
const inferFromRegistry = (registry) => {
|
|
45237
45296
|
for (const key2 in registry) {
|
|
45238
45297
|
if (registry[key2] === Component) {
|
|
@@ -45240,8 +45299,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45240
45299
|
}
|
|
45241
45300
|
}
|
|
45242
45301
|
};
|
|
45243
|
-
name = inferFromRegistry(
|
|
45244
|
-
instance.
|
|
45302
|
+
name = inferFromRegistry(instance.components) || instance.parent && inferFromRegistry(
|
|
45303
|
+
instance.parent.type.components
|
|
45245
45304
|
) || inferFromRegistry(instance.appContext.components);
|
|
45246
45305
|
}
|
|
45247
45306
|
return name ? classify(name) : isRoot ? `App` : `Anonymous`;
|
|
@@ -45278,7 +45337,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
45278
45337
|
setBlockTracking(1);
|
|
45279
45338
|
}
|
|
45280
45339
|
}
|
|
45281
|
-
const version$1 = "3.5.
|
|
45340
|
+
const version$1 = "3.5.25";
|
|
45282
45341
|
let policy = void 0;
|
|
45283
45342
|
const tt = typeof window !== "undefined" && window.trustedTypes;
|
|
45284
45343
|
if (tt) {
|
|
@@ -46951,17 +47010,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
46951
47010
|
elt = elt.shadowRoot.activeElement;
|
|
46952
47011
|
return elt;
|
|
46953
47012
|
}
|
|
46954
|
-
function caretFromPoint(doc2,
|
|
47013
|
+
function caretFromPoint(doc2, x2, y2) {
|
|
46955
47014
|
if (doc2.caretPositionFromPoint) {
|
|
46956
47015
|
try {
|
|
46957
|
-
let pos = doc2.caretPositionFromPoint(
|
|
47016
|
+
let pos = doc2.caretPositionFromPoint(x2, y2);
|
|
46958
47017
|
if (pos)
|
|
46959
47018
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
46960
47019
|
} catch (_2) {
|
|
46961
47020
|
}
|
|
46962
47021
|
}
|
|
46963
47022
|
if (doc2.caretRangeFromPoint) {
|
|
46964
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
47023
|
+
let range2 = doc2.caretRangeFromPoint(x2, y2);
|
|
46965
47024
|
if (range2)
|
|
46966
47025
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
46967
47026
|
}
|
|
@@ -47060,8 +47119,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47060
47119
|
function storeScrollPos(view) {
|
|
47061
47120
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
47062
47121
|
let refDOM, refTop;
|
|
47063
|
-
for (let
|
|
47064
|
-
let dom = view.root.elementFromPoint(
|
|
47122
|
+
for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
47123
|
+
let dom = view.root.elementFromPoint(x2, y2);
|
|
47065
47124
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
47066
47125
|
continue;
|
|
47067
47126
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -47357,8 +47416,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
47357
47416
|
function flattenV(rect, left2) {
|
|
47358
47417
|
if (rect.width == 0)
|
|
47359
47418
|
return rect;
|
|
47360
|
-
let
|
|
47361
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
47419
|
+
let x2 = left2 ? rect.left : rect.right;
|
|
47420
|
+
return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
|
|
47362
47421
|
}
|
|
47363
47422
|
function flattenH(rect, top2) {
|
|
47364
47423
|
if (rect.height == 0)
|
|
@@ -52365,10 +52424,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
52365
52424
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
52366
52425
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
52367
52426
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
52368
|
-
const sum0to256 = (
|
|
52369
|
-
const sum1to256 = (
|
|
52370
|
-
const sigma0to256 = (
|
|
52371
|
-
const sigma1to256 = (
|
|
52427
|
+
const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
|
|
52428
|
+
const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
|
|
52429
|
+
const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
|
|
52430
|
+
const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
|
|
52372
52431
|
const K = new Uint32Array([
|
|
52373
52432
|
1116352408,
|
|
52374
52433
|
1899447441,
|
|
@@ -54381,6 +54440,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
54381
54440
|
code: callOrGet(getExtensionConfigField(extension, "code", context)),
|
|
54382
54441
|
defining: callOrGet(getExtensionConfigField(extension, "defining", context)),
|
|
54383
54442
|
isolating: callOrGet(getExtensionConfigField(extension, "isolating", context)),
|
|
54443
|
+
summary: getExtensionConfigField(extension, "summary", context),
|
|
54384
54444
|
attrs,
|
|
54385
54445
|
...additionalNodeFields
|
|
54386
54446
|
});
|
|
@@ -57029,39 +57089,44 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
57029
57089
|
return `${color2}${alpha}`;
|
|
57030
57090
|
};
|
|
57031
57091
|
const updateYdocDocxData = async (editor, ydoc) => {
|
|
57032
|
-
|
|
57033
|
-
|
|
57034
|
-
|
|
57035
|
-
|
|
57036
|
-
|
|
57037
|
-
|
|
57038
|
-
|
|
57039
|
-
|
|
57040
|
-
|
|
57041
|
-
|
|
57042
|
-
|
|
57043
|
-
|
|
57044
|
-
|
|
57045
|
-
|
|
57046
|
-
docx
|
|
57047
|
-
|
|
57048
|
-
|
|
57049
|
-
|
|
57050
|
-
|
|
57051
|
-
|
|
57052
|
-
docx.
|
|
57053
|
-
|
|
57054
|
-
|
|
57055
|
-
|
|
57056
|
-
|
|
57092
|
+
try {
|
|
57093
|
+
ydoc = ydoc || editor?.options?.ydoc;
|
|
57094
|
+
if (!ydoc) return;
|
|
57095
|
+
if (!editor || editor.isDestroyed) return;
|
|
57096
|
+
const metaMap = ydoc.getMap("meta");
|
|
57097
|
+
const docxValue = metaMap.get("docx");
|
|
57098
|
+
let docx = [];
|
|
57099
|
+
if (Array.isArray(docxValue)) {
|
|
57100
|
+
docx = [...docxValue];
|
|
57101
|
+
} else if (docxValue && typeof docxValue.toArray === "function") {
|
|
57102
|
+
docx = docxValue.toArray();
|
|
57103
|
+
} else if (docxValue && typeof docxValue[Symbol.iterator] === "function") {
|
|
57104
|
+
docx = Array.from(docxValue);
|
|
57105
|
+
}
|
|
57106
|
+
if (!docx.length && Array.isArray(editor.options.content)) {
|
|
57107
|
+
docx = [...editor.options.content];
|
|
57108
|
+
}
|
|
57109
|
+
const newXml = await editor.exportDocx({ getUpdatedDocs: true });
|
|
57110
|
+
if (!newXml || typeof newXml !== "object") return;
|
|
57111
|
+
Object.keys(newXml).forEach((key2) => {
|
|
57112
|
+
const fileIndex = docx.findIndex((item) => item.name === key2);
|
|
57113
|
+
if (fileIndex > -1) {
|
|
57114
|
+
docx.splice(fileIndex, 1);
|
|
57115
|
+
}
|
|
57116
|
+
docx.push({
|
|
57117
|
+
name: key2,
|
|
57118
|
+
content: newXml[key2]
|
|
57119
|
+
});
|
|
57057
57120
|
});
|
|
57058
|
-
|
|
57059
|
-
|
|
57060
|
-
|
|
57061
|
-
|
|
57062
|
-
|
|
57063
|
-
|
|
57064
|
-
)
|
|
57121
|
+
ydoc.transact(
|
|
57122
|
+
() => {
|
|
57123
|
+
metaMap.set("docx", docx);
|
|
57124
|
+
},
|
|
57125
|
+
{ event: "docx-update", user: editor.options.user }
|
|
57126
|
+
);
|
|
57127
|
+
} catch (error) {
|
|
57128
|
+
console.warn("[collaboration] Failed to update Ydoc docx data", error);
|
|
57129
|
+
}
|
|
57065
57130
|
};
|
|
57066
57131
|
const STYLE_ISOLATION_CLASS = "sd-editor-scoped";
|
|
57067
57132
|
const applyStyleIsolationClass = (target) => {
|
|
@@ -59741,6 +59806,66 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
59741
59806
|
const lvl = node2.getAttribute("data-level");
|
|
59742
59807
|
return lvl ? parseInt(lvl, 10) : 0;
|
|
59743
59808
|
};
|
|
59809
|
+
const summaryVersion = "0.31.0-next.9";
|
|
59810
|
+
const nodeKeys = [
|
|
59811
|
+
"group",
|
|
59812
|
+
"content",
|
|
59813
|
+
"marks",
|
|
59814
|
+
"inline",
|
|
59815
|
+
"atom",
|
|
59816
|
+
"defining",
|
|
59817
|
+
"code",
|
|
59818
|
+
"tableRole",
|
|
59819
|
+
"summary"
|
|
59820
|
+
];
|
|
59821
|
+
const markKeys = ["group", "inclusive", "excludes", "spanning", "code"];
|
|
59822
|
+
function mapAttributes(attrs) {
|
|
59823
|
+
if (!attrs) return {};
|
|
59824
|
+
return Object.fromEntries(
|
|
59825
|
+
Object.entries(attrs).map(([name, attrSpec]) => {
|
|
59826
|
+
const defaultValue = attrSpec?.default;
|
|
59827
|
+
return [
|
|
59828
|
+
name,
|
|
59829
|
+
{
|
|
59830
|
+
default: defaultValue ?? null,
|
|
59831
|
+
required: defaultValue === void 0
|
|
59832
|
+
}
|
|
59833
|
+
];
|
|
59834
|
+
})
|
|
59835
|
+
);
|
|
59836
|
+
}
|
|
59837
|
+
function pickSpecFields(spec, keys2) {
|
|
59838
|
+
return Object.fromEntries(keys2.map((key2) => [key2, spec[key2]]).filter(([, value]) => value !== void 0));
|
|
59839
|
+
}
|
|
59840
|
+
function buildSchemaSummary(schema, schemaVersion) {
|
|
59841
|
+
if (!schema || typeof schema !== "object") {
|
|
59842
|
+
throw new Error("Invalid schema: schema must be a valid ProseMirror Schema object.");
|
|
59843
|
+
}
|
|
59844
|
+
const resolvedSchemaVersion = schemaVersion || "current";
|
|
59845
|
+
const nodes = [];
|
|
59846
|
+
schema.spec.nodes.forEach((name, spec) => {
|
|
59847
|
+
nodes.push({
|
|
59848
|
+
name,
|
|
59849
|
+
attrs: mapAttributes(spec.attrs),
|
|
59850
|
+
...pickSpecFields(spec, nodeKeys)
|
|
59851
|
+
});
|
|
59852
|
+
});
|
|
59853
|
+
const marks = [];
|
|
59854
|
+
schema.spec.marks.forEach((name, spec) => {
|
|
59855
|
+
marks.push({
|
|
59856
|
+
name,
|
|
59857
|
+
attrs: mapAttributes(spec.attrs),
|
|
59858
|
+
...pickSpecFields(spec, markKeys)
|
|
59859
|
+
});
|
|
59860
|
+
});
|
|
59861
|
+
return {
|
|
59862
|
+
version: summaryVersion,
|
|
59863
|
+
schemaVersion: resolvedSchemaVersion,
|
|
59864
|
+
topNode: schema.topNodeType?.name,
|
|
59865
|
+
nodes,
|
|
59866
|
+
marks
|
|
59867
|
+
};
|
|
59868
|
+
}
|
|
59744
59869
|
const _Editor = class _Editor2 extends EventEmitter$2 {
|
|
59745
59870
|
/**
|
|
59746
59871
|
* Create a new Editor instance
|
|
@@ -60121,6 +60246,53 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
60121
60246
|
console.warn("updateDocumentVersion is deprecated, use setDocumentVersion instead");
|
|
60122
60247
|
return _Editor2.setDocumentVersion(doc2, version2);
|
|
60123
60248
|
}
|
|
60249
|
+
/**
|
|
60250
|
+
* Generates a schema summary for the current runtime schema.
|
|
60251
|
+
*/
|
|
60252
|
+
async getSchemaSummaryJSON() {
|
|
60253
|
+
if (!this.schema) {
|
|
60254
|
+
throw new Error("Schema is not initialized.");
|
|
60255
|
+
}
|
|
60256
|
+
const schemaVersion = this.converter?.getSuperdocVersion?.() || "current";
|
|
60257
|
+
const suppressedNames = new Set(
|
|
60258
|
+
(this.extensionService?.extensions || []).filter((ext) => {
|
|
60259
|
+
const config2 = ext?.config;
|
|
60260
|
+
const suppressFlag = config2?.excludeFromSummaryJSON;
|
|
60261
|
+
return Boolean(suppressFlag);
|
|
60262
|
+
}).map((ext) => ext.name)
|
|
60263
|
+
);
|
|
60264
|
+
const summary = buildSchemaSummary(this.schema, schemaVersion);
|
|
60265
|
+
if (!suppressedNames.size) {
|
|
60266
|
+
return summary;
|
|
60267
|
+
}
|
|
60268
|
+
return {
|
|
60269
|
+
...summary,
|
|
60270
|
+
nodes: summary.nodes.filter((node2) => !suppressedNames.has(node2.name)),
|
|
60271
|
+
marks: summary.marks.filter((mark2) => !suppressedNames.has(mark2.name))
|
|
60272
|
+
};
|
|
60273
|
+
}
|
|
60274
|
+
/**
|
|
60275
|
+
* Validates a ProseMirror JSON document against the current schema.
|
|
60276
|
+
*/
|
|
60277
|
+
validateJSON(doc2) {
|
|
60278
|
+
if (!this.schema) {
|
|
60279
|
+
throw new Error("Schema is not initialized.");
|
|
60280
|
+
}
|
|
60281
|
+
const topNodeName = this.schema.topNodeType?.name || "doc";
|
|
60282
|
+
const normalizedDoc = Array.isArray(doc2) ? { type: topNodeName, content: doc2 } : doc2 && typeof doc2 === "object" && doc2.type ? doc2.type === topNodeName || doc2.type === "doc" ? doc2 : { type: topNodeName, content: [doc2] } : (() => {
|
|
60283
|
+
throw new Error("Invalid document shape: expected a node object or an array of node objects.");
|
|
60284
|
+
})();
|
|
60285
|
+
try {
|
|
60286
|
+
return this.schema.nodeFromJSON(normalizedDoc);
|
|
60287
|
+
} catch (error) {
|
|
60288
|
+
const detail = error instanceof Error ? error.message : String(error);
|
|
60289
|
+
const validationError = new Error(`Invalid document for current schema: ${detail}`);
|
|
60290
|
+
if (error instanceof Error) {
|
|
60291
|
+
validationError.cause = error;
|
|
60292
|
+
}
|
|
60293
|
+
throw validationError;
|
|
60294
|
+
}
|
|
60295
|
+
}
|
|
60124
60296
|
/**
|
|
60125
60297
|
* Creates all node views.
|
|
60126
60298
|
*/
|
|
@@ -60351,7 +60523,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
60351
60523
|
{ default: remarkStringify2 },
|
|
60352
60524
|
{ default: remarkGfm2 }
|
|
60353
60525
|
] = await Promise.all([
|
|
60354
|
-
Promise.resolve().then(() =>
|
|
60526
|
+
Promise.resolve().then(() => indexMvOjU9rn),
|
|
60355
60527
|
Promise.resolve().then(() => indexDRCvimau),
|
|
60356
60528
|
Promise.resolve().then(() => indexC_x_N6Uh),
|
|
60357
60529
|
Promise.resolve().then(() => indexD_sWOSiG),
|
|
@@ -60552,7 +60724,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
60552
60724
|
* Process collaboration migrations
|
|
60553
60725
|
*/
|
|
60554
60726
|
processCollaborationMigrations() {
|
|
60555
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.
|
|
60727
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.31.0-next.9");
|
|
60556
60728
|
if (!this.options.ydoc) return;
|
|
60557
60729
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
60558
60730
|
let docVersion = metaMap.get("version");
|
|
@@ -62165,6 +62337,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62165
62337
|
name: AiMarkName,
|
|
62166
62338
|
group: "ai",
|
|
62167
62339
|
inclusive: false,
|
|
62340
|
+
excludeFromSummaryJSON: true,
|
|
62168
62341
|
addOptions() {
|
|
62169
62342
|
return {
|
|
62170
62343
|
htmlAttributes: { class: "sd-ai-highlight" }
|
|
@@ -62191,6 +62364,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62191
62364
|
inclusive: false,
|
|
62192
62365
|
spanning: false,
|
|
62193
62366
|
excludes: AiAnimationMarkName,
|
|
62367
|
+
excludeFromSummaryJSON: true,
|
|
62194
62368
|
addOptions() {
|
|
62195
62369
|
return {
|
|
62196
62370
|
htmlAttributes: {}
|
|
@@ -62222,6 +62396,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62222
62396
|
const dotsLoader = "data:image/svg+xml,%3csvg%20fill='hsla(278,%2077.40%25,%2020.80%25,%200.65)'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4'%20cy='12'%20r='0'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_lo66'%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_z0Or'%20begin='spinner_lo66.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='4'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_JsnR'%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_Aguh'%20begin='spinner_JsnR.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='12'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_hSjk'%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_UHR2'%20begin='spinner_hSjk.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='20'%20cy='12'%20r='3'%3e%3canimate%20id='spinner_4v5M'%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_OLMs'%20begin='spinner_4v5M.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3c/circle%3e%3c/svg%3e";
|
|
62223
62397
|
const AiLoaderNode = Node$1.create({
|
|
62224
62398
|
name: AiLoaderNodeName,
|
|
62399
|
+
excludeFromSummaryJSON: true,
|
|
62225
62400
|
group: "inline",
|
|
62226
62401
|
inline: true,
|
|
62227
62402
|
atom: true,
|
|
@@ -62427,16 +62602,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62427
62602
|
const { state: state2, dom } = view;
|
|
62428
62603
|
const { selection } = state2;
|
|
62429
62604
|
const containerRect = dom.getBoundingClientRect();
|
|
62430
|
-
let
|
|
62605
|
+
let x2, y2;
|
|
62431
62606
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
62432
|
-
|
|
62607
|
+
x2 = eventLocation.clientX - containerRect.left;
|
|
62433
62608
|
y2 = eventLocation.clientY - containerRect.top;
|
|
62434
62609
|
} else {
|
|
62435
62610
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
62436
|
-
|
|
62611
|
+
x2 = cursorCoords.left - containerRect.left;
|
|
62437
62612
|
y2 = cursorCoords.top - containerRect.top;
|
|
62438
62613
|
}
|
|
62439
|
-
return { left:
|
|
62614
|
+
return { left: x2, top: y2 };
|
|
62440
62615
|
}
|
|
62441
62616
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
62442
62617
|
const SlashMenu = Extension.create({
|
|
@@ -62715,17 +62890,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
62715
62890
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
62716
62891
|
return;
|
|
62717
62892
|
}
|
|
62718
|
-
let
|
|
62893
|
+
let x2 = 0;
|
|
62719
62894
|
let y2 = 0;
|
|
62720
62895
|
if (this.dom !== dragHandle) {
|
|
62721
62896
|
const domBox = this.dom.getBoundingClientRect();
|
|
62722
62897
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
62723
62898
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
62724
62899
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
62725
|
-
|
|
62900
|
+
x2 = handleBox.x - domBox.x + offsetX;
|
|
62726
62901
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
62727
62902
|
}
|
|
62728
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
62903
|
+
event.dataTransfer?.setDragImage(this.dom, x2, y2);
|
|
62729
62904
|
const pos = this.getPos();
|
|
62730
62905
|
if (typeof pos !== "number") {
|
|
62731
62906
|
return;
|
|
@@ -63809,6 +63984,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
63809
63984
|
group: "block",
|
|
63810
63985
|
content: "block*",
|
|
63811
63986
|
isolating: true,
|
|
63987
|
+
excludeFromSummaryJSON: true,
|
|
63812
63988
|
addOptions() {
|
|
63813
63989
|
return {
|
|
63814
63990
|
htmlAttributes: {
|
|
@@ -65902,6 +66078,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
65902
66078
|
group: "block",
|
|
65903
66079
|
content: "inline*",
|
|
65904
66080
|
inline: false,
|
|
66081
|
+
summary: "The paragraph node mirrors MS Word w:p paragraphs, and also represents lists in the schema.",
|
|
65905
66082
|
addOptions() {
|
|
65906
66083
|
return {
|
|
65907
66084
|
headingLevels: [1, 2, 3, 4, 5, 6],
|
|
@@ -70761,17 +70938,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70761
70938
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
70762
70939
|
if (reducedHexMatch) {
|
|
70763
70940
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
70764
|
-
return [...arr.slice(0, 3).map((
|
|
70941
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
70765
70942
|
}
|
|
70766
70943
|
const hexMatch = hexRegex$2.exec(normalizedColor);
|
|
70767
70944
|
if (hexMatch) {
|
|
70768
70945
|
const arr = Array.from(hexMatch).slice(1);
|
|
70769
|
-
return [...arr.slice(0, 3).map((
|
|
70946
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
70770
70947
|
}
|
|
70771
70948
|
const rgbaMatch = rgbaRegex$2.exec(normalizedColor);
|
|
70772
70949
|
if (rgbaMatch) {
|
|
70773
70950
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
70774
|
-
return [...arr.slice(0, 3).map((
|
|
70951
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
|
|
70775
70952
|
}
|
|
70776
70953
|
const hslaMatch = hslaRegex$2.exec(normalizedColor);
|
|
70777
70954
|
if (hslaMatch) {
|
|
@@ -70790,7 +70967,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70790
70967
|
}
|
|
70791
70968
|
return (hash2 >>> 0) % 2341;
|
|
70792
70969
|
}
|
|
70793
|
-
const colorToInt = (
|
|
70970
|
+
const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
|
|
70794
70971
|
const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next2) => {
|
|
70795
70972
|
const key2 = colorToInt(next2.substring(0, 3));
|
|
70796
70973
|
const hex2 = colorToInt(next2.substring(3)).toString(16);
|
|
@@ -70854,8 +71031,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
70854
71031
|
};
|
|
70855
71032
|
function toHex(color2) {
|
|
70856
71033
|
const [r2, g, b2, a2] = parseToRgba(color2);
|
|
70857
|
-
let hex2 = (
|
|
70858
|
-
const h2 = guard(0, 255,
|
|
71034
|
+
let hex2 = (x2) => {
|
|
71035
|
+
const h2 = guard(0, 255, x2).toString(16);
|
|
70859
71036
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
70860
71037
|
};
|
|
70861
71038
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a2 < 1 ? hex2(Math.round(a2 * 255)) : ""}`;
|
|
@@ -72977,10 +73154,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72977
73154
|
let minX = 0;
|
|
72978
73155
|
let minY = 0;
|
|
72979
73156
|
let maxY = 0;
|
|
72980
|
-
attrs.polygon.forEach(([
|
|
72981
|
-
if (floatRight &&
|
|
72982
|
-
if (
|
|
72983
|
-
if (
|
|
73157
|
+
attrs.polygon.forEach(([x2, y2]) => {
|
|
73158
|
+
if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
|
|
73159
|
+
if (x2 > maxX) maxX = x2;
|
|
73160
|
+
if (x2 < minX) minX = x2;
|
|
72984
73161
|
if (y2 > maxY) maxY = y2;
|
|
72985
73162
|
if (y2 < minY) minY = y2;
|
|
72986
73163
|
});
|
|
@@ -72989,7 +73166,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
72989
73166
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
72990
73167
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
72991
73168
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
72992
|
-
const points = attrs.polygon.map(([
|
|
73169
|
+
const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
72993
73170
|
style2 += `shape-outside: polygon(${points});`;
|
|
72994
73171
|
}
|
|
72995
73172
|
break;
|
|
@@ -73415,6 +73592,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
73415
73592
|
group: "inline",
|
|
73416
73593
|
inline: true,
|
|
73417
73594
|
selectable: false,
|
|
73595
|
+
excludeFromSummaryJSON: true,
|
|
73418
73596
|
atom: true,
|
|
73419
73597
|
addOptions() {
|
|
73420
73598
|
return {
|
|
@@ -76647,13 +76825,13 @@ ${l}
|
|
|
76647
76825
|
createShapeElement(shape) {
|
|
76648
76826
|
const attrs = shape.attrs;
|
|
76649
76827
|
if (!attrs) return null;
|
|
76650
|
-
const
|
|
76828
|
+
const x2 = attrs.x || 0;
|
|
76651
76829
|
const y2 = attrs.y || 0;
|
|
76652
76830
|
const width = attrs.width || 100;
|
|
76653
76831
|
const height = attrs.height || 100;
|
|
76654
76832
|
const g = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
76655
76833
|
const transforms = [];
|
|
76656
|
-
transforms.push(`translate(${
|
|
76834
|
+
transforms.push(`translate(${x2}, ${y2})`);
|
|
76657
76835
|
if (attrs.rotation !== 0) {
|
|
76658
76836
|
transforms.push(`rotate(${attrs.rotation} ${width / 2} ${height / 2})`);
|
|
76659
76837
|
}
|
|
@@ -78395,7 +78573,7 @@ ${l}
|
|
|
78395
78573
|
}
|
|
78396
78574
|
var _ref = isElement$2$1(element2) ? getWindow$1(element2) : window, visualViewport = _ref.visualViewport;
|
|
78397
78575
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
78398
|
-
var
|
|
78576
|
+
var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
78399
78577
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
78400
78578
|
var width = clientRect2.width / scaleX;
|
|
78401
78579
|
var height = clientRect2.height / scaleY;
|
|
@@ -78403,10 +78581,10 @@ ${l}
|
|
|
78403
78581
|
width,
|
|
78404
78582
|
height,
|
|
78405
78583
|
top: y2,
|
|
78406
|
-
right:
|
|
78584
|
+
right: x2 + width,
|
|
78407
78585
|
bottom: y2 + height,
|
|
78408
|
-
left:
|
|
78409
|
-
x,
|
|
78586
|
+
left: x2,
|
|
78587
|
+
x: x2,
|
|
78410
78588
|
y: y2
|
|
78411
78589
|
};
|
|
78412
78590
|
}
|
|
@@ -78607,25 +78785,25 @@ ${l}
|
|
|
78607
78785
|
left: "auto"
|
|
78608
78786
|
};
|
|
78609
78787
|
function roundOffsetsByDPR(_ref, win) {
|
|
78610
|
-
var
|
|
78788
|
+
var x2 = _ref.x, y2 = _ref.y;
|
|
78611
78789
|
var dpr = win.devicePixelRatio || 1;
|
|
78612
78790
|
return {
|
|
78613
|
-
x: round$1(
|
|
78791
|
+
x: round$1(x2 * dpr) / dpr || 0,
|
|
78614
78792
|
y: round$1(y2 * dpr) / dpr || 0
|
|
78615
78793
|
};
|
|
78616
78794
|
}
|
|
78617
78795
|
function mapToStyles(_ref2) {
|
|
78618
78796
|
var _Object$assign2;
|
|
78619
78797
|
var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position2 = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
|
78620
|
-
var _offsets$x = offsets.x,
|
|
78798
|
+
var _offsets$x = offsets.x, x2 = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
78621
78799
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
78622
|
-
x,
|
|
78800
|
+
x: x2,
|
|
78623
78801
|
y: y2
|
|
78624
78802
|
}) : {
|
|
78625
|
-
x,
|
|
78803
|
+
x: x2,
|
|
78626
78804
|
y: y2
|
|
78627
78805
|
};
|
|
78628
|
-
|
|
78806
|
+
x2 = _ref3.x;
|
|
78629
78807
|
y2 = _ref3.y;
|
|
78630
78808
|
var hasX = offsets.hasOwnProperty("x");
|
|
78631
78809
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -78659,27 +78837,27 @@ ${l}
|
|
|
78659
78837
|
// $FlowFixMe[prop-missing]
|
|
78660
78838
|
offsetParent[widthProp]
|
|
78661
78839
|
);
|
|
78662
|
-
|
|
78663
|
-
|
|
78840
|
+
x2 -= offsetX - popperRect.width;
|
|
78841
|
+
x2 *= gpuAcceleration ? 1 : -1;
|
|
78664
78842
|
}
|
|
78665
78843
|
}
|
|
78666
78844
|
var commonStyles = Object.assign({
|
|
78667
78845
|
position: position2
|
|
78668
78846
|
}, adaptive && unsetSides);
|
|
78669
78847
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
78670
|
-
x,
|
|
78848
|
+
x: x2,
|
|
78671
78849
|
y: y2
|
|
78672
78850
|
}, getWindow$1(popper2)) : {
|
|
78673
|
-
x,
|
|
78851
|
+
x: x2,
|
|
78674
78852
|
y: y2
|
|
78675
78853
|
};
|
|
78676
|
-
|
|
78854
|
+
x2 = _ref4.x;
|
|
78677
78855
|
y2 = _ref4.y;
|
|
78678
78856
|
if (gpuAcceleration) {
|
|
78679
78857
|
var _Object$assign;
|
|
78680
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
78858
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
|
|
78681
78859
|
}
|
|
78682
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
78860
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
78683
78861
|
}
|
|
78684
78862
|
function computeStyles(_ref5) {
|
|
78685
78863
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -78793,21 +78971,21 @@ ${l}
|
|
|
78793
78971
|
var visualViewport = win.visualViewport;
|
|
78794
78972
|
var width = html2.clientWidth;
|
|
78795
78973
|
var height = html2.clientHeight;
|
|
78796
|
-
var
|
|
78974
|
+
var x2 = 0;
|
|
78797
78975
|
var y2 = 0;
|
|
78798
78976
|
if (visualViewport) {
|
|
78799
78977
|
width = visualViewport.width;
|
|
78800
78978
|
height = visualViewport.height;
|
|
78801
78979
|
var layoutViewport = isLayoutViewport();
|
|
78802
78980
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
78803
|
-
|
|
78981
|
+
x2 = visualViewport.offsetLeft;
|
|
78804
78982
|
y2 = visualViewport.offsetTop;
|
|
78805
78983
|
}
|
|
78806
78984
|
}
|
|
78807
78985
|
return {
|
|
78808
78986
|
width,
|
|
78809
78987
|
height,
|
|
78810
|
-
x:
|
|
78988
|
+
x: x2 + getWindowScrollBarX$1(element2),
|
|
78811
78989
|
y: y2
|
|
78812
78990
|
};
|
|
78813
78991
|
}
|
|
@@ -78818,15 +78996,15 @@ ${l}
|
|
|
78818
78996
|
var body = (_element$ownerDocumen = element2.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
78819
78997
|
var width = max$1(html2.scrollWidth, html2.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
78820
78998
|
var height = max$1(html2.scrollHeight, html2.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
78821
|
-
var
|
|
78999
|
+
var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element2);
|
|
78822
79000
|
var y2 = -winScroll.scrollTop;
|
|
78823
79001
|
if (getComputedStyle$2(body || html2).direction === "rtl") {
|
|
78824
|
-
|
|
79002
|
+
x2 += max$1(html2.clientWidth, body ? body.clientWidth : 0) - width;
|
|
78825
79003
|
}
|
|
78826
79004
|
return {
|
|
78827
79005
|
width,
|
|
78828
79006
|
height,
|
|
78829
|
-
x,
|
|
79007
|
+
x: x2,
|
|
78830
79008
|
y: y2
|
|
78831
79009
|
};
|
|
78832
79010
|
}
|
|
@@ -79203,9 +79381,9 @@ ${l}
|
|
|
79203
79381
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
79204
79382
|
return acc;
|
|
79205
79383
|
}, {});
|
|
79206
|
-
var _data$state$placement = data[state2.placement],
|
|
79384
|
+
var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
79207
79385
|
if (state2.modifiersData.popperOffsets != null) {
|
|
79208
|
-
state2.modifiersData.popperOffsets.x +=
|
|
79386
|
+
state2.modifiersData.popperOffsets.x += x2;
|
|
79209
79387
|
state2.modifiersData.popperOffsets.y += y2;
|
|
79210
79388
|
}
|
|
79211
79389
|
state2.modifiersData[name] = data;
|
|
@@ -81156,7 +81334,7 @@ ${l}
|
|
|
81156
81334
|
}
|
|
81157
81335
|
function rectToClientRect(rect) {
|
|
81158
81336
|
const {
|
|
81159
|
-
x,
|
|
81337
|
+
x: x2,
|
|
81160
81338
|
y: y2,
|
|
81161
81339
|
width,
|
|
81162
81340
|
height
|
|
@@ -81165,10 +81343,10 @@ ${l}
|
|
|
81165
81343
|
width,
|
|
81166
81344
|
height,
|
|
81167
81345
|
top: y2,
|
|
81168
|
-
left:
|
|
81169
|
-
right:
|
|
81346
|
+
left: x2,
|
|
81347
|
+
right: x2 + width,
|
|
81170
81348
|
bottom: y2 + height,
|
|
81171
|
-
x,
|
|
81349
|
+
x: x2,
|
|
81172
81350
|
y: y2
|
|
81173
81351
|
};
|
|
81174
81352
|
}
|
|
@@ -81242,7 +81420,7 @@ ${l}
|
|
|
81242
81420
|
strategy
|
|
81243
81421
|
});
|
|
81244
81422
|
let {
|
|
81245
|
-
x,
|
|
81423
|
+
x: x2,
|
|
81246
81424
|
y: y2
|
|
81247
81425
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
81248
81426
|
let statefulPlacement = placement;
|
|
@@ -81259,7 +81437,7 @@ ${l}
|
|
|
81259
81437
|
data,
|
|
81260
81438
|
reset
|
|
81261
81439
|
} = await fn2({
|
|
81262
|
-
x,
|
|
81440
|
+
x: x2,
|
|
81263
81441
|
y: y2,
|
|
81264
81442
|
initialPlacement: placement,
|
|
81265
81443
|
placement: statefulPlacement,
|
|
@@ -81272,7 +81450,7 @@ ${l}
|
|
|
81272
81450
|
floating
|
|
81273
81451
|
}
|
|
81274
81452
|
});
|
|
81275
|
-
|
|
81453
|
+
x2 = nextX != null ? nextX : x2;
|
|
81276
81454
|
y2 = nextY != null ? nextY : y2;
|
|
81277
81455
|
middlewareData = {
|
|
81278
81456
|
...middlewareData,
|
|
@@ -81295,7 +81473,7 @@ ${l}
|
|
|
81295
81473
|
}) : reset.rects;
|
|
81296
81474
|
}
|
|
81297
81475
|
({
|
|
81298
|
-
x,
|
|
81476
|
+
x: x2,
|
|
81299
81477
|
y: y2
|
|
81300
81478
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
81301
81479
|
}
|
|
@@ -81303,7 +81481,7 @@ ${l}
|
|
|
81303
81481
|
}
|
|
81304
81482
|
}
|
|
81305
81483
|
return {
|
|
81306
|
-
x,
|
|
81484
|
+
x: x2,
|
|
81307
81485
|
y: y2,
|
|
81308
81486
|
placement: statefulPlacement,
|
|
81309
81487
|
strategy,
|
|
@@ -81316,7 +81494,7 @@ ${l}
|
|
|
81316
81494
|
options = {};
|
|
81317
81495
|
}
|
|
81318
81496
|
const {
|
|
81319
|
-
x,
|
|
81497
|
+
x: x2,
|
|
81320
81498
|
y: y2,
|
|
81321
81499
|
platform: platform2,
|
|
81322
81500
|
rects,
|
|
@@ -81340,7 +81518,7 @@ ${l}
|
|
|
81340
81518
|
strategy
|
|
81341
81519
|
}));
|
|
81342
81520
|
const rect = elementContext === "floating" ? {
|
|
81343
|
-
x,
|
|
81521
|
+
x: x2,
|
|
81344
81522
|
y: y2,
|
|
81345
81523
|
width: rects.floating.width,
|
|
81346
81524
|
height: rects.floating.height
|
|
@@ -81609,16 +81787,16 @@ ${l}
|
|
|
81609
81787
|
height,
|
|
81610
81788
|
$: $2
|
|
81611
81789
|
} = getCssDimensions(domElement);
|
|
81612
|
-
let
|
|
81790
|
+
let x2 = ($2 ? round(rect.width) : rect.width) / width;
|
|
81613
81791
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
81614
|
-
if (!
|
|
81615
|
-
|
|
81792
|
+
if (!x2 || !Number.isFinite(x2)) {
|
|
81793
|
+
x2 = 1;
|
|
81616
81794
|
}
|
|
81617
81795
|
if (!y2 || !Number.isFinite(y2)) {
|
|
81618
81796
|
y2 = 1;
|
|
81619
81797
|
}
|
|
81620
81798
|
return {
|
|
81621
|
-
x,
|
|
81799
|
+
x: x2,
|
|
81622
81800
|
y: y2
|
|
81623
81801
|
};
|
|
81624
81802
|
}
|
|
@@ -81662,7 +81840,7 @@ ${l}
|
|
|
81662
81840
|
}
|
|
81663
81841
|
}
|
|
81664
81842
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
81665
|
-
let
|
|
81843
|
+
let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
81666
81844
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
81667
81845
|
let width = clientRect2.width / scale.x;
|
|
81668
81846
|
let height = clientRect2.height / scale.y;
|
|
@@ -81677,11 +81855,11 @@ ${l}
|
|
|
81677
81855
|
const css = getComputedStyle$1(currentIFrame);
|
|
81678
81856
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
81679
81857
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
81680
|
-
|
|
81858
|
+
x2 *= iframeScale.x;
|
|
81681
81859
|
y2 *= iframeScale.y;
|
|
81682
81860
|
width *= iframeScale.x;
|
|
81683
81861
|
height *= iframeScale.y;
|
|
81684
|
-
|
|
81862
|
+
x2 += left2;
|
|
81685
81863
|
y2 += top2;
|
|
81686
81864
|
currentWin = getWindow(currentIFrame);
|
|
81687
81865
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -81690,7 +81868,7 @@ ${l}
|
|
|
81690
81868
|
return rectToClientRect({
|
|
81691
81869
|
width,
|
|
81692
81870
|
height,
|
|
81693
|
-
x,
|
|
81871
|
+
x: x2,
|
|
81694
81872
|
y: y2
|
|
81695
81873
|
});
|
|
81696
81874
|
}
|
|
@@ -81703,10 +81881,10 @@ ${l}
|
|
|
81703
81881
|
}
|
|
81704
81882
|
function getHTMLOffset(documentElement, scroll) {
|
|
81705
81883
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
81706
|
-
const
|
|
81884
|
+
const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
81707
81885
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
81708
81886
|
return {
|
|
81709
|
-
x,
|
|
81887
|
+
x: x2,
|
|
81710
81888
|
y: y2
|
|
81711
81889
|
};
|
|
81712
81890
|
}
|
|
@@ -81758,15 +81936,15 @@ ${l}
|
|
|
81758
81936
|
const body = element2.ownerDocument.body;
|
|
81759
81937
|
const width = max$3(html2.scrollWidth, html2.clientWidth, body.scrollWidth, body.clientWidth);
|
|
81760
81938
|
const height = max$3(html2.scrollHeight, html2.clientHeight, body.scrollHeight, body.clientHeight);
|
|
81761
|
-
let
|
|
81939
|
+
let x2 = -scroll.scrollLeft + getWindowScrollBarX(element2);
|
|
81762
81940
|
const y2 = -scroll.scrollTop;
|
|
81763
81941
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
81764
|
-
|
|
81942
|
+
x2 += max$3(html2.clientWidth, body.clientWidth) - width;
|
|
81765
81943
|
}
|
|
81766
81944
|
return {
|
|
81767
81945
|
width,
|
|
81768
81946
|
height,
|
|
81769
|
-
x,
|
|
81947
|
+
x: x2,
|
|
81770
81948
|
y: y2
|
|
81771
81949
|
};
|
|
81772
81950
|
}
|
|
@@ -81777,14 +81955,14 @@ ${l}
|
|
|
81777
81955
|
const visualViewport = win.visualViewport;
|
|
81778
81956
|
let width = html2.clientWidth;
|
|
81779
81957
|
let height = html2.clientHeight;
|
|
81780
|
-
let
|
|
81958
|
+
let x2 = 0;
|
|
81781
81959
|
let y2 = 0;
|
|
81782
81960
|
if (visualViewport) {
|
|
81783
81961
|
width = visualViewport.width;
|
|
81784
81962
|
height = visualViewport.height;
|
|
81785
81963
|
const visualViewportBased = isWebKit();
|
|
81786
81964
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
81787
|
-
|
|
81965
|
+
x2 = visualViewport.offsetLeft;
|
|
81788
81966
|
y2 = visualViewport.offsetTop;
|
|
81789
81967
|
}
|
|
81790
81968
|
}
|
|
@@ -81804,7 +81982,7 @@ ${l}
|
|
|
81804
81982
|
return {
|
|
81805
81983
|
width,
|
|
81806
81984
|
height,
|
|
81807
|
-
x,
|
|
81985
|
+
x: x2,
|
|
81808
81986
|
y: y2
|
|
81809
81987
|
};
|
|
81810
81988
|
}
|
|
@@ -81816,12 +81994,12 @@ ${l}
|
|
|
81816
81994
|
const scale = isHTMLElement$2(element2) ? getScale(element2) : createCoords(1);
|
|
81817
81995
|
const width = element2.clientWidth * scale.x;
|
|
81818
81996
|
const height = element2.clientHeight * scale.y;
|
|
81819
|
-
const
|
|
81997
|
+
const x2 = left2 * scale.x;
|
|
81820
81998
|
const y2 = top2 * scale.y;
|
|
81821
81999
|
return {
|
|
81822
82000
|
width,
|
|
81823
82001
|
height,
|
|
81824
|
-
x,
|
|
82002
|
+
x: x2,
|
|
81825
82003
|
y: y2
|
|
81826
82004
|
};
|
|
81827
82005
|
}
|
|
@@ -81941,10 +82119,10 @@ ${l}
|
|
|
81941
82119
|
setLeftRTLScrollbarOffset();
|
|
81942
82120
|
}
|
|
81943
82121
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
81944
|
-
const
|
|
82122
|
+
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
81945
82123
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
81946
82124
|
return {
|
|
81947
|
-
x,
|
|
82125
|
+
x: x2,
|
|
81948
82126
|
y: y2,
|
|
81949
82127
|
width: rect.width,
|
|
81950
82128
|
height: rect.height
|
|
@@ -82823,22 +83001,22 @@ ${l}
|
|
|
82823
83001
|
const rect = elements.reference.getBoundingClientRect();
|
|
82824
83002
|
const containerRect = editorElement.getBoundingClientRect();
|
|
82825
83003
|
const scaleFactor = getScaleFactor(editorElement);
|
|
82826
|
-
const
|
|
83004
|
+
const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
82827
83005
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
82828
83006
|
const width = Math.round(rect.width / scaleFactor);
|
|
82829
83007
|
const height = Math.round(rect.height / scaleFactor);
|
|
82830
83008
|
return {
|
|
82831
|
-
x,
|
|
83009
|
+
x: x2,
|
|
82832
83010
|
y: y2,
|
|
82833
83011
|
data: { width, height }
|
|
82834
83012
|
};
|
|
82835
83013
|
}
|
|
82836
83014
|
}
|
|
82837
83015
|
]
|
|
82838
|
-
}).then(({ x, y: y2, middlewareData }) => {
|
|
83016
|
+
}).then(({ x: x2, y: y2, middlewareData }) => {
|
|
82839
83017
|
Object.assign(floatingSeparator.style, {
|
|
82840
83018
|
top: `${y2}px`,
|
|
82841
|
-
left: `${
|
|
83019
|
+
left: `${x2}px`,
|
|
82842
83020
|
width: `${middlewareData.copy.width}px`,
|
|
82843
83021
|
height: `${middlewareData.copy.height}px`,
|
|
82844
83022
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -85852,14 +86030,14 @@ ${unwrappedProps}
|
|
|
85852
86030
|
}
|
|
85853
86031
|
return viewMeasurer$1.getBoundingClientRect();
|
|
85854
86032
|
}
|
|
85855
|
-
function getPointRect$1(
|
|
86033
|
+
function getPointRect$1(x2, y2) {
|
|
85856
86034
|
const viewRect = ensureViewBoundingRect$1();
|
|
85857
86035
|
return {
|
|
85858
86036
|
top: y2,
|
|
85859
|
-
left:
|
|
86037
|
+
left: x2,
|
|
85860
86038
|
height: 0,
|
|
85861
86039
|
width: 0,
|
|
85862
|
-
right: viewRect.width -
|
|
86040
|
+
right: viewRect.width - x2,
|
|
85863
86041
|
bottom: viewRect.height - y2
|
|
85864
86042
|
};
|
|
85865
86043
|
}
|
|
@@ -86697,8 +86875,8 @@ ${style2}
|
|
|
86697
86875
|
if (follower === null)
|
|
86698
86876
|
return;
|
|
86699
86877
|
const target = VBinder.targetRef;
|
|
86700
|
-
const { x, y: y2, overlap } = props;
|
|
86701
|
-
const targetRect =
|
|
86878
|
+
const { x: x2, y: y2, overlap } = props;
|
|
86879
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect$1(x2, y2) : getRect$1(target);
|
|
86702
86880
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
86703
86881
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
86704
86882
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -86868,8 +87046,8 @@ ${style2}
|
|
|
86868
87046
|
return ResizeObserverSize2;
|
|
86869
87047
|
})();
|
|
86870
87048
|
var DOMRectReadOnly$1 = (function() {
|
|
86871
|
-
function DOMRectReadOnly2(
|
|
86872
|
-
this.x =
|
|
87049
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
87050
|
+
this.x = x2;
|
|
86873
87051
|
this.y = y2;
|
|
86874
87052
|
this.width = width;
|
|
86875
87053
|
this.height = height;
|
|
@@ -86880,8 +87058,8 @@ ${style2}
|
|
|
86880
87058
|
return freeze$1(this);
|
|
86881
87059
|
}
|
|
86882
87060
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
86883
|
-
var _a2 = this,
|
|
86884
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
87061
|
+
var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
87062
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
86885
87063
|
};
|
|
86886
87064
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
86887
87065
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -100014,8 +100192,8 @@ ${style2}
|
|
|
100014
100192
|
return array;
|
|
100015
100193
|
};
|
|
100016
100194
|
const BlankDOCX = "data:application/octet-stream;base64,UEsDBBQAAAAIAAAAIQAykW9XXgEAAKUFAAATABwAW0NvbnRlbnRfVHlwZXNdLnhtbFVUCQADMNDOEjDQzhJ1eAsAAQT1AQAABBQAAAC1lMtqwzAQRfeF/oPRNthKuiilxMmij2UbaPoBijRORPVCmrz+vuM4NaWkMeSxMcgz994zQsxwvLEmW0FM2ruSDYo+y8BJr7Sbl+xz+po/sCyhcEoY76BkW0hsPLq9GU63AVJGapdKtkAMj5wnuQArUuEDOKpUPlqBdIxzHoT8EnPgd/3+PZfeITjMsfZgo+EzVGJpMHvZ0O+GJIJJLHtqGuuskokQjJYCqc5XTv1JyfcJBSl3PWmhQ+pRA+MHE+rK/wF73TtdTdQKsomI+CYsdfG1j4orL5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ZXMueG1sVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsBAh4DCgAAAAAAk2RNWwAAAAAAAAAAAAAAAAsAGAAAAAAAAAAQAO1BAicAAHdvcmQvdGhlbWUvVVQFAAOGHO1odXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAAAAhAGeA/LSbBgAAzSAAABUAGAAAAAAAAQAAAKSBRycAAHdvcmQvdGhlbWUvdGhlbWUxLnhtbFVUBQADMNDOEnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJNkTVsAAAAAAAAAAAAAAAALABgAAAAAAAAAEADtQTEuAAB3b3JkL19yZWxzL1VUBQADhhztaHV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAAAIQCzvosd/gAAALYDAAAcABgAAAAAAAEAAACkgXYuAAB3b3JkL19yZWxzL2RvY3VtZW50LnhtbC5yZWxzVVQFAAMw0M4SdXgLAAEE9QEAAAQUAAAAUEsFBgAAAAARABEAqQUAAMovAAAAAA==";
|
|
100017
|
-
function getDefaultExportFromCjs(
|
|
100018
|
-
return
|
|
100195
|
+
function getDefaultExportFromCjs(x2) {
|
|
100196
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
100019
100197
|
}
|
|
100020
100198
|
var eventemitter3 = { exports: {} };
|
|
100021
100199
|
var hasRequiredEventemitter3;
|
|
@@ -104688,14 +104866,14 @@ ${unwrappedProps}
|
|
|
104688
104866
|
}
|
|
104689
104867
|
return viewMeasurer.getBoundingClientRect();
|
|
104690
104868
|
}
|
|
104691
|
-
function getPointRect(
|
|
104869
|
+
function getPointRect(x2, y2) {
|
|
104692
104870
|
const viewRect = ensureViewBoundingRect();
|
|
104693
104871
|
return {
|
|
104694
104872
|
top: y2,
|
|
104695
|
-
left:
|
|
104873
|
+
left: x2,
|
|
104696
104874
|
height: 0,
|
|
104697
104875
|
width: 0,
|
|
104698
|
-
right: viewRect.width -
|
|
104876
|
+
right: viewRect.width - x2,
|
|
104699
104877
|
bottom: viewRect.height - y2
|
|
104700
104878
|
};
|
|
104701
104879
|
}
|
|
@@ -105533,8 +105711,8 @@ ${style2}
|
|
|
105533
105711
|
if (follower === null)
|
|
105534
105712
|
return;
|
|
105535
105713
|
const target = VBinder.targetRef;
|
|
105536
|
-
const { x, y: y2, overlap } = props;
|
|
105537
|
-
const targetRect =
|
|
105714
|
+
const { x: x2, y: y2, overlap } = props;
|
|
105715
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
|
|
105538
105716
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
105539
105717
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
105540
105718
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -105704,8 +105882,8 @@ ${style2}
|
|
|
105704
105882
|
return ResizeObserverSize2;
|
|
105705
105883
|
})();
|
|
105706
105884
|
var DOMRectReadOnly = (function() {
|
|
105707
|
-
function DOMRectReadOnly2(
|
|
105708
|
-
this.x =
|
|
105885
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
105886
|
+
this.x = x2;
|
|
105709
105887
|
this.y = y2;
|
|
105710
105888
|
this.width = width;
|
|
105711
105889
|
this.height = height;
|
|
@@ -105716,8 +105894,8 @@ ${style2}
|
|
|
105716
105894
|
return freeze(this);
|
|
105717
105895
|
}
|
|
105718
105896
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
105719
|
-
var _a2 = this,
|
|
105720
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
105897
|
+
var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
105898
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
105721
105899
|
};
|
|
105722
105900
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
105723
105901
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -116421,9 +116599,9 @@ ${style2}
|
|
|
116421
116599
|
const resetSelection = () => {
|
|
116422
116600
|
selectionPosition.value = null;
|
|
116423
116601
|
};
|
|
116424
|
-
const updateSelection2 = ({ startX, startY, x, y: y2, source }) => {
|
|
116602
|
+
const updateSelection2 = ({ startX, startY, x: x2, y: y2, source }) => {
|
|
116425
116603
|
const hasStartCoords = startX || startY;
|
|
116426
|
-
const hasEndCoords =
|
|
116604
|
+
const hasEndCoords = x2 || y2;
|
|
116427
116605
|
if (!hasStartCoords && !hasEndCoords) {
|
|
116428
116606
|
return selectionPosition.value = null;
|
|
116429
116607
|
}
|
|
@@ -116448,10 +116626,10 @@ ${style2}
|
|
|
116448
116626
|
selectionPosition.value.bottom = y2;
|
|
116449
116627
|
}
|
|
116450
116628
|
const selectionLeft = selectionPosition.value.startX;
|
|
116451
|
-
if (
|
|
116452
|
-
selectionPosition.value.left =
|
|
116629
|
+
if (x2 < selectionLeft) {
|
|
116630
|
+
selectionPosition.value.left = x2;
|
|
116453
116631
|
} else {
|
|
116454
|
-
selectionPosition.value.right =
|
|
116632
|
+
selectionPosition.value.right = x2;
|
|
116455
116633
|
}
|
|
116456
116634
|
};
|
|
116457
116635
|
const handleSelectionStart = (e) => {
|
|
@@ -116460,16 +116638,16 @@ ${style2}
|
|
|
116460
116638
|
nextTick(() => {
|
|
116461
116639
|
isDragging.value = true;
|
|
116462
116640
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
116463
|
-
const
|
|
116464
|
-
updateSelection2({ startX:
|
|
116641
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
116642
|
+
updateSelection2({ startX: x2, startY: y2 });
|
|
116465
116643
|
selectionLayer.value.addEventListener("mousemove", handleDragMove);
|
|
116466
116644
|
});
|
|
116467
116645
|
};
|
|
116468
116646
|
const handleDragMove = (e) => {
|
|
116469
116647
|
if (!isDragging.value) return;
|
|
116470
116648
|
const y2 = e.offsetY / (activeZoom.value / 100);
|
|
116471
|
-
const
|
|
116472
|
-
updateSelection2({ x, y: y2 });
|
|
116649
|
+
const x2 = e.offsetX / (activeZoom.value / 100);
|
|
116650
|
+
updateSelection2({ x: x2, y: y2 });
|
|
116473
116651
|
};
|
|
116474
116652
|
const handleDragEnd = (e) => {
|
|
116475
116653
|
if (!isDragging.value) return;
|
|
@@ -116826,7 +117004,7 @@ ${style2}
|
|
|
116826
117004
|
this.config.colors = shuffleArray(this.config.colors);
|
|
116827
117005
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
116828
117006
|
this.colorIndex = 0;
|
|
116829
|
-
this.version = "0.31.0-next.
|
|
117007
|
+
this.version = "0.31.0-next.9";
|
|
116830
117008
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
116831
117009
|
this.superdocId = config2.superdocId || v4();
|
|
116832
117010
|
this.colors = this.config.colors;
|
|
@@ -119226,7 +119404,7 @@ ${style2}
|
|
|
119226
119404
|
value && typeof value === "object" && "byteLength" in value && "byteOffset" in value
|
|
119227
119405
|
);
|
|
119228
119406
|
}
|
|
119229
|
-
const
|
|
119407
|
+
const indexMvOjU9rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
119230
119408
|
__proto__: null,
|
|
119231
119409
|
unified
|
|
119232
119410
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -120818,8 +120996,8 @@ ${style2}
|
|
|
120818
120996
|
properties[name] = attribute.value;
|
|
120819
120997
|
}
|
|
120820
120998
|
}
|
|
120821
|
-
const
|
|
120822
|
-
const result =
|
|
120999
|
+
const x2 = state2.schema.space === "svg" ? s : h;
|
|
121000
|
+
const result = x2(node2.tagName, properties, all$4(state2, node2.childNodes));
|
|
120823
121001
|
patch$1(state2, node2, result);
|
|
120824
121002
|
if (result.tagName === "template") {
|
|
120825
121003
|
const reference2 = (
|