ArenMg/src/main/webapp/assets/js/vendors/quill.min.js
2021-04-16 11:34:24 +03:00

408 lines
207 KiB
JavaScript

/*
Quill Editor v1.3.6
https://quilljs.com/
Copyright (c) 2014, Jason Chen
Copyright (c) 2013, salesforce.com
*/
(function(b,g){"object"===typeof exports&&"object"===typeof module?module.exports=g():"function"===typeof define&&define.amd?define([],g):"object"===typeof exports?exports.Quill=g():b.Quill=g()})("undefined"!==typeof self?self:this,function(){return function(b){function g(k){if(d[k])return d[k].exports;var n=d[k]={i:k,l:!1,exports:{}};b[k].call(n.exports,n,n.exports,g);n.l=!0;return n.exports}var d={};g.m=b;g.c=d;g.d=function(b,d,l){g.o(b,d)||Object.defineProperty(b,d,{configurable:!1,enumerable:!0,
get:l})};g.n=function(b){var d=b&&b.__esModule?function(){return b["default"]}:function(){return b};g.d(d,"a",d);return d};g.o=function(b,d){return Object.prototype.hasOwnProperty.call(b,d)};g.p="";return g(g.s=109)}([function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});b=d(17);var k=d(18),n=d(19),l=d(45),m=d(46),f=d(47),c=d(48),a=d(49),e=d(12),p=d(32),h=d(33),r=d(31);d=d(1);g.default={Scope:d.Scope,create:d.create,find:d.find,query:d.query,register:d.register,Container:b.default,Format:k.default,
Leaf:n.default,Embed:c.default,Scroll:l.default,Block:f.default,Inline:m.default,Text:a.default,Attributor:{Attribute:e.default,Class:p.default,Style:h.default,Store:r.default}}},function(b,g,d){function k(a,e){void 0===e&&(e=!1);return null==a?null:null!=a[g.DATA_KEY]?a[g.DATA_KEY].blot:e?k(a.parentNode,e):null}function n(f,b){void 0===b&&(b=h.ANY);if("string"===typeof f)var d=p[f]||c[f];else if(f instanceof Text||f.nodeType===Node.TEXT_NODE)d=p.text;else if("number"===typeof f)f&h.LEVEL&h.BLOCK?
d=p.block:f&h.LEVEL&h.INLINE&&(d=p.inline);else if(f instanceof HTMLElement){var r=(f.getAttribute("class")||"").split(/\s+/),q;for(q in r)if(d=a[r[q]])break;d=d||e[f.tagName]}return null==d?null:b&h.LEVEL&d.scope&&b&h.TYPE&d.scope?d:null}function l(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];if(1<h.length)return h.map(function(a){return l(a)});var b=h[0];if("string"!==typeof b.blotName&&"string"!==typeof b.attrName)throw new f("Invalid definition");if("abstract"===b.blotName)throw new f("Cannot register abstract class");
p[b.blotName||b.attrName]=b;"string"===typeof b.keyName?c[b.keyName]=b:(null!=b.className&&(a[b.className]=b),null!=b.tagName&&(Array.isArray(b.tagName)?b.tagName=b.tagName.map(function(a){return a.toUpperCase()}):b.tagName=b.tagName.toUpperCase(),(Array.isArray(b.tagName)?b.tagName:[b.tagName]).forEach(function(a){if(null==e[a]||null==b.className)e[a]=b})));return b}var m=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,
e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return function(e,c){function f(){this.constructor=e}a(e,c);e.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(g,"__esModule",{value:!0});var f=function(a){function e(e){e="[Parchment] "+e;var c=a.call(this,e)||this;c.message=e;c.name=c.constructor.name;return c}m(e,a);return e}(Error);g.ParchmentError=f;var c={},a={},e={},p={};g.DATA_KEY="__blot";var h;(function(a){a[a.TYPE=3]="TYPE";a[a.LEVEL=12]="LEVEL";
a[a.ATTRIBUTE=13]="ATTRIBUTE";a[a.BLOT=14]="BLOT";a[a.INLINE=7]="INLINE";a[a.BLOCK=11]="BLOCK";a[a.BLOCK_BLOT=10]="BLOCK_BLOT";a[a.INLINE_BLOT=6]="INLINE_BLOT";a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";a[a.ANY=15]="ANY"})(h=g.Scope||(g.Scope={}));g.create=function(a,e){var c=n(a);if(null==c)throw new f("Unable to create "+a+" blot");a=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:c.create(e);return new c(a,e)};g.find=k;g.query=n;g.register=l},function(b,
g,d){var k=d(51),n=d(11),l=d(3),m=d(20),f=String.fromCharCode(0),c=function(a){Array.isArray(a)?this.ops=a:null!=a&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]};c.prototype.insert=function(a,e){var c={};if(0===a.length)return this;c.insert=a;null!=e&&"object"===typeof e&&0<Object.keys(e).length&&(c.attributes=e);return this.push(c)};c.prototype["delete"]=function(a){return 0>=a?this:this.push({"delete":a})};c.prototype.retain=function(a,e){if(0>=a)return this;a={retain:a};null!=e&&"object"===
typeof e&&0<Object.keys(e).length&&(a.attributes=e);return this.push(a)};c.prototype.push=function(a){var e=this.ops.length,c=this.ops[e-1];a=l(!0,{},a);if("object"===typeof c){if("number"===typeof a["delete"]&&"number"===typeof c["delete"])return this.ops[e-1]={"delete":c["delete"]+a["delete"]},this;if("number"===typeof c["delete"]&&null!=a.insert&&(--e,c=this.ops[e-1],"object"!==typeof c))return this.ops.unshift(a),this;if(n(a.attributes,c.attributes)){if("string"===typeof a.insert&&"string"===
typeof c.insert)return this.ops[e-1]={insert:c.insert+a.insert},"object"===typeof a.attributes&&(this.ops[e-1].attributes=a.attributes),this;if("number"===typeof a.retain&&"number"===typeof c.retain)return this.ops[e-1]={retain:c.retain+a.retain},"object"===typeof a.attributes&&(this.ops[e-1].attributes=a.attributes),this}}e===this.ops.length?this.ops.push(a):this.ops.splice(e,0,a);return this};c.prototype.chop=function(){var a=this.ops[this.ops.length-1];a&&a.retain&&!a.attributes&&this.ops.pop();
return this};c.prototype.filter=function(a){return this.ops.filter(a)};c.prototype.forEach=function(a){this.ops.forEach(a)};c.prototype.map=function(a){return this.ops.map(a)};c.prototype.partition=function(a){var e=[],c=[];this.forEach(function(f){(a(f)?e:c).push(f)});return[e,c]};c.prototype.reduce=function(a,e){return this.ops.reduce(a,e)};c.prototype.changeLength=function(){return this.reduce(function(a,e){return e.insert?a+m.length(e):e.delete?a-e.delete:a},0)};c.prototype.length=function(){return this.reduce(function(a,
e){return a+m.length(e)},0)};c.prototype.slice=function(a,e){a=a||0;"number"!==typeof e&&(e=Infinity);for(var f=[],h=m.iterator(this.ops),b=0;b<e&&h.hasNext();){if(b<a)var d=h.next(a-b);else d=h.next(e-b),f.push(d);b+=m.length(d)}return new c(f)};c.prototype.compose=function(a){var e=m.iterator(this.ops);a=m.iterator(a.ops);for(var f=new c;e.hasNext()||a.hasNext();)if("insert"===a.peekType())f.push(a.next());else if("delete"===e.peekType())f.push(e.next());else{var h=Math.min(e.peekLength(),a.peekLength()),
b=e.next(h),d=a.next(h);if("number"===typeof d.retain){var l={};"number"===typeof b.retain?l.retain=h:l.insert=b.insert;if(h=m.attributes.compose(b.attributes,d.attributes,"number"===typeof b.retain))l.attributes=h;f.push(l)}else"number"===typeof d["delete"]&&"number"===typeof b.retain&&f.push(d)}return f.chop()};c.prototype.concat=function(a){var e=new c(this.ops.slice());0<a.ops.length&&(e.push(a.ops[0]),e.ops=e.ops.concat(a.ops.slice(1)));return e};c.prototype.diff=function(a,e){if(this.ops===
a.ops)return new c;var b=[this,a].map(function(e){return e.map(function(c){if(null!=c.insert)return"string"===typeof c.insert?c.insert:f;throw Error("diff() called "+(e===a?"on":"with")+" non-document");}).join("")}),h=new c;e=k(b[0],b[1],e);var d=m.iterator(this.ops),q=m.iterator(a.ops);e.forEach(function(a){for(var e=a[1].length;0<e;){var c=0;switch(a[0]){case k.INSERT:c=Math.min(q.peekLength(),e);h.push(q.next(c));break;case k.DELETE:c=Math.min(e,d.peekLength());d.next(c);h["delete"](c);break;
case k.EQUAL:c=Math.min(d.peekLength(),q.peekLength(),e);var f=d.next(c),b=q.next(c);if(n(f.insert,b.insert))h.retain(c,m.attributes.diff(f.attributes,b.attributes));else h.push(b)["delete"](c)}e-=c}});return h.chop()};c.prototype.eachLine=function(a,e){e=e||"\n";for(var f=m.iterator(this.ops),h=new c,b=0;f.hasNext();){if("insert"!==f.peekType())return;var d=f.peek(),l=m.length(d)-f.peekLength();d="string"===typeof d.insert?d.insert.indexOf(e,l)-l:-1;if(0>d)h.push(f.next());else if(0<d)h.push(f.next(d));
else{if(!1===a(h,f.next(1).attributes||{},b))return;b+=1;h=new c}}0<h.length()&&a(h,{},b)};c.prototype.transform=function(a,e){e=!!e;if("number"===typeof a)return this.transformPosition(a,e);var f=m.iterator(this.ops);a=m.iterator(a.ops);for(var h=new c;f.hasNext()||a.hasNext();)if("insert"!==f.peekType()||!e&&"insert"===a.peekType())if("insert"===a.peekType())h.push(a.next());else{var b=Math.min(f.peekLength(),a.peekLength()),d=f.next(b),l=a.next(b);d["delete"]||(l["delete"]?h.push(l):h.retain(b,
m.attributes.transform(d.attributes,l.attributes,e)))}else h.retain(m.length(f.next()));return h.chop()};c.prototype.transformPosition=function(a,e){e=!!e;for(var c=m.iterator(this.ops),f=0;c.hasNext()&&f<=a;){var b=c.peekLength(),d=c.peekType();c.next();"delete"===d?a-=Math.min(b,a-f):("insert"===d&&(f<a||!e)&&(a+=b),f+=b)}return a};b.exports=c},function(b,g){var d=Object.prototype.hasOwnProperty,k=Object.prototype.toString,n=function(b){return"function"===typeof Array.isArray?Array.isArray(b):"[object Array]"===
k.call(b)},l=function(b){if(!b||"[object Object]"!==k.call(b))return!1;var f=d.call(b,"constructor"),c=b.constructor&&b.constructor.prototype&&d.call(b.constructor.prototype,"isPrototypeOf");if(b.constructor&&!f&&!c)return!1;for(var a in b);return"undefined"===typeof a||d.call(b,a)};b.exports=function f(){var c,a,e=arguments[0],b=1,h=arguments.length,d=!1;"boolean"===typeof e&&(d=e,e=arguments[1]||{},b=2);if(null==e||"object"!==typeof e&&"function"!==typeof e)e={};for(;b<h;++b){var q=arguments[b];
if(null!=q)for(c in q){var t=e[c];var u=q[c];e!==u&&(d&&u&&(l(u)||(a=n(u)))?(a?(a=!1,t=t&&n(t)?t:[]):t=t&&l(t)?t:{},e[c]=f(d,t,u)):"undefined"!==typeof u&&(e[c]=u))}}return e}},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:
c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function f(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==a)return c;"function"===typeof a.formats&&(c=(0,e.default)(c,a.formats()));return null==a.parent||
"scroll"==a.parent.blotName||a.parent.statics.scope!==a.statics.scope?c:f(a.parent,c)}Object.defineProperty(g,"__esModule",{value:!0});g.default=g.BlockEmbed=g.bubbleFormats=void 0;var c=function(){function a(a,c){for(var e=0;e<c.length;e++){var f=c[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,e,f){e&&a(c.prototype,e);f&&a(c,f);return c}}(),a=function E(a,c,e){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,
c);if(void 0===f){if(a=Object.getPrototypeOf(a),null!==a)return E(a,c,e)}else{if("value"in f)return f.value;c=f.get;return void 0===c?void 0:c.call(e)}};b=d(3);var e=k(b);b=d(2);var p=k(b);b=d(0);var h=k(b);b=d(16);var r=k(b);b=d(6);b=k(b);d=d(7);d=k(d);var q=function(f){function b(){n(this,b);return l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}m(b,f);c(b,[{key:"attach",value:function(){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"attach",this).call(this);
this.attributes=new h.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new p.default).insert(this.value(),(0,e.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(a,c){a=h.default.query(a,h.default.Scope.BLOCK_ATTRIBUTE);null!=a&&this.attributes.attribute(a,c)}},{key:"formatAt",value:function(a,c,e,f){this.format(e,f)}},{key:"insertAt",value:function(c,e,f){"string"===typeof e&&e.endsWith("\n")?(f=h.default.create(t.blotName),this.parent.insertBefore(f,
0===c?this:this.next),f.insertAt(0,e.slice(0,-1))):a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,c,e,f)}}]);return b}(h.default.Embed);q.scope=h.default.Scope.BLOCK_BLOT;var t=function(e){function b(a){n(this,b);a=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a));a.cache={};return a}m(b,e);c(b,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(h.default.Leaf).reduce(function(a,c){return 0===c.length()?a:a.insert(c.value(),
f(c))},new p.default).insert("\n",f(this)));return this.cache.delta}},{key:"deleteAt",value:function(c,e){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"deleteAt",this).call(this,c,e);this.cache={}}},{key:"formatAt",value:function(c,e,f,d){0>=e||(h.default.query(f,h.default.Scope.BLOCK)?c+e===this.length()&&this.format(f,d):a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,c,Math.min(e,this.length()-c-1),f,d),this.cache={})}},{key:"insertAt",value:function(c,
e,f){if(null!=f)return a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,c,e,f);if(0!==e.length){e=e.split("\n");f=e.shift();0<f.length&&(c<this.length()-1||null==this.children.tail?a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,Math.min(c,this.length()-1),f):this.children.tail.insertAt(this.children.tail.length(),f),this.cache={});var h=this;e.reduce(function(a,c){h=h.split(a,!0);h.insertAt(0,c);return c.length},c+f.length)}}},
{key:"insertBefore",value:function(c,e){var f=this.children.head;a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,c,e);f instanceof r.default&&f.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",value:function(c,e){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),
"moveChildren",this).call(this,c,e);this.cache={}}},{key:"optimize",value:function(c){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,c);this.cache={}}},{key:"path",value:function(c){return a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"path",this).call(this,c,!0)}},{key:"removeChild",value:function(c){a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"removeChild",this).call(this,c);this.cache={}}},{key:"split",value:function(c){var e=
1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(e&&(0===c||c>=this.length()-1)){e=this.clone();if(0===c)return this.parent.insertBefore(e,this),this;this.parent.insertBefore(e,this.next);return e}e=a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"split",this).call(this,c,e);this.cache={};return e}}]);return b}(h.default.Block);t.blotName="block";t.tagName="P";t.defaultChild="break";t.allowedChildren=[b.default,h.default.Embed,d.default];g.bubbleFormats=f;g.BlockEmbed=q;g.default=
t},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c,e){c in a?Object.defineProperty(a,c,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[c]=e;return a}function l(a,c){c=(0,B.default)(!0,{container:a,modules:{clipboard:!0,keyboard:!0,history:!0}},c);if(c.theme&&c.theme!==x.DEFAULTS.theme){if(c.theme=x.import("themes/"+c.theme),null==c.theme)throw Error("Invalid theme "+c.theme+". Did you register it?");}else c.theme=G.default;a=(0,B.default)(!0,{},c.theme.DEFAULTS);
[a,c].forEach(function(a){a.modules=a.modules||{};Object.keys(a.modules).forEach(function(c){!0===a.modules[c]&&(a.modules[c]={})})});var e=Object.keys(a.modules).concat(Object.keys(c.modules)).reduce(function(a,c){var e=x.import("modules/"+c);null==e?C.error("Cannot load "+c+" module. Are you sure you registered it?"):a[c]=e.DEFAULTS||{};return a},{});null!=c.modules&&c.modules.toolbar&&c.modules.toolbar.constructor!==Object&&(c.modules.toolbar={container:c.modules.toolbar});c=(0,B.default)(!0,{},
x.DEFAULTS,{modules:e},a,c);["bounds","container","scrollingContainer"].forEach(function(a){"string"===typeof c[a]&&(c[a]=document.querySelector(c[a]))});c.modules=Object.keys(c.modules).reduce(function(a,e){c.modules[e]&&(a[e]=c.modules[e]);return a},{});return c}function m(a,e,f,b){if(this.options.strict&&!this.isEnabled()&&e===q.default.sources.USER)return new h.default;var d=null==f?null:this.getSelection(),p=this.editor.delta;a=a();null!=d&&(!0===f&&(f=d.index),null==b?d=c(d,a,e):0!==b&&(d=c(d,
f,b,e)),this.setSelection(d,q.default.sources.SILENT));if(0<a.length()){var l;f=[q.default.events.TEXT_CHANGE,a,p,e];(l=this.emitter).emit.apply(l,[q.default.events.EDITOR_CHANGE].concat(f));if(e!==q.default.sources.SILENT){var m;(m=this.emitter).emit.apply(m,f)}}return a}function f(c,e,f,b,h){var d={};"number"===typeof c.index&&"number"===typeof c.length?("number"!==typeof e?(h=b,b=f,f=e,e=c.length):e=c.length,c=c.index):"number"!==typeof e&&(h=b,b=f,f=e,e=0);"object"===("undefined"===typeof f?"undefined":
a(f))?(d=f,h=b):"string"===typeof f&&(null!=b?d[f]=b:h=f);h=h||q.default.sources.API;return[c,e,d,h]}function c(a,c,f,b){if(null==a)return null;var d=void 0,p=void 0;c instanceof h.default?(d=[a.index,a.index+a.length].map(function(a){return c.transformPosition(a,b!==q.default.sources.USER)}),a=e(d,2),d=a[0],p=a[1]):(d=[a.index,a.index+a.length].map(function(a){return a<c||a===c&&b===q.default.sources.USER?a:0<=f?a+f:Math.max(c,a+f)}),a=e(d,2),d=a[0],p=a[1]);return new y.Range(d,p-d)}Object.defineProperty(g,
"__esModule",{value:!0});g.default=g.overload=g.expandConfig=void 0;var a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var e=[],f=!0,b=!1,h=void 0;try{for(var d=a[Symbol.iterator](),p;!(f=(p=d.next()).done)&&(e.push(p.value),!c||e.length!==c);f=
!0);}catch(K){b=!0,h=K}finally{try{if(!f&&d["return"])d["return"]()}finally{if(b)throw h;}}return e}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),p=function(){function a(a,c){for(var e=0;e<c.length;e++){var f=c[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,e,f){e&&a(c.prototype,e);f&&a(c,f);return c}}();d(50);b=d(2);var h=k(b);b=d(14);var r=k(b);b=d(8);var q=k(b);b=d(9);b=k(b);
var t=d(0),u=k(t),y=d(15),z=k(y);t=d(3);var B=k(t);t=d(10);var E=k(t);d=d(34);var G=k(d),C=(0,E.default)("quill"),x=function(){function a(c){var e=this,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.options=l(c,f);this.container=this.options.container;if(null==this.container)return C.error("Invalid Quill container",c);this.options.debug&&a.debug(this.options.debug);f=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=this.options.scrollingContainer||this.root;this.emitter=new q.default;this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new r.default(this.scroll);this.selection=new z.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(q.default.events.EDITOR_CHANGE,function(a){a===q.default.events.TEXT_CHANGE&&e.root.classList.toggle("ql-blank",e.editor.isBlank())});this.emitter.on(q.default.events.SCROLL_UPDATE,function(a,c){var f=e.selection.lastRange,b=f&&0===f.length?f.index:void 0;m.call(e,function(){return e.editor.update(null,
c,b)},a)});f=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+f+"<p><br></p></div>");this.setContents(f);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}p(a,null,[{key:"debug",value:function(a){!0===a&&(a="log");E.default.level(a)}},{key:"find",value:function(a){return a.__quill||u.default.find(a)}},{key:"import",value:function(a){null==this.imports[a]&&C.error("Cannot import "+
a+". Are you sure it was registered?");return this.imports[a]}},{key:"register",value:function(a,c){var e=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof a?(f=a.attrName||a.blotName,"string"===typeof f?this.register("formats/"+f,a,c):Object.keys(a).forEach(function(f){e.register(f,a[f],c)})):(null==this.imports[a]||f||C.warn("Overwriting "+a+" with",c),this.imports[a]=c,(a.startsWith("blots/")||a.startsWith("formats/"))&&"abstract"!==c.blotName?u.default.register(c):
a.startsWith("modules")&&"function"===typeof c.register&&c.register())}}]);p(a,[{key:"addContainer",value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof a){var e=a;a=document.createElement("div");a.classList.add(e)}this.container.insertBefore(a,c);return a}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(a,c,b){var h=this;b=f(a,c,b);b=e(b,4);a=b[0];c=b[1];b=b[3];return m.call(this,function(){return h.editor.deleteText(a,
c)},b,a,-1*c)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(a);this.container.classList.toggle("ql-disabled",!a)}},{key:"focus",value:function(){var a=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=a;this.scrollIntoView()}},{key:"format",value:function(a,c){var e=this;return m.call(this,function(){var f=e.getSelection(!0),b=new h.default;
if(null==f)return b;if(u.default.query(a,u.default.Scope.BLOCK))b=e.editor.formatLine(f.index,f.length,n({},a,c));else{if(0===f.length)return e.selection.format(a,c),b;b=e.editor.formatText(f.index,f.length,n({},a,c))}e.setSelection(f,q.default.sources.SILENT);return b},2<arguments.length&&void 0!==arguments[2]?arguments[2]:q.default.sources.API)}},{key:"formatLine",value:function(a,c,b,h,d){var p=this,l=void 0;b=f(a,c,b,h,d);b=e(b,4);a=b[0];c=b[1];l=b[2];d=b[3];return m.call(this,function(){return p.editor.formatLine(a,
c,l)},d,a,0)}},{key:"formatText",value:function(a,c,b,h,d){var p=this,l=void 0;b=f(a,c,b,h,d);b=e(b,4);a=b[0];c=b[1];l=b[2];d=b[3];return m.call(this,function(){return p.editor.formatText(a,c,l)},d,a,0)}},{key:"getBounds",value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;c="number"===typeof a?this.selection.getBounds(a,c):this.selection.getBounds(a.index,a.length);var e=this.container.getBoundingClientRect();return{bottom:c.bottom-e.top,height:c.height,left:c.left-e.left,
right:c.right-e.left,top:c.top-e.top,width:c.width}}},{key:"getContents",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-a;a=f(a,c);c=e(a,2);a=c[0];c=c[1];return this.editor.getContents(a,c)}},{key:"getFormat",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof a?
this.editor.getFormat(a,c):this.editor.getFormat(a.index,a.length)}},{key:"getIndex",value:function(a){return a.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(a){return this.scroll.leaf(a)}},{key:"getLine",value:function(a){return this.scroll.line(a)}},{key:"getLines",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==
typeof a?this.scroll.lines(a.index,a.length):this.scroll.lines(a,c)}},{key:"getModule",value:function(a){return this.theme.modules[a]}},{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 a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-a;a=f(a,c);c=e(a,2);a=c[0];c=c[1];return this.editor.getText(a,
c)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(c,e,f){var b=this;return m.call(this,function(){return b.editor.insertEmbed(c,e,f)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:a.sources.API,c)}},{key:"insertText",value:function(a,c,b,h,d){var p=this,l=void 0;b=f(a,0,b,h,d);b=e(b,4);a=b[0];l=b[2];d=b[3];return m.call(this,function(){return p.editor.insertText(a,c,l)},d,a,c.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,arguments)}},{key:"pasteHTML",value:function(a,c,e){this.clipboard.dangerouslyPasteHTML(a,c,e)}},{key:"removeFormat",value:function(a,c,b){var h=this;b=f(a,c,b);b=e(b,4);a=b[0];c=b[1];b=b[3];return m.call(this,function(){return h.editor.removeFormat(a,c)},b,a)}},
{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(a){var c=this;return m.call(this,function(){a=new h.default(a);var e=c.getLength();e=c.editor.deleteText(0,e);var f=c.editor.applyDelta(a),b=f.ops[f.ops.length-1];null!=b&&"string"===typeof b.insert&&"\n"===b.insert[b.insert.length-1]&&(c.editor.deleteText(c.getLength()-1,1),f.delete(1));return e.compose(f)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:q.default.sources.API)}},
{key:"setSelection",value:function(c,b,h){null==c?this.selection.setRange(null,b||a.sources.API):(c=f(c,b,h),h=e(c,4),c=h[0],b=h[1],h=h[3],this.selection.setRange(new y.Range(c,b),h),h!==q.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:q.default.sources.API,e=(new h.default).insert(a);return this.setContents(e,c)}},{key:"update",value:function(){var a=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:q.default.sources.USER,c=this.scroll.update(a);this.selection.update(a);return c}},{key:"updateContents",value:function(a){var c=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:q.default.sources.API;return m.call(this,function(){a=new h.default(a);return c.editor.applyDelta(a,e)},e,!0)}}]);return a}();x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};x.events=q.default.events;
x.sources=q.default.sources;x.version="1.3.6";x.imports={delta:h.default,parchment:u.default,"core/module":b.default,"core/theme":G.default};g.expandConfig=l;g.overload=f;g.default=x},function(b,g,d){function k(f,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);f.prototype=Object.create(c&&c.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(f,c):
f.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function f(c,a){for(var e=0;e<a.length;e++){var f=a[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(c,f.key,f)}}return function(c,a,e){a&&f(c.prototype,a);e&&f(c,e);return c}}(),l=function p(c,a,e){null===c&&(c=Function.prototype);var b=Object.getOwnPropertyDescriptor(c,a);if(void 0===b){if(c=Object.getPrototypeOf(c),null!==c)return p(c,a,e)}else{if("value"in b)return b.value;
a=b.get;return void 0===a?void 0:a.call(e)}};b=(b=d(7))&&b.__esModule?b:{default:b};var m=(d=d(0))&&d.__esModule?d:{default:d};d=function(c){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var c=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?this:c}k(a,c);n(a,[{key:"formatAt",value:function(c,
b,h,d){0>a.compare(this.statics.blotName,h)&&m.default.query(h,m.default.Scope.BLOT)?(c=this.isolate(c,b),d&&c.wrap(h,d)):l(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"formatAt",this).call(this,c,b,h,d)}},{key:"optimize",value:function(c){l(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,c);this.parent instanceof a&&0<a.compare(this.statics.blotName,this.parent.statics.blotName)&&(c=this.parent.isolate(this.offset(),this.length()),this.moveChildren(c),
c.wrap(this))}}],[{key:"compare",value:function(c,b){var e=a.order.indexOf(c),d=a.order.indexOf(b);return 0<=e||0<=d?e-d:c===b?0:c<b?-1:1}}]);return a}(m.default.Inline);d.allowedChildren=[d,m.default.Embed,b.default];d.order="cursor inline underline strike italic bold script link code".split(" ");g.default=d},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,
{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});b=d(0);b=function(b){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var b=(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==
typeof b?this:b}k(d,b);return d}((b&&b.__esModule?b:{default:b}).default.Text);g.default=b},function(b,g,d){function k(f,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);f.prototype=Object.create(c&&c.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(f,c):f.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function f(c,
a){for(var e=0;e<a.length;e++){var f=a[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(c,f.key,f)}}return function(c,a,e){a&&f(c.prototype,a);e&&f(c,e);return c}}(),l=function p(c,a,e){null===c&&(c=Function.prototype);var b=Object.getOwnPropertyDescriptor(c,a);if(void 0===b){if(c=Object.getPrototypeOf(c),null!==c)return p(c,a,e)}else{if("value"in b)return b.value;a=b.get;return void 0===a?void 0:a.call(e)}};b=(b=d(54))&&b.__esModule?b:{default:b};
d=(d=d(10))&&d.__esModule?d:{default:d};var m=(0,d.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(c){document.addEventListener(c,function(){for(var a=arguments.length,c=Array(a),b=0;b<a;b++)c[b]=arguments[b];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(a){if(a.__quill&&a.__quill.emitter){var e;(e=a.__quill.emitter).handleDOM.apply(e,c)}})})});d=function(c){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
var c=(a.__proto__||Object.getPrototypeOf(a)).call(this);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");c=!c||"object"!==typeof c&&"function"!==typeof c?this:c;c.listeners={};c.on("error",m.error);return c}k(a,c);n(a,[{key:"emit",value:function(){m.log.apply(m,arguments);l(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(a){for(var c=arguments.length,e=Array(1<c?c-1:0),b=1;b<
c;b++)e[b-1]=arguments[b];(this.listeners[a.type]||[]).forEach(function(c){var b=c.node;c=c.handler;(a.target===b||b.contains(a.target))&&c.apply(void 0,[a].concat(e))})}},{key:"listenDOM",value:function(a,c,b){this.listeners[a]||(this.listeners[a]=[]);this.listeners[a].push({node:c,handler:b})}}]);return a}(b.default);d.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"};d.sources={API:"api",SILENT:"silent",USER:"user"};g.default=d},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});b=function l(b){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");this.quill=b;this.options=d};b.DEFAULTS={};g.default=b},function(b,g,d){function k(f){if(l.indexOf(f)<=l.indexOf(m)){for(var c,a=arguments.length,e=Array(1<a?a-1:0),b=1;b<a;b++)e[b-1]=arguments[b];
(c=console)[f].apply(c,e)}}function n(f){return l.reduce(function(c,a){c[a]=k.bind(console,a,f);return c},{})}Object.defineProperty(g,"__esModule",{value:!0});var l=["error","warn","log","info"],m="warn";k.level=n.level=function(f){m=f};g.default=n},function(b,g,d){function k(a){return!a||"object"!==typeof a||"number"!==typeof a.length||"function"!==typeof a.copy||"function"!==typeof a.slice||0<a.length&&"number"!==typeof a[0]?!1:!0}function n(a,e,b){var d;if(null===a||void 0===a||null===e||void 0===
e||a.prototype!==e.prototype)return!1;if(f(a)){if(!f(e))return!1;a=l.call(a);e=l.call(e);return c(a,e,b)}if(k(a)){if(!k(e)||a.length!==e.length)return!1;for(d=0;d<a.length;d++)if(a[d]!==e[d])return!1;return!0}try{var p=m(a);var q=m(e)}catch(t){return!1}if(p.length!=q.length)return!1;p.sort();q.sort();for(d=p.length-1;0<=d;d--)if(p[d]!=q[d])return!1;for(d=p.length-1;0<=d;d--)if(q=p[d],!c(a[q],e[q],b))return!1;return typeof a===typeof e}var l=Array.prototype.slice,m=d(52),f=d(53),c=b.exports=function(a,
c,f){f||(f={});return a===c?!0:a instanceof Date&&c instanceof Date?a.getTime()===c.getTime():!a||!c||"object"!=typeof a&&"object"!=typeof c?f.strict?a===c:a==c:n(a,c,f)}},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});var k=d(1);b=function(){function b(b,d,f){void 0===f&&(f={});this.attrName=b;this.keyName=d;b=k.Scope.TYPE&k.Scope.ATTRIBUTE;this.scope=null!=f.scope?f.scope&k.Scope.LEVEL|b:k.Scope.ATTRIBUTE;null!=f.whitelist&&(this.whitelist=f.whitelist)}b.keys=function(b){return[].map.call(b.attributes,
function(b){return b.name})};b.prototype.add=function(b,d){if(!this.canAdd(b,d))return!1;b.setAttribute(this.keyName,d);return!0};b.prototype.canAdd=function(b,d){return null==k.query(b,k.Scope.BLOT&(this.scope|k.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof d?-1<this.whitelist.indexOf(d.replace(/["']/g,"")):-1<this.whitelist.indexOf(d)};b.prototype.remove=function(b){b.removeAttribute(this.keyName)};b.prototype.value=function(b){var d=b.getAttribute(this.keyName);return this.canAdd(b,
d)&&d?d:""};return b}();g.default=b},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);
a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});g.default=g.Code=void 0;var f=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var e=[],f=!0,b=!1,d=void 0;try{for(var h=a[Symbol.iterator](),p;!(f=(p=h.next()).done)&&(e.push(p.value),!c||e.length!==c);f=!0);}catch(C){b=!0,d=C}finally{try{if(!f&&
h["return"])h["return"]()}finally{if(b)throw d;}}return e}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),c=function(){function a(a,c){for(var e=0;e<c.length;e++){var f=c[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,e,f){e&&a(c.prototype,e);f&&a(c,f);return c}}(),a=function z(a,c,e){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,c);if(void 0===f){if(a=Object.getPrototypeOf(a),
null!==a)return z(a,c,e)}else{if("value"in f)return f.value;c=f.get;return void 0===c?void 0:c.call(e)}};b=d(2);var e=k(b);b=d(0);var p=k(b);b=d(4);b=k(b);var h=d(6);h=k(h);d=d(7);var r=k(d);d=function(a){function c(){n(this,c);return l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}m(c,a);return c}(h.default);d.blotName="code";d.tagName="CODE";b=function(b){function d(){n(this,d);return l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}m(d,b);c(d,[{key:"delta",
value:function(){var a=this,c=this.domNode.textContent;c.endsWith("\n")&&(c=c.slice(0,-1));return c.split("\n").reduce(function(c,e){return c.insert(e).insert("\n",a.formats())},new e.default)}},{key:"format",value:function(c,e){if(c!==this.statics.blotName||!e){var b=this.descendant(r.default,this.length()-1);b=f(b,1)[0];null!=b&&b.deleteAt(b.length()-1,1);a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,c,e)}}},{key:"formatAt",value:function(a,c,e,f){if(0!==c&&
null!=p.default.query(e,p.default.Scope.BLOCK)&&(e!==this.statics.blotName||f!==this.statics.formats(this.domNode))){var b=this.newlineIndex(a);if(!(0>b||b>=a+c)){var h=this.newlineIndex(a,!0)+1;b=b-h+1;var l=this.isolate(h,b),m=l.next;l.format(e,f);m instanceof d&&m.formatAt(0,a-h+c-b,e,f)}}}},{key:"insertAt",value:function(a,c,e){null==e&&(a=this.descendant(r.default,a),a=f(a,2),a[0].insertAt(a[1],c))}},{key:"length",value:function(){var a=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?
a:a+1}},{key:"newlineIndex",value:function(a){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,a).lastIndexOf("\n");var c=this.domNode.textContent.slice(a).indexOf("\n");return-1<c?a+c:-1}},{key:"optimize",value:function(c){this.domNode.textContent.endsWith("\n")||this.appendChild(p.default.create("text","\n"));a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,c);var e=this.next;null!=e&&e.prev===this&&e.statics.blotName===
this.statics.blotName&&this.statics.formats(this.domNode)===e.statics.formats(e.domNode)&&(e.optimize(c),e.moveChildren(this),e.remove())}},{key:"replace",value:function(c){a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replace",this).call(this,c);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(a){var c=p.default.find(a);null==c?a.parentNode.removeChild(a):c instanceof p.default.Embed?c.remove():c.unwrap()})}}],[{key:"create",value:function(c){c=a(d.__proto__||Object.getPrototypeOf(d),
"create",this).call(this,c);c.setAttribute("spellcheck",!1);return c}},{key:"formats",value:function(){return!0}}]);return d}(b.default);b.blotName="code-block";b.tagName="PRE";b.TAB=" ";g.Code=d;g.default=b},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c,e){c in a?Object.defineProperty(a,c,{value:e,enumerable:!0,configurable:!0,writable:!0}):a[c]=e;return a}function l(a,c){return Object.keys(c).reduce(function(e,f){if(null==a[f])return e;c[f]===a[f]?e[f]=c[f]:
Array.isArray(c[f])?0>c[f].indexOf(a[f])&&(e[f]=c[f].concat([a[f]])):e[f]=[c[f],a[f]];return e},{})}function m(a){return a.reduce(function(a,c){if(1===c.insert){var e=(0,z.default)(c.attributes);delete e.image;return a.insert({image:c.attributes.image},e)}null==c.attributes||!0!==c.attributes.list&&!0!==c.attributes.bullet||(c=(0,z.default)(c),c.attributes.list?c.attributes.list="ordered":(c.attributes.list="bullet",delete c.attributes.bullet));return"string"===typeof c.insert?(e=c.insert.replace(/\r\n/g,
"\n").replace(/\r/g,"\n"),a.insert(e,c.attributes)):a.push(c)},new e.default)}Object.defineProperty(g,"__esModule",{value:!0});var f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},c=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var e=[],f=!0,b=!1,d=void 0;try{for(var h=a[Symbol.iterator](),p;!(f=
(p=h.next()).done)&&(e.push(p.value),!c||e.length!==c);f=!0);}catch(I){b=!0,d=I}finally{try{if(!f&&h["return"])h["return"]()}finally{if(b)throw d;}}return e}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),a=function(){function a(a,c){for(var e=0;e<c.length;e++){var f=c[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,e,f){e&&a(c.prototype,e);f&&a(c,f);return c}}();b=d(2);var e=k(b);
b=d(20);var p=k(b);b=d(0);var h=k(b);b=d(13);var r=k(b);b=d(24);var q=k(b),t=d(4),u=k(t);b=d(16);var y=k(b);b=d(21);var z=k(b);b=d(11);var B=k(b);d=d(3);var E=k(d),G=/^[ -~]*$/;d=function(){function b(a){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.scroll=a;this.delta=this.getDelta()}a(b,[{key:"applyDelta",value:function(a){var e=this,b=!1;this.scroll.update();var d=this.scroll.length();this.scroll.batchStart();a=m(a);a.reduce(function(a,l){var m=l.retain||
l.delete||l.insert.length||1,r=l.attributes||{};if(null!=l.insert){if("string"===typeof l.insert){l=l.insert;l.endsWith("\n")&&b&&(b=!1,l=l.slice(0,-1));a>=d&&!l.endsWith("\n")&&(b=!0);e.scroll.insertAt(a,l);l=e.scroll.line(a);l=c(l,2);var q=l[0],y=l[1];l=(0,E.default)({},(0,t.bubbleFormats)(q));q instanceof u.default&&(q=q.descendant(h.default.Leaf,y),q=c(q,1)[0],l=(0,E.default)(l,(0,t.bubbleFormats)(q)));r=p.default.attributes.diff(l,r)||{}}else if("object"===f(l.insert)){q=Object.keys(l.insert)[0];
if(null==q)return a;e.scroll.insertAt(a,q,l.insert[q])}d+=m}Object.keys(r).forEach(function(c){e.scroll.formatAt(a,m,c,r[c])});return a+m},0);a.reduce(function(a,c){return"number"===typeof c.delete?(e.scroll.deleteAt(a,c.delete),a):a+(c.retain||c.insert.length||1)},0);this.scroll.batchEnd();return this.update(a)}},{key:"deleteText",value:function(a,c){this.scroll.deleteAt(a,c);return this.update((new e.default).retain(a).delete(c))}},{key:"formatLine",value:function(a,c){var f=this,b=2<arguments.length&&
void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(b).forEach(function(e){if(null==f.scroll.whitelist||f.scroll.whitelist[e]){var d=f.scroll.lines(a,Math.max(c,1)),h=c;d.forEach(function(c){var d=c.length();if(c instanceof r.default){var l=a-c.offset(f.scroll),p=c.newlineIndex(l+h)-l+1;c.formatAt(l,p,e,b[e])}else c.format(e,b[e]);h-=d})}});this.scroll.optimize();return this.update((new e.default).retain(a).retain(c,(0,z.default)(b)))}},{key:"formatText",value:function(a,c){var f=
this,b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Object.keys(b).forEach(function(e){f.scroll.formatAt(a,c,e,b[e])});return this.update((new e.default).retain(a).retain(c,(0,z.default)(b)))}},{key:"getContents",value:function(a,c){return this.delta.slice(a,a+c)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(a,c){return a.concat(c.delta())},new e.default)}},{key:"getFormat",value:function(a){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
0,f=[],b=[];0===e?this.scroll.path(a).forEach(function(a){a=c(a,1)[0];a instanceof u.default?f.push(a):a instanceof h.default.Leaf&&b.push(a)}):(f=this.scroll.lines(a,e),b=this.scroll.descendants(h.default.Leaf,a,e));e=[f,b].map(function(a){if(0===a.length)return{};for(var c=(0,t.bubbleFormats)(a.shift());0<Object.keys(c).length;){var e=a.shift();if(null==e)break;c=l((0,t.bubbleFormats)(e),c)}return c});return E.default.apply(E.default,e)}},{key:"getText",value:function(a,c){return this.getContents(a,
c).filter(function(a){return"string"===typeof a.insert}).map(function(a){return a.insert}).join("")}},{key:"insertEmbed",value:function(a,c,f){this.scroll.insertAt(a,c,f);return this.update((new e.default).retain(a).insert(n({},c,f)))}},{key:"insertText",value:function(a,c){var f=this,b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};c=c.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(a,c);Object.keys(b).forEach(function(e){f.scroll.formatAt(a,c.length,e,b[e])});return this.update((new e.default).retain(a).insert(c,
(0,z.default)(b)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var a=this.scroll.children.head;return a.statics.blotName!==u.default.blotName||1<a.children.length?!1:a.children.head instanceof y.default}},{key:"removeFormat",value:function(a,f){var b=this.getText(a,f),d=this.scroll.line(a+f),h=c(d,2);d=h[0];h=h[1];var l=0,p=new e.default;null!=d&&(l=d instanceof r.default?d.newlineIndex(h)-h+1:d.length()-h,p=d.delta().slice(h,
h+l-1).insert("\n"));f=this.getContents(a,f+l).diff((new e.default).insert(b).concat(p));a=(new e.default).retain(a).concat(f);return this.applyDelta(a)}},{key:"update",value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:void 0,b=this.delta;if(1===c.length&&"characterData"===c[0].type&&c[0].target.data.match(G)&&h.default.find(c[0].target)){var d=h.default.find(c[0].target),l=(0,t.bubbleFormats)(d),p=d.offset(this.scroll);
c=c[0].oldValue.replace(q.default.CONTENTS,"");c=(new e.default).insert(c);d=(new e.default).insert(d.value());a=(new e.default).retain(p).concat(c.diff(d,f)).reduce(function(a,c){return c.insert?a.insert(c.insert,l):a.push(c)},new e.default);this.delta=b.compose(a)}else this.delta=this.getDelta(),a&&(0,B.default)(b.compose(a),this.delta)||(a=b.diff(this.delta,f));return a}}]);return b}();g.default=d},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a){if(Array.isArray(a)){for(var c=
0,e=Array(a.length);c<a.length;c++)e[c]=a[c];return e}return Array.from(a)}function l(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}function m(a,c){try{c.parentNode}catch(y){return!1}c instanceof Text&&(c=c.parentNode);return a.contains(c)}Object.defineProperty(g,"__esModule",{value:!0});g.default=g.Range=void 0;var f=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var e=[],f=!0,b=!1,d=void 0;try{for(var h=a[Symbol.iterator](),
l;!(f=(l=h.next()).done)&&(e.push(l.value),!c||e.length!==c);f=!0);}catch(x){b=!0,d=x}finally{try{if(!f&&h["return"])h["return"]()}finally{if(b)throw d;}}return e}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),c=function(){function a(a,c){for(var e=0;e<c.length;e++){var f=c[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(c,e,f){e&&a(c.prototype,e);f&&a(c,f);return c}}();b=d(0);var a=
k(b);b=d(21);var e=k(b);b=d(11);var p=k(b);b=d(8);var h=k(b);d=d(10);d=k(d);var r=(0,d.default)("quill:selection"),q=function y(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;l(this,y);this.index=a;this.length=c};d=function(){function b(c,e){var f=this;l(this,b);this.emitter=e;this.scroll=c;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=a.default.create("cursor",this);this.lastRange=this.savedRange=new q(0,0);this.handleComposition();this.handleDragging();
this.emitter.listenDOM("selectionchange",document,function(){f.mouseDown||setTimeout(f.update.bind(f,h.default.sources.USER),1)});this.emitter.on(h.default.events.EDITOR_CHANGE,function(a,c){a===h.default.events.TEXT_CHANGE&&0<c.length()&&f.update(h.default.sources.SILENT)});this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(f.hasFocus()){var a=f.getNativeRange();if(null!=a&&a.start.node!==f.cursor.textNode)f.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{f.setNativeRange(a.start.node,
a.start.offset,a.end.node,a.end.offset)}catch(G){}})}});this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(a,c){c.range&&(a=c.range,f.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset))});this.update(h.default.sources.SILENT)}c(b,[{key:"handleComposition",value:function(){var a=this;this.root.addEventListener("compositionstart",function(){a.composing=!0});this.root.addEventListener("compositionend",function(){a.composing=!1;if(a.cursor.parent){var c=a.cursor.restore();c&&setTimeout(function(){a.setNativeRange(c.startNode,
c.startOffset,c.endNode,c.endOffset)},1)}})}},{key:"handleDragging",value:function(){var a=this;this.emitter.listenDOM("mousedown",document.body,function(){a.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){a.mouseDown=!1;a.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(c,e){if(null==this.scroll.whitelist||this.scroll.whitelist[c]){this.scroll.update();var f=
this.getNativeRange();if(null!=f&&f.native.collapsed&&!a.default.query(c,a.default.Scope.BLOCK)){if(f.start.node!==this.cursor.textNode){var b=a.default.find(f.start.node,!1);if(null==b)return;b instanceof a.default.Leaf?(f=b.split(f.start.offset),b.parent.insertBefore(this.cursor,f)):b.insertBefore(this.cursor,f.start.node);this.cursor.attach()}this.cursor.format(c,e);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",
value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=this.scroll.length();a=Math.min(a,e-1);c=Math.min(a+c,e-1)-a;e=this.scroll.leaf(a);var b=f(e,2);e=b[0];var d=b[1];if(null==e)return null;b=e.position(d,!0);b=f(b,2);var h=b[0];d=b[1];b=document.createRange();if(0<c){b.setStart(h,d);c=this.scroll.leaf(a+c);c=f(c,2);e=c[0];d=c[1];if(null==e)return null;c=e.position(d,!0);c=f(c,2);h=c[0];d=c[1];b.setEnd(h,d);return b.getBoundingClientRect()}c="left";h instanceof Text?
(d<h.data.length?(b.setStart(h,d),b.setEnd(h,d+1)):(b.setStart(h,d-1),b.setEnd(h,d),c="right"),e=b.getBoundingClientRect()):(e=e.domNode.getBoundingClientRect(),0<d&&(c="right"));return{bottom:e.top+e.height,height:e.height,left:e[c],right:e[c],top:e.top,width:0}}},{key:"getNativeRange",value:function(){var a=document.getSelection();if(null==a||0>=a.rangeCount)return null;a=a.getRangeAt(0);if(null==a)return null;a=this.normalizeNative(a);r.info("getNativeRange",a);return a}},{key:"getRange",value:function(){var a=
this.getNativeRange();return null==a?[null,null]:[this.normalizedToRange(a),a]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(c){var e=this,b=[[c.start.node,c.start.offset]];c.native.collapsed||b.push([c.end.node,c.end.offset]);b=b.map(function(c){var b=f(c,2);c=b[0];b=b[1];var d=a.default.find(c,!0),h=d.offset(e.scroll);return 0===b?h:d instanceof a.default.Container?h+d.length():h+d.index(c,b)});c=Math.min(Math.max.apply(Math,
n(b)),this.scroll.length()-1);b=Math.min.apply(Math,[c].concat(n(b)));return new q(b,c-b)}},{key:"normalizeNative",value:function(a){if(!m(this.root,a.startContainer)||!a.collapsed&&!m(this.root,a.endContainer))return null;a={start:{node:a.startContainer,offset:a.startOffset},end:{node:a.endContainer,offset:a.endOffset},native:a};[a.start,a.end].forEach(function(a){for(var c=a.node,e=a.offset;!(c instanceof Text)&&0<c.childNodes.length;)if(c.childNodes.length>e)c=c.childNodes[e],e=0;else if(c.childNodes.length===
e)c=c.lastChild,e=c instanceof Text?c.data.length:c.childNodes.length+1;else break;a.node=c;a.offset=e});return a}},{key:"rangeToNative",value:function(a){var c=this;a=a.collapsed?[a.index]:[a.index,a.index+a.length];var e=[],b=this.scroll.length();a.forEach(function(a,d){a=Math.min(b-1,a);a=c.scroll.leaf(a);var h=f(a,2);a=h[1];d=h[0].position(a,0!==d);a=f(d,2);d=a[0];a=a[1];e.push(d,a)});2>e.length&&(e=e.concat(e));return e}},{key:"scrollIntoView",value:function(a){var c=this.lastRange;if(null!=
c){var e=this.getBounds(c.index,c.length);if(null!=e){var b=this.scroll.length()-1,d=this.scroll.line(Math.min(c.index,b)),h=d=f(d,1)[0];0<c.length&&(c=this.scroll.line(Math.min(c.index+c.length,b)),h=f(c,1)[0]);null!=d&&null!=h&&(c=a.getBoundingClientRect(),e.top<c.top?a.scrollTop-=c.top-e.top:e.bottom>c.bottom&&(a.scrollTop+=e.bottom-c.bottom))}}}},{key:"setNativeRange",value:function(a,c){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:a,f=3<arguments.length&&void 0!==arguments[3]?
arguments[3]:c,b=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;r.info("setNativeRange",a,c,e,f);if(null==a||null!=this.root.parentNode&&null!=a.parentNode&&null!=e.parentNode){var d=document.getSelection();if(null!=d)if(null!=a){this.hasFocus()||this.root.focus();var h=(this.getNativeRange()||{}).native;if(null==h||b||a!==h.startContainer||c!==h.startOffset||e!==h.endContainer||f!==h.endOffset)"BR"==a.tagName&&(c=[].indexOf.call(a.parentNode.childNodes,a),a=a.parentNode),"BR"==e.tagName&&
(f=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),b=document.createRange(),b.setStart(a,c),b.setEnd(e,f),d.removeAllRanges(),d.addRange(b)}else d.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;"string"===typeof c&&(e=c,c=!1);r.info("setRange",a);if(null!=a){var f=this.rangeToNative(a);this.setNativeRange.apply(this,
n(f).concat([c]))}else this.setNativeRange(null);this.update(e)}},{key:"update",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,c=this.lastRange,b=this.getRange();b=f(b,2);var d=b[1];this.lastRange=b[0];null!=this.lastRange&&(this.savedRange=this.lastRange);if(!(0,p.default)(c,this.lastRange)){var l;!this.composing&&null!=d&&d.native.collapsed&&d.start.node!==this.cursor.textNode&&this.cursor.restore();c=[h.default.events.SELECTION_CHANGE,(0,e.default)(this.lastRange),
(0,e.default)(c),a];(l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(c));if(a!==h.default.sources.SILENT){var m;(m=this.emitter).emit.apply(m,c)}}}}]);return b}();g.Range=q;g.default=d},function(b,g,d){function k(b,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);b.prototype=Object.create(f&&f.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(b,
f):b.__proto__=f)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function b(f,c){for(var a=0;a<c.length;a++){var e=c[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(f,e.key,e)}}return function(f,c,a){c&&b(f.prototype,c);a&&b(f,a);return f}}(),l=function e(f,c,a){null===f&&(f=Function.prototype);var b=Object.getOwnPropertyDescriptor(f,c);if(void 0===b){if(f=Object.getPrototypeOf(f),null!==f)return e(f,c,a)}else{if("value"in b)return b.value;
c=b.get;return void 0===c?void 0:c.call(a)}};b=d(0);b=function(f){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}k(c,f);n(c,[{key:"insertInto",value:function(a,e){0===a.children.length?l(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),
"insertInto",this).call(this,a,e):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return c}((b&&b.__esModule?b:{default:b}).default.Embed);b.blotName="break";b.tagName="BR";g.default=b},function(b,g,d){function k(f){var c=m.find(f);if(null==c)try{c=m.create(f)}catch(a){c=m.create(m.Scope.INLINE),[].slice.call(f.childNodes).forEach(function(a){c.domNode.appendChild(a)}),f.parentNode&&f.parentNode.replaceChild(c.domNode,
f),c.attach()}return c}var n=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){function e(){this.constructor=c}f(c,a);c.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(g,"__esModule",{value:!0});var l=d(44);b=d(30);var m=d(1);d=function(f){function c(a){a=f.call(this,a)||this;a.build();return a}n(c,
f);c.prototype.appendChild=function(a){this.insertBefore(a)};c.prototype.attach=function(){f.prototype.attach.call(this);this.children.forEach(function(a){a.attach()})};c.prototype.build=function(){var a=this;this.children=new l.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(c){try{var e=k(c);a.insertBefore(e,a.children.head||void 0)}catch(h){if(!(h instanceof m.ParchmentError))throw h;}})};c.prototype.deleteAt=function(a,c){if(0===a&&c===this.length())return this.remove();
this.children.forEachAt(a,c,function(a,c,e){a.deleteAt(c,e)})};c.prototype.descendant=function(a,e){var f=this.children.find(e);e=f[0];f=f[1];return null==a.blotName&&a(e)||null!=a.blotName&&e instanceof a?[e,f]:e instanceof c?e.descendant(a,f):[null,-1]};c.prototype.descendants=function(a,e,f){void 0===e&&(e=0);void 0===f&&(f=Number.MAX_VALUE);var b=[],d=f;this.children.forEachAt(e,f,function(e,f,h){(null==a.blotName&&a(e)||null!=a.blotName&&e instanceof a)&&b.push(e);e instanceof c&&(b=b.concat(e.descendants(a,
f,d)));d-=h});return b};c.prototype.detach=function(){this.children.forEach(function(a){a.detach()});f.prototype.detach.call(this)};c.prototype.formatAt=function(a,c,f,b){this.children.forEachAt(a,c,function(a,c,e){a.formatAt(c,e,f,b)})};c.prototype.insertAt=function(a,c,f){var e=this.children.find(a);a=e[0];e=e[1];a?a.insertAt(e,c,f):(c=null==f?m.create("text",c):m.create(c,f),this.appendChild(c))};c.prototype.insertBefore=function(a,c){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(c){return a instanceof
c}))throw new m.ParchmentError("Cannot insert "+a.statics.blotName+" into "+this.statics.blotName);a.insertInto(this,c)};c.prototype.length=function(){return this.children.reduce(function(a,c){return a+c.length()},0)};c.prototype.moveChildren=function(a,c){this.children.forEach(function(e){a.insertBefore(e,c)})};c.prototype.optimize=function(a){f.prototype.optimize.call(this,a);if(0===this.children.length)if(null!=this.statics.defaultChild){var c=m.create(this.statics.defaultChild);this.appendChild(c);
c.optimize(a)}else this.remove()};c.prototype.path=function(a,e){void 0===e&&(e=!1);var f=this.children.find(a,e),b=f[0];f=f[1];a=[[this,a]];if(b instanceof c)return a.concat(b.path(f,e));null!=b&&a.push([b,f]);return a};c.prototype.removeChild=function(a){this.children.remove(a)};c.prototype.replace=function(a){a instanceof c&&a.moveChildren(this);f.prototype.replace.call(this,a)};c.prototype.split=function(a,c){void 0===c&&(c=!1);if(!c){if(0===a)return this;if(a===this.length())return this.next}var e=
this.clone();this.parent.insertBefore(e,this.next);this.children.forEachAt(a,this.length(),function(a,f,b){a=a.split(f,c);e.appendChild(a)});return e};c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};c.prototype.update=function(a,c){var e=this,f=[],b=[];a.forEach(function(a){a.target===e.domNode&&"childList"===a.type&&(f.push.apply(f,a.addedNodes),b.push.apply(b,a.removedNodes))});b.forEach(function(a){null!=a.parentNode&&"IFRAME"!==a.tagName&&document.body.compareDocumentPosition(a)&
Node.DOCUMENT_POSITION_CONTAINED_BY||(a=m.find(a),null!=a&&(null!=a.domNode.parentNode&&a.domNode.parentNode!==e.domNode||a.detach()))});f.filter(function(a){return a.parentNode==e.domNode}).sort(function(a,c){return a===c?0:a.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(a){var c=null;null!=a.nextSibling&&(c=m.find(a.nextSibling));a=k(a);if(a.next!=c||null==a.next)null!=a.parent&&a.parent.removeChild(e),e.insertBefore(a,c||void 0)})};return c}(b.default);g.default=
d},function(b,g,d){var k=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){function e(){this.constructor=c}f(c,a);c.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(g,"__esModule",{value:!0});var n=d(12),l=d(31);b=d(17);var m=d(1);d=function(f){function c(a){a=f.call(this,a)||this;a.attributes=new l.default(a.domNode);
return a}k(c,f);c.formats=function(a){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return a.tagName.toLowerCase()};c.prototype.format=function(a,c){var e=m.query(a);e instanceof n.default?this.attributes.attribute(e,c):c&&(null==e||a===this.statics.blotName&&this.formats()[a]===c||this.replaceWith(a,c))};c.prototype.formats=function(){var a=this.attributes.values(),c=this.statics.formats(this.domNode);null!=c&&(a[this.statics.blotName]=c);return a};c.prototype.replaceWith=
function(a,c){a=f.prototype.replaceWith.call(this,a,c);this.attributes.copy(a);return a};c.prototype.update=function(a,c){var e=this;f.prototype.update.call(this,a,c);a.some(function(a){return a.target===e.domNode&&"attributes"===a.type})&&this.attributes.build()};c.prototype.wrap=function(a,e){a=f.prototype.wrap.call(this,a,e);a instanceof c&&a.statics.scope===this.statics.scope&&this.attributes.move(a);return a};return c}(b.default);g.default=d},function(b,g,d){var k=this&&this.__extends||function(){var b=
Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var c in f)f.hasOwnProperty(c)&&(b[c]=f[c])};return function(d,f){function c(){this.constructor=d}b(d,f);d.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}();Object.defineProperty(g,"__esModule",{value:!0});b=d(30);var n=d(1);d=function(b){function d(){return null!==b&&b.apply(this,arguments)||this}k(d,b);d.value=function(f){return!0};d.prototype.index=function(f,c){return this.domNode===
f||this.domNode.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(c,1):-1};d.prototype.position=function(f,c){c=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<f&&(c+=1);return[this.parent.domNode,c]};d.prototype.value=function(){return f={},f[this.statics.blotName]=this.statics.value(this.domNode)||!0,f;var f};d.scope=n.Scope.INLINE_BLOT;return d}(b.default);g.default=d},function(b,g,d){function k(f){this.ops=f;this.offset=this.index=0}var n=d(11),l=d(3),m={attributes:{compose:function(f,
c,a){"object"!==typeof f&&(f={});"object"!==typeof c&&(c={});var e=l(!0,{},c);a||(e=Object.keys(e).reduce(function(a,c){null!=e[c]&&(a[c]=e[c]);return a},{}));for(var b in f)void 0!==f[b]&&void 0===c[b]&&(e[b]=f[b]);return 0<Object.keys(e).length?e:void 0},diff:function(f,c){"object"!==typeof f&&(f={});"object"!==typeof c&&(c={});var a=Object.keys(f).concat(Object.keys(c)).reduce(function(a,b){n(f[b],c[b])||(a[b]=void 0===c[b]?null:c[b]);return a},{});return 0<Object.keys(a).length?a:void 0},transform:function(f,
c,a){if("object"!==typeof f)return c;if("object"===typeof c){if(!a)return c;a=Object.keys(c).reduce(function(a,b){void 0===f[b]&&(a[b]=c[b]);return a},{});return 0<Object.keys(a).length?a:void 0}}},iterator:function(b){return new k(b)},length:function(b){return"number"===typeof b["delete"]?b["delete"]:"number"===typeof b.retain?b.retain:"string"===typeof b.insert?b.insert.length:1}};k.prototype.hasNext=function(){return Infinity>this.peekLength()};k.prototype.next=function(b){b||(b=Infinity);var c=
this.ops[this.index];if(c){var a=this.offset,e=m.length(c);b>=e-a?(b=e-a,this.index+=1,this.offset=0):this.offset+=b;if("number"===typeof c["delete"])return{"delete":b};e={};c.attributes&&(e.attributes=c.attributes);"number"===typeof c.retain?e.retain=b:e.insert="string"===typeof c.insert?c.insert.substr(a,b):c.insert;return e}return{retain:Infinity}};k.prototype.peek=function(){return this.ops[this.index]};k.prototype.peekLength=function(){return this.ops[this.index]?m.length(this.ops[this.index])-
this.offset:Infinity};k.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"};b.exports=m},function(b,g){g=function(){function b(a,c){return null!=c&&a instanceof c}function g(a,e,d,h,r){function p(a,d){if(null===a)return null;if(0===d||"object"!=typeof a)return a;if(b(a,m))var q=new m;else if(b(a,f))q=new f;else if(b(a,c))q=new c(function(c,e){a.then(function(a){c(p(a,
d-1))},function(a){e(p(a,d-1))})});else if(g.__isArray(a))q=[];else if(g.__isRegExp(a))q=new RegExp(a.source,l(a)),a.lastIndex&&(q.lastIndex=a.lastIndex);else if(g.__isDate(a))q=new Date(a.getTime());else{if(n&&Buffer.isBuffer(a))return q=new Buffer(a.length),a.copy(q),q;if(b(a,Error))q=Object.create(a);else if("undefined"==typeof h){var k=Object.getPrototypeOf(a);q=Object.create(k)}else q=Object.create(h),k=h}if(e){var y=t.indexOf(a);if(-1!=y)return u[y];t.push(a);u.push(q)}b(a,m)&&a.forEach(function(a,
c){c=p(c,d-1);a=p(a,d-1);q.set(c,a)});b(a,f)&&a.forEach(function(a){a=p(a,d-1);q.add(a)});for(var B in a){var z;k&&(z=Object.getOwnPropertyDescriptor(k,B));z&&null==z.set||(q[B]=p(a[B],d-1))}if(Object.getOwnPropertySymbols)for(y=Object.getOwnPropertySymbols(a),B=0;B<y.length;B++)if(z=y[B],k=Object.getOwnPropertyDescriptor(a,z),!k||k.enumerable||r)q[z]=p(a[z],d-1),k.enumerable||Object.defineProperty(q,z,{enumerable:!1});if(r)for(y=Object.getOwnPropertyNames(a),B=0;B<y.length;B++)z=y[B],k=Object.getOwnPropertyDescriptor(a,
z),k&&k.enumerable||(q[z]=p(a[z],d-1),Object.defineProperty(q,z,{enumerable:!1}));return q}"object"===typeof e&&(d=e.depth,h=e.prototype,r=e.includeNonEnumerable,e=e.circular);var t=[],u=[],n="undefined"!=typeof Buffer;"undefined"==typeof e&&(e=!0);"undefined"==typeof d&&(d=Infinity);return p(a,d)}function n(a){return Object.prototype.toString.call(a)}function l(a){var c="";a.global&&(c+="g");a.ignoreCase&&(c+="i");a.multiline&&(c+="m");return c}try{var m=Map}catch(a){m=function(){}}try{var f=Set}catch(a){f=
function(){}}try{var c=Promise}catch(a){c=function(){}}g.clonePrototype=function(a){if(null===a)return null;var c=function(){};c.prototype=a;return new c};g.__objToStr=n;g.__isDate=function(a){return"object"===typeof a&&"[object Date]"===n(a)};g.__isArray=function(a){return"object"===typeof a&&"[object Array]"===n(a)};g.__isRegExp=function(a){return"object"===typeof a&&"[object RegExp]"===n(a)};g.__getRegExpFlags=l;return g}();"object"===typeof b&&b.exports&&(b.exports=g)},function(b,g,d){function k(a){return a&&
a.__esModule?a:{default:a}}function n(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function l(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=
c)}function m(a){return a instanceof r.default||a instanceof h.BlockEmbed}Object.defineProperty(g,"__esModule",{value:!0});var f=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var b=[],e=!0,f=!1,d=void 0;try{for(var h=a[Symbol.iterator](),l;!(e=(l=h.next()).done)&&(b.push(l.value),!c||b.length!==c);e=!0);}catch(v){f=!0,d=v}finally{try{if(!e&&h["return"])h["return"]()}finally{if(f)throw d;}}return b}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),c=function(){function a(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,e,b){e&&a(c.prototype,e);b&&a(c,b);return c}}(),a=function E(a,c,e){null===a&&(a=Function.prototype);var b=Object.getOwnPropertyDescriptor(a,c);if(void 0===b){if(a=Object.getPrototypeOf(a),null!==a)return E(a,c,e)}else{if("value"in b)return b.value;c=b.get;return void 0===c?void 0:c.call(e)}};b=d(0);
var e=k(b);b=d(8);var p=k(b),h=d(4),r=k(h);b=d(16);var q=k(b);b=d(13);var t=k(b);d=d(25);d=k(d);b=function(b){function d(a,c){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");a=n(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,a));a.emitter=c.emitter;Array.isArray(c.whitelist)&&(a.whitelist=c.whitelist.reduce(function(a,c){a[c]=!0;return a},{}));a.domNode.addEventListener("DOMNodeInserted",function(){});a.optimize();a.enable();return a}l(d,b);c(d,[{key:"batchStart",
value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},{key:"deleteAt",value:function(c,b){var e=this.line(c),l=f(e,2);e=l[0];var m=l[1];l=this.line(c+b);l=f(l,1)[0];a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,c,b);if(null!=l&&e!==l&&0<m){if(e instanceof h.BlockEmbed||l instanceof h.BlockEmbed){this.optimize();return}if(e instanceof t.default){if(c=e.newlineIndex(e.length(),!0),-1<c&&(e=e.split(c+1),e===l)){this.optimize();
return}}else l instanceof t.default&&(c=l.newlineIndex(0),-1<c&&l.split(c+1));e.moveChildren(l,l.children.head instanceof q.default?null:l.children.head);e.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(c,e,b,f){if(null==this.whitelist||this.whitelist[b])a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,c,e,b,f),this.optimize()}},
{key:"insertAt",value:function(c,b,f){if(null==f||null==this.whitelist||this.whitelist[b])c>=this.length()?null==f||null==e.default.query(b,e.default.Scope.BLOCK)?(c=e.default.create(this.statics.defaultChild),this.appendChild(c),null==f&&b.endsWith("\n")&&(b=b.slice(0,-1)),c.insertAt(0,b,f)):(b=e.default.create(b,f),this.appendChild(b)):a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,c,b,f),this.optimize()}},{key:"insertBefore",value:function(c,b){if(c.statics.scope===
e.default.Scope.INLINE_BLOT){var f=e.default.create(this.statics.defaultChild);f.appendChild(c);c=f}a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,c,b)}},{key:"leaf",value:function(a){return this.path(a).pop()||[null,-1]}},{key:"line",value:function(a){return a===this.length()?this.line(a-1):this.descendant(m,a)}},{key:"lines",value:function(){return function x(a,c,b){var f=[],d=b;a.children.forEachAt(c,b,function(a,c,b){m(a)?f.push(a):a instanceof e.default.Container&&
(f=f.concat(x(a,c,d)));d-=b});return f}(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 c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,c,b),0<c.length&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,
c,b))}},{key:"path",value:function(c){return a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,c).slice(1)}},{key:"update",value:function(c){if(!0!==this.batch){var b=p.default.sources.USER;"string"===typeof c&&(b=c);Array.isArray(c)||(c=this.observer.takeRecords());0<c.length&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,b,c);a(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"update",this).call(this,c.concat([]));0<c.length&&this.emitter.emit(p.default.events.SCROLL_UPDATE,
b,c)}}}]);return d}(e.default.Scroll);b.blotName="scroll";b.className="ql-editor";b.tagName="DIV";b.defaultChild="block";b.allowedChildren=[r.default,h.BlockEmbed,d.default];g.default=b},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c,b){c in a?Object.defineProperty(a,c,{value:b,enumerable:!0,configurable:!0,writable:!0}):a[c]=b;return a}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==
typeof c&&"function"!==typeof c?a:c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function f(a,c){var b,e=a===w.keys.LEFT?"prefix":"suffix";return b={key:a,shiftKey:c,altKey:null},n(b,e,/^$/),n(b,"handler",function(b){var e=b.index;
a===w.keys.RIGHT&&(e+=b.length+1);e=this.quill.getLeaf(e);if(!(u(e,1)[0]instanceof x.default.Embed))return!0;a===w.keys.LEFT?c?this.quill.setSelection(b.index-1,b.length+1,v.default.sources.USER):this.quill.setSelection(b.index-1,v.default.sources.USER):c?this.quill.setSelection(b.index,b.length+1,v.default.sources.USER):this.quill.setSelection(b.index+b.length+1,v.default.sources.USER);return!1}),b}function c(a,c){if(!(0===a.index||1>=this.quill.getLength())){var b=this.quill.getLine(a.index),e=
u(b,1)[0];b={};if(0===c.offset){var f=this.quill.getLine(a.index-1);f=u(f,1)[0];null!=f&&1<f.length()&&(b=e.formats(),e=this.quill.getFormat(a.index-1,1),b=C.default.attributes.diff(b,e)||{})}c=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(c.prefix)?2:1;this.quill.deleteText(a.index-c,c,v.default.sources.USER);0<Object.keys(b).length&&this.quill.formatLine(a.index-c,c,b,v.default.sources.USER);this.quill.focus()}}function a(a,c){var b=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(c.suffix)?2:1;if(!(a.index>=this.quill.getLength()-
b)){var e={},f=0,d=this.quill.getLine(a.index);d=u(d,1)[0];c.offset>=d.length()-1&&(c=this.quill.getLine(a.index+1),c=u(c,1)[0])&&(e=d.formats(),f=this.quill.getFormat(a.index,1),e=C.default.attributes.diff(e,f)||{},f=c.length());this.quill.deleteText(a.index,b,v.default.sources.USER);0<Object.keys(e).length&&this.quill.formatLine(a.index+f-1,b,e,v.default.sources.USER)}}function e(a){var c=this.quill.getLines(a),b={};1<c.length&&(b=c[0].formats(),c=c[c.length-1].formats(),b=C.default.attributes.diff(c,
b)||{});this.quill.deleteText(a,v.default.sources.USER);0<Object.keys(b).length&&this.quill.formatLine(a.index,1,b,v.default.sources.USER);this.quill.setSelection(a.index,v.default.sources.SILENT);this.quill.focus()}function p(a,c){var b=this;0<a.length&&this.quill.scroll.deleteAt(a.index,a.length);var e=Object.keys(c.format).reduce(function(a,b){x.default.query(b,x.default.Scope.BLOCK)&&!Array.isArray(c.format[b])&&(a[b]=c.format[b]);return a},{});this.quill.insertText(a.index,"\n",e,v.default.sources.USER);
this.quill.setSelection(a.index+1,v.default.sources.SILENT);this.quill.focus();Object.keys(c.format).forEach(function(a){null==e[a]&&(Array.isArray(c.format[a])||"link"!==a&&b.quill.format(a,c.format[a],v.default.sources.USER))})}function h(a){return{key:w.keys.TAB,shiftKey:!a,format:{"code-block":!0},handler:function(c){var b=x.default.query("code-block"),e=c.index,f=c.length;c=this.quill.scroll.descendant(b,e);c=u(c,2);var d=c[0],h=c[1];if(null!=d){c=this.quill.getIndex(d);var l=d.newlineIndex(h,
!0)+1;c=d.newlineIndex(c+h+f);c=d.domNode.textContent.slice(l,c).split("\n");h=0;c.forEach(function(c,m){a?(d.insertAt(l+h,b.TAB),h+=b.TAB.length,0===m?e+=b.TAB.length:f+=b.TAB.length):c.startsWith(b.TAB)&&(d.deleteAt(l+h,b.TAB.length),h-=b.TAB.length,0===m?e-=b.TAB.length:f-=b.TAB.length);h+=c.length+1});this.quill.update(v.default.sources.USER);this.quill.setSelection(e,f,v.default.sources.SILENT)}}}}function r(a){return{key:a[0].toUpperCase(),shortKey:!0,handler:function(c,b){this.quill.format(a,
!b.format[a],v.default.sources.USER)}}}function q(a){if("string"===typeof a||"number"===typeof a)return q({key:a});"object"===("undefined"===typeof a?"undefined":t(a))&&(a=(0,z.default)(a,!1));if("string"===typeof a.key)if(null!=w.keys[a.key.toUpperCase()])a.key=w.keys[a.key.toUpperCase()];else if(1===a.key.length)a.key=a.key.toUpperCase().charCodeAt(0);else return null;a.shortKey&&(a[F]=a.shortKey,delete a.shortKey);return a}Object.defineProperty(g,"__esModule",{value:!0});g.SHORTKEY=g.default=void 0;
var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},u=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var b=[],e=!0,f=!1,d=void 0;try{for(var h=a[Symbol.iterator](),l;!(e=(l=h.next()).done)&&(b.push(l.value),!c||b.length!==c);e=!0);}catch(O){f=!0,d=O}finally{try{if(!e&&h["return"])h["return"]()}finally{if(f)throw d;
}}return b}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),y=function(){function a(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,b,e){b&&a(c.prototype,b);e&&a(c,e);return c}}();b=d(21);var z=k(b);b=d(11);var B=k(b);b=d(3);var E=k(b);b=d(2);var G=k(b);b=d(20);var C=k(b);b=d(0);var x=k(b);b=d(5);var v=k(b);b=d(10);b=k(b);d=d(9);d=k(d);var J=
(0,b.default)("quill:keyboard"),F=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",w=function(b){function f(b,d){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var h=l(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,b,d));h.bindings={};Object.keys(h.options.bindings).forEach(function(a){("list autofill"!==a||null==b.scroll.whitelist||b.scroll.whitelist.list)&&h.options.bindings[a]&&h.addBinding(h.options.bindings[a])});h.addBinding({key:f.keys.ENTER,shiftKey:null},
p);h.addBinding({key:f.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(h.addBinding({key:f.keys.BACKSPACE},{collapsed:!0},c),h.addBinding({key:f.keys.DELETE},{collapsed:!0},a)):(h.addBinding({key:f.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},c),h.addBinding({key:f.keys.DELETE},{collapsed:!0,suffix:/^.?$/},a));h.addBinding({key:f.keys.BACKSPACE},{collapsed:!1},e);h.addBinding({key:f.keys.DELETE},{collapsed:!1},e);h.addBinding({key:f.keys.BACKSPACE,
altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},c);h.listen();return h}m(f,b);y(f,null,[{key:"match",value:function(a,c){c=q(c);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(b){return!!c[b]!==a[b]&&null!==c[b]})?!1:c.key===(a.which||a.keyCode)}}]);y(f,[{key:"addBinding",value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e=q(a);if(null==e||null==e.key)return J.warn("Attempted to add invalid keyboard binding",
e);"function"===typeof c&&(c={handler:c});"function"===typeof b&&(b={handler:b});e=(0,E.default)(e,c,b);this.bindings[e.key]=this.bindings[e.key]||[];this.bindings[e.key].push(e)}},{key:"listen",value:function(){var a=this;this.quill.root.addEventListener("keydown",function(c){if(!c.defaultPrevented){var b=(a.bindings[c.which||c.keyCode]||[]).filter(function(a){return f.match(c,a)});if(0!==b.length){var e=a.quill.getSelection();if(null!=e&&a.quill.hasFocus()){var d=a.quill.getLine(e.index),h=u(d,
2);d=h[0];h=h[1];var l=a.quill.getLeaf(e.index),m=u(l,2);l=m[0];m=m[1];var r=0===e.length?[l,m]:a.quill.getLeaf(e.index+e.length),p=u(r,2);r=p[0];p=p[1];l=l instanceof x.default.Text?l.value().slice(0,m):"";m=r instanceof x.default.Text?r.value().slice(p):"";var q={collapsed:0===e.length,empty:0===e.length&&1>=d.length(),format:a.quill.getFormat(e),offset:h,prefix:l,suffix:m};b.some(function(c){if(null!=c.collapsed&&c.collapsed!==q.collapsed||null!=c.empty&&c.empty!==q.empty||null!=c.offset&&c.offset!==
q.offset)return!1;if(Array.isArray(c.format)){if(c.format.every(function(a){return null==q.format[a]}))return!1}else if("object"===t(c.format)&&!Object.keys(c.format).every(function(a){return!0===c.format[a]?null!=q.format[a]:!1===c.format[a]?null==q.format[a]:(0,B.default)(c.format[a],q.format[a])}))return!1;return null!=c.prefix&&!c.prefix.test(q.prefix)||null!=c.suffix&&!c.suffix.test(q.suffix)?!1:!0!==c.handler.call(a,e,q)})&&c.preventDefault()}}}})}}]);return f}(d.default);w.keys={BACKSPACE:8,
TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};w.DEFAULTS={bindings:{bold:r("bold"),italic:r("italic"),underline:r("underline"),indent:{key:w.keys.TAB,format:["blockquote","indent","list"],handler:function(a,c){if(c.collapsed&&0!==c.offset)return!0;this.quill.format("indent","+1",v.default.sources.USER)}},outdent:{key:w.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(a,c){if(c.collapsed&&0!==c.offset)return!0;this.quill.format("indent","-1",v.default.sources.USER)}},
"outdent backspace":{key:w.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(a,c){null!=c.format.indent?this.quill.format("indent","-1",v.default.sources.USER):null!=c.format.list&&this.quill.format("list",!1,v.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:w.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(a){this.quill.deleteText(a.index-1,1,v.default.sources.USER)}},
tab:{key:w.keys.TAB,handler:function(a){this.quill.history.cutoff();var c=(new G.default).retain(a.index).delete(a.length).insert("\t");this.quill.updateContents(c,v.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(a.index+1,v.default.sources.SILENT)}},"list empty enter":{key:w.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(a,c){this.quill.format("list",!1,v.default.sources.USER);c.format.indent&&this.quill.format("indent",!1,v.default.sources.USER)}},"checklist enter":{key:w.keys.ENTER,
collapsed:!0,format:{list:"checked"},handler:function(a){var c=this.quill.getLine(a.index),b=u(c,2);c=b[0];b=b[1];var e=(0,E.default)({},c.formats(),{list:"checked"});c=(new G.default).retain(a.index).insert("\n",e).retain(c.length()-b-1).retain(1,{list:"unchecked"});this.quill.updateContents(c,v.default.sources.USER);this.quill.setSelection(a.index+1,v.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:w.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(a,
c){var b=this.quill.getLine(a.index),e=u(b,2);b=e[0];e=e[1];c=(new G.default).retain(a.index).insert("\n",c.format).retain(b.length()-e-1).retain(1,{header:null});this.quill.updateContents(c,v.default.sources.USER);this.quill.setSelection(a.index+1,v.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(a,c){var b=c.prefix.length,e=this.quill.getLine(a.index),f=u(e,2);e=f[0];f=f[1];if(f>
b)return!0;switch(c.prefix.trim()){case "[]":case "[ ]":c="unchecked";break;case "[x]":c="checked";break;case "-":case "*":c="bullet";break;default:c="ordered"}this.quill.insertText(a.index," ",v.default.sources.USER);this.quill.history.cutoff();c=(new G.default).retain(a.index-f).delete(b+1).retain(e.length()-2-f).retain(1,{list:c});this.quill.updateContents(c,v.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(a.index-b,v.default.sources.SILENT)}},"code exit":{key:w.keys.ENTER,
collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(a){var c=this.quill.getLine(a.index),b=u(c,2);c=b[0];b=b[1];a=(new G.default).retain(a.index+c.length()-b-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,v.default.sources.USER)}},"embed left":f(w.keys.LEFT,!1),"embed left shift":f(w.keys.LEFT,!0),"embed right":f(w.keys.RIGHT,!1),"embed right shift":f(w.keys.RIGHT,!0)}};g.default=w;g.SHORTKEY=F},function(b,g,d){function k(a,c){if("function"!==
typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var b=[],e=!0,f=!1,d=void 0;try{for(var l=a[Symbol.iterator](),m;!(e=
(m=l.next()).done)&&(b.push(m.value),!c||b.length!==c);e=!0);}catch(y){f=!0,d=y}finally{try{if(!e&&l["return"])l["return"]()}finally{if(f)throw d;}}return b}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),l=function r(c,b,f){null===c&&(c=Function.prototype);var e=Object.getOwnPropertyDescriptor(c,b);if(void 0===e){if(c=Object.getPrototypeOf(c),null!==c)return r(c,b,f)}else{if("value"in e)return e.value;b=e.get;return void 0===b?void 0:b.call(f)}},m=function(){function c(c,
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(c,f.key,f)}}return function(b,e,f){e&&c(b.prototype,e);f&&c(b,f);return b}}(),f=(b=d(0))&&b.__esModule?b:{default:b},c=(d=d(7))&&d.__esModule?d:{default:d};d=function(b){function e(c,b){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");c=(e.__proto__||Object.getPrototypeOf(e)).call(this,c);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
c=!c||"object"!==typeof c&&"function"!==typeof c?this:c;c.selection=b;c.textNode=document.createTextNode(e.CONTENTS);c.domNode.appendChild(c.textNode);c._length=0;return c}k(e,b);m(e,null,[{key:"value",value:function(){}}]);m(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(c,b){if(0!==this._length)return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,c,b);for(var d=this,h=0;null!=d&&d.statics.scope!==
f.default.Scope.BLOCK_BLOT;)h+=d.offset(d.parent),d=d.parent;null!=d&&(this._length=e.CONTENTS.length,d.optimize(),d.formatAt(h,e.CONTENTS.length,c,b),this._length=0)}},{key:"index",value:function(c,b){return c===this.textNode?0:l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,c,b)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(e.prototype.__proto__||
Object.getPrototypeOf(e.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var b=this.textNode,d=this.selection.getNativeRange(),l=void 0,m=void 0,p=void 0;null!=d&&d.start.node===b&&d.end.node===b&&(p=[b,d.start.offset,d.end.offset],l=p[0],m=p[1],p=p[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==
e.CONTENTS&&(b=this.textNode.data.split(e.CONTENTS).join(""),this.next instanceof c.default?(l=this.next.domNode,this.next.insertAt(0,b),this.textNode.data=e.CONTENTS):(this.textNode.data=b,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=m)return m=[m,p].map(function(c){return Math.max(0,Math.min(l.data.length,c-1))}),p=n(m,2),m=p[0],p=p[1],{startNode:l,startOffset:m,endNode:l,
endOffset:p}}}},{key:"update",value:function(c,b){var e=this;c.some(function(c){return"characterData"===c.type&&c.target===e.textNode})&&(c=this.restore())&&(b.range=c)}},{key:"value",value:function(){return""}}]);return e}(f.default.Embed);d.blotName="cursor";d.className="ql-cursor";d.tagName="span";d.CONTENTS="\ufeff";g.default=d},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=
Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});b=(b=d(0))&&b.__esModule?b:{default:b};var n=(d=d(4))&&d.__esModule?d:{default:d};b=function(b){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var b=(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}k(d,b);return d}(b.default.Container);b.allowedChildren=[n.default,d.BlockEmbed,b];g.default=b},function(b,g,d){function k(b,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);b.prototype=Object.create(c&&c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(b,c):b.__proto__=c)}Object.defineProperty(g,
"__esModule",{value:!0});g.ColorStyle=g.ColorClass=g.ColorAttributor=void 0;var n=function(){function b(c,a){for(var b=0;b<a.length;b++){var f=a[b];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(c,f.key,f)}}return function(c,a,e){a&&b(c.prototype,a);e&&b(c,e);return c}}(),l=function p(c,a,b){null===c&&(c=Function.prototype);var e=Object.getOwnPropertyDescriptor(c,a);if(void 0===e){if(c=Object.getPrototypeOf(c),null!==c)return p(c,a,b)}else{if("value"in
e)return e.value;a=e.get;return void 0===a?void 0:a.call(b)}},m=(b=d(0))&&b.__esModule?b:{default:b};b=function(c){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var c=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?this:c}k(a,c);n(a,[{key:"value",value:function(c){c=l(a.prototype.__proto__||
Object.getPrototypeOf(a.prototype),"value",this).call(this,c);if(!c.startsWith("rgb("))return c;c=c.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+c.split(",").map(function(a){return("00"+parseInt(a).toString(16)).slice(-2)}).join("")}}]);return a}(m.default.Attributor.Style);d=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE});m=new b("color","color",{scope:m.default.Scope.INLINE});g.ColorAttributor=b;g.ColorClass=d;g.ColorStyle=m},function(b,g,d){function k(b,
c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);b.prototype=Object.create(c&&c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(b,c):b.__proto__=c)}function n(b,c){var a=document.createElement("a");a.href=b;b=a.href.slice(0,a.href.indexOf(":"));return-1<c.indexOf(b)}Object.defineProperty(g,"__esModule",{value:!0});g.sanitize=g.default=void 0;var l=
function(){function b(c,a){for(var b=0;b<a.length;b++){var f=a[b];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(c,f.key,f)}}return function(c,a,e){a&&b(c.prototype,a);e&&b(c,e);return c}}(),m=function p(c,a,b){null===c&&(c=Function.prototype);var e=Object.getOwnPropertyDescriptor(c,a);if(void 0===e){if(c=Object.getPrototypeOf(c),null!==c)return p(c,a,b)}else{if("value"in e)return e.value;a=e.get;return void 0===a?void 0:a.call(b)}};b=d(6);b=function(c){function a(){if(!(this instanceof
a))throw new TypeError("Cannot call a class as a function");var c=(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?this:c}k(a,c);l(a,[{key:"format",value:function(c,b){if(c!==this.statics.blotName||!b)return m(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,c,b);b=this.constructor.sanitize(b);this.domNode.setAttribute("href",
b)}}],[{key:"create",value:function(c){var b=m(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,c);c=this.sanitize(c);b.setAttribute("href",c);b.setAttribute("target","_blank");return b}},{key:"formats",value:function(a){return a.getAttribute("href")}},{key:"sanitize",value:function(a){return n(a,this.PROTOCOL_WHITELIST)?a:this.SANITIZED_URL}}]);return a}((b&&b.__esModule?b:{default:b}).default);b.blotName="link";b.tagName="A";b.SANITIZED_URL="about:blank";b.PROTOCOL_WHITELIST=["http",
"https","mailto","tel"];g.default=b;g.sanitize=n},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});var k="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(c){return typeof c}:function(c){return c&&"function"===typeof Symbol&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},n=function(){function c(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,
e)}}return function(a,b,f){b&&c(a.prototype,b);f&&c(a,f);return a}}(),l=(b=d(23))&&b.__esModule?b:{default:b},m=(d=d(107))&&d.__esModule?d:{default:d},f=0;d=function(){function c(a){var b=this;if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");this.select=a;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,this.select);this.label.addEventListener("mousedown",function(){b.togglePicker()});
this.label.addEventListener("keydown",function(a){switch(a.keyCode){case l.default.keys.ENTER:b.togglePicker();break;case l.default.keys.ESCAPE:b.escape(),a.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}n(c,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var a=this.label;a.setAttribute("aria-expanded","true"!==a.getAttribute("aria-expanded"));a=this.options;a.setAttribute("aria-hidden","true"!==a.getAttribute("aria-hidden"))}},
{key:"buildItem",value:function(a){var c=this,b=document.createElement("span");b.tabIndex="0";b.setAttribute("role","button");b.classList.add("ql-picker-item");a.hasAttribute("value")&&b.setAttribute("data-value",a.getAttribute("value"));a.textContent&&b.setAttribute("data-label",a.textContent);b.addEventListener("click",function(){c.selectItem(b,!0)});b.addEventListener("keydown",function(a){switch(a.keyCode){case l.default.keys.ENTER:c.selectItem(b,!0);a.preventDefault();break;case l.default.keys.ESCAPE:c.escape(),
a.preventDefault()}});return b}},{key:"buildLabel",value:function(){var a=document.createElement("span");a.classList.add("ql-picker-label");a.innerHTML=m.default;a.tabIndex="0";a.setAttribute("role","button");a.setAttribute("aria-expanded","false");this.container.appendChild(a);return a}},{key:"buildOptions",value:function(){var a=this,c=document.createElement("span");c.classList.add("ql-picker-options");c.setAttribute("aria-hidden","true");c.tabIndex="-1";c.id="ql-picker-options-"+f;f+=1;this.label.setAttribute("aria-controls",
c.id);this.options=c;[].slice.call(this.select.options).forEach(function(b){var e=a.buildItem(b);c.appendChild(e);!0===b.selected&&a.selectItem(e)});this.container.appendChild(c)}},{key:"buildPicker",value:function(){var a=this;[].slice.call(this.select.attributes).forEach(function(c){a.container.setAttribute(c.name,c.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},{key:"escape",value:function(){var a=this;this.close();setTimeout(function(){return a.label.focus()},
1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(a){var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,b=this.container.querySelector(".ql-selected");a!==b&&(null!=b&&b.classList.remove("ql-selected"),null!=a&&(a.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(a.parentNode.children,a),a.hasAttribute("data-value")?
this.label.setAttribute("data-value",a.getAttribute("data-value")):this.label.removeAttribute("data-value"),a.hasAttribute("data-label")?this.label.setAttribute("data-label",a.getAttribute("data-label")):this.label.removeAttribute("data-label"),c&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":k(Event))&&(c=document.createEvent("Event"),c.initEvent("change",!0,!0),this.select.dispatchEvent(c)),this.close())))}},{key:"update",
value:function(){var a=void 0;if(-1<this.select.selectedIndex){var c=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];a=this.select.options[this.select.selectedIndex];this.selectItem(c)}else this.selectItem(null);a=null!=a&&a!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",a)}}]);return c}();g.default=d},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(g,"__esModule",{value:!0});b=
d(0);b=k(b);var n=d(5);n=k(n);var l=d(4),m=k(l),f=d(16);f=k(f);var c=d(25);c=k(c);var a=d(24);a=k(a);var e=d(35);e=k(e);var p=d(6);p=k(p);var h=d(22);h=k(h);var r=d(7);r=k(r);var q=d(55);q=k(q);var t=d(42);t=k(t);d=d(23);d=k(d);n.default.register({"blots/block":m.default,"blots/block/embed":l.BlockEmbed,"blots/break":f.default,"blots/container":c.default,"blots/cursor":a.default,"blots/embed":e.default,"blots/inline":p.default,"blots/scroll":h.default,"blots/text":r.default,"modules/clipboard":q.default,
"modules/history":t.default,"modules/keyboard":d.default});b.default.register(m.default,f.default,a.default,p.default,h.default,r.default);g.default=n.default},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});var k=d(1);b=function(){function b(b){this.domNode=b;this.domNode[k.DATA_KEY]={blot:this}}Object.defineProperty(b.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0});b.create=function(b){if(null==this.tagName)throw new k.ParchmentError("Blot definition missing tagName");
Array.isArray(this.tagName)?("string"===typeof b&&(b=b.toUpperCase(),parseInt(b).toString()===b&&(b=parseInt(b))),b="number"===typeof b?document.createElement(this.tagName[b-1]):-1<this.tagName.indexOf(b)?document.createElement(b):document.createElement(this.tagName[0])):b=document.createElement(this.tagName);this.className&&b.classList.add(this.className);return b};b.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};b.prototype.clone=function(){var b=this.domNode.cloneNode(!1);
return k.create(b)};b.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[k.DATA_KEY]};b.prototype.deleteAt=function(b,d){this.isolate(b,d).remove()};b.prototype.formatAt=function(b,d,f,c){b=this.isolate(b,d);null!=k.query(f,k.Scope.BLOT)&&c?b.wrap(f,c):null!=k.query(f,k.Scope.ATTRIBUTE)&&(d=k.create(this.statics.scope),b.wrap(d),d.format(f,c))};b.prototype.insertAt=function(b,d,f){d=null==f?k.create("text",d):k.create(d,f);b=this.split(b);this.parent.insertBefore(d,
b)};b.prototype.insertInto=function(b,d){void 0===d&&(d=null);null!=this.parent&&this.parent.children.remove(this);var f=null;b.children.insertBefore(this,d);null!=d&&(f=d.domNode);this.domNode.parentNode==b.domNode&&this.domNode.nextSibling==f||b.domNode.insertBefore(this.domNode,f);this.parent=b;this.attach()};b.prototype.isolate=function(b,d){b=this.split(b);b.split(d);return b};b.prototype.length=function(){return 1};b.prototype.offset=function(b){void 0===b&&(b=this.parent);return null==this.parent||
this==b?0:this.parent.children.offset(this)+this.parent.offset(b)};b.prototype.optimize=function(b){null!=this.domNode[k.DATA_KEY]&&delete this.domNode[k.DATA_KEY].mutations};b.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};b.prototype.replace=function(b){null!=b.parent&&(b.parent.insertBefore(this,b.next),b.remove())};b.prototype.replaceWith=function(b,d){b="string"===typeof b?k.create(b,d):b;b.replace(this);return b};b.prototype.split=
function(b,d){return 0===b?this:this.next};b.prototype.update=function(b,d){};b.prototype.wrap=function(b,d){b="string"===typeof b?k.create(b,d):b;null!=this.parent&&this.parent.insertBefore(b,this.next);b.appendChild(this);return b};b.blotName="abstract";return b}();g.default=b},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});var k=d(12),n=d(32),l=d(33),m=d(1);b=function(){function b(c){this.attributes={};this.domNode=c;this.build()}b.prototype.attribute=function(c,a){a?c.add(this.domNode,
a)&&(null!=c.value(this.domNode)?this.attributes[c.attrName]=c:delete this.attributes[c.attrName]):(c.remove(this.domNode),delete this.attributes[c.attrName])};b.prototype.build=function(){var c=this;this.attributes={};var a=k.default.keys(this.domNode),b=n.default.keys(this.domNode),f=l.default.keys(this.domNode);a.concat(b).concat(f).forEach(function(a){a=m.query(a,m.Scope.ATTRIBUTE);a instanceof k.default&&(c.attributes[a.attrName]=a)})};b.prototype.copy=function(c){var a=this;Object.keys(this.attributes).forEach(function(b){var e=
a.attributes[b].value(a.domNode);c.format(b,e)})};b.prototype.move=function(c){var a=this;this.copy(c);Object.keys(this.attributes).forEach(function(c){a.attributes[c].remove(a.domNode)});this.attributes={}};b.prototype.values=function(){var c=this;return Object.keys(this.attributes).reduce(function(a,b){a[b]=c.attributes[b].value(c.domNode);return a},{})};return b}();g.default=b},function(b,g,d){function k(b,d){return(b.getAttribute("class")||"").split(/\s+/).filter(function(b){return 0===b.indexOf(d+
"-")})}var n=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var c in f)f.hasOwnProperty(c)&&(b[c]=f[c])};return function(d,f){function c(){this.constructor=d}b(d,f);d.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}();Object.defineProperty(g,"__esModule",{value:!0});b=function(b){function d(){return null!==b&&b.apply(this,arguments)||this}n(d,b);d.keys=function(b){return(b.getAttribute("class")||
"").split(/\s+/).map(function(c){return c.split("-").slice(0,-1).join("-")})};d.prototype.add=function(b,c){if(!this.canAdd(b,c))return!1;this.remove(b);b.classList.add(this.keyName+"-"+c);return!0};d.prototype.remove=function(b){k(b,this.keyName).forEach(function(c){b.classList.remove(c)});0===b.classList.length&&b.removeAttribute("class")};d.prototype.value=function(b){var c=(k(b,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(b,c)?c:""};return d}(d(12).default);g.default=
b},function(b,g,d){function k(b){b=b.split("-");var d=b.slice(1).map(function(b){return b[0].toUpperCase()+b.slice(1)}).join("");return b[0]+d}var n=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var c in f)f.hasOwnProperty(c)&&(b[c]=f[c])};return function(d,f){function c(){this.constructor=d}b(d,f);d.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}();Object.defineProperty(g,"__esModule",
{value:!0});b=function(b){function d(){return null!==b&&b.apply(this,arguments)||this}n(d,b);d.keys=function(b){return(b.getAttribute("style")||"").split(";").map(function(c){return c.split(":")[0].trim()})};d.prototype.add=function(b,c){if(!this.canAdd(b,c))return!1;b.style[k(this.keyName)]=c;return!0};d.prototype.remove=function(b){b.style[k(this.keyName)]="";b.getAttribute("style")||b.removeAttribute("style")};d.prototype.value=function(b){var c=b.style[k(this.keyName)];return this.canAdd(b,c)?
c:""};return d}(d(12).default);g.default=b},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});var k=function(){function b(b,d){for(var f=0;f<d.length;f++){var c=d[f];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(b,c.key,c)}}return function(d,m,f){m&&b(d.prototype,m);f&&b(d,f);return d}}();b=function(){function b(d,m){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.quill=d;this.options=m;this.modules=
{}}k(b,[{key:"init",value:function(){var b=this;Object.keys(this.options.modules).forEach(function(d){null==b.modules[d]&&b.addModule(d)})}},{key:"addModule",value:function(b){var d=this.quill.constructor.import("modules/"+b);this.modules[b]=new d(this.quill,this.options.modules[b]||{});return this.modules[b]}}]);return b}();b.DEFAULTS={modules:{}};b.themes={"default":b};g.default=b},function(b,g,d){function k(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function n(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});var l=function(){function a(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=
e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,b,f){b&&a(c.prototype,b);f&&a(c,f);return c}}(),m=function r(c,b,f){null===c&&(c=Function.prototype);var e=Object.getOwnPropertyDescriptor(c,b);if(void 0===e){if(c=Object.getPrototypeOf(c),null!==c)return r(c,b,f)}else{if("value"in e)return e.value;b=e.get;return void 0===b?void 0:b.call(f)}},f=(b=d(0))&&b.__esModule?b:{default:b},c=(d=d(7))&&d.__esModule?d:{default:d};d=function(b){function e(c){if(!(this instanceof
e))throw new TypeError("Cannot call a class as a function");var b=k(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,c));b.contentNode=document.createElement("span");b.contentNode.setAttribute("contenteditable",!1);[].slice.call(b.domNode.childNodes).forEach(function(c){b.contentNode.appendChild(c)});b.leftGuard=document.createTextNode("\ufeff");b.rightGuard=document.createTextNode("\ufeff");b.domNode.appendChild(b.leftGuard);b.domNode.appendChild(b.contentNode);b.domNode.appendChild(b.rightGuard);
return b}n(e,b);l(e,[{key:"index",value:function(c,b){return c===this.leftGuard?0:c===this.rightGuard?1:m(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,c,b)}},{key:"restore",value:function(b){var e=void 0,d=b.data.split("\ufeff").join("");b===this.leftGuard?this.prev instanceof c.default?(e=this.prev.length(),this.prev.insertAt(e,d),e={startNode:this.prev.domNode,startOffset:e+d.length}):(e=document.createTextNode(d),this.parent.insertBefore(f.default.create(e),
this),e={startNode:e,startOffset:d.length}):b===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,d),e={startNode:this.next.domNode,startOffset:d.length}):(e=document.createTextNode(d),this.parent.insertBefore(f.default.create(e),this.next),e={startNode:e,startOffset:d.length}));b.data="\ufeff";return e}},{key:"update",value:function(c,b){var e=this;c.forEach(function(c){"characterData"!==c.type||c.target!==e.leftGuard&&c.target!==e.rightGuard||!(c=e.restore(c.target))||(b.range=
c)})}}]);return e}(f.default.Embed);g.default=d},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});g.AlignStyle=g.AlignClass=g.AlignAttribute=void 0;var k=(b=d(0))&&b.__esModule?b:{default:b},n={scope:k.default.Scope.BLOCK,whitelist:["right","center","justify"]};b=new k.default.Attributor.Attribute("align","align",n);d=new k.default.Attributor.Class("align","ql-align",n);k=new k.default.Attributor.Style("align","text-align",n);g.AlignAttribute=b;g.AlignClass=d;g.AlignStyle=k},function(b,
g,d){Object.defineProperty(g,"__esModule",{value:!0});g.BackgroundStyle=g.BackgroundClass=void 0;b=(b=d(0))&&b.__esModule?b:{default:b};var k=d(26);d=new b.default.Attributor.Class("background","ql-bg",{scope:b.default.Scope.INLINE});b=new k.ColorAttributor("background","background-color",{scope:b.default.Scope.INLINE});g.BackgroundClass=d;g.BackgroundStyle=b},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});g.DirectionStyle=g.DirectionClass=g.DirectionAttribute=void 0;var k=(b=d(0))&&
b.__esModule?b:{default:b},n={scope:k.default.Scope.BLOCK,whitelist:["rtl"]};b=new k.default.Attributor.Attribute("direction","dir",n);d=new k.default.Attributor.Class("direction","ql-direction",n);k=new k.default.Attributor.Style("direction","direction",n);g.DirectionAttribute=b;g.DirectionClass=d;g.DirectionStyle=k},function(b,g,d){function k(b,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);b.prototype=Object.create(c&&
c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(b,c):b.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});g.FontClass=g.FontStyle=void 0;var n=function(){function b(c,a){for(var b=0;b<a.length;b++){var f=a[b];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(c,f.key,f)}}return function(c,a,e){a&&b(c.prototype,a);e&&b(c,e);return c}}(),l=function p(c,a,b){null===
c&&(c=Function.prototype);var e=Object.getOwnPropertyDescriptor(c,a);if(void 0===e){if(c=Object.getPrototypeOf(c),null!==c)return p(c,a,b)}else{if("value"in e)return e.value;a=e.get;return void 0===a?void 0:a.call(b)}};d=(b=d(0))&&b.__esModule?b:{default:b};var m={scope:d.default.Scope.INLINE,whitelist:["serif","monospace"]};b=new d.default.Attributor.Class("font","ql-font",m);d=new (function(c){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");var c=(a.__proto__||
Object.getPrototypeOf(a)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?this:c}k(a,c);n(a,[{key:"value",value:function(c){return l(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,c).replace(/["']/g,"")}}]);return a}(d.default.Attributor.Style))("font","font-family",m);g.FontStyle=d;g.FontClass=b},function(b,g,d){Object.defineProperty(g,"__esModule",
{value:!0});g.SizeStyle=g.SizeClass=void 0;d=(b=d(0))&&b.__esModule?b:{default:b};b=new d.default.Attributor.Class("size","ql-size",{scope:d.default.Scope.INLINE,whitelist:["small","large","huge"]});d=new d.default.Attributor.Style("size","font-size",{scope:d.default.Scope.INLINE,whitelist:["10px","18px","32px"]});g.SizeClass=b;g.SizeStyle=d},function(b,g,d){b.exports={align:{"":d(76),center:d(77),right:d(78),justify:d(79)},background:d(80),blockquote:d(81),bold:d(82),clean:d(83),code:d(58),"code-block":d(58),
color:d(84),direction:{"":d(85),rtl:d(86)},"float":{center:d(87),full:d(88),left:d(89),right:d(90)},formula:d(91),header:{1:d(92),2:d(93)},italic:d(94),image:d(95),indent:{"+1":d(96),"-1":d(97)},link:d(98),list:{ordered:d(99),bullet:d(100),check:d(101)},script:{sub:d(102),"super":d(103)},strike:d(104),underline:d(105),video:d(106)}},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function l(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function m(c){c=c.ops[c.ops.length-1];return null==c?!1:null!=c.insert?"string"===typeof c.insert&&c.insert.endsWith("\n"):null!=
c.attributes?Object.keys(c.attributes).some(function(c){return null!=a.default.query(c,a.default.Scope.BLOCK)}):!1}function f(a){var c=a.reduce(function(a,c){return a+=c.delete||0},0);c=a.length()-c;m(a)&&--c;return c}Object.defineProperty(g,"__esModule",{value:!0});g.getLastChangeIndex=g.default=void 0;var c=function(){function a(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,
b,e){b&&a(c.prototype,b);e&&a(c,e);return c}}();b=d(0);var a=k(b);b=d(5);var e=k(b);d=d(9);d=function(a){function b(a,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=n(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c));f.lastRecorded=0;f.ignoreChange=!1;f.clear();f.quill.on(e.default.events.EDITOR_CHANGE,function(a,c,b,d){a!==e.default.events.TEXT_CHANGE||f.ignoreChange||(f.options.userOnly&&d!==e.default.sources.USER?f.transform(c):f.record(c,b))});
f.quill.keyboard.addBinding({key:"Z",shortKey:!0},f.undo.bind(f));f.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},f.redo.bind(f));/Win/i.test(navigator.platform)&&f.quill.keyboard.addBinding({key:"Y",shortKey:!0},f.redo.bind(f));return f}l(b,a);c(b,[{key:"change",value:function(a,c){if(0!==this.stack[a].length){var b=this.stack[a].pop();this.stack[c].push(b);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(b[a],e.default.sources.USER);this.ignoreChange=!1;a=f(b[a]);
this.quill.setSelection(a)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(a,c){if(0!==a.ops.length){this.stack.redo=[];c=this.quill.getContents().diff(c);var b=Date.now();this.lastRecorded+this.options.delay>b&&0<this.stack.undo.length?(b=this.stack.undo.pop(),c=c.compose(b.undo),a=b.redo.compose(a)):this.lastRecorded=b;this.stack.undo.push({redo:a,undo:c});this.stack.undo.length>this.options.maxStack&&
this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(a){this.stack.undo.forEach(function(c){c.undo=a.transform(c.undo,!0);c.redo=a.transform(c.redo,!0)});this.stack.redo.forEach(function(c){c.undo=a.transform(c.undo,!0);c.redo=a.transform(c.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return b}(k(d).default);d.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};g.default=d;g.getLastChangeIndex=f},function(b,g,d){function k(a){return a&&
a.__esModule?a:{default:a}}function n(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function f(a,c){var b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;c.forEach(function(c){var e=document.createElement("option");c===b?e.setAttribute("selected","selected"):e.setAttribute("value",c);a.appendChild(e)})}Object.defineProperty(g,"__esModule",{value:!0});g.default=g.BaseTooltip=void 0;var c=function(){function c(c,a){for(var b=0;b<a.length;b++){var e=a[b];e.enumerable=e.enumerable||
!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(c,e.key,e)}}return function(a,b,e){b&&c(a.prototype,b);e&&c(a,e);return a}}(),a=function w(a,c,b){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,c);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return w(a,c,b)}else{if("value"in e)return e.value;c=e.get;return void 0===c?void 0:c.call(b)}};b=d(3);b=k(b);var e=d(2),p=k(e);e=d(8);var h=k(e);e=d(23);var r=k(e);e=d(34);e=k(e);var q=d(59),t=k(q);q=
d(60);var u=k(q);q=d(28);var y=k(q);d=d(61);q=k(d);var z=[!1,"center","right","justify"],B="#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(" "),E=[!1,"serif","monospace"],G=["1","2","3",!1],C=["small",!1,"large","huge"];d=function(b){function e(a,c){n(this,e);var b=
l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a,c));a.emitter.listenDOM("click",document.body,function H(c){if(!document.body.contains(a.root))return document.body.removeEventListener("click",H);null==b.tooltip||b.tooltip.root.contains(c.target)||document.activeElement===b.tooltip.textbox||b.quill.hasFocus()||b.tooltip.hide();null!=b.pickers&&b.pickers.forEach(function(a){a.container.contains(c.target)||a.close()})});return b}m(e,b);c(e,[{key:"addModule",value:function(c){var b=a(e.prototype.__proto__||
Object.getPrototypeOf(e.prototype),"addModule",this).call(this,c);"toolbar"===c&&this.extendToolbar(b);return b}},{key:"buildButtons",value:function(a,c){a.forEach(function(a){(a.getAttribute("class")||"").split(/\s+/).forEach(function(b){if(b.startsWith("ql-")&&(b=b.slice(3),null!=c[b]))if("direction"===b)a.innerHTML=c[b][""]+c[b].rtl;else if("string"===typeof c[b])a.innerHTML=c[b];else{var e=a.value||"";null!=e&&c[b][e]&&(a.innerHTML=c[b][e])}})})}},{key:"buildPickers",value:function(a,c){var b=
this;this.pickers=a.map(function(a){if(a.classList.contains("ql-align"))return null==a.querySelector("option")&&f(a,z),new u.default(a,c.align);if(a.classList.contains("ql-background")||a.classList.contains("ql-color")){var b=a.classList.contains("ql-background")?"background":"color";null==a.querySelector("option")&&f(a,B,"background"===b?"#ffffff":"#000000");return new t.default(a,c[b])}null==a.querySelector("option")&&(a.classList.contains("ql-font")?f(a,E):a.classList.contains("ql-header")?f(a,
G):a.classList.contains("ql-size")&&f(a,C));return new y.default(a)});this.quill.on(h.default.events.EDITOR_CHANGE,function(){b.pickers.forEach(function(a){a.update()})})}}]);return e}(e.default);d.DEFAULTS=(0,b.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var a=this,c=this.container.querySelector("input.ql-image[type=file]");null==c&&(c=document.createElement("input"),c.setAttribute("type","file"),c.setAttribute("accept",
"image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),c.classList.add("ql-image"),c.addEventListener("change",function(){if(null!=c.files&&null!=c.files[0]){var b=new FileReader;b.onload=function(b){var e=a.quill.getSelection(!0);a.quill.updateContents((new p.default).retain(e.index).delete(e.length).insert({image:b.target.result}),h.default.sources.USER);a.quill.setSelection(e.index+1,h.default.sources.SILENT);c.value=""};b.readAsDataURL(c.files[0])}}),this.container.appendChild(c));c.click()},
video:function(){this.quill.theme.tooltip.edit("video")}}}}});b=function(a){function b(a,c){n(this,b);a=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c));a.textbox=a.root.querySelector('input[type="text"]');a.listen();return a}m(b,a);c(b,[{key:"listen",value:function(){var a=this;this.textbox.addEventListener("keydown",function(c){r.default.match(c,"enter")?(a.save(),c.preventDefault()):r.default.match(c,"escape")&&(a.cancel(),c.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},
{key:"edit",value:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=c?this.textbox.value=c:a!==this.root.getAttribute("data-mode")&&(this.textbox.value="");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+a)||"");
this.root.setAttribute("data-mode",a)}},{key:"restoreFocus",value:function(){var a=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=a}},{key:"save",value:function(){var a=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var c=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",a,h.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",a,h.default.sources.USER));
this.quill.root.scrollTop=c;break;case "video":a=(c=a.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||a.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(c[1]||"https")+"://www.youtube.com/embed/"+c[2]+"?showinfo=0":(c=a.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(c[1]||"https")+"://player.vimeo.com/video/"+c[2]+"/":a;case "formula":a&&(c=this.quill.getSelection(!0),null!=c&&(c=c.index+c.length,this.quill.insertEmbed(c,this.root.getAttribute("data-mode"),
a,h.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(c+1," ",h.default.sources.USER),this.quill.setSelection(c+2,h.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return b}(q.default);g.BaseTooltip=b;g.default=d},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});b=function(){function b(){this.head=this.tail=null;this.length=0}b.prototype.append=function(){for(var b=[],d=0;d<arguments.length;d++)b[d]=arguments[d];this.insertBefore(b[0],
null);1<b.length&&this.append.apply(this,b.slice(1))};b.prototype.contains=function(b){for(var d,m=this.iterator();d=m();)if(d===b)return!0;return!1};b.prototype.insertBefore=function(b,d){b&&(b.next=d,null!=d?(b.prev=d.prev,null!=d.prev&&(d.prev.next=b),d.prev=b,d===this.head&&(this.head=b)):null!=this.tail?(this.tail.next=b,b.prev=this.tail,this.tail=b):(b.prev=null,this.head=this.tail=b),this.length+=1)};b.prototype.offset=function(b){for(var d=0,m=this.head;null!=m;){if(m===b)return d;d+=m.length();
m=m.next}return-1};b.prototype.remove=function(b){this.contains(b)&&(null!=b.prev&&(b.prev.next=b.next),null!=b.next&&(b.next.prev=b.prev),b===this.head&&(this.head=b.next),b===this.tail&&(this.tail=b.prev),--this.length)};b.prototype.iterator=function(b){void 0===b&&(b=this.head);return function(){var d=b;null!=b&&(b=b.next);return d}};b.prototype.find=function(b,d){void 0===d&&(d=!1);for(var l,f=this.iterator();l=f();){var c=l.length();if(b<c||d&&b===c&&(null==l.next||0!==l.next.length()))return[l,
b];b-=c}return[null,0]};b.prototype.forEach=function(b){for(var d,m=this.iterator();d=m();)b(d)};b.prototype.forEachAt=function(b,d,m){if(!(0>=d))for(var f=this.find(b),c=b-f[1],a=this.iterator(f[0]);(f=a())&&c<b+d;){var e=f.length();b>c?m(f,b-c,Math.min(d,c+e-b)):m(f,0,Math.min(e,b+d-c));c+=e}};b.prototype.map=function(b){return this.reduce(function(d,m){d.push(b(m));return d},[])};b.prototype.reduce=function(b,d){for(var l,f=this.iterator();l=f();)d=b(d,l);return d};return b}();g.default=b},function(b,
g,d){var k=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return function(c,a){function e(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(g,"__esModule",{value:!0});var n=d(17),l=d(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};b=function(b){function c(a){var c=
b.call(this,a)||this;c.scroll=c;c.observer=new MutationObserver(function(a){c.update(a)});c.observer.observe(c.domNode,m);c.attach();return c}k(c,b);c.prototype.detach=function(){b.prototype.detach.call(this);this.observer.disconnect()};c.prototype.deleteAt=function(a,c){this.update();0===a&&c===this.length()?this.children.forEach(function(a){a.remove()}):b.prototype.deleteAt.call(this,a,c)};c.prototype.formatAt=function(a,c,f,d){this.update();b.prototype.formatAt.call(this,a,c,f,d)};c.prototype.insertAt=
function(a,c,f){this.update();b.prototype.insertAt.call(this,a,c,f)};c.prototype.optimize=function(a,c){var e=this;void 0===a&&(a=[]);void 0===c&&(c={});b.prototype.optimize.call(this,c);for(var f=[].slice.call(this.observer.takeRecords());0<f.length;)a.push(f.pop());for(var d=function(c,a){void 0===a&&(a=!0);null!=c&&c!==e&&null!=c.domNode.parentNode&&(null==c.domNode[l.DATA_KEY].mutations&&(c.domNode[l.DATA_KEY].mutations=[]),a&&d(c.parent))},m=function(a){null!=a.domNode[l.DATA_KEY]&&null!=a.domNode[l.DATA_KEY].mutations&&
(a instanceof n.default&&a.children.forEach(m),a.optimize(c))},g=a,k=0;0<g.length;k+=1){if(100<=k)throw Error("[Parchment] Maximum optimize iterations reached");g.forEach(function(a){var c=l.find(a.target,!0);null!=c&&(c.domNode===a.target&&("childList"===a.type?(d(l.find(a.previousSibling,!1)),[].forEach.call(a.addedNodes,function(a){a=l.find(a,!1);d(a,!1);a instanceof n.default&&a.children.forEach(function(a){d(a,!1)})})):"attributes"===a.type&&d(c.prev)),d(c))});this.children.forEach(m);g=[].slice.call(this.observer.takeRecords());
for(f=g.slice();0<f.length;)a.push(f.pop())}};c.prototype.update=function(a,c){var e=this;void 0===c&&(c={});a=a||this.observer.takeRecords();a.map(function(a){var c=l.find(a.target,!0);if(null==c)return null;if(null==c.domNode[l.DATA_KEY].mutations)return c.domNode[l.DATA_KEY].mutations=[a],c;c.domNode[l.DATA_KEY].mutations.push(a);return null}).forEach(function(a){null!=a&&a!==e&&null!=a.domNode[l.DATA_KEY]&&a.update(a.domNode[l.DATA_KEY].mutations||[],c)});null!=this.domNode[l.DATA_KEY].mutations&&
b.prototype.update.call(this,this.domNode[l.DATA_KEY].mutations,c);this.optimize(a,c)};c.blotName="scroll";c.defaultChild="block";c.scope=l.Scope.BLOCK_BLOT;c.tagName="DIV";return c}(n.default);g.default=b},function(b,g,d){var k=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return function(f,c){function a(){this.constructor=f}b(f,c);f.prototype=null===c?Object.create(c):
(a.prototype=c.prototype,new a)}}();Object.defineProperty(g,"__esModule",{value:!0});var n=d(18),l=d(1);b=function(b){function f(){return null!==b&&b.apply(this,arguments)||this}k(f,b);f.formats=function(c){if(c.tagName!==f.tagName)return b.formats.call(this,c)};f.prototype.format=function(c,a){var e=this;c!==this.statics.blotName||a?b.prototype.format.call(this,c,a):(this.children.forEach(function(a){a instanceof n.default||(a=a.wrap(f.blotName,!0));e.attributes.copy(a)}),this.unwrap())};f.prototype.formatAt=
function(c,a,e,f){null!=this.formats()[e]||l.query(e,l.Scope.ATTRIBUTE)?this.isolate(c,a).format(e,f):b.prototype.formatAt.call(this,c,a,e,f)};f.prototype.optimize=function(c){b.prototype.optimize.call(this,c);c=this.formats();if(0===Object.keys(c).length)return this.unwrap();var a=this.next,e;if(e=a instanceof f&&a.prev===this)a:if(e=a.formats(),Object.keys(c).length!==Object.keys(e).length)e=!1;else{for(var d in c)if(c[d]!==e[d]){e=!1;break a}e=!0}e&&(a.moveChildren(this),a.remove())};f.blotName=
"inline";f.scope=l.Scope.INLINE_BLOT;f.tagName="SPAN";return f}(n.default);g.default=b},function(b,g,d){var k=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,f){b.__proto__=f}||function(b,f){for(var c in f)f.hasOwnProperty(c)&&(b[c]=f[c])};return function(d,f){function c(){this.constructor=d}b(d,f);d.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}();Object.defineProperty(g,"__esModule",{value:!0});b=d(18);var n=d(1);d=
function(b){function d(){return null!==b&&b.apply(this,arguments)||this}k(d,b);d.formats=function(f){var c=n.query(d.blotName).tagName;if(f.tagName!==c)return b.formats.call(this,f)};d.prototype.format=function(f,c){null!=n.query(f,n.Scope.BLOCK)&&(f!==this.statics.blotName||c?b.prototype.format.call(this,f,c):this.replaceWith(d.blotName))};d.prototype.formatAt=function(f,c,a,e){null!=n.query(a,n.Scope.BLOCK)?this.format(a,e):b.prototype.formatAt.call(this,f,c,a,e)};d.prototype.insertAt=function(f,
c,a){null==a||null!=n.query(c,n.Scope.INLINE)?b.prototype.insertAt.call(this,f,c,a):(f=this.split(f),c=n.create(c,a),f.parent.insertBefore(c,f))};d.prototype.update=function(f,c){navigator.userAgent.match(/Trident/)?this.build():b.prototype.update.call(this,f,c)};d.blotName="block";d.scope=n.Scope.BLOCK_BLOT;d.tagName="P";return d}(b.default);g.default=d},function(b,g,d){var k=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||
function(b,d){for(var f in d)d.hasOwnProperty(f)&&(b[f]=d[f])};return function(d,g){function f(){this.constructor=d}b(d,g);d.prototype=null===g?Object.create(g):(f.prototype=g.prototype,new f)}}();Object.defineProperty(g,"__esModule",{value:!0});b=function(b){function d(){return null!==b&&b.apply(this,arguments)||this}k(d,b);d.formats=function(b){};d.prototype.format=function(d,f){b.prototype.formatAt.call(this,0,this.length(),d,f)};d.prototype.formatAt=function(d,f,c,a){0===d&&f===this.length()?
this.format(c,a):b.prototype.formatAt.call(this,d,f,c,a)};d.prototype.formats=function(){return this.statics.formats(this.domNode)};return d}(d(19).default);g.default=b},function(b,g,d){var k=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var c in d)d.hasOwnProperty(c)&&(b[c]=d[c])};return function(d,f){function c(){this.constructor=d}b(d,f);d.prototype=null===f?Object.create(f):(c.prototype=f.prototype,
new c)}}();Object.defineProperty(g,"__esModule",{value:!0});b=d(19);var n=d(1);d=function(b){function d(d){d=b.call(this,d)||this;d.text=d.statics.value(d.domNode);return d}k(d,b);d.create=function(b){return document.createTextNode(b)};d.value=function(b){b=b.data;b.normalize&&(b=b.normalize());return b};d.prototype.deleteAt=function(b,c){this.domNode.data=this.text=this.text.slice(0,b)+this.text.slice(b+c)};d.prototype.index=function(b,c){return this.domNode===b?c:-1};d.prototype.insertAt=function(d,
c,a){null==a?(this.text=this.text.slice(0,d)+c+this.text.slice(d),this.domNode.data=this.text):b.prototype.insertAt.call(this,d,c,a)};d.prototype.length=function(){return this.text.length};d.prototype.optimize=function(f){b.prototype.optimize.call(this,f);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};d.prototype.position=function(b,c){return[this.domNode,
b]};d.prototype.split=function(b,c){void 0===c&&(c=!1);if(!c){if(0===b)return this;if(b===this.length())return this.next}b=n.create(this.domNode.splitText(b));this.parent.insertBefore(b,this.next);this.text=this.statics.value(this.domNode);return b};d.prototype.update=function(b,c){var a=this;b.some(function(c){return"characterData"===c.type&&c.target===a.domNode})&&(this.text=this.statics.value(this.domNode))};d.prototype.value=function(){return this.text};d.blotName="text";d.scope=n.Scope.INLINE_BLOT;
return d}(b.default);g.default=d},function(b,g,d){b=document.createElement("div");b.classList.toggle("test-class",!1);if(b.classList.contains("test-class")){var k=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(b,d){return 1<arguments.length&&!this.contains(b)===!d?d:k.call(this,b)}}String.prototype.startsWith||(String.prototype.startsWith=function(b,d){return this.substr(d||0,b.length)===b});String.prototype.endsWith||(String.prototype.endsWith=function(b,d){var g=this.toString();
if("number"!==typeof d||!isFinite(d)||Math.floor(d)!==d||d>g.length)d=g.length;d-=b.length;b=g.indexOf(b,d);return-1!==b&&b===d});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(b,d){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof b)throw new TypeError("predicate must be a function");for(var g=Object(this),f=g.length>>>0,c,a=0;a<f;a++)if(c=g[a],b.call(d,c,a,g))return c}});document.addEventListener("DOMContentLoaded",
function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(b,g){function d(b,d,f){if(b==d)return b?[[0,b]]:[];if(0>f||b.length<f)f=null;var h=l(b,d),g=b.substring(0,h);b=b.substring(h);d=d.substring(h);h=m(b,d);var q=b.substring(b.length-h);b=b.substring(0,b.length-h);d=d.substring(0,d.length-h);b=k(b,d);g&&b.unshift([0,g]);q&&b.push([0,q]);c(b);null!=f&&(b=a(b,f));return b=e(b)}function k(a,c){if(!a)return[[1,c]];if(!c)return[[-1,a]];var b=
a.length>c.length?a:c;var e=a.length>c.length?c:a,h=b.indexOf(e);if(-1!=h)return b=[[1,b.substring(0,h)],[0,e],[1,b.substring(h+e.length)]],a.length>c.length&&(b[0][0]=b[2][0]=-1),b;if(1==e.length)return[[-1,a],[1,c]];if(b=f(a,c))return c=b[1],e=b[3],a=b[4],b=d(b[0],b[2]),c=d(c,e),b.concat([[0,a]],c);a:{b=a.length;e=c.length;h=Math.ceil((b+e)/2);for(var g=2*h,l=Array(g),k=Array(g),r=0;r<g;r++)l[r]=-1,k[r]=-1;l[h+1]=0;k[h+1]=0;r=b-e;for(var m=0!=r%2,p=0,x=0,v=0,J=0,F=0;F<h;F++){for(var w=-F+p;w<=F-
x;w+=2){var A=h+w;var D=w==-F||w!=F&&l[A-1]<l[A+1]?l[A+1]:l[A-1]+1;for(var I=D-w;D<b&&I<e&&a.charAt(D)==c.charAt(I);)D++,I++;l[A]=D;if(D>b)x+=2;else if(I>e)p+=2;else if(m&&(A=h+r-w,0<=A&&A<g&&-1!=k[A])){var H=b-k[A];if(D>=H){a=n(a,c,D,I);break a}}}for(w=-F+v;w<=F-J;w+=2){A=h+w;H=w==-F||w!=F&&k[A-1]<k[A+1]?k[A+1]:k[A-1]+1;for(D=H-w;H<b&&D<e&&a.charAt(b-H-1)==c.charAt(e-D-1);)H++,D++;k[A]=H;if(H>b)J+=2;else if(D>e)v+=2;else if(!m&&(A=h+r-w,0<=A&&A<g&&-1!=l[A]&&(D=l[A],I=h+D-A,H=b-H,D>=H))){a=n(a,c,
D,I);break a}}}a=[[-1,a],[1,c]]}return a}function n(a,c,b,e){var f=a.substring(0,b),h=c.substring(0,e);a=a.substring(b);c=c.substring(e);f=d(f,h);h=d(a,c);return f.concat(h)}function l(a,c){if(!a||!c||a.charAt(0)!=c.charAt(0))return 0;for(var b=0,e=Math.min(a.length,c.length),d=e,f=0;b<d;)a.substring(f,d)==c.substring(f,d)?f=b=d:e=d,d=Math.floor((e-b)/2+b);return d}function m(a,c){if(!a||!c||a.charAt(a.length-1)!=c.charAt(c.length-1))return 0;for(var b=0,e=Math.min(a.length,c.length),d=e,f=0;b<d;)a.substring(a.length-
d,a.length-f)==c.substring(c.length-d,c.length-f)?f=b=d:e=d,d=Math.floor((e-b)/2+b);return d}function f(a,c){function b(a,c,b){for(var d=a.substring(b,b+Math.floor(a.length/4)),e=-1,f="",h,g,k,q;-1!=(e=c.indexOf(d,e+1));){var r=l(a.substring(b),c.substring(e)),p=m(a.substring(0,b),c.substring(0,e));f.length<p+r&&(f=c.substring(e-p,e)+c.substring(e,e+r),h=a.substring(0,b-p),g=a.substring(b+r),k=c.substring(0,e-p),q=c.substring(e+r))}return 2*f.length>=a.length?[h,g,k,q,f]:null}var d=a.length>c.length?
a:c,e=a.length>c.length?c:a;if(4>d.length||2*e.length<d.length)return null;var f=b(d,e,Math.ceil(d.length/4));d=b(d,e,Math.ceil(d.length/2));if(f||d)f=d?f?f[4].length>d[4].length?f:d:d:f;else return null;a.length>c.length?(a=f[0],c=f[1],d=f[2],e=f[3]):(d=f[0],e=f[1],a=f[2],c=f[3]);return[a,c,d,e,f[4]]}function c(a){a.push([0,""]);for(var b=0,d=0,e=0,f="",h="",g;b<a.length;)switch(a[b][0]){case 1:e++;h+=a[b][1];b++;break;case -1:d++;f+=a[b][1];b++;break;case 0:1<d+e?(0!==d&&0!==e&&(g=l(h,f),0!==g&&
(0<b-d-e&&0==a[b-d-e-1][0]?a[b-d-e-1][1]+=h.substring(0,g):(a.splice(0,0,[0,h.substring(0,g)]),b++),h=h.substring(g),f=f.substring(g)),g=m(h,f),0!==g&&(a[b][1]=h.substring(h.length-g)+a[b][1],h=h.substring(0,h.length-g),f=f.substring(0,f.length-g))),0===d?a.splice(b-e,d+e,[1,h]):0===e?a.splice(b-d,d+e,[-1,f]):a.splice(b-d-e,d+e,[-1,f],[1,h]),b=b-d-e+(d?1:0)+(e?1:0)+1):0!==b&&0==a[b-1][0]?(a[b-1][1]+=a[b][1],a.splice(b,1)):b++,d=e=0,h=f=""}""===a[a.length-1][1]&&a.pop();d=!1;for(b=1;b<a.length-1;)0==
a[b-1][0]&&0==a[b+1][0]&&(a[b][1].substring(a[b][1].length-a[b-1][1].length)==a[b-1][1]?(a[b][1]=a[b-1][1]+a[b][1].substring(0,a[b][1].length-a[b-1][1].length),a[b+1][1]=a[b-1][1]+a[b+1][1],a.splice(b-1,1),d=!0):a[b][1].substring(0,a[b+1][1].length)==a[b+1][1]&&(a[b-1][1]+=a[b+1][1],a[b][1]=a[b][1].substring(a[b+1][1].length)+a[b+1][1],a.splice(b+1,1),d=!0)),b++;d&&c(a)}function a(a,c){a:{var b=a;if(0===c)var d=[0,b];else{var e=0;for(d=0;d<b.length;d++){var f=b[d];if(-1===f[0]||0===f[0]){var h=e+
f[1].length;if(c===h){d=[d+1,b];break a}else if(c<h){b=b.slice();e=c-e;c=[f[0],f[1].slice(0,e)];f=[f[0],f[1].slice(e)];b.splice(d,1,c,f);d=[d+1,b];break a}else e=h}}throw Error("cursor_pos is out of bounds!");}}b=d[1];d=d[0];c=b[d];f=b[d+1];return null==c||0!==c[0]?a:null!=f&&c[1]+f[1]===f[1]+c[1]?(b.splice(d,2,f,c),p(b,d,2)):null!=f&&0===f[1].indexOf(c[1])?(b.splice(d,2,[f[0],c[1]],[0,c[1]]),a=f[1].slice(c[1].length),0<a.length&&b.splice(d+2,0,[f[0],a]),p(b,d,3)):a}function e(a){for(var c=!1,b=function(a){return 56320<=
a.charCodeAt(0)&&57343>=a.charCodeAt(0)},d=function(a){return 55296<=a.charCodeAt(a.length-1)&&56319>=a.charCodeAt(a.length-1)},e=2;e<a.length;e+=1)0===a[e-2][0]&&d(a[e-2][1])&&-1===a[e-1][0]&&b(a[e-1][1])&&1===a[e][0]&&b(a[e][1])&&(c=!0,a[e-1][1]=a[e-2][1].slice(-1)+a[e-1][1],a[e][1]=a[e-2][1].slice(-1)+a[e][1],a[e-2][1]=a[e-2][1].slice(0,-1));if(!c)return a;c=[];for(e=0;e<a.length;e+=1)0<a[e][1].length&&c.push(a[e]);return c}function p(a,c,b){for(b=c+b-1;0<=b&&b>=c-1;b--)if(b+1<a.length){var d=
a[b],e=a[b+1];d[0]===e[1]&&a.splice(b,2,[d[0],d[1]+e[1]])}return a}d.INSERT=1;d.DELETE=-1;d.EQUAL=0;b.exports=d},function(b,g){function d(b){var d=[],g;for(g in b)d.push(g);return d}g=b.exports="function"===typeof Object.keys?Object.keys:d;g.shim=d},function(b,g){function d(b){return"[object Arguments]"==Object.prototype.toString.call(b)}function k(b){return b&&"object"==typeof b&&"number"==typeof b.length&&Object.prototype.hasOwnProperty.call(b,"callee")&&!Object.prototype.propertyIsEnumerable.call(b,
"callee")||!1}g="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();g=b.exports=g?d:k;g.supported=d;g.unsupported=k},function(b,g){function d(){}function k(b,c,a){this.fn=b;this.context=c;this.once=a||!1}function n(){this._events=new d;this._eventsCount=0}var l=Object.prototype.hasOwnProperty,m="~";Object.create&&(d.prototype=Object.create(null),(new d).__proto__||(m=!1));n.prototype.eventNames=function(){var b=[],c,a;if(0===this._eventsCount)return b;for(a in c=this._events)l.call(c,
a)&&b.push(m?a.slice(1):a);return Object.getOwnPropertySymbols?b.concat(Object.getOwnPropertySymbols(c)):b};n.prototype.listeners=function(b,c){b=this._events[m?m+b:b];if(c)return!!b;if(!b)return[];if(b.fn)return[b.fn];c=0;for(var a=b.length,d=Array(a);c<a;c++)d[c]=b[c].fn;return d};n.prototype.emit=function(b,c,a,d,g,h){var e=m?m+b:b;if(!this._events[e])return!1;e=this._events[e];var f=arguments.length,l;if(e.fn){e.once&&this.removeListener(b,e.fn,void 0,!0);switch(f){case 1:return e.fn.call(e.context),
!0;case 2:return e.fn.call(e.context,c),!0;case 3:return e.fn.call(e.context,c,a),!0;case 4:return e.fn.call(e.context,c,a,d),!0;case 5:return e.fn.call(e.context,c,a,d,g),!0;case 6:return e.fn.call(e.context,c,a,d,g,h),!0}var k=1;for(l=Array(f-1);k<f;k++)l[k-1]=arguments[k];e.fn.apply(e.context,l)}else{var p=e.length;for(k=0;k<p;k++)switch(e[k].once&&this.removeListener(b,e[k].fn,void 0,!0),f){case 1:e[k].fn.call(e[k].context);break;case 2:e[k].fn.call(e[k].context,c);break;case 3:e[k].fn.call(e[k].context,
c,a);break;case 4:e[k].fn.call(e[k].context,c,a,d);break;default:if(!l){var n=1;for(l=Array(f-1);n<f;n++)l[n-1]=arguments[n]}e[k].fn.apply(e[k].context,l)}}return!0};n.prototype.on=function(b,c,a){c=new k(c,a||this);b=m?m+b:b;this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],c]:this._events[b].push(c):(this._events[b]=c,this._eventsCount++);return this};n.prototype.once=function(b,c,a){c=new k(c,a||this,!0);b=m?m+b:b;this._events[b]?this._events[b].fn?this._events[b]=[this._events[b],
c]:this._events[b].push(c):(this._events[b]=c,this._eventsCount++);return this};n.prototype.removeListener=function(b,c,a,e){b=m?m+b:b;if(!this._events[b])return this;if(!c)return 0===--this._eventsCount?this._events=new d:delete this._events[b],this;var f=this._events[b];if(f.fn)f.fn!==c||e&&!f.once||a&&f.context!==a||(0===--this._eventsCount?this._events=new d:delete this._events[b]);else{for(var h=0,g=[],l=f.length;h<l;h++)(f[h].fn!==c||e&&!f[h].once||a&&f[h].context!==a)&&g.push(f[h]);g.length?
this._events[b]=1===g.length?g[0]:g:0===--this._eventsCount?this._events=new d:delete this._events[b]}return this};n.prototype.removeAllListeners=function(b){b?(b=m?m+b:b,this._events[b]&&(0===--this._eventsCount?this._events=new d:delete this._events[b])):(this._events=new d,this._eventsCount=0);return this};n.prototype.off=n.prototype.removeListener;n.prototype.addListener=n.prototype.on;n.prototype.setMaxListeners=function(){return this};n.prefixed=m;n.EventEmitter=n;"undefined"!==typeof b&&(b.exports=
n)},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c,b){c in a?Object.defineProperty(a,c,{value:b,enumerable:!0,configurable:!0,writable:!0}):a[c]=b;return a}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=
Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function f(a,c,b){return"object"===("undefined"===typeof c?"undefined":z(c))?Object.keys(c).reduce(function(a,b){return f(a,b,c[b])},a):a.reduce(function(a,e){return e.attributes&&e.attributes[c]?a.push(e):a.insert(e.insert,(0,G.default)({},n({},c,b),e.attributes))},new C.default)}function c(a){return a.nodeType!==Node.ELEMENT_NODE?{}:
a["__ql-computed-style"]||(a["__ql-computed-style"]=window.getComputedStyle(a))}function a(a,c){for(var b="",e=a.ops.length-1;0<=e&&b.length<c.length;--e){var d=a.ops[e];if("string"!==typeof d.insert)break;b=d.insert+b}return b.slice(-1*c.length)===c}function e(a){if(0===a.childNodes.length)return!1;a=c(a);return-1<["block","list-item"].indexOf(a.display)}function p(a,c,b){return a.nodeType===a.TEXT_NODE?b.reduce(function(c,b){return b(a,c)},new C.default):a.nodeType===a.ELEMENT_NODE?[].reduce.call(a.childNodes||
[],function(e,d){var f=p(d,c,b);d.nodeType===a.ELEMENT_NODE&&(f=c.reduce(function(a,c){return c(d,a)},f),f=(d["__ql-matcher"]||[]).reduce(function(a,c){return c(d,a)},f));return e.concat(f)},new C.default):new C.default}function h(a,c,b){return f(b,a,!0)}function r(a,c){var b=x.default.Attributor.Attribute.keys(a),e=x.default.Attributor.Class.keys(a),d=x.default.Attributor.Style.keys(a),h={};b.concat(e).concat(d).forEach(function(c){var b=x.default.query(c,x.default.Scope.ATTRIBUTE);if(null!=b&&(h[b.attrName]=
b.value(a),h[b.attrName]))return;b=N[c];null==b||b.attrName!==c&&b.keyName!==c||(h[b.attrName]=b.value(a)||void 0);b=M[c];null==b||b.attrName!==c&&b.keyName!==c||(b=M[c],h[b.attrName]=b.value(a)||void 0)});0<Object.keys(h).length&&(c=f(c,h));return c}function q(a,c){var b=x.default.query(a);if(null==b)return c;if(b.prototype instanceof x.default.Embed){var e={},d=b.value(a);null!=d&&(e[b.blotName]=d,c=(new C.default).insert(e,b.formats(a)))}else"function"===typeof b.formats&&(c=f(c,b.blotName,b.formats(a)));
return c}function t(c,b){a(b,"\n")||(e(c)||0<b.length()&&c.nextSibling&&e(c.nextSibling))&&b.insert("\n");return b}function u(b,d){if(e(b)&&null!=b.nextElementSibling&&!a(d,"\n\n")){var f=b.offsetHeight+parseFloat(c(b).marginTop)+parseFloat(c(b).marginBottom);b.nextElementSibling.offsetTop>b.offsetTop+1.5*f&&d.insert("\n")}return d}function y(a,b){var d=a.data;if("O:P"===a.parentNode.tagName)return b.insert(d.trim());if(0===d.trim().length&&a.parentNode.classList.contains("ql-clipboard"))return b;
if(!c(a.parentNode).whiteSpace.startsWith("pre")){var f=function(a,c){c=c.replace(/[^\u00a0]/g,"");return 1>c.length&&a?" ":c};d=d.replace(/\r\n/g," ").replace(/\n/g," ");d=d.replace(/\s\s+/g,f.bind(f,!0));if(null==a.previousSibling&&e(a.parentNode)||null!=a.previousSibling&&e(a.previousSibling))d=d.replace(/^\s+/,f.bind(f,!1));if(null==a.nextSibling&&e(a.parentNode)||null!=a.nextSibling&&e(a.nextSibling))d=d.replace(/\s+$/,f.bind(f,!1))}return b.insert(d)}Object.defineProperty(g,"__esModule",{value:!0});
g.matchText=g.matchSpacing=g.matchNewline=g.matchBlot=g.matchAttributor=g.default=void 0;var z="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},B=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var b=[],e=!0,d=!1,f=void 0;try{for(var h=a[Symbol.iterator](),g;!(e=(g=h.next()).done)&&(b.push(g.value),
!c||b.length!==c);e=!0);}catch(P){d=!0,f=P}finally{try{if(!e&&h["return"])h["return"]()}finally{if(d)throw f;}}return b}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),E=function(){function a(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,e.key,e)}}return function(c,b,e){b&&a(c.prototype,b);e&&a(c,e);return c}}();b=d(3);var G=k(b);b=d(2);var C=k(b);b=d(0);var x=k(b);b=
d(5);var v=k(b);b=d(10);b=k(b);var J=d(9);J=k(J);var F=d(36),w=d(37),A=d(13),D=k(A);A=d(26);var I=d(38),H=d(39);d=d(40);var K=(0,b.default)("quill:clipboard"),L=[[Node.TEXT_NODE,y],[Node.TEXT_NODE,t],["br",function(c,b){a(b,"\n")||b.insert("\n");return b}],[Node.ELEMENT_NODE,t],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,u],[Node.ELEMENT_NODE,r],[Node.ELEMENT_NODE,function(a,b){var e={},d=a.style||{};d.fontStyle&&"italic"===c(a).fontStyle&&(e.italic=!0);d.fontWeight&&(c(a).fontWeight.startsWith("bold")||
700<=parseInt(c(a).fontWeight))&&(e.bold=!0);0<Object.keys(e).length&&(b=f(b,e));0<parseFloat(d.textIndent||0)&&(b=(new C.default).insert("\t").concat(b));return b}],["li",function(c,b){var e=x.default.query(c);if(null==e||"list-item"!==e.blotName||!a(b,"\n"))return b;e=-1;for(c=c.parentNode;!c.classList.contains("ql-clipboard");)"list"===(x.default.query(c)||{}).blotName&&(e+=1),c=c.parentNode;return 0>=e?b:b.compose((new C.default).retain(b.length()-1).retain(1,{indent:e}))}],["b",h.bind(h,"bold")],
["i",h.bind(h,"italic")],["style",function(){return new C.default}]],N=[F.AlignAttribute,I.DirectionAttribute].reduce(function(a,c){a[c.keyName]=c;return a},{}),M=[F.AlignStyle,w.BackgroundStyle,A.ColorStyle,I.DirectionStyle,H.FontStyle,d.SizeStyle].reduce(function(a,c){a[c.keyName]=c;return a},{});d=function(c){function b(a,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c));e.quill.root.addEventListener("paste",
e.onPaste.bind(e));e.container=e.quill.addContainer("ql-clipboard");e.container.setAttribute("contenteditable",!0);e.container.setAttribute("tabindex",-1);e.matchers=[];L.concat(e.options.matchers).forEach(function(a){a=B(a,2);var b=a[1];(c.matchVisual||b!==u)&&e.addMatcher(a[0],b)});return e}m(b,c);E(b,[{key:"addMatcher",value:function(a,c){this.matchers.push([a,c])}},{key:"convert",value:function(c){if("string"===typeof c)return this.container.innerHTML=c.replace(/>\r?\n +</g,"><"),this.convert();
c=this.quill.getFormat(this.quill.selection.savedRange.index);if(c[D.default.blotName]){var b=this.container.innerText;this.container.innerHTML="";return(new C.default).insert(b,n({},D.default.blotName,c[D.default.blotName]))}c=this.prepareMatching();c=B(c,2);c=p(this.container,c[0],c[1]);a(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new C.default).retain(c.length()-1).delete(1)));K.log("convert",this.container.innerHTML,c);this.container.innerHTML="";return c}},{key:"dangerouslyPasteHTML",
value:function(a,c){var b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"===typeof a)this.quill.setContents(this.convert(a),c),this.quill.setSelection(0,v.default.sources.SILENT);else{var e=this.convert(c);this.quill.updateContents((new C.default).retain(a).concat(e),b);this.quill.setSelection(a+e.length(),v.default.sources.SILENT)}}},{key:"onPaste",value:function(a){var c=this;if(!a.defaultPrevented&&this.quill.isEnabled()){var b=this.quill.getSelection(),
e=(new C.default).retain(b.index),d=this.quill.scrollingContainer.scrollTop;this.container.focus();this.quill.selection.update(v.default.sources.SILENT);setTimeout(function(){e=e.concat(c.convert()).delete(b.length);c.quill.updateContents(e,v.default.sources.USER);c.quill.setSelection(e.length()-b.length,v.default.sources.SILENT);c.quill.scrollingContainer.scrollTop=d;c.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var a=this,c=[],b=[];this.matchers.forEach(function(e){e=B(e,2);var d=
e[0],f=e[1];switch(d){case Node.TEXT_NODE:b.push(f);break;case Node.ELEMENT_NODE:c.push(f);break;default:[].forEach.call(a.container.querySelectorAll(d),function(a){a["__ql-matcher"]=a["__ql-matcher"]||[];a["__ql-matcher"].push(f)})}});return[c,b]}}]);return b}(J.default);d.DEFAULTS={matchers:[],matchVisual:!0};g.default=d;g.matchAttributor=r;g.matchBlot=q;g.matchNewline=t;g.matchSpacing=u;g.matchText=y},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+
typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function b(b,c){for(var a=0;a<c.length;a++){var e=c[a];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(b,e.key,e)}}return function(d,c,a){c&&b(d.prototype,c);a&&b(d,a);return d}}(),l=function e(b,c,
a){null===b&&(b=Function.prototype);var d=Object.getOwnPropertyDescriptor(b,c);if(void 0===d){if(b=Object.getPrototypeOf(b),null!==b)return e(b,c,a)}else{if("value"in d)return d.value;c=d.get;return void 0===c?void 0:c.call(a)}};b=d(6);b=function(b){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!a||"object"!==typeof a&&"function"!==typeof a?this:a}k(c,b);n(c,[{key:"optimize",value:function(a){l(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,a);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return c}((b&&b.__esModule?b:{default:b}).default);b.blotName=
"bold";b.tagName=["STRONG","B"];g.default=b},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c,b){c in a?Object.defineProperty(a,c,{value:b,enumerable:!0,configurable:!0,writable:!0}):a[c]=b;return a}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+
typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}function f(a,c,b){var e=document.createElement("button");e.setAttribute("type","button");e.classList.add("ql-"+c);null!=b&&(e.value=b);a.appendChild(e)}function c(c,b){Array.isArray(b[0])||(b=[b]);b.forEach(function(b){var e=document.createElement("span");e.classList.add("ql-formats");b.forEach(function(c){if("string"===
typeof c)f(e,c);else{var b=Object.keys(c)[0];c=c[b];Array.isArray(c)?a(e,b,c):f(e,b,c)}});c.appendChild(e)})}function a(a,c,b){var e=document.createElement("select");e.classList.add("ql-"+c);b.forEach(function(a){var c=document.createElement("option");!1!==a?c.setAttribute("value",a):c.setAttribute("selected","selected");e.appendChild(c)});a.appendChild(e)}Object.defineProperty(g,"__esModule",{value:!0});g.addControls=g.default=void 0;var e=function(){return function(a,c){if(Array.isArray(a))return a;
if(Symbol.iterator in Object(a)){var b=[],e=!0,d=!1,f=void 0;try{for(var h=a[Symbol.iterator](),g;!(e=(g=h.next()).done)&&(b.push(g.value),!c||b.length!==c);e=!0);}catch(v){d=!0,f=v}finally{try{if(!e&&h["return"])h["return"]()}finally{if(d)throw f;}}return b}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),p=function(){function a(a,c){for(var b=0;b<c.length;b++){var e=c[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(a,
e.key,e)}}return function(c,b,e){b&&a(c.prototype,b);e&&a(c,e);return c}}();b=d(2);var h=k(b);b=d(0);var r=k(b);b=d(5);var q=k(b);b=d(10);b=k(b);d=d(9);d=k(d);var t=(0,b.default)("quill:toolbar");d=function(a){function b(a,d){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,d));Array.isArray(f.options.container)?(d=document.createElement("div"),c(d,f.options.container),a.container.parentNode.insertBefore(d,
a.container),f.container=d):f.container="string"===typeof f.options.container?document.querySelector(f.options.container):f.options.container;if(!(f.container instanceof HTMLElement)){var h;return h=t.error("Container required for toolbar",f.options),l(f,h)}f.container.classList.add("ql-toolbar");f.controls=[];f.handlers={};Object.keys(f.options.handlers).forEach(function(a){f.addHandler(a,f.options.handlers[a])});[].forEach.call(f.container.querySelectorAll("button, select"),function(a){f.attach(a)});
f.quill.on(q.default.events.EDITOR_CHANGE,function(a,c){a===q.default.events.SELECTION_CHANGE&&f.update(c)});f.quill.on(q.default.events.SCROLL_OPTIMIZE,function(){var a=f.quill.selection.getRange();a=e(a,1)[0];f.update(a)});return f}m(b,a);p(b,[{key:"addHandler",value:function(a,c){this.handlers[a]=c}},{key:"attach",value:function(a){var c=this,b=[].find.call(a.classList,function(a){return 0===a.indexOf("ql-")});if(b){b=b.slice(3);"BUTTON"===a.tagName&&a.setAttribute("type","button");if(null==this.handlers[b]){if(null!=
this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[b]){t.warn("ignoring attaching to disabled format",b,a);return}if(null==r.default.query(b)){t.warn("ignoring attaching to nonexistent format",b,a);return}}a.addEventListener("SELECT"===a.tagName?"change":"click",function(d){if("SELECT"===a.tagName){if(0>a.selectedIndex)return;var f=a.options[a.selectedIndex];f=f.hasAttribute("selected")?!1:f.value||!1}else f=a.classList.contains("ql-active")?!1:a.value||!a.hasAttribute("value"),d.preventDefault();
c.quill.focus();d=c.quill.selection.getRange();d=e(d,1)[0];if(null!=c.handlers[b])c.handlers[b].call(c,f);else if(r.default.query(b).prototype instanceof r.default.Embed){f=prompt("Enter "+b);if(!f)return;c.quill.updateContents((new h.default).retain(d.index).delete(d.length).insert(n({},b,f)),q.default.sources.USER)}else c.quill.format(b,f,q.default.sources.USER);c.update(d)});this.controls.push([b,a])}}},{key:"update",value:function(a){var c=null==a?{}:this.quill.getFormat(a);this.controls.forEach(function(b){b=
e(b,2);var d=b[0];b=b[1];if("SELECT"===b.tagName){var f=void 0;null==a?f=null:null==c[d]?f=b.querySelector("option[selected]"):Array.isArray(c[d])||(d=c[d],"string"===typeof d&&(d=d.replace(/"/g,'\\"')),f=b.querySelector('option[value="'+d+'"]'));null==f?(b.value="",b.selectedIndex=-1):f.selected=!0}else null==a?b.classList.remove("ql-active"):b.hasAttribute("value")?(d=c[d]===b.getAttribute("value")||null!=c[d]&&c[d].toString()===b.getAttribute("value")||null==c[d]&&!b.getAttribute("value"),b.classList.toggle("ql-active",
d)):b.classList.toggle("ql-active",null!=c[d])})}}]);return b}(d.default);d.DEFAULTS={};d.DEFAULTS={container:null,handlers:{clean:function(){var a=this,c=this.quill.getSelection();null!=c&&(0==c.length?(c=this.quill.getFormat(),Object.keys(c).forEach(function(c){null!=r.default.query(c,r.default.Scope.INLINE)&&a.quill.format(c,!1)})):this.quill.removeFormat(c,q.default.sources.USER))},direction:function(a){var c=this.quill.getFormat().align;"rtl"===a&&null==c?this.quill.format("align","right",q.default.sources.USER):
a||"right"!==c||this.quill.format("align",!1,q.default.sources.USER);this.quill.format("direction",a,q.default.sources.USER)},indent:function(a){var c=this.quill.getSelection();c=this.quill.getFormat(c);var b=parseInt(c.indent||0);if("+1"===a||"-1"===a)a="+1"===a?1:-1,"rtl"===c.direction&&(a*=-1),this.quill.format("indent",b+a,q.default.sources.USER)},link:function(a){!0===a&&(a=prompt("Enter link URL:"));this.quill.format("link",a,q.default.sources.USER)},list:function(a){var c=this.quill.getSelection();
c=this.quill.getFormat(c);"check"===a?"checked"===c.list||"unchecked"===c.list?this.quill.format("list",!1,q.default.sources.USER):this.quill.format("list","unchecked",q.default.sources.USER):this.quill.format("list",a,q.default.sources.USER)}}};g.default=d;g.addControls=c},function(b,g){b.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(b,g,d){function k(b,c){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?b:c}function n(b,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);b.prototype=Object.create(c&&c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(b,c):b.__proto__=c)}Object.defineProperty(g,
"__esModule",{value:!0});var l=function(){function b(c,a){for(var b=0;b<a.length;b++){var d=a[b];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(c,d.key,d)}}return function(c,a,e){a&&b(c.prototype,a);e&&b(c,e);return c}}(),m=function p(c,a,b){null===c&&(c=Function.prototype);var e=Object.getOwnPropertyDescriptor(c,a);if(void 0===e){if(c=Object.getPrototypeOf(c),null!==c)return p(c,a,b)}else{if("value"in e)return e.value;a=e.get;return void 0===a?
void 0:a.call(b)}};b=d(28);b=function(c){function a(c,b){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");c=k(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,c));c.label.innerHTML=b;c.container.classList.add("ql-color-picker");[].slice.call(c.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(a){a.classList.add("ql-primary")});return c}n(a,c);l(a,[{key:"buildItem",value:function(c){var b=m(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),
"buildItem",this).call(this,c);b.style.backgroundColor=c.getAttribute("value")||"";return b}},{key:"selectItem",value:function(c,b){m(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,c,b);b=this.label.querySelector(".ql-color-label");c=c?c.getAttribute("data-value")||"":"";b&&("line"===b.tagName?b.style.stroke=c:b.style.fill=c)}}]);return a}((b&&b.__esModule?b:{default:b}).default);g.default=b},function(b,g,d){function k(b,c){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!c||"object"!==typeof c&&"function"!==typeof c?b:c}function n(b,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);b.prototype=Object.create(c&&c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(b,c):b.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});var l=function(){function b(c,a){for(var b=0;b<a.length;b++){var d=a[b];d.enumerable=
d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(c,d.key,d)}}return function(c,a,d){a&&b(c.prototype,a);d&&b(c,d);return c}}(),m=function p(c,a,b){null===c&&(c=Function.prototype);var d=Object.getOwnPropertyDescriptor(c,a);if(void 0===d){if(c=Object.getPrototypeOf(c),null!==c)return p(c,a,b)}else{if("value"in d)return d.value;a=d.get;return void 0===a?void 0:a.call(b)}};b=d(28);b=function(c){function a(c,b){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
c=k(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,c));c.container.classList.add("ql-icon-picker");[].forEach.call(c.container.querySelectorAll(".ql-picker-item"),function(a){a.innerHTML=b[a.getAttribute("data-value")||""]});c.defaultItem=c.container.querySelector(".ql-selected");c.selectItem(c.defaultItem);return c}n(a,c);l(a,[{key:"selectItem",value:function(c,b){m(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,c,b);c=c||this.defaultItem;this.label.innerHTML=
c.innerHTML}}]);return a}((b&&b.__esModule?b:{default:b}).default);g.default=b},function(b,g,d){Object.defineProperty(g,"__esModule",{value:!0});var k=function(){function b(b,d){for(var f=0;f<d.length;f++){var c=d[f];c.enumerable=c.enumerable||!1;c.configurable=!0;"value"in c&&(c.writable=!0);Object.defineProperty(b,c.key,c)}}return function(d,g,f){g&&b(d.prototype,g);f&&b(d,f);return d}}();b=function(){function b(d,g){var f=this;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");
this.quill=d;this.boundsContainer=g||document.body;this.root=d.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){f.root.style.marginTop=-1*f.quill.root.scrollTop+"px"});this.hide()}k(b,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(b){var d=b.left+b.width/2-this.root.offsetWidth/2,f=b.bottom+this.quill.root.scrollTop;this.root.style.left=
d+"px";this.root.style.top=f+"px";this.root.classList.remove("ql-flip");var c=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),e=0;a.right>c.right&&(e=c.right-a.right,this.root.style.left=d+e+"px");a.left<c.left&&(e=c.left-a.left,this.root.style.left=d+e+"px");a.bottom>c.bottom&&(this.root.style.top=f-(b.bottom-b.top+(a.bottom-a.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")}}]);
return b}();g.default=b},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=
Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});var f=function(){return function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a)){var b=[],d=!0,e=!1,f=void 0;try{for(var h=a[Symbol.iterator](),g;!(d=(g=h.next()).done)&&(b.push(g.value),!c||b.length!==c);d=!0);}catch(w){e=!0,f=w}finally{try{if(!d&&h["return"])h["return"]()}finally{if(e)throw f;
}}return b}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),c=function x(a,c,b){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,c);if(void 0===d){if(a=Object.getPrototypeOf(a),null!==a)return x(a,c,b)}else{if("value"in d)return d.value;c=d.get;return void 0===c?void 0:c.call(b)}},a=function(){function a(a,c){for(var b=0;b<c.length;b++){var d=c[b];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,
d.key,d)}}return function(c,b,d){b&&a(c.prototype,b);d&&a(c,d);return c}}();b=d(3);b=k(b);var e=d(8),p=k(e);e=d(43);var h=k(e),r=d(27),q=k(r),t=d(15);d=d(41);var u=k(d),y=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];d=function(c){function b(a,c){n(this,b);null!=c.modules.toolbar&&null==c.modules.toolbar.container&&(c.modules.toolbar.container=y);a=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c));a.quill.container.classList.add("ql-snow");
return a}m(b,c);a(b,[{key:"extendToolbar",value:function(a){a.container.classList.add("ql-snow");this.buildButtons([].slice.call(a.container.querySelectorAll("button")),u.default);this.buildPickers([].slice.call(a.container.querySelectorAll("select")),u.default);this.tooltip=new z(this.quill,this.options.bounds);a.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(c,b){a.handlers.link.call(a,!b.format.link)})}}]);return b}(h.default);d.DEFAULTS=(0,b.default)(!0,
{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(a){a?(a=this.quill.getSelection(),null!=a&&0!=a.length&&(a=this.quill.getText(a),/^\S+@\S+\.\S+$/.test(a)&&0!==a.indexOf("mailto:")&&(a="mailto:"+a),this.quill.theme.tooltip.edit("link",a))):this.quill.format("link",!1)}}}}});var z=function(b){function d(a,c){n(this,d);a=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,a,c));a.preview=a.root.querySelector("a.ql-preview");return a}m(d,b);a(d,[{key:"listen",value:function(){var a=
this;c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(c){a.root.classList.contains("ql-editing")?a.save():a.edit("link",a.preview.textContent);c.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(c){if(null!=a.linkRange){var b=a.linkRange;a.restoreFocus();a.quill.formatText(b,"link",!1,p.default.sources.USER);delete a.linkRange}c.preventDefault();a.hide()});
this.quill.on(p.default.events.SELECTION_CHANGE,function(c,b,d){if(null!=c){if(0===c.length&&d===p.default.sources.USER){if(b=a.quill.scroll.descendant(q.default,c.index),d=f(b,2),b=d[0],d=d[1],null!=b){a.linkRange=new t.Range(c.index-d,b.length());c=q.default.formats(b.domNode);a.preview.textContent=c;a.preview.setAttribute("href",c);a.show();a.position(a.quill.getBounds(a.linkRange));return}}else delete a.linkRange;a.hide()}})}},{key:"show",value:function(){c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),
"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return d}(e.BaseTooltip);z.TEMPLATE='<a class="ql-preview" 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>';g.default=d},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(g,"__esModule",{value:!0});b=d(29);b=k(b);var n=d(36),l=d(38),m=d(64),f=d(65);f=k(f);var c=
d(66);c=k(c);var a=d(67),e=k(a),p=d(37),h=d(26),r=d(39),q=d(40),t=d(56);t=k(t);var u=d(68);u=k(u);var y=d(27);y=k(y);var z=d(69);z=k(z);var B=d(70);B=k(B);var E=d(71);E=k(E);var G=d(72);G=k(G);var C=d(73);C=k(C);var x=d(13),v=k(x),J=d(74);J=k(J);var F=d(75);F=k(F);var w=d(57);w=k(w);var A=d(41);A=k(A);var D=d(28);D=k(D);var I=d(59);I=k(I);var H=d(60);H=k(H);var K=d(61);K=k(K);var L=d(108);L=k(L);d=d(62);d=k(d);b.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":n.AlignClass,
"attributors/class/background":p.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":r.FontClass,"attributors/class/size":q.SizeClass,"attributors/style/align":n.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":r.FontStyle,"attributors/style/size":q.SizeStyle},!0);b.default.register({"formats/align":n.AlignClass,
"formats/direction":l.DirectionClass,"formats/indent":m.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":r.FontClass,"formats/size":q.SizeClass,"formats/blockquote":f.default,"formats/code-block":v.default,"formats/header":c.default,"formats/list":e.default,"formats/bold":t.default,"formats/code":x.Code,"formats/italic":u.default,"formats/link":y.default,"formats/script":z.default,"formats/strike":B.default,"formats/underline":E.default,"formats/image":G.default,
"formats/video":C.default,"formats/list/item":a.ListItem,"modules/formula":J.default,"modules/syntax":F.default,"modules/toolbar":w.default,"themes/bubble":L.default,"themes/snow":d.default,"ui/icons":A.default,"ui/picker":D.default,"ui/icon-picker":H.default,"ui/color-picker":I.default,"ui/tooltip":K.default},!0);g.default=b.default},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=
Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});g.IndentClass=void 0;var n=function(){function b(b,c){for(var a=0;a<c.length;a++){var d=c[a];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(b,d.key,d)}}return function(d,c,a){c&&b(d.prototype,c);a&&b(d,a);return d}}(),l=function e(b,c,a){null===
b&&(b=Function.prototype);var d=Object.getOwnPropertyDescriptor(b,c);if(void 0===d){if(b=Object.getPrototypeOf(b),null!==b)return e(b,c,a)}else{if("value"in d)return d.value;c=d.get;return void 0===c?void 0:c.call(a)}};b=(b=d(0))&&b.__esModule?b:{default:b};b=new (function(b){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!a||"object"!==typeof a&&"function"!==typeof a?this:a}k(c,b);n(c,[{key:"add",value:function(a,b){if("+1"===b||"-1"===b){var d=this.value(a)||0;b="+1"===b?d+1:d-1}return 0===b?(this.remove(a),!0):l(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"add",this).call(this,a,b)}},{key:"canAdd",value:function(a,b){return l(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,a,b)||l(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,
a,parseInt(b))}},{key:"value",value:function(a){return parseInt(l(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"value",this).call(this,a))||void 0}}]);return c}(b.default.Attributor.Class))("indent","ql-indent",{scope:b.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});g.IndentClass=b},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,
enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});b=d(4);b=function(b){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var b=(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}k(d,
b);return d}((b&&b.__esModule?b:{default:b}).default);b.blotName="blockquote";b.tagName="blockquote";g.default=b},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});var n=
function(){function b(b,d){for(var c=0;c<d.length;c++){var a=d[c];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(b,a.key,a)}}return function(d,f,c){f&&b(d.prototype,f);c&&b(d,c);return d}}();b=d(4);b=function(b){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var b=(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}k(d,b);n(d,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]);return d}((b&&b.__esModule?b:{default:b}).default);b.blotName="header";b.tagName="H1 H2 H3 H4 H5 H6".split(" ");g.default=b},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function");}function l(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!c||"object"!==typeof c&&"function"!==typeof c?a:c}function m(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});g.default=g.ListItem=void 0;var f=function(){function a(a,c){for(var b=0;b<c.length;b++){var d=
c[b];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(c,b,d){b&&a(c.prototype,b);d&&a(c,d);return c}}(),c=function u(a,c,b){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,c);if(void 0===d){if(a=Object.getPrototypeOf(a),null!==a)return u(a,c,b)}else{if("value"in d)return d.value;c=d.get;return void 0===c?void 0:c.call(b)}};b=d(0);var a=k(b);b=d(4);b=k(b);d=d(25);d=k(d);var e=function(b){function d(){n(this,
d);return l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}m(d,b);f(d,[{key:"format",value:function(b,e){b!==p.blotName||e?c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,b,e):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(a,b){this.parent.isolate(this.offset(this.parent),
this.length());if(a===this.parent.statics.blotName)return this.parent.replaceWith(a,b),this;this.parent.unwrap();return c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,a,b)}}],[{key:"formats",value:function(a){return a.tagName===this.tagName?void 0:c(d.__proto__||Object.getPrototypeOf(d),"formats",this).call(this,a)}}]);return d}(b.default);e.blotName="list-item";e.tagName="LI";var p=function(b){function d(c){n(this,d);var b=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,
c)),e=function(d){if(d.target.parentNode===c){var e=b.statics.formats(c);d=a.default.find(d.target);"checked"===e?d.format("list","unchecked"):"unchecked"===e&&d.format("list","checked")}};c.addEventListener("touchstart",e);c.addEventListener("mousedown",e);return b}m(d,b);f(d,null,[{key:"create",value:function(a){var b="ordered"===a?"OL":"UL";b=c(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,b);"checked"!==a&&"unchecked"!==a||b.setAttribute("data-checked","checked"===a);return b}},
{key:"formats",value:function(a){if("OL"===a.tagName)return"ordered";if("UL"===a.tagName)return a.hasAttribute("data-checked")?"true"===a.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);f(d,[{key:"format",value:function(a,c){0<this.children.length&&this.children.tail.format(a,c)}},{key:"formats",value:function(){var a={},c=this.statics.blotName,b=this.statics.formats(this.domNode);c in a?Object.defineProperty(a,c,{value:b,enumerable:!0,configurable:!0,writable:!0}):a[c]=b;return a}},
{key:"insertBefore",value:function(a,b){a instanceof e?c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,a,b):(b=null==b?this.length():b.offset(this),b=this.split(b),b.parent.insertBefore(a,b))}},{key:"optimize",value:function(a){c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,a);a=this.next;null!=a&&a.prev===this&&a.statics.blotName===this.statics.blotName&&a.domNode.tagName===this.domNode.tagName&&a.domNode.getAttribute("data-checked")===
this.domNode.getAttribute("data-checked")&&(a.moveChildren(this),a.remove())}},{key:"replace",value:function(b){if(b.statics.blotName!==this.statics.blotName){var e=a.default.create(this.statics.defaultChild);b.moveChildren(e);this.appendChild(e)}c(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replace",this).call(this,b)}}]);return d}(d.default);p.blotName="list";p.scope=a.default.Scope.BLOCK_BLOT;p.tagName=["OL","UL"];p.defaultChild="list-item";p.allowedChildren=[e];g.ListItem=e;g.default=
p},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});b=d(56);b=function(b){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var b=
(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}k(d,b);return d}((b&&b.__esModule?b:{default:b}).default);b.blotName="italic";b.tagName=["EM","I"];g.default=b},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&
d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function b(b,c){for(var a=0;a<c.length;a++){var d=c[a];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(b,d.key,d)}}return function(d,c,a){c&&b(d.prototype,c);a&&b(d,a);return d}}(),l=function e(b,c,a){null===b&&(b=Function.prototype);var d=
Object.getOwnPropertyDescriptor(b,c);if(void 0===d){if(b=Object.getPrototypeOf(b),null!==b)return e(b,c,a)}else{if("value"in d)return d.value;c=d.get;return void 0===c?void 0:c.call(a)}};b=d(6);b=function(b){function c(){if(!(this instanceof c))throw new TypeError("Cannot call a class as a function");var a=(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==
typeof a?this:a}k(c,b);n(c,null,[{key:"create",value:function(a){return"super"===a?document.createElement("sup"):"sub"===a?document.createElement("sub"):l(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,a)}},{key:"formats",value:function(a){if("SUB"===a.tagName)return"sub";if("SUP"===a.tagName)return"super"}}]);return c}((b&&b.__esModule?b:{default:b}).default);b.blotName="script";b.tagName=["SUB","SUP"];g.default=b},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==
d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,"__esModule",{value:!0});b=d(6);b=function(b){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var b=(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!b||"object"!==typeof b&&"function"!==typeof b?this:b}k(d,b);return d}((b&&b.__esModule?b:{default:b}).default);b.blotName="strike";b.tagName="S";g.default=b},function(b,g,d){function k(b,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}Object.defineProperty(g,
"__esModule",{value:!0});b=d(6);b=function(b){function d(){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");var b=(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?this:b}k(d,b);return d}((b&&b.__esModule?b:{default:b}).default);b.blotName="underline";b.tagName="U";g.default=b},function(b,g,d){function k(b,a){if("function"!==
typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function b(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,
d.key,d)}}return function(a,c,d){c&&b(a.prototype,c);d&&b(a,d);return a}}(),l=function h(a,b,d){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,b);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return h(a,b,d)}else{if("value"in e)return e.value;b=e.get;return void 0===b?void 0:b.call(d)}};b=(b=d(0))&&b.__esModule?b:{default:b};var m=d(27),f=["alt","height","width"];d=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");
var a=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}k(b,a);n(b,[{key:"format",value:function(a,d){-1<f.indexOf(a)?d?this.domNode.setAttribute(a,d):this.domNode.removeAttribute(a):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,a,d)}}],[{key:"create",value:function(a){var d=l(b.__proto__||Object.getPrototypeOf(b),
"create",this).call(this,a);"string"===typeof a&&d.setAttribute("src",this.sanitize(a));return d}},{key:"formats",value:function(a){return f.reduce(function(b,d){a.hasAttribute(d)&&(b[d]=a.getAttribute(d));return b},{})}},{key:"match",value:function(a){return/\.(jpe?g|gif|png)$/.test(a)||/^data:image\/.+;base64/.test(a)}},{key:"sanitize",value:function(a){return(0,m.sanitize)(a,["http","https","data"])?a:"//:0"}},{key:"value",value:function(a){return a.getAttribute("src")}}]);return b}(b.default.Embed);
d.blotName="image";d.tagName="IMG";g.default=d},function(b,g,d){function k(b,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);b.prototype=Object.create(a&&a.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(b,a):b.__proto__=a)}Object.defineProperty(g,"__esModule",{value:!0});var n=function(){function b(a,b){for(var c=0;c<b.length;c++){var d=b[c];
d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(a,c,d){c&&b(a.prototype,c);d&&b(a,d);return a}}(),l=function h(a,b,d){null===a&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,b);if(void 0===e){if(a=Object.getPrototypeOf(a),null!==a)return h(a,b,d)}else{if("value"in e)return e.value;b=e.get;return void 0===b?void 0:b.call(d)}};b=d(4);var m=(d=d(27))&&d.__esModule?d:{default:d},f=["height","width"];d=function(a){function b(){if(!(this instanceof
b))throw new TypeError("Cannot call a class as a function");var a=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?this:a}k(b,a);n(b,[{key:"format",value:function(a,d){-1<f.indexOf(a)?d?this.domNode.setAttribute(a,d):this.domNode.removeAttribute(a):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,a,d)}}],
[{key:"create",value:function(a){var d=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,a);d.setAttribute("frameborder","0");d.setAttribute("allowfullscreen",!0);d.setAttribute("src",this.sanitize(a));return d}},{key:"formats",value:function(a){return f.reduce(function(b,d){a.hasAttribute(d)&&(b[d]=a.getAttribute(d));return b},{})}},{key:"sanitize",value:function(a){return m.default.sanitize(a)}},{key:"value",value:function(a){return a.getAttribute("src")}}]);return b}(b.BlockEmbed);
d.blotName="video";d.className="ql-video";d.tagName="IFRAME";g.default=d},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function l(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 m(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(g,"__esModule",{value:!0});g.default=g.FormulaBlot=void 0;var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(b,c,d){c&&a(b.prototype,c);d&&a(b,d);
return b}}(),c=function u(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(void 0===d){if(a=Object.getPrototypeOf(a),null!==a)return u(a,b,c)}else{if("value"in d)return d.value;b=d.get;return void 0===b?void 0:b.call(c)}};b=d(35);b=k(b);var a=d(5),e=k(a);d=d(9);d=k(d);var p=function(a){function b(){n(this,b);return l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}m(b,a);f(b,null,[{key:"create",value:function(a){var d=c(b.__proto__||Object.getPrototypeOf(b),
"create",this).call(this,a);"string"===typeof a&&(window.katex.render(a,d,{throwOnError:!1,errorColor:"#f00"}),d.setAttribute("data-value",a));return d}},{key:"value",value:function(a){return a.getAttribute("data-value")}}]);return b}(b.default);p.blotName="formula";p.className="ql-formula";p.tagName="SPAN";d=function(a){function b(){n(this,b);var a=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");return a}m(b,a);f(b,null,
[{key:"register",value:function(){e.default.register(p,!0)}}]);return b}(d.default);g.FormulaBlot=p;g.default=d},function(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function l(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 m(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(g,"__esModule",{value:!0});g.default=g.CodeToken=g.CodeBlock=void 0;var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(b,c,d){c&&a(b.prototype,c);
d&&a(b,d);return b}}(),c=function y(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(void 0===d){if(a=Object.getPrototypeOf(a),null!==a)return y(a,b,c)}else{if("value"in d)return d.value;b=d.get;return void 0===b?void 0:b.call(c)}};b=d(0);b=k(b);var a=d(5),e=k(a);a=d(9);a=k(a);d=d(13);var p=function(a){function b(){n(this,b);return l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}m(b,a);f(b,[{key:"replaceWith",value:function(a){this.domNode.textContent=
this.domNode.textContent;this.attach();c(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,a)}},{key:"highlight",value:function(a){var b=this.domNode.textContent;if(this.cachedText!==b){if(0<b.trim().length||null==this.cachedText)this.domNode.innerHTML=a(b),this.domNode.normalize(),this.attach();this.cachedText=b}}}]);return b}(k(d).default);p.className="ql-syntax";var h=new b.default.Attributor.Class("token","hljs",{scope:b.default.Scope.INLINE});d=function(a){function b(a,
c){n(this,b);var d=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c));if("function"!==typeof d.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var f=null;d.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(f);f=setTimeout(function(){d.highlight();f=null},d.options.interval)});d.highlight();return d}m(b,a);f(b,null,[{key:"register",value:function(){e.default.register(h,!0);e.default.register(p,!0)}}]);
f(b,[{key:"highlight",value:function(){var a=this;if(!this.quill.selection.composing){this.quill.update(e.default.sources.USER);var b=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(b){b.highlight(a.options.highlight)});this.quill.update(e.default.sources.SILENT);null!=b&&this.quill.setSelection(b,e.default.sources.SILENT)}}}]);return b}(a.default);d.DEFAULTS={highlight:function(){return null==window.hljs?null:function(a){return window.hljs.highlightAuto(a).value}}(),interval:1E3};
g.CodeBlock=p;g.CodeToken=h;g.default=d},function(b,g){b.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(b,g){b.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>'},function(b,g){b.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(b,g){b.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(b,g){b.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>'},
function(b,g){b.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(b,g){b.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>'},
function(b,g){b.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(b,g){b.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>'},
function(b,g){b.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(b,g){b.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>'},
function(b,g){b.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(b,g){b.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(b,g){b.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(b,g){b.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>'},
function(b,g){b.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>'},
function(b,g){b.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>'},
function(b,g){b.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>'},
function(b,g){b.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(b,g){b.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(b,g){b.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>'},
function(b,g){b.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(b,g){b.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>'},
function(b,g){b.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>'},
function(b,g){b.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(b,g){b.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>'},
function(b,g){b.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>'},
function(b,g){b.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>'},
function(b,g){b.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>'},
function(b,g){b.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(b,g){b.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>'},
function(b,g){b.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(b,g,d){function k(a){return a&&a.__esModule?a:{default:a}}function n(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function");}function l(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 m(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(g,"__esModule",{value:!0});g.default=g.BubbleTooltip=void 0;var f=function E(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,
b);if(void 0===d){if(a=Object.getPrototypeOf(a),null!==a)return E(a,b,c)}else{if("value"in d)return d.value;b=d.get;return void 0===b?void 0:b.call(c)}},c=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1;d.configurable=!0;"value"in d&&(d.writable=!0);Object.defineProperty(a,d.key,d)}}return function(b,c,d){c&&a(b.prototype,c);d&&a(b,d);return b}}();b=d(3);b=k(b);var a=d(8),e=k(a);a=d(43);var p=k(a),h=d(15);d=d(41);var r=k(d),q=[["bold","italic","link"],
[{header:1},{header:2},"blockquote"]];d=function(a){function b(a,c){n(this,b);null!=c.modules.toolbar&&null==c.modules.toolbar.container&&(c.modules.toolbar.container=q);a=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c));a.quill.container.classList.add("ql-bubble");return a}m(b,a);c(b,[{key:"extendToolbar",value:function(a){this.tooltip=new t(this.quill,this.options.bounds);this.tooltip.root.appendChild(a.container);this.buildButtons([].slice.call(a.container.querySelectorAll("button")),
r.default);this.buildPickers([].slice.call(a.container.querySelectorAll("select")),r.default)}}]);return b}(p.default);d.DEFAULTS=(0,b.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(a){a?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var t=function(a){function b(a,c){n(this,b);var d=l(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,a,c));d.quill.on(e.default.events.EDITOR_CHANGE,function(a,b,c,f){a===e.default.events.SELECTION_CHANGE&&(null!=
b&&0<b.length&&f===e.default.sources.USER?(d.show(),d.root.style.left="0px",d.root.style.width="",d.root.style.width=d.root.offsetWidth+"px",a=d.quill.getLines(b.index,b.length),1===a.length?d.position(d.quill.getBounds(b)):(c=a[a.length-1],a=d.quill.getIndex(c),b=Math.min(c.length()-1,b.index+b.length-a),b=d.quill.getBounds(new h.Range(a,b)),d.position(b))):document.activeElement!==d.textbox&&d.quill.hasFocus()&&d.hide())});return d}m(b,a);c(b,[{key:"listen",value:function(){var a=this;f(b.prototype.__proto__||
Object.getPrototypeOf(b.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){a.root.classList.remove("ql-editing")});this.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!a.root.classList.contains("ql-hidden")){var b=a.quill.getSelection();null!=b&&a.position(a.quill.getBounds(b))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(a){a=f(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),
"position",this).call(this,a);var c=this.root.querySelector(".ql-tooltip-arrow");c.style.marginLeft="";if(0===a)return a;c.style.marginLeft=-1*a-c.offsetWidth/2+"px"}}]);return b}(a.BaseTooltip);t.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>';g.BubbleTooltip=t;g.default=d},function(b,g,d){b.exports=d(63)}])["default"]});