@leaflink/stash 48.10.0 → 48.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +1 -1
- package/dist/ActionsDropdown.js +1 -1
- package/dist/AddressSelect.js +1 -1
- package/dist/AddressSelect.js.map +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Alert.js.map +1 -1
- package/dist/AppNavigationItem.js +1 -1
- package/dist/AppTopbar.js +1 -1
- package/dist/Avatar.vue.d.ts +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Button.vue.d.ts +3 -1
- package/dist/CardMedia.js +1 -1
- package/dist/Carousel.js.map +1 -1
- package/dist/ChevronToggle.js +1 -1
- package/dist/ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js.map +1 -1
- package/dist/Chip.js +1 -1
- package/dist/Chip.js.map +1 -1
- package/dist/Chip.vue.d.ts +1 -1
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/Copy.js +1 -1
- package/dist/CurrencyInput.js +39 -34
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DataView.js.map +1 -1
- package/dist/DataViewFilters.js +1 -1
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewSortButton.js +1 -1
- package/dist/DataViewToolbar.js +1 -1
- package/dist/DatePicker.js +3355 -3368
- package/dist/DatePicker.js.map +1 -1
- package/dist/Dialog.js +75 -69
- package/dist/Dialog.js.map +1 -1
- package/dist/Dropdown.js +1 -1
- package/dist/Dropdown.js.map +1 -1
- package/dist/EmptyState.js +2 -2
- package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +1 -1
- package/dist/FileUpload.js +1 -1
- package/dist/FileUpload.js.map +1 -1
- package/dist/FilterChip.js +1 -1
- package/dist/FilterDrawerItem.js +1 -1
- package/dist/FilterDropdown.js +1 -1
- package/dist/FilterSelect.js +1 -1
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js +1 -1
- package/dist/Filters.js.map +1 -1
- package/dist/HttpError.js +2 -2
- package/dist/Icon.js +1 -1
- package/dist/Icon.js.map +1 -1
- package/dist/IconLabel.js +1 -1
- package/dist/IconLabel.vue.d.ts +1 -1
- package/dist/Illustration.js +3 -3
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-4b8944da.js → Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js} +2 -2
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-4b8944da.js.map → Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map} +1 -1
- package/dist/Image.js.map +1 -1
- package/dist/InlineEdit.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/Input.js.map +1 -1
- package/dist/InputOptions.js +1 -1
- package/dist/LicenseChip.js +1 -1
- package/dist/ListView.js +2 -2
- package/dist/ListView.js.map +1 -1
- package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js.map +1 -1
- package/dist/Metric.vue.d.ts +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Modals.js +6 -6
- package/dist/Modals.js.map +1 -1
- package/dist/ObfuscateText.js +1 -1
- package/dist/PageNavigation.js +1 -1
- package/dist/PageNavigation.js.map +1 -1
- package/dist/Paginate.js +1 -1
- package/dist/PlaidLink.js.map +1 -1
- package/dist/QuickAction.js +1 -1
- package/dist/RadioNew.js.map +1 -1
- package/dist/RangeInput.js +1 -1
- package/dist/SearchBar.js +1 -1
- package/dist/Select.js +709 -653
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js +1 -1
- package/dist/SelectStatus.js.map +1 -1
- package/dist/SelectStatus.vue.d.ts +1 -1
- package/dist/Skeleton.js.map +1 -1
- package/dist/Step.js +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/Tab.js +1 -1
- package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +1 -1
- package/dist/Table.js +2 -2
- package/dist/TableCell.js +2 -2
- package/dist/TableHeaderCell.js +2 -2
- package/dist/TableHeaderRow.js +2 -2
- package/dist/TableRow.js +2 -2
- package/dist/TableRow.vue.d.ts +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextEditor.js +991 -991
- package/dist/TextEditor.js.map +1 -1
- package/dist/Textarea.js.map +1 -1
- package/dist/Toast.js +274 -252
- package/dist/Toast.js.map +1 -1
- package/dist/Toasts.js +1 -1
- package/dist/ToastsPlugin.js +1 -1
- package/dist/components.css +2 -2
- package/dist/index-5e5945a9.js.map +1 -1
- package/dist/{index-79ce320f.js → index-9e1095ef.js} +6 -4
- package/dist/index-9e1095ef.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/isDefined-2ce6cde4.js.map +1 -1
- package/dist/observe.js.map +1 -1
- package/dist/searchFuzzy-74a7de1c.js.map +1 -1
- package/dist/sticky.js.map +1 -1
- package/dist/tailwind-base.js.map +1 -1
- package/dist/toTimeZone-e6e9ab75.js.map +1 -1
- package/dist/tooltip.js.map +1 -1
- package/dist/useGoogleMaps.js +109 -119
- package/dist/useGoogleMaps.js.map +1 -1
- package/dist/useModals.d.ts +6 -363
- package/dist/useModals.js.map +1 -1
- package/dist/useScriptTag.js.map +1 -1
- package/dist/useStepper.js.map +1 -1
- package/dist/useValidation.js.map +1 -1
- package/dist/utils/colorScheme.js.map +1 -1
- package/dist/utils/createQueryString.js.map +1 -1
- package/dist/utils/formatDateTime.js.map +1 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/i18n.js.map +1 -1
- package/dist/utils/storage.js.map +1 -1
- package/dist/viewable.js.map +1 -1
- package/package.json +30 -46
- package/dist/index-79ce320f.js.map +0 -1
package/dist/TextEditor.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var Nl = Object.defineProperty;
|
|
2
2
|
var Al = (r, t, e) => t in r ? Nl(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var T = (r, t, e) => (Al(r, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
import { defineComponent as xl, useCssModule as wl, ref as ti, computed as
|
|
5
|
-
import { isEqual as
|
|
4
|
+
import { defineComponent as xl, useCssModule as wl, ref as ti, computed as $s, onMounted as Tl, watch as ei, onBeforeUnmount as Ll, openBlock as Tt, createBlock as Qe, mergeProps as ql, unref as Ee, withCtx as sr, createElementBlock as Je, normalizeClass as ts, Fragment as nr, renderList as si, createCommentVNode as rr, createElementVNode as Sl } from "vue";
|
|
5
|
+
import { isEqual as Rr, cloneDeep as Se, merge as Zt } from "lodash-es";
|
|
6
6
|
import { c as zt, g as Bi } from "./_commonjsHelpers-10dfc225.js";
|
|
7
|
-
import
|
|
7
|
+
import _l from "lodash-es/uniqueId";
|
|
8
8
|
import ni from "./Button.js";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as kl } from "./Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js";
|
|
10
10
|
import ri from "./Icon.js";
|
|
11
|
-
import { _ as
|
|
11
|
+
import { _ as Cl } from "./_plugin-vue_export-helper-dad06003.js";
|
|
12
12
|
import "./Button.vue_used_vue_type_style_index_0_lang.module-a9290468.js";
|
|
13
13
|
import "./Label.vue_vue_type_script_setup_true_lang-4b02087f.js";
|
|
14
14
|
import "./locale.js";
|
|
15
15
|
import "lodash-es/get";
|
|
16
|
-
import "./index-
|
|
16
|
+
import "./index-9e1095ef.js";
|
|
17
17
|
import "./Icon.vue_used_vue_type_style_index_0_lang.module-eb359559.js";
|
|
18
|
-
var
|
|
19
|
-
class
|
|
18
|
+
var k = /* @__PURE__ */ ((r) => (r[r.TYPE = 3] = "TYPE", r[r.LEVEL = 12] = "LEVEL", r[r.ATTRIBUTE = 13] = "ATTRIBUTE", r[r.BLOT = 14] = "BLOT", r[r.INLINE = 7] = "INLINE", r[r.BLOCK = 11] = "BLOCK", r[r.BLOCK_BLOT = 10] = "BLOCK_BLOT", r[r.INLINE_BLOT = 6] = "INLINE_BLOT", r[r.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", r[r.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", r[r.ANY = 15] = "ANY", r))(k || {});
|
|
19
|
+
class St {
|
|
20
20
|
constructor(t, e, s = {}) {
|
|
21
21
|
this.attrName = t, this.keyName = e;
|
|
22
|
-
const n =
|
|
22
|
+
const n = k.TYPE & k.ATTRIBUTE;
|
|
23
23
|
this.scope = s.scope != null ? (
|
|
24
24
|
// Ignore type bits, force attribute bit
|
|
25
|
-
s.scope &
|
|
26
|
-
) :
|
|
25
|
+
s.scope & k.LEVEL | n
|
|
26
|
+
) : k.ATTRIBUTE, s.whitelist != null && (this.whitelist = s.whitelist);
|
|
27
27
|
}
|
|
28
28
|
static keys(t) {
|
|
29
29
|
return Array.from(t.attributes).map((e) => e.name);
|
|
@@ -42,12 +42,12 @@ class kt {
|
|
|
42
42
|
return this.canAdd(t, e) && e ? e : "";
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
class
|
|
45
|
+
class _e extends Error {
|
|
46
46
|
constructor(t) {
|
|
47
47
|
t = "[Parchment] " + t, super(t), this.message = t, this.name = this.constructor.name;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
const Mi = class
|
|
50
|
+
const Mi = class pr {
|
|
51
51
|
constructor() {
|
|
52
52
|
this.attributes = {}, this.classes = {}, this.tags = {}, this.types = {};
|
|
53
53
|
}
|
|
@@ -70,27 +70,27 @@ const Mi = class br {
|
|
|
70
70
|
create(t, e, s) {
|
|
71
71
|
const n = this.query(e);
|
|
72
72
|
if (n == null)
|
|
73
|
-
throw new
|
|
73
|
+
throw new _e(`Unable to create ${e} blot`);
|
|
74
74
|
const i = n, o = (
|
|
75
75
|
// @ts-expect-error Fix me later
|
|
76
76
|
e instanceof Node || e.nodeType === Node.TEXT_NODE ? e : i.create(s)
|
|
77
77
|
), a = new i(t, o, s);
|
|
78
|
-
return
|
|
78
|
+
return pr.blots.set(a.domNode, a), a;
|
|
79
79
|
}
|
|
80
80
|
find(t, e = !1) {
|
|
81
|
-
return
|
|
81
|
+
return pr.find(t, e);
|
|
82
82
|
}
|
|
83
|
-
query(t, e =
|
|
83
|
+
query(t, e = k.ANY) {
|
|
84
84
|
let s;
|
|
85
|
-
return typeof t == "string" ? s = this.types[t] || this.attributes[t] : t instanceof Text || t.nodeType === Node.TEXT_NODE ? s = this.types.text : typeof t == "number" ? t &
|
|
85
|
+
return typeof t == "string" ? s = this.types[t] || this.attributes[t] : t instanceof Text || t.nodeType === Node.TEXT_NODE ? s = this.types.text : typeof t == "number" ? t & k.LEVEL & k.BLOCK ? s = this.types.block : t & k.LEVEL & k.INLINE && (s = this.types.inline) : t instanceof Element && ((t.getAttribute("class") || "").split(/\s+/).some((n) => (s = this.classes[n], !!s)), s = s || this.tags[t.tagName]), s == null ? null : "scope" in s && e & k.LEVEL & s.scope && e & k.TYPE & s.scope ? s : null;
|
|
86
86
|
}
|
|
87
87
|
register(...t) {
|
|
88
88
|
return t.map((e) => {
|
|
89
89
|
const s = "blotName" in e, n = "attrName" in e;
|
|
90
90
|
if (!s && !n)
|
|
91
|
-
throw new
|
|
91
|
+
throw new _e("Invalid definition");
|
|
92
92
|
if (s && e.blotName === "abstract")
|
|
93
|
-
throw new
|
|
93
|
+
throw new _e("Cannot register abstract class");
|
|
94
94
|
const i = s ? e.blotName : n ? e.attrName : void 0;
|
|
95
95
|
return this.types[i] = e, n ? typeof e.keyName == "string" && (this.attributes[e.keyName] = e) : s && (e.className && (this.classes[e.className] = e), e.tagName && (Array.isArray(e.tagName) ? e.tagName = e.tagName.map((o) => o.toUpperCase()) : e.tagName = e.tagName.toUpperCase(), (Array.isArray(e.tagName) ? e.tagName : [e.tagName]).forEach((o) => {
|
|
96
96
|
(this.tags[o] == null || e.className == null) && (this.tags[o] = e);
|
|
@@ -99,11 +99,11 @@ const Mi = class br {
|
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
Mi.blots = /* @__PURE__ */ new WeakMap();
|
|
102
|
-
let
|
|
102
|
+
let Ce = Mi;
|
|
103
103
|
function ii(r, t) {
|
|
104
104
|
return (r.getAttribute("class") || "").split(/\s+/).filter((e) => e.indexOf(`${t}-`) === 0);
|
|
105
105
|
}
|
|
106
|
-
class Ol extends
|
|
106
|
+
class Ol extends St {
|
|
107
107
|
static keys(t) {
|
|
108
108
|
return (t.getAttribute("class") || "").split(/\s+/).map((e) => e.split("-").slice(0, -1).join("-"));
|
|
109
109
|
}
|
|
@@ -120,27 +120,27 @@ class Ol extends kt {
|
|
|
120
120
|
return this.canAdd(t, e) ? e : "";
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
const
|
|
124
|
-
function
|
|
123
|
+
const yt = Ol;
|
|
124
|
+
function ir(r) {
|
|
125
125
|
const t = r.split("-"), e = t.slice(1).map((s) => s[0].toUpperCase() + s.slice(1)).join("");
|
|
126
126
|
return t[0] + e;
|
|
127
127
|
}
|
|
128
|
-
class Il extends
|
|
128
|
+
class Il extends St {
|
|
129
129
|
static keys(t) {
|
|
130
130
|
return (t.getAttribute("style") || "").split(";").map((e) => e.split(":")[0].trim());
|
|
131
131
|
}
|
|
132
132
|
add(t, e) {
|
|
133
|
-
return this.canAdd(t, e) ? (t.style[
|
|
133
|
+
return this.canAdd(t, e) ? (t.style[ir(this.keyName)] = e, !0) : !1;
|
|
134
134
|
}
|
|
135
135
|
remove(t) {
|
|
136
|
-
t.style[
|
|
136
|
+
t.style[ir(this.keyName)] = "", t.getAttribute("style") || t.removeAttribute("style");
|
|
137
137
|
}
|
|
138
138
|
value(t) {
|
|
139
|
-
const e = t.style[
|
|
139
|
+
const e = t.style[ir(this.keyName)];
|
|
140
140
|
return this.canAdd(t, e) ? e : "";
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const Wt = Il;
|
|
144
144
|
class Rl {
|
|
145
145
|
constructor(t) {
|
|
146
146
|
this.attributes = {}, this.domNode = t, this.build();
|
|
@@ -150,13 +150,13 @@ class Rl {
|
|
|
150
150
|
}
|
|
151
151
|
build() {
|
|
152
152
|
this.attributes = {};
|
|
153
|
-
const t =
|
|
153
|
+
const t = Ce.find(this.domNode);
|
|
154
154
|
if (t == null)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = St.keys(this.domNode), s = yt.keys(this.domNode), n = Wt.keys(this.domNode);
|
|
157
157
|
e.concat(s).concat(n).forEach((i) => {
|
|
158
|
-
const o = t.scroll.query(i,
|
|
159
|
-
o instanceof
|
|
158
|
+
const o = t.scroll.query(i, k.ATTRIBUTE);
|
|
159
|
+
o instanceof St && (this.attributes[o.attrName] = o);
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
copy(t) {
|
|
@@ -177,13 +177,13 @@ class Rl {
|
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const Qs = Rl, Di = class {
|
|
181
181
|
constructor(t, e) {
|
|
182
|
-
this.scroll = t, this.domNode = e,
|
|
182
|
+
this.scroll = t, this.domNode = e, Ce.blots.set(e, this), this.prev = null, this.next = null;
|
|
183
183
|
}
|
|
184
184
|
static create(t) {
|
|
185
185
|
if (this.tagName == null)
|
|
186
|
-
throw new
|
|
186
|
+
throw new _e("Blot definition missing tagName");
|
|
187
187
|
let e, s;
|
|
188
188
|
return Array.isArray(this.tagName) ? (typeof t == "string" ? (s = t.toUpperCase(), parseInt(s, 10).toString() === s && (s = parseInt(s, 10))) : typeof t == "number" && (s = t), typeof s == "number" ? e = document.createElement(this.tagName[s - 1]) : s && this.tagName.indexOf(s) > -1 ? e = document.createElement(s) : e = document.createElement(this.tagName[0])) : e = document.createElement(this.tagName), this.className && e.classList.add(this.className), e;
|
|
189
189
|
}
|
|
@@ -198,16 +198,16 @@ const tn = Rl, Di = class {
|
|
|
198
198
|
return this.scroll.create(t);
|
|
199
199
|
}
|
|
200
200
|
detach() {
|
|
201
|
-
this.parent != null && this.parent.removeChild(this),
|
|
201
|
+
this.parent != null && this.parent.removeChild(this), Ce.blots.delete(this.domNode);
|
|
202
202
|
}
|
|
203
203
|
deleteAt(t, e) {
|
|
204
204
|
this.isolate(t, e).remove();
|
|
205
205
|
}
|
|
206
206
|
formatAt(t, e, s, n) {
|
|
207
207
|
const i = this.isolate(t, e);
|
|
208
|
-
if (this.scroll.query(s,
|
|
208
|
+
if (this.scroll.query(s, k.BLOT) != null && n)
|
|
209
209
|
i.wrap(s, n);
|
|
210
|
-
else if (this.scroll.query(s,
|
|
210
|
+
else if (this.scroll.query(s, k.ATTRIBUTE) != null) {
|
|
211
211
|
const o = this.scroll.create(this.statics.scope);
|
|
212
212
|
i.wrap(o), o.format(s, n);
|
|
213
213
|
}
|
|
@@ -246,7 +246,7 @@ const tn = Rl, Di = class {
|
|
|
246
246
|
wrap(t, e) {
|
|
247
247
|
const s = typeof t == "string" ? this.scroll.create(t, e) : t;
|
|
248
248
|
if (this.parent != null && this.parent.insertBefore(s, this.next || void 0), typeof s.appendChild != "function")
|
|
249
|
-
throw new
|
|
249
|
+
throw new _e(`Cannot wrap ${t}`);
|
|
250
250
|
return s.appendChild(this), s;
|
|
251
251
|
}
|
|
252
252
|
};
|
|
@@ -287,7 +287,7 @@ const Pi = class extends Ui {
|
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
|
-
Pi.scope =
|
|
290
|
+
Pi.scope = k.INLINE_BLOT;
|
|
291
291
|
let Bl = Pi;
|
|
292
292
|
const X = Bl;
|
|
293
293
|
class Ml {
|
|
@@ -399,13 +399,13 @@ function li(r, t) {
|
|
|
399
399
|
try {
|
|
400
400
|
return t.create(r);
|
|
401
401
|
} catch {
|
|
402
|
-
const s = t.create(
|
|
402
|
+
const s = t.create(k.INLINE);
|
|
403
403
|
return Array.from(r.childNodes).forEach((n) => {
|
|
404
404
|
s.domNode.appendChild(n);
|
|
405
405
|
}), r.parentNode && r.parentNode.replaceChild(s.domNode, r), s.attach(), s;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
const ji = class
|
|
408
|
+
const ji = class $t extends Ui {
|
|
409
409
|
constructor(t, e) {
|
|
410
410
|
super(t, e), this.uiNode = null, this.build();
|
|
411
411
|
}
|
|
@@ -418,7 +418,7 @@ const ji = class Ft extends Ui {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
attachUI(t) {
|
|
421
|
-
this.uiNode != null && this.uiNode.remove(), this.uiNode = t,
|
|
421
|
+
this.uiNode != null && this.uiNode.remove(), this.uiNode = t, $t.uiClass && this.uiNode.classList.add($t.uiClass), this.uiNode.setAttribute("contenteditable", "false"), this.domNode.insertBefore(this.uiNode, this.domNode.firstChild);
|
|
422
422
|
}
|
|
423
423
|
/**
|
|
424
424
|
* Called during construction, should fill its own children LinkedList.
|
|
@@ -429,7 +429,7 @@ const ji = class Ft extends Ui {
|
|
|
429
429
|
const e = li(t, this.scroll);
|
|
430
430
|
this.insertBefore(e, this.children.head || void 0);
|
|
431
431
|
} catch (e) {
|
|
432
|
-
if (e instanceof
|
|
432
|
+
if (e instanceof _e)
|
|
433
433
|
return;
|
|
434
434
|
throw e;
|
|
435
435
|
}
|
|
@@ -444,7 +444,7 @@ const ji = class Ft extends Ui {
|
|
|
444
444
|
}
|
|
445
445
|
descendant(t, e = 0) {
|
|
446
446
|
const [s, n] = this.children.find(e);
|
|
447
|
-
return t.blotName == null && t(s) || t.blotName != null && s instanceof t ? [s, n] : s instanceof
|
|
447
|
+
return t.blotName == null && t(s) || t.blotName != null && s instanceof t ? [s, n] : s instanceof $t ? s.descendant(t, n) : [null, -1];
|
|
448
448
|
}
|
|
449
449
|
descendants(t, e = 0, s = Number.MAX_VALUE) {
|
|
450
450
|
let n = [], i = s;
|
|
@@ -452,7 +452,7 @@ const ji = class Ft extends Ui {
|
|
|
452
452
|
e,
|
|
453
453
|
s,
|
|
454
454
|
(o, a, u) => {
|
|
455
|
-
(t.blotName == null && t(o) || t.blotName != null && o instanceof t) && n.push(o), o instanceof
|
|
455
|
+
(t.blotName == null && t(o) || t.blotName != null && o instanceof t) && n.push(o), o instanceof $t && (n = n.concat(
|
|
456
456
|
o.descendants(t, a, i)
|
|
457
457
|
)), i -= u;
|
|
458
458
|
}
|
|
@@ -468,7 +468,7 @@ const ji = class Ft extends Ui {
|
|
|
468
468
|
this.children.forEach((e) => {
|
|
469
469
|
t || this.statics.allowedChildren.some(
|
|
470
470
|
(s) => e instanceof s
|
|
471
|
-
) || (e.statics.scope ===
|
|
471
|
+
) || (e.statics.scope === k.BLOCK_BLOT ? (e.next != null && this.splitAfter(e), e.prev != null && this.splitAfter(e.prev), e.parent.unwrap(), t = !0) : e instanceof $t ? e.unwrap() : e.remove());
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
formatAt(t, e, s, n) {
|
|
@@ -508,14 +508,14 @@ const ji = class Ft extends Ui {
|
|
|
508
508
|
}
|
|
509
509
|
path(t, e = !1) {
|
|
510
510
|
const [s, n] = this.children.find(t, e), i = [[this, t]];
|
|
511
|
-
return s instanceof
|
|
511
|
+
return s instanceof $t ? i.concat(s.path(n, e)) : (s != null && i.push([s, n]), i);
|
|
512
512
|
}
|
|
513
513
|
removeChild(t) {
|
|
514
514
|
this.children.remove(t);
|
|
515
515
|
}
|
|
516
516
|
replaceWith(t, e) {
|
|
517
517
|
const s = typeof t == "string" ? this.scroll.create(t, e) : t;
|
|
518
|
-
return s instanceof
|
|
518
|
+
return s instanceof $t && this.moveChildren(s), super.replaceWith(s);
|
|
519
519
|
}
|
|
520
520
|
split(t, e = !1) {
|
|
521
521
|
if (!e) {
|
|
@@ -559,7 +559,7 @@ const ji = class Ft extends Ui {
|
|
|
559
559
|
};
|
|
560
560
|
ji.uiClass = "";
|
|
561
561
|
let Dl = ji;
|
|
562
|
-
const
|
|
562
|
+
const mt = Dl;
|
|
563
563
|
function Ul(r, t) {
|
|
564
564
|
if (Object.keys(r).length !== Object.keys(t).length)
|
|
565
565
|
return !1;
|
|
@@ -568,12 +568,12 @@ function Ul(r, t) {
|
|
|
568
568
|
return !1;
|
|
569
569
|
return !0;
|
|
570
570
|
}
|
|
571
|
-
const
|
|
571
|
+
const Ne = class Ae extends mt {
|
|
572
572
|
static create(t) {
|
|
573
573
|
return super.create(t);
|
|
574
574
|
}
|
|
575
575
|
static formats(t, e) {
|
|
576
|
-
const s = e.query(
|
|
576
|
+
const s = e.query(Ae.blotName);
|
|
577
577
|
if (!(s != null && t.tagName === s.tagName)) {
|
|
578
578
|
if (typeof this.tagName == "string")
|
|
579
579
|
return !0;
|
|
@@ -582,18 +582,18 @@ const Ee = class Ne extends bt {
|
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
constructor(t, e) {
|
|
585
|
-
super(t, e), this.attributes = new
|
|
585
|
+
super(t, e), this.attributes = new Qs(this.domNode);
|
|
586
586
|
}
|
|
587
587
|
format(t, e) {
|
|
588
588
|
if (t === this.statics.blotName && !e)
|
|
589
589
|
this.children.forEach((s) => {
|
|
590
|
-
s instanceof
|
|
590
|
+
s instanceof Ae || (s = s.wrap(Ae.blotName, !0)), this.attributes.copy(s);
|
|
591
591
|
}), this.unwrap();
|
|
592
592
|
else {
|
|
593
|
-
const s = this.scroll.query(t,
|
|
593
|
+
const s = this.scroll.query(t, k.INLINE);
|
|
594
594
|
if (s == null)
|
|
595
595
|
return;
|
|
596
|
-
s instanceof
|
|
596
|
+
s instanceof St ? this.attributes.attribute(s, e) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
formats() {
|
|
@@ -601,7 +601,7 @@ const Ee = class Ne extends bt {
|
|
|
601
601
|
return e != null && (t[this.statics.blotName] = e), t;
|
|
602
602
|
}
|
|
603
603
|
formatAt(t, e, s, n) {
|
|
604
|
-
this.formats()[s] != null || this.scroll.query(s,
|
|
604
|
+
this.formats()[s] != null || this.scroll.query(s, k.ATTRIBUTE) ? this.isolate(t, e).format(s, n) : super.formatAt(t, e, s, n);
|
|
605
605
|
}
|
|
606
606
|
optimize(t) {
|
|
607
607
|
super.optimize(t);
|
|
@@ -609,7 +609,7 @@ const Ee = class Ne extends bt {
|
|
|
609
609
|
if (Object.keys(e).length === 0)
|
|
610
610
|
return this.unwrap();
|
|
611
611
|
const s = this.next;
|
|
612
|
-
s instanceof
|
|
612
|
+
s instanceof Ae && s.prev === this && Ul(e, s.formats()) && (s.moveChildren(this), s.remove());
|
|
613
613
|
}
|
|
614
614
|
replaceWith(t, e) {
|
|
615
615
|
const s = super.replaceWith(t, e);
|
|
@@ -622,17 +622,17 @@ const Ee = class Ne extends bt {
|
|
|
622
622
|
}
|
|
623
623
|
wrap(t, e) {
|
|
624
624
|
const s = super.wrap(t, e);
|
|
625
|
-
return s instanceof
|
|
625
|
+
return s instanceof Ae && this.attributes.move(s), s;
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
|
-
|
|
629
|
-
let Pl =
|
|
630
|
-
const
|
|
628
|
+
Ne.allowedChildren = [Ne, X], Ne.blotName = "inline", Ne.scope = k.INLINE_BLOT, Ne.tagName = "SPAN";
|
|
629
|
+
let Pl = Ne;
|
|
630
|
+
const Br = Pl, xe = class mr extends mt {
|
|
631
631
|
static create(t) {
|
|
632
632
|
return super.create(t);
|
|
633
633
|
}
|
|
634
634
|
static formats(t, e) {
|
|
635
|
-
const s = e.query(
|
|
635
|
+
const s = e.query(mr.blotName);
|
|
636
636
|
if (!(s != null && t.tagName === s.tagName)) {
|
|
637
637
|
if (typeof this.tagName == "string")
|
|
638
638
|
return !0;
|
|
@@ -641,21 +641,21 @@ const Dr = Pl, Ae = class yr extends bt {
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
constructor(t, e) {
|
|
644
|
-
super(t, e), this.attributes = new
|
|
644
|
+
super(t, e), this.attributes = new Qs(this.domNode);
|
|
645
645
|
}
|
|
646
646
|
format(t, e) {
|
|
647
|
-
const s = this.scroll.query(t,
|
|
648
|
-
s != null && (s instanceof
|
|
647
|
+
const s = this.scroll.query(t, k.BLOCK);
|
|
648
|
+
s != null && (s instanceof St ? this.attributes.attribute(s, e) : t === this.statics.blotName && !e ? this.replaceWith(mr.blotName) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e));
|
|
649
649
|
}
|
|
650
650
|
formats() {
|
|
651
651
|
const t = this.attributes.values(), e = this.statics.formats(this.domNode, this.scroll);
|
|
652
652
|
return e != null && (t[this.statics.blotName] = e), t;
|
|
653
653
|
}
|
|
654
654
|
formatAt(t, e, s, n) {
|
|
655
|
-
this.scroll.query(s,
|
|
655
|
+
this.scroll.query(s, k.BLOCK) != null ? this.format(s, n) : super.formatAt(t, e, s, n);
|
|
656
656
|
}
|
|
657
657
|
insertAt(t, e, s) {
|
|
658
|
-
if (s == null || this.scroll.query(e,
|
|
658
|
+
if (s == null || this.scroll.query(e, k.INLINE) != null)
|
|
659
659
|
super.insertAt(t, e, s);
|
|
660
660
|
else {
|
|
661
661
|
const n = this.split(t);
|
|
@@ -676,13 +676,13 @@ const Dr = Pl, Ae = class yr extends bt {
|
|
|
676
676
|
) && this.attributes.build();
|
|
677
677
|
}
|
|
678
678
|
};
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
679
|
+
xe.blotName = "block", xe.scope = k.BLOCK_BLOT, xe.tagName = "P", xe.allowedChildren = [
|
|
680
|
+
Br,
|
|
681
|
+
xe,
|
|
682
682
|
X
|
|
683
683
|
];
|
|
684
|
-
let jl =
|
|
685
|
-
const
|
|
684
|
+
let jl = xe;
|
|
685
|
+
const rs = jl, br = class extends mt {
|
|
686
686
|
checkMerge() {
|
|
687
687
|
return this.next !== null && this.next.statics.blotName === this.statics.blotName;
|
|
688
688
|
}
|
|
@@ -699,9 +699,9 @@ const ls = jl, vr = class extends bt {
|
|
|
699
699
|
super.optimize(t), this.children.length > 0 && this.next != null && this.checkMerge() && (this.next.moveChildren(this), this.next.remove());
|
|
700
700
|
}
|
|
701
701
|
};
|
|
702
|
-
|
|
703
|
-
let $l =
|
|
704
|
-
const
|
|
702
|
+
br.blotName = "container", br.scope = k.BLOCK_BLOT;
|
|
703
|
+
let $l = br;
|
|
704
|
+
const Js = $l;
|
|
705
705
|
class Hl extends X {
|
|
706
706
|
static formats(t, e) {
|
|
707
707
|
}
|
|
@@ -715,13 +715,13 @@ class Hl extends X {
|
|
|
715
715
|
return this.statics.formats(this.domNode, this.scroll);
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
const
|
|
718
|
+
const rt = Hl, Fl = {
|
|
719
719
|
attributes: !0,
|
|
720
720
|
characterData: !0,
|
|
721
721
|
characterDataOldValue: !0,
|
|
722
722
|
childList: !0,
|
|
723
723
|
subtree: !0
|
|
724
|
-
}, zl = 100,
|
|
724
|
+
}, zl = 100, we = class extends mt {
|
|
725
725
|
constructor(t, e) {
|
|
726
726
|
super(null, e), this.registry = t, this.scroll = this, this.build(), this.observer = new MutationObserver((s) => {
|
|
727
727
|
this.update(s);
|
|
@@ -734,7 +734,7 @@ const nt = Hl, Fl = {
|
|
|
734
734
|
const s = this.registry.find(t, e);
|
|
735
735
|
return s ? s.scroll === this ? s : e ? this.find(s.scroll.domNode.parentNode, !0) : null : null;
|
|
736
736
|
}
|
|
737
|
-
query(t, e =
|
|
737
|
+
query(t, e = k.ANY) {
|
|
738
738
|
return this.registry.query(t, e);
|
|
739
739
|
}
|
|
740
740
|
register(...t) {
|
|
@@ -766,7 +766,7 @@ const nt = Hl, Fl = {
|
|
|
766
766
|
const i = (u, h = !0) => {
|
|
767
767
|
u == null || u === this || u.domNode.parentNode != null && (s.has(u.domNode) || s.set(u.domNode, []), h && i(u.parent));
|
|
768
768
|
}, o = (u) => {
|
|
769
|
-
s.has(u.domNode) && (u instanceof
|
|
769
|
+
s.has(u.domNode) && (u instanceof mt && u.children.forEach(o), s.delete(u.domNode), u.optimize(e));
|
|
770
770
|
};
|
|
771
771
|
let a = t;
|
|
772
772
|
for (let u = 0; a.length > 0; u += 1) {
|
|
@@ -776,7 +776,7 @@ const nt = Hl, Fl = {
|
|
|
776
776
|
const g = this.find(h.target, !0);
|
|
777
777
|
g != null && (g.domNode === h.target && (h.type === "childList" ? (i(this.find(h.previousSibling, !1)), Array.from(h.addedNodes).forEach((y) => {
|
|
778
778
|
const d = this.find(y, !1);
|
|
779
|
-
i(d, !1), d instanceof
|
|
779
|
+
i(d, !1), d instanceof mt && d.children.forEach((p) => {
|
|
780
780
|
i(p, !1);
|
|
781
781
|
});
|
|
782
782
|
})) : h.type === "attributes" && i(g.prev)), i(g));
|
|
@@ -795,9 +795,9 @@ const nt = Hl, Fl = {
|
|
|
795
795
|
}), e.mutationsMap = s, s.has(this.domNode) && super.update(s.get(this.domNode), e), this.optimize(t, e);
|
|
796
796
|
}
|
|
797
797
|
};
|
|
798
|
-
|
|
799
|
-
let Vl =
|
|
800
|
-
const
|
|
798
|
+
we.blotName = "scroll", we.defaultChild = rs, we.allowedChildren = [rs, Js], we.scope = k.BLOCK_BLOT, we.tagName = "DIV";
|
|
799
|
+
let Vl = we;
|
|
800
|
+
const Mr = Vl, yr = class $i extends X {
|
|
801
801
|
static create(t) {
|
|
802
802
|
return document.createTextNode(t);
|
|
803
803
|
}
|
|
@@ -842,27 +842,27 @@ const Ur = Vl, Er = class $i extends X {
|
|
|
842
842
|
return this.text;
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
|
-
|
|
846
|
-
let Kl =
|
|
847
|
-
const
|
|
845
|
+
yr.blotName = "text", yr.scope = k.INLINE_BLOT;
|
|
846
|
+
let Kl = yr;
|
|
847
|
+
const Ws = Kl, Gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
848
848
|
__proto__: null,
|
|
849
|
-
Attributor:
|
|
850
|
-
AttributorStore:
|
|
851
|
-
BlockBlot:
|
|
852
|
-
ClassAttributor:
|
|
853
|
-
ContainerBlot:
|
|
854
|
-
EmbedBlot:
|
|
855
|
-
InlineBlot:
|
|
849
|
+
Attributor: St,
|
|
850
|
+
AttributorStore: Qs,
|
|
851
|
+
BlockBlot: rs,
|
|
852
|
+
ClassAttributor: yt,
|
|
853
|
+
ContainerBlot: Js,
|
|
854
|
+
EmbedBlot: rt,
|
|
855
|
+
InlineBlot: Br,
|
|
856
856
|
LeafBlot: X,
|
|
857
|
-
ParentBlot:
|
|
858
|
-
Registry:
|
|
859
|
-
Scope:
|
|
860
|
-
ScrollBlot:
|
|
861
|
-
StyleAttributor:
|
|
862
|
-
TextBlot:
|
|
857
|
+
ParentBlot: mt,
|
|
858
|
+
Registry: Ce,
|
|
859
|
+
Scope: k,
|
|
860
|
+
ScrollBlot: Mr,
|
|
861
|
+
StyleAttributor: Wt,
|
|
862
|
+
TextBlot: Ws
|
|
863
863
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
864
|
-
var
|
|
865
|
-
function
|
|
864
|
+
var vr = { exports: {} }, nt = -1, J = 1, F = 0;
|
|
865
|
+
function is(r, t, e, s, n) {
|
|
866
866
|
if (r === t)
|
|
867
867
|
return r ? [[F, r]] : [];
|
|
868
868
|
if (e != null) {
|
|
@@ -870,34 +870,34 @@ function os(r, t, e, s, n) {
|
|
|
870
870
|
if (i)
|
|
871
871
|
return i;
|
|
872
872
|
}
|
|
873
|
-
var o =
|
|
874
|
-
r = r.substring(o), t = t.substring(o), o =
|
|
873
|
+
var o = Dr(r, t), a = r.substring(0, o);
|
|
874
|
+
r = r.substring(o), t = t.substring(o), o = tn(r, t);
|
|
875
875
|
var u = r.substring(r.length - o);
|
|
876
876
|
r = r.substring(0, r.length - o), t = t.substring(0, t.length - o);
|
|
877
877
|
var h = Zl(r, t);
|
|
878
|
-
return a && h.unshift([F, a]), u && h.push([F, u]),
|
|
878
|
+
return a && h.unshift([F, a]), u && h.push([F, u]), Ur(h, n), s && Yl(h), h;
|
|
879
879
|
}
|
|
880
880
|
function Zl(r, t) {
|
|
881
881
|
var e;
|
|
882
882
|
if (!r)
|
|
883
883
|
return [[J, t]];
|
|
884
884
|
if (!t)
|
|
885
|
-
return [[
|
|
885
|
+
return [[nt, r]];
|
|
886
886
|
var s = r.length > t.length ? r : t, n = r.length > t.length ? t : r, i = s.indexOf(n);
|
|
887
887
|
if (i !== -1)
|
|
888
888
|
return e = [
|
|
889
889
|
[J, s.substring(0, i)],
|
|
890
890
|
[F, n],
|
|
891
891
|
[J, s.substring(i + n.length)]
|
|
892
|
-
], r.length > t.length && (e[0][0] = e[2][0] =
|
|
892
|
+
], r.length > t.length && (e[0][0] = e[2][0] = nt), e;
|
|
893
893
|
if (n.length === 1)
|
|
894
894
|
return [
|
|
895
|
-
[
|
|
895
|
+
[nt, r],
|
|
896
896
|
[J, t]
|
|
897
897
|
];
|
|
898
898
|
var o = Xl(r, t);
|
|
899
899
|
if (o) {
|
|
900
|
-
var a = o[0], u = o[1], h = o[2], g = o[3], y = o[4], d =
|
|
900
|
+
var a = o[0], u = o[1], h = o[2], g = o[3], y = o[4], d = is(a, h), p = is(u, g);
|
|
901
901
|
return d.concat([[F, y]], p);
|
|
902
902
|
}
|
|
903
903
|
return Wl(r, t);
|
|
@@ -910,18 +910,18 @@ function Wl(r, t) {
|
|
|
910
910
|
for (var E = -v + d; E <= v - p; E += 2) {
|
|
911
911
|
var w = i + E, x;
|
|
912
912
|
E === -v || E !== v && a[w - 1] < a[w + 1] ? x = a[w + 1] : x = a[w - 1] + 1;
|
|
913
|
-
for (var
|
|
914
|
-
x++,
|
|
913
|
+
for (var _ = x - E; x < e && _ < s && r.charAt(x) === t.charAt(_); )
|
|
914
|
+
x++, _++;
|
|
915
915
|
if (a[w] = x, x > e)
|
|
916
916
|
p += 2;
|
|
917
|
-
else if (
|
|
917
|
+
else if (_ > s)
|
|
918
918
|
d += 2;
|
|
919
919
|
else if (y) {
|
|
920
920
|
var q = i + g - E;
|
|
921
921
|
if (q >= 0 && q < o && u[q] !== -1) {
|
|
922
922
|
var O = e - u[q];
|
|
923
923
|
if (x >= O)
|
|
924
|
-
return oi(r, t, x,
|
|
924
|
+
return oi(r, t, x, _);
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
}
|
|
@@ -937,23 +937,23 @@ function Wl(r, t) {
|
|
|
937
937
|
else if (!y) {
|
|
938
938
|
var w = i + g - B;
|
|
939
939
|
if (w >= 0 && w < o && a[w] !== -1) {
|
|
940
|
-
var x = a[w],
|
|
940
|
+
var x = a[w], _ = i + x - w;
|
|
941
941
|
if (O = e - O, x >= O)
|
|
942
|
-
return oi(r, t, x,
|
|
942
|
+
return oi(r, t, x, _);
|
|
943
943
|
}
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
return [
|
|
948
|
-
[
|
|
948
|
+
[nt, r],
|
|
949
949
|
[J, t]
|
|
950
950
|
];
|
|
951
951
|
}
|
|
952
952
|
function oi(r, t, e, s) {
|
|
953
|
-
var n = r.substring(0, e), i = t.substring(0, s), o = r.substring(e), a = t.substring(s), u =
|
|
953
|
+
var n = r.substring(0, e), i = t.substring(0, s), o = r.substring(e), a = t.substring(s), u = is(n, i), h = is(o, a);
|
|
954
954
|
return u.concat(h);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Dr(r, t) {
|
|
957
957
|
if (!r || !t || r.charAt(0) !== t.charAt(0))
|
|
958
958
|
return 0;
|
|
959
959
|
for (var e = 0, s = Math.min(r.length, t.length), n = s, i = 0; e < n; )
|
|
@@ -975,7 +975,7 @@ function ai(r, t) {
|
|
|
975
975
|
o += u, (u == 0 || r.substring(n - o) == t.substring(0, o)) && (i = o, o++);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function tn(r, t) {
|
|
979
979
|
if (!r || !t || r.slice(-1) !== t.slice(-1))
|
|
980
980
|
return 0;
|
|
981
981
|
for (var e = 0, s = Math.min(r.length, t.length), n = s, i = 0; e < n; )
|
|
@@ -987,19 +987,19 @@ function Xl(r, t) {
|
|
|
987
987
|
if (e.length < 4 || s.length * 2 < e.length)
|
|
988
988
|
return null;
|
|
989
989
|
function n(p, m, b) {
|
|
990
|
-
for (var v = p.substring(b, b + Math.floor(p.length / 4)), E = -1, w = "", x,
|
|
991
|
-
var B =
|
|
990
|
+
for (var v = p.substring(b, b + Math.floor(p.length / 4)), E = -1, w = "", x, _, q, O; (E = m.indexOf(v, E + 1)) !== -1; ) {
|
|
991
|
+
var B = Dr(
|
|
992
992
|
p.substring(b),
|
|
993
993
|
m.substring(E)
|
|
994
|
-
), j =
|
|
994
|
+
), j = tn(
|
|
995
995
|
p.substring(0, b),
|
|
996
996
|
m.substring(0, E)
|
|
997
997
|
);
|
|
998
|
-
w.length < j + B && (w = m.substring(E - j, E) + m.substring(E, E + B), x = p.substring(0, b - j),
|
|
998
|
+
w.length < j + B && (w = m.substring(E - j, E) + m.substring(E, E + B), x = p.substring(0, b - j), _ = p.substring(b + B), q = m.substring(0, E - j), O = m.substring(E + B));
|
|
999
999
|
}
|
|
1000
1000
|
return w.length * 2 >= p.length ? [
|
|
1001
1001
|
x,
|
|
1002
|
-
|
|
1002
|
+
_,
|
|
1003
1003
|
q,
|
|
1004
1004
|
O,
|
|
1005
1005
|
w
|
|
@@ -1025,11 +1025,11 @@ function Xl(r, t) {
|
|
|
1025
1025
|
function Yl(r) {
|
|
1026
1026
|
for (var t = !1, e = [], s = 0, n = null, i = 0, o = 0, a = 0, u = 0, h = 0; i < r.length; )
|
|
1027
1027
|
r[i][0] == F ? (e[s++] = i, o = u, a = h, u = 0, h = 0, n = r[i][1]) : (r[i][0] == J ? u += r[i][1].length : h += r[i][1].length, n && n.length <= Math.max(o, a) && n.length <= Math.max(u, h) && (r.splice(e[s - 1], 0, [
|
|
1028
|
-
|
|
1028
|
+
nt,
|
|
1029
1029
|
n
|
|
1030
1030
|
]), r[e[s - 1] + 1][0] = J, s--, s--, i = s > 0 ? e[s - 1] : -1, o = 0, a = 0, u = 0, h = 0, n = null, t = !0)), i++;
|
|
1031
|
-
for (t &&
|
|
1032
|
-
if (r[i - 1][0] ==
|
|
1031
|
+
for (t && Ur(r), to(r), i = 1; i < r.length; ) {
|
|
1032
|
+
if (r[i - 1][0] == nt && r[i][0] == J) {
|
|
1033
1033
|
var g = r[i - 1][1], y = r[i][1], d = ai(g, y), p = ai(y, g);
|
|
1034
1034
|
d >= p ? (d >= g.length / 2 || d >= y.length / 2) && (r.splice(i, 0, [
|
|
1035
1035
|
F,
|
|
@@ -1043,7 +1043,7 @@ function Yl(r) {
|
|
|
1043
1043
|
]), r[i - 1][0] = J, r[i - 1][1] = y.substring(
|
|
1044
1044
|
0,
|
|
1045
1045
|
y.length - p
|
|
1046
|
-
), r[i + 1][0] =
|
|
1046
|
+
), r[i + 1][0] = nt, r[i + 1][1] = g.substring(p), i++), i++;
|
|
1047
1047
|
}
|
|
1048
1048
|
i++;
|
|
1049
1049
|
}
|
|
@@ -1053,12 +1053,12 @@ function to(r) {
|
|
|
1053
1053
|
function t(p, m) {
|
|
1054
1054
|
if (!p || !m)
|
|
1055
1055
|
return 6;
|
|
1056
|
-
var b = p.charAt(p.length - 1), v = m.charAt(0), E = b.match(ci), w = v.match(ci), x = E && b.match(ui),
|
|
1057
|
-
return B || j ? 5 : q || O ? 4 : E && !x &&
|
|
1056
|
+
var b = p.charAt(p.length - 1), v = m.charAt(0), E = b.match(ci), w = v.match(ci), x = E && b.match(ui), _ = w && v.match(ui), q = x && b.match(hi), O = _ && v.match(hi), B = q && p.match(Ql), j = O && m.match(Jl);
|
|
1057
|
+
return B || j ? 5 : q || O ? 4 : E && !x && _ ? 3 : x || _ ? 2 : E || w ? 1 : 0;
|
|
1058
1058
|
}
|
|
1059
1059
|
for (var e = 1; e < r.length - 1; ) {
|
|
1060
1060
|
if (r[e - 1][0] == F && r[e + 1][0] == F) {
|
|
1061
|
-
var s = r[e - 1][1], n = r[e][1], i = r[e + 1][1], o =
|
|
1061
|
+
var s = r[e - 1][1], n = r[e][1], i = r[e + 1][1], o = tn(s, n);
|
|
1062
1062
|
if (o) {
|
|
1063
1063
|
var a = n.substring(n.length - o);
|
|
1064
1064
|
s = s.substring(0, s.length - o), n = a + n.substring(0, n.length - o), i = a + i;
|
|
@@ -1073,7 +1073,7 @@ function to(r) {
|
|
|
1073
1073
|
e++;
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function Ur(r, t) {
|
|
1077
1077
|
r.push([F, ""]);
|
|
1078
1078
|
for (var e = 0, s = 0, n = 0, i = "", o = "", a; e < r.length; ) {
|
|
1079
1079
|
if (e < r.length - 1 && !r[e][1]) {
|
|
@@ -1084,7 +1084,7 @@ function jr(r, t) {
|
|
|
1084
1084
|
case J:
|
|
1085
1085
|
n++, o += r[e][1], e++;
|
|
1086
1086
|
break;
|
|
1087
|
-
case
|
|
1087
|
+
case nt:
|
|
1088
1088
|
s++, i += r[e][1], e++;
|
|
1089
1089
|
break;
|
|
1090
1090
|
case F:
|
|
@@ -1098,7 +1098,7 @@ function jr(r, t) {
|
|
|
1098
1098
|
), i = h + i, o = h + o, !r[u][1]) {
|
|
1099
1099
|
r.splice(u, 1), e--;
|
|
1100
1100
|
var g = u - 1;
|
|
1101
|
-
r[g] && r[g][0] === J && (n++, o = r[g][1] + o, g--), r[g] && r[g][0] ===
|
|
1101
|
+
r[g] && r[g][0] === J && (n++, o = r[g][1] + o, g--), r[g] && r[g][0] === nt && (s++, i = r[g][1] + i, g--), u = g;
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
1104
|
if (zi(r[e][1])) {
|
|
@@ -1111,13 +1111,13 @@ function jr(r, t) {
|
|
|
1111
1111
|
break;
|
|
1112
1112
|
}
|
|
1113
1113
|
if (i.length > 0 || o.length > 0) {
|
|
1114
|
-
i.length > 0 && o.length > 0 && (a =
|
|
1114
|
+
i.length > 0 && o.length > 0 && (a = Dr(o, i), a !== 0 && (u >= 0 ? r[u][1] += o.substring(
|
|
1115
1115
|
0,
|
|
1116
1116
|
a
|
|
1117
1117
|
) : (r.splice(0, 0, [
|
|
1118
1118
|
F,
|
|
1119
1119
|
o.substring(0, a)
|
|
1120
|
-
]), e++), o = o.substring(a), i = i.substring(a)), a =
|
|
1120
|
+
]), e++), o = o.substring(a), i = i.substring(a)), a = tn(o, i), a !== 0 && (r[e][1] = o.substring(o.length - a) + r[e][1], o = o.substring(
|
|
1121
1121
|
0,
|
|
1122
1122
|
o.length - a
|
|
1123
1123
|
), i = i.substring(
|
|
@@ -1125,10 +1125,10 @@ function jr(r, t) {
|
|
|
1125
1125
|
i.length - a
|
|
1126
1126
|
)));
|
|
1127
1127
|
var y = n + s;
|
|
1128
|
-
i.length === 0 && o.length === 0 ? (r.splice(e - y, y), e = e - y) : i.length === 0 ? (r.splice(e - y, y, [J, o]), e = e - y + 1) : o.length === 0 ? (r.splice(e - y, y, [
|
|
1128
|
+
i.length === 0 && o.length === 0 ? (r.splice(e - y, y), e = e - y) : i.length === 0 ? (r.splice(e - y, y, [J, o]), e = e - y + 1) : o.length === 0 ? (r.splice(e - y, y, [nt, i]), e = e - y + 1) : (r.splice(
|
|
1129
1129
|
e - y,
|
|
1130
1130
|
y,
|
|
1131
|
-
[
|
|
1131
|
+
[nt, i],
|
|
1132
1132
|
[J, o]
|
|
1133
1133
|
), e = e - y + 2);
|
|
1134
1134
|
}
|
|
@@ -1145,7 +1145,7 @@ function jr(r, t) {
|
|
|
1145
1145
|
0,
|
|
1146
1146
|
r[e][1].length - r[e - 1][1].length
|
|
1147
1147
|
), r[e + 1][1] = r[e - 1][1] + r[e + 1][1], r.splice(e - 1, 1), d = !0) : r[e][1].substring(0, r[e + 1][1].length) == r[e + 1][1] && (r[e - 1][1] += r[e + 1][1], r[e][1] = r[e][1].substring(r[e + 1][1].length) + r[e + 1][1], r.splice(e + 1, 1), d = !0)), e++;
|
|
1148
|
-
d &&
|
|
1148
|
+
d && Ur(r, t);
|
|
1149
1149
|
}
|
|
1150
1150
|
function Hi(r) {
|
|
1151
1151
|
return r >= 55296 && r <= 56319;
|
|
@@ -1164,10 +1164,10 @@ function eo(r) {
|
|
|
1164
1164
|
r[e][1].length > 0 && t.push(r[e]);
|
|
1165
1165
|
return t;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function lr(r, t, e, s) {
|
|
1168
1168
|
return Vi(r) || zi(s) ? null : eo([
|
|
1169
1169
|
[F, r],
|
|
1170
|
-
[
|
|
1170
|
+
[nt, t],
|
|
1171
1171
|
[J, e],
|
|
1172
1172
|
[F, s]
|
|
1173
1173
|
]);
|
|
@@ -1187,7 +1187,7 @@ function so(r, t, e) {
|
|
|
1187
1187
|
if (b !== v)
|
|
1188
1188
|
break t;
|
|
1189
1189
|
var E = u.slice(m), w = d.slice(m);
|
|
1190
|
-
return
|
|
1190
|
+
return lr(b, E, w, h);
|
|
1191
1191
|
}
|
|
1192
1192
|
t: {
|
|
1193
1193
|
if (g !== null && g !== a)
|
|
@@ -1195,57 +1195,57 @@ function so(r, t, e) {
|
|
|
1195
1195
|
var x = a, d = t.slice(0, x), p = t.slice(x);
|
|
1196
1196
|
if (d !== u)
|
|
1197
1197
|
break t;
|
|
1198
|
-
var
|
|
1198
|
+
var _ = Math.min(i - x, o - x), q = h.slice(h.length - _), O = p.slice(p.length - _);
|
|
1199
1199
|
if (q !== O)
|
|
1200
1200
|
break t;
|
|
1201
|
-
var E = h.slice(0, h.length -
|
|
1202
|
-
return
|
|
1201
|
+
var E = h.slice(0, h.length - _), w = p.slice(0, p.length - _);
|
|
1202
|
+
return lr(u, E, w, q);
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
if (s.length > 0 && n && n.length === 0)
|
|
1206
1206
|
t: {
|
|
1207
|
-
var b = r.slice(0, s.index), q = r.slice(s.index + s.length), m = b.length,
|
|
1208
|
-
if (o < m +
|
|
1207
|
+
var b = r.slice(0, s.index), q = r.slice(s.index + s.length), m = b.length, _ = q.length;
|
|
1208
|
+
if (o < m + _)
|
|
1209
1209
|
break t;
|
|
1210
|
-
var v = t.slice(0, m), O = t.slice(o -
|
|
1210
|
+
var v = t.slice(0, m), O = t.slice(o - _);
|
|
1211
1211
|
if (b !== v || q !== O)
|
|
1212
1212
|
break t;
|
|
1213
|
-
var E = r.slice(m, i -
|
|
1214
|
-
return
|
|
1213
|
+
var E = r.slice(m, i - _), w = t.slice(m, o - _);
|
|
1214
|
+
return lr(b, E, w, q);
|
|
1215
1215
|
}
|
|
1216
1216
|
return null;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return
|
|
1218
|
+
function en(r, t, e, s) {
|
|
1219
|
+
return is(r, t, e, s, !0);
|
|
1220
1220
|
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
var no =
|
|
1225
|
-
|
|
1221
|
+
en.INSERT = J;
|
|
1222
|
+
en.DELETE = nt;
|
|
1223
|
+
en.EQUAL = F;
|
|
1224
|
+
var no = en, Xs = { exports: {} };
|
|
1225
|
+
Xs.exports;
|
|
1226
1226
|
(function(r, t) {
|
|
1227
|
-
var e = 200, s = "__lodash_hash_undefined__", n = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", u = "[object Date]", h = "[object Error]", g = "[object Function]", y = "[object GeneratorFunction]", d = "[object Map]", p = "[object Number]", m = "[object Object]", b = "[object Promise]", v = "[object RegExp]", E = "[object Set]", w = "[object String]", x = "[object Symbol]",
|
|
1228
|
-
U[i] = U[o] = U[q] = U[O] = U[a] = U[u] = U[B] = U[j] = U[_t] = U[
|
|
1229
|
-
var
|
|
1230
|
-
function
|
|
1227
|
+
var e = 200, s = "__lodash_hash_undefined__", n = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", u = "[object Date]", h = "[object Error]", g = "[object Function]", y = "[object GeneratorFunction]", d = "[object Map]", p = "[object Number]", m = "[object Object]", b = "[object Promise]", v = "[object RegExp]", E = "[object Set]", w = "[object String]", x = "[object Symbol]", _ = "[object WeakMap]", q = "[object ArrayBuffer]", O = "[object DataView]", B = "[object Float32Array]", j = "[object Float64Array]", _t = "[object Int8Array]", Ut = "[object Int16Array]", Xt = "[object Int32Array]", Yt = "[object Uint8Array]", ds = "[object Uint8ClampedArray]", gs = "[object Uint16Array]", ps = "[object Uint32Array]", an = /[\\^$.*+?()[\]{}|]/g, cn = /\w*$/, un = /^\[object .+?Constructor\]$/, hn = /^(?:0|[1-9]\d*)$/, U = {};
|
|
1228
|
+
U[i] = U[o] = U[q] = U[O] = U[a] = U[u] = U[B] = U[j] = U[_t] = U[Ut] = U[Xt] = U[d] = U[p] = U[m] = U[v] = U[E] = U[w] = U[x] = U[Yt] = U[ds] = U[gs] = U[ps] = !0, U[h] = U[g] = U[_] = !1;
|
|
1229
|
+
var fn = typeof zt == "object" && zt && zt.Object === Object && zt, dn = typeof self == "object" && self && self.Object === Object && self, ht = fn || dn || Function("return this")(), ms = t && !t.nodeType && t, P = ms && !0 && r && !r.nodeType && r, bs = P && P.exports === ms;
|
|
1230
|
+
function gn(l, c) {
|
|
1231
1231
|
return l.set(c[0], c[1]), l;
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function ft(l, c) {
|
|
1234
1234
|
return l.add(c), l;
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function ys(l, c) {
|
|
1237
1237
|
for (var f = -1, N = l ? l.length : 0; ++f < N && c(l[f], f, l) !== !1; )
|
|
1238
1238
|
;
|
|
1239
1239
|
return l;
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function vs(l, c) {
|
|
1242
1242
|
for (var f = -1, N = c.length, I = l.length; ++f < N; )
|
|
1243
1243
|
l[I + f] = c[f];
|
|
1244
1244
|
return l;
|
|
1245
1245
|
}
|
|
1246
1246
|
function Ie(l, c, f, N) {
|
|
1247
|
-
var I = -1,
|
|
1248
|
-
for (N &&
|
|
1247
|
+
var I = -1, C = l ? l.length : 0;
|
|
1248
|
+
for (N && C && (f = l[++I]); ++I < C; )
|
|
1249
1249
|
f = c(f, l[I], I, l);
|
|
1250
1250
|
return f;
|
|
1251
1251
|
}
|
|
@@ -1254,7 +1254,7 @@ Qs.exports;
|
|
|
1254
1254
|
N[f] = c(f);
|
|
1255
1255
|
return N;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Es(l, c) {
|
|
1258
1258
|
return l == null ? void 0 : l[c];
|
|
1259
1259
|
}
|
|
1260
1260
|
function Be(l) {
|
|
@@ -1266,7 +1266,7 @@ Qs.exports;
|
|
|
1266
1266
|
}
|
|
1267
1267
|
return c;
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function Ns(l) {
|
|
1270
1270
|
var c = -1, f = Array(l.size);
|
|
1271
1271
|
return l.forEach(function(N, I) {
|
|
1272
1272
|
f[++c] = [I, N];
|
|
@@ -1277,48 +1277,48 @@ Qs.exports;
|
|
|
1277
1277
|
return l(c(f));
|
|
1278
1278
|
};
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function As(l) {
|
|
1281
1281
|
var c = -1, f = Array(l.size);
|
|
1282
1282
|
return l.forEach(function(N) {
|
|
1283
1283
|
f[++c] = N;
|
|
1284
1284
|
}), f;
|
|
1285
1285
|
}
|
|
1286
|
-
var
|
|
1286
|
+
var pn = Array.prototype, mn = Function.prototype, ce = Object.prototype, De = ht["__core-js_shared__"], xs = function() {
|
|
1287
1287
|
var l = /[^.]+$/.exec(De && De.keys && De.keys.IE_PROTO || "");
|
|
1288
1288
|
return l ? "Symbol(src)_1." + l : "";
|
|
1289
|
-
}(),
|
|
1290
|
-
"^" +
|
|
1291
|
-
),
|
|
1292
|
-
function
|
|
1289
|
+
}(), ws = mn.toString, Nt = ce.hasOwnProperty, ue = ce.toString, bn = RegExp(
|
|
1290
|
+
"^" + ws.call(Nt).replace(an, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1291
|
+
), Qt = bs ? ht.Buffer : void 0, he = ht.Symbol, Ue = ht.Uint8Array, it = Me(Object.getPrototypeOf, Object), Ts = Object.create, Ls = ce.propertyIsEnumerable, yn = pn.splice, Pe = Object.getOwnPropertySymbols, fe = Qt ? Qt.isBuffer : void 0, qs = Me(Object.keys, Object), de = gt(ht, "DataView"), Jt = gt(ht, "Map"), dt = gt(ht, "Promise"), ge = gt(ht, "Set"), je = gt(ht, "WeakMap"), te = gt(Object, "create"), $e = Q(de), ee = Q(Jt), He = Q(dt), Fe = Q(ge), ze = Q(je), Pt = he ? he.prototype : void 0, Ss = Pt ? Pt.valueOf : void 0;
|
|
1292
|
+
function kt(l) {
|
|
1293
1293
|
var c = -1, f = l ? l.length : 0;
|
|
1294
1294
|
for (this.clear(); ++c < f; ) {
|
|
1295
1295
|
var N = l[c];
|
|
1296
1296
|
this.set(N[0], N[1]);
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
this.__data__ =
|
|
1299
|
+
function vn() {
|
|
1300
|
+
this.__data__ = te ? te(null) : {};
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function En(l) {
|
|
1303
1303
|
return this.has(l) && delete this.__data__[l];
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function Nn(l) {
|
|
1306
1306
|
var c = this.__data__;
|
|
1307
|
-
if (
|
|
1307
|
+
if (te) {
|
|
1308
1308
|
var f = c[l];
|
|
1309
1309
|
return f === s ? void 0 : f;
|
|
1310
1310
|
}
|
|
1311
|
-
return
|
|
1311
|
+
return Nt.call(c, l) ? c[l] : void 0;
|
|
1312
1312
|
}
|
|
1313
1313
|
function _s(l) {
|
|
1314
1314
|
var c = this.__data__;
|
|
1315
|
-
return
|
|
1315
|
+
return te ? c[l] !== void 0 : Nt.call(c, l);
|
|
1316
1316
|
}
|
|
1317
1317
|
function Ve(l, c) {
|
|
1318
1318
|
var f = this.__data__;
|
|
1319
|
-
return f[l] =
|
|
1319
|
+
return f[l] = te && c === void 0 ? s : c, this;
|
|
1320
1320
|
}
|
|
1321
|
-
|
|
1321
|
+
kt.prototype.clear = vn, kt.prototype.delete = En, kt.prototype.get = Nn, kt.prototype.has = _s, kt.prototype.set = Ve;
|
|
1322
1322
|
function z(l) {
|
|
1323
1323
|
var c = -1, f = l ? l.length : 0;
|
|
1324
1324
|
for (this.clear(); ++c < f; ) {
|
|
@@ -1326,28 +1326,28 @@ Qs.exports;
|
|
|
1326
1326
|
this.set(N[0], N[1]);
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function An() {
|
|
1330
1330
|
this.__data__ = [];
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1333
|
-
var c = this.__data__, f =
|
|
1332
|
+
function xn(l) {
|
|
1333
|
+
var c = this.__data__, f = me(c, l);
|
|
1334
1334
|
if (f < 0)
|
|
1335
1335
|
return !1;
|
|
1336
1336
|
var N = c.length - 1;
|
|
1337
|
-
return f == N ? c.pop() :
|
|
1337
|
+
return f == N ? c.pop() : yn.call(c, f, 1), !0;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1340
|
-
var c = this.__data__, f =
|
|
1339
|
+
function wn(l) {
|
|
1340
|
+
var c = this.__data__, f = me(c, l);
|
|
1341
1341
|
return f < 0 ? void 0 : c[f][1];
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1344
|
-
return
|
|
1343
|
+
function Tn(l) {
|
|
1344
|
+
return me(this.__data__, l) > -1;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1347
|
-
var f = this.__data__, N =
|
|
1346
|
+
function Ln(l, c) {
|
|
1347
|
+
var f = this.__data__, N = me(f, l);
|
|
1348
1348
|
return N < 0 ? f.push([l, c]) : f[N][1] = c, this;
|
|
1349
1349
|
}
|
|
1350
|
-
z.prototype.clear =
|
|
1350
|
+
z.prototype.clear = An, z.prototype.delete = xn, z.prototype.get = wn, z.prototype.has = Tn, z.prototype.set = Ln;
|
|
1351
1351
|
function G(l) {
|
|
1352
1352
|
var c = -1, f = l ? l.length : 0;
|
|
1353
1353
|
for (this.clear(); ++c < f; ) {
|
|
@@ -1355,94 +1355,94 @@ Qs.exports;
|
|
|
1355
1355
|
this.set(N[0], N[1]);
|
|
1356
1356
|
}
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1358
|
+
function qn() {
|
|
1359
1359
|
this.__data__ = {
|
|
1360
|
-
hash: new
|
|
1361
|
-
map: new (
|
|
1362
|
-
string: new
|
|
1360
|
+
hash: new kt(),
|
|
1361
|
+
map: new (Jt || z)(),
|
|
1362
|
+
string: new kt()
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1365
|
+
function Sn(l) {
|
|
1366
|
+
return ne(this, l).delete(l);
|
|
1367
1367
|
}
|
|
1368
1368
|
function _n(l) {
|
|
1369
|
-
return
|
|
1369
|
+
return ne(this, l).get(l);
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1372
|
-
return
|
|
1371
|
+
function kn(l) {
|
|
1372
|
+
return ne(this, l).has(l);
|
|
1373
1373
|
}
|
|
1374
|
-
function
|
|
1375
|
-
return
|
|
1374
|
+
function Cn(l, c) {
|
|
1375
|
+
return ne(this, l).set(l, c), this;
|
|
1376
1376
|
}
|
|
1377
|
-
G.prototype.clear =
|
|
1377
|
+
G.prototype.clear = qn, G.prototype.delete = Sn, G.prototype.get = _n, G.prototype.has = kn, G.prototype.set = Cn;
|
|
1378
1378
|
function tt(l) {
|
|
1379
1379
|
this.__data__ = new z(l);
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function On() {
|
|
1382
1382
|
this.__data__ = new z();
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function In(l) {
|
|
1385
1385
|
return this.__data__.delete(l);
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function Rn(l) {
|
|
1388
1388
|
return this.__data__.get(l);
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Bn(l) {
|
|
1391
1391
|
return this.__data__.has(l);
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function Mn(l, c) {
|
|
1394
1394
|
var f = this.__data__;
|
|
1395
1395
|
if (f instanceof z) {
|
|
1396
1396
|
var N = f.__data__;
|
|
1397
|
-
if (!
|
|
1397
|
+
if (!Jt || N.length < e - 1)
|
|
1398
1398
|
return N.push([l, c]), this;
|
|
1399
1399
|
f = this.__data__ = new G(N);
|
|
1400
1400
|
}
|
|
1401
1401
|
return f.set(l, c), this;
|
|
1402
1402
|
}
|
|
1403
|
-
tt.prototype.clear =
|
|
1404
|
-
function
|
|
1405
|
-
var f = We(l) ||
|
|
1406
|
-
for (var
|
|
1407
|
-
(c ||
|
|
1403
|
+
tt.prototype.clear = On, tt.prototype.delete = In, tt.prototype.get = Rn, tt.prototype.has = Bn, tt.prototype.set = Mn;
|
|
1404
|
+
function pe(l, c) {
|
|
1405
|
+
var f = We(l) || ye(l) ? Re(l.length, String) : [], N = f.length, I = !!N;
|
|
1406
|
+
for (var C in l)
|
|
1407
|
+
(c || Nt.call(l, C)) && !(I && (C == "length" || Xn(C, N))) && f.push(C);
|
|
1408
1408
|
return f;
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function ks(l, c, f) {
|
|
1411
1411
|
var N = l[c];
|
|
1412
|
-
(!(
|
|
1412
|
+
(!(Nt.call(l, c) && Bs(N, f)) || f === void 0 && !(c in l)) && (l[c] = f);
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function me(l, c) {
|
|
1415
1415
|
for (var f = l.length; f--; )
|
|
1416
|
-
if (
|
|
1416
|
+
if (Bs(l[f][0], c))
|
|
1417
1417
|
return f;
|
|
1418
1418
|
return -1;
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function At(l, c) {
|
|
1421
1421
|
return l && Ze(c, Ye(c), l);
|
|
1422
1422
|
}
|
|
1423
|
-
function Ke(l, c, f, N, I,
|
|
1423
|
+
function Ke(l, c, f, N, I, C, R) {
|
|
1424
1424
|
var M;
|
|
1425
|
-
if (N && (M =
|
|
1425
|
+
if (N && (M = C ? N(l, I, C, R) : N(l)), M !== void 0)
|
|
1426
1426
|
return M;
|
|
1427
|
-
if (!
|
|
1427
|
+
if (!wt(l))
|
|
1428
1428
|
return l;
|
|
1429
1429
|
var $ = We(l);
|
|
1430
1430
|
if ($) {
|
|
1431
|
-
if (M =
|
|
1432
|
-
return
|
|
1431
|
+
if (M = Zn(l), !c)
|
|
1432
|
+
return Vn(l, M);
|
|
1433
1433
|
} else {
|
|
1434
|
-
var D =
|
|
1435
|
-
if (
|
|
1436
|
-
return
|
|
1437
|
-
if (D == m || D == i || Z && !
|
|
1434
|
+
var D = Ot(l), Z = D == g || D == y;
|
|
1435
|
+
if (Ms(l))
|
|
1436
|
+
return be(l, c);
|
|
1437
|
+
if (D == m || D == i || Z && !C) {
|
|
1438
1438
|
if (Be(l))
|
|
1439
|
-
return
|
|
1440
|
-
if (M =
|
|
1441
|
-
return
|
|
1439
|
+
return C ? l : {};
|
|
1440
|
+
if (M = xt(Z ? {} : l), !c)
|
|
1441
|
+
return Kn(l, At(M, l));
|
|
1442
1442
|
} else {
|
|
1443
1443
|
if (!U[D])
|
|
1444
|
-
return
|
|
1445
|
-
M =
|
|
1444
|
+
return C ? l : {};
|
|
1445
|
+
M = Wn(l, D, Ke, c);
|
|
1446
1446
|
}
|
|
1447
1447
|
}
|
|
1448
1448
|
R || (R = new tt());
|
|
@@ -1450,36 +1450,36 @@ Qs.exports;
|
|
|
1450
1450
|
if (et)
|
|
1451
1451
|
return et;
|
|
1452
1452
|
if (R.set(l, M), !$)
|
|
1453
|
-
var H = f ?
|
|
1454
|
-
return
|
|
1455
|
-
H && (V = W, W = l[V]),
|
|
1453
|
+
var H = f ? Gn(l) : Ye(l);
|
|
1454
|
+
return ys(H || l, function(W, V) {
|
|
1455
|
+
H && (V = W, W = l[V]), ks(M, V, Ke(W, c, f, N, V, l, R));
|
|
1456
1456
|
}), M;
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1459
|
-
return
|
|
1458
|
+
function Dn(l) {
|
|
1459
|
+
return wt(l) ? Ts(l) : {};
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Un(l, c, f) {
|
|
1462
1462
|
var N = c(l);
|
|
1463
|
-
return We(l) ? N :
|
|
1463
|
+
return We(l) ? N : vs(N, f(l));
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1466
|
-
return
|
|
1465
|
+
function Pn(l) {
|
|
1466
|
+
return ue.call(l);
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1469
|
-
if (!
|
|
1468
|
+
function jn(l) {
|
|
1469
|
+
if (!wt(l) || Qn(l))
|
|
1470
1470
|
return !1;
|
|
1471
|
-
var c = Xe(l) || Be(l) ?
|
|
1471
|
+
var c = Xe(l) || Be(l) ? bn : un;
|
|
1472
1472
|
return c.test(Q(l));
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1475
|
-
if (!
|
|
1476
|
-
return
|
|
1474
|
+
function $n(l) {
|
|
1475
|
+
if (!Is(l))
|
|
1476
|
+
return qs(l);
|
|
1477
1477
|
var c = [];
|
|
1478
1478
|
for (var f in Object(l))
|
|
1479
|
-
|
|
1479
|
+
Nt.call(l, f) && f != "constructor" && c.push(f);
|
|
1480
1480
|
return c;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1482
|
+
function be(l, c) {
|
|
1483
1483
|
if (c)
|
|
1484
1484
|
return l.slice();
|
|
1485
1485
|
var f = new l.constructor(l.length);
|
|
@@ -1489,30 +1489,30 @@ Qs.exports;
|
|
|
1489
1489
|
var c = new l.constructor(l.byteLength);
|
|
1490
1490
|
return new Ue(c).set(new Ue(l)), c;
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function se(l, c) {
|
|
1493
1493
|
var f = c ? Ge(l.buffer) : l.buffer;
|
|
1494
1494
|
return new l.constructor(f, l.byteOffset, l.byteLength);
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1497
|
-
var N = c ? f(
|
|
1498
|
-
return Ie(N,
|
|
1496
|
+
function Cs(l, c, f) {
|
|
1497
|
+
var N = c ? f(Ns(l), !0) : Ns(l);
|
|
1498
|
+
return Ie(N, gn, new l.constructor());
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1501
|
-
var c = new l.constructor(l.source,
|
|
1500
|
+
function Os(l) {
|
|
1501
|
+
var c = new l.constructor(l.source, cn.exec(l));
|
|
1502
1502
|
return c.lastIndex = l.lastIndex, c;
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1505
|
-
var N = c ? f(
|
|
1506
|
-
return Ie(N,
|
|
1504
|
+
function Hn(l, c, f) {
|
|
1505
|
+
var N = c ? f(As(l), !0) : As(l);
|
|
1506
|
+
return Ie(N, ft, new l.constructor());
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
1508
|
+
function Fn(l) {
|
|
1509
|
+
return Ss ? Object(Ss.call(l)) : {};
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function zn(l, c) {
|
|
1512
1512
|
var f = c ? Ge(l.buffer) : l.buffer;
|
|
1513
1513
|
return new l.constructor(f, l.byteOffset, l.length);
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function Vn(l, c) {
|
|
1516
1516
|
var f = -1, N = l.length;
|
|
1517
1517
|
for (c || (c = Array(N)); ++f < N; )
|
|
1518
1518
|
c[f] = l[f];
|
|
@@ -1520,52 +1520,52 @@ Qs.exports;
|
|
|
1520
1520
|
}
|
|
1521
1521
|
function Ze(l, c, f, N) {
|
|
1522
1522
|
f || (f = {});
|
|
1523
|
-
for (var I = -1,
|
|
1523
|
+
for (var I = -1, C = c.length; ++I < C; ) {
|
|
1524
1524
|
var R = c[I], M = N ? N(f[R], l[R], R, f, l) : void 0;
|
|
1525
|
-
|
|
1525
|
+
ks(f, R, M === void 0 ? l[R] : M);
|
|
1526
1526
|
}
|
|
1527
1527
|
return f;
|
|
1528
1528
|
}
|
|
1529
|
-
function
|
|
1530
|
-
return Ze(l,
|
|
1529
|
+
function Kn(l, c) {
|
|
1530
|
+
return Ze(l, Ct(l), c);
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
return
|
|
1532
|
+
function Gn(l) {
|
|
1533
|
+
return Un(l, Ye, Ct);
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function ne(l, c) {
|
|
1536
1536
|
var f = l.__data__;
|
|
1537
|
-
return
|
|
1537
|
+
return Yn(c) ? f[typeof c == "string" ? "string" : "hash"] : f.map;
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1540
|
-
var f =
|
|
1541
|
-
return
|
|
1539
|
+
function gt(l, c) {
|
|
1540
|
+
var f = Es(l, c);
|
|
1541
|
+
return jn(f) ? f : void 0;
|
|
1542
1542
|
}
|
|
1543
|
-
var
|
|
1544
|
-
(
|
|
1545
|
-
var c =
|
|
1543
|
+
var Ct = Pe ? Me(Pe, Object) : tr, Ot = Pn;
|
|
1544
|
+
(de && Ot(new de(new ArrayBuffer(1))) != O || Jt && Ot(new Jt()) != d || dt && Ot(dt.resolve()) != b || ge && Ot(new ge()) != E || je && Ot(new je()) != _) && (Ot = function(l) {
|
|
1545
|
+
var c = ue.call(l), f = c == m ? l.constructor : void 0, N = f ? Q(f) : void 0;
|
|
1546
1546
|
if (N)
|
|
1547
1547
|
switch (N) {
|
|
1548
1548
|
case $e:
|
|
1549
1549
|
return O;
|
|
1550
|
-
case
|
|
1550
|
+
case ee:
|
|
1551
1551
|
return d;
|
|
1552
1552
|
case He:
|
|
1553
1553
|
return b;
|
|
1554
1554
|
case Fe:
|
|
1555
1555
|
return E;
|
|
1556
1556
|
case ze:
|
|
1557
|
-
return
|
|
1557
|
+
return _;
|
|
1558
1558
|
}
|
|
1559
1559
|
return c;
|
|
1560
1560
|
});
|
|
1561
|
-
function
|
|
1561
|
+
function Zn(l) {
|
|
1562
1562
|
var c = l.length, f = l.constructor(c);
|
|
1563
|
-
return c && typeof l[0] == "string" &&
|
|
1563
|
+
return c && typeof l[0] == "string" && Nt.call(l, "index") && (f.index = l.index, f.input = l.input), f;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return typeof l.constructor == "function" && !
|
|
1565
|
+
function xt(l) {
|
|
1566
|
+
return typeof l.constructor == "function" && !Is(l) ? Dn(it(l)) : {};
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Wn(l, c, f, N) {
|
|
1569
1569
|
var I = l.constructor;
|
|
1570
1570
|
switch (c) {
|
|
1571
1571
|
case q:
|
|
@@ -1574,48 +1574,48 @@ Qs.exports;
|
|
|
1574
1574
|
case u:
|
|
1575
1575
|
return new I(+l);
|
|
1576
1576
|
case O:
|
|
1577
|
-
return
|
|
1577
|
+
return se(l, N);
|
|
1578
1578
|
case B:
|
|
1579
1579
|
case j:
|
|
1580
1580
|
case _t:
|
|
1581
|
-
case
|
|
1582
|
-
case Wt:
|
|
1581
|
+
case Ut:
|
|
1583
1582
|
case Xt:
|
|
1583
|
+
case Yt:
|
|
1584
|
+
case ds:
|
|
1585
|
+
case gs:
|
|
1584
1586
|
case ps:
|
|
1585
|
-
|
|
1586
|
-
case bs:
|
|
1587
|
-
return Kn(l, N);
|
|
1587
|
+
return zn(l, N);
|
|
1588
1588
|
case d:
|
|
1589
|
-
return
|
|
1589
|
+
return Cs(l, N, f);
|
|
1590
1590
|
case p:
|
|
1591
1591
|
case w:
|
|
1592
1592
|
return new I(l);
|
|
1593
1593
|
case v:
|
|
1594
|
-
return
|
|
1594
|
+
return Os(l);
|
|
1595
1595
|
case E:
|
|
1596
|
-
return
|
|
1596
|
+
return Hn(l, N, f);
|
|
1597
1597
|
case x:
|
|
1598
|
-
return
|
|
1598
|
+
return Fn(l);
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1602
|
-
return c = c ?? n, !!c && (typeof l == "number" ||
|
|
1601
|
+
function Xn(l, c) {
|
|
1602
|
+
return c = c ?? n, !!c && (typeof l == "number" || hn.test(l)) && l > -1 && l % 1 == 0 && l < c;
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function Yn(l) {
|
|
1605
1605
|
var c = typeof l;
|
|
1606
1606
|
return c == "string" || c == "number" || c == "symbol" || c == "boolean" ? l !== "__proto__" : l === null;
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1609
|
-
return !!
|
|
1608
|
+
function Qn(l) {
|
|
1609
|
+
return !!xs && xs in l;
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
var c = l && l.constructor, f = typeof c == "function" && c.prototype ||
|
|
1611
|
+
function Is(l) {
|
|
1612
|
+
var c = l && l.constructor, f = typeof c == "function" && c.prototype || ce;
|
|
1613
1613
|
return l === f;
|
|
1614
1614
|
}
|
|
1615
1615
|
function Q(l) {
|
|
1616
1616
|
if (l != null) {
|
|
1617
1617
|
try {
|
|
1618
|
-
return
|
|
1618
|
+
return ws.call(l);
|
|
1619
1619
|
} catch {
|
|
1620
1620
|
}
|
|
1621
1621
|
try {
|
|
@@ -1625,116 +1625,116 @@ Qs.exports;
|
|
|
1625
1625
|
}
|
|
1626
1626
|
return "";
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1628
|
+
function Rs(l) {
|
|
1629
1629
|
return Ke(l, !0, !0);
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function Bs(l, c) {
|
|
1632
1632
|
return l === c || l !== l && c !== c;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1635
|
-
return
|
|
1634
|
+
function ye(l) {
|
|
1635
|
+
return Jn(l) && Nt.call(l, "callee") && (!Ls.call(l, "callee") || ue.call(l) == i);
|
|
1636
1636
|
}
|
|
1637
1637
|
var We = Array.isArray;
|
|
1638
|
-
function
|
|
1639
|
-
return l != null &&
|
|
1638
|
+
function ve(l) {
|
|
1639
|
+
return l != null && Ds(l.length) && !Xe(l);
|
|
1640
1640
|
}
|
|
1641
|
-
function
|
|
1642
|
-
return
|
|
1641
|
+
function Jn(l) {
|
|
1642
|
+
return Us(l) && ve(l);
|
|
1643
1643
|
}
|
|
1644
|
-
var
|
|
1644
|
+
var Ms = fe || er;
|
|
1645
1645
|
function Xe(l) {
|
|
1646
|
-
var c =
|
|
1646
|
+
var c = wt(l) ? ue.call(l) : "";
|
|
1647
1647
|
return c == g || c == y;
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function Ds(l) {
|
|
1650
1650
|
return typeof l == "number" && l > -1 && l % 1 == 0 && l <= n;
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1652
|
+
function wt(l) {
|
|
1653
1653
|
var c = typeof l;
|
|
1654
1654
|
return !!l && (c == "object" || c == "function");
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Us(l) {
|
|
1657
1657
|
return !!l && typeof l == "object";
|
|
1658
1658
|
}
|
|
1659
1659
|
function Ye(l) {
|
|
1660
|
-
return
|
|
1660
|
+
return ve(l) ? pe(l) : $n(l);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function tr() {
|
|
1663
1663
|
return [];
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function er() {
|
|
1666
1666
|
return !1;
|
|
1667
1667
|
}
|
|
1668
|
-
r.exports =
|
|
1669
|
-
})(
|
|
1670
|
-
var Ki =
|
|
1671
|
-
|
|
1668
|
+
r.exports = Rs;
|
|
1669
|
+
})(Xs, Xs.exports);
|
|
1670
|
+
var Ki = Xs.exports, Ys = { exports: {} };
|
|
1671
|
+
Ys.exports;
|
|
1672
1672
|
(function(r, t) {
|
|
1673
|
-
var e = 200, s = "__lodash_hash_undefined__", n = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", u = "[object Array]", h = "[object AsyncFunction]", g = "[object Boolean]", y = "[object Date]", d = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", v = "[object Number]", E = "[object Null]", w = "[object Object]", x = "[object Promise]",
|
|
1674
|
-
P[
|
|
1675
|
-
var
|
|
1673
|
+
var e = 200, s = "__lodash_hash_undefined__", n = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", u = "[object Array]", h = "[object AsyncFunction]", g = "[object Boolean]", y = "[object Date]", d = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", v = "[object Number]", E = "[object Null]", w = "[object Object]", x = "[object Promise]", _ = "[object Proxy]", q = "[object RegExp]", O = "[object Set]", B = "[object String]", j = "[object Symbol]", _t = "[object Undefined]", Ut = "[object WeakMap]", Xt = "[object ArrayBuffer]", Yt = "[object DataView]", ds = "[object Float32Array]", gs = "[object Float64Array]", ps = "[object Int8Array]", an = "[object Int16Array]", cn = "[object Int32Array]", un = "[object Uint8Array]", hn = "[object Uint8ClampedArray]", U = "[object Uint16Array]", fn = "[object Uint32Array]", dn = /[\\^$.*+?()[\]{}|]/g, ht = /^\[object .+?Constructor\]$/, ms = /^(?:0|[1-9]\d*)$/, P = {};
|
|
1674
|
+
P[ds] = P[gs] = P[ps] = P[an] = P[cn] = P[un] = P[hn] = P[U] = P[fn] = !0, P[a] = P[u] = P[Xt] = P[g] = P[Yt] = P[y] = P[d] = P[p] = P[b] = P[v] = P[w] = P[q] = P[O] = P[B] = P[Ut] = !1;
|
|
1675
|
+
var bs = typeof zt == "object" && zt && zt.Object === Object && zt, gn = typeof self == "object" && self && self.Object === Object && self, ft = bs || gn || Function("return this")(), ys = t && !t.nodeType && t, vs = ys && !0 && r && !r.nodeType && r, Ie = vs && vs.exports === ys, Re = Ie && bs.process, Es = function() {
|
|
1676
1676
|
try {
|
|
1677
1677
|
return Re && Re.binding && Re.binding("util");
|
|
1678
1678
|
} catch {
|
|
1679
1679
|
}
|
|
1680
|
-
}(), Be =
|
|
1681
|
-
function
|
|
1682
|
-
for (var f = -1, N = l == null ? 0 : l.length, I = 0,
|
|
1680
|
+
}(), Be = Es && Es.isTypedArray;
|
|
1681
|
+
function Ns(l, c) {
|
|
1682
|
+
for (var f = -1, N = l == null ? 0 : l.length, I = 0, C = []; ++f < N; ) {
|
|
1683
1683
|
var R = l[f];
|
|
1684
|
-
c(R, f, l) && (
|
|
1684
|
+
c(R, f, l) && (C[I++] = R);
|
|
1685
1685
|
}
|
|
1686
|
-
return
|
|
1686
|
+
return C;
|
|
1687
1687
|
}
|
|
1688
1688
|
function Me(l, c) {
|
|
1689
1689
|
for (var f = -1, N = c.length, I = l.length; ++f < N; )
|
|
1690
1690
|
l[I + f] = c[f];
|
|
1691
1691
|
return l;
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function As(l, c) {
|
|
1694
1694
|
for (var f = -1, N = l == null ? 0 : l.length; ++f < N; )
|
|
1695
1695
|
if (c(l[f], f, l))
|
|
1696
1696
|
return !0;
|
|
1697
1697
|
return !1;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function pn(l, c) {
|
|
1700
1700
|
for (var f = -1, N = Array(l); ++f < l; )
|
|
1701
1701
|
N[f] = c(f);
|
|
1702
1702
|
return N;
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1704
|
+
function mn(l) {
|
|
1705
1705
|
return function(c) {
|
|
1706
1706
|
return l(c);
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function ce(l, c) {
|
|
1710
1710
|
return l.has(c);
|
|
1711
1711
|
}
|
|
1712
1712
|
function De(l, c) {
|
|
1713
1713
|
return l == null ? void 0 : l[c];
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function xs(l) {
|
|
1716
1716
|
var c = -1, f = Array(l.size);
|
|
1717
1717
|
return l.forEach(function(N, I) {
|
|
1718
1718
|
f[++c] = [I, N];
|
|
1719
1719
|
}), f;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function ws(l, c) {
|
|
1722
1722
|
return function(f) {
|
|
1723
1723
|
return l(c(f));
|
|
1724
1724
|
};
|
|
1725
1725
|
}
|
|
1726
|
-
function
|
|
1726
|
+
function Nt(l) {
|
|
1727
1727
|
var c = -1, f = Array(l.size);
|
|
1728
1728
|
return l.forEach(function(N) {
|
|
1729
1729
|
f[++c] = N;
|
|
1730
1730
|
}), f;
|
|
1731
1731
|
}
|
|
1732
|
-
var
|
|
1733
|
-
var l = /[^.]+$/.exec(
|
|
1732
|
+
var ue = Array.prototype, bn = Function.prototype, Qt = Object.prototype, he = ft["__core-js_shared__"], Ue = bn.toString, it = Qt.hasOwnProperty, Ts = function() {
|
|
1733
|
+
var l = /[^.]+$/.exec(he && he.keys && he.keys.IE_PROTO || "");
|
|
1734
1734
|
return l ? "Symbol(src)_1." + l : "";
|
|
1735
|
-
}(),
|
|
1736
|
-
"^" + Ue.call(
|
|
1737
|
-
), Pe = Ie ?
|
|
1735
|
+
}(), Ls = Qt.toString, yn = RegExp(
|
|
1736
|
+
"^" + Ue.call(it).replace(dn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1737
|
+
), Pe = Ie ? ft.Buffer : void 0, fe = ft.Symbol, qs = ft.Uint8Array, de = Qt.propertyIsEnumerable, Jt = ue.splice, dt = fe ? fe.toStringTag : void 0, ge = Object.getOwnPropertySymbols, je = Pe ? Pe.isBuffer : void 0, te = ws(Object.keys, Object), $e = Ct(ft, "DataView"), ee = Ct(ft, "Map"), He = Ct(ft, "Promise"), Fe = Ct(ft, "Set"), ze = Ct(ft, "WeakMap"), Pt = Ct(Object, "create"), Ss = Q($e), kt = Q(ee), vn = Q(He), En = Q(Fe), Nn = Q(ze), _s = fe ? fe.prototype : void 0, Ve = _s ? _s.valueOf : void 0;
|
|
1738
1738
|
function z(l) {
|
|
1739
1739
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1740
1740
|
for (this.clear(); ++c < f; ) {
|
|
@@ -1742,30 +1742,30 @@ Js.exports;
|
|
|
1742
1742
|
this.set(N[0], N[1]);
|
|
1743
1743
|
}
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1746
|
-
this.__data__ =
|
|
1745
|
+
function An() {
|
|
1746
|
+
this.__data__ = Pt ? Pt(null) : {}, this.size = 0;
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function xn(l) {
|
|
1749
1749
|
var c = this.has(l) && delete this.__data__[l];
|
|
1750
1750
|
return this.size -= c ? 1 : 0, c;
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function wn(l) {
|
|
1753
1753
|
var c = this.__data__;
|
|
1754
|
-
if (
|
|
1754
|
+
if (Pt) {
|
|
1755
1755
|
var f = c[l];
|
|
1756
1756
|
return f === s ? void 0 : f;
|
|
1757
1757
|
}
|
|
1758
|
-
return
|
|
1758
|
+
return it.call(c, l) ? c[l] : void 0;
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1760
|
+
function Tn(l) {
|
|
1761
1761
|
var c = this.__data__;
|
|
1762
|
-
return
|
|
1762
|
+
return Pt ? c[l] !== void 0 : it.call(c, l);
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Ln(l, c) {
|
|
1765
1765
|
var f = this.__data__;
|
|
1766
|
-
return this.size += this.has(l) ? 0 : 1, f[l] =
|
|
1766
|
+
return this.size += this.has(l) ? 0 : 1, f[l] = Pt && c === void 0 ? s : c, this;
|
|
1767
1767
|
}
|
|
1768
|
-
z.prototype.clear =
|
|
1768
|
+
z.prototype.clear = An, z.prototype.delete = xn, z.prototype.get = wn, z.prototype.has = Tn, z.prototype.set = Ln;
|
|
1769
1769
|
function G(l) {
|
|
1770
1770
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1771
1771
|
for (this.clear(); ++c < f; ) {
|
|
@@ -1773,28 +1773,28 @@ Js.exports;
|
|
|
1773
1773
|
this.set(N[0], N[1]);
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
function
|
|
1776
|
+
function qn() {
|
|
1777
1777
|
this.__data__ = [], this.size = 0;
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1780
|
-
var c = this.__data__, f =
|
|
1779
|
+
function Sn(l) {
|
|
1780
|
+
var c = this.__data__, f = be(c, l);
|
|
1781
1781
|
if (f < 0)
|
|
1782
1782
|
return !1;
|
|
1783
1783
|
var N = c.length - 1;
|
|
1784
|
-
return f == N ? c.pop() :
|
|
1784
|
+
return f == N ? c.pop() : Jt.call(c, f, 1), --this.size, !0;
|
|
1785
1785
|
}
|
|
1786
1786
|
function _n(l) {
|
|
1787
|
-
var c = this.__data__, f =
|
|
1787
|
+
var c = this.__data__, f = be(c, l);
|
|
1788
1788
|
return f < 0 ? void 0 : c[f][1];
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1791
|
-
return
|
|
1790
|
+
function kn(l) {
|
|
1791
|
+
return be(this.__data__, l) > -1;
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1794
|
-
var f = this.__data__, N =
|
|
1793
|
+
function Cn(l, c) {
|
|
1794
|
+
var f = this.__data__, N = be(f, l);
|
|
1795
1795
|
return N < 0 ? (++this.size, f.push([l, c])) : f[N][1] = c, this;
|
|
1796
1796
|
}
|
|
1797
|
-
G.prototype.clear =
|
|
1797
|
+
G.prototype.clear = qn, G.prototype.delete = Sn, G.prototype.get = _n, G.prototype.has = kn, G.prototype.set = Cn;
|
|
1798
1798
|
function tt(l) {
|
|
1799
1799
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1800
1800
|
for (this.clear(); ++c < f; ) {
|
|
@@ -1802,195 +1802,195 @@ Js.exports;
|
|
|
1802
1802
|
this.set(N[0], N[1]);
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function On() {
|
|
1806
1806
|
this.size = 0, this.__data__ = {
|
|
1807
1807
|
hash: new z(),
|
|
1808
|
-
map: new (
|
|
1808
|
+
map: new (ee || G)(),
|
|
1809
1809
|
string: new z()
|
|
1810
1810
|
};
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1813
|
-
var c =
|
|
1812
|
+
function In(l) {
|
|
1813
|
+
var c = gt(this, l).delete(l);
|
|
1814
1814
|
return this.size -= c ? 1 : 0, c;
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1817
|
-
return
|
|
1816
|
+
function Rn(l) {
|
|
1817
|
+
return gt(this, l).get(l);
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1820
|
-
return
|
|
1819
|
+
function Bn(l) {
|
|
1820
|
+
return gt(this, l).has(l);
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1823
|
-
var f =
|
|
1822
|
+
function Mn(l, c) {
|
|
1823
|
+
var f = gt(this, l), N = f.size;
|
|
1824
1824
|
return f.set(l, c), this.size += f.size == N ? 0 : 1, this;
|
|
1825
1825
|
}
|
|
1826
|
-
tt.prototype.clear =
|
|
1827
|
-
function
|
|
1826
|
+
tt.prototype.clear = On, tt.prototype.delete = In, tt.prototype.get = Rn, tt.prototype.has = Bn, tt.prototype.set = Mn;
|
|
1827
|
+
function pe(l) {
|
|
1828
1828
|
var c = -1, f = l == null ? 0 : l.length;
|
|
1829
1829
|
for (this.__data__ = new tt(); ++c < f; )
|
|
1830
1830
|
this.add(l[c]);
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function ks(l) {
|
|
1833
1833
|
return this.__data__.set(l, s), this;
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function me(l) {
|
|
1836
1836
|
return this.__data__.has(l);
|
|
1837
1837
|
}
|
|
1838
|
-
|
|
1839
|
-
function
|
|
1838
|
+
pe.prototype.add = pe.prototype.push = ks, pe.prototype.has = me;
|
|
1839
|
+
function At(l) {
|
|
1840
1840
|
var c = this.__data__ = new G(l);
|
|
1841
1841
|
this.size = c.size;
|
|
1842
1842
|
}
|
|
1843
1843
|
function Ke() {
|
|
1844
1844
|
this.__data__ = new G(), this.size = 0;
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function Dn(l) {
|
|
1847
1847
|
var c = this.__data__, f = c.delete(l);
|
|
1848
1848
|
return this.size = c.size, f;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function Un(l) {
|
|
1851
1851
|
return this.__data__.get(l);
|
|
1852
1852
|
}
|
|
1853
|
-
function
|
|
1853
|
+
function Pn(l) {
|
|
1854
1854
|
return this.__data__.has(l);
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function jn(l, c) {
|
|
1857
1857
|
var f = this.__data__;
|
|
1858
1858
|
if (f instanceof G) {
|
|
1859
1859
|
var N = f.__data__;
|
|
1860
|
-
if (!
|
|
1860
|
+
if (!ee || N.length < e - 1)
|
|
1861
1861
|
return N.push([l, c]), this.size = ++f.size, this;
|
|
1862
1862
|
f = this.__data__ = new tt(N);
|
|
1863
1863
|
}
|
|
1864
1864
|
return f.set(l, c), this.size = f.size, this;
|
|
1865
1865
|
}
|
|
1866
|
-
|
|
1867
|
-
function
|
|
1868
|
-
var f =
|
|
1866
|
+
At.prototype.clear = Ke, At.prototype.delete = Dn, At.prototype.get = Un, At.prototype.has = Pn, At.prototype.set = jn;
|
|
1867
|
+
function $n(l, c) {
|
|
1868
|
+
var f = ye(l), N = !f && Bs(l), I = !f && !N && ve(l), C = !f && !N && !I && Us(l), R = f || N || I || C, M = R ? pn(l.length, String) : [], $ = M.length;
|
|
1869
1869
|
for (var D in l)
|
|
1870
|
-
(c ||
|
|
1870
|
+
(c || it.call(l, D)) && !(R && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1871
1871
|
(D == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1872
1872
|
I && (D == "offset" || D == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1873
|
-
|
|
1874
|
-
|
|
1873
|
+
C && (D == "buffer" || D == "byteLength" || D == "byteOffset") || // Skip index properties.
|
|
1874
|
+
Wn(D, $))) && M.push(D);
|
|
1875
1875
|
return M;
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function be(l, c) {
|
|
1878
1878
|
for (var f = l.length; f--; )
|
|
1879
|
-
if (
|
|
1879
|
+
if (Rs(l[f][0], c))
|
|
1880
1880
|
return f;
|
|
1881
1881
|
return -1;
|
|
1882
1882
|
}
|
|
1883
1883
|
function Ge(l, c, f) {
|
|
1884
1884
|
var N = c(l);
|
|
1885
|
-
return
|
|
1885
|
+
return ye(l) ? N : Me(N, f(l));
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1888
|
-
return l == null ? l === void 0 ? _t : E :
|
|
1887
|
+
function se(l) {
|
|
1888
|
+
return l == null ? l === void 0 ? _t : E : dt && dt in Object(l) ? Ot(l) : Is(l);
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1891
|
-
return
|
|
1890
|
+
function Cs(l) {
|
|
1891
|
+
return wt(l) && se(l) == a;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1894
|
-
return l === c ? !0 : l == null || c == null || !
|
|
1893
|
+
function Os(l, c, f, N, I) {
|
|
1894
|
+
return l === c ? !0 : l == null || c == null || !wt(l) && !wt(c) ? l !== l && c !== c : Hn(l, c, f, N, Os, I);
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1897
|
-
var R =
|
|
1896
|
+
function Hn(l, c, f, N, I, C) {
|
|
1897
|
+
var R = ye(l), M = ye(c), $ = R ? u : xt(l), D = M ? u : xt(c);
|
|
1898
1898
|
$ = $ == a ? w : $, D = D == a ? w : D;
|
|
1899
1899
|
var Z = $ == w, et = D == w, H = $ == D;
|
|
1900
|
-
if (H &&
|
|
1901
|
-
if (!
|
|
1900
|
+
if (H && ve(l)) {
|
|
1901
|
+
if (!ve(c))
|
|
1902
1902
|
return !1;
|
|
1903
1903
|
R = !0, Z = !1;
|
|
1904
1904
|
}
|
|
1905
1905
|
if (H && !Z)
|
|
1906
|
-
return
|
|
1906
|
+
return C || (C = new At()), R || Us(l) ? Ze(l, c, f, N, I, C) : Kn(l, c, $, f, N, I, C);
|
|
1907
1907
|
if (!(f & n)) {
|
|
1908
|
-
var W = Z &&
|
|
1908
|
+
var W = Z && it.call(l, "__wrapped__"), V = et && it.call(c, "__wrapped__");
|
|
1909
1909
|
if (W || V) {
|
|
1910
|
-
var
|
|
1911
|
-
return
|
|
1910
|
+
var jt = W ? l.value() : l, It = V ? c.value() : c;
|
|
1911
|
+
return C || (C = new At()), I(jt, It, f, N, C);
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
|
-
return H ? (
|
|
1914
|
+
return H ? (C || (C = new At()), Gn(l, c, f, N, I, C)) : !1;
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1917
|
-
if (!
|
|
1916
|
+
function Fn(l) {
|
|
1917
|
+
if (!Ds(l) || Yn(l))
|
|
1918
1918
|
return !1;
|
|
1919
|
-
var c =
|
|
1919
|
+
var c = Ms(l) ? yn : ht;
|
|
1920
1920
|
return c.test(Q(l));
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return
|
|
1922
|
+
function zn(l) {
|
|
1923
|
+
return wt(l) && Xe(l.length) && !!P[se(l)];
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
if (!
|
|
1927
|
-
return
|
|
1925
|
+
function Vn(l) {
|
|
1926
|
+
if (!Qn(l))
|
|
1927
|
+
return te(l);
|
|
1928
1928
|
var c = [];
|
|
1929
1929
|
for (var f in Object(l))
|
|
1930
|
-
|
|
1930
|
+
it.call(l, f) && f != "constructor" && c.push(f);
|
|
1931
1931
|
return c;
|
|
1932
1932
|
}
|
|
1933
|
-
function Ze(l, c, f, N, I,
|
|
1933
|
+
function Ze(l, c, f, N, I, C) {
|
|
1934
1934
|
var R = f & n, M = l.length, $ = c.length;
|
|
1935
1935
|
if (M != $ && !(R && $ > M))
|
|
1936
1936
|
return !1;
|
|
1937
|
-
var D =
|
|
1938
|
-
if (D &&
|
|
1937
|
+
var D = C.get(l);
|
|
1938
|
+
if (D && C.get(c))
|
|
1939
1939
|
return D == c;
|
|
1940
|
-
var Z = -1, et = !0, H = f & i ? new
|
|
1941
|
-
for (
|
|
1940
|
+
var Z = -1, et = !0, H = f & i ? new pe() : void 0;
|
|
1941
|
+
for (C.set(l, c), C.set(c, l); ++Z < M; ) {
|
|
1942
1942
|
var W = l[Z], V = c[Z];
|
|
1943
1943
|
if (N)
|
|
1944
|
-
var
|
|
1945
|
-
if (
|
|
1946
|
-
if (
|
|
1944
|
+
var jt = R ? N(V, W, Z, c, l, C) : N(W, V, Z, l, c, C);
|
|
1945
|
+
if (jt !== void 0) {
|
|
1946
|
+
if (jt)
|
|
1947
1947
|
continue;
|
|
1948
1948
|
et = !1;
|
|
1949
1949
|
break;
|
|
1950
1950
|
}
|
|
1951
1951
|
if (H) {
|
|
1952
|
-
if (!
|
|
1953
|
-
if (!
|
|
1954
|
-
return H.push(
|
|
1952
|
+
if (!As(c, function(It, re) {
|
|
1953
|
+
if (!ce(H, re) && (W === It || I(W, It, f, N, C)))
|
|
1954
|
+
return H.push(re);
|
|
1955
1955
|
})) {
|
|
1956
1956
|
et = !1;
|
|
1957
1957
|
break;
|
|
1958
1958
|
}
|
|
1959
|
-
} else if (!(W === V || I(W, V, f, N,
|
|
1959
|
+
} else if (!(W === V || I(W, V, f, N, C))) {
|
|
1960
1960
|
et = !1;
|
|
1961
1961
|
break;
|
|
1962
1962
|
}
|
|
1963
1963
|
}
|
|
1964
|
-
return
|
|
1964
|
+
return C.delete(l), C.delete(c), et;
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function Kn(l, c, f, N, I, C, R) {
|
|
1967
1967
|
switch (f) {
|
|
1968
|
-
case
|
|
1968
|
+
case Yt:
|
|
1969
1969
|
if (l.byteLength != c.byteLength || l.byteOffset != c.byteOffset)
|
|
1970
1970
|
return !1;
|
|
1971
1971
|
l = l.buffer, c = c.buffer;
|
|
1972
|
-
case
|
|
1973
|
-
return !(l.byteLength != c.byteLength || !
|
|
1972
|
+
case Xt:
|
|
1973
|
+
return !(l.byteLength != c.byteLength || !C(new qs(l), new qs(c)));
|
|
1974
1974
|
case g:
|
|
1975
1975
|
case y:
|
|
1976
1976
|
case v:
|
|
1977
|
-
return
|
|
1977
|
+
return Rs(+l, +c);
|
|
1978
1978
|
case d:
|
|
1979
1979
|
return l.name == c.name && l.message == c.message;
|
|
1980
1980
|
case q:
|
|
1981
1981
|
case B:
|
|
1982
1982
|
return l == c + "";
|
|
1983
1983
|
case b:
|
|
1984
|
-
var M =
|
|
1984
|
+
var M = xs;
|
|
1985
1985
|
case O:
|
|
1986
1986
|
var $ = N & n;
|
|
1987
|
-
if (M || (M =
|
|
1987
|
+
if (M || (M = Nt), l.size != c.size && !$)
|
|
1988
1988
|
return !1;
|
|
1989
1989
|
var D = R.get(l);
|
|
1990
1990
|
if (D)
|
|
1991
1991
|
return D == c;
|
|
1992
1992
|
N |= i, R.set(l, c);
|
|
1993
|
-
var Z = Ze(M(l), M(c), N, I,
|
|
1993
|
+
var Z = Ze(M(l), M(c), N, I, C, R);
|
|
1994
1994
|
return R.delete(l), Z;
|
|
1995
1995
|
case j:
|
|
1996
1996
|
if (Ve)
|
|
@@ -1998,96 +1998,96 @@ Js.exports;
|
|
|
1998
1998
|
}
|
|
1999
1999
|
return !1;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2002
|
-
var R = f & n, M =
|
|
2001
|
+
function Gn(l, c, f, N, I, C) {
|
|
2002
|
+
var R = f & n, M = ne(l), $ = M.length, D = ne(c), Z = D.length;
|
|
2003
2003
|
if ($ != Z && !R)
|
|
2004
2004
|
return !1;
|
|
2005
2005
|
for (var et = $; et--; ) {
|
|
2006
2006
|
var H = M[et];
|
|
2007
|
-
if (!(R ? H in c :
|
|
2007
|
+
if (!(R ? H in c : it.call(c, H)))
|
|
2008
2008
|
return !1;
|
|
2009
2009
|
}
|
|
2010
|
-
var W =
|
|
2011
|
-
if (W &&
|
|
2010
|
+
var W = C.get(l);
|
|
2011
|
+
if (W && C.get(c))
|
|
2012
2012
|
return W == c;
|
|
2013
2013
|
var V = !0;
|
|
2014
|
-
|
|
2015
|
-
for (var
|
|
2014
|
+
C.set(l, c), C.set(c, l);
|
|
2015
|
+
for (var jt = R; ++et < $; ) {
|
|
2016
2016
|
H = M[et];
|
|
2017
|
-
var
|
|
2017
|
+
var It = l[H], re = c[H];
|
|
2018
2018
|
if (N)
|
|
2019
|
-
var Jr = R ? N(
|
|
2020
|
-
if (!(Jr === void 0 ?
|
|
2019
|
+
var Jr = R ? N(re, It, H, c, l, C) : N(It, re, H, l, c, C);
|
|
2020
|
+
if (!(Jr === void 0 ? It === re || I(It, re, f, N, C) : Jr)) {
|
|
2021
2021
|
V = !1;
|
|
2022
2022
|
break;
|
|
2023
2023
|
}
|
|
2024
|
-
|
|
2024
|
+
jt || (jt = H == "constructor");
|
|
2025
2025
|
}
|
|
2026
|
-
if (V && !
|
|
2027
|
-
var
|
|
2028
|
-
|
|
2026
|
+
if (V && !jt) {
|
|
2027
|
+
var Ps = l.constructor, js = c.constructor;
|
|
2028
|
+
Ps != js && "constructor" in l && "constructor" in c && !(typeof Ps == "function" && Ps instanceof Ps && typeof js == "function" && js instanceof js) && (V = !1);
|
|
2029
2029
|
}
|
|
2030
|
-
return
|
|
2030
|
+
return C.delete(l), C.delete(c), V;
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return Ge(l, Ye,
|
|
2032
|
+
function ne(l) {
|
|
2033
|
+
return Ge(l, Ye, Zn);
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2035
|
+
function gt(l, c) {
|
|
2036
2036
|
var f = l.__data__;
|
|
2037
|
-
return
|
|
2037
|
+
return Xn(c) ? f[typeof c == "string" ? "string" : "hash"] : f.map;
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function Ct(l, c) {
|
|
2040
2040
|
var f = De(l, c);
|
|
2041
|
-
return
|
|
2041
|
+
return Fn(f) ? f : void 0;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2044
|
-
var c =
|
|
2043
|
+
function Ot(l) {
|
|
2044
|
+
var c = it.call(l, dt), f = l[dt];
|
|
2045
2045
|
try {
|
|
2046
|
-
l[
|
|
2046
|
+
l[dt] = void 0;
|
|
2047
2047
|
var N = !0;
|
|
2048
2048
|
} catch {
|
|
2049
2049
|
}
|
|
2050
|
-
var I =
|
|
2051
|
-
return N && (c ? l[
|
|
2050
|
+
var I = Ls.call(l);
|
|
2051
|
+
return N && (c ? l[dt] = f : delete l[dt]), I;
|
|
2052
2052
|
}
|
|
2053
|
-
var
|
|
2054
|
-
return l == null ? [] : (l = Object(l),
|
|
2055
|
-
return
|
|
2053
|
+
var Zn = ge ? function(l) {
|
|
2054
|
+
return l == null ? [] : (l = Object(l), Ns(ge(l), function(c) {
|
|
2055
|
+
return de.call(l, c);
|
|
2056
2056
|
}));
|
|
2057
|
-
} :
|
|
2058
|
-
($e &&
|
|
2059
|
-
var c =
|
|
2057
|
+
} : tr, xt = se;
|
|
2058
|
+
($e && xt(new $e(new ArrayBuffer(1))) != Yt || ee && xt(new ee()) != b || He && xt(He.resolve()) != x || Fe && xt(new Fe()) != O || ze && xt(new ze()) != Ut) && (xt = function(l) {
|
|
2059
|
+
var c = se(l), f = c == w ? l.constructor : void 0, N = f ? Q(f) : "";
|
|
2060
2060
|
if (N)
|
|
2061
2061
|
switch (N) {
|
|
2062
|
-
case
|
|
2063
|
-
return
|
|
2064
|
-
case
|
|
2062
|
+
case Ss:
|
|
2063
|
+
return Yt;
|
|
2064
|
+
case kt:
|
|
2065
2065
|
return b;
|
|
2066
|
-
case
|
|
2066
|
+
case vn:
|
|
2067
2067
|
return x;
|
|
2068
|
-
case
|
|
2068
|
+
case En:
|
|
2069
2069
|
return O;
|
|
2070
|
-
case
|
|
2071
|
-
return
|
|
2070
|
+
case Nn:
|
|
2071
|
+
return Ut;
|
|
2072
2072
|
}
|
|
2073
2073
|
return c;
|
|
2074
2074
|
});
|
|
2075
|
-
function
|
|
2076
|
-
return c = c ?? o, !!c && (typeof l == "number" ||
|
|
2075
|
+
function Wn(l, c) {
|
|
2076
|
+
return c = c ?? o, !!c && (typeof l == "number" || ms.test(l)) && l > -1 && l % 1 == 0 && l < c;
|
|
2077
2077
|
}
|
|
2078
|
-
function
|
|
2078
|
+
function Xn(l) {
|
|
2079
2079
|
var c = typeof l;
|
|
2080
2080
|
return c == "string" || c == "number" || c == "symbol" || c == "boolean" ? l !== "__proto__" : l === null;
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2083
|
-
return !!
|
|
2082
|
+
function Yn(l) {
|
|
2083
|
+
return !!Ts && Ts in l;
|
|
2084
2084
|
}
|
|
2085
|
-
function
|
|
2086
|
-
var c = l && l.constructor, f = typeof c == "function" && c.prototype ||
|
|
2085
|
+
function Qn(l) {
|
|
2086
|
+
var c = l && l.constructor, f = typeof c == "function" && c.prototype || Qt;
|
|
2087
2087
|
return l === f;
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return
|
|
2089
|
+
function Is(l) {
|
|
2090
|
+
return Ls.call(l);
|
|
2091
2091
|
}
|
|
2092
2092
|
function Q(l) {
|
|
2093
2093
|
if (l != null) {
|
|
@@ -2102,53 +2102,53 @@ Js.exports;
|
|
|
2102
2102
|
}
|
|
2103
2103
|
return "";
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function Rs(l, c) {
|
|
2106
2106
|
return l === c || l !== l && c !== c;
|
|
2107
2107
|
}
|
|
2108
|
-
var
|
|
2108
|
+
var Bs = Cs(function() {
|
|
2109
2109
|
return arguments;
|
|
2110
|
-
}()) ?
|
|
2111
|
-
return
|
|
2112
|
-
},
|
|
2110
|
+
}()) ? Cs : function(l) {
|
|
2111
|
+
return wt(l) && it.call(l, "callee") && !de.call(l, "callee");
|
|
2112
|
+
}, ye = Array.isArray;
|
|
2113
2113
|
function We(l) {
|
|
2114
|
-
return l != null && Xe(l.length) && !
|
|
2114
|
+
return l != null && Xe(l.length) && !Ms(l);
|
|
2115
2115
|
}
|
|
2116
|
-
var
|
|
2117
|
-
function
|
|
2118
|
-
return
|
|
2116
|
+
var ve = je || er;
|
|
2117
|
+
function Jn(l, c) {
|
|
2118
|
+
return Os(l, c);
|
|
2119
2119
|
}
|
|
2120
|
-
function
|
|
2121
|
-
if (!
|
|
2120
|
+
function Ms(l) {
|
|
2121
|
+
if (!Ds(l))
|
|
2122
2122
|
return !1;
|
|
2123
|
-
var c =
|
|
2124
|
-
return c == p || c == m || c == h || c ==
|
|
2123
|
+
var c = se(l);
|
|
2124
|
+
return c == p || c == m || c == h || c == _;
|
|
2125
2125
|
}
|
|
2126
2126
|
function Xe(l) {
|
|
2127
2127
|
return typeof l == "number" && l > -1 && l % 1 == 0 && l <= o;
|
|
2128
2128
|
}
|
|
2129
|
-
function
|
|
2129
|
+
function Ds(l) {
|
|
2130
2130
|
var c = typeof l;
|
|
2131
2131
|
return l != null && (c == "object" || c == "function");
|
|
2132
2132
|
}
|
|
2133
|
-
function
|
|
2133
|
+
function wt(l) {
|
|
2134
2134
|
return l != null && typeof l == "object";
|
|
2135
2135
|
}
|
|
2136
|
-
var
|
|
2136
|
+
var Us = Be ? mn(Be) : zn;
|
|
2137
2137
|
function Ye(l) {
|
|
2138
|
-
return We(l) ?
|
|
2138
|
+
return We(l) ? $n(l) : Vn(l);
|
|
2139
2139
|
}
|
|
2140
|
-
function
|
|
2140
|
+
function tr() {
|
|
2141
2141
|
return [];
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2143
|
+
function er() {
|
|
2144
2144
|
return !1;
|
|
2145
2145
|
}
|
|
2146
|
-
r.exports =
|
|
2147
|
-
})(
|
|
2148
|
-
var Gi =
|
|
2149
|
-
Object.defineProperty(
|
|
2146
|
+
r.exports = Jn;
|
|
2147
|
+
})(Ys, Ys.exports);
|
|
2148
|
+
var Gi = Ys.exports, Pr = {};
|
|
2149
|
+
Object.defineProperty(Pr, "__esModule", { value: !0 });
|
|
2150
2150
|
const ro = Ki, io = Gi;
|
|
2151
|
-
var
|
|
2151
|
+
var Er;
|
|
2152
2152
|
(function(r) {
|
|
2153
2153
|
function t(i = {}, o = {}, a = !1) {
|
|
2154
2154
|
typeof i != "object" && (i = {}), typeof o != "object" && (o = {});
|
|
@@ -2182,21 +2182,21 @@ var Ar;
|
|
|
2182
2182
|
return Object.keys(u).length > 0 ? u : void 0;
|
|
2183
2183
|
}
|
|
2184
2184
|
r.transform = n;
|
|
2185
|
-
})(
|
|
2186
|
-
|
|
2187
|
-
var
|
|
2188
|
-
Object.defineProperty(
|
|
2189
|
-
var
|
|
2185
|
+
})(Er || (Er = {}));
|
|
2186
|
+
Pr.default = Er;
|
|
2187
|
+
var sn = {};
|
|
2188
|
+
Object.defineProperty(sn, "__esModule", { value: !0 });
|
|
2189
|
+
var Nr;
|
|
2190
2190
|
(function(r) {
|
|
2191
2191
|
function t(e) {
|
|
2192
2192
|
return typeof e.delete == "number" ? e.delete : typeof e.retain == "number" ? e.retain : typeof e.retain == "object" && e.retain !== null ? 1 : typeof e.insert == "string" ? e.insert.length : 1;
|
|
2193
2193
|
}
|
|
2194
2194
|
r.length = t;
|
|
2195
|
-
})(
|
|
2196
|
-
|
|
2197
|
-
var
|
|
2198
|
-
Object.defineProperty(
|
|
2199
|
-
const fi =
|
|
2195
|
+
})(Nr || (Nr = {}));
|
|
2196
|
+
sn.default = Nr;
|
|
2197
|
+
var jr = {};
|
|
2198
|
+
Object.defineProperty(jr, "__esModule", { value: !0 });
|
|
2199
|
+
const fi = sn;
|
|
2200
2200
|
class lo {
|
|
2201
2201
|
constructor(t) {
|
|
2202
2202
|
this.ops = t, this.index = 0, this.offset = 0;
|
|
@@ -2240,14 +2240,14 @@ class lo {
|
|
|
2240
2240
|
return [];
|
|
2241
2241
|
}
|
|
2242
2242
|
}
|
|
2243
|
-
|
|
2243
|
+
jr.default = lo;
|
|
2244
2244
|
(function(r, t) {
|
|
2245
2245
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.AttributeMap = t.OpIterator = t.Op = void 0;
|
|
2246
|
-
const e = no, s = Ki, n = Gi, i =
|
|
2246
|
+
const e = no, s = Ki, n = Gi, i = Pr;
|
|
2247
2247
|
t.AttributeMap = i.default;
|
|
2248
|
-
const o =
|
|
2248
|
+
const o = sn;
|
|
2249
2249
|
t.Op = o.default;
|
|
2250
|
-
const a =
|
|
2250
|
+
const a = jr;
|
|
2251
2251
|
t.OpIterator = a.default;
|
|
2252
2252
|
const u = String.fromCharCode(0), h = (y, d) => {
|
|
2253
2253
|
if (typeof y != "object" || y === null)
|
|
@@ -2356,26 +2356,26 @@ Hr.default = lo;
|
|
|
2356
2356
|
else if (p.peekType() === "delete")
|
|
2357
2357
|
E.push(p.next());
|
|
2358
2358
|
else {
|
|
2359
|
-
const w = Math.min(p.peekLength(), m.peekLength()), x = p.next(w),
|
|
2360
|
-
if (
|
|
2359
|
+
const w = Math.min(p.peekLength(), m.peekLength()), x = p.next(w), _ = m.next(w);
|
|
2360
|
+
if (_.retain) {
|
|
2361
2361
|
const q = {};
|
|
2362
2362
|
if (typeof x.retain == "number")
|
|
2363
|
-
q.retain = typeof
|
|
2364
|
-
else if (typeof
|
|
2363
|
+
q.retain = typeof _.retain == "number" ? w : _.retain;
|
|
2364
|
+
else if (typeof _.retain == "number")
|
|
2365
2365
|
x.retain == null ? q.insert = x.insert : q.retain = x.retain;
|
|
2366
2366
|
else {
|
|
2367
|
-
const B = x.retain == null ? "insert" : "retain", [j, _t,
|
|
2367
|
+
const B = x.retain == null ? "insert" : "retain", [j, _t, Ut] = h(x[B], _.retain), Xt = g.getHandler(j);
|
|
2368
2368
|
q[B] = {
|
|
2369
|
-
[j]:
|
|
2369
|
+
[j]: Xt.compose(_t, Ut, B === "retain")
|
|
2370
2370
|
};
|
|
2371
2371
|
}
|
|
2372
|
-
const O = i.default.compose(x.attributes,
|
|
2372
|
+
const O = i.default.compose(x.attributes, _.attributes, typeof x.retain == "number");
|
|
2373
2373
|
if (O && (q.attributes = O), E.push(q), !m.hasNext() && n(E.ops[E.ops.length - 1], q)) {
|
|
2374
2374
|
const B = new g(p.rest());
|
|
2375
2375
|
return E.concat(B).chop();
|
|
2376
2376
|
}
|
|
2377
2377
|
} else
|
|
2378
|
-
typeof
|
|
2378
|
+
typeof _.delete == "number" && (typeof x.retain == "number" || typeof x.retain == "object" && x.retain !== null) && E.push(_);
|
|
2379
2379
|
}
|
|
2380
2380
|
return E.chop();
|
|
2381
2381
|
}
|
|
@@ -2386,30 +2386,30 @@ Hr.default = lo;
|
|
|
2386
2386
|
diff(d, p) {
|
|
2387
2387
|
if (this.ops === d.ops)
|
|
2388
2388
|
return new g();
|
|
2389
|
-
const m = [this, d].map((x) => x.map((
|
|
2390
|
-
if (
|
|
2391
|
-
return typeof
|
|
2389
|
+
const m = [this, d].map((x) => x.map((_) => {
|
|
2390
|
+
if (_.insert != null)
|
|
2391
|
+
return typeof _.insert == "string" ? _.insert : u;
|
|
2392
2392
|
const q = x === d ? "on" : "with";
|
|
2393
2393
|
throw new Error("diff() called " + q + " non-document");
|
|
2394
2394
|
}).join("")), b = new g(), v = e(m[0], m[1], p, !0), E = new a.default(this.ops), w = new a.default(d.ops);
|
|
2395
2395
|
return v.forEach((x) => {
|
|
2396
|
-
let
|
|
2397
|
-
for (;
|
|
2396
|
+
let _ = x[1].length;
|
|
2397
|
+
for (; _ > 0; ) {
|
|
2398
2398
|
let q = 0;
|
|
2399
2399
|
switch (x[0]) {
|
|
2400
2400
|
case e.INSERT:
|
|
2401
|
-
q = Math.min(w.peekLength(),
|
|
2401
|
+
q = Math.min(w.peekLength(), _), b.push(w.next(q));
|
|
2402
2402
|
break;
|
|
2403
2403
|
case e.DELETE:
|
|
2404
|
-
q = Math.min(
|
|
2404
|
+
q = Math.min(_, E.peekLength()), E.next(q), b.delete(q);
|
|
2405
2405
|
break;
|
|
2406
2406
|
case e.EQUAL:
|
|
2407
|
-
q = Math.min(E.peekLength(), w.peekLength(),
|
|
2407
|
+
q = Math.min(E.peekLength(), w.peekLength(), _);
|
|
2408
2408
|
const O = E.next(q), B = w.next(q);
|
|
2409
2409
|
n(O.insert, B.insert) ? b.retain(q, i.default.diff(O.attributes, B.attributes)) : b.push(B).delete(q);
|
|
2410
2410
|
break;
|
|
2411
2411
|
}
|
|
2412
|
-
|
|
2412
|
+
_ -= q;
|
|
2413
2413
|
}
|
|
2414
2414
|
}), b.chop();
|
|
2415
2415
|
}
|
|
@@ -2447,8 +2447,8 @@ Hr.default = lo;
|
|
|
2447
2447
|
b.delete ? p.push(w) : b.retain && b.attributes && p.retain(o.default.length(w), i.default.invert(b.attributes, w.attributes));
|
|
2448
2448
|
}), m + v;
|
|
2449
2449
|
} else if (typeof b.retain == "object" && b.retain !== null) {
|
|
2450
|
-
const v = d.slice(m, m + 1), E = new a.default(v.ops).next(), [w, x,
|
|
2451
|
-
return p.retain({ [w]: q.invert(x,
|
|
2450
|
+
const v = d.slice(m, m + 1), E = new a.default(v.ops).next(), [w, x, _] = h(b.retain, E.insert), q = g.getHandler(w);
|
|
2451
|
+
return p.retain({ [w]: q.invert(x, _) }, i.default.invert(b.attributes, E.attributes)), m + 1;
|
|
2452
2452
|
}
|
|
2453
2453
|
}
|
|
2454
2454
|
return m;
|
|
@@ -2464,13 +2464,13 @@ Hr.default = lo;
|
|
|
2464
2464
|
else if (v.peekType() === "insert")
|
|
2465
2465
|
E.push(v.next());
|
|
2466
2466
|
else {
|
|
2467
|
-
const w = Math.min(b.peekLength(), v.peekLength()), x = b.next(w),
|
|
2467
|
+
const w = Math.min(b.peekLength(), v.peekLength()), x = b.next(w), _ = v.next(w);
|
|
2468
2468
|
if (x.delete)
|
|
2469
2469
|
continue;
|
|
2470
|
-
if (
|
|
2471
|
-
E.push(
|
|
2470
|
+
if (_.delete)
|
|
2471
|
+
E.push(_);
|
|
2472
2472
|
else {
|
|
2473
|
-
const q = x.retain, O =
|
|
2473
|
+
const q = x.retain, O = _.retain;
|
|
2474
2474
|
let B = typeof O == "object" && O !== null ? O : w;
|
|
2475
2475
|
if (typeof q == "object" && q !== null && typeof O == "object" && O !== null) {
|
|
2476
2476
|
const j = Object.keys(q)[0];
|
|
@@ -2481,7 +2481,7 @@ Hr.default = lo;
|
|
|
2481
2481
|
});
|
|
2482
2482
|
}
|
|
2483
2483
|
}
|
|
2484
|
-
E.retain(B, i.default.transform(x.attributes,
|
|
2484
|
+
E.retain(B, i.default.transform(x.attributes, _.attributes, p));
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
return E.chop();
|
|
@@ -2503,10 +2503,10 @@ Hr.default = lo;
|
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
2505
|
g.Op = o.default, g.OpIterator = a.default, g.AttributeMap = i.default, g.handlers = {}, t.default = g, r.exports = g, r.exports.default = g;
|
|
2506
|
-
})(
|
|
2507
|
-
var ct =
|
|
2506
|
+
})(vr, vr.exports);
|
|
2507
|
+
var ct = vr.exports;
|
|
2508
2508
|
const S = /* @__PURE__ */ Bi(ct);
|
|
2509
|
-
class
|
|
2509
|
+
class vt extends rt {
|
|
2510
2510
|
static value() {
|
|
2511
2511
|
}
|
|
2512
2512
|
optimize() {
|
|
@@ -2519,11 +2519,11 @@ class Et extends nt {
|
|
|
2519
2519
|
return "";
|
|
2520
2520
|
}
|
|
2521
2521
|
}
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
let
|
|
2522
|
+
vt.blotName = "break";
|
|
2523
|
+
vt.tagName = "BR";
|
|
2524
|
+
let bt = class extends Ws {
|
|
2525
2525
|
};
|
|
2526
|
-
function
|
|
2526
|
+
function nn(r) {
|
|
2527
2527
|
return r.replace(/[&<>"']/g, (t) => ({
|
|
2528
2528
|
"&": "&",
|
|
2529
2529
|
"<": "<",
|
|
@@ -2532,27 +2532,28 @@ function ln(r) {
|
|
|
2532
2532
|
"'": "'"
|
|
2533
2533
|
})[t]);
|
|
2534
2534
|
}
|
|
2535
|
-
const
|
|
2535
|
+
const Ht = class extends Br {
|
|
2536
2536
|
static compare(t, e) {
|
|
2537
|
-
const s =
|
|
2537
|
+
const s = Ht.order.indexOf(t), n = Ht.order.indexOf(e);
|
|
2538
2538
|
return s >= 0 || n >= 0 ? s - n : t === e ? 0 : t < e ? -1 : 1;
|
|
2539
2539
|
}
|
|
2540
2540
|
formatAt(t, e, s, n) {
|
|
2541
|
-
if (
|
|
2541
|
+
if (Ht.compare(this.statics.blotName, s) < 0 && this.scroll.query(s, k.BLOT)) {
|
|
2542
2542
|
const i = this.isolate(t, e);
|
|
2543
2543
|
n && i.wrap(s, n);
|
|
2544
2544
|
} else
|
|
2545
2545
|
super.formatAt(t, e, s, n);
|
|
2546
2546
|
}
|
|
2547
2547
|
optimize(t) {
|
|
2548
|
-
if (super.optimize(t), this.parent instanceof
|
|
2548
|
+
if (super.optimize(t), this.parent instanceof Ht && Ht.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
|
|
2549
2549
|
const e = this.parent.isolate(this.offset(), this.length());
|
|
2550
2550
|
this.moveChildren(e), e.wrap(this);
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
};
|
|
2554
|
-
|
|
2555
|
-
T(
|
|
2554
|
+
let ut = Ht;
|
|
2555
|
+
T(ut, "allowedChildren", [Ht, vt, rt, bt]), // Lower index means deeper in the DOM tree, since not found (-1) is for embeds
|
|
2556
|
+
T(ut, "order", [
|
|
2556
2557
|
"cursor",
|
|
2557
2558
|
"inline",
|
|
2558
2559
|
// Must be lower
|
|
@@ -2566,9 +2567,8 @@ T(qt, "order", [
|
|
|
2566
2567
|
"code"
|
|
2567
2568
|
// Must be higher
|
|
2568
2569
|
]);
|
|
2569
|
-
let Ct = qt;
|
|
2570
2570
|
const di = 1;
|
|
2571
|
-
class K extends
|
|
2571
|
+
class K extends rs {
|
|
2572
2572
|
constructor() {
|
|
2573
2573
|
super(...arguments);
|
|
2574
2574
|
T(this, "cache", {});
|
|
@@ -2580,7 +2580,7 @@ class K extends ls {
|
|
|
2580
2580
|
super.deleteAt(e, s), this.cache = {};
|
|
2581
2581
|
}
|
|
2582
2582
|
formatAt(e, s, n, i) {
|
|
2583
|
-
s <= 0 || (this.scroll.query(n,
|
|
2583
|
+
s <= 0 || (this.scroll.query(n, k.BLOCK) ? e + s === this.length() && this.format(n, i) : super.formatAt(e, Math.min(s, this.length() - e - 1), n, i), this.cache = {});
|
|
2584
2584
|
}
|
|
2585
2585
|
insertAt(e, s, n) {
|
|
2586
2586
|
if (n != null) {
|
|
@@ -2599,7 +2599,7 @@ class K extends ls {
|
|
|
2599
2599
|
const {
|
|
2600
2600
|
head: n
|
|
2601
2601
|
} = this.children;
|
|
2602
|
-
super.insertBefore(e, s), n instanceof
|
|
2602
|
+
super.insertBefore(e, s), n instanceof vt && n.remove(), this.cache = {};
|
|
2603
2603
|
}
|
|
2604
2604
|
length() {
|
|
2605
2605
|
return this.cache.length == null && (this.cache.length = super.length() + di), this.cache.length;
|
|
@@ -2628,11 +2628,11 @@ class K extends ls {
|
|
|
2628
2628
|
}
|
|
2629
2629
|
K.blotName = "block";
|
|
2630
2630
|
K.tagName = "P";
|
|
2631
|
-
K.defaultChild =
|
|
2632
|
-
K.allowedChildren = [
|
|
2633
|
-
class at extends
|
|
2631
|
+
K.defaultChild = vt;
|
|
2632
|
+
K.allowedChildren = [vt, ut, rt, bt];
|
|
2633
|
+
class at extends rt {
|
|
2634
2634
|
attach() {
|
|
2635
|
-
super.attach(), this.attributes = new
|
|
2635
|
+
super.attach(), this.attributes = new Qs(this.domNode);
|
|
2636
2636
|
}
|
|
2637
2637
|
delta() {
|
|
2638
2638
|
return new S().insert(this.value(), {
|
|
@@ -2641,7 +2641,7 @@ class at extends nt {
|
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
2643
2643
|
format(t, e) {
|
|
2644
|
-
const s = this.scroll.query(t,
|
|
2644
|
+
const s = this.scroll.query(t, k.BLOCK_ATTRIBUTE);
|
|
2645
2645
|
s != null && this.attributes.attribute(s, e);
|
|
2646
2646
|
}
|
|
2647
2647
|
formatAt(t, e, s, n) {
|
|
@@ -2662,7 +2662,7 @@ class at extends nt {
|
|
|
2662
2662
|
}), i && this.parent.insertBefore(this.scroll.create("text", i), a);
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
|
-
at.scope =
|
|
2665
|
+
at.scope = k.BLOCK_BLOT;
|
|
2666
2666
|
function Zi(r) {
|
|
2667
2667
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2668
2668
|
return r.descendants(X).reduce((e, s) => s.length() === 0 ? e : e.insert(s.value(), lt(s, {}, t)), new S()).insert(`
|
|
@@ -2675,12 +2675,12 @@ function lt(r) {
|
|
|
2675
2675
|
...r.formats()
|
|
2676
2676
|
}, e && delete t["code-token"]), r.parent == null || r.parent.statics.blotName === "scroll" || r.parent.statics.scope !== r.statics.scope) ? t : lt(r.parent, t, e);
|
|
2677
2677
|
}
|
|
2678
|
-
const
|
|
2678
|
+
const Ft = class extends rt {
|
|
2679
2679
|
// Zero width no break space
|
|
2680
2680
|
static value() {
|
|
2681
2681
|
}
|
|
2682
2682
|
constructor(t, e, s) {
|
|
2683
|
-
super(t, e), this.selection = s, this.textNode = document.createTextNode(
|
|
2683
|
+
super(t, e), this.selection = s, this.textNode = document.createTextNode(Ft.CONTENTS), this.domNode.appendChild(this.textNode), this.savedLength = 0;
|
|
2684
2684
|
}
|
|
2685
2685
|
detach() {
|
|
2686
2686
|
this.parent != null && this.parent.removeChild(this);
|
|
@@ -2691,9 +2691,9 @@ const it = class it extends nt {
|
|
|
2691
2691
|
return;
|
|
2692
2692
|
}
|
|
2693
2693
|
let s = this, n = 0;
|
|
2694
|
-
for (; s != null && s.statics.scope !==
|
|
2694
|
+
for (; s != null && s.statics.scope !== k.BLOCK_BLOT; )
|
|
2695
2695
|
n += s.offset(s.parent), s = s.parent;
|
|
2696
|
-
s != null && (this.savedLength =
|
|
2696
|
+
s != null && (this.savedLength = Ft.CONTENTS.length, s.optimize(), s.formatAt(n, Ft.CONTENTS.length, t, e), this.savedLength = 0);
|
|
2697
2697
|
}
|
|
2698
2698
|
index(t, e) {
|
|
2699
2699
|
return t === this.textNode ? 0 : super.index(t, e);
|
|
@@ -2713,10 +2713,10 @@ const it = class it extends nt {
|
|
|
2713
2713
|
const t = this.selection.getNativeRange();
|
|
2714
2714
|
for (; this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode; )
|
|
2715
2715
|
this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
|
|
2716
|
-
const e = this.prev instanceof
|
|
2716
|
+
const e = this.prev instanceof bt ? this.prev : null, s = e ? e.length() : 0, n = this.next instanceof bt ? this.next : null, i = n ? n.text : "", {
|
|
2717
2717
|
textNode: o
|
|
2718
|
-
} = this, a = o.data.split(
|
|
2719
|
-
o.data =
|
|
2718
|
+
} = this, a = o.data.split(Ft.CONTENTS).join("");
|
|
2719
|
+
o.data = Ft.CONTENTS;
|
|
2720
2720
|
let u;
|
|
2721
2721
|
if (e)
|
|
2722
2722
|
u = e, (a || n) && (e.insertAt(e.length(), a + i), n && n.remove());
|
|
@@ -2761,7 +2761,7 @@ const it = class it extends nt {
|
|
|
2761
2761
|
} = this;
|
|
2762
2762
|
for (; e; ) {
|
|
2763
2763
|
if (e.domNode.tagName === "A") {
|
|
2764
|
-
this.savedLength =
|
|
2764
|
+
this.savedLength = Ft.CONTENTS.length, e.isolate(this.offset(e), this.length()).unwrap(), this.savedLength = 0;
|
|
2765
2765
|
break;
|
|
2766
2766
|
}
|
|
2767
2767
|
e = e.parent;
|
|
@@ -2771,8 +2771,8 @@ const it = class it extends nt {
|
|
|
2771
2771
|
return "";
|
|
2772
2772
|
}
|
|
2773
2773
|
};
|
|
2774
|
-
|
|
2775
|
-
|
|
2774
|
+
let Lt = Ft;
|
|
2775
|
+
T(Lt, "blotName", "cursor"), T(Lt, "className", "ql-cursor"), T(Lt, "tagName", "span"), T(Lt, "CONTENTS", "\uFEFF");
|
|
2776
2776
|
var Wi = { exports: {} };
|
|
2777
2777
|
(function(r) {
|
|
2778
2778
|
var t = Object.prototype.hasOwnProperty, e = "~";
|
|
@@ -2837,8 +2837,8 @@ var Wi = { exports: {} };
|
|
|
2837
2837
|
w[x - 1] = arguments[x];
|
|
2838
2838
|
v.fn.apply(v.context, w);
|
|
2839
2839
|
} else {
|
|
2840
|
-
var
|
|
2841
|
-
for (x = 0; x <
|
|
2840
|
+
var _ = v.length, q;
|
|
2841
|
+
for (x = 0; x < _; x++)
|
|
2842
2842
|
switch (v[x].once && this.removeListener(h, v[x].fn, void 0, !0), E) {
|
|
2843
2843
|
case 1:
|
|
2844
2844
|
v[x].fn.call(v[x].context);
|
|
@@ -2885,41 +2885,41 @@ var Wi = { exports: {} };
|
|
|
2885
2885
|
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = e, a.EventEmitter = a, r.exports = a;
|
|
2886
2886
|
})(Wi);
|
|
2887
2887
|
var oo = Wi.exports;
|
|
2888
|
-
const ao = /* @__PURE__ */ Bi(oo),
|
|
2889
|
-
let
|
|
2888
|
+
const ao = /* @__PURE__ */ Bi(oo), Ar = /* @__PURE__ */ new WeakMap(), xr = ["error", "warn", "log", "info"];
|
|
2889
|
+
let wr = "warn";
|
|
2890
2890
|
function Xi(r) {
|
|
2891
|
-
if (
|
|
2891
|
+
if (wr && xr.indexOf(r) <= xr.indexOf(wr)) {
|
|
2892
2892
|
for (var t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
2893
2893
|
e[s - 1] = arguments[s];
|
|
2894
2894
|
console[r](...e);
|
|
2895
2895
|
}
|
|
2896
2896
|
}
|
|
2897
|
-
function
|
|
2898
|
-
return
|
|
2897
|
+
function Dt(r) {
|
|
2898
|
+
return xr.reduce((t, e) => (t[e] = Xi.bind(console, e, r), t), {});
|
|
2899
2899
|
}
|
|
2900
|
-
|
|
2901
|
-
|
|
2900
|
+
Dt.level = (r) => {
|
|
2901
|
+
wr = r;
|
|
2902
2902
|
};
|
|
2903
|
-
Xi.level =
|
|
2904
|
-
const
|
|
2903
|
+
Xi.level = Dt.level;
|
|
2904
|
+
const or = Dt("quill:events"), co = ["selectionchange", "mousedown", "mouseup", "click"];
|
|
2905
2905
|
co.forEach((r) => {
|
|
2906
2906
|
document.addEventListener(r, function() {
|
|
2907
2907
|
for (var t = arguments.length, e = new Array(t), s = 0; s < t; s++)
|
|
2908
2908
|
e[s] = arguments[s];
|
|
2909
2909
|
Array.from(document.querySelectorAll(".ql-container")).forEach((n) => {
|
|
2910
|
-
const i =
|
|
2910
|
+
const i = Ar.get(n);
|
|
2911
2911
|
i && i.emitter && i.emitter.handleDOM(...e);
|
|
2912
2912
|
});
|
|
2913
2913
|
});
|
|
2914
2914
|
});
|
|
2915
2915
|
class L extends ao {
|
|
2916
2916
|
constructor() {
|
|
2917
|
-
super(), this.domListeners = {}, this.on("error",
|
|
2917
|
+
super(), this.domListeners = {}, this.on("error", or.error);
|
|
2918
2918
|
}
|
|
2919
2919
|
emit() {
|
|
2920
2920
|
for (var t = arguments.length, e = new Array(t), s = 0; s < t; s++)
|
|
2921
2921
|
e[s] = arguments[s];
|
|
2922
|
-
return
|
|
2922
|
+
return or.log.call(or, ...e), super.emit(...e);
|
|
2923
2923
|
}
|
|
2924
2924
|
handleDOM(t) {
|
|
2925
2925
|
for (var e = arguments.length, s = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
|
|
@@ -2958,8 +2958,8 @@ T(L, "events", {
|
|
|
2958
2958
|
SILENT: "silent",
|
|
2959
2959
|
USER: "user"
|
|
2960
2960
|
});
|
|
2961
|
-
const
|
|
2962
|
-
class
|
|
2961
|
+
const ar = Dt("quill:selection");
|
|
2962
|
+
class ie {
|
|
2963
2963
|
constructor(t) {
|
|
2964
2964
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
2965
2965
|
this.index = t, this.length = e;
|
|
@@ -2967,7 +2967,7 @@ class re {
|
|
|
2967
2967
|
}
|
|
2968
2968
|
class uo {
|
|
2969
2969
|
constructor(t, e) {
|
|
2970
|
-
this.emitter = e, this.scroll = t, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = this.scroll.create("cursor", this), this.savedRange = new
|
|
2970
|
+
this.emitter = e, this.scroll = t, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = this.scroll.create("cursor", this), this.savedRange = new ie(0, 0), this.lastRange = this.savedRange, this.lastNative = null, this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, () => {
|
|
2971
2971
|
!this.mouseDown && !this.composing && setTimeout(this.update.bind(this, L.sources.USER), 1);
|
|
2972
2972
|
}), this.emitter.on(L.events.SCROLL_BEFORE_UPDATE, () => {
|
|
2973
2973
|
if (!this.hasFocus())
|
|
@@ -3022,7 +3022,7 @@ class uo {
|
|
|
3022
3022
|
format(t, e) {
|
|
3023
3023
|
this.scroll.update();
|
|
3024
3024
|
const s = this.getNativeRange();
|
|
3025
|
-
if (!(s == null || !s.native.collapsed || this.scroll.query(t,
|
|
3025
|
+
if (!(s == null || !s.native.collapsed || this.scroll.query(t, k.BLOCK))) {
|
|
3026
3026
|
if (s.start.node !== this.cursor.textNode) {
|
|
3027
3027
|
const n = this.scroll.find(s.start.node, !1);
|
|
3028
3028
|
if (n == null)
|
|
@@ -3082,7 +3082,7 @@ class uo {
|
|
|
3082
3082
|
if (e == null)
|
|
3083
3083
|
return null;
|
|
3084
3084
|
const s = this.normalizeNative(e);
|
|
3085
|
-
return
|
|
3085
|
+
return ar.info("getNativeRange", s), s;
|
|
3086
3086
|
}
|
|
3087
3087
|
getRange() {
|
|
3088
3088
|
const t = this.scroll.domNode;
|
|
@@ -3092,7 +3092,7 @@ class uo {
|
|
|
3092
3092
|
return e == null ? [null, null] : [this.normalizedToRange(e), e];
|
|
3093
3093
|
}
|
|
3094
3094
|
hasFocus() {
|
|
3095
|
-
return document.activeElement === this.root || document.activeElement != null &&
|
|
3095
|
+
return document.activeElement === this.root || document.activeElement != null && cr(this.root, document.activeElement);
|
|
3096
3096
|
}
|
|
3097
3097
|
normalizedToRange(t) {
|
|
3098
3098
|
const e = [[t.start.node, t.start.offset]];
|
|
@@ -3101,10 +3101,10 @@ class uo {
|
|
|
3101
3101
|
const [a, u] = o, h = this.scroll.find(a, !0), g = h.offset(this.scroll);
|
|
3102
3102
|
return u === 0 ? g : h instanceof X ? g + h.index(a, u) : g + h.length();
|
|
3103
3103
|
}), n = Math.min(Math.max(...s), this.scroll.length() - 1), i = Math.min(n, ...s);
|
|
3104
|
-
return new
|
|
3104
|
+
return new ie(i, n - i);
|
|
3105
3105
|
}
|
|
3106
3106
|
normalizeNative(t) {
|
|
3107
|
-
if (!
|
|
3107
|
+
if (!cr(this.root, t.startContainer) || !t.collapsed && !cr(this.root, t.endContainer))
|
|
3108
3108
|
return null;
|
|
3109
3109
|
const e = {
|
|
3110
3110
|
start: {
|
|
@@ -3142,7 +3142,7 @@ class uo {
|
|
|
3142
3142
|
}
|
|
3143
3143
|
setNativeRange(t, e) {
|
|
3144
3144
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t, n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : e, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;
|
|
3145
|
-
if (
|
|
3145
|
+
if (ar.info("setNativeRange", t, e, s, n), t != null && (this.root.parentNode == null || t.parentNode == null || // @ts-expect-error Fix me later
|
|
3146
3146
|
s.parentNode == null))
|
|
3147
3147
|
return;
|
|
3148
3148
|
const o = document.getSelection();
|
|
@@ -3164,7 +3164,7 @@ class uo {
|
|
|
3164
3164
|
}
|
|
3165
3165
|
setRange(t) {
|
|
3166
3166
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : L.sources.API;
|
|
3167
|
-
if (typeof e == "string" && (s = e, e = !1),
|
|
3167
|
+
if (typeof e == "string" && (s = e, e = !1), ar.info("setRange", t), t != null) {
|
|
3168
3168
|
const n = this.rangeToNative(t);
|
|
3169
3169
|
this.setNativeRange(...n, e);
|
|
3170
3170
|
} else
|
|
@@ -3174,17 +3174,17 @@ class uo {
|
|
|
3174
3174
|
update() {
|
|
3175
3175
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : L.sources.USER;
|
|
3176
3176
|
const e = this.lastRange, [s, n] = this.getRange();
|
|
3177
|
-
if (this.lastRange = s, this.lastNative = n, this.lastRange != null && (this.savedRange = this.lastRange), !
|
|
3177
|
+
if (this.lastRange = s, this.lastNative = n, this.lastRange != null && (this.savedRange = this.lastRange), !Rr(e, this.lastRange)) {
|
|
3178
3178
|
if (!this.composing && n != null && n.native.collapsed && n.start.node !== this.cursor.textNode) {
|
|
3179
3179
|
const o = this.cursor.restore();
|
|
3180
3180
|
o && this.setNativeRange(o.startNode, o.startOffset, o.endNode, o.endOffset);
|
|
3181
3181
|
}
|
|
3182
|
-
const i = [L.events.SELECTION_CHANGE,
|
|
3182
|
+
const i = [L.events.SELECTION_CHANGE, Se(this.lastRange), Se(e), t];
|
|
3183
3183
|
this.emitter.emit(L.events.EDITOR_CHANGE, ...i), t !== L.sources.SILENT && this.emitter.emit(...i);
|
|
3184
3184
|
}
|
|
3185
3185
|
}
|
|
3186
3186
|
}
|
|
3187
|
-
function
|
|
3187
|
+
function cr(r, t) {
|
|
3188
3188
|
try {
|
|
3189
3189
|
t.parentNode;
|
|
3190
3190
|
} catch {
|
|
@@ -3211,28 +3211,28 @@ class fo {
|
|
|
3211
3211
|
y = !m.endsWith(`
|
|
3212
3212
|
`) && (e <= o || !!this.scroll.descendant(at, o)[0]), this.scroll.insertAt(o, m);
|
|
3213
3213
|
const [b, v] = this.scroll.line(o);
|
|
3214
|
-
let E =
|
|
3214
|
+
let E = Zt({}, lt(b));
|
|
3215
3215
|
if (b instanceof K) {
|
|
3216
3216
|
const [w] = b.descendant(X, v);
|
|
3217
|
-
w && (E =
|
|
3217
|
+
w && (E = Zt(E, lt(w)));
|
|
3218
3218
|
}
|
|
3219
3219
|
h = ct.AttributeMap.diff(E, h) || {};
|
|
3220
3220
|
} else if (typeof a.insert == "object") {
|
|
3221
3221
|
const m = Object.keys(a.insert)[0];
|
|
3222
3222
|
if (m == null)
|
|
3223
3223
|
return o;
|
|
3224
|
-
const b = this.scroll.query(m,
|
|
3224
|
+
const b = this.scroll.query(m, k.INLINE) != null;
|
|
3225
3225
|
if (b)
|
|
3226
3226
|
(e <= o || this.scroll.descendant(at, o)[0]) && (y = !0);
|
|
3227
3227
|
else if (o > 0) {
|
|
3228
3228
|
const [v, E] = this.scroll.descendant(X, o - 1);
|
|
3229
|
-
v instanceof
|
|
3230
|
-
` && (g = !0) : v instanceof
|
|
3229
|
+
v instanceof bt ? v.value()[E] !== `
|
|
3230
|
+
` && (g = !0) : v instanceof rt && v.statics.scope === k.INLINE_BLOT && (g = !0);
|
|
3231
3231
|
}
|
|
3232
3232
|
if (this.scroll.insertAt(o, m, a.insert[m]), b) {
|
|
3233
3233
|
const [v] = this.scroll.descendant(X, o);
|
|
3234
3234
|
if (v) {
|
|
3235
|
-
const E =
|
|
3235
|
+
const E = Zt({}, lt(v));
|
|
3236
3236
|
h = ct.AttributeMap.diff(E, h) || {};
|
|
3237
3237
|
}
|
|
3238
3238
|
}
|
|
@@ -3261,7 +3261,7 @@ class fo {
|
|
|
3261
3261
|
o.format(i, s[i]);
|
|
3262
3262
|
});
|
|
3263
3263
|
}), this.scroll.optimize();
|
|
3264
|
-
const n = new S().retain(t).retain(e,
|
|
3264
|
+
const n = new S().retain(t).retain(e, Se(s));
|
|
3265
3265
|
return this.update(n);
|
|
3266
3266
|
}
|
|
3267
3267
|
formatText(t, e) {
|
|
@@ -3269,7 +3269,7 @@ class fo {
|
|
|
3269
3269
|
Object.keys(s).forEach((i) => {
|
|
3270
3270
|
this.scroll.formatAt(t, e, i, s[i]);
|
|
3271
3271
|
});
|
|
3272
|
-
const n = new S().retain(t).retain(e,
|
|
3272
|
+
const n = new S().retain(t).retain(e, Se(s));
|
|
3273
3273
|
return this.update(n);
|
|
3274
3274
|
}
|
|
3275
3275
|
getContents(t, e) {
|
|
@@ -3306,7 +3306,7 @@ class fo {
|
|
|
3306
3306
|
const [s, n] = this.scroll.line(t);
|
|
3307
3307
|
if (s) {
|
|
3308
3308
|
const i = s.length();
|
|
3309
|
-
return s.length() >= n + e && !(n === 0 && e === i) ?
|
|
3309
|
+
return s.length() >= n + e && !(n === 0 && e === i) ? ls(s, n, e, !0) : ls(this.scroll, t, e, !0);
|
|
3310
3310
|
}
|
|
3311
3311
|
return "";
|
|
3312
3312
|
}
|
|
@@ -3328,7 +3328,7 @@ class fo {
|
|
|
3328
3328
|
`).replace(/\r/g, `
|
|
3329
3329
|
`), this.scroll.insertAt(t, e), Object.keys(s).forEach((n) => {
|
|
3330
3330
|
this.scroll.formatAt(t, e.length, n, s[n]);
|
|
3331
|
-
}), this.update(new S().retain(t).insert(e,
|
|
3331
|
+
}), this.update(new S().retain(t).insert(e, Se(s)));
|
|
3332
3332
|
}
|
|
3333
3333
|
isBlank() {
|
|
3334
3334
|
if (this.scroll.children.length === 0)
|
|
@@ -3339,7 +3339,7 @@ class fo {
|
|
|
3339
3339
|
if ((t == null ? void 0 : t.statics.blotName) !== K.blotName)
|
|
3340
3340
|
return !1;
|
|
3341
3341
|
const e = t;
|
|
3342
|
-
return e.children.length > 1 ? !1 : e.children.head instanceof
|
|
3342
|
+
return e.children.length > 1 ? !1 : e.children.head instanceof vt;
|
|
3343
3343
|
}
|
|
3344
3344
|
removeFormat(t, e) {
|
|
3345
3345
|
const s = this.getText(t, e), [n, i] = this.scroll.line(t + e);
|
|
@@ -3354,20 +3354,20 @@ class fo {
|
|
|
3354
3354
|
const n = this.delta;
|
|
3355
3355
|
if (e.length === 1 && e[0].type === "characterData" && // @ts-expect-error Fix me later
|
|
3356
3356
|
e[0].target.data.match(ho) && this.scroll.find(e[0].target)) {
|
|
3357
|
-
const i = this.scroll.find(e[0].target), o = lt(i), a = i.offset(this.scroll), u = e[0].oldValue.replace(
|
|
3357
|
+
const i = this.scroll.find(e[0].target), o = lt(i), a = i.offset(this.scroll), u = e[0].oldValue.replace(Lt.CONTENTS, ""), h = new S().insert(u), g = new S().insert(i.value()), y = s && {
|
|
3358
3358
|
oldRange: pi(s.oldRange, -a),
|
|
3359
3359
|
newRange: pi(s.newRange, -a)
|
|
3360
3360
|
};
|
|
3361
3361
|
t = new S().retain(a).concat(h.diff(g, y)).reduce((p, m) => m.insert ? p.insert(m.insert, o) : p.push(m), new S()), this.delta = n.compose(t);
|
|
3362
3362
|
} else
|
|
3363
|
-
this.delta = this.getDelta(), (!t || !
|
|
3363
|
+
this.delta = this.getDelta(), (!t || !Rr(n.compose(t), this.delta)) && (t = n.diff(this.delta, s));
|
|
3364
3364
|
return t;
|
|
3365
3365
|
}
|
|
3366
3366
|
}
|
|
3367
|
-
function
|
|
3367
|
+
function Te(r, t, e) {
|
|
3368
3368
|
if (r.length === 0) {
|
|
3369
|
-
const [p] =
|
|
3370
|
-
return t <= 0 ? `</li></${p}>` : `</li></${p}>${
|
|
3369
|
+
const [p] = ur(e.pop());
|
|
3370
|
+
return t <= 0 ? `</li></${p}>` : `</li></${p}>${Te([], t - 1, e)}`;
|
|
3371
3371
|
}
|
|
3372
3372
|
const [{
|
|
3373
3373
|
child: s,
|
|
@@ -3375,22 +3375,22 @@ function we(r, t, e) {
|
|
|
3375
3375
|
length: i,
|
|
3376
3376
|
indent: o,
|
|
3377
3377
|
type: a
|
|
3378
|
-
}, ...u] = r, [h, g] =
|
|
3378
|
+
}, ...u] = r, [h, g] = ur(a);
|
|
3379
3379
|
if (o > t)
|
|
3380
|
-
return e.push(a), o === t + 1 ? `<${h}><li${g}>${
|
|
3380
|
+
return e.push(a), o === t + 1 ? `<${h}><li${g}>${ls(s, n, i)}${Te(u, o, e)}` : `<${h}><li>${Te(r, t + 1, e)}`;
|
|
3381
3381
|
const y = e[e.length - 1];
|
|
3382
3382
|
if (o === t && a === y)
|
|
3383
|
-
return `</li><li${g}>${
|
|
3384
|
-
const [d] =
|
|
3385
|
-
return `</li></${d}>${
|
|
3383
|
+
return `</li><li${g}>${ls(s, n, i)}${Te(u, o, e)}`;
|
|
3384
|
+
const [d] = ur(e.pop());
|
|
3385
|
+
return `</li></${d}>${Te(r, t - 1, e)}`;
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3387
|
+
function ls(r, t, e) {
|
|
3388
3388
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
3389
3389
|
if ("html" in r && typeof r.html == "function")
|
|
3390
3390
|
return r.html(t, e);
|
|
3391
|
-
if (r instanceof
|
|
3392
|
-
return
|
|
3393
|
-
if (r instanceof
|
|
3391
|
+
if (r instanceof bt)
|
|
3392
|
+
return nn(r.value().slice(t, t + e));
|
|
3393
|
+
if (r instanceof mt) {
|
|
3394
3394
|
if (r.statics.blotName === "list-container") {
|
|
3395
3395
|
const h = [];
|
|
3396
3396
|
return r.children.forEachAt(t, e, (g, y, d) => {
|
|
@@ -3402,11 +3402,11 @@ function as(r, t, e) {
|
|
|
3402
3402
|
indent: p.indent || 0,
|
|
3403
3403
|
type: p.list
|
|
3404
3404
|
});
|
|
3405
|
-
}),
|
|
3405
|
+
}), Te(h, -1, []);
|
|
3406
3406
|
}
|
|
3407
3407
|
const n = [];
|
|
3408
3408
|
if (r.children.forEachAt(t, e, (h, g, y) => {
|
|
3409
|
-
n.push(
|
|
3409
|
+
n.push(ls(h, g, y));
|
|
3410
3410
|
}), s || r.statics.blotName === "list")
|
|
3411
3411
|
return n.join("");
|
|
3412
3412
|
const {
|
|
@@ -3425,7 +3425,7 @@ function go(r, t) {
|
|
|
3425
3425
|
return n === r[s] ? e[s] = n : Array.isArray(n) ? n.indexOf(r[s]) < 0 ? e[s] = n.concat([r[s]]) : e[s] = n : e[s] = [n, r[s]], e;
|
|
3426
3426
|
}, {});
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3428
|
+
function ur(r) {
|
|
3429
3429
|
const t = r === "ordered" ? "ol" : "ul";
|
|
3430
3430
|
switch (r) {
|
|
3431
3431
|
case "checked":
|
|
@@ -3452,7 +3452,7 @@ function pi(r, t) {
|
|
|
3452
3452
|
index: e,
|
|
3453
3453
|
length: s
|
|
3454
3454
|
} = r;
|
|
3455
|
-
return new
|
|
3455
|
+
return new ie(e + t, s);
|
|
3456
3456
|
}
|
|
3457
3457
|
function po(r) {
|
|
3458
3458
|
const t = [];
|
|
@@ -3470,28 +3470,28 @@ function po(r) {
|
|
|
3470
3470
|
}) : t.push(e);
|
|
3471
3471
|
}), t;
|
|
3472
3472
|
}
|
|
3473
|
-
class
|
|
3473
|
+
class Et {
|
|
3474
3474
|
constructor(t) {
|
|
3475
3475
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3476
3476
|
this.quill = t, this.options = e;
|
|
3477
3477
|
}
|
|
3478
3478
|
}
|
|
3479
|
-
T(
|
|
3480
|
-
const
|
|
3481
|
-
class
|
|
3479
|
+
T(Et, "DEFAULTS", {});
|
|
3480
|
+
const Hs = "\uFEFF";
|
|
3481
|
+
class rn extends rt {
|
|
3482
3482
|
constructor(t, e) {
|
|
3483
3483
|
super(t, e), this.contentNode = document.createElement("span"), this.contentNode.setAttribute("contenteditable", "false"), Array.from(this.domNode.childNodes).forEach((s) => {
|
|
3484
3484
|
this.contentNode.appendChild(s);
|
|
3485
|
-
}), this.leftGuard = document.createTextNode(
|
|
3485
|
+
}), this.leftGuard = document.createTextNode(Hs), this.rightGuard = document.createTextNode(Hs), this.domNode.appendChild(this.leftGuard), this.domNode.appendChild(this.contentNode), this.domNode.appendChild(this.rightGuard);
|
|
3486
3486
|
}
|
|
3487
3487
|
index(t, e) {
|
|
3488
3488
|
return t === this.leftGuard ? 0 : t === this.rightGuard ? 1 : super.index(t, e);
|
|
3489
3489
|
}
|
|
3490
3490
|
restore(t) {
|
|
3491
3491
|
let e = null, s;
|
|
3492
|
-
const n = t.data.split(
|
|
3492
|
+
const n = t.data.split(Hs).join("");
|
|
3493
3493
|
if (t === this.leftGuard)
|
|
3494
|
-
if (this.prev instanceof
|
|
3494
|
+
if (this.prev instanceof bt) {
|
|
3495
3495
|
const i = this.prev.length();
|
|
3496
3496
|
this.prev.insertAt(i, n), e = {
|
|
3497
3497
|
startNode: this.prev.domNode,
|
|
@@ -3503,14 +3503,14 @@ class on extends nt {
|
|
|
3503
3503
|
startOffset: n.length
|
|
3504
3504
|
};
|
|
3505
3505
|
else
|
|
3506
|
-
t === this.rightGuard && (this.next instanceof
|
|
3506
|
+
t === this.rightGuard && (this.next instanceof bt ? (this.next.insertAt(0, n), e = {
|
|
3507
3507
|
startNode: this.next.domNode,
|
|
3508
3508
|
startOffset: n.length
|
|
3509
3509
|
}) : (s = document.createTextNode(n), this.parent.insertBefore(this.scroll.create(s), this.next), e = {
|
|
3510
3510
|
startNode: s,
|
|
3511
3511
|
startOffset: n.length
|
|
3512
3512
|
}));
|
|
3513
|
-
return t.data =
|
|
3513
|
+
return t.data = Hs, e;
|
|
3514
3514
|
}
|
|
3515
3515
|
update(t, e) {
|
|
3516
3516
|
t.forEach((s) => {
|
|
@@ -3537,13 +3537,13 @@ class mo {
|
|
|
3537
3537
|
}
|
|
3538
3538
|
handleCompositionStart(t) {
|
|
3539
3539
|
const e = t.target instanceof Node ? this.scroll.find(t.target, !0) : null;
|
|
3540
|
-
e && !(e instanceof
|
|
3540
|
+
e && !(e instanceof rn) && (this.emitter.emit(L.events.COMPOSITION_BEFORE_START, t), this.scroll.batchStart(), this.emitter.emit(L.events.COMPOSITION_START, t), this.isComposing = !0);
|
|
3541
3541
|
}
|
|
3542
3542
|
handleCompositionEnd(t) {
|
|
3543
3543
|
this.emitter.emit(L.events.COMPOSITION_BEFORE_END, t), this.scroll.batchEnd(), this.emitter.emit(L.events.COMPOSITION_END, t), this.isComposing = !1;
|
|
3544
3544
|
}
|
|
3545
3545
|
}
|
|
3546
|
-
const
|
|
3546
|
+
const Yr = class {
|
|
3547
3547
|
constructor(t, e) {
|
|
3548
3548
|
T(this, "modules", {});
|
|
3549
3549
|
this.quill = t, this.options = e;
|
|
@@ -3558,12 +3558,12 @@ const rs = class rs {
|
|
|
3558
3558
|
return this.modules[t] = new e(this.quill, this.options.modules[t] || {}), this.modules[t];
|
|
3559
3559
|
}
|
|
3560
3560
|
};
|
|
3561
|
-
|
|
3561
|
+
let Vt = Yr;
|
|
3562
|
+
T(Vt, "DEFAULTS", {
|
|
3562
3563
|
modules: {}
|
|
3563
|
-
}), T(
|
|
3564
|
-
default:
|
|
3564
|
+
}), T(Vt, "themes", {
|
|
3565
|
+
default: Yr
|
|
3565
3566
|
});
|
|
3566
|
-
let _e = rs;
|
|
3567
3567
|
const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
3568
3568
|
const t = r.getBoundingClientRect(), e = "offsetWidth" in r && Math.abs(t.width) / r.offsetWidth || 1, s = "offsetHeight" in r && Math.abs(t.height) / r.offsetHeight || 1;
|
|
3569
3569
|
return {
|
|
@@ -3572,7 +3572,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3572
3572
|
bottom: t.top + r.clientHeight * s,
|
|
3573
3573
|
left: t.left
|
|
3574
3574
|
};
|
|
3575
|
-
},
|
|
3575
|
+
}, Fs = (r) => {
|
|
3576
3576
|
const t = parseInt(r, 10);
|
|
3577
3577
|
return Number.isNaN(t) ? 0 : t;
|
|
3578
3578
|
}, mi = (r, t, e, s, n, i) => r < e && t > s ? 0 : r < e ? -(e - r + n) : t > s ? t - r > s - e ? r + n - e : t - s + i : 0, vo = (r, t) => {
|
|
@@ -3585,7 +3585,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3585
3585
|
right: ((i = window.visualViewport) == null ? void 0 : i.width) ?? e.documentElement.clientWidth,
|
|
3586
3586
|
bottom: ((o = window.visualViewport) == null ? void 0 : o.height) ?? e.documentElement.clientHeight,
|
|
3587
3587
|
left: 0
|
|
3588
|
-
} : yo(n), g = getComputedStyle(n), y = mi(s.left, s.right, h.left, h.right,
|
|
3588
|
+
} : yo(n), g = getComputedStyle(n), y = mi(s.left, s.right, h.left, h.right, Fs(g.scrollPaddingLeft), Fs(g.scrollPaddingRight)), d = mi(s.top, s.bottom, h.top, h.bottom, Fs(g.scrollPaddingTop), Fs(g.scrollPaddingBottom));
|
|
3589
3589
|
if (y || d)
|
|
3590
3590
|
if (u)
|
|
3591
3591
|
(a = e.defaultView) == null || a.scrollBy(y, d);
|
|
@@ -3606,7 +3606,7 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3606
3606
|
n = u || g.position === "fixed" ? null : bo(n);
|
|
3607
3607
|
}
|
|
3608
3608
|
}, Eo = 100, No = ["block", "break", "cursor", "inline", "scroll", "text"], Ao = (r, t, e) => {
|
|
3609
|
-
const s = new
|
|
3609
|
+
const s = new Ce();
|
|
3610
3610
|
return No.forEach((n) => {
|
|
3611
3611
|
const i = t.query(n);
|
|
3612
3612
|
i && s.register(i);
|
|
@@ -3620,18 +3620,18 @@ const bo = (r) => r.parentElement || r.getRootNode().host || null, yo = (r) => {
|
|
|
3620
3620
|
break;
|
|
3621
3621
|
}
|
|
3622
3622
|
}), s;
|
|
3623
|
-
},
|
|
3624
|
-
|
|
3625
|
-
const
|
|
3623
|
+
}, ke = Dt("quill"), zs = new Ce();
|
|
3624
|
+
mt.uiClass = "ql-ui";
|
|
3625
|
+
const qe = class {
|
|
3626
3626
|
static debug(t) {
|
|
3627
|
-
t === !0 && (t = "log"),
|
|
3627
|
+
t === !0 && (t = "log"), Dt.level(t);
|
|
3628
3628
|
}
|
|
3629
3629
|
static find(t) {
|
|
3630
3630
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
3631
|
-
return
|
|
3631
|
+
return Ar.get(t) || zs.find(t, e);
|
|
3632
3632
|
}
|
|
3633
3633
|
static import(t) {
|
|
3634
|
-
return this.imports[t] == null &&
|
|
3634
|
+
return this.imports[t] == null && ke.error(`Cannot import ${t}. Are you sure it was registered?`), this.imports[t];
|
|
3635
3635
|
}
|
|
3636
3636
|
static register() {
|
|
3637
3637
|
if (typeof (arguments.length <= 0 ? void 0 : arguments[0]) != "string") {
|
|
@@ -3641,19 +3641,19 @@ const pt = class pt {
|
|
|
3641
3641
|
});
|
|
3642
3642
|
} else {
|
|
3643
3643
|
const t = arguments.length <= 0 ? void 0 : arguments[0], e = arguments.length <= 1 ? void 0 : arguments[1], s = !!(!(arguments.length <= 2) && arguments[2]);
|
|
3644
|
-
this.imports[t] != null && !s &&
|
|
3644
|
+
this.imports[t] != null && !s && ke.warn(`Overwriting ${t} with`, e), this.imports[t] = e, (t.startsWith("blots/") || t.startsWith("formats/")) && e && typeof e != "boolean" && e.blotName !== "abstract" && zs.register(e), typeof e.register == "function" && e.register(zs);
|
|
3645
3645
|
}
|
|
3646
3646
|
}
|
|
3647
3647
|
constructor(t) {
|
|
3648
3648
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3649
3649
|
if (this.options = xo(t, e), this.container = this.options.container, this.container == null) {
|
|
3650
|
-
|
|
3650
|
+
ke.error("Invalid Quill container", t);
|
|
3651
3651
|
return;
|
|
3652
3652
|
}
|
|
3653
|
-
this.options.debug &&
|
|
3653
|
+
this.options.debug && qe.debug(this.options.debug);
|
|
3654
3654
|
const s = this.container.innerHTML.trim();
|
|
3655
|
-
this.container.classList.add("ql-container"), this.container.innerHTML = "",
|
|
3656
|
-
const n =
|
|
3655
|
+
this.container.classList.add("ql-container"), this.container.innerHTML = "", Ar.set(this.container, this), this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.emitter = new L();
|
|
3656
|
+
const n = Mr.blotName, i = this.options.registry.query(n);
|
|
3657
3657
|
if (!i || !("blotName" in i))
|
|
3658
3658
|
throw new Error(`Cannot initialize Quill without "${n}" blot`);
|
|
3659
3659
|
if (this.scroll = new i(this.options.registry, this.root, {
|
|
@@ -3665,18 +3665,18 @@ const pt = class pt {
|
|
|
3665
3665
|
oldRange: u,
|
|
3666
3666
|
newRange: h
|
|
3667
3667
|
} : void 0;
|
|
3668
|
-
|
|
3668
|
+
pt.call(this, () => this.editor.update(null, a, g), o);
|
|
3669
3669
|
}), this.emitter.on(L.events.SCROLL_EMBED_UPDATE, (o, a) => {
|
|
3670
3670
|
const u = this.selection.lastRange, [h] = this.selection.getRange(), g = u && h ? {
|
|
3671
3671
|
oldRange: u,
|
|
3672
3672
|
newRange: h
|
|
3673
3673
|
} : void 0;
|
|
3674
|
-
|
|
3674
|
+
pt.call(this, () => {
|
|
3675
3675
|
const y = new S().retain(o.offset(this)).retain({
|
|
3676
3676
|
[o.statics.blotName]: a
|
|
3677
3677
|
});
|
|
3678
3678
|
return this.editor.update(y, [], g);
|
|
3679
|
-
},
|
|
3679
|
+
}, qe.sources.USER);
|
|
3680
3680
|
}), s) {
|
|
3681
3681
|
const o = this.clipboard.convert({
|
|
3682
3682
|
html: `${s}<p><br></p>`,
|
|
@@ -3699,7 +3699,7 @@ const pt = class pt {
|
|
|
3699
3699
|
this.selection.setRange(null);
|
|
3700
3700
|
}
|
|
3701
3701
|
deleteText(t, e, s) {
|
|
3702
|
-
return [t, e, , s] =
|
|
3702
|
+
return [t, e, , s] = Rt(t, e, s), pt.call(this, () => this.editor.deleteText(t, e), s, t, -1 * e);
|
|
3703
3703
|
}
|
|
3704
3704
|
disable() {
|
|
3705
3705
|
this.enable(!1);
|
|
@@ -3719,12 +3719,12 @@ const pt = class pt {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
format(t, e) {
|
|
3721
3721
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : L.sources.API;
|
|
3722
|
-
return
|
|
3722
|
+
return pt.call(this, () => {
|
|
3723
3723
|
const n = this.getSelection(!0);
|
|
3724
3724
|
let i = new S();
|
|
3725
3725
|
if (n == null)
|
|
3726
3726
|
return i;
|
|
3727
|
-
if (this.scroll.query(t,
|
|
3727
|
+
if (this.scroll.query(t, k.BLOCK))
|
|
3728
3728
|
i = this.editor.formatLine(n.index, n.length, {
|
|
3729
3729
|
[t]: e
|
|
3730
3730
|
});
|
|
@@ -3740,25 +3740,25 @@ const pt = class pt {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
formatLine(t, e, s, n, i) {
|
|
3742
3742
|
let o;
|
|
3743
|
-
return [t, e, o, i] =
|
|
3743
|
+
return [t, e, o, i] = Rt(
|
|
3744
3744
|
t,
|
|
3745
3745
|
e,
|
|
3746
3746
|
// @ts-expect-error
|
|
3747
3747
|
s,
|
|
3748
3748
|
n,
|
|
3749
3749
|
i
|
|
3750
|
-
),
|
|
3750
|
+
), pt.call(this, () => this.editor.formatLine(t, e, o), i, t, 0);
|
|
3751
3751
|
}
|
|
3752
3752
|
formatText(t, e, s, n, i) {
|
|
3753
3753
|
let o;
|
|
3754
|
-
return [t, e, o, i] =
|
|
3754
|
+
return [t, e, o, i] = Rt(
|
|
3755
3755
|
// @ts-expect-error
|
|
3756
3756
|
t,
|
|
3757
3757
|
e,
|
|
3758
3758
|
s,
|
|
3759
3759
|
n,
|
|
3760
3760
|
i
|
|
3761
|
-
),
|
|
3761
|
+
), pt.call(this, () => this.editor.formatText(t, e, o), i, t, 0);
|
|
3762
3762
|
}
|
|
3763
3763
|
getBounds(t) {
|
|
3764
3764
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, s = null;
|
|
@@ -3776,7 +3776,7 @@ const pt = class pt {
|
|
|
3776
3776
|
}
|
|
3777
3777
|
getContents() {
|
|
3778
3778
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - t;
|
|
3779
|
-
return [t, e] =
|
|
3779
|
+
return [t, e] = Rt(t, e), this.editor.getContents(t, e);
|
|
3780
3780
|
}
|
|
3781
3781
|
getFormat() {
|
|
3782
3782
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.getSelection(!0), e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
@@ -3806,22 +3806,22 @@ const pt = class pt {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
getSemanticHTML() {
|
|
3808
3808
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, e = arguments.length > 1 ? arguments[1] : void 0;
|
|
3809
|
-
return typeof t == "number" && (e = e ?? this.getLength() - t), [t, e] =
|
|
3809
|
+
return typeof t == "number" && (e = e ?? this.getLength() - t), [t, e] = Rt(t, e), this.editor.getHTML(t, e);
|
|
3810
3810
|
}
|
|
3811
3811
|
getText() {
|
|
3812
3812
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, e = arguments.length > 1 ? arguments[1] : void 0;
|
|
3813
|
-
return typeof t == "number" && (e = e ?? this.getLength() - t), [t, e] =
|
|
3813
|
+
return typeof t == "number" && (e = e ?? this.getLength() - t), [t, e] = Rt(t, e), this.editor.getText(t, e);
|
|
3814
3814
|
}
|
|
3815
3815
|
hasFocus() {
|
|
3816
3816
|
return this.selection.hasFocus();
|
|
3817
3817
|
}
|
|
3818
3818
|
insertEmbed(t, e, s) {
|
|
3819
|
-
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
3820
|
-
return
|
|
3819
|
+
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : qe.sources.API;
|
|
3820
|
+
return pt.call(this, () => this.editor.insertEmbed(t, e, s), n, t);
|
|
3821
3821
|
}
|
|
3822
3822
|
insertText(t, e, s, n, i) {
|
|
3823
3823
|
let o;
|
|
3824
|
-
return [t, , o, i] =
|
|
3824
|
+
return [t, , o, i] = Rt(t, 0, s, n, i), pt.call(this, () => this.editor.insertText(t, e, o), i, t, e.length);
|
|
3825
3825
|
}
|
|
3826
3826
|
isEnabled() {
|
|
3827
3827
|
return this.scroll.isEnabled();
|
|
@@ -3836,7 +3836,7 @@ const pt = class pt {
|
|
|
3836
3836
|
return this.emitter.once(...arguments);
|
|
3837
3837
|
}
|
|
3838
3838
|
removeFormat(t, e, s) {
|
|
3839
|
-
return [t, e, , s] =
|
|
3839
|
+
return [t, e, , s] = Rt(t, e, s), pt.call(this, () => this.editor.removeFormat(t, e), s, t);
|
|
3840
3840
|
}
|
|
3841
3841
|
scrollRectIntoView(t) {
|
|
3842
3842
|
vo(this.root, t);
|
|
@@ -3857,14 +3857,14 @@ const pt = class pt {
|
|
|
3857
3857
|
}
|
|
3858
3858
|
setContents(t) {
|
|
3859
3859
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L.sources.API;
|
|
3860
|
-
return
|
|
3860
|
+
return pt.call(this, () => {
|
|
3861
3861
|
t = new S(t);
|
|
3862
3862
|
const s = this.getLength(), n = this.editor.deleteText(0, s), i = this.editor.insertContents(0, t), o = this.editor.deleteText(this.getLength() - 1, 1);
|
|
3863
3863
|
return n.compose(i).compose(o);
|
|
3864
3864
|
}, e);
|
|
3865
3865
|
}
|
|
3866
3866
|
setSelection(t, e, s) {
|
|
3867
|
-
t == null ? this.selection.setRange(null, e ||
|
|
3867
|
+
t == null ? this.selection.setRange(null, e || qe.sources.API) : ([t, e, , s] = Rt(t, e, s), this.selection.setRange(new ie(Math.max(0, t), e), s), s !== L.sources.SILENT && this.scrollSelectionIntoView());
|
|
3868
3868
|
}
|
|
3869
3869
|
setText(t) {
|
|
3870
3870
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L.sources.API;
|
|
@@ -3878,10 +3878,11 @@ const pt = class pt {
|
|
|
3878
3878
|
}
|
|
3879
3879
|
updateContents(t) {
|
|
3880
3880
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : L.sources.API;
|
|
3881
|
-
return
|
|
3881
|
+
return pt.call(this, () => (t = new S(t), this.editor.applyDelta(t)), e, !0);
|
|
3882
3882
|
}
|
|
3883
3883
|
};
|
|
3884
|
-
|
|
3884
|
+
let A = qe;
|
|
3885
|
+
T(A, "DEFAULTS", {
|
|
3885
3886
|
bounds: null,
|
|
3886
3887
|
modules: {
|
|
3887
3888
|
clipboard: !0,
|
|
@@ -3891,19 +3892,18 @@ T(pt, "DEFAULTS", {
|
|
|
3891
3892
|
},
|
|
3892
3893
|
placeholder: "",
|
|
3893
3894
|
readOnly: !1,
|
|
3894
|
-
registry:
|
|
3895
|
+
registry: zs,
|
|
3895
3896
|
theme: "default"
|
|
3896
|
-
}), T(
|
|
3897
|
+
}), T(A, "events", L.events), T(A, "sources", L.sources), T(A, "version", "2.0.2"), T(A, "imports", {
|
|
3897
3898
|
delta: S,
|
|
3898
3899
|
parchment: Gl,
|
|
3899
|
-
"core/module":
|
|
3900
|
-
"core/theme":
|
|
3900
|
+
"core/module": Et,
|
|
3901
|
+
"core/theme": Vt
|
|
3901
3902
|
});
|
|
3902
|
-
let A = pt;
|
|
3903
3903
|
function bi(r) {
|
|
3904
3904
|
return typeof r == "string" ? document.querySelector(r) : r;
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3906
|
+
function hr(r) {
|
|
3907
3907
|
return Object.entries(r ?? {}).reduce((t, e) => {
|
|
3908
3908
|
let [s, n] = e;
|
|
3909
3909
|
return {
|
|
@@ -3919,7 +3919,7 @@ function xo(r, t) {
|
|
|
3919
3919
|
const e = bi(r);
|
|
3920
3920
|
if (!e)
|
|
3921
3921
|
throw new Error("Invalid Quill container");
|
|
3922
|
-
const n = !t.theme || t.theme === A.DEFAULTS.theme ?
|
|
3922
|
+
const n = !t.theme || t.theme === A.DEFAULTS.theme ? Vt : A.import(`themes/${t.theme}`);
|
|
3923
3923
|
if (!n)
|
|
3924
3924
|
throw new Error(`Invalid theme ${t.theme}. Did you register it?`);
|
|
3925
3925
|
const {
|
|
@@ -3929,20 +3929,20 @@ function xo(r, t) {
|
|
|
3929
3929
|
modules: a,
|
|
3930
3930
|
...u
|
|
3931
3931
|
} = n.DEFAULTS;
|
|
3932
|
-
let h =
|
|
3932
|
+
let h = hr(t.modules);
|
|
3933
3933
|
h != null && h.toolbar && h.toolbar.constructor !== Object && (h = {
|
|
3934
3934
|
...h,
|
|
3935
3935
|
toolbar: {
|
|
3936
3936
|
container: h.toolbar
|
|
3937
3937
|
}
|
|
3938
3938
|
});
|
|
3939
|
-
const g =
|
|
3939
|
+
const g = Zt({}, hr(i), hr(a), h), y = {
|
|
3940
3940
|
...o,
|
|
3941
3941
|
...yi(u),
|
|
3942
3942
|
...yi(t)
|
|
3943
3943
|
};
|
|
3944
3944
|
let d = t.registry;
|
|
3945
|
-
return d ? t.formats &&
|
|
3945
|
+
return d ? t.formats && ke.warn('Ignoring "formats" option because "registry" is specified') : d = t.formats ? Ao(t.formats, y.registry, ke) : y.registry, {
|
|
3946
3946
|
...y,
|
|
3947
3947
|
registry: d,
|
|
3948
3948
|
container: e,
|
|
@@ -3952,16 +3952,16 @@ function xo(r, t) {
|
|
|
3952
3952
|
if (!v)
|
|
3953
3953
|
return p;
|
|
3954
3954
|
const E = A.import(`modules/${b}`);
|
|
3955
|
-
return E == null ? (
|
|
3955
|
+
return E == null ? (ke.error(`Cannot load ${b} module. Are you sure you registered it?`), p) : {
|
|
3956
3956
|
...p,
|
|
3957
3957
|
// @ts-expect-error
|
|
3958
|
-
[b]:
|
|
3958
|
+
[b]: Zt({}, E.DEFAULTS || {}, v)
|
|
3959
3959
|
};
|
|
3960
3960
|
}, {}),
|
|
3961
3961
|
bounds: bi(y.bounds)
|
|
3962
3962
|
};
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function pt(r, t, e, s) {
|
|
3965
3965
|
if (!this.isEnabled() && t === L.sources.USER && !this.allowReadOnlyEdits)
|
|
3966
3966
|
return new S();
|
|
3967
3967
|
let n = e == null ? null : this.getSelection();
|
|
@@ -3972,7 +3972,7 @@ function gt(r, t, e, s) {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
return o;
|
|
3974
3974
|
}
|
|
3975
|
-
function
|
|
3975
|
+
function Rt(r, t, e, s, n) {
|
|
3976
3976
|
let i = {};
|
|
3977
3977
|
return typeof r.index == "number" && typeof r.length == "number" ? typeof t != "number" ? (n = s, s = e, e = t, t = r.length, r = r.index) : (t = r.length, r = r.index) : typeof t != "number" && (n = s, s = e, e = t, t = 0), typeof e == "object" ? (i = e, n = s) : typeof e == "string" && (s != null ? i[e] = s : n = e), n = n || L.sources.API, [r, t, i, n];
|
|
3978
3978
|
}
|
|
@@ -3984,9 +3984,9 @@ function vi(r, t, e, s) {
|
|
|
3984
3984
|
return t && typeof t.transformPosition == "function" ? [i, o] = [r.index, r.index + r.length].map((a) => (
|
|
3985
3985
|
// @ts-expect-error -- TODO: add a better type guard around `index`
|
|
3986
3986
|
t.transformPosition(a, s !== L.sources.USER)
|
|
3987
|
-
)) : [i, o] = [r.index, r.index + r.length].map((a) => a < t || a === t && s === L.sources.USER ? a : n >= 0 ? a + n : Math.max(t, a + n)), new
|
|
3987
|
+
)) : [i, o] = [r.index, r.index + r.length].map((a) => a < t || a === t && s === L.sources.USER ? a : n >= 0 ? a + n : Math.max(t, a + n)), new ie(i, o - i);
|
|
3988
3988
|
}
|
|
3989
|
-
class
|
|
3989
|
+
class le extends Js {
|
|
3990
3990
|
}
|
|
3991
3991
|
function Ei(r) {
|
|
3992
3992
|
return r instanceof K || r instanceof at;
|
|
@@ -3994,7 +3994,7 @@ function Ei(r) {
|
|
|
3994
3994
|
function Ni(r) {
|
|
3995
3995
|
return typeof r.updateContent == "function";
|
|
3996
3996
|
}
|
|
3997
|
-
class
|
|
3997
|
+
class Le extends Mr {
|
|
3998
3998
|
constructor(t, e, s) {
|
|
3999
3999
|
let {
|
|
4000
4000
|
emitter: n
|
|
@@ -4026,7 +4026,7 @@ class Te extends Ur {
|
|
|
4026
4026
|
this.optimize();
|
|
4027
4027
|
return;
|
|
4028
4028
|
}
|
|
4029
|
-
const o = i.children.head instanceof
|
|
4029
|
+
const o = i.children.head instanceof vt ? null : i.children.head;
|
|
4030
4030
|
s.moveChildren(i, o), s.remove();
|
|
4031
4031
|
}
|
|
4032
4032
|
this.optimize();
|
|
@@ -4040,7 +4040,7 @@ class Te extends Ur {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
insertAt(t, e, s) {
|
|
4042
4042
|
if (t >= this.length())
|
|
4043
|
-
if (s == null || this.scroll.query(e,
|
|
4043
|
+
if (s == null || this.scroll.query(e, k.BLOCK) == null) {
|
|
4044
4044
|
const n = this.scroll.create(this.statics.defaultChild.blotName);
|
|
4045
4045
|
this.appendChild(n), s == null && e.endsWith(`
|
|
4046
4046
|
`) ? n.insertAt(0, e.slice(0, -1), s) : n.insertAt(0, e, s);
|
|
@@ -4053,7 +4053,7 @@ class Te extends Ur {
|
|
|
4053
4053
|
this.optimize();
|
|
4054
4054
|
}
|
|
4055
4055
|
insertBefore(t, e) {
|
|
4056
|
-
if (t.statics.scope ===
|
|
4056
|
+
if (t.statics.scope === k.INLINE_BLOT) {
|
|
4057
4057
|
const s = this.scroll.create(this.statics.defaultChild.blotName);
|
|
4058
4058
|
s.appendChild(t), super.insertBefore(s, e);
|
|
4059
4059
|
} else
|
|
@@ -4070,7 +4070,7 @@ class Te extends Ur {
|
|
|
4070
4070
|
const u = i.type === "block" && (i.delta.length() === 0 || !this.descendant(at, t)[0] && t < this.length()), h = i.type === "block" ? i.delta : new S().insert({
|
|
4071
4071
|
[i.key]: i.value
|
|
4072
4072
|
});
|
|
4073
|
-
|
|
4073
|
+
fr(this, t, h);
|
|
4074
4074
|
const g = i.type === "block" ? 1 : 0, y = t + h.length() + g;
|
|
4075
4075
|
u && this.insertAt(y - 1, `
|
|
4076
4076
|
`);
|
|
@@ -4083,7 +4083,7 @@ class Te extends Ur {
|
|
|
4083
4083
|
if (s.length && (o && (o = o.split(a), a = 0), s.forEach((u) => {
|
|
4084
4084
|
if (u.type === "block") {
|
|
4085
4085
|
const h = this.createBlock(u.attributes, o || void 0);
|
|
4086
|
-
|
|
4086
|
+
fr(h, 0, u.delta);
|
|
4087
4087
|
} else {
|
|
4088
4088
|
const h = this.create(u.key, u.value);
|
|
4089
4089
|
this.insertBefore(h, o || void 0), Object.keys(u.attributes).forEach((g) => {
|
|
@@ -4092,7 +4092,7 @@ class Te extends Ur {
|
|
|
4092
4092
|
}
|
|
4093
4093
|
})), n.type === "block" && n.delta.length()) {
|
|
4094
4094
|
const u = o ? o.offset(o.scroll) + a : this.length();
|
|
4095
|
-
|
|
4095
|
+
fr(this, u, n.delta);
|
|
4096
4096
|
}
|
|
4097
4097
|
this.batchEnd(), this.optimize();
|
|
4098
4098
|
}
|
|
@@ -4114,7 +4114,7 @@ class Te extends Ur {
|
|
|
4114
4114
|
const s = (n, i, o) => {
|
|
4115
4115
|
let a = [], u = o;
|
|
4116
4116
|
return n.children.forEachAt(i, o, (h, g, y) => {
|
|
4117
|
-
Ei(h) ? a.push(h) : h instanceof
|
|
4117
|
+
Ei(h) ? a.push(h) : h instanceof Js && (a = a.concat(s(h, g, u))), u -= y;
|
|
4118
4118
|
}), a;
|
|
4119
4119
|
};
|
|
4120
4120
|
return s(this, t, e);
|
|
@@ -4171,7 +4171,7 @@ class Te extends Ur {
|
|
|
4171
4171
|
const o = Object.keys(i)[0];
|
|
4172
4172
|
if (!o)
|
|
4173
4173
|
return;
|
|
4174
|
-
this.query(o,
|
|
4174
|
+
this.query(o, k.INLINE) ? s.push(n) : (s.length() && e.push({
|
|
4175
4175
|
type: "block",
|
|
4176
4176
|
delta: s,
|
|
4177
4177
|
attributes: {}
|
|
@@ -4193,7 +4193,7 @@ class Te extends Ur {
|
|
|
4193
4193
|
const n = {};
|
|
4194
4194
|
Object.entries(t).forEach((a) => {
|
|
4195
4195
|
let [u, h] = a;
|
|
4196
|
-
this.query(u,
|
|
4196
|
+
this.query(u, k.BLOCK & k.BLOT) != null ? s = u : n[u] = h;
|
|
4197
4197
|
});
|
|
4198
4198
|
const i = this.create(s || this.statics.defaultChild.blotName, s ? t[s] : void 0);
|
|
4199
4199
|
this.insertBefore(i, e || void 0);
|
|
@@ -4204,8 +4204,8 @@ class Te extends Ur {
|
|
|
4204
4204
|
}), i;
|
|
4205
4205
|
}
|
|
4206
4206
|
}
|
|
4207
|
-
T(
|
|
4208
|
-
function
|
|
4207
|
+
T(Le, "blotName", "scroll"), T(Le, "className", "ql-editor"), T(Le, "tagName", "DIV"), T(Le, "defaultChild", K), T(Le, "allowedChildren", [K, at, le]);
|
|
4208
|
+
function fr(r, t, e) {
|
|
4209
4209
|
e.reduce((s, n) => {
|
|
4210
4210
|
const i = ct.Op.length(n);
|
|
4211
4211
|
let o = n.attributes || {};
|
|
@@ -4219,7 +4219,7 @@ function gr(r, t, e) {
|
|
|
4219
4219
|
const a = Object.keys(n.insert)[0];
|
|
4220
4220
|
if (a == null)
|
|
4221
4221
|
return s;
|
|
4222
|
-
if (r.insertAt(s, a, n.insert[a]), r.scroll.query(a,
|
|
4222
|
+
if (r.insertAt(s, a, n.insert[a]), r.scroll.query(a, k.INLINE) != null) {
|
|
4223
4223
|
const [h] = r.descendant(X, s), g = lt(h);
|
|
4224
4224
|
o = ct.AttributeMap.diff(g, o) || {};
|
|
4225
4225
|
}
|
|
@@ -4230,26 +4230,26 @@ function gr(r, t, e) {
|
|
|
4230
4230
|
}), s + i;
|
|
4231
4231
|
}, t);
|
|
4232
4232
|
}
|
|
4233
|
-
const
|
|
4234
|
-
scope:
|
|
4233
|
+
const $r = {
|
|
4234
|
+
scope: k.BLOCK,
|
|
4235
4235
|
whitelist: ["right", "center", "justify"]
|
|
4236
|
-
}, wo = new
|
|
4237
|
-
class Ji extends
|
|
4236
|
+
}, wo = new St("align", "align", $r), Yi = new yt("align", "ql-align", $r), Qi = new Wt("align", "text-align", $r);
|
|
4237
|
+
class Ji extends Wt {
|
|
4238
4238
|
value(t) {
|
|
4239
4239
|
let e = super.value(t);
|
|
4240
4240
|
return e.startsWith("rgb(") ? (e = e.replace(/^[^\d]+/, "").replace(/[^\d]+$/, ""), `#${e.split(",").map((n) => `00${parseInt(n, 10).toString(16)}`.slice(-2)).join("")}`) : e;
|
|
4241
4241
|
}
|
|
4242
4242
|
}
|
|
4243
|
-
const To = new
|
|
4244
|
-
scope:
|
|
4245
|
-
}),
|
|
4246
|
-
scope:
|
|
4247
|
-
}), Lo = new
|
|
4248
|
-
scope:
|
|
4249
|
-
}),
|
|
4250
|
-
scope:
|
|
4243
|
+
const To = new yt("color", "ql-color", {
|
|
4244
|
+
scope: k.INLINE
|
|
4245
|
+
}), Hr = new Ji("color", "color", {
|
|
4246
|
+
scope: k.INLINE
|
|
4247
|
+
}), Lo = new yt("background", "ql-bg", {
|
|
4248
|
+
scope: k.INLINE
|
|
4249
|
+
}), Fr = new Ji("background", "background-color", {
|
|
4250
|
+
scope: k.INLINE
|
|
4251
4251
|
});
|
|
4252
|
-
class
|
|
4252
|
+
class oe extends le {
|
|
4253
4253
|
static create(t) {
|
|
4254
4254
|
const e = super.create(t);
|
|
4255
4255
|
return e.setAttribute("spellcheck", "false"), e;
|
|
@@ -4260,49 +4260,49 @@ class le extends ie {
|
|
|
4260
4260
|
}
|
|
4261
4261
|
html(t, e) {
|
|
4262
4262
|
return `<pre>
|
|
4263
|
-
${
|
|
4263
|
+
${nn(this.code(t, e))}
|
|
4264
4264
|
</pre>`;
|
|
4265
4265
|
}
|
|
4266
4266
|
}
|
|
4267
4267
|
class Y extends K {
|
|
4268
4268
|
static register() {
|
|
4269
|
-
A.register(
|
|
4269
|
+
A.register(oe);
|
|
4270
4270
|
}
|
|
4271
4271
|
}
|
|
4272
4272
|
T(Y, "TAB", " ");
|
|
4273
|
-
class
|
|
4273
|
+
class zr extends ut {
|
|
4274
4274
|
}
|
|
4275
|
-
|
|
4276
|
-
|
|
4275
|
+
zr.blotName = "code";
|
|
4276
|
+
zr.tagName = "CODE";
|
|
4277
4277
|
Y.blotName = "code-block";
|
|
4278
4278
|
Y.className = "ql-code-block";
|
|
4279
4279
|
Y.tagName = "DIV";
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
Y.allowedChildren = [
|
|
4285
|
-
Y.requiredContainer =
|
|
4286
|
-
const
|
|
4287
|
-
scope:
|
|
4280
|
+
oe.blotName = "code-block-container";
|
|
4281
|
+
oe.className = "ql-code-block-container";
|
|
4282
|
+
oe.tagName = "DIV";
|
|
4283
|
+
oe.allowedChildren = [Y];
|
|
4284
|
+
Y.allowedChildren = [bt, vt, Lt];
|
|
4285
|
+
Y.requiredContainer = oe;
|
|
4286
|
+
const Vr = {
|
|
4287
|
+
scope: k.BLOCK,
|
|
4288
4288
|
whitelist: ["rtl"]
|
|
4289
|
-
}, tl = new
|
|
4290
|
-
scope:
|
|
4289
|
+
}, tl = new St("direction", "dir", Vr), el = new yt("direction", "ql-direction", Vr), sl = new Wt("direction", "direction", Vr), nl = {
|
|
4290
|
+
scope: k.INLINE,
|
|
4291
4291
|
whitelist: ["serif", "monospace"]
|
|
4292
|
-
}, rl = new
|
|
4293
|
-
class qo extends
|
|
4292
|
+
}, rl = new yt("font", "ql-font", nl);
|
|
4293
|
+
class qo extends Wt {
|
|
4294
4294
|
value(t) {
|
|
4295
4295
|
return super.value(t).replace(/["']/g, "");
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
|
-
const il = new qo("font", "font-family", nl), ll = new
|
|
4299
|
-
scope:
|
|
4298
|
+
const il = new qo("font", "font-family", nl), ll = new yt("size", "ql-size", {
|
|
4299
|
+
scope: k.INLINE,
|
|
4300
4300
|
whitelist: ["small", "large", "huge"]
|
|
4301
|
-
}), ol = new
|
|
4302
|
-
scope:
|
|
4301
|
+
}), ol = new Wt("size", "font-size", {
|
|
4302
|
+
scope: k.INLINE,
|
|
4303
4303
|
whitelist: ["10px", "18px", "32px"]
|
|
4304
|
-
}), So =
|
|
4305
|
-
class
|
|
4304
|
+
}), So = Dt("quill:keyboard"), _o = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey";
|
|
4305
|
+
class ln extends Et {
|
|
4306
4306
|
static match(t, e) {
|
|
4307
4307
|
return ["altKey", "ctrlKey", "metaKey", "shiftKey"].some((s) => !!e[s] !== t[s] && e[s] !== null) ? !1 : e.key === t.key || e.key === t.which;
|
|
4308
4308
|
}
|
|
@@ -4357,7 +4357,7 @@ class an extends Nt {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
addBinding(t) {
|
|
4359
4359
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
4360
|
-
const n =
|
|
4360
|
+
const n = Co(t);
|
|
4361
4361
|
if (n == null) {
|
|
4362
4362
|
So.warn("Attempted to add invalid keyboard binding", n);
|
|
4363
4363
|
return;
|
|
@@ -4380,7 +4380,7 @@ class an extends Nt {
|
|
|
4380
4380
|
this.quill.root.addEventListener("keydown", (t) => {
|
|
4381
4381
|
if (t.defaultPrevented || t.isComposing || t.keyCode === 229 && (t.key === "Enter" || t.key === "Backspace"))
|
|
4382
4382
|
return;
|
|
4383
|
-
const n = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((E) =>
|
|
4383
|
+
const n = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((E) => ln.match(t, E));
|
|
4384
4384
|
if (n.length === 0)
|
|
4385
4385
|
return;
|
|
4386
4386
|
const i = A.find(t.target, !0);
|
|
@@ -4389,7 +4389,7 @@ class an extends Nt {
|
|
|
4389
4389
|
const o = this.quill.getSelection();
|
|
4390
4390
|
if (o == null || !this.quill.hasFocus())
|
|
4391
4391
|
return;
|
|
4392
|
-
const [a, u] = this.quill.getLine(o.index), [h, g] = this.quill.getLeaf(o.index), [y, d] = o.length === 0 ? [h, g] : this.quill.getLeaf(o.index + o.length), p = h instanceof
|
|
4392
|
+
const [a, u] = this.quill.getLine(o.index), [h, g] = this.quill.getLeaf(o.index), [y, d] = o.length === 0 ? [h, g] : this.quill.getLeaf(o.index + o.length), p = h instanceof Ws ? h.value().slice(0, g) : "", m = y instanceof Ws ? y.value().slice(d) : "", b = {
|
|
4393
4393
|
collapsed: o.length === 0,
|
|
4394
4394
|
// @ts-expect-error Fix me later
|
|
4395
4395
|
empty: o.length === 0 && a.length() <= 1,
|
|
@@ -4406,7 +4406,7 @@ class an extends Nt {
|
|
|
4406
4406
|
if (Array.isArray(E.format)) {
|
|
4407
4407
|
if (E.format.every((w) => b.format[w] == null))
|
|
4408
4408
|
return !1;
|
|
4409
|
-
} else if (typeof E.format == "object" && !Object.keys(E.format).every((w) => E.format[w] === !0 ? b.format[w] != null : E.format[w] === !1 ? b.format[w] == null :
|
|
4409
|
+
} else if (typeof E.format == "object" && !Object.keys(E.format).every((w) => E.format[w] === !0 ? b.format[w] != null : E.format[w] === !1 ? b.format[w] == null : Rr(E.format[w], b.format[w])))
|
|
4410
4410
|
return !1;
|
|
4411
4411
|
return E.prefix != null && !E.prefix.test(b.prefix) || E.suffix != null && !E.suffix.test(b.suffix) ? !1 : E.handler.call(this, o, b, E) !== !0;
|
|
4412
4412
|
}) && t.preventDefault();
|
|
@@ -4448,22 +4448,22 @@ class an extends Nt {
|
|
|
4448
4448
|
this.quill.updateContents(o, A.sources.USER), this.quill.focus();
|
|
4449
4449
|
}
|
|
4450
4450
|
handleDeleteRange(t) {
|
|
4451
|
-
|
|
4451
|
+
Kr({
|
|
4452
4452
|
range: t,
|
|
4453
4453
|
quill: this.quill
|
|
4454
4454
|
}), this.quill.focus();
|
|
4455
4455
|
}
|
|
4456
4456
|
handleEnter(t, e) {
|
|
4457
|
-
const s = Object.keys(e.format).reduce((i, o) => (this.quill.scroll.query(o,
|
|
4457
|
+
const s = Object.keys(e.format).reduce((i, o) => (this.quill.scroll.query(o, k.BLOCK) && !Array.isArray(e.format[o]) && (i[o] = e.format[o]), i), {}), n = new S().retain(t.index).delete(t.length).insert(`
|
|
4458
4458
|
`, s);
|
|
4459
4459
|
this.quill.updateContents(n, A.sources.USER), this.quill.setSelection(t.index + 1, A.sources.SILENT), this.quill.focus();
|
|
4460
4460
|
}
|
|
4461
4461
|
}
|
|
4462
|
-
const
|
|
4462
|
+
const ko = {
|
|
4463
4463
|
bindings: {
|
|
4464
|
-
bold:
|
|
4465
|
-
italic:
|
|
4466
|
-
underline:
|
|
4464
|
+
bold: dr("bold"),
|
|
4465
|
+
italic: dr("italic"),
|
|
4466
|
+
underline: dr("underline"),
|
|
4467
4467
|
indent: {
|
|
4468
4468
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
4469
4469
|
key: "Tab",
|
|
@@ -4679,15 +4679,15 @@ const Co = {
|
|
|
4679
4679
|
return !0;
|
|
4680
4680
|
}
|
|
4681
4681
|
},
|
|
4682
|
-
"embed left":
|
|
4683
|
-
"embed left shift":
|
|
4684
|
-
"embed right":
|
|
4685
|
-
"embed right shift":
|
|
4682
|
+
"embed left": Vs("ArrowLeft", !1),
|
|
4683
|
+
"embed left shift": Vs("ArrowLeft", !0),
|
|
4684
|
+
"embed right": Vs("ArrowRight", !1),
|
|
4685
|
+
"embed right shift": Vs("ArrowRight", !0),
|
|
4686
4686
|
"table down": xi(!1),
|
|
4687
4687
|
"table up": xi(!0)
|
|
4688
4688
|
}
|
|
4689
4689
|
};
|
|
4690
|
-
|
|
4690
|
+
ln.DEFAULTS = ko;
|
|
4691
4691
|
function Ai(r) {
|
|
4692
4692
|
return {
|
|
4693
4693
|
key: "Tab",
|
|
@@ -4717,7 +4717,7 @@ function Ai(r) {
|
|
|
4717
4717
|
}
|
|
4718
4718
|
};
|
|
4719
4719
|
}
|
|
4720
|
-
function
|
|
4720
|
+
function Vs(r, t) {
|
|
4721
4721
|
return {
|
|
4722
4722
|
key: r,
|
|
4723
4723
|
shiftKey: t,
|
|
@@ -4729,11 +4729,11 @@ function Gs(r, t) {
|
|
|
4729
4729
|
} = s;
|
|
4730
4730
|
r === "ArrowRight" && (n += s.length + 1);
|
|
4731
4731
|
const [i] = this.quill.getLeaf(n);
|
|
4732
|
-
return i instanceof
|
|
4732
|
+
return i instanceof rt ? (r === "ArrowLeft" ? t ? this.quill.setSelection(s.index - 1, s.length + 1, A.sources.USER) : this.quill.setSelection(s.index - 1, A.sources.USER) : t ? this.quill.setSelection(s.index, s.length + 1, A.sources.USER) : this.quill.setSelection(s.index + s.length + 1, A.sources.USER), !1) : !0;
|
|
4733
4733
|
}
|
|
4734
4734
|
};
|
|
4735
4735
|
}
|
|
4736
|
-
function
|
|
4736
|
+
function dr(r) {
|
|
4737
4737
|
return {
|
|
4738
4738
|
key: r[0],
|
|
4739
4739
|
shortKey: !0,
|
|
@@ -4765,18 +4765,18 @@ function xi(r) {
|
|
|
4765
4765
|
}
|
|
4766
4766
|
};
|
|
4767
4767
|
}
|
|
4768
|
-
function
|
|
4768
|
+
function Co(r) {
|
|
4769
4769
|
if (typeof r == "string" || typeof r == "number")
|
|
4770
4770
|
r = {
|
|
4771
4771
|
key: r
|
|
4772
4772
|
};
|
|
4773
4773
|
else if (typeof r == "object")
|
|
4774
|
-
r =
|
|
4774
|
+
r = Se(r);
|
|
4775
4775
|
else
|
|
4776
4776
|
return null;
|
|
4777
|
-
return r.shortKey && (r[
|
|
4777
|
+
return r.shortKey && (r[_o] = r.shortKey, delete r.shortKey), r;
|
|
4778
4778
|
}
|
|
4779
|
-
function
|
|
4779
|
+
function Kr(r) {
|
|
4780
4780
|
let {
|
|
4781
4781
|
quill: t,
|
|
4782
4782
|
range: e
|
|
@@ -4860,8 +4860,8 @@ const zo = [Fo, Do], Vo = (r) => {
|
|
|
4860
4860
|
r.documentElement && zo.forEach((t) => {
|
|
4861
4861
|
t(r);
|
|
4862
4862
|
});
|
|
4863
|
-
}, Ko =
|
|
4864
|
-
class al extends
|
|
4863
|
+
}, Ko = Dt("quill:clipboard"), Go = [[Node.TEXT_NODE, ia], [Node.TEXT_NODE, Li], ["br", Qo], [Node.ELEMENT_NODE, Li], [Node.ELEMENT_NODE, Yo], [Node.ELEMENT_NODE, Xo], [Node.ELEMENT_NODE, na], ["li", ea], ["ol, ul", sa], ["pre", Jo], ["tr", ra], ["b", gr("bold")], ["i", gr("italic")], ["strike", gr("strike")], ["style", ta]], Zo = [wo, tl].reduce((r, t) => (r[t.keyName] = t, r), {}), Ti = [Qi, Fr, Hr, sl, il, ol].reduce((r, t) => (r[t.keyName] = t, r), {});
|
|
4864
|
+
class al extends Et {
|
|
4865
4865
|
constructor(t, e) {
|
|
4866
4866
|
super(t, e), this.quill.root.addEventListener("copy", (s) => this.onCaptureCopy(s, !1)), this.quill.root.addEventListener("cut", (s) => this.onCaptureCopy(s, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [], Go.concat(this.options.matchers ?? []).forEach((s) => {
|
|
4867
4867
|
let [n, i] = s;
|
|
@@ -4883,7 +4883,7 @@ class al extends Nt {
|
|
|
4883
4883
|
if (!e)
|
|
4884
4884
|
return new S().insert(s || "", n);
|
|
4885
4885
|
const i = this.convertHTML(e);
|
|
4886
|
-
return
|
|
4886
|
+
return cs(i, `
|
|
4887
4887
|
`) && (i.ops[i.ops.length - 1].attributes == null || n.table) ? i.compose(new S().retain(i.length() - 1).delete(1)) : i;
|
|
4888
4888
|
}
|
|
4889
4889
|
normalizeHTML(t) {
|
|
@@ -4893,7 +4893,7 @@ class al extends Nt {
|
|
|
4893
4893
|
const e = new DOMParser().parseFromString(t, "text/html");
|
|
4894
4894
|
this.normalizeHTML(e);
|
|
4895
4895
|
const s = e.body, n = /* @__PURE__ */ new WeakMap(), [i, o] = this.prepareMatching(s, n);
|
|
4896
|
-
return
|
|
4896
|
+
return Gr(this.quill.scroll, s, i, o, n);
|
|
4897
4897
|
}
|
|
4898
4898
|
dangerouslyPasteHTML(t, e) {
|
|
4899
4899
|
let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : A.sources.API;
|
|
@@ -4924,7 +4924,7 @@ class al extends Nt {
|
|
|
4924
4924
|
html: n,
|
|
4925
4925
|
text: i
|
|
4926
4926
|
} = this.onCopy(s, e);
|
|
4927
|
-
(o = t.clipboardData) == null || o.setData("text/plain", i), (a = t.clipboardData) == null || a.setData("text/html", n), e &&
|
|
4927
|
+
(o = t.clipboardData) == null || o.setData("text/plain", i), (a = t.clipboardData) == null || a.setData("text/html", n), e && Kr({
|
|
4928
4928
|
range: s,
|
|
4929
4929
|
quill: this.quill
|
|
4930
4930
|
});
|
|
@@ -5017,7 +5017,7 @@ class al extends Nt {
|
|
|
5017
5017
|
T(al, "DEFAULTS", {
|
|
5018
5018
|
matchers: []
|
|
5019
5019
|
});
|
|
5020
|
-
function
|
|
5020
|
+
function ae(r, t, e, s) {
|
|
5021
5021
|
return s.query(t) ? r.reduce((n, i) => {
|
|
5022
5022
|
if (!i.insert)
|
|
5023
5023
|
return n;
|
|
@@ -5032,7 +5032,7 @@ function oe(r, t, e, s) {
|
|
|
5032
5032
|
});
|
|
5033
5033
|
}, new S()) : r;
|
|
5034
5034
|
}
|
|
5035
|
-
function
|
|
5035
|
+
function cs(r, t) {
|
|
5036
5036
|
let e = "";
|
|
5037
5037
|
for (let s = r.ops.length - 1; s >= 0 && e.length < t.length; --s) {
|
|
5038
5038
|
const n = r.ops[s];
|
|
@@ -5042,60 +5042,60 @@ function hs(r, t) {
|
|
|
5042
5042
|
}
|
|
5043
5043
|
return e.slice(-1 * t.length) === t;
|
|
5044
5044
|
}
|
|
5045
|
-
function
|
|
5045
|
+
function Kt(r, t) {
|
|
5046
5046
|
if (!(r instanceof Element))
|
|
5047
5047
|
return !1;
|
|
5048
5048
|
const e = t.query(r);
|
|
5049
|
-
return e && e.prototype instanceof
|
|
5049
|
+
return e && e.prototype instanceof rt ? !1 : ["address", "article", "blockquote", "canvas", "dd", "div", "dl", "dt", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "iframe", "li", "main", "nav", "ol", "output", "p", "pre", "section", "table", "td", "tr", "ul", "video"].includes(r.tagName.toLowerCase());
|
|
5050
5050
|
}
|
|
5051
5051
|
function Wo(r, t) {
|
|
5052
|
-
return r.previousElementSibling && r.nextElementSibling && !
|
|
5052
|
+
return r.previousElementSibling && r.nextElementSibling && !Kt(r.previousElementSibling, t) && !Kt(r.nextElementSibling, t);
|
|
5053
5053
|
}
|
|
5054
|
-
const
|
|
5054
|
+
const Ks = /* @__PURE__ */ new WeakMap();
|
|
5055
5055
|
function cl(r) {
|
|
5056
|
-
return r == null ? !1 : (
|
|
5056
|
+
return r == null ? !1 : (Ks.has(r) || (r.tagName === "PRE" ? Ks.set(r, !0) : Ks.set(r, cl(r.parentNode))), Ks.get(r));
|
|
5057
5057
|
}
|
|
5058
|
-
function
|
|
5058
|
+
function Gr(r, t, e, s, n) {
|
|
5059
5059
|
return t.nodeType === t.TEXT_NODE ? s.reduce((i, o) => o(t, i, r), new S()) : t.nodeType === t.ELEMENT_NODE ? Array.from(t.childNodes || []).reduce((i, o) => {
|
|
5060
|
-
let a =
|
|
5060
|
+
let a = Gr(r, o, e, s, n);
|
|
5061
5061
|
return o.nodeType === t.ELEMENT_NODE && (a = e.reduce((u, h) => h(o, u, r), a), a = (n.get(o) || []).reduce((u, h) => h(o, u, r), a)), i.concat(a);
|
|
5062
5062
|
}, new S()) : new S();
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5065
|
-
return (t, e, s) =>
|
|
5064
|
+
function gr(r) {
|
|
5065
|
+
return (t, e, s) => ae(e, r, !0, s);
|
|
5066
5066
|
}
|
|
5067
5067
|
function Xo(r, t, e) {
|
|
5068
|
-
const s =
|
|
5068
|
+
const s = St.keys(r), n = yt.keys(r), i = Wt.keys(r), o = {};
|
|
5069
5069
|
return s.concat(n).concat(i).forEach((a) => {
|
|
5070
|
-
let u = e.query(a,
|
|
5070
|
+
let u = e.query(a, k.ATTRIBUTE);
|
|
5071
5071
|
u != null && (o[u.attrName] = u.value(r), o[u.attrName]) || (u = Zo[a], u != null && (u.attrName === a || u.keyName === a) && (o[u.attrName] = u.value(r) || void 0), u = Ti[a], u != null && (u.attrName === a || u.keyName === a) && (u = Ti[a], o[u.attrName] = u.value(r) || void 0));
|
|
5072
5072
|
}), Object.entries(o).reduce((a, u) => {
|
|
5073
5073
|
let [h, g] = u;
|
|
5074
|
-
return
|
|
5074
|
+
return ae(a, h, g, e);
|
|
5075
5075
|
}, t);
|
|
5076
5076
|
}
|
|
5077
5077
|
function Yo(r, t, e) {
|
|
5078
5078
|
const s = e.query(r);
|
|
5079
5079
|
if (s == null)
|
|
5080
5080
|
return t;
|
|
5081
|
-
if (s.prototype instanceof
|
|
5081
|
+
if (s.prototype instanceof rt) {
|
|
5082
5082
|
const n = {}, i = s.value(r);
|
|
5083
5083
|
if (i != null)
|
|
5084
5084
|
return n[s.blotName] = i, new S().insert(n, s.formats(r, e));
|
|
5085
|
-
} else if (s.prototype instanceof
|
|
5085
|
+
} else if (s.prototype instanceof rs && !cs(t, `
|
|
5086
5086
|
`) && t.insert(`
|
|
5087
5087
|
`), "blotName" in s && "formats" in s && typeof s.formats == "function")
|
|
5088
|
-
return
|
|
5088
|
+
return ae(t, s.blotName, s.formats(r, e), e);
|
|
5089
5089
|
return t;
|
|
5090
5090
|
}
|
|
5091
5091
|
function Qo(r, t) {
|
|
5092
|
-
return
|
|
5092
|
+
return cs(t, `
|
|
5093
5093
|
`) || t.insert(`
|
|
5094
5094
|
`), t;
|
|
5095
5095
|
}
|
|
5096
5096
|
function Jo(r, t, e) {
|
|
5097
5097
|
const s = e.query("code-block"), n = s && "formats" in s && typeof s.formats == "function" ? s.formats(r, e) : !0;
|
|
5098
|
-
return
|
|
5098
|
+
return ae(t, "code-block", n, e);
|
|
5099
5099
|
}
|
|
5100
5100
|
function ta() {
|
|
5101
5101
|
return new S();
|
|
@@ -5103,7 +5103,7 @@ function ta() {
|
|
|
5103
5103
|
function ea(r, t, e) {
|
|
5104
5104
|
const s = e.query(r);
|
|
5105
5105
|
if (s == null || // @ts-expect-error
|
|
5106
|
-
s.blotName !== "list" || !
|
|
5106
|
+
s.blotName !== "list" || !cs(t, `
|
|
5107
5107
|
`))
|
|
5108
5108
|
return t;
|
|
5109
5109
|
let n = -1, i = r.parentNode;
|
|
@@ -5118,18 +5118,18 @@ function sa(r, t, e) {
|
|
|
5118
5118
|
const s = r;
|
|
5119
5119
|
let n = s.tagName === "OL" ? "ordered" : "bullet";
|
|
5120
5120
|
const i = s.getAttribute("data-checked");
|
|
5121
|
-
return i && (n = i === "true" ? "checked" : "unchecked"),
|
|
5121
|
+
return i && (n = i === "true" ? "checked" : "unchecked"), ae(t, "list", n, e);
|
|
5122
5122
|
}
|
|
5123
5123
|
function Li(r, t, e) {
|
|
5124
|
-
if (!
|
|
5124
|
+
if (!cs(t, `
|
|
5125
5125
|
`)) {
|
|
5126
|
-
if (
|
|
5126
|
+
if (Kt(r, e) && (r.childNodes.length > 0 || r instanceof HTMLParagraphElement))
|
|
5127
5127
|
return t.insert(`
|
|
5128
5128
|
`);
|
|
5129
5129
|
if (t.length() > 0 && r.nextSibling) {
|
|
5130
5130
|
let s = r.nextSibling;
|
|
5131
5131
|
for (; s != null; ) {
|
|
5132
|
-
if (
|
|
5132
|
+
if (Kt(s, e))
|
|
5133
5133
|
return t.insert(`
|
|
5134
5134
|
`);
|
|
5135
5135
|
const n = e.query(s);
|
|
@@ -5148,7 +5148,7 @@ function na(r, t, e) {
|
|
|
5148
5148
|
return n.fontStyle === "italic" && (s.italic = !0), n.textDecoration === "underline" && (s.underline = !0), n.textDecoration === "line-through" && (s.strike = !0), ((i = n.fontWeight) != null && i.startsWith("bold") || // @ts-expect-error Fix me later
|
|
5149
5149
|
parseInt(n.fontWeight, 10) >= 700) && (s.bold = !0), t = Object.entries(s).reduce((o, a) => {
|
|
5150
5150
|
let [u, h] = a;
|
|
5151
|
-
return
|
|
5151
|
+
return ae(o, u, h, e);
|
|
5152
5152
|
}, t), parseFloat(n.textIndent || 0) > 0 ? new S().insert(" ").concat(t) : t;
|
|
5153
5153
|
}
|
|
5154
5154
|
function ra(r, t, e) {
|
|
@@ -5156,7 +5156,7 @@ function ra(r, t, e) {
|
|
|
5156
5156
|
const s = ((n = r.parentElement) == null ? void 0 : n.tagName) === "TABLE" ? r.parentElement : (i = r.parentElement) == null ? void 0 : i.parentElement;
|
|
5157
5157
|
if (s != null) {
|
|
5158
5158
|
const a = Array.from(s.querySelectorAll("tr")).indexOf(r) + 1;
|
|
5159
|
-
return
|
|
5159
|
+
return ae(t, "table", a, e);
|
|
5160
5160
|
}
|
|
5161
5161
|
return t;
|
|
5162
5162
|
}
|
|
@@ -5173,11 +5173,11 @@ function ia(r, t, e) {
|
|
|
5173
5173
|
const u = a.replace(/[^\u00a0]/g, "");
|
|
5174
5174
|
return u.length < 1 && o ? " " : u;
|
|
5175
5175
|
};
|
|
5176
|
-
s = s.replace(/\r\n/g, " ").replace(/\n/g, " "), s = s.replace(/\s\s+/g, i.bind(i, !0)), (r.previousSibling == null && r.parentElement != null &&
|
|
5176
|
+
s = s.replace(/\r\n/g, " ").replace(/\n/g, " "), s = s.replace(/\s\s+/g, i.bind(i, !0)), (r.previousSibling == null && r.parentElement != null && Kt(r.parentElement, e) || r.previousSibling instanceof Element && Kt(r.previousSibling, e)) && (s = s.replace(/^\s+/, i.bind(i, !1))), (r.nextSibling == null && r.parentElement != null && Kt(r.parentElement, e) || r.nextSibling instanceof Element && Kt(r.nextSibling, e)) && (s = s.replace(/\s+$/, i.bind(i, !1)));
|
|
5177
5177
|
}
|
|
5178
5178
|
return t.insert(s);
|
|
5179
5179
|
}
|
|
5180
|
-
class ul extends
|
|
5180
|
+
class ul extends Et {
|
|
5181
5181
|
constructor(e, s) {
|
|
5182
5182
|
super(e, s);
|
|
5183
5183
|
T(this, "lastRecorded", 0);
|
|
@@ -5188,7 +5188,7 @@ class ul extends Nt {
|
|
|
5188
5188
|
});
|
|
5189
5189
|
T(this, "currentRange", null);
|
|
5190
5190
|
this.quill.on(A.events.EDITOR_CHANGE, (n, i, o, a) => {
|
|
5191
|
-
n === A.events.SELECTION_CHANGE ? i && a !== A.sources.SILENT && (this.currentRange = i) : n === A.events.TEXT_CHANGE && (this.ignoreChange || (!this.options.userOnly || a === A.sources.USER ? this.record(i, o) : this.transform(i)), this.currentRange =
|
|
5191
|
+
n === A.events.SELECTION_CHANGE ? i && a !== A.sources.SILENT && (this.currentRange = i) : n === A.events.TEXT_CHANGE && (this.ignoreChange || (!this.options.userOnly || a === A.sources.USER ? this.record(i, o) : this.transform(i)), this.currentRange = Tr(this.currentRange, i));
|
|
5192
5192
|
}), this.quill.keyboard.addBinding({
|
|
5193
5193
|
key: "z",
|
|
5194
5194
|
shortKey: !0
|
|
@@ -5212,7 +5212,7 @@ class ul extends Nt {
|
|
|
5212
5212
|
const i = this.quill.getContents(), o = n.delta.invert(i);
|
|
5213
5213
|
this.stack[s].push({
|
|
5214
5214
|
delta: o,
|
|
5215
|
-
range:
|
|
5215
|
+
range: Tr(n.range, o)
|
|
5216
5216
|
}), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(n.delta, A.sources.USER), this.ignoreChange = !1, this.restoreSelection(n);
|
|
5217
5217
|
}
|
|
5218
5218
|
clear() {
|
|
@@ -5272,21 +5272,21 @@ function qi(r, t) {
|
|
|
5272
5272
|
const n = r[s];
|
|
5273
5273
|
r[s] = {
|
|
5274
5274
|
delta: e.transform(n.delta, !0),
|
|
5275
|
-
range: n.range &&
|
|
5275
|
+
range: n.range && Tr(n.range, e)
|
|
5276
5276
|
}, e = n.delta.transform(e), r[s].delta.length() === 0 && r.splice(s, 1);
|
|
5277
5277
|
}
|
|
5278
5278
|
}
|
|
5279
5279
|
function la(r, t) {
|
|
5280
5280
|
const e = t.ops[t.ops.length - 1];
|
|
5281
5281
|
return e == null ? !1 : e.insert != null ? typeof e.insert == "string" && e.insert.endsWith(`
|
|
5282
|
-
`) : e.attributes != null ? Object.keys(e.attributes).some((s) => r.query(s,
|
|
5282
|
+
`) : e.attributes != null ? Object.keys(e.attributes).some((s) => r.query(s, k.BLOCK) != null) : !1;
|
|
5283
5283
|
}
|
|
5284
5284
|
function oa(r, t) {
|
|
5285
5285
|
const e = t.reduce((n, i) => n + (i.delete || 0), 0);
|
|
5286
5286
|
let s = t.length() - e;
|
|
5287
5287
|
return la(r, t) && (s -= 1), s;
|
|
5288
5288
|
}
|
|
5289
|
-
function
|
|
5289
|
+
function Tr(r, t) {
|
|
5290
5290
|
if (!r)
|
|
5291
5291
|
return r;
|
|
5292
5292
|
const e = t.transformPosition(r.index), s = t.transformPosition(r.index + r.length);
|
|
@@ -5295,7 +5295,7 @@ function qr(r, t) {
|
|
|
5295
5295
|
length: s - e
|
|
5296
5296
|
};
|
|
5297
5297
|
}
|
|
5298
|
-
class hl extends
|
|
5298
|
+
class hl extends Et {
|
|
5299
5299
|
constructor(t, e) {
|
|
5300
5300
|
super(t, e), t.root.addEventListener("drop", (s) => {
|
|
5301
5301
|
var o;
|
|
@@ -5342,7 +5342,7 @@ hl.DEFAULTS = {
|
|
|
5342
5342
|
}
|
|
5343
5343
|
};
|
|
5344
5344
|
const aa = ["insertText", "insertReplacementText"];
|
|
5345
|
-
class ca extends
|
|
5345
|
+
class ca extends Et {
|
|
5346
5346
|
constructor(t, e) {
|
|
5347
5347
|
super(t, e), t.root.addEventListener("beforeinput", (s) => {
|
|
5348
5348
|
this.handleBeforeInput(s);
|
|
@@ -5351,7 +5351,7 @@ class ca extends Nt {
|
|
|
5351
5351
|
});
|
|
5352
5352
|
}
|
|
5353
5353
|
deleteRange(t) {
|
|
5354
|
-
|
|
5354
|
+
Kr({
|
|
5355
5355
|
range: t,
|
|
5356
5356
|
quill: this.quill
|
|
5357
5357
|
});
|
|
@@ -5390,7 +5390,7 @@ function ua(r) {
|
|
|
5390
5390
|
}
|
|
5391
5391
|
const ha = /Mac/i.test(navigator.platform), fa = 100, da = (r) => !!(r.key === "ArrowLeft" || r.key === "ArrowRight" || // RTL scripts or moving from the end of the previous line
|
|
5392
5392
|
r.key === "ArrowUp" || r.key === "ArrowDown" || r.key === "Home" || ha && r.key === "a" && r.ctrlKey === !0);
|
|
5393
|
-
class ga extends
|
|
5393
|
+
class ga extends Et {
|
|
5394
5394
|
constructor(e, s) {
|
|
5395
5395
|
super(e, s);
|
|
5396
5396
|
T(this, "isListening", !1);
|
|
@@ -5407,7 +5407,7 @@ class ga extends Nt {
|
|
|
5407
5407
|
line: n,
|
|
5408
5408
|
event: i
|
|
5409
5409
|
} = s;
|
|
5410
|
-
if (!(n instanceof
|
|
5410
|
+
if (!(n instanceof mt) || !n.uiNode)
|
|
5411
5411
|
return !0;
|
|
5412
5412
|
const o = getComputedStyle(n.domNode).direction === "rtl";
|
|
5413
5413
|
return o && i.key !== "ArrowRight" || !o && i.key !== "ArrowLeft" ? !0 : (this.quill.setSelection(e.index - 1, e.length + (i.shiftKey ? 1 : 0), A.sources.USER), !1);
|
|
@@ -5444,7 +5444,7 @@ class ga extends Nt {
|
|
|
5444
5444
|
if (s.collapsed !== !0 || s.startOffset !== 0)
|
|
5445
5445
|
return;
|
|
5446
5446
|
const n = this.quill.scroll.find(s.startContainer);
|
|
5447
|
-
if (!(n instanceof
|
|
5447
|
+
if (!(n instanceof mt) || !n.uiNode)
|
|
5448
5448
|
return;
|
|
5449
5449
|
const i = document.createRange();
|
|
5450
5450
|
i.setStartAfter(n.uiNode), i.setEndAfter(n.uiNode), e.removeAllRanges(), e.addRange(i);
|
|
@@ -5453,21 +5453,21 @@ class ga extends Nt {
|
|
|
5453
5453
|
A.register({
|
|
5454
5454
|
"blots/block": K,
|
|
5455
5455
|
"blots/block/embed": at,
|
|
5456
|
-
"blots/break":
|
|
5457
|
-
"blots/container":
|
|
5458
|
-
"blots/cursor":
|
|
5459
|
-
"blots/embed":
|
|
5460
|
-
"blots/inline":
|
|
5461
|
-
"blots/scroll":
|
|
5462
|
-
"blots/text":
|
|
5456
|
+
"blots/break": vt,
|
|
5457
|
+
"blots/container": le,
|
|
5458
|
+
"blots/cursor": Lt,
|
|
5459
|
+
"blots/embed": rn,
|
|
5460
|
+
"blots/inline": ut,
|
|
5461
|
+
"blots/scroll": Le,
|
|
5462
|
+
"blots/text": bt,
|
|
5463
5463
|
"modules/clipboard": al,
|
|
5464
5464
|
"modules/history": ul,
|
|
5465
|
-
"modules/keyboard":
|
|
5465
|
+
"modules/keyboard": ln,
|
|
5466
5466
|
"modules/uploader": hl,
|
|
5467
5467
|
"modules/input": ca,
|
|
5468
5468
|
"modules/uiNode": ga
|
|
5469
5469
|
});
|
|
5470
|
-
class pa extends
|
|
5470
|
+
class pa extends yt {
|
|
5471
5471
|
add(t, e) {
|
|
5472
5472
|
let s = 0;
|
|
5473
5473
|
if (e === "+1" || e === "-1") {
|
|
@@ -5485,24 +5485,24 @@ class pa extends vt {
|
|
|
5485
5485
|
}
|
|
5486
5486
|
}
|
|
5487
5487
|
const ma = new pa("indent", "ql-indent", {
|
|
5488
|
-
scope:
|
|
5488
|
+
scope: k.BLOCK,
|
|
5489
5489
|
// @ts-expect-error
|
|
5490
5490
|
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
5491
5491
|
});
|
|
5492
|
-
class
|
|
5492
|
+
class Lr extends K {
|
|
5493
5493
|
}
|
|
5494
|
-
T(
|
|
5495
|
-
class
|
|
5494
|
+
T(Lr, "blotName", "blockquote"), T(Lr, "tagName", "blockquote");
|
|
5495
|
+
class qr extends K {
|
|
5496
5496
|
static formats(t) {
|
|
5497
5497
|
return this.tagName.indexOf(t.tagName) + 1;
|
|
5498
5498
|
}
|
|
5499
5499
|
}
|
|
5500
|
-
T(
|
|
5501
|
-
class
|
|
5500
|
+
T(qr, "blotName", "header"), T(qr, "tagName", ["H1", "H2", "H3", "H4", "H5", "H6"]);
|
|
5501
|
+
class us extends le {
|
|
5502
5502
|
}
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
class
|
|
5503
|
+
us.blotName = "list-container";
|
|
5504
|
+
us.tagName = "OL";
|
|
5505
|
+
class hs extends K {
|
|
5506
5506
|
static create(t) {
|
|
5507
5507
|
const e = super.create();
|
|
5508
5508
|
return e.setAttribute("data-list", t), e;
|
|
@@ -5511,7 +5511,7 @@ class ds extends K {
|
|
|
5511
5511
|
return t.getAttribute("data-list") || void 0;
|
|
5512
5512
|
}
|
|
5513
5513
|
static register() {
|
|
5514
|
-
A.register(
|
|
5514
|
+
A.register(us);
|
|
5515
5515
|
}
|
|
5516
5516
|
constructor(t, e) {
|
|
5517
5517
|
super(t, e);
|
|
@@ -5527,11 +5527,11 @@ class ds extends K {
|
|
|
5527
5527
|
t === this.statics.blotName && e ? this.domNode.setAttribute("data-list", e) : super.format(t, e);
|
|
5528
5528
|
}
|
|
5529
5529
|
}
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
class
|
|
5530
|
+
hs.blotName = "list";
|
|
5531
|
+
hs.tagName = "LI";
|
|
5532
|
+
us.allowedChildren = [hs];
|
|
5533
|
+
hs.requiredContainer = us;
|
|
5534
|
+
class os extends ut {
|
|
5535
5535
|
static create() {
|
|
5536
5536
|
return super.create();
|
|
5537
5537
|
}
|
|
@@ -5542,11 +5542,11 @@ class cs extends Ct {
|
|
|
5542
5542
|
super.optimize(t), this.domNode.tagName !== this.statics.tagName[0] && this.replaceWith(this.statics.blotName);
|
|
5543
5543
|
}
|
|
5544
5544
|
}
|
|
5545
|
-
T(
|
|
5546
|
-
class
|
|
5545
|
+
T(os, "blotName", "bold"), T(os, "tagName", ["STRONG", "B"]);
|
|
5546
|
+
class Sr extends os {
|
|
5547
5547
|
}
|
|
5548
|
-
T(
|
|
5549
|
-
class
|
|
5548
|
+
T(Sr, "blotName", "italic"), T(Sr, "tagName", ["EM", "I"]);
|
|
5549
|
+
class Gt extends ut {
|
|
5550
5550
|
static create(t) {
|
|
5551
5551
|
const e = super.create(t);
|
|
5552
5552
|
return e.setAttribute("href", this.sanitize(t)), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("target", "_blank"), e;
|
|
@@ -5561,14 +5561,14 @@ class Kt extends Ct {
|
|
|
5561
5561
|
t !== this.statics.blotName || !e ? super.format(t, e) : this.domNode.setAttribute("href", this.constructor.sanitize(e));
|
|
5562
5562
|
}
|
|
5563
5563
|
}
|
|
5564
|
-
T(
|
|
5564
|
+
T(Gt, "blotName", "link"), T(Gt, "tagName", "A"), T(Gt, "SANITIZED_URL", "about:blank"), T(Gt, "PROTOCOL_WHITELIST", ["http", "https", "mailto", "tel", "sms"]);
|
|
5565
5565
|
function fl(r, t) {
|
|
5566
5566
|
const e = document.createElement("a");
|
|
5567
5567
|
e.href = r;
|
|
5568
5568
|
const s = e.href.slice(0, e.href.indexOf(":"));
|
|
5569
5569
|
return t.indexOf(s) > -1;
|
|
5570
5570
|
}
|
|
5571
|
-
class _r extends
|
|
5571
|
+
class _r extends ut {
|
|
5572
5572
|
static create(t) {
|
|
5573
5573
|
return t === "super" ? document.createElement("sup") : t === "sub" ? document.createElement("sub") : super.create(t);
|
|
5574
5574
|
}
|
|
@@ -5580,13 +5580,13 @@ class _r extends Ct {
|
|
|
5580
5580
|
}
|
|
5581
5581
|
}
|
|
5582
5582
|
T(_r, "blotName", "script"), T(_r, "tagName", ["SUB", "SUP"]);
|
|
5583
|
-
class
|
|
5583
|
+
class kr extends os {
|
|
5584
5584
|
}
|
|
5585
|
-
T(
|
|
5586
|
-
class
|
|
5585
|
+
T(kr, "blotName", "strike"), T(kr, "tagName", ["S", "STRIKE"]);
|
|
5586
|
+
class Cr extends ut {
|
|
5587
5587
|
}
|
|
5588
|
-
T(
|
|
5589
|
-
class
|
|
5588
|
+
T(Cr, "blotName", "underline"), T(Cr, "tagName", "U");
|
|
5589
|
+
class Gs extends rn {
|
|
5590
5590
|
static create(t) {
|
|
5591
5591
|
if (window.katex == null)
|
|
5592
5592
|
throw new Error("Formula module requires KaTeX.");
|
|
@@ -5606,9 +5606,9 @@ class Ws extends on {
|
|
|
5606
5606
|
return `<span>${t}</span>`;
|
|
5607
5607
|
}
|
|
5608
5608
|
}
|
|
5609
|
-
T(
|
|
5609
|
+
T(Gs, "blotName", "formula"), T(Gs, "className", "ql-formula"), T(Gs, "tagName", "SPAN");
|
|
5610
5610
|
const Si = ["alt", "height", "width"];
|
|
5611
|
-
class
|
|
5611
|
+
class Or extends rt {
|
|
5612
5612
|
static create(t) {
|
|
5613
5613
|
const e = super.create(t);
|
|
5614
5614
|
return typeof t == "string" && e.setAttribute("src", this.sanitize(t)), e;
|
|
@@ -5629,24 +5629,24 @@ class Rr extends nt {
|
|
|
5629
5629
|
Si.indexOf(t) > -1 ? e ? this.domNode.setAttribute(t, e) : this.domNode.removeAttribute(t) : super.format(t, e);
|
|
5630
5630
|
}
|
|
5631
5631
|
}
|
|
5632
|
-
T(
|
|
5633
|
-
const
|
|
5634
|
-
class
|
|
5632
|
+
T(Or, "blotName", "image"), T(Or, "tagName", "IMG");
|
|
5633
|
+
const _i = ["height", "width"];
|
|
5634
|
+
class Zs extends at {
|
|
5635
5635
|
static create(t) {
|
|
5636
5636
|
const e = super.create(t);
|
|
5637
5637
|
return e.setAttribute("frameborder", "0"), e.setAttribute("allowfullscreen", "true"), e.setAttribute("src", this.sanitize(t)), e;
|
|
5638
5638
|
}
|
|
5639
5639
|
static formats(t) {
|
|
5640
|
-
return
|
|
5640
|
+
return _i.reduce((e, s) => (t.hasAttribute(s) && (e[s] = t.getAttribute(s)), e), {});
|
|
5641
5641
|
}
|
|
5642
5642
|
static sanitize(t) {
|
|
5643
|
-
return
|
|
5643
|
+
return Gt.sanitize(t);
|
|
5644
5644
|
}
|
|
5645
5645
|
static value(t) {
|
|
5646
5646
|
return t.getAttribute("src");
|
|
5647
5647
|
}
|
|
5648
5648
|
format(t, e) {
|
|
5649
|
-
|
|
5649
|
+
_i.indexOf(t) > -1 ? e ? this.domNode.setAttribute(t, e) : this.domNode.removeAttribute(t) : super.format(t, e);
|
|
5650
5650
|
}
|
|
5651
5651
|
html() {
|
|
5652
5652
|
const {
|
|
@@ -5655,11 +5655,11 @@ class Xs extends at {
|
|
|
5655
5655
|
return `<a href="${t}">${t}</a>`;
|
|
5656
5656
|
}
|
|
5657
5657
|
}
|
|
5658
|
-
T(
|
|
5659
|
-
const ss = new
|
|
5660
|
-
scope:
|
|
5658
|
+
T(Zs, "blotName", "video"), T(Zs, "className", "ql-video"), T(Zs, "tagName", "IFRAME");
|
|
5659
|
+
const ss = new yt("code-token", "hljs", {
|
|
5660
|
+
scope: k.INLINE
|
|
5661
5661
|
});
|
|
5662
|
-
class
|
|
5662
|
+
class Bt extends ut {
|
|
5663
5663
|
static formats(t, e) {
|
|
5664
5664
|
for (; t != null && t !== e.domNode; ) {
|
|
5665
5665
|
if (t.classList && t.classList.contains(Y.className))
|
|
@@ -5671,14 +5671,14 @@ class Dt extends Ct {
|
|
|
5671
5671
|
super(t, e, s), ss.add(this.domNode, s);
|
|
5672
5672
|
}
|
|
5673
5673
|
format(t, e) {
|
|
5674
|
-
t !==
|
|
5674
|
+
t !== Bt.blotName ? super.format(t, e) : e ? ss.add(this.domNode, e) : (ss.remove(this.domNode), this.domNode.classList.remove(this.statics.className));
|
|
5675
5675
|
}
|
|
5676
5676
|
optimize() {
|
|
5677
5677
|
super.optimize(...arguments), ss.value(this.domNode) || this.unwrap();
|
|
5678
5678
|
}
|
|
5679
5679
|
}
|
|
5680
|
-
|
|
5681
|
-
|
|
5680
|
+
Bt.blotName = "code-token";
|
|
5681
|
+
Bt.className = "ql-token";
|
|
5682
5682
|
class ot extends Y {
|
|
5683
5683
|
static create(t) {
|
|
5684
5684
|
const e = super.create(t);
|
|
@@ -5694,10 +5694,10 @@ class ot extends Y {
|
|
|
5694
5694
|
t === this.statics.blotName && e ? this.domNode.setAttribute("data-language", e) : super.format(t, e);
|
|
5695
5695
|
}
|
|
5696
5696
|
replaceWith(t, e) {
|
|
5697
|
-
return this.formatAt(0, this.length(),
|
|
5697
|
+
return this.formatAt(0, this.length(), Bt.blotName, !1), super.replaceWith(t, e);
|
|
5698
5698
|
}
|
|
5699
5699
|
}
|
|
5700
|
-
class ns extends
|
|
5700
|
+
class ns extends oe {
|
|
5701
5701
|
attach() {
|
|
5702
5702
|
super.attach(), this.forceNext = !1, this.scroll.emitMount(this);
|
|
5703
5703
|
}
|
|
@@ -5725,7 +5725,7 @@ class ns extends le {
|
|
|
5725
5725
|
attributes: y
|
|
5726
5726
|
} = h;
|
|
5727
5727
|
return g ? (y && Object.keys(y).forEach((d) => {
|
|
5728
|
-
[ot.blotName,
|
|
5728
|
+
[ot.blotName, Bt.blotName].includes(d) && this.formatAt(u, g, d, y[d]);
|
|
5729
5729
|
}), u + g) : u;
|
|
5730
5730
|
}, 0);
|
|
5731
5731
|
}
|
|
@@ -5735,7 +5735,7 @@ class ns extends le {
|
|
|
5735
5735
|
html(t, e) {
|
|
5736
5736
|
const [s] = this.children.find(t);
|
|
5737
5737
|
return `<pre data-language="${s ? ot.formats(s.domNode) : "plain"}">
|
|
5738
|
-
${
|
|
5738
|
+
${nn(this.code(t, e))}
|
|
5739
5739
|
</pre>`;
|
|
5740
5740
|
}
|
|
5741
5741
|
optimize(t) {
|
|
@@ -5747,7 +5747,7 @@ ${ln(this.code(t, e))}
|
|
|
5747
5747
|
}
|
|
5748
5748
|
ns.allowedChildren = [ot];
|
|
5749
5749
|
ot.requiredContainer = ns;
|
|
5750
|
-
ot.allowedChildren = [
|
|
5750
|
+
ot.allowedChildren = [Bt, Lt, bt, vt];
|
|
5751
5751
|
const ba = (r, t, e) => {
|
|
5752
5752
|
if (typeof r.versionString == "string") {
|
|
5753
5753
|
const s = r.versionString.split(".")[0];
|
|
@@ -5758,9 +5758,9 @@ const ba = (r, t, e) => {
|
|
|
5758
5758
|
}
|
|
5759
5759
|
return r.highlight(t, e).value;
|
|
5760
5760
|
};
|
|
5761
|
-
class dl extends
|
|
5761
|
+
class dl extends Et {
|
|
5762
5762
|
static register() {
|
|
5763
|
-
A.register(
|
|
5763
|
+
A.register(Bt, !0), A.register(ot, !0), A.register(ns, !0);
|
|
5764
5764
|
}
|
|
5765
5765
|
constructor(t, e) {
|
|
5766
5766
|
if (super(t, e), this.options.hljs == null)
|
|
@@ -5810,16 +5810,16 @@ class dl extends Nt {
|
|
|
5810
5810
|
highlightBlot(t) {
|
|
5811
5811
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "plain";
|
|
5812
5812
|
if (e = this.languages[e] ? e : "plain", e === "plain")
|
|
5813
|
-
return
|
|
5813
|
+
return nn(t).split(`
|
|
5814
5814
|
`).reduce((n, i, o) => (o !== 0 && n.insert(`
|
|
5815
5815
|
`, {
|
|
5816
5816
|
[Y.blotName]: e
|
|
5817
5817
|
}), n.insert(i)), new S());
|
|
5818
5818
|
const s = this.quill.root.ownerDocument.createElement("div");
|
|
5819
|
-
return s.classList.add(Y.className), s.innerHTML = ba(this.options.hljs, e, t),
|
|
5819
|
+
return s.classList.add(Y.className), s.innerHTML = ba(this.options.hljs, e, t), Gr(this.quill.scroll, s, [(n, i) => {
|
|
5820
5820
|
const o = ss.value(n);
|
|
5821
5821
|
return o ? i.compose(new S().retain(i.length(), {
|
|
5822
|
-
[
|
|
5822
|
+
[Bt.blotName]: o
|
|
5823
5823
|
})) : i;
|
|
5824
5824
|
}], [(n, i) => n.data.split(`
|
|
5825
5825
|
`).reduce((o, a, u) => (u !== 0 && o.insert(`
|
|
@@ -5875,10 +5875,10 @@ dl.DEFAULTS = {
|
|
|
5875
5875
|
label: "SQL"
|
|
5876
5876
|
}]
|
|
5877
5877
|
};
|
|
5878
|
-
const
|
|
5878
|
+
const Qr = class extends K {
|
|
5879
5879
|
static create(t) {
|
|
5880
5880
|
const e = super.create();
|
|
5881
|
-
return t ? e.setAttribute("data-row", t) : e.setAttribute("data-row",
|
|
5881
|
+
return t ? e.setAttribute("data-row", t) : e.setAttribute("data-row", Zr()), e;
|
|
5882
5882
|
}
|
|
5883
5883
|
static formats(t) {
|
|
5884
5884
|
if (t.hasAttribute("data-row"))
|
|
@@ -5888,7 +5888,7 @@ const is = class is extends K {
|
|
|
5888
5888
|
return this.parent ? this.parent.children.indexOf(this) : -1;
|
|
5889
5889
|
}
|
|
5890
5890
|
format(t, e) {
|
|
5891
|
-
t ===
|
|
5891
|
+
t === Qr.blotName && e ? this.domNode.setAttribute("data-row", e) : super.format(t, e);
|
|
5892
5892
|
}
|
|
5893
5893
|
row() {
|
|
5894
5894
|
return this.parent;
|
|
@@ -5900,9 +5900,9 @@ const is = class is extends K {
|
|
|
5900
5900
|
return this.row() && this.row().table();
|
|
5901
5901
|
}
|
|
5902
5902
|
};
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
class
|
|
5903
|
+
let st = Qr;
|
|
5904
|
+
T(st, "blotName", "table"), T(st, "tagName", "TD");
|
|
5905
|
+
class Mt extends le {
|
|
5906
5906
|
checkMerge() {
|
|
5907
5907
|
if (super.checkMerge() && this.next.children.head != null) {
|
|
5908
5908
|
const t = this.children.head.formats(), e = this.children.tail.formats(), s = this.next.children.head.formats(), n = this.next.children.tail.formats();
|
|
@@ -5928,18 +5928,18 @@ class Ut extends ie {
|
|
|
5928
5928
|
return this.parent && this.parent.parent;
|
|
5929
5929
|
}
|
|
5930
5930
|
}
|
|
5931
|
-
T(
|
|
5932
|
-
class
|
|
5931
|
+
T(Mt, "blotName", "table-row"), T(Mt, "tagName", "TR");
|
|
5932
|
+
class qt extends le {
|
|
5933
5933
|
}
|
|
5934
|
-
T(
|
|
5935
|
-
class Oe extends
|
|
5934
|
+
T(qt, "blotName", "table-body"), T(qt, "tagName", "TBODY");
|
|
5935
|
+
class Oe extends le {
|
|
5936
5936
|
balanceCells() {
|
|
5937
|
-
const t = this.descendants(
|
|
5937
|
+
const t = this.descendants(Mt), e = t.reduce((s, n) => Math.max(n.children.length, s), 0);
|
|
5938
5938
|
t.forEach((s) => {
|
|
5939
5939
|
new Array(e - s.children.length).fill(0).forEach(() => {
|
|
5940
5940
|
let n;
|
|
5941
|
-
s.children.head != null && (n =
|
|
5942
|
-
const i = this.scroll.create(
|
|
5941
|
+
s.children.head != null && (n = st.formats(s.children.head.domNode));
|
|
5942
|
+
const i = this.scroll.create(st.blotName, n);
|
|
5943
5943
|
s.appendChild(i), i.optimize();
|
|
5944
5944
|
});
|
|
5945
5945
|
});
|
|
@@ -5948,26 +5948,26 @@ class Oe extends ie {
|
|
|
5948
5948
|
return this.rows().map((e) => e.children.at(t));
|
|
5949
5949
|
}
|
|
5950
5950
|
deleteColumn(t) {
|
|
5951
|
-
const [e] = this.descendant(
|
|
5951
|
+
const [e] = this.descendant(qt);
|
|
5952
5952
|
e == null || e.children.head == null || e.children.forEach((s) => {
|
|
5953
5953
|
const n = s.children.at(t);
|
|
5954
5954
|
n != null && n.remove();
|
|
5955
5955
|
});
|
|
5956
5956
|
}
|
|
5957
5957
|
insertColumn(t) {
|
|
5958
|
-
const [e] = this.descendant(
|
|
5958
|
+
const [e] = this.descendant(qt);
|
|
5959
5959
|
e == null || e.children.head == null || e.children.forEach((s) => {
|
|
5960
|
-
const n = s.children.at(t), i =
|
|
5960
|
+
const n = s.children.at(t), i = st.formats(s.children.head.domNode), o = this.scroll.create(st.blotName, i);
|
|
5961
5961
|
s.insertBefore(o, n);
|
|
5962
5962
|
});
|
|
5963
5963
|
}
|
|
5964
5964
|
insertRow(t) {
|
|
5965
|
-
const [e] = this.descendant(
|
|
5965
|
+
const [e] = this.descendant(qt);
|
|
5966
5966
|
if (e == null || e.children.head == null)
|
|
5967
5967
|
return;
|
|
5968
|
-
const s =
|
|
5968
|
+
const s = Zr(), n = this.scroll.create(Mt.blotName);
|
|
5969
5969
|
e.children.head.children.forEach(() => {
|
|
5970
|
-
const o = this.scroll.create(
|
|
5970
|
+
const o = this.scroll.create(st.blotName, s);
|
|
5971
5971
|
n.appendChild(o);
|
|
5972
5972
|
});
|
|
5973
5973
|
const i = e.children.at(t);
|
|
@@ -5979,18 +5979,18 @@ class Oe extends ie {
|
|
|
5979
5979
|
}
|
|
5980
5980
|
}
|
|
5981
5981
|
T(Oe, "blotName", "table-container"), T(Oe, "tagName", "TABLE");
|
|
5982
|
-
Oe.allowedChildren = [
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
function
|
|
5982
|
+
Oe.allowedChildren = [qt];
|
|
5983
|
+
qt.requiredContainer = Oe;
|
|
5984
|
+
qt.allowedChildren = [Mt];
|
|
5985
|
+
Mt.requiredContainer = qt;
|
|
5986
|
+
Mt.allowedChildren = [st];
|
|
5987
|
+
st.requiredContainer = Mt;
|
|
5988
|
+
function Zr() {
|
|
5989
5989
|
return `row-${Math.random().toString(36).slice(2, 6)}`;
|
|
5990
5990
|
}
|
|
5991
|
-
class ya extends
|
|
5991
|
+
class ya extends Et {
|
|
5992
5992
|
static register() {
|
|
5993
|
-
A.register(
|
|
5993
|
+
A.register(st), A.register(Mt), A.register(qt), A.register(Oe);
|
|
5994
5994
|
}
|
|
5995
5995
|
constructor() {
|
|
5996
5996
|
super(...arguments), this.listenBalanceCells();
|
|
@@ -6020,7 +6020,7 @@ class ya extends Nt {
|
|
|
6020
6020
|
if (t == null)
|
|
6021
6021
|
return [null, null, null, -1];
|
|
6022
6022
|
const [e, s] = this.quill.getLine(t.index);
|
|
6023
|
-
if (e == null || e.statics.blotName !==
|
|
6023
|
+
if (e == null || e.statics.blotName !== st.blotName)
|
|
6024
6024
|
return [null, null, null, -1];
|
|
6025
6025
|
const n = e.parent;
|
|
6026
6026
|
return [n.parent.parent, n, e, s];
|
|
@@ -6067,7 +6067,7 @@ class ya extends Nt {
|
|
|
6067
6067
|
const o = new Array(e).fill(`
|
|
6068
6068
|
`).join("");
|
|
6069
6069
|
return i.insert(o, {
|
|
6070
|
-
table:
|
|
6070
|
+
table: Zr()
|
|
6071
6071
|
});
|
|
6072
6072
|
}, new S().retain(s.index));
|
|
6073
6073
|
this.quill.updateContents(n, A.sources.USER), this.quill.setSelection(s.index, A.sources.SILENT), this.balanceTables();
|
|
@@ -6080,8 +6080,8 @@ class ya extends Nt {
|
|
|
6080
6080
|
});
|
|
6081
6081
|
}
|
|
6082
6082
|
}
|
|
6083
|
-
const
|
|
6084
|
-
class
|
|
6083
|
+
const ki = Dt("quill:toolbar");
|
|
6084
|
+
class Wr extends Et {
|
|
6085
6085
|
constructor(t, e) {
|
|
6086
6086
|
var s, n;
|
|
6087
6087
|
if (super(t, e), Array.isArray(this.options.container)) {
|
|
@@ -6090,7 +6090,7 @@ class Yr extends Nt {
|
|
|
6090
6090
|
} else
|
|
6091
6091
|
typeof this.options.container == "string" ? this.container = document.querySelector(this.options.container) : this.container = this.options.container;
|
|
6092
6092
|
if (!(this.container instanceof HTMLElement)) {
|
|
6093
|
-
|
|
6093
|
+
ki.error("Container required for toolbar", this.options);
|
|
6094
6094
|
return;
|
|
6095
6095
|
}
|
|
6096
6096
|
this.container.classList.add("ql-toolbar"), this.controls = [], this.handlers = {}, this.options.handlers && Object.keys(this.options.handlers).forEach((i) => {
|
|
@@ -6112,7 +6112,7 @@ class Yr extends Nt {
|
|
|
6112
6112
|
if (!e)
|
|
6113
6113
|
return;
|
|
6114
6114
|
if (e = e.slice(3), t.tagName === "BUTTON" && t.setAttribute("type", "button"), this.handlers[e] == null && this.quill.scroll.query(e) == null) {
|
|
6115
|
-
|
|
6115
|
+
ki.warn("ignoring attaching to nonexistent format", e, t);
|
|
6116
6116
|
return;
|
|
6117
6117
|
}
|
|
6118
6118
|
const s = t.tagName === "SELECT" ? "change" : "click";
|
|
@@ -6131,7 +6131,7 @@ class Yr extends Nt {
|
|
|
6131
6131
|
this.handlers[e].call(this, i);
|
|
6132
6132
|
else if (
|
|
6133
6133
|
// @ts-expect-error
|
|
6134
|
-
this.quill.scroll.query(e).prototype instanceof
|
|
6134
|
+
this.quill.scroll.query(e).prototype instanceof rt
|
|
6135
6135
|
) {
|
|
6136
6136
|
if (i = prompt(`Enter ${e}`), !i)
|
|
6137
6137
|
return;
|
|
@@ -6170,8 +6170,8 @@ class Yr extends Nt {
|
|
|
6170
6170
|
});
|
|
6171
6171
|
}
|
|
6172
6172
|
}
|
|
6173
|
-
|
|
6174
|
-
function
|
|
6173
|
+
Wr.DEFAULTS = {};
|
|
6174
|
+
function Ci(r, t, e) {
|
|
6175
6175
|
const s = document.createElement("button");
|
|
6176
6176
|
s.setAttribute("type", "button"), s.classList.add(`ql-${t}`), s.setAttribute("aria-pressed", "false"), e != null ? (s.value = e, s.setAttribute("aria-label", `${t}: ${e}`)) : s.setAttribute("aria-label", t), r.appendChild(s);
|
|
6177
6177
|
}
|
|
@@ -6180,10 +6180,10 @@ function va(r, t) {
|
|
|
6180
6180
|
const s = document.createElement("span");
|
|
6181
6181
|
s.classList.add("ql-formats"), e.forEach((n) => {
|
|
6182
6182
|
if (typeof n == "string")
|
|
6183
|
-
|
|
6183
|
+
Ci(s, n);
|
|
6184
6184
|
else {
|
|
6185
6185
|
const i = Object.keys(n)[0], o = n[i];
|
|
6186
|
-
Array.isArray(o) ? Ea(s, i, o) :
|
|
6186
|
+
Array.isArray(o) ? Ea(s, i, o) : Ci(s, i, o);
|
|
6187
6187
|
}
|
|
6188
6188
|
}), r.appendChild(s);
|
|
6189
6189
|
});
|
|
@@ -6195,7 +6195,7 @@ function Ea(r, t, e) {
|
|
|
6195
6195
|
n !== !1 ? i.setAttribute("value", String(n)) : i.setAttribute("selected", "selected"), s.appendChild(i);
|
|
6196
6196
|
}), r.appendChild(s);
|
|
6197
6197
|
}
|
|
6198
|
-
|
|
6198
|
+
Wr.DEFAULTS = {
|
|
6199
6199
|
container: null,
|
|
6200
6200
|
handlers: {
|
|
6201
6201
|
clean() {
|
|
@@ -6204,7 +6204,7 @@ Yr.DEFAULTS = {
|
|
|
6204
6204
|
if (r.length === 0) {
|
|
6205
6205
|
const t = this.quill.getFormat();
|
|
6206
6206
|
Object.keys(t).forEach((e) => {
|
|
6207
|
-
this.quill.scroll.query(e,
|
|
6207
|
+
this.quill.scroll.query(e, k.INLINE) != null && this.quill.format(e, !1, A.sources.USER);
|
|
6208
6208
|
});
|
|
6209
6209
|
} else
|
|
6210
6210
|
this.quill.removeFormat(r.index, r.length, A.sources.USER);
|
|
@@ -6231,7 +6231,7 @@ Yr.DEFAULTS = {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
}
|
|
6233
6233
|
};
|
|
6234
|
-
const Na = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', Aa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', xa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', wa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', Ta = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', La = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', qa = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', Sa = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', Oi = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', ka = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', Ca = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', _a = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', Oa = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', Ia = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', Ra = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ba = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ma = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', Da = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ua = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', Pa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', ja = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', $a = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', Ha = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', Fa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', za = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', Va = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', Ka = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', Ga = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', Za = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', Wa = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', Xa = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', Ya = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', Qa = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', us = {
|
|
6234
|
+
const Na = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>', Aa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>', xa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>', wa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>', Ta = '<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>', La = '<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>', qa = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>', Sa = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>', Oi = '<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>', _a = '<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>', ka = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>', Ca = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>', Oa = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>', Ia = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', Ra = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ba = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ma = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', Da = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', Ua = '<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', Pa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>', ja = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>', $a = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>', Ha = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>', Fa = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>', za = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>', Va = '<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>', Ka = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>', Ga = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', Za = '<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', Wa = '<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>', Xa = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>', Ya = '<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>', Qa = '<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>', as = {
|
|
6235
6235
|
align: {
|
|
6236
6236
|
"": Na,
|
|
6237
6237
|
center: Aa,
|
|
@@ -6244,10 +6244,10 @@ const Na = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="
|
|
|
6244
6244
|
clean: Sa,
|
|
6245
6245
|
code: Oi,
|
|
6246
6246
|
"code-block": Oi,
|
|
6247
|
-
color:
|
|
6247
|
+
color: _a,
|
|
6248
6248
|
direction: {
|
|
6249
|
-
"":
|
|
6250
|
-
rtl:
|
|
6249
|
+
"": ka,
|
|
6250
|
+
rtl: Ca
|
|
6251
6251
|
},
|
|
6252
6252
|
formula: Oa,
|
|
6253
6253
|
header: {
|
|
@@ -6283,7 +6283,7 @@ let Ii = 0;
|
|
|
6283
6283
|
function Ri(r, t) {
|
|
6284
6284
|
r.setAttribute(t, `${r.getAttribute(t) !== "true"}`);
|
|
6285
6285
|
}
|
|
6286
|
-
class
|
|
6286
|
+
class on {
|
|
6287
6287
|
constructor(t) {
|
|
6288
6288
|
this.select = t, this.container = document.createElement("span"), this.buildPicker(), this.select.style.display = "none", this.select.parentNode.insertBefore(this.container, this.select), this.label.addEventListener("mousedown", () => {
|
|
6289
6289
|
this.togglePicker();
|
|
@@ -6359,7 +6359,7 @@ class cn {
|
|
|
6359
6359
|
this.label.classList.toggle("ql-active", e);
|
|
6360
6360
|
}
|
|
6361
6361
|
}
|
|
6362
|
-
class gl extends
|
|
6362
|
+
class gl extends on {
|
|
6363
6363
|
constructor(t, e) {
|
|
6364
6364
|
super(t), this.label.innerHTML = e, this.container.classList.add("ql-color-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0, 7).forEach((s) => {
|
|
6365
6365
|
s.classList.add("ql-primary");
|
|
@@ -6375,7 +6375,7 @@ class gl extends cn {
|
|
|
6375
6375
|
s && (s.tagName === "line" ? s.style.stroke = n : s.style.fill = n);
|
|
6376
6376
|
}
|
|
6377
6377
|
}
|
|
6378
|
-
class pl extends
|
|
6378
|
+
class pl extends on {
|
|
6379
6379
|
constructor(t, e) {
|
|
6380
6380
|
super(t), this.container.classList.add("ql-icon-picker"), Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((s) => {
|
|
6381
6381
|
s.innerHTML = e[s.getAttribute("data-value") || ""];
|
|
@@ -6422,7 +6422,7 @@ class ml {
|
|
|
6422
6422
|
}
|
|
6423
6423
|
}
|
|
6424
6424
|
const ec = [!1, "center", "right", "justify"], sc = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], nc = [!1, "serif", "monospace"], rc = ["1", "2", "3", !1], ic = ["small", !1, "large", "huge"];
|
|
6425
|
-
class
|
|
6425
|
+
class fs extends Vt {
|
|
6426
6426
|
constructor(t, e) {
|
|
6427
6427
|
super(t, e);
|
|
6428
6428
|
const s = (n) => {
|
|
@@ -6465,7 +6465,7 @@ class gs extends _e {
|
|
|
6465
6465
|
const i = n.classList.contains("ql-background") ? "background" : "color";
|
|
6466
6466
|
return n.querySelector("option") == null && es(n, sc, i === "background" ? "#ffffff" : "#000000"), new gl(n, e[i]);
|
|
6467
6467
|
}
|
|
6468
|
-
return n.querySelector("option") == null && (n.classList.contains("ql-font") ? es(n, nc) : n.classList.contains("ql-header") ? es(n, rc) : n.classList.contains("ql-size") && es(n, ic)), new
|
|
6468
|
+
return n.querySelector("option") == null && (n.classList.contains("ql-font") ? es(n, nc) : n.classList.contains("ql-header") ? es(n, rc) : n.classList.contains("ql-size") && es(n, ic)), new on(n);
|
|
6469
6469
|
});
|
|
6470
6470
|
const s = () => {
|
|
6471
6471
|
this.pickers.forEach((n) => {
|
|
@@ -6475,7 +6475,7 @@ class gs extends _e {
|
|
|
6475
6475
|
this.quill.on(L.events.EDITOR_CHANGE, s);
|
|
6476
6476
|
}
|
|
6477
6477
|
}
|
|
6478
|
-
|
|
6478
|
+
fs.DEFAULTS = Zt({}, Vt.DEFAULTS, {
|
|
6479
6479
|
modules: {
|
|
6480
6480
|
toolbar: {
|
|
6481
6481
|
handlers: {
|
|
@@ -6582,7 +6582,7 @@ class yl extends bl {
|
|
|
6582
6582
|
const u = this.quill.getBounds(n);
|
|
6583
6583
|
u != null && this.position(u);
|
|
6584
6584
|
} else {
|
|
6585
|
-
const u = a[a.length - 1], h = this.quill.getIndex(u), g = Math.min(u.length() - 1, n.index + n.length - h), y = this.quill.getBounds(new
|
|
6585
|
+
const u = a[a.length - 1], h = this.quill.getIndex(u), g = Math.min(u.length() - 1, n.index + n.length - h), y = this.quill.getBounds(new ie(h, g));
|
|
6586
6586
|
y != null && this.position(y);
|
|
6587
6587
|
}
|
|
6588
6588
|
} else
|
|
@@ -6613,15 +6613,15 @@ class yl extends bl {
|
|
|
6613
6613
|
}
|
|
6614
6614
|
}
|
|
6615
6615
|
T(yl, "TEMPLATE", ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', "</div>"].join(""));
|
|
6616
|
-
class vl extends
|
|
6616
|
+
class vl extends fs {
|
|
6617
6617
|
constructor(t, e) {
|
|
6618
6618
|
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = oc), super(t, e), this.quill.container.classList.add("ql-bubble");
|
|
6619
6619
|
}
|
|
6620
6620
|
extendToolbar(t) {
|
|
6621
|
-
this.tooltip = new yl(this.quill, this.options.bounds), t.container != null && (this.tooltip.root.appendChild(t.container), this.buildButtons(t.container.querySelectorAll("button"),
|
|
6621
|
+
this.tooltip = new yl(this.quill, this.options.bounds), t.container != null && (this.tooltip.root.appendChild(t.container), this.buildButtons(t.container.querySelectorAll("button"), as), this.buildPickers(t.container.querySelectorAll("select"), as));
|
|
6622
6622
|
}
|
|
6623
6623
|
}
|
|
6624
|
-
vl.DEFAULTS =
|
|
6624
|
+
vl.DEFAULTS = Zt({}, fs.DEFAULTS, {
|
|
6625
6625
|
modules: {
|
|
6626
6626
|
toolbar: {
|
|
6627
6627
|
handlers: {
|
|
@@ -6656,10 +6656,10 @@ class El extends bl {
|
|
|
6656
6656
|
}), this.quill.on(L.events.SELECTION_CHANGE, (e, s, n) => {
|
|
6657
6657
|
if (e != null) {
|
|
6658
6658
|
if (e.length === 0 && n === L.sources.USER) {
|
|
6659
|
-
const [i, o] = this.quill.scroll.descendant(
|
|
6659
|
+
const [i, o] = this.quill.scroll.descendant(Gt, e.index);
|
|
6660
6660
|
if (i != null) {
|
|
6661
|
-
this.linkRange = new
|
|
6662
|
-
const a =
|
|
6661
|
+
this.linkRange = new ie(e.index - o, i.length());
|
|
6662
|
+
const a = Gt.formats(i.domNode);
|
|
6663
6663
|
this.preview.textContent = a, this.preview.setAttribute("href", a), this.show();
|
|
6664
6664
|
const u = this.quill.getBounds(this.linkRange);
|
|
6665
6665
|
u != null && this.position(u);
|
|
@@ -6676,12 +6676,12 @@ class El extends bl {
|
|
|
6676
6676
|
}
|
|
6677
6677
|
}
|
|
6678
6678
|
T(El, "TEMPLATE", ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join(""));
|
|
6679
|
-
class
|
|
6679
|
+
class Xr extends fs {
|
|
6680
6680
|
constructor(t, e) {
|
|
6681
6681
|
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = ac), super(t, e), this.quill.container.classList.add("ql-snow");
|
|
6682
6682
|
}
|
|
6683
6683
|
extendToolbar(t) {
|
|
6684
|
-
t.container != null && (t.container.classList.add("ql-snow"), this.buildButtons(t.container.querySelectorAll("button"),
|
|
6684
|
+
t.container != null && (t.container.classList.add("ql-snow"), this.buildButtons(t.container.querySelectorAll("button"), as), this.buildPickers(t.container.querySelectorAll("select"), as), this.tooltip = new El(this.quill, this.options.bounds), t.container.querySelector(".ql-link") && this.quill.keyboard.addBinding({
|
|
6685
6685
|
key: "k",
|
|
6686
6686
|
shortKey: !0
|
|
6687
6687
|
}, (e, s) => {
|
|
@@ -6689,7 +6689,7 @@ class Qr extends gs {
|
|
|
6689
6689
|
}));
|
|
6690
6690
|
}
|
|
6691
6691
|
}
|
|
6692
|
-
|
|
6692
|
+
Xr.DEFAULTS = Zt({}, fs.DEFAULTS, {
|
|
6693
6693
|
modules: {
|
|
6694
6694
|
toolbar: {
|
|
6695
6695
|
handlers: {
|
|
@@ -6720,8 +6720,8 @@ A.register({
|
|
|
6720
6720
|
"attributors/class/font": rl,
|
|
6721
6721
|
"attributors/class/size": ll,
|
|
6722
6722
|
"attributors/style/align": Qi,
|
|
6723
|
-
"attributors/style/background":
|
|
6724
|
-
"attributors/style/color":
|
|
6723
|
+
"attributors/style/background": Fr,
|
|
6724
|
+
"attributors/style/color": Hr,
|
|
6725
6725
|
"attributors/style/direction": sl,
|
|
6726
6726
|
"attributors/style/font": il,
|
|
6727
6727
|
"attributors/style/size": ol
|
|
@@ -6730,46 +6730,46 @@ A.register({
|
|
|
6730
6730
|
"formats/align": Yi,
|
|
6731
6731
|
"formats/direction": el,
|
|
6732
6732
|
"formats/indent": ma,
|
|
6733
|
-
"formats/background":
|
|
6734
|
-
"formats/color":
|
|
6733
|
+
"formats/background": Fr,
|
|
6734
|
+
"formats/color": Hr,
|
|
6735
6735
|
"formats/font": rl,
|
|
6736
6736
|
"formats/size": ll,
|
|
6737
|
-
"formats/blockquote":
|
|
6737
|
+
"formats/blockquote": Lr,
|
|
6738
6738
|
"formats/code-block": Y,
|
|
6739
|
-
"formats/header":
|
|
6740
|
-
"formats/list":
|
|
6741
|
-
"formats/bold":
|
|
6742
|
-
"formats/code":
|
|
6743
|
-
"formats/italic":
|
|
6744
|
-
"formats/link":
|
|
6739
|
+
"formats/header": qr,
|
|
6740
|
+
"formats/list": hs,
|
|
6741
|
+
"formats/bold": os,
|
|
6742
|
+
"formats/code": zr,
|
|
6743
|
+
"formats/italic": Sr,
|
|
6744
|
+
"formats/link": Gt,
|
|
6745
6745
|
"formats/script": _r,
|
|
6746
|
-
"formats/strike":
|
|
6747
|
-
"formats/underline":
|
|
6748
|
-
"formats/formula":
|
|
6749
|
-
"formats/image":
|
|
6750
|
-
"formats/video":
|
|
6746
|
+
"formats/strike": kr,
|
|
6747
|
+
"formats/underline": Cr,
|
|
6748
|
+
"formats/formula": Gs,
|
|
6749
|
+
"formats/image": Or,
|
|
6750
|
+
"formats/video": Zs,
|
|
6751
6751
|
"modules/syntax": dl,
|
|
6752
6752
|
"modules/table": ya,
|
|
6753
|
-
"modules/toolbar":
|
|
6753
|
+
"modules/toolbar": Wr,
|
|
6754
6754
|
"themes/bubble": vl,
|
|
6755
|
-
"themes/snow":
|
|
6756
|
-
"ui/icons":
|
|
6757
|
-
"ui/picker":
|
|
6755
|
+
"themes/snow": Xr,
|
|
6756
|
+
"ui/icons": as,
|
|
6757
|
+
"ui/picker": on,
|
|
6758
6758
|
"ui/icon-picker": pl,
|
|
6759
6759
|
"ui/color-picker": gl,
|
|
6760
6760
|
"ui/tooltip": ml
|
|
6761
6761
|
}, !0);
|
|
6762
|
-
class
|
|
6762
|
+
class Ir extends rn {
|
|
6763
6763
|
}
|
|
6764
|
-
T(
|
|
6765
|
-
class cc extends
|
|
6764
|
+
T(Ir, "blotName", "divider"), T(Ir, "tagName", "hr");
|
|
6765
|
+
class cc extends Xr {
|
|
6766
6766
|
// overwrite buildButtons method to prevent quill theme from building the buttons
|
|
6767
6767
|
buildButtons(t, e) {
|
|
6768
6768
|
}
|
|
6769
6769
|
}
|
|
6770
6770
|
A.register(
|
|
6771
6771
|
{
|
|
6772
|
-
"formats/divider":
|
|
6772
|
+
"formats/divider": Ir,
|
|
6773
6773
|
"themes/snow": cc
|
|
6774
6774
|
},
|
|
6775
6775
|
!0
|
|
@@ -6815,10 +6815,10 @@ const hc = [
|
|
|
6815
6815
|
setup(r, { emit: t }) {
|
|
6816
6816
|
const e = r, s = wl(), n = ti(null);
|
|
6817
6817
|
let i = null;
|
|
6818
|
-
const o =
|
|
6818
|
+
const o = $s(() => e.id || _l("stash-text-editor-")), a = ti(e.modelValue), u = $s(() => {
|
|
6819
6819
|
const b = e.controls.length ? e.controls : hc;
|
|
6820
6820
|
return Array.isArray(b[0]) ? d(b) : y(b);
|
|
6821
|
-
}), h =
|
|
6821
|
+
}), h = $s(() => ({ ...fc, ...e.handlers }));
|
|
6822
6822
|
function g(b, v) {
|
|
6823
6823
|
const E = dc[b];
|
|
6824
6824
|
if (!(!E && !v))
|
|
@@ -6837,7 +6837,7 @@ const hc = [
|
|
|
6837
6837
|
function d(b) {
|
|
6838
6838
|
return b.map((v) => y(v));
|
|
6839
6839
|
}
|
|
6840
|
-
const p =
|
|
6840
|
+
const p = $s(() => ({
|
|
6841
6841
|
addBottomSpace: e.addBottomSpace,
|
|
6842
6842
|
errorText: e.errorText,
|
|
6843
6843
|
hintText: e.hintText,
|
|
@@ -6877,9 +6877,9 @@ const hc = [
|
|
|
6877
6877
|
i && (b && b !== v ? t("update:model-value", b) : b || i.setContents([]));
|
|
6878
6878
|
}), Ll(() => {
|
|
6879
6879
|
i = null;
|
|
6880
|
-
}), (b, v) => (
|
|
6880
|
+
}), (b, v) => (Tt(), Qe(kl, ql(p.value, {
|
|
6881
6881
|
class: ["stash-text-editor", [
|
|
6882
|
-
|
|
6882
|
+
Ee(s).root,
|
|
6883
6883
|
{
|
|
6884
6884
|
"stash-text-editor--error": !!e.errorText,
|
|
6885
6885
|
"stash-text-editor--disabled": e.isDisabled,
|
|
@@ -6888,23 +6888,23 @@ const hc = [
|
|
|
6888
6888
|
]],
|
|
6889
6889
|
"data-test": "stash-text-editor"
|
|
6890
6890
|
}), {
|
|
6891
|
-
default:
|
|
6892
|
-
e.isReadOnly ?
|
|
6891
|
+
default: sr(() => [
|
|
6892
|
+
e.isReadOnly ? rr("", !0) : (Tt(), Je("div", {
|
|
6893
6893
|
key: 0,
|
|
6894
6894
|
id: `${o.value}-format-bar`,
|
|
6895
|
-
class: ts(["stash-text-editor__format-bar", [
|
|
6895
|
+
class: ts(["stash-text-editor__format-bar", [Ee(s)["format-bar-root"], { "!tw-border-x-red-500 !tw-border-t-red-500": !!e.errorText }]]),
|
|
6896
6896
|
"data-test": "stash-text-editor|format-bar",
|
|
6897
6897
|
role: "format-bar"
|
|
6898
6898
|
}, [
|
|
6899
|
-
(
|
|
6900
|
-
Array.isArray(E) ? (
|
|
6899
|
+
(Tt(!0), Je(nr, null, si(u.value, (E, w) => (Tt(), Je(nr, { key: w }, [
|
|
6900
|
+
Array.isArray(E) ? (Tt(), Je("div", {
|
|
6901
6901
|
key: 0,
|
|
6902
|
-
class: ts(["stash-text-editor__format-bar__group",
|
|
6902
|
+
class: ts(["stash-text-editor__format-bar__group", Ee(s)["format-bar-group"]]),
|
|
6903
6903
|
"data-test": "stash-text-editor|format-bar-group"
|
|
6904
6904
|
}, [
|
|
6905
|
-
(
|
|
6906
|
-
key: x.name +
|
|
6907
|
-
class: ts(["stash-text-editor__format-bar__control tw-rounded-none", [
|
|
6905
|
+
(Tt(!0), Je(nr, null, si(E, (x, _) => (Tt(), Qe(ni, {
|
|
6906
|
+
key: x.name + _,
|
|
6907
|
+
class: ts(["stash-text-editor__format-bar__control tw-rounded-none", [Ee(s)["format-bar-control"], `ql-${x.name}`]]),
|
|
6908
6908
|
"aria-label": x.value ? `${x.name}: ${x.value}` : `${x.name}`,
|
|
6909
6909
|
"data-test": `stash-text-editor|format-bar-${x.name}-grouped-control`,
|
|
6910
6910
|
disabled: e.isDisabled,
|
|
@@ -6912,18 +6912,18 @@ const hc = [
|
|
|
6912
6912
|
secondary: "",
|
|
6913
6913
|
icon: ""
|
|
6914
6914
|
}, {
|
|
6915
|
-
default:
|
|
6916
|
-
x.icon ? (
|
|
6915
|
+
default: sr(() => [
|
|
6916
|
+
x.icon ? (Tt(), Qe(ri, {
|
|
6917
6917
|
key: 0,
|
|
6918
6918
|
name: x.icon,
|
|
6919
6919
|
size: "dense"
|
|
6920
|
-
}, null, 8, ["name"])) :
|
|
6920
|
+
}, null, 8, ["name"])) : rr("", !0)
|
|
6921
6921
|
]),
|
|
6922
6922
|
_: 2
|
|
6923
6923
|
}, 1032, ["aria-label", "data-test", "class", "disabled", "value"]))), 128))
|
|
6924
|
-
], 2)) : (
|
|
6924
|
+
], 2)) : (Tt(), Qe(ni, {
|
|
6925
6925
|
key: 1,
|
|
6926
|
-
class: ts(["stash-text-editor__format-bar__control", [
|
|
6926
|
+
class: ts(["stash-text-editor__format-bar__control", [Ee(s)["format-bar-control"], `ql-${E.name}`]]),
|
|
6927
6927
|
"data-test": `stash-text-editor|format-bar-${E.name}-control`,
|
|
6928
6928
|
"aria-label": E.value ? `${E.name}: ${E.value}` : `${E.name}`,
|
|
6929
6929
|
disabled: e.isDisabled,
|
|
@@ -6931,12 +6931,12 @@ const hc = [
|
|
|
6931
6931
|
secondary: "",
|
|
6932
6932
|
icon: ""
|
|
6933
6933
|
}, {
|
|
6934
|
-
default:
|
|
6935
|
-
E.icon ? (
|
|
6934
|
+
default: sr(() => [
|
|
6935
|
+
E.icon ? (Tt(), Qe(ri, {
|
|
6936
6936
|
key: 0,
|
|
6937
6937
|
name: E.icon,
|
|
6938
6938
|
size: "dense"
|
|
6939
|
-
}, null, 8, ["name"])) :
|
|
6939
|
+
}, null, 8, ["name"])) : rr("", !0)
|
|
6940
6940
|
]),
|
|
6941
6941
|
_: 2
|
|
6942
6942
|
}, 1032, ["data-test", "aria-label", "class", "disabled", "value"]))
|
|
@@ -6947,7 +6947,7 @@ const hc = [
|
|
|
6947
6947
|
ref_key: "editorRef",
|
|
6948
6948
|
ref: n,
|
|
6949
6949
|
"data-test": "stash-text-editor|editor",
|
|
6950
|
-
class: ts(["stash-text-editor__content-container tw-rounded-b-[4px] tw-border !tw-border-t-0", [
|
|
6950
|
+
class: ts(["stash-text-editor__content-container tw-rounded-b-[4px] tw-border !tw-border-t-0", [Ee(s)["content-container"]]])
|
|
6951
6951
|
}, null, 10, pc)
|
|
6952
6952
|
]),
|
|
6953
6953
|
_: 1
|
|
@@ -6960,7 +6960,7 @@ const hc = [
|
|
|
6960
6960
|
"format-bar-control": "_format-bar-control_1d2m3_77"
|
|
6961
6961
|
}, vc = {
|
|
6962
6962
|
$style: yc
|
|
6963
|
-
}, jc = /* @__PURE__ */
|
|
6963
|
+
}, jc = /* @__PURE__ */ Cl(mc, [["__cssModules", vc]]);
|
|
6964
6964
|
export {
|
|
6965
6965
|
jc as default
|
|
6966
6966
|
};
|