@orchidui/dashboard 1.8.1-96 → 1.8.1-97
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/Dashboard/Card/OcCard.js +1 -1
- package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
- package/dist/{OcCard-B3SCzVwn.js → OcCard-D3be6IMj.js} +58 -54
- package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
- package/dist/{OcLottieAnimation-DeMoIDaX.js → OcLottieAnimation-BB7AK2AO.js} +62 -62
- package/dist/{QuillEditor-hFQ0MJZO.js → QuillEditor-DRwC0sgJ.js} +579 -556
- package/dist/index.js +4 -4
- package/package.json +3 -265
- package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +0 -295
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +0 -891
- package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +0 -68
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +0 -172
- package/dist/CollapsibleTrigger-fCarY5DJ.js +0 -154
- package/dist/Collection-COudIl-A.js +0 -55
- package/dist/ConfigProvider-7mV0D7Sp.js +0 -6
- package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +0 -68
- package/dist/DialogOverlay-Cj3UTjZ8.js +0 -309
- package/dist/DialogPortal-zAvO8zt4.js +0 -23
- package/dist/DialogTrigger-BIF1A4hk.js +0 -72
- package/dist/DismissableLayer-C7IJliOb.js +0 -151
- package/dist/FocusScope--pJ6bboI.js +0 -121
- package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +0 -92
- package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +0 -27
- package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +0 -51
- package/dist/ListboxItem-CjMk-mEX.js +0 -417
- package/dist/MenuSubTrigger-CUrxnPwO.js +0 -845
- package/dist/OcCodeBlock-CBdVqav7.js +0 -37
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +0 -394
- package/dist/PopperContent-BT3Svcc3.js +0 -1465
- package/dist/Presence-CxfTrw6l.js +0 -133
- package/dist/Primitive-B3twiLO1.js +0 -44
- package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +0 -297
- package/dist/RovingFocusGroup-0OHdFQl0.js +0 -92
- package/dist/RovingFocusItem-s7Ug6oxb.js +0 -82
- package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +0 -1255
- package/dist/Separator-DRam5i7g.js +0 -54
- package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +0 -27
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +0 -17
- package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +0 -135
- package/dist/Teleport-DnUewq5H.js +0 -25
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +0 -27
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +0 -426
- package/dist/VisuallyHidden-DMAU4heD.js +0 -41
- package/dist/VisuallyHiddenInput-DvJnsVHt.js +0 -59
- package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/array-CqVTtuYm.js +0 -6
- package/dist/arrays-4jDZqbdb.js +0 -20
- package/dist/check-C2tzJ0Gk.js +0 -11
- package/dist/chevron-down-CnpAlizg.js +0 -13
- package/dist/chevron-left-BOwFasou.js +0 -13
- package/dist/chevron-right-D308801z.js +0 -13
- package/dist/circle-A-6NpYiX.js +0 -13
- package/dist/clamp-BL1Rb24G.js +0 -22
- package/dist/constant-CuDQlTIy.js +0 -3433
- package/dist/createContext-CZEfaSVa.js +0 -17
- package/dist/createLucideIcon-eXqDwUWj.js +0 -71
- package/dist/ellipsis-CEG9G7eN.js +0 -15
- package/dist/getActiveElement-B-HWdUIb.js +0 -11
- package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +0 -11
- package/dist/index-B3LW8uSH.js +0 -133
- package/dist/index-BIlpXuWX.js +0 -3430
- package/dist/index-BlGEiPHj.js +0 -1246
- package/dist/index-BwPb_idr.js +0 -574
- package/dist/index-C9julNQm.js +0 -173
- package/dist/index-C_aI-Wfj.js +0 -34
- package/dist/index-CumjCvqB.js +0 -5703
- package/dist/index-LqWMCtOd.js +0 -809
- package/dist/index-OpE2oGce.js +0 -110
- package/dist/isValueEqualOrExist-BDSMUv8t.js +0 -8
- package/dist/lib/utils.js +0 -5
- package/dist/nullish-CjWwlQS3.js +0 -6
- package/dist/ohash.D__AXeF1-DX2n0b2C.js +0 -106
- package/dist/plus-CgluTYQY.js +0 -14
- package/dist/text-zwICaAnx.js +0 -743
- package/dist/ui/accordion/index.js +0 -7
- package/dist/ui/alert/index.js +0 -64
- package/dist/ui/alert-dialog/index.js +0 -356
- package/dist/ui/aspect-ratio/index.js +0 -50
- package/dist/ui/auto-form/constant.js +0 -5
- package/dist/ui/auto-form/dependencies.js +0 -61
- package/dist/ui/auto-form/index.js +0 -227
- package/dist/ui/auto-form/interface.js +0 -4
- package/dist/ui/auto-form/utils.js +0 -89
- package/dist/ui/avatar/index.js +0 -189
- package/dist/ui/badge/index.js +0 -37
- package/dist/ui/breadcrumb/index.js +0 -126
- package/dist/ui/button/index.js +0 -55
- package/dist/ui/calendar/index.js +0 -15
- package/dist/ui/card/index.js +0 -38
- package/dist/ui/carousel/index.js +0 -174
- package/dist/ui/carousel/interface.js +0 -1
- package/dist/ui/carousel/useCarousel.js +0 -1288
- package/dist/ui/chart/index.js +0 -8
- package/dist/ui/chart/interface.js +0 -1
- package/dist/ui/chart-area/index.js +0 -331
- package/dist/ui/chart-bar/index.js +0 -490
- package/dist/ui/chart-donut/index.js +0 -509
- package/dist/ui/chart-line/index.js +0 -110
- package/dist/ui/checkbox/index.js +0 -4
- package/dist/ui/collapsible/index.js +0 -60
- package/dist/ui/combobox/index.js +0 -877
- package/dist/ui/command/index.js +0 -323
- package/dist/ui/context-menu/index.js +0 -734
- package/dist/ui/dialog/index.js +0 -169
- package/dist/ui/drawer/index.js +0 -971
- package/dist/ui/dropdown-menu/index.js +0 -723
- package/dist/ui/form/index.js +0 -13
- package/dist/ui/form/injectionKeys.js +0 -4
- package/dist/ui/form/useFormField.js +0 -25
- package/dist/ui/hover-card/index.js +0 -331
- package/dist/ui/input/index.js +0 -4
- package/dist/ui/label/index.js +0 -4
- package/dist/ui/menubar/index.js +0 -862
- package/dist/ui/navigation-menu/index.js +0 -873
- package/dist/ui/number-field/index.js +0 -682
- package/dist/ui/pagination/index.js +0 -444
- package/dist/ui/pin-input/index.js +0 -308
- package/dist/ui/popover/index.js +0 -6
- package/dist/ui/progress/index.js +0 -137
- package/dist/ui/radio-group/index.js +0 -5
- package/dist/ui/range-calendar/index.js +0 -986
- package/dist/ui/resizable/index.js +0 -1432
- package/dist/ui/scroll-area/index.js +0 -775
- package/dist/ui/select/index.js +0 -135
- package/dist/ui/separator/index.js +0 -4
- package/dist/ui/sheet/index.js +0 -188
- package/dist/ui/sidebar/index.js +0 -652
- package/dist/ui/sidebar/utils.js +0 -12
- package/dist/ui/skeleton/index.js +0 -4
- package/dist/ui/slider/index.js +0 -478
- package/dist/ui/sonner/index.js +0 -892
- package/dist/ui/stepper/index.js +0 -442
- package/dist/ui/switch/index.js +0 -4
- package/dist/ui/table/index.js +0 -153
- package/dist/ui/tabs/index.js +0 -280
- package/dist/ui/tags-input/index.js +0 -449
- package/dist/ui/textarea/index.js +0 -4
- package/dist/ui/toast/index.js +0 -738
- package/dist/ui/toast/use-toast.js +0 -85
- package/dist/ui/toggle/index.js +0 -6
- package/dist/ui/toggle-group/index.js +0 -112
- package/dist/ui/tooltip/index.js +0 -29
- package/dist/useArrowNavigation-BRMPveaB.js +0 -49
- package/dist/useBodyScrollLock-CazCRZjZ.js +0 -153
- package/dist/useDirection-C3C_TLKm.js +0 -14
- package/dist/useFocusGuards-CyjC9cG9.js +0 -26
- package/dist/useFormControl-CFVC51Lp.js +0 -11
- package/dist/useForwardExpose-DZT6mL_U.js +0 -37
- package/dist/useForwardPropsEmits-0XKBv1pB.js +0 -33
- package/dist/useGraceArea-D7-GP1ii.js +0 -137
- package/dist/useId-reAg216X.js +0 -13
- package/dist/useKbd-BJNupnml.js +0 -41
- package/dist/useLocale-BfU0LC8Z.js +0 -14
- package/dist/useNonce-C1ZOgOp5.js +0 -14
- package/dist/usePrimitiveElement-BjwUvHih.js +0 -15
- package/dist/useSingleOrMultipleValue-BkTAaaJB.js +0 -43
- package/dist/useSize-BnyQ8FZF.js +0 -37
- package/dist/useTypeahead-oSidjyFF.js +0 -40
- package/dist/utils-DKNaYMZh.js +0 -57
- package/dist/utils-Dx9la83v.js +0 -35
- package/dist/utils-DxQ_ywGa.js +0 -55
- package/dist/utils-SFgRDk1R.js +0 -2748
- package/dist/utils-W-UiqiPE.js +0 -1869
- package/dist/vee-validate-Cf8JDJ_k.js +0 -2232
- package/dist/x-Cl6YllUK.js +0 -14
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
var Vo = Object.defineProperty;
|
|
2
2
|
var Go = (r, t, e) => t in r ? Vo(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var X = (r, t, e) => Go(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var t = Jo.call(r, Yn), e = r[Yn];
|
|
4
|
+
import { defineComponent as Ko, h as Wo, onMounted as Zo, onBeforeUnmount as Xo, ref as qi, watch as Es, nextTick as _i } from "vue";
|
|
5
|
+
var Dl = typeof global == "object" && global && global.Object === Object && global, Yo = typeof self == "object" && self && self.Object === Object && self, Be = Dl || Yo || Function("return this")(), an = Be.Symbol, jl = Object.prototype, Qo = jl.hasOwnProperty, Jo = jl.toString, Yn = an ? an.toStringTag : void 0;
|
|
6
|
+
function ta(r) {
|
|
7
|
+
var t = Qo.call(r, Yn), e = r[Yn];
|
|
9
8
|
try {
|
|
10
9
|
r[Yn] = void 0;
|
|
11
10
|
var n = !0;
|
|
12
11
|
} catch {
|
|
13
12
|
}
|
|
14
|
-
var s =
|
|
13
|
+
var s = Jo.call(r);
|
|
15
14
|
return n && (t ? r[Yn] = e : delete r[Yn]), s;
|
|
16
15
|
}
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
return
|
|
16
|
+
var ea = Object.prototype, na = ea.toString;
|
|
17
|
+
function ra(r) {
|
|
18
|
+
return na.call(r);
|
|
20
19
|
}
|
|
21
|
-
var
|
|
20
|
+
var sa = "[object Null]", ia = "[object Undefined]", Ii = an ? an.toStringTag : void 0;
|
|
22
21
|
function Fn(r) {
|
|
23
|
-
return r == null ? r === void 0 ?
|
|
22
|
+
return r == null ? r === void 0 ? ia : sa : Ii && Ii in Object(r) ? ta(r) : ra(r);
|
|
24
23
|
}
|
|
25
24
|
function Ge(r) {
|
|
26
25
|
return r != null && typeof r == "object";
|
|
@@ -33,25 +32,25 @@ function un(r) {
|
|
|
33
32
|
function Pl(r) {
|
|
34
33
|
return r;
|
|
35
34
|
}
|
|
36
|
-
var
|
|
37
|
-
function
|
|
35
|
+
var la = "[object AsyncFunction]", oa = "[object Function]", aa = "[object GeneratorFunction]", ca = "[object Proxy]";
|
|
36
|
+
function ci(r) {
|
|
38
37
|
if (!un(r))
|
|
39
38
|
return !1;
|
|
40
39
|
var t = Fn(r);
|
|
41
|
-
return t ==
|
|
40
|
+
return t == oa || t == aa || t == la || t == ca;
|
|
42
41
|
}
|
|
43
42
|
var Ts = Be["__core-js_shared__"], Ri = function() {
|
|
44
43
|
var r = /[^.]+$/.exec(Ts && Ts.keys && Ts.keys.IE_PROTO || "");
|
|
45
44
|
return r ? "Symbol(src)_1." + r : "";
|
|
46
45
|
}();
|
|
47
|
-
function
|
|
46
|
+
function ua(r) {
|
|
48
47
|
return !!Ri && Ri in r;
|
|
49
48
|
}
|
|
50
|
-
var
|
|
49
|
+
var ha = Function.prototype, da = ha.toString;
|
|
51
50
|
function vn(r) {
|
|
52
51
|
if (r != null) {
|
|
53
52
|
try {
|
|
54
|
-
return
|
|
53
|
+
return da.call(r);
|
|
55
54
|
} catch {
|
|
56
55
|
}
|
|
57
56
|
try {
|
|
@@ -61,36 +60,36 @@ function vn(r) {
|
|
|
61
60
|
}
|
|
62
61
|
return "";
|
|
63
62
|
}
|
|
64
|
-
var
|
|
65
|
-
"^" +
|
|
63
|
+
var fa = /[\\^$.*+?()[\]{}|]/g, pa = /^\[object .+?Constructor\]$/, ga = Function.prototype, ma = Object.prototype, ba = ga.toString, ya = ma.hasOwnProperty, va = RegExp(
|
|
64
|
+
"^" + ba.call(ya).replace(fa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
66
65
|
);
|
|
67
|
-
function
|
|
68
|
-
if (!un(r) ||
|
|
66
|
+
function wa(r) {
|
|
67
|
+
if (!un(r) || ua(r))
|
|
69
68
|
return !1;
|
|
70
|
-
var t =
|
|
69
|
+
var t = ci(r) ? va : pa;
|
|
71
70
|
return t.test(vn(r));
|
|
72
71
|
}
|
|
73
|
-
function
|
|
72
|
+
function xa(r, t) {
|
|
74
73
|
return r == null ? void 0 : r[t];
|
|
75
74
|
}
|
|
76
75
|
function wn(r, t) {
|
|
77
|
-
var e =
|
|
78
|
-
return
|
|
76
|
+
var e = xa(r, t);
|
|
77
|
+
return wa(e) ? e : void 0;
|
|
79
78
|
}
|
|
80
|
-
var Us = wn(Be, "WeakMap"),
|
|
79
|
+
var Us = wn(Be, "WeakMap"), Mi = Object.create, Na = /* @__PURE__ */ function() {
|
|
81
80
|
function r() {
|
|
82
81
|
}
|
|
83
82
|
return function(t) {
|
|
84
83
|
if (!un(t))
|
|
85
84
|
return {};
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
85
|
+
if (Mi)
|
|
86
|
+
return Mi(t);
|
|
88
87
|
r.prototype = t;
|
|
89
88
|
var e = new r();
|
|
90
89
|
return r.prototype = void 0, e;
|
|
91
90
|
};
|
|
92
91
|
}();
|
|
93
|
-
function
|
|
92
|
+
function Aa(r, t, e) {
|
|
94
93
|
switch (e.length) {
|
|
95
94
|
case 0:
|
|
96
95
|
return r.call(t);
|
|
@@ -103,26 +102,26 @@ function Ea(r, t, e) {
|
|
|
103
102
|
}
|
|
104
103
|
return r.apply(t, e);
|
|
105
104
|
}
|
|
106
|
-
function
|
|
105
|
+
function Ea(r, t) {
|
|
107
106
|
var e = -1, n = r.length;
|
|
108
107
|
for (t || (t = Array(n)); ++e < n; )
|
|
109
108
|
t[e] = r[e];
|
|
110
109
|
return t;
|
|
111
110
|
}
|
|
112
|
-
var
|
|
113
|
-
function
|
|
111
|
+
var Ta = 800, Ca = 16, Sa = Date.now;
|
|
112
|
+
function La(r) {
|
|
114
113
|
var t = 0, e = 0;
|
|
115
114
|
return function() {
|
|
116
|
-
var n =
|
|
115
|
+
var n = Sa(), s = Ca - (n - e);
|
|
117
116
|
if (e = n, s > 0) {
|
|
118
|
-
if (++t >=
|
|
117
|
+
if (++t >= Ta)
|
|
119
118
|
return arguments[0];
|
|
120
119
|
} else
|
|
121
120
|
t = 0;
|
|
122
121
|
return r.apply(void 0, arguments);
|
|
123
122
|
};
|
|
124
123
|
}
|
|
125
|
-
function
|
|
124
|
+
function Oa(r) {
|
|
126
125
|
return function() {
|
|
127
126
|
return r;
|
|
128
127
|
};
|
|
@@ -133,25 +132,25 @@ var Hr = function() {
|
|
|
133
132
|
return r({}, "", {}), r;
|
|
134
133
|
} catch {
|
|
135
134
|
}
|
|
136
|
-
}(),
|
|
135
|
+
}(), qa = Hr ? function(r, t) {
|
|
137
136
|
return Hr(r, "toString", {
|
|
138
137
|
configurable: !0,
|
|
139
138
|
enumerable: !1,
|
|
140
|
-
value:
|
|
139
|
+
value: Oa(t),
|
|
141
140
|
writable: !0
|
|
142
141
|
});
|
|
143
|
-
} : Pl,
|
|
144
|
-
function
|
|
142
|
+
} : Pl, _a = La(qa);
|
|
143
|
+
function Ia(r, t) {
|
|
145
144
|
for (var e = -1, n = r == null ? 0 : r.length; ++e < n && t(r[e], e, r) !== !1; )
|
|
146
145
|
;
|
|
147
146
|
return r;
|
|
148
147
|
}
|
|
149
|
-
var
|
|
148
|
+
var Ra = 9007199254740991, Ma = /^(?:0|[1-9]\d*)$/;
|
|
150
149
|
function Ul(r, t) {
|
|
151
150
|
var e = typeof r;
|
|
152
|
-
return t = t ??
|
|
151
|
+
return t = t ?? Ra, !!t && (e == "number" || e != "symbol" && Ma.test(r)) && r > -1 && r % 1 == 0 && r < t;
|
|
153
152
|
}
|
|
154
|
-
function
|
|
153
|
+
function ui(r, t, e) {
|
|
155
154
|
t == "__proto__" && Hr ? Hr(r, t, {
|
|
156
155
|
configurable: !0,
|
|
157
156
|
enumerable: !0,
|
|
@@ -162,101 +161,101 @@ function hi(r, t, e) {
|
|
|
162
161
|
function fr(r, t) {
|
|
163
162
|
return r === t || r !== r && t !== t;
|
|
164
163
|
}
|
|
165
|
-
var
|
|
164
|
+
var ka = Object.prototype, Ba = ka.hasOwnProperty;
|
|
166
165
|
function $l(r, t, e) {
|
|
167
166
|
var n = r[t];
|
|
168
|
-
(!(
|
|
167
|
+
(!(Ba.call(r, t) && fr(n, e)) || e === void 0 && !(t in r)) && ui(r, t, e);
|
|
169
168
|
}
|
|
170
|
-
function
|
|
169
|
+
function Da(r, t, e, n) {
|
|
171
170
|
var s = !e;
|
|
172
171
|
e || (e = {});
|
|
173
172
|
for (var i = -1, o = t.length; ++i < o; ) {
|
|
174
173
|
var a = t[i], h = void 0;
|
|
175
|
-
h === void 0 && (h = r[a]), s ?
|
|
174
|
+
h === void 0 && (h = r[a]), s ? ui(e, a, h) : $l(e, a, h);
|
|
176
175
|
}
|
|
177
176
|
return e;
|
|
178
177
|
}
|
|
179
|
-
var
|
|
180
|
-
function
|
|
181
|
-
return t =
|
|
182
|
-
for (var n = arguments, s = -1, i =
|
|
178
|
+
var ki = Math.max;
|
|
179
|
+
function ja(r, t, e) {
|
|
180
|
+
return t = ki(t === void 0 ? r.length - 1 : t, 0), function() {
|
|
181
|
+
for (var n = arguments, s = -1, i = ki(n.length - t, 0), o = Array(i); ++s < i; )
|
|
183
182
|
o[s] = n[t + s];
|
|
184
183
|
s = -1;
|
|
185
184
|
for (var a = Array(t + 1); ++s < t; )
|
|
186
185
|
a[s] = n[s];
|
|
187
|
-
return a[t] = e(o),
|
|
186
|
+
return a[t] = e(o), Aa(r, this, a);
|
|
188
187
|
};
|
|
189
188
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
189
|
+
function Pa(r, t) {
|
|
190
|
+
return _a(ja(r, t, Pl), r + "");
|
|
192
191
|
}
|
|
193
|
-
var
|
|
192
|
+
var Ua = 9007199254740991;
|
|
194
193
|
function Hl(r) {
|
|
195
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <=
|
|
194
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ua;
|
|
196
195
|
}
|
|
197
196
|
function Gr(r) {
|
|
198
|
-
return r != null && Hl(r.length) && !
|
|
197
|
+
return r != null && Hl(r.length) && !ci(r);
|
|
199
198
|
}
|
|
200
|
-
function
|
|
199
|
+
function $a(r, t, e) {
|
|
201
200
|
if (!un(e))
|
|
202
201
|
return !1;
|
|
203
202
|
var n = typeof t;
|
|
204
203
|
return (n == "number" ? Gr(e) && Ul(t, e.length) : n == "string" && t in e) ? fr(e[t], r) : !1;
|
|
205
204
|
}
|
|
206
|
-
function
|
|
207
|
-
return
|
|
205
|
+
function Ha(r) {
|
|
206
|
+
return Pa(function(t, e) {
|
|
208
207
|
var n = -1, s = e.length, i = s > 1 ? e[s - 1] : void 0, o = s > 2 ? e[2] : void 0;
|
|
209
|
-
for (i = r.length > 3 && typeof i == "function" ? (s--, i) : void 0, o &&
|
|
208
|
+
for (i = r.length > 3 && typeof i == "function" ? (s--, i) : void 0, o && $a(e[0], e[1], o) && (i = s < 3 ? void 0 : i, s = 1), t = Object(t); ++n < s; ) {
|
|
210
209
|
var a = e[n];
|
|
211
210
|
a && r(t, a, n, i);
|
|
212
211
|
}
|
|
213
212
|
return t;
|
|
214
213
|
});
|
|
215
214
|
}
|
|
216
|
-
var
|
|
217
|
-
function
|
|
218
|
-
var t = r && r.constructor, e = typeof t == "function" && t.prototype ||
|
|
215
|
+
var za = Object.prototype;
|
|
216
|
+
function hi(r) {
|
|
217
|
+
var t = r && r.constructor, e = typeof t == "function" && t.prototype || za;
|
|
219
218
|
return r === e;
|
|
220
219
|
}
|
|
221
|
-
function
|
|
220
|
+
function Fa(r, t) {
|
|
222
221
|
for (var e = -1, n = Array(r); ++e < r; )
|
|
223
222
|
n[e] = t(e);
|
|
224
223
|
return n;
|
|
225
224
|
}
|
|
226
|
-
var
|
|
225
|
+
var Va = "[object Arguments]";
|
|
227
226
|
function Bi(r) {
|
|
228
|
-
return Ge(r) && Fn(r) ==
|
|
227
|
+
return Ge(r) && Fn(r) == Va;
|
|
229
228
|
}
|
|
230
|
-
var zl = Object.prototype,
|
|
229
|
+
var zl = Object.prototype, Ga = zl.hasOwnProperty, Ka = zl.propertyIsEnumerable, $s = Bi(/* @__PURE__ */ function() {
|
|
231
230
|
return arguments;
|
|
232
231
|
}()) ? Bi : function(r) {
|
|
233
|
-
return Ge(r) &&
|
|
232
|
+
return Ge(r) && Ga.call(r, "callee") && !Ka.call(r, "callee");
|
|
234
233
|
};
|
|
235
|
-
function
|
|
234
|
+
function Wa() {
|
|
236
235
|
return !1;
|
|
237
236
|
}
|
|
238
|
-
var Fl = typeof exports == "object" && exports && !exports.nodeType && exports, Di = Fl && typeof module == "object" && module && !module.nodeType && module,
|
|
239
|
-
_t[fc] = _t[pc] = _t[gc] = _t[mc] = _t[bc] = _t[yc] = _t[vc] = _t[wc] =
|
|
240
|
-
_t[Qa] = _t[
|
|
241
|
-
function
|
|
237
|
+
var Fl = typeof exports == "object" && exports && !exports.nodeType && exports, Di = Fl && typeof module == "object" && module && !module.nodeType && module, Za = Di && Di.exports === Fl, ji = Za ? Be.Buffer : void 0, Xa = ji ? ji.isBuffer : void 0, lr = Xa || Wa, Ya = "[object Arguments]", Qa = "[object Array]", Ja = "[object Boolean]", tc = "[object Date]", ec = "[object Error]", nc = "[object Function]", rc = "[object Map]", sc = "[object Number]", ic = "[object Object]", lc = "[object RegExp]", oc = "[object Set]", ac = "[object String]", cc = "[object WeakMap]", uc = "[object ArrayBuffer]", hc = "[object DataView]", dc = "[object Float32Array]", fc = "[object Float64Array]", pc = "[object Int8Array]", gc = "[object Int16Array]", mc = "[object Int32Array]", bc = "[object Uint8Array]", yc = "[object Uint8ClampedArray]", vc = "[object Uint16Array]", wc = "[object Uint32Array]", _t = {};
|
|
238
|
+
_t[dc] = _t[fc] = _t[pc] = _t[gc] = _t[mc] = _t[bc] = _t[yc] = _t[vc] = _t[wc] = !0;
|
|
239
|
+
_t[Ya] = _t[Qa] = _t[uc] = _t[Ja] = _t[hc] = _t[tc] = _t[ec] = _t[nc] = _t[rc] = _t[sc] = _t[ic] = _t[lc] = _t[oc] = _t[ac] = _t[cc] = !1;
|
|
240
|
+
function xc(r) {
|
|
242
241
|
return Ge(r) && Hl(r.length) && !!_t[Fn(r)];
|
|
243
242
|
}
|
|
244
|
-
function
|
|
243
|
+
function di(r) {
|
|
245
244
|
return function(t) {
|
|
246
245
|
return r(t);
|
|
247
246
|
};
|
|
248
247
|
}
|
|
249
|
-
var Vl = typeof exports == "object" && exports && !exports.nodeType && exports, nr = Vl && typeof module == "object" && module && !module.nodeType && module,
|
|
248
|
+
var Vl = typeof exports == "object" && exports && !exports.nodeType && exports, nr = Vl && typeof module == "object" && module && !module.nodeType && module, Nc = nr && nr.exports === Vl, Cs = Nc && Dl.process, Pn = function() {
|
|
250
249
|
try {
|
|
251
250
|
var r = nr && nr.require && nr.require("util").types;
|
|
252
251
|
return r || Cs && Cs.binding && Cs.binding("util");
|
|
253
252
|
} catch {
|
|
254
253
|
}
|
|
255
|
-
}(), Pi = Pn && Pn.isTypedArray,
|
|
254
|
+
}(), Pi = Pn && Pn.isTypedArray, fi = Pi ? di(Pi) : xc, Ac = Object.prototype, Ec = Ac.hasOwnProperty;
|
|
256
255
|
function Gl(r, t) {
|
|
257
|
-
var e = bn(r), n = !e && $s(r), s = !e && !n && lr(r), i = !e && !n && !s &&
|
|
256
|
+
var e = bn(r), n = !e && $s(r), s = !e && !n && lr(r), i = !e && !n && !s && fi(r), o = e || n || s || i, a = o ? Fa(r.length, String) : [], h = a.length;
|
|
258
257
|
for (var d in r)
|
|
259
|
-
(t ||
|
|
258
|
+
(t || Ec.call(r, d)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
260
259
|
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
261
260
|
s && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
262
261
|
i && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
@@ -268,63 +267,63 @@ function Kl(r, t) {
|
|
|
268
267
|
return r(t(e));
|
|
269
268
|
};
|
|
270
269
|
}
|
|
271
|
-
var
|
|
272
|
-
function
|
|
273
|
-
if (!
|
|
274
|
-
return
|
|
270
|
+
var Tc = Kl(Object.keys, Object), Cc = Object.prototype, Sc = Cc.hasOwnProperty;
|
|
271
|
+
function Lc(r) {
|
|
272
|
+
if (!hi(r))
|
|
273
|
+
return Tc(r);
|
|
275
274
|
var t = [];
|
|
276
275
|
for (var e in Object(r))
|
|
277
|
-
|
|
276
|
+
Sc.call(r, e) && e != "constructor" && t.push(e);
|
|
278
277
|
return t;
|
|
279
278
|
}
|
|
280
|
-
function
|
|
281
|
-
return Gr(r) ? Gl(r) :
|
|
279
|
+
function Oc(r) {
|
|
280
|
+
return Gr(r) ? Gl(r) : Lc(r);
|
|
282
281
|
}
|
|
283
|
-
function
|
|
282
|
+
function qc(r) {
|
|
284
283
|
var t = [];
|
|
285
284
|
if (r != null)
|
|
286
285
|
for (var e in Object(r))
|
|
287
286
|
t.push(e);
|
|
288
287
|
return t;
|
|
289
288
|
}
|
|
290
|
-
var
|
|
291
|
-
function
|
|
289
|
+
var _c = Object.prototype, Ic = _c.hasOwnProperty;
|
|
290
|
+
function Rc(r) {
|
|
292
291
|
if (!un(r))
|
|
293
|
-
return
|
|
294
|
-
var t =
|
|
292
|
+
return qc(r);
|
|
293
|
+
var t = hi(r), e = [];
|
|
295
294
|
for (var n in r)
|
|
296
|
-
n == "constructor" && (t || !
|
|
295
|
+
n == "constructor" && (t || !Ic.call(r, n)) || e.push(n);
|
|
297
296
|
return e;
|
|
298
297
|
}
|
|
299
298
|
function Wl(r) {
|
|
300
|
-
return Gr(r) ? Gl(r, !0) :
|
|
299
|
+
return Gr(r) ? Gl(r, !0) : Rc(r);
|
|
301
300
|
}
|
|
302
301
|
var or = wn(Object, "create");
|
|
303
302
|
function Mc() {
|
|
304
303
|
this.__data__ = or ? or(null) : {}, this.size = 0;
|
|
305
304
|
}
|
|
306
|
-
function
|
|
305
|
+
function kc(r) {
|
|
307
306
|
var t = this.has(r) && delete this.__data__[r];
|
|
308
307
|
return this.size -= t ? 1 : 0, t;
|
|
309
308
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
309
|
+
var Bc = "__lodash_hash_undefined__", Dc = Object.prototype, jc = Dc.hasOwnProperty;
|
|
310
|
+
function Pc(r) {
|
|
312
311
|
var t = this.__data__;
|
|
313
312
|
if (or) {
|
|
314
313
|
var e = t[r];
|
|
315
|
-
return e ===
|
|
314
|
+
return e === Bc ? void 0 : e;
|
|
316
315
|
}
|
|
317
|
-
return
|
|
316
|
+
return jc.call(t, r) ? t[r] : void 0;
|
|
318
317
|
}
|
|
319
|
-
var
|
|
320
|
-
function
|
|
318
|
+
var Uc = Object.prototype, $c = Uc.hasOwnProperty;
|
|
319
|
+
function Hc(r) {
|
|
321
320
|
var t = this.__data__;
|
|
322
|
-
return or ? t[r] !== void 0 :
|
|
321
|
+
return or ? t[r] !== void 0 : $c.call(t, r);
|
|
323
322
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
323
|
+
var zc = "__lodash_hash_undefined__";
|
|
324
|
+
function Fc(r, t) {
|
|
326
325
|
var e = this.__data__;
|
|
327
|
-
return this.size += this.has(r) ? 0 : 1, e[r] = or && t === void 0 ?
|
|
326
|
+
return this.size += this.has(r) ? 0 : 1, e[r] = or && t === void 0 ? zc : t, this;
|
|
328
327
|
}
|
|
329
328
|
function yn(r) {
|
|
330
329
|
var t = -1, e = r == null ? 0 : r.length;
|
|
@@ -334,11 +333,11 @@ function yn(r) {
|
|
|
334
333
|
}
|
|
335
334
|
}
|
|
336
335
|
yn.prototype.clear = Mc;
|
|
337
|
-
yn.prototype.delete =
|
|
338
|
-
yn.prototype.get =
|
|
339
|
-
yn.prototype.has =
|
|
340
|
-
yn.prototype.set =
|
|
341
|
-
function
|
|
336
|
+
yn.prototype.delete = kc;
|
|
337
|
+
yn.prototype.get = Pc;
|
|
338
|
+
yn.prototype.has = Hc;
|
|
339
|
+
yn.prototype.set = Fc;
|
|
340
|
+
function Vc() {
|
|
342
341
|
this.__data__ = [], this.size = 0;
|
|
343
342
|
}
|
|
344
343
|
function Kr(r, t) {
|
|
@@ -347,22 +346,22 @@ function Kr(r, t) {
|
|
|
347
346
|
return e;
|
|
348
347
|
return -1;
|
|
349
348
|
}
|
|
350
|
-
var
|
|
351
|
-
function
|
|
349
|
+
var Gc = Array.prototype, Kc = Gc.splice;
|
|
350
|
+
function Wc(r) {
|
|
352
351
|
var t = this.__data__, e = Kr(t, r);
|
|
353
352
|
if (e < 0)
|
|
354
353
|
return !1;
|
|
355
354
|
var n = t.length - 1;
|
|
356
|
-
return e == n ? t.pop() :
|
|
355
|
+
return e == n ? t.pop() : Kc.call(t, e, 1), --this.size, !0;
|
|
357
356
|
}
|
|
358
|
-
function
|
|
357
|
+
function Zc(r) {
|
|
359
358
|
var t = this.__data__, e = Kr(t, r);
|
|
360
359
|
return e < 0 ? void 0 : t[e][1];
|
|
361
360
|
}
|
|
362
|
-
function
|
|
361
|
+
function Xc(r) {
|
|
363
362
|
return Kr(this.__data__, r) > -1;
|
|
364
363
|
}
|
|
365
|
-
function
|
|
364
|
+
function Yc(r, t) {
|
|
366
365
|
var e = this.__data__, n = Kr(e, r);
|
|
367
366
|
return n < 0 ? (++this.size, e.push([r, t])) : e[n][1] = t, this;
|
|
368
367
|
}
|
|
@@ -373,38 +372,38 @@ function Ze(r) {
|
|
|
373
372
|
this.set(n[0], n[1]);
|
|
374
373
|
}
|
|
375
374
|
}
|
|
376
|
-
Ze.prototype.clear =
|
|
377
|
-
Ze.prototype.delete =
|
|
378
|
-
Ze.prototype.get =
|
|
379
|
-
Ze.prototype.has =
|
|
380
|
-
Ze.prototype.set =
|
|
375
|
+
Ze.prototype.clear = Vc;
|
|
376
|
+
Ze.prototype.delete = Wc;
|
|
377
|
+
Ze.prototype.get = Zc;
|
|
378
|
+
Ze.prototype.has = Xc;
|
|
379
|
+
Ze.prototype.set = Yc;
|
|
381
380
|
var ar = wn(Be, "Map");
|
|
382
|
-
function
|
|
381
|
+
function Qc() {
|
|
383
382
|
this.size = 0, this.__data__ = {
|
|
384
383
|
hash: new yn(),
|
|
385
384
|
map: new (ar || Ze)(),
|
|
386
385
|
string: new yn()
|
|
387
386
|
};
|
|
388
387
|
}
|
|
389
|
-
function
|
|
388
|
+
function Jc(r) {
|
|
390
389
|
var t = typeof r;
|
|
391
390
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? r !== "__proto__" : r === null;
|
|
392
391
|
}
|
|
393
392
|
function Wr(r, t) {
|
|
394
393
|
var e = r.__data__;
|
|
395
|
-
return
|
|
394
|
+
return Jc(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
|
|
396
395
|
}
|
|
397
|
-
function
|
|
396
|
+
function tu(r) {
|
|
398
397
|
var t = Wr(this, r).delete(r);
|
|
399
398
|
return this.size -= t ? 1 : 0, t;
|
|
400
399
|
}
|
|
401
|
-
function
|
|
400
|
+
function eu(r) {
|
|
402
401
|
return Wr(this, r).get(r);
|
|
403
402
|
}
|
|
404
|
-
function
|
|
403
|
+
function nu(r) {
|
|
405
404
|
return Wr(this, r).has(r);
|
|
406
405
|
}
|
|
407
|
-
function
|
|
406
|
+
function ru(r, t) {
|
|
408
407
|
var e = Wr(this, r), n = e.size;
|
|
409
408
|
return e.set(r, t), this.size += e.size == n ? 0 : 1, this;
|
|
410
409
|
}
|
|
@@ -415,45 +414,45 @@ function xn(r) {
|
|
|
415
414
|
this.set(n[0], n[1]);
|
|
416
415
|
}
|
|
417
416
|
}
|
|
418
|
-
xn.prototype.clear =
|
|
419
|
-
xn.prototype.delete =
|
|
420
|
-
xn.prototype.get =
|
|
421
|
-
xn.prototype.has =
|
|
422
|
-
xn.prototype.set =
|
|
423
|
-
function
|
|
417
|
+
xn.prototype.clear = Qc;
|
|
418
|
+
xn.prototype.delete = tu;
|
|
419
|
+
xn.prototype.get = eu;
|
|
420
|
+
xn.prototype.has = nu;
|
|
421
|
+
xn.prototype.set = ru;
|
|
422
|
+
function su(r, t) {
|
|
424
423
|
for (var e = -1, n = t.length, s = r.length; ++e < n; )
|
|
425
424
|
r[s + e] = t[e];
|
|
426
425
|
return r;
|
|
427
426
|
}
|
|
428
|
-
var Zl = Kl(Object.getPrototypeOf, Object),
|
|
429
|
-
function
|
|
430
|
-
if (!Ge(r) || Fn(r) !=
|
|
427
|
+
var Zl = Kl(Object.getPrototypeOf, Object), iu = "[object Object]", lu = Function.prototype, ou = Object.prototype, Xl = lu.toString, au = ou.hasOwnProperty, cu = Xl.call(Object);
|
|
428
|
+
function uu(r) {
|
|
429
|
+
if (!Ge(r) || Fn(r) != iu)
|
|
431
430
|
return !1;
|
|
432
431
|
var t = Zl(r);
|
|
433
432
|
if (t === null)
|
|
434
433
|
return !0;
|
|
435
|
-
var e =
|
|
436
|
-
return typeof e == "function" && e instanceof e && Xl.call(e) ==
|
|
434
|
+
var e = au.call(t, "constructor") && t.constructor;
|
|
435
|
+
return typeof e == "function" && e instanceof e && Xl.call(e) == cu;
|
|
437
436
|
}
|
|
438
|
-
function
|
|
437
|
+
function hu() {
|
|
439
438
|
this.__data__ = new Ze(), this.size = 0;
|
|
440
439
|
}
|
|
441
|
-
function
|
|
440
|
+
function du(r) {
|
|
442
441
|
var t = this.__data__, e = t.delete(r);
|
|
443
442
|
return this.size = t.size, e;
|
|
444
443
|
}
|
|
445
|
-
function
|
|
444
|
+
function fu(r) {
|
|
446
445
|
return this.__data__.get(r);
|
|
447
446
|
}
|
|
448
|
-
function
|
|
447
|
+
function pu(r) {
|
|
449
448
|
return this.__data__.has(r);
|
|
450
449
|
}
|
|
451
|
-
var
|
|
452
|
-
function
|
|
450
|
+
var gu = 200;
|
|
451
|
+
function mu(r, t) {
|
|
453
452
|
var e = this.__data__;
|
|
454
453
|
if (e instanceof Ze) {
|
|
455
454
|
var n = e.__data__;
|
|
456
|
-
if (!ar || n.length <
|
|
455
|
+
if (!ar || n.length < gu - 1)
|
|
457
456
|
return n.push([r, t]), this.size = ++e.size, this;
|
|
458
457
|
e = this.__data__ = new xn(n);
|
|
459
458
|
}
|
|
@@ -463,96 +462,97 @@ function Ie(r) {
|
|
|
463
462
|
var t = this.__data__ = new Ze(r);
|
|
464
463
|
this.size = t.size;
|
|
465
464
|
}
|
|
466
|
-
Ie.prototype.clear =
|
|
467
|
-
Ie.prototype.delete =
|
|
468
|
-
Ie.prototype.get =
|
|
469
|
-
Ie.prototype.has =
|
|
470
|
-
Ie.prototype.set =
|
|
471
|
-
var Yl = typeof exports == "object" && exports && !exports.nodeType && exports, Ui = Yl && typeof module == "object" && module && !module.nodeType && module,
|
|
465
|
+
Ie.prototype.clear = hu;
|
|
466
|
+
Ie.prototype.delete = du;
|
|
467
|
+
Ie.prototype.get = fu;
|
|
468
|
+
Ie.prototype.has = pu;
|
|
469
|
+
Ie.prototype.set = mu;
|
|
470
|
+
var Yl = typeof exports == "object" && exports && !exports.nodeType && exports, Ui = Yl && typeof module == "object" && module && !module.nodeType && module, bu = Ui && Ui.exports === Yl, $i = bu ? Be.Buffer : void 0, Hi = $i ? $i.allocUnsafe : void 0;
|
|
472
471
|
function Ql(r, t) {
|
|
473
472
|
if (t)
|
|
474
473
|
return r.slice();
|
|
475
474
|
var e = r.length, n = Hi ? Hi(e) : new r.constructor(e);
|
|
476
475
|
return r.copy(n), n;
|
|
477
476
|
}
|
|
478
|
-
function
|
|
477
|
+
function yu(r, t) {
|
|
479
478
|
for (var e = -1, n = r == null ? 0 : r.length, s = 0, i = []; ++e < n; ) {
|
|
480
479
|
var o = r[e];
|
|
481
480
|
t(o, e, r) && (i[s++] = o);
|
|
482
481
|
}
|
|
483
482
|
return i;
|
|
484
483
|
}
|
|
485
|
-
function
|
|
484
|
+
function vu() {
|
|
486
485
|
return [];
|
|
487
486
|
}
|
|
488
|
-
var
|
|
489
|
-
return r == null ? [] : (r = Object(r),
|
|
490
|
-
return
|
|
487
|
+
var wu = Object.prototype, xu = wu.propertyIsEnumerable, zi = Object.getOwnPropertySymbols, Nu = zi ? function(r) {
|
|
488
|
+
return r == null ? [] : (r = Object(r), yu(zi(r), function(t) {
|
|
489
|
+
return xu.call(r, t);
|
|
491
490
|
}));
|
|
492
|
-
} :
|
|
493
|
-
function
|
|
491
|
+
} : vu;
|
|
492
|
+
function Au(r, t, e) {
|
|
494
493
|
var n = t(r);
|
|
495
|
-
return bn(r) ? n :
|
|
494
|
+
return bn(r) ? n : su(n, e(r));
|
|
496
495
|
}
|
|
497
496
|
function Hs(r) {
|
|
498
|
-
return
|
|
497
|
+
return Au(r, Oc, Nu);
|
|
499
498
|
}
|
|
500
|
-
var zs = wn(Be, "DataView"), Fs = wn(Be, "Promise"), Vs = wn(Be, "Set"), Fi = "[object Map]",
|
|
499
|
+
var zs = wn(Be, "DataView"), Fs = wn(Be, "Promise"), Vs = wn(Be, "Set"), Fi = "[object Map]", Eu = "[object Object]", Vi = "[object Promise]", Gi = "[object Set]", Ki = "[object WeakMap]", Wi = "[object DataView]", Tu = vn(zs), Cu = vn(ar), Su = vn(Fs), Lu = vn(Vs), Ou = vn(Us), be = Fn;
|
|
501
500
|
(zs && be(new zs(new ArrayBuffer(1))) != Wi || ar && be(new ar()) != Fi || Fs && be(Fs.resolve()) != Vi || Vs && be(new Vs()) != Gi || Us && be(new Us()) != Ki) && (be = function(r) {
|
|
502
|
-
var t = Fn(r), e = t ==
|
|
501
|
+
var t = Fn(r), e = t == Eu ? r.constructor : void 0, n = e ? vn(e) : "";
|
|
503
502
|
if (n)
|
|
504
503
|
switch (n) {
|
|
505
|
-
case
|
|
504
|
+
case Tu:
|
|
506
505
|
return Wi;
|
|
507
|
-
case
|
|
506
|
+
case Cu:
|
|
508
507
|
return Fi;
|
|
509
|
-
case
|
|
508
|
+
case Su:
|
|
510
509
|
return Vi;
|
|
511
|
-
case
|
|
510
|
+
case Lu:
|
|
512
511
|
return Gi;
|
|
513
|
-
case
|
|
512
|
+
case Ou:
|
|
514
513
|
return Ki;
|
|
515
514
|
}
|
|
516
515
|
return t;
|
|
517
516
|
});
|
|
518
|
-
var
|
|
519
|
-
function
|
|
517
|
+
var qu = Object.prototype, _u = qu.hasOwnProperty;
|
|
518
|
+
function Iu(r) {
|
|
520
519
|
var t = r.length, e = new r.constructor(t);
|
|
521
|
-
return t && typeof r[0] == "string" &&
|
|
520
|
+
return t && typeof r[0] == "string" && _u.call(r, "index") && (e.index = r.index, e.input = r.input), e;
|
|
522
521
|
}
|
|
523
522
|
var zr = Be.Uint8Array;
|
|
524
|
-
function
|
|
523
|
+
function pi(r) {
|
|
525
524
|
var t = new r.constructor(r.byteLength);
|
|
526
525
|
return new zr(t).set(new zr(r)), t;
|
|
527
526
|
}
|
|
528
|
-
function
|
|
529
|
-
var e =
|
|
527
|
+
function Ru(r, t) {
|
|
528
|
+
var e = pi(r.buffer);
|
|
530
529
|
return new r.constructor(e, r.byteOffset, r.byteLength);
|
|
531
530
|
}
|
|
532
531
|
var Mu = /\w*$/;
|
|
533
|
-
function
|
|
532
|
+
function ku(r) {
|
|
534
533
|
var t = new r.constructor(r.source, Mu.exec(r));
|
|
535
534
|
return t.lastIndex = r.lastIndex, t;
|
|
536
535
|
}
|
|
537
536
|
var Zi = an ? an.prototype : void 0, Xi = Zi ? Zi.valueOf : void 0;
|
|
538
|
-
function
|
|
537
|
+
function Bu(r) {
|
|
539
538
|
return Xi ? Object(Xi.call(r)) : {};
|
|
540
539
|
}
|
|
541
540
|
function Jl(r, t) {
|
|
542
|
-
var e = t ?
|
|
541
|
+
var e = t ? pi(r.buffer) : r.buffer;
|
|
543
542
|
return new r.constructor(e, r.byteOffset, r.length);
|
|
544
543
|
}
|
|
545
|
-
var
|
|
546
|
-
function
|
|
544
|
+
var Du = "[object Boolean]", ju = "[object Date]", Pu = "[object Map]", Uu = "[object Number]", $u = "[object RegExp]", Hu = "[object Set]", zu = "[object String]", Fu = "[object Symbol]", Vu = "[object ArrayBuffer]", Gu = "[object DataView]", Ku = "[object Float32Array]", Wu = "[object Float64Array]", Zu = "[object Int8Array]", Xu = "[object Int16Array]", Yu = "[object Int32Array]", Qu = "[object Uint8Array]", Ju = "[object Uint8ClampedArray]", th = "[object Uint16Array]", eh = "[object Uint32Array]";
|
|
545
|
+
function nh(r, t, e) {
|
|
547
546
|
var n = r.constructor;
|
|
548
547
|
switch (t) {
|
|
549
|
-
case
|
|
550
|
-
return
|
|
548
|
+
case Vu:
|
|
549
|
+
return pi(r);
|
|
550
|
+
case Du:
|
|
551
551
|
case ju:
|
|
552
|
-
case Pu:
|
|
553
552
|
return new n(+r);
|
|
553
|
+
case Gu:
|
|
554
|
+
return Ru(r);
|
|
554
555
|
case Ku:
|
|
555
|
-
return ku(r);
|
|
556
556
|
case Wu:
|
|
557
557
|
case Zu:
|
|
558
558
|
case Xu:
|
|
@@ -561,46 +561,45 @@ function rh(r, t, e) {
|
|
|
561
561
|
case Ju:
|
|
562
562
|
case th:
|
|
563
563
|
case eh:
|
|
564
|
-
case nh:
|
|
565
564
|
return Jl(r, e);
|
|
566
|
-
case
|
|
565
|
+
case Pu:
|
|
567
566
|
return new n();
|
|
568
|
-
case
|
|
569
|
-
case
|
|
567
|
+
case Uu:
|
|
568
|
+
case zu:
|
|
570
569
|
return new n(r);
|
|
570
|
+
case $u:
|
|
571
|
+
return ku(r);
|
|
571
572
|
case Hu:
|
|
572
|
-
return Bu(r);
|
|
573
|
-
case zu:
|
|
574
573
|
return new n();
|
|
575
|
-
case
|
|
576
|
-
return
|
|
574
|
+
case Fu:
|
|
575
|
+
return Bu(r);
|
|
577
576
|
}
|
|
578
577
|
}
|
|
579
578
|
function to(r) {
|
|
580
|
-
return typeof r.constructor == "function" && !
|
|
579
|
+
return typeof r.constructor == "function" && !hi(r) ? Na(Zl(r)) : {};
|
|
581
580
|
}
|
|
582
|
-
var
|
|
583
|
-
function
|
|
584
|
-
return Ge(r) && be(r) ==
|
|
581
|
+
var rh = "[object Map]";
|
|
582
|
+
function sh(r) {
|
|
583
|
+
return Ge(r) && be(r) == rh;
|
|
585
584
|
}
|
|
586
|
-
var Yi = Pn && Pn.isMap,
|
|
587
|
-
function
|
|
588
|
-
return Ge(r) && be(r) ==
|
|
585
|
+
var Yi = Pn && Pn.isMap, ih = Yi ? di(Yi) : sh, lh = "[object Set]";
|
|
586
|
+
function oh(r) {
|
|
587
|
+
return Ge(r) && be(r) == lh;
|
|
589
588
|
}
|
|
590
|
-
var Qi = Pn && Pn.isSet,
|
|
591
|
-
qt[eo] = qt[
|
|
592
|
-
qt[
|
|
589
|
+
var Qi = Pn && Pn.isSet, ah = Qi ? di(Qi) : oh, ch = 1, eo = "[object Arguments]", uh = "[object Array]", hh = "[object Boolean]", dh = "[object Date]", fh = "[object Error]", no = "[object Function]", ph = "[object GeneratorFunction]", gh = "[object Map]", mh = "[object Number]", ro = "[object Object]", bh = "[object RegExp]", yh = "[object Set]", vh = "[object String]", wh = "[object Symbol]", xh = "[object WeakMap]", Nh = "[object ArrayBuffer]", Ah = "[object DataView]", Eh = "[object Float32Array]", Th = "[object Float64Array]", Ch = "[object Int8Array]", Sh = "[object Int16Array]", Lh = "[object Int32Array]", Oh = "[object Uint8Array]", qh = "[object Uint8ClampedArray]", _h = "[object Uint16Array]", Ih = "[object Uint32Array]", qt = {};
|
|
590
|
+
qt[eo] = qt[uh] = qt[Nh] = qt[Ah] = qt[hh] = qt[dh] = qt[Eh] = qt[Th] = qt[Ch] = qt[Sh] = qt[Lh] = qt[gh] = qt[mh] = qt[ro] = qt[bh] = qt[yh] = qt[vh] = qt[wh] = qt[Oh] = qt[qh] = qt[_h] = qt[Ih] = !0;
|
|
591
|
+
qt[fh] = qt[no] = qt[xh] = !1;
|
|
593
592
|
function Pr(r, t, e, n, s, i) {
|
|
594
|
-
var o, a = t &
|
|
593
|
+
var o, a = t & ch;
|
|
595
594
|
if (o !== void 0)
|
|
596
595
|
return o;
|
|
597
596
|
if (!un(r))
|
|
598
597
|
return r;
|
|
599
598
|
var h = bn(r);
|
|
600
599
|
if (h)
|
|
601
|
-
o =
|
|
600
|
+
o = Iu(r);
|
|
602
601
|
else {
|
|
603
|
-
var d = be(r), y = d == no || d ==
|
|
602
|
+
var d = be(r), y = d == no || d == ph;
|
|
604
603
|
if (lr(r))
|
|
605
604
|
return Ql(r, a);
|
|
606
605
|
if (d == ro || d == eo || y && !s)
|
|
@@ -608,32 +607,32 @@ function Pr(r, t, e, n, s, i) {
|
|
|
608
607
|
else {
|
|
609
608
|
if (!qt[d])
|
|
610
609
|
return s ? r : {};
|
|
611
|
-
o =
|
|
610
|
+
o = nh(r, d, a);
|
|
612
611
|
}
|
|
613
612
|
}
|
|
614
613
|
i || (i = new Ie());
|
|
615
614
|
var E = i.get(r);
|
|
616
615
|
if (E)
|
|
617
616
|
return E;
|
|
618
|
-
i.set(r, o),
|
|
617
|
+
i.set(r, o), ah(r) ? r.forEach(function(A) {
|
|
619
618
|
o.add(Pr(A, t, e, A, r, i));
|
|
620
|
-
}) :
|
|
619
|
+
}) : ih(r) && r.forEach(function(A, q) {
|
|
621
620
|
o.set(q, Pr(A, t, e, q, r, i));
|
|
622
621
|
});
|
|
623
622
|
var p = Hs, w = h ? void 0 : p(r);
|
|
624
|
-
return
|
|
623
|
+
return Ia(w || r, function(A, q) {
|
|
625
624
|
w && (q = A, A = r[q]), $l(o, q, Pr(A, t, e, q, r, i));
|
|
626
625
|
}), o;
|
|
627
626
|
}
|
|
628
|
-
var
|
|
627
|
+
var Rh = 1, Mh = 4;
|
|
629
628
|
function Bn(r) {
|
|
630
|
-
return Pr(r,
|
|
629
|
+
return Pr(r, Rh | Mh);
|
|
631
630
|
}
|
|
632
|
-
var
|
|
633
|
-
function
|
|
634
|
-
return this.__data__.set(r,
|
|
631
|
+
var kh = "__lodash_hash_undefined__";
|
|
632
|
+
function Bh(r) {
|
|
633
|
+
return this.__data__.set(r, kh), this;
|
|
635
634
|
}
|
|
636
|
-
function
|
|
635
|
+
function Dh(r) {
|
|
637
636
|
return this.__data__.has(r);
|
|
638
637
|
}
|
|
639
638
|
function Fr(r) {
|
|
@@ -641,26 +640,26 @@ function Fr(r) {
|
|
|
641
640
|
for (this.__data__ = new xn(); ++t < e; )
|
|
642
641
|
this.add(r[t]);
|
|
643
642
|
}
|
|
644
|
-
Fr.prototype.add = Fr.prototype.push =
|
|
645
|
-
Fr.prototype.has =
|
|
646
|
-
function
|
|
643
|
+
Fr.prototype.add = Fr.prototype.push = Bh;
|
|
644
|
+
Fr.prototype.has = Dh;
|
|
645
|
+
function jh(r, t) {
|
|
647
646
|
for (var e = -1, n = r == null ? 0 : r.length; ++e < n; )
|
|
648
647
|
if (t(r[e], e, r))
|
|
649
648
|
return !0;
|
|
650
649
|
return !1;
|
|
651
650
|
}
|
|
652
|
-
function
|
|
651
|
+
function Ph(r, t) {
|
|
653
652
|
return r.has(t);
|
|
654
653
|
}
|
|
655
|
-
var
|
|
654
|
+
var Uh = 1, $h = 2;
|
|
656
655
|
function so(r, t, e, n, s, i) {
|
|
657
|
-
var o = e &
|
|
656
|
+
var o = e & Uh, a = r.length, h = t.length;
|
|
658
657
|
if (a != h && !(o && h > a))
|
|
659
658
|
return !1;
|
|
660
659
|
var d = i.get(r), y = i.get(t);
|
|
661
660
|
if (d && y)
|
|
662
661
|
return d == t && y == r;
|
|
663
|
-
var E = -1, p = !0, w = e &
|
|
662
|
+
var E = -1, p = !0, w = e & $h ? new Fr() : void 0;
|
|
664
663
|
for (i.set(r, t), i.set(t, r); ++E < a; ) {
|
|
665
664
|
var A = r[E], q = t[E];
|
|
666
665
|
if (n)
|
|
@@ -672,8 +671,8 @@ function so(r, t, e, n, s, i) {
|
|
|
672
671
|
break;
|
|
673
672
|
}
|
|
674
673
|
if (w) {
|
|
675
|
-
if (!
|
|
676
|
-
if (!
|
|
674
|
+
if (!jh(t, function(j, K) {
|
|
675
|
+
if (!Ph(w, K) && (A === j || s(A, j, e, n, i)))
|
|
677
676
|
return w.push(K);
|
|
678
677
|
})) {
|
|
679
678
|
p = !1;
|
|
@@ -686,62 +685,62 @@ function so(r, t, e, n, s, i) {
|
|
|
686
685
|
}
|
|
687
686
|
return i.delete(r), i.delete(t), p;
|
|
688
687
|
}
|
|
689
|
-
function
|
|
688
|
+
function Hh(r) {
|
|
690
689
|
var t = -1, e = Array(r.size);
|
|
691
690
|
return r.forEach(function(n, s) {
|
|
692
691
|
e[++t] = [s, n];
|
|
693
692
|
}), e;
|
|
694
693
|
}
|
|
695
|
-
function
|
|
694
|
+
function zh(r) {
|
|
696
695
|
var t = -1, e = Array(r.size);
|
|
697
696
|
return r.forEach(function(n) {
|
|
698
697
|
e[++t] = n;
|
|
699
698
|
}), e;
|
|
700
699
|
}
|
|
701
|
-
var
|
|
702
|
-
function
|
|
700
|
+
var Fh = 1, Vh = 2, Gh = "[object Boolean]", Kh = "[object Date]", Wh = "[object Error]", Zh = "[object Map]", Xh = "[object Number]", Yh = "[object RegExp]", Qh = "[object Set]", Jh = "[object String]", td = "[object Symbol]", ed = "[object ArrayBuffer]", nd = "[object DataView]", Ji = an ? an.prototype : void 0, Ss = Ji ? Ji.valueOf : void 0;
|
|
701
|
+
function rd(r, t, e, n, s, i, o) {
|
|
703
702
|
switch (e) {
|
|
704
|
-
case
|
|
703
|
+
case nd:
|
|
705
704
|
if (r.byteLength != t.byteLength || r.byteOffset != t.byteOffset)
|
|
706
705
|
return !1;
|
|
707
706
|
r = r.buffer, t = t.buffer;
|
|
708
|
-
case
|
|
707
|
+
case ed:
|
|
709
708
|
return !(r.byteLength != t.byteLength || !i(new zr(r), new zr(t)));
|
|
709
|
+
case Gh:
|
|
710
710
|
case Kh:
|
|
711
|
+
case Xh:
|
|
712
|
+
return fr(+r, +t);
|
|
711
713
|
case Wh:
|
|
714
|
+
return r.name == t.name && r.message == t.message;
|
|
712
715
|
case Yh:
|
|
713
|
-
|
|
716
|
+
case Jh:
|
|
717
|
+
return r == t + "";
|
|
714
718
|
case Zh:
|
|
715
|
-
|
|
719
|
+
var a = Hh;
|
|
716
720
|
case Qh:
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
case Xh:
|
|
720
|
-
var a = zh;
|
|
721
|
-
case Jh:
|
|
722
|
-
var h = n & Vh;
|
|
723
|
-
if (a || (a = Fh), r.size != t.size && !h)
|
|
721
|
+
var h = n & Fh;
|
|
722
|
+
if (a || (a = zh), r.size != t.size && !h)
|
|
724
723
|
return !1;
|
|
725
724
|
var d = o.get(r);
|
|
726
725
|
if (d)
|
|
727
726
|
return d == t;
|
|
728
|
-
n |=
|
|
727
|
+
n |= Vh, o.set(r, t);
|
|
729
728
|
var y = so(a(r), a(t), n, s, i, o);
|
|
730
729
|
return o.delete(r), y;
|
|
731
|
-
case
|
|
730
|
+
case td:
|
|
732
731
|
if (Ss)
|
|
733
732
|
return Ss.call(r) == Ss.call(t);
|
|
734
733
|
}
|
|
735
734
|
return !1;
|
|
736
735
|
}
|
|
737
|
-
var
|
|
738
|
-
function
|
|
739
|
-
var o = e &
|
|
736
|
+
var sd = 1, id = Object.prototype, ld = id.hasOwnProperty;
|
|
737
|
+
function od(r, t, e, n, s, i) {
|
|
738
|
+
var o = e & sd, a = Hs(r), h = a.length, d = Hs(t), y = d.length;
|
|
740
739
|
if (h != y && !o)
|
|
741
740
|
return !1;
|
|
742
741
|
for (var E = h; E--; ) {
|
|
743
742
|
var p = a[E];
|
|
744
|
-
if (!(o ? p in t :
|
|
743
|
+
if (!(o ? p in t : ld.call(t, p)))
|
|
745
744
|
return !1;
|
|
746
745
|
}
|
|
747
746
|
var w = i.get(r), A = i.get(t);
|
|
@@ -766,8 +765,8 @@ function ad(r, t, e, n, s, i) {
|
|
|
766
765
|
}
|
|
767
766
|
return i.delete(r), i.delete(t), q;
|
|
768
767
|
}
|
|
769
|
-
var
|
|
770
|
-
function
|
|
768
|
+
var ad = 1, tl = "[object Arguments]", el = "[object Array]", Or = "[object Object]", cd = Object.prototype, nl = cd.hasOwnProperty;
|
|
769
|
+
function ud(r, t, e, n, s, i) {
|
|
771
770
|
var o = bn(r), a = bn(t), h = o ? el : be(r), d = a ? el : be(t);
|
|
772
771
|
h = h == tl ? Or : h, d = d == tl ? Or : d;
|
|
773
772
|
var y = h == Or, E = d == Or, p = h == d;
|
|
@@ -777,20 +776,20 @@ function hd(r, t, e, n, s, i) {
|
|
|
777
776
|
o = !0, y = !1;
|
|
778
777
|
}
|
|
779
778
|
if (p && !y)
|
|
780
|
-
return i || (i = new Ie()), o ||
|
|
781
|
-
if (!(e &
|
|
779
|
+
return i || (i = new Ie()), o || fi(r) ? so(r, t, e, n, s, i) : rd(r, t, h, e, n, s, i);
|
|
780
|
+
if (!(e & ad)) {
|
|
782
781
|
var w = y && nl.call(r, "__wrapped__"), A = E && nl.call(t, "__wrapped__");
|
|
783
782
|
if (w || A) {
|
|
784
783
|
var q = w ? r.value() : r, D = A ? t.value() : t;
|
|
785
784
|
return i || (i = new Ie()), s(q, D, e, n, i);
|
|
786
785
|
}
|
|
787
786
|
}
|
|
788
|
-
return p ? (i || (i = new Ie()),
|
|
787
|
+
return p ? (i || (i = new Ie()), od(r, t, e, n, s, i)) : !1;
|
|
789
788
|
}
|
|
790
789
|
function io(r, t, e, n, s) {
|
|
791
|
-
return r === t ? !0 : r == null || t == null || !Ge(r) && !Ge(t) ? r !== r && t !== t :
|
|
790
|
+
return r === t ? !0 : r == null || t == null || !Ge(r) && !Ge(t) ? r !== r && t !== t : ud(r, t, e, n, io, s);
|
|
792
791
|
}
|
|
793
|
-
function
|
|
792
|
+
function hd(r) {
|
|
794
793
|
return function(t, e, n) {
|
|
795
794
|
for (var s = -1, i = Object(t), o = n(t), a = o.length; a--; ) {
|
|
796
795
|
var h = o[++s];
|
|
@@ -800,21 +799,21 @@ function dd(r) {
|
|
|
800
799
|
return t;
|
|
801
800
|
};
|
|
802
801
|
}
|
|
803
|
-
var
|
|
802
|
+
var dd = hd();
|
|
804
803
|
function Gs(r, t, e) {
|
|
805
|
-
(e !== void 0 && !fr(r[t], e) || e === void 0 && !(t in r)) &&
|
|
804
|
+
(e !== void 0 && !fr(r[t], e) || e === void 0 && !(t in r)) && ui(r, t, e);
|
|
806
805
|
}
|
|
807
|
-
function
|
|
806
|
+
function fd(r) {
|
|
808
807
|
return Ge(r) && Gr(r);
|
|
809
808
|
}
|
|
810
809
|
function Ks(r, t) {
|
|
811
810
|
if (!(t === "constructor" && typeof r[t] == "function") && t != "__proto__")
|
|
812
811
|
return r[t];
|
|
813
812
|
}
|
|
814
|
-
function
|
|
815
|
-
return
|
|
813
|
+
function pd(r) {
|
|
814
|
+
return Da(r, Wl(r));
|
|
816
815
|
}
|
|
817
|
-
function
|
|
816
|
+
function gd(r, t, e, n, s, i, o) {
|
|
818
817
|
var a = Ks(r, e), h = Ks(t, e), d = o.get(h);
|
|
819
818
|
if (d) {
|
|
820
819
|
Gs(r, e, d);
|
|
@@ -822,28 +821,28 @@ function md(r, t, e, n, s, i, o) {
|
|
|
822
821
|
}
|
|
823
822
|
var y = i ? i(a, h, e + "", r, t, o) : void 0, E = y === void 0;
|
|
824
823
|
if (E) {
|
|
825
|
-
var p = bn(h), w = !p && lr(h), A = !p && !w &&
|
|
826
|
-
y = h, p || w || A ? bn(a) ? y = a :
|
|
824
|
+
var p = bn(h), w = !p && lr(h), A = !p && !w && fi(h);
|
|
825
|
+
y = h, p || w || A ? bn(a) ? y = a : fd(a) ? y = Ea(a) : w ? (E = !1, y = Ql(h, !0)) : A ? (E = !1, y = Jl(h, !0)) : y = [] : uu(h) || $s(h) ? (y = a, $s(a) ? y = pd(a) : (!un(a) || ci(a)) && (y = to(h))) : E = !1;
|
|
827
826
|
}
|
|
828
827
|
E && (o.set(h, y), s(y, h, n, i, o), o.delete(h)), Gs(r, e, y);
|
|
829
828
|
}
|
|
830
829
|
function lo(r, t, e, n, s) {
|
|
831
|
-
r !== t &&
|
|
830
|
+
r !== t && dd(t, function(i, o) {
|
|
832
831
|
if (s || (s = new Ie()), un(i))
|
|
833
|
-
|
|
832
|
+
gd(r, t, o, e, lo, n, s);
|
|
834
833
|
else {
|
|
835
834
|
var a = n ? n(Ks(r, o), i, o + "", r, t, s) : void 0;
|
|
836
835
|
a === void 0 && (a = i), Gs(r, o, a);
|
|
837
836
|
}
|
|
838
837
|
}, Wl);
|
|
839
838
|
}
|
|
840
|
-
function
|
|
839
|
+
function gi(r, t) {
|
|
841
840
|
return io(r, t);
|
|
842
841
|
}
|
|
843
|
-
var on =
|
|
842
|
+
var on = Ha(function(r, t, e) {
|
|
844
843
|
lo(r, t, e);
|
|
845
844
|
}), et = /* @__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))(et || {});
|
|
846
|
-
class
|
|
845
|
+
class Me {
|
|
847
846
|
constructor(t, e, n = {}) {
|
|
848
847
|
this.attrName = t, this.keyName = e;
|
|
849
848
|
const s = et.TYPE & et.ATTRIBUTE;
|
|
@@ -930,7 +929,7 @@ let Un = oo;
|
|
|
930
929
|
function rl(r, t) {
|
|
931
930
|
return (r.getAttribute("class") || "").split(/\s+/).filter((e) => e.indexOf(`${t}-`) === 0);
|
|
932
931
|
}
|
|
933
|
-
class
|
|
932
|
+
class md extends Me {
|
|
934
933
|
static keys(t) {
|
|
935
934
|
return (t.getAttribute("class") || "").split(/\s+/).map((e) => e.split("-").slice(0, -1).join("-"));
|
|
936
935
|
}
|
|
@@ -947,12 +946,12 @@ class bd extends ke {
|
|
|
947
946
|
return this.canAdd(t, e) ? e : "";
|
|
948
947
|
}
|
|
949
948
|
}
|
|
950
|
-
const xe =
|
|
949
|
+
const xe = md;
|
|
951
950
|
function Ls(r) {
|
|
952
951
|
const t = r.split("-"), e = t.slice(1).map((n) => n[0].toUpperCase() + n.slice(1)).join("");
|
|
953
952
|
return t[0] + e;
|
|
954
953
|
}
|
|
955
|
-
class
|
|
954
|
+
class bd extends Me {
|
|
956
955
|
static keys(t) {
|
|
957
956
|
return (t.getAttribute("style") || "").split(";").map((e) => e.split(":")[0].trim());
|
|
958
957
|
}
|
|
@@ -967,8 +966,8 @@ class yd extends ke {
|
|
|
967
966
|
return this.canAdd(t, e) ? e : "";
|
|
968
967
|
}
|
|
969
968
|
}
|
|
970
|
-
const hn =
|
|
971
|
-
class
|
|
969
|
+
const hn = bd;
|
|
970
|
+
class yd {
|
|
972
971
|
constructor(t) {
|
|
973
972
|
this.attributes = {}, this.domNode = t, this.build();
|
|
974
973
|
}
|
|
@@ -980,10 +979,10 @@ class vd {
|
|
|
980
979
|
const t = Un.find(this.domNode);
|
|
981
980
|
if (t == null)
|
|
982
981
|
return;
|
|
983
|
-
const e =
|
|
982
|
+
const e = Me.keys(this.domNode), n = xe.keys(this.domNode), s = hn.keys(this.domNode);
|
|
984
983
|
e.concat(n).concat(s).forEach((i) => {
|
|
985
984
|
const o = t.scroll.query(i, et.ATTRIBUTE);
|
|
986
|
-
o instanceof
|
|
985
|
+
o instanceof Me && (this.attributes[o.attrName] = o);
|
|
987
986
|
});
|
|
988
987
|
}
|
|
989
988
|
copy(t) {
|
|
@@ -1004,7 +1003,7 @@ class vd {
|
|
|
1004
1003
|
);
|
|
1005
1004
|
}
|
|
1006
1005
|
}
|
|
1007
|
-
const Zr =
|
|
1006
|
+
const Zr = yd, ao = class {
|
|
1008
1007
|
constructor(t, e) {
|
|
1009
1008
|
this.scroll = t, this.domNode = e, Un.blots.set(e, this), this.prev = null, this.next = null;
|
|
1010
1009
|
}
|
|
@@ -1115,9 +1114,9 @@ const uo = class extends co {
|
|
|
1115
1114
|
}
|
|
1116
1115
|
};
|
|
1117
1116
|
uo.scope = et.INLINE_BLOT;
|
|
1118
|
-
let
|
|
1119
|
-
const Wt =
|
|
1120
|
-
class
|
|
1117
|
+
let vd = uo;
|
|
1118
|
+
const Wt = vd;
|
|
1119
|
+
class wd {
|
|
1121
1120
|
constructor() {
|
|
1122
1121
|
this.head = null, this.tail = null, this.length = 0;
|
|
1123
1122
|
}
|
|
@@ -1251,7 +1250,7 @@ const ho = class nn extends co {
|
|
|
1251
1250
|
* Called during construction, should fill its own children LinkedList.
|
|
1252
1251
|
*/
|
|
1253
1252
|
build() {
|
|
1254
|
-
this.children = new
|
|
1253
|
+
this.children = new wd(), Array.from(this.domNode.childNodes).filter((t) => t !== this.uiNode).reverse().forEach((t) => {
|
|
1255
1254
|
try {
|
|
1256
1255
|
const e = sl(t, this.scroll);
|
|
1257
1256
|
this.insertBefore(e, this.children.head || void 0);
|
|
@@ -1385,9 +1384,9 @@ const ho = class nn extends co {
|
|
|
1385
1384
|
}
|
|
1386
1385
|
};
|
|
1387
1386
|
ho.uiClass = "";
|
|
1388
|
-
let
|
|
1389
|
-
const ve =
|
|
1390
|
-
function
|
|
1387
|
+
let xd = ho;
|
|
1388
|
+
const ve = xd;
|
|
1389
|
+
function Nd(r, t) {
|
|
1391
1390
|
if (Object.keys(r).length !== Object.keys(t).length)
|
|
1392
1391
|
return !1;
|
|
1393
1392
|
for (const e in r)
|
|
@@ -1420,7 +1419,7 @@ const qn = class _n extends ve {
|
|
|
1420
1419
|
const n = this.scroll.query(t, et.INLINE);
|
|
1421
1420
|
if (n == null)
|
|
1422
1421
|
return;
|
|
1423
|
-
n instanceof
|
|
1422
|
+
n instanceof Me ? this.attributes.attribute(n, e) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e);
|
|
1424
1423
|
}
|
|
1425
1424
|
}
|
|
1426
1425
|
formats() {
|
|
@@ -1436,7 +1435,7 @@ const qn = class _n extends ve {
|
|
|
1436
1435
|
if (Object.keys(e).length === 0)
|
|
1437
1436
|
return this.unwrap();
|
|
1438
1437
|
const n = this.next;
|
|
1439
|
-
n instanceof _n && n.prev === this &&
|
|
1438
|
+
n instanceof _n && n.prev === this && Nd(e, n.formats()) && (n.moveChildren(this), n.remove());
|
|
1440
1439
|
}
|
|
1441
1440
|
replaceWith(t, e) {
|
|
1442
1441
|
const n = super.replaceWith(t, e);
|
|
@@ -1453,8 +1452,8 @@ const qn = class _n extends ve {
|
|
|
1453
1452
|
}
|
|
1454
1453
|
};
|
|
1455
1454
|
qn.allowedChildren = [qn, Wt], qn.blotName = "inline", qn.scope = et.INLINE_BLOT, qn.tagName = "SPAN";
|
|
1456
|
-
let
|
|
1457
|
-
const
|
|
1455
|
+
let Ad = qn;
|
|
1456
|
+
const mi = Ad, In = class Zs extends ve {
|
|
1458
1457
|
static create(t) {
|
|
1459
1458
|
return super.create(t);
|
|
1460
1459
|
}
|
|
@@ -1472,7 +1471,7 @@ const bi = Ed, In = class Zs extends ve {
|
|
|
1472
1471
|
}
|
|
1473
1472
|
format(t, e) {
|
|
1474
1473
|
const n = this.scroll.query(t, et.BLOCK);
|
|
1475
|
-
n != null && (n instanceof
|
|
1474
|
+
n != null && (n instanceof Me ? this.attributes.attribute(n, e) : t === this.statics.blotName && !e ? this.replaceWith(Zs.blotName) : e && (t !== this.statics.blotName || this.formats()[t] !== e) && this.replaceWith(t, e));
|
|
1476
1475
|
}
|
|
1477
1476
|
formats() {
|
|
1478
1477
|
const t = this.attributes.values(), e = this.statics.formats(this.domNode, this.scroll);
|
|
@@ -1504,12 +1503,12 @@ const bi = Ed, In = class Zs extends ve {
|
|
|
1504
1503
|
}
|
|
1505
1504
|
};
|
|
1506
1505
|
In.blotName = "block", In.scope = et.BLOCK_BLOT, In.tagName = "P", In.allowedChildren = [
|
|
1507
|
-
|
|
1506
|
+
mi,
|
|
1508
1507
|
In,
|
|
1509
1508
|
Wt
|
|
1510
1509
|
];
|
|
1511
|
-
let
|
|
1512
|
-
const cr =
|
|
1510
|
+
let Ed = In;
|
|
1511
|
+
const cr = Ed, Xs = class extends ve {
|
|
1513
1512
|
checkMerge() {
|
|
1514
1513
|
return this.next !== null && this.next.statics.blotName === this.statics.blotName;
|
|
1515
1514
|
}
|
|
@@ -1527,9 +1526,9 @@ const cr = Td, Xs = class extends ve {
|
|
|
1527
1526
|
}
|
|
1528
1527
|
};
|
|
1529
1528
|
Xs.blotName = "container", Xs.scope = et.BLOCK_BLOT;
|
|
1530
|
-
let
|
|
1531
|
-
const Xr =
|
|
1532
|
-
class
|
|
1529
|
+
let Td = Xs;
|
|
1530
|
+
const Xr = Td;
|
|
1531
|
+
class Cd extends Wt {
|
|
1533
1532
|
static formats(t, e) {
|
|
1534
1533
|
}
|
|
1535
1534
|
format(t, e) {
|
|
@@ -1542,17 +1541,17 @@ class Sd extends Wt {
|
|
|
1542
1541
|
return this.statics.formats(this.domNode, this.scroll);
|
|
1543
1542
|
}
|
|
1544
1543
|
}
|
|
1545
|
-
const se =
|
|
1544
|
+
const se = Cd, Sd = {
|
|
1546
1545
|
attributes: !0,
|
|
1547
1546
|
characterData: !0,
|
|
1548
1547
|
characterDataOldValue: !0,
|
|
1549
1548
|
childList: !0,
|
|
1550
1549
|
subtree: !0
|
|
1551
|
-
},
|
|
1550
|
+
}, Ld = 100, Rn = class extends ve {
|
|
1552
1551
|
constructor(t, e) {
|
|
1553
1552
|
super(null, e), this.registry = t, this.scroll = this, this.build(), this.observer = new MutationObserver((n) => {
|
|
1554
1553
|
this.update(n);
|
|
1555
|
-
}), this.observer.observe(this.domNode,
|
|
1554
|
+
}), this.observer.observe(this.domNode, Sd), this.attach();
|
|
1556
1555
|
}
|
|
1557
1556
|
create(t, e) {
|
|
1558
1557
|
return this.registry.create(this, t, e);
|
|
@@ -1597,7 +1596,7 @@ const se = Sd, Ld = {
|
|
|
1597
1596
|
};
|
|
1598
1597
|
let a = t;
|
|
1599
1598
|
for (let h = 0; a.length > 0; h += 1) {
|
|
1600
|
-
if (h >=
|
|
1599
|
+
if (h >= Ld)
|
|
1601
1600
|
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
1602
1601
|
for (a.forEach((d) => {
|
|
1603
1602
|
const y = this.find(d.target, !0);
|
|
@@ -1623,8 +1622,8 @@ const se = Sd, Ld = {
|
|
|
1623
1622
|
}
|
|
1624
1623
|
};
|
|
1625
1624
|
Rn.blotName = "scroll", Rn.defaultChild = cr, Rn.allowedChildren = [cr, Xr], Rn.scope = et.BLOCK_BLOT, Rn.tagName = "DIV";
|
|
1626
|
-
let
|
|
1627
|
-
const
|
|
1625
|
+
let Od = Rn;
|
|
1626
|
+
const bi = Od, Ys = class fo extends Wt {
|
|
1628
1627
|
static create(t) {
|
|
1629
1628
|
return document.createTextNode(t);
|
|
1630
1629
|
}
|
|
@@ -1670,24 +1669,47 @@ const yi = qd, Ys = class fo extends Wt {
|
|
|
1670
1669
|
}
|
|
1671
1670
|
};
|
|
1672
1671
|
Ys.blotName = "text", Ys.scope = et.INLINE_BLOT;
|
|
1673
|
-
let
|
|
1674
|
-
const Vr =
|
|
1672
|
+
let qd = Ys;
|
|
1673
|
+
const Vr = qd, po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1675
1674
|
__proto__: null,
|
|
1676
|
-
Attributor:
|
|
1675
|
+
Attributor: Me,
|
|
1677
1676
|
AttributorStore: Zr,
|
|
1678
1677
|
BlockBlot: cr,
|
|
1679
1678
|
ClassAttributor: xe,
|
|
1680
1679
|
ContainerBlot: Xr,
|
|
1681
1680
|
EmbedBlot: se,
|
|
1682
|
-
InlineBlot:
|
|
1681
|
+
InlineBlot: mi,
|
|
1683
1682
|
LeafBlot: Wt,
|
|
1684
1683
|
ParentBlot: ve,
|
|
1685
1684
|
Registry: Un,
|
|
1686
1685
|
Scope: et,
|
|
1687
|
-
ScrollBlot:
|
|
1686
|
+
ScrollBlot: bi,
|
|
1688
1687
|
StyleAttributor: hn,
|
|
1689
1688
|
TextBlot: Vr
|
|
1690
1689
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1690
|
+
var rn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1691
|
+
function yi(r) {
|
|
1692
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
1693
|
+
}
|
|
1694
|
+
function _d(r) {
|
|
1695
|
+
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
1696
|
+
var t = r.default;
|
|
1697
|
+
if (typeof t == "function") {
|
|
1698
|
+
var e = function n() {
|
|
1699
|
+
return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
1700
|
+
};
|
|
1701
|
+
e.prototype = t.prototype;
|
|
1702
|
+
} else e = {};
|
|
1703
|
+
return Object.defineProperty(e, "__esModule", { value: !0 }), Object.keys(r).forEach(function(n) {
|
|
1704
|
+
var s = Object.getOwnPropertyDescriptor(r, n);
|
|
1705
|
+
Object.defineProperty(e, n, s.get ? s : {
|
|
1706
|
+
enumerable: !0,
|
|
1707
|
+
get: function() {
|
|
1708
|
+
return r[n];
|
|
1709
|
+
}
|
|
1710
|
+
});
|
|
1711
|
+
}), e;
|
|
1712
|
+
}
|
|
1691
1713
|
var qr = { exports: {} }, Os, il;
|
|
1692
1714
|
function Id() {
|
|
1693
1715
|
if (il) return Os;
|
|
@@ -1697,7 +1719,7 @@ function Id() {
|
|
|
1697
1719
|
if (g === x)
|
|
1698
1720
|
return g ? [[e, g]] : [];
|
|
1699
1721
|
if (v != null) {
|
|
1700
|
-
var L =
|
|
1722
|
+
var L = Mt(g, x, v);
|
|
1701
1723
|
if (L)
|
|
1702
1724
|
return L;
|
|
1703
1725
|
}
|
|
@@ -1759,11 +1781,11 @@ function Id() {
|
|
|
1759
1781
|
for (var Ct = -ht + R; Ct <= ht - pt; Ct += 2) {
|
|
1760
1782
|
var mt = L + Ct, ct;
|
|
1761
1783
|
Ct === -ht || Ct !== ht && z[mt - 1] < z[mt + 1] ? ct = z[mt + 1] : ct = z[mt - 1] + 1;
|
|
1762
|
-
for (var
|
|
1763
|
-
ct++,
|
|
1784
|
+
for (var kt = ct - Ct; ct < v && kt < O && g.charAt(v - ct - 1) === x.charAt(O - kt - 1); )
|
|
1785
|
+
ct++, kt++;
|
|
1764
1786
|
if (z[mt] = ct, ct > v)
|
|
1765
1787
|
pt += 2;
|
|
1766
|
-
else if (
|
|
1788
|
+
else if (kt > O)
|
|
1767
1789
|
R += 2;
|
|
1768
1790
|
else if (!S) {
|
|
1769
1791
|
var dt = L + _ - Ct;
|
|
@@ -1822,11 +1844,11 @@ function Id() {
|
|
|
1822
1844
|
var Ct = a(
|
|
1823
1845
|
W.substring(pt),
|
|
1824
1846
|
R.substring(lt)
|
|
1825
|
-
),
|
|
1847
|
+
), kt = d(
|
|
1826
1848
|
W.substring(0, pt),
|
|
1827
1849
|
R.substring(0, lt)
|
|
1828
1850
|
);
|
|
1829
|
-
dt.length <
|
|
1851
|
+
dt.length < kt + Ct && (dt = R.substring(lt - kt, lt) + R.substring(lt, lt + Ct), gt = W.substring(0, pt - kt), yt = W.substring(pt + Ct), mt = R.substring(0, lt - kt), ct = R.substring(lt + Ct));
|
|
1830
1852
|
}
|
|
1831
1853
|
return dt.length * 2 >= W.length ? [
|
|
1832
1854
|
gt,
|
|
@@ -1884,8 +1906,8 @@ function Id() {
|
|
|
1884
1906
|
function x(W, R) {
|
|
1885
1907
|
if (!W || !R)
|
|
1886
1908
|
return 6;
|
|
1887
|
-
var pt = W.charAt(W.length - 1), ht = R.charAt(0), lt = pt.match(p), dt = ht.match(p), gt = lt && pt.match(w), yt = dt && ht.match(w), mt = gt && pt.match(A), ct = yt && ht.match(A), Ct = mt && W.match(q),
|
|
1888
|
-
return Ct ||
|
|
1909
|
+
var pt = W.charAt(W.length - 1), ht = R.charAt(0), lt = pt.match(p), dt = ht.match(p), gt = lt && pt.match(w), yt = dt && ht.match(w), mt = gt && pt.match(A), ct = yt && ht.match(A), Ct = mt && W.match(q), kt = ct && R.match(D);
|
|
1910
|
+
return Ct || kt ? 5 : mt || ct ? 4 : lt && !gt && yt ? 3 : gt || yt ? 2 : lt || dt ? 1 : 0;
|
|
1889
1911
|
}
|
|
1890
1912
|
for (var v = 1; v < g.length - 1; ) {
|
|
1891
1913
|
if (g[v - 1][0] == e && g[v + 1][0] == e) {
|
|
@@ -2003,7 +2025,7 @@ function Id() {
|
|
|
2003
2025
|
[e, O]
|
|
2004
2026
|
]);
|
|
2005
2027
|
}
|
|
2006
|
-
function
|
|
2028
|
+
function Mt(g, x, v) {
|
|
2007
2029
|
var O = typeof v == "number" ? { index: v, length: 0 } : v.oldRange, U = typeof v == "number" ? null : v.newRange, L = g.length, $ = x.length;
|
|
2008
2030
|
if (O.length === 0 && (U === null || U.length === 0)) {
|
|
2009
2031
|
var H = O.index, z = g.slice(0, H), N = g.slice(H), _ = U ? U.index : null;
|
|
@@ -2056,8 +2078,8 @@ Jn.exports;
|
|
|
2056
2078
|
var ll;
|
|
2057
2079
|
function go() {
|
|
2058
2080
|
return ll || (ll = 1, function(r, t) {
|
|
2059
|
-
var e = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", h = "[object Date]", d = "[object Error]", y = "[object Function]", E = "[object GeneratorFunction]", p = "[object Map]", w = "[object Number]", A = "[object Object]", q = "[object Promise]", D = "[object RegExp]", j = "[object Set]", K = "[object String]", Z = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", bt = "[object DataView]", At = "[object Float32Array]", vt = "[object Float64Array]",
|
|
2060
|
-
N[i] = N[o] = N[nt] = N[bt] = N[a] = N[h] = N[At] = N[vt] = N[
|
|
2081
|
+
var e = 200, n = "__lodash_hash_undefined__", s = 9007199254740991, i = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", h = "[object Date]", d = "[object Error]", y = "[object Function]", E = "[object GeneratorFunction]", p = "[object Map]", w = "[object Number]", A = "[object Object]", q = "[object Promise]", D = "[object RegExp]", j = "[object Set]", K = "[object String]", Z = "[object Symbol]", rt = "[object WeakMap]", nt = "[object ArrayBuffer]", bt = "[object DataView]", At = "[object Float32Array]", vt = "[object Float64Array]", Mt = "[object Int8Array]", Lt = "[object Int16Array]", g = "[object Int32Array]", x = "[object Uint8Array]", v = "[object Uint8ClampedArray]", O = "[object Uint16Array]", U = "[object Uint32Array]", L = /[\\^$.*+?()[\]{}|]/g, $ = /\w*$/, H = /^\[object .+?Constructor\]$/, z = /^(?:0|[1-9]\d*)$/, N = {};
|
|
2082
|
+
N[i] = N[o] = N[nt] = N[bt] = N[a] = N[h] = N[At] = N[vt] = N[Mt] = N[Lt] = N[g] = N[p] = N[w] = N[A] = N[D] = N[j] = N[K] = N[Z] = N[x] = N[v] = N[O] = N[U] = !0, N[d] = N[y] = N[rt] = !1;
|
|
2061
2083
|
var _ = typeof rn == "object" && rn && rn.Object === Object && rn, S = typeof self == "object" && self && self.Object === Object && self, V = _ || S || Function("return this")(), W = t && !t.nodeType && t, R = W && !0 && r && !r.nodeType && r, pt = R && R.exports === W;
|
|
2062
2084
|
function ht(l, u) {
|
|
2063
2085
|
return l.set(u[0], u[1]), l;
|
|
@@ -2097,7 +2119,7 @@ function go() {
|
|
|
2097
2119
|
}
|
|
2098
2120
|
return u;
|
|
2099
2121
|
}
|
|
2100
|
-
function
|
|
2122
|
+
function kt(l) {
|
|
2101
2123
|
var u = -1, m = Array(l.size);
|
|
2102
2124
|
return l.forEach(function(I, ft) {
|
|
2103
2125
|
m[++u] = [ft, I];
|
|
@@ -2119,7 +2141,7 @@ function go() {
|
|
|
2119
2141
|
return l ? "Symbol(src)_1." + l : "";
|
|
2120
2142
|
}(), Te = ie.toString, jt = fe.hasOwnProperty, Pt = fe.toString, Ht = RegExp(
|
|
2121
2143
|
"^" + Te.call(jt).replace(L, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2122
|
-
), Jt = pt ? V.Buffer : void 0, le = V.Symbol, St = V.Uint8Array, xt = Ae(Object.getPrototypeOf, Object), zt = Object.create, ne = fe.propertyIsEnumerable, Pe = De.splice, Xt = Object.getOwnPropertySymbols, te = Jt ? Jt.isBuffer : void 0, Ce = Ae(Object.keys, Object), Ot = pe(V, "DataView"), re = pe(V, "Map"), Ft = pe(V, "Promise"), Ye = pe(V, "Set"), dn = pe(V, "WeakMap"), Ue = pe(Object, "create"), Qe = Yt(Ot), Se = Yt(re), fn = Yt(Ft), Je = Yt(Ye),
|
|
2144
|
+
), Jt = pt ? V.Buffer : void 0, le = V.Symbol, St = V.Uint8Array, xt = Ae(Object.getPrototypeOf, Object), zt = Object.create, ne = fe.propertyIsEnumerable, Pe = De.splice, Xt = Object.getOwnPropertySymbols, te = Jt ? Jt.isBuffer : void 0, Ce = Ae(Object.keys, Object), Ot = pe(V, "DataView"), re = pe(V, "Map"), Ft = pe(V, "Promise"), Ye = pe(V, "Set"), dn = pe(V, "WeakMap"), Ue = pe(Object, "create"), Qe = Yt(Ot), Se = Yt(re), fn = Yt(Ft), Je = Yt(Ye), k = Yt(dn), c = le ? le.prototype : void 0, f = c ? c.valueOf : void 0;
|
|
2123
2145
|
function b(l) {
|
|
2124
2146
|
var u = -1, m = l ? l.length : 0;
|
|
2125
2147
|
for (this.clear(); ++u < m; ) {
|
|
@@ -2325,7 +2347,7 @@ function go() {
|
|
|
2325
2347
|
return new l.constructor(m, l.byteOffset, l.byteLength);
|
|
2326
2348
|
}
|
|
2327
2349
|
function vr(l, u, m) {
|
|
2328
|
-
var I = u ? m(
|
|
2350
|
+
var I = u ? m(kt(l), !0) : kt(l);
|
|
2329
2351
|
return yt(I, ht, new l.constructor());
|
|
2330
2352
|
}
|
|
2331
2353
|
function wr(l) {
|
|
@@ -2384,7 +2406,7 @@ function go() {
|
|
|
2384
2406
|
return q;
|
|
2385
2407
|
case Je:
|
|
2386
2408
|
return j;
|
|
2387
|
-
case
|
|
2409
|
+
case k:
|
|
2388
2410
|
return rt;
|
|
2389
2411
|
}
|
|
2390
2412
|
return u;
|
|
@@ -2408,7 +2430,7 @@ function go() {
|
|
|
2408
2430
|
return pn(l, I);
|
|
2409
2431
|
case At:
|
|
2410
2432
|
case vt:
|
|
2411
|
-
case
|
|
2433
|
+
case Mt:
|
|
2412
2434
|
case Lt:
|
|
2413
2435
|
case g:
|
|
2414
2436
|
case x:
|
|
@@ -2504,7 +2526,7 @@ tr.exports;
|
|
|
2504
2526
|
var ol;
|
|
2505
2527
|
function mo() {
|
|
2506
2528
|
return ol || (ol = 1, function(r, t) {
|
|
2507
|
-
var e = 200, n = "__lodash_hash_undefined__", s = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", h = "[object Array]", d = "[object AsyncFunction]", y = "[object Boolean]", E = "[object Date]", p = "[object Error]", w = "[object Function]", A = "[object GeneratorFunction]", q = "[object Map]", D = "[object Number]", j = "[object Null]", K = "[object Object]", Z = "[object Promise]", rt = "[object Proxy]", nt = "[object RegExp]", bt = "[object Set]", At = "[object String]", vt = "[object Symbol]",
|
|
2529
|
+
var e = 200, n = "__lodash_hash_undefined__", s = 1, i = 2, o = 9007199254740991, a = "[object Arguments]", h = "[object Array]", d = "[object AsyncFunction]", y = "[object Boolean]", E = "[object Date]", p = "[object Error]", w = "[object Function]", A = "[object GeneratorFunction]", q = "[object Map]", D = "[object Number]", j = "[object Null]", K = "[object Object]", Z = "[object Promise]", rt = "[object Proxy]", nt = "[object RegExp]", bt = "[object Set]", At = "[object String]", vt = "[object Symbol]", Mt = "[object Undefined]", Lt = "[object WeakMap]", g = "[object ArrayBuffer]", x = "[object DataView]", v = "[object Float32Array]", O = "[object Float64Array]", U = "[object Int8Array]", L = "[object Int16Array]", $ = "[object Int32Array]", H = "[object Uint8Array]", z = "[object Uint8ClampedArray]", N = "[object Uint16Array]", _ = "[object Uint32Array]", S = /[\\^$.*+?()[\]{}|]/g, V = /^\[object .+?Constructor\]$/, W = /^(?:0|[1-9]\d*)$/, R = {};
|
|
2508
2530
|
R[v] = R[O] = R[U] = R[L] = R[$] = R[H] = R[z] = R[N] = R[_] = !0, R[a] = R[h] = R[g] = R[y] = R[x] = R[E] = R[p] = R[w] = R[q] = R[D] = R[K] = R[nt] = R[bt] = R[At] = R[Lt] = !1;
|
|
2509
2531
|
var pt = typeof rn == "object" && rn && rn.Object === Object && rn, ht = typeof self == "object" && self && self.Object === Object && self, lt = pt || ht || Function("return this")(), dt = t && !t.nodeType && t, gt = dt && !0 && r && !r.nodeType && r, yt = gt && gt.exports === dt, mt = yt && pt.process, ct = function() {
|
|
2510
2532
|
try {
|
|
@@ -2512,7 +2534,7 @@ function mo() {
|
|
|
2512
2534
|
} catch {
|
|
2513
2535
|
}
|
|
2514
2536
|
}(), Ct = ct && ct.isTypedArray;
|
|
2515
|
-
function
|
|
2537
|
+
function kt(l, u) {
|
|
2516
2538
|
for (var m = -1, I = l == null ? 0 : l.length, ft = 0, st = []; ++m < I; ) {
|
|
2517
2539
|
var Nt = l[m];
|
|
2518
2540
|
u(Nt, m, l) && (st[ft++] = Nt);
|
|
@@ -2568,7 +2590,7 @@ function mo() {
|
|
|
2568
2590
|
return l ? "Symbol(src)_1." + l : "";
|
|
2569
2591
|
}(), ne = Jt.toString, Pe = RegExp(
|
|
2570
2592
|
"^" + St.call(xt).replace(S, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2571
|
-
), Xt = yt ? lt.Buffer : void 0, te = lt.Symbol, Ce = lt.Uint8Array, Ot = Jt.propertyIsEnumerable, re = Pt.splice, Ft = te ? te.toStringTag : void 0, Ye = Object.getOwnPropertySymbols, dn = Xt ? Xt.isBuffer : void 0, Ue = Te(Object.keys, Object), Qe = He(lt, "DataView"), Se = He(lt, "Map"), fn = He(lt, "Promise"), Je = He(lt, "Set"),
|
|
2593
|
+
), Xt = yt ? lt.Buffer : void 0, te = lt.Symbol, Ce = lt.Uint8Array, Ot = Jt.propertyIsEnumerable, re = Pt.splice, Ft = te ? te.toStringTag : void 0, Ye = Object.getOwnPropertySymbols, dn = Xt ? Xt.isBuffer : void 0, Ue = Te(Object.keys, Object), Qe = He(lt, "DataView"), Se = He(lt, "Map"), fn = He(lt, "Promise"), Je = He(lt, "Set"), k = He(lt, "WeakMap"), c = He(Object, "create"), f = Yt(Qe), b = Yt(Se), T = Yt(fn), C = Yt(Je), B = Yt(k), P = te ? te.prototype : void 0, G = P ? P.valueOf : void 0;
|
|
2572
2594
|
function F(l) {
|
|
2573
2595
|
var u = -1, m = l == null ? 0 : l.length;
|
|
2574
2596
|
for (this.clear(); ++u < m; ) {
|
|
@@ -2719,7 +2741,7 @@ function mo() {
|
|
|
2719
2741
|
return Ln(l) ? I : Ae(I, m(l));
|
|
2720
2742
|
}
|
|
2721
2743
|
function pn(l) {
|
|
2722
|
-
return l == null ? l === void 0 ?
|
|
2744
|
+
return l == null ? l === void 0 ? Mt : j : Ft && Ft in Object(l) ? ze(l) : xr(l);
|
|
2723
2745
|
}
|
|
2724
2746
|
function vr(l) {
|
|
2725
2747
|
return qe(l) && pn(l) == a;
|
|
@@ -2885,11 +2907,11 @@ function mo() {
|
|
|
2885
2907
|
return I && (u ? l[Ft] = m : delete l[Ft]), ft;
|
|
2886
2908
|
}
|
|
2887
2909
|
var ms = Ye ? function(l) {
|
|
2888
|
-
return l == null ? [] : (l = Object(l),
|
|
2910
|
+
return l == null ? [] : (l = Object(l), kt(Ye(l), function(u) {
|
|
2889
2911
|
return Ot.call(l, u);
|
|
2890
2912
|
}));
|
|
2891
2913
|
} : Ns, Oe = pn;
|
|
2892
|
-
(Qe && Oe(new Qe(new ArrayBuffer(1))) != x || Se && Oe(new Se()) != q || fn && Oe(fn.resolve()) != Z || Je && Oe(new Je()) != bt ||
|
|
2914
|
+
(Qe && Oe(new Qe(new ArrayBuffer(1))) != x || Se && Oe(new Se()) != q || fn && Oe(fn.resolve()) != Z || Je && Oe(new Je()) != bt || k && Oe(new k()) != Lt) && (Oe = function(l) {
|
|
2893
2915
|
var u = pn(l), m = u == K ? l.constructor : void 0, I = m ? Yt(m) : "";
|
|
2894
2916
|
if (I)
|
|
2895
2917
|
switch (I) {
|
|
@@ -3034,7 +3056,7 @@ function bo() {
|
|
|
3034
3056
|
}(r || (r = {})), Ir.default = r, Ir;
|
|
3035
3057
|
}
|
|
3036
3058
|
var Rr = {}, ul;
|
|
3037
|
-
function
|
|
3059
|
+
function Md() {
|
|
3038
3060
|
if (ul) return Rr;
|
|
3039
3061
|
ul = 1, Object.defineProperty(Rr, "__esModule", { value: !0 });
|
|
3040
3062
|
const r = bo();
|
|
@@ -3083,14 +3105,14 @@ function kd() {
|
|
|
3083
3105
|
return Rr.default = t, Rr;
|
|
3084
3106
|
}
|
|
3085
3107
|
var hl;
|
|
3086
|
-
function
|
|
3108
|
+
function kd() {
|
|
3087
3109
|
return hl || (hl = 1, function(r, t) {
|
|
3088
3110
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.AttributeMap = t.OpIterator = t.Op = void 0;
|
|
3089
3111
|
const e = Id(), n = go(), s = mo(), i = Rd();
|
|
3090
3112
|
t.AttributeMap = i.default;
|
|
3091
3113
|
const o = bo();
|
|
3092
3114
|
t.Op = o.default;
|
|
3093
|
-
const a =
|
|
3115
|
+
const a = Md();
|
|
3094
3116
|
t.OpIterator = a.default;
|
|
3095
3117
|
const h = "\0", d = (E, p) => {
|
|
3096
3118
|
if (typeof E != "object" || E === null)
|
|
@@ -3207,9 +3229,9 @@ function Md() {
|
|
|
3207
3229
|
else if (typeof rt.retain == "number")
|
|
3208
3230
|
Z.retain == null ? nt.insert = Z.insert : nt.retain = Z.retain;
|
|
3209
3231
|
else {
|
|
3210
|
-
const At = Z.retain == null ? "insert" : "retain", [vt,
|
|
3232
|
+
const At = Z.retain == null ? "insert" : "retain", [vt, Mt, Lt] = d(Z[At], rt.retain), g = y.getHandler(vt);
|
|
3211
3233
|
nt[At] = {
|
|
3212
|
-
[vt]: g.compose(
|
|
3234
|
+
[vt]: g.compose(Mt, Lt, At === "retain")
|
|
3213
3235
|
};
|
|
3214
3236
|
}
|
|
3215
3237
|
const bt = i.default.compose(Z.attributes, rt.attributes, typeof Z.retain == "number");
|
|
@@ -3317,9 +3339,9 @@ function Md() {
|
|
|
3317
3339
|
if (typeof nt == "object" && nt !== null && typeof bt == "object" && bt !== null) {
|
|
3318
3340
|
const vt = Object.keys(nt)[0];
|
|
3319
3341
|
if (vt === Object.keys(bt)[0]) {
|
|
3320
|
-
const
|
|
3321
|
-
|
|
3322
|
-
[vt]:
|
|
3342
|
+
const Mt = y.getHandler(vt);
|
|
3343
|
+
Mt && (At = {
|
|
3344
|
+
[vt]: Mt.transform(nt[vt], bt[vt], w)
|
|
3323
3345
|
});
|
|
3324
3346
|
}
|
|
3325
3347
|
}
|
|
@@ -3346,8 +3368,8 @@ function Md() {
|
|
|
3346
3368
|
y.Op = o.default, y.OpIterator = a.default, y.AttributeMap = i.default, y.handlers = {}, t.default = y, r.exports = y, r.exports.default = y;
|
|
3347
3369
|
}(qr, qr.exports)), qr.exports;
|
|
3348
3370
|
}
|
|
3349
|
-
var Qt =
|
|
3350
|
-
const tt = /* @__PURE__ */
|
|
3371
|
+
var Qt = kd();
|
|
3372
|
+
const tt = /* @__PURE__ */ yi(Qt);
|
|
3351
3373
|
class Ne extends se {
|
|
3352
3374
|
static value() {
|
|
3353
3375
|
}
|
|
@@ -3375,7 +3397,7 @@ const Bd = {
|
|
|
3375
3397
|
function Yr(r) {
|
|
3376
3398
|
return r.replace(/[&<>"']/g, (t) => Bd[t]);
|
|
3377
3399
|
}
|
|
3378
|
-
const _e = class _e extends
|
|
3400
|
+
const _e = class _e extends mi {
|
|
3379
3401
|
static compare(t, e) {
|
|
3380
3402
|
const n = _e.order.indexOf(t), s = _e.order.indexOf(e);
|
|
3381
3403
|
return n >= 0 || s >= 0 ? n - s : t === e ? 0 : t < e ? -1 : 1;
|
|
@@ -3409,7 +3431,7 @@ X(_e, "order", [
|
|
|
3409
3431
|
"code"
|
|
3410
3432
|
// Must be higher
|
|
3411
3433
|
]);
|
|
3412
|
-
let
|
|
3434
|
+
let ke = _e;
|
|
3413
3435
|
const dl = 1;
|
|
3414
3436
|
class $t extends cr {
|
|
3415
3437
|
constructor() {
|
|
@@ -3471,7 +3493,7 @@ class $t extends cr {
|
|
|
3471
3493
|
$t.blotName = "block";
|
|
3472
3494
|
$t.tagName = "P";
|
|
3473
3495
|
$t.defaultChild = Ne;
|
|
3474
|
-
$t.allowedChildren = [Ne,
|
|
3496
|
+
$t.allowedChildren = [Ne, ke, se, we];
|
|
3475
3497
|
class ue extends se {
|
|
3476
3498
|
attach() {
|
|
3477
3499
|
super.attach(), this.attributes = new Zr(this.domNode);
|
|
@@ -3722,7 +3744,7 @@ function Dd() {
|
|
|
3722
3744
|
}(qs)), qs.exports;
|
|
3723
3745
|
}
|
|
3724
3746
|
var jd = Dd();
|
|
3725
|
-
const Pd = /* @__PURE__ */
|
|
3747
|
+
const Pd = /* @__PURE__ */ yi(jd), Qs = /* @__PURE__ */ new WeakMap(), Js = ["error", "warn", "log", "info"];
|
|
3726
3748
|
let ti = "warn";
|
|
3727
3749
|
function vo(r) {
|
|
3728
3750
|
if (ti && Js.indexOf(r) <= Js.indexOf(ti)) {
|
|
@@ -4004,7 +4026,7 @@ class $d {
|
|
|
4004
4026
|
update() {
|
|
4005
4027
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : J.sources.USER;
|
|
4006
4028
|
const e = this.lastRange, [n, s] = this.getRange();
|
|
4007
|
-
if (this.lastRange = n, this.lastNative = s, this.lastRange != null && (this.savedRange = this.lastRange), !
|
|
4029
|
+
if (this.lastRange = n, this.lastNative = s, this.lastRange != null && (this.savedRange = this.lastRange), !gi(e, this.lastRange)) {
|
|
4008
4030
|
if (!this.composing && s != null && s.native.collapsed && s.start.node !== this.cursor.textNode) {
|
|
4009
4031
|
const o = this.cursor.restore();
|
|
4010
4032
|
o && this.setNativeRange(o.startNode, o.startOffset, o.endNode, o.endOffset);
|
|
@@ -4183,14 +4205,14 @@ class zd {
|
|
|
4183
4205
|
};
|
|
4184
4206
|
t = new tt().retain(a).concat(d.diff(y, E)).reduce((w, A) => A.insert ? w.insert(A.insert, o) : w.push(A), new tt()), this.delta = s.compose(t);
|
|
4185
4207
|
} else
|
|
4186
|
-
this.delta = this.getDelta(), (!t || !
|
|
4208
|
+
this.delta = this.getDelta(), (!t || !gi(s.compose(t), this.delta)) && (t = s.diff(this.delta, n));
|
|
4187
4209
|
return t;
|
|
4188
4210
|
}
|
|
4189
4211
|
}
|
|
4190
|
-
function
|
|
4212
|
+
function Mn(r, t, e) {
|
|
4191
4213
|
if (r.length === 0) {
|
|
4192
|
-
const [w] =
|
|
4193
|
-
return t <= 0 ? `</li></${w}>` : `</li></${w}>${
|
|
4214
|
+
const [w] = Ms(e.pop());
|
|
4215
|
+
return t <= 0 ? `</li></${w}>` : `</li></${w}>${Mn([], t - 1, e)}`;
|
|
4194
4216
|
}
|
|
4195
4217
|
const [{
|
|
4196
4218
|
child: n,
|
|
@@ -4198,14 +4220,14 @@ function kn(r, t, e) {
|
|
|
4198
4220
|
length: i,
|
|
4199
4221
|
indent: o,
|
|
4200
4222
|
type: a
|
|
4201
|
-
}, ...h] = r, [d, y] =
|
|
4223
|
+
}, ...h] = r, [d, y] = Ms(a);
|
|
4202
4224
|
if (o > t)
|
|
4203
|
-
return e.push(a), o === t + 1 ? `<${d}><li${y}>${ur(n, s, i)}${
|
|
4225
|
+
return e.push(a), o === t + 1 ? `<${d}><li${y}>${ur(n, s, i)}${Mn(h, o, e)}` : `<${d}><li>${Mn(r, t + 1, e)}`;
|
|
4204
4226
|
const E = e[e.length - 1];
|
|
4205
4227
|
if (o === t && a === E)
|
|
4206
|
-
return `</li><li${y}>${ur(n, s, i)}${
|
|
4207
|
-
const [p] =
|
|
4208
|
-
return `</li></${p}>${
|
|
4228
|
+
return `</li><li${y}>${ur(n, s, i)}${Mn(h, o, e)}`;
|
|
4229
|
+
const [p] = Ms(e.pop());
|
|
4230
|
+
return `</li></${p}>${Mn(r, t - 1, e)}`;
|
|
4209
4231
|
}
|
|
4210
4232
|
function ur(r, t, e) {
|
|
4211
4233
|
let n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
@@ -4225,7 +4247,7 @@ function ur(r, t, e) {
|
|
|
4225
4247
|
indent: w.indent || 0,
|
|
4226
4248
|
type: w.list
|
|
4227
4249
|
});
|
|
4228
|
-
}),
|
|
4250
|
+
}), Mn(d, -1, []);
|
|
4229
4251
|
}
|
|
4230
4252
|
const s = [];
|
|
4231
4253
|
if (r.children.forEachAt(t, e, (d, y, E) => {
|
|
@@ -4247,7 +4269,7 @@ function Fd(r, t) {
|
|
|
4247
4269
|
return s === r[n] ? e[n] = s : Array.isArray(s) ? s.indexOf(r[n]) < 0 ? e[n] = s.concat([r[n]]) : e[n] = s : e[n] = [s, r[n]], e;
|
|
4248
4270
|
}, {});
|
|
4249
4271
|
}
|
|
4250
|
-
function
|
|
4272
|
+
function Ms(r) {
|
|
4251
4273
|
const t = r === "ordered" ? "ol" : "ul";
|
|
4252
4274
|
switch (r) {
|
|
4253
4275
|
case "checked":
|
|
@@ -4299,19 +4321,19 @@ class he {
|
|
|
4299
4321
|
}
|
|
4300
4322
|
}
|
|
4301
4323
|
X(he, "DEFAULTS", {});
|
|
4302
|
-
const
|
|
4324
|
+
const Mr = "\uFEFF";
|
|
4303
4325
|
class vi extends se {
|
|
4304
4326
|
constructor(t, e) {
|
|
4305
4327
|
super(t, e), this.contentNode = document.createElement("span"), this.contentNode.setAttribute("contenteditable", "false"), Array.from(this.domNode.childNodes).forEach((n) => {
|
|
4306
4328
|
this.contentNode.appendChild(n);
|
|
4307
|
-
}), this.leftGuard = document.createTextNode(
|
|
4329
|
+
}), this.leftGuard = document.createTextNode(Mr), this.rightGuard = document.createTextNode(Mr), this.domNode.appendChild(this.leftGuard), this.domNode.appendChild(this.contentNode), this.domNode.appendChild(this.rightGuard);
|
|
4308
4330
|
}
|
|
4309
4331
|
index(t, e) {
|
|
4310
4332
|
return t === this.leftGuard ? 0 : t === this.rightGuard ? 1 : super.index(t, e);
|
|
4311
4333
|
}
|
|
4312
4334
|
restore(t) {
|
|
4313
4335
|
let e = null, n;
|
|
4314
|
-
const s = t.data.split(
|
|
4336
|
+
const s = t.data.split(Mr).join("");
|
|
4315
4337
|
if (t === this.leftGuard)
|
|
4316
4338
|
if (this.prev instanceof we) {
|
|
4317
4339
|
const i = this.prev.length();
|
|
@@ -4331,7 +4353,7 @@ class vi extends se {
|
|
|
4331
4353
|
startNode: n,
|
|
4332
4354
|
startOffset: s.length
|
|
4333
4355
|
}));
|
|
4334
|
-
return t.data =
|
|
4356
|
+
return t.data = Mr, e;
|
|
4335
4357
|
}
|
|
4336
4358
|
update(t, e) {
|
|
4337
4359
|
t.forEach((n) => {
|
|
@@ -4393,7 +4415,7 @@ const Kd = (r) => r.parentElement || r.getRootNode().host || null, Wd = (r) => {
|
|
|
4393
4415
|
bottom: t.top + r.clientHeight * n,
|
|
4394
4416
|
left: t.left
|
|
4395
4417
|
};
|
|
4396
|
-
},
|
|
4418
|
+
}, kr = (r) => {
|
|
4397
4419
|
const t = parseInt(r, 10);
|
|
4398
4420
|
return Number.isNaN(t) ? 0 : t;
|
|
4399
4421
|
}, ml = (r, t, e, n, s, i) => r < e && t > n ? 0 : r < e ? -(e - r + s) : t > n ? t - r > n - e ? r + s - e : t - n + i : 0, Zd = (r, t) => {
|
|
@@ -4406,7 +4428,7 @@ const Kd = (r) => r.parentElement || r.getRootNode().host || null, Wd = (r) => {
|
|
|
4406
4428
|
right: ((i = window.visualViewport) == null ? void 0 : i.width) ?? e.documentElement.clientWidth,
|
|
4407
4429
|
bottom: ((o = window.visualViewport) == null ? void 0 : o.height) ?? e.documentElement.clientHeight,
|
|
4408
4430
|
left: 0
|
|
4409
|
-
} : Wd(s), y = getComputedStyle(s), E = ml(n.left, n.right, d.left, d.right,
|
|
4431
|
+
} : Wd(s), y = getComputedStyle(s), E = ml(n.left, n.right, d.left, d.right, kr(y.scrollPaddingLeft), kr(y.scrollPaddingRight)), p = ml(n.top, n.bottom, d.top, d.bottom, kr(y.scrollPaddingTop), kr(y.scrollPaddingBottom));
|
|
4410
4432
|
if (E || p)
|
|
4411
4433
|
if (h)
|
|
4412
4434
|
(a = e.defaultView) == null || a.scrollBy(E, p);
|
|
@@ -4474,7 +4496,7 @@ const me = class me {
|
|
|
4474
4496
|
this.options.debug && me.debug(this.options.debug);
|
|
4475
4497
|
const n = this.container.innerHTML.trim();
|
|
4476
4498
|
this.container.classList.add("ql-container"), this.container.innerHTML = "", Qs.set(this.container, this), this.root = this.addContainer("ql-editor"), this.root.classList.add("ql-blank"), this.emitter = new J();
|
|
4477
|
-
const s =
|
|
4499
|
+
const s = bi.blotName, i = this.options.registry.query(s);
|
|
4478
4500
|
if (!i || !("blotName" in i))
|
|
4479
4501
|
throw new Error(`Cannot initialize Quill without "${s}" blot`);
|
|
4480
4502
|
if (this.scroll = new i(this.options.registry, this.root, {
|
|
@@ -4718,11 +4740,11 @@ X(me, "DEFAULTS", {
|
|
|
4718
4740
|
"core/module": he,
|
|
4719
4741
|
"core/theme": Hn
|
|
4720
4742
|
});
|
|
4721
|
-
let
|
|
4743
|
+
let M = me;
|
|
4722
4744
|
function bl(r) {
|
|
4723
4745
|
return typeof r == "string" ? document.querySelector(r) : r;
|
|
4724
4746
|
}
|
|
4725
|
-
function
|
|
4747
|
+
function ks(r) {
|
|
4726
4748
|
return Object.entries(r ?? {}).reduce((t, e) => {
|
|
4727
4749
|
let [n, s] = e;
|
|
4728
4750
|
return {
|
|
@@ -4738,24 +4760,24 @@ function Jd(r, t) {
|
|
|
4738
4760
|
const e = bl(r);
|
|
4739
4761
|
if (!e)
|
|
4740
4762
|
throw new Error("Invalid Quill container");
|
|
4741
|
-
const s = !t.theme || t.theme ===
|
|
4763
|
+
const s = !t.theme || t.theme === M.DEFAULTS.theme ? Hn : M.import(`themes/${t.theme}`);
|
|
4742
4764
|
if (!s)
|
|
4743
4765
|
throw new Error(`Invalid theme ${t.theme}. Did you register it?`);
|
|
4744
4766
|
const {
|
|
4745
4767
|
modules: i,
|
|
4746
4768
|
...o
|
|
4747
|
-
} =
|
|
4769
|
+
} = M.DEFAULTS, {
|
|
4748
4770
|
modules: a,
|
|
4749
4771
|
...h
|
|
4750
4772
|
} = s.DEFAULTS;
|
|
4751
|
-
let d =
|
|
4773
|
+
let d = ks(t.modules);
|
|
4752
4774
|
d != null && d.toolbar && d.toolbar.constructor !== Object && (d = {
|
|
4753
4775
|
...d,
|
|
4754
4776
|
toolbar: {
|
|
4755
4777
|
container: d.toolbar
|
|
4756
4778
|
}
|
|
4757
4779
|
});
|
|
4758
|
-
const y = on({},
|
|
4780
|
+
const y = on({}, ks(i), ks(a), d), E = {
|
|
4759
4781
|
...o,
|
|
4760
4782
|
...yl(h),
|
|
4761
4783
|
...yl(t)
|
|
@@ -4769,7 +4791,7 @@ function Jd(r, t) {
|
|
|
4769
4791
|
modules: Object.entries(y).reduce((w, A) => {
|
|
4770
4792
|
let [q, D] = A;
|
|
4771
4793
|
if (!D) return w;
|
|
4772
|
-
const j =
|
|
4794
|
+
const j = M.import(`modules/${q}`);
|
|
4773
4795
|
return j == null ? (jn.error(`Cannot load ${q} module. Are you sure you registered it?`), w) : {
|
|
4774
4796
|
...w,
|
|
4775
4797
|
// @ts-expect-error
|
|
@@ -4811,7 +4833,7 @@ function wl(r) {
|
|
|
4811
4833
|
function xl(r) {
|
|
4812
4834
|
return typeof r.updateContent == "function";
|
|
4813
4835
|
}
|
|
4814
|
-
class
|
|
4836
|
+
class kn extends bi {
|
|
4815
4837
|
constructor(t, e, n) {
|
|
4816
4838
|
let {
|
|
4817
4839
|
emitter: s
|
|
@@ -5018,7 +5040,7 @@ class Mn extends yi {
|
|
|
5018
5040
|
}), i;
|
|
5019
5041
|
}
|
|
5020
5042
|
}
|
|
5021
|
-
X(
|
|
5043
|
+
X(kn, "blotName", "scroll"), X(kn, "className", "ql-editor"), X(kn, "tagName", "DIV"), X(kn, "defaultChild", $t), X(kn, "allowedChildren", [$t, ue, Nn]);
|
|
5022
5044
|
function Bs(r, t, e) {
|
|
5023
5045
|
e.reduce((n, s) => {
|
|
5024
5046
|
const i = Qt.Op.length(s);
|
|
@@ -5046,7 +5068,7 @@ function Bs(r, t, e) {
|
|
|
5046
5068
|
const wi = {
|
|
5047
5069
|
scope: et.BLOCK,
|
|
5048
5070
|
whitelist: ["right", "center", "justify"]
|
|
5049
|
-
}, tf = new
|
|
5071
|
+
}, tf = new Me("align", "align", wi), wo = new xe("align", "ql-align", wi), xo = new hn("align", "text-align", wi);
|
|
5050
5072
|
class No extends hn {
|
|
5051
5073
|
value(t) {
|
|
5052
5074
|
let e = super.value(t);
|
|
@@ -5079,11 +5101,11 @@ ${Yr(this.code(t, e))}
|
|
|
5079
5101
|
}
|
|
5080
5102
|
class Zt extends $t {
|
|
5081
5103
|
static register() {
|
|
5082
|
-
|
|
5104
|
+
M.register(An);
|
|
5083
5105
|
}
|
|
5084
5106
|
}
|
|
5085
5107
|
X(Zt, "TAB", " ");
|
|
5086
|
-
class Ai extends
|
|
5108
|
+
class Ai extends ke {
|
|
5087
5109
|
}
|
|
5088
5110
|
Ai.blotName = "code";
|
|
5089
5111
|
Ai.tagName = "CODE";
|
|
@@ -5099,7 +5121,7 @@ Zt.requiredContainer = An;
|
|
|
5099
5121
|
const Ei = {
|
|
5100
5122
|
scope: et.BLOCK,
|
|
5101
5123
|
whitelist: ["rtl"]
|
|
5102
|
-
}, Ao = new
|
|
5124
|
+
}, Ao = new Me("direction", "dir", Ei), Eo = new xe("direction", "ql-direction", Ei), To = new hn("direction", "direction", Ei), Co = {
|
|
5103
5125
|
scope: et.INLINE,
|
|
5104
5126
|
whitelist: ["serif", "monospace"]
|
|
5105
5127
|
}, So = new xe("font", "ql-font", Co);
|
|
@@ -5194,7 +5216,7 @@ class Qr extends he {
|
|
|
5194
5216
|
if (t.defaultPrevented || t.isComposing || t.keyCode === 229 && (t.key === "Enter" || t.key === "Backspace")) return;
|
|
5195
5217
|
const s = (this.bindings[t.key] || []).concat(this.bindings[t.which] || []).filter((j) => Qr.match(t, j));
|
|
5196
5218
|
if (s.length === 0) return;
|
|
5197
|
-
const i =
|
|
5219
|
+
const i = M.find(t.target, !0);
|
|
5198
5220
|
if (i && i.scroll !== this.quill.scroll) return;
|
|
5199
5221
|
const o = this.quill.getSelection();
|
|
5200
5222
|
if (o == null || !this.quill.hasFocus()) return;
|
|
@@ -5215,7 +5237,7 @@ class Qr extends he {
|
|
|
5215
5237
|
if (Array.isArray(j.format)) {
|
|
5216
5238
|
if (j.format.every((K) => q.format[K] == null))
|
|
5217
5239
|
return !1;
|
|
5218
|
-
} else if (typeof j.format == "object" && !Object.keys(j.format).every((K) => j.format[K] === !0 ? q.format[K] != null : j.format[K] === !1 ? q.format[K] == null :
|
|
5240
|
+
} else if (typeof j.format == "object" && !Object.keys(j.format).every((K) => j.format[K] === !0 ? q.format[K] != null : j.format[K] === !1 ? q.format[K] == null : gi(j.format[K], q.format[K])))
|
|
5219
5241
|
return !1;
|
|
5220
5242
|
return j.prefix != null && !j.prefix.test(q.prefix) || j.suffix != null && !j.suffix.test(q.suffix) ? !1 : j.handler.call(this, o, q, j) !== !0;
|
|
5221
5243
|
}) && t.preventDefault();
|
|
@@ -5237,7 +5259,7 @@ class Qr extends he {
|
|
|
5237
5259
|
}
|
|
5238
5260
|
}
|
|
5239
5261
|
}
|
|
5240
|
-
this.quill.updateContents(o,
|
|
5262
|
+
this.quill.updateContents(o, M.sources.USER), this.quill.focus();
|
|
5241
5263
|
}
|
|
5242
5264
|
handleDelete(t, e) {
|
|
5243
5265
|
const n = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix) ? 2 : 1;
|
|
@@ -5252,7 +5274,7 @@ class Qr extends he {
|
|
|
5252
5274
|
s = Qt.AttributeMap.diff(h, d) || {}, Object.keys(s).length > 0 && (o = o.retain(a.length() - 1).retain(1, s));
|
|
5253
5275
|
}
|
|
5254
5276
|
}
|
|
5255
|
-
this.quill.updateContents(o,
|
|
5277
|
+
this.quill.updateContents(o, M.sources.USER), this.quill.focus();
|
|
5256
5278
|
}
|
|
5257
5279
|
handleDeleteRange(t) {
|
|
5258
5280
|
Ti({
|
|
@@ -5263,7 +5285,7 @@ class Qr extends he {
|
|
|
5263
5285
|
handleEnter(t, e) {
|
|
5264
5286
|
const n = Object.keys(e.format).reduce((i, o) => (this.quill.scroll.query(o, et.BLOCK) && !Array.isArray(e.format[o]) && (i[o] = e.format[o]), i), {}), s = new tt().retain(t.index).delete(t.length).insert(`
|
|
5265
5287
|
`, n);
|
|
5266
|
-
this.quill.updateContents(s,
|
|
5288
|
+
this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(t.index + 1, M.sources.SILENT), this.quill.focus();
|
|
5267
5289
|
}
|
|
5268
5290
|
}
|
|
5269
5291
|
const of = {
|
|
@@ -5276,7 +5298,7 @@ const of = {
|
|
|
5276
5298
|
key: "Tab",
|
|
5277
5299
|
format: ["blockquote", "indent", "list"],
|
|
5278
5300
|
handler(r, t) {
|
|
5279
|
-
return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "+1",
|
|
5301
|
+
return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "+1", M.sources.USER), !1);
|
|
5280
5302
|
}
|
|
5281
5303
|
},
|
|
5282
5304
|
outdent: {
|
|
@@ -5285,7 +5307,7 @@ const of = {
|
|
|
5285
5307
|
format: ["blockquote", "indent", "list"],
|
|
5286
5308
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
5287
5309
|
handler(r, t) {
|
|
5288
|
-
return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "-1",
|
|
5310
|
+
return t.collapsed && t.offset !== 0 ? !0 : (this.quill.format("indent", "-1", M.sources.USER), !1);
|
|
5289
5311
|
}
|
|
5290
5312
|
},
|
|
5291
5313
|
"outdent backspace": {
|
|
@@ -5298,7 +5320,7 @@ const of = {
|
|
|
5298
5320
|
format: ["indent", "list"],
|
|
5299
5321
|
offset: 0,
|
|
5300
5322
|
handler(r, t) {
|
|
5301
|
-
t.format.indent != null ? this.quill.format("indent", "-1",
|
|
5323
|
+
t.format.indent != null ? this.quill.format("indent", "-1", M.sources.USER) : t.format.list != null && this.quill.format("list", !1, M.sources.USER);
|
|
5302
5324
|
}
|
|
5303
5325
|
},
|
|
5304
5326
|
"indent code-block": Nl(!0),
|
|
@@ -5309,7 +5331,7 @@ const of = {
|
|
|
5309
5331
|
collapsed: !0,
|
|
5310
5332
|
prefix: /\t$/,
|
|
5311
5333
|
handler(r) {
|
|
5312
|
-
this.quill.deleteText(r.index - 1, 1,
|
|
5334
|
+
this.quill.deleteText(r.index - 1, 1, M.sources.USER);
|
|
5313
5335
|
}
|
|
5314
5336
|
},
|
|
5315
5337
|
tab: {
|
|
@@ -5318,7 +5340,7 @@ const of = {
|
|
|
5318
5340
|
if (t.format.table) return !0;
|
|
5319
5341
|
this.quill.history.cutoff();
|
|
5320
5342
|
const e = new tt().retain(r.index).delete(r.length).insert(" ");
|
|
5321
|
-
return this.quill.updateContents(e,
|
|
5343
|
+
return this.quill.updateContents(e, M.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index + 1, M.sources.SILENT), !1;
|
|
5322
5344
|
}
|
|
5323
5345
|
},
|
|
5324
5346
|
"blockquote empty enter": {
|
|
@@ -5327,7 +5349,7 @@ const of = {
|
|
|
5327
5349
|
format: ["blockquote"],
|
|
5328
5350
|
empty: !0,
|
|
5329
5351
|
handler() {
|
|
5330
|
-
this.quill.format("blockquote", !1,
|
|
5352
|
+
this.quill.format("blockquote", !1, M.sources.USER);
|
|
5331
5353
|
}
|
|
5332
5354
|
},
|
|
5333
5355
|
"list empty enter": {
|
|
@@ -5339,7 +5361,7 @@ const of = {
|
|
|
5339
5361
|
const e = {
|
|
5340
5362
|
list: !1
|
|
5341
5363
|
};
|
|
5342
|
-
t.format.indent && (e.indent = !1), this.quill.formatLine(r.index, r.length, e,
|
|
5364
|
+
t.format.indent && (e.indent = !1), this.quill.formatLine(r.index, r.length, e, M.sources.USER);
|
|
5343
5365
|
}
|
|
5344
5366
|
},
|
|
5345
5367
|
"checklist enter": {
|
|
@@ -5357,7 +5379,7 @@ const of = {
|
|
|
5357
5379
|
`, n).retain(t.length() - e - 1).retain(1, {
|
|
5358
5380
|
list: "unchecked"
|
|
5359
5381
|
});
|
|
5360
|
-
this.quill.updateContents(s,
|
|
5382
|
+
this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(r.index + 1, M.sources.SILENT), this.quill.scrollSelectionIntoView();
|
|
5361
5383
|
}
|
|
5362
5384
|
},
|
|
5363
5385
|
"header enter": {
|
|
@@ -5370,7 +5392,7 @@ const of = {
|
|
|
5370
5392
|
`, t.format).retain(e.length() - n - 1).retain(1, {
|
|
5371
5393
|
header: null
|
|
5372
5394
|
});
|
|
5373
|
-
this.quill.updateContents(s,
|
|
5395
|
+
this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(r.index + 1, M.sources.SILENT), this.quill.scrollSelectionIntoView();
|
|
5374
5396
|
}
|
|
5375
5397
|
},
|
|
5376
5398
|
"table backspace": {
|
|
@@ -5402,12 +5424,12 @@ const of = {
|
|
|
5402
5424
|
if (o < 0) {
|
|
5403
5425
|
const h = new tt().retain(a).insert(`
|
|
5404
5426
|
`);
|
|
5405
|
-
this.quill.updateContents(h,
|
|
5427
|
+
this.quill.updateContents(h, M.sources.USER), this.quill.setSelection(r.index + 1, r.length, M.sources.SILENT);
|
|
5406
5428
|
} else if (o > 0) {
|
|
5407
5429
|
a += e.length();
|
|
5408
5430
|
const h = new tt().retain(a).insert(`
|
|
5409
5431
|
`);
|
|
5410
|
-
this.quill.updateContents(h,
|
|
5432
|
+
this.quill.updateContents(h, M.sources.USER), this.quill.setSelection(a, M.sources.USER);
|
|
5411
5433
|
}
|
|
5412
5434
|
}
|
|
5413
5435
|
}
|
|
@@ -5421,7 +5443,7 @@ const of = {
|
|
|
5421
5443
|
event: e,
|
|
5422
5444
|
line: n
|
|
5423
5445
|
} = t, s = n.offset(this.quill.scroll);
|
|
5424
|
-
e.shiftKey ? this.quill.setSelection(s - 1,
|
|
5446
|
+
e.shiftKey ? this.quill.setSelection(s - 1, M.sources.USER) : this.quill.setSelection(s + n.length(), M.sources.USER);
|
|
5425
5447
|
}
|
|
5426
5448
|
},
|
|
5427
5449
|
"list autofill": {
|
|
@@ -5456,11 +5478,11 @@ const of = {
|
|
|
5456
5478
|
default:
|
|
5457
5479
|
i = "ordered";
|
|
5458
5480
|
}
|
|
5459
|
-
this.quill.insertText(r.index, " ",
|
|
5481
|
+
this.quill.insertText(r.index, " ", M.sources.USER), this.quill.history.cutoff();
|
|
5460
5482
|
const o = new tt().retain(r.index - s).delete(e + 1).retain(n.length() - 2 - s).retain(1, {
|
|
5461
5483
|
list: i
|
|
5462
5484
|
});
|
|
5463
|
-
return this.quill.updateContents(o,
|
|
5485
|
+
return this.quill.updateContents(o, M.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(r.index - e, M.sources.SILENT), !1;
|
|
5464
5486
|
}
|
|
5465
5487
|
},
|
|
5466
5488
|
"code exit": {
|
|
@@ -5477,7 +5499,7 @@ const of = {
|
|
|
5477
5499
|
const i = new tt().retain(r.index + t.length() - e - 2).retain(1, {
|
|
5478
5500
|
"code-block": null
|
|
5479
5501
|
}).delete(1);
|
|
5480
|
-
return this.quill.updateContents(i,
|
|
5502
|
+
return this.quill.updateContents(i, M.sources.USER), this.quill.setSelection(r.index - 1, M.sources.SILENT), !1;
|
|
5481
5503
|
}
|
|
5482
5504
|
return !0;
|
|
5483
5505
|
}
|
|
@@ -5506,7 +5528,7 @@ function Nl(r) {
|
|
|
5506
5528
|
TAB: i
|
|
5507
5529
|
} = s;
|
|
5508
5530
|
if (t.length === 0 && !n.shiftKey) {
|
|
5509
|
-
this.quill.insertText(t.index, i,
|
|
5531
|
+
this.quill.insertText(t.index, i, M.sources.USER), this.quill.setSelection(t.index + i.length, M.sources.SILENT);
|
|
5510
5532
|
return;
|
|
5511
5533
|
}
|
|
5512
5534
|
const o = t.length === 0 ? this.quill.getLines(t.index, 1) : this.quill.getLines(t);
|
|
@@ -5516,7 +5538,7 @@ function Nl(r) {
|
|
|
5516
5538
|
} = t;
|
|
5517
5539
|
o.forEach((d, y) => {
|
|
5518
5540
|
r ? (d.insertAt(0, i), y === 0 ? a += i.length : h += i.length) : d.domNode.textContent.startsWith(i) && (d.deleteAt(0, i.length), y === 0 ? a -= i.length : h -= i.length);
|
|
5519
|
-
}), this.quill.update(
|
|
5541
|
+
}), this.quill.update(M.sources.USER), this.quill.setSelection(a, h, M.sources.SILENT);
|
|
5520
5542
|
}
|
|
5521
5543
|
};
|
|
5522
5544
|
}
|
|
@@ -5532,7 +5554,7 @@ function Dr(r, t) {
|
|
|
5532
5554
|
} = n;
|
|
5533
5555
|
r === "ArrowRight" && (s += n.length + 1);
|
|
5534
5556
|
const [i] = this.quill.getLeaf(s);
|
|
5535
|
-
return i instanceof se ? (r === "ArrowLeft" ? t ? this.quill.setSelection(n.index - 1, n.length + 1,
|
|
5557
|
+
return i instanceof se ? (r === "ArrowLeft" ? t ? this.quill.setSelection(n.index - 1, n.length + 1, M.sources.USER) : this.quill.setSelection(n.index - 1, M.sources.USER) : t ? this.quill.setSelection(n.index, n.length + 1, M.sources.USER) : this.quill.setSelection(n.index + n.length + 1, M.sources.USER), !1) : !0;
|
|
5536
5558
|
}
|
|
5537
5559
|
};
|
|
5538
5560
|
}
|
|
@@ -5541,7 +5563,7 @@ function Ds(r) {
|
|
|
5541
5563
|
key: r[0],
|
|
5542
5564
|
shortKey: !0,
|
|
5543
5565
|
handler(t, e) {
|
|
5544
|
-
this.quill.format(r, !e.format[r],
|
|
5566
|
+
this.quill.format(r, !e.format[r], M.sources.USER);
|
|
5545
5567
|
}
|
|
5546
5568
|
};
|
|
5547
5569
|
}
|
|
@@ -5558,11 +5580,11 @@ function Al(r) {
|
|
|
5558
5580
|
for (; a.prev != null; )
|
|
5559
5581
|
a = a.prev, o = o.next;
|
|
5560
5582
|
const h = o.offset(this.quill.scroll) + Math.min(e.offset, o.length() - 1);
|
|
5561
|
-
this.quill.setSelection(h, 0,
|
|
5583
|
+
this.quill.setSelection(h, 0, M.sources.USER);
|
|
5562
5584
|
}
|
|
5563
5585
|
} else {
|
|
5564
5586
|
const o = s.table()[n];
|
|
5565
|
-
o != null && (r ? this.quill.setSelection(o.offset(this.quill.scroll) + o.length() - 1, 0,
|
|
5587
|
+
o != null && (r ? this.quill.setSelection(o.offset(this.quill.scroll) + o.length() - 1, 0, M.sources.USER) : this.quill.setSelection(o.offset(this.quill.scroll), 0, M.sources.USER));
|
|
5566
5588
|
}
|
|
5567
5589
|
return !1;
|
|
5568
5590
|
}
|
|
@@ -5590,7 +5612,7 @@ function Ti(r) {
|
|
|
5590
5612
|
const i = n[0].formats(), o = n[n.length - 1].formats();
|
|
5591
5613
|
s = Qt.AttributeMap.diff(o, i) || {};
|
|
5592
5614
|
}
|
|
5593
|
-
t.deleteText(e,
|
|
5615
|
+
t.deleteText(e, M.sources.USER), Object.keys(s).length > 0 && t.formatLine(e.index, 1, s, M.sources.USER), t.setSelection(e.index, M.sources.SILENT);
|
|
5594
5616
|
}
|
|
5595
5617
|
function cf(r, t, e, n) {
|
|
5596
5618
|
return t.prev == null && t.next == null ? e.prev == null && e.next == null ? n === 0 ? -1 : 1 : e.prev == null ? -1 : 1 : t.prev == null ? -1 : t.next == null ? 1 : null;
|
|
@@ -5663,7 +5685,7 @@ const xf = [wf, pf], Nf = (r) => {
|
|
|
5663
5685
|
r.documentElement && xf.forEach((t) => {
|
|
5664
5686
|
t(r);
|
|
5665
5687
|
});
|
|
5666
|
-
}, Af = Xe("quill:clipboard"), Ef = [[Node.TEXT_NODE, Bf], [Node.TEXT_NODE, Cl], ["br", Of], [Node.ELEMENT_NODE, Cl], [Node.ELEMENT_NODE, Lf], [Node.ELEMENT_NODE, Sf], [Node.ELEMENT_NODE,
|
|
5688
|
+
}, Af = Xe("quill:clipboard"), Ef = [[Node.TEXT_NODE, Bf], [Node.TEXT_NODE, Cl], ["br", Of], [Node.ELEMENT_NODE, Cl], [Node.ELEMENT_NODE, Lf], [Node.ELEMENT_NODE, Sf], [Node.ELEMENT_NODE, Mf], ["li", If], ["ol, ul", Rf], ["pre", qf], ["tr", kf], ["b", js("bold")], ["i", js("italic")], ["strike", js("strike")], ["style", _f]], Tf = [tf, Ao].reduce((r, t) => (r[t.keyName] = t, r), {}), Tl = [xo, Ni, xi, To, Lo, qo].reduce((r, t) => (r[t.keyName] = t, r), {});
|
|
5667
5689
|
class _o extends he {
|
|
5668
5690
|
constructor(t, e) {
|
|
5669
5691
|
super(t, e), this.quill.root.addEventListener("copy", (n) => this.onCaptureCopy(n, !1)), this.quill.root.addEventListener("cut", (n) => this.onCaptureCopy(n, !0)), this.quill.root.addEventListener("paste", this.onCapturePaste.bind(this)), this.matchers = [], Ef.concat(this.options.matchers ?? []).forEach((n) => {
|
|
@@ -5699,19 +5721,19 @@ class _o extends he {
|
|
|
5699
5721
|
return Ci(this.quill.scroll, n, i, o, s);
|
|
5700
5722
|
}
|
|
5701
5723
|
dangerouslyPasteHTML(t, e) {
|
|
5702
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
5724
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : M.sources.API;
|
|
5703
5725
|
if (typeof t == "string") {
|
|
5704
5726
|
const s = this.convert({
|
|
5705
5727
|
html: t,
|
|
5706
5728
|
text: ""
|
|
5707
5729
|
});
|
|
5708
|
-
this.quill.setContents(s, e), this.quill.setSelection(0,
|
|
5730
|
+
this.quill.setContents(s, e), this.quill.setSelection(0, M.sources.SILENT);
|
|
5709
5731
|
} else {
|
|
5710
5732
|
const s = this.convert({
|
|
5711
5733
|
html: e,
|
|
5712
5734
|
text: ""
|
|
5713
5735
|
});
|
|
5714
|
-
this.quill.updateContents(new tt().retain(t).concat(s), n), this.quill.setSelection(t + s.length(),
|
|
5736
|
+
this.quill.updateContents(new tt().retain(t).concat(s), n), this.quill.setSelection(t + s.length(), M.sources.SILENT);
|
|
5715
5737
|
}
|
|
5716
5738
|
}
|
|
5717
5739
|
onCaptureCopy(t) {
|
|
@@ -5787,7 +5809,7 @@ class _o extends he {
|
|
|
5787
5809
|
html: s
|
|
5788
5810
|
});
|
|
5789
5811
|
const a = new tt().retain(t.index).delete(t.length).concat(o);
|
|
5790
|
-
this.quill.updateContents(a,
|
|
5812
|
+
this.quill.updateContents(a, M.sources.USER), this.quill.setSelection(a.length() - t.length, M.sources.SILENT), this.quill.scrollSelectionIntoView();
|
|
5791
5813
|
}
|
|
5792
5814
|
prepareMatching(t, e) {
|
|
5793
5815
|
const n = [], s = [];
|
|
@@ -5861,7 +5883,7 @@ function js(r) {
|
|
|
5861
5883
|
return (t, e, n) => En(e, r, !0, n);
|
|
5862
5884
|
}
|
|
5863
5885
|
function Sf(r, t, e) {
|
|
5864
|
-
const n =
|
|
5886
|
+
const n = Me.keys(r), s = xe.keys(r), i = hn.keys(r), o = {};
|
|
5865
5887
|
return n.concat(s).concat(i).forEach((a) => {
|
|
5866
5888
|
let h = e.query(a, et.ATTRIBUTE);
|
|
5867
5889
|
h != null && (o[h.attrName] = h.value(r), o[h.attrName]) || (h = Tf[a], h != null && (h.attrName === a || h.keyName === a) && (o[h.attrName] = h.value(r) || void 0), h = Tl[a], h != null && (h.attrName === a || h.keyName === a) && (h = Tl[a], o[h.attrName] = h.value(r) || void 0));
|
|
@@ -5937,7 +5959,7 @@ function Cl(r, t, e) {
|
|
|
5937
5959
|
}
|
|
5938
5960
|
return t;
|
|
5939
5961
|
}
|
|
5940
|
-
function
|
|
5962
|
+
function Mf(r, t, e) {
|
|
5941
5963
|
var i;
|
|
5942
5964
|
const n = {}, s = r.style || {};
|
|
5943
5965
|
return s.fontStyle === "italic" && (n.italic = !0), s.textDecoration === "underline" && (n.underline = !0), s.textDecoration === "line-through" && (n.strike = !0), ((i = s.fontWeight) != null && i.startsWith("bold") || // @ts-expect-error Fix me later
|
|
@@ -5946,7 +5968,7 @@ function kf(r, t, e) {
|
|
|
5946
5968
|
return En(o, h, d, e);
|
|
5947
5969
|
}, t), parseFloat(s.textIndent || 0) > 0 ? new tt().insert(" ").concat(t) : t;
|
|
5948
5970
|
}
|
|
5949
|
-
function
|
|
5971
|
+
function kf(r, t, e) {
|
|
5950
5972
|
var s, i;
|
|
5951
5973
|
const n = ((s = r.parentElement) == null ? void 0 : s.tagName) === "TABLE" ? r.parentElement : (i = r.parentElement) == null ? void 0 : i.parentElement;
|
|
5952
5974
|
if (n != null) {
|
|
@@ -5978,8 +6000,8 @@ class Ro extends he {
|
|
|
5978
6000
|
redo: []
|
|
5979
6001
|
});
|
|
5980
6002
|
X(this, "currentRange", null);
|
|
5981
|
-
this.quill.on(
|
|
5982
|
-
s ===
|
|
6003
|
+
this.quill.on(M.events.EDITOR_CHANGE, (s, i, o, a) => {
|
|
6004
|
+
s === M.events.SELECTION_CHANGE ? i && a !== M.sources.SILENT && (this.currentRange = i) : s === M.events.TEXT_CHANGE && (this.ignoreChange || (!this.options.userOnly || a === M.sources.USER ? this.record(i, o) : this.transform(i)), this.currentRange = ei(this.currentRange, i));
|
|
5983
6005
|
}), this.quill.keyboard.addBinding({
|
|
5984
6006
|
key: "z",
|
|
5985
6007
|
shortKey: !0
|
|
@@ -6002,7 +6024,7 @@ class Ro extends he {
|
|
|
6002
6024
|
this.stack[n].push({
|
|
6003
6025
|
delta: o,
|
|
6004
6026
|
range: ei(s.range, o)
|
|
6005
|
-
}), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(s.delta,
|
|
6027
|
+
}), this.lastRecorded = 0, this.ignoreChange = !0, this.quill.updateContents(s.delta, M.sources.USER), this.ignoreChange = !1, this.restoreSelection(s);
|
|
6006
6028
|
}
|
|
6007
6029
|
clear() {
|
|
6008
6030
|
this.stack = {
|
|
@@ -6042,10 +6064,10 @@ class Ro extends he {
|
|
|
6042
6064
|
}
|
|
6043
6065
|
restoreSelection(e) {
|
|
6044
6066
|
if (e.range)
|
|
6045
|
-
this.quill.setSelection(e.range,
|
|
6067
|
+
this.quill.setSelection(e.range, M.sources.USER);
|
|
6046
6068
|
else {
|
|
6047
6069
|
const n = jf(this.quill.scroll, e.delta);
|
|
6048
|
-
this.quill.setSelection(n,
|
|
6070
|
+
this.quill.setSelection(n, M.sources.USER);
|
|
6049
6071
|
}
|
|
6050
6072
|
}
|
|
6051
6073
|
}
|
|
@@ -6082,7 +6104,7 @@ function ei(r, t) {
|
|
|
6082
6104
|
length: n - e
|
|
6083
6105
|
};
|
|
6084
6106
|
}
|
|
6085
|
-
class
|
|
6107
|
+
class Mo extends he {
|
|
6086
6108
|
constructor(t, e) {
|
|
6087
6109
|
super(t, e), t.root.addEventListener("drop", (n) => {
|
|
6088
6110
|
var o;
|
|
@@ -6109,7 +6131,7 @@ class ko extends he {
|
|
|
6109
6131
|
}), n.length > 0 && this.options.handler.call(this, t, n);
|
|
6110
6132
|
}
|
|
6111
6133
|
}
|
|
6112
|
-
|
|
6134
|
+
Mo.DEFAULTS = {
|
|
6113
6135
|
mimetypes: ["image/png", "image/jpeg"],
|
|
6114
6136
|
handler(r, t) {
|
|
6115
6137
|
if (!this.quill.scroll.query("image"))
|
|
@@ -6133,7 +6155,7 @@ class Uf extends he {
|
|
|
6133
6155
|
constructor(t, e) {
|
|
6134
6156
|
super(t, e), t.root.addEventListener("beforeinput", (n) => {
|
|
6135
6157
|
this.handleBeforeInput(n);
|
|
6136
|
-
}), /Android/i.test(navigator.userAgent) || t.on(
|
|
6158
|
+
}), /Android/i.test(navigator.userAgent) || t.on(M.events.COMPOSITION_BEFORE_START, () => {
|
|
6137
6159
|
this.handleCompositionStart();
|
|
6138
6160
|
});
|
|
6139
6161
|
}
|
|
@@ -6148,10 +6170,10 @@ class Uf extends he {
|
|
|
6148
6170
|
if (t.length === 0) return !1;
|
|
6149
6171
|
if (e) {
|
|
6150
6172
|
const n = this.quill.getFormat(t.index, 1);
|
|
6151
|
-
this.deleteRange(t), this.quill.updateContents(new tt().retain(t.index).insert(e, n),
|
|
6173
|
+
this.deleteRange(t), this.quill.updateContents(new tt().retain(t.index).insert(e, n), M.sources.USER);
|
|
6152
6174
|
} else
|
|
6153
6175
|
this.deleteRange(t);
|
|
6154
|
-
return this.quill.setSelection(t.index + e.length, 0,
|
|
6176
|
+
return this.quill.setSelection(t.index + e.length, 0, M.sources.SILENT), !0;
|
|
6155
6177
|
}
|
|
6156
6178
|
handleBeforeInput(t) {
|
|
6157
6179
|
if (this.quill.composition.isComposing || t.defaultPrevented || !Pf.includes(t.inputType))
|
|
@@ -6196,7 +6218,7 @@ class Vf extends he {
|
|
|
6196
6218
|
if (!(s instanceof ve) || !s.uiNode)
|
|
6197
6219
|
return !0;
|
|
6198
6220
|
const o = getComputedStyle(s.domNode).direction === "rtl";
|
|
6199
|
-
return o && i.key !== "ArrowRight" || !o && i.key !== "ArrowLeft" ? !0 : (this.quill.setSelection(e.index - 1, e.length + (i.shiftKey ? 1 : 0),
|
|
6221
|
+
return o && i.key !== "ArrowRight" || !o && i.key !== "ArrowLeft" ? !0 : (this.quill.setSelection(e.index - 1, e.length + (i.shiftKey ? 1 : 0), M.sources.USER), !1);
|
|
6200
6222
|
}
|
|
6201
6223
|
});
|
|
6202
6224
|
}
|
|
@@ -6232,20 +6254,20 @@ class Vf extends he {
|
|
|
6232
6254
|
i.setStartAfter(s.uiNode), i.setEndAfter(s.uiNode), e.removeAllRanges(), e.addRange(i);
|
|
6233
6255
|
}
|
|
6234
6256
|
}
|
|
6235
|
-
|
|
6257
|
+
M.register({
|
|
6236
6258
|
"blots/block": $t,
|
|
6237
6259
|
"blots/block/embed": ue,
|
|
6238
6260
|
"blots/break": Ne,
|
|
6239
6261
|
"blots/container": Nn,
|
|
6240
6262
|
"blots/cursor": $n,
|
|
6241
6263
|
"blots/embed": vi,
|
|
6242
|
-
"blots/inline":
|
|
6243
|
-
"blots/scroll":
|
|
6264
|
+
"blots/inline": ke,
|
|
6265
|
+
"blots/scroll": kn,
|
|
6244
6266
|
"blots/text": we,
|
|
6245
6267
|
"modules/clipboard": _o,
|
|
6246
6268
|
"modules/history": Ro,
|
|
6247
6269
|
"modules/keyboard": Qr,
|
|
6248
|
-
"modules/uploader":
|
|
6270
|
+
"modules/uploader": Mo,
|
|
6249
6271
|
"modules/input": Uf,
|
|
6250
6272
|
"modules/uiNode": Vf
|
|
6251
6273
|
});
|
|
@@ -6292,7 +6314,7 @@ class mr extends $t {
|
|
|
6292
6314
|
return t.getAttribute("data-list") || void 0;
|
|
6293
6315
|
}
|
|
6294
6316
|
static register() {
|
|
6295
|
-
|
|
6317
|
+
M.register(gr);
|
|
6296
6318
|
}
|
|
6297
6319
|
constructor(t, e) {
|
|
6298
6320
|
super(t, e);
|
|
@@ -6311,7 +6333,7 @@ mr.blotName = "list";
|
|
|
6311
6333
|
mr.tagName = "LI";
|
|
6312
6334
|
gr.allowedChildren = [mr];
|
|
6313
6335
|
mr.requiredContainer = gr;
|
|
6314
|
-
class hr extends
|
|
6336
|
+
class hr extends ke {
|
|
6315
6337
|
static create() {
|
|
6316
6338
|
return super.create();
|
|
6317
6339
|
}
|
|
@@ -6326,7 +6348,7 @@ X(hr, "blotName", "bold"), X(hr, "tagName", ["STRONG", "B"]);
|
|
|
6326
6348
|
class si extends hr {
|
|
6327
6349
|
}
|
|
6328
6350
|
X(si, "blotName", "italic"), X(si, "tagName", ["EM", "I"]);
|
|
6329
|
-
class ln extends
|
|
6351
|
+
class ln extends ke {
|
|
6330
6352
|
static create(t) {
|
|
6331
6353
|
const e = super.create(t);
|
|
6332
6354
|
return e.setAttribute("href", this.sanitize(t)), e.setAttribute("rel", "noopener noreferrer"), e.setAttribute("target", "_blank"), e;
|
|
@@ -6335,20 +6357,20 @@ class ln extends Me {
|
|
|
6335
6357
|
return t.getAttribute("href");
|
|
6336
6358
|
}
|
|
6337
6359
|
static sanitize(t) {
|
|
6338
|
-
return
|
|
6360
|
+
return ko(t, this.PROTOCOL_WHITELIST) ? t : this.SANITIZED_URL;
|
|
6339
6361
|
}
|
|
6340
6362
|
format(t, e) {
|
|
6341
6363
|
t !== this.statics.blotName || !e ? super.format(t, e) : this.domNode.setAttribute("href", this.constructor.sanitize(e));
|
|
6342
6364
|
}
|
|
6343
6365
|
}
|
|
6344
6366
|
X(ln, "blotName", "link"), X(ln, "tagName", "A"), X(ln, "SANITIZED_URL", "about:blank"), X(ln, "PROTOCOL_WHITELIST", ["http", "https", "mailto", "tel", "sms"]);
|
|
6345
|
-
function
|
|
6367
|
+
function ko(r, t) {
|
|
6346
6368
|
const e = document.createElement("a");
|
|
6347
6369
|
e.href = r;
|
|
6348
6370
|
const n = e.href.slice(0, e.href.indexOf(":"));
|
|
6349
6371
|
return t.indexOf(n) > -1;
|
|
6350
6372
|
}
|
|
6351
|
-
class ii extends
|
|
6373
|
+
class ii extends ke {
|
|
6352
6374
|
static create(t) {
|
|
6353
6375
|
return t === "super" ? document.createElement("sup") : t === "sub" ? document.createElement("sub") : super.create(t);
|
|
6354
6376
|
}
|
|
@@ -6361,7 +6383,7 @@ X(ii, "blotName", "script"), X(ii, "tagName", ["SUB", "SUP"]);
|
|
|
6361
6383
|
class li extends hr {
|
|
6362
6384
|
}
|
|
6363
6385
|
X(li, "blotName", "strike"), X(li, "tagName", ["S", "STRIKE"]);
|
|
6364
|
-
class oi extends
|
|
6386
|
+
class oi extends ke {
|
|
6365
6387
|
}
|
|
6366
6388
|
X(oi, "blotName", "underline"), X(oi, "tagName", "U");
|
|
6367
6389
|
class Ur extends vi {
|
|
@@ -6398,7 +6420,7 @@ class ai extends se {
|
|
|
6398
6420
|
return /\.(jpe?g|gif|png)$/.test(t) || /^data:image\/.+;base64/.test(t);
|
|
6399
6421
|
}
|
|
6400
6422
|
static sanitize(t) {
|
|
6401
|
-
return
|
|
6423
|
+
return ko(t, ["http", "https", "data"]) ? t : "//:0";
|
|
6402
6424
|
}
|
|
6403
6425
|
static value(t) {
|
|
6404
6426
|
return t.getAttribute("src");
|
|
@@ -6437,7 +6459,7 @@ X($r, "blotName", "video"), X($r, "className", "ql-video"), X($r, "tagName", "IF
|
|
|
6437
6459
|
const er = new xe("code-token", "hljs", {
|
|
6438
6460
|
scope: et.INLINE
|
|
6439
6461
|
});
|
|
6440
|
-
class Ke extends
|
|
6462
|
+
class Ke extends ke {
|
|
6441
6463
|
static formats(t, e) {
|
|
6442
6464
|
for (; t != null && t !== e.domNode; ) {
|
|
6443
6465
|
if (t.classList && t.classList.contains(Zt.className))
|
|
@@ -6537,7 +6559,7 @@ const Wf = (r, t, e) => {
|
|
|
6537
6559
|
};
|
|
6538
6560
|
class Bo extends he {
|
|
6539
6561
|
static register() {
|
|
6540
|
-
|
|
6562
|
+
M.register(Ke, !0), M.register(ce, !0), M.register(rr, !0);
|
|
6541
6563
|
}
|
|
6542
6564
|
constructor(t, e) {
|
|
6543
6565
|
if (super(t, e), this.options.hljs == null)
|
|
@@ -6550,7 +6572,7 @@ class Bo extends he {
|
|
|
6550
6572
|
}, {}), this.highlightBlot = this.highlightBlot.bind(this), this.initListener(), this.initTimer();
|
|
6551
6573
|
}
|
|
6552
6574
|
initListener() {
|
|
6553
|
-
this.quill.on(
|
|
6575
|
+
this.quill.on(M.events.SCROLL_BLOT_MOUNT, (t) => {
|
|
6554
6576
|
if (!(t instanceof rr)) return;
|
|
6555
6577
|
const e = this.quill.root.ownerDocument.createElement("select");
|
|
6556
6578
|
this.options.languages.forEach((n) => {
|
|
@@ -6567,7 +6589,7 @@ class Bo extends he {
|
|
|
6567
6589
|
}
|
|
6568
6590
|
initTimer() {
|
|
6569
6591
|
let t = null;
|
|
6570
|
-
this.quill.on(
|
|
6592
|
+
this.quill.on(M.events.SCROLL_OPTIMIZE, () => {
|
|
6571
6593
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
6572
6594
|
this.highlight(), t = null;
|
|
6573
6595
|
}, this.options.interval);
|
|
@@ -6576,11 +6598,11 @@ class Bo extends he {
|
|
|
6576
6598
|
highlight() {
|
|
6577
6599
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
6578
6600
|
if (this.quill.selection.composing) return;
|
|
6579
|
-
this.quill.update(
|
|
6601
|
+
this.quill.update(M.sources.USER);
|
|
6580
6602
|
const n = this.quill.getSelection();
|
|
6581
6603
|
(t == null ? this.quill.scroll.descendants(rr) : [t]).forEach((i) => {
|
|
6582
6604
|
i.highlight(this.highlightBlot, e);
|
|
6583
|
-
}), this.quill.update(
|
|
6605
|
+
}), this.quill.update(M.sources.SILENT), n != null && this.quill.setSelection(n, M.sources.SILENT);
|
|
6584
6606
|
}
|
|
6585
6607
|
highlightBlot(t) {
|
|
6586
6608
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "plain";
|
|
@@ -6763,7 +6785,7 @@ function Si() {
|
|
|
6763
6785
|
}
|
|
6764
6786
|
class Zf extends he {
|
|
6765
6787
|
static register() {
|
|
6766
|
-
|
|
6788
|
+
M.register(ye), M.register(We), M.register(Re), M.register(zn);
|
|
6767
6789
|
}
|
|
6768
6790
|
constructor() {
|
|
6769
6791
|
super(...arguments), this.listenBalanceCells();
|
|
@@ -6775,17 +6797,17 @@ class Zf extends he {
|
|
|
6775
6797
|
}
|
|
6776
6798
|
deleteColumn() {
|
|
6777
6799
|
const [t, , e] = this.getTable();
|
|
6778
|
-
e != null && (t.deleteColumn(e.cellOffset()), this.quill.update(
|
|
6800
|
+
e != null && (t.deleteColumn(e.cellOffset()), this.quill.update(M.sources.USER));
|
|
6779
6801
|
}
|
|
6780
6802
|
deleteRow() {
|
|
6781
6803
|
const [, t] = this.getTable();
|
|
6782
|
-
t != null && (t.remove(), this.quill.update(
|
|
6804
|
+
t != null && (t.remove(), this.quill.update(M.sources.USER));
|
|
6783
6805
|
}
|
|
6784
6806
|
deleteTable() {
|
|
6785
6807
|
const [t] = this.getTable();
|
|
6786
6808
|
if (t == null) return;
|
|
6787
6809
|
const e = t.offset();
|
|
6788
|
-
t.remove(), this.quill.update(
|
|
6810
|
+
t.remove(), this.quill.update(M.sources.USER), this.quill.setSelection(e, M.sources.SILENT);
|
|
6789
6811
|
}
|
|
6790
6812
|
getTable() {
|
|
6791
6813
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.quill.getSelection();
|
|
@@ -6802,9 +6824,9 @@ class Zf extends he {
|
|
|
6802
6824
|
const [n, s, i] = this.getTable(e);
|
|
6803
6825
|
if (i == null) return;
|
|
6804
6826
|
const o = i.cellOffset();
|
|
6805
|
-
n.insertColumn(o + t), this.quill.update(
|
|
6827
|
+
n.insertColumn(o + t), this.quill.update(M.sources.USER);
|
|
6806
6828
|
let a = s.rowOffset();
|
|
6807
|
-
t === 0 && (a += 1), this.quill.setSelection(e.index + a, e.length,
|
|
6829
|
+
t === 0 && (a += 1), this.quill.setSelection(e.index + a, e.length, M.sources.SILENT);
|
|
6808
6830
|
}
|
|
6809
6831
|
insertColumnLeft() {
|
|
6810
6832
|
this.insertColumn(0);
|
|
@@ -6818,7 +6840,7 @@ class Zf extends he {
|
|
|
6818
6840
|
const [n, s, i] = this.getTable(e);
|
|
6819
6841
|
if (i == null) return;
|
|
6820
6842
|
const o = s.rowOffset();
|
|
6821
|
-
n.insertRow(o + t), this.quill.update(
|
|
6843
|
+
n.insertRow(o + t), this.quill.update(M.sources.USER), t > 0 ? this.quill.setSelection(e, M.sources.SILENT) : this.quill.setSelection(e.index + s.children.length, e.length, M.sources.SILENT);
|
|
6822
6844
|
}
|
|
6823
6845
|
insertRowAbove() {
|
|
6824
6846
|
this.insertRow(0);
|
|
@@ -6836,12 +6858,12 @@ class Zf extends he {
|
|
|
6836
6858
|
table: Si()
|
|
6837
6859
|
});
|
|
6838
6860
|
}, new tt().retain(n.index));
|
|
6839
|
-
this.quill.updateContents(s,
|
|
6861
|
+
this.quill.updateContents(s, M.sources.USER), this.quill.setSelection(n.index, M.sources.SILENT), this.balanceTables();
|
|
6840
6862
|
}
|
|
6841
6863
|
listenBalanceCells() {
|
|
6842
|
-
this.quill.on(
|
|
6843
|
-
t.some((e) => ["TD", "TR", "TBODY", "TABLE"].includes(e.target.tagName) ? (this.quill.once(
|
|
6844
|
-
i ===
|
|
6864
|
+
this.quill.on(M.events.SCROLL_OPTIMIZE, (t) => {
|
|
6865
|
+
t.some((e) => ["TD", "TR", "TBODY", "TABLE"].includes(e.target.tagName) ? (this.quill.once(M.events.TEXT_CHANGE, (n, s, i) => {
|
|
6866
|
+
i === M.sources.USER && this.balanceTables();
|
|
6845
6867
|
}), !0) : !1);
|
|
6846
6868
|
});
|
|
6847
6869
|
}
|
|
@@ -6864,7 +6886,7 @@ class Li extends he {
|
|
|
6864
6886
|
o && this.addHandler(i, o);
|
|
6865
6887
|
}), Array.from(this.container.querySelectorAll("button, select")).forEach((i) => {
|
|
6866
6888
|
this.attach(i);
|
|
6867
|
-
}), this.quill.on(
|
|
6889
|
+
}), this.quill.on(M.events.EDITOR_CHANGE, () => {
|
|
6868
6890
|
const [i] = this.quill.selection.getRange();
|
|
6869
6891
|
this.update(i);
|
|
6870
6892
|
});
|
|
@@ -6899,9 +6921,9 @@ class Li extends he {
|
|
|
6899
6921
|
if (i = prompt(`Enter ${e}`), !i) return;
|
|
6900
6922
|
this.quill.updateContents(new tt().retain(o.index).delete(o.length).insert({
|
|
6901
6923
|
[e]: i
|
|
6902
|
-
}),
|
|
6924
|
+
}), M.sources.USER);
|
|
6903
6925
|
} else
|
|
6904
|
-
this.quill.format(e, i,
|
|
6926
|
+
this.quill.format(e, i, M.sources.USER);
|
|
6905
6927
|
this.update(o);
|
|
6906
6928
|
}), this.controls.push([e, t]);
|
|
6907
6929
|
}
|
|
@@ -6966,30 +6988,30 @@ Li.DEFAULTS = {
|
|
|
6966
6988
|
if (r.length === 0) {
|
|
6967
6989
|
const t = this.quill.getFormat();
|
|
6968
6990
|
Object.keys(t).forEach((e) => {
|
|
6969
|
-
this.quill.scroll.query(e, et.INLINE) != null && this.quill.format(e, !1,
|
|
6991
|
+
this.quill.scroll.query(e, et.INLINE) != null && this.quill.format(e, !1, M.sources.USER);
|
|
6970
6992
|
});
|
|
6971
6993
|
} else
|
|
6972
|
-
this.quill.removeFormat(r.index, r.length,
|
|
6994
|
+
this.quill.removeFormat(r.index, r.length, M.sources.USER);
|
|
6973
6995
|
},
|
|
6974
6996
|
direction(r) {
|
|
6975
6997
|
const {
|
|
6976
6998
|
align: t
|
|
6977
6999
|
} = this.quill.getFormat();
|
|
6978
|
-
r === "rtl" && t == null ? this.quill.format("align", "right",
|
|
7000
|
+
r === "rtl" && t == null ? this.quill.format("align", "right", M.sources.USER) : !r && t === "right" && this.quill.format("align", !1, M.sources.USER), this.quill.format("direction", r, M.sources.USER);
|
|
6979
7001
|
},
|
|
6980
7002
|
indent(r) {
|
|
6981
7003
|
const t = this.quill.getSelection(), e = this.quill.getFormat(t), n = parseInt(e.indent || 0, 10);
|
|
6982
7004
|
if (r === "+1" || r === "-1") {
|
|
6983
7005
|
let s = r === "+1" ? 1 : -1;
|
|
6984
|
-
e.direction === "rtl" && (s *= -1), this.quill.format("indent", n + s,
|
|
7006
|
+
e.direction === "rtl" && (s *= -1), this.quill.format("indent", n + s, M.sources.USER);
|
|
6985
7007
|
}
|
|
6986
7008
|
},
|
|
6987
7009
|
link(r) {
|
|
6988
|
-
r === !0 && (r = prompt("Enter link URL:")), this.quill.format("link", r,
|
|
7010
|
+
r === !0 && (r = prompt("Enter link URL:")), this.quill.format("link", r, M.sources.USER);
|
|
6989
7011
|
},
|
|
6990
7012
|
list(r) {
|
|
6991
7013
|
const t = this.quill.getSelection(), e = this.quill.getFormat(t);
|
|
6992
|
-
r === "check" ? e.list === "checked" || e.list === "unchecked" ? this.quill.format("list", !1,
|
|
7014
|
+
r === "check" ? e.list === "checked" || e.list === "unchecked" ? this.quill.format("list", !1, M.sources.USER) : this.quill.format("list", "unchecked", M.sources.USER) : this.quill.format("list", r, M.sources.USER);
|
|
6993
7015
|
}
|
|
6994
7016
|
}
|
|
6995
7017
|
};
|
|
@@ -7042,7 +7064,7 @@ const Qf = '<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="
|
|
|
7042
7064
|
video: O1
|
|
7043
7065
|
}, q1 = '<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';
|
|
7044
7066
|
let Rl = 0;
|
|
7045
|
-
function
|
|
7067
|
+
function Ml(r, t) {
|
|
7046
7068
|
r.setAttribute(t, `${r.getAttribute(t) !== "true"}`);
|
|
7047
7069
|
}
|
|
7048
7070
|
class Jr {
|
|
@@ -7061,7 +7083,7 @@ class Jr {
|
|
|
7061
7083
|
}), this.select.addEventListener("change", this.update.bind(this));
|
|
7062
7084
|
}
|
|
7063
7085
|
togglePicker() {
|
|
7064
|
-
this.container.classList.toggle("ql-expanded"),
|
|
7086
|
+
this.container.classList.toggle("ql-expanded"), Ml(this.label, "aria-expanded"), Ml(this.options, "aria-hidden");
|
|
7065
7087
|
}
|
|
7066
7088
|
buildItem(t) {
|
|
7067
7089
|
const e = document.createElement("span");
|
|
@@ -7182,7 +7204,7 @@ class Po {
|
|
|
7182
7204
|
this.root.classList.remove("ql-editing"), this.root.classList.remove("ql-hidden");
|
|
7183
7205
|
}
|
|
7184
7206
|
}
|
|
7185
|
-
const I1 = [!1, "center", "right", "justify"], R1 = ["#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"],
|
|
7207
|
+
const I1 = [!1, "center", "right", "justify"], R1 = ["#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"], M1 = [!1, "serif", "monospace"], k1 = ["1", "2", "3", !1], B1 = ["small", !1, "large", "huge"];
|
|
7186
7208
|
class br extends Hn {
|
|
7187
7209
|
constructor(t, e) {
|
|
7188
7210
|
super(t, e);
|
|
@@ -7226,7 +7248,7 @@ class br extends Hn {
|
|
|
7226
7248
|
const i = s.classList.contains("ql-background") ? "background" : "color";
|
|
7227
7249
|
return s.querySelector("option") == null && Qn(s, R1, i === "background" ? "#ffffff" : "#000000"), new Do(s, e[i]);
|
|
7228
7250
|
}
|
|
7229
|
-
return s.querySelector("option") == null && (s.classList.contains("ql-font") ? Qn(s,
|
|
7251
|
+
return s.querySelector("option") == null && (s.classList.contains("ql-font") ? Qn(s, M1) : s.classList.contains("ql-header") ? Qn(s, k1) : s.classList.contains("ql-size") && Qn(s, B1)), new Jr(s);
|
|
7230
7252
|
});
|
|
7231
7253
|
const n = () => {
|
|
7232
7254
|
this.pickers.forEach((s) => {
|
|
@@ -7384,7 +7406,7 @@ Ho.DEFAULTS = on({}, br.DEFAULTS, {
|
|
|
7384
7406
|
toolbar: {
|
|
7385
7407
|
handlers: {
|
|
7386
7408
|
link(r) {
|
|
7387
|
-
r ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1,
|
|
7409
|
+
r ? this.quill.theme.tooltip.edit() : this.quill.format("link", !1, M.sources.USER);
|
|
7388
7410
|
}
|
|
7389
7411
|
}
|
|
7390
7412
|
}
|
|
@@ -7462,13 +7484,13 @@ Fo.DEFAULTS = on({}, br.DEFAULTS, {
|
|
|
7462
7484
|
} = this.quill.theme;
|
|
7463
7485
|
n.edit("link", e);
|
|
7464
7486
|
} else
|
|
7465
|
-
this.quill.format("link", !1,
|
|
7487
|
+
this.quill.format("link", !1, M.sources.USER);
|
|
7466
7488
|
}
|
|
7467
7489
|
}
|
|
7468
7490
|
}
|
|
7469
7491
|
}
|
|
7470
7492
|
});
|
|
7471
|
-
|
|
7493
|
+
M.register({
|
|
7472
7494
|
"attributors/attribute/direction": Ao,
|
|
7473
7495
|
"attributors/class/align": wo,
|
|
7474
7496
|
"attributors/class/background": nf,
|
|
@@ -7483,7 +7505,7 @@ k.register({
|
|
|
7483
7505
|
"attributors/style/font": Lo,
|
|
7484
7506
|
"attributors/style/size": qo
|
|
7485
7507
|
}, !0);
|
|
7486
|
-
|
|
7508
|
+
M.register({
|
|
7487
7509
|
"formats/align": wo,
|
|
7488
7510
|
"formats/direction": Eo,
|
|
7489
7511
|
"formats/indent": Kf,
|
|
@@ -7525,13 +7547,13 @@ const U1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7525
7547
|
OpIterator: Qt.OpIterator,
|
|
7526
7548
|
Parchment: po,
|
|
7527
7549
|
Range: cn,
|
|
7528
|
-
default:
|
|
7550
|
+
default: M
|
|
7529
7551
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7530
7552
|
var Ps = { exports: {} };
|
|
7531
|
-
const $1 = /* @__PURE__ */
|
|
7532
|
-
var
|
|
7553
|
+
const $1 = /* @__PURE__ */ _d(U1);
|
|
7554
|
+
var kl;
|
|
7533
7555
|
function H1() {
|
|
7534
|
-
return
|
|
7556
|
+
return kl || (kl = 1, function(r, t) {
|
|
7535
7557
|
(function(n, s) {
|
|
7536
7558
|
r.exports = s($1);
|
|
7537
7559
|
})(window, function(e) {
|
|
@@ -7720,7 +7742,7 @@ function H1() {
|
|
|
7720
7742
|
for (var _ = 0; _ < j.length; _++)
|
|
7721
7743
|
j[_].call(null, N);
|
|
7722
7744
|
}
|
|
7723
|
-
var rt = 0, nt = 0, bt = {}, At = {}, vt = {},
|
|
7745
|
+
var rt = 0, nt = 0, bt = {}, At = {}, vt = {}, Mt, Lt, g;
|
|
7724
7746
|
function x(N) {
|
|
7725
7747
|
var _ = +N + "" === N;
|
|
7726
7748
|
return _ ? +N : N;
|
|
@@ -7733,7 +7755,7 @@ function H1() {
|
|
|
7733
7755
|
return Z("idle"), null;
|
|
7734
7756
|
At = {}, bt = {}, vt = _.c, g = _.h, Z("prepare");
|
|
7735
7757
|
var S = new Promise(function(W, R) {
|
|
7736
|
-
|
|
7758
|
+
Mt = {
|
|
7737
7759
|
/******/
|
|
7738
7760
|
resolve: W,
|
|
7739
7761
|
/******/
|
|
@@ -7762,8 +7784,8 @@ function H1() {
|
|
|
7762
7784
|
}
|
|
7763
7785
|
function L() {
|
|
7764
7786
|
Z("ready");
|
|
7765
|
-
var N =
|
|
7766
|
-
if (
|
|
7787
|
+
var N = Mt;
|
|
7788
|
+
if (Mt = null, !!N)
|
|
7767
7789
|
if (h)
|
|
7768
7790
|
Promise.resolve().then(function() {
|
|
7769
7791
|
return $(h);
|
|
@@ -7890,7 +7912,7 @@ function H1() {
|
|
|
7890
7912
|
moduleId: mt
|
|
7891
7913
|
/******/
|
|
7892
7914
|
};
|
|
7893
|
-
var Ct = !1,
|
|
7915
|
+
var Ct = !1, kt = !1, Ae = !1, de = "";
|
|
7894
7916
|
switch (ct.chain && (de = `
|
|
7895
7917
|
Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
7896
7918
|
/******/
|
|
@@ -7925,7 +7947,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
7925
7947
|
break;
|
|
7926
7948
|
/******/
|
|
7927
7949
|
case "accepted":
|
|
7928
|
-
N.onAccepted && N.onAccepted(ct),
|
|
7950
|
+
N.onAccepted && N.onAccepted(ct), kt = !0;
|
|
7929
7951
|
break;
|
|
7930
7952
|
/******/
|
|
7931
7953
|
case "disposed":
|
|
@@ -7937,7 +7959,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
7937
7959
|
}
|
|
7938
7960
|
if (Ct)
|
|
7939
7961
|
return Z("abort"), Promise.reject(Ct);
|
|
7940
|
-
if (
|
|
7962
|
+
if (kt) {
|
|
7941
7963
|
gt[R] = Lt[R], ht(dt, ct.outdatedModules);
|
|
7942
7964
|
for (R in ct.outdatedDependencies)
|
|
7943
7965
|
/******/
|
|
@@ -8171,54 +8193,54 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8171
8193
|
function(n, s, i) {
|
|
8172
8194
|
i.r(s);
|
|
8173
8195
|
var o = i(0), a = /* @__PURE__ */ i.n(o);
|
|
8174
|
-
function h(
|
|
8196
|
+
function h(k, c) {
|
|
8175
8197
|
if (typeof c == "object")
|
|
8176
8198
|
for (let f in c)
|
|
8177
|
-
|
|
8199
|
+
k.style[f] = c[f];
|
|
8178
8200
|
}
|
|
8179
|
-
function d(
|
|
8201
|
+
function d(k, c) {
|
|
8180
8202
|
let f = c.getBoundingClientRect();
|
|
8181
8203
|
return {
|
|
8182
|
-
x:
|
|
8183
|
-
y:
|
|
8184
|
-
x1:
|
|
8185
|
-
y1:
|
|
8186
|
-
width:
|
|
8187
|
-
height:
|
|
8204
|
+
x: k.x - f.x - c.scrollLeft,
|
|
8205
|
+
y: k.y - f.y - c.scrollTop,
|
|
8206
|
+
x1: k.x - f.x - c.scrollLeft + k.width,
|
|
8207
|
+
y1: k.y - f.y - c.scrollTop + k.height,
|
|
8208
|
+
width: k.width,
|
|
8209
|
+
height: k.height
|
|
8188
8210
|
};
|
|
8189
8211
|
}
|
|
8190
|
-
function y(
|
|
8191
|
-
return
|
|
8192
|
-
[b]:
|
|
8212
|
+
function y(k, c) {
|
|
8213
|
+
return k && Object.keys(k).reduce((f, b) => c.includes(b) ? f : Object.assign({}, f, {
|
|
8214
|
+
[b]: k[b]
|
|
8193
8215
|
}), {});
|
|
8194
8216
|
}
|
|
8195
|
-
function E(
|
|
8217
|
+
function E(k) {
|
|
8196
8218
|
let c;
|
|
8197
|
-
if (c =
|
|
8219
|
+
if (c = k.path || k.composedPath && k.composedPath(), c == null && k.target) {
|
|
8198
8220
|
c = [];
|
|
8199
|
-
let f =
|
|
8221
|
+
let f = k.target;
|
|
8200
8222
|
for (c.push(f); f && f.parentNode; )
|
|
8201
8223
|
f = f.parentNode, c.push(f);
|
|
8202
8224
|
}
|
|
8203
8225
|
return c;
|
|
8204
8226
|
}
|
|
8205
|
-
function p(
|
|
8227
|
+
function p(k) {
|
|
8206
8228
|
var c = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;
|
|
8207
|
-
if (/^(rgb|RGB)/.test(
|
|
8208
|
-
for (var f =
|
|
8229
|
+
if (/^(rgb|RGB)/.test(k)) {
|
|
8230
|
+
for (var f = k.toString().match(/\d+/g), b = "#", T = 0; T < 3; T++)
|
|
8209
8231
|
b += ("0" + Number(f[T]).toString(16)).slice(-2);
|
|
8210
8232
|
return b;
|
|
8211
|
-
} else if (c.test(
|
|
8212
|
-
var C =
|
|
8233
|
+
} else if (c.test(k)) {
|
|
8234
|
+
var C = k.replace(/#/, "").split("");
|
|
8213
8235
|
if (C.length === 6)
|
|
8214
|
-
return
|
|
8236
|
+
return k;
|
|
8215
8237
|
if (C.length === 3) {
|
|
8216
8238
|
for (var B = "#", T = 0; T < C.length; T += 1)
|
|
8217
8239
|
B += C[T] + C[T];
|
|
8218
8240
|
return B;
|
|
8219
8241
|
}
|
|
8220
8242
|
}
|
|
8221
|
-
return
|
|
8243
|
+
return k;
|
|
8222
8244
|
}
|
|
8223
8245
|
const w = 12, A = 12, q = 50, D = "#35A7ED";
|
|
8224
8246
|
class j {
|
|
@@ -8292,8 +8314,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8292
8314
|
return Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell"));
|
|
8293
8315
|
}
|
|
8294
8316
|
}
|
|
8295
|
-
function K(
|
|
8296
|
-
return
|
|
8317
|
+
function K(k) {
|
|
8318
|
+
return k.reduce((c, f) => {
|
|
8297
8319
|
const b = f.formats().colspan;
|
|
8298
8320
|
return c = c + parseInt(b, 10), c;
|
|
8299
8321
|
}, 0);
|
|
@@ -8356,7 +8378,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8356
8378
|
}
|
|
8357
8379
|
rt.blotName = "header", rt.tagName = ["H1", "H2", "H3", "H4", "H5", "H6"];
|
|
8358
8380
|
var nt = rt;
|
|
8359
|
-
const bt = a.a.import("blots/break"), At = a.a.import("blots/block"), vt = a.a.import("blots/container"),
|
|
8381
|
+
const bt = a.a.import("blots/break"), At = a.a.import("blots/block"), vt = a.a.import("blots/container"), Mt = ["width"], Lt = {
|
|
8360
8382
|
width: 100
|
|
8361
8383
|
}, g = ["row", "cell"], x = ["rowspan", "colspan"], v = {
|
|
8362
8384
|
rowspan: 1,
|
|
@@ -8498,15 +8520,15 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8498
8520
|
class z extends At {
|
|
8499
8521
|
static create(c) {
|
|
8500
8522
|
let f = super.create(c);
|
|
8501
|
-
return
|
|
8523
|
+
return Mt.forEach((b) => {
|
|
8502
8524
|
f.setAttribute("".concat(b), c[b] || Lt[b]);
|
|
8503
8525
|
}), f;
|
|
8504
8526
|
}
|
|
8505
8527
|
static formats(c) {
|
|
8506
|
-
return
|
|
8528
|
+
return Mt.reduce((f, b) => (c.hasAttribute("".concat(b)) && (f[b] = c.getAttribute("".concat(b)) || void 0), f), {});
|
|
8507
8529
|
}
|
|
8508
8530
|
format(c, f) {
|
|
8509
|
-
|
|
8531
|
+
Mt.indexOf(c) > -1 ? this.domNode.setAttribute("".concat(c), f || Lt[c]) : super.format(c, f);
|
|
8510
8532
|
}
|
|
8511
8533
|
html() {
|
|
8512
8534
|
return this.domNode.outerHTML;
|
|
@@ -8716,12 +8738,12 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8716
8738
|
}
|
|
8717
8739
|
S.blotName = "table-view", S.className = "quill-better-table-wrapper", S.tagName = "DIV", S.allowedChildren = [_], _.requiredContainer = S, _.allowedChildren = [H, N], H.requiredContainer = _, H.allowedChildren = [$], $.requiredContainer = H, $.allowedChildren = [L], L.requiredContainer = $, L.allowedChildren = [U, nt], U.requiredContainer = L, N.allowedChildren = [z], N.requiredContainer = _, z.requiredContainer = N;
|
|
8718
8740
|
function V() {
|
|
8719
|
-
const
|
|
8720
|
-
return "row-".concat(
|
|
8741
|
+
const k = Math.random().toString(36).slice(2, 6);
|
|
8742
|
+
return "row-".concat(k);
|
|
8721
8743
|
}
|
|
8722
8744
|
function W() {
|
|
8723
|
-
const
|
|
8724
|
-
return "cell-".concat(
|
|
8745
|
+
const k = Math.random().toString(36).slice(2, 6);
|
|
8746
|
+
return "cell-".concat(k);
|
|
8725
8747
|
}
|
|
8726
8748
|
const R = "#0589f3", pt = ["left", "right", "top", "bottom"], ht = 2;
|
|
8727
8749
|
class lt {
|
|
@@ -8830,8 +8852,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8830
8852
|
});
|
|
8831
8853
|
}
|
|
8832
8854
|
}
|
|
8833
|
-
function dt(
|
|
8834
|
-
let f = Math.min(
|
|
8855
|
+
function dt(k, c) {
|
|
8856
|
+
let f = Math.min(k.x, c.x, k.x + k.width - 1, c.x + c.width - 1), b = Math.max(k.x, c.x, k.x + k.width - 1, c.x + c.width - 1), T = Math.min(k.y, c.y, k.y + k.height - 1, c.y + c.height - 1), C = Math.max(k.y, c.y, k.y + k.height - 1, c.y + c.height - 1), B = b - f, P = C - T;
|
|
8835
8857
|
return {
|
|
8836
8858
|
x: f,
|
|
8837
8859
|
x1: b,
|
|
@@ -8841,15 +8863,15 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8841
8863
|
height: P
|
|
8842
8864
|
};
|
|
8843
8865
|
}
|
|
8844
|
-
var gt = i(1), yt = /* @__PURE__ */ i.n(gt), mt = i(2), ct = /* @__PURE__ */ i.n(mt), Ct = i(3),
|
|
8866
|
+
var gt = i(1), yt = /* @__PURE__ */ i.n(gt), mt = i(2), ct = /* @__PURE__ */ i.n(mt), Ct = i(3), kt = /* @__PURE__ */ i.n(Ct), Ae = i(4), de = /* @__PURE__ */ i.n(Ae), De = i(5), ie = /* @__PURE__ */ i.n(De), fe = i(6), Ee = /* @__PURE__ */ i.n(fe), je = i(7), Te = /* @__PURE__ */ i.n(je), jt = i(8), Pt = /* @__PURE__ */ i.n(jt), Ht = i(9), Jt = /* @__PURE__ */ i.n(Ht);
|
|
8845
8867
|
const le = 150, St = 200, xt = 5, zt = ["white", "red", "yellow", "blue"], ne = "Background Colors", Pe = {
|
|
8846
8868
|
insertColumnRight: {
|
|
8847
8869
|
text: "Insert column right",
|
|
8848
8870
|
iconSrc: yt.a,
|
|
8849
8871
|
handler() {
|
|
8850
|
-
const
|
|
8872
|
+
const k = a.a.find(this.table);
|
|
8851
8873
|
let c = te(this.columnToolCells, this.boundary, (b, T) => Math.abs(b.x + b.width - T.x1) <= xt, this.quill.root.parentNode);
|
|
8852
|
-
const f =
|
|
8874
|
+
const f = k.insertColumn(this.boundary, c, !0, this.quill.root.parentNode);
|
|
8853
8875
|
this.tableColumnTool.updateToolCells(), this.quill.update(a.a.sources.USER), this.quill.setSelection(this.quill.getIndex(f[0]), 0, a.a.sources.SILENT), this.tableSelection.setSelection(f[0].domNode.getBoundingClientRect(), f[0].domNode.getBoundingClientRect());
|
|
8854
8876
|
}
|
|
8855
8877
|
},
|
|
@@ -8857,15 +8879,15 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8857
8879
|
text: "Insert column left",
|
|
8858
8880
|
iconSrc: ct.a,
|
|
8859
8881
|
handler() {
|
|
8860
|
-
const
|
|
8882
|
+
const k = a.a.find(this.table);
|
|
8861
8883
|
let c = te(this.columnToolCells, this.boundary, (b, T) => Math.abs(b.x - T.x) <= xt, this.quill.root.parentNode);
|
|
8862
|
-
const f =
|
|
8884
|
+
const f = k.insertColumn(this.boundary, c, !1, this.quill.root.parentNode);
|
|
8863
8885
|
this.tableColumnTool.updateToolCells(), this.quill.update(a.a.sources.USER), this.quill.setSelection(this.quill.getIndex(f[0]), 0, a.a.sources.SILENT), this.tableSelection.setSelection(f[0].domNode.getBoundingClientRect(), f[0].domNode.getBoundingClientRect());
|
|
8864
8886
|
}
|
|
8865
8887
|
},
|
|
8866
8888
|
insertRowUp: {
|
|
8867
8889
|
text: "Insert row up",
|
|
8868
|
-
iconSrc:
|
|
8890
|
+
iconSrc: kt.a,
|
|
8869
8891
|
handler() {
|
|
8870
8892
|
const c = a.a.find(this.table).insertRow(this.boundary, !1, this.quill.root.parentNode);
|
|
8871
8893
|
this.quill.update(a.a.sources.USER), this.quill.setSelection(this.quill.getIndex(c[0]), 0, a.a.sources.SILENT), this.tableSelection.setSelection(c[0].domNode.getBoundingClientRect(), c[0].domNode.getBoundingClientRect());
|
|
@@ -8883,13 +8905,13 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8883
8905
|
text: "Merge selected cells",
|
|
8884
8906
|
iconSrc: ie.a,
|
|
8885
8907
|
handler() {
|
|
8886
|
-
const
|
|
8908
|
+
const k = a.a.find(this.table), c = k.rows().reduce((T, C) => {
|
|
8887
8909
|
let B = d(C.domNode.getBoundingClientRect(), this.quill.root.parentNode);
|
|
8888
8910
|
return B.y > this.boundary.y - xt && B.y + B.height < this.boundary.y + this.boundary.height + xt && (T += 1), T;
|
|
8889
8911
|
}, 0), f = this.columnToolCells.reduce((T, C) => {
|
|
8890
8912
|
let B = d(C.getBoundingClientRect(), this.quill.root.parentNode);
|
|
8891
8913
|
return B.x > this.boundary.x - xt && B.x + B.width < this.boundary.x + this.boundary.width + xt && (T += 1), T;
|
|
8892
|
-
}, 0), b =
|
|
8914
|
+
}, 0), b = k.mergeCells(this.boundary, this.selectedTds, c, f, this.quill.root.parentNode);
|
|
8893
8915
|
this.quill.update(a.a.sources.USER), this.tableSelection.setSelection(b.domNode.getBoundingClientRect(), b.domNode.getBoundingClientRect());
|
|
8894
8916
|
}
|
|
8895
8917
|
},
|
|
@@ -8904,9 +8926,9 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8904
8926
|
text: "Delete selected columns",
|
|
8905
8927
|
iconSrc: Te.a,
|
|
8906
8928
|
handler() {
|
|
8907
|
-
const
|
|
8929
|
+
const k = a.a.find(this.table);
|
|
8908
8930
|
let c = Ce(this.columnToolCells, this.boundary, (b, T) => b.x + xt > T.x && b.x + b.width - xt < T.x1, this.quill.root.parentNode);
|
|
8909
|
-
|
|
8931
|
+
k.deleteColumns(this.boundary, c, this.quill.root.parentNode) || (this.tableColumnTool.updateToolCells(), this.quill.update(a.a.sources.USER), this.tableSelection.clearSelection());
|
|
8910
8932
|
}
|
|
8911
8933
|
},
|
|
8912
8934
|
deleteRow: {
|
|
@@ -8920,8 +8942,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8920
8942
|
text: "Delete table",
|
|
8921
8943
|
iconSrc: Jt.a,
|
|
8922
8944
|
handler() {
|
|
8923
|
-
const
|
|
8924
|
-
|
|
8945
|
+
const k = this.quill.getModule("better-table"), c = a.a.find(this.table);
|
|
8946
|
+
k.hideTableTools(), c.remove(), this.quill.update(a.a.sources.USER);
|
|
8925
8947
|
}
|
|
8926
8948
|
}
|
|
8927
8949
|
};
|
|
@@ -8992,21 +9014,21 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
8992
9014
|
return P.classList.add("qlbt-operation-menu-text"), P.innerText = f, C.appendChild(B), C.appendChild(P), C.addEventListener("click", T.bind(this), !1), C;
|
|
8993
9015
|
}
|
|
8994
9016
|
}
|
|
8995
|
-
function te(
|
|
8996
|
-
return
|
|
9017
|
+
function te(k, c, f, b) {
|
|
9018
|
+
return k.reduce((T, C) => {
|
|
8997
9019
|
let B = d(C.getBoundingClientRect(), b);
|
|
8998
|
-
return f(B, c) && (T =
|
|
9020
|
+
return f(B, c) && (T = k.indexOf(C)), T;
|
|
8999
9021
|
}, !1);
|
|
9000
9022
|
}
|
|
9001
|
-
function Ce(
|
|
9002
|
-
return
|
|
9023
|
+
function Ce(k, c, f, b) {
|
|
9024
|
+
return k.reduce((T, C) => {
|
|
9003
9025
|
let B = d(C.getBoundingClientRect(), b);
|
|
9004
|
-
return f(B, c) && T.push(
|
|
9026
|
+
return f(B, c) && T.push(k.indexOf(C)), T;
|
|
9005
9027
|
}, []);
|
|
9006
9028
|
}
|
|
9007
9029
|
const Ot = a.a.import("delta");
|
|
9008
|
-
function re(
|
|
9009
|
-
const b =
|
|
9030
|
+
function re(k, c, f) {
|
|
9031
|
+
const b = k.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, C = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("td")), P = C.indexOf(b) + 1, G = B.indexOf(k) + 1, F = k.getAttribute("colspan") || !1, Y = k.getAttribute("rowspan") || !1, it = k.getAttribute("data-cell-bg") || k.style.backgroundColor;
|
|
9010
9032
|
return c.length() === 0 ? (c = new Ot().insert(`
|
|
9011
9033
|
`, {
|
|
9012
9034
|
"table-cell-line": {
|
|
@@ -9045,8 +9067,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9045
9067
|
}
|
|
9046
9068
|
}, y(Q.attributes, ["table"]))) : Q.attributes && Q.attributes.background && Q.attributes.background === p(it) ? ot.insert(Q.insert, Object.assign({}, y(Q.attributes, ["table", "table-cell-line", "background"]))) : ot.insert(Q.insert, Object.assign({}, y(Q.attributes, ["table", "table-cell-line"]))), ot), new Ot()));
|
|
9047
9069
|
}
|
|
9048
|
-
function Ft(
|
|
9049
|
-
const b =
|
|
9070
|
+
function Ft(k, c, f) {
|
|
9071
|
+
const b = k.parentNode, T = b.parentNode.tagName === "TABLE" ? b.parentNode : b.parentNode.parentNode, C = Array.from(T.querySelectorAll("tr")), B = Array.from(b.querySelectorAll("th")), P = C.indexOf(b) + 1, G = B.indexOf(k) + 1, F = k.getAttribute("colspan") || !1, Y = k.getAttribute("rowspan") || !1;
|
|
9050
9072
|
return c.length() === 0 ? (c = new Ot().insert(`
|
|
9051
9073
|
`, {
|
|
9052
9074
|
"table-cell-line": {
|
|
@@ -9091,14 +9113,14 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9091
9113
|
}
|
|
9092
9114
|
})) : it.insert(ot.insert, Object.assign({}, y(ot.attributes, ["table", "table-cell-line"]))), it), new Ot()));
|
|
9093
9115
|
}
|
|
9094
|
-
function Ye(
|
|
9116
|
+
function Ye(k, c, f) {
|
|
9095
9117
|
let b = new Ot();
|
|
9096
|
-
const T =
|
|
9118
|
+
const T = k.querySelector("tr");
|
|
9097
9119
|
if (T === null) return b;
|
|
9098
9120
|
const B = Array.from(T.querySelectorAll("td")).concat(Array.from(T.querySelectorAll("th"))).reduce((G, F) => {
|
|
9099
9121
|
const Y = F.getAttribute("colspan") || 1;
|
|
9100
9122
|
return G = G + parseInt(Y, 10), G;
|
|
9101
|
-
}, 0), P =
|
|
9123
|
+
}, 0), P = k.querySelectorAll("col").length;
|
|
9102
9124
|
if (P === B)
|
|
9103
9125
|
return c;
|
|
9104
9126
|
{
|
|
@@ -9200,8 +9222,8 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9200
9222
|
format: ["table-cell-line"],
|
|
9201
9223
|
collapsed: !0,
|
|
9202
9224
|
offset: 0,
|
|
9203
|
-
handler(
|
|
9204
|
-
const [f, b] = this.quill.getLine(
|
|
9225
|
+
handler(k, c) {
|
|
9226
|
+
const [f, b] = this.quill.getLine(k.index);
|
|
9205
9227
|
return !(!f.prev || f.prev.statics.blotName !== "table-cell-line");
|
|
9206
9228
|
}
|
|
9207
9229
|
},
|
|
@@ -9217,13 +9239,13 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9217
9239
|
key: "Enter",
|
|
9218
9240
|
shiftKey: null,
|
|
9219
9241
|
format: ["table-cell-line"],
|
|
9220
|
-
handler(
|
|
9242
|
+
handler(k, c) {
|
|
9221
9243
|
if (this.quill.selection && this.quill.selection.composing) return;
|
|
9222
9244
|
const f = a.a.imports.parchment.Scope;
|
|
9223
|
-
|
|
9245
|
+
k.length > 0 && this.quill.scroll.deleteAt(k.index, k.length);
|
|
9224
9246
|
const b = Object.keys(c.format).reduce((T, C) => (this.quill.scroll.query(C, f.BLOCK) && !Array.isArray(c.format[C]) && (T[C] = c.format[C]), T), {});
|
|
9225
|
-
this.quill.insertText(
|
|
9226
|
-
`, b["table-cell-line"], a.a.sources.USER), this.quill.setSelection(
|
|
9247
|
+
this.quill.insertText(k.index, `
|
|
9248
|
+
`, b["table-cell-line"], a.a.sources.USER), this.quill.setSelection(k.index + 1, a.a.sources.SILENT), this.quill.focus(), Object.keys(c.format).forEach((T) => {
|
|
9227
9249
|
b[T] == null && (Array.isArray(c.format[T]) || T !== "link" && this.quill.format(T, c.format[T], a.a.sources.USER));
|
|
9228
9250
|
});
|
|
9229
9251
|
}
|
|
@@ -9233,7 +9255,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9233
9255
|
"down-to-table": {
|
|
9234
9256
|
key: "ArrowDown",
|
|
9235
9257
|
collapsed: !0,
|
|
9236
|
-
handler(
|
|
9258
|
+
handler(k, c) {
|
|
9237
9259
|
const f = c.line.next;
|
|
9238
9260
|
if (f && f.statics.blotName === "table-view") {
|
|
9239
9261
|
const T = f.table().rows()[0].children.head.children.head;
|
|
@@ -9245,7 +9267,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9245
9267
|
"up-to-table": {
|
|
9246
9268
|
key: "ArrowUp",
|
|
9247
9269
|
collapsed: !0,
|
|
9248
|
-
handler(
|
|
9270
|
+
handler(k, c) {
|
|
9249
9271
|
const f = c.line.prev;
|
|
9250
9272
|
if (f && f.statics.blotName === "table-view") {
|
|
9251
9273
|
const b = f.table().rows(), C = b[b.length - 1].children.head.children.head;
|
|
@@ -9255,13 +9277,13 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9255
9277
|
}
|
|
9256
9278
|
}
|
|
9257
9279
|
};
|
|
9258
|
-
function Se(
|
|
9280
|
+
function Se(k) {
|
|
9259
9281
|
return {
|
|
9260
|
-
key:
|
|
9282
|
+
key: k ? "ArrowUp" : "ArrowDown",
|
|
9261
9283
|
collapsed: !0,
|
|
9262
9284
|
format: ["table-cell-line"],
|
|
9263
9285
|
handler(c, f) {
|
|
9264
|
-
const b =
|
|
9286
|
+
const b = k ? "prev" : "next";
|
|
9265
9287
|
if (f.line[b] != null) return !0;
|
|
9266
9288
|
const C = f.line.parent, B = C.parent[b];
|
|
9267
9289
|
if (B != null && B.statics.blotName === "table-row") {
|
|
@@ -9274,17 +9296,17 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9274
9296
|
this.quill.setSelection(it, 0, a.a.sources.USER);
|
|
9275
9297
|
} else {
|
|
9276
9298
|
const P = C.table().parent[b];
|
|
9277
|
-
P != null && (
|
|
9299
|
+
P != null && (k ? this.quill.setSelection(P.offset(this.quill.scroll) + P.length() - 1, 0, a.a.sources.USER) : this.quill.setSelection(P.offset(this.quill.scroll), 0, a.a.sources.USER));
|
|
9278
9300
|
}
|
|
9279
9301
|
return !1;
|
|
9280
9302
|
}
|
|
9281
9303
|
};
|
|
9282
9304
|
}
|
|
9283
|
-
function fn(
|
|
9284
|
-
return
|
|
9305
|
+
function fn(k) {
|
|
9306
|
+
return k.statics.blotName === L.blotName;
|
|
9285
9307
|
}
|
|
9286
|
-
function Je(
|
|
9287
|
-
return
|
|
9308
|
+
function Je(k) {
|
|
9309
|
+
return k && k.parent ? fn(k.parent) ? !0 : Je(k.parent) : !1;
|
|
9288
9310
|
}
|
|
9289
9311
|
s.default = Qe;
|
|
9290
9312
|
},
|
|
@@ -9301,7 +9323,7 @@ Update propagation: ` + ct.chain.join(" -> ")), ct.type) {
|
|
|
9301
9323
|
}(Ps)), Ps.exports;
|
|
9302
9324
|
}
|
|
9303
9325
|
var z1 = H1();
|
|
9304
|
-
const Bl = /* @__PURE__ */
|
|
9326
|
+
const Bl = /* @__PURE__ */ yi(z1), F1 = M.import("delta"), Q1 = Ko({
|
|
9305
9327
|
name: "QuillEditor",
|
|
9306
9328
|
inheritAttrs: !1,
|
|
9307
9329
|
props: {
|
|
@@ -9358,16 +9380,16 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = k.import("delta"), J1 = Wo({
|
|
|
9358
9380
|
"ready"
|
|
9359
9381
|
],
|
|
9360
9382
|
setup: (r, t) => {
|
|
9361
|
-
|
|
9383
|
+
Zo(() => {
|
|
9362
9384
|
o();
|
|
9363
|
-
}),
|
|
9385
|
+
}), Xo(() => {
|
|
9364
9386
|
e = null;
|
|
9365
9387
|
});
|
|
9366
9388
|
let e, n;
|
|
9367
9389
|
const s = qi(), i = (x, v) => {
|
|
9368
|
-
|
|
9390
|
+
M != null && M.imports && x in M.imports || M.register(x, v);
|
|
9369
9391
|
};
|
|
9370
|
-
|
|
9392
|
+
M.register(
|
|
9371
9393
|
{
|
|
9372
9394
|
"modules/better-table": Bl
|
|
9373
9395
|
},
|
|
@@ -9382,7 +9404,7 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = k.import("delta"), J1 = Wo({
|
|
|
9382
9404
|
i(`modules/${v.name}`, v.module);
|
|
9383
9405
|
else
|
|
9384
9406
|
i(`modules/${r.modules.name}`, r.modules.module);
|
|
9385
|
-
e = new
|
|
9407
|
+
e = new M(s.value, n), rt(r.content), e.on("text-change", p), e.on("selection-change", A), e.on("editor-change", q), r.theme !== "bubble" && s.value.classList.remove("ql-bubble"), r.theme !== "snow" && s.value.classList.remove("ql-snow"), (x = e.getModule("toolbar")) === null || x === void 0 || x.container.addEventListener("mousedown", (v) => {
|
|
9386
9408
|
["picker-hue-range-slider", "picker-opacity-slider"].includes(
|
|
9387
9409
|
v.target.getAttribute("class")
|
|
9388
9410
|
) || v.target.tagName === "INPUT" || v.preventDefault();
|
|
@@ -9473,7 +9495,7 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = k.import("delta"), J1 = Wo({
|
|
|
9473
9495
|
return (x = e == null ? void 0 : e.root.innerHTML) !== null && x !== void 0 ? x : "";
|
|
9474
9496
|
}, vt = (x) => {
|
|
9475
9497
|
e && (e.root.innerHTML = x);
|
|
9476
|
-
},
|
|
9498
|
+
}, Mt = (x, v = "api") => {
|
|
9477
9499
|
const O = e == null ? void 0 : e.clipboard.convert(x);
|
|
9478
9500
|
O && (e == null || e.setContents(O, v));
|
|
9479
9501
|
}, Lt = () => {
|
|
@@ -9508,7 +9530,7 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = k.import("delta"), J1 = Wo({
|
|
|
9508
9530
|
setContents: rt,
|
|
9509
9531
|
getHTML: At,
|
|
9510
9532
|
setHTML: vt,
|
|
9511
|
-
pasteHTML:
|
|
9533
|
+
pasteHTML: Mt,
|
|
9512
9534
|
focus: Lt,
|
|
9513
9535
|
getText: nt,
|
|
9514
9536
|
setText: bt,
|
|
@@ -9519,11 +9541,12 @@ const Bl = /* @__PURE__ */ ci(z1), F1 = k.import("delta"), J1 = Wo({
|
|
|
9519
9541
|
var r, t;
|
|
9520
9542
|
return [
|
|
9521
9543
|
(t = (r = this.$slots).toolbar) === null || t === void 0 ? void 0 : t.call(r),
|
|
9522
|
-
|
|
9544
|
+
Wo("div", Object.assign({ ref: "editor" }, this.$attrs))
|
|
9523
9545
|
];
|
|
9524
9546
|
}
|
|
9525
9547
|
});
|
|
9526
9548
|
export {
|
|
9527
|
-
|
|
9528
|
-
|
|
9549
|
+
M as Q,
|
|
9550
|
+
Q1 as a,
|
|
9551
|
+
yi as g
|
|
9529
9552
|
};
|