@pdftron/pdfjs-express 8.7.4 → 8.7.6
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/package.json +1 -1
- package/public/core/22.chunk.js +7 -7
- package/public/core/23.chunk.js +7 -7
- package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
- package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
- package/public/core/AzurePartRetriever.chunk.js +2 -2
- package/public/core/ContentEdit.chunk.js +28 -26
- package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +12 -11
- package/public/core/IOSPartRetriever.chunk.js +2 -3
- package/public/core/LocalPartRetriever.chunk.js +4 -4
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +16 -15
- package/public/core/SelectionInfoOld.chunk.js +14 -14
- package/public/core/StreamingPartRetriever.chunk.js +9 -9
- package/public/core/WebDBPartRetriever.chunk.js +2 -2
- package/public/core/WebViewerServerPartRetriever.chunk.js +41 -40
- package/public/core/WinRTPartRetriever.chunk.js +2 -2
- package/public/core/pdfjs/PDFJSDocumentType.js +1620 -1621
- package/public/core/pdfjs/pdf.worker.js +947 -937
- package/public/core/pdfjs/pikaday.chunk.js +32 -32
- package/public/core/pdfjs/vendors.pikaday.chunk.js +34 -33
- package/public/core/pikaday.chunk.js +34 -33
- package/public/core/vendors.ascii85.chunk.js +6 -6
- package/public/core/vendors.ascii85.quill.chunk.js +34 -31
- package/public/core/vendors.pako.chunk.js +80 -76
- package/public/core/vendors.quill.chunk.js +421 -409
- package/public/core/webviewer-core.min.js +2811 -2708
- package/public/ui/style.css +1 -1
- package/public/ui/style.css.map +1 -1
- package/public/ui/webviewer-ui.min.js +6 -6
- package/public/ui/webviewer-ui.min.js.map +1 -1
- package/webviewer.min.js +1 -1
|
@@ -1,410 +1,422 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{377:function(
|
|
3
|
-
|
|
4
|
-
Leaf:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"LEVEL";
|
|
9
|
-
|
|
10
|
-
null!=
|
|
11
|
-
"string"===typeof h.insert)return this.ops[
|
|
12
|
-
return this};
|
|
13
|
-
|
|
14
|
-
0<
|
|
15
|
-
|
|
16
|
-
}).join("")}),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
{},w=2);if(null==
|
|
22
|
-
}function
|
|
23
|
-
1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==
|
|
24
|
-
|
|
25
|
-
Object.getPrototypeOf(
|
|
26
|
-
{key:"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
this.
|
|
42
|
-
|
|
43
|
-
this.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
this.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
arguments
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
1<arguments.length&&void 0!==arguments[1]?arguments[1]:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
function(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
h){if("function"!==typeof
|
|
64
|
-
Object.defineProperty(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
[
|
|
68
|
-
|
|
69
|
-
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}}(),
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
f);
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
this
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
e
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
h
|
|
122
|
-
n.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
e;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
(
|
|
136
|
-
function(){
|
|
137
|
-
e.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
[
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
this.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
handler:function(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
this.
|
|
176
|
-
"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
{default:
|
|
181
|
-
|
|
182
|
-
n
|
|
183
|
-
var
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
this.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
this.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
{
|
|
213
|
-
return
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
var
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
this
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
enumerable:!1,writable:!0,configurable:!0}});
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
[])
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
f
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
function(){
|
|
262
|
-
(e[
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
(n
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
n,
|
|
282
|
-
da.
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
f){return
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
if(
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
function(
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
this.quill
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}}
|
|
331
|
-
|
|
332
|
-
return e}
|
|
333
|
-
(0,
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
this:
|
|
360
|
-
"
|
|
361
|
-
|
|
362
|
-
Object.getPrototypeOf(
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
typeof
|
|
376
|
-
|
|
377
|
-
Object.
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
n
|
|
381
|
-
|
|
382
|
-
"
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
function(
|
|
389
|
-
function(
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
function(
|
|
395
|
-
function(
|
|
396
|
-
|
|
397
|
-
function(
|
|
398
|
-
function(
|
|
399
|
-
function(
|
|
400
|
-
function(
|
|
401
|
-
function(
|
|
402
|
-
function(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
(
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{377:function(Ba,ua,r){(function(pa){(function(ka,ma){Ba.exports=ma()})("undefined"!==typeof self?self:this,function(){return function(ka){function ma(ea){if(fa[ea])return fa[ea].exports;var z=fa[ea]={i:ea,l:!1,exports:{}};ka[ea].call(z.exports,z,z.exports,ma);z.l=!0;return z.exports}var fa={};ma.m=ka;ma.c=fa;ma.d=function(ea,z,x){ma.o(ea,z)||Object.defineProperty(ea,z,{configurable:!1,enumerable:!0,get:x})};ma.n=function(ea){var z=
|
|
3
|
+
ea&&ea.__esModule?function(){return ea["default"]}:function(){return ea};ma.d(z,"a",z);return z};ma.o=function(ea,z){return Object.prototype.hasOwnProperty.call(ea,z)};ma.p="";return ma(ma.s=109)}([function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(17);var ea=fa(18),z=fa(19),x=fa(45),y=fa(46),f=fa(47),e=fa(48),a=fa(49),b=fa(12),h=fa(32),n=fa(33),ba=fa(31);fa=fa(1);ma.default={Scope:fa.Scope,create:fa.create,find:fa.find,query:fa.query,register:fa.register,Container:ka.default,
|
|
4
|
+
Format:ea.default,Leaf:z.default,Embed:e.default,Scroll:x.default,Block:f.default,Inline:y.default,Text:a.default,Attributor:{Attribute:b.default,Class:h.default,Style:n.default,Store:ba.default}}},function(ka,ma){function fa(n,ba){void 0===ba&&(ba=!1);return null==n?null:null!=n[ma.DATA_KEY]?n[ma.DATA_KEY].blot:ba?fa(n.parentNode,ba):null}function ea(n,ba){void 0===ba&&(ba=h.ANY);if("string"===typeof n)var w=b[n]||f[n];else if(n instanceof Text||n.nodeType===Node.TEXT_NODE)w=b.text;else if("number"===
|
|
5
|
+
typeof n)n&h.LEVEL&h.BLOCK?w=b.block:n&h.LEVEL&h.INLINE&&(w=b.inline);else if(n instanceof HTMLElement){var da=(n.getAttribute("class")||"").split(/\s+/),ja;for(ja in da)if(w=e[da[ja]])break;w=w||a[n.tagName]}return null==w?null:ba&h.LEVEL&w.scope&&ba&h.TYPE&w.scope?w:null}function z(){for(var n=[],ba=0;ba<arguments.length;ba++)n[ba]=arguments[ba];if(1<n.length)return n.map(function(da){return z(da)});var w=n[0];if("string"!==typeof w.blotName&&"string"!==typeof w.attrName)throw new y("Invalid definition");
|
|
6
|
+
if("abstract"===w.blotName)throw new y("Cannot register abstract class");b[w.blotName||w.attrName]=w;"string"===typeof w.keyName?f[w.keyName]=w:(null!=w.className&&(e[w.className]=w),null!=w.tagName&&(Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(da){return da.toUpperCase()}):w.tagName=w.tagName.toUpperCase(),(Array.isArray(w.tagName)?w.tagName:[w.tagName]).forEach(function(da){if(null==a[da]||null==w.className)a[da]=w})));return w}var x=this&&this.__extends||function(){var n=Object.setPrototypeOf||
|
|
7
|
+
{__proto__:[]}instanceof Array&&function(ba,w){ba.__proto__=w}||function(ba,w){for(var da in w)w.hasOwnProperty(da)&&(ba[da]=w[da])};return function(ba,w){function da(){this.constructor=ba}n(ba,w);ba.prototype=null===w?Object.create(w):(da.prototype=w.prototype,new da)}}();Object.defineProperty(ma,"__esModule",{value:!0});var y=function(n){function ba(w){w="[Parchment] "+w;var da=n.call(this,w)||this;da.message=w;da.name=da.constructor.name;return da}x(ba,n);return ba}(Error);ma.ParchmentError=y;
|
|
8
|
+
var f={},e={},a={},b={};ma.DATA_KEY="__blot";var h;(function(n){n[n.TYPE=3]="TYPE";n[n.LEVEL=12]="LEVEL";n[n.ATTRIBUTE=13]="ATTRIBUTE";n[n.BLOT=14]="BLOT";n[n.INLINE=7]="INLINE";n[n.BLOCK=11]="BLOCK";n[n.BLOCK_BLOT=10]="BLOCK_BLOT";n[n.INLINE_BLOT=6]="INLINE_BLOT";n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";n[n.ANY=15]="ANY"})(h=ma.Scope||(ma.Scope={}));ma.create=function(n,ba){var w=ea(n);if(null==w)throw new y("Unable to create "+n+" blot");n=n instanceof
|
|
9
|
+
Node||n.nodeType===Node.TEXT_NODE?n:w.create(ba);return new w(n,ba)};ma.find=fa;ma.query=ea;ma.register=z},function(ka,ma,fa){function ea(a){Array.isArray(a)?this.ops=a:null!=a&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]}var z=fa(51),x=fa(11),y=fa(3),f=fa(20),e=String.fromCharCode(0);ea.prototype.insert=function(a,b){var h={};if(0===a.length)return this;h.insert=a;null!=b&&"object"===typeof b&&0<Object.keys(b).length&&(h.attributes=b);return this.push(h)};ea.prototype["delete"]=function(a){return 0>=
|
|
10
|
+
a?this:this.push({"delete":a})};ea.prototype.retain=function(a,b){if(0>=a)return this;a={retain:a};null!=b&&"object"===typeof b&&0<Object.keys(b).length&&(a.attributes=b);return this.push(a)};ea.prototype.push=function(a){var b=this.ops.length,h=this.ops[b-1];a=y(!0,{},a);if("object"===typeof h){if("number"===typeof a["delete"]&&"number"===typeof h["delete"])return this.ops[b-1]={"delete":h["delete"]+a["delete"]},this;if("number"===typeof h["delete"]&&null!=a.insert&&(--b,h=this.ops[b-1],"object"!==
|
|
11
|
+
typeof h))return this.ops.unshift(a),this;if(x(a.attributes,h.attributes)){if("string"===typeof a.insert&&"string"===typeof h.insert)return this.ops[b-1]={insert:h.insert+a.insert},"object"===typeof a.attributes&&(this.ops[b-1].attributes=a.attributes),this;if("number"===typeof a.retain&&"number"===typeof h.retain)return this.ops[b-1]={retain:h.retain+a.retain},"object"===typeof a.attributes&&(this.ops[b-1].attributes=a.attributes),this}}b===this.ops.length?this.ops.push(a):this.ops.splice(b,0,a);
|
|
12
|
+
return this};ea.prototype.chop=function(){var a=this.ops[this.ops.length-1];a&&a.retain&&!a.attributes&&this.ops.pop();return this};ea.prototype.filter=function(a){return this.ops.filter(a)};ea.prototype.forEach=function(a){this.ops.forEach(a)};ea.prototype.map=function(a){return this.ops.map(a)};ea.prototype.partition=function(a){var b=[],h=[];this.forEach(function(n){(a(n)?b:h).push(n)});return[b,h]};ea.prototype.reduce=function(a,b){return this.ops.reduce(a,b)};ea.prototype.changeLength=function(){return this.reduce(function(a,
|
|
13
|
+
b){return b.insert?a+f.length(b):b.delete?a-b.delete:a},0)};ea.prototype.length=function(){return this.reduce(function(a,b){return a+f.length(b)},0)};ea.prototype.slice=function(a,b){a=a||0;"number"!==typeof b&&(b=Infinity);for(var h=[],n=f.iterator(this.ops),ba=0;ba<b&&n.hasNext();){if(ba<a)var w=n.next(a-ba);else w=n.next(b-ba),h.push(w);ba+=f.length(w)}return new ea(h)};ea.prototype.compose=function(a){var b=f.iterator(this.ops);a=f.iterator(a.ops);var h=[],n=a.peek();if(null!=n&&"number"===typeof n.retain&&
|
|
14
|
+
null==n.attributes){for(var ba=n.retain;"insert"===b.peekType()&&b.peekLength()<=ba;)ba-=b.peekLength(),h.push(b.next());0<n.retain-ba&&a.next(n.retain-ba)}for(h=new ea(h);b.hasNext()||a.hasNext();)if("insert"===a.peekType())h.push(a.next());else if("delete"===b.peekType())h.push(b.next());else{ba=Math.min(b.peekLength(),a.peekLength());var w=b.next(ba),da=a.next(ba);if("number"===typeof da.retain){n={};"number"===typeof w.retain?n.retain=ba:n.insert=w.insert;if(ba=f.attributes.compose(w.attributes,
|
|
15
|
+
da.attributes,"number"===typeof w.retain))n.attributes=ba;h.push(n);if(!a.hasNext()&&x(h.ops[h.ops.length-1],n))return b=new ea(b.rest()),h.concat(b).chop()}else"number"===typeof da["delete"]&&"number"===typeof w.retain&&h.push(da)}return h.chop()};ea.prototype.concat=function(a){var b=new ea(this.ops.slice());0<a.ops.length&&(b.push(a.ops[0]),b.ops=b.ops.concat(a.ops.slice(1)));return b};ea.prototype.diff=function(a,b){if(this.ops===a.ops)return new ea;var h=[this,a].map(function(da){return da.map(function(ja){if(null!=
|
|
16
|
+
ja.insert)return"string"===typeof ja.insert?ja.insert:e;throw Error("diff() called "+(da===a?"on":"with")+" non-document");}).join("")}),n=new ea;b=z(h[0],h[1],b);var ba=f.iterator(this.ops),w=f.iterator(a.ops);b.forEach(function(da){for(var ja=da[1].length;0<ja;){var aa=0;switch(da[0]){case z.INSERT:aa=Math.min(w.peekLength(),ja);n.push(w.next(aa));break;case z.DELETE:aa=Math.min(ja,ba.peekLength());ba.next(aa);n["delete"](aa);break;case z.EQUAL:aa=Math.min(ba.peekLength(),w.peekLength(),ja);var ca=
|
|
17
|
+
ba.next(aa),ia=w.next(aa);if(x(ca.insert,ia.insert))n.retain(aa,f.attributes.diff(ca.attributes,ia.attributes));else n.push(ia)["delete"](aa)}ja-=aa}});return n.chop()};ea.prototype.eachLine=function(a,b){b=b||"\n";for(var h=f.iterator(this.ops),n=new ea,ba=0;h.hasNext();){if("insert"!==h.peekType())return;var w=h.peek(),da=f.length(w)-h.peekLength();w="string"===typeof w.insert?w.insert.indexOf(b,da)-da:-1;if(0>w)n.push(h.next());else if(0<w)n.push(h.next(w));else{if(!1===a(n,h.next(1).attributes||
|
|
18
|
+
{},ba))return;ba+=1;n=new ea}}0<n.length()&&a(n,{},ba)};ea.prototype.transform=function(a,b){b=!!b;if("number"===typeof a)return this.transformPosition(a,b);var h=f.iterator(this.ops);a=f.iterator(a.ops);for(var n=new ea;h.hasNext()||a.hasNext();)if("insert"!==h.peekType()||!b&&"insert"===a.peekType())if("insert"===a.peekType())n.push(a.next());else{var ba=Math.min(h.peekLength(),a.peekLength()),w=h.next(ba),da=a.next(ba);w["delete"]||(da["delete"]?n.push(da):n.retain(ba,f.attributes.transform(w.attributes,
|
|
19
|
+
da.attributes,b)))}else n.retain(f.length(h.next()));return n.chop()};ea.prototype.transformPosition=function(a,b){b=!!b;for(var h=f.iterator(this.ops),n=0;h.hasNext()&&n<=a;){var ba=h.peekLength(),w=h.peekType();h.next();"delete"===w?a-=Math.min(ba,a-n):("insert"===w&&(n<a||!b)&&(a+=ba),n+=ba)}return a};ka.exports=ea},function(ka){function ma(a,b){if("__proto__"===b){if(!x.call(a,b))return;if(e)return e(a,b).value}return a[b]}function fa(a,b){f&&"__proto__"===b.name?f(a,b.name,{enumerable:!0,configurable:!0,
|
|
20
|
+
value:b.newValue,writable:!0}):a[b.name]=b.newValue}function ea(a){if(!a||"[object Object]"!==y.call(a))return!1;var b=x.call(a,"constructor"),h=a.constructor&&a.constructor.prototype&&x.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!b&&!h)return!1;for(var n in a);return"undefined"===typeof n||x.call(a,n)}function z(a){return"function"===typeof Array.isArray?Array.isArray(a):"[object Array]"===y.call(a)}var x=Object.prototype.hasOwnProperty,y=Object.prototype.toString,f=Object.defineProperty,
|
|
21
|
+
e=Object.getOwnPropertyDescriptor;ka.exports=function b(){var h,n,ba=arguments[0],w=1,da=arguments.length,ja=!1;"boolean"===typeof ba&&(ja=ba,ba=arguments[1]||{},w=2);if(null==ba||"object"!==typeof ba&&"function"!==typeof ba)ba={};for(;w<da;++w){var aa=arguments[w];if(null!=aa)for(h in aa){var ca=ma(ba,h);var ia=ma(aa,h);ba!==ia&&(ja&&ia&&(ea(ia)||(n=z(ia)))?(n?(n=!1,ca=ca&&z(ca)?ca:[]):ca=ca&&ea(ca)?ca:{},fa(ba,{name:h,newValue:b(ja,ca,ia)})):"undefined"!==typeof ia&&fa(ba,{name:h,newValue:ia}))}}return ba}},
|
|
22
|
+
function(ka,ma,fa){function ea(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!(ja instanceof aa))throw new TypeError("Cannot call a class as a function");}function x(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?ja:aa}function y(ja,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);ja.prototype=
|
|
23
|
+
Object.create(aa&&aa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,aa):ja.__proto__=aa)}function f(ja){var aa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return aa;"function"===typeof ja.formats&&(aa=(0,b.default)(aa,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?aa:f(ja.parent,aa)}Object.defineProperty(ma,"__esModule",{value:!0});
|
|
24
|
+
ma.default=ma.BlockEmbed=ma.bubbleFormats=void 0;var e=function(){function ja(aa,ca){for(var ia=0;ia<ca.length;ia++){var ha=ca[ia];ha.enumerable=ha.enumerable||!1;ha.configurable=!0;"value"in ha&&(ha.writable=!0);Object.defineProperty(aa,ha.key,ha)}}return function(aa,ca,ia){ca&&ja(aa.prototype,ca);ia&&ja(aa,ia);return aa}}(),a=function ha(aa,ca,ia){null===aa&&(aa=Function.prototype);var la=Object.getOwnPropertyDescriptor(aa,ca);if(void 0===la){if(aa=Object.getPrototypeOf(aa),null!==aa)return ha(aa,
|
|
25
|
+
ca,ia)}else{if("value"in la)return la.value;ca=la.get;return void 0===ca?void 0:ca.call(ia)}};ka=fa(3);var b=ea(ka);ka=fa(2);var h=ea(ka);ka=fa(0);var n=ea(ka);ka=fa(16);var ba=ea(ka);ka=fa(6);ka=ea(ka);fa=fa(7);fa=ea(fa);var w=function(aa){function ca(){z(this,ca);return x(this,(ca.__proto__||Object.getPrototypeOf(ca)).apply(this,arguments))}y(ca,aa);e(ca,[{key:"attach",value:function(){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"attach",this).call(this);this.attributes=new n.default.Attributor.Store(this.domNode)}},
|
|
26
|
+
{key:"delta",value:function(){return(new h.default).insert(this.value(),(0,b.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ia,ha){ia=n.default.query(ia,n.default.Scope.BLOCK_ATTRIBUTE);null!=ia&&this.attributes.attribute(ia,ha)}},{key:"formatAt",value:function(ia,ha,la,na){this.format(la,na)}},{key:"insertAt",value:function(ia,ha,la){"string"===typeof ha&&ha.endsWith("\n")?(la=n.default.create(da.blotName),this.parent.insertBefore(la,0===ia?this:this.next),la.insertAt(0,
|
|
27
|
+
ha.slice(0,-1))):a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,ia,ha,la)}}]);return ca}(n.default.Embed);w.scope=n.default.Scope.BLOCK_BLOT;var da=function(aa){function ca(ia){z(this,ca);ia=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia));ia.cache={};return ia}y(ca,aa);e(ca,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(n.default.Leaf).reduce(function(ia,ha){return 0===ha.length()?ia:ia.insert(ha.value(),
|
|
28
|
+
f(ha))},new h.default).insert("\n",f(this)));return this.cache.delta}},{key:"deleteAt",value:function(ia,ha){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"deleteAt",this).call(this,ia,ha);this.cache={}}},{key:"formatAt",value:function(ia,ha,la,na){0>=ha||(n.default.query(la,n.default.Scope.BLOCK)?ia+ha===this.length()&&this.format(la,na):a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"formatAt",this).call(this,ia,Math.min(ha,this.length()-ia-1),la,na),this.cache={})}},
|
|
29
|
+
{key:"insertAt",value:function(ia,ha,la){if(null!=la)return a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,ia,ha,la);if(0!==ha.length){ha=ha.split("\n");la=ha.shift();0<la.length&&(ia<this.length()-1||null==this.children.tail?a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,Math.min(ia,this.length()-1),la):this.children.tail.insertAt(this.children.tail.length(),la),this.cache={});var na=this;ha.reduce(function(qa,ra){na=
|
|
30
|
+
na.split(qa,!0);na.insertAt(0,ra);return ra.length},ia+la.length)}}},{key:"insertBefore",value:function(ia,ha){var la=this.children.head;a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertBefore",this).call(this,ia,ha);la instanceof ba.default&&la.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",
|
|
31
|
+
value:function(ia,ha){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"moveChildren",this).call(this,ia,ha);this.cache={}}},{key:"optimize",value:function(ia){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"optimize",this).call(this,ia);this.cache={}}},{key:"path",value:function(ia){return a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"path",this).call(this,ia,!0)}},{key:"removeChild",value:function(ia){a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),
|
|
32
|
+
"removeChild",this).call(this,ia);this.cache={}}},{key:"split",value:function(ia){var ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(ha&&(0===ia||ia>=this.length()-1)){ha=this.clone();if(0===ia)return this.parent.insertBefore(ha,this),this;this.parent.insertBefore(ha,this.next);return ha}ha=a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"split",this).call(this,ia,ha);this.cache={};return ha}}]);return ca}(n.default.Block);da.blotName="block";da.tagName="P";da.defaultChild=
|
|
33
|
+
"break";da.allowedChildren=[ka.default,n.default.Embed,fa.default];ma.bubbleFormats=f;ma.BlockEmbed=w;ma.default=da},function(ka,ma,fa){function ea(ra){return ra&&ra.__esModule?ra:{default:ra}}function z(ra,ta,va){ta in ra?Object.defineProperty(ra,ta,{value:va,enumerable:!0,configurable:!0,writable:!0}):ra[ta]=va;return ra}function x(ra,ta){ta=(0,ia.default)(!0,{container:ra,modules:{clipboard:!0,keyboard:!0,history:!0}},ta);if(ta.theme&&ta.theme!==qa.DEFAULTS.theme){if(ta.theme=qa.import("themes/"+
|
|
34
|
+
ta.theme),null==ta.theme)throw Error("Invalid theme "+ta.theme+". Did you register it?");}else ta.theme=la.default;ra=(0,ia.default)(!0,{},ta.theme.DEFAULTS);[ra,ta].forEach(function(oa){oa.modules=oa.modules||{};Object.keys(oa.modules).forEach(function(wa){!0===oa.modules[wa]&&(oa.modules[wa]={})})});var va=Object.keys(ra.modules).concat(Object.keys(ta.modules)).reduce(function(oa,wa){var Da=qa.import("modules/"+wa);null==Da?na.error("Cannot load "+wa+" module. Are you sure you registered it?"):
|
|
35
|
+
oa[wa]=Da.DEFAULTS||{};return oa},{});null!=ta.modules&&ta.modules.toolbar&&ta.modules.toolbar.constructor!==Object&&(ta.modules.toolbar={container:ta.modules.toolbar});ta=(0,ia.default)(!0,{},qa.DEFAULTS,{modules:va},ra,ta);["bounds","container","scrollingContainer"].forEach(function(oa){"string"===typeof ta[oa]&&(ta[oa]=document.querySelector(ta[oa]))});ta.modules=Object.keys(ta.modules).reduce(function(oa,wa){ta.modules[wa]&&(oa[wa]=ta.modules[wa]);return oa},{});return ta}function y(ra,ta,va,
|
|
36
|
+
oa){if(this.options.strict&&!this.isEnabled()&&ta===w.default.sources.USER)return new n.default;var wa=null==va?null:this.getSelection(),Da=this.editor.delta;ra=ra();null!=wa&&(!0===va&&(va=wa.index),null==oa?wa=e(wa,ra,ta):0!==oa&&(wa=e(wa,va,oa,ta)),this.setSelection(wa,w.default.sources.SILENT));if(0<ra.length()){var Ha;va=[w.default.events.TEXT_CHANGE,ra,Da,ta];(Ha=this.emitter).emit.apply(Ha,[w.default.events.EDITOR_CHANGE].concat(va));if(ta!==w.default.sources.SILENT){var La;(La=this.emitter).emit.apply(La,
|
|
37
|
+
va)}}return ra}function f(ra,ta,va,oa,wa){var Da={};"number"===typeof ra.index&&"number"===typeof ra.length?("number"!==typeof ta&&(wa=oa,oa=va,va=ta),ta=ra.length,ra=ra.index):"number"!==typeof ta&&(wa=oa,oa=va,va=ta,ta=0);"object"===("undefined"===typeof va?"undefined":a(va))?(Da=va,wa=oa):"string"===typeof va&&(null!=oa?Da[va]=oa:wa=va);wa=wa||w.default.sources.API;return[ra,ta,Da,wa]}function e(ra,ta,va,oa){if(null==ra)return null;var wa=void 0,Da=void 0;ta instanceof n.default?(wa=[ra.index,
|
|
38
|
+
ra.index+ra.length].map(function(Ha){return ta.transformPosition(Ha,oa!==w.default.sources.USER)}),ra=b(wa,2),wa=ra[0],Da=ra[1]):(wa=[ra.index,ra.index+ra.length].map(function(Ha){return Ha<ta||Ha===ta&&oa===w.default.sources.USER?Ha:0<=va?Ha+va:Math.max(ta,Ha+va)}),ra=b(wa,2),wa=ra[0],Da=ra[1]);return new aa.Range(wa,Da-wa)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.overload=ma.expandConfig=void 0;var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(ra){return typeof ra}:
|
|
39
|
+
function(ra){return ra&&"function"===typeof Symbol&&ra.constructor===Symbol&&ra!==Symbol.prototype?"symbol":typeof ra},b=function(){return function(ra,ta){if(Array.isArray(ra))return ra;if(Symbol.iterator in Object(ra)){var va=[],oa=!0,wa=!1,Da=void 0;try{for(var Ha=ra[Symbol.iterator](),La;!(oa=(La=Ha.next()).done)&&(va.push(La.value),!ta||va.length!==ta);oa=!0);}catch(Ca){wa=!0,Da=Ca}finally{try{if(!oa&&Ha["return"])Ha["return"]()}finally{if(wa)throw Da;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
40
|
+
}}(),h=function(){function ra(ta,va){for(var oa=0;oa<va.length;oa++){var wa=va[oa];wa.enumerable=wa.enumerable||!1;wa.configurable=!0;"value"in wa&&(wa.writable=!0);Object.defineProperty(ta,wa.key,wa)}}return function(ta,va,oa){va&&ra(ta.prototype,va);oa&&ra(ta,oa);return ta}}();fa(50);ka=fa(2);var n=ea(ka);ka=fa(14);var ba=ea(ka);ka=fa(8);var w=ea(ka);ka=fa(9);ka=ea(ka);var da=fa(0),ja=ea(da),aa=fa(15),ca=ea(aa);da=fa(3);var ia=ea(da);da=fa(10);var ha=ea(da);fa=fa(34);var la=ea(fa),na=(0,ha.default)("quill"),
|
|
41
|
+
qa=function(){function ra(ta){var va=this,oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof ra))throw new TypeError("Cannot call a class as a function");this.options=x(ta,oa);this.container=this.options.container;if(null==this.container)return na.error("Invalid Quill container",ta);this.options.debug&&ra.debug(this.options.debug);oa=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=
|
|
42
|
+
this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=this.options.scrollingContainer||this.root;this.emitter=new w.default;this.scroll=ja.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ba.default(this.scroll);this.selection=new ca.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=
|
|
43
|
+
this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(w.default.events.EDITOR_CHANGE,function(wa){wa===w.default.events.TEXT_CHANGE&&va.root.classList.toggle("ql-blank",va.editor.isBlank())});this.emitter.on(w.default.events.SCROLL_UPDATE,function(wa,Da){var Ha=va.selection.lastRange,La=Ha&&0===Ha.length?Ha.index:void 0;y.call(va,function(){return va.editor.update(null,Da,La)},wa)});oa=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
|
|
44
|
+
oa+"<p><br></p></div>");this.setContents(oa);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}h(ra,null,[{key:"debug",value:function(ta){!0===ta&&(ta="log");ha.default.level(ta)}},{key:"find",value:function(ta){return ta.__quill||ja.default.find(ta)}},{key:"import",value:function(ta){null==this.imports[ta]&&na.error("Cannot import "+ta+". Are you sure it was registered?");return this.imports[ta]}},
|
|
45
|
+
{key:"register",value:function(ta,va){var oa=this,wa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof ta?(wa=ta.attrName||ta.blotName,"string"===typeof wa?this.register("formats/"+wa,ta,va):Object.keys(ta).forEach(function(Da){oa.register(Da,ta[Da],va)})):(null==this.imports[ta]||wa||na.warn("Overwriting "+ta+" with",va),this.imports[ta]=va,(ta.startsWith("blots/")||ta.startsWith("formats/"))&&"abstract"!==va.blotName?ja.default.register(va):ta.startsWith("modules")&&"function"===
|
|
46
|
+
typeof va.register&&va.register())}}]);h(ra,[{key:"addContainer",value:function(ta){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof ta){var oa=ta;ta=document.createElement("div");ta.classList.add(oa)}this.container.insertBefore(ta,va);return ta}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ta,va,oa){var wa=this;oa=f(ta,va,oa);oa=b(oa,4);ta=oa[0];va=oa[1];oa=oa[3];return y.call(this,function(){return wa.editor.deleteText(ta,
|
|
47
|
+
va)},oa,ta,-1*va)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(ta);this.container.classList.toggle("ql-disabled",!ta)}},{key:"focus",value:function(){var ta=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=ta;this.scrollIntoView()}},{key:"format",value:function(ta,va){var oa=this;return y.call(this,function(){var wa=oa.getSelection(!0),
|
|
48
|
+
Da=new n.default;if(null==wa)return Da;if(ja.default.query(ta,ja.default.Scope.BLOCK))Da=oa.editor.formatLine(wa.index,wa.length,z({},ta,va));else{if(0===wa.length)return oa.selection.format(ta,va),Da;Da=oa.editor.formatText(wa.index,wa.length,z({},ta,va))}oa.setSelection(wa,w.default.sources.SILENT);return Da},2<arguments.length&&void 0!==arguments[2]?arguments[2]:w.default.sources.API)}},{key:"formatLine",value:function(ta,va,oa,wa,Da){var Ha=this,La=void 0;oa=f(ta,va,oa,wa,Da);oa=b(oa,4);ta=oa[0];
|
|
49
|
+
va=oa[1];La=oa[2];Da=oa[3];return y.call(this,function(){return Ha.editor.formatLine(ta,va,La)},Da,ta,0)}},{key:"formatText",value:function(ta,va,oa,wa,Da){var Ha=this,La=void 0;oa=f(ta,va,oa,wa,Da);oa=b(oa,4);ta=oa[0];va=oa[1];La=oa[2];Da=oa[3];return y.call(this,function(){return Ha.editor.formatText(ta,va,La)},Da,ta,0)}},{key:"getBounds",value:function(ta){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;va="number"===typeof ta?this.selection.getBounds(ta,va):this.selection.getBounds(ta.index,
|
|
50
|
+
ta.length);var oa=this.container.getBoundingClientRect();return{bottom:va.bottom-oa.top,height:va.height,left:va.left-oa.left,right:va.right-oa.left,top:va.top-oa.top,width:va.width}}},{key:"getContents",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ta;ta=f(ta,va);va=b(ta,2);ta=va[0];va=va[1];return this.editor.getContents(ta,va)}},{key:"getFormat",value:function(){var ta=0<arguments.length&&
|
|
51
|
+
void 0!==arguments[0]?arguments[0]:this.getSelection(!0),va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof ta?this.editor.getFormat(ta,va):this.editor.getFormat(ta.index,ta.length)}},{key:"getIndex",value:function(ta){return ta.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ta){return this.scroll.leaf(ta)}},{key:"getLine",value:function(ta){return this.scroll.line(ta)}},{key:"getLines",value:function(){var ta=
|
|
52
|
+
0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof ta?this.scroll.lines(ta.index,ta.length):this.scroll.lines(ta,va)}},{key:"getModule",value:function(ta){return this.theme.modules[ta]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var ta=0<arguments.length&&
|
|
53
|
+
void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ta;ta=f(ta,va);va=b(ta,2);ta=va[0];va=va[1];return this.editor.getText(ta,va)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ta,va,oa){var wa=this;return y.call(this,function(){return wa.editor.insertEmbed(ta,va,oa)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:ra.sources.API,ta)}},{key:"insertText",value:function(ta,va,
|
|
54
|
+
oa,wa,Da){var Ha=this,La=void 0;oa=f(ta,0,oa,wa,Da);oa=b(oa,4);ta=oa[0];La=oa[2];Da=oa[3];return y.call(this,function(){return Ha.editor.insertText(ta,va,La)},Da,ta,va.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,
|
|
55
|
+
arguments)}},{key:"pasteHTML",value:function(ta,va,oa){this.clipboard.dangerouslyPasteHTML(ta,va,oa)}},{key:"removeFormat",value:function(ta,va,oa){var wa=this;oa=f(ta,va,oa);oa=b(oa,4);ta=oa[0];va=oa[1];oa=oa[3];return y.call(this,function(){return wa.editor.removeFormat(ta,va)},oa,ta)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ta){var va=this;return y.call(this,function(){ta=new n.default(ta);var oa=va.getLength();
|
|
56
|
+
oa=va.editor.deleteText(0,oa);var wa=va.editor.applyDelta(ta),Da=wa.ops[wa.ops.length-1];null!=Da&&"string"===typeof Da.insert&&"\n"===Da.insert[Da.insert.length-1]&&(va.editor.deleteText(va.getLength()-1,1),wa.delete(1));return oa.compose(wa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API)}},{key:"setSelection",value:function(ta,va,oa){null==ta?this.selection.setRange(null,va||ra.sources.API):(ta=f(ta,va,oa),oa=b(ta,4),ta=oa[0],va=oa[1],oa=oa[3],this.selection.setRange(new aa.Range(ta,
|
|
57
|
+
va),oa),oa!==w.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(ta){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API,oa=(new n.default).insert(ta);return this.setContents(oa,va)}},{key:"update",value:function(){var ta=0<arguments.length&&void 0!==arguments[0]?arguments[0]:w.default.sources.USER,va=this.scroll.update(ta);this.selection.update(ta);return va}},{key:"updateContents",value:function(ta){var va=
|
|
58
|
+
this,oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API;return y.call(this,function(){ta=new n.default(ta);return va.editor.applyDelta(ta,oa)},oa,!0)}}]);return ra}();qa.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};qa.events=w.default.events;qa.sources=w.default.sources;qa.version="1.3.7";qa.imports={delta:n.default,parchment:ja.default,"core/module":ka.default,"core/theme":la.default};ma.expandConfig=
|
|
59
|
+
x;ma.overload=f;ma.default=qa},function(ka,ma,fa){function ea(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=
|
|
60
|
+
h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=(ka=fa(7))&&ka.__esModule?ka:{default:ka};var y=(fa=fa(0))&&fa.__esModule?fa:{default:fa};
|
|
61
|
+
fa=function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);z(a,[{key:"formatAt",value:function(b,h,n,ba){0>a.compare(this.statics.blotName,n)&&y.default.query(n,y.default.Scope.BLOT)?(b=this.isolate(b,h),ba&&b.wrap(n,ba)):
|
|
62
|
+
x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"formatAt",this).call(this,b,h,n,ba)}},{key:"optimize",value:function(b){x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,b);this.parent instanceof a&&0<a.compare(this.statics.blotName,this.parent.statics.blotName)&&(b=this.parent.isolate(this.offset(),this.length()),this.moveChildren(b),b.wrap(this))}}],[{key:"compare",value:function(b,h){var n=a.order.indexOf(b),ba=a.order.indexOf(h);return 0<=n||0<=
|
|
63
|
+
ba?n-ba:b===h?0:b<h?-1:1}}]);return a}(y.default.Inline);fa.allowedChildren=[fa,y.default.Embed,ka.default];fa.order="cursor inline underline strike italic bold script link code".split(" ");ma.default=fa},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,
|
|
64
|
+
x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(0)).default.Text);ma.default=ka},
|
|
65
|
+
function(ka,ma,fa){function ea(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=
|
|
66
|
+
!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=(ka=fa(54))&&ka.__esModule?ka:{default:ka};fa=fa(10);var y=(0,(fa&&fa.__esModule?fa:{default:fa}).default)("quill:events");
|
|
67
|
+
["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var a=arguments.length,b=Array(a),h=0;h<a;h++)b[h]=arguments[h];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(n){if(n.__quill&&n.__quill.emitter){var ba;(ba=n.__quill.emitter).handleDOM.apply(ba,b)}})})});fa=function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).call(this);
|
|
68
|
+
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");b=!b||"object"!==typeof b&&"function"!==typeof b?this:b;b.listeners={};b.on("error",y.error);return b}ea(a,e);z(a,[{key:"emit",value:function(){y.log.apply(y,arguments);x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(b){for(var h=arguments.length,n=Array(1<h?h-1:0),ba=1;ba<h;ba++)n[ba-1]=arguments[ba];(this.listeners[b.type]||
|
|
69
|
+
[]).forEach(function(w){var da=w.node;w=w.handler;(b.target===da||da.contains(b.target))&&w.apply(void 0,[b].concat(n))})}},{key:"listenDOM",value:function(b,h,n){this.listeners[b]||(this.listeners[b]=[]);this.listeners[b].push({node:h,handler:n})}}]);return a}(ka.default);fa.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};fa.sources={API:"api",
|
|
70
|
+
SILENT:"silent",USER:"user"};ma.default=fa},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});ka=function z(ea){var x=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof z))throw new TypeError("Cannot call a class as a function");this.quill=ea;this.options=x};ka.DEFAULTS={};ma.default=ka},function(ka,ma){function fa(y){if(z.indexOf(y)<=z.indexOf(x)){for(var f,e=arguments.length,a=Array(1<e?e-1:0),b=1;b<e;b++)a[b-1]=arguments[b];(f=console)[y].apply(f,a)}}
|
|
71
|
+
function ea(y){return z.reduce(function(f,e){f[e]=fa.bind(console,e,y);return f},{})}Object.defineProperty(ma,"__esModule",{value:!0});var z=["error","warn","log","info"],x="warn";fa.level=ea.level=function(y){x=y};ma.default=ea},function(ka,ma,fa){function ea(a){return!a||"object"!==typeof a||"number"!==typeof a.length||"function"!==typeof a.copy||"function"!==typeof a.slice||0<a.length&&"number"!==typeof a[0]?!1:!0}function z(a,b,h){var n;if(null===a||void 0===a||null===b||void 0===b||a.prototype!==
|
|
72
|
+
b.prototype)return!1;if(f(a)){if(!f(b))return!1;a=x.call(a);b=x.call(b);return e(a,b,h)}if(ea(a)){if(!ea(b)||a.length!==b.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==b[n])return!1;return!0}try{var ba=y(a);var w=y(b)}catch(da){return!1}if(ba.length!=w.length)return!1;ba.sort();w.sort();for(n=ba.length-1;0<=n;n--)if(ba[n]!=w[n])return!1;for(n=ba.length-1;0<=n;n--)if(w=ba[n],!e(a[w],b[w],h))return!1;return typeof a===typeof b}var x=Array.prototype.slice,y=fa(52),f=fa(53),e=ka.exports=function(a,
|
|
73
|
+
b,h){h||(h={});return a===b?!0:a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():!a||!b||"object"!=typeof a&&"object"!=typeof b?h.strict?a===b:a==b:z(a,b,h)}},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});var ea=fa(1);ka=function(){function z(x,y,f){void 0===f&&(f={});this.attrName=x;this.keyName=y;x=ea.Scope.TYPE&ea.Scope.ATTRIBUTE;this.scope=null!=f.scope?f.scope&ea.Scope.LEVEL|x:ea.Scope.ATTRIBUTE;null!=f.whitelist&&(this.whitelist=f.whitelist)}z.keys=function(x){return[].map.call(x.attributes,
|
|
74
|
+
function(y){return y.name})};z.prototype.add=function(x,y){if(!this.canAdd(x,y))return!1;x.setAttribute(this.keyName,y);return!0};z.prototype.canAdd=function(x,y){return null==ea.query(x,ea.Scope.BLOT&(this.scope|ea.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof y?-1<this.whitelist.indexOf(y.replace(/["']/g,"")):-1<this.whitelist.indexOf(y)};z.prototype.remove=function(x){x.removeAttribute(this.keyName)};z.prototype.value=function(x){var y=x.getAttribute(this.keyName);return this.canAdd(x,
|
|
75
|
+
y)&&y?y:""};return z}();ma.default=ka},function(ka,ma,fa){function ea(w){return w&&w.__esModule?w:{default:w}}function z(w,da){if(!(w instanceof da))throw new TypeError("Cannot call a class as a function");}function x(w,da){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!da||"object"!==typeof da&&"function"!==typeof da?w:da}function y(w,da){if("function"!==typeof da&&null!==da)throw new TypeError("Super expression must either be null or a function, not "+
|
|
76
|
+
typeof da);w.prototype=Object.create(da&&da.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});da&&(Object.setPrototypeOf?Object.setPrototypeOf(w,da):w.__proto__=da)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Code=void 0;var f=function(){return function(w,da){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w)){var ja=[],aa=!0,ca=!1,ia=void 0;try{for(var ha=w[Symbol.iterator](),la;!(aa=(la=ha.next()).done)&&(ja.push(la.value),!da||ja.length!==
|
|
77
|
+
da);aa=!0);}catch(na){ca=!0,ia=na}finally{try{if(!aa&&ha["return"])ha["return"]()}finally{if(ca)throw ia;}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function w(da,ja){for(var aa=0;aa<ja.length;aa++){var ca=ja[aa];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(da,ca.key,ca)}}return function(da,ja,aa){ja&&w(da.prototype,ja);aa&&w(da,aa);return da}}(),a=function ca(da,ja,aa){null===
|
|
78
|
+
da&&(da=Function.prototype);var ia=Object.getOwnPropertyDescriptor(da,ja);if(void 0===ia){if(da=Object.getPrototypeOf(da),null!==da)return ca(da,ja,aa)}else{if("value"in ia)return ia.value;ja=ia.get;return void 0===ja?void 0:ja.call(aa)}};ka=fa(2);var b=ea(ka);ka=fa(0);var h=ea(ka);ka=fa(4);ka=ea(ka);var n=fa(6);n=ea(n);fa=fa(7);var ba=ea(fa);fa=function(da){function ja(){z(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,da);return ja}(n.default);fa.blotName=
|
|
79
|
+
"code";fa.tagName="CODE";ka=function(da){function ja(){z(this,ja);return x(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}y(ja,da);e(ja,[{key:"delta",value:function(){var aa=this,ca=this.domNode.textContent;ca.endsWith("\n")&&(ca=ca.slice(0,-1));return ca.split("\n").reduce(function(ia,ha){return ia.insert(ha).insert("\n",aa.formats())},new b.default)}},{key:"format",value:function(aa,ca){if(aa!==this.statics.blotName||!ca){var ia=this.descendant(ba.default,this.length()-1);
|
|
80
|
+
ia=f(ia,1)[0];null!=ia&&ia.deleteAt(ia.length()-1,1);a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,aa,ca)}}},{key:"formatAt",value:function(aa,ca,ia,ha){if(0!==ca&&null!=h.default.query(ia,h.default.Scope.BLOCK)&&(ia!==this.statics.blotName||ha!==this.statics.formats(this.domNode))){var la=this.newlineIndex(aa);if(!(0>la||la>=aa+ca)){var na=this.newlineIndex(aa,!0)+1;la=la-na+1;var qa=this.isolate(na,la),ra=qa.next;qa.format(ia,ha);ra instanceof ja&&ra.formatAt(0,
|
|
81
|
+
aa-na+ca-la,ia,ha)}}}},{key:"insertAt",value:function(aa,ca,ia){null==ia&&(aa=this.descendant(ba.default,aa),aa=f(aa,2),aa[0].insertAt(aa[1],ca))}},{key:"length",value:function(){var aa=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?aa:aa+1}},{key:"newlineIndex",value:function(aa){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,aa).lastIndexOf("\n");var ca=this.domNode.textContent.slice(aa).indexOf("\n");return-1<ca?
|
|
82
|
+
aa+ca:-1}},{key:"optimize",value:function(aa){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n"));a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,aa);var ca=this.next;null!=ca&&ca.prev===this&&ca.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ca.statics.formats(ca.domNode)&&(ca.optimize(aa),ca.moveChildren(this),ca.remove())}},{key:"replace",value:function(aa){a(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),
|
|
83
|
+
"replace",this).call(this,aa);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ca){var ia=h.default.find(ca);null==ia?ca.parentNode.removeChild(ca):ia instanceof h.default.Embed?ia.remove():ia.unwrap()})}}],[{key:"create",value:function(aa){aa=a(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,aa);aa.setAttribute("spellcheck",!1);return aa}},{key:"formats",value:function(){return!0}}]);return ja}(ka.default);ka.blotName="code-block";ka.tagName="PRE";ka.TAB=" ";ma.Code=
|
|
84
|
+
fa;ma.default=ka},function(ka,ma,fa){function ea(la){return la&&la.__esModule?la:{default:la}}function z(la,na){return Object.keys(na).reduce(function(qa,ra){if(null==la[ra])return qa;na[ra]===la[ra]?qa[ra]=na[ra]:Array.isArray(na[ra])?0>na[ra].indexOf(la[ra])&&(qa[ra]=na[ra].concat([la[ra]])):qa[ra]=[na[ra],la[ra]];return qa},{})}function x(la){return la.reduce(function(na,qa){if(1===qa.insert){var ra=(0,aa.default)(qa.attributes);delete ra.image;return na.insert({image:qa.attributes.image},ra)}null==
|
|
85
|
+
qa.attributes||!0!==qa.attributes.list&&!0!==qa.attributes.bullet||(qa=(0,aa.default)(qa),qa.attributes.list?qa.attributes.list="ordered":(qa.attributes.list="bullet",delete qa.attributes.bullet));return"string"===typeof qa.insert?(ra=qa.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),na.insert(ra,qa.attributes)):na.push(qa)},new a.default)}Object.defineProperty(ma,"__esModule",{value:!0});var y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(la){return typeof la}:function(la){return la&&
|
|
86
|
+
"function"===typeof Symbol&&la.constructor===Symbol&&la!==Symbol.prototype?"symbol":typeof la},f=function(){return function(la,na){if(Array.isArray(la))return la;if(Symbol.iterator in Object(la)){var qa=[],ra=!0,ta=!1,va=void 0;try{for(var oa=la[Symbol.iterator](),wa;!(ra=(wa=oa.next()).done)&&(qa.push(wa.value),!na||qa.length!==na);ra=!0);}catch(Da){ta=!0,va=Da}finally{try{if(!ra&&oa["return"])oa["return"]()}finally{if(ta)throw va;}}return qa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
87
|
+
}}(),e=function(){function la(na,qa){for(var ra=0;ra<qa.length;ra++){var ta=qa[ra];ta.enumerable=ta.enumerable||!1;ta.configurable=!0;"value"in ta&&(ta.writable=!0);Object.defineProperty(na,ta.key,ta)}}return function(na,qa,ra){qa&&la(na.prototype,qa);ra&&la(na,ra);return na}}();ka=fa(2);var a=ea(ka);ka=fa(20);var b=ea(ka);ka=fa(0);var h=ea(ka);ka=fa(13);var n=ea(ka);ka=fa(24);var ba=ea(ka),w=fa(4),da=ea(w);ka=fa(16);var ja=ea(ka);ka=fa(21);var aa=ea(ka);ka=fa(11);var ca=ea(ka);fa=fa(3);var ia=ea(fa),
|
|
88
|
+
ha=/^[ -~]*$/;fa=function(){function la(na){if(!(this instanceof la))throw new TypeError("Cannot call a class as a function");this.scroll=na;this.delta=this.getDelta()}e(la,[{key:"applyDelta",value:function(na){var qa=this,ra=!1;this.scroll.update();var ta=this.scroll.length();this.scroll.batchStart();na=x(na);na.reduce(function(va,oa){var wa=oa.retain||oa.delete||oa.insert.length||1,Da=oa.attributes||{};if(null!=oa.insert){if("string"===typeof oa.insert){oa=oa.insert;oa.endsWith("\n")&&ra&&(ra=!1,
|
|
89
|
+
oa=oa.slice(0,-1));va>=ta&&!oa.endsWith("\n")&&(ra=!0);qa.scroll.insertAt(va,oa);oa=qa.scroll.line(va);oa=f(oa,2);var Ha=oa[0],La=oa[1];oa=(0,ia.default)({},(0,w.bubbleFormats)(Ha));Ha instanceof da.default&&(Ha=Ha.descendant(h.default.Leaf,La),Ha=f(Ha,1)[0],oa=(0,ia.default)(oa,(0,w.bubbleFormats)(Ha)));Da=b.default.attributes.diff(oa,Da)||{}}else if("object"===y(oa.insert)){Ha=Object.keys(oa.insert)[0];if(null==Ha)return va;qa.scroll.insertAt(va,Ha,oa.insert[Ha])}ta+=wa}Object.keys(Da).forEach(function(Ca){qa.scroll.formatAt(va,
|
|
90
|
+
wa,Ca,Da[Ca])});return va+wa},0);na.reduce(function(va,oa){return"number"===typeof oa.delete?(qa.scroll.deleteAt(va,oa.delete),va):va+(oa.retain||oa.insert.length||1)},0);this.scroll.batchEnd();return this.update(na)}},{key:"deleteText",value:function(na,qa){this.scroll.deleteAt(na,qa);return this.update((new a.default).retain(na).delete(qa))}},{key:"formatLine",value:function(na,qa){var ra=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ta).forEach(function(va){if(null==
|
|
91
|
+
ra.scroll.whitelist||ra.scroll.whitelist[va]){var oa=ra.scroll.lines(na,Math.max(qa,1)),wa=qa;oa.forEach(function(Da){var Ha=Da.length();if(Da instanceof n.default){var La=na-Da.offset(ra.scroll),Ca=Da.newlineIndex(La+wa)-La+1;Da.formatAt(La,Ca,va,ta[va])}else Da.format(va,ta[va]);wa-=Ha})}});this.scroll.optimize();return this.update((new a.default).retain(na).retain(qa,(0,aa.default)(ta)))}},{key:"formatText",value:function(na,qa){var ra=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
|
|
92
|
+
{};Object.keys(ta).forEach(function(va){ra.scroll.formatAt(na,qa,va,ta[va])});return this.update((new a.default).retain(na).retain(qa,(0,aa.default)(ta)))}},{key:"getContents",value:function(na,qa){return this.delta.slice(na,na+qa)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(na,qa){return na.concat(qa.delta())},new a.default)}},{key:"getFormat",value:function(na){var qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ra=[],ta=[];0===qa?this.scroll.path(na).forEach(function(va){va=
|
|
93
|
+
f(va,1)[0];va instanceof da.default?ra.push(va):va instanceof h.default.Leaf&&ta.push(va)}):(ra=this.scroll.lines(na,qa),ta=this.scroll.descendants(h.default.Leaf,na,qa));qa=[ra,ta].map(function(va){if(0===va.length)return{};for(var oa=(0,w.bubbleFormats)(va.shift());0<Object.keys(oa).length;){var wa=va.shift();if(null==wa)break;oa=z((0,w.bubbleFormats)(wa),oa)}return oa});return ia.default.apply(ia.default,qa)}},{key:"getText",value:function(na,qa){return this.getContents(na,qa).filter(function(ra){return"string"===
|
|
94
|
+
typeof ra.insert}).map(function(ra){return ra.insert}).join("")}},{key:"insertEmbed",value:function(na,qa,ra){this.scroll.insertAt(na,qa,ra);var ta=this.update;na=(new a.default).retain(na);var va=na.insert,oa={};qa in oa?Object.defineProperty(oa,qa,{value:ra,enumerable:!0,configurable:!0,writable:!0}):oa[qa]=ra;return ta.call(this,va.call(na,oa))}},{key:"insertText",value:function(na,qa){var ra=this,ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};qa=qa.replace(/\r\n/g,"\n").replace(/\r/g,
|
|
95
|
+
"\n");this.scroll.insertAt(na,qa);Object.keys(ta).forEach(function(va){ra.scroll.formatAt(na,qa.length,va,ta[va])});return this.update((new a.default).retain(na).insert(qa,(0,aa.default)(ta)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var na=this.scroll.children.head;return na.statics.blotName!==da.default.blotName||1<na.children.length?!1:na.children.head instanceof ja.default}},{key:"removeFormat",value:function(na,qa){var ra=
|
|
96
|
+
this.getText(na,qa),ta=this.scroll.line(na+qa),va=f(ta,2);ta=va[0];va=va[1];var oa=0,wa=new a.default;null!=ta&&(oa=ta instanceof n.default?ta.newlineIndex(va)-va+1:ta.length()-va,wa=ta.delta().slice(va,va+oa-1).insert("\n"));qa=this.getContents(na,qa+oa).diff((new a.default).insert(ra).concat(wa));na=(new a.default).retain(na).concat(qa);return this.applyDelta(na)}},{key:"update",value:function(na){var qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],ra=2<arguments.length&&void 0!==arguments[2]?
|
|
97
|
+
arguments[2]:void 0,ta=this.delta;if(1===qa.length&&"characterData"===qa[0].type&&qa[0].target.data.match(ha)&&h.default.find(qa[0].target)){var va=h.default.find(qa[0].target),oa=(0,w.bubbleFormats)(va),wa=va.offset(this.scroll);qa=qa[0].oldValue.replace(ba.default.CONTENTS,"");qa=(new a.default).insert(qa);va=(new a.default).insert(va.value());na=(new a.default).retain(wa).concat(qa.diff(va,ra)).reduce(function(Da,Ha){return Ha.insert?Da.insert(Ha.insert,oa):Da.push(Ha)},new a.default);this.delta=
|
|
98
|
+
ta.compose(na)}else this.delta=this.getDelta(),na&&(0,ca.default)(ta.compose(na),this.delta)||(na=ta.diff(this.delta,ra));return na}}]);return la}();ma.default=fa},function(ka,ma,fa){function ea(da){return da&&da.__esModule?da:{default:da}}function z(da){if(Array.isArray(da)){for(var ja=0,aa=Array(da.length);ja<da.length;ja++)aa[ja]=da[ja];return aa}return Array.from(da)}function x(da,ja){if(!(da instanceof ja))throw new TypeError("Cannot call a class as a function");}function y(da,ja){try{ja.parentNode}catch(aa){return!1}ja instanceof
|
|
99
|
+
Text&&(ja=ja.parentNode);return da.contains(ja)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.Range=void 0;var f=function(){return function(da,ja){if(Array.isArray(da))return da;if(Symbol.iterator in Object(da)){var aa=[],ca=!0,ia=!1,ha=void 0;try{for(var la=da[Symbol.iterator](),na;!(ca=(na=la.next()).done)&&(aa.push(na.value),!ja||aa.length!==ja);ca=!0);}catch(qa){ia=!0,ha=qa}finally{try{if(!ca&&la["return"])la["return"]()}finally{if(ia)throw ha;}}return aa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
100
|
+
}}(),e=function(){function da(ja,aa){for(var ca=0;ca<aa.length;ca++){var ia=aa[ca];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=!0);Object.defineProperty(ja,ia.key,ia)}}return function(ja,aa,ca){aa&&da(ja.prototype,aa);ca&&da(ja,ca);return ja}}();ka=fa(0);var a=ea(ka);ka=fa(21);var b=ea(ka);ka=fa(11);var h=ea(ka);ka=fa(8);var n=ea(ka);fa=fa(10);var ba=(0,ea(fa).default)("quill:selection"),w=function aa(ja){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
|
|
101
|
+
0;x(this,aa);this.index=ja;this.length=ca};fa=function(){function ja(aa,ca){var ia=this;x(this,ja);this.emitter=ca;this.scroll=aa;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=a.default.create("cursor",this);this.lastRange=this.savedRange=new w(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){ia.mouseDown||setTimeout(ia.update.bind(ia,n.default.sources.USER),1)});this.emitter.on(n.default.events.EDITOR_CHANGE,
|
|
102
|
+
function(ha,la){ha===n.default.events.TEXT_CHANGE&&0<la.length()&&ia.update(n.default.sources.SILENT)});this.emitter.on(n.default.events.SCROLL_BEFORE_UPDATE,function(){if(ia.hasFocus()){var ha=ia.getNativeRange();if(null!=ha&&ha.start.node!==ia.cursor.textNode)ia.emitter.once(n.default.events.SCROLL_UPDATE,function(){try{ia.setNativeRange(ha.start.node,ha.start.offset,ha.end.node,ha.end.offset)}catch(la){}})}});this.emitter.on(n.default.events.SCROLL_OPTIMIZE,function(ha,la){la.range&&(ha=la.range,
|
|
103
|
+
ia.setNativeRange(ha.startNode,ha.startOffset,ha.endNode,ha.endOffset))});this.update(n.default.sources.SILENT)}e(ja,[{key:"handleComposition",value:function(){var aa=this;this.root.addEventListener("compositionstart",function(){aa.composing=!0});this.root.addEventListener("compositionend",function(){aa.composing=!1;if(aa.cursor.parent){var ca=aa.cursor.restore();ca&&setTimeout(function(){aa.setNativeRange(ca.startNode,ca.startOffset,ca.endNode,ca.endOffset)},1)}})}},{key:"handleDragging",value:function(){var aa=
|
|
104
|
+
this;this.emitter.listenDOM("mousedown",document.body,function(){aa.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){aa.mouseDown=!1;aa.update(n.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(aa,ca){if(null==this.scroll.whitelist||this.scroll.whitelist[aa]){this.scroll.update();var ia=this.getNativeRange();if(null!=ia&&ia.native.collapsed&&!a.default.query(aa,a.default.Scope.BLOCK)){if(ia.start.node!==
|
|
105
|
+
this.cursor.textNode){var ha=a.default.find(ia.start.node,!1);if(null==ha)return;ha instanceof a.default.Leaf?(ia=ha.split(ia.start.offset),ha.parent.insertBefore(this.cursor,ia)):ha.insertBefore(this.cursor,ia.start.node);this.cursor.attach()}this.cursor.format(aa,ca);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(aa){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ia=this.scroll.length();
|
|
106
|
+
aa=Math.min(aa,ia-1);ca=Math.min(aa+ca,ia-1)-aa;ia=this.scroll.leaf(aa);var ha=f(ia,2);ia=ha[0];var la=ha[1];if(null==ia)return null;ha=ia.position(la,!0);ha=f(ha,2);var na=ha[0];la=ha[1];ha=document.createRange();if(0<ca){ha.setStart(na,la);ca=this.scroll.leaf(aa+ca);ca=f(ca,2);ia=ca[0];la=ca[1];if(null==ia)return null;ca=ia.position(la,!0);ca=f(ca,2);na=ca[0];la=ca[1];ha.setEnd(na,la);return ha.getBoundingClientRect()}ca="left";na instanceof Text?(la<na.data.length?(ha.setStart(na,la),ha.setEnd(na,
|
|
107
|
+
la+1)):(ha.setStart(na,la-1),ha.setEnd(na,la),ca="right"),ia=ha.getBoundingClientRect()):(ia=ia.domNode.getBoundingClientRect(),0<la&&(ca="right"));return{bottom:ia.top+ia.height,height:ia.height,left:ia[ca],right:ia[ca],top:ia.top,width:0}}},{key:"getNativeRange",value:function(){var aa=document.getSelection();if(null==aa||0>=aa.rangeCount)return null;aa=aa.getRangeAt(0);if(null==aa)return null;aa=this.normalizeNative(aa);ba.info("getNativeRange",aa);return aa}},{key:"getRange",value:function(){var aa=
|
|
108
|
+
this.getNativeRange();return null==aa?[null,null]:[this.normalizedToRange(aa),aa]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(aa){var ca=this,ia=[[aa.start.node,aa.start.offset]];aa.native.collapsed||ia.push([aa.end.node,aa.end.offset]);ia=ia.map(function(ha){var la=f(ha,2);ha=la[0];la=la[1];var na=a.default.find(ha,!0),qa=na.offset(ca.scroll);return 0===la?qa:na instanceof a.default.Container?qa+na.length():qa+na.index(ha,
|
|
109
|
+
la)});aa=Math.min(Math.max.apply(Math,z(ia)),this.scroll.length()-1);ia=Math.min.apply(Math,[aa].concat(z(ia)));return new w(ia,aa-ia)}},{key:"normalizeNative",value:function(aa){if(!y(this.root,aa.startContainer)||!aa.collapsed&&!y(this.root,aa.endContainer))return null;aa={start:{node:aa.startContainer,offset:aa.startOffset},end:{node:aa.endContainer,offset:aa.endOffset},native:aa};[aa.start,aa.end].forEach(function(ca){for(var ia=ca.node,ha=ca.offset;!(ia instanceof Text)&&0<ia.childNodes.length;)if(ia.childNodes.length>
|
|
110
|
+
ha)ia=ia.childNodes[ha],ha=0;else if(ia.childNodes.length===ha)ia=ia.lastChild,ha=ia instanceof Text?ia.data.length:ia.childNodes.length+1;else break;ca.node=ia;ca.offset=ha});return aa}},{key:"rangeToNative",value:function(aa){var ca=this;aa=aa.collapsed?[aa.index]:[aa.index,aa.index+aa.length];var ia=[],ha=this.scroll.length();aa.forEach(function(la,na){la=Math.min(ha-1,la);la=ca.scroll.leaf(la);var qa=f(la,2);la=qa[1];na=qa[0].position(la,0!==na);la=f(na,2);na=la[0];la=la[1];ia.push(na,la)});2>
|
|
111
|
+
ia.length&&(ia=ia.concat(ia));return ia}},{key:"scrollIntoView",value:function(aa){var ca=this.lastRange;if(null!=ca){var ia=this.getBounds(ca.index,ca.length);if(null!=ia){var ha=this.scroll.length()-1,la=this.scroll.line(Math.min(ca.index,ha)),na=la=f(la,1)[0];0<ca.length&&(ca=this.scroll.line(Math.min(ca.index+ca.length,ha)),na=f(ca,1)[0]);null!=la&&null!=na&&(ca=aa.getBoundingClientRect(),ia.top<ca.top?aa.scrollTop-=ca.top-ia.top:ia.bottom>ca.bottom&&(aa.scrollTop+=ia.bottom-ca.bottom))}}}},{key:"setNativeRange",
|
|
112
|
+
value:function(aa,ca){var ia=2<arguments.length&&void 0!==arguments[2]?arguments[2]:aa,ha=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ca,la=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ba.info("setNativeRange",aa,ca,ia,ha);if(null==aa||null!=this.root.parentNode&&null!=aa.parentNode&&null!=ia.parentNode){var na=document.getSelection();if(null!=na)if(null!=aa){this.hasFocus()||this.root.focus();var qa=(this.getNativeRange()||{}).native;if(null==qa||la||aa!==qa.startContainer||
|
|
113
|
+
ca!==qa.startOffset||ia!==qa.endContainer||ha!==qa.endOffset)"BR"==aa.tagName&&(ca=[].indexOf.call(aa.parentNode.childNodes,aa),aa=aa.parentNode),"BR"==ia.tagName&&(ha=[].indexOf.call(ia.parentNode.childNodes,ia),ia=ia.parentNode),la=document.createRange(),la.setStart(aa,ca),la.setEnd(ia,ha),na.removeAllRanges(),na.addRange(la)}else na.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(aa){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ia=
|
|
114
|
+
2<arguments.length&&void 0!==arguments[2]?arguments[2]:n.default.sources.API;"string"===typeof ca&&(ia=ca,ca=!1);ba.info("setRange",aa);if(null!=aa){var ha=this.rangeToNative(aa);this.setNativeRange.apply(this,z(ha).concat([ca]))}else this.setNativeRange(null);this.update(ia)}},{key:"update",value:function(){var aa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n.default.sources.USER,ca=this.lastRange,ia=this.getRange();ia=f(ia,2);var ha=ia[1];this.lastRange=ia[0];null!=this.lastRange&&(this.savedRange=
|
|
115
|
+
this.lastRange);if(!(0,h.default)(ca,this.lastRange)){var la;!this.composing&&null!=ha&&ha.native.collapsed&&ha.start.node!==this.cursor.textNode&&this.cursor.restore();ca=[n.default.events.SELECTION_CHANGE,(0,b.default)(this.lastRange),(0,b.default)(ca),aa];(la=this.emitter).emit.apply(la,[n.default.events.EDITOR_CHANGE].concat(ca));if(aa!==n.default.sources.SILENT){var na;(na=this.emitter).emit.apply(na,ca)}}}}]);return ja}();ma.Range=w;ma.default=fa},function(ka,ma,fa){function ea(y,f){if("function"!==
|
|
116
|
+
typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,
|
|
117
|
+
b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
118
|
+
return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,[{key:"insertInto",value:function(a,b){0===a.children.length?x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,a,b):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(0)).default.Embed);ka.blotName="break";ka.tagName="BR";ma.default=ka},function(ka,
|
|
119
|
+
ma,fa){function ea(f){var e=y.find(f);if(null==e)try{e=y.create(f)}catch(a){e=y.create(y.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(b){e.domNode.appendChild(b)}),f.parentNode&&f.parentNode.replaceChild(e.domNode,f),e.attach()}return e}var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=e}f(e,
|
|
120
|
+
a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});var x=fa(44);ka=fa(30);var y=fa(1);fa=function(f){function e(a){a=f.call(this,a)||this;a.build();return a}z(e,f);e.prototype.appendChild=function(a){this.insertBefore(a)};e.prototype.attach=function(){f.prototype.attach.call(this);this.children.forEach(function(a){a.attach()})};e.prototype.build=function(){var a=this;this.children=new x.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(b){try{var h=
|
|
121
|
+
ea(b);a.insertBefore(h,a.children.head||void 0)}catch(n){if(!(n instanceof y.ParchmentError))throw n;}})};e.prototype.deleteAt=function(a,b){if(0===a&&b===this.length())return this.remove();this.children.forEachAt(a,b,function(h,n,ba){h.deleteAt(n,ba)})};e.prototype.descendant=function(a,b){var h=this.children.find(b);b=h[0];h=h[1];return null==a.blotName&&a(b)||null!=a.blotName&&b instanceof a?[b,h]:b instanceof e?b.descendant(a,h):[null,-1]};e.prototype.descendants=function(a,b,h){void 0===b&&(b=
|
|
122
|
+
0);void 0===h&&(h=Number.MAX_VALUE);var n=[],ba=h;this.children.forEachAt(b,h,function(w,da,ja){(null==a.blotName&&a(w)||null!=a.blotName&&w instanceof a)&&n.push(w);w instanceof e&&(n=n.concat(w.descendants(a,da,ba)));ba-=ja});return n};e.prototype.detach=function(){this.children.forEach(function(a){a.detach()});f.prototype.detach.call(this)};e.prototype.formatAt=function(a,b,h,n){this.children.forEachAt(a,b,function(ba,w,da){ba.formatAt(w,da,h,n)})};e.prototype.insertAt=function(a,b,h){var n=this.children.find(a);
|
|
123
|
+
a=n[0];n=n[1];a?a.insertAt(n,b,h):(b=null==h?y.create("text",b):y.create(b,h),this.appendChild(b))};e.prototype.insertBefore=function(a,b){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(h){return a instanceof h}))throw new y.ParchmentError("Cannot insert "+a.statics.blotName+" into "+this.statics.blotName);a.insertInto(this,b)};e.prototype.length=function(){return this.children.reduce(function(a,b){return a+b.length()},0)};e.prototype.moveChildren=function(a,b){this.children.forEach(function(h){a.insertBefore(h,
|
|
124
|
+
b)})};e.prototype.optimize=function(a){f.prototype.optimize.call(this,a);if(0===this.children.length)if(null!=this.statics.defaultChild){var b=y.create(this.statics.defaultChild);this.appendChild(b);b.optimize(a)}else this.remove()};e.prototype.path=function(a,b){void 0===b&&(b=!1);var h=this.children.find(a,b),n=h[0];h=h[1];a=[[this,a]];if(n instanceof e)return a.concat(n.path(h,b));null!=n&&a.push([n,h]);return a};e.prototype.removeChild=function(a){this.children.remove(a)};e.prototype.replace=
|
|
125
|
+
function(a){a instanceof e&&a.moveChildren(this);f.prototype.replace.call(this,a)};e.prototype.split=function(a,b){void 0===b&&(b=!1);if(!b){if(0===a)return this;if(a===this.length())return this.next}var h=this.clone();this.parent.insertBefore(h,this.next);this.children.forEachAt(a,this.length(),function(n,ba){n=n.split(ba,b);h.appendChild(n)});return h};e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};e.prototype.update=function(a){var b=this,h=[],n=[];a.forEach(function(ba){ba.target===
|
|
126
|
+
b.domNode&&"childList"===ba.type&&(h.push.apply(h,ba.addedNodes),n.push.apply(n,ba.removedNodes))});n.forEach(function(ba){null!=ba.parentNode&&"IFRAME"!==ba.tagName&&document.body.compareDocumentPosition(ba)&Node.DOCUMENT_POSITION_CONTAINED_BY||(ba=y.find(ba),null!=ba&&(null!=ba.domNode.parentNode&&ba.domNode.parentNode!==b.domNode||ba.detach()))});h.filter(function(ba){return ba.parentNode==b.domNode}).sort(function(ba,w){return ba===w?0:ba.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?
|
|
127
|
+
1:-1}).forEach(function(ba){var w=null;null!=ba.nextSibling&&(w=y.find(ba.nextSibling));ba=ea(ba);if(ba.next!=w||null==ba.next)null!=ba.parent&&ba.parent.removeChild(b),b.insertBefore(ba,w||void 0)})};return e}(ka.default);ma.default=fa},function(ka,ma,fa){var ea=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=
|
|
128
|
+
e}f(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});var z=fa(12),x=fa(31);ka=fa(17);var y=fa(1);fa=function(f){function e(a){a=f.call(this,a)||this;a.attributes=new x.default(a.domNode);return a}ea(e,f);e.formats=function(a){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return a.tagName.toLowerCase()};e.prototype.format=function(a,b){var h=y.query(a);h instanceof z.default?this.attributes.attribute(h,
|
|
129
|
+
b):b&&(null==h||a===this.statics.blotName&&this.formats()[a]===b||this.replaceWith(a,b))};e.prototype.formats=function(){var a=this.attributes.values(),b=this.statics.formats(this.domNode);null!=b&&(a[this.statics.blotName]=b);return a};e.prototype.replaceWith=function(a,b){a=f.prototype.replaceWith.call(this,a,b);this.attributes.copy(a);return a};e.prototype.update=function(a,b){var h=this;f.prototype.update.call(this,a,b);a.some(function(n){return n.target===h.domNode&&"attributes"===n.type})&&
|
|
130
|
+
this.attributes.build()};e.prototype.wrap=function(a,b){a=f.prototype.wrap.call(this,a,b);a instanceof e&&a.statics.scope===this.statics.scope&&this.attributes.move(a);return a};return e}(ka.default);ma.default=fa},function(ka,ma,fa){var ea=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===
|
|
131
|
+
f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(30);var z=fa(1);fa=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}ea(y,x);y.value=function(){return!0};y.prototype.index=function(f,e){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1};y.prototype.position=function(f){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<f&&(e+=1);
|
|
132
|
+
return[this.parent.domNode,e]};y.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f};y.scope=z.Scope.INLINE_BLOT;return y}(ka.default);ma.default=fa},function(ka,ma,fa){function ea(f){this.ops=f;this.offset=this.index=0}var z=fa(11),x=fa(3),y={attributes:{compose:function(f,e,a){"object"!==typeof f&&(f={});"object"!==typeof e&&(e={});var b=x(!0,{},e);a||(b=Object.keys(b).reduce(function(n,ba){null!=b[ba]&&(n[ba]=b[ba]);return n},{}));for(var h in f)void 0!==
|
|
133
|
+
f[h]&&void 0===e[h]&&(b[h]=f[h]);return 0<Object.keys(b).length?b:void 0},diff:function(f,e){"object"!==typeof f&&(f={});"object"!==typeof e&&(e={});var a=Object.keys(f).concat(Object.keys(e)).reduce(function(b,h){z(f[h],e[h])||(b[h]=void 0===e[h]?null:e[h]);return b},{});return 0<Object.keys(a).length?a:void 0},transform:function(f,e,a){if("object"!==typeof f)return e;if("object"===typeof e){if(!a)return e;a=Object.keys(e).reduce(function(b,h){void 0===f[h]&&(b[h]=e[h]);return b},{});return 0<Object.keys(a).length?
|
|
134
|
+
a:void 0}}},iterator:function(f){return new ea(f)},length:function(f){return"number"===typeof f["delete"]?f["delete"]:"number"===typeof f.retain?f.retain:"string"===typeof f.insert?f.insert.length:1}};ea.prototype.hasNext=function(){return Infinity>this.peekLength()};ea.prototype.next=function(f){f||(f=Infinity);var e=this.ops[this.index];if(e){var a=this.offset,b=y.length(e);f>=b-a?(f=b-a,this.index+=1,this.offset=0):this.offset+=f;if("number"===typeof e["delete"])return{"delete":f};b={};e.attributes&&
|
|
135
|
+
(b.attributes=e.attributes);"number"===typeof e.retain?b.retain=f:b.insert="string"===typeof e.insert?e.insert.substr(a,f):e.insert;return b}return{retain:Infinity}};ea.prototype.peek=function(){return this.ops[this.index]};ea.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:Infinity};ea.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};
|
|
136
|
+
ea.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var f=this.offset,e=this.index,a=this.next(),b=this.ops.slice(this.index);this.offset=f;this.index=e;return[a].concat(b)}return[]};ka.exports=y},function(ka){var ma=function(){function fa(a,b){return null!=b&&a instanceof b}function ea(a,b,h,n,ba){function w(ca,ia){if(null===ca)return null;if(0===ia||"object"!=typeof ca)return ca;if(fa(ca,y))var ha=new y;else if(fa(ca,f))ha=new f;else if(fa(ca,e))ha=
|
|
137
|
+
new e(function(ta,va){ca.then(function(oa){ta(w(oa,ia-1))},function(oa){va(w(oa,ia-1))})});else if(ea.__isArray(ca))ha=[];else if(ea.__isRegExp(ca))ha=new RegExp(ca.source,x(ca)),ca.lastIndex&&(ha.lastIndex=ca.lastIndex);else if(ea.__isDate(ca))ha=new Date(ca.getTime());else{if(aa&&pa.isBuffer(ca))return ha=pa.allocUnsafe?pa.allocUnsafe(ca.length):new pa(ca.length),ca.copy(ha),ha;if(fa(ca,Error))ha=Object.create(ca);else if("undefined"==typeof n){var la=Object.getPrototypeOf(ca);ha=Object.create(la)}else ha=
|
|
138
|
+
Object.create(n),la=n}if(b){var na=da.indexOf(ca);if(-1!=na)return ja[na];da.push(ca);ja.push(ha)}fa(ca,y)&&ca.forEach(function(ta,va){va=w(va,ia-1);ta=w(ta,ia-1);ha.set(va,ta)});fa(ca,f)&&ca.forEach(function(ta){ta=w(ta,ia-1);ha.add(ta)});for(var qa in ca){var ra;la&&(ra=Object.getOwnPropertyDescriptor(la,qa));ra&&null==ra.set||(ha[qa]=w(ca[qa],ia-1))}if(Object.getOwnPropertySymbols)for(na=Object.getOwnPropertySymbols(ca),qa=0;qa<na.length;qa++)if(ra=na[qa],la=Object.getOwnPropertyDescriptor(ca,
|
|
139
|
+
ra),!la||la.enumerable||ba)ha[ra]=w(ca[ra],ia-1),la.enumerable||Object.defineProperty(ha,ra,{enumerable:!1});if(ba)for(na=Object.getOwnPropertyNames(ca),qa=0;qa<na.length;qa++)ra=na[qa],la=Object.getOwnPropertyDescriptor(ca,ra),la&&la.enumerable||(ha[ra]=w(ca[ra],ia-1),Object.defineProperty(ha,ra,{enumerable:!1}));return ha}"object"===typeof b&&(h=b.depth,n=b.prototype,ba=b.includeNonEnumerable,b=b.circular);var da=[],ja=[],aa="undefined"!=typeof pa;"undefined"==typeof b&&(b=!0);"undefined"==typeof h&&
|
|
140
|
+
(h=Infinity);return w(a,h)}function z(a){return Object.prototype.toString.call(a)}function x(a){var b="";a.global&&(b+="g");a.ignoreCase&&(b+="i");a.multiline&&(b+="m");return b}try{var y=Map}catch(a){y=function(){}}try{var f=Set}catch(a){f=function(){}}try{var e=Promise}catch(a){e=function(){}}ea.clonePrototype=function(a){function b(){}if(null===a)return null;b.prototype=a;return new b};ea.__objToStr=z;ea.__isDate=function(a){return"object"===typeof a&&"[object Date]"===z(a)};ea.__isArray=function(a){return"object"===
|
|
141
|
+
typeof a&&"[object Array]"===z(a)};ea.__isRegExp=function(a){return"object"===typeof a&&"[object RegExp]"===z(a)};ea.__getRegExpFlags=x;return ea}();"object"===typeof ka&&ka.exports&&(ka.exports=ma)},function(ka,ma,fa){function ea(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?ja:aa}function x(ja,aa){if("function"!==typeof aa&&null!==
|
|
142
|
+
aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);ja.prototype=Object.create(aa&&aa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,aa):ja.__proto__=aa)}function y(ja){return ja instanceof ba.default||ja instanceof n.BlockEmbed}Object.defineProperty(ma,"__esModule",{value:!0});var f=function(){return function(ja,aa){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ca=
|
|
143
|
+
[],ia=!0,ha=!1,la=void 0;try{for(var na=ja[Symbol.iterator](),qa;!(ia=(qa=na.next()).done)&&(ca.push(qa.value),!aa||ca.length!==aa);ia=!0);}catch(ra){ha=!0,la=ra}finally{try{if(!ia&&na["return"])na["return"]()}finally{if(ha)throw la;}}return ca}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function ja(aa,ca){for(var ia=0;ia<ca.length;ia++){var ha=ca[ia];ha.enumerable=ha.enumerable||!1;ha.configurable=!0;"value"in ha&&(ha.writable=!0);Object.defineProperty(aa,
|
|
144
|
+
ha.key,ha)}}return function(aa,ca,ia){ca&&ja(aa.prototype,ca);ia&&ja(aa,ia);return aa}}(),a=function ha(aa,ca,ia){null===aa&&(aa=Function.prototype);var la=Object.getOwnPropertyDescriptor(aa,ca);if(void 0===la){if(aa=Object.getPrototypeOf(aa),null!==aa)return ha(aa,ca,ia)}else{if("value"in la)return la.value;ca=la.get;return void 0===ca?void 0:ca.call(ia)}};ka=fa(0);var b=ea(ka);ka=fa(8);var h=ea(ka),n=fa(4),ba=ea(n);ka=fa(16);var w=ea(ka);ka=fa(13);var da=ea(ka);fa=fa(25);fa=ea(fa);ka=function(aa){function ca(ia,
|
|
145
|
+
ha){if(!(this instanceof ca))throw new TypeError("Cannot call a class as a function");ia=z(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia));ia.emitter=ha.emitter;Array.isArray(ha.whitelist)&&(ia.whitelist=ha.whitelist.reduce(function(la,na){la[na]=!0;return la},{}));ia.domNode.addEventListener("DOMNodeInserted",function(){});ia.optimize();ia.enable();return ia}x(ca,aa);e(ca,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
|
|
146
|
+
{key:"deleteAt",value:function(ia,ha){var la=this.line(ia),na=f(la,2);la=na[0];var qa=na[1];na=this.line(ia+ha);na=f(na,1)[0];a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"deleteAt",this).call(this,ia,ha);if(null!=na&&la!==na&&0<qa){if(la instanceof n.BlockEmbed||na instanceof n.BlockEmbed){this.optimize();return}if(la instanceof da.default){if(ia=la.newlineIndex(la.length(),!0),-1<ia&&(la=la.split(ia+1),la===na)){this.optimize();return}}else na instanceof da.default&&(ia=na.newlineIndex(0),
|
|
147
|
+
-1<ia&&na.split(ia+1));la.moveChildren(na,na.children.head instanceof w.default?null:na.children.head);la.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(ia,ha,la,na){if(null==this.whitelist||this.whitelist[la])a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"formatAt",this).call(this,ia,ha,la,na),this.optimize()}},{key:"insertAt",value:function(ia,
|
|
148
|
+
ha,la){if(null==la||null==this.whitelist||this.whitelist[ha])ia>=this.length()?null==la||null==b.default.query(ha,b.default.Scope.BLOCK)?(ia=b.default.create(this.statics.defaultChild),this.appendChild(ia),null==la&&ha.endsWith("\n")&&(ha=ha.slice(0,-1)),ia.insertAt(0,ha,la)):(ha=b.default.create(ha,la),this.appendChild(ha)):a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertAt",this).call(this,ia,ha,la),this.optimize()}},{key:"insertBefore",value:function(ia,ha){if(ia.statics.scope===
|
|
149
|
+
b.default.Scope.INLINE_BLOT){var la=b.default.create(this.statics.defaultChild);la.appendChild(ia);ia=la}a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"insertBefore",this).call(this,ia,ha)}},{key:"leaf",value:function(ia){return this.path(ia).pop()||[null,-1]}},{key:"line",value:function(ia){return ia===this.length()?this.line(ia-1):this.descendant(y,ia)}},{key:"lines",value:function(){return function qa(ha,la,na){var ra=[],ta=na;ha.children.forEachAt(la,na,function(va,oa,wa){y(va)?
|
|
150
|
+
ra.push(va):va instanceof b.default.Container&&(ra=ra.concat(qa(va,oa,ta)));ta-=wa});return ra}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var ia=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],ha=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"optimize",this).call(this,ia,
|
|
151
|
+
ha),0<ia.length&&this.emitter.emit(h.default.events.SCROLL_OPTIMIZE,ia,ha))}},{key:"path",value:function(ia){return a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"path",this).call(this,ia).slice(1)}},{key:"update",value:function(ia){if(!0!==this.batch){var ha=h.default.sources.USER;"string"===typeof ia&&(ha=ia);Array.isArray(ia)||(ia=this.observer.takeRecords());0<ia.length&&this.emitter.emit(h.default.events.SCROLL_BEFORE_UPDATE,ha,ia);a(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),
|
|
152
|
+
"update",this).call(this,ia.concat([]));0<ia.length&&this.emitter.emit(h.default.events.SCROLL_UPDATE,ha,ia)}}}]);return ca}(b.default.Scroll);ka.blotName="scroll";ka.className="ql-editor";ka.tagName="DIV";ka.defaultChild="block";ka.allowedChildren=[ba.default,n.BlockEmbed,fa.default];ma.default=ka},function(ka,ma,fa){function ea(wa){return wa&&wa.__esModule?wa:{default:wa}}function z(wa,Da,Ha){Da in wa?Object.defineProperty(wa,Da,{value:Ha,enumerable:!0,configurable:!0,writable:!0}):wa[Da]=Ha;return wa}
|
|
153
|
+
function x(wa,Da){if(!wa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Da||"object"!==typeof Da&&"function"!==typeof Da?wa:Da}function y(wa,Da){if("function"!==typeof Da&&null!==Da)throw new TypeError("Super expression must either be null or a function, not "+typeof Da);wa.prototype=Object.create(Da&&Da.prototype,{constructor:{value:wa,enumerable:!1,writable:!0,configurable:!0}});Da&&(Object.setPrototypeOf?Object.setPrototypeOf(wa,Da):wa.__proto__=Da)}
|
|
154
|
+
function f(wa,Da){var Ha,La=wa===oa.keys.LEFT?"prefix":"suffix";return Ha={key:wa,shiftKey:Da,altKey:null},z(Ha,La,/^$/),z(Ha,"handler",function(Ca){var Ka=Ca.index;wa===oa.keys.RIGHT&&(Ka+=Ca.length+1);Ka=this.quill.getLeaf(Ka);if(!(ja(Ka,1)[0]instanceof qa.default.Embed))return!0;wa===oa.keys.LEFT?Da?this.quill.setSelection(Ca.index-1,Ca.length+1,ra.default.sources.USER):this.quill.setSelection(Ca.index-1,ra.default.sources.USER):Da?this.quill.setSelection(Ca.index,Ca.length+1,ra.default.sources.USER):
|
|
155
|
+
this.quill.setSelection(Ca.index+Ca.length+1,ra.default.sources.USER);return!1}),Ha}function e(wa,Da){if(!(0===wa.index||1>=this.quill.getLength())){var Ha=this.quill.getLine(wa.index),La=ja(Ha,1)[0];Ha={};if(0===Da.offset){var Ca=this.quill.getLine(wa.index-1);Ca=ja(Ca,1)[0];null!=Ca&&1<Ca.length()&&(Ha=La.formats(),La=this.quill.getFormat(wa.index-1,1),Ha=na.default.attributes.diff(Ha,La)||{})}Da=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Da.prefix)?2:1;this.quill.deleteText(wa.index-Da,Da,ra.default.sources.USER);
|
|
156
|
+
0<Object.keys(Ha).length&&this.quill.formatLine(wa.index-Da,Da,Ha,ra.default.sources.USER);this.quill.focus()}}function a(wa,Da){var Ha=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Da.suffix)?2:1;if(!(wa.index>=this.quill.getLength()-Ha)){var La={},Ca=0,Ka=this.quill.getLine(wa.index);Ka=ja(Ka,1)[0];Da.offset>=Ka.length()-1&&(Da=this.quill.getLine(wa.index+1),Da=ja(Da,1)[0])&&(La=Ka.formats(),Ca=this.quill.getFormat(wa.index,1),La=na.default.attributes.diff(La,Ca)||{},Ca=Da.length());this.quill.deleteText(wa.index,
|
|
157
|
+
Ha,ra.default.sources.USER);0<Object.keys(La).length&&this.quill.formatLine(wa.index+Ca-1,Ha,La,ra.default.sources.USER)}}function b(wa){var Da=this.quill.getLines(wa),Ha={};1<Da.length&&(Ha=Da[0].formats(),Da=Da[Da.length-1].formats(),Ha=na.default.attributes.diff(Da,Ha)||{});this.quill.deleteText(wa,ra.default.sources.USER);0<Object.keys(Ha).length&&this.quill.formatLine(wa.index,1,Ha,ra.default.sources.USER);this.quill.setSelection(wa.index,ra.default.sources.SILENT);this.quill.focus()}function h(wa,
|
|
158
|
+
Da){var Ha=this;0<wa.length&&this.quill.scroll.deleteAt(wa.index,wa.length);var La=Object.keys(Da.format).reduce(function(Ca,Ka){qa.default.query(Ka,qa.default.Scope.BLOCK)&&!Array.isArray(Da.format[Ka])&&(Ca[Ka]=Da.format[Ka]);return Ca},{});this.quill.insertText(wa.index,"\n",La,ra.default.sources.USER);this.quill.setSelection(wa.index+1,ra.default.sources.SILENT);this.quill.focus();Object.keys(Da.format).forEach(function(Ca){null==La[Ca]&&(Array.isArray(Da.format[Ca])||"link"!==Ca&&Ha.quill.format(Ca,
|
|
159
|
+
Da.format[Ca],ra.default.sources.USER))})}function n(wa){return{key:oa.keys.TAB,shiftKey:!wa,format:{"code-block":!0},handler:function(Da){var Ha=qa.default.query("code-block"),La=Da.index,Ca=Da.length;Da=this.quill.scroll.descendant(Ha,La);Da=ja(Da,2);var Ka=Da[0],Ra=Da[1];if(null!=Ka){Da=this.quill.getIndex(Ka);var Ma=Ka.newlineIndex(Ra,!0)+1;Da=Ka.newlineIndex(Da+Ra+Ca);Da=Ka.domNode.textContent.slice(Ma,Da).split("\n");Ra=0;Da.forEach(function(Aa,Ja){wa?(Ka.insertAt(Ma+Ra,Ha.TAB),Ra+=Ha.TAB.length,
|
|
160
|
+
0===Ja?La+=Ha.TAB.length:Ca+=Ha.TAB.length):Aa.startsWith(Ha.TAB)&&(Ka.deleteAt(Ma+Ra,Ha.TAB.length),Ra-=Ha.TAB.length,0===Ja?La-=Ha.TAB.length:Ca-=Ha.TAB.length);Ra+=Aa.length+1});this.quill.update(ra.default.sources.USER);this.quill.setSelection(La,Ca,ra.default.sources.SILENT)}}}}function ba(wa){return{key:wa[0].toUpperCase(),shortKey:!0,handler:function(Da,Ha){this.quill.format(wa,!Ha.format[wa],ra.default.sources.USER)}}}function w(wa){if("string"===typeof wa||"number"===typeof wa)return w({key:wa});
|
|
161
|
+
"object"===("undefined"===typeof wa?"undefined":da(wa))&&(wa=(0,ca.default)(wa,!1));if("string"===typeof wa.key)if(null!=oa.keys[wa.key.toUpperCase()])wa.key=oa.keys[wa.key.toUpperCase()];else if(1===wa.key.length)wa.key=wa.key.toUpperCase().charCodeAt(0);else return null;wa.shortKey&&(wa[va]=wa.shortKey,delete wa.shortKey);return wa}Object.defineProperty(ma,"__esModule",{value:!0});ma.SHORTKEY=ma.default=void 0;var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(wa){return typeof wa}:
|
|
162
|
+
function(wa){return wa&&"function"===typeof Symbol&&wa.constructor===Symbol&&wa!==Symbol.prototype?"symbol":typeof wa},ja=function(){return function(wa,Da){if(Array.isArray(wa))return wa;if(Symbol.iterator in Object(wa)){var Ha=[],La=!0,Ca=!1,Ka=void 0;try{for(var Ra=wa[Symbol.iterator](),Ma;!(La=(Ma=Ra.next()).done)&&(Ha.push(Ma.value),!Da||Ha.length!==Da);La=!0);}catch(Aa){Ca=!0,Ka=Aa}finally{try{if(!La&&Ra["return"])Ra["return"]()}finally{if(Ca)throw Ka;}}return Ha}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
163
|
+
}}(),aa=function(){function wa(Da,Ha){for(var La=0;La<Ha.length;La++){var Ca=Ha[La];Ca.enumerable=Ca.enumerable||!1;Ca.configurable=!0;"value"in Ca&&(Ca.writable=!0);Object.defineProperty(Da,Ca.key,Ca)}}return function(Da,Ha,La){Ha&&wa(Da.prototype,Ha);La&&wa(Da,La);return Da}}();ka=fa(21);var ca=ea(ka);ka=fa(11);var ia=ea(ka);ka=fa(3);var ha=ea(ka);ka=fa(2);var la=ea(ka);ka=fa(20);var na=ea(ka);ka=fa(0);var qa=ea(ka);ka=fa(5);var ra=ea(ka);ka=fa(10);ka=ea(ka);fa=fa(9);fa=ea(fa);var ta=(0,ka.default)("quill:keyboard"),
|
|
164
|
+
va=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",oa=function(wa){function Da(Ha,La){if(!(this instanceof Da))throw new TypeError("Cannot call a class as a function");var Ca=x(this,(Da.__proto__||Object.getPrototypeOf(Da)).call(this,Ha,La));Ca.bindings={};Object.keys(Ca.options.bindings).forEach(function(Ka){("list autofill"!==Ka||null==Ha.scroll.whitelist||Ha.scroll.whitelist.list)&&Ca.options.bindings[Ka]&&Ca.addBinding(Ca.options.bindings[Ka])});Ca.addBinding({key:Da.keys.ENTER,shiftKey:null},
|
|
165
|
+
h);Ca.addBinding({key:Da.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!0},e),Ca.addBinding({key:Da.keys.DELETE},{collapsed:!0},a)):(Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},e),Ca.addBinding({key:Da.keys.DELETE},{collapsed:!0,suffix:/^.?$/},a));Ca.addBinding({key:Da.keys.BACKSPACE},{collapsed:!1},b);Ca.addBinding({key:Da.keys.DELETE},{collapsed:!1},b);Ca.addBinding({key:Da.keys.BACKSPACE,
|
|
166
|
+
altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},e);Ca.listen();return Ca}y(Da,wa);aa(Da,null,[{key:"match",value:function(Ha,La){La=w(La);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ca){return!!La[Ca]!==Ha[Ca]&&null!==La[Ca]})?!1:La.key===(Ha.which||Ha.keyCode)}}]);aa(Da,[{key:"addBinding",value:function(Ha){var La=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Ca=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Ka=w(Ha);if(null==
|
|
167
|
+
Ka||null==Ka.key)return ta.warn("Attempted to add invalid keyboard binding",Ka);"function"===typeof La&&(La={handler:La});"function"===typeof Ca&&(Ca={handler:Ca});Ka=(0,ha.default)(Ka,La,Ca);this.bindings[Ka.key]=this.bindings[Ka.key]||[];this.bindings[Ka.key].push(Ka)}},{key:"listen",value:function(){var Ha=this;this.quill.root.addEventListener("keydown",function(La){if(!La.defaultPrevented){var Ca=(Ha.bindings[La.which||La.keyCode]||[]).filter(function(Qa){return Da.match(La,Qa)});if(0!==Ca.length){var Ka=
|
|
168
|
+
Ha.quill.getSelection();if(null!=Ka&&Ha.quill.hasFocus()){var Ra=Ha.quill.getLine(Ka.index),Ma=ja(Ra,2);Ra=Ma[0];Ma=Ma[1];var Aa=Ha.quill.getLeaf(Ka.index),Ja=ja(Aa,2);Aa=Ja[0];Ja=Ja[1];var Ia=0===Ka.length?[Aa,Ja]:Ha.quill.getLeaf(Ka.index+Ka.length),Pa=ja(Ia,2);Ia=Pa[0];Pa=Pa[1];Aa=Aa instanceof qa.default.Text?Aa.value().slice(0,Ja):"";Ja=Ia instanceof qa.default.Text?Ia.value().slice(Pa):"";var Wa={collapsed:0===Ka.length,empty:0===Ka.length&&1>=Ra.length(),format:Ha.quill.getFormat(Ka),offset:Ma,
|
|
169
|
+
prefix:Aa,suffix:Ja};Ca.some(function(Qa){if(null!=Qa.collapsed&&Qa.collapsed!==Wa.collapsed||null!=Qa.empty&&Qa.empty!==Wa.empty||null!=Qa.offset&&Qa.offset!==Wa.offset)return!1;if(Array.isArray(Qa.format)){if(Qa.format.every(function(Fa){return null==Wa.format[Fa]}))return!1}else if("object"===da(Qa.format)&&!Object.keys(Qa.format).every(function(Fa){return!0===Qa.format[Fa]?null!=Wa.format[Fa]:!1===Qa.format[Fa]?null==Wa.format[Fa]:(0,ia.default)(Qa.format[Fa],Wa.format[Fa])}))return!1;return null!=
|
|
170
|
+
Qa.prefix&&!Qa.prefix.test(Wa.prefix)||null!=Qa.suffix&&!Qa.suffix.test(Wa.suffix)?!1:!0!==Qa.handler.call(Ha,Ka,Wa)})&&La.preventDefault()}}}})}}]);return Da}(fa.default);oa.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};oa.DEFAULTS={bindings:{bold:ba("bold"),italic:ba("italic"),underline:ba("underline"),indent:{key:oa.keys.TAB,format:["blockquote","indent","list"],handler:function(wa,Da){if(Da.collapsed&&0!==Da.offset)return!0;this.quill.format("indent","+1",
|
|
171
|
+
ra.default.sources.USER)}},outdent:{key:oa.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(wa,Da){if(Da.collapsed&&0!==Da.offset)return!0;this.quill.format("indent","-1",ra.default.sources.USER)}},"outdent backspace":{key:oa.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(wa,Da){null!=Da.format.indent?this.quill.format("indent","-1",ra.default.sources.USER):null!=Da.format.list&&this.quill.format("list",
|
|
172
|
+
!1,ra.default.sources.USER)}},"indent code-block":n(!0),"outdent code-block":n(!1),"remove tab":{key:oa.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(wa){this.quill.deleteText(wa.index-1,1,ra.default.sources.USER)}},tab:{key:oa.keys.TAB,handler:function(wa){this.quill.history.cutoff();var Da=(new la.default).retain(wa.index).delete(wa.length).insert("\t");this.quill.updateContents(Da,ra.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index+1,ra.default.sources.SILENT)}},
|
|
173
|
+
"list empty enter":{key:oa.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(wa,Da){this.quill.format("list",!1,ra.default.sources.USER);Da.format.indent&&this.quill.format("indent",!1,ra.default.sources.USER)}},"checklist enter":{key:oa.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(wa){var Da=this.quill.getLine(wa.index),Ha=ja(Da,2);Da=Ha[0];Ha=Ha[1];var La=(0,ha.default)({},Da.formats(),{list:"checked"});Da=(new la.default).retain(wa.index).insert("\n",La).retain(Da.length()-
|
|
174
|
+
Ha-1).retain(1,{list:"unchecked"});this.quill.updateContents(Da,ra.default.sources.USER);this.quill.setSelection(wa.index+1,ra.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:oa.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(wa,Da){var Ha=this.quill.getLine(wa.index),La=ja(Ha,2);Ha=La[0];La=La[1];Da=(new la.default).retain(wa.index).insert("\n",Da.format).retain(Ha.length()-La-1).retain(1,{header:null});this.quill.updateContents(Da,ra.default.sources.USER);
|
|
175
|
+
this.quill.setSelection(wa.index+1,ra.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(wa,Da){var Ha=Da.prefix.length,La=this.quill.getLine(wa.index),Ca=ja(La,2);La=Ca[0];Ca=Ca[1];if(Ca>Ha)return!0;switch(Da.prefix.trim()){case "[]":case "[ ]":Da="unchecked";break;case "[x]":Da="checked";break;case "-":case "*":Da="bullet";break;default:Da="ordered"}this.quill.insertText(wa.index,
|
|
176
|
+
" ",ra.default.sources.USER);this.quill.history.cutoff();Da=(new la.default).retain(wa.index-Ca).delete(Ha+1).retain(La.length()-2-Ca).retain(1,{list:Da});this.quill.updateContents(Da,ra.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index-Ha,ra.default.sources.SILENT)}},"code exit":{key:oa.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(wa){var Da=this.quill.getLine(wa.index),Ha=ja(Da,2);Da=Ha[0];Ha=Ha[1];wa=(new la.default).retain(wa.index+
|
|
177
|
+
Da.length()-Ha-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(wa,ra.default.sources.USER)}},"embed left":f(oa.keys.LEFT,!1),"embed left shift":f(oa.keys.LEFT,!0),"embed right":f(oa.keys.RIGHT,!1),"embed right shift":f(oa.keys.RIGHT,!0)}};ma.default=oa;ma.SHORTKEY=va},function(ka,ma,fa){function ea(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,
|
|
178
|
+
enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){return function(a,b){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var h=[],n=!0,ba=!1,w=void 0;try{for(var da=a[Symbol.iterator](),ja;!(n=(ja=da.next()).done)&&(h.push(ja.value),!b||h.length!==b);n=!0);}catch(aa){ba=!0,w=aa}finally{try{if(!n&&da["return"])da["return"]()}finally{if(ba)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
179
|
+
}}(),x=function ba(b,h,n){null===b&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,h);if(void 0===w){if(b=Object.getPrototypeOf(b),null!==b)return ba(b,h,n)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(n)}},y=function(){function b(h,n){for(var ba=0;ba<n.length;ba++){var w=n[ba];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(h,w.key,w)}}return function(h,n,ba){n&&b(h.prototype,n);ba&&b(h,ba);return h}}(),
|
|
180
|
+
f=(ka=fa(0))&&ka.__esModule?ka:{default:ka},e=(fa=fa(7))&&fa.__esModule?fa:{default:fa};fa=function(b){function h(n,ba){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");n=(h.__proto__||Object.getPrototypeOf(h)).call(this,n);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");n=!n||"object"!==typeof n&&"function"!==typeof n?this:n;n.selection=ba;n.textNode=document.createTextNode(h.CONTENTS);n.domNode.appendChild(n.textNode);
|
|
181
|
+
n._length=0;return n}ea(h,b);y(h,null,[{key:"value",value:function(){}}]);y(h,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(n,ba){if(0!==this._length)return x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,n,ba);for(var w=this,da=0;null!=w&&w.statics.scope!==f.default.Scope.BLOCK_BLOT;)da+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=h.CONTENTS.length,w.optimize(),w.formatAt(da,h.CONTENTS.length,
|
|
182
|
+
n,ba),this._length=0)}},{key:"index",value:function(n,ba){return n===this.textNode?0:x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,n,ba)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){x(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&
|
|
183
|
+
null!=this.parent){var n=this.textNode,ba=this.selection.getNativeRange(),w=void 0,da=void 0,ja=void 0;null!=ba&&ba.start.node===n&&ba.end.node===n&&(ja=[n,ba.start.offset,ba.end.offset],w=ja[0],da=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==h.CONTENTS&&(n=this.textNode.data.split(h.CONTENTS).join(""),this.next instanceof e.default?(w=this.next.domNode,this.next.insertAt(0,
|
|
184
|
+
n),this.textNode.data=h.CONTENTS):(this.textNode.data=n,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(h.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=da)return da=[da,ja].map(function(aa){return Math.max(0,Math.min(w.data.length,aa-1))}),ja=z(da,2),da=ja[0],ja=ja[1],{startNode:w,startOffset:da,endNode:w,endOffset:ja}}}},{key:"update",value:function(n,ba){var w=this;n.some(function(da){return"characterData"===da.type&&
|
|
185
|
+
da.target===w.textNode})&&(n=this.restore())&&(ba.range=n)}},{key:"value",value:function(){return""}}]);return h}(f.default.Embed);fa.blotName="cursor";fa.className="ql-cursor";fa.tagName="span";fa.CONTENTS="\ufeff";ma.default=fa},function(ka,ma,fa){function ea(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&
|
|
186
|
+
(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}Object.defineProperty(ma,"__esModule",{value:!0});ka=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var z=(fa=fa(4))&&fa.__esModule?fa:{default:fa};ka=function(x){function y(){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");var f=(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==
|
|
187
|
+
typeof f&&"function"!==typeof f?this:f}ea(y,x);return y}(ka.default.Container);ka.allowedChildren=[z.default,fa.BlockEmbed,ka];ma.default=ka},function(ka,ma,fa){function ea(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,
|
|
188
|
+
"__esModule",{value:!0});ma.ColorStyle=ma.ColorClass=ma.ColorAttributor=void 0;var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in
|
|
189
|
+
n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}},y=function(e){return e&&e.__esModule?e:{default:e}}(fa(0));ka=function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);z(a,[{key:"value",value:function(b){b=x(a.prototype.__proto__||
|
|
190
|
+
Object.getPrototypeOf(a.prototype),"value",this).call(this,b);if(!b.startsWith("rgb("))return b;b=b.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+b.split(",").map(function(h){return("00"+parseInt(h).toString(16)).slice(-2)}).join("")}}]);return a}(y.default.Attributor.Style);fa=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE});y=new ka("color","color",{scope:y.default.Scope.INLINE});ma.ColorAttributor=ka;ma.ColorClass=fa;ma.ColorStyle=y},function(ka,ma,fa){function ea(f,
|
|
191
|
+
e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}function z(f,e){var a=document.createElement("a");a.href=f;f=a.href.slice(0,a.href.indexOf(":"));return-1<e.indexOf(f)}Object.defineProperty(ma,"__esModule",{value:!0});ma.sanitize=ma.default=void 0;
|
|
192
|
+
var x=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),y=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=function(e){function a(){if(!(this instanceof
|
|
193
|
+
a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);x(a,[{key:"format",value:function(b,h){if(b!==this.statics.blotName||!h)return y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,b,h);h=this.constructor.sanitize(h);this.domNode.setAttribute("href",
|
|
194
|
+
h)}}],[{key:"create",value:function(b){var h=y(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,b);b=this.sanitize(b);h.setAttribute("href",b);h.setAttribute("rel","noopener noreferrer");h.setAttribute("target","_blank");return h}},{key:"formats",value:function(b){return b.getAttribute("href")}},{key:"sanitize",value:function(b){return z(b,this.PROTOCOL_WHITELIST)?b:this.SANITIZED_URL}}]);return a}(function(e){return e&&e.__esModule?e:{default:e}}(fa(6)).default);ka.blotName="link";
|
|
195
|
+
ka.tagName="A";ka.SANITIZED_URL="about:blank";ka.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ma.default=ka;ma.sanitize=z},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||
|
|
196
|
+
!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,h){b&&e(a.prototype,b);h&&e(a,h);return a}}(),x=(ka=fa(23))&&ka.__esModule?ka:{default:ka},y=(fa=fa(107))&&fa.__esModule?fa:{default:fa},f=0;fa=function(){function e(a){var b=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=a;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,
|
|
197
|
+
this.select);this.label.addEventListener("mousedown",function(){b.togglePicker()});this.label.addEventListener("keydown",function(h){switch(h.keyCode){case x.default.keys.ENTER:b.togglePicker();break;case x.default.keys.ESCAPE:b.escape(),h.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}z(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var a=this.label;a.setAttribute("aria-expanded","true"!==a.getAttribute("aria-expanded"));
|
|
198
|
+
a=this.options;a.setAttribute("aria-hidden","true"!==a.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(a){var b=this,h=document.createElement("span");h.tabIndex="0";h.setAttribute("role","button");h.classList.add("ql-picker-item");a.hasAttribute("value")&&h.setAttribute("data-value",a.getAttribute("value"));a.textContent&&h.setAttribute("data-label",a.textContent);h.addEventListener("click",function(){b.selectItem(h,!0)});h.addEventListener("keydown",function(n){switch(n.keyCode){case x.default.keys.ENTER:b.selectItem(h,
|
|
199
|
+
!0);n.preventDefault();break;case x.default.keys.ESCAPE:b.escape(),n.preventDefault()}});return h}},{key:"buildLabel",value:function(){var a=document.createElement("span");a.classList.add("ql-picker-label");a.innerHTML=y.default;a.tabIndex="0";a.setAttribute("role","button");a.setAttribute("aria-expanded","false");this.container.appendChild(a);return a}},{key:"buildOptions",value:function(){var a=this,b=document.createElement("span");b.classList.add("ql-picker-options");b.setAttribute("aria-hidden",
|
|
200
|
+
"true");b.tabIndex="-1";b.id="ql-picker-options-"+f;f+=1;this.label.setAttribute("aria-controls",b.id);this.options=b;[].slice.call(this.select.options).forEach(function(h){var n=a.buildItem(h);b.appendChild(n);!0===h.selected&&a.selectItem(n)});this.container.appendChild(b)}},{key:"buildPicker",value:function(){var a=this;[].slice.call(this.select.attributes).forEach(function(b){a.container.setAttribute(b.name,b.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
|
|
201
|
+
{key:"escape",value:function(){var a=this;this.close();setTimeout(function(){return a.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,h=this.container.querySelector(".ql-selected");a!==h&&(null!=h&&h.classList.remove("ql-selected"),null!=a&&(a.classList.add("ql-selected"),
|
|
202
|
+
this.select.selectedIndex=[].indexOf.call(a.parentNode.children,a),a.hasAttribute("data-value")?this.label.setAttribute("data-value",a.getAttribute("data-value")):this.label.removeAttribute("data-value"),a.hasAttribute("data-label")?this.label.setAttribute("data-label",a.getAttribute("data-label")):this.label.removeAttribute("data-label"),b&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":ea(Event))&&(b=document.createEvent("Event"),
|
|
203
|
+
b.initEvent("change",!0,!0),this.select.dispatchEvent(b)),this.close())))}},{key:"update",value:function(){var a=void 0;if(-1<this.select.selectedIndex){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];a=this.select.options[this.select.selectedIndex];this.selectItem(b)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=a&&a!==this.select.querySelector("option[selected]"))}}]);return e}();ma.default=fa},function(ka,ma,fa){function ea(ja){return ja&&
|
|
204
|
+
ja.__esModule?ja:{default:ja}}Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(0);ka=ea(ka);var z=fa(5);z=ea(z);var x=fa(4),y=ea(x),f=fa(16);f=ea(f);var e=fa(25);e=ea(e);var a=fa(24);a=ea(a);var b=fa(35);b=ea(b);var h=fa(6);h=ea(h);var n=fa(22);n=ea(n);var ba=fa(7);ba=ea(ba);var w=fa(55);w=ea(w);var da=fa(42);da=ea(da);fa=fa(23);fa=ea(fa);z.default.register({"blots/block":y.default,"blots/block/embed":x.BlockEmbed,"blots/break":f.default,"blots/container":e.default,"blots/cursor":a.default,
|
|
205
|
+
"blots/embed":b.default,"blots/inline":h.default,"blots/scroll":n.default,"blots/text":ba.default,"modules/clipboard":w.default,"modules/history":da.default,"modules/keyboard":fa.default});ka.default.register(y.default,f.default,a.default,h.default,n.default,ba.default);ma.default=z.default},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});var ea=fa(1);ka=function(){function z(x){this.domNode=x;this.domNode[ea.DATA_KEY]={blot:this}}Object.defineProperty(z.prototype,"statics",{get:function(){return this.constructor},
|
|
206
|
+
enumerable:!0,configurable:!0});z.create=function(x){if(null==this.tagName)throw new ea.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof x&&(x=x.toUpperCase(),parseInt(x).toString()===x&&(x=parseInt(x))),x="number"===typeof x?document.createElement(this.tagName[x-1]):-1<this.tagName.indexOf(x)?document.createElement(x):document.createElement(this.tagName[0])):x=document.createElement(this.tagName);this.className&&x.classList.add(this.className);return x};
|
|
207
|
+
z.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};z.prototype.clone=function(){return ea.create(this.domNode.cloneNode(!1))};z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[ea.DATA_KEY]};z.prototype.deleteAt=function(x,y){this.isolate(x,y).remove()};z.prototype.formatAt=function(x,y,f,e){x=this.isolate(x,y);null!=ea.query(f,ea.Scope.BLOT)&&e?x.wrap(f,e):null!=ea.query(f,ea.Scope.ATTRIBUTE)&&(y=ea.create(this.statics.scope),
|
|
208
|
+
x.wrap(y),y.format(f,e))};z.prototype.insertAt=function(x,y,f){y=null==f?ea.create("text",y):ea.create(y,f);x=this.split(x);this.parent.insertBefore(y,x)};z.prototype.insertInto=function(x,y){void 0===y&&(y=null);null!=this.parent&&this.parent.children.remove(this);var f=null;x.children.insertBefore(this,y);null!=y&&(f=y.domNode);this.domNode.parentNode==x.domNode&&this.domNode.nextSibling==f||x.domNode.insertBefore(this.domNode,f);this.parent=x;this.attach()};z.prototype.isolate=function(x,y){x=
|
|
209
|
+
this.split(x);x.split(y);return x};z.prototype.length=function(){return 1};z.prototype.offset=function(x){void 0===x&&(x=this.parent);return null==this.parent||this==x?0:this.parent.children.offset(this)+this.parent.offset(x)};z.prototype.optimize=function(){null!=this.domNode[ea.DATA_KEY]&&delete this.domNode[ea.DATA_KEY].mutations};z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};z.prototype.replace=function(x){null!=x.parent&&
|
|
210
|
+
(x.parent.insertBefore(this,x.next),x.remove())};z.prototype.replaceWith=function(x,y){x="string"===typeof x?ea.create(x,y):x;x.replace(this);return x};z.prototype.split=function(x){return 0===x?this:this.next};z.prototype.update=function(){};z.prototype.wrap=function(x,y){x="string"===typeof x?ea.create(x,y):x;null!=this.parent&&this.parent.insertBefore(x,this.next);x.appendChild(this);return x};z.blotName="abstract";return z}();ma.default=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",
|
|
211
|
+
{value:!0});var ea=fa(12),z=fa(32),x=fa(33),y=fa(1);ka=function(){function f(e){this.attributes={};this.domNode=e;this.build()}f.prototype.attribute=function(e,a){a?e.add(this.domNode,a)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};f.prototype.build=function(){var e=this;this.attributes={};var a=ea.default.keys(this.domNode),b=z.default.keys(this.domNode),h=x.default.keys(this.domNode);
|
|
212
|
+
a.concat(b).concat(h).forEach(function(n){n=y.query(n,y.Scope.ATTRIBUTE);n instanceof ea.default&&(e.attributes[n.attrName]=n)})};f.prototype.copy=function(e){var a=this;Object.keys(this.attributes).forEach(function(b){var h=a.attributes[b].value(a.domNode);e.format(b,h)})};f.prototype.move=function(e){var a=this;this.copy(e);Object.keys(this.attributes).forEach(function(b){a.attributes[b].remove(a.domNode)});this.attributes={}};f.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(a,
|
|
213
|
+
b){a[b]=e.attributes[b].value(e.domNode);return a},{})};return f}();ma.default=ka},function(ka,ma,fa){function ea(x,y){return(x.getAttribute("class")||"").split(/\s+/).filter(function(f){return 0===f.indexOf(y+"-")})}var z=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):
|
|
214
|
+
(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}z(y,x);y.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};y.prototype.add=function(f,e){if(!this.canAdd(f,e))return!1;this.remove(f);f.classList.add(this.keyName+"-"+e);return!0};y.prototype.remove=function(f){ea(f,this.keyName).forEach(function(e){f.classList.remove(e)});
|
|
215
|
+
0===f.classList.length&&f.removeAttribute("class")};y.prototype.value=function(f){var e=(ea(f,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(f,e)?e:""};return y}(fa(12).default);ma.default=ka},function(ka,ma,fa){function ea(x){x=x.split("-");var y=x.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return x[0]+y}var z=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,
|
|
216
|
+
f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}z(y,x);y.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})};y.prototype.add=function(f,e){if(!this.canAdd(f,e))return!1;f.style[ea(this.keyName)]=
|
|
217
|
+
e;return!0};y.prototype.remove=function(f){f.style[ea(this.keyName)]="";f.getAttribute("style")||f.removeAttribute("style")};y.prototype.value=function(f){var e=f.style[ea(this.keyName)];return this.canAdd(f,e)?e:""};return y}(fa(12).default);ma.default=ka},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});var fa=function(){function ea(z,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,
|
|
218
|
+
f)}}return function(z,x,y){x&&ea(z.prototype,x);y&&ea(z,y);return z}}();ka=function(){function ea(z,x){if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");this.quill=z;this.options=x;this.modules={}}fa(ea,[{key:"init",value:function(){var z=this;Object.keys(this.options.modules).forEach(function(x){null==z.modules[x]&&z.addModule(x)})}},{key:"addModule",value:function(z){var x=this.quill.constructor.import("modules/"+z);this.modules[z]=new x(this.quill,this.options.modules[z]||
|
|
219
|
+
{});return this.modules[z]}}]);return ea}();ka.DEFAULTS={modules:{}};ka.themes={"default":ka};ma.default=ka},function(ka,ma,fa){function ea(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function z(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,
|
|
220
|
+
writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ma,"__esModule",{value:!0});var x=function(){function a(b,h){for(var n=0;n<h.length;n++){var ba=h[n];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(b,ba.key,ba)}}return function(b,h,n){h&&a(b.prototype,h);n&&a(b,n);return b}}(),y=function ba(b,h,n){null===b&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,h);
|
|
221
|
+
if(void 0===w){if(b=Object.getPrototypeOf(b),null!==b)return ba(b,h,n)}else{if("value"in w)return w.value;h=w.get;return void 0===h?void 0:h.call(n)}},f=(ka=fa(0))&&ka.__esModule?ka:{default:ka},e=(fa=fa(7))&&fa.__esModule?fa:{default:fa};fa=function(b){function h(n){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var ba=ea(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,n));ba.contentNode=document.createElement("span");ba.contentNode.setAttribute("contenteditable",
|
|
222
|
+
!1);[].slice.call(ba.domNode.childNodes).forEach(function(w){ba.contentNode.appendChild(w)});ba.leftGuard=document.createTextNode("\ufeff");ba.rightGuard=document.createTextNode("\ufeff");ba.domNode.appendChild(ba.leftGuard);ba.domNode.appendChild(ba.contentNode);ba.domNode.appendChild(ba.rightGuard);return ba}z(h,b);x(h,[{key:"index",value:function(n,ba){return n===this.leftGuard?0:n===this.rightGuard?1:y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"index",this).call(this,n,ba)}},{key:"restore",
|
|
223
|
+
value:function(n){var ba=void 0,w=n.data.split("\ufeff").join("");n===this.leftGuard?this.prev instanceof e.default?(ba=this.prev.length(),this.prev.insertAt(ba,w),ba={startNode:this.prev.domNode,startOffset:ba+w.length}):(ba=document.createTextNode(w),this.parent.insertBefore(f.default.create(ba),this),ba={startNode:ba,startOffset:w.length}):n===this.rightGuard&&(this.next instanceof e.default?(this.next.insertAt(0,w),ba={startNode:this.next.domNode,startOffset:w.length}):(ba=document.createTextNode(w),
|
|
224
|
+
this.parent.insertBefore(f.default.create(ba),this.next),ba={startNode:ba,startOffset:w.length}));n.data="\ufeff";return ba}},{key:"update",value:function(n,ba){var w=this;n.forEach(function(da){"characterData"!==da.type||da.target!==w.leftGuard&&da.target!==w.rightGuard||!(da=w.restore(da.target))||(ba.range=da)})}}]);return h}(f.default.Embed);ma.default=fa},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.AlignStyle=ma.AlignClass=ma.AlignAttribute=void 0;var ea=(ka=fa(0))&&
|
|
225
|
+
ka.__esModule?ka:{default:ka};var z={scope:ea.default.Scope.BLOCK,whitelist:["right","center","justify"]};ka=new ea.default.Attributor.Attribute("align","align",z);fa=new ea.default.Attributor.Class("align","ql-align",z);ea=new ea.default.Attributor.Style("align","text-align",z);ma.AlignAttribute=ka;ma.AlignClass=fa;ma.AlignStyle=ea},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.BackgroundStyle=ma.BackgroundClass=void 0;ka=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var ea=
|
|
226
|
+
fa(26);fa=new ka.default.Attributor.Class("background","ql-bg",{scope:ka.default.Scope.INLINE});ka=new ea.ColorAttributor("background","background-color",{scope:ka.default.Scope.INLINE});ma.BackgroundClass=fa;ma.BackgroundStyle=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.DirectionStyle=ma.DirectionClass=ma.DirectionAttribute=void 0;var ea=(ka=fa(0))&&ka.__esModule?ka:{default:ka};var z={scope:ea.default.Scope.BLOCK,whitelist:["rtl"]};ka=new ea.default.Attributor.Attribute("direction",
|
|
227
|
+
"dir",z);fa=new ea.default.Attributor.Class("direction","ql-direction",z);ea=new ea.default.Attributor.Style("direction","direction",z);ma.DirectionAttribute=ka;ma.DirectionClass=fa;ma.DirectionStyle=ea},function(ka,ma,fa){function ea(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,
|
|
228
|
+
e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});ma.FontClass=ma.FontStyle=void 0;var z=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),x=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,
|
|
229
|
+
a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};fa=function(e){return e&&e.__esModule?e:{default:e}}(fa(0));var y={scope:fa.default.Scope.INLINE,whitelist:["serif","monospace"]};ka=new fa.default.Attributor.Class("font","ql-font",y);fa=new (function(e){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var b=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
230
|
+
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}ea(a,e);z(a,[{key:"value",value:function(b){return x(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,b).replace(/["']/g,"")}}]);return a}(fa.default.Attributor.Style))("font","font-family",y);ma.FontStyle=fa;ma.FontClass=ka},function(ka,ma,fa){Object.defineProperty(ma,"__esModule",{value:!0});ma.SizeStyle=ma.SizeClass=void 0;fa=(ka=fa(0))&&ka.__esModule?ka:{default:ka};ka=new fa.default.Attributor.Class("size",
|
|
231
|
+
"ql-size",{scope:fa.default.Scope.INLINE,whitelist:["small","large","huge"]});fa=new fa.default.Attributor.Style("size","font-size",{scope:fa.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ma.SizeClass=ka;ma.SizeStyle=fa},function(ka,ma,fa){ka.exports={align:{"":fa(76),center:fa(77),right:fa(78),justify:fa(79)},background:fa(80),blockquote:fa(81),bold:fa(82),clean:fa(83),code:fa(58),"code-block":fa(58),color:fa(84),direction:{"":fa(85),rtl:fa(86)},"float":{center:fa(87),full:fa(88),left:fa(89),
|
|
232
|
+
right:fa(90)},formula:fa(91),header:{1:fa(92),2:fa(93)},italic:fa(94),image:fa(95),indent:{"+1":fa(96),"-1":fa(97)},link:fa(98),list:{ordered:fa(99),bullet:fa(100),check:fa(101)},script:{sub:fa(102),"super":fa(103)},strike:fa(104),underline:fa(105),video:fa(106)}},function(ka,ma,fa){function ea(h){return h&&h.__esModule?h:{default:h}}function z(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?h:n}
|
|
233
|
+
function x(h,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);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)}function y(h){h=h.ops[h.ops.length-1];return null==h?!1:null!=h.insert?"string"===typeof h.insert&&h.insert.endsWith("\n"):null!=h.attributes?Object.keys(h.attributes).some(function(n){return null!=
|
|
234
|
+
a.default.query(n,a.default.Scope.BLOCK)}):!1}function f(h){var n=h.reduce(function(ba,w){return ba+=w.delete||0},0);n=h.length()-n;y(h)&&--n;return n}Object.defineProperty(ma,"__esModule",{value:!0});ma.getLastChangeIndex=ma.default=void 0;var e=function(){function h(n,ba){for(var w=0;w<ba.length;w++){var da=ba[w];da.enumerable=da.enumerable||!1;da.configurable=!0;"value"in da&&(da.writable=!0);Object.defineProperty(n,da.key,da)}}return function(n,ba,w){ba&&h(n.prototype,ba);w&&h(n,w);return n}}();
|
|
235
|
+
ka=fa(0);var a=ea(ka);ka=fa(5);var b=ea(ka);fa=fa(9);fa=function(h){function n(ba,w){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var da=z(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,ba,w));da.lastRecorded=0;da.ignoreChange=!1;da.clear();da.quill.on(b.default.events.EDITOR_CHANGE,function(ja,aa,ca,ia){ja!==b.default.events.TEXT_CHANGE||da.ignoreChange||(da.options.userOnly&&ia!==b.default.sources.USER?da.transform(aa):da.record(aa,ca))});da.quill.keyboard.addBinding({key:"Z",
|
|
236
|
+
shortKey:!0},da.undo.bind(da));da.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},da.redo.bind(da));/Win/i.test(navigator.platform)&&da.quill.keyboard.addBinding({key:"Y",shortKey:!0},da.redo.bind(da));return da}x(n,h);e(n,[{key:"change",value:function(ba,w){if(0!==this.stack[ba].length){var da=this.stack[ba].pop();this.stack[w].push(da);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(da[ba],b.default.sources.USER);this.ignoreChange=!1;ba=f(da[ba]);this.quill.setSelection(ba)}}},
|
|
237
|
+
{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(ba,w){if(0!==ba.ops.length){this.stack.redo=[];w=this.quill.getContents().diff(w);var da=Date.now();this.lastRecorded+this.options.delay>da&&0<this.stack.undo.length?(da=this.stack.undo.pop(),w=w.compose(da.undo),ba=da.redo.compose(ba)):this.lastRecorded=da;this.stack.undo.push({redo:ba,undo:w});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},
|
|
238
|
+
{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ba){this.stack.undo.forEach(function(w){w.undo=ba.transform(w.undo,!0);w.redo=ba.transform(w.redo,!0)});this.stack.redo.forEach(function(w){w.undo=ba.transform(w.undo,!0);w.redo=ba.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return n}(ea(fa).default);fa.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ma.default=fa;ma.getLastChangeIndex=f},function(ka,ma,fa){function ea(qa){return qa&&
|
|
239
|
+
qa.__esModule?qa:{default:qa}}function z(qa,ra){if(!(qa instanceof ra))throw new TypeError("Cannot call a class as a function");}function x(qa,ra){if(!qa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ra||"object"!==typeof ra&&"function"!==typeof ra?qa:ra}function y(qa,ra){if("function"!==typeof ra&&null!==ra)throw new TypeError("Super expression must either be null or a function, not "+typeof ra);qa.prototype=Object.create(ra&&ra.prototype,{constructor:{value:qa,
|
|
240
|
+
enumerable:!1,writable:!0,configurable:!0}});ra&&(Object.setPrototypeOf?Object.setPrototypeOf(qa,ra):qa.__proto__=ra)}function f(qa,ra){var ta=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;ra.forEach(function(va){var oa=document.createElement("option");va===ta?oa.setAttribute("selected","selected"):oa.setAttribute("value",va);qa.appendChild(oa)})}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.BaseTooltip=void 0;var e=function(){function qa(ra,ta){for(var va=0;va<ta.length;va++){var oa=
|
|
241
|
+
ta[va];oa.enumerable=oa.enumerable||!1;oa.configurable=!0;"value"in oa&&(oa.writable=!0);Object.defineProperty(ra,oa.key,oa)}}return function(ra,ta,va){ta&&qa(ra.prototype,ta);va&&qa(ra,va);return ra}}(),a=function oa(ra,ta,va){null===ra&&(ra=Function.prototype);var wa=Object.getOwnPropertyDescriptor(ra,ta);if(void 0===wa){if(ra=Object.getPrototypeOf(ra),null!==ra)return oa(ra,ta,va)}else{if("value"in wa)return wa.value;ta=wa.get;return void 0===ta?void 0:ta.call(va)}};ka=fa(3);ka=ea(ka);var b=fa(2),
|
|
242
|
+
h=ea(b);b=fa(8);var n=ea(b);b=fa(23);var ba=ea(b);b=fa(34);b=ea(b);var w=fa(59),da=ea(w);w=fa(60);var ja=ea(w);w=fa(28);var aa=ea(w);fa=fa(61);w=ea(fa);var ca=[!1,"center","right","justify"],ia="#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".split(" "),ha=[!1,"serif",
|
|
243
|
+
"monospace"],la=["1","2","3",!1],na=["small",!1,"large","huge"];fa=function(ra){function ta(va,oa){z(this,ta);var wa=x(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,va,oa));va.emitter.listenDOM("click",document.body,function La(Ha){if(!document.body.contains(va.root))return document.body.removeEventListener("click",La);null==wa.tooltip||wa.tooltip.root.contains(Ha.target)||document.activeElement===wa.tooltip.textbox||wa.quill.hasFocus()||wa.tooltip.hide();null!=wa.pickers&&wa.pickers.forEach(function(Ca){Ca.container.contains(Ha.target)||
|
|
244
|
+
Ca.close()})});return wa}y(ta,ra);e(ta,[{key:"addModule",value:function(va){var oa=a(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"addModule",this).call(this,va);"toolbar"===va&&this.extendToolbar(oa);return oa}},{key:"buildButtons",value:function(va,oa){va.forEach(function(wa){(wa.getAttribute("class")||"").split(/\s+/).forEach(function(Da){if(Da.startsWith("ql-")&&(Da=Da.slice(3),null!=oa[Da]))if("direction"===Da)wa.innerHTML=oa[Da][""]+oa[Da].rtl;else if("string"===typeof oa[Da])wa.innerHTML=
|
|
245
|
+
oa[Da];else{var Ha=wa.value||"";null!=Ha&&oa[Da][Ha]&&(wa.innerHTML=oa[Da][Ha])}})})}},{key:"buildPickers",value:function(va,oa){var wa=this;this.pickers=va.map(function(Da){if(Da.classList.contains("ql-align"))return null==Da.querySelector("option")&&f(Da,ca),new ja.default(Da,oa.align);if(Da.classList.contains("ql-background")||Da.classList.contains("ql-color")){var Ha=Da.classList.contains("ql-background")?"background":"color";null==Da.querySelector("option")&&f(Da,ia,"background"===Ha?"#ffffff":
|
|
246
|
+
"#000000");return new da.default(Da,oa[Ha])}null==Da.querySelector("option")&&(Da.classList.contains("ql-font")?f(Da,ha):Da.classList.contains("ql-header")?f(Da,la):Da.classList.contains("ql-size")&&f(Da,na));return new aa.default(Da)});this.quill.on(n.default.events.EDITOR_CHANGE,function(){wa.pickers.forEach(function(Da){Da.update()})})}}]);return ta}(b.default);fa.DEFAULTS=(0,ka.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
|
|
247
|
+
image:function(){var ra=this,ta=this.container.querySelector("input.ql-image[type=file]");null==ta&&(ta=document.createElement("input"),ta.setAttribute("type","file"),ta.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ta.classList.add("ql-image"),ta.addEventListener("change",function(){if(null!=ta.files&&null!=ta.files[0]){var va=new FileReader;va.onload=function(oa){var wa=ra.quill.getSelection(!0);ra.quill.updateContents((new h.default).retain(wa.index).delete(wa.length).insert({image:oa.target.result}),
|
|
248
|
+
n.default.sources.USER);ra.quill.setSelection(wa.index+1,n.default.sources.SILENT);ta.value=""};va.readAsDataURL(ta.files[0])}}),this.container.appendChild(ta));ta.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});ka=function(ra){function ta(va,oa){z(this,ta);va=x(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,va,oa));va.textbox=va.root.querySelector('input[type="text"]');va.listen();return va}y(ta,ra);e(ta,[{key:"listen",value:function(){var va=this;this.textbox.addEventListener("keydown",
|
|
249
|
+
function(oa){ba.default.match(oa,"enter")?(va.save(),oa.preventDefault()):ba.default.match(oa,"escape")&&(va.cancel(),oa.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var va=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=oa?this.textbox.value=oa:va!==this.root.getAttribute("data-mode")&&(this.textbox.value=
|
|
250
|
+
"");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+va)||"");this.root.setAttribute("data-mode",va)}},{key:"restoreFocus",value:function(){var va=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=va}},{key:"save",value:function(){var va=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var oa=this.quill.root.scrollTop;
|
|
251
|
+
this.linkRange?(this.quill.formatText(this.linkRange,"link",va,n.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",va,n.default.sources.USER));this.quill.root.scrollTop=oa;break;case "video":oa=va;var wa=oa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||oa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);va=wa?(wa[1]||"https")+"://www.youtube.com/embed/"+wa[2]+"?showinfo=0":(wa=oa.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
|
|
252
|
+
(wa[1]||"https")+"://player.vimeo.com/video/"+wa[2]+"/":oa;case "formula":va&&(oa=this.quill.getSelection(!0),null!=oa&&(oa=oa.index+oa.length,this.quill.insertEmbed(oa,this.root.getAttribute("data-mode"),va,n.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(oa+1," ",n.default.sources.USER),this.quill.setSelection(oa+2,n.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return ta}(w.default);ma.BaseTooltip=ka;ma.default=fa},function(ka,ma){Object.defineProperty(ma,
|
|
253
|
+
"__esModule",{value:!0});ka=function(){function fa(){this.head=this.tail=null;this.length=0}fa.prototype.append=function(){for(var ea=[],z=0;z<arguments.length;z++)ea[z]=arguments[z];this.insertBefore(ea[0],null);1<ea.length&&this.append.apply(this,ea.slice(1))};fa.prototype.contains=function(ea){for(var z,x=this.iterator();z=x();)if(z===ea)return!0;return!1};fa.prototype.insertBefore=function(ea,z){ea&&(ea.next=z,null!=z?(ea.prev=z.prev,null!=z.prev&&(z.prev.next=ea),z.prev=ea,z===this.head&&(this.head=
|
|
254
|
+
ea)):null!=this.tail?(this.tail.next=ea,ea.prev=this.tail,this.tail=ea):(ea.prev=null,this.head=this.tail=ea),this.length+=1)};fa.prototype.offset=function(ea){for(var z=0,x=this.head;null!=x;){if(x===ea)return z;z+=x.length();x=x.next}return-1};fa.prototype.remove=function(ea){this.contains(ea)&&(null!=ea.prev&&(ea.prev.next=ea.next),null!=ea.next&&(ea.next.prev=ea.prev),ea===this.head&&(this.head=ea.next),ea===this.tail&&(this.tail=ea.prev),--this.length)};fa.prototype.iterator=function(ea){void 0===
|
|
255
|
+
ea&&(ea=this.head);return function(){var z=ea;null!=ea&&(ea=ea.next);return z}};fa.prototype.find=function(ea,z){void 0===z&&(z=!1);for(var x,y=this.iterator();x=y();){var f=x.length();if(ea<f||z&&ea===f&&(null==x.next||0!==x.next.length()))return[x,ea];ea-=f}return[null,0]};fa.prototype.forEach=function(ea){for(var z,x=this.iterator();z=x();)ea(z)};fa.prototype.forEachAt=function(ea,z,x){if(!(0>=z))for(var y=this.find(ea),f=ea-y[1],e=this.iterator(y[0]);(y=e())&&f<ea+z;){var a=y.length();ea>f?x(y,
|
|
256
|
+
ea-f,Math.min(z,f+a-ea)):x(y,0,Math.min(a,ea+z-f));f+=a}};fa.prototype.map=function(ea){return this.reduce(function(z,x){z.push(ea(x));return z},[])};fa.prototype.reduce=function(ea,z){for(var x,y=this.iterator();x=y();)z=ea(z,x);return z};return fa}();ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return function(e,a){function b(){this.constructor=
|
|
257
|
+
e}f(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ma,"__esModule",{value:!0});var z=fa(17),x=fa(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ka=function(f){function e(a){var b=f.call(this,a)||this;b.scroll=b;b.observer=new MutationObserver(function(h){b.update(h)});b.observer.observe(b.domNode,y);b.attach();return b}ea(e,f);e.prototype.detach=function(){f.prototype.detach.call(this);this.observer.disconnect()};
|
|
258
|
+
e.prototype.deleteAt=function(a,b){this.update();0===a&&b===this.length()?this.children.forEach(function(h){h.remove()}):f.prototype.deleteAt.call(this,a,b)};e.prototype.formatAt=function(a,b,h,n){this.update();f.prototype.formatAt.call(this,a,b,h,n)};e.prototype.insertAt=function(a,b,h){this.update();f.prototype.insertAt.call(this,a,b,h)};e.prototype.optimize=function(a,b){function h(aa){null!=aa.domNode[x.DATA_KEY]&&null!=aa.domNode[x.DATA_KEY].mutations&&(aa instanceof z.default&&aa.children.forEach(h),
|
|
259
|
+
aa.optimize(b))}function n(aa,ca){void 0===ca&&(ca=!0);null!=aa&&aa!==ba&&null!=aa.domNode.parentNode&&(null==aa.domNode[x.DATA_KEY].mutations&&(aa.domNode[x.DATA_KEY].mutations=[]),ca&&n(aa.parent))}var ba=this;void 0===a&&(a=[]);void 0===b&&(b={});f.prototype.optimize.call(this,b);for(var w=[].slice.call(this.observer.takeRecords());0<w.length;)a.push(w.pop());for(var da=a,ja=0;0<da.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");da.forEach(function(aa){var ca=
|
|
260
|
+
x.find(aa.target,!0);null!=ca&&(ca.domNode===aa.target&&("childList"===aa.type?(n(x.find(aa.previousSibling,!1)),[].forEach.call(aa.addedNodes,function(ia){ia=x.find(ia,!1);n(ia,!1);ia instanceof z.default&&ia.children.forEach(function(ha){n(ha,!1)})})):"attributes"===aa.type&&n(ca.prev)),n(ca))});this.children.forEach(h);da=[].slice.call(this.observer.takeRecords());for(w=da.slice();0<w.length;)a.push(w.pop())}};e.prototype.update=function(a,b){var h=this;void 0===b&&(b={});a=a||this.observer.takeRecords();
|
|
261
|
+
a.map(function(n){var ba=x.find(n.target,!0);if(null==ba)return null;if(null==ba.domNode[x.DATA_KEY].mutations)return ba.domNode[x.DATA_KEY].mutations=[n],ba;ba.domNode[x.DATA_KEY].mutations.push(n);return null}).forEach(function(n){null!=n&&n!==h&&null!=n.domNode[x.DATA_KEY]&&n.update(n.domNode[x.DATA_KEY].mutations||[],b)});null!=this.domNode[x.DATA_KEY].mutations&&f.prototype.update.call(this,this.domNode[x.DATA_KEY].mutations,b);this.optimize(a,b)};e.blotName="scroll";e.defaultChild="block";e.scope=
|
|
262
|
+
x.Scope.BLOCK_BLOT;e.tagName="DIV";return e}(z.default);ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,e){f.__proto__=e}||function(f,e){for(var a in e)e.hasOwnProperty(a)&&(f[a]=e[a])};return function(f,e){function a(){this.constructor=f}y(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}();Object.defineProperty(ma,"__esModule",{value:!0});var z=fa(18),x=fa(1);ka=function(y){function f(){return null!==
|
|
263
|
+
y&&y.apply(this,arguments)||this}ea(f,y);f.formats=function(e){if(e.tagName!==f.tagName)return y.formats.call(this,e)};f.prototype.format=function(e,a){var b=this;e!==this.statics.blotName||a?y.prototype.format.call(this,e,a):(this.children.forEach(function(h){h instanceof z.default||(h=h.wrap(f.blotName,!0));b.attributes.copy(h)}),this.unwrap())};f.prototype.formatAt=function(e,a,b,h){null!=this.formats()[b]||x.query(b,x.Scope.ATTRIBUTE)?this.isolate(e,a).format(b,h):y.prototype.formatAt.call(this,
|
|
264
|
+
e,a,b,h)};f.prototype.optimize=function(e){y.prototype.optimize.call(this,e);e=this.formats();if(0===Object.keys(e).length)return this.unwrap();var a=this.next,b;if(b=a instanceof f&&a.prev===this)a:if(b=a.formats(),Object.keys(e).length!==Object.keys(b).length)b=!1;else{for(var h in e)if(e[h]!==b[h]){b=!1;break a}b=!0}b&&(a.moveChildren(this),a.remove())};f.blotName="inline";f.scope=x.Scope.INLINE_BLOT;f.tagName="SPAN";return f}(z.default);ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||
|
|
265
|
+
function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(18);var z=fa(1);fa=function(x){function y(){return null!==x&&x.apply(this,arguments)||this}ea(y,x);y.formats=function(f){var e=z.query(y.blotName).tagName;
|
|
266
|
+
if(f.tagName!==e)return x.formats.call(this,f)};y.prototype.format=function(f,e){null!=z.query(f,z.Scope.BLOCK)&&(f!==this.statics.blotName||e?x.prototype.format.call(this,f,e):this.replaceWith(y.blotName))};y.prototype.formatAt=function(f,e,a,b){null!=z.query(a,z.Scope.BLOCK)?this.format(a,b):x.prototype.formatAt.call(this,f,e,a,b)};y.prototype.insertAt=function(f,e,a){null==a||null!=z.query(e,z.Scope.INLINE)?x.prototype.insertAt.call(this,f,e,a):(f=this.split(f),e=z.create(e,a),f.parent.insertBefore(e,
|
|
267
|
+
f))};y.prototype.update=function(f,e){navigator.userAgent.match(/Trident/)?this.build():x.prototype.update.call(this,f,e)};y.blotName="block";y.scope=z.Scope.BLOCK_BLOT;y.tagName="P";return y}(ka.default);ma.default=fa},function(ka,ma,fa){var ea=this&&this.__extends||function(){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,y){x.__proto__=y}||function(x,y){for(var f in y)y.hasOwnProperty(f)&&(x[f]=y[f])};return function(x,y){function f(){this.constructor=x}z(x,y);x.prototype=
|
|
268
|
+
null===y?Object.create(y):(f.prototype=y.prototype,new f)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){return null!==z&&z.apply(this,arguments)||this}ea(x,z);x.formats=function(){};x.prototype.format=function(y,f){z.prototype.formatAt.call(this,0,this.length(),y,f)};x.prototype.formatAt=function(y,f,e,a){0===y&&f===this.length()?this.format(e,a):z.prototype.formatAt.call(this,y,f,e,a)};x.prototype.formats=function(){return this.statics.formats(this.domNode)};return x}(fa(19).default);
|
|
269
|
+
ma.default=ka},function(ka,ma,fa){var ea=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,f){y.__proto__=f}||function(y,f){for(var e in f)f.hasOwnProperty(e)&&(y[e]=f[e])};return function(y,f){function e(){this.constructor=y}x(y,f);y.prototype=null===f?Object.create(f):(e.prototype=f.prototype,new e)}}();Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(19);var z=fa(1);fa=function(x){function y(f){f=x.call(this,f)||this;f.text=f.statics.value(f.domNode);
|
|
270
|
+
return f}ea(y,x);y.create=function(f){return document.createTextNode(f)};y.value=function(f){f=f.data;f.normalize&&(f=f.normalize());return f};y.prototype.deleteAt=function(f,e){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+e)};y.prototype.index=function(f,e){return this.domNode===f?e:-1};y.prototype.insertAt=function(f,e,a){null==a?(this.text=this.text.slice(0,f)+e+this.text.slice(f),this.domNode.data=this.text):x.prototype.insertAt.call(this,f,e,a)};y.prototype.length=function(){return this.text.length};
|
|
271
|
+
y.prototype.optimize=function(f){x.prototype.optimize.call(this,f);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof y&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};y.prototype.position=function(f){return[this.domNode,f]};y.prototype.split=function(f,e){void 0===e&&(e=!1);if(!e){if(0===f)return this;if(f===this.length())return this.next}f=z.create(this.domNode.splitText(f));this.parent.insertBefore(f,this.next);
|
|
272
|
+
this.text=this.statics.value(this.domNode);return f};y.prototype.update=function(f){var e=this;f.some(function(a){return"characterData"===a.type&&a.target===e.domNode})&&(this.text=this.statics.value(this.domNode))};y.prototype.value=function(){return this.text};y.blotName="text";y.scope=z.Scope.INLINE_BLOT;return y}(ka.default);ma.default=fa},function(){var ka=document.createElement("div");ka.classList.toggle("test-class",!1);if(ka.classList.contains("test-class")){var ma=DOMTokenList.prototype.toggle;
|
|
273
|
+
DOMTokenList.prototype.toggle=function(fa,ea){return 1<arguments.length&&!this.contains(fa)===!ea?ea:ma.call(this,fa)}}String.prototype.startsWith||(String.prototype.startsWith=function(fa,ea){return this.substr(ea||0,fa.length)===fa});String.prototype.endsWith||(String.prototype.endsWith=function(fa,ea){var z=this.toString();if("number"!==typeof ea||!isFinite(ea)||Math.floor(ea)!==ea||ea>z.length)ea=z.length;ea-=fa.length;fa=z.indexOf(fa,ea);return-1!==fa&&fa===ea});Array.prototype.find||Object.defineProperty(Array.prototype,
|
|
274
|
+
"find",{value:function(fa,ea){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof fa)throw new TypeError("predicate must be a function");for(var z=Object(this),x=z.length>>>0,y,f=0;f<x;f++)if(y=z[f],fa.call(ea,y,f,z))return y}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ka){function ma(h,n,ba){if(h==n)return h?[[0,h]]:[];
|
|
275
|
+
if(0>ba||h.length<ba)ba=null;var w=z(h,n),da=h.substring(0,w);h=h.substring(w);n=n.substring(w);w=x(h,n);var ja=h.substring(h.length-w);h=h.substring(0,h.length-w);n=n.substring(0,n.length-w);h=fa(h,n);da&&h.unshift([0,da]);ja&&h.push([0,ja]);f(h);null!=ba&&(h=e(h,ba));return h=a(h)}function fa(h,n){if(!h)return[[1,n]];if(!n)return[[-1,h]];var ba=h.length>n.length?h:n;var w=h.length>n.length?n:h,da=ba.indexOf(w);if(-1!=da)return ba=[[1,ba.substring(0,da)],[0,w],[1,ba.substring(da+w.length)]],h.length>
|
|
276
|
+
n.length&&(ba[0][0]=ba[2][0]=-1),ba;if(1==w.length)return[[-1,h],[1,n]];if(ba=y(h,n))return n=ba[1],w=ba[3],h=ba[4],ba=ma(ba[0],ba[2]),n=ma(n,w),ba.concat([[0,h]],n);a:{ba=h.length;w=n.length;da=Math.ceil((ba+w)/2);for(var ja=2*da,aa=Array(ja),ca=Array(ja),ia=0;ia<ja;ia++)aa[ia]=-1,ca[ia]=-1;aa[da+1]=0;ca[da+1]=0;ia=ba-w;for(var ha=0!=ia%2,la=0,na=0,qa=0,ra=0,ta=0;ta<da;ta++){for(var va=-ta+la;va<=ta-na;va+=2){var oa=da+va;var wa=va==-ta||va!=ta&&aa[oa-1]<aa[oa+1]?aa[oa+1]:aa[oa-1]+1;for(var Da=wa-
|
|
277
|
+
va;wa<ba&&Da<w&&h.charAt(wa)==n.charAt(Da);)wa++,Da++;aa[oa]=wa;if(wa>ba)na+=2;else if(Da>w)la+=2;else if(ha&&(oa=da+ia-va,0<=oa&&oa<ja&&-1!=ca[oa])){var Ha=ba-ca[oa];if(wa>=Ha){h=ea(h,n,wa,Da);break a}}}for(va=-ta+qa;va<=ta-ra;va+=2){oa=da+va;Ha=va==-ta||va!=ta&&ca[oa-1]<ca[oa+1]?ca[oa+1]:ca[oa-1]+1;for(wa=Ha-va;Ha<ba&&wa<w&&h.charAt(ba-Ha-1)==n.charAt(w-wa-1);)Ha++,wa++;ca[oa]=Ha;if(Ha>ba)ra+=2;else if(wa>w)qa+=2;else if(!ha&&(oa=da+ia-va,0<=oa&&oa<ja&&-1!=aa[oa]&&(wa=aa[oa],Da=da+wa-oa,Ha=ba-Ha,
|
|
278
|
+
wa>=Ha))){h=ea(h,n,wa,Da);break a}}}h=[[-1,h],[1,n]]}return h}function ea(h,n,ba,w){var da=h.substring(ba),ja=n.substring(w);h=ma(h.substring(0,ba),n.substring(0,w));da=ma(da,ja);return h.concat(da)}function z(h,n){if(!h||!n||h.charAt(0)!=n.charAt(0))return 0;for(var ba=0,w=Math.min(h.length,n.length),da=w,ja=0;ba<da;)h.substring(ja,da)==n.substring(ja,da)?ja=ba=da:w=da,da=Math.floor((w-ba)/2+ba);return da}function x(h,n){if(!h||!n||h.charAt(h.length-1)!=n.charAt(n.length-1))return 0;for(var ba=0,
|
|
279
|
+
w=Math.min(h.length,n.length),da=w,ja=0;ba<da;)h.substring(h.length-da,h.length-ja)==n.substring(n.length-da,n.length-ja)?ja=ba=da:w=da,da=Math.floor((w-ba)/2+ba);return da}function y(h,n){function ba(aa,ca,ia){for(var ha=aa.substring(ia,ia+Math.floor(aa.length/4)),la=-1,na="",qa,ra,ta,va;-1!=(la=ca.indexOf(ha,la+1));){var oa=z(aa.substring(ia),ca.substring(la)),wa=x(aa.substring(0,ia),ca.substring(0,la));na.length<wa+oa&&(na=ca.substring(la-wa,la)+ca.substring(la,la+oa),qa=aa.substring(0,ia-wa),
|
|
280
|
+
ra=aa.substring(ia+oa),ta=ca.substring(0,la-wa),va=ca.substring(la+oa))}return 2*na.length>=aa.length?[qa,ra,ta,va,na]:null}var w=h.length>n.length?h:n,da=h.length>n.length?n:h;if(4>w.length||2*da.length<w.length)return null;var ja=ba(w,da,Math.ceil(w.length/4));w=ba(w,da,Math.ceil(w.length/2));if(ja||w)ja=w?ja?ja[4].length>w[4].length?ja:w:w:ja;else return null;h.length>n.length?(h=ja[0],n=ja[1],w=ja[2],da=ja[3]):(w=ja[0],da=ja[1],h=ja[2],n=ja[3]);return[h,n,w,da,ja[4]]}function f(h){h.push([0,""]);
|
|
281
|
+
for(var n=0,ba=0,w=0,da="",ja="",aa;n<h.length;)switch(h[n][0]){case 1:w++;ja+=h[n][1];n++;break;case -1:ba++;da+=h[n][1];n++;break;case 0:1<ba+w?(0!==ba&&0!==w&&(aa=z(ja,da),0!==aa&&(0<n-ba-w&&0==h[n-ba-w-1][0]?h[n-ba-w-1][1]+=ja.substring(0,aa):(h.splice(0,0,[0,ja.substring(0,aa)]),n++),ja=ja.substring(aa),da=da.substring(aa)),aa=x(ja,da),0!==aa&&(h[n][1]=ja.substring(ja.length-aa)+h[n][1],ja=ja.substring(0,ja.length-aa),da=da.substring(0,da.length-aa))),0===ba?h.splice(n-w,ba+w,[1,ja]):0===w?h.splice(n-
|
|
282
|
+
ba,ba+w,[-1,da]):h.splice(n-ba-w,ba+w,[-1,da],[1,ja]),n=n-ba-w+(ba?1:0)+(w?1:0)+1):0!==n&&0==h[n-1][0]?(h[n-1][1]+=h[n][1],h.splice(n,1)):n++,ba=w=0,ja=da=""}""===h[h.length-1][1]&&h.pop();ba=!1;for(n=1;n<h.length-1;)0==h[n-1][0]&&0==h[n+1][0]&&(h[n][1].substring(h[n][1].length-h[n-1][1].length)==h[n-1][1]?(h[n][1]=h[n-1][1]+h[n][1].substring(0,h[n][1].length-h[n-1][1].length),h[n+1][1]=h[n-1][1]+h[n+1][1],h.splice(n-1,1),ba=!0):h[n][1].substring(0,h[n+1][1].length)==h[n+1][1]&&(h[n-1][1]+=h[n+1][1],
|
|
283
|
+
h[n][1]=h[n][1].substring(h[n+1][1].length)+h[n+1][1],h.splice(n+1,1),ba=!0)),n++;ba&&f(h)}function e(h,n){a:{var ba=h;if(0===n)var w=[0,ba];else{var da=0;for(w=0;w<ba.length;w++){var ja=ba[w];if(-1===ja[0]||0===ja[0]){var aa=da+ja[1].length;if(n===aa){w=[w+1,ba];break a}if(n<aa){ba=ba.slice();da=n-da;n=[ja[0],ja[1].slice(0,da)];ja=[ja[0],ja[1].slice(da)];ba.splice(w,1,n,ja);w=[w+1,ba];break a}da=aa}}throw Error("cursor_pos is out of bounds!");}}ba=w[1];w=w[0];n=ba[w];ja=ba[w+1];return null==n||0!==
|
|
284
|
+
n[0]?h:null!=ja&&n[1]+ja[1]===ja[1]+n[1]?(ba.splice(w,2,ja,n),b(ba,w,2)):null!=ja&&0===ja[1].indexOf(n[1])?(ba.splice(w,2,[ja[0],n[1]],[0,n[1]]),h=ja[1].slice(n[1].length),0<h.length&&ba.splice(w+2,0,[ja[0],h]),b(ba,w,3)):h}function a(h){function n(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function ba(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var w=!1,da=2;da<h.length;da+=1)0===h[da-2][0]&&n(h[da-2][1])&&-1===h[da-1][0]&&ba(h[da-1][1])&&
|
|
285
|
+
1===h[da][0]&&ba(h[da][1])&&(w=!0,h[da-1][1]=h[da-2][1].slice(-1)+h[da-1][1],h[da][1]=h[da-2][1].slice(-1)+h[da][1],h[da-2][1]=h[da-2][1].slice(0,-1));if(!w)return h;w=[];for(da=0;da<h.length;da+=1)0<h[da][1].length&&w.push(h[da]);return w}function b(h,n,ba){for(ba=n+ba-1;0<=ba&&ba>=n-1;ba--)if(ba+1<h.length){var w=h[ba],da=h[ba+1];w[0]===da[1]&&h.splice(ba,2,[w[0],w[1]+da[1]])}return h}ma.INSERT=1;ma.DELETE=-1;ma.EQUAL=0;ka.exports=ma},function(ka,ma){function fa(ea){var z=[],x;for(x in ea)z.push(x);
|
|
286
|
+
return z}ma=ka.exports="function"===typeof Object.keys?Object.keys:fa;ma.shim=fa},function(ka,ma){function fa(z){return"[object Arguments]"==Object.prototype.toString.call(z)}function ea(z){return z&&"object"==typeof z&&"number"==typeof z.length&&Object.prototype.hasOwnProperty.call(z,"callee")&&!Object.prototype.propertyIsEnumerable.call(z,"callee")||!1}ma="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ma=ka.exports=ma?fa:ea;ma.supported=fa;ma.unsupported=ea},
|
|
287
|
+
function(ka){function ma(){}function fa(y,f,e){this.fn=y;this.context=f;this.once=e||!1}function ea(){this._events=new ma;this._eventsCount=0}var z=Object.prototype.hasOwnProperty,x="~";Object.create&&(ma.prototype=Object.create(null),(new ma).__proto__||(x=!1));ea.prototype.eventNames=function(){var y=[],f,e;if(0===this._eventsCount)return y;for(e in f=this._events)z.call(f,e)&&y.push(x?e.slice(1):e);return Object.getOwnPropertySymbols?y.concat(Object.getOwnPropertySymbols(f)):y};ea.prototype.listeners=
|
|
288
|
+
function(y,f){y=this._events[x?x+y:y];if(f)return!!y;if(!y)return[];if(y.fn)return[y.fn];f=0;for(var e=y.length,a=Array(e);f<e;f++)a[f]=y[f].fn;return a};ea.prototype.emit=function(y,f,e,a,b,h){var n=x?x+y:y;if(!this._events[n])return!1;n=this._events[n];var ba=arguments.length,w;if(n.fn){n.once&&this.removeListener(y,n.fn,void 0,!0);switch(ba){case 1:return n.fn.call(n.context),!0;case 2:return n.fn.call(n.context,f),!0;case 3:return n.fn.call(n.context,f,e),!0;case 4:return n.fn.call(n.context,
|
|
289
|
+
f,e,a),!0;case 5:return n.fn.call(n.context,f,e,a,b),!0;case 6:return n.fn.call(n.context,f,e,a,b,h),!0}var da=1;for(w=Array(ba-1);da<ba;da++)w[da-1]=arguments[da];n.fn.apply(n.context,w)}else{var ja=n.length;for(da=0;da<ja;da++)switch(n[da].once&&this.removeListener(y,n[da].fn,void 0,!0),ba){case 1:n[da].fn.call(n[da].context);break;case 2:n[da].fn.call(n[da].context,f);break;case 3:n[da].fn.call(n[da].context,f,e);break;case 4:n[da].fn.call(n[da].context,f,e,a);break;default:if(!w){var aa=1;for(w=
|
|
290
|
+
Array(ba-1);aa<ba;aa++)w[aa-1]=arguments[aa]}n[da].fn.apply(n[da].context,w)}}return!0};ea.prototype.on=function(y,f,e){f=new fa(f,e||this);y=x?x+y:y;this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],f]:this._events[y].push(f):(this._events[y]=f,this._eventsCount++);return this};ea.prototype.once=function(y,f,e){f=new fa(f,e||this,!0);y=x?x+y:y;this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],f]:this._events[y].push(f):(this._events[y]=f,this._eventsCount++);return this};
|
|
291
|
+
ea.prototype.removeListener=function(y,f,e,a){y=x?x+y:y;if(!this._events[y])return this;if(!f)return 0===--this._eventsCount?this._events=new ma:delete this._events[y],this;var b=this._events[y];if(b.fn)b.fn!==f||a&&!b.once||e&&b.context!==e||(0===--this._eventsCount?this._events=new ma:delete this._events[y]);else{for(var h=0,n=[],ba=b.length;h<ba;h++)(b[h].fn!==f||a&&!b[h].once||e&&b[h].context!==e)&&n.push(b[h]);n.length?this._events[y]=1===n.length?n[0]:n:0===--this._eventsCount?this._events=
|
|
292
|
+
new ma:delete this._events[y]}return this};ea.prototype.removeAllListeners=function(y){y?(y=x?x+y:y,this._events[y]&&(0===--this._eventsCount?this._events=new ma:delete this._events[y])):(this._events=new ma,this._eventsCount=0);return this};ea.prototype.off=ea.prototype.removeListener;ea.prototype.addListener=ea.prototype.on;ea.prototype.setMaxListeners=function(){return this};ea.prefixed=x;ea.EventEmitter=ea;"undefined"!==typeof ka&&(ka.exports=ea)},function(ka,ma,fa){function ea(Aa){return Aa&&
|
|
293
|
+
Aa.__esModule?Aa:{default:Aa}}function z(Aa,Ja,Ia){Ja in Aa?Object.defineProperty(Aa,Ja,{value:Ia,enumerable:!0,configurable:!0,writable:!0}):Aa[Ja]=Ia;return Aa}function x(Aa,Ja){if(!Aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ja||"object"!==typeof Ja&&"function"!==typeof Ja?Aa:Ja}function y(Aa,Ja){if("function"!==typeof Ja&&null!==Ja)throw new TypeError("Super expression must either be null or a function, not "+typeof Ja);Aa.prototype=Object.create(Ja&&
|
|
294
|
+
Ja.prototype,{constructor:{value:Aa,enumerable:!1,writable:!0,configurable:!0}});Ja&&(Object.setPrototypeOf?Object.setPrototypeOf(Aa,Ja):Aa.__proto__=Ja)}function f(Aa,Ja,Ia){return"object"===("undefined"===typeof Ja?"undefined":ca(Ja))?Object.keys(Ja).reduce(function(Pa,Wa){return f(Pa,Wa,Ja[Wa])},Aa):Aa.reduce(function(Pa,Wa){return Wa.attributes&&Wa.attributes[Ja]?Pa.push(Wa):Pa.insert(Wa.insert,(0,la.default)({},z({},Ja,Ia),Wa.attributes))},new na.default)}function e(Aa){return Aa.nodeType!==
|
|
295
|
+
Node.ELEMENT_NODE?{}:Aa["__ql-computed-style"]||(Aa["__ql-computed-style"]=window.getComputedStyle(Aa))}function a(Aa,Ja){for(var Ia="",Pa=Aa.ops.length-1;0<=Pa&&Ia.length<Ja.length;--Pa){var Wa=Aa.ops[Pa];if("string"!==typeof Wa.insert)break;Ia=Wa.insert+Ia}return Ia.slice(-1*Ja.length)===Ja}function b(Aa){if(0===Aa.childNodes.length)return!1;Aa=e(Aa);return-1<["block","list-item"].indexOf(Aa.display)}function h(Aa,Ja,Ia){return Aa.nodeType===Aa.TEXT_NODE?Ia.reduce(function(Pa,Wa){return Wa(Aa,Pa)},
|
|
296
|
+
new na.default):Aa.nodeType===Aa.ELEMENT_NODE?[].reduce.call(Aa.childNodes||[],function(Pa,Wa){var Qa=h(Wa,Ja,Ia);Wa.nodeType===Aa.ELEMENT_NODE&&(Qa=Ja.reduce(function(Fa,Ea){return Ea(Wa,Fa)},Qa),Qa=(Wa["__ql-matcher"]||[]).reduce(function(Fa,Ea){return Ea(Wa,Fa)},Qa));return Pa.concat(Qa)},new na.default):new na.default}function n(Aa,Ja,Ia){return f(Ia,Aa,!0)}function ba(Aa,Ja){var Ia=qa.default.Attributor.Attribute.keys(Aa),Pa=qa.default.Attributor.Class.keys(Aa),Wa=qa.default.Attributor.Style.keys(Aa),
|
|
297
|
+
Qa={};Ia.concat(Pa).concat(Wa).forEach(function(Fa){var Ea=qa.default.query(Fa,qa.default.Scope.ATTRIBUTE);if(null!=Ea&&(Qa[Ea.attrName]=Ea.value(Aa),Qa[Ea.attrName]))return;Ea=Ra[Fa];null==Ea||Ea.attrName!==Fa&&Ea.keyName!==Fa||(Qa[Ea.attrName]=Ea.value(Aa)||void 0);Ea=Ma[Fa];null==Ea||Ea.attrName!==Fa&&Ea.keyName!==Fa||(Ea=Ma[Fa],Qa[Ea.attrName]=Ea.value(Aa)||void 0)});0<Object.keys(Qa).length&&(Ja=f(Ja,Qa));return Ja}function w(Aa,Ja){var Ia=qa.default.query(Aa);if(null==Ia)return Ja;if(Ia.prototype instanceof
|
|
298
|
+
qa.default.Embed){var Pa={},Wa=Ia.value(Aa);null!=Wa&&(Pa[Ia.blotName]=Wa,Ja=(new na.default).insert(Pa,Ia.formats(Aa)))}else"function"===typeof Ia.formats&&(Ja=f(Ja,Ia.blotName,Ia.formats(Aa)));return Ja}function da(Aa,Ja){a(Ja,"\n")||(b(Aa)||0<Ja.length()&&Aa.nextSibling&&b(Aa.nextSibling))&&Ja.insert("\n");return Ja}function ja(Aa,Ja){if(b(Aa)&&null!=Aa.nextElementSibling&&!a(Ja,"\n\n")){var Ia=Aa.offsetHeight+parseFloat(e(Aa).marginTop)+parseFloat(e(Aa).marginBottom);Aa.nextElementSibling.offsetTop>
|
|
299
|
+
Aa.offsetTop+1.5*Ia&&Ja.insert("\n")}return Ja}function aa(Aa,Ja){var Ia=Aa.data;if("O:P"===Aa.parentNode.tagName)return Ja.insert(Ia.trim());if(0===Ia.trim().length&&Aa.parentNode.classList.contains("ql-clipboard"))return Ja;if(!e(Aa.parentNode).whiteSpace.startsWith("pre")){var Pa=function(Wa,Qa){Qa=Qa.replace(/[^\u00a0]/g,"");return 1>Qa.length&&Wa?" ":Qa};Ia=Ia.replace(/\r\n/g," ").replace(/\n/g," ");Ia=Ia.replace(/\s\s+/g,Pa.bind(Pa,!0));if(null==Aa.previousSibling&&b(Aa.parentNode)||null!=Aa.previousSibling&&
|
|
300
|
+
b(Aa.previousSibling))Ia=Ia.replace(/^\s+/,Pa.bind(Pa,!1));if(null==Aa.nextSibling&&b(Aa.parentNode)||null!=Aa.nextSibling&&b(Aa.nextSibling))Ia=Ia.replace(/\s+$/,Pa.bind(Pa,!1))}return Ja.insert(Ia)}Object.defineProperty(ma,"__esModule",{value:!0});ma.matchText=ma.matchSpacing=ma.matchNewline=ma.matchBlot=ma.matchAttributor=ma.default=void 0;var ca="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Aa){return typeof Aa}:function(Aa){return Aa&&"function"===typeof Symbol&&Aa.constructor===
|
|
301
|
+
Symbol&&Aa!==Symbol.prototype?"symbol":typeof Aa},ia=function(){return function(Aa,Ja){if(Array.isArray(Aa))return Aa;if(Symbol.iterator in Object(Aa)){var Ia=[],Pa=!0,Wa=!1,Qa=void 0;try{for(var Fa=Aa[Symbol.iterator](),Ea;!(Pa=(Ea=Fa.next()).done)&&(Ia.push(Ea.value),!Ja||Ia.length!==Ja);Pa=!0);}catch(Ua){Wa=!0,Qa=Ua}finally{try{if(!Pa&&Fa["return"])Fa["return"]()}finally{if(Wa)throw Qa;}}return Ia}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ha=function(){function Aa(Ja,
|
|
302
|
+
Ia){for(var Pa=0;Pa<Ia.length;Pa++){var Wa=Ia[Pa];Wa.enumerable=Wa.enumerable||!1;Wa.configurable=!0;"value"in Wa&&(Wa.writable=!0);Object.defineProperty(Ja,Wa.key,Wa)}}return function(Ja,Ia,Pa){Ia&&Aa(Ja.prototype,Ia);Pa&&Aa(Ja,Pa);return Ja}}();ka=fa(3);var la=ea(ka);ka=fa(2);var na=ea(ka);ka=fa(0);var qa=ea(ka);ka=fa(5);var ra=ea(ka);ka=fa(10);ka=ea(ka);var ta=fa(9);ta=ea(ta);var va=fa(36),oa=fa(37),wa=fa(13),Da=ea(wa);wa=fa(26);var Ha=fa(38),La=fa(39);fa=fa(40);var Ca=(0,ka.default)("quill:clipboard"),
|
|
303
|
+
Ka=[[Node.TEXT_NODE,aa],[Node.TEXT_NODE,da],["br",function(Aa,Ja){a(Ja,"\n")||Ja.insert("\n");return Ja}],[Node.ELEMENT_NODE,da],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,ba],[Node.ELEMENT_NODE,function(Aa,Ja){var Ia={},Pa=Aa.style||{};Pa.fontStyle&&"italic"===e(Aa).fontStyle&&(Ia.italic=!0);Pa.fontWeight&&(e(Aa).fontWeight.startsWith("bold")||700<=parseInt(e(Aa).fontWeight))&&(Ia.bold=!0);0<Object.keys(Ia).length&&(Ja=f(Ja,Ia));0<parseFloat(Pa.textIndent||0)&&(Ja=(new na.default).insert("\t").concat(Ja));
|
|
304
|
+
return Ja}],["li",function(Aa,Ja){var Ia=qa.default.query(Aa);if(null==Ia||"list-item"!==Ia.blotName||!a(Ja,"\n"))return Ja;Ia=-1;for(Aa=Aa.parentNode;!Aa.classList.contains("ql-clipboard");)"list"===(qa.default.query(Aa)||{}).blotName&&(Ia+=1),Aa=Aa.parentNode;return 0>=Ia?Ja:Ja.compose((new na.default).retain(Ja.length()-1).retain(1,{indent:Ia}))}],["b",n.bind(n,"bold")],["i",n.bind(n,"italic")],["style",function(){return new na.default}]],Ra=[va.AlignAttribute,Ha.DirectionAttribute].reduce(function(Aa,
|
|
305
|
+
Ja){Aa[Ja.keyName]=Ja;return Aa},{}),Ma=[va.AlignStyle,oa.BackgroundStyle,wa.ColorStyle,Ha.DirectionStyle,La.FontStyle,fa.SizeStyle].reduce(function(Aa,Ja){Aa[Ja.keyName]=Ja;return Aa},{});fa=function(Aa){function Ja(Ia,Pa){if(!(this instanceof Ja))throw new TypeError("Cannot call a class as a function");var Wa=x(this,(Ja.__proto__||Object.getPrototypeOf(Ja)).call(this,Ia,Pa));Wa.quill.root.addEventListener("paste",Wa.onPaste.bind(Wa));Wa.container=Wa.quill.addContainer("ql-clipboard");Wa.container.setAttribute("contenteditable",
|
|
306
|
+
!0);Wa.container.setAttribute("tabindex",-1);Wa.matchers=[];Ka.concat(Wa.options.matchers).forEach(function(Qa){Qa=ia(Qa,2);var Fa=Qa[1];(Pa.matchVisual||Fa!==ja)&&Wa.addMatcher(Qa[0],Fa)});return Wa}y(Ja,Aa);ha(Ja,[{key:"addMatcher",value:function(Ia,Pa){this.matchers.push([Ia,Pa])}},{key:"convert",value:function(Ia){if("string"===typeof Ia)return this.container.innerHTML=Ia.replace(/>\r?\n +</g,"><"),this.convert();Ia=this.quill.getFormat(this.quill.selection.savedRange.index);if(Ia[Da.default.blotName]){var Pa=
|
|
307
|
+
this.container.innerText;this.container.innerHTML="";return(new na.default).insert(Pa,z({},Da.default.blotName,Ia[Da.default.blotName]))}Ia=this.prepareMatching();Ia=ia(Ia,2);Ia=h(this.container,Ia[0],Ia[1]);a(Ia,"\n")&&null==Ia.ops[Ia.ops.length-1].attributes&&(Ia=Ia.compose((new na.default).retain(Ia.length()-1).delete(1)));Ca.log("convert",this.container.innerHTML,Ia);this.container.innerHTML="";return Ia}},{key:"dangerouslyPasteHTML",value:function(Ia,Pa){var Wa=2<arguments.length&&void 0!==arguments[2]?
|
|
308
|
+
arguments[2]:ra.default.sources.API;if("string"===typeof Ia)this.quill.setContents(this.convert(Ia),Pa),this.quill.setSelection(0,ra.default.sources.SILENT);else{var Qa=this.convert(Pa);this.quill.updateContents((new na.default).retain(Ia).concat(Qa),Wa);this.quill.setSelection(Ia+Qa.length(),ra.default.sources.SILENT)}}},{key:"onPaste",value:function(Ia){var Pa=this;if(!Ia.defaultPrevented&&this.quill.isEnabled()){var Wa=this.quill.getSelection(),Qa=(new na.default).retain(Wa.index),Fa=this.quill.scrollingContainer.scrollTop;
|
|
309
|
+
this.container.focus();this.quill.selection.update(ra.default.sources.SILENT);setTimeout(function(){Qa=Qa.concat(Pa.convert()).delete(Wa.length);Pa.quill.updateContents(Qa,ra.default.sources.USER);Pa.quill.setSelection(Qa.length()-Wa.length,ra.default.sources.SILENT);Pa.quill.scrollingContainer.scrollTop=Fa;Pa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ia=this,Pa=[],Wa=[];this.matchers.forEach(function(Qa){Qa=ia(Qa,2);var Fa=Qa[0],Ea=Qa[1];switch(Fa){case Node.TEXT_NODE:Wa.push(Ea);
|
|
310
|
+
break;case Node.ELEMENT_NODE:Pa.push(Ea);break;default:[].forEach.call(Ia.container.querySelectorAll(Fa),function(Ua){Ua["__ql-matcher"]=Ua["__ql-matcher"]||[];Ua["__ql-matcher"].push(Ea)})}});return[Pa,Wa]}}]);return Ja}(ta.default);fa.DEFAULTS={matchers:[],matchVisual:!0};ma.default=fa;ma.matchAttributor=ba;ma.matchBlot=w;ma.matchNewline=da;ma.matchSpacing=ja;ma.matchText=aa},function(ka,ma,fa){function ea(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
|
|
311
|
+
typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,
|
|
312
|
+
a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
313
|
+
return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,[{key:"optimize",value:function(a){x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,a);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return x(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(6)).default);
|
|
314
|
+
ka.blotName="bold";ka.tagName=["STRONG","B"];ma.default=ka},function(ka,ma,fa){function ea(da){return da&&da.__esModule?da:{default:da}}function z(da,ja){if(!da)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?da:ja}function x(da,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);da.prototype=Object.create(ja&&ja.prototype,{constructor:{value:da,
|
|
315
|
+
enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(da,ja):da.__proto__=ja)}function y(da,ja,aa){var ca=document.createElement("button");ca.setAttribute("type","button");ca.classList.add("ql-"+ja);null!=aa&&(ca.value=aa);da.appendChild(ca)}function f(da,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(aa){var ca=document.createElement("span");ca.classList.add("ql-formats");aa.forEach(function(ia){if("string"===typeof ia)y(ca,ia);else{var ha=Object.keys(ia)[0];
|
|
316
|
+
ia=ia[ha];Array.isArray(ia)?e(ca,ha,ia):y(ca,ha,ia)}});da.appendChild(ca)})}function e(da,ja,aa){var ca=document.createElement("select");ca.classList.add("ql-"+ja);aa.forEach(function(ia){var ha=document.createElement("option");!1!==ia?ha.setAttribute("value",ia):ha.setAttribute("selected","selected");ca.appendChild(ha)});da.appendChild(ca)}Object.defineProperty(ma,"__esModule",{value:!0});ma.addControls=ma.default=void 0;var a=function(){return function(da,ja){if(Array.isArray(da))return da;if(Symbol.iterator in
|
|
317
|
+
Object(da)){var aa=[],ca=!0,ia=!1,ha=void 0;try{for(var la=da[Symbol.iterator](),na;!(ca=(na=la.next()).done)&&(aa.push(na.value),!ja||aa.length!==ja);ca=!0);}catch(qa){ia=!0,ha=qa}finally{try{if(!ca&&la["return"])la["return"]()}finally{if(ia)throw ha;}}return aa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function da(ja,aa){for(var ca=0;ca<aa.length;ca++){var ia=aa[ca];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=
|
|
318
|
+
!0);Object.defineProperty(ja,ia.key,ia)}}return function(ja,aa,ca){aa&&da(ja.prototype,aa);ca&&da(ja,ca);return ja}}();ka=fa(2);var h=ea(ka);ka=fa(0);var n=ea(ka);ka=fa(5);var ba=ea(ka);ka=fa(10);ka=ea(ka);fa=fa(9);fa=ea(fa);var w=(0,ka.default)("quill:toolbar");fa=function(da){function ja(aa,ca){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var ia=z(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,aa,ca));Array.isArray(ia.options.container)?(ca=document.createElement("div"),
|
|
319
|
+
f(ca,ia.options.container),aa.container.parentNode.insertBefore(ca,aa.container),ia.container=ca):ia.container="string"===typeof ia.options.container?document.querySelector(ia.options.container):ia.options.container;if(!(ia.container instanceof HTMLElement)){var ha;return ha=w.error("Container required for toolbar",ia.options),z(ia,ha)}ia.container.classList.add("ql-toolbar");ia.controls=[];ia.handlers={};Object.keys(ia.options.handlers).forEach(function(la){ia.addHandler(la,ia.options.handlers[la])});
|
|
320
|
+
[].forEach.call(ia.container.querySelectorAll("button, select"),function(la){ia.attach(la)});ia.quill.on(ba.default.events.EDITOR_CHANGE,function(la,na){la===ba.default.events.SELECTION_CHANGE&&ia.update(na)});ia.quill.on(ba.default.events.SCROLL_OPTIMIZE,function(){var la=ia.quill.selection.getRange();la=a(la,1)[0];ia.update(la)});return ia}x(ja,da);b(ja,[{key:"addHandler",value:function(aa,ca){this.handlers[aa]=ca}},{key:"attach",value:function(aa){var ca=this,ia=[].find.call(aa.classList,function(ha){return 0===
|
|
321
|
+
ha.indexOf("ql-")});if(ia){ia=ia.slice(3);"BUTTON"===aa.tagName&&aa.setAttribute("type","button");if(null==this.handlers[ia]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[ia]){w.warn("ignoring attaching to disabled format",ia,aa);return}if(null==n.default.query(ia)){w.warn("ignoring attaching to nonexistent format",ia,aa);return}}aa.addEventListener("SELECT"===aa.tagName?"change":"click",function(ha){if("SELECT"===aa.tagName){if(0>aa.selectedIndex)return;var la=aa.options[aa.selectedIndex];
|
|
322
|
+
la=la.hasAttribute("selected")?!1:la.value||!1}else la=aa.classList.contains("ql-active")?!1:aa.value||!aa.hasAttribute("value"),ha.preventDefault();ca.quill.focus();ha=ca.quill.selection.getRange();ha=a(ha,1)[0];if(null!=ca.handlers[ia])ca.handlers[ia].call(ca,la);else if(n.default.query(ia).prototype instanceof n.default.Embed){la=prompt("Enter "+ia);if(!la)return;var na=ca.quill,qa=na.updateContents,ra=(new h.default).retain(ha.index).delete(ha.length),ta=ra.insert,va={},oa=ia;oa in va?Object.defineProperty(va,
|
|
323
|
+
oa,{value:la,enumerable:!0,configurable:!0,writable:!0}):va[oa]=la;qa.call(na,ta.call(ra,va),ba.default.sources.USER)}else ca.quill.format(ia,la,ba.default.sources.USER);ca.update(ha)});this.controls.push([ia,aa])}}},{key:"update",value:function(aa){var ca=null==aa?{}:this.quill.getFormat(aa);this.controls.forEach(function(ia){ia=a(ia,2);var ha=ia[0];ia=ia[1];if("SELECT"===ia.tagName){var la=void 0;null==aa?la=null:null==ca[ha]?la=ia.querySelector("option[selected]"):Array.isArray(ca[ha])||(ha=ca[ha],
|
|
324
|
+
"string"===typeof ha&&(ha=ha.replace(/"/g,'\\"')),la=ia.querySelector('option[value="'+ha+'"]'));null==la?(ia.value="",ia.selectedIndex=-1):la.selected=!0}else null==aa?ia.classList.remove("ql-active"):ia.hasAttribute("value")?(ha=ca[ha]===ia.getAttribute("value")||null!=ca[ha]&&ca[ha].toString()===ia.getAttribute("value")||null==ca[ha]&&!ia.getAttribute("value"),ia.classList.toggle("ql-active",ha)):ia.classList.toggle("ql-active",null!=ca[ha])})}}]);return ja}(fa.default);fa.DEFAULTS={};fa.DEFAULTS=
|
|
325
|
+
{container:null,handlers:{clean:function(){var da=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(aa){null!=n.default.query(aa,n.default.Scope.INLINE)&&da.quill.format(aa,!1)})):this.quill.removeFormat(ja,ba.default.sources.USER))},direction:function(da){var ja=this.quill.getFormat().align;"rtl"===da&&null==ja?this.quill.format("align","right",ba.default.sources.USER):da||"right"!==ja||this.quill.format("align",!1,ba.default.sources.USER);
|
|
326
|
+
this.quill.format("direction",da,ba.default.sources.USER)},indent:function(da){var ja=this.quill.getFormat(this.quill.getSelection()),aa=parseInt(ja.indent||0);if("+1"===da||"-1"===da)da="+1"===da?1:-1,"rtl"===ja.direction&&(da*=-1),this.quill.format("indent",aa+da,ba.default.sources.USER)},link:function(da){!0===da&&(da=prompt("Enter link URL:"));this.quill.format("link",da,ba.default.sources.USER)},list:function(da){var ja=this.quill.getFormat(this.quill.getSelection());"check"===da?"checked"===
|
|
327
|
+
ja.list||"unchecked"===ja.list?this.quill.format("list",!1,ba.default.sources.USER):this.quill.format("list","unchecked",ba.default.sources.USER):this.quill.format("list",da,ba.default.sources.USER)}}};ma.default=fa;ma.addControls=f},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ka,
|
|
328
|
+
ma,fa){function ea(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function z(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,
|
|
329
|
+
"__esModule",{value:!0});var x=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),y=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?
|
|
330
|
+
void 0:a.call(b)}};ka=function(e){function a(b,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");b=ea(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,b));b.label.innerHTML=h;b.container.classList.add("ql-color-picker");[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(n){n.classList.add("ql-primary")});return b}z(a,e);x(a,[{key:"buildItem",value:function(b){var h=y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),
|
|
331
|
+
"buildItem",this).call(this,b);h.style.backgroundColor=b.getAttribute("value")||"";return h}},{key:"selectItem",value:function(b,h){y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,b,h);h=this.label.querySelector(".ql-color-label");b=b?b.getAttribute("data-value")||"":"";h&&("line"===h.tagName?h.style.stroke=b:h.style.fill=b)}}]);return a}(function(e){return e&&e.__esModule?e:{default:e}}(fa(28)).default);ma.default=ka},function(ka,ma,fa){function ea(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
332
|
+
return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function z(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(ma,"__esModule",{value:!0});var x=function(){function f(e,a){for(var b=0;b<a.length;b++){var h=a[b];h.enumerable=
|
|
333
|
+
h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(e,h.key,h)}}return function(e,a,b){a&&f(e.prototype,a);b&&f(e,b);return e}}(),y=function h(e,a,b){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,a);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return h(e,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};ka=function(e){function a(b,h){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
|
|
334
|
+
b=ea(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,b));b.container.classList.add("ql-icon-picker");[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(n){n.innerHTML=h[n.getAttribute("data-value")||""]});b.defaultItem=b.container.querySelector(".ql-selected");b.selectItem(b.defaultItem);return b}z(a,e);x(a,[{key:"selectItem",value:function(b,h){y(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,b,h);b=b||this.defaultItem;this.label.innerHTML=
|
|
335
|
+
b.innerHTML}}]);return a}(function(e){return e&&e.__esModule?e:{default:e}}(fa(28)).default);ma.default=ka},function(ka,ma){Object.defineProperty(ma,"__esModule",{value:!0});var fa=function(){function ea(z,x){for(var y=0;y<x.length;y++){var f=x[y];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,f)}}return function(z,x,y){x&&ea(z.prototype,x);y&&ea(z,y);return z}}();ka=function(){function ea(z,x){var y=this;if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");
|
|
336
|
+
this.quill=z;this.boundsContainer=x||document.body;this.root=z.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){y.root.style.marginTop=-1*y.quill.root.scrollTop+"px"});this.hide()}fa(ea,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(z){var x=z.left+z.width/2-this.root.offsetWidth/2,y=z.bottom+this.quill.root.scrollTop;this.root.style.left=
|
|
337
|
+
x+"px";this.root.style.top=y+"px";this.root.classList.remove("ql-flip");var f=this.boundsContainer.getBoundingClientRect(),e=this.root.getBoundingClientRect(),a=0;e.right>f.right&&(a=f.right-e.right,this.root.style.left=x+a+"px");e.left<f.left&&(a=f.left-e.left,this.root.style.left=x+a+"px");e.bottom>f.bottom&&(this.root.style.top=y-(z.bottom-z.top+(e.bottom-e.top))+"px",this.root.classList.add("ql-flip"));return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
|
|
338
|
+
return ea}();ma.default=ka},function(ka,ma,fa){function ea(ia){return ia&&ia.__esModule?ia:{default:ia}}function z(ia,ha){if(!(ia instanceof ha))throw new TypeError("Cannot call a class as a function");}function x(ia,ha){if(!ia)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ha||"object"!==typeof ha&&"function"!==typeof ha?ia:ha}function y(ia,ha){if("function"!==typeof ha&&null!==ha)throw new TypeError("Super expression must either be null or a function, not "+
|
|
339
|
+
typeof ha);ia.prototype=Object.create(ha&&ha.prototype,{constructor:{value:ia,enumerable:!1,writable:!0,configurable:!0}});ha&&(Object.setPrototypeOf?Object.setPrototypeOf(ia,ha):ia.__proto__=ha)}Object.defineProperty(ma,"__esModule",{value:!0});var f=function(){return function(ia,ha){if(Array.isArray(ia))return ia;if(Symbol.iterator in Object(ia)){var la=[],na=!0,qa=!1,ra=void 0;try{for(var ta=ia[Symbol.iterator](),va;!(na=(va=ta.next()).done)&&(la.push(va.value),!ha||la.length!==ha);na=!0);}catch(oa){qa=
|
|
340
|
+
!0,ra=oa}finally{try{if(!na&&ta["return"])ta["return"]()}finally{if(qa)throw ra;}}return la}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function qa(ha,la,na){null===ha&&(ha=Function.prototype);var ra=Object.getOwnPropertyDescriptor(ha,la);if(void 0===ra){if(ha=Object.getPrototypeOf(ha),null!==ha)return qa(ha,la,na)}else{if("value"in ra)return ra.value;la=ra.get;return void 0===la?void 0:la.call(na)}},a=function(){function ha(la,na){for(var qa=0;qa<na.length;qa++){var ra=
|
|
341
|
+
na[qa];ra.enumerable=ra.enumerable||!1;ra.configurable=!0;"value"in ra&&(ra.writable=!0);Object.defineProperty(la,ra.key,ra)}}return function(la,na,qa){na&&ha(la.prototype,na);qa&&ha(la,qa);return la}}();ka=fa(3);ka=ea(ka);var b=fa(8),h=ea(b);b=fa(43);var n=ea(b),ba=fa(27),w=ea(ba),da=fa(15);fa=fa(41);var ja=ea(fa),aa=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];fa=function(ha){function la(na,qa){z(this,la);null!=qa.modules.toolbar&&
|
|
342
|
+
null==qa.modules.toolbar.container&&(qa.modules.toolbar.container=aa);na=x(this,(la.__proto__||Object.getPrototypeOf(la)).call(this,na,qa));na.quill.container.classList.add("ql-snow");return na}y(la,ha);a(la,[{key:"extendToolbar",value:function(na){na.container.classList.add("ql-snow");this.buildButtons([].slice.call(na.container.querySelectorAll("button")),ja.default);this.buildPickers([].slice.call(na.container.querySelectorAll("select")),ja.default);this.tooltip=new ca(this.quill,this.options.bounds);
|
|
343
|
+
na.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(qa,ra){na.handlers.link.call(na,!ra.format.link)})}}]);return la}(n.default);fa.DEFAULTS=(0,ka.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ha){ha?(ha=this.quill.getSelection(),null!=ha&&0!=ha.length&&(ha=this.quill.getText(ha),/^\S+@\S+\.\S+$/.test(ha)&&0!==ha.indexOf("mailto:")&&(ha="mailto:"+ha),this.quill.theme.tooltip.edit("link",ha))):this.quill.format("link",
|
|
344
|
+
!1)}}}}});var ca=function(ha){function la(na,qa){z(this,la);na=x(this,(la.__proto__||Object.getPrototypeOf(la)).call(this,na,qa));na.preview=na.root.querySelector("a.ql-preview");return na}y(la,ha);a(la,[{key:"listen",value:function(){var na=this;e(la.prototype.__proto__||Object.getPrototypeOf(la.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(qa){na.root.classList.contains("ql-editing")?na.save():na.edit("link",na.preview.textContent);
|
|
345
|
+
qa.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(qa){if(null!=na.linkRange){var ra=na.linkRange;na.restoreFocus();na.quill.formatText(ra,"link",!1,h.default.sources.USER);delete na.linkRange}qa.preventDefault();na.hide()});this.quill.on(h.default.events.SELECTION_CHANGE,function(qa,ra,ta){if(null!=qa){if(0===qa.length&&ta===h.default.sources.USER){if(ra=na.quill.scroll.descendant(w.default,qa.index),ta=f(ra,2),ra=ta[0],ta=ta[1],null!=ra){na.linkRange=
|
|
346
|
+
new da.Range(qa.index-ta,ra.length());qa=w.default.formats(ra.domNode);na.preview.textContent=qa;na.preview.setAttribute("href",qa);na.show();na.position(na.quill.getBounds(na.linkRange));return}}else delete na.linkRange;na.hide()}})}},{key:"show",value:function(){e(la.prototype.__proto__||Object.getPrototypeOf(la.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return la}(b.BaseTooltip);ca.TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';
|
|
347
|
+
ma.default=fa},function(ka,ma,fa){function ea(Ra){return Ra&&Ra.__esModule?Ra:{default:Ra}}Object.defineProperty(ma,"__esModule",{value:!0});ka=fa(29);ka=ea(ka);var z=fa(36),x=fa(38),y=fa(64),f=fa(65);f=ea(f);var e=fa(66);e=ea(e);var a=fa(67),b=ea(a),h=fa(37),n=fa(26),ba=fa(39),w=fa(40),da=fa(56);da=ea(da);var ja=fa(68);ja=ea(ja);var aa=fa(27);aa=ea(aa);var ca=fa(69);ca=ea(ca);var ia=fa(70);ia=ea(ia);var ha=fa(71);ha=ea(ha);var la=fa(72);la=ea(la);var na=fa(73);na=ea(na);var qa=fa(13),ra=ea(qa),ta=
|
|
348
|
+
fa(74);ta=ea(ta);var va=fa(75);va=ea(va);var oa=fa(57);oa=ea(oa);var wa=fa(41);wa=ea(wa);var Da=fa(28);Da=ea(Da);var Ha=fa(59);Ha=ea(Ha);var La=fa(60);La=ea(La);var Ca=fa(61);Ca=ea(Ca);var Ka=fa(108);Ka=ea(Ka);fa=fa(62);fa=ea(fa);ka.default.register({"attributors/attribute/direction":x.DirectionAttribute,"attributors/class/align":z.AlignClass,"attributors/class/background":h.BackgroundClass,"attributors/class/color":n.ColorClass,"attributors/class/direction":x.DirectionClass,"attributors/class/font":ba.FontClass,
|
|
349
|
+
"attributors/class/size":w.SizeClass,"attributors/style/align":z.AlignStyle,"attributors/style/background":h.BackgroundStyle,"attributors/style/color":n.ColorStyle,"attributors/style/direction":x.DirectionStyle,"attributors/style/font":ba.FontStyle,"attributors/style/size":w.SizeStyle},!0);ka.default.register({"formats/align":z.AlignClass,"formats/direction":x.DirectionClass,"formats/indent":y.IndentClass,"formats/background":h.BackgroundStyle,"formats/color":n.ColorStyle,"formats/font":ba.FontClass,
|
|
350
|
+
"formats/size":w.SizeClass,"formats/blockquote":f.default,"formats/code-block":ra.default,"formats/header":e.default,"formats/list":b.default,"formats/bold":da.default,"formats/code":qa.Code,"formats/italic":ja.default,"formats/link":aa.default,"formats/script":ca.default,"formats/strike":ia.default,"formats/underline":ha.default,"formats/image":la.default,"formats/video":na.default,"formats/list/item":a.ListItem,"modules/formula":ta.default,"modules/syntax":va.default,"modules/toolbar":oa.default,
|
|
351
|
+
"themes/bubble":Ka.default,"themes/snow":fa.default,"ui/icons":wa.default,"ui/picker":Da.default,"ui/icon-picker":La.default,"ui/color-picker":Ha.default,"ui/tooltip":Ca.default},!0);ma.default=ka.default},function(ka,ma,fa){function ea(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,
|
|
352
|
+
f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});ma.IndentClass=void 0;var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,
|
|
353
|
+
a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){return f&&f.__esModule?f:{default:f}}(fa(0));ka=new (function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,[{key:"add",
|
|
354
|
+
value:function(a,b){if("+1"===b||"-1"===b){var h=this.value(a)||0;b="+1"===b?h+1:h-1}return 0===b?(this.remove(a),!0):x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,a,b)}},{key:"canAdd",value:function(a,b){return x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,a,b)||x(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,a,parseInt(b))}},{key:"value",value:function(a){return parseInt(x(e.prototype.__proto__||
|
|
355
|
+
Object.getPrototypeOf(e.prototype),"value",this).call(this,a))||void 0}}]);return e}(ka.default.Attributor.Class))("indent","ql-indent",{scope:ka.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});ma.IndentClass=ka},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
|
|
356
|
+
Object.setPrototypeOf(z,x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(4)).default);
|
|
357
|
+
ka.blotName="blockquote";ka.tagName="blockquote";ma.default=ka},function(ka,ma,fa){function ea(x,y){if("function"!==typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);x.prototype=Object.create(y&&y.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(x,y):x.__proto__=y)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function x(y,f){for(var e=0;e<f.length;e++){var a=
|
|
358
|
+
f[e];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,a)}}return function(y,f,e){f&&x(y.prototype,f);e&&x(y,e);return y}}();ka=function(x){function y(){if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");var f=(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?
|
|
359
|
+
this:f}ea(y,x);z(y,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]);return y}(function(x){return x&&x.__esModule?x:{default:x}}(fa(4)).default);ka.blotName="header";ka.tagName="H1 H2 H3 H4 H5 H6".split(" ");ma.default=ka},function(ka,ma,fa){function ea(n){return n&&n.__esModule?n:{default:n}}function z(n,ba){if(!(n instanceof ba))throw new TypeError("Cannot call a class as a function");}function x(n,ba){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
360
|
+
return!ba||"object"!==typeof ba&&"function"!==typeof ba?n:ba}function y(n,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+typeof ba);n.prototype=Object.create(ba&&ba.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(n,ba):n.__proto__=ba)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.ListItem=void 0;var f=function(){function n(ba,w){for(var da=
|
|
361
|
+
0;da<w.length;da++){var ja=w[da];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ba,ja.key,ja)}}return function(ba,w,da){w&&n(ba.prototype,w);da&&n(ba,da);return ba}}(),e=function ja(ba,w,da){null===ba&&(ba=Function.prototype);var aa=Object.getOwnPropertyDescriptor(ba,w);if(void 0===aa){if(ba=Object.getPrototypeOf(ba),null!==ba)return ja(ba,w,da)}else{if("value"in aa)return aa.value;w=aa.get;return void 0===w?void 0:w.call(da)}};ka=fa(0);var a=
|
|
362
|
+
ea(ka);ka=fa(4);ka=ea(ka);fa=fa(25);fa=ea(fa);var b=function(ba){function w(){z(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,ba);f(w,[{key:"format",value:function(da,ja){da!==h.blotName||ja?e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,da,ja):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
|
|
363
|
+
"remove",this).call(this)}},{key:"replaceWith",value:function(da,ja){this.parent.isolate(this.offset(this.parent),this.length());if(da===this.parent.statics.blotName)return this.parent.replaceWith(da,ja),this;this.parent.unwrap();return e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,da,ja)}}],[{key:"formats",value:function(da){return da.tagName===this.tagName?void 0:e(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,da)}}]);return w}(ka.default);
|
|
364
|
+
b.blotName="list-item";b.tagName="LI";var h=function(ba){function w(da){function ja(ca){if(ca.target.parentNode===da){var ia=aa.statics.formats(da);ca=a.default.find(ca.target);"checked"===ia?ca.format("list","unchecked"):"unchecked"===ia&&ca.format("list","checked")}}z(this,w);var aa=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,da));da.addEventListener("touchstart",ja);da.addEventListener("mousedown",ja);return aa}y(w,ba);f(w,null,[{key:"create",value:function(da){var ja="ordered"===
|
|
365
|
+
da?"OL":"UL";ja=e(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ja);"checked"!==da&&"unchecked"!==da||ja.setAttribute("data-checked","checked"===da);return ja}},{key:"formats",value:function(da){if("OL"===da.tagName)return"ordered";if("UL"===da.tagName)return da.hasAttribute("data-checked")?"true"===da.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);f(w,[{key:"format",value:function(da,ja){0<this.children.length&&this.children.tail.format(da,ja)}},{key:"formats",value:function(){var da=
|
|
366
|
+
{},ja=this.statics.blotName,aa=this.statics.formats(this.domNode);ja in da?Object.defineProperty(da,ja,{value:aa,enumerable:!0,configurable:!0,writable:!0}):da[ja]=aa;return da}},{key:"insertBefore",value:function(da,ja){da instanceof b?e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,da,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(da,ja))}},{key:"optimize",value:function(da){e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
|
|
367
|
+
"optimize",this).call(this,da);da=this.next;null!=da&&da.prev===this&&da.statics.blotName===this.statics.blotName&&da.domNode.tagName===this.domNode.tagName&&da.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(da.moveChildren(this),da.remove())}},{key:"replace",value:function(da){if(da.statics.blotName!==this.statics.blotName){var ja=a.default.create(this.statics.defaultChild);da.moveChildren(ja);this.appendChild(ja)}e(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
|
|
368
|
+
"replace",this).call(this,da)}}]);return w}(fa.default);h.blotName="list";h.scope=a.default.Scope.BLOCK_BLOT;h.tagName=["OL","UL"];h.defaultChild="list-item";h.allowedChildren=[b];ma.ListItem=b;ma.default=h},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?
|
|
369
|
+
Object.setPrototypeOf(z,x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(56)).default);
|
|
370
|
+
ka.blotName="italic";ka.tagName=["EM","I"];ma.default=ka},function(ka,ma,fa){function ea(y,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(y,f):y.__proto__=f)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function y(f,e){for(var a=0;a<e.length;a++){var b=
|
|
371
|
+
e[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(f,b.key,b)}}return function(f,e,a){e&&y(f.prototype,e);a&&y(f,a);return f}}(),x=function b(f,e,a){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return b(f,e,a)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(a)}};ka=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
|
|
372
|
+
var a=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}ea(e,f);z(e,null,[{key:"create",value:function(a){return"super"===a?document.createElement("sup"):"sub"===a?document.createElement("sub"):x(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,a)}},{key:"formats",value:function(a){if("SUB"===a.tagName)return"sub";if("SUP"===
|
|
373
|
+
a.tagName)return"super"}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(fa(6)).default);ka.blotName="script";ka.tagName=["SUB","SUP"];ma.default=ka},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,x):z.__proto__=x)}
|
|
374
|
+
Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(6)).default);ka.blotName="strike";ka.tagName="S";
|
|
375
|
+
ma.default=ka},function(ka,ma,fa){function ea(z,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);z.prototype=Object.create(x&&x.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(z,x):z.__proto__=x)}Object.defineProperty(ma,"__esModule",{value:!0});ka=function(z){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");
|
|
376
|
+
var y=(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?this:y}ea(x,z);return x}(function(z){return z&&z.__esModule?z:{default:z}}(fa(6)).default);ka.blotName="underline";ka.tagName="U";ma.default=ka},function(ka,ma,fa){function ea(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
|
|
377
|
+
typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,h){b&&e(a.prototype,b);h&&e(a,h);return a}}(),x=function n(a,b,
|
|
378
|
+
h){null===a&&(a=Function.prototype);var ba=Object.getOwnPropertyDescriptor(a,b);if(void 0===ba){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,h)}else{if("value"in ba)return ba.value;b=ba.get;return void 0===b?void 0:b.call(h)}};ka=function(a){return a&&a.__esModule?a:{default:a}}(fa(0));var y=fa(27),f=["alt","height","width"];fa=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var h=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);
|
|
379
|
+
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}ea(b,a);z(b,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,h);"string"===typeof h&&
|
|
380
|
+
n.setAttribute("src",this.sanitize(h));return n}},{key:"formats",value:function(h){return f.reduce(function(n,ba){h.hasAttribute(ba)&&(n[ba]=h.getAttribute(ba));return n},{})}},{key:"match",value:function(h){return/\.(jpe?g|gif|png)$/.test(h)||/^data:image\/.+;base64/.test(h)}},{key:"sanitize",value:function(h){return(0,y.sanitize)(h,["http","https","data"])?h:"//:0"}},{key:"value",value:function(h){return h.getAttribute("src")}}]);return b}(ka.default.Embed);fa.blotName="image";fa.tagName="IMG";
|
|
381
|
+
ma.default=fa},function(ka,ma,fa){function ea(e,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}Object.defineProperty(ma,"__esModule",{value:!0});var z=function(){function e(a,b){for(var h=0;h<b.length;h++){var n=b[h];n.enumerable=n.enumerable||!1;
|
|
382
|
+
n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,h){b&&e(a.prototype,b);h&&e(a,h);return a}}(),x=function n(a,b,h){null===a&&(a=Function.prototype);var ba=Object.getOwnPropertyDescriptor(a,b);if(void 0===ba){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,h)}else{if("value"in ba)return ba.value;b=ba.get;return void 0===b?void 0:b.call(h)}};ka=fa(4);var y=function(a){return a&&a.__esModule?a:{default:a}}(fa(27)),f=["height","width"];fa=function(a){function b(){if(!(this instanceof
|
|
383
|
+
b))throw new TypeError("Cannot call a class as a function");var h=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}ea(b,a);z(b,[{key:"format",value:function(h,n){-1<f.indexOf(h)?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,h,n)}}],
|
|
384
|
+
[{key:"create",value:function(h){var n=x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,h);n.setAttribute("frameborder","0");n.setAttribute("allowfullscreen",!0);n.setAttribute("src",this.sanitize(h));return n}},{key:"formats",value:function(h){return f.reduce(function(n,ba){h.hasAttribute(ba)&&(n[ba]=h.getAttribute(ba));return n},{})}},{key:"sanitize",value:function(h){return y.default.sanitize(h)}},{key:"value",value:function(h){return h.getAttribute("src")}}]);return b}(ka.BlockEmbed);
|
|
385
|
+
fa.blotName="video";fa.className="ql-video";fa.tagName="IFRAME";ma.default=fa},function(ka,ma,fa){function ea(n){return n&&n.__esModule?n:{default:n}}function z(n,ba){if(!(n instanceof ba))throw new TypeError("Cannot call a class as a function");}function x(n,ba){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?n:ba}function y(n,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+
|
|
386
|
+
typeof ba);n.prototype=Object.create(ba&&ba.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(n,ba):n.__proto__=ba)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.FormulaBlot=void 0;var f=function(){function n(ba,w){for(var da=0;da<w.length;da++){var ja=w[da];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ba,ja.key,ja)}}return function(ba,w,da){w&&n(ba.prototype,
|
|
387
|
+
w);da&&n(ba,da);return ba}}(),e=function ja(ba,w,da){null===ba&&(ba=Function.prototype);var aa=Object.getOwnPropertyDescriptor(ba,w);if(void 0===aa){if(ba=Object.getPrototypeOf(ba),null!==ba)return ja(ba,w,da)}else{if("value"in aa)return aa.value;w=aa.get;return void 0===w?void 0:w.call(da)}};ka=fa(35);ka=ea(ka);var a=fa(5),b=ea(a);fa=fa(9);fa=ea(fa);var h=function(ba){function w(){z(this,w);return x(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}y(w,ba);f(w,null,[{key:"create",
|
|
388
|
+
value:function(da){var ja=e(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,da);"string"===typeof da&&(window.katex.render(da,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",da));return ja}},{key:"value",value:function(da){return da.getAttribute("data-value")}}]);return w}(ka.default);h.blotName="formula";h.className="ql-formula";h.tagName="SPAN";fa=function(ba){function w(){z(this,w);var da=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
|
|
389
|
+
return da}y(w,ba);f(w,null,[{key:"register",value:function(){b.default.register(h,!0)}}]);return w}(fa.default);ma.FormulaBlot=h;ma.default=fa},function(ka,ma,fa){function ea(ba){return ba&&ba.__esModule?ba:{default:ba}}function z(ba,w){if(!(ba instanceof w))throw new TypeError("Cannot call a class as a function");}function x(ba,w){if(!ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?ba:w}function y(ba,w){if("function"!==
|
|
390
|
+
typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);ba.prototype=Object.create(w&&w.prototype,{constructor:{value:ba,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(ba,w):ba.__proto__=w)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.CodeToken=ma.CodeBlock=void 0;var f=function(){function ba(w,da){for(var ja=0;ja<da.length;ja++){var aa=da[ja];aa.enumerable=aa.enumerable||!1;aa.configurable=
|
|
391
|
+
!0;"value"in aa&&(aa.writable=!0);Object.defineProperty(w,aa.key,aa)}}return function(w,da,ja){da&&ba(w.prototype,da);ja&&ba(w,ja);return w}}(),e=function aa(w,da,ja){null===w&&(w=Function.prototype);var ca=Object.getOwnPropertyDescriptor(w,da);if(void 0===ca){if(w=Object.getPrototypeOf(w),null!==w)return aa(w,da,ja)}else{if("value"in ca)return ca.value;da=ca.get;return void 0===da?void 0:da.call(ja)}};ka=fa(0);ka=ea(ka);var a=fa(5),b=ea(a);a=fa(9);a=ea(a);fa=fa(13);var h=function(w){function da(){z(this,
|
|
392
|
+
da);return x(this,(da.__proto__||Object.getPrototypeOf(da)).apply(this,arguments))}y(da,w);f(da,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();e(da.prototype.__proto__||Object.getPrototypeOf(da.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var aa=this.domNode.textContent;if(this.cachedText!==aa){if(0<aa.trim().length||null==this.cachedText)this.domNode.innerHTML=ja(aa),this.domNode.normalize(),this.attach();
|
|
393
|
+
this.cachedText=aa}}}]);return da}(ea(fa).default);h.className="ql-syntax";var n=new ka.default.Attributor.Class("token","hljs",{scope:ka.default.Scope.INLINE});fa=function(w){function da(ja,aa){z(this,da);var ca=x(this,(da.__proto__||Object.getPrototypeOf(da)).call(this,ja,aa));if("function"!==typeof ca.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var ia=null;ca.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ia);
|
|
394
|
+
ia=setTimeout(function(){ca.highlight();ia=null},ca.options.interval)});ca.highlight();return ca}y(da,w);f(da,null,[{key:"register",value:function(){b.default.register(n,!0);b.default.register(h,!0)}}]);f(da,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(b.default.sources.USER);var aa=this.quill.getSelection();this.quill.scroll.descendants(h).forEach(function(ca){ca.highlight(ja.options.highlight)});this.quill.update(b.default.sources.SILENT);
|
|
395
|
+
null!=aa&&this.quill.setSelection(aa,b.default.sources.SILENT)}}}]);return da}(a.default);fa.DEFAULTS={highlight:function(){return null==window.hljs?null:function(w){return window.hljs.highlightAuto(w).value}}(),interval:1E3};ma.CodeBlock=h;ma.CodeToken=n;ma.default=fa},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports=
|
|
396
|
+
'<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},
|
|
397
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},
|
|
398
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},
|
|
399
|
+
function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},
|
|
400
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},
|
|
401
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},
|
|
402
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},
|
|
403
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},
|
|
404
|
+
function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},
|
|
405
|
+
function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},
|
|
406
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},
|
|
407
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},
|
|
408
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},
|
|
409
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},
|
|
410
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},
|
|
411
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},
|
|
412
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},
|
|
413
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},
|
|
414
|
+
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(ka,ma,fa){function ea(ja){return ja&&ja.__esModule?ja:{default:ja}}function z(ja,aa){if(!(ja instanceof aa))throw new TypeError("Cannot call a class as a function");}function x(ja,aa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&
|
|
415
|
+
"function"!==typeof aa?ja:aa}function y(ja,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+typeof aa);ja.prototype=Object.create(aa&&aa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,aa):ja.__proto__=aa)}Object.defineProperty(ma,"__esModule",{value:!0});ma.default=ma.BubbleTooltip=void 0;var f=function ha(aa,ca,ia){null===aa&&(aa=Function.prototype);
|
|
416
|
+
var la=Object.getOwnPropertyDescriptor(aa,ca);if(void 0===la){if(aa=Object.getPrototypeOf(aa),null!==aa)return ha(aa,ca,ia)}else{if("value"in la)return la.value;ca=la.get;return void 0===ca?void 0:ca.call(ia)}},e=function(){function aa(ca,ia){for(var ha=0;ha<ia.length;ha++){var la=ia[ha];la.enumerable=la.enumerable||!1;la.configurable=!0;"value"in la&&(la.writable=!0);Object.defineProperty(ca,la.key,la)}}return function(ca,ia,ha){ia&&aa(ca.prototype,ia);ha&&aa(ca,ha);return ca}}();ka=fa(3);ka=ea(ka);
|
|
417
|
+
var a=fa(8),b=ea(a);a=fa(43);var h=ea(a),n=fa(15);fa=fa(41);var ba=ea(fa),w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];fa=function(aa){function ca(ia,ha){z(this,ca);null!=ha.modules.toolbar&&null==ha.modules.toolbar.container&&(ha.modules.toolbar.container=w);ia=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,ia,ha));ia.quill.container.classList.add("ql-bubble");return ia}y(ca,aa);e(ca,[{key:"extendToolbar",value:function(ia){this.tooltip=new da(this.quill,this.options.bounds);
|
|
418
|
+
this.tooltip.root.appendChild(ia.container);this.buildButtons([].slice.call(ia.container.querySelectorAll("button")),ba.default);this.buildPickers([].slice.call(ia.container.querySelectorAll("select")),ba.default)}}]);return ca}(h.default);fa.DEFAULTS=(0,ka.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(aa){aa?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var da=function(aa){function ca(ia,ha){z(this,ca);var la=x(this,(ca.__proto__||Object.getPrototypeOf(ca)).call(this,
|
|
419
|
+
ia,ha));la.quill.on(b.default.events.EDITOR_CHANGE,function(na,qa,ra,ta){na===b.default.events.SELECTION_CHANGE&&(null!=qa&&0<qa.length&&ta===b.default.sources.USER?(la.show(),la.root.style.left="0px",la.root.style.width="",la.root.style.width=la.root.offsetWidth+"px",na=la.quill.getLines(qa.index,qa.length),1===na.length?la.position(la.quill.getBounds(qa)):(ra=na[na.length-1],na=la.quill.getIndex(ra),qa=Math.min(ra.length()-1,qa.index+qa.length-na),qa=la.quill.getBounds(new n.Range(na,qa)),la.position(qa))):
|
|
420
|
+
document.activeElement!==la.textbox&&la.quill.hasFocus()&&la.hide())});return la}y(ca,aa);e(ca,[{key:"listen",value:function(){var ia=this;f(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){ia.root.classList.remove("ql-editing")});this.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ia.root.classList.contains("ql-hidden")){var ha=ia.quill.getSelection();null!=
|
|
421
|
+
ha&&ia.position(ia.quill.getBounds(ha))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ia){ia=f(ca.prototype.__proto__||Object.getPrototypeOf(ca.prototype),"position",this).call(this,ia);var ha=this.root.querySelector(".ql-tooltip-arrow");ha.style.marginLeft="";if(0===ia)return ia;ha.style.marginLeft=-1*ia-ha.offsetWidth/2+"px"}}]);return ca}(a.BaseTooltip);da.TEMPLATE='<span class="ql-tooltip-arrow"></span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"></a></div>';
|
|
422
|
+
ma.BubbleTooltip=da;ma.default=fa},function(ka,ma,fa){ka.exports=fa(63)}])["default"]})}).call(this,r(455).Buffer)}}]);}).call(this || window)
|