@pdftron/pdfjs-express 8.3.0 → 8.4.0
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 +8 -0
- 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 +26 -25
- package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +12 -12
- package/public/core/IOSPartRetriever.chunk.js +2 -2
- package/public/core/LocalPartRetriever.chunk.js +4 -4
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +16 -16
- 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 +32 -32
- package/public/core/WinRTPartRetriever.chunk.js +2 -2
- package/public/core/external/pikaday.css +1 -1
- package/public/core/external/pikaday.override.css +105 -0
- package/public/core/external/webcomponents-bundle.js +370 -0
- package/public/core/legacyOffice/LegacyOfficeWorker.js +1 -1
- package/public/core/pdfjs/PDFJSDocumentType.js +820 -751
- package/public/core/pdfjs/pdf.worker.js +75 -74
- package/public/core/pdfjs/pikaday.chunk.js +41 -0
- package/public/core/pdfjs/vendors.pikaday.chunk.js +154 -0
- 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 -34
- package/public/core/vendors.pako.chunk.js +80 -80
- package/public/core/vendors.quill.chunk.js +421 -421
- package/public/core/webviewer-core.min.js +2670 -2591
- package/public/ui/chunks/10.chunk.js +1 -1
- package/public/ui/chunks/100.chunk.js +1 -1
- package/public/ui/chunks/101.chunk.js +1 -1
- package/public/ui/chunks/102.chunk.js +1 -1
- package/public/ui/chunks/103.chunk.js +1 -1
- package/public/ui/chunks/104.chunk.js +1 -1
- package/public/ui/chunks/105.chunk.js +1 -1
- package/public/ui/chunks/105.chunk.js.map +1 -1
- package/public/ui/chunks/106.chunk.js +1 -1
- package/public/ui/chunks/106.chunk.js.map +1 -1
- package/public/ui/chunks/107.chunk.js +1 -1
- package/public/ui/chunks/107.chunk.js.map +1 -1
- package/public/ui/chunks/108.chunk.js +1 -1
- package/public/ui/chunks/108.chunk.js.map +1 -1
- package/public/ui/chunks/109.chunk.js +1 -1
- package/public/ui/chunks/109.chunk.js.map +1 -1
- package/public/ui/chunks/11.chunk.js +1 -1
- package/public/ui/chunks/110.chunk.js +1 -1
- package/public/ui/chunks/110.chunk.js.map +1 -1
- package/public/ui/chunks/111.chunk.js +1 -1
- package/public/ui/chunks/111.chunk.js.map +1 -1
- package/public/ui/chunks/112.chunk.js +1 -1
- package/public/ui/chunks/112.chunk.js.map +1 -1
- package/public/ui/chunks/113.chunk.js +1 -1
- package/public/ui/chunks/113.chunk.js.map +1 -1
- package/public/ui/chunks/114.chunk.js +1 -1
- package/public/ui/chunks/114.chunk.js.map +1 -1
- package/public/ui/chunks/115.chunk.js +1 -1
- package/public/ui/chunks/115.chunk.js.map +1 -1
- package/public/ui/chunks/116.chunk.js +1 -1
- package/public/ui/chunks/116.chunk.js.map +1 -1
- package/public/ui/chunks/117.chunk.js +1 -1
- package/public/ui/chunks/117.chunk.js.map +1 -1
- package/public/ui/chunks/118.chunk.js +1 -1
- package/public/ui/chunks/118.chunk.js.map +1 -1
- package/public/ui/chunks/119.chunk.js +1 -1
- package/public/ui/chunks/119.chunk.js.map +1 -1
- package/public/ui/chunks/12.chunk.js +1 -1
- package/public/ui/chunks/120.chunk.js +1 -1
- package/public/ui/chunks/120.chunk.js.map +1 -1
- package/public/ui/chunks/121.chunk.js +1 -1
- package/public/ui/chunks/121.chunk.js.map +1 -1
- package/public/ui/chunks/122.chunk.js +1 -1
- package/public/ui/chunks/122.chunk.js.map +1 -1
- package/public/ui/chunks/123.chunk.js +1 -1
- package/public/ui/chunks/123.chunk.js.map +1 -1
- package/public/ui/chunks/124.chunk.js +1 -1
- package/public/ui/chunks/124.chunk.js.map +1 -1
- package/public/ui/chunks/125.chunk.js +1 -1
- package/public/ui/chunks/125.chunk.js.map +1 -1
- package/public/ui/chunks/126.chunk.js +1 -1
- package/public/ui/chunks/126.chunk.js.map +1 -1
- package/public/ui/chunks/127.chunk.js +1 -1
- package/public/ui/chunks/127.chunk.js.map +1 -1
- package/public/ui/chunks/128.chunk.js +1 -1
- package/public/ui/chunks/128.chunk.js.map +1 -1
- package/public/ui/chunks/129.chunk.js +1 -1
- package/public/ui/chunks/129.chunk.js.map +1 -1
- package/public/ui/chunks/13.chunk.js +1 -1
- package/public/ui/chunks/130.chunk.js +1 -1
- package/public/ui/chunks/130.chunk.js.map +1 -1
- package/public/ui/chunks/131.chunk.js +1 -1
- package/public/ui/chunks/131.chunk.js.map +1 -1
- package/public/ui/chunks/132.chunk.js +1 -1
- package/public/ui/chunks/132.chunk.js.map +1 -1
- package/public/ui/chunks/133.chunk.js +1 -1
- package/public/ui/chunks/133.chunk.js.map +1 -1
- package/public/ui/chunks/134.chunk.js +1 -1
- package/public/ui/chunks/134.chunk.js.map +1 -1
- package/public/ui/chunks/135.chunk.js +1 -1
- package/public/ui/chunks/135.chunk.js.map +1 -1
- package/public/ui/chunks/136.chunk.js +1 -1
- package/public/ui/chunks/136.chunk.js.map +1 -1
- package/public/ui/chunks/137.chunk.js +1 -1
- package/public/ui/chunks/137.chunk.js.map +1 -1
- package/public/ui/chunks/138.chunk.js +1 -1
- package/public/ui/chunks/138.chunk.js.map +1 -1
- package/public/ui/chunks/139.chunk.js +1 -1
- package/public/ui/chunks/139.chunk.js.map +1 -1
- package/public/ui/chunks/14.chunk.js +1 -1
- package/public/ui/chunks/140.chunk.js +1 -1
- package/public/ui/chunks/140.chunk.js.map +1 -1
- package/public/ui/chunks/141.chunk.js +1 -1
- package/public/ui/chunks/141.chunk.js.map +1 -1
- package/public/ui/chunks/142.chunk.js +1 -1
- package/public/ui/chunks/142.chunk.js.map +1 -1
- package/public/ui/chunks/143.chunk.js +1 -1
- package/public/ui/chunks/143.chunk.js.map +1 -1
- package/public/ui/chunks/144.chunk.js +1 -1
- package/public/ui/chunks/144.chunk.js.map +1 -1
- package/public/ui/chunks/145.chunk.js +1 -1
- package/public/ui/chunks/145.chunk.js.map +1 -1
- package/public/ui/chunks/15.chunk.js +1 -1
- package/public/ui/chunks/16.chunk.js +1 -1
- package/public/ui/chunks/17.chunk.js +1 -1
- package/public/ui/chunks/18.chunk.js +1 -1
- package/public/ui/chunks/19.chunk.js +1 -1
- package/public/ui/chunks/20.chunk.js +1 -1
- package/public/ui/chunks/21.chunk.js +1 -1
- package/public/ui/chunks/22.chunk.js +1 -1
- package/public/ui/chunks/23.chunk.js +1 -1
- package/public/ui/chunks/24.chunk.js +1 -1
- package/public/ui/chunks/25.chunk.js +1 -1
- package/public/ui/chunks/26.chunk.js +1 -1
- package/public/ui/chunks/27.chunk.js +1 -1
- package/public/ui/chunks/28.chunk.js +1 -1
- package/public/ui/chunks/29.chunk.js +1 -1
- package/public/ui/chunks/29.chunk.js.map +1 -1
- package/public/ui/chunks/30.chunk.js +1 -1
- package/public/ui/chunks/30.chunk.js.map +1 -1
- package/public/ui/chunks/31.chunk.js +1 -1
- package/public/ui/chunks/31.chunk.js.map +1 -1
- package/public/ui/chunks/32.chunk.js +1 -1
- package/public/ui/chunks/33.chunk.js +1 -1
- package/public/ui/chunks/34.chunk.js +1 -1
- package/public/ui/chunks/35.chunk.js +1 -1
- package/public/ui/chunks/36.chunk.js +1 -1
- package/public/ui/chunks/37.chunk.js +1 -1
- package/public/ui/chunks/38.chunk.js +1 -1
- package/public/ui/chunks/39.chunk.js +1 -1
- package/public/ui/chunks/4.chunk.js +1 -1
- package/public/ui/chunks/40.chunk.js +1 -1
- package/public/ui/chunks/41.chunk.js +1 -1
- package/public/ui/chunks/42.chunk.js +1 -1
- package/public/ui/chunks/43.chunk.js +1 -1
- package/public/ui/chunks/44.chunk.js +1 -1
- package/public/ui/chunks/45.chunk.js +1 -1
- package/public/ui/chunks/46.chunk.js +1 -1
- package/public/ui/chunks/47.chunk.js +1 -1
- package/public/ui/chunks/48.chunk.js +1 -1
- package/public/ui/chunks/49.chunk.js +1 -1
- package/public/ui/chunks/5.chunk.js +1 -1
- package/public/ui/chunks/50.chunk.js +1 -1
- package/public/ui/chunks/51.chunk.js +1 -1
- package/public/ui/chunks/52.chunk.js +1 -1
- package/public/ui/chunks/53.chunk.js +1 -1
- package/public/ui/chunks/54.chunk.js +1 -1
- package/public/ui/chunks/55.chunk.js +1 -1
- package/public/ui/chunks/56.chunk.js +1 -1
- package/public/ui/chunks/57.chunk.js +1 -1
- package/public/ui/chunks/58.chunk.js +1 -1
- package/public/ui/chunks/59.chunk.js +1 -1
- package/public/ui/chunks/6.chunk.js +1 -1
- package/public/ui/chunks/60.chunk.js +1 -1
- package/public/ui/chunks/61.chunk.js +1 -1
- package/public/ui/chunks/61.chunk.js.map +1 -1
- package/public/ui/chunks/62.chunk.js +1 -1
- package/public/ui/chunks/63.chunk.js +1 -1
- package/public/ui/chunks/64.chunk.js +1 -1
- package/public/ui/chunks/65.chunk.js +1 -1
- package/public/ui/chunks/66.chunk.js +1 -1
- package/public/ui/chunks/67.chunk.js +1 -1
- package/public/ui/chunks/68.chunk.js +1 -1
- package/public/ui/chunks/69.chunk.js +1 -1
- package/public/ui/chunks/7.chunk.js +1 -1
- package/public/ui/chunks/70.chunk.js +1 -1
- package/public/ui/chunks/71.chunk.js +1 -1
- package/public/ui/chunks/71.chunk.js.map +1 -1
- package/public/ui/chunks/72.chunk.js +1 -1
- package/public/ui/chunks/73.chunk.js +1 -1
- package/public/ui/chunks/74.chunk.js +1 -1
- package/public/ui/chunks/75.chunk.js +1 -1
- package/public/ui/chunks/76.chunk.js +1 -1
- package/public/ui/chunks/77.chunk.js +1 -1
- package/public/ui/chunks/78.chunk.js +1 -1
- package/public/ui/chunks/79.chunk.js +1 -1
- package/public/ui/chunks/8.chunk.js +1 -1
- package/public/ui/chunks/80.chunk.js +1 -1
- package/public/ui/chunks/81.chunk.js +1 -1
- package/public/ui/chunks/81.chunk.js.map +1 -1
- package/public/ui/chunks/82.chunk.js +1 -1
- package/public/ui/chunks/83.chunk.js +1 -1
- package/public/ui/chunks/84.chunk.js +1 -1
- package/public/ui/chunks/85.chunk.js +1 -1
- package/public/ui/chunks/86.chunk.js +1 -1
- package/public/ui/chunks/87.chunk.js +1 -1
- package/public/ui/chunks/88.chunk.js +1 -1
- package/public/ui/chunks/89.chunk.js +1 -1
- package/public/ui/chunks/9.chunk.js +1 -1
- package/public/ui/chunks/90.chunk.js +1 -1
- package/public/ui/chunks/91.chunk.js +1 -1
- package/public/ui/chunks/92.chunk.js +1 -1
- package/public/ui/chunks/93.chunk.js +1 -1
- package/public/ui/chunks/94.chunk.js +1 -1
- package/public/ui/chunks/95.chunk.js +1 -1
- package/public/ui/chunks/96.chunk.js +1 -1
- package/public/ui/chunks/97.chunk.js +1 -1
- package/public/ui/chunks/98.chunk.js +1 -1
- package/public/ui/chunks/99.chunk.js +1 -1
- package/public/ui/chunks/mention.chunk.css +1 -1
- package/public/ui/chunks/mention.chunk.css.map +1 -1
- package/public/ui/chunks/mention.chunk.js +1 -1
- package/public/ui/chunks/vendors.html2canvas.chunk.js +1 -1
- package/public/ui/chunks/vendors.mention.chunk.js +1 -1
- package/public/ui/chunks/vendors.mention.chunk.js.map +1 -1
- package/public/ui/i18n/translation-bn.json +826 -0
- package/public/ui/i18n/translation-de.json +71 -5
- package/public/ui/i18n/translation-el.json +826 -0
- package/public/ui/i18n/translation-en.json +71 -5
- package/public/ui/i18n/translation-es.json +71 -5
- package/public/ui/i18n/translation-fr.json +71 -5
- package/public/ui/i18n/translation-hi.json +826 -0
- package/public/ui/i18n/translation-id.json +826 -0
- package/public/ui/i18n/translation-it.json +71 -5
- package/public/ui/i18n/translation-ja.json +93 -25
- package/public/ui/i18n/translation-ko.json +71 -5
- package/public/ui/i18n/translation-ms.json +826 -0
- package/public/ui/i18n/translation-nl.json +71 -5
- package/public/ui/i18n/translation-pt_br.json +71 -5
- package/public/ui/i18n/translation-ru.json +71 -5
- package/public/ui/i18n/translation-tr.json +826 -0
- package/public/ui/i18n/translation-uk.json +826 -0
- package/public/ui/i18n/translation-vi.json +102 -52
- package/public/ui/i18n/translation-zh_cn.json +74 -8
- package/public/ui/i18n/translation-zh_tw.json +71 -5
- package/public/ui/style.css +116 -105
- package/public/ui/style.css.map +1 -1
- package/public/ui/webviewer-ui.min.js +27 -18
- package/public/ui/webviewer-ui.min.js.map +1 -1
- package/webviewer.min.js +1 -1
- package/public/ui/chunks/146.chunk.js +0 -2
- package/public/ui/chunks/146.chunk.js.map +0 -1
|
@@ -1,422 +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],{
|
|
3
|
-
|
|
4
|
-
Format:
|
|
5
|
-
typeof
|
|
6
|
-
if("abstract"===y.blotName)throw new x("Cannot register abstract class");e[y.blotName||y.attrName]=y;"string"===typeof y.keyName?f[y.keyName]=y:(null!=y.className&&(a[y.className]=y),null!=y.tagName&&(Array.isArray(y.tagName)?y.tagName=y.tagName.map(function(
|
|
7
|
-
{__proto__:[]}instanceof Array&&function(
|
|
8
|
-
var f={},a={},b={},e={};
|
|
9
|
-
Node||
|
|
10
|
-
b?this:this.push({"delete":b})};
|
|
11
|
-
typeof
|
|
12
|
-
return this};
|
|
13
|
-
e){return e.insert?b+f.length(e):e.delete?b-e.delete:b},0)};
|
|
14
|
-
null==
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{},
|
|
19
|
-
|
|
20
|
-
value:e.newValue,writable:!0}):b[e.name]=e.newValue}function
|
|
21
|
-
a=Object.getOwnPropertyDescriptor;
|
|
22
|
-
function(ka,
|
|
23
|
-
Object.create(
|
|
24
|
-
|
|
25
|
-
ia
|
|
26
|
-
{key:"delta",value:function(){return(new
|
|
27
|
-
|
|
28
|
-
f(
|
|
29
|
-
{key:"insertAt",value:function(
|
|
30
|
-
|
|
31
|
-
value:function(
|
|
32
|
-
"removeChild",this).call(this,
|
|
33
|
-
"break";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
function(
|
|
40
|
-
}}(),
|
|
41
|
-
|
|
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 y.default;this.scroll=
|
|
43
|
-
this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(y.default.events.EDITOR_CHANGE,function(
|
|
44
|
-
|
|
45
|
-
{key:"register",value:function(
|
|
46
|
-
typeof
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
void 0!==arguments[0]?arguments[0]:this.getSelection(!0),
|
|
52
|
-
0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,
|
|
53
|
-
void 0!==arguments[0]?arguments[0]:0,
|
|
54
|
-
|
|
55
|
-
arguments)}},{key:"pasteHTML",value:function(
|
|
56
|
-
pa
|
|
57
|
-
|
|
58
|
-
this,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
ha=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
function(ka,
|
|
66
|
-
!0;"value"in
|
|
67
|
-
["selectionchange","mousedown","mouseup","click"].forEach(function(a){document.addEventListener(a,function(){for(var b=arguments.length,e=Array(b),
|
|
68
|
-
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");e=!e||"object"!==typeof e&&"function"!==typeof e?this:e;e.listeners={};e.on("error",x.error);return e}
|
|
69
|
-
[]).forEach(function(y){var
|
|
70
|
-
SILENT:"silent",USER:"user"};
|
|
71
|
-
function
|
|
72
|
-
e.prototype)return!1;if(f(b)){if(!f(e))return!1;b=
|
|
73
|
-
e,
|
|
74
|
-
function(x){return x.name})};z.prototype.add=function(
|
|
75
|
-
x)&&x?x:""};return z}();
|
|
76
|
-
typeof
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"code";ha.tagName="CODE";
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"replace",this).call(this,
|
|
84
|
-
ha;
|
|
85
|
-
|
|
86
|
-
"function"===typeof Symbol&&
|
|
87
|
-
}}(),a=function(){function ma
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
{};Object.keys(
|
|
93
|
-
f(
|
|
94
|
-
typeof
|
|
95
|
-
"\n");this.scroll.insertAt(
|
|
96
|
-
this.getText(
|
|
97
|
-
arguments[2]:void 0,
|
|
98
|
-
|
|
99
|
-
Text&&(
|
|
100
|
-
}}(),a=function(){function
|
|
101
|
-
0;
|
|
102
|
-
function(na
|
|
103
|
-
|
|
104
|
-
this;this.emitter.listenDOM("mousedown",document.body,function(){
|
|
105
|
-
this.cursor.textNode){var
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
this.getNativeRange();return null==
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
value:function(
|
|
113
|
-
|
|
114
|
-
2<arguments.length&&void 0!==arguments[2]?arguments[2]:
|
|
115
|
-
this.lastRange);if(!(0,
|
|
116
|
-
typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);x.prototype=Object.create(f&&f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(x,f):x.__proto__=f)}Object.defineProperty(
|
|
117
|
-
e.key,e)}}return function(f,a,b){a&&x(f.prototype,a);b&&x(f,b);return f}}(),
|
|
118
|
-
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}
|
|
119
|
-
|
|
120
|
-
b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(
|
|
121
|
-
|
|
122
|
-
0);void 0===
|
|
123
|
-
b=
|
|
124
|
-
e)})};a.prototype.optimize=function(b){f.prototype.optimize.call(this,b);if(0===this.children.length)if(null!=this.statics.defaultChild){var e=x.create(this.statics.defaultChild);this.appendChild(e);e.optimize(b)}else this.remove()};a.prototype.path=function(b,e){void 0===e&&(e=!1);var
|
|
125
|
-
function(b){b instanceof a&&b.moveChildren(this);f.prototype.replace.call(this,b)};a.prototype.split=function(b,e){void 0===e&&(e=!1);if(!e){if(0===b)return this;if(b===this.length())return this.next}var
|
|
126
|
-
e.domNode&&"childList"===
|
|
127
|
-
1:-1}).forEach(function(
|
|
128
|
-
a}f(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(
|
|
129
|
-
e):e&&(null==
|
|
130
|
-
this.attributes.build()};a.prototype.wrap=function(b,e){b=f.prototype.wrap.call(this,b,e);b instanceof a&&b.statics.scope===this.statics.scope&&this.attributes.move(b);return b};return a}(
|
|
131
|
-
f?Object.create(f):(a.prototype=f.prototype,new a)}}();Object.defineProperty(
|
|
132
|
-
return[this.parent.domNode,a]};x.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f};x.scope=z.Scope.INLINE_BLOT;return x}(
|
|
133
|
-
f[
|
|
134
|
-
b:void 0}}},iterator:function(f){return new
|
|
135
|
-
(e.attributes=a.attributes);"number"===typeof a.retain?e.retain=f:e.insert="string"===typeof a.insert?a.insert.substr(b,f):a.insert;return e}return{retain:Infinity}};
|
|
136
|
-
|
|
137
|
-
new a(function(
|
|
138
|
-
Object.create(
|
|
139
|
-
|
|
140
|
-
(
|
|
141
|
-
typeof b&&"[object Array]"===z(b)};
|
|
142
|
-
|
|
143
|
-
[],
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
{key:"deleteAt",value:function(
|
|
147
|
-
-1<
|
|
148
|
-
na
|
|
149
|
-
e.default.Scope.INLINE_BLOT){var
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"update",this).call(this,
|
|
153
|
-
function
|
|
154
|
-
function f(
|
|
155
|
-
this.quill.setSelection(
|
|
156
|
-
0<Object.keys(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
0===Ga
|
|
161
|
-
"object"===("undefined"===typeof
|
|
162
|
-
function(
|
|
163
|
-
}}(),
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},a);
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
prefix:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
!1,
|
|
173
|
-
"list empty enter":{key:
|
|
174
|
-
|
|
175
|
-
this.quill.setSelection(
|
|
176
|
-
" ",
|
|
177
|
-
|
|
178
|
-
enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(
|
|
179
|
-
}}(),
|
|
180
|
-
f=(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
null!=this.parent){var
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
(Object.setPrototypeOf?Object.setPrototypeOf(
|
|
187
|
-
typeof f&&"function"!==typeof f?this:f}
|
|
188
|
-
"__esModule",{value:!0});
|
|
189
|
-
|
|
190
|
-
Object.getPrototypeOf(b.prototype),"value",this).call(this,e);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+e.split(",").map(function(
|
|
191
|
-
a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}function z(f,a){var b=document.createElement("a");b.href=f;f=b.href.slice(0,b.href.indexOf(":"));return-1<a.indexOf(f)}Object.defineProperty(
|
|
192
|
-
var
|
|
193
|
-
b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
!1;
|
|
197
|
-
this.select);this.label.addEventListener("mousedown",function(){e.togglePicker()});this.label.addEventListener("keydown",function(
|
|
198
|
-
b=this.options;b.setAttribute("aria-hidden","true"!==b.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(b){var e=this,
|
|
199
|
-
!0);
|
|
200
|
-
"true");e.tabIndex="-1";e.id="ql-picker-options-"+f;f+=1;this.label.setAttribute("aria-controls",e.id);this.options=e;[].slice.call(this.select.options).forEach(function(
|
|
201
|
-
{key:"escape",value:function(){var b=this;this.close();setTimeout(function(){return b.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(b){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,
|
|
202
|
-
this.select.selectedIndex=[].indexOf.call(b.parentNode.children,b),b.hasAttribute("data-value")?this.label.setAttribute("data-value",b.getAttribute("data-value")):this.label.removeAttribute("data-value"),b.hasAttribute("data-label")?this.label.setAttribute("data-label",b.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":
|
|
203
|
-
e.initEvent("change",!0,!0),this.select.dispatchEvent(e)),this.close())))}},{key:"update",value:function(){var b=void 0;if(-1<this.select.selectedIndex){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];b=this.select.options[this.select.selectedIndex];this.selectItem(e)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=b&&b!==this.select.querySelector("option[selected]"))}}]);return a}();
|
|
204
|
-
|
|
205
|
-
"blots/embed":e.default,"blots/inline":
|
|
206
|
-
enumerable:!0,configurable:!0});z.create=function(
|
|
207
|
-
z.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};z.prototype.clone=function(){return
|
|
208
|
-
|
|
209
|
-
this.split(
|
|
210
|
-
(
|
|
211
|
-
{value:!0});var
|
|
212
|
-
b.concat(e).concat(
|
|
213
|
-
e){b[e]=a.attributes[e].value(a.domNode);return b},{})};return f}();
|
|
214
|
-
(a.prototype=f.prototype,new a)}}();Object.defineProperty(
|
|
215
|
-
0===f.classList.length&&f.removeAttribute("class")};x.prototype.value=function(f){var a=(
|
|
216
|
-
f){for(var a in f)f.hasOwnProperty(a)&&(x[a]=f[a])};return function(x,f){function a(){this.constructor=x}
|
|
217
|
-
a;return!0};x.prototype.remove=function(f){f.style[
|
|
218
|
-
f)}}return function(z,
|
|
219
|
-
{});return this.modules[z]}}]);return
|
|
220
|
-
writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(
|
|
221
|
-
if(void 0===y){if(e=Object.getPrototypeOf(e),null!==e)return
|
|
222
|
-
!1);[].slice.call(
|
|
223
|
-
value:function(
|
|
224
|
-
this.parent.insertBefore(f.default.create(
|
|
225
|
-
|
|
226
|
-
ha(26);ha=new
|
|
227
|
-
"dir",z);ha=new
|
|
228
|
-
a):f.__proto__=a)}Object.defineProperty(
|
|
229
|
-
b,e)}else{if("value"in
|
|
230
|
-
return!e||"object"!==typeof e&&"function"!==typeof e?this:e}
|
|
231
|
-
"ql-size",{scope:ha.default.Scope.INLINE,whitelist:["small","large","huge"]});ha=new ha.default.Attributor.Style("size","font-size",{scope:ha.default.Scope.INLINE,whitelist:["10px","18px","32px"]});
|
|
232
|
-
right:ha(90)},formula:ha(91),header:{1:ha(92),2:ha(93)},italic:ha(94),image:ha(95),indent:{"+1":ha(96),"-1":ha(97)},link:ha(98),list:{ordered:ha(99),bullet:ha(100),check:ha(101)},script:{sub:ha(102),"super":ha(103)},strike:ha(104),underline:ha(105),video:ha(106)}},function(ka,
|
|
233
|
-
function
|
|
234
|
-
b.default.query(
|
|
235
|
-
|
|
236
|
-
shortKey:!0},
|
|
237
|
-
{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(
|
|
238
|
-
{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(
|
|
239
|
-
|
|
240
|
-
enumerable:!1,writable:!0,configurable:!0}});
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
"monospace"],
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
"#000000");return new
|
|
247
|
-
image:function(){var
|
|
248
|
-
|
|
249
|
-
function(
|
|
250
|
-
"");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+
|
|
251
|
-
this.linkRange?(this.quill.formatText(this.linkRange,"link",
|
|
252
|
-
(
|
|
253
|
-
"__esModule",{value:!0});
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
a}f(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(
|
|
258
|
-
a.prototype.deleteAt=function(b,e){this.update();0===b&&e===this.length()?this.children.forEach(function(
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
b.map(function(
|
|
262
|
-
|
|
263
|
-
x&&x.apply(this,arguments)||this}
|
|
264
|
-
a,b,e,
|
|
265
|
-
function(){var
|
|
266
|
-
if(f.tagName!==a)return
|
|
267
|
-
f))};x.prototype.update=function(f,a){navigator.userAgent.match(/Trident/)?this.build():
|
|
268
|
-
null===x?Object.create(x):(f.prototype=x.prototype,new f)}}();Object.defineProperty(
|
|
269
|
-
|
|
270
|
-
return f}
|
|
271
|
-
x.prototype.optimize=function(f){
|
|
272
|
-
this.text=this.statics.value(this.domNode);return f};x.prototype.update=function(f){var a=this;f.some(function(b){return"characterData"===b.type&&b.target===a.domNode})&&(this.text=this.statics.value(this.domNode))};x.prototype.value=function(){return this.text};x.blotName="text";x.scope=z.Scope.INLINE_BLOT;return x}(
|
|
273
|
-
DOMTokenList.prototype.toggle=function(ha,
|
|
274
|
-
"find",{value:function(ha,
|
|
275
|
-
if(0>
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
y=Math.min(
|
|
280
|
-
|
|
281
|
-
for(var
|
|
282
|
-
|
|
283
|
-
h
|
|
284
|
-
|
|
285
|
-
1===
|
|
286
|
-
return z}
|
|
287
|
-
function(
|
|
288
|
-
function(x,f){x=this._events[
|
|
289
|
-
f,a,b),!0;case 5:return
|
|
290
|
-
Array(
|
|
291
|
-
|
|
292
|
-
new
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
Node.ELEMENT_NODE?{}:
|
|
296
|
-
new
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
e(
|
|
301
|
-
Symbol&&
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
return
|
|
305
|
-
|
|
306
|
-
!0);
|
|
307
|
-
this.container.innerText;this.container.innerHTML="";return(new
|
|
308
|
-
arguments[2]:
|
|
309
|
-
this.container.focus();this.quill.selection.update(
|
|
310
|
-
break;case Node.ELEMENT_NODE:
|
|
311
|
-
typeof f);x.prototype=Object.create(f&&f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(x,f):x.__proto__=f)}Object.defineProperty(
|
|
312
|
-
b){null===f&&(f=Function.prototype);var
|
|
313
|
-
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}
|
|
314
|
-
|
|
315
|
-
enumerable:!1,writable:!0,configurable:!0}});
|
|
316
|
-
|
|
317
|
-
Object(
|
|
318
|
-
!0);Object.defineProperty(
|
|
319
|
-
f(ia
|
|
320
|
-
[].forEach.call(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
"string"===typeof
|
|
325
|
-
{container:null,handlers:{clean:function(){var
|
|
326
|
-
this.quill.format("direction",ba
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
"__esModule",{value:!0});var
|
|
330
|
-
void 0:b.call(e)}};
|
|
331
|
-
"buildItem",this).call(this,e);
|
|
332
|
-
return!a||"object"!==typeof a&&"function"!==typeof a?f:a}function z(f,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}Object.defineProperty(
|
|
333
|
-
|
|
334
|
-
e=
|
|
335
|
-
e.innerHTML}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(28)).default);
|
|
336
|
-
this.quill=z;this.boundsContainer=
|
|
337
|
-
|
|
338
|
-
return
|
|
339
|
-
typeof
|
|
340
|
-
!0,
|
|
341
|
-
|
|
342
|
-
null==
|
|
343
|
-
|
|
344
|
-
!1)}}}}});var
|
|
345
|
-
|
|
346
|
-
new
|
|
347
|
-
|
|
348
|
-
ha(74);
|
|
349
|
-
"attributors/class/size":y.SizeClass,"attributors/style/align":z.AlignStyle,"attributors/style/background":
|
|
350
|
-
"formats/size":y.SizeClass,"formats/blockquote":f.default,"formats/code-block":
|
|
351
|
-
"themes/bubble":
|
|
352
|
-
f):x.__proto__=f)}Object.defineProperty(
|
|
353
|
-
b)}else{if("value"in
|
|
354
|
-
value:function(b,e){if("+1"===e||"-1"===e){var
|
|
355
|
-
Object.getPrototypeOf(a.prototype),"value",this).call(this,b))||void 0}}]);return a}(
|
|
356
|
-
Object.setPrototypeOf(z,
|
|
357
|
-
|
|
358
|
-
f[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(x,b.key,b)}}return function(x,f,a){f&&
|
|
359
|
-
this:f}
|
|
360
|
-
return!
|
|
361
|
-
0;
|
|
362
|
-
|
|
363
|
-
"remove",this).call(this)}},{key:"replaceWith",value:function(
|
|
364
|
-
e.blotName="list-item";e.tagName="LI";var
|
|
365
|
-
|
|
366
|
-
{},
|
|
367
|
-
"optimize",this).call(this,
|
|
368
|
-
"replace",this).call(this,
|
|
369
|
-
Object.setPrototypeOf(z,
|
|
370
|
-
|
|
371
|
-
a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,a,b){a&&x(f.prototype,a);b&&x(f,b);return f}}(),
|
|
372
|
-
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}
|
|
373
|
-
b.tagName)return"super"}}]);return a}(function(f){return f&&f.__esModule?f:{default:f}}(ha(6)).default);
|
|
374
|
-
Object.defineProperty(
|
|
375
|
-
|
|
376
|
-
var x=(
|
|
377
|
-
typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(
|
|
378
|
-
|
|
379
|
-
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
e))throw new TypeError("Cannot call a class as a function");var
|
|
384
|
-
[{key:"create",value:function(
|
|
385
|
-
ha.blotName="video";ha.className="ql-video";ha.tagName="IFRAME";
|
|
386
|
-
typeof
|
|
387
|
-
y);
|
|
388
|
-
value:function(
|
|
389
|
-
return
|
|
390
|
-
typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);
|
|
391
|
-
!0;"value"in
|
|
392
|
-
|
|
393
|
-
this.cachedText=
|
|
394
|
-
|
|
395
|
-
null!=
|
|
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(
|
|
397
|
-
function(
|
|
398
|
-
function(
|
|
399
|
-
function(
|
|
400
|
-
function(
|
|
401
|
-
function(
|
|
402
|
-
function(
|
|
403
|
-
function(
|
|
404
|
-
function(
|
|
405
|
-
function(
|
|
406
|
-
function(
|
|
407
|
-
function(
|
|
408
|
-
function(
|
|
409
|
-
function(
|
|
410
|
-
function(
|
|
411
|
-
function(
|
|
412
|
-
function(
|
|
413
|
-
function(
|
|
414
|
-
function(
|
|
415
|
-
"function"!==typeof fa
|
|
416
|
-
var
|
|
417
|
-
var b=ha(8),e=
|
|
418
|
-
this.tooltip.root.appendChild(
|
|
419
|
-
|
|
420
|
-
document.activeElement!==
|
|
421
|
-
|
|
422
|
-
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{361:function(Ca,va,r){(function(oa){(function(la,ka){Ca.exports=ka()})("undefined"!==typeof self?self:this,function(){return function(la){function ka(da){if(ha[da])return ha[da].exports;var z=ha[da]={i:da,l:!1,exports:{}};la[da].call(z.exports,z,z.exports,ka);z.l=!0;return z.exports}var ha={};ka.m=la;ka.c=ha;ka.d=function(da,z,w){ka.o(da,z)||Object.defineProperty(da,z,{configurable:!1,enumerable:!0,get:w})};ka.n=function(da){var z=
|
|
3
|
+
da&&da.__esModule?function(){return da["default"]}:function(){return da};ka.d(z,"a",z);return z};ka.o=function(da,z){return Object.prototype.hasOwnProperty.call(da,z)};ka.p="";return ka(ka.s=109)}([function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});la=ha(17);var da=ha(18),z=ha(19),w=ha(45),x=ha(46),f=ha(47),a=ha(48),b=ha(49),e=ha(12),n=ha(32),h=ha(33),ba=ha(31);ha=ha(1);ka.default={Scope:ha.Scope,create:ha.create,find:ha.find,query:ha.query,register:ha.register,Container:la.default,
|
|
4
|
+
Format:da.default,Leaf:z.default,Embed:a.default,Scroll:w.default,Block:f.default,Inline:x.default,Text:b.default,Attributor:{Attribute:e.default,Class:n.default,Style:h.default,Store:ba.default}}},function(la,ka){function ha(h,ba){void 0===ba&&(ba=!1);return null==h?null:null!=h[ka.DATA_KEY]?h[ka.DATA_KEY].blot:ba?ha(h.parentNode,ba):null}function da(h,ba){void 0===ba&&(ba=n.ANY);if("string"===typeof h)var y=e[h]||f[h];else if(h instanceof Text||h.nodeType===Node.TEXT_NODE)y=e.text;else if("number"===
|
|
5
|
+
typeof h)h&n.LEVEL&n.BLOCK?y=e.block:h&n.LEVEL&n.INLINE&&(y=e.inline);else if(h instanceof HTMLElement){var aa=(h.getAttribute("class")||"").split(/\s+/),fa;for(fa in aa)if(y=a[aa[fa]])break;y=y||b[h.tagName]}return null==y?null:ba&n.LEVEL&y.scope&&ba&n.TYPE&y.scope?y:null}function z(){for(var h=[],ba=0;ba<arguments.length;ba++)h[ba]=arguments[ba];if(1<h.length)return h.map(function(aa){return z(aa)});var y=h[0];if("string"!==typeof y.blotName&&"string"!==typeof y.attrName)throw new x("Invalid definition");
|
|
6
|
+
if("abstract"===y.blotName)throw new x("Cannot register abstract class");e[y.blotName||y.attrName]=y;"string"===typeof y.keyName?f[y.keyName]=y:(null!=y.className&&(a[y.className]=y),null!=y.tagName&&(Array.isArray(y.tagName)?y.tagName=y.tagName.map(function(aa){return aa.toUpperCase()}):y.tagName=y.tagName.toUpperCase(),(Array.isArray(y.tagName)?y.tagName:[y.tagName]).forEach(function(aa){if(null==b[aa]||null==y.className)b[aa]=y})));return y}var w=this&&this.__extends||function(){var h=Object.setPrototypeOf||
|
|
7
|
+
{__proto__:[]}instanceof Array&&function(ba,y){ba.__proto__=y}||function(ba,y){for(var aa in y)y.hasOwnProperty(aa)&&(ba[aa]=y[aa])};return function(ba,y){function aa(){this.constructor=ba}h(ba,y);ba.prototype=null===y?Object.create(y):(aa.prototype=y.prototype,new aa)}}();Object.defineProperty(ka,"__esModule",{value:!0});var x=function(h){function ba(y){y="[Parchment] "+y;var aa=h.call(this,y)||this;aa.message=y;aa.name=aa.constructor.name;return aa}w(ba,h);return ba}(Error);ka.ParchmentError=x;
|
|
8
|
+
var f={},a={},b={},e={};ka.DATA_KEY="__blot";var n;(function(h){h[h.TYPE=3]="TYPE";h[h.LEVEL=12]="LEVEL";h[h.ATTRIBUTE=13]="ATTRIBUTE";h[h.BLOT=14]="BLOT";h[h.INLINE=7]="INLINE";h[h.BLOCK=11]="BLOCK";h[h.BLOCK_BLOT=10]="BLOCK_BLOT";h[h.INLINE_BLOT=6]="INLINE_BLOT";h[h.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";h[h.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";h[h.ANY=15]="ANY"})(n=ka.Scope||(ka.Scope={}));ka.create=function(h,ba){var y=da(h);if(null==y)throw new x("Unable to create "+h+" blot");h=h instanceof
|
|
9
|
+
Node||h.nodeType===Node.TEXT_NODE?h:y.create(ba);return new y(h,ba)};ka.find=ha;ka.query=da;ka.register=z},function(la,ka,ha){function da(b){Array.isArray(b)?this.ops=b:null!=b&&Array.isArray(b.ops)?this.ops=b.ops:this.ops=[]}var z=ha(51),w=ha(11),x=ha(3),f=ha(20),a=String.fromCharCode(0);da.prototype.insert=function(b,e){var n={};if(0===b.length)return this;n.insert=b;null!=e&&"object"===typeof e&&0<Object.keys(e).length&&(n.attributes=e);return this.push(n)};da.prototype["delete"]=function(b){return 0>=
|
|
10
|
+
b?this:this.push({"delete":b})};da.prototype.retain=function(b,e){if(0>=b)return this;b={retain:b};null!=e&&"object"===typeof e&&0<Object.keys(e).length&&(b.attributes=e);return this.push(b)};da.prototype.push=function(b){var e=this.ops.length,n=this.ops[e-1];b=x(!0,{},b);if("object"===typeof n){if("number"===typeof b["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={"delete":n["delete"]+b["delete"]},this;if("number"===typeof n["delete"]&&null!=b.insert&&(--e,n=this.ops[e-1],"object"!==
|
|
11
|
+
typeof n))return this.ops.unshift(b),this;if(w(b.attributes,n.attributes)){if("string"===typeof b.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+b.insert},"object"===typeof b.attributes&&(this.ops[e-1].attributes=b.attributes),this;if("number"===typeof b.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+b.retain},"object"===typeof b.attributes&&(this.ops[e-1].attributes=b.attributes),this}}e===this.ops.length?this.ops.push(b):this.ops.splice(e,0,b);
|
|
12
|
+
return this};da.prototype.chop=function(){var b=this.ops[this.ops.length-1];b&&b.retain&&!b.attributes&&this.ops.pop();return this};da.prototype.filter=function(b){return this.ops.filter(b)};da.prototype.forEach=function(b){this.ops.forEach(b)};da.prototype.map=function(b){return this.ops.map(b)};da.prototype.partition=function(b){var e=[],n=[];this.forEach(function(h){(b(h)?e:n).push(h)});return[e,n]};da.prototype.reduce=function(b,e){return this.ops.reduce(b,e)};da.prototype.changeLength=function(){return this.reduce(function(b,
|
|
13
|
+
e){return e.insert?b+f.length(e):e.delete?b-e.delete:b},0)};da.prototype.length=function(){return this.reduce(function(b,e){return b+f.length(e)},0)};da.prototype.slice=function(b,e){b=b||0;"number"!==typeof e&&(e=Infinity);for(var n=[],h=f.iterator(this.ops),ba=0;ba<e&&h.hasNext();){if(ba<b)var y=h.next(b-ba);else y=h.next(e-ba),n.push(y);ba+=f.length(y)}return new da(n)};da.prototype.compose=function(b){var e=f.iterator(this.ops);b=f.iterator(b.ops);var n=[],h=b.peek();if(null!=h&&"number"===typeof h.retain&&
|
|
14
|
+
null==h.attributes){for(var ba=h.retain;"insert"===e.peekType()&&e.peekLength()<=ba;)ba-=e.peekLength(),n.push(e.next());0<h.retain-ba&&b.next(h.retain-ba)}for(n=new da(n);e.hasNext()||b.hasNext();)if("insert"===b.peekType())n.push(b.next());else if("delete"===e.peekType())n.push(e.next());else{ba=Math.min(e.peekLength(),b.peekLength());var y=e.next(ba),aa=b.next(ba);if("number"===typeof aa.retain){h={};"number"===typeof y.retain?h.retain=ba:h.insert=y.insert;if(ba=f.attributes.compose(y.attributes,
|
|
15
|
+
aa.attributes,"number"===typeof y.retain))h.attributes=ba;n.push(h);if(!b.hasNext()&&w(n.ops[n.ops.length-1],h))return e=new da(e.rest()),n.concat(e).chop()}else"number"===typeof aa["delete"]&&"number"===typeof y.retain&&n.push(aa)}return n.chop()};da.prototype.concat=function(b){var e=new da(this.ops.slice());0<b.ops.length&&(e.push(b.ops[0]),e.ops=e.ops.concat(b.ops.slice(1)));return e};da.prototype.diff=function(b,e){if(this.ops===b.ops)return new da;var n=[this,b].map(function(aa){return aa.map(function(fa){if(null!=
|
|
16
|
+
fa.insert)return"string"===typeof fa.insert?fa.insert:a;throw Error("diff() called "+(aa===b?"on":"with")+" non-document");}).join("")}),h=new da;e=z(n[0],n[1],e);var ba=f.iterator(this.ops),y=f.iterator(b.ops);e.forEach(function(aa){for(var fa=aa[1].length;0<fa;){var ca=0;switch(aa[0]){case z.INSERT:ca=Math.min(y.peekLength(),fa);h.push(y.next(ca));break;case z.DELETE:ca=Math.min(fa,ba.peekLength());ba.next(ca);h["delete"](ca);break;case z.EQUAL:ca=Math.min(ba.peekLength(),y.peekLength(),fa);var ea=
|
|
17
|
+
ba.next(ca),ia=y.next(ca);if(w(ea.insert,ia.insert))h.retain(ca,f.attributes.diff(ea.attributes,ia.attributes));else h.push(ia)["delete"](ca)}fa-=ca}});return h.chop()};da.prototype.eachLine=function(b,e){e=e||"\n";for(var n=f.iterator(this.ops),h=new da,ba=0;n.hasNext();){if("insert"!==n.peekType())return;var y=n.peek(),aa=f.length(y)-n.peekLength();y="string"===typeof y.insert?y.insert.indexOf(e,aa)-aa:-1;if(0>y)h.push(n.next());else if(0<y)h.push(n.next(y));else{if(!1===b(h,n.next(1).attributes||
|
|
18
|
+
{},ba))return;ba+=1;h=new da}}0<h.length()&&b(h,{},ba)};da.prototype.transform=function(b,e){e=!!e;if("number"===typeof b)return this.transformPosition(b,e);var n=f.iterator(this.ops);b=f.iterator(b.ops);for(var h=new da;n.hasNext()||b.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===b.peekType())if("insert"===b.peekType())h.push(b.next());else{var ba=Math.min(n.peekLength(),b.peekLength()),y=n.next(ba),aa=b.next(ba);y["delete"]||(aa["delete"]?h.push(aa):h.retain(ba,f.attributes.transform(y.attributes,
|
|
19
|
+
aa.attributes,e)))}else h.retain(f.length(n.next()));return h.chop()};da.prototype.transformPosition=function(b,e){e=!!e;for(var n=f.iterator(this.ops),h=0;n.hasNext()&&h<=b;){var ba=n.peekLength(),y=n.peekType();n.next();"delete"===y?b-=Math.min(ba,b-h):("insert"===y&&(h<b||!e)&&(b+=ba),h+=ba)}return b};la.exports=da},function(la){function ka(b,e){if("__proto__"===e){if(!w.call(b,e))return;if(a)return a(b,e).value}return b[e]}function ha(b,e){f&&"__proto__"===e.name?f(b,e.name,{enumerable:!0,configurable:!0,
|
|
20
|
+
value:e.newValue,writable:!0}):b[e.name]=e.newValue}function da(b){if(!b||"[object Object]"!==x.call(b))return!1;var e=w.call(b,"constructor"),n=b.constructor&&b.constructor.prototype&&w.call(b.constructor.prototype,"isPrototypeOf");if(b.constructor&&!e&&!n)return!1;for(var h in b);return"undefined"===typeof h||w.call(b,h)}function z(b){return"function"===typeof Array.isArray?Array.isArray(b):"[object Array]"===x.call(b)}var w=Object.prototype.hasOwnProperty,x=Object.prototype.toString,f=Object.defineProperty,
|
|
21
|
+
a=Object.getOwnPropertyDescriptor;la.exports=function e(){var n,h,ba=arguments[0],y=1,aa=arguments.length,fa=!1;"boolean"===typeof ba&&(fa=ba,ba=arguments[1]||{},y=2);if(null==ba||"object"!==typeof ba&&"function"!==typeof ba)ba={};for(;y<aa;++y){var ca=arguments[y];if(null!=ca)for(n in ca){var ea=ka(ba,n);var ia=ka(ca,n);ba!==ia&&(fa&&ia&&(da(ia)||(h=z(ia)))?(h?(h=!1,ea=ea&&z(ea)?ea:[]):ea=ea&&da(ea)?ea:{},ha(ba,{name:n,newValue:e(fa,ea,ia)})):"undefined"!==typeof ia&&ha(ba,{name:n,newValue:ia}))}}return ba}},
|
|
22
|
+
function(la,ka,ha){function da(fa){return fa&&fa.__esModule?fa:{default:fa}}function z(fa,ca){if(!(fa instanceof ca))throw new TypeError("Cannot call a class as a function");}function w(fa,ca){if(!fa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&"function"!==typeof ca?fa:ca}function x(fa,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);fa.prototype=
|
|
23
|
+
Object.create(ca&&ca.prototype,{constructor:{value:fa,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(fa,ca):fa.__proto__=ca)}function f(fa){var ca=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==fa)return ca;"function"===typeof fa.formats&&(ca=(0,e.default)(ca,fa.formats()));return null==fa.parent||"scroll"==fa.parent.blotName||fa.parent.statics.scope!==fa.statics.scope?ca:f(fa.parent,ca)}Object.defineProperty(ka,"__esModule",{value:!0});
|
|
24
|
+
ka.default=ka.BlockEmbed=ka.bubbleFormats=void 0;var a=function(){function fa(ca,ea){for(var ia=0;ia<ea.length;ia++){var ja=ea[ia];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,ja.key,ja)}}return function(ca,ea,ia){ea&&fa(ca.prototype,ea);ia&&fa(ca,ia);return ca}}(),b=function ja(ca,ea,ia){null===ca&&(ca=Function.prototype);var na=Object.getOwnPropertyDescriptor(ca,ea);if(void 0===na){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,
|
|
25
|
+
ea,ia)}else{if("value"in na)return na.value;ea=na.get;return void 0===ea?void 0:ea.call(ia)}};la=ha(3);var e=da(la);la=ha(2);var n=da(la);la=ha(0);var h=da(la);la=ha(16);var ba=da(la);la=ha(6);la=da(la);ha=ha(7);ha=da(ha);var y=function(ca){function ea(){z(this,ea);return w(this,(ea.__proto__||Object.getPrototypeOf(ea)).apply(this,arguments))}x(ea,ca);a(ea,[{key:"attach",value:function(){b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"attach",this).call(this);this.attributes=new h.default.Attributor.Store(this.domNode)}},
|
|
26
|
+
{key:"delta",value:function(){return(new n.default).insert(this.value(),(0,e.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ia,ja){ia=h.default.query(ia,h.default.Scope.BLOCK_ATTRIBUTE);null!=ia&&this.attributes.attribute(ia,ja)}},{key:"formatAt",value:function(ia,ja,na,ma){this.format(na,ma)}},{key:"insertAt",value:function(ia,ja,na){"string"===typeof ja&&ja.endsWith("\n")?(na=h.default.create(aa.blotName),this.parent.insertBefore(na,0===ia?this:this.next),na.insertAt(0,
|
|
27
|
+
ja.slice(0,-1))):b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ia,ja,na)}}]);return ea}(h.default.Embed);y.scope=h.default.Scope.BLOCK_BLOT;var aa=function(ca){function ea(ia){z(this,ea);ia=w(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ia));ia.cache={};return ia}x(ea,ca);a(ea,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(h.default.Leaf).reduce(function(ia,ja){return 0===ja.length()?ia:ia.insert(ja.value(),
|
|
28
|
+
f(ja))},new n.default).insert("\n",f(this)));return this.cache.delta}},{key:"deleteAt",value:function(ia,ja){b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ia,ja);this.cache={}}},{key:"formatAt",value:function(ia,ja,na,ma){0>=ja||(h.default.query(na,h.default.Scope.BLOCK)?ia+ja===this.length()&&this.format(na,ma):b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ia,Math.min(ja,this.length()-ia-1),na,ma),this.cache={})}},
|
|
29
|
+
{key:"insertAt",value:function(ia,ja,na){if(null!=na)return b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ia,ja,na);if(0!==ja.length){ja=ja.split("\n");na=ja.shift();0<na.length&&(ia<this.length()-1||null==this.children.tail?b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,Math.min(ia,this.length()-1),na):this.children.tail.insertAt(this.children.tail.length(),na),this.cache={});var ma=this;ja.reduce(function(ra,sa){ma=
|
|
30
|
+
ma.split(ra,!0);ma.insertAt(0,sa);return sa.length},ia+na.length)}}},{key:"insertBefore",value:function(ia,ja){var na=this.children.head;b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ia,ja);na instanceof ba.default&&na.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",
|
|
31
|
+
value:function(ia,ja){b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"moveChildren",this).call(this,ia,ja);this.cache={}}},{key:"optimize",value:function(ia){b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ia);this.cache={}}},{key:"path",value:function(ia){return b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ia,!0)}},{key:"removeChild",value:function(ia){b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
|
|
32
|
+
"removeChild",this).call(this,ia);this.cache={}}},{key:"split",value:function(ia){var ja=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(ja&&(0===ia||ia>=this.length()-1)){ja=this.clone();if(0===ia)return this.parent.insertBefore(ja,this),this;this.parent.insertBefore(ja,this.next);return ja}ja=b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"split",this).call(this,ia,ja);this.cache={};return ja}}]);return ea}(h.default.Block);aa.blotName="block";aa.tagName="P";aa.defaultChild=
|
|
33
|
+
"break";aa.allowedChildren=[la.default,h.default.Embed,ha.default];ka.bubbleFormats=f;ka.BlockEmbed=y;ka.default=aa},function(la,ka,ha){function da(sa){return sa&&sa.__esModule?sa:{default:sa}}function z(sa,ua,pa){ua in sa?Object.defineProperty(sa,ua,{value:pa,enumerable:!0,configurable:!0,writable:!0}):sa[ua]=pa;return sa}function w(sa,ua){ua=(0,ia.default)(!0,{container:sa,modules:{clipboard:!0,keyboard:!0,history:!0}},ua);if(ua.theme&&ua.theme!==ra.DEFAULTS.theme){if(ua.theme=ra.import("themes/"+
|
|
34
|
+
ua.theme),null==ua.theme)throw Error("Invalid theme "+ua.theme+". Did you register it?");}else ua.theme=na.default;sa=(0,ia.default)(!0,{},ua.theme.DEFAULTS);[sa,ua].forEach(function(qa){qa.modules=qa.modules||{};Object.keys(qa.modules).forEach(function(wa){!0===qa.modules[wa]&&(qa.modules[wa]={})})});var pa=Object.keys(sa.modules).concat(Object.keys(ua.modules)).reduce(function(qa,wa){var Fa=ra.import("modules/"+wa);null==Fa?ma.error("Cannot load "+wa+" module. Are you sure you registered it?"):
|
|
35
|
+
qa[wa]=Fa.DEFAULTS||{};return qa},{});null!=ua.modules&&ua.modules.toolbar&&ua.modules.toolbar.constructor!==Object&&(ua.modules.toolbar={container:ua.modules.toolbar});ua=(0,ia.default)(!0,{},ra.DEFAULTS,{modules:pa},sa,ua);["bounds","container","scrollingContainer"].forEach(function(qa){"string"===typeof ua[qa]&&(ua[qa]=document.querySelector(ua[qa]))});ua.modules=Object.keys(ua.modules).reduce(function(qa,wa){ua.modules[wa]&&(qa[wa]=ua.modules[wa]);return qa},{});return ua}function x(sa,ua,pa,
|
|
36
|
+
qa){if(this.options.strict&&!this.isEnabled()&&ua===y.default.sources.USER)return new h.default;var wa=null==pa?null:this.getSelection(),Fa=this.editor.delta;sa=sa();null!=wa&&(!0===pa&&(pa=wa.index),null==qa?wa=a(wa,sa,ua):0!==qa&&(wa=a(wa,pa,qa,ua)),this.setSelection(wa,y.default.sources.SILENT));if(0<sa.length()){var Ia;pa=[y.default.events.TEXT_CHANGE,sa,Fa,ua];(Ia=this.emitter).emit.apply(Ia,[y.default.events.EDITOR_CHANGE].concat(pa));if(ua!==y.default.sources.SILENT){var Ga;(Ga=this.emitter).emit.apply(Ga,
|
|
37
|
+
pa)}}return sa}function f(sa,ua,pa,qa,wa){var Fa={};"number"===typeof sa.index&&"number"===typeof sa.length?("number"!==typeof ua&&(wa=qa,qa=pa,pa=ua),ua=sa.length,sa=sa.index):"number"!==typeof ua&&(wa=qa,qa=pa,pa=ua,ua=0);"object"===("undefined"===typeof pa?"undefined":b(pa))?(Fa=pa,wa=qa):"string"===typeof pa&&(null!=qa?Fa[pa]=qa:wa=pa);wa=wa||y.default.sources.API;return[sa,ua,Fa,wa]}function a(sa,ua,pa,qa){if(null==sa)return null;var wa=void 0,Fa=void 0;ua instanceof h.default?(wa=[sa.index,
|
|
38
|
+
sa.index+sa.length].map(function(Ia){return ua.transformPosition(Ia,qa!==y.default.sources.USER)}),sa=e(wa,2),wa=sa[0],Fa=sa[1]):(wa=[sa.index,sa.index+sa.length].map(function(Ia){return Ia<ua||Ia===ua&&qa===y.default.sources.USER?Ia:0<=pa?Ia+pa:Math.max(ua,Ia+pa)}),sa=e(wa,2),wa=sa[0],Fa=sa[1]);return new ca.Range(wa,Fa-wa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.overload=ka.expandConfig=void 0;var b="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(sa){return typeof sa}:
|
|
39
|
+
function(sa){return sa&&"function"===typeof Symbol&&sa.constructor===Symbol&&sa!==Symbol.prototype?"symbol":typeof sa},e=function(){return function(sa,ua){if(Array.isArray(sa))return sa;if(Symbol.iterator in Object(sa)){var pa=[],qa=!0,wa=!1,Fa=void 0;try{for(var Ia=sa[Symbol.iterator](),Ga;!(qa=(Ga=Ia.next()).done)&&(pa.push(Ga.value),!ua||pa.length!==ua);qa=!0);}catch(Ea){wa=!0,Fa=Ea}finally{try{if(!qa&&Ia["return"])Ia["return"]()}finally{if(wa)throw Fa;}}return pa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
40
|
+
}}(),n=function(){function sa(ua,pa){for(var qa=0;qa<pa.length;qa++){var wa=pa[qa];wa.enumerable=wa.enumerable||!1;wa.configurable=!0;"value"in wa&&(wa.writable=!0);Object.defineProperty(ua,wa.key,wa)}}return function(ua,pa,qa){pa&&sa(ua.prototype,pa);qa&&sa(ua,qa);return ua}}();ha(50);la=ha(2);var h=da(la);la=ha(14);var ba=da(la);la=ha(8);var y=da(la);la=ha(9);la=da(la);var aa=ha(0),fa=da(aa),ca=ha(15),ea=da(ca);aa=ha(3);var ia=da(aa);aa=ha(10);var ja=da(aa);ha=ha(34);var na=da(ha),ma=(0,ja.default)("quill"),
|
|
41
|
+
ra=function(){function sa(ua){var pa=this,qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof sa))throw new TypeError("Cannot call a class as a function");this.options=w(ua,qa);this.container=this.options.container;if(null==this.container)return ma.error("Invalid Quill container",ua);this.options.debug&&sa.debug(this.options.debug);qa=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 y.default;this.scroll=fa.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ba.default(this.scroll);this.selection=new ea.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(y.default.events.EDITOR_CHANGE,function(wa){wa===y.default.events.TEXT_CHANGE&&pa.root.classList.toggle("ql-blank",pa.editor.isBlank())});this.emitter.on(y.default.events.SCROLL_UPDATE,function(wa,Fa){var Ia=pa.selection.lastRange,Ga=Ia&&0===Ia.length?Ia.index:void 0;x.call(pa,function(){return pa.editor.update(null,Fa,Ga)},wa)});qa=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
|
|
44
|
+
qa+"<p><br></p></div>");this.setContents(qa);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}n(sa,null,[{key:"debug",value:function(ua){!0===ua&&(ua="log");ja.default.level(ua)}},{key:"find",value:function(ua){return ua.__quill||fa.default.find(ua)}},{key:"import",value:function(ua){null==this.imports[ua]&&ma.error("Cannot import "+ua+". Are you sure it was registered?");return this.imports[ua]}},
|
|
45
|
+
{key:"register",value:function(ua,pa){var qa=this,wa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof ua?(wa=ua.attrName||ua.blotName,"string"===typeof wa?this.register("formats/"+wa,ua,pa):Object.keys(ua).forEach(function(Fa){qa.register(Fa,ua[Fa],pa)})):(null==this.imports[ua]||wa||ma.warn("Overwriting "+ua+" with",pa),this.imports[ua]=pa,(ua.startsWith("blots/")||ua.startsWith("formats/"))&&"abstract"!==pa.blotName?fa.default.register(pa):ua.startsWith("modules")&&"function"===
|
|
46
|
+
typeof pa.register&&pa.register())}}]);n(sa,[{key:"addContainer",value:function(ua){var pa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof ua){var qa=ua;ua=document.createElement("div");ua.classList.add(qa)}this.container.insertBefore(ua,pa);return ua}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ua,pa,qa){var wa=this;qa=f(ua,pa,qa);qa=e(qa,4);ua=qa[0];pa=qa[1];qa=qa[3];return x.call(this,function(){return wa.editor.deleteText(ua,
|
|
47
|
+
pa)},qa,ua,-1*pa)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(ua);this.container.classList.toggle("ql-disabled",!ua)}},{key:"focus",value:function(){var ua=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=ua;this.scrollIntoView()}},{key:"format",value:function(ua,pa){var qa=this;return x.call(this,function(){var wa=qa.getSelection(!0),
|
|
48
|
+
Fa=new h.default;if(null==wa)return Fa;if(fa.default.query(ua,fa.default.Scope.BLOCK))Fa=qa.editor.formatLine(wa.index,wa.length,z({},ua,pa));else{if(0===wa.length)return qa.selection.format(ua,pa),Fa;Fa=qa.editor.formatText(wa.index,wa.length,z({},ua,pa))}qa.setSelection(wa,y.default.sources.SILENT);return Fa},2<arguments.length&&void 0!==arguments[2]?arguments[2]:y.default.sources.API)}},{key:"formatLine",value:function(ua,pa,qa,wa,Fa){var Ia=this,Ga=void 0;qa=f(ua,pa,qa,wa,Fa);qa=e(qa,4);ua=qa[0];
|
|
49
|
+
pa=qa[1];Ga=qa[2];Fa=qa[3];return x.call(this,function(){return Ia.editor.formatLine(ua,pa,Ga)},Fa,ua,0)}},{key:"formatText",value:function(ua,pa,qa,wa,Fa){var Ia=this,Ga=void 0;qa=f(ua,pa,qa,wa,Fa);qa=e(qa,4);ua=qa[0];pa=qa[1];Ga=qa[2];Fa=qa[3];return x.call(this,function(){return Ia.editor.formatText(ua,pa,Ga)},Fa,ua,0)}},{key:"getBounds",value:function(ua){var pa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;pa="number"===typeof ua?this.selection.getBounds(ua,pa):this.selection.getBounds(ua.index,
|
|
50
|
+
ua.length);var qa=this.container.getBoundingClientRect();return{bottom:pa.bottom-qa.top,height:pa.height,left:pa.left-qa.left,right:pa.right-qa.left,top:pa.top-qa.top,width:pa.width}}},{key:"getContents",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,pa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=f(ua,pa);pa=e(ua,2);ua=pa[0];pa=pa[1];return this.editor.getContents(ua,pa)}},{key:"getFormat",value:function(){var ua=0<arguments.length&&
|
|
51
|
+
void 0!==arguments[0]?arguments[0]:this.getSelection(!0),pa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof ua?this.editor.getFormat(ua,pa):this.editor.getFormat(ua.index,ua.length)}},{key:"getIndex",value:function(ua){return ua.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ua){return this.scroll.leaf(ua)}},{key:"getLine",value:function(ua){return this.scroll.line(ua)}},{key:"getLines",value:function(){var ua=
|
|
52
|
+
0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,pa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof ua?this.scroll.lines(ua.index,ua.length):this.scroll.lines(ua,pa)}},{key:"getModule",value:function(ua){return this.theme.modules[ua]}},{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 ua=0<arguments.length&&
|
|
53
|
+
void 0!==arguments[0]?arguments[0]:0,pa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=f(ua,pa);pa=e(ua,2);ua=pa[0];pa=pa[1];return this.editor.getText(ua,pa)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ua,pa,qa){var wa=this;return x.call(this,function(){return wa.editor.insertEmbed(ua,pa,qa)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:sa.sources.API,ua)}},{key:"insertText",value:function(ua,pa,
|
|
54
|
+
qa,wa,Fa){var Ia=this,Ga=void 0;qa=f(ua,0,qa,wa,Fa);qa=e(qa,4);ua=qa[0];Ga=qa[2];Fa=qa[3];return x.call(this,function(){return Ia.editor.insertText(ua,pa,Ga)},Fa,ua,pa.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(ua,pa,qa){this.clipboard.dangerouslyPasteHTML(ua,pa,qa)}},{key:"removeFormat",value:function(ua,pa,qa){var wa=this;qa=f(ua,pa,qa);qa=e(qa,4);ua=qa[0];pa=qa[1];qa=qa[3];return x.call(this,function(){return wa.editor.removeFormat(ua,pa)},qa,ua)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ua){var pa=this;return x.call(this,function(){ua=new h.default(ua);var qa=pa.getLength();
|
|
56
|
+
qa=pa.editor.deleteText(0,qa);var wa=pa.editor.applyDelta(ua),Fa=wa.ops[wa.ops.length-1];null!=Fa&&"string"===typeof Fa.insert&&"\n"===Fa.insert[Fa.insert.length-1]&&(pa.editor.deleteText(pa.getLength()-1,1),wa.delete(1));return qa.compose(wa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:y.default.sources.API)}},{key:"setSelection",value:function(ua,pa,qa){null==ua?this.selection.setRange(null,pa||sa.sources.API):(ua=f(ua,pa,qa),qa=e(ua,4),ua=qa[0],pa=qa[1],qa=qa[3],this.selection.setRange(new ca.Range(ua,
|
|
57
|
+
pa),qa),qa!==y.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(ua){var pa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:y.default.sources.API,qa=(new h.default).insert(ua);return this.setContents(qa,pa)}},{key:"update",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:y.default.sources.USER,pa=this.scroll.update(ua);this.selection.update(ua);return pa}},{key:"updateContents",value:function(ua){var pa=
|
|
58
|
+
this,qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:y.default.sources.API;return x.call(this,function(){ua=new h.default(ua);return pa.editor.applyDelta(ua,qa)},qa,!0)}}]);return sa}();ra.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};ra.events=y.default.events;ra.sources=y.default.sources;ra.version="1.3.7";ra.imports={delta:h.default,parchment:fa.default,"core/module":la.default,"core/theme":na.default};ka.expandConfig=
|
|
59
|
+
w;ka.overload=f;ka.default=ra},function(la,ka,ha){function da(f,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function f(a,b){for(var e=0;e<b.length;e++){var n=b[e];n.enumerable=
|
|
60
|
+
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,e){b&&f(a.prototype,b);e&&f(a,e);return a}}(),w=function n(a,b,e){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,b);if(void 0===h){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,e)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(e)}};la=(la=ha(7))&&la.__esModule?la:{default:la};var x=(ha=ha(0))&&ha.__esModule?ha:{default:ha};
|
|
61
|
+
ha=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);z(b,[{key:"formatAt",value:function(e,n,h,ba){0>b.compare(this.statics.blotName,h)&&x.default.query(h,x.default.Scope.BLOT)?(e=this.isolate(e,n),ba&&e.wrap(h,ba)):
|
|
62
|
+
w(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,e,n,h,ba)}},{key:"optimize",value:function(e){w(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,e);this.parent instanceof b&&0<b.compare(this.statics.blotName,this.parent.statics.blotName)&&(e=this.parent.isolate(this.offset(),this.length()),this.moveChildren(e),e.wrap(this))}}],[{key:"compare",value:function(e,n){var h=b.order.indexOf(e),ba=b.order.indexOf(n);return 0<=h||0<=
|
|
63
|
+
ba?h-ba:e===n?0:e<n?-1:1}}]);return b}(x.default.Inline);ha.allowedChildren=[ha,x.default.Embed,la.default];ha.order="cursor inline underline strike italic bold script link code".split(" ");ka.default=ha},function(la,ka,ha){function da(z,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);z.prototype=Object.create(w&&w.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(z,
|
|
64
|
+
w):z.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});la=function(z){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var x=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?this:x}da(w,z);return w}(function(z){return z&&z.__esModule?z:{default:z}}(ha(0)).default.Text);ka.default=la},
|
|
65
|
+
function(la,ka,ha){function da(f,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function f(a,b){for(var e=0;e<b.length;e++){var n=b[e];n.enumerable=n.enumerable||!1;n.configurable=
|
|
66
|
+
!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,e){b&&f(a.prototype,b);e&&f(a,e);return a}}(),w=function n(a,b,e){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,b);if(void 0===h){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,e)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(e)}};la=(la=ha(54))&&la.__esModule?la:{default:la};ha=ha(10);var x=(0,(ha&&ha.__esModule?ha:{default:ha}).default)("quill:events");
|
|
67
|
+
["selectionchange","mousedown","mouseup","click"].forEach(function(a){document.addEventListener(a,function(){for(var b=arguments.length,e=Array(b),n=0;n<b;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(h){if(h.__quill&&h.__quill.emitter){var ba;(ba=h.__quill.emitter).handleDOM.apply(ba,e)}})})});ha=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).call(this);
|
|
68
|
+
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");e=!e||"object"!==typeof e&&"function"!==typeof e?this:e;e.listeners={};e.on("error",x.error);return e}da(b,a);z(b,[{key:"emit",value:function(){x.log.apply(x,arguments);w(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var n=arguments.length,h=Array(1<n?n-1:0),ba=1;ba<n;ba++)h[ba-1]=arguments[ba];(this.listeners[e.type]||
|
|
69
|
+
[]).forEach(function(y){var aa=y.node;y=y.handler;(e.target===aa||aa.contains(e.target))&&y.apply(void 0,[e].concat(h))})}},{key:"listenDOM",value:function(e,n,h){this.listeners[e]||(this.listeners[e]=[]);this.listeners[e].push({node:n,handler:h})}}]);return b}(la.default);ha.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"};ha.sources={API:"api",
|
|
70
|
+
SILENT:"silent",USER:"user"};ka.default=ha},function(la,ka){Object.defineProperty(ka,"__esModule",{value:!0});la=function z(da){var w=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=da;this.options=w};la.DEFAULTS={};ka.default=la},function(la,ka){function ha(x){if(z.indexOf(x)<=z.indexOf(w)){for(var f,a=arguments.length,b=Array(1<a?a-1:0),e=1;e<a;e++)b[e-1]=arguments[e];(f=console)[x].apply(f,b)}}
|
|
71
|
+
function da(x){return z.reduce(function(f,a){f[a]=ha.bind(console,a,x);return f},{})}Object.defineProperty(ka,"__esModule",{value:!0});var z=["error","warn","log","info"],w="warn";ha.level=da.level=function(x){w=x};ka.default=da},function(la,ka,ha){function da(b){return!b||"object"!==typeof b||"number"!==typeof b.length||"function"!==typeof b.copy||"function"!==typeof b.slice||0<b.length&&"number"!==typeof b[0]?!1:!0}function z(b,e,n){var h;if(null===b||void 0===b||null===e||void 0===e||b.prototype!==
|
|
72
|
+
e.prototype)return!1;if(f(b)){if(!f(e))return!1;b=w.call(b);e=w.call(e);return a(b,e,n)}if(da(b)){if(!da(e)||b.length!==e.length)return!1;for(h=0;h<b.length;h++)if(b[h]!==e[h])return!1;return!0}try{var ba=x(b);var y=x(e)}catch(aa){return!1}if(ba.length!=y.length)return!1;ba.sort();y.sort();for(h=ba.length-1;0<=h;h--)if(ba[h]!=y[h])return!1;for(h=ba.length-1;0<=h;h--)if(y=ba[h],!a(b[y],e[y],n))return!1;return typeof b===typeof e}var w=Array.prototype.slice,x=ha(52),f=ha(53),a=la.exports=function(b,
|
|
73
|
+
e,n){n||(n={});return b===e?!0:b instanceof Date&&e instanceof Date?b.getTime()===e.getTime():!b||!e||"object"!=typeof b&&"object"!=typeof e?n.strict?b===e:b==e:z(b,e,n)}},function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});var da=ha(1);la=function(){function z(w,x,f){void 0===f&&(f={});this.attrName=w;this.keyName=x;w=da.Scope.TYPE&da.Scope.ATTRIBUTE;this.scope=null!=f.scope?f.scope&da.Scope.LEVEL|w:da.Scope.ATTRIBUTE;null!=f.whitelist&&(this.whitelist=f.whitelist)}z.keys=function(w){return[].map.call(w.attributes,
|
|
74
|
+
function(x){return x.name})};z.prototype.add=function(w,x){if(!this.canAdd(w,x))return!1;w.setAttribute(this.keyName,x);return!0};z.prototype.canAdd=function(w,x){return null==da.query(w,da.Scope.BLOT&(this.scope|da.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof x?-1<this.whitelist.indexOf(x.replace(/["']/g,"")):-1<this.whitelist.indexOf(x)};z.prototype.remove=function(w){w.removeAttribute(this.keyName)};z.prototype.value=function(w){var x=w.getAttribute(this.keyName);return this.canAdd(w,
|
|
75
|
+
x)&&x?x:""};return z}();ka.default=la},function(la,ka,ha){function da(y){return y&&y.__esModule?y:{default:y}}function z(y,aa){if(!(y instanceof aa))throw new TypeError("Cannot call a class as a function");}function w(y,aa){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?y:aa}function x(y,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+
|
|
76
|
+
typeof aa);y.prototype=Object.create(aa&&aa.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(y,aa):y.__proto__=aa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.Code=void 0;var f=function(){return function(y,aa){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y)){var fa=[],ca=!0,ea=!1,ia=void 0;try{for(var ja=y[Symbol.iterator](),na;!(ca=(na=ja.next()).done)&&(fa.push(na.value),!aa||fa.length!==
|
|
77
|
+
aa);ca=!0);}catch(ma){ea=!0,ia=ma}finally{try{if(!ca&&ja["return"])ja["return"]()}finally{if(ea)throw ia;}}return fa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),a=function(){function y(aa,fa){for(var ca=0;ca<fa.length;ca++){var ea=fa[ca];ea.enumerable=ea.enumerable||!1;ea.configurable=!0;"value"in ea&&(ea.writable=!0);Object.defineProperty(aa,ea.key,ea)}}return function(aa,fa,ca){fa&&y(aa.prototype,fa);ca&&y(aa,ca);return aa}}(),b=function ea(aa,fa,ca){null===
|
|
78
|
+
aa&&(aa=Function.prototype);var ia=Object.getOwnPropertyDescriptor(aa,fa);if(void 0===ia){if(aa=Object.getPrototypeOf(aa),null!==aa)return ea(aa,fa,ca)}else{if("value"in ia)return ia.value;fa=ia.get;return void 0===fa?void 0:fa.call(ca)}};la=ha(2);var e=da(la);la=ha(0);var n=da(la);la=ha(4);la=da(la);var h=ha(6);h=da(h);ha=ha(7);var ba=da(ha);ha=function(aa){function fa(){z(this,fa);return w(this,(fa.__proto__||Object.getPrototypeOf(fa)).apply(this,arguments))}x(fa,aa);return fa}(h.default);ha.blotName=
|
|
79
|
+
"code";ha.tagName="CODE";la=function(aa){function fa(){z(this,fa);return w(this,(fa.__proto__||Object.getPrototypeOf(fa)).apply(this,arguments))}x(fa,aa);a(fa,[{key:"delta",value:function(){var ca=this,ea=this.domNode.textContent;ea.endsWith("\n")&&(ea=ea.slice(0,-1));return ea.split("\n").reduce(function(ia,ja){return ia.insert(ja).insert("\n",ca.formats())},new e.default)}},{key:"format",value:function(ca,ea){if(ca!==this.statics.blotName||!ea){var ia=this.descendant(ba.default,this.length()-1);
|
|
80
|
+
ia=f(ia,1)[0];null!=ia&&ia.deleteAt(ia.length()-1,1);b(fa.prototype.__proto__||Object.getPrototypeOf(fa.prototype),"format",this).call(this,ca,ea)}}},{key:"formatAt",value:function(ca,ea,ia,ja){if(0!==ea&&null!=n.default.query(ia,n.default.Scope.BLOCK)&&(ia!==this.statics.blotName||ja!==this.statics.formats(this.domNode))){var na=this.newlineIndex(ca);if(!(0>na||na>=ca+ea)){var ma=this.newlineIndex(ca,!0)+1;na=na-ma+1;var ra=this.isolate(ma,na),sa=ra.next;ra.format(ia,ja);sa instanceof fa&&sa.formatAt(0,
|
|
81
|
+
ca-ma+ea-na,ia,ja)}}}},{key:"insertAt",value:function(ca,ea,ia){null==ia&&(ca=this.descendant(ba.default,ca),ca=f(ca,2),ca[0].insertAt(ca[1],ea))}},{key:"length",value:function(){var ca=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?ca:ca+1}},{key:"newlineIndex",value:function(ca){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,ca).lastIndexOf("\n");var ea=this.domNode.textContent.slice(ca).indexOf("\n");return-1<ea?
|
|
82
|
+
ca+ea:-1}},{key:"optimize",value:function(ca){this.domNode.textContent.endsWith("\n")||this.appendChild(n.default.create("text","\n"));b(fa.prototype.__proto__||Object.getPrototypeOf(fa.prototype),"optimize",this).call(this,ca);var ea=this.next;null!=ea&&ea.prev===this&&ea.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ea.statics.formats(ea.domNode)&&(ea.optimize(ca),ea.moveChildren(this),ea.remove())}},{key:"replace",value:function(ca){b(fa.prototype.__proto__||Object.getPrototypeOf(fa.prototype),
|
|
83
|
+
"replace",this).call(this,ca);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ea){var ia=n.default.find(ea);null==ia?ea.parentNode.removeChild(ea):ia instanceof n.default.Embed?ia.remove():ia.unwrap()})}}],[{key:"create",value:function(ca){ca=b(fa.__proto__||Object.getPrototypeOf(fa),"create",this).call(this,ca);ca.setAttribute("spellcheck",!1);return ca}},{key:"formats",value:function(){return!0}}]);return fa}(la.default);la.blotName="code-block";la.tagName="PRE";la.TAB=" ";ka.Code=
|
|
84
|
+
ha;ka.default=la},function(la,ka,ha){function da(na){return na&&na.__esModule?na:{default:na}}function z(na,ma){return Object.keys(ma).reduce(function(ra,sa){if(null==na[sa])return ra;ma[sa]===na[sa]?ra[sa]=ma[sa]:Array.isArray(ma[sa])?0>ma[sa].indexOf(na[sa])&&(ra[sa]=ma[sa].concat([na[sa]])):ra[sa]=[ma[sa],na[sa]];return ra},{})}function w(na){return na.reduce(function(ma,ra){if(1===ra.insert){var sa=(0,ca.default)(ra.attributes);delete sa.image;return ma.insert({image:ra.attributes.image},sa)}null==
|
|
85
|
+
ra.attributes||!0!==ra.attributes.list&&!0!==ra.attributes.bullet||(ra=(0,ca.default)(ra),ra.attributes.list?ra.attributes.list="ordered":(ra.attributes.list="bullet",delete ra.attributes.bullet));return"string"===typeof ra.insert?(sa=ra.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),ma.insert(sa,ra.attributes)):ma.push(ra)},new b.default)}Object.defineProperty(ka,"__esModule",{value:!0});var x="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(na){return typeof na}:function(na){return na&&
|
|
86
|
+
"function"===typeof Symbol&&na.constructor===Symbol&&na!==Symbol.prototype?"symbol":typeof na},f=function(){return function(na,ma){if(Array.isArray(na))return na;if(Symbol.iterator in Object(na)){var ra=[],sa=!0,ua=!1,pa=void 0;try{for(var qa=na[Symbol.iterator](),wa;!(sa=(wa=qa.next()).done)&&(ra.push(wa.value),!ma||ra.length!==ma);sa=!0);}catch(Fa){ua=!0,pa=Fa}finally{try{if(!sa&&qa["return"])qa["return"]()}finally{if(ua)throw pa;}}return ra}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
87
|
+
}}(),a=function(){function na(ma,ra){for(var sa=0;sa<ra.length;sa++){var ua=ra[sa];ua.enumerable=ua.enumerable||!1;ua.configurable=!0;"value"in ua&&(ua.writable=!0);Object.defineProperty(ma,ua.key,ua)}}return function(ma,ra,sa){ra&&na(ma.prototype,ra);sa&&na(ma,sa);return ma}}();la=ha(2);var b=da(la);la=ha(20);var e=da(la);la=ha(0);var n=da(la);la=ha(13);var h=da(la);la=ha(24);var ba=da(la),y=ha(4),aa=da(y);la=ha(16);var fa=da(la);la=ha(21);var ca=da(la);la=ha(11);var ea=da(la);ha=ha(3);var ia=da(ha),
|
|
88
|
+
ja=/^[ -~]*$/;ha=function(){function na(ma){if(!(this instanceof na))throw new TypeError("Cannot call a class as a function");this.scroll=ma;this.delta=this.getDelta()}a(na,[{key:"applyDelta",value:function(ma){var ra=this,sa=!1;this.scroll.update();var ua=this.scroll.length();this.scroll.batchStart();ma=w(ma);ma.reduce(function(pa,qa){var wa=qa.retain||qa.delete||qa.insert.length||1,Fa=qa.attributes||{};if(null!=qa.insert){if("string"===typeof qa.insert){qa=qa.insert;qa.endsWith("\n")&&sa&&(sa=!1,
|
|
89
|
+
qa=qa.slice(0,-1));pa>=ua&&!qa.endsWith("\n")&&(sa=!0);ra.scroll.insertAt(pa,qa);qa=ra.scroll.line(pa);qa=f(qa,2);var Ia=qa[0],Ga=qa[1];qa=(0,ia.default)({},(0,y.bubbleFormats)(Ia));Ia instanceof aa.default&&(Ia=Ia.descendant(n.default.Leaf,Ga),Ia=f(Ia,1)[0],qa=(0,ia.default)(qa,(0,y.bubbleFormats)(Ia)));Fa=e.default.attributes.diff(qa,Fa)||{}}else if("object"===x(qa.insert)){Ia=Object.keys(qa.insert)[0];if(null==Ia)return pa;ra.scroll.insertAt(pa,Ia,qa.insert[Ia])}ua+=wa}Object.keys(Fa).forEach(function(Ea){ra.scroll.formatAt(pa,
|
|
90
|
+
wa,Ea,Fa[Ea])});return pa+wa},0);ma.reduce(function(pa,qa){return"number"===typeof qa.delete?(ra.scroll.deleteAt(pa,qa.delete),pa):pa+(qa.retain||qa.insert.length||1)},0);this.scroll.batchEnd();return this.update(ma)}},{key:"deleteText",value:function(ma,ra){this.scroll.deleteAt(ma,ra);return this.update((new b.default).retain(ma).delete(ra))}},{key:"formatLine",value:function(ma,ra){var sa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ua).forEach(function(pa){if(null==
|
|
91
|
+
sa.scroll.whitelist||sa.scroll.whitelist[pa]){var qa=sa.scroll.lines(ma,Math.max(ra,1)),wa=ra;qa.forEach(function(Fa){var Ia=Fa.length();if(Fa instanceof h.default){var Ga=ma-Fa.offset(sa.scroll),Ea=Fa.newlineIndex(Ga+wa)-Ga+1;Fa.formatAt(Ga,Ea,pa,ua[pa])}else Fa.format(pa,ua[pa]);wa-=Ia})}});this.scroll.optimize();return this.update((new b.default).retain(ma).retain(ra,(0,ca.default)(ua)))}},{key:"formatText",value:function(ma,ra){var sa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
|
|
92
|
+
{};Object.keys(ua).forEach(function(pa){sa.scroll.formatAt(ma,ra,pa,ua[pa])});return this.update((new b.default).retain(ma).retain(ra,(0,ca.default)(ua)))}},{key:"getContents",value:function(ma,ra){return this.delta.slice(ma,ma+ra)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(ma,ra){return ma.concat(ra.delta())},new b.default)}},{key:"getFormat",value:function(ma){var ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,sa=[],ua=[];0===ra?this.scroll.path(ma).forEach(function(pa){pa=
|
|
93
|
+
f(pa,1)[0];pa instanceof aa.default?sa.push(pa):pa instanceof n.default.Leaf&&ua.push(pa)}):(sa=this.scroll.lines(ma,ra),ua=this.scroll.descendants(n.default.Leaf,ma,ra));ra=[sa,ua].map(function(pa){if(0===pa.length)return{};for(var qa=(0,y.bubbleFormats)(pa.shift());0<Object.keys(qa).length;){var wa=pa.shift();if(null==wa)break;qa=z((0,y.bubbleFormats)(wa),qa)}return qa});return ia.default.apply(ia.default,ra)}},{key:"getText",value:function(ma,ra){return this.getContents(ma,ra).filter(function(sa){return"string"===
|
|
94
|
+
typeof sa.insert}).map(function(sa){return sa.insert}).join("")}},{key:"insertEmbed",value:function(ma,ra,sa){this.scroll.insertAt(ma,ra,sa);var ua=this.update;ma=(new b.default).retain(ma);var pa=ma.insert,qa={};ra in qa?Object.defineProperty(qa,ra,{value:sa,enumerable:!0,configurable:!0,writable:!0}):qa[ra]=sa;return ua.call(this,pa.call(ma,qa))}},{key:"insertText",value:function(ma,ra){var sa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ra=ra.replace(/\r\n/g,"\n").replace(/\r/g,
|
|
95
|
+
"\n");this.scroll.insertAt(ma,ra);Object.keys(ua).forEach(function(pa){sa.scroll.formatAt(ma,ra.length,pa,ua[pa])});return this.update((new b.default).retain(ma).insert(ra,(0,ca.default)(ua)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var ma=this.scroll.children.head;return ma.statics.blotName!==aa.default.blotName||1<ma.children.length?!1:ma.children.head instanceof fa.default}},{key:"removeFormat",value:function(ma,ra){var sa=
|
|
96
|
+
this.getText(ma,ra),ua=this.scroll.line(ma+ra),pa=f(ua,2);ua=pa[0];pa=pa[1];var qa=0,wa=new b.default;null!=ua&&(qa=ua instanceof h.default?ua.newlineIndex(pa)-pa+1:ua.length()-pa,wa=ua.delta().slice(pa,pa+qa-1).insert("\n"));ra=this.getContents(ma,ra+qa).diff((new b.default).insert(sa).concat(wa));ma=(new b.default).retain(ma).concat(ra);return this.applyDelta(ma)}},{key:"update",value:function(ma){var ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],sa=2<arguments.length&&void 0!==arguments[2]?
|
|
97
|
+
arguments[2]:void 0,ua=this.delta;if(1===ra.length&&"characterData"===ra[0].type&&ra[0].target.data.match(ja)&&n.default.find(ra[0].target)){var pa=n.default.find(ra[0].target),qa=(0,y.bubbleFormats)(pa),wa=pa.offset(this.scroll);ra=ra[0].oldValue.replace(ba.default.CONTENTS,"");ra=(new b.default).insert(ra);pa=(new b.default).insert(pa.value());ma=(new b.default).retain(wa).concat(ra.diff(pa,sa)).reduce(function(Fa,Ia){return Ia.insert?Fa.insert(Ia.insert,qa):Fa.push(Ia)},new b.default);this.delta=
|
|
98
|
+
ua.compose(ma)}else this.delta=this.getDelta(),ma&&(0,ea.default)(ua.compose(ma),this.delta)||(ma=ua.diff(this.delta,sa));return ma}}]);return na}();ka.default=ha},function(la,ka,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function z(aa){if(Array.isArray(aa)){for(var fa=0,ca=Array(aa.length);fa<aa.length;fa++)ca[fa]=aa[fa];return ca}return Array.from(aa)}function w(aa,fa){if(!(aa instanceof fa))throw new TypeError("Cannot call a class as a function");}function x(aa,fa){try{fa.parentNode}catch(ca){return!1}fa instanceof
|
|
99
|
+
Text&&(fa=fa.parentNode);return aa.contains(fa)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.Range=void 0;var f=function(){return function(aa,fa){if(Array.isArray(aa))return aa;if(Symbol.iterator in Object(aa)){var ca=[],ea=!0,ia=!1,ja=void 0;try{for(var na=aa[Symbol.iterator](),ma;!(ea=(ma=na.next()).done)&&(ca.push(ma.value),!fa||ca.length!==fa);ea=!0);}catch(ra){ia=!0,ja=ra}finally{try{if(!ea&&na["return"])na["return"]()}finally{if(ia)throw ja;}}return ca}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
100
|
+
}}(),a=function(){function aa(fa,ca){for(var ea=0;ea<ca.length;ea++){var ia=ca[ea];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=!0);Object.defineProperty(fa,ia.key,ia)}}return function(fa,ca,ea){ca&&aa(fa.prototype,ca);ea&&aa(fa,ea);return fa}}();la=ha(0);var b=da(la);la=ha(21);var e=da(la);la=ha(11);var n=da(la);la=ha(8);var h=da(la);ha=ha(10);var ba=(0,da(ha).default)("quill:selection"),y=function ca(fa){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
|
|
101
|
+
0;w(this,ca);this.index=fa;this.length=ea};ha=function(){function fa(ca,ea){var ia=this;w(this,fa);this.emitter=ea;this.scroll=ca;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=b.default.create("cursor",this);this.lastRange=this.savedRange=new y(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){ia.mouseDown||setTimeout(ia.update.bind(ia,h.default.sources.USER),1)});this.emitter.on(h.default.events.EDITOR_CHANGE,
|
|
102
|
+
function(ja,na){ja===h.default.events.TEXT_CHANGE&&0<na.length()&&ia.update(h.default.sources.SILENT)});this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(ia.hasFocus()){var ja=ia.getNativeRange();if(null!=ja&&ja.start.node!==ia.cursor.textNode)ia.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{ia.setNativeRange(ja.start.node,ja.start.offset,ja.end.node,ja.end.offset)}catch(na){}})}});this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(ja,na){na.range&&(ja=na.range,
|
|
103
|
+
ia.setNativeRange(ja.startNode,ja.startOffset,ja.endNode,ja.endOffset))});this.update(h.default.sources.SILENT)}a(fa,[{key:"handleComposition",value:function(){var ca=this;this.root.addEventListener("compositionstart",function(){ca.composing=!0});this.root.addEventListener("compositionend",function(){ca.composing=!1;if(ca.cursor.parent){var ea=ca.cursor.restore();ea&&setTimeout(function(){ca.setNativeRange(ea.startNode,ea.startOffset,ea.endNode,ea.endOffset)},1)}})}},{key:"handleDragging",value:function(){var ca=
|
|
104
|
+
this;this.emitter.listenDOM("mousedown",document.body,function(){ca.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){ca.mouseDown=!1;ca.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(ca,ea){if(null==this.scroll.whitelist||this.scroll.whitelist[ca]){this.scroll.update();var ia=this.getNativeRange();if(null!=ia&&ia.native.collapsed&&!b.default.query(ca,b.default.Scope.BLOCK)){if(ia.start.node!==
|
|
105
|
+
this.cursor.textNode){var ja=b.default.find(ia.start.node,!1);if(null==ja)return;ja instanceof b.default.Leaf?(ia=ja.split(ia.start.offset),ja.parent.insertBefore(this.cursor,ia)):ja.insertBefore(this.cursor,ia.start.node);this.cursor.attach()}this.cursor.format(ca,ea);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(ca){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ia=this.scroll.length();
|
|
106
|
+
ca=Math.min(ca,ia-1);ea=Math.min(ca+ea,ia-1)-ca;ia=this.scroll.leaf(ca);var ja=f(ia,2);ia=ja[0];var na=ja[1];if(null==ia)return null;ja=ia.position(na,!0);ja=f(ja,2);var ma=ja[0];na=ja[1];ja=document.createRange();if(0<ea){ja.setStart(ma,na);ea=this.scroll.leaf(ca+ea);ea=f(ea,2);ia=ea[0];na=ea[1];if(null==ia)return null;ea=ia.position(na,!0);ea=f(ea,2);ma=ea[0];na=ea[1];ja.setEnd(ma,na);return ja.getBoundingClientRect()}ea="left";ma instanceof Text?(na<ma.data.length?(ja.setStart(ma,na),ja.setEnd(ma,
|
|
107
|
+
na+1)):(ja.setStart(ma,na-1),ja.setEnd(ma,na),ea="right"),ia=ja.getBoundingClientRect()):(ia=ia.domNode.getBoundingClientRect(),0<na&&(ea="right"));return{bottom:ia.top+ia.height,height:ia.height,left:ia[ea],right:ia[ea],top:ia.top,width:0}}},{key:"getNativeRange",value:function(){var ca=document.getSelection();if(null==ca||0>=ca.rangeCount)return null;ca=ca.getRangeAt(0);if(null==ca)return null;ca=this.normalizeNative(ca);ba.info("getNativeRange",ca);return ca}},{key:"getRange",value:function(){var ca=
|
|
108
|
+
this.getNativeRange();return null==ca?[null,null]:[this.normalizedToRange(ca),ca]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(ca){var ea=this,ia=[[ca.start.node,ca.start.offset]];ca.native.collapsed||ia.push([ca.end.node,ca.end.offset]);ia=ia.map(function(ja){var na=f(ja,2);ja=na[0];na=na[1];var ma=b.default.find(ja,!0),ra=ma.offset(ea.scroll);return 0===na?ra:ma instanceof b.default.Container?ra+ma.length():ra+ma.index(ja,
|
|
109
|
+
na)});ca=Math.min(Math.max.apply(Math,z(ia)),this.scroll.length()-1);ia=Math.min.apply(Math,[ca].concat(z(ia)));return new y(ia,ca-ia)}},{key:"normalizeNative",value:function(ca){if(!x(this.root,ca.startContainer)||!ca.collapsed&&!x(this.root,ca.endContainer))return null;ca={start:{node:ca.startContainer,offset:ca.startOffset},end:{node:ca.endContainer,offset:ca.endOffset},native:ca};[ca.start,ca.end].forEach(function(ea){for(var ia=ea.node,ja=ea.offset;!(ia instanceof Text)&&0<ia.childNodes.length;)if(ia.childNodes.length>
|
|
110
|
+
ja)ia=ia.childNodes[ja],ja=0;else if(ia.childNodes.length===ja)ia=ia.lastChild,ja=ia instanceof Text?ia.data.length:ia.childNodes.length+1;else break;ea.node=ia;ea.offset=ja});return ca}},{key:"rangeToNative",value:function(ca){var ea=this;ca=ca.collapsed?[ca.index]:[ca.index,ca.index+ca.length];var ia=[],ja=this.scroll.length();ca.forEach(function(na,ma){na=Math.min(ja-1,na);na=ea.scroll.leaf(na);var ra=f(na,2);na=ra[1];ma=ra[0].position(na,0!==ma);na=f(ma,2);ma=na[0];na=na[1];ia.push(ma,na)});2>
|
|
111
|
+
ia.length&&(ia=ia.concat(ia));return ia}},{key:"scrollIntoView",value:function(ca){var ea=this.lastRange;if(null!=ea){var ia=this.getBounds(ea.index,ea.length);if(null!=ia){var ja=this.scroll.length()-1,na=this.scroll.line(Math.min(ea.index,ja)),ma=na=f(na,1)[0];0<ea.length&&(ea=this.scroll.line(Math.min(ea.index+ea.length,ja)),ma=f(ea,1)[0]);null!=na&&null!=ma&&(ea=ca.getBoundingClientRect(),ia.top<ea.top?ca.scrollTop-=ea.top-ia.top:ia.bottom>ea.bottom&&(ca.scrollTop+=ia.bottom-ea.bottom))}}}},{key:"setNativeRange",
|
|
112
|
+
value:function(ca,ea){var ia=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ca,ja=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ea,na=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ba.info("setNativeRange",ca,ea,ia,ja);if(null==ca||null!=this.root.parentNode&&null!=ca.parentNode&&null!=ia.parentNode){var ma=document.getSelection();if(null!=ma)if(null!=ca){this.hasFocus()||this.root.focus();var ra=(this.getNativeRange()||{}).native;if(null==ra||na||ca!==ra.startContainer||
|
|
113
|
+
ea!==ra.startOffset||ia!==ra.endContainer||ja!==ra.endOffset)"BR"==ca.tagName&&(ea=[].indexOf.call(ca.parentNode.childNodes,ca),ca=ca.parentNode),"BR"==ia.tagName&&(ja=[].indexOf.call(ia.parentNode.childNodes,ia),ia=ia.parentNode),na=document.createRange(),na.setStart(ca,ea),na.setEnd(ia,ja),ma.removeAllRanges(),ma.addRange(na)}else ma.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(ca){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ia=
|
|
114
|
+
2<arguments.length&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;"string"===typeof ea&&(ia=ea,ea=!1);ba.info("setRange",ca);if(null!=ca){var ja=this.rangeToNative(ca);this.setNativeRange.apply(this,z(ja).concat([ea]))}else this.setNativeRange(null);this.update(ia)}},{key:"update",value:function(){var ca=0<arguments.length&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,ea=this.lastRange,ia=this.getRange();ia=f(ia,2);var ja=ia[1];this.lastRange=ia[0];null!=this.lastRange&&(this.savedRange=
|
|
115
|
+
this.lastRange);if(!(0,n.default)(ea,this.lastRange)){var na;!this.composing&&null!=ja&&ja.native.collapsed&&ja.start.node!==this.cursor.textNode&&this.cursor.restore();ea=[h.default.events.SELECTION_CHANGE,(0,e.default)(this.lastRange),(0,e.default)(ea),ca];(na=this.emitter).emit.apply(na,[h.default.events.EDITOR_CHANGE].concat(ea));if(ca!==h.default.sources.SILENT){var ma;(ma=this.emitter).emit.apply(ma,ea)}}}}]);return fa}();ka.Range=y;ka.default=ha},function(la,ka,ha){function da(x,f){if("function"!==
|
|
116
|
+
typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);x.prototype=Object.create(f&&f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(x,f):x.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function x(f,a){for(var b=0;b<a.length;b++){var e=a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,
|
|
117
|
+
e.key,e)}}return function(f,a,b){a&&x(f.prototype,a);b&&x(f,b);return f}}(),w=function e(f,a,b){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,a);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return e(f,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};la=function(f){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");
|
|
118
|
+
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}da(a,f);z(a,[{key:"insertInto",value:function(b,e){0===b.children.length?w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"insertInto",this).call(this,b,e):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return a}(function(f){return f&&f.__esModule?f:{default:f}}(ha(0)).default.Embed);la.blotName="break";la.tagName="BR";ka.default=la},function(la,
|
|
119
|
+
ka,ha){function da(f){var a=x.find(f);if(null==a)try{a=x.create(f)}catch(b){a=x.create(x.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(e){a.domNode.appendChild(e)}),f.parentNode&&f.parentNode.replaceChild(a.domNode,f),a.attach()}return a}var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return function(a,b){function e(){this.constructor=a}f(a,
|
|
120
|
+
b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});var w=ha(44);la=ha(30);var x=ha(1);ha=function(f){function a(b){b=f.call(this,b)||this;b.build();return b}z(a,f);a.prototype.appendChild=function(b){this.insertBefore(b)};a.prototype.attach=function(){f.prototype.attach.call(this);this.children.forEach(function(b){b.attach()})};a.prototype.build=function(){var b=this;this.children=new w.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=
|
|
121
|
+
da(e);b.insertBefore(n,b.children.head||void 0)}catch(h){if(!(h instanceof x.ParchmentError))throw h;}})};a.prototype.deleteAt=function(b,e){if(0===b&&e===this.length())return this.remove();this.children.forEachAt(b,e,function(n,h,ba){n.deleteAt(h,ba)})};a.prototype.descendant=function(b,e){var n=this.children.find(e);e=n[0];n=n[1];return null==b.blotName&&b(e)||null!=b.blotName&&e instanceof b?[e,n]:e instanceof a?e.descendant(b,n):[null,-1]};a.prototype.descendants=function(b,e,n){void 0===e&&(e=
|
|
122
|
+
0);void 0===n&&(n=Number.MAX_VALUE);var h=[],ba=n;this.children.forEachAt(e,n,function(y,aa,fa){(null==b.blotName&&b(y)||null!=b.blotName&&y instanceof b)&&h.push(y);y instanceof a&&(h=h.concat(y.descendants(b,aa,ba)));ba-=fa});return h};a.prototype.detach=function(){this.children.forEach(function(b){b.detach()});f.prototype.detach.call(this)};a.prototype.formatAt=function(b,e,n,h){this.children.forEachAt(b,e,function(ba,y,aa){ba.formatAt(y,aa,n,h)})};a.prototype.insertAt=function(b,e,n){var h=this.children.find(b);
|
|
123
|
+
b=h[0];h=h[1];b?b.insertAt(h,e,n):(e=null==n?x.create("text",e):x.create(e,n),this.appendChild(e))};a.prototype.insertBefore=function(b,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(n){return b instanceof n}))throw new x.ParchmentError("Cannot insert "+b.statics.blotName+" into "+this.statics.blotName);b.insertInto(this,e)};a.prototype.length=function(){return this.children.reduce(function(b,e){return b+e.length()},0)};a.prototype.moveChildren=function(b,e){this.children.forEach(function(n){b.insertBefore(n,
|
|
124
|
+
e)})};a.prototype.optimize=function(b){f.prototype.optimize.call(this,b);if(0===this.children.length)if(null!=this.statics.defaultChild){var e=x.create(this.statics.defaultChild);this.appendChild(e);e.optimize(b)}else this.remove()};a.prototype.path=function(b,e){void 0===e&&(e=!1);var n=this.children.find(b,e),h=n[0];n=n[1];b=[[this,b]];if(h instanceof a)return b.concat(h.path(n,e));null!=h&&b.push([h,n]);return b};a.prototype.removeChild=function(b){this.children.remove(b)};a.prototype.replace=
|
|
125
|
+
function(b){b instanceof a&&b.moveChildren(this);f.prototype.replace.call(this,b)};a.prototype.split=function(b,e){void 0===e&&(e=!1);if(!e){if(0===b)return this;if(b===this.length())return this.next}var n=this.clone();this.parent.insertBefore(n,this.next);this.children.forEachAt(b,this.length(),function(h,ba){h=h.split(ba,e);n.appendChild(h)});return n};a.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};a.prototype.update=function(b){var e=this,n=[],h=[];b.forEach(function(ba){ba.target===
|
|
126
|
+
e.domNode&&"childList"===ba.type&&(n.push.apply(n,ba.addedNodes),h.push.apply(h,ba.removedNodes))});h.forEach(function(ba){null!=ba.parentNode&&"IFRAME"!==ba.tagName&&document.body.compareDocumentPosition(ba)&Node.DOCUMENT_POSITION_CONTAINED_BY||(ba=x.find(ba),null!=ba&&(null!=ba.domNode.parentNode&&ba.domNode.parentNode!==e.domNode||ba.detach()))});n.filter(function(ba){return ba.parentNode==e.domNode}).sort(function(ba,y){return ba===y?0:ba.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_FOLLOWING?
|
|
127
|
+
1:-1}).forEach(function(ba){var y=null;null!=ba.nextSibling&&(y=x.find(ba.nextSibling));ba=da(ba);if(ba.next!=y||null==ba.next)null!=ba.parent&&ba.parent.removeChild(e),e.insertBefore(ba,y||void 0)})};return a}(la.default);ka.default=ha},function(la,ka,ha){var da=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return function(a,b){function e(){this.constructor=
|
|
128
|
+
a}f(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});var z=ha(12),w=ha(31);la=ha(17);var x=ha(1);ha=function(f){function a(b){b=f.call(this,b)||this;b.attributes=new w.default(b.domNode);return b}da(a,f);a.formats=function(b){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return b.tagName.toLowerCase()};a.prototype.format=function(b,e){var n=x.query(b);n instanceof z.default?this.attributes.attribute(n,
|
|
129
|
+
e):e&&(null==n||b===this.statics.blotName&&this.formats()[b]===e||this.replaceWith(b,e))};a.prototype.formats=function(){var b=this.attributes.values(),e=this.statics.formats(this.domNode);null!=e&&(b[this.statics.blotName]=e);return b};a.prototype.replaceWith=function(b,e){b=f.prototype.replaceWith.call(this,b,e);this.attributes.copy(b);return b};a.prototype.update=function(b,e){var n=this;f.prototype.update.call(this,b,e);b.some(function(h){return h.target===n.domNode&&"attributes"===h.type})&&
|
|
130
|
+
this.attributes.build()};a.prototype.wrap=function(b,e){b=f.prototype.wrap.call(this,b,e);b instanceof a&&b.statics.scope===this.statics.scope&&this.attributes.move(b);return b};return a}(la.default);ka.default=ha},function(la,ka,ha){var da=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,f){x.__proto__=f}||function(x,f){for(var a in f)f.hasOwnProperty(a)&&(x[a]=f[a])};return function(x,f){function a(){this.constructor=x}w(x,f);x.prototype=null===
|
|
131
|
+
f?Object.create(f):(a.prototype=f.prototype,new a)}}();Object.defineProperty(ka,"__esModule",{value:!0});la=ha(30);var z=ha(1);ha=function(w){function x(){return null!==w&&w.apply(this,arguments)||this}da(x,w);x.value=function(){return!0};x.prototype.index=function(f,a){return this.domNode===f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(a,1):-1};x.prototype.position=function(f){var a=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<f&&(a+=1);
|
|
132
|
+
return[this.parent.domNode,a]};x.prototype.value=function(){var f;return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f};x.scope=z.Scope.INLINE_BLOT;return x}(la.default);ka.default=ha},function(la,ka,ha){function da(f){this.ops=f;this.offset=this.index=0}var z=ha(11),w=ha(3),x={attributes:{compose:function(f,a,b){"object"!==typeof f&&(f={});"object"!==typeof a&&(a={});var e=w(!0,{},a);b||(e=Object.keys(e).reduce(function(h,ba){null!=e[ba]&&(h[ba]=e[ba]);return h},{}));for(var n in f)void 0!==
|
|
133
|
+
f[n]&&void 0===a[n]&&(e[n]=f[n]);return 0<Object.keys(e).length?e:void 0},diff:function(f,a){"object"!==typeof f&&(f={});"object"!==typeof a&&(a={});var b=Object.keys(f).concat(Object.keys(a)).reduce(function(e,n){z(f[n],a[n])||(e[n]=void 0===a[n]?null:a[n]);return e},{});return 0<Object.keys(b).length?b:void 0},transform:function(f,a,b){if("object"!==typeof f)return a;if("object"===typeof a){if(!b)return a;b=Object.keys(a).reduce(function(e,n){void 0===f[n]&&(e[n]=a[n]);return e},{});return 0<Object.keys(b).length?
|
|
134
|
+
b:void 0}}},iterator:function(f){return new da(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}};da.prototype.hasNext=function(){return Infinity>this.peekLength()};da.prototype.next=function(f){f||(f=Infinity);var a=this.ops[this.index];if(a){var b=this.offset,e=x.length(a);f>=e-b?(f=e-b,this.index+=1,this.offset=0):this.offset+=f;if("number"===typeof a["delete"])return{"delete":f};e={};a.attributes&&
|
|
135
|
+
(e.attributes=a.attributes);"number"===typeof a.retain?e.retain=f:e.insert="string"===typeof a.insert?a.insert.substr(b,f):a.insert;return e}return{retain:Infinity}};da.prototype.peek=function(){return this.ops[this.index]};da.prototype.peekLength=function(){return this.ops[this.index]?x.length(this.ops[this.index])-this.offset:Infinity};da.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
|
+
da.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var f=this.offset,a=this.index,b=this.next(),e=this.ops.slice(this.index);this.offset=f;this.index=a;return[b].concat(e)}return[]};la.exports=x},function(la){var ka=function(){function ha(b,e){return null!=e&&b instanceof e}function da(b,e,n,h,ba){function y(ea,ia){if(null===ea)return null;if(0===ia||"object"!=typeof ea)return ea;if(ha(ea,x))var ja=new x;else if(ha(ea,f))ja=new f;else if(ha(ea,a))ja=
|
|
137
|
+
new a(function(ua,pa){ea.then(function(qa){ua(y(qa,ia-1))},function(qa){pa(y(qa,ia-1))})});else if(da.__isArray(ea))ja=[];else if(da.__isRegExp(ea))ja=new RegExp(ea.source,w(ea)),ea.lastIndex&&(ja.lastIndex=ea.lastIndex);else if(da.__isDate(ea))ja=new Date(ea.getTime());else{if(ca&&oa.isBuffer(ea))return ja=oa.allocUnsafe?oa.allocUnsafe(ea.length):new oa(ea.length),ea.copy(ja),ja;if(ha(ea,Error))ja=Object.create(ea);else if("undefined"==typeof h){var na=Object.getPrototypeOf(ea);ja=Object.create(na)}else ja=
|
|
138
|
+
Object.create(h),na=h}if(e){var ma=aa.indexOf(ea);if(-1!=ma)return fa[ma];aa.push(ea);fa.push(ja)}ha(ea,x)&&ea.forEach(function(ua,pa){pa=y(pa,ia-1);ua=y(ua,ia-1);ja.set(pa,ua)});ha(ea,f)&&ea.forEach(function(ua){ua=y(ua,ia-1);ja.add(ua)});for(var ra in ea){var sa;na&&(sa=Object.getOwnPropertyDescriptor(na,ra));sa&&null==sa.set||(ja[ra]=y(ea[ra],ia-1))}if(Object.getOwnPropertySymbols)for(ma=Object.getOwnPropertySymbols(ea),ra=0;ra<ma.length;ra++)if(sa=ma[ra],na=Object.getOwnPropertyDescriptor(ea,
|
|
139
|
+
sa),!na||na.enumerable||ba)ja[sa]=y(ea[sa],ia-1),na.enumerable||Object.defineProperty(ja,sa,{enumerable:!1});if(ba)for(ma=Object.getOwnPropertyNames(ea),ra=0;ra<ma.length;ra++)sa=ma[ra],na=Object.getOwnPropertyDescriptor(ea,sa),na&&na.enumerable||(ja[sa]=y(ea[sa],ia-1),Object.defineProperty(ja,sa,{enumerable:!1}));return ja}"object"===typeof e&&(n=e.depth,h=e.prototype,ba=e.includeNonEnumerable,e=e.circular);var aa=[],fa=[],ca="undefined"!=typeof oa;"undefined"==typeof e&&(e=!0);"undefined"==typeof n&&
|
|
140
|
+
(n=Infinity);return y(b,n)}function z(b){return Object.prototype.toString.call(b)}function w(b){var e="";b.global&&(e+="g");b.ignoreCase&&(e+="i");b.multiline&&(e+="m");return e}try{var x=Map}catch(b){x=function(){}}try{var f=Set}catch(b){f=function(){}}try{var a=Promise}catch(b){a=function(){}}da.clonePrototype=function(b){function e(){}if(null===b)return null;e.prototype=b;return new e};da.__objToStr=z;da.__isDate=function(b){return"object"===typeof b&&"[object Date]"===z(b)};da.__isArray=function(b){return"object"===
|
|
141
|
+
typeof b&&"[object Array]"===z(b)};da.__isRegExp=function(b){return"object"===typeof b&&"[object RegExp]"===z(b)};da.__getRegExpFlags=w;return da}();"object"===typeof la&&la.exports&&(la.exports=ka)},function(la,ka,ha){function da(fa){return fa&&fa.__esModule?fa:{default:fa}}function z(fa,ca){if(!fa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&"function"!==typeof ca?fa:ca}function w(fa,ca){if("function"!==typeof ca&&null!==
|
|
142
|
+
ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);fa.prototype=Object.create(ca&&ca.prototype,{constructor:{value:fa,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(fa,ca):fa.__proto__=ca)}function x(fa){return fa instanceof ba.default||fa instanceof h.BlockEmbed}Object.defineProperty(ka,"__esModule",{value:!0});var f=function(){return function(fa,ca){if(Array.isArray(fa))return fa;if(Symbol.iterator in Object(fa)){var ea=
|
|
143
|
+
[],ia=!0,ja=!1,na=void 0;try{for(var ma=fa[Symbol.iterator](),ra;!(ia=(ra=ma.next()).done)&&(ea.push(ra.value),!ca||ea.length!==ca);ia=!0);}catch(sa){ja=!0,na=sa}finally{try{if(!ia&&ma["return"])ma["return"]()}finally{if(ja)throw na;}}return ea}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),a=function(){function fa(ca,ea){for(var ia=0;ia<ea.length;ia++){var ja=ea[ia];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,
|
|
144
|
+
ja.key,ja)}}return function(ca,ea,ia){ea&&fa(ca.prototype,ea);ia&&fa(ca,ia);return ca}}(),b=function ja(ca,ea,ia){null===ca&&(ca=Function.prototype);var na=Object.getOwnPropertyDescriptor(ca,ea);if(void 0===na){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,ea,ia)}else{if("value"in na)return na.value;ea=na.get;return void 0===ea?void 0:ea.call(ia)}};la=ha(0);var e=da(la);la=ha(8);var n=da(la),h=ha(4),ba=da(h);la=ha(16);var y=da(la);la=ha(13);var aa=da(la);ha=ha(25);ha=da(ha);la=function(ca){function ea(ia,
|
|
145
|
+
ja){if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");ia=z(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ia));ia.emitter=ja.emitter;Array.isArray(ja.whitelist)&&(ia.whitelist=ja.whitelist.reduce(function(na,ma){na[ma]=!0;return na},{}));ia.domNode.addEventListener("DOMNodeInserted",function(){});ia.optimize();ia.enable();return ia}w(ea,ca);a(ea,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
|
|
146
|
+
{key:"deleteAt",value:function(ia,ja){var na=this.line(ia),ma=f(na,2);na=ma[0];var ra=ma[1];ma=this.line(ia+ja);ma=f(ma,1)[0];b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ia,ja);if(null!=ma&&na!==ma&&0<ra){if(na instanceof h.BlockEmbed||ma instanceof h.BlockEmbed){this.optimize();return}if(na instanceof aa.default){if(ia=na.newlineIndex(na.length(),!0),-1<ia&&(na=na.split(ia+1),na===ma)){this.optimize();return}}else ma instanceof aa.default&&(ia=ma.newlineIndex(0),
|
|
147
|
+
-1<ia&&ma.split(ia+1));na.moveChildren(ma,ma.children.head instanceof y.default?null:ma.children.head);na.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,ja,na,ma){if(null==this.whitelist||this.whitelist[na])b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ia,ja,na,ma),this.optimize()}},{key:"insertAt",value:function(ia,
|
|
148
|
+
ja,na){if(null==na||null==this.whitelist||this.whitelist[ja])ia>=this.length()?null==na||null==e.default.query(ja,e.default.Scope.BLOCK)?(ia=e.default.create(this.statics.defaultChild),this.appendChild(ia),null==na&&ja.endsWith("\n")&&(ja=ja.slice(0,-1)),ia.insertAt(0,ja,na)):(ja=e.default.create(ja,na),this.appendChild(ja)):b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ia,ja,na),this.optimize()}},{key:"insertBefore",value:function(ia,ja){if(ia.statics.scope===
|
|
149
|
+
e.default.Scope.INLINE_BLOT){var na=e.default.create(this.statics.defaultChild);na.appendChild(ia);ia=na}b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ia,ja)}},{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(x,ia)}},{key:"lines",value:function(){return function ra(ja,na,ma){var sa=[],ua=ma;ja.children.forEachAt(na,ma,function(pa,qa,wa){x(pa)?
|
|
150
|
+
sa.push(pa):pa instanceof e.default.Container&&(sa=sa.concat(ra(pa,qa,ua)));ua-=wa});return sa}(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]:[],ja=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ia,
|
|
151
|
+
ja),0<ia.length&&this.emitter.emit(n.default.events.SCROLL_OPTIMIZE,ia,ja))}},{key:"path",value:function(ia){return b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ia).slice(1)}},{key:"update",value:function(ia){if(!0!==this.batch){var ja=n.default.sources.USER;"string"===typeof ia&&(ja=ia);Array.isArray(ia)||(ia=this.observer.takeRecords());0<ia.length&&this.emitter.emit(n.default.events.SCROLL_BEFORE_UPDATE,ja,ia);b(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
|
|
152
|
+
"update",this).call(this,ia.concat([]));0<ia.length&&this.emitter.emit(n.default.events.SCROLL_UPDATE,ja,ia)}}}]);return ea}(e.default.Scroll);la.blotName="scroll";la.className="ql-editor";la.tagName="DIV";la.defaultChild="block";la.allowedChildren=[ba.default,h.BlockEmbed,ha.default];ka.default=la},function(la,ka,ha){function da(wa){return wa&&wa.__esModule?wa:{default:wa}}function z(wa,Fa,Ia){Fa in wa?Object.defineProperty(wa,Fa,{value:Ia,enumerable:!0,configurable:!0,writable:!0}):wa[Fa]=Ia;return wa}
|
|
153
|
+
function w(wa,Fa){if(!wa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Fa||"object"!==typeof Fa&&"function"!==typeof Fa?wa:Fa}function x(wa,Fa){if("function"!==typeof Fa&&null!==Fa)throw new TypeError("Super expression must either be null or a function, not "+typeof Fa);wa.prototype=Object.create(Fa&&Fa.prototype,{constructor:{value:wa,enumerable:!1,writable:!0,configurable:!0}});Fa&&(Object.setPrototypeOf?Object.setPrototypeOf(wa,Fa):wa.__proto__=Fa)}
|
|
154
|
+
function f(wa,Fa){var Ia,Ga=wa===qa.keys.LEFT?"prefix":"suffix";return Ia={key:wa,shiftKey:Fa,altKey:null},z(Ia,Ga,/^$/),z(Ia,"handler",function(Ea){var Na=Ea.index;wa===qa.keys.RIGHT&&(Na+=Ea.length+1);Na=this.quill.getLeaf(Na);if(!(fa(Na,1)[0]instanceof ra.default.Embed))return!0;wa===qa.keys.LEFT?Fa?this.quill.setSelection(Ea.index-1,Ea.length+1,sa.default.sources.USER):this.quill.setSelection(Ea.index-1,sa.default.sources.USER):Fa?this.quill.setSelection(Ea.index,Ea.length+1,sa.default.sources.USER):
|
|
155
|
+
this.quill.setSelection(Ea.index+Ea.length+1,sa.default.sources.USER);return!1}),Ia}function a(wa,Fa){if(!(0===wa.index||1>=this.quill.getLength())){var Ia=this.quill.getLine(wa.index),Ga=fa(Ia,1)[0];Ia={};if(0===Fa.offset){var Ea=this.quill.getLine(wa.index-1);Ea=fa(Ea,1)[0];null!=Ea&&1<Ea.length()&&(Ia=Ga.formats(),Ga=this.quill.getFormat(wa.index-1,1),Ia=ma.default.attributes.diff(Ia,Ga)||{})}Fa=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Fa.prefix)?2:1;this.quill.deleteText(wa.index-Fa,Fa,sa.default.sources.USER);
|
|
156
|
+
0<Object.keys(Ia).length&&this.quill.formatLine(wa.index-Fa,Fa,Ia,sa.default.sources.USER);this.quill.focus()}}function b(wa,Fa){var Ia=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Fa.suffix)?2:1;if(!(wa.index>=this.quill.getLength()-Ia)){var Ga={},Ea=0,Na=this.quill.getLine(wa.index);Na=fa(Na,1)[0];Fa.offset>=Na.length()-1&&(Fa=this.quill.getLine(wa.index+1),Fa=fa(Fa,1)[0])&&(Ga=Na.formats(),Ea=this.quill.getFormat(wa.index,1),Ga=ma.default.attributes.diff(Ga,Ea)||{},Ea=Fa.length());this.quill.deleteText(wa.index,
|
|
157
|
+
Ia,sa.default.sources.USER);0<Object.keys(Ga).length&&this.quill.formatLine(wa.index+Ea-1,Ia,Ga,sa.default.sources.USER)}}function e(wa){var Fa=this.quill.getLines(wa),Ia={};1<Fa.length&&(Ia=Fa[0].formats(),Fa=Fa[Fa.length-1].formats(),Ia=ma.default.attributes.diff(Fa,Ia)||{});this.quill.deleteText(wa,sa.default.sources.USER);0<Object.keys(Ia).length&&this.quill.formatLine(wa.index,1,Ia,sa.default.sources.USER);this.quill.setSelection(wa.index,sa.default.sources.SILENT);this.quill.focus()}function n(wa,
|
|
158
|
+
Fa){var Ia=this;0<wa.length&&this.quill.scroll.deleteAt(wa.index,wa.length);var Ga=Object.keys(Fa.format).reduce(function(Ea,Na){ra.default.query(Na,ra.default.Scope.BLOCK)&&!Array.isArray(Fa.format[Na])&&(Ea[Na]=Fa.format[Na]);return Ea},{});this.quill.insertText(wa.index,"\n",Ga,sa.default.sources.USER);this.quill.setSelection(wa.index+1,sa.default.sources.SILENT);this.quill.focus();Object.keys(Fa.format).forEach(function(Ea){null==Ga[Ea]&&(Array.isArray(Fa.format[Ea])||"link"!==Ea&&Ia.quill.format(Ea,
|
|
159
|
+
Fa.format[Ea],sa.default.sources.USER))})}function h(wa){return{key:qa.keys.TAB,shiftKey:!wa,format:{"code-block":!0},handler:function(Fa){var Ia=ra.default.query("code-block"),Ga=Fa.index,Ea=Fa.length;Fa=this.quill.scroll.descendant(Ia,Ga);Fa=fa(Fa,2);var Na=Fa[0],Oa=Fa[1];if(null!=Na){Fa=this.quill.getIndex(Na);var La=Na.newlineIndex(Oa,!0)+1;Fa=Na.newlineIndex(Fa+Oa+Ea);Fa=Na.domNode.textContent.slice(La,Fa).split("\n");Oa=0;Fa.forEach(function(Ba,Ma){wa?(Na.insertAt(La+Oa,Ia.TAB),Oa+=Ia.TAB.length,
|
|
160
|
+
0===Ma?Ga+=Ia.TAB.length:Ea+=Ia.TAB.length):Ba.startsWith(Ia.TAB)&&(Na.deleteAt(La+Oa,Ia.TAB.length),Oa-=Ia.TAB.length,0===Ma?Ga-=Ia.TAB.length:Ea-=Ia.TAB.length);Oa+=Ba.length+1});this.quill.update(sa.default.sources.USER);this.quill.setSelection(Ga,Ea,sa.default.sources.SILENT)}}}}function ba(wa){return{key:wa[0].toUpperCase(),shortKey:!0,handler:function(Fa,Ia){this.quill.format(wa,!Ia.format[wa],sa.default.sources.USER)}}}function y(wa){if("string"===typeof wa||"number"===typeof wa)return y({key:wa});
|
|
161
|
+
"object"===("undefined"===typeof wa?"undefined":aa(wa))&&(wa=(0,ea.default)(wa,!1));if("string"===typeof wa.key)if(null!=qa.keys[wa.key.toUpperCase()])wa.key=qa.keys[wa.key.toUpperCase()];else if(1===wa.key.length)wa.key=wa.key.toUpperCase().charCodeAt(0);else return null;wa.shortKey&&(wa[pa]=wa.shortKey,delete wa.shortKey);return wa}Object.defineProperty(ka,"__esModule",{value:!0});ka.SHORTKEY=ka.default=void 0;var aa="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},fa=function(){return function(wa,Fa){if(Array.isArray(wa))return wa;if(Symbol.iterator in Object(wa)){var Ia=[],Ga=!0,Ea=!1,Na=void 0;try{for(var Oa=wa[Symbol.iterator](),La;!(Ga=(La=Oa.next()).done)&&(Ia.push(La.value),!Fa||Ia.length!==Fa);Ga=!0);}catch(Ba){Ea=!0,Na=Ba}finally{try{if(!Ga&&Oa["return"])Oa["return"]()}finally{if(Ea)throw Na;}}return Ia}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
163
|
+
}}(),ca=function(){function wa(Fa,Ia){for(var Ga=0;Ga<Ia.length;Ga++){var Ea=Ia[Ga];Ea.enumerable=Ea.enumerable||!1;Ea.configurable=!0;"value"in Ea&&(Ea.writable=!0);Object.defineProperty(Fa,Ea.key,Ea)}}return function(Fa,Ia,Ga){Ia&&wa(Fa.prototype,Ia);Ga&&wa(Fa,Ga);return Fa}}();la=ha(21);var ea=da(la);la=ha(11);var ia=da(la);la=ha(3);var ja=da(la);la=ha(2);var na=da(la);la=ha(20);var ma=da(la);la=ha(0);var ra=da(la);la=ha(5);var sa=da(la);la=ha(10);la=da(la);ha=ha(9);ha=da(ha);var ua=(0,la.default)("quill:keyboard"),
|
|
164
|
+
pa=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",qa=function(wa){function Fa(Ia,Ga){if(!(this instanceof Fa))throw new TypeError("Cannot call a class as a function");var Ea=w(this,(Fa.__proto__||Object.getPrototypeOf(Fa)).call(this,Ia,Ga));Ea.bindings={};Object.keys(Ea.options.bindings).forEach(function(Na){("list autofill"!==Na||null==Ia.scroll.whitelist||Ia.scroll.whitelist.list)&&Ea.options.bindings[Na]&&Ea.addBinding(Ea.options.bindings[Na])});Ea.addBinding({key:Fa.keys.ENTER,shiftKey:null},
|
|
165
|
+
n);Ea.addBinding({key:Fa.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Ea.addBinding({key:Fa.keys.BACKSPACE},{collapsed:!0},a),Ea.addBinding({key:Fa.keys.DELETE},{collapsed:!0},b)):(Ea.addBinding({key:Fa.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},a),Ea.addBinding({key:Fa.keys.DELETE},{collapsed:!0,suffix:/^.?$/},b));Ea.addBinding({key:Fa.keys.BACKSPACE},{collapsed:!1},e);Ea.addBinding({key:Fa.keys.DELETE},{collapsed:!1},e);Ea.addBinding({key:Fa.keys.BACKSPACE,
|
|
166
|
+
altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},a);Ea.listen();return Ea}x(Fa,wa);ca(Fa,null,[{key:"match",value:function(Ia,Ga){Ga=y(Ga);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Ea){return!!Ga[Ea]!==Ia[Ea]&&null!==Ga[Ea]})?!1:Ga.key===(Ia.which||Ia.keyCode)}}]);ca(Fa,[{key:"addBinding",value:function(Ia){var Ga=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Ea=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Na=y(Ia);if(null==
|
|
167
|
+
Na||null==Na.key)return ua.warn("Attempted to add invalid keyboard binding",Na);"function"===typeof Ga&&(Ga={handler:Ga});"function"===typeof Ea&&(Ea={handler:Ea});Na=(0,ja.default)(Na,Ga,Ea);this.bindings[Na.key]=this.bindings[Na.key]||[];this.bindings[Na.key].push(Na)}},{key:"listen",value:function(){var Ia=this;this.quill.root.addEventListener("keydown",function(Ga){if(!Ga.defaultPrevented){var Ea=(Ia.bindings[Ga.which||Ga.keyCode]||[]).filter(function(Da){return Fa.match(Ga,Da)});if(0!==Ea.length){var Na=
|
|
168
|
+
Ia.quill.getSelection();if(null!=Na&&Ia.quill.hasFocus()){var Oa=Ia.quill.getLine(Na.index),La=fa(Oa,2);Oa=La[0];La=La[1];var Ba=Ia.quill.getLeaf(Na.index),Ma=fa(Ba,2);Ba=Ma[0];Ma=Ma[1];var Ja=0===Na.length?[Ba,Ma]:Ia.quill.getLeaf(Na.index+Na.length),Ka=fa(Ja,2);Ja=Ka[0];Ka=Ka[1];Ba=Ba instanceof ra.default.Text?Ba.value().slice(0,Ma):"";Ma=Ja instanceof ra.default.Text?Ja.value().slice(Ka):"";var xa={collapsed:0===Na.length,empty:0===Na.length&&1>=Oa.length(),format:Ia.quill.getFormat(Na),offset:La,
|
|
169
|
+
prefix:Ba,suffix:Ma};Ea.some(function(Da){if(null!=Da.collapsed&&Da.collapsed!==xa.collapsed||null!=Da.empty&&Da.empty!==xa.empty||null!=Da.offset&&Da.offset!==xa.offset)return!1;if(Array.isArray(Da.format)){if(Da.format.every(function(Ta){return null==xa.format[Ta]}))return!1}else if("object"===aa(Da.format)&&!Object.keys(Da.format).every(function(Ta){return!0===Da.format[Ta]?null!=xa.format[Ta]:!1===Da.format[Ta]?null==xa.format[Ta]:(0,ia.default)(Da.format[Ta],xa.format[Ta])}))return!1;return null!=
|
|
170
|
+
Da.prefix&&!Da.prefix.test(xa.prefix)||null!=Da.suffix&&!Da.suffix.test(xa.suffix)?!1:!0!==Da.handler.call(Ia,Na,xa)})&&Ga.preventDefault()}}}})}}]);return Fa}(ha.default);qa.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};qa.DEFAULTS={bindings:{bold:ba("bold"),italic:ba("italic"),underline:ba("underline"),indent:{key:qa.keys.TAB,format:["blockquote","indent","list"],handler:function(wa,Fa){if(Fa.collapsed&&0!==Fa.offset)return!0;this.quill.format("indent","+1",
|
|
171
|
+
sa.default.sources.USER)}},outdent:{key:qa.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(wa,Fa){if(Fa.collapsed&&0!==Fa.offset)return!0;this.quill.format("indent","-1",sa.default.sources.USER)}},"outdent backspace":{key:qa.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(wa,Fa){null!=Fa.format.indent?this.quill.format("indent","-1",sa.default.sources.USER):null!=Fa.format.list&&this.quill.format("list",
|
|
172
|
+
!1,sa.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:qa.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(wa){this.quill.deleteText(wa.index-1,1,sa.default.sources.USER)}},tab:{key:qa.keys.TAB,handler:function(wa){this.quill.history.cutoff();var Fa=(new na.default).retain(wa.index).delete(wa.length).insert("\t");this.quill.updateContents(Fa,sa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index+1,sa.default.sources.SILENT)}},
|
|
173
|
+
"list empty enter":{key:qa.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(wa,Fa){this.quill.format("list",!1,sa.default.sources.USER);Fa.format.indent&&this.quill.format("indent",!1,sa.default.sources.USER)}},"checklist enter":{key:qa.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(wa){var Fa=this.quill.getLine(wa.index),Ia=fa(Fa,2);Fa=Ia[0];Ia=Ia[1];var Ga=(0,ja.default)({},Fa.formats(),{list:"checked"});Fa=(new na.default).retain(wa.index).insert("\n",Ga).retain(Fa.length()-
|
|
174
|
+
Ia-1).retain(1,{list:"unchecked"});this.quill.updateContents(Fa,sa.default.sources.USER);this.quill.setSelection(wa.index+1,sa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:qa.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(wa,Fa){var Ia=this.quill.getLine(wa.index),Ga=fa(Ia,2);Ia=Ga[0];Ga=Ga[1];Fa=(new na.default).retain(wa.index).insert("\n",Fa.format).retain(Ia.length()-Ga-1).retain(1,{header:null});this.quill.updateContents(Fa,sa.default.sources.USER);
|
|
175
|
+
this.quill.setSelection(wa.index+1,sa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(wa,Fa){var Ia=Fa.prefix.length,Ga=this.quill.getLine(wa.index),Ea=fa(Ga,2);Ga=Ea[0];Ea=Ea[1];if(Ea>Ia)return!0;switch(Fa.prefix.trim()){case "[]":case "[ ]":Fa="unchecked";break;case "[x]":Fa="checked";break;case "-":case "*":Fa="bullet";break;default:Fa="ordered"}this.quill.insertText(wa.index,
|
|
176
|
+
" ",sa.default.sources.USER);this.quill.history.cutoff();Fa=(new na.default).retain(wa.index-Ea).delete(Ia+1).retain(Ga.length()-2-Ea).retain(1,{list:Fa});this.quill.updateContents(Fa,sa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(wa.index-Ia,sa.default.sources.SILENT)}},"code exit":{key:qa.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(wa){var Fa=this.quill.getLine(wa.index),Ia=fa(Fa,2);Fa=Ia[0];Ia=Ia[1];wa=(new na.default).retain(wa.index+
|
|
177
|
+
Fa.length()-Ia-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(wa,sa.default.sources.USER)}},"embed left":f(qa.keys.LEFT,!1),"embed left shift":f(qa.keys.LEFT,!0),"embed right":f(qa.keys.RIGHT,!1),"embed right shift":f(qa.keys.RIGHT,!0)}};ka.default=qa;ka.SHORTKEY=pa},function(la,ka,ha){function da(b,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);b.prototype=Object.create(e&&e.prototype,{constructor:{value:b,
|
|
178
|
+
enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){return function(b,e){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b)){var n=[],h=!0,ba=!1,y=void 0;try{for(var aa=b[Symbol.iterator](),fa;!(h=(fa=aa.next()).done)&&(n.push(fa.value),!e||n.length!==e);h=!0);}catch(ca){ba=!0,y=ca}finally{try{if(!h&&aa["return"])aa["return"]()}finally{if(ba)throw y;}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
179
|
+
}}(),w=function ba(e,n,h){null===e&&(e=Function.prototype);var y=Object.getOwnPropertyDescriptor(e,n);if(void 0===y){if(e=Object.getPrototypeOf(e),null!==e)return ba(e,n,h)}else{if("value"in y)return y.value;n=y.get;return void 0===n?void 0:n.call(h)}},x=function(){function e(n,h){for(var ba=0;ba<h.length;ba++){var y=h[ba];y.enumerable=y.enumerable||!1;y.configurable=!0;"value"in y&&(y.writable=!0);Object.defineProperty(n,y.key,y)}}return function(n,h,ba){h&&e(n.prototype,h);ba&&e(n,ba);return n}}(),
|
|
180
|
+
f=(la=ha(0))&&la.__esModule?la:{default:la},a=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(e){function n(h,ba){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");h=(n.__proto__||Object.getPrototypeOf(n)).call(this,h);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");h=!h||"object"!==typeof h&&"function"!==typeof h?this:h;h.selection=ba;h.textNode=document.createTextNode(n.CONTENTS);h.domNode.appendChild(h.textNode);
|
|
181
|
+
h._length=0;return h}da(n,e);x(n,null,[{key:"value",value:function(){}}]);x(n,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(h,ba){if(0!==this._length)return w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,h,ba);for(var y=this,aa=0;null!=y&&y.statics.scope!==f.default.Scope.BLOCK_BLOT;)aa+=y.offset(y.parent),y=y.parent;null!=y&&(this._length=n.CONTENTS.length,y.optimize(),y.formatAt(aa,n.CONTENTS.length,
|
|
182
|
+
h,ba),this._length=0)}},{key:"index",value:function(h,ba){return h===this.textNode?0:w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,h,ba)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&
|
|
183
|
+
null!=this.parent){var h=this.textNode,ba=this.selection.getNativeRange(),y=void 0,aa=void 0,fa=void 0;null!=ba&&ba.start.node===h&&ba.end.node===h&&(fa=[h,ba.start.offset,ba.end.offset],y=fa[0],aa=fa[1],fa=fa[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==n.CONTENTS&&(h=this.textNode.data.split(n.CONTENTS).join(""),this.next instanceof a.default?(y=this.next.domNode,this.next.insertAt(0,
|
|
184
|
+
h),this.textNode.data=n.CONTENTS):(this.textNode.data=h,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(n.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=aa)return aa=[aa,fa].map(function(ca){return Math.max(0,Math.min(y.data.length,ca-1))}),fa=z(aa,2),aa=fa[0],fa=fa[1],{startNode:y,startOffset:aa,endNode:y,endOffset:fa}}}},{key:"update",value:function(h,ba){var y=this;h.some(function(aa){return"characterData"===aa.type&&
|
|
185
|
+
aa.target===y.textNode})&&(h=this.restore())&&(ba.range=h)}},{key:"value",value:function(){return""}}]);return n}(f.default.Embed);ha.blotName="cursor";ha.className="ql-cursor";ha.tagName="span";ha.CONTENTS="\ufeff";ka.default=ha},function(la,ka,ha){function da(w,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});x&&
|
|
186
|
+
(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}Object.defineProperty(ka,"__esModule",{value:!0});la=(la=ha(0))&&la.__esModule?la:{default:la};var z=(ha=ha(4))&&ha.__esModule?ha:{default:ha};la=function(w){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var f=(x.__proto__||Object.getPrototypeOf(x)).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}da(x,w);return x}(la.default.Container);la.allowedChildren=[z.default,ha.BlockEmbed,la];ka.default=la},function(la,ka,ha){function da(f,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}Object.defineProperty(ka,
|
|
188
|
+
"__esModule",{value:!0});ka.ColorStyle=ka.ColorClass=ka.ColorAttributor=void 0;var z=function(){function f(a,b){for(var e=0;e<b.length;e++){var n=b[e];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,e){b&&f(a.prototype,b);e&&f(a,e);return a}}(),w=function n(a,b,e){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,b);if(void 0===h){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,e)}else{if("value"in
|
|
189
|
+
h)return h.value;b=h.get;return void 0===b?void 0:b.call(e)}},x=function(a){return a&&a.__esModule?a:{default:a}}(ha(0));la=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);z(b,[{key:"value",value:function(e){e=w(b.prototype.__proto__||
|
|
190
|
+
Object.getPrototypeOf(b.prototype),"value",this).call(this,e);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+e.split(",").map(function(n){return("00"+parseInt(n).toString(16)).slice(-2)}).join("")}}]);return b}(x.default.Attributor.Style);ha=new x.default.Attributor.Class("color","ql-color",{scope:x.default.Scope.INLINE});x=new la("color","color",{scope:x.default.Scope.INLINE});ka.ColorAttributor=la;ka.ColorClass=ha;ka.ColorStyle=x},function(la,ka,ha){function da(f,
|
|
191
|
+
a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}function z(f,a){var b=document.createElement("a");b.href=f;f=b.href.slice(0,b.href.indexOf(":"));return-1<a.indexOf(f)}Object.defineProperty(ka,"__esModule",{value:!0});ka.sanitize=ka.default=void 0;
|
|
192
|
+
var w=function(){function f(a,b){for(var e=0;e<b.length;e++){var n=b[e];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,e){b&&f(a.prototype,b);e&&f(a,e);return a}}(),x=function n(a,b,e){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,b);if(void 0===h){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,e)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(e)}};la=function(a){function b(){if(!(this instanceof
|
|
193
|
+
b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);w(b,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n);this.domNode.setAttribute("href",
|
|
194
|
+
n)}}],[{key:"create",value:function(e){var n=x(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,e);e=this.sanitize(e);n.setAttribute("href",e);n.setAttribute("rel","noopener noreferrer");n.setAttribute("target","_blank");return n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return z(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(6)).default);la.blotName="link";
|
|
195
|
+
la.tagName="A";la.SANITIZED_URL="about:blank";la.PROTOCOL_WHITELIST=["http","https","mailto","tel"];ka.default=la;ka.sanitize=z},function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},z=function(){function a(b,e){for(var n=0;n<e.length;n++){var h=e[n];h.enumerable=h.enumerable||
|
|
196
|
+
!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,e,n){e&&a(b.prototype,e);n&&a(b,n);return b}}(),w=(la=ha(23))&&la.__esModule?la:{default:la},x=(ha=ha(107))&&ha.__esModule?ha:{default:ha},f=0;ha=function(){function a(b){var e=this;if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.select=b;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(){e.togglePicker()});this.label.addEventListener("keydown",function(n){switch(n.keyCode){case w.default.keys.ENTER:e.togglePicker();break;case w.default.keys.ESCAPE:e.escape(),n.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}z(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var b=this.label;b.setAttribute("aria-expanded","true"!==b.getAttribute("aria-expanded"));
|
|
198
|
+
b=this.options;b.setAttribute("aria-hidden","true"!==b.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(b){var e=this,n=document.createElement("span");n.tabIndex="0";n.setAttribute("role","button");n.classList.add("ql-picker-item");b.hasAttribute("value")&&n.setAttribute("data-value",b.getAttribute("value"));b.textContent&&n.setAttribute("data-label",b.textContent);n.addEventListener("click",function(){e.selectItem(n,!0)});n.addEventListener("keydown",function(h){switch(h.keyCode){case w.default.keys.ENTER:e.selectItem(n,
|
|
199
|
+
!0);h.preventDefault();break;case w.default.keys.ESCAPE:e.escape(),h.preventDefault()}});return n}},{key:"buildLabel",value:function(){var b=document.createElement("span");b.classList.add("ql-picker-label");b.innerHTML=x.default;b.tabIndex="0";b.setAttribute("role","button");b.setAttribute("aria-expanded","false");this.container.appendChild(b);return b}},{key:"buildOptions",value:function(){var b=this,e=document.createElement("span");e.classList.add("ql-picker-options");e.setAttribute("aria-hidden",
|
|
200
|
+
"true");e.tabIndex="-1";e.id="ql-picker-options-"+f;f+=1;this.label.setAttribute("aria-controls",e.id);this.options=e;[].slice.call(this.select.options).forEach(function(n){var h=b.buildItem(n);e.appendChild(h);!0===n.selected&&b.selectItem(h)});this.container.appendChild(e)}},{key:"buildPicker",value:function(){var b=this;[].slice.call(this.select.attributes).forEach(function(e){b.container.setAttribute(e.name,e.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
|
|
201
|
+
{key:"escape",value:function(){var b=this;this.close();setTimeout(function(){return b.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(b){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,n=this.container.querySelector(".ql-selected");b!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=b&&(b.classList.add("ql-selected"),
|
|
202
|
+
this.select.selectedIndex=[].indexOf.call(b.parentNode.children,b),b.hasAttribute("data-value")?this.label.setAttribute("data-value",b.getAttribute("data-value")):this.label.removeAttribute("data-value"),b.hasAttribute("data-label")?this.label.setAttribute("data-label",b.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":da(Event))&&(e=document.createEvent("Event"),
|
|
203
|
+
e.initEvent("change",!0,!0),this.select.dispatchEvent(e)),this.close())))}},{key:"update",value:function(){var b=void 0;if(-1<this.select.selectedIndex){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];b=this.select.options[this.select.selectedIndex];this.selectItem(e)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=b&&b!==this.select.querySelector("option[selected]"))}}]);return a}();ka.default=ha},function(la,ka,ha){function da(fa){return fa&&
|
|
204
|
+
fa.__esModule?fa:{default:fa}}Object.defineProperty(ka,"__esModule",{value:!0});la=ha(0);la=da(la);var z=ha(5);z=da(z);var w=ha(4),x=da(w),f=ha(16);f=da(f);var a=ha(25);a=da(a);var b=ha(24);b=da(b);var e=ha(35);e=da(e);var n=ha(6);n=da(n);var h=ha(22);h=da(h);var ba=ha(7);ba=da(ba);var y=ha(55);y=da(y);var aa=ha(42);aa=da(aa);ha=ha(23);ha=da(ha);z.default.register({"blots/block":x.default,"blots/block/embed":w.BlockEmbed,"blots/break":f.default,"blots/container":a.default,"blots/cursor":b.default,
|
|
205
|
+
"blots/embed":e.default,"blots/inline":n.default,"blots/scroll":h.default,"blots/text":ba.default,"modules/clipboard":y.default,"modules/history":aa.default,"modules/keyboard":ha.default});la.default.register(x.default,f.default,b.default,n.default,h.default,ba.default);ka.default=z.default},function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});var da=ha(1);la=function(){function z(w){this.domNode=w;this.domNode[da.DATA_KEY]={blot:this}}Object.defineProperty(z.prototype,"statics",{get:function(){return this.constructor},
|
|
206
|
+
enumerable:!0,configurable:!0});z.create=function(w){if(null==this.tagName)throw new da.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof w&&(w=w.toUpperCase(),parseInt(w).toString()===w&&(w=parseInt(w))),w="number"===typeof w?document.createElement(this.tagName[w-1]):-1<this.tagName.indexOf(w)?document.createElement(w):document.createElement(this.tagName[0])):w=document.createElement(this.tagName);this.className&&w.classList.add(this.className);return w};
|
|
207
|
+
z.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};z.prototype.clone=function(){return da.create(this.domNode.cloneNode(!1))};z.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[da.DATA_KEY]};z.prototype.deleteAt=function(w,x){this.isolate(w,x).remove()};z.prototype.formatAt=function(w,x,f,a){w=this.isolate(w,x);null!=da.query(f,da.Scope.BLOT)&&a?w.wrap(f,a):null!=da.query(f,da.Scope.ATTRIBUTE)&&(x=da.create(this.statics.scope),
|
|
208
|
+
w.wrap(x),x.format(f,a))};z.prototype.insertAt=function(w,x,f){x=null==f?da.create("text",x):da.create(x,f);w=this.split(w);this.parent.insertBefore(x,w)};z.prototype.insertInto=function(w,x){void 0===x&&(x=null);null!=this.parent&&this.parent.children.remove(this);var f=null;w.children.insertBefore(this,x);null!=x&&(f=x.domNode);this.domNode.parentNode==w.domNode&&this.domNode.nextSibling==f||w.domNode.insertBefore(this.domNode,f);this.parent=w;this.attach()};z.prototype.isolate=function(w,x){w=
|
|
209
|
+
this.split(w);w.split(x);return w};z.prototype.length=function(){return 1};z.prototype.offset=function(w){void 0===w&&(w=this.parent);return null==this.parent||this==w?0:this.parent.children.offset(this)+this.parent.offset(w)};z.prototype.optimize=function(){null!=this.domNode[da.DATA_KEY]&&delete this.domNode[da.DATA_KEY].mutations};z.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};z.prototype.replace=function(w){null!=w.parent&&
|
|
210
|
+
(w.parent.insertBefore(this,w.next),w.remove())};z.prototype.replaceWith=function(w,x){w="string"===typeof w?da.create(w,x):w;w.replace(this);return w};z.prototype.split=function(w){return 0===w?this:this.next};z.prototype.update=function(){};z.prototype.wrap=function(w,x){w="string"===typeof w?da.create(w,x):w;null!=this.parent&&this.parent.insertBefore(w,this.next);w.appendChild(this);return w};z.blotName="abstract";return z}();ka.default=la},function(la,ka,ha){Object.defineProperty(ka,"__esModule",
|
|
211
|
+
{value:!0});var da=ha(12),z=ha(32),w=ha(33),x=ha(1);la=function(){function f(a){this.attributes={};this.domNode=a;this.build()}f.prototype.attribute=function(a,b){b?a.add(this.domNode,b)&&(null!=a.value(this.domNode)?this.attributes[a.attrName]=a:delete this.attributes[a.attrName]):(a.remove(this.domNode),delete this.attributes[a.attrName])};f.prototype.build=function(){var a=this;this.attributes={};var b=da.default.keys(this.domNode),e=z.default.keys(this.domNode),n=w.default.keys(this.domNode);
|
|
212
|
+
b.concat(e).concat(n).forEach(function(h){h=x.query(h,x.Scope.ATTRIBUTE);h instanceof da.default&&(a.attributes[h.attrName]=h)})};f.prototype.copy=function(a){var b=this;Object.keys(this.attributes).forEach(function(e){var n=b.attributes[e].value(b.domNode);a.format(e,n)})};f.prototype.move=function(a){var b=this;this.copy(a);Object.keys(this.attributes).forEach(function(e){b.attributes[e].remove(b.domNode)});this.attributes={}};f.prototype.values=function(){var a=this;return Object.keys(this.attributes).reduce(function(b,
|
|
213
|
+
e){b[e]=a.attributes[e].value(a.domNode);return b},{})};return f}();ka.default=la},function(la,ka,ha){function da(w,x){return(w.getAttribute("class")||"").split(/\s+/).filter(function(f){return 0===f.indexOf(x+"-")})}var z=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,f){x.__proto__=f}||function(x,f){for(var a in f)f.hasOwnProperty(a)&&(x[a]=f[a])};return function(x,f){function a(){this.constructor=x}w(x,f);x.prototype=null===f?Object.create(f):
|
|
214
|
+
(a.prototype=f.prototype,new a)}}();Object.defineProperty(ka,"__esModule",{value:!0});la=function(w){function x(){return null!==w&&w.apply(this,arguments)||this}z(x,w);x.keys=function(f){return(f.getAttribute("class")||"").split(/\s+/).map(function(a){return a.split("-").slice(0,-1).join("-")})};x.prototype.add=function(f,a){if(!this.canAdd(f,a))return!1;this.remove(f);f.classList.add(this.keyName+"-"+a);return!0};x.prototype.remove=function(f){da(f,this.keyName).forEach(function(a){f.classList.remove(a)});
|
|
215
|
+
0===f.classList.length&&f.removeAttribute("class")};x.prototype.value=function(f){var a=(da(f,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(f,a)?a:""};return x}(ha(12).default);ka.default=la},function(la,ka,ha){function da(w){w=w.split("-");var x=w.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return w[0]+x}var z=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,f){x.__proto__=f}||function(x,
|
|
216
|
+
f){for(var a in f)f.hasOwnProperty(a)&&(x[a]=f[a])};return function(x,f){function a(){this.constructor=x}w(x,f);x.prototype=null===f?Object.create(f):(a.prototype=f.prototype,new a)}}();Object.defineProperty(ka,"__esModule",{value:!0});la=function(w){function x(){return null!==w&&w.apply(this,arguments)||this}z(x,w);x.keys=function(f){return(f.getAttribute("style")||"").split(";").map(function(a){return a.split(":")[0].trim()})};x.prototype.add=function(f,a){if(!this.canAdd(f,a))return!1;f.style[da(this.keyName)]=
|
|
217
|
+
a;return!0};x.prototype.remove=function(f){f.style[da(this.keyName)]="";f.getAttribute("style")||f.removeAttribute("style")};x.prototype.value=function(f){var a=f.style[da(this.keyName)];return this.canAdd(f,a)?a:""};return x}(ha(12).default);ka.default=la},function(la,ka){Object.defineProperty(ka,"__esModule",{value:!0});var ha=function(){function da(z,w){for(var x=0;x<w.length;x++){var f=w[x];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,
|
|
218
|
+
f)}}return function(z,w,x){w&&da(z.prototype,w);x&&da(z,x);return z}}();la=function(){function da(z,w){if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");this.quill=z;this.options=w;this.modules={}}ha(da,[{key:"init",value:function(){var z=this;Object.keys(this.options.modules).forEach(function(w){null==z.modules[w]&&z.addModule(w)})}},{key:"addModule",value:function(z){var w=this.quill.constructor.import("modules/"+z);this.modules[z]=new w(this.quill,this.options.modules[z]||
|
|
219
|
+
{});return this.modules[z]}}]);return da}();la.DEFAULTS={modules:{}};la.themes={"default":la};ka.default=la},function(la,ka,ha){function da(b,e){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?b:e}function z(b,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);b.prototype=Object.create(e&&e.prototype,{constructor:{value:b,enumerable:!1,
|
|
220
|
+
writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(ka,"__esModule",{value:!0});var w=function(){function b(e,n){for(var h=0;h<n.length;h++){var ba=n[h];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(e,ba.key,ba)}}return function(e,n,h){n&&b(e.prototype,n);h&&b(e,h);return e}}(),x=function ba(e,n,h){null===e&&(e=Function.prototype);var y=Object.getOwnPropertyDescriptor(e,n);
|
|
221
|
+
if(void 0===y){if(e=Object.getPrototypeOf(e),null!==e)return ba(e,n,h)}else{if("value"in y)return y.value;n=y.get;return void 0===n?void 0:n.call(h)}},f=(la=ha(0))&&la.__esModule?la:{default:la},a=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(e){function n(h){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var ba=da(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,h));ba.contentNode=document.createElement("span");ba.contentNode.setAttribute("contenteditable",
|
|
222
|
+
!1);[].slice.call(ba.domNode.childNodes).forEach(function(y){ba.contentNode.appendChild(y)});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(n,e);w(n,[{key:"index",value:function(h,ba){return h===this.leftGuard?0:h===this.rightGuard?1:x(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,h,ba)}},{key:"restore",
|
|
223
|
+
value:function(h){var ba=void 0,y=h.data.split("\ufeff").join("");h===this.leftGuard?this.prev instanceof a.default?(ba=this.prev.length(),this.prev.insertAt(ba,y),ba={startNode:this.prev.domNode,startOffset:ba+y.length}):(ba=document.createTextNode(y),this.parent.insertBefore(f.default.create(ba),this),ba={startNode:ba,startOffset:y.length}):h===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,y),ba={startNode:this.next.domNode,startOffset:y.length}):(ba=document.createTextNode(y),
|
|
224
|
+
this.parent.insertBefore(f.default.create(ba),this.next),ba={startNode:ba,startOffset:y.length}));h.data="\ufeff";return ba}},{key:"update",value:function(h,ba){var y=this;h.forEach(function(aa){"characterData"!==aa.type||aa.target!==y.leftGuard&&aa.target!==y.rightGuard||!(aa=y.restore(aa.target))||(ba.range=aa)})}}]);return n}(f.default.Embed);ka.default=ha},function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});ka.AlignStyle=ka.AlignClass=ka.AlignAttribute=void 0;var da=(la=ha(0))&&
|
|
225
|
+
la.__esModule?la:{default:la};var z={scope:da.default.Scope.BLOCK,whitelist:["right","center","justify"]};la=new da.default.Attributor.Attribute("align","align",z);ha=new da.default.Attributor.Class("align","ql-align",z);da=new da.default.Attributor.Style("align","text-align",z);ka.AlignAttribute=la;ka.AlignClass=ha;ka.AlignStyle=da},function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});ka.BackgroundStyle=ka.BackgroundClass=void 0;la=(la=ha(0))&&la.__esModule?la:{default:la};var da=
|
|
226
|
+
ha(26);ha=new la.default.Attributor.Class("background","ql-bg",{scope:la.default.Scope.INLINE});la=new da.ColorAttributor("background","background-color",{scope:la.default.Scope.INLINE});ka.BackgroundClass=ha;ka.BackgroundStyle=la},function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});ka.DirectionStyle=ka.DirectionClass=ka.DirectionAttribute=void 0;var da=(la=ha(0))&&la.__esModule?la:{default:la};var z={scope:da.default.Scope.BLOCK,whitelist:["rtl"]};la=new da.default.Attributor.Attribute("direction",
|
|
227
|
+
"dir",z);ha=new da.default.Attributor.Class("direction","ql-direction",z);da=new da.default.Attributor.Style("direction","direction",z);ka.DirectionAttribute=la;ka.DirectionClass=ha;ka.DirectionStyle=da},function(la,ka,ha){function da(f,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,
|
|
228
|
+
a):f.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});ka.FontClass=ka.FontStyle=void 0;var z=function(){function f(a,b){for(var e=0;e<b.length;e++){var n=b[e];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,e){b&&f(a.prototype,b);e&&f(a,e);return a}}(),w=function n(a,b,e){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,b);if(void 0===h){if(a=Object.getPrototypeOf(a),null!==a)return n(a,
|
|
229
|
+
b,e)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(e)}};ha=function(a){return a&&a.__esModule?a:{default:a}}(ha(0));var x={scope:ha.default.Scope.INLINE,whitelist:["serif","monospace"]};la=new ha.default.Attributor.Class("font","ql-font",x);ha=new (function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
230
|
+
return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);z(b,[{key:"value",value:function(e){return w(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]);return b}(ha.default.Attributor.Style))("font","font-family",x);ka.FontStyle=ha;ka.FontClass=la},function(la,ka,ha){Object.defineProperty(ka,"__esModule",{value:!0});ka.SizeStyle=ka.SizeClass=void 0;ha=(la=ha(0))&&la.__esModule?la:{default:la};la=new ha.default.Attributor.Class("size",
|
|
231
|
+
"ql-size",{scope:ha.default.Scope.INLINE,whitelist:["small","large","huge"]});ha=new ha.default.Attributor.Style("size","font-size",{scope:ha.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ka.SizeClass=la;ka.SizeStyle=ha},function(la,ka,ha){la.exports={align:{"":ha(76),center:ha(77),right:ha(78),justify:ha(79)},background:ha(80),blockquote:ha(81),bold:ha(82),clean:ha(83),code:ha(58),"code-block":ha(58),color:ha(84),direction:{"":ha(85),rtl:ha(86)},"float":{center:ha(87),full:ha(88),left:ha(89),
|
|
232
|
+
right:ha(90)},formula:ha(91),header:{1:ha(92),2:ha(93)},italic:ha(94),image:ha(95),indent:{"+1":ha(96),"-1":ha(97)},link:ha(98),list:{ordered:ha(99),bullet:ha(100),check:ha(101)},script:{sub:ha(102),"super":ha(103)},strike:ha(104),underline:ha(105),video:ha(106)}},function(la,ka,ha){function da(n){return n&&n.__esModule?n:{default:n}}function z(n,h){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?n:h}
|
|
233
|
+
function w(n,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);n.prototype=Object.create(h&&h.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(n,h):n.__proto__=h)}function x(n){n=n.ops[n.ops.length-1];return null==n?!1:null!=n.insert?"string"===typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes?Object.keys(n.attributes).some(function(h){return null!=
|
|
234
|
+
b.default.query(h,b.default.Scope.BLOCK)}):!1}function f(n){var h=n.reduce(function(ba,y){return ba+=y.delete||0},0);h=n.length()-h;x(n)&&--h;return h}Object.defineProperty(ka,"__esModule",{value:!0});ka.getLastChangeIndex=ka.default=void 0;var a=function(){function n(h,ba){for(var y=0;y<ba.length;y++){var aa=ba[y];aa.enumerable=aa.enumerable||!1;aa.configurable=!0;"value"in aa&&(aa.writable=!0);Object.defineProperty(h,aa.key,aa)}}return function(h,ba,y){ba&&n(h.prototype,ba);y&&n(h,y);return h}}();
|
|
235
|
+
la=ha(0);var b=da(la);la=ha(5);var e=da(la);ha=ha(9);ha=function(n){function h(ba,y){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var aa=z(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,ba,y));aa.lastRecorded=0;aa.ignoreChange=!1;aa.clear();aa.quill.on(e.default.events.EDITOR_CHANGE,function(fa,ca,ea,ia){fa!==e.default.events.TEXT_CHANGE||aa.ignoreChange||(aa.options.userOnly&&ia!==e.default.sources.USER?aa.transform(ca):aa.record(ca,ea))});aa.quill.keyboard.addBinding({key:"Z",
|
|
236
|
+
shortKey:!0},aa.undo.bind(aa));aa.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},aa.redo.bind(aa));/Win/i.test(navigator.platform)&&aa.quill.keyboard.addBinding({key:"Y",shortKey:!0},aa.redo.bind(aa));return aa}w(h,n);a(h,[{key:"change",value:function(ba,y){if(0!==this.stack[ba].length){var aa=this.stack[ba].pop();this.stack[y].push(aa);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(aa[ba],e.default.sources.USER);this.ignoreChange=!1;ba=f(aa[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,y){if(0!==ba.ops.length){this.stack.redo=[];y=this.quill.getContents().diff(y);var aa=Date.now();this.lastRecorded+this.options.delay>aa&&0<this.stack.undo.length?(aa=this.stack.undo.pop(),y=y.compose(aa.undo),ba=aa.redo.compose(ba)):this.lastRecorded=aa;this.stack.undo.push({redo:ba,undo:y});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(y){y.undo=ba.transform(y.undo,!0);y.redo=ba.transform(y.redo,!0)});this.stack.redo.forEach(function(y){y.undo=ba.transform(y.undo,!0);y.redo=ba.transform(y.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return h}(da(ha).default);ha.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};ka.default=ha;ka.getLastChangeIndex=f},function(la,ka,ha){function da(ra){return ra&&
|
|
239
|
+
ra.__esModule?ra:{default:ra}}function z(ra,sa){if(!(ra instanceof sa))throw new TypeError("Cannot call a class as a function");}function w(ra,sa){if(!ra)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!sa||"object"!==typeof sa&&"function"!==typeof sa?ra:sa}function x(ra,sa){if("function"!==typeof sa&&null!==sa)throw new TypeError("Super expression must either be null or a function, not "+typeof sa);ra.prototype=Object.create(sa&&sa.prototype,{constructor:{value:ra,
|
|
240
|
+
enumerable:!1,writable:!0,configurable:!0}});sa&&(Object.setPrototypeOf?Object.setPrototypeOf(ra,sa):ra.__proto__=sa)}function f(ra,sa){var ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;sa.forEach(function(pa){var qa=document.createElement("option");pa===ua?qa.setAttribute("selected","selected"):qa.setAttribute("value",pa);ra.appendChild(qa)})}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.BaseTooltip=void 0;var a=function(){function ra(sa,ua){for(var pa=0;pa<ua.length;pa++){var qa=
|
|
241
|
+
ua[pa];qa.enumerable=qa.enumerable||!1;qa.configurable=!0;"value"in qa&&(qa.writable=!0);Object.defineProperty(sa,qa.key,qa)}}return function(sa,ua,pa){ua&&ra(sa.prototype,ua);pa&&ra(sa,pa);return sa}}(),b=function qa(sa,ua,pa){null===sa&&(sa=Function.prototype);var wa=Object.getOwnPropertyDescriptor(sa,ua);if(void 0===wa){if(sa=Object.getPrototypeOf(sa),null!==sa)return qa(sa,ua,pa)}else{if("value"in wa)return wa.value;ua=wa.get;return void 0===ua?void 0:ua.call(pa)}};la=ha(3);la=da(la);var e=ha(2),
|
|
242
|
+
n=da(e);e=ha(8);var h=da(e);e=ha(23);var ba=da(e);e=ha(34);e=da(e);var y=ha(59),aa=da(y);y=ha(60);var fa=da(y);y=ha(28);var ca=da(y);ha=ha(61);y=da(ha);var ea=[!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(" "),ja=[!1,"serif",
|
|
243
|
+
"monospace"],na=["1","2","3",!1],ma=["small",!1,"large","huge"];ha=function(sa){function ua(pa,qa){z(this,ua);var wa=w(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,pa,qa));pa.emitter.listenDOM("click",document.body,function Ga(Ia){if(!document.body.contains(pa.root))return document.body.removeEventListener("click",Ga);null==wa.tooltip||wa.tooltip.root.contains(Ia.target)||document.activeElement===wa.tooltip.textbox||wa.quill.hasFocus()||wa.tooltip.hide();null!=wa.pickers&&wa.pickers.forEach(function(Ea){Ea.container.contains(Ia.target)||
|
|
244
|
+
Ea.close()})});return wa}x(ua,sa);a(ua,[{key:"addModule",value:function(pa){var qa=b(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"addModule",this).call(this,pa);"toolbar"===pa&&this.extendToolbar(qa);return qa}},{key:"buildButtons",value:function(pa,qa){pa.forEach(function(wa){(wa.getAttribute("class")||"").split(/\s+/).forEach(function(Fa){if(Fa.startsWith("ql-")&&(Fa=Fa.slice(3),null!=qa[Fa]))if("direction"===Fa)wa.innerHTML=qa[Fa][""]+qa[Fa].rtl;else if("string"===typeof qa[Fa])wa.innerHTML=
|
|
245
|
+
qa[Fa];else{var Ia=wa.value||"";null!=Ia&&qa[Fa][Ia]&&(wa.innerHTML=qa[Fa][Ia])}})})}},{key:"buildPickers",value:function(pa,qa){var wa=this;this.pickers=pa.map(function(Fa){if(Fa.classList.contains("ql-align"))return null==Fa.querySelector("option")&&f(Fa,ea),new fa.default(Fa,qa.align);if(Fa.classList.contains("ql-background")||Fa.classList.contains("ql-color")){var Ia=Fa.classList.contains("ql-background")?"background":"color";null==Fa.querySelector("option")&&f(Fa,ia,"background"===Ia?"#ffffff":
|
|
246
|
+
"#000000");return new aa.default(Fa,qa[Ia])}null==Fa.querySelector("option")&&(Fa.classList.contains("ql-font")?f(Fa,ja):Fa.classList.contains("ql-header")?f(Fa,na):Fa.classList.contains("ql-size")&&f(Fa,ma));return new ca.default(Fa)});this.quill.on(h.default.events.EDITOR_CHANGE,function(){wa.pickers.forEach(function(Fa){Fa.update()})})}}]);return ua}(e.default);ha.DEFAULTS=(0,la.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
|
|
247
|
+
image:function(){var sa=this,ua=this.container.querySelector("input.ql-image[type=file]");null==ua&&(ua=document.createElement("input"),ua.setAttribute("type","file"),ua.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ua.classList.add("ql-image"),ua.addEventListener("change",function(){if(null!=ua.files&&null!=ua.files[0]){var pa=new FileReader;pa.onload=function(qa){var wa=sa.quill.getSelection(!0);sa.quill.updateContents((new n.default).retain(wa.index).delete(wa.length).insert({image:qa.target.result}),
|
|
248
|
+
h.default.sources.USER);sa.quill.setSelection(wa.index+1,h.default.sources.SILENT);ua.value=""};pa.readAsDataURL(ua.files[0])}}),this.container.appendChild(ua));ua.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});la=function(sa){function ua(pa,qa){z(this,ua);pa=w(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,pa,qa));pa.textbox=pa.root.querySelector('input[type="text"]');pa.listen();return pa}x(ua,sa);a(ua,[{key:"listen",value:function(){var pa=this;this.textbox.addEventListener("keydown",
|
|
249
|
+
function(qa){ba.default.match(qa,"enter")?(pa.save(),qa.preventDefault()):ba.default.match(qa,"escape")&&(pa.cancel(),qa.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var pa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",qa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=qa?this.textbox.value=qa:pa!==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-"+pa)||"");this.root.setAttribute("data-mode",pa)}},{key:"restoreFocus",value:function(){var pa=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=pa}},{key:"save",value:function(){var pa=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var qa=this.quill.root.scrollTop;
|
|
251
|
+
this.linkRange?(this.quill.formatText(this.linkRange,"link",pa,h.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",pa,h.default.sources.USER));this.quill.root.scrollTop=qa;break;case "video":qa=pa;var wa=qa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||qa.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);pa=wa?(wa[1]||"https")+"://www.youtube.com/embed/"+wa[2]+"?showinfo=0":(wa=qa.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
|
|
252
|
+
(wa[1]||"https")+"://player.vimeo.com/video/"+wa[2]+"/":qa;case "formula":pa&&(qa=this.quill.getSelection(!0),null!=qa&&(qa=qa.index+qa.length,this.quill.insertEmbed(qa,this.root.getAttribute("data-mode"),pa,h.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(qa+1," ",h.default.sources.USER),this.quill.setSelection(qa+2,h.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return ua}(y.default);ka.BaseTooltip=la;ka.default=ha},function(la,ka){Object.defineProperty(ka,
|
|
253
|
+
"__esModule",{value:!0});la=function(){function ha(){this.head=this.tail=null;this.length=0}ha.prototype.append=function(){for(var da=[],z=0;z<arguments.length;z++)da[z]=arguments[z];this.insertBefore(da[0],null);1<da.length&&this.append.apply(this,da.slice(1))};ha.prototype.contains=function(da){for(var z,w=this.iterator();z=w();)if(z===da)return!0;return!1};ha.prototype.insertBefore=function(da,z){da&&(da.next=z,null!=z?(da.prev=z.prev,null!=z.prev&&(z.prev.next=da),z.prev=da,z===this.head&&(this.head=
|
|
254
|
+
da)):null!=this.tail?(this.tail.next=da,da.prev=this.tail,this.tail=da):(da.prev=null,this.head=this.tail=da),this.length+=1)};ha.prototype.offset=function(da){for(var z=0,w=this.head;null!=w;){if(w===da)return z;z+=w.length();w=w.next}return-1};ha.prototype.remove=function(da){this.contains(da)&&(null!=da.prev&&(da.prev.next=da.next),null!=da.next&&(da.next.prev=da.prev),da===this.head&&(this.head=da.next),da===this.tail&&(this.tail=da.prev),--this.length)};ha.prototype.iterator=function(da){void 0===
|
|
255
|
+
da&&(da=this.head);return function(){var z=da;null!=da&&(da=da.next);return z}};ha.prototype.find=function(da,z){void 0===z&&(z=!1);for(var w,x=this.iterator();w=x();){var f=w.length();if(da<f||z&&da===f&&(null==w.next||0!==w.next.length()))return[w,da];da-=f}return[null,0]};ha.prototype.forEach=function(da){for(var z,w=this.iterator();z=w();)da(z)};ha.prototype.forEachAt=function(da,z,w){if(!(0>=z))for(var x=this.find(da),f=da-x[1],a=this.iterator(x[0]);(x=a())&&f<da+z;){var b=x.length();da>f?w(x,
|
|
256
|
+
da-f,Math.min(z,f+b-da)):w(x,0,Math.min(b,da+z-f));f+=b}};ha.prototype.map=function(da){return this.reduce(function(z,w){z.push(da(w));return z},[])};ha.prototype.reduce=function(da,z){for(var w,x=this.iterator();w=x();)z=da(z,w);return z};return ha}();ka.default=la},function(la,ka,ha){var da=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return function(a,b){function e(){this.constructor=
|
|
257
|
+
a}f(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(ka,"__esModule",{value:!0});var z=ha(17),w=ha(1),x={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};la=function(f){function a(b){var e=f.call(this,b)||this;e.scroll=e;e.observer=new MutationObserver(function(n){e.update(n)});e.observer.observe(e.domNode,x);e.attach();return e}da(a,f);a.prototype.detach=function(){f.prototype.detach.call(this);this.observer.disconnect()};
|
|
258
|
+
a.prototype.deleteAt=function(b,e){this.update();0===b&&e===this.length()?this.children.forEach(function(n){n.remove()}):f.prototype.deleteAt.call(this,b,e)};a.prototype.formatAt=function(b,e,n,h){this.update();f.prototype.formatAt.call(this,b,e,n,h)};a.prototype.insertAt=function(b,e,n){this.update();f.prototype.insertAt.call(this,b,e,n)};a.prototype.optimize=function(b,e){function n(ca){null!=ca.domNode[w.DATA_KEY]&&null!=ca.domNode[w.DATA_KEY].mutations&&(ca instanceof z.default&&ca.children.forEach(n),
|
|
259
|
+
ca.optimize(e))}function h(ca,ea){void 0===ea&&(ea=!0);null!=ca&&ca!==ba&&null!=ca.domNode.parentNode&&(null==ca.domNode[w.DATA_KEY].mutations&&(ca.domNode[w.DATA_KEY].mutations=[]),ea&&h(ca.parent))}var ba=this;void 0===b&&(b=[]);void 0===e&&(e={});f.prototype.optimize.call(this,e);for(var y=[].slice.call(this.observer.takeRecords());0<y.length;)b.push(y.pop());for(var aa=b,fa=0;0<aa.length;fa+=1){if(100<=fa)throw Error("[Parchment] Maximum optimize iterations reached");aa.forEach(function(ca){var ea=
|
|
260
|
+
w.find(ca.target,!0);null!=ea&&(ea.domNode===ca.target&&("childList"===ca.type?(h(w.find(ca.previousSibling,!1)),[].forEach.call(ca.addedNodes,function(ia){ia=w.find(ia,!1);h(ia,!1);ia instanceof z.default&&ia.children.forEach(function(ja){h(ja,!1)})})):"attributes"===ca.type&&h(ea.prev)),h(ea))});this.children.forEach(n);aa=[].slice.call(this.observer.takeRecords());for(y=aa.slice();0<y.length;)b.push(y.pop())}};a.prototype.update=function(b,e){var n=this;void 0===e&&(e={});b=b||this.observer.takeRecords();
|
|
261
|
+
b.map(function(h){var ba=w.find(h.target,!0);if(null==ba)return null;if(null==ba.domNode[w.DATA_KEY].mutations)return ba.domNode[w.DATA_KEY].mutations=[h],ba;ba.domNode[w.DATA_KEY].mutations.push(h);return null}).forEach(function(h){null!=h&&h!==n&&null!=h.domNode[w.DATA_KEY]&&h.update(h.domNode[w.DATA_KEY].mutations||[],e)});null!=this.domNode[w.DATA_KEY].mutations&&f.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,e);this.optimize(b,e)};a.blotName="scroll";a.defaultChild="block";a.scope=
|
|
262
|
+
w.Scope.BLOCK_BLOT;a.tagName="DIV";return a}(z.default);ka.default=la},function(la,ka,ha){var da=this&&this.__extends||function(){var x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,a){f.__proto__=a}||function(f,a){for(var b in a)a.hasOwnProperty(b)&&(f[b]=a[b])};return function(f,a){function b(){this.constructor=f}x(f,a);f.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(ka,"__esModule",{value:!0});var z=ha(18),w=ha(1);la=function(x){function f(){return null!==
|
|
263
|
+
x&&x.apply(this,arguments)||this}da(f,x);f.formats=function(a){if(a.tagName!==f.tagName)return x.formats.call(this,a)};f.prototype.format=function(a,b){var e=this;a!==this.statics.blotName||b?x.prototype.format.call(this,a,b):(this.children.forEach(function(n){n instanceof z.default||(n=n.wrap(f.blotName,!0));e.attributes.copy(n)}),this.unwrap())};f.prototype.formatAt=function(a,b,e,n){null!=this.formats()[e]||w.query(e,w.Scope.ATTRIBUTE)?this.isolate(a,b).format(e,n):x.prototype.formatAt.call(this,
|
|
264
|
+
a,b,e,n)};f.prototype.optimize=function(a){x.prototype.optimize.call(this,a);a=this.formats();if(0===Object.keys(a).length)return this.unwrap();var b=this.next,e;if(e=b instanceof f&&b.prev===this)a:if(e=b.formats(),Object.keys(a).length!==Object.keys(e).length)e=!1;else{for(var n in a)if(a[n]!==e[n]){e=!1;break a}e=!0}e&&(b.moveChildren(this),b.remove())};f.blotName="inline";f.scope=w.Scope.INLINE_BLOT;f.tagName="SPAN";return f}(z.default);ka.default=la},function(la,ka,ha){var da=this&&this.__extends||
|
|
265
|
+
function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,f){x.__proto__=f}||function(x,f){for(var a in f)f.hasOwnProperty(a)&&(x[a]=f[a])};return function(x,f){function a(){this.constructor=x}w(x,f);x.prototype=null===f?Object.create(f):(a.prototype=f.prototype,new a)}}();Object.defineProperty(ka,"__esModule",{value:!0});la=ha(18);var z=ha(1);ha=function(w){function x(){return null!==w&&w.apply(this,arguments)||this}da(x,w);x.formats=function(f){var a=z.query(x.blotName).tagName;
|
|
266
|
+
if(f.tagName!==a)return w.formats.call(this,f)};x.prototype.format=function(f,a){null!=z.query(f,z.Scope.BLOCK)&&(f!==this.statics.blotName||a?w.prototype.format.call(this,f,a):this.replaceWith(x.blotName))};x.prototype.formatAt=function(f,a,b,e){null!=z.query(b,z.Scope.BLOCK)?this.format(b,e):w.prototype.formatAt.call(this,f,a,b,e)};x.prototype.insertAt=function(f,a,b){null==b||null!=z.query(a,z.Scope.INLINE)?w.prototype.insertAt.call(this,f,a,b):(f=this.split(f),a=z.create(a,b),f.parent.insertBefore(a,
|
|
267
|
+
f))};x.prototype.update=function(f,a){navigator.userAgent.match(/Trident/)?this.build():w.prototype.update.call(this,f,a)};x.blotName="block";x.scope=z.Scope.BLOCK_BLOT;x.tagName="P";return x}(la.default);ka.default=ha},function(la,ka,ha){var da=this&&this.__extends||function(){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var f in x)x.hasOwnProperty(f)&&(w[f]=x[f])};return function(w,x){function f(){this.constructor=w}z(w,x);w.prototype=
|
|
268
|
+
null===x?Object.create(x):(f.prototype=x.prototype,new f)}}();Object.defineProperty(ka,"__esModule",{value:!0});la=function(z){function w(){return null!==z&&z.apply(this,arguments)||this}da(w,z);w.formats=function(){};w.prototype.format=function(x,f){z.prototype.formatAt.call(this,0,this.length(),x,f)};w.prototype.formatAt=function(x,f,a,b){0===x&&f===this.length()?this.format(a,b):z.prototype.formatAt.call(this,x,f,a,b)};w.prototype.formats=function(){return this.statics.formats(this.domNode)};return w}(ha(19).default);
|
|
269
|
+
ka.default=la},function(la,ka,ha){var da=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,f){x.__proto__=f}||function(x,f){for(var a in f)f.hasOwnProperty(a)&&(x[a]=f[a])};return function(x,f){function a(){this.constructor=x}w(x,f);x.prototype=null===f?Object.create(f):(a.prototype=f.prototype,new a)}}();Object.defineProperty(ka,"__esModule",{value:!0});la=ha(19);var z=ha(1);ha=function(w){function x(f){f=w.call(this,f)||this;f.text=f.statics.value(f.domNode);
|
|
270
|
+
return f}da(x,w);x.create=function(f){return document.createTextNode(f)};x.value=function(f){f=f.data;f.normalize&&(f=f.normalize());return f};x.prototype.deleteAt=function(f,a){this.domNode.data=this.text=this.text.slice(0,f)+this.text.slice(f+a)};x.prototype.index=function(f,a){return this.domNode===f?a:-1};x.prototype.insertAt=function(f,a,b){null==b?(this.text=this.text.slice(0,f)+a+this.text.slice(f),this.domNode.data=this.text):w.prototype.insertAt.call(this,f,a,b)};x.prototype.length=function(){return this.text.length};
|
|
271
|
+
x.prototype.optimize=function(f){w.prototype.optimize.call(this,f);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof x&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};x.prototype.position=function(f){return[this.domNode,f]};x.prototype.split=function(f,a){void 0===a&&(a=!1);if(!a){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};x.prototype.update=function(f){var a=this;f.some(function(b){return"characterData"===b.type&&b.target===a.domNode})&&(this.text=this.statics.value(this.domNode))};x.prototype.value=function(){return this.text};x.blotName="text";x.scope=z.Scope.INLINE_BLOT;return x}(la.default);ka.default=ha},function(){var la=document.createElement("div");la.classList.toggle("test-class",!1);if(la.classList.contains("test-class")){var ka=DOMTokenList.prototype.toggle;
|
|
273
|
+
DOMTokenList.prototype.toggle=function(ha,da){return 1<arguments.length&&!this.contains(ha)===!da?da:ka.call(this,ha)}}String.prototype.startsWith||(String.prototype.startsWith=function(ha,da){return this.substr(da||0,ha.length)===ha});String.prototype.endsWith||(String.prototype.endsWith=function(ha,da){var z=this.toString();if("number"!==typeof da||!isFinite(da)||Math.floor(da)!==da||da>z.length)da=z.length;da-=ha.length;ha=z.indexOf(ha,da);return-1!==ha&&ha===da});Array.prototype.find||Object.defineProperty(Array.prototype,
|
|
274
|
+
"find",{value:function(ha,da){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof ha)throw new TypeError("predicate must be a function");for(var z=Object(this),w=z.length>>>0,x,f=0;f<w;f++)if(x=z[f],ha.call(da,x,f,z))return x}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(la){function ka(n,h,ba){if(n==h)return n?[[0,n]]:[];
|
|
275
|
+
if(0>ba||n.length<ba)ba=null;var y=z(n,h),aa=n.substring(0,y);n=n.substring(y);h=h.substring(y);y=w(n,h);var fa=n.substring(n.length-y);n=n.substring(0,n.length-y);h=h.substring(0,h.length-y);n=ha(n,h);aa&&n.unshift([0,aa]);fa&&n.push([0,fa]);f(n);null!=ba&&(n=a(n,ba));return n=b(n)}function ha(n,h){if(!n)return[[1,h]];if(!h)return[[-1,n]];var ba=n.length>h.length?n:h;var y=n.length>h.length?h:n,aa=ba.indexOf(y);if(-1!=aa)return ba=[[1,ba.substring(0,aa)],[0,y],[1,ba.substring(aa+y.length)]],n.length>
|
|
276
|
+
h.length&&(ba[0][0]=ba[2][0]=-1),ba;if(1==y.length)return[[-1,n],[1,h]];if(ba=x(n,h))return h=ba[1],y=ba[3],n=ba[4],ba=ka(ba[0],ba[2]),h=ka(h,y),ba.concat([[0,n]],h);a:{ba=n.length;y=h.length;aa=Math.ceil((ba+y)/2);for(var fa=2*aa,ca=Array(fa),ea=Array(fa),ia=0;ia<fa;ia++)ca[ia]=-1,ea[ia]=-1;ca[aa+1]=0;ea[aa+1]=0;ia=ba-y;for(var ja=0!=ia%2,na=0,ma=0,ra=0,sa=0,ua=0;ua<aa;ua++){for(var pa=-ua+na;pa<=ua-ma;pa+=2){var qa=aa+pa;var wa=pa==-ua||pa!=ua&&ca[qa-1]<ca[qa+1]?ca[qa+1]:ca[qa-1]+1;for(var Fa=wa-
|
|
277
|
+
pa;wa<ba&&Fa<y&&n.charAt(wa)==h.charAt(Fa);)wa++,Fa++;ca[qa]=wa;if(wa>ba)ma+=2;else if(Fa>y)na+=2;else if(ja&&(qa=aa+ia-pa,0<=qa&&qa<fa&&-1!=ea[qa])){var Ia=ba-ea[qa];if(wa>=Ia){n=da(n,h,wa,Fa);break a}}}for(pa=-ua+ra;pa<=ua-sa;pa+=2){qa=aa+pa;Ia=pa==-ua||pa!=ua&&ea[qa-1]<ea[qa+1]?ea[qa+1]:ea[qa-1]+1;for(wa=Ia-pa;Ia<ba&&wa<y&&n.charAt(ba-Ia-1)==h.charAt(y-wa-1);)Ia++,wa++;ea[qa]=Ia;if(Ia>ba)sa+=2;else if(wa>y)ra+=2;else if(!ja&&(qa=aa+ia-pa,0<=qa&&qa<fa&&-1!=ca[qa]&&(wa=ca[qa],Fa=aa+wa-qa,Ia=ba-Ia,
|
|
278
|
+
wa>=Ia))){n=da(n,h,wa,Fa);break a}}}n=[[-1,n],[1,h]]}return n}function da(n,h,ba,y){var aa=n.substring(ba),fa=h.substring(y);n=ka(n.substring(0,ba),h.substring(0,y));aa=ka(aa,fa);return n.concat(aa)}function z(n,h){if(!n||!h||n.charAt(0)!=h.charAt(0))return 0;for(var ba=0,y=Math.min(n.length,h.length),aa=y,fa=0;ba<aa;)n.substring(fa,aa)==h.substring(fa,aa)?fa=ba=aa:y=aa,aa=Math.floor((y-ba)/2+ba);return aa}function w(n,h){if(!n||!h||n.charAt(n.length-1)!=h.charAt(h.length-1))return 0;for(var ba=0,
|
|
279
|
+
y=Math.min(n.length,h.length),aa=y,fa=0;ba<aa;)n.substring(n.length-aa,n.length-fa)==h.substring(h.length-aa,h.length-fa)?fa=ba=aa:y=aa,aa=Math.floor((y-ba)/2+ba);return aa}function x(n,h){function ba(ca,ea,ia){for(var ja=ca.substring(ia,ia+Math.floor(ca.length/4)),na=-1,ma="",ra,sa,ua,pa;-1!=(na=ea.indexOf(ja,na+1));){var qa=z(ca.substring(ia),ea.substring(na)),wa=w(ca.substring(0,ia),ea.substring(0,na));ma.length<wa+qa&&(ma=ea.substring(na-wa,na)+ea.substring(na,na+qa),ra=ca.substring(0,ia-wa),
|
|
280
|
+
sa=ca.substring(ia+qa),ua=ea.substring(0,na-wa),pa=ea.substring(na+qa))}return 2*ma.length>=ca.length?[ra,sa,ua,pa,ma]:null}var y=n.length>h.length?n:h,aa=n.length>h.length?h:n;if(4>y.length||2*aa.length<y.length)return null;var fa=ba(y,aa,Math.ceil(y.length/4));y=ba(y,aa,Math.ceil(y.length/2));if(fa||y)fa=y?fa?fa[4].length>y[4].length?fa:y:y:fa;else return null;n.length>h.length?(n=fa[0],h=fa[1],y=fa[2],aa=fa[3]):(y=fa[0],aa=fa[1],n=fa[2],h=fa[3]);return[n,h,y,aa,fa[4]]}function f(n){n.push([0,""]);
|
|
281
|
+
for(var h=0,ba=0,y=0,aa="",fa="",ca;h<n.length;)switch(n[h][0]){case 1:y++;fa+=n[h][1];h++;break;case -1:ba++;aa+=n[h][1];h++;break;case 0:1<ba+y?(0!==ba&&0!==y&&(ca=z(fa,aa),0!==ca&&(0<h-ba-y&&0==n[h-ba-y-1][0]?n[h-ba-y-1][1]+=fa.substring(0,ca):(n.splice(0,0,[0,fa.substring(0,ca)]),h++),fa=fa.substring(ca),aa=aa.substring(ca)),ca=w(fa,aa),0!==ca&&(n[h][1]=fa.substring(fa.length-ca)+n[h][1],fa=fa.substring(0,fa.length-ca),aa=aa.substring(0,aa.length-ca))),0===ba?n.splice(h-y,ba+y,[1,fa]):0===y?n.splice(h-
|
|
282
|
+
ba,ba+y,[-1,aa]):n.splice(h-ba-y,ba+y,[-1,aa],[1,fa]),h=h-ba-y+(ba?1:0)+(y?1:0)+1):0!==h&&0==n[h-1][0]?(n[h-1][1]+=n[h][1],n.splice(h,1)):h++,ba=y=0,fa=aa=""}""===n[n.length-1][1]&&n.pop();ba=!1;for(h=1;h<n.length-1;)0==n[h-1][0]&&0==n[h+1][0]&&(n[h][1].substring(n[h][1].length-n[h-1][1].length)==n[h-1][1]?(n[h][1]=n[h-1][1]+n[h][1].substring(0,n[h][1].length-n[h-1][1].length),n[h+1][1]=n[h-1][1]+n[h+1][1],n.splice(h-1,1),ba=!0):n[h][1].substring(0,n[h+1][1].length)==n[h+1][1]&&(n[h-1][1]+=n[h+1][1],
|
|
283
|
+
n[h][1]=n[h][1].substring(n[h+1][1].length)+n[h+1][1],n.splice(h+1,1),ba=!0)),h++;ba&&f(n)}function a(n,h){a:{var ba=n;if(0===h)var y=[0,ba];else{var aa=0;for(y=0;y<ba.length;y++){var fa=ba[y];if(-1===fa[0]||0===fa[0]){var ca=aa+fa[1].length;if(h===ca){y=[y+1,ba];break a}if(h<ca){ba=ba.slice();aa=h-aa;h=[fa[0],fa[1].slice(0,aa)];fa=[fa[0],fa[1].slice(aa)];ba.splice(y,1,h,fa);y=[y+1,ba];break a}aa=ca}}throw Error("cursor_pos is out of bounds!");}}ba=y[1];y=y[0];h=ba[y];fa=ba[y+1];return null==h||0!==
|
|
284
|
+
h[0]?n:null!=fa&&h[1]+fa[1]===fa[1]+h[1]?(ba.splice(y,2,fa,h),e(ba,y,2)):null!=fa&&0===fa[1].indexOf(h[1])?(ba.splice(y,2,[fa[0],h[1]],[0,h[1]]),n=fa[1].slice(h[1].length),0<n.length&&ba.splice(y+2,0,[fa[0],n]),e(ba,y,3)):n}function b(n){function h(fa){return 55296<=fa.charCodeAt(fa.length-1)&&56319>=fa.charCodeAt(fa.length-1)}function ba(fa){return 56320<=fa.charCodeAt(0)&&57343>=fa.charCodeAt(0)}for(var y=!1,aa=2;aa<n.length;aa+=1)0===n[aa-2][0]&&h(n[aa-2][1])&&-1===n[aa-1][0]&&ba(n[aa-1][1])&&
|
|
285
|
+
1===n[aa][0]&&ba(n[aa][1])&&(y=!0,n[aa-1][1]=n[aa-2][1].slice(-1)+n[aa-1][1],n[aa][1]=n[aa-2][1].slice(-1)+n[aa][1],n[aa-2][1]=n[aa-2][1].slice(0,-1));if(!y)return n;y=[];for(aa=0;aa<n.length;aa+=1)0<n[aa][1].length&&y.push(n[aa]);return y}function e(n,h,ba){for(ba=h+ba-1;0<=ba&&ba>=h-1;ba--)if(ba+1<n.length){var y=n[ba],aa=n[ba+1];y[0]===aa[1]&&n.splice(ba,2,[y[0],y[1]+aa[1]])}return n}ka.INSERT=1;ka.DELETE=-1;ka.EQUAL=0;la.exports=ka},function(la,ka){function ha(da){var z=[],w;for(w in da)z.push(w);
|
|
286
|
+
return z}ka=la.exports="function"===typeof Object.keys?Object.keys:ha;ka.shim=ha},function(la,ka){function ha(z){return"[object Arguments]"==Object.prototype.toString.call(z)}function da(z){return z&&"object"==typeof z&&"number"==typeof z.length&&Object.prototype.hasOwnProperty.call(z,"callee")&&!Object.prototype.propertyIsEnumerable.call(z,"callee")||!1}ka="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();ka=la.exports=ka?ha:da;ka.supported=ha;ka.unsupported=da},
|
|
287
|
+
function(la){function ka(){}function ha(x,f,a){this.fn=x;this.context=f;this.once=a||!1}function da(){this._events=new ka;this._eventsCount=0}var z=Object.prototype.hasOwnProperty,w="~";Object.create&&(ka.prototype=Object.create(null),(new ka).__proto__||(w=!1));da.prototype.eventNames=function(){var x=[],f,a;if(0===this._eventsCount)return x;for(a in f=this._events)z.call(f,a)&&x.push(w?a.slice(1):a);return Object.getOwnPropertySymbols?x.concat(Object.getOwnPropertySymbols(f)):x};da.prototype.listeners=
|
|
288
|
+
function(x,f){x=this._events[w?w+x:x];if(f)return!!x;if(!x)return[];if(x.fn)return[x.fn];f=0;for(var a=x.length,b=Array(a);f<a;f++)b[f]=x[f].fn;return b};da.prototype.emit=function(x,f,a,b,e,n){var h=w?w+x:x;if(!this._events[h])return!1;h=this._events[h];var ba=arguments.length,y;if(h.fn){h.once&&this.removeListener(x,h.fn,void 0,!0);switch(ba){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,a),!0;case 4:return h.fn.call(h.context,
|
|
289
|
+
f,a,b),!0;case 5:return h.fn.call(h.context,f,a,b,e),!0;case 6:return h.fn.call(h.context,f,a,b,e,n),!0}var aa=1;for(y=Array(ba-1);aa<ba;aa++)y[aa-1]=arguments[aa];h.fn.apply(h.context,y)}else{var fa=h.length;for(aa=0;aa<fa;aa++)switch(h[aa].once&&this.removeListener(x,h[aa].fn,void 0,!0),ba){case 1:h[aa].fn.call(h[aa].context);break;case 2:h[aa].fn.call(h[aa].context,f);break;case 3:h[aa].fn.call(h[aa].context,f,a);break;case 4:h[aa].fn.call(h[aa].context,f,a,b);break;default:if(!y){var ca=1;for(y=
|
|
290
|
+
Array(ba-1);ca<ba;ca++)y[ca-1]=arguments[ca]}h[aa].fn.apply(h[aa].context,y)}}return!0};da.prototype.on=function(x,f,a){f=new ha(f,a||this);x=w?w+x:x;this._events[x]?this._events[x].fn?this._events[x]=[this._events[x],f]:this._events[x].push(f):(this._events[x]=f,this._eventsCount++);return this};da.prototype.once=function(x,f,a){f=new ha(f,a||this,!0);x=w?w+x:x;this._events[x]?this._events[x].fn?this._events[x]=[this._events[x],f]:this._events[x].push(f):(this._events[x]=f,this._eventsCount++);return this};
|
|
291
|
+
da.prototype.removeListener=function(x,f,a,b){x=w?w+x:x;if(!this._events[x])return this;if(!f)return 0===--this._eventsCount?this._events=new ka:delete this._events[x],this;var e=this._events[x];if(e.fn)e.fn!==f||b&&!e.once||a&&e.context!==a||(0===--this._eventsCount?this._events=new ka:delete this._events[x]);else{for(var n=0,h=[],ba=e.length;n<ba;n++)(e[n].fn!==f||b&&!e[n].once||a&&e[n].context!==a)&&h.push(e[n]);h.length?this._events[x]=1===h.length?h[0]:h:0===--this._eventsCount?this._events=
|
|
292
|
+
new ka:delete this._events[x]}return this};da.prototype.removeAllListeners=function(x){x?(x=w?w+x:x,this._events[x]&&(0===--this._eventsCount?this._events=new ka:delete this._events[x])):(this._events=new ka,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=w;da.EventEmitter=da;"undefined"!==typeof la&&(la.exports=da)},function(la,ka,ha){function da(Ba){return Ba&&
|
|
293
|
+
Ba.__esModule?Ba:{default:Ba}}function z(Ba,Ma,Ja){Ma in Ba?Object.defineProperty(Ba,Ma,{value:Ja,enumerable:!0,configurable:!0,writable:!0}):Ba[Ma]=Ja;return Ba}function w(Ba,Ma){if(!Ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ma||"object"!==typeof Ma&&"function"!==typeof Ma?Ba:Ma}function x(Ba,Ma){if("function"!==typeof Ma&&null!==Ma)throw new TypeError("Super expression must either be null or a function, not "+typeof Ma);Ba.prototype=Object.create(Ma&&
|
|
294
|
+
Ma.prototype,{constructor:{value:Ba,enumerable:!1,writable:!0,configurable:!0}});Ma&&(Object.setPrototypeOf?Object.setPrototypeOf(Ba,Ma):Ba.__proto__=Ma)}function f(Ba,Ma,Ja){return"object"===("undefined"===typeof Ma?"undefined":ea(Ma))?Object.keys(Ma).reduce(function(Ka,xa){return f(Ka,xa,Ma[xa])},Ba):Ba.reduce(function(Ka,xa){return xa.attributes&&xa.attributes[Ma]?Ka.push(xa):Ka.insert(xa.insert,(0,na.default)({},z({},Ma,Ja),xa.attributes))},new ma.default)}function a(Ba){return Ba.nodeType!==
|
|
295
|
+
Node.ELEMENT_NODE?{}:Ba["__ql-computed-style"]||(Ba["__ql-computed-style"]=window.getComputedStyle(Ba))}function b(Ba,Ma){for(var Ja="",Ka=Ba.ops.length-1;0<=Ka&&Ja.length<Ma.length;--Ka){var xa=Ba.ops[Ka];if("string"!==typeof xa.insert)break;Ja=xa.insert+Ja}return Ja.slice(-1*Ma.length)===Ma}function e(Ba){if(0===Ba.childNodes.length)return!1;Ba=a(Ba);return-1<["block","list-item"].indexOf(Ba.display)}function n(Ba,Ma,Ja){return Ba.nodeType===Ba.TEXT_NODE?Ja.reduce(function(Ka,xa){return xa(Ba,Ka)},
|
|
296
|
+
new ma.default):Ba.nodeType===Ba.ELEMENT_NODE?[].reduce.call(Ba.childNodes||[],function(Ka,xa){var Da=n(xa,Ma,Ja);xa.nodeType===Ba.ELEMENT_NODE&&(Da=Ma.reduce(function(Ta,Ua){return Ua(xa,Ta)},Da),Da=(xa["__ql-matcher"]||[]).reduce(function(Ta,Ua){return Ua(xa,Ta)},Da));return Ka.concat(Da)},new ma.default):new ma.default}function h(Ba,Ma,Ja){return f(Ja,Ba,!0)}function ba(Ba,Ma){var Ja=ra.default.Attributor.Attribute.keys(Ba),Ka=ra.default.Attributor.Class.keys(Ba),xa=ra.default.Attributor.Style.keys(Ba),
|
|
297
|
+
Da={};Ja.concat(Ka).concat(xa).forEach(function(Ta){var Ua=ra.default.query(Ta,ra.default.Scope.ATTRIBUTE);if(null!=Ua&&(Da[Ua.attrName]=Ua.value(Ba),Da[Ua.attrName]))return;Ua=Oa[Ta];null==Ua||Ua.attrName!==Ta&&Ua.keyName!==Ta||(Da[Ua.attrName]=Ua.value(Ba)||void 0);Ua=La[Ta];null==Ua||Ua.attrName!==Ta&&Ua.keyName!==Ta||(Ua=La[Ta],Da[Ua.attrName]=Ua.value(Ba)||void 0)});0<Object.keys(Da).length&&(Ma=f(Ma,Da));return Ma}function y(Ba,Ma){var Ja=ra.default.query(Ba);if(null==Ja)return Ma;if(Ja.prototype instanceof
|
|
298
|
+
ra.default.Embed){var Ka={},xa=Ja.value(Ba);null!=xa&&(Ka[Ja.blotName]=xa,Ma=(new ma.default).insert(Ka,Ja.formats(Ba)))}else"function"===typeof Ja.formats&&(Ma=f(Ma,Ja.blotName,Ja.formats(Ba)));return Ma}function aa(Ba,Ma){b(Ma,"\n")||(e(Ba)||0<Ma.length()&&Ba.nextSibling&&e(Ba.nextSibling))&&Ma.insert("\n");return Ma}function fa(Ba,Ma){if(e(Ba)&&null!=Ba.nextElementSibling&&!b(Ma,"\n\n")){var Ja=Ba.offsetHeight+parseFloat(a(Ba).marginTop)+parseFloat(a(Ba).marginBottom);Ba.nextElementSibling.offsetTop>
|
|
299
|
+
Ba.offsetTop+1.5*Ja&&Ma.insert("\n")}return Ma}function ca(Ba,Ma){var Ja=Ba.data;if("O:P"===Ba.parentNode.tagName)return Ma.insert(Ja.trim());if(0===Ja.trim().length&&Ba.parentNode.classList.contains("ql-clipboard"))return Ma;if(!a(Ba.parentNode).whiteSpace.startsWith("pre")){var Ka=function(xa,Da){Da=Da.replace(/[^\u00a0]/g,"");return 1>Da.length&&xa?" ":Da};Ja=Ja.replace(/\r\n/g," ").replace(/\n/g," ");Ja=Ja.replace(/\s\s+/g,Ka.bind(Ka,!0));if(null==Ba.previousSibling&&e(Ba.parentNode)||null!=Ba.previousSibling&&
|
|
300
|
+
e(Ba.previousSibling))Ja=Ja.replace(/^\s+/,Ka.bind(Ka,!1));if(null==Ba.nextSibling&&e(Ba.parentNode)||null!=Ba.nextSibling&&e(Ba.nextSibling))Ja=Ja.replace(/\s+$/,Ka.bind(Ka,!1))}return Ma.insert(Ja)}Object.defineProperty(ka,"__esModule",{value:!0});ka.matchText=ka.matchSpacing=ka.matchNewline=ka.matchBlot=ka.matchAttributor=ka.default=void 0;var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Ba){return typeof Ba}:function(Ba){return Ba&&"function"===typeof Symbol&&Ba.constructor===
|
|
301
|
+
Symbol&&Ba!==Symbol.prototype?"symbol":typeof Ba},ia=function(){return function(Ba,Ma){if(Array.isArray(Ba))return Ba;if(Symbol.iterator in Object(Ba)){var Ja=[],Ka=!0,xa=!1,Da=void 0;try{for(var Ta=Ba[Symbol.iterator](),Ua;!(Ka=(Ua=Ta.next()).done)&&(Ja.push(Ua.value),!Ma||Ja.length!==Ma);Ka=!0);}catch(Wa){xa=!0,Da=Wa}finally{try{if(!Ka&&Ta["return"])Ta["return"]()}finally{if(xa)throw Da;}}return Ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ja=function(){function Ba(Ma,
|
|
302
|
+
Ja){for(var Ka=0;Ka<Ja.length;Ka++){var xa=Ja[Ka];xa.enumerable=xa.enumerable||!1;xa.configurable=!0;"value"in xa&&(xa.writable=!0);Object.defineProperty(Ma,xa.key,xa)}}return function(Ma,Ja,Ka){Ja&&Ba(Ma.prototype,Ja);Ka&&Ba(Ma,Ka);return Ma}}();la=ha(3);var na=da(la);la=ha(2);var ma=da(la);la=ha(0);var ra=da(la);la=ha(5);var sa=da(la);la=ha(10);la=da(la);var ua=ha(9);ua=da(ua);var pa=ha(36),qa=ha(37),wa=ha(13),Fa=da(wa);wa=ha(26);var Ia=ha(38),Ga=ha(39);ha=ha(40);var Ea=(0,la.default)("quill:clipboard"),
|
|
303
|
+
Na=[[Node.TEXT_NODE,ca],[Node.TEXT_NODE,aa],["br",function(Ba,Ma){b(Ma,"\n")||Ma.insert("\n");return Ma}],[Node.ELEMENT_NODE,aa],[Node.ELEMENT_NODE,y],[Node.ELEMENT_NODE,fa],[Node.ELEMENT_NODE,ba],[Node.ELEMENT_NODE,function(Ba,Ma){var Ja={},Ka=Ba.style||{};Ka.fontStyle&&"italic"===a(Ba).fontStyle&&(Ja.italic=!0);Ka.fontWeight&&(a(Ba).fontWeight.startsWith("bold")||700<=parseInt(a(Ba).fontWeight))&&(Ja.bold=!0);0<Object.keys(Ja).length&&(Ma=f(Ma,Ja));0<parseFloat(Ka.textIndent||0)&&(Ma=(new ma.default).insert("\t").concat(Ma));
|
|
304
|
+
return Ma}],["li",function(Ba,Ma){var Ja=ra.default.query(Ba);if(null==Ja||"list-item"!==Ja.blotName||!b(Ma,"\n"))return Ma;Ja=-1;for(Ba=Ba.parentNode;!Ba.classList.contains("ql-clipboard");)"list"===(ra.default.query(Ba)||{}).blotName&&(Ja+=1),Ba=Ba.parentNode;return 0>=Ja?Ma:Ma.compose((new ma.default).retain(Ma.length()-1).retain(1,{indent:Ja}))}],["b",h.bind(h,"bold")],["i",h.bind(h,"italic")],["style",function(){return new ma.default}]],Oa=[pa.AlignAttribute,Ia.DirectionAttribute].reduce(function(Ba,
|
|
305
|
+
Ma){Ba[Ma.keyName]=Ma;return Ba},{}),La=[pa.AlignStyle,qa.BackgroundStyle,wa.ColorStyle,Ia.DirectionStyle,Ga.FontStyle,ha.SizeStyle].reduce(function(Ba,Ma){Ba[Ma.keyName]=Ma;return Ba},{});ha=function(Ba){function Ma(Ja,Ka){if(!(this instanceof Ma))throw new TypeError("Cannot call a class as a function");var xa=w(this,(Ma.__proto__||Object.getPrototypeOf(Ma)).call(this,Ja,Ka));xa.quill.root.addEventListener("paste",xa.onPaste.bind(xa));xa.container=xa.quill.addContainer("ql-clipboard");xa.container.setAttribute("contenteditable",
|
|
306
|
+
!0);xa.container.setAttribute("tabindex",-1);xa.matchers=[];Na.concat(xa.options.matchers).forEach(function(Da){Da=ia(Da,2);var Ta=Da[1];(Ka.matchVisual||Ta!==fa)&&xa.addMatcher(Da[0],Ta)});return xa}x(Ma,Ba);ja(Ma,[{key:"addMatcher",value:function(Ja,Ka){this.matchers.push([Ja,Ka])}},{key:"convert",value:function(Ja){if("string"===typeof Ja)return this.container.innerHTML=Ja.replace(/>\r?\n +</g,"><"),this.convert();Ja=this.quill.getFormat(this.quill.selection.savedRange.index);if(Ja[Fa.default.blotName]){var Ka=
|
|
307
|
+
this.container.innerText;this.container.innerHTML="";return(new ma.default).insert(Ka,z({},Fa.default.blotName,Ja[Fa.default.blotName]))}Ja=this.prepareMatching();Ja=ia(Ja,2);Ja=n(this.container,Ja[0],Ja[1]);b(Ja,"\n")&&null==Ja.ops[Ja.ops.length-1].attributes&&(Ja=Ja.compose((new ma.default).retain(Ja.length()-1).delete(1)));Ea.log("convert",this.container.innerHTML,Ja);this.container.innerHTML="";return Ja}},{key:"dangerouslyPasteHTML",value:function(Ja,Ka){var xa=2<arguments.length&&void 0!==arguments[2]?
|
|
308
|
+
arguments[2]:sa.default.sources.API;if("string"===typeof Ja)this.quill.setContents(this.convert(Ja),Ka),this.quill.setSelection(0,sa.default.sources.SILENT);else{var Da=this.convert(Ka);this.quill.updateContents((new ma.default).retain(Ja).concat(Da),xa);this.quill.setSelection(Ja+Da.length(),sa.default.sources.SILENT)}}},{key:"onPaste",value:function(Ja){var Ka=this;if(!Ja.defaultPrevented&&this.quill.isEnabled()){var xa=this.quill.getSelection(),Da=(new ma.default).retain(xa.index),Ta=this.quill.scrollingContainer.scrollTop;
|
|
309
|
+
this.container.focus();this.quill.selection.update(sa.default.sources.SILENT);setTimeout(function(){Da=Da.concat(Ka.convert()).delete(xa.length);Ka.quill.updateContents(Da,sa.default.sources.USER);Ka.quill.setSelection(Da.length()-xa.length,sa.default.sources.SILENT);Ka.quill.scrollingContainer.scrollTop=Ta;Ka.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Ja=this,Ka=[],xa=[];this.matchers.forEach(function(Da){Da=ia(Da,2);var Ta=Da[0],Ua=Da[1];switch(Ta){case Node.TEXT_NODE:xa.push(Ua);
|
|
310
|
+
break;case Node.ELEMENT_NODE:Ka.push(Ua);break;default:[].forEach.call(Ja.container.querySelectorAll(Ta),function(Wa){Wa["__ql-matcher"]=Wa["__ql-matcher"]||[];Wa["__ql-matcher"].push(Ua)})}});return[Ka,xa]}}]);return Ma}(ua.default);ha.DEFAULTS={matchers:[],matchVisual:!0};ka.default=ha;ka.matchAttributor=ba;ka.matchBlot=y;ka.matchNewline=aa;ka.matchSpacing=fa;ka.matchText=ca},function(la,ka,ha){function da(x,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
|
|
311
|
+
typeof f);x.prototype=Object.create(f&&f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(x,f):x.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function x(f,a){for(var b=0;b<a.length;b++){var e=a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,a,b){a&&x(f.prototype,a);b&&x(f,b);return f}}(),w=function e(f,a,
|
|
312
|
+
b){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,a);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return e(f,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};la=function(f){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");
|
|
313
|
+
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}da(a,f);z(a,[{key:"optimize",value:function(b){w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,b);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return a}(function(f){return f&&f.__esModule?f:{default:f}}(ha(6)).default);
|
|
314
|
+
la.blotName="bold";la.tagName=["STRONG","B"];ka.default=la},function(la,ka,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function z(aa,fa){if(!aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?aa:fa}function w(aa,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);aa.prototype=Object.create(fa&&fa.prototype,{constructor:{value:aa,
|
|
315
|
+
enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,fa):aa.__proto__=fa)}function x(aa,fa,ca){var ea=document.createElement("button");ea.setAttribute("type","button");ea.classList.add("ql-"+fa);null!=ca&&(ea.value=ca);aa.appendChild(ea)}function f(aa,fa){Array.isArray(fa[0])||(fa=[fa]);fa.forEach(function(ca){var ea=document.createElement("span");ea.classList.add("ql-formats");ca.forEach(function(ia){if("string"===typeof ia)x(ea,ia);else{var ja=Object.keys(ia)[0];
|
|
316
|
+
ia=ia[ja];Array.isArray(ia)?a(ea,ja,ia):x(ea,ja,ia)}});aa.appendChild(ea)})}function a(aa,fa,ca){var ea=document.createElement("select");ea.classList.add("ql-"+fa);ca.forEach(function(ia){var ja=document.createElement("option");!1!==ia?ja.setAttribute("value",ia):ja.setAttribute("selected","selected");ea.appendChild(ja)});aa.appendChild(ea)}Object.defineProperty(ka,"__esModule",{value:!0});ka.addControls=ka.default=void 0;var b=function(){return function(aa,fa){if(Array.isArray(aa))return aa;if(Symbol.iterator in
|
|
317
|
+
Object(aa)){var ca=[],ea=!0,ia=!1,ja=void 0;try{for(var na=aa[Symbol.iterator](),ma;!(ea=(ma=na.next()).done)&&(ca.push(ma.value),!fa||ca.length!==fa);ea=!0);}catch(ra){ia=!0,ja=ra}finally{try{if(!ea&&na["return"])na["return"]()}finally{if(ia)throw ja;}}return ca}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function aa(fa,ca){for(var ea=0;ea<ca.length;ea++){var ia=ca[ea];ia.enumerable=ia.enumerable||!1;ia.configurable=!0;"value"in ia&&(ia.writable=
|
|
318
|
+
!0);Object.defineProperty(fa,ia.key,ia)}}return function(fa,ca,ea){ca&&aa(fa.prototype,ca);ea&&aa(fa,ea);return fa}}();la=ha(2);var n=da(la);la=ha(0);var h=da(la);la=ha(5);var ba=da(la);la=ha(10);la=da(la);ha=ha(9);ha=da(ha);var y=(0,la.default)("quill:toolbar");ha=function(aa){function fa(ca,ea){if(!(this instanceof fa))throw new TypeError("Cannot call a class as a function");var ia=z(this,(fa.__proto__||Object.getPrototypeOf(fa)).call(this,ca,ea));Array.isArray(ia.options.container)?(ea=document.createElement("div"),
|
|
319
|
+
f(ea,ia.options.container),ca.container.parentNode.insertBefore(ea,ca.container),ia.container=ea):ia.container="string"===typeof ia.options.container?document.querySelector(ia.options.container):ia.options.container;if(!(ia.container instanceof HTMLElement)){var ja;return ja=y.error("Container required for toolbar",ia.options),z(ia,ja)}ia.container.classList.add("ql-toolbar");ia.controls=[];ia.handlers={};Object.keys(ia.options.handlers).forEach(function(na){ia.addHandler(na,ia.options.handlers[na])});
|
|
320
|
+
[].forEach.call(ia.container.querySelectorAll("button, select"),function(na){ia.attach(na)});ia.quill.on(ba.default.events.EDITOR_CHANGE,function(na,ma){na===ba.default.events.SELECTION_CHANGE&&ia.update(ma)});ia.quill.on(ba.default.events.SCROLL_OPTIMIZE,function(){var na=ia.quill.selection.getRange();na=b(na,1)[0];ia.update(na)});return ia}w(fa,aa);e(fa,[{key:"addHandler",value:function(ca,ea){this.handlers[ca]=ea}},{key:"attach",value:function(ca){var ea=this,ia=[].find.call(ca.classList,function(ja){return 0===
|
|
321
|
+
ja.indexOf("ql-")});if(ia){ia=ia.slice(3);"BUTTON"===ca.tagName&&ca.setAttribute("type","button");if(null==this.handlers[ia]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[ia]){y.warn("ignoring attaching to disabled format",ia,ca);return}if(null==h.default.query(ia)){y.warn("ignoring attaching to nonexistent format",ia,ca);return}}ca.addEventListener("SELECT"===ca.tagName?"change":"click",function(ja){if("SELECT"===ca.tagName){if(0>ca.selectedIndex)return;var na=ca.options[ca.selectedIndex];
|
|
322
|
+
na=na.hasAttribute("selected")?!1:na.value||!1}else na=ca.classList.contains("ql-active")?!1:ca.value||!ca.hasAttribute("value"),ja.preventDefault();ea.quill.focus();ja=ea.quill.selection.getRange();ja=b(ja,1)[0];if(null!=ea.handlers[ia])ea.handlers[ia].call(ea,na);else if(h.default.query(ia).prototype instanceof h.default.Embed){na=prompt("Enter "+ia);if(!na)return;var ma=ea.quill,ra=ma.updateContents,sa=(new n.default).retain(ja.index).delete(ja.length),ua=sa.insert,pa={},qa=ia;qa in pa?Object.defineProperty(pa,
|
|
323
|
+
qa,{value:na,enumerable:!0,configurable:!0,writable:!0}):pa[qa]=na;ra.call(ma,ua.call(sa,pa),ba.default.sources.USER)}else ea.quill.format(ia,na,ba.default.sources.USER);ea.update(ja)});this.controls.push([ia,ca])}}},{key:"update",value:function(ca){var ea=null==ca?{}:this.quill.getFormat(ca);this.controls.forEach(function(ia){ia=b(ia,2);var ja=ia[0];ia=ia[1];if("SELECT"===ia.tagName){var na=void 0;null==ca?na=null:null==ea[ja]?na=ia.querySelector("option[selected]"):Array.isArray(ea[ja])||(ja=ea[ja],
|
|
324
|
+
"string"===typeof ja&&(ja=ja.replace(/"/g,'\\"')),na=ia.querySelector('option[value="'+ja+'"]'));null==na?(ia.value="",ia.selectedIndex=-1):na.selected=!0}else null==ca?ia.classList.remove("ql-active"):ia.hasAttribute("value")?(ja=ea[ja]===ia.getAttribute("value")||null!=ea[ja]&&ea[ja].toString()===ia.getAttribute("value")||null==ea[ja]&&!ia.getAttribute("value"),ia.classList.toggle("ql-active",ja)):ia.classList.toggle("ql-active",null!=ea[ja])})}}]);return fa}(ha.default);ha.DEFAULTS={};ha.DEFAULTS=
|
|
325
|
+
{container:null,handlers:{clean:function(){var aa=this,fa=this.quill.getSelection();null!=fa&&(0==fa.length?(fa=this.quill.getFormat(),Object.keys(fa).forEach(function(ca){null!=h.default.query(ca,h.default.Scope.INLINE)&&aa.quill.format(ca,!1)})):this.quill.removeFormat(fa,ba.default.sources.USER))},direction:function(aa){var fa=this.quill.getFormat().align;"rtl"===aa&&null==fa?this.quill.format("align","right",ba.default.sources.USER):aa||"right"!==fa||this.quill.format("align",!1,ba.default.sources.USER);
|
|
326
|
+
this.quill.format("direction",aa,ba.default.sources.USER)},indent:function(aa){var fa=this.quill.getFormat(this.quill.getSelection()),ca=parseInt(fa.indent||0);if("+1"===aa||"-1"===aa)aa="+1"===aa?1:-1,"rtl"===fa.direction&&(aa*=-1),this.quill.format("indent",ca+aa,ba.default.sources.USER)},link:function(aa){!0===aa&&(aa=prompt("Enter link URL:"));this.quill.format("link",aa,ba.default.sources.USER)},list:function(aa){var fa=this.quill.getFormat(this.quill.getSelection());"check"===aa?"checked"===
|
|
327
|
+
fa.list||"unchecked"===fa.list?this.quill.format("list",!1,ba.default.sources.USER):this.quill.format("list","unchecked",ba.default.sources.USER):this.quill.format("list",aa,ba.default.sources.USER)}}};ka.default=ha;ka.addControls=f},function(la){la.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(la,
|
|
328
|
+
ka,ha){function da(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?f:a}function z(f,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}Object.defineProperty(ka,
|
|
329
|
+
"__esModule",{value:!0});var w=function(){function f(a,b){for(var e=0;e<b.length;e++){var n=b[e];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,e){b&&f(a.prototype,b);e&&f(a,e);return a}}(),x=function n(a,b,e){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,b);if(void 0===h){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,e)}else{if("value"in h)return h.value;b=h.get;return void 0===b?
|
|
330
|
+
void 0:b.call(e)}};la=function(a){function b(e,n){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");e=da(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,e));e.label.innerHTML=n;e.container.classList.add("ql-color-picker");[].slice.call(e.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(h){h.classList.add("ql-primary")});return e}z(b,a);w(b,[{key:"buildItem",value:function(e){var n=x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),
|
|
331
|
+
"buildItem",this).call(this,e);n.style.backgroundColor=e.getAttribute("value")||"";return n}},{key:"selectItem",value:function(e,n){x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,e,n);n=this.label.querySelector(".ql-color-label");e=e?e.getAttribute("data-value")||"":"";n&&("line"===n.tagName?n.style.stroke=e:n.style.fill=e)}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(28)).default);ka.default=la},function(la,ka,ha){function da(f,a){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
332
|
+
return!a||"object"!==typeof a&&"function"!==typeof a?f:a}function z(f,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);f.prototype=Object.create(a&&a.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(f,a):f.__proto__=a)}Object.defineProperty(ka,"__esModule",{value:!0});var w=function(){function f(a,b){for(var e=0;e<b.length;e++){var n=b[e];n.enumerable=
|
|
333
|
+
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(a,n.key,n)}}return function(a,b,e){b&&f(a.prototype,b);e&&f(a,e);return a}}(),x=function n(a,b,e){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,b);if(void 0===h){if(a=Object.getPrototypeOf(a),null!==a)return n(a,b,e)}else{if("value"in h)return h.value;b=h.get;return void 0===b?void 0:b.call(e)}};la=function(a){function b(e,n){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");
|
|
334
|
+
e=da(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,e));e.container.classList.add("ql-icon-picker");[].forEach.call(e.container.querySelectorAll(".ql-picker-item"),function(h){h.innerHTML=n[h.getAttribute("data-value")||""]});e.defaultItem=e.container.querySelector(".ql-selected");e.selectItem(e.defaultItem);return e}z(b,a);w(b,[{key:"selectItem",value:function(e,n){x(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"selectItem",this).call(this,e,n);e=e||this.defaultItem;this.label.innerHTML=
|
|
335
|
+
e.innerHTML}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(28)).default);ka.default=la},function(la,ka){Object.defineProperty(ka,"__esModule",{value:!0});var ha=function(){function da(z,w){for(var x=0;x<w.length;x++){var f=w[x];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(z,f.key,f)}}return function(z,w,x){w&&da(z.prototype,w);x&&da(z,x);return z}}();la=function(){function da(z,w){var x=this;if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");
|
|
336
|
+
this.quill=z;this.boundsContainer=w||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(){x.root.style.marginTop=-1*x.quill.root.scrollTop+"px"});this.hide()}ha(da,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(z){var w=z.left+z.width/2-this.root.offsetWidth/2,x=z.bottom+this.quill.root.scrollTop;this.root.style.left=
|
|
337
|
+
w+"px";this.root.style.top=x+"px";this.root.classList.remove("ql-flip");var f=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),b=0;a.right>f.right&&(b=f.right-a.right,this.root.style.left=w+b+"px");a.left<f.left&&(b=f.left-a.left,this.root.style.left=w+b+"px");a.bottom>f.bottom&&(this.root.style.top=x-(z.bottom-z.top+(a.bottom-a.top))+"px",this.root.classList.add("ql-flip"));return b}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
|
|
338
|
+
return da}();ka.default=la},function(la,ka,ha){function da(ia){return ia&&ia.__esModule?ia:{default:ia}}function z(ia,ja){if(!(ia instanceof ja))throw new TypeError("Cannot call a class as a function");}function w(ia,ja){if(!ia)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?ia:ja}function x(ia,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+
|
|
339
|
+
typeof ja);ia.prototype=Object.create(ja&&ja.prototype,{constructor:{value:ia,enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(ia,ja):ia.__proto__=ja)}Object.defineProperty(ka,"__esModule",{value:!0});var f=function(){return function(ia,ja){if(Array.isArray(ia))return ia;if(Symbol.iterator in Object(ia)){var na=[],ma=!0,ra=!1,sa=void 0;try{for(var ua=ia[Symbol.iterator](),pa;!(ma=(pa=ua.next()).done)&&(na.push(pa.value),!ja||na.length!==ja);ma=!0);}catch(qa){ra=
|
|
340
|
+
!0,sa=qa}finally{try{if(!ma&&ua["return"])ua["return"]()}finally{if(ra)throw sa;}}return na}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),a=function ra(ja,na,ma){null===ja&&(ja=Function.prototype);var sa=Object.getOwnPropertyDescriptor(ja,na);if(void 0===sa){if(ja=Object.getPrototypeOf(ja),null!==ja)return ra(ja,na,ma)}else{if("value"in sa)return sa.value;na=sa.get;return void 0===na?void 0:na.call(ma)}},b=function(){function ja(na,ma){for(var ra=0;ra<ma.length;ra++){var sa=
|
|
341
|
+
ma[ra];sa.enumerable=sa.enumerable||!1;sa.configurable=!0;"value"in sa&&(sa.writable=!0);Object.defineProperty(na,sa.key,sa)}}return function(na,ma,ra){ma&&ja(na.prototype,ma);ra&&ja(na,ra);return na}}();la=ha(3);la=da(la);var e=ha(8),n=da(e);e=ha(43);var h=da(e),ba=ha(27),y=da(ba),aa=ha(15);ha=ha(41);var fa=da(ha),ca=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ha=function(ja){function na(ma,ra){z(this,na);null!=ra.modules.toolbar&&
|
|
342
|
+
null==ra.modules.toolbar.container&&(ra.modules.toolbar.container=ca);ma=w(this,(na.__proto__||Object.getPrototypeOf(na)).call(this,ma,ra));ma.quill.container.classList.add("ql-snow");return ma}x(na,ja);b(na,[{key:"extendToolbar",value:function(ma){ma.container.classList.add("ql-snow");this.buildButtons([].slice.call(ma.container.querySelectorAll("button")),fa.default);this.buildPickers([].slice.call(ma.container.querySelectorAll("select")),fa.default);this.tooltip=new ea(this.quill,this.options.bounds);
|
|
343
|
+
ma.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(ra,sa){ma.handlers.link.call(ma,!sa.format.link)})}}]);return na}(h.default);ha.DEFAULTS=(0,la.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ja){ja?(ja=this.quill.getSelection(),null!=ja&&0!=ja.length&&(ja=this.quill.getText(ja),/^\S+@\S+\.\S+$/.test(ja)&&0!==ja.indexOf("mailto:")&&(ja="mailto:"+ja),this.quill.theme.tooltip.edit("link",ja))):this.quill.format("link",
|
|
344
|
+
!1)}}}}});var ea=function(ja){function na(ma,ra){z(this,na);ma=w(this,(na.__proto__||Object.getPrototypeOf(na)).call(this,ma,ra));ma.preview=ma.root.querySelector("a.ql-preview");return ma}x(na,ja);b(na,[{key:"listen",value:function(){var ma=this;a(na.prototype.__proto__||Object.getPrototypeOf(na.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(ra){ma.root.classList.contains("ql-editing")?ma.save():ma.edit("link",ma.preview.textContent);
|
|
345
|
+
ra.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(ra){if(null!=ma.linkRange){var sa=ma.linkRange;ma.restoreFocus();ma.quill.formatText(sa,"link",!1,n.default.sources.USER);delete ma.linkRange}ra.preventDefault();ma.hide()});this.quill.on(n.default.events.SELECTION_CHANGE,function(ra,sa,ua){if(null!=ra){if(0===ra.length&&ua===n.default.sources.USER){if(sa=ma.quill.scroll.descendant(y.default,ra.index),ua=f(sa,2),sa=ua[0],ua=ua[1],null!=sa){ma.linkRange=
|
|
346
|
+
new aa.Range(ra.index-ua,sa.length());ra=y.default.formats(sa.domNode);ma.preview.textContent=ra;ma.preview.setAttribute("href",ra);ma.show();ma.position(ma.quill.getBounds(ma.linkRange));return}}else delete ma.linkRange;ma.hide()}})}},{key:"show",value:function(){a(na.prototype.__proto__||Object.getPrototypeOf(na.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return na}(e.BaseTooltip);ea.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
|
+
ka.default=ha},function(la,ka,ha){function da(Oa){return Oa&&Oa.__esModule?Oa:{default:Oa}}Object.defineProperty(ka,"__esModule",{value:!0});la=ha(29);la=da(la);var z=ha(36),w=ha(38),x=ha(64),f=ha(65);f=da(f);var a=ha(66);a=da(a);var b=ha(67),e=da(b),n=ha(37),h=ha(26),ba=ha(39),y=ha(40),aa=ha(56);aa=da(aa);var fa=ha(68);fa=da(fa);var ca=ha(27);ca=da(ca);var ea=ha(69);ea=da(ea);var ia=ha(70);ia=da(ia);var ja=ha(71);ja=da(ja);var na=ha(72);na=da(na);var ma=ha(73);ma=da(ma);var ra=ha(13),sa=da(ra),ua=
|
|
348
|
+
ha(74);ua=da(ua);var pa=ha(75);pa=da(pa);var qa=ha(57);qa=da(qa);var wa=ha(41);wa=da(wa);var Fa=ha(28);Fa=da(Fa);var Ia=ha(59);Ia=da(Ia);var Ga=ha(60);Ga=da(Ga);var Ea=ha(61);Ea=da(Ea);var Na=ha(108);Na=da(Na);ha=ha(62);ha=da(ha);la.default.register({"attributors/attribute/direction":w.DirectionAttribute,"attributors/class/align":z.AlignClass,"attributors/class/background":n.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":w.DirectionClass,"attributors/class/font":ba.FontClass,
|
|
349
|
+
"attributors/class/size":y.SizeClass,"attributors/style/align":z.AlignStyle,"attributors/style/background":n.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":w.DirectionStyle,"attributors/style/font":ba.FontStyle,"attributors/style/size":y.SizeStyle},!0);la.default.register({"formats/align":z.AlignClass,"formats/direction":w.DirectionClass,"formats/indent":x.IndentClass,"formats/background":n.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":ba.FontClass,
|
|
350
|
+
"formats/size":y.SizeClass,"formats/blockquote":f.default,"formats/code-block":sa.default,"formats/header":a.default,"formats/list":e.default,"formats/bold":aa.default,"formats/code":ra.Code,"formats/italic":fa.default,"formats/link":ca.default,"formats/script":ea.default,"formats/strike":ia.default,"formats/underline":ja.default,"formats/image":na.default,"formats/video":ma.default,"formats/list/item":b.ListItem,"modules/formula":ua.default,"modules/syntax":pa.default,"modules/toolbar":qa.default,
|
|
351
|
+
"themes/bubble":Na.default,"themes/snow":ha.default,"ui/icons":wa.default,"ui/picker":Fa.default,"ui/icon-picker":Ga.default,"ui/color-picker":Ia.default,"ui/tooltip":Ea.default},!0);ka.default=la.default},function(la,ka,ha){function da(x,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);x.prototype=Object.create(f&&f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(x,
|
|
352
|
+
f):x.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});ka.IndentClass=void 0;var z=function(){function x(f,a){for(var b=0;b<a.length;b++){var e=a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,a,b){a&&x(f.prototype,a);b&&x(f,b);return f}}(),w=function e(f,a,b){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,a);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return e(f,a,
|
|
353
|
+
b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};la=function(f){return f&&f.__esModule?f:{default:f}}(ha(0));la=new (function(f){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}da(a,f);z(a,[{key:"add",
|
|
354
|
+
value:function(b,e){if("+1"===e||"-1"===e){var n=this.value(b)||0;e="+1"===e?n+1:n-1}return 0===e?(this.remove(b),!0):w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,b,e)}},{key:"canAdd",value:function(b,e){return w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,b,e)||w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,b,parseInt(e))}},{key:"value",value:function(b){return parseInt(w(a.prototype.__proto__||
|
|
355
|
+
Object.getPrototypeOf(a.prototype),"value",this).call(this,b))||void 0}}]);return a}(la.default.Attributor.Class))("indent","ql-indent",{scope:la.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});ka.IndentClass=la},function(la,ka,ha){function da(z,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);z.prototype=Object.create(w&&w.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?
|
|
356
|
+
Object.setPrototypeOf(z,w):z.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});la=function(z){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var x=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?this:x}da(w,z);return w}(function(z){return z&&z.__esModule?z:{default:z}}(ha(4)).default);
|
|
357
|
+
la.blotName="blockquote";la.tagName="blockquote";ka.default=la},function(la,ka,ha){function da(w,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function w(x,f){for(var a=0;a<f.length;a++){var b=
|
|
358
|
+
f[a];b.enumerable=b.enumerable||!1;b.configurable=!0;"value"in b&&(b.writable=!0);Object.defineProperty(x,b.key,b)}}return function(x,f,a){f&&w(x.prototype,f);a&&w(x,a);return x}}();la=function(w){function x(){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var f=(x.__proto__||Object.getPrototypeOf(x)).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}da(x,w);z(x,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]);return x}(function(w){return w&&w.__esModule?w:{default:w}}(ha(4)).default);la.blotName="header";la.tagName="H1 H2 H3 H4 H5 H6".split(" ");ka.default=la},function(la,ka,ha){function da(h){return h&&h.__esModule?h:{default:h}}function z(h,ba){if(!(h instanceof ba))throw new TypeError("Cannot call a class as a function");}function w(h,ba){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
360
|
+
return!ba||"object"!==typeof ba&&"function"!==typeof ba?h:ba}function x(h,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+typeof ba);h.prototype=Object.create(ba&&ba.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(h,ba):h.__proto__=ba)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.ListItem=void 0;var f=function(){function h(ba,y){for(var aa=
|
|
361
|
+
0;aa<y.length;aa++){var fa=y[aa];fa.enumerable=fa.enumerable||!1;fa.configurable=!0;"value"in fa&&(fa.writable=!0);Object.defineProperty(ba,fa.key,fa)}}return function(ba,y,aa){y&&h(ba.prototype,y);aa&&h(ba,aa);return ba}}(),a=function fa(ba,y,aa){null===ba&&(ba=Function.prototype);var ca=Object.getOwnPropertyDescriptor(ba,y);if(void 0===ca){if(ba=Object.getPrototypeOf(ba),null!==ba)return fa(ba,y,aa)}else{if("value"in ca)return ca.value;y=ca.get;return void 0===y?void 0:y.call(aa)}};la=ha(0);var b=
|
|
362
|
+
da(la);la=ha(4);la=da(la);ha=ha(25);ha=da(ha);var e=function(ba){function y(){z(this,y);return w(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}x(y,ba);f(y,[{key:"format",value:function(aa,fa){aa!==n.blotName||fa?a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,aa,fa):this.replaceWith(b.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),
|
|
363
|
+
"remove",this).call(this)}},{key:"replaceWith",value:function(aa,fa){this.parent.isolate(this.offset(this.parent),this.length());if(aa===this.parent.statics.blotName)return this.parent.replaceWith(aa,fa),this;this.parent.unwrap();return a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"replaceWith",this).call(this,aa,fa)}}],[{key:"formats",value:function(aa){return aa.tagName===this.tagName?void 0:a(y.__proto__||Object.getPrototypeOf(y),"formats",this).call(this,aa)}}]);return y}(la.default);
|
|
364
|
+
e.blotName="list-item";e.tagName="LI";var n=function(ba){function y(aa){function fa(ea){if(ea.target.parentNode===aa){var ia=ca.statics.formats(aa);ea=b.default.find(ea.target);"checked"===ia?ea.format("list","unchecked"):"unchecked"===ia&&ea.format("list","checked")}}z(this,y);var ca=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,aa));aa.addEventListener("touchstart",fa);aa.addEventListener("mousedown",fa);return ca}x(y,ba);f(y,null,[{key:"create",value:function(aa){var fa="ordered"===
|
|
365
|
+
aa?"OL":"UL";fa=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,fa);"checked"!==aa&&"unchecked"!==aa||fa.setAttribute("data-checked","checked"===aa);return fa}},{key:"formats",value:function(aa){if("OL"===aa.tagName)return"ordered";if("UL"===aa.tagName)return aa.hasAttribute("data-checked")?"true"===aa.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);f(y,[{key:"format",value:function(aa,fa){0<this.children.length&&this.children.tail.format(aa,fa)}},{key:"formats",value:function(){var aa=
|
|
366
|
+
{},fa=this.statics.blotName,ca=this.statics.formats(this.domNode);fa in aa?Object.defineProperty(aa,fa,{value:ca,enumerable:!0,configurable:!0,writable:!0}):aa[fa]=ca;return aa}},{key:"insertBefore",value:function(aa,fa){aa instanceof e?a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,aa,fa):(fa=null==fa?this.length():fa.offset(this),fa=this.split(fa),fa.parent.insertBefore(aa,fa))}},{key:"optimize",value:function(aa){a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),
|
|
367
|
+
"optimize",this).call(this,aa);aa=this.next;null!=aa&&aa.prev===this&&aa.statics.blotName===this.statics.blotName&&aa.domNode.tagName===this.domNode.tagName&&aa.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(aa.moveChildren(this),aa.remove())}},{key:"replace",value:function(aa){if(aa.statics.blotName!==this.statics.blotName){var fa=b.default.create(this.statics.defaultChild);aa.moveChildren(fa);this.appendChild(fa)}a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),
|
|
368
|
+
"replace",this).call(this,aa)}}]);return y}(ha.default);n.blotName="list";n.scope=b.default.Scope.BLOCK_BLOT;n.tagName=["OL","UL"];n.defaultChild="list-item";n.allowedChildren=[e];ka.ListItem=e;ka.default=n},function(la,ka,ha){function da(z,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);z.prototype=Object.create(w&&w.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?
|
|
369
|
+
Object.setPrototypeOf(z,w):z.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});la=function(z){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var x=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?this:x}da(w,z);return w}(function(z){return z&&z.__esModule?z:{default:z}}(ha(56)).default);
|
|
370
|
+
la.blotName="italic";la.tagName=["EM","I"];ka.default=la},function(la,ka,ha){function da(x,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);x.prototype=Object.create(f&&f.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(x,f):x.__proto__=f)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function x(f,a){for(var b=0;b<a.length;b++){var e=
|
|
371
|
+
a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,a,b){a&&x(f.prototype,a);b&&x(f,b);return f}}(),w=function e(f,a,b){null===f&&(f=Function.prototype);var n=Object.getOwnPropertyDescriptor(f,a);if(void 0===n){if(f=Object.getPrototypeOf(f),null!==f)return e(f,a,b)}else{if("value"in n)return n.value;a=n.get;return void 0===a?void 0:a.call(b)}};la=function(f){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
|
|
372
|
+
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}da(a,f);z(a,null,[{key:"create",value:function(b){return"super"===b?document.createElement("sup"):"sub"===b?document.createElement("sub"):w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,b)}},{key:"formats",value:function(b){if("SUB"===b.tagName)return"sub";if("SUP"===
|
|
373
|
+
b.tagName)return"super"}}]);return a}(function(f){return f&&f.__esModule?f:{default:f}}(ha(6)).default);la.blotName="script";la.tagName=["SUB","SUP"];ka.default=la},function(la,ka,ha){function da(z,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);z.prototype=Object.create(w&&w.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(z,w):z.__proto__=w)}
|
|
374
|
+
Object.defineProperty(ka,"__esModule",{value:!0});la=function(z){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");var x=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?this:x}da(w,z);return w}(function(z){return z&&z.__esModule?z:{default:z}}(ha(6)).default);la.blotName="strike";la.tagName="S";
|
|
375
|
+
ka.default=la},function(la,ka,ha){function da(z,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);z.prototype=Object.create(w&&w.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(z,w):z.__proto__=w)}Object.defineProperty(ka,"__esModule",{value:!0});la=function(z){function w(){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function");
|
|
376
|
+
var x=(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?this:x}da(w,z);return w}(function(z){return z&&z.__esModule?z:{default:z}}(ha(6)).default);la.blotName="underline";la.tagName="U";ka.default=la},function(la,ka,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+
|
|
377
|
+
typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function a(b,e){for(var n=0;n<e.length;n++){var h=e[n];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,e,n){e&&a(b.prototype,e);n&&a(b,n);return b}}(),w=function h(b,e,
|
|
378
|
+
n){null===b&&(b=Function.prototype);var ba=Object.getOwnPropertyDescriptor(b,e);if(void 0===ba){if(b=Object.getPrototypeOf(b),null!==b)return h(b,e,n)}else{if("value"in ba)return ba.value;e=ba.get;return void 0===e?void 0:e.call(n)}};la=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));var x=ha(27),f=["alt","height","width"];ha=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);
|
|
379
|
+
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(e,b);z(e,[{key:"format",value:function(n,h){-1<f.indexOf(n)?h?this.domNode.setAttribute(n,h):this.domNode.removeAttribute(n):w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,n,h)}}],[{key:"create",value:function(n){var h=w(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);"string"===typeof n&&
|
|
380
|
+
h.setAttribute("src",this.sanitize(n));return h}},{key:"formats",value:function(n){return f.reduce(function(h,ba){n.hasAttribute(ba)&&(h[ba]=n.getAttribute(ba));return h},{})}},{key:"match",value:function(n){return/\.(jpe?g|gif|png)$/.test(n)||/^data:image\/.+;base64/.test(n)}},{key:"sanitize",value:function(n){return(0,x.sanitize)(n,["http","https","data"])?n:"//:0"}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return e}(la.default.Embed);ha.blotName="image";ha.tagName="IMG";
|
|
381
|
+
ka.default=ha},function(la,ka,ha){function da(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,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(ka,"__esModule",{value:!0});var z=function(){function a(b,e){for(var n=0;n<e.length;n++){var h=e[n];h.enumerable=h.enumerable||!1;
|
|
382
|
+
h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(b,h.key,h)}}return function(b,e,n){e&&a(b.prototype,e);n&&a(b,n);return b}}(),w=function h(b,e,n){null===b&&(b=Function.prototype);var ba=Object.getOwnPropertyDescriptor(b,e);if(void 0===ba){if(b=Object.getPrototypeOf(b),null!==b)return h(b,e,n)}else{if("value"in ba)return ba.value;e=ba.get;return void 0===e?void 0:e.call(n)}};la=ha(4);var x=function(b){return b&&b.__esModule?b:{default:b}}(ha(27)),f=["height","width"];ha=function(b){function e(){if(!(this instanceof
|
|
383
|
+
e))throw new TypeError("Cannot call a class as a function");var n=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(e,b);z(e,[{key:"format",value:function(n,h){-1<f.indexOf(n)?h?this.domNode.setAttribute(n,h):this.domNode.removeAttribute(n):w(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,n,h)}}],
|
|
384
|
+
[{key:"create",value:function(n){var h=w(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);h.setAttribute("frameborder","0");h.setAttribute("allowfullscreen",!0);h.setAttribute("src",this.sanitize(n));return h}},{key:"formats",value:function(n){return f.reduce(function(h,ba){n.hasAttribute(ba)&&(h[ba]=n.getAttribute(ba));return h},{})}},{key:"sanitize",value:function(n){return x.default.sanitize(n)}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return e}(la.BlockEmbed);
|
|
385
|
+
ha.blotName="video";ha.className="ql-video";ha.tagName="IFRAME";ka.default=ha},function(la,ka,ha){function da(h){return h&&h.__esModule?h:{default:h}}function z(h,ba){if(!(h instanceof ba))throw new TypeError("Cannot call a class as a function");}function w(h,ba){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ba||"object"!==typeof ba&&"function"!==typeof ba?h:ba}function x(h,ba){if("function"!==typeof ba&&null!==ba)throw new TypeError("Super expression must either be null or a function, not "+
|
|
386
|
+
typeof ba);h.prototype=Object.create(ba&&ba.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});ba&&(Object.setPrototypeOf?Object.setPrototypeOf(h,ba):h.__proto__=ba)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.FormulaBlot=void 0;var f=function(){function h(ba,y){for(var aa=0;aa<y.length;aa++){var fa=y[aa];fa.enumerable=fa.enumerable||!1;fa.configurable=!0;"value"in fa&&(fa.writable=!0);Object.defineProperty(ba,fa.key,fa)}}return function(ba,y,aa){y&&h(ba.prototype,
|
|
387
|
+
y);aa&&h(ba,aa);return ba}}(),a=function fa(ba,y,aa){null===ba&&(ba=Function.prototype);var ca=Object.getOwnPropertyDescriptor(ba,y);if(void 0===ca){if(ba=Object.getPrototypeOf(ba),null!==ba)return fa(ba,y,aa)}else{if("value"in ca)return ca.value;y=ca.get;return void 0===y?void 0:y.call(aa)}};la=ha(35);la=da(la);var b=ha(5),e=da(b);ha=ha(9);ha=da(ha);var n=function(ba){function y(){z(this,y);return w(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}x(y,ba);f(y,null,[{key:"create",
|
|
388
|
+
value:function(aa){var fa=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,aa);"string"===typeof aa&&(window.katex.render(aa,fa,{throwOnError:!1,errorColor:"#f00"}),fa.setAttribute("data-value",aa));return fa}},{key:"value",value:function(aa){return aa.getAttribute("data-value")}}]);return y}(la.default);n.blotName="formula";n.className="ql-formula";n.tagName="SPAN";ha=function(ba){function y(){z(this,y);var aa=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
|
|
389
|
+
return aa}x(y,ba);f(y,null,[{key:"register",value:function(){e.default.register(n,!0)}}]);return y}(ha.default);ka.FormulaBlot=n;ka.default=ha},function(la,ka,ha){function da(ba){return ba&&ba.__esModule?ba:{default:ba}}function z(ba,y){if(!(ba instanceof y))throw new TypeError("Cannot call a class as a function");}function w(ba,y){if(!ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||"object"!==typeof y&&"function"!==typeof y?ba:y}function x(ba,y){if("function"!==
|
|
390
|
+
typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function, not "+typeof y);ba.prototype=Object.create(y&&y.prototype,{constructor:{value:ba,enumerable:!1,writable:!0,configurable:!0}});y&&(Object.setPrototypeOf?Object.setPrototypeOf(ba,y):ba.__proto__=y)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.CodeToken=ka.CodeBlock=void 0;var f=function(){function ba(y,aa){for(var fa=0;fa<aa.length;fa++){var ca=aa[fa];ca.enumerable=ca.enumerable||!1;ca.configurable=
|
|
391
|
+
!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(y,ca.key,ca)}}return function(y,aa,fa){aa&&ba(y.prototype,aa);fa&&ba(y,fa);return y}}(),a=function ca(y,aa,fa){null===y&&(y=Function.prototype);var ea=Object.getOwnPropertyDescriptor(y,aa);if(void 0===ea){if(y=Object.getPrototypeOf(y),null!==y)return ca(y,aa,fa)}else{if("value"in ea)return ea.value;aa=ea.get;return void 0===aa?void 0:aa.call(fa)}};la=ha(0);la=da(la);var b=ha(5),e=da(b);b=ha(9);b=da(b);ha=ha(13);var n=function(y){function aa(){z(this,
|
|
392
|
+
aa);return w(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}x(aa,y);f(aa,[{key:"replaceWith",value:function(fa){this.domNode.textContent=this.domNode.textContent;this.attach();a(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"replaceWith",this).call(this,fa)}},{key:"highlight",value:function(fa){var ca=this.domNode.textContent;if(this.cachedText!==ca){if(0<ca.trim().length||null==this.cachedText)this.domNode.innerHTML=fa(ca),this.domNode.normalize(),this.attach();
|
|
393
|
+
this.cachedText=ca}}}]);return aa}(da(ha).default);n.className="ql-syntax";var h=new la.default.Attributor.Class("token","hljs",{scope:la.default.Scope.INLINE});ha=function(y){function aa(fa,ca){z(this,aa);var ea=w(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this,fa,ca));if("function"!==typeof ea.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var ia=null;ea.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ia);
|
|
394
|
+
ia=setTimeout(function(){ea.highlight();ia=null},ea.options.interval)});ea.highlight();return ea}x(aa,y);f(aa,null,[{key:"register",value:function(){e.default.register(h,!0);e.default.register(n,!0)}}]);f(aa,[{key:"highlight",value:function(){var fa=this;if(!this.quill.selection.composing){this.quill.update(e.default.sources.USER);var ca=this.quill.getSelection();this.quill.scroll.descendants(n).forEach(function(ea){ea.highlight(fa.options.highlight)});this.quill.update(e.default.sources.SILENT);
|
|
395
|
+
null!=ca&&this.quill.setSelection(ca,e.default.sources.SILENT)}}}]);return aa}(b.default);ha.DEFAULTS={highlight:function(){return null==window.hljs?null:function(y){return window.hljs.highlightAuto(y).value}}(),interval:1E3};ka.CodeBlock=n;ka.CodeToken=h;ka.default=ha},function(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la){la.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(la,ka,ha){function da(fa){return fa&&fa.__esModule?fa:{default:fa}}function z(fa,ca){if(!(fa instanceof ca))throw new TypeError("Cannot call a class as a function");}function w(fa,ca){if(!fa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&
|
|
415
|
+
"function"!==typeof ca?fa:ca}function x(fa,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);fa.prototype=Object.create(ca&&ca.prototype,{constructor:{value:fa,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(fa,ca):fa.__proto__=ca)}Object.defineProperty(ka,"__esModule",{value:!0});ka.default=ka.BubbleTooltip=void 0;var f=function ja(ca,ea,ia){null===ca&&(ca=Function.prototype);
|
|
416
|
+
var na=Object.getOwnPropertyDescriptor(ca,ea);if(void 0===na){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,ea,ia)}else{if("value"in na)return na.value;ea=na.get;return void 0===ea?void 0:ea.call(ia)}},a=function(){function ca(ea,ia){for(var ja=0;ja<ia.length;ja++){var na=ia[ja];na.enumerable=na.enumerable||!1;na.configurable=!0;"value"in na&&(na.writable=!0);Object.defineProperty(ea,na.key,na)}}return function(ea,ia,ja){ia&&ca(ea.prototype,ia);ja&&ca(ea,ja);return ea}}();la=ha(3);la=da(la);
|
|
417
|
+
var b=ha(8),e=da(b);b=ha(43);var n=da(b),h=ha(15);ha=ha(41);var ba=da(ha),y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];ha=function(ca){function ea(ia,ja){z(this,ea);null!=ja.modules.toolbar&&null==ja.modules.toolbar.container&&(ja.modules.toolbar.container=y);ia=w(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ia,ja));ia.quill.container.classList.add("ql-bubble");return ia}x(ea,ca);a(ea,[{key:"extendToolbar",value:function(ia){this.tooltip=new aa(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 ea}(n.default);ha.DEFAULTS=(0,la.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ca){ca?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var aa=function(ca){function ea(ia,ja){z(this,ea);var na=w(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,
|
|
419
|
+
ia,ja));na.quill.on(e.default.events.EDITOR_CHANGE,function(ma,ra,sa,ua){ma===e.default.events.SELECTION_CHANGE&&(null!=ra&&0<ra.length&&ua===e.default.sources.USER?(na.show(),na.root.style.left="0px",na.root.style.width="",na.root.style.width=na.root.offsetWidth+"px",ma=na.quill.getLines(ra.index,ra.length),1===ma.length?na.position(na.quill.getBounds(ra)):(sa=ma[ma.length-1],ma=na.quill.getIndex(sa),ra=Math.min(sa.length()-1,ra.index+ra.length-ma),ra=na.quill.getBounds(new h.Range(ma,ra)),na.position(ra))):
|
|
420
|
+
document.activeElement!==na.textbox&&na.quill.hasFocus()&&na.hide())});return na}x(ea,ca);a(ea,[{key:"listen",value:function(){var ia=this;f(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){ia.root.classList.remove("ql-editing")});this.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ia.root.classList.contains("ql-hidden")){var ja=ia.quill.getSelection();null!=
|
|
421
|
+
ja&&ia.position(ia.quill.getBounds(ja))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ia){ia=f(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"position",this).call(this,ia);var ja=this.root.querySelector(".ql-tooltip-arrow");ja.style.marginLeft="";if(0===ia)return ia;ja.style.marginLeft=-1*ia-ja.offsetWidth/2+"px"}}]);return ea}(b.BaseTooltip);aa.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
|
+
ka.BubbleTooltip=aa;ka.default=ha},function(la,ka,ha){la.exports=ha(63)}])["default"]})}).call(this,r(436).Buffer)}}]);}).call(this || window)
|