`),W=z.shift();W.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),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});varF=this;z.reduce(function(R,A){returnF=F.split(R,!0),F.insertAt(0,A),A.length},x+W.length)}}},{key:"insertBefore",value:function(x,I){varU=this.children.head;S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,x,I),Uinstanceofh.default&&U.remove(),this.cache={}}},{key:"length",value:function(){returnthis.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){returnS(_.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){varI=arguments.length>1&&arguments[1]!==void0?arguments[1]:!1;if(I&&(x===0||x>=this.length()-b)){varU=this.clone();returnx===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{varz=S(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"split",this).call(this,x,I);returnthis.cache={},z}}}]),_})(t.default.Block);T.blotName="block",T.tagName="P",T.defaultChild="break",T.allowedChildren=[c.default,t.default.Embed,o.default];functiony(v){var_=arguments.length>1&&arguments[1]!==void0?arguments[1]:{};returnv==null||(typeofv.formats=="function"&&(_=(0,p.default)(_,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?_:y(v.parent,_)}O.bubbleFormats=y,O.BlockEmbed=m,O.default=T}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void0;varP=typeofSymbol=="function"&&typeofSymbol.iterator=="symbol"?function(F){returntypeofF}:function(F){returnF&&typeofSymbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeofF},S=(function(){functionF(R,A){varq=[],j=!0,H=!1,M=void0;try{for(varL=R[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(q.push(C.value),!(A&&q.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&L.return&&L.return()}finally{if(H)throwM}}returnq}returnfunction(R,A){if(Array.isArray(R))returnR;if(Symbol.iteratorinObject(R))returnF(R,A);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){functionF(R,A){for(varq=0;q<A.length;q++){varj=A[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"inj&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}returnfunction(R,A,q){returnA&&F(R.prototype,A),q&&F(R,q),R}})();g(50);varp=g(2),d=y(p),s=g(14),i=y(s),t=g(8),e=y(t),h=g(9),u=y(h),c=g(0),a=y(c),o=g(15),r=y(o),n=g(3),l=y(n),E=g(10),b=y(E),m=g(34),T=y(m);functiony(F){returnF&&F.__esModule?F:{default:F}}functionv(F,R,A){returnRinF?Object.defineProperty(F,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):F[R]=A,F}function_(F,R){if(!(FinstanceofR))thrownewTypeError("Cannot call a class as a function")}varw=(0,b.default)("quill"),x=(function(){k(F,null,[{key:"debug",value:function(A){A===!0&&(A="log"),b.default.level(A)}},{key:"find",value:function(A){returnA.__quill||a.default.find(A)}},{key:"import",value:function(A){returnthis.imports[A]==null&&w.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,q){varj=this,H=arguments.length>2&&arguments[2]!==void0?arguments[2]:!1;if(typeofA!="string"){varM=A.attrName||A.blotName;typeofM=="string"?this.register("formats/"+M,A,q):Object.keys
`)),k(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){k(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(_){varw=i.default.find(_);w==null?_.parentNode.removeChild(_):winstanceofi.default.Embed?w.remove():w.unwrap()})}}],[{key:"create",value:function(v){var_=k(T.__proto__||Object.getPrototypeOf(T),"create",this).call(this,v);return_.setAttribute("spellcheck",!1),_}},{key:"formats",value:function(){return!0}}]),T})(e.default);b.blotName="code-block",b.tagName="PRE",b.TAB=" ",O.Code=E,O.default=b}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});varP=typeofSymbol=="function"&&typeofSymbol.iterator=="symbol"?function(F){returntypeofF}:function(F){returnF&&typeofSymbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeofF},S=(function(){functionF(R,A){varq=[],j=!0,H=!1,M=void0;try{for(varL=R[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(q.push(C.value),!(A&&q.length===A));j=!0);}catch(K){H=!0,M=K}finally{try{!j&&L.return&&L.return()}finally{if(H)throwM}}returnq}returnfunction(R,A){if(Array.isArray(R))returnR;if(Symbol.iteratorinObject(R))returnF(R,A);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){functionF(R,A){for(varq=0;q<A.length;q++){varj=A[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"inj&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}returnfunction(R,A,q){returnA&&F(R.prototype,A),q&&F(R,q),R}})(),p=g(2),d=_(p),s=g(20),i=_(s),t=g(0),e=_(t),h=g(13),u=_(h),c=g(24),a=_(c),o=g(4),r=_(o),n=g(16),l=_(n),E=g(21),b=_(E),m=g(11),T=_(m),y=g(3),v=_(y);function_(F){returnF&&F.__esModule?F:{default:F}}functionw(F,R,A){returnRinF?Object.defineProperty(F,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):F[R]=A,F}functionx(F,R){if(!(FinstanceofR))thrownewTypeError("Cannot call a class as a function")}varI=/^[ -~]*$/,U=(function(){functionF(R){x(this,F),this.scroll=R,this.delta=this.getDelta()}returnk(F,[{key:"applyDelta",value:function(A){varq=this,j=!1;this.scroll.update();varH=this.scroll.length();returnthis.scroll.batchStart(),A=W(A),A.reduce(function(M,L){varC=L.retain||L.delete||L.insert.length||1,K=L.attributes||{};if(L.insert!=null){if(typeofL.insert=="string"){varG=L.insert;G.endsWith(`
`);returnR.insert(j,A.attributes)}returnR.push(A)},newd.default)}O.default=U}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void0;varP=(function(){functionm(T,y){varv=[],_=!0,w=!1,x=void0;try{for(varI=T[Symbol.iterator](),U;!(_=(U=I.next()).done)&&(v.push(U.value),!(y&&v.length===y));_=!0);}catch(z){w=!0,x=z}finally{try{!_&&I.return&&I.return()}finally{if(w)throwx}}returnv}returnfunction(T,y){if(Array.isArray(T))returnT;if(Symbol.iteratorinObject(T))returnm(T,y);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){functionm(T,y){for(varv=0;v<y.length;v++){var_=y[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in_&&(_.writable=!0),Object.defineProperty(T,_.key,_)}}returnfunction(T,y,v){returny&&m(T.prototype,y),v&&m(T,v),T}})(),k=g(0),p=a(k),d=g(21),s=a(d),i=g(11),t=a(i),e=g(8),h=a(e),u=g(10),c=a(u);functiona(m){returnm&&m.__esModule?m:{default:m}}functiono(m){if(Array.isArray(m)){for(varT=0,y=Array(m.length);T<m.length;T++)y[T]=m[T];returny}elsereturnArray.from(m)}functionr(m,T){if(!(minstanceofT))thrownewTypeError("Cannot call a class as a function")}varn=(0,c.default)("quill:selection"),l=functionm(T){vary=arguments.length>1&&arguments[1]!==void0?arguments[1]:0;r(this,m),this.index=T,this.length=y},E=(function(){functionm(T,y){varv=this;r(this,m),this.emitter=y,this.scroll=T,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=newl(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){varx=w.range,I=x.startNode,U=x.startOffset,z=x.endNode,W=x.endOffset;v.setNativeRange(I,U,z,W)}}),this.update(h.default.sources.SILENT)}returnS(m,[{key:"handleComposition",value:function(){vary=this;this.root.addEventListener("compositionstart",function(){y.composing=!0}),this.root.addEventListener("compositionend",function(){if(y.composing=!1,y.cursor.parent){varv=y.cursor.restore();if(!v)return;setTimeout(function(){y.setNativeRange(v.startNode,v.startOffset,v.endNode,v.endOffset)},1)}})}},{key:"handleDragging",value:function(){vary=this;this.emitter.listenDOM("mousedown",document.body,function(){y.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){y.mouseDown=!1,y.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(y,v){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[y])){this.scroll.update();var_=this.getNativeRange();if(!(_==null||!_.native.collapsed||p.default.query(y,p.default.Scope.BLOCK))){if(_.start.node!==this.cursor.textNode){varw=p.default.find(_.start.node,!1);if(w==null)return;if(winstanceofp.default.Leaf){varx=w.split(_.start.offset);w.parent.insertBefore(this.cursor,x)}elsew.insertBefore(this.cursor,_.start.node);this.cursor.attach()}this.cursor.format(y,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(y){varv=arguments.length>1&&arguments[1]!==void0?arguments[1]:0,_=this.scroll.length();y=Math.min(y,_-1),v=Math.min(y+v,_-1)-y;varw=void0,x=this.scroll.leaf(y),I=P(x,2),U=I[0],z=I[1];if(U==null)returnnull;varW=U.position(z,!0),F=P(W,2);w=F[0],z=F[1];varR=document.createRange();if(v>0){R.setStart(w,z);varA=this.scroll.
`)&&(x=x.slice(0,-1)),U.insertAt(0,x,I)}else{var z=d.default.create(x,I);this.appendChild(z)}else k(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}k(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(m,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,W,F){var R=[],A=F;return z.children.forEachAt(W,F,function(q,j,H){m(q)?R.push(q):q instanceof d.default.Container&&(R=R.concat(U(q,j,A))),A-=H}),R};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&&(k(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 k(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),k(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=[e.default,t.BlockEmbed,r.default],O.default=T}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},S=(function(){function L(C,K){var G=[],X=!0,tt=!1,nt=void 0;try{for(var it=C[Symbol.iterator](),ut;!(X=(ut=it.next()).done)&&(G.push(ut.value),!(K&&G.length===K));X=!0);}catch(ct){tt=!0,nt=ct}finally{try{!X&&it.return&&it.return()}finally{if(tt)throw nt}}return G}return function(C,K){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return L(C,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function L(C,K){for(var G=0;G<K.length;G++){var X=K[G];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(C,X.key,X)}}return function(C,K,G){return K&&L(C.prototype,K),G&&L(C,G),C}})(),p=g(21),d=y(p),s=g(11),i=y(s),t=g(3),e=y(t),h=g(2),u=y(h),c=g(20),a=y(c),o=g(0),r=y(o),n=g(5),l=y(n),E=g(10),b=y(E),m=g(9),T=y(m);function y(L){return L&&L.__esModule?L:{default:L}}function v(L,C,K){return C in L?Object.defineProperty(L,C,{value:K,enumerable:!0,configurable:!0,writable:!0}):L[C]=K,L}function _(L,C){if(!(L instanceof C))throw new TypeError("Cannot call a class as a function")}function w(L,C){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:L}function x(L,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);L.prototype=Object.create(C&&C.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(L,C):L.__proto__=C)}var I=(0,b.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=(function(L){x(C,L),k(C,null,[{key:"match",value:function(G,X){return X=M(X),["altKey","ctrlKey","metaKey","s
`);ct=0,Y.forEach(function(J,$){L?(ut.insertAt(gt+ct,G.TAB),ct+=G.TAB.length,$===0?X+=G.TAB.length:tt+=G.TAB.length):J.startsWith(G.TAB)&&(ut.deleteAt(gt+ct,G.TAB.length),ct-=G.TAB.length,$===0?X-=G.TAB.length:tt-=G.TAB.length),ct+=J.length+1}),this.quill.update(l.default.sources.USER),this.quill.setSelection(X,tt,l.default.sources.SILENT)}}}}functionH(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(K,G){this.quill.format(L,!G.format[L],l.default.sources.USER)}}}functionM(L){if(typeofL=="string"||typeofL=="number")returnM({key:L});if((typeofL>"u"?"undefined":P(L))==="object"&&(L=(0,d.default)(L,!1)),typeofL.key=="string")if(z.keys[L.key.toUpperCase()]!=null)L.key=z.keys[L.key.toUpperCase()];elseif(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);elsereturnnull;returnL.shortKey&&(L[U]=L.shortKey,deleteL.shortKey),L}O.default=z,O.SHORTKEY=U}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});varP=(function(){functiona(o,r){varn=[],l=!0,E=!1,b=void0;try{for(varm=o[Symbol.iterator](),T;!(l=(T=m.next()).done)&&(n.push(T.value),!(r&&n.length===r));l=!0);}catch(y){E=!0,b=y}finally{try{!l&&m.return&&m.return()}finally{if(E)throwb}}returnn}returnfunction(o,r){if(Array.isArray(o))returno;if(Symbol.iteratorinObject(o))returna(o,r);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}})(),S=functiona(o,r,n){o===null&&(o=Function.prototype);varl=Object.getOwnPropertyDescriptor(o,r);if(l===void0){varE=Object.getPrototypeOf(o);returnE===null?void0:a(E,r,n)}else{if("value"inl)returnl.value;varb=l.get;returnb===void0?void0:b.call(n)}},k=(function(){functiona(o,r){for(varn=0;n<r.length;n++){varl=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"inl&&(l.writable=!0),Object.defineProperty(o,l.key,l)}}returnfunction(o,r,n){returnr&&a(o.prototype,r),n&&a(o,n),o}})(),p=g(0),d=t(p),s=g(7),i=t(s);functiont(a){returna&&a.__esModule?a:{default:a}}functione(a,o){if(!(ainstanceofo))thrownewTypeError("Cannot call a class as a function")}functionh(a,o){if(!a)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returno&&(typeofo=="object"||typeofo=="function")?o:a}functionu(a,o){if(typeofo!="function"&&o!==null)thrownewTypeError("Super expression must either be null or a function, not "+typeofo);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)}varc=(function(a){u(o,a),k(o,null,[{key:"value",value:function(){}}]);functiono(r,n){e(this,o);varl=h(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,r));returnl.selection=n,l.textNode=document.createTextNode(o.CONTENTS),l.domNode.appendChild(l.textNode),l._length=0,l}returnk(o,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,l){if(this._length!==0)returnS(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,n,l);for(varE=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,n,l),this._length=0)}},{key:"index",value:function(n,l){returnn===this.textNode?0:S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"index",this).call(this,n,l)}},{key:"length",value:function(){returnthis._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)){varn=this.textNode,l=this.selection.getNativeRange(),E=void0,b=void0,m=void0;if(l!=null&&l.start.node===n&&l.end.node===n){varT=[n,l.start.offset,l.end.offset];E=T[0],b=T[1],m=T[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNo
`):n.attributes!=null?Object.keys(n.attributes).some(function(l){return k.default.query(l,k.default.Scope.BLOCK)!=null}):!1}function o(r){var n=r.reduce(function(E,b){return E+=b.delete||0,E},0),l=r.length()-n;return a(r)&&(l-=1),l}O.default=c,O.getLastChangeIndex=o}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=(function(){function q(j,H){for(var M=0;M<H.length;M++){var L=H[M];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(j,L.key,L)}}return function(j,H,M){return H&&q(j.prototype,H),M&&q(j,M),j}})(),S=function q(j,H,M){j===null&&(j=Function.prototype);var L=Object.getOwnPropertyDescriptor(j,H);if(L===void 0){var C=Object.getPrototypeOf(j);return C===null?void 0:q(C,H,M)}else{if("value"in L)return L.value;var K=L.get;return K===void 0?void 0:K.call(M)}},k=g(3),p=T(k),d=g(2),s=T(d),i=g(8),t=T(i),e=g(23),h=T(e),u=g(34),c=T(u),a=g(59),o=T(a),r=g(60),n=T(r),l=g(28),E=T(l),b=g(61),m=T(b);function T(q){return q&&q.__esModule?q:{default:q}}function y(q,j){if(!(q instanceof j))throw new TypeError("Cannot call a class as a function")}function v(q,j){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:q}function _(q,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);q.prototype=Object.create(j&&j.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(q,j):q.__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"],W=(function(q){_(j,q);function j(H,M){y(this,j);var L=v(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,M)),C=function K(G){if(!document.body.contains(H.root))return document.body.removeEventListener("click",K);L.tooltip!=null&&!L.tooltip.root.contains(G.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(X){X.container.contains(G.target)||X.close()})};return H.emitter.listenDOM("click",document.body,C),L}return P(j,[{key:"addModule",value:function(M){var L=S(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(M,L){M.forEach(function(C){var K=C.getAttribute("class")||"";K.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),L[G]!=null))if(G==="direction")C.innerHTML=L[G][""]+L[G].rtl;else if(typeof L[G]=="string")C.innerHTML=L[G];else{var X=C.value||"";X!=null&&L[G][X]&&(C.innerHTML=L[G][X])}})})}},{key:"buildPickers",value:function(M,L){var C=this;this.pickers=M.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&A(G,w),new n.default(G,L.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var X=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&A(G,x,X==="background"?"#ffffff":"#000000"),new o.default(G,L[X])}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(){C.pickers.forEach(function(X){X.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,K)}}]),j})(c.default);W.DEFAULTS=(0,p.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("inpu
`)}returnY}functionmt(V,Y){varJ={},$=V.style||{};return$.fontStyle&&H(V).fontStyle==="italic"&&(J.italic=!0),$.fontWeight&&(H(V).fontWeight.startsWith("bold")||parseInt(H(V).fontWeight)>=700)&&(J.bold=!0),Object.keys(J).length>0&&(Y=j(Y,J)),parseFloat($.textIndent||0)>0&&(Y=newi.default().insert(" ").concat(Y)),Y}functiongt(V,Y){varJ=V.data;if(V.parentNode.tagName==="O:P")returnY.insert(J.trim());if(J.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))returnY;if(!H(V.parentNode).whiteSpace.startsWith("pre")){var$=function(at,rt){returnrt=rt.replace(/[^\u00a0]/g,""),rt.length<1&&at?" ":rt};J=J.replace(/\r\n/g," ").replace(/\n/g," "),J=J.replace(/\s\s+/g,$.bind($,!0)),(V.previousSibling==null&&L(V.parentNode)||V.previousSibling!=null&&L(V.previousSibling))&&(J=J.replace(/^\s+/,$.bind($,!1))),(V.nextSibling==null&&L(V.parentNode)||V.nextSibling!=null&&L(V.nextSibling))&&(J=J.replace(/\s+$/,$.bind($,!1)))}returnY.insert(J)}O.default=q,O.matchAttributor=G,O.matchBlot=X,O.matchNewline=ut,O.matchSpacing=ct,O.matchText=gt}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0});varP=(function(){functionh(u,c){for(vara=0;a<c.length;a++){varo=c[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(u,o.key,o)}}returnfunction(u,c,a){returnc&&h(u.prototype,c),a&&h(u,a),u}})(),S=functionh(u,c,a){u===null&&(u=Function.prototype);varo=Object.getOwnPropertyDescriptor(u,c);if(o===void0){varr=Object.getPrototypeOf(u);returnr===null?void0:h(r,c,a)}else{if("value"ino)returno.value;varn=o.get;returnn===void0?void0:n.call(a)}},k=g(6),p=d(k);functiond(h){returnh&&h.__esModule?h:{default:h}}functions(h,u){if(!(hinstanceofu))thrownewTypeError("Cannot call a class as a function")}functioni(h,u){if(!h)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnu&&(typeofu=="object"||typeofu=="function")?u:h}functiont(h,u){if(typeofu!="function"&&u!==null)thrownewTypeError("Super expression must either be null or a function, not "+typeofu);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)}vare=(function(h){t(u,h);functionu(){returns(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}returnP(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(){returnS(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u})(p.default);e.blotName="bold",e.tagName=["STRONG","B"],O.default=e}),(function(B,O,g){Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void0;varP=(function(){functionv(_,w){varx=[],I=!0,U=!1,z=void0;try{for(varW=_[Symbol.iterator](),F;!(I=(F=W.next()).done)&&(x.push(F.value),!(w&&x.length===w));I=!0);}catch(R){U=!0,z=R}finally{try{!I&&W.return&&W.return()}finally{if(U)throwz}}returnx}returnfunction(_,w){if(Array.isArray(_))return_;if(Symbol.iteratorinObject(_))returnv(_,w);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){functionv(_,w){for(varx=0;x<w.length;x++){varI=w[x];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"inI&&(I.writable=!0),Object.defineProperty(_,I.key,I)}}returnfunction(_,w,x){returnw&&v(_.prototype,w),x&&v(_,x),_}})(),k=g(2),p=a(k),d=g(0),s=a(d),i=g(5),t=a(i),e=g(10),h=a(e),u=g(9),c=a(u);functiona(v){returnv&&v.__esModule?v:{default:v}}functiono(v,_,w){return_inv?Object.defineProperty(v,_,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[_]=w,v}functionr(v,_){if(!(vinstanceof_))thrownewTypeError("Cannot call a class as a function")}functionn(v,_){if(!v)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return_&&(typeof_=="obje