@zipify/wysiwyg 2.0.0-1 → 2.0.0-11
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/config/build/cli.config.js +8 -2
- package/dist/cli.js +3 -3
- package/dist/wysiwyg.css +41 -31
- package/dist/wysiwyg.mjs +2015 -1359
- package/example/ExampleApp.vue +10 -1
- package/lib/Wysiwyg.vue +3 -2
- package/lib/__tests__/utils/buildTestExtensions.js +2 -1
- package/lib/assets/icons/indicator.svg +4 -0
- package/lib/cli/commands/Command.js +39 -0
- package/lib/cli/commands/ToJsonCommand.js +55 -0
- package/lib/cli/commands/VersionCommand.js +11 -0
- package/lib/cli/commands/index.js +2 -0
- package/lib/cli/index.js +1 -0
- package/lib/components/base/Button.vue +6 -0
- package/lib/components/base/dropdown/Dropdown.vue +7 -1
- package/lib/components/base/dropdown/DropdownActivator.vue +25 -4
- package/lib/components/base/dropdown/__tests__/DropdownActivator.test.js +23 -1
- package/lib/components/toolbar/controls/AlignmentControl.vue +12 -1
- package/lib/components/toolbar/controls/FontColorControl.vue +14 -0
- package/lib/components/toolbar/controls/FontFamilyControl.vue +4 -0
- package/lib/components/toolbar/controls/FontSizeControl.vue +6 -1
- package/lib/components/toolbar/controls/FontWeightControl.vue +12 -0
- package/lib/components/toolbar/controls/ItalicControl.vue +14 -0
- package/lib/components/toolbar/controls/LineHeightControl.vue +15 -0
- package/lib/components/toolbar/controls/UnderlineControl.vue +13 -0
- package/lib/components/toolbar/controls/__tests__/AlignmentControl.test.js +72 -5
- package/lib/components/toolbar/controls/__tests__/FontColorControl.test.js +22 -1
- package/lib/components/toolbar/controls/__tests__/FontFamilyControl.test.js +1 -0
- package/lib/components/toolbar/controls/__tests__/FontSizeControl.test.js +1 -0
- package/lib/components/toolbar/controls/__tests__/FontWeightControl.test.js +1 -0
- package/lib/components/toolbar/controls/__tests__/ItalicControl.test.js +23 -1
- package/lib/components/toolbar/controls/__tests__/LineHeightControl.test.js +23 -1
- package/lib/components/toolbar/controls/__tests__/StylePresetControl.test.js +4 -4
- package/lib/components/toolbar/controls/__tests__/UnderlineControl.test.js +25 -1
- package/lib/composables/__tests__/useEditor.test.js +1 -1
- package/lib/composables/useEditor.js +9 -8
- package/lib/directives/__tests__/tooltip.test.js +22 -4
- package/lib/directives/tooltip.js +4 -1
- package/lib/entry-cli.js +7 -20
- package/lib/entry-lib.js +1 -1
- package/lib/enums/MarkGroups.js +4 -0
- package/lib/enums/TextSettings.js +1 -1
- package/lib/enums/index.js +1 -0
- package/lib/extensions/BackgroundColor.js +0 -1
- package/lib/extensions/FontColor.js +2 -2
- package/lib/extensions/FontFamily.js +3 -3
- package/lib/extensions/FontSize.js +2 -2
- package/lib/extensions/FontStyle.js +2 -2
- package/lib/extensions/FontWeight.js +2 -2
- package/lib/extensions/StylePreset.js +9 -2
- package/lib/extensions/Superscript.js +5 -2
- package/lib/extensions/TextDecoration.js +7 -0
- package/lib/extensions/__tests__/Alignment.test.js +2 -2
- package/lib/extensions/__tests__/BackgroundColor.test.js +4 -3
- package/lib/extensions/__tests__/FontColor.test.js +4 -3
- package/lib/extensions/__tests__/FontFamily.test.js +6 -6
- package/lib/extensions/__tests__/FontSize.test.js +9 -8
- package/lib/extensions/__tests__/FontStyle.test.js +6 -5
- package/lib/extensions/__tests__/LineHeight.test.js +2 -1
- package/lib/extensions/__tests__/StylePreset.test.js +51 -0
- package/lib/extensions/__tests__/Superscript.test.js +102 -0
- package/lib/extensions/__tests__/TextDecoration.test.js +20 -0
- package/lib/extensions/__tests__/__snapshots__/BackgroundColor.test.js.snap +25 -25
- package/lib/extensions/__tests__/__snapshots__/Superscript.test.js.snap +107 -0
- package/lib/extensions/core/Document.js +2 -1
- package/lib/extensions/core/Heading.js +2 -1
- package/lib/extensions/core/NodeProcessor.js +42 -21
- package/lib/extensions/core/Paragraph.js +2 -1
- package/lib/extensions/core/__tests__/NodeProcessor.test.js +309 -11
- package/lib/extensions/core/__tests__/TextProcessor.test.js +1 -1
- package/lib/extensions/core/__tests__/__snapshots__/NodeProcessor.test.js.snap +249 -0
- package/lib/extensions/core/steps/AddNodeMarkStep.js +6 -0
- package/lib/extensions/core/steps/AttrStep.js +6 -0
- package/lib/extensions/core/steps/RemoveNodeMarkStep.js +6 -0
- package/lib/extensions/list/List.js +70 -9
- package/lib/extensions/list/ListItem.js +27 -5
- package/lib/extensions/list/__tests__/List.test.js +26 -17
- package/lib/extensions/list/__tests__/__snapshots__/List.test.js.snap +36 -36
- package/lib/services/NodeFactory.js +69 -3
- package/lib/services/__tests__/NodeFactory.test.js +124 -0
- package/lib/services/__tests__/__snapshots__/NodeFactory.test.js.snap +326 -0
- package/lib/services/normalizer/HtmlNormalizer.js +54 -2
- package/lib/services/normalizer/JsonNormalizer.js +6 -5
- package/lib/services/normalizer/__tests__/HtmlNormalizer.test.js +14 -0
- package/lib/services/normalizer/__tests__/JsonNormalizer.test.js +20 -3
- package/lib/services/normalizer/__tests__/__snapshots__/JsonNormalizer.test.js.snap +37 -0
- package/lib/utils/__tests__/findMarkByType.test.js +17 -0
- package/lib/utils/__tests__/isMarkAppliedToParent.test.js +53 -0
- package/lib/utils/__tests__/isNodeFullySelected.test.js +44 -0
- package/lib/utils/__tests__/resolveTextPosition.test.js +39 -0
- package/lib/utils/copyMark.js +5 -0
- package/lib/utils/index.js +1 -1
- package/lib/utils/isMarkAppliedToParent.js +1 -1
- package/lib/utils/isNodeFullySelected.js +4 -7
- package/lib/utils/resolveTextPosition.js +4 -6
- package/package.json +37 -27
- package/lib/utils/resolveNodePosition.js +0 -6
package/dist/wysiwyg.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
26
26
|
__accessCheck(obj, member, "access private method");
|
|
27
27
|
return method;
|
|
28
28
|
};
|
|
29
|
-
var _domParser, _parser, _NodeFilter, NodeFilter_get, _Node, Node_get, _removeComments, removeComments_fn, _createNodeIterator, createNodeIterator_fn, _iterateNodes, iterateNodes_fn, _runIterator, runIterator_fn, _removeEmptyNodes, removeEmptyNodes_fn, _normalizeListItems, normalizeListItems_fn, _isBlockNode, isBlockNode_fn, _assignElementProperties, assignElementProperties_fn, _removeStyleProperties, removeStyleProperties_fn, _normalizeBreakLines, normalizeBreakLines_fn, _normalizeBlockTextDecoration, normalizeBlockTextDecoration_fn, _moveTextDecorationToChildren, moveTextDecorationToChildren_fn, _parseTextDecoration, parseTextDecoration_fn, _wrapTextNode, wrapTextNode_fn, _iterateNodes2, iterateNodes_fn2, _iterateChildNodes, iterateChildNodes_fn, _bubbleMarks, bubbleMarks_fn, _canBubbleMark, canBubbleMark_fn, _includesMark, includesMark_fn, _includesMarkType, includesMarkType_fn, _removeMark, removeMark_fn, _addMark, addMark_fn, _findMarkIndexByType, findMarkIndexByType_fn, _buildHtml, buildHtml_fn, _buildJson, buildJson_fn, _textBlock, textBlock_fn, _normalizeTextBlockArgs, normalizeTextBlockArgs_fn;
|
|
29
|
+
var _domParser, _parser, _NodeFilter, NodeFilter_get, _Node, Node_get, _removeComments, removeComments_fn, _normalizeRootTags, normalizeRootTags_fn, _createNodeIterator, createNodeIterator_fn, _iterateNodes, iterateNodes_fn, _runIterator, runIterator_fn, _removeEmptyNodes, removeEmptyNodes_fn, _normalizeListItems, normalizeListItems_fn, _isBlockNode, isBlockNode_fn, _isRootNode, isRootNode_fn, _assignElementProperties, assignElementProperties_fn, _removeStyleProperties, removeStyleProperties_fn, _normalizeBreakLines, normalizeBreakLines_fn, _normalizeBlockTextDecoration, normalizeBlockTextDecoration_fn, _moveTextDecorationToChildren, moveTextDecorationToChildren_fn, _parseTextDecoration, parseTextDecoration_fn, _normalizeBlockBackgroundColor, normalizeBlockBackgroundColor_fn, _moveBackgroundColorToChildren, moveBackgroundColorToChildren_fn, _wrapTextNode, wrapTextNode_fn, _iterateNodes2, iterateNodes_fn2, _iterateChildNodes, iterateChildNodes_fn, _bubbleMarks, bubbleMarks_fn, _canBubbleMark, canBubbleMark_fn, _includesMark, includesMark_fn, _includesMarkType, includesMarkType_fn, _removeMark, removeMark_fn, _addMark, addMark_fn, _findMarkIndexByType, findMarkIndexByType_fn, _buildHtml, buildHtml_fn, _buildJson, buildJson_fn, _textBlock, textBlock_fn, _normalizeTextBlockArgs, normalizeTextBlockArgs_fn;
|
|
30
30
|
import { computed, ref, watch, inject, onUnmounted, nextTick, provide, onMounted, toRef, unref, reactive } from "vue";
|
|
31
31
|
import { ColorModel, ZipifyColorPicker } from "@zipify/colorpicker";
|
|
32
32
|
function OrderedMap(content) {
|
|
@@ -4319,11 +4319,11 @@ class Plugin {
|
|
|
4319
4319
|
return state[this.key];
|
|
4320
4320
|
}
|
|
4321
4321
|
}
|
|
4322
|
-
const keys$
|
|
4322
|
+
const keys$5 = /* @__PURE__ */ Object.create(null);
|
|
4323
4323
|
function createKey(name) {
|
|
4324
|
-
if (name in keys$
|
|
4325
|
-
return name + "$" + ++keys$
|
|
4326
|
-
keys$
|
|
4324
|
+
if (name in keys$5)
|
|
4325
|
+
return name + "$" + ++keys$5[name];
|
|
4326
|
+
keys$5[name] = 0;
|
|
4327
4327
|
return name + "$";
|
|
4328
4328
|
}
|
|
4329
4329
|
class PluginKey {
|
|
@@ -14031,7 +14031,7 @@ const TextSettings = Object.freeze({
|
|
|
14031
14031
|
return [this.ALIGNMENT, this.LINE_HEIGHT, this.MARGIN];
|
|
14032
14032
|
},
|
|
14033
14033
|
get inlineMarks() {
|
|
14034
|
-
return [this.TEXT_DECORATION, this.LINK];
|
|
14034
|
+
return [this.TEXT_DECORATION, this.LINK, this.SUPERSCRIPT, this.BACKGROUND_COLOR];
|
|
14035
14035
|
},
|
|
14036
14036
|
get marks() {
|
|
14037
14037
|
return [
|
|
@@ -14046,6 +14046,10 @@ const TextSettings = Object.freeze({
|
|
|
14046
14046
|
];
|
|
14047
14047
|
}
|
|
14048
14048
|
});
|
|
14049
|
+
const MarkGroups = Object.freeze({
|
|
14050
|
+
SETTINGS: "settings",
|
|
14051
|
+
ALL: "_"
|
|
14052
|
+
});
|
|
14049
14053
|
const LinkTargets = Object.freeze({
|
|
14050
14054
|
BLANK: "_blank",
|
|
14051
14055
|
SELF: "_self"
|
|
@@ -14294,7 +14298,7 @@ var __component__$F = /* @__PURE__ */ normalizeComponent(
|
|
|
14294
14298
|
staticRenderFns$F,
|
|
14295
14299
|
false,
|
|
14296
14300
|
__vue2_injectStyles$F,
|
|
14297
|
-
"
|
|
14301
|
+
"1ea5f7a2",
|
|
14298
14302
|
null,
|
|
14299
14303
|
null
|
|
14300
14304
|
);
|
|
@@ -14423,22 +14427,23 @@ const __vite_glob_0_4 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" sty
|
|
|
14423
14427
|
const __vite_glob_0_5 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="#fff" stroke="#B3B3B3" d="M4.5 4.5h19v19h-19z"/>\n <path fill="#3B3B3B" d="M26 20.7a2.51 2.51 0 0 1-5 0c0-1.31 2.5-4.7 2.5-4.7s2.5 3.39 2.5 4.7Z"/>\n <path fill="#3B3B3B" fill-rule="evenodd" d="M19.64 19.93h-1.715a.75.75 0 0 1-.475-.145.82.82 0 0 1-.268-.359l-.89-2.433h-4.943l-.89 2.433a.78.78 0 0 1-.26.347.73.73 0 0 1-.475.157H8L12.686 8h2.269l4.686 11.93Zm-7.721-4.505h3.803l-1.452-3.968a18.048 18.048 0 0 1-.219-.623c-.08-.24-.158-.5-.235-.78-.077.28-.152.542-.227.784a8.742 8.742 0 0 1-.218.635l-1.452 3.952Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14424
14428
|
const __vite_glob_0_6 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M16.64 19.93h-1.715a.75.75 0 0 1-.475-.145.82.82 0 0 1-.268-.359l-.89-2.433H8.35l-.891 2.433a.78.78 0 0 1-.26.347.73.73 0 0 1-.475.157H5L9.686 8h2.269l4.686 11.93Zm-7.72-4.505h3.803l-1.452-3.968a18.048 18.048 0 0 1-.219-.623c-.08-.24-.158-.5-.235-.78-.077.28-.152.542-.227.784a8.742 8.742 0 0 1-.218.635L8.92 15.425Zm14.968 4.505h-.915a.987.987 0 0 1-.454-.087c-.11-.058-.192-.175-.248-.35l-.181-.603a7.005 7.005 0 0 1-.631.507c-.206.146-.42.269-.64.368a3.26 3.26 0 0 1-.7.222c-.248.05-.523.075-.826.075-.357 0-.687-.049-.99-.145a2.134 2.134 0 0 1-.78-.433 1.967 1.967 0 0 1-.507-.718 2.545 2.545 0 0 1-.181-.998c0-.319.084-.634.251-.945.168-.31.447-.59.838-.841.39-.25.91-.458 1.559-.623.649-.165 1.455-.258 2.417-.28v-.495c0-.567-.12-.986-.359-1.259-.239-.272-.587-.408-1.043-.408-.33 0-.605.039-.825.116a3.17 3.17 0 0 0-.574.26 25.11 25.11 0 0 1-.45.26.912.912 0 0 1-.453.115.59.59 0 0 1-.355-.107.843.843 0 0 1-.239-.264l-.371-.652c.973-.891 2.148-1.337 3.523-1.337.494 0 .936.081 1.324.244.387.162.716.387.985.676.27.289.475.634.615 1.036.14.401.21.841.21 1.32v5.346Zm-3.96-1.271c.21 0 .402-.02.578-.058.176-.038.342-.096.5-.173.156-.077.307-.172.453-.285a4.13 4.13 0 0 0 .441-.4v-1.427c-.594.027-1.09.078-1.489.153a3.967 3.967 0 0 0-.961.284c-.242.116-.414.25-.516.404a.894.894 0 0 0-.152.504c0 .357.106.613.317.767.212.154.489.231.83.231Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14425
14429
|
const __vite_glob_0_7 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M22 20.62a2.42 2.42 0 0 1-4.84 0c0-1.25 2.42-4.54 2.42-4.54S22 19.37 22 20.62ZM9.92 15.425l1.452-3.951c.071-.182.145-.394.219-.636.074-.242.149-.503.226-.783a17.223 17.223 0 0 0 .454 1.402l1.452 3.968H9.919Zm5.411 4.199c.226-.795.658-1.684 1.184-2.562L12.955 8h-2.269L6 19.93h1.725a.736.736 0 0 0 .474-.157.792.792 0 0 0 .26-.347l.891-2.434h4.941l.891 2.434c.031.079.097.134.148.198Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14426
|
-
const __vite_glob_0_8 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0
|
|
14427
|
-
const __vite_glob_0_9 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)"
|
|
14428
|
-
const __vite_glob_0_10 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="
|
|
14429
|
-
const __vite_glob_0_11 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <
|
|
14430
|
-
const __vite_glob_0_12 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <
|
|
14431
|
-
const __vite_glob_0_13 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <
|
|
14432
|
-
const __vite_glob_0_14 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <
|
|
14433
|
-
const __vite_glob_0_15 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="
|
|
14434
|
-
const __vite_glob_0_16 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="
|
|
14435
|
-
const __vite_glob_0_17 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)"
|
|
14436
|
-
const __vite_glob_0_18 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M14
|
|
14437
|
-
const __vite_glob_0_19 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)"
|
|
14438
|
-
const __vite_glob_0_20 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="
|
|
14439
|
-
const __vite_glob_0_21 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)"
|
|
14440
|
-
const __vite_glob_0_22 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0
|
|
14441
|
-
const
|
|
14430
|
+
const __vite_glob_0_8 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 9 9">\n <path fill="#FFAB00" d="M0 4.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"/>\n <path fill="#fff" fill-rule="evenodd" d="M5.063 2.25H3.938v3.375h1.124V2.25Zm-1.125 4.5a.562.562 0 1 1 1.123-.001.562.562 0 0 1-1.123.001Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14431
|
+
const __vite_glob_0_9 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M18 9V7h-7v2h2.64l-1.22 10H10v2h7v-2h-2.83L15.4 9H18Z"/>\n</svg>\n';
|
|
14432
|
+
const __vite_glob_0_10 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m5 10 3-3 3 3H9v8h2l-3 3-3-3h2v-8H5Zm8-3h10v2H13V7Zm10 6H13v2h10v-2Zm0 6H13v2h10v-2Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14433
|
+
const __vite_glob_0_11 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M12 17.5h-2a3.5 3.5 0 1 1 0-7h2V9h-2a5 5 0 0 0 0 10h2v-1.5Zm6-4.5h-8v2h8v-2Zm-2-4h2a5 5 0 0 1 0 10h-2v-1.5h2a3.5 3.5 0 1 0 0-7h-2V9Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14434
|
+
const __vite_glob_0_12 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <rect width="9" height="9" x="9.5" y="9.5" stroke="var(--zw-icon-foreground)" rx="4.5"/>\n</svg>\n';
|
|
14435
|
+
const __vite_glob_0_13 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M15.108 18.184V19H10.5v-.816h1.842v-5.862c0-.176.006-.354.018-.534l-1.53 1.314a.375.375 0 0 1-.156.084.373.373 0 0 1-.27-.048.318.318 0 0 1-.084-.078l-.336-.462 2.562-2.214h.87v7.8h1.692Zm1.519.156a.8.8 0 0 1 .054-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
|
|
14436
|
+
const __vite_glob_0_14 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <rect width="10" height="10" x="9" y="9" fill="var(--zw-icon-foreground)" rx="5"/>\n</svg>\n';
|
|
14437
|
+
const __vite_glob_0_15 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M12.086 9.802h.834v11.292h-.834V9.802Zm2.592 8.538a.8.8 0 0 1 .054-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
|
|
14438
|
+
const __vite_glob_0_16 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="m13.664 15.808-1.35-3.498a7.11 7.11 0 0 1-.252-.804c-.084.324-.17.594-.258.81l-1.35 3.492h3.21ZM16.088 19h-.9a.387.387 0 0 1-.252-.078.48.48 0 0 1-.144-.198l-.804-2.076H10.13l-.804 2.076a.421.421 0 0 1-.138.192.383.383 0 0 1-.252.084h-.9l3.438-8.598h1.176L16.088 19Zm.7-.66a.8.8 0 0 1 .053-.294.829.829 0 0 1 .156-.24.77.77 0 0 1 .534-.222.77.77 0 0 1 .696.462c.04.092.06.19.06.294a.744.744 0 0 1-.222.534.692.692 0 0 1-.24.156.73.73 0 0 1-.294.06.73.73 0 0 1-.294-.06.692.692 0 0 1-.396-.39.816.816 0 0 1-.054-.3Z"/>\n</svg>\n';
|
|
14439
|
+
const __vite_glob_0_17 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M9 9h10v10H9z"/>\n</svg>\n';
|
|
14440
|
+
const __vite_glob_0_18 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M14.089 6.726a1 1 0 0 1 1.425-.003l6.8 6.882a1 1 0 0 1 .007 1.398L17.2 20.3l-.2.2c-2.2 2.1-5.7 2-7.8-.2l-3.516-3.6a1 1 0 0 1 0-1.399l8.405-8.575Zm1.81 12.674c.1 0 .2 0 .2-.1l4.8-5-6.1-6.2-5 5.1 6.1 6.2Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14441
|
+
const __vite_glob_0_19 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M14 9.333V6.666l-3.334 3.333L14 13.333v-2.667c2.206 0 4 1.793 4 4s-1.794 4-4 4c-2.207 0-4-1.793-4-4H8.666A5.332 5.332 0 0 0 14 19.999a5.332 5.332 0 0 0 5.333-5.333A5.332 5.332 0 0 0 14 9.333Z"/>\n</svg>\n';
|
|
14442
|
+
const __vite_glob_0_20 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="m14 12.731.77.27H20v2H8v-2h2.84a2.892 2.892 0 0 1-.46-.71 3.61 3.61 0 0 1-.29-1.52c0-.484.1-.964.29-1.41a3.5 3.5 0 0 1 .83-1.2 4 4 0 0 1 1.35-.84 4.74 4.74 0 0 1 1.83-.32 6 6 0 0 1 2.11.41 5 5 0 0 1 1.68 1l-.46.88a.69.69 0 0 1-.18.22.41.41 0 0 1-.25.07.69.69 0 0 1-.39-.16 5.551 5.551 0 0 0-.56-.36 4.641 4.641 0 0 0-.8-.36 3.44 3.44 0 0 0-1.14-.16 3.16 3.16 0 0 0-1.11.17 2.29 2.29 0 0 0-.8.45 1.87 1.87 0 0 0-.49.67 2.138 2.138 0 0 0-.11.79c-.023.357.08.711.29 1 .206.267.465.489.76.65.338.187.693.34 1.06.46Zm1.99 6.06c.24-.22.427-.49.55-.79.135-.315.2-.657.19-1h1.74a4.58 4.58 0 0 1-.25 1.38 4 4 0 0 1-.91 1.37 4.231 4.231 0 0 1-1.46.92 5.503 5.503 0 0 1-2 .33 6.13 6.13 0 0 1-2.5-.46 5.66 5.66 0 0 1-1.89-1.31l.54-.88a.61.61 0 0 1 .19-.17.45.45 0 0 1 .25-.07.5.5 0 0 1 .28.1c.128.077.251.16.37.25l.46.33c.19.13.391.243.6.34.245.107.5.191.76.25.328.076.664.11 1 .1a3.67 3.67 0 0 0 1.19-.18c.328-.109.63-.282.89-.51Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14443
|
+
const __vite_glob_0_21 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" d="M21.985 8.625h-1.75V9.5h2.625v.875h-3.5v-1.75c0-.481.394-.875.875-.875h1.75v-.875H19.36V6h2.625c.481 0 .875.394.875.875v.875a.878.878 0 0 1-.875.875ZM7.88 20h2.327l2.975-4.742h.105L16.262 20h2.328l-4.069-6.361L18.32 7.75h-2.345l-2.687 4.366h-.105L10.48 7.75H8.15l3.78 5.889L7.88 20Z"/>\n</svg>\n';
|
|
14444
|
+
const __vite_glob_0_22 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 28 28">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M15.4 16.06a3.3 3.3 0 0 1-1.4.29 3.12 3.12 0 0 1-1.39-.29 2.88 2.88 0 0 1-1.05-.81 3.711 3.711 0 0 1-.65-1.25 5.659 5.659 0 0 1-.22-1.6V7H9v5.41a6.89 6.89 0 0 0 .34 2.22 5.29 5.29 0 0 0 1 1.77c.437.501.975.904 1.58 1.18A5 5 0 0 0 14 18a5 5 0 0 0 2.08-.42 4.61 4.61 0 0 0 1.57-1.18 5.27 5.27 0 0 0 1-1.77 6.89 6.89 0 0 0 .35-2.22V7h-1.69v5.41a5.659 5.659 0 0 1-.22 1.59 3.71 3.71 0 0 1-.69 1.25c-.27.34-.61.617-1 .81ZM20 19H8v2h12v-2Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14445
|
+
const __vite_glob_0_23 = '<svg xmlns="http://www.w3.org/2000/svg" fill="none" style="width:var(--zw-icon-width);height:var(--zw-icon-height)" viewBox="0 0 20 20">\n <path fill="var(--zw-icon-foreground)" fill-rule="evenodd" d="M18.96 10a5 5 0 0 0-5-5h-2v1.5h2a3.49 3.49 0 0 1 1.58 6.61L13.43 11h.53V9h-2.53l-7-7-1.47 1.47L17.49 18l1.47-1.47-2.34-2.34A4.93 4.93 0 0 0 18.96 10Zm-13 1h1.59L5.96 9.41V11ZM3.81 7.26A3.47 3.47 0 0 0 2.46 10a3.5 3.5 0 0 0 3.5 3.5h2V15h-2a5 5 0 0 1-3.21-8.8l1.06 1.06Z" clip-rule="evenodd"/>\n</svg>\n';
|
|
14446
|
+
const modules = /* @__PURE__ */ Object.assign({ "../assets/icons/alignment-center.svg": __vite_glob_0_0, "../assets/icons/alignment-justify.svg": __vite_glob_0_1, "../assets/icons/alignment-left.svg": __vite_glob_0_2, "../assets/icons/alignment-right.svg": __vite_glob_0_3, "../assets/icons/arrow.svg": __vite_glob_0_4, "../assets/icons/background-color.svg": __vite_glob_0_5, "../assets/icons/case-style.svg": __vite_glob_0_6, "../assets/icons/font-color.svg": __vite_glob_0_7, "../assets/icons/indicator.svg": __vite_glob_0_8, "../assets/icons/italic.svg": __vite_glob_0_9, "../assets/icons/line-height.svg": __vite_glob_0_10, "../assets/icons/link.svg": __vite_glob_0_11, "../assets/icons/list-circle.svg": __vite_glob_0_12, "../assets/icons/list-decimal.svg": __vite_glob_0_13, "../assets/icons/list-disc.svg": __vite_glob_0_14, "../assets/icons/list-latin.svg": __vite_glob_0_15, "../assets/icons/list-roman.svg": __vite_glob_0_16, "../assets/icons/list-square.svg": __vite_glob_0_17, "../assets/icons/remove-format.svg": __vite_glob_0_18, "../assets/icons/reset-styles.svg": __vite_glob_0_19, "../assets/icons/strike-through.svg": __vite_glob_0_20, "../assets/icons/superscript.svg": __vite_glob_0_21, "../assets/icons/underline.svg": __vite_glob_0_22, "../assets/icons/unlink.svg": __vite_glob_0_23 });
|
|
14442
14447
|
function importIcon(name) {
|
|
14443
14448
|
return modules[`../assets/icons/${name}.svg`] || "";
|
|
14444
14449
|
}
|
|
@@ -14451,25 +14456,17 @@ function unmarkWysiwygContent({ __wswg__, ...content }) {
|
|
|
14451
14456
|
function markWysiwygContent(content) {
|
|
14452
14457
|
return { ...content, __wswg__: true };
|
|
14453
14458
|
}
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
to: Math.min(position + node.nodeSize, $to.pos)
|
|
14463
|
-
};
|
|
14464
|
-
}
|
|
14465
|
-
function isNodeFullySelected($from, $to, node, position) {
|
|
14466
|
-
const fromPosition = resolveNodePosition($from, node, -1);
|
|
14467
|
-
const toPosition = resolveNodePosition($to, node, 1);
|
|
14468
|
-
const isFromMatch = fromPosition <= position;
|
|
14469
|
-
const isToMatch = toPosition >= node.nodeSize + position;
|
|
14459
|
+
const resolveTextPosition = ($from, $to, node, position) => ({
|
|
14460
|
+
from: Math.max(position, $from.pos),
|
|
14461
|
+
to: Math.min(position + node.nodeSize, $to.pos)
|
|
14462
|
+
});
|
|
14463
|
+
function isNodeFullySelected(doc2, selection, node, position) {
|
|
14464
|
+
const offset2 = doc2.resolve(position).depth + 1;
|
|
14465
|
+
const isFromMatch = selection.from - offset2 <= position;
|
|
14466
|
+
const isToMatch = selection.to + offset2 >= node.nodeSize + position;
|
|
14470
14467
|
return isFromMatch && isToMatch;
|
|
14471
14468
|
}
|
|
14472
|
-
function isMarkAppliedToParent(
|
|
14469
|
+
function isMarkAppliedToParent(doc2, position, checkingMark) {
|
|
14473
14470
|
const steps = doc2.resolve(position).path.reverse();
|
|
14474
14471
|
for (const step of steps) {
|
|
14475
14472
|
if (typeof step === "number")
|
|
@@ -14483,228 +14480,1196 @@ function findMarkByType(list, typeOrName) {
|
|
|
14483
14480
|
const name = typeof typeOrName === "string" ? typeOrName : typeOrName.name;
|
|
14484
14481
|
return list.find((mark) => mark.type.name === name);
|
|
14485
14482
|
}
|
|
14486
|
-
var
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
name: "Icon",
|
|
14503
|
-
props: {
|
|
14504
|
-
name: {
|
|
14505
|
-
type: String,
|
|
14506
|
-
required: true
|
|
14507
|
-
},
|
|
14508
|
-
size: {
|
|
14509
|
-
type: [String, Number],
|
|
14510
|
-
required: false,
|
|
14511
|
-
default: ""
|
|
14512
|
-
},
|
|
14513
|
-
autoColor: {
|
|
14514
|
-
type: Boolean,
|
|
14515
|
-
required: false,
|
|
14516
|
-
default: false
|
|
14483
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
14484
|
+
function listCacheClear$2() {
|
|
14485
|
+
this.__data__ = [];
|
|
14486
|
+
this.size = 0;
|
|
14487
|
+
}
|
|
14488
|
+
var _listCacheClear = listCacheClear$2;
|
|
14489
|
+
function eq$4(value, other) {
|
|
14490
|
+
return value === other || value !== value && other !== other;
|
|
14491
|
+
}
|
|
14492
|
+
var eq_1 = eq$4;
|
|
14493
|
+
var eq$3 = eq_1;
|
|
14494
|
+
function assocIndexOf$5(array, key) {
|
|
14495
|
+
var length = array.length;
|
|
14496
|
+
while (length--) {
|
|
14497
|
+
if (eq$3(array[length][0], key)) {
|
|
14498
|
+
return length;
|
|
14517
14499
|
}
|
|
14518
|
-
},
|
|
14519
|
-
setup(props) {
|
|
14520
|
-
const source = computed(() => importIcon(props.name));
|
|
14521
|
-
const iconSize = computed(() => {
|
|
14522
|
-
if (isNaN(Number(props.size)))
|
|
14523
|
-
return props.size;
|
|
14524
|
-
return `${props.size}px`;
|
|
14525
|
-
});
|
|
14526
|
-
const iconStyles = computed(() => {
|
|
14527
|
-
if (!props.size)
|
|
14528
|
-
return null;
|
|
14529
|
-
return {
|
|
14530
|
-
"--zw-icon-width": iconSize.value,
|
|
14531
|
-
"--zw-icon-height": iconSize.value
|
|
14532
|
-
};
|
|
14533
|
-
});
|
|
14534
|
-
const iconClasses = computed(() => ({
|
|
14535
|
-
"zw-icon--auto-color": props.autoColor
|
|
14536
|
-
}));
|
|
14537
|
-
return {
|
|
14538
|
-
source,
|
|
14539
|
-
iconStyles,
|
|
14540
|
-
iconClasses
|
|
14541
|
-
};
|
|
14542
|
-
}
|
|
14543
|
-
};
|
|
14544
|
-
const __cssModules$D = {};
|
|
14545
|
-
var __component__$D = /* @__PURE__ */ normalizeComponent(
|
|
14546
|
-
__vue2_script$D,
|
|
14547
|
-
render$D,
|
|
14548
|
-
staticRenderFns$D,
|
|
14549
|
-
false,
|
|
14550
|
-
__vue2_injectStyles$D,
|
|
14551
|
-
"366d6daa",
|
|
14552
|
-
null,
|
|
14553
|
-
null
|
|
14554
|
-
);
|
|
14555
|
-
function __vue2_injectStyles$D(context) {
|
|
14556
|
-
for (let o in __cssModules$D) {
|
|
14557
|
-
this[o] = __cssModules$D[o];
|
|
14558
14500
|
}
|
|
14501
|
+
return -1;
|
|
14559
14502
|
}
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
var
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
return this;
|
|
14569
|
-
}() || Function("return this")();
|
|
14570
|
-
var shared$4 = { exports: {} };
|
|
14571
|
-
var global$j = global$k;
|
|
14572
|
-
var defineProperty$7 = Object.defineProperty;
|
|
14573
|
-
var defineGlobalProperty$3 = function(key, value) {
|
|
14574
|
-
try {
|
|
14575
|
-
defineProperty$7(global$j, key, { value, configurable: true, writable: true });
|
|
14576
|
-
} catch (error) {
|
|
14577
|
-
global$j[key] = value;
|
|
14503
|
+
var _assocIndexOf = assocIndexOf$5;
|
|
14504
|
+
var assocIndexOf$4 = _assocIndexOf;
|
|
14505
|
+
var arrayProto$1 = Array.prototype;
|
|
14506
|
+
var splice$2 = arrayProto$1.splice;
|
|
14507
|
+
function listCacheDelete$2(key) {
|
|
14508
|
+
var data2 = this.__data__, index = assocIndexOf$4(data2, key);
|
|
14509
|
+
if (index < 0) {
|
|
14510
|
+
return false;
|
|
14578
14511
|
}
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
14585
|
-
var sharedStore = store$3;
|
|
14586
|
-
var store$2 = sharedStore;
|
|
14587
|
-
(shared$4.exports = function(key, value) {
|
|
14588
|
-
return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
|
|
14589
|
-
})("versions", []).push({
|
|
14590
|
-
version: "3.23.3",
|
|
14591
|
-
mode: "global",
|
|
14592
|
-
copyright: "\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",
|
|
14593
|
-
license: "https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",
|
|
14594
|
-
source: "https://github.com/zloirock/core-js"
|
|
14595
|
-
});
|
|
14596
|
-
var fails$o = function(exec2) {
|
|
14597
|
-
try {
|
|
14598
|
-
return !!exec2();
|
|
14599
|
-
} catch (error) {
|
|
14600
|
-
return true;
|
|
14512
|
+
var lastIndex = data2.length - 1;
|
|
14513
|
+
if (index == lastIndex) {
|
|
14514
|
+
data2.pop();
|
|
14515
|
+
} else {
|
|
14516
|
+
splice$2.call(data2, index, 1);
|
|
14601
14517
|
}
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
var functionBindNative = !fails$n(function() {
|
|
14605
|
-
var test2 = function() {
|
|
14606
|
-
}.bind();
|
|
14607
|
-
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
14608
|
-
});
|
|
14609
|
-
var NATIVE_BIND$3 = functionBindNative;
|
|
14610
|
-
var FunctionPrototype$3 = Function.prototype;
|
|
14611
|
-
var bind$3 = FunctionPrototype$3.bind;
|
|
14612
|
-
var call$e = FunctionPrototype$3.call;
|
|
14613
|
-
var uncurryThis$q = NATIVE_BIND$3 && bind$3.bind(call$e, call$e);
|
|
14614
|
-
var functionUncurryThis = NATIVE_BIND$3 ? function(fn2) {
|
|
14615
|
-
return fn2 && uncurryThis$q(fn2);
|
|
14616
|
-
} : function(fn2) {
|
|
14617
|
-
return fn2 && function() {
|
|
14618
|
-
return call$e.apply(fn2, arguments);
|
|
14619
|
-
};
|
|
14620
|
-
};
|
|
14621
|
-
var $TypeError$b = TypeError;
|
|
14622
|
-
var requireObjectCoercible$6 = function(it) {
|
|
14623
|
-
if (it == void 0)
|
|
14624
|
-
throw $TypeError$b("Can't call method on " + it);
|
|
14625
|
-
return it;
|
|
14626
|
-
};
|
|
14627
|
-
var requireObjectCoercible$5 = requireObjectCoercible$6;
|
|
14628
|
-
var $Object$4 = Object;
|
|
14629
|
-
var toObject$6 = function(argument) {
|
|
14630
|
-
return $Object$4(requireObjectCoercible$5(argument));
|
|
14631
|
-
};
|
|
14632
|
-
var uncurryThis$p = functionUncurryThis;
|
|
14633
|
-
var toObject$5 = toObject$6;
|
|
14634
|
-
var hasOwnProperty$a = uncurryThis$p({}.hasOwnProperty);
|
|
14635
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
14636
|
-
return hasOwnProperty$a(toObject$5(it), key);
|
|
14637
|
-
};
|
|
14638
|
-
var uncurryThis$o = functionUncurryThis;
|
|
14639
|
-
var id$2 = 0;
|
|
14640
|
-
var postfix = Math.random();
|
|
14641
|
-
var toString$a = uncurryThis$o(1 .toString);
|
|
14642
|
-
var uid$3 = function(key) {
|
|
14643
|
-
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$a(++id$2 + postfix, 36);
|
|
14644
|
-
};
|
|
14645
|
-
var isCallable$k = function(argument) {
|
|
14646
|
-
return typeof argument == "function";
|
|
14647
|
-
};
|
|
14648
|
-
var global$h = global$k;
|
|
14649
|
-
var isCallable$j = isCallable$k;
|
|
14650
|
-
var aFunction = function(argument) {
|
|
14651
|
-
return isCallable$j(argument) ? argument : void 0;
|
|
14652
|
-
};
|
|
14653
|
-
var getBuiltIn$5 = function(namespace, method) {
|
|
14654
|
-
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
14655
|
-
};
|
|
14656
|
-
var getBuiltIn$4 = getBuiltIn$5;
|
|
14657
|
-
var engineUserAgent = getBuiltIn$4("navigator", "userAgent") || "";
|
|
14658
|
-
var global$g = global$k;
|
|
14659
|
-
var userAgent = engineUserAgent;
|
|
14660
|
-
var process$2 = global$g.process;
|
|
14661
|
-
var Deno = global$g.Deno;
|
|
14662
|
-
var versions = process$2 && process$2.versions || Deno && Deno.version;
|
|
14663
|
-
var v8 = versions && versions.v8;
|
|
14664
|
-
var match, version;
|
|
14665
|
-
if (v8) {
|
|
14666
|
-
match = v8.split(".");
|
|
14667
|
-
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
14518
|
+
--this.size;
|
|
14519
|
+
return true;
|
|
14668
14520
|
}
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14521
|
+
var _listCacheDelete = listCacheDelete$2;
|
|
14522
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
14523
|
+
function listCacheGet$2(key) {
|
|
14524
|
+
var data2 = this.__data__, index = assocIndexOf$3(data2, key);
|
|
14525
|
+
return index < 0 ? void 0 : data2[index][1];
|
|
14526
|
+
}
|
|
14527
|
+
var _listCacheGet = listCacheGet$2;
|
|
14528
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
14529
|
+
function listCacheHas$2(key) {
|
|
14530
|
+
return assocIndexOf$2(this.__data__, key) > -1;
|
|
14531
|
+
}
|
|
14532
|
+
var _listCacheHas = listCacheHas$2;
|
|
14533
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
14534
|
+
function listCacheSet$2(key, value) {
|
|
14535
|
+
var data2 = this.__data__, index = assocIndexOf$1(data2, key);
|
|
14536
|
+
if (index < 0) {
|
|
14537
|
+
++this.size;
|
|
14538
|
+
data2.push([key, value]);
|
|
14539
|
+
} else {
|
|
14540
|
+
data2[index][1] = value;
|
|
14675
14541
|
}
|
|
14542
|
+
return this;
|
|
14676
14543
|
}
|
|
14677
|
-
var
|
|
14678
|
-
var
|
|
14679
|
-
|
|
14680
|
-
var
|
|
14681
|
-
|
|
14682
|
-
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
14686
|
-
var global$f = global$k;
|
|
14687
|
-
var shared$3 = shared$4.exports;
|
|
14688
|
-
var hasOwn$a = hasOwnProperty_1;
|
|
14689
|
-
var uid$2 = uid$3;
|
|
14690
|
-
var NATIVE_SYMBOL = nativeSymbol;
|
|
14691
|
-
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
14692
|
-
var WellKnownSymbolsStore = shared$3("wks");
|
|
14693
|
-
var Symbol$6 = global$f.Symbol;
|
|
14694
|
-
var symbolFor = Symbol$6 && Symbol$6["for"];
|
|
14695
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$6 : Symbol$6 && Symbol$6.withoutSetter || uid$2;
|
|
14696
|
-
var wellKnownSymbol$f = function(name) {
|
|
14697
|
-
if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == "string")) {
|
|
14698
|
-
var description = "Symbol." + name;
|
|
14699
|
-
if (NATIVE_SYMBOL && hasOwn$a(Symbol$6, name)) {
|
|
14700
|
-
WellKnownSymbolsStore[name] = Symbol$6[name];
|
|
14701
|
-
} else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
|
|
14702
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
14703
|
-
} else {
|
|
14704
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
14705
|
-
}
|
|
14544
|
+
var _listCacheSet = listCacheSet$2;
|
|
14545
|
+
var listCacheClear$1 = _listCacheClear, listCacheDelete$1 = _listCacheDelete, listCacheGet$1 = _listCacheGet, listCacheHas$1 = _listCacheHas, listCacheSet$1 = _listCacheSet;
|
|
14546
|
+
function ListCache$5(entries) {
|
|
14547
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
14548
|
+
this.clear();
|
|
14549
|
+
while (++index < length) {
|
|
14550
|
+
var entry = entries[index];
|
|
14551
|
+
this.set(entry[0], entry[1]);
|
|
14706
14552
|
}
|
|
14707
|
-
|
|
14553
|
+
}
|
|
14554
|
+
ListCache$5.prototype.clear = listCacheClear$1;
|
|
14555
|
+
ListCache$5.prototype["delete"] = listCacheDelete$1;
|
|
14556
|
+
ListCache$5.prototype.get = listCacheGet$1;
|
|
14557
|
+
ListCache$5.prototype.has = listCacheHas$1;
|
|
14558
|
+
ListCache$5.prototype.set = listCacheSet$1;
|
|
14559
|
+
var _ListCache = ListCache$5;
|
|
14560
|
+
var ListCache$4 = _ListCache;
|
|
14561
|
+
function stackClear$1() {
|
|
14562
|
+
this.__data__ = new ListCache$4();
|
|
14563
|
+
this.size = 0;
|
|
14564
|
+
}
|
|
14565
|
+
var _stackClear = stackClear$1;
|
|
14566
|
+
function stackDelete$1(key) {
|
|
14567
|
+
var data2 = this.__data__, result = data2["delete"](key);
|
|
14568
|
+
this.size = data2.size;
|
|
14569
|
+
return result;
|
|
14570
|
+
}
|
|
14571
|
+
var _stackDelete = stackDelete$1;
|
|
14572
|
+
function stackGet$1(key) {
|
|
14573
|
+
return this.__data__.get(key);
|
|
14574
|
+
}
|
|
14575
|
+
var _stackGet = stackGet$1;
|
|
14576
|
+
function stackHas$1(key) {
|
|
14577
|
+
return this.__data__.has(key);
|
|
14578
|
+
}
|
|
14579
|
+
var _stackHas = stackHas$1;
|
|
14580
|
+
var freeGlobal$4 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
14581
|
+
var _freeGlobal = freeGlobal$4;
|
|
14582
|
+
var freeGlobal$3 = _freeGlobal;
|
|
14583
|
+
var freeSelf$3 = typeof self == "object" && self && self.Object === Object && self;
|
|
14584
|
+
var root$b = freeGlobal$3 || freeSelf$3 || Function("return this")();
|
|
14585
|
+
var _root = root$b;
|
|
14586
|
+
var root$a = _root;
|
|
14587
|
+
var Symbol$7 = root$a.Symbol;
|
|
14588
|
+
var _Symbol = Symbol$7;
|
|
14589
|
+
var Symbol$6 = _Symbol;
|
|
14590
|
+
var objectProto$h = Object.prototype;
|
|
14591
|
+
var hasOwnProperty$d = objectProto$h.hasOwnProperty;
|
|
14592
|
+
var nativeObjectToString$1 = objectProto$h.toString;
|
|
14593
|
+
var symToStringTag$1 = Symbol$6 ? Symbol$6.toStringTag : void 0;
|
|
14594
|
+
function getRawTag$1(value) {
|
|
14595
|
+
var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
14596
|
+
try {
|
|
14597
|
+
value[symToStringTag$1] = void 0;
|
|
14598
|
+
var unmasked = true;
|
|
14599
|
+
} catch (e) {
|
|
14600
|
+
}
|
|
14601
|
+
var result = nativeObjectToString$1.call(value);
|
|
14602
|
+
if (unmasked) {
|
|
14603
|
+
if (isOwn) {
|
|
14604
|
+
value[symToStringTag$1] = tag;
|
|
14605
|
+
} else {
|
|
14606
|
+
delete value[symToStringTag$1];
|
|
14607
|
+
}
|
|
14608
|
+
}
|
|
14609
|
+
return result;
|
|
14610
|
+
}
|
|
14611
|
+
var _getRawTag = getRawTag$1;
|
|
14612
|
+
var objectProto$g = Object.prototype;
|
|
14613
|
+
var nativeObjectToString = objectProto$g.toString;
|
|
14614
|
+
function objectToString$5(value) {
|
|
14615
|
+
return nativeObjectToString.call(value);
|
|
14616
|
+
}
|
|
14617
|
+
var _objectToString = objectToString$5;
|
|
14618
|
+
var Symbol$5 = _Symbol, getRawTag = _getRawTag, objectToString$4 = _objectToString;
|
|
14619
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
14620
|
+
var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : void 0;
|
|
14621
|
+
function baseGetTag$4(value) {
|
|
14622
|
+
if (value == null) {
|
|
14623
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
14624
|
+
}
|
|
14625
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString$4(value);
|
|
14626
|
+
}
|
|
14627
|
+
var _baseGetTag = baseGetTag$4;
|
|
14628
|
+
function isObject$l(value) {
|
|
14629
|
+
var type = typeof value;
|
|
14630
|
+
return value != null && (type == "object" || type == "function");
|
|
14631
|
+
}
|
|
14632
|
+
var isObject_1 = isObject$l;
|
|
14633
|
+
var baseGetTag$3 = _baseGetTag, isObject$k = isObject_1;
|
|
14634
|
+
var asyncTag = "[object AsyncFunction]", funcTag$3 = "[object Function]", genTag$2 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
14635
|
+
function isFunction$3(value) {
|
|
14636
|
+
if (!isObject$k(value)) {
|
|
14637
|
+
return false;
|
|
14638
|
+
}
|
|
14639
|
+
var tag = baseGetTag$3(value);
|
|
14640
|
+
return tag == funcTag$3 || tag == genTag$2 || tag == asyncTag || tag == proxyTag;
|
|
14641
|
+
}
|
|
14642
|
+
var isFunction_1 = isFunction$3;
|
|
14643
|
+
var root$9 = _root;
|
|
14644
|
+
var coreJsData$2 = root$9["__core-js_shared__"];
|
|
14645
|
+
var _coreJsData = coreJsData$2;
|
|
14646
|
+
var coreJsData$1 = _coreJsData;
|
|
14647
|
+
var maskSrcKey$1 = function() {
|
|
14648
|
+
var uid2 = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
|
|
14649
|
+
return uid2 ? "Symbol(src)_1." + uid2 : "";
|
|
14650
|
+
}();
|
|
14651
|
+
function isMasked$2(func) {
|
|
14652
|
+
return !!maskSrcKey$1 && maskSrcKey$1 in func;
|
|
14653
|
+
}
|
|
14654
|
+
var _isMasked = isMasked$2;
|
|
14655
|
+
var funcProto$2 = Function.prototype;
|
|
14656
|
+
var funcToString$2 = funcProto$2.toString;
|
|
14657
|
+
function toSource$3(func) {
|
|
14658
|
+
if (func != null) {
|
|
14659
|
+
try {
|
|
14660
|
+
return funcToString$2.call(func);
|
|
14661
|
+
} catch (e) {
|
|
14662
|
+
}
|
|
14663
|
+
try {
|
|
14664
|
+
return func + "";
|
|
14665
|
+
} catch (e) {
|
|
14666
|
+
}
|
|
14667
|
+
}
|
|
14668
|
+
return "";
|
|
14669
|
+
}
|
|
14670
|
+
var _toSource = toSource$3;
|
|
14671
|
+
var isFunction$2 = isFunction_1, isMasked$1 = _isMasked, isObject$j = isObject_1, toSource$2 = _toSource;
|
|
14672
|
+
var reRegExpChar$1 = /[\\^$.*+?()[\]{}|]/g;
|
|
14673
|
+
var reIsHostCtor$1 = /^\[object .+?Constructor\]$/;
|
|
14674
|
+
var funcProto$1 = Function.prototype, objectProto$f = Object.prototype;
|
|
14675
|
+
var funcToString$1 = funcProto$1.toString;
|
|
14676
|
+
var hasOwnProperty$c = objectProto$f.hasOwnProperty;
|
|
14677
|
+
var reIsNative$1 = RegExp(
|
|
14678
|
+
"^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
14679
|
+
);
|
|
14680
|
+
function baseIsNative$2(value) {
|
|
14681
|
+
if (!isObject$j(value) || isMasked$1(value)) {
|
|
14682
|
+
return false;
|
|
14683
|
+
}
|
|
14684
|
+
var pattern = isFunction$2(value) ? reIsNative$1 : reIsHostCtor$1;
|
|
14685
|
+
return pattern.test(toSource$2(value));
|
|
14686
|
+
}
|
|
14687
|
+
var _baseIsNative = baseIsNative$2;
|
|
14688
|
+
function getValue$2(object, key) {
|
|
14689
|
+
return object == null ? void 0 : object[key];
|
|
14690
|
+
}
|
|
14691
|
+
var _getValue = getValue$2;
|
|
14692
|
+
var baseIsNative$1 = _baseIsNative, getValue$1 = _getValue;
|
|
14693
|
+
function getNative$8(object, key) {
|
|
14694
|
+
var value = getValue$1(object, key);
|
|
14695
|
+
return baseIsNative$1(value) ? value : void 0;
|
|
14696
|
+
}
|
|
14697
|
+
var _getNative = getNative$8;
|
|
14698
|
+
var getNative$7 = _getNative, root$8 = _root;
|
|
14699
|
+
var Map$5 = getNative$7(root$8, "Map");
|
|
14700
|
+
var _Map = Map$5;
|
|
14701
|
+
var getNative$6 = _getNative;
|
|
14702
|
+
var nativeCreate$5 = getNative$6(Object, "create");
|
|
14703
|
+
var _nativeCreate = nativeCreate$5;
|
|
14704
|
+
var nativeCreate$4 = _nativeCreate;
|
|
14705
|
+
function hashClear$2() {
|
|
14706
|
+
this.__data__ = nativeCreate$4 ? nativeCreate$4(null) : {};
|
|
14707
|
+
this.size = 0;
|
|
14708
|
+
}
|
|
14709
|
+
var _hashClear = hashClear$2;
|
|
14710
|
+
function hashDelete$2(key) {
|
|
14711
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
14712
|
+
this.size -= result ? 1 : 0;
|
|
14713
|
+
return result;
|
|
14714
|
+
}
|
|
14715
|
+
var _hashDelete = hashDelete$2;
|
|
14716
|
+
var nativeCreate$3 = _nativeCreate;
|
|
14717
|
+
var HASH_UNDEFINED$3 = "__lodash_hash_undefined__";
|
|
14718
|
+
var objectProto$e = Object.prototype;
|
|
14719
|
+
var hasOwnProperty$b = objectProto$e.hasOwnProperty;
|
|
14720
|
+
function hashGet$2(key) {
|
|
14721
|
+
var data2 = this.__data__;
|
|
14722
|
+
if (nativeCreate$3) {
|
|
14723
|
+
var result = data2[key];
|
|
14724
|
+
return result === HASH_UNDEFINED$3 ? void 0 : result;
|
|
14725
|
+
}
|
|
14726
|
+
return hasOwnProperty$b.call(data2, key) ? data2[key] : void 0;
|
|
14727
|
+
}
|
|
14728
|
+
var _hashGet = hashGet$2;
|
|
14729
|
+
var nativeCreate$2 = _nativeCreate;
|
|
14730
|
+
var objectProto$d = Object.prototype;
|
|
14731
|
+
var hasOwnProperty$a = objectProto$d.hasOwnProperty;
|
|
14732
|
+
function hashHas$2(key) {
|
|
14733
|
+
var data2 = this.__data__;
|
|
14734
|
+
return nativeCreate$2 ? data2[key] !== void 0 : hasOwnProperty$a.call(data2, key);
|
|
14735
|
+
}
|
|
14736
|
+
var _hashHas = hashHas$2;
|
|
14737
|
+
var nativeCreate$1 = _nativeCreate;
|
|
14738
|
+
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
14739
|
+
function hashSet$2(key, value) {
|
|
14740
|
+
var data2 = this.__data__;
|
|
14741
|
+
this.size += this.has(key) ? 0 : 1;
|
|
14742
|
+
data2[key] = nativeCreate$1 && value === void 0 ? HASH_UNDEFINED$2 : value;
|
|
14743
|
+
return this;
|
|
14744
|
+
}
|
|
14745
|
+
var _hashSet = hashSet$2;
|
|
14746
|
+
var hashClear$1 = _hashClear, hashDelete$1 = _hashDelete, hashGet$1 = _hashGet, hashHas$1 = _hashHas, hashSet$1 = _hashSet;
|
|
14747
|
+
function Hash$2(entries) {
|
|
14748
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
14749
|
+
this.clear();
|
|
14750
|
+
while (++index < length) {
|
|
14751
|
+
var entry = entries[index];
|
|
14752
|
+
this.set(entry[0], entry[1]);
|
|
14753
|
+
}
|
|
14754
|
+
}
|
|
14755
|
+
Hash$2.prototype.clear = hashClear$1;
|
|
14756
|
+
Hash$2.prototype["delete"] = hashDelete$1;
|
|
14757
|
+
Hash$2.prototype.get = hashGet$1;
|
|
14758
|
+
Hash$2.prototype.has = hashHas$1;
|
|
14759
|
+
Hash$2.prototype.set = hashSet$1;
|
|
14760
|
+
var _Hash = Hash$2;
|
|
14761
|
+
var Hash$1 = _Hash, ListCache$3 = _ListCache, Map$4 = _Map;
|
|
14762
|
+
function mapCacheClear$2() {
|
|
14763
|
+
this.size = 0;
|
|
14764
|
+
this.__data__ = {
|
|
14765
|
+
"hash": new Hash$1(),
|
|
14766
|
+
"map": new (Map$4 || ListCache$3)(),
|
|
14767
|
+
"string": new Hash$1()
|
|
14768
|
+
};
|
|
14769
|
+
}
|
|
14770
|
+
var _mapCacheClear = mapCacheClear$2;
|
|
14771
|
+
function isKeyable$2(value) {
|
|
14772
|
+
var type = typeof value;
|
|
14773
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
14774
|
+
}
|
|
14775
|
+
var _isKeyable = isKeyable$2;
|
|
14776
|
+
var isKeyable$1 = _isKeyable;
|
|
14777
|
+
function getMapData$5(map2, key) {
|
|
14778
|
+
var data2 = map2.__data__;
|
|
14779
|
+
return isKeyable$1(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
|
|
14780
|
+
}
|
|
14781
|
+
var _getMapData = getMapData$5;
|
|
14782
|
+
var getMapData$4 = _getMapData;
|
|
14783
|
+
function mapCacheDelete$2(key) {
|
|
14784
|
+
var result = getMapData$4(this, key)["delete"](key);
|
|
14785
|
+
this.size -= result ? 1 : 0;
|
|
14786
|
+
return result;
|
|
14787
|
+
}
|
|
14788
|
+
var _mapCacheDelete = mapCacheDelete$2;
|
|
14789
|
+
var getMapData$3 = _getMapData;
|
|
14790
|
+
function mapCacheGet$2(key) {
|
|
14791
|
+
return getMapData$3(this, key).get(key);
|
|
14792
|
+
}
|
|
14793
|
+
var _mapCacheGet = mapCacheGet$2;
|
|
14794
|
+
var getMapData$2 = _getMapData;
|
|
14795
|
+
function mapCacheHas$2(key) {
|
|
14796
|
+
return getMapData$2(this, key).has(key);
|
|
14797
|
+
}
|
|
14798
|
+
var _mapCacheHas = mapCacheHas$2;
|
|
14799
|
+
var getMapData$1 = _getMapData;
|
|
14800
|
+
function mapCacheSet$2(key, value) {
|
|
14801
|
+
var data2 = getMapData$1(this, key), size2 = data2.size;
|
|
14802
|
+
data2.set(key, value);
|
|
14803
|
+
this.size += data2.size == size2 ? 0 : 1;
|
|
14804
|
+
return this;
|
|
14805
|
+
}
|
|
14806
|
+
var _mapCacheSet = mapCacheSet$2;
|
|
14807
|
+
var mapCacheClear$1 = _mapCacheClear, mapCacheDelete$1 = _mapCacheDelete, mapCacheGet$1 = _mapCacheGet, mapCacheHas$1 = _mapCacheHas, mapCacheSet$1 = _mapCacheSet;
|
|
14808
|
+
function MapCache$3(entries) {
|
|
14809
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
14810
|
+
this.clear();
|
|
14811
|
+
while (++index < length) {
|
|
14812
|
+
var entry = entries[index];
|
|
14813
|
+
this.set(entry[0], entry[1]);
|
|
14814
|
+
}
|
|
14815
|
+
}
|
|
14816
|
+
MapCache$3.prototype.clear = mapCacheClear$1;
|
|
14817
|
+
MapCache$3.prototype["delete"] = mapCacheDelete$1;
|
|
14818
|
+
MapCache$3.prototype.get = mapCacheGet$1;
|
|
14819
|
+
MapCache$3.prototype.has = mapCacheHas$1;
|
|
14820
|
+
MapCache$3.prototype.set = mapCacheSet$1;
|
|
14821
|
+
var _MapCache = MapCache$3;
|
|
14822
|
+
var ListCache$2 = _ListCache, Map$3 = _Map, MapCache$2 = _MapCache;
|
|
14823
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
14824
|
+
function stackSet$1(key, value) {
|
|
14825
|
+
var data2 = this.__data__;
|
|
14826
|
+
if (data2 instanceof ListCache$2) {
|
|
14827
|
+
var pairs = data2.__data__;
|
|
14828
|
+
if (!Map$3 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
14829
|
+
pairs.push([key, value]);
|
|
14830
|
+
this.size = ++data2.size;
|
|
14831
|
+
return this;
|
|
14832
|
+
}
|
|
14833
|
+
data2 = this.__data__ = new MapCache$2(pairs);
|
|
14834
|
+
}
|
|
14835
|
+
data2.set(key, value);
|
|
14836
|
+
this.size = data2.size;
|
|
14837
|
+
return this;
|
|
14838
|
+
}
|
|
14839
|
+
var _stackSet = stackSet$1;
|
|
14840
|
+
var ListCache$1 = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
|
14841
|
+
function Stack$2(entries) {
|
|
14842
|
+
var data2 = this.__data__ = new ListCache$1(entries);
|
|
14843
|
+
this.size = data2.size;
|
|
14844
|
+
}
|
|
14845
|
+
Stack$2.prototype.clear = stackClear;
|
|
14846
|
+
Stack$2.prototype["delete"] = stackDelete;
|
|
14847
|
+
Stack$2.prototype.get = stackGet;
|
|
14848
|
+
Stack$2.prototype.has = stackHas;
|
|
14849
|
+
Stack$2.prototype.set = stackSet;
|
|
14850
|
+
var _Stack = Stack$2;
|
|
14851
|
+
function arrayEach$1(array, iteratee) {
|
|
14852
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
14853
|
+
while (++index < length) {
|
|
14854
|
+
if (iteratee(array[index], index, array) === false) {
|
|
14855
|
+
break;
|
|
14856
|
+
}
|
|
14857
|
+
}
|
|
14858
|
+
return array;
|
|
14859
|
+
}
|
|
14860
|
+
var _arrayEach = arrayEach$1;
|
|
14861
|
+
var getNative$5 = _getNative;
|
|
14862
|
+
var defineProperty$9 = function() {
|
|
14863
|
+
try {
|
|
14864
|
+
var func = getNative$5(Object, "defineProperty");
|
|
14865
|
+
func({}, "", {});
|
|
14866
|
+
return func;
|
|
14867
|
+
} catch (e) {
|
|
14868
|
+
}
|
|
14869
|
+
}();
|
|
14870
|
+
var _defineProperty = defineProperty$9;
|
|
14871
|
+
var defineProperty$8 = _defineProperty;
|
|
14872
|
+
function baseAssignValue$2(object, key, value) {
|
|
14873
|
+
if (key == "__proto__" && defineProperty$8) {
|
|
14874
|
+
defineProperty$8(object, key, {
|
|
14875
|
+
"configurable": true,
|
|
14876
|
+
"enumerable": true,
|
|
14877
|
+
"value": value,
|
|
14878
|
+
"writable": true
|
|
14879
|
+
});
|
|
14880
|
+
} else {
|
|
14881
|
+
object[key] = value;
|
|
14882
|
+
}
|
|
14883
|
+
}
|
|
14884
|
+
var _baseAssignValue = baseAssignValue$2;
|
|
14885
|
+
var baseAssignValue$1 = _baseAssignValue, eq$2 = eq_1;
|
|
14886
|
+
var objectProto$c = Object.prototype;
|
|
14887
|
+
var hasOwnProperty$9 = objectProto$c.hasOwnProperty;
|
|
14888
|
+
function assignValue$2(object, key, value) {
|
|
14889
|
+
var objValue = object[key];
|
|
14890
|
+
if (!(hasOwnProperty$9.call(object, key) && eq$2(objValue, value)) || value === void 0 && !(key in object)) {
|
|
14891
|
+
baseAssignValue$1(object, key, value);
|
|
14892
|
+
}
|
|
14893
|
+
}
|
|
14894
|
+
var _assignValue = assignValue$2;
|
|
14895
|
+
var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
|
14896
|
+
function copyObject$4(source, props, object, customizer) {
|
|
14897
|
+
var isNew = !object;
|
|
14898
|
+
object || (object = {});
|
|
14899
|
+
var index = -1, length = props.length;
|
|
14900
|
+
while (++index < length) {
|
|
14901
|
+
var key = props[index];
|
|
14902
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
14903
|
+
if (newValue === void 0) {
|
|
14904
|
+
newValue = source[key];
|
|
14905
|
+
}
|
|
14906
|
+
if (isNew) {
|
|
14907
|
+
baseAssignValue(object, key, newValue);
|
|
14908
|
+
} else {
|
|
14909
|
+
assignValue$1(object, key, newValue);
|
|
14910
|
+
}
|
|
14911
|
+
}
|
|
14912
|
+
return object;
|
|
14913
|
+
}
|
|
14914
|
+
var _copyObject = copyObject$4;
|
|
14915
|
+
function baseTimes$1(n, iteratee) {
|
|
14916
|
+
var index = -1, result = Array(n);
|
|
14917
|
+
while (++index < n) {
|
|
14918
|
+
result[index] = iteratee(index);
|
|
14919
|
+
}
|
|
14920
|
+
return result;
|
|
14921
|
+
}
|
|
14922
|
+
var _baseTimes = baseTimes$1;
|
|
14923
|
+
function isObjectLike$8(value) {
|
|
14924
|
+
return value != null && typeof value == "object";
|
|
14925
|
+
}
|
|
14926
|
+
var isObjectLike_1 = isObjectLike$8;
|
|
14927
|
+
var baseGetTag$2 = _baseGetTag, isObjectLike$7 = isObjectLike_1;
|
|
14928
|
+
var argsTag$3 = "[object Arguments]";
|
|
14929
|
+
function baseIsArguments$1(value) {
|
|
14930
|
+
return isObjectLike$7(value) && baseGetTag$2(value) == argsTag$3;
|
|
14931
|
+
}
|
|
14932
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
14933
|
+
var baseIsArguments = _baseIsArguments, isObjectLike$6 = isObjectLike_1;
|
|
14934
|
+
var objectProto$b = Object.prototype;
|
|
14935
|
+
var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
|
|
14936
|
+
var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
|
|
14937
|
+
var isArguments$1 = baseIsArguments(function() {
|
|
14938
|
+
return arguments;
|
|
14939
|
+
}()) ? baseIsArguments : function(value) {
|
|
14940
|
+
return isObjectLike$6(value) && hasOwnProperty$8.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
|
14941
|
+
};
|
|
14942
|
+
var isArguments_1 = isArguments$1;
|
|
14943
|
+
var isArray$6 = Array.isArray;
|
|
14944
|
+
var isArray_1 = isArray$6;
|
|
14945
|
+
var isBuffer$3 = { exports: {} };
|
|
14946
|
+
function stubFalse() {
|
|
14947
|
+
return false;
|
|
14948
|
+
}
|
|
14949
|
+
var stubFalse_1 = stubFalse;
|
|
14950
|
+
(function(module, exports) {
|
|
14951
|
+
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
14952
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
14953
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
14954
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
14955
|
+
var Buffer2 = moduleExports ? root2.Buffer : void 0;
|
|
14956
|
+
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
14957
|
+
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
14958
|
+
module.exports = isBuffer2;
|
|
14959
|
+
})(isBuffer$3, isBuffer$3.exports);
|
|
14960
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
14961
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
14962
|
+
function isIndex$1(value, length) {
|
|
14963
|
+
var type = typeof value;
|
|
14964
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
14965
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
14966
|
+
}
|
|
14967
|
+
var _isIndex = isIndex$1;
|
|
14968
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
14969
|
+
function isLength$2(value) {
|
|
14970
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
14971
|
+
}
|
|
14972
|
+
var isLength_1 = isLength$2;
|
|
14973
|
+
var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$5 = isObjectLike_1;
|
|
14974
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$2 = "[object Function]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
|
14975
|
+
var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
|
14976
|
+
var typedArrayTags = {};
|
|
14977
|
+
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
|
14978
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$2] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$2] = false;
|
|
14979
|
+
function baseIsTypedArray$1(value) {
|
|
14980
|
+
return isObjectLike$5(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
|
|
14981
|
+
}
|
|
14982
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
14983
|
+
function baseUnary$3(func) {
|
|
14984
|
+
return function(value) {
|
|
14985
|
+
return func(value);
|
|
14986
|
+
};
|
|
14987
|
+
}
|
|
14988
|
+
var _baseUnary = baseUnary$3;
|
|
14989
|
+
var _nodeUtil = { exports: {} };
|
|
14990
|
+
(function(module, exports) {
|
|
14991
|
+
var freeGlobal2 = _freeGlobal;
|
|
14992
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
14993
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
14994
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
14995
|
+
var freeProcess = moduleExports && freeGlobal2.process;
|
|
14996
|
+
var nodeUtil2 = function() {
|
|
14997
|
+
try {
|
|
14998
|
+
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
14999
|
+
if (types) {
|
|
15000
|
+
return types;
|
|
15001
|
+
}
|
|
15002
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
15003
|
+
} catch (e) {
|
|
15004
|
+
}
|
|
15005
|
+
}();
|
|
15006
|
+
module.exports = nodeUtil2;
|
|
15007
|
+
})(_nodeUtil, _nodeUtil.exports);
|
|
15008
|
+
var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtil.exports;
|
|
15009
|
+
var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
|
15010
|
+
var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
|
15011
|
+
var isTypedArray_1 = isTypedArray$2;
|
|
15012
|
+
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$5 = isArray_1, isBuffer$2 = isBuffer$3.exports, isIndex = _isIndex, isTypedArray$1 = isTypedArray_1;
|
|
15013
|
+
var objectProto$a = Object.prototype;
|
|
15014
|
+
var hasOwnProperty$7 = objectProto$a.hasOwnProperty;
|
|
15015
|
+
function arrayLikeKeys$2(value, inherited) {
|
|
15016
|
+
var isArr = isArray$5(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
15017
|
+
for (var key in value) {
|
|
15018
|
+
if ((inherited || hasOwnProperty$7.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
15019
|
+
result.push(key);
|
|
15020
|
+
}
|
|
15021
|
+
}
|
|
15022
|
+
return result;
|
|
15023
|
+
}
|
|
15024
|
+
var _arrayLikeKeys = arrayLikeKeys$2;
|
|
15025
|
+
var objectProto$9 = Object.prototype;
|
|
15026
|
+
function isPrototype$3(value) {
|
|
15027
|
+
var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$9;
|
|
15028
|
+
return value === proto;
|
|
15029
|
+
}
|
|
15030
|
+
var _isPrototype = isPrototype$3;
|
|
15031
|
+
function overArg$2(func, transform) {
|
|
15032
|
+
return function(arg) {
|
|
15033
|
+
return func(transform(arg));
|
|
15034
|
+
};
|
|
15035
|
+
}
|
|
15036
|
+
var _overArg = overArg$2;
|
|
15037
|
+
var overArg$1 = _overArg;
|
|
15038
|
+
var nativeKeys$1 = overArg$1(Object.keys, Object);
|
|
15039
|
+
var _nativeKeys = nativeKeys$1;
|
|
15040
|
+
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
15041
|
+
var objectProto$8 = Object.prototype;
|
|
15042
|
+
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
15043
|
+
function baseKeys$1(object) {
|
|
15044
|
+
if (!isPrototype$2(object)) {
|
|
15045
|
+
return nativeKeys(object);
|
|
15046
|
+
}
|
|
15047
|
+
var result = [];
|
|
15048
|
+
for (var key in Object(object)) {
|
|
15049
|
+
if (hasOwnProperty$6.call(object, key) && key != "constructor") {
|
|
15050
|
+
result.push(key);
|
|
15051
|
+
}
|
|
15052
|
+
}
|
|
15053
|
+
return result;
|
|
15054
|
+
}
|
|
15055
|
+
var _baseKeys = baseKeys$1;
|
|
15056
|
+
var isFunction$1 = isFunction_1, isLength = isLength_1;
|
|
15057
|
+
function isArrayLike$2(value) {
|
|
15058
|
+
return value != null && isLength(value.length) && !isFunction$1(value);
|
|
15059
|
+
}
|
|
15060
|
+
var isArrayLike_1 = isArrayLike$2;
|
|
15061
|
+
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$1 = isArrayLike_1;
|
|
15062
|
+
function keys$4(object) {
|
|
15063
|
+
return isArrayLike$1(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
|
15064
|
+
}
|
|
15065
|
+
var keys_1 = keys$4;
|
|
15066
|
+
var copyObject$3 = _copyObject, keys$3 = keys_1;
|
|
15067
|
+
function baseAssign$1(object, source) {
|
|
15068
|
+
return object && copyObject$3(source, keys$3(source), object);
|
|
15069
|
+
}
|
|
15070
|
+
var _baseAssign = baseAssign$1;
|
|
15071
|
+
function nativeKeysIn$1(object) {
|
|
15072
|
+
var result = [];
|
|
15073
|
+
if (object != null) {
|
|
15074
|
+
for (var key in Object(object)) {
|
|
15075
|
+
result.push(key);
|
|
15076
|
+
}
|
|
15077
|
+
}
|
|
15078
|
+
return result;
|
|
15079
|
+
}
|
|
15080
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
15081
|
+
var isObject$i = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
|
15082
|
+
var objectProto$7 = Object.prototype;
|
|
15083
|
+
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
15084
|
+
function baseKeysIn$1(object) {
|
|
15085
|
+
if (!isObject$i(object)) {
|
|
15086
|
+
return nativeKeysIn(object);
|
|
15087
|
+
}
|
|
15088
|
+
var isProto = isPrototype$1(object), result = [];
|
|
15089
|
+
for (var key in object) {
|
|
15090
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty$5.call(object, key)))) {
|
|
15091
|
+
result.push(key);
|
|
15092
|
+
}
|
|
15093
|
+
}
|
|
15094
|
+
return result;
|
|
15095
|
+
}
|
|
15096
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
15097
|
+
var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
|
15098
|
+
function keysIn$3(object) {
|
|
15099
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
15100
|
+
}
|
|
15101
|
+
var keysIn_1 = keysIn$3;
|
|
15102
|
+
var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
|
15103
|
+
function baseAssignIn$1(object, source) {
|
|
15104
|
+
return object && copyObject$2(source, keysIn$2(source), object);
|
|
15105
|
+
}
|
|
15106
|
+
var _baseAssignIn = baseAssignIn$1;
|
|
15107
|
+
var _cloneBuffer = { exports: {} };
|
|
15108
|
+
(function(module, exports) {
|
|
15109
|
+
var root2 = _root;
|
|
15110
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
15111
|
+
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
15112
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
15113
|
+
var Buffer2 = moduleExports ? root2.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
|
15114
|
+
function cloneBuffer2(buffer, isDeep) {
|
|
15115
|
+
if (isDeep) {
|
|
15116
|
+
return buffer.slice();
|
|
15117
|
+
}
|
|
15118
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
15119
|
+
buffer.copy(result);
|
|
15120
|
+
return result;
|
|
15121
|
+
}
|
|
15122
|
+
module.exports = cloneBuffer2;
|
|
15123
|
+
})(_cloneBuffer, _cloneBuffer.exports);
|
|
15124
|
+
function copyArray$1(source, array) {
|
|
15125
|
+
var index = -1, length = source.length;
|
|
15126
|
+
array || (array = Array(length));
|
|
15127
|
+
while (++index < length) {
|
|
15128
|
+
array[index] = source[index];
|
|
15129
|
+
}
|
|
15130
|
+
return array;
|
|
15131
|
+
}
|
|
15132
|
+
var _copyArray = copyArray$1;
|
|
15133
|
+
function arrayFilter$1(array, predicate) {
|
|
15134
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
15135
|
+
while (++index < length) {
|
|
15136
|
+
var value = array[index];
|
|
15137
|
+
if (predicate(value, index, array)) {
|
|
15138
|
+
result[resIndex++] = value;
|
|
15139
|
+
}
|
|
15140
|
+
}
|
|
15141
|
+
return result;
|
|
15142
|
+
}
|
|
15143
|
+
var _arrayFilter = arrayFilter$1;
|
|
15144
|
+
function stubArray$2() {
|
|
15145
|
+
return [];
|
|
15146
|
+
}
|
|
15147
|
+
var stubArray_1 = stubArray$2;
|
|
15148
|
+
var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
|
15149
|
+
var objectProto$6 = Object.prototype;
|
|
15150
|
+
var propertyIsEnumerable = objectProto$6.propertyIsEnumerable;
|
|
15151
|
+
var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
|
15152
|
+
var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
|
15153
|
+
if (object == null) {
|
|
15154
|
+
return [];
|
|
15155
|
+
}
|
|
15156
|
+
object = Object(object);
|
|
15157
|
+
return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
|
15158
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
15159
|
+
});
|
|
15160
|
+
};
|
|
15161
|
+
var _getSymbols = getSymbols$3;
|
|
15162
|
+
var copyObject$1 = _copyObject, getSymbols$2 = _getSymbols;
|
|
15163
|
+
function copySymbols$1(source, object) {
|
|
15164
|
+
return copyObject$1(source, getSymbols$2(source), object);
|
|
15165
|
+
}
|
|
15166
|
+
var _copySymbols = copySymbols$1;
|
|
15167
|
+
function arrayPush$2(array, values2) {
|
|
15168
|
+
var index = -1, length = values2.length, offset2 = array.length;
|
|
15169
|
+
while (++index < length) {
|
|
15170
|
+
array[offset2 + index] = values2[index];
|
|
15171
|
+
}
|
|
15172
|
+
return array;
|
|
15173
|
+
}
|
|
15174
|
+
var _arrayPush = arrayPush$2;
|
|
15175
|
+
var overArg = _overArg;
|
|
15176
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
15177
|
+
var _getPrototype = getPrototype$2;
|
|
15178
|
+
var arrayPush$1 = _arrayPush, getPrototype$1 = _getPrototype, getSymbols$1 = _getSymbols, stubArray = stubArray_1;
|
|
15179
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
15180
|
+
var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
|
15181
|
+
var result = [];
|
|
15182
|
+
while (object) {
|
|
15183
|
+
arrayPush$1(result, getSymbols$1(object));
|
|
15184
|
+
object = getPrototype$1(object);
|
|
15185
|
+
}
|
|
15186
|
+
return result;
|
|
15187
|
+
};
|
|
15188
|
+
var _getSymbolsIn = getSymbolsIn$2;
|
|
15189
|
+
var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
|
15190
|
+
function copySymbolsIn$1(source, object) {
|
|
15191
|
+
return copyObject(source, getSymbolsIn$1(source), object);
|
|
15192
|
+
}
|
|
15193
|
+
var _copySymbolsIn = copySymbolsIn$1;
|
|
15194
|
+
var arrayPush = _arrayPush, isArray$4 = isArray_1;
|
|
15195
|
+
function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
|
15196
|
+
var result = keysFunc(object);
|
|
15197
|
+
return isArray$4(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
15198
|
+
}
|
|
15199
|
+
var _baseGetAllKeys = baseGetAllKeys$2;
|
|
15200
|
+
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols = _getSymbols, keys$2 = keys_1;
|
|
15201
|
+
function getAllKeys$2(object) {
|
|
15202
|
+
return baseGetAllKeys$1(object, keys$2, getSymbols);
|
|
15203
|
+
}
|
|
15204
|
+
var _getAllKeys = getAllKeys$2;
|
|
15205
|
+
var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
|
15206
|
+
function getAllKeysIn$1(object) {
|
|
15207
|
+
return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
|
15208
|
+
}
|
|
15209
|
+
var _getAllKeysIn = getAllKeysIn$1;
|
|
15210
|
+
var getNative$4 = _getNative, root$7 = _root;
|
|
15211
|
+
var DataView$1 = getNative$4(root$7, "DataView");
|
|
15212
|
+
var _DataView = DataView$1;
|
|
15213
|
+
var getNative$3 = _getNative, root$6 = _root;
|
|
15214
|
+
var Promise$2 = getNative$3(root$6, "Promise");
|
|
15215
|
+
var _Promise = Promise$2;
|
|
15216
|
+
var getNative$2 = _getNative, root$5 = _root;
|
|
15217
|
+
var Set$2 = getNative$2(root$5, "Set");
|
|
15218
|
+
var _Set = Set$2;
|
|
15219
|
+
var getNative$1 = _getNative, root$4 = _root;
|
|
15220
|
+
var WeakMap$4 = getNative$1(root$4, "WeakMap");
|
|
15221
|
+
var _WeakMap = WeakMap$4;
|
|
15222
|
+
var DataView = _DataView, Map$2 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$3 = _WeakMap, baseGetTag = _baseGetTag, toSource$1 = _toSource;
|
|
15223
|
+
var mapTag$4 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$4 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
|
15224
|
+
var dataViewTag$3 = "[object DataView]";
|
|
15225
|
+
var dataViewCtorString = toSource$1(DataView), mapCtorString = toSource$1(Map$2), promiseCtorString = toSource$1(Promise$1), setCtorString = toSource$1(Set$1), weakMapCtorString = toSource$1(WeakMap$3);
|
|
15226
|
+
var getTag$4 = baseGetTag;
|
|
15227
|
+
if (DataView && getTag$4(new DataView(new ArrayBuffer(1))) != dataViewTag$3 || Map$2 && getTag$4(new Map$2()) != mapTag$4 || Promise$1 && getTag$4(Promise$1.resolve()) != promiseTag || Set$1 && getTag$4(new Set$1()) != setTag$4 || WeakMap$3 && getTag$4(new WeakMap$3()) != weakMapTag$1) {
|
|
15228
|
+
getTag$4 = function(value) {
|
|
15229
|
+
var result = baseGetTag(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource$1(Ctor) : "";
|
|
15230
|
+
if (ctorString) {
|
|
15231
|
+
switch (ctorString) {
|
|
15232
|
+
case dataViewCtorString:
|
|
15233
|
+
return dataViewTag$3;
|
|
15234
|
+
case mapCtorString:
|
|
15235
|
+
return mapTag$4;
|
|
15236
|
+
case promiseCtorString:
|
|
15237
|
+
return promiseTag;
|
|
15238
|
+
case setCtorString:
|
|
15239
|
+
return setTag$4;
|
|
15240
|
+
case weakMapCtorString:
|
|
15241
|
+
return weakMapTag$1;
|
|
15242
|
+
}
|
|
15243
|
+
}
|
|
15244
|
+
return result;
|
|
15245
|
+
};
|
|
15246
|
+
}
|
|
15247
|
+
var _getTag = getTag$4;
|
|
15248
|
+
var objectProto$5 = Object.prototype;
|
|
15249
|
+
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
15250
|
+
function initCloneArray$1(array) {
|
|
15251
|
+
var length = array.length, result = new array.constructor(length);
|
|
15252
|
+
if (length && typeof array[0] == "string" && hasOwnProperty$4.call(array, "index")) {
|
|
15253
|
+
result.index = array.index;
|
|
15254
|
+
result.input = array.input;
|
|
15255
|
+
}
|
|
15256
|
+
return result;
|
|
15257
|
+
}
|
|
15258
|
+
var _initCloneArray = initCloneArray$1;
|
|
15259
|
+
var root$3 = _root;
|
|
15260
|
+
var Uint8Array$2 = root$3.Uint8Array;
|
|
15261
|
+
var _Uint8Array = Uint8Array$2;
|
|
15262
|
+
var Uint8Array$1 = _Uint8Array;
|
|
15263
|
+
function cloneArrayBuffer$3(arrayBuffer) {
|
|
15264
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
15265
|
+
new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
|
15266
|
+
return result;
|
|
15267
|
+
}
|
|
15268
|
+
var _cloneArrayBuffer = cloneArrayBuffer$3;
|
|
15269
|
+
var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
|
15270
|
+
function cloneDataView$1(dataView, isDeep) {
|
|
15271
|
+
var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
|
15272
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
15273
|
+
}
|
|
15274
|
+
var _cloneDataView = cloneDataView$1;
|
|
15275
|
+
var reFlags = /\w*$/;
|
|
15276
|
+
function cloneRegExp$1(regexp) {
|
|
15277
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
15278
|
+
result.lastIndex = regexp.lastIndex;
|
|
15279
|
+
return result;
|
|
15280
|
+
}
|
|
15281
|
+
var _cloneRegExp = cloneRegExp$1;
|
|
15282
|
+
var Symbol$4 = _Symbol;
|
|
15283
|
+
var symbolProto$1 = Symbol$4 ? Symbol$4.prototype : void 0, symbolValueOf$1 = symbolProto$1 ? symbolProto$1.valueOf : void 0;
|
|
15284
|
+
function cloneSymbol$1(symbol) {
|
|
15285
|
+
return symbolValueOf$1 ? Object(symbolValueOf$1.call(symbol)) : {};
|
|
15286
|
+
}
|
|
15287
|
+
var _cloneSymbol = cloneSymbol$1;
|
|
15288
|
+
var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
|
15289
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
15290
|
+
var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
|
15291
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
15292
|
+
}
|
|
15293
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
15294
|
+
var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
|
15295
|
+
var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$3 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$4 = "[object Symbol]";
|
|
15296
|
+
var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
|
15297
|
+
function initCloneByTag$1(object, tag, isDeep) {
|
|
15298
|
+
var Ctor = object.constructor;
|
|
15299
|
+
switch (tag) {
|
|
15300
|
+
case arrayBufferTag$2:
|
|
15301
|
+
return cloneArrayBuffer(object);
|
|
15302
|
+
case boolTag$2:
|
|
15303
|
+
case dateTag$2:
|
|
15304
|
+
return new Ctor(+object);
|
|
15305
|
+
case dataViewTag$2:
|
|
15306
|
+
return cloneDataView(object, isDeep);
|
|
15307
|
+
case float32Tag$1:
|
|
15308
|
+
case float64Tag$1:
|
|
15309
|
+
case int8Tag$1:
|
|
15310
|
+
case int16Tag$1:
|
|
15311
|
+
case int32Tag$1:
|
|
15312
|
+
case uint8Tag$1:
|
|
15313
|
+
case uint8ClampedTag$1:
|
|
15314
|
+
case uint16Tag$1:
|
|
15315
|
+
case uint32Tag$1:
|
|
15316
|
+
return cloneTypedArray(object, isDeep);
|
|
15317
|
+
case mapTag$3:
|
|
15318
|
+
return new Ctor();
|
|
15319
|
+
case numberTag$2:
|
|
15320
|
+
case stringTag$2:
|
|
15321
|
+
return new Ctor(object);
|
|
15322
|
+
case regexpTag$2:
|
|
15323
|
+
return cloneRegExp(object);
|
|
15324
|
+
case setTag$3:
|
|
15325
|
+
return new Ctor();
|
|
15326
|
+
case symbolTag$4:
|
|
15327
|
+
return cloneSymbol(object);
|
|
15328
|
+
}
|
|
15329
|
+
}
|
|
15330
|
+
var _initCloneByTag = initCloneByTag$1;
|
|
15331
|
+
var isObject$h = isObject_1;
|
|
15332
|
+
var objectCreate$1 = Object.create;
|
|
15333
|
+
var baseCreate$1 = function() {
|
|
15334
|
+
function object() {
|
|
15335
|
+
}
|
|
15336
|
+
return function(proto) {
|
|
15337
|
+
if (!isObject$h(proto)) {
|
|
15338
|
+
return {};
|
|
15339
|
+
}
|
|
15340
|
+
if (objectCreate$1) {
|
|
15341
|
+
return objectCreate$1(proto);
|
|
15342
|
+
}
|
|
15343
|
+
object.prototype = proto;
|
|
15344
|
+
var result = new object();
|
|
15345
|
+
object.prototype = void 0;
|
|
15346
|
+
return result;
|
|
15347
|
+
};
|
|
15348
|
+
}();
|
|
15349
|
+
var _baseCreate = baseCreate$1;
|
|
15350
|
+
var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
|
15351
|
+
function initCloneObject$1(object) {
|
|
15352
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
15353
|
+
}
|
|
15354
|
+
var _initCloneObject = initCloneObject$1;
|
|
15355
|
+
var getTag$3 = _getTag, isObjectLike$4 = isObjectLike_1;
|
|
15356
|
+
var mapTag$2 = "[object Map]";
|
|
15357
|
+
function baseIsMap$1(value) {
|
|
15358
|
+
return isObjectLike$4(value) && getTag$3(value) == mapTag$2;
|
|
15359
|
+
}
|
|
15360
|
+
var _baseIsMap = baseIsMap$1;
|
|
15361
|
+
var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtil.exports;
|
|
15362
|
+
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
|
15363
|
+
var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
|
15364
|
+
var isMap_1 = isMap$1;
|
|
15365
|
+
var getTag$2 = _getTag, isObjectLike$3 = isObjectLike_1;
|
|
15366
|
+
var setTag$2 = "[object Set]";
|
|
15367
|
+
function baseIsSet$1(value) {
|
|
15368
|
+
return isObjectLike$3(value) && getTag$2(value) == setTag$2;
|
|
15369
|
+
}
|
|
15370
|
+
var _baseIsSet = baseIsSet$1;
|
|
15371
|
+
var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports;
|
|
15372
|
+
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
15373
|
+
var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
15374
|
+
var isSet_1 = isSet$1;
|
|
15375
|
+
var Stack$1 = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys$1 = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag$1 = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray$3 = isArray_1, isBuffer$1 = isBuffer$3.exports, isMap = isMap_1, isObject$g = isObject_1, isSet = isSet_1, keys$1 = keys_1, keysIn = keysIn_1;
|
|
15376
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
|
15377
|
+
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", mapTag$1 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$1 = "[object Set]", stringTag$1 = "[object String]", symbolTag$3 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
15378
|
+
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
15379
|
+
var cloneableTags = {};
|
|
15380
|
+
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$1] = cloneableTags[stringTag$1] = cloneableTags[symbolTag$3] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
15381
|
+
cloneableTags[errorTag$1] = cloneableTags[funcTag$1] = cloneableTags[weakMapTag] = false;
|
|
15382
|
+
function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
|
15383
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
|
15384
|
+
if (customizer) {
|
|
15385
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
15386
|
+
}
|
|
15387
|
+
if (result !== void 0) {
|
|
15388
|
+
return result;
|
|
15389
|
+
}
|
|
15390
|
+
if (!isObject$g(value)) {
|
|
15391
|
+
return value;
|
|
15392
|
+
}
|
|
15393
|
+
var isArr = isArray$3(value);
|
|
15394
|
+
if (isArr) {
|
|
15395
|
+
result = initCloneArray(value);
|
|
15396
|
+
if (!isDeep) {
|
|
15397
|
+
return copyArray(value, result);
|
|
15398
|
+
}
|
|
15399
|
+
} else {
|
|
15400
|
+
var tag = getTag$1(value), isFunc = tag == funcTag$1 || tag == genTag$1;
|
|
15401
|
+
if (isBuffer$1(value)) {
|
|
15402
|
+
return cloneBuffer(value, isDeep);
|
|
15403
|
+
}
|
|
15404
|
+
if (tag == objectTag$1 || tag == argsTag$1 || isFunc && !object) {
|
|
15405
|
+
result = isFlat || isFunc ? {} : initCloneObject(value);
|
|
15406
|
+
if (!isDeep) {
|
|
15407
|
+
return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
|
15408
|
+
}
|
|
15409
|
+
} else {
|
|
15410
|
+
if (!cloneableTags[tag]) {
|
|
15411
|
+
return object ? value : {};
|
|
15412
|
+
}
|
|
15413
|
+
result = initCloneByTag(value, tag, isDeep);
|
|
15414
|
+
}
|
|
15415
|
+
}
|
|
15416
|
+
stack || (stack = new Stack$1());
|
|
15417
|
+
var stacked = stack.get(value);
|
|
15418
|
+
if (stacked) {
|
|
15419
|
+
return stacked;
|
|
15420
|
+
}
|
|
15421
|
+
stack.set(value, result);
|
|
15422
|
+
if (isSet(value)) {
|
|
15423
|
+
value.forEach(function(subValue) {
|
|
15424
|
+
result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
|
15425
|
+
});
|
|
15426
|
+
} else if (isMap(value)) {
|
|
15427
|
+
value.forEach(function(subValue, key2) {
|
|
15428
|
+
result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
15429
|
+
});
|
|
15430
|
+
}
|
|
15431
|
+
var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys$1 : isFlat ? keysIn : keys$1;
|
|
15432
|
+
var props = isArr ? void 0 : keysFunc(value);
|
|
15433
|
+
arrayEach(props || value, function(subValue, key2) {
|
|
15434
|
+
if (props) {
|
|
15435
|
+
key2 = subValue;
|
|
15436
|
+
subValue = value[key2];
|
|
15437
|
+
}
|
|
15438
|
+
assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
|
15439
|
+
});
|
|
15440
|
+
return result;
|
|
15441
|
+
}
|
|
15442
|
+
var _baseClone = baseClone$1;
|
|
15443
|
+
var baseClone = _baseClone;
|
|
15444
|
+
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
|
15445
|
+
function cloneDeep(value) {
|
|
15446
|
+
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
|
15447
|
+
}
|
|
15448
|
+
var cloneDeep_1 = cloneDeep;
|
|
15449
|
+
function copyMark(mark) {
|
|
15450
|
+
return mark.type.create(cloneDeep_1(mark.attrs));
|
|
15451
|
+
}
|
|
15452
|
+
var render$D = function __render__6() {
|
|
15453
|
+
var _vm = this;
|
|
15454
|
+
var _h = _vm.$createElement;
|
|
15455
|
+
var _c = _vm._self._c || _h;
|
|
15456
|
+
return _c("div", {
|
|
15457
|
+
staticClass: "zw-icon",
|
|
15458
|
+
"class": _vm.iconClasses,
|
|
15459
|
+
style: _vm.iconStyles,
|
|
15460
|
+
domProps: {
|
|
15461
|
+
"innerHTML": _vm._s(_vm.source)
|
|
15462
|
+
}
|
|
15463
|
+
});
|
|
15464
|
+
};
|
|
15465
|
+
var staticRenderFns$D = [];
|
|
15466
|
+
const Icon_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
15467
|
+
const __vue2_script$D = {
|
|
15468
|
+
name: "Icon",
|
|
15469
|
+
props: {
|
|
15470
|
+
name: {
|
|
15471
|
+
type: String,
|
|
15472
|
+
required: true
|
|
15473
|
+
},
|
|
15474
|
+
size: {
|
|
15475
|
+
type: [String, Number],
|
|
15476
|
+
required: false,
|
|
15477
|
+
default: ""
|
|
15478
|
+
},
|
|
15479
|
+
autoColor: {
|
|
15480
|
+
type: Boolean,
|
|
15481
|
+
required: false,
|
|
15482
|
+
default: false
|
|
15483
|
+
}
|
|
15484
|
+
},
|
|
15485
|
+
setup(props) {
|
|
15486
|
+
const source = computed(() => importIcon(props.name));
|
|
15487
|
+
const iconSize = computed(() => {
|
|
15488
|
+
if (isNaN(Number(props.size)))
|
|
15489
|
+
return props.size;
|
|
15490
|
+
return `${props.size}px`;
|
|
15491
|
+
});
|
|
15492
|
+
const iconStyles = computed(() => {
|
|
15493
|
+
if (!props.size)
|
|
15494
|
+
return null;
|
|
15495
|
+
return {
|
|
15496
|
+
"--zw-icon-width": iconSize.value,
|
|
15497
|
+
"--zw-icon-height": iconSize.value
|
|
15498
|
+
};
|
|
15499
|
+
});
|
|
15500
|
+
const iconClasses = computed(() => ({
|
|
15501
|
+
"zw-icon--auto-color": props.autoColor
|
|
15502
|
+
}));
|
|
15503
|
+
return {
|
|
15504
|
+
source,
|
|
15505
|
+
iconStyles,
|
|
15506
|
+
iconClasses
|
|
15507
|
+
};
|
|
15508
|
+
}
|
|
15509
|
+
};
|
|
15510
|
+
const __cssModules$D = {};
|
|
15511
|
+
var __component__$D = /* @__PURE__ */ normalizeComponent(
|
|
15512
|
+
__vue2_script$D,
|
|
15513
|
+
render$D,
|
|
15514
|
+
staticRenderFns$D,
|
|
15515
|
+
false,
|
|
15516
|
+
__vue2_injectStyles$D,
|
|
15517
|
+
"366d6daa",
|
|
15518
|
+
null,
|
|
15519
|
+
null
|
|
15520
|
+
);
|
|
15521
|
+
function __vue2_injectStyles$D(context) {
|
|
15522
|
+
for (let o in __cssModules$D) {
|
|
15523
|
+
this[o] = __cssModules$D[o];
|
|
15524
|
+
}
|
|
15525
|
+
}
|
|
15526
|
+
const Icon = /* @__PURE__ */ function() {
|
|
15527
|
+
return __component__$D.exports;
|
|
15528
|
+
}();
|
|
15529
|
+
var check = function(it) {
|
|
15530
|
+
return it && it.Math == Math && it;
|
|
15531
|
+
};
|
|
15532
|
+
var global$k = check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || function() {
|
|
15533
|
+
return this;
|
|
15534
|
+
}() || Function("return this")();
|
|
15535
|
+
var shared$4 = { exports: {} };
|
|
15536
|
+
var global$j = global$k;
|
|
15537
|
+
var defineProperty$7 = Object.defineProperty;
|
|
15538
|
+
var defineGlobalProperty$3 = function(key, value) {
|
|
15539
|
+
try {
|
|
15540
|
+
defineProperty$7(global$j, key, { value, configurable: true, writable: true });
|
|
15541
|
+
} catch (error) {
|
|
15542
|
+
global$j[key] = value;
|
|
15543
|
+
}
|
|
15544
|
+
return value;
|
|
15545
|
+
};
|
|
15546
|
+
var global$i = global$k;
|
|
15547
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
15548
|
+
var SHARED = "__core-js_shared__";
|
|
15549
|
+
var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
15550
|
+
var sharedStore = store$3;
|
|
15551
|
+
var store$2 = sharedStore;
|
|
15552
|
+
(shared$4.exports = function(key, value) {
|
|
15553
|
+
return store$2[key] || (store$2[key] = value !== void 0 ? value : {});
|
|
15554
|
+
})("versions", []).push({
|
|
15555
|
+
version: "3.23.3",
|
|
15556
|
+
mode: "global",
|
|
15557
|
+
copyright: "\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",
|
|
15558
|
+
license: "https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",
|
|
15559
|
+
source: "https://github.com/zloirock/core-js"
|
|
15560
|
+
});
|
|
15561
|
+
var fails$o = function(exec2) {
|
|
15562
|
+
try {
|
|
15563
|
+
return !!exec2();
|
|
15564
|
+
} catch (error) {
|
|
15565
|
+
return true;
|
|
15566
|
+
}
|
|
15567
|
+
};
|
|
15568
|
+
var fails$n = fails$o;
|
|
15569
|
+
var functionBindNative = !fails$n(function() {
|
|
15570
|
+
var test2 = function() {
|
|
15571
|
+
}.bind();
|
|
15572
|
+
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
15573
|
+
});
|
|
15574
|
+
var NATIVE_BIND$3 = functionBindNative;
|
|
15575
|
+
var FunctionPrototype$3 = Function.prototype;
|
|
15576
|
+
var bind$3 = FunctionPrototype$3.bind;
|
|
15577
|
+
var call$e = FunctionPrototype$3.call;
|
|
15578
|
+
var uncurryThis$q = NATIVE_BIND$3 && bind$3.bind(call$e, call$e);
|
|
15579
|
+
var functionUncurryThis = NATIVE_BIND$3 ? function(fn2) {
|
|
15580
|
+
return fn2 && uncurryThis$q(fn2);
|
|
15581
|
+
} : function(fn2) {
|
|
15582
|
+
return fn2 && function() {
|
|
15583
|
+
return call$e.apply(fn2, arguments);
|
|
15584
|
+
};
|
|
15585
|
+
};
|
|
15586
|
+
var $TypeError$b = TypeError;
|
|
15587
|
+
var requireObjectCoercible$6 = function(it) {
|
|
15588
|
+
if (it == void 0)
|
|
15589
|
+
throw $TypeError$b("Can't call method on " + it);
|
|
15590
|
+
return it;
|
|
15591
|
+
};
|
|
15592
|
+
var requireObjectCoercible$5 = requireObjectCoercible$6;
|
|
15593
|
+
var $Object$4 = Object;
|
|
15594
|
+
var toObject$6 = function(argument) {
|
|
15595
|
+
return $Object$4(requireObjectCoercible$5(argument));
|
|
15596
|
+
};
|
|
15597
|
+
var uncurryThis$p = functionUncurryThis;
|
|
15598
|
+
var toObject$5 = toObject$6;
|
|
15599
|
+
var hasOwnProperty$3 = uncurryThis$p({}.hasOwnProperty);
|
|
15600
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
15601
|
+
return hasOwnProperty$3(toObject$5(it), key);
|
|
15602
|
+
};
|
|
15603
|
+
var uncurryThis$o = functionUncurryThis;
|
|
15604
|
+
var id$2 = 0;
|
|
15605
|
+
var postfix = Math.random();
|
|
15606
|
+
var toString$a = uncurryThis$o(1 .toString);
|
|
15607
|
+
var uid$3 = function(key) {
|
|
15608
|
+
return "Symbol(" + (key === void 0 ? "" : key) + ")_" + toString$a(++id$2 + postfix, 36);
|
|
15609
|
+
};
|
|
15610
|
+
var isCallable$k = function(argument) {
|
|
15611
|
+
return typeof argument == "function";
|
|
15612
|
+
};
|
|
15613
|
+
var global$h = global$k;
|
|
15614
|
+
var isCallable$j = isCallable$k;
|
|
15615
|
+
var aFunction = function(argument) {
|
|
15616
|
+
return isCallable$j(argument) ? argument : void 0;
|
|
15617
|
+
};
|
|
15618
|
+
var getBuiltIn$5 = function(namespace, method) {
|
|
15619
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
15620
|
+
};
|
|
15621
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
15622
|
+
var engineUserAgent = getBuiltIn$4("navigator", "userAgent") || "";
|
|
15623
|
+
var global$g = global$k;
|
|
15624
|
+
var userAgent = engineUserAgent;
|
|
15625
|
+
var process$2 = global$g.process;
|
|
15626
|
+
var Deno = global$g.Deno;
|
|
15627
|
+
var versions = process$2 && process$2.versions || Deno && Deno.version;
|
|
15628
|
+
var v8 = versions && versions.v8;
|
|
15629
|
+
var match, version;
|
|
15630
|
+
if (v8) {
|
|
15631
|
+
match = v8.split(".");
|
|
15632
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
|
15633
|
+
}
|
|
15634
|
+
if (!version && userAgent) {
|
|
15635
|
+
match = userAgent.match(/Edge\/(\d+)/);
|
|
15636
|
+
if (!match || match[1] >= 74) {
|
|
15637
|
+
match = userAgent.match(/Chrome\/(\d+)/);
|
|
15638
|
+
if (match)
|
|
15639
|
+
version = +match[1];
|
|
15640
|
+
}
|
|
15641
|
+
}
|
|
15642
|
+
var engineV8Version = version;
|
|
15643
|
+
var V8_VERSION$1 = engineV8Version;
|
|
15644
|
+
var fails$m = fails$o;
|
|
15645
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$m(function() {
|
|
15646
|
+
var symbol = Symbol();
|
|
15647
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
15648
|
+
});
|
|
15649
|
+
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
15650
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1 && !Symbol.sham && typeof Symbol.iterator == "symbol";
|
|
15651
|
+
var global$f = global$k;
|
|
15652
|
+
var shared$3 = shared$4.exports;
|
|
15653
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
15654
|
+
var uid$2 = uid$3;
|
|
15655
|
+
var NATIVE_SYMBOL = nativeSymbol;
|
|
15656
|
+
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
15657
|
+
var WellKnownSymbolsStore = shared$3("wks");
|
|
15658
|
+
var Symbol$3 = global$f.Symbol;
|
|
15659
|
+
var symbolFor = Symbol$3 && Symbol$3["for"];
|
|
15660
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$2;
|
|
15661
|
+
var wellKnownSymbol$f = function(name) {
|
|
15662
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == "string")) {
|
|
15663
|
+
var description = "Symbol." + name;
|
|
15664
|
+
if (NATIVE_SYMBOL && hasOwn$a(Symbol$3, name)) {
|
|
15665
|
+
WellKnownSymbolsStore[name] = Symbol$3[name];
|
|
15666
|
+
} else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
|
|
15667
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
15668
|
+
} else {
|
|
15669
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
15670
|
+
}
|
|
15671
|
+
}
|
|
15672
|
+
return WellKnownSymbolsStore[name];
|
|
14708
15673
|
};
|
|
14709
15674
|
var wellKnownSymbol$e = wellKnownSymbol$f;
|
|
14710
15675
|
var TO_STRING_TAG$3 = wellKnownSymbol$e("toStringTag");
|
|
@@ -14719,13 +15684,13 @@ var descriptors = !fails$l(function() {
|
|
|
14719
15684
|
} })[1] != 7;
|
|
14720
15685
|
});
|
|
14721
15686
|
var isCallable$i = isCallable$k;
|
|
14722
|
-
var isObject$
|
|
15687
|
+
var isObject$f = function(it) {
|
|
14723
15688
|
return typeof it == "object" ? it !== null : isCallable$i(it);
|
|
14724
15689
|
};
|
|
14725
15690
|
var global$e = global$k;
|
|
14726
|
-
var isObject$
|
|
15691
|
+
var isObject$e = isObject$f;
|
|
14727
15692
|
var document$1 = global$e.document;
|
|
14728
|
-
var EXISTS$1 = isObject$
|
|
15693
|
+
var EXISTS$1 = isObject$e(document$1) && isObject$e(document$1.createElement);
|
|
14729
15694
|
var documentCreateElement$2 = function(it) {
|
|
14730
15695
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
14731
15696
|
};
|
|
@@ -14748,11 +15713,11 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$j(function() {
|
|
|
14748
15713
|
writable: false
|
|
14749
15714
|
}).prototype != 42;
|
|
14750
15715
|
});
|
|
14751
|
-
var isObject$
|
|
15716
|
+
var isObject$d = isObject$f;
|
|
14752
15717
|
var $String$3 = String;
|
|
14753
15718
|
var $TypeError$a = TypeError;
|
|
14754
15719
|
var anObject$d = function(argument) {
|
|
14755
|
-
if (isObject$
|
|
15720
|
+
if (isObject$d(argument))
|
|
14756
15721
|
return argument;
|
|
14757
15722
|
throw $TypeError$a($String$3(argument) + " is not an object");
|
|
14758
15723
|
};
|
|
@@ -14797,20 +15762,20 @@ var getMethod$5 = function(V, P) {
|
|
|
14797
15762
|
};
|
|
14798
15763
|
var call$c = functionCall;
|
|
14799
15764
|
var isCallable$f = isCallable$k;
|
|
14800
|
-
var isObject$
|
|
15765
|
+
var isObject$c = isObject$f;
|
|
14801
15766
|
var $TypeError$8 = TypeError;
|
|
14802
15767
|
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
14803
15768
|
var fn2, val;
|
|
14804
|
-
if (pref === "string" && isCallable$f(fn2 = input.toString) && !isObject$
|
|
15769
|
+
if (pref === "string" && isCallable$f(fn2 = input.toString) && !isObject$c(val = call$c(fn2, input)))
|
|
14805
15770
|
return val;
|
|
14806
|
-
if (isCallable$f(fn2 = input.valueOf) && !isObject$
|
|
15771
|
+
if (isCallable$f(fn2 = input.valueOf) && !isObject$c(val = call$c(fn2, input)))
|
|
14807
15772
|
return val;
|
|
14808
|
-
if (pref !== "string" && isCallable$f(fn2 = input.toString) && !isObject$
|
|
15773
|
+
if (pref !== "string" && isCallable$f(fn2 = input.toString) && !isObject$c(val = call$c(fn2, input)))
|
|
14809
15774
|
return val;
|
|
14810
15775
|
throw $TypeError$8("Can't convert object to primitive value");
|
|
14811
15776
|
};
|
|
14812
15777
|
var call$b = functionCall;
|
|
14813
|
-
var isObject$
|
|
15778
|
+
var isObject$b = isObject$f;
|
|
14814
15779
|
var isSymbol$3 = isSymbol$4;
|
|
14815
15780
|
var getMethod$4 = getMethod$5;
|
|
14816
15781
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
@@ -14818,7 +15783,7 @@ var wellKnownSymbol$d = wellKnownSymbol$f;
|
|
|
14818
15783
|
var $TypeError$7 = TypeError;
|
|
14819
15784
|
var TO_PRIMITIVE = wellKnownSymbol$d("toPrimitive");
|
|
14820
15785
|
var toPrimitive$1 = function(input, pref) {
|
|
14821
|
-
if (!isObject$
|
|
15786
|
+
if (!isObject$b(input) || isSymbol$3(input))
|
|
14822
15787
|
return input;
|
|
14823
15788
|
var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
|
|
14824
15789
|
var result;
|
|
@@ -14826,7 +15791,7 @@ var toPrimitive$1 = function(input, pref) {
|
|
|
14826
15791
|
if (pref === void 0)
|
|
14827
15792
|
pref = "default";
|
|
14828
15793
|
result = call$b(exoticToPrim, input, pref);
|
|
14829
|
-
if (!isObject$
|
|
15794
|
+
if (!isObject$b(result) || isSymbol$3(result))
|
|
14830
15795
|
return result;
|
|
14831
15796
|
throw $TypeError$7("Can't convert object to primitive value");
|
|
14832
15797
|
}
|
|
@@ -14909,8 +15874,8 @@ var inspectSource$3 = store$1.inspectSource;
|
|
|
14909
15874
|
var global$d = global$k;
|
|
14910
15875
|
var isCallable$d = isCallable$k;
|
|
14911
15876
|
var inspectSource$2 = inspectSource$3;
|
|
14912
|
-
var WeakMap$
|
|
14913
|
-
var nativeWeakMap = isCallable$d(WeakMap$
|
|
15877
|
+
var WeakMap$2 = global$d.WeakMap;
|
|
15878
|
+
var nativeWeakMap = isCallable$d(WeakMap$2) && /native code/.test(inspectSource$2(WeakMap$2));
|
|
14914
15879
|
var createPropertyDescriptor$4 = function(bitmap, value) {
|
|
14915
15880
|
return {
|
|
14916
15881
|
enumerable: !(bitmap & 1),
|
|
@@ -14930,15 +15895,15 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$6 ? function(object, key, value)
|
|
|
14930
15895
|
};
|
|
14931
15896
|
var shared$2 = shared$4.exports;
|
|
14932
15897
|
var uid$1 = uid$3;
|
|
14933
|
-
var keys
|
|
15898
|
+
var keys = shared$2("keys");
|
|
14934
15899
|
var sharedKey$3 = function(key) {
|
|
14935
|
-
return keys
|
|
15900
|
+
return keys[key] || (keys[key] = uid$1(key));
|
|
14936
15901
|
};
|
|
14937
15902
|
var hiddenKeys$5 = {};
|
|
14938
15903
|
var NATIVE_WEAK_MAP$1 = nativeWeakMap;
|
|
14939
15904
|
var global$c = global$k;
|
|
14940
15905
|
var uncurryThis$l = functionUncurryThis;
|
|
14941
|
-
var isObject$
|
|
15906
|
+
var isObject$a = isObject$f;
|
|
14942
15907
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
14943
15908
|
var hasOwn$8 = hasOwnProperty_1;
|
|
14944
15909
|
var shared$1 = sharedStore;
|
|
@@ -14946,7 +15911,7 @@ var sharedKey$2 = sharedKey$3;
|
|
|
14946
15911
|
var hiddenKeys$4 = hiddenKeys$5;
|
|
14947
15912
|
var OBJECT_ALREADY_INITIALIZED = "Object already initialized";
|
|
14948
15913
|
var TypeError$1 = global$c.TypeError;
|
|
14949
|
-
var WeakMap$
|
|
15914
|
+
var WeakMap$1 = global$c.WeakMap;
|
|
14950
15915
|
var set, get, has;
|
|
14951
15916
|
var enforce = function(it) {
|
|
14952
15917
|
return has(it) ? get(it) : set(it, {});
|
|
@@ -14954,14 +15919,14 @@ var enforce = function(it) {
|
|
|
14954
15919
|
var getterFor = function(TYPE) {
|
|
14955
15920
|
return function(it) {
|
|
14956
15921
|
var state;
|
|
14957
|
-
if (!isObject$
|
|
15922
|
+
if (!isObject$a(it) || (state = get(it)).type !== TYPE) {
|
|
14958
15923
|
throw TypeError$1("Incompatible receiver, " + TYPE + " required");
|
|
14959
15924
|
}
|
|
14960
15925
|
return state;
|
|
14961
15926
|
};
|
|
14962
15927
|
};
|
|
14963
15928
|
if (NATIVE_WEAK_MAP$1 || shared$1.state) {
|
|
14964
|
-
var store = shared$1.state || (shared$1.state = new WeakMap$
|
|
15929
|
+
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
14965
15930
|
var wmget = uncurryThis$l(store.get);
|
|
14966
15931
|
var wmhas = uncurryThis$l(store.has);
|
|
14967
15932
|
var wmset = uncurryThis$l(store.set);
|
|
@@ -15114,12 +16079,12 @@ var classof$a = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function(it) {
|
|
|
15114
16079
|
};
|
|
15115
16080
|
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
|
|
15116
16081
|
var classof$9 = classof$a;
|
|
15117
|
-
var objectToString$
|
|
16082
|
+
var objectToString$3 = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString2() {
|
|
15118
16083
|
return "[object " + classof$9(this) + "]";
|
|
15119
16084
|
};
|
|
15120
16085
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
15121
16086
|
var defineBuiltIn$6 = defineBuiltIn$7;
|
|
15122
|
-
var toString$8 = objectToString$
|
|
16087
|
+
var toString$8 = objectToString$3;
|
|
15123
16088
|
if (!TO_STRING_TAG_SUPPORT) {
|
|
15124
16089
|
defineBuiltIn$6(Object.prototype, "toString", toString$8, { unsafe: true });
|
|
15125
16090
|
}
|
|
@@ -15201,7 +16166,7 @@ var lengthOfArrayLike$5 = function(obj) {
|
|
|
15201
16166
|
return toLength$2(obj.length);
|
|
15202
16167
|
};
|
|
15203
16168
|
var classof$7 = classofRaw$1;
|
|
15204
|
-
var isArray$
|
|
16169
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
15205
16170
|
return classof$7(argument) == "Array";
|
|
15206
16171
|
};
|
|
15207
16172
|
var uncurryThis$h = functionUncurryThis;
|
|
@@ -15249,19 +16214,19 @@ var isConstructor$1 = !construct || fails$g(function() {
|
|
|
15249
16214
|
called = true;
|
|
15250
16215
|
}) || called;
|
|
15251
16216
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
15252
|
-
var isArray$
|
|
16217
|
+
var isArray$1 = isArray$2;
|
|
15253
16218
|
var isConstructor3 = isConstructor$1;
|
|
15254
|
-
var isObject$
|
|
16219
|
+
var isObject$9 = isObject$f;
|
|
15255
16220
|
var wellKnownSymbol$b = wellKnownSymbol$f;
|
|
15256
16221
|
var SPECIES$2 = wellKnownSymbol$b("species");
|
|
15257
16222
|
var $Array$1 = Array;
|
|
15258
16223
|
var arraySpeciesConstructor$1 = function(originalArray) {
|
|
15259
16224
|
var C;
|
|
15260
|
-
if (isArray$
|
|
16225
|
+
if (isArray$1(originalArray)) {
|
|
15261
16226
|
C = originalArray.constructor;
|
|
15262
|
-
if (isConstructor3(C) && (C === $Array$1 || isArray$
|
|
16227
|
+
if (isConstructor3(C) && (C === $Array$1 || isArray$1(C.prototype)))
|
|
15263
16228
|
C = void 0;
|
|
15264
|
-
else if (isObject$
|
|
16229
|
+
else if (isObject$9(C)) {
|
|
15265
16230
|
C = C[SPECIES$2];
|
|
15266
16231
|
if (C === null)
|
|
15267
16232
|
C = void 0;
|
|
@@ -15378,7 +16343,7 @@ var objectPropertyIsEnumerable = {};
|
|
|
15378
16343
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
15379
16344
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
15380
16345
|
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
15381
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function
|
|
16346
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable2(V) {
|
|
15382
16347
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
|
15383
16348
|
return !!descriptor && descriptor.enumerable;
|
|
15384
16349
|
} : $propertyIsEnumerable;
|
|
@@ -15595,8 +16560,8 @@ var toString$5 = toString$7;
|
|
|
15595
16560
|
var trim = stringTrim.trim;
|
|
15596
16561
|
var whitespaces = whitespaces$2;
|
|
15597
16562
|
var $parseInt$1 = global$9.parseInt;
|
|
15598
|
-
var Symbol$
|
|
15599
|
-
var ITERATOR$6 = Symbol$
|
|
16563
|
+
var Symbol$2 = global$9.Symbol;
|
|
16564
|
+
var ITERATOR$6 = Symbol$2 && Symbol$2.iterator;
|
|
15600
16565
|
var hex = /^[+-]?0x/i;
|
|
15601
16566
|
var exec$1 = uncurryThis$c(hex.exec);
|
|
15602
16567
|
var FORCED = $parseInt$1(whitespaces + "08") !== 8 || $parseInt$1(whitespaces + "0x16") !== 22 || ITERATOR$6 && !fails$d(function() {
|
|
@@ -15613,7 +16578,7 @@ $$7({ global: true, forced: parseInt != $parseInt }, {
|
|
|
15613
16578
|
});
|
|
15614
16579
|
var internalObjectKeys = objectKeysInternal;
|
|
15615
16580
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
15616
|
-
var objectKeys$2 = Object.keys || function
|
|
16581
|
+
var objectKeys$2 = Object.keys || function keys2(O) {
|
|
15617
16582
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
15618
16583
|
};
|
|
15619
16584
|
var DESCRIPTORS$3 = descriptors;
|
|
@@ -16152,7 +17117,7 @@ var arrayBufferNonExtensible = fails$8(function() {
|
|
|
16152
17117
|
}
|
|
16153
17118
|
});
|
|
16154
17119
|
var fails$7 = fails$o;
|
|
16155
|
-
var isObject$
|
|
17120
|
+
var isObject$8 = isObject$f;
|
|
16156
17121
|
var classof$3 = classofRaw$1;
|
|
16157
17122
|
var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
|
|
16158
17123
|
var $isExtensible = Object.isExtensible;
|
|
@@ -16160,7 +17125,7 @@ var FAILS_ON_PRIMITIVES = fails$7(function() {
|
|
|
16160
17125
|
$isExtensible(1);
|
|
16161
17126
|
});
|
|
16162
17127
|
var objectIsExtensible = FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it) {
|
|
16163
|
-
if (!isObject$
|
|
17128
|
+
if (!isObject$8(it))
|
|
16164
17129
|
return false;
|
|
16165
17130
|
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$3(it) == "ArrayBuffer")
|
|
16166
17131
|
return false;
|
|
@@ -16173,7 +17138,7 @@ var freezing = !fails$6(function() {
|
|
|
16173
17138
|
var $$3 = _export;
|
|
16174
17139
|
var uncurryThis$8 = functionUncurryThis;
|
|
16175
17140
|
var hiddenKeys = hiddenKeys$5;
|
|
16176
|
-
var isObject$
|
|
17141
|
+
var isObject$7 = isObject$f;
|
|
16177
17142
|
var hasOwn$1 = hasOwnProperty_1;
|
|
16178
17143
|
var defineProperty$1 = objectDefineProperty.f;
|
|
16179
17144
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
@@ -16191,7 +17156,7 @@ var setMetadata = function(it) {
|
|
|
16191
17156
|
} });
|
|
16192
17157
|
};
|
|
16193
17158
|
var fastKey = function(it, create3) {
|
|
16194
|
-
if (!isObject$
|
|
17159
|
+
if (!isObject$7(it))
|
|
16195
17160
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
16196
17161
|
if (!hasOwn$1(it, METADATA)) {
|
|
16197
17162
|
if (!isExtensible$1(it))
|
|
@@ -16411,11 +17376,11 @@ var checkCorrectnessOfIteration$1 = function(exec2, SKIP_CLOSING) {
|
|
|
16411
17376
|
return ITERATION_SUPPORT;
|
|
16412
17377
|
};
|
|
16413
17378
|
var isCallable$3 = isCallable$k;
|
|
16414
|
-
var isObject$
|
|
17379
|
+
var isObject$6 = isObject$f;
|
|
16415
17380
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
16416
17381
|
var inheritIfRequired$1 = function($this, dummy, Wrapper) {
|
|
16417
17382
|
var NewTarget, NewTargetPrototype;
|
|
16418
|
-
if (setPrototypeOf && isCallable$3(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$
|
|
17383
|
+
if (setPrototypeOf && isCallable$3(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$6(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype)
|
|
16419
17384
|
setPrototypeOf($this, NewTargetPrototype);
|
|
16420
17385
|
return $this;
|
|
16421
17386
|
};
|
|
@@ -16428,7 +17393,7 @@ var InternalMetadataModule$1 = internalMetadata.exports;
|
|
|
16428
17393
|
var iterate$1 = iterate$2;
|
|
16429
17394
|
var anInstance$1 = anInstance$2;
|
|
16430
17395
|
var isCallable$2 = isCallable$k;
|
|
16431
|
-
var isObject$
|
|
17396
|
+
var isObject$5 = isObject$f;
|
|
16432
17397
|
var fails$5 = fails$o;
|
|
16433
17398
|
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
16434
17399
|
var setToStringTag = setToStringTag$3;
|
|
@@ -16450,11 +17415,11 @@ var collection$1 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
16450
17415
|
uncurriedNativeMethod(this, value === 0 ? 0 : value);
|
|
16451
17416
|
return this;
|
|
16452
17417
|
} : KEY == "delete" ? function(key) {
|
|
16453
|
-
return IS_WEAK && !isObject$
|
|
17418
|
+
return IS_WEAK && !isObject$5(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
16454
17419
|
} : KEY == "get" ? function get4(key) {
|
|
16455
|
-
return IS_WEAK && !isObject$
|
|
17420
|
+
return IS_WEAK && !isObject$5(key) ? void 0 : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
16456
17421
|
} : KEY == "has" ? function has2(key) {
|
|
16457
|
-
return IS_WEAK && !isObject$
|
|
17422
|
+
return IS_WEAK && !isObject$5(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
|
|
16458
17423
|
} : function set2(key, value) {
|
|
16459
17424
|
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
|
|
16460
17425
|
return this;
|
|
@@ -16518,7 +17483,7 @@ var uncurryThis$6 = functionUncurryThis;
|
|
|
16518
17483
|
var defineBuiltIns$1 = defineBuiltIns$2;
|
|
16519
17484
|
var getWeakData = internalMetadata.exports.getWeakData;
|
|
16520
17485
|
var anObject$4 = anObject$d;
|
|
16521
|
-
var isObject$
|
|
17486
|
+
var isObject$4 = isObject$f;
|
|
16522
17487
|
var anInstance = anInstance$2;
|
|
16523
17488
|
var iterate = iterate$2;
|
|
16524
17489
|
var ArrayIterationModule = arrayIteration;
|
|
@@ -16528,7 +17493,7 @@ var setInternalState = InternalStateModule.set;
|
|
|
16528
17493
|
var internalStateGetterFor = InternalStateModule.getterFor;
|
|
16529
17494
|
var find$1 = ArrayIterationModule.find;
|
|
16530
17495
|
var findIndex = ArrayIterationModule.findIndex;
|
|
16531
|
-
var splice$
|
|
17496
|
+
var splice$1 = uncurryThis$6([].splice);
|
|
16532
17497
|
var id = 0;
|
|
16533
17498
|
var uncaughtFrozenStore = function(store) {
|
|
16534
17499
|
return store.frozen || (store.frozen = new UncaughtFrozenStore());
|
|
@@ -16562,7 +17527,7 @@ UncaughtFrozenStore.prototype = {
|
|
|
16562
17527
|
return it[0] === key;
|
|
16563
17528
|
});
|
|
16564
17529
|
if (~index)
|
|
16565
|
-
splice$
|
|
17530
|
+
splice$1(this.entries, index, 1);
|
|
16566
17531
|
return !!~index;
|
|
16567
17532
|
}
|
|
16568
17533
|
};
|
|
@@ -16592,7 +17557,7 @@ var collectionWeak$1 = {
|
|
|
16592
17557
|
defineBuiltIns$1(Prototype, {
|
|
16593
17558
|
"delete": function(key) {
|
|
16594
17559
|
var state = getInternalState2(this);
|
|
16595
|
-
if (!isObject$
|
|
17560
|
+
if (!isObject$4(key))
|
|
16596
17561
|
return false;
|
|
16597
17562
|
var data2 = getWeakData(key);
|
|
16598
17563
|
if (data2 === true)
|
|
@@ -16601,7 +17566,7 @@ var collectionWeak$1 = {
|
|
|
16601
17566
|
},
|
|
16602
17567
|
has: function has2(key) {
|
|
16603
17568
|
var state = getInternalState2(this);
|
|
16604
|
-
if (!isObject$
|
|
17569
|
+
if (!isObject$4(key))
|
|
16605
17570
|
return false;
|
|
16606
17571
|
var data2 = getWeakData(key);
|
|
16607
17572
|
if (data2 === true)
|
|
@@ -16612,7 +17577,7 @@ var collectionWeak$1 = {
|
|
|
16612
17577
|
defineBuiltIns$1(Prototype, IS_MAP ? {
|
|
16613
17578
|
get: function get4(key) {
|
|
16614
17579
|
var state = getInternalState2(this);
|
|
16615
|
-
if (isObject$
|
|
17580
|
+
if (isObject$4(key)) {
|
|
16616
17581
|
var data2 = getWeakData(key);
|
|
16617
17582
|
if (data2 === true)
|
|
16618
17583
|
return uncaughtFrozenStore(state).get(key);
|
|
@@ -16636,7 +17601,7 @@ var defineBuiltIns = defineBuiltIns$2;
|
|
|
16636
17601
|
var InternalMetadataModule = internalMetadata.exports;
|
|
16637
17602
|
var collection = collection$1;
|
|
16638
17603
|
var collectionWeak = collectionWeak$1;
|
|
16639
|
-
var isObject$
|
|
17604
|
+
var isObject$3 = isObject$f;
|
|
16640
17605
|
var isExtensible2 = objectIsExtensible;
|
|
16641
17606
|
var enforceInternalState = internalState.enforce;
|
|
16642
17607
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
@@ -16658,7 +17623,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
|
16658
17623
|
var nativeSet = uncurryThis$5(WeakMapPrototype.set);
|
|
16659
17624
|
defineBuiltIns(WeakMapPrototype, {
|
|
16660
17625
|
"delete": function(key) {
|
|
16661
|
-
if (isObject$
|
|
17626
|
+
if (isObject$3(key) && !isExtensible2(key)) {
|
|
16662
17627
|
var state = enforceInternalState(this);
|
|
16663
17628
|
if (!state.frozen)
|
|
16664
17629
|
state.frozen = new InternalWeakMap();
|
|
@@ -16667,7 +17632,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
|
16667
17632
|
return nativeDelete(this, key);
|
|
16668
17633
|
},
|
|
16669
17634
|
has: function has2(key) {
|
|
16670
|
-
if (isObject$
|
|
17635
|
+
if (isObject$3(key) && !isExtensible2(key)) {
|
|
16671
17636
|
var state = enforceInternalState(this);
|
|
16672
17637
|
if (!state.frozen)
|
|
16673
17638
|
state.frozen = new InternalWeakMap();
|
|
@@ -16676,7 +17641,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
|
16676
17641
|
return nativeHas(this, key);
|
|
16677
17642
|
},
|
|
16678
17643
|
get: function get4(key) {
|
|
16679
|
-
if (isObject$
|
|
17644
|
+
if (isObject$3(key) && !isExtensible2(key)) {
|
|
16680
17645
|
var state = enforceInternalState(this);
|
|
16681
17646
|
if (!state.frozen)
|
|
16682
17647
|
state.frozen = new InternalWeakMap();
|
|
@@ -16685,7 +17650,7 @@ if (NATIVE_WEAK_MAP && IS_IE11) {
|
|
|
16685
17650
|
return nativeGet(this, key);
|
|
16686
17651
|
},
|
|
16687
17652
|
set: function set2(key, value) {
|
|
16688
|
-
if (isObject$
|
|
17653
|
+
if (isObject$3(key) && !isExtensible2(key)) {
|
|
16689
17654
|
var state = enforceInternalState(this);
|
|
16690
17655
|
if (!state.frozen)
|
|
16691
17656
|
state.frozen = new InternalWeakMap();
|
|
@@ -16739,14 +17704,14 @@ var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
|
|
|
16739
17704
|
var reIsBinary$1 = /^0b[01]+$/i;
|
|
16740
17705
|
var reIsOctal$1 = /^0o[0-7]+$/i;
|
|
16741
17706
|
var freeParseInt$1 = parseInt;
|
|
16742
|
-
var freeGlobal$
|
|
16743
|
-
var freeSelf$
|
|
16744
|
-
var root$
|
|
16745
|
-
var objectProto$
|
|
16746
|
-
var objectToString$
|
|
17707
|
+
var freeGlobal$2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
17708
|
+
var freeSelf$2 = typeof self == "object" && self && self.Object === Object && self;
|
|
17709
|
+
var root$2 = freeGlobal$2 || freeSelf$2 || Function("return this")();
|
|
17710
|
+
var objectProto$4 = Object.prototype;
|
|
17711
|
+
var objectToString$2 = objectProto$4.toString;
|
|
16747
17712
|
var nativeMax$1 = Math.max, nativeMin$1 = Math.min;
|
|
16748
17713
|
var now$1 = function() {
|
|
16749
|
-
return root$
|
|
17714
|
+
return root$2.Date.now();
|
|
16750
17715
|
};
|
|
16751
17716
|
function debounce$1(func, wait, options) {
|
|
16752
17717
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
@@ -16754,7 +17719,7 @@ function debounce$1(func, wait, options) {
|
|
|
16754
17719
|
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
16755
17720
|
}
|
|
16756
17721
|
wait = toNumber$1(wait) || 0;
|
|
16757
|
-
if (isObject$
|
|
17722
|
+
if (isObject$2(options)) {
|
|
16758
17723
|
leading = !!options.leading;
|
|
16759
17724
|
maxing = "maxWait" in options;
|
|
16760
17725
|
maxWait = maxing ? nativeMax$1(toNumber$1(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -16833,7 +17798,7 @@ function throttle(func, wait, options) {
|
|
|
16833
17798
|
if (typeof func != "function") {
|
|
16834
17799
|
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
16835
17800
|
}
|
|
16836
|
-
if (isObject$
|
|
17801
|
+
if (isObject$2(options)) {
|
|
16837
17802
|
leading = "leading" in options ? !!options.leading : leading;
|
|
16838
17803
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
16839
17804
|
}
|
|
@@ -16843,15 +17808,15 @@ function throttle(func, wait, options) {
|
|
|
16843
17808
|
"trailing": trailing
|
|
16844
17809
|
});
|
|
16845
17810
|
}
|
|
16846
|
-
function isObject$
|
|
17811
|
+
function isObject$2(value) {
|
|
16847
17812
|
var type = typeof value;
|
|
16848
17813
|
return !!value && (type == "object" || type == "function");
|
|
16849
17814
|
}
|
|
16850
|
-
function isObjectLike$
|
|
17815
|
+
function isObjectLike$2(value) {
|
|
16851
17816
|
return !!value && typeof value == "object";
|
|
16852
17817
|
}
|
|
16853
17818
|
function isSymbol$1(value) {
|
|
16854
|
-
return typeof value == "symbol" || isObjectLike$
|
|
17819
|
+
return typeof value == "symbol" || isObjectLike$2(value) && objectToString$2.call(value) == symbolTag$2;
|
|
16855
17820
|
}
|
|
16856
17821
|
function toNumber$1(value) {
|
|
16857
17822
|
if (typeof value == "number") {
|
|
@@ -16860,9 +17825,9 @@ function toNumber$1(value) {
|
|
|
16860
17825
|
if (isSymbol$1(value)) {
|
|
16861
17826
|
return NAN$1;
|
|
16862
17827
|
}
|
|
16863
|
-
if (isObject$
|
|
17828
|
+
if (isObject$2(value)) {
|
|
16864
17829
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
16865
|
-
value = isObject$
|
|
17830
|
+
value = isObject$2(other) ? other + "" : other;
|
|
16866
17831
|
}
|
|
16867
17832
|
if (typeof value != "string") {
|
|
16868
17833
|
return value === 0 ? value : +value;
|
|
@@ -16880,14 +17845,14 @@ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
|
16880
17845
|
var reIsBinary = /^0b[01]+$/i;
|
|
16881
17846
|
var reIsOctal = /^0o[0-7]+$/i;
|
|
16882
17847
|
var freeParseInt = parseInt;
|
|
16883
|
-
var freeGlobal$
|
|
16884
|
-
var freeSelf$
|
|
16885
|
-
var root$
|
|
16886
|
-
var objectProto$
|
|
16887
|
-
var objectToString$
|
|
17848
|
+
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
17849
|
+
var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
|
|
17850
|
+
var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
|
|
17851
|
+
var objectProto$3 = Object.prototype;
|
|
17852
|
+
var objectToString$1 = objectProto$3.toString;
|
|
16888
17853
|
var nativeMax = Math.max, nativeMin = Math.min;
|
|
16889
17854
|
var now = function() {
|
|
16890
|
-
return root$
|
|
17855
|
+
return root$1.Date.now();
|
|
16891
17856
|
};
|
|
16892
17857
|
function debounce(func, wait, options) {
|
|
16893
17858
|
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
|
@@ -16895,7 +17860,7 @@ function debounce(func, wait, options) {
|
|
|
16895
17860
|
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
16896
17861
|
}
|
|
16897
17862
|
wait = toNumber(wait) || 0;
|
|
16898
|
-
if (isObject$
|
|
17863
|
+
if (isObject$1(options)) {
|
|
16899
17864
|
leading = !!options.leading;
|
|
16900
17865
|
maxing = "maxWait" in options;
|
|
16901
17866
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -16969,15 +17934,15 @@ function debounce(func, wait, options) {
|
|
|
16969
17934
|
debounced.flush = flush;
|
|
16970
17935
|
return debounced;
|
|
16971
17936
|
}
|
|
16972
|
-
function isObject$
|
|
17937
|
+
function isObject$1(value) {
|
|
16973
17938
|
var type = typeof value;
|
|
16974
17939
|
return !!value && (type == "object" || type == "function");
|
|
16975
17940
|
}
|
|
16976
|
-
function isObjectLike$
|
|
17941
|
+
function isObjectLike$1(value) {
|
|
16977
17942
|
return !!value && typeof value == "object";
|
|
16978
17943
|
}
|
|
16979
17944
|
function isSymbol(value) {
|
|
16980
|
-
return typeof value == "symbol" || isObjectLike$
|
|
17945
|
+
return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
|
|
16981
17946
|
}
|
|
16982
17947
|
function toNumber(value) {
|
|
16983
17948
|
if (typeof value == "number") {
|
|
@@ -16986,9 +17951,9 @@ function toNumber(value) {
|
|
|
16986
17951
|
if (isSymbol(value)) {
|
|
16987
17952
|
return NAN;
|
|
16988
17953
|
}
|
|
16989
|
-
if (isObject$
|
|
17954
|
+
if (isObject$1(value)) {
|
|
16990
17955
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
16991
|
-
value = isObject$
|
|
17956
|
+
value = isObject$1(other) ? other + "" : other;
|
|
16992
17957
|
}
|
|
16993
17958
|
if (typeof value != "string") {
|
|
16994
17959
|
return value === 0 ? value : +value;
|
|
@@ -16999,14 +17964,14 @@ function toNumber(value) {
|
|
|
16999
17964
|
}
|
|
17000
17965
|
var lodash_debounce = debounce;
|
|
17001
17966
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
17002
|
-
var HASH_UNDEFINED$
|
|
17003
|
-
var funcTag
|
|
17004
|
-
var reRegExpChar
|
|
17005
|
-
var reIsHostCtor
|
|
17006
|
-
var freeGlobal
|
|
17007
|
-
var freeSelf
|
|
17008
|
-
var root
|
|
17009
|
-
function getValue
|
|
17967
|
+
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
17968
|
+
var funcTag = "[object Function]", genTag = "[object GeneratorFunction]";
|
|
17969
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
17970
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
17971
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
17972
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
17973
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
17974
|
+
function getValue(object, key) {
|
|
17010
17975
|
return object == null ? void 0 : object[key];
|
|
17011
17976
|
}
|
|
17012
17977
|
function isHostObject(value) {
|
|
@@ -17019,21 +17984,21 @@ function isHostObject(value) {
|
|
|
17019
17984
|
}
|
|
17020
17985
|
return result;
|
|
17021
17986
|
}
|
|
17022
|
-
var arrayProto
|
|
17023
|
-
var coreJsData
|
|
17024
|
-
var maskSrcKey
|
|
17025
|
-
var uid2 = /[^.]+$/.exec(coreJsData
|
|
17987
|
+
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto$2 = Object.prototype;
|
|
17988
|
+
var coreJsData = root["__core-js_shared__"];
|
|
17989
|
+
var maskSrcKey = function() {
|
|
17990
|
+
var uid2 = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
17026
17991
|
return uid2 ? "Symbol(src)_1." + uid2 : "";
|
|
17027
17992
|
}();
|
|
17028
|
-
var funcToString
|
|
17029
|
-
var hasOwnProperty$
|
|
17030
|
-
var objectToString
|
|
17031
|
-
var reIsNative
|
|
17032
|
-
"^" + funcToString
|
|
17993
|
+
var funcToString = funcProto.toString;
|
|
17994
|
+
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
17995
|
+
var objectToString = objectProto$2.toString;
|
|
17996
|
+
var reIsNative = RegExp(
|
|
17997
|
+
"^" + funcToString.call(hasOwnProperty$2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
17033
17998
|
);
|
|
17034
|
-
var splice
|
|
17035
|
-
var Map$
|
|
17036
|
-
function Hash
|
|
17999
|
+
var splice = arrayProto.splice;
|
|
18000
|
+
var Map$1 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
|
|
18001
|
+
function Hash(entries) {
|
|
17037
18002
|
var index = -1, length = entries ? entries.length : 0;
|
|
17038
18003
|
this.clear();
|
|
17039
18004
|
while (++index < length) {
|
|
@@ -17041,35 +18006,35 @@ function Hash$2(entries) {
|
|
|
17041
18006
|
this.set(entry[0], entry[1]);
|
|
17042
18007
|
}
|
|
17043
18008
|
}
|
|
17044
|
-
function hashClear
|
|
17045
|
-
this.__data__ = nativeCreate
|
|
18009
|
+
function hashClear() {
|
|
18010
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
17046
18011
|
}
|
|
17047
|
-
function hashDelete
|
|
18012
|
+
function hashDelete(key) {
|
|
17048
18013
|
return this.has(key) && delete this.__data__[key];
|
|
17049
18014
|
}
|
|
17050
|
-
function hashGet
|
|
18015
|
+
function hashGet(key) {
|
|
17051
18016
|
var data2 = this.__data__;
|
|
17052
|
-
if (nativeCreate
|
|
18017
|
+
if (nativeCreate) {
|
|
17053
18018
|
var result = data2[key];
|
|
17054
|
-
return result === HASH_UNDEFINED$
|
|
18019
|
+
return result === HASH_UNDEFINED$1 ? void 0 : result;
|
|
17055
18020
|
}
|
|
17056
|
-
return hasOwnProperty$
|
|
18021
|
+
return hasOwnProperty$2.call(data2, key) ? data2[key] : void 0;
|
|
17057
18022
|
}
|
|
17058
|
-
function hashHas
|
|
18023
|
+
function hashHas(key) {
|
|
17059
18024
|
var data2 = this.__data__;
|
|
17060
|
-
return nativeCreate
|
|
18025
|
+
return nativeCreate ? data2[key] !== void 0 : hasOwnProperty$2.call(data2, key);
|
|
17061
18026
|
}
|
|
17062
|
-
function hashSet
|
|
18027
|
+
function hashSet(key, value) {
|
|
17063
18028
|
var data2 = this.__data__;
|
|
17064
|
-
data2[key] = nativeCreate
|
|
18029
|
+
data2[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
17065
18030
|
return this;
|
|
17066
18031
|
}
|
|
17067
|
-
Hash
|
|
17068
|
-
Hash
|
|
17069
|
-
Hash
|
|
17070
|
-
Hash
|
|
17071
|
-
Hash
|
|
17072
|
-
function ListCache
|
|
18032
|
+
Hash.prototype.clear = hashClear;
|
|
18033
|
+
Hash.prototype["delete"] = hashDelete;
|
|
18034
|
+
Hash.prototype.get = hashGet;
|
|
18035
|
+
Hash.prototype.has = hashHas;
|
|
18036
|
+
Hash.prototype.set = hashSet;
|
|
18037
|
+
function ListCache(entries) {
|
|
17073
18038
|
var index = -1, length = entries ? entries.length : 0;
|
|
17074
18039
|
this.clear();
|
|
17075
18040
|
while (++index < length) {
|
|
@@ -17077,11 +18042,11 @@ function ListCache$5(entries) {
|
|
|
17077
18042
|
this.set(entry[0], entry[1]);
|
|
17078
18043
|
}
|
|
17079
18044
|
}
|
|
17080
|
-
function listCacheClear
|
|
18045
|
+
function listCacheClear() {
|
|
17081
18046
|
this.__data__ = [];
|
|
17082
18047
|
}
|
|
17083
|
-
function listCacheDelete
|
|
17084
|
-
var data2 = this.__data__, index = assocIndexOf
|
|
18048
|
+
function listCacheDelete(key) {
|
|
18049
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
17085
18050
|
if (index < 0) {
|
|
17086
18051
|
return false;
|
|
17087
18052
|
}
|
|
@@ -17089,19 +18054,19 @@ function listCacheDelete$2(key) {
|
|
|
17089
18054
|
if (index == lastIndex) {
|
|
17090
18055
|
data2.pop();
|
|
17091
18056
|
} else {
|
|
17092
|
-
splice
|
|
18057
|
+
splice.call(data2, index, 1);
|
|
17093
18058
|
}
|
|
17094
18059
|
return true;
|
|
17095
18060
|
}
|
|
17096
|
-
function listCacheGet
|
|
17097
|
-
var data2 = this.__data__, index = assocIndexOf
|
|
18061
|
+
function listCacheGet(key) {
|
|
18062
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
17098
18063
|
return index < 0 ? void 0 : data2[index][1];
|
|
17099
18064
|
}
|
|
17100
|
-
function listCacheHas
|
|
17101
|
-
return assocIndexOf
|
|
18065
|
+
function listCacheHas(key) {
|
|
18066
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
17102
18067
|
}
|
|
17103
|
-
function listCacheSet
|
|
17104
|
-
var data2 = this.__data__, index = assocIndexOf
|
|
18068
|
+
function listCacheSet(key, value) {
|
|
18069
|
+
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
17105
18070
|
if (index < 0) {
|
|
17106
18071
|
data2.push([key, value]);
|
|
17107
18072
|
} else {
|
|
@@ -17109,12 +18074,12 @@ function listCacheSet$2(key, value) {
|
|
|
17109
18074
|
}
|
|
17110
18075
|
return this;
|
|
17111
18076
|
}
|
|
17112
|
-
ListCache
|
|
17113
|
-
ListCache
|
|
17114
|
-
ListCache
|
|
17115
|
-
ListCache
|
|
17116
|
-
ListCache
|
|
17117
|
-
function MapCache$
|
|
18077
|
+
ListCache.prototype.clear = listCacheClear;
|
|
18078
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
18079
|
+
ListCache.prototype.get = listCacheGet;
|
|
18080
|
+
ListCache.prototype.has = listCacheHas;
|
|
18081
|
+
ListCache.prototype.set = listCacheSet;
|
|
18082
|
+
function MapCache$1(entries) {
|
|
17118
18083
|
var index = -1, length = entries ? entries.length : 0;
|
|
17119
18084
|
this.clear();
|
|
17120
18085
|
while (++index < length) {
|
|
@@ -17122,66 +18087,66 @@ function MapCache$3(entries) {
|
|
|
17122
18087
|
this.set(entry[0], entry[1]);
|
|
17123
18088
|
}
|
|
17124
18089
|
}
|
|
17125
|
-
function mapCacheClear
|
|
18090
|
+
function mapCacheClear() {
|
|
17126
18091
|
this.__data__ = {
|
|
17127
|
-
"hash": new Hash
|
|
17128
|
-
"map": new (Map$
|
|
17129
|
-
"string": new Hash
|
|
18092
|
+
"hash": new Hash(),
|
|
18093
|
+
"map": new (Map$1 || ListCache)(),
|
|
18094
|
+
"string": new Hash()
|
|
17130
18095
|
};
|
|
17131
18096
|
}
|
|
17132
|
-
function mapCacheDelete
|
|
17133
|
-
return getMapData
|
|
18097
|
+
function mapCacheDelete(key) {
|
|
18098
|
+
return getMapData(this, key)["delete"](key);
|
|
17134
18099
|
}
|
|
17135
|
-
function mapCacheGet
|
|
17136
|
-
return getMapData
|
|
18100
|
+
function mapCacheGet(key) {
|
|
18101
|
+
return getMapData(this, key).get(key);
|
|
17137
18102
|
}
|
|
17138
|
-
function mapCacheHas
|
|
17139
|
-
return getMapData
|
|
18103
|
+
function mapCacheHas(key) {
|
|
18104
|
+
return getMapData(this, key).has(key);
|
|
17140
18105
|
}
|
|
17141
|
-
function mapCacheSet
|
|
17142
|
-
getMapData
|
|
18106
|
+
function mapCacheSet(key, value) {
|
|
18107
|
+
getMapData(this, key).set(key, value);
|
|
17143
18108
|
return this;
|
|
17144
18109
|
}
|
|
17145
|
-
MapCache$
|
|
17146
|
-
MapCache$
|
|
17147
|
-
MapCache$
|
|
17148
|
-
MapCache$
|
|
17149
|
-
MapCache$
|
|
17150
|
-
function assocIndexOf
|
|
18110
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
18111
|
+
MapCache$1.prototype["delete"] = mapCacheDelete;
|
|
18112
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
18113
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
18114
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
18115
|
+
function assocIndexOf(array, key) {
|
|
17151
18116
|
var length = array.length;
|
|
17152
18117
|
while (length--) {
|
|
17153
|
-
if (eq$
|
|
18118
|
+
if (eq$1(array[length][0], key)) {
|
|
17154
18119
|
return length;
|
|
17155
18120
|
}
|
|
17156
18121
|
}
|
|
17157
18122
|
return -1;
|
|
17158
18123
|
}
|
|
17159
|
-
function baseIsNative
|
|
17160
|
-
if (!isObject
|
|
18124
|
+
function baseIsNative(value) {
|
|
18125
|
+
if (!isObject(value) || isMasked(value)) {
|
|
17161
18126
|
return false;
|
|
17162
18127
|
}
|
|
17163
|
-
var pattern = isFunction
|
|
17164
|
-
return pattern.test(toSource
|
|
18128
|
+
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
18129
|
+
return pattern.test(toSource(value));
|
|
17165
18130
|
}
|
|
17166
|
-
function getMapData
|
|
18131
|
+
function getMapData(map2, key) {
|
|
17167
18132
|
var data2 = map2.__data__;
|
|
17168
|
-
return isKeyable
|
|
18133
|
+
return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
|
|
17169
18134
|
}
|
|
17170
|
-
function getNative
|
|
17171
|
-
var value = getValue
|
|
17172
|
-
return baseIsNative
|
|
18135
|
+
function getNative(object, key) {
|
|
18136
|
+
var value = getValue(object, key);
|
|
18137
|
+
return baseIsNative(value) ? value : void 0;
|
|
17173
18138
|
}
|
|
17174
|
-
function isKeyable
|
|
18139
|
+
function isKeyable(value) {
|
|
17175
18140
|
var type = typeof value;
|
|
17176
18141
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
17177
18142
|
}
|
|
17178
|
-
function isMasked
|
|
17179
|
-
return !!maskSrcKey
|
|
18143
|
+
function isMasked(func) {
|
|
18144
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
17180
18145
|
}
|
|
17181
|
-
function toSource
|
|
18146
|
+
function toSource(func) {
|
|
17182
18147
|
if (func != null) {
|
|
17183
18148
|
try {
|
|
17184
|
-
return funcToString
|
|
18149
|
+
return funcToString.call(func);
|
|
17185
18150
|
} catch (e) {
|
|
17186
18151
|
}
|
|
17187
18152
|
try {
|
|
@@ -17204,18 +18169,18 @@ function memoize(func, resolver) {
|
|
|
17204
18169
|
memoized.cache = cache2.set(key, result);
|
|
17205
18170
|
return result;
|
|
17206
18171
|
};
|
|
17207
|
-
memoized.cache = new (memoize.Cache || MapCache$
|
|
18172
|
+
memoized.cache = new (memoize.Cache || MapCache$1)();
|
|
17208
18173
|
return memoized;
|
|
17209
18174
|
}
|
|
17210
|
-
memoize.Cache = MapCache$
|
|
17211
|
-
function eq$
|
|
18175
|
+
memoize.Cache = MapCache$1;
|
|
18176
|
+
function eq$1(value, other) {
|
|
17212
18177
|
return value === other || value !== value && other !== other;
|
|
17213
18178
|
}
|
|
17214
|
-
function isFunction
|
|
17215
|
-
var tag = isObject
|
|
17216
|
-
return tag == funcTag
|
|
18179
|
+
function isFunction(value) {
|
|
18180
|
+
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
18181
|
+
return tag == funcTag || tag == genTag;
|
|
17217
18182
|
}
|
|
17218
|
-
function isObject
|
|
18183
|
+
function isObject(value) {
|
|
17219
18184
|
var type = typeof value;
|
|
17220
18185
|
return !!value && (type == "object" || type == "function");
|
|
17221
18186
|
}
|
|
@@ -19545,18 +20510,22 @@ const _HtmlNormalizer = class extends BaseNormalizer {
|
|
|
19545
20510
|
__privateAdd(this, _NodeFilter);
|
|
19546
20511
|
__privateAdd(this, _Node);
|
|
19547
20512
|
__privateAdd(this, _removeComments);
|
|
20513
|
+
__privateAdd(this, _normalizeRootTags);
|
|
19548
20514
|
__privateAdd(this, _createNodeIterator);
|
|
19549
20515
|
__privateAdd(this, _iterateNodes);
|
|
19550
20516
|
__privateAdd(this, _runIterator);
|
|
19551
20517
|
__privateAdd(this, _removeEmptyNodes);
|
|
19552
20518
|
__privateAdd(this, _normalizeListItems);
|
|
19553
20519
|
__privateAdd(this, _isBlockNode);
|
|
20520
|
+
__privateAdd(this, _isRootNode);
|
|
19554
20521
|
__privateAdd(this, _assignElementProperties);
|
|
19555
20522
|
__privateAdd(this, _removeStyleProperties);
|
|
19556
20523
|
__privateAdd(this, _normalizeBreakLines);
|
|
19557
20524
|
__privateAdd(this, _normalizeBlockTextDecoration);
|
|
19558
20525
|
__privateAdd(this, _moveTextDecorationToChildren);
|
|
19559
20526
|
__privateAdd(this, _parseTextDecoration);
|
|
20527
|
+
__privateAdd(this, _normalizeBlockBackgroundColor);
|
|
20528
|
+
__privateAdd(this, _moveBackgroundColorToChildren);
|
|
19560
20529
|
__privateAdd(this, _wrapTextNode);
|
|
19561
20530
|
__privateAdd(this, _parser, void 0);
|
|
19562
20531
|
__privateSet(this, _parser, parser);
|
|
@@ -19569,10 +20538,12 @@ const _HtmlNormalizer = class extends BaseNormalizer {
|
|
|
19569
20538
|
normalizeHTML() {
|
|
19570
20539
|
this.dom = __privateGet(this, _parser).parse(this.content.replace(/(\r)?\n/g, ""));
|
|
19571
20540
|
__privateMethod(this, _removeComments, removeComments_fn).call(this);
|
|
20541
|
+
__privateMethod(this, _normalizeRootTags, normalizeRootTags_fn).call(this);
|
|
19572
20542
|
__privateMethod(this, _iterateNodes, iterateNodes_fn).call(this, __privateMethod(this, _normalizeBreakLines, normalizeBreakLines_fn), (node) => node.tagName === "BR");
|
|
19573
20543
|
__privateMethod(this, _iterateNodes, iterateNodes_fn).call(this, __privateMethod(this, _removeEmptyNodes, removeEmptyNodes_fn), __privateMethod(this, _isBlockNode, isBlockNode_fn));
|
|
19574
20544
|
__privateMethod(this, _iterateNodes, iterateNodes_fn).call(this, __privateMethod(this, _normalizeListItems, normalizeListItems_fn), (node) => node.tagName === "LI");
|
|
19575
20545
|
__privateMethod(this, _normalizeBlockTextDecoration, normalizeBlockTextDecoration_fn).call(this);
|
|
20546
|
+
__privateMethod(this, _normalizeBlockBackgroundColor, normalizeBlockBackgroundColor_fn).call(this);
|
|
19576
20547
|
}
|
|
19577
20548
|
get normalizedHTML() {
|
|
19578
20549
|
return this.dom.body.innerHTML;
|
|
@@ -19593,6 +20564,26 @@ removeComments_fn = function() {
|
|
|
19593
20564
|
const iterator = __privateMethod(this, _createNodeIterator, createNodeIterator_fn).call(this, __privateGet(this, _NodeFilter, NodeFilter_get).SHOW_COMMENT);
|
|
19594
20565
|
__privateMethod(this, _runIterator, runIterator_fn).call(this, iterator, (node) => node.remove());
|
|
19595
20566
|
};
|
|
20567
|
+
_normalizeRootTags = new WeakSet();
|
|
20568
|
+
normalizeRootTags_fn = function() {
|
|
20569
|
+
const children = Array.from(this.dom.body.childNodes);
|
|
20570
|
+
const fragment = this.dom.createDocumentFragment();
|
|
20571
|
+
let capturingParagraph;
|
|
20572
|
+
for (const node of children) {
|
|
20573
|
+
if (__privateMethod(this, _isRootNode, isRootNode_fn).call(this, node)) {
|
|
20574
|
+
fragment.append(node);
|
|
20575
|
+
capturingParagraph = null;
|
|
20576
|
+
continue;
|
|
20577
|
+
}
|
|
20578
|
+
if (!capturingParagraph) {
|
|
20579
|
+
capturingParagraph = this.dom.createElement("p");
|
|
20580
|
+
fragment.append(capturingParagraph);
|
|
20581
|
+
}
|
|
20582
|
+
capturingParagraph.append(node);
|
|
20583
|
+
}
|
|
20584
|
+
this.dom.body.innerHTML = "";
|
|
20585
|
+
this.dom.body.append(fragment);
|
|
20586
|
+
};
|
|
19596
20587
|
_createNodeIterator = new WeakSet();
|
|
19597
20588
|
createNodeIterator_fn = function(whatToShow, filter2) {
|
|
19598
20589
|
return this.dom.createNodeIterator(this.dom.body, whatToShow, filter2);
|
|
@@ -19622,8 +20613,7 @@ _normalizeListItems = new WeakSet();
|
|
|
19622
20613
|
normalizeListItems_fn = function(itemEl) {
|
|
19623
20614
|
const fragment = this.dom.createDocumentFragment();
|
|
19624
20615
|
const children = Array.from(itemEl.childNodes);
|
|
19625
|
-
let capturingParagraph;
|
|
19626
|
-
let previousNode;
|
|
20616
|
+
let capturingParagraph, previousNode;
|
|
19627
20617
|
const append2 = (node) => {
|
|
19628
20618
|
__privateMethod(this, _assignElementProperties, assignElementProperties_fn).call(this, node, itemEl, _HtmlNormalizer.BLOCK_STYLES);
|
|
19629
20619
|
fragment.append(node);
|
|
@@ -19663,6 +20653,10 @@ _isBlockNode = new WeakSet();
|
|
|
19663
20653
|
isBlockNode_fn = function(node) {
|
|
19664
20654
|
return _HtmlNormalizer.BLOCK_NODE_NAMES.includes(node.tagName);
|
|
19665
20655
|
};
|
|
20656
|
+
_isRootNode = new WeakSet();
|
|
20657
|
+
isRootNode_fn = function(node) {
|
|
20658
|
+
return _HtmlNormalizer.ROOT_NODE_NAMES.includes(node.tagName);
|
|
20659
|
+
};
|
|
19666
20660
|
_assignElementProperties = new WeakSet();
|
|
19667
20661
|
assignElementProperties_fn = function(target, source, properties) {
|
|
19668
20662
|
for (const property of properties) {
|
|
@@ -19734,403 +20728,56 @@ moveTextDecorationToChildren_fn = function(blockEl) {
|
|
|
19734
20728
|
textEl.style.removeProperty("text-decoration");
|
|
19735
20729
|
textEl.style.textDecoration = Object.entries(mergedDecoration).filter(([, value]) => value).map(([name]) => name.replace("_", "-")).join(" ");
|
|
19736
20730
|
}
|
|
19737
|
-
};
|
|
19738
|
-
_parseTextDecoration = new WeakSet();
|
|
19739
|
-
parseTextDecoration_fn = function(element) {
|
|
19740
|
-
const { textDecoration, textDecorationLine } = element.style;
|
|
19741
|
-
const decoration = textDecoration || textDecorationLine || "";
|
|
19742
|
-
return {
|
|
19743
|
-
none: decoration.includes("none"),
|
|
19744
|
-
underline: decoration.includes("underline"),
|
|
19745
|
-
line_through: decoration.includes("line-through")
|
|
19746
|
-
};
|
|
19747
|
-
};
|
|
19748
|
-
_wrapTextNode = new WeakSet();
|
|
19749
|
-
wrapTextNode_fn = function(parent, node) {
|
|
19750
|
-
if (node.nodeType !== __privateGet(this, _Node, Node_get).TEXT_NODE)
|
|
19751
|
-
return node;
|
|
19752
|
-
const span = this.dom.createElement("span");
|
|
19753
|
-
span.append(node.cloneNode());
|
|
19754
|
-
parent.replaceChild(span, node);
|
|
19755
|
-
return span;
|
|
19756
|
-
};
|
|
19757
|
-
__publicField(HtmlNormalizer, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]);
|
|
19758
|
-
__publicField(HtmlNormalizer, "BLOCK_STYLES", [
|
|
19759
|
-
"text-align",
|
|
19760
|
-
"line-height",
|
|
19761
|
-
"margin",
|
|
19762
|
-
"margin-top",
|
|
19763
|
-
"margin-bottom",
|
|
19764
|
-
"margin-left",
|
|
19765
|
-
"margin-right"
|
|
19766
|
-
]);
|
|
19767
|
-
function listCacheClear$1() {
|
|
19768
|
-
this.__data__ = [];
|
|
19769
|
-
this.size = 0;
|
|
19770
|
-
}
|
|
19771
|
-
var _listCacheClear = listCacheClear$1;
|
|
19772
|
-
function eq$2(value, other) {
|
|
19773
|
-
return value === other || value !== value && other !== other;
|
|
19774
|
-
}
|
|
19775
|
-
var eq_1 = eq$2;
|
|
19776
|
-
var eq$1 = eq_1;
|
|
19777
|
-
function assocIndexOf$4(array, key) {
|
|
19778
|
-
var length = array.length;
|
|
19779
|
-
while (length--) {
|
|
19780
|
-
if (eq$1(array[length][0], key)) {
|
|
19781
|
-
return length;
|
|
19782
|
-
}
|
|
19783
|
-
}
|
|
19784
|
-
return -1;
|
|
19785
|
-
}
|
|
19786
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
19787
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
19788
|
-
var arrayProto = Array.prototype;
|
|
19789
|
-
var splice = arrayProto.splice;
|
|
19790
|
-
function listCacheDelete$1(key) {
|
|
19791
|
-
var data2 = this.__data__, index = assocIndexOf$3(data2, key);
|
|
19792
|
-
if (index < 0) {
|
|
19793
|
-
return false;
|
|
19794
|
-
}
|
|
19795
|
-
var lastIndex = data2.length - 1;
|
|
19796
|
-
if (index == lastIndex) {
|
|
19797
|
-
data2.pop();
|
|
19798
|
-
} else {
|
|
19799
|
-
splice.call(data2, index, 1);
|
|
19800
|
-
}
|
|
19801
|
-
--this.size;
|
|
19802
|
-
return true;
|
|
19803
|
-
}
|
|
19804
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
19805
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
19806
|
-
function listCacheGet$1(key) {
|
|
19807
|
-
var data2 = this.__data__, index = assocIndexOf$2(data2, key);
|
|
19808
|
-
return index < 0 ? void 0 : data2[index][1];
|
|
19809
|
-
}
|
|
19810
|
-
var _listCacheGet = listCacheGet$1;
|
|
19811
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
19812
|
-
function listCacheHas$1(key) {
|
|
19813
|
-
return assocIndexOf$1(this.__data__, key) > -1;
|
|
19814
|
-
}
|
|
19815
|
-
var _listCacheHas = listCacheHas$1;
|
|
19816
|
-
var assocIndexOf = _assocIndexOf;
|
|
19817
|
-
function listCacheSet$1(key, value) {
|
|
19818
|
-
var data2 = this.__data__, index = assocIndexOf(data2, key);
|
|
19819
|
-
if (index < 0) {
|
|
19820
|
-
++this.size;
|
|
19821
|
-
data2.push([key, value]);
|
|
19822
|
-
} else {
|
|
19823
|
-
data2[index][1] = value;
|
|
19824
|
-
}
|
|
19825
|
-
return this;
|
|
19826
|
-
}
|
|
19827
|
-
var _listCacheSet = listCacheSet$1;
|
|
19828
|
-
var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
|
19829
|
-
function ListCache$4(entries) {
|
|
19830
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
19831
|
-
this.clear();
|
|
19832
|
-
while (++index < length) {
|
|
19833
|
-
var entry = entries[index];
|
|
19834
|
-
this.set(entry[0], entry[1]);
|
|
19835
|
-
}
|
|
19836
|
-
}
|
|
19837
|
-
ListCache$4.prototype.clear = listCacheClear;
|
|
19838
|
-
ListCache$4.prototype["delete"] = listCacheDelete;
|
|
19839
|
-
ListCache$4.prototype.get = listCacheGet;
|
|
19840
|
-
ListCache$4.prototype.has = listCacheHas;
|
|
19841
|
-
ListCache$4.prototype.set = listCacheSet;
|
|
19842
|
-
var _ListCache = ListCache$4;
|
|
19843
|
-
var ListCache$3 = _ListCache;
|
|
19844
|
-
function stackClear$1() {
|
|
19845
|
-
this.__data__ = new ListCache$3();
|
|
19846
|
-
this.size = 0;
|
|
19847
|
-
}
|
|
19848
|
-
var _stackClear = stackClear$1;
|
|
19849
|
-
function stackDelete$1(key) {
|
|
19850
|
-
var data2 = this.__data__, result = data2["delete"](key);
|
|
19851
|
-
this.size = data2.size;
|
|
19852
|
-
return result;
|
|
19853
|
-
}
|
|
19854
|
-
var _stackDelete = stackDelete$1;
|
|
19855
|
-
function stackGet$1(key) {
|
|
19856
|
-
return this.__data__.get(key);
|
|
19857
|
-
}
|
|
19858
|
-
var _stackGet = stackGet$1;
|
|
19859
|
-
function stackHas$1(key) {
|
|
19860
|
-
return this.__data__.has(key);
|
|
19861
|
-
}
|
|
19862
|
-
var _stackHas = stackHas$1;
|
|
19863
|
-
var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
19864
|
-
var _freeGlobal = freeGlobal$1;
|
|
19865
|
-
var freeGlobal = _freeGlobal;
|
|
19866
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
19867
|
-
var root$8 = freeGlobal || freeSelf || Function("return this")();
|
|
19868
|
-
var _root = root$8;
|
|
19869
|
-
var root$7 = _root;
|
|
19870
|
-
var Symbol$4 = root$7.Symbol;
|
|
19871
|
-
var _Symbol = Symbol$4;
|
|
19872
|
-
var Symbol$3 = _Symbol;
|
|
19873
|
-
var objectProto$b = Object.prototype;
|
|
19874
|
-
var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
|
|
19875
|
-
var nativeObjectToString$1 = objectProto$b.toString;
|
|
19876
|
-
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0;
|
|
19877
|
-
function getRawTag$1(value) {
|
|
19878
|
-
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
19879
|
-
try {
|
|
19880
|
-
value[symToStringTag$1] = void 0;
|
|
19881
|
-
var unmasked = true;
|
|
19882
|
-
} catch (e) {
|
|
19883
|
-
}
|
|
19884
|
-
var result = nativeObjectToString$1.call(value);
|
|
19885
|
-
if (unmasked) {
|
|
19886
|
-
if (isOwn) {
|
|
19887
|
-
value[symToStringTag$1] = tag;
|
|
19888
|
-
} else {
|
|
19889
|
-
delete value[symToStringTag$1];
|
|
19890
|
-
}
|
|
19891
|
-
}
|
|
19892
|
-
return result;
|
|
19893
|
-
}
|
|
19894
|
-
var _getRawTag = getRawTag$1;
|
|
19895
|
-
var objectProto$a = Object.prototype;
|
|
19896
|
-
var nativeObjectToString = objectProto$a.toString;
|
|
19897
|
-
function objectToString$1(value) {
|
|
19898
|
-
return nativeObjectToString.call(value);
|
|
19899
|
-
}
|
|
19900
|
-
var _objectToString = objectToString$1;
|
|
19901
|
-
var Symbol$2 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
|
19902
|
-
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
19903
|
-
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
19904
|
-
function baseGetTag$4(value) {
|
|
19905
|
-
if (value == null) {
|
|
19906
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
19907
|
-
}
|
|
19908
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
19909
|
-
}
|
|
19910
|
-
var _baseGetTag = baseGetTag$4;
|
|
19911
|
-
function isObject$2(value) {
|
|
19912
|
-
var type = typeof value;
|
|
19913
|
-
return value != null && (type == "object" || type == "function");
|
|
19914
|
-
}
|
|
19915
|
-
var isObject_1 = isObject$2;
|
|
19916
|
-
var baseGetTag$3 = _baseGetTag, isObject$1 = isObject_1;
|
|
19917
|
-
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
19918
|
-
function isFunction$2(value) {
|
|
19919
|
-
if (!isObject$1(value)) {
|
|
19920
|
-
return false;
|
|
19921
|
-
}
|
|
19922
|
-
var tag = baseGetTag$3(value);
|
|
19923
|
-
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
19924
|
-
}
|
|
19925
|
-
var isFunction_1 = isFunction$2;
|
|
19926
|
-
var root$6 = _root;
|
|
19927
|
-
var coreJsData$1 = root$6["__core-js_shared__"];
|
|
19928
|
-
var _coreJsData = coreJsData$1;
|
|
19929
|
-
var coreJsData = _coreJsData;
|
|
19930
|
-
var maskSrcKey = function() {
|
|
19931
|
-
var uid2 = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
19932
|
-
return uid2 ? "Symbol(src)_1." + uid2 : "";
|
|
19933
|
-
}();
|
|
19934
|
-
function isMasked$1(func) {
|
|
19935
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
19936
|
-
}
|
|
19937
|
-
var _isMasked = isMasked$1;
|
|
19938
|
-
var funcProto$1 = Function.prototype;
|
|
19939
|
-
var funcToString$1 = funcProto$1.toString;
|
|
19940
|
-
function toSource$2(func) {
|
|
19941
|
-
if (func != null) {
|
|
19942
|
-
try {
|
|
19943
|
-
return funcToString$1.call(func);
|
|
19944
|
-
} catch (e) {
|
|
19945
|
-
}
|
|
19946
|
-
try {
|
|
19947
|
-
return func + "";
|
|
19948
|
-
} catch (e) {
|
|
19949
|
-
}
|
|
19950
|
-
}
|
|
19951
|
-
return "";
|
|
19952
|
-
}
|
|
19953
|
-
var _toSource = toSource$2;
|
|
19954
|
-
var isFunction$1 = isFunction_1, isMasked = _isMasked, isObject = isObject_1, toSource$1 = _toSource;
|
|
19955
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
19956
|
-
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
19957
|
-
var funcProto = Function.prototype, objectProto$9 = Object.prototype;
|
|
19958
|
-
var funcToString = funcProto.toString;
|
|
19959
|
-
var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
|
|
19960
|
-
var reIsNative = RegExp(
|
|
19961
|
-
"^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
19962
|
-
);
|
|
19963
|
-
function baseIsNative$1(value) {
|
|
19964
|
-
if (!isObject(value) || isMasked(value)) {
|
|
19965
|
-
return false;
|
|
19966
|
-
}
|
|
19967
|
-
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
|
19968
|
-
return pattern.test(toSource$1(value));
|
|
19969
|
-
}
|
|
19970
|
-
var _baseIsNative = baseIsNative$1;
|
|
19971
|
-
function getValue$1(object, key) {
|
|
19972
|
-
return object == null ? void 0 : object[key];
|
|
19973
|
-
}
|
|
19974
|
-
var _getValue = getValue$1;
|
|
19975
|
-
var baseIsNative = _baseIsNative, getValue = _getValue;
|
|
19976
|
-
function getNative$6(object, key) {
|
|
19977
|
-
var value = getValue(object, key);
|
|
19978
|
-
return baseIsNative(value) ? value : void 0;
|
|
19979
|
-
}
|
|
19980
|
-
var _getNative = getNative$6;
|
|
19981
|
-
var getNative$5 = _getNative, root$5 = _root;
|
|
19982
|
-
var Map$4 = getNative$5(root$5, "Map");
|
|
19983
|
-
var _Map = Map$4;
|
|
19984
|
-
var getNative$4 = _getNative;
|
|
19985
|
-
var nativeCreate$4 = getNative$4(Object, "create");
|
|
19986
|
-
var _nativeCreate = nativeCreate$4;
|
|
19987
|
-
var nativeCreate$3 = _nativeCreate;
|
|
19988
|
-
function hashClear$1() {
|
|
19989
|
-
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
19990
|
-
this.size = 0;
|
|
19991
|
-
}
|
|
19992
|
-
var _hashClear = hashClear$1;
|
|
19993
|
-
function hashDelete$1(key) {
|
|
19994
|
-
var result = this.has(key) && delete this.__data__[key];
|
|
19995
|
-
this.size -= result ? 1 : 0;
|
|
19996
|
-
return result;
|
|
19997
|
-
}
|
|
19998
|
-
var _hashDelete = hashDelete$1;
|
|
19999
|
-
var nativeCreate$2 = _nativeCreate;
|
|
20000
|
-
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
20001
|
-
var objectProto$8 = Object.prototype;
|
|
20002
|
-
var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
20003
|
-
function hashGet$1(key) {
|
|
20004
|
-
var data2 = this.__data__;
|
|
20005
|
-
if (nativeCreate$2) {
|
|
20006
|
-
var result = data2[key];
|
|
20007
|
-
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
20008
|
-
}
|
|
20009
|
-
return hasOwnProperty$6.call(data2, key) ? data2[key] : void 0;
|
|
20010
|
-
}
|
|
20011
|
-
var _hashGet = hashGet$1;
|
|
20012
|
-
var nativeCreate$1 = _nativeCreate;
|
|
20013
|
-
var objectProto$7 = Object.prototype;
|
|
20014
|
-
var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
20015
|
-
function hashHas$1(key) {
|
|
20016
|
-
var data2 = this.__data__;
|
|
20017
|
-
return nativeCreate$1 ? data2[key] !== void 0 : hasOwnProperty$5.call(data2, key);
|
|
20018
|
-
}
|
|
20019
|
-
var _hashHas = hashHas$1;
|
|
20020
|
-
var nativeCreate = _nativeCreate;
|
|
20021
|
-
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
|
20022
|
-
function hashSet$1(key, value) {
|
|
20023
|
-
var data2 = this.__data__;
|
|
20024
|
-
this.size += this.has(key) ? 0 : 1;
|
|
20025
|
-
data2[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
|
20026
|
-
return this;
|
|
20027
|
-
}
|
|
20028
|
-
var _hashSet = hashSet$1;
|
|
20029
|
-
var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
|
20030
|
-
function Hash$1(entries) {
|
|
20031
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
20032
|
-
this.clear();
|
|
20033
|
-
while (++index < length) {
|
|
20034
|
-
var entry = entries[index];
|
|
20035
|
-
this.set(entry[0], entry[1]);
|
|
20036
|
-
}
|
|
20037
|
-
}
|
|
20038
|
-
Hash$1.prototype.clear = hashClear;
|
|
20039
|
-
Hash$1.prototype["delete"] = hashDelete;
|
|
20040
|
-
Hash$1.prototype.get = hashGet;
|
|
20041
|
-
Hash$1.prototype.has = hashHas;
|
|
20042
|
-
Hash$1.prototype.set = hashSet;
|
|
20043
|
-
var _Hash = Hash$1;
|
|
20044
|
-
var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
|
|
20045
|
-
function mapCacheClear$1() {
|
|
20046
|
-
this.size = 0;
|
|
20047
|
-
this.__data__ = {
|
|
20048
|
-
"hash": new Hash(),
|
|
20049
|
-
"map": new (Map$3 || ListCache$2)(),
|
|
20050
|
-
"string": new Hash()
|
|
20731
|
+
};
|
|
20732
|
+
_parseTextDecoration = new WeakSet();
|
|
20733
|
+
parseTextDecoration_fn = function(element) {
|
|
20734
|
+
const { textDecoration, textDecorationLine } = element.style;
|
|
20735
|
+
const decoration = textDecoration || textDecorationLine || "";
|
|
20736
|
+
return {
|
|
20737
|
+
none: decoration.includes("none"),
|
|
20738
|
+
underline: decoration.includes("underline"),
|
|
20739
|
+
line_through: decoration.includes("line-through")
|
|
20051
20740
|
};
|
|
20052
|
-
}
|
|
20053
|
-
|
|
20054
|
-
function
|
|
20055
|
-
|
|
20056
|
-
|
|
20057
|
-
|
|
20058
|
-
var _isKeyable = isKeyable$1;
|
|
20059
|
-
var isKeyable = _isKeyable;
|
|
20060
|
-
function getMapData$4(map2, key) {
|
|
20061
|
-
var data2 = map2.__data__;
|
|
20062
|
-
return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
|
|
20063
|
-
}
|
|
20064
|
-
var _getMapData = getMapData$4;
|
|
20065
|
-
var getMapData$3 = _getMapData;
|
|
20066
|
-
function mapCacheDelete$1(key) {
|
|
20067
|
-
var result = getMapData$3(this, key)["delete"](key);
|
|
20068
|
-
this.size -= result ? 1 : 0;
|
|
20069
|
-
return result;
|
|
20070
|
-
}
|
|
20071
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
20072
|
-
var getMapData$2 = _getMapData;
|
|
20073
|
-
function mapCacheGet$1(key) {
|
|
20074
|
-
return getMapData$2(this, key).get(key);
|
|
20075
|
-
}
|
|
20076
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
20077
|
-
var getMapData$1 = _getMapData;
|
|
20078
|
-
function mapCacheHas$1(key) {
|
|
20079
|
-
return getMapData$1(this, key).has(key);
|
|
20080
|
-
}
|
|
20081
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
20082
|
-
var getMapData = _getMapData;
|
|
20083
|
-
function mapCacheSet$1(key, value) {
|
|
20084
|
-
var data2 = getMapData(this, key), size2 = data2.size;
|
|
20085
|
-
data2.set(key, value);
|
|
20086
|
-
this.size += data2.size == size2 ? 0 : 1;
|
|
20087
|
-
return this;
|
|
20088
|
-
}
|
|
20089
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
20090
|
-
var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
|
20091
|
-
function MapCache$2(entries) {
|
|
20092
|
-
var index = -1, length = entries == null ? 0 : entries.length;
|
|
20093
|
-
this.clear();
|
|
20094
|
-
while (++index < length) {
|
|
20095
|
-
var entry = entries[index];
|
|
20096
|
-
this.set(entry[0], entry[1]);
|
|
20741
|
+
};
|
|
20742
|
+
_normalizeBlockBackgroundColor = new WeakSet();
|
|
20743
|
+
normalizeBlockBackgroundColor_fn = function() {
|
|
20744
|
+
const blockEls = this.dom.querySelectorAll('[style*="background-color"]:where(p, h1, h2, h3, h4, li)');
|
|
20745
|
+
for (const blockEl of blockEls) {
|
|
20746
|
+
__privateMethod(this, _moveBackgroundColorToChildren, moveBackgroundColorToChildren_fn).call(this, blockEl);
|
|
20097
20747
|
}
|
|
20098
|
-
}
|
|
20099
|
-
|
|
20100
|
-
|
|
20101
|
-
|
|
20102
|
-
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
if (data2 instanceof ListCache$1) {
|
|
20110
|
-
var pairs = data2.__data__;
|
|
20111
|
-
if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
20112
|
-
pairs.push([key, value]);
|
|
20113
|
-
this.size = ++data2.size;
|
|
20114
|
-
return this;
|
|
20115
|
-
}
|
|
20116
|
-
data2 = this.__data__ = new MapCache$1(pairs);
|
|
20748
|
+
};
|
|
20749
|
+
_moveBackgroundColorToChildren = new WeakSet();
|
|
20750
|
+
moveBackgroundColorToChildren_fn = function(blockEl) {
|
|
20751
|
+
const blockColor = blockEl.style.backgroundColor;
|
|
20752
|
+
blockEl.style.removeProperty("background-color");
|
|
20753
|
+
if (!blockEl.style.cssText)
|
|
20754
|
+
blockEl.removeAttribute("style");
|
|
20755
|
+
for (const childNode of blockEl.childNodes) {
|
|
20756
|
+
const textEl = __privateMethod(this, _wrapTextNode, wrapTextNode_fn).call(this, blockEl, childNode);
|
|
20757
|
+
const color = textEl.style.backgroundColor || blockColor;
|
|
20758
|
+
textEl.style.backgroundColor = color;
|
|
20117
20759
|
}
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
}
|
|
20128
|
-
|
|
20129
|
-
|
|
20130
|
-
|
|
20131
|
-
|
|
20132
|
-
|
|
20133
|
-
|
|
20760
|
+
};
|
|
20761
|
+
_wrapTextNode = new WeakSet();
|
|
20762
|
+
wrapTextNode_fn = function(parent, node) {
|
|
20763
|
+
if (node.nodeType !== __privateGet(this, _Node, Node_get).TEXT_NODE)
|
|
20764
|
+
return node;
|
|
20765
|
+
const span = this.dom.createElement("span");
|
|
20766
|
+
span.append(node.cloneNode());
|
|
20767
|
+
parent.replaceChild(span, node);
|
|
20768
|
+
return span;
|
|
20769
|
+
};
|
|
20770
|
+
__publicField(HtmlNormalizer, "BLOCK_NODE_NAMES", ["P", "H1", "H2", "H3", "H4"]);
|
|
20771
|
+
__publicField(HtmlNormalizer, "ROOT_NODE_NAMES", _HtmlNormalizer.BLOCK_NODE_NAMES.concat("UL", "OL"));
|
|
20772
|
+
__publicField(HtmlNormalizer, "BLOCK_STYLES", [
|
|
20773
|
+
"text-align",
|
|
20774
|
+
"line-height",
|
|
20775
|
+
"margin",
|
|
20776
|
+
"margin-top",
|
|
20777
|
+
"margin-bottom",
|
|
20778
|
+
"margin-left",
|
|
20779
|
+
"margin-right"
|
|
20780
|
+
]);
|
|
20134
20781
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
20135
20782
|
function setCacheAdd$1(value) {
|
|
20136
20783
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
@@ -20195,293 +20842,91 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
20195
20842
|
}
|
|
20196
20843
|
if (seen) {
|
|
20197
20844
|
if (!arraySome(other, function(othValue2, othIndex) {
|
|
20198
|
-
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
20199
|
-
return seen.push(othIndex);
|
|
20200
|
-
}
|
|
20201
|
-
})) {
|
|
20202
|
-
result = false;
|
|
20203
|
-
break;
|
|
20204
|
-
}
|
|
20205
|
-
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
20206
|
-
result = false;
|
|
20207
|
-
break;
|
|
20208
|
-
}
|
|
20209
|
-
}
|
|
20210
|
-
stack["delete"](array);
|
|
20211
|
-
stack["delete"](other);
|
|
20212
|
-
return result;
|
|
20213
|
-
}
|
|
20214
|
-
var _equalArrays = equalArrays$2;
|
|
20215
|
-
var root$4 = _root;
|
|
20216
|
-
var Uint8Array$1 = root$4.Uint8Array;
|
|
20217
|
-
var _Uint8Array = Uint8Array$1;
|
|
20218
|
-
function mapToArray$1(map2) {
|
|
20219
|
-
var index = -1, result = Array(map2.size);
|
|
20220
|
-
map2.forEach(function(value, key) {
|
|
20221
|
-
result[++index] = [key, value];
|
|
20222
|
-
});
|
|
20223
|
-
return result;
|
|
20224
|
-
}
|
|
20225
|
-
var _mapToArray = mapToArray$1;
|
|
20226
|
-
function setToArray$1(set2) {
|
|
20227
|
-
var index = -1, result = Array(set2.size);
|
|
20228
|
-
set2.forEach(function(value) {
|
|
20229
|
-
result[++index] = value;
|
|
20230
|
-
});
|
|
20231
|
-
return result;
|
|
20232
|
-
}
|
|
20233
|
-
var _setToArray = setToArray$1;
|
|
20234
|
-
var Symbol$1 = _Symbol, Uint8Array2 = _Uint8Array, eq = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
|
|
20235
|
-
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
20236
|
-
var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]";
|
|
20237
|
-
var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]";
|
|
20238
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
20239
|
-
function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
20240
|
-
switch (tag) {
|
|
20241
|
-
case dataViewTag$2:
|
|
20242
|
-
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
20243
|
-
return false;
|
|
20244
|
-
}
|
|
20245
|
-
object = object.buffer;
|
|
20246
|
-
other = other.buffer;
|
|
20247
|
-
case arrayBufferTag$1:
|
|
20248
|
-
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
|
|
20249
|
-
return false;
|
|
20250
|
-
}
|
|
20251
|
-
return true;
|
|
20252
|
-
case boolTag$1:
|
|
20253
|
-
case dateTag$1:
|
|
20254
|
-
case numberTag$1:
|
|
20255
|
-
return eq(+object, +other);
|
|
20256
|
-
case errorTag$1:
|
|
20257
|
-
return object.name == other.name && object.message == other.message;
|
|
20258
|
-
case regexpTag$1:
|
|
20259
|
-
case stringTag$1:
|
|
20260
|
-
return object == other + "";
|
|
20261
|
-
case mapTag$2:
|
|
20262
|
-
var convert = mapToArray;
|
|
20263
|
-
case setTag$2:
|
|
20264
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
20265
|
-
convert || (convert = setToArray);
|
|
20266
|
-
if (object.size != other.size && !isPartial) {
|
|
20267
|
-
return false;
|
|
20268
|
-
}
|
|
20269
|
-
var stacked = stack.get(object);
|
|
20270
|
-
if (stacked) {
|
|
20271
|
-
return stacked == other;
|
|
20272
|
-
}
|
|
20273
|
-
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
20274
|
-
stack.set(object, other);
|
|
20275
|
-
var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
20276
|
-
stack["delete"](object);
|
|
20277
|
-
return result;
|
|
20278
|
-
case symbolTag:
|
|
20279
|
-
if (symbolValueOf) {
|
|
20280
|
-
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
20281
|
-
}
|
|
20282
|
-
}
|
|
20283
|
-
return false;
|
|
20284
|
-
}
|
|
20285
|
-
var _equalByTag = equalByTag$1;
|
|
20286
|
-
function arrayPush$1(array, values2) {
|
|
20287
|
-
var index = -1, length = values2.length, offset2 = array.length;
|
|
20288
|
-
while (++index < length) {
|
|
20289
|
-
array[offset2 + index] = values2[index];
|
|
20290
|
-
}
|
|
20291
|
-
return array;
|
|
20292
|
-
}
|
|
20293
|
-
var _arrayPush = arrayPush$1;
|
|
20294
|
-
var isArray$3 = Array.isArray;
|
|
20295
|
-
var isArray_1 = isArray$3;
|
|
20296
|
-
var arrayPush = _arrayPush, isArray$2 = isArray_1;
|
|
20297
|
-
function baseGetAllKeys$1(object, keysFunc, symbolsFunc) {
|
|
20298
|
-
var result = keysFunc(object);
|
|
20299
|
-
return isArray$2(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
20300
|
-
}
|
|
20301
|
-
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
20302
|
-
function arrayFilter$1(array, predicate) {
|
|
20303
|
-
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
20304
|
-
while (++index < length) {
|
|
20305
|
-
var value = array[index];
|
|
20306
|
-
if (predicate(value, index, array)) {
|
|
20307
|
-
result[resIndex++] = value;
|
|
20308
|
-
}
|
|
20309
|
-
}
|
|
20310
|
-
return result;
|
|
20311
|
-
}
|
|
20312
|
-
var _arrayFilter = arrayFilter$1;
|
|
20313
|
-
function stubArray$1() {
|
|
20314
|
-
return [];
|
|
20315
|
-
}
|
|
20316
|
-
var stubArray_1 = stubArray$1;
|
|
20317
|
-
var arrayFilter = _arrayFilter, stubArray = stubArray_1;
|
|
20318
|
-
var objectProto$6 = Object.prototype;
|
|
20319
|
-
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
20320
|
-
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
20321
|
-
var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
20322
|
-
if (object == null) {
|
|
20323
|
-
return [];
|
|
20324
|
-
}
|
|
20325
|
-
object = Object(object);
|
|
20326
|
-
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
20327
|
-
return propertyIsEnumerable$1.call(object, symbol);
|
|
20328
|
-
});
|
|
20329
|
-
};
|
|
20330
|
-
var _getSymbols = getSymbols$1;
|
|
20331
|
-
function baseTimes$1(n, iteratee) {
|
|
20332
|
-
var index = -1, result = Array(n);
|
|
20333
|
-
while (++index < n) {
|
|
20334
|
-
result[index] = iteratee(index);
|
|
20335
|
-
}
|
|
20336
|
-
return result;
|
|
20337
|
-
}
|
|
20338
|
-
var _baseTimes = baseTimes$1;
|
|
20339
|
-
function isObjectLike$4(value) {
|
|
20340
|
-
return value != null && typeof value == "object";
|
|
20341
|
-
}
|
|
20342
|
-
var isObjectLike_1 = isObjectLike$4;
|
|
20343
|
-
var baseGetTag$2 = _baseGetTag, isObjectLike$3 = isObjectLike_1;
|
|
20344
|
-
var argsTag$2 = "[object Arguments]";
|
|
20345
|
-
function baseIsArguments$1(value) {
|
|
20346
|
-
return isObjectLike$3(value) && baseGetTag$2(value) == argsTag$2;
|
|
20347
|
-
}
|
|
20348
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
20349
|
-
var baseIsArguments = _baseIsArguments, isObjectLike$2 = isObjectLike_1;
|
|
20350
|
-
var objectProto$5 = Object.prototype;
|
|
20351
|
-
var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
|
|
20352
|
-
var propertyIsEnumerable2 = objectProto$5.propertyIsEnumerable;
|
|
20353
|
-
var isArguments$1 = baseIsArguments(function() {
|
|
20354
|
-
return arguments;
|
|
20355
|
-
}()) ? baseIsArguments : function(value) {
|
|
20356
|
-
return isObjectLike$2(value) && hasOwnProperty$4.call(value, "callee") && !propertyIsEnumerable2.call(value, "callee");
|
|
20357
|
-
};
|
|
20358
|
-
var isArguments_1 = isArguments$1;
|
|
20359
|
-
var isBuffer$2 = { exports: {} };
|
|
20360
|
-
function stubFalse() {
|
|
20361
|
-
return false;
|
|
20362
|
-
}
|
|
20363
|
-
var stubFalse_1 = stubFalse;
|
|
20364
|
-
(function(module, exports) {
|
|
20365
|
-
var root2 = _root, stubFalse2 = stubFalse_1;
|
|
20366
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
20367
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
20368
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
20369
|
-
var Buffer2 = moduleExports ? root2.Buffer : void 0;
|
|
20370
|
-
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
20371
|
-
var isBuffer2 = nativeIsBuffer || stubFalse2;
|
|
20372
|
-
module.exports = isBuffer2;
|
|
20373
|
-
})(isBuffer$2, isBuffer$2.exports);
|
|
20374
|
-
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
20375
|
-
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
20376
|
-
function isIndex$1(value, length) {
|
|
20377
|
-
var type = typeof value;
|
|
20378
|
-
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
20379
|
-
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
20380
|
-
}
|
|
20381
|
-
var _isIndex = isIndex$1;
|
|
20382
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
20383
|
-
function isLength$2(value) {
|
|
20384
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
20385
|
-
}
|
|
20386
|
-
var isLength_1 = isLength$2;
|
|
20387
|
-
var baseGetTag$1 = _baseGetTag, isLength$1 = isLength_1, isObjectLike$1 = isObjectLike_1;
|
|
20388
|
-
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", mapTag$1 = "[object Map]", numberTag = "[object Number]", objectTag$2 = "[object Object]", regexpTag = "[object RegExp]", setTag$1 = "[object Set]", stringTag = "[object String]", weakMapTag$1 = "[object WeakMap]";
|
|
20389
|
-
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
20390
|
-
var typedArrayTags = {};
|
|
20391
|
-
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
20392
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$1] = typedArrayTags[numberTag] = typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] = typedArrayTags[setTag$1] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
|
|
20393
|
-
function baseIsTypedArray$1(value) {
|
|
20394
|
-
return isObjectLike$1(value) && isLength$1(value.length) && !!typedArrayTags[baseGetTag$1(value)];
|
|
20395
|
-
}
|
|
20396
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
20397
|
-
function baseUnary$1(func) {
|
|
20398
|
-
return function(value) {
|
|
20399
|
-
return func(value);
|
|
20400
|
-
};
|
|
20401
|
-
}
|
|
20402
|
-
var _baseUnary = baseUnary$1;
|
|
20403
|
-
var _nodeUtil = { exports: {} };
|
|
20404
|
-
(function(module, exports) {
|
|
20405
|
-
var freeGlobal2 = _freeGlobal;
|
|
20406
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
20407
|
-
var freeModule = freeExports && true && module && !module.nodeType && module;
|
|
20408
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
20409
|
-
var freeProcess = moduleExports && freeGlobal2.process;
|
|
20410
|
-
var nodeUtil2 = function() {
|
|
20411
|
-
try {
|
|
20412
|
-
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
20413
|
-
if (types) {
|
|
20414
|
-
return types;
|
|
20415
|
-
}
|
|
20416
|
-
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
20417
|
-
} catch (e) {
|
|
20418
|
-
}
|
|
20419
|
-
}();
|
|
20420
|
-
module.exports = nodeUtil2;
|
|
20421
|
-
})(_nodeUtil, _nodeUtil.exports);
|
|
20422
|
-
var baseIsTypedArray = _baseIsTypedArray, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports;
|
|
20423
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
20424
|
-
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
20425
|
-
var isTypedArray_1 = isTypedArray$2;
|
|
20426
|
-
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$1 = isArray_1, isBuffer$1 = isBuffer$2.exports, isIndex = _isIndex, isTypedArray$1 = isTypedArray_1;
|
|
20427
|
-
var objectProto$4 = Object.prototype;
|
|
20428
|
-
var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
20429
|
-
function arrayLikeKeys$1(value, inherited) {
|
|
20430
|
-
var isArr = isArray$1(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
20431
|
-
for (var key in value) {
|
|
20432
|
-
if ((inherited || hasOwnProperty$3.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
20433
|
-
result.push(key);
|
|
20845
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
20846
|
+
return seen.push(othIndex);
|
|
20847
|
+
}
|
|
20848
|
+
})) {
|
|
20849
|
+
result = false;
|
|
20850
|
+
break;
|
|
20851
|
+
}
|
|
20852
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
20853
|
+
result = false;
|
|
20854
|
+
break;
|
|
20434
20855
|
}
|
|
20435
20856
|
}
|
|
20857
|
+
stack["delete"](array);
|
|
20858
|
+
stack["delete"](other);
|
|
20436
20859
|
return result;
|
|
20437
20860
|
}
|
|
20438
|
-
var
|
|
20439
|
-
|
|
20440
|
-
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
}
|
|
20444
|
-
var _isPrototype = isPrototype$1;
|
|
20445
|
-
function overArg$1(func, transform) {
|
|
20446
|
-
return function(arg) {
|
|
20447
|
-
return func(transform(arg));
|
|
20448
|
-
};
|
|
20449
|
-
}
|
|
20450
|
-
var _overArg = overArg$1;
|
|
20451
|
-
var overArg = _overArg;
|
|
20452
|
-
var nativeKeys$1 = overArg(Object.keys, Object);
|
|
20453
|
-
var _nativeKeys = nativeKeys$1;
|
|
20454
|
-
var isPrototype = _isPrototype, nativeKeys = _nativeKeys;
|
|
20455
|
-
var objectProto$2 = Object.prototype;
|
|
20456
|
-
var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
20457
|
-
function baseKeys$1(object) {
|
|
20458
|
-
if (!isPrototype(object)) {
|
|
20459
|
-
return nativeKeys(object);
|
|
20460
|
-
}
|
|
20461
|
-
var result = [];
|
|
20462
|
-
for (var key in Object(object)) {
|
|
20463
|
-
if (hasOwnProperty$2.call(object, key) && key != "constructor") {
|
|
20464
|
-
result.push(key);
|
|
20465
|
-
}
|
|
20466
|
-
}
|
|
20861
|
+
var _equalArrays = equalArrays$2;
|
|
20862
|
+
function mapToArray$1(map2) {
|
|
20863
|
+
var index = -1, result = Array(map2.size);
|
|
20864
|
+
map2.forEach(function(value, key) {
|
|
20865
|
+
result[++index] = [key, value];
|
|
20866
|
+
});
|
|
20467
20867
|
return result;
|
|
20468
20868
|
}
|
|
20469
|
-
var
|
|
20470
|
-
|
|
20471
|
-
|
|
20472
|
-
|
|
20473
|
-
|
|
20474
|
-
|
|
20475
|
-
|
|
20476
|
-
function keys$1(object) {
|
|
20477
|
-
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
20869
|
+
var _mapToArray = mapToArray$1;
|
|
20870
|
+
function setToArray$1(set2) {
|
|
20871
|
+
var index = -1, result = Array(set2.size);
|
|
20872
|
+
set2.forEach(function(value) {
|
|
20873
|
+
result[++index] = value;
|
|
20874
|
+
});
|
|
20875
|
+
return result;
|
|
20478
20876
|
}
|
|
20479
|
-
var
|
|
20480
|
-
var
|
|
20481
|
-
|
|
20482
|
-
|
|
20877
|
+
var _setToArray = setToArray$1;
|
|
20878
|
+
var Symbol$1 = _Symbol, Uint8Array2 = _Uint8Array, eq = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
|
|
20879
|
+
var COMPARE_PARTIAL_FLAG$2 = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
20880
|
+
var boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]";
|
|
20881
|
+
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]";
|
|
20882
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
20883
|
+
function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
20884
|
+
switch (tag) {
|
|
20885
|
+
case dataViewTag:
|
|
20886
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
20887
|
+
return false;
|
|
20888
|
+
}
|
|
20889
|
+
object = object.buffer;
|
|
20890
|
+
other = other.buffer;
|
|
20891
|
+
case arrayBufferTag:
|
|
20892
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
|
|
20893
|
+
return false;
|
|
20894
|
+
}
|
|
20895
|
+
return true;
|
|
20896
|
+
case boolTag:
|
|
20897
|
+
case dateTag:
|
|
20898
|
+
case numberTag:
|
|
20899
|
+
return eq(+object, +other);
|
|
20900
|
+
case errorTag:
|
|
20901
|
+
return object.name == other.name && object.message == other.message;
|
|
20902
|
+
case regexpTag:
|
|
20903
|
+
case stringTag:
|
|
20904
|
+
return object == other + "";
|
|
20905
|
+
case mapTag:
|
|
20906
|
+
var convert = mapToArray;
|
|
20907
|
+
case setTag:
|
|
20908
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
20909
|
+
convert || (convert = setToArray);
|
|
20910
|
+
if (object.size != other.size && !isPartial) {
|
|
20911
|
+
return false;
|
|
20912
|
+
}
|
|
20913
|
+
var stacked = stack.get(object);
|
|
20914
|
+
if (stacked) {
|
|
20915
|
+
return stacked == other;
|
|
20916
|
+
}
|
|
20917
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
20918
|
+
stack.set(object, other);
|
|
20919
|
+
var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
20920
|
+
stack["delete"](object);
|
|
20921
|
+
return result;
|
|
20922
|
+
case symbolTag:
|
|
20923
|
+
if (symbolValueOf) {
|
|
20924
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
20925
|
+
}
|
|
20926
|
+
}
|
|
20927
|
+
return false;
|
|
20483
20928
|
}
|
|
20484
|
-
var
|
|
20929
|
+
var _equalByTag = equalByTag$1;
|
|
20485
20930
|
var getAllKeys = _getAllKeys;
|
|
20486
20931
|
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
20487
20932
|
var objectProto$1 = Object.prototype;
|
|
@@ -20530,45 +20975,7 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
20530
20975
|
return result;
|
|
20531
20976
|
}
|
|
20532
20977
|
var _equalObjects = equalObjects$1;
|
|
20533
|
-
var
|
|
20534
|
-
var DataView$1 = getNative$3(root$3, "DataView");
|
|
20535
|
-
var _DataView = DataView$1;
|
|
20536
|
-
var getNative$2 = _getNative, root$2 = _root;
|
|
20537
|
-
var Promise$2 = getNative$2(root$2, "Promise");
|
|
20538
|
-
var _Promise = Promise$2;
|
|
20539
|
-
var getNative$1 = _getNative, root$1 = _root;
|
|
20540
|
-
var Set$2 = getNative$1(root$1, "Set");
|
|
20541
|
-
var _Set = Set$2;
|
|
20542
|
-
var getNative = _getNative, root = _root;
|
|
20543
|
-
var WeakMap$2 = getNative(root, "WeakMap");
|
|
20544
|
-
var _WeakMap = WeakMap$2;
|
|
20545
|
-
var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set$1 = _Set, WeakMap$1 = _WeakMap, baseGetTag = _baseGetTag, toSource = _toSource;
|
|
20546
|
-
var mapTag = "[object Map]", objectTag$1 = "[object Object]", promiseTag = "[object Promise]", setTag = "[object Set]", weakMapTag = "[object WeakMap]";
|
|
20547
|
-
var dataViewTag = "[object DataView]";
|
|
20548
|
-
var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set$1), weakMapCtorString = toSource(WeakMap$1);
|
|
20549
|
-
var getTag$1 = baseGetTag;
|
|
20550
|
-
if (DataView && getTag$1(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag$1(new Map$1()) != mapTag || Promise$1 && getTag$1(Promise$1.resolve()) != promiseTag || Set$1 && getTag$1(new Set$1()) != setTag || WeakMap$1 && getTag$1(new WeakMap$1()) != weakMapTag) {
|
|
20551
|
-
getTag$1 = function(value) {
|
|
20552
|
-
var result = baseGetTag(value), Ctor = result == objectTag$1 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
20553
|
-
if (ctorString) {
|
|
20554
|
-
switch (ctorString) {
|
|
20555
|
-
case dataViewCtorString:
|
|
20556
|
-
return dataViewTag;
|
|
20557
|
-
case mapCtorString:
|
|
20558
|
-
return mapTag;
|
|
20559
|
-
case promiseCtorString:
|
|
20560
|
-
return promiseTag;
|
|
20561
|
-
case setCtorString:
|
|
20562
|
-
return setTag;
|
|
20563
|
-
case weakMapCtorString:
|
|
20564
|
-
return weakMapTag;
|
|
20565
|
-
}
|
|
20566
|
-
}
|
|
20567
|
-
return result;
|
|
20568
|
-
};
|
|
20569
|
-
}
|
|
20570
|
-
var _getTag = getTag$1;
|
|
20571
|
-
var Stack = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray2 = isArray_1, isBuffer = isBuffer$2.exports, isTypedArray = isTypedArray_1;
|
|
20978
|
+
var Stack = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag = _getTag, isArray2 = isArray_1, isBuffer = isBuffer$3.exports, isTypedArray = isTypedArray_1;
|
|
20572
20979
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
20573
20980
|
var argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]";
|
|
20574
20981
|
var objectProto = Object.prototype;
|
|
@@ -20645,8 +21052,8 @@ iterateNodes_fn2 = function(handler) {
|
|
|
20645
21052
|
_iterateChildNodes = new WeakSet();
|
|
20646
21053
|
iterateChildNodes_fn = function(node, handler) {
|
|
20647
21054
|
for (const child of node.content) {
|
|
20648
|
-
handler.call(this, child);
|
|
20649
21055
|
child.content && __privateMethod(this, _iterateChildNodes, iterateChildNodes_fn).call(this, child, handler);
|
|
21056
|
+
handler.call(this, child);
|
|
20650
21057
|
}
|
|
20651
21058
|
};
|
|
20652
21059
|
_bubbleMarks = new WeakSet();
|
|
@@ -20659,13 +21066,13 @@ bubbleMarks_fn = function(node) {
|
|
|
20659
21066
|
if (!child.marks)
|
|
20660
21067
|
continue;
|
|
20661
21068
|
for (const childMark of child.marks.slice()) {
|
|
20662
|
-
if (__privateMethod(this,
|
|
21069
|
+
if (__privateMethod(this, _includesMark, includesMark_fn).call(this, node, childMark)) {
|
|
20663
21070
|
__privateMethod(this, _removeMark, removeMark_fn).call(this, child, childMark);
|
|
20664
|
-
__privateMethod(this, _addMark, addMark_fn).call(this, node, childMark);
|
|
20665
21071
|
continue;
|
|
20666
21072
|
}
|
|
20667
|
-
if (__privateMethod(this,
|
|
21073
|
+
if (__privateMethod(this, _canBubbleMark, canBubbleMark_fn).call(this, node, childMark)) {
|
|
20668
21074
|
__privateMethod(this, _removeMark, removeMark_fn).call(this, child, childMark);
|
|
21075
|
+
__privateMethod(this, _addMark, addMark_fn).call(this, node, childMark);
|
|
20669
21076
|
}
|
|
20670
21077
|
}
|
|
20671
21078
|
}
|
|
@@ -20677,9 +21084,11 @@ canBubbleMark_fn = function(node, childMark) {
|
|
|
20677
21084
|
if (__privateMethod(this, _includesMarkType, includesMarkType_fn).call(this, node, childMark.type))
|
|
20678
21085
|
return false;
|
|
20679
21086
|
for (const child of node.content) {
|
|
21087
|
+
if (!child.content && node.type === NodeTypes.LIST_ITEM)
|
|
21088
|
+
continue;
|
|
20680
21089
|
if (!child.marks)
|
|
20681
21090
|
return false;
|
|
20682
|
-
if (!__privateMethod(this,
|
|
21091
|
+
if (!__privateMethod(this, _includesMark, includesMark_fn).call(this, child, childMark))
|
|
20683
21092
|
return false;
|
|
20684
21093
|
}
|
|
20685
21094
|
return true;
|
|
@@ -20770,7 +21179,15 @@ class NodeFactory {
|
|
|
20770
21179
|
};
|
|
20771
21180
|
}
|
|
20772
21181
|
static listItem(...args) {
|
|
20773
|
-
|
|
21182
|
+
const { attrs, content: children, marks } = __privateMethod(this, _normalizeTextBlockArgs, normalizeTextBlockArgs_fn).call(this, args);
|
|
21183
|
+
return {
|
|
21184
|
+
type: NodeTypes.LIST_ITEM,
|
|
21185
|
+
...attrs ? { attrs } : {},
|
|
21186
|
+
...marks ? { marks } : {},
|
|
21187
|
+
content: [].concat(children).map((content) => {
|
|
21188
|
+
return typeof content === "string" ? this.paragraph(content) : content;
|
|
21189
|
+
})
|
|
21190
|
+
};
|
|
20774
21191
|
}
|
|
20775
21192
|
static heading(level, ...args) {
|
|
20776
21193
|
var _a;
|
|
@@ -20800,9 +21217,9 @@ class NodeFactory {
|
|
|
20800
21217
|
}
|
|
20801
21218
|
}
|
|
20802
21219
|
_textBlock = new WeakSet();
|
|
20803
|
-
textBlock_fn = function(args
|
|
21220
|
+
textBlock_fn = function(args) {
|
|
20804
21221
|
const { attrs, content, marks } = __privateMethod(this, _normalizeTextBlockArgs, normalizeTextBlockArgs_fn).call(this, args);
|
|
20805
|
-
const children = typeof content === "string" ? [
|
|
21222
|
+
const children = typeof content === "string" ? [this.text(content)] : content;
|
|
20806
21223
|
return {
|
|
20807
21224
|
content: children,
|
|
20808
21225
|
...attrs ? { attrs } : {},
|
|
@@ -20857,13 +21274,17 @@ const outClick = {
|
|
|
20857
21274
|
toggleListener(false, dataStorage.get(el).callback);
|
|
20858
21275
|
}
|
|
20859
21276
|
};
|
|
20860
|
-
function tooltip(el, { value }) {
|
|
21277
|
+
function tooltip(el, { value, modifiers: modifiers2 }) {
|
|
20861
21278
|
const options = typeof value === "string" ? { text: value } : value;
|
|
20862
21279
|
const { text: text2, hotkey } = options;
|
|
20863
21280
|
if (text2)
|
|
20864
21281
|
el.dataset.tooltip = text2;
|
|
20865
21282
|
if (text2 && hotkey)
|
|
20866
21283
|
el.dataset.tooltipHotkey = hotkey;
|
|
21284
|
+
if (modifiers2.xs)
|
|
21285
|
+
el.dataset.tooltipSize = "xs";
|
|
21286
|
+
if (modifiers2.lg)
|
|
21287
|
+
el.dataset.tooltipSize = "lg";
|
|
20867
21288
|
}
|
|
20868
21289
|
var render$y = function __render__11() {
|
|
20869
21290
|
var _vm = this;
|
|
@@ -21161,7 +21582,23 @@ var render$v = function __render__14() {
|
|
|
21161
21582
|
}
|
|
21162
21583
|
}, [_c("span", {
|
|
21163
21584
|
staticClass: "zw-dropdown__activator-title zw-text--truncate"
|
|
21164
|
-
}, [_vm._v(" " + _vm._s(_vm.activeOptionTitle) + " ")]), _c("Icon", {
|
|
21585
|
+
}, [_vm._v(" " + _vm._s(_vm.activeOptionTitle) + " ")]), _vm.isCustomized ? _c("Icon", {
|
|
21586
|
+
directives: [{
|
|
21587
|
+
name: "tooltip",
|
|
21588
|
+
rawName: "v-tooltip.xs",
|
|
21589
|
+
value: "Default parameter setting is changed",
|
|
21590
|
+
expression: "'Default parameter setting is changed'",
|
|
21591
|
+
modifiers: {
|
|
21592
|
+
"xs": true
|
|
21593
|
+
}
|
|
21594
|
+
}],
|
|
21595
|
+
staticClass: "zw-dropdown__customized-indicator",
|
|
21596
|
+
attrs: {
|
|
21597
|
+
"name": "indicator",
|
|
21598
|
+
"size": "9px",
|
|
21599
|
+
"data-test-selector": "customizedIndicator"
|
|
21600
|
+
}
|
|
21601
|
+
}) : _vm._e(), _c("Icon", {
|
|
21165
21602
|
staticClass: "zw-dropdown__activator-arrow",
|
|
21166
21603
|
attrs: {
|
|
21167
21604
|
"name": "arrow",
|
|
@@ -21182,6 +21619,9 @@ const __vue2_script$v = {
|
|
|
21182
21619
|
Icon,
|
|
21183
21620
|
Button
|
|
21184
21621
|
},
|
|
21622
|
+
directives: {
|
|
21623
|
+
tooltip
|
|
21624
|
+
},
|
|
21185
21625
|
model: {
|
|
21186
21626
|
event: "change"
|
|
21187
21627
|
},
|
|
@@ -21190,6 +21630,11 @@ const __vue2_script$v = {
|
|
|
21190
21630
|
type: String,
|
|
21191
21631
|
required: false,
|
|
21192
21632
|
default: "none"
|
|
21633
|
+
},
|
|
21634
|
+
isCustomized: {
|
|
21635
|
+
type: Boolean,
|
|
21636
|
+
required: false,
|
|
21637
|
+
default: false
|
|
21193
21638
|
}
|
|
21194
21639
|
},
|
|
21195
21640
|
setup(props) {
|
|
@@ -21216,7 +21661,7 @@ var __component__$v = /* @__PURE__ */ normalizeComponent(
|
|
|
21216
21661
|
staticRenderFns$v,
|
|
21217
21662
|
false,
|
|
21218
21663
|
__vue2_injectStyles$v,
|
|
21219
|
-
"
|
|
21664
|
+
"0f1c87fd",
|
|
21220
21665
|
null,
|
|
21221
21666
|
null
|
|
21222
21667
|
);
|
|
@@ -21480,7 +21925,8 @@ var render$q = function __render__19() {
|
|
|
21480
21925
|
staticClass: "zw-dropdown"
|
|
21481
21926
|
}, [_c("DropdownActivator", {
|
|
21482
21927
|
attrs: {
|
|
21483
|
-
"color": _vm.color
|
|
21928
|
+
"color": _vm.color,
|
|
21929
|
+
"is-customized": _vm.isCustomized
|
|
21484
21930
|
},
|
|
21485
21931
|
scopedSlots: _vm._u([{
|
|
21486
21932
|
key: "default",
|
|
@@ -21538,6 +21984,11 @@ const __vue2_script$q = {
|
|
|
21538
21984
|
type: String,
|
|
21539
21985
|
required: false,
|
|
21540
21986
|
default: "none"
|
|
21987
|
+
},
|
|
21988
|
+
isCustomized: {
|
|
21989
|
+
type: Boolean,
|
|
21990
|
+
required: false,
|
|
21991
|
+
default: false
|
|
21541
21992
|
}
|
|
21542
21993
|
},
|
|
21543
21994
|
setup(props, { emit }) {
|
|
@@ -21569,7 +22020,7 @@ var __component__$q = /* @__PURE__ */ normalizeComponent(
|
|
|
21569
22020
|
staticRenderFns$q,
|
|
21570
22021
|
false,
|
|
21571
22022
|
__vue2_injectStyles$q,
|
|
21572
|
-
"
|
|
22023
|
+
"29e6a104",
|
|
21573
22024
|
null,
|
|
21574
22025
|
null
|
|
21575
22026
|
);
|
|
@@ -21888,7 +22339,8 @@ var render$n = function __render__22() {
|
|
|
21888
22339
|
staticClass: "zw-font-family-control",
|
|
21889
22340
|
attrs: {
|
|
21890
22341
|
"options": _vm.options,
|
|
21891
|
-
"value": _vm.currentValue
|
|
22342
|
+
"value": _vm.currentValue,
|
|
22343
|
+
"is-customized": _vm.isCustomized
|
|
21892
22344
|
},
|
|
21893
22345
|
on: {
|
|
21894
22346
|
"change": _vm.apply
|
|
@@ -21949,6 +22401,7 @@ const __vue2_script$n = {
|
|
|
21949
22401
|
return { "--zw-font-family-option": `"${option.id}"` };
|
|
21950
22402
|
}
|
|
21951
22403
|
const currentValue = editor.commands.getFontFamily();
|
|
22404
|
+
const isCustomized = editor.commands.isSettingCustomized(TextSettings.FONT_FAMILY);
|
|
21952
22405
|
const apply2 = (fontFamily) => {
|
|
21953
22406
|
recentFontNames.add(fontFamily);
|
|
21954
22407
|
editor.chain().focus().applyFontFamily(fontFamily).run();
|
|
@@ -21956,6 +22409,7 @@ const __vue2_script$n = {
|
|
|
21956
22409
|
return {
|
|
21957
22410
|
options,
|
|
21958
22411
|
currentValue,
|
|
22412
|
+
isCustomized,
|
|
21959
22413
|
renderOptionStyles,
|
|
21960
22414
|
apply: apply2
|
|
21961
22415
|
};
|
|
@@ -21968,7 +22422,7 @@ var __component__$n = /* @__PURE__ */ normalizeComponent(
|
|
|
21968
22422
|
staticRenderFns$n,
|
|
21969
22423
|
false,
|
|
21970
22424
|
__vue2_injectStyles$n,
|
|
21971
|
-
"
|
|
22425
|
+
"5f8e49dc",
|
|
21972
22426
|
null,
|
|
21973
22427
|
null
|
|
21974
22428
|
);
|
|
@@ -21994,9 +22448,11 @@ var render$m = function __render__23() {
|
|
|
21994
22448
|
},
|
|
21995
22449
|
expression: "{ text: 'Font Weight', hotkey: 'Mod B' }"
|
|
21996
22450
|
}],
|
|
22451
|
+
staticClass: "zw-font-weight-control",
|
|
21997
22452
|
attrs: {
|
|
21998
22453
|
"options": _vm.options,
|
|
21999
|
-
"value": _vm.currentValue
|
|
22454
|
+
"value": _vm.currentValue,
|
|
22455
|
+
"is-customized": _vm.isCustomized
|
|
22000
22456
|
},
|
|
22001
22457
|
on: {
|
|
22002
22458
|
"change": _vm.apply
|
|
@@ -22004,6 +22460,7 @@ var render$m = function __render__23() {
|
|
|
22004
22460
|
});
|
|
22005
22461
|
};
|
|
22006
22462
|
var staticRenderFns$m = [];
|
|
22463
|
+
const FontWeightControl_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22007
22464
|
const __vue2_script$m = {
|
|
22008
22465
|
name: "FontWeightControl",
|
|
22009
22466
|
components: {
|
|
@@ -22017,10 +22474,12 @@ const __vue2_script$m = {
|
|
|
22017
22474
|
const font = editor.commands.getFont();
|
|
22018
22475
|
const options = computed(() => unref(font).weights.map((style2) => ({ id: style2 })));
|
|
22019
22476
|
const currentValue = editor.commands.getFontWeight();
|
|
22477
|
+
const isCustomized = editor.commands.isSettingCustomized(TextSettings.FONT_WEIGHT);
|
|
22020
22478
|
const apply2 = (value) => editor.chain().focus().applyFontWeight(value).run();
|
|
22021
22479
|
return {
|
|
22022
22480
|
options,
|
|
22023
22481
|
currentValue,
|
|
22482
|
+
isCustomized,
|
|
22024
22483
|
apply: apply2
|
|
22025
22484
|
};
|
|
22026
22485
|
}
|
|
@@ -22032,7 +22491,7 @@ var __component__$m = /* @__PURE__ */ normalizeComponent(
|
|
|
22032
22491
|
staticRenderFns$m,
|
|
22033
22492
|
false,
|
|
22034
22493
|
__vue2_injectStyles$m,
|
|
22035
|
-
|
|
22494
|
+
"00378d67",
|
|
22036
22495
|
null,
|
|
22037
22496
|
null
|
|
22038
22497
|
);
|
|
@@ -22061,7 +22520,8 @@ var render$l = function __render__24() {
|
|
|
22061
22520
|
staticClass: "zw-font-size-control",
|
|
22062
22521
|
attrs: {
|
|
22063
22522
|
"options": _vm.options,
|
|
22064
|
-
"value": _vm.currentValue
|
|
22523
|
+
"value": _vm.currentValue,
|
|
22524
|
+
"is-customized": _vm.isCustomized
|
|
22065
22525
|
},
|
|
22066
22526
|
on: {
|
|
22067
22527
|
"change": _vm.apply
|
|
@@ -22085,10 +22545,12 @@ const __vue2_script$l = {
|
|
|
22085
22545
|
return fontSizes.map((size2) => ({ id: size2, title: `${size2}px` }));
|
|
22086
22546
|
});
|
|
22087
22547
|
const currentValue = editor.commands.getFontSize();
|
|
22548
|
+
const isCustomized = editor.commands.isSettingCustomized(TextSettings.FONT_SIZE);
|
|
22088
22549
|
const apply2 = (value) => editor.chain().focus().applyFontSize(value).run();
|
|
22089
22550
|
return {
|
|
22090
22551
|
options,
|
|
22091
22552
|
currentValue,
|
|
22553
|
+
isCustomized,
|
|
22092
22554
|
apply: apply2
|
|
22093
22555
|
};
|
|
22094
22556
|
}
|
|
@@ -22100,7 +22562,7 @@ var __component__$l = /* @__PURE__ */ normalizeComponent(
|
|
|
22100
22562
|
staticRenderFns$l,
|
|
22101
22563
|
false,
|
|
22102
22564
|
__vue2_injectStyles$l,
|
|
22103
|
-
"
|
|
22565
|
+
"13bfe2fe",
|
|
22104
22566
|
null,
|
|
22105
22567
|
null
|
|
22106
22568
|
);
|
|
@@ -22134,6 +22596,7 @@ var render$k = function __render__25() {
|
|
|
22134
22596
|
value: "Font Color",
|
|
22135
22597
|
expression: "'Font Color'"
|
|
22136
22598
|
}],
|
|
22599
|
+
staticClass: "zw-position--relative",
|
|
22137
22600
|
attrs: {
|
|
22138
22601
|
"icon": "",
|
|
22139
22602
|
"skin": "toolbar",
|
|
@@ -22148,7 +22611,23 @@ var render$k = function __render__25() {
|
|
|
22148
22611
|
"size": "28px",
|
|
22149
22612
|
"auto-color": ""
|
|
22150
22613
|
}
|
|
22151
|
-
})
|
|
22614
|
+
}), _vm.isCustomized ? _c("Icon", {
|
|
22615
|
+
directives: [{
|
|
22616
|
+
name: "tooltip",
|
|
22617
|
+
rawName: "v-tooltip.xs",
|
|
22618
|
+
value: "Default parameter setting is changed",
|
|
22619
|
+
expression: "'Default parameter setting is changed'",
|
|
22620
|
+
modifiers: {
|
|
22621
|
+
"xs": true
|
|
22622
|
+
}
|
|
22623
|
+
}],
|
|
22624
|
+
staticClass: "zw-button__customized-indicator",
|
|
22625
|
+
attrs: {
|
|
22626
|
+
"name": "indicator",
|
|
22627
|
+
"size": "9px",
|
|
22628
|
+
"data-test-selector": "customizedIndicator"
|
|
22629
|
+
}
|
|
22630
|
+
}) : _vm._e()], 1)];
|
|
22152
22631
|
}
|
|
22153
22632
|
}])
|
|
22154
22633
|
});
|
|
@@ -22167,9 +22646,11 @@ const __vue2_script$k = {
|
|
|
22167
22646
|
setup() {
|
|
22168
22647
|
const editor = inject(InjectionTokens$1.EDITOR);
|
|
22169
22648
|
const currentValue = editor.commands.getFontColor();
|
|
22649
|
+
const isCustomized = editor.commands.isSettingCustomized(TextSettings.FONT_COLOR);
|
|
22170
22650
|
const apply2 = (color) => editor.chain().applyFontColor(color).run();
|
|
22171
22651
|
return {
|
|
22172
22652
|
currentValue,
|
|
22653
|
+
isCustomized,
|
|
22173
22654
|
apply: apply2
|
|
22174
22655
|
};
|
|
22175
22656
|
}
|
|
@@ -22288,6 +22769,7 @@ var render$i = function __render__27() {
|
|
|
22288
22769
|
},
|
|
22289
22770
|
expression: "{ text: 'Italic', hotkey: 'Mod I' }"
|
|
22290
22771
|
}],
|
|
22772
|
+
staticClass: "zw-position--relative",
|
|
22291
22773
|
attrs: {
|
|
22292
22774
|
"skin": "toolbar",
|
|
22293
22775
|
"icon": "",
|
|
@@ -22303,7 +22785,23 @@ var render$i = function __render__27() {
|
|
|
22303
22785
|
"size": "28px",
|
|
22304
22786
|
"auto-color": ""
|
|
22305
22787
|
}
|
|
22306
|
-
})
|
|
22788
|
+
}), _vm.isCustomized ? _c("Icon", {
|
|
22789
|
+
directives: [{
|
|
22790
|
+
name: "tooltip",
|
|
22791
|
+
rawName: "v-tooltip.xs",
|
|
22792
|
+
value: "Default parameter setting is changed",
|
|
22793
|
+
expression: "'Default parameter setting is changed'",
|
|
22794
|
+
modifiers: {
|
|
22795
|
+
"xs": true
|
|
22796
|
+
}
|
|
22797
|
+
}],
|
|
22798
|
+
staticClass: "zw-button__customized-indicator",
|
|
22799
|
+
attrs: {
|
|
22800
|
+
"name": "indicator",
|
|
22801
|
+
"size": "9px",
|
|
22802
|
+
"data-test-selector": "customizedIndicator"
|
|
22803
|
+
}
|
|
22804
|
+
}) : _vm._e()], 1);
|
|
22307
22805
|
};
|
|
22308
22806
|
var staticRenderFns$i = [];
|
|
22309
22807
|
const __vue2_script$i = {
|
|
@@ -22318,11 +22816,13 @@ const __vue2_script$i = {
|
|
|
22318
22816
|
setup() {
|
|
22319
22817
|
const editor = inject(InjectionTokens$1.EDITOR);
|
|
22320
22818
|
const currentValue = editor.commands.isItalic();
|
|
22819
|
+
const isCustomized = editor.commands.isSettingCustomized(TextSettings.FONT_STYLE);
|
|
22321
22820
|
const isAvailable = editor.commands.isItalicAvailable();
|
|
22322
22821
|
const apply2 = () => editor.chain().focus().toggleItalic().run();
|
|
22323
22822
|
return {
|
|
22324
22823
|
isAvailable,
|
|
22325
22824
|
currentValue,
|
|
22825
|
+
isCustomized,
|
|
22326
22826
|
apply: apply2
|
|
22327
22827
|
};
|
|
22328
22828
|
}
|
|
@@ -22360,6 +22860,7 @@ var render$h = function __render__28() {
|
|
|
22360
22860
|
},
|
|
22361
22861
|
expression: "{ text: 'Underline', hotkey: 'Mod U' }"
|
|
22362
22862
|
}],
|
|
22863
|
+
staticClass: "zw-position--relative",
|
|
22363
22864
|
attrs: {
|
|
22364
22865
|
"skin": "toolbar",
|
|
22365
22866
|
"icon": "",
|
|
@@ -22374,7 +22875,23 @@ var render$h = function __render__28() {
|
|
|
22374
22875
|
"size": "28px",
|
|
22375
22876
|
"auto-color": ""
|
|
22376
22877
|
}
|
|
22377
|
-
})
|
|
22878
|
+
}), _vm.isCustomized ? _c("Icon", {
|
|
22879
|
+
directives: [{
|
|
22880
|
+
name: "tooltip",
|
|
22881
|
+
rawName: "v-tooltip.xs",
|
|
22882
|
+
value: "Default parameter setting is changed",
|
|
22883
|
+
expression: "'Default parameter setting is changed'",
|
|
22884
|
+
modifiers: {
|
|
22885
|
+
"xs": true
|
|
22886
|
+
}
|
|
22887
|
+
}],
|
|
22888
|
+
staticClass: "zw-button__customized-indicator",
|
|
22889
|
+
attrs: {
|
|
22890
|
+
"name": "indicator",
|
|
22891
|
+
"size": "9px",
|
|
22892
|
+
"data-test-selector": "customizedIndicator"
|
|
22893
|
+
}
|
|
22894
|
+
}) : _vm._e()], 1);
|
|
22378
22895
|
};
|
|
22379
22896
|
var staticRenderFns$h = [];
|
|
22380
22897
|
const __vue2_script$h = {
|
|
@@ -22389,9 +22906,11 @@ const __vue2_script$h = {
|
|
|
22389
22906
|
setup() {
|
|
22390
22907
|
const editor = inject(InjectionTokens$1.EDITOR);
|
|
22391
22908
|
const currentValue = editor.commands.isUnderline();
|
|
22909
|
+
const isCustomized = editor.commands.isUnderlineCustomized();
|
|
22392
22910
|
const apply2 = () => editor.chain().focus().toggleUnderline().run();
|
|
22393
22911
|
return {
|
|
22394
22912
|
currentValue,
|
|
22913
|
+
isCustomized,
|
|
22395
22914
|
apply: apply2
|
|
22396
22915
|
};
|
|
22397
22916
|
}
|
|
@@ -22652,6 +23171,7 @@ var render$d = function __render__32() {
|
|
|
22652
23171
|
value: option.tooltip,
|
|
22653
23172
|
expression: "option.tooltip"
|
|
22654
23173
|
}],
|
|
23174
|
+
staticClass: "zw-position--relative",
|
|
22655
23175
|
attrs: {
|
|
22656
23176
|
"icon": "",
|
|
22657
23177
|
"skin": "toolbar",
|
|
@@ -22660,7 +23180,23 @@ var render$d = function __render__32() {
|
|
|
22660
23180
|
on: {
|
|
22661
23181
|
"click": activate
|
|
22662
23182
|
}
|
|
22663
|
-
}, [_c("Icon", {
|
|
23183
|
+
}, [_vm.isCustomized && isActive2 ? _c("Icon", {
|
|
23184
|
+
directives: [{
|
|
23185
|
+
name: "tooltip",
|
|
23186
|
+
rawName: "v-tooltip.xs",
|
|
23187
|
+
value: "Default parameter setting is changed",
|
|
23188
|
+
expression: "'Default parameter setting is changed'",
|
|
23189
|
+
modifiers: {
|
|
23190
|
+
"xs": true
|
|
23191
|
+
}
|
|
23192
|
+
}],
|
|
23193
|
+
staticClass: "zw-button__customized-indicator",
|
|
23194
|
+
attrs: {
|
|
23195
|
+
"name": "indicator",
|
|
23196
|
+
"size": "9px",
|
|
23197
|
+
"data-test-selector": "customizedIndicator"
|
|
23198
|
+
}
|
|
23199
|
+
}) : _vm._e(), _c("Icon", {
|
|
22664
23200
|
attrs: {
|
|
22665
23201
|
"name": "alignment-".concat(option.id),
|
|
22666
23202
|
"size": "28px",
|
|
@@ -22703,12 +23239,14 @@ const __vue2_script$d = {
|
|
|
22703
23239
|
setup(_, { emit }) {
|
|
22704
23240
|
const editor = inject(InjectionTokens$1.EDITOR);
|
|
22705
23241
|
const currentValue = editor.commands.getAlignment();
|
|
23242
|
+
const isCustomized = editor.commands.isSettingCustomized(TextSettings.ALIGNMENT);
|
|
22706
23243
|
function apply2(value) {
|
|
22707
23244
|
editor.chain().focus().applyAlignment(value).run();
|
|
22708
23245
|
emit("applied");
|
|
22709
23246
|
}
|
|
22710
23247
|
return {
|
|
22711
23248
|
currentValue,
|
|
23249
|
+
isCustomized,
|
|
22712
23250
|
apply: apply2
|
|
22713
23251
|
};
|
|
22714
23252
|
}
|
|
@@ -22834,6 +23372,7 @@ var render$b = function __render__34() {
|
|
|
22834
23372
|
value: "Line Height",
|
|
22835
23373
|
expression: "'Line Height'"
|
|
22836
23374
|
}],
|
|
23375
|
+
staticClass: "zw-position--relative",
|
|
22837
23376
|
attrs: {
|
|
22838
23377
|
"icon": "",
|
|
22839
23378
|
"skin": "toolbar",
|
|
@@ -22848,7 +23387,23 @@ var render$b = function __render__34() {
|
|
|
22848
23387
|
"size": "28px",
|
|
22849
23388
|
"auto-color": ""
|
|
22850
23389
|
}
|
|
22851
|
-
})
|
|
23390
|
+
}), _vm.isCustomized ? _c("Icon", {
|
|
23391
|
+
directives: [{
|
|
23392
|
+
name: "tooltip",
|
|
23393
|
+
rawName: "v-tooltip.xs",
|
|
23394
|
+
value: "Default parameter setting is changed",
|
|
23395
|
+
expression: "'Default parameter setting is changed'",
|
|
23396
|
+
modifiers: {
|
|
23397
|
+
"xs": true
|
|
23398
|
+
}
|
|
23399
|
+
}],
|
|
23400
|
+
staticClass: "zw-button__customized-indicator",
|
|
23401
|
+
attrs: {
|
|
23402
|
+
"name": "indicator",
|
|
23403
|
+
"size": "9px",
|
|
23404
|
+
"data-test-selector": "customizedIndicator"
|
|
23405
|
+
}
|
|
23406
|
+
}) : _vm._e()], 1), _c("Modal", {
|
|
22852
23407
|
ref: "modalRef",
|
|
22853
23408
|
staticClass: "zw-line-height-control__modal",
|
|
22854
23409
|
attrs: {
|
|
@@ -22907,11 +23462,13 @@ const __vue2_script$b = {
|
|
|
22907
23462
|
const editor = inject(InjectionTokens$1.EDITOR);
|
|
22908
23463
|
const toggler = useModalToggler({ wrapperRef, modalRef });
|
|
22909
23464
|
const currentValue = editor.commands.getLineHeight();
|
|
23465
|
+
const isCustomized = editor.commands.isSettingCustomized(TextSettings.LINE_HEIGHT);
|
|
22910
23466
|
const apply2 = (value) => editor.commands.applyLineHeight(String(value));
|
|
22911
23467
|
return {
|
|
22912
23468
|
wrapperRef,
|
|
22913
23469
|
modalRef,
|
|
22914
23470
|
isOpened: toggler.isOpened,
|
|
23471
|
+
isCustomized,
|
|
22915
23472
|
toggler,
|
|
22916
23473
|
currentValue,
|
|
22917
23474
|
apply: apply2
|
|
@@ -22925,7 +23482,7 @@ var __component__$b = /* @__PURE__ */ normalizeComponent(
|
|
|
22925
23482
|
staticRenderFns$b,
|
|
22926
23483
|
false,
|
|
22927
23484
|
__vue2_injectStyles$b,
|
|
22928
|
-
"
|
|
23485
|
+
"2f58c40f",
|
|
22929
23486
|
null,
|
|
22930
23487
|
null
|
|
22931
23488
|
);
|
|
@@ -23920,24 +24477,24 @@ const Toolbar = /* @__PURE__ */ function() {
|
|
|
23920
24477
|
return __component__$1.exports;
|
|
23921
24478
|
}();
|
|
23922
24479
|
function useEditor({ content, onChange, extensions: extensions2, isReadonlyRef }) {
|
|
23923
|
-
|
|
24480
|
+
let editor;
|
|
24481
|
+
const getContent = () => markWysiwygContent(editor.getJSON());
|
|
24482
|
+
editor = reactive(new Editor({
|
|
23924
24483
|
content: ContentNormalizer.normalize(content.value),
|
|
23925
|
-
onUpdate: () => onChange(
|
|
24484
|
+
onUpdate: () => onChange(getContent()),
|
|
23926
24485
|
extensions: extensions2,
|
|
23927
24486
|
injectCSS: false,
|
|
23928
24487
|
editable: !unref(isReadonlyRef)
|
|
23929
24488
|
}));
|
|
23930
24489
|
onUnmounted(() => editor.destroy());
|
|
23931
24490
|
watch(content, (value) => {
|
|
23932
|
-
|
|
23933
|
-
|
|
23934
|
-
|
|
23935
|
-
const content3 = ContentNormalizer.normalize(value);
|
|
23936
|
-
editor.commands.setContent(content3, false);
|
|
24491
|
+
if (JSON.stringify(getContent()) !== JSON.stringify(value)) {
|
|
24492
|
+
const content2 = ContentNormalizer.normalize(value);
|
|
24493
|
+
editor.commands.setContent(content2, false);
|
|
23937
24494
|
}
|
|
23938
24495
|
});
|
|
23939
24496
|
watch(isReadonlyRef, (isReadonly) => editor.setEditable(!isReadonly));
|
|
23940
|
-
return editor;
|
|
24497
|
+
return { editor, getContent };
|
|
23941
24498
|
}
|
|
23942
24499
|
function useToolbar({ wrapperRef, offsets, isActiveRef, placementRef }) {
|
|
23943
24500
|
const wrapperEl = useElementRef(wrapperRef);
|
|
@@ -23975,7 +24532,7 @@ function useToolbar({ wrapperRef, offsets, isActiveRef, placementRef }) {
|
|
|
23975
24532
|
}
|
|
23976
24533
|
const FontFamily = Mark.create({
|
|
23977
24534
|
name: TextSettings.FONT_FAMILY,
|
|
23978
|
-
group:
|
|
24535
|
+
group: MarkGroups.SETTINGS,
|
|
23979
24536
|
addOptions: () => ({
|
|
23980
24537
|
fonts: []
|
|
23981
24538
|
}),
|
|
@@ -24017,7 +24574,7 @@ const FontFamily = Mark.create({
|
|
|
24017
24574
|
},
|
|
24018
24575
|
parseHTML() {
|
|
24019
24576
|
const getAttrs = (input) => {
|
|
24020
|
-
const parsed = input.replace(/"/g, "");
|
|
24577
|
+
const parsed = input.replace(/["']/g, "");
|
|
24021
24578
|
const isExists = this.options.fonts.some((font) => font.name === parsed);
|
|
24022
24579
|
const value = isExists ? parsed : unref(this.options.defaultPreset).common.font_family;
|
|
24023
24580
|
return { value };
|
|
@@ -24043,7 +24600,7 @@ function makePresetClass(base2, preset) {
|
|
|
24043
24600
|
return baseClass + preset.id;
|
|
24044
24601
|
}
|
|
24045
24602
|
const StylePreset = Extension.create({
|
|
24046
|
-
name:
|
|
24603
|
+
name: TextSettings.STYLE_PRESET,
|
|
24047
24604
|
addStorage: () => ({
|
|
24048
24605
|
presetStyleEl: null
|
|
24049
24606
|
}),
|
|
@@ -24164,11 +24721,19 @@ const StylePreset = Extension.create({
|
|
|
24164
24721
|
};
|
|
24165
24722
|
});
|
|
24166
24723
|
}),
|
|
24724
|
+
isSettingCustomized: createCommand(({ commands: commands2 }, name) => {
|
|
24725
|
+
const customization = commands2.getPresetCustomization();
|
|
24726
|
+
const group = TextSettings.attributes.includes(name) ? "attributes" : "marks";
|
|
24727
|
+
return computed(() => {
|
|
24728
|
+
var _a, _b;
|
|
24729
|
+
return (_b = (_a = unref(customization)[group]) == null ? void 0 : _a.includes(name)) != null ? _b : false;
|
|
24730
|
+
});
|
|
24731
|
+
}),
|
|
24167
24732
|
removePresetCustomization: createCommand(({ chain }) => {
|
|
24168
24733
|
chain().storeSelection().expandSelectionToBlock().removeMarks(TextSettings.marks).resetAttributes(NodeTypes.PARAGRAPH, TextSettings.attributes).resetAttributes(NodeTypes.HEADING, TextSettings.attributes).restoreSelection().run();
|
|
24169
24734
|
}),
|
|
24170
24735
|
removeFormat: createCommand(({ chain }) => {
|
|
24171
|
-
chain().storeSelection().expandSelectionToBlock().
|
|
24736
|
+
chain().storeSelection().expandSelectionToBlock().removeAllMarks().applyDefaultPreset().restoreSelection().run();
|
|
24172
24737
|
})
|
|
24173
24738
|
};
|
|
24174
24739
|
},
|
|
@@ -24199,7 +24764,7 @@ const StylePreset = Extension.create({
|
|
|
24199
24764
|
});
|
|
24200
24765
|
const FontWeight = Mark.create({
|
|
24201
24766
|
name: TextSettings.FONT_WEIGHT,
|
|
24202
|
-
group:
|
|
24767
|
+
group: MarkGroups.SETTINGS,
|
|
24203
24768
|
addAttributes: () => ({
|
|
24204
24769
|
value: { required: true }
|
|
24205
24770
|
}),
|
|
@@ -24270,7 +24835,7 @@ const FontWeight = Mark.create({
|
|
|
24270
24835
|
});
|
|
24271
24836
|
const FontSize = Mark.create({
|
|
24272
24837
|
name: TextSettings.FONT_SIZE,
|
|
24273
|
-
group:
|
|
24838
|
+
group: MarkGroups.SETTINGS,
|
|
24274
24839
|
addOptions: () => ({
|
|
24275
24840
|
minSize: 1,
|
|
24276
24841
|
maxSize: 100
|
|
@@ -24348,7 +24913,7 @@ const FontSize = Mark.create({
|
|
|
24348
24913
|
});
|
|
24349
24914
|
const FontColor = Mark.create({
|
|
24350
24915
|
name: TextSettings.FONT_COLOR,
|
|
24351
|
-
group:
|
|
24916
|
+
group: MarkGroups.SETTINGS,
|
|
24352
24917
|
addAttributes: () => ({
|
|
24353
24918
|
value: { required: true }
|
|
24354
24919
|
}),
|
|
@@ -24385,7 +24950,6 @@ const FontColor = Mark.create({
|
|
|
24385
24950
|
});
|
|
24386
24951
|
const BackgroundColor = Mark.create({
|
|
24387
24952
|
name: TextSettings.BACKGROUND_COLOR,
|
|
24388
|
-
group: "settings",
|
|
24389
24953
|
addAttributes: () => ({
|
|
24390
24954
|
value: { required: true }
|
|
24391
24955
|
}),
|
|
@@ -24426,7 +24990,7 @@ const DeviceManager = Extension.create({
|
|
|
24426
24990
|
});
|
|
24427
24991
|
const FontStyle = Mark.create({
|
|
24428
24992
|
name: TextSettings.FONT_STYLE,
|
|
24429
|
-
group:
|
|
24993
|
+
group: MarkGroups.SETTINGS,
|
|
24430
24994
|
addAttributes: () => ({
|
|
24431
24995
|
italic: { required: true }
|
|
24432
24996
|
}),
|
|
@@ -24521,6 +25085,11 @@ const TextDecoration = Mark.create({
|
|
|
24521
25085
|
};
|
|
24522
25086
|
});
|
|
24523
25087
|
}),
|
|
25088
|
+
isUnderlineCustomized: createCommand(({ commands: commands2 }) => {
|
|
25089
|
+
const currentValue = commands2.isUnderline();
|
|
25090
|
+
const defaultValue = commands2.getDefaultTextDecoration();
|
|
25091
|
+
return computed(() => unref(currentValue) !== unref(defaultValue).underline);
|
|
25092
|
+
}),
|
|
24524
25093
|
getDefaultTextDecoration: createCommand(({ commands: commands2 }) => {
|
|
24525
25094
|
const preset = commands2.getPreset();
|
|
24526
25095
|
return computed(() => {
|
|
@@ -24735,30 +25304,149 @@ const LineHeight = Extension.create({
|
|
|
24735
25304
|
}
|
|
24736
25305
|
}
|
|
24737
25306
|
}
|
|
24738
|
-
];
|
|
24739
|
-
},
|
|
24740
|
-
addCommands() {
|
|
24741
|
-
return {
|
|
24742
|
-
getLineHeight: createCommand(({ commands: commands2 }) => {
|
|
24743
|
-
const attribute = commands2.getBlockAttributes(this.name, DEFAULTS);
|
|
24744
|
-
const device = commands2.getDevice();
|
|
24745
|
-
const defaultValue = commands2.getDefaultLineHeight();
|
|
24746
|
-
return computed(() => {
|
|
24747
|
-
var _a, _b;
|
|
24748
|
-
return (_b = (_a = unref(attribute)) == null ? void 0 : _a[unref(device)]) != null ? _b : unref(defaultValue);
|
|
24749
|
-
});
|
|
24750
|
-
}),
|
|
24751
|
-
getDefaultLineHeight: createCommand(({ commands: commands2 }) => {
|
|
24752
|
-
const device = commands2.getDevice();
|
|
24753
|
-
const preset = commands2.getPreset();
|
|
24754
|
-
return computed(() => unref(preset)[unref(device)].line_height);
|
|
24755
|
-
}),
|
|
24756
|
-
applyLineHeight: createCommand(({ commands: commands2 }, value) => {
|
|
24757
|
-
commands2.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: null }, DEFAULTS);
|
|
24758
|
-
})
|
|
24759
|
-
};
|
|
25307
|
+
];
|
|
25308
|
+
},
|
|
25309
|
+
addCommands() {
|
|
25310
|
+
return {
|
|
25311
|
+
getLineHeight: createCommand(({ commands: commands2 }) => {
|
|
25312
|
+
const attribute = commands2.getBlockAttributes(this.name, DEFAULTS);
|
|
25313
|
+
const device = commands2.getDevice();
|
|
25314
|
+
const defaultValue = commands2.getDefaultLineHeight();
|
|
25315
|
+
return computed(() => {
|
|
25316
|
+
var _a, _b;
|
|
25317
|
+
return (_b = (_a = unref(attribute)) == null ? void 0 : _a[unref(device)]) != null ? _b : unref(defaultValue);
|
|
25318
|
+
});
|
|
25319
|
+
}),
|
|
25320
|
+
getDefaultLineHeight: createCommand(({ commands: commands2 }) => {
|
|
25321
|
+
const device = commands2.getDevice();
|
|
25322
|
+
const preset = commands2.getPreset();
|
|
25323
|
+
return computed(() => unref(preset)[unref(device)].line_height);
|
|
25324
|
+
}),
|
|
25325
|
+
applyLineHeight: createCommand(({ commands: commands2 }, value) => {
|
|
25326
|
+
commands2.setBlockAttributes(this.name, { desktop: value, tablet: value, mobile: null }, DEFAULTS);
|
|
25327
|
+
})
|
|
25328
|
+
};
|
|
25329
|
+
}
|
|
25330
|
+
});
|
|
25331
|
+
class RemoveNodeMarkStep extends Step {
|
|
25332
|
+
static fromJSON(schema, json) {
|
|
25333
|
+
if (typeof json.pos != "number") {
|
|
25334
|
+
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
25335
|
+
}
|
|
25336
|
+
return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
25337
|
+
}
|
|
25338
|
+
constructor(pos, mark) {
|
|
25339
|
+
super();
|
|
25340
|
+
this.pos = pos;
|
|
25341
|
+
this.mark = mark;
|
|
25342
|
+
}
|
|
25343
|
+
apply(doc2) {
|
|
25344
|
+
const node = doc2.nodeAt(this.pos);
|
|
25345
|
+
if (!node)
|
|
25346
|
+
return StepResult.fail("No node at mark step's position");
|
|
25347
|
+
const updated = node.type.create(node.attrs, null, this.mark.removeFromSet(node.marks));
|
|
25348
|
+
const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
|
|
25349
|
+
return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
|
|
25350
|
+
}
|
|
25351
|
+
invert(doc2) {
|
|
25352
|
+
const node = doc2.nodeAt(this.pos);
|
|
25353
|
+
if (!node || !this.mark.isInSet(node.marks))
|
|
25354
|
+
return this;
|
|
25355
|
+
return new AddNodeMarkStep(this.pos, this.mark);
|
|
25356
|
+
}
|
|
25357
|
+
map(mapping) {
|
|
25358
|
+
const pos = mapping.mapResult(this.pos, 1);
|
|
25359
|
+
return pos.deletedAfter ? null : new RemoveNodeMarkStep(pos.pos, this.mark);
|
|
25360
|
+
}
|
|
25361
|
+
toJSON() {
|
|
25362
|
+
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
25363
|
+
}
|
|
25364
|
+
}
|
|
25365
|
+
Step.jsonID("removeNodeMark", RemoveNodeMarkStep);
|
|
25366
|
+
class AddNodeMarkStep extends Step {
|
|
25367
|
+
static fromJSON(schema, json) {
|
|
25368
|
+
if (typeof json.pos != "number") {
|
|
25369
|
+
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
25370
|
+
}
|
|
25371
|
+
return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
25372
|
+
}
|
|
25373
|
+
constructor(pos, mark) {
|
|
25374
|
+
super();
|
|
25375
|
+
this.pos = pos;
|
|
25376
|
+
this.mark = mark;
|
|
25377
|
+
}
|
|
25378
|
+
apply(doc2) {
|
|
25379
|
+
const node = doc2.nodeAt(this.pos);
|
|
25380
|
+
if (!node)
|
|
25381
|
+
return StepResult.fail("No node at mark step's position");
|
|
25382
|
+
const updated = node.type.create(node.attrs, null, this.mark.addToSet(node.marks));
|
|
25383
|
+
const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
|
|
25384
|
+
return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
|
|
25385
|
+
}
|
|
25386
|
+
invert(doc2) {
|
|
25387
|
+
const node = doc2.nodeAt(this.pos);
|
|
25388
|
+
if (node) {
|
|
25389
|
+
const newSet = this.mark.addToSet(node.marks);
|
|
25390
|
+
if (newSet.length === node.marks.length) {
|
|
25391
|
+
for (const mark of node.marks) {
|
|
25392
|
+
if (!mark.isInSet(newSet)) {
|
|
25393
|
+
return new AddNodeMarkStep(this.pos, mark);
|
|
25394
|
+
}
|
|
25395
|
+
}
|
|
25396
|
+
return new AddNodeMarkStep(this.pos, this.mark);
|
|
25397
|
+
}
|
|
25398
|
+
}
|
|
25399
|
+
return new RemoveNodeMarkStep(this.pos, this.mark);
|
|
24760
25400
|
}
|
|
24761
|
-
|
|
25401
|
+
map(mapping) {
|
|
25402
|
+
const pos = mapping.mapResult(this.pos, 1);
|
|
25403
|
+
return pos.deletedAfter ? null : new AddNodeMarkStep(pos.pos, this.mark);
|
|
25404
|
+
}
|
|
25405
|
+
toJSON() {
|
|
25406
|
+
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
25407
|
+
}
|
|
25408
|
+
}
|
|
25409
|
+
Step.jsonID("addNodeMark", AddNodeMarkStep);
|
|
25410
|
+
class AttrStep extends Step {
|
|
25411
|
+
static fromJSON(schema, json) {
|
|
25412
|
+
if (typeof json.pos != "number" || typeof json.attr != "string") {
|
|
25413
|
+
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
25414
|
+
}
|
|
25415
|
+
return new AttrStep(json.pos, json.attr, json.value);
|
|
25416
|
+
}
|
|
25417
|
+
constructor(pos, attr, value) {
|
|
25418
|
+
super();
|
|
25419
|
+
this.pos = pos;
|
|
25420
|
+
this.attr = attr;
|
|
25421
|
+
this.value = value;
|
|
25422
|
+
}
|
|
25423
|
+
apply(doc2) {
|
|
25424
|
+
const node = doc2.nodeAt(this.pos);
|
|
25425
|
+
if (!node)
|
|
25426
|
+
return StepResult.fail("No node at attribute step's position");
|
|
25427
|
+
const attrs = /* @__PURE__ */ Object.create(null);
|
|
25428
|
+
for (let name in node.attrs)
|
|
25429
|
+
attrs[name] = node.attrs[name];
|
|
25430
|
+
attrs[this.attr] = this.value;
|
|
25431
|
+
const updated = node.type.create(attrs, null, node.marks);
|
|
25432
|
+
const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
|
|
25433
|
+
return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
|
|
25434
|
+
}
|
|
25435
|
+
getMap() {
|
|
25436
|
+
return StepMap.empty;
|
|
25437
|
+
}
|
|
25438
|
+
invert(doc2) {
|
|
25439
|
+
return new AttrStep(this.pos, this.attr, doc2.nodeAt(this.pos).attrs[this.attr]);
|
|
25440
|
+
}
|
|
25441
|
+
map(mapping) {
|
|
25442
|
+
let pos = mapping.mapResult(this.pos, 1);
|
|
25443
|
+
return pos.deletedAfter ? null : new AttrStep(pos.pos, this.attr, this.value);
|
|
25444
|
+
}
|
|
25445
|
+
toJSON() {
|
|
25446
|
+
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
25447
|
+
}
|
|
25448
|
+
}
|
|
25449
|
+
Step.jsonID("attr", AttrStep);
|
|
24762
25450
|
const ListItem$1 = Node.create({
|
|
24763
25451
|
name: "listItem",
|
|
24764
25452
|
addOptions() {
|
|
@@ -24788,20 +25476,35 @@ const ListItem$1 = Node.create({
|
|
|
24788
25476
|
});
|
|
24789
25477
|
const ListItem = ListItem$1.extend({
|
|
24790
25478
|
name: NodeTypes.LIST_ITEM,
|
|
24791
|
-
marks:
|
|
25479
|
+
marks: MarkGroups.SETTINGS,
|
|
25480
|
+
addCommands() {
|
|
25481
|
+
const getSelectedListItem = ({ selection, doc: doc2 }) => {
|
|
25482
|
+
const position = selection.$cursor.before(selection.$cursor.depth - 1);
|
|
25483
|
+
return { position, node: doc2.nodeAt(position) };
|
|
25484
|
+
};
|
|
25485
|
+
return {
|
|
25486
|
+
listItemNewline: createCommand(({ commands: commands2, tr }) => {
|
|
25487
|
+
const { node: initialNode } = getSelectedListItem(tr);
|
|
25488
|
+
commands2.splitListItem(this.name);
|
|
25489
|
+
const { position } = getSelectedListItem(tr);
|
|
25490
|
+
for (const mark of initialNode.marks) {
|
|
25491
|
+
tr.step(new AddNodeMarkStep(position, copyMark(mark)));
|
|
25492
|
+
}
|
|
25493
|
+
})
|
|
25494
|
+
};
|
|
25495
|
+
},
|
|
24792
25496
|
addOptions: () => ({
|
|
24793
25497
|
HTMLAttributes: { class: "zw-style" }
|
|
24794
25498
|
}),
|
|
24795
25499
|
addKeyboardShortcuts() {
|
|
24796
|
-
|
|
24797
|
-
return { Enter };
|
|
25500
|
+
return { Enter: createKeyboardShortcut("listItemNewline") };
|
|
24798
25501
|
}
|
|
24799
25502
|
});
|
|
24800
25503
|
const List = Node.create({
|
|
24801
25504
|
name: NodeTypes.LIST,
|
|
24802
25505
|
content: `${NodeTypes.LIST_ITEM}+`,
|
|
24803
25506
|
group: "block list",
|
|
24804
|
-
marks:
|
|
25507
|
+
marks: MarkGroups.SETTINGS,
|
|
24805
25508
|
addExtensions: () => [
|
|
24806
25509
|
ListItem
|
|
24807
25510
|
],
|
|
@@ -24861,15 +25564,69 @@ const List = Node.create({
|
|
|
24861
25564
|
applyList: createCommand(({ commands: commands2, chain }, type) => {
|
|
24862
25565
|
const currentType = unref(commands2.getListType());
|
|
24863
25566
|
if (currentType === type) {
|
|
24864
|
-
commands2.
|
|
25567
|
+
commands2.removeList();
|
|
24865
25568
|
return;
|
|
24866
25569
|
}
|
|
24867
|
-
return chain().applyDefaultPreset().
|
|
25570
|
+
return chain().applyDefaultPreset().toggleList(NodeTypes.LIST, NodeTypes.LIST_ITEM).setBlockAttributes("bullet", { type }).command(({ commands: commands3, tr }) => commands3._bubbleListItemMarks(tr)).run();
|
|
24868
25571
|
}),
|
|
24869
|
-
|
|
24870
|
-
|
|
25572
|
+
_bubbleListItemMarks: createCommand((_, tr) => {
|
|
25573
|
+
const { doc: doc2, selection } = tr;
|
|
25574
|
+
const from2 = selection.$from.start();
|
|
25575
|
+
const to = selection.$to.end();
|
|
25576
|
+
function canBubbleMark(node, childMark) {
|
|
25577
|
+
if (TextSettings.inlineMarks.includes(childMark.type))
|
|
25578
|
+
return false;
|
|
25579
|
+
if (childMark.type.isInSet(node.marks))
|
|
25580
|
+
return false;
|
|
25581
|
+
for (const child of node.content.content) {
|
|
25582
|
+
if (!child.childCount)
|
|
25583
|
+
continue;
|
|
25584
|
+
if (!child.marks)
|
|
25585
|
+
return false;
|
|
25586
|
+
if (!childMark.isInSet(child.marks))
|
|
25587
|
+
return false;
|
|
25588
|
+
}
|
|
25589
|
+
return true;
|
|
25590
|
+
}
|
|
25591
|
+
doc2.nodesBetween(from2, to, (node, position) => {
|
|
25592
|
+
if (node.type.name === NodeTypes.LIST)
|
|
25593
|
+
return;
|
|
25594
|
+
if (node.type.name !== NodeTypes.LIST_ITEM)
|
|
25595
|
+
return false;
|
|
25596
|
+
const bubbled = [];
|
|
25597
|
+
node.forEach((child) => {
|
|
25598
|
+
for (const childMark of child.marks) {
|
|
25599
|
+
if (childMark.isInSet(bubbled)) {
|
|
25600
|
+
tr.step(new RemoveNodeMarkStep(position + 1, childMark));
|
|
25601
|
+
continue;
|
|
25602
|
+
}
|
|
25603
|
+
if (canBubbleMark(node, childMark)) {
|
|
25604
|
+
tr.step(new RemoveNodeMarkStep(position + 1, childMark));
|
|
25605
|
+
tr.step(new AddNodeMarkStep(position, copyMark(childMark)));
|
|
25606
|
+
bubbled.push(childMark);
|
|
25607
|
+
}
|
|
25608
|
+
}
|
|
25609
|
+
});
|
|
25610
|
+
return false;
|
|
25611
|
+
});
|
|
24871
25612
|
}),
|
|
24872
|
-
removeList: createCommand(({ commands: commands2 }) => {
|
|
25613
|
+
removeList: createCommand(({ commands: commands2, state }) => {
|
|
25614
|
+
const { tr, doc: doc2, selection } = state;
|
|
25615
|
+
const from2 = selection.$from.start();
|
|
25616
|
+
const to = selection.$to.end();
|
|
25617
|
+
doc2.nodesBetween(from2, to, (node, position, parent) => {
|
|
25618
|
+
if ([NodeTypes.LIST, NodeTypes.LIST_ITEM].includes(node.type.name))
|
|
25619
|
+
return;
|
|
25620
|
+
if (parent.type.name !== NodeTypes.LIST_ITEM)
|
|
25621
|
+
return false;
|
|
25622
|
+
const addingMarks = parent.marks.filter(function(mark) {
|
|
25623
|
+
return !mark.type.isInSet(node.marks);
|
|
25624
|
+
});
|
|
25625
|
+
for (const mark of addingMarks) {
|
|
25626
|
+
tr.step(new AddNodeMarkStep(position, copyMark(mark)));
|
|
25627
|
+
}
|
|
25628
|
+
return false;
|
|
25629
|
+
});
|
|
24873
25630
|
commands2.liftListItem(NodeTypes.LIST_ITEM);
|
|
24874
25631
|
})
|
|
24875
25632
|
};
|
|
@@ -25979,11 +26736,13 @@ const Superscript = Superscript$1.extend({
|
|
|
25979
26736
|
HTMLAttributes: { class: "zw-superscript" }
|
|
25980
26737
|
}),
|
|
25981
26738
|
addCommands() {
|
|
26739
|
+
const { setSuperscript, unsetSuperscript } = this.parent();
|
|
25982
26740
|
return {
|
|
25983
|
-
|
|
26741
|
+
applySuperscript: setSuperscript,
|
|
26742
|
+
removeSuperscript: unsetSuperscript,
|
|
25984
26743
|
toggleSuperscript: createCommand(({ commands: commands2 }) => {
|
|
25985
26744
|
const isActive2 = unref(commands2.isSuperscript());
|
|
25986
|
-
isActive2 ? commands2.
|
|
26745
|
+
isActive2 ? commands2.applySuperscript() : commands2.removeSuperscript();
|
|
25987
26746
|
}),
|
|
25988
26747
|
isSuperscript: createCommand(({ commands: commands2 }) => {
|
|
25989
26748
|
const selectionRef = commands2.getMark(this.name);
|
|
@@ -26602,125 +27361,6 @@ const History = Extension.create({
|
|
|
26602
27361
|
};
|
|
26603
27362
|
}
|
|
26604
27363
|
});
|
|
26605
|
-
class RemoveNodeMarkStep extends Step {
|
|
26606
|
-
static fromJSON(schema, json) {
|
|
26607
|
-
if (typeof json.pos != "number") {
|
|
26608
|
-
throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
|
|
26609
|
-
}
|
|
26610
|
-
return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
26611
|
-
}
|
|
26612
|
-
constructor(pos, mark) {
|
|
26613
|
-
super();
|
|
26614
|
-
this.pos = pos;
|
|
26615
|
-
this.mark = mark;
|
|
26616
|
-
}
|
|
26617
|
-
apply(doc2) {
|
|
26618
|
-
const node = doc2.nodeAt(this.pos);
|
|
26619
|
-
if (!node)
|
|
26620
|
-
return StepResult.fail("No node at mark step's position");
|
|
26621
|
-
const updated = node.type.create(node.attrs, null, this.mark.removeFromSet(node.marks));
|
|
26622
|
-
const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
|
|
26623
|
-
return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
|
|
26624
|
-
}
|
|
26625
|
-
invert(doc2) {
|
|
26626
|
-
const node = doc2.nodeAt(this.pos);
|
|
26627
|
-
if (!node || !this.mark.isInSet(node.marks))
|
|
26628
|
-
return this;
|
|
26629
|
-
return new AddNodeMarkStep(this.pos, this.mark);
|
|
26630
|
-
}
|
|
26631
|
-
map(mapping) {
|
|
26632
|
-
const pos = mapping.mapResult(this.pos, 1);
|
|
26633
|
-
return pos.deletedAfter ? null : new RemoveNodeMarkStep(pos.pos, this.mark);
|
|
26634
|
-
}
|
|
26635
|
-
toJSON() {
|
|
26636
|
-
return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
26637
|
-
}
|
|
26638
|
-
}
|
|
26639
|
-
Step.jsonID("removeNodeMark", RemoveNodeMarkStep);
|
|
26640
|
-
class AddNodeMarkStep extends Step {
|
|
26641
|
-
static fromJSON(schema, json) {
|
|
26642
|
-
if (typeof json.pos != "number") {
|
|
26643
|
-
throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
|
|
26644
|
-
}
|
|
26645
|
-
return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
26646
|
-
}
|
|
26647
|
-
constructor(pos, mark) {
|
|
26648
|
-
super();
|
|
26649
|
-
this.pos = pos;
|
|
26650
|
-
this.mark = mark;
|
|
26651
|
-
}
|
|
26652
|
-
apply(doc2) {
|
|
26653
|
-
const node = doc2.nodeAt(this.pos);
|
|
26654
|
-
if (!node)
|
|
26655
|
-
return StepResult.fail("No node at mark step's position");
|
|
26656
|
-
const updated = node.type.create(node.attrs, null, this.mark.addToSet(node.marks));
|
|
26657
|
-
const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
|
|
26658
|
-
return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
|
|
26659
|
-
}
|
|
26660
|
-
invert(doc2) {
|
|
26661
|
-
const node = doc2.nodeAt(this.pos);
|
|
26662
|
-
if (node) {
|
|
26663
|
-
const newSet = this.mark.addToSet(node.marks);
|
|
26664
|
-
if (newSet.length === node.marks.length) {
|
|
26665
|
-
for (const mark of node.marks) {
|
|
26666
|
-
if (!mark.isInSet(newSet)) {
|
|
26667
|
-
return new AddNodeMarkStep(this.pos, mark);
|
|
26668
|
-
}
|
|
26669
|
-
}
|
|
26670
|
-
return new AddNodeMarkStep(this.pos, this.mark);
|
|
26671
|
-
}
|
|
26672
|
-
}
|
|
26673
|
-
return new RemoveNodeMarkStep(this.pos, this.mark);
|
|
26674
|
-
}
|
|
26675
|
-
map(mapping) {
|
|
26676
|
-
const pos = mapping.mapResult(this.pos, 1);
|
|
26677
|
-
return pos.deletedAfter ? null : new AddNodeMarkStep(pos.pos, this.mark);
|
|
26678
|
-
}
|
|
26679
|
-
toJSON() {
|
|
26680
|
-
return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
|
|
26681
|
-
}
|
|
26682
|
-
}
|
|
26683
|
-
Step.jsonID("addNodeMark", AddNodeMarkStep);
|
|
26684
|
-
class AttrStep extends Step {
|
|
26685
|
-
static fromJSON(schema, json) {
|
|
26686
|
-
if (typeof json.pos != "number" || typeof json.attr != "string") {
|
|
26687
|
-
throw new RangeError("Invalid input for AttrStep.fromJSON");
|
|
26688
|
-
}
|
|
26689
|
-
return new AttrStep(json.pos, json.attr, json.value);
|
|
26690
|
-
}
|
|
26691
|
-
constructor(pos, attr, value) {
|
|
26692
|
-
super();
|
|
26693
|
-
this.pos = pos;
|
|
26694
|
-
this.attr = attr;
|
|
26695
|
-
this.value = value;
|
|
26696
|
-
}
|
|
26697
|
-
apply(doc2) {
|
|
26698
|
-
const node = doc2.nodeAt(this.pos);
|
|
26699
|
-
if (!node)
|
|
26700
|
-
return StepResult.fail("No node at attribute step's position");
|
|
26701
|
-
const attrs = /* @__PURE__ */ Object.create(null);
|
|
26702
|
-
for (let name in node.attrs)
|
|
26703
|
-
attrs[name] = node.attrs[name];
|
|
26704
|
-
attrs[this.attr] = this.value;
|
|
26705
|
-
const updated = node.type.create(attrs, null, node.marks);
|
|
26706
|
-
const slice2 = new Slice(Fragment.from(updated), 0, node.isLeaf ? 0 : 1);
|
|
26707
|
-
return StepResult.fromReplace(doc2, this.pos, this.pos + 1, slice2);
|
|
26708
|
-
}
|
|
26709
|
-
getMap() {
|
|
26710
|
-
return StepMap.empty;
|
|
26711
|
-
}
|
|
26712
|
-
invert(doc2) {
|
|
26713
|
-
return new AttrStep(this.pos, this.attr, doc2.nodeAt(this.pos).attrs[this.attr]);
|
|
26714
|
-
}
|
|
26715
|
-
map(mapping) {
|
|
26716
|
-
let pos = mapping.mapResult(this.pos, 1);
|
|
26717
|
-
return pos.deletedAfter ? null : new AttrStep(pos.pos, this.attr, this.value);
|
|
26718
|
-
}
|
|
26719
|
-
toJSON() {
|
|
26720
|
-
return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
|
|
26721
|
-
}
|
|
26722
|
-
}
|
|
26723
|
-
Step.jsonID("attr", AttrStep);
|
|
26724
27364
|
const NodeProcessor = Extension.create({
|
|
26725
27365
|
name: "node_processor",
|
|
26726
27366
|
addCommands() {
|
|
@@ -26729,8 +27369,7 @@ const NodeProcessor = Extension.create({
|
|
|
26729
27369
|
var _a;
|
|
26730
27370
|
const current = (_a = unref(commands2.getBlockAttributes(name))) != null ? _a : {};
|
|
26731
27371
|
const { doc: doc2, tr } = state;
|
|
26732
|
-
const {
|
|
26733
|
-
const { from: from2, to } = selection;
|
|
27372
|
+
const { from: from2, to } = tr.selection;
|
|
26734
27373
|
doc2.nodesBetween(from2, to, (node, position) => {
|
|
26735
27374
|
if (!NodeTypes.blocks.includes(node.type.name))
|
|
26736
27375
|
return;
|
|
@@ -26750,7 +27389,7 @@ const NodeProcessor = Extension.create({
|
|
|
26750
27389
|
const { $from, $to } = tr.selection;
|
|
26751
27390
|
const markType = getMarkType(name, schema);
|
|
26752
27391
|
const markGroup = markType.spec.group || "";
|
|
26753
|
-
if (!markGroup.includes(
|
|
27392
|
+
if (!markGroup.includes(MarkGroups.SETTINGS)) {
|
|
26754
27393
|
return commands2.setMark(name, value);
|
|
26755
27394
|
}
|
|
26756
27395
|
if ($from.pos === $to.pos)
|
|
@@ -26761,15 +27400,14 @@ const NodeProcessor = Extension.create({
|
|
|
26761
27400
|
const initialMark = findMarkByType(node.marks, name);
|
|
26762
27401
|
const applyingMark = markType.create({ ...(initialMark == null ? void 0 : initialMark.attrs) || {}, ...value });
|
|
26763
27402
|
const textPosition = resolveTextPosition($from, $to, node, position);
|
|
26764
|
-
if (isMarkAppliedToParent(tr, position, applyingMark)) {
|
|
26765
|
-
|
|
26766
|
-
return;
|
|
27403
|
+
if (isMarkAppliedToParent(tr.doc, position, applyingMark)) {
|
|
27404
|
+
return commands2._removeNodeMark({ tr, node, position, mark: markType });
|
|
26767
27405
|
}
|
|
26768
27406
|
if (node.isText) {
|
|
26769
27407
|
tr.addMark(textPosition.from, textPosition.to, applyingMark);
|
|
26770
27408
|
return;
|
|
26771
27409
|
}
|
|
26772
|
-
if (isNodeFullySelected(
|
|
27410
|
+
if (isNodeFullySelected(tr.doc, tr.selection, node, position)) {
|
|
26773
27411
|
tr.step(new AddNodeMarkStep(position, applyingMark));
|
|
26774
27412
|
}
|
|
26775
27413
|
});
|
|
@@ -26804,26 +27442,41 @@ const NodeProcessor = Extension.create({
|
|
|
26804
27442
|
});
|
|
26805
27443
|
}),
|
|
26806
27444
|
getDeviceSettingMark: createCommand(({ commands: commands2 }, name, defaultRef) => {
|
|
26807
|
-
const selectionRef = commands2.
|
|
27445
|
+
const selectionRef = commands2.getMarks(name);
|
|
26808
27446
|
const deviceRef = commands2.getDevice();
|
|
26809
27447
|
return computed(() => {
|
|
26810
|
-
|
|
26811
|
-
|
|
27448
|
+
for (const attrs of unref(selectionRef)) {
|
|
27449
|
+
const value = attrs[unref(deviceRef)];
|
|
27450
|
+
if (value)
|
|
27451
|
+
return value;
|
|
27452
|
+
}
|
|
27453
|
+
return unref(defaultRef);
|
|
26812
27454
|
});
|
|
26813
27455
|
}),
|
|
26814
|
-
|
|
26815
|
-
const { tr,
|
|
26816
|
-
const {
|
|
26817
|
-
|
|
26818
|
-
return;
|
|
26819
|
-
doc2.nodesBetween($from.pos, $to.pos, (node, position) => {
|
|
26820
|
-
const textPosition = resolveTextPosition($from, $to, node, position);
|
|
26821
|
-
const removeMark2 = (mark) => node.isText ? tr.removeMark(textPosition.from, textPosition.to, mark) : tr.step(new RemoveNodeMarkStep(position, mark));
|
|
27456
|
+
removeAllMarks: createCommand(({ state, commands: commands2 }) => {
|
|
27457
|
+
const { tr, doc: doc2 } = state;
|
|
27458
|
+
const { from: from2, to } = tr.selection;
|
|
27459
|
+
doc2.nodesBetween(from2, to, (node, position) => {
|
|
26822
27460
|
for (const mark of node.marks) {
|
|
26823
|
-
|
|
26824
|
-
|
|
27461
|
+
commands2._removeNodeMark({ tr, node, position, mark });
|
|
27462
|
+
}
|
|
27463
|
+
});
|
|
27464
|
+
}),
|
|
27465
|
+
removeMarks: createCommand(({ state, commands: commands2 }, marks) => {
|
|
27466
|
+
const { tr, doc: doc2 } = state;
|
|
27467
|
+
const { from: from2, to } = tr.selection;
|
|
27468
|
+
doc2.nodesBetween(from2, to, (node, position) => {
|
|
27469
|
+
const removingMarks = node.marks.filter((mark) => marks.includes(mark.type.name));
|
|
27470
|
+
for (const mark of removingMarks) {
|
|
27471
|
+
commands2._removeNodeMark({ tr, node, position, mark });
|
|
26825
27472
|
}
|
|
26826
27473
|
});
|
|
27474
|
+
}),
|
|
27475
|
+
removeMark: createCommand(({ commands: commands2, state }, node, position, mark) => {
|
|
27476
|
+
commands2._removeNodeMark({ tr: state.tr, node, position, mark });
|
|
27477
|
+
}),
|
|
27478
|
+
_removeNodeMark: createCommand((context, { tr, node, position, mark }) => {
|
|
27479
|
+
return node.isText ? tr.removeMark(position, position + node.nodeSize, mark) : tr.step(new RemoveNodeMarkStep(position, mark));
|
|
26827
27480
|
})
|
|
26828
27481
|
};
|
|
26829
27482
|
}
|
|
@@ -26965,7 +27618,7 @@ const Document$1 = Node.create({
|
|
|
26965
27618
|
content: "block+"
|
|
26966
27619
|
});
|
|
26967
27620
|
const Document = Document$1.extend({
|
|
26968
|
-
marks:
|
|
27621
|
+
marks: MarkGroups.SETTINGS
|
|
26969
27622
|
});
|
|
26970
27623
|
const Paragraph$1 = Node.create({
|
|
26971
27624
|
name: "paragraph",
|
|
@@ -26999,7 +27652,7 @@ const Paragraph$1 = Node.create({
|
|
|
26999
27652
|
}
|
|
27000
27653
|
});
|
|
27001
27654
|
const Paragraph = Paragraph$1.extend({
|
|
27002
|
-
marks:
|
|
27655
|
+
marks: MarkGroups.ALL,
|
|
27003
27656
|
addOptions: () => ({
|
|
27004
27657
|
HTMLAttributes: { class: "zw-style" }
|
|
27005
27658
|
})
|
|
@@ -27071,7 +27724,7 @@ const Heading$1 = Node.create({
|
|
|
27071
27724
|
}
|
|
27072
27725
|
});
|
|
27073
27726
|
const Heading = Heading$1.extend({
|
|
27074
|
-
marks:
|
|
27727
|
+
marks: MarkGroups.ALL,
|
|
27075
27728
|
addOptions: () => ({
|
|
27076
27729
|
levels: [1, 2, 3, 4],
|
|
27077
27730
|
HTMLAttributes: { class: "zw-style" }
|
|
@@ -27332,7 +27985,7 @@ const __vue2_script = {
|
|
|
27332
27985
|
updateToolbar();
|
|
27333
27986
|
}
|
|
27334
27987
|
const pageBlocks = toRef(props, "pageBlocks");
|
|
27335
|
-
const editor = useEditor({
|
|
27988
|
+
const { editor, getContent } = useEditor({
|
|
27336
27989
|
content: toRef(props, "value"),
|
|
27337
27990
|
onChange: (content) => onChange(content),
|
|
27338
27991
|
isReadonlyRef: toRef(props, "readonly"),
|
|
@@ -27368,7 +28021,8 @@ const __vue2_script = {
|
|
|
27368
28021
|
toolbarRef,
|
|
27369
28022
|
wysiwygRef,
|
|
27370
28023
|
toolbar,
|
|
27371
|
-
updateToolbar
|
|
28024
|
+
updateToolbar,
|
|
28025
|
+
getContent
|
|
27372
28026
|
};
|
|
27373
28027
|
}
|
|
27374
28028
|
};
|
|
@@ -27397,5 +28051,7 @@ export {
|
|
|
27397
28051
|
NodeTypes,
|
|
27398
28052
|
TextSettings,
|
|
27399
28053
|
Wysiwyg,
|
|
27400
|
-
isWysiwygContent
|
|
28054
|
+
isWysiwygContent,
|
|
28055
|
+
markWysiwygContent,
|
|
28056
|
+
unmarkWysiwygContent
|
|
27401
28057
|
};
|