Files
appco_dist/.output/public/_nuxt/BN9g1uF7.js
T
2025-08-27 20:20:03 +03:30

43 lines
246 KiB
JavaScript

import{cy as In,ea as zt}from"./BAjARngS.js";var Ce={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/var Cn=Ce.exports,kn;function Fn(){return kn||(kn=1,(function(ft,dt){(function(O,m){ft.exports=m()})(typeof self<"u"?self:Cn,function(){return(function(F){var O={};function m(L){if(O[L])return O[L].exports;var S=O[L]={i:L,l:!1,exports:{}};return F[L].call(S.exports,S,S.exports,m),S.l=!0,S.exports}return m.m=F,m.c=O,m.d=function(L,S,N){m.o(L,S)||Object.defineProperty(L,S,{configurable:!1,enumerable:!0,get:N})},m.n=function(L){var S=L&&L.__esModule?function(){return L.default}:function(){return L};return m.d(S,"a",S),S},m.o=function(L,S){return Object.prototype.hasOwnProperty.call(L,S)},m.p="",m(m.s=109)})([(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(17),S=m(18),N=m(19),y=m(45),d=m(46),f=m(47),i=m(48),t=m(49),n=m(12),h=m(32),u=m(33),c=m(31),a=m(1),o={Scope:a.Scope,create:a.create,find:a.find,query:a.query,register:a.register,Container:L.default,Format:S.default,Leaf:N.default,Embed:i.default,Scroll:y.default,Block:f.default,Inline:d.default,Text:t.default,Attributor:{Attribute:n.default,Class:h.default,Style:u.default,Store:c.default}};O.default=o}),(function(F,O,m){var L=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,o){a.__proto__=o}||function(a,o){for(var r in o)o.hasOwnProperty(r)&&(a[r]=o[r])};return function(a,o){c(a,o);function r(){this.constructor=a}a.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=(function(c){L(a,c);function a(o){var r=this;return o="[Parchment] "+o,r=c.call(this,o)||this,r.message=o,r.name=r.constructor.name,r}return a})(Error);O.ParchmentError=S;var N={},y={},d={},f={};O.DATA_KEY="__blot";var i;(function(c){c[c.TYPE=3]="TYPE",c[c.LEVEL=12]="LEVEL",c[c.ATTRIBUTE=13]="ATTRIBUTE",c[c.BLOT=14]="BLOT",c[c.INLINE=7]="INLINE",c[c.BLOCK=11]="BLOCK",c[c.BLOCK_BLOT=10]="BLOCK_BLOT",c[c.INLINE_BLOT=6]="INLINE_BLOT",c[c.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",c[c.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",c[c.ANY=15]="ANY"})(i=O.Scope||(O.Scope={}));function t(c,a){var o=h(c);if(o==null)throw new S("Unable to create "+c+" blot");var r=o,e=c instanceof Node||c.nodeType===Node.TEXT_NODE?c:r.create(a);return new r(e,a)}O.create=t;function n(c,a){return a===void 0&&(a=!1),c==null?null:c[O.DATA_KEY]!=null?c[O.DATA_KEY].blot:a?n(c.parentNode,a):null}O.find=n;function h(c,a){a===void 0&&(a=i.ANY);var o;if(typeof c=="string")o=f[c]||N[c];else if(c instanceof Text||c.nodeType===Node.TEXT_NODE)o=f.text;else if(typeof c=="number")c&i.LEVEL&i.BLOCK?o=f.block:c&i.LEVEL&i.INLINE&&(o=f.inline);else if(c instanceof HTMLElement){var r=(c.getAttribute("class")||"").split(/\s+/);for(var e in r)if(o=y[r[e]],o)break;o=o||d[c.tagName]}return o==null?null:a&i.LEVEL&o.scope&&a&i.TYPE&o.scope?o:null}O.query=h;function u(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length>1)return c.map(function(e){return u(e)});var o=c[0];if(typeof o.blotName!="string"&&typeof o.attrName!="string")throw new S("Invalid definition");if(o.blotName==="abstract")throw new S("Cannot register abstract class");if(f[o.blotName||o.attrName]=o,typeof o.keyName=="string")N[o.keyName]=o;else if(o.className!=null&&(y[o.className]=o),o.tagName!=null){Array.isArray(o.tagName)?o.tagName=o.tagName.map(function(e){return e.toUpperCase()}):o.tagName=o.tagName.toUpperCase();var r=Array.isArray(o.tagName)?o.tagName:[o.tagName];r.forEach(function(e){(d[e]==null||o.className==null)&&(d[e]=o)})}return o}O.register=u}),(function(F,O,m){var L=m(51),S=m(11),N=m(3),y=m(20),d="\0",f=function(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]};f.prototype.insert=function(i,t){var n={};return i.length===0?this:(n.insert=i,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},f.prototype.delete=function(i){return i<=0?this:this.push({delete:i})},f.prototype.retain=function(i,t){if(i<=0)return this;var n={retain:i};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},f.prototype.push=function(i){var t=this.ops.length,n=this.ops[t-1];if(i=N(!0,{},i),typeof n=="object"){if(typeof i.delete=="number"&&typeof n.delete=="number")return this.ops[t-1]={delete:n.delete+i.delete},this;if(typeof n.delete=="number"&&i.insert!=null&&(t-=1,n=this.ops[t-1],typeof n!="object"))return this.ops.unshift(i),this;if(S(i.attributes,n.attributes)){if(typeof i.insert=="string"&&typeof n.insert=="string")return this.ops[t-1]={insert:n.insert+i.insert},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof n.retain=="number")return this.ops[t-1]={retain:n.retain+i.retain},typeof i.attributes=="object"&&(this.ops[t-1].attributes=i.attributes),this}}return t===this.ops.length?this.ops.push(i):this.ops.splice(t,0,i),this},f.prototype.chop=function(){var i=this.ops[this.ops.length-1];return i&&i.retain&&!i.attributes&&this.ops.pop(),this},f.prototype.filter=function(i){return this.ops.filter(i)},f.prototype.forEach=function(i){this.ops.forEach(i)},f.prototype.map=function(i){return this.ops.map(i)},f.prototype.partition=function(i){var t=[],n=[];return this.forEach(function(h){var u=i(h)?t:n;u.push(h)}),[t,n]},f.prototype.reduce=function(i,t){return this.ops.reduce(i,t)},f.prototype.changeLength=function(){return this.reduce(function(i,t){return t.insert?i+y.length(t):t.delete?i-t.delete:i},0)},f.prototype.length=function(){return this.reduce(function(i,t){return i+y.length(t)},0)},f.prototype.slice=function(i,t){i=i||0,typeof t!="number"&&(t=1/0);for(var n=[],h=y.iterator(this.ops),u=0;u<t&&h.hasNext();){var c;u<i?c=h.next(i-u):(c=h.next(t-u),n.push(c)),u+=y.length(c)}return new f(n)},f.prototype.compose=function(i){var t=y.iterator(this.ops),n=y.iterator(i.ops),h=[],u=n.peek();if(u!=null&&typeof u.retain=="number"&&u.attributes==null){for(var c=u.retain;t.peekType()==="insert"&&t.peekLength()<=c;)c-=t.peekLength(),h.push(t.next());u.retain-c>0&&n.next(u.retain-c)}for(var a=new f(h);t.hasNext()||n.hasNext();)if(n.peekType()==="insert")a.push(n.next());else if(t.peekType()==="delete")a.push(t.next());else{var o=Math.min(t.peekLength(),n.peekLength()),r=t.next(o),e=n.next(o);if(typeof e.retain=="number"){var l={};typeof r.retain=="number"?l.retain=o:l.insert=r.insert;var E=y.attributes.compose(r.attributes,e.attributes,typeof r.retain=="number");if(E&&(l.attributes=E),a.push(l),!n.hasNext()&&S(a.ops[a.ops.length-1],l)){var b=new f(t.rest());return a.concat(b).chop()}}else typeof e.delete=="number"&&typeof r.retain=="number"&&a.push(e)}return a.chop()},f.prototype.concat=function(i){var t=new f(this.ops.slice());return i.ops.length>0&&(t.push(i.ops[0]),t.ops=t.ops.concat(i.ops.slice(1))),t},f.prototype.diff=function(i,t){if(this.ops===i.ops)return new f;var n=[this,i].map(function(o){return o.map(function(r){if(r.insert!=null)return typeof r.insert=="string"?r.insert:d;var e=o===i?"on":"with";throw new Error("diff() called "+e+" non-document")}).join("")}),h=new f,u=L(n[0],n[1],t),c=y.iterator(this.ops),a=y.iterator(i.ops);return u.forEach(function(o){for(var r=o[1].length;r>0;){var e=0;switch(o[0]){case L.INSERT:e=Math.min(a.peekLength(),r),h.push(a.next(e));break;case L.DELETE:e=Math.min(r,c.peekLength()),c.next(e),h.delete(e);break;case L.EQUAL:e=Math.min(c.peekLength(),a.peekLength(),r);var l=c.next(e),E=a.next(e);S(l.insert,E.insert)?h.retain(e,y.attributes.diff(l.attributes,E.attributes)):h.push(E).delete(e);break}r-=e}}),h.chop()},f.prototype.eachLine=function(i,t){t=t||`
`;for(var n=y.iterator(this.ops),h=new f,u=0;n.hasNext();){if(n.peekType()!=="insert")return;var c=n.peek(),a=y.length(c)-n.peekLength(),o=typeof c.insert=="string"?c.insert.indexOf(t,a)-a:-1;if(o<0)h.push(n.next());else if(o>0)h.push(n.next(o));else{if(i(h,n.next(1).attributes||{},u)===!1)return;u+=1,h=new f}}h.length()>0&&i(h,{},u)},f.prototype.transform=function(i,t){if(t=!!t,typeof i=="number")return this.transformPosition(i,t);for(var n=y.iterator(this.ops),h=y.iterator(i.ops),u=new f;n.hasNext()||h.hasNext();)if(n.peekType()==="insert"&&(t||h.peekType()!=="insert"))u.retain(y.length(n.next()));else if(h.peekType()==="insert")u.push(h.next());else{var c=Math.min(n.peekLength(),h.peekLength()),a=n.next(c),o=h.next(c);if(a.delete)continue;o.delete?u.push(o):u.retain(c,y.attributes.transform(a.attributes,o.attributes,t))}return u.chop()},f.prototype.transformPosition=function(i,t){t=!!t;for(var n=y.iterator(this.ops),h=0;n.hasNext()&&h<=i;){var u=n.peekLength(),c=n.peekType();if(n.next(),c==="delete"){i-=Math.min(u,i-h);continue}else c==="insert"&&(h<i||!t)&&(i+=u);h+=u}return i},F.exports=f}),(function(F,O){var m=Object.prototype.hasOwnProperty,L=Object.prototype.toString,S=Object.defineProperty,N=Object.getOwnPropertyDescriptor,y=function(n){return typeof Array.isArray=="function"?Array.isArray(n):L.call(n)==="[object Array]"},d=function(n){if(!n||L.call(n)!=="[object Object]")return!1;var h=m.call(n,"constructor"),u=n.constructor&&n.constructor.prototype&&m.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!h&&!u)return!1;var c;for(c in n);return typeof c>"u"||m.call(n,c)},f=function(n,h){S&&h.name==="__proto__"?S(n,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):n[h.name]=h.newValue},i=function(n,h){if(h==="__proto__")if(m.call(n,h)){if(N)return N(n,h).value}else return;return n[h]};F.exports=function t(){var n,h,u,c,a,o,r=arguments[0],e=1,l=arguments.length,E=!1;for(typeof r=="boolean"&&(E=r,r=arguments[1]||{},e=2),(r==null||typeof r!="object"&&typeof r!="function")&&(r={});e<l;++e)if(n=arguments[e],n!=null)for(h in n)u=i(r,h),c=i(n,h),r!==c&&(E&&c&&(d(c)||(a=y(c)))?(a?(a=!1,o=u&&y(u)?u:[]):o=u&&d(u)?u:{},f(r,{name:h,newValue:t(E,o,c)})):typeof c<"u"&&f(r,{name:h,newValue:c}));return r}}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var L=(function(){function v(_,w){for(var x=0;x<w.length;x++){var I=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}return function(_,w,x){return w&&v(_.prototype,w),x&&v(_,x),_}})(),S=function v(_,w,x){_===null&&(_=Function.prototype);var I=Object.getOwnPropertyDescriptor(_,w);if(I===void 0){var U=Object.getPrototypeOf(_);return U===null?void 0:v(U,w,x)}else{if("value"in I)return I.value;var z=I.get;return z===void 0?void 0:z.call(x)}},N=m(3),y=r(N),d=m(2),f=r(d),i=m(0),t=r(i),n=m(16),h=r(n),u=m(6),c=r(u),a=m(7),o=r(a);function r(v){return v&&v.__esModule?v:{default:v}}function e(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function l(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function E(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var b=1,g=(function(v){E(_,v);function _(){return e(this,_),l(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return L(_,[{key:"attach",value:function(){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(x,I){var U=t.default.query(x,t.default.Scope.BLOCK_ATTRIBUTE);U!=null&&this.attributes.attribute(U,I)}},{key:"formatAt",value:function(x,I,U,z){this.format(U,z)}},{key:"insertAt",value:function(x,I,U){if(typeof I=="string"&&I.endsWith(`
`)){var z=t.default.create(T.blotName);this.parent.insertBefore(z,x===0?this:this.next),z.insertAt(0,I.slice(0,-1))}else S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,x,I,U)}}]),_})(t.default.Embed);g.scope=t.default.Scope.BLOCK_BLOT;var T=(function(v){E(_,v);function _(w){e(this,_);var x=l(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w));return x.cache={},x}return L(_,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(x,I){return I.length()===0?x:x.insert(I.value(),p(I))},new f.default).insert(`
`,p(this))),this.cache.delta}},{key:"deleteAt",value:function(x,I){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"deleteAt",this).call(this,x,I),this.cache={}}},{key:"formatAt",value:function(x,I,U,z){I<=0||(t.default.query(U,t.default.Scope.BLOCK)?x+I===this.length()&&this.format(U,z):S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,x,Math.min(I,this.length()-x-1),U,z),this.cache={})}},{key:"insertAt",value:function(x,I,U){if(U!=null)return S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,x,I,U);if(I.length!==0){var z=I.split(`
`),Z=z.shift();Z.length>0&&(x<this.length()-1||this.children.tail==null?S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertAt",this).call(this,Math.min(x,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var C=this;z.reduce(function(q,A){return C=C.split(q,!0),C.insertAt(0,A),A.length},x+Z.length)}}},{key:"insertBefore",value:function(x,I){var U=this.children.head;S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,x,I),U instanceof h.default&&U.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"length",this).call(this)+b),this.cache.length}},{key:"moveChildren",value:function(x,I){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"moveChildren",this).call(this,x,I),this.cache={}}},{key:"optimize",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,x),this.cache={}}},{key:"path",value:function(x){return S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"path",this).call(this,x,!0)}},{key:"removeChild",value:function(x){S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"removeChild",this).call(this,x),this.cache={}}},{key:"split",value:function(x){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(x===0||x>=this.length()-b)){var U=this.clone();return x===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{var z=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,x,I);return this.cache={},z}}}]),_})(t.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[c.default,t.default.Embed,o.default];function p(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(_=(0,y.default)(_,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?_:p(v.parent,_)}O.bubbleFormats=p,O.BlockEmbed=g,O.default=T}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},S=(function(){function C(q,A){var R=[],j=!0,H=!1,M=void 0;try{for(var P=q[Symbol.iterator](),B;!(j=(B=P.next()).done)&&(R.push(B.value),!(A&&R.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&P.return&&P.return()}finally{if(H)throw M}}return R}return function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return C(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),N=(function(){function C(q,A){for(var R=0;R<A.length;R++){var j=A[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(q,j.key,j)}}return function(q,A,R){return A&&C(q.prototype,A),R&&C(q,R),q}})();m(50);var y=m(2),d=p(y),f=m(14),i=p(f),t=m(8),n=p(t),h=m(9),u=p(h),c=m(0),a=p(c),o=m(15),r=p(o),e=m(3),l=p(e),E=m(10),b=p(E),g=m(34),T=p(g);function p(C){return C&&C.__esModule?C:{default:C}}function v(C,q,A){return q in C?Object.defineProperty(C,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[q]=A,C}function _(C,q){if(!(C instanceof q))throw new TypeError("Cannot call a class as a function")}var w=(0,b.default)("quill"),x=(function(){N(C,null,[{key:"debug",value:function(A){A===!0&&(A="log"),b.default.level(A)}},{key:"find",value:function(A){return A.__quill||a.default.find(A)}},{key:"import",value:function(A){return this.imports[A]==null&&w.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof A!="string"){var M=A.attrName||A.blotName;typeof M=="string"?this.register("formats/"+M,A,R):Object.keys(A).forEach(function(P){j.register(P,A[P],R)})}else this.imports[A]!=null&&!H&&w.warn("Overwriting "+A+" with",R),this.imports[A]=R,(A.startsWith("blots/")||A.startsWith("formats/"))&&R.blotName!=="abstract"?a.default.register(R):A.startsWith("modules")&&typeof R.register=="function"&&R.register()}}]);function C(q){var A=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(_(this,C),this.options=I(q,R),this.container=this.options.container,this.container==null)return w.error("Invalid Quill container",q);this.options.debug&&C.debug(this.options.debug);var j=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 n.default,this.scroll=a.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new i.default(this.scroll),this.selection=new r.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(n.default.events.EDITOR_CHANGE,function(M){M===n.default.events.TEXT_CHANGE&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(n.default.events.SCROLL_UPDATE,function(M,P){var B=A.selection.lastRange,K=B&&B.length===0?B.index:void 0;U.call(A,function(){return A.editor.update(null,P,K)},M)});var H=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(H),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return N(C,[{key:"addContainer",value:function(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof A=="string"){var j=A;A=document.createElement("div"),A.classList.add(j)}return this.container.insertBefore(A,R),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,R,j){var H=this,M=z(A,R,j),P=S(M,4);return A=P[0],R=P[1],j=P[3],U.call(this,function(){return H.editor.deleteText(A,R)},j,A,-1*R)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(A),this.container.classList.toggle("ql-disabled",!A)}},{key:"focus",value:function(){var A=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=A,this.scrollIntoView()}},{key:"format",value:function(A,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n.default.sources.API;return U.call(this,function(){var M=j.getSelection(!0),P=new d.default;if(M==null)return P;if(a.default.query(A,a.default.Scope.BLOCK))P=j.editor.formatLine(M.index,M.length,v({},A,R));else{if(M.length===0)return j.selection.format(A,R),P;P=j.editor.formatText(M.index,M.length,v({},A,R))}return j.setSelection(M,n.default.sources.SILENT),P},H)}},{key:"formatLine",value:function(A,R,j,H,M){var P=this,B=void 0,K=z(A,R,j,H,M),G=S(K,4);return A=G[0],R=G[1],B=G[2],M=G[3],U.call(this,function(){return P.editor.formatLine(A,R,B)},M,A,0)}},{key:"formatText",value:function(A,R,j,H,M){var P=this,B=void 0,K=z(A,R,j,H,M),G=S(K,4);return A=G[0],R=G[1],B=G[2],M=G[3],U.call(this,function(){return P.editor.formatText(A,R,B)},M,A,0)}},{key:"getBounds",value:function(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof A=="number"?j=this.selection.getBounds(A,R):j=this.selection.getBounds(A.index,A.length);var H=this.container.getBoundingClientRect();return{bottom:j.bottom-H.top,height:j.height,left:j.left-H.left,right:j.right-H.left,top:j.top-H.top,width:j.width}}},{key:"getContents",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,j=z(A,R),H=S(j,2);return A=H[0],R=H[1],this.editor.getContents(A,R)}},{key:"getFormat",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="number"?this.editor.getFormat(A,R):this.editor.getFormat(A.index,A.length)}},{key:"getIndex",value:function(A){return A.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(A){return this.scroll.leaf(A)}},{key:"getLine",value:function(A){return this.scroll.line(A)}},{key:"getLines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof A!="number"?this.scroll.lines(A.index,A.length):this.scroll.lines(A,R)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return A&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,j=z(A,R),H=S(j,2);return A=H[0],R=H[1],this.editor.getText(A,R)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,R,j){var H=this,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C.sources.API;return U.call(this,function(){return H.editor.insertEmbed(A,R,j)},M,A)}},{key:"insertText",value:function(A,R,j,H,M){var P=this,B=void 0,K=z(A,0,j,H,M),G=S(K,4);return A=G[0],B=G[2],M=G[3],U.call(this,function(){return P.editor.insertText(A,R,B)},M,A,R.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(A,R,j){this.clipboard.dangerouslyPasteHTML(A,R,j)}},{key:"removeFormat",value:function(A,R,j){var H=this,M=z(A,R,j),P=S(M,4);return A=P[0],R=P[1],j=P[3],U.call(this,function(){return H.editor.removeFormat(A,R)},j,A)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var R=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API;return U.call(this,function(){A=new d.default(A);var H=R.getLength(),M=R.editor.deleteText(0,H),P=R.editor.applyDelta(A),B=P.ops[P.ops.length-1];B!=null&&typeof B.insert=="string"&&B.insert[B.insert.length-1]===`
`&&(R.editor.deleteText(R.getLength()-1,1),P.delete(1));var K=M.compose(P);return K},j)}},{key:"setSelection",value:function(A,R,j){if(A==null)this.selection.setRange(null,R||C.sources.API);else{var H=z(A,R,j),M=S(H,4);A=M[0],R=M[1],j=M[3],this.selection.setRange(new o.Range(A,R),j),j!==n.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API,j=new d.default().insert(A);return this.setContents(j,R)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n.default.sources.USER,R=this.scroll.update(A);return this.selection.update(A),R}},{key:"updateContents",value:function(A){var R=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.sources.API;return U.call(this,function(){return A=new d.default(A),R.editor.applyDelta(A,j)},j,!0)}}]),C})();x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},x.events=n.default.events,x.sources=n.default.sources,x.version="1.3.7",x.imports={delta:d.default,parchment:a.default,"core/module":u.default,"core/theme":T.default};function I(C,q){if(q=(0,l.default)(!0,{container:C,modules:{clipboard:!0,keyboard:!0,history:!0}},q),!q.theme||q.theme===x.DEFAULTS.theme)q.theme=T.default;else if(q.theme=x.import("themes/"+q.theme),q.theme==null)throw new Error("Invalid theme "+q.theme+". Did you register it?");var A=(0,l.default)(!0,{},q.theme.DEFAULTS);[A,q].forEach(function(H){H.modules=H.modules||{},Object.keys(H.modules).forEach(function(M){H.modules[M]===!0&&(H.modules[M]={})})});var R=Object.keys(A.modules).concat(Object.keys(q.modules)),j=R.reduce(function(H,M){var P=x.import("modules/"+M);return P==null?w.error("Cannot load "+M+" module. Are you sure you registered it?"):H[M]=P.DEFAULTS||{},H},{});return q.modules!=null&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=(0,l.default)(!0,{},x.DEFAULTS,{modules:j},A,q),["bounds","container","scrollingContainer"].forEach(function(H){typeof q[H]=="string"&&(q[H]=document.querySelector(q[H]))}),q.modules=Object.keys(q.modules).reduce(function(H,M){return q.modules[M]&&(H[M]=q.modules[M]),H},{}),q}function U(C,q,A,R){if(this.options.strict&&!this.isEnabled()&&q===n.default.sources.USER)return new d.default;var j=A==null?null:this.getSelection(),H=this.editor.delta,M=C();if(j!=null&&(A===!0&&(A=j.index),R==null?j=Z(j,M,q):R!==0&&(j=Z(j,A,R,q)),this.setSelection(j,n.default.sources.SILENT)),M.length()>0){var P,B=[n.default.events.TEXT_CHANGE,M,H,q];if((P=this.emitter).emit.apply(P,[n.default.events.EDITOR_CHANGE].concat(B)),q!==n.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,B)}}return M}function z(C,q,A,R,j){var H={};return typeof C.index=="number"&&typeof C.length=="number"?typeof q!="number"?(j=R,R=A,A=q,q=C.length,C=C.index):(q=C.length,C=C.index):typeof q!="number"&&(j=R,R=A,A=q,q=0),(typeof A>"u"?"undefined":L(A))==="object"?(H=A,j=R):typeof A=="string"&&(R!=null?H[A]=R:j=A),j=j||n.default.sources.API,[C,q,H,j]}function Z(C,q,A,R){if(C==null)return null;var j=void 0,H=void 0;if(q instanceof d.default){var M=[C.index,C.index+C.length].map(function(G){return q.transformPosition(G,R!==n.default.sources.USER)}),P=S(M,2);j=P[0],H=P[1]}else{var B=[C.index,C.index+C.length].map(function(G){return G<q||G===q&&R===n.default.sources.USER?G:A>=0?G+A:Math.max(q,G+A)}),K=S(B,2);j=K[0],H=K[1]}return new o.Range(j,H-j)}O.expandConfig=I,O.overload=z,O.default=x}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function c(a,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(a,e.key,e)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,o);if(e===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in e)return e.value;var E=e.get;return E===void 0?void 0:E.call(r)}},N=m(7),y=i(N),d=m(0),f=i(d);function i(c){return c&&c.__esModule?c:{default:c}}function t(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function n(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function h(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var u=(function(c){h(a,c);function a(){return t(this,a),n(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return L(a,[{key:"formatAt",value:function(r,e,l,E){if(a.compare(this.statics.blotName,l)<0&&f.default.query(l,f.default.Scope.BLOT)){var b=this.isolate(r,e);E&&b.wrap(l,E)}else S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"formatAt",this).call(this,r,e,l,E)}},{key:"optimize",value:function(r){if(S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,r),this.parent instanceof a&&a.compare(this.statics.blotName,this.parent.statics.blotName)>0){var e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}}],[{key:"compare",value:function(r,e){var l=a.order.indexOf(r),E=a.order.indexOf(e);return l>=0||E>=0?l-E:r===e?0:r<e?-1:1}}]),a})(f.default.Inline);u.allowedChildren=[u,f.default.Embed,y.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=u}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(0),S=N(L);function N(t){return t&&t.__esModule?t:{default:t}}function y(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function d(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function f(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var i=(function(t){f(n,t);function n(){return y(this,n),d(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(S.default.Text);O.default=i}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function o(r,e){for(var l=0;l<e.length;l++){var E=e[l];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(r,E.key,E)}}return function(r,e,l){return e&&o(r.prototype,e),l&&o(r,l),r}})(),S=function o(r,e,l){r===null&&(r=Function.prototype);var E=Object.getOwnPropertyDescriptor(r,e);if(E===void 0){var b=Object.getPrototypeOf(r);return b===null?void 0:o(b,e,l)}else{if("value"in E)return E.value;var g=E.get;return g===void 0?void 0:g.call(l)}},N=m(54),y=i(N),d=m(10),f=i(d);function i(o){return o&&o.__esModule?o:{default:o}}function t(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function n(o,r){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:o}function h(o,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);o.prototype=Object.create(r&&r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(o,r):o.__proto__=r)}var u=(0,f.default)("quill:events"),c=["selectionchange","mousedown","mouseup","click"];c.forEach(function(o){document.addEventListener(o,function(){for(var r=arguments.length,e=Array(r),l=0;l<r;l++)e[l]=arguments[l];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(E){if(E.__quill&&E.__quill.emitter){var b;(b=E.__quill.emitter).handleDOM.apply(b,e)}})})});var a=(function(o){h(r,o);function r(){t(this,r);var e=n(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.listeners={},e.on("error",u.error),e}return L(r,[{key:"emit",value:function(){u.log.apply(u,arguments),S(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(l){for(var E=arguments.length,b=Array(E>1?E-1:0),g=1;g<E;g++)b[g-1]=arguments[g];(this.listeners[l.type]||[]).forEach(function(T){var p=T.node,v=T.handler;(l.target===p||p.contains(l.target))&&v.apply(void 0,[l].concat(b))})}},{key:"listenDOM",value:function(l,E,b){this.listeners[l]||(this.listeners[l]=[]),this.listeners[l].push({node:E,handler:b})}}]),r})(y.default);a.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"},a.sources={API:"api",SILENT:"silent",USER:"user"},O.default=a}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});function L(N,y){if(!(N instanceof y))throw new TypeError("Cannot call a class as a function")}var S=function N(y){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};L(this,N),this.quill=y,this.options=d};S.DEFAULTS={},O.default=S}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=["error","warn","log","info"],S="warn";function N(d){if(L.indexOf(d)<=L.indexOf(S)){for(var f,i=arguments.length,t=Array(i>1?i-1:0),n=1;n<i;n++)t[n-1]=arguments[n];(f=console)[d].apply(f,t)}}function y(d){return L.reduce(function(f,i){return f[i]=N.bind(console,i,d),f},{})}N.level=y.level=function(d){S=d},O.default=y}),(function(F,O,m){var L=Array.prototype.slice,S=m(52),N=m(53),y=F.exports=function(t,n,h){return h||(h={}),t===n?!0:t instanceof Date&&n instanceof Date?t.getTime()===n.getTime():!t||!n||typeof t!="object"&&typeof n!="object"?h.strict?t===n:t==n:i(t,n,h)};function d(t){return t==null}function f(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function i(t,n,h){var u,c;if(d(t)||d(n)||t.prototype!==n.prototype)return!1;if(N(t))return N(n)?(t=L.call(t),n=L.call(n),y(t,n,h)):!1;if(f(t)){if(!f(n)||t.length!==n.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==n[u])return!1;return!0}try{var a=S(t),o=S(n)}catch{return!1}if(a.length!=o.length)return!1;for(a.sort(),o.sort(),u=a.length-1;u>=0;u--)if(a[u]!=o[u])return!1;for(u=a.length-1;u>=0;u--)if(c=a[u],!y(t[c],n[c],h))return!1;return typeof t==typeof n}}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(1),S=(function(){function N(y,d,f){f===void 0&&(f={}),this.attrName=y,this.keyName=d;var i=L.Scope.TYPE&L.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&L.Scope.LEVEL|i:this.scope=L.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return N.keys=function(y){return[].map.call(y.attributes,function(d){return d.name})},N.prototype.add=function(y,d){return this.canAdd(y,d)?(y.setAttribute(this.keyName,d),!0):!1},N.prototype.canAdd=function(y,d){var f=L.query(y,L.Scope.BLOT&(this.scope|L.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},N.prototype.remove=function(y){y.removeAttribute(this.keyName)},N.prototype.value=function(y){var d=y.getAttribute(this.keyName);return this.canAdd(y,d)&&d?d:""},N})();O.default=S}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var L=(function(){function g(T,p){var v=[],_=!0,w=!1,x=void 0;try{for(var I=T[Symbol.iterator](),U;!(_=(U=I.next()).done)&&(v.push(U.value),!(p&&v.length===p));_=!0);}catch(z){w=!0,x=z}finally{try{!_&&I.return&&I.return()}finally{if(w)throw x}}return v}return function(T,p){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return g(T,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function g(T,p){for(var v=0;v<p.length;v++){var _=p[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(T,_.key,_)}}return function(T,p,v){return p&&g(T.prototype,p),v&&g(T,v),T}})(),N=function g(T,p,v){T===null&&(T=Function.prototype);var _=Object.getOwnPropertyDescriptor(T,p);if(_===void 0){var w=Object.getPrototypeOf(T);return w===null?void 0:g(w,p,v)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(v)}},y=m(2),d=o(y),f=m(0),i=o(f),t=m(4),n=o(t),h=m(6),u=o(h),c=m(7),a=o(c);function o(g){return g&&g.__esModule?g:{default:g}}function r(g,T){if(!(g instanceof T))throw new TypeError("Cannot call a class as a function")}function e(g,T){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:g}function l(g,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);g.prototype=Object.create(T&&T.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(g,T):g.__proto__=T)}var E=(function(g){l(T,g);function T(){return r(this,T),e(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return T})(u.default);E.blotName="code",E.tagName="CODE";var b=(function(g){l(T,g);function T(){return r(this,T),e(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return S(T,[{key:"delta",value:function(){var v=this,_=this.domNode.textContent;return _.endsWith(`
`)&&(_=_.slice(0,-1)),_.split(`
`).reduce(function(w,x){return w.insert(x).insert(`
`,v.formats())},new d.default)}},{key:"format",value:function(v,_){if(!(v===this.statics.blotName&&_)){var w=this.descendant(a.default,this.length()-1),x=L(w,1),I=x[0];I?.deleteAt(I.length()-1,1),N(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"format",this).call(this,v,_)}}},{key:"formatAt",value:function(v,_,w,x){if(_!==0&&!(i.default.query(w,i.default.Scope.BLOCK)==null||w===this.statics.blotName&&x===this.statics.formats(this.domNode))){var I=this.newlineIndex(v);if(!(I<0||I>=v+_)){var U=this.newlineIndex(v,!0)+1,z=I-U+1,Z=this.isolate(U,z),C=Z.next;Z.format(w,x),C instanceof T&&C.formatAt(0,v-U+_-z,w,x)}}}},{key:"insertAt",value:function(v,_,w){if(w==null){var x=this.descendant(a.default,v),I=L(x,2),U=I[0],z=I[1];U.insertAt(z,_)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?v:v+1}},{key:"newlineIndex",value:function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(_)return this.domNode.textContent.slice(0,v).lastIndexOf(`
`);var w=this.domNode.textContent.slice(v).indexOf(`
`);return w>-1?v+w:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(`
`)||this.appendChild(i.default.create("text",`
`)),N(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"optimize",this).call(this,v);var _=this.next;_!=null&&_.prev===this&&_.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===_.statics.formats(_.domNode)&&(_.optimize(v),_.moveChildren(this),_.remove())}},{key:"replace",value:function(v){N(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){var w=i.default.find(_);w==null?_.parentNode.removeChild(_):w instanceof i.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(v){var _=N(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,v);return _.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),T})(n.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",O.Code=E,O.default=b}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},S=(function(){function C(q,A){var R=[],j=!0,H=!1,M=void 0;try{for(var P=q[Symbol.iterator](),B;!(j=(B=P.next()).done)&&(R.push(B.value),!(A&&R.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&P.return&&P.return()}finally{if(H)throw M}}return R}return function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return C(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),N=(function(){function C(q,A){for(var R=0;R<A.length;R++){var j=A[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(q,j.key,j)}}return function(q,A,R){return A&&C(q.prototype,A),R&&C(q,R),q}})(),y=m(2),d=_(y),f=m(20),i=_(f),t=m(0),n=_(t),h=m(13),u=_(h),c=m(24),a=_(c),o=m(4),r=_(o),e=m(16),l=_(e),E=m(21),b=_(E),g=m(11),T=_(g),p=m(3),v=_(p);function _(C){return C&&C.__esModule?C:{default:C}}function w(C,q,A){return q in C?Object.defineProperty(C,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):C[q]=A,C}function x(C,q){if(!(C instanceof q))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,U=(function(){function C(q){x(this,C),this.scroll=q,this.delta=this.getDelta()}return N(C,[{key:"applyDelta",value:function(A){var R=this,j=!1;this.scroll.update();var H=this.scroll.length();return this.scroll.batchStart(),A=Z(A),A.reduce(function(M,P){var B=P.retain||P.delete||P.insert.length||1,K=P.attributes||{};if(P.insert!=null){if(typeof P.insert=="string"){var G=P.insert;G.endsWith(`
`)&&j&&(j=!1,G=G.slice(0,-1)),M>=H&&!G.endsWith(`
`)&&(j=!0),R.scroll.insertAt(M,G);var Y=R.scroll.line(M),tt=S(Y,2),nt=tt[0],it=tt[1],ut=(0,v.default)({},(0,o.bubbleFormats)(nt));if(nt instanceof r.default){var st=nt.descendant(n.default.Leaf,it),mt=S(st,1),gt=mt[0];ut=(0,v.default)(ut,(0,o.bubbleFormats)(gt))}K=i.default.attributes.diff(ut,K)||{}}else if(L(P.insert)==="object"){var $=Object.keys(P.insert)[0];if($==null)return M;R.scroll.insertAt(M,$,P.insert[$])}H+=B}return Object.keys(K).forEach(function(W){R.scroll.formatAt(M,B,W,K[W])}),M+B},0),A.reduce(function(M,P){return typeof P.delete=="number"?(R.scroll.deleteAt(M,P.delete),M):M+(P.retain||P.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,R){return this.scroll.deleteAt(A,R),this.update(new d.default().retain(A).delete(R))}},{key:"formatLine",value:function(A,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(H).forEach(function(M){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[M])){var P=j.scroll.lines(A,Math.max(R,1)),B=R;P.forEach(function(K){var G=K.length();if(!(K instanceof u.default))K.format(M,H[M]);else{var Y=A-K.offset(j.scroll),tt=K.newlineIndex(Y+B)-Y+1;K.formatAt(Y,tt,M,H[M])}B-=G})}}),this.scroll.optimize(),this.update(new d.default().retain(A).retain(R,(0,b.default)(H)))}},{key:"formatText",value:function(A,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(H).forEach(function(M){j.scroll.formatAt(A,R,M,H[M])}),this.update(new d.default().retain(A).retain(R,(0,b.default)(H)))}},{key:"getContents",value:function(A,R){return this.delta.slice(A,A+R)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,R){return A.concat(R.delta())},new d.default)}},{key:"getFormat",value:function(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],H=[];R===0?this.scroll.path(A).forEach(function(P){var B=S(P,1),K=B[0];K instanceof r.default?j.push(K):K instanceof n.default.Leaf&&H.push(K)}):(j=this.scroll.lines(A,R),H=this.scroll.descendants(n.default.Leaf,A,R));var M=[j,H].map(function(P){if(P.length===0)return{};for(var B=(0,o.bubbleFormats)(P.shift());Object.keys(B).length>0;){var K=P.shift();if(K==null)return B;B=z((0,o.bubbleFormats)(K),B)}return B});return v.default.apply(v.default,M)}},{key:"getText",value:function(A,R){return this.getContents(A,R).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(A,R,j){return this.scroll.insertAt(A,R,j),this.update(new d.default().retain(A).insert(w({},R,j)))}},{key:"insertText",value:function(A,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return R=R.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(A,R),Object.keys(H).forEach(function(M){j.scroll.formatAt(A,R.length,M,H[M])}),this.update(new d.default().retain(A).insert(R,(0,b.default)(H)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return A.statics.blotName!==r.default.blotName||A.children.length>1?!1:A.children.head instanceof l.default}},{key:"removeFormat",value:function(A,R){var j=this.getText(A,R),H=this.scroll.line(A+R),M=S(H,2),P=M[0],B=M[1],K=0,G=new d.default;P!=null&&(P instanceof u.default?K=P.newlineIndex(B)-B+1:K=P.length()-B,G=P.delta().slice(B,B+K-1).insert(`
`));var Y=this.getContents(A,R+K),tt=Y.diff(new d.default().insert(j).concat(G)),nt=new d.default().retain(A).concat(tt);return this.applyDelta(nt)}},{key:"update",value:function(A){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,H=this.delta;if(R.length===1&&R[0].type==="characterData"&&R[0].target.data.match(I)&&n.default.find(R[0].target)){var M=n.default.find(R[0].target),P=(0,o.bubbleFormats)(M),B=M.offset(this.scroll),K=R[0].oldValue.replace(a.default.CONTENTS,""),G=new d.default().insert(K),Y=new d.default().insert(M.value()),tt=new d.default().retain(B).concat(G.diff(Y,j));A=tt.reduce(function(nt,it){return it.insert?nt.insert(it.insert,P):nt.push(it)},new d.default),this.delta=H.compose(A)}else this.delta=this.getDelta(),(!A||!(0,T.default)(H.compose(A),this.delta))&&(A=H.diff(this.delta,j));return A}}]),C})();function z(C,q){return Object.keys(q).reduce(function(A,R){return C[R]==null||(q[R]===C[R]?A[R]=q[R]:Array.isArray(q[R])?q[R].indexOf(C[R])<0&&(A[R]=q[R].concat([C[R]])):A[R]=[q[R],C[R]]),A},{})}function Z(C){return C.reduce(function(q,A){if(A.insert===1){var R=(0,b.default)(A.attributes);return delete R.image,q.insert({image:A.attributes.image},R)}if(A.attributes!=null&&(A.attributes.list===!0||A.attributes.bullet===!0)&&(A=(0,b.default)(A),A.attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),typeof A.insert=="string"){var j=A.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return q.insert(j,A.attributes)}return q.push(A)},new d.default)}O.default=U}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var L=(function(){function g(T,p){var v=[],_=!0,w=!1,x=void 0;try{for(var I=T[Symbol.iterator](),U;!(_=(U=I.next()).done)&&(v.push(U.value),!(p&&v.length===p));_=!0);}catch(z){w=!0,x=z}finally{try{!_&&I.return&&I.return()}finally{if(w)throw x}}return v}return function(T,p){if(Array.isArray(T))return T;if(Symbol.iterator in Object(T))return g(T,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function g(T,p){for(var v=0;v<p.length;v++){var _=p[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(T,_.key,_)}}return function(T,p,v){return p&&g(T.prototype,p),v&&g(T,v),T}})(),N=m(0),y=a(N),d=m(21),f=a(d),i=m(11),t=a(i),n=m(8),h=a(n),u=m(10),c=a(u);function a(g){return g&&g.__esModule?g:{default:g}}function o(g){if(Array.isArray(g)){for(var T=0,p=Array(g.length);T<g.length;T++)p[T]=g[T];return p}else return Array.from(g)}function r(g,T){if(!(g instanceof T))throw new TypeError("Cannot call a class as a function")}var e=(0,c.default)("quill:selection"),l=function g(T){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;r(this,g),this.index=T,this.length=p},E=(function(){function g(T,p){var v=this;r(this,g),this.emitter=p,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new l(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){v.mouseDown||setTimeout(v.update.bind(v,h.default.sources.USER),1)}),this.emitter.on(h.default.events.EDITOR_CHANGE,function(_,w){_===h.default.events.TEXT_CHANGE&&w.length()>0&&v.update(h.default.sources.SILENT)}),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var _=v.getNativeRange();_!=null&&_.start.node!==v.cursor.textNode&&v.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(_.start.node,_.start.offset,_.end.node,_.end.offset)}catch{}})}}),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(_,w){if(w.range){var x=w.range,I=x.startNode,U=x.startOffset,z=x.endNode,Z=x.endOffset;v.setNativeRange(I,U,z,Z)}}),this.update(h.default.sources.SILENT)}return S(g,[{key:"handleComposition",value:function(){var p=this;this.root.addEventListener("compositionstart",function(){p.composing=!0}),this.root.addEventListener("compositionend",function(){if(p.composing=!1,p.cursor.parent){var v=p.cursor.restore();if(!v)return;setTimeout(function(){p.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){var p=this;this.emitter.listenDOM("mousedown",document.body,function(){p.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){p.mouseDown=!1,p.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(p,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[p])){this.scroll.update();var _=this.getNativeRange();if(!(_==null||!_.native.collapsed||y.default.query(p,y.default.Scope.BLOCK))){if(_.start.node!==this.cursor.textNode){var w=y.default.find(_.start.node,!1);if(w==null)return;if(w instanceof y.default.Leaf){var x=w.split(_.start.offset);w.parent.insertBefore(this.cursor,x)}else w.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(p,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=this.scroll.length();p=Math.min(p,_-1),v=Math.min(p+v,_-1)-p;var w=void 0,x=this.scroll.leaf(p),I=L(x,2),U=I[0],z=I[1];if(U==null)return null;var Z=U.position(z,!0),C=L(Z,2);w=C[0],z=C[1];var q=document.createRange();if(v>0){q.setStart(w,z);var A=this.scroll.leaf(p+v),R=L(A,2);if(U=R[0],z=R[1],U==null)return null;var j=U.position(z,!0),H=L(j,2);return w=H[0],z=H[1],q.setEnd(w,z),q.getBoundingClientRect()}else{var M="left",P=void 0;return w instanceof Text?(z<w.data.length?(q.setStart(w,z),q.setEnd(w,z+1)):(q.setStart(w,z-1),q.setEnd(w,z),M="right"),P=q.getBoundingClientRect()):(P=U.domNode.getBoundingClientRect(),z>0&&(M="right")),{bottom:P.top+P.height,height:P.height,left:P[M],right:P[M],top:P.top,width:0}}}},{key:"getNativeRange",value:function(){var p=document.getSelection();if(p==null||p.rangeCount<=0)return null;var v=p.getRangeAt(0);if(v==null)return null;var _=this.normalizeNative(v);return e.info("getNativeRange",_),_}},{key:"getRange",value:function(){var p=this.getNativeRange();if(p==null)return[null,null];var v=this.normalizedToRange(p);return[v,p]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(p){var v=this,_=[[p.start.node,p.start.offset]];p.native.collapsed||_.push([p.end.node,p.end.offset]);var w=_.map(function(U){var z=L(U,2),Z=z[0],C=z[1],q=y.default.find(Z,!0),A=q.offset(v.scroll);return C===0?A:q instanceof y.default.Container?A+q.length():A+q.index(Z,C)}),x=Math.min(Math.max.apply(Math,o(w)),this.scroll.length()-1),I=Math.min.apply(Math,[x].concat(o(w)));return new l(I,x-I)}},{key:"normalizeNative",value:function(p){if(!b(this.root,p.startContainer)||!p.collapsed&&!b(this.root,p.endContainer))return null;var v={start:{node:p.startContainer,offset:p.startOffset},end:{node:p.endContainer,offset:p.endOffset},native:p};return[v.start,v.end].forEach(function(_){for(var w=_.node,x=_.offset;!(w instanceof Text)&&w.childNodes.length>0;)if(w.childNodes.length>x)w=w.childNodes[x],x=0;else if(w.childNodes.length===x)w=w.lastChild,x=w instanceof Text?w.data.length:w.childNodes.length+1;else break;_.node=w,_.offset=x}),v}},{key:"rangeToNative",value:function(p){var v=this,_=p.collapsed?[p.index]:[p.index,p.index+p.length],w=[],x=this.scroll.length();return _.forEach(function(I,U){I=Math.min(x-1,I);var z=void 0,Z=v.scroll.leaf(I),C=L(Z,2),q=C[0],A=C[1],R=q.position(A,U!==0),j=L(R,2);z=j[0],A=j[1],w.push(z,A)}),w.length<2&&(w=w.concat(w)),w}},{key:"scrollIntoView",value:function(p){var v=this.lastRange;if(v!=null){var _=this.getBounds(v.index,v.length);if(_!=null){var w=this.scroll.length()-1,x=this.scroll.line(Math.min(v.index,w)),I=L(x,1),U=I[0],z=U;if(v.length>0){var Z=this.scroll.line(Math.min(v.index+v.length,w)),C=L(Z,1);z=C[0]}if(!(U==null||z==null)){var q=p.getBoundingClientRect();_.top<q.top?p.scrollTop-=q.top-_.top:_.bottom>q.bottom&&(p.scrollTop+=_.bottom-q.bottom)}}}}},{key:"setNativeRange",value:function(p,v){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(e.info("setNativeRange",p,v,_,w),!(p!=null&&(this.root.parentNode==null||p.parentNode==null||_.parentNode==null))){var I=document.getSelection();if(I!=null)if(p!=null){this.hasFocus()||this.root.focus();var U=(this.getNativeRange()||{}).native;if(U==null||x||p!==U.startContainer||v!==U.startOffset||_!==U.endContainer||w!==U.endOffset){p.tagName=="BR"&&(v=[].indexOf.call(p.parentNode.childNodes,p),p=p.parentNode),_.tagName=="BR"&&(w=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode);var z=document.createRange();z.setStart(p,v),z.setEnd(_,w),I.removeAllRanges(),I.addRange(z)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof v=="string"&&(_=v,v=!1),e.info("setRange",p),p!=null){var w=this.rangeToNative(p);this.setNativeRange.apply(this,o(w).concat([v]))}else this.setNativeRange(null);this.update(_)}},{key:"update",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,v=this.lastRange,_=this.getRange(),w=L(_,2),x=w[0],I=w[1];if(this.lastRange=x,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(v,this.lastRange)){var U;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[h.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(v),p];if((U=this.emitter).emit.apply(U,[h.default.events.EDITOR_CHANGE].concat(z)),p!==h.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,z)}}}}]),g})();function b(g,T){try{T.parentNode}catch{return!1}return T instanceof Text&&(T=T.parentNode),g.contains(T)}O.Range=l,O.default=E}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var e=o.get;return e===void 0?void 0:e.call(a)}},N=m(0),y=d(N);function d(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var n=(function(h){t(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return L(u,[{key:"insertInto",value:function(a,o){a.children.length===0?S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"insertInto",this).call(this,a,o):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),u})(y.default.Embed);n.blotName="break",n.tagName="BR",O.default=n}),(function(F,O,m){var L=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var h in n)n.hasOwnProperty(h)&&(t[h]=n[h])};return function(t,n){i(t,n);function h(){this.constructor=t}t.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(44),N=m(30),y=m(1),d=(function(i){L(t,i);function t(n){var h=i.call(this,n)||this;return h.build(),h}return t.prototype.appendChild=function(n){this.insertBefore(n)},t.prototype.attach=function(){i.prototype.attach.call(this),this.children.forEach(function(n){n.attach()})},t.prototype.build=function(){var n=this;this.children=new S.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(h){try{var u=f(h);n.insertBefore(u,n.children.head||void 0)}catch(c){if(c instanceof y.ParchmentError)return;throw c}})},t.prototype.deleteAt=function(n,h){if(n===0&&h===this.length())return this.remove();this.children.forEachAt(n,h,function(u,c,a){u.deleteAt(c,a)})},t.prototype.descendant=function(n,h){var u=this.children.find(h),c=u[0],a=u[1];return n.blotName==null&&n(c)||n.blotName!=null&&c instanceof n?[c,a]:c instanceof t?c.descendant(n,a):[null,-1]},t.prototype.descendants=function(n,h,u){h===void 0&&(h=0),u===void 0&&(u=Number.MAX_VALUE);var c=[],a=u;return this.children.forEachAt(h,u,function(o,r,e){(n.blotName==null&&n(o)||n.blotName!=null&&o instanceof n)&&c.push(o),o instanceof t&&(c=c.concat(o.descendants(n,r,a))),a-=e}),c},t.prototype.detach=function(){this.children.forEach(function(n){n.detach()}),i.prototype.detach.call(this)},t.prototype.formatAt=function(n,h,u,c){this.children.forEachAt(n,h,function(a,o,r){a.formatAt(o,r,u,c)})},t.prototype.insertAt=function(n,h,u){var c=this.children.find(n),a=c[0],o=c[1];if(a)a.insertAt(o,h,u);else{var r=u==null?y.create("text",h):y.create(h,u);this.appendChild(r)}},t.prototype.insertBefore=function(n,h){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(u){return n instanceof u}))throw new y.ParchmentError("Cannot insert "+n.statics.blotName+" into "+this.statics.blotName);n.insertInto(this,h)},t.prototype.length=function(){return this.children.reduce(function(n,h){return n+h.length()},0)},t.prototype.moveChildren=function(n,h){this.children.forEach(function(u){n.insertBefore(u,h)})},t.prototype.optimize=function(n){if(i.prototype.optimize.call(this,n),this.children.length===0)if(this.statics.defaultChild!=null){var h=y.create(this.statics.defaultChild);this.appendChild(h),h.optimize(n)}else this.remove()},t.prototype.path=function(n,h){h===void 0&&(h=!1);var u=this.children.find(n,h),c=u[0],a=u[1],o=[[this,n]];return c instanceof t?o.concat(c.path(a,h)):(c!=null&&o.push([c,a]),o)},t.prototype.removeChild=function(n){this.children.remove(n)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),i.prototype.replace.call(this,n)},t.prototype.split=function(n,h){if(h===void 0&&(h=!1),!h){if(n===0)return this;if(n===this.length())return this.next}var u=this.clone();return this.parent.insertBefore(u,this.next),this.children.forEachAt(n,this.length(),function(c,a,o){c=c.split(a,h),u.appendChild(c)}),u},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(n,h){var u=this,c=[],a=[];n.forEach(function(o){o.target===u.domNode&&o.type==="childList"&&(c.push.apply(c,o.addedNodes),a.push.apply(a,o.removedNodes))}),a.forEach(function(o){if(!(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var r=y.find(o);r!=null&&(r.domNode.parentNode==null||r.domNode.parentNode===u.domNode)&&r.detach()}}),c.filter(function(o){return o.parentNode==u.domNode}).sort(function(o,r){return o===r?0:o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(o){var r=null;o.nextSibling!=null&&(r=y.find(o.nextSibling));var e=f(o);(e.next!=r||e.next==null)&&(e.parent!=null&&e.parent.removeChild(u),u.insertBefore(e,r||void 0))})},t})(N.default);function f(i){var t=y.find(i);if(t==null)try{t=y.create(i)}catch{t=y.create(y.Scope.INLINE),[].slice.call(i.childNodes).forEach(function(h){t.domNode.appendChild(h)}),i.parentNode&&i.parentNode.replaceChild(t.domNode,i),t.attach()}return t}O.default=d}),(function(F,O,m){var L=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var h in n)n.hasOwnProperty(h)&&(t[h]=n[h])};return function(t,n){i(t,n);function h(){this.constructor=t}t.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(12),N=m(31),y=m(17),d=m(1),f=(function(i){L(t,i);function t(n){var h=i.call(this,n)||this;return h.attributes=new N.default(h.domNode),h}return t.formats=function(n){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return n.tagName.toLowerCase()},t.prototype.format=function(n,h){var u=d.query(n);u instanceof S.default?this.attributes.attribute(u,h):h&&u!=null&&(n!==this.statics.blotName||this.formats()[n]!==h)&&this.replaceWith(n,h)},t.prototype.formats=function(){var n=this.attributes.values(),h=this.statics.formats(this.domNode);return h!=null&&(n[this.statics.blotName]=h),n},t.prototype.replaceWith=function(n,h){var u=i.prototype.replaceWith.call(this,n,h);return this.attributes.copy(u),u},t.prototype.update=function(n,h){var u=this;i.prototype.update.call(this,n,h),n.some(function(c){return c.target===u.domNode&&c.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(n,h){var u=i.prototype.wrap.call(this,n,h);return u instanceof t&&u.statics.scope===this.statics.scope&&this.attributes.move(u),u},t})(y.default);O.default=f}),(function(F,O,m){var L=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var t in i)i.hasOwnProperty(t)&&(f[t]=i[t])};return function(f,i){d(f,i);function t(){this.constructor=f}f.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(30),N=m(1),y=(function(d){L(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.value=function(i){return!0},f.prototype.index=function(i,t){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},f.prototype.position=function(i,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return i>0&&(n+=1),[this.parent.domNode,n]},f.prototype.value=function(){var i;return i={},i[this.statics.blotName]=this.statics.value(this.domNode)||!0,i},f.scope=N.Scope.INLINE_BLOT,f})(S.default);O.default=y}),(function(F,O,m){var L=m(11),S=m(3),N={attributes:{compose:function(d,f,i){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var t=S(!0,{},f);i||(t=Object.keys(t).reduce(function(h,u){return t[u]!=null&&(h[u]=t[u]),h},{}));for(var n in d)d[n]!==void 0&&f[n]===void 0&&(t[n]=d[n]);return Object.keys(t).length>0?t:void 0},diff:function(d,f){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var i=Object.keys(d).concat(Object.keys(f)).reduce(function(t,n){return L(d[n],f[n])||(t[n]=f[n]===void 0?null:f[n]),t},{});return Object.keys(i).length>0?i:void 0},transform:function(d,f,i){if(typeof d!="object")return f;if(typeof f=="object"){if(!i)return f;var t=Object.keys(f).reduce(function(n,h){return d[h]===void 0&&(n[h]=f[h]),n},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(d){return new y(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function y(d){this.ops=d,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(d){d||(d=1/0);var f=this.ops[this.index];if(f){var i=this.offset,t=N.length(f);if(d>=t-i?(d=t-i,this.index+=1,this.offset=0):this.offset+=d,typeof f.delete=="number")return{delete:d};var n={};return f.attributes&&(n.attributes=f.attributes),typeof f.retain=="number"?n.retain=d:typeof f.insert=="string"?n.insert=f.insert.substr(i,d):n.insert=f.insert,n}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?N.length(this.ops[this.index])-this.offset:1/0},y.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,f=this.index,i=this.next(),t=this.ops.slice(this.index);return this.offset=d,this.index=f,[i].concat(t)}else return[]},F.exports=N}),(function(F,O){var m=(function(){function L(u,c){return c!=null&&u instanceof c}var S;try{S=Map}catch{S=function(){}}var N;try{N=Set}catch{N=function(){}}var y;try{y=Promise}catch{y=function(){}}function d(u,c,a,o,r){typeof c=="object"&&(a=c.depth,o=c.prototype,r=c.includeNonEnumerable,c=c.circular);var e=[],l=[],E=typeof Buffer<"u";typeof c>"u"&&(c=!0),typeof a>"u"&&(a=1/0);function b(g,T){if(g===null)return null;if(T===0)return g;var p,v;if(typeof g!="object")return g;if(L(g,S))p=new S;else if(L(g,N))p=new N;else if(L(g,y))p=new y(function(q,A){g.then(function(R){q(b(R,T-1))},function(R){A(b(R,T-1))})});else if(d.__isArray(g))p=[];else if(d.__isRegExp(g))p=new RegExp(g.source,h(g)),g.lastIndex&&(p.lastIndex=g.lastIndex);else if(d.__isDate(g))p=new Date(g.getTime());else{if(E&&Buffer.isBuffer(g))return Buffer.allocUnsafe?p=Buffer.allocUnsafe(g.length):p=new Buffer(g.length),g.copy(p),p;L(g,Error)?p=Object.create(g):typeof o>"u"?(v=Object.getPrototypeOf(g),p=Object.create(v)):(p=Object.create(o),v=o)}if(c){var _=e.indexOf(g);if(_!=-1)return l[_];e.push(g),l.push(p)}L(g,S)&&g.forEach(function(q,A){var R=b(A,T-1),j=b(q,T-1);p.set(R,j)}),L(g,N)&&g.forEach(function(q){var A=b(q,T-1);p.add(A)});for(var w in g){var x;v&&(x=Object.getOwnPropertyDescriptor(v,w)),!(x&&x.set==null)&&(p[w]=b(g[w],T-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(g),w=0;w<I.length;w++){var U=I[w],z=Object.getOwnPropertyDescriptor(g,U);z&&!z.enumerable&&!r||(p[U]=b(g[U],T-1),z.enumerable||Object.defineProperty(p,U,{enumerable:!1}))}if(r)for(var Z=Object.getOwnPropertyNames(g),w=0;w<Z.length;w++){var C=Z[w],z=Object.getOwnPropertyDescriptor(g,C);z&&z.enumerable||(p[C]=b(g[C],T-1),Object.defineProperty(p,C,{enumerable:!1}))}return p}return b(u,a)}d.clonePrototype=function(c){if(c===null)return null;var a=function(){};return a.prototype=c,new a};function f(u){return Object.prototype.toString.call(u)}d.__objToStr=f;function i(u){return typeof u=="object"&&f(u)==="[object Date]"}d.__isDate=i;function t(u){return typeof u=="object"&&f(u)==="[object Array]"}d.__isArray=t;function n(u){return typeof u=="object"&&f(u)==="[object RegExp]"}d.__isRegExp=n;function h(u){var c="";return u.global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),c}return d.__getRegExpFlags=h,d})();typeof F=="object"&&F.exports&&(F.exports=m)}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function p(v,_){var w=[],x=!0,I=!1,U=void 0;try{for(var z=v[Symbol.iterator](),Z;!(x=(Z=z.next()).done)&&(w.push(Z.value),!(_&&w.length===_));x=!0);}catch(C){I=!0,U=C}finally{try{!x&&z.return&&z.return()}finally{if(I)throw U}}return w}return function(v,_){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return p(v,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function p(v,_){for(var w=0;w<_.length;w++){var x=_[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,_,w){return _&&p(v.prototype,_),w&&p(v,w),v}})(),N=function p(v,_,w){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,_);if(x===void 0){var I=Object.getPrototypeOf(v);return I===null?void 0:p(I,_,w)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(w)}},y=m(0),d=e(y),f=m(8),i=e(f),t=m(4),n=e(t),h=m(16),u=e(h),c=m(13),a=e(c),o=m(25),r=e(o);function e(p){return p&&p.__esModule?p:{default:p}}function l(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function E(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function b(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}function g(p){return p instanceof n.default||p instanceof t.BlockEmbed}var T=(function(p){b(v,p);function v(_,w){l(this,v);var x=E(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_));return x.emitter=w.emitter,Array.isArray(w.whitelist)&&(x.whitelist=w.whitelist.reduce(function(I,U){return I[U]=!0,I},{})),x.domNode.addEventListener("DOMNodeInserted",function(){}),x.optimize(),x.enable(),x}return S(v,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(w,x){var I=this.line(w),U=L(I,2),z=U[0],Z=U[1],C=this.line(w+x),q=L(C,1),A=q[0];if(N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,w,x),A!=null&&z!==A&&Z>0){if(z instanceof t.BlockEmbed||A instanceof t.BlockEmbed){this.optimize();return}if(z instanceof a.default){var R=z.newlineIndex(z.length(),!0);if(R>-1&&(z=z.split(R+1),z===A)){this.optimize();return}}else if(A instanceof a.default){var j=A.newlineIndex(0);j>-1&&A.split(j+1)}var H=A.children.head instanceof u.default?null:A.children.head;z.moveChildren(A,H),z.remove()}this.optimize()}},{key:"enable",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",w)}},{key:"formatAt",value:function(w,x,I,U){this.whitelist!=null&&!this.whitelist[I]||(N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,w,x,I,U),this.optimize())}},{key:"insertAt",value:function(w,x,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[x])){if(w>=this.length())if(I==null||d.default.query(x,d.default.Scope.BLOCK)==null){var U=d.default.create(this.statics.defaultChild);this.appendChild(U),I==null&&x.endsWith(`
`)&&(x=x.slice(0,-1)),U.insertAt(0,x,I)}else{var z=d.default.create(x,I);this.appendChild(z)}else N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,w,x,I);this.optimize()}}},{key:"insertBefore",value:function(w,x){if(w.statics.scope===d.default.Scope.INLINE_BLOT){var I=d.default.create(this.statics.defaultChild);I.appendChild(w),w=I}N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,w,x)}},{key:"leaf",value:function(w){return this.path(w).pop()||[null,-1]}},{key:"line",value:function(w){return w===this.length()?this.line(w-1):this.descendant(g,w)}},{key:"lines",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function U(z,Z,C){var q=[],A=C;return z.children.forEachAt(Z,C,function(R,j,H){g(R)?q.push(R):R instanceof d.default.Container&&(q=q.concat(U(R,j,A))),A-=H}),q};return I(this,w,x)}},{key:"optimize",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,w,x),w.length>0&&this.emitter.emit(i.default.events.SCROLL_OPTIMIZE,w,x))}},{key:"path",value:function(w){return N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,w).slice(1)}},{key:"update",value:function(w){if(this.batch!==!0){var x=i.default.sources.USER;typeof w=="string"&&(x=w),Array.isArray(w)||(w=this.observer.takeRecords()),w.length>0&&this.emitter.emit(i.default.events.SCROLL_BEFORE_UPDATE,x,w),N(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,w.concat([])),w.length>0&&this.emitter.emit(i.default.events.SCROLL_UPDATE,x,w)}}}]),v})(d.default.Scroll);T.blotName="scroll",T.className="ql-editor",T.tagName="DIV",T.defaultChild="block",T.allowedChildren=[n.default,t.BlockEmbed,r.default],O.default=T}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},S=(function(){function P(B,K){var G=[],Y=!0,tt=!1,nt=void 0;try{for(var it=B[Symbol.iterator](),ut;!(Y=(ut=it.next()).done)&&(G.push(ut.value),!(K&&G.length===K));Y=!0);}catch(st){tt=!0,nt=st}finally{try{!Y&&it.return&&it.return()}finally{if(tt)throw nt}}return G}return function(B,K){if(Array.isArray(B))return B;if(Symbol.iterator in Object(B))return P(B,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),N=(function(){function P(B,K){for(var G=0;G<K.length;G++){var Y=K[G];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(B,Y.key,Y)}}return function(B,K,G){return K&&P(B.prototype,K),G&&P(B,G),B}})(),y=m(21),d=p(y),f=m(11),i=p(f),t=m(3),n=p(t),h=m(2),u=p(h),c=m(20),a=p(c),o=m(0),r=p(o),e=m(5),l=p(e),E=m(10),b=p(E),g=m(9),T=p(g);function p(P){return P&&P.__esModule?P:{default:P}}function v(P,B,K){return B in P?Object.defineProperty(P,B,{value:K,enumerable:!0,configurable:!0,writable:!0}):P[B]=K,P}function _(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}function w(P,B){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B&&(typeof B=="object"||typeof B=="function")?B:P}function x(P,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof B);P.prototype=Object.create(B&&B.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(P,B):P.__proto__=B)}var I=(0,b.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=(function(P){x(B,P),N(B,null,[{key:"match",value:function(G,Y){return Y=M(Y),["altKey","ctrlKey","metaKey","shiftKey"].some(function(tt){return!!Y[tt]!==G[tt]&&Y[tt]!==null})?!1:Y.key===(G.which||G.keyCode)}}]);function B(K,G){_(this,B);var Y=w(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,K,G));return Y.bindings={},Object.keys(Y.options.bindings).forEach(function(tt){tt==="list autofill"&&K.scroll.whitelist!=null&&!K.scroll.whitelist.list||Y.options.bindings[tt]&&Y.addBinding(Y.options.bindings[tt])}),Y.addBinding({key:B.keys.ENTER,shiftKey:null},R),Y.addBinding({key:B.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Y.addBinding({key:B.keys.BACKSPACE},{collapsed:!0},C),Y.addBinding({key:B.keys.DELETE},{collapsed:!0},q)):(Y.addBinding({key:B.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},C),Y.addBinding({key:B.keys.DELETE},{collapsed:!0,suffix:/^.?$/},q)),Y.addBinding({key:B.keys.BACKSPACE},{collapsed:!1},A),Y.addBinding({key:B.keys.DELETE},{collapsed:!1},A),Y.addBinding({key:B.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},C),Y.listen(),Y}return N(B,[{key:"addBinding",value:function(G){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=M(G);if(nt==null||nt.key==null)return I.warn("Attempted to add invalid keyboard binding",nt);typeof Y=="function"&&(Y={handler:Y}),typeof tt=="function"&&(tt={handler:tt}),nt=(0,n.default)(nt,Y,tt),this.bindings[nt.key]=this.bindings[nt.key]||[],this.bindings[nt.key].push(nt)}},{key:"listen",value:function(){var G=this;this.quill.root.addEventListener("keydown",function(Y){if(!Y.defaultPrevented){var tt=Y.which||Y.keyCode,nt=(G.bindings[tt]||[]).filter(function(ct){return B.match(Y,ct)});if(nt.length!==0){var it=G.quill.getSelection();if(!(it==null||!G.quill.hasFocus())){var ut=G.quill.getLine(it.index),st=S(ut,2),mt=st[0],gt=st[1],$=G.quill.getLeaf(it.index),W=S($,2),Q=W[0],J=W[1],X=it.length===0?[Q,J]:G.quill.getLeaf(it.index+it.length),at=S(X,2),rt=at[0],ot=at[1],wt=Q instanceof r.default.Text?Q.value().slice(0,J):"",Ot=rt instanceof r.default.Text?rt.value().slice(ot):"",pt={collapsed:it.length===0,empty:it.length===0&&mt.length()<=1,format:G.quill.getFormat(it),offset:gt,prefix:wt,suffix:Ot},Kt=nt.some(function(ct){if(ct.collapsed!=null&&ct.collapsed!==pt.collapsed||ct.empty!=null&&ct.empty!==pt.empty||ct.offset!=null&&ct.offset!==pt.offset)return!1;if(Array.isArray(ct.format)){if(ct.format.every(function(Lt){return pt.format[Lt]==null}))return!1}else if(L(ct.format)==="object"&&!Object.keys(ct.format).every(function(Lt){return ct.format[Lt]===!0?pt.format[Lt]!=null:ct.format[Lt]===!1?pt.format[Lt]==null:(0,i.default)(ct.format[Lt],pt.format[Lt])}))return!1;return ct.prefix!=null&&!ct.prefix.test(pt.prefix)||ct.suffix!=null&&!ct.suffix.test(pt.suffix)?!1:ct.handler.call(G,it,pt)!==!0});Kt&&Y.preventDefault()}}}})}}]),B})(T.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:H("bold"),italic:H("italic"),underline:H("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(B,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","+1",l.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(B,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","-1",l.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(B,K){K.format.indent!=null?this.quill.format("indent","-1",l.default.sources.USER):K.format.list!=null&&this.quill.format("list",!1,l.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(B){this.quill.deleteText(B.index-1,1,l.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(B){this.quill.history.cutoff();var K=new u.default().retain(B.index).delete(B.length).insert(" ");this.quill.updateContents(K,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(B.index+1,l.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(B,K){this.quill.format("list",!1,l.default.sources.USER),K.format.indent&&this.quill.format("indent",!1,l.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(B){var K=this.quill.getLine(B.index),G=S(K,2),Y=G[0],tt=G[1],nt=(0,n.default)({},Y.formats(),{list:"checked"}),it=new u.default().retain(B.index).insert(`
`,nt).retain(Y.length()-tt-1).retain(1,{list:"unchecked"});this.quill.updateContents(it,l.default.sources.USER),this.quill.setSelection(B.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(B,K){var G=this.quill.getLine(B.index),Y=S(G,2),tt=Y[0],nt=Y[1],it=new u.default().retain(B.index).insert(`
`,K.format).retain(tt.length()-nt-1).retain(1,{header:null});this.quill.updateContents(it,l.default.sources.USER),this.quill.setSelection(B.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(B,K){var G=K.prefix.length,Y=this.quill.getLine(B.index),tt=S(Y,2),nt=tt[0],it=tt[1];if(it>G)return!0;var ut=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":ut="unchecked";break;case"[x]":ut="checked";break;case"-":case"*":ut="bullet";break;default:ut="ordered"}this.quill.insertText(B.index," ",l.default.sources.USER),this.quill.history.cutoff();var st=new u.default().retain(B.index-it).delete(G+1).retain(nt.length()-2-it).retain(1,{list:ut});this.quill.updateContents(st,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(B.index-G,l.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(B){var K=this.quill.getLine(B.index),G=S(K,2),Y=G[0],tt=G[1],nt=new u.default().retain(B.index+Y.length()-tt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(nt,l.default.sources.USER)}},"embed left":Z(z.keys.LEFT,!1),"embed left shift":Z(z.keys.LEFT,!0),"embed right":Z(z.keys.RIGHT,!1),"embed right shift":Z(z.keys.RIGHT,!0)}};function Z(P,B){var K,G=P===z.keys.LEFT?"prefix":"suffix";return K={key:P,shiftKey:B,altKey:null},v(K,G,/^$/),v(K,"handler",function(tt){var nt=tt.index;P===z.keys.RIGHT&&(nt+=tt.length+1);var it=this.quill.getLeaf(nt),ut=S(it,1),st=ut[0];return st instanceof r.default.Embed?(P===z.keys.LEFT?B?this.quill.setSelection(tt.index-1,tt.length+1,l.default.sources.USER):this.quill.setSelection(tt.index-1,l.default.sources.USER):B?this.quill.setSelection(tt.index,tt.length+1,l.default.sources.USER):this.quill.setSelection(tt.index+tt.length+1,l.default.sources.USER),!1):!0}),K}function C(P,B){if(!(P.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(P.index),G=S(K,1),Y=G[0],tt={};if(B.offset===0){var nt=this.quill.getLine(P.index-1),it=S(nt,1),ut=it[0];if(ut!=null&&ut.length()>1){var st=Y.formats(),mt=this.quill.getFormat(P.index-1,1);tt=a.default.attributes.diff(st,mt)||{}}}var gt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(B.prefix)?2:1;this.quill.deleteText(P.index-gt,gt,l.default.sources.USER),Object.keys(tt).length>0&&this.quill.formatLine(P.index-gt,gt,tt,l.default.sources.USER),this.quill.focus()}}function q(P,B){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(B.suffix)?2:1;if(!(P.index>=this.quill.getLength()-K)){var G={},Y=0,tt=this.quill.getLine(P.index),nt=S(tt,1),it=nt[0];if(B.offset>=it.length()-1){var ut=this.quill.getLine(P.index+1),st=S(ut,1),mt=st[0];if(mt){var gt=it.formats(),$=this.quill.getFormat(P.index,1);G=a.default.attributes.diff(gt,$)||{},Y=mt.length()}}this.quill.deleteText(P.index,K,l.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(P.index+Y-1,K,G,l.default.sources.USER)}}function A(P){var B=this.quill.getLines(P),K={};if(B.length>1){var G=B[0].formats(),Y=B[B.length-1].formats();K=a.default.attributes.diff(Y,G)||{}}this.quill.deleteText(P,l.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(P.index,1,K,l.default.sources.USER),this.quill.setSelection(P.index,l.default.sources.SILENT),this.quill.focus()}function R(P,B){var K=this;P.length>0&&this.quill.scroll.deleteAt(P.index,P.length);var G=Object.keys(B.format).reduce(function(Y,tt){return r.default.query(tt,r.default.Scope.BLOCK)&&!Array.isArray(B.format[tt])&&(Y[tt]=B.format[tt]),Y},{});this.quill.insertText(P.index,`
`,G,l.default.sources.USER),this.quill.setSelection(P.index+1,l.default.sources.SILENT),this.quill.focus(),Object.keys(B.format).forEach(function(Y){G[Y]==null&&(Array.isArray(B.format[Y])||Y!=="link"&&K.quill.format(Y,B.format[Y],l.default.sources.USER))})}function j(P){return{key:z.keys.TAB,shiftKey:!P,format:{"code-block":!0},handler:function(K){var G=r.default.query("code-block"),Y=K.index,tt=K.length,nt=this.quill.scroll.descendant(G,Y),it=S(nt,2),ut=it[0],st=it[1];if(ut!=null){var mt=this.quill.getIndex(ut),gt=ut.newlineIndex(st,!0)+1,$=ut.newlineIndex(mt+st+tt),W=ut.domNode.textContent.slice(gt,$).split(`
`);st=0,W.forEach(function(Q,J){P?(ut.insertAt(gt+st,G.TAB),st+=G.TAB.length,J===0?Y+=G.TAB.length:tt+=G.TAB.length):Q.startsWith(G.TAB)&&(ut.deleteAt(gt+st,G.TAB.length),st-=G.TAB.length,J===0?Y-=G.TAB.length:tt-=G.TAB.length),st+=Q.length+1}),this.quill.update(l.default.sources.USER),this.quill.setSelection(Y,tt,l.default.sources.SILENT)}}}}function H(P){return{key:P[0].toUpperCase(),shortKey:!0,handler:function(K,G){this.quill.format(P,!G.format[P],l.default.sources.USER)}}}function M(P){if(typeof P=="string"||typeof P=="number")return M({key:P});if((typeof P>"u"?"undefined":L(P))==="object"&&(P=(0,d.default)(P,!1)),typeof P.key=="string")if(z.keys[P.key.toUpperCase()]!=null)P.key=z.keys[P.key.toUpperCase()];else if(P.key.length===1)P.key=P.key.toUpperCase().charCodeAt(0);else return null;return P.shortKey&&(P[U]=P.shortKey,delete P.shortKey),P}O.default=z,O.SHORTKEY=U}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function a(o,r){var e=[],l=!0,E=!1,b=void 0;try{for(var g=o[Symbol.iterator](),T;!(l=(T=g.next()).done)&&(e.push(T.value),!(r&&e.length===r));l=!0);}catch(p){E=!0,b=p}finally{try{!l&&g.return&&g.return()}finally{if(E)throw b}}return e}return function(o,r){if(Array.isArray(o))return o;if(Symbol.iterator in Object(o))return a(o,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=function a(o,r,e){o===null&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,r);if(l===void 0){var E=Object.getPrototypeOf(o);return E===null?void 0:a(E,r,e)}else{if("value"in l)return l.value;var b=l.get;return b===void 0?void 0:b.call(e)}},N=(function(){function a(o,r){for(var e=0;e<r.length;e++){var l=r[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,r,e){return r&&a(o.prototype,r),e&&a(o,e),o}})(),y=m(0),d=t(y),f=m(7),i=t(f);function t(a){return a&&a.__esModule?a:{default:a}}function n(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function h(a,o){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:a}function u(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}var c=(function(a){u(o,a),N(o,null,[{key:"value",value:function(){}}]);function o(r,e){n(this,o);var l=h(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,r));return l.selection=e,l.textNode=document.createTextNode(o.CONTENTS),l.domNode.appendChild(l.textNode),l._length=0,l}return N(o,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(e,l){if(this._length!==0)return S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,e,l);for(var E=this,b=0;E!=null&&E.statics.scope!==d.default.Scope.BLOCK_BLOT;)b+=E.offset(E.parent),E=E.parent;E!=null&&(this._length=o.CONTENTS.length,E.optimize(),E.formatAt(b,o.CONTENTS.length,e,l),this._length=0)}},{key:"index",value:function(e,l){return e===this.textNode?0:S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,e,l)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var e=this.textNode,l=this.selection.getNativeRange(),E=void 0,b=void 0,g=void 0;if(l!=null&&l.start.node===e&&l.end.node===e){var T=[e,l.start.offset,l.end.offset];E=T[0],b=T[1],g=T[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==o.CONTENTS){var p=this.textNode.data.split(o.CONTENTS).join("");this.next instanceof i.default?(E=this.next.domNode,this.next.insertAt(0,p),this.textNode.data=o.CONTENTS):(this.textNode.data=p,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(o.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),b!=null){var v=[b,g].map(function(w){return Math.max(0,Math.min(E.data.length,w-1))}),_=L(v,2);return b=_[0],g=_[1],{startNode:E,startOffset:b,endNode:E,endOffset:g}}}}},{key:"update",value:function(e,l){var E=this;if(e.some(function(g){return g.type==="characterData"&&g.target===E.textNode})){var b=this.restore();b&&(l.range=b)}}},{key:"value",value:function(){return""}}]),o})(d.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\uFEFF",O.default=c}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(0),S=d(L),N=m(4),y=d(N);function d(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var n=(function(h){t(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(S.default.Container);n.allowedChildren=[y.default,N.BlockEmbed,n],O.default=n}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var L=(function(){function c(a,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(a,e.key,e)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,o);if(e===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in e)return e.value;var E=e.get;return E===void 0?void 0:E.call(r)}},N=m(0),y=d(N);function d(c){return c&&c.__esModule?c:{default:c}}function f(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function i(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function t(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var n=(function(c){t(a,c);function a(){return f(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return L(a,[{key:"value",value:function(r){var e=S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,r);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+e.split(",").map(function(l){return("00"+parseInt(l).toString(16)).slice(-2)}).join("")):e}}]),a})(y.default.Attributor.Style),h=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),u=new n("color","color",{scope:y.default.Scope.INLINE});O.ColorAttributor=n,O.ColorClass=h,O.ColorStyle=u}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var L=(function(){function u(c,a){for(var o=0;o<a.length;o++){var r=a[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(c,r.key,r)}}return function(c,a,o){return a&&u(c.prototype,a),o&&u(c,o),c}})(),S=function u(c,a,o){c===null&&(c=Function.prototype);var r=Object.getOwnPropertyDescriptor(c,a);if(r===void 0){var e=Object.getPrototypeOf(c);return e===null?void 0:u(e,a,o)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(o)}},N=m(6),y=d(N);function d(u){return u&&u.__esModule?u:{default:u}}function f(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function i(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function t(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var n=(function(u){t(c,u);function c(){return f(this,c),i(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return L(c,[{key:"format",value:function(o,r){if(o!==this.statics.blotName||!r)return S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,o,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(o){var r=S(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,o);return o=this.sanitize(o),r.setAttribute("href",o),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(o){return o.getAttribute("href")}},{key:"sanitize",value:function(o){return h(o,this.PROTOCOL_WHITELIST)?o:this.SANITIZED_URL}}]),c})(y.default);n.blotName="link",n.tagName="A",n.SANITIZED_URL="about:blank",n.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function h(u,c){var a=document.createElement("a");a.href=u;var o=a.href.slice(0,a.href.indexOf(":"));return c.indexOf(o)>-1}O.default=n,O.sanitize=h}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},S=(function(){function c(a,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(a,e.key,e)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),N=m(23),y=i(N),d=m(107),f=i(d);function i(c){return c&&c.__esModule?c:{default:c}}function t(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}var n=0;function h(c,a){c.setAttribute(a,c.getAttribute(a)!=="true")}var u=(function(){function c(a){var o=this;t(this,c),this.select=a,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){o.togglePicker()}),this.label.addEventListener("keydown",function(r){switch(r.keyCode){case y.default.keys.ENTER:o.togglePicker();break;case y.default.keys.ESCAPE:o.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return S(c,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(o){var r=this,e=document.createElement("span");return e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item"),o.hasAttribute("value")&&e.setAttribute("data-value",o.getAttribute("value")),o.textContent&&e.setAttribute("data-label",o.textContent),e.addEventListener("click",function(){r.selectItem(e,!0)}),e.addEventListener("keydown",function(l){switch(l.keyCode){case y.default.keys.ENTER:r.selectItem(e,!0),l.preventDefault();break;case y.default.keys.ESCAPE:r.escape(),l.preventDefault();break}}),e}},{key:"buildLabel",value:function(){var o=document.createElement("span");return o.classList.add("ql-picker-label"),o.innerHTML=f.default,o.tabIndex="0",o.setAttribute("role","button"),o.setAttribute("aria-expanded","false"),this.container.appendChild(o),o}},{key:"buildOptions",value:function(){var o=this,r=document.createElement("span");r.classList.add("ql-picker-options"),r.setAttribute("aria-hidden","true"),r.tabIndex="-1",r.id="ql-picker-options-"+n,n+=1,this.label.setAttribute("aria-controls",r.id),this.options=r,[].slice.call(this.select.options).forEach(function(e){var l=o.buildItem(e);r.appendChild(l),e.selected===!0&&o.selectItem(l)}),this.container.appendChild(r)}},{key:"buildPicker",value:function(){var o=this;[].slice.call(this.select.attributes).forEach(function(r){o.container.setAttribute(r.name,r.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var o=this;this.close(),setTimeout(function(){return o.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(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.container.querySelector(".ql-selected");if(o!==e&&(e?.classList.remove("ql-selected"),o!=null&&(o.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(o.parentNode.children,o),o.hasAttribute("data-value")?this.label.setAttribute("data-value",o.getAttribute("data-value")):this.label.removeAttribute("data-value"),o.hasAttribute("data-label")?this.label.setAttribute("data-label",o.getAttribute("data-label")):this.label.removeAttribute("data-label"),r))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":L(Event))==="object"){var l=document.createEvent("Event");l.initEvent("change",!0,!0),this.select.dispatchEvent(l)}this.close()}}},{key:"update",value:function(){var o=void 0;if(this.select.selectedIndex>-1){var r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];o=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);var e=o!=null&&o!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}]),c})();O.default=u}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(0),S=I(L),N=m(5),y=I(N),d=m(4),f=I(d),i=m(16),t=I(i),n=m(25),h=I(n),u=m(24),c=I(u),a=m(35),o=I(a),r=m(6),e=I(r),l=m(22),E=I(l),b=m(7),g=I(b),T=m(55),p=I(T),v=m(42),_=I(v),w=m(23),x=I(w);function I(U){return U&&U.__esModule?U:{default:U}}y.default.register({"blots/block":f.default,"blots/block/embed":d.BlockEmbed,"blots/break":t.default,"blots/container":h.default,"blots/cursor":c.default,"blots/embed":o.default,"blots/inline":e.default,"blots/scroll":E.default,"blots/text":g.default,"modules/clipboard":p.default,"modules/history":_.default,"modules/keyboard":x.default}),S.default.register(f.default,t.default,c.default,e.default,E.default,g.default),O.default=y.default}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(1),S=(function(){function N(y){this.domNode=y,this.domNode[L.DATA_KEY]={blot:this}}return Object.defineProperty(N.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),N.create=function(y){if(this.tagName==null)throw new L.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?d=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?d=document.createElement(y):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},N.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},N.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return L.create(y)},N.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[L.DATA_KEY]},N.prototype.deleteAt=function(y,d){var f=this.isolate(y,d);f.remove()},N.prototype.formatAt=function(y,d,f,i){var t=this.isolate(y,d);if(L.query(f,L.Scope.BLOT)!=null&&i)t.wrap(f,i);else if(L.query(f,L.Scope.ATTRIBUTE)!=null){var n=L.create(this.statics.scope);t.wrap(n),n.format(f,i)}},N.prototype.insertAt=function(y,d,f){var i=f==null?L.create("text",d):L.create(d,f),t=this.split(y);this.parent.insertBefore(i,t)},N.prototype.insertInto=function(y,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var f=null;y.children.insertBefore(this,d),d!=null&&(f=d.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=f)&&y.domNode.insertBefore(this.domNode,f),this.parent=y,this.attach()},N.prototype.isolate=function(y,d){var f=this.split(y);return f.split(d),f},N.prototype.length=function(){return 1},N.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},N.prototype.optimize=function(y){this.domNode[L.DATA_KEY]!=null&&delete this.domNode[L.DATA_KEY].mutations},N.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},N.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},N.prototype.replaceWith=function(y,d){var f=typeof y=="string"?L.create(y,d):y;return f.replace(this),f},N.prototype.split=function(y,d){return y===0?this:this.next},N.prototype.update=function(y,d){},N.prototype.wrap=function(y,d){var f=typeof y=="string"?L.create(y,d):y;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},N.blotName="abstract",N})();O.default=S}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(12),S=m(32),N=m(33),y=m(1),d=(function(){function f(i){this.attributes={},this.domNode=i,this.build()}return f.prototype.attribute=function(i,t){t?i.add(this.domNode,t)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])},f.prototype.build=function(){var i=this;this.attributes={};var t=L.default.keys(this.domNode),n=S.default.keys(this.domNode),h=N.default.keys(this.domNode);t.concat(n).concat(h).forEach(function(u){var c=y.query(u,y.Scope.ATTRIBUTE);c instanceof L.default&&(i.attributes[c.attrName]=c)})},f.prototype.copy=function(i){var t=this;Object.keys(this.attributes).forEach(function(n){var h=t.attributes[n].value(t.domNode);i.format(n,h)})},f.prototype.move=function(i){var t=this;this.copy(i),Object.keys(this.attributes).forEach(function(n){t.attributes[n].remove(t.domNode)}),this.attributes={}},f.prototype.values=function(){var i=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=i.attributes[n].value(i.domNode),t},{})},f})();O.default=d}),(function(F,O,m){var L=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var t in i)i.hasOwnProperty(t)&&(f[t]=i[t])};return function(f,i){d(f,i);function t(){this.constructor=f}f.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(12);function N(d,f){var i=d.getAttribute("class")||"";return i.split(/\s+/).filter(function(t){return t.indexOf(f+"-")===0})}var y=(function(d){L(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(i){return(i.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},f.prototype.add=function(i,t){return this.canAdd(i,t)?(this.remove(i),i.classList.add(this.keyName+"-"+t),!0):!1},f.prototype.remove=function(i){var t=N(i,this.keyName);t.forEach(function(n){i.classList.remove(n)}),i.classList.length===0&&i.removeAttribute("class")},f.prototype.value=function(i){var t=N(i,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(i,n)?n:""},f})(S.default);O.default=y}),(function(F,O,m){var L=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var t in i)i.hasOwnProperty(t)&&(f[t]=i[t])};return function(f,i){d(f,i);function t(){this.constructor=f}f.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(12);function N(d){var f=d.split("-"),i=f.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return f[0]+i}var y=(function(d){L(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(i){return(i.getAttribute("style")||"").split(";").map(function(t){var n=t.split(":");return n[0].trim()})},f.prototype.add=function(i,t){return this.canAdd(i,t)?(i.style[N(this.keyName)]=t,!0):!1},f.prototype.remove=function(i){i.style[N(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")},f.prototype.value=function(i){var t=i.style[N(this.keyName)];return this.canAdd(i,t)?t:""},f})(S.default);O.default=y}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function y(d,f){for(var i=0;i<f.length;i++){var t=f[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}return function(d,f,i){return f&&y(d.prototype,f),i&&y(d,i),d}})();function S(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}var N=(function(){function y(d,f){S(this,y),this.quill=d,this.options=f,this.modules={}}return L(y,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(i){f.modules[i]==null&&f.addModule(i)})}},{key:"addModule",value:function(f){var i=this.quill.constructor.import("modules/"+f);return this.modules[f]=new i(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),y})();N.DEFAULTS={modules:{}},N.themes={default:N},O.default=N}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function a(o,r){for(var e=0;e<r.length;e++){var l=r[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,r,e){return r&&a(o.prototype,r),e&&a(o,e),o}})(),S=function a(o,r,e){o===null&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,r);if(l===void 0){var E=Object.getPrototypeOf(o);return E===null?void 0:a(E,r,e)}else{if("value"in l)return l.value;var b=l.get;return b===void 0?void 0:b.call(e)}},N=m(0),y=i(N),d=m(7),f=i(d);function i(a){return a&&a.__esModule?a:{default:a}}function t(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function n(a,o){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:a}function h(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}var u="\uFEFF",c=(function(a){h(o,a);function o(r){t(this,o);var e=n(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,r));return e.contentNode=document.createElement("span"),e.contentNode.setAttribute("contenteditable",!1),[].slice.call(e.domNode.childNodes).forEach(function(l){e.contentNode.appendChild(l)}),e.leftGuard=document.createTextNode(u),e.rightGuard=document.createTextNode(u),e.domNode.appendChild(e.leftGuard),e.domNode.appendChild(e.contentNode),e.domNode.appendChild(e.rightGuard),e}return L(o,[{key:"index",value:function(e,l){return e===this.leftGuard?0:e===this.rightGuard?1:S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,e,l)}},{key:"restore",value:function(e){var l=void 0,E=void 0,b=e.data.split(u).join("");if(e===this.leftGuard)if(this.prev instanceof f.default){var g=this.prev.length();this.prev.insertAt(g,b),l={startNode:this.prev.domNode,startOffset:g+b.length}}else E=document.createTextNode(b),this.parent.insertBefore(y.default.create(E),this),l={startNode:E,startOffset:b.length};else e===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,b),l={startNode:this.next.domNode,startOffset:b.length}):(E=document.createTextNode(b),this.parent.insertBefore(y.default.create(E),this.next),l={startNode:E,startOffset:b.length}));return e.data=u,l}},{key:"update",value:function(e,l){var E=this;e.forEach(function(b){if(b.type==="characterData"&&(b.target===E.leftGuard||b.target===E.rightGuard)){var g=E.restore(b.target);g&&(l.range=g)}})}}]),o})(y.default.Embed);O.default=c}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var L=m(0),S=N(L);function N(t){return t&&t.__esModule?t:{default:t}}var y={scope:S.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new S.default.Attributor.Attribute("align","align",y),f=new S.default.Attributor.Class("align","ql-align",y),i=new S.default.Attributor.Style("align","text-align",y);O.AlignAttribute=d,O.AlignClass=f,O.AlignStyle=i}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var L=m(0),S=y(L),N=m(26);function y(i){return i&&i.__esModule?i:{default:i}}var d=new S.default.Attributor.Class("background","ql-bg",{scope:S.default.Scope.INLINE}),f=new N.ColorAttributor("background","background-color",{scope:S.default.Scope.INLINE});O.BackgroundClass=d,O.BackgroundStyle=f}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var L=m(0),S=N(L);function N(t){return t&&t.__esModule?t:{default:t}}var y={scope:S.default.Scope.BLOCK,whitelist:["rtl"]},d=new S.default.Attributor.Attribute("direction","dir",y),f=new S.default.Attributor.Class("direction","ql-direction",y),i=new S.default.Attributor.Style("direction","direction",y);O.DirectionAttribute=d,O.DirectionClass=f,O.DirectionStyle=i}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var L=(function(){function a(o,r){for(var e=0;e<r.length;e++){var l=r[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}return function(o,r,e){return r&&a(o.prototype,r),e&&a(o,e),o}})(),S=function a(o,r,e){o===null&&(o=Function.prototype);var l=Object.getOwnPropertyDescriptor(o,r);if(l===void 0){var E=Object.getPrototypeOf(o);return E===null?void 0:a(E,r,e)}else{if("value"in l)return l.value;var b=l.get;return b===void 0?void 0:b.call(e)}},N=m(0),y=d(N);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function i(a,o){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:a}function t(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}var n={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new y.default.Attributor.Class("font","ql-font",n),u=(function(a){t(o,a);function o(){return f(this,o),i(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return L(o,[{key:"value",value:function(e){return S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),o})(y.default.Attributor.Style),c=new u("font","font-family",n);O.FontStyle=c,O.FontClass=h}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var L=m(0),S=N(L);function N(f){return f&&f.__esModule?f:{default:f}}var y=new S.default.Attributor.Class("size","ql-size",{scope:S.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new S.default.Attributor.Style("size","font-size",{scope:S.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=y,O.SizeStyle=d}),(function(F,O,m){F.exports={align:{"":m(76),center:m(77),right:m(78),justify:m(79)},background:m(80),blockquote:m(81),bold:m(82),clean:m(83),code:m(58),"code-block":m(58),color:m(84),direction:{"":m(85),rtl:m(86)},float:{center:m(87),full:m(88),left:m(89),right:m(90)},formula:m(91),header:{1:m(92),2:m(93)},italic:m(94),image:m(95),indent:{"+1":m(96),"-1":m(97)},link:m(98),list:{ordered:m(99),bullet:m(100),check:m(101)},script:{sub:m(102),super:m(103)},strike:m(104),underline:m(105),video:m(106)}}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var L=(function(){function r(e,l){for(var E=0;E<l.length;E++){var b=l[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(e,b.key,b)}}return function(e,l,E){return l&&r(e.prototype,l),E&&r(e,E),e}})(),S=m(0),N=t(S),y=m(5),d=t(y),f=m(9),i=t(f);function t(r){return r&&r.__esModule?r:{default:r}}function n(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function h(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function u(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var c=(function(r){u(e,r);function e(l,E){n(this,e);var b=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l,E));return b.lastRecorded=0,b.ignoreChange=!1,b.clear(),b.quill.on(d.default.events.EDITOR_CHANGE,function(g,T,p,v){g!==d.default.events.TEXT_CHANGE||b.ignoreChange||(!b.options.userOnly||v===d.default.sources.USER?b.record(T,p):b.transform(T))}),b.quill.keyboard.addBinding({key:"Z",shortKey:!0},b.undo.bind(b)),b.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},b.redo.bind(b)),/Win/i.test(navigator.platform)&&b.quill.keyboard.addBinding({key:"Y",shortKey:!0},b.redo.bind(b)),b}return L(e,[{key:"change",value:function(E,b){if(this.stack[E].length!==0){var g=this.stack[E].pop();this.stack[b].push(g),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(g[E],d.default.sources.USER),this.ignoreChange=!1;var T=o(g[E]);this.quill.setSelection(T)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(E,b){if(E.ops.length!==0){this.stack.redo=[];var g=this.quill.getContents().diff(b),T=Date.now();if(this.lastRecorded+this.options.delay>T&&this.stack.undo.length>0){var p=this.stack.undo.pop();g=g.compose(p.undo),E=p.redo.compose(E)}else this.lastRecorded=T;this.stack.undo.push({redo:E,undo:g}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(E){this.stack.undo.forEach(function(b){b.undo=E.transform(b.undo,!0),b.redo=E.transform(b.redo,!0)}),this.stack.redo.forEach(function(b){b.undo=E.transform(b.undo,!0),b.redo=E.transform(b.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e})(i.default);c.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function a(r){var e=r.ops[r.ops.length-1];return e==null?!1:e.insert!=null?typeof e.insert=="string"&&e.insert.endsWith(`
`):e.attributes!=null?Object.keys(e.attributes).some(function(l){return N.default.query(l,N.default.Scope.BLOCK)!=null}):!1}function o(r){var e=r.reduce(function(E,b){return E+=b.delete||0,E},0),l=r.length()-e;return a(r)&&(l-=1),l}O.default=c,O.getLastChangeIndex=o}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var L=(function(){function R(j,H){for(var M=0;M<H.length;M++){var P=H[M];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(j,P.key,P)}}return function(j,H,M){return H&&R(j.prototype,H),M&&R(j,M),j}})(),S=function R(j,H,M){j===null&&(j=Function.prototype);var P=Object.getOwnPropertyDescriptor(j,H);if(P===void 0){var B=Object.getPrototypeOf(j);return B===null?void 0:R(B,H,M)}else{if("value"in P)return P.value;var K=P.get;return K===void 0?void 0:K.call(M)}},N=m(3),y=T(N),d=m(2),f=T(d),i=m(8),t=T(i),n=m(23),h=T(n),u=m(34),c=T(u),a=m(59),o=T(a),r=m(60),e=T(r),l=m(28),E=T(l),b=m(61),g=T(b);function T(R){return R&&R.__esModule?R:{default:R}}function p(R,j){if(!(R instanceof j))throw new TypeError("Cannot call a class as a function")}function v(R,j){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:R}function _(R,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);R.prototype=Object.create(j&&j.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(R,j):R.__proto__=j)}var w=[!1,"center","right","justify"],x=["#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"],I=[!1,"serif","monospace"],U=["1","2","3",!1],z=["small",!1,"large","huge"],Z=(function(R){_(j,R);function j(H,M){p(this,j);var P=v(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,M)),B=function K(G){if(!document.body.contains(H.root))return document.body.removeEventListener("click",K);P.tooltip!=null&&!P.tooltip.root.contains(G.target)&&document.activeElement!==P.tooltip.textbox&&!P.quill.hasFocus()&&P.tooltip.hide(),P.pickers!=null&&P.pickers.forEach(function(Y){Y.container.contains(G.target)||Y.close()})};return H.emitter.listenDOM("click",document.body,B),P}return L(j,[{key:"addModule",value:function(M){var P=S(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(P),P}},{key:"buildButtons",value:function(M,P){M.forEach(function(B){var K=B.getAttribute("class")||"";K.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),P[G]!=null))if(G==="direction")B.innerHTML=P[G][""]+P[G].rtl;else if(typeof P[G]=="string")B.innerHTML=P[G];else{var Y=B.value||"";Y!=null&&P[G][Y]&&(B.innerHTML=P[G][Y])}})})}},{key:"buildPickers",value:function(M,P){var B=this;this.pickers=M.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&A(G,w),new e.default(G,P.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var Y=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&A(G,x,Y==="background"?"#ffffff":"#000000"),new o.default(G,P[Y])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?A(G,I):G.classList.contains("ql-header")?A(G,U):G.classList.contains("ql-size")&&A(G,z)),new E.default(G)});var K=function(){B.pickers.forEach(function(Y){Y.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,K)}}]),j})(c.default);Z.DEFAULTS=(0,y.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,H=this.container.querySelector("input.ql-image[type=file]");H==null&&(H=document.createElement("input"),H.setAttribute("type","file"),H.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),H.classList.add("ql-image"),H.addEventListener("change",function(){if(H.files!=null&&H.files[0]!=null){var M=new FileReader;M.onload=function(P){var B=j.quill.getSelection(!0);j.quill.updateContents(new f.default().retain(B.index).delete(B.length).insert({image:P.target.result}),t.default.sources.USER),j.quill.setSelection(B.index+1,t.default.sources.SILENT),H.value=""},M.readAsDataURL(H.files[0])}}),this.container.appendChild(H)),H.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=(function(R){_(j,R);function j(H,M){p(this,j);var P=v(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,M));return P.textbox=P.root.querySelector('input[type="text"]'),P.listen(),P}return L(j,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(P){h.default.match(P,"enter")?(M.save(),P.preventDefault()):h.default.match(P,"escape")&&(M.cancel(),P.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),P!=null?this.textbox.value=P:M!==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-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var P=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=P;break}case"video":M=q(M);case"formula":{if(!M)break;var B=this.quill.getSelection(!0);if(B!=null){var K=B.index+B.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),M,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",t.default.sources.USER),this.quill.setSelection(K+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j})(g.default);function q(R){var j=R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=R.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":R}function A(R,j){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(M){var P=document.createElement("option");M===H?P.setAttribute("selected","selected"):P.setAttribute("value",M),R.appendChild(P)})}O.BaseTooltip=C,O.default=Z}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function S(){this.head=this.tail=null,this.length=0}return S.prototype.append=function(){for(var N=[],y=0;y<arguments.length;y++)N[y]=arguments[y];this.insertBefore(N[0],null),N.length>1&&this.append.apply(this,N.slice(1))},S.prototype.contains=function(N){for(var y,d=this.iterator();y=d();)if(y===N)return!0;return!1},S.prototype.insertBefore=function(N,y){N&&(N.next=y,y!=null?(N.prev=y.prev,y.prev!=null&&(y.prev.next=N),y.prev=N,y===this.head&&(this.head=N)):this.tail!=null?(this.tail.next=N,N.prev=this.tail,this.tail=N):(N.prev=null,this.head=this.tail=N),this.length+=1)},S.prototype.offset=function(N){for(var y=0,d=this.head;d!=null;){if(d===N)return y;y+=d.length(),d=d.next}return-1},S.prototype.remove=function(N){this.contains(N)&&(N.prev!=null&&(N.prev.next=N.next),N.next!=null&&(N.next.prev=N.prev),N===this.head&&(this.head=N.next),N===this.tail&&(this.tail=N.prev),this.length-=1)},S.prototype.iterator=function(N){return N===void 0&&(N=this.head),function(){var y=N;return N!=null&&(N=N.next),y}},S.prototype.find=function(N,y){y===void 0&&(y=!1);for(var d,f=this.iterator();d=f();){var i=d.length();if(N<i||y&&N===i&&(d.next==null||d.next.length()!==0))return[d,N];N-=i}return[null,0]},S.prototype.forEach=function(N){for(var y,d=this.iterator();y=d();)N(y)},S.prototype.forEachAt=function(N,y,d){if(!(y<=0))for(var f=this.find(N),i=f[0],t=f[1],n,h=N-t,u=this.iterator(i);(n=u())&&h<N+y;){var c=n.length();N>h?d(n,N-h,Math.min(y,h+c-N)):d(n,0,Math.min(c,N+y-h)),h+=c}},S.prototype.map=function(N){return this.reduce(function(y,d){return y.push(N(d)),y},[])},S.prototype.reduce=function(N,y){for(var d,f=this.iterator();d=f();)y=N(y,d);return y},S})();O.default=L}),(function(F,O,m){var L=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var h in n)n.hasOwnProperty(h)&&(t[h]=n[h])};return function(t,n){i(t,n);function h(){this.constructor=t}t.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(17),N=m(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,f=(function(i){L(t,i);function t(n){var h=i.call(this,n)||this;return h.scroll=h,h.observer=new MutationObserver(function(u){h.update(u)}),h.observer.observe(h.domNode,y),h.attach(),h}return t.prototype.detach=function(){i.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(n,h){this.update(),n===0&&h===this.length()?this.children.forEach(function(u){u.remove()}):i.prototype.deleteAt.call(this,n,h)},t.prototype.formatAt=function(n,h,u,c){this.update(),i.prototype.formatAt.call(this,n,h,u,c)},t.prototype.insertAt=function(n,h,u){this.update(),i.prototype.insertAt.call(this,n,h,u)},t.prototype.optimize=function(n,h){var u=this;n===void 0&&(n=[]),h===void 0&&(h={}),i.prototype.optimize.call(this,h);for(var c=[].slice.call(this.observer.takeRecords());c.length>0;)n.push(c.pop());for(var a=function(l,E){E===void 0&&(E=!0),!(l==null||l===u)&&l.domNode.parentNode!=null&&(l.domNode[N.DATA_KEY].mutations==null&&(l.domNode[N.DATA_KEY].mutations=[]),E&&a(l.parent))},o=function(l){l.domNode[N.DATA_KEY]==null||l.domNode[N.DATA_KEY].mutations==null||(l instanceof S.default&&l.children.forEach(o),l.optimize(h))},r=n,e=0;r.length>0;e+=1){if(e>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(r.forEach(function(l){var E=N.find(l.target,!0);E!=null&&(E.domNode===l.target&&(l.type==="childList"?(a(N.find(l.previousSibling,!1)),[].forEach.call(l.addedNodes,function(b){var g=N.find(b,!1);a(g,!1),g instanceof S.default&&g.children.forEach(function(T){a(T,!1)})})):l.type==="attributes"&&a(E.prev)),a(E))}),this.children.forEach(o),r=[].slice.call(this.observer.takeRecords()),c=r.slice();c.length>0;)n.push(c.pop())}},t.prototype.update=function(n,h){var u=this;h===void 0&&(h={}),n=n||this.observer.takeRecords(),n.map(function(c){var a=N.find(c.target,!0);return a==null?null:a.domNode[N.DATA_KEY].mutations==null?(a.domNode[N.DATA_KEY].mutations=[c],a):(a.domNode[N.DATA_KEY].mutations.push(c),null)}).forEach(function(c){c==null||c===u||c.domNode[N.DATA_KEY]==null||c.update(c.domNode[N.DATA_KEY].mutations||[],h)}),this.domNode[N.DATA_KEY].mutations!=null&&i.prototype.update.call(this,this.domNode[N.DATA_KEY].mutations,h),this.optimize(n,h)},t.blotName="scroll",t.defaultChild="block",t.scope=N.Scope.BLOCK_BLOT,t.tagName="DIV",t})(S.default);O.default=f}),(function(F,O,m){var L=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,t){i.__proto__=t}||function(i,t){for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n])};return function(i,t){f(i,t);function n(){this.constructor=i}i.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(18),N=m(1);function y(f,i){if(Object.keys(f).length!==Object.keys(i).length)return!1;for(var t in f)if(f[t]!==i[t])return!1;return!0}var d=(function(f){L(i,f);function i(){return f!==null&&f.apply(this,arguments)||this}return i.formats=function(t){if(t.tagName!==i.tagName)return f.formats.call(this,t)},i.prototype.format=function(t,n){var h=this;t===this.statics.blotName&&!n?(this.children.forEach(function(u){u instanceof S.default||(u=u.wrap(i.blotName,!0)),h.attributes.copy(u)}),this.unwrap()):f.prototype.format.call(this,t,n)},i.prototype.formatAt=function(t,n,h,u){if(this.formats()[h]!=null||N.query(h,N.Scope.ATTRIBUTE)){var c=this.isolate(t,n);c.format(h,u)}else f.prototype.formatAt.call(this,t,n,h,u)},i.prototype.optimize=function(t){f.prototype.optimize.call(this,t);var n=this.formats();if(Object.keys(n).length===0)return this.unwrap();var h=this.next;h instanceof i&&h.prev===this&&y(n,h.formats())&&(h.moveChildren(this),h.remove())},i.blotName="inline",i.scope=N.Scope.INLINE_BLOT,i.tagName="SPAN",i})(S.default);O.default=d}),(function(F,O,m){var L=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var t in i)i.hasOwnProperty(t)&&(f[t]=i[t])};return function(f,i){d(f,i);function t(){this.constructor=f}f.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(18),N=m(1),y=(function(d){L(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(i){var t=N.query(f.blotName).tagName;if(i.tagName!==t)return d.formats.call(this,i)},f.prototype.format=function(i,t){N.query(i,N.Scope.BLOCK)!=null&&(i===this.statics.blotName&&!t?this.replaceWith(f.blotName):d.prototype.format.call(this,i,t))},f.prototype.formatAt=function(i,t,n,h){N.query(n,N.Scope.BLOCK)!=null?this.format(n,h):d.prototype.formatAt.call(this,i,t,n,h)},f.prototype.insertAt=function(i,t,n){if(n==null||N.query(t,N.Scope.INLINE)!=null)d.prototype.insertAt.call(this,i,t,n);else{var h=this.split(i),u=N.create(t,n);h.parent.insertBefore(u,h)}},f.prototype.update=function(i,t){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,i,t)},f.blotName="block",f.scope=N.Scope.BLOCK_BLOT,f.tagName="P",f})(S.default);O.default=y}),(function(F,O,m){var L=this&&this.__extends||(function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var i in f)f.hasOwnProperty(i)&&(d[i]=f[i])};return function(d,f){y(d,f);function i(){this.constructor=d}d.prototype=f===null?Object.create(f):(i.prototype=f.prototype,new i)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(19),N=(function(y){L(d,y);function d(){return y!==null&&y.apply(this,arguments)||this}return d.formats=function(f){},d.prototype.format=function(f,i){y.prototype.formatAt.call(this,0,this.length(),f,i)},d.prototype.formatAt=function(f,i,t,n){f===0&&i===this.length()?this.format(t,n):y.prototype.formatAt.call(this,f,i,t,n)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(S.default);O.default=N}),(function(F,O,m){var L=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var t in i)i.hasOwnProperty(t)&&(f[t]=i[t])};return function(f,i){d(f,i);function t(){this.constructor=f}f.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=m(19),N=m(1),y=(function(d){L(f,d);function f(i){var t=d.call(this,i)||this;return t.text=t.statics.value(t.domNode),t}return f.create=function(i){return document.createTextNode(i)},f.value=function(i){var t=i.data;return t.normalize&&(t=t.normalize()),t},f.prototype.deleteAt=function(i,t){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+t)},f.prototype.index=function(i,t){return this.domNode===i?t:-1},f.prototype.insertAt=function(i,t,n){n==null?(this.text=this.text.slice(0,i)+t+this.text.slice(i),this.domNode.data=this.text):d.prototype.insertAt.call(this,i,t,n)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(i){d.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(i,t){return[this.domNode,i]},f.prototype.split=function(i,t){if(t===void 0&&(t=!1),!t){if(i===0)return this;if(i===this.length())return this.next}var n=N.create(this.domNode.splitText(i));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},f.prototype.update=function(i,t){var n=this;i.some(function(h){return h.type==="characterData"&&h.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=N.Scope.INLINE_BLOT,f})(S.default);O.default=y}),(function(F,O,m){var L=document.createElement("div");if(L.classList.toggle("test-class",!1),L.classList.contains("test-class")){var S=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(N,y){return arguments.length>1&&!this.contains(N)==!y?y:S.call(this,N)}}String.prototype.startsWith||(String.prototype.startsWith=function(N,y){return y=y||0,this.substr(y,N.length)===N}),String.prototype.endsWith||(String.prototype.endsWith=function(N,y){var d=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>d.length)&&(y=d.length),y-=N.length;var f=d.indexOf(N,y);return f!==-1&&f===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),f=d.length>>>0,i=arguments[1],t,n=0;n<f;n++)if(t=d[n],y.call(i,t,n,d))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(F,O){var m=-1,L=1,S=0;function N(e,l,E){if(e==l)return e?[[S,e]]:[];(E<0||e.length<E)&&(E=null);var b=i(e,l),g=e.substring(0,b);e=e.substring(b),l=l.substring(b),b=t(e,l);var T=e.substring(e.length-b);e=e.substring(0,e.length-b),l=l.substring(0,l.length-b);var p=y(e,l);return g&&p.unshift([S,g]),T&&p.push([S,T]),h(p),E!=null&&(p=a(p,E)),p=o(p),p}function y(e,l){var E;if(!e)return[[L,l]];if(!l)return[[m,e]];var b=e.length>l.length?e:l,g=e.length>l.length?l:e,T=b.indexOf(g);if(T!=-1)return E=[[L,b.substring(0,T)],[S,g],[L,b.substring(T+g.length)]],e.length>l.length&&(E[0][0]=E[2][0]=m),E;if(g.length==1)return[[m,e],[L,l]];var p=n(e,l);if(p){var v=p[0],_=p[1],w=p[2],x=p[3],I=p[4],U=N(v,w),z=N(_,x);return U.concat([[S,I]],z)}return d(e,l)}function d(e,l){for(var E=e.length,b=l.length,g=Math.ceil((E+b)/2),T=g,p=2*g,v=new Array(p),_=new Array(p),w=0;w<p;w++)v[w]=-1,_[w]=-1;v[T+1]=0,_[T+1]=0;for(var x=E-b,I=x%2!=0,U=0,z=0,Z=0,C=0,q=0;q<g;q++){for(var A=-q+U;A<=q-z;A+=2){var R=T+A,j;A==-q||A!=q&&v[R-1]<v[R+1]?j=v[R+1]:j=v[R-1]+1;for(var H=j-A;j<E&&H<b&&e.charAt(j)==l.charAt(H);)j++,H++;if(v[R]=j,j>E)z+=2;else if(H>b)U+=2;else if(I){var M=T+x-A;if(M>=0&&M<p&&_[M]!=-1){var P=E-_[M];if(j>=P)return f(e,l,j,H)}}}for(var B=-q+Z;B<=q-C;B+=2){var M=T+B,P;B==-q||B!=q&&_[M-1]<_[M+1]?P=_[M+1]:P=_[M-1]+1;for(var K=P-B;P<E&&K<b&&e.charAt(E-P-1)==l.charAt(b-K-1);)P++,K++;if(_[M]=P,P>E)C+=2;else if(K>b)Z+=2;else if(!I){var R=T+x-B;if(R>=0&&R<p&&v[R]!=-1){var j=v[R],H=T+j-R;if(P=E-P,j>=P)return f(e,l,j,H)}}}}return[[m,e],[L,l]]}function f(e,l,E,b){var g=e.substring(0,E),T=l.substring(0,b),p=e.substring(E),v=l.substring(b),_=N(g,T),w=N(p,v);return _.concat(w)}function i(e,l){if(!e||!l||e.charAt(0)!=l.charAt(0))return 0;for(var E=0,b=Math.min(e.length,l.length),g=b,T=0;E<g;)e.substring(T,g)==l.substring(T,g)?(E=g,T=E):b=g,g=Math.floor((b-E)/2+E);return g}function t(e,l){if(!e||!l||e.charAt(e.length-1)!=l.charAt(l.length-1))return 0;for(var E=0,b=Math.min(e.length,l.length),g=b,T=0;E<g;)e.substring(e.length-g,e.length-T)==l.substring(l.length-g,l.length-T)?(E=g,T=E):b=g,g=Math.floor((b-E)/2+E);return g}function n(e,l){var E=e.length>l.length?e:l,b=e.length>l.length?l:e;if(E.length<4||b.length*2<E.length)return null;function g(z,Z,C){for(var q=z.substring(C,C+Math.floor(z.length/4)),A=-1,R="",j,H,M,P;(A=Z.indexOf(q,A+1))!=-1;){var B=i(z.substring(C),Z.substring(A)),K=t(z.substring(0,C),Z.substring(0,A));R.length<K+B&&(R=Z.substring(A-K,A)+Z.substring(A,A+B),j=z.substring(0,C-K),H=z.substring(C+B),M=Z.substring(0,A-K),P=Z.substring(A+B))}return R.length*2>=z.length?[j,H,M,P,R]:null}var T=g(E,b,Math.ceil(E.length/4)),p=g(E,b,Math.ceil(E.length/2)),v;if(!T&&!p)return null;p?T?v=T[4].length>p[4].length?T:p:v=p:v=T;var _,w,x,I;e.length>l.length?(_=v[0],w=v[1],x=v[2],I=v[3]):(x=v[0],I=v[1],_=v[2],w=v[3]);var U=v[4];return[_,w,x,I,U]}function h(e){e.push([S,""]);for(var l=0,E=0,b=0,g="",T="",p;l<e.length;)switch(e[l][0]){case L:b++,T+=e[l][1],l++;break;case m:E++,g+=e[l][1],l++;break;case S:E+b>1?(E!==0&&b!==0&&(p=i(T,g),p!==0&&(l-E-b>0&&e[l-E-b-1][0]==S?e[l-E-b-1][1]+=T.substring(0,p):(e.splice(0,0,[S,T.substring(0,p)]),l++),T=T.substring(p),g=g.substring(p)),p=t(T,g),p!==0&&(e[l][1]=T.substring(T.length-p)+e[l][1],T=T.substring(0,T.length-p),g=g.substring(0,g.length-p))),E===0?e.splice(l-b,E+b,[L,T]):b===0?e.splice(l-E,E+b,[m,g]):e.splice(l-E-b,E+b,[m,g],[L,T]),l=l-E-b+(E?1:0)+(b?1:0)+1):l!==0&&e[l-1][0]==S?(e[l-1][1]+=e[l][1],e.splice(l,1)):l++,b=0,E=0,g="",T="";break}e[e.length-1][1]===""&&e.pop();var v=!1;for(l=1;l<e.length-1;)e[l-1][0]==S&&e[l+1][0]==S&&(e[l][1].substring(e[l][1].length-e[l-1][1].length)==e[l-1][1]?(e[l][1]=e[l-1][1]+e[l][1].substring(0,e[l][1].length-e[l-1][1].length),e[l+1][1]=e[l-1][1]+e[l+1][1],e.splice(l-1,1),v=!0):e[l][1].substring(0,e[l+1][1].length)==e[l+1][1]&&(e[l-1][1]+=e[l+1][1],e[l][1]=e[l][1].substring(e[l+1][1].length)+e[l+1][1],e.splice(l+1,1),v=!0)),l++;v&&h(e)}var u=N;u.INSERT=L,u.DELETE=m,u.EQUAL=S,F.exports=u;function c(e,l){if(l===0)return[S,e];for(var E=0,b=0;b<e.length;b++){var g=e[b];if(g[0]===m||g[0]===S){var T=E+g[1].length;if(l===T)return[b+1,e];if(l<T){e=e.slice();var p=l-E,v=[g[0],g[1].slice(0,p)],_=[g[0],g[1].slice(p)];return e.splice(b,1,v,_),[b+1,e]}else E=T}}throw new Error("cursor_pos is out of bounds!")}function a(e,l){var E=c(e,l),b=E[1],g=E[0],T=b[g],p=b[g+1];if(T==null)return e;if(T[0]!==S)return e;if(p!=null&&T[1]+p[1]===p[1]+T[1])return b.splice(g,2,p,T),r(b,g,2);if(p!=null&&p[1].indexOf(T[1])===0){b.splice(g,2,[p[0],T[1]],[0,T[1]]);var v=p[1].slice(T[1].length);return v.length>0&&b.splice(g+2,0,[p[0],v]),r(b,g,3)}else return e}function o(e){for(var l=!1,E=function(p){return p.charCodeAt(0)>=56320&&p.charCodeAt(0)<=57343},b=function(p){return p.charCodeAt(p.length-1)>=55296&&p.charCodeAt(p.length-1)<=56319},g=2;g<e.length;g+=1)e[g-2][0]===S&&b(e[g-2][1])&&e[g-1][0]===m&&E(e[g-1][1])&&e[g][0]===L&&E(e[g][1])&&(l=!0,e[g-1][1]=e[g-2][1].slice(-1)+e[g-1][1],e[g][1]=e[g-2][1].slice(-1)+e[g][1],e[g-2][1]=e[g-2][1].slice(0,-1));if(!l)return e;for(var T=[],g=0;g<e.length;g+=1)e[g][1].length>0&&T.push(e[g]);return T}function r(e,l,E){for(var b=l+E-1;b>=0&&b>=l-1;b--)if(b+1<e.length){var g=e[b],T=e[b+1];g[0]===T[1]&&e.splice(b,2,[g[0],g[1]+T[1]])}return e}}),(function(F,O){O=F.exports=typeof Object.keys=="function"?Object.keys:m,O.shim=m;function m(L){var S=[];for(var N in L)S.push(N);return S}}),(function(F,O){var m=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";O=F.exports=m?L:S,O.supported=L;function L(N){return Object.prototype.toString.call(N)=="[object Arguments]"}O.unsupported=S;function S(N){return N&&typeof N=="object"&&typeof N.length=="number"&&Object.prototype.hasOwnProperty.call(N,"callee")&&!Object.prototype.propertyIsEnumerable.call(N,"callee")||!1}}),(function(F,O){var m=Object.prototype.hasOwnProperty,L="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(L=!1));function N(d,f,i){this.fn=d,this.context=f,this.once=i||!1}function y(){this._events=new S,this._eventsCount=0}y.prototype.eventNames=function(){var f=[],i,t;if(this._eventsCount===0)return f;for(t in i=this._events)m.call(i,t)&&f.push(L?t.slice(1):t);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(i)):f},y.prototype.listeners=function(f,i){var t=L?L+f:f,n=this._events[t];if(i)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var h=0,u=n.length,c=new Array(u);h<u;h++)c[h]=n[h].fn;return c},y.prototype.emit=function(f,i,t,n,h,u){var c=L?L+f:f;if(!this._events[c])return!1;var a=this._events[c],o=arguments.length,r,e;if(a.fn){switch(a.once&&this.removeListener(f,a.fn,void 0,!0),o){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,i),!0;case 3:return a.fn.call(a.context,i,t),!0;case 4:return a.fn.call(a.context,i,t,n),!0;case 5:return a.fn.call(a.context,i,t,n,h),!0;case 6:return a.fn.call(a.context,i,t,n,h,u),!0}for(e=1,r=new Array(o-1);e<o;e++)r[e-1]=arguments[e];a.fn.apply(a.context,r)}else{var l=a.length,E;for(e=0;e<l;e++)switch(a[e].once&&this.removeListener(f,a[e].fn,void 0,!0),o){case 1:a[e].fn.call(a[e].context);break;case 2:a[e].fn.call(a[e].context,i);break;case 3:a[e].fn.call(a[e].context,i,t);break;case 4:a[e].fn.call(a[e].context,i,t,n);break;default:if(!r)for(E=1,r=new Array(o-1);E<o;E++)r[E-1]=arguments[E];a[e].fn.apply(a[e].context,r)}}return!0},y.prototype.on=function(f,i,t){var n=new N(i,t||this),h=L?L+f:f;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],n]:this._events[h].push(n):(this._events[h]=n,this._eventsCount++),this},y.prototype.once=function(f,i,t){var n=new N(i,t||this,!0),h=L?L+f:f;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],n]:this._events[h].push(n):(this._events[h]=n,this._eventsCount++),this},y.prototype.removeListener=function(f,i,t,n){var h=L?L+f:f;if(!this._events[h])return this;if(!i)return--this._eventsCount===0?this._events=new S:delete this._events[h],this;var u=this._events[h];if(u.fn)u.fn===i&&(!n||u.once)&&(!t||u.context===t)&&(--this._eventsCount===0?this._events=new S:delete this._events[h]);else{for(var c=0,a=[],o=u.length;c<o;c++)(u[c].fn!==i||n&&!u[c].once||t&&u[c].context!==t)&&a.push(u[c]);a.length?this._events[h]=a.length===1?a[0]:a:--this._eventsCount===0?this._events=new S:delete this._events[h]}return this},y.prototype.removeAllListeners=function(f){var i;return f?(i=L?L+f:f,this._events[i]&&(--this._eventsCount===0?this._events=new S:delete this._events[i])):(this._events=new S,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=L,y.EventEmitter=y,typeof F<"u"&&(F.exports=y)}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},S=(function(){function $(W,Q){var J=[],X=!0,at=!1,rt=void 0;try{for(var ot=W[Symbol.iterator](),wt;!(X=(wt=ot.next()).done)&&(J.push(wt.value),!(Q&&J.length===Q));X=!0);}catch(Ot){at=!0,rt=Ot}finally{try{!X&&ot.return&&ot.return()}finally{if(at)throw rt}}return J}return function(W,Q){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return $(W,Q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),N=(function(){function $(W,Q){for(var J=0;J<Q.length;J++){var X=Q[J];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(W,X.key,X)}}return function(W,Q,J){return Q&&$(W.prototype,Q),J&&$(W,J),W}})(),y=m(3),d=_(y),f=m(2),i=_(f),t=m(0),n=_(t),h=m(5),u=_(h),c=m(10),a=_(c),o=m(9),r=_(o),e=m(36),l=m(37),E=m(13),b=_(E),g=m(26),T=m(38),p=m(39),v=m(40);function _($){return $&&$.__esModule?$:{default:$}}function w($,W,Q){return W in $?Object.defineProperty($,W,{value:Q,enumerable:!0,configurable:!0,writable:!0}):$[W]=Q,$}function x($,W){if(!($ instanceof W))throw new TypeError("Cannot call a class as a function")}function I($,W){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&(typeof W=="object"||typeof W=="function")?W:$}function U($,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);$.prototype=Object.create(W&&W.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf($,W):$.__proto__=W)}var z=(0,a.default)("quill:clipboard"),Z="__ql-matcher",C=[[Node.TEXT_NODE,gt],[Node.TEXT_NODE,ut],["br",tt],[Node.ELEMENT_NODE,ut],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,st],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,mt],["li",it],["b",K.bind(K,"bold")],["i",K.bind(K,"italic")],["style",nt]],q=[e.AlignAttribute,T.DirectionAttribute].reduce(function($,W){return $[W.keyName]=W,$},{}),A=[e.AlignStyle,l.BackgroundStyle,g.ColorStyle,T.DirectionStyle,p.FontStyle,v.SizeStyle].reduce(function($,W){return $[W.keyName]=W,$},{}),R=(function($){U(W,$);function W(Q,J){x(this,W);var X=I(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,Q,J));return X.quill.root.addEventListener("paste",X.onPaste.bind(X)),X.container=X.quill.addContainer("ql-clipboard"),X.container.setAttribute("contenteditable",!0),X.container.setAttribute("tabindex",-1),X.matchers=[],C.concat(X.options.matchers).forEach(function(at){var rt=S(at,2),ot=rt[0],wt=rt[1];!J.matchVisual&&wt===st||X.addMatcher(ot,wt)}),X}return N(W,[{key:"addMatcher",value:function(J,X){this.matchers.push([J,X])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var X=this.quill.getFormat(this.quill.selection.savedRange.index);if(X[b.default.blotName]){var at=this.container.innerText;return this.container.innerHTML="",new i.default().insert(at,w({},b.default.blotName,X[b.default.blotName]))}var rt=this.prepareMatching(),ot=S(rt,2),wt=ot[0],Ot=ot[1],pt=B(this.container,wt,Ot);return M(pt,`
`)&&pt.ops[pt.ops.length-1].attributes==null&&(pt=pt.compose(new i.default().retain(pt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,pt),this.container.innerHTML="",pt}},{key:"dangerouslyPasteHTML",value:function(J,X){var at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof J=="string")this.quill.setContents(this.convert(J),X),this.quill.setSelection(0,u.default.sources.SILENT);else{var rt=this.convert(X);this.quill.updateContents(new i.default().retain(J).concat(rt),at),this.quill.setSelection(J+rt.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(J){var X=this;if(!(J.defaultPrevented||!this.quill.isEnabled())){var at=this.quill.getSelection(),rt=new i.default().retain(at.index),ot=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){rt=rt.concat(X.convert()).delete(at.length),X.quill.updateContents(rt,u.default.sources.USER),X.quill.setSelection(rt.length()-at.length,u.default.sources.SILENT),X.quill.scrollingContainer.scrollTop=ot,X.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var J=this,X=[],at=[];return this.matchers.forEach(function(rt){var ot=S(rt,2),wt=ot[0],Ot=ot[1];switch(wt){case Node.TEXT_NODE:at.push(Ot);break;case Node.ELEMENT_NODE:X.push(Ot);break;default:[].forEach.call(J.container.querySelectorAll(wt),function(pt){pt[Z]=pt[Z]||[],pt[Z].push(Ot)});break}}),[X,at]}}]),W})(r.default);R.DEFAULTS={matchers:[],matchVisual:!0};function j($,W,Q){return(typeof W>"u"?"undefined":L(W))==="object"?Object.keys(W).reduce(function(J,X){return j(J,X,W[X])},$):$.reduce(function(J,X){return X.attributes&&X.attributes[W]?J.push(X):J.insert(X.insert,(0,d.default)({},w({},W,Q),X.attributes))},new i.default)}function H($){if($.nodeType!==Node.ELEMENT_NODE)return{};var W="__ql-computed-style";return $[W]||($[W]=window.getComputedStyle($))}function M($,W){for(var Q="",J=$.ops.length-1;J>=0&&Q.length<W.length;--J){var X=$.ops[J];if(typeof X.insert!="string")break;Q=X.insert+Q}return Q.slice(-1*W.length)===W}function P($){if($.childNodes.length===0)return!1;var W=H($);return["block","list-item"].indexOf(W.display)>-1}function B($,W,Q){return $.nodeType===$.TEXT_NODE?Q.reduce(function(J,X){return X($,J)},new i.default):$.nodeType===$.ELEMENT_NODE?[].reduce.call($.childNodes||[],function(J,X){var at=B(X,W,Q);return X.nodeType===$.ELEMENT_NODE&&(at=W.reduce(function(rt,ot){return ot(X,rt)},at),at=(X[Z]||[]).reduce(function(rt,ot){return ot(X,rt)},at)),J.concat(at)},new i.default):new i.default}function K($,W,Q){return j(Q,$,!0)}function G($,W){var Q=n.default.Attributor.Attribute.keys($),J=n.default.Attributor.Class.keys($),X=n.default.Attributor.Style.keys($),at={};return Q.concat(J).concat(X).forEach(function(rt){var ot=n.default.query(rt,n.default.Scope.ATTRIBUTE);ot!=null&&(at[ot.attrName]=ot.value($),at[ot.attrName])||(ot=q[rt],ot!=null&&(ot.attrName===rt||ot.keyName===rt)&&(at[ot.attrName]=ot.value($)||void 0),ot=A[rt],ot!=null&&(ot.attrName===rt||ot.keyName===rt)&&(ot=A[rt],at[ot.attrName]=ot.value($)||void 0))}),Object.keys(at).length>0&&(W=j(W,at)),W}function Y($,W){var Q=n.default.query($);if(Q==null)return W;if(Q.prototype instanceof n.default.Embed){var J={},X=Q.value($);X!=null&&(J[Q.blotName]=X,W=new i.default().insert(J,Q.formats($)))}else typeof Q.formats=="function"&&(W=j(W,Q.blotName,Q.formats($)));return W}function tt($,W){return M(W,`
`)||W.insert(`
`),W}function nt(){return new i.default}function it($,W){var Q=n.default.query($);if(Q==null||Q.blotName!=="list-item"||!M(W,`
`))return W;for(var J=-1,X=$.parentNode;!X.classList.contains("ql-clipboard");)(n.default.query(X)||{}).blotName==="list"&&(J+=1),X=X.parentNode;return J<=0?W:W.compose(new i.default().retain(W.length()-1).retain(1,{indent:J}))}function ut($,W){return M(W,`
`)||(P($)||W.length()>0&&$.nextSibling&&P($.nextSibling))&&W.insert(`
`),W}function st($,W){if(P($)&&$.nextElementSibling!=null&&!M(W,`
`)){var Q=$.offsetHeight+parseFloat(H($).marginTop)+parseFloat(H($).marginBottom);$.nextElementSibling.offsetTop>$.offsetTop+Q*1.5&&W.insert(`
`)}return W}function mt($,W){var Q={},J=$.style||{};return J.fontStyle&&H($).fontStyle==="italic"&&(Q.italic=!0),J.fontWeight&&(H($).fontWeight.startsWith("bold")||parseInt(H($).fontWeight)>=700)&&(Q.bold=!0),Object.keys(Q).length>0&&(W=j(W,Q)),parseFloat(J.textIndent||0)>0&&(W=new i.default().insert(" ").concat(W)),W}function gt($,W){var Q=$.data;if($.parentNode.tagName==="O:P")return W.insert(Q.trim());if(Q.trim().length===0&&$.parentNode.classList.contains("ql-clipboard"))return W;if(!H($.parentNode).whiteSpace.startsWith("pre")){var J=function(at,rt){return rt=rt.replace(/[^\u00a0]/g,""),rt.length<1&&at?" ":rt};Q=Q.replace(/\r\n/g," ").replace(/\n/g," "),Q=Q.replace(/\s\s+/g,J.bind(J,!0)),($.previousSibling==null&&P($.parentNode)||$.previousSibling!=null&&P($.previousSibling))&&(Q=Q.replace(/^\s+/,J.bind(J,!1))),($.nextSibling==null&&P($.parentNode)||$.nextSibling!=null&&P($.nextSibling))&&(Q=Q.replace(/\s+$/,J.bind(J,!1)))}return W.insert(Q)}O.default=R,O.matchAttributor=G,O.matchBlot=Y,O.matchNewline=ut,O.matchSpacing=st,O.matchText=gt}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var e=o.get;return e===void 0?void 0:e.call(a)}},N=m(6),y=d(N);function d(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var n=(function(h){t(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return L(u,[{key:"optimize",value:function(a){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,a),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return S(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u})(y.default);n.blotName="bold",n.tagName=["STRONG","B"],O.default=n}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var L=(function(){function v(_,w){var x=[],I=!0,U=!1,z=void 0;try{for(var Z=_[Symbol.iterator](),C;!(I=(C=Z.next()).done)&&(x.push(C.value),!(w&&x.length===w));I=!0);}catch(q){U=!0,z=q}finally{try{!I&&Z.return&&Z.return()}finally{if(U)throw z}}return x}return function(_,w){if(Array.isArray(_))return _;if(Symbol.iterator in Object(_))return v(_,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function v(_,w){for(var x=0;x<w.length;x++){var I=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}return function(_,w,x){return w&&v(_.prototype,w),x&&v(_,x),_}})(),N=m(2),y=a(N),d=m(0),f=a(d),i=m(5),t=a(i),n=m(10),h=a(n),u=m(9),c=a(u);function a(v){return v&&v.__esModule?v:{default:v}}function o(v,_,w){return _ in v?Object.defineProperty(v,_,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[_]=w,v}function r(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function e(v,_){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:v}function l(v,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);v.prototype=Object.create(_&&_.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(v,_):v.__proto__=_)}var E=(0,h.default)("quill:toolbar"),b=(function(v){l(_,v);function _(w,x){r(this,_);var I=e(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,w,x));if(Array.isArray(I.options.container)){var U=document.createElement("div");T(U,I.options.container),w.container.parentNode.insertBefore(U,w.container),I.container=U}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var z;return z=E.error("Container required for toolbar",I.options),e(I,z)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(Z){I.addHandler(Z,I.options.handlers[Z])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(Z){I.attach(Z)}),I.quill.on(t.default.events.EDITOR_CHANGE,function(Z,C){Z===t.default.events.SELECTION_CHANGE&&I.update(C)}),I.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var Z=I.quill.selection.getRange(),C=L(Z,1),q=C[0];I.update(q)}),I}return S(_,[{key:"addHandler",value:function(x,I){this.handlers[x]=I}},{key:"attach",value:function(x){var I=this,U=[].find.call(x.classList,function(Z){return Z.indexOf("ql-")===0});if(U){if(U=U.slice(3),x.tagName==="BUTTON"&&x.setAttribute("type","button"),this.handlers[U]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[U]==null){E.warn("ignoring attaching to disabled format",U,x);return}if(f.default.query(U)==null){E.warn("ignoring attaching to nonexistent format",U,x);return}}var z=x.tagName==="SELECT"?"change":"click";x.addEventListener(z,function(Z){var C=void 0;if(x.tagName==="SELECT"){if(x.selectedIndex<0)return;var q=x.options[x.selectedIndex];q.hasAttribute("selected")?C=!1:C=q.value||!1}else x.classList.contains("ql-active")?C=!1:C=x.value||!x.hasAttribute("value"),Z.preventDefault();I.quill.focus();var A=I.quill.selection.getRange(),R=L(A,1),j=R[0];if(I.handlers[U]!=null)I.handlers[U].call(I,C);else if(f.default.query(U).prototype instanceof f.default.Embed){if(C=prompt("Enter "+U),!C)return;I.quill.updateContents(new y.default().retain(j.index).delete(j.length).insert(o({},U,C)),t.default.sources.USER)}else I.quill.format(U,C,t.default.sources.USER);I.update(j)}),this.controls.push([U,x])}}},{key:"update",value:function(x){var I=x==null?{}:this.quill.getFormat(x);this.controls.forEach(function(U){var z=L(U,2),Z=z[0],C=z[1];if(C.tagName==="SELECT"){var q=void 0;if(x==null)q=null;else if(I[Z]==null)q=C.querySelector("option[selected]");else if(!Array.isArray(I[Z])){var A=I[Z];typeof A=="string"&&(A=A.replace(/\"/g,'\\"')),q=C.querySelector('option[value="'+A+'"]')}q==null?(C.value="",C.selectedIndex=-1):q.selected=!0}else if(x==null)C.classList.remove("ql-active");else if(C.hasAttribute("value")){var R=I[Z]===C.getAttribute("value")||I[Z]!=null&&I[Z].toString()===C.getAttribute("value")||I[Z]==null&&!C.getAttribute("value");C.classList.toggle("ql-active",R)}else C.classList.toggle("ql-active",I[Z]!=null)})}}]),_})(c.default);b.DEFAULTS={};function g(v,_,w){var x=document.createElement("button");x.setAttribute("type","button"),x.classList.add("ql-"+_),w!=null&&(x.value=w),v.appendChild(x)}function T(v,_){Array.isArray(_[0])||(_=[_]),_.forEach(function(w){var x=document.createElement("span");x.classList.add("ql-formats"),w.forEach(function(I){if(typeof I=="string")g(x,I);else{var U=Object.keys(I)[0],z=I[U];Array.isArray(z)?p(x,U,z):g(x,U,z)}}),v.appendChild(x)})}function p(v,_,w){var x=document.createElement("select");x.classList.add("ql-"+_),w.forEach(function(I){var U=document.createElement("option");I!==!1?U.setAttribute("value",I):U.setAttribute("selected","selected"),x.appendChild(U)}),v.appendChild(x)}b.DEFAULTS={container:null,handlers:{clean:function(){var _=this,w=this.quill.getSelection();if(w!=null)if(w.length==0){var x=this.quill.getFormat();Object.keys(x).forEach(function(I){f.default.query(I,f.default.Scope.INLINE)!=null&&_.quill.format(I,!1)})}else this.quill.removeFormat(w,t.default.sources.USER)},direction:function(_){var w=this.quill.getFormat().align;_==="rtl"&&w==null?this.quill.format("align","right",t.default.sources.USER):!_&&w==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",_,t.default.sources.USER)},indent:function(_){var w=this.quill.getSelection(),x=this.quill.getFormat(w),I=parseInt(x.indent||0);if(_==="+1"||_==="-1"){var U=_==="+1"?1:-1;x.direction==="rtl"&&(U*=-1),this.quill.format("indent",I+U,t.default.sources.USER)}},link:function(_){_===!0&&(_=prompt("Enter link URL:")),this.quill.format("link",_,t.default.sources.USER)},list:function(_){var w=this.quill.getSelection(),x=this.quill.getFormat(w);_==="check"?x.list==="checked"||x.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",_,t.default.sources.USER)}}},O.default=b,O.addControls=T}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var e=o.get;return e===void 0?void 0:e.call(a)}},N=m(28),y=d(N);function d(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var n=(function(h){t(u,h);function u(c,a){f(this,u);var o=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,c));return o.label.innerHTML=a,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(r){r.classList.add("ql-primary")}),o}return L(u,[{key:"buildItem",value:function(a){var o=S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"buildItem",this).call(this,a);return o.style.backgroundColor=a.getAttribute("value")||"",o}},{key:"selectItem",value:function(a,o){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,a,o);var r=this.label.querySelector(".ql-color-label"),e=a&&a.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=e:r.style.fill=e)}}]),u})(y.default);O.default=n}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var e=o.get;return e===void 0?void 0:e.call(a)}},N=m(28),y=d(N);function d(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var n=(function(h){t(u,h);function u(c,a){f(this,u);var o=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,c));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(r){r.innerHTML=a[r.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return L(u,[{key:"selectItem",value:function(a,o){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,a,o),a=a||this.defaultItem,this.label.innerHTML=a.innerHTML}}]),u})(y.default);O.default=n}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function y(d,f){for(var i=0;i<f.length;i++){var t=f[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,t.key,t)}}return function(d,f,i){return f&&y(d.prototype,f),i&&y(d,i),d}})();function S(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}var N=(function(){function y(d,f){var i=this;S(this,y),this.quill=d,this.boundsContainer=f||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return L(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var i=f.left+f.width/2-this.root.offsetWidth/2,t=f.bottom+this.quill.root.scrollTop;this.root.style.left=i+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),u=0;if(h.right>n.right&&(u=n.right-h.right,this.root.style.left=i+u+"px"),h.left<n.left&&(u=n.left-h.left,this.root.style.left=i+u+"px"),h.bottom>n.bottom){var c=h.bottom-h.top,a=f.bottom-f.top+c;this.root.style.top=t-a+"px",this.root.classList.add("ql-flip")}return u}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y})();O.default=N}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function p(v,_){var w=[],x=!0,I=!1,U=void 0;try{for(var z=v[Symbol.iterator](),Z;!(x=(Z=z.next()).done)&&(w.push(Z.value),!(_&&w.length===_));x=!0);}catch(C){I=!0,U=C}finally{try{!x&&z.return&&z.return()}finally{if(I)throw U}}return w}return function(v,_){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return p(v,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=function p(v,_,w){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,_);if(x===void 0){var I=Object.getPrototypeOf(v);return I===null?void 0:p(I,_,w)}else{if("value"in x)return x.value;var U=x.get;return U===void 0?void 0:U.call(w)}},N=(function(){function p(v,_){for(var w=0;w<_.length;w++){var x=_[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,_,w){return _&&p(v.prototype,_),w&&p(v,w),v}})(),y=m(3),d=r(y),f=m(8),i=r(f),t=m(43),n=r(t),h=m(27),u=r(h),c=m(15),a=m(41),o=r(a);function r(p){return p&&p.__esModule?p:{default:p}}function e(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function l(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function E(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=(function(p){E(v,p);function v(_,w){e(this,v),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=b);var x=l(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_,w));return x.quill.container.classList.add("ql-snow"),x}return N(v,[{key:"extendToolbar",value:function(w){w.container.classList.add("ql-snow"),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),o.default),this.tooltip=new T(this.quill,this.options.bounds),w.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(x,I){w.handlers.link.call(w,!I.format.link)})}}]),v})(n.default);g.DEFAULTS=(0,d.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(v){if(v){var _=this.quill.getSelection();if(_==null||_.length==0)return;var w=this.quill.getText(_);/^\S+@\S+\.\S+$/.test(w)&&w.indexOf("mailto:")!==0&&(w="mailto:"+w);var x=this.quill.theme.tooltip;x.edit("link",w)}else this.quill.format("link",!1)}}}}});var T=(function(p){E(v,p);function v(_,w){e(this,v);var x=l(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,_,w));return x.preview=x.root.querySelector("a.ql-preview"),x}return N(v,[{key:"listen",value:function(){var w=this;S(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(x){w.root.classList.contains("ql-editing")?w.save():w.edit("link",w.preview.textContent),x.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(x){if(w.linkRange!=null){var I=w.linkRange;w.restoreFocus(),w.quill.formatText(I,"link",!1,i.default.sources.USER),delete w.linkRange}x.preventDefault(),w.hide()}),this.quill.on(i.default.events.SELECTION_CHANGE,function(x,I,U){if(x!=null){if(x.length===0&&U===i.default.sources.USER){var z=w.quill.scroll.descendant(u.default,x.index),Z=L(z,2),C=Z[0],q=Z[1];if(C!=null){w.linkRange=new c.Range(x.index-q,C.length());var A=u.default.formats(C.domNode);w.preview.textContent=A,w.preview.setAttribute("href",A),w.show(),w.position(w.quill.getBounds(w.linkRange));return}}else delete w.linkRange;w.hide()}})}},{key:"show",value:function(){S(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),v})(t.BaseTooltip);T.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>'].join(""),O.default=g}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(29),S=X(L),N=m(36),y=m(38),d=m(64),f=m(65),i=X(f),t=m(66),n=X(t),h=m(67),u=X(h),c=m(37),a=m(26),o=m(39),r=m(40),e=m(56),l=X(e),E=m(68),b=X(E),g=m(27),T=X(g),p=m(69),v=X(p),_=m(70),w=X(_),x=m(71),I=X(x),U=m(72),z=X(U),Z=m(73),C=X(Z),q=m(13),A=X(q),R=m(74),j=X(R),H=m(75),M=X(H),P=m(57),B=X(P),K=m(41),G=X(K),Y=m(28),tt=X(Y),nt=m(59),it=X(nt),ut=m(60),st=X(ut),mt=m(61),gt=X(mt),$=m(108),W=X($),Q=m(62),J=X(Q);function X(at){return at&&at.__esModule?at:{default:at}}S.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":N.AlignClass,"attributors/class/background":c.BackgroundClass,"attributors/class/color":a.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":o.FontClass,"attributors/class/size":r.SizeClass,"attributors/style/align":N.AlignStyle,"attributors/style/background":c.BackgroundStyle,"attributors/style/color":a.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":o.FontStyle,"attributors/style/size":r.SizeStyle},!0),S.default.register({"formats/align":N.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":d.IndentClass,"formats/background":c.BackgroundStyle,"formats/color":a.ColorStyle,"formats/font":o.FontClass,"formats/size":r.SizeClass,"formats/blockquote":i.default,"formats/code-block":A.default,"formats/header":n.default,"formats/list":u.default,"formats/bold":l.default,"formats/code":q.Code,"formats/italic":b.default,"formats/link":T.default,"formats/script":v.default,"formats/strike":w.default,"formats/underline":I.default,"formats/image":z.default,"formats/video":C.default,"formats/list/item":h.ListItem,"modules/formula":j.default,"modules/syntax":M.default,"modules/toolbar":B.default,"themes/bubble":W.default,"themes/snow":J.default,"ui/icons":G.default,"ui/picker":tt.default,"ui/icon-picker":st.default,"ui/color-picker":it.default,"ui/tooltip":gt.default},!0),O.default=S.default}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var L=(function(){function u(c,a){for(var o=0;o<a.length;o++){var r=a[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(c,r.key,r)}}return function(c,a,o){return a&&u(c.prototype,a),o&&u(c,o),c}})(),S=function u(c,a,o){c===null&&(c=Function.prototype);var r=Object.getOwnPropertyDescriptor(c,a);if(r===void 0){var e=Object.getPrototypeOf(c);return e===null?void 0:u(e,a,o)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(o)}},N=m(0),y=d(N);function d(u){return u&&u.__esModule?u:{default:u}}function f(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function i(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function t(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var n=(function(u){t(c,u);function c(){return f(this,c),i(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return L(c,[{key:"add",value:function(o,r){if(r==="+1"||r==="-1"){var e=this.value(o)||0;r=r==="+1"?e+1:e-1}return r===0?(this.remove(o),!0):S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"add",this).call(this,o,r)}},{key:"canAdd",value:function(o,r){return S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,o,r)||S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"canAdd",this).call(this,o,parseInt(r))}},{key:"value",value:function(o){return parseInt(S(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"value",this).call(this,o))||void 0}}]),c})(y.default.Attributor.Class),h=new n("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});O.IndentClass=h}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(4),S=N(L);function N(t){return t&&t.__esModule?t:{default:t}}function y(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function d(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function f(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var i=(function(t){f(n,t);function n(){return y(this,n),d(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(S.default);i.blotName="blockquote",i.tagName="blockquote",O.default=i}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function n(h,u){for(var c=0;c<u.length;c++){var a=u[c];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,u,c){return u&&n(h.prototype,u),c&&n(h,c),h}})(),S=m(4),N=y(S);function y(n){return n&&n.__esModule?n:{default:n}}function d(n,h){if(!(n instanceof h))throw new TypeError("Cannot call a class as a function")}function f(n,h){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:n}function i(n,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);n.prototype=Object.create(h&&h.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(n,h):n.__proto__=h)}var t=(function(n){i(h,n);function h(){return d(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return L(h,null,[{key:"formats",value:function(c){return this.tagName.indexOf(c.tagName)+1}}]),h})(N.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],O.default=t}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.ListItem=void 0;var L=(function(){function e(l,E){for(var b=0;b<E.length;b++){var g=E[b];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(l,g.key,g)}}return function(l,E,b){return E&&e(l.prototype,E),b&&e(l,b),l}})(),S=function e(l,E,b){l===null&&(l=Function.prototype);var g=Object.getOwnPropertyDescriptor(l,E);if(g===void 0){var T=Object.getPrototypeOf(l);return T===null?void 0:e(T,E,b)}else{if("value"in g)return g.value;var p=g.get;return p===void 0?void 0:p.call(b)}},N=m(0),y=n(N),d=m(4),f=n(d),i=m(25),t=n(i);function n(e){return e&&e.__esModule?e:{default:e}}function h(e,l,E){return l in e?Object.defineProperty(e,l,{value:E,enumerable:!0,configurable:!0,writable:!0}):e[l]=E,e}function u(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function c(e,l){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:e}function a(e,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);e.prototype=Object.create(l&&l.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(e,l):e.__proto__=l)}var o=(function(e){a(l,e);function l(){return u(this,l),c(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return L(l,[{key:"format",value:function(b,g){b===r.blotName&&!g?this.replaceWith(y.default.create(this.statics.scope)):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,b,g)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(b,g){return this.parent.isolate(this.offset(this.parent),this.length()),b===this.parent.statics.blotName?(this.parent.replaceWith(b,g),this):(this.parent.unwrap(),S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replaceWith",this).call(this,b,g))}}],[{key:"formats",value:function(b){return b.tagName===this.tagName?void 0:S(l.__proto__||Object.getPrototypeOf(l),"formats",this).call(this,b)}}]),l})(f.default);o.blotName="list-item",o.tagName="LI";var r=(function(e){a(l,e),L(l,null,[{key:"create",value:function(b){var g=b==="ordered"?"OL":"UL",T=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,g);return(b==="checked"||b==="unchecked")&&T.setAttribute("data-checked",b==="checked"),T}},{key:"formats",value:function(b){if(b.tagName==="OL")return"ordered";if(b.tagName==="UL")return b.hasAttribute("data-checked")?b.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function l(E){u(this,l);var b=c(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,E)),g=function(p){if(p.target.parentNode===E){var v=b.statics.formats(E),_=y.default.find(p.target);v==="checked"?_.format("list","unchecked"):v==="unchecked"&&_.format("list","checked")}};return E.addEventListener("touchstart",g),E.addEventListener("mousedown",g),b}return L(l,[{key:"format",value:function(b,g){this.children.length>0&&this.children.tail.format(b,g)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(b,g){if(b instanceof o)S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertBefore",this).call(this,b,g);else{var T=g==null?this.length():g.offset(this),p=this.split(T);p.parent.insertBefore(b,p)}}},{key:"optimize",value:function(b){S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,b);var g=this.next;g!=null&&g.prev===this&&g.statics.blotName===this.statics.blotName&&g.domNode.tagName===this.domNode.tagName&&g.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(g.moveChildren(this),g.remove())}},{key:"replace",value:function(b){if(b.statics.blotName!==this.statics.blotName){var g=y.default.create(this.statics.defaultChild);b.moveChildren(g),this.appendChild(g)}S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replace",this).call(this,b)}}]),l})(t.default);r.blotName="list",r.scope=y.default.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[o],O.ListItem=o,O.default=r}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(56),S=N(L);function N(t){return t&&t.__esModule?t:{default:t}}function y(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function d(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function f(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var i=(function(t){f(n,t);function n(){return y(this,n),d(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(S.default);i.blotName="italic",i.tagName=["EM","I"],O.default=i}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function h(u,c){for(var a=0;a<c.length;a++){var o=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}return function(u,c,a){return c&&h(u.prototype,c),a&&h(u,a),u}})(),S=function h(u,c,a){u===null&&(u=Function.prototype);var o=Object.getOwnPropertyDescriptor(u,c);if(o===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,c,a)}else{if("value"in o)return o.value;var e=o.get;return e===void 0?void 0:e.call(a)}},N=m(6),y=d(N);function d(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function t(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var n=(function(h){t(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return L(u,null,[{key:"create",value:function(a){return a==="super"?document.createElement("sup"):a==="sub"?document.createElement("sub"):S(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,a)}},{key:"formats",value:function(a){if(a.tagName==="SUB")return"sub";if(a.tagName==="SUP")return"super"}}]),u})(y.default);n.blotName="script",n.tagName=["SUB","SUP"],O.default=n}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(6),S=N(L);function N(t){return t&&t.__esModule?t:{default:t}}function y(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function d(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function f(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var i=(function(t){f(n,t);function n(){return y(this,n),d(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(S.default);i.blotName="strike",i.tagName="S",O.default=i}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=m(6),S=N(L);function N(t){return t&&t.__esModule?t:{default:t}}function y(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function d(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:t}function f(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n)}var i=(function(t){f(n,t);function n(){return y(this,n),d(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return n})(S.default);i.blotName="underline",i.tagName="U",O.default=i}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function c(a,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(a,e.key,e)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,o);if(e===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in e)return e.value;var E=e.get;return E===void 0?void 0:E.call(r)}},N=m(0),y=f(N),d=m(27);function f(c){return c&&c.__esModule?c:{default:c}}function i(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function t(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function n(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var h=["alt","height","width"],u=(function(c){n(a,c);function a(){return i(this,a),t(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return L(a,[{key:"format",value:function(r,e){h.indexOf(r)>-1?e?this.domNode.setAttribute(r,e):this.domNode.removeAttribute(r):S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,e)}}],[{key:"create",value:function(r){var e=S(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return typeof r=="string"&&e.setAttribute("src",this.sanitize(r)),e}},{key:"formats",value:function(r){return h.reduce(function(e,l){return r.hasAttribute(l)&&(e[l]=r.getAttribute(l)),e},{})}},{key:"match",value:function(r){return/\.(jpe?g|gif|png)$/.test(r)||/^data:image\/.+;base64/.test(r)}},{key:"sanitize",value:function(r){return(0,d.sanitize)(r,["http","https","data"])?r:"//:0"}},{key:"value",value:function(r){return r.getAttribute("src")}}]),a})(y.default.Embed);u.blotName="image",u.tagName="IMG",O.default=u}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0});var L=(function(){function c(a,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(a,e.key,e)}}return function(a,o,r){return o&&c(a.prototype,o),r&&c(a,r),a}})(),S=function c(a,o,r){a===null&&(a=Function.prototype);var e=Object.getOwnPropertyDescriptor(a,o);if(e===void 0){var l=Object.getPrototypeOf(a);return l===null?void 0:c(l,o,r)}else{if("value"in e)return e.value;var E=e.get;return E===void 0?void 0:E.call(r)}},N=m(4),y=m(27),d=f(y);function f(c){return c&&c.__esModule?c:{default:c}}function i(c,a){if(!(c instanceof a))throw new TypeError("Cannot call a class as a function")}function t(c,a){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:c}function n(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);c.prototype=Object.create(a&&a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(c,a):c.__proto__=a)}var h=["height","width"],u=(function(c){n(a,c);function a(){return i(this,a),t(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return L(a,[{key:"format",value:function(r,e){h.indexOf(r)>-1?e?this.domNode.setAttribute(r,e):this.domNode.removeAttribute(r):S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,e)}}],[{key:"create",value:function(r){var e=S(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",!0),e.setAttribute("src",this.sanitize(r)),e}},{key:"formats",value:function(r){return h.reduce(function(e,l){return r.hasAttribute(l)&&(e[l]=r.getAttribute(l)),e},{})}},{key:"sanitize",value:function(r){return d.default.sanitize(r)}},{key:"value",value:function(r){return r.getAttribute("src")}}]),a})(N.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",O.default=u}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var L=(function(){function r(e,l){for(var E=0;E<l.length;E++){var b=l[E];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(e,b.key,b)}}return function(e,l,E){return l&&r(e.prototype,l),E&&r(e,E),e}})(),S=function r(e,l,E){e===null&&(e=Function.prototype);var b=Object.getOwnPropertyDescriptor(e,l);if(b===void 0){var g=Object.getPrototypeOf(e);return g===null?void 0:r(g,l,E)}else{if("value"in b)return b.value;var T=b.get;return T===void 0?void 0:T.call(E)}},N=m(35),y=n(N),d=m(5),f=n(d),i=m(9),t=n(i);function n(r){return r&&r.__esModule?r:{default:r}}function h(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function u(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:r}function c(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var a=(function(r){c(e,r);function e(){return h(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return L(e,null,[{key:"create",value:function(E){var b=S(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,E);return typeof E=="string"&&(window.katex.render(E,b,{throwOnError:!1,errorColor:"#f00"}),b.setAttribute("data-value",E)),b}},{key:"value",value:function(E){return E.getAttribute("data-value")}}]),e})(y.default);a.blotName="formula",a.className="ql-formula",a.tagName="SPAN";var o=(function(r){c(e,r),L(e,null,[{key:"register",value:function(){f.default.register(a,!0)}}]);function e(){h(this,e);var l=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return l}return e})(t.default);O.FormulaBlot=a,O.default=o}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.CodeToken=O.CodeBlock=void 0;var L=(function(){function E(b,g){for(var T=0;T<g.length;T++){var p=g[T];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(b,p.key,p)}}return function(b,g,T){return g&&E(b.prototype,g),T&&E(b,T),b}})(),S=function E(b,g,T){b===null&&(b=Function.prototype);var p=Object.getOwnPropertyDescriptor(b,g);if(p===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:E(v,g,T)}else{if("value"in p)return p.value;var _=p.get;return _===void 0?void 0:_.call(T)}},N=m(0),y=u(N),d=m(5),f=u(d),i=m(9),t=u(i),n=m(13),h=u(n);function u(E){return E&&E.__esModule?E:{default:E}}function c(E,b){if(!(E instanceof b))throw new TypeError("Cannot call a class as a function")}function a(E,b){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:E}function o(E,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);E.prototype=Object.create(b&&b.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(E,b):E.__proto__=b)}var r=(function(E){o(b,E);function b(){return c(this,b),a(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return L(b,[{key:"replaceWith",value:function(T){this.domNode.textContent=this.domNode.textContent,this.attach(),S(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,T)}},{key:"highlight",value:function(T){var p=this.domNode.textContent;this.cachedText!==p&&((p.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=T(p),this.domNode.normalize(),this.attach()),this.cachedText=p)}}]),b})(h.default);r.className="ql-syntax";var e=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),l=(function(E){o(b,E),L(b,null,[{key:"register",value:function(){f.default.register(e,!0),f.default.register(r,!0)}}]);function b(g,T){c(this,b);var p=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,g,T));if(typeof p.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var v=null;return p.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(v),v=setTimeout(function(){p.highlight(),v=null},p.options.interval)}),p.highlight(),p}return L(b,[{key:"highlight",value:function(){var T=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var p=this.quill.getSelection();this.quill.scroll.descendants(r).forEach(function(v){v.highlight(T.options.highlight)}),this.quill.update(f.default.sources.SILENT),p!=null&&this.quill.setSelection(p,f.default.sources.SILENT)}}}]),b})(t.default);l.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(E){var b=window.hljs.highlightAuto(E);return b.value}})(),interval:1e3},O.CodeBlock=r,O.CodeToken=e,O.default=l}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(F,O){F.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(F,O){F.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(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(F,O){F.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(F,O){F.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(F,O){F.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(F,O){F.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(F,O,m){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var L=function b(g,T,p){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,T);if(v===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:b(_,T,p)}else{if("value"in v)return v.value;var w=v.get;return w===void 0?void 0:w.call(p)}},S=(function(){function b(g,T){for(var p=0;p<T.length;p++){var v=T[p];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,T,p){return T&&b(g.prototype,T),p&&b(g,p),g}})(),N=m(3),y=c(N),d=m(8),f=c(d),i=m(43),t=c(i),n=m(15),h=m(41),u=c(h);function c(b){return b&&b.__esModule?b:{default:b}}function a(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function o(b,g){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:b}function r(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(b,g):b.__proto__=g)}var e=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],l=(function(b){r(g,b);function g(T,p){a(this,g),p.modules.toolbar!=null&&p.modules.toolbar.container==null&&(p.modules.toolbar.container=e);var v=o(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,T,p));return v.quill.container.classList.add("ql-bubble"),v}return S(g,[{key:"extendToolbar",value:function(p){this.tooltip=new E(this.quill,this.options.bounds),this.tooltip.root.appendChild(p.container),this.buildButtons([].slice.call(p.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(p.container.querySelectorAll("select")),u.default)}}]),g})(t.default);l.DEFAULTS=(0,y.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(g){g?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var E=(function(b){r(g,b);function g(T,p){a(this,g);var v=o(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,T,p));return v.quill.on(f.default.events.EDITOR_CHANGE,function(_,w,x,I){if(_===f.default.events.SELECTION_CHANGE)if(w!=null&&w.length>0&&I===f.default.sources.USER){v.show(),v.root.style.left="0px",v.root.style.width="",v.root.style.width=v.root.offsetWidth+"px";var U=v.quill.getLines(w.index,w.length);if(U.length===1)v.position(v.quill.getBounds(w));else{var z=U[U.length-1],Z=v.quill.getIndex(z),C=Math.min(z.length()-1,w.index+w.length-Z),q=v.quill.getBounds(new n.Range(Z,C));v.position(q)}}else document.activeElement!==v.textbox&&v.quill.hasFocus()&&v.hide()}),v}return S(g,[{key:"listen",value:function(){var p=this;L(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){p.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!p.root.classList.contains("ql-hidden")){var v=p.quill.getSelection();v!=null&&p.position(p.quill.getBounds(v))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(p){var v=L(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"position",this).call(this,p),_=this.root.querySelector(".ql-tooltip-arrow");if(_.style.marginLeft="",v===0)return v;_.style.marginLeft=-1*v-_.offsetWidth/2+"px"}}]),g})(i.BaseTooltip);E.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>"].join(""),O.BubbleTooltip=E,O.default=l}),(function(F,O,m){F.exports=m(63)})]).default})})(Ce)),Ce.exports}var Un=Fn();const Zn=In(Un);var Tn,Sn;function Hn(){if(Sn)return Tn;Sn=1;var ft=-1,dt=1,F=0;function O(r,e,l,E){if(r===e)return r?[[F,r]]:[];if(l!=null){var b=a(r,e,l);if(b)return b}var g=N(r,e),T=r.substring(0,g);r=r.substring(g),e=e.substring(g),g=y(r,e);var p=r.substring(r.length-g);r=r.substring(0,r.length-g),e=e.substring(0,e.length-g);var v=m(r,e);return T&&v.unshift([F,T]),p&&v.push([F,p]),f(v,E),v}function m(r,e){var l;if(!r)return[[dt,e]];if(!e)return[[ft,r]];var E=r.length>e.length?r:e,b=r.length>e.length?e:r,g=E.indexOf(b);if(g!==-1)return l=[[dt,E.substring(0,g)],[F,b],[dt,E.substring(g+b.length)]],r.length>e.length&&(l[0][0]=l[2][0]=ft),l;if(b.length===1)return[[ft,r],[dt,e]];var T=d(r,e);if(T){var p=T[0],v=T[1],_=T[2],w=T[3],x=T[4],I=O(p,_),U=O(v,w);return I.concat([[F,x]],U)}return L(r,e)}function L(r,e){for(var l=r.length,E=e.length,b=Math.ceil((l+E)/2),g=b,T=2*b,p=new Array(T),v=new Array(T),_=0;_<T;_++)p[_]=-1,v[_]=-1;p[g+1]=0,v[g+1]=0;for(var w=l-E,x=w%2!==0,I=0,U=0,z=0,Z=0,C=0;C<b;C++){for(var q=-C+I;q<=C-U;q+=2){var A=g+q,R;q===-C||q!==C&&p[A-1]<p[A+1]?R=p[A+1]:R=p[A-1]+1;for(var j=R-q;R<l&&j<E&&r.charAt(R)===e.charAt(j);)R++,j++;if(p[A]=R,R>l)U+=2;else if(j>E)I+=2;else if(x){var H=g+w-q;if(H>=0&&H<T&&v[H]!==-1){var M=l-v[H];if(R>=M)return S(r,e,R,j)}}}for(var P=-C+z;P<=C-Z;P+=2){var H=g+P,M;P===-C||P!==C&&v[H-1]<v[H+1]?M=v[H+1]:M=v[H-1]+1;for(var B=M-P;M<l&&B<E&&r.charAt(l-M-1)===e.charAt(E-B-1);)M++,B++;if(v[H]=M,M>l)Z+=2;else if(B>E)z+=2;else if(!x){var A=g+w-P;if(A>=0&&A<T&&p[A]!==-1){var R=p[A],j=g+R-A;if(M=l-M,R>=M)return S(r,e,R,j)}}}}return[[ft,r],[dt,e]]}function S(r,e,l,E){var b=r.substring(0,l),g=e.substring(0,E),T=r.substring(l),p=e.substring(E),v=O(b,g),_=O(T,p);return v.concat(_)}function N(r,e){if(!r||!e||r.charAt(0)!==e.charAt(0))return 0;for(var l=0,E=Math.min(r.length,e.length),b=E,g=0;l<b;)r.substring(g,b)==e.substring(g,b)?(l=b,g=l):E=b,b=Math.floor((E-l)/2+l);return i(r.charCodeAt(b-1))&&b--,b}function y(r,e){if(!r||!e||r.slice(-1)!==e.slice(-1))return 0;for(var l=0,E=Math.min(r.length,e.length),b=E,g=0;l<b;)r.substring(r.length-b,r.length-g)==e.substring(e.length-b,e.length-g)?(l=b,g=l):E=b,b=Math.floor((E-l)/2+l);return t(r.charCodeAt(r.length-b))&&b--,b}function d(r,e){var l=r.length>e.length?r:e,E=r.length>e.length?e:r;if(l.length<4||E.length*2<l.length)return null;function b(U,z,Z){for(var C=U.substring(Z,Z+Math.floor(U.length/4)),q=-1,A="",R,j,H,M;(q=z.indexOf(C,q+1))!==-1;){var P=N(U.substring(Z),z.substring(q)),B=y(U.substring(0,Z),z.substring(0,q));A.length<B+P&&(A=z.substring(q-B,q)+z.substring(q,q+P),R=U.substring(0,Z-B),j=U.substring(Z+P),H=z.substring(0,q-B),M=z.substring(q+P))}return A.length*2>=U.length?[R,j,H,M,A]:null}var g=b(l,E,Math.ceil(l.length/4)),T=b(l,E,Math.ceil(l.length/2)),p;if(!g&&!T)return null;T?g?p=g[4].length>T[4].length?g:T:p=T:p=g;var v,_,w,x;r.length>e.length?(v=p[0],_=p[1],w=p[2],x=p[3]):(w=p[0],x=p[1],v=p[2],_=p[3]);var I=p[4];return[v,_,w,x,I]}function f(r,e){r.push([F,""]);for(var l=0,E=0,b=0,g="",T="",p;l<r.length;){if(l<r.length-1&&!r[l][1]){r.splice(l,1);continue}switch(r[l][0]){case dt:b++,T+=r[l][1],l++;break;case ft:E++,g+=r[l][1],l++;break;case F:var v=l-b-E-1;if(e){if(v>=0&&h(r[v][1])){var _=r[v][1].slice(-1);if(r[v][1]=r[v][1].slice(0,-1),g=_+g,T=_+T,!r[v][1]){r.splice(v,1),l--;var w=v-1;r[w]&&r[w][0]===dt&&(b++,T=r[w][1]+T,w--),r[w]&&r[w][0]===ft&&(E++,g=r[w][1]+g,w--),v=w}}if(n(r[l][1])){var _=r[l][1].charAt(0);r[l][1]=r[l][1].slice(1),g+=_,T+=_}}if(l<r.length-1&&!r[l][1]){r.splice(l,1);break}if(g.length>0||T.length>0){g.length>0&&T.length>0&&(p=N(T,g),p!==0&&(v>=0?r[v][1]+=T.substring(0,p):(r.splice(0,0,[F,T.substring(0,p)]),l++),T=T.substring(p),g=g.substring(p)),p=y(T,g),p!==0&&(r[l][1]=T.substring(T.length-p)+r[l][1],T=T.substring(0,T.length-p),g=g.substring(0,g.length-p)));var x=b+E;g.length===0&&T.length===0?(r.splice(l-x,x),l=l-x):g.length===0?(r.splice(l-x,x,[dt,T]),l=l-x+1):T.length===0?(r.splice(l-x,x,[ft,g]),l=l-x+1):(r.splice(l-x,x,[ft,g],[dt,T]),l=l-x+2)}l!==0&&r[l-1][0]===F?(r[l-1][1]+=r[l][1],r.splice(l,1)):l++,b=0,E=0,g="",T="";break}}r[r.length-1][1]===""&&r.pop();var I=!1;for(l=1;l<r.length-1;)r[l-1][0]===F&&r[l+1][0]===F&&(r[l][1].substring(r[l][1].length-r[l-1][1].length)===r[l-1][1]?(r[l][1]=r[l-1][1]+r[l][1].substring(0,r[l][1].length-r[l-1][1].length),r[l+1][1]=r[l-1][1]+r[l+1][1],r.splice(l-1,1),I=!0):r[l][1].substring(0,r[l+1][1].length)==r[l+1][1]&&(r[l-1][1]+=r[l+1][1],r[l][1]=r[l][1].substring(r[l+1][1].length)+r[l+1][1],r.splice(l+1,1),I=!0)),l++;I&&f(r,e)}function i(r){return r>=55296&&r<=56319}function t(r){return r>=56320&&r<=57343}function n(r){return t(r.charCodeAt(0))}function h(r){return i(r.charCodeAt(r.length-1))}function u(r){for(var e=[],l=0;l<r.length;l++)r[l][1].length>0&&e.push(r[l]);return e}function c(r,e,l,E){return h(r)||n(E)?null:u([[F,r],[ft,e],[dt,l],[F,E]])}function a(r,e,l){var E=typeof l=="number"?{index:l,length:0}:l.oldRange,b=typeof l=="number"?null:l.newRange,g=r.length,T=e.length;if(E.length===0&&(b===null||b.length===0)){var p=E.index,v=r.slice(0,p),_=r.slice(p),w=b?b.index:null;t:{var x=p+T-g;if(w!==null&&w!==x||x<0||x>T)break t;var I=e.slice(0,x),U=e.slice(x);if(U!==_)break t;var z=Math.min(p,x),Z=v.slice(0,z),C=I.slice(0,z);if(Z!==C)break t;var q=v.slice(z),A=I.slice(z);return c(Z,q,A,_)}t:{if(w!==null&&w!==p)break t;var R=p,I=e.slice(0,R),U=e.slice(R);if(I!==v)break t;var j=Math.min(g-R,T-R),H=_.slice(_.length-j),M=U.slice(U.length-j);if(H!==M)break t;var q=_.slice(0,_.length-j),A=U.slice(0,U.length-j);return c(v,q,A,H)}}if(E.length>0&&b&&b.length===0)t:{var Z=r.slice(0,E.index),H=r.slice(E.index+E.length),z=Z.length,j=H.length;if(T<z+j)break t;var C=e.slice(0,z),M=e.slice(T-j);if(Z!==C||H!==M)break t;var q=r.slice(z,g-j),A=e.slice(z,T-j);return c(Z,q,A,H)}return null}function o(r,e,l){return O(r,e,l,!0)}return o.INSERT=dt,o.DELETE=ft,o.EQUAL=F,Tn=o,Tn}var Ee={exports:{}};Ee.exports;var xn;function Mn(){return xn||(xn=1,(function(ft,dt){var F=200,O="__lodash_hash_undefined__",m=9007199254740991,L="[object Arguments]",S="[object Array]",N="[object Boolean]",y="[object Date]",d="[object Error]",f="[object Function]",i="[object GeneratorFunction]",t="[object Map]",n="[object Number]",h="[object Object]",u="[object Promise]",c="[object RegExp]",a="[object Set]",o="[object String]",r="[object Symbol]",e="[object WeakMap]",l="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",g="[object Float64Array]",T="[object Int8Array]",p="[object Int16Array]",v="[object Int32Array]",_="[object Uint8Array]",w="[object Uint8ClampedArray]",x="[object Uint16Array]",I="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,Z=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,q={};q[L]=q[S]=q[l]=q[E]=q[N]=q[y]=q[b]=q[g]=q[T]=q[p]=q[v]=q[t]=q[n]=q[h]=q[c]=q[a]=q[o]=q[r]=q[_]=q[w]=q[x]=q[I]=!0,q[d]=q[f]=q[e]=!1;var A=typeof zt=="object"&&zt&&zt.Object===Object&&zt,R=typeof self=="object"&&self&&self.Object===Object&&self,j=A||R||Function("return this")(),H=dt&&!dt.nodeType&&dt,M=H&&!0&&ft&&!ft.nodeType&&ft,P=M&&M.exports===H;function B(s,k){return s.set(k[0],k[1]),s}function K(s,k){return s.add(k),s}function G(s,k){for(var D=-1,V=s?s.length:0;++D<V&&k(s[D],D,s)!==!1;);return s}function Y(s,k){for(var D=-1,V=k.length,lt=s.length;++D<V;)s[lt+D]=k[D];return s}function tt(s,k,D,V){for(var lt=-1,et=s?s.length:0;++lt<et;)D=k(D,s[lt],lt,s);return D}function nt(s,k){for(var D=-1,V=Array(s);++D<s;)V[D]=k(D);return V}function it(s,k){return s?.[k]}function ut(s){var k=!1;if(s!=null&&typeof s.toString!="function")try{k=!!(s+"")}catch{}return k}function st(s){var k=-1,D=Array(s.size);return s.forEach(function(V,lt){D[++k]=[lt,V]}),D}function mt(s,k){return function(D){return s(k(D))}}function gt(s){var k=-1,D=Array(s.size);return s.forEach(function(V){D[++k]=V}),D}var $=Array.prototype,W=Function.prototype,Q=Object.prototype,J=j["__core-js_shared__"],X=(function(){var s=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})(),at=W.toString,rt=Q.hasOwnProperty,ot=Q.toString,wt=RegExp("^"+at.call(rt).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=P?j.Buffer:void 0,pt=j.Symbol,Kt=j.Uint8Array,ct=mt(Object.getPrototypeOf,Object),Lt=Object.create,we=Q.propertyIsEnumerable,Fe=$.splice,ue=Object.getOwnPropertySymbols,Xt=Ot?Ot.isBuffer:void 0,Te=mt(Object.keys,Object),Qt=Rt(j,"DataView"),Gt=Rt(j,"Map"),qt=Rt(j,"Promise"),Jt=Rt(j,"Set"),fe=Rt(j,"WeakMap"),$t=Rt(Object,"create"),se=St(Qt),Vt=St(Gt),ce=St(qt),he=St(Jt),de=St(fe),Ut=pt?pt.prototype:void 0,Ne=Ut?Ut.valueOf:void 0;function Dt(s){var k=-1,D=s?s.length:0;for(this.clear();++k<D;){var V=s[k];this.set(V[0],V[1])}}function Ue(){this.__data__=$t?$t(null):{}}function He(s){return this.has(s)&&delete this.__data__[s]}function ze(s){var k=this.__data__;if($t){var D=k[s];return D===O?void 0:D}return rt.call(k,s)?k[s]:void 0}function ke(s){var k=this.__data__;return $t?k[s]!==void 0:rt.call(k,s)}function ve(s,k){var D=this.__data__;return D[s]=$t&&k===void 0?O:k,this}Dt.prototype.clear=Ue,Dt.prototype.delete=He,Dt.prototype.get=ze,Dt.prototype.has=ke,Dt.prototype.set=ve;function Et(s){var k=-1,D=s?s.length:0;for(this.clear();++k<D;){var V=s[k];this.set(V[0],V[1])}}function Ke(){this.__data__=[]}function Ge(s){var k=this.__data__,D=ee(k,s);if(D<0)return!1;var V=k.length-1;return D==V?k.pop():Fe.call(k,D,1),!0}function $e(s){var k=this.__data__,D=ee(k,s);return D<0?void 0:k[D][1]}function Ve(s){return ee(this.__data__,s)>-1}function Ze(s,k){var D=this.__data__,V=ee(D,s);return V<0?D.push([s,k]):D[V][1]=k,this}Et.prototype.clear=Ke,Et.prototype.delete=Ge,Et.prototype.get=$e,Et.prototype.has=Ve,Et.prototype.set=Ze;function Tt(s){var k=-1,D=s?s.length:0;for(this.clear();++k<D;){var V=s[k];this.set(V[0],V[1])}}function We(){this.__data__={hash:new Dt,map:new(Gt||Et),string:new Dt}}function Ye(s){return Wt(this,s).delete(s)}function Xe(s){return Wt(this,s).get(s)}function Qe(s){return Wt(this,s).has(s)}function Je(s,k){return Wt(this,s).set(s,k),this}Tt.prototype.clear=We,Tt.prototype.delete=Ye,Tt.prototype.get=Xe,Tt.prototype.has=Qe,Tt.prototype.set=Je;function xt(s){this.__data__=new Et(s)}function tn(){this.__data__=new Et}function en(s){return this.__data__.delete(s)}function nn(s){return this.__data__.get(s)}function rn(s){return this.__data__.has(s)}function on(s,k){var D=this.__data__;if(D instanceof Et){var V=D.__data__;if(!Gt||V.length<F-1)return V.push([s,k]),this;D=this.__data__=new Tt(V)}return D.set(s,k),this}xt.prototype.clear=tn,xt.prototype.delete=en,xt.prototype.get=nn,xt.prototype.has=rn,xt.prototype.set=on;function te(s,k){var D=me(s)||re(s)?nt(s.length,String):[],V=D.length,lt=!!V;for(var et in s)rt.call(s,et)&&!(lt&&(et=="length"||bn(et,V)))&&D.push(et);return D}function Se(s,k,D){var V=s[k];(!(rt.call(s,k)&&Re(V,D))||D===void 0&&!(k in s))&&(s[k]=D)}function ee(s,k){for(var D=s.length;D--;)if(Re(s[D][0],k))return D;return-1}function jt(s,k){return s&&ge(k,_e(k),s)}function pe(s,k,D,V,lt,et,vt){var ht;if(V&&(ht=et?V(s,lt,et,vt):V(s)),ht!==void 0)return ht;if(!Mt(s))return s;var bt=me(s);if(bt){if(ht=gn(s),!k)return vn(s,ht)}else{var yt=Ct(s),Nt=yt==f||yt==i;if(je(s))return ne(s,k);if(yt==h||yt==L||Nt&&!et){if(ut(s))return et?s:{};if(ht=It(Nt?{}:s),!k)return pn(s,jt(ht,s))}else{if(!q[yt])return et?s:{};ht=mn(s,yt,pe,k)}}vt||(vt=new xt);var Pt=vt.get(s);if(Pt)return Pt;if(vt.set(s,ht),!bt)var _t=D?yn(s):_e(s);return G(_t||s,function(kt,At){_t&&(At=kt,kt=s[At]),Se(ht,At,pe(kt,k,D,V,At,s,vt))}),ht}function an(s){return Mt(s)?Lt(s):{}}function ln(s,k,D){var V=k(s);return me(s)?V:Y(V,D(s))}function un(s){return ot.call(s)}function fn(s){if(!Mt(s)||On(s))return!1;var k=be(s)||ut(s)?wt:Z;return k.test(St(s))}function sn(s){if(!Le(s))return Te(s);var k=[];for(var D in Object(s))rt.call(s,D)&&D!="constructor"&&k.push(D);return k}function ne(s,k){if(k)return s.slice();var D=new s.constructor(s.length);return s.copy(D),D}function ye(s){var k=new s.constructor(s.byteLength);return new Kt(k).set(new Kt(s)),k}function Zt(s,k){var D=k?ye(s.buffer):s.buffer;return new s.constructor(D,s.byteOffset,s.byteLength)}function xe(s,k,D){var V=k?D(st(s),!0):st(s);return tt(V,B,new s.constructor)}function Pe(s){var k=new s.constructor(s.source,z.exec(s));return k.lastIndex=s.lastIndex,k}function cn(s,k,D){var V=k?D(gt(s),!0):gt(s);return tt(V,K,new s.constructor)}function hn(s){return Ne?Object(Ne.call(s)):{}}function dn(s,k){var D=k?ye(s.buffer):s.buffer;return new s.constructor(D,s.byteOffset,s.length)}function vn(s,k){var D=-1,V=s.length;for(k||(k=Array(V));++D<V;)k[D]=s[D];return k}function ge(s,k,D,V){D||(D={});for(var lt=-1,et=k.length;++lt<et;){var vt=k[lt],ht=void 0;Se(D,vt,ht===void 0?s[vt]:ht)}return D}function pn(s,k){return ge(s,Bt(s),k)}function yn(s){return ln(s,_e,Bt)}function Wt(s,k){var D=s.__data__;return _n(k)?D[typeof k=="string"?"string":"hash"]:D.map}function Rt(s,k){var D=it(s,k);return fn(D)?D:void 0}var Bt=ue?mt(ue,Object):An,Ct=un;(Qt&&Ct(new Qt(new ArrayBuffer(1)))!=E||Gt&&Ct(new Gt)!=t||qt&&Ct(qt.resolve())!=u||Jt&&Ct(new Jt)!=a||fe&&Ct(new fe)!=e)&&(Ct=function(s){var k=ot.call(s),D=k==h?s.constructor:void 0,V=D?St(D):void 0;if(V)switch(V){case se:return E;case Vt:return t;case ce:return u;case he:return a;case de:return e}return k});function gn(s){var k=s.length,D=s.constructor(k);return k&&typeof s[0]=="string"&&rt.call(s,"index")&&(D.index=s.index,D.input=s.input),D}function It(s){return typeof s.constructor=="function"&&!Le(s)?an(ct(s)):{}}function mn(s,k,D,V){var lt=s.constructor;switch(k){case l:return ye(s);case N:case y:return new lt(+s);case E:return Zt(s,V);case b:case g:case T:case p:case v:case _:case w:case x:case I:return dn(s,V);case t:return xe(s,V,D);case n:case o:return new lt(s);case c:return Pe(s);case a:return cn(s,V,D);case r:return hn(s)}}function bn(s,k){return k=k??m,!!k&&(typeof s=="number"||C.test(s))&&s>-1&&s%1==0&&s<k}function _n(s){var k=typeof s;return k=="string"||k=="number"||k=="symbol"||k=="boolean"?s!=="__proto__":s===null}function On(s){return!!X&&X in s}function Le(s){var k=s&&s.constructor,D=typeof k=="function"&&k.prototype||Q;return s===D}function St(s){if(s!=null){try{return at.call(s)}catch{}try{return s+""}catch{}}return""}function qe(s){return pe(s,!0,!0)}function Re(s,k){return s===k||s!==s&&k!==k}function re(s){return En(s)&&rt.call(s,"callee")&&(!we.call(s,"callee")||ot.call(s)==L)}var me=Array.isArray;function ie(s){return s!=null&&Ie(s.length)&&!be(s)}function En(s){return Me(s)&&ie(s)}var je=Xt||wn;function be(s){var k=Mt(s)?ot.call(s):"";return k==f||k==i}function Ie(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=m}function Mt(s){var k=typeof s;return!!s&&(k=="object"||k=="function")}function Me(s){return!!s&&typeof s=="object"}function _e(s){return ie(s)?te(s):sn(s)}function An(){return[]}function wn(){return!1}ft.exports=qe})(Ee,Ee.exports)),Ee.exports}var Ae={exports:{}};Ae.exports;var Pn;function Dn(){return Pn||(Pn=1,(function(ft,dt){var F=200,O="__lodash_hash_undefined__",m=1,L=2,S=9007199254740991,N="[object Arguments]",y="[object Array]",d="[object AsyncFunction]",f="[object Boolean]",i="[object Date]",t="[object Error]",n="[object Function]",h="[object GeneratorFunction]",u="[object Map]",c="[object Number]",a="[object Null]",o="[object Object]",r="[object Promise]",e="[object Proxy]",l="[object RegExp]",E="[object Set]",b="[object String]",g="[object Symbol]",T="[object Undefined]",p="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",I="[object Int8Array]",U="[object Int16Array]",z="[object Int32Array]",Z="[object Uint8Array]",C="[object Uint8ClampedArray]",q="[object Uint16Array]",A="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,M={};M[w]=M[x]=M[I]=M[U]=M[z]=M[Z]=M[C]=M[q]=M[A]=!0,M[N]=M[y]=M[v]=M[f]=M[_]=M[i]=M[t]=M[n]=M[u]=M[c]=M[o]=M[l]=M[E]=M[b]=M[p]=!1;var P=typeof zt=="object"&&zt&&zt.Object===Object&&zt,B=typeof self=="object"&&self&&self.Object===Object&&self,K=P||B||Function("return this")(),G=dt&&!dt.nodeType&&dt,Y=G&&!0&&ft&&!ft.nodeType&&ft,tt=Y&&Y.exports===G,nt=tt&&P.process,it=(function(){try{return nt&&nt.binding&&nt.binding("util")}catch{}})(),ut=it&&it.isTypedArray;function st(s,k){for(var D=-1,V=s==null?0:s.length,lt=0,et=[];++D<V;){var vt=s[D];k(vt,D,s)&&(et[lt++]=vt)}return et}function mt(s,k){for(var D=-1,V=k.length,lt=s.length;++D<V;)s[lt+D]=k[D];return s}function gt(s,k){for(var D=-1,V=s==null?0:s.length;++D<V;)if(k(s[D],D,s))return!0;return!1}function $(s,k){for(var D=-1,V=Array(s);++D<s;)V[D]=k(D);return V}function W(s){return function(k){return s(k)}}function Q(s,k){return s.has(k)}function J(s,k){return s?.[k]}function X(s){var k=-1,D=Array(s.size);return s.forEach(function(V,lt){D[++k]=[lt,V]}),D}function at(s,k){return function(D){return s(k(D))}}function rt(s){var k=-1,D=Array(s.size);return s.forEach(function(V){D[++k]=V}),D}var ot=Array.prototype,wt=Function.prototype,Ot=Object.prototype,pt=K["__core-js_shared__"],Kt=wt.toString,ct=Ot.hasOwnProperty,Lt=(function(){var s=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})(),we=Ot.toString,Fe=RegExp("^"+Kt.call(ct).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=tt?K.Buffer:void 0,Xt=K.Symbol,Te=K.Uint8Array,Qt=Ot.propertyIsEnumerable,Gt=ot.splice,qt=Xt?Xt.toStringTag:void 0,Jt=Object.getOwnPropertySymbols,fe=ue?ue.isBuffer:void 0,$t=at(Object.keys,Object),se=Bt(K,"DataView"),Vt=Bt(K,"Map"),ce=Bt(K,"Promise"),he=Bt(K,"Set"),de=Bt(K,"WeakMap"),Ut=Bt(Object,"create"),Ne=St(se),Dt=St(Vt),Ue=St(ce),He=St(he),ze=St(de),ke=Xt?Xt.prototype:void 0,ve=ke?ke.valueOf:void 0;function Et(s){var k=-1,D=s==null?0:s.length;for(this.clear();++k<D;){var V=s[k];this.set(V[0],V[1])}}function Ke(){this.__data__=Ut?Ut(null):{},this.size=0}function Ge(s){var k=this.has(s)&&delete this.__data__[s];return this.size-=k?1:0,k}function $e(s){var k=this.__data__;if(Ut){var D=k[s];return D===O?void 0:D}return ct.call(k,s)?k[s]:void 0}function Ve(s){var k=this.__data__;return Ut?k[s]!==void 0:ct.call(k,s)}function Ze(s,k){var D=this.__data__;return this.size+=this.has(s)?0:1,D[s]=Ut&&k===void 0?O:k,this}Et.prototype.clear=Ke,Et.prototype.delete=Ge,Et.prototype.get=$e,Et.prototype.has=Ve,Et.prototype.set=Ze;function Tt(s){var k=-1,D=s==null?0:s.length;for(this.clear();++k<D;){var V=s[k];this.set(V[0],V[1])}}function We(){this.__data__=[],this.size=0}function Ye(s){var k=this.__data__,D=ne(k,s);if(D<0)return!1;var V=k.length-1;return D==V?k.pop():Gt.call(k,D,1),--this.size,!0}function Xe(s){var k=this.__data__,D=ne(k,s);return D<0?void 0:k[D][1]}function Qe(s){return ne(this.__data__,s)>-1}function Je(s,k){var D=this.__data__,V=ne(D,s);return V<0?(++this.size,D.push([s,k])):D[V][1]=k,this}Tt.prototype.clear=We,Tt.prototype.delete=Ye,Tt.prototype.get=Xe,Tt.prototype.has=Qe,Tt.prototype.set=Je;function xt(s){var k=-1,D=s==null?0:s.length;for(this.clear();++k<D;){var V=s[k];this.set(V[0],V[1])}}function tn(){this.size=0,this.__data__={hash:new Et,map:new(Vt||Tt),string:new Et}}function en(s){var k=Rt(this,s).delete(s);return this.size-=k?1:0,k}function nn(s){return Rt(this,s).get(s)}function rn(s){return Rt(this,s).has(s)}function on(s,k){var D=Rt(this,s),V=D.size;return D.set(s,k),this.size+=D.size==V?0:1,this}xt.prototype.clear=tn,xt.prototype.delete=en,xt.prototype.get=nn,xt.prototype.has=rn,xt.prototype.set=on;function te(s){var k=-1,D=s==null?0:s.length;for(this.__data__=new xt;++k<D;)this.add(s[k])}function Se(s){return this.__data__.set(s,O),this}function ee(s){return this.__data__.has(s)}te.prototype.add=te.prototype.push=Se,te.prototype.has=ee;function jt(s){var k=this.__data__=new Tt(s);this.size=k.size}function pe(){this.__data__=new Tt,this.size=0}function an(s){var k=this.__data__,D=k.delete(s);return this.size=k.size,D}function ln(s){return this.__data__.get(s)}function un(s){return this.__data__.has(s)}function fn(s,k){var D=this.__data__;if(D instanceof Tt){var V=D.__data__;if(!Vt||V.length<F-1)return V.push([s,k]),this.size=++D.size,this;D=this.__data__=new xt(V)}return D.set(s,k),this.size=D.size,this}jt.prototype.clear=pe,jt.prototype.delete=an,jt.prototype.get=ln,jt.prototype.has=un,jt.prototype.set=fn;function sn(s,k){var D=re(s),V=!D&&Re(s),lt=!D&&!V&&ie(s),et=!D&&!V&&!lt&&Me(s),vt=D||V||lt||et,ht=vt?$(s.length,String):[],bt=ht.length;for(var yt in s)ct.call(s,yt)&&!(vt&&(yt=="length"||lt&&(yt=="offset"||yt=="parent")||et&&(yt=="buffer"||yt=="byteLength"||yt=="byteOffset")||mn(yt,bt)))&&ht.push(yt);return ht}function ne(s,k){for(var D=s.length;D--;)if(qe(s[D][0],k))return D;return-1}function ye(s,k,D){var V=k(s);return re(s)?V:mt(V,D(s))}function Zt(s){return s==null?s===void 0?T:a:qt&&qt in Object(s)?Ct(s):Le(s)}function xe(s){return Mt(s)&&Zt(s)==N}function Pe(s,k,D,V,lt){return s===k?!0:s==null||k==null||!Mt(s)&&!Mt(k)?s!==s&&k!==k:cn(s,k,D,V,Pe,lt)}function cn(s,k,D,V,lt,et){var vt=re(s),ht=re(k),bt=vt?y:It(s),yt=ht?y:It(k);bt=bt==N?o:bt,yt=yt==N?o:yt;var Nt=bt==o,Pt=yt==o,_t=bt==yt;if(_t&&ie(s)){if(!ie(k))return!1;vt=!0,Nt=!1}if(_t&&!Nt)return et||(et=new jt),vt||Me(s)?ge(s,k,D,V,lt,et):pn(s,k,bt,D,V,lt,et);if(!(D&m)){var kt=Nt&&ct.call(s,"__wrapped__"),At=Pt&&ct.call(k,"__wrapped__");if(kt||At){var Ht=kt?s.value():s,Ft=At?k.value():k;return et||(et=new jt),lt(Ht,Ft,D,V,et)}}return _t?(et||(et=new jt),yn(s,k,D,V,lt,et)):!1}function hn(s){if(!Ie(s)||_n(s))return!1;var k=je(s)?Fe:j;return k.test(St(s))}function dn(s){return Mt(s)&&be(s.length)&&!!M[Zt(s)]}function vn(s){if(!On(s))return $t(s);var k=[];for(var D in Object(s))ct.call(s,D)&&D!="constructor"&&k.push(D);return k}function ge(s,k,D,V,lt,et){var vt=D&m,ht=s.length,bt=k.length;if(ht!=bt&&!(vt&&bt>ht))return!1;var yt=et.get(s);if(yt&&et.get(k))return yt==k;var Nt=-1,Pt=!0,_t=D&L?new te:void 0;for(et.set(s,k),et.set(k,s);++Nt<ht;){var kt=s[Nt],At=k[Nt];if(V)var Ht=vt?V(At,kt,Nt,k,s,et):V(kt,At,Nt,s,k,et);if(Ht!==void 0){if(Ht)continue;Pt=!1;break}if(_t){if(!gt(k,function(Ft,Yt){if(!Q(_t,Yt)&&(kt===Ft||lt(kt,Ft,D,V,et)))return _t.push(Yt)})){Pt=!1;break}}else if(!(kt===At||lt(kt,At,D,V,et))){Pt=!1;break}}return et.delete(s),et.delete(k),Pt}function pn(s,k,D,V,lt,et,vt){switch(D){case _:if(s.byteLength!=k.byteLength||s.byteOffset!=k.byteOffset)return!1;s=s.buffer,k=k.buffer;case v:return!(s.byteLength!=k.byteLength||!et(new Te(s),new Te(k)));case f:case i:case c:return qe(+s,+k);case t:return s.name==k.name&&s.message==k.message;case l:case b:return s==k+"";case u:var ht=X;case E:var bt=V&m;if(ht||(ht=rt),s.size!=k.size&&!bt)return!1;var yt=vt.get(s);if(yt)return yt==k;V|=L,vt.set(s,k);var Nt=ge(ht(s),ht(k),V,lt,et,vt);return vt.delete(s),Nt;case g:if(ve)return ve.call(s)==ve.call(k)}return!1}function yn(s,k,D,V,lt,et){var vt=D&m,ht=Wt(s),bt=ht.length,yt=Wt(k),Nt=yt.length;if(bt!=Nt&&!vt)return!1;for(var Pt=bt;Pt--;){var _t=ht[Pt];if(!(vt?_t in k:ct.call(k,_t)))return!1}var kt=et.get(s);if(kt&&et.get(k))return kt==k;var At=!0;et.set(s,k),et.set(k,s);for(var Ht=vt;++Pt<bt;){_t=ht[Pt];var Ft=s[_t],Yt=k[_t];if(V)var Nn=vt?V(Yt,Ft,_t,k,s,et):V(Ft,Yt,_t,s,k,et);if(!(Nn===void 0?Ft===Yt||lt(Ft,Yt,D,V,et):Nn)){At=!1;break}Ht||(Ht=_t=="constructor")}if(At&&!Ht){var De=s.constructor,Be=k.constructor;De!=Be&&"constructor"in s&&"constructor"in k&&!(typeof De=="function"&&De instanceof De&&typeof Be=="function"&&Be instanceof Be)&&(At=!1)}return et.delete(s),et.delete(k),At}function Wt(s){return ye(s,_e,gn)}function Rt(s,k){var D=s.__data__;return bn(k)?D[typeof k=="string"?"string":"hash"]:D.map}function Bt(s,k){var D=J(s,k);return hn(D)?D:void 0}function Ct(s){var k=ct.call(s,qt),D=s[qt];try{s[qt]=void 0;var V=!0}catch{}var lt=we.call(s);return V&&(k?s[qt]=D:delete s[qt]),lt}var gn=Jt?function(s){return s==null?[]:(s=Object(s),st(Jt(s),function(k){return Qt.call(s,k)}))}:An,It=Zt;(se&&It(new se(new ArrayBuffer(1)))!=_||Vt&&It(new Vt)!=u||ce&&It(ce.resolve())!=r||he&&It(new he)!=E||de&&It(new de)!=p)&&(It=function(s){var k=Zt(s),D=k==o?s.constructor:void 0,V=D?St(D):"";if(V)switch(V){case Ne:return _;case Dt:return u;case Ue:return r;case He:return E;case ze:return p}return k});function mn(s,k){return k=k??S,!!k&&(typeof s=="number"||H.test(s))&&s>-1&&s%1==0&&s<k}function bn(s){var k=typeof s;return k=="string"||k=="number"||k=="symbol"||k=="boolean"?s!=="__proto__":s===null}function _n(s){return!!Lt&&Lt in s}function On(s){var k=s&&s.constructor,D=typeof k=="function"&&k.prototype||Ot;return s===D}function Le(s){return we.call(s)}function St(s){if(s!=null){try{return Kt.call(s)}catch{}try{return s+""}catch{}}return""}function qe(s,k){return s===k||s!==s&&k!==k}var Re=xe((function(){return arguments})())?xe:function(s){return Mt(s)&&ct.call(s,"callee")&&!Qt.call(s,"callee")},re=Array.isArray;function me(s){return s!=null&&be(s.length)&&!je(s)}var ie=fe||wn;function En(s,k){return Pe(s,k)}function je(s){if(!Ie(s))return!1;var k=Zt(s);return k==n||k==h||k==d||k==e}function be(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=S}function Ie(s){var k=typeof s;return s!=null&&(k=="object"||k=="function")}function Mt(s){return s!=null&&typeof s=="object"}var Me=ut?W(ut):dn;function _e(s){return me(s)?sn(s):vn(s)}function An(){return[]}function wn(){return!1}ft.exports=En})(Ae,Ae.exports)),Ae.exports}var oe={},Ln;function zn(){if(Ln)return oe;Ln=1;var ft=oe&&oe.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(oe,"__esModule",{value:!0});var dt=ft(Mn()),F=ft(Dn()),O;return(function(m){function L(d,f,i){d===void 0&&(d={}),f===void 0&&(f={}),typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var t=dt.default(f);i||(t=Object.keys(t).reduce(function(h,u){return t[u]!=null&&(h[u]=t[u]),h},{}));for(var n in d)d[n]!==void 0&&f[n]===void 0&&(t[n]=d[n]);return Object.keys(t).length>0?t:void 0}m.compose=L;function S(d,f){d===void 0&&(d={}),f===void 0&&(f={}),typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var i=Object.keys(d).concat(Object.keys(f)).reduce(function(t,n){return F.default(d[n],f[n])||(t[n]=f[n]===void 0?null:f[n]),t},{});return Object.keys(i).length>0?i:void 0}m.diff=S;function N(d,f){d===void 0&&(d={}),f===void 0&&(f={}),d=d||{};var i=Object.keys(f).reduce(function(t,n){return f[n]!==d[n]&&d[n]!==void 0&&(t[n]=f[n]),t},{});return Object.keys(d).reduce(function(t,n){return d[n]!==f[n]&&f[n]===void 0&&(t[n]=null),t},i)}m.invert=N;function y(d,f,i){if(i===void 0&&(i=!1),typeof d!="object")return f;if(typeof f=="object"){if(!i)return f;var t=Object.keys(f).reduce(function(n,h){return d[h]===void 0&&(n[h]=f[h]),n},{});return Object.keys(t).length>0?t:void 0}}m.transform=y})(O||(O={})),oe.default=O,oe}var ae={},le={},qn;function Kn(){if(qn)return le;qn=1;var ft=le&&le.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(le,"__esModule",{value:!0});var dt=ft(Bn()),F=(function(){function O(m){this.ops=m,this.index=0,this.offset=0}return O.prototype.hasNext=function(){return this.peekLength()<1/0},O.prototype.next=function(m){m||(m=1/0);var L=this.ops[this.index];if(L){var S=this.offset,N=dt.default.length(L);if(m>=N-S?(m=N-S,this.index+=1,this.offset=0):this.offset+=m,typeof L.delete=="number")return{delete:m};var y={};return L.attributes&&(y.attributes=L.attributes),typeof L.retain=="number"?y.retain=m:typeof L.insert=="string"?y.insert=L.insert.substr(S,m):y.insert=L.insert,y}else return{retain:1/0}},O.prototype.peek=function(){return this.ops[this.index]},O.prototype.peekLength=function(){return this.ops[this.index]?dt.default.length(this.ops[this.index])-this.offset:1/0},O.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},O.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var m=this.offset,L=this.index,S=this.next(),N=this.ops.slice(this.index);return this.offset=m,this.index=L,[S].concat(N)}else return[]},O})();return le.default=F,le}var Rn;function Bn(){if(Rn)return ae;Rn=1;var ft=ae&&ae.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(ae,"__esModule",{value:!0});var dt=ft(Kn()),F;return(function(O){function m(S){return new dt.default(S)}O.iterator=m;function L(S){return typeof S.delete=="number"?S.delete:typeof S.retain=="number"?S.retain:typeof S.insert=="string"?S.insert.length:1}O.length=L})(F||(F={})),ae.default=F,ae}var Oe,jn;function Gn(){if(jn)return Oe;jn=1;var ft=Oe&&Oe.__importDefault||function(y){return y&&y.__esModule?y:{default:y}},dt=ft(Hn()),F=ft(Mn()),O=ft(Dn()),m=ft(zn()),L=ft(Bn()),S="\0",N=(function(){function y(d){Array.isArray(d)?this.ops=d:d!=null&&Array.isArray(d.ops)?this.ops=d.ops:this.ops=[]}return y.prototype.insert=function(d,f){var i={};return typeof d=="string"&&d.length===0?this:(i.insert=d,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(i.attributes=f),this.push(i))},y.prototype.delete=function(d){return d<=0?this:this.push({delete:d})},y.prototype.retain=function(d,f){if(d<=0)return this;var i={retain:d};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(i.attributes=f),this.push(i)},y.prototype.push=function(d){var f=this.ops.length,i=this.ops[f-1];if(d=F.default(d),typeof i=="object"){if(typeof d.delete=="number"&&typeof i.delete=="number")return this.ops[f-1]={delete:i.delete+d.delete},this;if(typeof i.delete=="number"&&d.insert!=null&&(f-=1,i=this.ops[f-1],typeof i!="object"))return this.ops.unshift(d),this;if(O.default(d.attributes,i.attributes)){if(typeof d.insert=="string"&&typeof i.insert=="string")return this.ops[f-1]={insert:i.insert+d.insert},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this;if(typeof d.retain=="number"&&typeof i.retain=="number")return this.ops[f-1]={retain:i.retain+d.retain},typeof d.attributes=="object"&&(this.ops[f-1].attributes=d.attributes),this}}return f===this.ops.length?this.ops.push(d):this.ops.splice(f,0,d),this},y.prototype.chop=function(){var d=this.ops[this.ops.length-1];return d&&d.retain&&!d.attributes&&this.ops.pop(),this},y.prototype.filter=function(d){return this.ops.filter(d)},y.prototype.forEach=function(d){this.ops.forEach(d)},y.prototype.map=function(d){return this.ops.map(d)},y.prototype.partition=function(d){var f=[],i=[];return this.forEach(function(t){var n=d(t)?f:i;n.push(t)}),[f,i]},y.prototype.reduce=function(d,f){return this.ops.reduce(d,f)},y.prototype.changeLength=function(){return this.reduce(function(d,f){return f.insert?d+L.default.length(f):f.delete?d-f.delete:d},0)},y.prototype.length=function(){return this.reduce(function(d,f){return d+L.default.length(f)},0)},y.prototype.slice=function(d,f){d===void 0&&(d=0),f===void 0&&(f=1/0);for(var i=[],t=L.default.iterator(this.ops),n=0;n<f&&t.hasNext();){var h=void 0;n<d?h=t.next(d-n):(h=t.next(f-n),i.push(h)),n+=L.default.length(h)}return new y(i)},y.prototype.compose=function(d){var f=L.default.iterator(this.ops),i=L.default.iterator(d.ops),t=[],n=i.peek();if(n!=null&&typeof n.retain=="number"&&n.attributes==null){for(var h=n.retain;f.peekType()==="insert"&&f.peekLength()<=h;)h-=f.peekLength(),t.push(f.next());n.retain-h>0&&i.next(n.retain-h)}for(var u=new y(t);f.hasNext()||i.hasNext();)if(i.peekType()==="insert")u.push(i.next());else if(f.peekType()==="delete")u.push(f.next());else{var c=Math.min(f.peekLength(),i.peekLength()),a=f.next(c),o=i.next(c);if(typeof o.retain=="number"){var r={};typeof a.retain=="number"?r.retain=c:r.insert=a.insert;var e=m.default.compose(a.attributes,o.attributes,typeof a.retain=="number");if(e&&(r.attributes=e),u.push(r),!i.hasNext()&&O.default(u.ops[u.ops.length-1],r)){var l=new y(f.rest());return u.concat(l).chop()}}else typeof o.delete=="number"&&typeof a.retain=="number"&&u.push(o)}return u.chop()},y.prototype.concat=function(d){var f=new y(this.ops.slice());return d.ops.length>0&&(f.push(d.ops[0]),f.ops=f.ops.concat(d.ops.slice(1))),f},y.prototype.diff=function(d,f){if(this.ops===d.ops)return new y;var i=[this,d].map(function(c){return c.map(function(a){if(a.insert!=null)return typeof a.insert=="string"?a.insert:S;var o=c===d?"on":"with";throw new Error("diff() called "+o+" non-document")}).join("")}),t=new y,n=dt.default(i[0],i[1],f),h=L.default.iterator(this.ops),u=L.default.iterator(d.ops);return n.forEach(function(c){for(var a=c[1].length;a>0;){var o=0;switch(c[0]){case dt.default.INSERT:o=Math.min(u.peekLength(),a),t.push(u.next(o));break;case dt.default.DELETE:o=Math.min(a,h.peekLength()),h.next(o),t.delete(o);break;case dt.default.EQUAL:o=Math.min(h.peekLength(),u.peekLength(),a);var r=h.next(o),e=u.next(o);O.default(r.insert,e.insert)?t.retain(o,m.default.diff(r.attributes,e.attributes)):t.push(e).delete(o);break}a-=o}}),t.chop()},y.prototype.eachLine=function(d,f){f===void 0&&(f=`
`);for(var i=L.default.iterator(this.ops),t=new y,n=0;i.hasNext();){if(i.peekType()!=="insert")return;var h=i.peek(),u=L.default.length(h)-i.peekLength(),c=typeof h.insert=="string"?h.insert.indexOf(f,u)-u:-1;if(c<0)t.push(i.next());else if(c>0)t.push(i.next(c));else{if(d(t,i.next(1).attributes||{},n)===!1)return;n+=1,t=new y}}t.length()>0&&d(t,{},n)},y.prototype.invert=function(d){var f=new y;return this.reduce(function(i,t){if(t.insert)f.delete(L.default.length(t));else{if(t.retain&&t.attributes==null)return f.retain(t.retain),i+t.retain;if(t.delete||t.retain&&t.attributes){var n=t.delete||t.retain,h=d.slice(i,i+n);return h.forEach(function(u){t.delete?f.push(u):t.retain&&t.attributes&&f.retain(L.default.length(u),m.default.invert(t.attributes,u.attributes))}),i+n}}return i},0),f.chop()},y.prototype.transform=function(d,f){if(f===void 0&&(f=!1),f=!!f,typeof d=="number")return this.transformPosition(d,f);for(var i=d,t=L.default.iterator(this.ops),n=L.default.iterator(i.ops),h=new y;t.hasNext()||n.hasNext();)if(t.peekType()==="insert"&&(f||n.peekType()!=="insert"))h.retain(L.default.length(t.next()));else if(n.peekType()==="insert")h.push(n.next());else{var u=Math.min(t.peekLength(),n.peekLength()),c=t.next(u),a=n.next(u);if(c.delete)continue;a.delete?h.push(a):h.retain(u,m.default.transform(c.attributes,a.attributes,f))}return h.chop()},y.prototype.transformPosition=function(d,f){f===void 0&&(f=!1),f=!!f;for(var i=L.default.iterator(this.ops),t=0;i.hasNext()&&t<=d;){var n=i.peekLength(),h=i.peekType();if(i.next(),h==="delete"){d-=Math.min(n,d-t);continue}else h==="insert"&&(t<d||!f)&&(d+=n);t+=n}return d},y.Op=L.default,y.AttributeMap=m.default,y})();return Oe=N,Oe}var $n=Gn();const Wn=In($n);export{Wn as D,Zn as Q};