@pdftron/pdfjs-express 8.0.0 → 8.2.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.
Files changed (188) hide show
  1. package/package.json +3 -2
  2. package/public/core/21.chunk.js +7 -7
  3. package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
  4. package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
  5. package/public/core/AzurePartRetriever.chunk.js +2 -2
  6. package/public/core/ExternalAnnotationMerger.chunk.js +13 -13
  7. package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
  8. package/public/core/HttpPartRetriever.chunk.js +13 -12
  9. package/public/core/IOSPartRetriever.chunk.js +2 -3
  10. package/public/core/LocalPartRetriever.chunk.js +4 -4
  11. package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
  12. package/public/core/PDFInfoVersion1.chunk.js +16 -15
  13. package/public/core/SelectionInfoOld.chunk.js +14 -14
  14. package/public/core/StreamingPartRetriever.chunk.js +9 -9
  15. package/public/core/WebDBPartRetriever.chunk.js +2 -2
  16. package/public/core/WebViewerServerPartRetriever.chunk.js +31 -28
  17. package/public/core/WinRTPartRetriever.chunk.js +2 -2
  18. package/public/core/legacyOffice/LegacyOfficeWorker.js +1 -1
  19. package/public/core/pdfjs/PDFJSDocumentType.js +1401 -1388
  20. package/public/core/pdfjs/pdf.worker.js +1174 -1161
  21. package/public/core/pdfjs/pdfjsexpress.asm.js +1 -1
  22. package/public/core/pdfjs/pdfjsexpress.wasm +0 -0
  23. package/public/core/pikaday.chunk.js +33 -32
  24. package/public/core/vendors.ascii85.chunk.js +6 -6
  25. package/public/core/vendors.ascii85.quill.chunk.js +34 -31
  26. package/public/core/vendors.pako.chunk.js +80 -76
  27. package/public/core/vendors.quill.chunk.js +421 -409
  28. package/public/core/webviewer-core.min.js +2533 -2336
  29. package/public/ui/chunks/10.chunk.js +1 -1
  30. package/public/ui/chunks/100.chunk.js +1 -1
  31. package/public/ui/chunks/101.chunk.js +1 -1
  32. package/public/ui/chunks/102.chunk.js +1 -1
  33. package/public/ui/chunks/103.chunk.js +1 -1
  34. package/public/ui/chunks/104.chunk.js +1 -1
  35. package/public/ui/chunks/105.chunk.js +1 -1
  36. package/public/ui/chunks/106.chunk.js +1 -1
  37. package/public/ui/chunks/107.chunk.js +1 -1
  38. package/public/ui/chunks/108.chunk.js +1 -1
  39. package/public/ui/chunks/109.chunk.js +1 -1
  40. package/public/ui/chunks/11.chunk.js +1 -1
  41. package/public/ui/chunks/110.chunk.js +1 -1
  42. package/public/ui/chunks/111.chunk.js +1 -1
  43. package/public/ui/chunks/112.chunk.js +1 -1
  44. package/public/ui/chunks/113.chunk.js +1 -1
  45. package/public/ui/chunks/114.chunk.js +1 -1
  46. package/public/ui/chunks/115.chunk.js +1 -1
  47. package/public/ui/chunks/116.chunk.js +1 -1
  48. package/public/ui/chunks/117.chunk.js +1 -1
  49. package/public/ui/chunks/118.chunk.js +1 -1
  50. package/public/ui/chunks/119.chunk.js +1 -1
  51. package/public/ui/chunks/12.chunk.js +1 -1
  52. package/public/ui/chunks/120.chunk.js +1 -1
  53. package/public/ui/chunks/121.chunk.js +1 -1
  54. package/public/ui/chunks/122.chunk.js +1 -1
  55. package/public/ui/chunks/123.chunk.js +1 -1
  56. package/public/ui/chunks/124.chunk.js +1 -1
  57. package/public/ui/chunks/125.chunk.js +1 -1
  58. package/public/ui/chunks/126.chunk.js +1 -1
  59. package/public/ui/chunks/127.chunk.js +1 -1
  60. package/public/ui/chunks/128.chunk.js +1 -1
  61. package/public/ui/chunks/129.chunk.js +1 -1
  62. package/public/ui/chunks/13.chunk.js +1 -1
  63. package/public/ui/chunks/130.chunk.js +1 -1
  64. package/public/ui/chunks/131.chunk.js +1 -1
  65. package/public/ui/chunks/132.chunk.js +1 -1
  66. package/public/ui/chunks/133.chunk.js +1 -1
  67. package/public/ui/chunks/134.chunk.js +1 -1
  68. package/public/ui/chunks/135.chunk.js +1 -1
  69. package/public/ui/chunks/136.chunk.js +1 -1
  70. package/public/ui/chunks/137.chunk.js +1 -1
  71. package/public/ui/chunks/138.chunk.js +1 -1
  72. package/public/ui/chunks/139.chunk.js +1 -1
  73. package/public/ui/chunks/14.chunk.js +1 -1
  74. package/public/ui/chunks/140.chunk.js +1 -1
  75. package/public/ui/chunks/141.chunk.js +1 -1
  76. package/public/ui/chunks/142.chunk.js +1 -0
  77. package/public/ui/chunks/143.chunk.js +1 -0
  78. package/public/ui/chunks/144.chunk.js +1 -0
  79. package/public/ui/chunks/145.chunk.js +1 -0
  80. package/public/ui/chunks/15.chunk.js +1 -1
  81. package/public/ui/chunks/16.chunk.js +1 -1
  82. package/public/ui/chunks/17.chunk.js +1 -1
  83. package/public/ui/chunks/18.chunk.js +1 -1
  84. package/public/ui/chunks/19.chunk.js +1 -1
  85. package/public/ui/chunks/20.chunk.js +1 -1
  86. package/public/ui/chunks/21.chunk.js +1 -1
  87. package/public/ui/chunks/22.chunk.js +1 -1
  88. package/public/ui/chunks/23.chunk.js +1 -1
  89. package/public/ui/chunks/24.chunk.js +1 -1
  90. package/public/ui/chunks/25.chunk.js +1 -1
  91. package/public/ui/chunks/26.chunk.js +1 -1
  92. package/public/ui/chunks/27.chunk.js +1 -1
  93. package/public/ui/chunks/28.chunk.js +1 -1
  94. package/public/ui/chunks/29.chunk.js +1 -1
  95. package/public/ui/chunks/30.chunk.js +1 -1
  96. package/public/ui/chunks/31.chunk.js +1 -1
  97. package/public/ui/chunks/32.chunk.js +1 -1
  98. package/public/ui/chunks/33.chunk.js +1 -1
  99. package/public/ui/chunks/34.chunk.js +1 -1
  100. package/public/ui/chunks/35.chunk.js +1 -1
  101. package/public/ui/chunks/36.chunk.js +1 -1
  102. package/public/ui/chunks/37.chunk.js +1 -1
  103. package/public/ui/chunks/38.chunk.js +1 -1
  104. package/public/ui/chunks/39.chunk.js +1 -1
  105. package/public/ui/chunks/4.chunk.js +1 -1
  106. package/public/ui/chunks/40.chunk.js +1 -1
  107. package/public/ui/chunks/41.chunk.js +1 -1
  108. package/public/ui/chunks/42.chunk.js +1 -1
  109. package/public/ui/chunks/43.chunk.js +1 -1
  110. package/public/ui/chunks/44.chunk.js +1 -1
  111. package/public/ui/chunks/45.chunk.js +1 -1
  112. package/public/ui/chunks/46.chunk.js +1 -1
  113. package/public/ui/chunks/47.chunk.js +1 -1
  114. package/public/ui/chunks/48.chunk.js +1 -1
  115. package/public/ui/chunks/49.chunk.js +1 -1
  116. package/public/ui/chunks/5.chunk.js +1 -1
  117. package/public/ui/chunks/50.chunk.js +1 -1
  118. package/public/ui/chunks/51.chunk.js +1 -1
  119. package/public/ui/chunks/52.chunk.js +1 -1
  120. package/public/ui/chunks/53.chunk.js +1 -1
  121. package/public/ui/chunks/54.chunk.js +1 -1
  122. package/public/ui/chunks/55.chunk.js +1 -1
  123. package/public/ui/chunks/56.chunk.js +1 -1
  124. package/public/ui/chunks/57.chunk.js +1 -1
  125. package/public/ui/chunks/58.chunk.js +1 -1
  126. package/public/ui/chunks/59.chunk.js +1 -1
  127. package/public/ui/chunks/6.chunk.js +1 -1
  128. package/public/ui/chunks/60.chunk.js +1 -1
  129. package/public/ui/chunks/61.chunk.js +1 -1
  130. package/public/ui/chunks/62.chunk.js +1 -1
  131. package/public/ui/chunks/63.chunk.js +1 -1
  132. package/public/ui/chunks/64.chunk.js +1 -1
  133. package/public/ui/chunks/65.chunk.js +1 -1
  134. package/public/ui/chunks/66.chunk.js +1 -1
  135. package/public/ui/chunks/67.chunk.js +1 -1
  136. package/public/ui/chunks/68.chunk.js +1 -1
  137. package/public/ui/chunks/69.chunk.js +1 -1
  138. package/public/ui/chunks/7.chunk.js +1 -1
  139. package/public/ui/chunks/70.chunk.js +1 -1
  140. package/public/ui/chunks/71.chunk.js +1 -1
  141. package/public/ui/chunks/72.chunk.js +1 -1
  142. package/public/ui/chunks/73.chunk.js +1 -1
  143. package/public/ui/chunks/74.chunk.js +1 -1
  144. package/public/ui/chunks/75.chunk.js +1 -1
  145. package/public/ui/chunks/76.chunk.js +1 -1
  146. package/public/ui/chunks/77.chunk.js +1 -1
  147. package/public/ui/chunks/78.chunk.js +1 -1
  148. package/public/ui/chunks/79.chunk.js +1 -1
  149. package/public/ui/chunks/8.chunk.js +1 -1
  150. package/public/ui/chunks/80.chunk.js +1 -1
  151. package/public/ui/chunks/81.chunk.js +1 -1
  152. package/public/ui/chunks/82.chunk.js +1 -1
  153. package/public/ui/chunks/83.chunk.js +1 -1
  154. package/public/ui/chunks/84.chunk.js +1 -1
  155. package/public/ui/chunks/85.chunk.js +1 -1
  156. package/public/ui/chunks/86.chunk.js +1 -1
  157. package/public/ui/chunks/87.chunk.js +1 -1
  158. package/public/ui/chunks/88.chunk.js +1 -1
  159. package/public/ui/chunks/89.chunk.js +1 -1
  160. package/public/ui/chunks/9.chunk.js +1 -1
  161. package/public/ui/chunks/90.chunk.js +1 -1
  162. package/public/ui/chunks/91.chunk.js +1 -1
  163. package/public/ui/chunks/92.chunk.js +1 -1
  164. package/public/ui/chunks/93.chunk.js +1 -1
  165. package/public/ui/chunks/94.chunk.js +1 -1
  166. package/public/ui/chunks/95.chunk.js +1 -1
  167. package/public/ui/chunks/96.chunk.js +1 -1
  168. package/public/ui/chunks/97.chunk.js +1 -1
  169. package/public/ui/chunks/98.chunk.js +1 -1
  170. package/public/ui/chunks/99.chunk.js +1 -1
  171. package/public/ui/chunks/mention.chunk.js +1 -1
  172. package/public/ui/chunks/vendors.html2canvas.chunk.js +1 -21
  173. package/public/ui/chunks/vendors.mention.chunk.js +1 -1
  174. package/public/ui/i18n/translation-de.json +150 -58
  175. package/public/ui/i18n/translation-en.json +105 -13
  176. package/public/ui/i18n/translation-es.json +100 -8
  177. package/public/ui/i18n/translation-fr.json +100 -8
  178. package/public/ui/i18n/translation-it.json +100 -8
  179. package/public/ui/i18n/translation-ja.json +100 -8
  180. package/public/ui/i18n/translation-ko.json +281 -190
  181. package/public/ui/i18n/translation-nl.json +100 -8
  182. package/public/ui/i18n/translation-pt_br.json +100 -8
  183. package/public/ui/i18n/translation-ru.json +101 -9
  184. package/public/ui/i18n/translation-zh_cn.json +100 -8
  185. package/public/ui/i18n/translation-zh_tw.json +100 -8
  186. package/public/ui/style.css +52 -41
  187. package/public/ui/webviewer-ui.min.js +21 -19
  188. package/webviewer.min.js +1 -1
@@ -1,410 +1,422 @@
1
1
  /** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
2
- (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{314:function(ha,da,f){(function(f){(function(f,aa){ha.exports=aa()})("undefined"!==typeof self?self:this,function(){return function(f){function z(ca){if(ba[ca])return ba[ca].exports;var y=ba[ca]={i:ca,l:!1,exports:{}};f[ca].call(y.exports,y,y.exports,z);y.l=!0;return y.exports}var ba={};z.m=f;z.c=ba;z.d=function(f,y,n){z.o(f,y)||Object.defineProperty(f,y,{configurable:!1,enumerable:!0,get:n})};z.n=function(f){var y=f&&f.__esModule?
3
- function(){return f["default"]}:function(){return f};z.d(y,"a",y);return y};z.o=function(f,y){return Object.prototype.hasOwnProperty.call(f,y)};z.p="";return z(z.s=109)}([function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});f=ba(17);var z=ba(18),y=ba(19),n=ba(45),w=ba(46),h=ba(47),e=ba(48),r=ba(49),x=ba(12),ia=ba(32),ea=ba(33),fa=ba(31);ba=ba(1);aa.default={Scope:ba.Scope,create:ba.create,find:ba.find,query:ba.query,register:ba.register,Container:f.default,Format:z.default,Leaf:y.default,
4
- Embed:e.default,Scroll:n.default,Block:h.default,Inline:w.default,Text:r.default,Attributor:{Attribute:x.default,Class:ia.default,Style:ea.default,Store:fa.default}}},function(f,aa){function z(e,h){void 0===h&&(h=!1);return null==e?null:null!=e[aa.DATA_KEY]?e[aa.DATA_KEY].blot:h?z(e.parentNode,h):null}function ca(f,n){void 0===n&&(n=ia.ANY);if("string"===typeof f)var w=x[f]||h[f];else if(f instanceof Text||f.nodeType===Node.TEXT_NODE)w=x.text;else if("number"===typeof f)f&ia.LEVEL&ia.BLOCK?w=x.block:
5
- f&ia.LEVEL&ia.INLINE&&(w=x.inline);else if(f instanceof HTMLElement){var y=(f.getAttribute("class")||"").split(/\s+/),z;for(z in y)if(w=e[y[z]])break;w=w||r[f.tagName]}return null==w?null:n&ia.LEVEL&w.scope&&n&ia.TYPE&w.scope?w:null}function y(){for(var f=[],n=0;n<arguments.length;n++)f[n]=arguments[n];if(1<f.length)return f.map(function(e){return y(e)});var z=f[0];if("string"!==typeof z.blotName&&"string"!==typeof z.attrName)throw new w("Invalid definition");if("abstract"===z.blotName)throw new w("Cannot register abstract class");
6
- x[z.blotName||z.attrName]=z;"string"===typeof z.keyName?h[z.keyName]=z:(null!=z.className&&(e[z.className]=z),null!=z.tagName&&(Array.isArray(z.tagName)?z.tagName=z.tagName.map(function(e){return e.toUpperCase()}):z.tagName=z.tagName.toUpperCase(),(Array.isArray(z.tagName)?z.tagName:[z.tagName]).forEach(function(e){if(null==r[e]||null==z.className)r[e]=z})));return z}var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,
7
- h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(h,f){function n(){this.constructor=h}e(h,f);h.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});var w=function(e){function h(h){h="[Parchment] "+h;var f=e.call(this,h)||this;f.message=h;f.name=f.constructor.name;return f}n(h,e);return h}(Error);aa.ParchmentError=w;var h={},e={},r={},x={};aa.DATA_KEY="__blot";var ia;(function(e){e[e.TYPE=3]="TYPE";e[e.LEVEL=12]=
8
- "LEVEL";e[e.ATTRIBUTE=13]="ATTRIBUTE";e[e.BLOT=14]="BLOT";e[e.INLINE=7]="INLINE";e[e.BLOCK=11]="BLOCK";e[e.BLOCK_BLOT=10]="BLOCK_BLOT";e[e.INLINE_BLOT=6]="INLINE_BLOT";e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";e[e.ANY=15]="ANY"})(ia=aa.Scope||(aa.Scope={}));aa.create=function(e,h){var f=ca(e);if(null==f)throw new w("Unable to create "+e+" blot");e=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:f.create(h);return new f(e,h)};aa.find=z;aa.query=ca;aa.register=
9
- y},function(f,aa,ba){function z(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var y=ba(51),n=ba(11),w=ba(3),h=ba(20),e=String.fromCharCode(0);z.prototype.insert=function(e,h){var f={};if(0===e.length)return this;f.insert=e;null!=h&&"object"===typeof h&&0<Object.keys(h).length&&(f.attributes=h);return this.push(f)};z.prototype["delete"]=function(e){return 0>=e?this:this.push({"delete":e})};z.prototype.retain=function(e,h){if(0>=e)return this;e={retain:e};null!=
10
- h&&"object"===typeof h&&0<Object.keys(h).length&&(e.attributes=h);return this.push(e)};z.prototype.push=function(e){var h=this.ops.length,f=this.ops[h-1];e=w(!0,{},e);if("object"===typeof f){if("number"===typeof e["delete"]&&"number"===typeof f["delete"])return this.ops[h-1]={"delete":f["delete"]+e["delete"]},this;if("number"===typeof f["delete"]&&null!=e.insert&&(--h,f=this.ops[h-1],"object"!==typeof f))return this.ops.unshift(e),this;if(n(e.attributes,f.attributes)){if("string"===typeof e.insert&&
11
- "string"===typeof f.insert)return this.ops[h-1]={insert:f.insert+e.insert},"object"===typeof e.attributes&&(this.ops[h-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof f.retain)return this.ops[h-1]={retain:f.retain+e.retain},"object"===typeof e.attributes&&(this.ops[h-1].attributes=e.attributes),this}}h===this.ops.length?this.ops.push(e):this.ops.splice(h,0,e);return this};z.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();
12
- return this};z.prototype.filter=function(e){return this.ops.filter(e)};z.prototype.forEach=function(e){this.ops.forEach(e)};z.prototype.map=function(e){return this.ops.map(e)};z.prototype.partition=function(e){var h=[],f=[];this.forEach(function(n){(e(n)?h:f).push(n)});return[h,f]};z.prototype.reduce=function(e,h){return this.ops.reduce(e,h)};z.prototype.changeLength=function(){return this.reduce(function(e,f){return f.insert?e+h.length(f):f.delete?e-f.delete:e},0)};z.prototype.length=function(){return this.reduce(function(e,
13
- f){return e+h.length(f)},0)};z.prototype.slice=function(e,f){e=e||0;"number"!==typeof f&&(f=Infinity);for(var n=[],r=h.iterator(this.ops),x=0;x<f&&r.hasNext();){if(x<e)var w=r.next(e-x);else w=r.next(f-x),n.push(w);x+=h.length(w)}return new z(n)};z.prototype.compose=function(e){var f=h.iterator(this.ops);e=h.iterator(e.ops);var r=[],w=e.peek();if(null!=w&&"number"===typeof w.retain&&null==w.attributes){for(var y=w.retain;"insert"===f.peekType()&&f.peekLength()<=y;)y-=f.peekLength(),r.push(f.next());
14
- 0<w.retain-y&&e.next(w.retain-y)}for(r=new z(r);f.hasNext()||e.hasNext();)if("insert"===e.peekType())r.push(e.next());else if("delete"===f.peekType())r.push(f.next());else{y=Math.min(f.peekLength(),e.peekLength());var ca=f.next(y),ba=e.next(y);if("number"===typeof ba.retain){w={};"number"===typeof ca.retain?w.retain=y:w.insert=ca.insert;if(y=h.attributes.compose(ca.attributes,ba.attributes,"number"===typeof ca.retain))w.attributes=y;r.push(w);if(!e.hasNext()&&n(r.ops[r.ops.length-1],w))return f=new z(f.rest()),
15
- r.concat(f).chop()}else"number"===typeof ba["delete"]&&"number"===typeof ca.retain&&r.push(ba)}return r.chop()};z.prototype.concat=function(e){var h=new z(this.ops.slice());0<e.ops.length&&(h.push(e.ops[0]),h.ops=h.ops.concat(e.ops.slice(1)));return h};z.prototype.diff=function(f,x){if(this.ops===f.ops)return new z;var r=[this,f].map(function(h){return h.map(function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:e;throw Error("diff() called "+(h===f?"on":"with")+" non-document");
16
- }).join("")}),w=new z;x=y(r[0],r[1],x);var ca=h.iterator(this.ops),ba=h.iterator(f.ops);x.forEach(function(e){for(var f=e[1].length;0<f;){var r=0;switch(e[0]){case y.INSERT:r=Math.min(ba.peekLength(),f);w.push(ba.next(r));break;case y.DELETE:r=Math.min(f,ca.peekLength());ca.next(r);w["delete"](r);break;case y.EQUAL:r=Math.min(ca.peekLength(),ba.peekLength(),f);var x=ca.next(r),z=ba.next(r);if(n(x.insert,z.insert))w.retain(r,h.attributes.diff(x.attributes,z.attributes));else w.push(z)["delete"](r)}f-=
17
- r}});return w.chop()};z.prototype.eachLine=function(e,f){f=f||"\n";for(var n=h.iterator(this.ops),r=new z,x=0;n.hasNext();){if("insert"!==n.peekType())return;var w=n.peek(),y=h.length(w)-n.peekLength();w="string"===typeof w.insert?w.insert.indexOf(f,y)-y:-1;if(0>w)r.push(n.next());else if(0<w)r.push(n.next(w));else{if(!1===e(r,n.next(1).attributes||{},x))return;x+=1;r=new z}}0<r.length()&&e(r,{},x)};z.prototype.transform=function(e,f){f=!!f;if("number"===typeof e)return this.transformPosition(e,f);
18
- var n=h.iterator(this.ops);e=h.iterator(e.ops);for(var r=new z;n.hasNext()||e.hasNext();)if("insert"!==n.peekType()||!f&&"insert"===e.peekType())if("insert"===e.peekType())r.push(e.next());else{var x=Math.min(n.peekLength(),e.peekLength()),w=n.next(x),y=e.next(x);w["delete"]||(y["delete"]?r.push(y):r.retain(x,h.attributes.transform(w.attributes,y.attributes,f)))}else r.retain(h.length(n.next()));return r.chop()};z.prototype.transformPosition=function(e,f){f=!!f;for(var n=h.iterator(this.ops),r=0;n.hasNext()&&
19
- r<=e;){var x=n.peekLength(),w=n.peekType();n.next();"delete"===w?e-=Math.min(x,e-r):("insert"===w&&(r<e||!f)&&(e+=x),r+=x)}return e};f.exports=z},function(f){function z(h,f){if("__proto__"===f){if(!n.call(h,f))return;if(e)return e(h,f).value}return h[f]}function ba(e,f){h&&"__proto__"===f.name?h(e,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):e[f.name]=f.newValue}function ca(e){if(!e||"[object Object]"!==w.call(e))return!1;var h=n.call(e,"constructor"),f=e.constructor&&e.constructor.prototype&&
20
- n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!h&&!f)return!1;for(var r in e);return"undefined"===typeof r||n.call(e,r)}function y(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===w.call(e)}var n=Object.prototype.hasOwnProperty,w=Object.prototype.toString,h=Object.defineProperty,e=Object.getOwnPropertyDescriptor;f.exports=function x(){var e,h,f=arguments[0],n=1,w=arguments.length,aa=!1;"boolean"===typeof f&&(aa=f,f=arguments[1]||{},n=2);if(null==f||
21
- "object"!==typeof f&&"function"!==typeof f)f={};for(;n<w;++n){var fa=arguments[n];if(null!=fa)for(e in fa){var da=z(f,e);var ha=z(fa,e);f!==ha&&(aa&&ha&&(ca(ha)||(h=y(ha)))?(h?(h=!1,da=da&&y(da)?da:[]):da=da&&ca(da)?da:{},ba(f,{name:e,newValue:x(aa,da,ha)})):"undefined"!==typeof ha&&ba(f,{name:e,newValue:ha}))}}return f}},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,h){if(!(e instanceof h))throw new TypeError("Cannot call a class as a function");}function n(e,
22
- h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function w(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}function h(e){var f=1<arguments.length&&
23
- void 0!==arguments[1]?arguments[1]:{};if(null==e)return f;"function"===typeof e.formats&&(f=(0,x.default)(f,e.formats()));return null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?f:h(e.parent,f)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.BlockEmbed=aa.bubbleFormats=void 0;var e=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
24
- n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),r=function oa(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return oa(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};f=ba(3);var x=z(f);f=ba(2);var ia=z(f);f=ba(0);var ea=z(f);f=ba(16);var fa=z(f);f=ba(6);f=z(f);ba=ba(7);ba=z(ba);var da=function(h){function f(){y(this,f);return n(this,(f.__proto__||
25
- Object.getPrototypeOf(f)).apply(this,arguments))}w(f,h);e(f,[{key:"attach",value:function(){r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"attach",this).call(this);this.attributes=new ea.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new ia.default).insert(this.value(),(0,x.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,h){e=ea.default.query(e,ea.default.Scope.BLOCK_ATTRIBUTE);null!=e&&this.attributes.attribute(e,h)}},
26
- {key:"formatAt",value:function(e,h,f,n){this.format(f,n)}},{key:"insertAt",value:function(e,h,n){"string"===typeof h&&h.endsWith("\n")?(n=ea.default.create(ha.blotName),this.parent.insertBefore(n,0===e?this:this.next),n.insertAt(0,h.slice(0,-1))):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"insertAt",this).call(this,e,h,n)}}]);return f}(ea.default.Embed);da.scope=ea.default.Scope.BLOCK_BLOT;var ha=function(f){function x(e){y(this,x);e=n(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,
27
- e));e.cache={};return e}w(x,f);e(x,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(ea.default.Leaf).reduce(function(e,f){return 0===f.length()?e:e.insert(f.value(),h(f))},new ia.default).insert("\n",h(this)));return this.cache.delta}},{key:"deleteAt",value:function(e,h){r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"deleteAt",this).call(this,e,h);this.cache={}}},{key:"formatAt",value:function(e,h,f,n){0>=h||(ea.default.query(f,ea.default.Scope.BLOCK)?
28
- e+h===this.length()&&this.format(f,n):r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,e,Math.min(h,this.length()-e-1),f,n),this.cache={})}},{key:"insertAt",value:function(e,h,f){if(null!=f)return r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,e,h,f);if(0!==h.length){h=h.split("\n");f=h.shift();0<f.length&&(e<this.length()-1||null==this.children.tail?r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",
29
- this).call(this,Math.min(e,this.length()-1),f):this.children.tail.insertAt(this.children.tail.length(),f),this.cache={});var n=this;h.reduce(function(e,h){n=n.split(e,!0);n.insertAt(0,h);return h.length},e+f.length)}}},{key:"insertBefore",value:function(e,h){var f=this.children.head;r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,e,h);f instanceof fa.default&&f.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=
30
- r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",value:function(e,h){r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"moveChildren",this).call(this,e,h);this.cache={}}},{key:"optimize",value:function(e){r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,e);this.cache={}}},{key:"path",value:function(e){return r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),
31
- "path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"removeChild",this).call(this,e);this.cache={}}},{key:"split",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(h&&(0===e||e>=this.length()-1)){h=this.clone();if(0===e)return this.parent.insertBefore(h,this),this;this.parent.insertBefore(h,this.next);return h}h=r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"split",this).call(this,
32
- e,h);this.cache={};return h}}]);return x}(ea.default.Block);ha.blotName="block";ha.tagName="P";ha.defaultChild="break";ha.allowedChildren=[f.default,ea.default.Embed,ba.default];aa.bubbleFormats=h;aa.BlockEmbed=da;aa.default=ha},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,h,f){h in e?Object.defineProperty(e,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):e[h]=f;return e}function n(e,h){h=(0,pa.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,
33
- history:!0}},h);if(h.theme&&h.theme!==ma.DEFAULTS.theme){if(h.theme=ma.import("themes/"+h.theme),null==h.theme)throw Error("Invalid theme "+h.theme+". Did you register it?");}else h.theme=Ca.default;e=(0,pa.default)(!0,{},h.theme.DEFAULTS);[e,h].forEach(function(e){e.modules=e.modules||{};Object.keys(e.modules).forEach(function(h){!0===e.modules[h]&&(e.modules[h]={})})});var f=Object.keys(e.modules).concat(Object.keys(h.modules)).reduce(function(e,h){var f=ma.import("modules/"+h);null==f?qa.error("Cannot load "+
34
- h+" module. Are you sure you registered it?"):e[h]=f.DEFAULTS||{};return e},{});null!=h.modules&&h.modules.toolbar&&h.modules.toolbar.constructor!==Object&&(h.modules.toolbar={container:h.modules.toolbar});h=(0,pa.default)(!0,{},ma.DEFAULTS,{modules:f},e,h);["bounds","container","scrollingContainer"].forEach(function(e){"string"===typeof h[e]&&(h[e]=document.querySelector(h[e]))});h.modules=Object.keys(h.modules).reduce(function(e,f){h.modules[f]&&(e[f]=h.modules[f]);return e},{});return h}function w(h,
35
- f,n,r){if(this.options.strict&&!this.isEnabled()&&f===da.default.sources.USER)return new ea.default;var x=null==n?null:this.getSelection(),w=this.editor.delta;h=h();null!=x&&(!0===n&&(n=x.index),null==r?x=e(x,h,f):0!==r&&(x=e(x,n,r,f)),this.setSelection(x,da.default.sources.SILENT));if(0<h.length()){var y;n=[da.default.events.TEXT_CHANGE,h,w,f];(y=this.emitter).emit.apply(y,[da.default.events.EDITOR_CHANGE].concat(n));if(f!==da.default.sources.SILENT){var z;(z=this.emitter).emit.apply(z,n)}}return h}
36
- function h(e,h,f,n,x){var w={};"number"===typeof e.index&&"number"===typeof e.length?("number"!==typeof h?(x=n,n=f,f=h,h=e.length):h=e.length,e=e.index):"number"!==typeof h&&(x=n,n=f,f=h,h=0);"object"===("undefined"===typeof f?"undefined":r(f))?(w=f,x=n):"string"===typeof f&&(null!=n?w[f]=n:x=f);x=x||da.default.sources.API;return[e,h,w,x]}function e(e,h,f,n){if(null==e)return null;var r=void 0,w=void 0;h instanceof ea.default?(r=[e.index,e.index+e.length].map(function(e){return h.transformPosition(e,
37
- n!==da.default.sources.USER)}),e=x(r,2),r=e[0],w=e[1]):(r=[e.index,e.index+e.length].map(function(e){return e<h||e===h&&n===da.default.sources.USER?e:0<=f?e+f:Math.max(h,e+f)}),e=x(r,2),r=e[0],w=e[1]);return new ja.Range(r,w-r)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.overload=aa.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?
38
- "symbol":typeof e},x=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,x=void 0;try{for(var w=e[Symbol.iterator](),y;!(n=(y=w.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(Da){r=!0,x=Da}finally{try{if(!n&&w["return"])w["return"]()}finally{if(r)throw x;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ia=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=
39
- n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}();ba(50);f=ba(2);var ea=z(f);f=ba(14);var fa=z(f);f=ba(8);var da=z(f);f=ba(9);f=z(f);var ha=ba(0),la=z(ha),ja=ba(15),ta=z(ja);ha=ba(3);var pa=z(ha);ha=ba(10);var oa=z(ha);ba=ba(34);var Ca=z(ba),qa=(0,oa.default)("quill"),ma=function(){function e(h){var f=this,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof
40
- e))throw new TypeError("Cannot call a class as a function");this.options=n(h,r);this.container=this.options.container;if(null==this.container)return qa.error("Invalid Quill container",h);this.options.debug&&e.debug(this.options.debug);r=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=
41
- this.options.scrollingContainer||this.root;this.emitter=new da.default;this.scroll=la.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new fa.default(this.scroll);this.selection=new ta.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(da.default.events.EDITOR_CHANGE,
42
- function(e){e===da.default.events.TEXT_CHANGE&&f.root.classList.toggle("ql-blank",f.editor.isBlank())});this.emitter.on(da.default.events.SCROLL_UPDATE,function(e,h){var n=f.selection.lastRange,r=n&&0===n.length?n.index:void 0;w.call(f,function(){return f.editor.update(null,h,r)},e)});r=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(r);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);
43
- this.options.readOnly&&this.disable()}ia(e,null,[{key:"debug",value:function(e){!0===e&&(e="log");oa.default.level(e)}},{key:"find",value:function(e){return e.__quill||la.default.find(e)}},{key:"import",value:function(e){null==this.imports[e]&&qa.error("Cannot import "+e+". Are you sure it was registered?");return this.imports[e]}},{key:"register",value:function(e,h){var f=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof e?(n=e.attrName||e.blotName,"string"===typeof n?
44
- this.register("formats/"+n,e,h):Object.keys(e).forEach(function(n){f.register(n,e[n],h)})):(null==this.imports[e]||n||qa.warn("Overwriting "+e+" with",h),this.imports[e]=h,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==h.blotName?la.default.register(h):e.startsWith("modules")&&"function"===typeof h.register&&h.register())}}]);ia(e,[{key:"addContainer",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var f=e;e=document.createElement("div");
45
- e.classList.add(f)}this.container.insertBefore(e,h);return e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,f,n){var r=this;n=h(e,f,n);n=x(n,4);e=n[0];f=n[1];n=n[3];return w.call(this,function(){return r.editor.deleteText(e,f)},n,e,-1*f)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(e);this.container.classList.toggle("ql-disabled",
46
- !e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=e;this.scrollIntoView()}},{key:"format",value:function(e,h){var f=this;return w.call(this,function(){var n=f.getSelection(!0),r=new ea.default;if(null==n)return r;if(la.default.query(e,la.default.Scope.BLOCK))r=f.editor.formatLine(n.index,n.length,y({},e,h));else{if(0===n.length)return f.selection.format(e,h),r;r=f.editor.formatText(n.index,n.length,y({},e,h))}f.setSelection(n,
47
- da.default.sources.SILENT);return r},2<arguments.length&&void 0!==arguments[2]?arguments[2]:da.default.sources.API)}},{key:"formatLine",value:function(e,f,n,r,y){var z=this,ca=void 0;n=h(e,f,n,r,y);n=x(n,4);e=n[0];f=n[1];ca=n[2];y=n[3];return w.call(this,function(){return z.editor.formatLine(e,f,ca)},y,e,0)}},{key:"formatText",value:function(e,f,n,r,y){var z=this,ca=void 0;n=h(e,f,n,r,y);n=x(n,4);e=n[0];f=n[1];ca=n[2];y=n[3];return w.call(this,function(){return z.editor.formatText(e,f,ca)},y,e,0)}},
48
- {key:"getBounds",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;h="number"===typeof e?this.selection.getBounds(e,h):this.selection.getBounds(e.index,e.length);var f=this.container.getBoundingClientRect();return{bottom:h.bottom-f.top,height:h.height,left:h.left-f.left,right:h.right-f.left,top:h.top-f.top,width:h.width}}},{key:"getContents",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
49
- this.getLength()-e;e=h(e,f);f=x(e,2);e=f[0];f=f[1];return this.editor.getContents(e,f)}},{key:"getFormat",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,h):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",
50
- value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,h)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&
51
- arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;e=h(e,f);f=x(e,2);e=f[0];f=f[1];return this.editor.getText(e,f)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(h,f,n){var r=this;return w.call(this,function(){return r.editor.insertEmbed(h,f,n)},
52
- 3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.sources.API,h)}},{key:"insertText",value:function(e,f,n,r,y){var z=this,ca=void 0;n=h(e,0,n,r,y);n=x(n,4);e=n[0];ca=n[2];y=n[3];return w.call(this,function(){return z.editor.insertText(e,f,ca)},y,e,f.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,
53
- arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,h,f){this.clipboard.dangerouslyPasteHTML(e,h,f)}},{key:"removeFormat",value:function(e,f,n){var r=this;n=h(e,f,n);n=x(n,4);e=n[0];f=n[1];n=n[3];return w.call(this,function(){return r.editor.removeFormat(e,f)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var h=this;return w.call(this,
54
- function(){e=new ea.default(e);var f=h.getLength();f=h.editor.deleteText(0,f);var n=h.editor.applyDelta(e),r=n.ops[n.ops.length-1];null!=r&&"string"===typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(h.editor.deleteText(h.getLength()-1,1),n.delete(1));return f.compose(n)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:da.default.sources.API)}},{key:"setSelection",value:function(f,n,r){null==f?this.selection.setRange(null,n||e.sources.API):(f=h(f,n,r),r=x(f,4),f=r[0],n=r[1],r=r[3],this.selection.setRange(new ja.Range(f,
55
- n),r),r!==da.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:da.default.sources.API,f=(new ea.default).insert(e);return this.setContents(f,h)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:da.default.sources.USER,h=this.scroll.update(e);this.selection.update(e);return h}},{key:"updateContents",value:function(e){var h=this,f=
56
- 1<arguments.length&&void 0!==arguments[1]?arguments[1]:da.default.sources.API;return w.call(this,function(){e=new ea.default(e);return h.editor.applyDelta(e,f)},f,!0)}}]);return e}();ma.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};ma.events=da.default.events;ma.sources=da.default.sources;ma.version="1.3.7";ma.imports={delta:ea.default,parchment:la.default,"core/module":f.default,"core/theme":Ca.default};aa.expandConfig=
57
- n;aa.overload=h;aa.default=ma},function(f,aa,ba){function z(h,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);h.prototype=Object.create(e&&e.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(h,e):h.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});var y=function(){function h(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||
58
- !1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(e,f,n){f&&h(e.prototype,f);n&&h(e,n);return e}}(),n=function ia(e,f,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,f);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ia(e,f,n)}else{if("value"in r)return r.value;f=r.get;return void 0===f?void 0:f.call(n)}};f=(f=ba(7))&&f.__esModule?f:{default:f};var w=(ba=ba(0))&&ba.__esModule?ba:{default:ba};ba=function(e){function f(){if(!(this instanceof
59
- f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).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}z(f,e);y(f,[{key:"formatAt",value:function(e,r,y,z){0>f.compare(this.statics.blotName,y)&&w.default.query(y,w.default.Scope.BLOT)?(e=this.isolate(e,r),z&&e.wrap(y,z)):n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),
60
- "formatAt",this).call(this,e,r,y,z)}},{key:"optimize",value:function(e){n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,e);this.parent instanceof f&&0<f.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 r=f.order.indexOf(e),x=f.order.indexOf(n);return 0<=r||0<=x?r-x:e===n?0:e<n?-1:1}}]);return f}(w.default.Inline);ba.allowedChildren=
61
- [ba,w.default.Embed,f.default];ba.order="cursor inline underline strike italic bold script link code".split(" ");aa.default=ba},function(f,aa,ba){function z(f,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});
62
- f=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var f=(n.__proto__||Object.getPrototypeOf(n)).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?this:f}z(n,f);return n}(function(f){return f&&f.__esModule?f:{default:f}}(ba(0)).default.Text);aa.default=f},function(f,aa,ba){function z(h,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
63
- typeof e);h.prototype=Object.create(e&&e.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(h,e):h.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});var y=function(){function h(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(e,f,n){f&&h(e.prototype,f);n&&h(e,n);return e}}(),n=function ia(e,
64
- f,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,f);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ia(e,f,n)}else{if("value"in r)return r.value;f=r.get;return void 0===f?void 0:f.call(n)}};f=(f=ba(54))&&f.__esModule?f:{default:f};ba=(ba=ba(10))&&ba.__esModule?ba:{default:ba};var w=(0,ba.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,f=Array(e),
65
- n=0;n<e;n++)f[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var n;(n=e.__quill.emitter).handleDOM.apply(n,f)}})})});ba=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");e=!e||"object"!==typeof e&&"function"!==typeof e?
66
- this:e;e.listeners={};e.on("error",w.error);return e}z(f,e);y(f,[{key:"emit",value:function(){w.log.apply(w,arguments);n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var f=arguments.length,n=Array(1<f?f-1:0),r=1;r<f;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(f){var r=f.node;f=f.handler;(e.target===r||r.contains(e.target))&&f.apply(void 0,[e].concat(n))})}},{key:"listenDOM",value:function(e,
67
- f,n){this.listeners[e]||(this.listeners[e]=[]);this.listeners[e].push({node:f,handler:n})}}]);return f}(f.default);ba.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"};ba.sources={API:"api",SILENT:"silent",USER:"user"};aa.default=ba},function(f,aa){Object.defineProperty(aa,"__esModule",{value:!0});f=function y(f){var n=1<arguments.length&&void 0!==
68
- arguments[1]?arguments[1]:{};if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.quill=f;this.options=n};f.DEFAULTS={};aa.default=f},function(f,aa){function z(f){if(y.indexOf(f)<=y.indexOf(n)){for(var h,e=arguments.length,r=Array(1<e?e-1:0),x=1;x<e;x++)r[x-1]=arguments[x];(h=console)[f].apply(h,r)}}function ca(f){return y.reduce(function(h,e){h[e]=z.bind(console,e,f);return h},{})}Object.defineProperty(aa,"__esModule",{value:!0});var y=["error","warn","log","info"],
69
- n="warn";z.level=ca.level=function(f){n=f};aa.default=ca},function(f,aa,ba){function z(e){return!e||"object"!==typeof e||"number"!==typeof e.length||"function"!==typeof e.copy||"function"!==typeof e.slice||0<e.length&&"number"!==typeof e[0]?!1:!0}function y(f,x,y){var r;if(null===f||void 0===f||null===x||void 0===x||f.prototype!==x.prototype)return!1;if(h(f)){if(!h(x))return!1;f=n.call(f);x=n.call(x);return e(f,x,y)}if(z(f)){if(!z(x)||f.length!==x.length)return!1;for(r=0;r<f.length;r++)if(f[r]!==
70
- x[r])return!1;return!0}try{var ca=w(f);var aa=w(x)}catch(wa){return!1}if(ca.length!=aa.length)return!1;ca.sort();aa.sort();for(r=ca.length-1;0<=r;r--)if(ca[r]!=aa[r])return!1;for(r=ca.length-1;0<=r;r--)if(aa=ca[r],!e(f[aa],x[aa],y))return!1;return typeof f===typeof x}var n=Array.prototype.slice,w=ba(52),h=ba(53),e=f.exports=function(e,h,f){f||(f={});return e===h?!0:e instanceof Date&&h instanceof Date?e.getTime()===h.getTime():!e||!h||"object"!=typeof e&&"object"!=typeof h?f.strict?e===h:e==h:y(e,
71
- h,f)}},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var z=ba(1);f=function(){function f(f,w,h){void 0===h&&(h={});this.attrName=f;this.keyName=w;f=z.Scope.TYPE&z.Scope.ATTRIBUTE;this.scope=null!=h.scope?h.scope&z.Scope.LEVEL|f:z.Scope.ATTRIBUTE;null!=h.whitelist&&(this.whitelist=h.whitelist)}f.keys=function(f){return[].map.call(f.attributes,function(f){return f.name})};f.prototype.add=function(f,w){if(!this.canAdd(f,w))return!1;f.setAttribute(this.keyName,w);return!0};f.prototype.canAdd=
72
- function(f,w){return null==z.query(f,z.Scope.BLOT&(this.scope|z.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof w?-1<this.whitelist.indexOf(w.replace(/["']/g,"")):-1<this.whitelist.indexOf(w)};f.prototype.remove=function(f){f.removeAttribute(this.keyName)};f.prototype.value=function(f){var n=f.getAttribute(this.keyName);return this.canAdd(f,n)&&n?n:""};return f}();aa.default=f},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,h){if(!(e instanceof h))throw new TypeError("Cannot call a class as a function");
73
- }function n(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function w(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(aa,
74
- "__esModule",{value:!0});aa.default=aa.Code=void 0;var h=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,x=void 0;try{for(var w=e[Symbol.iterator](),y;!(n=(y=w.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(qa){r=!0,x=qa}finally{try{if(!n&&w["return"])w["return"]()}finally{if(r)throw x;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function e(e,h){for(var f=0;f<
75
- h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),r=function ta(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return ta(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};f=ba(2);var x=z(f);f=ba(0);var ia=z(f);f=ba(4);f=z(f);
76
- var ea=ba(6);ea=z(ea);ba=ba(7);var fa=z(ba);ba=function(e){function h(){y(this,h);return n(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}w(h,e);return h}(ea.default);ba.blotName="code";ba.tagName="CODE";f=function(f){function z(){y(this,z);return n(this,(z.__proto__||Object.getPrototypeOf(z)).apply(this,arguments))}w(z,f);e(z,[{key:"delta",value:function(){var e=this,h=this.domNode.textContent;h.endsWith("\n")&&(h=h.slice(0,-1));return h.split("\n").reduce(function(h,f){return h.insert(f).insert("\n",
77
- e.formats())},new x.default)}},{key:"format",value:function(e,f){if(e!==this.statics.blotName||!f){var n=this.descendant(fa.default,this.length()-1);n=h(n,1)[0];null!=n&&n.deleteAt(n.length()-1,1);r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"format",this).call(this,e,f)}}},{key:"formatAt",value:function(e,h,f,n){if(0!==h&&null!=ia.default.query(f,ia.default.Scope.BLOCK)&&(f!==this.statics.blotName||n!==this.statics.formats(this.domNode))){var r=this.newlineIndex(e);if(!(0>r||r>=e+
78
- h)){var x=this.newlineIndex(e,!0)+1;r=r-x+1;var w=this.isolate(x,r),y=w.next;w.format(f,n);y instanceof z&&y.formatAt(0,e-x+h-r,f,n)}}}},{key:"insertAt",value:function(e,f,n){null==n&&(e=this.descendant(fa.default,e),e=h(e,2),e[0].insertAt(e[1],f))}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,
79
- e).lastIndexOf("\n");var h=this.domNode.textContent.slice(e).indexOf("\n");return-1<h?e+h:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(ia.default.create("text","\n"));r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"optimize",this).call(this,e);var h=this.next;null!=h&&h.prev===this&&h.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===h.statics.formats(h.domNode)&&(h.optimize(e),h.moveChildren(this),h.remove())}},
80
- {key:"replace",value:function(e){r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"replace",this).call(this,e);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var h=ia.default.find(e);null==h?e.parentNode.removeChild(e):h instanceof ia.default.Embed?h.remove():h.unwrap()})}}],[{key:"create",value:function(e){e=r(z.__proto__||Object.getPrototypeOf(z),"create",this).call(this,e);e.setAttribute("spellcheck",!1);return e}},{key:"formats",value:function(){return!0}}]);
81
- return z}(f.default);f.blotName="code-block";f.tagName="PRE";f.TAB=" ";aa.Code=ba;aa.default=f},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,h,f){h in e?Object.defineProperty(e,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):e[h]=f;return e}function n(e,h){return Object.keys(h).reduce(function(f,n){if(null==e[n])return f;h[n]===e[n]?f[n]=h[n]:Array.isArray(h[n])?0>h[n].indexOf(e[n])&&(f[n]=h[n].concat([e[n]])):f[n]=[h[n],e[n]];return f},{})}function w(e){return e.reduce(function(e,
82
- h){if(1===h.insert){var f=(0,ta.default)(h.attributes);delete f.image;return e.insert({image:h.attributes.image},f)}null==h.attributes||!0!==h.attributes.list&&!0!==h.attributes.bullet||(h=(0,ta.default)(h),h.attributes.list?h.attributes.list="ordered":(h.attributes.list="bullet",delete h.attributes.bullet));return"string"===typeof h.insert?(f=h.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.insert(f,h.attributes)):e.push(h)},new x.default)}Object.defineProperty(aa,"__esModule",{value:!0});var h=
83
- "function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,x=void 0;try{for(var w=e[Symbol.iterator](),y;!(n=(y=w.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(Fa){r=!0,x=Fa}finally{try{if(!n&&w["return"])w["return"]()}finally{if(r)throw x;
84
- }}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),r=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}();f=ba(2);var x=z(f);f=ba(20);var ia=z(f);f=ba(0);var ea=z(f);f=ba(13);var fa=z(f);f=ba(24);var da=z(f),ha=ba(4),la=z(ha);f=ba(16);var ja=z(f);f=ba(21);var ta=z(f);f=
85
- ba(11);var pa=z(f);ba=ba(3);var oa=z(ba),Ca=/^[ -~]*$/;ba=function(){function f(e){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.scroll=e;this.delta=this.getDelta()}r(f,[{key:"applyDelta",value:function(f){var n=this,r=!1;this.scroll.update();var x=this.scroll.length();this.scroll.batchStart();f=w(f);f.reduce(function(f,w){var y=w.retain||w.delete||w.insert.length||1,z=w.attributes||{};if(null!=w.insert){if("string"===typeof w.insert){w=w.insert;w.endsWith("\n")&&
86
- r&&(r=!1,w=w.slice(0,-1));f>=x&&!w.endsWith("\n")&&(r=!0);n.scroll.insertAt(f,w);w=n.scroll.line(f);w=e(w,2);var ca=w[0],aa=w[1];w=(0,oa.default)({},(0,ha.bubbleFormats)(ca));ca instanceof la.default&&(ca=ca.descendant(ea.default.Leaf,aa),ca=e(ca,1)[0],w=(0,oa.default)(w,(0,ha.bubbleFormats)(ca)));z=ia.default.attributes.diff(w,z)||{}}else if("object"===h(w.insert)){ca=Object.keys(w.insert)[0];if(null==ca)return f;n.scroll.insertAt(f,ca,w.insert[ca])}x+=y}Object.keys(z).forEach(function(e){n.scroll.formatAt(f,
87
- y,e,z[e])});return f+y},0);f.reduce(function(e,h){return"number"===typeof h.delete?(n.scroll.deleteAt(e,h.delete),e):e+(h.retain||h.insert.length||1)},0);this.scroll.batchEnd();return this.update(f)}},{key:"deleteText",value:function(e,h){this.scroll.deleteAt(e,h);return this.update((new x.default).retain(e).delete(h))}},{key:"formatLine",value:function(e,h){var f=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(n).forEach(function(r){if(null==f.scroll.whitelist||
88
- f.scroll.whitelist[r]){var x=f.scroll.lines(e,Math.max(h,1)),w=h;x.forEach(function(h){var x=h.length();if(h instanceof fa.default){var y=e-h.offset(f.scroll),z=h.newlineIndex(y+w)-y+1;h.formatAt(y,z,r,n[r])}else h.format(r,n[r]);w-=x})}});this.scroll.optimize();return this.update((new x.default).retain(e).retain(h,(0,ta.default)(n)))}},{key:"formatText",value:function(e,h){var f=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(n).forEach(function(r){f.scroll.formatAt(e,
89
- h,r,n[r])});return this.update((new x.default).retain(e).retain(h,(0,ta.default)(n)))}},{key:"getContents",value:function(e,h){return this.delta.slice(e,e+h)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,h){return e.concat(h.delta())},new x.default)}},{key:"getFormat",value:function(h){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=[],x=[];0===f?this.scroll.path(h).forEach(function(h){h=e(h,1)[0];h instanceof la.default?r.push(h):h instanceof ea.default.Leaf&&
90
- x.push(h)}):(r=this.scroll.lines(h,f),x=this.scroll.descendants(ea.default.Leaf,h,f));f=[r,x].map(function(e){if(0===e.length)return{};for(var h=(0,ha.bubbleFormats)(e.shift());0<Object.keys(h).length;){var f=e.shift();if(null==f)break;h=n((0,ha.bubbleFormats)(f),h)}return h});return oa.default.apply(oa.default,f)}},{key:"getText",value:function(e,h){return this.getContents(e,h).filter(function(e){return"string"===typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,
91
- h,f){this.scroll.insertAt(e,h,f);return this.update((new x.default).retain(e).insert(y({},h,f)))}},{key:"insertText",value:function(e,h){var f=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};h=h.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(e,h);Object.keys(n).forEach(function(r){f.scroll.formatAt(e,h.length,r,n[r])});return this.update((new x.default).retain(e).insert(h,(0,ta.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
92
- if(1<this.scroll.children.length)return!1;var e=this.scroll.children.head;return e.statics.blotName!==la.default.blotName||1<e.children.length?!1:e.children.head instanceof ja.default}},{key:"removeFormat",value:function(h,f){var n=this.getText(h,f),r=this.scroll.line(h+f),w=e(r,2);r=w[0];w=w[1];var y=0,z=new x.default;null!=r&&(y=r instanceof fa.default?r.newlineIndex(w)-w+1:r.length()-w,z=r.delta().slice(w,w+y-1).insert("\n"));f=this.getContents(h,f+y).diff((new x.default).insert(n).concat(z));
93
- h=(new x.default).retain(h).concat(f);return this.applyDelta(h)}},{key:"update",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===h.length&&"characterData"===h[0].type&&h[0].target.data.match(Ca)&&ea.default.find(h[0].target)){var r=ea.default.find(h[0].target),w=(0,ha.bubbleFormats)(r),y=r.offset(this.scroll);h=h[0].oldValue.replace(da.default.CONTENTS,"");h=(new x.default).insert(h);
94
- r=(new x.default).insert(r.value());e=(new x.default).retain(y).concat(h.diff(r,f)).reduce(function(e,h){return h.insert?e.insert(h.insert,w):e.push(h)},new x.default);this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,pa.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,f));return e}}]);return f}();aa.default=ba},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e){if(Array.isArray(e)){for(var h=0,f=Array(e.length);h<e.length;h++)f[h]=e[h];return f}return Array.from(e)}
95
- function n(e,h){if(!(e instanceof h))throw new TypeError("Cannot call a class as a function");}function w(e,h){try{h.parentNode}catch(ja){return!1}h instanceof Text&&(h=h.parentNode);return e.contains(h)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.Range=void 0;var h=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,x=void 0;try{for(var w=e[Symbol.iterator](),y;!(n=(y=w.next()).done)&&(f.push(y.value),!h||f.length!==
96
- h);n=!0);}catch(ma){r=!0,x=ma}finally{try{if(!n&&w["return"])w["return"]()}finally{if(r)throw x;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}();f=ba(0);var r=z(f);f=ba(21);var x=z(f);f=ba(11);var ia=z(f);f=ba(8);
97
- var ea=z(f);ba=ba(10);ba=z(ba);var da=(0,ba.default)("quill:selection"),fa=function ja(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;n(this,ja);this.index=e;this.length=h};ba=function(){function f(e,h){var x=this;n(this,f);this.emitter=h;this.scroll=e;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=r.default.create("cursor",this);this.lastRange=this.savedRange=new fa(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",
98
- document,function(){x.mouseDown||setTimeout(x.update.bind(x,ea.default.sources.USER),1)});this.emitter.on(ea.default.events.EDITOR_CHANGE,function(e,h){e===ea.default.events.TEXT_CHANGE&&0<h.length()&&x.update(ea.default.sources.SILENT)});this.emitter.on(ea.default.events.SCROLL_BEFORE_UPDATE,function(){if(x.hasFocus()){var e=x.getNativeRange();if(null!=e&&e.start.node!==x.cursor.textNode)x.emitter.once(ea.default.events.SCROLL_UPDATE,function(){try{x.setNativeRange(e.start.node,e.start.offset,e.end.node,
99
- e.end.offset)}catch(Ca){}})}});this.emitter.on(ea.default.events.SCROLL_OPTIMIZE,function(e,h){h.range&&(e=h.range,x.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset))});this.update(ea.default.sources.SILENT)}e(f,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0});this.root.addEventListener("compositionend",function(){e.composing=!1;if(e.cursor.parent){var h=e.cursor.restore();h&&setTimeout(function(){e.setNativeRange(h.startNode,
100
- h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1;e.update(ea.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,h){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var f=
101
- this.getNativeRange();if(null!=f&&f.native.collapsed&&!r.default.query(e,r.default.Scope.BLOCK)){if(f.start.node!==this.cursor.textNode){var n=r.default.find(f.start.node,!1);if(null==n)return;n instanceof r.default.Leaf?(f=n.split(f.start.offset),n.parent.insertBefore(this.cursor,f)):n.insertBefore(this.cursor,f.start.node);this.cursor.attach()}this.cursor.format(e,h);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",
102
- value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1);f=Math.min(e+f,n-1)-e;n=this.scroll.leaf(e);var r=h(n,2);n=r[0];var x=r[1];if(null==n)return null;r=n.position(x,!0);r=h(r,2);var w=r[0];x=r[1];r=document.createRange();if(0<f){r.setStart(w,x);f=this.scroll.leaf(e+f);f=h(f,2);n=f[0];x=f[1];if(null==n)return null;f=n.position(x,!0);f=h(f,2);w=f[0];x=f[1];r.setEnd(w,x);return r.getBoundingClientRect()}f="left";w instanceof Text?
103
- (x<w.data.length?(r.setStart(w,x),r.setEnd(w,x+1)):(r.setStart(w,x-1),r.setEnd(w,x),f="right"),n=r.getBoundingClientRect()):(n=n.domNode.getBoundingClientRect(),0<x&&(f="right"));return{bottom:n.top+n.height,height:n.height,left:n[f],right:n[f],top:n.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||0>=e.rangeCount)return null;e=e.getRangeAt(0);if(null==e)return null;e=this.normalizeNative(e);da.info("getNativeRange",e);return e}},{key:"getRange",value:function(){var e=
104
- this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var f=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);n=n.map(function(e){var n=h(e,2);e=n[0];n=n[1];var x=r.default.find(e,!0),w=x.offset(f.scroll);return 0===n?w:x instanceof r.default.Container?w+x.length():w+x.index(e,n)});e=Math.min(Math.max.apply(Math,
105
- y(n)),this.scroll.length()-1);n=Math.min.apply(Math,[e].concat(y(n)));return new fa(n,e-n)}},{key:"normalizeNative",value:function(e){if(!w(this.root,e.startContainer)||!e.collapsed&&!w(this.root,e.endContainer))return null;e={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};[e.start,e.end].forEach(function(e){for(var h=e.node,f=e.offset;!(h instanceof Text)&&0<h.childNodes.length;)if(h.childNodes.length>f)h=h.childNodes[f],f=0;else if(h.childNodes.length===
106
- f)h=h.lastChild,f=h instanceof Text?h.data.length:h.childNodes.length+1;else break;e.node=h;e.offset=f});return e}},{key:"rangeToNative",value:function(e){var f=this;e=e.collapsed?[e.index]:[e.index,e.index+e.length];var n=[],r=this.scroll.length();e.forEach(function(e,x){e=Math.min(r-1,e);e=f.scroll.leaf(e);var w=h(e,2);e=w[1];x=w[0].position(e,0!==x);e=h(x,2);x=e[0];e=e[1];n.push(x,e)});2>n.length&&(n=n.concat(n));return n}},{key:"scrollIntoView",value:function(e){var f=this.lastRange;if(null!=
107
- f){var n=this.getBounds(f.index,f.length);if(null!=n){var r=this.scroll.length()-1,x=this.scroll.line(Math.min(f.index,r)),w=x=h(x,1)[0];0<f.length&&(f=this.scroll.line(Math.min(f.index+f.length,r)),w=h(f,1)[0]);null!=x&&null!=w&&(f=e.getBoundingClientRect(),n.top<f.top?e.scrollTop-=f.top-n.top:n.bottom>f.bottom&&(e.scrollTop+=n.bottom-f.bottom))}}}},{key:"setNativeRange",value:function(e,h){var f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:e,n=3<arguments.length&&void 0!==arguments[3]?
108
- arguments[3]:h,r=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;da.info("setNativeRange",e,h,f,n);if(null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=f.parentNode){var x=document.getSelection();if(null!=x)if(null!=e){this.hasFocus()||this.root.focus();var w=(this.getNativeRange()||{}).native;if(null==w||r||e!==w.startContainer||h!==w.startOffset||f!==w.endContainer||n!==w.endOffset)"BR"==e.tagName&&(h=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==f.tagName&&
109
- (n=[].indexOf.call(f.parentNode.childNodes,f),f=f.parentNode),r=document.createRange(),r.setStart(e,h),r.setEnd(f,n),x.removeAllRanges(),x.addRange(r)}else x.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:ea.default.sources.API;"string"===typeof h&&(f=h,h=!1);da.info("setRange",e);if(null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,
110
- y(n).concat([h]))}else this.setNativeRange(null);this.update(f)}},{key:"update",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:ea.default.sources.USER,f=this.lastRange,n=this.getRange();n=h(n,2);var r=n[1];this.lastRange=n[0];null!=this.lastRange&&(this.savedRange=this.lastRange);if(!(0,ia.default)(f,this.lastRange)){var w;!this.composing&&null!=r&&r.native.collapsed&&r.start.node!==this.cursor.textNode&&this.cursor.restore();f=[ea.default.events.SELECTION_CHANGE,(0,
111
- x.default)(this.lastRange),(0,x.default)(f),e];(w=this.emitter).emit.apply(w,[ea.default.events.EDITOR_CHANGE].concat(f));if(e!==ea.default.sources.SILENT){var y;(y=this.emitter).emit.apply(y,f)}}}}]);return f}();aa.Range=fa;aa.default=ba},function(f,aa,ba){function z(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});
112
- h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(aa,"__esModule",{value:!0});var y=function(){function f(h,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(h,n.key,n)}}return function(h,e,n){e&&f(h.prototype,e);n&&f(h,n);return h}}(),n=function x(h,e,f){null===h&&(h=Function.prototype);var n=Object.getOwnPropertyDescriptor(h,e);if(void 0===n){if(h=Object.getPrototypeOf(h),
113
- null!==h)return x(h,e,f)}else{if("value"in n)return n.value;e=n.get;return void 0===e?void 0:e.call(f)}};f=function(h){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var h=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}z(e,h);y(e,[{key:"insertInto",value:function(h,f){0===h.children.length?
114
- n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,h,f):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return e}(function(h){return h&&h.__esModule?h:{default:h}}(ba(0)).default.Embed);f.blotName="break";f.tagName="BR";aa.default=f},function(f,aa,ba){function z(h){var e=w.find(h);if(null==e)try{e=w.create(h)}catch(r){e=w.create(w.Scope.INLINE),[].slice.call(h.childNodes).forEach(function(h){e.domNode.appendChild(h)}),
115
- h.parentNode&&h.parentNode.replaceChild(e.domNode,h),e.attach()}return e}var y=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(e,f){function n(){this.constructor=e}h(e,f);e.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});var n=ba(44);f=ba(30);var w=ba(1);ba=function(h){function e(e){e=
116
- h.call(this,e)||this;e.build();return e}y(e,h);e.prototype.appendChild=function(e){this.insertBefore(e)};e.prototype.attach=function(){h.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};e.prototype.build=function(){var e=this;this.children=new n.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(h){try{var f=z(h);e.insertBefore(f,e.children.head||void 0)}catch(ea){if(!(ea instanceof w.ParchmentError))throw ea;}})};e.prototype.deleteAt=function(e,h){if(0===
117
- e&&h===this.length())return this.remove();this.children.forEachAt(e,h,function(e,h,f){e.deleteAt(h,f)})};e.prototype.descendant=function(h,f){var n=this.children.find(f);f=n[0];n=n[1];return null==h.blotName&&h(f)||null!=h.blotName&&f instanceof h?[f,n]:f instanceof e?f.descendant(h,n):[null,-1]};e.prototype.descendants=function(h,f,n){void 0===f&&(f=0);void 0===n&&(n=Number.MAX_VALUE);var r=[],x=n;this.children.forEachAt(f,n,function(f,n,w){(null==h.blotName&&h(f)||null!=h.blotName&&f instanceof
118
- h)&&r.push(f);f instanceof e&&(r=r.concat(f.descendants(h,n,x)));x-=w});return r};e.prototype.detach=function(){this.children.forEach(function(e){e.detach()});h.prototype.detach.call(this)};e.prototype.formatAt=function(e,h,f,n){this.children.forEachAt(e,h,function(e,h,r){e.formatAt(h,r,f,n)})};e.prototype.insertAt=function(e,h,f){var n=this.children.find(e);e=n[0];n=n[1];e?e.insertAt(n,h,f):(h=null==f?w.create("text",h):w.create(h,f),this.appendChild(h))};e.prototype.insertBefore=function(e,h){if(null!=
119
- this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(h){return e instanceof h}))throw new w.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,h)};e.prototype.length=function(){return this.children.reduce(function(e,h){return e+h.length()},0)};e.prototype.moveChildren=function(e,h){this.children.forEach(function(f){e.insertBefore(f,h)})};e.prototype.optimize=function(e){h.prototype.optimize.call(this,e);if(0===this.children.length)if(null!=
120
- this.statics.defaultChild){var f=w.create(this.statics.defaultChild);this.appendChild(f);f.optimize(e)}else this.remove()};e.prototype.path=function(h,f){void 0===f&&(f=!1);var n=this.children.find(h,f),r=n[0];n=n[1];h=[[this,h]];if(r instanceof e)return h.concat(r.path(n,f));null!=r&&h.push([r,n]);return h};e.prototype.removeChild=function(e){this.children.remove(e)};e.prototype.replace=function(f){f instanceof e&&f.moveChildren(this);h.prototype.replace.call(this,f)};e.prototype.split=function(e,
121
- h){void 0===h&&(h=!1);if(!h){if(0===e)return this;if(e===this.length())return this.next}var f=this.clone();this.parent.insertBefore(f,this.next);this.children.forEachAt(e,this.length(),function(e,n){e=e.split(n,h);f.appendChild(e)});return f};e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};e.prototype.update=function(e){var h=this,f=[],n=[];e.forEach(function(e){e.target===h.domNode&&"childList"===e.type&&(f.push.apply(f,e.addedNodes),n.push.apply(n,e.removedNodes))});
122
- n.forEach(function(e){null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY||(e=w.find(e),null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==h.domNode||e.detach()))});f.filter(function(e){return e.parentNode==h.domNode}).sort(function(e,h){return e===h?0:e.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var f=null;null!=e.nextSibling&&(f=w.find(e.nextSibling));e=z(e);if(e.next!=f||null==
123
- e.next)null!=e.parent&&e.parent.removeChild(h),h.insertBefore(e,f||void 0)})};return e}(f.default);aa.default=ba},function(f,aa,ba){var z=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,h){e.__proto__=h}||function(e,h){for(var f in h)h.hasOwnProperty(f)&&(e[f]=h[f])};return function(e,f){function n(){this.constructor=e}h(e,f);e.prototype=null===f?Object.create(f):(n.prototype=f.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});
124
- var y=ba(12),n=ba(31);f=ba(17);var w=ba(1);ba=function(h){function e(e){e=h.call(this,e)||this;e.attributes=new n.default(e.domNode);return e}z(e,h);e.formats=function(e){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()};e.prototype.format=function(e,h){var f=w.query(e);f instanceof y.default?this.attributes.attribute(f,h):h&&(null==f||e===this.statics.blotName&&this.formats()[e]===h||this.replaceWith(e,h))};e.prototype.formats=function(){var e=
125
- this.attributes.values(),h=this.statics.formats(this.domNode);null!=h&&(e[this.statics.blotName]=h);return e};e.prototype.replaceWith=function(e,f){e=h.prototype.replaceWith.call(this,e,f);this.attributes.copy(e);return e};e.prototype.update=function(e,f){var n=this;h.prototype.update.call(this,e,f);e.some(function(e){return e.target===n.domNode&&"attributes"===e.type})&&this.attributes.build()};e.prototype.wrap=function(f,n){f=h.prototype.wrap.call(this,f,n);f instanceof e&&f.statics.scope===this.statics.scope&&
126
- this.attributes.move(f);return f};return e}(f.default);aa.default=ba},function(f,aa,ba){var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var e in h)h.hasOwnProperty(e)&&(f[e]=h[e])};return function(n,h){function e(){this.constructor=n}f(n,h);n.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}();Object.defineProperty(aa,"__esModule",{value:!0});f=ba(30);var y=ba(1);ba=function(f){function n(){return null!==
127
- f&&f.apply(this,arguments)||this}z(n,f);n.value=function(){return!0};n.prototype.index=function(h,e){return this.domNode===h||this.domNode.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1};n.prototype.position=function(h){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<h&&(e+=1);return[this.parent.domNode,e]};n.prototype.value=function(){var h;return h={},h[this.statics.blotName]=this.statics.value(this.domNode)||!0,h};n.scope=y.Scope.INLINE_BLOT;
128
- return n}(f.default);aa.default=ba},function(f,aa,ba){function z(h){this.ops=h;this.offset=this.index=0}var y=ba(11),n=ba(3),w={attributes:{compose:function(h,e,f){"object"!==typeof h&&(h={});"object"!==typeof e&&(e={});var r=n(!0,{},e);f||(r=Object.keys(r).reduce(function(e,h){null!=r[h]&&(e[h]=r[h]);return e},{}));for(var w in h)void 0!==h[w]&&void 0===e[w]&&(r[w]=h[w]);return 0<Object.keys(r).length?r:void 0},diff:function(h,e){"object"!==typeof h&&(h={});"object"!==typeof e&&(e={});var f=Object.keys(h).concat(Object.keys(e)).reduce(function(f,
129
- n){y(h[n],e[n])||(f[n]=void 0===e[n]?null:e[n]);return f},{});return 0<Object.keys(f).length?f:void 0},transform:function(h,e,f){if("object"!==typeof h)return e;if("object"===typeof e){if(!f)return e;f=Object.keys(e).reduce(function(f,n){void 0===h[n]&&(f[n]=e[n]);return f},{});return 0<Object.keys(f).length?f:void 0}}},iterator:function(h){return new z(h)},length:function(h){return"number"===typeof h["delete"]?h["delete"]:"number"===typeof h.retain?h.retain:"string"===typeof h.insert?h.insert.length:
130
- 1}};z.prototype.hasNext=function(){return Infinity>this.peekLength()};z.prototype.next=function(h){h||(h=Infinity);var e=this.ops[this.index];if(e){var f=this.offset,n=w.length(e);h>=n-f?(h=n-f,this.index+=1,this.offset=0):this.offset+=h;if("number"===typeof e["delete"])return{"delete":h};n={};e.attributes&&(n.attributes=e.attributes);"number"===typeof e.retain?n.retain=h:n.insert="string"===typeof e.insert?e.insert.substr(f,h):e.insert;return n}return{retain:Infinity}};z.prototype.peek=function(){return this.ops[this.index]};
131
- z.prototype.peekLength=function(){return this.ops[this.index]?w.length(this.ops[this.index])-this.offset:Infinity};z.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"};z.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var h=this.offset,e=this.index,f=this.next(),n=this.ops.slice(this.index);this.offset=
132
- h;this.index=e;return[f].concat(n)}return[]};f.exports=w},function(z){var aa=function(){function z(e,h){return null!=h&&e instanceof h}function ca(r,x,y,aa,ba){function ea(r,y){if(null===r)return null;if(0===y||"object"!=typeof r)return r;if(z(r,w))var ha=new w;else if(z(r,h))ha=new h;else if(z(r,e))ha=new e(function(e,h){r.then(function(h){e(ea(h,y-1))},function(e){h(ea(e,y-1))})});else if(ca.__isArray(r))ha=[];else if(ca.__isRegExp(r))ha=new RegExp(r.source,n(r)),r.lastIndex&&(ha.lastIndex=r.lastIndex);
133
- else if(ca.__isDate(r))ha=new Date(r.getTime());else{if(fa&&f.isBuffer(r))return ha=f.allocUnsafe?f.allocUnsafe(r.length):new f(r.length),r.copy(ha),ha;if(z(r,Error))ha=Object.create(r);else if("undefined"==typeof aa){var ka=Object.getPrototypeOf(r);ha=Object.create(ka)}else ha=Object.create(aa),ka=aa}if(x){var ja=ia.indexOf(r);if(-1!=ja)return da[ja];ia.push(r);da.push(ha)}z(r,w)&&r.forEach(function(e,h){h=ea(h,y-1);e=ea(e,y-1);ha.set(h,e)});z(r,h)&&r.forEach(function(e){e=ea(e,y-1);ha.add(e)});
134
- for(var na in r){var la;ka&&(la=Object.getOwnPropertyDescriptor(ka,na));la&&null==la.set||(ha[na]=ea(r[na],y-1))}if(Object.getOwnPropertySymbols)for(ja=Object.getOwnPropertySymbols(r),na=0;na<ja.length;na++)if(la=ja[na],ka=Object.getOwnPropertyDescriptor(r,la),!ka||ka.enumerable||ba)ha[la]=ea(r[la],y-1),ka.enumerable||Object.defineProperty(ha,la,{enumerable:!1});if(ba)for(ja=Object.getOwnPropertyNames(r),na=0;na<ja.length;na++)la=ja[na],ka=Object.getOwnPropertyDescriptor(r,la),ka&&ka.enumerable||
135
- (ha[la]=ea(r[la],y-1),Object.defineProperty(ha,la,{enumerable:!1}));return ha}"object"===typeof x&&(y=x.depth,aa=x.prototype,ba=x.includeNonEnumerable,x=x.circular);var ia=[],da=[],fa="undefined"!=typeof f;"undefined"==typeof x&&(x=!0);"undefined"==typeof y&&(y=Infinity);return ea(r,y)}function y(e){return Object.prototype.toString.call(e)}function n(e){var h="";e.global&&(h+="g");e.ignoreCase&&(h+="i");e.multiline&&(h+="m");return h}try{var w=Map}catch(r){w=function(){}}try{var h=Set}catch(r){h=
136
- function(){}}try{var e=Promise}catch(r){e=function(){}}ca.clonePrototype=function(e){function h(){}if(null===e)return null;h.prototype=e;return new h};ca.__objToStr=y;ca.__isDate=function(e){return"object"===typeof e&&"[object Date]"===y(e)};ca.__isArray=function(e){return"object"===typeof e&&"[object Array]"===y(e)};ca.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===y(e)};ca.__getRegExpFlags=n;return ca}();"object"===typeof z&&z.exports&&(z.exports=aa)},function(f,aa,ba){function z(e){return e&&
137
- e.__esModule?e:{default:e}}function y(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function n(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=
138
- h)}function w(e){return e instanceof da.default||e instanceof ea.BlockEmbed}Object.defineProperty(aa,"__esModule",{value:!0});var h=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,x=void 0;try{for(var w=e[Symbol.iterator](),y;!(n=(y=w.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(za){r=!0,x=za}finally{try{if(!n&&w["return"])w["return"]()}finally{if(r)throw x;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");
139
- }}(),e=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),r=function oa(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return oa(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}};f=ba(0);
140
- var x=z(f);f=ba(8);var ia=z(f),ea=ba(4),da=z(ea);f=ba(16);var fa=z(f);f=ba(13);var ha=z(f);ba=ba(25);ba=z(ba);f=function(f){function z(e,h){if(!(this instanceof z))throw new TypeError("Cannot call a class as a function");e=y(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,e));e.emitter=h.emitter;Array.isArray(h.whitelist)&&(e.whitelist=h.whitelist.reduce(function(e,h){e[h]=!0;return e},{}));e.domNode.addEventListener("DOMNodeInserted",function(){});e.optimize();e.enable();return e}n(z,f);e(z,
141
- [{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},{key:"deleteAt",value:function(e,f){var n=this.line(e),x=h(n,2);n=x[0];var w=x[1];x=this.line(e+f);x=h(x,1)[0];r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"deleteAt",this).call(this,e,f);if(null!=x&&n!==x&&0<w){if(n instanceof ea.BlockEmbed||x instanceof ea.BlockEmbed){this.optimize();return}if(n instanceof ha.default){if(e=n.newlineIndex(n.length(),!0),-1<e&&(n=n.split(e+
142
- 1),n===x)){this.optimize();return}}else x instanceof ha.default&&(e=x.newlineIndex(0),-1<e&&x.split(e+1));n.moveChildren(x,x.children.head instanceof fa.default?null:x.children.head);n.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(e,h,f,n){if(null==this.whitelist||this.whitelist[f])r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"formatAt",
143
- this).call(this,e,h,f,n),this.optimize()}},{key:"insertAt",value:function(e,h,f){if(null==f||null==this.whitelist||this.whitelist[h])e>=this.length()?null==f||null==x.default.query(h,x.default.Scope.BLOCK)?(e=x.default.create(this.statics.defaultChild),this.appendChild(e),null==f&&h.endsWith("\n")&&(h=h.slice(0,-1)),e.insertAt(0,h,f)):(h=x.default.create(h,f),this.appendChild(h)):r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"insertAt",this).call(this,e,h,f),this.optimize()}},{key:"insertBefore",
144
- value:function(e,h){if(e.statics.scope===x.default.Scope.INLINE_BLOT){var f=x.default.create(this.statics.defaultChild);f.appendChild(e);e=f}r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"insertBefore",this).call(this,e,h)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(w,e)}},{key:"lines",value:function(){return function ma(e,h,f){var n=[],r=f;e.children.forEachAt(h,f,function(e,
145
- h,f){w(e)?n.push(e):e instanceof x.default.Container&&(n=n.concat(ma(e,h,r)));r-=f});return n}(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 e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"optimize",this).call(this,e,h),0<
146
- e.length&&this.emitter.emit(ia.default.events.SCROLL_OPTIMIZE,e,h))}},{key:"path",value:function(e){return r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var h=ia.default.sources.USER;"string"===typeof e&&(h=e);Array.isArray(e)||(e=this.observer.takeRecords());0<e.length&&this.emitter.emit(ia.default.events.SCROLL_BEFORE_UPDATE,h,e);r(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"update",
147
- this).call(this,e.concat([]));0<e.length&&this.emitter.emit(ia.default.events.SCROLL_UPDATE,h,e)}}}]);return z}(x.default.Scroll);f.blotName="scroll";f.className="ql-editor";f.tagName="DIV";f.defaultChild="block";f.allowedChildren=[da.default,ea.BlockEmbed,ba.default];aa.default=f},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,h,f){h in e?Object.defineProperty(e,h,{value:f,enumerable:!0,configurable:!0,writable:!0}):e[h]=f;return e}function n(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
148
- return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function w(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}function h(e,h){var f,n=e===va.keys.LEFT?"prefix":"suffix";return f={key:e,shiftKey:h,altKey:null},y(f,n,/^$/),y(f,"handler",function(f){var n=
149
- f.index;e===va.keys.RIGHT&&(n+=f.length+1);n=this.quill.getLeaf(n);if(!(la(n,1)[0]instanceof ma.default.Embed))return!0;e===va.keys.LEFT?h?this.quill.setSelection(f.index-1,f.length+1,za.default.sources.USER):this.quill.setSelection(f.index-1,za.default.sources.USER):h?this.quill.setSelection(f.index,f.length+1,za.default.sources.USER):this.quill.setSelection(f.index+f.length+1,za.default.sources.USER);return!1}),f}function e(e,h){if(!(0===e.index||1>=this.quill.getLength())){var f=this.quill.getLine(e.index),
150
- n=la(f,1)[0];f={};if(0===h.offset){var r=this.quill.getLine(e.index-1);r=la(r,1)[0];null!=r&&1<r.length()&&(f=n.formats(),n=this.quill.getFormat(e.index-1,1),f=qa.default.attributes.diff(f,n)||{})}h=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(h.prefix)?2:1;this.quill.deleteText(e.index-h,h,za.default.sources.USER);0<Object.keys(f).length&&this.quill.formatLine(e.index-h,h,f,za.default.sources.USER);this.quill.focus()}}function r(e,h){var f=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(h.suffix)?2:1;if(!(e.index>=
151
- this.quill.getLength()-f)){var n={},r=0,x=this.quill.getLine(e.index);x=la(x,1)[0];h.offset>=x.length()-1&&(h=this.quill.getLine(e.index+1),h=la(h,1)[0])&&(n=x.formats(),r=this.quill.getFormat(e.index,1),n=qa.default.attributes.diff(n,r)||{},r=h.length());this.quill.deleteText(e.index,f,za.default.sources.USER);0<Object.keys(n).length&&this.quill.formatLine(e.index+r-1,f,n,za.default.sources.USER)}}function x(e){var h=this.quill.getLines(e),f={};1<h.length&&(f=h[0].formats(),h=h[h.length-1].formats(),
152
- f=qa.default.attributes.diff(h,f)||{});this.quill.deleteText(e,za.default.sources.USER);0<Object.keys(f).length&&this.quill.formatLine(e.index,1,f,za.default.sources.USER);this.quill.setSelection(e.index,za.default.sources.SILENT);this.quill.focus()}function ia(e,h){var f=this;0<e.length&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(h.format).reduce(function(e,f){ma.default.query(f,ma.default.Scope.BLOCK)&&!Array.isArray(h.format[f])&&(e[f]=h.format[f]);return e},{});this.quill.insertText(e.index,
153
- "\n",n,za.default.sources.USER);this.quill.setSelection(e.index+1,za.default.sources.SILENT);this.quill.focus();Object.keys(h.format).forEach(function(e){null==n[e]&&(Array.isArray(h.format[e])||"link"!==e&&f.quill.format(e,h.format[e],za.default.sources.USER))})}function ea(e){return{key:va.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(h){var f=ma.default.query("code-block"),n=h.index,r=h.length;h=this.quill.scroll.descendant(f,n);h=la(h,2);var x=h[0],w=h[1];if(null!=x){h=this.quill.getIndex(x);
154
- var y=x.newlineIndex(w,!0)+1;h=x.newlineIndex(h+w+r);h=x.domNode.textContent.slice(y,h).split("\n");w=0;h.forEach(function(h,z){e?(x.insertAt(y+w,f.TAB),w+=f.TAB.length,0===z?n+=f.TAB.length:r+=f.TAB.length):h.startsWith(f.TAB)&&(x.deleteAt(y+w,f.TAB.length),w-=f.TAB.length,0===z?n-=f.TAB.length:r-=f.TAB.length);w+=h.length+1});this.quill.update(za.default.sources.USER);this.quill.setSelection(n,r,za.default.sources.SILENT)}}}}function da(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(h,
155
- f){this.quill.format(e,!f.format[e],za.default.sources.USER)}}}function fa(e){if("string"===typeof e||"number"===typeof e)return fa({key:e});"object"===("undefined"===typeof e?"undefined":ha(e))&&(e=(0,ta.default)(e,!1));if("string"===typeof e.key)if(null!=va.keys[e.key.toUpperCase()])e.key=va.keys[e.key.toUpperCase()];else if(1===e.key.length)e.key=e.key.toUpperCase().charCodeAt(0);else return null;e.shortKey&&(e[Ba]=e.shortKey,delete e.shortKey);return e}Object.defineProperty(aa,"__esModule",{value:!0});
156
- aa.SHORTKEY=aa.default=void 0;var ha="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},la=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,x=void 0;try{for(var w=e[Symbol.iterator](),y;!(n=(y=w.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(Ga){r=!0,x=Ga}finally{try{if(!n&&
157
- w["return"])w["return"]()}finally{if(r)throw x;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ja=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}();f=ba(21);var ta=z(f);f=ba(11);var pa=z(f);f=ba(3);var oa=z(f);f=ba(2);var Ca=z(f);f=ba(20);var qa=z(f);f=ba(0);var ma=
158
- z(f);f=ba(5);var za=z(f);f=ba(10);f=z(f);ba=ba(9);ba=z(ba);var ya=(0,f.default)("quill:keyboard"),Ba=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",va=function(h){function f(h,w){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var y=n(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,h,w));y.bindings={};Object.keys(y.options.bindings).forEach(function(e){("list autofill"!==e||null==h.scroll.whitelist||h.scroll.whitelist.list)&&y.options.bindings[e]&&y.addBinding(y.options.bindings[e])});
159
- y.addBinding({key:f.keys.ENTER,shiftKey:null},ia);y.addBinding({key:f.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(y.addBinding({key:f.keys.BACKSPACE},{collapsed:!0},e),y.addBinding({key:f.keys.DELETE},{collapsed:!0},r)):(y.addBinding({key:f.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},e),y.addBinding({key:f.keys.DELETE},{collapsed:!0,suffix:/^.?$/},r));y.addBinding({key:f.keys.BACKSPACE},{collapsed:!1},x);y.addBinding({key:f.keys.DELETE},{collapsed:!1},
160
- x);y.addBinding({key:f.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},e);y.listen();return y}w(f,h);ja(f,null,[{key:"match",value:function(e,h){h=fa(h);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(f){return!!h[f]!==e[f]&&null!==h[f]})?!1:h.key===(e.which||e.keyCode)}}]);ja(f,[{key:"addBinding",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},n=
161
- fa(e);if(null==n||null==n.key)return ya.warn("Attempted to add invalid keyboard binding",n);"function"===typeof h&&(h={handler:h});"function"===typeof f&&(f={handler:f});n=(0,oa.default)(n,h,f);this.bindings[n.key]=this.bindings[n.key]||[];this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(h){if(!h.defaultPrevented){var n=(e.bindings[h.which||h.keyCode]||[]).filter(function(e){return f.match(h,e)});if(0!==n.length){var r=e.quill.getSelection();
162
- if(null!=r&&e.quill.hasFocus()){var x=e.quill.getLine(r.index),w=la(x,2);x=w[0];w=w[1];var y=e.quill.getLeaf(r.index),z=la(y,2);y=z[0];z=z[1];var ca=0===r.length?[y,z]:e.quill.getLeaf(r.index+r.length),aa=la(ca,2);ca=aa[0];aa=aa[1];y=y instanceof ma.default.Text?y.value().slice(0,z):"";z=ca instanceof ma.default.Text?ca.value().slice(aa):"";var ba={collapsed:0===r.length,empty:0===r.length&&1>=x.length(),format:e.quill.getFormat(r),offset:w,prefix:y,suffix:z};n.some(function(h){if(null!=h.collapsed&&
163
- h.collapsed!==ba.collapsed||null!=h.empty&&h.empty!==ba.empty||null!=h.offset&&h.offset!==ba.offset)return!1;if(Array.isArray(h.format)){if(h.format.every(function(e){return null==ba.format[e]}))return!1}else if("object"===ha(h.format)&&!Object.keys(h.format).every(function(e){return!0===h.format[e]?null!=ba.format[e]:!1===h.format[e]?null==ba.format[e]:(0,pa.default)(h.format[e],ba.format[e])}))return!1;return null!=h.prefix&&!h.prefix.test(ba.prefix)||null!=h.suffix&&!h.suffix.test(ba.suffix)?!1:
164
- !0!==h.handler.call(e,r,ba)})&&h.preventDefault()}}}})}}]);return f}(ba.default);va.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};va.DEFAULTS={bindings:{bold:da("bold"),italic:da("italic"),underline:da("underline"),indent:{key:va.keys.TAB,format:["blockquote","indent","list"],handler:function(e,h){if(h.collapsed&&0!==h.offset)return!0;this.quill.format("indent","+1",za.default.sources.USER)}},outdent:{key:va.keys.TAB,shiftKey:!0,format:["blockquote","indent",
165
- "list"],handler:function(e,h){if(h.collapsed&&0!==h.offset)return!0;this.quill.format("indent","-1",za.default.sources.USER)}},"outdent backspace":{key:va.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,h){null!=h.format.indent?this.quill.format("indent","-1",za.default.sources.USER):null!=h.format.list&&this.quill.format("list",!1,za.default.sources.USER)}},"indent code-block":ea(!0),"outdent code-block":ea(!1),
166
- "remove tab":{key:va.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,za.default.sources.USER)}},tab:{key:va.keys.TAB,handler:function(e){this.quill.history.cutoff();var h=(new Ca.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(h,za.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(e.index+1,za.default.sources.SILENT)}},"list empty enter":{key:va.keys.ENTER,collapsed:!0,format:["list"],empty:!0,
167
- handler:function(e,h){this.quill.format("list",!1,za.default.sources.USER);h.format.indent&&this.quill.format("indent",!1,za.default.sources.USER)}},"checklist enter":{key:va.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var h=this.quill.getLine(e.index),f=la(h,2);h=f[0];f=f[1];var n=(0,oa.default)({},h.formats(),{list:"checked"});h=(new Ca.default).retain(e.index).insert("\n",n).retain(h.length()-f-1).retain(1,{list:"unchecked"});this.quill.updateContents(h,za.default.sources.USER);
168
- this.quill.setSelection(e.index+1,za.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:va.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,h){var f=this.quill.getLine(e.index),n=la(f,2);f=n[0];n=n[1];h=(new Ca.default).retain(e.index).insert("\n",h.format).retain(f.length()-n-1).retain(1,{header:null});this.quill.updateContents(h,za.default.sources.USER);this.quill.setSelection(e.index+1,za.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",
169
- collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,h){var f=h.prefix.length,n=this.quill.getLine(e.index),r=la(n,2);n=r[0];r=r[1];if(r>f)return!0;switch(h.prefix.trim()){case "[]":case "[ ]":h="unchecked";break;case "[x]":h="checked";break;case "-":case "*":h="bullet";break;default:h="ordered"}this.quill.insertText(e.index," ",za.default.sources.USER);this.quill.history.cutoff();h=(new Ca.default).retain(e.index-r).delete(f+1).retain(n.length()-2-r).retain(1,
170
- {list:h});this.quill.updateContents(h,za.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(e.index-f,za.default.sources.SILENT)}},"code exit":{key:va.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var h=this.quill.getLine(e.index),f=la(h,2);h=f[0];f=f[1];e=(new Ca.default).retain(e.index+h.length()-f-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(e,za.default.sources.USER)}},"embed left":h(va.keys.LEFT,
171
- !1),"embed left shift":h(va.keys.LEFT,!0),"embed right":h(va.keys.RIGHT,!1),"embed right shift":h(va.keys.RIGHT,!0)}};aa.default=va;aa.SHORTKEY=Ba},function(f,aa,ba){function z(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(aa,
172
- "__esModule",{value:!0});var y=function(){return function(e,h){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var f=[],n=!0,r=!1,x=void 0;try{for(var w=e[Symbol.iterator](),y;!(n=(y=w.next()).done)&&(f.push(y.value),!h||f.length!==h);n=!0);}catch(ja){r=!0,x=ja}finally{try{if(!n&&w["return"])w["return"]()}finally{if(r)throw x;}}return f}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),n=function na(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,
173
- h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return na(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}},w=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),h=(f=ba(0))&&f.__esModule?f:{default:f},e=(ba=ba(7))&&ba.__esModule?ba:{default:ba};ba=function(f){function x(e,
174
- h){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");e=(x.__proto__||Object.getPrototypeOf(x)).call(this,e);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.selection=h;e.textNode=document.createTextNode(x.CONTENTS);e.domNode.appendChild(e.textNode);e._length=0;return e}z(x,f);w(x,null,[{key:"value",value:function(){}}]);w(x,[{key:"detach",value:function(){null!=this.parent&&
175
- this.parent.removeChild(this)}},{key:"format",value:function(e,f){if(0!==this._length)return n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,e,f);for(var w=this,y=0;null!=w&&w.statics.scope!==h.default.Scope.BLOCK_BLOT;)y+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=x.CONTENTS.length,w.optimize(),w.formatAt(y,x.CONTENTS.length,e,f),this._length=0)}},{key:"index",value:function(e,h){return e===this.textNode?0:n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),
176
- "index",this).call(this,e,h)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){n(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var f=this.textNode,n=this.selection.getNativeRange(),w=void 0,z=void 0,ca=void 0;null!=n&&n.start.node===f&&n.end.node===
177
- f&&(ca=[f,n.start.offset,n.end.offset],w=ca[0],z=ca[1],ca=ca[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==x.CONTENTS&&(f=this.textNode.data.split(x.CONTENTS).join(""),this.next instanceof e.default?(w=this.next.domNode,this.next.insertAt(0,f),this.textNode.data=x.CONTENTS):(this.textNode.data=f,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=
178
- document.createTextNode(x.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=z)return z=[z,ca].map(function(e){return Math.max(0,Math.min(w.data.length,e-1))}),ca=y(z,2),z=ca[0],ca=ca[1],{startNode:w,startOffset:z,endNode:w,endOffset:ca}}}},{key:"update",value:function(e,h){var f=this;e.some(function(e){return"characterData"===e.type&&e.target===f.textNode})&&(e=this.restore())&&(h.range=e)}},{key:"value",value:function(){return""}}]);return x}(h.default.Embed);ba.blotName=
179
- "cursor";ba.className="ql-cursor";ba.tagName="span";ba.CONTENTS="\ufeff";aa.default=ba},function(f,aa,ba){function z(f,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);f.prototype=Object.create(w&&w.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(f,w):f.__proto__=w)}Object.defineProperty(aa,"__esModule",{value:!0});f=(f=ba(0))&&f.__esModule?f:{default:f};
180
- var y=(ba=ba(4))&&ba.__esModule?ba:{default:ba};f=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var h=(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}z(n,f);return n}(f.default.Container);f.allowedChildren=[y.default,ba.BlockEmbed,f];aa.default=f},function(f,aa,ba){function z(h,
181
- e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);h.prototype=Object.create(e&&e.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(h,e):h.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.ColorStyle=aa.ColorClass=aa.ColorAttributor=void 0;var y=function(){function h(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||
182
- !1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(e,f,n){f&&h(e.prototype,f);n&&h(e,n);return e}}(),n=function ia(e,f,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,f);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ia(e,f,n)}else{if("value"in r)return r.value;f=r.get;return void 0===f?void 0:f.call(n)}},w=function(e){return e&&e.__esModule?e:{default:e}}(ba(0));f=function(e){function f(){if(!(this instanceof
183
- f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).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}z(f,e);y(f,[{key:"value",value:function(e){e=n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,e);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+
184
- e.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")}}]);return f}(w.default.Attributor.Style);ba=new w.default.Attributor.Class("color","ql-color",{scope:w.default.Scope.INLINE});w=new f("color","color",{scope:w.default.Scope.INLINE});aa.ColorAttributor=f;aa.ColorClass=ba;aa.ColorStyle=w},function(f,aa,ba){function z(h,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);h.prototype=Object.create(e&&
185
- e.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(h,e):h.__proto__=e)}function y(h,e){var f=document.createElement("a");f.href=h;h=f.href.slice(0,f.href.indexOf(":"));return-1<e.indexOf(h)}Object.defineProperty(aa,"__esModule",{value:!0});aa.sanitize=aa.default=void 0;var n=function(){function h(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
186
- n.key,n)}}return function(e,f,n){f&&h(e.prototype,f);n&&h(e,n);return e}}(),w=function ia(e,f,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,f);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ia(e,f,n)}else{if("value"in r)return r.value;f=r.get;return void 0===f?void 0:f.call(n)}};f=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
187
- return!e||"object"!==typeof e&&"function"!==typeof e?this:e}z(f,e);n(f,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n);this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=w(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,e);e=this.sanitize(e);n.setAttribute("href",e);n.setAttribute("rel","noopener noreferrer");
188
- n.setAttribute("target","_blank");return n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return y(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ba(6)).default);f.blotName="link";f.tagName="A";f.SANITIZED_URL="about:blank";f.PROTOCOL_WHITELIST=["http","https","mailto","tel"];aa.default=f;aa.sanitize=y},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var z="function"===
189
- typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),n=(f=ba(23))&&f.__esModule?f:{default:f},w=(ba=ba(107))&&ba.__esModule?
190
- ba:{default:ba},h=0;ba=function(){function e(h){var f=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.select=h;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",function(){f.togglePicker()});this.label.addEventListener("keydown",function(e){switch(e.keyCode){case n.default.keys.ENTER:f.togglePicker();break;
191
- case n.default.keys.ESCAPE:f.escape(),e.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}y(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var e=this.label;e.setAttribute("aria-expanded","true"!==e.getAttribute("aria-expanded"));e=this.options;e.setAttribute("aria-hidden","true"!==e.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(e){var h=this,f=document.createElement("span");f.tabIndex="0";f.setAttribute("role",
192
- "button");f.classList.add("ql-picker-item");e.hasAttribute("value")&&f.setAttribute("data-value",e.getAttribute("value"));e.textContent&&f.setAttribute("data-label",e.textContent);f.addEventListener("click",function(){h.selectItem(f,!0)});f.addEventListener("keydown",function(e){switch(e.keyCode){case n.default.keys.ENTER:h.selectItem(f,!0);e.preventDefault();break;case n.default.keys.ESCAPE:h.escape(),e.preventDefault()}});return f}},{key:"buildLabel",value:function(){var e=document.createElement("span");
193
- e.classList.add("ql-picker-label");e.innerHTML=w.default;e.tabIndex="0";e.setAttribute("role","button");e.setAttribute("aria-expanded","false");this.container.appendChild(e);return e}},{key:"buildOptions",value:function(){var e=this,f=document.createElement("span");f.classList.add("ql-picker-options");f.setAttribute("aria-hidden","true");f.tabIndex="-1";f.id="ql-picker-options-"+h;h+=1;this.label.setAttribute("aria-controls",f.id);this.options=f;[].slice.call(this.select.options).forEach(function(h){var n=
194
- e.buildItem(h);f.appendChild(n);!0===h.selected&&e.selectItem(n)});this.container.appendChild(f)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(h){e.container.setAttribute(h.name,h.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close();setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");
195
- this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var h=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,f=this.container.querySelector(".ql-selected");e!==f&&(null!=f&&f.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):
196
- this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),h&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":z(Event))&&(h=document.createEvent("Event"),h.initEvent("change",!0,!0),this.select.dispatchEvent(h)),this.close())))}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var h=
197
- this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(h)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);return e}();aa.default=ba},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(aa,"__esModule",{value:!0});f=ba(0);f=z(f);var y=ba(5);y=z(y);var n=ba(4),w=z(n),h=ba(16);h=z(h);
198
- var e=ba(25);e=z(e);var r=ba(24);r=z(r);var x=ba(35);x=z(x);var da=ba(6);da=z(da);var ea=ba(22);ea=z(ea);var fa=ba(7);fa=z(fa);var ha=ba(55);ha=z(ha);var wa=ba(42);wa=z(wa);ba=ba(23);y.default.register({"blots/block":w.default,"blots/block/embed":n.BlockEmbed,"blots/break":h.default,"blots/container":e.default,"blots/cursor":r.default,"blots/embed":x.default,"blots/inline":da.default,"blots/scroll":ea.default,"blots/text":fa.default,"modules/clipboard":ha.default,"modules/history":wa.default,"modules/keyboard":z(ba).default});
199
- f.default.register(w.default,h.default,r.default,da.default,ea.default,fa.default);aa.default=y.default},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var z=ba(1);f=function(){function f(f){this.domNode=f;this.domNode[z.DATA_KEY]={blot:this}}Object.defineProperty(f.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0});f.create=function(f){if(null==this.tagName)throw new z.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?
200
- ("string"===typeof f&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),f="number"===typeof f?document.createElement(this.tagName[f-1]):-1<this.tagName.indexOf(f)?document.createElement(f):document.createElement(this.tagName[0])):f=document.createElement(this.tagName);this.className&&f.classList.add(this.className);return f};f.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};f.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return z.create(f)};
201
- f.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[z.DATA_KEY]};f.prototype.deleteAt=function(f,w){this.isolate(f,w).remove()};f.prototype.formatAt=function(f,w,h,e){f=this.isolate(f,w);null!=z.query(h,z.Scope.BLOT)&&e?f.wrap(h,e):null!=z.query(h,z.Scope.ATTRIBUTE)&&(w=z.create(this.statics.scope),f.wrap(w),w.format(h,e))};f.prototype.insertAt=function(f,w,h){w=null==h?z.create("text",w):z.create(w,h);f=this.split(f);this.parent.insertBefore(w,f)};f.prototype.insertInto=
202
- function(f,w){void 0===w&&(w=null);null!=this.parent&&this.parent.children.remove(this);var h=null;f.children.insertBefore(this,w);null!=w&&(h=w.domNode);this.domNode.parentNode==f.domNode&&this.domNode.nextSibling==h||f.domNode.insertBefore(this.domNode,h);this.parent=f;this.attach()};f.prototype.isolate=function(f,w){f=this.split(f);f.split(w);return f};f.prototype.length=function(){return 1};f.prototype.offset=function(f){void 0===f&&(f=this.parent);return null==this.parent||this==f?0:this.parent.children.offset(this)+
203
- this.parent.offset(f)};f.prototype.optimize=function(){null!=this.domNode[z.DATA_KEY]&&delete this.domNode[z.DATA_KEY].mutations};f.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};f.prototype.replace=function(f){null!=f.parent&&(f.parent.insertBefore(this,f.next),f.remove())};f.prototype.replaceWith=function(f,w){f="string"===typeof f?z.create(f,w):f;f.replace(this);return f};f.prototype.split=function(f){return 0===f?this:
204
- this.next};f.prototype.update=function(){};f.prototype.wrap=function(f,w){f="string"===typeof f?z.create(f,w):f;null!=this.parent&&this.parent.insertBefore(f,this.next);f.appendChild(this);return f};f.blotName="abstract";return f}();aa.default=f},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});var z=ba(12),y=ba(32),n=ba(33),w=ba(1);f=function(){function h(e){this.attributes={};this.domNode=e;this.build()}h.prototype.attribute=function(e,h){h?e.add(this.domNode,h)&&(null!=e.value(this.domNode)?
205
- this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])};h.prototype.build=function(){var e=this;this.attributes={};var h=z.default.keys(this.domNode),f=y.default.keys(this.domNode),ca=n.default.keys(this.domNode);h.concat(f).concat(ca).forEach(function(h){h=w.query(h,w.Scope.ATTRIBUTE);h instanceof z.default&&(e.attributes[h.attrName]=h)})};h.prototype.copy=function(e){var h=this;Object.keys(this.attributes).forEach(function(f){var n=
206
- h.attributes[f].value(h.domNode);e.format(f,n)})};h.prototype.move=function(e){var h=this;this.copy(e);Object.keys(this.attributes).forEach(function(e){h.attributes[e].remove(h.domNode)});this.attributes={}};h.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(h,f){h[f]=e.attributes[f].value(e.domNode);return h},{})};return h}();aa.default=f},function(f,aa,ba){function z(f,w){return(f.getAttribute("class")||"").split(/\s+/).filter(function(h){return 0===h.indexOf(w+
207
- "-")})}var y=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var e in h)h.hasOwnProperty(e)&&(f[e]=h[e])};return function(n,h){function e(){this.constructor=n}f(n,h);n.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}();Object.defineProperty(aa,"__esModule",{value:!0});f=function(f){function n(){return null!==f&&f.apply(this,arguments)||this}y(n,f);n.keys=function(h){return(h.getAttribute("class")||
208
- "").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})};n.prototype.add=function(h,e){if(!this.canAdd(h,e))return!1;this.remove(h);h.classList.add(this.keyName+"-"+e);return!0};n.prototype.remove=function(h){z(h,this.keyName).forEach(function(e){h.classList.remove(e)});0===h.classList.length&&h.removeAttribute("class")};n.prototype.value=function(h){var e=(z(h,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(h,e)?e:""};return n}(ba(12).default);aa.default=
209
- f},function(f,aa,ba){function z(f){f=f.split("-");var n=f.slice(1).map(function(h){return h[0].toUpperCase()+h.slice(1)}).join("");return f[0]+n}var y=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var e in h)h.hasOwnProperty(e)&&(f[e]=h[e])};return function(n,h){function e(){this.constructor=n}f(n,h);n.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}();Object.defineProperty(aa,"__esModule",
210
- {value:!0});f=function(f){function n(){return null!==f&&f.apply(this,arguments)||this}y(n,f);n.keys=function(h){return(h.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})};n.prototype.add=function(h,e){if(!this.canAdd(h,e))return!1;h.style[z(this.keyName)]=e;return!0};n.prototype.remove=function(h){h.style[z(this.keyName)]="";h.getAttribute("style")||h.removeAttribute("style")};n.prototype.value=function(h){var e=h.style[z(this.keyName)];return this.canAdd(h,e)?
211
- e:""};return n}(ba(12).default);aa.default=f},function(f,aa){Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function f(f,n){for(var w=0;w<n.length;w++){var h=n[w];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(f,h.key,h)}}return function(y,n,w){n&&f(y.prototype,n);w&&f(y,w);return y}}();f=function(){function f(y,n){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.quill=y;this.options=n;this.modules=
212
- {}}z(f,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(n){null==f.modules[n]&&f.addModule(n)})}},{key:"addModule",value:function(f){var n=this.quill.constructor.import("modules/"+f);this.modules[f]=new n(this.quill,this.options.modules[f]||{});return this.modules[f]}}]);return f}();f.DEFAULTS={modules:{}};f.themes={"default":f};aa.default=f},function(f,aa,ba){function z(e,h){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
213
- return!h||"object"!==typeof h&&"function"!==typeof h?e:h}function y(e,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);e.prototype=Object.create(h&&h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(e,h):e.__proto__=h)}Object.defineProperty(aa,"__esModule",{value:!0});var n=function(){function e(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=
214
- n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(h,f,n){f&&e(h.prototype,f);n&&e(h,n);return h}}(),w=function na(e,h,f){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,h);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return na(e,h,f)}else{if("value"in n)return n.value;h=n.get;return void 0===h?void 0:h.call(f)}},h=(f=ba(0))&&f.__esModule?f:{default:f},e=(ba=ba(7))&&ba.__esModule?ba:{default:ba};ba=function(f){function x(e){if(!(this instanceof
215
- x))throw new TypeError("Cannot call a class as a function");var h=z(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,e));h.contentNode=document.createElement("span");h.contentNode.setAttribute("contenteditable",!1);[].slice.call(h.domNode.childNodes).forEach(function(e){h.contentNode.appendChild(e)});h.leftGuard=document.createTextNode("\ufeff");h.rightGuard=document.createTextNode("\ufeff");h.domNode.appendChild(h.leftGuard);h.domNode.appendChild(h.contentNode);h.domNode.appendChild(h.rightGuard);
216
- return h}y(x,f);n(x,[{key:"index",value:function(e,h){return e===this.leftGuard?0:e===this.rightGuard?1:w(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"index",this).call(this,e,h)}},{key:"restore",value:function(f){var n=void 0,w=f.data.split("\ufeff").join("");f===this.leftGuard?this.prev instanceof e.default?(n=this.prev.length(),this.prev.insertAt(n,w),n={startNode:this.prev.domNode,startOffset:n+w.length}):(n=document.createTextNode(w),this.parent.insertBefore(h.default.create(n),
217
- this),n={startNode:n,startOffset:w.length}):f===this.rightGuard&&(this.next instanceof e.default?(this.next.insertAt(0,w),n={startNode:this.next.domNode,startOffset:w.length}):(n=document.createTextNode(w),this.parent.insertBefore(h.default.create(n),this.next),n={startNode:n,startOffset:w.length}));f.data="\ufeff";return n}},{key:"update",value:function(e,h){var f=this;e.forEach(function(e){"characterData"!==e.type||e.target!==f.leftGuard&&e.target!==f.rightGuard||!(e=f.restore(e.target))||(h.range=
218
- e)})}}]);return x}(h.default.Embed);aa.default=ba},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});aa.AlignStyle=aa.AlignClass=aa.AlignAttribute=void 0;var z=(f=ba(0))&&f.__esModule?f:{default:f};var y={scope:z.default.Scope.BLOCK,whitelist:["right","center","justify"]};f=new z.default.Attributor.Attribute("align","align",y);ba=new z.default.Attributor.Class("align","ql-align",y);z=new z.default.Attributor.Style("align","text-align",y);aa.AlignAttribute=f;aa.AlignClass=ba;aa.AlignStyle=
219
- z},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});aa.BackgroundStyle=aa.BackgroundClass=void 0;f=(f=ba(0))&&f.__esModule?f:{default:f};var z=ba(26);ba=new f.default.Attributor.Class("background","ql-bg",{scope:f.default.Scope.INLINE});f=new z.ColorAttributor("background","background-color",{scope:f.default.Scope.INLINE});aa.BackgroundClass=ba;aa.BackgroundStyle=f},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});aa.DirectionStyle=aa.DirectionClass=aa.DirectionAttribute=
220
- void 0;var z=(f=ba(0))&&f.__esModule?f:{default:f};var y={scope:z.default.Scope.BLOCK,whitelist:["rtl"]};f=new z.default.Attributor.Attribute("direction","dir",y);ba=new z.default.Attributor.Class("direction","ql-direction",y);z=new z.default.Attributor.Style("direction","direction",y);aa.DirectionAttribute=f;aa.DirectionClass=ba;aa.DirectionStyle=z},function(f,aa,ba){function z(h,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
221
- typeof e);h.prototype=Object.create(e&&e.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(h,e):h.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});aa.FontClass=aa.FontStyle=void 0;var y=function(){function h(e,h){for(var f=0;f<h.length;f++){var n=h[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(e,f,n){f&&h(e.prototype,f);n&&h(e,
222
- n);return e}}(),n=function ia(e,f,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,f);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ia(e,f,n)}else{if("value"in r)return r.value;f=r.get;return void 0===f?void 0:f.call(n)}};ba=function(e){return e&&e.__esModule?e:{default:e}}(ba(0));var w={scope:ba.default.Scope.INLINE,whitelist:["serif","monospace"]};f=new ba.default.Attributor.Class("font","ql-font",w);ba=new (function(e){function f(){if(!(this instanceof
223
- f))throw new TypeError("Cannot call a class as a function");var e=(f.__proto__||Object.getPrototypeOf(f)).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}z(f,e);y(f,[{key:"value",value:function(e){return n(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]);return f}(ba.default.Attributor.Style))("font","font-family",
224
- w);aa.FontStyle=ba;aa.FontClass=f},function(f,aa,ba){Object.defineProperty(aa,"__esModule",{value:!0});aa.SizeStyle=aa.SizeClass=void 0;ba=(f=ba(0))&&f.__esModule?f:{default:f};f=new ba.default.Attributor.Class("size","ql-size",{scope:ba.default.Scope.INLINE,whitelist:["small","large","huge"]});ba=new ba.default.Attributor.Style("size","font-size",{scope:ba.default.Scope.INLINE,whitelist:["10px","18px","32px"]});aa.SizeClass=f;aa.SizeStyle=ba},function(f,aa,ba){f.exports={align:{"":ba(76),center:ba(77),
225
- right:ba(78),justify:ba(79)},background:ba(80),blockquote:ba(81),bold:ba(82),clean:ba(83),code:ba(58),"code-block":ba(58),color:ba(84),direction:{"":ba(85),rtl:ba(86)},"float":{center:ba(87),full:ba(88),left:ba(89),right:ba(90)},formula:ba(91),header:{1:ba(92),2:ba(93)},italic:ba(94),image:ba(95),indent:{"+1":ba(96),"-1":ba(97)},link:ba(98),list:{ordered:ba(99),bullet:ba(100),check:ba(101)},script:{sub:ba(102),"super":ba(103)},strike:ba(104),underline:ba(105),video:ba(106)}},function(f,aa,ba){function z(e){return e&&
226
- e.__esModule?e:{default:e}}function y(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function n(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=
227
- f)}function w(e){e=e.ops[e.ops.length-1];return null==e?!1:null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes?Object.keys(e.attributes).some(function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)}):!1}function h(e){var f=e.reduce(function(e,f){return e+=f.delete||0},0);f=e.length()-f;w(e)&&--f;return f}Object.defineProperty(aa,"__esModule",{value:!0});aa.getLastChangeIndex=aa.default=void 0;var e=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=
228
- f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();f=ba(0);var r=z(f);f=ba(5);var x=z(f);ba=ba(9);ba=function(f){function r(e,f){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=y(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,f));h.lastRecorded=0;h.ignoreChange=!1;h.clear();h.quill.on(x.default.events.EDITOR_CHANGE,function(e,
229
- f,n,r){e!==x.default.events.TEXT_CHANGE||h.ignoreChange||(h.options.userOnly&&r!==x.default.sources.USER?h.transform(f):h.record(f,n))});h.quill.keyboard.addBinding({key:"Z",shortKey:!0},h.undo.bind(h));h.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},h.redo.bind(h));/Win/i.test(navigator.platform)&&h.quill.keyboard.addBinding({key:"Y",shortKey:!0},h.redo.bind(h));return h}n(r,f);e(r,[{key:"change",value:function(e,f){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[f].push(n);
230
- this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(n[e],x.default.sources.USER);this.ignoreChange=!1;e=h(n[e]);this.quill.setSelection(e)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,f){if(0!==e.ops.length){this.stack.redo=[];f=this.quill.getContents().diff(f);var h=Date.now();this.lastRecorded+this.options.delay>h&&0<this.stack.undo.length?(h=this.stack.undo.pop(),f=f.compose(h.undo),
231
- e=h.redo.compose(e)):this.lastRecorded=h;this.stack.undo.push({redo:e,undo:f});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(f){f.undo=e.transform(f.undo,!0);f.redo=e.transform(f.redo,!0)});this.stack.redo.forEach(function(f){f.undo=e.transform(f.undo,!0);f.redo=e.transform(f.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);
232
- return r}(z(ba).default);ba.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};aa.default=ba;aa.getLastChangeIndex=h},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
233
- typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}function h(e,f){var h=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;f.forEach(function(f){var n=document.createElement("option");f===h?n.setAttribute("selected","selected"):n.setAttribute("value",f);e.appendChild(n)})}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.BaseTooltip=void 0;var e=
234
- function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),r=function va(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return va(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};f=ba(3);f=
235
- z(f);var x=ba(2),da=z(x);x=ba(8);var ea=z(x);x=ba(23);var fa=z(x);x=ba(34);x=z(x);var ha=ba(59),wa=z(ha);ha=ba(60);var la=z(ha);ha=ba(28);var ja=z(ha);ba=ba(61);ha=z(ba);var ta=[!1,"center","right","justify"],pa="#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(" "),
236
- oa=[!1,"serif","monospace"],Ca=["1","2","3",!1],qa=["small",!1,"large","huge"];ba=function(f){function x(e,f){y(this,x);var h=n(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,e,f));e.emitter.listenDOM("click",document.body,function Ea(f){if(!document.body.contains(e.root))return document.body.removeEventListener("click",Ea);null==h.tooltip||h.tooltip.root.contains(f.target)||document.activeElement===h.tooltip.textbox||h.quill.hasFocus()||h.tooltip.hide();null!=h.pickers&&h.pickers.forEach(function(e){e.container.contains(f.target)||
237
- e.close()})});return h}w(x,f);e(x,[{key:"addModule",value:function(e){var f=r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"addModule",this).call(this,e);"toolbar"===e&&this.extendToolbar(f);return f}},{key:"buildButtons",value:function(e,f){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(h){if(h.startsWith("ql-")&&(h=h.slice(3),null!=f[h]))if("direction"===h)e.innerHTML=f[h][""]+f[h].rtl;else if("string"===typeof f[h])e.innerHTML=f[h];else{var n=e.value||
238
- "";null!=n&&f[h][n]&&(e.innerHTML=f[h][n])}})})}},{key:"buildPickers",value:function(e,f){var n=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&h(e,ta),new la.default(e,f.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";null==e.querySelector("option")&&h(e,pa,"background"===n?"#ffffff":"#000000");return new wa.default(e,f[n])}null==e.querySelector("option")&&
239
- (e.classList.contains("ql-font")?h(e,oa):e.classList.contains("ql-header")?h(e,Ca):e.classList.contains("ql-size")&&h(e,qa));return new ja.default(e)});this.quill.on(ea.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]);return x}(x.default);ba.DEFAULTS=(0,f.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,f=this.container.querySelector("input.ql-image[type=file]");
240
- null==f&&(f=document.createElement("input"),f.setAttribute("type","file"),f.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),f.classList.add("ql-image"),f.addEventListener("change",function(){if(null!=f.files&&null!=f.files[0]){var h=new FileReader;h.onload=function(h){var n=e.quill.getSelection(!0);e.quill.updateContents((new da.default).retain(n.index).delete(n.length).insert({image:h.target.result}),ea.default.sources.USER);e.quill.setSelection(n.index+1,ea.default.sources.SILENT);
241
- f.value=""};h.readAsDataURL(f.files[0])}}),this.container.appendChild(f));f.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});f=function(f){function h(e,f){y(this,h);e=n(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,f));e.textbox=e.root.querySelector('input[type="text"]');e.listen();return e}w(h,f);e(h,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(f){fa.default.match(f,"enter")?(e.save(),f.preventDefault()):fa.default.match(f,
242
- "escape")&&(e.cancel(),f.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=f?this.textbox.value=f:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();
243
- this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||"");this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var f=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,ea.default.sources.USER),delete this.linkRange):
244
- (this.restoreFocus(),this.quill.format("link",e,ea.default.sources.USER));this.quill.root.scrollTop=f;break;case "video":e=(f=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(f[1]||"https")+"://www.youtube.com/embed/"+f[2]+"?showinfo=0":(f=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(f[1]||"https")+"://player.vimeo.com/video/"+f[2]+"/":e;case "formula":e&&(f=this.quill.getSelection(!0),
245
- null!=f&&(f=f.index+f.length,this.quill.insertEmbed(f,this.root.getAttribute("data-mode"),e,ea.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(f+1," ",ea.default.sources.USER),this.quill.setSelection(f+2,ea.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return h}(ha.default);aa.BaseTooltip=f;aa.default=ba},function(f,aa){Object.defineProperty(aa,"__esModule",{value:!0});f=function(){function f(){this.head=this.tail=null;this.length=0}f.prototype.append=
246
- function(){for(var f=[],y=0;y<arguments.length;y++)f[y]=arguments[y];this.insertBefore(f[0],null);1<f.length&&this.append.apply(this,f.slice(1))};f.prototype.contains=function(f){for(var y,n=this.iterator();y=n();)if(y===f)return!0;return!1};f.prototype.insertBefore=function(f,y){f&&(f.next=y,null!=y?(f.prev=y.prev,null!=y.prev&&(y.prev.next=f),y.prev=f,y===this.head&&(this.head=f)):null!=this.tail?(this.tail.next=f,f.prev=this.tail,this.tail=f):(f.prev=null,this.head=this.tail=f),this.length+=1)};
247
- f.prototype.offset=function(f){for(var y=0,n=this.head;null!=n;){if(n===f)return y;y+=n.length();n=n.next}return-1};f.prototype.remove=function(f){this.contains(f)&&(null!=f.prev&&(f.prev.next=f.next),null!=f.next&&(f.next.prev=f.prev),f===this.head&&(this.head=f.next),f===this.tail&&(this.tail=f.prev),--this.length)};f.prototype.iterator=function(f){void 0===f&&(f=this.head);return function(){var y=f;null!=f&&(f=f.next);return y}};f.prototype.find=function(f,y){void 0===y&&(y=!1);for(var n,w=this.iterator();n=
248
- w();){var h=n.length();if(f<h||y&&f===h&&(null==n.next||0!==n.next.length()))return[n,f];f-=h}return[null,0]};f.prototype.forEach=function(f){for(var y,n=this.iterator();y=n();)f(y)};f.prototype.forEachAt=function(f,y,n){if(!(0>=y))for(var w=this.find(f),h=f-w[1],e=this.iterator(w[0]);(w=e())&&h<f+y;){var r=w.length();f>h?n(w,f-h,Math.min(y,h+r-f)):n(w,0,Math.min(r,f+y-h));h+=r}};f.prototype.map=function(f){return this.reduce(function(y,n){y.push(f(n));return y},[])};f.prototype.reduce=function(f,
249
- y){for(var n,w=this.iterator();n=w();)y=f(y,n);return y};return f}();aa.default=f},function(f,aa,ba){var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var h in f)f.hasOwnProperty(h)&&(e[h]=f[h])};return function(e,h){function n(){this.constructor=e}f(e,h);e.prototype=null===h?Object.create(h):(n.prototype=h.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});var y=ba(17),n=ba(1),w=
250
- {attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};f=function(f){function e(e){var h=f.call(this,e)||this;h.scroll=h;h.observer=new MutationObserver(function(e){h.update(e)});h.observer.observe(h.domNode,w);h.attach();return h}z(e,f);e.prototype.detach=function(){f.prototype.detach.call(this);this.observer.disconnect()};e.prototype.deleteAt=function(e,h){this.update();0===e&&h===this.length()?this.children.forEach(function(e){e.remove()}):f.prototype.deleteAt.call(this,
251
- e,h)};e.prototype.formatAt=function(e,h,n,w){this.update();f.prototype.formatAt.call(this,e,h,n,w)};e.prototype.insertAt=function(e,h,n){this.update();f.prototype.insertAt.call(this,e,h,n)};e.prototype.optimize=function(e,h){function r(e){null!=e.domNode[n.DATA_KEY]&&null!=e.domNode[n.DATA_KEY].mutations&&(e instanceof y.default&&e.children.forEach(r),e.optimize(h))}function w(e,f){void 0===f&&(f=!0);null!=e&&e!==x&&null!=e.domNode.parentNode&&(null==e.domNode[n.DATA_KEY].mutations&&(e.domNode[n.DATA_KEY].mutations=
252
- []),f&&w(e.parent))}var x=this;void 0===e&&(e=[]);void 0===h&&(h={});f.prototype.optimize.call(this,h);for(var z=[].slice.call(this.observer.takeRecords());0<z.length;)e.push(z.pop());for(var aa=e,ca=0;0<aa.length;ca+=1){if(100<=ca)throw Error("[Parchment] Maximum optimize iterations reached");aa.forEach(function(e){var f=n.find(e.target,!0);null!=f&&(f.domNode===e.target&&("childList"===e.type?(w(n.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){e=n.find(e,!1);w(e,!1);e instanceof
253
- y.default&&e.children.forEach(function(e){w(e,!1)})})):"attributes"===e.type&&w(f.prev)),w(f))});this.children.forEach(r);aa=[].slice.call(this.observer.takeRecords());for(z=aa.slice();0<z.length;)e.push(z.pop())}};e.prototype.update=function(e,h){var r=this;void 0===h&&(h={});e=e||this.observer.takeRecords();e.map(function(e){var f=n.find(e.target,!0);if(null==f)return null;if(null==f.domNode[n.DATA_KEY].mutations)return f.domNode[n.DATA_KEY].mutations=[e],f;f.domNode[n.DATA_KEY].mutations.push(e);
254
- return null}).forEach(function(e){null!=e&&e!==r&&null!=e.domNode[n.DATA_KEY]&&e.update(e.domNode[n.DATA_KEY].mutations||[],h)});null!=this.domNode[n.DATA_KEY].mutations&&f.prototype.update.call(this,this.domNode[n.DATA_KEY].mutations,h);this.optimize(e,h)};e.blotName="scroll";e.defaultChild="block";e.scope=n.Scope.BLOCK_BLOT;e.tagName="DIV";return e}(y.default);aa.default=f},function(f,aa,ba){var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,
255
- e){f.__proto__=e}||function(f,e){for(var h in e)e.hasOwnProperty(h)&&(f[h]=e[h])};return function(h,e){function n(){this.constructor=h}f(h,e);h.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(aa,"__esModule",{value:!0});var y=ba(18),n=ba(1);f=function(f){function h(){return null!==f&&f.apply(this,arguments)||this}z(h,f);h.formats=function(e){if(e.tagName!==h.tagName)return f.formats.call(this,e)};h.prototype.format=function(e,n){var r=this;e!==this.statics.blotName||
256
- n?f.prototype.format.call(this,e,n):(this.children.forEach(function(e){e instanceof y.default||(e=e.wrap(h.blotName,!0));r.attributes.copy(e)}),this.unwrap())};h.prototype.formatAt=function(e,h,w,y){null!=this.formats()[w]||n.query(w,n.Scope.ATTRIBUTE)?this.isolate(e,h).format(w,y):f.prototype.formatAt.call(this,e,h,w,y)};h.prototype.optimize=function(e){f.prototype.optimize.call(this,e);e=this.formats();if(0===Object.keys(e).length)return this.unwrap();var n=this.next,w;if(w=n instanceof h&&n.prev===
257
- this)a:if(w=n.formats(),Object.keys(e).length!==Object.keys(w).length)w=!1;else{for(var y in e)if(e[y]!==w[y]){w=!1;break a}w=!0}w&&(n.moveChildren(this),n.remove())};h.blotName="inline";h.scope=n.Scope.INLINE_BLOT;h.tagName="SPAN";return h}(y.default);aa.default=f},function(f,aa,ba){var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var e in h)h.hasOwnProperty(e)&&(f[e]=h[e])};return function(n,h){function e(){this.constructor=
258
- n}f(n,h);n.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}();Object.defineProperty(aa,"__esModule",{value:!0});f=ba(18);var y=ba(1);ba=function(f){function n(){return null!==f&&f.apply(this,arguments)||this}z(n,f);n.formats=function(h){var e=y.query(n.blotName).tagName;if(h.tagName!==e)return f.formats.call(this,h)};n.prototype.format=function(h,e){null!=y.query(h,y.Scope.BLOCK)&&(h!==this.statics.blotName||e?f.prototype.format.call(this,h,e):this.replaceWith(n.blotName))};n.prototype.formatAt=
259
- function(h,e,n,w){null!=y.query(n,y.Scope.BLOCK)?this.format(n,w):f.prototype.formatAt.call(this,h,e,n,w)};n.prototype.insertAt=function(h,e,n){null==n||null!=y.query(e,y.Scope.INLINE)?f.prototype.insertAt.call(this,h,e,n):(h=this.split(h),e=y.create(e,n),h.parent.insertBefore(e,h))};n.prototype.update=function(h,e){navigator.userAgent.match(/Trident/)?this.build():f.prototype.update.call(this,h,e)};n.blotName="block";n.scope=y.Scope.BLOCK_BLOT;n.tagName="P";return n}(f.default);aa.default=ba},function(f,
260
- aa,ba){var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,w){f.__proto__=w}||function(f,w){for(var h in w)w.hasOwnProperty(h)&&(f[h]=w[h])};return function(n,w){function h(){this.constructor=n}f(n,w);n.prototype=null===w?Object.create(w):(h.prototype=w.prototype,new h)}}();Object.defineProperty(aa,"__esModule",{value:!0});f=function(f){function n(){return null!==f&&f.apply(this,arguments)||this}z(n,f);n.formats=function(){};n.prototype.format=
261
- function(n,h){f.prototype.formatAt.call(this,0,this.length(),n,h)};n.prototype.formatAt=function(n,h,e,r){0===n&&h===this.length()?this.format(e,r):f.prototype.formatAt.call(this,n,h,e,r)};n.prototype.formats=function(){return this.statics.formats(this.domNode)};return n}(ba(19).default);aa.default=f},function(f,aa,ba){var z=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var e in h)h.hasOwnProperty(e)&&
262
- (f[e]=h[e])};return function(n,h){function e(){this.constructor=n}f(n,h);n.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}();Object.defineProperty(aa,"__esModule",{value:!0});f=ba(19);var y=ba(1);ba=function(f){function n(h){h=f.call(this,h)||this;h.text=h.statics.value(h.domNode);return h}z(n,f);n.create=function(f){return document.createTextNode(f)};n.value=function(f){f=f.data;f.normalize&&(f=f.normalize());return f};n.prototype.deleteAt=function(f,e){this.domNode.data=this.text=
263
- this.text.slice(0,f)+this.text.slice(f+e)};n.prototype.index=function(f,e){return this.domNode===f?e:-1};n.prototype.insertAt=function(h,e,n){null==n?(this.text=this.text.slice(0,h)+e+this.text.slice(h),this.domNode.data=this.text):f.prototype.insertAt.call(this,h,e,n)};n.prototype.length=function(){return this.text.length};n.prototype.optimize=function(h){f.prototype.optimize.call(this,h);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof n&&this.next.prev===
264
- this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};n.prototype.position=function(f){return[this.domNode,f]};n.prototype.split=function(f,e){void 0===e&&(e=!1);if(!e){if(0===f)return this;if(f===this.length())return this.next}f=y.create(this.domNode.splitText(f));this.parent.insertBefore(f,this.next);this.text=this.statics.value(this.domNode);return f};n.prototype.update=function(f){var e=this;f.some(function(f){return"characterData"===f.type&&f.target===e.domNode})&&(this.text=
265
- this.statics.value(this.domNode))};n.prototype.value=function(){return this.text};n.blotName="text";n.scope=y.Scope.INLINE_BLOT;return n}(f.default);aa.default=ba},function(){var f=document.createElement("div");f.classList.toggle("test-class",!1);if(f.classList.contains("test-class")){var aa=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(f,z){return 1<arguments.length&&!this.contains(f)===!z?z:aa.call(this,f)}}String.prototype.startsWith||(String.prototype.startsWith=function(f,
266
- z){return this.substr(z||0,f.length)===f});String.prototype.endsWith||(String.prototype.endsWith=function(f,z){var y=this.toString();if("number"!==typeof z||!isFinite(z)||Math.floor(z)!==z||z>y.length)z=y.length;z-=f.length;f=y.indexOf(f,z);return-1!==f&&f===z});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f,z){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof f)throw new TypeError("predicate must be a function");
267
- for(var y=Object(this),n=y.length>>>0,w,h=0;h<n;h++)if(w=y[h],f.call(z,w,h,y))return w}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(f){function z(f,w,x){if(f==w)return f?[[0,f]]:[];if(0>x||f.length<x)x=null;var z=y(f,w),ca=f.substring(0,z);f=f.substring(z);w=w.substring(z);z=n(f,w);var ba=f.substring(f.length-z);f=f.substring(0,f.length-z);w=w.substring(0,w.length-z);f=aa(f,w);
268
- ca&&f.unshift([0,ca]);ba&&f.push([0,ba]);h(f);null!=x&&(f=e(f,x));return f=r(f)}function aa(e,f){if(!e)return[[1,f]];if(!f)return[[-1,e]];var h=e.length>f.length?e:f;var n=e.length>f.length?f:e,r=h.indexOf(n);if(-1!=r)return h=[[1,h.substring(0,r)],[0,n],[1,h.substring(r+n.length)]],e.length>f.length&&(h[0][0]=h[2][0]=-1),h;if(1==n.length)return[[-1,e],[1,f]];if(h=w(e,f))return f=h[1],n=h[3],e=h[4],h=z(h[0],h[2]),f=z(f,n),h.concat([[0,e]],f);a:{h=e.length;n=f.length;r=Math.ceil((h+n)/2);for(var x=
269
- 2*r,y=Array(x),aa=Array(x),ba=0;ba<x;ba++)y[ba]=-1,aa[ba]=-1;y[r+1]=0;aa[r+1]=0;ba=h-n;for(var ea=0!=ba%2,da=0,fa=0,ia=0,ha=0,ya=0;ya<r;ya++){for(var Ba=-ya+da;Ba<=ya-fa;Ba+=2){var va=r+Ba;var sa=Ba==-ya||Ba!=ya&&y[va-1]<y[va+1]?y[va+1]:y[va-1]+1;for(var Aa=sa-Ba;sa<h&&Aa<n&&e.charAt(sa)==f.charAt(Aa);)sa++,Aa++;y[va]=sa;if(sa>h)fa+=2;else if(Aa>n)da+=2;else if(ea&&(va=r+ba-Ba,0<=va&&va<x&&-1!=aa[va])){var Fa=h-aa[va];if(sa>=Fa){e=ca(e,f,sa,Aa);break a}}}for(Ba=-ya+ia;Ba<=ya-ha;Ba+=2){va=r+Ba;Fa=
270
- Ba==-ya||Ba!=ya&&aa[va-1]<aa[va+1]?aa[va+1]:aa[va-1]+1;for(sa=Fa-Ba;Fa<h&&sa<n&&e.charAt(h-Fa-1)==f.charAt(n-sa-1);)Fa++,sa++;aa[va]=Fa;if(Fa>h)ha+=2;else if(sa>n)ia+=2;else if(!ea&&(va=r+ba-Ba,0<=va&&va<x&&-1!=y[va]&&(sa=y[va],Aa=r+sa-va,Fa=h-Fa,sa>=Fa))){e=ca(e,f,sa,Aa);break a}}}e=[[-1,e],[1,f]]}return e}function ca(e,f,h,n){var r=e.substring(h),w=f.substring(n);e=z(e.substring(0,h),f.substring(0,n));r=z(r,w);return e.concat(r)}function y(e,f){if(!e||!f||e.charAt(0)!=f.charAt(0))return 0;for(var h=
271
- 0,n=Math.min(e.length,f.length),r=n,w=0;h<r;)e.substring(w,r)==f.substring(w,r)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function n(e,f){if(!e||!f||e.charAt(e.length-1)!=f.charAt(f.length-1))return 0;for(var h=0,n=Math.min(e.length,f.length),r=n,w=0;h<r;)e.substring(e.length-r,e.length-w)==f.substring(f.length-r,f.length-w)?w=h=r:n=r,r=Math.floor((n-h)/2+h);return r}function w(e,f){function h(e,f,h){for(var r=e.substring(h,h+Math.floor(e.length/4)),w=-1,x="",z,aa,ca,ba;-1!=(w=f.indexOf(r,w+1));){var ea=
272
- y(e.substring(h),f.substring(w)),da=n(e.substring(0,h),f.substring(0,w));x.length<da+ea&&(x=f.substring(w-da,w)+f.substring(w,w+ea),z=e.substring(0,h-da),aa=e.substring(h+ea),ca=f.substring(0,w-da),ba=f.substring(w+ea))}return 2*x.length>=e.length?[z,aa,ca,ba,x]:null}var r=e.length>f.length?e:f,w=e.length>f.length?f:e;if(4>r.length||2*w.length<r.length)return null;var x=h(r,w,Math.ceil(r.length/4));r=h(r,w,Math.ceil(r.length/2));if(x||r)x=r?x?x[4].length>r[4].length?x:r:r:x;else return null;e.length>
273
- f.length?(e=x[0],f=x[1],r=x[2],w=x[3]):(r=x[0],w=x[1],e=x[2],f=x[3]);return[e,f,r,w,x[4]]}function h(e){e.push([0,""]);for(var f=0,r=0,w=0,x="",z="",aa;f<e.length;)switch(e[f][0]){case 1:w++;z+=e[f][1];f++;break;case -1:r++;x+=e[f][1];f++;break;case 0:1<r+w?(0!==r&&0!==w&&(aa=y(z,x),0!==aa&&(0<f-r-w&&0==e[f-r-w-1][0]?e[f-r-w-1][1]+=z.substring(0,aa):(e.splice(0,0,[0,z.substring(0,aa)]),f++),z=z.substring(aa),x=x.substring(aa)),aa=n(z,x),0!==aa&&(e[f][1]=z.substring(z.length-aa)+e[f][1],z=z.substring(0,
274
- z.length-aa),x=x.substring(0,x.length-aa))),0===r?e.splice(f-w,r+w,[1,z]):0===w?e.splice(f-r,r+w,[-1,x]):e.splice(f-r-w,r+w,[-1,x],[1,z]),f=f-r-w+(r?1:0)+(w?1:0)+1):0!==f&&0==e[f-1][0]?(e[f-1][1]+=e[f][1],e.splice(f,1)):f++,r=w=0,z=x=""}""===e[e.length-1][1]&&e.pop();r=!1;for(f=1;f<e.length-1;)0==e[f-1][0]&&0==e[f+1][0]&&(e[f][1].substring(e[f][1].length-e[f-1][1].length)==e[f-1][1]?(e[f][1]=e[f-1][1]+e[f][1].substring(0,e[f][1].length-e[f-1][1].length),e[f+1][1]=e[f-1][1]+e[f+1][1],e.splice(f-1,
275
- 1),r=!0):e[f][1].substring(0,e[f+1][1].length)==e[f+1][1]&&(e[f-1][1]+=e[f+1][1],e[f][1]=e[f][1].substring(e[f+1][1].length)+e[f+1][1],e.splice(f+1,1),r=!0)),f++;r&&h(e)}function e(e,f){a:{var h=e;if(0===f)var n=[0,h];else{var r=0;for(n=0;n<h.length;n++){var w=h[n];if(-1===w[0]||0===w[0]){var y=r+w[1].length;if(f===y){n=[n+1,h];break a}if(f<y){h=h.slice();r=f-r;f=[w[0],w[1].slice(0,r)];w=[w[0],w[1].slice(r)];h.splice(n,1,f,w);n=[n+1,h];break a}r=y}}throw Error("cursor_pos is out of bounds!");}}h=
276
- n[1];n=n[0];f=h[n];w=h[n+1];return null==f||0!==f[0]?e:null!=w&&f[1]+w[1]===w[1]+f[1]?(h.splice(n,2,w,f),x(h,n,2)):null!=w&&0===w[1].indexOf(f[1])?(h.splice(n,2,[w[0],f[1]],[0,f[1]]),e=w[1].slice(f[1].length),0<e.length&&h.splice(n+2,0,[w[0],e]),x(h,n,3)):e}function r(e){function f(e){return 55296<=e.charCodeAt(e.length-1)&&56319>=e.charCodeAt(e.length-1)}function h(e){return 56320<=e.charCodeAt(0)&&57343>=e.charCodeAt(0)}for(var n=!1,r=2;r<e.length;r+=1)0===e[r-2][0]&&f(e[r-2][1])&&-1===e[r-1][0]&&
277
- h(e[r-1][1])&&1===e[r][0]&&h(e[r][1])&&(n=!0,e[r-1][1]=e[r-2][1].slice(-1)+e[r-1][1],e[r][1]=e[r-2][1].slice(-1)+e[r][1],e[r-2][1]=e[r-2][1].slice(0,-1));if(!n)return e;n=[];for(r=0;r<e.length;r+=1)0<e[r][1].length&&n.push(e[r]);return n}function x(e,f,h){for(h=f+h-1;0<=h&&h>=f-1;h--)if(h+1<e.length){var n=e[h],r=e[h+1];n[0]===r[1]&&e.splice(h,2,[n[0],n[1]+r[1]])}return e}z.INSERT=1;z.DELETE=-1;z.EQUAL=0;f.exports=z},function(f,aa){function z(f){var y=[],n;for(n in f)y.push(n);return y}aa=f.exports=
278
- "function"===typeof Object.keys?Object.keys:z;aa.shim=z},function(f,aa){function z(f){return"[object Arguments]"==Object.prototype.toString.call(f)}function ca(f){return f&&"object"==typeof f&&"number"==typeof f.length&&Object.prototype.hasOwnProperty.call(f,"callee")&&!Object.prototype.propertyIsEnumerable.call(f,"callee")||!1}aa="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();aa=f.exports=aa?z:ca;aa.supported=z;aa.unsupported=ca},function(f){function z(){}function aa(f,
279
- h,e){this.fn=f;this.context=h;this.once=e||!1}function ca(){this._events=new z;this._eventsCount=0}var y=Object.prototype.hasOwnProperty,n="~";Object.create&&(z.prototype=Object.create(null),(new z).__proto__||(n=!1));ca.prototype.eventNames=function(){var f=[],h,e;if(0===this._eventsCount)return f;for(e in h=this._events)y.call(h,e)&&f.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(h)):f};ca.prototype.listeners=function(f,h){f=this._events[n?n+f:f];
280
- if(h)return!!f;if(!f)return[];if(f.fn)return[f.fn];h=0;for(var e=f.length,r=Array(e);h<e;h++)r[h]=f[h].fn;return r};ca.prototype.emit=function(f,h,e,r,x,y){var w=n?n+f:f;if(!this._events[w])return!1;w=this._events[w];var z=arguments.length,aa;if(w.fn){w.once&&this.removeListener(f,w.fn,void 0,!0);switch(z){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,h),!0;case 3:return w.fn.call(w.context,h,e),!0;case 4:return w.fn.call(w.context,h,e,r),!0;case 5:return w.fn.call(w.context,
281
- h,e,r,x),!0;case 6:return w.fn.call(w.context,h,e,r,x,y),!0}var ca=1;for(aa=Array(z-1);ca<z;ca++)aa[ca-1]=arguments[ca];w.fn.apply(w.context,aa)}else{var ba=w.length;for(ca=0;ca<ba;ca++)switch(w[ca].once&&this.removeListener(f,w[ca].fn,void 0,!0),z){case 1:w[ca].fn.call(w[ca].context);break;case 2:w[ca].fn.call(w[ca].context,h);break;case 3:w[ca].fn.call(w[ca].context,h,e);break;case 4:w[ca].fn.call(w[ca].context,h,e,r);break;default:if(!aa){var da=1;for(aa=Array(z-1);da<z;da++)aa[da-1]=arguments[da]}w[ca].fn.apply(w[ca].context,
282
- aa)}}return!0};ca.prototype.on=function(f,h,e){h=new aa(h,e||this);f=n?n+f:f;this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],h]:this._events[f].push(h):(this._events[f]=h,this._eventsCount++);return this};ca.prototype.once=function(f,h,e){h=new aa(h,e||this,!0);f=n?n+f:f;this._events[f]?this._events[f].fn?this._events[f]=[this._events[f],h]:this._events[f].push(h):(this._events[f]=h,this._eventsCount++);return this};ca.prototype.removeListener=function(f,h,e,r){f=n?n+f:f;if(!this._events[f])return this;
283
- if(!h)return 0===--this._eventsCount?this._events=new z:delete this._events[f],this;var w=this._events[f];if(w.fn)w.fn!==h||r&&!w.once||e&&w.context!==e||(0===--this._eventsCount?this._events=new z:delete this._events[f]);else{for(var y=0,aa=[],ca=w.length;y<ca;y++)(w[y].fn!==h||r&&!w[y].once||e&&w[y].context!==e)&&aa.push(w[y]);aa.length?this._events[f]=1===aa.length?aa[0]:aa:0===--this._eventsCount?this._events=new z:delete this._events[f]}return this};ca.prototype.removeAllListeners=function(f){f?
284
- (f=n?n+f:f,this._events[f]&&(0===--this._eventsCount?this._events=new z:delete this._events[f])):(this._events=new z,this._eventsCount=0);return this};ca.prototype.off=ca.prototype.removeListener;ca.prototype.addListener=ca.prototype.on;ca.prototype.setMaxListeners=function(){return this};ca.prefixed=n;ca.EventEmitter=ca;"undefined"!==typeof f&&(f.exports=ca)},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,
285
- configurable:!0,writable:!0}):e[f]=h;return e}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,
286
- f):e.__proto__=f)}function h(e,f,n){return"object"===("undefined"===typeof f?"undefined":ta(f))?Object.keys(f).reduce(function(e,n){return h(e,n,f[n])},e):e.reduce(function(e,h){return h.attributes&&h.attributes[f]?e.push(h):e.insert(h.insert,(0,Ca.default)({},y({},f,n),h.attributes))},new qa.default)}function e(e){return e.nodeType!==Node.ELEMENT_NODE?{}:e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function r(e,f){for(var h="",n=e.ops.length-1;0<=n&&h.length<f.length;--n){var r=
287
- e.ops[n];if("string"!==typeof r.insert)break;h=r.insert+h}return h.slice(-1*f.length)===f}function x(f){if(0===f.childNodes.length)return!1;f=e(f);return-1<["block","list-item"].indexOf(f.display)}function da(e,f,h){return e.nodeType===e.TEXT_NODE?h.reduce(function(f,h){return h(e,f)},new qa.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],function(n,r){var w=da(r,f,h);r.nodeType===e.ELEMENT_NODE&&(w=f.reduce(function(e,f){return f(r,e)},w),w=(r["__ql-matcher"]||[]).reduce(function(e,
288
- f){return f(r,e)},w));return n.concat(w)},new qa.default):new qa.default}function ea(e,f,n){return h(n,e,!0)}function fa(e,f){var n=ma.default.Attributor.Attribute.keys(e),r=ma.default.Attributor.Class.keys(e),w=ma.default.Attributor.Style.keys(e),x={};n.concat(r).concat(w).forEach(function(f){var h=ma.default.query(f,ma.default.Scope.ATTRIBUTE);if(null!=h&&(x[h.attrName]=h.value(e),x[h.attrName]))return;h=Ia[f];null==h||h.attrName!==f&&h.keyName!==f||(x[h.attrName]=h.value(e)||void 0);h=ua[f];null==
289
- h||h.attrName!==f&&h.keyName!==f||(h=ua[f],x[h.attrName]=h.value(e)||void 0)});0<Object.keys(x).length&&(f=h(f,x));return f}function ha(e,f){var n=ma.default.query(e);if(null==n)return f;if(n.prototype instanceof ma.default.Embed){var r={},w=n.value(e);null!=w&&(r[n.blotName]=w,f=(new qa.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(f=h(f,n.blotName,n.formats(e)));return f}function wa(e,f){r(f,"\n")||(x(e)||0<f.length()&&e.nextSibling&&x(e.nextSibling))&&f.insert("\n");return f}
290
- function la(f,h){if(x(f)&&null!=f.nextElementSibling&&!r(h,"\n\n")){var n=f.offsetHeight+parseFloat(e(f).marginTop)+parseFloat(e(f).marginBottom);f.nextElementSibling.offsetTop>f.offsetTop+1.5*n&&h.insert("\n")}return h}function ja(f,h){var n=f.data;if("O:P"===f.parentNode.tagName)return h.insert(n.trim());if(0===n.trim().length&&f.parentNode.classList.contains("ql-clipboard"))return h;if(!e(f.parentNode).whiteSpace.startsWith("pre")){var r=function(e,f){f=f.replace(/[^\u00a0]/g,"");return 1>f.length&&
291
- e?" ":f};n=n.replace(/\r\n/g," ").replace(/\n/g," ");n=n.replace(/\s\s+/g,r.bind(r,!0));if(null==f.previousSibling&&x(f.parentNode)||null!=f.previousSibling&&x(f.previousSibling))n=n.replace(/^\s+/,r.bind(r,!1));if(null==f.nextSibling&&x(f.parentNode)||null!=f.nextSibling&&x(f.nextSibling))n=n.replace(/\s+$/,r.bind(r,!1))}return h.insert(n)}Object.defineProperty(aa,"__esModule",{value:!0});aa.matchText=aa.matchSpacing=aa.matchNewline=aa.matchBlot=aa.matchAttributor=aa.default=void 0;var ta="function"===
292
- typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!f||h.length!==f);n=!0);}catch(Sa){r=!0,w=Sa}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
293
- }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),oa=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();f=ba(3);var Ca=z(f);f=ba(2);var qa=z(f);f=ba(0);var ma=z(f);f=ba(5);var za=z(f);f=ba(10);f=z(f);var ya=ba(9);ya=z(ya);var Ba=ba(36),va=ba(37),sa=ba(13),Aa=z(sa);sa=
294
- ba(26);var Fa=ba(38),Ea=ba(39);ba=ba(40);var Da=(0,f.default)("quill:clipboard"),Ka=[[Node.TEXT_NODE,ja],[Node.TEXT_NODE,wa],["br",function(e,f){r(f,"\n")||f.insert("\n");return f}],[Node.ELEMENT_NODE,wa],[Node.ELEMENT_NODE,ha],[Node.ELEMENT_NODE,la],[Node.ELEMENT_NODE,fa],[Node.ELEMENT_NODE,function(f,n){var r={},w=f.style||{};w.fontStyle&&"italic"===e(f).fontStyle&&(r.italic=!0);w.fontWeight&&(e(f).fontWeight.startsWith("bold")||700<=parseInt(e(f).fontWeight))&&(r.bold=!0);0<Object.keys(r).length&&
295
- (n=h(n,r));0<parseFloat(w.textIndent||0)&&(n=(new qa.default).insert("\t").concat(n));return n}],["li",function(e,f){var h=ma.default.query(e);if(null==h||"list-item"!==h.blotName||!r(f,"\n"))return f;h=-1;for(e=e.parentNode;!e.classList.contains("ql-clipboard");)"list"===(ma.default.query(e)||{}).blotName&&(h+=1),e=e.parentNode;return 0>=h?f:f.compose((new qa.default).retain(f.length()-1).retain(1,{indent:h}))}],["b",ea.bind(ea,"bold")],["i",ea.bind(ea,"italic")],["style",function(){return new qa.default}]],
296
- Ia=[Ba.AlignAttribute,Fa.DirectionAttribute].reduce(function(e,f){e[f.keyName]=f;return e},{}),ua=[Ba.AlignStyle,va.BackgroundStyle,sa.ColorStyle,Fa.DirectionStyle,Ea.FontStyle,ba.SizeStyle].reduce(function(e,f){e[f.keyName]=f;return e},{});ba=function(e){function f(e,h){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var r=n(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));r.quill.root.addEventListener("paste",r.onPaste.bind(r));r.container=r.quill.addContainer("ql-clipboard");
297
- r.container.setAttribute("contenteditable",!0);r.container.setAttribute("tabindex",-1);r.matchers=[];Ka.concat(r.options.matchers).forEach(function(e){e=pa(e,2);var f=e[1];(h.matchVisual||f!==la)&&r.addMatcher(e[0],f)});return r}w(f,e);oa(f,[{key:"addMatcher",value:function(e,f){this.matchers.push([e,f])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/>\r?\n +</g,"><"),this.convert();e=this.quill.getFormat(this.quill.selection.savedRange.index);
298
- if(e[Aa.default.blotName]){var f=this.container.innerText;this.container.innerHTML="";return(new qa.default).insert(f,y({},Aa.default.blotName,e[Aa.default.blotName]))}e=this.prepareMatching();e=pa(e,2);e=da(this.container,e[0],e[1]);r(e,"\n")&&null==e.ops[e.ops.length-1].attributes&&(e=e.compose((new qa.default).retain(e.length()-1).delete(1)));Da.log("convert",this.container.innerHTML,e);this.container.innerHTML="";return e}},{key:"dangerouslyPasteHTML",value:function(e,f){var h=2<arguments.length&&
299
- void 0!==arguments[2]?arguments[2]:za.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),f),this.quill.setSelection(0,za.default.sources.SILENT);else{var n=this.convert(f);this.quill.updateContents((new qa.default).retain(e).concat(n),h);this.quill.setSelection(e+n.length(),za.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var f=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var h=this.quill.getSelection(),n=(new qa.default).retain(h.index),r=this.quill.scrollingContainer.scrollTop;
300
- this.container.focus();this.quill.selection.update(za.default.sources.SILENT);setTimeout(function(){n=n.concat(f.convert()).delete(h.length);f.quill.updateContents(n,za.default.sources.USER);f.quill.setSelection(n.length()-h.length,za.default.sources.SILENT);f.quill.scrollingContainer.scrollTop=r;f.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,f=[],h=[];this.matchers.forEach(function(n){n=pa(n,2);var r=n[0],w=n[1];switch(r){case Node.TEXT_NODE:h.push(w);break;case Node.ELEMENT_NODE:f.push(w);
301
- break;default:[].forEach.call(e.container.querySelectorAll(r),function(e){e["__ql-matcher"]=e["__ql-matcher"]||[];e["__ql-matcher"].push(w)})}});return[f,h]}}]);return f}(ya.default);ba.DEFAULTS={matchers:[],matchVisual:!0};aa.default=ba;aa.matchAttributor=fa;aa.matchBlot=ha;aa.matchNewline=wa;aa.matchSpacing=la;aa.matchText=ja},function(f,aa,ba){function z(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=
302
- Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(aa,"__esModule",{value:!0});var y=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(h,e,n){e&&f(h.prototype,e);n&&f(h,n);return h}}(),n=function x(f,e,n){null===f&&(f=Function.prototype);
303
- var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return x(f,e,n)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(n)}};f=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==
304
- typeof f?this:f}z(e,f);y(e,[{key:"optimize",value:function(f){n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,f);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return n(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(ba(6)).default);f.blotName="bold";f.tagName=["STRONG",
305
- "B"];aa.default=f},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f,h){f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
306
- typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}function h(e,f,h){var n=document.createElement("button");n.setAttribute("type","button");n.classList.add("ql-"+f);null!=h&&(n.value=h);e.appendChild(n)}function e(e,f){Array.isArray(f[0])||(f=[f]);f.forEach(function(f){var n=document.createElement("span");n.classList.add("ql-formats");f.forEach(function(e){if("string"===
307
- typeof e)h(n,e);else{var f=Object.keys(e)[0];e=e[f];Array.isArray(e)?r(n,f,e):h(n,f,e)}});e.appendChild(n)})}function r(e,f,h){var n=document.createElement("select");n.classList.add("ql-"+f);h.forEach(function(e){var f=document.createElement("option");!1!==e?f.setAttribute("value",e):f.setAttribute("selected","selected");n.appendChild(f)});e.appendChild(n)}Object.defineProperty(aa,"__esModule",{value:!0});aa.addControls=aa.default=void 0;var x=function(){return function(e,f){if(Array.isArray(e))return e;
308
- if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!f||h.length!==f);n=!0);}catch(za){r=!0,w=za}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;}}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),da=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
309
- n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();f=ba(2);var ea=z(f);f=ba(0);var fa=z(f);f=ba(5);var ha=z(f);f=ba(10);f=z(f);ba=ba(9);ba=z(ba);var wa=(0,f.default)("quill:toolbar");ba=function(f){function h(f,r){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var w=n(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,f,r));Array.isArray(w.options.container)?(r=document.createElement("div"),e(r,w.options.container),f.container.parentNode.insertBefore(r,
310
- f.container),w.container=r):w.container="string"===typeof w.options.container?document.querySelector(w.options.container):w.options.container;if(!(w.container instanceof HTMLElement)){var y;return y=wa.error("Container required for toolbar",w.options),n(w,y)}w.container.classList.add("ql-toolbar");w.controls=[];w.handlers={};Object.keys(w.options.handlers).forEach(function(e){w.addHandler(e,w.options.handlers[e])});[].forEach.call(w.container.querySelectorAll("button, select"),function(e){w.attach(e)});
311
- w.quill.on(ha.default.events.EDITOR_CHANGE,function(e,f){e===ha.default.events.SELECTION_CHANGE&&w.update(f)});w.quill.on(ha.default.events.SCROLL_OPTIMIZE,function(){var e=w.quill.selection.getRange();e=x(e,1)[0];w.update(e)});return w}w(h,f);da(h,[{key:"addHandler",value:function(e,f){this.handlers[e]=f}},{key:"attach",value:function(e){var f=this,h=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(h){h=h.slice(3);"BUTTON"===e.tagName&&e.setAttribute("type","button");if(null==
312
- this.handlers[h]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[h]){wa.warn("ignoring attaching to disabled format",h,e);return}if(null==fa.default.query(h)){wa.warn("ignoring attaching to nonexistent format",h,e);return}}e.addEventListener("SELECT"===e.tagName?"change":"click",function(n){if("SELECT"===e.tagName){if(0>e.selectedIndex)return;var r=e.options[e.selectedIndex];r=r.hasAttribute("selected")?!1:r.value||!1}else r=e.classList.contains("ql-active")?!1:e.value||!e.hasAttribute("value"),
313
- n.preventDefault();f.quill.focus();n=f.quill.selection.getRange();n=x(n,1)[0];if(null!=f.handlers[h])f.handlers[h].call(f,r);else if(fa.default.query(h).prototype instanceof fa.default.Embed){r=prompt("Enter "+h);if(!r)return;f.quill.updateContents((new ea.default).retain(n.index).delete(n.length).insert(y({},h,r)),ha.default.sources.USER)}else f.quill.format(h,r,ha.default.sources.USER);f.update(n)});this.controls.push([h,e])}}},{key:"update",value:function(e){var f=null==e?{}:this.quill.getFormat(e);
314
- this.controls.forEach(function(h){h=x(h,2);var n=h[0];h=h[1];if("SELECT"===h.tagName){var r=void 0;null==e?r=null:null==f[n]?r=h.querySelector("option[selected]"):Array.isArray(f[n])||(n=f[n],"string"===typeof n&&(n=n.replace(/"/g,'\\"')),r=h.querySelector('option[value="'+n+'"]'));null==r?(h.value="",h.selectedIndex=-1):r.selected=!0}else null==e?h.classList.remove("ql-active"):h.hasAttribute("value")?(n=f[n]===h.getAttribute("value")||null!=f[n]&&f[n].toString()===h.getAttribute("value")||null==
315
- f[n]&&!h.getAttribute("value"),h.classList.toggle("ql-active",n)):h.classList.toggle("ql-active",null!=f[n])})}}]);return h}(ba.default);ba.DEFAULTS={};ba.DEFAULTS={container:null,handlers:{clean:function(){var e=this,f=this.quill.getSelection();null!=f&&(0==f.length?(f=this.quill.getFormat(),Object.keys(f).forEach(function(f){null!=fa.default.query(f,fa.default.Scope.INLINE)&&e.quill.format(f,!1)})):this.quill.removeFormat(f,ha.default.sources.USER))},direction:function(e){var f=this.quill.getFormat().align;
316
- "rtl"===e&&null==f?this.quill.format("align","right",ha.default.sources.USER):e||"right"!==f||this.quill.format("align",!1,ha.default.sources.USER);this.quill.format("direction",e,ha.default.sources.USER)},indent:function(e){var f=this.quill.getFormat(this.quill.getSelection()),h=parseInt(f.indent||0);if("+1"===e||"-1"===e)e="+1"===e?1:-1,"rtl"===f.direction&&(e*=-1),this.quill.format("indent",h+e,ha.default.sources.USER)},link:function(e){!0===e&&(e=prompt("Enter link URL:"));this.quill.format("link",
317
- e,ha.default.sources.USER)},list:function(e){var f=this.quill.getFormat(this.quill.getSelection());"check"===e?"checked"===f.list||"unchecked"===f.list?this.quill.format("list",!1,ha.default.sources.USER):this.quill.format("list","unchecked",ha.default.sources.USER):this.quill.format("list",e,ha.default.sources.USER)}}};aa.default=ba;aa.addControls=e},function(f){f.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>'},
318
- function(f,aa,ba){function z(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,
319
- "__esModule",{value:!0});var n=function(){function f(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),w=function ia(e,f,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,f);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ia(e,f,n)}else{if("value"in r)return r.value;f=r.get;return void 0===
320
- f?void 0:f.call(n)}};f=function(e){function f(e,n){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");e=z(this,(f.__proto__||Object.getPrototypeOf(f)).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(e){e.classList.add("ql-primary")});return e}y(f,e);n(f,[{key:"buildItem",value:function(e){var n=w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),
321
- "buildItem",this).call(this,e);n.style.backgroundColor=e.getAttribute("value")||"";return n}},{key:"selectItem",value:function(e,n){w(f.prototype.__proto__||Object.getPrototypeOf(f.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 f}(function(e){return e&&e.__esModule?e:{default:e}}(ba(28)).default);aa.default=f},function(f,aa,ba){function z(f,e){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
322
- return!e||"object"!==typeof e&&"function"!==typeof e?f:e}function y(f,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);f.prototype=Object.create(e&&e.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(f,e):f.__proto__=e)}Object.defineProperty(aa,"__esModule",{value:!0});var n=function(){function f(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=
323
- n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(e,h,n){h&&f(e.prototype,h);n&&f(e,n);return e}}(),w=function ia(e,f,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,f);if(void 0===r){if(e=Object.getPrototypeOf(e),null!==e)return ia(e,f,n)}else{if("value"in r)return r.value;f=r.get;return void 0===f?void 0:f.call(n)}};f=function(e){function f(e,n){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
324
- e=z(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e));e.container.classList.add("ql-icon-picker");[].forEach.call(e.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=n[e.getAttribute("data-value")||""]});e.defaultItem=e.container.querySelector(".ql-selected");e.selectItem(e.defaultItem);return e}y(f,e);n(f,[{key:"selectItem",value:function(e,n){w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"selectItem",this).call(this,e,n);e=e||this.defaultItem;this.label.innerHTML=
325
- e.innerHTML}}]);return f}(function(e){return e&&e.__esModule?e:{default:e}}(ba(28)).default);aa.default=f},function(f,aa){Object.defineProperty(aa,"__esModule",{value:!0});var z=function(){function f(f,n){for(var w=0;w<n.length;w++){var h=n[w];h.enumerable=h.enumerable||!1;h.configurable=!0;"value"in h&&(h.writable=!0);Object.defineProperty(f,h.key,h)}}return function(y,n,w){n&&f(y.prototype,n);w&&f(y,w);return y}}();f=function(){function f(y,n){var w=this;if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");
326
- this.quill=y;this.boundsContainer=n||document.body;this.root=y.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){w.root.style.marginTop=-1*w.quill.root.scrollTop+"px"});this.hide()}z(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var n=f.left+f.width/2-this.root.offsetWidth/2,w=f.bottom+this.quill.root.scrollTop;this.root.style.left=
327
- n+"px";this.root.style.top=w+"px";this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),e=this.root.getBoundingClientRect(),r=0;e.right>h.right&&(r=h.right-e.right,this.root.style.left=n+r+"px");e.left<h.left&&(r=h.left-e.left,this.root.style.left=n+r+"px");e.bottom>h.bottom&&(this.root.style.top=w-(f.bottom-f.top+(e.bottom-e.top))+"px",this.root.classList.add("ql-flip"));return r}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
328
- return f}();aa.default=f},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=
329
- Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});var h=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var h=[],n=!0,r=!1,w=void 0;try{for(var x=e[Symbol.iterator](),y;!(n=(y=x.next()).done)&&(h.push(y.value),!f||h.length!==f);n=!0);}catch(va){r=!0,w=va}finally{try{if(!n&&x["return"])x["return"]()}finally{if(r)throw w;
330
- }}return h}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),e=function ma(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return ma(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}},r=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
331
- n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();f=ba(3);f=z(f);var x=ba(8),da=z(x);x=ba(43);var ea=z(x),fa=ba(27),ha=z(fa),wa=ba(15);ba=ba(41);var la=z(ba),ja=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ba=function(e){function f(e,h){y(this,f);null!=h.modules.toolbar&&null==h.modules.toolbar.container&&(h.modules.toolbar.container=ja);e=n(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));e.quill.container.classList.add("ql-snow");
332
- return e}w(f,e);r(f,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow");this.buildButtons([].slice.call(e.container.querySelectorAll("button")),la.default);this.buildPickers([].slice.call(e.container.querySelectorAll("select")),la.default);this.tooltip=new ta(this.quill,this.options.bounds);e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(f,h){e.handlers.link.call(e,!h.format.link)})}}]);return f}(ea.default);ba.DEFAULTS=
333
- (0,f.default)(!0,{},ea.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?(e=this.quill.getSelection(),null!=e&&0!=e.length&&(e=this.quill.getText(e),/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e="mailto:"+e),this.quill.theme.tooltip.edit("link",e))):this.quill.format("link",!1)}}}}});var ta=function(f){function x(e,f){y(this,x);e=n(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,e,f));e.preview=e.root.querySelector("a.ql-preview");return e}w(x,f);r(x,[{key:"listen",
334
- value:function(){var f=this;e(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(e){f.root.classList.contains("ql-editing")?f.save():f.edit("link",f.preview.textContent);e.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=f.linkRange){var h=f.linkRange;f.restoreFocus();f.quill.formatText(h,"link",!1,da.default.sources.USER);delete f.linkRange}e.preventDefault();
335
- f.hide()});this.quill.on(da.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===da.default.sources.USER){if(n=f.quill.scroll.descendant(ha.default,e.index),r=h(n,2),n=r[0],r=r[1],null!=n){f.linkRange=new wa.Range(e.index-r,n.length());e=ha.default.formats(n.domNode);f.preview.textContent=e;f.preview.setAttribute("href",e);f.show();f.position(f.quill.getBounds(f.linkRange));return}}else delete f.linkRange;f.hide()}})}},{key:"show",value:function(){e(x.prototype.__proto__||
336
- Object.getPrototypeOf(x.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return x}(x.BaseTooltip);ta.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>';aa.default=ba},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(aa,"__esModule",{value:!0});
337
- f=ba(29);f=z(f);var y=ba(36),n=ba(38),w=ba(64),h=ba(65);h=z(h);var e=ba(66);e=z(e);var r=ba(67),x=z(r),da=ba(37),ea=ba(26),fa=ba(39),ha=ba(40),wa=ba(56);wa=z(wa);var la=ba(68);la=z(la);var ja=ba(27);ja=z(ja);var ta=ba(69);ta=z(ta);var pa=ba(70);pa=z(pa);var oa=ba(71);oa=z(oa);var Ca=ba(72);Ca=z(Ca);var qa=ba(73);qa=z(qa);var ma=ba(13),za=z(ma),ya=ba(74);ya=z(ya);var Ba=ba(75);Ba=z(Ba);var va=ba(57);va=z(va);var sa=ba(41);sa=z(sa);var Aa=ba(28);Aa=z(Aa);var Fa=ba(59);Fa=z(Fa);var Ea=ba(60);Ea=z(Ea);
338
- var Da=ba(61);Da=z(Da);var Ka=ba(108);Ka=z(Ka);ba=ba(62);ba=z(ba);f.default.register({"attributors/attribute/direction":n.DirectionAttribute,"attributors/class/align":y.AlignClass,"attributors/class/background":da.BackgroundClass,"attributors/class/color":ea.ColorClass,"attributors/class/direction":n.DirectionClass,"attributors/class/font":fa.FontClass,"attributors/class/size":ha.SizeClass,"attributors/style/align":y.AlignStyle,"attributors/style/background":da.BackgroundStyle,"attributors/style/color":ea.ColorStyle,
339
- "attributors/style/direction":n.DirectionStyle,"attributors/style/font":fa.FontStyle,"attributors/style/size":ha.SizeStyle},!0);f.default.register({"formats/align":y.AlignClass,"formats/direction":n.DirectionClass,"formats/indent":w.IndentClass,"formats/background":da.BackgroundStyle,"formats/color":ea.ColorStyle,"formats/font":fa.FontClass,"formats/size":ha.SizeClass,"formats/blockquote":h.default,"formats/code-block":za.default,"formats/header":e.default,"formats/list":x.default,"formats/bold":wa.default,
340
- "formats/code":ma.Code,"formats/italic":la.default,"formats/link":ja.default,"formats/script":ta.default,"formats/strike":pa.default,"formats/underline":oa.default,"formats/image":Ca.default,"formats/video":qa.default,"formats/list/item":r.ListItem,"modules/formula":ya.default,"modules/syntax":Ba.default,"modules/toolbar":va.default,"themes/bubble":Ka.default,"themes/snow":ba.default,"ui/icons":sa.default,"ui/picker":Aa.default,"ui/icon-picker":Ea.default,"ui/color-picker":Fa.default,"ui/tooltip":Da.default},
341
- !0);aa.default=f.default},function(f,aa,ba){function z(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(aa,"__esModule",{value:!0});aa.IndentClass=void 0;var y=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];
342
- n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(h,e,n){e&&f(h.prototype,e);n&&f(h,n);return h}}(),n=function x(f,e,n){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return x(f,e,n)}else{if("value"in h)return h.value;e=h.get;return void 0===e?void 0:e.call(n)}};f=function(f){return f&&f.__esModule?f:{default:f}}(ba(0));f=new (function(f){function e(){if(!(this instanceof
343
- e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).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?this:f}z(e,f);y(e,[{key:"add",value:function(f,h){if("+1"===h||"-1"===h){var r=this.value(f)||0;h="+1"===h?r+1:r-1}return 0===h?(this.remove(f),!0):n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,
344
- f,h)}},{key:"canAdd",value:function(f,h){return n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,f,h)||n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,f,parseInt(h))}},{key:"value",value:function(f){return parseInt(n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,f))||void 0}}]);return e}(f.default.Attributor.Class))("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,
345
- 8]});aa.IndentClass=f},function(f,aa,ba){function z(f,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});f=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");
346
- var f=(n.__proto__||Object.getPrototypeOf(n)).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?this:f}z(n,f);return n}(function(f){return f&&f.__esModule?f:{default:f}}(ba(4)).default);f.blotName="blockquote";f.tagName="blockquote";aa.default=f},function(f,aa,ba){function z(f,w){if("function"!==typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+
347
- typeof w);f.prototype=Object.create(w&&w.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(f,w):f.__proto__=w)}Object.defineProperty(aa,"__esModule",{value:!0});var y=function(){function f(f,h){for(var e=0;e<h.length;e++){var n=h[e];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(n,h,e){h&&f(n.prototype,h);e&&f(n,e);return n}}();f=function(f){function n(){if(!(this instanceof
348
- n))throw new TypeError("Cannot call a class as a function");var f=(n.__proto__||Object.getPrototypeOf(n)).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?this:f}z(n,f);y(n,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]);return n}(function(f){return f&&f.__esModule?f:{default:f}}(ba(4)).default);f.blotName="header";f.tagName="H1 H2 H3 H4 H5 H6".split(" ");
349
- aa.default=f},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&
350
- f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.ListItem=void 0;var h=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),e=function la(e,f,h){null===
351
- e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return la(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};f=ba(0);var r=z(f);f=ba(4);f=z(f);ba=ba(25);ba=z(ba);var x=function(f){function x(){y(this,x);return n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}w(x,f);h(x,[{key:"format",value:function(f,h){f!==da.blotName||h?e(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),
352
- "format",this).call(this,f,h):this.replaceWith(r.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():e(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(f,h){this.parent.isolate(this.offset(this.parent),this.length());if(f===this.parent.statics.blotName)return this.parent.replaceWith(f,h),this;this.parent.unwrap();return e(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),
353
- "replaceWith",this).call(this,f,h)}}],[{key:"formats",value:function(f){return f.tagName===this.tagName?void 0:e(x.__proto__||Object.getPrototypeOf(x),"formats",this).call(this,f)}}]);return x}(f.default);x.blotName="list-item";x.tagName="LI";var da=function(f){function z(e){function f(f){if(f.target.parentNode===e){var n=h.statics.formats(e);f=r.default.find(f.target);"checked"===n?f.format("list","unchecked"):"unchecked"===n&&f.format("list","checked")}}y(this,z);var h=n(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,
354
- e));e.addEventListener("touchstart",f);e.addEventListener("mousedown",f);return h}w(z,f);h(z,null,[{key:"create",value:function(f){var h="ordered"===f?"OL":"UL";h=e(z.__proto__||Object.getPrototypeOf(z),"create",this).call(this,h);"checked"!==f&&"unchecked"!==f||h.setAttribute("data-checked","checked"===f);return h}},{key:"formats",value:function(e){if("OL"===e.tagName)return"ordered";if("UL"===e.tagName)return e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":
355
- "bullet"}}]);h(z,[{key:"format",value:function(e,f){0<this.children.length&&this.children.tail.format(e,f)}},{key:"formats",value:function(){var e={},f=this.statics.blotName,h=this.statics.formats(this.domNode);f in e?Object.defineProperty(e,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):e[f]=h;return e}},{key:"insertBefore",value:function(f,h){f instanceof x?e(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"insertBefore",this).call(this,f,h):(h=null==h?this.length():h.offset(this),
356
- h=this.split(h),h.parent.insertBefore(f,h))}},{key:"optimize",value:function(f){e(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"optimize",this).call(this,f);f=this.next;null!=f&&f.prev===this&&f.statics.blotName===this.statics.blotName&&f.domNode.tagName===this.domNode.tagName&&f.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(f.moveChildren(this),f.remove())}},{key:"replace",value:function(f){if(f.statics.blotName!==this.statics.blotName){var h=r.default.create(this.statics.defaultChild);
357
- f.moveChildren(h);this.appendChild(h)}e(z.prototype.__proto__||Object.getPrototypeOf(z.prototype),"replace",this).call(this,f)}}]);return z}(ba.default);da.blotName="list";da.scope=r.default.Scope.BLOCK_BLOT;da.tagName=["OL","UL"];da.defaultChild="list-item";da.allowedChildren=[x];aa.ListItem=x;aa.default=da},function(f,aa,ba){function z(f,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,
358
- {constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});f=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var f=(n.__proto__||Object.getPrototypeOf(n)).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}z(n,f);return n}(function(f){return f&&f.__esModule?f:{default:f}}(ba(56)).default);f.blotName="italic";f.tagName=["EM","I"];aa.default=f},function(f,aa,ba){function z(f,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(f,h):f.__proto__=h)}Object.defineProperty(aa,
360
- "__esModule",{value:!0});var y=function(){function f(f,e){for(var h=0;h<e.length;h++){var n=e[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(f,n.key,n)}}return function(h,e,n){e&&f(h.prototype,e);n&&f(h,n);return h}}(),n=function x(f,e,n){null===f&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,e);if(void 0===h){if(f=Object.getPrototypeOf(f),null!==f)return x(f,e,n)}else{if("value"in h)return h.value;e=h.get;return void 0===e?
361
- void 0:e.call(n)}};f=function(f){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).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?this:f}z(e,f);y(e,null,[{key:"create",value:function(f){return"super"===f?document.createElement("sup"):"sub"===f?document.createElement("sub"):n(e.__proto__||
362
- Object.getPrototypeOf(e),"create",this).call(this,f)}},{key:"formats",value:function(e){if("SUB"===e.tagName)return"sub";if("SUP"===e.tagName)return"super"}}]);return e}(function(f){return f&&f.__esModule?f:{default:f}}(ba(6)).default);f.blotName="script";f.tagName=["SUB","SUP"];aa.default=f},function(f,aa,ba){function z(f,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,
363
- enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});f=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var f=(n.__proto__||Object.getPrototypeOf(n)).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?this:f}z(n,f);
364
- return n}(function(f){return f&&f.__esModule?f:{default:f}}(ba(6)).default);f.blotName="strike";f.tagName="S";aa.default=f},function(f,aa,ba){function z(f,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}Object.defineProperty(aa,"__esModule",{value:!0});
365
- f=function(f){function n(){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var f=(n.__proto__||Object.getPrototypeOf(n)).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?this:f}z(n,f);return n}(function(f){return f&&f.__esModule?f:{default:f}}(ba(6)).default);f.blotName="underline";f.tagName="U";aa.default=f},function(f,aa,ba){function z(e,f){if("function"!==
366
- typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});var y=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,
367
- n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),n=function ea(f,h,n){null===f&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,h);if(void 0===r){if(f=Object.getPrototypeOf(f),null!==f)return ea(f,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}};f=function(f){return f&&f.__esModule?f:{default:f}}(ba(0));var w=ba(27),h=["alt","height","width"];ba=function(f){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");
368
- var f=(r.__proto__||Object.getPrototypeOf(r)).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?this:f}z(r,f);y(r,[{key:"format",value:function(f,w){-1<h.indexOf(f)?w?this.domNode.setAttribute(f,w):this.domNode.removeAttribute(f):n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,w)}}],[{key:"create",value:function(f){var h=n(r.__proto__||Object.getPrototypeOf(r),
369
- "create",this).call(this,f);"string"===typeof f&&h.setAttribute("src",this.sanitize(f));return h}},{key:"formats",value:function(f){return h.reduce(function(h,n){f.hasAttribute(n)&&(h[n]=f.getAttribute(n));return h},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,w.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]);return r}(f.default.Embed);
370
- ba.blotName="image";ba.tagName="IMG";aa.default=ba},function(f,aa,ba){function z(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});var y=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=
371
- f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),n=function ea(f,h,n){null===f&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,h);if(void 0===r){if(f=Object.getPrototypeOf(f),null!==f)return ea(f,h,n)}else{if("value"in r)return r.value;h=r.get;return void 0===h?void 0:h.call(n)}};f=ba(4);var w=function(f){return f&&f.__esModule?f:{default:f}}(ba(27)),
372
- h=["height","width"];ba=function(f){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var f=(r.__proto__||Object.getPrototypeOf(r)).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?this:f}z(r,f);y(r,[{key:"format",value:function(f,w){-1<h.indexOf(f)?w?this.domNode.setAttribute(f,w):this.domNode.removeAttribute(f):n(r.prototype.__proto__||
373
- Object.getPrototypeOf(r.prototype),"format",this).call(this,f,w)}}],[{key:"create",value:function(f){var h=n(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);h.setAttribute("frameborder","0");h.setAttribute("allowfullscreen",!0);h.setAttribute("src",this.sanitize(f));return h}},{key:"formats",value:function(f){return h.reduce(function(h,n){f.hasAttribute(n)&&(h[n]=f.getAttribute(n));return h},{})}},{key:"sanitize",value:function(f){return w.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]);
374
- return r}(f.BlockEmbed);ba.blotName="video";ba.className="ql-video";ba.tagName="IFRAME";aa.default=ba},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+
375
- typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.FormulaBlot=void 0;var h=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,
376
- n);return f}}(),e=function la(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return la(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};f=ba(35);f=z(f);var r=ba(5),x=z(r);ba=ba(9);ba=z(ba);var da=function(f){function r(){y(this,r);return n(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}w(r,f);h(r,null,[{key:"create",value:function(f){var h=e(r.__proto__||
377
- Object.getPrototypeOf(r),"create",this).call(this,f);"string"===typeof f&&(window.katex.render(f,h,{throwOnError:!1,errorColor:"#f00"}),h.setAttribute("data-value",f));return h}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]);return r}(f.default);da.blotName="formula";da.className="ql-formula";da.tagName="SPAN";ba=function(e){function f(){y(this,f);var e=n(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
378
- return e}w(f,e);h(f,null,[{key:"register",value:function(){x.default.register(da,!0)}}]);return f}(ba.default);aa.FormulaBlot=da;aa.default=ba},function(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function w(e,f){if("function"!==
379
- typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.CodeToken=aa.CodeBlock=void 0;var h=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in
380
- n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}(),e=function ja(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return ja(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}};f=ba(0);f=z(f);var r=ba(5),x=z(r);r=ba(9);r=z(r);ba=ba(13);var da=function(f){function r(){y(this,r);return n(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,
381
- arguments))}w(r,f);h(r,[{key:"replaceWith",value:function(f){this.domNode.textContent=this.domNode.textContent;this.attach();e(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"replaceWith",this).call(this,f)}},{key:"highlight",value:function(e){var f=this.domNode.textContent;if(this.cachedText!==f){if(0<f.trim().length||null==this.cachedText)this.domNode.innerHTML=e(f),this.domNode.normalize(),this.attach();this.cachedText=f}}}]);return r}(z(ba).default);da.className="ql-syntax";var ea=
382
- new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE});ba=function(e){function f(e,h){y(this,f);var r=n(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,e,h));if("function"!==typeof r.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var w=null;r.quill.on(x.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(w);w=setTimeout(function(){r.highlight();w=null},r.options.interval)});r.highlight();return r}
383
- w(f,e);h(f,null,[{key:"register",value:function(){x.default.register(ea,!0);x.default.register(da,!0)}}]);h(f,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(x.default.sources.USER);var f=this.quill.getSelection();this.quill.scroll.descendants(da).forEach(function(f){f.highlight(e.options.highlight)});this.quill.update(x.default.sources.SILENT);null!=f&&this.quill.setSelection(f,x.default.sources.SILENT)}}}]);return f}(r.default);ba.DEFAULTS={highlight:function(){return null==
384
- window.hljs?null:function(e){return window.hljs.highlightAuto(e).value}}(),interval:1E3};aa.CodeBlock=da;aa.CodeToken=ea;aa.default=ba},function(f){f.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(f){f.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=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},
385
- function(f){f.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(f){f.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>'},function(f){f.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>'},
386
- function(f){f.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(f){f.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>'},
387
- function(f){f.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(f){f.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>'},
388
- function(f){f.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(f){f.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>'},
389
- function(f){f.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(f){f.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>'},function(f){f.exports=
390
- '<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(f){f.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>'},
391
- function(f){f.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>'},
392
- function(f){f.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>'},
393
- function(f){f.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>'},
394
- function(f){f.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(f){f.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(f){f.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>'},
395
- function(f){f.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(f){f.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>'},
396
- function(f){f.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>'},
397
- function(f){f.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(f){f.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>'},
398
- function(f){f.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>'},
399
- function(f){f.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>'},
400
- function(f){f.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>'},
401
- function(f){f.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(f){f.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>'},
402
- function(f){f.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(f,aa,ba){function z(e){return e&&e.__esModule?e:{default:e}}function y(e,f){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function");}function n(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==
403
- typeof f?e:f}function w(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(aa,"__esModule",{value:!0});aa.default=aa.BubbleTooltip=void 0;var h=function oa(e,f,h){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,
404
- f);if(void 0===n){if(e=Object.getPrototypeOf(e),null!==e)return oa(e,f,h)}else{if("value"in n)return n.value;f=n.get;return void 0===f?void 0:f.call(h)}},e=function(){function e(e,f){for(var h=0;h<f.length;h++){var n=f[h];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(e,n.key,n)}}return function(f,h,n){h&&e(f.prototype,h);n&&e(f,n);return f}}();f=ba(3);f=z(f);var r=ba(8),x=z(r);r=ba(43);var da=z(r),ea=ba(15);ba=ba(41);var fa=z(ba),ha=[["bold","italic",
405
- "link"],[{header:1},{header:2},"blockquote"]];ba=function(f){function h(e,f){y(this,h);null!=f.modules.toolbar&&null==f.modules.toolbar.container&&(f.modules.toolbar.container=ha);e=n(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,e,f));e.quill.container.classList.add("ql-bubble");return e}w(h,f);e(h,[{key:"extendToolbar",value:function(e){this.tooltip=new wa(this.quill,this.options.bounds);this.tooltip.root.appendChild(e.container);this.buildButtons([].slice.call(e.container.querySelectorAll("button")),
406
- fa.default);this.buildPickers([].slice.call(e.container.querySelectorAll("select")),fa.default)}}]);return h}(da.default);ba.DEFAULTS=(0,f.default)(!0,{},da.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var wa=function(f){function r(e,f){y(this,r);var h=n(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,f));h.quill.on(x.default.events.EDITOR_CHANGE,function(e,f,n,r){e===x.default.events.SELECTION_CHANGE&&
407
- (null!=f&&0<f.length&&r===x.default.sources.USER?(h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px",e=h.quill.getLines(f.index,f.length),1===e.length?h.position(h.quill.getBounds(f)):(n=e[e.length-1],e=h.quill.getIndex(n),f=Math.min(n.length()-1,f.index+f.length-e),f=h.quill.getBounds(new ea.Range(e,f)),h.position(f))):document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide())});return h}w(r,f);e(r,[{key:"listen",value:function(){var e=this;h(r.prototype.__proto__||
408
- Object.getPrototypeOf(r.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")});this.quill.on(x.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var f=e.quill.getSelection();null!=f&&e.position(e.quill.getBounds(f))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){e=h(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),
409
- "position",this).call(this,e);var f=this.root.querySelector(".ql-tooltip-arrow");f.style.marginLeft="";if(0===e)return e;f.style.marginLeft=-1*e-f.offsetWidth/2+"px"}}]);return r}(r.BaseTooltip);wa.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>';aa.BubbleTooltip=wa;aa.default=ba},function(f,aa,ba){f.exports=ba(63)}])["default"]})}).call(this,
410
- f(380).Buffer)}}]);}).call(this || window)
2
+ (function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{340:function(Ba,ya,z){(function(qa){(function(ka,la){Ba.exports=la()})("undefined"!==typeof self?self:this,function(){return function(ka){function la(da){if(ha[da])return ha[da].exports;var y=ha[da]={i:da,l:!1,exports:{}};ka[da].call(y.exports,y,y.exports,la);y.l=!0;return y.exports}var ha={};la.m=ka;la.c=ha;la.d=function(da,y,r){la.o(da,y)||Object.defineProperty(da,y,{configurable:!1,enumerable:!0,get:r})};la.n=function(da){var y=
3
+ da&&da.__esModule?function(){return da["default"]}:function(){return da};la.d(y,"a",y);return y};la.o=function(da,y){return Object.prototype.hasOwnProperty.call(da,y)};la.p="";return la(la.s=109)}([function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});ka=ha(17);var da=ha(18),y=ha(19),r=ha(45),h=ha(46),a=ha(47),b=ha(48),e=ha(49),f=ha(12),n=ha(32),x=ha(33),ca=ha(31);ha=ha(1);la.default={Scope:ha.Scope,create:ha.create,find:ha.find,query:ha.query,register:ha.register,Container:ka.default,
4
+ Format:da.default,Leaf:y.default,Embed:b.default,Scroll:r.default,Block:a.default,Inline:h.default,Text:e.default,Attributor:{Attribute:f.default,Class:n.default,Style:x.default,Store:ca.default}}},function(ka,la){function ha(x,ca){void 0===ca&&(ca=!1);return null==x?null:null!=x[la.DATA_KEY]?x[la.DATA_KEY].blot:ca?ha(x.parentNode,ca):null}function da(x,ca){void 0===ca&&(ca=n.ANY);if("string"===typeof x)var w=f[x]||a[x];else if(x instanceof Text||x.nodeType===Node.TEXT_NODE)w=f.text;else if("number"===
5
+ typeof x)x&n.LEVEL&n.BLOCK?w=f.block:x&n.LEVEL&n.INLINE&&(w=f.inline);else if(x instanceof HTMLElement){var aa=(x.getAttribute("class")||"").split(/\s+/),ja;for(ja in aa)if(w=b[aa[ja]])break;w=w||e[x.tagName]}return null==w?null:ca&n.LEVEL&w.scope&&ca&n.TYPE&w.scope?w:null}function y(){for(var x=[],ca=0;ca<arguments.length;ca++)x[ca]=arguments[ca];if(1<x.length)return x.map(function(aa){return y(aa)});var w=x[0];if("string"!==typeof w.blotName&&"string"!==typeof w.attrName)throw new h("Invalid definition");
6
+ if("abstract"===w.blotName)throw new h("Cannot register abstract class");f[w.blotName||w.attrName]=w;"string"===typeof w.keyName?a[w.keyName]=w:(null!=w.className&&(b[w.className]=w),null!=w.tagName&&(Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(aa){return aa.toUpperCase()}):w.tagName=w.tagName.toUpperCase(),(Array.isArray(w.tagName)?w.tagName:[w.tagName]).forEach(function(aa){if(null==e[aa]||null==w.className)e[aa]=w})));return w}var r=this&&this.__extends||function(){var x=Object.setPrototypeOf||
7
+ {__proto__:[]}instanceof Array&&function(ca,w){ca.__proto__=w}||function(ca,w){for(var aa in w)w.hasOwnProperty(aa)&&(ca[aa]=w[aa])};return function(ca,w){function aa(){this.constructor=ca}x(ca,w);ca.prototype=null===w?Object.create(w):(aa.prototype=w.prototype,new aa)}}();Object.defineProperty(la,"__esModule",{value:!0});var h=function(x){function ca(w){w="[Parchment] "+w;var aa=x.call(this,w)||this;aa.message=w;aa.name=aa.constructor.name;return aa}r(ca,x);return ca}(Error);la.ParchmentError=h;
8
+ var a={},b={},e={},f={};la.DATA_KEY="__blot";var n;(function(x){x[x.TYPE=3]="TYPE";x[x.LEVEL=12]="LEVEL";x[x.ATTRIBUTE=13]="ATTRIBUTE";x[x.BLOT=14]="BLOT";x[x.INLINE=7]="INLINE";x[x.BLOCK=11]="BLOCK";x[x.BLOCK_BLOT=10]="BLOCK_BLOT";x[x.INLINE_BLOT=6]="INLINE_BLOT";x[x.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";x[x.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";x[x.ANY=15]="ANY"})(n=la.Scope||(la.Scope={}));la.create=function(x,ca){var w=da(x);if(null==w)throw new h("Unable to create "+x+" blot");x=x instanceof
9
+ Node||x.nodeType===Node.TEXT_NODE?x:w.create(ca);return new w(x,ca)};la.find=ha;la.query=da;la.register=y},function(ka,la,ha){function da(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var y=ha(51),r=ha(11),h=ha(3),a=ha(20),b=String.fromCharCode(0);da.prototype.insert=function(e,f){var n={};if(0===e.length)return this;n.insert=e;null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(n.attributes=f);return this.push(n)};da.prototype["delete"]=function(e){return 0>=
10
+ e?this:this.push({"delete":e})};da.prototype.retain=function(e,f){if(0>=e)return this;e={retain:e};null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(e.attributes=f);return this.push(e)};da.prototype.push=function(e){var f=this.ops.length,n=this.ops[f-1];e=h(!0,{},e);if("object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[f-1]={"delete":n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(--f,n=this.ops[f-1],"object"!==
11
+ typeof n))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[f-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[f-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this}}f===this.ops.length?this.ops.push(e):this.ops.splice(f,0,e);
12
+ return this};da.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();return this};da.prototype.filter=function(e){return this.ops.filter(e)};da.prototype.forEach=function(e){this.ops.forEach(e)};da.prototype.map=function(e){return this.ops.map(e)};da.prototype.partition=function(e){var f=[],n=[];this.forEach(function(x){(e(x)?f:n).push(x)});return[f,n]};da.prototype.reduce=function(e,f){return this.ops.reduce(e,f)};da.prototype.changeLength=function(){return this.reduce(function(e,
13
+ f){return f.insert?e+a.length(f):f.delete?e-f.delete:e},0)};da.prototype.length=function(){return this.reduce(function(e,f){return e+a.length(f)},0)};da.prototype.slice=function(e,f){e=e||0;"number"!==typeof f&&(f=Infinity);for(var n=[],x=a.iterator(this.ops),ca=0;ca<f&&x.hasNext();){if(ca<e)var w=x.next(e-ca);else w=x.next(f-ca),n.push(w);ca+=a.length(w)}return new da(n)};da.prototype.compose=function(e){var f=a.iterator(this.ops);e=a.iterator(e.ops);var n=[],x=e.peek();if(null!=x&&"number"===typeof x.retain&&
14
+ null==x.attributes){for(var ca=x.retain;"insert"===f.peekType()&&f.peekLength()<=ca;)ca-=f.peekLength(),n.push(f.next());0<x.retain-ca&&e.next(x.retain-ca)}for(n=new da(n);f.hasNext()||e.hasNext();)if("insert"===e.peekType())n.push(e.next());else if("delete"===f.peekType())n.push(f.next());else{ca=Math.min(f.peekLength(),e.peekLength());var w=f.next(ca),aa=e.next(ca);if("number"===typeof aa.retain){x={};"number"===typeof w.retain?x.retain=ca:x.insert=w.insert;if(ca=a.attributes.compose(w.attributes,
15
+ aa.attributes,"number"===typeof w.retain))x.attributes=ca;n.push(x);if(!e.hasNext()&&r(n.ops[n.ops.length-1],x))return f=new da(f.rest()),n.concat(f).chop()}else"number"===typeof aa["delete"]&&"number"===typeof w.retain&&n.push(aa)}return n.chop()};da.prototype.concat=function(e){var f=new da(this.ops.slice());0<e.ops.length&&(f.push(e.ops[0]),f.ops=f.ops.concat(e.ops.slice(1)));return f};da.prototype.diff=function(e,f){if(this.ops===e.ops)return new da;var n=[this,e].map(function(aa){return aa.map(function(ja){if(null!=
16
+ ja.insert)return"string"===typeof ja.insert?ja.insert:b;throw Error("diff() called "+(aa===e?"on":"with")+" non-document");}).join("")}),x=new da;f=y(n[0],n[1],f);var ca=a.iterator(this.ops),w=a.iterator(e.ops);f.forEach(function(aa){for(var ja=aa[1].length;0<ja;){var fa=0;switch(aa[0]){case y.INSERT:fa=Math.min(w.peekLength(),ja);x.push(w.next(fa));break;case y.DELETE:fa=Math.min(ja,ca.peekLength());ca.next(fa);x["delete"](fa);break;case y.EQUAL:fa=Math.min(ca.peekLength(),w.peekLength(),ja);var ea=
17
+ ca.next(fa),ba=w.next(fa);if(r(ea.insert,ba.insert))x.retain(fa,a.attributes.diff(ea.attributes,ba.attributes));else x.push(ba)["delete"](fa)}ja-=fa}});return x.chop()};da.prototype.eachLine=function(e,f){f=f||"\n";for(var n=a.iterator(this.ops),x=new da,ca=0;n.hasNext();){if("insert"!==n.peekType())return;var w=n.peek(),aa=a.length(w)-n.peekLength();w="string"===typeof w.insert?w.insert.indexOf(f,aa)-aa:-1;if(0>w)x.push(n.next());else if(0<w)x.push(n.next(w));else{if(!1===e(x,n.next(1).attributes||
18
+ {},ca))return;ca+=1;x=new da}}0<x.length()&&e(x,{},ca)};da.prototype.transform=function(e,f){f=!!f;if("number"===typeof e)return this.transformPosition(e,f);var n=a.iterator(this.ops);e=a.iterator(e.ops);for(var x=new da;n.hasNext()||e.hasNext();)if("insert"!==n.peekType()||!f&&"insert"===e.peekType())if("insert"===e.peekType())x.push(e.next());else{var ca=Math.min(n.peekLength(),e.peekLength()),w=n.next(ca),aa=e.next(ca);w["delete"]||(aa["delete"]?x.push(aa):x.retain(ca,a.attributes.transform(w.attributes,
19
+ aa.attributes,f)))}else x.retain(a.length(n.next()));return x.chop()};da.prototype.transformPosition=function(e,f){f=!!f;for(var n=a.iterator(this.ops),x=0;n.hasNext()&&x<=e;){var ca=n.peekLength(),w=n.peekType();n.next();"delete"===w?e-=Math.min(ca,e-x):("insert"===w&&(x<e||!f)&&(e+=ca),x+=ca)}return e};ka.exports=da},function(ka){function la(e,f){if("__proto__"===f){if(!r.call(e,f))return;if(b)return b(e,f).value}return e[f]}function ha(e,f){a&&"__proto__"===f.name?a(e,f.name,{enumerable:!0,configurable:!0,
20
+ value:f.newValue,writable:!0}):e[f.name]=f.newValue}function da(e){if(!e||"[object Object]"!==h.call(e))return!1;var f=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!f&&!n)return!1;for(var x in e);return"undefined"===typeof x||r.call(e,x)}function y(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===h.call(e)}var r=Object.prototype.hasOwnProperty,h=Object.prototype.toString,a=Object.defineProperty,
21
+ b=Object.getOwnPropertyDescriptor;ka.exports=function f(){var n,x,ca=arguments[0],w=1,aa=arguments.length,ja=!1;"boolean"===typeof ca&&(ja=ca,ca=arguments[1]||{},w=2);if(null==ca||"object"!==typeof ca&&"function"!==typeof ca)ca={};for(;w<aa;++w){var fa=arguments[w];if(null!=fa)for(n in fa){var ea=la(ca,n);var ba=la(fa,n);ca!==ba&&(ja&&ba&&(da(ba)||(x=y(ba)))?(x?(x=!1,ea=ea&&y(ea)?ea:[]):ea=ea&&da(ea)?ea:{},ha(ca,{name:n,newValue:f(ja,ea,ba)})):"undefined"!==typeof ba&&ha(ca,{name:n,newValue:ba}))}}return ca}},
22
+ function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!(ja instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?ja:fa}function h(ja,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=
23
+ Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}function a(ja){var fa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return fa;"function"===typeof ja.formats&&(fa=(0,f.default)(fa,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?fa:a(ja.parent,fa)}Object.defineProperty(la,"__esModule",{value:!0});
24
+ la.default=la.BlockEmbed=la.bubbleFormats=void 0;var b=function(){function ja(fa,ea){for(var ba=0;ba<ea.length;ba++){var ma=ea[ba];ma.enumerable=ma.enumerable||!1;ma.configurable=!0;"value"in ma&&(ma.writable=!0);Object.defineProperty(fa,ma.key,ma)}}return function(fa,ea,ba){ea&&ja(fa.prototype,ea);ba&&ja(fa,ba);return fa}}(),e=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,
25
+ ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}};ka=ha(3);var f=da(ka);ka=ha(2);var n=da(ka);ka=ha(0);var x=da(ka);ka=ha(16);var ca=da(ka);ka=ha(6);ka=da(ka);ha=ha(7);ha=da(ha);var w=function(fa){function ea(){y(this,ea);return r(this,(ea.__proto__||Object.getPrototypeOf(ea)).apply(this,arguments))}h(ea,fa);b(ea,[{key:"attach",value:function(){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"attach",this).call(this);this.attributes=new x.default.Attributor.Store(this.domNode)}},
26
+ {key:"delta",value:function(){return(new n.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ba,ma){ba=x.default.query(ba,x.default.Scope.BLOCK_ATTRIBUTE);null!=ba&&this.attributes.attribute(ba,ma)}},{key:"formatAt",value:function(ba,ma,ta,na){this.format(ta,na)}},{key:"insertAt",value:function(ba,ma,ta){"string"===typeof ma&&ma.endsWith("\n")?(ta=x.default.create(aa.blotName),this.parent.insertBefore(ta,0===ba?this:this.next),ta.insertAt(0,
27
+ ma.slice(0,-1))):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta)}}]);return ea}(x.default.Embed);w.scope=x.default.Scope.BLOCK_BLOT;var aa=function(fa){function ea(ba){y(this,ea);ba=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba));ba.cache={};return ba}h(ea,fa);b(ea,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(x.default.Leaf).reduce(function(ba,ma){return 0===ma.length()?ba:ba.insert(ma.value(),
28
+ a(ma))},new n.default).insert("\n",a(this)));return this.cache.delta}},{key:"deleteAt",value:function(ba,ma){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ba,ma);this.cache={}}},{key:"formatAt",value:function(ba,ma,ta,na){0>=ma||(x.default.query(ta,x.default.Scope.BLOCK)?ba+ma===this.length()&&this.format(ta,na):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ba,Math.min(ma,this.length()-ba-1),ta,na),this.cache={})}},
29
+ {key:"insertAt",value:function(ba,ma,ta){if(null!=ta)return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta);if(0!==ma.length){ma=ma.split("\n");ta=ma.shift();0<ta.length&&(ba<this.length()-1||null==this.children.tail?e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,Math.min(ba,this.length()-1),ta):this.children.tail.insertAt(this.children.tail.length(),ta),this.cache={});var na=this;ma.reduce(function(oa,pa){na=
30
+ na.split(oa,!0);na.insertAt(0,pa);return pa.length},ba+ta.length)}}},{key:"insertBefore",value:function(ba,ma){var ta=this.children.head;e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ba,ma);ta instanceof ca.default&&ta.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",
31
+ value:function(ba,ma){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"moveChildren",this).call(this,ba,ma);this.cache={}}},{key:"optimize",value:function(ba){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ba);this.cache={}}},{key:"path",value:function(ba){return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ba,!0)}},{key:"removeChild",value:function(ba){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
32
+ "removeChild",this).call(this,ba);this.cache={}}},{key:"split",value:function(ba){var ma=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(ma&&(0===ba||ba>=this.length()-1)){ma=this.clone();if(0===ba)return this.parent.insertBefore(ma,this),this;this.parent.insertBefore(ma,this.next);return ma}ma=e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"split",this).call(this,ba,ma);this.cache={};return ma}}]);return ea}(x.default.Block);aa.blotName="block";aa.tagName="P";aa.defaultChild=
33
+ "break";aa.allowedChildren=[ka.default,x.default.Embed,ha.default];la.bubbleFormats=a;la.BlockEmbed=w;la.default=aa},function(ka,la,ha){function da(pa){return pa&&pa.__esModule?pa:{default:pa}}function y(pa,ua,va){ua in pa?Object.defineProperty(pa,ua,{value:va,enumerable:!0,configurable:!0,writable:!0}):pa[ua]=va;return pa}function r(pa,ua){ua=(0,ba.default)(!0,{container:pa,modules:{clipboard:!0,keyboard:!0,history:!0}},ua);if(ua.theme&&ua.theme!==oa.DEFAULTS.theme){if(ua.theme=oa.import("themes/"+
34
+ ua.theme),null==ua.theme)throw Error("Invalid theme "+ua.theme+". Did you register it?");}else ua.theme=ta.default;pa=(0,ba.default)(!0,{},ua.theme.DEFAULTS);[pa,ua].forEach(function(ra){ra.modules=ra.modules||{};Object.keys(ra.modules).forEach(function(xa){!0===ra.modules[xa]&&(ra.modules[xa]={})})});var va=Object.keys(pa.modules).concat(Object.keys(ua.modules)).reduce(function(ra,xa){var Aa=oa.import("modules/"+xa);null==Aa?na.error("Cannot load "+xa+" module. Are you sure you registered it?"):
35
+ ra[xa]=Aa.DEFAULTS||{};return ra},{});null!=ua.modules&&ua.modules.toolbar&&ua.modules.toolbar.constructor!==Object&&(ua.modules.toolbar={container:ua.modules.toolbar});ua=(0,ba.default)(!0,{},oa.DEFAULTS,{modules:va},pa,ua);["bounds","container","scrollingContainer"].forEach(function(ra){"string"===typeof ua[ra]&&(ua[ra]=document.querySelector(ua[ra]))});ua.modules=Object.keys(ua.modules).reduce(function(ra,xa){ua.modules[xa]&&(ra[xa]=ua.modules[xa]);return ra},{});return ua}function h(pa,ua,va,
36
+ ra){if(this.options.strict&&!this.isEnabled()&&ua===w.default.sources.USER)return new x.default;var xa=null==va?null:this.getSelection(),Aa=this.editor.delta;pa=pa();null!=xa&&(!0===va&&(va=xa.index),null==ra?xa=b(xa,pa,ua):0!==ra&&(xa=b(xa,va,ra,ua)),this.setSelection(xa,w.default.sources.SILENT));if(0<pa.length()){var Ga;va=[w.default.events.TEXT_CHANGE,pa,Aa,ua];(Ga=this.emitter).emit.apply(Ga,[w.default.events.EDITOR_CHANGE].concat(va));if(ua!==w.default.sources.SILENT){var Ka;(Ka=this.emitter).emit.apply(Ka,
37
+ va)}}return pa}function a(pa,ua,va,ra,xa){var Aa={};"number"===typeof pa.index&&"number"===typeof pa.length?("number"!==typeof ua&&(xa=ra,ra=va,va=ua),ua=pa.length,pa=pa.index):"number"!==typeof ua&&(xa=ra,ra=va,va=ua,ua=0);"object"===("undefined"===typeof va?"undefined":e(va))?(Aa=va,xa=ra):"string"===typeof va&&(null!=ra?Aa[va]=ra:xa=va);xa=xa||w.default.sources.API;return[pa,ua,Aa,xa]}function b(pa,ua,va,ra){if(null==pa)return null;var xa=void 0,Aa=void 0;ua instanceof x.default?(xa=[pa.index,
38
+ pa.index+pa.length].map(function(Ga){return ua.transformPosition(Ga,ra!==w.default.sources.USER)}),pa=f(xa,2),xa=pa[0],Aa=pa[1]):(xa=[pa.index,pa.index+pa.length].map(function(Ga){return Ga<ua||Ga===ua&&ra===w.default.sources.USER?Ga:0<=va?Ga+va:Math.max(ua,Ga+va)}),pa=f(xa,2),xa=pa[0],Aa=pa[1]);return new fa.Range(xa,Aa-xa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.overload=la.expandConfig=void 0;var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(pa){return typeof pa}:
39
+ function(pa){return pa&&"function"===typeof Symbol&&pa.constructor===Symbol&&pa!==Symbol.prototype?"symbol":typeof pa},f=function(){return function(pa,ua){if(Array.isArray(pa))return pa;if(Symbol.iterator in Object(pa)){var va=[],ra=!0,xa=!1,Aa=void 0;try{for(var Ga=pa[Symbol.iterator](),Ka;!(ra=(Ka=Ga.next()).done)&&(va.push(Ka.value),!ua||va.length!==ua);ra=!0);}catch(Da){xa=!0,Aa=Da}finally{try{if(!ra&&Ga["return"])Ga["return"]()}finally{if(xa)throw Aa;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");
40
+ }}(),n=function(){function pa(ua,va){for(var ra=0;ra<va.length;ra++){var xa=va[ra];xa.enumerable=xa.enumerable||!1;xa.configurable=!0;"value"in xa&&(xa.writable=!0);Object.defineProperty(ua,xa.key,xa)}}return function(ua,va,ra){va&&pa(ua.prototype,va);ra&&pa(ua,ra);return ua}}();ha(50);ka=ha(2);var x=da(ka);ka=ha(14);var ca=da(ka);ka=ha(8);var w=da(ka);ka=ha(9);ka=da(ka);var aa=ha(0),ja=da(aa),fa=ha(15),ea=da(fa);aa=ha(3);var ba=da(aa);aa=ha(10);var ma=da(aa);ha=ha(34);var ta=da(ha),na=(0,ma.default)("quill"),
41
+ oa=function(){function pa(ua){var va=this,ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof pa))throw new TypeError("Cannot call a class as a function");this.options=r(ua,ra);this.container=this.options.container;if(null==this.container)return na.error("Invalid Quill container",ua);this.options.debug&&pa.debug(this.options.debug);ra=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=
42
+ this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=this.options.scrollingContainer||this.root;this.emitter=new w.default;this.scroll=ja.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ca.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(w.default.events.EDITOR_CHANGE,function(xa){xa===w.default.events.TEXT_CHANGE&&va.root.classList.toggle("ql-blank",va.editor.isBlank())});this.emitter.on(w.default.events.SCROLL_UPDATE,function(xa,Aa){var Ga=va.selection.lastRange,Ka=Ga&&0===Ga.length?Ga.index:void 0;h.call(va,function(){return va.editor.update(null,Aa,Ka)},xa)});ra=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
44
+ ra+"<p><br></p></div>");this.setContents(ra);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}n(pa,null,[{key:"debug",value:function(ua){!0===ua&&(ua="log");ma.default.level(ua)}},{key:"find",value:function(ua){return ua.__quill||ja.default.find(ua)}},{key:"import",value:function(ua){null==this.imports[ua]&&na.error("Cannot import "+ua+". Are you sure it was registered?");return this.imports[ua]}},
45
+ {key:"register",value:function(ua,va){var ra=this,xa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof ua?(xa=ua.attrName||ua.blotName,"string"===typeof xa?this.register("formats/"+xa,ua,va):Object.keys(ua).forEach(function(Aa){ra.register(Aa,ua[Aa],va)})):(null==this.imports[ua]||xa||na.warn("Overwriting "+ua+" with",va),this.imports[ua]=va,(ua.startsWith("blots/")||ua.startsWith("formats/"))&&"abstract"!==va.blotName?ja.default.register(va):ua.startsWith("modules")&&"function"===
46
+ typeof va.register&&va.register())}}]);n(pa,[{key:"addContainer",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof ua){var ra=ua;ua=document.createElement("div");ua.classList.add(ra)}this.container.insertBefore(ua,va);return ua}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ua,va,ra){var xa=this;ra=a(ua,va,ra);ra=f(ra,4);ua=ra[0];va=ra[1];ra=ra[3];return h.call(this,function(){return xa.editor.deleteText(ua,
47
+ va)},ra,ua,-1*va)}},{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,va){var ra=this;return h.call(this,function(){var xa=ra.getSelection(!0),
48
+ Aa=new x.default;if(null==xa)return Aa;if(ja.default.query(ua,ja.default.Scope.BLOCK))Aa=ra.editor.formatLine(xa.index,xa.length,y({},ua,va));else{if(0===xa.length)return ra.selection.format(ua,va),Aa;Aa=ra.editor.formatText(xa.index,xa.length,y({},ua,va))}ra.setSelection(xa,w.default.sources.SILENT);return Aa},2<arguments.length&&void 0!==arguments[2]?arguments[2]:w.default.sources.API)}},{key:"formatLine",value:function(ua,va,ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,va,ra,xa,Aa);ra=f(ra,4);ua=ra[0];
49
+ va=ra[1];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.formatLine(ua,va,Ka)},Aa,ua,0)}},{key:"formatText",value:function(ua,va,ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,va,ra,xa,Aa);ra=f(ra,4);ua=ra[0];va=ra[1];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.formatText(ua,va,Ka)},Aa,ua,0)}},{key:"getBounds",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;va="number"===typeof ua?this.selection.getBounds(ua,va):this.selection.getBounds(ua.index,
50
+ ua.length);var ra=this.container.getBoundingClientRect();return{bottom:va.bottom-ra.top,height:va.height,left:va.left-ra.left,right:va.right-ra.left,top:va.top-ra.top,width:va.width}}},{key:"getContents",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=a(ua,va);va=f(ua,2);ua=va[0];va=va[1];return this.editor.getContents(ua,va)}},{key:"getFormat",value:function(){var ua=0<arguments.length&&
51
+ void 0!==arguments[0]?arguments[0]:this.getSelection(!0),va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof ua?this.editor.getFormat(ua,va):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,va=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,va)}},{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,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=a(ua,va);va=f(ua,2);ua=va[0];va=va[1];return this.editor.getText(ua,va)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ua,va,ra){var xa=this;return h.call(this,function(){return xa.editor.insertEmbed(ua,va,ra)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:pa.sources.API,ua)}},{key:"insertText",value:function(ua,va,
54
+ ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,0,ra,xa,Aa);ra=f(ra,4);ua=ra[0];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.insertText(ua,va,Ka)},Aa,ua,va.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,
55
+ arguments)}},{key:"pasteHTML",value:function(ua,va,ra){this.clipboard.dangerouslyPasteHTML(ua,va,ra)}},{key:"removeFormat",value:function(ua,va,ra){var xa=this;ra=a(ua,va,ra);ra=f(ra,4);ua=ra[0];va=ra[1];ra=ra[3];return h.call(this,function(){return xa.editor.removeFormat(ua,va)},ra,ua)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ua){var va=this;return h.call(this,function(){ua=new x.default(ua);var ra=va.getLength();
56
+ ra=va.editor.deleteText(0,ra);var xa=va.editor.applyDelta(ua),Aa=xa.ops[xa.ops.length-1];null!=Aa&&"string"===typeof Aa.insert&&"\n"===Aa.insert[Aa.insert.length-1]&&(va.editor.deleteText(va.getLength()-1,1),xa.delete(1));return ra.compose(xa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API)}},{key:"setSelection",value:function(ua,va,ra){null==ua?this.selection.setRange(null,va||pa.sources.API):(ua=a(ua,va,ra),ra=f(ua,4),ua=ra[0],va=ra[1],ra=ra[3],this.selection.setRange(new fa.Range(ua,
57
+ va),ra),ra!==w.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API,ra=(new x.default).insert(ua);return this.setContents(ra,va)}},{key:"update",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:w.default.sources.USER,va=this.scroll.update(ua);this.selection.update(ua);return va}},{key:"updateContents",value:function(ua){var va=
58
+ this,ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API;return h.call(this,function(){ua=new x.default(ua);return va.editor.applyDelta(ua,ra)},ra,!0)}}]);return pa}();oa.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};oa.events=w.default.events;oa.sources=w.default.sources;oa.version="1.3.7";oa.imports={delta:x.default,parchment:ja.default,"core/module":ka.default,"core/theme":ta.default};la.expandConfig=
59
+ r;la.overload=a;la.default=oa},function(ka,la,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(la,"__esModule",{value:!0});var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=
60
+ n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=(ka=ha(7))&&ka.__esModule?ka:{default:ka};var h=(ha=ha(0))&&ha.__esModule?ha:{default:ha};
61
+ ha=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).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?this:f}da(e,b);y(e,[{key:"formatAt",value:function(f,n,x,ca){0>e.compare(this.statics.blotName,x)&&h.default.query(x,h.default.Scope.BLOT)?(f=this.isolate(f,n),ca&&f.wrap(x,ca)):
62
+ r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,f,n,x,ca)}},{key:"optimize",value:function(f){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,f);this.parent instanceof e&&0<e.compare(this.statics.blotName,this.parent.statics.blotName)&&(f=this.parent.isolate(this.offset(),this.length()),this.moveChildren(f),f.wrap(this))}}],[{key:"compare",value:function(f,n){var x=e.order.indexOf(f),ca=e.order.indexOf(n);return 0<=x||0<=
63
+ ca?x-ca:f===n?0:f<n?-1:1}}]);return e}(h.default.Inline);ha.allowedChildren=[ha,h.default.Embed,ka.default];ha.order="cursor inline underline strike italic bold script link code".split(" ");la.default=ha},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,
64
+ r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(0)).default.Text);la.default=ka},
65
+ function(ka,la,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(la,"__esModule",{value:!0});var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=
66
+ !0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=(ka=ha(54))&&ka.__esModule?ka:{default:ka};ha=ha(10);var h=(0,(ha&&ha.__esModule?ha:{default:ha}).default)("quill:events");
67
+ ["selectionchange","mousedown","mouseup","click"].forEach(function(b){document.addEventListener(b,function(){for(var e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(x){if(x.__quill&&x.__quill.emitter){var ca;(ca=x.__quill.emitter).handleDOM.apply(ca,f)}})})});ha=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).call(this);
68
+ if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.listeners={};f.on("error",h.error);return f}da(e,b);y(e,[{key:"emit",value:function(){h.log.apply(h,arguments);r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var n=arguments.length,x=Array(1<n?n-1:0),ca=1;ca<n;ca++)x[ca-1]=arguments[ca];(this.listeners[f.type]||
69
+ []).forEach(function(w){var aa=w.node;w=w.handler;(f.target===aa||aa.contains(f.target))&&w.apply(void 0,[f].concat(x))})}},{key:"listenDOM",value:function(f,n,x){this.listeners[f]||(this.listeners[f]=[]);this.listeners[f].push({node:n,handler:x})}}]);return e}(ka.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"};la.default=ha},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});ka=function y(da){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.quill=da;this.options=r};ka.DEFAULTS={};la.default=ka},function(ka,la){function ha(h){if(y.indexOf(h)<=y.indexOf(r)){for(var a,b=arguments.length,e=Array(1<b?b-1:0),f=1;f<b;f++)e[f-1]=arguments[f];(a=console)[h].apply(a,e)}}
71
+ function da(h){return y.reduce(function(a,b){a[b]=ha.bind(console,b,h);return a},{})}Object.defineProperty(la,"__esModule",{value:!0});var y=["error","warn","log","info"],r="warn";ha.level=da.level=function(h){r=h};la.default=da},function(ka,la,ha){function da(e){return!e||"object"!==typeof e||"number"!==typeof e.length||"function"!==typeof e.copy||"function"!==typeof e.slice||0<e.length&&"number"!==typeof e[0]?!1:!0}function y(e,f,n){var x;if(null===e||void 0===e||null===f||void 0===f||e.prototype!==
72
+ f.prototype)return!1;if(a(e)){if(!a(f))return!1;e=r.call(e);f=r.call(f);return b(e,f,n)}if(da(e)){if(!da(f)||e.length!==f.length)return!1;for(x=0;x<e.length;x++)if(e[x]!==f[x])return!1;return!0}try{var ca=h(e);var w=h(f)}catch(aa){return!1}if(ca.length!=w.length)return!1;ca.sort();w.sort();for(x=ca.length-1;0<=x;x--)if(ca[x]!=w[x])return!1;for(x=ca.length-1;0<=x;x--)if(w=ca[x],!b(e[w],f[w],n))return!1;return typeof e===typeof f}var r=Array.prototype.slice,h=ha(52),a=ha(53),b=ka.exports=function(e,
73
+ f,n){n||(n={});return e===f?!0:e instanceof Date&&f instanceof Date?e.getTime()===f.getTime():!e||!f||"object"!=typeof e&&"object"!=typeof f?n.strict?e===f:e==f:y(e,f,n)}},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da=ha(1);ka=function(){function y(r,h,a){void 0===a&&(a={});this.attrName=r;this.keyName=h;r=da.Scope.TYPE&da.Scope.ATTRIBUTE;this.scope=null!=a.scope?a.scope&da.Scope.LEVEL|r:da.Scope.ATTRIBUTE;null!=a.whitelist&&(this.whitelist=a.whitelist)}y.keys=function(r){return[].map.call(r.attributes,
74
+ function(h){return h.name})};y.prototype.add=function(r,h){if(!this.canAdd(r,h))return!1;r.setAttribute(this.keyName,h);return!0};y.prototype.canAdd=function(r,h){return null==da.query(r,da.Scope.BLOT&(this.scope|da.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof h?-1<this.whitelist.indexOf(h.replace(/["']/g,"")):-1<this.whitelist.indexOf(h)};y.prototype.remove=function(r){r.removeAttribute(this.keyName)};y.prototype.value=function(r){var h=r.getAttribute(this.keyName);return this.canAdd(r,
75
+ h)&&h?h:""};return y}();la.default=ka},function(ka,la,ha){function da(w){return w&&w.__esModule?w:{default:w}}function y(w,aa){if(!(w instanceof aa))throw new TypeError("Cannot call a class as a function");}function r(w,aa){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?w:aa}function h(w,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+
76
+ typeof aa);w.prototype=Object.create(aa&&aa.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(w,aa):w.__proto__=aa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.Code=void 0;var a=function(){return function(w,aa){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w)){var ja=[],fa=!0,ea=!1,ba=void 0;try{for(var ma=w[Symbol.iterator](),ta;!(fa=(ta=ma.next()).done)&&(ja.push(ta.value),!aa||ja.length!==
77
+ aa);fa=!0);}catch(na){ea=!0,ba=na}finally{try{if(!fa&&ma["return"])ma["return"]()}finally{if(ea)throw ba;}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function w(aa,ja){for(var fa=0;fa<ja.length;fa++){var ea=ja[fa];ea.enumerable=ea.enumerable||!1;ea.configurable=!0;"value"in ea&&(ea.writable=!0);Object.defineProperty(aa,ea.key,ea)}}return function(aa,ja,fa){ja&&w(aa.prototype,ja);fa&&w(aa,fa);return aa}}(),e=function ea(aa,ja,fa){null===
78
+ aa&&(aa=Function.prototype);var ba=Object.getOwnPropertyDescriptor(aa,ja);if(void 0===ba){if(aa=Object.getPrototypeOf(aa),null!==aa)return ea(aa,ja,fa)}else{if("value"in ba)return ba.value;ja=ba.get;return void 0===ja?void 0:ja.call(fa)}};ka=ha(2);var f=da(ka);ka=ha(0);var n=da(ka);ka=ha(4);ka=da(ka);var x=ha(6);x=da(x);ha=ha(7);var ca=da(ha);ha=function(aa){function ja(){y(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}h(ja,aa);return ja}(x.default);ha.blotName=
79
+ "code";ha.tagName="CODE";ka=function(aa){function ja(){y(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}h(ja,aa);b(ja,[{key:"delta",value:function(){var fa=this,ea=this.domNode.textContent;ea.endsWith("\n")&&(ea=ea.slice(0,-1));return ea.split("\n").reduce(function(ba,ma){return ba.insert(ma).insert("\n",fa.formats())},new f.default)}},{key:"format",value:function(fa,ea){if(fa!==this.statics.blotName||!ea){var ba=this.descendant(ca.default,this.length()-1);
80
+ ba=a(ba,1)[0];null!=ba&&ba.deleteAt(ba.length()-1,1);e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,fa,ea)}}},{key:"formatAt",value:function(fa,ea,ba,ma){if(0!==ea&&null!=n.default.query(ba,n.default.Scope.BLOCK)&&(ba!==this.statics.blotName||ma!==this.statics.formats(this.domNode))){var ta=this.newlineIndex(fa);if(!(0>ta||ta>=fa+ea)){var na=this.newlineIndex(fa,!0)+1;ta=ta-na+1;var oa=this.isolate(na,ta),pa=oa.next;oa.format(ba,ma);pa instanceof ja&&pa.formatAt(0,
81
+ fa-na+ea-ta,ba,ma)}}}},{key:"insertAt",value:function(fa,ea,ba){null==ba&&(fa=this.descendant(ca.default,fa),fa=a(fa,2),fa[0].insertAt(fa[1],ea))}},{key:"length",value:function(){var fa=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?fa:fa+1}},{key:"newlineIndex",value:function(fa){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,fa).lastIndexOf("\n");var ea=this.domNode.textContent.slice(fa).indexOf("\n");return-1<ea?
82
+ fa+ea:-1}},{key:"optimize",value:function(fa){this.domNode.textContent.endsWith("\n")||this.appendChild(n.default.create("text","\n"));e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,fa);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(fa),ea.moveChildren(this),ea.remove())}},{key:"replace",value:function(fa){e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),
83
+ "replace",this).call(this,fa);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ea){var ba=n.default.find(ea);null==ba?ea.parentNode.removeChild(ea):ba instanceof n.default.Embed?ba.remove():ba.unwrap()})}}],[{key:"create",value:function(fa){fa=e(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,fa);fa.setAttribute("spellcheck",!1);return fa}},{key:"formats",value:function(){return!0}}]);return ja}(ka.default);ka.blotName="code-block";ka.tagName="PRE";ka.TAB=" ";la.Code=
84
+ ha;la.default=ka},function(ka,la,ha){function da(ta){return ta&&ta.__esModule?ta:{default:ta}}function y(ta,na){return Object.keys(na).reduce(function(oa,pa){if(null==ta[pa])return oa;na[pa]===ta[pa]?oa[pa]=na[pa]:Array.isArray(na[pa])?0>na[pa].indexOf(ta[pa])&&(oa[pa]=na[pa].concat([ta[pa]])):oa[pa]=[na[pa],ta[pa]];return oa},{})}function r(ta){return ta.reduce(function(na,oa){if(1===oa.insert){var pa=(0,fa.default)(oa.attributes);delete pa.image;return na.insert({image:oa.attributes.image},pa)}null==
85
+ oa.attributes||!0!==oa.attributes.list&&!0!==oa.attributes.bullet||(oa=(0,fa.default)(oa),oa.attributes.list?oa.attributes.list="ordered":(oa.attributes.list="bullet",delete oa.attributes.bullet));return"string"===typeof oa.insert?(pa=oa.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),na.insert(pa,oa.attributes)):na.push(oa)},new e.default)}Object.defineProperty(la,"__esModule",{value:!0});var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(ta){return typeof ta}:function(ta){return ta&&
86
+ "function"===typeof Symbol&&ta.constructor===Symbol&&ta!==Symbol.prototype?"symbol":typeof ta},a=function(){return function(ta,na){if(Array.isArray(ta))return ta;if(Symbol.iterator in Object(ta)){var oa=[],pa=!0,ua=!1,va=void 0;try{for(var ra=ta[Symbol.iterator](),xa;!(pa=(xa=ra.next()).done)&&(oa.push(xa.value),!na||oa.length!==na);pa=!0);}catch(Aa){ua=!0,va=Aa}finally{try{if(!pa&&ra["return"])ra["return"]()}finally{if(ua)throw va;}}return oa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
87
+ }}(),b=function(){function ta(na,oa){for(var pa=0;pa<oa.length;pa++){var ua=oa[pa];ua.enumerable=ua.enumerable||!1;ua.configurable=!0;"value"in ua&&(ua.writable=!0);Object.defineProperty(na,ua.key,ua)}}return function(na,oa,pa){oa&&ta(na.prototype,oa);pa&&ta(na,pa);return na}}();ka=ha(2);var e=da(ka);ka=ha(20);var f=da(ka);ka=ha(0);var n=da(ka);ka=ha(13);var x=da(ka);ka=ha(24);var ca=da(ka),w=ha(4),aa=da(w);ka=ha(16);var ja=da(ka);ka=ha(21);var fa=da(ka);ka=ha(11);var ea=da(ka);ha=ha(3);var ba=da(ha),
88
+ ma=/^[ -~]*$/;ha=function(){function ta(na){if(!(this instanceof ta))throw new TypeError("Cannot call a class as a function");this.scroll=na;this.delta=this.getDelta()}b(ta,[{key:"applyDelta",value:function(na){var oa=this,pa=!1;this.scroll.update();var ua=this.scroll.length();this.scroll.batchStart();na=r(na);na.reduce(function(va,ra){var xa=ra.retain||ra.delete||ra.insert.length||1,Aa=ra.attributes||{};if(null!=ra.insert){if("string"===typeof ra.insert){ra=ra.insert;ra.endsWith("\n")&&pa&&(pa=!1,
89
+ ra=ra.slice(0,-1));va>=ua&&!ra.endsWith("\n")&&(pa=!0);oa.scroll.insertAt(va,ra);ra=oa.scroll.line(va);ra=a(ra,2);var Ga=ra[0],Ka=ra[1];ra=(0,ba.default)({},(0,w.bubbleFormats)(Ga));Ga instanceof aa.default&&(Ga=Ga.descendant(n.default.Leaf,Ka),Ga=a(Ga,1)[0],ra=(0,ba.default)(ra,(0,w.bubbleFormats)(Ga)));Aa=f.default.attributes.diff(ra,Aa)||{}}else if("object"===h(ra.insert)){Ga=Object.keys(ra.insert)[0];if(null==Ga)return va;oa.scroll.insertAt(va,Ga,ra.insert[Ga])}ua+=xa}Object.keys(Aa).forEach(function(Da){oa.scroll.formatAt(va,
90
+ xa,Da,Aa[Da])});return va+xa},0);na.reduce(function(va,ra){return"number"===typeof ra.delete?(oa.scroll.deleteAt(va,ra.delete),va):va+(ra.retain||ra.insert.length||1)},0);this.scroll.batchEnd();return this.update(na)}},{key:"deleteText",value:function(na,oa){this.scroll.deleteAt(na,oa);return this.update((new e.default).retain(na).delete(oa))}},{key:"formatLine",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ua).forEach(function(va){if(null==
91
+ pa.scroll.whitelist||pa.scroll.whitelist[va]){var ra=pa.scroll.lines(na,Math.max(oa,1)),xa=oa;ra.forEach(function(Aa){var Ga=Aa.length();if(Aa instanceof x.default){var Ka=na-Aa.offset(pa.scroll),Da=Aa.newlineIndex(Ka+xa)-Ka+1;Aa.formatAt(Ka,Da,va,ua[va])}else Aa.format(va,ua[va]);xa-=Ga})}});this.scroll.optimize();return this.update((new e.default).retain(na).retain(oa,(0,fa.default)(ua)))}},{key:"formatText",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
92
+ {};Object.keys(ua).forEach(function(va){pa.scroll.formatAt(na,oa,va,ua[va])});return this.update((new e.default).retain(na).retain(oa,(0,fa.default)(ua)))}},{key:"getContents",value:function(na,oa){return this.delta.slice(na,na+oa)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(na,oa){return na.concat(oa.delta())},new e.default)}},{key:"getFormat",value:function(na){var oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,pa=[],ua=[];0===oa?this.scroll.path(na).forEach(function(va){va=
93
+ a(va,1)[0];va instanceof aa.default?pa.push(va):va instanceof n.default.Leaf&&ua.push(va)}):(pa=this.scroll.lines(na,oa),ua=this.scroll.descendants(n.default.Leaf,na,oa));oa=[pa,ua].map(function(va){if(0===va.length)return{};for(var ra=(0,w.bubbleFormats)(va.shift());0<Object.keys(ra).length;){var xa=va.shift();if(null==xa)break;ra=y((0,w.bubbleFormats)(xa),ra)}return ra});return ba.default.apply(ba.default,oa)}},{key:"getText",value:function(na,oa){return this.getContents(na,oa).filter(function(pa){return"string"===
94
+ typeof pa.insert}).map(function(pa){return pa.insert}).join("")}},{key:"insertEmbed",value:function(na,oa,pa){this.scroll.insertAt(na,oa,pa);var ua=this.update;na=(new e.default).retain(na);var va=na.insert,ra={};oa in ra?Object.defineProperty(ra,oa,{value:pa,enumerable:!0,configurable:!0,writable:!0}):ra[oa]=pa;return ua.call(this,va.call(na,ra))}},{key:"insertText",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};oa=oa.replace(/\r\n/g,"\n").replace(/\r/g,
95
+ "\n");this.scroll.insertAt(na,oa);Object.keys(ua).forEach(function(va){pa.scroll.formatAt(na,oa.length,va,ua[va])});return this.update((new e.default).retain(na).insert(oa,(0,fa.default)(ua)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var na=this.scroll.children.head;return na.statics.blotName!==aa.default.blotName||1<na.children.length?!1:na.children.head instanceof ja.default}},{key:"removeFormat",value:function(na,oa){var pa=
96
+ this.getText(na,oa),ua=this.scroll.line(na+oa),va=a(ua,2);ua=va[0];va=va[1];var ra=0,xa=new e.default;null!=ua&&(ra=ua instanceof x.default?ua.newlineIndex(va)-va+1:ua.length()-va,xa=ua.delta().slice(va,va+ra-1).insert("\n"));oa=this.getContents(na,oa+ra).diff((new e.default).insert(pa).concat(xa));na=(new e.default).retain(na).concat(oa);return this.applyDelta(na)}},{key:"update",value:function(na){var oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],pa=2<arguments.length&&void 0!==arguments[2]?
97
+ arguments[2]:void 0,ua=this.delta;if(1===oa.length&&"characterData"===oa[0].type&&oa[0].target.data.match(ma)&&n.default.find(oa[0].target)){var va=n.default.find(oa[0].target),ra=(0,w.bubbleFormats)(va),xa=va.offset(this.scroll);oa=oa[0].oldValue.replace(ca.default.CONTENTS,"");oa=(new e.default).insert(oa);va=(new e.default).insert(va.value());na=(new e.default).retain(xa).concat(oa.diff(va,pa)).reduce(function(Aa,Ga){return Ga.insert?Aa.insert(Ga.insert,ra):Aa.push(Ga)},new e.default);this.delta=
98
+ ua.compose(na)}else this.delta=this.getDelta(),na&&(0,ea.default)(ua.compose(na),this.delta)||(na=ua.diff(this.delta,pa));return na}}]);return ta}();la.default=ha},function(ka,la,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function y(aa){if(Array.isArray(aa)){for(var ja=0,fa=Array(aa.length);ja<aa.length;ja++)fa[ja]=aa[ja];return fa}return Array.from(aa)}function r(aa,ja){if(!(aa instanceof ja))throw new TypeError("Cannot call a class as a function");}function h(aa,ja){try{ja.parentNode}catch(fa){return!1}ja instanceof
99
+ Text&&(ja=ja.parentNode);return aa.contains(ja)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.Range=void 0;var a=function(){return function(aa,ja){if(Array.isArray(aa))return aa;if(Symbol.iterator in Object(aa)){var fa=[],ea=!0,ba=!1,ma=void 0;try{for(var ta=aa[Symbol.iterator](),na;!(ea=(na=ta.next()).done)&&(fa.push(na.value),!ja||fa.length!==ja);ea=!0);}catch(oa){ba=!0,ma=oa}finally{try{if(!ea&&ta["return"])ta["return"]()}finally{if(ba)throw ma;}}return fa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
100
+ }}(),b=function(){function aa(ja,fa){for(var ea=0;ea<fa.length;ea++){var ba=fa[ea];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(ja,ba.key,ba)}}return function(ja,fa,ea){fa&&aa(ja.prototype,fa);ea&&aa(ja,ea);return ja}}();ka=ha(0);var e=da(ka);ka=ha(21);var f=da(ka);ka=ha(11);var n=da(ka);ka=ha(8);var x=da(ka);ha=ha(10);var ca=(0,da(ha).default)("quill:selection"),w=function fa(ja){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
101
+ 0;r(this,fa);this.index=ja;this.length=ea};ha=function(){function ja(fa,ea){var ba=this;r(this,ja);this.emitter=ea;this.scroll=fa;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=e.default.create("cursor",this);this.lastRange=this.savedRange=new w(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){ba.mouseDown||setTimeout(ba.update.bind(ba,x.default.sources.USER),1)});this.emitter.on(x.default.events.EDITOR_CHANGE,
102
+ function(ma,ta){ma===x.default.events.TEXT_CHANGE&&0<ta.length()&&ba.update(x.default.sources.SILENT)});this.emitter.on(x.default.events.SCROLL_BEFORE_UPDATE,function(){if(ba.hasFocus()){var ma=ba.getNativeRange();if(null!=ma&&ma.start.node!==ba.cursor.textNode)ba.emitter.once(x.default.events.SCROLL_UPDATE,function(){try{ba.setNativeRange(ma.start.node,ma.start.offset,ma.end.node,ma.end.offset)}catch(ta){}})}});this.emitter.on(x.default.events.SCROLL_OPTIMIZE,function(ma,ta){ta.range&&(ma=ta.range,
103
+ ba.setNativeRange(ma.startNode,ma.startOffset,ma.endNode,ma.endOffset))});this.update(x.default.sources.SILENT)}b(ja,[{key:"handleComposition",value:function(){var fa=this;this.root.addEventListener("compositionstart",function(){fa.composing=!0});this.root.addEventListener("compositionend",function(){fa.composing=!1;if(fa.cursor.parent){var ea=fa.cursor.restore();ea&&setTimeout(function(){fa.setNativeRange(ea.startNode,ea.startOffset,ea.endNode,ea.endOffset)},1)}})}},{key:"handleDragging",value:function(){var fa=
104
+ this;this.emitter.listenDOM("mousedown",document.body,function(){fa.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){fa.mouseDown=!1;fa.update(x.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(fa,ea){if(null==this.scroll.whitelist||this.scroll.whitelist[fa]){this.scroll.update();var ba=this.getNativeRange();if(null!=ba&&ba.native.collapsed&&!e.default.query(fa,e.default.Scope.BLOCK)){if(ba.start.node!==
105
+ this.cursor.textNode){var ma=e.default.find(ba.start.node,!1);if(null==ma)return;ma instanceof e.default.Leaf?(ba=ma.split(ba.start.offset),ma.parent.insertBefore(this.cursor,ba)):ma.insertBefore(this.cursor,ba.start.node);this.cursor.attach()}this.cursor.format(fa,ea);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(fa){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ba=this.scroll.length();
106
+ fa=Math.min(fa,ba-1);ea=Math.min(fa+ea,ba-1)-fa;ba=this.scroll.leaf(fa);var ma=a(ba,2);ba=ma[0];var ta=ma[1];if(null==ba)return null;ma=ba.position(ta,!0);ma=a(ma,2);var na=ma[0];ta=ma[1];ma=document.createRange();if(0<ea){ma.setStart(na,ta);ea=this.scroll.leaf(fa+ea);ea=a(ea,2);ba=ea[0];ta=ea[1];if(null==ba)return null;ea=ba.position(ta,!0);ea=a(ea,2);na=ea[0];ta=ea[1];ma.setEnd(na,ta);return ma.getBoundingClientRect()}ea="left";na instanceof Text?(ta<na.data.length?(ma.setStart(na,ta),ma.setEnd(na,
107
+ ta+1)):(ma.setStart(na,ta-1),ma.setEnd(na,ta),ea="right"),ba=ma.getBoundingClientRect()):(ba=ba.domNode.getBoundingClientRect(),0<ta&&(ea="right"));return{bottom:ba.top+ba.height,height:ba.height,left:ba[ea],right:ba[ea],top:ba.top,width:0}}},{key:"getNativeRange",value:function(){var fa=document.getSelection();if(null==fa||0>=fa.rangeCount)return null;fa=fa.getRangeAt(0);if(null==fa)return null;fa=this.normalizeNative(fa);ca.info("getNativeRange",fa);return fa}},{key:"getRange",value:function(){var fa=
108
+ this.getNativeRange();return null==fa?[null,null]:[this.normalizedToRange(fa),fa]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(fa){var ea=this,ba=[[fa.start.node,fa.start.offset]];fa.native.collapsed||ba.push([fa.end.node,fa.end.offset]);ba=ba.map(function(ma){var ta=a(ma,2);ma=ta[0];ta=ta[1];var na=e.default.find(ma,!0),oa=na.offset(ea.scroll);return 0===ta?oa:na instanceof e.default.Container?oa+na.length():oa+na.index(ma,
109
+ ta)});fa=Math.min(Math.max.apply(Math,y(ba)),this.scroll.length()-1);ba=Math.min.apply(Math,[fa].concat(y(ba)));return new w(ba,fa-ba)}},{key:"normalizeNative",value:function(fa){if(!h(this.root,fa.startContainer)||!fa.collapsed&&!h(this.root,fa.endContainer))return null;fa={start:{node:fa.startContainer,offset:fa.startOffset},end:{node:fa.endContainer,offset:fa.endOffset},native:fa};[fa.start,fa.end].forEach(function(ea){for(var ba=ea.node,ma=ea.offset;!(ba instanceof Text)&&0<ba.childNodes.length;)if(ba.childNodes.length>
110
+ ma)ba=ba.childNodes[ma],ma=0;else if(ba.childNodes.length===ma)ba=ba.lastChild,ma=ba instanceof Text?ba.data.length:ba.childNodes.length+1;else break;ea.node=ba;ea.offset=ma});return fa}},{key:"rangeToNative",value:function(fa){var ea=this;fa=fa.collapsed?[fa.index]:[fa.index,fa.index+fa.length];var ba=[],ma=this.scroll.length();fa.forEach(function(ta,na){ta=Math.min(ma-1,ta);ta=ea.scroll.leaf(ta);var oa=a(ta,2);ta=oa[1];na=oa[0].position(ta,0!==na);ta=a(na,2);na=ta[0];ta=ta[1];ba.push(na,ta)});2>
111
+ ba.length&&(ba=ba.concat(ba));return ba}},{key:"scrollIntoView",value:function(fa){var ea=this.lastRange;if(null!=ea){var ba=this.getBounds(ea.index,ea.length);if(null!=ba){var ma=this.scroll.length()-1,ta=this.scroll.line(Math.min(ea.index,ma)),na=ta=a(ta,1)[0];0<ea.length&&(ea=this.scroll.line(Math.min(ea.index+ea.length,ma)),na=a(ea,1)[0]);null!=ta&&null!=na&&(ea=fa.getBoundingClientRect(),ba.top<ea.top?fa.scrollTop-=ea.top-ba.top:ba.bottom>ea.bottom&&(fa.scrollTop+=ba.bottom-ea.bottom))}}}},{key:"setNativeRange",
112
+ value:function(fa,ea){var ba=2<arguments.length&&void 0!==arguments[2]?arguments[2]:fa,ma=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ea,ta=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ca.info("setNativeRange",fa,ea,ba,ma);if(null==fa||null!=this.root.parentNode&&null!=fa.parentNode&&null!=ba.parentNode){var na=document.getSelection();if(null!=na)if(null!=fa){this.hasFocus()||this.root.focus();var oa=(this.getNativeRange()||{}).native;if(null==oa||ta||fa!==oa.startContainer||
113
+ ea!==oa.startOffset||ba!==oa.endContainer||ma!==oa.endOffset)"BR"==fa.tagName&&(ea=[].indexOf.call(fa.parentNode.childNodes,fa),fa=fa.parentNode),"BR"==ba.tagName&&(ma=[].indexOf.call(ba.parentNode.childNodes,ba),ba=ba.parentNode),ta=document.createRange(),ta.setStart(fa,ea),ta.setEnd(ba,ma),na.removeAllRanges(),na.addRange(ta)}else na.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(fa){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ba=
114
+ 2<arguments.length&&void 0!==arguments[2]?arguments[2]:x.default.sources.API;"string"===typeof ea&&(ba=ea,ea=!1);ca.info("setRange",fa);if(null!=fa){var ma=this.rangeToNative(fa);this.setNativeRange.apply(this,y(ma).concat([ea]))}else this.setNativeRange(null);this.update(ba)}},{key:"update",value:function(){var fa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:x.default.sources.USER,ea=this.lastRange,ba=this.getRange();ba=a(ba,2);var ma=ba[1];this.lastRange=ba[0];null!=this.lastRange&&(this.savedRange=
115
+ this.lastRange);if(!(0,n.default)(ea,this.lastRange)){var ta;!this.composing&&null!=ma&&ma.native.collapsed&&ma.start.node!==this.cursor.textNode&&this.cursor.restore();ea=[x.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(ea),fa];(ta=this.emitter).emit.apply(ta,[x.default.events.EDITOR_CHANGE].concat(ea));if(fa!==x.default.sources.SILENT){var na;(na=this.emitter).emit.apply(na,ea)}}}}]);return ja}();la.Range=w;la.default=ha},function(ka,la,ha){function da(h,a){if("function"!==
116
+ typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,
117
+ f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=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");
118
+ return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"insertInto",value:function(e,f){0===e.children.length?r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,e,f):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(0)).default.Embed);ka.blotName="break";ka.tagName="BR";la.default=ka},function(ka,
119
+ la,ha){function da(a){var b=h.find(a);if(null==b)try{b=h.create(a)}catch(e){b=h.create(h.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(f){b.domNode.appendChild(f)}),a.parentNode&&a.parentNode.replaceChild(b.domNode,a),b.attach()}return b}var y=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=b}a(b,
120
+ e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var r=ha(44);ka=ha(30);var h=ha(1);ha=function(a){function b(e){e=a.call(this,e)||this;e.build();return e}y(b,a);b.prototype.appendChild=function(e){this.insertBefore(e)};b.prototype.attach=function(){a.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};b.prototype.build=function(){var e=this;this.children=new r.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var n=
121
+ da(f);e.insertBefore(n,e.children.head||void 0)}catch(x){if(!(x instanceof h.ParchmentError))throw x;}})};b.prototype.deleteAt=function(e,f){if(0===e&&f===this.length())return this.remove();this.children.forEachAt(e,f,function(n,x,ca){n.deleteAt(x,ca)})};b.prototype.descendant=function(e,f){var n=this.children.find(f);f=n[0];n=n[1];return null==e.blotName&&e(f)||null!=e.blotName&&f instanceof e?[f,n]:f instanceof b?f.descendant(e,n):[null,-1]};b.prototype.descendants=function(e,f,n){void 0===f&&(f=
122
+ 0);void 0===n&&(n=Number.MAX_VALUE);var x=[],ca=n;this.children.forEachAt(f,n,function(w,aa,ja){(null==e.blotName&&e(w)||null!=e.blotName&&w instanceof e)&&x.push(w);w instanceof b&&(x=x.concat(w.descendants(e,aa,ca)));ca-=ja});return x};b.prototype.detach=function(){this.children.forEach(function(e){e.detach()});a.prototype.detach.call(this)};b.prototype.formatAt=function(e,f,n,x){this.children.forEachAt(e,f,function(ca,w,aa){ca.formatAt(w,aa,n,x)})};b.prototype.insertAt=function(e,f,n){var x=this.children.find(e);
123
+ e=x[0];x=x[1];e?e.insertAt(x,f,n):(f=null==n?h.create("text",f):h.create(f,n),this.appendChild(f))};b.prototype.insertBefore=function(e,f){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(n){return e instanceof n}))throw new h.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,f)};b.prototype.length=function(){return this.children.reduce(function(e,f){return e+f.length()},0)};b.prototype.moveChildren=function(e,f){this.children.forEach(function(n){e.insertBefore(n,
124
+ f)})};b.prototype.optimize=function(e){a.prototype.optimize.call(this,e);if(0===this.children.length)if(null!=this.statics.defaultChild){var f=h.create(this.statics.defaultChild);this.appendChild(f);f.optimize(e)}else this.remove()};b.prototype.path=function(e,f){void 0===f&&(f=!1);var n=this.children.find(e,f),x=n[0];n=n[1];e=[[this,e]];if(x instanceof b)return e.concat(x.path(n,f));null!=x&&e.push([x,n]);return e};b.prototype.removeChild=function(e){this.children.remove(e)};b.prototype.replace=
125
+ function(e){e instanceof b&&e.moveChildren(this);a.prototype.replace.call(this,e)};b.prototype.split=function(e,f){void 0===f&&(f=!1);if(!f){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();this.parent.insertBefore(n,this.next);this.children.forEachAt(e,this.length(),function(x,ca){x=x.split(ca,f);n.appendChild(x)});return n};b.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};b.prototype.update=function(e){var f=this,n=[],x=[];e.forEach(function(ca){ca.target===
126
+ f.domNode&&"childList"===ca.type&&(n.push.apply(n,ca.addedNodes),x.push.apply(x,ca.removedNodes))});x.forEach(function(ca){null!=ca.parentNode&&"IFRAME"!==ca.tagName&&document.body.compareDocumentPosition(ca)&Node.DOCUMENT_POSITION_CONTAINED_BY||(ca=h.find(ca),null!=ca&&(null!=ca.domNode.parentNode&&ca.domNode.parentNode!==f.domNode||ca.detach()))});n.filter(function(ca){return ca.parentNode==f.domNode}).sort(function(ca,w){return ca===w?0:ca.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?
127
+ 1:-1}).forEach(function(ca){var w=null;null!=ca.nextSibling&&(w=h.find(ca.nextSibling));ca=da(ca);if(ca.next!=w||null==ca.next)null!=ca.parent&&ca.parent.removeChild(f),f.insertBefore(ca,w||void 0)})};return b}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=
128
+ b}a(b,e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(12),r=ha(31);ka=ha(17);var h=ha(1);ha=function(a){function b(e){e=a.call(this,e)||this;e.attributes=new r.default(e.domNode);return e}da(b,a);b.formats=function(e){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()};b.prototype.format=function(e,f){var n=h.query(e);n instanceof y.default?this.attributes.attribute(n,
129
+ f):f&&(null==n||e===this.statics.blotName&&this.formats()[e]===f||this.replaceWith(e,f))};b.prototype.formats=function(){var e=this.attributes.values(),f=this.statics.formats(this.domNode);null!=f&&(e[this.statics.blotName]=f);return e};b.prototype.replaceWith=function(e,f){e=a.prototype.replaceWith.call(this,e,f);this.attributes.copy(e);return e};b.prototype.update=function(e,f){var n=this;a.prototype.update.call(this,e,f);e.some(function(x){return x.target===n.domNode&&"attributes"===x.type})&&
130
+ this.attributes.build()};b.prototype.wrap=function(e,f){e=a.prototype.wrap.call(this,e,f);e instanceof b&&e.statics.scope===this.statics.scope&&this.attributes.move(e);return e};return b}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===
131
+ a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(30);var y=ha(1);ha=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}da(h,r);h.value=function(){return!0};h.prototype.index=function(a,b){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(b,1):-1};h.prototype.position=function(a){var b=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<a&&(b+=1);
132
+ return[this.parent.domNode,b]};h.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a};h.scope=y.Scope.INLINE_BLOT;return h}(ka.default);la.default=ha},function(ka,la,ha){function da(a){this.ops=a;this.offset=this.index=0}var y=ha(11),r=ha(3),h={attributes:{compose:function(a,b,e){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var f=r(!0,{},b);e||(f=Object.keys(f).reduce(function(x,ca){null!=f[ca]&&(x[ca]=f[ca]);return x},{}));for(var n in a)void 0!==
133
+ a[n]&&void 0===b[n]&&(f[n]=a[n]);return 0<Object.keys(f).length?f:void 0},diff:function(a,b){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var e=Object.keys(a).concat(Object.keys(b)).reduce(function(f,n){y(a[n],b[n])||(f[n]=void 0===b[n]?null:b[n]);return f},{});return 0<Object.keys(e).length?e:void 0},transform:function(a,b,e){if("object"!==typeof a)return b;if("object"===typeof b){if(!e)return b;e=Object.keys(b).reduce(function(f,n){void 0===a[n]&&(f[n]=b[n]);return f},{});return 0<Object.keys(e).length?
134
+ e:void 0}}},iterator:function(a){return new da(a)},length:function(a){return"number"===typeof a["delete"]?a["delete"]:"number"===typeof a.retain?a.retain:"string"===typeof a.insert?a.insert.length:1}};da.prototype.hasNext=function(){return Infinity>this.peekLength()};da.prototype.next=function(a){a||(a=Infinity);var b=this.ops[this.index];if(b){var e=this.offset,f=h.length(b);a>=f-e?(a=f-e,this.index+=1,this.offset=0):this.offset+=a;if("number"===typeof b["delete"])return{"delete":a};f={};b.attributes&&
135
+ (f.attributes=b.attributes);"number"===typeof b.retain?f.retain=a:f.insert="string"===typeof b.insert?b.insert.substr(e,a):b.insert;return f}return{retain:Infinity}};da.prototype.peek=function(){return this.ops[this.index]};da.prototype.peekLength=function(){return this.ops[this.index]?h.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 a=this.offset,b=this.index,e=this.next(),f=this.ops.slice(this.index);this.offset=a;this.index=b;return[e].concat(f)}return[]};ka.exports=h},function(ka){var la=function(){function ha(e,f){return null!=f&&e instanceof f}function da(e,f,n,x,ca){function w(ea,ba){if(null===ea)return null;if(0===ba||"object"!=typeof ea)return ea;if(ha(ea,h))var ma=new h;else if(ha(ea,a))ma=new a;else if(ha(ea,b))ma=
137
+ new b(function(ua,va){ea.then(function(ra){ua(w(ra,ba-1))},function(ra){va(w(ra,ba-1))})});else if(da.__isArray(ea))ma=[];else if(da.__isRegExp(ea))ma=new RegExp(ea.source,r(ea)),ea.lastIndex&&(ma.lastIndex=ea.lastIndex);else if(da.__isDate(ea))ma=new Date(ea.getTime());else{if(fa&&qa.isBuffer(ea))return ma=qa.allocUnsafe?qa.allocUnsafe(ea.length):new qa(ea.length),ea.copy(ma),ma;if(ha(ea,Error))ma=Object.create(ea);else if("undefined"==typeof x){var ta=Object.getPrototypeOf(ea);ma=Object.create(ta)}else ma=
138
+ Object.create(x),ta=x}if(f){var na=aa.indexOf(ea);if(-1!=na)return ja[na];aa.push(ea);ja.push(ma)}ha(ea,h)&&ea.forEach(function(ua,va){va=w(va,ba-1);ua=w(ua,ba-1);ma.set(va,ua)});ha(ea,a)&&ea.forEach(function(ua){ua=w(ua,ba-1);ma.add(ua)});for(var oa in ea){var pa;ta&&(pa=Object.getOwnPropertyDescriptor(ta,oa));pa&&null==pa.set||(ma[oa]=w(ea[oa],ba-1))}if(Object.getOwnPropertySymbols)for(na=Object.getOwnPropertySymbols(ea),oa=0;oa<na.length;oa++)if(pa=na[oa],ta=Object.getOwnPropertyDescriptor(ea,
139
+ pa),!ta||ta.enumerable||ca)ma[pa]=w(ea[pa],ba-1),ta.enumerable||Object.defineProperty(ma,pa,{enumerable:!1});if(ca)for(na=Object.getOwnPropertyNames(ea),oa=0;oa<na.length;oa++)pa=na[oa],ta=Object.getOwnPropertyDescriptor(ea,pa),ta&&ta.enumerable||(ma[pa]=w(ea[pa],ba-1),Object.defineProperty(ma,pa,{enumerable:!1}));return ma}"object"===typeof f&&(n=f.depth,x=f.prototype,ca=f.includeNonEnumerable,f=f.circular);var aa=[],ja=[],fa="undefined"!=typeof qa;"undefined"==typeof f&&(f=!0);"undefined"==typeof n&&
140
+ (n=Infinity);return w(e,n)}function y(e){return Object.prototype.toString.call(e)}function r(e){var f="";e.global&&(f+="g");e.ignoreCase&&(f+="i");e.multiline&&(f+="m");return f}try{var h=Map}catch(e){h=function(){}}try{var a=Set}catch(e){a=function(){}}try{var b=Promise}catch(e){b=function(){}}da.clonePrototype=function(e){function f(){}if(null===e)return null;f.prototype=e;return new f};da.__objToStr=y;da.__isDate=function(e){return"object"===typeof e&&"[object Date]"===y(e)};da.__isArray=function(e){return"object"===
141
+ typeof e&&"[object Array]"===y(e)};da.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===y(e)};da.__getRegExpFlags=r;return da}();"object"===typeof ka&&ka.exports&&(ka.exports=la)},function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?ja:fa}function r(ja,fa){if("function"!==typeof fa&&null!==
142
+ fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}function h(ja){return ja instanceof ca.default||ja instanceof x.BlockEmbed}Object.defineProperty(la,"__esModule",{value:!0});var a=function(){return function(ja,fa){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ea=
143
+ [],ba=!0,ma=!1,ta=void 0;try{for(var na=ja[Symbol.iterator](),oa;!(ba=(oa=na.next()).done)&&(ea.push(oa.value),!fa||ea.length!==fa);ba=!0);}catch(pa){ma=!0,ta=pa}finally{try{if(!ba&&na["return"])na["return"]()}finally{if(ma)throw ta;}}return ea}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function ja(fa,ea){for(var ba=0;ba<ea.length;ba++){var ma=ea[ba];ma.enumerable=ma.enumerable||!1;ma.configurable=!0;"value"in ma&&(ma.writable=!0);Object.defineProperty(fa,
144
+ ma.key,ma)}}return function(fa,ea,ba){ea&&ja(fa.prototype,ea);ba&&ja(fa,ba);return fa}}(),e=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}};ka=ha(0);var f=da(ka);ka=ha(8);var n=da(ka),x=ha(4),ca=da(x);ka=ha(16);var w=da(ka);ka=ha(13);var aa=da(ka);ha=ha(25);ha=da(ha);ka=function(fa){function ea(ba,
145
+ ma){if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");ba=y(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba));ba.emitter=ma.emitter;Array.isArray(ma.whitelist)&&(ba.whitelist=ma.whitelist.reduce(function(ta,na){ta[na]=!0;return ta},{}));ba.domNode.addEventListener("DOMNodeInserted",function(){});ba.optimize();ba.enable();return ba}r(ea,fa);b(ea,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
146
+ {key:"deleteAt",value:function(ba,ma){var ta=this.line(ba),na=a(ta,2);ta=na[0];var oa=na[1];na=this.line(ba+ma);na=a(na,1)[0];e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ba,ma);if(null!=na&&ta!==na&&0<oa){if(ta instanceof x.BlockEmbed||na instanceof x.BlockEmbed){this.optimize();return}if(ta instanceof aa.default){if(ba=ta.newlineIndex(ta.length(),!0),-1<ba&&(ta=ta.split(ba+1),ta===na)){this.optimize();return}}else na instanceof aa.default&&(ba=na.newlineIndex(0),
147
+ -1<ba&&na.split(ba+1));ta.moveChildren(na,na.children.head instanceof w.default?null:na.children.head);ta.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(ba,ma,ta,na){if(null==this.whitelist||this.whitelist[ta])e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ba,ma,ta,na),this.optimize()}},{key:"insertAt",value:function(ba,
148
+ ma,ta){if(null==ta||null==this.whitelist||this.whitelist[ma])ba>=this.length()?null==ta||null==f.default.query(ma,f.default.Scope.BLOCK)?(ba=f.default.create(this.statics.defaultChild),this.appendChild(ba),null==ta&&ma.endsWith("\n")&&(ma=ma.slice(0,-1)),ba.insertAt(0,ma,ta)):(ma=f.default.create(ma,ta),this.appendChild(ma)):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta),this.optimize()}},{key:"insertBefore",value:function(ba,ma){if(ba.statics.scope===
149
+ f.default.Scope.INLINE_BLOT){var ta=f.default.create(this.statics.defaultChild);ta.appendChild(ba);ba=ta}e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ba,ma)}},{key:"leaf",value:function(ba){return this.path(ba).pop()||[null,-1]}},{key:"line",value:function(ba){return ba===this.length()?this.line(ba-1):this.descendant(h,ba)}},{key:"lines",value:function(){return function oa(ma,ta,na){var pa=[],ua=na;ma.children.forEachAt(ta,na,function(va,ra,xa){h(va)?
150
+ pa.push(va):va instanceof f.default.Container&&(pa=pa.concat(oa(va,ra,ua)));ua-=xa});return pa}(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 ba=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],ma=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ba,
151
+ ma),0<ba.length&&this.emitter.emit(n.default.events.SCROLL_OPTIMIZE,ba,ma))}},{key:"path",value:function(ba){return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ba).slice(1)}},{key:"update",value:function(ba){if(!0!==this.batch){var ma=n.default.sources.USER;"string"===typeof ba&&(ma=ba);Array.isArray(ba)||(ba=this.observer.takeRecords());0<ba.length&&this.emitter.emit(n.default.events.SCROLL_BEFORE_UPDATE,ma,ba);e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
152
+ "update",this).call(this,ba.concat([]));0<ba.length&&this.emitter.emit(n.default.events.SCROLL_UPDATE,ma,ba)}}}]);return ea}(f.default.Scroll);ka.blotName="scroll";ka.className="ql-editor";ka.tagName="DIV";ka.defaultChild="block";ka.allowedChildren=[ca.default,x.BlockEmbed,ha.default];la.default=ka},function(ka,la,ha){function da(xa){return xa&&xa.__esModule?xa:{default:xa}}function y(xa,Aa,Ga){Aa in xa?Object.defineProperty(xa,Aa,{value:Ga,enumerable:!0,configurable:!0,writable:!0}):xa[Aa]=Ga;return xa}
153
+ function r(xa,Aa){if(!xa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Aa||"object"!==typeof Aa&&"function"!==typeof Aa?xa:Aa}function h(xa,Aa){if("function"!==typeof Aa&&null!==Aa)throw new TypeError("Super expression must either be null or a function, not "+typeof Aa);xa.prototype=Object.create(Aa&&Aa.prototype,{constructor:{value:xa,enumerable:!1,writable:!0,configurable:!0}});Aa&&(Object.setPrototypeOf?Object.setPrototypeOf(xa,Aa):xa.__proto__=Aa)}
154
+ function a(xa,Aa){var Ga,Ka=xa===ra.keys.LEFT?"prefix":"suffix";return Ga={key:xa,shiftKey:Aa,altKey:null},y(Ga,Ka,/^$/),y(Ga,"handler",function(Da){var Pa=Da.index;xa===ra.keys.RIGHT&&(Pa+=Da.length+1);Pa=this.quill.getLeaf(Pa);if(!(ja(Pa,1)[0]instanceof oa.default.Embed))return!0;xa===ra.keys.LEFT?Aa?this.quill.setSelection(Da.index-1,Da.length+1,pa.default.sources.USER):this.quill.setSelection(Da.index-1,pa.default.sources.USER):Aa?this.quill.setSelection(Da.index,Da.length+1,pa.default.sources.USER):
155
+ this.quill.setSelection(Da.index+Da.length+1,pa.default.sources.USER);return!1}),Ga}function b(xa,Aa){if(!(0===xa.index||1>=this.quill.getLength())){var Ga=this.quill.getLine(xa.index),Ka=ja(Ga,1)[0];Ga={};if(0===Aa.offset){var Da=this.quill.getLine(xa.index-1);Da=ja(Da,1)[0];null!=Da&&1<Da.length()&&(Ga=Ka.formats(),Ka=this.quill.getFormat(xa.index-1,1),Ga=na.default.attributes.diff(Ga,Ka)||{})}Aa=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Aa.prefix)?2:1;this.quill.deleteText(xa.index-Aa,Aa,pa.default.sources.USER);
156
+ 0<Object.keys(Ga).length&&this.quill.formatLine(xa.index-Aa,Aa,Ga,pa.default.sources.USER);this.quill.focus()}}function e(xa,Aa){var Ga=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Aa.suffix)?2:1;if(!(xa.index>=this.quill.getLength()-Ga)){var Ka={},Da=0,Pa=this.quill.getLine(xa.index);Pa=ja(Pa,1)[0];Aa.offset>=Pa.length()-1&&(Aa=this.quill.getLine(xa.index+1),Aa=ja(Aa,1)[0])&&(Ka=Pa.formats(),Da=this.quill.getFormat(xa.index,1),Ka=na.default.attributes.diff(Ka,Da)||{},Da=Aa.length());this.quill.deleteText(xa.index,
157
+ Ga,pa.default.sources.USER);0<Object.keys(Ka).length&&this.quill.formatLine(xa.index+Da-1,Ga,Ka,pa.default.sources.USER)}}function f(xa){var Aa=this.quill.getLines(xa),Ga={};1<Aa.length&&(Ga=Aa[0].formats(),Aa=Aa[Aa.length-1].formats(),Ga=na.default.attributes.diff(Aa,Ga)||{});this.quill.deleteText(xa,pa.default.sources.USER);0<Object.keys(Ga).length&&this.quill.formatLine(xa.index,1,Ga,pa.default.sources.USER);this.quill.setSelection(xa.index,pa.default.sources.SILENT);this.quill.focus()}function n(xa,
158
+ Aa){var Ga=this;0<xa.length&&this.quill.scroll.deleteAt(xa.index,xa.length);var Ka=Object.keys(Aa.format).reduce(function(Da,Pa){oa.default.query(Pa,oa.default.Scope.BLOCK)&&!Array.isArray(Aa.format[Pa])&&(Da[Pa]=Aa.format[Pa]);return Da},{});this.quill.insertText(xa.index,"\n",Ka,pa.default.sources.USER);this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.focus();Object.keys(Aa.format).forEach(function(Da){null==Ka[Da]&&(Array.isArray(Aa.format[Da])||"link"!==Da&&Ga.quill.format(Da,
159
+ Aa.format[Da],pa.default.sources.USER))})}function x(xa){return{key:ra.keys.TAB,shiftKey:!xa,format:{"code-block":!0},handler:function(Aa){var Ga=oa.default.query("code-block"),Ka=Aa.index,Da=Aa.length;Aa=this.quill.scroll.descendant(Ga,Ka);Aa=ja(Aa,2);var Pa=Aa[0],Qa=Aa[1];if(null!=Pa){Aa=this.quill.getIndex(Pa);var Ca=Pa.newlineIndex(Qa,!0)+1;Aa=Pa.newlineIndex(Aa+Qa+Da);Aa=Pa.domNode.textContent.slice(Ca,Aa).split("\n");Qa=0;Aa.forEach(function(Ia,Ha){xa?(Pa.insertAt(Ca+Qa,Ga.TAB),Qa+=Ga.TAB.length,
160
+ 0===Ha?Ka+=Ga.TAB.length:Da+=Ga.TAB.length):Ia.startsWith(Ga.TAB)&&(Pa.deleteAt(Ca+Qa,Ga.TAB.length),Qa-=Ga.TAB.length,0===Ha?Ka-=Ga.TAB.length:Da-=Ga.TAB.length);Qa+=Ia.length+1});this.quill.update(pa.default.sources.USER);this.quill.setSelection(Ka,Da,pa.default.sources.SILENT)}}}}function ca(xa){return{key:xa[0].toUpperCase(),shortKey:!0,handler:function(Aa,Ga){this.quill.format(xa,!Ga.format[xa],pa.default.sources.USER)}}}function w(xa){if("string"===typeof xa||"number"===typeof xa)return w({key:xa});
161
+ "object"===("undefined"===typeof xa?"undefined":aa(xa))&&(xa=(0,ea.default)(xa,!1));if("string"===typeof xa.key)if(null!=ra.keys[xa.key.toUpperCase()])xa.key=ra.keys[xa.key.toUpperCase()];else if(1===xa.key.length)xa.key=xa.key.toUpperCase().charCodeAt(0);else return null;xa.shortKey&&(xa[va]=xa.shortKey,delete xa.shortKey);return xa}Object.defineProperty(la,"__esModule",{value:!0});la.SHORTKEY=la.default=void 0;var aa="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(xa){return typeof xa}:
162
+ function(xa){return xa&&"function"===typeof Symbol&&xa.constructor===Symbol&&xa!==Symbol.prototype?"symbol":typeof xa},ja=function(){return function(xa,Aa){if(Array.isArray(xa))return xa;if(Symbol.iterator in Object(xa)){var Ga=[],Ka=!0,Da=!1,Pa=void 0;try{for(var Qa=xa[Symbol.iterator](),Ca;!(Ka=(Ca=Qa.next()).done)&&(Ga.push(Ca.value),!Aa||Ga.length!==Aa);Ka=!0);}catch(Ia){Da=!0,Pa=Ia}finally{try{if(!Ka&&Qa["return"])Qa["return"]()}finally{if(Da)throw Pa;}}return Ga}throw new TypeError("Invalid attempt to destructure non-iterable instance");
163
+ }}(),fa=function(){function xa(Aa,Ga){for(var Ka=0;Ka<Ga.length;Ka++){var Da=Ga[Ka];Da.enumerable=Da.enumerable||!1;Da.configurable=!0;"value"in Da&&(Da.writable=!0);Object.defineProperty(Aa,Da.key,Da)}}return function(Aa,Ga,Ka){Ga&&xa(Aa.prototype,Ga);Ka&&xa(Aa,Ka);return Aa}}();ka=ha(21);var ea=da(ka);ka=ha(11);var ba=da(ka);ka=ha(3);var ma=da(ka);ka=ha(2);var ta=da(ka);ka=ha(20);var na=da(ka);ka=ha(0);var oa=da(ka);ka=ha(5);var pa=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var ua=(0,ka.default)("quill:keyboard"),
164
+ va=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ra=function(xa){function Aa(Ga,Ka){if(!(this instanceof Aa))throw new TypeError("Cannot call a class as a function");var Da=r(this,(Aa.__proto__||Object.getPrototypeOf(Aa)).call(this,Ga,Ka));Da.bindings={};Object.keys(Da.options.bindings).forEach(function(Pa){("list autofill"!==Pa||null==Ga.scroll.whitelist||Ga.scroll.whitelist.list)&&Da.options.bindings[Pa]&&Da.addBinding(Da.options.bindings[Pa])});Da.addBinding({key:Aa.keys.ENTER,shiftKey:null},
165
+ n);Da.addBinding({key:Aa.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0},b),Da.addBinding({key:Aa.keys.DELETE},{collapsed:!0},e)):(Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},b),Da.addBinding({key:Aa.keys.DELETE},{collapsed:!0,suffix:/^.?$/},e));Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!1},f);Da.addBinding({key:Aa.keys.DELETE},{collapsed:!1},f);Da.addBinding({key:Aa.keys.BACKSPACE,
166
+ altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},b);Da.listen();return Da}h(Aa,xa);fa(Aa,null,[{key:"match",value:function(Ga,Ka){Ka=w(Ka);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Da){return!!Ka[Da]!==Ga[Da]&&null!==Ka[Da]})?!1:Ka.key===(Ga.which||Ga.keyCode)}}]);fa(Aa,[{key:"addBinding",value:function(Ga){var Ka=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Da=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Pa=w(Ga);if(null==
167
+ Pa||null==Pa.key)return ua.warn("Attempted to add invalid keyboard binding",Pa);"function"===typeof Ka&&(Ka={handler:Ka});"function"===typeof Da&&(Da={handler:Da});Pa=(0,ma.default)(Pa,Ka,Da);this.bindings[Pa.key]=this.bindings[Pa.key]||[];this.bindings[Pa.key].push(Pa)}},{key:"listen",value:function(){var Ga=this;this.quill.root.addEventListener("keydown",function(Ka){if(!Ka.defaultPrevented){var Da=(Ga.bindings[Ka.which||Ka.keyCode]||[]).filter(function(Ma){return Aa.match(Ka,Ma)});if(0!==Da.length){var Pa=
168
+ Ga.quill.getSelection();if(null!=Pa&&Ga.quill.hasFocus()){var Qa=Ga.quill.getLine(Pa.index),Ca=ja(Qa,2);Qa=Ca[0];Ca=Ca[1];var Ia=Ga.quill.getLeaf(Pa.index),Ha=ja(Ia,2);Ia=Ha[0];Ha=Ha[1];var wa=0===Pa.length?[Ia,Ha]:Ga.quill.getLeaf(Pa.index+Pa.length),Fa=ja(wa,2);wa=Fa[0];Fa=Fa[1];Ia=Ia instanceof oa.default.Text?Ia.value().slice(0,Ha):"";Ha=wa instanceof oa.default.Text?wa.value().slice(Fa):"";var Oa={collapsed:0===Pa.length,empty:0===Pa.length&&1>=Qa.length(),format:Ga.quill.getFormat(Pa),offset:Ca,
169
+ prefix:Ia,suffix:Ha};Da.some(function(Ma){if(null!=Ma.collapsed&&Ma.collapsed!==Oa.collapsed||null!=Ma.empty&&Ma.empty!==Oa.empty||null!=Ma.offset&&Ma.offset!==Oa.offset)return!1;if(Array.isArray(Ma.format)){if(Ma.format.every(function(Ua){return null==Oa.format[Ua]}))return!1}else if("object"===aa(Ma.format)&&!Object.keys(Ma.format).every(function(Ua){return!0===Ma.format[Ua]?null!=Oa.format[Ua]:!1===Ma.format[Ua]?null==Oa.format[Ua]:(0,ba.default)(Ma.format[Ua],Oa.format[Ua])}))return!1;return null!=
170
+ Ma.prefix&&!Ma.prefix.test(Oa.prefix)||null!=Ma.suffix&&!Ma.suffix.test(Oa.suffix)?!1:!0!==Ma.handler.call(Ga,Pa,Oa)})&&Ka.preventDefault()}}}})}}]);return Aa}(ha.default);ra.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};ra.DEFAULTS={bindings:{bold:ca("bold"),italic:ca("italic"),underline:ca("underline"),indent:{key:ra.keys.TAB,format:["blockquote","indent","list"],handler:function(xa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","+1",
171
+ pa.default.sources.USER)}},outdent:{key:ra.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(xa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","-1",pa.default.sources.USER)}},"outdent backspace":{key:ra.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(xa,Aa){null!=Aa.format.indent?this.quill.format("indent","-1",pa.default.sources.USER):null!=Aa.format.list&&this.quill.format("list",
172
+ !1,pa.default.sources.USER)}},"indent code-block":x(!0),"outdent code-block":x(!1),"remove tab":{key:ra.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(xa){this.quill.deleteText(xa.index-1,1,pa.default.sources.USER)}},tab:{key:ra.keys.TAB,handler:function(xa){this.quill.history.cutoff();var Aa=(new ta.default).retain(xa.index).delete(xa.length).insert("\t");this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(xa.index+1,pa.default.sources.SILENT)}},
173
+ "list empty enter":{key:ra.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(xa,Aa){this.quill.format("list",!1,pa.default.sources.USER);Aa.format.indent&&this.quill.format("indent",!1,pa.default.sources.USER)}},"checklist enter":{key:ra.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(xa){var Aa=this.quill.getLine(xa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];var Ka=(0,ma.default)({},Aa.formats(),{list:"checked"});Aa=(new ta.default).retain(xa.index).insert("\n",Ka).retain(Aa.length()-
174
+ Ga-1).retain(1,{list:"unchecked"});this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:ra.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(xa,Aa){var Ga=this.quill.getLine(xa.index),Ka=ja(Ga,2);Ga=Ka[0];Ka=Ka[1];Aa=(new ta.default).retain(xa.index).insert("\n",Aa.format).retain(Ga.length()-Ka-1).retain(1,{header:null});this.quill.updateContents(Aa,pa.default.sources.USER);
175
+ this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(xa,Aa){var Ga=Aa.prefix.length,Ka=this.quill.getLine(xa.index),Da=ja(Ka,2);Ka=Da[0];Da=Da[1];if(Da>Ga)return!0;switch(Aa.prefix.trim()){case "[]":case "[ ]":Aa="unchecked";break;case "[x]":Aa="checked";break;case "-":case "*":Aa="bullet";break;default:Aa="ordered"}this.quill.insertText(xa.index,
176
+ " ",pa.default.sources.USER);this.quill.history.cutoff();Aa=(new ta.default).retain(xa.index-Da).delete(Ga+1).retain(Ka.length()-2-Da).retain(1,{list:Aa});this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(xa.index-Ga,pa.default.sources.SILENT)}},"code exit":{key:ra.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(xa){var Aa=this.quill.getLine(xa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];xa=(new ta.default).retain(xa.index+
177
+ Aa.length()-Ga-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(xa,pa.default.sources.USER)}},"embed left":a(ra.keys.LEFT,!1),"embed left shift":a(ra.keys.LEFT,!0),"embed right":a(ra.keys.RIGHT,!1),"embed right shift":a(ra.keys.RIGHT,!0)}};la.default=ra;la.SHORTKEY=va},function(ka,la,ha){function da(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,
178
+ enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=[],x=!0,ca=!1,w=void 0;try{for(var aa=e[Symbol.iterator](),ja;!(x=(ja=aa.next()).done)&&(n.push(ja.value),!f||n.length!==f);x=!0);}catch(fa){ca=!0,w=fa}finally{try{if(!x&&aa["return"])aa["return"]()}finally{if(ca)throw w;}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance");
179
+ }}(),r=function ca(f,n,x){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,n);if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return ca(f,n,x)}else{if("value"in w)return w.value;n=w.get;return void 0===n?void 0:n.call(x)}},h=function(){function f(n,x){for(var ca=0;ca<x.length;ca++){var w=x[ca];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(n,w.key,w)}}return function(n,x,ca){x&&f(n.prototype,x);ca&&f(n,ca);return n}}(),
180
+ a=(ka=ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(f){function n(x,ca){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");x=(n.__proto__||Object.getPrototypeOf(n)).call(this,x);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");x=!x||"object"!==typeof x&&"function"!==typeof x?this:x;x.selection=ca;x.textNode=document.createTextNode(n.CONTENTS);x.domNode.appendChild(x.textNode);
181
+ x._length=0;return x}da(n,f);h(n,null,[{key:"value",value:function(){}}]);h(n,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(x,ca){if(0!==this._length)return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,x,ca);for(var w=this,aa=0;null!=w&&w.statics.scope!==a.default.Scope.BLOCK_BLOT;)aa+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=n.CONTENTS.length,w.optimize(),w.formatAt(aa,n.CONTENTS.length,
182
+ x,ca),this._length=0)}},{key:"index",value:function(x,ca){return x===this.textNode?0:r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,x,ca)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(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 x=this.textNode,ca=this.selection.getNativeRange(),w=void 0,aa=void 0,ja=void 0;null!=ca&&ca.start.node===x&&ca.end.node===x&&(ja=[x,ca.start.offset,ca.end.offset],w=ja[0],aa=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==n.CONTENTS&&(x=this.textNode.data.split(n.CONTENTS).join(""),this.next instanceof b.default?(w=this.next.domNode,this.next.insertAt(0,
184
+ x),this.textNode.data=n.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(n.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=aa)return aa=[aa,ja].map(function(fa){return Math.max(0,Math.min(w.data.length,fa-1))}),ja=y(aa,2),aa=ja[0],ja=ja[1],{startNode:w,startOffset:aa,endNode:w,endOffset:ja}}}},{key:"update",value:function(x,ca){var w=this;x.some(function(aa){return"characterData"===aa.type&&
185
+ aa.target===w.textNode})&&(x=this.restore())&&(ca.range=x)}},{key:"value",value:function(){return""}}]);return n}(a.default.Embed);ha.blotName="cursor";ha.className="ql-cursor";ha.tagName="span";ha.CONTENTS="\ufeff";la.default=ha},function(ka,la,ha){function da(r,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});h&&
186
+ (Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}Object.defineProperty(la,"__esModule",{value:!0});ka=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var y=(ha=ha(4))&&ha.__esModule?ha:{default:ha};ka=function(r){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var a=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==
187
+ typeof a&&"function"!==typeof a?this:a}da(h,r);return h}(ka.default.Container);ka.allowedChildren=[y.default,ha.BlockEmbed,ka];la.default=ka},function(ka,la,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(la,
188
+ "__esModule",{value:!0});la.ColorStyle=la.ColorClass=la.ColorAttributor=void 0;var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in
189
+ x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}},h=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));ka=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).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?this:f}da(e,b);y(e,[{key:"value",value:function(f){f=r(e.prototype.__proto__||
190
+ Object.getPrototypeOf(e.prototype),"value",this).call(this,f);if(!f.startsWith("rgb("))return f;f=f.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+f.split(",").map(function(n){return("00"+parseInt(n).toString(16)).slice(-2)}).join("")}}]);return e}(h.default.Attributor.Style);ha=new h.default.Attributor.Class("color","ql-color",{scope:h.default.Scope.INLINE});h=new ka("color","color",{scope:h.default.Scope.INLINE});la.ColorAttributor=ka;la.ColorClass=ha;la.ColorStyle=h},function(ka,la,ha){function da(a,
191
+ 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)}function y(a,b){var e=document.createElement("a");e.href=a;a=e.href.slice(0,e.href.indexOf(":"));return-1<b.indexOf(a)}Object.defineProperty(la,"__esModule",{value:!0});la.sanitize=la.default=void 0;
192
+ var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=function(b){function e(){if(!(this instanceof
193
+ e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).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?this:f}da(e,b);r(e,[{key:"format",value:function(f,n){if(f!==this.statics.blotName||!n)return h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,f,n);n=this.constructor.sanitize(n);this.domNode.setAttribute("href",
194
+ n)}}],[{key:"create",value:function(f){var n=h(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,f);f=this.sanitize(f);n.setAttribute("href",f);n.setAttribute("rel","noopener noreferrer");n.setAttribute("target","_blank");return n}},{key:"formats",value:function(f){return f.getAttribute("href")}},{key:"sanitize",value:function(f){return y(f,this.PROTOCOL_WHITELIST)?f:this.SANITIZED_URL}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(6)).default);ka.blotName="link";
195
+ ka.tagName="A";ka.SANITIZED_URL="about:blank";ka.PROTOCOL_WHITELIST=["http","https","mailto","tel"];la.default=ka;la.sanitize=y},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"===typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||
196
+ !1;x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=(ka=ha(23))&&ka.__esModule?ka:{default:ka},h=(ha=ha(107))&&ha.__esModule?ha:{default:ha},a=0;ha=function(){function b(e){var f=this;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.select=e;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(){f.togglePicker()});this.label.addEventListener("keydown",function(n){switch(n.keyCode){case r.default.keys.ENTER:f.togglePicker();break;case r.default.keys.ESCAPE:f.escape(),n.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}y(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var e=this.label;e.setAttribute("aria-expanded","true"!==e.getAttribute("aria-expanded"));
198
+ e=this.options;e.setAttribute("aria-hidden","true"!==e.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(e){var f=this,n=document.createElement("span");n.tabIndex="0";n.setAttribute("role","button");n.classList.add("ql-picker-item");e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value"));e.textContent&&n.setAttribute("data-label",e.textContent);n.addEventListener("click",function(){f.selectItem(n,!0)});n.addEventListener("keydown",function(x){switch(x.keyCode){case r.default.keys.ENTER:f.selectItem(n,
199
+ !0);x.preventDefault();break;case r.default.keys.ESCAPE:f.escape(),x.preventDefault()}});return n}},{key:"buildLabel",value:function(){var e=document.createElement("span");e.classList.add("ql-picker-label");e.innerHTML=h.default;e.tabIndex="0";e.setAttribute("role","button");e.setAttribute("aria-expanded","false");this.container.appendChild(e);return e}},{key:"buildOptions",value:function(){var e=this,f=document.createElement("span");f.classList.add("ql-picker-options");f.setAttribute("aria-hidden",
200
+ "true");f.tabIndex="-1";f.id="ql-picker-options-"+a;a+=1;this.label.setAttribute("aria-controls",f.id);this.options=f;[].slice.call(this.select.options).forEach(function(n){var x=e.buildItem(n);f.appendChild(x);!0===n.selected&&e.selectItem(x)});this.container.appendChild(f)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(f){e.container.setAttribute(f.name,f.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
201
+ {key:"escape",value:function(){var e=this;this.close();setTimeout(function(){return e.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(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),
202
+ this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),f&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":da(Event))&&(f=document.createEvent("Event"),
203
+ f.initEvent("change",!0,!0),this.select.dispatchEvent(f)),this.close())))}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(f)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);return b}();la.default=ha},function(ka,la,ha){function da(ja){return ja&&
204
+ ja.__esModule?ja:{default:ja}}Object.defineProperty(la,"__esModule",{value:!0});ka=ha(0);ka=da(ka);var y=ha(5);y=da(y);var r=ha(4),h=da(r),a=ha(16);a=da(a);var b=ha(25);b=da(b);var e=ha(24);e=da(e);var f=ha(35);f=da(f);var n=ha(6);n=da(n);var x=ha(22);x=da(x);var ca=ha(7);ca=da(ca);var w=ha(55);w=da(w);var aa=ha(42);aa=da(aa);ha=ha(23);ha=da(ha);y.default.register({"blots/block":h.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":b.default,"blots/cursor":e.default,
205
+ "blots/embed":f.default,"blots/inline":n.default,"blots/scroll":x.default,"blots/text":ca.default,"modules/clipboard":w.default,"modules/history":aa.default,"modules/keyboard":ha.default});ka.default.register(h.default,a.default,e.default,n.default,x.default,ca.default);la.default=y.default},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da=ha(1);ka=function(){function y(r){this.domNode=r;this.domNode[da.DATA_KEY]={blot:this}}Object.defineProperty(y.prototype,"statics",{get:function(){return this.constructor},
206
+ enumerable:!0,configurable:!0});y.create=function(r){if(null==this.tagName)throw new da.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof r&&(r=r.toUpperCase(),parseInt(r).toString()===r&&(r=parseInt(r))),r="number"===typeof r?document.createElement(this.tagName[r-1]):-1<this.tagName.indexOf(r)?document.createElement(r):document.createElement(this.tagName[0])):r=document.createElement(this.tagName);this.className&&r.classList.add(this.className);return r};
207
+ y.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};y.prototype.clone=function(){return da.create(this.domNode.cloneNode(!1))};y.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[da.DATA_KEY]};y.prototype.deleteAt=function(r,h){this.isolate(r,h).remove()};y.prototype.formatAt=function(r,h,a,b){r=this.isolate(r,h);null!=da.query(a,da.Scope.BLOT)&&b?r.wrap(a,b):null!=da.query(a,da.Scope.ATTRIBUTE)&&(h=da.create(this.statics.scope),
208
+ r.wrap(h),h.format(a,b))};y.prototype.insertAt=function(r,h,a){h=null==a?da.create("text",h):da.create(h,a);r=this.split(r);this.parent.insertBefore(h,r)};y.prototype.insertInto=function(r,h){void 0===h&&(h=null);null!=this.parent&&this.parent.children.remove(this);var a=null;r.children.insertBefore(this,h);null!=h&&(a=h.domNode);this.domNode.parentNode==r.domNode&&this.domNode.nextSibling==a||r.domNode.insertBefore(this.domNode,a);this.parent=r;this.attach()};y.prototype.isolate=function(r,h){r=
209
+ this.split(r);r.split(h);return r};y.prototype.length=function(){return 1};y.prototype.offset=function(r){void 0===r&&(r=this.parent);return null==this.parent||this==r?0:this.parent.children.offset(this)+this.parent.offset(r)};y.prototype.optimize=function(){null!=this.domNode[da.DATA_KEY]&&delete this.domNode[da.DATA_KEY].mutations};y.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};y.prototype.replace=function(r){null!=r.parent&&
210
+ (r.parent.insertBefore(this,r.next),r.remove())};y.prototype.replaceWith=function(r,h){r="string"===typeof r?da.create(r,h):r;r.replace(this);return r};y.prototype.split=function(r){return 0===r?this:this.next};y.prototype.update=function(){};y.prototype.wrap=function(r,h){r="string"===typeof r?da.create(r,h):r;null!=this.parent&&this.parent.insertBefore(r,this.next);r.appendChild(this);return r};y.blotName="abstract";return y}();la.default=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",
211
+ {value:!0});var da=ha(12),y=ha(32),r=ha(33),h=ha(1);ka=function(){function a(b){this.attributes={};this.domNode=b;this.build()}a.prototype.attribute=function(b,e){e?b.add(this.domNode,e)&&(null!=b.value(this.domNode)?this.attributes[b.attrName]=b:delete this.attributes[b.attrName]):(b.remove(this.domNode),delete this.attributes[b.attrName])};a.prototype.build=function(){var b=this;this.attributes={};var e=da.default.keys(this.domNode),f=y.default.keys(this.domNode),n=r.default.keys(this.domNode);
212
+ e.concat(f).concat(n).forEach(function(x){x=h.query(x,h.Scope.ATTRIBUTE);x instanceof da.default&&(b.attributes[x.attrName]=x)})};a.prototype.copy=function(b){var e=this;Object.keys(this.attributes).forEach(function(f){var n=e.attributes[f].value(e.domNode);b.format(f,n)})};a.prototype.move=function(b){var e=this;this.copy(b);Object.keys(this.attributes).forEach(function(f){e.attributes[f].remove(e.domNode)});this.attributes={}};a.prototype.values=function(){var b=this;return Object.keys(this.attributes).reduce(function(e,
213
+ f){e[f]=b.attributes[f].value(b.domNode);return e},{})};return a}();la.default=ka},function(ka,la,ha){function da(r,h){return(r.getAttribute("class")||"").split(/\s+/).filter(function(a){return 0===a.indexOf(h+"-")})}var y=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):
214
+ (b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}y(h,r);h.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(b){return b.split("-").slice(0,-1).join("-")})};h.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;this.remove(a);a.classList.add(this.keyName+"-"+b);return!0};h.prototype.remove=function(a){da(a,this.keyName).forEach(function(b){a.classList.remove(b)});
215
+ 0===a.classList.length&&a.removeAttribute("class")};h.prototype.value=function(a){var b=(da(a,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(a,b)?b:""};return h}(ha(12).default);la.default=ka},function(ka,la,ha){function da(r){r=r.split("-");var h=r.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return r[0]+h}var y=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,
216
+ a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}y(h,r);h.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(b){return b.split(":")[0].trim()})};h.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;a.style[da(this.keyName)]=
217
+ b;return!0};h.prototype.remove=function(a){a.style[da(this.keyName)]="";a.getAttribute("style")||a.removeAttribute("style")};h.prototype.value=function(a){var b=a.style[da(this.keyName)];return this.canAdd(a,b)?b:""};return h}(ha(12).default);la.default=ka},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});var ha=function(){function da(y,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,
218
+ a)}}return function(y,r,h){r&&da(y.prototype,r);h&&da(y,h);return y}}();ka=function(){function da(y,r){if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");this.quill=y;this.options=r;this.modules={}}ha(da,[{key:"init",value:function(){var y=this;Object.keys(this.options.modules).forEach(function(r){null==y.modules[r]&&y.addModule(r)})}},{key:"addModule",value:function(y){var r=this.quill.constructor.import("modules/"+y);this.modules[y]=new r(this.quill,this.options.modules[y]||
219
+ {});return this.modules[y]}}]);return da}();ka.DEFAULTS={modules:{}};ka.themes={"default":ka};la.default=ka},function(ka,la,ha){function da(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function y(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,
220
+ writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(la,"__esModule",{value:!0});var r=function(){function e(f,n){for(var x=0;x<n.length;x++){var ca=n[x];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(f,ca.key,ca)}}return function(f,n,x){n&&e(f.prototype,n);x&&e(f,x);return f}}(),h=function ca(f,n,x){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,n);
221
+ if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return ca(f,n,x)}else{if("value"in w)return w.value;n=w.get;return void 0===n?void 0:n.call(x)}},a=(ka=ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(f){function n(x){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var ca=da(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,x));ca.contentNode=document.createElement("span");ca.contentNode.setAttribute("contenteditable",
222
+ !1);[].slice.call(ca.domNode.childNodes).forEach(function(w){ca.contentNode.appendChild(w)});ca.leftGuard=document.createTextNode("\ufeff");ca.rightGuard=document.createTextNode("\ufeff");ca.domNode.appendChild(ca.leftGuard);ca.domNode.appendChild(ca.contentNode);ca.domNode.appendChild(ca.rightGuard);return ca}y(n,f);r(n,[{key:"index",value:function(x,ca){return x===this.leftGuard?0:x===this.rightGuard?1:h(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,x,ca)}},{key:"restore",
223
+ value:function(x){var ca=void 0,w=x.data.split("\ufeff").join("");x===this.leftGuard?this.prev instanceof b.default?(ca=this.prev.length(),this.prev.insertAt(ca,w),ca={startNode:this.prev.domNode,startOffset:ca+w.length}):(ca=document.createTextNode(w),this.parent.insertBefore(a.default.create(ca),this),ca={startNode:ca,startOffset:w.length}):x===this.rightGuard&&(this.next instanceof b.default?(this.next.insertAt(0,w),ca={startNode:this.next.domNode,startOffset:w.length}):(ca=document.createTextNode(w),
224
+ this.parent.insertBefore(a.default.create(ca),this.next),ca={startNode:ca,startOffset:w.length}));x.data="\ufeff";return ca}},{key:"update",value:function(x,ca){var w=this;x.forEach(function(aa){"characterData"!==aa.type||aa.target!==w.leftGuard&&aa.target!==w.rightGuard||!(aa=w.restore(aa.target))||(ca.range=aa)})}}]);return n}(a.default.Embed);la.default=ha},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.AlignStyle=la.AlignClass=la.AlignAttribute=void 0;var da=(ka=ha(0))&&
225
+ ka.__esModule?ka:{default:ka};var y={scope:da.default.Scope.BLOCK,whitelist:["right","center","justify"]};ka=new da.default.Attributor.Attribute("align","align",y);ha=new da.default.Attributor.Class("align","ql-align",y);da=new da.default.Attributor.Style("align","text-align",y);la.AlignAttribute=ka;la.AlignClass=ha;la.AlignStyle=da},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.BackgroundStyle=la.BackgroundClass=void 0;ka=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var da=
226
+ ha(26);ha=new ka.default.Attributor.Class("background","ql-bg",{scope:ka.default.Scope.INLINE});ka=new da.ColorAttributor("background","background-color",{scope:ka.default.Scope.INLINE});la.BackgroundClass=ha;la.BackgroundStyle=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.DirectionStyle=la.DirectionClass=la.DirectionAttribute=void 0;var da=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var y={scope:da.default.Scope.BLOCK,whitelist:["rtl"]};ka=new da.default.Attributor.Attribute("direction",
227
+ "dir",y);ha=new da.default.Attributor.Class("direction","ql-direction",y);da=new da.default.Attributor.Style("direction","direction",y);la.DirectionAttribute=ka;la.DirectionClass=ha;la.DirectionStyle=da},function(ka,la,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,
228
+ b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});la.FontClass=la.FontStyle=void 0;var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,
229
+ e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ha=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));var h={scope:ha.default.Scope.INLINE,whitelist:["serif","monospace"]};ka=new ha.default.Attributor.Class("font","ql-font",h);ha=new (function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
230
+ return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);y(e,[{key:"value",value:function(f){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,f).replace(/["']/g,"")}}]);return e}(ha.default.Attributor.Style))("font","font-family",h);la.FontStyle=ha;la.FontClass=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.SizeStyle=la.SizeClass=void 0;ha=(ka=ha(0))&&ka.__esModule?ka:{default:ka};ka=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"]});la.SizeClass=ka;la.SizeStyle=ha},function(ka,la,ha){ka.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(ka,la,ha){function da(n){return n&&n.__esModule?n:{default:n}}function y(n,x){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?n:x}
233
+ function r(n,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);n.prototype=Object.create(x&&x.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(n,x):n.__proto__=x)}function h(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(x){return null!=
234
+ e.default.query(x,e.default.Scope.BLOCK)}):!1}function a(n){var x=n.reduce(function(ca,w){return ca+=w.delete||0},0);x=n.length()-x;h(n)&&--x;return x}Object.defineProperty(la,"__esModule",{value:!0});la.getLastChangeIndex=la.default=void 0;var b=function(){function n(x,ca){for(var w=0;w<ca.length;w++){var aa=ca[w];aa.enumerable=aa.enumerable||!1;aa.configurable=!0;"value"in aa&&(aa.writable=!0);Object.defineProperty(x,aa.key,aa)}}return function(x,ca,w){ca&&n(x.prototype,ca);w&&n(x,w);return x}}();
235
+ ka=ha(0);var e=da(ka);ka=ha(5);var f=da(ka);ha=ha(9);ha=function(n){function x(ca,w){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var aa=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,ca,w));aa.lastRecorded=0;aa.ignoreChange=!1;aa.clear();aa.quill.on(f.default.events.EDITOR_CHANGE,function(ja,fa,ea,ba){ja!==f.default.events.TEXT_CHANGE||aa.ignoreChange||(aa.options.userOnly&&ba!==f.default.sources.USER?aa.transform(fa):aa.record(fa,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}r(x,n);b(x,[{key:"change",value:function(ca,w){if(0!==this.stack[ca].length){var aa=this.stack[ca].pop();this.stack[w].push(aa);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(aa[ca],f.default.sources.USER);this.ignoreChange=!1;ca=a(aa[ca]);this.quill.setSelection(ca)}}},
237
+ {key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(ca,w){if(0!==ca.ops.length){this.stack.redo=[];w=this.quill.getContents().diff(w);var aa=Date.now();this.lastRecorded+this.options.delay>aa&&0<this.stack.undo.length?(aa=this.stack.undo.pop(),w=w.compose(aa.undo),ca=aa.redo.compose(ca)):this.lastRecorded=aa;this.stack.undo.push({redo:ca,undo:w});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},
238
+ {key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ca){this.stack.undo.forEach(function(w){w.undo=ca.transform(w.undo,!0);w.redo=ca.transform(w.redo,!0)});this.stack.redo.forEach(function(w){w.undo=ca.transform(w.undo,!0);w.redo=ca.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return x}(da(ha).default);ha.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};la.default=ha;la.getLastChangeIndex=a},function(ka,la,ha){function da(oa){return oa&&
239
+ oa.__esModule?oa:{default:oa}}function y(oa,pa){if(!(oa instanceof pa))throw new TypeError("Cannot call a class as a function");}function r(oa,pa){if(!oa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!pa||"object"!==typeof pa&&"function"!==typeof pa?oa:pa}function h(oa,pa){if("function"!==typeof pa&&null!==pa)throw new TypeError("Super expression must either be null or a function, not "+typeof pa);oa.prototype=Object.create(pa&&pa.prototype,{constructor:{value:oa,
240
+ enumerable:!1,writable:!0,configurable:!0}});pa&&(Object.setPrototypeOf?Object.setPrototypeOf(oa,pa):oa.__proto__=pa)}function a(oa,pa){var ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;pa.forEach(function(va){var ra=document.createElement("option");va===ua?ra.setAttribute("selected","selected"):ra.setAttribute("value",va);oa.appendChild(ra)})}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.BaseTooltip=void 0;var b=function(){function oa(pa,ua){for(var va=0;va<ua.length;va++){var ra=
241
+ ua[va];ra.enumerable=ra.enumerable||!1;ra.configurable=!0;"value"in ra&&(ra.writable=!0);Object.defineProperty(pa,ra.key,ra)}}return function(pa,ua,va){ua&&oa(pa.prototype,ua);va&&oa(pa,va);return pa}}(),e=function ra(pa,ua,va){null===pa&&(pa=Function.prototype);var xa=Object.getOwnPropertyDescriptor(pa,ua);if(void 0===xa){if(pa=Object.getPrototypeOf(pa),null!==pa)return ra(pa,ua,va)}else{if("value"in xa)return xa.value;ua=xa.get;return void 0===ua?void 0:ua.call(va)}};ka=ha(3);ka=da(ka);var f=ha(2),
242
+ n=da(f);f=ha(8);var x=da(f);f=ha(23);var ca=da(f);f=ha(34);f=da(f);var w=ha(59),aa=da(w);w=ha(60);var ja=da(w);w=ha(28);var fa=da(w);ha=ha(61);w=da(ha);var ea=[!1,"center","right","justify"],ba="#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(" "),ma=[!1,"serif",
243
+ "monospace"],ta=["1","2","3",!1],na=["small",!1,"large","huge"];ha=function(pa){function ua(va,ra){y(this,ua);var xa=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,va,ra));va.emitter.listenDOM("click",document.body,function Ka(Ga){if(!document.body.contains(va.root))return document.body.removeEventListener("click",Ka);null==xa.tooltip||xa.tooltip.root.contains(Ga.target)||document.activeElement===xa.tooltip.textbox||xa.quill.hasFocus()||xa.tooltip.hide();null!=xa.pickers&&xa.pickers.forEach(function(Da){Da.container.contains(Ga.target)||
244
+ Da.close()})});return xa}h(ua,pa);b(ua,[{key:"addModule",value:function(va){var ra=e(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"addModule",this).call(this,va);"toolbar"===va&&this.extendToolbar(ra);return ra}},{key:"buildButtons",value:function(va,ra){va.forEach(function(xa){(xa.getAttribute("class")||"").split(/\s+/).forEach(function(Aa){if(Aa.startsWith("ql-")&&(Aa=Aa.slice(3),null!=ra[Aa]))if("direction"===Aa)xa.innerHTML=ra[Aa][""]+ra[Aa].rtl;else if("string"===typeof ra[Aa])xa.innerHTML=
245
+ ra[Aa];else{var Ga=xa.value||"";null!=Ga&&ra[Aa][Ga]&&(xa.innerHTML=ra[Aa][Ga])}})})}},{key:"buildPickers",value:function(va,ra){var xa=this;this.pickers=va.map(function(Aa){if(Aa.classList.contains("ql-align"))return null==Aa.querySelector("option")&&a(Aa,ea),new ja.default(Aa,ra.align);if(Aa.classList.contains("ql-background")||Aa.classList.contains("ql-color")){var Ga=Aa.classList.contains("ql-background")?"background":"color";null==Aa.querySelector("option")&&a(Aa,ba,"background"===Ga?"#ffffff":
246
+ "#000000");return new aa.default(Aa,ra[Ga])}null==Aa.querySelector("option")&&(Aa.classList.contains("ql-font")?a(Aa,ma):Aa.classList.contains("ql-header")?a(Aa,ta):Aa.classList.contains("ql-size")&&a(Aa,na));return new fa.default(Aa)});this.quill.on(x.default.events.EDITOR_CHANGE,function(){xa.pickers.forEach(function(Aa){Aa.update()})})}}]);return ua}(f.default);ha.DEFAULTS=(0,ka.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
247
+ image:function(){var pa=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 va=new FileReader;va.onload=function(ra){var xa=pa.quill.getSelection(!0);pa.quill.updateContents((new n.default).retain(xa.index).delete(xa.length).insert({image:ra.target.result}),
248
+ x.default.sources.USER);pa.quill.setSelection(xa.index+1,x.default.sources.SILENT);ua.value=""};va.readAsDataURL(ua.files[0])}}),this.container.appendChild(ua));ua.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});ka=function(pa){function ua(va,ra){y(this,ua);va=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,va,ra));va.textbox=va.root.querySelector('input[type="text"]');va.listen();return va}h(ua,pa);b(ua,[{key:"listen",value:function(){var va=this;this.textbox.addEventListener("keydown",
249
+ function(ra){ca.default.match(ra,"enter")?(va.save(),ra.preventDefault()):ca.default.match(ra,"escape")&&(va.cancel(),ra.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var va=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=ra?this.textbox.value=ra:va!==this.root.getAttribute("data-mode")&&(this.textbox.value=
250
+ "");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+va)||"");this.root.setAttribute("data-mode",va)}},{key:"restoreFocus",value:function(){var va=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=va}},{key:"save",value:function(){var va=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var ra=this.quill.root.scrollTop;
251
+ this.linkRange?(this.quill.formatText(this.linkRange,"link",va,x.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",va,x.default.sources.USER));this.quill.root.scrollTop=ra;break;case "video":ra=va;var xa=ra.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||ra.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);va=xa?(xa[1]||"https")+"://www.youtube.com/embed/"+xa[2]+"?showinfo=0":(xa=ra.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
252
+ (xa[1]||"https")+"://player.vimeo.com/video/"+xa[2]+"/":ra;case "formula":va&&(ra=this.quill.getSelection(!0),null!=ra&&(ra=ra.index+ra.length,this.quill.insertEmbed(ra,this.root.getAttribute("data-mode"),va,x.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(ra+1," ",x.default.sources.USER),this.quill.setSelection(ra+2,x.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return ua}(w.default);la.BaseTooltip=ka;la.default=ha},function(ka,la){Object.defineProperty(la,
253
+ "__esModule",{value:!0});ka=function(){function ha(){this.head=this.tail=null;this.length=0}ha.prototype.append=function(){for(var da=[],y=0;y<arguments.length;y++)da[y]=arguments[y];this.insertBefore(da[0],null);1<da.length&&this.append.apply(this,da.slice(1))};ha.prototype.contains=function(da){for(var y,r=this.iterator();y=r();)if(y===da)return!0;return!1};ha.prototype.insertBefore=function(da,y){da&&(da.next=y,null!=y?(da.prev=y.prev,null!=y.prev&&(y.prev.next=da),y.prev=da,y===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 y=0,r=this.head;null!=r;){if(r===da)return y;y+=r.length();r=r.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 y=da;null!=da&&(da=da.next);return y}};ha.prototype.find=function(da,y){void 0===y&&(y=!1);for(var r,h=this.iterator();r=h();){var a=r.length();if(da<a||y&&da===a&&(null==r.next||0!==r.next.length()))return[r,da];da-=a}return[null,0]};ha.prototype.forEach=function(da){for(var y,r=this.iterator();y=r();)da(y)};ha.prototype.forEachAt=function(da,y,r){if(!(0>=y))for(var h=this.find(da),a=da-h[1],b=this.iterator(h[0]);(h=b())&&a<da+y;){var e=h.length();da>a?r(h,
256
+ da-a,Math.min(y,a+e-da)):r(h,0,Math.min(e,da+y-a));a+=e}};ha.prototype.map=function(da){return this.reduce(function(y,r){y.push(da(r));return y},[])};ha.prototype.reduce=function(da,y){for(var r,h=this.iterator();r=h();)y=da(y,r);return y};return ha}();la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=
257
+ b}a(b,e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(17),r=ha(1),h={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ka=function(a){function b(e){var f=a.call(this,e)||this;f.scroll=f;f.observer=new MutationObserver(function(n){f.update(n)});f.observer.observe(f.domNode,h);f.attach();return f}da(b,a);b.prototype.detach=function(){a.prototype.detach.call(this);this.observer.disconnect()};
258
+ b.prototype.deleteAt=function(e,f){this.update();0===e&&f===this.length()?this.children.forEach(function(n){n.remove()}):a.prototype.deleteAt.call(this,e,f)};b.prototype.formatAt=function(e,f,n,x){this.update();a.prototype.formatAt.call(this,e,f,n,x)};b.prototype.insertAt=function(e,f,n){this.update();a.prototype.insertAt.call(this,e,f,n)};b.prototype.optimize=function(e,f){function n(fa){null!=fa.domNode[r.DATA_KEY]&&null!=fa.domNode[r.DATA_KEY].mutations&&(fa instanceof y.default&&fa.children.forEach(n),
259
+ fa.optimize(f))}function x(fa,ea){void 0===ea&&(ea=!0);null!=fa&&fa!==ca&&null!=fa.domNode.parentNode&&(null==fa.domNode[r.DATA_KEY].mutations&&(fa.domNode[r.DATA_KEY].mutations=[]),ea&&x(fa.parent))}var ca=this;void 0===e&&(e=[]);void 0===f&&(f={});a.prototype.optimize.call(this,f);for(var w=[].slice.call(this.observer.takeRecords());0<w.length;)e.push(w.pop());for(var aa=e,ja=0;0<aa.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");aa.forEach(function(fa){var ea=
260
+ r.find(fa.target,!0);null!=ea&&(ea.domNode===fa.target&&("childList"===fa.type?(x(r.find(fa.previousSibling,!1)),[].forEach.call(fa.addedNodes,function(ba){ba=r.find(ba,!1);x(ba,!1);ba instanceof y.default&&ba.children.forEach(function(ma){x(ma,!1)})})):"attributes"===fa.type&&x(ea.prev)),x(ea))});this.children.forEach(n);aa=[].slice.call(this.observer.takeRecords());for(w=aa.slice();0<w.length;)e.push(w.pop())}};b.prototype.update=function(e,f){var n=this;void 0===f&&(f={});e=e||this.observer.takeRecords();
261
+ e.map(function(x){var ca=r.find(x.target,!0);if(null==ca)return null;if(null==ca.domNode[r.DATA_KEY].mutations)return ca.domNode[r.DATA_KEY].mutations=[x],ca;ca.domNode[r.DATA_KEY].mutations.push(x);return null}).forEach(function(x){null!=x&&x!==n&&null!=x.domNode[r.DATA_KEY]&&x.update(x.domNode[r.DATA_KEY].mutations||[],f)});null!=this.domNode[r.DATA_KEY].mutations&&a.prototype.update.call(this,this.domNode[r.DATA_KEY].mutations,f);this.optimize(e,f)};b.blotName="scroll";b.defaultChild="block";b.scope=
262
+ r.Scope.BLOCK_BLOT;b.tagName="DIV";return b}(y.default);la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var h=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}h(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(18),r=ha(1);ka=function(h){function a(){return null!==
263
+ h&&h.apply(this,arguments)||this}da(a,h);a.formats=function(b){if(b.tagName!==a.tagName)return h.formats.call(this,b)};a.prototype.format=function(b,e){var f=this;b!==this.statics.blotName||e?h.prototype.format.call(this,b,e):(this.children.forEach(function(n){n instanceof y.default||(n=n.wrap(a.blotName,!0));f.attributes.copy(n)}),this.unwrap())};a.prototype.formatAt=function(b,e,f,n){null!=this.formats()[f]||r.query(f,r.Scope.ATTRIBUTE)?this.isolate(b,e).format(f,n):h.prototype.formatAt.call(this,
264
+ b,e,f,n)};a.prototype.optimize=function(b){h.prototype.optimize.call(this,b);b=this.formats();if(0===Object.keys(b).length)return this.unwrap();var e=this.next,f;if(f=e instanceof a&&e.prev===this)a:if(f=e.formats(),Object.keys(b).length!==Object.keys(f).length)f=!1;else{for(var n in b)if(b[n]!==f[n]){f=!1;break a}f=!0}f&&(e.moveChildren(this),e.remove())};a.blotName="inline";a.scope=r.Scope.INLINE_BLOT;a.tagName="SPAN";return a}(y.default);la.default=ka},function(ka,la,ha){var da=this&&this.__extends||
265
+ function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(18);var y=ha(1);ha=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}da(h,r);h.formats=function(a){var b=y.query(h.blotName).tagName;
266
+ if(a.tagName!==b)return r.formats.call(this,a)};h.prototype.format=function(a,b){null!=y.query(a,y.Scope.BLOCK)&&(a!==this.statics.blotName||b?r.prototype.format.call(this,a,b):this.replaceWith(h.blotName))};h.prototype.formatAt=function(a,b,e,f){null!=y.query(e,y.Scope.BLOCK)?this.format(e,f):r.prototype.formatAt.call(this,a,b,e,f)};h.prototype.insertAt=function(a,b,e){null==e||null!=y.query(b,y.Scope.INLINE)?r.prototype.insertAt.call(this,a,b,e):(a=this.split(a),b=y.create(b,e),a.parent.insertBefore(b,
267
+ a))};h.prototype.update=function(a,b){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,a,b)};h.blotName="block";h.scope=y.Scope.BLOCK_BLOT;h.tagName="P";return h}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,h){r.__proto__=h}||function(r,h){for(var a in h)h.hasOwnProperty(a)&&(r[a]=h[a])};return function(r,h){function a(){this.constructor=r}y(r,h);r.prototype=
268
+ null===h?Object.create(h):(a.prototype=h.prototype,new a)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){return null!==y&&y.apply(this,arguments)||this}da(r,y);r.formats=function(){};r.prototype.format=function(h,a){y.prototype.formatAt.call(this,0,this.length(),h,a)};r.prototype.formatAt=function(h,a,b,e){0===h&&a===this.length()?this.format(b,e):y.prototype.formatAt.call(this,h,a,b,e)};r.prototype.formats=function(){return this.statics.formats(this.domNode)};return r}(ha(19).default);
269
+ la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(19);var y=ha(1);ha=function(r){function h(a){a=r.call(this,a)||this;a.text=a.statics.value(a.domNode);
270
+ return a}da(h,r);h.create=function(a){return document.createTextNode(a)};h.value=function(a){a=a.data;a.normalize&&(a=a.normalize());return a};h.prototype.deleteAt=function(a,b){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+b)};h.prototype.index=function(a,b){return this.domNode===a?b:-1};h.prototype.insertAt=function(a,b,e){null==e?(this.text=this.text.slice(0,a)+b+this.text.slice(a),this.domNode.data=this.text):r.prototype.insertAt.call(this,a,b,e)};h.prototype.length=function(){return this.text.length};
271
+ h.prototype.optimize=function(a){r.prototype.optimize.call(this,a);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};h.prototype.position=function(a){return[this.domNode,a]};h.prototype.split=function(a,b){void 0===b&&(b=!1);if(!b){if(0===a)return this;if(a===this.length())return this.next}a=y.create(this.domNode.splitText(a));this.parent.insertBefore(a,this.next);
272
+ this.text=this.statics.value(this.domNode);return a};h.prototype.update=function(a){var b=this;a.some(function(e){return"characterData"===e.type&&e.target===b.domNode})&&(this.text=this.statics.value(this.domNode))};h.prototype.value=function(){return this.text};h.blotName="text";h.scope=y.Scope.INLINE_BLOT;return h}(ka.default);la.default=ha},function(){var ka=document.createElement("div");ka.classList.toggle("test-class",!1);if(ka.classList.contains("test-class")){var la=DOMTokenList.prototype.toggle;
273
+ DOMTokenList.prototype.toggle=function(ha,da){return 1<arguments.length&&!this.contains(ha)===!da?da:la.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 y=this.toString();if("number"!==typeof da||!isFinite(da)||Math.floor(da)!==da||da>y.length)da=y.length;da-=ha.length;ha=y.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 y=Object(this),r=y.length>>>0,h,a=0;a<r;a++)if(h=y[a],ha.call(da,h,a,y))return h}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ka){function la(n,x,ca){if(n==x)return n?[[0,n]]:[];
275
+ if(0>ca||n.length<ca)ca=null;var w=y(n,x),aa=n.substring(0,w);n=n.substring(w);x=x.substring(w);w=r(n,x);var ja=n.substring(n.length-w);n=n.substring(0,n.length-w);x=x.substring(0,x.length-w);n=ha(n,x);aa&&n.unshift([0,aa]);ja&&n.push([0,ja]);a(n);null!=ca&&(n=b(n,ca));return n=e(n)}function ha(n,x){if(!n)return[[1,x]];if(!x)return[[-1,n]];var ca=n.length>x.length?n:x;var w=n.length>x.length?x:n,aa=ca.indexOf(w);if(-1!=aa)return ca=[[1,ca.substring(0,aa)],[0,w],[1,ca.substring(aa+w.length)]],n.length>
276
+ x.length&&(ca[0][0]=ca[2][0]=-1),ca;if(1==w.length)return[[-1,n],[1,x]];if(ca=h(n,x))return x=ca[1],w=ca[3],n=ca[4],ca=la(ca[0],ca[2]),x=la(x,w),ca.concat([[0,n]],x);a:{ca=n.length;w=x.length;aa=Math.ceil((ca+w)/2);for(var ja=2*aa,fa=Array(ja),ea=Array(ja),ba=0;ba<ja;ba++)fa[ba]=-1,ea[ba]=-1;fa[aa+1]=0;ea[aa+1]=0;ba=ca-w;for(var ma=0!=ba%2,ta=0,na=0,oa=0,pa=0,ua=0;ua<aa;ua++){for(var va=-ua+ta;va<=ua-na;va+=2){var ra=aa+va;var xa=va==-ua||va!=ua&&fa[ra-1]<fa[ra+1]?fa[ra+1]:fa[ra-1]+1;for(var Aa=xa-
277
+ va;xa<ca&&Aa<w&&n.charAt(xa)==x.charAt(Aa);)xa++,Aa++;fa[ra]=xa;if(xa>ca)na+=2;else if(Aa>w)ta+=2;else if(ma&&(ra=aa+ba-va,0<=ra&&ra<ja&&-1!=ea[ra])){var Ga=ca-ea[ra];if(xa>=Ga){n=da(n,x,xa,Aa);break a}}}for(va=-ua+oa;va<=ua-pa;va+=2){ra=aa+va;Ga=va==-ua||va!=ua&&ea[ra-1]<ea[ra+1]?ea[ra+1]:ea[ra-1]+1;for(xa=Ga-va;Ga<ca&&xa<w&&n.charAt(ca-Ga-1)==x.charAt(w-xa-1);)Ga++,xa++;ea[ra]=Ga;if(Ga>ca)pa+=2;else if(xa>w)oa+=2;else if(!ma&&(ra=aa+ba-va,0<=ra&&ra<ja&&-1!=fa[ra]&&(xa=fa[ra],Aa=aa+xa-ra,Ga=ca-Ga,
278
+ xa>=Ga))){n=da(n,x,xa,Aa);break a}}}n=[[-1,n],[1,x]]}return n}function da(n,x,ca,w){var aa=n.substring(ca),ja=x.substring(w);n=la(n.substring(0,ca),x.substring(0,w));aa=la(aa,ja);return n.concat(aa)}function y(n,x){if(!n||!x||n.charAt(0)!=x.charAt(0))return 0;for(var ca=0,w=Math.min(n.length,x.length),aa=w,ja=0;ca<aa;)n.substring(ja,aa)==x.substring(ja,aa)?ja=ca=aa:w=aa,aa=Math.floor((w-ca)/2+ca);return aa}function r(n,x){if(!n||!x||n.charAt(n.length-1)!=x.charAt(x.length-1))return 0;for(var ca=0,
279
+ w=Math.min(n.length,x.length),aa=w,ja=0;ca<aa;)n.substring(n.length-aa,n.length-ja)==x.substring(x.length-aa,x.length-ja)?ja=ca=aa:w=aa,aa=Math.floor((w-ca)/2+ca);return aa}function h(n,x){function ca(fa,ea,ba){for(var ma=fa.substring(ba,ba+Math.floor(fa.length/4)),ta=-1,na="",oa,pa,ua,va;-1!=(ta=ea.indexOf(ma,ta+1));){var ra=y(fa.substring(ba),ea.substring(ta)),xa=r(fa.substring(0,ba),ea.substring(0,ta));na.length<xa+ra&&(na=ea.substring(ta-xa,ta)+ea.substring(ta,ta+ra),oa=fa.substring(0,ba-xa),
280
+ pa=fa.substring(ba+ra),ua=ea.substring(0,ta-xa),va=ea.substring(ta+ra))}return 2*na.length>=fa.length?[oa,pa,ua,va,na]:null}var w=n.length>x.length?n:x,aa=n.length>x.length?x:n;if(4>w.length||2*aa.length<w.length)return null;var ja=ca(w,aa,Math.ceil(w.length/4));w=ca(w,aa,Math.ceil(w.length/2));if(ja||w)ja=w?ja?ja[4].length>w[4].length?ja:w:w:ja;else return null;n.length>x.length?(n=ja[0],x=ja[1],w=ja[2],aa=ja[3]):(w=ja[0],aa=ja[1],n=ja[2],x=ja[3]);return[n,x,w,aa,ja[4]]}function a(n){n.push([0,""]);
281
+ for(var x=0,ca=0,w=0,aa="",ja="",fa;x<n.length;)switch(n[x][0]){case 1:w++;ja+=n[x][1];x++;break;case -1:ca++;aa+=n[x][1];x++;break;case 0:1<ca+w?(0!==ca&&0!==w&&(fa=y(ja,aa),0!==fa&&(0<x-ca-w&&0==n[x-ca-w-1][0]?n[x-ca-w-1][1]+=ja.substring(0,fa):(n.splice(0,0,[0,ja.substring(0,fa)]),x++),ja=ja.substring(fa),aa=aa.substring(fa)),fa=r(ja,aa),0!==fa&&(n[x][1]=ja.substring(ja.length-fa)+n[x][1],ja=ja.substring(0,ja.length-fa),aa=aa.substring(0,aa.length-fa))),0===ca?n.splice(x-w,ca+w,[1,ja]):0===w?n.splice(x-
282
+ ca,ca+w,[-1,aa]):n.splice(x-ca-w,ca+w,[-1,aa],[1,ja]),x=x-ca-w+(ca?1:0)+(w?1:0)+1):0!==x&&0==n[x-1][0]?(n[x-1][1]+=n[x][1],n.splice(x,1)):x++,ca=w=0,ja=aa=""}""===n[n.length-1][1]&&n.pop();ca=!1;for(x=1;x<n.length-1;)0==n[x-1][0]&&0==n[x+1][0]&&(n[x][1].substring(n[x][1].length-n[x-1][1].length)==n[x-1][1]?(n[x][1]=n[x-1][1]+n[x][1].substring(0,n[x][1].length-n[x-1][1].length),n[x+1][1]=n[x-1][1]+n[x+1][1],n.splice(x-1,1),ca=!0):n[x][1].substring(0,n[x+1][1].length)==n[x+1][1]&&(n[x-1][1]+=n[x+1][1],
283
+ n[x][1]=n[x][1].substring(n[x+1][1].length)+n[x+1][1],n.splice(x+1,1),ca=!0)),x++;ca&&a(n)}function b(n,x){a:{var ca=n;if(0===x)var w=[0,ca];else{var aa=0;for(w=0;w<ca.length;w++){var ja=ca[w];if(-1===ja[0]||0===ja[0]){var fa=aa+ja[1].length;if(x===fa){w=[w+1,ca];break a}if(x<fa){ca=ca.slice();aa=x-aa;x=[ja[0],ja[1].slice(0,aa)];ja=[ja[0],ja[1].slice(aa)];ca.splice(w,1,x,ja);w=[w+1,ca];break a}aa=fa}}throw Error("cursor_pos is out of bounds!");}}ca=w[1];w=w[0];x=ca[w];ja=ca[w+1];return null==x||0!==
284
+ x[0]?n:null!=ja&&x[1]+ja[1]===ja[1]+x[1]?(ca.splice(w,2,ja,x),f(ca,w,2)):null!=ja&&0===ja[1].indexOf(x[1])?(ca.splice(w,2,[ja[0],x[1]],[0,x[1]]),n=ja[1].slice(x[1].length),0<n.length&&ca.splice(w+2,0,[ja[0],n]),f(ca,w,3)):n}function e(n){function x(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function ca(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var w=!1,aa=2;aa<n.length;aa+=1)0===n[aa-2][0]&&x(n[aa-2][1])&&-1===n[aa-1][0]&&ca(n[aa-1][1])&&
285
+ 1===n[aa][0]&&ca(n[aa][1])&&(w=!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(!w)return n;w=[];for(aa=0;aa<n.length;aa+=1)0<n[aa][1].length&&w.push(n[aa]);return w}function f(n,x,ca){for(ca=x+ca-1;0<=ca&&ca>=x-1;ca--)if(ca+1<n.length){var w=n[ca],aa=n[ca+1];w[0]===aa[1]&&n.splice(ca,2,[w[0],w[1]+aa[1]])}return n}la.INSERT=1;la.DELETE=-1;la.EQUAL=0;ka.exports=la},function(ka,la){function ha(da){var y=[],r;for(r in da)y.push(r);
286
+ return y}la=ka.exports="function"===typeof Object.keys?Object.keys:ha;la.shim=ha},function(ka,la){function ha(y){return"[object Arguments]"==Object.prototype.toString.call(y)}function da(y){return y&&"object"==typeof y&&"number"==typeof y.length&&Object.prototype.hasOwnProperty.call(y,"callee")&&!Object.prototype.propertyIsEnumerable.call(y,"callee")||!1}la="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();la=ka.exports=la?ha:da;la.supported=ha;la.unsupported=da},
287
+ function(ka){function la(){}function ha(h,a,b){this.fn=h;this.context=a;this.once=b||!1}function da(){this._events=new la;this._eventsCount=0}var y=Object.prototype.hasOwnProperty,r="~";Object.create&&(la.prototype=Object.create(null),(new la).__proto__||(r=!1));da.prototype.eventNames=function(){var h=[],a,b;if(0===this._eventsCount)return h;for(b in a=this._events)y.call(a,b)&&h.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(a)):h};da.prototype.listeners=
288
+ function(h,a){h=this._events[r?r+h:h];if(a)return!!h;if(!h)return[];if(h.fn)return[h.fn];a=0;for(var b=h.length,e=Array(b);a<b;a++)e[a]=h[a].fn;return e};da.prototype.emit=function(h,a,b,e,f,n){var x=r?r+h:h;if(!this._events[x])return!1;x=this._events[x];var ca=arguments.length,w;if(x.fn){x.once&&this.removeListener(h,x.fn,void 0,!0);switch(ca){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,a),!0;case 3:return x.fn.call(x.context,a,b),!0;case 4:return x.fn.call(x.context,
289
+ a,b,e),!0;case 5:return x.fn.call(x.context,a,b,e,f),!0;case 6:return x.fn.call(x.context,a,b,e,f,n),!0}var aa=1;for(w=Array(ca-1);aa<ca;aa++)w[aa-1]=arguments[aa];x.fn.apply(x.context,w)}else{var ja=x.length;for(aa=0;aa<ja;aa++)switch(x[aa].once&&this.removeListener(h,x[aa].fn,void 0,!0),ca){case 1:x[aa].fn.call(x[aa].context);break;case 2:x[aa].fn.call(x[aa].context,a);break;case 3:x[aa].fn.call(x[aa].context,a,b);break;case 4:x[aa].fn.call(x[aa].context,a,b,e);break;default:if(!w){var fa=1;for(w=
290
+ Array(ca-1);fa<ca;fa++)w[fa-1]=arguments[fa]}x[aa].fn.apply(x[aa].context,w)}}return!0};da.prototype.on=function(h,a,b){a=new ha(a,b||this);h=r?r+h:h;this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],a]:this._events[h].push(a):(this._events[h]=a,this._eventsCount++);return this};da.prototype.once=function(h,a,b){a=new ha(a,b||this,!0);h=r?r+h:h;this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],a]:this._events[h].push(a):(this._events[h]=a,this._eventsCount++);return this};
291
+ da.prototype.removeListener=function(h,a,b,e){h=r?r+h:h;if(!this._events[h])return this;if(!a)return 0===--this._eventsCount?this._events=new la:delete this._events[h],this;var f=this._events[h];if(f.fn)f.fn!==a||e&&!f.once||b&&f.context!==b||(0===--this._eventsCount?this._events=new la:delete this._events[h]);else{for(var n=0,x=[],ca=f.length;n<ca;n++)(f[n].fn!==a||e&&!f[n].once||b&&f[n].context!==b)&&x.push(f[n]);x.length?this._events[h]=1===x.length?x[0]:x:0===--this._eventsCount?this._events=
292
+ new la:delete this._events[h]}return this};da.prototype.removeAllListeners=function(h){h?(h=r?r+h:h,this._events[h]&&(0===--this._eventsCount?this._events=new la:delete this._events[h])):(this._events=new la,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=r;da.EventEmitter=da;"undefined"!==typeof ka&&(ka.exports=da)},function(ka,la,ha){function da(Ia){return Ia&&
293
+ Ia.__esModule?Ia:{default:Ia}}function y(Ia,Ha,wa){Ha in Ia?Object.defineProperty(Ia,Ha,{value:wa,enumerable:!0,configurable:!0,writable:!0}):Ia[Ha]=wa;return Ia}function r(Ia,Ha){if(!Ia)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ha||"object"!==typeof Ha&&"function"!==typeof Ha?Ia:Ha}function h(Ia,Ha){if("function"!==typeof Ha&&null!==Ha)throw new TypeError("Super expression must either be null or a function, not "+typeof Ha);Ia.prototype=Object.create(Ha&&
294
+ Ha.prototype,{constructor:{value:Ia,enumerable:!1,writable:!0,configurable:!0}});Ha&&(Object.setPrototypeOf?Object.setPrototypeOf(Ia,Ha):Ia.__proto__=Ha)}function a(Ia,Ha,wa){return"object"===("undefined"===typeof Ha?"undefined":ea(Ha))?Object.keys(Ha).reduce(function(Fa,Oa){return a(Fa,Oa,Ha[Oa])},Ia):Ia.reduce(function(Fa,Oa){return Oa.attributes&&Oa.attributes[Ha]?Fa.push(Oa):Fa.insert(Oa.insert,(0,ta.default)({},y({},Ha,wa),Oa.attributes))},new na.default)}function b(Ia){return Ia.nodeType!==
295
+ Node.ELEMENT_NODE?{}:Ia["__ql-computed-style"]||(Ia["__ql-computed-style"]=window.getComputedStyle(Ia))}function e(Ia,Ha){for(var wa="",Fa=Ia.ops.length-1;0<=Fa&&wa.length<Ha.length;--Fa){var Oa=Ia.ops[Fa];if("string"!==typeof Oa.insert)break;wa=Oa.insert+wa}return wa.slice(-1*Ha.length)===Ha}function f(Ia){if(0===Ia.childNodes.length)return!1;Ia=b(Ia);return-1<["block","list-item"].indexOf(Ia.display)}function n(Ia,Ha,wa){return Ia.nodeType===Ia.TEXT_NODE?wa.reduce(function(Fa,Oa){return Oa(Ia,Fa)},
296
+ new na.default):Ia.nodeType===Ia.ELEMENT_NODE?[].reduce.call(Ia.childNodes||[],function(Fa,Oa){var Ma=n(Oa,Ha,wa);Oa.nodeType===Ia.ELEMENT_NODE&&(Ma=Ha.reduce(function(Ua,Wa){return Wa(Oa,Ua)},Ma),Ma=(Oa["__ql-matcher"]||[]).reduce(function(Ua,Wa){return Wa(Oa,Ua)},Ma));return Fa.concat(Ma)},new na.default):new na.default}function x(Ia,Ha,wa){return a(wa,Ia,!0)}function ca(Ia,Ha){var wa=oa.default.Attributor.Attribute.keys(Ia),Fa=oa.default.Attributor.Class.keys(Ia),Oa=oa.default.Attributor.Style.keys(Ia),
297
+ Ma={};wa.concat(Fa).concat(Oa).forEach(function(Ua){var Wa=oa.default.query(Ua,oa.default.Scope.ATTRIBUTE);if(null!=Wa&&(Ma[Wa.attrName]=Wa.value(Ia),Ma[Wa.attrName]))return;Wa=Qa[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Ma[Wa.attrName]=Wa.value(Ia)||void 0);Wa=Ca[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Wa=Ca[Ua],Ma[Wa.attrName]=Wa.value(Ia)||void 0)});0<Object.keys(Ma).length&&(Ha=a(Ha,Ma));return Ha}function w(Ia,Ha){var wa=oa.default.query(Ia);if(null==wa)return Ha;if(wa.prototype instanceof
298
+ oa.default.Embed){var Fa={},Oa=wa.value(Ia);null!=Oa&&(Fa[wa.blotName]=Oa,Ha=(new na.default).insert(Fa,wa.formats(Ia)))}else"function"===typeof wa.formats&&(Ha=a(Ha,wa.blotName,wa.formats(Ia)));return Ha}function aa(Ia,Ha){e(Ha,"\n")||(f(Ia)||0<Ha.length()&&Ia.nextSibling&&f(Ia.nextSibling))&&Ha.insert("\n");return Ha}function ja(Ia,Ha){if(f(Ia)&&null!=Ia.nextElementSibling&&!e(Ha,"\n\n")){var wa=Ia.offsetHeight+parseFloat(b(Ia).marginTop)+parseFloat(b(Ia).marginBottom);Ia.nextElementSibling.offsetTop>
299
+ Ia.offsetTop+1.5*wa&&Ha.insert("\n")}return Ha}function fa(Ia,Ha){var wa=Ia.data;if("O:P"===Ia.parentNode.tagName)return Ha.insert(wa.trim());if(0===wa.trim().length&&Ia.parentNode.classList.contains("ql-clipboard"))return Ha;if(!b(Ia.parentNode).whiteSpace.startsWith("pre")){var Fa=function(Oa,Ma){Ma=Ma.replace(/[^\u00a0]/g,"");return 1>Ma.length&&Oa?" ":Ma};wa=wa.replace(/\r\n/g," ").replace(/\n/g," ");wa=wa.replace(/\s\s+/g,Fa.bind(Fa,!0));if(null==Ia.previousSibling&&f(Ia.parentNode)||null!=Ia.previousSibling&&
300
+ f(Ia.previousSibling))wa=wa.replace(/^\s+/,Fa.bind(Fa,!1));if(null==Ia.nextSibling&&f(Ia.parentNode)||null!=Ia.nextSibling&&f(Ia.nextSibling))wa=wa.replace(/\s+$/,Fa.bind(Fa,!1))}return Ha.insert(wa)}Object.defineProperty(la,"__esModule",{value:!0});la.matchText=la.matchSpacing=la.matchNewline=la.matchBlot=la.matchAttributor=la.default=void 0;var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Ia){return typeof Ia}:function(Ia){return Ia&&"function"===typeof Symbol&&Ia.constructor===
301
+ Symbol&&Ia!==Symbol.prototype?"symbol":typeof Ia},ba=function(){return function(Ia,Ha){if(Array.isArray(Ia))return Ia;if(Symbol.iterator in Object(Ia)){var wa=[],Fa=!0,Oa=!1,Ma=void 0;try{for(var Ua=Ia[Symbol.iterator](),Wa;!(Fa=(Wa=Ua.next()).done)&&(wa.push(Wa.value),!Ha||wa.length!==Ha);Fa=!0);}catch(ab){Oa=!0,Ma=ab}finally{try{if(!Fa&&Ua["return"])Ua["return"]()}finally{if(Oa)throw Ma;}}return wa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ma=function(){function Ia(Ha,
302
+ wa){for(var Fa=0;Fa<wa.length;Fa++){var Oa=wa[Fa];Oa.enumerable=Oa.enumerable||!1;Oa.configurable=!0;"value"in Oa&&(Oa.writable=!0);Object.defineProperty(Ha,Oa.key,Oa)}}return function(Ha,wa,Fa){wa&&Ia(Ha.prototype,wa);Fa&&Ia(Ha,Fa);return Ha}}();ka=ha(3);var ta=da(ka);ka=ha(2);var na=da(ka);ka=ha(0);var oa=da(ka);ka=ha(5);var pa=da(ka);ka=ha(10);ka=da(ka);var ua=ha(9);ua=da(ua);var va=ha(36),ra=ha(37),xa=ha(13),Aa=da(xa);xa=ha(26);var Ga=ha(38),Ka=ha(39);ha=ha(40);var Da=(0,ka.default)("quill:clipboard"),
303
+ Pa=[[Node.TEXT_NODE,fa],[Node.TEXT_NODE,aa],["br",function(Ia,Ha){e(Ha,"\n")||Ha.insert("\n");return Ha}],[Node.ELEMENT_NODE,aa],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,ca],[Node.ELEMENT_NODE,function(Ia,Ha){var wa={},Fa=Ia.style||{};Fa.fontStyle&&"italic"===b(Ia).fontStyle&&(wa.italic=!0);Fa.fontWeight&&(b(Ia).fontWeight.startsWith("bold")||700<=parseInt(b(Ia).fontWeight))&&(wa.bold=!0);0<Object.keys(wa).length&&(Ha=a(Ha,wa));0<parseFloat(Fa.textIndent||0)&&(Ha=(new na.default).insert("\t").concat(Ha));
304
+ return Ha}],["li",function(Ia,Ha){var wa=oa.default.query(Ia);if(null==wa||"list-item"!==wa.blotName||!e(Ha,"\n"))return Ha;wa=-1;for(Ia=Ia.parentNode;!Ia.classList.contains("ql-clipboard");)"list"===(oa.default.query(Ia)||{}).blotName&&(wa+=1),Ia=Ia.parentNode;return 0>=wa?Ha:Ha.compose((new na.default).retain(Ha.length()-1).retain(1,{indent:wa}))}],["b",x.bind(x,"bold")],["i",x.bind(x,"italic")],["style",function(){return new na.default}]],Qa=[va.AlignAttribute,Ga.DirectionAttribute].reduce(function(Ia,
305
+ Ha){Ia[Ha.keyName]=Ha;return Ia},{}),Ca=[va.AlignStyle,ra.BackgroundStyle,xa.ColorStyle,Ga.DirectionStyle,Ka.FontStyle,ha.SizeStyle].reduce(function(Ia,Ha){Ia[Ha.keyName]=Ha;return Ia},{});ha=function(Ia){function Ha(wa,Fa){if(!(this instanceof Ha))throw new TypeError("Cannot call a class as a function");var Oa=r(this,(Ha.__proto__||Object.getPrototypeOf(Ha)).call(this,wa,Fa));Oa.quill.root.addEventListener("paste",Oa.onPaste.bind(Oa));Oa.container=Oa.quill.addContainer("ql-clipboard");Oa.container.setAttribute("contenteditable",
306
+ !0);Oa.container.setAttribute("tabindex",-1);Oa.matchers=[];Pa.concat(Oa.options.matchers).forEach(function(Ma){Ma=ba(Ma,2);var Ua=Ma[1];(Fa.matchVisual||Ua!==ja)&&Oa.addMatcher(Ma[0],Ua)});return Oa}h(Ha,Ia);ma(Ha,[{key:"addMatcher",value:function(wa,Fa){this.matchers.push([wa,Fa])}},{key:"convert",value:function(wa){if("string"===typeof wa)return this.container.innerHTML=wa.replace(/>\r?\n +</g,"><"),this.convert();wa=this.quill.getFormat(this.quill.selection.savedRange.index);if(wa[Aa.default.blotName]){var Fa=
307
+ this.container.innerText;this.container.innerHTML="";return(new na.default).insert(Fa,y({},Aa.default.blotName,wa[Aa.default.blotName]))}wa=this.prepareMatching();wa=ba(wa,2);wa=n(this.container,wa[0],wa[1]);e(wa,"\n")&&null==wa.ops[wa.ops.length-1].attributes&&(wa=wa.compose((new na.default).retain(wa.length()-1).delete(1)));Da.log("convert",this.container.innerHTML,wa);this.container.innerHTML="";return wa}},{key:"dangerouslyPasteHTML",value:function(wa,Fa){var Oa=2<arguments.length&&void 0!==arguments[2]?
308
+ arguments[2]:pa.default.sources.API;if("string"===typeof wa)this.quill.setContents(this.convert(wa),Fa),this.quill.setSelection(0,pa.default.sources.SILENT);else{var Ma=this.convert(Fa);this.quill.updateContents((new na.default).retain(wa).concat(Ma),Oa);this.quill.setSelection(wa+Ma.length(),pa.default.sources.SILENT)}}},{key:"onPaste",value:function(wa){var Fa=this;if(!wa.defaultPrevented&&this.quill.isEnabled()){var Oa=this.quill.getSelection(),Ma=(new na.default).retain(Oa.index),Ua=this.quill.scrollingContainer.scrollTop;
309
+ this.container.focus();this.quill.selection.update(pa.default.sources.SILENT);setTimeout(function(){Ma=Ma.concat(Fa.convert()).delete(Oa.length);Fa.quill.updateContents(Ma,pa.default.sources.USER);Fa.quill.setSelection(Ma.length()-Oa.length,pa.default.sources.SILENT);Fa.quill.scrollingContainer.scrollTop=Ua;Fa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var wa=this,Fa=[],Oa=[];this.matchers.forEach(function(Ma){Ma=ba(Ma,2);var Ua=Ma[0],Wa=Ma[1];switch(Ua){case Node.TEXT_NODE:Oa.push(Wa);
310
+ break;case Node.ELEMENT_NODE:Fa.push(Wa);break;default:[].forEach.call(wa.container.querySelectorAll(Ua),function(ab){ab["__ql-matcher"]=ab["__ql-matcher"]||[];ab["__ql-matcher"].push(Wa)})}});return[Fa,Oa]}}]);return Ha}(ua.default);ha.DEFAULTS={matchers:[],matchVisual:!0};la.default=ha;la.matchAttributor=ca;la.matchBlot=w;la.matchNewline=aa;la.matchSpacing=ja;la.matchText=fa},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
311
+ typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,
312
+ e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=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");
313
+ return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"optimize",value:function(e){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,e);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(6)).default);
314
+ ka.blotName="bold";ka.tagName=["STRONG","B"];la.default=ka},function(ka,la,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function y(aa,ja){if(!aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?aa:ja}function r(aa,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);aa.prototype=Object.create(ja&&ja.prototype,{constructor:{value:aa,
315
+ enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,ja):aa.__proto__=ja)}function h(aa,ja,fa){var ea=document.createElement("button");ea.setAttribute("type","button");ea.classList.add("ql-"+ja);null!=fa&&(ea.value=fa);aa.appendChild(ea)}function a(aa,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(fa){var ea=document.createElement("span");ea.classList.add("ql-formats");fa.forEach(function(ba){if("string"===typeof ba)h(ea,ba);else{var ma=Object.keys(ba)[0];
316
+ ba=ba[ma];Array.isArray(ba)?b(ea,ma,ba):h(ea,ma,ba)}});aa.appendChild(ea)})}function b(aa,ja,fa){var ea=document.createElement("select");ea.classList.add("ql-"+ja);fa.forEach(function(ba){var ma=document.createElement("option");!1!==ba?ma.setAttribute("value",ba):ma.setAttribute("selected","selected");ea.appendChild(ma)});aa.appendChild(ea)}Object.defineProperty(la,"__esModule",{value:!0});la.addControls=la.default=void 0;var e=function(){return function(aa,ja){if(Array.isArray(aa))return aa;if(Symbol.iterator in
317
+ Object(aa)){var fa=[],ea=!0,ba=!1,ma=void 0;try{for(var ta=aa[Symbol.iterator](),na;!(ea=(na=ta.next()).done)&&(fa.push(na.value),!ja||fa.length!==ja);ea=!0);}catch(oa){ba=!0,ma=oa}finally{try{if(!ea&&ta["return"])ta["return"]()}finally{if(ba)throw ma;}}return fa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),f=function(){function aa(ja,fa){for(var ea=0;ea<fa.length;ea++){var ba=fa[ea];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=
318
+ !0);Object.defineProperty(ja,ba.key,ba)}}return function(ja,fa,ea){fa&&aa(ja.prototype,fa);ea&&aa(ja,ea);return ja}}();ka=ha(2);var n=da(ka);ka=ha(0);var x=da(ka);ka=ha(5);var ca=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var w=(0,ka.default)("quill:toolbar");ha=function(aa){function ja(fa,ea){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var ba=y(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,fa,ea));Array.isArray(ba.options.container)?(ea=document.createElement("div"),
319
+ a(ea,ba.options.container),fa.container.parentNode.insertBefore(ea,fa.container),ba.container=ea):ba.container="string"===typeof ba.options.container?document.querySelector(ba.options.container):ba.options.container;if(!(ba.container instanceof HTMLElement)){var ma;return ma=w.error("Container required for toolbar",ba.options),y(ba,ma)}ba.container.classList.add("ql-toolbar");ba.controls=[];ba.handlers={};Object.keys(ba.options.handlers).forEach(function(ta){ba.addHandler(ta,ba.options.handlers[ta])});
320
+ [].forEach.call(ba.container.querySelectorAll("button, select"),function(ta){ba.attach(ta)});ba.quill.on(ca.default.events.EDITOR_CHANGE,function(ta,na){ta===ca.default.events.SELECTION_CHANGE&&ba.update(na)});ba.quill.on(ca.default.events.SCROLL_OPTIMIZE,function(){var ta=ba.quill.selection.getRange();ta=e(ta,1)[0];ba.update(ta)});return ba}r(ja,aa);f(ja,[{key:"addHandler",value:function(fa,ea){this.handlers[fa]=ea}},{key:"attach",value:function(fa){var ea=this,ba=[].find.call(fa.classList,function(ma){return 0===
321
+ ma.indexOf("ql-")});if(ba){ba=ba.slice(3);"BUTTON"===fa.tagName&&fa.setAttribute("type","button");if(null==this.handlers[ba]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[ba]){w.warn("ignoring attaching to disabled format",ba,fa);return}if(null==x.default.query(ba)){w.warn("ignoring attaching to nonexistent format",ba,fa);return}}fa.addEventListener("SELECT"===fa.tagName?"change":"click",function(ma){if("SELECT"===fa.tagName){if(0>fa.selectedIndex)return;var ta=fa.options[fa.selectedIndex];
322
+ ta=ta.hasAttribute("selected")?!1:ta.value||!1}else ta=fa.classList.contains("ql-active")?!1:fa.value||!fa.hasAttribute("value"),ma.preventDefault();ea.quill.focus();ma=ea.quill.selection.getRange();ma=e(ma,1)[0];if(null!=ea.handlers[ba])ea.handlers[ba].call(ea,ta);else if(x.default.query(ba).prototype instanceof x.default.Embed){ta=prompt("Enter "+ba);if(!ta)return;var na=ea.quill,oa=na.updateContents,pa=(new n.default).retain(ma.index).delete(ma.length),ua=pa.insert,va={},ra=ba;ra in va?Object.defineProperty(va,
323
+ ra,{value:ta,enumerable:!0,configurable:!0,writable:!0}):va[ra]=ta;oa.call(na,ua.call(pa,va),ca.default.sources.USER)}else ea.quill.format(ba,ta,ca.default.sources.USER);ea.update(ma)});this.controls.push([ba,fa])}}},{key:"update",value:function(fa){var ea=null==fa?{}:this.quill.getFormat(fa);this.controls.forEach(function(ba){ba=e(ba,2);var ma=ba[0];ba=ba[1];if("SELECT"===ba.tagName){var ta=void 0;null==fa?ta=null:null==ea[ma]?ta=ba.querySelector("option[selected]"):Array.isArray(ea[ma])||(ma=ea[ma],
324
+ "string"===typeof ma&&(ma=ma.replace(/"/g,'\\"')),ta=ba.querySelector('option[value="'+ma+'"]'));null==ta?(ba.value="",ba.selectedIndex=-1):ta.selected=!0}else null==fa?ba.classList.remove("ql-active"):ba.hasAttribute("value")?(ma=ea[ma]===ba.getAttribute("value")||null!=ea[ma]&&ea[ma].toString()===ba.getAttribute("value")||null==ea[ma]&&!ba.getAttribute("value"),ba.classList.toggle("ql-active",ma)):ba.classList.toggle("ql-active",null!=ea[ma])})}}]);return ja}(ha.default);ha.DEFAULTS={};ha.DEFAULTS=
325
+ {container:null,handlers:{clean:function(){var aa=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(fa){null!=x.default.query(fa,x.default.Scope.INLINE)&&aa.quill.format(fa,!1)})):this.quill.removeFormat(ja,ca.default.sources.USER))},direction:function(aa){var ja=this.quill.getFormat().align;"rtl"===aa&&null==ja?this.quill.format("align","right",ca.default.sources.USER):aa||"right"!==ja||this.quill.format("align",!1,ca.default.sources.USER);
326
+ this.quill.format("direction",aa,ca.default.sources.USER)},indent:function(aa){var ja=this.quill.getFormat(this.quill.getSelection()),fa=parseInt(ja.indent||0);if("+1"===aa||"-1"===aa)aa="+1"===aa?1:-1,"rtl"===ja.direction&&(aa*=-1),this.quill.format("indent",fa+aa,ca.default.sources.USER)},link:function(aa){!0===aa&&(aa=prompt("Enter link URL:"));this.quill.format("link",aa,ca.default.sources.USER)},list:function(aa){var ja=this.quill.getFormat(this.quill.getSelection());"check"===aa?"checked"===
327
+ ja.list||"unchecked"===ja.list?this.quill.format("list",!1,ca.default.sources.USER):this.quill.format("list","unchecked",ca.default.sources.USER):this.quill.format("list",aa,ca.default.sources.USER)}}};la.default=ha;la.addControls=a},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ka,
328
+ la,ha){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function y(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(la,
329
+ "__esModule",{value:!0});var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?
330
+ void 0:e.call(f)}};ka=function(b){function e(f,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");f=da(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));f.label.innerHTML=n;f.container.classList.add("ql-color-picker");[].slice.call(f.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")});return f}y(e,b);r(e,[{key:"buildItem",value:function(f){var n=h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
331
+ "buildItem",this).call(this,f);n.style.backgroundColor=f.getAttribute("value")||"";return n}},{key:"selectItem",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,f,n);n=this.label.querySelector(".ql-color-label");f=f?f.getAttribute("data-value")||"":"";n&&("line"===n.tagName?n.style.stroke=f:n.style.fill=f)}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);la.default=ka},function(ka,la,ha){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
332
+ return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function y(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(la,"__esModule",{value:!0});var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=
333
+ n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=function(b){function e(f,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
334
+ f=da(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));f.container.classList.add("ql-icon-picker");[].forEach.call(f.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=n[x.getAttribute("data-value")||""]});f.defaultItem=f.container.querySelector(".ql-selected");f.selectItem(f.defaultItem);return f}y(e,b);r(e,[{key:"selectItem",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,f,n);f=f||this.defaultItem;this.label.innerHTML=
335
+ f.innerHTML}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);la.default=ka},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});var ha=function(){function da(y,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,a)}}return function(y,r,h){r&&da(y.prototype,r);h&&da(y,h);return y}}();ka=function(){function da(y,r){var h=this;if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");
336
+ this.quill=y;this.boundsContainer=r||document.body;this.root=y.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"});this.hide()}ha(da,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(y){var r=y.left+y.width/2-this.root.offsetWidth/2,h=y.bottom+this.quill.root.scrollTop;this.root.style.left=
337
+ r+"px";this.root.style.top=h+"px";this.root.classList.remove("ql-flip");var a=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),e=0;b.right>a.right&&(e=a.right-b.right,this.root.style.left=r+e+"px");b.left<a.left&&(e=a.left-b.left,this.root.style.left=r+e+"px");b.bottom>a.bottom&&(this.root.style.top=h-(y.bottom-y.top+(b.bottom-b.top))+"px",this.root.classList.add("ql-flip"));return e}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
338
+ return da}();la.default=ka},function(ka,la,ha){function da(ba){return ba&&ba.__esModule?ba:{default:ba}}function y(ba,ma){if(!(ba instanceof ma))throw new TypeError("Cannot call a class as a function");}function r(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 h(ba,ma){if("function"!==typeof ma&&null!==ma)throw new TypeError("Super expression must either be null or a function, not "+
339
+ typeof ma);ba.prototype=Object.create(ma&&ma.prototype,{constructor:{value:ba,enumerable:!1,writable:!0,configurable:!0}});ma&&(Object.setPrototypeOf?Object.setPrototypeOf(ba,ma):ba.__proto__=ma)}Object.defineProperty(la,"__esModule",{value:!0});var a=function(){return function(ba,ma){if(Array.isArray(ba))return ba;if(Symbol.iterator in Object(ba)){var ta=[],na=!0,oa=!1,pa=void 0;try{for(var ua=ba[Symbol.iterator](),va;!(na=(va=ua.next()).done)&&(ta.push(va.value),!ma||ta.length!==ma);na=!0);}catch(ra){oa=
340
+ !0,pa=ra}finally{try{if(!na&&ua["return"])ua["return"]()}finally{if(oa)throw pa;}}return ta}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function oa(ma,ta,na){null===ma&&(ma=Function.prototype);var pa=Object.getOwnPropertyDescriptor(ma,ta);if(void 0===pa){if(ma=Object.getPrototypeOf(ma),null!==ma)return oa(ma,ta,na)}else{if("value"in pa)return pa.value;ta=pa.get;return void 0===ta?void 0:ta.call(na)}},e=function(){function ma(ta,na){for(var oa=0;oa<na.length;oa++){var pa=
341
+ na[oa];pa.enumerable=pa.enumerable||!1;pa.configurable=!0;"value"in pa&&(pa.writable=!0);Object.defineProperty(ta,pa.key,pa)}}return function(ta,na,oa){na&&ma(ta.prototype,na);oa&&ma(ta,oa);return ta}}();ka=ha(3);ka=da(ka);var f=ha(8),n=da(f);f=ha(43);var x=da(f),ca=ha(27),w=da(ca),aa=ha(15);ha=ha(41);var ja=da(ha),fa=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ha=function(ma){function ta(na,oa){y(this,ta);null!=oa.modules.toolbar&&
342
+ null==oa.modules.toolbar.container&&(oa.modules.toolbar.container=fa);na=r(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,na,oa));na.quill.container.classList.add("ql-snow");return na}h(ta,ma);e(ta,[{key:"extendToolbar",value:function(na){na.container.classList.add("ql-snow");this.buildButtons([].slice.call(na.container.querySelectorAll("button")),ja.default);this.buildPickers([].slice.call(na.container.querySelectorAll("select")),ja.default);this.tooltip=new ea(this.quill,this.options.bounds);
343
+ na.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(oa,pa){na.handlers.link.call(na,!pa.format.link)})}}]);return ta}(x.default);ha.DEFAULTS=(0,ka.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ma){ma?(ma=this.quill.getSelection(),null!=ma&&0!=ma.length&&(ma=this.quill.getText(ma),/^\S+@\S+\.\S+$/.test(ma)&&0!==ma.indexOf("mailto:")&&(ma="mailto:"+ma),this.quill.theme.tooltip.edit("link",ma))):this.quill.format("link",
344
+ !1)}}}}});var ea=function(ma){function ta(na,oa){y(this,ta);na=r(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,na,oa));na.preview=na.root.querySelector("a.ql-preview");return na}h(ta,ma);e(ta,[{key:"listen",value:function(){var na=this;b(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(oa){na.root.classList.contains("ql-editing")?na.save():na.edit("link",na.preview.textContent);
345
+ oa.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(oa){if(null!=na.linkRange){var pa=na.linkRange;na.restoreFocus();na.quill.formatText(pa,"link",!1,n.default.sources.USER);delete na.linkRange}oa.preventDefault();na.hide()});this.quill.on(n.default.events.SELECTION_CHANGE,function(oa,pa,ua){if(null!=oa){if(0===oa.length&&ua===n.default.sources.USER){if(pa=na.quill.scroll.descendant(w.default,oa.index),ua=a(pa,2),pa=ua[0],ua=ua[1],null!=pa){na.linkRange=
346
+ new aa.Range(oa.index-ua,pa.length());oa=w.default.formats(pa.domNode);na.preview.textContent=oa;na.preview.setAttribute("href",oa);na.show();na.position(na.quill.getBounds(na.linkRange));return}}else delete na.linkRange;na.hide()}})}},{key:"show",value:function(){b(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return ta}(f.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
+ la.default=ha},function(ka,la,ha){function da(Qa){return Qa&&Qa.__esModule?Qa:{default:Qa}}Object.defineProperty(la,"__esModule",{value:!0});ka=ha(29);ka=da(ka);var y=ha(36),r=ha(38),h=ha(64),a=ha(65);a=da(a);var b=ha(66);b=da(b);var e=ha(67),f=da(e),n=ha(37),x=ha(26),ca=ha(39),w=ha(40),aa=ha(56);aa=da(aa);var ja=ha(68);ja=da(ja);var fa=ha(27);fa=da(fa);var ea=ha(69);ea=da(ea);var ba=ha(70);ba=da(ba);var ma=ha(71);ma=da(ma);var ta=ha(72);ta=da(ta);var na=ha(73);na=da(na);var oa=ha(13),pa=da(oa),ua=
348
+ ha(74);ua=da(ua);var va=ha(75);va=da(va);var ra=ha(57);ra=da(ra);var xa=ha(41);xa=da(xa);var Aa=ha(28);Aa=da(Aa);var Ga=ha(59);Ga=da(Ga);var Ka=ha(60);Ka=da(Ka);var Da=ha(61);Da=da(Da);var Pa=ha(108);Pa=da(Pa);ha=ha(62);ha=da(ha);ka.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":y.AlignClass,"attributors/class/background":n.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":ca.FontClass,
349
+ "attributors/class/size":w.SizeClass,"attributors/style/align":y.AlignStyle,"attributors/style/background":n.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":ca.FontStyle,"attributors/style/size":w.SizeStyle},!0);ka.default.register({"formats/align":y.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":h.IndentClass,"formats/background":n.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":ca.FontClass,
350
+ "formats/size":w.SizeClass,"formats/blockquote":a.default,"formats/code-block":pa.default,"formats/header":b.default,"formats/list":f.default,"formats/bold":aa.default,"formats/code":oa.Code,"formats/italic":ja.default,"formats/link":fa.default,"formats/script":ea.default,"formats/strike":ba.default,"formats/underline":ma.default,"formats/image":ta.default,"formats/video":na.default,"formats/list/item":e.ListItem,"modules/formula":ua.default,"modules/syntax":va.default,"modules/toolbar":ra.default,
351
+ "themes/bubble":Pa.default,"themes/snow":ha.default,"ui/icons":xa.default,"ui/picker":Aa.default,"ui/icon-picker":Ka.default,"ui/color-picker":Ga.default,"ui/tooltip":Da.default},!0);la.default=ka.default},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,
352
+ a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});la.IndentClass=void 0;var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,
353
+ e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){return a&&a.__esModule?a:{default:a}}(ha(0));ka=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");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"add",
354
+ value:function(e,f){if("+1"===f||"-1"===f){var n=this.value(e)||0;f="+1"===f?n+1:n-1}return 0===f?(this.remove(e),!0):r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,e,f)}},{key:"canAdd",value:function(e,f){return r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,e,f)||r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,e,parseInt(f))}},{key:"value",value:function(e){return parseInt(r(b.prototype.__proto__||
355
+ Object.getPrototypeOf(b.prototype),"value",this).call(this,e))||void 0}}]);return b}(ka.default.Attributor.Class))("indent","ql-indent",{scope:ka.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});la.IndentClass=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
356
+ Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(4)).default);
357
+ ka.blotName="blockquote";ka.tagName="blockquote";la.default=ka},function(ka,la,ha){function da(r,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function r(h,a){for(var b=0;b<a.length;b++){var e=
358
+ a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(h,e.key,e)}}return function(h,a,b){a&&r(h.prototype,a);b&&r(h,b);return h}}();ka=function(r){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var a=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?
359
+ this:a}da(h,r);y(h,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]);return h}(function(r){return r&&r.__esModule?r:{default:r}}(ha(4)).default);ka.blotName="header";ka.tagName="H1 H2 H3 H4 H5 H6".split(" ");la.default=ka},function(ka,la,ha){function da(x){return x&&x.__esModule?x:{default:x}}function y(x,ca){if(!(x instanceof ca))throw new TypeError("Cannot call a class as a function");}function r(x,ca){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
360
+ return!ca||"object"!==typeof ca&&"function"!==typeof ca?x:ca}function h(x,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);x.prototype=Object.create(ca&&ca.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(x,ca):x.__proto__=ca)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.ListItem=void 0;var a=function(){function x(ca,w){for(var aa=
361
+ 0;aa<w.length;aa++){var ja=w[aa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,ja.key,ja)}}return function(ca,w,aa){w&&x(ca.prototype,w);aa&&x(ca,aa);return ca}}(),b=function ja(ca,w,aa){null===ca&&(ca=Function.prototype);var fa=Object.getOwnPropertyDescriptor(ca,w);if(void 0===fa){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,w,aa)}else{if("value"in fa)return fa.value;w=fa.get;return void 0===w?void 0:w.call(aa)}};ka=ha(0);var e=
362
+ da(ka);ka=ha(4);ka=da(ka);ha=ha(25);ha=da(ha);var f=function(ca){function w(){y(this,w);return r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}h(w,ca);a(w,[{key:"format",value:function(aa,ja){aa!==n.blotName||ja?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,aa,ja):this.replaceWith(e.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
363
+ "remove",this).call(this)}},{key:"replaceWith",value:function(aa,ja){this.parent.isolate(this.offset(this.parent),this.length());if(aa===this.parent.statics.blotName)return this.parent.replaceWith(aa,ja),this;this.parent.unwrap();return b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,aa,ja)}}],[{key:"formats",value:function(aa){return aa.tagName===this.tagName?void 0:b(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,aa)}}]);return w}(ka.default);
364
+ f.blotName="list-item";f.tagName="LI";var n=function(ca){function w(aa){function ja(ea){if(ea.target.parentNode===aa){var ba=fa.statics.formats(aa);ea=e.default.find(ea.target);"checked"===ba?ea.format("list","unchecked"):"unchecked"===ba&&ea.format("list","checked")}}y(this,w);var fa=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,aa));aa.addEventListener("touchstart",ja);aa.addEventListener("mousedown",ja);return fa}h(w,ca);a(w,null,[{key:"create",value:function(aa){var ja="ordered"===
365
+ aa?"OL":"UL";ja=b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ja);"checked"!==aa&&"unchecked"!==aa||ja.setAttribute("data-checked","checked"===aa);return ja}},{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"}}]);a(w,[{key:"format",value:function(aa,ja){0<this.children.length&&this.children.tail.format(aa,ja)}},{key:"formats",value:function(){var aa=
366
+ {},ja=this.statics.blotName,fa=this.statics.formats(this.domNode);ja in aa?Object.defineProperty(aa,ja,{value:fa,enumerable:!0,configurable:!0,writable:!0}):aa[ja]=fa;return aa}},{key:"insertBefore",value:function(aa,ja){aa instanceof f?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,aa,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(aa,ja))}},{key:"optimize",value:function(aa){b(w.prototype.__proto__||Object.getPrototypeOf(w.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 ja=e.default.create(this.statics.defaultChild);aa.moveChildren(ja);this.appendChild(ja)}b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
368
+ "replace",this).call(this,aa)}}]);return w}(ha.default);n.blotName="list";n.scope=e.default.Scope.BLOCK_BLOT;n.tagName=["OL","UL"];n.defaultChild="list-item";n.allowedChildren=[f];la.ListItem=f;la.default=n},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
369
+ Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(56)).default);
370
+ ka.blotName="italic";ka.tagName=["EM","I"];la.default=ka},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=
371
+ b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");
372
+ 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);y(b,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,e)}},{key:"formats",value:function(e){if("SUB"===e.tagName)return"sub";if("SUP"===
373
+ e.tagName)return"super"}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(6)).default);ka.blotName="script";ka.tagName=["SUB","SUP"];la.default=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,r):y.__proto__=r)}
374
+ Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(6)).default);ka.blotName="strike";ka.tagName="S";
375
+ la.default=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");
376
+ var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(6)).default);ka.blotName="underline";ka.tagName="U";la.default=ka},function(ka,la,ha){function da(b,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
377
+ typeof e);b.prototype=Object.create(e&&e.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||!1;x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=function x(e,f,
378
+ n){null===e&&(e=Function.prototype);var ca=Object.getOwnPropertyDescriptor(e,f);if(void 0===ca){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,n)}else{if("value"in ca)return ca.value;f=ca.get;return void 0===f?void 0:f.call(n)}};ka=function(e){return e&&e.__esModule?e:{default:e}}(ha(0));var h=ha(27),a=["alt","height","width"];ha=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var n=(f.__proto__||Object.getPrototypeOf(f)).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(f,e);y(f,[{key:"format",value:function(n,x){-1<a.indexOf(n)?x?this.domNode.setAttribute(n,x):this.domNode.removeAttribute(n):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,n,x)}}],[{key:"create",value:function(n){var x=r(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,n);"string"===typeof n&&
380
+ x.setAttribute("src",this.sanitize(n));return x}},{key:"formats",value:function(n){return a.reduce(function(x,ca){n.hasAttribute(ca)&&(x[ca]=n.getAttribute(ca));return x},{})}},{key:"match",value:function(n){return/\.(jpe?g|gif|png)$/.test(n)||/^data:image\/.+;base64/.test(n)}},{key:"sanitize",value:function(n){return(0,h.sanitize)(n,["http","https","data"])?n:"//:0"}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return f}(ka.default.Embed);ha.blotName="image";ha.tagName="IMG";
381
+ la.default=ha},function(ka,la,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,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||!1;
382
+ x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=function x(e,f,n){null===e&&(e=Function.prototype);var ca=Object.getOwnPropertyDescriptor(e,f);if(void 0===ca){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,n)}else{if("value"in ca)return ca.value;f=ca.get;return void 0===f?void 0:f.call(n)}};ka=ha(4);var h=function(e){return e&&e.__esModule?e:{default:e}}(ha(27)),a=["height","width"];ha=function(e){function f(){if(!(this instanceof
383
+ f))throw new TypeError("Cannot call a class as a function");var n=(f.__proto__||Object.getPrototypeOf(f)).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(f,e);y(f,[{key:"format",value:function(n,x){-1<a.indexOf(n)?x?this.domNode.setAttribute(n,x):this.domNode.removeAttribute(n):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,n,x)}}],
384
+ [{key:"create",value:function(n){var x=r(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,n);x.setAttribute("frameborder","0");x.setAttribute("allowfullscreen",!0);x.setAttribute("src",this.sanitize(n));return x}},{key:"formats",value:function(n){return a.reduce(function(x,ca){n.hasAttribute(ca)&&(x[ca]=n.getAttribute(ca));return x},{})}},{key:"sanitize",value:function(n){return h.default.sanitize(n)}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return f}(ka.BlockEmbed);
385
+ ha.blotName="video";ha.className="ql-video";ha.tagName="IFRAME";la.default=ha},function(ka,la,ha){function da(x){return x&&x.__esModule?x:{default:x}}function y(x,ca){if(!(x instanceof ca))throw new TypeError("Cannot call a class as a function");}function r(x,ca){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&"function"!==typeof ca?x:ca}function h(x,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+
386
+ typeof ca);x.prototype=Object.create(ca&&ca.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(x,ca):x.__proto__=ca)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.FormulaBlot=void 0;var a=function(){function x(ca,w){for(var aa=0;aa<w.length;aa++){var ja=w[aa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,ja.key,ja)}}return function(ca,w,aa){w&&x(ca.prototype,
387
+ w);aa&&x(ca,aa);return ca}}(),b=function ja(ca,w,aa){null===ca&&(ca=Function.prototype);var fa=Object.getOwnPropertyDescriptor(ca,w);if(void 0===fa){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,w,aa)}else{if("value"in fa)return fa.value;w=fa.get;return void 0===w?void 0:w.call(aa)}};ka=ha(35);ka=da(ka);var e=ha(5),f=da(e);ha=ha(9);ha=da(ha);var n=function(ca){function w(){y(this,w);return r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}h(w,ca);a(w,null,[{key:"create",
388
+ value:function(aa){var ja=b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,aa);"string"===typeof aa&&(window.katex.render(aa,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",aa));return ja}},{key:"value",value:function(aa){return aa.getAttribute("data-value")}}]);return w}(ka.default);n.blotName="formula";n.className="ql-formula";n.tagName="SPAN";ha=function(ca){function w(){y(this,w);var aa=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
389
+ return aa}h(w,ca);a(w,null,[{key:"register",value:function(){f.default.register(n,!0)}}]);return w}(ha.default);la.FormulaBlot=n;la.default=ha},function(ka,la,ha){function da(ca){return ca&&ca.__esModule?ca:{default:ca}}function y(ca,w){if(!(ca instanceof w))throw new TypeError("Cannot call a class as a function");}function r(ca,w){if(!ca)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?ca:w}function h(ca,w){if("function"!==
390
+ typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);ca.prototype=Object.create(w&&w.prototype,{constructor:{value:ca,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(ca,w):ca.__proto__=w)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.CodeToken=la.CodeBlock=void 0;var a=function(){function ca(w,aa){for(var ja=0;ja<aa.length;ja++){var fa=aa[ja];fa.enumerable=fa.enumerable||!1;fa.configurable=
391
+ !0;"value"in fa&&(fa.writable=!0);Object.defineProperty(w,fa.key,fa)}}return function(w,aa,ja){aa&&ca(w.prototype,aa);ja&&ca(w,ja);return w}}(),b=function fa(w,aa,ja){null===w&&(w=Function.prototype);var ea=Object.getOwnPropertyDescriptor(w,aa);if(void 0===ea){if(w=Object.getPrototypeOf(w),null!==w)return fa(w,aa,ja)}else{if("value"in ea)return ea.value;aa=ea.get;return void 0===aa?void 0:aa.call(ja)}};ka=ha(0);ka=da(ka);var e=ha(5),f=da(e);e=ha(9);e=da(e);ha=ha(13);var n=function(w){function aa(){y(this,
392
+ aa);return r(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}h(aa,w);a(aa,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();b(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var fa=this.domNode.textContent;if(this.cachedText!==fa){if(0<fa.trim().length||null==this.cachedText)this.domNode.innerHTML=ja(fa),this.domNode.normalize(),this.attach();
393
+ this.cachedText=fa}}}]);return aa}(da(ha).default);n.className="ql-syntax";var x=new ka.default.Attributor.Class("token","hljs",{scope:ka.default.Scope.INLINE});ha=function(w){function aa(ja,fa){y(this,aa);var ea=r(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this,ja,fa));if("function"!==typeof ea.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var ba=null;ea.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ba);
394
+ ba=setTimeout(function(){ea.highlight();ba=null},ea.options.interval)});ea.highlight();return ea}h(aa,w);a(aa,null,[{key:"register",value:function(){f.default.register(x,!0);f.default.register(n,!0)}}]);a(aa,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var fa=this.quill.getSelection();this.quill.scroll.descendants(n).forEach(function(ea){ea.highlight(ja.options.highlight)});this.quill.update(f.default.sources.SILENT);
395
+ null!=fa&&this.quill.setSelection(fa,f.default.sources.SILENT)}}}]);return aa}(e.default);ha.DEFAULTS={highlight:function(){return null==window.hljs?null:function(w){return window.hljs.highlightAuto(w).value}}(),interval:1E3};la.CodeBlock=n;la.CodeToken=x;la.default=ha},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports=
396
+ '<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},
397
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},
398
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},
399
+ function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},
400
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},
401
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},
402
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},
403
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},
404
+ function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},
405
+ function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},
406
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},
407
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},
408
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},
409
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},
410
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},
411
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},
412
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},
413
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},
414
+ function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!(ja instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&
415
+ "function"!==typeof fa?ja:fa}function h(ja,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.BubbleTooltip=void 0;var a=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);
416
+ var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}},b=function(){function fa(ea,ba){for(var ma=0;ma<ba.length;ma++){var ta=ba[ma];ta.enumerable=ta.enumerable||!1;ta.configurable=!0;"value"in ta&&(ta.writable=!0);Object.defineProperty(ea,ta.key,ta)}}return function(ea,ba,ma){ba&&fa(ea.prototype,ba);ma&&fa(ea,ma);return ea}}();ka=ha(3);ka=da(ka);
417
+ var e=ha(8),f=da(e);e=ha(43);var n=da(e),x=ha(15);ha=ha(41);var ca=da(ha),w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];ha=function(fa){function ea(ba,ma){y(this,ea);null!=ma.modules.toolbar&&null==ma.modules.toolbar.container&&(ma.modules.toolbar.container=w);ba=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba,ma));ba.quill.container.classList.add("ql-bubble");return ba}h(ea,fa);b(ea,[{key:"extendToolbar",value:function(ba){this.tooltip=new aa(this.quill,this.options.bounds);
418
+ this.tooltip.root.appendChild(ba.container);this.buildButtons([].slice.call(ba.container.querySelectorAll("button")),ca.default);this.buildPickers([].slice.call(ba.container.querySelectorAll("select")),ca.default)}}]);return ea}(n.default);ha.DEFAULTS=(0,ka.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(fa){fa?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var aa=function(fa){function ea(ba,ma){y(this,ea);var ta=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,
419
+ ba,ma));ta.quill.on(f.default.events.EDITOR_CHANGE,function(na,oa,pa,ua){na===f.default.events.SELECTION_CHANGE&&(null!=oa&&0<oa.length&&ua===f.default.sources.USER?(ta.show(),ta.root.style.left="0px",ta.root.style.width="",ta.root.style.width=ta.root.offsetWidth+"px",na=ta.quill.getLines(oa.index,oa.length),1===na.length?ta.position(ta.quill.getBounds(oa)):(pa=na[na.length-1],na=ta.quill.getIndex(pa),oa=Math.min(pa.length()-1,oa.index+oa.length-na),oa=ta.quill.getBounds(new x.Range(na,oa)),ta.position(oa))):
420
+ document.activeElement!==ta.textbox&&ta.quill.hasFocus()&&ta.hide())});return ta}h(ea,fa);b(ea,[{key:"listen",value:function(){var ba=this;a(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){ba.root.classList.remove("ql-editing")});this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ba.root.classList.contains("ql-hidden")){var ma=ba.quill.getSelection();null!=
421
+ ma&&ba.position(ba.quill.getBounds(ma))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ba){ba=a(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"position",this).call(this,ba);var ma=this.root.querySelector(".ql-tooltip-arrow");ma.style.marginLeft="";if(0===ba)return ba;ma.style.marginLeft=-1*ba-ma.offsetWidth/2+"px"}}]);return ea}(e.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
+ la.BubbleTooltip=aa;la.default=ha},function(ka,la,ha){ka.exports=ha(63)}])["default"]})}).call(this,z(392).Buffer)}}]);}).call(this || window)