/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[2],{340:function(Ba,ya,z){(function(qa){(function(ka,la){Ba.exports=la()})("undefined"!==typeof self?self:this,function(){return function(ka){function la(da){if(ha[da])return ha[da].exports;var y=ha[da]={i:da,l:!1,exports:{}};ka[da].call(y.exports,y,y.exports,la);y.l=!0;return y.exports}var ha={};la.m=ka;la.c=ha;la.d=function(da,y,r){la.o(da,y)||Object.defineProperty(da,y,{configurable:!1,enumerable:!0,get:r})};la.n=function(da){var y=
da&&da.__esModule?function(){return da["default"]}:function(){return da};la.d(y,"a",y);return y};la.o=function(da,y){return Object.prototype.hasOwnProperty.call(da,y)};la.p="";return la(la.s=109)}([function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});ka=ha(17);var da=ha(18),y=ha(19),r=ha(45),h=ha(46),a=ha(47),b=ha(48),e=ha(49),f=ha(12),n=ha(32),x=ha(33),ca=ha(31);ha=ha(1);la.default={Scope:ha.Scope,create:ha.create,find:ha.find,query:ha.query,register:ha.register,Container:ka.default,
Format:da.default,Leaf:y.default,Embed:b.default,Scroll:r.default,Block:a.default,Inline:h.default,Text:e.default,Attributor:{Attribute:f.default,Class:n.default,Style:x.default,Store:ca.default}}},function(ka,la){function ha(x,ca){void 0===ca&&(ca=!1);return null==x?null:null!=x[la.DATA_KEY]?x[la.DATA_KEY].blot:ca?ha(x.parentNode,ca):null}function da(x,ca){void 0===ca&&(ca=n.ANY);if("string"===typeof x)var w=f[x]||a[x];else if(x instanceof Text||x.nodeType===Node.TEXT_NODE)w=f.text;else if("number"===
typeof x)x&n.LEVEL&n.BLOCK?w=f.block:x&n.LEVEL&n.INLINE&&(w=f.inline);else if(x instanceof HTMLElement){var aa=(x.getAttribute("class")||"").split(/\s+/),ja;for(ja in aa)if(w=b[aa[ja]])break;w=w||e[x.tagName]}return null==w?null:ca&n.LEVEL&w.scope&&ca&n.TYPE&w.scope?w:null}function y(){for(var x=[],ca=0;ca<arguments.length;ca++)x[ca]=arguments[ca];if(1<x.length)return x.map(function(aa){return y(aa)});var w=x[0];if("string"!==typeof w.blotName&&"string"!==typeof w.attrName)throw new h("Invalid definition");
if("abstract"===w.blotName)throw new h("Cannot register abstract class");f[w.blotName||w.attrName]=w;"string"===typeof w.keyName?a[w.keyName]=w:(null!=w.className&&(b[w.className]=w),null!=w.tagName&&(Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(aa){return aa.toUpperCase()}):w.tagName=w.tagName.toUpperCase(),(Array.isArray(w.tagName)?w.tagName:[w.tagName]).forEach(function(aa){if(null==e[aa]||null==w.className)e[aa]=w})));return w}var r=this&&this.__extends||function(){var x=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(ca,w){ca.__proto__=w}||function(ca,w){for(var aa in w)w.hasOwnProperty(aa)&&(ca[aa]=w[aa])};return function(ca,w){function aa(){this.constructor=ca}x(ca,w);ca.prototype=null===w?Object.create(w):(aa.prototype=w.prototype,new aa)}}();Object.defineProperty(la,"__esModule",{value:!0});var h=function(x){function ca(w){w="[Parchment] "+w;var aa=x.call(this,w)||this;aa.message=w;aa.name=aa.constructor.name;return aa}r(ca,x);return ca}(Error);la.ParchmentError=h;
var a={},b={},e={},f={};la.DATA_KEY="__blot";var n;(function(x){x[x.TYPE=3]="TYPE";x[x.LEVEL=12]="LEVEL";x[x.ATTRIBUTE=13]="ATTRIBUTE";x[x.BLOT=14]="BLOT";x[x.INLINE=7]="INLINE";x[x.BLOCK=11]="BLOCK";x[x.BLOCK_BLOT=10]="BLOCK_BLOT";x[x.INLINE_BLOT=6]="INLINE_BLOT";x[x.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE";x[x.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE";x[x.ANY=15]="ANY"})(n=la.Scope||(la.Scope={}));la.create=function(x,ca){var w=da(x);if(null==w)throw new h("Unable to create "+x+" blot");x=x instanceof
Node||x.nodeType===Node.TEXT_NODE?x:w.create(ca);return new w(x,ca)};la.find=ha;la.query=da;la.register=y},function(ka,la,ha){function da(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var y=ha(51),r=ha(11),h=ha(3),a=ha(20),b=String.fromCharCode(0);da.prototype.insert=function(e,f){var n={};if(0===e.length)return this;n.insert=e;null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(n.attributes=f);return this.push(n)};da.prototype["delete"]=function(e){return 0>=
e?this:this.push({"delete":e})};da.prototype.retain=function(e,f){if(0>=e)return this;e={retain:e};null!=f&&"object"===typeof f&&0<Object.keys(f).length&&(e.attributes=f);return this.push(e)};da.prototype.push=function(e){var f=this.ops.length,n=this.ops[f-1];e=h(!0,{},e);if("object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[f-1]={"delete":n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(--f,n=this.ops[f-1],"object"!==
typeof n))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[f-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[f-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[f-1].attributes=e.attributes),this}}f===this.ops.length?this.ops.push(e):this.ops.splice(f,0,e);
return this};da.prototype.chop=function(){var e=this.ops[this.ops.length-1];e&&e.retain&&!e.attributes&&this.ops.pop();return this};da.prototype.filter=function(e){return this.ops.filter(e)};da.prototype.forEach=function(e){this.ops.forEach(e)};da.prototype.map=function(e){return this.ops.map(e)};da.prototype.partition=function(e){var f=[],n=[];this.forEach(function(x){(e(x)?f:n).push(x)});return[f,n]};da.prototype.reduce=function(e,f){return this.ops.reduce(e,f)};da.prototype.changeLength=function(){return this.reduce(function(e,
f){return f.insert?e+a.length(f):f.delete?e-f.delete:e},0)};da.prototype.length=function(){return this.reduce(function(e,f){return e+a.length(f)},0)};da.prototype.slice=function(e,f){e=e||0;"number"!==typeof f&&(f=Infinity);for(var n=[],x=a.iterator(this.ops),ca=0;ca<f&&x.hasNext();){if(ca<e)var w=x.next(e-ca);else w=x.next(f-ca),n.push(w);ca+=a.length(w)}return new da(n)};da.prototype.compose=function(e){var f=a.iterator(this.ops);e=a.iterator(e.ops);var n=[],x=e.peek();if(null!=x&&"number"===typeof x.retain&&
null==x.attributes){for(var ca=x.retain;"insert"===f.peekType()&&f.peekLength()<=ca;)ca-=f.peekLength(),n.push(f.next());0<x.retain-ca&&e.next(x.retain-ca)}for(n=new da(n);f.hasNext()||e.hasNext();)if("insert"===e.peekType())n.push(e.next());else if("delete"===f.peekType())n.push(f.next());else{ca=Math.min(f.peekLength(),e.peekLength());var w=f.next(ca),aa=e.next(ca);if("number"===typeof aa.retain){x={};"number"===typeof w.retain?x.retain=ca:x.insert=w.insert;if(ca=a.attributes.compose(w.attributes,
aa.attributes,"number"===typeof w.retain))x.attributes=ca;n.push(x);if(!e.hasNext()&&r(n.ops[n.ops.length-1],x))return f=new da(f.rest()),n.concat(f).chop()}else"number"===typeof aa["delete"]&&"number"===typeof w.retain&&n.push(aa)}return n.chop()};da.prototype.concat=function(e){var f=new da(this.ops.slice());0<e.ops.length&&(f.push(e.ops[0]),f.ops=f.ops.concat(e.ops.slice(1)));return f};da.prototype.diff=function(e,f){if(this.ops===e.ops)return new da;var n=[this,e].map(function(aa){return aa.map(function(ja){if(null!=
ja.insert)return"string"===typeof ja.insert?ja.insert:b;throw Error("diff() called "+(aa===e?"on":"with")+" non-document");}).join("")}),x=new da;f=y(n[0],n[1],f);var ca=a.iterator(this.ops),w=a.iterator(e.ops);f.forEach(function(aa){for(var ja=aa[1].length;0<ja;){var fa=0;switch(aa[0]){case y.INSERT:fa=Math.min(w.peekLength(),ja);x.push(w.next(fa));break;case y.DELETE:fa=Math.min(ja,ca.peekLength());ca.next(fa);x["delete"](fa);break;case y.EQUAL:fa=Math.min(ca.peekLength(),w.peekLength(),ja);var ea=
ca.next(fa),ba=w.next(fa);if(r(ea.insert,ba.insert))x.retain(fa,a.attributes.diff(ea.attributes,ba.attributes));else x.push(ba)["delete"](fa)}ja-=fa}});return x.chop()};da.prototype.eachLine=function(e,f){f=f||"\n";for(var n=a.iterator(this.ops),x=new da,ca=0;n.hasNext();){if("insert"!==n.peekType())return;var w=n.peek(),aa=a.length(w)-n.peekLength();w="string"===typeof w.insert?w.insert.indexOf(f,aa)-aa:-1;if(0>w)x.push(n.next());else if(0<w)x.push(n.next(w));else{if(!1===e(x,n.next(1).attributes||
{},ca))return;ca+=1;x=new da}}0<x.length()&&e(x,{},ca)};da.prototype.transform=function(e,f){f=!!f;if("number"===typeof e)return this.transformPosition(e,f);var n=a.iterator(this.ops);e=a.iterator(e.ops);for(var x=new da;n.hasNext()||e.hasNext();)if("insert"!==n.peekType()||!f&&"insert"===e.peekType())if("insert"===e.peekType())x.push(e.next());else{var ca=Math.min(n.peekLength(),e.peekLength()),w=n.next(ca),aa=e.next(ca);w["delete"]||(aa["delete"]?x.push(aa):x.retain(ca,a.attributes.transform(w.attributes,
aa.attributes,f)))}else x.retain(a.length(n.next()));return x.chop()};da.prototype.transformPosition=function(e,f){f=!!f;for(var n=a.iterator(this.ops),x=0;n.hasNext()&&x<=e;){var ca=n.peekLength(),w=n.peekType();n.next();"delete"===w?e-=Math.min(ca,e-x):("insert"===w&&(x<e||!f)&&(e+=ca),x+=ca)}return e};ka.exports=da},function(ka){function la(e,f){if("__proto__"===f){if(!r.call(e,f))return;if(b)return b(e,f).value}return e[f]}function ha(e,f){a&&"__proto__"===f.name?a(e,f.name,{enumerable:!0,configurable:!0,
value:f.newValue,writable:!0}):e[f.name]=f.newValue}function da(e){if(!e||"[object Object]"!==h.call(e))return!1;var f=r.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!f&&!n)return!1;for(var x in e);return"undefined"===typeof x||r.call(e,x)}function y(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===h.call(e)}var r=Object.prototype.hasOwnProperty,h=Object.prototype.toString,a=Object.defineProperty,
b=Object.getOwnPropertyDescriptor;ka.exports=function f(){var n,x,ca=arguments[0],w=1,aa=arguments.length,ja=!1;"boolean"===typeof ca&&(ja=ca,ca=arguments[1]||{},w=2);if(null==ca||"object"!==typeof ca&&"function"!==typeof ca)ca={};for(;w<aa;++w){var fa=arguments[w];if(null!=fa)for(n in fa){var ea=la(ca,n);var ba=la(fa,n);ca!==ba&&(ja&&ba&&(da(ba)||(x=y(ba)))?(x?(x=!1,ea=ea&&y(ea)?ea:[]):ea=ea&&da(ea)?ea:{},ha(ca,{name:n,newValue:f(ja,ea,ba)})):"undefined"!==typeof ba&&ha(ca,{name:n,newValue:ba}))}}return ca}},
function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!(ja instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?ja:fa}function h(ja,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=
Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}function a(ja){var fa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(null==ja)return fa;"function"===typeof ja.formats&&(fa=(0,f.default)(fa,ja.formats()));return null==ja.parent||"scroll"==ja.parent.blotName||ja.parent.statics.scope!==ja.statics.scope?fa:a(ja.parent,fa)}Object.defineProperty(la,"__esModule",{value:!0});
la.default=la.BlockEmbed=la.bubbleFormats=void 0;var b=function(){function ja(fa,ea){for(var ba=0;ba<ea.length;ba++){var ma=ea[ba];ma.enumerable=ma.enumerable||!1;ma.configurable=!0;"value"in ma&&(ma.writable=!0);Object.defineProperty(fa,ma.key,ma)}}return function(fa,ea,ba){ea&&ja(fa.prototype,ea);ba&&ja(fa,ba);return fa}}(),e=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,
ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}};ka=ha(3);var f=da(ka);ka=ha(2);var n=da(ka);ka=ha(0);var x=da(ka);ka=ha(16);var ca=da(ka);ka=ha(6);ka=da(ka);ha=ha(7);ha=da(ha);var w=function(fa){function ea(){y(this,ea);return r(this,(ea.__proto__||Object.getPrototypeOf(ea)).apply(this,arguments))}h(ea,fa);b(ea,[{key:"attach",value:function(){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"attach",this).call(this);this.attributes=new x.default.Attributor.Store(this.domNode)}},
{key:"delta",value:function(){return(new n.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(ba,ma){ba=x.default.query(ba,x.default.Scope.BLOCK_ATTRIBUTE);null!=ba&&this.attributes.attribute(ba,ma)}},{key:"formatAt",value:function(ba,ma,ta,na){this.format(ta,na)}},{key:"insertAt",value:function(ba,ma,ta){"string"===typeof ma&&ma.endsWith("\n")?(ta=x.default.create(aa.blotName),this.parent.insertBefore(ta,0===ba?this:this.next),ta.insertAt(0,
ma.slice(0,-1))):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta)}}]);return ea}(x.default.Embed);w.scope=x.default.Scope.BLOCK_BLOT;var aa=function(fa){function ea(ba){y(this,ea);ba=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba));ba.cache={};return ba}h(ea,fa);b(ea,[{key:"delta",value:function(){null==this.cache.delta&&(this.cache.delta=this.descendants(x.default.Leaf).reduce(function(ba,ma){return 0===ma.length()?ba:ba.insert(ma.value(),
a(ma))},new n.default).insert("\n",a(this)));return this.cache.delta}},{key:"deleteAt",value:function(ba,ma){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ba,ma);this.cache={}}},{key:"formatAt",value:function(ba,ma,ta,na){0>=ma||(x.default.query(ta,x.default.Scope.BLOCK)?ba+ma===this.length()&&this.format(ta,na):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ba,Math.min(ma,this.length()-ba-1),ta,na),this.cache={})}},
{key:"insertAt",value:function(ba,ma,ta){if(null!=ta)return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta);if(0!==ma.length){ma=ma.split("\n");ta=ma.shift();0<ta.length&&(ba<this.length()-1||null==this.children.tail?e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,Math.min(ba,this.length()-1),ta):this.children.tail.insertAt(this.children.tail.length(),ta),this.cache={});var na=this;ma.reduce(function(oa,pa){na=
na.split(oa,!0);na.insertAt(0,pa);return pa.length},ba+ta.length)}}},{key:"insertBefore",value:function(ba,ma){var ta=this.children.head;e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ba,ma);ta instanceof ca.default&&ta.remove();this.cache={}}},{key:"length",value:function(){null==this.cache.length&&(this.cache.length=e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"length",this).call(this)+1);return this.cache.length}},{key:"moveChildren",
value:function(ba,ma){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"moveChildren",this).call(this,ba,ma);this.cache={}}},{key:"optimize",value:function(ba){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ba);this.cache={}}},{key:"path",value:function(ba){return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ba,!0)}},{key:"removeChild",value:function(ba){e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
"removeChild",this).call(this,ba);this.cache={}}},{key:"split",value:function(ba){var ma=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1;if(ma&&(0===ba||ba>=this.length()-1)){ma=this.clone();if(0===ba)return this.parent.insertBefore(ma,this),this;this.parent.insertBefore(ma,this.next);return ma}ma=e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"split",this).call(this,ba,ma);this.cache={};return ma}}]);return ea}(x.default.Block);aa.blotName="block";aa.tagName="P";aa.defaultChild=
"break";aa.allowedChildren=[ka.default,x.default.Embed,ha.default];la.bubbleFormats=a;la.BlockEmbed=w;la.default=aa},function(ka,la,ha){function da(pa){return pa&&pa.__esModule?pa:{default:pa}}function y(pa,ua,va){ua in pa?Object.defineProperty(pa,ua,{value:va,enumerable:!0,configurable:!0,writable:!0}):pa[ua]=va;return pa}function r(pa,ua){ua=(0,ba.default)(!0,{container:pa,modules:{clipboard:!0,keyboard:!0,history:!0}},ua);if(ua.theme&&ua.theme!==oa.DEFAULTS.theme){if(ua.theme=oa.import("themes/"+
ua.theme),null==ua.theme)throw Error("Invalid theme "+ua.theme+". Did you register it?");}else ua.theme=ta.default;pa=(0,ba.default)(!0,{},ua.theme.DEFAULTS);[pa,ua].forEach(function(ra){ra.modules=ra.modules||{};Object.keys(ra.modules).forEach(function(xa){!0===ra.modules[xa]&&(ra.modules[xa]={})})});var va=Object.keys(pa.modules).concat(Object.keys(ua.modules)).reduce(function(ra,xa){var Aa=oa.import("modules/"+xa);null==Aa?na.error("Cannot load "+xa+" module. Are you sure you registered it?"):
ra[xa]=Aa.DEFAULTS||{};return ra},{});null!=ua.modules&&ua.modules.toolbar&&ua.modules.toolbar.constructor!==Object&&(ua.modules.toolbar={container:ua.modules.toolbar});ua=(0,ba.default)(!0,{},oa.DEFAULTS,{modules:va},pa,ua);["bounds","container","scrollingContainer"].forEach(function(ra){"string"===typeof ua[ra]&&(ua[ra]=document.querySelector(ua[ra]))});ua.modules=Object.keys(ua.modules).reduce(function(ra,xa){ua.modules[xa]&&(ra[xa]=ua.modules[xa]);return ra},{});return ua}function h(pa,ua,va,
ra){if(this.options.strict&&!this.isEnabled()&&ua===w.default.sources.USER)return new x.default;var xa=null==va?null:this.getSelection(),Aa=this.editor.delta;pa=pa();null!=xa&&(!0===va&&(va=xa.index),null==ra?xa=b(xa,pa,ua):0!==ra&&(xa=b(xa,va,ra,ua)),this.setSelection(xa,w.default.sources.SILENT));if(0<pa.length()){var Ga;va=[w.default.events.TEXT_CHANGE,pa,Aa,ua];(Ga=this.emitter).emit.apply(Ga,[w.default.events.EDITOR_CHANGE].concat(va));if(ua!==w.default.sources.SILENT){var Ka;(Ka=this.emitter).emit.apply(Ka,
va)}}return pa}function a(pa,ua,va,ra,xa){var Aa={};"number"===typeof pa.index&&"number"===typeof pa.length?("number"!==typeof ua&&(xa=ra,ra=va,va=ua),ua=pa.length,pa=pa.index):"number"!==typeof ua&&(xa=ra,ra=va,va=ua,ua=0);"object"===("undefined"===typeof va?"undefined":e(va))?(Aa=va,xa=ra):"string"===typeof va&&(null!=ra?Aa[va]=ra:xa=va);xa=xa||w.default.sources.API;return[pa,ua,Aa,xa]}function b(pa,ua,va,ra){if(null==pa)return null;var xa=void 0,Aa=void 0;ua instanceof x.default?(xa=[pa.index,
pa.index+pa.length].map(function(Ga){return ua.transformPosition(Ga,ra!==w.default.sources.USER)}),pa=f(xa,2),xa=pa[0],Aa=pa[1]):(xa=[pa.index,pa.index+pa.length].map(function(Ga){return Ga<ua||Ga===ua&&ra===w.default.sources.USER?Ga:0<=va?Ga+va:Math.max(ua,Ga+va)}),pa=f(xa,2),xa=pa[0],Aa=pa[1]);return new fa.Range(xa,Aa-xa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.overload=la.expandConfig=void 0;var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(pa){return typeof pa}:
function(pa){return pa&&"function"===typeof Symbol&&pa.constructor===Symbol&&pa!==Symbol.prototype?"symbol":typeof pa},f=function(){return function(pa,ua){if(Array.isArray(pa))return pa;if(Symbol.iterator in Object(pa)){var va=[],ra=!0,xa=!1,Aa=void 0;try{for(var Ga=pa[Symbol.iterator](),Ka;!(ra=(Ka=Ga.next()).done)&&(va.push(Ka.value),!ua||va.length!==ua);ra=!0);}catch(Da){xa=!0,Aa=Da}finally{try{if(!ra&&Ga["return"])Ga["return"]()}finally{if(xa)throw Aa;}}return va}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),n=function(){function pa(ua,va){for(var ra=0;ra<va.length;ra++){var xa=va[ra];xa.enumerable=xa.enumerable||!1;xa.configurable=!0;"value"in xa&&(xa.writable=!0);Object.defineProperty(ua,xa.key,xa)}}return function(ua,va,ra){va&&pa(ua.prototype,va);ra&&pa(ua,ra);return ua}}();ha(50);ka=ha(2);var x=da(ka);ka=ha(14);var ca=da(ka);ka=ha(8);var w=da(ka);ka=ha(9);ka=da(ka);var aa=ha(0),ja=da(aa),fa=ha(15),ea=da(fa);aa=ha(3);var ba=da(aa);aa=ha(10);var ma=da(aa);ha=ha(34);var ta=da(ha),na=(0,ma.default)("quill"),
oa=function(){function pa(ua){var va=this,ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof pa))throw new TypeError("Cannot call a class as a function");this.options=r(ua,ra);this.container=this.options.container;if(null==this.container)return na.error("Invalid Quill container",ua);this.options.debug&&pa.debug(this.options.debug);ra=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";this.container.__quill=this;this.root=
this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.root.setAttribute("data-gramm",!1);this.scrollingContainer=this.options.scrollingContainer||this.root;this.emitter=new w.default;this.scroll=ja.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats});this.editor=new ca.default(this.scroll);this.selection=new ea.default(this.scroll,this.emitter);this.theme=new this.options.theme(this,this.options);this.keyboard=this.theme.addModule("keyboard");this.clipboard=
this.theme.addModule("clipboard");this.history=this.theme.addModule("history");this.theme.init();this.emitter.on(w.default.events.EDITOR_CHANGE,function(xa){xa===w.default.events.TEXT_CHANGE&&va.root.classList.toggle("ql-blank",va.editor.isBlank())});this.emitter.on(w.default.events.SCROLL_UPDATE,function(xa,Aa){var Ga=va.selection.lastRange,Ka=Ga&&0===Ga.length?Ga.index:void 0;h.call(va,function(){return va.editor.update(null,Aa,Ka)},xa)});ra=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+
ra+"<p><br></p></div>");this.setContents(ra);this.history.clear();this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder);this.options.readOnly&&this.disable()}n(pa,null,[{key:"debug",value:function(ua){!0===ua&&(ua="log");ma.default.level(ua)}},{key:"find",value:function(ua){return ua.__quill||ja.default.find(ua)}},{key:"import",value:function(ua){null==this.imports[ua]&&na.error("Cannot import "+ua+". Are you sure it was registered?");return this.imports[ua]}},
{key:"register",value:function(ua,va){var ra=this,xa=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;"string"!==typeof ua?(xa=ua.attrName||ua.blotName,"string"===typeof xa?this.register("formats/"+xa,ua,va):Object.keys(ua).forEach(function(Aa){ra.register(Aa,ua[Aa],va)})):(null==this.imports[ua]||xa||na.warn("Overwriting "+ua+" with",va),this.imports[ua]=va,(ua.startsWith("blots/")||ua.startsWith("formats/"))&&"abstract"!==va.blotName?ja.default.register(va):ua.startsWith("modules")&&"function"===
typeof va.register&&va.register())}}]);n(pa,[{key:"addContainer",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof ua){var ra=ua;ua=document.createElement("div");ua.classList.add(ra)}this.container.insertBefore(ua,va);return ua}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(ua,va,ra){var xa=this;ra=a(ua,va,ra);ra=f(ra,4);ua=ra[0];va=ra[1];ra=ra[3];return h.call(this,function(){return xa.editor.deleteText(ua,
va)},ra,ua,-1*va)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;this.scroll.enable(ua);this.container.classList.toggle("ql-disabled",!ua)}},{key:"focus",value:function(){var ua=this.scrollingContainer.scrollTop;this.selection.focus();this.scrollingContainer.scrollTop=ua;this.scrollIntoView()}},{key:"format",value:function(ua,va){var ra=this;return h.call(this,function(){var xa=ra.getSelection(!0),
Aa=new x.default;if(null==xa)return Aa;if(ja.default.query(ua,ja.default.Scope.BLOCK))Aa=ra.editor.formatLine(xa.index,xa.length,y({},ua,va));else{if(0===xa.length)return ra.selection.format(ua,va),Aa;Aa=ra.editor.formatText(xa.index,xa.length,y({},ua,va))}ra.setSelection(xa,w.default.sources.SILENT);return Aa},2<arguments.length&&void 0!==arguments[2]?arguments[2]:w.default.sources.API)}},{key:"formatLine",value:function(ua,va,ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,va,ra,xa,Aa);ra=f(ra,4);ua=ra[0];
va=ra[1];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.formatLine(ua,va,Ka)},Aa,ua,0)}},{key:"formatText",value:function(ua,va,ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,va,ra,xa,Aa);ra=f(ra,4);ua=ra[0];va=ra[1];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.formatText(ua,va,Ka)},Aa,ua,0)}},{key:"getBounds",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;va="number"===typeof ua?this.selection.getBounds(ua,va):this.selection.getBounds(ua.index,
ua.length);var ra=this.container.getBoundingClientRect();return{bottom:va.bottom-ra.top,height:va.height,left:va.left-ra.left,right:va.right-ra.left,top:va.top-ra.top,width:va.width}}},{key:"getContents",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=a(ua,va);va=f(ua,2);ua=va[0];va=va[1];return this.editor.getContents(ua,va)}},{key:"getFormat",value:function(){var ua=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:this.getSelection(!0),va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof ua?this.editor.getFormat(ua,va):this.editor.getFormat(ua.index,ua.length)}},{key:"getIndex",value:function(ua){return ua.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(ua){return this.scroll.leaf(ua)}},{key:"getLine",value:function(ua){return this.scroll.line(ua)}},{key:"getLines",value:function(){var ua=
0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof ua?this.scroll.lines(ua.index,ua.length):this.scroll.lines(ua,va)}},{key:"getModule",value:function(ua){return this.theme.modules[ua]}},{key:"getSelection",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&this.focus();this.update();return this.selection.getRange()[0]}},{key:"getText",value:function(){var ua=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:0,va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.getLength()-ua;ua=a(ua,va);va=f(ua,2);ua=va[0];va=va[1];return this.editor.getText(ua,va)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(ua,va,ra){var xa=this;return h.call(this,function(){return xa.editor.insertEmbed(ua,va,ra)},3<arguments.length&&void 0!==arguments[3]?arguments[3]:pa.sources.API,ua)}},{key:"insertText",value:function(ua,va,
ra,xa,Aa){var Ga=this,Ka=void 0;ra=a(ua,0,ra,xa,Aa);ra=f(ra,4);ua=ra[0];Ka=ra[2];Aa=ra[3];return h.call(this,function(){return Ga.editor.insertText(ua,va,Ka)},Aa,ua,va.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,
arguments)}},{key:"pasteHTML",value:function(ua,va,ra){this.clipboard.dangerouslyPasteHTML(ua,va,ra)}},{key:"removeFormat",value:function(ua,va,ra){var xa=this;ra=a(ua,va,ra);ra=f(ra,4);ua=ra[0];va=ra[1];ra=ra[3];return h.call(this,function(){return xa.editor.removeFormat(ua,va)},ra,ua)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(ua){var va=this;return h.call(this,function(){ua=new x.default(ua);var ra=va.getLength();
ra=va.editor.deleteText(0,ra);var xa=va.editor.applyDelta(ua),Aa=xa.ops[xa.ops.length-1];null!=Aa&&"string"===typeof Aa.insert&&"\n"===Aa.insert[Aa.insert.length-1]&&(va.editor.deleteText(va.getLength()-1,1),xa.delete(1));return ra.compose(xa)},1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API)}},{key:"setSelection",value:function(ua,va,ra){null==ua?this.selection.setRange(null,va||pa.sources.API):(ua=a(ua,va,ra),ra=f(ua,4),ua=ra[0],va=ra[1],ra=ra[3],this.selection.setRange(new fa.Range(ua,
va),ra),ra!==w.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}},{key:"setText",value:function(ua){var va=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API,ra=(new x.default).insert(ua);return this.setContents(ra,va)}},{key:"update",value:function(){var ua=0<arguments.length&&void 0!==arguments[0]?arguments[0]:w.default.sources.USER,va=this.scroll.update(ua);this.selection.update(ua);return va}},{key:"updateContents",value:function(ua){var va=
this,ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.default.sources.API;return h.call(this,function(){ua=new x.default(ua);return va.editor.applyDelta(ua,ra)},ra,!0)}}]);return pa}();oa.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"};oa.events=w.default.events;oa.sources=w.default.sources;oa.version="1.3.7";oa.imports={delta:x.default,parchment:ja.default,"core/module":ka.default,"core/theme":ta.default};la.expandConfig=
r;la.overload=a;la.default=oa},function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=(ka=ha(7))&&ka.__esModule?ka:{default:ka};var h=(ha=ha(0))&&ha.__esModule?ha:{default:ha};
ha=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);y(e,[{key:"formatAt",value:function(f,n,x,ca){0>e.compare(this.statics.blotName,x)&&h.default.query(x,h.default.Scope.BLOT)?(f=this.isolate(f,n),ca&&f.wrap(x,ca)):
r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,f,n,x,ca)}},{key:"optimize",value:function(f){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,f);this.parent instanceof e&&0<e.compare(this.statics.blotName,this.parent.statics.blotName)&&(f=this.parent.isolate(this.offset(),this.length()),this.moveChildren(f),f.wrap(this))}}],[{key:"compare",value:function(f,n){var x=e.order.indexOf(f),ca=e.order.indexOf(n);return 0<=x||0<=
ca?x-ca:f===n?0:f<n?-1:1}}]);return e}(h.default.Inline);ha.allowedChildren=[ha,h.default.Embed,ka.default];ha.order="cursor inline underline strike italic bold script link code".split(" ");la.default=ha},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,
r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(0)).default.Text);la.default=ka},
function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=
!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=(ka=ha(54))&&ka.__esModule?ka:{default:ka};ha=ha(10);var h=(0,(ha&&ha.__esModule?ha:{default:ha}).default)("quill:events");
["selectionchange","mousedown","mouseup","click"].forEach(function(b){document.addEventListener(b,function(){for(var e=arguments.length,f=Array(e),n=0;n<e;n++)f[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(x){if(x.__quill&&x.__quill.emitter){var ca;(ca=x.__quill.emitter).handleDOM.apply(ca,f)}})})});ha=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).call(this);
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.listeners={};f.on("error",h.error);return f}da(e,b);y(e,[{key:"emit",value:function(){h.log.apply(h,arguments);r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var n=arguments.length,x=Array(1<n?n-1:0),ca=1;ca<n;ca++)x[ca-1]=arguments[ca];(this.listeners[f.type]||
[]).forEach(function(w){var aa=w.node;w=w.handler;(f.target===aa||aa.contains(f.target))&&w.apply(void 0,[f].concat(x))})}},{key:"listenDOM",value:function(f,n,x){this.listeners[f]||(this.listeners[f]=[]);this.listeners[f].push({node:n,handler:x})}}]);return e}(ka.default);ha.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"};ha.sources={API:"api",
SILENT:"silent",USER:"user"};la.default=ha},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});ka=function y(da){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.quill=da;this.options=r};ka.DEFAULTS={};la.default=ka},function(ka,la){function ha(h){if(y.indexOf(h)<=y.indexOf(r)){for(var a,b=arguments.length,e=Array(1<b?b-1:0),f=1;f<b;f++)e[f-1]=arguments[f];(a=console)[h].apply(a,e)}}
function da(h){return y.reduce(function(a,b){a[b]=ha.bind(console,b,h);return a},{})}Object.defineProperty(la,"__esModule",{value:!0});var y=["error","warn","log","info"],r="warn";ha.level=da.level=function(h){r=h};la.default=da},function(ka,la,ha){function da(e){return!e||"object"!==typeof e||"number"!==typeof e.length||"function"!==typeof e.copy||"function"!==typeof e.slice||0<e.length&&"number"!==typeof e[0]?!1:!0}function y(e,f,n){var x;if(null===e||void 0===e||null===f||void 0===f||e.prototype!==
f.prototype)return!1;if(a(e)){if(!a(f))return!1;e=r.call(e);f=r.call(f);return b(e,f,n)}if(da(e)){if(!da(f)||e.length!==f.length)return!1;for(x=0;x<e.length;x++)if(e[x]!==f[x])return!1;return!0}try{var ca=h(e);var w=h(f)}catch(aa){return!1}if(ca.length!=w.length)return!1;ca.sort();w.sort();for(x=ca.length-1;0<=x;x--)if(ca[x]!=w[x])return!1;for(x=ca.length-1;0<=x;x--)if(w=ca[x],!b(e[w],f[w],n))return!1;return typeof e===typeof f}var r=Array.prototype.slice,h=ha(52),a=ha(53),b=ka.exports=function(e,
f,n){n||(n={});return e===f?!0:e instanceof Date&&f instanceof Date?e.getTime()===f.getTime():!e||!f||"object"!=typeof e&&"object"!=typeof f?n.strict?e===f:e==f:y(e,f,n)}},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da=ha(1);ka=function(){function y(r,h,a){void 0===a&&(a={});this.attrName=r;this.keyName=h;r=da.Scope.TYPE&da.Scope.ATTRIBUTE;this.scope=null!=a.scope?a.scope&da.Scope.LEVEL|r:da.Scope.ATTRIBUTE;null!=a.whitelist&&(this.whitelist=a.whitelist)}y.keys=function(r){return[].map.call(r.attributes,
function(h){return h.name})};y.prototype.add=function(r,h){if(!this.canAdd(r,h))return!1;r.setAttribute(this.keyName,h);return!0};y.prototype.canAdd=function(r,h){return null==da.query(r,da.Scope.BLOT&(this.scope|da.Scope.TYPE))?!1:null==this.whitelist?!0:"string"===typeof h?-1<this.whitelist.indexOf(h.replace(/["']/g,"")):-1<this.whitelist.indexOf(h)};y.prototype.remove=function(r){r.removeAttribute(this.keyName)};y.prototype.value=function(r){var h=r.getAttribute(this.keyName);return this.canAdd(r,
h)&&h?h:""};return y}();la.default=ka},function(ka,la,ha){function da(w){return w&&w.__esModule?w:{default:w}}function y(w,aa){if(!(w instanceof aa))throw new TypeError("Cannot call a class as a function");}function r(w,aa){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!aa||"object"!==typeof aa&&"function"!==typeof aa?w:aa}function h(w,aa){if("function"!==typeof aa&&null!==aa)throw new TypeError("Super expression must either be null or a function, not "+
typeof aa);w.prototype=Object.create(aa&&aa.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}});aa&&(Object.setPrototypeOf?Object.setPrototypeOf(w,aa):w.__proto__=aa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.Code=void 0;var a=function(){return function(w,aa){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w)){var ja=[],fa=!0,ea=!1,ba=void 0;try{for(var ma=w[Symbol.iterator](),ta;!(fa=(ta=ma.next()).done)&&(ja.push(ta.value),!aa||ja.length!==
aa);fa=!0);}catch(na){ea=!0,ba=na}finally{try{if(!fa&&ma["return"])ma["return"]()}finally{if(ea)throw ba;}}return ja}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function w(aa,ja){for(var fa=0;fa<ja.length;fa++){var ea=ja[fa];ea.enumerable=ea.enumerable||!1;ea.configurable=!0;"value"in ea&&(ea.writable=!0);Object.defineProperty(aa,ea.key,ea)}}return function(aa,ja,fa){ja&&w(aa.prototype,ja);fa&&w(aa,fa);return aa}}(),e=function ea(aa,ja,fa){null===
aa&&(aa=Function.prototype);var ba=Object.getOwnPropertyDescriptor(aa,ja);if(void 0===ba){if(aa=Object.getPrototypeOf(aa),null!==aa)return ea(aa,ja,fa)}else{if("value"in ba)return ba.value;ja=ba.get;return void 0===ja?void 0:ja.call(fa)}};ka=ha(2);var f=da(ka);ka=ha(0);var n=da(ka);ka=ha(4);ka=da(ka);var x=ha(6);x=da(x);ha=ha(7);var ca=da(ha);ha=function(aa){function ja(){y(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}h(ja,aa);return ja}(x.default);ha.blotName=
"code";ha.tagName="CODE";ka=function(aa){function ja(){y(this,ja);return r(this,(ja.__proto__||Object.getPrototypeOf(ja)).apply(this,arguments))}h(ja,aa);b(ja,[{key:"delta",value:function(){var fa=this,ea=this.domNode.textContent;ea.endsWith("\n")&&(ea=ea.slice(0,-1));return ea.split("\n").reduce(function(ba,ma){return ba.insert(ma).insert("\n",fa.formats())},new f.default)}},{key:"format",value:function(fa,ea){if(fa!==this.statics.blotName||!ea){var ba=this.descendant(ca.default,this.length()-1);
ba=a(ba,1)[0];null!=ba&&ba.deleteAt(ba.length()-1,1);e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"format",this).call(this,fa,ea)}}},{key:"formatAt",value:function(fa,ea,ba,ma){if(0!==ea&&null!=n.default.query(ba,n.default.Scope.BLOCK)&&(ba!==this.statics.blotName||ma!==this.statics.formats(this.domNode))){var ta=this.newlineIndex(fa);if(!(0>ta||ta>=fa+ea)){var na=this.newlineIndex(fa,!0)+1;ta=ta-na+1;var oa=this.isolate(na,ta),pa=oa.next;oa.format(ba,ma);pa instanceof ja&&pa.formatAt(0,
fa-na+ea-ta,ba,ma)}}}},{key:"insertAt",value:function(fa,ea,ba){null==ba&&(fa=this.descendant(ca.default,fa),fa=a(fa,2),fa[0].insertAt(fa[1],ea))}},{key:"length",value:function(){var fa=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?fa:fa+1}},{key:"newlineIndex",value:function(fa){if(1<arguments.length&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,fa).lastIndexOf("\n");var ea=this.domNode.textContent.slice(fa).indexOf("\n");return-1<ea?
fa+ea:-1}},{key:"optimize",value:function(fa){this.domNode.textContent.endsWith("\n")||this.appendChild(n.default.create("text","\n"));e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),"optimize",this).call(this,fa);var ea=this.next;null!=ea&&ea.prev===this&&ea.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===ea.statics.formats(ea.domNode)&&(ea.optimize(fa),ea.moveChildren(this),ea.remove())}},{key:"replace",value:function(fa){e(ja.prototype.__proto__||Object.getPrototypeOf(ja.prototype),
"replace",this).call(this,fa);[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(ea){var ba=n.default.find(ea);null==ba?ea.parentNode.removeChild(ea):ba instanceof n.default.Embed?ba.remove():ba.unwrap()})}}],[{key:"create",value:function(fa){fa=e(ja.__proto__||Object.getPrototypeOf(ja),"create",this).call(this,fa);fa.setAttribute("spellcheck",!1);return fa}},{key:"formats",value:function(){return!0}}]);return ja}(ka.default);ka.blotName="code-block";ka.tagName="PRE";ka.TAB="  ";la.Code=
ha;la.default=ka},function(ka,la,ha){function da(ta){return ta&&ta.__esModule?ta:{default:ta}}function y(ta,na){return Object.keys(na).reduce(function(oa,pa){if(null==ta[pa])return oa;na[pa]===ta[pa]?oa[pa]=na[pa]:Array.isArray(na[pa])?0>na[pa].indexOf(ta[pa])&&(oa[pa]=na[pa].concat([ta[pa]])):oa[pa]=[na[pa],ta[pa]];return oa},{})}function r(ta){return ta.reduce(function(na,oa){if(1===oa.insert){var pa=(0,fa.default)(oa.attributes);delete pa.image;return na.insert({image:oa.attributes.image},pa)}null==
oa.attributes||!0!==oa.attributes.list&&!0!==oa.attributes.bullet||(oa=(0,fa.default)(oa),oa.attributes.list?oa.attributes.list="ordered":(oa.attributes.list="bullet",delete oa.attributes.bullet));return"string"===typeof oa.insert?(pa=oa.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),na.insert(pa,oa.attributes)):na.push(oa)},new e.default)}Object.defineProperty(la,"__esModule",{value:!0});var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(ta){return typeof ta}:function(ta){return ta&&
"function"===typeof Symbol&&ta.constructor===Symbol&&ta!==Symbol.prototype?"symbol":typeof ta},a=function(){return function(ta,na){if(Array.isArray(ta))return ta;if(Symbol.iterator in Object(ta)){var oa=[],pa=!0,ua=!1,va=void 0;try{for(var ra=ta[Symbol.iterator](),xa;!(pa=(xa=ra.next()).done)&&(oa.push(xa.value),!na||oa.length!==na);pa=!0);}catch(Aa){ua=!0,va=Aa}finally{try{if(!pa&&ra["return"])ra["return"]()}finally{if(ua)throw va;}}return oa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),b=function(){function ta(na,oa){for(var pa=0;pa<oa.length;pa++){var ua=oa[pa];ua.enumerable=ua.enumerable||!1;ua.configurable=!0;"value"in ua&&(ua.writable=!0);Object.defineProperty(na,ua.key,ua)}}return function(na,oa,pa){oa&&ta(na.prototype,oa);pa&&ta(na,pa);return na}}();ka=ha(2);var e=da(ka);ka=ha(20);var f=da(ka);ka=ha(0);var n=da(ka);ka=ha(13);var x=da(ka);ka=ha(24);var ca=da(ka),w=ha(4),aa=da(w);ka=ha(16);var ja=da(ka);ka=ha(21);var fa=da(ka);ka=ha(11);var ea=da(ka);ha=ha(3);var ba=da(ha),
ma=/^[ -~]*$/;ha=function(){function ta(na){if(!(this instanceof ta))throw new TypeError("Cannot call a class as a function");this.scroll=na;this.delta=this.getDelta()}b(ta,[{key:"applyDelta",value:function(na){var oa=this,pa=!1;this.scroll.update();var ua=this.scroll.length();this.scroll.batchStart();na=r(na);na.reduce(function(va,ra){var xa=ra.retain||ra.delete||ra.insert.length||1,Aa=ra.attributes||{};if(null!=ra.insert){if("string"===typeof ra.insert){ra=ra.insert;ra.endsWith("\n")&&pa&&(pa=!1,
ra=ra.slice(0,-1));va>=ua&&!ra.endsWith("\n")&&(pa=!0);oa.scroll.insertAt(va,ra);ra=oa.scroll.line(va);ra=a(ra,2);var Ga=ra[0],Ka=ra[1];ra=(0,ba.default)({},(0,w.bubbleFormats)(Ga));Ga instanceof aa.default&&(Ga=Ga.descendant(n.default.Leaf,Ka),Ga=a(Ga,1)[0],ra=(0,ba.default)(ra,(0,w.bubbleFormats)(Ga)));Aa=f.default.attributes.diff(ra,Aa)||{}}else if("object"===h(ra.insert)){Ga=Object.keys(ra.insert)[0];if(null==Ga)return va;oa.scroll.insertAt(va,Ga,ra.insert[Ga])}ua+=xa}Object.keys(Aa).forEach(function(Da){oa.scroll.formatAt(va,
xa,Da,Aa[Da])});return va+xa},0);na.reduce(function(va,ra){return"number"===typeof ra.delete?(oa.scroll.deleteAt(va,ra.delete),va):va+(ra.retain||ra.insert.length||1)},0);this.scroll.batchEnd();return this.update(na)}},{key:"deleteText",value:function(na,oa){this.scroll.deleteAt(na,oa);return this.update((new e.default).retain(na).delete(oa))}},{key:"formatLine",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update();Object.keys(ua).forEach(function(va){if(null==
pa.scroll.whitelist||pa.scroll.whitelist[va]){var ra=pa.scroll.lines(na,Math.max(oa,1)),xa=oa;ra.forEach(function(Aa){var Ga=Aa.length();if(Aa instanceof x.default){var Ka=na-Aa.offset(pa.scroll),Da=Aa.newlineIndex(Ka+xa)-Ka+1;Aa.formatAt(Ka,Da,va,ua[va])}else Aa.format(va,ua[va]);xa-=Ga})}});this.scroll.optimize();return this.update((new e.default).retain(na).retain(oa,(0,fa.default)(ua)))}},{key:"formatText",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
{};Object.keys(ua).forEach(function(va){pa.scroll.formatAt(na,oa,va,ua[va])});return this.update((new e.default).retain(na).retain(oa,(0,fa.default)(ua)))}},{key:"getContents",value:function(na,oa){return this.delta.slice(na,na+oa)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(na,oa){return na.concat(oa.delta())},new e.default)}},{key:"getFormat",value:function(na){var oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,pa=[],ua=[];0===oa?this.scroll.path(na).forEach(function(va){va=
a(va,1)[0];va instanceof aa.default?pa.push(va):va instanceof n.default.Leaf&&ua.push(va)}):(pa=this.scroll.lines(na,oa),ua=this.scroll.descendants(n.default.Leaf,na,oa));oa=[pa,ua].map(function(va){if(0===va.length)return{};for(var ra=(0,w.bubbleFormats)(va.shift());0<Object.keys(ra).length;){var xa=va.shift();if(null==xa)break;ra=y((0,w.bubbleFormats)(xa),ra)}return ra});return ba.default.apply(ba.default,oa)}},{key:"getText",value:function(na,oa){return this.getContents(na,oa).filter(function(pa){return"string"===
typeof pa.insert}).map(function(pa){return pa.insert}).join("")}},{key:"insertEmbed",value:function(na,oa,pa){this.scroll.insertAt(na,oa,pa);var ua=this.update;na=(new e.default).retain(na);var va=na.insert,ra={};oa in ra?Object.defineProperty(ra,oa,{value:pa,enumerable:!0,configurable:!0,writable:!0}):ra[oa]=pa;return ua.call(this,va.call(na,ra))}},{key:"insertText",value:function(na,oa){var pa=this,ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};oa=oa.replace(/\r\n/g,"\n").replace(/\r/g,
"\n");this.scroll.insertAt(na,oa);Object.keys(ua).forEach(function(va){pa.scroll.formatAt(na,oa.length,va,ua[va])});return this.update((new e.default).retain(na).insert(oa,(0,fa.default)(ua)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var na=this.scroll.children.head;return na.statics.blotName!==aa.default.blotName||1<na.children.length?!1:na.children.head instanceof ja.default}},{key:"removeFormat",value:function(na,oa){var pa=
this.getText(na,oa),ua=this.scroll.line(na+oa),va=a(ua,2);ua=va[0];va=va[1];var ra=0,xa=new e.default;null!=ua&&(ra=ua instanceof x.default?ua.newlineIndex(va)-va+1:ua.length()-va,xa=ua.delta().slice(va,va+ra-1).insert("\n"));oa=this.getContents(na,oa+ra).diff((new e.default).insert(pa).concat(xa));na=(new e.default).retain(na).concat(oa);return this.applyDelta(na)}},{key:"update",value:function(na){var oa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],pa=2<arguments.length&&void 0!==arguments[2]?
arguments[2]:void 0,ua=this.delta;if(1===oa.length&&"characterData"===oa[0].type&&oa[0].target.data.match(ma)&&n.default.find(oa[0].target)){var va=n.default.find(oa[0].target),ra=(0,w.bubbleFormats)(va),xa=va.offset(this.scroll);oa=oa[0].oldValue.replace(ca.default.CONTENTS,"");oa=(new e.default).insert(oa);va=(new e.default).insert(va.value());na=(new e.default).retain(xa).concat(oa.diff(va,pa)).reduce(function(Aa,Ga){return Ga.insert?Aa.insert(Ga.insert,ra):Aa.push(Ga)},new e.default);this.delta=
ua.compose(na)}else this.delta=this.getDelta(),na&&(0,ea.default)(ua.compose(na),this.delta)||(na=ua.diff(this.delta,pa));return na}}]);return ta}();la.default=ha},function(ka,la,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function y(aa){if(Array.isArray(aa)){for(var ja=0,fa=Array(aa.length);ja<aa.length;ja++)fa[ja]=aa[ja];return fa}return Array.from(aa)}function r(aa,ja){if(!(aa instanceof ja))throw new TypeError("Cannot call a class as a function");}function h(aa,ja){try{ja.parentNode}catch(fa){return!1}ja instanceof
Text&&(ja=ja.parentNode);return aa.contains(ja)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.Range=void 0;var a=function(){return function(aa,ja){if(Array.isArray(aa))return aa;if(Symbol.iterator in Object(aa)){var fa=[],ea=!0,ba=!1,ma=void 0;try{for(var ta=aa[Symbol.iterator](),na;!(ea=(na=ta.next()).done)&&(fa.push(na.value),!ja||fa.length!==ja);ea=!0);}catch(oa){ba=!0,ma=oa}finally{try{if(!ea&&ta["return"])ta["return"]()}finally{if(ba)throw ma;}}return fa}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),b=function(){function aa(ja,fa){for(var ea=0;ea<fa.length;ea++){var ba=fa[ea];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=!0);Object.defineProperty(ja,ba.key,ba)}}return function(ja,fa,ea){fa&&aa(ja.prototype,fa);ea&&aa(ja,ea);return ja}}();ka=ha(0);var e=da(ka);ka=ha(21);var f=da(ka);ka=ha(11);var n=da(ka);ka=ha(8);var x=da(ka);ha=ha(10);var ca=(0,da(ha).default)("quill:selection"),w=function fa(ja){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
0;r(this,fa);this.index=ja;this.length=ea};ha=function(){function ja(fa,ea){var ba=this;r(this,ja);this.emitter=ea;this.scroll=fa;this.mouseDown=this.composing=!1;this.root=this.scroll.domNode;this.cursor=e.default.create("cursor",this);this.lastRange=this.savedRange=new w(0,0);this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,function(){ba.mouseDown||setTimeout(ba.update.bind(ba,x.default.sources.USER),1)});this.emitter.on(x.default.events.EDITOR_CHANGE,
function(ma,ta){ma===x.default.events.TEXT_CHANGE&&0<ta.length()&&ba.update(x.default.sources.SILENT)});this.emitter.on(x.default.events.SCROLL_BEFORE_UPDATE,function(){if(ba.hasFocus()){var ma=ba.getNativeRange();if(null!=ma&&ma.start.node!==ba.cursor.textNode)ba.emitter.once(x.default.events.SCROLL_UPDATE,function(){try{ba.setNativeRange(ma.start.node,ma.start.offset,ma.end.node,ma.end.offset)}catch(ta){}})}});this.emitter.on(x.default.events.SCROLL_OPTIMIZE,function(ma,ta){ta.range&&(ma=ta.range,
ba.setNativeRange(ma.startNode,ma.startOffset,ma.endNode,ma.endOffset))});this.update(x.default.sources.SILENT)}b(ja,[{key:"handleComposition",value:function(){var fa=this;this.root.addEventListener("compositionstart",function(){fa.composing=!0});this.root.addEventListener("compositionend",function(){fa.composing=!1;if(fa.cursor.parent){var ea=fa.cursor.restore();ea&&setTimeout(function(){fa.setNativeRange(ea.startNode,ea.startOffset,ea.endNode,ea.endOffset)},1)}})}},{key:"handleDragging",value:function(){var fa=
this;this.emitter.listenDOM("mousedown",document.body,function(){fa.mouseDown=!0});this.emitter.listenDOM("mouseup",document.body,function(){fa.mouseDown=!1;fa.update(x.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(fa,ea){if(null==this.scroll.whitelist||this.scroll.whitelist[fa]){this.scroll.update();var ba=this.getNativeRange();if(null!=ba&&ba.native.collapsed&&!e.default.query(fa,e.default.Scope.BLOCK)){if(ba.start.node!==
this.cursor.textNode){var ma=e.default.find(ba.start.node,!1);if(null==ma)return;ma instanceof e.default.Leaf?(ba=ma.split(ba.start.offset),ma.parent.insertBefore(this.cursor,ba)):ma.insertBefore(this.cursor,ba.start.node);this.cursor.attach()}this.cursor.format(fa,ea);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}}}},{key:"getBounds",value:function(fa){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,ba=this.scroll.length();
fa=Math.min(fa,ba-1);ea=Math.min(fa+ea,ba-1)-fa;ba=this.scroll.leaf(fa);var ma=a(ba,2);ba=ma[0];var ta=ma[1];if(null==ba)return null;ma=ba.position(ta,!0);ma=a(ma,2);var na=ma[0];ta=ma[1];ma=document.createRange();if(0<ea){ma.setStart(na,ta);ea=this.scroll.leaf(fa+ea);ea=a(ea,2);ba=ea[0];ta=ea[1];if(null==ba)return null;ea=ba.position(ta,!0);ea=a(ea,2);na=ea[0];ta=ea[1];ma.setEnd(na,ta);return ma.getBoundingClientRect()}ea="left";na instanceof Text?(ta<na.data.length?(ma.setStart(na,ta),ma.setEnd(na,
ta+1)):(ma.setStart(na,ta-1),ma.setEnd(na,ta),ea="right"),ba=ma.getBoundingClientRect()):(ba=ba.domNode.getBoundingClientRect(),0<ta&&(ea="right"));return{bottom:ba.top+ba.height,height:ba.height,left:ba[ea],right:ba[ea],top:ba.top,width:0}}},{key:"getNativeRange",value:function(){var fa=document.getSelection();if(null==fa||0>=fa.rangeCount)return null;fa=fa.getRangeAt(0);if(null==fa)return null;fa=this.normalizeNative(fa);ca.info("getNativeRange",fa);return fa}},{key:"getRange",value:function(){var fa=
this.getNativeRange();return null==fa?[null,null]:[this.normalizedToRange(fa),fa]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(fa){var ea=this,ba=[[fa.start.node,fa.start.offset]];fa.native.collapsed||ba.push([fa.end.node,fa.end.offset]);ba=ba.map(function(ma){var ta=a(ma,2);ma=ta[0];ta=ta[1];var na=e.default.find(ma,!0),oa=na.offset(ea.scroll);return 0===ta?oa:na instanceof e.default.Container?oa+na.length():oa+na.index(ma,
ta)});fa=Math.min(Math.max.apply(Math,y(ba)),this.scroll.length()-1);ba=Math.min.apply(Math,[fa].concat(y(ba)));return new w(ba,fa-ba)}},{key:"normalizeNative",value:function(fa){if(!h(this.root,fa.startContainer)||!fa.collapsed&&!h(this.root,fa.endContainer))return null;fa={start:{node:fa.startContainer,offset:fa.startOffset},end:{node:fa.endContainer,offset:fa.endOffset},native:fa};[fa.start,fa.end].forEach(function(ea){for(var ba=ea.node,ma=ea.offset;!(ba instanceof Text)&&0<ba.childNodes.length;)if(ba.childNodes.length>
ma)ba=ba.childNodes[ma],ma=0;else if(ba.childNodes.length===ma)ba=ba.lastChild,ma=ba instanceof Text?ba.data.length:ba.childNodes.length+1;else break;ea.node=ba;ea.offset=ma});return fa}},{key:"rangeToNative",value:function(fa){var ea=this;fa=fa.collapsed?[fa.index]:[fa.index,fa.index+fa.length];var ba=[],ma=this.scroll.length();fa.forEach(function(ta,na){ta=Math.min(ma-1,ta);ta=ea.scroll.leaf(ta);var oa=a(ta,2);ta=oa[1];na=oa[0].position(ta,0!==na);ta=a(na,2);na=ta[0];ta=ta[1];ba.push(na,ta)});2>
ba.length&&(ba=ba.concat(ba));return ba}},{key:"scrollIntoView",value:function(fa){var ea=this.lastRange;if(null!=ea){var ba=this.getBounds(ea.index,ea.length);if(null!=ba){var ma=this.scroll.length()-1,ta=this.scroll.line(Math.min(ea.index,ma)),na=ta=a(ta,1)[0];0<ea.length&&(ea=this.scroll.line(Math.min(ea.index+ea.length,ma)),na=a(ea,1)[0]);null!=ta&&null!=na&&(ea=fa.getBoundingClientRect(),ba.top<ea.top?fa.scrollTop-=ea.top-ba.top:ba.bottom>ea.bottom&&(fa.scrollTop+=ba.bottom-ea.bottom))}}}},{key:"setNativeRange",
value:function(fa,ea){var ba=2<arguments.length&&void 0!==arguments[2]?arguments[2]:fa,ma=3<arguments.length&&void 0!==arguments[3]?arguments[3]:ea,ta=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1;ca.info("setNativeRange",fa,ea,ba,ma);if(null==fa||null!=this.root.parentNode&&null!=fa.parentNode&&null!=ba.parentNode){var na=document.getSelection();if(null!=na)if(null!=fa){this.hasFocus()||this.root.focus();var oa=(this.getNativeRange()||{}).native;if(null==oa||ta||fa!==oa.startContainer||
ea!==oa.startOffset||ba!==oa.endContainer||ma!==oa.endOffset)"BR"==fa.tagName&&(ea=[].indexOf.call(fa.parentNode.childNodes,fa),fa=fa.parentNode),"BR"==ba.tagName&&(ma=[].indexOf.call(ba.parentNode.childNodes,ba),ba=ba.parentNode),ta=document.createRange(),ta.setStart(fa,ea),ta.setEnd(ba,ma),na.removeAllRanges(),na.addRange(ta)}else na.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(fa){var ea=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ba=
2<arguments.length&&void 0!==arguments[2]?arguments[2]:x.default.sources.API;"string"===typeof ea&&(ba=ea,ea=!1);ca.info("setRange",fa);if(null!=fa){var ma=this.rangeToNative(fa);this.setNativeRange.apply(this,y(ma).concat([ea]))}else this.setNativeRange(null);this.update(ba)}},{key:"update",value:function(){var fa=0<arguments.length&&void 0!==arguments[0]?arguments[0]:x.default.sources.USER,ea=this.lastRange,ba=this.getRange();ba=a(ba,2);var ma=ba[1];this.lastRange=ba[0];null!=this.lastRange&&(this.savedRange=
this.lastRange);if(!(0,n.default)(ea,this.lastRange)){var ta;!this.composing&&null!=ma&&ma.native.collapsed&&ma.start.node!==this.cursor.textNode&&this.cursor.restore();ea=[x.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(ea),fa];(ta=this.emitter).emit.apply(ta,[x.default.events.EDITOR_CHANGE].concat(ea));if(fa!==x.default.sources.SILENT){var na;(na=this.emitter).emit.apply(na,ea)}}}}]);return ja}();la.Range=w;la.default=ha},function(ka,la,ha){function da(h,a){if("function"!==
typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,
f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"insertInto",value:function(e,f){0===e.children.length?r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertInto",this).call(this,e,f):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(0)).default.Embed);ka.blotName="break";ka.tagName="BR";la.default=ka},function(ka,
la,ha){function da(a){var b=h.find(a);if(null==b)try{b=h.create(a)}catch(e){b=h.create(h.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(f){b.domNode.appendChild(f)}),a.parentNode&&a.parentNode.replaceChild(b.domNode,a),b.attach()}return b}var y=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=b}a(b,
e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var r=ha(44);ka=ha(30);var h=ha(1);ha=function(a){function b(e){e=a.call(this,e)||this;e.build();return e}y(b,a);b.prototype.appendChild=function(e){this.insertBefore(e)};b.prototype.attach=function(){a.prototype.attach.call(this);this.children.forEach(function(e){e.attach()})};b.prototype.build=function(){var e=this;this.children=new r.default;[].slice.call(this.domNode.childNodes).reverse().forEach(function(f){try{var n=
da(f);e.insertBefore(n,e.children.head||void 0)}catch(x){if(!(x instanceof h.ParchmentError))throw x;}})};b.prototype.deleteAt=function(e,f){if(0===e&&f===this.length())return this.remove();this.children.forEachAt(e,f,function(n,x,ca){n.deleteAt(x,ca)})};b.prototype.descendant=function(e,f){var n=this.children.find(f);f=n[0];n=n[1];return null==e.blotName&&e(f)||null!=e.blotName&&f instanceof e?[f,n]:f instanceof b?f.descendant(e,n):[null,-1]};b.prototype.descendants=function(e,f,n){void 0===f&&(f=
0);void 0===n&&(n=Number.MAX_VALUE);var x=[],ca=n;this.children.forEachAt(f,n,function(w,aa,ja){(null==e.blotName&&e(w)||null!=e.blotName&&w instanceof e)&&x.push(w);w instanceof b&&(x=x.concat(w.descendants(e,aa,ca)));ca-=ja});return x};b.prototype.detach=function(){this.children.forEach(function(e){e.detach()});a.prototype.detach.call(this)};b.prototype.formatAt=function(e,f,n,x){this.children.forEachAt(e,f,function(ca,w,aa){ca.formatAt(w,aa,n,x)})};b.prototype.insertAt=function(e,f,n){var x=this.children.find(e);
e=x[0];x=x[1];e?e.insertAt(x,f,n):(f=null==n?h.create("text",f):h.create(f,n),this.appendChild(f))};b.prototype.insertBefore=function(e,f){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(n){return e instanceof n}))throw new h.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,f)};b.prototype.length=function(){return this.children.reduce(function(e,f){return e+f.length()},0)};b.prototype.moveChildren=function(e,f){this.children.forEach(function(n){e.insertBefore(n,
f)})};b.prototype.optimize=function(e){a.prototype.optimize.call(this,e);if(0===this.children.length)if(null!=this.statics.defaultChild){var f=h.create(this.statics.defaultChild);this.appendChild(f);f.optimize(e)}else this.remove()};b.prototype.path=function(e,f){void 0===f&&(f=!1);var n=this.children.find(e,f),x=n[0];n=n[1];e=[[this,e]];if(x instanceof b)return e.concat(x.path(n,f));null!=x&&e.push([x,n]);return e};b.prototype.removeChild=function(e){this.children.remove(e)};b.prototype.replace=
function(e){e instanceof b&&e.moveChildren(this);a.prototype.replace.call(this,e)};b.prototype.split=function(e,f){void 0===f&&(f=!1);if(!f){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();this.parent.insertBefore(n,this.next);this.children.forEachAt(e,this.length(),function(x,ca){x=x.split(ca,f);n.appendChild(x)});return n};b.prototype.unwrap=function(){this.moveChildren(this.parent,this.next);this.remove()};b.prototype.update=function(e){var f=this,n=[],x=[];e.forEach(function(ca){ca.target===
f.domNode&&"childList"===ca.type&&(n.push.apply(n,ca.addedNodes),x.push.apply(x,ca.removedNodes))});x.forEach(function(ca){null!=ca.parentNode&&"IFRAME"!==ca.tagName&&document.body.compareDocumentPosition(ca)&Node.DOCUMENT_POSITION_CONTAINED_BY||(ca=h.find(ca),null!=ca&&(null!=ca.domNode.parentNode&&ca.domNode.parentNode!==f.domNode||ca.detach()))});n.filter(function(ca){return ca.parentNode==f.domNode}).sort(function(ca,w){return ca===w?0:ca.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?
1:-1}).forEach(function(ca){var w=null;null!=ca.nextSibling&&(w=h.find(ca.nextSibling));ca=da(ca);if(ca.next!=w||null==ca.next)null!=ca.parent&&ca.parent.removeChild(f),f.insertBefore(ca,w||void 0)})};return b}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=
b}a(b,e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(12),r=ha(31);ka=ha(17);var h=ha(1);ha=function(a){function b(e){e=a.call(this,e)||this;e.attributes=new r.default(e.domNode);return e}da(b,a);b.formats=function(e){if("string"===typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()};b.prototype.format=function(e,f){var n=h.query(e);n instanceof y.default?this.attributes.attribute(n,
f):f&&(null==n||e===this.statics.blotName&&this.formats()[e]===f||this.replaceWith(e,f))};b.prototype.formats=function(){var e=this.attributes.values(),f=this.statics.formats(this.domNode);null!=f&&(e[this.statics.blotName]=f);return e};b.prototype.replaceWith=function(e,f){e=a.prototype.replaceWith.call(this,e,f);this.attributes.copy(e);return e};b.prototype.update=function(e,f){var n=this;a.prototype.update.call(this,e,f);e.some(function(x){return x.target===n.domNode&&"attributes"===x.type})&&
this.attributes.build()};b.prototype.wrap=function(e,f){e=a.prototype.wrap.call(this,e,f);e instanceof b&&e.statics.scope===this.statics.scope&&this.attributes.move(e);return e};return b}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===
a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(30);var y=ha(1);ha=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}da(h,r);h.value=function(){return!0};h.prototype.index=function(a,b){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(b,1):-1};h.prototype.position=function(a){var b=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);0<a&&(b+=1);
return[this.parent.domNode,b]};h.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a};h.scope=y.Scope.INLINE_BLOT;return h}(ka.default);la.default=ha},function(ka,la,ha){function da(a){this.ops=a;this.offset=this.index=0}var y=ha(11),r=ha(3),h={attributes:{compose:function(a,b,e){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var f=r(!0,{},b);e||(f=Object.keys(f).reduce(function(x,ca){null!=f[ca]&&(x[ca]=f[ca]);return x},{}));for(var n in a)void 0!==
a[n]&&void 0===b[n]&&(f[n]=a[n]);return 0<Object.keys(f).length?f:void 0},diff:function(a,b){"object"!==typeof a&&(a={});"object"!==typeof b&&(b={});var e=Object.keys(a).concat(Object.keys(b)).reduce(function(f,n){y(a[n],b[n])||(f[n]=void 0===b[n]?null:b[n]);return f},{});return 0<Object.keys(e).length?e:void 0},transform:function(a,b,e){if("object"!==typeof a)return b;if("object"===typeof b){if(!e)return b;e=Object.keys(b).reduce(function(f,n){void 0===a[n]&&(f[n]=b[n]);return f},{});return 0<Object.keys(e).length?
e:void 0}}},iterator:function(a){return new da(a)},length:function(a){return"number"===typeof a["delete"]?a["delete"]:"number"===typeof a.retain?a.retain:"string"===typeof a.insert?a.insert.length:1}};da.prototype.hasNext=function(){return Infinity>this.peekLength()};da.prototype.next=function(a){a||(a=Infinity);var b=this.ops[this.index];if(b){var e=this.offset,f=h.length(b);a>=f-e?(a=f-e,this.index+=1,this.offset=0):this.offset+=a;if("number"===typeof b["delete"])return{"delete":a};f={};b.attributes&&
(f.attributes=b.attributes);"number"===typeof b.retain?f.retain=a:f.insert="string"===typeof b.insert?b.insert.substr(e,a):b.insert;return f}return{retain:Infinity}};da.prototype.peek=function(){return this.ops[this.index]};da.prototype.peekLength=function(){return this.ops[this.index]?h.length(this.ops[this.index])-this.offset:Infinity};da.prototype.peekType=function(){if(this.ops[this.index]){if("number"===typeof this.ops[this.index]["delete"])return"delete";if("number"!==typeof this.ops[this.index].retain)return"insert"}return"retain"};
da.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var a=this.offset,b=this.index,e=this.next(),f=this.ops.slice(this.index);this.offset=a;this.index=b;return[e].concat(f)}return[]};ka.exports=h},function(ka){var la=function(){function ha(e,f){return null!=f&&e instanceof f}function da(e,f,n,x,ca){function w(ea,ba){if(null===ea)return null;if(0===ba||"object"!=typeof ea)return ea;if(ha(ea,h))var ma=new h;else if(ha(ea,a))ma=new a;else if(ha(ea,b))ma=
new b(function(ua,va){ea.then(function(ra){ua(w(ra,ba-1))},function(ra){va(w(ra,ba-1))})});else if(da.__isArray(ea))ma=[];else if(da.__isRegExp(ea))ma=new RegExp(ea.source,r(ea)),ea.lastIndex&&(ma.lastIndex=ea.lastIndex);else if(da.__isDate(ea))ma=new Date(ea.getTime());else{if(fa&&qa.isBuffer(ea))return ma=qa.allocUnsafe?qa.allocUnsafe(ea.length):new qa(ea.length),ea.copy(ma),ma;if(ha(ea,Error))ma=Object.create(ea);else if("undefined"==typeof x){var ta=Object.getPrototypeOf(ea);ma=Object.create(ta)}else ma=
Object.create(x),ta=x}if(f){var na=aa.indexOf(ea);if(-1!=na)return ja[na];aa.push(ea);ja.push(ma)}ha(ea,h)&&ea.forEach(function(ua,va){va=w(va,ba-1);ua=w(ua,ba-1);ma.set(va,ua)});ha(ea,a)&&ea.forEach(function(ua){ua=w(ua,ba-1);ma.add(ua)});for(var oa in ea){var pa;ta&&(pa=Object.getOwnPropertyDescriptor(ta,oa));pa&&null==pa.set||(ma[oa]=w(ea[oa],ba-1))}if(Object.getOwnPropertySymbols)for(na=Object.getOwnPropertySymbols(ea),oa=0;oa<na.length;oa++)if(pa=na[oa],ta=Object.getOwnPropertyDescriptor(ea,
pa),!ta||ta.enumerable||ca)ma[pa]=w(ea[pa],ba-1),ta.enumerable||Object.defineProperty(ma,pa,{enumerable:!1});if(ca)for(na=Object.getOwnPropertyNames(ea),oa=0;oa<na.length;oa++)pa=na[oa],ta=Object.getOwnPropertyDescriptor(ea,pa),ta&&ta.enumerable||(ma[pa]=w(ea[pa],ba-1),Object.defineProperty(ma,pa,{enumerable:!1}));return ma}"object"===typeof f&&(n=f.depth,x=f.prototype,ca=f.includeNonEnumerable,f=f.circular);var aa=[],ja=[],fa="undefined"!=typeof qa;"undefined"==typeof f&&(f=!0);"undefined"==typeof n&&
(n=Infinity);return w(e,n)}function y(e){return Object.prototype.toString.call(e)}function r(e){var f="";e.global&&(f+="g");e.ignoreCase&&(f+="i");e.multiline&&(f+="m");return f}try{var h=Map}catch(e){h=function(){}}try{var a=Set}catch(e){a=function(){}}try{var b=Promise}catch(e){b=function(){}}da.clonePrototype=function(e){function f(){}if(null===e)return null;f.prototype=e;return new f};da.__objToStr=y;da.__isDate=function(e){return"object"===typeof e&&"[object Date]"===y(e)};da.__isArray=function(e){return"object"===
typeof e&&"[object Array]"===y(e)};da.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===y(e)};da.__getRegExpFlags=r;return da}();"object"===typeof ka&&ka.exports&&(ka.exports=la)},function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&"function"!==typeof fa?ja:fa}function r(ja,fa){if("function"!==typeof fa&&null!==
fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}function h(ja){return ja instanceof ca.default||ja instanceof x.BlockEmbed}Object.defineProperty(la,"__esModule",{value:!0});var a=function(){return function(ja,fa){if(Array.isArray(ja))return ja;if(Symbol.iterator in Object(ja)){var ea=
[],ba=!0,ma=!1,ta=void 0;try{for(var na=ja[Symbol.iterator](),oa;!(ba=(oa=na.next()).done)&&(ea.push(oa.value),!fa||ea.length!==fa);ba=!0);}catch(pa){ma=!0,ta=pa}finally{try{if(!ba&&na["return"])na["return"]()}finally{if(ma)throw ta;}}return ea}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function(){function ja(fa,ea){for(var ba=0;ba<ea.length;ba++){var ma=ea[ba];ma.enumerable=ma.enumerable||!1;ma.configurable=!0;"value"in ma&&(ma.writable=!0);Object.defineProperty(fa,
ma.key,ma)}}return function(fa,ea,ba){ea&&ja(fa.prototype,ea);ba&&ja(fa,ba);return fa}}(),e=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}};ka=ha(0);var f=da(ka);ka=ha(8);var n=da(ka),x=ha(4),ca=da(x);ka=ha(16);var w=da(ka);ka=ha(13);var aa=da(ka);ha=ha(25);ha=da(ha);ka=function(fa){function ea(ba,
ma){if(!(this instanceof ea))throw new TypeError("Cannot call a class as a function");ba=y(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba));ba.emitter=ma.emitter;Array.isArray(ma.whitelist)&&(ba.whitelist=ma.whitelist.reduce(function(ta,na){ta[na]=!0;return ta},{}));ba.domNode.addEventListener("DOMNodeInserted",function(){});ba.optimize();ba.enable();return ba}r(ea,fa);b(ea,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1;this.optimize()}},
{key:"deleteAt",value:function(ba,ma){var ta=this.line(ba),na=a(ta,2);ta=na[0];var oa=na[1];na=this.line(ba+ma);na=a(na,1)[0];e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"deleteAt",this).call(this,ba,ma);if(null!=na&&ta!==na&&0<oa){if(ta instanceof x.BlockEmbed||na instanceof x.BlockEmbed){this.optimize();return}if(ta instanceof aa.default){if(ba=ta.newlineIndex(ta.length(),!0),-1<ba&&(ta=ta.split(ba+1),ta===na)){this.optimize();return}}else na instanceof aa.default&&(ba=na.newlineIndex(0),
-1<ba&&na.split(ba+1));ta.moveChildren(na,na.children.head instanceof w.default?null:na.children.head);ta.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0)}},{key:"formatAt",value:function(ba,ma,ta,na){if(null==this.whitelist||this.whitelist[ta])e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"formatAt",this).call(this,ba,ma,ta,na),this.optimize()}},{key:"insertAt",value:function(ba,
ma,ta){if(null==ta||null==this.whitelist||this.whitelist[ma])ba>=this.length()?null==ta||null==f.default.query(ma,f.default.Scope.BLOCK)?(ba=f.default.create(this.statics.defaultChild),this.appendChild(ba),null==ta&&ma.endsWith("\n")&&(ma=ma.slice(0,-1)),ba.insertAt(0,ma,ta)):(ma=f.default.create(ma,ta),this.appendChild(ma)):e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertAt",this).call(this,ba,ma,ta),this.optimize()}},{key:"insertBefore",value:function(ba,ma){if(ba.statics.scope===
f.default.Scope.INLINE_BLOT){var ta=f.default.create(this.statics.defaultChild);ta.appendChild(ba);ba=ta}e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"insertBefore",this).call(this,ba,ma)}},{key:"leaf",value:function(ba){return this.path(ba).pop()||[null,-1]}},{key:"line",value:function(ba){return ba===this.length()?this.line(ba-1):this.descendant(h,ba)}},{key:"lines",value:function(){return function oa(ma,ta,na){var pa=[],ua=na;ma.children.forEachAt(ta,na,function(va,ra,xa){h(va)?
pa.push(va):va instanceof f.default.Container&&(pa=pa.concat(oa(va,ra,ua)));ua-=xa});return pa}(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var ba=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],ma=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"optimize",this).call(this,ba,
ma),0<ba.length&&this.emitter.emit(n.default.events.SCROLL_OPTIMIZE,ba,ma))}},{key:"path",value:function(ba){return e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"path",this).call(this,ba).slice(1)}},{key:"update",value:function(ba){if(!0!==this.batch){var ma=n.default.sources.USER;"string"===typeof ba&&(ma=ba);Array.isArray(ba)||(ba=this.observer.takeRecords());0<ba.length&&this.emitter.emit(n.default.events.SCROLL_BEFORE_UPDATE,ma,ba);e(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),
"update",this).call(this,ba.concat([]));0<ba.length&&this.emitter.emit(n.default.events.SCROLL_UPDATE,ma,ba)}}}]);return ea}(f.default.Scroll);ka.blotName="scroll";ka.className="ql-editor";ka.tagName="DIV";ka.defaultChild="block";ka.allowedChildren=[ca.default,x.BlockEmbed,ha.default];la.default=ka},function(ka,la,ha){function da(xa){return xa&&xa.__esModule?xa:{default:xa}}function y(xa,Aa,Ga){Aa in xa?Object.defineProperty(xa,Aa,{value:Ga,enumerable:!0,configurable:!0,writable:!0}):xa[Aa]=Ga;return xa}
function r(xa,Aa){if(!xa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Aa||"object"!==typeof Aa&&"function"!==typeof Aa?xa:Aa}function h(xa,Aa){if("function"!==typeof Aa&&null!==Aa)throw new TypeError("Super expression must either be null or a function, not "+typeof Aa);xa.prototype=Object.create(Aa&&Aa.prototype,{constructor:{value:xa,enumerable:!1,writable:!0,configurable:!0}});Aa&&(Object.setPrototypeOf?Object.setPrototypeOf(xa,Aa):xa.__proto__=Aa)}
function a(xa,Aa){var Ga,Ka=xa===ra.keys.LEFT?"prefix":"suffix";return Ga={key:xa,shiftKey:Aa,altKey:null},y(Ga,Ka,/^$/),y(Ga,"handler",function(Da){var Pa=Da.index;xa===ra.keys.RIGHT&&(Pa+=Da.length+1);Pa=this.quill.getLeaf(Pa);if(!(ja(Pa,1)[0]instanceof oa.default.Embed))return!0;xa===ra.keys.LEFT?Aa?this.quill.setSelection(Da.index-1,Da.length+1,pa.default.sources.USER):this.quill.setSelection(Da.index-1,pa.default.sources.USER):Aa?this.quill.setSelection(Da.index,Da.length+1,pa.default.sources.USER):
this.quill.setSelection(Da.index+Da.length+1,pa.default.sources.USER);return!1}),Ga}function b(xa,Aa){if(!(0===xa.index||1>=this.quill.getLength())){var Ga=this.quill.getLine(xa.index),Ka=ja(Ga,1)[0];Ga={};if(0===Aa.offset){var Da=this.quill.getLine(xa.index-1);Da=ja(Da,1)[0];null!=Da&&1<Da.length()&&(Ga=Ka.formats(),Ka=this.quill.getFormat(xa.index-1,1),Ga=na.default.attributes.diff(Ga,Ka)||{})}Aa=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(Aa.prefix)?2:1;this.quill.deleteText(xa.index-Aa,Aa,pa.default.sources.USER);
0<Object.keys(Ga).length&&this.quill.formatLine(xa.index-Aa,Aa,Ga,pa.default.sources.USER);this.quill.focus()}}function e(xa,Aa){var Ga=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(Aa.suffix)?2:1;if(!(xa.index>=this.quill.getLength()-Ga)){var Ka={},Da=0,Pa=this.quill.getLine(xa.index);Pa=ja(Pa,1)[0];Aa.offset>=Pa.length()-1&&(Aa=this.quill.getLine(xa.index+1),Aa=ja(Aa,1)[0])&&(Ka=Pa.formats(),Da=this.quill.getFormat(xa.index,1),Ka=na.default.attributes.diff(Ka,Da)||{},Da=Aa.length());this.quill.deleteText(xa.index,
Ga,pa.default.sources.USER);0<Object.keys(Ka).length&&this.quill.formatLine(xa.index+Da-1,Ga,Ka,pa.default.sources.USER)}}function f(xa){var Aa=this.quill.getLines(xa),Ga={};1<Aa.length&&(Ga=Aa[0].formats(),Aa=Aa[Aa.length-1].formats(),Ga=na.default.attributes.diff(Aa,Ga)||{});this.quill.deleteText(xa,pa.default.sources.USER);0<Object.keys(Ga).length&&this.quill.formatLine(xa.index,1,Ga,pa.default.sources.USER);this.quill.setSelection(xa.index,pa.default.sources.SILENT);this.quill.focus()}function n(xa,
Aa){var Ga=this;0<xa.length&&this.quill.scroll.deleteAt(xa.index,xa.length);var Ka=Object.keys(Aa.format).reduce(function(Da,Pa){oa.default.query(Pa,oa.default.Scope.BLOCK)&&!Array.isArray(Aa.format[Pa])&&(Da[Pa]=Aa.format[Pa]);return Da},{});this.quill.insertText(xa.index,"\n",Ka,pa.default.sources.USER);this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.focus();Object.keys(Aa.format).forEach(function(Da){null==Ka[Da]&&(Array.isArray(Aa.format[Da])||"link"!==Da&&Ga.quill.format(Da,
Aa.format[Da],pa.default.sources.USER))})}function x(xa){return{key:ra.keys.TAB,shiftKey:!xa,format:{"code-block":!0},handler:function(Aa){var Ga=oa.default.query("code-block"),Ka=Aa.index,Da=Aa.length;Aa=this.quill.scroll.descendant(Ga,Ka);Aa=ja(Aa,2);var Pa=Aa[0],Qa=Aa[1];if(null!=Pa){Aa=this.quill.getIndex(Pa);var Ca=Pa.newlineIndex(Qa,!0)+1;Aa=Pa.newlineIndex(Aa+Qa+Da);Aa=Pa.domNode.textContent.slice(Ca,Aa).split("\n");Qa=0;Aa.forEach(function(Ia,Ha){xa?(Pa.insertAt(Ca+Qa,Ga.TAB),Qa+=Ga.TAB.length,
0===Ha?Ka+=Ga.TAB.length:Da+=Ga.TAB.length):Ia.startsWith(Ga.TAB)&&(Pa.deleteAt(Ca+Qa,Ga.TAB.length),Qa-=Ga.TAB.length,0===Ha?Ka-=Ga.TAB.length:Da-=Ga.TAB.length);Qa+=Ia.length+1});this.quill.update(pa.default.sources.USER);this.quill.setSelection(Ka,Da,pa.default.sources.SILENT)}}}}function ca(xa){return{key:xa[0].toUpperCase(),shortKey:!0,handler:function(Aa,Ga){this.quill.format(xa,!Ga.format[xa],pa.default.sources.USER)}}}function w(xa){if("string"===typeof xa||"number"===typeof xa)return w({key:xa});
"object"===("undefined"===typeof xa?"undefined":aa(xa))&&(xa=(0,ea.default)(xa,!1));if("string"===typeof xa.key)if(null!=ra.keys[xa.key.toUpperCase()])xa.key=ra.keys[xa.key.toUpperCase()];else if(1===xa.key.length)xa.key=xa.key.toUpperCase().charCodeAt(0);else return null;xa.shortKey&&(xa[va]=xa.shortKey,delete xa.shortKey);return xa}Object.defineProperty(la,"__esModule",{value:!0});la.SHORTKEY=la.default=void 0;var aa="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(xa){return typeof xa}:
function(xa){return xa&&"function"===typeof Symbol&&xa.constructor===Symbol&&xa!==Symbol.prototype?"symbol":typeof xa},ja=function(){return function(xa,Aa){if(Array.isArray(xa))return xa;if(Symbol.iterator in Object(xa)){var Ga=[],Ka=!0,Da=!1,Pa=void 0;try{for(var Qa=xa[Symbol.iterator](),Ca;!(Ka=(Ca=Qa.next()).done)&&(Ga.push(Ca.value),!Aa||Ga.length!==Aa);Ka=!0);}catch(Ia){Da=!0,Pa=Ia}finally{try{if(!Ka&&Qa["return"])Qa["return"]()}finally{if(Da)throw Pa;}}return Ga}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),fa=function(){function xa(Aa,Ga){for(var Ka=0;Ka<Ga.length;Ka++){var Da=Ga[Ka];Da.enumerable=Da.enumerable||!1;Da.configurable=!0;"value"in Da&&(Da.writable=!0);Object.defineProperty(Aa,Da.key,Da)}}return function(Aa,Ga,Ka){Ga&&xa(Aa.prototype,Ga);Ka&&xa(Aa,Ka);return Aa}}();ka=ha(21);var ea=da(ka);ka=ha(11);var ba=da(ka);ka=ha(3);var ma=da(ka);ka=ha(2);var ta=da(ka);ka=ha(20);var na=da(ka);ka=ha(0);var oa=da(ka);ka=ha(5);var pa=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var ua=(0,ka.default)("quill:keyboard"),
va=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ra=function(xa){function Aa(Ga,Ka){if(!(this instanceof Aa))throw new TypeError("Cannot call a class as a function");var Da=r(this,(Aa.__proto__||Object.getPrototypeOf(Aa)).call(this,Ga,Ka));Da.bindings={};Object.keys(Da.options.bindings).forEach(function(Pa){("list autofill"!==Pa||null==Ga.scroll.whitelist||Ga.scroll.whitelist.list)&&Da.options.bindings[Pa]&&Da.addBinding(Da.options.bindings[Pa])});Da.addBinding({key:Aa.keys.ENTER,shiftKey:null},
n);Da.addBinding({key:Aa.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){});/Firefox/i.test(navigator.userAgent)?(Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0},b),Da.addBinding({key:Aa.keys.DELETE},{collapsed:!0},e)):(Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},b),Da.addBinding({key:Aa.keys.DELETE},{collapsed:!0,suffix:/^.?$/},e));Da.addBinding({key:Aa.keys.BACKSPACE},{collapsed:!1},f);Da.addBinding({key:Aa.keys.DELETE},{collapsed:!1},f);Da.addBinding({key:Aa.keys.BACKSPACE,
altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},b);Da.listen();return Da}h(Aa,xa);fa(Aa,null,[{key:"match",value:function(Ga,Ka){Ka=w(Ka);return["altKey","ctrlKey","metaKey","shiftKey"].some(function(Da){return!!Ka[Da]!==Ga[Da]&&null!==Ka[Da]})?!1:Ka.key===(Ga.which||Ga.keyCode)}}]);fa(Aa,[{key:"addBinding",value:function(Ga){var Ka=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},Da=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},Pa=w(Ga);if(null==
Pa||null==Pa.key)return ua.warn("Attempted to add invalid keyboard binding",Pa);"function"===typeof Ka&&(Ka={handler:Ka});"function"===typeof Da&&(Da={handler:Da});Pa=(0,ma.default)(Pa,Ka,Da);this.bindings[Pa.key]=this.bindings[Pa.key]||[];this.bindings[Pa.key].push(Pa)}},{key:"listen",value:function(){var Ga=this;this.quill.root.addEventListener("keydown",function(Ka){if(!Ka.defaultPrevented){var Da=(Ga.bindings[Ka.which||Ka.keyCode]||[]).filter(function(Ma){return Aa.match(Ka,Ma)});if(0!==Da.length){var Pa=
Ga.quill.getSelection();if(null!=Pa&&Ga.quill.hasFocus()){var Qa=Ga.quill.getLine(Pa.index),Ca=ja(Qa,2);Qa=Ca[0];Ca=Ca[1];var Ia=Ga.quill.getLeaf(Pa.index),Ha=ja(Ia,2);Ia=Ha[0];Ha=Ha[1];var wa=0===Pa.length?[Ia,Ha]:Ga.quill.getLeaf(Pa.index+Pa.length),Fa=ja(wa,2);wa=Fa[0];Fa=Fa[1];Ia=Ia instanceof oa.default.Text?Ia.value().slice(0,Ha):"";Ha=wa instanceof oa.default.Text?wa.value().slice(Fa):"";var Oa={collapsed:0===Pa.length,empty:0===Pa.length&&1>=Qa.length(),format:Ga.quill.getFormat(Pa),offset:Ca,
prefix:Ia,suffix:Ha};Da.some(function(Ma){if(null!=Ma.collapsed&&Ma.collapsed!==Oa.collapsed||null!=Ma.empty&&Ma.empty!==Oa.empty||null!=Ma.offset&&Ma.offset!==Oa.offset)return!1;if(Array.isArray(Ma.format)){if(Ma.format.every(function(Ua){return null==Oa.format[Ua]}))return!1}else if("object"===aa(Ma.format)&&!Object.keys(Ma.format).every(function(Ua){return!0===Ma.format[Ua]?null!=Oa.format[Ua]:!1===Ma.format[Ua]?null==Oa.format[Ua]:(0,ba.default)(Ma.format[Ua],Oa.format[Ua])}))return!1;return null!=
Ma.prefix&&!Ma.prefix.test(Oa.prefix)||null!=Ma.suffix&&!Ma.suffix.test(Oa.suffix)?!1:!0!==Ma.handler.call(Ga,Pa,Oa)})&&Ka.preventDefault()}}}})}}]);return Aa}(ha.default);ra.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};ra.DEFAULTS={bindings:{bold:ca("bold"),italic:ca("italic"),underline:ca("underline"),indent:{key:ra.keys.TAB,format:["blockquote","indent","list"],handler:function(xa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","+1",
pa.default.sources.USER)}},outdent:{key:ra.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(xa,Aa){if(Aa.collapsed&&0!==Aa.offset)return!0;this.quill.format("indent","-1",pa.default.sources.USER)}},"outdent backspace":{key:ra.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(xa,Aa){null!=Aa.format.indent?this.quill.format("indent","-1",pa.default.sources.USER):null!=Aa.format.list&&this.quill.format("list",
!1,pa.default.sources.USER)}},"indent code-block":x(!0),"outdent code-block":x(!1),"remove tab":{key:ra.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(xa){this.quill.deleteText(xa.index-1,1,pa.default.sources.USER)}},tab:{key:ra.keys.TAB,handler:function(xa){this.quill.history.cutoff();var Aa=(new ta.default).retain(xa.index).delete(xa.length).insert("\t");this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(xa.index+1,pa.default.sources.SILENT)}},
"list empty enter":{key:ra.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(xa,Aa){this.quill.format("list",!1,pa.default.sources.USER);Aa.format.indent&&this.quill.format("indent",!1,pa.default.sources.USER)}},"checklist enter":{key:ra.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(xa){var Aa=this.quill.getLine(xa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];var Ka=(0,ma.default)({},Aa.formats(),{list:"checked"});Aa=(new ta.default).retain(xa.index).insert("\n",Ka).retain(Aa.length()-
Ga-1).retain(1,{list:"unchecked"});this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.scrollIntoView()}},"header enter":{key:ra.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(xa,Aa){var Ga=this.quill.getLine(xa.index),Ka=ja(Ga,2);Ga=Ka[0];Ka=Ka[1];Aa=(new ta.default).retain(xa.index).insert("\n",Aa.format).retain(Ga.length()-Ka-1).retain(1,{header:null});this.quill.updateContents(Aa,pa.default.sources.USER);
this.quill.setSelection(xa.index+1,pa.default.sources.SILENT);this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(xa,Aa){var Ga=Aa.prefix.length,Ka=this.quill.getLine(xa.index),Da=ja(Ka,2);Ka=Da[0];Da=Da[1];if(Da>Ga)return!0;switch(Aa.prefix.trim()){case "[]":case "[ ]":Aa="unchecked";break;case "[x]":Aa="checked";break;case "-":case "*":Aa="bullet";break;default:Aa="ordered"}this.quill.insertText(xa.index,
" ",pa.default.sources.USER);this.quill.history.cutoff();Aa=(new ta.default).retain(xa.index-Da).delete(Ga+1).retain(Ka.length()-2-Da).retain(1,{list:Aa});this.quill.updateContents(Aa,pa.default.sources.USER);this.quill.history.cutoff();this.quill.setSelection(xa.index-Ga,pa.default.sources.SILENT)}},"code exit":{key:ra.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(xa){var Aa=this.quill.getLine(xa.index),Ga=ja(Aa,2);Aa=Ga[0];Ga=Ga[1];xa=(new ta.default).retain(xa.index+
Aa.length()-Ga-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(xa,pa.default.sources.USER)}},"embed left":a(ra.keys.LEFT,!1),"embed left shift":a(ra.keys.LEFT,!0),"embed right":a(ra.keys.RIGHT,!1),"embed right shift":a(ra.keys.RIGHT,!0)}};la.default=ra;la.SHORTKEY=va},function(ka,la,ha){function da(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,
enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){return function(e,f){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=[],x=!0,ca=!1,w=void 0;try{for(var aa=e[Symbol.iterator](),ja;!(x=(ja=aa.next()).done)&&(n.push(ja.value),!f||n.length!==f);x=!0);}catch(fa){ca=!0,w=fa}finally{try{if(!x&&aa["return"])aa["return"]()}finally{if(ca)throw w;}}return n}throw new TypeError("Invalid attempt to destructure non-iterable instance");
}}(),r=function ca(f,n,x){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,n);if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return ca(f,n,x)}else{if("value"in w)return w.value;n=w.get;return void 0===n?void 0:n.call(x)}},h=function(){function f(n,x){for(var ca=0;ca<x.length;ca++){var w=x[ca];w.enumerable=w.enumerable||!1;w.configurable=!0;"value"in w&&(w.writable=!0);Object.defineProperty(n,w.key,w)}}return function(n,x,ca){x&&f(n.prototype,x);ca&&f(n,ca);return n}}(),
a=(ka=ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(f){function n(x,ca){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");x=(n.__proto__||Object.getPrototypeOf(n)).call(this,x);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");x=!x||"object"!==typeof x&&"function"!==typeof x?this:x;x.selection=ca;x.textNode=document.createTextNode(n.CONTENTS);x.domNode.appendChild(x.textNode);
x._length=0;return x}da(n,f);h(n,null,[{key:"value",value:function(){}}]);h(n,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(x,ca){if(0!==this._length)return r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,x,ca);for(var w=this,aa=0;null!=w&&w.statics.scope!==a.default.Scope.BLOCK_BLOT;)aa+=w.offset(w.parent),w=w.parent;null!=w&&(this._length=n.CONTENTS.length,w.optimize(),w.formatAt(aa,n.CONTENTS.length,
x,ca),this._length=0)}},{key:"index",value:function(x,ca){return x===this.textNode?0:r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,x,ca)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"remove",this).call(this);this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&
null!=this.parent){var x=this.textNode,ca=this.selection.getNativeRange(),w=void 0,aa=void 0,ja=void 0;null!=ca&&ca.start.node===x&&ca.end.node===x&&(ja=[x,ca.start.offset,ca.end.offset],w=ja[0],aa=ja[1],ja=ja[2]);for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);this.textNode.data!==n.CONTENTS&&(x=this.textNode.data.split(n.CONTENTS).join(""),this.next instanceof b.default?(w=this.next.domNode,this.next.insertAt(0,
x),this.textNode.data=n.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(n.CONTENTS),this.domNode.appendChild(this.textNode)));this.remove();if(null!=aa)return aa=[aa,ja].map(function(fa){return Math.max(0,Math.min(w.data.length,fa-1))}),ja=y(aa,2),aa=ja[0],ja=ja[1],{startNode:w,startOffset:aa,endNode:w,endOffset:ja}}}},{key:"update",value:function(x,ca){var w=this;x.some(function(aa){return"characterData"===aa.type&&
aa.target===w.textNode})&&(x=this.restore())&&(ca.range=x)}},{key:"value",value:function(){return""}}]);return n}(a.default.Embed);ha.blotName="cursor";ha.className="ql-cursor";ha.tagName="span";ha.CONTENTS="\ufeff";la.default=ha},function(ka,la,ha){function da(r,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});h&&
(Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}Object.defineProperty(la,"__esModule",{value:!0});ka=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var y=(ha=ha(4))&&ha.__esModule?ha:{default:ha};ka=function(r){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var a=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==
typeof a&&"function"!==typeof a?this:a}da(h,r);return h}(ka.default.Container);ka.allowedChildren=[y.default,ha.BlockEmbed,ka];la.default=ka},function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,
"__esModule",{value:!0});la.ColorStyle=la.ColorClass=la.ColorAttributor=void 0;var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in
x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}},h=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));ka=function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);y(e,[{key:"value",value:function(f){f=r(e.prototype.__proto__||
Object.getPrototypeOf(e.prototype),"value",this).call(this,f);if(!f.startsWith("rgb("))return f;f=f.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");return"#"+f.split(",").map(function(n){return("00"+parseInt(n).toString(16)).slice(-2)}).join("")}}]);return e}(h.default.Attributor.Style);ha=new h.default.Attributor.Class("color","ql-color",{scope:h.default.Scope.INLINE});h=new ka("color","color",{scope:h.default.Scope.INLINE});la.ColorAttributor=ka;la.ColorClass=ha;la.ColorStyle=h},function(ka,la,ha){function da(a,
b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function y(a,b){var e=document.createElement("a");e.href=a;a=e.href.slice(0,e.href.indexOf(":"));return-1<b.indexOf(a)}Object.defineProperty(la,"__esModule",{value:!0});la.sanitize=la.default=void 0;
var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=function(b){function e(){if(!(this instanceof
e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);r(e,[{key:"format",value:function(f,n){if(f!==this.statics.blotName||!n)return h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,f,n);n=this.constructor.sanitize(n);this.domNode.setAttribute("href",
n)}}],[{key:"create",value:function(f){var n=h(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,f);f=this.sanitize(f);n.setAttribute("href",f);n.setAttribute("rel","noopener noreferrer");n.setAttribute("target","_blank");return n}},{key:"formats",value:function(f){return f.getAttribute("href")}},{key:"sanitize",value:function(f){return y(f,this.PROTOCOL_WHITELIST)?f:this.SANITIZED_URL}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(6)).default);ka.blotName="link";
ka.tagName="A";ka.SANITIZED_URL="about:blank";ka.PROTOCOL_WHITELIST=["http","https","mailto","tel"];la.default=ka;la.sanitize=y},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"===typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||
!1;x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=(ka=ha(23))&&ka.__esModule?ka:{default:ka},h=(ha=ha(107))&&ha.__esModule?ha:{default:ha},a=0;ha=function(){function b(e){var f=this;if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");this.select=e;this.container=document.createElement("span");this.buildPicker();this.select.style.display="none";this.select.parentNode.insertBefore(this.container,
this.select);this.label.addEventListener("mousedown",function(){f.togglePicker()});this.label.addEventListener("keydown",function(n){switch(n.keyCode){case r.default.keys.ENTER:f.togglePicker();break;case r.default.keys.ESCAPE:f.escape(),n.preventDefault()}});this.select.addEventListener("change",this.update.bind(this))}y(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded");var e=this.label;e.setAttribute("aria-expanded","true"!==e.getAttribute("aria-expanded"));
e=this.options;e.setAttribute("aria-hidden","true"!==e.getAttribute("aria-hidden"))}},{key:"buildItem",value:function(e){var f=this,n=document.createElement("span");n.tabIndex="0";n.setAttribute("role","button");n.classList.add("ql-picker-item");e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value"));e.textContent&&n.setAttribute("data-label",e.textContent);n.addEventListener("click",function(){f.selectItem(n,!0)});n.addEventListener("keydown",function(x){switch(x.keyCode){case r.default.keys.ENTER:f.selectItem(n,
!0);x.preventDefault();break;case r.default.keys.ESCAPE:f.escape(),x.preventDefault()}});return n}},{key:"buildLabel",value:function(){var e=document.createElement("span");e.classList.add("ql-picker-label");e.innerHTML=h.default;e.tabIndex="0";e.setAttribute("role","button");e.setAttribute("aria-expanded","false");this.container.appendChild(e);return e}},{key:"buildOptions",value:function(){var e=this,f=document.createElement("span");f.classList.add("ql-picker-options");f.setAttribute("aria-hidden",
"true");f.tabIndex="-1";f.id="ql-picker-options-"+a;a+=1;this.label.setAttribute("aria-controls",f.id);this.options=f;[].slice.call(this.select.options).forEach(function(n){var x=e.buildItem(n);f.appendChild(x);!0===n.selected&&e.selectItem(x)});this.container.appendChild(f)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(f){e.container.setAttribute(f.name,f.value)});this.container.classList.add("ql-picker");this.label=this.buildLabel();this.buildOptions()}},
{key:"escape",value:function(){var e=this;this.close();setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded");this.label.setAttribute("aria-expanded","false");this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),
this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),f&&("function"===typeof Event?this.select.dispatchEvent(new Event("change")):"object"===("undefined"===typeof Event?"undefined":da(Event))&&(f=document.createEvent("Event"),
f.initEvent("change",!0,!0),this.select.dispatchEvent(f)),this.close())))}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex];this.selectItem(f)}else this.selectItem(null);this.label.classList.toggle("ql-active",null!=e&&e!==this.select.querySelector("option[selected]"))}}]);return b}();la.default=ha},function(ka,la,ha){function da(ja){return ja&&
ja.__esModule?ja:{default:ja}}Object.defineProperty(la,"__esModule",{value:!0});ka=ha(0);ka=da(ka);var y=ha(5);y=da(y);var r=ha(4),h=da(r),a=ha(16);a=da(a);var b=ha(25);b=da(b);var e=ha(24);e=da(e);var f=ha(35);f=da(f);var n=ha(6);n=da(n);var x=ha(22);x=da(x);var ca=ha(7);ca=da(ca);var w=ha(55);w=da(w);var aa=ha(42);aa=da(aa);ha=ha(23);ha=da(ha);y.default.register({"blots/block":h.default,"blots/block/embed":r.BlockEmbed,"blots/break":a.default,"blots/container":b.default,"blots/cursor":e.default,
"blots/embed":f.default,"blots/inline":n.default,"blots/scroll":x.default,"blots/text":ca.default,"modules/clipboard":w.default,"modules/history":aa.default,"modules/keyboard":ha.default});ka.default.register(h.default,a.default,e.default,n.default,x.default,ca.default);la.default=y.default},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});var da=ha(1);ka=function(){function y(r){this.domNode=r;this.domNode[da.DATA_KEY]={blot:this}}Object.defineProperty(y.prototype,"statics",{get:function(){return this.constructor},
enumerable:!0,configurable:!0});y.create=function(r){if(null==this.tagName)throw new da.ParchmentError("Blot definition missing tagName");Array.isArray(this.tagName)?("string"===typeof r&&(r=r.toUpperCase(),parseInt(r).toString()===r&&(r=parseInt(r))),r="number"===typeof r?document.createElement(this.tagName[r-1]):-1<this.tagName.indexOf(r)?document.createElement(r):document.createElement(this.tagName[0])):r=document.createElement(this.tagName);this.className&&r.classList.add(this.className);return r};
y.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)};y.prototype.clone=function(){return da.create(this.domNode.cloneNode(!1))};y.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this);delete this.domNode[da.DATA_KEY]};y.prototype.deleteAt=function(r,h){this.isolate(r,h).remove()};y.prototype.formatAt=function(r,h,a,b){r=this.isolate(r,h);null!=da.query(a,da.Scope.BLOT)&&b?r.wrap(a,b):null!=da.query(a,da.Scope.ATTRIBUTE)&&(h=da.create(this.statics.scope),
r.wrap(h),h.format(a,b))};y.prototype.insertAt=function(r,h,a){h=null==a?da.create("text",h):da.create(h,a);r=this.split(r);this.parent.insertBefore(h,r)};y.prototype.insertInto=function(r,h){void 0===h&&(h=null);null!=this.parent&&this.parent.children.remove(this);var a=null;r.children.insertBefore(this,h);null!=h&&(a=h.domNode);this.domNode.parentNode==r.domNode&&this.domNode.nextSibling==a||r.domNode.insertBefore(this.domNode,a);this.parent=r;this.attach()};y.prototype.isolate=function(r,h){r=
this.split(r);r.split(h);return r};y.prototype.length=function(){return 1};y.prototype.offset=function(r){void 0===r&&(r=this.parent);return null==this.parent||this==r?0:this.parent.children.offset(this)+this.parent.offset(r)};y.prototype.optimize=function(){null!=this.domNode[da.DATA_KEY]&&delete this.domNode[da.DATA_KEY].mutations};y.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.detach()};y.prototype.replace=function(r){null!=r.parent&&
(r.parent.insertBefore(this,r.next),r.remove())};y.prototype.replaceWith=function(r,h){r="string"===typeof r?da.create(r,h):r;r.replace(this);return r};y.prototype.split=function(r){return 0===r?this:this.next};y.prototype.update=function(){};y.prototype.wrap=function(r,h){r="string"===typeof r?da.create(r,h):r;null!=this.parent&&this.parent.insertBefore(r,this.next);r.appendChild(this);return r};y.blotName="abstract";return y}();la.default=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",
{value:!0});var da=ha(12),y=ha(32),r=ha(33),h=ha(1);ka=function(){function a(b){this.attributes={};this.domNode=b;this.build()}a.prototype.attribute=function(b,e){e?b.add(this.domNode,e)&&(null!=b.value(this.domNode)?this.attributes[b.attrName]=b:delete this.attributes[b.attrName]):(b.remove(this.domNode),delete this.attributes[b.attrName])};a.prototype.build=function(){var b=this;this.attributes={};var e=da.default.keys(this.domNode),f=y.default.keys(this.domNode),n=r.default.keys(this.domNode);
e.concat(f).concat(n).forEach(function(x){x=h.query(x,h.Scope.ATTRIBUTE);x instanceof da.default&&(b.attributes[x.attrName]=x)})};a.prototype.copy=function(b){var e=this;Object.keys(this.attributes).forEach(function(f){var n=e.attributes[f].value(e.domNode);b.format(f,n)})};a.prototype.move=function(b){var e=this;this.copy(b);Object.keys(this.attributes).forEach(function(f){e.attributes[f].remove(e.domNode)});this.attributes={}};a.prototype.values=function(){var b=this;return Object.keys(this.attributes).reduce(function(e,
f){e[f]=b.attributes[f].value(b.domNode);return e},{})};return a}();la.default=ka},function(ka,la,ha){function da(r,h){return(r.getAttribute("class")||"").split(/\s+/).filter(function(a){return 0===a.indexOf(h+"-")})}var y=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):
(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}y(h,r);h.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(b){return b.split("-").slice(0,-1).join("-")})};h.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;this.remove(a);a.classList.add(this.keyName+"-"+b);return!0};h.prototype.remove=function(a){da(a,this.keyName).forEach(function(b){a.classList.remove(b)});
0===a.classList.length&&a.removeAttribute("class")};h.prototype.value=function(a){var b=(da(a,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(a,b)?b:""};return h}(ha(12).default);la.default=ka},function(ka,la,ha){function da(r){r=r.split("-");var h=r.slice(1).map(function(a){return a[0].toUpperCase()+a.slice(1)}).join("");return r[0]+h}var y=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,
a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}y(h,r);h.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(b){return b.split(":")[0].trim()})};h.prototype.add=function(a,b){if(!this.canAdd(a,b))return!1;a.style[da(this.keyName)]=
b;return!0};h.prototype.remove=function(a){a.style[da(this.keyName)]="";a.getAttribute("style")||a.removeAttribute("style")};h.prototype.value=function(a){var b=a.style[da(this.keyName)];return this.canAdd(a,b)?b:""};return h}(ha(12).default);la.default=ka},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});var ha=function(){function da(y,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,
a)}}return function(y,r,h){r&&da(y.prototype,r);h&&da(y,h);return y}}();ka=function(){function da(y,r){if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");this.quill=y;this.options=r;this.modules={}}ha(da,[{key:"init",value:function(){var y=this;Object.keys(this.options.modules).forEach(function(r){null==y.modules[r]&&y.addModule(r)})}},{key:"addModule",value:function(y){var r=this.quill.constructor.import("modules/"+y);this.modules[y]=new r(this.quill,this.options.modules[y]||
{});return this.modules[y]}}]);return da}();ka.DEFAULTS={modules:{}};ka.themes={"default":ka};la.default=ka},function(ka,la,ha){function da(e,f){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!==typeof f&&"function"!==typeof f?e:f}function y(e,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);e.prototype=Object.create(f&&f.prototype,{constructor:{value:e,enumerable:!1,
writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(e,f):e.__proto__=f)}Object.defineProperty(la,"__esModule",{value:!0});var r=function(){function e(f,n){for(var x=0;x<n.length;x++){var ca=n[x];ca.enumerable=ca.enumerable||!1;ca.configurable=!0;"value"in ca&&(ca.writable=!0);Object.defineProperty(f,ca.key,ca)}}return function(f,n,x){n&&e(f.prototype,n);x&&e(f,x);return f}}(),h=function ca(f,n,x){null===f&&(f=Function.prototype);var w=Object.getOwnPropertyDescriptor(f,n);
if(void 0===w){if(f=Object.getPrototypeOf(f),null!==f)return ca(f,n,x)}else{if("value"in w)return w.value;n=w.get;return void 0===n?void 0:n.call(x)}},a=(ka=ha(0))&&ka.__esModule?ka:{default:ka},b=(ha=ha(7))&&ha.__esModule?ha:{default:ha};ha=function(f){function n(x){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");var ca=da(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,x));ca.contentNode=document.createElement("span");ca.contentNode.setAttribute("contenteditable",
!1);[].slice.call(ca.domNode.childNodes).forEach(function(w){ca.contentNode.appendChild(w)});ca.leftGuard=document.createTextNode("\ufeff");ca.rightGuard=document.createTextNode("\ufeff");ca.domNode.appendChild(ca.leftGuard);ca.domNode.appendChild(ca.contentNode);ca.domNode.appendChild(ca.rightGuard);return ca}y(n,f);r(n,[{key:"index",value:function(x,ca){return x===this.leftGuard?0:x===this.rightGuard?1:h(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"index",this).call(this,x,ca)}},{key:"restore",
value:function(x){var ca=void 0,w=x.data.split("\ufeff").join("");x===this.leftGuard?this.prev instanceof b.default?(ca=this.prev.length(),this.prev.insertAt(ca,w),ca={startNode:this.prev.domNode,startOffset:ca+w.length}):(ca=document.createTextNode(w),this.parent.insertBefore(a.default.create(ca),this),ca={startNode:ca,startOffset:w.length}):x===this.rightGuard&&(this.next instanceof b.default?(this.next.insertAt(0,w),ca={startNode:this.next.domNode,startOffset:w.length}):(ca=document.createTextNode(w),
this.parent.insertBefore(a.default.create(ca),this.next),ca={startNode:ca,startOffset:w.length}));x.data="\ufeff";return ca}},{key:"update",value:function(x,ca){var w=this;x.forEach(function(aa){"characterData"!==aa.type||aa.target!==w.leftGuard&&aa.target!==w.rightGuard||!(aa=w.restore(aa.target))||(ca.range=aa)})}}]);return n}(a.default.Embed);la.default=ha},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.AlignStyle=la.AlignClass=la.AlignAttribute=void 0;var da=(ka=ha(0))&&
ka.__esModule?ka:{default:ka};var y={scope:da.default.Scope.BLOCK,whitelist:["right","center","justify"]};ka=new da.default.Attributor.Attribute("align","align",y);ha=new da.default.Attributor.Class("align","ql-align",y);da=new da.default.Attributor.Style("align","text-align",y);la.AlignAttribute=ka;la.AlignClass=ha;la.AlignStyle=da},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.BackgroundStyle=la.BackgroundClass=void 0;ka=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var da=
ha(26);ha=new ka.default.Attributor.Class("background","ql-bg",{scope:ka.default.Scope.INLINE});ka=new da.ColorAttributor("background","background-color",{scope:ka.default.Scope.INLINE});la.BackgroundClass=ha;la.BackgroundStyle=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.DirectionStyle=la.DirectionClass=la.DirectionAttribute=void 0;var da=(ka=ha(0))&&ka.__esModule?ka:{default:ka};var y={scope:da.default.Scope.BLOCK,whitelist:["rtl"]};ka=new da.default.Attributor.Attribute("direction",
"dir",y);ha=new da.default.Attributor.Class("direction","ql-direction",y);da=new da.default.Attributor.Style("direction","direction",y);la.DirectionAttribute=ka;la.DirectionClass=ha;la.DirectionStyle=da},function(ka,la,ha){function da(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,
b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});la.FontClass=la.FontStyle=void 0;var y=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),r=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,
e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ha=function(b){return b&&b.__esModule?b:{default:b}}(ha(0));var h={scope:ha.default.Scope.INLINE,whitelist:["serif","monospace"]};ka=new ha.default.Attributor.Class("font","ql-font",h);ha=new (function(b){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");var f=(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!f||"object"!==typeof f&&"function"!==typeof f?this:f}da(e,b);y(e,[{key:"value",value:function(f){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,f).replace(/["']/g,"")}}]);return e}(ha.default.Attributor.Style))("font","font-family",h);la.FontStyle=ha;la.FontClass=ka},function(ka,la,ha){Object.defineProperty(la,"__esModule",{value:!0});la.SizeStyle=la.SizeClass=void 0;ha=(ka=ha(0))&&ka.__esModule?ka:{default:ka};ka=new ha.default.Attributor.Class("size",
"ql-size",{scope:ha.default.Scope.INLINE,whitelist:["small","large","huge"]});ha=new ha.default.Attributor.Style("size","font-size",{scope:ha.default.Scope.INLINE,whitelist:["10px","18px","32px"]});la.SizeClass=ka;la.SizeStyle=ha},function(ka,la,ha){ka.exports={align:{"":ha(76),center:ha(77),right:ha(78),justify:ha(79)},background:ha(80),blockquote:ha(81),bold:ha(82),clean:ha(83),code:ha(58),"code-block":ha(58),color:ha(84),direction:{"":ha(85),rtl:ha(86)},"float":{center:ha(87),full:ha(88),left:ha(89),
right:ha(90)},formula:ha(91),header:{1:ha(92),2:ha(93)},italic:ha(94),image:ha(95),indent:{"+1":ha(96),"-1":ha(97)},link:ha(98),list:{ordered:ha(99),bullet:ha(100),check:ha(101)},script:{sub:ha(102),"super":ha(103)},strike:ha(104),underline:ha(105),video:ha(106)}},function(ka,la,ha){function da(n){return n&&n.__esModule?n:{default:n}}function y(n,x){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||"object"!==typeof x&&"function"!==typeof x?n:x}
function r(n,x){if("function"!==typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function, not "+typeof x);n.prototype=Object.create(x&&x.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}});x&&(Object.setPrototypeOf?Object.setPrototypeOf(n,x):n.__proto__=x)}function h(n){n=n.ops[n.ops.length-1];return null==n?!1:null!=n.insert?"string"===typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes?Object.keys(n.attributes).some(function(x){return null!=
e.default.query(x,e.default.Scope.BLOCK)}):!1}function a(n){var x=n.reduce(function(ca,w){return ca+=w.delete||0},0);x=n.length()-x;h(n)&&--x;return x}Object.defineProperty(la,"__esModule",{value:!0});la.getLastChangeIndex=la.default=void 0;var b=function(){function n(x,ca){for(var w=0;w<ca.length;w++){var aa=ca[w];aa.enumerable=aa.enumerable||!1;aa.configurable=!0;"value"in aa&&(aa.writable=!0);Object.defineProperty(x,aa.key,aa)}}return function(x,ca,w){ca&&n(x.prototype,ca);w&&n(x,w);return x}}();
ka=ha(0);var e=da(ka);ka=ha(5);var f=da(ka);ha=ha(9);ha=function(n){function x(ca,w){if(!(this instanceof x))throw new TypeError("Cannot call a class as a function");var aa=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,ca,w));aa.lastRecorded=0;aa.ignoreChange=!1;aa.clear();aa.quill.on(f.default.events.EDITOR_CHANGE,function(ja,fa,ea,ba){ja!==f.default.events.TEXT_CHANGE||aa.ignoreChange||(aa.options.userOnly&&ba!==f.default.sources.USER?aa.transform(fa):aa.record(fa,ea))});aa.quill.keyboard.addBinding({key:"Z",
shortKey:!0},aa.undo.bind(aa));aa.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},aa.redo.bind(aa));/Win/i.test(navigator.platform)&&aa.quill.keyboard.addBinding({key:"Y",shortKey:!0},aa.redo.bind(aa));return aa}r(x,n);b(x,[{key:"change",value:function(ca,w){if(0!==this.stack[ca].length){var aa=this.stack[ca].pop();this.stack[w].push(aa);this.lastRecorded=0;this.ignoreChange=!0;this.quill.updateContents(aa[ca],f.default.sources.USER);this.ignoreChange=!1;ca=a(aa[ca]);this.quill.setSelection(ca)}}},
{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(ca,w){if(0!==ca.ops.length){this.stack.redo=[];w=this.quill.getContents().diff(w);var aa=Date.now();this.lastRecorded+this.options.delay>aa&&0<this.stack.undo.length?(aa=this.stack.undo.pop(),w=w.compose(aa.undo),ca=aa.redo.compose(ca)):this.lastRecorded=aa;this.stack.undo.push({redo:ca,undo:w});this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},
{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(ca){this.stack.undo.forEach(function(w){w.undo=ca.transform(w.undo,!0);w.redo=ca.transform(w.redo,!0)});this.stack.redo.forEach(function(w){w.undo=ca.transform(w.undo,!0);w.redo=ca.transform(w.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]);return x}(da(ha).default);ha.DEFAULTS={delay:1E3,maxStack:100,userOnly:!1};la.default=ha;la.getLastChangeIndex=a},function(ka,la,ha){function da(oa){return oa&&
oa.__esModule?oa:{default:oa}}function y(oa,pa){if(!(oa instanceof pa))throw new TypeError("Cannot call a class as a function");}function r(oa,pa){if(!oa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!pa||"object"!==typeof pa&&"function"!==typeof pa?oa:pa}function h(oa,pa){if("function"!==typeof pa&&null!==pa)throw new TypeError("Super expression must either be null or a function, not "+typeof pa);oa.prototype=Object.create(pa&&pa.prototype,{constructor:{value:oa,
enumerable:!1,writable:!0,configurable:!0}});pa&&(Object.setPrototypeOf?Object.setPrototypeOf(oa,pa):oa.__proto__=pa)}function a(oa,pa){var ua=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;pa.forEach(function(va){var ra=document.createElement("option");va===ua?ra.setAttribute("selected","selected"):ra.setAttribute("value",va);oa.appendChild(ra)})}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.BaseTooltip=void 0;var b=function(){function oa(pa,ua){for(var va=0;va<ua.length;va++){var ra=
ua[va];ra.enumerable=ra.enumerable||!1;ra.configurable=!0;"value"in ra&&(ra.writable=!0);Object.defineProperty(pa,ra.key,ra)}}return function(pa,ua,va){ua&&oa(pa.prototype,ua);va&&oa(pa,va);return pa}}(),e=function ra(pa,ua,va){null===pa&&(pa=Function.prototype);var xa=Object.getOwnPropertyDescriptor(pa,ua);if(void 0===xa){if(pa=Object.getPrototypeOf(pa),null!==pa)return ra(pa,ua,va)}else{if("value"in xa)return xa.value;ua=xa.get;return void 0===ua?void 0:ua.call(va)}};ka=ha(3);ka=da(ka);var f=ha(2),
n=da(f);f=ha(8);var x=da(f);f=ha(23);var ca=da(f);f=ha(34);f=da(f);var w=ha(59),aa=da(w);w=ha(60);var ja=da(w);w=ha(28);var fa=da(w);ha=ha(61);w=da(ha);var ea=[!1,"center","right","justify"],ba="#000000 #e60000 #ff9900 #ffff00 #008a00 #0066cc #9933ff #ffffff #facccc #ffebcc #ffffcc #cce8cc #cce0f5 #ebd6ff #bbbbbb #f06666 #ffc266 #ffff66 #66b966 #66a3e0 #c285ff #888888 #a10000 #b26b00 #b2b200 #006100 #0047b2 #6b24b2 #444444 #5c0000 #663d00 #666600 #003700 #002966 #3d1466".split(" "),ma=[!1,"serif",
"monospace"],ta=["1","2","3",!1],na=["small",!1,"large","huge"];ha=function(pa){function ua(va,ra){y(this,ua);var xa=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,va,ra));va.emitter.listenDOM("click",document.body,function Ka(Ga){if(!document.body.contains(va.root))return document.body.removeEventListener("click",Ka);null==xa.tooltip||xa.tooltip.root.contains(Ga.target)||document.activeElement===xa.tooltip.textbox||xa.quill.hasFocus()||xa.tooltip.hide();null!=xa.pickers&&xa.pickers.forEach(function(Da){Da.container.contains(Ga.target)||
Da.close()})});return xa}h(ua,pa);b(ua,[{key:"addModule",value:function(va){var ra=e(ua.prototype.__proto__||Object.getPrototypeOf(ua.prototype),"addModule",this).call(this,va);"toolbar"===va&&this.extendToolbar(ra);return ra}},{key:"buildButtons",value:function(va,ra){va.forEach(function(xa){(xa.getAttribute("class")||"").split(/\s+/).forEach(function(Aa){if(Aa.startsWith("ql-")&&(Aa=Aa.slice(3),null!=ra[Aa]))if("direction"===Aa)xa.innerHTML=ra[Aa][""]+ra[Aa].rtl;else if("string"===typeof ra[Aa])xa.innerHTML=
ra[Aa];else{var Ga=xa.value||"";null!=Ga&&ra[Aa][Ga]&&(xa.innerHTML=ra[Aa][Ga])}})})}},{key:"buildPickers",value:function(va,ra){var xa=this;this.pickers=va.map(function(Aa){if(Aa.classList.contains("ql-align"))return null==Aa.querySelector("option")&&a(Aa,ea),new ja.default(Aa,ra.align);if(Aa.classList.contains("ql-background")||Aa.classList.contains("ql-color")){var Ga=Aa.classList.contains("ql-background")?"background":"color";null==Aa.querySelector("option")&&a(Aa,ba,"background"===Ga?"#ffffff":
"#000000");return new aa.default(Aa,ra[Ga])}null==Aa.querySelector("option")&&(Aa.classList.contains("ql-font")?a(Aa,ma):Aa.classList.contains("ql-header")?a(Aa,ta):Aa.classList.contains("ql-size")&&a(Aa,na));return new fa.default(Aa)});this.quill.on(x.default.events.EDITOR_CHANGE,function(){xa.pickers.forEach(function(Aa){Aa.update()})})}}]);return ua}(f.default);ha.DEFAULTS=(0,ka.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},
image:function(){var pa=this,ua=this.container.querySelector("input.ql-image[type=file]");null==ua&&(ua=document.createElement("input"),ua.setAttribute("type","file"),ua.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),ua.classList.add("ql-image"),ua.addEventListener("change",function(){if(null!=ua.files&&null!=ua.files[0]){var va=new FileReader;va.onload=function(ra){var xa=pa.quill.getSelection(!0);pa.quill.updateContents((new n.default).retain(xa.index).delete(xa.length).insert({image:ra.target.result}),
x.default.sources.USER);pa.quill.setSelection(xa.index+1,x.default.sources.SILENT);ua.value=""};va.readAsDataURL(ua.files[0])}}),this.container.appendChild(ua));ua.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});ka=function(pa){function ua(va,ra){y(this,ua);va=r(this,(ua.__proto__||Object.getPrototypeOf(ua)).call(this,va,ra));va.textbox=va.root.querySelector('input[type="text"]');va.listen();return va}h(ua,pa);b(ua,[{key:"listen",value:function(){var va=this;this.textbox.addEventListener("keydown",
function(ra){ca.default.match(ra,"enter")?(va.save(),ra.preventDefault()):ca.default.match(ra,"escape")&&(va.cancel(),ra.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var va=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"link",ra=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");null!=ra?this.textbox.value=ra:va!==this.root.getAttribute("data-mode")&&(this.textbox.value=
"");this.position(this.quill.getBounds(this.quill.selection.savedRange));this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+va)||"");this.root.setAttribute("data-mode",va)}},{key:"restoreFocus",value:function(){var va=this.quill.scrollingContainer.scrollTop;this.quill.focus();this.quill.scrollingContainer.scrollTop=va}},{key:"save",value:function(){var va=this.textbox.value;switch(this.root.getAttribute("data-mode")){case "link":var ra=this.quill.root.scrollTop;
this.linkRange?(this.quill.formatText(this.linkRange,"link",va,x.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",va,x.default.sources.USER));this.quill.root.scrollTop=ra;break;case "video":ra=va;var xa=ra.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||ra.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);va=xa?(xa[1]||"https")+"://www.youtube.com/embed/"+xa[2]+"?showinfo=0":(xa=ra.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?
(xa[1]||"https")+"://player.vimeo.com/video/"+xa[2]+"/":ra;case "formula":va&&(ra=this.quill.getSelection(!0),null!=ra&&(ra=ra.index+ra.length,this.quill.insertEmbed(ra,this.root.getAttribute("data-mode"),va,x.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(ra+1," ",x.default.sources.USER),this.quill.setSelection(ra+2,x.default.sources.USER)))}this.textbox.value="";this.hide()}}]);return ua}(w.default);la.BaseTooltip=ka;la.default=ha},function(ka,la){Object.defineProperty(la,
"__esModule",{value:!0});ka=function(){function ha(){this.head=this.tail=null;this.length=0}ha.prototype.append=function(){for(var da=[],y=0;y<arguments.length;y++)da[y]=arguments[y];this.insertBefore(da[0],null);1<da.length&&this.append.apply(this,da.slice(1))};ha.prototype.contains=function(da){for(var y,r=this.iterator();y=r();)if(y===da)return!0;return!1};ha.prototype.insertBefore=function(da,y){da&&(da.next=y,null!=y?(da.prev=y.prev,null!=y.prev&&(y.prev.next=da),y.prev=da,y===this.head&&(this.head=
da)):null!=this.tail?(this.tail.next=da,da.prev=this.tail,this.tail=da):(da.prev=null,this.head=this.tail=da),this.length+=1)};ha.prototype.offset=function(da){for(var y=0,r=this.head;null!=r;){if(r===da)return y;y+=r.length();r=r.next}return-1};ha.prototype.remove=function(da){this.contains(da)&&(null!=da.prev&&(da.prev.next=da.next),null!=da.next&&(da.next.prev=da.prev),da===this.head&&(this.head=da.next),da===this.tail&&(this.tail=da.prev),--this.length)};ha.prototype.iterator=function(da){void 0===
da&&(da=this.head);return function(){var y=da;null!=da&&(da=da.next);return y}};ha.prototype.find=function(da,y){void 0===y&&(y=!1);for(var r,h=this.iterator();r=h();){var a=r.length();if(da<a||y&&da===a&&(null==r.next||0!==r.next.length()))return[r,da];da-=a}return[null,0]};ha.prototype.forEach=function(da){for(var y,r=this.iterator();y=r();)da(y)};ha.prototype.forEachAt=function(da,y,r){if(!(0>=y))for(var h=this.find(da),a=da-h[1],b=this.iterator(h[0]);(h=b())&&a<da+y;){var e=h.length();da>a?r(h,
da-a,Math.min(y,a+e-da)):r(h,0,Math.min(e,da+y-a));a+=e}};ha.prototype.map=function(da){return this.reduce(function(y,r){y.push(da(r));return y},[])};ha.prototype.reduce=function(da,y){for(var r,h=this.iterator();r=h();)y=da(y,r);return y};return ha}();la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var f in e)e.hasOwnProperty(f)&&(b[f]=e[f])};return function(b,e){function f(){this.constructor=
b}a(b,e);b.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(17),r=ha(1),h={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};ka=function(a){function b(e){var f=a.call(this,e)||this;f.scroll=f;f.observer=new MutationObserver(function(n){f.update(n)});f.observer.observe(f.domNode,h);f.attach();return f}da(b,a);b.prototype.detach=function(){a.prototype.detach.call(this);this.observer.disconnect()};
b.prototype.deleteAt=function(e,f){this.update();0===e&&f===this.length()?this.children.forEach(function(n){n.remove()}):a.prototype.deleteAt.call(this,e,f)};b.prototype.formatAt=function(e,f,n,x){this.update();a.prototype.formatAt.call(this,e,f,n,x)};b.prototype.insertAt=function(e,f,n){this.update();a.prototype.insertAt.call(this,e,f,n)};b.prototype.optimize=function(e,f){function n(fa){null!=fa.domNode[r.DATA_KEY]&&null!=fa.domNode[r.DATA_KEY].mutations&&(fa instanceof y.default&&fa.children.forEach(n),
fa.optimize(f))}function x(fa,ea){void 0===ea&&(ea=!0);null!=fa&&fa!==ca&&null!=fa.domNode.parentNode&&(null==fa.domNode[r.DATA_KEY].mutations&&(fa.domNode[r.DATA_KEY].mutations=[]),ea&&x(fa.parent))}var ca=this;void 0===e&&(e=[]);void 0===f&&(f={});a.prototype.optimize.call(this,f);for(var w=[].slice.call(this.observer.takeRecords());0<w.length;)e.push(w.pop());for(var aa=e,ja=0;0<aa.length;ja+=1){if(100<=ja)throw Error("[Parchment] Maximum optimize iterations reached");aa.forEach(function(fa){var ea=
r.find(fa.target,!0);null!=ea&&(ea.domNode===fa.target&&("childList"===fa.type?(x(r.find(fa.previousSibling,!1)),[].forEach.call(fa.addedNodes,function(ba){ba=r.find(ba,!1);x(ba,!1);ba instanceof y.default&&ba.children.forEach(function(ma){x(ma,!1)})})):"attributes"===fa.type&&x(ea.prev)),x(ea))});this.children.forEach(n);aa=[].slice.call(this.observer.takeRecords());for(w=aa.slice();0<w.length;)e.push(w.pop())}};b.prototype.update=function(e,f){var n=this;void 0===f&&(f={});e=e||this.observer.takeRecords();
e.map(function(x){var ca=r.find(x.target,!0);if(null==ca)return null;if(null==ca.domNode[r.DATA_KEY].mutations)return ca.domNode[r.DATA_KEY].mutations=[x],ca;ca.domNode[r.DATA_KEY].mutations.push(x);return null}).forEach(function(x){null!=x&&x!==n&&null!=x.domNode[r.DATA_KEY]&&x.update(x.domNode[r.DATA_KEY].mutations||[],f)});null!=this.domNode[r.DATA_KEY].mutations&&a.prototype.update.call(this,this.domNode[r.DATA_KEY].mutations,f);this.optimize(e,f)};b.blotName="scroll";b.defaultChild="block";b.scope=
r.Scope.BLOCK_BLOT;b.tagName="DIV";return b}(y.default);la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e])};return function(a,b){function e(){this.constructor=a}h(a,b);a.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(la,"__esModule",{value:!0});var y=ha(18),r=ha(1);ka=function(h){function a(){return null!==
h&&h.apply(this,arguments)||this}da(a,h);a.formats=function(b){if(b.tagName!==a.tagName)return h.formats.call(this,b)};a.prototype.format=function(b,e){var f=this;b!==this.statics.blotName||e?h.prototype.format.call(this,b,e):(this.children.forEach(function(n){n instanceof y.default||(n=n.wrap(a.blotName,!0));f.attributes.copy(n)}),this.unwrap())};a.prototype.formatAt=function(b,e,f,n){null!=this.formats()[f]||r.query(f,r.Scope.ATTRIBUTE)?this.isolate(b,e).format(f,n):h.prototype.formatAt.call(this,
b,e,f,n)};a.prototype.optimize=function(b){h.prototype.optimize.call(this,b);b=this.formats();if(0===Object.keys(b).length)return this.unwrap();var e=this.next,f;if(f=e instanceof a&&e.prev===this)a:if(f=e.formats(),Object.keys(b).length!==Object.keys(f).length)f=!1;else{for(var n in b)if(b[n]!==f[n]){f=!1;break a}f=!0}f&&(e.moveChildren(this),e.remove())};a.blotName="inline";a.scope=r.Scope.INLINE_BLOT;a.tagName="SPAN";return a}(y.default);la.default=ka},function(ka,la,ha){var da=this&&this.__extends||
function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(18);var y=ha(1);ha=function(r){function h(){return null!==r&&r.apply(this,arguments)||this}da(h,r);h.formats=function(a){var b=y.query(h.blotName).tagName;
if(a.tagName!==b)return r.formats.call(this,a)};h.prototype.format=function(a,b){null!=y.query(a,y.Scope.BLOCK)&&(a!==this.statics.blotName||b?r.prototype.format.call(this,a,b):this.replaceWith(h.blotName))};h.prototype.formatAt=function(a,b,e,f){null!=y.query(e,y.Scope.BLOCK)?this.format(e,f):r.prototype.formatAt.call(this,a,b,e,f)};h.prototype.insertAt=function(a,b,e){null==e||null!=y.query(b,y.Scope.INLINE)?r.prototype.insertAt.call(this,a,b,e):(a=this.split(a),b=y.create(b,e),a.parent.insertBefore(b,
a))};h.prototype.update=function(a,b){navigator.userAgent.match(/Trident/)?this.build():r.prototype.update.call(this,a,b)};h.blotName="block";h.scope=y.Scope.BLOCK_BLOT;h.tagName="P";return h}(ka.default);la.default=ha},function(ka,la,ha){var da=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,h){r.__proto__=h}||function(r,h){for(var a in h)h.hasOwnProperty(a)&&(r[a]=h[a])};return function(r,h){function a(){this.constructor=r}y(r,h);r.prototype=
null===h?Object.create(h):(a.prototype=h.prototype,new a)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){return null!==y&&y.apply(this,arguments)||this}da(r,y);r.formats=function(){};r.prototype.format=function(h,a){y.prototype.formatAt.call(this,0,this.length(),h,a)};r.prototype.formatAt=function(h,a,b,e){0===h&&a===this.length()?this.format(b,e):y.prototype.formatAt.call(this,h,a,b,e)};r.prototype.formats=function(){return this.statics.formats(this.domNode)};return r}(ha(19).default);
la.default=ka},function(ka,la,ha){var da=this&&this.__extends||function(){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,a){h.__proto__=a}||function(h,a){for(var b in a)a.hasOwnProperty(b)&&(h[b]=a[b])};return function(h,a){function b(){this.constructor=h}r(h,a);h.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}();Object.defineProperty(la,"__esModule",{value:!0});ka=ha(19);var y=ha(1);ha=function(r){function h(a){a=r.call(this,a)||this;a.text=a.statics.value(a.domNode);
return a}da(h,r);h.create=function(a){return document.createTextNode(a)};h.value=function(a){a=a.data;a.normalize&&(a=a.normalize());return a};h.prototype.deleteAt=function(a,b){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+b)};h.prototype.index=function(a,b){return this.domNode===a?b:-1};h.prototype.insertAt=function(a,b,e){null==e?(this.text=this.text.slice(0,a)+b+this.text.slice(a),this.domNode.data=this.text):r.prototype.insertAt.call(this,a,b,e)};h.prototype.length=function(){return this.text.length};
h.prototype.optimize=function(a){r.prototype.optimize.call(this,a);this.text=this.statics.value(this.domNode);0===this.text.length?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())};h.prototype.position=function(a){return[this.domNode,a]};h.prototype.split=function(a,b){void 0===b&&(b=!1);if(!b){if(0===a)return this;if(a===this.length())return this.next}a=y.create(this.domNode.splitText(a));this.parent.insertBefore(a,this.next);
this.text=this.statics.value(this.domNode);return a};h.prototype.update=function(a){var b=this;a.some(function(e){return"characterData"===e.type&&e.target===b.domNode})&&(this.text=this.statics.value(this.domNode))};h.prototype.value=function(){return this.text};h.blotName="text";h.scope=y.Scope.INLINE_BLOT;return h}(ka.default);la.default=ha},function(){var ka=document.createElement("div");ka.classList.toggle("test-class",!1);if(ka.classList.contains("test-class")){var la=DOMTokenList.prototype.toggle;
DOMTokenList.prototype.toggle=function(ha,da){return 1<arguments.length&&!this.contains(ha)===!da?da:la.call(this,ha)}}String.prototype.startsWith||(String.prototype.startsWith=function(ha,da){return this.substr(da||0,ha.length)===ha});String.prototype.endsWith||(String.prototype.endsWith=function(ha,da){var y=this.toString();if("number"!==typeof da||!isFinite(da)||Math.floor(da)!==da||da>y.length)da=y.length;da-=ha.length;ha=y.indexOf(ha,da);return-1!==ha&&ha===da});Array.prototype.find||Object.defineProperty(Array.prototype,
"find",{value:function(ha,da){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof ha)throw new TypeError("predicate must be a function");for(var y=Object(this),r=y.length>>>0,h,a=0;a<r;a++)if(h=y[a],ha.call(da,h,a,y))return h}});document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1);document.execCommand("autoUrlDetect",!1,!1)})},function(ka){function la(n,x,ca){if(n==x)return n?[[0,n]]:[];
if(0>ca||n.length<ca)ca=null;var w=y(n,x),aa=n.substring(0,w);n=n.substring(w);x=x.substring(w);w=r(n,x);var ja=n.substring(n.length-w);n=n.substring(0,n.length-w);x=x.substring(0,x.length-w);n=ha(n,x);aa&&n.unshift([0,aa]);ja&&n.push([0,ja]);a(n);null!=ca&&(n=b(n,ca));return n=e(n)}function ha(n,x){if(!n)return[[1,x]];if(!x)return[[-1,n]];var ca=n.length>x.length?n:x;var w=n.length>x.length?x:n,aa=ca.indexOf(w);if(-1!=aa)return ca=[[1,ca.substring(0,aa)],[0,w],[1,ca.substring(aa+w.length)]],n.length>
x.length&&(ca[0][0]=ca[2][0]=-1),ca;if(1==w.length)return[[-1,n],[1,x]];if(ca=h(n,x))return x=ca[1],w=ca[3],n=ca[4],ca=la(ca[0],ca[2]),x=la(x,w),ca.concat([[0,n]],x);a:{ca=n.length;w=x.length;aa=Math.ceil((ca+w)/2);for(var ja=2*aa,fa=Array(ja),ea=Array(ja),ba=0;ba<ja;ba++)fa[ba]=-1,ea[ba]=-1;fa[aa+1]=0;ea[aa+1]=0;ba=ca-w;for(var ma=0!=ba%2,ta=0,na=0,oa=0,pa=0,ua=0;ua<aa;ua++){for(var va=-ua+ta;va<=ua-na;va+=2){var ra=aa+va;var xa=va==-ua||va!=ua&&fa[ra-1]<fa[ra+1]?fa[ra+1]:fa[ra-1]+1;for(var Aa=xa-
va;xa<ca&&Aa<w&&n.charAt(xa)==x.charAt(Aa);)xa++,Aa++;fa[ra]=xa;if(xa>ca)na+=2;else if(Aa>w)ta+=2;else if(ma&&(ra=aa+ba-va,0<=ra&&ra<ja&&-1!=ea[ra])){var Ga=ca-ea[ra];if(xa>=Ga){n=da(n,x,xa,Aa);break a}}}for(va=-ua+oa;va<=ua-pa;va+=2){ra=aa+va;Ga=va==-ua||va!=ua&&ea[ra-1]<ea[ra+1]?ea[ra+1]:ea[ra-1]+1;for(xa=Ga-va;Ga<ca&&xa<w&&n.charAt(ca-Ga-1)==x.charAt(w-xa-1);)Ga++,xa++;ea[ra]=Ga;if(Ga>ca)pa+=2;else if(xa>w)oa+=2;else if(!ma&&(ra=aa+ba-va,0<=ra&&ra<ja&&-1!=fa[ra]&&(xa=fa[ra],Aa=aa+xa-ra,Ga=ca-Ga,
xa>=Ga))){n=da(n,x,xa,Aa);break a}}}n=[[-1,n],[1,x]]}return n}function da(n,x,ca,w){var aa=n.substring(ca),ja=x.substring(w);n=la(n.substring(0,ca),x.substring(0,w));aa=la(aa,ja);return n.concat(aa)}function y(n,x){if(!n||!x||n.charAt(0)!=x.charAt(0))return 0;for(var ca=0,w=Math.min(n.length,x.length),aa=w,ja=0;ca<aa;)n.substring(ja,aa)==x.substring(ja,aa)?ja=ca=aa:w=aa,aa=Math.floor((w-ca)/2+ca);return aa}function r(n,x){if(!n||!x||n.charAt(n.length-1)!=x.charAt(x.length-1))return 0;for(var ca=0,
w=Math.min(n.length,x.length),aa=w,ja=0;ca<aa;)n.substring(n.length-aa,n.length-ja)==x.substring(x.length-aa,x.length-ja)?ja=ca=aa:w=aa,aa=Math.floor((w-ca)/2+ca);return aa}function h(n,x){function ca(fa,ea,ba){for(var ma=fa.substring(ba,ba+Math.floor(fa.length/4)),ta=-1,na="",oa,pa,ua,va;-1!=(ta=ea.indexOf(ma,ta+1));){var ra=y(fa.substring(ba),ea.substring(ta)),xa=r(fa.substring(0,ba),ea.substring(0,ta));na.length<xa+ra&&(na=ea.substring(ta-xa,ta)+ea.substring(ta,ta+ra),oa=fa.substring(0,ba-xa),
pa=fa.substring(ba+ra),ua=ea.substring(0,ta-xa),va=ea.substring(ta+ra))}return 2*na.length>=fa.length?[oa,pa,ua,va,na]:null}var w=n.length>x.length?n:x,aa=n.length>x.length?x:n;if(4>w.length||2*aa.length<w.length)return null;var ja=ca(w,aa,Math.ceil(w.length/4));w=ca(w,aa,Math.ceil(w.length/2));if(ja||w)ja=w?ja?ja[4].length>w[4].length?ja:w:w:ja;else return null;n.length>x.length?(n=ja[0],x=ja[1],w=ja[2],aa=ja[3]):(w=ja[0],aa=ja[1],n=ja[2],x=ja[3]);return[n,x,w,aa,ja[4]]}function a(n){n.push([0,""]);
for(var x=0,ca=0,w=0,aa="",ja="",fa;x<n.length;)switch(n[x][0]){case 1:w++;ja+=n[x][1];x++;break;case -1:ca++;aa+=n[x][1];x++;break;case 0:1<ca+w?(0!==ca&&0!==w&&(fa=y(ja,aa),0!==fa&&(0<x-ca-w&&0==n[x-ca-w-1][0]?n[x-ca-w-1][1]+=ja.substring(0,fa):(n.splice(0,0,[0,ja.substring(0,fa)]),x++),ja=ja.substring(fa),aa=aa.substring(fa)),fa=r(ja,aa),0!==fa&&(n[x][1]=ja.substring(ja.length-fa)+n[x][1],ja=ja.substring(0,ja.length-fa),aa=aa.substring(0,aa.length-fa))),0===ca?n.splice(x-w,ca+w,[1,ja]):0===w?n.splice(x-
ca,ca+w,[-1,aa]):n.splice(x-ca-w,ca+w,[-1,aa],[1,ja]),x=x-ca-w+(ca?1:0)+(w?1:0)+1):0!==x&&0==n[x-1][0]?(n[x-1][1]+=n[x][1],n.splice(x,1)):x++,ca=w=0,ja=aa=""}""===n[n.length-1][1]&&n.pop();ca=!1;for(x=1;x<n.length-1;)0==n[x-1][0]&&0==n[x+1][0]&&(n[x][1].substring(n[x][1].length-n[x-1][1].length)==n[x-1][1]?(n[x][1]=n[x-1][1]+n[x][1].substring(0,n[x][1].length-n[x-1][1].length),n[x+1][1]=n[x-1][1]+n[x+1][1],n.splice(x-1,1),ca=!0):n[x][1].substring(0,n[x+1][1].length)==n[x+1][1]&&(n[x-1][1]+=n[x+1][1],
n[x][1]=n[x][1].substring(n[x+1][1].length)+n[x+1][1],n.splice(x+1,1),ca=!0)),x++;ca&&a(n)}function b(n,x){a:{var ca=n;if(0===x)var w=[0,ca];else{var aa=0;for(w=0;w<ca.length;w++){var ja=ca[w];if(-1===ja[0]||0===ja[0]){var fa=aa+ja[1].length;if(x===fa){w=[w+1,ca];break a}if(x<fa){ca=ca.slice();aa=x-aa;x=[ja[0],ja[1].slice(0,aa)];ja=[ja[0],ja[1].slice(aa)];ca.splice(w,1,x,ja);w=[w+1,ca];break a}aa=fa}}throw Error("cursor_pos is out of bounds!");}}ca=w[1];w=w[0];x=ca[w];ja=ca[w+1];return null==x||0!==
x[0]?n:null!=ja&&x[1]+ja[1]===ja[1]+x[1]?(ca.splice(w,2,ja,x),f(ca,w,2)):null!=ja&&0===ja[1].indexOf(x[1])?(ca.splice(w,2,[ja[0],x[1]],[0,x[1]]),n=ja[1].slice(x[1].length),0<n.length&&ca.splice(w+2,0,[ja[0],n]),f(ca,w,3)):n}function e(n){function x(ja){return 55296<=ja.charCodeAt(ja.length-1)&&56319>=ja.charCodeAt(ja.length-1)}function ca(ja){return 56320<=ja.charCodeAt(0)&&57343>=ja.charCodeAt(0)}for(var w=!1,aa=2;aa<n.length;aa+=1)0===n[aa-2][0]&&x(n[aa-2][1])&&-1===n[aa-1][0]&&ca(n[aa-1][1])&&
1===n[aa][0]&&ca(n[aa][1])&&(w=!0,n[aa-1][1]=n[aa-2][1].slice(-1)+n[aa-1][1],n[aa][1]=n[aa-2][1].slice(-1)+n[aa][1],n[aa-2][1]=n[aa-2][1].slice(0,-1));if(!w)return n;w=[];for(aa=0;aa<n.length;aa+=1)0<n[aa][1].length&&w.push(n[aa]);return w}function f(n,x,ca){for(ca=x+ca-1;0<=ca&&ca>=x-1;ca--)if(ca+1<n.length){var w=n[ca],aa=n[ca+1];w[0]===aa[1]&&n.splice(ca,2,[w[0],w[1]+aa[1]])}return n}la.INSERT=1;la.DELETE=-1;la.EQUAL=0;ka.exports=la},function(ka,la){function ha(da){var y=[],r;for(r in da)y.push(r);
return y}la=ka.exports="function"===typeof Object.keys?Object.keys:ha;la.shim=ha},function(ka,la){function ha(y){return"[object Arguments]"==Object.prototype.toString.call(y)}function da(y){return y&&"object"==typeof y&&"number"==typeof y.length&&Object.prototype.hasOwnProperty.call(y,"callee")&&!Object.prototype.propertyIsEnumerable.call(y,"callee")||!1}la="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();la=ka.exports=la?ha:da;la.supported=ha;la.unsupported=da},
function(ka){function la(){}function ha(h,a,b){this.fn=h;this.context=a;this.once=b||!1}function da(){this._events=new la;this._eventsCount=0}var y=Object.prototype.hasOwnProperty,r="~";Object.create&&(la.prototype=Object.create(null),(new la).__proto__||(r=!1));da.prototype.eventNames=function(){var h=[],a,b;if(0===this._eventsCount)return h;for(b in a=this._events)y.call(a,b)&&h.push(r?b.slice(1):b);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(a)):h};da.prototype.listeners=
function(h,a){h=this._events[r?r+h:h];if(a)return!!h;if(!h)return[];if(h.fn)return[h.fn];a=0;for(var b=h.length,e=Array(b);a<b;a++)e[a]=h[a].fn;return e};da.prototype.emit=function(h,a,b,e,f,n){var x=r?r+h:h;if(!this._events[x])return!1;x=this._events[x];var ca=arguments.length,w;if(x.fn){x.once&&this.removeListener(h,x.fn,void 0,!0);switch(ca){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,a),!0;case 3:return x.fn.call(x.context,a,b),!0;case 4:return x.fn.call(x.context,
a,b,e),!0;case 5:return x.fn.call(x.context,a,b,e,f),!0;case 6:return x.fn.call(x.context,a,b,e,f,n),!0}var aa=1;for(w=Array(ca-1);aa<ca;aa++)w[aa-1]=arguments[aa];x.fn.apply(x.context,w)}else{var ja=x.length;for(aa=0;aa<ja;aa++)switch(x[aa].once&&this.removeListener(h,x[aa].fn,void 0,!0),ca){case 1:x[aa].fn.call(x[aa].context);break;case 2:x[aa].fn.call(x[aa].context,a);break;case 3:x[aa].fn.call(x[aa].context,a,b);break;case 4:x[aa].fn.call(x[aa].context,a,b,e);break;default:if(!w){var fa=1;for(w=
Array(ca-1);fa<ca;fa++)w[fa-1]=arguments[fa]}x[aa].fn.apply(x[aa].context,w)}}return!0};da.prototype.on=function(h,a,b){a=new ha(a,b||this);h=r?r+h:h;this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],a]:this._events[h].push(a):(this._events[h]=a,this._eventsCount++);return this};da.prototype.once=function(h,a,b){a=new ha(a,b||this,!0);h=r?r+h:h;this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],a]:this._events[h].push(a):(this._events[h]=a,this._eventsCount++);return this};
da.prototype.removeListener=function(h,a,b,e){h=r?r+h:h;if(!this._events[h])return this;if(!a)return 0===--this._eventsCount?this._events=new la:delete this._events[h],this;var f=this._events[h];if(f.fn)f.fn!==a||e&&!f.once||b&&f.context!==b||(0===--this._eventsCount?this._events=new la:delete this._events[h]);else{for(var n=0,x=[],ca=f.length;n<ca;n++)(f[n].fn!==a||e&&!f[n].once||b&&f[n].context!==b)&&x.push(f[n]);x.length?this._events[h]=1===x.length?x[0]:x:0===--this._eventsCount?this._events=
new la:delete this._events[h]}return this};da.prototype.removeAllListeners=function(h){h?(h=r?r+h:h,this._events[h]&&(0===--this._eventsCount?this._events=new la:delete this._events[h])):(this._events=new la,this._eventsCount=0);return this};da.prototype.off=da.prototype.removeListener;da.prototype.addListener=da.prototype.on;da.prototype.setMaxListeners=function(){return this};da.prefixed=r;da.EventEmitter=da;"undefined"!==typeof ka&&(ka.exports=da)},function(ka,la,ha){function da(Ia){return Ia&&
Ia.__esModule?Ia:{default:Ia}}function y(Ia,Ha,wa){Ha in Ia?Object.defineProperty(Ia,Ha,{value:wa,enumerable:!0,configurable:!0,writable:!0}):Ia[Ha]=wa;return Ia}function r(Ia,Ha){if(!Ia)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!Ha||"object"!==typeof Ha&&"function"!==typeof Ha?Ia:Ha}function h(Ia,Ha){if("function"!==typeof Ha&&null!==Ha)throw new TypeError("Super expression must either be null or a function, not "+typeof Ha);Ia.prototype=Object.create(Ha&&
Ha.prototype,{constructor:{value:Ia,enumerable:!1,writable:!0,configurable:!0}});Ha&&(Object.setPrototypeOf?Object.setPrototypeOf(Ia,Ha):Ia.__proto__=Ha)}function a(Ia,Ha,wa){return"object"===("undefined"===typeof Ha?"undefined":ea(Ha))?Object.keys(Ha).reduce(function(Fa,Oa){return a(Fa,Oa,Ha[Oa])},Ia):Ia.reduce(function(Fa,Oa){return Oa.attributes&&Oa.attributes[Ha]?Fa.push(Oa):Fa.insert(Oa.insert,(0,ta.default)({},y({},Ha,wa),Oa.attributes))},new na.default)}function b(Ia){return Ia.nodeType!==
Node.ELEMENT_NODE?{}:Ia["__ql-computed-style"]||(Ia["__ql-computed-style"]=window.getComputedStyle(Ia))}function e(Ia,Ha){for(var wa="",Fa=Ia.ops.length-1;0<=Fa&&wa.length<Ha.length;--Fa){var Oa=Ia.ops[Fa];if("string"!==typeof Oa.insert)break;wa=Oa.insert+wa}return wa.slice(-1*Ha.length)===Ha}function f(Ia){if(0===Ia.childNodes.length)return!1;Ia=b(Ia);return-1<["block","list-item"].indexOf(Ia.display)}function n(Ia,Ha,wa){return Ia.nodeType===Ia.TEXT_NODE?wa.reduce(function(Fa,Oa){return Oa(Ia,Fa)},
new na.default):Ia.nodeType===Ia.ELEMENT_NODE?[].reduce.call(Ia.childNodes||[],function(Fa,Oa){var Ma=n(Oa,Ha,wa);Oa.nodeType===Ia.ELEMENT_NODE&&(Ma=Ha.reduce(function(Ua,Wa){return Wa(Oa,Ua)},Ma),Ma=(Oa["__ql-matcher"]||[]).reduce(function(Ua,Wa){return Wa(Oa,Ua)},Ma));return Fa.concat(Ma)},new na.default):new na.default}function x(Ia,Ha,wa){return a(wa,Ia,!0)}function ca(Ia,Ha){var wa=oa.default.Attributor.Attribute.keys(Ia),Fa=oa.default.Attributor.Class.keys(Ia),Oa=oa.default.Attributor.Style.keys(Ia),
Ma={};wa.concat(Fa).concat(Oa).forEach(function(Ua){var Wa=oa.default.query(Ua,oa.default.Scope.ATTRIBUTE);if(null!=Wa&&(Ma[Wa.attrName]=Wa.value(Ia),Ma[Wa.attrName]))return;Wa=Qa[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Ma[Wa.attrName]=Wa.value(Ia)||void 0);Wa=Ca[Ua];null==Wa||Wa.attrName!==Ua&&Wa.keyName!==Ua||(Wa=Ca[Ua],Ma[Wa.attrName]=Wa.value(Ia)||void 0)});0<Object.keys(Ma).length&&(Ha=a(Ha,Ma));return Ha}function w(Ia,Ha){var wa=oa.default.query(Ia);if(null==wa)return Ha;if(wa.prototype instanceof
oa.default.Embed){var Fa={},Oa=wa.value(Ia);null!=Oa&&(Fa[wa.blotName]=Oa,Ha=(new na.default).insert(Fa,wa.formats(Ia)))}else"function"===typeof wa.formats&&(Ha=a(Ha,wa.blotName,wa.formats(Ia)));return Ha}function aa(Ia,Ha){e(Ha,"\n")||(f(Ia)||0<Ha.length()&&Ia.nextSibling&&f(Ia.nextSibling))&&Ha.insert("\n");return Ha}function ja(Ia,Ha){if(f(Ia)&&null!=Ia.nextElementSibling&&!e(Ha,"\n\n")){var wa=Ia.offsetHeight+parseFloat(b(Ia).marginTop)+parseFloat(b(Ia).marginBottom);Ia.nextElementSibling.offsetTop>
Ia.offsetTop+1.5*wa&&Ha.insert("\n")}return Ha}function fa(Ia,Ha){var wa=Ia.data;if("O:P"===Ia.parentNode.tagName)return Ha.insert(wa.trim());if(0===wa.trim().length&&Ia.parentNode.classList.contains("ql-clipboard"))return Ha;if(!b(Ia.parentNode).whiteSpace.startsWith("pre")){var Fa=function(Oa,Ma){Ma=Ma.replace(/[^\u00a0]/g,"");return 1>Ma.length&&Oa?" ":Ma};wa=wa.replace(/\r\n/g," ").replace(/\n/g," ");wa=wa.replace(/\s\s+/g,Fa.bind(Fa,!0));if(null==Ia.previousSibling&&f(Ia.parentNode)||null!=Ia.previousSibling&&
f(Ia.previousSibling))wa=wa.replace(/^\s+/,Fa.bind(Fa,!1));if(null==Ia.nextSibling&&f(Ia.parentNode)||null!=Ia.nextSibling&&f(Ia.nextSibling))wa=wa.replace(/\s+$/,Fa.bind(Fa,!1))}return Ha.insert(wa)}Object.defineProperty(la,"__esModule",{value:!0});la.matchText=la.matchSpacing=la.matchNewline=la.matchBlot=la.matchAttributor=la.default=void 0;var ea="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(Ia){return typeof Ia}:function(Ia){return Ia&&"function"===typeof Symbol&&Ia.constructor===
Symbol&&Ia!==Symbol.prototype?"symbol":typeof Ia},ba=function(){return function(Ia,Ha){if(Array.isArray(Ia))return Ia;if(Symbol.iterator in Object(Ia)){var wa=[],Fa=!0,Oa=!1,Ma=void 0;try{for(var Ua=Ia[Symbol.iterator](),Wa;!(Fa=(Wa=Ua.next()).done)&&(wa.push(Wa.value),!Ha||wa.length!==Ha);Fa=!0);}catch(ab){Oa=!0,Ma=ab}finally{try{if(!Fa&&Ua["return"])Ua["return"]()}finally{if(Oa)throw Ma;}}return wa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ma=function(){function Ia(Ha,
wa){for(var Fa=0;Fa<wa.length;Fa++){var Oa=wa[Fa];Oa.enumerable=Oa.enumerable||!1;Oa.configurable=!0;"value"in Oa&&(Oa.writable=!0);Object.defineProperty(Ha,Oa.key,Oa)}}return function(Ha,wa,Fa){wa&&Ia(Ha.prototype,wa);Fa&&Ia(Ha,Fa);return Ha}}();ka=ha(3);var ta=da(ka);ka=ha(2);var na=da(ka);ka=ha(0);var oa=da(ka);ka=ha(5);var pa=da(ka);ka=ha(10);ka=da(ka);var ua=ha(9);ua=da(ua);var va=ha(36),ra=ha(37),xa=ha(13),Aa=da(xa);xa=ha(26);var Ga=ha(38),Ka=ha(39);ha=ha(40);var Da=(0,ka.default)("quill:clipboard"),
Pa=[[Node.TEXT_NODE,fa],[Node.TEXT_NODE,aa],["br",function(Ia,Ha){e(Ha,"\n")||Ha.insert("\n");return Ha}],[Node.ELEMENT_NODE,aa],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,ja],[Node.ELEMENT_NODE,ca],[Node.ELEMENT_NODE,function(Ia,Ha){var wa={},Fa=Ia.style||{};Fa.fontStyle&&"italic"===b(Ia).fontStyle&&(wa.italic=!0);Fa.fontWeight&&(b(Ia).fontWeight.startsWith("bold")||700<=parseInt(b(Ia).fontWeight))&&(wa.bold=!0);0<Object.keys(wa).length&&(Ha=a(Ha,wa));0<parseFloat(Fa.textIndent||0)&&(Ha=(new na.default).insert("\t").concat(Ha));
return Ha}],["li",function(Ia,Ha){var wa=oa.default.query(Ia);if(null==wa||"list-item"!==wa.blotName||!e(Ha,"\n"))return Ha;wa=-1;for(Ia=Ia.parentNode;!Ia.classList.contains("ql-clipboard");)"list"===(oa.default.query(Ia)||{}).blotName&&(wa+=1),Ia=Ia.parentNode;return 0>=wa?Ha:Ha.compose((new na.default).retain(Ha.length()-1).retain(1,{indent:wa}))}],["b",x.bind(x,"bold")],["i",x.bind(x,"italic")],["style",function(){return new na.default}]],Qa=[va.AlignAttribute,Ga.DirectionAttribute].reduce(function(Ia,
Ha){Ia[Ha.keyName]=Ha;return Ia},{}),Ca=[va.AlignStyle,ra.BackgroundStyle,xa.ColorStyle,Ga.DirectionStyle,Ka.FontStyle,ha.SizeStyle].reduce(function(Ia,Ha){Ia[Ha.keyName]=Ha;return Ia},{});ha=function(Ia){function Ha(wa,Fa){if(!(this instanceof Ha))throw new TypeError("Cannot call a class as a function");var Oa=r(this,(Ha.__proto__||Object.getPrototypeOf(Ha)).call(this,wa,Fa));Oa.quill.root.addEventListener("paste",Oa.onPaste.bind(Oa));Oa.container=Oa.quill.addContainer("ql-clipboard");Oa.container.setAttribute("contenteditable",
!0);Oa.container.setAttribute("tabindex",-1);Oa.matchers=[];Pa.concat(Oa.options.matchers).forEach(function(Ma){Ma=ba(Ma,2);var Ua=Ma[1];(Fa.matchVisual||Ua!==ja)&&Oa.addMatcher(Ma[0],Ua)});return Oa}h(Ha,Ia);ma(Ha,[{key:"addMatcher",value:function(wa,Fa){this.matchers.push([wa,Fa])}},{key:"convert",value:function(wa){if("string"===typeof wa)return this.container.innerHTML=wa.replace(/>\r?\n +</g,"><"),this.convert();wa=this.quill.getFormat(this.quill.selection.savedRange.index);if(wa[Aa.default.blotName]){var Fa=
this.container.innerText;this.container.innerHTML="";return(new na.default).insert(Fa,y({},Aa.default.blotName,wa[Aa.default.blotName]))}wa=this.prepareMatching();wa=ba(wa,2);wa=n(this.container,wa[0],wa[1]);e(wa,"\n")&&null==wa.ops[wa.ops.length-1].attributes&&(wa=wa.compose((new na.default).retain(wa.length()-1).delete(1)));Da.log("convert",this.container.innerHTML,wa);this.container.innerHTML="";return wa}},{key:"dangerouslyPasteHTML",value:function(wa,Fa){var Oa=2<arguments.length&&void 0!==arguments[2]?
arguments[2]:pa.default.sources.API;if("string"===typeof wa)this.quill.setContents(this.convert(wa),Fa),this.quill.setSelection(0,pa.default.sources.SILENT);else{var Ma=this.convert(Fa);this.quill.updateContents((new na.default).retain(wa).concat(Ma),Oa);this.quill.setSelection(wa+Ma.length(),pa.default.sources.SILENT)}}},{key:"onPaste",value:function(wa){var Fa=this;if(!wa.defaultPrevented&&this.quill.isEnabled()){var Oa=this.quill.getSelection(),Ma=(new na.default).retain(Oa.index),Ua=this.quill.scrollingContainer.scrollTop;
this.container.focus();this.quill.selection.update(pa.default.sources.SILENT);setTimeout(function(){Ma=Ma.concat(Fa.convert()).delete(Oa.length);Fa.quill.updateContents(Ma,pa.default.sources.USER);Fa.quill.setSelection(Ma.length()-Oa.length,pa.default.sources.SILENT);Fa.quill.scrollingContainer.scrollTop=Ua;Fa.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var wa=this,Fa=[],Oa=[];this.matchers.forEach(function(Ma){Ma=ba(Ma,2);var Ua=Ma[0],Wa=Ma[1];switch(Ua){case Node.TEXT_NODE:Oa.push(Wa);
break;case Node.ELEMENT_NODE:Fa.push(Wa);break;default:[].forEach.call(wa.container.querySelectorAll(Ua),function(ab){ab["__ql-matcher"]=ab["__ql-matcher"]||[];ab["__ql-matcher"].push(Wa)})}});return[Fa,Oa]}}]);return Ha}(ua.default);ha.DEFAULTS={matchers:[],matchVisual:!0};la.default=ha;la.matchAttributor=ca;la.matchBlot=w;la.matchNewline=aa;la.matchSpacing=ja;la.matchText=fa},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+
typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,
e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"optimize",value:function(e){r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,e);this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(6)).default);
ka.blotName="bold";ka.tagName=["STRONG","B"];la.default=ka},function(ka,la,ha){function da(aa){return aa&&aa.__esModule?aa:{default:aa}}function y(aa,ja){if(!aa)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ja||"object"!==typeof ja&&"function"!==typeof ja?aa:ja}function r(aa,ja){if("function"!==typeof ja&&null!==ja)throw new TypeError("Super expression must either be null or a function, not "+typeof ja);aa.prototype=Object.create(ja&&ja.prototype,{constructor:{value:aa,
enumerable:!1,writable:!0,configurable:!0}});ja&&(Object.setPrototypeOf?Object.setPrototypeOf(aa,ja):aa.__proto__=ja)}function h(aa,ja,fa){var ea=document.createElement("button");ea.setAttribute("type","button");ea.classList.add("ql-"+ja);null!=fa&&(ea.value=fa);aa.appendChild(ea)}function a(aa,ja){Array.isArray(ja[0])||(ja=[ja]);ja.forEach(function(fa){var ea=document.createElement("span");ea.classList.add("ql-formats");fa.forEach(function(ba){if("string"===typeof ba)h(ea,ba);else{var ma=Object.keys(ba)[0];
ba=ba[ma];Array.isArray(ba)?b(ea,ma,ba):h(ea,ma,ba)}});aa.appendChild(ea)})}function b(aa,ja,fa){var ea=document.createElement("select");ea.classList.add("ql-"+ja);fa.forEach(function(ba){var ma=document.createElement("option");!1!==ba?ma.setAttribute("value",ba):ma.setAttribute("selected","selected");ea.appendChild(ma)});aa.appendChild(ea)}Object.defineProperty(la,"__esModule",{value:!0});la.addControls=la.default=void 0;var e=function(){return function(aa,ja){if(Array.isArray(aa))return aa;if(Symbol.iterator in
Object(aa)){var fa=[],ea=!0,ba=!1,ma=void 0;try{for(var ta=aa[Symbol.iterator](),na;!(ea=(na=ta.next()).done)&&(fa.push(na.value),!ja||fa.length!==ja);ea=!0);}catch(oa){ba=!0,ma=oa}finally{try{if(!ea&&ta["return"])ta["return"]()}finally{if(ba)throw ma;}}return fa}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),f=function(){function aa(ja,fa){for(var ea=0;ea<fa.length;ea++){var ba=fa[ea];ba.enumerable=ba.enumerable||!1;ba.configurable=!0;"value"in ba&&(ba.writable=
!0);Object.defineProperty(ja,ba.key,ba)}}return function(ja,fa,ea){fa&&aa(ja.prototype,fa);ea&&aa(ja,ea);return ja}}();ka=ha(2);var n=da(ka);ka=ha(0);var x=da(ka);ka=ha(5);var ca=da(ka);ka=ha(10);ka=da(ka);ha=ha(9);ha=da(ha);var w=(0,ka.default)("quill:toolbar");ha=function(aa){function ja(fa,ea){if(!(this instanceof ja))throw new TypeError("Cannot call a class as a function");var ba=y(this,(ja.__proto__||Object.getPrototypeOf(ja)).call(this,fa,ea));Array.isArray(ba.options.container)?(ea=document.createElement("div"),
a(ea,ba.options.container),fa.container.parentNode.insertBefore(ea,fa.container),ba.container=ea):ba.container="string"===typeof ba.options.container?document.querySelector(ba.options.container):ba.options.container;if(!(ba.container instanceof HTMLElement)){var ma;return ma=w.error("Container required for toolbar",ba.options),y(ba,ma)}ba.container.classList.add("ql-toolbar");ba.controls=[];ba.handlers={};Object.keys(ba.options.handlers).forEach(function(ta){ba.addHandler(ta,ba.options.handlers[ta])});
[].forEach.call(ba.container.querySelectorAll("button, select"),function(ta){ba.attach(ta)});ba.quill.on(ca.default.events.EDITOR_CHANGE,function(ta,na){ta===ca.default.events.SELECTION_CHANGE&&ba.update(na)});ba.quill.on(ca.default.events.SCROLL_OPTIMIZE,function(){var ta=ba.quill.selection.getRange();ta=e(ta,1)[0];ba.update(ta)});return ba}r(ja,aa);f(ja,[{key:"addHandler",value:function(fa,ea){this.handlers[fa]=ea}},{key:"attach",value:function(fa){var ea=this,ba=[].find.call(fa.classList,function(ma){return 0===
ma.indexOf("ql-")});if(ba){ba=ba.slice(3);"BUTTON"===fa.tagName&&fa.setAttribute("type","button");if(null==this.handlers[ba]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[ba]){w.warn("ignoring attaching to disabled format",ba,fa);return}if(null==x.default.query(ba)){w.warn("ignoring attaching to nonexistent format",ba,fa);return}}fa.addEventListener("SELECT"===fa.tagName?"change":"click",function(ma){if("SELECT"===fa.tagName){if(0>fa.selectedIndex)return;var ta=fa.options[fa.selectedIndex];
ta=ta.hasAttribute("selected")?!1:ta.value||!1}else ta=fa.classList.contains("ql-active")?!1:fa.value||!fa.hasAttribute("value"),ma.preventDefault();ea.quill.focus();ma=ea.quill.selection.getRange();ma=e(ma,1)[0];if(null!=ea.handlers[ba])ea.handlers[ba].call(ea,ta);else if(x.default.query(ba).prototype instanceof x.default.Embed){ta=prompt("Enter "+ba);if(!ta)return;var na=ea.quill,oa=na.updateContents,pa=(new n.default).retain(ma.index).delete(ma.length),ua=pa.insert,va={},ra=ba;ra in va?Object.defineProperty(va,
ra,{value:ta,enumerable:!0,configurable:!0,writable:!0}):va[ra]=ta;oa.call(na,ua.call(pa,va),ca.default.sources.USER)}else ea.quill.format(ba,ta,ca.default.sources.USER);ea.update(ma)});this.controls.push([ba,fa])}}},{key:"update",value:function(fa){var ea=null==fa?{}:this.quill.getFormat(fa);this.controls.forEach(function(ba){ba=e(ba,2);var ma=ba[0];ba=ba[1];if("SELECT"===ba.tagName){var ta=void 0;null==fa?ta=null:null==ea[ma]?ta=ba.querySelector("option[selected]"):Array.isArray(ea[ma])||(ma=ea[ma],
"string"===typeof ma&&(ma=ma.replace(/"/g,'\\"')),ta=ba.querySelector('option[value="'+ma+'"]'));null==ta?(ba.value="",ba.selectedIndex=-1):ta.selected=!0}else null==fa?ba.classList.remove("ql-active"):ba.hasAttribute("value")?(ma=ea[ma]===ba.getAttribute("value")||null!=ea[ma]&&ea[ma].toString()===ba.getAttribute("value")||null==ea[ma]&&!ba.getAttribute("value"),ba.classList.toggle("ql-active",ma)):ba.classList.toggle("ql-active",null!=ea[ma])})}}]);return ja}(ha.default);ha.DEFAULTS={};ha.DEFAULTS=
{container:null,handlers:{clean:function(){var aa=this,ja=this.quill.getSelection();null!=ja&&(0==ja.length?(ja=this.quill.getFormat(),Object.keys(ja).forEach(function(fa){null!=x.default.query(fa,x.default.Scope.INLINE)&&aa.quill.format(fa,!1)})):this.quill.removeFormat(ja,ca.default.sources.USER))},direction:function(aa){var ja=this.quill.getFormat().align;"rtl"===aa&&null==ja?this.quill.format("align","right",ca.default.sources.USER):aa||"right"!==ja||this.quill.format("align",!1,ca.default.sources.USER);
this.quill.format("direction",aa,ca.default.sources.USER)},indent:function(aa){var ja=this.quill.getFormat(this.quill.getSelection()),fa=parseInt(ja.indent||0);if("+1"===aa||"-1"===aa)aa="+1"===aa?1:-1,"rtl"===ja.direction&&(aa*=-1),this.quill.format("indent",fa+aa,ca.default.sources.USER)},link:function(aa){!0===aa&&(aa=prompt("Enter link URL:"));this.quill.format("link",aa,ca.default.sources.USER)},list:function(aa){var ja=this.quill.getFormat(this.quill.getSelection());"check"===aa?"checked"===
ja.list||"unchecked"===ja.list?this.quill.format("list",!1,ca.default.sources.USER):this.quill.format("list","unchecked",ca.default.sources.USER):this.quill.format("list",aa,ca.default.sources.USER)}}};la.default=ha;la.addControls=a},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(ka,
la,ha){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function y(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,
"__esModule",{value:!0});var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?
void 0:e.call(f)}};ka=function(b){function e(f,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");f=da(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));f.label.innerHTML=n;f.container.classList.add("ql-color-picker");[].slice.call(f.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(x){x.classList.add("ql-primary")});return f}y(e,b);r(e,[{key:"buildItem",value:function(f){var n=h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),
"buildItem",this).call(this,f);n.style.backgroundColor=f.getAttribute("value")||"";return n}},{key:"selectItem",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,f,n);n=this.label.querySelector(".ql-color-label");f=f?f.getAttribute("data-value")||"":"";n&&("line"===n.tagName?n.style.stroke=f:n.style.fill=f)}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);la.default=ka},function(ka,la,ha){function da(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!b||"object"!==typeof b&&"function"!==typeof b?a:b}function y(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(la,"__esModule",{value:!0});var r=function(){function a(b,e){for(var f=0;f<e.length;f++){var n=e[f];n.enumerable=
n.enumerable||!1;n.configurable=!0;"value"in n&&(n.writable=!0);Object.defineProperty(b,n.key,n)}}return function(b,e,f){e&&a(b.prototype,e);f&&a(b,f);return b}}(),h=function n(b,e,f){null===b&&(b=Function.prototype);var x=Object.getOwnPropertyDescriptor(b,e);if(void 0===x){if(b=Object.getPrototypeOf(b),null!==b)return n(b,e,f)}else{if("value"in x)return x.value;e=x.get;return void 0===e?void 0:e.call(f)}};ka=function(b){function e(f,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");
f=da(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,f));f.container.classList.add("ql-icon-picker");[].forEach.call(f.container.querySelectorAll(".ql-picker-item"),function(x){x.innerHTML=n[x.getAttribute("data-value")||""]});f.defaultItem=f.container.querySelector(".ql-selected");f.selectItem(f.defaultItem);return f}y(e,b);r(e,[{key:"selectItem",value:function(f,n){h(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,f,n);f=f||this.defaultItem;this.label.innerHTML=
f.innerHTML}}]);return e}(function(b){return b&&b.__esModule?b:{default:b}}(ha(28)).default);la.default=ka},function(ka,la){Object.defineProperty(la,"__esModule",{value:!0});var ha=function(){function da(y,r){for(var h=0;h<r.length;h++){var a=r[h];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0);Object.defineProperty(y,a.key,a)}}return function(y,r,h){r&&da(y.prototype,r);h&&da(y,h);return y}}();ka=function(){function da(y,r){var h=this;if(!(this instanceof da))throw new TypeError("Cannot call a class as a function");
this.quill=y;this.boundsContainer=r||document.body;this.root=y.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"});this.hide()}ha(da,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(y){var r=y.left+y.width/2-this.root.offsetWidth/2,h=y.bottom+this.quill.root.scrollTop;this.root.style.left=
r+"px";this.root.style.top=h+"px";this.root.classList.remove("ql-flip");var a=this.boundsContainer.getBoundingClientRect(),b=this.root.getBoundingClientRect(),e=0;b.right>a.right&&(e=a.right-b.right,this.root.style.left=r+e+"px");b.left<a.left&&(e=a.left-b.left,this.root.style.left=r+e+"px");b.bottom>a.bottom&&(this.root.style.top=h-(y.bottom-y.top+(b.bottom-b.top))+"px",this.root.classList.add("ql-flip"));return e}},{key:"show",value:function(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}]);
return da}();la.default=ka},function(ka,la,ha){function da(ba){return ba&&ba.__esModule?ba:{default:ba}}function y(ba,ma){if(!(ba instanceof ma))throw new TypeError("Cannot call a class as a function");}function r(ba,ma){if(!ba)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ma||"object"!==typeof ma&&"function"!==typeof ma?ba:ma}function h(ba,ma){if("function"!==typeof ma&&null!==ma)throw new TypeError("Super expression must either be null or a function, not "+
typeof ma);ba.prototype=Object.create(ma&&ma.prototype,{constructor:{value:ba,enumerable:!1,writable:!0,configurable:!0}});ma&&(Object.setPrototypeOf?Object.setPrototypeOf(ba,ma):ba.__proto__=ma)}Object.defineProperty(la,"__esModule",{value:!0});var a=function(){return function(ba,ma){if(Array.isArray(ba))return ba;if(Symbol.iterator in Object(ba)){var ta=[],na=!0,oa=!1,pa=void 0;try{for(var ua=ba[Symbol.iterator](),va;!(na=(va=ua.next()).done)&&(ta.push(va.value),!ma||ta.length!==ma);na=!0);}catch(ra){oa=
!0,pa=ra}finally{try{if(!na&&ua["return"])ua["return"]()}finally{if(oa)throw pa;}}return ta}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),b=function oa(ma,ta,na){null===ma&&(ma=Function.prototype);var pa=Object.getOwnPropertyDescriptor(ma,ta);if(void 0===pa){if(ma=Object.getPrototypeOf(ma),null!==ma)return oa(ma,ta,na)}else{if("value"in pa)return pa.value;ta=pa.get;return void 0===ta?void 0:ta.call(na)}},e=function(){function ma(ta,na){for(var oa=0;oa<na.length;oa++){var pa=
na[oa];pa.enumerable=pa.enumerable||!1;pa.configurable=!0;"value"in pa&&(pa.writable=!0);Object.defineProperty(ta,pa.key,pa)}}return function(ta,na,oa){na&&ma(ta.prototype,na);oa&&ma(ta,oa);return ta}}();ka=ha(3);ka=da(ka);var f=ha(8),n=da(f);f=ha(43);var x=da(f),ca=ha(27),w=da(ca),aa=ha(15);ha=ha(41);var ja=da(ha),fa=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];ha=function(ma){function ta(na,oa){y(this,ta);null!=oa.modules.toolbar&&
null==oa.modules.toolbar.container&&(oa.modules.toolbar.container=fa);na=r(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,na,oa));na.quill.container.classList.add("ql-snow");return na}h(ta,ma);e(ta,[{key:"extendToolbar",value:function(na){na.container.classList.add("ql-snow");this.buildButtons([].slice.call(na.container.querySelectorAll("button")),ja.default);this.buildPickers([].slice.call(na.container.querySelectorAll("select")),ja.default);this.tooltip=new ea(this.quill,this.options.bounds);
na.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(oa,pa){na.handlers.link.call(na,!pa.format.link)})}}]);return ta}(x.default);ha.DEFAULTS=(0,ka.default)(!0,{},x.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(ma){ma?(ma=this.quill.getSelection(),null!=ma&&0!=ma.length&&(ma=this.quill.getText(ma),/^\S+@\S+\.\S+$/.test(ma)&&0!==ma.indexOf("mailto:")&&(ma="mailto:"+ma),this.quill.theme.tooltip.edit("link",ma))):this.quill.format("link",
!1)}}}}});var ea=function(ma){function ta(na,oa){y(this,ta);na=r(this,(ta.__proto__||Object.getPrototypeOf(ta)).call(this,na,oa));na.preview=na.root.querySelector("a.ql-preview");return na}h(ta,ma);e(ta,[{key:"listen",value:function(){var na=this;b(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"listen",this).call(this);this.root.querySelector("a.ql-action").addEventListener("click",function(oa){na.root.classList.contains("ql-editing")?na.save():na.edit("link",na.preview.textContent);
oa.preventDefault()});this.root.querySelector("a.ql-remove").addEventListener("click",function(oa){if(null!=na.linkRange){var pa=na.linkRange;na.restoreFocus();na.quill.formatText(pa,"link",!1,n.default.sources.USER);delete na.linkRange}oa.preventDefault();na.hide()});this.quill.on(n.default.events.SELECTION_CHANGE,function(oa,pa,ua){if(null!=oa){if(0===oa.length&&ua===n.default.sources.USER){if(pa=na.quill.scroll.descendant(w.default,oa.index),ua=a(pa,2),pa=ua[0],ua=ua[1],null!=pa){na.linkRange=
new aa.Range(oa.index-ua,pa.length());oa=w.default.formats(pa.domNode);na.preview.textContent=oa;na.preview.setAttribute("href",oa);na.show();na.position(na.quill.getBounds(na.linkRange));return}}else delete na.linkRange;na.hide()}})}},{key:"show",value:function(){b(ta.prototype.__proto__||Object.getPrototypeOf(ta.prototype),"show",this).call(this);this.root.removeAttribute("data-mode")}}]);return ta}(f.BaseTooltip);ea.TEMPLATE='<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-action"></a><a class="ql-remove"></a>';
la.default=ha},function(ka,la,ha){function da(Qa){return Qa&&Qa.__esModule?Qa:{default:Qa}}Object.defineProperty(la,"__esModule",{value:!0});ka=ha(29);ka=da(ka);var y=ha(36),r=ha(38),h=ha(64),a=ha(65);a=da(a);var b=ha(66);b=da(b);var e=ha(67),f=da(e),n=ha(37),x=ha(26),ca=ha(39),w=ha(40),aa=ha(56);aa=da(aa);var ja=ha(68);ja=da(ja);var fa=ha(27);fa=da(fa);var ea=ha(69);ea=da(ea);var ba=ha(70);ba=da(ba);var ma=ha(71);ma=da(ma);var ta=ha(72);ta=da(ta);var na=ha(73);na=da(na);var oa=ha(13),pa=da(oa),ua=
ha(74);ua=da(ua);var va=ha(75);va=da(va);var ra=ha(57);ra=da(ra);var xa=ha(41);xa=da(xa);var Aa=ha(28);Aa=da(Aa);var Ga=ha(59);Ga=da(Ga);var Ka=ha(60);Ka=da(Ka);var Da=ha(61);Da=da(Da);var Pa=ha(108);Pa=da(Pa);ha=ha(62);ha=da(ha);ka.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":y.AlignClass,"attributors/class/background":n.BackgroundClass,"attributors/class/color":x.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":ca.FontClass,
"attributors/class/size":w.SizeClass,"attributors/style/align":y.AlignStyle,"attributors/style/background":n.BackgroundStyle,"attributors/style/color":x.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":ca.FontStyle,"attributors/style/size":w.SizeStyle},!0);ka.default.register({"formats/align":y.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":h.IndentClass,"formats/background":n.BackgroundStyle,"formats/color":x.ColorStyle,"formats/font":ca.FontClass,
"formats/size":w.SizeClass,"formats/blockquote":a.default,"formats/code-block":pa.default,"formats/header":b.default,"formats/list":f.default,"formats/bold":aa.default,"formats/code":oa.Code,"formats/italic":ja.default,"formats/link":fa.default,"formats/script":ea.default,"formats/strike":ba.default,"formats/underline":ma.default,"formats/image":ta.default,"formats/video":na.default,"formats/list/item":e.ListItem,"modules/formula":ua.default,"modules/syntax":va.default,"modules/toolbar":ra.default,
"themes/bubble":Pa.default,"themes/snow":ha.default,"ui/icons":xa.default,"ui/picker":Aa.default,"ui/icon-picker":Ka.default,"ui/color-picker":Ga.default,"ui/tooltip":Da.default},!0);la.default=ka.default},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,
a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});la.IndentClass=void 0;var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,
e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){return a&&a.__esModule?a:{default:a}}(ha(0));ka=new (function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,[{key:"add",
value:function(e,f){if("+1"===f||"-1"===f){var n=this.value(e)||0;f="+1"===f?n+1:n-1}return 0===f?(this.remove(e),!0):r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,e,f)}},{key:"canAdd",value:function(e,f){return r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,e,f)||r(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,e,parseInt(f))}},{key:"value",value:function(e){return parseInt(r(b.prototype.__proto__||
Object.getPrototypeOf(b.prototype),"value",this).call(this,e))||void 0}}]);return b}(ka.default.Attributor.Class))("indent","ql-indent",{scope:ka.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});la.IndentClass=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(4)).default);
ka.blotName="blockquote";ka.tagName="blockquote";la.default=ka},function(ka,la,ha){function da(r,h){if("function"!==typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}});h&&(Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function r(h,a){for(var b=0;b<a.length;b++){var e=
a[b];e.enumerable=e.enumerable||!1;e.configurable=!0;"value"in e&&(e.writable=!0);Object.defineProperty(h,e.key,e)}}return function(h,a,b){a&&r(h.prototype,a);b&&r(h,b);return h}}();ka=function(r){function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function");var a=(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?
this:a}da(h,r);y(h,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]);return h}(function(r){return r&&r.__esModule?r:{default:r}}(ha(4)).default);ka.blotName="header";ka.tagName="H1 H2 H3 H4 H5 H6".split(" ");la.default=ka},function(ka,la,ha){function da(x){return x&&x.__esModule?x:{default:x}}function y(x,ca){if(!(x instanceof ca))throw new TypeError("Cannot call a class as a function");}function r(x,ca){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return!ca||"object"!==typeof ca&&"function"!==typeof ca?x:ca}function h(x,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+typeof ca);x.prototype=Object.create(ca&&ca.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(x,ca):x.__proto__=ca)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.ListItem=void 0;var a=function(){function x(ca,w){for(var aa=
0;aa<w.length;aa++){var ja=w[aa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,ja.key,ja)}}return function(ca,w,aa){w&&x(ca.prototype,w);aa&&x(ca,aa);return ca}}(),b=function ja(ca,w,aa){null===ca&&(ca=Function.prototype);var fa=Object.getOwnPropertyDescriptor(ca,w);if(void 0===fa){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,w,aa)}else{if("value"in fa)return fa.value;w=fa.get;return void 0===w?void 0:w.call(aa)}};ka=ha(0);var e=
da(ka);ka=ha(4);ka=da(ka);ha=ha(25);ha=da(ha);var f=function(ca){function w(){y(this,w);return r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}h(w,ca);a(w,[{key:"format",value:function(aa,ja){aa!==n.blotName||ja?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,aa,ja):this.replaceWith(e.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
"remove",this).call(this)}},{key:"replaceWith",value:function(aa,ja){this.parent.isolate(this.offset(this.parent),this.length());if(aa===this.parent.statics.blotName)return this.parent.replaceWith(aa,ja),this;this.parent.unwrap();return b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,aa,ja)}}],[{key:"formats",value:function(aa){return aa.tagName===this.tagName?void 0:b(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,aa)}}]);return w}(ka.default);
f.blotName="list-item";f.tagName="LI";var n=function(ca){function w(aa){function ja(ea){if(ea.target.parentNode===aa){var ba=fa.statics.formats(aa);ea=e.default.find(ea.target);"checked"===ba?ea.format("list","unchecked"):"unchecked"===ba&&ea.format("list","checked")}}y(this,w);var fa=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,aa));aa.addEventListener("touchstart",ja);aa.addEventListener("mousedown",ja);return fa}h(w,ca);a(w,null,[{key:"create",value:function(aa){var ja="ordered"===
aa?"OL":"UL";ja=b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,ja);"checked"!==aa&&"unchecked"!==aa||ja.setAttribute("data-checked","checked"===aa);return ja}},{key:"formats",value:function(aa){if("OL"===aa.tagName)return"ordered";if("UL"===aa.tagName)return aa.hasAttribute("data-checked")?"true"===aa.getAttribute("data-checked")?"checked":"unchecked":"bullet"}}]);a(w,[{key:"format",value:function(aa,ja){0<this.children.length&&this.children.tail.format(aa,ja)}},{key:"formats",value:function(){var aa=
{},ja=this.statics.blotName,fa=this.statics.formats(this.domNode);ja in aa?Object.defineProperty(aa,ja,{value:fa,enumerable:!0,configurable:!0,writable:!0}):aa[ja]=fa;return aa}},{key:"insertBefore",value:function(aa,ja){aa instanceof f?b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,aa,ja):(ja=null==ja?this.length():ja.offset(this),ja=this.split(ja),ja.parent.insertBefore(aa,ja))}},{key:"optimize",value:function(aa){b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
"optimize",this).call(this,aa);aa=this.next;null!=aa&&aa.prev===this&&aa.statics.blotName===this.statics.blotName&&aa.domNode.tagName===this.domNode.tagName&&aa.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(aa.moveChildren(this),aa.remove())}},{key:"replace",value:function(aa){if(aa.statics.blotName!==this.statics.blotName){var ja=e.default.create(this.statics.defaultChild);aa.moveChildren(ja);this.appendChild(ja)}b(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),
"replace",this).call(this,aa)}}]);return w}(ha.default);n.blotName="list";n.scope=e.default.Scope.BLOCK_BLOT;n.tagName=["OL","UL"];n.defaultChild="list-item";n.allowedChildren=[f];la.ListItem=f;la.default=n},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?
Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(56)).default);
ka.blotName="italic";ka.tagName=["EM","I"];la.default=ka},function(ka,la,ha){function da(h,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}});a&&(Object.setPrototypeOf?Object.setPrototypeOf(h,a):h.__proto__=a)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function h(a,b){for(var e=0;e<b.length;e++){var f=
b[e];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(a,f.key,f)}}return function(a,b,e){b&&h(a.prototype,b);e&&h(a,e);return a}}(),r=function f(a,b,e){null===a&&(a=Function.prototype);var n=Object.getOwnPropertyDescriptor(a,b);if(void 0===n){if(a=Object.getPrototypeOf(a),null!==a)return f(a,b,e)}else{if("value"in n)return n.value;b=n.get;return void 0===b?void 0:b.call(e)}};ka=function(a){function b(){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");
var e=(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?this:e}da(b,a);y(b,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,e)}},{key:"formats",value:function(e){if("SUB"===e.tagName)return"sub";if("SUP"===
e.tagName)return"super"}}]);return b}(function(a){return a&&a.__esModule?a:{default:a}}(ha(6)).default);ka.blotName="script";ka.tagName=["SUB","SUP"];la.default=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,r):y.__proto__=r)}
Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(6)).default);ka.blotName="strike";ka.tagName="S";
la.default=ka},function(ka,la,ha){function da(y,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);y.prototype=Object.create(r&&r.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}});r&&(Object.setPrototypeOf?Object.setPrototypeOf(y,r):y.__proto__=r)}Object.defineProperty(la,"__esModule",{value:!0});ka=function(y){function r(){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");
var h=(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!==typeof h&&"function"!==typeof h?this:h}da(r,y);return r}(function(y){return y&&y.__esModule?y:{default:y}}(ha(6)).default);ka.blotName="underline";ka.tagName="U";la.default=ka},function(ka,la,ha){function da(b,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+
typeof e);b.prototype=Object.create(e&&e.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||!1;x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=function x(e,f,
n){null===e&&(e=Function.prototype);var ca=Object.getOwnPropertyDescriptor(e,f);if(void 0===ca){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,n)}else{if("value"in ca)return ca.value;f=ca.get;return void 0===f?void 0:f.call(n)}};ka=function(e){return e&&e.__esModule?e:{default:e}}(ha(0));var h=ha(27),a=["alt","height","width"];ha=function(e){function f(){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");var n=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);
if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(f,e);y(f,[{key:"format",value:function(n,x){-1<a.indexOf(n)?x?this.domNode.setAttribute(n,x):this.domNode.removeAttribute(n):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,n,x)}}],[{key:"create",value:function(n){var x=r(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,n);"string"===typeof n&&
x.setAttribute("src",this.sanitize(n));return x}},{key:"formats",value:function(n){return a.reduce(function(x,ca){n.hasAttribute(ca)&&(x[ca]=n.getAttribute(ca));return x},{})}},{key:"match",value:function(n){return/\.(jpe?g|gif|png)$/.test(n)||/^data:image\/.+;base64/.test(n)}},{key:"sanitize",value:function(n){return(0,h.sanitize)(n,["http","https","data"])?n:"//:0"}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return f}(ka.default.Embed);ha.blotName="image";ha.tagName="IMG";
la.default=ha},function(ka,la,ha){function da(b,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);b.prototype=Object.create(e&&e.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}});e&&(Object.setPrototypeOf?Object.setPrototypeOf(b,e):b.__proto__=e)}Object.defineProperty(la,"__esModule",{value:!0});var y=function(){function b(e,f){for(var n=0;n<f.length;n++){var x=f[n];x.enumerable=x.enumerable||!1;
x.configurable=!0;"value"in x&&(x.writable=!0);Object.defineProperty(e,x.key,x)}}return function(e,f,n){f&&b(e.prototype,f);n&&b(e,n);return e}}(),r=function x(e,f,n){null===e&&(e=Function.prototype);var ca=Object.getOwnPropertyDescriptor(e,f);if(void 0===ca){if(e=Object.getPrototypeOf(e),null!==e)return x(e,f,n)}else{if("value"in ca)return ca.value;f=ca.get;return void 0===f?void 0:f.call(n)}};ka=ha(4);var h=function(e){return e&&e.__esModule?e:{default:e}}(ha(27)),a=["height","width"];ha=function(e){function f(){if(!(this instanceof
f))throw new TypeError("Cannot call a class as a function");var n=(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==typeof n&&"function"!==typeof n?this:n}da(f,e);y(f,[{key:"format",value:function(n,x){-1<a.indexOf(n)?x?this.domNode.setAttribute(n,x):this.domNode.removeAttribute(n):r(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,n,x)}}],
[{key:"create",value:function(n){var x=r(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,n);x.setAttribute("frameborder","0");x.setAttribute("allowfullscreen",!0);x.setAttribute("src",this.sanitize(n));return x}},{key:"formats",value:function(n){return a.reduce(function(x,ca){n.hasAttribute(ca)&&(x[ca]=n.getAttribute(ca));return x},{})}},{key:"sanitize",value:function(n){return h.default.sanitize(n)}},{key:"value",value:function(n){return n.getAttribute("src")}}]);return f}(ka.BlockEmbed);
ha.blotName="video";ha.className="ql-video";ha.tagName="IFRAME";la.default=ha},function(ka,la,ha){function da(x){return x&&x.__esModule?x:{default:x}}function y(x,ca){if(!(x instanceof ca))throw new TypeError("Cannot call a class as a function");}function r(x,ca){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ca||"object"!==typeof ca&&"function"!==typeof ca?x:ca}function h(x,ca){if("function"!==typeof ca&&null!==ca)throw new TypeError("Super expression must either be null or a function, not "+
typeof ca);x.prototype=Object.create(ca&&ca.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}});ca&&(Object.setPrototypeOf?Object.setPrototypeOf(x,ca):x.__proto__=ca)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.FormulaBlot=void 0;var a=function(){function x(ca,w){for(var aa=0;aa<w.length;aa++){var ja=w[aa];ja.enumerable=ja.enumerable||!1;ja.configurable=!0;"value"in ja&&(ja.writable=!0);Object.defineProperty(ca,ja.key,ja)}}return function(ca,w,aa){w&&x(ca.prototype,
w);aa&&x(ca,aa);return ca}}(),b=function ja(ca,w,aa){null===ca&&(ca=Function.prototype);var fa=Object.getOwnPropertyDescriptor(ca,w);if(void 0===fa){if(ca=Object.getPrototypeOf(ca),null!==ca)return ja(ca,w,aa)}else{if("value"in fa)return fa.value;w=fa.get;return void 0===w?void 0:w.call(aa)}};ka=ha(35);ka=da(ka);var e=ha(5),f=da(e);ha=ha(9);ha=da(ha);var n=function(ca){function w(){y(this,w);return r(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}h(w,ca);a(w,null,[{key:"create",
value:function(aa){var ja=b(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,aa);"string"===typeof aa&&(window.katex.render(aa,ja,{throwOnError:!1,errorColor:"#f00"}),ja.setAttribute("data-value",aa));return ja}},{key:"value",value:function(aa){return aa.getAttribute("data-value")}}]);return w}(ka.default);n.blotName="formula";n.className="ql-formula";n.tagName="SPAN";ha=function(ca){function w(){y(this,w);var aa=r(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));if(null==window.katex)throw Error("Formula module requires KaTeX.");
return aa}h(w,ca);a(w,null,[{key:"register",value:function(){f.default.register(n,!0)}}]);return w}(ha.default);la.FormulaBlot=n;la.default=ha},function(ka,la,ha){function da(ca){return ca&&ca.__esModule?ca:{default:ca}}function y(ca,w){if(!(ca instanceof w))throw new TypeError("Cannot call a class as a function");}function r(ca,w){if(!ca)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!==typeof w&&"function"!==typeof w?ca:w}function h(ca,w){if("function"!==
typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);ca.prototype=Object.create(w&&w.prototype,{constructor:{value:ca,enumerable:!1,writable:!0,configurable:!0}});w&&(Object.setPrototypeOf?Object.setPrototypeOf(ca,w):ca.__proto__=w)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.CodeToken=la.CodeBlock=void 0;var a=function(){function ca(w,aa){for(var ja=0;ja<aa.length;ja++){var fa=aa[ja];fa.enumerable=fa.enumerable||!1;fa.configurable=
!0;"value"in fa&&(fa.writable=!0);Object.defineProperty(w,fa.key,fa)}}return function(w,aa,ja){aa&&ca(w.prototype,aa);ja&&ca(w,ja);return w}}(),b=function fa(w,aa,ja){null===w&&(w=Function.prototype);var ea=Object.getOwnPropertyDescriptor(w,aa);if(void 0===ea){if(w=Object.getPrototypeOf(w),null!==w)return fa(w,aa,ja)}else{if("value"in ea)return ea.value;aa=ea.get;return void 0===aa?void 0:aa.call(ja)}};ka=ha(0);ka=da(ka);var e=ha(5),f=da(e);e=ha(9);e=da(e);ha=ha(13);var n=function(w){function aa(){y(this,
aa);return r(this,(aa.__proto__||Object.getPrototypeOf(aa)).apply(this,arguments))}h(aa,w);a(aa,[{key:"replaceWith",value:function(ja){this.domNode.textContent=this.domNode.textContent;this.attach();b(aa.prototype.__proto__||Object.getPrototypeOf(aa.prototype),"replaceWith",this).call(this,ja)}},{key:"highlight",value:function(ja){var fa=this.domNode.textContent;if(this.cachedText!==fa){if(0<fa.trim().length||null==this.cachedText)this.domNode.innerHTML=ja(fa),this.domNode.normalize(),this.attach();
this.cachedText=fa}}}]);return aa}(da(ha).default);n.className="ql-syntax";var x=new ka.default.Attributor.Class("token","hljs",{scope:ka.default.Scope.INLINE});ha=function(w){function aa(ja,fa){y(this,aa);var ea=r(this,(aa.__proto__||Object.getPrototypeOf(aa)).call(this,ja,fa));if("function"!==typeof ea.options.highlight)throw Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var ba=null;ea.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(ba);
ba=setTimeout(function(){ea.highlight();ba=null},ea.options.interval)});ea.highlight();return ea}h(aa,w);a(aa,null,[{key:"register",value:function(){f.default.register(x,!0);f.default.register(n,!0)}}]);a(aa,[{key:"highlight",value:function(){var ja=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var fa=this.quill.getSelection();this.quill.scroll.descendants(n).forEach(function(ea){ea.highlight(ja.options.highlight)});this.quill.update(f.default.sources.SILENT);
null!=fa&&this.quill.setSelection(fa,f.default.sources.SILENT)}}}]);return aa}(e.default);ha.DEFAULTS={highlight:function(){return null==window.hljs?null:function(w){return window.hljs.highlightAuto(w).value}}(),interval:1E3};la.CodeBlock=n;la.CodeToken=x;la.default=ha},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports=
'<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},
function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},
function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},
function(ka){ka.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(ka){ka.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(ka){ka.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},
function(ka){ka.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(ka,la,ha){function da(ja){return ja&&ja.__esModule?ja:{default:ja}}function y(ja,fa){if(!(ja instanceof fa))throw new TypeError("Cannot call a class as a function");}function r(ja,fa){if(!ja)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!fa||"object"!==typeof fa&&
"function"!==typeof fa?ja:fa}function h(ja,fa){if("function"!==typeof fa&&null!==fa)throw new TypeError("Super expression must either be null or a function, not "+typeof fa);ja.prototype=Object.create(fa&&fa.prototype,{constructor:{value:ja,enumerable:!1,writable:!0,configurable:!0}});fa&&(Object.setPrototypeOf?Object.setPrototypeOf(ja,fa):ja.__proto__=fa)}Object.defineProperty(la,"__esModule",{value:!0});la.default=la.BubbleTooltip=void 0;var a=function ma(fa,ea,ba){null===fa&&(fa=Function.prototype);
var ta=Object.getOwnPropertyDescriptor(fa,ea);if(void 0===ta){if(fa=Object.getPrototypeOf(fa),null!==fa)return ma(fa,ea,ba)}else{if("value"in ta)return ta.value;ea=ta.get;return void 0===ea?void 0:ea.call(ba)}},b=function(){function fa(ea,ba){for(var ma=0;ma<ba.length;ma++){var ta=ba[ma];ta.enumerable=ta.enumerable||!1;ta.configurable=!0;"value"in ta&&(ta.writable=!0);Object.defineProperty(ea,ta.key,ta)}}return function(ea,ba,ma){ba&&fa(ea.prototype,ba);ma&&fa(ea,ma);return ea}}();ka=ha(3);ka=da(ka);
var e=ha(8),f=da(e);e=ha(43);var n=da(e),x=ha(15);ha=ha(41);var ca=da(ha),w=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];ha=function(fa){function ea(ba,ma){y(this,ea);null!=ma.modules.toolbar&&null==ma.modules.toolbar.container&&(ma.modules.toolbar.container=w);ba=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,ba,ma));ba.quill.container.classList.add("ql-bubble");return ba}h(ea,fa);b(ea,[{key:"extendToolbar",value:function(ba){this.tooltip=new aa(this.quill,this.options.bounds);
this.tooltip.root.appendChild(ba.container);this.buildButtons([].slice.call(ba.container.querySelectorAll("button")),ca.default);this.buildPickers([].slice.call(ba.container.querySelectorAll("select")),ca.default)}}]);return ea}(n.default);ha.DEFAULTS=(0,ka.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(fa){fa?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var aa=function(fa){function ea(ba,ma){y(this,ea);var ta=r(this,(ea.__proto__||Object.getPrototypeOf(ea)).call(this,
ba,ma));ta.quill.on(f.default.events.EDITOR_CHANGE,function(na,oa,pa,ua){na===f.default.events.SELECTION_CHANGE&&(null!=oa&&0<oa.length&&ua===f.default.sources.USER?(ta.show(),ta.root.style.left="0px",ta.root.style.width="",ta.root.style.width=ta.root.offsetWidth+"px",na=ta.quill.getLines(oa.index,oa.length),1===na.length?ta.position(ta.quill.getBounds(oa)):(pa=na[na.length-1],na=ta.quill.getIndex(pa),oa=Math.min(pa.length()-1,oa.index+oa.length-na),oa=ta.quill.getBounds(new x.Range(na,oa)),ta.position(oa))):
document.activeElement!==ta.textbox&&ta.quill.hasFocus()&&ta.hide())});return ta}h(ea,fa);b(ea,[{key:"listen",value:function(){var ba=this;a(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"listen",this).call(this);this.root.querySelector(".ql-close").addEventListener("click",function(){ba.root.classList.remove("ql-editing")});this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!ba.root.classList.contains("ql-hidden")){var ma=ba.quill.getSelection();null!=
ma&&ba.position(ba.quill.getBounds(ma))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(ba){ba=a(ea.prototype.__proto__||Object.getPrototypeOf(ea.prototype),"position",this).call(this,ba);var ma=this.root.querySelector(".ql-tooltip-arrow");ma.style.marginLeft="";if(0===ba)return ba;ma.style.marginLeft=-1*ba-ma.offsetWidth/2+"px"}}]);return ea}(e.BaseTooltip);aa.TEMPLATE='<span class="ql-tooltip-arrow"></span><div class="ql-tooltip-editor"><input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL"><a class="ql-close"></a></div>';
la.BubbleTooltip=aa;la.default=ha},function(ka,la,ha){ka.exports=ha(63)}])["default"]})}).call(this,z(392).Buffer)}}]);}).call(this || window)
