@konnectio/core 4.0.5 → 4.0.7
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/{ActionField-0c047379.mjs → ActionField-5ecfc9dc.js} +26 -28
- package/dist/ActionField-5ecfc9dc.js.br +0 -0
- package/dist/ActionField-ae9b1adf.cjs +1 -0
- package/dist/HotelAvailabilityForm-0cd1abda.cjs +1 -0
- package/dist/{HotelAvailabilityForm-29f12395.mjs → HotelAvailabilityForm-a7b6f17e.js} +23 -25
- package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +793 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js +16403 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
- package/dist/{ReCaptchaVuePlugin-616ef9b9.mjs → ReCaptchaVuePlugin-05b8ec39.js} +2 -3
- package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +1 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs → SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js} +1020 -1022
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
- package/dist/{SelectField.vue_vue_type_style_index_0_lang-18843626.js → SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs} +16 -17
- package/dist/{ThankYou-f6205791.mjs → ThankYou-1866d8db.js} +2853 -2825
- package/dist/ThankYou-1866d8db.js.br +0 -0
- package/dist/ThankYou-5741bcb6.cjs +15 -0
- package/dist/{_commonjsHelpers-6763f629.js → _commonjsHelpers-6763f629.cjs} +0 -1
- package/dist/{_commonjsHelpers-c5d32002.mjs → _commonjsHelpers-aeeeeb92.js} +2 -3
- package/dist/{applyGiftCard-02342491.mjs → applyGiftCard-c5e4aaad.js} +12 -14
- package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
- package/dist/applyGiftCard-d9ab3dcf.cjs +1 -0
- package/dist/assets/typescript/mixins.d.ts +36 -0
- package/dist/availability.cjs.js +1 -2
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.d.ts +3 -0
- package/dist/availability.es.js +31 -30
- package/dist/availability.es.js.br +0 -0
- package/dist/components/Alert.vue.d.ts +5 -0
- package/dist/components/Alert.vue.d.ts.map +1 -0
- package/dist/components/Clickable.vue.d.ts +5 -0
- package/dist/components/Clickable.vue.d.ts.map +1 -0
- package/dist/components/GoogleNotice.vue.d.ts +4 -0
- package/dist/components/GoogleNotice.vue.d.ts.map +1 -0
- package/dist/components/Icon.vue.d.ts +5 -0
- package/dist/components/Icon.vue.d.ts.map +1 -0
- package/dist/components/Loading.vue.d.ts +5 -0
- package/dist/components/Loading.vue.d.ts.map +1 -0
- package/dist/components/LoadingBlock.vue.d.ts +4 -0
- package/dist/components/LoadingBlock.vue.d.ts.map +1 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +5 -0
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +1 -0
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +5 -0
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +1 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts +5 -0
- package/dist/components/forms/MultiStepForm.vue.d.ts.map +1 -0
- package/dist/components/forms/ReservationForm.vue.d.ts +5 -0
- package/dist/components/forms/ReservationForm.vue.d.ts.map +1 -0
- package/dist/components/inputs/Checkbox.vue.d.ts +5 -0
- package/dist/components/inputs/Checkbox.vue.d.ts.map +1 -0
- package/dist/components/inputs/DateField.vue.d.ts +5 -0
- package/dist/components/inputs/DateField.vue.d.ts.map +1 -0
- package/dist/components/inputs/InputField.vue.d.ts +5 -0
- package/dist/components/inputs/InputField.vue.d.ts.map +1 -0
- package/dist/components/inputs/MediaSelector.vue.d.ts +5 -0
- package/dist/components/inputs/MediaSelector.vue.d.ts.map +1 -0
- package/dist/components/inputs/NumberField.vue.d.ts +5 -0
- package/dist/components/inputs/NumberField.vue.d.ts.map +1 -0
- package/dist/components/inputs/SelectField.vue.d.ts +5 -0
- package/dist/components/inputs/SelectField.vue.d.ts.map +1 -0
- package/dist/components/inputs/TextField.vue.d.ts +5 -0
- package/dist/components/inputs/TextField.vue.d.ts.map +1 -0
- package/dist/components/inputs/TimeField.vue.d.ts +5 -0
- package/dist/components/inputs/TimeField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/ActionField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/NameField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/NameField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts +5 -0
- package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +4 -0
- package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +1 -0
- package/dist/components/listings/Base.vue.d.ts +6 -0
- package/dist/components/listings/Base.vue.d.ts.map +1 -0
- package/dist/components/listings/Event.vue.d.ts +5 -0
- package/dist/components/listings/Event.vue.d.ts.map +1 -0
- package/dist/components/listings/Test.vue.d.ts +5 -0
- package/dist/components/listings/Test.vue.d.ts.map +1 -0
- package/dist/components/modals/Base.vue.d.ts +5 -0
- package/dist/components/modals/Base.vue.d.ts.map +1 -0
- package/dist/components/modals/Info.vue.d.ts +5 -0
- package/dist/components/modals/Info.vue.d.ts.map +1 -0
- package/dist/components/modals/Terms.vue.d.ts +4 -0
- package/dist/components/modals/Terms.vue.d.ts.map +1 -0
- package/dist/components/side-panels/Base.vue.d.ts +5 -0
- package/dist/components/side-panels/Base.vue.d.ts.map +1 -0
- package/dist/components/side-panels/Hotel.vue.d.ts +4 -0
- package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -0
- package/dist/components/views/CheckoutWindow.vue.d.ts +5 -0
- package/dist/components/views/CheckoutWindow.vue.d.ts.map +1 -0
- package/dist/components/views/TermsOfService.vue.d.ts +5 -0
- package/dist/components/views/TermsOfService.vue.d.ts.map +1 -0
- package/dist/components/views/ThankYou.vue.d.ts +5 -0
- package/dist/components/views/ThankYou.vue.d.ts.map +1 -0
- package/dist/entries/availability.d.ts +2 -0
- package/dist/entries/event.d.ts +2 -0
- package/dist/entries/gift-card-validation.d.ts +2 -0
- package/dist/entries/gift-card.d.ts +2 -0
- package/dist/entries/hotel.d.ts +2 -0
- package/dist/entries/navigation.d.ts +1 -0
- package/dist/entries/polyfill.d.ts +0 -0
- package/dist/event-39706438.cjs +1 -0
- package/dist/{event-cc266121.mjs → event-a70cffeb.js} +48 -47
- package/dist/event-a70cffeb.js.br +0 -0
- package/dist/event.cjs.js +1 -2
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.d.ts +3 -0
- package/dist/event.es.js +175 -174
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +1 -2
- package/dist/gift-card-validation.cjs.js.br +0 -0
- package/dist/gift-card-validation.d.ts +3 -0
- package/dist/gift-card-validation.es.js +54 -53
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +1 -2
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.d.ts +3 -0
- package/dist/gift-card.es.js +90 -89
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +5 -6
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.d.ts +3 -0
- package/dist/hotel.es.js +298 -298
- package/dist/hotel.es.js.br +0 -0
- package/dist/{index-30f70976.mjs → index-00262c16.js} +64 -69
- package/dist/index-00262c16.js.br +0 -0
- package/dist/index-58f3b0cc.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +244 -0
- package/dist/layouts/Event.vue.d.ts +244 -0
- package/dist/layouts/GiftCard.vue.d.ts +252 -0
- package/dist/layouts/GiftCardValidation.vue.d.ts +228 -0
- package/dist/layouts/Hotel.vue.d.ts +277 -0
- package/dist/layouts/_.vue.d.ts +30 -0
- package/dist/navigation.cjs.js +1 -2
- package/dist/navigation.d.ts +1 -0
- package/dist/navigation.es.js +1 -59
- package/dist/{payment-b3022c46.mjs → payment-9e219e9b.js} +221 -223
- package/dist/payment-9e219e9b.js.br +0 -0
- package/dist/{payment-bfd660a7.js → payment-fbffaa6d.cjs} +2 -3
- package/dist/plugins/i18n.d.ts +5 -0
- package/dist/polyfill.cjs.js +2 -3
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.d.ts +1 -0
- package/dist/polyfill.es.js +2 -4
- package/dist/polyfill.es.js.br +0 -0
- package/dist/store/alert.d.ts +28 -0
- package/dist/store/applyGiftCard.d.ts +28 -0
- package/dist/store/availability.d.ts +37 -0
- package/dist/store/event.d.ts +683 -0
- package/dist/store/giftCard.d.ts +80 -0
- package/dist/store/hotel.d.ts +662 -0
- package/dist/store/payment.d.ts +133 -0
- package/dist/store/recaptcha.d.ts +1 -0
- package/dist/store/tracking.d.ts +24 -0
- package/dist/store/utilities.d.ts +317 -0
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/dist/types/index.d.ts +868 -0
- package/package.json +27 -11
- package/dist/ActionField-0c047379.mjs.br +0 -0
- package/dist/ActionField-3640689b.js +0 -2
- package/dist/ActionField-3640689b.js.br +0 -0
- package/dist/Clickable-386eceb6.mjs +0 -12390
- package/dist/Clickable-386eceb6.mjs.br +0 -0
- package/dist/Clickable-77afc133.js +0 -768
- package/dist/Clickable-77afc133.js.br +0 -0
- package/dist/HotelAvailabilityForm-29f12395.mjs.br +0 -0
- package/dist/HotelAvailabilityForm-89ba629d.js +0 -2
- package/dist/HotelAvailabilityForm-89ba629d.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs +0 -4027
- package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js +0 -28
- package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-0988d77f.js +0 -2
- package/dist/ReCaptchaVuePlugin-0988d77f.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-616ef9b9.mjs.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-18843626.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs.br +0 -0
- package/dist/ThankYou-1096ca5a.js +0 -16
- package/dist/ThankYou-1096ca5a.js.br +0 -0
- package/dist/ThankYou-f6205791.mjs.br +0 -0
- package/dist/applyGiftCard-02342491.mjs.br +0 -0
- package/dist/applyGiftCard-e24bae0c.js +0 -2
- package/dist/applyGiftCard-e24bae0c.js.br +0 -0
- package/dist/event-cc266121.mjs.br +0 -0
- package/dist/event-d580e6e8.js +0 -2
- package/dist/event-d580e6e8.js.br +0 -0
- package/dist/index-30f70976.mjs.br +0 -0
- package/dist/index-4e9533a9.js +0 -2
- package/dist/index-4e9533a9.js.br +0 -0
- package/dist/navigation.cjs.js.br +0 -0
- package/dist/navigation.es.js.br +0 -0
- package/dist/payment-b3022c46.mjs.br +0 -0
- package/dist/payment-bfd660a7.js.br +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as Se,
|
|
3
|
-
import { v as Ar, D as dr, I as Tr } from "./NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs";
|
|
1
|
+
import { h as tr, o as nr, ai as Mr, r as gt, t as on, aj as Dr, ad as ur, j as Er, c as en, k as me, l as mt, w as jt, v as Le, y as bt, a9 as It, ak as Br, ag as an, n as Ge, al as sr, ab as Cr, am as Fr, x as Be, B as Mt, A as Jn, a0 as ln, I as wr, _ as Ur, a8 as Hr, an as De, ao as Ue, ap as Ke, Y as fr, Z as cr, aq as Wn, ar as $r, aa as hr, m as Ar, H as dr, a4 as Vr } from "./NumberField.vue_vue_type_style_index_0_lang-ab747739.js";
|
|
2
|
+
import { c as Se, a as Tr } from "./_commonjsHelpers-aeeeeb92.js";
|
|
4
3
|
var Sr = { exports: {} };
|
|
5
4
|
/*!
|
|
6
5
|
* Quill Editor v1.3.7
|
|
@@ -61,7 +60,7 @@ var Sr = { exports: {} };
|
|
|
61
60
|
/***/
|
|
62
61
|
function(c, p, f) {
|
|
63
62
|
Object.defineProperty(p, "__esModule", { value: !0 });
|
|
64
|
-
var E = f(17), _ = f(18), O = f(19), g = f(45), b = f(46), d = f(47), o = f(48), e = f(49), t = f(12),
|
|
63
|
+
var E = f(17), _ = f(18), O = f(19), g = f(45), b = f(46), d = f(47), o = f(48), e = f(49), t = f(12), a = f(32), l = f(33), s = f(31), r = f(1), i = {
|
|
65
64
|
Scope: r.Scope,
|
|
66
65
|
create: r.create,
|
|
67
66
|
find: r.find,
|
|
@@ -77,8 +76,8 @@ var Sr = { exports: {} };
|
|
|
77
76
|
Text: e.default,
|
|
78
77
|
Attributor: {
|
|
79
78
|
Attribute: t.default,
|
|
80
|
-
Class:
|
|
81
|
-
Style:
|
|
79
|
+
Class: a.default,
|
|
80
|
+
Style: l.default,
|
|
82
81
|
Store: s.default
|
|
83
82
|
}
|
|
84
83
|
};
|
|
@@ -122,7 +121,7 @@ var Sr = { exports: {} };
|
|
|
122
121
|
s[s.TYPE = 3] = "TYPE", s[s.LEVEL = 12] = "LEVEL", s[s.ATTRIBUTE = 13] = "ATTRIBUTE", s[s.BLOT = 14] = "BLOT", s[s.INLINE = 7] = "INLINE", s[s.BLOCK = 11] = "BLOCK", s[s.BLOCK_BLOT = 10] = "BLOCK_BLOT", s[s.INLINE_BLOT = 6] = "INLINE_BLOT", s[s.BLOCK_ATTRIBUTE = 9] = "BLOCK_ATTRIBUTE", s[s.INLINE_ATTRIBUTE = 5] = "INLINE_ATTRIBUTE", s[s.ANY = 15] = "ANY";
|
|
123
122
|
})(o = p.Scope || (p.Scope = {}));
|
|
124
123
|
function e(s, r) {
|
|
125
|
-
var i =
|
|
124
|
+
var i = a(s);
|
|
126
125
|
if (i == null)
|
|
127
126
|
throw new _("Unable to create " + s + " blot");
|
|
128
127
|
var h = i, n = (
|
|
@@ -136,7 +135,7 @@ var Sr = { exports: {} };
|
|
|
136
135
|
return r === void 0 && (r = !1), s == null ? null : s[p.DATA_KEY] != null ? s[p.DATA_KEY].blot : r ? t(s.parentNode, r) : null;
|
|
137
136
|
}
|
|
138
137
|
p.find = t;
|
|
139
|
-
function
|
|
138
|
+
function a(s, r) {
|
|
140
139
|
r === void 0 && (r = o.ANY);
|
|
141
140
|
var i;
|
|
142
141
|
if (typeof s == "string")
|
|
@@ -154,13 +153,13 @@ var Sr = { exports: {} };
|
|
|
154
153
|
}
|
|
155
154
|
return i == null ? null : r & o.LEVEL & i.scope && r & o.TYPE & i.scope ? i : null;
|
|
156
155
|
}
|
|
157
|
-
p.query =
|
|
158
|
-
function
|
|
156
|
+
p.query = a;
|
|
157
|
+
function l() {
|
|
159
158
|
for (var s = [], r = 0; r < arguments.length; r++)
|
|
160
159
|
s[r] = arguments[r];
|
|
161
160
|
if (s.length > 1)
|
|
162
161
|
return s.map(function(n) {
|
|
163
|
-
return
|
|
162
|
+
return l(n);
|
|
164
163
|
});
|
|
165
164
|
var i = s[0];
|
|
166
165
|
if (typeof i.blotName != "string" && typeof i.attrName != "string")
|
|
@@ -180,7 +179,7 @@ var Sr = { exports: {} };
|
|
|
180
179
|
}
|
|
181
180
|
return i;
|
|
182
181
|
}
|
|
183
|
-
p.register =
|
|
182
|
+
p.register = l;
|
|
184
183
|
},
|
|
185
184
|
/* 2 */
|
|
186
185
|
/***/
|
|
@@ -224,9 +223,9 @@ var Sr = { exports: {} };
|
|
|
224
223
|
return this.ops.map(o);
|
|
225
224
|
}, d.prototype.partition = function(o) {
|
|
226
225
|
var e = [], t = [];
|
|
227
|
-
return this.forEach(function(
|
|
228
|
-
var
|
|
229
|
-
|
|
226
|
+
return this.forEach(function(a) {
|
|
227
|
+
var l = o(a) ? e : t;
|
|
228
|
+
l.push(a);
|
|
230
229
|
}), [e, t];
|
|
231
230
|
}, d.prototype.reduce = function(o, e) {
|
|
232
231
|
return this.ops.reduce(o, e);
|
|
@@ -240,19 +239,19 @@ var Sr = { exports: {} };
|
|
|
240
239
|
}, 0);
|
|
241
240
|
}, d.prototype.slice = function(o, e) {
|
|
242
241
|
o = o || 0, typeof e != "number" && (e = 1 / 0);
|
|
243
|
-
for (var t = [],
|
|
242
|
+
for (var t = [], a = g.iterator(this.ops), l = 0; l < e && a.hasNext(); ) {
|
|
244
243
|
var s;
|
|
245
|
-
|
|
244
|
+
l < o ? s = a.next(o - l) : (s = a.next(e - l), t.push(s)), l += g.length(s);
|
|
246
245
|
}
|
|
247
246
|
return new d(t);
|
|
248
247
|
}, d.prototype.compose = function(o) {
|
|
249
|
-
var e = g.iterator(this.ops), t = g.iterator(o.ops),
|
|
250
|
-
if (
|
|
251
|
-
for (var s =
|
|
252
|
-
s -= e.peekLength(),
|
|
253
|
-
|
|
248
|
+
var e = g.iterator(this.ops), t = g.iterator(o.ops), a = [], l = t.peek();
|
|
249
|
+
if (l != null && typeof l.retain == "number" && l.attributes == null) {
|
|
250
|
+
for (var s = l.retain; e.peekType() === "insert" && e.peekLength() <= s; )
|
|
251
|
+
s -= e.peekLength(), a.push(e.next());
|
|
252
|
+
l.retain - s > 0 && t.next(l.retain - s);
|
|
254
253
|
}
|
|
255
|
-
for (var r = new d(
|
|
254
|
+
for (var r = new d(a); e.hasNext() || t.hasNext(); )
|
|
256
255
|
if (t.peekType() === "insert")
|
|
257
256
|
r.push(t.next());
|
|
258
257
|
else if (e.peekType() === "delete")
|
|
@@ -284,69 +283,69 @@ var Sr = { exports: {} };
|
|
|
284
283
|
var n = i === o ? "on" : "with";
|
|
285
284
|
throw new Error("diff() called " + n + " non-document");
|
|
286
285
|
}).join("");
|
|
287
|
-
}),
|
|
288
|
-
return
|
|
286
|
+
}), a = new d(), l = E(t[0], t[1], e), s = g.iterator(this.ops), r = g.iterator(o.ops);
|
|
287
|
+
return l.forEach(function(i) {
|
|
289
288
|
for (var h = i[1].length; h > 0; ) {
|
|
290
289
|
var n = 0;
|
|
291
290
|
switch (i[0]) {
|
|
292
291
|
case E.INSERT:
|
|
293
|
-
n = Math.min(r.peekLength(), h),
|
|
292
|
+
n = Math.min(r.peekLength(), h), a.push(r.next(n));
|
|
294
293
|
break;
|
|
295
294
|
case E.DELETE:
|
|
296
|
-
n = Math.min(h, s.peekLength()), s.next(n),
|
|
295
|
+
n = Math.min(h, s.peekLength()), s.next(n), a.delete(n);
|
|
297
296
|
break;
|
|
298
297
|
case E.EQUAL:
|
|
299
298
|
n = Math.min(s.peekLength(), r.peekLength(), h);
|
|
300
299
|
var v = s.next(n), k = r.next(n);
|
|
301
|
-
_(v.insert, k.insert) ?
|
|
300
|
+
_(v.insert, k.insert) ? a.retain(n, g.attributes.diff(v.attributes, k.attributes)) : a.push(k).delete(n);
|
|
302
301
|
break;
|
|
303
302
|
}
|
|
304
303
|
h -= n;
|
|
305
304
|
}
|
|
306
|
-
}),
|
|
305
|
+
}), a.chop();
|
|
307
306
|
}, d.prototype.eachLine = function(o, e) {
|
|
308
307
|
e = e || `
|
|
309
308
|
`;
|
|
310
|
-
for (var t = g.iterator(this.ops),
|
|
309
|
+
for (var t = g.iterator(this.ops), a = new d(), l = 0; t.hasNext(); ) {
|
|
311
310
|
if (t.peekType() !== "insert")
|
|
312
311
|
return;
|
|
313
312
|
var s = t.peek(), r = g.length(s) - t.peekLength(), i = typeof s.insert == "string" ? s.insert.indexOf(e, r) - r : -1;
|
|
314
313
|
if (i < 0)
|
|
315
|
-
|
|
314
|
+
a.push(t.next());
|
|
316
315
|
else if (i > 0)
|
|
317
|
-
|
|
316
|
+
a.push(t.next(i));
|
|
318
317
|
else {
|
|
319
|
-
if (o(
|
|
318
|
+
if (o(a, t.next(1).attributes || {}, l) === !1)
|
|
320
319
|
return;
|
|
321
|
-
|
|
320
|
+
l += 1, a = new d();
|
|
322
321
|
}
|
|
323
322
|
}
|
|
324
|
-
|
|
323
|
+
a.length() > 0 && o(a, {}, l);
|
|
325
324
|
}, d.prototype.transform = function(o, e) {
|
|
326
325
|
if (e = !!e, typeof o == "number")
|
|
327
326
|
return this.transformPosition(o, e);
|
|
328
|
-
for (var t = g.iterator(this.ops),
|
|
329
|
-
if (t.peekType() === "insert" && (e ||
|
|
330
|
-
|
|
331
|
-
else if (
|
|
332
|
-
|
|
327
|
+
for (var t = g.iterator(this.ops), a = g.iterator(o.ops), l = new d(); t.hasNext() || a.hasNext(); )
|
|
328
|
+
if (t.peekType() === "insert" && (e || a.peekType() !== "insert"))
|
|
329
|
+
l.retain(g.length(t.next()));
|
|
330
|
+
else if (a.peekType() === "insert")
|
|
331
|
+
l.push(a.next());
|
|
333
332
|
else {
|
|
334
|
-
var s = Math.min(t.peekLength(),
|
|
333
|
+
var s = Math.min(t.peekLength(), a.peekLength()), r = t.next(s), i = a.next(s);
|
|
335
334
|
if (r.delete)
|
|
336
335
|
continue;
|
|
337
|
-
i.delete ?
|
|
336
|
+
i.delete ? l.push(i) : l.retain(s, g.attributes.transform(r.attributes, i.attributes, e));
|
|
338
337
|
}
|
|
339
|
-
return
|
|
338
|
+
return l.chop();
|
|
340
339
|
}, d.prototype.transformPosition = function(o, e) {
|
|
341
340
|
e = !!e;
|
|
342
|
-
for (var t = g.iterator(this.ops),
|
|
343
|
-
var
|
|
341
|
+
for (var t = g.iterator(this.ops), a = 0; t.hasNext() && a <= o; ) {
|
|
342
|
+
var l = t.peekLength(), s = t.peekType();
|
|
344
343
|
if (t.next(), s === "delete") {
|
|
345
|
-
o -= Math.min(
|
|
344
|
+
o -= Math.min(l, o - a);
|
|
346
345
|
continue;
|
|
347
346
|
} else
|
|
348
|
-
s === "insert" && (
|
|
349
|
-
|
|
347
|
+
s === "insert" && (a < o || !e) && (o += l);
|
|
348
|
+
a += l;
|
|
350
349
|
}
|
|
351
350
|
return o;
|
|
352
351
|
}, c.exports = d;
|
|
@@ -359,35 +358,35 @@ var Sr = { exports: {} };
|
|
|
359
358
|
}, b = function(t) {
|
|
360
359
|
if (!t || E.call(t) !== "[object Object]")
|
|
361
360
|
return !1;
|
|
362
|
-
var
|
|
363
|
-
if (t.constructor && !
|
|
361
|
+
var a = f.call(t, "constructor"), l = t.constructor && t.constructor.prototype && f.call(t.constructor.prototype, "isPrototypeOf");
|
|
362
|
+
if (t.constructor && !a && !l)
|
|
364
363
|
return !1;
|
|
365
364
|
var s;
|
|
366
365
|
for (s in t)
|
|
367
366
|
;
|
|
368
367
|
return typeof s > "u" || f.call(t, s);
|
|
369
|
-
}, d = function(t,
|
|
370
|
-
_ &&
|
|
368
|
+
}, d = function(t, a) {
|
|
369
|
+
_ && a.name === "__proto__" ? _(t, a.name, {
|
|
371
370
|
enumerable: !0,
|
|
372
371
|
configurable: !0,
|
|
373
|
-
value:
|
|
372
|
+
value: a.newValue,
|
|
374
373
|
writable: !0
|
|
375
|
-
}) : t[
|
|
376
|
-
}, o = function(t,
|
|
377
|
-
if (
|
|
378
|
-
if (f.call(t,
|
|
374
|
+
}) : t[a.name] = a.newValue;
|
|
375
|
+
}, o = function(t, a) {
|
|
376
|
+
if (a === "__proto__")
|
|
377
|
+
if (f.call(t, a)) {
|
|
379
378
|
if (O)
|
|
380
|
-
return O(t,
|
|
379
|
+
return O(t, a).value;
|
|
381
380
|
} else
|
|
382
381
|
return;
|
|
383
|
-
return t[
|
|
382
|
+
return t[a];
|
|
384
383
|
};
|
|
385
384
|
c.exports = function e() {
|
|
386
|
-
var t,
|
|
385
|
+
var t, a, l, s, r, i, h = arguments[0], n = 1, v = arguments.length, k = !1;
|
|
387
386
|
for (typeof h == "boolean" && (k = h, h = arguments[1] || {}, n = 2), (h == null || typeof h != "object" && typeof h != "function") && (h = {}); n < v; ++n)
|
|
388
387
|
if (t = arguments[n], t != null)
|
|
389
|
-
for (
|
|
390
|
-
|
|
388
|
+
for (a in t)
|
|
389
|
+
l = o(h, a), s = o(t, a), h !== s && (k && s && (b(s) || (r = g(s))) ? (r ? (r = !1, i = l && g(l) ? l : []) : i = l && b(l) ? l : {}, d(h, { name: a, newValue: e(k, i, s) })) : typeof s < "u" && d(h, { name: a, newValue: s }));
|
|
391
390
|
return h;
|
|
392
391
|
};
|
|
393
392
|
},
|
|
@@ -411,15 +410,15 @@ var Sr = { exports: {} };
|
|
|
411
410
|
w === null && (w = Function.prototype);
|
|
412
411
|
var B = Object.getOwnPropertyDescriptor(w, N);
|
|
413
412
|
if (B === void 0) {
|
|
414
|
-
var
|
|
415
|
-
return
|
|
413
|
+
var $ = Object.getPrototypeOf(w);
|
|
414
|
+
return $ === null ? void 0 : y($, N, q);
|
|
416
415
|
} else {
|
|
417
416
|
if ("value" in B)
|
|
418
417
|
return B.value;
|
|
419
418
|
var z = B.get;
|
|
420
419
|
return z === void 0 ? void 0 : z.call(q);
|
|
421
420
|
}
|
|
422
|
-
}, O = f(3), g = h(O), b = f(2), d = h(b), o = f(0), e = h(o), t = f(16),
|
|
421
|
+
}, O = f(3), g = h(O), b = f(2), d = h(b), o = f(0), e = h(o), t = f(16), a = h(t), l = f(6), s = h(l), r = f(7), i = h(r);
|
|
423
422
|
function h(y) {
|
|
424
423
|
return y && y.__esModule ? y : { default: y };
|
|
425
424
|
}
|
|
@@ -455,23 +454,23 @@ var Sr = { exports: {} };
|
|
|
455
454
|
}, {
|
|
456
455
|
key: "format",
|
|
457
456
|
value: function(q, B) {
|
|
458
|
-
var
|
|
459
|
-
|
|
457
|
+
var $ = e.default.query(q, e.default.Scope.BLOCK_ATTRIBUTE);
|
|
458
|
+
$ != null && this.attributes.attribute($, B);
|
|
460
459
|
}
|
|
461
460
|
}, {
|
|
462
461
|
key: "formatAt",
|
|
463
|
-
value: function(q, B,
|
|
464
|
-
this.format(
|
|
462
|
+
value: function(q, B, $, z) {
|
|
463
|
+
this.format($, z);
|
|
465
464
|
}
|
|
466
465
|
}, {
|
|
467
466
|
key: "insertAt",
|
|
468
|
-
value: function(q, B,
|
|
467
|
+
value: function(q, B, $) {
|
|
469
468
|
if (typeof B == "string" && B.endsWith(`
|
|
470
469
|
`)) {
|
|
471
470
|
var z = e.default.create(L.blotName);
|
|
472
471
|
this.parent.insertBefore(z, q === 0 ? this : this.next), z.insertAt(0, B.slice(0, -1));
|
|
473
472
|
} else
|
|
474
|
-
_(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertAt", this).call(this, q, B,
|
|
473
|
+
_(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertAt", this).call(this, q, B, $);
|
|
475
474
|
}
|
|
476
475
|
}]), w;
|
|
477
476
|
}(e.default.Embed);
|
|
@@ -498,14 +497,14 @@ var Sr = { exports: {} };
|
|
|
498
497
|
}
|
|
499
498
|
}, {
|
|
500
499
|
key: "formatAt",
|
|
501
|
-
value: function(q, B,
|
|
502
|
-
B <= 0 || (e.default.query(
|
|
500
|
+
value: function(q, B, $, z) {
|
|
501
|
+
B <= 0 || (e.default.query($, e.default.Scope.BLOCK) ? q + B === this.length() && this.format($, z) : _(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "formatAt", this).call(this, q, Math.min(B, this.length() - q - 1), $, z), this.cache = {});
|
|
503
502
|
}
|
|
504
503
|
}, {
|
|
505
504
|
key: "insertAt",
|
|
506
|
-
value: function(q, B,
|
|
507
|
-
if (
|
|
508
|
-
return _(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertAt", this).call(this, q, B,
|
|
505
|
+
value: function(q, B, $) {
|
|
506
|
+
if ($ != null)
|
|
507
|
+
return _(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertAt", this).call(this, q, B, $);
|
|
509
508
|
if (B.length !== 0) {
|
|
510
509
|
var z = B.split(`
|
|
511
510
|
`), J = z.shift();
|
|
@@ -519,8 +518,8 @@ var Sr = { exports: {} };
|
|
|
519
518
|
}, {
|
|
520
519
|
key: "insertBefore",
|
|
521
520
|
value: function(q, B) {
|
|
522
|
-
var
|
|
523
|
-
_(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertBefore", this).call(this, q, B),
|
|
521
|
+
var $ = this.children.head;
|
|
522
|
+
_(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "insertBefore", this).call(this, q, B), $ instanceof a.default && $.remove(), this.cache = {};
|
|
524
523
|
}
|
|
525
524
|
}, {
|
|
526
525
|
key: "length",
|
|
@@ -552,8 +551,8 @@ var Sr = { exports: {} };
|
|
|
552
551
|
value: function(q) {
|
|
553
552
|
var B = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
554
553
|
if (B && (q === 0 || q >= this.length() - T)) {
|
|
555
|
-
var
|
|
556
|
-
return q === 0 ? (this.parent.insertBefore(
|
|
554
|
+
var $ = this.clone();
|
|
555
|
+
return q === 0 ? (this.parent.insertBefore($, this), this) : (this.parent.insertBefore($, this.next), $);
|
|
557
556
|
} else {
|
|
558
557
|
var z = _(w.prototype.__proto__ || Object.getPrototypeOf(w.prototype), "split", this).call(this, q, B);
|
|
559
558
|
return this.cache = {}, z;
|
|
@@ -580,17 +579,17 @@ var Sr = { exports: {} };
|
|
|
580
579
|
return H && typeof Symbol == "function" && H.constructor === Symbol && H !== Symbol.prototype ? "symbol" : typeof H;
|
|
581
580
|
}, _ = function() {
|
|
582
581
|
function H(I, P) {
|
|
583
|
-
var M = [], D = !0,
|
|
582
|
+
var M = [], D = !0, V = !1, F = void 0;
|
|
584
583
|
try {
|
|
585
584
|
for (var R = I[Symbol.iterator](), U; !(D = (U = R.next()).done) && (M.push(U.value), !(P && M.length === P)); D = !0)
|
|
586
585
|
;
|
|
587
586
|
} catch (K) {
|
|
588
|
-
|
|
587
|
+
V = !0, F = K;
|
|
589
588
|
} finally {
|
|
590
589
|
try {
|
|
591
590
|
!D && R.return && R.return();
|
|
592
591
|
} finally {
|
|
593
|
-
if (
|
|
592
|
+
if (V)
|
|
594
593
|
throw F;
|
|
595
594
|
}
|
|
596
595
|
}
|
|
@@ -615,7 +614,7 @@ var Sr = { exports: {} };
|
|
|
615
614
|
};
|
|
616
615
|
}();
|
|
617
616
|
f(50);
|
|
618
|
-
var g = f(2), b = A(g), d = f(14), o = A(d), e = f(8), t = A(e),
|
|
617
|
+
var g = f(2), b = A(g), d = f(14), o = A(d), e = f(8), t = A(e), a = f(9), l = A(a), s = f(0), r = A(s), i = f(15), h = A(i), n = f(3), v = A(n), k = f(10), T = A(k), S = f(34), L = A(S);
|
|
619
618
|
function A(H) {
|
|
620
619
|
return H && H.__esModule ? H : { default: H };
|
|
621
620
|
}
|
|
@@ -645,14 +644,14 @@ var Sr = { exports: {} };
|
|
|
645
644
|
}, {
|
|
646
645
|
key: "register",
|
|
647
646
|
value: function(P, M) {
|
|
648
|
-
var D = this,
|
|
647
|
+
var D = this, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
649
648
|
if (typeof P != "string") {
|
|
650
649
|
var F = P.attrName || P.blotName;
|
|
651
650
|
typeof F == "string" ? this.register("formats/" + F, P, M) : Object.keys(P).forEach(function(R) {
|
|
652
651
|
D.register(R, P[R], M);
|
|
653
652
|
});
|
|
654
653
|
} else
|
|
655
|
-
this.imports[P] != null &&
|
|
654
|
+
this.imports[P] != null && !V && N.warn("Overwriting " + P + " with", M), this.imports[P] = M, (P.startsWith("blots/") || P.startsWith("formats/")) && M.blotName !== "abstract" ? r.default.register(M) : P.startsWith("modules") && typeof M.register == "function" && M.register();
|
|
656
655
|
}
|
|
657
656
|
}]);
|
|
658
657
|
function H(I) {
|
|
@@ -668,12 +667,12 @@ var Sr = { exports: {} };
|
|
|
668
667
|
F === t.default.events.TEXT_CHANGE && P.root.classList.toggle("ql-blank", P.editor.isBlank());
|
|
669
668
|
}), this.emitter.on(t.default.events.SCROLL_UPDATE, function(F, R) {
|
|
670
669
|
var U = P.selection.lastRange, K = U && U.length === 0 ? U.index : void 0;
|
|
671
|
-
|
|
670
|
+
$.call(P, function() {
|
|
672
671
|
return P.editor.update(null, R, K);
|
|
673
672
|
}, F);
|
|
674
673
|
});
|
|
675
|
-
var
|
|
676
|
-
this.setContents(
|
|
674
|
+
var V = this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">` + D + "<p><br></p></div>");
|
|
675
|
+
this.setContents(V), this.history.clear(), this.options.placeholder && this.root.setAttribute("data-placeholder", this.options.placeholder), this.options.readOnly && this.disable();
|
|
677
676
|
}
|
|
678
677
|
return O(H, [{
|
|
679
678
|
key: "addContainer",
|
|
@@ -693,9 +692,9 @@ var Sr = { exports: {} };
|
|
|
693
692
|
}, {
|
|
694
693
|
key: "deleteText",
|
|
695
694
|
value: function(P, M, D) {
|
|
696
|
-
var
|
|
697
|
-
return P = R[0], M = R[1], D = R[3],
|
|
698
|
-
return
|
|
695
|
+
var V = this, F = z(P, M, D), R = _(F, 4);
|
|
696
|
+
return P = R[0], M = R[1], D = R[3], $.call(this, function() {
|
|
697
|
+
return V.editor.deleteText(P, M);
|
|
699
698
|
}, D, P, -1 * M);
|
|
700
699
|
}
|
|
701
700
|
}, {
|
|
@@ -718,8 +717,8 @@ var Sr = { exports: {} };
|
|
|
718
717
|
}, {
|
|
719
718
|
key: "format",
|
|
720
719
|
value: function(P, M) {
|
|
721
|
-
var D = this,
|
|
722
|
-
return
|
|
720
|
+
var D = this, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : t.default.sources.API;
|
|
721
|
+
return $.call(this, function() {
|
|
723
722
|
var F = D.getSelection(!0), R = new b.default();
|
|
724
723
|
if (F == null)
|
|
725
724
|
return R;
|
|
@@ -731,21 +730,21 @@ var Sr = { exports: {} };
|
|
|
731
730
|
R = D.editor.formatText(F.index, F.length, y({}, P, M));
|
|
732
731
|
}
|
|
733
732
|
return D.setSelection(F, t.default.sources.SILENT), R;
|
|
734
|
-
},
|
|
733
|
+
}, V);
|
|
735
734
|
}
|
|
736
735
|
}, {
|
|
737
736
|
key: "formatLine",
|
|
738
|
-
value: function(P, M, D,
|
|
739
|
-
var R = this, U = void 0, K = z(P, M, D,
|
|
740
|
-
return P = G[0], M = G[1], U = G[2], F = G[3],
|
|
737
|
+
value: function(P, M, D, V, F) {
|
|
738
|
+
var R = this, U = void 0, K = z(P, M, D, V, F), G = _(K, 4);
|
|
739
|
+
return P = G[0], M = G[1], U = G[2], F = G[3], $.call(this, function() {
|
|
741
740
|
return R.editor.formatLine(P, M, U);
|
|
742
741
|
}, F, P, 0);
|
|
743
742
|
}
|
|
744
743
|
}, {
|
|
745
744
|
key: "formatText",
|
|
746
|
-
value: function(P, M, D,
|
|
747
|
-
var R = this, U = void 0, K = z(P, M, D,
|
|
748
|
-
return P = G[0], M = G[1], U = G[2], F = G[3],
|
|
745
|
+
value: function(P, M, D, V, F) {
|
|
746
|
+
var R = this, U = void 0, K = z(P, M, D, V, F), G = _(K, 4);
|
|
747
|
+
return P = G[0], M = G[1], U = G[2], F = G[3], $.call(this, function() {
|
|
749
748
|
return R.editor.formatText(P, M, U);
|
|
750
749
|
}, F, P, 0);
|
|
751
750
|
}
|
|
@@ -754,21 +753,21 @@ var Sr = { exports: {} };
|
|
|
754
753
|
value: function(P) {
|
|
755
754
|
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, D = void 0;
|
|
756
755
|
typeof P == "number" ? D = this.selection.getBounds(P, M) : D = this.selection.getBounds(P.index, P.length);
|
|
757
|
-
var
|
|
756
|
+
var V = this.container.getBoundingClientRect();
|
|
758
757
|
return {
|
|
759
|
-
bottom: D.bottom -
|
|
758
|
+
bottom: D.bottom - V.top,
|
|
760
759
|
height: D.height,
|
|
761
|
-
left: D.left -
|
|
762
|
-
right: D.right -
|
|
763
|
-
top: D.top -
|
|
760
|
+
left: D.left - V.left,
|
|
761
|
+
right: D.right - V.left,
|
|
762
|
+
top: D.top - V.top,
|
|
764
763
|
width: D.width
|
|
765
764
|
};
|
|
766
765
|
}
|
|
767
766
|
}, {
|
|
768
767
|
key: "getContents",
|
|
769
768
|
value: function() {
|
|
770
|
-
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, D = z(P, M),
|
|
771
|
-
return P =
|
|
769
|
+
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, D = z(P, M), V = _(D, 2);
|
|
770
|
+
return P = V[0], M = V[1], this.editor.getContents(P, M);
|
|
772
771
|
}
|
|
773
772
|
}, {
|
|
774
773
|
key: "getFormat",
|
|
@@ -816,8 +815,8 @@ var Sr = { exports: {} };
|
|
|
816
815
|
}, {
|
|
817
816
|
key: "getText",
|
|
818
817
|
value: function() {
|
|
819
|
-
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, D = z(P, M),
|
|
820
|
-
return P =
|
|
818
|
+
var P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.getLength() - P, D = z(P, M), V = _(D, 2);
|
|
819
|
+
return P = V[0], M = V[1], this.editor.getText(P, M);
|
|
821
820
|
}
|
|
822
821
|
}, {
|
|
823
822
|
key: "hasFocus",
|
|
@@ -827,16 +826,16 @@ var Sr = { exports: {} };
|
|
|
827
826
|
}, {
|
|
828
827
|
key: "insertEmbed",
|
|
829
828
|
value: function(P, M, D) {
|
|
830
|
-
var
|
|
831
|
-
return
|
|
832
|
-
return
|
|
829
|
+
var V = this, F = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : H.sources.API;
|
|
830
|
+
return $.call(this, function() {
|
|
831
|
+
return V.editor.insertEmbed(P, M, D);
|
|
833
832
|
}, F, P);
|
|
834
833
|
}
|
|
835
834
|
}, {
|
|
836
835
|
key: "insertText",
|
|
837
|
-
value: function(P, M, D,
|
|
838
|
-
var R = this, U = void 0, K = z(P, 0, D,
|
|
839
|
-
return P = G[0], U = G[2], F = G[3],
|
|
836
|
+
value: function(P, M, D, V, F) {
|
|
837
|
+
var R = this, U = void 0, K = z(P, 0, D, V, F), G = _(K, 4);
|
|
838
|
+
return P = G[0], U = G[2], F = G[3], $.call(this, function() {
|
|
840
839
|
return R.editor.insertText(P, M, U);
|
|
841
840
|
}, F, P, M.length);
|
|
842
841
|
}
|
|
@@ -868,9 +867,9 @@ var Sr = { exports: {} };
|
|
|
868
867
|
}, {
|
|
869
868
|
key: "removeFormat",
|
|
870
869
|
value: function(P, M, D) {
|
|
871
|
-
var
|
|
872
|
-
return P = R[0], M = R[1], D = R[3],
|
|
873
|
-
return
|
|
870
|
+
var V = this, F = z(P, M, D), R = _(F, 4);
|
|
871
|
+
return P = R[0], M = R[1], D = R[3], $.call(this, function() {
|
|
872
|
+
return V.editor.removeFormat(P, M);
|
|
874
873
|
}, D, P);
|
|
875
874
|
}
|
|
876
875
|
}, {
|
|
@@ -882,9 +881,9 @@ var Sr = { exports: {} };
|
|
|
882
881
|
key: "setContents",
|
|
883
882
|
value: function(P) {
|
|
884
883
|
var M = this, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t.default.sources.API;
|
|
885
|
-
return
|
|
884
|
+
return $.call(this, function() {
|
|
886
885
|
P = new b.default(P);
|
|
887
|
-
var
|
|
886
|
+
var V = M.getLength(), F = M.editor.deleteText(0, V), R = M.editor.applyDelta(P), U = R.ops[R.ops.length - 1];
|
|
888
887
|
U != null && typeof U.insert == "string" && U.insert[U.insert.length - 1] === `
|
|
889
888
|
` && (M.editor.deleteText(M.getLength() - 1, 1), R.delete(1));
|
|
890
889
|
var K = F.compose(R);
|
|
@@ -897,7 +896,7 @@ var Sr = { exports: {} };
|
|
|
897
896
|
if (P == null)
|
|
898
897
|
this.selection.setRange(null, M || H.sources.API);
|
|
899
898
|
else {
|
|
900
|
-
var
|
|
899
|
+
var V = z(P, M, D), F = _(V, 4);
|
|
901
900
|
P = F[0], M = F[1], D = F[3], this.selection.setRange(new i.Range(P, M), D), D !== t.default.sources.SILENT && this.selection.scrollIntoView(this.scrollingContainer);
|
|
902
901
|
}
|
|
903
902
|
}
|
|
@@ -917,7 +916,7 @@ var Sr = { exports: {} };
|
|
|
917
916
|
key: "updateContents",
|
|
918
917
|
value: function(P) {
|
|
919
918
|
var M = this, D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t.default.sources.API;
|
|
920
|
-
return
|
|
919
|
+
return $.call(this, function() {
|
|
921
920
|
return P = new b.default(P), M.editor.applyDelta(P, D);
|
|
922
921
|
}, D, !0);
|
|
923
922
|
}
|
|
@@ -935,7 +934,7 @@ var Sr = { exports: {} };
|
|
|
935
934
|
}, q.events = t.default.events, q.sources = t.default.sources, q.version = "1.3.7", q.imports = {
|
|
936
935
|
delta: b.default,
|
|
937
936
|
parchment: r.default,
|
|
938
|
-
"core/module":
|
|
937
|
+
"core/module": l.default,
|
|
939
938
|
"core/theme": L.default
|
|
940
939
|
};
|
|
941
940
|
function B(H, I) {
|
|
@@ -951,29 +950,29 @@ var Sr = { exports: {} };
|
|
|
951
950
|
else if (I.theme = q.import("themes/" + I.theme), I.theme == null)
|
|
952
951
|
throw new Error("Invalid theme " + I.theme + ". Did you register it?");
|
|
953
952
|
var P = (0, v.default)(!0, {}, I.theme.DEFAULTS);
|
|
954
|
-
[P, I].forEach(function(
|
|
955
|
-
|
|
956
|
-
|
|
953
|
+
[P, I].forEach(function(V) {
|
|
954
|
+
V.modules = V.modules || {}, Object.keys(V.modules).forEach(function(F) {
|
|
955
|
+
V.modules[F] === !0 && (V.modules[F] = {});
|
|
957
956
|
});
|
|
958
957
|
});
|
|
959
|
-
var M = Object.keys(P.modules).concat(Object.keys(I.modules)), D = M.reduce(function(
|
|
958
|
+
var M = Object.keys(P.modules).concat(Object.keys(I.modules)), D = M.reduce(function(V, F) {
|
|
960
959
|
var R = q.import("modules/" + F);
|
|
961
|
-
return R == null ? N.error("Cannot load " + F + " module. Are you sure you registered it?") :
|
|
960
|
+
return R == null ? N.error("Cannot load " + F + " module. Are you sure you registered it?") : V[F] = R.DEFAULTS || {}, V;
|
|
962
961
|
}, {});
|
|
963
962
|
return I.modules != null && I.modules.toolbar && I.modules.toolbar.constructor !== Object && (I.modules.toolbar = {
|
|
964
963
|
container: I.modules.toolbar
|
|
965
|
-
}), I = (0, v.default)(!0, {}, q.DEFAULTS, { modules: D }, P, I), ["bounds", "container", "scrollingContainer"].forEach(function(
|
|
966
|
-
typeof I[
|
|
967
|
-
}), I.modules = Object.keys(I.modules).reduce(function(
|
|
968
|
-
return I.modules[F] && (
|
|
964
|
+
}), I = (0, v.default)(!0, {}, q.DEFAULTS, { modules: D }, P, I), ["bounds", "container", "scrollingContainer"].forEach(function(V) {
|
|
965
|
+
typeof I[V] == "string" && (I[V] = document.querySelector(I[V]));
|
|
966
|
+
}), I.modules = Object.keys(I.modules).reduce(function(V, F) {
|
|
967
|
+
return I.modules[F] && (V[F] = I.modules[F]), V;
|
|
969
968
|
}, {}), I;
|
|
970
969
|
}
|
|
971
|
-
function
|
|
970
|
+
function $(H, I, P, M) {
|
|
972
971
|
if (this.options.strict && !this.isEnabled() && I === t.default.sources.USER)
|
|
973
972
|
return new b.default();
|
|
974
|
-
var D = P == null ? null : this.getSelection(),
|
|
973
|
+
var D = P == null ? null : this.getSelection(), V = this.editor.delta, F = H();
|
|
975
974
|
if (D != null && (P === !0 && (P = D.index), M == null ? D = J(D, F, I) : M !== 0 && (D = J(D, P, M, I)), this.setSelection(D, t.default.sources.SILENT)), F.length() > 0) {
|
|
976
|
-
var R, U = [t.default.events.TEXT_CHANGE, F,
|
|
975
|
+
var R, U = [t.default.events.TEXT_CHANGE, F, V, I];
|
|
977
976
|
if ((R = this.emitter).emit.apply(R, [t.default.events.EDITOR_CHANGE].concat(U)), I !== t.default.sources.SILENT) {
|
|
978
977
|
var K;
|
|
979
978
|
(K = this.emitter).emit.apply(K, U);
|
|
@@ -982,25 +981,25 @@ var Sr = { exports: {} };
|
|
|
982
981
|
return F;
|
|
983
982
|
}
|
|
984
983
|
function z(H, I, P, M, D) {
|
|
985
|
-
var
|
|
986
|
-
return typeof H.index == "number" && typeof H.length == "number" ? typeof I != "number" ? (D = M, M = P, P = I, I = H.length, H = H.index) : (I = H.length, H = H.index) : typeof I != "number" && (D = M, M = P, P = I, I = 0), (typeof P > "u" ? "undefined" : E(P)) === "object" ? (
|
|
984
|
+
var V = {};
|
|
985
|
+
return typeof H.index == "number" && typeof H.length == "number" ? typeof I != "number" ? (D = M, M = P, P = I, I = H.length, H = H.index) : (I = H.length, H = H.index) : typeof I != "number" && (D = M, M = P, P = I, I = 0), (typeof P > "u" ? "undefined" : E(P)) === "object" ? (V = P, D = M) : typeof P == "string" && (M != null ? V[P] = M : D = P), D = D || t.default.sources.API, [H, I, V, D];
|
|
987
986
|
}
|
|
988
987
|
function J(H, I, P, M) {
|
|
989
988
|
if (H == null)
|
|
990
989
|
return null;
|
|
991
|
-
var D = void 0,
|
|
990
|
+
var D = void 0, V = void 0;
|
|
992
991
|
if (I instanceof b.default) {
|
|
993
992
|
var F = [H.index, H.index + H.length].map(function(G) {
|
|
994
993
|
return I.transformPosition(G, M !== t.default.sources.USER);
|
|
995
994
|
}), R = _(F, 2);
|
|
996
|
-
D = R[0],
|
|
995
|
+
D = R[0], V = R[1];
|
|
997
996
|
} else {
|
|
998
997
|
var U = [H.index, H.index + H.length].map(function(G) {
|
|
999
998
|
return G < I || G === I && M === t.default.sources.USER ? G : P >= 0 ? G + P : Math.max(I, G + P);
|
|
1000
999
|
}), K = _(U, 2);
|
|
1001
|
-
D = K[0],
|
|
1000
|
+
D = K[0], V = K[1];
|
|
1002
1001
|
}
|
|
1003
|
-
return new i.Range(D,
|
|
1002
|
+
return new i.Range(D, V - D);
|
|
1004
1003
|
}
|
|
1005
1004
|
p.expandConfig = B, p.overload = z, p.default = q;
|
|
1006
1005
|
},
|
|
@@ -1045,13 +1044,13 @@ var Sr = { exports: {} };
|
|
|
1045
1044
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1046
1045
|
return r && (typeof r == "object" || typeof r == "function") ? r : s;
|
|
1047
1046
|
}
|
|
1048
|
-
function
|
|
1047
|
+
function a(s, r) {
|
|
1049
1048
|
if (typeof r != "function" && r !== null)
|
|
1050
1049
|
throw new TypeError("Super expression must either be null or a function, not " + typeof r);
|
|
1051
1050
|
s.prototype = Object.create(r && r.prototype, { constructor: { value: s, enumerable: !1, writable: !0, configurable: !0 } }), r && (Object.setPrototypeOf ? Object.setPrototypeOf(s, r) : s.__proto__ = r);
|
|
1052
1051
|
}
|
|
1053
|
-
var
|
|
1054
|
-
|
|
1052
|
+
var l = function(s) {
|
|
1053
|
+
a(r, s);
|
|
1055
1054
|
function r() {
|
|
1056
1055
|
return e(this, r), t(this, (r.__proto__ || Object.getPrototypeOf(r)).apply(this, arguments));
|
|
1057
1056
|
}
|
|
@@ -1080,7 +1079,7 @@ var Sr = { exports: {} };
|
|
|
1080
1079
|
}
|
|
1081
1080
|
}]), r;
|
|
1082
1081
|
}(d.default.Inline);
|
|
1083
|
-
|
|
1082
|
+
l.allowedChildren = [l, d.default.Embed, g.default], l.order = [
|
|
1084
1083
|
"cursor",
|
|
1085
1084
|
"inline",
|
|
1086
1085
|
// Must be lower
|
|
@@ -1092,7 +1091,7 @@ var Sr = { exports: {} };
|
|
|
1092
1091
|
"link",
|
|
1093
1092
|
"code"
|
|
1094
1093
|
// Must be higher
|
|
1095
|
-
], p.default =
|
|
1094
|
+
], p.default = l;
|
|
1096
1095
|
},
|
|
1097
1096
|
/* 7 */
|
|
1098
1097
|
/***/
|
|
@@ -1168,12 +1167,12 @@ var Sr = { exports: {} };
|
|
|
1168
1167
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1169
1168
|
return h && (typeof h == "object" || typeof h == "function") ? h : i;
|
|
1170
1169
|
}
|
|
1171
|
-
function
|
|
1170
|
+
function a(i, h) {
|
|
1172
1171
|
if (typeof h != "function" && h !== null)
|
|
1173
1172
|
throw new TypeError("Super expression must either be null or a function, not " + typeof h);
|
|
1174
1173
|
i.prototype = Object.create(h && h.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), h && (Object.setPrototypeOf ? Object.setPrototypeOf(i, h) : i.__proto__ = h);
|
|
1175
1174
|
}
|
|
1176
|
-
var
|
|
1175
|
+
var l = (0, d.default)("quill:events"), s = ["selectionchange", "mousedown", "mouseup", "click"];
|
|
1177
1176
|
s.forEach(function(i) {
|
|
1178
1177
|
document.addEventListener(i, function() {
|
|
1179
1178
|
for (var h = arguments.length, n = Array(h), v = 0; v < h; v++)
|
|
@@ -1187,16 +1186,16 @@ var Sr = { exports: {} };
|
|
|
1187
1186
|
});
|
|
1188
1187
|
});
|
|
1189
1188
|
var r = function(i) {
|
|
1190
|
-
|
|
1189
|
+
a(h, i);
|
|
1191
1190
|
function h() {
|
|
1192
1191
|
e(this, h);
|
|
1193
1192
|
var n = t(this, (h.__proto__ || Object.getPrototypeOf(h)).call(this));
|
|
1194
|
-
return n.listeners = {}, n.on("error",
|
|
1193
|
+
return n.listeners = {}, n.on("error", l.error), n;
|
|
1195
1194
|
}
|
|
1196
1195
|
return E(h, [{
|
|
1197
1196
|
key: "emit",
|
|
1198
1197
|
value: function() {
|
|
1199
|
-
|
|
1198
|
+
l.log.apply(l, arguments), _(h.prototype.__proto__ || Object.getPrototypeOf(h.prototype), "emit", this).apply(this, arguments);
|
|
1200
1199
|
}
|
|
1201
1200
|
}, {
|
|
1202
1201
|
key: "handleDOM",
|
|
@@ -1270,8 +1269,8 @@ var Sr = { exports: {} };
|
|
|
1270
1269
|
/* 11 */
|
|
1271
1270
|
/***/
|
|
1272
1271
|
function(c, p, f) {
|
|
1273
|
-
var E = Array.prototype.slice, _ = f(52), O = f(53), g = c.exports = function(e, t,
|
|
1274
|
-
return
|
|
1272
|
+
var E = Array.prototype.slice, _ = f(52), O = f(53), g = c.exports = function(e, t, a) {
|
|
1273
|
+
return a || (a = {}), e === t ? !0 : e instanceof Date && t instanceof Date ? e.getTime() === t.getTime() : !e || !t || typeof e != "object" && typeof t != "object" ? a.strict ? e === t : e == t : o(e, t, a);
|
|
1275
1274
|
};
|
|
1276
1275
|
function b(e) {
|
|
1277
1276
|
return e == null;
|
|
@@ -1279,17 +1278,17 @@ var Sr = { exports: {} };
|
|
|
1279
1278
|
function d(e) {
|
|
1280
1279
|
return !(!e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number");
|
|
1281
1280
|
}
|
|
1282
|
-
function o(e, t,
|
|
1283
|
-
var
|
|
1281
|
+
function o(e, t, a) {
|
|
1282
|
+
var l, s;
|
|
1284
1283
|
if (b(e) || b(t) || e.prototype !== t.prototype)
|
|
1285
1284
|
return !1;
|
|
1286
1285
|
if (O(e))
|
|
1287
|
-
return O(t) ? (e = E.call(e), t = E.call(t), g(e, t,
|
|
1286
|
+
return O(t) ? (e = E.call(e), t = E.call(t), g(e, t, a)) : !1;
|
|
1288
1287
|
if (d(e)) {
|
|
1289
1288
|
if (!d(t) || e.length !== t.length)
|
|
1290
1289
|
return !1;
|
|
1291
|
-
for (
|
|
1292
|
-
if (e[
|
|
1290
|
+
for (l = 0; l < e.length; l++)
|
|
1291
|
+
if (e[l] !== t[l])
|
|
1293
1292
|
return !1;
|
|
1294
1293
|
return !0;
|
|
1295
1294
|
}
|
|
@@ -1300,11 +1299,11 @@ var Sr = { exports: {} };
|
|
|
1300
1299
|
}
|
|
1301
1300
|
if (r.length != i.length)
|
|
1302
1301
|
return !1;
|
|
1303
|
-
for (r.sort(), i.sort(),
|
|
1304
|
-
if (r[
|
|
1302
|
+
for (r.sort(), i.sort(), l = r.length - 1; l >= 0; l--)
|
|
1303
|
+
if (r[l] != i[l])
|
|
1305
1304
|
return !1;
|
|
1306
|
-
for (
|
|
1307
|
-
if (s = r[
|
|
1305
|
+
for (l = r.length - 1; l >= 0; l--)
|
|
1306
|
+
if (s = r[l], !g(e[s], t[s], a))
|
|
1308
1307
|
return !1;
|
|
1309
1308
|
return typeof e == typeof t;
|
|
1310
1309
|
}
|
|
@@ -1350,7 +1349,7 @@ var Sr = { exports: {} };
|
|
|
1350
1349
|
function S(L, A) {
|
|
1351
1350
|
var y = [], w = !0, N = !1, q = void 0;
|
|
1352
1351
|
try {
|
|
1353
|
-
for (var B = L[Symbol.iterator](),
|
|
1352
|
+
for (var B = L[Symbol.iterator](), $; !(w = ($ = B.next()).done) && (y.push($.value), !(A && y.length === A)); w = !0)
|
|
1354
1353
|
;
|
|
1355
1354
|
} catch (z) {
|
|
1356
1355
|
N = !0, q = z;
|
|
@@ -1393,7 +1392,7 @@ var Sr = { exports: {} };
|
|
|
1393
1392
|
var q = w.get;
|
|
1394
1393
|
return q === void 0 ? void 0 : q.call(y);
|
|
1395
1394
|
}
|
|
1396
|
-
}, g = f(2), b = i(g), d = f(0), o = i(d), e = f(4), t = i(e),
|
|
1395
|
+
}, g = f(2), b = i(g), d = f(0), o = i(d), e = f(4), t = i(e), a = f(6), l = i(a), s = f(7), r = i(s);
|
|
1397
1396
|
function i(S) {
|
|
1398
1397
|
return S && S.__esModule ? S : { default: S };
|
|
1399
1398
|
}
|
|
@@ -1417,7 +1416,7 @@ var Sr = { exports: {} };
|
|
|
1417
1416
|
return h(this, L), n(this, (L.__proto__ || Object.getPrototypeOf(L)).apply(this, arguments));
|
|
1418
1417
|
}
|
|
1419
1418
|
return L;
|
|
1420
|
-
}(
|
|
1419
|
+
}(l.default);
|
|
1421
1420
|
k.blotName = "code", k.tagName = "CODE";
|
|
1422
1421
|
var T = function(S) {
|
|
1423
1422
|
v(L, S);
|
|
@@ -1449,8 +1448,8 @@ var Sr = { exports: {} };
|
|
|
1449
1448
|
if (w !== 0 && !(o.default.query(N, o.default.Scope.BLOCK) == null || N === this.statics.blotName && q === this.statics.formats(this.domNode))) {
|
|
1450
1449
|
var B = this.newlineIndex(y);
|
|
1451
1450
|
if (!(B < 0 || B >= y + w)) {
|
|
1452
|
-
var
|
|
1453
|
-
J.format(N, q), H instanceof L && H.formatAt(0, y -
|
|
1451
|
+
var $ = this.newlineIndex(y, !0) + 1, z = B - $ + 1, J = this.isolate($, z), H = J.next;
|
|
1452
|
+
J.format(N, q), H instanceof L && H.formatAt(0, y - $ + w - z, N, q);
|
|
1454
1453
|
}
|
|
1455
1454
|
}
|
|
1456
1455
|
}
|
|
@@ -1458,8 +1457,8 @@ var Sr = { exports: {} };
|
|
|
1458
1457
|
key: "insertAt",
|
|
1459
1458
|
value: function(y, w, N) {
|
|
1460
1459
|
if (N == null) {
|
|
1461
|
-
var q = this.descendant(r.default, y), B = E(q, 2),
|
|
1462
|
-
|
|
1460
|
+
var q = this.descendant(r.default, y), B = E(q, 2), $ = B[0], z = B[1];
|
|
1461
|
+
$.insertAt(z, w);
|
|
1463
1462
|
}
|
|
1464
1463
|
}
|
|
1465
1464
|
}, {
|
|
@@ -1524,17 +1523,17 @@ var Sr = { exports: {} };
|
|
|
1524
1523
|
return H && typeof Symbol == "function" && H.constructor === Symbol && H !== Symbol.prototype ? "symbol" : typeof H;
|
|
1525
1524
|
}, _ = function() {
|
|
1526
1525
|
function H(I, P) {
|
|
1527
|
-
var M = [], D = !0,
|
|
1526
|
+
var M = [], D = !0, V = !1, F = void 0;
|
|
1528
1527
|
try {
|
|
1529
1528
|
for (var R = I[Symbol.iterator](), U; !(D = (U = R.next()).done) && (M.push(U.value), !(P && M.length === P)); D = !0)
|
|
1530
1529
|
;
|
|
1531
1530
|
} catch (K) {
|
|
1532
|
-
|
|
1531
|
+
V = !0, F = K;
|
|
1533
1532
|
} finally {
|
|
1534
1533
|
try {
|
|
1535
1534
|
!D && R.return && R.return();
|
|
1536
1535
|
} finally {
|
|
1537
|
-
if (
|
|
1536
|
+
if (V)
|
|
1538
1537
|
throw F;
|
|
1539
1538
|
}
|
|
1540
1539
|
}
|
|
@@ -1557,7 +1556,7 @@ var Sr = { exports: {} };
|
|
|
1557
1556
|
return function(I, P, M) {
|
|
1558
1557
|
return P && H(I.prototype, P), M && H(I, M), I;
|
|
1559
1558
|
};
|
|
1560
|
-
}(), g = f(2), b = w(g), d = f(20), o = w(d), e = f(0), t = w(e),
|
|
1559
|
+
}(), g = f(2), b = w(g), d = f(20), o = w(d), e = f(0), t = w(e), a = f(13), l = w(a), s = f(24), r = w(s), i = f(4), h = w(i), n = f(16), v = w(n), k = f(21), T = w(k), S = f(11), L = w(S), A = f(3), y = w(A);
|
|
1561
1560
|
function w(H) {
|
|
1562
1561
|
return H && H.__esModule ? H : { default: H };
|
|
1563
1562
|
}
|
|
@@ -1568,7 +1567,7 @@ var Sr = { exports: {} };
|
|
|
1568
1567
|
if (!(H instanceof I))
|
|
1569
1568
|
throw new TypeError("Cannot call a class as a function");
|
|
1570
1569
|
}
|
|
1571
|
-
var B = /^[ -~]*$/,
|
|
1570
|
+
var B = /^[ -~]*$/, $ = function() {
|
|
1572
1571
|
function H(I) {
|
|
1573
1572
|
q(this, H), this.scroll = I, this.delta = this.getDelta();
|
|
1574
1573
|
}
|
|
@@ -1577,18 +1576,18 @@ var Sr = { exports: {} };
|
|
|
1577
1576
|
value: function(P) {
|
|
1578
1577
|
var M = this, D = !1;
|
|
1579
1578
|
this.scroll.update();
|
|
1580
|
-
var
|
|
1579
|
+
var V = this.scroll.length();
|
|
1581
1580
|
return this.scroll.batchStart(), P = J(P), P.reduce(function(F, R) {
|
|
1582
1581
|
var U = R.retain || R.delete || R.insert.length || 1, K = R.attributes || {};
|
|
1583
1582
|
if (R.insert != null) {
|
|
1584
1583
|
if (typeof R.insert == "string") {
|
|
1585
1584
|
var G = R.insert;
|
|
1586
1585
|
G.endsWith(`
|
|
1587
|
-
`) && D && (D = !1, G = G.slice(0, -1)), F >=
|
|
1586
|
+
`) && D && (D = !1, G = G.slice(0, -1)), F >= V && !G.endsWith(`
|
|
1588
1587
|
`) && (D = !0), M.scroll.insertAt(F, G);
|
|
1589
|
-
var X = M.scroll.line(F), ne = _(X, 2), ie = ne[0],
|
|
1588
|
+
var X = M.scroll.line(F), ne = _(X, 2), ie = ne[0], ae = ne[1], fe = (0, y.default)({}, (0, i.bubbleFormats)(ie));
|
|
1590
1589
|
if (ie instanceof h.default) {
|
|
1591
|
-
var he = ie.descendant(t.default.Leaf,
|
|
1590
|
+
var he = ie.descendant(t.default.Leaf, ae), be = _(he, 1), ge = be[0];
|
|
1592
1591
|
fe = (0, y.default)(fe, (0, i.bubbleFormats)(ge));
|
|
1593
1592
|
}
|
|
1594
1593
|
K = o.default.attributes.diff(fe, K) || {};
|
|
@@ -1598,7 +1597,7 @@ var Sr = { exports: {} };
|
|
|
1598
1597
|
return F;
|
|
1599
1598
|
M.scroll.insertAt(F, W, R.insert[W]);
|
|
1600
1599
|
}
|
|
1601
|
-
|
|
1600
|
+
V += U;
|
|
1602
1601
|
}
|
|
1603
1602
|
return Object.keys(K).forEach(function(Y) {
|
|
1604
1603
|
M.scroll.formatAt(F, U, Y, K[Y]);
|
|
@@ -1615,30 +1614,30 @@ var Sr = { exports: {} };
|
|
|
1615
1614
|
}, {
|
|
1616
1615
|
key: "formatLine",
|
|
1617
1616
|
value: function(P, M) {
|
|
1618
|
-
var D = this,
|
|
1619
|
-
return this.scroll.update(), Object.keys(
|
|
1617
|
+
var D = this, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1618
|
+
return this.scroll.update(), Object.keys(V).forEach(function(F) {
|
|
1620
1619
|
if (!(D.scroll.whitelist != null && !D.scroll.whitelist[F])) {
|
|
1621
1620
|
var R = D.scroll.lines(P, Math.max(M, 1)), U = M;
|
|
1622
1621
|
R.forEach(function(K) {
|
|
1623
1622
|
var G = K.length();
|
|
1624
|
-
if (!(K instanceof
|
|
1625
|
-
K.format(F,
|
|
1623
|
+
if (!(K instanceof l.default))
|
|
1624
|
+
K.format(F, V[F]);
|
|
1626
1625
|
else {
|
|
1627
1626
|
var X = P - K.offset(D.scroll), ne = K.newlineIndex(X + U) - X + 1;
|
|
1628
|
-
K.formatAt(X, ne, F,
|
|
1627
|
+
K.formatAt(X, ne, F, V[F]);
|
|
1629
1628
|
}
|
|
1630
1629
|
U -= G;
|
|
1631
1630
|
});
|
|
1632
1631
|
}
|
|
1633
|
-
}), this.scroll.optimize(), this.update(new b.default().retain(P).retain(M, (0, T.default)(
|
|
1632
|
+
}), this.scroll.optimize(), this.update(new b.default().retain(P).retain(M, (0, T.default)(V)));
|
|
1634
1633
|
}
|
|
1635
1634
|
}, {
|
|
1636
1635
|
key: "formatText",
|
|
1637
1636
|
value: function(P, M) {
|
|
1638
|
-
var D = this,
|
|
1639
|
-
return Object.keys(
|
|
1640
|
-
D.scroll.formatAt(P, M, F,
|
|
1641
|
-
}), this.update(new b.default().retain(P).retain(M, (0, T.default)(
|
|
1637
|
+
var D = this, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1638
|
+
return Object.keys(V).forEach(function(F) {
|
|
1639
|
+
D.scroll.formatAt(P, M, F, V[F]);
|
|
1640
|
+
}), this.update(new b.default().retain(P).retain(M, (0, T.default)(V)));
|
|
1642
1641
|
}
|
|
1643
1642
|
}, {
|
|
1644
1643
|
key: "getContents",
|
|
@@ -1655,12 +1654,12 @@ var Sr = { exports: {} };
|
|
|
1655
1654
|
}, {
|
|
1656
1655
|
key: "getFormat",
|
|
1657
1656
|
value: function(P) {
|
|
1658
|
-
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, D = [],
|
|
1657
|
+
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, D = [], V = [];
|
|
1659
1658
|
M === 0 ? this.scroll.path(P).forEach(function(R) {
|
|
1660
1659
|
var U = _(R, 1), K = U[0];
|
|
1661
|
-
K instanceof h.default ? D.push(K) : K instanceof t.default.Leaf &&
|
|
1662
|
-
}) : (D = this.scroll.lines(P, M),
|
|
1663
|
-
var F = [D,
|
|
1660
|
+
K instanceof h.default ? D.push(K) : K instanceof t.default.Leaf && V.push(K);
|
|
1661
|
+
}) : (D = this.scroll.lines(P, M), V = this.scroll.descendants(t.default.Leaf, P, M));
|
|
1662
|
+
var F = [D, V].map(function(R) {
|
|
1664
1663
|
if (R.length === 0)
|
|
1665
1664
|
return {};
|
|
1666
1665
|
for (var U = (0, i.bubbleFormats)(R.shift()); Object.keys(U).length > 0; ) {
|
|
@@ -1690,12 +1689,12 @@ var Sr = { exports: {} };
|
|
|
1690
1689
|
}, {
|
|
1691
1690
|
key: "insertText",
|
|
1692
1691
|
value: function(P, M) {
|
|
1693
|
-
var D = this,
|
|
1692
|
+
var D = this, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1694
1693
|
return M = M.replace(/\r\n/g, `
|
|
1695
1694
|
`).replace(/\r/g, `
|
|
1696
|
-
`), this.scroll.insertAt(P, M), Object.keys(
|
|
1697
|
-
D.scroll.formatAt(P, M.length, F,
|
|
1698
|
-
}), this.update(new b.default().retain(P).insert(M, (0, T.default)(
|
|
1695
|
+
`), this.scroll.insertAt(P, M), Object.keys(V).forEach(function(F) {
|
|
1696
|
+
D.scroll.formatAt(P, M.length, F, V[F]);
|
|
1697
|
+
}), this.update(new b.default().retain(P).insert(M, (0, T.default)(V)));
|
|
1699
1698
|
}
|
|
1700
1699
|
}, {
|
|
1701
1700
|
key: "isBlank",
|
|
@@ -1710,8 +1709,8 @@ var Sr = { exports: {} };
|
|
|
1710
1709
|
}, {
|
|
1711
1710
|
key: "removeFormat",
|
|
1712
1711
|
value: function(P, M) {
|
|
1713
|
-
var D = this.getText(P, M),
|
|
1714
|
-
R != null && (R instanceof
|
|
1712
|
+
var D = this.getText(P, M), V = this.scroll.line(P + M), F = _(V, 2), R = F[0], U = F[1], K = 0, G = new b.default();
|
|
1713
|
+
R != null && (R instanceof l.default ? K = R.newlineIndex(U) - U + 1 : K = R.length() - U, G = R.delta().slice(U, U + K - 1).insert(`
|
|
1715
1714
|
`));
|
|
1716
1715
|
var X = this.getContents(P, M + K), ne = X.diff(new b.default().insert(D).concat(G)), ie = new b.default().retain(P).concat(ne);
|
|
1717
1716
|
return this.applyDelta(ie);
|
|
@@ -1719,14 +1718,14 @@ var Sr = { exports: {} };
|
|
|
1719
1718
|
}, {
|
|
1720
1719
|
key: "update",
|
|
1721
1720
|
value: function(P) {
|
|
1722
|
-
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], D = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0,
|
|
1721
|
+
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], D = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0, V = this.delta;
|
|
1723
1722
|
if (M.length === 1 && M[0].type === "characterData" && M[0].target.data.match(B) && t.default.find(M[0].target)) {
|
|
1724
1723
|
var F = t.default.find(M[0].target), R = (0, i.bubbleFormats)(F), U = F.offset(this.scroll), K = M[0].oldValue.replace(r.default.CONTENTS, ""), G = new b.default().insert(K), X = new b.default().insert(F.value()), ne = new b.default().retain(U).concat(G.diff(X, D));
|
|
1725
|
-
P = ne.reduce(function(ie,
|
|
1726
|
-
return
|
|
1727
|
-
}, new b.default()), this.delta =
|
|
1724
|
+
P = ne.reduce(function(ie, ae) {
|
|
1725
|
+
return ae.insert ? ie.insert(ae.insert, R) : ie.push(ae);
|
|
1726
|
+
}, new b.default()), this.delta = V.compose(P);
|
|
1728
1727
|
} else
|
|
1729
|
-
this.delta = this.getDelta(), (!P || !(0, L.default)(
|
|
1728
|
+
this.delta = this.getDelta(), (!P || !(0, L.default)(V.compose(P), this.delta)) && (P = V.diff(this.delta, D));
|
|
1730
1729
|
return P;
|
|
1731
1730
|
}
|
|
1732
1731
|
}]), H;
|
|
@@ -1751,7 +1750,7 @@ var Sr = { exports: {} };
|
|
|
1751
1750
|
return I.push(P);
|
|
1752
1751
|
}, new b.default());
|
|
1753
1752
|
}
|
|
1754
|
-
p.default =
|
|
1753
|
+
p.default = $;
|
|
1755
1754
|
},
|
|
1756
1755
|
/* 15 */
|
|
1757
1756
|
/***/
|
|
@@ -1763,7 +1762,7 @@ var Sr = { exports: {} };
|
|
|
1763
1762
|
function S(L, A) {
|
|
1764
1763
|
var y = [], w = !0, N = !1, q = void 0;
|
|
1765
1764
|
try {
|
|
1766
|
-
for (var B = L[Symbol.iterator](),
|
|
1765
|
+
for (var B = L[Symbol.iterator](), $; !(w = ($ = B.next()).done) && (y.push($.value), !(A && y.length === A)); w = !0)
|
|
1767
1766
|
;
|
|
1768
1767
|
} catch (z) {
|
|
1769
1768
|
N = !0, q = z;
|
|
@@ -1794,7 +1793,7 @@ var Sr = { exports: {} };
|
|
|
1794
1793
|
return function(L, A, y) {
|
|
1795
1794
|
return A && S(L.prototype, A), y && S(L, y), L;
|
|
1796
1795
|
};
|
|
1797
|
-
}(), O = f(0), g = r(O), b = f(21), d = r(b), o = f(11), e = r(o), t = f(8),
|
|
1796
|
+
}(), O = f(0), g = r(O), b = f(21), d = r(b), o = f(11), e = r(o), t = f(8), a = r(t), l = f(10), s = r(l);
|
|
1798
1797
|
function r(S) {
|
|
1799
1798
|
return S && S.__esModule ? S : { default: S };
|
|
1800
1799
|
}
|
|
@@ -1817,25 +1816,25 @@ var Sr = { exports: {} };
|
|
|
1817
1816
|
function S(L, A) {
|
|
1818
1817
|
var y = this;
|
|
1819
1818
|
h(this, S), this.emitter = A, this.scroll = L, this.composing = !1, this.mouseDown = !1, this.root = this.scroll.domNode, this.cursor = g.default.create("cursor", this), this.lastRange = this.savedRange = new v(0, 0), this.handleComposition(), this.handleDragging(), this.emitter.listenDOM("selectionchange", document, function() {
|
|
1820
|
-
y.mouseDown || setTimeout(y.update.bind(y,
|
|
1821
|
-
}), this.emitter.on(
|
|
1822
|
-
w ===
|
|
1823
|
-
}), this.emitter.on(
|
|
1819
|
+
y.mouseDown || setTimeout(y.update.bind(y, a.default.sources.USER), 1);
|
|
1820
|
+
}), this.emitter.on(a.default.events.EDITOR_CHANGE, function(w, N) {
|
|
1821
|
+
w === a.default.events.TEXT_CHANGE && N.length() > 0 && y.update(a.default.sources.SILENT);
|
|
1822
|
+
}), this.emitter.on(a.default.events.SCROLL_BEFORE_UPDATE, function() {
|
|
1824
1823
|
if (y.hasFocus()) {
|
|
1825
1824
|
var w = y.getNativeRange();
|
|
1826
|
-
w != null && w.start.node !== y.cursor.textNode && y.emitter.once(
|
|
1825
|
+
w != null && w.start.node !== y.cursor.textNode && y.emitter.once(a.default.events.SCROLL_UPDATE, function() {
|
|
1827
1826
|
try {
|
|
1828
1827
|
y.setNativeRange(w.start.node, w.start.offset, w.end.node, w.end.offset);
|
|
1829
1828
|
} catch {
|
|
1830
1829
|
}
|
|
1831
1830
|
});
|
|
1832
1831
|
}
|
|
1833
|
-
}), this.emitter.on(
|
|
1832
|
+
}), this.emitter.on(a.default.events.SCROLL_OPTIMIZE, function(w, N) {
|
|
1834
1833
|
if (N.range) {
|
|
1835
|
-
var q = N.range, B = q.startNode,
|
|
1836
|
-
y.setNativeRange(B,
|
|
1834
|
+
var q = N.range, B = q.startNode, $ = q.startOffset, z = q.endNode, J = q.endOffset;
|
|
1835
|
+
y.setNativeRange(B, $, z, J);
|
|
1837
1836
|
}
|
|
1838
|
-
}), this.update(
|
|
1837
|
+
}), this.update(a.default.sources.SILENT);
|
|
1839
1838
|
}
|
|
1840
1839
|
return _(S, [{
|
|
1841
1840
|
key: "handleComposition",
|
|
@@ -1861,7 +1860,7 @@ var Sr = { exports: {} };
|
|
|
1861
1860
|
this.emitter.listenDOM("mousedown", document.body, function() {
|
|
1862
1861
|
A.mouseDown = !0;
|
|
1863
1862
|
}), this.emitter.listenDOM("mouseup", document.body, function() {
|
|
1864
|
-
A.mouseDown = !1, A.update(
|
|
1863
|
+
A.mouseDown = !1, A.update(a.default.sources.USER);
|
|
1865
1864
|
});
|
|
1866
1865
|
}
|
|
1867
1866
|
}, {
|
|
@@ -1896,22 +1895,22 @@ var Sr = { exports: {} };
|
|
|
1896
1895
|
value: function(A) {
|
|
1897
1896
|
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, w = this.scroll.length();
|
|
1898
1897
|
A = Math.min(A, w - 1), y = Math.min(A + y, w - 1) - A;
|
|
1899
|
-
var N = void 0, q = this.scroll.leaf(A), B = E(q, 2),
|
|
1900
|
-
if (
|
|
1898
|
+
var N = void 0, q = this.scroll.leaf(A), B = E(q, 2), $ = B[0], z = B[1];
|
|
1899
|
+
if ($ == null)
|
|
1901
1900
|
return null;
|
|
1902
|
-
var J =
|
|
1901
|
+
var J = $.position(z, !0), H = E(J, 2);
|
|
1903
1902
|
N = H[0], z = H[1];
|
|
1904
1903
|
var I = document.createRange();
|
|
1905
1904
|
if (y > 0) {
|
|
1906
1905
|
I.setStart(N, z);
|
|
1907
1906
|
var P = this.scroll.leaf(A + y), M = E(P, 2);
|
|
1908
|
-
if (
|
|
1907
|
+
if ($ = M[0], z = M[1], $ == null)
|
|
1909
1908
|
return null;
|
|
1910
|
-
var D =
|
|
1911
|
-
return N =
|
|
1909
|
+
var D = $.position(z, !0), V = E(D, 2);
|
|
1910
|
+
return N = V[0], z = V[1], I.setEnd(N, z), I.getBoundingClientRect();
|
|
1912
1911
|
} else {
|
|
1913
1912
|
var F = "left", R = void 0;
|
|
1914
|
-
return N instanceof Text ? (z < N.data.length ? (I.setStart(N, z), I.setEnd(N, z + 1)) : (I.setStart(N, z - 1), I.setEnd(N, z), F = "right"), R = I.getBoundingClientRect()) : (R =
|
|
1913
|
+
return N instanceof Text ? (z < N.data.length ? (I.setStart(N, z), I.setEnd(N, z + 1)) : (I.setStart(N, z - 1), I.setEnd(N, z), F = "right"), R = I.getBoundingClientRect()) : (R = $.domNode.getBoundingClientRect(), z > 0 && (F = "right")), {
|
|
1915
1914
|
bottom: R.top + R.height,
|
|
1916
1915
|
height: R.height,
|
|
1917
1916
|
left: R[F],
|
|
@@ -1952,8 +1951,8 @@ var Sr = { exports: {} };
|
|
|
1952
1951
|
value: function(A) {
|
|
1953
1952
|
var y = this, w = [[A.start.node, A.start.offset]];
|
|
1954
1953
|
A.native.collapsed || w.push([A.end.node, A.end.offset]);
|
|
1955
|
-
var N = w.map(function(
|
|
1956
|
-
var z = E(
|
|
1954
|
+
var N = w.map(function($) {
|
|
1955
|
+
var z = E($, 2), J = z[0], H = z[1], I = g.default.find(J, !0), P = I.offset(y.scroll);
|
|
1957
1956
|
return H === 0 ? P : I instanceof g.default.Container ? P + I.length() : P + I.index(J, H);
|
|
1958
1957
|
}), q = Math.min(Math.max.apply(Math, i(N)), this.scroll.length() - 1), B = Math.min.apply(Math, [q].concat(i(N)));
|
|
1959
1958
|
return new v(B, q - B);
|
|
@@ -1983,9 +1982,9 @@ var Sr = { exports: {} };
|
|
|
1983
1982
|
key: "rangeToNative",
|
|
1984
1983
|
value: function(A) {
|
|
1985
1984
|
var y = this, w = A.collapsed ? [A.index] : [A.index, A.index + A.length], N = [], q = this.scroll.length();
|
|
1986
|
-
return w.forEach(function(B,
|
|
1985
|
+
return w.forEach(function(B, $) {
|
|
1987
1986
|
B = Math.min(q - 1, B);
|
|
1988
|
-
var z = void 0, J = y.scroll.leaf(B), H = E(J, 2), I = H[0], P = H[1], M = I.position(P,
|
|
1987
|
+
var z = void 0, J = y.scroll.leaf(B), H = E(J, 2), I = H[0], P = H[1], M = I.position(P, $ !== 0), D = E(M, 2);
|
|
1989
1988
|
z = D[0], P = D[1], N.push(z, P);
|
|
1990
1989
|
}), N.length < 2 && (N = N.concat(N)), N;
|
|
1991
1990
|
}
|
|
@@ -1996,12 +1995,12 @@ var Sr = { exports: {} };
|
|
|
1996
1995
|
if (y != null) {
|
|
1997
1996
|
var w = this.getBounds(y.index, y.length);
|
|
1998
1997
|
if (w != null) {
|
|
1999
|
-
var N = this.scroll.length() - 1, q = this.scroll.line(Math.min(y.index, N)), B = E(q, 1),
|
|
1998
|
+
var N = this.scroll.length() - 1, q = this.scroll.line(Math.min(y.index, N)), B = E(q, 1), $ = B[0], z = $;
|
|
2000
1999
|
if (y.length > 0) {
|
|
2001
2000
|
var J = this.scroll.line(Math.min(y.index + y.length, N)), H = E(J, 1);
|
|
2002
2001
|
z = H[0];
|
|
2003
2002
|
}
|
|
2004
|
-
if (!(
|
|
2003
|
+
if (!($ == null || z == null)) {
|
|
2005
2004
|
var I = A.getBoundingClientRect();
|
|
2006
2005
|
w.top < I.top ? A.scrollTop -= I.top - w.top : w.bottom > I.bottom && (A.scrollTop += w.bottom - I.bottom);
|
|
2007
2006
|
}
|
|
@@ -2017,8 +2016,8 @@ var Sr = { exports: {} };
|
|
|
2017
2016
|
if (B != null)
|
|
2018
2017
|
if (A != null) {
|
|
2019
2018
|
this.hasFocus() || this.root.focus();
|
|
2020
|
-
var
|
|
2021
|
-
if (
|
|
2019
|
+
var $ = (this.getNativeRange() || {}).native;
|
|
2020
|
+
if ($ == null || q || A !== $.startContainer || y !== $.startOffset || w !== $.endContainer || N !== $.endOffset) {
|
|
2022
2021
|
A.tagName == "BR" && (y = [].indexOf.call(A.parentNode.childNodes, A), A = A.parentNode), w.tagName == "BR" && (N = [].indexOf.call(w.parentNode.childNodes, w), w = w.parentNode);
|
|
2023
2022
|
var z = document.createRange();
|
|
2024
2023
|
z.setStart(A, y), z.setEnd(w, N), B.removeAllRanges(), B.addRange(z);
|
|
@@ -2030,7 +2029,7 @@ var Sr = { exports: {} };
|
|
|
2030
2029
|
}, {
|
|
2031
2030
|
key: "setRange",
|
|
2032
2031
|
value: function(A) {
|
|
2033
|
-
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, w = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
2032
|
+
var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, w = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : a.default.sources.API;
|
|
2034
2033
|
if (typeof y == "string" && (w = y, y = !1), n.info("setRange", A), A != null) {
|
|
2035
2034
|
var N = this.rangeToNative(A);
|
|
2036
2035
|
this.setNativeRange.apply(this, i(N).concat([y]));
|
|
@@ -2041,12 +2040,12 @@ var Sr = { exports: {} };
|
|
|
2041
2040
|
}, {
|
|
2042
2041
|
key: "update",
|
|
2043
2042
|
value: function() {
|
|
2044
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
2043
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : a.default.sources.USER, y = this.lastRange, w = this.getRange(), N = E(w, 2), q = N[0], B = N[1];
|
|
2045
2044
|
if (this.lastRange = q, this.lastRange != null && (this.savedRange = this.lastRange), !(0, e.default)(y, this.lastRange)) {
|
|
2046
|
-
var
|
|
2045
|
+
var $;
|
|
2047
2046
|
!this.composing && B != null && B.native.collapsed && B.start.node !== this.cursor.textNode && this.cursor.restore();
|
|
2048
|
-
var z = [
|
|
2049
|
-
if ((
|
|
2047
|
+
var z = [a.default.events.SELECTION_CHANGE, (0, d.default)(this.lastRange), (0, d.default)(y), A];
|
|
2048
|
+
if (($ = this.emitter).emit.apply($, [a.default.events.EDITOR_CHANGE].concat(z)), A !== a.default.sources.SILENT) {
|
|
2050
2049
|
var J;
|
|
2051
2050
|
(J = this.emitter).emit.apply(J, z);
|
|
2052
2051
|
}
|
|
@@ -2071,21 +2070,21 @@ var Sr = { exports: {} };
|
|
|
2071
2070
|
value: !0
|
|
2072
2071
|
});
|
|
2073
2072
|
var E = function() {
|
|
2074
|
-
function l
|
|
2073
|
+
function a(l, s) {
|
|
2075
2074
|
for (var r = 0; r < s.length; r++) {
|
|
2076
2075
|
var i = s[r];
|
|
2077
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(
|
|
2076
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(l, i.key, i);
|
|
2078
2077
|
}
|
|
2079
2078
|
}
|
|
2080
|
-
return function(
|
|
2081
|
-
return s && l
|
|
2079
|
+
return function(l, s, r) {
|
|
2080
|
+
return s && a(l.prototype, s), r && a(l, r), l;
|
|
2082
2081
|
};
|
|
2083
|
-
}(), _ = function l
|
|
2084
|
-
|
|
2085
|
-
var i = Object.getOwnPropertyDescriptor(
|
|
2082
|
+
}(), _ = function a(l, s, r) {
|
|
2083
|
+
l === null && (l = Function.prototype);
|
|
2084
|
+
var i = Object.getOwnPropertyDescriptor(l, s);
|
|
2086
2085
|
if (i === void 0) {
|
|
2087
|
-
var h = Object.getPrototypeOf(
|
|
2088
|
-
return h === null ? void 0 :
|
|
2086
|
+
var h = Object.getPrototypeOf(l);
|
|
2087
|
+
return h === null ? void 0 : a(h, s, r);
|
|
2089
2088
|
} else {
|
|
2090
2089
|
if ("value" in i)
|
|
2091
2090
|
return i.value;
|
|
@@ -2093,32 +2092,32 @@ var Sr = { exports: {} };
|
|
|
2093
2092
|
return n === void 0 ? void 0 : n.call(r);
|
|
2094
2093
|
}
|
|
2095
2094
|
}, O = f(0), g = b(O);
|
|
2096
|
-
function b(
|
|
2097
|
-
return
|
|
2095
|
+
function b(a) {
|
|
2096
|
+
return a && a.__esModule ? a : { default: a };
|
|
2098
2097
|
}
|
|
2099
|
-
function d(
|
|
2100
|
-
if (!(
|
|
2098
|
+
function d(a, l) {
|
|
2099
|
+
if (!(a instanceof l))
|
|
2101
2100
|
throw new TypeError("Cannot call a class as a function");
|
|
2102
2101
|
}
|
|
2103
|
-
function o(
|
|
2104
|
-
if (!
|
|
2102
|
+
function o(a, l) {
|
|
2103
|
+
if (!a)
|
|
2105
2104
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2106
|
-
return
|
|
2105
|
+
return l && (typeof l == "object" || typeof l == "function") ? l : a;
|
|
2107
2106
|
}
|
|
2108
|
-
function e(
|
|
2109
|
-
if (typeof
|
|
2110
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
2111
|
-
|
|
2107
|
+
function e(a, l) {
|
|
2108
|
+
if (typeof l != "function" && l !== null)
|
|
2109
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof l);
|
|
2110
|
+
a.prototype = Object.create(l && l.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), l && (Object.setPrototypeOf ? Object.setPrototypeOf(a, l) : a.__proto__ = l);
|
|
2112
2111
|
}
|
|
2113
|
-
var t = function(
|
|
2114
|
-
e(
|
|
2115
|
-
function
|
|
2116
|
-
return d(this,
|
|
2112
|
+
var t = function(a) {
|
|
2113
|
+
e(l, a);
|
|
2114
|
+
function l() {
|
|
2115
|
+
return d(this, l), o(this, (l.__proto__ || Object.getPrototypeOf(l)).apply(this, arguments));
|
|
2117
2116
|
}
|
|
2118
|
-
return E(
|
|
2117
|
+
return E(l, [{
|
|
2119
2118
|
key: "insertInto",
|
|
2120
2119
|
value: function(r, i) {
|
|
2121
|
-
r.children.length === 0 ? _(
|
|
2120
|
+
r.children.length === 0 ? _(l.prototype.__proto__ || Object.getPrototypeOf(l.prototype), "insertInto", this).call(this, r, i) : this.remove();
|
|
2122
2121
|
}
|
|
2123
2122
|
}, {
|
|
2124
2123
|
key: "length",
|
|
@@ -2134,7 +2133,7 @@ var Sr = { exports: {} };
|
|
|
2134
2133
|
key: "value",
|
|
2135
2134
|
value: function() {
|
|
2136
2135
|
}
|
|
2137
|
-
}]),
|
|
2136
|
+
}]), l;
|
|
2138
2137
|
}(g.default.Embed);
|
|
2139
2138
|
t.blotName = "break", t.tagName = "BR", p.default = t;
|
|
2140
2139
|
},
|
|
@@ -2145,15 +2144,15 @@ var Sr = { exports: {} };
|
|
|
2145
2144
|
var o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
2146
2145
|
e.__proto__ = t;
|
|
2147
2146
|
} || function(e, t) {
|
|
2148
|
-
for (var
|
|
2149
|
-
t.hasOwnProperty(
|
|
2147
|
+
for (var a in t)
|
|
2148
|
+
t.hasOwnProperty(a) && (e[a] = t[a]);
|
|
2150
2149
|
};
|
|
2151
2150
|
return function(e, t) {
|
|
2152
2151
|
o(e, t);
|
|
2153
|
-
function
|
|
2152
|
+
function a() {
|
|
2154
2153
|
this.constructor = e;
|
|
2155
2154
|
}
|
|
2156
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
2155
|
+
e.prototype = t === null ? Object.create(t) : (a.prototype = t.prototype, new a());
|
|
2157
2156
|
};
|
|
2158
2157
|
}();
|
|
2159
2158
|
Object.defineProperty(p, "__esModule", { value: !0 });
|
|
@@ -2162,8 +2161,8 @@ var Sr = { exports: {} };
|
|
|
2162
2161
|
function(o) {
|
|
2163
2162
|
E(e, o);
|
|
2164
2163
|
function e(t) {
|
|
2165
|
-
var
|
|
2166
|
-
return
|
|
2164
|
+
var a = o.call(this, t) || this;
|
|
2165
|
+
return a.build(), a;
|
|
2167
2166
|
}
|
|
2168
2167
|
return e.prototype.appendChild = function(t) {
|
|
2169
2168
|
this.insertBefore(t);
|
|
@@ -2173,108 +2172,108 @@ var Sr = { exports: {} };
|
|
|
2173
2172
|
});
|
|
2174
2173
|
}, e.prototype.build = function() {
|
|
2175
2174
|
var t = this;
|
|
2176
|
-
this.children = new _.default(), [].slice.call(this.domNode.childNodes).reverse().forEach(function(
|
|
2175
|
+
this.children = new _.default(), [].slice.call(this.domNode.childNodes).reverse().forEach(function(a) {
|
|
2177
2176
|
try {
|
|
2178
|
-
var
|
|
2179
|
-
t.insertBefore(
|
|
2177
|
+
var l = d(a);
|
|
2178
|
+
t.insertBefore(l, t.children.head || void 0);
|
|
2180
2179
|
} catch (s) {
|
|
2181
2180
|
if (s instanceof g.ParchmentError)
|
|
2182
2181
|
return;
|
|
2183
2182
|
throw s;
|
|
2184
2183
|
}
|
|
2185
2184
|
});
|
|
2186
|
-
}, e.prototype.deleteAt = function(t,
|
|
2187
|
-
if (t === 0 &&
|
|
2185
|
+
}, e.prototype.deleteAt = function(t, a) {
|
|
2186
|
+
if (t === 0 && a === this.length())
|
|
2188
2187
|
return this.remove();
|
|
2189
|
-
this.children.forEachAt(t,
|
|
2190
|
-
|
|
2188
|
+
this.children.forEachAt(t, a, function(l, s, r) {
|
|
2189
|
+
l.deleteAt(s, r);
|
|
2191
2190
|
});
|
|
2192
|
-
}, e.prototype.descendant = function(t,
|
|
2193
|
-
var
|
|
2191
|
+
}, e.prototype.descendant = function(t, a) {
|
|
2192
|
+
var l = this.children.find(a), s = l[0], r = l[1];
|
|
2194
2193
|
return t.blotName == null && t(s) || t.blotName != null && s instanceof t ? [s, r] : s instanceof e ? s.descendant(t, r) : [null, -1];
|
|
2195
|
-
}, e.prototype.descendants = function(t,
|
|
2196
|
-
|
|
2197
|
-
var s = [], r =
|
|
2198
|
-
return this.children.forEachAt(
|
|
2194
|
+
}, e.prototype.descendants = function(t, a, l) {
|
|
2195
|
+
a === void 0 && (a = 0), l === void 0 && (l = Number.MAX_VALUE);
|
|
2196
|
+
var s = [], r = l;
|
|
2197
|
+
return this.children.forEachAt(a, l, function(i, h, n) {
|
|
2199
2198
|
(t.blotName == null && t(i) || t.blotName != null && i instanceof t) && s.push(i), i instanceof e && (s = s.concat(i.descendants(t, h, r))), r -= n;
|
|
2200
2199
|
}), s;
|
|
2201
2200
|
}, e.prototype.detach = function() {
|
|
2202
2201
|
this.children.forEach(function(t) {
|
|
2203
2202
|
t.detach();
|
|
2204
2203
|
}), o.prototype.detach.call(this);
|
|
2205
|
-
}, e.prototype.formatAt = function(t,
|
|
2206
|
-
this.children.forEachAt(t,
|
|
2207
|
-
r.formatAt(i, h,
|
|
2204
|
+
}, e.prototype.formatAt = function(t, a, l, s) {
|
|
2205
|
+
this.children.forEachAt(t, a, function(r, i, h) {
|
|
2206
|
+
r.formatAt(i, h, l, s);
|
|
2208
2207
|
});
|
|
2209
|
-
}, e.prototype.insertAt = function(t,
|
|
2208
|
+
}, e.prototype.insertAt = function(t, a, l) {
|
|
2210
2209
|
var s = this.children.find(t), r = s[0], i = s[1];
|
|
2211
2210
|
if (r)
|
|
2212
|
-
r.insertAt(i,
|
|
2211
|
+
r.insertAt(i, a, l);
|
|
2213
2212
|
else {
|
|
2214
|
-
var h =
|
|
2213
|
+
var h = l == null ? g.create("text", a) : g.create(a, l);
|
|
2215
2214
|
this.appendChild(h);
|
|
2216
2215
|
}
|
|
2217
|
-
}, e.prototype.insertBefore = function(t,
|
|
2218
|
-
if (this.statics.allowedChildren != null && !this.statics.allowedChildren.some(function(
|
|
2219
|
-
return t instanceof
|
|
2216
|
+
}, e.prototype.insertBefore = function(t, a) {
|
|
2217
|
+
if (this.statics.allowedChildren != null && !this.statics.allowedChildren.some(function(l) {
|
|
2218
|
+
return t instanceof l;
|
|
2220
2219
|
}))
|
|
2221
2220
|
throw new g.ParchmentError("Cannot insert " + t.statics.blotName + " into " + this.statics.blotName);
|
|
2222
|
-
t.insertInto(this,
|
|
2221
|
+
t.insertInto(this, a);
|
|
2223
2222
|
}, e.prototype.length = function() {
|
|
2224
|
-
return this.children.reduce(function(t,
|
|
2225
|
-
return t +
|
|
2223
|
+
return this.children.reduce(function(t, a) {
|
|
2224
|
+
return t + a.length();
|
|
2226
2225
|
}, 0);
|
|
2227
|
-
}, e.prototype.moveChildren = function(t,
|
|
2228
|
-
this.children.forEach(function(
|
|
2229
|
-
t.insertBefore(
|
|
2226
|
+
}, e.prototype.moveChildren = function(t, a) {
|
|
2227
|
+
this.children.forEach(function(l) {
|
|
2228
|
+
t.insertBefore(l, a);
|
|
2230
2229
|
});
|
|
2231
2230
|
}, e.prototype.optimize = function(t) {
|
|
2232
2231
|
if (o.prototype.optimize.call(this, t), this.children.length === 0)
|
|
2233
2232
|
if (this.statics.defaultChild != null) {
|
|
2234
|
-
var
|
|
2235
|
-
this.appendChild(
|
|
2233
|
+
var a = g.create(this.statics.defaultChild);
|
|
2234
|
+
this.appendChild(a), a.optimize(t);
|
|
2236
2235
|
} else
|
|
2237
2236
|
this.remove();
|
|
2238
|
-
}, e.prototype.path = function(t,
|
|
2239
|
-
|
|
2240
|
-
var
|
|
2241
|
-
return s instanceof e ? i.concat(s.path(r,
|
|
2237
|
+
}, e.prototype.path = function(t, a) {
|
|
2238
|
+
a === void 0 && (a = !1);
|
|
2239
|
+
var l = this.children.find(t, a), s = l[0], r = l[1], i = [[this, t]];
|
|
2240
|
+
return s instanceof e ? i.concat(s.path(r, a)) : (s != null && i.push([s, r]), i);
|
|
2242
2241
|
}, e.prototype.removeChild = function(t) {
|
|
2243
2242
|
this.children.remove(t);
|
|
2244
2243
|
}, e.prototype.replace = function(t) {
|
|
2245
2244
|
t instanceof e && t.moveChildren(this), o.prototype.replace.call(this, t);
|
|
2246
|
-
}, e.prototype.split = function(t,
|
|
2247
|
-
if (
|
|
2245
|
+
}, e.prototype.split = function(t, a) {
|
|
2246
|
+
if (a === void 0 && (a = !1), !a) {
|
|
2248
2247
|
if (t === 0)
|
|
2249
2248
|
return this;
|
|
2250
2249
|
if (t === this.length())
|
|
2251
2250
|
return this.next;
|
|
2252
2251
|
}
|
|
2253
|
-
var
|
|
2254
|
-
return this.parent.insertBefore(
|
|
2255
|
-
s = s.split(r,
|
|
2256
|
-
}),
|
|
2252
|
+
var l = this.clone();
|
|
2253
|
+
return this.parent.insertBefore(l, this.next), this.children.forEachAt(t, this.length(), function(s, r, i) {
|
|
2254
|
+
s = s.split(r, a), l.appendChild(s);
|
|
2255
|
+
}), l;
|
|
2257
2256
|
}, e.prototype.unwrap = function() {
|
|
2258
2257
|
this.moveChildren(this.parent, this.next), this.remove();
|
|
2259
|
-
}, e.prototype.update = function(t,
|
|
2260
|
-
var
|
|
2258
|
+
}, e.prototype.update = function(t, a) {
|
|
2259
|
+
var l = this, s = [], r = [];
|
|
2261
2260
|
t.forEach(function(i) {
|
|
2262
|
-
i.target ===
|
|
2261
|
+
i.target === l.domNode && i.type === "childList" && (s.push.apply(s, i.addedNodes), r.push.apply(r, i.removedNodes));
|
|
2263
2262
|
}), r.forEach(function(i) {
|
|
2264
2263
|
if (!(i.parentNode != null && // @ts-ignore
|
|
2265
2264
|
i.tagName !== "IFRAME" && document.body.compareDocumentPosition(i) & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
|
|
2266
2265
|
var h = g.find(i);
|
|
2267
|
-
h != null && (h.domNode.parentNode == null || h.domNode.parentNode ===
|
|
2266
|
+
h != null && (h.domNode.parentNode == null || h.domNode.parentNode === l.domNode) && h.detach();
|
|
2268
2267
|
}
|
|
2269
2268
|
}), s.filter(function(i) {
|
|
2270
|
-
return i.parentNode ==
|
|
2269
|
+
return i.parentNode == l.domNode;
|
|
2271
2270
|
}).sort(function(i, h) {
|
|
2272
2271
|
return i === h ? 0 : i.compareDocumentPosition(h) & Node.DOCUMENT_POSITION_FOLLOWING ? 1 : -1;
|
|
2273
2272
|
}).forEach(function(i) {
|
|
2274
2273
|
var h = null;
|
|
2275
2274
|
i.nextSibling != null && (h = g.find(i.nextSibling));
|
|
2276
2275
|
var n = d(i);
|
|
2277
|
-
(n.next != h || n.next == null) && (n.parent != null && n.parent.removeChild(
|
|
2276
|
+
(n.next != h || n.next == null) && (n.parent != null && n.parent.removeChild(l), l.insertBefore(n, h || void 0));
|
|
2278
2277
|
});
|
|
2279
2278
|
}, e;
|
|
2280
2279
|
}(O.default)
|
|
@@ -2285,8 +2284,8 @@ var Sr = { exports: {} };
|
|
|
2285
2284
|
try {
|
|
2286
2285
|
e = g.create(o);
|
|
2287
2286
|
} catch {
|
|
2288
|
-
e = g.create(g.Scope.INLINE), [].slice.call(o.childNodes).forEach(function(
|
|
2289
|
-
e.domNode.appendChild(
|
|
2287
|
+
e = g.create(g.Scope.INLINE), [].slice.call(o.childNodes).forEach(function(a) {
|
|
2288
|
+
e.domNode.appendChild(a);
|
|
2290
2289
|
}), o.parentNode && o.parentNode.replaceChild(e.domNode, o), e.attach();
|
|
2291
2290
|
}
|
|
2292
2291
|
return e;
|
|
@@ -2300,15 +2299,15 @@ var Sr = { exports: {} };
|
|
|
2300
2299
|
var o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
2301
2300
|
e.__proto__ = t;
|
|
2302
2301
|
} || function(e, t) {
|
|
2303
|
-
for (var
|
|
2304
|
-
t.hasOwnProperty(
|
|
2302
|
+
for (var a in t)
|
|
2303
|
+
t.hasOwnProperty(a) && (e[a] = t[a]);
|
|
2305
2304
|
};
|
|
2306
2305
|
return function(e, t) {
|
|
2307
2306
|
o(e, t);
|
|
2308
|
-
function
|
|
2307
|
+
function a() {
|
|
2309
2308
|
this.constructor = e;
|
|
2310
2309
|
}
|
|
2311
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
2310
|
+
e.prototype = t === null ? Object.create(t) : (a.prototype = t.prototype, new a());
|
|
2312
2311
|
};
|
|
2313
2312
|
}();
|
|
2314
2313
|
Object.defineProperty(p, "__esModule", { value: !0 });
|
|
@@ -2317,31 +2316,31 @@ var Sr = { exports: {} };
|
|
|
2317
2316
|
function(o) {
|
|
2318
2317
|
E(e, o);
|
|
2319
2318
|
function e(t) {
|
|
2320
|
-
var
|
|
2321
|
-
return
|
|
2319
|
+
var a = o.call(this, t) || this;
|
|
2320
|
+
return a.attributes = new O.default(a.domNode), a;
|
|
2322
2321
|
}
|
|
2323
2322
|
return e.formats = function(t) {
|
|
2324
2323
|
if (typeof this.tagName == "string")
|
|
2325
2324
|
return !0;
|
|
2326
2325
|
if (Array.isArray(this.tagName))
|
|
2327
2326
|
return t.tagName.toLowerCase();
|
|
2328
|
-
}, e.prototype.format = function(t,
|
|
2329
|
-
var
|
|
2330
|
-
|
|
2327
|
+
}, e.prototype.format = function(t, a) {
|
|
2328
|
+
var l = b.query(t);
|
|
2329
|
+
l instanceof _.default ? this.attributes.attribute(l, a) : a && l != null && (t !== this.statics.blotName || this.formats()[t] !== a) && this.replaceWith(t, a);
|
|
2331
2330
|
}, e.prototype.formats = function() {
|
|
2332
|
-
var t = this.attributes.values(),
|
|
2333
|
-
return
|
|
2334
|
-
}, e.prototype.replaceWith = function(t,
|
|
2335
|
-
var
|
|
2336
|
-
return this.attributes.copy(
|
|
2337
|
-
}, e.prototype.update = function(t,
|
|
2338
|
-
var
|
|
2339
|
-
o.prototype.update.call(this, t,
|
|
2340
|
-
return s.target ===
|
|
2331
|
+
var t = this.attributes.values(), a = this.statics.formats(this.domNode);
|
|
2332
|
+
return a != null && (t[this.statics.blotName] = a), t;
|
|
2333
|
+
}, e.prototype.replaceWith = function(t, a) {
|
|
2334
|
+
var l = o.prototype.replaceWith.call(this, t, a);
|
|
2335
|
+
return this.attributes.copy(l), l;
|
|
2336
|
+
}, e.prototype.update = function(t, a) {
|
|
2337
|
+
var l = this;
|
|
2338
|
+
o.prototype.update.call(this, t, a), t.some(function(s) {
|
|
2339
|
+
return s.target === l.domNode && s.type === "attributes";
|
|
2341
2340
|
}) && this.attributes.build();
|
|
2342
|
-
}, e.prototype.wrap = function(t,
|
|
2343
|
-
var
|
|
2344
|
-
return
|
|
2341
|
+
}, e.prototype.wrap = function(t, a) {
|
|
2342
|
+
var l = o.prototype.wrap.call(this, t, a);
|
|
2343
|
+
return l instanceof e && l.statics.scope === this.statics.scope && this.attributes.move(l), l;
|
|
2345
2344
|
}, e;
|
|
2346
2345
|
}(g.default)
|
|
2347
2346
|
);
|
|
@@ -2396,8 +2395,8 @@ var Sr = { exports: {} };
|
|
|
2396
2395
|
compose: function(b, d, o) {
|
|
2397
2396
|
typeof b != "object" && (b = {}), typeof d != "object" && (d = {});
|
|
2398
2397
|
var e = _(!0, {}, d);
|
|
2399
|
-
o || (e = Object.keys(e).reduce(function(
|
|
2400
|
-
return e[
|
|
2398
|
+
o || (e = Object.keys(e).reduce(function(a, l) {
|
|
2399
|
+
return e[l] != null && (a[l] = e[l]), a;
|
|
2401
2400
|
}, {}));
|
|
2402
2401
|
for (var t in b)
|
|
2403
2402
|
b[t] !== void 0 && d[t] === void 0 && (e[t] = b[t]);
|
|
@@ -2416,8 +2415,8 @@ var Sr = { exports: {} };
|
|
|
2416
2415
|
if (typeof d == "object") {
|
|
2417
2416
|
if (!o)
|
|
2418
2417
|
return d;
|
|
2419
|
-
var e = Object.keys(d).reduce(function(t,
|
|
2420
|
-
return b[
|
|
2418
|
+
var e = Object.keys(d).reduce(function(t, a) {
|
|
2419
|
+
return b[a] === void 0 && (t[a] = d[a]), t;
|
|
2421
2420
|
}, {});
|
|
2422
2421
|
return Object.keys(e).length > 0 ? e : void 0;
|
|
2423
2422
|
}
|
|
@@ -2466,8 +2465,8 @@ var Sr = { exports: {} };
|
|
|
2466
2465
|
/***/
|
|
2467
2466
|
function(c, p) {
|
|
2468
2467
|
var f = function() {
|
|
2469
|
-
function E(
|
|
2470
|
-
return s != null &&
|
|
2468
|
+
function E(l, s) {
|
|
2469
|
+
return s != null && l instanceof s;
|
|
2471
2470
|
}
|
|
2472
2471
|
var _;
|
|
2473
2472
|
try {
|
|
@@ -2490,7 +2489,7 @@ var Sr = { exports: {} };
|
|
|
2490
2489
|
g = function() {
|
|
2491
2490
|
};
|
|
2492
2491
|
}
|
|
2493
|
-
function b(
|
|
2492
|
+
function b(l, s, r, i, h) {
|
|
2494
2493
|
typeof s == "object" && (r = s.depth, i = s.prototype, h = s.includeNonEnumerable, s = s.circular);
|
|
2495
2494
|
var n = [], v = [], k = typeof Buffer < "u";
|
|
2496
2495
|
typeof s > "u" && (s = !0), typeof r > "u" && (r = 1 / 0);
|
|
@@ -2517,7 +2516,7 @@ var Sr = { exports: {} };
|
|
|
2517
2516
|
else if (b.__isArray(S))
|
|
2518
2517
|
A = [];
|
|
2519
2518
|
else if (b.__isRegExp(S))
|
|
2520
|
-
A = new RegExp(S.source,
|
|
2519
|
+
A = new RegExp(S.source, a(S)), S.lastIndex && (A.lastIndex = S.lastIndex);
|
|
2521
2520
|
else if (b.__isDate(S))
|
|
2522
2521
|
A = new Date(S.getTime());
|
|
2523
2522
|
else {
|
|
@@ -2544,8 +2543,8 @@ var Sr = { exports: {} };
|
|
|
2544
2543
|
}
|
|
2545
2544
|
if (Object.getOwnPropertySymbols)
|
|
2546
2545
|
for (var B = Object.getOwnPropertySymbols(S), N = 0; N < B.length; N++) {
|
|
2547
|
-
var
|
|
2548
|
-
z && !z.enumerable && !h || (A[
|
|
2546
|
+
var $ = B[N], z = Object.getOwnPropertyDescriptor(S, $);
|
|
2547
|
+
z && !z.enumerable && !h || (A[$] = T(S[$], L - 1), z.enumerable || Object.defineProperty(A, $, {
|
|
2549
2548
|
enumerable: !1
|
|
2550
2549
|
}));
|
|
2551
2550
|
}
|
|
@@ -2558,7 +2557,7 @@ var Sr = { exports: {} };
|
|
|
2558
2557
|
}
|
|
2559
2558
|
return A;
|
|
2560
2559
|
}
|
|
2561
|
-
return T(
|
|
2560
|
+
return T(l, r);
|
|
2562
2561
|
}
|
|
2563
2562
|
b.clonePrototype = function(s) {
|
|
2564
2563
|
if (s === null)
|
|
@@ -2567,27 +2566,27 @@ var Sr = { exports: {} };
|
|
|
2567
2566
|
};
|
|
2568
2567
|
return r.prototype = s, new r();
|
|
2569
2568
|
};
|
|
2570
|
-
function d(
|
|
2571
|
-
return Object.prototype.toString.call(
|
|
2569
|
+
function d(l) {
|
|
2570
|
+
return Object.prototype.toString.call(l);
|
|
2572
2571
|
}
|
|
2573
2572
|
b.__objToStr = d;
|
|
2574
|
-
function o(
|
|
2575
|
-
return typeof
|
|
2573
|
+
function o(l) {
|
|
2574
|
+
return typeof l == "object" && d(l) === "[object Date]";
|
|
2576
2575
|
}
|
|
2577
2576
|
b.__isDate = o;
|
|
2578
|
-
function e(
|
|
2579
|
-
return typeof
|
|
2577
|
+
function e(l) {
|
|
2578
|
+
return typeof l == "object" && d(l) === "[object Array]";
|
|
2580
2579
|
}
|
|
2581
2580
|
b.__isArray = e;
|
|
2582
|
-
function t(
|
|
2583
|
-
return typeof
|
|
2581
|
+
function t(l) {
|
|
2582
|
+
return typeof l == "object" && d(l) === "[object RegExp]";
|
|
2584
2583
|
}
|
|
2585
2584
|
b.__isRegExp = t;
|
|
2586
|
-
function l
|
|
2585
|
+
function a(l) {
|
|
2587
2586
|
var s = "";
|
|
2588
|
-
return
|
|
2587
|
+
return l.global && (s += "g"), l.ignoreCase && (s += "i"), l.multiline && (s += "m"), s;
|
|
2589
2588
|
}
|
|
2590
|
-
return b.__getRegExpFlags =
|
|
2589
|
+
return b.__getRegExpFlags = a, b;
|
|
2591
2590
|
}();
|
|
2592
2591
|
typeof c == "object" && c.exports && (c.exports = f);
|
|
2593
2592
|
},
|
|
@@ -2599,18 +2598,18 @@ var Sr = { exports: {} };
|
|
|
2599
2598
|
});
|
|
2600
2599
|
var E = function() {
|
|
2601
2600
|
function A(y, w) {
|
|
2602
|
-
var N = [], q = !0, B = !1,
|
|
2601
|
+
var N = [], q = !0, B = !1, $ = void 0;
|
|
2603
2602
|
try {
|
|
2604
2603
|
for (var z = y[Symbol.iterator](), J; !(q = (J = z.next()).done) && (N.push(J.value), !(w && N.length === w)); q = !0)
|
|
2605
2604
|
;
|
|
2606
2605
|
} catch (H) {
|
|
2607
|
-
B = !0,
|
|
2606
|
+
B = !0, $ = H;
|
|
2608
2607
|
} finally {
|
|
2609
2608
|
try {
|
|
2610
2609
|
!q && z.return && z.return();
|
|
2611
2610
|
} finally {
|
|
2612
2611
|
if (B)
|
|
2613
|
-
throw
|
|
2612
|
+
throw $;
|
|
2614
2613
|
}
|
|
2615
2614
|
}
|
|
2616
2615
|
return N;
|
|
@@ -2641,10 +2640,10 @@ var Sr = { exports: {} };
|
|
|
2641
2640
|
} else {
|
|
2642
2641
|
if ("value" in q)
|
|
2643
2642
|
return q.value;
|
|
2644
|
-
var
|
|
2645
|
-
return
|
|
2643
|
+
var $ = q.get;
|
|
2644
|
+
return $ === void 0 ? void 0 : $.call(N);
|
|
2646
2645
|
}
|
|
2647
|
-
}, g = f(0), b = n(g), d = f(8), o = n(d), e = f(4), t = n(e),
|
|
2646
|
+
}, g = f(0), b = n(g), d = f(8), o = n(d), e = f(4), t = n(e), a = f(16), l = n(a), s = f(13), r = n(s), i = f(25), h = n(i);
|
|
2648
2647
|
function n(A) {
|
|
2649
2648
|
return A && A.__esModule ? A : { default: A };
|
|
2650
2649
|
}
|
|
@@ -2670,8 +2669,8 @@ var Sr = { exports: {} };
|
|
|
2670
2669
|
function y(w, N) {
|
|
2671
2670
|
v(this, y);
|
|
2672
2671
|
var q = k(this, (y.__proto__ || Object.getPrototypeOf(y)).call(this, w));
|
|
2673
|
-
return q.emitter = N.emitter, Array.isArray(N.whitelist) && (q.whitelist = N.whitelist.reduce(function(B,
|
|
2674
|
-
return B[
|
|
2672
|
+
return q.emitter = N.emitter, Array.isArray(N.whitelist) && (q.whitelist = N.whitelist.reduce(function(B, $) {
|
|
2673
|
+
return B[$] = !0, B;
|
|
2675
2674
|
}, {})), q.domNode.addEventListener("DOMNodeInserted", function() {
|
|
2676
2675
|
}), q.optimize(), q.enable(), q;
|
|
2677
2676
|
}
|
|
@@ -2688,7 +2687,7 @@ var Sr = { exports: {} };
|
|
|
2688
2687
|
}, {
|
|
2689
2688
|
key: "deleteAt",
|
|
2690
2689
|
value: function(N, q) {
|
|
2691
|
-
var B = this.line(N),
|
|
2690
|
+
var B = this.line(N), $ = E(B, 2), z = $[0], J = $[1], H = this.line(N + q), I = E(H, 1), P = I[0];
|
|
2692
2691
|
if (O(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "deleteAt", this).call(this, N, q), P != null && z !== P && J > 0) {
|
|
2693
2692
|
if (z instanceof e.BlockEmbed || P instanceof e.BlockEmbed) {
|
|
2694
2693
|
this.optimize();
|
|
@@ -2704,8 +2703,8 @@ var Sr = { exports: {} };
|
|
|
2704
2703
|
var D = P.newlineIndex(0);
|
|
2705
2704
|
D > -1 && P.split(D + 1);
|
|
2706
2705
|
}
|
|
2707
|
-
var
|
|
2708
|
-
z.moveChildren(P,
|
|
2706
|
+
var V = P.children.head instanceof l.default ? null : P.children.head;
|
|
2707
|
+
z.moveChildren(P, V), z.remove();
|
|
2709
2708
|
}
|
|
2710
2709
|
this.optimize();
|
|
2711
2710
|
}
|
|
@@ -2717,8 +2716,8 @@ var Sr = { exports: {} };
|
|
|
2717
2716
|
}
|
|
2718
2717
|
}, {
|
|
2719
2718
|
key: "formatAt",
|
|
2720
|
-
value: function(N, q, B,
|
|
2721
|
-
this.whitelist != null && !this.whitelist[B] || (O(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "formatAt", this).call(this, N, q, B,
|
|
2719
|
+
value: function(N, q, B, $) {
|
|
2720
|
+
this.whitelist != null && !this.whitelist[B] || (O(y.prototype.__proto__ || Object.getPrototypeOf(y.prototype), "formatAt", this).call(this, N, q, B, $), this.optimize());
|
|
2722
2721
|
}
|
|
2723
2722
|
}, {
|
|
2724
2723
|
key: "insertAt",
|
|
@@ -2726,9 +2725,9 @@ var Sr = { exports: {} };
|
|
|
2726
2725
|
if (!(B != null && this.whitelist != null && !this.whitelist[q])) {
|
|
2727
2726
|
if (N >= this.length())
|
|
2728
2727
|
if (B == null || b.default.query(q, b.default.Scope.BLOCK) == null) {
|
|
2729
|
-
var
|
|
2730
|
-
this.appendChild(
|
|
2731
|
-
`) && (q = q.slice(0, -1)),
|
|
2728
|
+
var $ = b.default.create(this.statics.defaultChild);
|
|
2729
|
+
this.appendChild($), B == null && q.endsWith(`
|
|
2730
|
+
`) && (q = q.slice(0, -1)), $.insertAt(0, q, B);
|
|
2732
2731
|
} else {
|
|
2733
2732
|
var z = b.default.create(q, B);
|
|
2734
2733
|
this.appendChild(z);
|
|
@@ -2760,10 +2759,10 @@ var Sr = { exports: {} };
|
|
|
2760
2759
|
}, {
|
|
2761
2760
|
key: "lines",
|
|
2762
2761
|
value: function() {
|
|
2763
|
-
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, B = function
|
|
2762
|
+
var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Number.MAX_VALUE, B = function $(z, J, H) {
|
|
2764
2763
|
var I = [], P = H;
|
|
2765
|
-
return z.children.forEachAt(J, H, function(M, D,
|
|
2766
|
-
S(M) ? I.push(M) : M instanceof b.default.Container && (I = I.concat(
|
|
2764
|
+
return z.children.forEachAt(J, H, function(M, D, V) {
|
|
2765
|
+
S(M) ? I.push(M) : M instanceof b.default.Container && (I = I.concat($(M, D, P))), P -= V;
|
|
2767
2766
|
}), I;
|
|
2768
2767
|
};
|
|
2769
2768
|
return B(this, N, q);
|
|
@@ -2805,13 +2804,13 @@ var Sr = { exports: {} };
|
|
|
2805
2804
|
function R(U, K) {
|
|
2806
2805
|
var G = [], X = !0, ne = !1, ie = void 0;
|
|
2807
2806
|
try {
|
|
2808
|
-
for (var
|
|
2807
|
+
for (var ae = U[Symbol.iterator](), fe; !(X = (fe = ae.next()).done) && (G.push(fe.value), !(K && G.length === K)); X = !0)
|
|
2809
2808
|
;
|
|
2810
2809
|
} catch (he) {
|
|
2811
2810
|
ne = !0, ie = he;
|
|
2812
2811
|
} finally {
|
|
2813
2812
|
try {
|
|
2814
|
-
!X &&
|
|
2813
|
+
!X && ae.return && ae.return();
|
|
2815
2814
|
} finally {
|
|
2816
2815
|
if (ne)
|
|
2817
2816
|
throw ie;
|
|
@@ -2836,7 +2835,7 @@ var Sr = { exports: {} };
|
|
|
2836
2835
|
return function(U, K, G) {
|
|
2837
2836
|
return K && R(U.prototype, K), G && R(U, G), U;
|
|
2838
2837
|
};
|
|
2839
|
-
}(), g = f(21), b = A(g), d = f(11), o = A(d), e = f(3), t = A(e),
|
|
2838
|
+
}(), g = f(21), b = A(g), d = f(11), o = A(d), e = f(3), t = A(e), a = f(2), l = A(a), s = f(20), r = A(s), i = f(0), h = A(i), n = f(5), v = A(n), k = f(10), T = A(k), S = f(9), L = A(S);
|
|
2840
2839
|
function A(R) {
|
|
2841
2840
|
return R && R.__esModule ? R : { default: R };
|
|
2842
2841
|
}
|
|
@@ -2857,7 +2856,7 @@ var Sr = { exports: {} };
|
|
|
2857
2856
|
throw new TypeError("Super expression must either be null or a function, not " + typeof U);
|
|
2858
2857
|
R.prototype = Object.create(U && U.prototype, { constructor: { value: R, enumerable: !1, writable: !0, configurable: !0 } }), U && (Object.setPrototypeOf ? Object.setPrototypeOf(R, U) : R.__proto__ = U);
|
|
2859
2858
|
}
|
|
2860
|
-
var B = (0, T.default)("quill:keyboard"),
|
|
2859
|
+
var B = (0, T.default)("quill:keyboard"), $ = /Mac/i.test(navigator.platform) ? "metaKey" : "ctrlKey", z = function(R) {
|
|
2861
2860
|
q(U, R), O(U, null, [{
|
|
2862
2861
|
key: "match",
|
|
2863
2862
|
value: function(G, X) {
|
|
@@ -2892,12 +2891,12 @@ var Sr = { exports: {} };
|
|
|
2892
2891
|
return U.match(X, de);
|
|
2893
2892
|
});
|
|
2894
2893
|
if (ie.length !== 0) {
|
|
2895
|
-
var
|
|
2896
|
-
if (!(
|
|
2897
|
-
var fe = G.quill.getLine(
|
|
2898
|
-
collapsed:
|
|
2899
|
-
empty:
|
|
2900
|
-
format: G.quill.getFormat(
|
|
2894
|
+
var ae = G.quill.getSelection();
|
|
2895
|
+
if (!(ae == null || !G.quill.hasFocus())) {
|
|
2896
|
+
var fe = G.quill.getLine(ae.index), he = _(fe, 2), be = he[0], ge = he[1], W = G.quill.getLeaf(ae.index), Y = _(W, 2), ee = Y[0], te = Y[1], Q = ae.length === 0 ? [ee, te] : G.quill.getLeaf(ae.index + ae.length), se = _(Q, 2), oe = se[0], le = se[1], ke = ee instanceof h.default.Text ? ee.value().slice(0, te) : "", Ee = oe instanceof h.default.Text ? oe.value().slice(le) : "", ve = {
|
|
2897
|
+
collapsed: ae.length === 0,
|
|
2898
|
+
empty: ae.length === 0 && be.length() <= 1,
|
|
2899
|
+
format: G.quill.getFormat(ae),
|
|
2901
2900
|
offset: ge,
|
|
2902
2901
|
prefix: ke,
|
|
2903
2902
|
suffix: Ee
|
|
@@ -2913,7 +2912,7 @@ var Sr = { exports: {} };
|
|
|
2913
2912
|
return de.format[Me] === !0 ? ve.format[Me] != null : de.format[Me] === !1 ? ve.format[Me] == null : (0, o.default)(de.format[Me], ve.format[Me]);
|
|
2914
2913
|
}))
|
|
2915
2914
|
return !1;
|
|
2916
|
-
return de.prefix != null && !de.prefix.test(ve.prefix) || de.suffix != null && !de.suffix.test(ve.suffix) ? !1 : de.handler.call(G,
|
|
2915
|
+
return de.prefix != null && !de.prefix.test(ve.prefix) || de.suffix != null && !de.suffix.test(ve.suffix) ? !1 : de.handler.call(G, ae, ve) !== !0;
|
|
2917
2916
|
});
|
|
2918
2917
|
tt && X.preventDefault();
|
|
2919
2918
|
}
|
|
@@ -2935,9 +2934,9 @@ var Sr = { exports: {} };
|
|
|
2935
2934
|
DELETE: 46
|
|
2936
2935
|
}, z.DEFAULTS = {
|
|
2937
2936
|
bindings: {
|
|
2938
|
-
bold:
|
|
2939
|
-
italic:
|
|
2940
|
-
underline:
|
|
2937
|
+
bold: V("bold"),
|
|
2938
|
+
italic: V("italic"),
|
|
2939
|
+
underline: V("underline"),
|
|
2941
2940
|
indent: {
|
|
2942
2941
|
// highlight tab or tab at beginning of list, indent or blockquote
|
|
2943
2942
|
key: z.keys.TAB,
|
|
@@ -2987,7 +2986,7 @@ var Sr = { exports: {} };
|
|
|
2987
2986
|
key: z.keys.TAB,
|
|
2988
2987
|
handler: function(U) {
|
|
2989
2988
|
this.quill.history.cutoff();
|
|
2990
|
-
var K = new
|
|
2989
|
+
var K = new l.default().retain(U.index).delete(U.length).insert(" ");
|
|
2991
2990
|
this.quill.updateContents(K, v.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(U.index + 1, v.default.sources.SILENT);
|
|
2992
2991
|
}
|
|
2993
2992
|
},
|
|
@@ -3005,9 +3004,9 @@ var Sr = { exports: {} };
|
|
|
3005
3004
|
collapsed: !0,
|
|
3006
3005
|
format: { list: "checked" },
|
|
3007
3006
|
handler: function(U) {
|
|
3008
|
-
var K = this.quill.getLine(U.index), G = _(K, 2), X = G[0], ne = G[1], ie = (0, t.default)({}, X.formats(), { list: "checked" }),
|
|
3007
|
+
var K = this.quill.getLine(U.index), G = _(K, 2), X = G[0], ne = G[1], ie = (0, t.default)({}, X.formats(), { list: "checked" }), ae = new l.default().retain(U.index).insert(`
|
|
3009
3008
|
`, ie).retain(X.length() - ne - 1).retain(1, { list: "unchecked" });
|
|
3010
|
-
this.quill.updateContents(
|
|
3009
|
+
this.quill.updateContents(ae, v.default.sources.USER), this.quill.setSelection(U.index + 1, v.default.sources.SILENT), this.quill.scrollIntoView();
|
|
3011
3010
|
}
|
|
3012
3011
|
},
|
|
3013
3012
|
"header enter": {
|
|
@@ -3016,9 +3015,9 @@ var Sr = { exports: {} };
|
|
|
3016
3015
|
format: ["header"],
|
|
3017
3016
|
suffix: /^$/,
|
|
3018
3017
|
handler: function(U, K) {
|
|
3019
|
-
var G = this.quill.getLine(U.index), X = _(G, 2), ne = X[0], ie = X[1],
|
|
3018
|
+
var G = this.quill.getLine(U.index), X = _(G, 2), ne = X[0], ie = X[1], ae = new l.default().retain(U.index).insert(`
|
|
3020
3019
|
`, K.format).retain(ne.length() - ie - 1).retain(1, { header: null });
|
|
3021
|
-
this.quill.updateContents(
|
|
3020
|
+
this.quill.updateContents(ae, v.default.sources.USER), this.quill.setSelection(U.index + 1, v.default.sources.SILENT), this.quill.scrollIntoView();
|
|
3022
3021
|
}
|
|
3023
3022
|
},
|
|
3024
3023
|
"list autofill": {
|
|
@@ -3027,8 +3026,8 @@ var Sr = { exports: {} };
|
|
|
3027
3026
|
format: { list: !1 },
|
|
3028
3027
|
prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
|
|
3029
3028
|
handler: function(U, K) {
|
|
3030
|
-
var G = K.prefix.length, X = this.quill.getLine(U.index), ne = _(X, 2), ie = ne[0],
|
|
3031
|
-
if (
|
|
3029
|
+
var G = K.prefix.length, X = this.quill.getLine(U.index), ne = _(X, 2), ie = ne[0], ae = ne[1];
|
|
3030
|
+
if (ae > G)
|
|
3032
3031
|
return !0;
|
|
3033
3032
|
var fe = void 0;
|
|
3034
3033
|
switch (K.prefix.trim()) {
|
|
@@ -3047,7 +3046,7 @@ var Sr = { exports: {} };
|
|
|
3047
3046
|
fe = "ordered";
|
|
3048
3047
|
}
|
|
3049
3048
|
this.quill.insertText(U.index, " ", v.default.sources.USER), this.quill.history.cutoff();
|
|
3050
|
-
var he = new
|
|
3049
|
+
var he = new l.default().retain(U.index - ae).delete(G + 1).retain(ie.length() - 2 - ae).retain(1, { list: fe });
|
|
3051
3050
|
this.quill.updateContents(he, v.default.sources.USER), this.quill.history.cutoff(), this.quill.setSelection(U.index - G, v.default.sources.SILENT);
|
|
3052
3051
|
}
|
|
3053
3052
|
},
|
|
@@ -3058,7 +3057,7 @@ var Sr = { exports: {} };
|
|
|
3058
3057
|
prefix: /\n\n$/,
|
|
3059
3058
|
suffix: /^\s+$/,
|
|
3060
3059
|
handler: function(U) {
|
|
3061
|
-
var K = this.quill.getLine(U.index), G = _(K, 2), X = G[0], ne = G[1], ie = new
|
|
3060
|
+
var K = this.quill.getLine(U.index), G = _(K, 2), X = G[0], ne = G[1], ie = new l.default().retain(U.index + X.length() - ne - 2).retain(1, { "code-block": null }).delete(1);
|
|
3062
3061
|
this.quill.updateContents(ie, v.default.sources.USER);
|
|
3063
3062
|
}
|
|
3064
3063
|
},
|
|
@@ -3077,7 +3076,7 @@ var Sr = { exports: {} };
|
|
|
3077
3076
|
}, y(K, G, /^$/), y(K, "handler", function(ne) {
|
|
3078
3077
|
var ie = ne.index;
|
|
3079
3078
|
R === z.keys.RIGHT && (ie += ne.length + 1);
|
|
3080
|
-
var
|
|
3079
|
+
var ae = this.quill.getLeaf(ie), fe = _(ae, 1), he = fe[0];
|
|
3081
3080
|
return he instanceof h.default.Embed ? (R === z.keys.LEFT ? U ? this.quill.setSelection(ne.index - 1, ne.length + 1, v.default.sources.USER) : this.quill.setSelection(ne.index - 1, v.default.sources.USER) : U ? this.quill.setSelection(ne.index, ne.length + 1, v.default.sources.USER) : this.quill.setSelection(ne.index + ne.length + 1, v.default.sources.USER), !1) : !0;
|
|
3082
3081
|
}), K;
|
|
3083
3082
|
}
|
|
@@ -3085,7 +3084,7 @@ var Sr = { exports: {} };
|
|
|
3085
3084
|
if (!(R.index === 0 || this.quill.getLength() <= 1)) {
|
|
3086
3085
|
var K = this.quill.getLine(R.index), G = _(K, 1), X = G[0], ne = {};
|
|
3087
3086
|
if (U.offset === 0) {
|
|
3088
|
-
var ie = this.quill.getLine(R.index - 1),
|
|
3087
|
+
var ie = this.quill.getLine(R.index - 1), ae = _(ie, 1), fe = ae[0];
|
|
3089
3088
|
if (fe != null && fe.length() > 1) {
|
|
3090
3089
|
var he = X.formats(), be = this.quill.getFormat(R.index - 1, 1);
|
|
3091
3090
|
ne = r.default.attributes.diff(he, be) || {};
|
|
@@ -3098,11 +3097,11 @@ var Sr = { exports: {} };
|
|
|
3098
3097
|
function I(R, U) {
|
|
3099
3098
|
var K = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(U.suffix) ? 2 : 1;
|
|
3100
3099
|
if (!(R.index >= this.quill.getLength() - K)) {
|
|
3101
|
-
var G = {}, X = 0, ne = this.quill.getLine(R.index), ie = _(ne, 1),
|
|
3102
|
-
if (U.offset >=
|
|
3100
|
+
var G = {}, X = 0, ne = this.quill.getLine(R.index), ie = _(ne, 1), ae = ie[0];
|
|
3101
|
+
if (U.offset >= ae.length() - 1) {
|
|
3103
3102
|
var fe = this.quill.getLine(R.index + 1), he = _(fe, 1), be = he[0];
|
|
3104
3103
|
if (be) {
|
|
3105
|
-
var ge =
|
|
3104
|
+
var ge = ae.formats(), W = this.quill.getFormat(R.index, 1);
|
|
3106
3105
|
G = r.default.attributes.diff(ge, W) || {}, X = be.length();
|
|
3107
3106
|
}
|
|
3108
3107
|
}
|
|
@@ -3134,7 +3133,7 @@ var Sr = { exports: {} };
|
|
|
3134
3133
|
shiftKey: !R,
|
|
3135
3134
|
format: { "code-block": !0 },
|
|
3136
3135
|
handler: function(K) {
|
|
3137
|
-
var G = h.default.query("code-block"), X = K.index, ne = K.length, ie = this.quill.scroll.descendant(G, X),
|
|
3136
|
+
var G = h.default.query("code-block"), X = K.index, ne = K.length, ie = this.quill.scroll.descendant(G, X), ae = _(ie, 2), fe = ae[0], he = ae[1];
|
|
3138
3137
|
if (fe != null) {
|
|
3139
3138
|
var be = this.quill.getIndex(fe), ge = fe.newlineIndex(he, !0) + 1, W = fe.newlineIndex(be + he + ne), Y = fe.domNode.textContent.slice(ge, W).split(`
|
|
3140
3139
|
`);
|
|
@@ -3145,7 +3144,7 @@ var Sr = { exports: {} };
|
|
|
3145
3144
|
}
|
|
3146
3145
|
};
|
|
3147
3146
|
}
|
|
3148
|
-
function
|
|
3147
|
+
function V(R) {
|
|
3149
3148
|
return {
|
|
3150
3149
|
key: R[0].toUpperCase(),
|
|
3151
3150
|
shortKey: !0,
|
|
@@ -3164,9 +3163,9 @@ var Sr = { exports: {} };
|
|
|
3164
3163
|
R.key = R.key.toUpperCase().charCodeAt(0);
|
|
3165
3164
|
else
|
|
3166
3165
|
return null;
|
|
3167
|
-
return R.shortKey && (R[
|
|
3166
|
+
return R.shortKey && (R[$] = R.shortKey, delete R.shortKey), R;
|
|
3168
3167
|
}
|
|
3169
|
-
p.default = z, p.SHORTKEY =
|
|
3168
|
+
p.default = z, p.SHORTKEY = $;
|
|
3170
3169
|
},
|
|
3171
3170
|
/* 24 */
|
|
3172
3171
|
/***/
|
|
@@ -3229,25 +3228,25 @@ var Sr = { exports: {} };
|
|
|
3229
3228
|
if (!(r instanceof i))
|
|
3230
3229
|
throw new TypeError("Cannot call a class as a function");
|
|
3231
3230
|
}
|
|
3232
|
-
function
|
|
3231
|
+
function a(r, i) {
|
|
3233
3232
|
if (!r)
|
|
3234
3233
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3235
3234
|
return i && (typeof i == "object" || typeof i == "function") ? i : r;
|
|
3236
3235
|
}
|
|
3237
|
-
function
|
|
3236
|
+
function l(r, i) {
|
|
3238
3237
|
if (typeof i != "function" && i !== null)
|
|
3239
3238
|
throw new TypeError("Super expression must either be null or a function, not " + typeof i);
|
|
3240
3239
|
r.prototype = Object.create(i && i.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), i && (Object.setPrototypeOf ? Object.setPrototypeOf(r, i) : r.__proto__ = i);
|
|
3241
3240
|
}
|
|
3242
3241
|
var s = function(r) {
|
|
3243
|
-
|
|
3242
|
+
l(i, r), O(i, null, [{
|
|
3244
3243
|
key: "value",
|
|
3245
3244
|
value: function() {
|
|
3246
3245
|
}
|
|
3247
3246
|
}]);
|
|
3248
3247
|
function i(h, n) {
|
|
3249
3248
|
t(this, i);
|
|
3250
|
-
var v =
|
|
3249
|
+
var v = a(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this, h));
|
|
3251
3250
|
return v.selection = n, v.textNode = document.createTextNode(i.CONTENTS), v.domNode.appendChild(v.textNode), v._length = 0, v;
|
|
3252
3251
|
}
|
|
3253
3252
|
return O(i, [{
|
|
@@ -3339,29 +3338,29 @@ var Sr = { exports: {} };
|
|
|
3339
3338
|
value: !0
|
|
3340
3339
|
});
|
|
3341
3340
|
var E = f(0), _ = b(E), O = f(4), g = b(O);
|
|
3342
|
-
function b(
|
|
3343
|
-
return
|
|
3341
|
+
function b(a) {
|
|
3342
|
+
return a && a.__esModule ? a : { default: a };
|
|
3344
3343
|
}
|
|
3345
|
-
function d(
|
|
3346
|
-
if (!(
|
|
3344
|
+
function d(a, l) {
|
|
3345
|
+
if (!(a instanceof l))
|
|
3347
3346
|
throw new TypeError("Cannot call a class as a function");
|
|
3348
3347
|
}
|
|
3349
|
-
function o(
|
|
3350
|
-
if (!
|
|
3348
|
+
function o(a, l) {
|
|
3349
|
+
if (!a)
|
|
3351
3350
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3352
|
-
return
|
|
3351
|
+
return l && (typeof l == "object" || typeof l == "function") ? l : a;
|
|
3353
3352
|
}
|
|
3354
|
-
function e(
|
|
3355
|
-
if (typeof
|
|
3356
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
3357
|
-
|
|
3353
|
+
function e(a, l) {
|
|
3354
|
+
if (typeof l != "function" && l !== null)
|
|
3355
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof l);
|
|
3356
|
+
a.prototype = Object.create(l && l.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), l && (Object.setPrototypeOf ? Object.setPrototypeOf(a, l) : a.__proto__ = l);
|
|
3358
3357
|
}
|
|
3359
|
-
var t = function(
|
|
3360
|
-
e(
|
|
3361
|
-
function
|
|
3362
|
-
return d(this,
|
|
3358
|
+
var t = function(a) {
|
|
3359
|
+
e(l, a);
|
|
3360
|
+
function l() {
|
|
3361
|
+
return d(this, l), o(this, (l.__proto__ || Object.getPrototypeOf(l)).apply(this, arguments));
|
|
3363
3362
|
}
|
|
3364
|
-
return
|
|
3363
|
+
return l;
|
|
3365
3364
|
}(_.default.Container);
|
|
3366
3365
|
t.allowedChildren = [g.default, O.BlockEmbed, t], p.default = t;
|
|
3367
3366
|
},
|
|
@@ -3425,12 +3424,12 @@ var Sr = { exports: {} };
|
|
|
3425
3424
|
}).join("")) : n;
|
|
3426
3425
|
}
|
|
3427
3426
|
}]), r;
|
|
3428
|
-
}(g.default.Attributor.Style),
|
|
3427
|
+
}(g.default.Attributor.Style), a = new g.default.Attributor.Class("color", "ql-color", {
|
|
3429
3428
|
scope: g.default.Scope.INLINE
|
|
3430
|
-
}),
|
|
3429
|
+
}), l = new t("color", "color", {
|
|
3431
3430
|
scope: g.default.Scope.INLINE
|
|
3432
3431
|
});
|
|
3433
|
-
p.ColorAttributor = t, p.ColorClass =
|
|
3432
|
+
p.ColorAttributor = t, p.ColorClass = a, p.ColorStyle = l;
|
|
3434
3433
|
},
|
|
3435
3434
|
/* 27 */
|
|
3436
3435
|
/***/
|
|
@@ -3439,21 +3438,21 @@ var Sr = { exports: {} };
|
|
|
3439
3438
|
value: !0
|
|
3440
3439
|
}), p.sanitize = p.default = void 0;
|
|
3441
3440
|
var E = function() {
|
|
3442
|
-
function
|
|
3441
|
+
function l(s, r) {
|
|
3443
3442
|
for (var i = 0; i < r.length; i++) {
|
|
3444
3443
|
var h = r[i];
|
|
3445
3444
|
h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(s, h.key, h);
|
|
3446
3445
|
}
|
|
3447
3446
|
}
|
|
3448
3447
|
return function(s, r, i) {
|
|
3449
|
-
return r &&
|
|
3448
|
+
return r && l(s.prototype, r), i && l(s, i), s;
|
|
3450
3449
|
};
|
|
3451
|
-
}(), _ = function
|
|
3450
|
+
}(), _ = function l(s, r, i) {
|
|
3452
3451
|
s === null && (s = Function.prototype);
|
|
3453
3452
|
var h = Object.getOwnPropertyDescriptor(s, r);
|
|
3454
3453
|
if (h === void 0) {
|
|
3455
3454
|
var n = Object.getPrototypeOf(s);
|
|
3456
|
-
return n === null ? void 0 :
|
|
3455
|
+
return n === null ? void 0 : l(n, r, i);
|
|
3457
3456
|
} else {
|
|
3458
3457
|
if ("value" in h)
|
|
3459
3458
|
return h.value;
|
|
@@ -3461,25 +3460,25 @@ var Sr = { exports: {} };
|
|
|
3461
3460
|
return v === void 0 ? void 0 : v.call(i);
|
|
3462
3461
|
}
|
|
3463
3462
|
}, O = f(6), g = b(O);
|
|
3464
|
-
function b(
|
|
3465
|
-
return
|
|
3463
|
+
function b(l) {
|
|
3464
|
+
return l && l.__esModule ? l : { default: l };
|
|
3466
3465
|
}
|
|
3467
|
-
function d(
|
|
3468
|
-
if (!(
|
|
3466
|
+
function d(l, s) {
|
|
3467
|
+
if (!(l instanceof s))
|
|
3469
3468
|
throw new TypeError("Cannot call a class as a function");
|
|
3470
3469
|
}
|
|
3471
|
-
function o(
|
|
3472
|
-
if (!
|
|
3470
|
+
function o(l, s) {
|
|
3471
|
+
if (!l)
|
|
3473
3472
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3474
|
-
return s && (typeof s == "object" || typeof s == "function") ? s :
|
|
3473
|
+
return s && (typeof s == "object" || typeof s == "function") ? s : l;
|
|
3475
3474
|
}
|
|
3476
|
-
function e(
|
|
3475
|
+
function e(l, s) {
|
|
3477
3476
|
if (typeof s != "function" && s !== null)
|
|
3478
3477
|
throw new TypeError("Super expression must either be null or a function, not " + typeof s);
|
|
3479
|
-
|
|
3478
|
+
l.prototype = Object.create(s && s.prototype, { constructor: { value: l, enumerable: !1, writable: !0, configurable: !0 } }), s && (Object.setPrototypeOf ? Object.setPrototypeOf(l, s) : l.__proto__ = s);
|
|
3480
3479
|
}
|
|
3481
|
-
var t = function(
|
|
3482
|
-
e(s,
|
|
3480
|
+
var t = function(l) {
|
|
3481
|
+
e(s, l);
|
|
3483
3482
|
function s() {
|
|
3484
3483
|
return d(this, s), o(this, (s.__proto__ || Object.getPrototypeOf(s)).apply(this, arguments));
|
|
3485
3484
|
}
|
|
@@ -3504,18 +3503,18 @@ var Sr = { exports: {} };
|
|
|
3504
3503
|
}, {
|
|
3505
3504
|
key: "sanitize",
|
|
3506
3505
|
value: function(i) {
|
|
3507
|
-
return
|
|
3506
|
+
return a(i, this.PROTOCOL_WHITELIST) ? i : this.SANITIZED_URL;
|
|
3508
3507
|
}
|
|
3509
3508
|
}]), s;
|
|
3510
3509
|
}(g.default);
|
|
3511
3510
|
t.blotName = "link", t.tagName = "A", t.SANITIZED_URL = "about:blank", t.PROTOCOL_WHITELIST = ["http", "https", "mailto", "tel"];
|
|
3512
|
-
function l
|
|
3511
|
+
function a(l, s) {
|
|
3513
3512
|
var r = document.createElement("a");
|
|
3514
|
-
r.href =
|
|
3513
|
+
r.href = l;
|
|
3515
3514
|
var i = r.href.slice(0, r.href.indexOf(":"));
|
|
3516
3515
|
return s.indexOf(i) > -1;
|
|
3517
3516
|
}
|
|
3518
|
-
p.default = t, p.sanitize =
|
|
3517
|
+
p.default = t, p.sanitize = a;
|
|
3519
3518
|
},
|
|
3520
3519
|
/* 28 */
|
|
3521
3520
|
/***/
|
|
@@ -3546,10 +3545,10 @@ var Sr = { exports: {} };
|
|
|
3546
3545
|
throw new TypeError("Cannot call a class as a function");
|
|
3547
3546
|
}
|
|
3548
3547
|
var t = 0;
|
|
3549
|
-
function
|
|
3548
|
+
function a(s, r) {
|
|
3550
3549
|
s.setAttribute(r, s.getAttribute(r) !== "true");
|
|
3551
3550
|
}
|
|
3552
|
-
var
|
|
3551
|
+
var l = function() {
|
|
3553
3552
|
function s(r) {
|
|
3554
3553
|
var i = this;
|
|
3555
3554
|
e(this, s), this.select = r, this.container = document.createElement("span"), this.buildPicker(), this.select.style.display = "none", this.select.parentNode.insertBefore(this.container, this.select), this.label.addEventListener("mousedown", function() {
|
|
@@ -3568,7 +3567,7 @@ var Sr = { exports: {} };
|
|
|
3568
3567
|
return _(s, [{
|
|
3569
3568
|
key: "togglePicker",
|
|
3570
3569
|
value: function() {
|
|
3571
|
-
this.container.classList.toggle("ql-expanded"),
|
|
3570
|
+
this.container.classList.toggle("ql-expanded"), a(this.label, "aria-expanded"), a(this.options, "aria-hidden");
|
|
3572
3571
|
}
|
|
3573
3572
|
}, {
|
|
3574
3573
|
key: "buildItem",
|
|
@@ -3651,7 +3650,7 @@ var Sr = { exports: {} };
|
|
|
3651
3650
|
}
|
|
3652
3651
|
}]), s;
|
|
3653
3652
|
}();
|
|
3654
|
-
p.default =
|
|
3653
|
+
p.default = l;
|
|
3655
3654
|
},
|
|
3656
3655
|
/* 29 */
|
|
3657
3656
|
/***/
|
|
@@ -3659,15 +3658,15 @@ var Sr = { exports: {} };
|
|
|
3659
3658
|
Object.defineProperty(p, "__esModule", {
|
|
3660
3659
|
value: !0
|
|
3661
3660
|
});
|
|
3662
|
-
var E = f(0), _ = B(E), O = f(5), g = B(O), b = f(4), d = B(b), o = f(16), e = B(o), t = f(25),
|
|
3663
|
-
function B(
|
|
3664
|
-
return
|
|
3661
|
+
var E = f(0), _ = B(E), O = f(5), g = B(O), b = f(4), d = B(b), o = f(16), e = B(o), t = f(25), a = B(t), l = f(24), s = B(l), r = f(35), i = B(r), h = f(6), n = B(h), v = f(22), k = B(v), T = f(7), S = B(T), L = f(55), A = B(L), y = f(42), w = B(y), N = f(23), q = B(N);
|
|
3662
|
+
function B($) {
|
|
3663
|
+
return $ && $.__esModule ? $ : { default: $ };
|
|
3665
3664
|
}
|
|
3666
3665
|
g.default.register({
|
|
3667
3666
|
"blots/block": d.default,
|
|
3668
3667
|
"blots/block/embed": b.BlockEmbed,
|
|
3669
3668
|
"blots/break": e.default,
|
|
3670
|
-
"blots/container":
|
|
3669
|
+
"blots/container": a.default,
|
|
3671
3670
|
"blots/cursor": s.default,
|
|
3672
3671
|
"blots/embed": i.default,
|
|
3673
3672
|
"blots/inline": n.default,
|
|
@@ -3767,16 +3766,16 @@ var Sr = { exports: {} };
|
|
|
3767
3766
|
}, d.prototype.build = function() {
|
|
3768
3767
|
var o = this;
|
|
3769
3768
|
this.attributes = {};
|
|
3770
|
-
var e = E.default.keys(this.domNode), t = _.default.keys(this.domNode),
|
|
3771
|
-
e.concat(t).concat(
|
|
3772
|
-
var s = g.query(
|
|
3769
|
+
var e = E.default.keys(this.domNode), t = _.default.keys(this.domNode), a = O.default.keys(this.domNode);
|
|
3770
|
+
e.concat(t).concat(a).forEach(function(l) {
|
|
3771
|
+
var s = g.query(l, g.Scope.ATTRIBUTE);
|
|
3773
3772
|
s instanceof E.default && (o.attributes[s.attrName] = s);
|
|
3774
3773
|
});
|
|
3775
3774
|
}, d.prototype.copy = function(o) {
|
|
3776
3775
|
var e = this;
|
|
3777
3776
|
Object.keys(this.attributes).forEach(function(t) {
|
|
3778
|
-
var
|
|
3779
|
-
o.format(t,
|
|
3777
|
+
var a = e.attributes[t].value(e.domNode);
|
|
3778
|
+
o.format(t, a);
|
|
3780
3779
|
});
|
|
3781
3780
|
}, d.prototype.move = function(o) {
|
|
3782
3781
|
var e = this;
|
|
@@ -3983,19 +3982,19 @@ var Sr = { exports: {} };
|
|
|
3983
3982
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3984
3983
|
return i && (typeof i == "object" || typeof i == "function") ? i : r;
|
|
3985
3984
|
}
|
|
3986
|
-
function
|
|
3985
|
+
function a(r, i) {
|
|
3987
3986
|
if (typeof i != "function" && i !== null)
|
|
3988
3987
|
throw new TypeError("Super expression must either be null or a function, not " + typeof i);
|
|
3989
3988
|
r.prototype = Object.create(i && i.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), i && (Object.setPrototypeOf ? Object.setPrototypeOf(r, i) : r.__proto__ = i);
|
|
3990
3989
|
}
|
|
3991
|
-
var
|
|
3992
|
-
|
|
3990
|
+
var l = "\uFEFF", s = function(r) {
|
|
3991
|
+
a(i, r);
|
|
3993
3992
|
function i(h) {
|
|
3994
3993
|
e(this, i);
|
|
3995
3994
|
var n = t(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this, h));
|
|
3996
3995
|
return n.contentNode = document.createElement("span"), n.contentNode.setAttribute("contenteditable", !1), [].slice.call(n.domNode.childNodes).forEach(function(v) {
|
|
3997
3996
|
n.contentNode.appendChild(v);
|
|
3998
|
-
}), n.leftGuard = document.createTextNode(
|
|
3997
|
+
}), n.leftGuard = document.createTextNode(l), n.rightGuard = document.createTextNode(l), n.domNode.appendChild(n.leftGuard), n.domNode.appendChild(n.contentNode), n.domNode.appendChild(n.rightGuard), n;
|
|
3999
3998
|
}
|
|
4000
3999
|
return E(i, [{
|
|
4001
4000
|
key: "index",
|
|
@@ -4005,7 +4004,7 @@ var Sr = { exports: {} };
|
|
|
4005
4004
|
}, {
|
|
4006
4005
|
key: "restore",
|
|
4007
4006
|
value: function(n) {
|
|
4008
|
-
var v = void 0, k = void 0, T = n.data.split(
|
|
4007
|
+
var v = void 0, k = void 0, T = n.data.split(l).join("");
|
|
4009
4008
|
if (n === this.leftGuard)
|
|
4010
4009
|
if (this.prev instanceof d.default) {
|
|
4011
4010
|
var S = this.prev.length();
|
|
@@ -4026,7 +4025,7 @@ var Sr = { exports: {} };
|
|
|
4026
4025
|
startNode: k,
|
|
4027
4026
|
startOffset: T.length
|
|
4028
4027
|
}));
|
|
4029
|
-
return n.data =
|
|
4028
|
+
return n.data = l, v;
|
|
4030
4029
|
}
|
|
4031
4030
|
}, {
|
|
4032
4031
|
key: "update",
|
|
@@ -4141,7 +4140,7 @@ var Sr = { exports: {} };
|
|
|
4141
4140
|
var t = {
|
|
4142
4141
|
scope: g.default.Scope.INLINE,
|
|
4143
4142
|
whitelist: ["serif", "monospace"]
|
|
4144
|
-
},
|
|
4143
|
+
}, a = new g.default.Attributor.Class("font", "ql-font", t), l = function(r) {
|
|
4145
4144
|
e(i, r);
|
|
4146
4145
|
function i() {
|
|
4147
4146
|
return d(this, i), o(this, (i.__proto__ || Object.getPrototypeOf(i)).apply(this, arguments));
|
|
@@ -4152,8 +4151,8 @@ var Sr = { exports: {} };
|
|
|
4152
4151
|
return _(i.prototype.__proto__ || Object.getPrototypeOf(i.prototype), "value", this).call(this, n).replace(/["']/g, "");
|
|
4153
4152
|
}
|
|
4154
4153
|
}]), i;
|
|
4155
|
-
}(g.default.Attributor.Style), s = new
|
|
4156
|
-
p.FontStyle = s, p.FontClass =
|
|
4154
|
+
}(g.default.Attributor.Style), s = new l("font", "font-family", t);
|
|
4155
|
+
p.FontStyle = s, p.FontClass = a;
|
|
4157
4156
|
},
|
|
4158
4157
|
/* 40 */
|
|
4159
4158
|
/***/
|
|
@@ -4251,21 +4250,21 @@ var Sr = { exports: {} };
|
|
|
4251
4250
|
if (!(h instanceof n))
|
|
4252
4251
|
throw new TypeError("Cannot call a class as a function");
|
|
4253
4252
|
}
|
|
4254
|
-
function
|
|
4253
|
+
function a(h, n) {
|
|
4255
4254
|
if (!h)
|
|
4256
4255
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4257
4256
|
return n && (typeof n == "object" || typeof n == "function") ? n : h;
|
|
4258
4257
|
}
|
|
4259
|
-
function
|
|
4258
|
+
function l(h, n) {
|
|
4260
4259
|
if (typeof n != "function" && n !== null)
|
|
4261
4260
|
throw new TypeError("Super expression must either be null or a function, not " + typeof n);
|
|
4262
4261
|
h.prototype = Object.create(n && n.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), n && (Object.setPrototypeOf ? Object.setPrototypeOf(h, n) : h.__proto__ = n);
|
|
4263
4262
|
}
|
|
4264
4263
|
var s = function(h) {
|
|
4265
|
-
|
|
4264
|
+
l(n, h);
|
|
4266
4265
|
function n(v, k) {
|
|
4267
4266
|
t(this, n);
|
|
4268
|
-
var T =
|
|
4267
|
+
var T = a(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, v, k));
|
|
4269
4268
|
return T.lastRecorded = 0, T.ignoreChange = !1, T.clear(), T.quill.on(b.default.events.EDITOR_CHANGE, function(S, L, A, y) {
|
|
4270
4269
|
S !== b.default.events.TEXT_CHANGE || T.ignoreChange || (!T.options.userOnly || y === b.default.sources.USER ? T.record(L, A) : T.transform(L));
|
|
4271
4270
|
}), T.quill.keyboard.addBinding({ key: "Z", shortKey: !0 }, T.undo.bind(T)), T.quill.keyboard.addBinding({ key: "Z", shortKey: !0, shiftKey: !0 }, T.redo.bind(T)), /Win/i.test(navigator.platform) && T.quill.keyboard.addBinding({ key: "Y", shortKey: !0 }, T.redo.bind(T)), T;
|
|
@@ -4355,28 +4354,28 @@ var Sr = { exports: {} };
|
|
|
4355
4354
|
value: !0
|
|
4356
4355
|
}), p.default = p.BaseTooltip = void 0;
|
|
4357
4356
|
var E = function() {
|
|
4358
|
-
function M(D,
|
|
4359
|
-
for (var F = 0; F <
|
|
4360
|
-
var R =
|
|
4357
|
+
function M(D, V) {
|
|
4358
|
+
for (var F = 0; F < V.length; F++) {
|
|
4359
|
+
var R = V[F];
|
|
4361
4360
|
R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(D, R.key, R);
|
|
4362
4361
|
}
|
|
4363
4362
|
}
|
|
4364
|
-
return function(D,
|
|
4365
|
-
return
|
|
4363
|
+
return function(D, V, F) {
|
|
4364
|
+
return V && M(D.prototype, V), F && M(D, F), D;
|
|
4366
4365
|
};
|
|
4367
|
-
}(), _ = function M(D,
|
|
4366
|
+
}(), _ = function M(D, V, F) {
|
|
4368
4367
|
D === null && (D = Function.prototype);
|
|
4369
|
-
var R = Object.getOwnPropertyDescriptor(D,
|
|
4368
|
+
var R = Object.getOwnPropertyDescriptor(D, V);
|
|
4370
4369
|
if (R === void 0) {
|
|
4371
4370
|
var U = Object.getPrototypeOf(D);
|
|
4372
|
-
return U === null ? void 0 : M(U,
|
|
4371
|
+
return U === null ? void 0 : M(U, V, F);
|
|
4373
4372
|
} else {
|
|
4374
4373
|
if ("value" in R)
|
|
4375
4374
|
return R.value;
|
|
4376
4375
|
var K = R.get;
|
|
4377
4376
|
return K === void 0 ? void 0 : K.call(F);
|
|
4378
4377
|
}
|
|
4379
|
-
}, O = f(3), g = L(O), b = f(2), d = L(b), o = f(8), e = L(o), t = f(23),
|
|
4378
|
+
}, O = f(3), g = L(O), b = f(2), d = L(b), o = f(8), e = L(o), t = f(23), a = L(t), l = f(34), s = L(l), r = f(59), i = L(r), h = f(60), n = L(h), v = f(28), k = L(v), T = f(61), S = L(T);
|
|
4380
4379
|
function L(M) {
|
|
4381
4380
|
return M && M.__esModule ? M : { default: M };
|
|
4382
4381
|
}
|
|
@@ -4394,18 +4393,18 @@ var Sr = { exports: {} };
|
|
|
4394
4393
|
throw new TypeError("Super expression must either be null or a function, not " + typeof D);
|
|
4395
4394
|
M.prototype = Object.create(D && D.prototype, { constructor: { value: M, enumerable: !1, writable: !0, configurable: !0 } }), D && (Object.setPrototypeOf ? Object.setPrototypeOf(M, D) : M.__proto__ = D);
|
|
4396
4395
|
}
|
|
4397
|
-
var N = [!1, "center", "right", "justify"], q = ["#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"], B = [!1, "serif", "monospace"],
|
|
4396
|
+
var N = [!1, "center", "right", "justify"], q = ["#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"], B = [!1, "serif", "monospace"], $ = ["1", "2", "3", !1], z = ["small", !1, "large", "huge"], J = function(M) {
|
|
4398
4397
|
w(D, M);
|
|
4399
|
-
function D(
|
|
4398
|
+
function D(V, F) {
|
|
4400
4399
|
A(this, D);
|
|
4401
|
-
var R = y(this, (D.__proto__ || Object.getPrototypeOf(D)).call(this,
|
|
4402
|
-
if (!document.body.contains(
|
|
4400
|
+
var R = y(this, (D.__proto__ || Object.getPrototypeOf(D)).call(this, V, F)), U = function K(G) {
|
|
4401
|
+
if (!document.body.contains(V.root))
|
|
4403
4402
|
return document.body.removeEventListener("click", K);
|
|
4404
4403
|
R.tooltip != null && !R.tooltip.root.contains(G.target) && document.activeElement !== R.tooltip.textbox && !R.quill.hasFocus() && R.tooltip.hide(), R.pickers != null && R.pickers.forEach(function(X) {
|
|
4405
4404
|
X.container.contains(G.target) || X.close();
|
|
4406
4405
|
});
|
|
4407
4406
|
};
|
|
4408
|
-
return
|
|
4407
|
+
return V.emitter.listenDOM("click", document.body, U), R;
|
|
4409
4408
|
}
|
|
4410
4409
|
return E(D, [{
|
|
4411
4410
|
key: "addModule",
|
|
@@ -4442,7 +4441,7 @@ var Sr = { exports: {} };
|
|
|
4442
4441
|
var X = G.classList.contains("ql-background") ? "background" : "color";
|
|
4443
4442
|
return G.querySelector("option") == null && P(G, q, X === "background" ? "#ffffff" : "#000000"), new i.default(G, R[X]);
|
|
4444
4443
|
} else
|
|
4445
|
-
return G.querySelector("option") == null && (G.classList.contains("ql-font") ? P(G, B) : G.classList.contains("ql-header") ? P(G,
|
|
4444
|
+
return G.querySelector("option") == null && (G.classList.contains("ql-font") ? P(G, B) : G.classList.contains("ql-header") ? P(G, $) : G.classList.contains("ql-size") && P(G, z)), new k.default(G);
|
|
4446
4445
|
});
|
|
4447
4446
|
var K = function() {
|
|
4448
4447
|
U.pickers.forEach(function(X) {
|
|
@@ -4461,16 +4460,16 @@ var Sr = { exports: {} };
|
|
|
4461
4460
|
this.quill.theme.tooltip.edit("formula");
|
|
4462
4461
|
},
|
|
4463
4462
|
image: function() {
|
|
4464
|
-
var D = this,
|
|
4465
|
-
|
|
4466
|
-
if (
|
|
4463
|
+
var D = this, V = this.container.querySelector("input.ql-image[type=file]");
|
|
4464
|
+
V == null && (V = document.createElement("input"), V.setAttribute("type", "file"), V.setAttribute("accept", "image/png, image/gif, image/jpeg, image/bmp, image/x-icon"), V.classList.add("ql-image"), V.addEventListener("change", function() {
|
|
4465
|
+
if (V.files != null && V.files[0] != null) {
|
|
4467
4466
|
var F = new FileReader();
|
|
4468
4467
|
F.onload = function(R) {
|
|
4469
4468
|
var U = D.quill.getSelection(!0);
|
|
4470
|
-
D.quill.updateContents(new d.default().retain(U.index).delete(U.length).insert({ image: R.target.result }), e.default.sources.USER), D.quill.setSelection(U.index + 1, e.default.sources.SILENT),
|
|
4471
|
-
}, F.readAsDataURL(
|
|
4469
|
+
D.quill.updateContents(new d.default().retain(U.index).delete(U.length).insert({ image: R.target.result }), e.default.sources.USER), D.quill.setSelection(U.index + 1, e.default.sources.SILENT), V.value = "";
|
|
4470
|
+
}, F.readAsDataURL(V.files[0]);
|
|
4472
4471
|
}
|
|
4473
|
-
}), this.container.appendChild(
|
|
4472
|
+
}), this.container.appendChild(V)), V.click();
|
|
4474
4473
|
},
|
|
4475
4474
|
video: function() {
|
|
4476
4475
|
this.quill.theme.tooltip.edit("video");
|
|
@@ -4481,9 +4480,9 @@ var Sr = { exports: {} };
|
|
|
4481
4480
|
});
|
|
4482
4481
|
var H = function(M) {
|
|
4483
4482
|
w(D, M);
|
|
4484
|
-
function D(
|
|
4483
|
+
function D(V, F) {
|
|
4485
4484
|
A(this, D);
|
|
4486
|
-
var R = y(this, (D.__proto__ || Object.getPrototypeOf(D)).call(this,
|
|
4485
|
+
var R = y(this, (D.__proto__ || Object.getPrototypeOf(D)).call(this, V, F));
|
|
4487
4486
|
return R.textbox = R.root.querySelector('input[type="text"]'), R.listen(), R;
|
|
4488
4487
|
}
|
|
4489
4488
|
return E(D, [{
|
|
@@ -4491,7 +4490,7 @@ var Sr = { exports: {} };
|
|
|
4491
4490
|
value: function() {
|
|
4492
4491
|
var F = this;
|
|
4493
4492
|
this.textbox.addEventListener("keydown", function(R) {
|
|
4494
|
-
|
|
4493
|
+
a.default.match(R, "enter") ? (F.save(), R.preventDefault()) : a.default.match(R, "escape") && (F.cancel(), R.preventDefault());
|
|
4495
4494
|
});
|
|
4496
4495
|
}
|
|
4497
4496
|
}, {
|
|
@@ -4543,10 +4542,10 @@ var Sr = { exports: {} };
|
|
|
4543
4542
|
return D ? (D[1] || "https") + "://www.youtube.com/embed/" + D[2] + "?showinfo=0" : (D = M.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? (D[1] || "https") + "://player.vimeo.com/video/" + D[2] + "/" : M;
|
|
4544
4543
|
}
|
|
4545
4544
|
function P(M, D) {
|
|
4546
|
-
var
|
|
4545
|
+
var V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
4547
4546
|
D.forEach(function(F) {
|
|
4548
4547
|
var R = document.createElement("option");
|
|
4549
|
-
F ===
|
|
4548
|
+
F === V ? R.setAttribute("selected", "selected") : R.setAttribute("value", F), M.appendChild(R);
|
|
4550
4549
|
});
|
|
4551
4550
|
}
|
|
4552
4551
|
p.BaseTooltip = H, p.default = J;
|
|
@@ -4600,9 +4599,9 @@ var Sr = { exports: {} };
|
|
|
4600
4599
|
O(g);
|
|
4601
4600
|
}, _.prototype.forEachAt = function(O, g, b) {
|
|
4602
4601
|
if (!(g <= 0))
|
|
4603
|
-
for (var d = this.find(O), o = d[0], e = d[1], t,
|
|
4602
|
+
for (var d = this.find(O), o = d[0], e = d[1], t, a = O - e, l = this.iterator(o); (t = l()) && a < O + g; ) {
|
|
4604
4603
|
var s = t.length();
|
|
4605
|
-
O >
|
|
4604
|
+
O > a ? b(t, O - a, Math.min(g, a + s - O)) : b(t, 0, Math.min(s, O + g - a)), a += s;
|
|
4606
4605
|
}
|
|
4607
4606
|
}, _.prototype.map = function(O) {
|
|
4608
4607
|
return this.reduce(function(g, b) {
|
|
@@ -4624,15 +4623,15 @@ var Sr = { exports: {} };
|
|
|
4624
4623
|
var o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
4625
4624
|
e.__proto__ = t;
|
|
4626
4625
|
} || function(e, t) {
|
|
4627
|
-
for (var
|
|
4628
|
-
t.hasOwnProperty(
|
|
4626
|
+
for (var a in t)
|
|
4627
|
+
t.hasOwnProperty(a) && (e[a] = t[a]);
|
|
4629
4628
|
};
|
|
4630
4629
|
return function(e, t) {
|
|
4631
4630
|
o(e, t);
|
|
4632
|
-
function
|
|
4631
|
+
function a() {
|
|
4633
4632
|
this.constructor = e;
|
|
4634
4633
|
}
|
|
4635
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
4634
|
+
e.prototype = t === null ? Object.create(t) : (a.prototype = t.prototype, new a());
|
|
4636
4635
|
};
|
|
4637
4636
|
}();
|
|
4638
4637
|
Object.defineProperty(p, "__esModule", { value: !0 });
|
|
@@ -4647,32 +4646,32 @@ var Sr = { exports: {} };
|
|
|
4647
4646
|
function(o) {
|
|
4648
4647
|
E(e, o);
|
|
4649
4648
|
function e(t) {
|
|
4650
|
-
var
|
|
4651
|
-
return
|
|
4652
|
-
|
|
4653
|
-
}),
|
|
4649
|
+
var a = o.call(this, t) || this;
|
|
4650
|
+
return a.scroll = a, a.observer = new MutationObserver(function(l) {
|
|
4651
|
+
a.update(l);
|
|
4652
|
+
}), a.observer.observe(a.domNode, g), a.attach(), a;
|
|
4654
4653
|
}
|
|
4655
4654
|
return e.prototype.detach = function() {
|
|
4656
4655
|
o.prototype.detach.call(this), this.observer.disconnect();
|
|
4657
|
-
}, e.prototype.deleteAt = function(t,
|
|
4658
|
-
this.update(), t === 0 &&
|
|
4659
|
-
|
|
4660
|
-
}) : o.prototype.deleteAt.call(this, t,
|
|
4661
|
-
}, e.prototype.formatAt = function(t,
|
|
4662
|
-
this.update(), o.prototype.formatAt.call(this, t,
|
|
4663
|
-
}, e.prototype.insertAt = function(t,
|
|
4664
|
-
this.update(), o.prototype.insertAt.call(this, t,
|
|
4665
|
-
}, e.prototype.optimize = function(t,
|
|
4666
|
-
var
|
|
4667
|
-
t === void 0 && (t = []),
|
|
4656
|
+
}, e.prototype.deleteAt = function(t, a) {
|
|
4657
|
+
this.update(), t === 0 && a === this.length() ? this.children.forEach(function(l) {
|
|
4658
|
+
l.remove();
|
|
4659
|
+
}) : o.prototype.deleteAt.call(this, t, a);
|
|
4660
|
+
}, e.prototype.formatAt = function(t, a, l, s) {
|
|
4661
|
+
this.update(), o.prototype.formatAt.call(this, t, a, l, s);
|
|
4662
|
+
}, e.prototype.insertAt = function(t, a, l) {
|
|
4663
|
+
this.update(), o.prototype.insertAt.call(this, t, a, l);
|
|
4664
|
+
}, e.prototype.optimize = function(t, a) {
|
|
4665
|
+
var l = this;
|
|
4666
|
+
t === void 0 && (t = []), a === void 0 && (a = {}), o.prototype.optimize.call(this, a);
|
|
4668
4667
|
for (var s = [].slice.call(this.observer.takeRecords()); s.length > 0; )
|
|
4669
4668
|
t.push(s.pop());
|
|
4670
4669
|
for (var r = function(v, k) {
|
|
4671
|
-
k === void 0 && (k = !0), !(v == null || v ===
|
|
4670
|
+
k === void 0 && (k = !0), !(v == null || v === l) && v.domNode.parentNode != null && (v.domNode[O.DATA_KEY].mutations == null && (v.domNode[O.DATA_KEY].mutations = []), k && r(v.parent));
|
|
4672
4671
|
}, i = function(v) {
|
|
4673
4672
|
// @ts-ignore
|
|
4674
4673
|
v.domNode[O.DATA_KEY] == null || // @ts-ignore
|
|
4675
|
-
v.domNode[O.DATA_KEY].mutations == null || (v instanceof _.default && v.children.forEach(i), v.optimize(
|
|
4674
|
+
v.domNode[O.DATA_KEY].mutations == null || (v instanceof _.default && v.children.forEach(i), v.optimize(a));
|
|
4676
4675
|
}, h = t, n = 0; h.length > 0; n += 1) {
|
|
4677
4676
|
if (n >= b)
|
|
4678
4677
|
throw new Error("[Parchment] Maximum optimize iterations reached");
|
|
@@ -4687,15 +4686,15 @@ var Sr = { exports: {} };
|
|
|
4687
4686
|
}), this.children.forEach(i), h = [].slice.call(this.observer.takeRecords()), s = h.slice(); s.length > 0; )
|
|
4688
4687
|
t.push(s.pop());
|
|
4689
4688
|
}
|
|
4690
|
-
}, e.prototype.update = function(t,
|
|
4691
|
-
var
|
|
4692
|
-
|
|
4689
|
+
}, e.prototype.update = function(t, a) {
|
|
4690
|
+
var l = this;
|
|
4691
|
+
a === void 0 && (a = {}), t = t || this.observer.takeRecords(), t.map(function(s) {
|
|
4693
4692
|
var r = O.find(s.target, !0);
|
|
4694
4693
|
return r == null ? null : r.domNode[O.DATA_KEY].mutations == null ? (r.domNode[O.DATA_KEY].mutations = [s], r) : (r.domNode[O.DATA_KEY].mutations.push(s), null);
|
|
4695
4694
|
}).forEach(function(s) {
|
|
4696
|
-
s == null || s ===
|
|
4697
|
-
s.domNode[O.DATA_KEY] == null || s.update(s.domNode[O.DATA_KEY].mutations || [],
|
|
4698
|
-
}), this.domNode[O.DATA_KEY].mutations != null && o.prototype.update.call(this, this.domNode[O.DATA_KEY].mutations,
|
|
4695
|
+
s == null || s === l || //@ts-ignore
|
|
4696
|
+
s.domNode[O.DATA_KEY] == null || s.update(s.domNode[O.DATA_KEY].mutations || [], a);
|
|
4697
|
+
}), this.domNode[O.DATA_KEY].mutations != null && o.prototype.update.call(this, this.domNode[O.DATA_KEY].mutations, a), this.optimize(t, a);
|
|
4699
4698
|
}, e.blotName = "scroll", e.defaultChild = "block", e.scope = O.Scope.BLOCK_BLOT, e.tagName = "DIV", e;
|
|
4700
4699
|
}(_.default)
|
|
4701
4700
|
);
|
|
@@ -4740,23 +4739,23 @@ var Sr = { exports: {} };
|
|
|
4740
4739
|
if (e.tagName !== o.tagName)
|
|
4741
4740
|
return d.formats.call(this, e);
|
|
4742
4741
|
}, o.prototype.format = function(e, t) {
|
|
4743
|
-
var
|
|
4744
|
-
e === this.statics.blotName && !t ? (this.children.forEach(function(
|
|
4745
|
-
|
|
4742
|
+
var a = this;
|
|
4743
|
+
e === this.statics.blotName && !t ? (this.children.forEach(function(l) {
|
|
4744
|
+
l instanceof _.default || (l = l.wrap(o.blotName, !0)), a.attributes.copy(l);
|
|
4746
4745
|
}), this.unwrap()) : d.prototype.format.call(this, e, t);
|
|
4747
|
-
}, o.prototype.formatAt = function(e, t,
|
|
4748
|
-
if (this.formats()[
|
|
4746
|
+
}, o.prototype.formatAt = function(e, t, a, l) {
|
|
4747
|
+
if (this.formats()[a] != null || O.query(a, O.Scope.ATTRIBUTE)) {
|
|
4749
4748
|
var s = this.isolate(e, t);
|
|
4750
|
-
s.format(
|
|
4749
|
+
s.format(a, l);
|
|
4751
4750
|
} else
|
|
4752
|
-
d.prototype.formatAt.call(this, e, t,
|
|
4751
|
+
d.prototype.formatAt.call(this, e, t, a, l);
|
|
4753
4752
|
}, o.prototype.optimize = function(e) {
|
|
4754
4753
|
d.prototype.optimize.call(this, e);
|
|
4755
4754
|
var t = this.formats();
|
|
4756
4755
|
if (Object.keys(t).length === 0)
|
|
4757
4756
|
return this.unwrap();
|
|
4758
|
-
var
|
|
4759
|
-
|
|
4757
|
+
var a = this.next;
|
|
4758
|
+
a instanceof o && a.prev === this && g(t, a.formats()) && (a.moveChildren(this), a.remove());
|
|
4760
4759
|
}, o.blotName = "inline", o.scope = O.Scope.INLINE_BLOT, o.tagName = "SPAN", o;
|
|
4761
4760
|
}(_.default)
|
|
4762
4761
|
);
|
|
@@ -4794,14 +4793,14 @@ var Sr = { exports: {} };
|
|
|
4794
4793
|
return b.formats.call(this, o);
|
|
4795
4794
|
}, d.prototype.format = function(o, e) {
|
|
4796
4795
|
O.query(o, O.Scope.BLOCK) != null && (o === this.statics.blotName && !e ? this.replaceWith(d.blotName) : b.prototype.format.call(this, o, e));
|
|
4797
|
-
}, d.prototype.formatAt = function(o, e, t,
|
|
4798
|
-
O.query(t, O.Scope.BLOCK) != null ? this.format(t,
|
|
4796
|
+
}, d.prototype.formatAt = function(o, e, t, a) {
|
|
4797
|
+
O.query(t, O.Scope.BLOCK) != null ? this.format(t, a) : b.prototype.formatAt.call(this, o, e, t, a);
|
|
4799
4798
|
}, d.prototype.insertAt = function(o, e, t) {
|
|
4800
4799
|
if (t == null || O.query(e, O.Scope.INLINE) != null)
|
|
4801
4800
|
b.prototype.insertAt.call(this, o, e, t);
|
|
4802
4801
|
else {
|
|
4803
|
-
var
|
|
4804
|
-
|
|
4802
|
+
var a = this.split(o), l = O.create(e, t);
|
|
4803
|
+
a.parent.insertBefore(l, a);
|
|
4805
4804
|
}
|
|
4806
4805
|
}, d.prototype.update = function(o, e) {
|
|
4807
4806
|
navigator.userAgent.match(/Trident/) ? this.build() : b.prototype.update.call(this, o, e);
|
|
@@ -4903,8 +4902,8 @@ var Sr = { exports: {} };
|
|
|
4903
4902
|
return this.parent.insertBefore(t, this.next), this.text = this.statics.value(this.domNode), t;
|
|
4904
4903
|
}, d.prototype.update = function(o, e) {
|
|
4905
4904
|
var t = this;
|
|
4906
|
-
o.some(function(
|
|
4907
|
-
return
|
|
4905
|
+
o.some(function(a) {
|
|
4906
|
+
return a.type === "characterData" && a.target === t.domNode;
|
|
4908
4907
|
}) && (this.text = this.statics.value(this.domNode));
|
|
4909
4908
|
}, d.prototype.value = function() {
|
|
4910
4909
|
return this.text;
|
|
@@ -4957,7 +4956,7 @@ var Sr = { exports: {} };
|
|
|
4957
4956
|
var L = n.substring(n.length - T);
|
|
4958
4957
|
n = n.substring(0, n.length - T), v = v.substring(0, v.length - T);
|
|
4959
4958
|
var A = g(n, v);
|
|
4960
|
-
return S && A.unshift([_, S]), L && A.push([_, L]),
|
|
4959
|
+
return S && A.unshift([_, S]), L && A.push([_, L]), a(A), k != null && (A = r(A, k)), A = i(A), A;
|
|
4961
4960
|
}
|
|
4962
4961
|
function g(n, v) {
|
|
4963
4962
|
var k;
|
|
@@ -4976,8 +4975,8 @@ var Sr = { exports: {} };
|
|
|
4976
4975
|
return [[f, n], [E, v]];
|
|
4977
4976
|
var A = t(n, v);
|
|
4978
4977
|
if (A) {
|
|
4979
|
-
var y = A[0], w = A[1], N = A[2], q = A[3], B = A[4],
|
|
4980
|
-
return
|
|
4978
|
+
var y = A[0], w = A[1], N = A[2], q = A[3], B = A[4], $ = O(y, N), z = O(w, q);
|
|
4979
|
+
return $.concat([[_, B]], z);
|
|
4981
4980
|
}
|
|
4982
4981
|
return b(n, v);
|
|
4983
4982
|
}
|
|
@@ -4985,22 +4984,22 @@ var Sr = { exports: {} };
|
|
|
4985
4984
|
for (var k = n.length, T = v.length, S = Math.ceil((k + T) / 2), L = S, A = 2 * S, y = new Array(A), w = new Array(A), N = 0; N < A; N++)
|
|
4986
4985
|
y[N] = -1, w[N] = -1;
|
|
4987
4986
|
y[L + 1] = 0, w[L + 1] = 0;
|
|
4988
|
-
for (var q = k - T, B = q % 2 != 0,
|
|
4989
|
-
for (var P = -I +
|
|
4987
|
+
for (var q = k - T, B = q % 2 != 0, $ = 0, z = 0, J = 0, H = 0, I = 0; I < S; I++) {
|
|
4988
|
+
for (var P = -I + $; P <= I - z; P += 2) {
|
|
4990
4989
|
var M = L + P, D;
|
|
4991
4990
|
P == -I || P != I && y[M - 1] < y[M + 1] ? D = y[M + 1] : D = y[M - 1] + 1;
|
|
4992
|
-
for (var
|
|
4993
|
-
D++,
|
|
4991
|
+
for (var V = D - P; D < k && V < T && n.charAt(D) == v.charAt(V); )
|
|
4992
|
+
D++, V++;
|
|
4994
4993
|
if (y[M] = D, D > k)
|
|
4995
4994
|
z += 2;
|
|
4996
|
-
else if (
|
|
4997
|
-
|
|
4995
|
+
else if (V > T)
|
|
4996
|
+
$ += 2;
|
|
4998
4997
|
else if (B) {
|
|
4999
4998
|
var F = L + q - P;
|
|
5000
4999
|
if (F >= 0 && F < A && w[F] != -1) {
|
|
5001
5000
|
var R = k - w[F];
|
|
5002
5001
|
if (D >= R)
|
|
5003
|
-
return d(n, v, D,
|
|
5002
|
+
return d(n, v, D, V);
|
|
5004
5003
|
}
|
|
5005
5004
|
}
|
|
5006
5005
|
}
|
|
@@ -5016,9 +5015,9 @@ var Sr = { exports: {} };
|
|
|
5016
5015
|
else if (!B) {
|
|
5017
5016
|
var M = L + q - U;
|
|
5018
5017
|
if (M >= 0 && M < A && y[M] != -1) {
|
|
5019
|
-
var D = y[M],
|
|
5018
|
+
var D = y[M], V = L + D - M;
|
|
5020
5019
|
if (R = k - R, D >= R)
|
|
5021
|
-
return d(n, v, D,
|
|
5020
|
+
return d(n, v, D, V);
|
|
5022
5021
|
}
|
|
5023
5022
|
}
|
|
5024
5023
|
}
|
|
@@ -5048,7 +5047,7 @@ var Sr = { exports: {} };
|
|
|
5048
5047
|
if (k.length < 4 || T.length * 2 < k.length)
|
|
5049
5048
|
return null;
|
|
5050
5049
|
function S(z, J, H) {
|
|
5051
|
-
for (var I = z.substring(H, H + Math.floor(z.length / 4)), P = -1, M = "", D,
|
|
5050
|
+
for (var I = z.substring(H, H + Math.floor(z.length / 4)), P = -1, M = "", D, V, F, R; (P = J.indexOf(I, P + 1)) != -1; ) {
|
|
5052
5051
|
var U = o(
|
|
5053
5052
|
z.substring(H),
|
|
5054
5053
|
J.substring(P)
|
|
@@ -5056,11 +5055,11 @@ var Sr = { exports: {} };
|
|
|
5056
5055
|
z.substring(0, H),
|
|
5057
5056
|
J.substring(0, P)
|
|
5058
5057
|
);
|
|
5059
|
-
M.length < K + U && (M = J.substring(P - K, P) + J.substring(P, P + U), D = z.substring(0, H - K),
|
|
5058
|
+
M.length < K + U && (M = J.substring(P - K, P) + J.substring(P, P + U), D = z.substring(0, H - K), V = z.substring(H + U), F = J.substring(0, P - K), R = J.substring(P + U));
|
|
5060
5059
|
}
|
|
5061
5060
|
return M.length * 2 >= z.length ? [
|
|
5062
5061
|
D,
|
|
5063
|
-
|
|
5062
|
+
V,
|
|
5064
5063
|
F,
|
|
5065
5064
|
R,
|
|
5066
5065
|
M
|
|
@@ -5080,10 +5079,10 @@ var Sr = { exports: {} };
|
|
|
5080
5079
|
A ? L ? y = L[4].length > A[4].length ? L : A : y = A : y = L;
|
|
5081
5080
|
var w, N, q, B;
|
|
5082
5081
|
n.length > v.length ? (w = y[0], N = y[1], q = y[2], B = y[3]) : (q = y[0], B = y[1], w = y[2], N = y[3]);
|
|
5083
|
-
var
|
|
5084
|
-
return [w, N, q, B,
|
|
5082
|
+
var $ = y[4];
|
|
5083
|
+
return [w, N, q, B, $];
|
|
5085
5084
|
}
|
|
5086
|
-
function
|
|
5085
|
+
function a(n) {
|
|
5087
5086
|
n.push([_, ""]);
|
|
5088
5087
|
for (var v = 0, k = 0, T = 0, S = "", L = "", A; v < n.length; )
|
|
5089
5088
|
switch (n[v][0]) {
|
|
@@ -5117,10 +5116,10 @@ var Sr = { exports: {} };
|
|
|
5117
5116
|
var y = !1;
|
|
5118
5117
|
for (v = 1; v < n.length - 1; )
|
|
5119
5118
|
n[v - 1][0] == _ && n[v + 1][0] == _ && (n[v][1].substring(n[v][1].length - n[v - 1][1].length) == n[v - 1][1] ? (n[v][1] = n[v - 1][1] + n[v][1].substring(0, n[v][1].length - n[v - 1][1].length), n[v + 1][1] = n[v - 1][1] + n[v + 1][1], n.splice(v - 1, 1), y = !0) : n[v][1].substring(0, n[v + 1][1].length) == n[v + 1][1] && (n[v - 1][1] += n[v + 1][1], n[v][1] = n[v][1].substring(n[v + 1][1].length) + n[v + 1][1], n.splice(v + 1, 1), y = !0)), v++;
|
|
5120
|
-
y &&
|
|
5119
|
+
y && a(n);
|
|
5121
5120
|
}
|
|
5122
|
-
var
|
|
5123
|
-
|
|
5121
|
+
var l = O;
|
|
5122
|
+
l.INSERT = E, l.DELETE = f, l.EQUAL = _, c.exports = l;
|
|
5124
5123
|
function s(n, v) {
|
|
5125
5124
|
if (v === 0)
|
|
5126
5125
|
return [_, n];
|
|
@@ -5231,10 +5230,10 @@ var Sr = { exports: {} };
|
|
|
5231
5230
|
return [];
|
|
5232
5231
|
if (t.fn)
|
|
5233
5232
|
return [t.fn];
|
|
5234
|
-
for (var
|
|
5235
|
-
s[
|
|
5233
|
+
for (var a = 0, l = t.length, s = new Array(l); a < l; a++)
|
|
5234
|
+
s[a] = t[a].fn;
|
|
5236
5235
|
return s;
|
|
5237
|
-
}, g.prototype.emit = function(d, o, e, t,
|
|
5236
|
+
}, g.prototype.emit = function(d, o, e, t, a, l) {
|
|
5238
5237
|
var s = E ? E + d : d;
|
|
5239
5238
|
if (!this._events[s])
|
|
5240
5239
|
return !1;
|
|
@@ -5250,9 +5249,9 @@ var Sr = { exports: {} };
|
|
|
5250
5249
|
case 4:
|
|
5251
5250
|
return r.fn.call(r.context, o, e, t), !0;
|
|
5252
5251
|
case 5:
|
|
5253
|
-
return r.fn.call(r.context, o, e, t,
|
|
5252
|
+
return r.fn.call(r.context, o, e, t, a), !0;
|
|
5254
5253
|
case 6:
|
|
5255
|
-
return r.fn.call(r.context, o, e, t,
|
|
5254
|
+
return r.fn.call(r.context, o, e, t, a, l), !0;
|
|
5256
5255
|
}
|
|
5257
5256
|
for (n = 1, h = new Array(i - 1); n < i; n++)
|
|
5258
5257
|
h[n - 1] = arguments[n];
|
|
@@ -5282,24 +5281,24 @@ var Sr = { exports: {} };
|
|
|
5282
5281
|
}
|
|
5283
5282
|
return !0;
|
|
5284
5283
|
}, g.prototype.on = function(d, o, e) {
|
|
5285
|
-
var t = new O(o, e || this),
|
|
5286
|
-
return this._events[
|
|
5284
|
+
var t = new O(o, e || this), a = E ? E + d : d;
|
|
5285
|
+
return this._events[a] ? this._events[a].fn ? this._events[a] = [this._events[a], t] : this._events[a].push(t) : (this._events[a] = t, this._eventsCount++), this;
|
|
5287
5286
|
}, g.prototype.once = function(d, o, e) {
|
|
5288
|
-
var t = new O(o, e || this, !0),
|
|
5289
|
-
return this._events[
|
|
5287
|
+
var t = new O(o, e || this, !0), a = E ? E + d : d;
|
|
5288
|
+
return this._events[a] ? this._events[a].fn ? this._events[a] = [this._events[a], t] : this._events[a].push(t) : (this._events[a] = t, this._eventsCount++), this;
|
|
5290
5289
|
}, g.prototype.removeListener = function(d, o, e, t) {
|
|
5291
|
-
var
|
|
5292
|
-
if (!this._events[
|
|
5290
|
+
var a = E ? E + d : d;
|
|
5291
|
+
if (!this._events[a])
|
|
5293
5292
|
return this;
|
|
5294
5293
|
if (!o)
|
|
5295
|
-
return --this._eventsCount === 0 ? this._events = new _() : delete this._events[
|
|
5296
|
-
var
|
|
5297
|
-
if (
|
|
5298
|
-
|
|
5294
|
+
return --this._eventsCount === 0 ? this._events = new _() : delete this._events[a], this;
|
|
5295
|
+
var l = this._events[a];
|
|
5296
|
+
if (l.fn)
|
|
5297
|
+
l.fn === o && (!t || l.once) && (!e || l.context === e) && (--this._eventsCount === 0 ? this._events = new _() : delete this._events[a]);
|
|
5299
5298
|
else {
|
|
5300
|
-
for (var s = 0, r = [], i =
|
|
5301
|
-
(
|
|
5302
|
-
r.length ? this._events[
|
|
5299
|
+
for (var s = 0, r = [], i = l.length; s < i; s++)
|
|
5300
|
+
(l[s].fn !== o || t && !l[s].once || e && l[s].context !== e) && r.push(l[s]);
|
|
5301
|
+
r.length ? this._events[a] = r.length === 1 ? r[0] : r : --this._eventsCount === 0 ? this._events = new _() : delete this._events[a];
|
|
5303
5302
|
}
|
|
5304
5303
|
return this;
|
|
5305
5304
|
}, g.prototype.removeAllListeners = function(d) {
|
|
@@ -5323,13 +5322,13 @@ var Sr = { exports: {} };
|
|
|
5323
5322
|
function W(Y, ee) {
|
|
5324
5323
|
var te = [], Q = !0, se = !1, oe = void 0;
|
|
5325
5324
|
try {
|
|
5326
|
-
for (var
|
|
5325
|
+
for (var le = Y[Symbol.iterator](), ke; !(Q = (ke = le.next()).done) && (te.push(ke.value), !(ee && te.length === ee)); Q = !0)
|
|
5327
5326
|
;
|
|
5328
5327
|
} catch (Ee) {
|
|
5329
5328
|
se = !0, oe = Ee;
|
|
5330
5329
|
} finally {
|
|
5331
5330
|
try {
|
|
5332
|
-
!Q &&
|
|
5331
|
+
!Q && le.return && le.return();
|
|
5333
5332
|
} finally {
|
|
5334
5333
|
if (se)
|
|
5335
5334
|
throw oe;
|
|
@@ -5354,7 +5353,7 @@ var Sr = { exports: {} };
|
|
|
5354
5353
|
return function(Y, ee, te) {
|
|
5355
5354
|
return ee && W(Y.prototype, ee), te && W(Y, te), Y;
|
|
5356
5355
|
};
|
|
5357
|
-
}(), g = f(3), b = w(g), d = f(2), o = w(d), e = f(0), t = w(e),
|
|
5356
|
+
}(), g = f(3), b = w(g), d = f(2), o = w(d), e = f(0), t = w(e), a = f(5), l = w(a), s = f(10), r = w(s), i = f(9), h = w(i), n = f(36), v = f(37), k = f(13), T = w(k), S = f(26), L = f(38), A = f(39), y = f(40);
|
|
5358
5357
|
function w(W) {
|
|
5359
5358
|
return W && W.__esModule ? W : { default: W };
|
|
5360
5359
|
}
|
|
@@ -5370,23 +5369,23 @@ var Sr = { exports: {} };
|
|
|
5370
5369
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5371
5370
|
return Y && (typeof Y == "object" || typeof Y == "function") ? Y : W;
|
|
5372
5371
|
}
|
|
5373
|
-
function
|
|
5372
|
+
function $(W, Y) {
|
|
5374
5373
|
if (typeof Y != "function" && Y !== null)
|
|
5375
5374
|
throw new TypeError("Super expression must either be null or a function, not " + typeof Y);
|
|
5376
5375
|
W.prototype = Object.create(Y && Y.prototype, { constructor: { value: W, enumerable: !1, writable: !0, configurable: !0 } }), Y && (Object.setPrototypeOf ? Object.setPrototypeOf(W, Y) : W.__proto__ = Y);
|
|
5377
5376
|
}
|
|
5378
|
-
var z = (0, r.default)("quill:clipboard"), J = "__ql-matcher", H = [[Node.TEXT_NODE, ge], [Node.TEXT_NODE, fe], ["br", ne], [Node.ELEMENT_NODE, fe], [Node.ELEMENT_NODE, X], [Node.ELEMENT_NODE, he], [Node.ELEMENT_NODE, G], [Node.ELEMENT_NODE, be], ["li",
|
|
5377
|
+
var z = (0, r.default)("quill:clipboard"), J = "__ql-matcher", H = [[Node.TEXT_NODE, ge], [Node.TEXT_NODE, fe], ["br", ne], [Node.ELEMENT_NODE, fe], [Node.ELEMENT_NODE, X], [Node.ELEMENT_NODE, he], [Node.ELEMENT_NODE, G], [Node.ELEMENT_NODE, be], ["li", ae], ["b", K.bind(K, "bold")], ["i", K.bind(K, "italic")], ["style", ie]], I = [n.AlignAttribute, L.DirectionAttribute].reduce(function(W, Y) {
|
|
5379
5378
|
return W[Y.keyName] = Y, W;
|
|
5380
5379
|
}, {}), P = [n.AlignStyle, v.BackgroundStyle, S.ColorStyle, L.DirectionStyle, A.FontStyle, y.SizeStyle].reduce(function(W, Y) {
|
|
5381
5380
|
return W[Y.keyName] = Y, W;
|
|
5382
5381
|
}, {}), M = function(W) {
|
|
5383
|
-
|
|
5382
|
+
$(Y, W);
|
|
5384
5383
|
function Y(ee, te) {
|
|
5385
5384
|
q(this, Y);
|
|
5386
5385
|
var Q = B(this, (Y.__proto__ || Object.getPrototypeOf(Y)).call(this, ee, te));
|
|
5387
5386
|
return Q.quill.root.addEventListener("paste", Q.onPaste.bind(Q)), Q.container = Q.quill.addContainer("ql-clipboard"), Q.container.setAttribute("contenteditable", !0), Q.container.setAttribute("tabindex", -1), Q.matchers = [], H.concat(Q.options.matchers).forEach(function(se) {
|
|
5388
|
-
var oe = _(se, 2),
|
|
5389
|
-
!te.matchVisual && ke === he || Q.addMatcher(
|
|
5387
|
+
var oe = _(se, 2), le = oe[0], ke = oe[1];
|
|
5388
|
+
!te.matchVisual && ke === he || Q.addMatcher(le, ke);
|
|
5390
5389
|
}), Q;
|
|
5391
5390
|
}
|
|
5392
5391
|
return O(Y, [{
|
|
@@ -5404,19 +5403,19 @@ var Sr = { exports: {} };
|
|
|
5404
5403
|
var se = this.container.innerText;
|
|
5405
5404
|
return this.container.innerHTML = "", new o.default().insert(se, N({}, T.default.blotName, Q[T.default.blotName]));
|
|
5406
5405
|
}
|
|
5407
|
-
var oe = this.prepareMatching(),
|
|
5406
|
+
var oe = this.prepareMatching(), le = _(oe, 2), ke = le[0], Ee = le[1], ve = U(this.container, ke, Ee);
|
|
5408
5407
|
return F(ve, `
|
|
5409
5408
|
`) && ve.ops[ve.ops.length - 1].attributes == null && (ve = ve.compose(new o.default().retain(ve.length() - 1).delete(1))), z.log("convert", this.container.innerHTML, ve), this.container.innerHTML = "", ve;
|
|
5410
5409
|
}
|
|
5411
5410
|
}, {
|
|
5412
5411
|
key: "dangerouslyPasteHTML",
|
|
5413
5412
|
value: function(te, Q) {
|
|
5414
|
-
var se = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
5413
|
+
var se = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : l.default.sources.API;
|
|
5415
5414
|
if (typeof te == "string")
|
|
5416
|
-
this.quill.setContents(this.convert(te), Q), this.quill.setSelection(0,
|
|
5415
|
+
this.quill.setContents(this.convert(te), Q), this.quill.setSelection(0, l.default.sources.SILENT);
|
|
5417
5416
|
else {
|
|
5418
5417
|
var oe = this.convert(Q);
|
|
5419
|
-
this.quill.updateContents(new o.default().retain(te).concat(oe), se), this.quill.setSelection(te + oe.length(),
|
|
5418
|
+
this.quill.updateContents(new o.default().retain(te).concat(oe), se), this.quill.setSelection(te + oe.length(), l.default.sources.SILENT);
|
|
5420
5419
|
}
|
|
5421
5420
|
}
|
|
5422
5421
|
}, {
|
|
@@ -5424,9 +5423,9 @@ var Sr = { exports: {} };
|
|
|
5424
5423
|
value: function(te) {
|
|
5425
5424
|
var Q = this;
|
|
5426
5425
|
if (!(te.defaultPrevented || !this.quill.isEnabled())) {
|
|
5427
|
-
var se = this.quill.getSelection(), oe = new o.default().retain(se.index),
|
|
5428
|
-
this.container.focus(), this.quill.selection.update(
|
|
5429
|
-
oe = oe.concat(Q.convert()).delete(se.length), Q.quill.updateContents(oe,
|
|
5426
|
+
var se = this.quill.getSelection(), oe = new o.default().retain(se.index), le = this.quill.scrollingContainer.scrollTop;
|
|
5427
|
+
this.container.focus(), this.quill.selection.update(l.default.sources.SILENT), setTimeout(function() {
|
|
5428
|
+
oe = oe.concat(Q.convert()).delete(se.length), Q.quill.updateContents(oe, l.default.sources.USER), Q.quill.setSelection(oe.length() - se.length, l.default.sources.SILENT), Q.quill.scrollingContainer.scrollTop = le, Q.quill.focus();
|
|
5430
5429
|
}, 1);
|
|
5431
5430
|
}
|
|
5432
5431
|
}
|
|
@@ -5435,7 +5434,7 @@ var Sr = { exports: {} };
|
|
|
5435
5434
|
value: function() {
|
|
5436
5435
|
var te = this, Q = [], se = [];
|
|
5437
5436
|
return this.matchers.forEach(function(oe) {
|
|
5438
|
-
var
|
|
5437
|
+
var le = _(oe, 2), ke = le[0], Ee = le[1];
|
|
5439
5438
|
switch (ke) {
|
|
5440
5439
|
case Node.TEXT_NODE:
|
|
5441
5440
|
se.push(Ee);
|
|
@@ -5464,7 +5463,7 @@ var Sr = { exports: {} };
|
|
|
5464
5463
|
return Q.attributes && Q.attributes[Y] ? te.push(Q) : te.insert(Q.insert, (0, b.default)({}, N({}, Y, ee), Q.attributes));
|
|
5465
5464
|
}, new o.default());
|
|
5466
5465
|
}
|
|
5467
|
-
function
|
|
5466
|
+
function V(W) {
|
|
5468
5467
|
if (W.nodeType !== Node.ELEMENT_NODE)
|
|
5469
5468
|
return {};
|
|
5470
5469
|
var Y = "__ql-computed-style";
|
|
@@ -5482,7 +5481,7 @@ var Sr = { exports: {} };
|
|
|
5482
5481
|
function R(W) {
|
|
5483
5482
|
if (W.childNodes.length === 0)
|
|
5484
5483
|
return !1;
|
|
5485
|
-
var Y =
|
|
5484
|
+
var Y = V(W);
|
|
5486
5485
|
return ["block", "list-item"].indexOf(Y.display) > -1;
|
|
5487
5486
|
}
|
|
5488
5487
|
function U(W, Y, ee) {
|
|
@@ -5490,10 +5489,10 @@ var Sr = { exports: {} };
|
|
|
5490
5489
|
return Q(W, te);
|
|
5491
5490
|
}, new o.default()) : W.nodeType === W.ELEMENT_NODE ? [].reduce.call(W.childNodes || [], function(te, Q) {
|
|
5492
5491
|
var se = U(Q, Y, ee);
|
|
5493
|
-
return Q.nodeType === W.ELEMENT_NODE && (se = Y.reduce(function(oe,
|
|
5494
|
-
return
|
|
5495
|
-
}, se), se = (Q[J] || []).reduce(function(oe,
|
|
5496
|
-
return
|
|
5492
|
+
return Q.nodeType === W.ELEMENT_NODE && (se = Y.reduce(function(oe, le) {
|
|
5493
|
+
return le(Q, oe);
|
|
5494
|
+
}, se), se = (Q[J] || []).reduce(function(oe, le) {
|
|
5495
|
+
return le(Q, oe);
|
|
5497
5496
|
}, se)), te.concat(se);
|
|
5498
5497
|
}, new o.default()) : new o.default();
|
|
5499
5498
|
}
|
|
@@ -5503,8 +5502,8 @@ var Sr = { exports: {} };
|
|
|
5503
5502
|
function G(W, Y) {
|
|
5504
5503
|
var ee = t.default.Attributor.Attribute.keys(W), te = t.default.Attributor.Class.keys(W), Q = t.default.Attributor.Style.keys(W), se = {};
|
|
5505
5504
|
return ee.concat(te).concat(Q).forEach(function(oe) {
|
|
5506
|
-
var
|
|
5507
|
-
|
|
5505
|
+
var le = t.default.query(oe, t.default.Scope.ATTRIBUTE);
|
|
5506
|
+
le != null && (se[le.attrName] = le.value(W), se[le.attrName]) || (le = I[oe], le != null && (le.attrName === oe || le.keyName === oe) && (se[le.attrName] = le.value(W) || void 0), le = P[oe], le != null && (le.attrName === oe || le.keyName === oe) && (le = P[oe], se[le.attrName] = le.value(W) || void 0));
|
|
5508
5507
|
}), Object.keys(se).length > 0 && (Y = D(Y, se)), Y;
|
|
5509
5508
|
}
|
|
5510
5509
|
function X(W, Y) {
|
|
@@ -5526,7 +5525,7 @@ var Sr = { exports: {} };
|
|
|
5526
5525
|
function ie() {
|
|
5527
5526
|
return new o.default();
|
|
5528
5527
|
}
|
|
5529
|
-
function
|
|
5528
|
+
function ae(W, Y) {
|
|
5530
5529
|
var ee = t.default.query(W);
|
|
5531
5530
|
if (ee == null || ee.blotName !== "list-item" || !F(Y, `
|
|
5532
5531
|
`))
|
|
@@ -5544,7 +5543,7 @@ var Sr = { exports: {} };
|
|
|
5544
5543
|
if (R(W) && W.nextElementSibling != null && !F(Y, `
|
|
5545
5544
|
|
|
5546
5545
|
`)) {
|
|
5547
|
-
var ee = W.offsetHeight + parseFloat(
|
|
5546
|
+
var ee = W.offsetHeight + parseFloat(V(W).marginTop) + parseFloat(V(W).marginBottom);
|
|
5548
5547
|
W.nextElementSibling.offsetTop > W.offsetTop + ee * 1.5 && Y.insert(`
|
|
5549
5548
|
`);
|
|
5550
5549
|
}
|
|
@@ -5552,7 +5551,7 @@ var Sr = { exports: {} };
|
|
|
5552
5551
|
}
|
|
5553
5552
|
function be(W, Y) {
|
|
5554
5553
|
var ee = {}, te = W.style || {};
|
|
5555
|
-
return te.fontStyle &&
|
|
5554
|
+
return te.fontStyle && V(W).fontStyle === "italic" && (ee.italic = !0), te.fontWeight && (V(W).fontWeight.startsWith("bold") || parseInt(V(W).fontWeight) >= 700) && (ee.bold = !0), Object.keys(ee).length > 0 && (Y = D(Y, ee)), parseFloat(te.textIndent || 0) > 0 && (Y = new o.default().insert(" ").concat(Y)), Y;
|
|
5556
5555
|
}
|
|
5557
5556
|
function ge(W, Y) {
|
|
5558
5557
|
var ee = W.data;
|
|
@@ -5560,7 +5559,7 @@ var Sr = { exports: {} };
|
|
|
5560
5559
|
return Y.insert(ee.trim());
|
|
5561
5560
|
if (ee.trim().length === 0 && W.parentNode.classList.contains("ql-clipboard"))
|
|
5562
5561
|
return Y;
|
|
5563
|
-
if (
|
|
5562
|
+
if (!V(W.parentNode).whiteSpace.startsWith("pre")) {
|
|
5564
5563
|
var te = function(se, oe) {
|
|
5565
5564
|
return oe = oe.replace(/[^\u00a0]/g, ""), oe.length < 1 && se ? " " : oe;
|
|
5566
5565
|
};
|
|
@@ -5577,21 +5576,21 @@ var Sr = { exports: {} };
|
|
|
5577
5576
|
value: !0
|
|
5578
5577
|
});
|
|
5579
5578
|
var E = function() {
|
|
5580
|
-
function l
|
|
5579
|
+
function a(l, s) {
|
|
5581
5580
|
for (var r = 0; r < s.length; r++) {
|
|
5582
5581
|
var i = s[r];
|
|
5583
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(
|
|
5582
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(l, i.key, i);
|
|
5584
5583
|
}
|
|
5585
5584
|
}
|
|
5586
|
-
return function(
|
|
5587
|
-
return s && l
|
|
5585
|
+
return function(l, s, r) {
|
|
5586
|
+
return s && a(l.prototype, s), r && a(l, r), l;
|
|
5588
5587
|
};
|
|
5589
|
-
}(), _ = function l
|
|
5590
|
-
|
|
5591
|
-
var i = Object.getOwnPropertyDescriptor(
|
|
5588
|
+
}(), _ = function a(l, s, r) {
|
|
5589
|
+
l === null && (l = Function.prototype);
|
|
5590
|
+
var i = Object.getOwnPropertyDescriptor(l, s);
|
|
5592
5591
|
if (i === void 0) {
|
|
5593
|
-
var h = Object.getPrototypeOf(
|
|
5594
|
-
return h === null ? void 0 :
|
|
5592
|
+
var h = Object.getPrototypeOf(l);
|
|
5593
|
+
return h === null ? void 0 : a(h, s, r);
|
|
5595
5594
|
} else {
|
|
5596
5595
|
if ("value" in i)
|
|
5597
5596
|
return i.value;
|
|
@@ -5599,44 +5598,44 @@ var Sr = { exports: {} };
|
|
|
5599
5598
|
return n === void 0 ? void 0 : n.call(r);
|
|
5600
5599
|
}
|
|
5601
5600
|
}, O = f(6), g = b(O);
|
|
5602
|
-
function b(
|
|
5603
|
-
return
|
|
5601
|
+
function b(a) {
|
|
5602
|
+
return a && a.__esModule ? a : { default: a };
|
|
5604
5603
|
}
|
|
5605
|
-
function d(
|
|
5606
|
-
if (!(
|
|
5604
|
+
function d(a, l) {
|
|
5605
|
+
if (!(a instanceof l))
|
|
5607
5606
|
throw new TypeError("Cannot call a class as a function");
|
|
5608
5607
|
}
|
|
5609
|
-
function o(
|
|
5610
|
-
if (!
|
|
5608
|
+
function o(a, l) {
|
|
5609
|
+
if (!a)
|
|
5611
5610
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5612
|
-
return
|
|
5611
|
+
return l && (typeof l == "object" || typeof l == "function") ? l : a;
|
|
5613
5612
|
}
|
|
5614
|
-
function e(
|
|
5615
|
-
if (typeof
|
|
5616
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
5617
|
-
|
|
5613
|
+
function e(a, l) {
|
|
5614
|
+
if (typeof l != "function" && l !== null)
|
|
5615
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof l);
|
|
5616
|
+
a.prototype = Object.create(l && l.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), l && (Object.setPrototypeOf ? Object.setPrototypeOf(a, l) : a.__proto__ = l);
|
|
5618
5617
|
}
|
|
5619
|
-
var t = function(
|
|
5620
|
-
e(
|
|
5621
|
-
function
|
|
5622
|
-
return d(this,
|
|
5618
|
+
var t = function(a) {
|
|
5619
|
+
e(l, a);
|
|
5620
|
+
function l() {
|
|
5621
|
+
return d(this, l), o(this, (l.__proto__ || Object.getPrototypeOf(l)).apply(this, arguments));
|
|
5623
5622
|
}
|
|
5624
|
-
return E(
|
|
5623
|
+
return E(l, [{
|
|
5625
5624
|
key: "optimize",
|
|
5626
5625
|
value: function(r) {
|
|
5627
|
-
_(
|
|
5626
|
+
_(l.prototype.__proto__ || Object.getPrototypeOf(l.prototype), "optimize", this).call(this, r), this.domNode.tagName !== this.statics.tagName[0] && this.replaceWith(this.statics.blotName);
|
|
5628
5627
|
}
|
|
5629
5628
|
}], [{
|
|
5630
5629
|
key: "create",
|
|
5631
5630
|
value: function() {
|
|
5632
|
-
return _(
|
|
5631
|
+
return _(l.__proto__ || Object.getPrototypeOf(l), "create", this).call(this);
|
|
5633
5632
|
}
|
|
5634
5633
|
}, {
|
|
5635
5634
|
key: "formats",
|
|
5636
5635
|
value: function() {
|
|
5637
5636
|
return !0;
|
|
5638
5637
|
}
|
|
5639
|
-
}]),
|
|
5638
|
+
}]), l;
|
|
5640
5639
|
}(g.default);
|
|
5641
5640
|
t.blotName = "bold", t.tagName = ["STRONG", "B"], p.default = t;
|
|
5642
5641
|
},
|
|
@@ -5648,17 +5647,17 @@ var Sr = { exports: {} };
|
|
|
5648
5647
|
}), p.addControls = p.default = void 0;
|
|
5649
5648
|
var E = function() {
|
|
5650
5649
|
function y(w, N) {
|
|
5651
|
-
var q = [], B = !0,
|
|
5650
|
+
var q = [], B = !0, $ = !1, z = void 0;
|
|
5652
5651
|
try {
|
|
5653
5652
|
for (var J = w[Symbol.iterator](), H; !(B = (H = J.next()).done) && (q.push(H.value), !(N && q.length === N)); B = !0)
|
|
5654
5653
|
;
|
|
5655
5654
|
} catch (I) {
|
|
5656
|
-
|
|
5655
|
+
$ = !0, z = I;
|
|
5657
5656
|
} finally {
|
|
5658
5657
|
try {
|
|
5659
5658
|
!B && J.return && J.return();
|
|
5660
5659
|
} finally {
|
|
5661
|
-
if (
|
|
5660
|
+
if ($)
|
|
5662
5661
|
throw z;
|
|
5663
5662
|
}
|
|
5664
5663
|
}
|
|
@@ -5681,7 +5680,7 @@ var Sr = { exports: {} };
|
|
|
5681
5680
|
return function(w, N, q) {
|
|
5682
5681
|
return N && y(w.prototype, N), q && y(w, q), w;
|
|
5683
5682
|
};
|
|
5684
|
-
}(), O = f(2), g = r(O), b = f(0), d = r(b), o = f(5), e = r(o), t = f(10),
|
|
5683
|
+
}(), O = f(2), g = r(O), b = f(0), d = r(b), o = f(5), e = r(o), t = f(10), a = r(t), l = f(9), s = r(l);
|
|
5685
5684
|
function r(y) {
|
|
5686
5685
|
return y && y.__esModule ? y : { default: y };
|
|
5687
5686
|
}
|
|
@@ -5702,14 +5701,14 @@ var Sr = { exports: {} };
|
|
|
5702
5701
|
throw new TypeError("Super expression must either be null or a function, not " + typeof w);
|
|
5703
5702
|
y.prototype = Object.create(w && w.prototype, { constructor: { value: y, enumerable: !1, writable: !0, configurable: !0 } }), w && (Object.setPrototypeOf ? Object.setPrototypeOf(y, w) : y.__proto__ = w);
|
|
5704
5703
|
}
|
|
5705
|
-
var k = (0,
|
|
5704
|
+
var k = (0, a.default)("quill:toolbar"), T = function(y) {
|
|
5706
5705
|
v(w, y);
|
|
5707
5706
|
function w(N, q) {
|
|
5708
5707
|
h(this, w);
|
|
5709
5708
|
var B = n(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this, N, q));
|
|
5710
5709
|
if (Array.isArray(B.options.container)) {
|
|
5711
|
-
var
|
|
5712
|
-
L(
|
|
5710
|
+
var $ = document.createElement("div");
|
|
5711
|
+
L($, B.options.container), N.container.parentNode.insertBefore($, N.container), B.container = $;
|
|
5713
5712
|
} else
|
|
5714
5713
|
typeof B.options.container == "string" ? B.container = document.querySelector(B.options.container) : B.container = B.options.container;
|
|
5715
5714
|
if (!(B.container instanceof HTMLElement)) {
|
|
@@ -5735,17 +5734,17 @@ var Sr = { exports: {} };
|
|
|
5735
5734
|
}, {
|
|
5736
5735
|
key: "attach",
|
|
5737
5736
|
value: function(q) {
|
|
5738
|
-
var B = this,
|
|
5737
|
+
var B = this, $ = [].find.call(q.classList, function(J) {
|
|
5739
5738
|
return J.indexOf("ql-") === 0;
|
|
5740
5739
|
});
|
|
5741
|
-
if (
|
|
5742
|
-
if (
|
|
5743
|
-
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[
|
|
5744
|
-
k.warn("ignoring attaching to disabled format",
|
|
5740
|
+
if ($) {
|
|
5741
|
+
if ($ = $.slice(3), q.tagName === "BUTTON" && q.setAttribute("type", "button"), this.handlers[$] == null) {
|
|
5742
|
+
if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[$] == null) {
|
|
5743
|
+
k.warn("ignoring attaching to disabled format", $, q);
|
|
5745
5744
|
return;
|
|
5746
5745
|
}
|
|
5747
|
-
if (d.default.query(
|
|
5748
|
-
k.warn("ignoring attaching to nonexistent format",
|
|
5746
|
+
if (d.default.query($) == null) {
|
|
5747
|
+
k.warn("ignoring attaching to nonexistent format", $, q);
|
|
5749
5748
|
return;
|
|
5750
5749
|
}
|
|
5751
5750
|
}
|
|
@@ -5761,24 +5760,24 @@ var Sr = { exports: {} };
|
|
|
5761
5760
|
q.classList.contains("ql-active") ? H = !1 : H = q.value || !q.hasAttribute("value"), J.preventDefault();
|
|
5762
5761
|
B.quill.focus();
|
|
5763
5762
|
var P = B.quill.selection.getRange(), M = E(P, 1), D = M[0];
|
|
5764
|
-
if (B.handlers[
|
|
5765
|
-
B.handlers[
|
|
5766
|
-
else if (d.default.query(
|
|
5767
|
-
if (H = prompt("Enter " +
|
|
5763
|
+
if (B.handlers[$] != null)
|
|
5764
|
+
B.handlers[$].call(B, H);
|
|
5765
|
+
else if (d.default.query($).prototype instanceof d.default.Embed) {
|
|
5766
|
+
if (H = prompt("Enter " + $), !H)
|
|
5768
5767
|
return;
|
|
5769
|
-
B.quill.updateContents(new g.default().retain(D.index).delete(D.length).insert(i({},
|
|
5768
|
+
B.quill.updateContents(new g.default().retain(D.index).delete(D.length).insert(i({}, $, H)), e.default.sources.USER);
|
|
5770
5769
|
} else
|
|
5771
|
-
B.quill.format(
|
|
5770
|
+
B.quill.format($, H, e.default.sources.USER);
|
|
5772
5771
|
B.update(D);
|
|
5773
|
-
}), this.controls.push([
|
|
5772
|
+
}), this.controls.push([$, q]);
|
|
5774
5773
|
}
|
|
5775
5774
|
}
|
|
5776
5775
|
}, {
|
|
5777
5776
|
key: "update",
|
|
5778
5777
|
value: function(q) {
|
|
5779
5778
|
var B = q == null ? {} : this.quill.getFormat(q);
|
|
5780
|
-
this.controls.forEach(function(
|
|
5781
|
-
var z = E(
|
|
5779
|
+
this.controls.forEach(function($) {
|
|
5780
|
+
var z = E($, 2), J = z[0], H = z[1];
|
|
5782
5781
|
if (H.tagName === "SELECT") {
|
|
5783
5782
|
var I = void 0;
|
|
5784
5783
|
if (q == null)
|
|
@@ -5813,8 +5812,8 @@ var Sr = { exports: {} };
|
|
|
5813
5812
|
if (typeof B == "string")
|
|
5814
5813
|
S(q, B);
|
|
5815
5814
|
else {
|
|
5816
|
-
var
|
|
5817
|
-
Array.isArray(z) ? A(q,
|
|
5815
|
+
var $ = Object.keys(B)[0], z = B[$];
|
|
5816
|
+
Array.isArray(z) ? A(q, $, z) : S(q, $, z);
|
|
5818
5817
|
}
|
|
5819
5818
|
}), y.appendChild(q);
|
|
5820
5819
|
});
|
|
@@ -5822,8 +5821,8 @@ var Sr = { exports: {} };
|
|
|
5822
5821
|
function A(y, w, N) {
|
|
5823
5822
|
var q = document.createElement("select");
|
|
5824
5823
|
q.classList.add("ql-" + w), N.forEach(function(B) {
|
|
5825
|
-
var
|
|
5826
|
-
B !== !1 ?
|
|
5824
|
+
var $ = document.createElement("option");
|
|
5825
|
+
B !== !1 ? $.setAttribute("value", B) : $.setAttribute("selected", "selected"), q.appendChild($);
|
|
5827
5826
|
}), y.appendChild(q);
|
|
5828
5827
|
}
|
|
5829
5828
|
T.DEFAULTS = {
|
|
@@ -5847,8 +5846,8 @@ var Sr = { exports: {} };
|
|
|
5847
5846
|
indent: function(w) {
|
|
5848
5847
|
var N = this.quill.getSelection(), q = this.quill.getFormat(N), B = parseInt(q.indent || 0);
|
|
5849
5848
|
if (w === "+1" || w === "-1") {
|
|
5850
|
-
var
|
|
5851
|
-
q.direction === "rtl" && (
|
|
5849
|
+
var $ = w === "+1" ? 1 : -1;
|
|
5850
|
+
q.direction === "rtl" && ($ *= -1), this.quill.format("indent", B + $, e.default.sources.USER);
|
|
5852
5851
|
}
|
|
5853
5852
|
},
|
|
5854
5853
|
link: function(w) {
|
|
@@ -5873,21 +5872,21 @@ var Sr = { exports: {} };
|
|
|
5873
5872
|
value: !0
|
|
5874
5873
|
});
|
|
5875
5874
|
var E = function() {
|
|
5876
|
-
function l
|
|
5875
|
+
function a(l, s) {
|
|
5877
5876
|
for (var r = 0; r < s.length; r++) {
|
|
5878
5877
|
var i = s[r];
|
|
5879
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(
|
|
5878
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(l, i.key, i);
|
|
5880
5879
|
}
|
|
5881
5880
|
}
|
|
5882
|
-
return function(
|
|
5883
|
-
return s && l
|
|
5881
|
+
return function(l, s, r) {
|
|
5882
|
+
return s && a(l.prototype, s), r && a(l, r), l;
|
|
5884
5883
|
};
|
|
5885
|
-
}(), _ = function l
|
|
5886
|
-
|
|
5887
|
-
var i = Object.getOwnPropertyDescriptor(
|
|
5884
|
+
}(), _ = function a(l, s, r) {
|
|
5885
|
+
l === null && (l = Function.prototype);
|
|
5886
|
+
var i = Object.getOwnPropertyDescriptor(l, s);
|
|
5888
5887
|
if (i === void 0) {
|
|
5889
|
-
var h = Object.getPrototypeOf(
|
|
5890
|
-
return h === null ? void 0 :
|
|
5888
|
+
var h = Object.getPrototypeOf(l);
|
|
5889
|
+
return h === null ? void 0 : a(h, s, r);
|
|
5891
5890
|
} else {
|
|
5892
5891
|
if ("value" in i)
|
|
5893
5892
|
return i.value;
|
|
@@ -5895,46 +5894,46 @@ var Sr = { exports: {} };
|
|
|
5895
5894
|
return n === void 0 ? void 0 : n.call(r);
|
|
5896
5895
|
}
|
|
5897
5896
|
}, O = f(28), g = b(O);
|
|
5898
|
-
function b(
|
|
5899
|
-
return
|
|
5897
|
+
function b(a) {
|
|
5898
|
+
return a && a.__esModule ? a : { default: a };
|
|
5900
5899
|
}
|
|
5901
|
-
function d(
|
|
5902
|
-
if (!(
|
|
5900
|
+
function d(a, l) {
|
|
5901
|
+
if (!(a instanceof l))
|
|
5903
5902
|
throw new TypeError("Cannot call a class as a function");
|
|
5904
5903
|
}
|
|
5905
|
-
function o(
|
|
5906
|
-
if (!
|
|
5904
|
+
function o(a, l) {
|
|
5905
|
+
if (!a)
|
|
5907
5906
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5908
|
-
return
|
|
5907
|
+
return l && (typeof l == "object" || typeof l == "function") ? l : a;
|
|
5909
5908
|
}
|
|
5910
|
-
function e(
|
|
5911
|
-
if (typeof
|
|
5912
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
5913
|
-
|
|
5909
|
+
function e(a, l) {
|
|
5910
|
+
if (typeof l != "function" && l !== null)
|
|
5911
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof l);
|
|
5912
|
+
a.prototype = Object.create(l && l.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), l && (Object.setPrototypeOf ? Object.setPrototypeOf(a, l) : a.__proto__ = l);
|
|
5914
5913
|
}
|
|
5915
|
-
var t = function(
|
|
5916
|
-
e(
|
|
5917
|
-
function
|
|
5918
|
-
d(this,
|
|
5919
|
-
var i = o(this, (
|
|
5914
|
+
var t = function(a) {
|
|
5915
|
+
e(l, a);
|
|
5916
|
+
function l(s, r) {
|
|
5917
|
+
d(this, l);
|
|
5918
|
+
var i = o(this, (l.__proto__ || Object.getPrototypeOf(l)).call(this, s));
|
|
5920
5919
|
return i.label.innerHTML = r, i.container.classList.add("ql-color-picker"), [].slice.call(i.container.querySelectorAll(".ql-picker-item"), 0, 7).forEach(function(h) {
|
|
5921
5920
|
h.classList.add("ql-primary");
|
|
5922
5921
|
}), i;
|
|
5923
5922
|
}
|
|
5924
|
-
return E(
|
|
5923
|
+
return E(l, [{
|
|
5925
5924
|
key: "buildItem",
|
|
5926
5925
|
value: function(r) {
|
|
5927
|
-
var i = _(
|
|
5926
|
+
var i = _(l.prototype.__proto__ || Object.getPrototypeOf(l.prototype), "buildItem", this).call(this, r);
|
|
5928
5927
|
return i.style.backgroundColor = r.getAttribute("value") || "", i;
|
|
5929
5928
|
}
|
|
5930
5929
|
}, {
|
|
5931
5930
|
key: "selectItem",
|
|
5932
5931
|
value: function(r, i) {
|
|
5933
|
-
_(
|
|
5932
|
+
_(l.prototype.__proto__ || Object.getPrototypeOf(l.prototype), "selectItem", this).call(this, r, i);
|
|
5934
5933
|
var h = this.label.querySelector(".ql-color-label"), n = r && r.getAttribute("data-value") || "";
|
|
5935
5934
|
h && (h.tagName === "line" ? h.style.stroke = n : h.style.fill = n);
|
|
5936
5935
|
}
|
|
5937
|
-
}]),
|
|
5936
|
+
}]), l;
|
|
5938
5937
|
}(g.default);
|
|
5939
5938
|
p.default = t;
|
|
5940
5939
|
},
|
|
@@ -5945,21 +5944,21 @@ var Sr = { exports: {} };
|
|
|
5945
5944
|
value: !0
|
|
5946
5945
|
});
|
|
5947
5946
|
var E = function() {
|
|
5948
|
-
function l
|
|
5947
|
+
function a(l, s) {
|
|
5949
5948
|
for (var r = 0; r < s.length; r++) {
|
|
5950
5949
|
var i = s[r];
|
|
5951
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(
|
|
5950
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(l, i.key, i);
|
|
5952
5951
|
}
|
|
5953
5952
|
}
|
|
5954
|
-
return function(
|
|
5955
|
-
return s && l
|
|
5953
|
+
return function(l, s, r) {
|
|
5954
|
+
return s && a(l.prototype, s), r && a(l, r), l;
|
|
5956
5955
|
};
|
|
5957
|
-
}(), _ = function l
|
|
5958
|
-
|
|
5959
|
-
var i = Object.getOwnPropertyDescriptor(
|
|
5956
|
+
}(), _ = function a(l, s, r) {
|
|
5957
|
+
l === null && (l = Function.prototype);
|
|
5958
|
+
var i = Object.getOwnPropertyDescriptor(l, s);
|
|
5960
5959
|
if (i === void 0) {
|
|
5961
|
-
var h = Object.getPrototypeOf(
|
|
5962
|
-
return h === null ? void 0 :
|
|
5960
|
+
var h = Object.getPrototypeOf(l);
|
|
5961
|
+
return h === null ? void 0 : a(h, s, r);
|
|
5963
5962
|
} else {
|
|
5964
5963
|
if ("value" in i)
|
|
5965
5964
|
return i.value;
|
|
@@ -5967,38 +5966,38 @@ var Sr = { exports: {} };
|
|
|
5967
5966
|
return n === void 0 ? void 0 : n.call(r);
|
|
5968
5967
|
}
|
|
5969
5968
|
}, O = f(28), g = b(O);
|
|
5970
|
-
function b(
|
|
5971
|
-
return
|
|
5969
|
+
function b(a) {
|
|
5970
|
+
return a && a.__esModule ? a : { default: a };
|
|
5972
5971
|
}
|
|
5973
|
-
function d(
|
|
5974
|
-
if (!(
|
|
5972
|
+
function d(a, l) {
|
|
5973
|
+
if (!(a instanceof l))
|
|
5975
5974
|
throw new TypeError("Cannot call a class as a function");
|
|
5976
5975
|
}
|
|
5977
|
-
function o(
|
|
5978
|
-
if (!
|
|
5976
|
+
function o(a, l) {
|
|
5977
|
+
if (!a)
|
|
5979
5978
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5980
|
-
return
|
|
5979
|
+
return l && (typeof l == "object" || typeof l == "function") ? l : a;
|
|
5981
5980
|
}
|
|
5982
|
-
function e(
|
|
5983
|
-
if (typeof
|
|
5984
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
5985
|
-
|
|
5981
|
+
function e(a, l) {
|
|
5982
|
+
if (typeof l != "function" && l !== null)
|
|
5983
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof l);
|
|
5984
|
+
a.prototype = Object.create(l && l.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), l && (Object.setPrototypeOf ? Object.setPrototypeOf(a, l) : a.__proto__ = l);
|
|
5986
5985
|
}
|
|
5987
|
-
var t = function(
|
|
5988
|
-
e(
|
|
5989
|
-
function
|
|
5990
|
-
d(this,
|
|
5991
|
-
var i = o(this, (
|
|
5986
|
+
var t = function(a) {
|
|
5987
|
+
e(l, a);
|
|
5988
|
+
function l(s, r) {
|
|
5989
|
+
d(this, l);
|
|
5990
|
+
var i = o(this, (l.__proto__ || Object.getPrototypeOf(l)).call(this, s));
|
|
5992
5991
|
return i.container.classList.add("ql-icon-picker"), [].forEach.call(i.container.querySelectorAll(".ql-picker-item"), function(h) {
|
|
5993
5992
|
h.innerHTML = r[h.getAttribute("data-value") || ""];
|
|
5994
5993
|
}), i.defaultItem = i.container.querySelector(".ql-selected"), i.selectItem(i.defaultItem), i;
|
|
5995
5994
|
}
|
|
5996
|
-
return E(
|
|
5995
|
+
return E(l, [{
|
|
5997
5996
|
key: "selectItem",
|
|
5998
5997
|
value: function(r, i) {
|
|
5999
|
-
_(
|
|
5998
|
+
_(l.prototype.__proto__ || Object.getPrototypeOf(l.prototype), "selectItem", this).call(this, r, i), r = r || this.defaultItem, this.label.innerHTML = r.innerHTML;
|
|
6000
5999
|
}
|
|
6001
|
-
}]),
|
|
6000
|
+
}]), l;
|
|
6002
6001
|
}(g.default);
|
|
6003
6002
|
p.default = t;
|
|
6004
6003
|
},
|
|
@@ -6040,12 +6039,12 @@ var Sr = { exports: {} };
|
|
|
6040
6039
|
value: function(d) {
|
|
6041
6040
|
var o = d.left + d.width / 2 - this.root.offsetWidth / 2, e = d.bottom + this.quill.root.scrollTop;
|
|
6042
6041
|
this.root.style.left = o + "px", this.root.style.top = e + "px", this.root.classList.remove("ql-flip");
|
|
6043
|
-
var t = this.boundsContainer.getBoundingClientRect(),
|
|
6044
|
-
if (
|
|
6045
|
-
var s =
|
|
6042
|
+
var t = this.boundsContainer.getBoundingClientRect(), a = this.root.getBoundingClientRect(), l = 0;
|
|
6043
|
+
if (a.right > t.right && (l = t.right - a.right, this.root.style.left = o + l + "px"), a.left < t.left && (l = t.left - a.left, this.root.style.left = o + l + "px"), a.bottom > t.bottom) {
|
|
6044
|
+
var s = a.bottom - a.top, r = d.bottom - d.top + s;
|
|
6046
6045
|
this.root.style.top = e - r + "px", this.root.classList.add("ql-flip");
|
|
6047
6046
|
}
|
|
6048
|
-
return
|
|
6047
|
+
return l;
|
|
6049
6048
|
}
|
|
6050
6049
|
}, {
|
|
6051
6050
|
key: "show",
|
|
@@ -6064,18 +6063,18 @@ var Sr = { exports: {} };
|
|
|
6064
6063
|
});
|
|
6065
6064
|
var E = function() {
|
|
6066
6065
|
function A(y, w) {
|
|
6067
|
-
var N = [], q = !0, B = !1,
|
|
6066
|
+
var N = [], q = !0, B = !1, $ = void 0;
|
|
6068
6067
|
try {
|
|
6069
6068
|
for (var z = y[Symbol.iterator](), J; !(q = (J = z.next()).done) && (N.push(J.value), !(w && N.length === w)); q = !0)
|
|
6070
6069
|
;
|
|
6071
6070
|
} catch (H) {
|
|
6072
|
-
B = !0,
|
|
6071
|
+
B = !0, $ = H;
|
|
6073
6072
|
} finally {
|
|
6074
6073
|
try {
|
|
6075
6074
|
!q && z.return && z.return();
|
|
6076
6075
|
} finally {
|
|
6077
6076
|
if (B)
|
|
6078
|
-
throw
|
|
6077
|
+
throw $;
|
|
6079
6078
|
}
|
|
6080
6079
|
}
|
|
6081
6080
|
return N;
|
|
@@ -6096,8 +6095,8 @@ var Sr = { exports: {} };
|
|
|
6096
6095
|
} else {
|
|
6097
6096
|
if ("value" in q)
|
|
6098
6097
|
return q.value;
|
|
6099
|
-
var
|
|
6100
|
-
return
|
|
6098
|
+
var $ = q.get;
|
|
6099
|
+
return $ === void 0 ? void 0 : $.call(N);
|
|
6101
6100
|
}
|
|
6102
6101
|
}, O = function() {
|
|
6103
6102
|
function A(y, w) {
|
|
@@ -6109,7 +6108,7 @@ var Sr = { exports: {} };
|
|
|
6109
6108
|
return function(y, w, N) {
|
|
6110
6109
|
return w && A(y.prototype, w), N && A(y, N), y;
|
|
6111
6110
|
};
|
|
6112
|
-
}(), g = f(3), b = h(g), d = f(8), o = h(d), e = f(43), t = h(e),
|
|
6111
|
+
}(), g = f(3), b = h(g), d = f(8), o = h(d), e = f(43), t = h(e), a = f(27), l = h(a), s = f(15), r = f(41), i = h(r);
|
|
6113
6112
|
function h(A) {
|
|
6114
6113
|
return A && A.__esModule ? A : { default: A };
|
|
6115
6114
|
}
|
|
@@ -6182,13 +6181,13 @@ var Sr = { exports: {} };
|
|
|
6182
6181
|
N.restoreFocus(), N.quill.formatText(B, "link", !1, o.default.sources.USER), delete N.linkRange;
|
|
6183
6182
|
}
|
|
6184
6183
|
q.preventDefault(), N.hide();
|
|
6185
|
-
}), this.quill.on(o.default.events.SELECTION_CHANGE, function(q, B,
|
|
6184
|
+
}), this.quill.on(o.default.events.SELECTION_CHANGE, function(q, B, $) {
|
|
6186
6185
|
if (q != null) {
|
|
6187
|
-
if (q.length === 0 &&
|
|
6188
|
-
var z = N.quill.scroll.descendant(
|
|
6186
|
+
if (q.length === 0 && $ === o.default.sources.USER) {
|
|
6187
|
+
var z = N.quill.scroll.descendant(l.default, q.index), J = E(z, 2), H = J[0], I = J[1];
|
|
6189
6188
|
if (H != null) {
|
|
6190
6189
|
N.linkRange = new s.Range(q.index - I, H.length());
|
|
6191
|
-
var P =
|
|
6190
|
+
var P = l.default.formats(H.domNode);
|
|
6192
6191
|
N.preview.textContent = P, N.preview.setAttribute("href", P), N.show(), N.position(N.quill.getBounds(N.linkRange));
|
|
6193
6192
|
return;
|
|
6194
6193
|
}
|
|
@@ -6213,7 +6212,7 @@ var Sr = { exports: {} };
|
|
|
6213
6212
|
Object.defineProperty(p, "__esModule", {
|
|
6214
6213
|
value: !0
|
|
6215
6214
|
});
|
|
6216
|
-
var E = f(29), _ = Q(E), O = f(36), g = f(38), b = f(64), d = f(65), o = Q(d), e = f(66), t = Q(e),
|
|
6215
|
+
var E = f(29), _ = Q(E), O = f(36), g = f(38), b = f(64), d = f(65), o = Q(d), e = f(66), t = Q(e), a = f(67), l = Q(a), s = f(37), r = f(26), i = f(39), h = f(40), n = f(56), v = Q(n), k = f(68), T = Q(k), S = f(27), L = Q(S), A = f(69), y = Q(A), w = f(70), N = Q(w), q = f(71), B = Q(q), $ = f(72), z = Q($), J = f(73), H = Q(J), I = f(13), P = Q(I), M = f(74), D = Q(M), V = f(75), F = Q(V), R = f(57), U = Q(R), K = f(41), G = Q(K), X = f(28), ne = Q(X), ie = f(59), ae = Q(ie), fe = f(60), he = Q(fe), be = f(61), ge = Q(be), W = f(108), Y = Q(W), ee = f(62), te = Q(ee);
|
|
6217
6216
|
function Q(se) {
|
|
6218
6217
|
return se && se.__esModule ? se : { default: se };
|
|
6219
6218
|
}
|
|
@@ -6242,7 +6241,7 @@ var Sr = { exports: {} };
|
|
|
6242
6241
|
"formats/blockquote": o.default,
|
|
6243
6242
|
"formats/code-block": P.default,
|
|
6244
6243
|
"formats/header": t.default,
|
|
6245
|
-
"formats/list":
|
|
6244
|
+
"formats/list": l.default,
|
|
6246
6245
|
"formats/bold": v.default,
|
|
6247
6246
|
"formats/code": I.Code,
|
|
6248
6247
|
"formats/italic": T.default,
|
|
@@ -6252,7 +6251,7 @@ var Sr = { exports: {} };
|
|
|
6252
6251
|
"formats/underline": B.default,
|
|
6253
6252
|
"formats/image": z.default,
|
|
6254
6253
|
"formats/video": H.default,
|
|
6255
|
-
"formats/list/item":
|
|
6254
|
+
"formats/list/item": a.ListItem,
|
|
6256
6255
|
"modules/formula": D.default,
|
|
6257
6256
|
"modules/syntax": F.default,
|
|
6258
6257
|
"modules/toolbar": U.default,
|
|
@@ -6261,7 +6260,7 @@ var Sr = { exports: {} };
|
|
|
6261
6260
|
"ui/icons": G.default,
|
|
6262
6261
|
"ui/picker": ne.default,
|
|
6263
6262
|
"ui/icon-picker": he.default,
|
|
6264
|
-
"ui/color-picker":
|
|
6263
|
+
"ui/color-picker": ae.default,
|
|
6265
6264
|
"ui/tooltip": ge.default
|
|
6266
6265
|
}, !0), p.default = _.default;
|
|
6267
6266
|
},
|
|
@@ -6272,21 +6271,21 @@ var Sr = { exports: {} };
|
|
|
6272
6271
|
value: !0
|
|
6273
6272
|
}), p.IndentClass = void 0;
|
|
6274
6273
|
var E = function() {
|
|
6275
|
-
function
|
|
6274
|
+
function l(s, r) {
|
|
6276
6275
|
for (var i = 0; i < r.length; i++) {
|
|
6277
6276
|
var h = r[i];
|
|
6278
6277
|
h.enumerable = h.enumerable || !1, h.configurable = !0, "value" in h && (h.writable = !0), Object.defineProperty(s, h.key, h);
|
|
6279
6278
|
}
|
|
6280
6279
|
}
|
|
6281
6280
|
return function(s, r, i) {
|
|
6282
|
-
return r &&
|
|
6281
|
+
return r && l(s.prototype, r), i && l(s, i), s;
|
|
6283
6282
|
};
|
|
6284
|
-
}(), _ = function
|
|
6283
|
+
}(), _ = function l(s, r, i) {
|
|
6285
6284
|
s === null && (s = Function.prototype);
|
|
6286
6285
|
var h = Object.getOwnPropertyDescriptor(s, r);
|
|
6287
6286
|
if (h === void 0) {
|
|
6288
6287
|
var n = Object.getPrototypeOf(s);
|
|
6289
|
-
return n === null ? void 0 :
|
|
6288
|
+
return n === null ? void 0 : l(n, r, i);
|
|
6290
6289
|
} else {
|
|
6291
6290
|
if ("value" in h)
|
|
6292
6291
|
return h.value;
|
|
@@ -6294,25 +6293,25 @@ var Sr = { exports: {} };
|
|
|
6294
6293
|
return v === void 0 ? void 0 : v.call(i);
|
|
6295
6294
|
}
|
|
6296
6295
|
}, O = f(0), g = b(O);
|
|
6297
|
-
function b(
|
|
6298
|
-
return
|
|
6296
|
+
function b(l) {
|
|
6297
|
+
return l && l.__esModule ? l : { default: l };
|
|
6299
6298
|
}
|
|
6300
|
-
function d(
|
|
6301
|
-
if (!(
|
|
6299
|
+
function d(l, s) {
|
|
6300
|
+
if (!(l instanceof s))
|
|
6302
6301
|
throw new TypeError("Cannot call a class as a function");
|
|
6303
6302
|
}
|
|
6304
|
-
function o(
|
|
6305
|
-
if (!
|
|
6303
|
+
function o(l, s) {
|
|
6304
|
+
if (!l)
|
|
6306
6305
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6307
|
-
return s && (typeof s == "object" || typeof s == "function") ? s :
|
|
6306
|
+
return s && (typeof s == "object" || typeof s == "function") ? s : l;
|
|
6308
6307
|
}
|
|
6309
|
-
function e(
|
|
6308
|
+
function e(l, s) {
|
|
6310
6309
|
if (typeof s != "function" && s !== null)
|
|
6311
6310
|
throw new TypeError("Super expression must either be null or a function, not " + typeof s);
|
|
6312
|
-
|
|
6311
|
+
l.prototype = Object.create(s && s.prototype, { constructor: { value: l, enumerable: !1, writable: !0, configurable: !0 } }), s && (Object.setPrototypeOf ? Object.setPrototypeOf(l, s) : l.__proto__ = s);
|
|
6313
6312
|
}
|
|
6314
|
-
var t = function(
|
|
6315
|
-
e(s,
|
|
6313
|
+
var t = function(l) {
|
|
6314
|
+
e(s, l);
|
|
6316
6315
|
function s() {
|
|
6317
6316
|
return d(this, s), o(this, (s.__proto__ || Object.getPrototypeOf(s)).apply(this, arguments));
|
|
6318
6317
|
}
|
|
@@ -6336,11 +6335,11 @@ var Sr = { exports: {} };
|
|
|
6336
6335
|
return parseInt(_(s.prototype.__proto__ || Object.getPrototypeOf(s.prototype), "value", this).call(this, i)) || void 0;
|
|
6337
6336
|
}
|
|
6338
6337
|
}]), s;
|
|
6339
|
-
}(g.default.Attributor.Class),
|
|
6338
|
+
}(g.default.Attributor.Class), a = new t("indent", "ql-indent", {
|
|
6340
6339
|
scope: g.default.Scope.BLOCK,
|
|
6341
6340
|
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
6342
6341
|
});
|
|
6343
|
-
p.IndentClass =
|
|
6342
|
+
p.IndentClass = a;
|
|
6344
6343
|
},
|
|
6345
6344
|
/* 65 */
|
|
6346
6345
|
/***/
|
|
@@ -6382,44 +6381,44 @@ var Sr = { exports: {} };
|
|
|
6382
6381
|
value: !0
|
|
6383
6382
|
});
|
|
6384
6383
|
var E = function() {
|
|
6385
|
-
function t(
|
|
6386
|
-
for (var s = 0; s <
|
|
6387
|
-
var r =
|
|
6388
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(
|
|
6384
|
+
function t(a, l) {
|
|
6385
|
+
for (var s = 0; s < l.length; s++) {
|
|
6386
|
+
var r = l[s];
|
|
6387
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(a, r.key, r);
|
|
6389
6388
|
}
|
|
6390
6389
|
}
|
|
6391
|
-
return function(
|
|
6392
|
-
return
|
|
6390
|
+
return function(a, l, s) {
|
|
6391
|
+
return l && t(a.prototype, l), s && t(a, s), a;
|
|
6393
6392
|
};
|
|
6394
6393
|
}(), _ = f(4), O = g(_);
|
|
6395
6394
|
function g(t) {
|
|
6396
6395
|
return t && t.__esModule ? t : { default: t };
|
|
6397
6396
|
}
|
|
6398
|
-
function b(t,
|
|
6399
|
-
if (!(t instanceof
|
|
6397
|
+
function b(t, a) {
|
|
6398
|
+
if (!(t instanceof a))
|
|
6400
6399
|
throw new TypeError("Cannot call a class as a function");
|
|
6401
6400
|
}
|
|
6402
|
-
function d(t,
|
|
6401
|
+
function d(t, a) {
|
|
6403
6402
|
if (!t)
|
|
6404
6403
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6405
|
-
return
|
|
6404
|
+
return a && (typeof a == "object" || typeof a == "function") ? a : t;
|
|
6406
6405
|
}
|
|
6407
|
-
function o(t,
|
|
6408
|
-
if (typeof
|
|
6409
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
6410
|
-
t.prototype = Object.create(
|
|
6406
|
+
function o(t, a) {
|
|
6407
|
+
if (typeof a != "function" && a !== null)
|
|
6408
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof a);
|
|
6409
|
+
t.prototype = Object.create(a && a.prototype, { constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 } }), a && (Object.setPrototypeOf ? Object.setPrototypeOf(t, a) : t.__proto__ = a);
|
|
6411
6410
|
}
|
|
6412
6411
|
var e = function(t) {
|
|
6413
|
-
o(
|
|
6414
|
-
function
|
|
6415
|
-
return b(this,
|
|
6412
|
+
o(a, t);
|
|
6413
|
+
function a() {
|
|
6414
|
+
return b(this, a), d(this, (a.__proto__ || Object.getPrototypeOf(a)).apply(this, arguments));
|
|
6416
6415
|
}
|
|
6417
|
-
return E(
|
|
6416
|
+
return E(a, null, [{
|
|
6418
6417
|
key: "formats",
|
|
6419
6418
|
value: function(s) {
|
|
6420
6419
|
return this.tagName.indexOf(s.tagName) + 1;
|
|
6421
6420
|
}
|
|
6422
|
-
}]),
|
|
6421
|
+
}]), a;
|
|
6423
6422
|
}(O.default);
|
|
6424
6423
|
e.blotName = "header", e.tagName = ["H1", "H2", "H3", "H4", "H5", "H6"], p.default = e;
|
|
6425
6424
|
},
|
|
@@ -6455,10 +6454,10 @@ var Sr = { exports: {} };
|
|
|
6455
6454
|
function t(n) {
|
|
6456
6455
|
return n && n.__esModule ? n : { default: n };
|
|
6457
6456
|
}
|
|
6458
|
-
function
|
|
6457
|
+
function a(n, v, k) {
|
|
6459
6458
|
return v in n ? Object.defineProperty(n, v, { value: k, enumerable: !0, configurable: !0, writable: !0 }) : n[v] = k, n;
|
|
6460
6459
|
}
|
|
6461
|
-
function
|
|
6460
|
+
function l(n, v) {
|
|
6462
6461
|
if (!(n instanceof v))
|
|
6463
6462
|
throw new TypeError("Cannot call a class as a function");
|
|
6464
6463
|
}
|
|
@@ -6475,7 +6474,7 @@ var Sr = { exports: {} };
|
|
|
6475
6474
|
var i = function(n) {
|
|
6476
6475
|
r(v, n);
|
|
6477
6476
|
function v() {
|
|
6478
|
-
return
|
|
6477
|
+
return l(this, v), s(this, (v.__proto__ || Object.getPrototypeOf(v)).apply(this, arguments));
|
|
6479
6478
|
}
|
|
6480
6479
|
return E(v, [{
|
|
6481
6480
|
key: "format",
|
|
@@ -6517,7 +6516,7 @@ var Sr = { exports: {} };
|
|
|
6517
6516
|
}
|
|
6518
6517
|
}]);
|
|
6519
6518
|
function v(k) {
|
|
6520
|
-
|
|
6519
|
+
l(this, v);
|
|
6521
6520
|
var T = s(this, (v.__proto__ || Object.getPrototypeOf(v)).call(this, k)), S = function(A) {
|
|
6522
6521
|
if (A.target.parentNode === k) {
|
|
6523
6522
|
var y = T.statics.formats(k), w = g.default.find(A.target);
|
|
@@ -6534,7 +6533,7 @@ var Sr = { exports: {} };
|
|
|
6534
6533
|
}, {
|
|
6535
6534
|
key: "formats",
|
|
6536
6535
|
value: function() {
|
|
6537
|
-
return
|
|
6536
|
+
return a({}, this.statics.blotName, this.statics.formats(this.domNode));
|
|
6538
6537
|
}
|
|
6539
6538
|
}, {
|
|
6540
6539
|
key: "insertBefore",
|
|
@@ -6606,21 +6605,21 @@ var Sr = { exports: {} };
|
|
|
6606
6605
|
value: !0
|
|
6607
6606
|
});
|
|
6608
6607
|
var E = function() {
|
|
6609
|
-
function l
|
|
6608
|
+
function a(l, s) {
|
|
6610
6609
|
for (var r = 0; r < s.length; r++) {
|
|
6611
6610
|
var i = s[r];
|
|
6612
|
-
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(
|
|
6611
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(l, i.key, i);
|
|
6613
6612
|
}
|
|
6614
6613
|
}
|
|
6615
|
-
return function(
|
|
6616
|
-
return s && l
|
|
6614
|
+
return function(l, s, r) {
|
|
6615
|
+
return s && a(l.prototype, s), r && a(l, r), l;
|
|
6617
6616
|
};
|
|
6618
|
-
}(), _ = function l
|
|
6619
|
-
|
|
6620
|
-
var i = Object.getOwnPropertyDescriptor(
|
|
6617
|
+
}(), _ = function a(l, s, r) {
|
|
6618
|
+
l === null && (l = Function.prototype);
|
|
6619
|
+
var i = Object.getOwnPropertyDescriptor(l, s);
|
|
6621
6620
|
if (i === void 0) {
|
|
6622
|
-
var h = Object.getPrototypeOf(
|
|
6623
|
-
return h === null ? void 0 :
|
|
6621
|
+
var h = Object.getPrototypeOf(l);
|
|
6622
|
+
return h === null ? void 0 : a(h, s, r);
|
|
6624
6623
|
} else {
|
|
6625
6624
|
if ("value" in i)
|
|
6626
6625
|
return i.value;
|
|
@@ -6628,32 +6627,32 @@ var Sr = { exports: {} };
|
|
|
6628
6627
|
return n === void 0 ? void 0 : n.call(r);
|
|
6629
6628
|
}
|
|
6630
6629
|
}, O = f(6), g = b(O);
|
|
6631
|
-
function b(
|
|
6632
|
-
return
|
|
6630
|
+
function b(a) {
|
|
6631
|
+
return a && a.__esModule ? a : { default: a };
|
|
6633
6632
|
}
|
|
6634
|
-
function d(
|
|
6635
|
-
if (!(
|
|
6633
|
+
function d(a, l) {
|
|
6634
|
+
if (!(a instanceof l))
|
|
6636
6635
|
throw new TypeError("Cannot call a class as a function");
|
|
6637
6636
|
}
|
|
6638
|
-
function o(
|
|
6639
|
-
if (!
|
|
6637
|
+
function o(a, l) {
|
|
6638
|
+
if (!a)
|
|
6640
6639
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6641
|
-
return
|
|
6640
|
+
return l && (typeof l == "object" || typeof l == "function") ? l : a;
|
|
6642
6641
|
}
|
|
6643
|
-
function e(
|
|
6644
|
-
if (typeof
|
|
6645
|
-
throw new TypeError("Super expression must either be null or a function, not " + typeof
|
|
6646
|
-
|
|
6642
|
+
function e(a, l) {
|
|
6643
|
+
if (typeof l != "function" && l !== null)
|
|
6644
|
+
throw new TypeError("Super expression must either be null or a function, not " + typeof l);
|
|
6645
|
+
a.prototype = Object.create(l && l.prototype, { constructor: { value: a, enumerable: !1, writable: !0, configurable: !0 } }), l && (Object.setPrototypeOf ? Object.setPrototypeOf(a, l) : a.__proto__ = l);
|
|
6647
6646
|
}
|
|
6648
|
-
var t = function(
|
|
6649
|
-
e(
|
|
6650
|
-
function
|
|
6651
|
-
return d(this,
|
|
6647
|
+
var t = function(a) {
|
|
6648
|
+
e(l, a);
|
|
6649
|
+
function l() {
|
|
6650
|
+
return d(this, l), o(this, (l.__proto__ || Object.getPrototypeOf(l)).apply(this, arguments));
|
|
6652
6651
|
}
|
|
6653
|
-
return E(
|
|
6652
|
+
return E(l, null, [{
|
|
6654
6653
|
key: "create",
|
|
6655
6654
|
value: function(r) {
|
|
6656
|
-
return r === "super" ? document.createElement("sup") : r === "sub" ? document.createElement("sub") : _(
|
|
6655
|
+
return r === "super" ? document.createElement("sup") : r === "sub" ? document.createElement("sub") : _(l.__proto__ || Object.getPrototypeOf(l), "create", this).call(this, r);
|
|
6657
6656
|
}
|
|
6658
6657
|
}, {
|
|
6659
6658
|
key: "formats",
|
|
@@ -6663,7 +6662,7 @@ var Sr = { exports: {} };
|
|
|
6663
6662
|
if (r.tagName === "SUP")
|
|
6664
6663
|
return "super";
|
|
6665
6664
|
}
|
|
6666
|
-
}]),
|
|
6665
|
+
}]), l;
|
|
6667
6666
|
}(g.default);
|
|
6668
6667
|
t.blotName = "script", t.tagName = ["SUB", "SUP"], p.default = t;
|
|
6669
6668
|
},
|
|
@@ -6779,7 +6778,7 @@ var Sr = { exports: {} };
|
|
|
6779
6778
|
throw new TypeError("Super expression must either be null or a function, not " + typeof r);
|
|
6780
6779
|
s.prototype = Object.create(r && r.prototype, { constructor: { value: s, enumerable: !1, writable: !0, configurable: !0 } }), r && (Object.setPrototypeOf ? Object.setPrototypeOf(s, r) : s.__proto__ = r);
|
|
6781
6780
|
}
|
|
6782
|
-
var
|
|
6781
|
+
var a = ["alt", "height", "width"], l = function(s) {
|
|
6783
6782
|
t(r, s);
|
|
6784
6783
|
function r() {
|
|
6785
6784
|
return o(this, r), e(this, (r.__proto__ || Object.getPrototypeOf(r)).apply(this, arguments));
|
|
@@ -6787,7 +6786,7 @@ var Sr = { exports: {} };
|
|
|
6787
6786
|
return E(r, [{
|
|
6788
6787
|
key: "format",
|
|
6789
6788
|
value: function(h, n) {
|
|
6790
|
-
|
|
6789
|
+
a.indexOf(h) > -1 ? n ? this.domNode.setAttribute(h, n) : this.domNode.removeAttribute(h) : _(r.prototype.__proto__ || Object.getPrototypeOf(r.prototype), "format", this).call(this, h, n);
|
|
6791
6790
|
}
|
|
6792
6791
|
}], [{
|
|
6793
6792
|
key: "create",
|
|
@@ -6798,7 +6797,7 @@ var Sr = { exports: {} };
|
|
|
6798
6797
|
}, {
|
|
6799
6798
|
key: "formats",
|
|
6800
6799
|
value: function(h) {
|
|
6801
|
-
return
|
|
6800
|
+
return a.reduce(function(n, v) {
|
|
6802
6801
|
return h.hasAttribute(v) && (n[v] = h.getAttribute(v)), n;
|
|
6803
6802
|
}, {});
|
|
6804
6803
|
}
|
|
@@ -6819,7 +6818,7 @@ var Sr = { exports: {} };
|
|
|
6819
6818
|
}
|
|
6820
6819
|
}]), r;
|
|
6821
6820
|
}(g.default.Embed);
|
|
6822
|
-
|
|
6821
|
+
l.blotName = "image", l.tagName = "IMG", p.default = l;
|
|
6823
6822
|
},
|
|
6824
6823
|
/* 73 */
|
|
6825
6824
|
/***/
|
|
@@ -6867,7 +6866,7 @@ var Sr = { exports: {} };
|
|
|
6867
6866
|
throw new TypeError("Super expression must either be null or a function, not " + typeof r);
|
|
6868
6867
|
s.prototype = Object.create(r && r.prototype, { constructor: { value: s, enumerable: !1, writable: !0, configurable: !0 } }), r && (Object.setPrototypeOf ? Object.setPrototypeOf(s, r) : s.__proto__ = r);
|
|
6869
6868
|
}
|
|
6870
|
-
var
|
|
6869
|
+
var a = ["height", "width"], l = function(s) {
|
|
6871
6870
|
t(r, s);
|
|
6872
6871
|
function r() {
|
|
6873
6872
|
return o(this, r), e(this, (r.__proto__ || Object.getPrototypeOf(r)).apply(this, arguments));
|
|
@@ -6875,7 +6874,7 @@ var Sr = { exports: {} };
|
|
|
6875
6874
|
return E(r, [{
|
|
6876
6875
|
key: "format",
|
|
6877
6876
|
value: function(h, n) {
|
|
6878
|
-
|
|
6877
|
+
a.indexOf(h) > -1 ? n ? this.domNode.setAttribute(h, n) : this.domNode.removeAttribute(h) : _(r.prototype.__proto__ || Object.getPrototypeOf(r.prototype), "format", this).call(this, h, n);
|
|
6879
6878
|
}
|
|
6880
6879
|
}], [{
|
|
6881
6880
|
key: "create",
|
|
@@ -6886,7 +6885,7 @@ var Sr = { exports: {} };
|
|
|
6886
6885
|
}, {
|
|
6887
6886
|
key: "formats",
|
|
6888
6887
|
value: function(h) {
|
|
6889
|
-
return
|
|
6888
|
+
return a.reduce(function(n, v) {
|
|
6890
6889
|
return h.hasAttribute(v) && (n[v] = h.getAttribute(v)), n;
|
|
6891
6890
|
}, {});
|
|
6892
6891
|
}
|
|
@@ -6902,7 +6901,7 @@ var Sr = { exports: {} };
|
|
|
6902
6901
|
}
|
|
6903
6902
|
}]), r;
|
|
6904
6903
|
}(O.BlockEmbed);
|
|
6905
|
-
|
|
6904
|
+
l.blotName = "video", l.className = "ql-video", l.tagName = "IFRAME", p.default = l;
|
|
6906
6905
|
},
|
|
6907
6906
|
/* 74 */
|
|
6908
6907
|
/***/
|
|
@@ -6936,11 +6935,11 @@ var Sr = { exports: {} };
|
|
|
6936
6935
|
function t(h) {
|
|
6937
6936
|
return h && h.__esModule ? h : { default: h };
|
|
6938
6937
|
}
|
|
6939
|
-
function
|
|
6938
|
+
function a(h, n) {
|
|
6940
6939
|
if (!(h instanceof n))
|
|
6941
6940
|
throw new TypeError("Cannot call a class as a function");
|
|
6942
6941
|
}
|
|
6943
|
-
function
|
|
6942
|
+
function l(h, n) {
|
|
6944
6943
|
if (!h)
|
|
6945
6944
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6946
6945
|
return n && (typeof n == "object" || typeof n == "function") ? n : h;
|
|
@@ -6953,7 +6952,7 @@ var Sr = { exports: {} };
|
|
|
6953
6952
|
var r = function(h) {
|
|
6954
6953
|
s(n, h);
|
|
6955
6954
|
function n() {
|
|
6956
|
-
return
|
|
6955
|
+
return a(this, n), l(this, (n.__proto__ || Object.getPrototypeOf(n)).apply(this, arguments));
|
|
6957
6956
|
}
|
|
6958
6957
|
return E(n, null, [{
|
|
6959
6958
|
key: "create",
|
|
@@ -6980,8 +6979,8 @@ var Sr = { exports: {} };
|
|
|
6980
6979
|
}
|
|
6981
6980
|
}]);
|
|
6982
6981
|
function n() {
|
|
6983
|
-
|
|
6984
|
-
var v =
|
|
6982
|
+
a(this, n);
|
|
6983
|
+
var v = l(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this));
|
|
6985
6984
|
if (window.katex == null)
|
|
6986
6985
|
throw new Error("Formula module requires KaTeX.");
|
|
6987
6986
|
return v;
|
|
@@ -7018,8 +7017,8 @@ var Sr = { exports: {} };
|
|
|
7018
7017
|
var w = A.get;
|
|
7019
7018
|
return w === void 0 ? void 0 : w.call(L);
|
|
7020
7019
|
}
|
|
7021
|
-
}, O = f(0), g =
|
|
7022
|
-
function
|
|
7020
|
+
}, O = f(0), g = l(O), b = f(5), d = l(b), o = f(9), e = l(o), t = f(13), a = l(t);
|
|
7021
|
+
function l(k) {
|
|
7023
7022
|
return k && k.__esModule ? k : { default: k };
|
|
7024
7023
|
}
|
|
7025
7024
|
function s(k, T) {
|
|
@@ -7053,7 +7052,7 @@ var Sr = { exports: {} };
|
|
|
7053
7052
|
this.cachedText !== A && ((A.trim().length > 0 || this.cachedText == null) && (this.domNode.innerHTML = L(A), this.domNode.normalize(), this.attach()), this.cachedText = A);
|
|
7054
7053
|
}
|
|
7055
7054
|
}]), T;
|
|
7056
|
-
}(
|
|
7055
|
+
}(a.default);
|
|
7057
7056
|
h.className = "ql-syntax";
|
|
7058
7057
|
var n = new g.default.Attributor.Class("token", "hljs", {
|
|
7059
7058
|
scope: g.default.Scope.INLINE
|
|
@@ -7288,7 +7287,7 @@ var Sr = { exports: {} };
|
|
|
7288
7287
|
return function(S, L, A) {
|
|
7289
7288
|
return L && T(S.prototype, L), A && T(S, A), S;
|
|
7290
7289
|
};
|
|
7291
|
-
}(), O = f(3), g = s(O), b = f(8), d = s(b), o = f(43), e = s(o), t = f(15),
|
|
7290
|
+
}(), O = f(3), g = s(O), b = f(8), d = s(b), o = f(43), e = s(o), t = f(15), a = f(41), l = s(a);
|
|
7292
7291
|
function s(T) {
|
|
7293
7292
|
return T && T.__esModule ? T : { default: T };
|
|
7294
7293
|
}
|
|
@@ -7316,7 +7315,7 @@ var Sr = { exports: {} };
|
|
|
7316
7315
|
return _(S, [{
|
|
7317
7316
|
key: "extendToolbar",
|
|
7318
7317
|
value: function(A) {
|
|
7319
|
-
this.tooltip = new k(this.quill, this.options.bounds), this.tooltip.root.appendChild(A.container), this.buildButtons([].slice.call(A.container.querySelectorAll("button")),
|
|
7318
|
+
this.tooltip = new k(this.quill, this.options.bounds), this.tooltip.root.appendChild(A.container), this.buildButtons([].slice.call(A.container.querySelectorAll("button")), l.default), this.buildPickers([].slice.call(A.container.querySelectorAll("select")), l.default);
|
|
7320
7319
|
}
|
|
7321
7320
|
}]), S;
|
|
7322
7321
|
}(e.default);
|
|
@@ -7340,11 +7339,11 @@ var Sr = { exports: {} };
|
|
|
7340
7339
|
if (w === d.default.events.SELECTION_CHANGE)
|
|
7341
7340
|
if (N != null && N.length > 0 && B === d.default.sources.USER) {
|
|
7342
7341
|
y.show(), y.root.style.left = "0px", y.root.style.width = "", y.root.style.width = y.root.offsetWidth + "px";
|
|
7343
|
-
var
|
|
7344
|
-
if (
|
|
7342
|
+
var $ = y.quill.getLines(N.index, N.length);
|
|
7343
|
+
if ($.length === 1)
|
|
7345
7344
|
y.position(y.quill.getBounds(N));
|
|
7346
7345
|
else {
|
|
7347
|
-
var z =
|
|
7346
|
+
var z = $[$.length - 1], J = y.quill.getIndex(z), H = Math.min(z.length() - 1, N.index + N.length - J), I = y.quill.getBounds(new t.Range(J, H));
|
|
7348
7347
|
y.position(I);
|
|
7349
7348
|
}
|
|
7350
7349
|
} else
|
|
@@ -7394,7 +7393,7 @@ var Sr = { exports: {} };
|
|
|
7394
7393
|
});
|
|
7395
7394
|
})(Sr);
|
|
7396
7395
|
var zr = Sr.exports;
|
|
7397
|
-
const Yn = /* @__PURE__ */
|
|
7396
|
+
const Yn = /* @__PURE__ */ Tr(zr);
|
|
7398
7397
|
var Ze = -1, He = 1, Ie = 0;
|
|
7399
7398
|
function Dt(m, j, c, p) {
|
|
7400
7399
|
if (m === j)
|
|
@@ -7437,7 +7436,7 @@ function Gr(m, j) {
|
|
|
7437
7436
|
for (var c = m.length, p = j.length, f = Math.ceil((c + p) / 2), E = f, _ = 2 * f, O = new Array(_), g = new Array(_), b = 0; b < _; b++)
|
|
7438
7437
|
O[b] = -1, g[b] = -1;
|
|
7439
7438
|
O[E + 1] = 0, g[E + 1] = 0;
|
|
7440
|
-
for (var d = c - p, o = d % 2 !== 0, e = 0, t = 0,
|
|
7439
|
+
for (var d = c - p, o = d % 2 !== 0, e = 0, t = 0, a = 0, l = 0, s = 0; s < f; s++) {
|
|
7441
7440
|
for (var r = -s + e; r <= s - t; r += 2) {
|
|
7442
7441
|
var i = E + r, h;
|
|
7443
7442
|
r === -s || r !== s && O[i - 1] < O[i + 1] ? h = O[i + 1] : h = O[i - 1] + 1;
|
|
@@ -7456,15 +7455,15 @@ function Gr(m, j) {
|
|
|
7456
7455
|
}
|
|
7457
7456
|
}
|
|
7458
7457
|
}
|
|
7459
|
-
for (var T = -s +
|
|
7458
|
+
for (var T = -s + a; T <= s - l; T += 2) {
|
|
7460
7459
|
var v = E + T, k;
|
|
7461
7460
|
T === -s || T !== s && g[v - 1] < g[v + 1] ? k = g[v + 1] : k = g[v - 1] + 1;
|
|
7462
7461
|
for (var S = k - T; k < c && S < p && m.charAt(c - k - 1) === j.charAt(p - S - 1); )
|
|
7463
7462
|
k++, S++;
|
|
7464
7463
|
if (g[v] = k, k > c)
|
|
7465
|
-
a += 2;
|
|
7466
|
-
else if (S > p)
|
|
7467
7464
|
l += 2;
|
|
7465
|
+
else if (S > p)
|
|
7466
|
+
a += 2;
|
|
7468
7467
|
else if (!o) {
|
|
7469
7468
|
var i = E + d - T;
|
|
7470
7469
|
if (i >= 0 && i < _ && O[i] !== -1) {
|
|
@@ -7499,19 +7498,19 @@ function Zr(m, j) {
|
|
|
7499
7498
|
var c = m.length > j.length ? m : j, p = m.length > j.length ? j : m;
|
|
7500
7499
|
if (c.length < 4 || p.length * 2 < c.length)
|
|
7501
7500
|
return null;
|
|
7502
|
-
function f(t,
|
|
7503
|
-
for (var s = t.substring(
|
|
7501
|
+
function f(t, a, l) {
|
|
7502
|
+
for (var s = t.substring(l, l + Math.floor(t.length / 4)), r = -1, i = "", h, n, v, k; (r = a.indexOf(s, r + 1)) !== -1; ) {
|
|
7504
7503
|
var T = rr(
|
|
7505
|
-
t.substring(
|
|
7506
|
-
|
|
7504
|
+
t.substring(l),
|
|
7505
|
+
a.substring(r)
|
|
7507
7506
|
), S = ir(
|
|
7508
|
-
t.substring(0,
|
|
7509
|
-
|
|
7507
|
+
t.substring(0, l),
|
|
7508
|
+
a.substring(0, r)
|
|
7510
7509
|
);
|
|
7511
|
-
i.length < S + T && (i =
|
|
7510
|
+
i.length < S + T && (i = a.substring(
|
|
7512
7511
|
r - S,
|
|
7513
7512
|
r
|
|
7514
|
-
) +
|
|
7513
|
+
) + a.substring(r, r + T), h = t.substring(0, l - S), n = t.substring(l + T), v = a.substring(0, r - S), k = a.substring(r + T));
|
|
7515
7514
|
}
|
|
7516
7515
|
return i.length * 2 >= t.length ? [
|
|
7517
7516
|
h,
|
|
@@ -7615,11 +7614,11 @@ function Yr(m, j, c) {
|
|
|
7615
7614
|
var e = j.slice(0, o), t = j.slice(o);
|
|
7616
7615
|
if (t !== b)
|
|
7617
7616
|
break e;
|
|
7618
|
-
var
|
|
7619
|
-
if (
|
|
7617
|
+
var a = Math.min(O, o), l = g.slice(0, a), s = e.slice(0, a);
|
|
7618
|
+
if (l !== s)
|
|
7620
7619
|
break e;
|
|
7621
|
-
var r = g.slice(
|
|
7622
|
-
return Xn(
|
|
7620
|
+
var r = g.slice(a), i = e.slice(a);
|
|
7621
|
+
return Xn(l, r, i, b);
|
|
7623
7622
|
}
|
|
7624
7623
|
e: {
|
|
7625
7624
|
if (d !== null && d !== O)
|
|
@@ -7636,14 +7635,14 @@ function Yr(m, j, c) {
|
|
|
7636
7635
|
}
|
|
7637
7636
|
if (p.length > 0 && f && f.length === 0)
|
|
7638
7637
|
e: {
|
|
7639
|
-
var
|
|
7640
|
-
if (_ <
|
|
7638
|
+
var l = m.slice(0, p.index), v = m.slice(p.index + p.length), a = l.length, n = v.length;
|
|
7639
|
+
if (_ < a + n)
|
|
7641
7640
|
break e;
|
|
7642
|
-
var s = j.slice(0,
|
|
7643
|
-
if (
|
|
7641
|
+
var s = j.slice(0, a), k = j.slice(_ - n);
|
|
7642
|
+
if (l !== s || v !== k)
|
|
7644
7643
|
break e;
|
|
7645
|
-
var r = m.slice(
|
|
7646
|
-
return Xn(
|
|
7644
|
+
var r = m.slice(a, E - n), i = j.slice(a, _ - n);
|
|
7645
|
+
return Xn(l, r, i, v);
|
|
7647
7646
|
}
|
|
7648
7647
|
return null;
|
|
7649
7648
|
}
|
|
@@ -7656,9 +7655,9 @@ fn.EQUAL = Ie;
|
|
|
7656
7655
|
var Xr = fn, un = { exports: {} };
|
|
7657
7656
|
un.exports;
|
|
7658
7657
|
(function(m, j) {
|
|
7659
|
-
var c = 200, p = "__lodash_hash_undefined__", f = 9007199254740991, E = "[object Arguments]", _ = "[object Array]", O = "[object Boolean]", g = "[object Date]", b = "[object Error]", d = "[object Function]", o = "[object GeneratorFunction]", e = "[object Map]", t = "[object Number]",
|
|
7660
|
-
I[E] = I[_] = I[v] = I[k] = I[O] = I[g] = I[T] = I[S] = I[L] = I[A] = I[y] = I[e] = I[t] = I[
|
|
7661
|
-
var P = typeof Se == "object" && Se && Se.Object === Object && Se, M = typeof self == "object" && self && self.Object === Object && self, D = P || M || Function("return this")(),
|
|
7658
|
+
var c = 200, p = "__lodash_hash_undefined__", f = 9007199254740991, E = "[object Arguments]", _ = "[object Array]", O = "[object Boolean]", g = "[object Date]", b = "[object Error]", d = "[object Function]", o = "[object GeneratorFunction]", e = "[object Map]", t = "[object Number]", a = "[object Object]", l = "[object Promise]", s = "[object RegExp]", r = "[object Set]", i = "[object String]", h = "[object Symbol]", n = "[object WeakMap]", v = "[object ArrayBuffer]", k = "[object DataView]", T = "[object Float32Array]", S = "[object Float64Array]", L = "[object Int8Array]", A = "[object Int16Array]", y = "[object Int32Array]", w = "[object Uint8Array]", N = "[object Uint8ClampedArray]", q = "[object Uint16Array]", B = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, z = /\w*$/, J = /^\[object .+?Constructor\]$/, H = /^(?:0|[1-9]\d*)$/, I = {};
|
|
7659
|
+
I[E] = I[_] = I[v] = I[k] = I[O] = I[g] = I[T] = I[S] = I[L] = I[A] = I[y] = I[e] = I[t] = I[a] = I[s] = I[r] = I[i] = I[h] = I[w] = I[N] = I[q] = I[B] = !0, I[b] = I[d] = I[n] = !1;
|
|
7660
|
+
var P = typeof Se == "object" && Se && Se.Object === Object && Se, M = typeof self == "object" && self && self.Object === Object && self, D = P || M || Function("return this")(), V = j && !j.nodeType && j, F = V && !0 && m && !m.nodeType && m, R = F && F.exports === V;
|
|
7662
7661
|
function U(u, x) {
|
|
7663
7662
|
return u.set(x[0], x[1]), u;
|
|
7664
7663
|
}
|
|
@@ -7686,7 +7685,7 @@ un.exports;
|
|
|
7686
7685
|
Z[C] = x(C);
|
|
7687
7686
|
return Z;
|
|
7688
7687
|
}
|
|
7689
|
-
function
|
|
7688
|
+
function ae(u, x) {
|
|
7690
7689
|
return u?.[x];
|
|
7691
7690
|
}
|
|
7692
7691
|
function fe(u) {
|
|
@@ -7718,8 +7717,8 @@ un.exports;
|
|
|
7718
7717
|
var W = Array.prototype, Y = Function.prototype, ee = Object.prototype, te = D["__core-js_shared__"], Q = function() {
|
|
7719
7718
|
var u = /[^.]+$/.exec(te && te.keys && te.keys.IE_PROTO || "");
|
|
7720
7719
|
return u ? "Symbol(src)_1." + u : "";
|
|
7721
|
-
}(), se = Y.toString, oe = ee.hasOwnProperty,
|
|
7722
|
-
"^" + se.call(oe).replace(
|
|
7720
|
+
}(), se = Y.toString, oe = ee.hasOwnProperty, le = ee.toString, ke = RegExp(
|
|
7721
|
+
"^" + se.call(oe).replace($, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
7723
7722
|
), Ee = R ? D.Buffer : void 0, ve = D.Symbol, tt = D.Uint8Array, de = be(Object.getPrototypeOf, Object), Me = Object.create, Ct = ee.propertyIsEnumerable, cn = W.splice, _t = Object.getOwnPropertySymbols, ut = Ee ? Ee.isBuffer : void 0, Ft = be(Object.keys, Object), st = Fe(D, "DataView"), nt = Fe(D, "Map"), Ce = Fe(D, "Promise"), ft = Fe(D, "Set"), Ot = Fe(D, "WeakMap"), rt = Fe(Object, "create"), Et = qe(st), it = qe(nt), wt = qe(Ce), At = qe(ft), Tt = qe(Ot), Je = ve ? ve.prototype : void 0, Ut = Je ? Je.valueOf : void 0;
|
|
7724
7723
|
function We(u) {
|
|
7725
7724
|
var x = -1, C = u ? u.length : 0;
|
|
@@ -7795,16 +7794,16 @@ un.exports;
|
|
|
7795
7794
|
};
|
|
7796
7795
|
}
|
|
7797
7796
|
function On(u) {
|
|
7798
|
-
return
|
|
7797
|
+
return at(this, u).delete(u);
|
|
7799
7798
|
}
|
|
7800
7799
|
function En(u) {
|
|
7801
|
-
return
|
|
7800
|
+
return at(this, u).get(u);
|
|
7802
7801
|
}
|
|
7803
7802
|
function wn(u) {
|
|
7804
|
-
return
|
|
7803
|
+
return at(this, u).has(u);
|
|
7805
7804
|
}
|
|
7806
7805
|
function An(u, x) {
|
|
7807
|
-
return
|
|
7806
|
+
return at(this, u).set(u, x), this;
|
|
7808
7807
|
}
|
|
7809
7808
|
Ne.prototype.clear = _n, Ne.prototype.delete = On, Ne.prototype.get = En, Ne.prototype.has = wn, Ne.prototype.set = An;
|
|
7810
7809
|
function Re(u) {
|
|
@@ -7836,10 +7835,10 @@ un.exports;
|
|
|
7836
7835
|
function ct(u, x) {
|
|
7837
7836
|
var C = xt(u) || pt(u) ? ie(u.length, String) : [], Z = C.length, ue = !!Z;
|
|
7838
7837
|
for (var re in u)
|
|
7839
|
-
(x || oe.call(u, re)) && !(ue && (re == "length" ||
|
|
7838
|
+
(x || oe.call(u, re)) && !(ue && (re == "length" || $n(re, Z))) && C.push(re);
|
|
7840
7839
|
return C;
|
|
7841
7840
|
}
|
|
7842
|
-
function
|
|
7841
|
+
function $t(u, x, C) {
|
|
7843
7842
|
var Z = u[x];
|
|
7844
7843
|
(!(oe.call(u, x) && Zt(Z, C)) || C === void 0 && !(x in u)) && (u[x] = C);
|
|
7845
7844
|
}
|
|
@@ -7849,7 +7848,7 @@ un.exports;
|
|
|
7849
7848
|
return C;
|
|
7850
7849
|
return -1;
|
|
7851
7850
|
}
|
|
7852
|
-
function
|
|
7851
|
+
function $e(u, x) {
|
|
7853
7852
|
return u && Pt(x, qt(x), u);
|
|
7854
7853
|
}
|
|
7855
7854
|
function kt(u, x, C, Z, ue, re, ce) {
|
|
@@ -7866,11 +7865,11 @@ un.exports;
|
|
|
7866
7865
|
var ye = Xe(u), Pe = ye == d || ye == o;
|
|
7867
7866
|
if (Wt(u))
|
|
7868
7867
|
return dt(u, x);
|
|
7869
|
-
if (ye ==
|
|
7868
|
+
if (ye == a || ye == E || Pe && !re) {
|
|
7870
7869
|
if (fe(u))
|
|
7871
7870
|
return re ? u : {};
|
|
7872
|
-
if (pe =
|
|
7873
|
-
return Cn(u,
|
|
7871
|
+
if (pe = Ve(Pe ? {} : u), !x)
|
|
7872
|
+
return Cn(u, $e(pe, u));
|
|
7874
7873
|
} else {
|
|
7875
7874
|
if (!I[ye])
|
|
7876
7875
|
return re ? u : {};
|
|
@@ -7884,7 +7883,7 @@ un.exports;
|
|
|
7884
7883
|
if (ce.set(u, pe), !_e)
|
|
7885
7884
|
var Oe = C ? Fn(u) : qt(u);
|
|
7886
7885
|
return G(Oe || u, function(xe, Ae) {
|
|
7887
|
-
Oe && (Ae = xe, xe = u[Ae]),
|
|
7886
|
+
Oe && (Ae = xe, xe = u[Ae]), $t(pe, Ae, kt(xe, x, C, Z, Ae, u, ce));
|
|
7888
7887
|
}), pe;
|
|
7889
7888
|
}
|
|
7890
7889
|
function xn(u) {
|
|
@@ -7895,7 +7894,7 @@ un.exports;
|
|
|
7895
7894
|
return xt(u) ? Z : X(Z, C(u));
|
|
7896
7895
|
}
|
|
7897
7896
|
function qn(u) {
|
|
7898
|
-
return
|
|
7897
|
+
return le.call(u);
|
|
7899
7898
|
}
|
|
7900
7899
|
function Rn(u) {
|
|
7901
7900
|
if (!ze(u) || zn(u))
|
|
@@ -7925,7 +7924,7 @@ un.exports;
|
|
|
7925
7924
|
var C = x ? Nt(u.buffer) : u.buffer;
|
|
7926
7925
|
return new u.constructor(C, u.byteOffset, u.byteLength);
|
|
7927
7926
|
}
|
|
7928
|
-
function
|
|
7927
|
+
function Vt(u, x, C) {
|
|
7929
7928
|
var Z = x ? C(he(u), !0) : he(u);
|
|
7930
7929
|
return ne(Z, U, new u.constructor());
|
|
7931
7930
|
}
|
|
@@ -7954,7 +7953,7 @@ un.exports;
|
|
|
7954
7953
|
C || (C = {});
|
|
7955
7954
|
for (var ue = -1, re = x.length; ++ue < re; ) {
|
|
7956
7955
|
var ce = x[ue], pe = Z ? Z(C[ce], u[ce], ce, C, u) : void 0;
|
|
7957
|
-
|
|
7956
|
+
$t(C, ce, pe === void 0 ? u[ce] : pe);
|
|
7958
7957
|
}
|
|
7959
7958
|
return C;
|
|
7960
7959
|
}
|
|
@@ -7964,17 +7963,17 @@ un.exports;
|
|
|
7964
7963
|
function Fn(u) {
|
|
7965
7964
|
return Ln(u, qt, Ye);
|
|
7966
7965
|
}
|
|
7967
|
-
function
|
|
7966
|
+
function at(u, x) {
|
|
7968
7967
|
var C = u.__data__;
|
|
7969
|
-
return
|
|
7968
|
+
return Vn(x) ? C[typeof x == "string" ? "string" : "hash"] : C.map;
|
|
7970
7969
|
}
|
|
7971
7970
|
function Fe(u, x) {
|
|
7972
|
-
var C =
|
|
7971
|
+
var C = ae(u, x);
|
|
7973
7972
|
return Rn(C) ? C : void 0;
|
|
7974
7973
|
}
|
|
7975
7974
|
var Ye = _t ? be(_t, Object) : Gn, Xe = qn;
|
|
7976
|
-
(st && Xe(new st(new ArrayBuffer(1))) != k || nt && Xe(new nt()) != e || Ce && Xe(Ce.resolve()) !=
|
|
7977
|
-
var x =
|
|
7975
|
+
(st && Xe(new st(new ArrayBuffer(1))) != k || nt && Xe(new nt()) != e || Ce && Xe(Ce.resolve()) != l || ft && Xe(new ft()) != r || Ot && Xe(new Ot()) != n) && (Xe = function(u) {
|
|
7976
|
+
var x = le.call(u), C = x == a ? u.constructor : void 0, Z = C ? qe(C) : void 0;
|
|
7978
7977
|
if (Z)
|
|
7979
7978
|
switch (Z) {
|
|
7980
7979
|
case Et:
|
|
@@ -7982,7 +7981,7 @@ un.exports;
|
|
|
7982
7981
|
case it:
|
|
7983
7982
|
return e;
|
|
7984
7983
|
case wt:
|
|
7985
|
-
return
|
|
7984
|
+
return l;
|
|
7986
7985
|
case At:
|
|
7987
7986
|
return r;
|
|
7988
7987
|
case Tt:
|
|
@@ -7994,7 +7993,7 @@ un.exports;
|
|
|
7994
7993
|
var x = u.length, C = u.constructor(x);
|
|
7995
7994
|
return x && typeof u[0] == "string" && oe.call(u, "index") && (C.index = u.index, C.input = u.input), C;
|
|
7996
7995
|
}
|
|
7997
|
-
function
|
|
7996
|
+
function Ve(u) {
|
|
7998
7997
|
return typeof u.constructor == "function" && !Kt(u) ? xn(de(u)) : {};
|
|
7999
7998
|
}
|
|
8000
7999
|
function Hn(u, x, C, Z) {
|
|
@@ -8018,7 +8017,7 @@ un.exports;
|
|
|
8018
8017
|
case B:
|
|
8019
8018
|
return Dn(u, Z);
|
|
8020
8019
|
case e:
|
|
8021
|
-
return
|
|
8020
|
+
return Vt(u, Z, C);
|
|
8022
8021
|
case t:
|
|
8023
8022
|
case i:
|
|
8024
8023
|
return new ue(u);
|
|
@@ -8030,10 +8029,10 @@ un.exports;
|
|
|
8030
8029
|
return Mn(u);
|
|
8031
8030
|
}
|
|
8032
8031
|
}
|
|
8033
|
-
function
|
|
8032
|
+
function $n(u, x) {
|
|
8034
8033
|
return x = x ?? f, !!x && (typeof u == "number" || H.test(u)) && u > -1 && u % 1 == 0 && u < x;
|
|
8035
8034
|
}
|
|
8036
|
-
function
|
|
8035
|
+
function Vn(u) {
|
|
8037
8036
|
var x = typeof u;
|
|
8038
8037
|
return x == "string" || x == "number" || x == "symbol" || x == "boolean" ? u !== "__proto__" : u === null;
|
|
8039
8038
|
}
|
|
@@ -8064,7 +8063,7 @@ un.exports;
|
|
|
8064
8063
|
return u === x || u !== u && x !== x;
|
|
8065
8064
|
}
|
|
8066
8065
|
function pt(u) {
|
|
8067
|
-
return Kn(u) && oe.call(u, "callee") && (!Ct.call(u, "callee") ||
|
|
8066
|
+
return Kn(u) && oe.call(u, "callee") && (!Ct.call(u, "callee") || le.call(u) == E);
|
|
8068
8067
|
}
|
|
8069
8068
|
var xt = Array.isArray;
|
|
8070
8069
|
function vt(u) {
|
|
@@ -8075,7 +8074,7 @@ un.exports;
|
|
|
8075
8074
|
}
|
|
8076
8075
|
var Wt = ut || Zn;
|
|
8077
8076
|
function Lt(u) {
|
|
8078
|
-
var x = ze(u) ?
|
|
8077
|
+
var x = ze(u) ? le.call(u) : "";
|
|
8079
8078
|
return x == d || x == o;
|
|
8080
8079
|
}
|
|
8081
8080
|
function Yt(u) {
|
|
@@ -8102,14 +8101,14 @@ un.exports;
|
|
|
8102
8101
|
var qr = un.exports, sn = { exports: {} };
|
|
8103
8102
|
sn.exports;
|
|
8104
8103
|
(function(m, j) {
|
|
8105
|
-
var c = 200, p = "__lodash_hash_undefined__", f = 1, E = 2, _ = 9007199254740991, O = "[object Arguments]", g = "[object Array]", b = "[object AsyncFunction]", d = "[object Boolean]", o = "[object Date]", e = "[object Error]", t = "[object Function]",
|
|
8106
|
-
F[N] = F[q] = F[B] = F[
|
|
8107
|
-
var R = typeof Se == "object" && Se && Se.Object === Object && Se, U = typeof self == "object" && self && self.Object === Object && self, K = R || U || Function("return this")(), G = j && !j.nodeType && j, X = G && !0 && m && !m.nodeType && m, ne = X && X.exports === G, ie = ne && R.process,
|
|
8104
|
+
var c = 200, p = "__lodash_hash_undefined__", f = 1, E = 2, _ = 9007199254740991, O = "[object Arguments]", g = "[object Array]", b = "[object AsyncFunction]", d = "[object Boolean]", o = "[object Date]", e = "[object Error]", t = "[object Function]", a = "[object GeneratorFunction]", l = "[object Map]", s = "[object Number]", r = "[object Null]", i = "[object Object]", h = "[object Promise]", n = "[object Proxy]", v = "[object RegExp]", k = "[object Set]", T = "[object String]", S = "[object Symbol]", L = "[object Undefined]", A = "[object WeakMap]", y = "[object ArrayBuffer]", w = "[object DataView]", N = "[object Float32Array]", q = "[object Float64Array]", B = "[object Int8Array]", $ = "[object Int16Array]", z = "[object Int32Array]", J = "[object Uint8Array]", H = "[object Uint8ClampedArray]", I = "[object Uint16Array]", P = "[object Uint32Array]", M = /[\\^$.*+?()[\]{}|]/g, D = /^\[object .+?Constructor\]$/, V = /^(?:0|[1-9]\d*)$/, F = {};
|
|
8105
|
+
F[N] = F[q] = F[B] = F[$] = F[z] = F[J] = F[H] = F[I] = F[P] = !0, F[O] = F[g] = F[y] = F[d] = F[w] = F[o] = F[e] = F[t] = F[l] = F[s] = F[i] = F[v] = F[k] = F[T] = F[A] = !1;
|
|
8106
|
+
var R = typeof Se == "object" && Se && Se.Object === Object && Se, U = typeof self == "object" && self && self.Object === Object && self, K = R || U || Function("return this")(), G = j && !j.nodeType && j, X = G && !0 && m && !m.nodeType && m, ne = X && X.exports === G, ie = ne && R.process, ae = function() {
|
|
8108
8107
|
try {
|
|
8109
8108
|
return ie && ie.binding && ie.binding("util");
|
|
8110
8109
|
} catch {
|
|
8111
8110
|
}
|
|
8112
|
-
}(), fe =
|
|
8111
|
+
}(), fe = ae && ae.isTypedArray;
|
|
8113
8112
|
function he(u, x) {
|
|
8114
8113
|
for (var C = -1, Z = u == null ? 0 : u.length, ue = 0, re = []; ++C < Z; ) {
|
|
8115
8114
|
var ce = u[C];
|
|
@@ -8161,12 +8160,12 @@ sn.exports;
|
|
|
8161
8160
|
C[++x] = Z;
|
|
8162
8161
|
}), C;
|
|
8163
8162
|
}
|
|
8164
|
-
var
|
|
8163
|
+
var le = Array.prototype, ke = Function.prototype, Ee = Object.prototype, ve = K["__core-js_shared__"], tt = ke.toString, de = Ee.hasOwnProperty, Me = function() {
|
|
8165
8164
|
var u = /[^.]+$/.exec(ve && ve.keys && ve.keys.IE_PROTO || "");
|
|
8166
8165
|
return u ? "Symbol(src)_1." + u : "";
|
|
8167
8166
|
}(), Ct = Ee.toString, cn = RegExp(
|
|
8168
8167
|
"^" + tt.call(de).replace(M, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
8169
|
-
), _t = ne ? K.Buffer : void 0, ut = K.Symbol, Ft = K.Uint8Array, st = Ee.propertyIsEnumerable, nt =
|
|
8168
|
+
), _t = ne ? K.Buffer : void 0, ut = K.Symbol, Ft = K.Uint8Array, st = Ee.propertyIsEnumerable, nt = le.splice, Ce = ut ? ut.toStringTag : void 0, ft = Object.getOwnPropertySymbols, Ot = _t ? _t.isBuffer : void 0, rt = se(Object.keys, Object), Et = Ye(K, "DataView"), it = Ye(K, "Map"), wt = Ye(K, "Promise"), At = Ye(K, "Set"), Tt = Ye(K, "WeakMap"), Je = Ye(Object, "create"), Ut = qe(Et), We = qe(it), hn = qe(wt), dn = qe(At), pn = qe(Tt), Ht = ut ? ut.prototype : void 0, St = Ht ? Ht.valueOf : void 0;
|
|
8170
8169
|
function we(u) {
|
|
8171
8170
|
var x = -1, C = u == null ? 0 : u.length;
|
|
8172
8171
|
for (this.clear(); ++x < C; ) {
|
|
@@ -8261,14 +8260,14 @@ sn.exports;
|
|
|
8261
8260
|
for (this.__data__ = new Re(); ++x < C; )
|
|
8262
8261
|
this.add(u[x]);
|
|
8263
8262
|
}
|
|
8264
|
-
function
|
|
8263
|
+
function $t(u) {
|
|
8265
8264
|
return this.__data__.set(u, p), this;
|
|
8266
8265
|
}
|
|
8267
8266
|
function ht(u) {
|
|
8268
8267
|
return this.__data__.has(u);
|
|
8269
8268
|
}
|
|
8270
|
-
ct.prototype.add = ct.prototype.push =
|
|
8271
|
-
function
|
|
8269
|
+
ct.prototype.add = ct.prototype.push = $t, ct.prototype.has = ht;
|
|
8270
|
+
function $e(u) {
|
|
8272
8271
|
var x = this.__data__ = new Ne(u);
|
|
8273
8272
|
this.size = x.size;
|
|
8274
8273
|
}
|
|
@@ -8295,7 +8294,7 @@ sn.exports;
|
|
|
8295
8294
|
}
|
|
8296
8295
|
return C.set(u, x), this.size = C.size, this;
|
|
8297
8296
|
}
|
|
8298
|
-
|
|
8297
|
+
$e.prototype.clear = kt, $e.prototype.delete = xn, $e.prototype.get = Ln, $e.prototype.has = qn, $e.prototype.set = Rn;
|
|
8299
8298
|
function jn(u, x) {
|
|
8300
8299
|
var C = pt(u), Z = !C && Zt(u), ue = !C && !Z && vt(u), re = !C && !Z && !ue && Xt(u), ce = C || Z || ue || re, pe = ce ? W(u.length, String) : [], _e = pe.length;
|
|
8301
8300
|
for (var ye in u)
|
|
@@ -8319,14 +8318,14 @@ sn.exports;
|
|
|
8319
8318
|
function ot(u) {
|
|
8320
8319
|
return u == null ? u === void 0 ? L : r : Ce && Ce in Object(u) ? Xe(u) : Kt(u);
|
|
8321
8320
|
}
|
|
8322
|
-
function
|
|
8321
|
+
function Vt(u) {
|
|
8323
8322
|
return ze(u) && ot(u) == O;
|
|
8324
8323
|
}
|
|
8325
8324
|
function zt(u, x, C, Z, ue) {
|
|
8326
8325
|
return u === x ? !0 : u == null || x == null || !ze(u) && !ze(x) ? u !== u && x !== x : In(u, x, C, Z, zt, ue);
|
|
8327
8326
|
}
|
|
8328
8327
|
function In(u, x, C, Z, ue, re) {
|
|
8329
|
-
var ce = pt(u), pe = pt(x), _e = ce ? g :
|
|
8328
|
+
var ce = pt(u), pe = pt(x), _e = ce ? g : Ve(u), ye = pe ? g : Ve(x);
|
|
8330
8329
|
_e = _e == O ? i : _e, ye = ye == O ? i : ye;
|
|
8331
8330
|
var Pe = _e == i, je = ye == i, Oe = _e == ye;
|
|
8332
8331
|
if (Oe && vt(u)) {
|
|
@@ -8335,18 +8334,18 @@ sn.exports;
|
|
|
8335
8334
|
ce = !0, Pe = !1;
|
|
8336
8335
|
}
|
|
8337
8336
|
if (Oe && !Pe)
|
|
8338
|
-
return re || (re = new
|
|
8337
|
+
return re || (re = new $e()), ce || Xt(u) ? Pt(u, x, C, Z, ue, re) : Cn(u, x, _e, C, Z, ue, re);
|
|
8339
8338
|
if (!(C & f)) {
|
|
8340
8339
|
var xe = Pe && de.call(u, "__wrapped__"), Ae = je && de.call(x, "__wrapped__");
|
|
8341
8340
|
if (xe || Ae) {
|
|
8342
8341
|
var et = xe ? u.value() : u, Qe = Ae ? x.value() : x;
|
|
8343
|
-
return re || (re = new
|
|
8342
|
+
return re || (re = new $e()), ue(et, Qe, C, Z, re);
|
|
8344
8343
|
}
|
|
8345
8344
|
}
|
|
8346
|
-
return Oe ? (re || (re = new
|
|
8345
|
+
return Oe ? (re || (re = new $e()), Fn(u, x, C, Z, ue, re)) : !1;
|
|
8347
8346
|
}
|
|
8348
8347
|
function Mn(u) {
|
|
8349
|
-
if (!Yt(u) ||
|
|
8348
|
+
if (!Yt(u) || Vn(u))
|
|
8350
8349
|
return !1;
|
|
8351
8350
|
var x = Wt(u) ? cn : D;
|
|
8352
8351
|
return x.test(qe(u));
|
|
@@ -8381,9 +8380,9 @@ sn.exports;
|
|
|
8381
8380
|
break;
|
|
8382
8381
|
}
|
|
8383
8382
|
if (Oe) {
|
|
8384
|
-
if (!ge(x, function(Qe,
|
|
8385
|
-
if (!ee(Oe,
|
|
8386
|
-
return Oe.push(
|
|
8383
|
+
if (!ge(x, function(Qe, lt) {
|
|
8384
|
+
if (!ee(Oe, lt) && (xe === Qe || ue(xe, Qe, C, Z, re)))
|
|
8385
|
+
return Oe.push(lt);
|
|
8387
8386
|
})) {
|
|
8388
8387
|
je = !1;
|
|
8389
8388
|
break;
|
|
@@ -8412,7 +8411,7 @@ sn.exports;
|
|
|
8412
8411
|
case v:
|
|
8413
8412
|
case T:
|
|
8414
8413
|
return u == x + "";
|
|
8415
|
-
case
|
|
8414
|
+
case l:
|
|
8416
8415
|
var pe = Q;
|
|
8417
8416
|
case k:
|
|
8418
8417
|
var _e = Z & f;
|
|
@@ -8431,7 +8430,7 @@ sn.exports;
|
|
|
8431
8430
|
return !1;
|
|
8432
8431
|
}
|
|
8433
8432
|
function Fn(u, x, C, Z, ue, re) {
|
|
8434
|
-
var ce = C & f, pe =
|
|
8433
|
+
var ce = C & f, pe = at(u), _e = pe.length, ye = at(x), Pe = ye.length;
|
|
8435
8434
|
if (_e != Pe && !ce)
|
|
8436
8435
|
return !1;
|
|
8437
8436
|
for (var je = _e; je--; ) {
|
|
@@ -8446,10 +8445,10 @@ sn.exports;
|
|
|
8446
8445
|
re.set(u, x), re.set(x, u);
|
|
8447
8446
|
for (var et = ce; ++je < _e; ) {
|
|
8448
8447
|
Oe = pe[je];
|
|
8449
|
-
var Qe = u[Oe],
|
|
8448
|
+
var Qe = u[Oe], lt = x[Oe];
|
|
8450
8449
|
if (Z)
|
|
8451
|
-
var
|
|
8452
|
-
if (!(
|
|
8450
|
+
var lr = ce ? Z(lt, Qe, Oe, x, u, re) : Z(Qe, lt, Oe, u, x, re);
|
|
8451
|
+
if (!(lr === void 0 ? Qe === lt || ue(Qe, lt, C, Z, re) : lr)) {
|
|
8453
8452
|
Ae = !1;
|
|
8454
8453
|
break;
|
|
8455
8454
|
}
|
|
@@ -8461,12 +8460,12 @@ sn.exports;
|
|
|
8461
8460
|
}
|
|
8462
8461
|
return re.delete(u), re.delete(x), Ae;
|
|
8463
8462
|
}
|
|
8464
|
-
function
|
|
8463
|
+
function at(u) {
|
|
8465
8464
|
return Nt(u, qt, Un);
|
|
8466
8465
|
}
|
|
8467
8466
|
function Fe(u, x) {
|
|
8468
8467
|
var C = u.__data__;
|
|
8469
|
-
return
|
|
8468
|
+
return $n(x) ? C[typeof x == "string" ? "string" : "hash"] : C.map;
|
|
8470
8469
|
}
|
|
8471
8470
|
function Ye(u, x) {
|
|
8472
8471
|
var C = te(u, x);
|
|
@@ -8486,15 +8485,15 @@ sn.exports;
|
|
|
8486
8485
|
return u == null ? [] : (u = Object(u), he(ft(u), function(x) {
|
|
8487
8486
|
return st.call(u, x);
|
|
8488
8487
|
}));
|
|
8489
|
-
} : Gn,
|
|
8490
|
-
(Et &&
|
|
8488
|
+
} : Gn, Ve = ot;
|
|
8489
|
+
(Et && Ve(new Et(new ArrayBuffer(1))) != w || it && Ve(new it()) != l || wt && Ve(wt.resolve()) != h || At && Ve(new At()) != k || Tt && Ve(new Tt()) != A) && (Ve = function(u) {
|
|
8491
8490
|
var x = ot(u), C = x == i ? u.constructor : void 0, Z = C ? qe(C) : "";
|
|
8492
8491
|
if (Z)
|
|
8493
8492
|
switch (Z) {
|
|
8494
8493
|
case Ut:
|
|
8495
8494
|
return w;
|
|
8496
8495
|
case We:
|
|
8497
|
-
return
|
|
8496
|
+
return l;
|
|
8498
8497
|
case hn:
|
|
8499
8498
|
return h;
|
|
8500
8499
|
case dn:
|
|
@@ -8505,13 +8504,13 @@ sn.exports;
|
|
|
8505
8504
|
return x;
|
|
8506
8505
|
});
|
|
8507
8506
|
function Hn(u, x) {
|
|
8508
|
-
return x = x ?? _, !!x && (typeof u == "number" ||
|
|
8507
|
+
return x = x ?? _, !!x && (typeof u == "number" || V.test(u)) && u > -1 && u % 1 == 0 && u < x;
|
|
8509
8508
|
}
|
|
8510
|
-
function
|
|
8509
|
+
function $n(u) {
|
|
8511
8510
|
var x = typeof u;
|
|
8512
8511
|
return x == "string" || x == "number" || x == "symbol" || x == "boolean" ? u !== "__proto__" : u === null;
|
|
8513
8512
|
}
|
|
8514
|
-
function
|
|
8513
|
+
function Vn(u) {
|
|
8515
8514
|
return !!Me && Me in u;
|
|
8516
8515
|
}
|
|
8517
8516
|
function zn(u) {
|
|
@@ -8537,9 +8536,9 @@ sn.exports;
|
|
|
8537
8536
|
function Gt(u, x) {
|
|
8538
8537
|
return u === x || u !== u && x !== x;
|
|
8539
8538
|
}
|
|
8540
|
-
var Zt =
|
|
8539
|
+
var Zt = Vt(function() {
|
|
8541
8540
|
return arguments;
|
|
8542
|
-
}()) ?
|
|
8541
|
+
}()) ? Vt : function(u) {
|
|
8543
8542
|
return ze(u) && de.call(u, "callee") && !st.call(u, "callee");
|
|
8544
8543
|
}, pt = Array.isArray;
|
|
8545
8544
|
function xt(u) {
|
|
@@ -8553,7 +8552,7 @@ sn.exports;
|
|
|
8553
8552
|
if (!Yt(u))
|
|
8554
8553
|
return !1;
|
|
8555
8554
|
var x = ot(u);
|
|
8556
|
-
return x == t || x ==
|
|
8555
|
+
return x == t || x == a || x == b || x == n;
|
|
8557
8556
|
}
|
|
8558
8557
|
function Lt(u) {
|
|
8559
8558
|
return typeof u == "number" && u > -1 && u % 1 == 0 && u <= _;
|
|
@@ -8884,7 +8883,7 @@ var Bt = Se && Se.__importDefault || function(m) {
|
|
|
8884
8883
|
}, m.Op = Te.default, m.AttributeMap = Rt.default, m;
|
|
8885
8884
|
}()
|
|
8886
8885
|
), ii = ri;
|
|
8887
|
-
const oi = /* @__PURE__ */
|
|
8886
|
+
const oi = /* @__PURE__ */ Tr(ii);
|
|
8888
8887
|
/*!
|
|
8889
8888
|
* VueQuill @vueup/vue-quill v1.2.0
|
|
8890
8889
|
* https://vueup.github.io/vue-quill/
|
|
@@ -8926,7 +8925,7 @@ const gr = {
|
|
|
8926
8925
|
["clean"]
|
|
8927
8926
|
// remove formatting button
|
|
8928
8927
|
]
|
|
8929
|
-
},
|
|
8928
|
+
}, ai = tr({
|
|
8930
8929
|
name: "QuillEditor",
|
|
8931
8930
|
inheritAttrs: !1,
|
|
8932
8931
|
props: {
|
|
@@ -8998,7 +8997,7 @@ const gr = {
|
|
|
8998
8997
|
Yn.register(`modules/${w.name}`, w.module);
|
|
8999
8998
|
else
|
|
9000
8999
|
Yn.register(`modules/${m.modules.name}`, m.modules.module);
|
|
9001
|
-
c = new Yn(f.value, p), h(m.content), c.on("text-change", o), c.on("selection-change", t), c.on("editor-change",
|
|
9000
|
+
c = new Yn(f.value, p), h(m.content), c.on("text-change", o), c.on("selection-change", t), c.on("editor-change", a), m.theme !== "bubble" && f.value.classList.remove("ql-bubble"), m.theme !== "snow" && f.value.classList.remove("ql-snow"), (y = c.getModule("toolbar")) === null || y === void 0 || y.container.addEventListener("mousedown", (w) => {
|
|
9002
9001
|
w.preventDefault();
|
|
9003
9002
|
}), j.emit("ready", c);
|
|
9004
9003
|
}
|
|
@@ -9016,8 +9015,8 @@ const gr = {
|
|
|
9016
9015
|
var N, q;
|
|
9017
9016
|
const B = {};
|
|
9018
9017
|
if (Array.isArray(m.modules))
|
|
9019
|
-
for (const
|
|
9020
|
-
B[
|
|
9018
|
+
for (const $ of m.modules)
|
|
9019
|
+
B[$.name] = (N = $.options) !== null && N !== void 0 ? N : {};
|
|
9021
9020
|
else
|
|
9022
9021
|
B[m.modules.name] = (q = m.modules.options) !== null && q !== void 0 ? q : {};
|
|
9023
9022
|
return B;
|
|
@@ -9043,7 +9042,7 @@ const gr = {
|
|
|
9043
9042
|
on(e, (y) => {
|
|
9044
9043
|
y ? j.emit("focus", f) : j.emit("blur", f);
|
|
9045
9044
|
});
|
|
9046
|
-
const
|
|
9045
|
+
const a = (...y) => {
|
|
9047
9046
|
y[0] === "text-change" && j.emit("editorChange", {
|
|
9048
9047
|
name: y[0],
|
|
9049
9048
|
delta: y[1],
|
|
@@ -9055,7 +9054,7 @@ const gr = {
|
|
|
9055
9054
|
oldRange: y[2],
|
|
9056
9055
|
source: y[3]
|
|
9057
9056
|
});
|
|
9058
|
-
},
|
|
9057
|
+
}, l = () => f.value, s = () => {
|
|
9059
9058
|
var y;
|
|
9060
9059
|
return (y = c?.getModule("toolbar")) === null || y === void 0 ? void 0 : y.container;
|
|
9061
9060
|
}, r = () => {
|
|
@@ -9097,7 +9096,7 @@ const gr = {
|
|
|
9097
9096
|
c && c.enable(y);
|
|
9098
9097
|
}), {
|
|
9099
9098
|
editor: f,
|
|
9100
|
-
getEditor:
|
|
9099
|
+
getEditor: l,
|
|
9101
9100
|
getToolbar: s,
|
|
9102
9101
|
getQuill: r,
|
|
9103
9102
|
getContents: i,
|
|
@@ -9119,7 +9118,7 @@ const gr = {
|
|
|
9119
9118
|
];
|
|
9120
9119
|
}
|
|
9121
9120
|
});
|
|
9122
|
-
const
|
|
9121
|
+
const li = ["name", "value"], ui = ["id", "data-test", "name", "required", "readonly", "autocomplete", "placeholder", "disabled", "maxlength", "row"], si = ["id", "data-test", "name", "type", "required", "readonly", "autocomplete", "placeholder", "disabled", "maxlength"], fi = {
|
|
9123
9122
|
key: 4,
|
|
9124
9123
|
class: "suffix"
|
|
9125
9124
|
}, ci = {
|
|
@@ -9149,7 +9148,7 @@ const ai = ["name", "value"], ui = ["id", "data-test", "name", "required", "read
|
|
|
9149
9148
|
},
|
|
9150
9149
|
emits: ["update:modelValue"],
|
|
9151
9150
|
setup(m, { emit: j }) {
|
|
9152
|
-
const c = m, p = gt(), f = gt(), E = c.id ||
|
|
9151
|
+
const c = m, p = gt(), f = gt(), E = c.id || Er(), _ = () => {
|
|
9153
9152
|
j("update:modelValue", f.value.getHTML());
|
|
9154
9153
|
}, O = gt({
|
|
9155
9154
|
placeholder: c.placeholder,
|
|
@@ -9157,116 +9156,116 @@ const ai = ["name", "value"], ui = ["id", "data-test", "name", "required", "read
|
|
|
9157
9156
|
theme: "snow"
|
|
9158
9157
|
}), g = en({
|
|
9159
9158
|
get: () => c.modelValue,
|
|
9160
|
-
set: (
|
|
9161
|
-
j("update:modelValue",
|
|
9159
|
+
set: (a) => {
|
|
9160
|
+
j("update:modelValue", a);
|
|
9162
9161
|
}
|
|
9163
9162
|
}), b = en(() => {
|
|
9164
|
-
const
|
|
9165
|
-
let
|
|
9166
|
-
return c.modelValue && (
|
|
9163
|
+
const a = c.limit;
|
|
9164
|
+
let l = 0;
|
|
9165
|
+
return c.modelValue && (l = c.modelValue.toString().length), a - l;
|
|
9167
9166
|
}), d = en(() => c.readonly ? void 0 : c.placeholder), o = en(() => !!c.name && !!c.autocomplete);
|
|
9168
9167
|
function e() {
|
|
9169
9168
|
if (c.type === "textarea") {
|
|
9170
|
-
const
|
|
9171
|
-
|
|
9169
|
+
const a = p.value;
|
|
9170
|
+
a.setAttribute("style", `height:${a.scrollHeight}px`);
|
|
9172
9171
|
}
|
|
9173
9172
|
}
|
|
9174
9173
|
function t() {
|
|
9175
|
-
const
|
|
9176
|
-
|
|
9174
|
+
const a = p.value;
|
|
9175
|
+
a.style.height = "auto", a.style.height = a.scrollHeight + "px";
|
|
9177
9176
|
}
|
|
9178
9177
|
return nr(() => {
|
|
9179
9178
|
e();
|
|
9180
|
-
}), (
|
|
9181
|
-
label:
|
|
9179
|
+
}), (a, l) => (me(), mt(wr, {
|
|
9180
|
+
label: a.label,
|
|
9182
9181
|
id: Ge(E),
|
|
9183
|
-
icon:
|
|
9184
|
-
"icon-color":
|
|
9185
|
-
"icon-type":
|
|
9186
|
-
required:
|
|
9187
|
-
type:
|
|
9188
|
-
readonly:
|
|
9189
|
-
description:
|
|
9190
|
-
limit:
|
|
9182
|
+
icon: a.icon,
|
|
9183
|
+
"icon-color": a.iconColor,
|
|
9184
|
+
"icon-type": a.iconType,
|
|
9185
|
+
required: a.required,
|
|
9186
|
+
type: a.type,
|
|
9187
|
+
readonly: a.readonly,
|
|
9188
|
+
description: a.description,
|
|
9189
|
+
limit: a.limit
|
|
9191
9190
|
}, {
|
|
9192
9191
|
default: jt(() => [
|
|
9193
9192
|
o.value ? bt("", !0) : (me(), Le("input", {
|
|
9194
9193
|
key: 0,
|
|
9195
9194
|
type: "hidden",
|
|
9196
|
-
name:
|
|
9197
|
-
value:
|
|
9198
|
-
}, null, 8,
|
|
9199
|
-
|
|
9195
|
+
name: a.name,
|
|
9196
|
+
value: a.modelValue
|
|
9197
|
+
}, null, 8, li)),
|
|
9198
|
+
a.type === "textarea" ? It((me(), Le("textarea", an({
|
|
9200
9199
|
key: 1,
|
|
9201
|
-
"onUpdate:modelValue":
|
|
9202
|
-
},
|
|
9200
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => g.value = s)
|
|
9201
|
+
}, a.$attrs, {
|
|
9203
9202
|
ref_key: "textField",
|
|
9204
9203
|
ref: p,
|
|
9205
9204
|
id: Ge(E),
|
|
9206
|
-
"data-test": Ge(
|
|
9207
|
-
name: o.value ?
|
|
9208
|
-
required: !!
|
|
9209
|
-
readonly: !!
|
|
9210
|
-
autocomplete:
|
|
9205
|
+
"data-test": Ge(sr)(a.name),
|
|
9206
|
+
name: o.value ? a.name : void 0,
|
|
9207
|
+
required: !!a.required,
|
|
9208
|
+
readonly: !!a.readonly,
|
|
9209
|
+
autocomplete: a.autocomplete || "off",
|
|
9211
9210
|
placeholder: d.value,
|
|
9212
|
-
disabled:
|
|
9213
|
-
maxlength:
|
|
9214
|
-
row:
|
|
9215
|
-
style:
|
|
9211
|
+
disabled: a.disabled,
|
|
9212
|
+
maxlength: a.limit,
|
|
9213
|
+
row: a.rows,
|
|
9214
|
+
style: a.inputStyle,
|
|
9216
9215
|
onInput: t
|
|
9217
9216
|
}), null, 16, ui)), [
|
|
9218
9217
|
[Br, g.value]
|
|
9219
|
-
]) :
|
|
9218
|
+
]) : a.type === "editor" ? (me(), mt(Ge(ai), {
|
|
9220
9219
|
key: 2,
|
|
9221
|
-
content:
|
|
9220
|
+
content: a.modelValue,
|
|
9222
9221
|
ref_key: "editorField",
|
|
9223
9222
|
ref: f,
|
|
9224
9223
|
options: O.value,
|
|
9225
9224
|
"content-type": "html",
|
|
9226
9225
|
id: Ge(E),
|
|
9227
|
-
name: o.value ?
|
|
9228
|
-
required: !!
|
|
9229
|
-
autocomplete:
|
|
9226
|
+
name: o.value ? a.name : null,
|
|
9227
|
+
required: !!a.required,
|
|
9228
|
+
autocomplete: a.autocomplete || "off",
|
|
9230
9229
|
placeholder: d.value,
|
|
9231
|
-
disabled:
|
|
9232
|
-
style: Cr(
|
|
9230
|
+
disabled: a.disabled,
|
|
9231
|
+
style: Cr(a.inputStyle),
|
|
9233
9232
|
"onUpdate:content": _
|
|
9234
|
-
}, null, 8, ["content", "options", "id", "name", "required", "autocomplete", "placeholder", "disabled", "style"])) : It((me(), Le("input",
|
|
9233
|
+
}, null, 8, ["content", "options", "id", "name", "required", "autocomplete", "placeholder", "disabled", "style"])) : It((me(), Le("input", an({
|
|
9235
9234
|
key: 3,
|
|
9236
|
-
"onUpdate:modelValue":
|
|
9237
|
-
},
|
|
9235
|
+
"onUpdate:modelValue": l[1] || (l[1] = (s) => g.value = s)
|
|
9236
|
+
}, a.$attrs, {
|
|
9238
9237
|
id: Ge(E),
|
|
9239
|
-
"data-test": Ge(
|
|
9240
|
-
name: o.value ?
|
|
9241
|
-
type:
|
|
9242
|
-
required: !!
|
|
9243
|
-
readonly: !!
|
|
9244
|
-
autocomplete:
|
|
9238
|
+
"data-test": Ge(sr)(a.name),
|
|
9239
|
+
name: o.value ? a.name : void 0,
|
|
9240
|
+
type: a.type,
|
|
9241
|
+
required: !!a.required,
|
|
9242
|
+
readonly: !!a.readonly,
|
|
9243
|
+
autocomplete: a.autocomplete || "off",
|
|
9245
9244
|
placeholder: d.value,
|
|
9246
|
-
disabled:
|
|
9247
|
-
maxlength:
|
|
9248
|
-
style:
|
|
9245
|
+
disabled: a.disabled,
|
|
9246
|
+
maxlength: a.limit,
|
|
9247
|
+
style: a.inputStyle
|
|
9249
9248
|
}), null, 16, si)), [
|
|
9250
9249
|
[Fr, g.value]
|
|
9251
9250
|
]),
|
|
9252
|
-
|
|
9251
|
+
a.suffix ? (me(), Le("div", fi, [
|
|
9253
9252
|
Be("div", null, [
|
|
9254
|
-
Be("span", null, Mt(
|
|
9253
|
+
Be("span", null, Mt(a.suffix), 1)
|
|
9255
9254
|
])
|
|
9256
9255
|
])) : bt("", !0),
|
|
9257
9256
|
b.value !== 1 / 0 ? (me(), Le("div", ci, [
|
|
9258
9257
|
Be("span", {
|
|
9259
9258
|
class: Jn({ danger: b.value <= 15 })
|
|
9260
9259
|
}, Mt(b.value), 3),
|
|
9261
|
-
|
|
9262
|
-
Be("small", null, Mt(
|
|
9260
|
+
ln("/"),
|
|
9261
|
+
Be("small", null, Mt(a.limit), 1)
|
|
9263
9262
|
])) : bt("", !0)
|
|
9264
9263
|
]),
|
|
9265
9264
|
_: 1
|
|
9266
9265
|
}, 8, ["label", "id", "icon", "icon-color", "icon-type", "required", "type", "readonly", "description", "limit"]));
|
|
9267
9266
|
}
|
|
9268
9267
|
});
|
|
9269
|
-
const
|
|
9268
|
+
const to = /* @__PURE__ */ Ur(hi, [["__scopeId", "data-v-a648c80a"]]);
|
|
9270
9269
|
var di = Object.defineProperty, pi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, mr = Object.getOwnPropertySymbols, yi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, br = (m, j, c) => j in m ? di(m, j, { enumerable: !0, configurable: !0, writable: !0, value: c }) : m[j] = c, yt = (m, j) => {
|
|
9271
9270
|
for (var c in j || (j = {}))
|
|
9272
9271
|
yi.call(j, c) && br(m, c, j[c]);
|
|
@@ -9379,7 +9378,7 @@ const mi = {
|
|
|
9379
9378
|
return m == null ? this.mutableLoading = !this.mutableLoading : this.mutableLoading = m;
|
|
9380
9379
|
}
|
|
9381
9380
|
}
|
|
9382
|
-
},
|
|
9381
|
+
}, ar = (m, j) => {
|
|
9383
9382
|
const c = m.__vccOpts || m;
|
|
9384
9383
|
for (const [p, f] of j)
|
|
9385
9384
|
c[p] = f;
|
|
@@ -9394,7 +9393,7 @@ const mi = {
|
|
|
9394
9393
|
function Ti(m, j) {
|
|
9395
9394
|
return me(), Le("svg", Ei, Ai);
|
|
9396
9395
|
}
|
|
9397
|
-
const Si = /* @__PURE__ */
|
|
9396
|
+
const Si = /* @__PURE__ */ ar(Oi, [["render", Ti]]), ki = {}, Ni = {
|
|
9398
9397
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9399
9398
|
width: "14",
|
|
9400
9399
|
height: "10"
|
|
@@ -9404,7 +9403,7 @@ const Si = /* @__PURE__ */ lr(Oi, [["render", Ti]]), ki = {}, Ni = {
|
|
|
9404
9403
|
function Li(m, j) {
|
|
9405
9404
|
return me(), Le("svg", Ni, xi);
|
|
9406
9405
|
}
|
|
9407
|
-
const qi = /* @__PURE__ */
|
|
9406
|
+
const qi = /* @__PURE__ */ ar(ki, [["render", Li]]), Or = {
|
|
9408
9407
|
Deselect: Si,
|
|
9409
9408
|
OpenIndicator: qi
|
|
9410
9409
|
}, Ri = {
|
|
@@ -9902,10 +9901,10 @@ https://vue-select.org/api/props.html#getoptionkey`, m, j);
|
|
|
9902
9901
|
}, Ui = ["disabled", "title", "aria-label", "onClick"], Hi = {
|
|
9903
9902
|
ref: "actions",
|
|
9904
9903
|
class: "vs__actions"
|
|
9905
|
-
},
|
|
9904
|
+
}, $i = ["disabled"], Vi = { class: "vs__spinner" }, zi = ["id"], Ki = ["id", "aria-selected", "onMouseover", "onClick"], Gi = {
|
|
9906
9905
|
key: 0,
|
|
9907
9906
|
class: "vs__no-options"
|
|
9908
|
-
}, Zi = /* @__PURE__ */
|
|
9907
|
+
}, Zi = /* @__PURE__ */ ln(" Sorry, no matching options. "), Wi = ["id"];
|
|
9909
9908
|
function Yi(m, j, c, p, f, E) {
|
|
9910
9909
|
const _ = Hr("append-to-body");
|
|
9911
9910
|
return me(), Le("div", {
|
|
@@ -9924,7 +9923,7 @@ function Yi(m, j, c, p, f, E) {
|
|
|
9924
9923
|
onMousedown: j[1] || (j[1] = (O) => E.toggleDropdown(O))
|
|
9925
9924
|
}, [
|
|
9926
9925
|
Be("div", Fi, [
|
|
9927
|
-
(me(!0), Le(
|
|
9926
|
+
(me(!0), Le(fr, null, cr(E.selectedValue, (O, g) => De(m.$slots, "selected-option-container", {
|
|
9928
9927
|
option: E.normalizeOptionForSlot(O),
|
|
9929
9928
|
deselect: E.deselect,
|
|
9930
9929
|
multiple: c.multiple,
|
|
@@ -9935,7 +9934,7 @@ function Yi(m, j, c, p, f, E) {
|
|
|
9935
9934
|
class: "vs__selected"
|
|
9936
9935
|
}, [
|
|
9937
9936
|
De(m.$slots, "selected-option", Ue(Ke(E.normalizeOptionForSlot(O))), () => [
|
|
9938
|
-
|
|
9937
|
+
ln(Mt(c.getOptionLabel(O)), 1)
|
|
9939
9938
|
]),
|
|
9940
9939
|
c.multiple ? (me(), Le("button", {
|
|
9941
9940
|
key: 0,
|
|
@@ -9953,7 +9952,7 @@ function Yi(m, j, c, p, f, E) {
|
|
|
9953
9952
|
]))
|
|
9954
9953
|
])), 256)),
|
|
9955
9954
|
De(m.$slots, "search", Ue(Ke(E.scope.search)), () => [
|
|
9956
|
-
Be("input",
|
|
9955
|
+
Be("input", an({ class: "vs__search" }, E.scope.search.attributes, $r(E.scope.search.events)), null, 16)
|
|
9957
9956
|
])
|
|
9958
9957
|
], 512),
|
|
9959
9958
|
Be("div", Hi, [
|
|
@@ -9967,20 +9966,20 @@ function Yi(m, j, c, p, f, E) {
|
|
|
9967
9966
|
onClick: j[0] || (j[0] = (...O) => E.clearSelection && E.clearSelection(...O))
|
|
9968
9967
|
}, [
|
|
9969
9968
|
(me(), mt(Wn(E.childComponents.Deselect)))
|
|
9970
|
-
], 8,
|
|
9971
|
-
[
|
|
9969
|
+
], 8, $i), [
|
|
9970
|
+
[hr, E.showClearButton]
|
|
9972
9971
|
]),
|
|
9973
9972
|
De(m.$slots, "open-indicator", Ue(Ke(E.scope.openIndicator)), () => [
|
|
9974
|
-
c.noDrop ? bt("", !0) : (me(), mt(Wn(E.childComponents.OpenIndicator), Ue(
|
|
9973
|
+
c.noDrop ? bt("", !0) : (me(), mt(Wn(E.childComponents.OpenIndicator), Ue(an({ key: 0 }, E.scope.openIndicator.attributes)), null, 16))
|
|
9975
9974
|
]),
|
|
9976
9975
|
De(m.$slots, "spinner", Ue(Ke(E.scope.spinner)), () => [
|
|
9977
|
-
It(Be("div",
|
|
9978
|
-
[
|
|
9976
|
+
It(Be("div", Vi, "Loading...", 512), [
|
|
9977
|
+
[hr, m.mutableLoading]
|
|
9979
9978
|
])
|
|
9980
9979
|
])
|
|
9981
9980
|
], 512)
|
|
9982
9981
|
], 40, Ci),
|
|
9983
|
-
|
|
9982
|
+
Ar(Vr, { name: c.transition }, {
|
|
9984
9983
|
default: jt(() => [
|
|
9985
9984
|
E.dropdownOpen ? It((me(), Le("ul", {
|
|
9986
9985
|
id: `vs${c.uid}__listbox`,
|
|
@@ -9989,11 +9988,11 @@ function Yi(m, j, c, p, f, E) {
|
|
|
9989
9988
|
class: "vs__dropdown-menu",
|
|
9990
9989
|
role: "listbox",
|
|
9991
9990
|
tabindex: "-1",
|
|
9992
|
-
onMousedown: j[2] || (j[2] =
|
|
9991
|
+
onMousedown: j[2] || (j[2] = dr((...O) => E.onMousedown && E.onMousedown(...O), ["prevent"])),
|
|
9993
9992
|
onMouseup: j[3] || (j[3] = (...O) => E.onMouseUp && E.onMouseUp(...O))
|
|
9994
9993
|
}, [
|
|
9995
9994
|
De(m.$slots, "list-header", Ue(Ke(E.scope.listHeader))),
|
|
9996
|
-
(me(!0), Le(
|
|
9995
|
+
(me(!0), Le(fr, null, cr(E.filteredOptions, (O, g) => (me(), Le("li", {
|
|
9997
9996
|
id: `vs${c.uid}__option-${g}`,
|
|
9998
9997
|
key: c.getOptionKey(O),
|
|
9999
9998
|
role: "option",
|
|
@@ -10005,10 +10004,10 @@ function Yi(m, j, c, p, f, E) {
|
|
|
10005
10004
|
}]),
|
|
10006
10005
|
"aria-selected": g === m.typeAheadPointer ? !0 : null,
|
|
10007
10006
|
onMouseover: (b) => c.selectable(O) ? m.typeAheadPointer = g : null,
|
|
10008
|
-
onClick:
|
|
10007
|
+
onClick: dr((b) => c.selectable(O) ? E.select(O) : null, ["prevent", "stop"])
|
|
10009
10008
|
}, [
|
|
10010
10009
|
De(m.$slots, "option", Ue(Ke(E.normalizeOptionForSlot(O))), () => [
|
|
10011
|
-
|
|
10010
|
+
ln(Mt(c.getOptionLabel(O)), 1)
|
|
10012
10011
|
])
|
|
10013
10012
|
], 42, Ki))), 128)),
|
|
10014
10013
|
E.filteredOptions.length === 0 ? (me(), Le("li", Gi, [
|
|
@@ -10031,7 +10030,7 @@ function Yi(m, j, c, p, f, E) {
|
|
|
10031
10030
|
De(m.$slots, "footer", Ue(Ke(E.scope.footer)))
|
|
10032
10031
|
], 10, Bi);
|
|
10033
10032
|
}
|
|
10034
|
-
const Xi = /* @__PURE__ */
|
|
10033
|
+
const Xi = /* @__PURE__ */ ar(Di, [["render", Yi]]), Qi = ["name", "value"], no = /* @__PURE__ */ tr({
|
|
10035
10034
|
__name: "SelectField",
|
|
10036
10035
|
props: {
|
|
10037
10036
|
modelValue: {},
|
|
@@ -10054,13 +10053,13 @@ const Xi = /* @__PURE__ */ lr(Di, [["render", Yi]]), Qi = ["name", "value"], ro
|
|
|
10054
10053
|
},
|
|
10055
10054
|
emits: ["update:modelValue"],
|
|
10056
10055
|
setup(m, { emit: j }) {
|
|
10057
|
-
const c = m, p = c.id ||
|
|
10056
|
+
const c = m, p = c.id || Er(), f = gt();
|
|
10058
10057
|
function E(_) {
|
|
10059
10058
|
j("update:modelValue", _);
|
|
10060
10059
|
}
|
|
10061
10060
|
return on(f, (_) => {
|
|
10062
10061
|
E(_);
|
|
10063
|
-
}), nr(() => f.value = c.modelValue), (_, O) => (me(), mt(
|
|
10062
|
+
}), nr(() => f.value = c.modelValue), (_, O) => (me(), mt(wr, {
|
|
10064
10063
|
label: _.label,
|
|
10065
10064
|
id: Ge(p),
|
|
10066
10065
|
icon: _.icon,
|
|
@@ -10076,7 +10075,7 @@ const Xi = /* @__PURE__ */ lr(Di, [["render", Yi]]), Qi = ["name", "value"], ro
|
|
|
10076
10075
|
name: _.name,
|
|
10077
10076
|
value: _.modelValue
|
|
10078
10077
|
}, null, 8, Qi),
|
|
10079
|
-
|
|
10078
|
+
Ar(Ge(Xi), {
|
|
10080
10079
|
modelValue: f.value,
|
|
10081
10080
|
"onUpdate:modelValue": O[0] || (O[0] = (g) => f.value = g),
|
|
10082
10081
|
label: _.labelKey,
|
|
@@ -10103,7 +10102,6 @@ const Xi = /* @__PURE__ */ lr(Di, [["render", Yi]]), Qi = ["name", "value"], ro
|
|
|
10103
10102
|
}
|
|
10104
10103
|
});
|
|
10105
10104
|
export {
|
|
10106
|
-
|
|
10107
|
-
|
|
10105
|
+
to as T,
|
|
10106
|
+
no as _
|
|
10108
10107
|
};
|
|
10109
|
-
//# sourceMappingURL=SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs.map
|