Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 13.58.53.112
Current Path : /var/www/qpms/assets/ |
| Current File : /var/www/qpms/assets/PrepareThQp-CX7DhsT4.js |
import{r as de,I as rn,a as on,Q as ve,T as an,U as ln,x as $t,H as un,t as K,D as st,L as ft,B as se,F as Ie,G as sn,E as Me,v as Ze,O as fn,V as cn}from"./index-CAvdhLGp.js";import{a as hn,u as dn,d as pn}from"./PrepareQp-D9i1PlZY.js";import{k as vn}from"./sem-Dd1ri5Qb.js";import{S as Qe}from"./index-Bthn8aXT.js";import{R as ct}from"./ArrowLeftOutlined-B2yUfO8l.js";import{R as yn}from"./FilePdfOutlined-Cm3NPQK4.js";import{R as gn}from"./HomeOutlined-CsEPm3IA.js";import{R as Ye}from"./index-DmG-UXL6.js";import{R as ge,C as he}from"./row-B9GdCjYT.js";import{U as xe,R as Ae}from"./UploadOutlined-B5WcHIAP.js";import{R as we}from"./DeleteOutlined-CJCYzgSk.js";import"./index-BX9F7V_3.js";import"./responsiveObserver-CtD7KI5g.js";var mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},bn=function(I,b){return de.createElement(rn,on({},I,{ref:b,icon:mn}))},_n=de.forwardRef(bn);function On(){this.__data__=[],this.size=0}var En=On;function xn(_,I){return _===I||_!==_&&I!==I}var Ft=xn,An=Ft;function wn(_,I){for(var b=_.length;b--;)if(An(_[b][0],I))return b;return-1}var Ue=wn,Tn=Ue,kn=Array.prototype,Nn=kn.splice;function Sn(_){var I=this.__data__,b=Tn(I,_);if(b<0)return!1;var s=I.length-1;return b==s?I.pop():Nn.call(I,b,1),--this.size,!0}var jn=Sn,Pn=Ue;function qn(_){var I=this.__data__,b=Pn(I,_);return b<0?void 0:I[b][1]}var Ln=qn,Rn=Ue;function In(_){return Rn(this.__data__,_)>-1}var Mn=In,Dn=Ue;function Cn(_,I){var b=this.__data__,s=Dn(b,_);return s<0?(++this.size,b.push([_,I])):b[s][1]=I,this}var Bn=Cn,$n=En,Fn=jn,Un=Ln,Hn=Mn,zn=Bn;function ke(_){var I=-1,b=_==null?0:_.length;for(this.clear();++I<b;){var s=_[I];this.set(s[0],s[1])}}ke.prototype.clear=$n;ke.prototype.delete=Fn;ke.prototype.get=Un;ke.prototype.has=Hn;ke.prototype.set=zn;var He=ke,Kn=He;function Gn(){this.__data__=new Kn,this.size=0}var Vn=Gn;function Wn(_){var I=this.__data__,b=I.delete(_);return this.size=I.size,b}var Zn=Wn;function Qn(_){return this.__data__.get(_)}var Yn=Qn;function Xn(_){return this.__data__.has(_)}var Jn=Xn,er=typeof ve=="object"&&ve&&ve.Object===Object&&ve,Ut=er,tr=Ut,nr=typeof self=="object"&&self&&self.Object===Object&&self,rr=tr||nr||Function("return this")(),_e=rr,ir=_e,or=ir.Symbol,at=or,ht=at,Ht=Object.prototype,ar=Ht.hasOwnProperty,lr=Ht.toString,Le=ht?ht.toStringTag:void 0;function ur(_){var I=ar.call(_,Le),b=_[Le];try{_[Le]=void 0;var s=!0}catch{}var d=lr.call(_);return s&&(I?_[Le]=b:delete _[Le]),d}var sr=ur,fr=Object.prototype,cr=fr.toString;function hr(_){return cr.call(_)}var dr=hr,dt=at,pr=sr,vr=dr,yr="[object Null]",gr="[object Undefined]",pt=dt?dt.toStringTag:void 0;function mr(_){return _==null?_===void 0?gr:yr:pt&&pt in Object(_)?pr(_):vr(_)}var ze=mr;function br(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}var zt=br,_r=ze,Or=zt,Er="[object AsyncFunction]",xr="[object Function]",Ar="[object GeneratorFunction]",wr="[object Proxy]";function Tr(_){if(!Or(_))return!1;var I=_r(_);return I==xr||I==Ar||I==Er||I==wr}var Kt=Tr,kr=_e,Nr=kr["__core-js_shared__"],Sr=Nr,Xe=Sr,vt=function(){var _=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}();function jr(_){return!!vt&&vt in _}var Pr=jr,qr=Function.prototype,Lr=qr.toString;function Rr(_){if(_!=null){try{return Lr.call(_)}catch{}try{return _+""}catch{}}return""}var Gt=Rr,Ir=Kt,Mr=Pr,Dr=zt,Cr=Gt,Br=/[\\^$.*+?()[\]{}|]/g,$r=/^\[object .+?Constructor\]$/,Fr=Function.prototype,Ur=Object.prototype,Hr=Fr.toString,zr=Ur.hasOwnProperty,Kr=RegExp("^"+Hr.call(zr).replace(Br,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gr(_){if(!Dr(_)||Mr(_))return!1;var I=Ir(_)?Kr:$r;return I.test(Cr(_))}var Vr=Gr;function Wr(_,I){return _==null?void 0:_[I]}var Zr=Wr,Qr=Vr,Yr=Zr;function Xr(_,I){var b=Yr(_,I);return Qr(b)?b:void 0}var Ne=Xr,Jr=Ne,ei=_e,ti=Jr(ei,"Map"),lt=ti,ni=Ne,ri=ni(Object,"create"),Ke=ri,yt=Ke;function ii(){this.__data__=yt?yt(null):{},this.size=0}var oi=ii;function ai(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I}var li=ai,ui=Ke,si="__lodash_hash_undefined__",fi=Object.prototype,ci=fi.hasOwnProperty;function hi(_){var I=this.__data__;if(ui){var b=I[_];return b===si?void 0:b}return ci.call(I,_)?I[_]:void 0}var di=hi,pi=Ke,vi=Object.prototype,yi=vi.hasOwnProperty;function gi(_){var I=this.__data__;return pi?I[_]!==void 0:yi.call(I,_)}var mi=gi,bi=Ke,_i="__lodash_hash_undefined__";function Oi(_,I){var b=this.__data__;return this.size+=this.has(_)?0:1,b[_]=bi&&I===void 0?_i:I,this}var Ei=Oi,xi=oi,Ai=li,wi=di,Ti=mi,ki=Ei;function Se(_){var I=-1,b=_==null?0:_.length;for(this.clear();++I<b;){var s=_[I];this.set(s[0],s[1])}}Se.prototype.clear=xi;Se.prototype.delete=Ai;Se.prototype.get=wi;Se.prototype.has=Ti;Se.prototype.set=ki;var Ni=Se,gt=Ni,Si=He,ji=lt;function Pi(){this.size=0,this.__data__={hash:new gt,map:new(ji||Si),string:new gt}}var qi=Pi;function Li(_){var I=typeof _;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?_!=="__proto__":_===null}var Ri=Li,Ii=Ri;function Mi(_,I){var b=_.__data__;return Ii(I)?b[typeof I=="string"?"string":"hash"]:b.map}var Ge=Mi,Di=Ge;function Ci(_){var I=Di(this,_).delete(_);return this.size-=I?1:0,I}var Bi=Ci,$i=Ge;function Fi(_){return $i(this,_).get(_)}var Ui=Fi,Hi=Ge;function zi(_){return Hi(this,_).has(_)}var Ki=zi,Gi=Ge;function Vi(_,I){var b=Gi(this,_),s=b.size;return b.set(_,I),this.size+=b.size==s?0:1,this}var Wi=Vi,Zi=qi,Qi=Bi,Yi=Ui,Xi=Ki,Ji=Wi;function je(_){var I=-1,b=_==null?0:_.length;for(this.clear();++I<b;){var s=_[I];this.set(s[0],s[1])}}je.prototype.clear=Zi;je.prototype.delete=Qi;je.prototype.get=Yi;je.prototype.has=Xi;je.prototype.set=Ji;var Vt=je,eo=He,to=lt,no=Vt,ro=200;function io(_,I){var b=this.__data__;if(b instanceof eo){var s=b.__data__;if(!to||s.length<ro-1)return s.push([_,I]),this.size=++b.size,this;b=this.__data__=new no(s)}return b.set(_,I),this.size=b.size,this}var oo=io,ao=He,lo=Vn,uo=Zn,so=Yn,fo=Jn,co=oo;function Pe(_){var I=this.__data__=new ao(_);this.size=I.size}Pe.prototype.clear=lo;Pe.prototype.delete=uo;Pe.prototype.get=so;Pe.prototype.has=fo;Pe.prototype.set=co;var ho=Pe,po="__lodash_hash_undefined__";function vo(_){return this.__data__.set(_,po),this}var yo=vo;function go(_){return this.__data__.has(_)}var mo=go,bo=Vt,_o=yo,Oo=mo;function Ce(_){var I=-1,b=_==null?0:_.length;for(this.__data__=new bo;++I<b;)this.add(_[I])}Ce.prototype.add=Ce.prototype.push=_o;Ce.prototype.has=Oo;var Eo=Ce;function xo(_,I){for(var b=-1,s=_==null?0:_.length;++b<s;)if(I(_[b],b,_))return!0;return!1}var Ao=xo;function wo(_,I){return _.has(I)}var To=wo,ko=Eo,No=Ao,So=To,jo=1,Po=2;function qo(_,I,b,s,d,k){var w=b&jo,O=_.length,p=I.length;if(O!=p&&!(w&&p>O))return!1;var v=k.get(_),h=k.get(I);if(v&&h)return v==I&&h==_;var o=-1,e=!0,t=b&Po?new ko:void 0;for(k.set(_,I),k.set(I,_);++o<O;){var u=_[o],a=I[o];if(s)var l=w?s(a,u,o,I,_,k):s(u,a,o,_,I,k);if(l!==void 0){if(l)continue;e=!1;break}if(t){if(!No(I,function(r,i){if(!So(t,i)&&(u===r||d(u,r,b,s,k)))return t.push(i)})){e=!1;break}}else if(!(u===a||d(u,a,b,s,k))){e=!1;break}}return k.delete(_),k.delete(I),e}var Wt=qo,Lo=_e,Ro=Lo.Uint8Array,Io=Ro;function Mo(_){var I=-1,b=Array(_.size);return _.forEach(function(s,d){b[++I]=[d,s]}),b}var Do=Mo;function Co(_){var I=-1,b=Array(_.size);return _.forEach(function(s){b[++I]=s}),b}var Bo=Co,mt=at,bt=Io,$o=Ft,Fo=Wt,Uo=Do,Ho=Bo,zo=1,Ko=2,Go="[object Boolean]",Vo="[object Date]",Wo="[object Error]",Zo="[object Map]",Qo="[object Number]",Yo="[object RegExp]",Xo="[object Set]",Jo="[object String]",ea="[object Symbol]",ta="[object ArrayBuffer]",na="[object DataView]",_t=mt?mt.prototype:void 0,Je=_t?_t.valueOf:void 0;function ra(_,I,b,s,d,k,w){switch(b){case na:if(_.byteLength!=I.byteLength||_.byteOffset!=I.byteOffset)return!1;_=_.buffer,I=I.buffer;case ta:return!(_.byteLength!=I.byteLength||!k(new bt(_),new bt(I)));case Go:case Vo:case Qo:return $o(+_,+I);case Wo:return _.name==I.name&&_.message==I.message;case Yo:case Jo:return _==I+"";case Zo:var O=Uo;case Xo:var p=s&zo;if(O||(O=Ho),_.size!=I.size&&!p)return!1;var v=w.get(_);if(v)return v==I;s|=Ko,w.set(_,I);var h=Fo(O(_),O(I),s,d,k,w);return w.delete(_),h;case ea:if(Je)return Je.call(_)==Je.call(I)}return!1}var ia=ra;function oa(_,I){for(var b=-1,s=I.length,d=_.length;++b<s;)_[d+b]=I[b];return _}var aa=oa,la=Array.isArray,ut=la,ua=aa,sa=ut;function fa(_,I,b){var s=I(_);return sa(_)?s:ua(s,b(_))}var ca=fa;function ha(_,I){for(var b=-1,s=_==null?0:_.length,d=0,k=[];++b<s;){var w=_[b];I(w,b,_)&&(k[d++]=w)}return k}var da=ha;function pa(){return[]}var va=pa,ya=da,ga=va,ma=Object.prototype,ba=ma.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,_a=Ot?function(_){return _==null?[]:(_=Object(_),ya(Ot(_),function(I){return ba.call(_,I)}))}:ga,Oa=_a;function Ea(_,I){for(var b=-1,s=Array(_);++b<_;)s[b]=I(b);return s}var xa=Ea;function Aa(_){return _!=null&&typeof _=="object"}var Ve=Aa,wa=ze,Ta=Ve,ka="[object Arguments]";function Na(_){return Ta(_)&&wa(_)==ka}var Sa=Na,Et=Sa,ja=Ve,Zt=Object.prototype,Pa=Zt.hasOwnProperty,qa=Zt.propertyIsEnumerable,La=Et(function(){return arguments}())?Et:function(_){return ja(_)&&Pa.call(_,"callee")&&!qa.call(_,"callee")},Ra=La,Be={exports:{}};function Ia(){return!1}var Ma=Ia;Be.exports;(function(_,I){var b=_e,s=Ma,d=I&&!I.nodeType&&I,k=d&&!0&&_&&!_.nodeType&&_,w=k&&k.exports===d,O=w?b.Buffer:void 0,p=O?O.isBuffer:void 0,v=p||s;_.exports=v})(Be,Be.exports);var Qt=Be.exports,Da=9007199254740991,Ca=/^(?:0|[1-9]\d*)$/;function Ba(_,I){var b=typeof _;return I=I??Da,!!I&&(b=="number"||b!="symbol"&&Ca.test(_))&&_>-1&&_%1==0&&_<I}var $a=Ba,Fa=9007199254740991;function Ua(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=Fa}var Yt=Ua,Ha=ze,za=Yt,Ka=Ve,Ga="[object Arguments]",Va="[object Array]",Wa="[object Boolean]",Za="[object Date]",Qa="[object Error]",Ya="[object Function]",Xa="[object Map]",Ja="[object Number]",el="[object Object]",tl="[object RegExp]",nl="[object Set]",rl="[object String]",il="[object WeakMap]",ol="[object ArrayBuffer]",al="[object DataView]",ll="[object Float32Array]",ul="[object Float64Array]",sl="[object Int8Array]",fl="[object Int16Array]",cl="[object Int32Array]",hl="[object Uint8Array]",dl="[object Uint8ClampedArray]",pl="[object Uint16Array]",vl="[object Uint32Array]",le={};le[ll]=le[ul]=le[sl]=le[fl]=le[cl]=le[hl]=le[dl]=le[pl]=le[vl]=!0;le[Ga]=le[Va]=le[ol]=le[Wa]=le[al]=le[Za]=le[Qa]=le[Ya]=le[Xa]=le[Ja]=le[el]=le[tl]=le[nl]=le[rl]=le[il]=!1;function yl(_){return Ka(_)&&za(_.length)&&!!le[Ha(_)]}var gl=yl;function ml(_){return function(I){return _(I)}}var bl=ml,$e={exports:{}};$e.exports;(function(_,I){var b=Ut,s=I&&!I.nodeType&&I,d=s&&!0&&_&&!_.nodeType&&_,k=d&&d.exports===s,w=k&&b.process,O=function(){try{var p=d&&d.require&&d.require("util").types;return p||w&&w.binding&&w.binding("util")}catch{}}();_.exports=O})($e,$e.exports);var _l=$e.exports,Ol=gl,El=bl,xt=_l,At=xt&&xt.isTypedArray,xl=At?El(At):Ol,Xt=xl,Al=xa,wl=Ra,Tl=ut,kl=Qt,Nl=$a,Sl=Xt,jl=Object.prototype,Pl=jl.hasOwnProperty;function ql(_,I){var b=Tl(_),s=!b&&wl(_),d=!b&&!s&&kl(_),k=!b&&!s&&!d&&Sl(_),w=b||s||d||k,O=w?Al(_.length,String):[],p=O.length;for(var v in _)(I||Pl.call(_,v))&&!(w&&(v=="length"||d&&(v=="offset"||v=="parent")||k&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||Nl(v,p)))&&O.push(v);return O}var Ll=ql,Rl=Object.prototype;function Il(_){var I=_&&_.constructor,b=typeof I=="function"&&I.prototype||Rl;return _===b}var Ml=Il;function Dl(_,I){return function(b){return _(I(b))}}var Cl=Dl,Bl=Cl,$l=Bl(Object.keys,Object),Fl=$l,Ul=Ml,Hl=Fl,zl=Object.prototype,Kl=zl.hasOwnProperty;function Gl(_){if(!Ul(_))return Hl(_);var I=[];for(var b in Object(_))Kl.call(_,b)&&b!="constructor"&&I.push(b);return I}var Vl=Gl,Wl=Kt,Zl=Yt;function Ql(_){return _!=null&&Zl(_.length)&&!Wl(_)}var Yl=Ql,Xl=Ll,Jl=Vl,eu=Yl;function tu(_){return eu(_)?Xl(_):Jl(_)}var nu=tu,ru=ca,iu=Oa,ou=nu;function au(_){return ru(_,ou,iu)}var lu=au,wt=lu,uu=1,su=Object.prototype,fu=su.hasOwnProperty;function cu(_,I,b,s,d,k){var w=b&uu,O=wt(_),p=O.length,v=wt(I),h=v.length;if(p!=h&&!w)return!1;for(var o=p;o--;){var e=O[o];if(!(w?e in I:fu.call(I,e)))return!1}var t=k.get(_),u=k.get(I);if(t&&u)return t==I&&u==_;var a=!0;k.set(_,I),k.set(I,_);for(var l=w;++o<p;){e=O[o];var r=_[e],i=I[e];if(s)var f=w?s(i,r,e,I,_,k):s(r,i,e,_,I,k);if(!(f===void 0?r===i||d(r,i,b,s,k):f)){a=!1;break}l||(l=e=="constructor")}if(a&&!l){var n=_.constructor,c=I.constructor;n!=c&&"constructor"in _&&"constructor"in I&&!(typeof n=="function"&&n instanceof n&&typeof c=="function"&&c instanceof c)&&(a=!1)}return k.delete(_),k.delete(I),a}var hu=cu,du=Ne,pu=_e,vu=du(pu,"DataView"),yu=vu,gu=Ne,mu=_e,bu=gu(mu,"Promise"),_u=bu,Ou=Ne,Eu=_e,xu=Ou(Eu,"Set"),Au=xu,wu=Ne,Tu=_e,ku=wu(Tu,"WeakMap"),Nu=ku,tt=yu,nt=lt,rt=_u,it=Au,ot=Nu,Jt=ze,qe=Gt,Tt="[object Map]",Su="[object Object]",kt="[object Promise]",Nt="[object Set]",St="[object WeakMap]",jt="[object DataView]",ju=qe(tt),Pu=qe(nt),qu=qe(rt),Lu=qe(it),Ru=qe(ot),Ee=Jt;(tt&&Ee(new tt(new ArrayBuffer(1)))!=jt||nt&&Ee(new nt)!=Tt||rt&&Ee(rt.resolve())!=kt||it&&Ee(new it)!=Nt||ot&&Ee(new ot)!=St)&&(Ee=function(_){var I=Jt(_),b=I==Su?_.constructor:void 0,s=b?qe(b):"";if(s)switch(s){case ju:return jt;case Pu:return Tt;case qu:return kt;case Lu:return Nt;case Ru:return St}return I});var Iu=Ee,et=ho,Mu=Wt,Du=ia,Cu=hu,Pt=Iu,qt=ut,Lt=Qt,Bu=Xt,$u=1,Rt="[object Arguments]",It="[object Array]",De="[object Object]",Fu=Object.prototype,Mt=Fu.hasOwnProperty;function Uu(_,I,b,s,d,k){var w=qt(_),O=qt(I),p=w?It:Pt(_),v=O?It:Pt(I);p=p==Rt?De:p,v=v==Rt?De:v;var h=p==De,o=v==De,e=p==v;if(e&&Lt(_)){if(!Lt(I))return!1;w=!0,h=!1}if(e&&!h)return k||(k=new et),w||Bu(_)?Mu(_,I,b,s,d,k):Du(_,I,p,b,s,d,k);if(!(b&$u)){var t=h&&Mt.call(_,"__wrapped__"),u=o&&Mt.call(I,"__wrapped__");if(t||u){var a=t?_.value():_,l=u?I.value():I;return k||(k=new et),d(a,l,b,s,k)}}return e?(k||(k=new et),Cu(_,I,b,s,d,k)):!1}var Hu=Uu,zu=Hu,Dt=Ve;function en(_,I,b,s,d){return _===I?!0:_==null||I==null||!Dt(_)&&!Dt(I)?_!==_&&I!==I:zu(_,I,b,s,en,d)}var Ku=en,Gu=Ku;function Vu(_,I){return Gu(_,I)}var Wu=Vu,tn={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(_,I){(function(s,d){_.exports=d()})(typeof self<"u"?self:ve,function(){return function(b){var s={};function d(k){if(s[k])return s[k].exports;var w=s[k]={i:k,l:!1,exports:{}};return b[k].call(w.exports,w,w.exports,d),w.l=!0,w.exports}return d.m=b,d.c=s,d.d=function(k,w,O){d.o(k,w)||Object.defineProperty(k,w,{configurable:!1,enumerable:!0,get:O})},d.n=function(k){var w=k&&k.__esModule?function(){return k.default}:function(){return k};return d.d(w,"a",w),w},d.o=function(k,w){return Object.prototype.hasOwnProperty.call(k,w)},d.p="",d(d.s=109)}([function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(17),w=d(18),O=d(19),p=d(45),v=d(46),h=d(47),o=d(48),e=d(49),t=d(12),u=d(32),a=d(33),l=d(31),r=d(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:k.default,Format:w.default,Leaf:O.default,Embed:o.default,Scroll:p.default,Block:h.default,Inline:v.default,Text:e.default,Attributor:{Attribute:t.default,Class:u.default,Style:a.default,Store:l.default}};s.default=i},function(b,s,d){var k=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])};return function(r,i){l(r,i);function f(){this.constructor=r}r.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=function(l){k(r,l);function r(i){var f=this;return i="[Parchment] "+i,f=l.call(this,i)||this,f.message=i,f.name=f.constructor.name,f}return r}(Error);s.ParchmentError=w;var O={},p={},v={},h={};s.DATA_KEY="__blot";var o;(function(l){l[l.TYPE=3]="TYPE",l[l.LEVEL=12]="LEVEL",l[l.ATTRIBUTE=13]="ATTRIBUTE",l[l.BLOT=14]="BLOT",l[l.INLINE=7]="INLINE",l[l.BLOCK=11]="BLOCK",l[l.BLOCK_BLOT=10]="BLOCK_BLOT",l[l.INLINE_BLOT=6]="INLINE_BLOT",l[l.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",l[l.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",l[l.ANY=15]="ANY"})(o=s.Scope||(s.Scope={}));function e(l,r){var i=u(l);if(i==null)throw new w("Unable to create "+l+" blot");var f=i,n=l instanceof Node||l.nodeType===Node.TEXT_NODE?l:f.create(r);return new f(n,r)}s.create=e;function t(l,r){return r===void 0&&(r=!1),l==null?null:l[s.DATA_KEY]!=null?l[s.DATA_KEY].blot:r?t(l.parentNode,r):null}s.find=t;function u(l,r){r===void 0&&(r=o.ANY);var i;if(typeof l=="string")i=h[l]||O[l];else if(l instanceof Text||l.nodeType===Node.TEXT_NODE)i=h.text;else if(typeof l=="number")l&o.LEVEL&o.BLOCK?i=h.block:l&o.LEVEL&o.INLINE&&(i=h.inline);else if(l instanceof HTMLElement){var f=(l.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=p[f[n]],i)break;i=i||v[l.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}s.query=u;function a(){for(var l=[],r=0;r<arguments.length;r++)l[r]=arguments[r];if(l.length>1)return l.map(function(n){return a(n)});var i=l[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new w("Invalid definition");if(i.blotName==="abstract")throw new w("Cannot register abstract class");if(h[i.blotName||i.attrName]=i,typeof i.keyName=="string")O[i.keyName]=i;else if(i.className!=null&&(p[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var f=Array.isArray(i.tagName)?i.tagName:[i.tagName];f.forEach(function(n){(v[n]==null||i.className==null)&&(v[n]=i)})}return i}s.register=a},function(b,s,d){var k=d(51),w=d(11),O=d(3),p=d(20),v="\0",h=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};h.prototype.insert=function(o,e){var t={};return o.length===0?this:(t.insert=o,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},h.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},h.prototype.retain=function(o,e){if(o<=0)return this;var t={retain:o};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},h.prototype.push=function(o){var e=this.ops.length,t=this.ops[e-1];if(o=O(!0,{},o),typeof t=="object"){if(typeof o.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+o.delete},this;if(typeof t.delete=="number"&&o.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(o),this;if(w(o.attributes,t.attributes)){if(typeof o.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+o.insert},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+o.retain},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},h.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},h.prototype.filter=function(o){return this.ops.filter(o)},h.prototype.forEach=function(o){this.ops.forEach(o)},h.prototype.map=function(o){return this.ops.map(o)},h.prototype.partition=function(o){var e=[],t=[];return this.forEach(function(u){var a=o(u)?e:t;a.push(u)}),[e,t]},h.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},h.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+p.length(e):e.delete?o-e.delete:o},0)},h.prototype.length=function(){return this.reduce(function(o,e){return o+p.length(e)},0)},h.prototype.slice=function(o,e){o=o||0,typeof e!="number"&&(e=1/0);for(var t=[],u=p.iterator(this.ops),a=0;a<e&&u.hasNext();){var l;a<o?l=u.next(o-a):(l=u.next(e-a),t.push(l)),a+=p.length(l)}return new h(t)},h.prototype.compose=function(o){var e=p.iterator(this.ops),t=p.iterator(o.ops),u=[],a=t.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){for(var l=a.retain;e.peekType()==="insert"&&e.peekLength()<=l;)l-=e.peekLength(),u.push(e.next());a.retain-l>0&&t.next(a.retain-l)}for(var r=new h(u);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")r.push(t.next());else if(e.peekType()==="delete")r.push(e.next());else{var i=Math.min(e.peekLength(),t.peekLength()),f=e.next(i),n=t.next(i);if(typeof n.retain=="number"){var c={};typeof f.retain=="number"?c.retain=i:c.insert=f.insert;var S=p.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(S&&(c.attributes=S),r.push(c),!t.hasNext()&&w(r.ops[r.ops.length-1],c)){var E=new h(e.rest());return r.concat(E).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},h.prototype.concat=function(o){var e=new h(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},h.prototype.diff=function(o,e){if(this.ops===o.ops)return new h;var t=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:v;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new h,a=k(t[0],t[1],e),l=p.iterator(this.ops),r=p.iterator(o.ops);return a.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case k.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case k.DELETE:n=Math.min(f,l.peekLength()),l.next(n),u.delete(n);break;case k.EQUAL:n=Math.min(l.peekLength(),r.peekLength(),f);var c=l.next(n),S=r.next(n);w(c.insert,S.insert)?u.retain(n,p.attributes.diff(c.attributes,S.attributes)):u.push(S).delete(n);break}f-=n}}),u.chop()},h.prototype.eachLine=function(o,e){e=e||`
`;for(var t=p.iterator(this.ops),u=new h,a=0;t.hasNext();){if(t.peekType()!=="insert")return;var l=t.peek(),r=p.length(l)-t.peekLength(),i=typeof l.insert=="string"?l.insert.indexOf(e,r)-r:-1;if(i<0)u.push(t.next());else if(i>0)u.push(t.next(i));else{if(o(u,t.next(1).attributes||{},a)===!1)return;a+=1,u=new h}}u.length()>0&&o(u,{},a)},h.prototype.transform=function(o,e){if(e=!!e,typeof o=="number")return this.transformPosition(o,e);for(var t=p.iterator(this.ops),u=p.iterator(o.ops),a=new h;t.hasNext()||u.hasNext();)if(t.peekType()==="insert"&&(e||u.peekType()!=="insert"))a.retain(p.length(t.next()));else if(u.peekType()==="insert")a.push(u.next());else{var l=Math.min(t.peekLength(),u.peekLength()),r=t.next(l),i=u.next(l);if(r.delete)continue;i.delete?a.push(i):a.retain(l,p.attributes.transform(r.attributes,i.attributes,e))}return a.chop()},h.prototype.transformPosition=function(o,e){e=!!e;for(var t=p.iterator(this.ops),u=0;t.hasNext()&&u<=o;){var a=t.peekLength(),l=t.peekType();if(t.next(),l==="delete"){o-=Math.min(a,o-u);continue}else l==="insert"&&(u<o||!e)&&(o+=a);u+=a}return o},b.exports=h},function(b,s){var d=Object.prototype.hasOwnProperty,k=Object.prototype.toString,w=Object.defineProperty,O=Object.getOwnPropertyDescriptor,p=function(t){return typeof Array.isArray=="function"?Array.isArray(t):k.call(t)==="[object Array]"},v=function(t){if(!t||k.call(t)!=="[object Object]")return!1;var u=d.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&d.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!u&&!a)return!1;var l;for(l in t);return typeof l>"u"||d.call(t,l)},h=function(t,u){w&&u.name==="__proto__"?w(t,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):t[u.name]=u.newValue},o=function(t,u){if(u==="__proto__")if(d.call(t,u)){if(O)return O(t,u).value}else return;return t[u]};b.exports=function e(){var t,u,a,l,r,i,f=arguments[0],n=1,c=arguments.length,S=!1;for(typeof f=="boolean"&&(S=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<c;++n)if(t=arguments[n],t!=null)for(u in t)a=o(f,u),l=o(t,u),f!==l&&(S&&l&&(v(l)||(r=p(l)))?(r?(r=!1,i=a&&p(a)?a:[]):i=a&&v(a)?a:{},h(f,{name:u,newValue:e(S,i,l)})):typeof l<"u"&&h(f,{name:u,newValue:l}));return f}},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BlockEmbed=s.bubbleFormats=void 0;var k=function(){function y(g,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(g,D.key,D)}}return function(g,N,L){return N&&y(g.prototype,N),L&&y(g,L),g}}(),w=function y(g,N,L){g===null&&(g=Function.prototype);var D=Object.getOwnPropertyDescriptor(g,N);if(D===void 0){var U=Object.getPrototypeOf(g);return U===null?void 0:y(U,N,L)}else{if("value"in D)return D.value;var F=D.get;return F===void 0?void 0:F.call(L)}},O=d(3),p=f(O),v=d(2),h=f(v),o=d(0),e=f(o),t=d(16),u=f(t),a=d(6),l=f(a),r=d(7),i=f(r);function f(y){return y&&y.__esModule?y:{default:y}}function n(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function c(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function S(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var E=1,x=function(y){S(g,y);function g(){return n(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return k(g,[{key:"attach",value:function(){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new h.default().insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,D){var U=e.default.query(L,e.default.Scope.BLOCK_ATTRIBUTE);U!=null&&this.attributes.attribute(U,D)}},{key:"formatAt",value:function(L,D,U,F){this.format(U,F)}},{key:"insertAt",value:function(L,D,U){if(typeof D=="string"&&D.endsWith(`
`)){var F=e.default.create(P.blotName);this.parent.insertBefore(F,L===0?this:this.next),F.insertAt(0,D.slice(0,-1))}else w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,L,D,U)}}]),g}(e.default.Embed);x.scope=e.default.Scope.BLOCK_BLOT;var P=function(y){S(g,y);function g(N){n(this,g);var L=c(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,N));return L.cache={},L}return k(g,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(L,D){return D.length()===0?L:L.insert(D.value(),m(D))},new h.default).insert(`
`,m(this))),this.cache.delta}},{key:"deleteAt",value:function(L,D){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"deleteAt",this).call(this,L,D),this.cache={}}},{key:"formatAt",value:function(L,D,U,F){D<=0||(e.default.query(U,e.default.Scope.BLOCK)?L+D===this.length()&&this.format(U,F):w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,L,Math.min(D,this.length()-L-1),U,F),this.cache={})}},{key:"insertAt",value:function(L,D,U){if(U!=null)return w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,L,D,U);if(D.length!==0){var F=D.split(`
`),Z=F.shift();Z.length>0&&(L<this.length()-1||this.children.tail==null?w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var B=this;F.reduce(function(C,T){return B=B.split(C,!0),B.insertAt(0,T),T.length},L+Z.length)}}},{key:"insertBefore",value:function(L,D){var U=this.children.head;w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,L,D),U instanceof u.default&&U.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(L,D){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"moveChildren",this).call(this,L,D),this.cache={}}},{key:"optimize",value:function(L){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(L===0||L>=this.length()-E)){var U=this.clone();return L===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{var F=w(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"split",this).call(this,L,D);return this.cache={},F}}}]),g}(e.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[l.default,e.default.Embed,i.default];function m(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return y==null||(typeof y.formats=="function"&&(g=(0,p.default)(g,y.formats())),y.parent==null||y.parent.blotName=="scroll"||y.parent.statics.scope!==y.statics.scope)?g:m(y.parent,g)}s.bubbleFormats=m,s.BlockEmbed=x,s.default=P},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.overload=s.expandConfig=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},w=function(){function B(C,T){var q=[],j=!0,R=!1,M=void 0;try{for(var A=C[Symbol.iterator](),$;!(j=($=A.next()).done)&&(q.push($.value),!(T&&q.length===T));j=!0);}catch(H){R=!0,M=H}finally{try{!j&&A.return&&A.return()}finally{if(R)throw M}}return q}return function(C,T){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return B(C,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function B(C,T){for(var q=0;q<T.length;q++){var j=T[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(C,j.key,j)}}return function(C,T,q){return T&&B(C.prototype,T),q&&B(C,q),C}}();d(50);var p=d(2),v=m(p),h=d(14),o=m(h),e=d(8),t=m(e),u=d(9),a=m(u),l=d(0),r=m(l),i=d(15),f=m(i),n=d(3),c=m(n),S=d(10),E=m(S),x=d(34),P=m(x);function m(B){return B&&B.__esModule?B:{default:B}}function y(B,C,T){return C in B?Object.defineProperty(B,C,{value:T,enumerable:!0,configurable:!0,writable:!0}):B[C]=T,B}function g(B,C){if(!(B instanceof C))throw new TypeError("Cannot call a class as a function")}var N=(0,E.default)("quill"),L=function(){O(B,null,[{key:"debug",value:function(T){T===!0&&(T="log"),E.default.level(T)}},{key:"find",value:function(T){return T.__quill||r.default.find(T)}},{key:"import",value:function(T){return this.imports[T]==null&&N.error("Cannot import "+T+". Are you sure it was registered?"),this.imports[T]}},{key:"register",value:function(T,q){var j=this,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof T!="string"){var M=T.attrName||T.blotName;typeof M=="string"?this.register("formats/"+M,T,q):Object.keys(T).forEach(function(A){j.register(A,T[A],q)})}else this.imports[T]!=null&&!R&&N.warn("Overwriting "+T+" with",q),this.imports[T]=q,(T.startsWith("blots/")||T.startsWith("formats/"))&&q.blotName!=="abstract"?r.default.register(q):T.startsWith("modules")&&typeof q.register=="function"&&q.register()}}]);function B(C){var T=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g(this,B),this.options=D(C,q),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",C);this.options.debug&&B.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 t.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.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(t.default.events.EDITOR_CHANGE,function(M){M===t.default.events.TEXT_CHANGE&&T.root.classList.toggle("ql-blank",T.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(M,A){var $=T.selection.lastRange,H=$&&$.length===0?$.index:void 0;U.call(T,function(){return T.editor.update(null,A,H)},M)});var R=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(R),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(B,[{key:"addContainer",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof T=="string"){var j=T;T=document.createElement("div"),T.classList.add(j)}return this.container.insertBefore(T,q),T}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(T,q,j){var R=this,M=F(T,q,j),A=w(M,4);return T=A[0],q=A[1],j=A[3],U.call(this,function(){return R.editor.deleteText(T,q)},j,T,-1*q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(T),this.container.classList.toggle("ql-disabled",!T)}},{key:"focus",value:function(){var T=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=T,this.scrollIntoView()}},{key:"format",value:function(T,q){var j=this,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return U.call(this,function(){var M=j.getSelection(!0),A=new v.default;if(M==null)return A;if(r.default.query(T,r.default.Scope.BLOCK))A=j.editor.formatLine(M.index,M.length,y({},T,q));else{if(M.length===0)return j.selection.format(T,q),A;A=j.editor.formatText(M.index,M.length,y({},T,q))}return j.setSelection(M,t.default.sources.SILENT),A},R)}},{key:"formatLine",value:function(T,q,j,R,M){var A=this,$=void 0,H=F(T,q,j,R,M),z=w(H,4);return T=z[0],q=z[1],$=z[2],M=z[3],U.call(this,function(){return A.editor.formatLine(T,q,$)},M,T,0)}},{key:"formatText",value:function(T,q,j,R,M){var A=this,$=void 0,H=F(T,q,j,R,M),z=w(H,4);return T=z[0],q=z[1],$=z[2],M=z[3],U.call(this,function(){return A.editor.formatText(T,q,$)},M,T,0)}},{key:"getBounds",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof T=="number"?j=this.selection.getBounds(T,q):j=this.selection.getBounds(T.index,T.length);var R=this.container.getBoundingClientRect();return{bottom:j.bottom-R.top,height:j.height,left:j.left-R.left,right:j.right-R.left,top:j.top-R.top,width:j.width}}},{key:"getContents",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,j=F(T,q),R=w(j,2);return T=R[0],q=R[1],this.editor.getContents(T,q)}},{key:"getFormat",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof T=="number"?this.editor.getFormat(T,q):this.editor.getFormat(T.index,T.length)}},{key:"getIndex",value:function(T){return T.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(T){return this.scroll.leaf(T)}},{key:"getLine",value:function(T){return this.scroll.line(T)}},{key:"getLines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof T!="number"?this.scroll.lines(T.index,T.length):this.scroll.lines(T,q)}},{key:"getModule",value:function(T){return this.theme.modules[T]}},{key:"getSelection",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return T&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,j=F(T,q),R=w(j,2);return T=R[0],q=R[1],this.editor.getText(T,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(T,q,j){var R=this,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:B.sources.API;return U.call(this,function(){return R.editor.insertEmbed(T,q,j)},M,T)}},{key:"insertText",value:function(T,q,j,R,M){var A=this,$=void 0,H=F(T,0,j,R,M),z=w(H,4);return T=z[0],$=z[2],M=z[3],U.call(this,function(){return A.editor.insertText(T,q,$)},M,T,q.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(T,q,j){this.clipboard.dangerouslyPasteHTML(T,q,j)}},{key:"removeFormat",value:function(T,q,j){var R=this,M=F(T,q,j),A=w(M,4);return T=A[0],q=A[1],j=A[3],U.call(this,function(){return R.editor.removeFormat(T,q)},j,T)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(T){var q=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return U.call(this,function(){T=new v.default(T);var R=q.getLength(),M=q.editor.deleteText(0,R),A=q.editor.applyDelta(T),$=A.ops[A.ops.length-1];$!=null&&typeof $.insert=="string"&&$.insert[$.insert.length-1]===`
`&&(q.editor.deleteText(q.getLength()-1,1),A.delete(1));var H=M.compose(A);return H},j)}},{key:"setSelection",value:function(T,q,j){if(T==null)this.selection.setRange(null,q||B.sources.API);else{var R=F(T,q,j),M=w(R,4);T=M[0],q=M[1],j=M[3],this.selection.setRange(new i.Range(T,q),j),j!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,j=new v.default().insert(T);return this.setContents(j,q)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,q=this.scroll.update(T);return this.selection.update(T),q}},{key:"updateContents",value:function(T){var q=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return U.call(this,function(){return T=new v.default(T),q.editor.applyDelta(T,j)},j,!0)}}]),B}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=t.default.events,L.sources=t.default.sources,L.version="1.3.7",L.imports={delta:v.default,parchment:r.default,"core/module":a.default,"core/theme":P.default};function D(B,C){if(C=(0,c.default)(!0,{container:B,modules:{clipboard:!0,keyboard:!0,history:!0}},C),!C.theme||C.theme===L.DEFAULTS.theme)C.theme=P.default;else if(C.theme=L.import("themes/"+C.theme),C.theme==null)throw new Error("Invalid theme "+C.theme+". Did you register it?");var T=(0,c.default)(!0,{},C.theme.DEFAULTS);[T,C].forEach(function(R){R.modules=R.modules||{},Object.keys(R.modules).forEach(function(M){R.modules[M]===!0&&(R.modules[M]={})})});var q=Object.keys(T.modules).concat(Object.keys(C.modules)),j=q.reduce(function(R,M){var A=L.import("modules/"+M);return A==null?N.error("Cannot load "+M+" module. Are you sure you registered it?"):R[M]=A.DEFAULTS||{},R},{});return C.modules!=null&&C.modules.toolbar&&C.modules.toolbar.constructor!==Object&&(C.modules.toolbar={container:C.modules.toolbar}),C=(0,c.default)(!0,{},L.DEFAULTS,{modules:j},T,C),["bounds","container","scrollingContainer"].forEach(function(R){typeof C[R]=="string"&&(C[R]=document.querySelector(C[R]))}),C.modules=Object.keys(C.modules).reduce(function(R,M){return C.modules[M]&&(R[M]=C.modules[M]),R},{}),C}function U(B,C,T,q){if(this.options.strict&&!this.isEnabled()&&C===t.default.sources.USER)return new v.default;var j=T==null?null:this.getSelection(),R=this.editor.delta,M=B();if(j!=null&&(T===!0&&(T=j.index),q==null?j=Z(j,M,C):q!==0&&(j=Z(j,T,q,C)),this.setSelection(j,t.default.sources.SILENT)),M.length()>0){var A,$=[t.default.events.TEXT_CHANGE,M,R,C];if((A=this.emitter).emit.apply(A,[t.default.events.EDITOR_CHANGE].concat($)),C!==t.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,$)}}return M}function F(B,C,T,q,j){var R={};return typeof B.index=="number"&&typeof B.length=="number"?typeof C!="number"?(j=q,q=T,T=C,C=B.length,B=B.index):(C=B.length,B=B.index):typeof C!="number"&&(j=q,q=T,T=C,C=0),(typeof T>"u"?"undefined":k(T))==="object"?(R=T,j=q):typeof T=="string"&&(q!=null?R[T]=q:j=T),j=j||t.default.sources.API,[B,C,R,j]}function Z(B,C,T,q){if(B==null)return null;var j=void 0,R=void 0;if(C instanceof v.default){var M=[B.index,B.index+B.length].map(function(z){return C.transformPosition(z,q!==t.default.sources.USER)}),A=w(M,2);j=A[0],R=A[1]}else{var $=[B.index,B.index+B.length].map(function(z){return z<C||z===C&&q===t.default.sources.USER?z:T>=0?z+T:Math.max(C,z+T)}),H=w($,2);j=H[0],R=H[1]}return new i.Range(j,R-j)}s.expandConfig=D,s.overload=F,s.default=L},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(7),p=o(O),v=d(0),h=o(v);function o(l){return l&&l.__esModule?l:{default:l}}function e(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function t(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function u(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var a=function(l){u(r,l);function r(){return e(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"formatAt",value:function(f,n,c,S){if(r.compare(this.statics.blotName,c)<0&&h.default.query(c,h.default.Scope.BLOT)){var E=this.isolate(f,n);S&&E.wrap(c,S)}else w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,c,S)}},{key:"optimize",value:function(f){if(w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var c=r.order.indexOf(f),S=r.order.indexOf(n);return c>=0||S>=0?c-S:f===n?0:f<n?-1:1}}]),r}(h.default.Inline);a.allowedChildren=[a,h.default.Embed,p.default],a.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],s.default=a},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(0),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default.Text);s.default=o},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function i(f,n){for(var c=0;c<n.length;c++){var S=n[c];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(f,S.key,S)}}return function(f,n,c){return n&&i(f.prototype,n),c&&i(f,c),f}}(),w=function i(f,n,c){f===null&&(f=Function.prototype);var S=Object.getOwnPropertyDescriptor(f,n);if(S===void 0){var E=Object.getPrototypeOf(f);return E===null?void 0:i(E,n,c)}else{if("value"in S)return S.value;var x=S.get;return x===void 0?void 0:x.call(c)}},O=d(54),p=o(O),v=d(10),h=o(v);function o(i){return i&&i.__esModule?i:{default:i}}function e(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function t(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:i}function u(i,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}var a=(0,h.default)("quill:events"),l=["selectionchange","mousedown","mouseup","click"];l.forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),c=0;c<f;c++)n[c]=arguments[c];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var E;(E=S.__quill.emitter).handleDOM.apply(E,n)}})})});var r=function(i){u(f,i);function f(){e(this,f);var n=t(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",a.error),n}return k(f,[{key:"emit",value:function(){a.log.apply(a,arguments),w(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(c){for(var S=arguments.length,E=Array(S>1?S-1:0),x=1;x<S;x++)E[x-1]=arguments[x];(this.listeners[c.type]||[]).forEach(function(P){var m=P.node,y=P.handler;(c.target===m||m.contains(c.target))&&y.apply(void 0,[c].concat(E))})}},{key:"listenDOM",value:function(c,S,E){this.listeners[c]||(this.listeners[c]=[]),this.listeners[c].push({node:S,handler:E})}}]),f}(p.default);r.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"},r.sources={API:"api",SILENT:"silent",USER:"user"},s.default=r},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});function k(O,p){if(!(O instanceof p))throw new TypeError("Cannot call a class as a function")}var w=function O(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};k(this,O),this.quill=p,this.options=v};w.DEFAULTS={},s.default=w},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=["error","warn","log","info"],w="warn";function O(v){if(k.indexOf(v)<=k.indexOf(w)){for(var h,o=arguments.length,e=Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];(h=console)[v].apply(h,e)}}function p(v){return k.reduce(function(h,o){return h[o]=O.bind(console,o,v),h},{})}O.level=p.level=function(v){w=v},s.default=p},function(b,s,d){var k=Array.prototype.slice,w=d(52),O=d(53),p=b.exports=function(e,t,u){return u||(u={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?u.strict?e===t:e==t:o(e,t,u)};function v(e){return e==null}function h(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function o(e,t,u){var a,l;if(v(e)||v(t)||e.prototype!==t.prototype)return!1;if(O(e))return O(t)?(e=k.call(e),t=k.call(t),p(e,t,u)):!1;if(h(e)){if(!h(t)||e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}try{var r=w(e),i=w(t)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),a=r.length-1;a>=0;a--)if(r[a]!=i[a])return!1;for(a=r.length-1;a>=0;a--)if(l=r[a],!p(e[l],t[l],u))return!1;return typeof e==typeof t}},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(1),w=function(){function O(p,v,h){h===void 0&&(h={}),this.attrName=p,this.keyName=v;var o=k.Scope.TYPE&k.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&k.Scope.LEVEL|o:this.scope=k.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return O.keys=function(p){return[].map.call(p.attributes,function(v){return v.name})},O.prototype.add=function(p,v){return this.canAdd(p,v)?(p.setAttribute(this.keyName,v),!0):!1},O.prototype.canAdd=function(p,v){var h=k.query(p,k.Scope.BLOT&(this.scope|k.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},O.prototype.remove=function(p){p.removeAttribute(this.keyName)},O.prototype.value=function(p){var v=p.getAttribute(this.keyName);return this.canAdd(p,v)&&v?v:""},O}();s.default=w},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Code=void 0;var k=function(){function x(P,m){var y=[],g=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),U;!(g=(U=D.next()).done)&&(y.push(U.value),!(m&&y.length===m));g=!0);}catch(F){N=!0,L=F}finally{try{!g&&D.return&&D.return()}finally{if(N)throw L}}return y}return function(P,m){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return x(P,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function x(P,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(P,g.key,g)}}return function(P,m,y){return m&&x(P.prototype,m),y&&x(P,y),P}}(),O=function x(P,m,y){P===null&&(P=Function.prototype);var g=Object.getOwnPropertyDescriptor(P,m);if(g===void 0){var N=Object.getPrototypeOf(P);return N===null?void 0:x(N,m,y)}else{if("value"in g)return g.value;var L=g.get;return L===void 0?void 0:L.call(y)}},p=d(2),v=i(p),h=d(0),o=i(h),e=d(4),t=i(e),u=d(6),a=i(u),l=d(7),r=i(l);function i(x){return x&&x.__esModule?x:{default:x}}function f(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}function n(x,P){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:x}function c(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);x.prototype=Object.create(P&&P.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(x,P):x.__proto__=P)}var S=function(x){c(P,x);function P(){return f(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P}(a.default);S.blotName="code",S.tagName="CODE";var E=function(x){c(P,x);function P(){return f(this,P),n(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return w(P,[{key:"delta",value:function(){var y=this,g=this.domNode.textContent;return g.endsWith(`
`)&&(g=g.slice(0,-1)),g.split(`
`).reduce(function(N,L){return N.insert(L).insert(`
`,y.formats())},new v.default)}},{key:"format",value:function(y,g){if(!(y===this.statics.blotName&&g)){var N=this.descendant(r.default,this.length()-1),L=k(N,1),D=L[0];D!=null&&D.deleteAt(D.length()-1,1),O(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"format",this).call(this,y,g)}}},{key:"formatAt",value:function(y,g,N,L){if(g!==0&&!(o.default.query(N,o.default.Scope.BLOCK)==null||N===this.statics.blotName&&L===this.statics.formats(this.domNode))){var D=this.newlineIndex(y);if(!(D<0||D>=y+g)){var U=this.newlineIndex(y,!0)+1,F=D-U+1,Z=this.isolate(U,F),B=Z.next;Z.format(N,L),B instanceof P&&B.formatAt(0,y-U+g-F,N,L)}}}},{key:"insertAt",value:function(y,g,N){if(N==null){var L=this.descendant(r.default,y),D=k(L,2),U=D[0],F=D[1];U.insertAt(F,g)}}},{key:"length",value:function(){var y=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?y:y+1}},{key:"newlineIndex",value:function(y){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(g)return this.domNode.textContent.slice(0,y).lastIndexOf(`
`);var N=this.domNode.textContent.slice(y).indexOf(`
`);return N>-1?y+N:-1}},{key:"optimize",value:function(y){this.domNode.textContent.endsWith(`
`)||this.appendChild(o.default.create("text",`
`)),O(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,y);var g=this.next;g!=null&&g.prev===this&&g.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===g.statics.formats(g.domNode)&&(g.optimize(y),g.moveChildren(this),g.remove())}},{key:"replace",value:function(y){O(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"replace",this).call(this,y),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(g){var N=o.default.find(g);N==null?g.parentNode.removeChild(g):N instanceof o.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(y){var g=O(P.__proto__||Object.getPrototypeOf(P),"create",this).call(this,y);return g.setAttribute("spellcheck",!1),g}},{key:"formats",value:function(){return!0}}]),P}(t.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",s.Code=S,s.default=E},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},w=function(){function B(C,T){var q=[],j=!0,R=!1,M=void 0;try{for(var A=C[Symbol.iterator](),$;!(j=($=A.next()).done)&&(q.push($.value),!(T&&q.length===T));j=!0);}catch(H){R=!0,M=H}finally{try{!j&&A.return&&A.return()}finally{if(R)throw M}}return q}return function(C,T){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return B(C,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function B(C,T){for(var q=0;q<T.length;q++){var j=T[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(C,j.key,j)}}return function(C,T,q){return T&&B(C.prototype,T),q&&B(C,q),C}}(),p=d(2),v=g(p),h=d(20),o=g(h),e=d(0),t=g(e),u=d(13),a=g(u),l=d(24),r=g(l),i=d(4),f=g(i),n=d(16),c=g(n),S=d(21),E=g(S),x=d(11),P=g(x),m=d(3),y=g(m);function g(B){return B&&B.__esModule?B:{default:B}}function N(B,C,T){return C in B?Object.defineProperty(B,C,{value:T,enumerable:!0,configurable:!0,writable:!0}):B[C]=T,B}function L(B,C){if(!(B instanceof C))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,U=function(){function B(C){L(this,B),this.scroll=C,this.delta=this.getDelta()}return O(B,[{key:"applyDelta",value:function(T){var q=this,j=!1;this.scroll.update();var R=this.scroll.length();return this.scroll.batchStart(),T=Z(T),T.reduce(function(M,A){var $=A.retain||A.delete||A.insert.length||1,H=A.attributes||{};if(A.insert!=null){if(typeof A.insert=="string"){var z=A.insert;z.endsWith(`
`)&&j&&(j=!1,z=z.slice(0,-1)),M>=R&&!z.endsWith(`
`)&&(j=!0),q.scroll.insertAt(M,z);var W=q.scroll.line(M),X=w(W,2),ee=X[0],te=X[1],oe=(0,y.default)({},(0,i.bubbleFormats)(ee));if(ee instanceof f.default){var ae=ee.descendant(t.default.Leaf,te),pe=w(ae,1),ce=pe[0];oe=(0,y.default)(oe,(0,i.bubbleFormats)(ce))}H=o.default.attributes.diff(oe,H)||{}}else if(k(A.insert)==="object"){var G=Object.keys(A.insert)[0];if(G==null)return M;q.scroll.insertAt(M,G,A.insert[G])}R+=$}return Object.keys(H).forEach(function(V){q.scroll.formatAt(M,$,V,H[V])}),M+$},0),T.reduce(function(M,A){return typeof A.delete=="number"?(q.scroll.deleteAt(M,A.delete),M):M+(A.retain||A.insert.length||1)},0),this.scroll.batchEnd(),this.update(T)}},{key:"deleteText",value:function(T,q){return this.scroll.deleteAt(T,q),this.update(new v.default().retain(T).delete(q))}},{key:"formatLine",value:function(T,q){var j=this,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(R).forEach(function(M){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[M])){var A=j.scroll.lines(T,Math.max(q,1)),$=q;A.forEach(function(H){var z=H.length();if(!(H instanceof a.default))H.format(M,R[M]);else{var W=T-H.offset(j.scroll),X=H.newlineIndex(W+$)-W+1;H.formatAt(W,X,M,R[M])}$-=z})}}),this.scroll.optimize(),this.update(new v.default().retain(T).retain(q,(0,E.default)(R)))}},{key:"formatText",value:function(T,q){var j=this,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(R).forEach(function(M){j.scroll.formatAt(T,q,M,R[M])}),this.update(new v.default().retain(T).retain(q,(0,E.default)(R)))}},{key:"getContents",value:function(T,q){return this.delta.slice(T,T+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(T,q){return T.concat(q.delta())},new v.default)}},{key:"getFormat",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],R=[];q===0?this.scroll.path(T).forEach(function(A){var $=w(A,1),H=$[0];H instanceof f.default?j.push(H):H instanceof t.default.Leaf&&R.push(H)}):(j=this.scroll.lines(T,q),R=this.scroll.descendants(t.default.Leaf,T,q));var M=[j,R].map(function(A){if(A.length===0)return{};for(var $=(0,i.bubbleFormats)(A.shift());Object.keys($).length>0;){var H=A.shift();if(H==null)return $;$=F((0,i.bubbleFormats)(H),$)}return $});return y.default.apply(y.default,M)}},{key:"getText",value:function(T,q){return this.getContents(T,q).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(T,q,j){return this.scroll.insertAt(T,q,j),this.update(new v.default().retain(T).insert(N({},q,j)))}},{key:"insertText",value:function(T,q){var j=this,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(T,q),Object.keys(R).forEach(function(M){j.scroll.formatAt(T,q.length,M,R[M])}),this.update(new v.default().retain(T).insert(q,(0,E.default)(R)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var T=this.scroll.children.head;return T.statics.blotName!==f.default.blotName||T.children.length>1?!1:T.children.head instanceof c.default}},{key:"removeFormat",value:function(T,q){var j=this.getText(T,q),R=this.scroll.line(T+q),M=w(R,2),A=M[0],$=M[1],H=0,z=new v.default;A!=null&&(A instanceof a.default?H=A.newlineIndex($)-$+1:H=A.length()-$,z=A.delta().slice($,$+H-1).insert(`
`));var W=this.getContents(T,q+H),X=W.diff(new v.default().insert(j).concat(z)),ee=new v.default().retain(T).concat(X);return this.applyDelta(ee)}},{key:"update",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,R=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(D)&&t.default.find(q[0].target)){var M=t.default.find(q[0].target),A=(0,i.bubbleFormats)(M),$=M.offset(this.scroll),H=q[0].oldValue.replace(r.default.CONTENTS,""),z=new v.default().insert(H),W=new v.default().insert(M.value()),X=new v.default().retain($).concat(z.diff(W,j));T=X.reduce(function(ee,te){return te.insert?ee.insert(te.insert,A):ee.push(te)},new v.default),this.delta=R.compose(T)}else this.delta=this.getDelta(),(!T||!(0,P.default)(R.compose(T),this.delta))&&(T=R.diff(this.delta,j));return T}}]),B}();function F(B,C){return Object.keys(C).reduce(function(T,q){return B[q]==null||(C[q]===B[q]?T[q]=C[q]:Array.isArray(C[q])?C[q].indexOf(B[q])<0&&(T[q]=C[q].concat([B[q]])):T[q]=[C[q],B[q]]),T},{})}function Z(B){return B.reduce(function(C,T){if(T.insert===1){var q=(0,E.default)(T.attributes);return delete q.image,C.insert({image:T.attributes.image},q)}if(T.attributes!=null&&(T.attributes.list===!0||T.attributes.bullet===!0)&&(T=(0,E.default)(T),T.attributes.list?T.attributes.list="ordered":(T.attributes.list="bullet",delete T.attributes.bullet)),typeof T.insert=="string"){var j=T.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return C.insert(j,T.attributes)}return C.push(T)},new v.default)}s.default=U},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Range=void 0;var k=function(){function x(P,m){var y=[],g=!0,N=!1,L=void 0;try{for(var D=P[Symbol.iterator](),U;!(g=(U=D.next()).done)&&(y.push(U.value),!(m&&y.length===m));g=!0);}catch(F){N=!0,L=F}finally{try{!g&&D.return&&D.return()}finally{if(N)throw L}}return y}return function(P,m){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return x(P,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function x(P,m){for(var y=0;y<m.length;y++){var g=m[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(P,g.key,g)}}return function(P,m,y){return m&&x(P.prototype,m),y&&x(P,y),P}}(),O=d(0),p=r(O),v=d(21),h=r(v),o=d(11),e=r(o),t=d(8),u=r(t),a=d(10),l=r(a);function r(x){return x&&x.__esModule?x:{default:x}}function i(x){if(Array.isArray(x)){for(var P=0,m=Array(x.length);P<x.length;P++)m[P]=x[P];return m}else return Array.from(x)}function f(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}var n=(0,l.default)("quill:selection"),c=function x(P){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,x),this.index=P,this.length=m},S=function(){function x(P,m){var y=this;f(this,x),this.emitter=m,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new c(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){y.mouseDown||setTimeout(y.update.bind(y,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(g,N){g===u.default.events.TEXT_CHANGE&&N.length()>0&&y.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(y.hasFocus()){var g=y.getNativeRange();g!=null&&g.start.node!==y.cursor.textNode&&y.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{y.setNativeRange(g.start.node,g.start.offset,g.end.node,g.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(g,N){if(N.range){var L=N.range,D=L.startNode,U=L.startOffset,F=L.endNode,Z=L.endOffset;y.setNativeRange(D,U,F,Z)}}),this.update(u.default.sources.SILENT)}return w(x,[{key:"handleComposition",value:function(){var m=this;this.root.addEventListener("compositionstart",function(){m.composing=!0}),this.root.addEventListener("compositionend",function(){if(m.composing=!1,m.cursor.parent){var y=m.cursor.restore();if(!y)return;setTimeout(function(){m.setNativeRange(y.startNode,y.startOffset,y.endNode,y.endOffset)},1)}})}},{key:"handleDragging",value:function(){var m=this;this.emitter.listenDOM("mousedown",document.body,function(){m.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){m.mouseDown=!1,m.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(m,y){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[m])){this.scroll.update();var g=this.getNativeRange();if(!(g==null||!g.native.collapsed||p.default.query(m,p.default.Scope.BLOCK))){if(g.start.node!==this.cursor.textNode){var N=p.default.find(g.start.node,!1);if(N==null)return;if(N instanceof p.default.Leaf){var L=N.split(g.start.offset);N.parent.insertBefore(this.cursor,L)}else N.insertBefore(this.cursor,g.start.node);this.cursor.attach()}this.cursor.format(m,y),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(m){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=this.scroll.length();m=Math.min(m,g-1),y=Math.min(m+y,g-1)-m;var N=void 0,L=this.scroll.leaf(m),D=k(L,2),U=D[0],F=D[1];if(U==null)return null;var Z=U.position(F,!0),B=k(Z,2);N=B[0],F=B[1];var C=document.createRange();if(y>0){C.setStart(N,F);var T=this.scroll.leaf(m+y),q=k(T,2);if(U=q[0],F=q[1],U==null)return null;var j=U.position(F,!0),R=k(j,2);return N=R[0],F=R[1],C.setEnd(N,F),C.getBoundingClientRect()}else{var M="left",A=void 0;return N instanceof Text?(F<N.data.length?(C.setStart(N,F),C.setEnd(N,F+1)):(C.setStart(N,F-1),C.setEnd(N,F),M="right"),A=C.getBoundingClientRect()):(A=U.domNode.getBoundingClientRect(),F>0&&(M="right")),{bottom:A.top+A.height,height:A.height,left:A[M],right:A[M],top:A.top,width:0}}}},{key:"getNativeRange",value:function(){var m=document.getSelection();if(m==null||m.rangeCount<=0)return null;var y=m.getRangeAt(0);if(y==null)return null;var g=this.normalizeNative(y);return n.info("getNativeRange",g),g}},{key:"getRange",value:function(){var m=this.getNativeRange();if(m==null)return[null,null];var y=this.normalizedToRange(m);return[y,m]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(m){var y=this,g=[[m.start.node,m.start.offset]];m.native.collapsed||g.push([m.end.node,m.end.offset]);var N=g.map(function(U){var F=k(U,2),Z=F[0],B=F[1],C=p.default.find(Z,!0),T=C.offset(y.scroll);return B===0?T:C instanceof p.default.Container?T+C.length():T+C.index(Z,B)}),L=Math.min(Math.max.apply(Math,i(N)),this.scroll.length()-1),D=Math.min.apply(Math,[L].concat(i(N)));return new c(D,L-D)}},{key:"normalizeNative",value:function(m){if(!E(this.root,m.startContainer)||!m.collapsed&&!E(this.root,m.endContainer))return null;var y={start:{node:m.startContainer,offset:m.startOffset},end:{node:m.endContainer,offset:m.endOffset},native:m};return[y.start,y.end].forEach(function(g){for(var N=g.node,L=g.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>L)N=N.childNodes[L],L=0;else if(N.childNodes.length===L)N=N.lastChild,L=N instanceof Text?N.data.length:N.childNodes.length+1;else break;g.node=N,g.offset=L}),y}},{key:"rangeToNative",value:function(m){var y=this,g=m.collapsed?[m.index]:[m.index,m.index+m.length],N=[],L=this.scroll.length();return g.forEach(function(D,U){D=Math.min(L-1,D);var F=void 0,Z=y.scroll.leaf(D),B=k(Z,2),C=B[0],T=B[1],q=C.position(T,U!==0),j=k(q,2);F=j[0],T=j[1],N.push(F,T)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(m){var y=this.lastRange;if(y!=null){var g=this.getBounds(y.index,y.length);if(g!=null){var N=this.scroll.length()-1,L=this.scroll.line(Math.min(y.index,N)),D=k(L,1),U=D[0],F=U;if(y.length>0){var Z=this.scroll.line(Math.min(y.index+y.length,N)),B=k(Z,1);F=B[0]}if(!(U==null||F==null)){var C=m.getBoundingClientRect();g.top<C.top?m.scrollTop-=C.top-g.top:g.bottom>C.bottom&&(m.scrollTop+=g.bottom-C.bottom)}}}}},{key:"setNativeRange",value:function(m,y){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:y,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",m,y,g,N),!(m!=null&&(this.root.parentNode==null||m.parentNode==null||g.parentNode==null))){var D=document.getSelection();if(D!=null)if(m!=null){this.hasFocus()||this.root.focus();var U=(this.getNativeRange()||{}).native;if(U==null||L||m!==U.startContainer||y!==U.startOffset||g!==U.endContainer||N!==U.endOffset){m.tagName=="BR"&&(y=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode),g.tagName=="BR"&&(N=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode);var F=document.createRange();F.setStart(m,y),F.setEnd(g,N),D.removeAllRanges(),D.addRange(F)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(m){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof y=="string"&&(g=y,y=!1),n.info("setRange",m),m!=null){var N=this.rangeToNative(m);this.setNativeRange.apply(this,i(N).concat([y]))}else this.setNativeRange(null);this.update(g)}},{key:"update",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u.default.sources.USER,y=this.lastRange,g=this.getRange(),N=k(g,2),L=N[0],D=N[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(y,this.lastRange)){var U;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var F=[u.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(y),m];if((U=this.emitter).emit.apply(U,[u.default.events.EDITOR_CHANGE].concat(F)),m!==u.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,F)}}}}]),x}();function E(x,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),x.contains(P)}s.Range=c,s.default=S},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(0),p=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return k(a,[{key:"insertInto",value:function(r,i){r.children.length===0?w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),a}(p.default.Embed);t.blotName="break",t.tagName="BR",s.default=t},function(b,s,d){var k=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(44),O=d(30),p=d(1),v=function(o){k(e,o);function e(t){var u=o.call(this,t)||this;return u.build(),u}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new w.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var a=h(u);t.insertBefore(a,t.children.head||void 0)}catch(l){if(l instanceof p.ParchmentError)return;throw l}})},e.prototype.deleteAt=function(t,u){if(t===0&&u===this.length())return this.remove();this.children.forEachAt(t,u,function(a,l,r){a.deleteAt(l,r)})},e.prototype.descendant=function(t,u){var a=this.children.find(u),l=a[0],r=a[1];return t.blotName==null&&t(l)||t.blotName!=null&&l instanceof t?[l,r]:l instanceof e?l.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,u,a){u===void 0&&(u=0),a===void 0&&(a=Number.MAX_VALUE);var l=[],r=a;return this.children.forEachAt(u,a,function(i,f,n){(t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t)&&l.push(i),i instanceof e&&(l=l.concat(i.descendants(t,f,r))),r-=n}),l},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(t,u,a,l){this.children.forEachAt(t,u,function(r,i,f){r.formatAt(i,f,a,l)})},e.prototype.insertAt=function(t,u,a){var l=this.children.find(t),r=l[0],i=l[1];if(r)r.insertAt(i,u,a);else{var f=a==null?p.create("text",u):p.create(u,a);this.appendChild(f)}},e.prototype.insertBefore=function(t,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(a){return t instanceof a}))throw new p.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,u)},e.prototype.length=function(){return this.children.reduce(function(t,u){return t+u.length()},0)},e.prototype.moveChildren=function(t,u){this.children.forEach(function(a){t.insertBefore(a,u)})},e.prototype.optimize=function(t){if(o.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var u=p.create(this.statics.defaultChild);this.appendChild(u),u.optimize(t)}else this.remove()},e.prototype.path=function(t,u){u===void 0&&(u=!1);var a=this.children.find(t,u),l=a[0],r=a[1],i=[[this,t]];return l instanceof e?i.concat(l.path(r,u)):(l!=null&&i.push([l,r]),i)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),o.prototype.replace.call(this,t)},e.prototype.split=function(t,u){if(u===void 0&&(u=!1),!u){if(t===0)return this;if(t===this.length())return this.next}var a=this.clone();return this.parent.insertBefore(a,this.next),this.children.forEachAt(t,this.length(),function(l,r,i){l=l.split(r,u),a.appendChild(l)}),a},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,u){var a=this,l=[],r=[];t.forEach(function(i){i.target===a.domNode&&i.type==="childList"&&(l.push.apply(l,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=p.find(i);f!=null&&(f.domNode.parentNode==null||f.domNode.parentNode===a.domNode)&&f.detach()}}),l.filter(function(i){return i.parentNode==a.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;i.nextSibling!=null&&(f=p.find(i.nextSibling));var n=h(i);(n.next!=f||n.next==null)&&(n.parent!=null&&n.parent.removeChild(a),a.insertBefore(n,f||void 0))})},e}(O.default);function h(o){var e=p.find(o);if(e==null)try{e=p.create(o)}catch{e=p.create(p.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){e.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}s.default=v},function(b,s,d){var k=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(12),O=d(31),p=d(17),v=d(1),h=function(o){k(e,o);function e(t){var u=o.call(this,t)||this;return u.attributes=new O.default(u.domNode),u}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,u){var a=v.query(t);a instanceof w.default?this.attributes.attribute(a,u):u&&a!=null&&(t!==this.statics.blotName||this.formats()[t]!==u)&&this.replaceWith(t,u)},e.prototype.formats=function(){var t=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(t[this.statics.blotName]=u),t},e.prototype.replaceWith=function(t,u){var a=o.prototype.replaceWith.call(this,t,u);return this.attributes.copy(a),a},e.prototype.update=function(t,u){var a=this;o.prototype.update.call(this,t,u),t.some(function(l){return l.target===a.domNode&&l.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,u){var a=o.prototype.wrap.call(this,t,u);return a instanceof e&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},e}(p.default);s.default=h},function(b,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(30),O=d(1),p=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.value=function(o){return!0},h.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},h.prototype.position=function(o,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(t+=1),[this.parent.domNode,t]},h.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},h.scope=O.Scope.INLINE_BLOT,h}(w.default);s.default=p},function(b,s,d){var k=d(11),w=d(3),O={attributes:{compose:function(v,h,o){typeof v!="object"&&(v={}),typeof h!="object"&&(h={});var e=w(!0,{},h);o||(e=Object.keys(e).reduce(function(u,a){return e[a]!=null&&(u[a]=e[a]),u},{}));for(var t in v)v[t]!==void 0&&h[t]===void 0&&(e[t]=v[t]);return Object.keys(e).length>0?e:void 0},diff:function(v,h){typeof v!="object"&&(v={}),typeof h!="object"&&(h={});var o=Object.keys(v).concat(Object.keys(h)).reduce(function(e,t){return k(v[t],h[t])||(e[t]=h[t]===void 0?null:h[t]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(v,h,o){if(typeof v!="object")return h;if(typeof h=="object"){if(!o)return h;var e=Object.keys(h).reduce(function(t,u){return v[u]===void 0&&(t[u]=h[u]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(v){return new p(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function p(v){this.ops=v,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(v){v||(v=1/0);var h=this.ops[this.index];if(h){var o=this.offset,e=O.length(h);if(v>=e-o?(v=e-o,this.index+=1,this.offset=0):this.offset+=v,typeof h.delete=="number")return{delete:v};var t={};return h.attributes&&(t.attributes=h.attributes),typeof h.retain=="number"?t.retain=v:typeof h.insert=="string"?t.insert=h.insert.substr(o,v):t.insert=h.insert,t}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},p.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"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var v=this.offset,h=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=v,this.index=h,[o].concat(e)}else return[]},b.exports=O},function(b,s){var d=function(){function k(a,l){return l!=null&&a instanceof l}var w;try{w=Map}catch{w=function(){}}var O;try{O=Set}catch{O=function(){}}var p;try{p=Promise}catch{p=function(){}}function v(a,l,r,i,f){typeof l=="object"&&(r=l.depth,i=l.prototype,f=l.includeNonEnumerable,l=l.circular);var n=[],c=[],S=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof r>"u"&&(r=1/0);function E(x,P){if(x===null)return null;if(P===0)return x;var m,y;if(typeof x!="object")return x;if(k(x,w))m=new w;else if(k(x,O))m=new O;else if(k(x,p))m=new p(function(C,T){x.then(function(q){C(E(q,P-1))},function(q){T(E(q,P-1))})});else if(v.__isArray(x))m=[];else if(v.__isRegExp(x))m=new RegExp(x.source,u(x)),x.lastIndex&&(m.lastIndex=x.lastIndex);else if(v.__isDate(x))m=new Date(x.getTime());else{if(S&&Buffer.isBuffer(x))return Buffer.allocUnsafe?m=Buffer.allocUnsafe(x.length):m=new Buffer(x.length),x.copy(m),m;k(x,Error)?m=Object.create(x):typeof i>"u"?(y=Object.getPrototypeOf(x),m=Object.create(y)):(m=Object.create(i),y=i)}if(l){var g=n.indexOf(x);if(g!=-1)return c[g];n.push(x),c.push(m)}k(x,w)&&x.forEach(function(C,T){var q=E(T,P-1),j=E(C,P-1);m.set(q,j)}),k(x,O)&&x.forEach(function(C){var T=E(C,P-1);m.add(T)});for(var N in x){var L;y&&(L=Object.getOwnPropertyDescriptor(y,N)),!(L&&L.set==null)&&(m[N]=E(x[N],P-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(x),N=0;N<D.length;N++){var U=D[N],F=Object.getOwnPropertyDescriptor(x,U);F&&!F.enumerable&&!f||(m[U]=E(x[U],P-1),F.enumerable||Object.defineProperty(m,U,{enumerable:!1}))}if(f)for(var Z=Object.getOwnPropertyNames(x),N=0;N<Z.length;N++){var B=Z[N],F=Object.getOwnPropertyDescriptor(x,B);F&&F.enumerable||(m[B]=E(x[B],P-1),Object.defineProperty(m,B,{enumerable:!1}))}return m}return E(a,r)}v.clonePrototype=function(l){if(l===null)return null;var r=function(){};return r.prototype=l,new r};function h(a){return Object.prototype.toString.call(a)}v.__objToStr=h;function o(a){return typeof a=="object"&&h(a)==="[object Date]"}v.__isDate=o;function e(a){return typeof a=="object"&&h(a)==="[object Array]"}v.__isArray=e;function t(a){return typeof a=="object"&&h(a)==="[object RegExp]"}v.__isRegExp=t;function u(a){var l="";return a.global&&(l+="g"),a.ignoreCase&&(l+="i"),a.multiline&&(l+="m"),l}return v.__getRegExpFlags=u,v}();typeof b=="object"&&b.exports&&(b.exports=d)},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function m(y,g){var N=[],L=!0,D=!1,U=void 0;try{for(var F=y[Symbol.iterator](),Z;!(L=(Z=F.next()).done)&&(N.push(Z.value),!(g&&N.length===g));L=!0);}catch(B){D=!0,U=B}finally{try{!L&&F.return&&F.return()}finally{if(D)throw U}}return N}return function(y,g){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return m(y,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function m(y,g){for(var N=0;N<g.length;N++){var L=g[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(y,L.key,L)}}return function(y,g,N){return g&&m(y.prototype,g),N&&m(y,N),y}}(),O=function m(y,g,N){y===null&&(y=Function.prototype);var L=Object.getOwnPropertyDescriptor(y,g);if(L===void 0){var D=Object.getPrototypeOf(y);return D===null?void 0:m(D,g,N)}else{if("value"in L)return L.value;var U=L.get;return U===void 0?void 0:U.call(N)}},p=d(0),v=n(p),h=d(8),o=n(h),e=d(4),t=n(e),u=d(16),a=n(u),l=d(13),r=n(l),i=d(25),f=n(i);function n(m){return m&&m.__esModule?m:{default:m}}function c(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function S(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function E(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}function x(m){return m instanceof t.default||m instanceof e.BlockEmbed}var P=function(m){E(y,m);function y(g,N){c(this,y);var L=S(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,g));return L.emitter=N.emitter,Array.isArray(N.whitelist)&&(L.whitelist=N.whitelist.reduce(function(D,U){return D[U]=!0,D},{})),L.domNode.addEventListener("DOMNodeInserted",function(){}),L.optimize(),L.enable(),L}return w(y,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,L){var D=this.line(N),U=k(D,2),F=U[0],Z=U[1],B=this.line(N+L),C=k(B,1),T=C[0];if(O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"deleteAt",this).call(this,N,L),T!=null&&F!==T&&Z>0){if(F instanceof e.BlockEmbed||T instanceof e.BlockEmbed){this.optimize();return}if(F instanceof r.default){var q=F.newlineIndex(F.length(),!0);if(q>-1&&(F=F.split(q+1),F===T)){this.optimize();return}}else if(T instanceof r.default){var j=T.newlineIndex(0);j>-1&&T.split(j+1)}var R=T.children.head instanceof a.default?null:T.children.head;F.moveChildren(T,R),F.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,L,D,U){this.whitelist!=null&&!this.whitelist[D]||(O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,N,L,D,U),this.optimize())}},{key:"insertAt",value:function(N,L,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[L])){if(N>=this.length())if(D==null||v.default.query(L,v.default.Scope.BLOCK)==null){var U=v.default.create(this.statics.defaultChild);this.appendChild(U),D==null&&L.endsWith(`
`)&&(L=L.slice(0,-1)),U.insertAt(0,L,D)}else{var F=v.default.create(L,D);this.appendChild(F)}else O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,N,L,D);this.optimize()}}},{key:"insertBefore",value:function(N,L){if(N.statics.scope===v.default.Scope.INLINE_BLOT){var D=v.default.create(this.statics.defaultChild);D.appendChild(N),N=D}O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,N,L)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(x,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function U(F,Z,B){var C=[],T=B;return F.children.forEachAt(Z,B,function(q,j,R){x(q)?C.push(q):q instanceof v.default.Container&&(C=C.concat(U(q,j,T))),T-=R}),C};return D(this,N,L)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,N,L),N.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,N,L))}},{key:"path",value:function(N){return O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var L=o.default.sources.USER;typeof N=="string"&&(L=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,L,N),O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,L,N)}}}]),y}(v.default.Scroll);P.blotName="scroll",P.className="ql-editor",P.tagName="DIV",P.defaultChild="block",P.allowedChildren=[t.default,e.BlockEmbed,f.default],s.default=P},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.SHORTKEY=s.default=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},w=function(){function A($,H){var z=[],W=!0,X=!1,ee=void 0;try{for(var te=$[Symbol.iterator](),oe;!(W=(oe=te.next()).done)&&(z.push(oe.value),!(H&&z.length===H));W=!0);}catch(ae){X=!0,ee=ae}finally{try{!W&&te.return&&te.return()}finally{if(X)throw ee}}return z}return function($,H){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return A($,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function A($,H){for(var z=0;z<H.length;z++){var W=H[z];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty($,W.key,W)}}return function($,H,z){return H&&A($.prototype,H),z&&A($,z),$}}(),p=d(21),v=m(p),h=d(11),o=m(h),e=d(3),t=m(e),u=d(2),a=m(u),l=d(20),r=m(l),i=d(0),f=m(i),n=d(5),c=m(n),S=d(10),E=m(S),x=d(9),P=m(x);function m(A){return A&&A.__esModule?A:{default:A}}function y(A,$,H){return $ in A?Object.defineProperty(A,$,{value:H,enumerable:!0,configurable:!0,writable:!0}):A[$]=H,A}function g(A,$){if(!(A instanceof $))throw new TypeError("Cannot call a class as a function")}function N(A,$){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:A}function L(A,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);A.prototype=Object.create($&&$.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(A,$):A.__proto__=$)}var D=(0,E.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",F=function(A){L($,A),O($,null,[{key:"match",value:function(z,W){return W=M(W),["altKey","ctrlKey","metaKey","shiftKey"].some(function(X){return!!W[X]!==z[X]&&W[X]!==null})?!1:W.key===(z.which||z.keyCode)}}]);function $(H,z){g(this,$);var W=N(this,($.__proto__||Object.getPrototypeOf($)).call(this,H,z));return W.bindings={},Object.keys(W.options.bindings).forEach(function(X){X==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||W.options.bindings[X]&&W.addBinding(W.options.bindings[X])}),W.addBinding({key:$.keys.ENTER,shiftKey:null},q),W.addBinding({key:$.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(W.addBinding({key:$.keys.BACKSPACE},{collapsed:!0},B),W.addBinding({key:$.keys.DELETE},{collapsed:!0},C)):(W.addBinding({key:$.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},B),W.addBinding({key:$.keys.DELETE},{collapsed:!0,suffix:/^.?$/},C)),W.addBinding({key:$.keys.BACKSPACE},{collapsed:!1},T),W.addBinding({key:$.keys.DELETE},{collapsed:!1},T),W.addBinding({key:$.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},B),W.listen(),W}return O($,[{key:"addBinding",value:function(z){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=M(z);if(ee==null||ee.key==null)return D.warn("Attempted to add invalid keyboard binding",ee);typeof W=="function"&&(W={handler:W}),typeof X=="function"&&(X={handler:X}),ee=(0,t.default)(ee,W,X),this.bindings[ee.key]=this.bindings[ee.key]||[],this.bindings[ee.key].push(ee)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(W){if(!W.defaultPrevented){var X=W.which||W.keyCode,ee=(z.bindings[X]||[]).filter(function(fe){return $.match(W,fe)});if(ee.length!==0){var te=z.quill.getSelection();if(!(te==null||!z.quill.hasFocus())){var oe=z.quill.getLine(te.index),ae=w(oe,2),pe=ae[0],ce=ae[1],G=z.quill.getLeaf(te.index),V=w(G,2),Y=V[0],J=V[1],Q=te.length===0?[Y,J]:z.quill.getLeaf(te.index+te.length),ne=w(Q,2),re=ne[0],ie=ne[1],ye=Y instanceof f.default.Text?Y.value().slice(0,J):"",be=re instanceof f.default.Text?re.value().slice(ie):"",ue={collapsed:te.length===0,empty:te.length===0&&pe.length()<=1,format:z.quill.getFormat(te),offset:ce,prefix:ye,suffix:be},nn=ee.some(function(fe){if(fe.collapsed!=null&&fe.collapsed!==ue.collapsed||fe.empty!=null&&fe.empty!==ue.empty||fe.offset!=null&&fe.offset!==ue.offset)return!1;if(Array.isArray(fe.format)){if(fe.format.every(function(Oe){return ue.format[Oe]==null}))return!1}else if(k(fe.format)==="object"&&!Object.keys(fe.format).every(function(Oe){return fe.format[Oe]===!0?ue.format[Oe]!=null:fe.format[Oe]===!1?ue.format[Oe]==null:(0,o.default)(fe.format[Oe],ue.format[Oe])}))return!1;return fe.prefix!=null&&!fe.prefix.test(ue.prefix)||fe.suffix!=null&&!fe.suffix.test(ue.suffix)?!1:fe.handler.call(z,te,ue)!==!0});nn&&W.preventDefault()}}}})}}]),$}(P.default);F.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},F.DEFAULTS={bindings:{bold:R("bold"),italic:R("italic"),underline:R("underline"),indent:{key:F.keys.TAB,format:["blockquote","indent","list"],handler:function($,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",c.default.sources.USER)}},outdent:{key:F.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function($,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",c.default.sources.USER)}},"outdent backspace":{key:F.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function($,H){H.format.indent!=null?this.quill.format("indent","-1",c.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,c.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:F.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function($){this.quill.deleteText($.index-1,1,c.default.sources.USER)}},tab:{key:F.keys.TAB,handler:function($){this.quill.history.cutoff();var H=new a.default().retain($.index).delete($.length).insert(" ");this.quill.updateContents(H,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection($.index+1,c.default.sources.SILENT)}},"list empty enter":{key:F.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function($,H){this.quill.format("list",!1,c.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,c.default.sources.USER)}},"checklist enter":{key:F.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function($){var H=this.quill.getLine($.index),z=w(H,2),W=z[0],X=z[1],ee=(0,t.default)({},W.formats(),{list:"checked"}),te=new a.default().retain($.index).insert(`
`,ee).retain(W.length()-X-1).retain(1,{list:"unchecked"});this.quill.updateContents(te,c.default.sources.USER),this.quill.setSelection($.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:F.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function($,H){var z=this.quill.getLine($.index),W=w(z,2),X=W[0],ee=W[1],te=new a.default().retain($.index).insert(`
`,H.format).retain(X.length()-ee-1).retain(1,{header:null});this.quill.updateContents(te,c.default.sources.USER),this.quill.setSelection($.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function($,H){var z=H.prefix.length,W=this.quill.getLine($.index),X=w(W,2),ee=X[0],te=X[1];if(te>z)return!0;var oe=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":oe="unchecked";break;case"[x]":oe="checked";break;case"-":case"*":oe="bullet";break;default:oe="ordered"}this.quill.insertText($.index," ",c.default.sources.USER),this.quill.history.cutoff();var ae=new a.default().retain($.index-te).delete(z+1).retain(ee.length()-2-te).retain(1,{list:oe});this.quill.updateContents(ae,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection($.index-z,c.default.sources.SILENT)}},"code exit":{key:F.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function($){var H=this.quill.getLine($.index),z=w(H,2),W=z[0],X=z[1],ee=new a.default().retain($.index+W.length()-X-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ee,c.default.sources.USER)}},"embed left":Z(F.keys.LEFT,!1),"embed left shift":Z(F.keys.LEFT,!0),"embed right":Z(F.keys.RIGHT,!1),"embed right shift":Z(F.keys.RIGHT,!0)}};function Z(A,$){var H,z=A===F.keys.LEFT?"prefix":"suffix";return H={key:A,shiftKey:$,altKey:null},y(H,z,/^$/),y(H,"handler",function(X){var ee=X.index;A===F.keys.RIGHT&&(ee+=X.length+1);var te=this.quill.getLeaf(ee),oe=w(te,1),ae=oe[0];return ae instanceof f.default.Embed?(A===F.keys.LEFT?$?this.quill.setSelection(X.index-1,X.length+1,c.default.sources.USER):this.quill.setSelection(X.index-1,c.default.sources.USER):$?this.quill.setSelection(X.index,X.length+1,c.default.sources.USER):this.quill.setSelection(X.index+X.length+1,c.default.sources.USER),!1):!0}),H}function B(A,$){if(!(A.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(A.index),z=w(H,1),W=z[0],X={};if($.offset===0){var ee=this.quill.getLine(A.index-1),te=w(ee,1),oe=te[0];if(oe!=null&&oe.length()>1){var ae=W.formats(),pe=this.quill.getFormat(A.index-1,1);X=r.default.attributes.diff(ae,pe)||{}}}var ce=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test($.prefix)?2:1;this.quill.deleteText(A.index-ce,ce,c.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(A.index-ce,ce,X,c.default.sources.USER),this.quill.focus()}}function C(A,$){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test($.suffix)?2:1;if(!(A.index>=this.quill.getLength()-H)){var z={},W=0,X=this.quill.getLine(A.index),ee=w(X,1),te=ee[0];if($.offset>=te.length()-1){var oe=this.quill.getLine(A.index+1),ae=w(oe,1),pe=ae[0];if(pe){var ce=te.formats(),G=this.quill.getFormat(A.index,1);z=r.default.attributes.diff(ce,G)||{},W=pe.length()}}this.quill.deleteText(A.index,H,c.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(A.index+W-1,H,z,c.default.sources.USER)}}function T(A){var $=this.quill.getLines(A),H={};if($.length>1){var z=$[0].formats(),W=$[$.length-1].formats();H=r.default.attributes.diff(W,z)||{}}this.quill.deleteText(A,c.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(A.index,1,H,c.default.sources.USER),this.quill.setSelection(A.index,c.default.sources.SILENT),this.quill.focus()}function q(A,$){var H=this;A.length>0&&this.quill.scroll.deleteAt(A.index,A.length);var z=Object.keys($.format).reduce(function(W,X){return f.default.query(X,f.default.Scope.BLOCK)&&!Array.isArray($.format[X])&&(W[X]=$.format[X]),W},{});this.quill.insertText(A.index,`
`,z,c.default.sources.USER),this.quill.setSelection(A.index+1,c.default.sources.SILENT),this.quill.focus(),Object.keys($.format).forEach(function(W){z[W]==null&&(Array.isArray($.format[W])||W!=="link"&&H.quill.format(W,$.format[W],c.default.sources.USER))})}function j(A){return{key:F.keys.TAB,shiftKey:!A,format:{"code-block":!0},handler:function(H){var z=f.default.query("code-block"),W=H.index,X=H.length,ee=this.quill.scroll.descendant(z,W),te=w(ee,2),oe=te[0],ae=te[1];if(oe!=null){var pe=this.quill.getIndex(oe),ce=oe.newlineIndex(ae,!0)+1,G=oe.newlineIndex(pe+ae+X),V=oe.domNode.textContent.slice(ce,G).split(`
`);ae=0,V.forEach(function(Y,J){A?(oe.insertAt(ce+ae,z.TAB),ae+=z.TAB.length,J===0?W+=z.TAB.length:X+=z.TAB.length):Y.startsWith(z.TAB)&&(oe.deleteAt(ce+ae,z.TAB.length),ae-=z.TAB.length,J===0?W-=z.TAB.length:X-=z.TAB.length),ae+=Y.length+1}),this.quill.update(c.default.sources.USER),this.quill.setSelection(W,X,c.default.sources.SILENT)}}}}function R(A){return{key:A[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(A,!z.format[A],c.default.sources.USER)}}}function M(A){if(typeof A=="string"||typeof A=="number")return M({key:A});if((typeof A>"u"?"undefined":k(A))==="object"&&(A=(0,v.default)(A,!1)),typeof A.key=="string")if(F.keys[A.key.toUpperCase()]!=null)A.key=F.keys[A.key.toUpperCase()];else if(A.key.length===1)A.key=A.key.toUpperCase().charCodeAt(0);else return null;return A.shortKey&&(A[U]=A.shortKey,delete A.shortKey),A}s.default=F,s.SHORTKEY=U},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function r(i,f){var n=[],c=!0,S=!1,E=void 0;try{for(var x=i[Symbol.iterator](),P;!(c=(P=x.next()).done)&&(n.push(P.value),!(f&&n.length===f));c=!0);}catch(m){S=!0,E=m}finally{try{!c&&x.return&&x.return()}finally{if(S)throw E}}return n}return function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,f,n)}else{if("value"in c)return c.value;var E=c.get;return E===void 0?void 0:E.call(n)}},O=function(){function r(i,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),p=d(0),v=e(p),h=d(7),o=e(h);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function a(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var l=function(r){a(i,r),O(i,null,[{key:"value",value:function(){}}]);function i(f,n){t(this,i);var c=u(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return c.selection=n,c.textNode=document.createTextNode(i.CONTENTS),c.domNode.appendChild(c.textNode),c._length=0,c}return O(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,c){if(this._length!==0)return w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,c);for(var S=this,E=0;S!=null&&S.statics.scope!==v.default.Scope.BLOCK_BLOT;)E+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=i.CONTENTS.length,S.optimize(),S.formatAt(E,i.CONTENTS.length,n,c),this._length=0)}},{key:"index",value:function(n,c){return n===this.textNode?0:w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,c)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,c=this.selection.getNativeRange(),S=void 0,E=void 0,x=void 0;if(c!=null&&c.start.node===n&&c.end.node===n){var P=[n,c.start.offset,c.end.offset];S=P[0],E=P[1],x=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var m=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(S=this.next.domNode,this.next.insertAt(0,m),this.textNode.data=i.CONTENTS):(this.textNode.data=m,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var y=[E,x].map(function(N){return Math.max(0,Math.min(S.data.length,N-1))}),g=k(y,2);return E=g[0],x=g[1],{startNode:S,startOffset:E,endNode:S,endOffset:x}}}}},{key:"update",value:function(n,c){var S=this;if(n.some(function(x){return x.type==="characterData"&&x.target===S.textNode})){var E=this.restore();E&&(c.range=E)}}},{key:"value",value:function(){return""}}]),i}(v.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\uFEFF",s.default=l},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(0),w=v(k),O=d(4),p=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(w.default.Container);t.allowedChildren=[p.default,O.BlockEmbed,t],s.default=t},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.ColorStyle=s.ColorClass=s.ColorAttributor=void 0;var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(0),p=v(O);function v(l){return l&&l.__esModule?l:{default:l}}function h(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function o(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function e(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var t=function(l){e(r,l);function r(){return h(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"value",value:function(f){var n=w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(c){return("00"+parseInt(c).toString(16)).slice(-2)}).join("")):n}}]),r}(p.default.Attributor.Style),u=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),a=new t("color","color",{scope:p.default.Scope.INLINE});s.ColorAttributor=t,s.ColorClass=u,s.ColorStyle=a},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.sanitize=s.default=void 0;var k=function(){function a(l,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,r,i){return r&&a(l.prototype,r),i&&a(l,i),l}}(),w=function a(l,r,i){l===null&&(l=Function.prototype);var f=Object.getOwnPropertyDescriptor(l,r);if(f===void 0){var n=Object.getPrototypeOf(l);return n===null?void 0:a(n,r,i)}else{if("value"in f)return f.value;var c=f.get;return c===void 0?void 0:c.call(i)}},O=d(6),p=v(O);function v(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return k(l,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=w(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),l}(p.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function u(a,l){var r=document.createElement("a");r.href=a;var i=r.href.slice(0,r.href.indexOf(":"));return l.indexOf(i)>-1}s.default=t,s.sanitize=u},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=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},w=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),O=d(23),p=o(O),v=d(107),h=o(v);function o(l){return l&&l.__esModule?l:{default:l}}function e(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}var t=0;function u(l,r){l.setAttribute(r,l.getAttribute(r)!=="true")}var a=function(){function l(r){var i=this;e(this,l),this.select=r,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(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case p.default.keys.ENTER:i.togglePicker();break;case p.default.keys.ESCAPE:i.escape(),f.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return w(l,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(c){switch(c.keyCode){case p.default.keys.ENTER:f.selectItem(n,!0),c.preventDefault();break;case p.default.keys.ESCAPE:f.escape(),c.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=h.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var c=i.buildItem(n);f.appendChild(c),n.selected===!0&&i.selectItem(c)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.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(i){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":k(Event))==="object"){var c=document.createEvent("Event");c.initEvent("change",!0,!0),this.select.dispatchEvent(c)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),l}();s.default=a},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(0),w=D(k),O=d(5),p=D(O),v=d(4),h=D(v),o=d(16),e=D(o),t=d(25),u=D(t),a=d(24),l=D(a),r=d(35),i=D(r),f=d(6),n=D(f),c=d(22),S=D(c),E=d(7),x=D(E),P=d(55),m=D(P),y=d(42),g=D(y),N=d(23),L=D(N);function D(U){return U&&U.__esModule?U:{default:U}}p.default.register({"blots/block":h.default,"blots/block/embed":v.BlockEmbed,"blots/break":e.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":S.default,"blots/text":x.default,"modules/clipboard":m.default,"modules/history":g.default,"modules/keyboard":L.default}),w.default.register(h.default,e.default,l.default,n.default,S.default,x.default),s.default=p.default},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(1),w=function(){function O(p){this.domNode=p,this.domNode[k.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(p){if(this.tagName==null)throw new k.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?v=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?v=document.createElement(p):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return k.create(p)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[k.DATA_KEY]},O.prototype.deleteAt=function(p,v){var h=this.isolate(p,v);h.remove()},O.prototype.formatAt=function(p,v,h,o){var e=this.isolate(p,v);if(k.query(h,k.Scope.BLOT)!=null&&o)e.wrap(h,o);else if(k.query(h,k.Scope.ATTRIBUTE)!=null){var t=k.create(this.statics.scope);e.wrap(t),t.format(h,o)}},O.prototype.insertAt=function(p,v,h){var o=h==null?k.create("text",v):k.create(v,h),e=this.split(p);this.parent.insertBefore(o,e)},O.prototype.insertInto=function(p,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var h=null;p.children.insertBefore(this,v),v!=null&&(h=v.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=h)&&p.domNode.insertBefore(this.domNode,h),this.parent=p,this.attach()},O.prototype.isolate=function(p,v){var h=this.split(p);return h.split(v),h},O.prototype.length=function(){return 1},O.prototype.offset=function(p){return p===void 0&&(p=this.parent),this.parent==null||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},O.prototype.optimize=function(p){this.domNode[k.DATA_KEY]!=null&&delete this.domNode[k.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},O.prototype.replaceWith=function(p,v){var h=typeof p=="string"?k.create(p,v):p;return h.replace(this),h},O.prototype.split=function(p,v){return p===0?this:this.next},O.prototype.update=function(p,v){},O.prototype.wrap=function(p,v){var h=typeof p=="string"?k.create(p,v):p;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},O.blotName="abstract",O}();s.default=w},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(12),w=d(32),O=d(33),p=d(1),v=function(){function h(o){this.attributes={},this.domNode=o,this.build()}return h.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},h.prototype.build=function(){var o=this;this.attributes={};var e=k.default.keys(this.domNode),t=w.default.keys(this.domNode),u=O.default.keys(this.domNode);e.concat(t).concat(u).forEach(function(a){var l=p.query(a,p.Scope.ATTRIBUTE);l instanceof k.default&&(o.attributes[l.attrName]=l)})},h.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(t){var u=e.attributes[t].value(e.domNode);o.format(t,u)})},h.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},h.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=o.attributes[t].value(o.domNode),e},{})},h}();s.default=v},function(b,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(12);function O(v,h){var o=v.getAttribute("class")||"";return o.split(/\s+/).filter(function(e){return e.indexOf(h+"-")===0})}var p=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},h.prototype.add=function(o,e){return this.canAdd(o,e)?(this.remove(o),o.classList.add(this.keyName+"-"+e),!0):!1},h.prototype.remove=function(o){var e=O(o,this.keyName);e.forEach(function(t){o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")},h.prototype.value=function(o){var e=O(o,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(o,t)?t:""},h}(w.default);s.default=p},function(b,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(12);function O(v){var h=v.split("-"),o=h.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return h[0]+o}var p=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},h.prototype.add=function(o,e){return this.canAdd(o,e)?(o.style[O(this.keyName)]=e,!0):!1},h.prototype.remove=function(o){o.style[O(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},h.prototype.value=function(o){var e=o.style[O(this.keyName)];return this.canAdd(o,e)?e:""},h}(w.default);s.default=p},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function p(v,h){for(var o=0;o<h.length;o++){var e=h[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,h,o){return h&&p(v.prototype,h),o&&p(v,o),v}}();function w(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}var O=function(){function p(v,h){w(this,p),this.quill=v,this.options=h,this.modules={}}return k(p,[{key:"init",value:function(){var h=this;Object.keys(this.options.modules).forEach(function(o){h.modules[o]==null&&h.addModule(o)})}},{key:"addModule",value:function(h){var o=this.quill.constructor.import("modules/"+h);return this.modules[h]=new o(this.quill,this.options.modules[h]||{}),this.modules[h]}}]),p}();O.DEFAULTS={modules:{}},O.themes={default:O},s.default=O},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function r(i,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,f,n)}else{if("value"in c)return c.value;var E=c.get;return E===void 0?void 0:E.call(n)}},O=d(0),p=o(O),v=d(7),h=o(v);function o(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function t(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function u(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a="\uFEFF",l=function(r){u(i,r);function i(f){e(this,i);var n=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(c){n.contentNode.appendChild(c)}),n.leftGuard=document.createTextNode(a),n.rightGuard=document.createTextNode(a),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return k(i,[{key:"index",value:function(n,c){return n===this.leftGuard?0:n===this.rightGuard?1:w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,c)}},{key:"restore",value:function(n){var c=void 0,S=void 0,E=n.data.split(a).join("");if(n===this.leftGuard)if(this.prev instanceof h.default){var x=this.prev.length();this.prev.insertAt(x,E),c={startNode:this.prev.domNode,startOffset:x+E.length}}else S=document.createTextNode(E),this.parent.insertBefore(p.default.create(S),this),c={startNode:S,startOffset:E.length};else n===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,E),c={startNode:this.next.domNode,startOffset:E.length}):(S=document.createTextNode(E),this.parent.insertBefore(p.default.create(S),this.next),c={startNode:S,startOffset:E.length}));return n.data=a,c}},{key:"update",value:function(n,c){var S=this;n.forEach(function(E){if(E.type==="characterData"&&(E.target===S.leftGuard||E.target===S.rightGuard)){var x=S.restore(E.target);x&&(c.range=x)}})}}]),i}(p.default.Embed);s.default=l},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.AlignStyle=s.AlignClass=s.AlignAttribute=void 0;var k=d(0),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var p={scope:w.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new w.default.Attributor.Attribute("align","align",p),h=new w.default.Attributor.Class("align","ql-align",p),o=new w.default.Attributor.Style("align","text-align",p);s.AlignAttribute=v,s.AlignClass=h,s.AlignStyle=o},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.BackgroundStyle=s.BackgroundClass=void 0;var k=d(0),w=p(k),O=d(26);function p(o){return o&&o.__esModule?o:{default:o}}var v=new w.default.Attributor.Class("background","ql-bg",{scope:w.default.Scope.INLINE}),h=new O.ColorAttributor("background","background-color",{scope:w.default.Scope.INLINE});s.BackgroundClass=v,s.BackgroundStyle=h},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.DirectionStyle=s.DirectionClass=s.DirectionAttribute=void 0;var k=d(0),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}var p={scope:w.default.Scope.BLOCK,whitelist:["rtl"]},v=new w.default.Attributor.Attribute("direction","dir",p),h=new w.default.Attributor.Class("direction","ql-direction",p),o=new w.default.Attributor.Style("direction","direction",p);s.DirectionAttribute=v,s.DirectionClass=h,s.DirectionStyle=o},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.FontClass=s.FontStyle=void 0;var k=function(){function r(i,f){for(var n=0;n<f.length;n++){var c=f[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(i,c.key,c)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),w=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,f,n)}else{if("value"in c)return c.value;var E=c.get;return E===void 0?void 0:E.call(n)}},O=d(0),p=v(O);function v(r){return r&&r.__esModule?r:{default:r}}function h(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function e(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var t={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new p.default.Attributor.Class("font","ql-font",t),a=function(r){e(i,r);function i(){return h(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return k(i,[{key:"value",value:function(n){return w(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(p.default.Attributor.Style),l=new a("font","font-family",t);s.FontStyle=l,s.FontClass=u},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.SizeStyle=s.SizeClass=void 0;var k=d(0),w=O(k);function O(h){return h&&h.__esModule?h:{default:h}}var p=new w.default.Attributor.Class("size","ql-size",{scope:w.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new w.default.Attributor.Style("size","font-size",{scope:w.default.Scope.INLINE,whitelist:["10px","18px","32px"]});s.SizeClass=p,s.SizeStyle=v},function(b,s,d){b.exports={align:{"":d(76),center:d(77),right:d(78),justify:d(79)},background:d(80),blockquote:d(81),bold:d(82),clean:d(83),code:d(58),"code-block":d(58),color:d(84),direction:{"":d(85),rtl:d(86)},float:{center:d(87),full:d(88),left:d(89),right:d(90)},formula:d(91),header:{1:d(92),2:d(93)},italic:d(94),image:d(95),indent:{"+1":d(96),"-1":d(97)},link:d(98),list:{ordered:d(99),bullet:d(100),check:d(101)},script:{sub:d(102),super:d(103)},strike:d(104),underline:d(105),video:d(106)}},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.getLastChangeIndex=s.default=void 0;var k=function(){function f(n,c){for(var S=0;S<c.length;S++){var E=c[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(n,E.key,E)}}return function(n,c,S){return c&&f(n.prototype,c),S&&f(n,S),n}}(),w=d(0),O=e(w),p=d(5),v=e(p),h=d(9),o=e(h);function e(f){return f&&f.__esModule?f:{default:f}}function t(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function a(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var l=function(f){a(n,f);function n(c,S){t(this,n);var E=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,c,S));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(v.default.events.EDITOR_CHANGE,function(x,P,m,y){x!==v.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||y===v.default.sources.USER?E.record(P,m):E.transform(P))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return k(n,[{key:"change",value:function(S,E){if(this.stack[S].length!==0){var x=this.stack[S].pop();this.stack[E].push(x),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(x[S],v.default.sources.USER),this.ignoreChange=!1;var P=i(x[S]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,E){if(S.ops.length!==0){this.stack.redo=[];var x=this.quill.getContents().diff(E),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var m=this.stack.undo.pop();x=x.compose(m.undo),S=m.redo.compose(S)}else this.lastRecorded=P;this.stack.undo.push({redo:S,undo:x}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=S.transform(E.undo,!0),E.redo=S.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(f){var n=f.ops[f.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
`):n.attributes!=null?Object.keys(n.attributes).some(function(c){return O.default.query(c,O.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(S,E){return S+=E.delete||0,S},0),c=f.length()-n;return r(f)&&(c-=1),c}s.default=l,s.getLastChangeIndex=i},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BaseTooltip=void 0;var k=function(){function q(j,R){for(var M=0;M<R.length;M++){var A=R[M];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(j,A.key,A)}}return function(j,R,M){return R&&q(j.prototype,R),M&&q(j,M),j}}(),w=function q(j,R,M){j===null&&(j=Function.prototype);var A=Object.getOwnPropertyDescriptor(j,R);if(A===void 0){var $=Object.getPrototypeOf(j);return $===null?void 0:q($,R,M)}else{if("value"in A)return A.value;var H=A.get;return H===void 0?void 0:H.call(M)}},O=d(3),p=P(O),v=d(2),h=P(v),o=d(8),e=P(o),t=d(23),u=P(t),a=d(34),l=P(a),r=d(59),i=P(r),f=d(60),n=P(f),c=d(28),S=P(c),E=d(61),x=P(E);function P(q){return q&&q.__esModule?q:{default:q}}function m(q,j){if(!(q instanceof j))throw new TypeError("Cannot call a class as a function")}function y(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 g(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 N=[!1,"center","right","justify"],L=["#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"],D=[!1,"serif","monospace"],U=["1","2","3",!1],F=["small",!1,"large","huge"],Z=function(q){g(j,q);function j(R,M){m(this,j);var A=y(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,R,M)),$=function H(z){if(!document.body.contains(R.root))return document.body.removeEventListener("click",H);A.tooltip!=null&&!A.tooltip.root.contains(z.target)&&document.activeElement!==A.tooltip.textbox&&!A.quill.hasFocus()&&A.tooltip.hide(),A.pickers!=null&&A.pickers.forEach(function(W){W.container.contains(z.target)||W.close()})};return R.emitter.listenDOM("click",document.body,$),A}return k(j,[{key:"addModule",value:function(M){var A=w(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,M);return M==="toolbar"&&this.extendToolbar(A),A}},{key:"buildButtons",value:function(M,A){M.forEach(function($){var H=$.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(z.startsWith("ql-")&&(z=z.slice(3),A[z]!=null))if(z==="direction")$.innerHTML=A[z][""]+A[z].rtl;else if(typeof A[z]=="string")$.innerHTML=A[z];else{var W=$.value||"";W!=null&&A[z][W]&&($.innerHTML=A[z][W])}})})}},{key:"buildPickers",value:function(M,A){var $=this;this.pickers=M.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&T(z,N),new n.default(z,A.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var W=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&T(z,L,W==="background"?"#ffffff":"#000000"),new i.default(z,A[W])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?T(z,D):z.classList.contains("ql-header")?T(z,U):z.classList.contains("ql-size")&&T(z,F)),new S.default(z)});var H=function(){$.pickers.forEach(function(W){W.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,H)}}]),j}(l.default);Z.DEFAULTS=(0,p.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,R=this.container.querySelector("input.ql-image[type=file]");R==null&&(R=document.createElement("input"),R.setAttribute("type","file"),R.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),R.classList.add("ql-image"),R.addEventListener("change",function(){if(R.files!=null&&R.files[0]!=null){var M=new FileReader;M.onload=function(A){var $=j.quill.getSelection(!0);j.quill.updateContents(new h.default().retain($.index).delete($.length).insert({image:A.target.result}),e.default.sources.USER),j.quill.setSelection($.index+1,e.default.sources.SILENT),R.value=""},M.readAsDataURL(R.files[0])}}),this.container.appendChild(R)),R.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var B=function(q){g(j,q);function j(R,M){m(this,j);var A=y(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,R,M));return A.textbox=A.root.querySelector('input[type="text"]'),A.listen(),A}return k(j,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(A){u.default.match(A,"enter")?(M.save(),A.preventDefault()):u.default.match(A,"escape")&&(M.cancel(),A.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),A!=null?this.textbox.value=A: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 A=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,e.default.sources.USER)),this.quill.root.scrollTop=A;break}case"video":M=C(M);case"formula":{if(!M)break;var $=this.quill.getSelection(!0);if($!=null){var H=$.index+$.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),M,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",e.default.sources.USER),this.quill.setSelection(H+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j}(x.default);function C(q){var j=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":q}function T(q,j){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(M){var A=document.createElement("option");M===R?A.setAttribute("selected","selected"):A.setAttribute("value",M),q.appendChild(A)})}s.BaseTooltip=B,s.default=Z},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function w(){this.head=this.tail=null,this.length=0}return w.prototype.append=function(){for(var O=[],p=0;p<arguments.length;p++)O[p]=arguments[p];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},w.prototype.contains=function(O){for(var p,v=this.iterator();p=v();)if(p===O)return!0;return!1},w.prototype.insertBefore=function(O,p){O&&(O.next=p,p!=null?(O.prev=p.prev,p.prev!=null&&(p.prev.next=O),p.prev=O,p===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},w.prototype.offset=function(O){for(var p=0,v=this.head;v!=null;){if(v===O)return p;p+=v.length(),v=v.next}return-1},w.prototype.remove=function(O){this.contains(O)&&(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},w.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var p=O;return O!=null&&(O=O.next),p}},w.prototype.find=function(O,p){p===void 0&&(p=!1);for(var v,h=this.iterator();v=h();){var o=v.length();if(O<o||p&&O===o&&(v.next==null||v.next.length()!==0))return[v,O];O-=o}return[null,0]},w.prototype.forEach=function(O){for(var p,v=this.iterator();p=v();)O(p)},w.prototype.forEachAt=function(O,p,v){if(!(p<=0))for(var h=this.find(O),o=h[0],e=h[1],t,u=O-e,a=this.iterator(o);(t=a())&&u<O+p;){var l=t.length();O>u?v(t,O-u,Math.min(p,u+l-O)):v(t,0,Math.min(l,O+p-u)),u+=l}},w.prototype.map=function(O){return this.reduce(function(p,v){return p.push(O(v)),p},[])},w.prototype.reduce=function(O,p){for(var v,h=this.iterator();v=h();)p=O(p,v);return p},w}();s.default=k},function(b,s,d){var k=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var u in t)t.hasOwnProperty(u)&&(e[u]=t[u])};return function(e,t){o(e,t);function u(){this.constructor=e}e.prototype=t===null?Object.create(t):(u.prototype=t.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(17),O=d(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,h=function(o){k(e,o);function e(t){var u=o.call(this,t)||this;return u.scroll=u,u.observer=new MutationObserver(function(a){u.update(a)}),u.observer.observe(u.domNode,p),u.attach(),u}return e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,u){this.update(),t===0&&u===this.length()?this.children.forEach(function(a){a.remove()}):o.prototype.deleteAt.call(this,t,u)},e.prototype.formatAt=function(t,u,a,l){this.update(),o.prototype.formatAt.call(this,t,u,a,l)},e.prototype.insertAt=function(t,u,a){this.update(),o.prototype.insertAt.call(this,t,u,a)},e.prototype.optimize=function(t,u){var a=this;t===void 0&&(t=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)t.push(l.pop());for(var r=function(c,S){S===void 0&&(S=!0),!(c==null||c===a)&&c.domNode.parentNode!=null&&(c.domNode[O.DATA_KEY].mutations==null&&(c.domNode[O.DATA_KEY].mutations=[]),S&&r(c.parent))},i=function(c){c.domNode[O.DATA_KEY]==null||c.domNode[O.DATA_KEY].mutations==null||(c instanceof w.default&&c.children.forEach(i),c.optimize(u))},f=t,n=0;f.length>0;n+=1){if(n>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(c){var S=O.find(c.target,!0);S!=null&&(S.domNode===c.target&&(c.type==="childList"?(r(O.find(c.previousSibling,!1)),[].forEach.call(c.addedNodes,function(E){var x=O.find(E,!1);r(x,!1),x instanceof w.default&&x.children.forEach(function(P){r(P,!1)})})):c.type==="attributes"&&r(S.prev)),r(S))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),l=f.slice();l.length>0;)t.push(l.pop())}},e.prototype.update=function(t,u){var a=this;u===void 0&&(u={}),t=t||this.observer.takeRecords(),t.map(function(l){var r=O.find(l.target,!0);return r==null?null:r.domNode[O.DATA_KEY].mutations==null?(r.domNode[O.DATA_KEY].mutations=[l],r):(r.domNode[O.DATA_KEY].mutations.push(l),null)}).forEach(function(l){l==null||l===a||l.domNode[O.DATA_KEY]==null||l.update(l.domNode[O.DATA_KEY].mutations||[],u)}),this.domNode[O.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,u),this.optimize(t,u)},e.blotName="scroll",e.defaultChild="block",e.scope=O.Scope.BLOCK_BLOT,e.tagName="DIV",e}(w.default);s.default=h},function(b,s,d){var k=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])};return function(o,e){h(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(18),O=d(1);function p(h,o){if(Object.keys(h).length!==Object.keys(o).length)return!1;for(var e in h)if(h[e]!==o[e])return!1;return!0}var v=function(h){k(o,h);function o(){return h!==null&&h.apply(this,arguments)||this}return o.formats=function(e){if(e.tagName!==o.tagName)return h.formats.call(this,e)},o.prototype.format=function(e,t){var u=this;e===this.statics.blotName&&!t?(this.children.forEach(function(a){a instanceof w.default||(a=a.wrap(o.blotName,!0)),u.attributes.copy(a)}),this.unwrap()):h.prototype.format.call(this,e,t)},o.prototype.formatAt=function(e,t,u,a){if(this.formats()[u]!=null||O.query(u,O.Scope.ATTRIBUTE)){var l=this.isolate(e,t);l.format(u,a)}else h.prototype.formatAt.call(this,e,t,u,a)},o.prototype.optimize=function(e){h.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&p(t,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=O.Scope.INLINE_BLOT,o.tagName="SPAN",o}(w.default);s.default=v},function(b,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(18),O=d(1),p=function(v){k(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.formats=function(o){var e=O.query(h.blotName).tagName;if(o.tagName!==e)return v.formats.call(this,o)},h.prototype.format=function(o,e){O.query(o,O.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!e?this.replaceWith(h.blotName):v.prototype.format.call(this,o,e))},h.prototype.formatAt=function(o,e,t,u){O.query(t,O.Scope.BLOCK)!=null?this.format(t,u):v.prototype.formatAt.call(this,o,e,t,u)},h.prototype.insertAt=function(o,e,t){if(t==null||O.query(e,O.Scope.INLINE)!=null)v.prototype.insertAt.call(this,o,e,t);else{var u=this.split(o),a=O.create(e,t);u.parent.insertBefore(a,u)}},h.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,o,e)},h.blotName="block",h.scope=O.Scope.BLOCK_BLOT,h.tagName="P",h}(w.default);s.default=p},function(b,s,d){var k=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,h){v.__proto__=h}||function(v,h){for(var o in h)h.hasOwnProperty(o)&&(v[o]=h[o])};return function(v,h){p(v,h);function o(){this.constructor=v}v.prototype=h===null?Object.create(h):(o.prototype=h.prototype,new o)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(19),O=function(p){k(v,p);function v(){return p!==null&&p.apply(this,arguments)||this}return v.formats=function(h){},v.prototype.format=function(h,o){p.prototype.formatAt.call(this,0,this.length(),h,o)},v.prototype.formatAt=function(h,o,e,t){h===0&&o===this.length()?this.format(e,t):p.prototype.formatAt.call(this,h,o,e,t)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(w.default);s.default=O},function(b,s,d){var k=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var e in o)o.hasOwnProperty(e)&&(h[e]=o[e])};return function(h,o){v(h,o);function e(){this.constructor=h}h.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var w=d(19),O=d(1),p=function(v){k(h,v);function h(o){var e=v.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return h.create=function(o){return document.createTextNode(o)},h.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},h.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},h.prototype.index=function(o,e){return this.domNode===o?e:-1},h.prototype.insertAt=function(o,e,t){t==null?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):v.prototype.insertAt.call(this,o,e,t)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(o){v.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof h&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},h.prototype.position=function(o,e){return[this.domNode,o]},h.prototype.split=function(o,e){if(e===void 0&&(e=!1),!e){if(o===0)return this;if(o===this.length())return this.next}var t=O.create(this.domNode.splitText(o));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},h.prototype.update=function(o,e){var t=this;o.some(function(u){return u.type==="characterData"&&u.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=O.Scope.INLINE_BLOT,h}(w.default);s.default=p},function(b,s,d){var k=document.createElement("div");if(k.classList.toggle("test-class",!1),k.classList.contains("test-class")){var w=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,p){return arguments.length>1&&!this.contains(O)==!p?p:w.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,p){return p=p||0,this.substr(p,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,p){var v=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>v.length)&&(p=v.length),p-=O.length;var h=v.indexOf(O,p);return h!==-1&&h===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof p!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),h=v.length>>>0,o=arguments[1],e,t=0;t<h;t++)if(e=v[t],p.call(o,e,t,v))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(b,s){var d=-1,k=1,w=0;function O(n,c,S){if(n==c)return n?[[w,n]]:[];(S<0||n.length<S)&&(S=null);var E=o(n,c),x=n.substring(0,E);n=n.substring(E),c=c.substring(E),E=e(n,c);var P=n.substring(n.length-E);n=n.substring(0,n.length-E),c=c.substring(0,c.length-E);var m=p(n,c);return x&&m.unshift([w,x]),P&&m.push([w,P]),u(m),S!=null&&(m=r(m,S)),m=i(m),m}function p(n,c){var S;if(!n)return[[k,c]];if(!c)return[[d,n]];var E=n.length>c.length?n:c,x=n.length>c.length?c:n,P=E.indexOf(x);if(P!=-1)return S=[[k,E.substring(0,P)],[w,x],[k,E.substring(P+x.length)]],n.length>c.length&&(S[0][0]=S[2][0]=d),S;if(x.length==1)return[[d,n],[k,c]];var m=t(n,c);if(m){var y=m[0],g=m[1],N=m[2],L=m[3],D=m[4],U=O(y,N),F=O(g,L);return U.concat([[w,D]],F)}return v(n,c)}function v(n,c){for(var S=n.length,E=c.length,x=Math.ceil((S+E)/2),P=x,m=2*x,y=new Array(m),g=new Array(m),N=0;N<m;N++)y[N]=-1,g[N]=-1;y[P+1]=0,g[P+1]=0;for(var L=S-E,D=L%2!=0,U=0,F=0,Z=0,B=0,C=0;C<x;C++){for(var T=-C+U;T<=C-F;T+=2){var q=P+T,j;T==-C||T!=C&&y[q-1]<y[q+1]?j=y[q+1]:j=y[q-1]+1;for(var R=j-T;j<S&&R<E&&n.charAt(j)==c.charAt(R);)j++,R++;if(y[q]=j,j>S)F+=2;else if(R>E)U+=2;else if(D){var M=P+L-T;if(M>=0&&M<m&&g[M]!=-1){var A=S-g[M];if(j>=A)return h(n,c,j,R)}}}for(var $=-C+Z;$<=C-B;$+=2){var M=P+$,A;$==-C||$!=C&&g[M-1]<g[M+1]?A=g[M+1]:A=g[M-1]+1;for(var H=A-$;A<S&&H<E&&n.charAt(S-A-1)==c.charAt(E-H-1);)A++,H++;if(g[M]=A,A>S)B+=2;else if(H>E)Z+=2;else if(!D){var q=P+L-$;if(q>=0&&q<m&&y[q]!=-1){var j=y[q],R=P+j-q;if(A=S-A,j>=A)return h(n,c,j,R)}}}}return[[d,n],[k,c]]}function h(n,c,S,E){var x=n.substring(0,S),P=c.substring(0,E),m=n.substring(S),y=c.substring(E),g=O(x,P),N=O(m,y);return g.concat(N)}function o(n,c){if(!n||!c||n.charAt(0)!=c.charAt(0))return 0;for(var S=0,E=Math.min(n.length,c.length),x=E,P=0;S<x;)n.substring(P,x)==c.substring(P,x)?(S=x,P=S):E=x,x=Math.floor((E-S)/2+S);return x}function e(n,c){if(!n||!c||n.charAt(n.length-1)!=c.charAt(c.length-1))return 0;for(var S=0,E=Math.min(n.length,c.length),x=E,P=0;S<x;)n.substring(n.length-x,n.length-P)==c.substring(c.length-x,c.length-P)?(S=x,P=S):E=x,x=Math.floor((E-S)/2+S);return x}function t(n,c){var S=n.length>c.length?n:c,E=n.length>c.length?c:n;if(S.length<4||E.length*2<S.length)return null;function x(F,Z,B){for(var C=F.substring(B,B+Math.floor(F.length/4)),T=-1,q="",j,R,M,A;(T=Z.indexOf(C,T+1))!=-1;){var $=o(F.substring(B),Z.substring(T)),H=e(F.substring(0,B),Z.substring(0,T));q.length<H+$&&(q=Z.substring(T-H,T)+Z.substring(T,T+$),j=F.substring(0,B-H),R=F.substring(B+$),M=Z.substring(0,T-H),A=Z.substring(T+$))}return q.length*2>=F.length?[j,R,M,A,q]:null}var P=x(S,E,Math.ceil(S.length/4)),m=x(S,E,Math.ceil(S.length/2)),y;if(!P&&!m)return null;m?P?y=P[4].length>m[4].length?P:m:y=m:y=P;var g,N,L,D;n.length>c.length?(g=y[0],N=y[1],L=y[2],D=y[3]):(L=y[0],D=y[1],g=y[2],N=y[3]);var U=y[4];return[g,N,L,D,U]}function u(n){n.push([w,""]);for(var c=0,S=0,E=0,x="",P="",m;c<n.length;)switch(n[c][0]){case k:E++,P+=n[c][1],c++;break;case d:S++,x+=n[c][1],c++;break;case w:S+E>1?(S!==0&&E!==0&&(m=o(P,x),m!==0&&(c-S-E>0&&n[c-S-E-1][0]==w?n[c-S-E-1][1]+=P.substring(0,m):(n.splice(0,0,[w,P.substring(0,m)]),c++),P=P.substring(m),x=x.substring(m)),m=e(P,x),m!==0&&(n[c][1]=P.substring(P.length-m)+n[c][1],P=P.substring(0,P.length-m),x=x.substring(0,x.length-m))),S===0?n.splice(c-E,S+E,[k,P]):E===0?n.splice(c-S,S+E,[d,x]):n.splice(c-S-E,S+E,[d,x],[k,P]),c=c-S-E+(S?1:0)+(E?1:0)+1):c!==0&&n[c-1][0]==w?(n[c-1][1]+=n[c][1],n.splice(c,1)):c++,E=0,S=0,x="",P="";break}n[n.length-1][1]===""&&n.pop();var y=!1;for(c=1;c<n.length-1;)n[c-1][0]==w&&n[c+1][0]==w&&(n[c][1].substring(n[c][1].length-n[c-1][1].length)==n[c-1][1]?(n[c][1]=n[c-1][1]+n[c][1].substring(0,n[c][1].length-n[c-1][1].length),n[c+1][1]=n[c-1][1]+n[c+1][1],n.splice(c-1,1),y=!0):n[c][1].substring(0,n[c+1][1].length)==n[c+1][1]&&(n[c-1][1]+=n[c+1][1],n[c][1]=n[c][1].substring(n[c+1][1].length)+n[c+1][1],n.splice(c+1,1),y=!0)),c++;y&&u(n)}var a=O;a.INSERT=k,a.DELETE=d,a.EQUAL=w,b.exports=a;function l(n,c){if(c===0)return[w,n];for(var S=0,E=0;E<n.length;E++){var x=n[E];if(x[0]===d||x[0]===w){var P=S+x[1].length;if(c===P)return[E+1,n];if(c<P){n=n.slice();var m=c-S,y=[x[0],x[1].slice(0,m)],g=[x[0],x[1].slice(m)];return n.splice(E,1,y,g),[E+1,n]}else S=P}}throw new Error("cursor_pos is out of bounds!")}function r(n,c){var S=l(n,c),E=S[1],x=S[0],P=E[x],m=E[x+1];if(P==null)return n;if(P[0]!==w)return n;if(m!=null&&P[1]+m[1]===m[1]+P[1])return E.splice(x,2,m,P),f(E,x,2);if(m!=null&&m[1].indexOf(P[1])===0){E.splice(x,2,[m[0],P[1]],[0,P[1]]);var y=m[1].slice(P[1].length);return y.length>0&&E.splice(x+2,0,[m[0],y]),f(E,x,3)}else return n}function i(n){for(var c=!1,S=function(m){return m.charCodeAt(0)>=56320&&m.charCodeAt(0)<=57343},E=function(m){return m.charCodeAt(m.length-1)>=55296&&m.charCodeAt(m.length-1)<=56319},x=2;x<n.length;x+=1)n[x-2][0]===w&&E(n[x-2][1])&&n[x-1][0]===d&&S(n[x-1][1])&&n[x][0]===k&&S(n[x][1])&&(c=!0,n[x-1][1]=n[x-2][1].slice(-1)+n[x-1][1],n[x][1]=n[x-2][1].slice(-1)+n[x][1],n[x-2][1]=n[x-2][1].slice(0,-1));if(!c)return n;for(var P=[],x=0;x<n.length;x+=1)n[x][1].length>0&&P.push(n[x]);return P}function f(n,c,S){for(var E=c+S-1;E>=0&&E>=c-1;E--)if(E+1<n.length){var x=n[E],P=n[E+1];x[0]===P[1]&&n.splice(E,2,[x[0],x[1]+P[1]])}return n}},function(b,s){s=b.exports=typeof Object.keys=="function"?Object.keys:d,s.shim=d;function d(k){var w=[];for(var O in k)w.push(O);return w}},function(b,s){var d=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";s=b.exports=d?k:w,s.supported=k;function k(O){return Object.prototype.toString.call(O)=="[object Arguments]"}s.unsupported=w;function w(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(b,s){var d=Object.prototype.hasOwnProperty,k="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(k=!1));function O(v,h,o){this.fn=v,this.context=h,this.once=o||!1}function p(){this._events=new w,this._eventsCount=0}p.prototype.eventNames=function(){var h=[],o,e;if(this._eventsCount===0)return h;for(e in o=this._events)d.call(o,e)&&h.push(k?e.slice(1):e);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(o)):h},p.prototype.listeners=function(h,o){var e=k?k+h:h,t=this._events[e];if(o)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var u=0,a=t.length,l=new Array(a);u<a;u++)l[u]=t[u].fn;return l},p.prototype.emit=function(h,o,e,t,u,a){var l=k?k+h:h;if(!this._events[l])return!1;var r=this._events[l],i=arguments.length,f,n;if(r.fn){switch(r.once&&this.removeListener(h,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,e),!0;case 4:return r.fn.call(r.context,o,e,t),!0;case 5:return r.fn.call(r.context,o,e,t,u),!0;case 6:return r.fn.call(r.context,o,e,t,u,a),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var c=r.length,S;for(n=0;n<c;n++)switch(r[n].once&&this.removeListener(h,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,e);break;case 4:r[n].fn.call(r[n].context,o,e,t);break;default:if(!f)for(S=1,f=new Array(i-1);S<i;S++)f[S-1]=arguments[S];r[n].fn.apply(r[n].context,f)}}return!0},p.prototype.on=function(h,o,e){var t=new O(o,e||this),u=k?k+h:h;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},p.prototype.once=function(h,o,e){var t=new O(o,e||this,!0),u=k?k+h:h;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],t]:this._events[u].push(t):(this._events[u]=t,this._eventsCount++),this},p.prototype.removeListener=function(h,o,e,t){var u=k?k+h:h;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new w:delete this._events[u],this;var a=this._events[u];if(a.fn)a.fn===o&&(!t||a.once)&&(!e||a.context===e)&&(--this._eventsCount===0?this._events=new w:delete this._events[u]);else{for(var l=0,r=[],i=a.length;l<i;l++)(a[l].fn!==o||t&&!a[l].once||e&&a[l].context!==e)&&r.push(a[l]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new w:delete this._events[u]}return this},p.prototype.removeAllListeners=function(h){var o;return h?(o=k?k+h:h,this._events[o]&&(--this._eventsCount===0?this._events=new w:delete this._events[o])):(this._events=new w,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=k,p.EventEmitter=p,typeof b<"u"&&(b.exports=p)},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.matchText=s.matchSpacing=s.matchNewline=s.matchBlot=s.matchAttributor=s.default=void 0;var k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},w=function(){function G(V,Y){var J=[],Q=!0,ne=!1,re=void 0;try{for(var ie=V[Symbol.iterator](),ye;!(Q=(ye=ie.next()).done)&&(J.push(ye.value),!(Y&&J.length===Y));Q=!0);}catch(be){ne=!0,re=be}finally{try{!Q&&ie.return&&ie.return()}finally{if(ne)throw re}}return J}return function(V,Y){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return G(V,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function G(V,Y){for(var J=0;J<Y.length;J++){var Q=Y[J];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(V,Q.key,Q)}}return function(V,Y,J){return Y&&G(V.prototype,Y),J&&G(V,J),V}}(),p=d(3),v=g(p),h=d(2),o=g(h),e=d(0),t=g(e),u=d(5),a=g(u),l=d(10),r=g(l),i=d(9),f=g(i),n=d(36),c=d(37),S=d(13),E=g(S),x=d(26),P=d(38),m=d(39),y=d(40);function g(G){return G&&G.__esModule?G:{default:G}}function N(G,V,Y){return V in G?Object.defineProperty(G,V,{value:Y,enumerable:!0,configurable:!0,writable:!0}):G[V]=Y,G}function L(G,V){if(!(G instanceof V))throw new TypeError("Cannot call a class as a function")}function D(G,V){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:G}function U(G,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);G.prototype=Object.create(V&&V.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(G,V):G.__proto__=V)}var F=(0,r.default)("quill:clipboard"),Z="__ql-matcher",B=[[Node.TEXT_NODE,ce],[Node.TEXT_NODE,oe],["br",X],[Node.ELEMENT_NODE,oe],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,ae],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,pe],["li",te],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",ee]],C=[n.AlignAttribute,P.DirectionAttribute].reduce(function(G,V){return G[V.keyName]=V,G},{}),T=[n.AlignStyle,c.BackgroundStyle,x.ColorStyle,P.DirectionStyle,m.FontStyle,y.SizeStyle].reduce(function(G,V){return G[V.keyName]=V,G},{}),q=function(G){U(V,G);function V(Y,J){L(this,V);var Q=D(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,Y,J));return Q.quill.root.addEventListener("paste",Q.onPaste.bind(Q)),Q.container=Q.quill.addContainer("ql-clipboard"),Q.container.setAttribute("contenteditable",!0),Q.container.setAttribute("tabindex",-1),Q.matchers=[],B.concat(Q.options.matchers).forEach(function(ne){var re=w(ne,2),ie=re[0],ye=re[1];!J.matchVisual&&ye===ae||Q.addMatcher(ie,ye)}),Q}return O(V,[{key:"addMatcher",value:function(J,Q){this.matchers.push([J,Q])}},{key:"convert",value:function(J){if(typeof J=="string")return this.container.innerHTML=J.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[E.default.blotName]){var ne=this.container.innerText;return this.container.innerHTML="",new o.default().insert(ne,N({},E.default.blotName,Q[E.default.blotName]))}var re=this.prepareMatching(),ie=w(re,2),ye=ie[0],be=ie[1],ue=$(this.container,ye,be);return M(ue,`
`)&&ue.ops[ue.ops.length-1].attributes==null&&(ue=ue.compose(new o.default().retain(ue.length()-1).delete(1))),F.log("convert",this.container.innerHTML,ue),this.container.innerHTML="",ue}},{key:"dangerouslyPasteHTML",value:function(J,Q){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;if(typeof J=="string")this.quill.setContents(this.convert(J),Q),this.quill.setSelection(0,a.default.sources.SILENT);else{var re=this.convert(Q);this.quill.updateContents(new o.default().retain(J).concat(re),ne),this.quill.setSelection(J+re.length(),a.default.sources.SILENT)}}},{key:"onPaste",value:function(J){var Q=this;if(!(J.defaultPrevented||!this.quill.isEnabled())){var ne=this.quill.getSelection(),re=new o.default().retain(ne.index),ie=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(a.default.sources.SILENT),setTimeout(function(){re=re.concat(Q.convert()).delete(ne.length),Q.quill.updateContents(re,a.default.sources.USER),Q.quill.setSelection(re.length()-ne.length,a.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=ie,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var J=this,Q=[],ne=[];return this.matchers.forEach(function(re){var ie=w(re,2),ye=ie[0],be=ie[1];switch(ye){case Node.TEXT_NODE:ne.push(be);break;case Node.ELEMENT_NODE:Q.push(be);break;default:[].forEach.call(J.container.querySelectorAll(ye),function(ue){ue[Z]=ue[Z]||[],ue[Z].push(be)});break}}),[Q,ne]}}]),V}(f.default);q.DEFAULTS={matchers:[],matchVisual:!0};function j(G,V,Y){return(typeof V>"u"?"undefined":k(V))==="object"?Object.keys(V).reduce(function(J,Q){return j(J,Q,V[Q])},G):G.reduce(function(J,Q){return Q.attributes&&Q.attributes[V]?J.push(Q):J.insert(Q.insert,(0,v.default)({},N({},V,Y),Q.attributes))},new o.default)}function R(G){if(G.nodeType!==Node.ELEMENT_NODE)return{};var V="__ql-computed-style";return G[V]||(G[V]=window.getComputedStyle(G))}function M(G,V){for(var Y="",J=G.ops.length-1;J>=0&&Y.length<V.length;--J){var Q=G.ops[J];if(typeof Q.insert!="string")break;Y=Q.insert+Y}return Y.slice(-1*V.length)===V}function A(G){if(G.childNodes.length===0)return!1;var V=R(G);return["block","list-item"].indexOf(V.display)>-1}function $(G,V,Y){return G.nodeType===G.TEXT_NODE?Y.reduce(function(J,Q){return Q(G,J)},new o.default):G.nodeType===G.ELEMENT_NODE?[].reduce.call(G.childNodes||[],function(J,Q){var ne=$(Q,V,Y);return Q.nodeType===G.ELEMENT_NODE&&(ne=V.reduce(function(re,ie){return ie(Q,re)},ne),ne=(Q[Z]||[]).reduce(function(re,ie){return ie(Q,re)},ne)),J.concat(ne)},new o.default):new o.default}function H(G,V,Y){return j(Y,G,!0)}function z(G,V){var Y=t.default.Attributor.Attribute.keys(G),J=t.default.Attributor.Class.keys(G),Q=t.default.Attributor.Style.keys(G),ne={};return Y.concat(J).concat(Q).forEach(function(re){var ie=t.default.query(re,t.default.Scope.ATTRIBUTE);ie!=null&&(ne[ie.attrName]=ie.value(G),ne[ie.attrName])||(ie=C[re],ie!=null&&(ie.attrName===re||ie.keyName===re)&&(ne[ie.attrName]=ie.value(G)||void 0),ie=T[re],ie!=null&&(ie.attrName===re||ie.keyName===re)&&(ie=T[re],ne[ie.attrName]=ie.value(G)||void 0))}),Object.keys(ne).length>0&&(V=j(V,ne)),V}function W(G,V){var Y=t.default.query(G);if(Y==null)return V;if(Y.prototype instanceof t.default.Embed){var J={},Q=Y.value(G);Q!=null&&(J[Y.blotName]=Q,V=new o.default().insert(J,Y.formats(G)))}else typeof Y.formats=="function"&&(V=j(V,Y.blotName,Y.formats(G)));return V}function X(G,V){return M(V,`
`)||V.insert(`
`),V}function ee(){return new o.default}function te(G,V){var Y=t.default.query(G);if(Y==null||Y.blotName!=="list-item"||!M(V,`
`))return V;for(var J=-1,Q=G.parentNode;!Q.classList.contains("ql-clipboard");)(t.default.query(Q)||{}).blotName==="list"&&(J+=1),Q=Q.parentNode;return J<=0?V:V.compose(new o.default().retain(V.length()-1).retain(1,{indent:J}))}function oe(G,V){return M(V,`
`)||(A(G)||V.length()>0&&G.nextSibling&&A(G.nextSibling))&&V.insert(`
`),V}function ae(G,V){if(A(G)&&G.nextElementSibling!=null&&!M(V,`
`)){var Y=G.offsetHeight+parseFloat(R(G).marginTop)+parseFloat(R(G).marginBottom);G.nextElementSibling.offsetTop>G.offsetTop+Y*1.5&&V.insert(`
`)}return V}function pe(G,V){var Y={},J=G.style||{};return J.fontStyle&&R(G).fontStyle==="italic"&&(Y.italic=!0),J.fontWeight&&(R(G).fontWeight.startsWith("bold")||parseInt(R(G).fontWeight)>=700)&&(Y.bold=!0),Object.keys(Y).length>0&&(V=j(V,Y)),parseFloat(J.textIndent||0)>0&&(V=new o.default().insert(" ").concat(V)),V}function ce(G,V){var Y=G.data;if(G.parentNode.tagName==="O:P")return V.insert(Y.trim());if(Y.trim().length===0&&G.parentNode.classList.contains("ql-clipboard"))return V;if(!R(G.parentNode).whiteSpace.startsWith("pre")){var J=function(ne,re){return re=re.replace(/[^\u00a0]/g,""),re.length<1&&ne?" ":re};Y=Y.replace(/\r\n/g," ").replace(/\n/g," "),Y=Y.replace(/\s\s+/g,J.bind(J,!0)),(G.previousSibling==null&&A(G.parentNode)||G.previousSibling!=null&&A(G.previousSibling))&&(Y=Y.replace(/^\s+/,J.bind(J,!1))),(G.nextSibling==null&&A(G.parentNode)||G.nextSibling!=null&&A(G.nextSibling))&&(Y=Y.replace(/\s+$/,J.bind(J,!1)))}return V.insert(Y)}s.default=q,s.matchAttributor=z,s.matchBlot=W,s.matchNewline=oe,s.matchSpacing=ae,s.matchText=ce},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(6),p=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return k(a,[{key:"optimize",value:function(r){w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),a}(p.default);t.blotName="bold",t.tagName=["STRONG","B"],s.default=t},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.addControls=s.default=void 0;var k=function(){function y(g,N){var L=[],D=!0,U=!1,F=void 0;try{for(var Z=g[Symbol.iterator](),B;!(D=(B=Z.next()).done)&&(L.push(B.value),!(N&&L.length===N));D=!0);}catch(C){U=!0,F=C}finally{try{!D&&Z.return&&Z.return()}finally{if(U)throw F}}return L}return function(g,N){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return y(g,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function y(g,N){for(var L=0;L<N.length;L++){var D=N[L];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(g,D.key,D)}}return function(g,N,L){return N&&y(g.prototype,N),L&&y(g,L),g}}(),O=d(2),p=r(O),v=d(0),h=r(v),o=d(5),e=r(o),t=d(10),u=r(t),a=d(9),l=r(a);function r(y){return y&&y.__esModule?y:{default:y}}function i(y,g,N){return g in y?Object.defineProperty(y,g,{value:N,enumerable:!0,configurable:!0,writable:!0}):y[g]=N,y}function f(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function n(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function c(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var S=(0,u.default)("quill:toolbar"),E=function(y){c(g,y);function g(N,L){f(this,g);var D=n(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,N,L));if(Array.isArray(D.options.container)){var U=document.createElement("div");P(U,D.options.container),N.container.parentNode.insertBefore(U,N.container),D.container=U}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var F;return F=S.error("Container required for toolbar",D.options),n(D,F)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(Z){D.addHandler(Z,D.options.handlers[Z])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(Z){D.attach(Z)}),D.quill.on(e.default.events.EDITOR_CHANGE,function(Z,B){Z===e.default.events.SELECTION_CHANGE&&D.update(B)}),D.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var Z=D.quill.selection.getRange(),B=k(Z,1),C=B[0];D.update(C)}),D}return w(g,[{key:"addHandler",value:function(L,D){this.handlers[L]=D}},{key:"attach",value:function(L){var D=this,U=[].find.call(L.classList,function(Z){return Z.indexOf("ql-")===0});if(U){if(U=U.slice(3),L.tagName==="BUTTON"&&L.setAttribute("type","button"),this.handlers[U]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[U]==null){S.warn("ignoring attaching to disabled format",U,L);return}if(h.default.query(U)==null){S.warn("ignoring attaching to nonexistent format",U,L);return}}var F=L.tagName==="SELECT"?"change":"click";L.addEventListener(F,function(Z){var B=void 0;if(L.tagName==="SELECT"){if(L.selectedIndex<0)return;var C=L.options[L.selectedIndex];C.hasAttribute("selected")?B=!1:B=C.value||!1}else L.classList.contains("ql-active")?B=!1:B=L.value||!L.hasAttribute("value"),Z.preventDefault();D.quill.focus();var T=D.quill.selection.getRange(),q=k(T,1),j=q[0];if(D.handlers[U]!=null)D.handlers[U].call(D,B);else if(h.default.query(U).prototype instanceof h.default.Embed){if(B=prompt("Enter "+U),!B)return;D.quill.updateContents(new p.default().retain(j.index).delete(j.length).insert(i({},U,B)),e.default.sources.USER)}else D.quill.format(U,B,e.default.sources.USER);D.update(j)}),this.controls.push([U,L])}}},{key:"update",value:function(L){var D=L==null?{}:this.quill.getFormat(L);this.controls.forEach(function(U){var F=k(U,2),Z=F[0],B=F[1];if(B.tagName==="SELECT"){var C=void 0;if(L==null)C=null;else if(D[Z]==null)C=B.querySelector("option[selected]");else if(!Array.isArray(D[Z])){var T=D[Z];typeof T=="string"&&(T=T.replace(/\"/g,'\\"')),C=B.querySelector('option[value="'+T+'"]')}C==null?(B.value="",B.selectedIndex=-1):C.selected=!0}else if(L==null)B.classList.remove("ql-active");else if(B.hasAttribute("value")){var q=D[Z]===B.getAttribute("value")||D[Z]!=null&&D[Z].toString()===B.getAttribute("value")||D[Z]==null&&!B.getAttribute("value");B.classList.toggle("ql-active",q)}else B.classList.toggle("ql-active",D[Z]!=null)})}}]),g}(l.default);E.DEFAULTS={};function x(y,g,N){var L=document.createElement("button");L.setAttribute("type","button"),L.classList.add("ql-"+g),N!=null&&(L.value=N),y.appendChild(L)}function P(y,g){Array.isArray(g[0])||(g=[g]),g.forEach(function(N){var L=document.createElement("span");L.classList.add("ql-formats"),N.forEach(function(D){if(typeof D=="string")x(L,D);else{var U=Object.keys(D)[0],F=D[U];Array.isArray(F)?m(L,U,F):x(L,U,F)}}),y.appendChild(L)})}function m(y,g,N){var L=document.createElement("select");L.classList.add("ql-"+g),N.forEach(function(D){var U=document.createElement("option");D!==!1?U.setAttribute("value",D):U.setAttribute("selected","selected"),L.appendChild(U)}),y.appendChild(L)}E.DEFAULTS={container:null,handlers:{clean:function(){var g=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var L=this.quill.getFormat();Object.keys(L).forEach(function(D){h.default.query(D,h.default.Scope.INLINE)!=null&&g.quill.format(D,!1)})}else this.quill.removeFormat(N,e.default.sources.USER)},direction:function(g){var N=this.quill.getFormat().align;g==="rtl"&&N==null?this.quill.format("align","right",e.default.sources.USER):!g&&N==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",g,e.default.sources.USER)},indent:function(g){var N=this.quill.getSelection(),L=this.quill.getFormat(N),D=parseInt(L.indent||0);if(g==="+1"||g==="-1"){var U=g==="+1"?1:-1;L.direction==="rtl"&&(U*=-1),this.quill.format("indent",D+U,e.default.sources.USER)}},link:function(g){g===!0&&(g=prompt("Enter link URL:")),this.quill.format("link",g,e.default.sources.USER)},list:function(g){var N=this.quill.getSelection(),L=this.quill.getFormat(N);g==="check"?L.list==="checked"||L.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",g,e.default.sources.USER)}}},s.default=E,s.addControls=P},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(28),p=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(l,r){h(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return k(a,[{key:"buildItem",value:function(r){var i=w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";f&&(f.tagName==="line"?f.style.stroke=n:f.style.fill=n)}}]),a}(p.default);s.default=t},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(28),p=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(l,r){h(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,l));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return k(a,[{key:"selectItem",value:function(r,i){w(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),a}(p.default);s.default=t},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function p(v,h){for(var o=0;o<h.length;o++){var e=h[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,h,o){return h&&p(v.prototype,h),o&&p(v,o),v}}();function w(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}var O=function(){function p(v,h){var o=this;w(this,p),this.quill=v,this.boundsContainer=h||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return k(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(h){var o=h.left+h.width/2-this.root.offsetWidth/2,e=h.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),a=0;if(u.right>t.right&&(a=t.right-u.right,this.root.style.left=o+a+"px"),u.left<t.left&&(a=t.left-u.left,this.root.style.left=o+a+"px"),u.bottom>t.bottom){var l=u.bottom-u.top,r=h.bottom-h.top+l;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p}();s.default=O},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function m(y,g){var N=[],L=!0,D=!1,U=void 0;try{for(var F=y[Symbol.iterator](),Z;!(L=(Z=F.next()).done)&&(N.push(Z.value),!(g&&N.length===g));L=!0);}catch(B){D=!0,U=B}finally{try{!L&&F.return&&F.return()}finally{if(D)throw U}}return N}return function(y,g){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return m(y,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function m(y,g,N){y===null&&(y=Function.prototype);var L=Object.getOwnPropertyDescriptor(y,g);if(L===void 0){var D=Object.getPrototypeOf(y);return D===null?void 0:m(D,g,N)}else{if("value"in L)return L.value;var U=L.get;return U===void 0?void 0:U.call(N)}},O=function(){function m(y,g){for(var N=0;N<g.length;N++){var L=g[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(y,L.key,L)}}return function(y,g,N){return g&&m(y.prototype,g),N&&m(y,N),y}}(),p=d(3),v=f(p),h=d(8),o=f(h),e=d(43),t=f(e),u=d(27),a=f(u),l=d(15),r=d(41),i=f(r);function f(m){return m&&m.__esModule?m:{default:m}}function n(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function c(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function S(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(m){S(y,m);function y(g,N){n(this,y),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=E);var L=c(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,g,N));return L.quill.container.classList.add("ql-snow"),L}return O(y,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),i.default),this.tooltip=new P(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(L,D){N.handlers.link.call(N,!D.format.link)})}}]),y}(t.default);x.DEFAULTS=(0,v.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(y){if(y){var g=this.quill.getSelection();if(g==null||g.length==0)return;var N=this.quill.getText(g);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var L=this.quill.theme.tooltip;L.edit("link",N)}else this.quill.format("link",!1)}}}}});var P=function(m){S(y,m);function y(g,N){n(this,y);var L=c(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,g,N));return L.preview=L.root.querySelector("a.ql-preview"),L}return O(y,[{key:"listen",value:function(){var N=this;w(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(L){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),L.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(L){if(N.linkRange!=null){var D=N.linkRange;N.restoreFocus(),N.quill.formatText(D,"link",!1,o.default.sources.USER),delete N.linkRange}L.preventDefault(),N.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(L,D,U){if(L!=null){if(L.length===0&&U===o.default.sources.USER){var F=N.quill.scroll.descendant(a.default,L.index),Z=k(F,2),B=Z[0],C=Z[1];if(B!=null){N.linkRange=new l.Range(L.index-C,B.length());var T=a.default.formats(B.domNode);N.preview.textContent=T,N.preview.setAttribute("href",T),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){w(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),y}(e.BaseTooltip);P.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(""),s.default=x},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(29),w=Q(k),O=d(36),p=d(38),v=d(64),h=d(65),o=Q(h),e=d(66),t=Q(e),u=d(67),a=Q(u),l=d(37),r=d(26),i=d(39),f=d(40),n=d(56),c=Q(n),S=d(68),E=Q(S),x=d(27),P=Q(x),m=d(69),y=Q(m),g=d(70),N=Q(g),L=d(71),D=Q(L),U=d(72),F=Q(U),Z=d(73),B=Q(Z),C=d(13),T=Q(C),q=d(74),j=Q(q),R=d(75),M=Q(R),A=d(57),$=Q(A),H=d(41),z=Q(H),W=d(28),X=Q(W),ee=d(59),te=Q(ee),oe=d(60),ae=Q(oe),pe=d(61),ce=Q(pe),G=d(108),V=Q(G),Y=d(62),J=Q(Y);function Q(ne){return ne&&ne.__esModule?ne:{default:ne}}w.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":l.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":l.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),w.default.register({"formats/align":O.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":v.IndentClass,"formats/background":l.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":T.default,"formats/header":t.default,"formats/list":a.default,"formats/bold":c.default,"formats/code":C.Code,"formats/italic":E.default,"formats/link":P.default,"formats/script":y.default,"formats/strike":N.default,"formats/underline":D.default,"formats/image":F.default,"formats/video":B.default,"formats/list/item":u.ListItem,"modules/formula":j.default,"modules/syntax":M.default,"modules/toolbar":$.default,"themes/bubble":V.default,"themes/snow":J.default,"ui/icons":z.default,"ui/picker":X.default,"ui/icon-picker":ae.default,"ui/color-picker":te.default,"ui/tooltip":ce.default},!0),s.default=w.default},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.IndentClass=void 0;var k=function(){function a(l,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(l,f.key,f)}}return function(l,r,i){return r&&a(l.prototype,r),i&&a(l,i),l}}(),w=function a(l,r,i){l===null&&(l=Function.prototype);var f=Object.getOwnPropertyDescriptor(l,r);if(f===void 0){var n=Object.getPrototypeOf(l);return n===null?void 0:a(n,r,i)}else{if("value"in f)return f.value;var c=f.get;return c===void 0?void 0:c.call(i)}},O=d(0),p=v(O);function v(a){return a&&a.__esModule?a:{default:a}}function h(a,l){if(!(a instanceof l))throw new TypeError("Cannot call a class as a function")}function o(a,l){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:a}function e(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);a.prototype=Object.create(l&&l.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(a,l):a.__proto__=l)}var t=function(a){e(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return k(l,[{key:"add",value:function(i,f){if(f==="+1"||f==="-1"){var n=this.value(i)||0;f=f==="+1"?n+1:n-1}return f===0?(this.remove(i),!0):w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,f)||w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(w(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,i))||void 0}}]),l}(p.default.Attributor.Class),u=new t("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});s.IndentClass=u},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(4),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="blockquote",o.tagName="blockquote",s.default=o},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function t(u,a){for(var l=0;l<a.length;l++){var r=a[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,a,l){return a&&t(u.prototype,a),l&&t(u,l),u}}(),w=d(4),O=p(w);function p(t){return t&&t.__esModule?t:{default:t}}function v(t,u){if(!(t instanceof u))throw new TypeError("Cannot call a class as a function")}function h(t,u){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:t}function o(t,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);t.prototype=Object.create(u&&u.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(t,u):t.__proto__=u)}var e=function(t){o(u,t);function u(){return v(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return k(u,null,[{key:"formats",value:function(l){return this.tagName.indexOf(l.tagName)+1}}]),u}(O.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],s.default=e},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.ListItem=void 0;var k=function(){function n(c,S){for(var E=0;E<S.length;E++){var x=S[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(c,x.key,x)}}return function(c,S,E){return S&&n(c.prototype,S),E&&n(c,E),c}}(),w=function n(c,S,E){c===null&&(c=Function.prototype);var x=Object.getOwnPropertyDescriptor(c,S);if(x===void 0){var P=Object.getPrototypeOf(c);return P===null?void 0:n(P,S,E)}else{if("value"in x)return x.value;var m=x.get;return m===void 0?void 0:m.call(E)}},O=d(0),p=t(O),v=d(4),h=t(v),o=d(25),e=t(o);function t(n){return n&&n.__esModule?n:{default:n}}function u(n,c,S){return c in n?Object.defineProperty(n,c,{value:S,enumerable:!0,configurable:!0,writable:!0}):n[c]=S,n}function a(n,c){if(!(n instanceof c))throw new TypeError("Cannot call a class as a function")}function l(n,c){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:n}function r(n,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);n.prototype=Object.create(c&&c.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(n,c):n.__proto__=c)}var i=function(n){r(c,n);function c(){return a(this,c),l(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return k(c,[{key:"format",value:function(E,x){E===f.blotName&&!x?this.replaceWith(p.default.create(this.statics.scope)):w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,E,x)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,x){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,x),this):(this.parent.unwrap(),w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replaceWith",this).call(this,E,x))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:w(c.__proto__||Object.getPrototypeOf(c),"formats",this).call(this,E)}}]),c}(h.default);i.blotName="list-item",i.tagName="LI";var f=function(n){r(c,n),k(c,null,[{key:"create",value:function(E){var x=E==="ordered"?"OL":"UL",P=w(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,x);return(E==="checked"||E==="unchecked")&&P.setAttribute("data-checked",E==="checked"),P}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function c(S){a(this,c);var E=l(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,S)),x=function(m){if(m.target.parentNode===S){var y=E.statics.formats(S),g=p.default.find(m.target);y==="checked"?g.format("list","unchecked"):y==="unchecked"&&g.format("list","checked")}};return S.addEventListener("touchstart",x),S.addEventListener("mousedown",x),E}return k(c,[{key:"format",value:function(E,x){this.children.length>0&&this.children.tail.format(E,x)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,x){if(E instanceof i)w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"insertBefore",this).call(this,E,x);else{var P=x==null?this.length():x.offset(this),m=this.split(P);m.parent.insertBefore(E,m)}}},{key:"optimize",value:function(E){w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,E);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&x.domNode.tagName===this.domNode.tagName&&x.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(x.moveChildren(this),x.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var x=p.default.create(this.statics.defaultChild);E.moveChildren(x),this.appendChild(x)}w(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replace",this).call(this,E)}}]),c}(e.default);f.blotName="list",f.scope=p.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],s.ListItem=i,s.default=f},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(56),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="italic",o.tagName=["EM","I"],s.default=o},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function u(a,l){for(var r=0;r<l.length;r++){var i=l[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,l,r){return l&&u(a.prototype,l),r&&u(a,r),a}}(),w=function u(a,l,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,l);if(i===void 0){var f=Object.getPrototypeOf(a);return f===null?void 0:u(f,l,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=d(6),p=v(O);function v(u){return u&&u.__esModule?u:{default:u}}function h(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")}function o(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:u}function e(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(u,a):u.__proto__=a)}var t=function(u){e(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return k(a,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):w(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),a}(p.default);t.blotName="script",t.tagName=["SUB","SUP"],s.default=t},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(6),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="strike",o.tagName="S",s.default=o},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=d(6),w=O(k);function O(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function h(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o=function(e){h(t,e);function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(w.default);o.blotName="underline",o.tagName="U",s.default=o},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(0),p=h(O),v=d(27);function h(l){return l&&l.__esModule?l:{default:l}}function o(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function e(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function t(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var u=["alt","height","width"],a=function(l){t(r,l);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return typeof f=="string"&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,c){return f.hasAttribute(c)&&(n[c]=f.getAttribute(c)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,v.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(p.default.Embed);a.blotName="image",a.tagName="IMG",s.default=a},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0});var k=function(){function l(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&l(r.prototype,i),f&&l(r,f),r}}(),w=function l(r,i,f){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var c=Object.getPrototypeOf(r);return c===null?void 0:l(c,i,f)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(f)}},O=d(4),p=d(27),v=h(p);function h(l){return l&&l.__esModule?l:{default:l}}function o(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}function e(l,r){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:l}function t(l,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);l.prototype=Object.create(r&&r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(l,r):l.__proto__=r)}var u=["height","width"],a=function(l){t(r,l);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return k(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):w(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=w(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,c){return f.hasAttribute(c)&&(n[c]=f.getAttribute(c)),n},{})}},{key:"sanitize",value:function(f){return v.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(O.BlockEmbed);a.blotName="video",a.className="ql-video",a.tagName="IFRAME",s.default=a},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.FormulaBlot=void 0;var k=function(){function f(n,c){for(var S=0;S<c.length;S++){var E=c[S];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(n,E.key,E)}}return function(n,c,S){return c&&f(n.prototype,c),S&&f(n,S),n}}(),w=function f(n,c,S){n===null&&(n=Function.prototype);var E=Object.getOwnPropertyDescriptor(n,c);if(E===void 0){var x=Object.getPrototypeOf(n);return x===null?void 0:f(x,c,S)}else{if("value"in E)return E.value;var P=E.get;return P===void 0?void 0:P.call(S)}},O=d(35),p=t(O),v=d(5),h=t(v),o=d(9),e=t(o);function t(f){return f&&f.__esModule?f:{default:f}}function u(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function a(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:f}function l(f,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var r=function(f){l(n,f);function n(){return u(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return k(n,null,[{key:"create",value:function(S){var E=w(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",S)),E}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),n}(p.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){l(n,f),k(n,null,[{key:"register",value:function(){h.default.register(r,!0)}}]);function n(){u(this,n);var c=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return c}return n}(e.default);s.FormulaBlot=r,s.default=i},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.CodeToken=s.CodeBlock=void 0;var k=function(){function S(E,x){for(var P=0;P<x.length;P++){var m=x[P];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(E,m.key,m)}}return function(E,x,P){return x&&S(E.prototype,x),P&&S(E,P),E}}(),w=function S(E,x,P){E===null&&(E=Function.prototype);var m=Object.getOwnPropertyDescriptor(E,x);if(m===void 0){var y=Object.getPrototypeOf(E);return y===null?void 0:S(y,x,P)}else{if("value"in m)return m.value;var g=m.get;return g===void 0?void 0:g.call(P)}},O=d(0),p=a(O),v=d(5),h=a(v),o=d(9),e=a(o),t=d(13),u=a(t);function a(S){return S&&S.__esModule?S:{default:S}}function l(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}function r(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function i(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var f=function(S){i(E,S);function E(){return l(this,E),r(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return k(E,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),w(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var m=this.domNode.textContent;this.cachedText!==m&&((m.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(m),this.domNode.normalize(),this.attach()),this.cachedText=m)}}]),E}(u.default);f.className="ql-syntax";var n=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),c=function(S){i(E,S),k(E,null,[{key:"register",value:function(){h.default.register(n,!0),h.default.register(f,!0)}}]);function E(x,P){l(this,E);var m=r(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x,P));if(typeof m.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var y=null;return m.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(y),y=setTimeout(function(){m.highlight(),y=null},m.options.interval)}),m.highlight(),m}return k(E,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var m=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(y){y.highlight(P.options.highlight)}),this.quill.update(h.default.sources.SILENT),m!=null&&this.quill.setSelection(m,h.default.sources.SILENT)}}}]),E}(e.default);c.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var E=window.hljs.highlightAuto(S);return E.value}}(),interval:1e3},s.CodeBlock=f,s.CodeToken=n,s.default=c},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(b,s){b.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(b,s){b.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(b,s){b.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(b,s){b.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(b,s){b.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(b,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BubbleTooltip=void 0;var k=function E(x,P,m){x===null&&(x=Function.prototype);var y=Object.getOwnPropertyDescriptor(x,P);if(y===void 0){var g=Object.getPrototypeOf(x);return g===null?void 0:E(g,P,m)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(m)}},w=function(){function E(x,P){for(var m=0;m<P.length;m++){var y=P[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(x,y.key,y)}}return function(x,P,m){return P&&E(x.prototype,P),m&&E(x,m),x}}(),O=d(3),p=l(O),v=d(8),h=l(v),o=d(43),e=l(o),t=d(15),u=d(41),a=l(u);function l(E){return E&&E.__esModule?E:{default:E}}function r(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function i(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function f(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],c=function(E){f(x,E);function x(P,m){r(this,x),m.modules.toolbar!=null&&m.modules.toolbar.container==null&&(m.modules.toolbar.container=n);var y=i(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P,m));return y.quill.container.classList.add("ql-bubble"),y}return w(x,[{key:"extendToolbar",value:function(m){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(m.container),this.buildButtons([].slice.call(m.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(m.container.querySelectorAll("select")),a.default)}}]),x}(e.default);c.DEFAULTS=(0,p.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(x){x?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(E){f(x,E);function x(P,m){r(this,x);var y=i(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P,m));return y.quill.on(h.default.events.EDITOR_CHANGE,function(g,N,L,D){if(g===h.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&D===h.default.sources.USER){y.show(),y.root.style.left="0px",y.root.style.width="",y.root.style.width=y.root.offsetWidth+"px";var U=y.quill.getLines(N.index,N.length);if(U.length===1)y.position(y.quill.getBounds(N));else{var F=U[U.length-1],Z=y.quill.getIndex(F),B=Math.min(F.length()-1,N.index+N.length-Z),C=y.quill.getBounds(new t.Range(Z,B));y.position(C)}}else document.activeElement!==y.textbox&&y.quill.hasFocus()&&y.hide()}),y}return w(x,[{key:"listen",value:function(){var m=this;k(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){m.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!m.root.classList.contains("ql-hidden")){var y=m.quill.getSelection();y!=null&&m.position(m.quill.getBounds(y))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(m){var y=k(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"position",this).call(this,m),g=this.root.querySelector(".ql-tooltip-arrow");if(g.style.marginLeft="",y===0)return y;g.style.marginLeft=-1*y-g.offsetWidth/2+"px"}}]),x}(o.BaseTooltip);S.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(""),s.BubbleTooltip=S,s.default=c},function(b,s,d){b.exports=d(63)}]).default})})(tn);var Zu=tn.exports,Qu=ve&&ve.__extends||function(){var _=function(I,b){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var k in d)d.hasOwnProperty(k)&&(s[k]=d[k])},_(I,b)};return function(I,b){_(I,b);function s(){this.constructor=I}I.prototype=b===null?Object.create(b):(s.prototype=b.prototype,new s)}}(),Fe=ve&&ve.__assign||function(){return Fe=Object.assign||function(_){for(var I,b=1,s=arguments.length;b<s;b++){I=arguments[b];for(var d in I)Object.prototype.hasOwnProperty.call(I,d)&&(_[d]=I[d])}return _},Fe.apply(this,arguments)},Yu=ve&&ve.__spreadArrays||function(){for(var _=0,I=0,b=arguments.length;I<b;I++)_+=arguments[I].length;for(var s=Array(_),d=0,I=0;I<b;I++)for(var k=arguments[I],w=0,O=k.length;w<O;w++,d++)s[d]=k[w];return s},We=ve&&ve.__importDefault||function(_){return _&&_.__esModule?_:{default:_}},me=We(de),Xu=We(an),Re=We(Wu),Ct=We(Zu),Ju=function(_){Qu(I,_);function I(b){var s=_.call(this,b)||this;s.dirtyProps=["modules","formats","bounds","theme","children"],s.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],s.state={generation:0},s.selection=null,s.onEditorChange=function(k,w,O,p){var v,h,o,e;k==="text-change"?(h=(v=s).onEditorChangeText)===null||h===void 0||h.call(v,s.editor.root.innerHTML,w,p,s.unprivilegedEditor):k==="selection-change"&&((e=(o=s).onEditorChangeSelection)===null||e===void 0||e.call(o,w,p,s.unprivilegedEditor))};var d=s.isControlled()?b.value:b.defaultValue;return s.value=d??"",s}return I.prototype.validateProps=function(b){var s;if(me.default.Children.count(b.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(me.default.Children.count(b.children)){var d=me.default.Children.only(b.children);if(((s=d)===null||s===void 0?void 0:s.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&b.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},I.prototype.shouldComponentUpdate=function(b,s){var d=this,k;if(this.validateProps(b),!this.editor||this.state.generation!==s.generation)return!0;if("value"in b){var w=this.getEditorContents(),O=(k=b.value,k??"");this.isEqualValue(O,w)||this.setEditorContents(this.editor,O)}return b.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,b.readOnly),Yu(this.cleanProps,this.dirtyProps).some(function(p){return!Re.default(b[p],d.props[p])})},I.prototype.shouldComponentRegenerate=function(b){var s=this;return this.dirtyProps.some(function(d){return!Re.default(b[d],s.props[d])})},I.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},I.prototype.componentWillUnmount=function(){this.destroyEditor()},I.prototype.componentDidUpdate=function(b,s){var d=this;if(this.editor&&this.shouldComponentRegenerate(b)){var k=this.editor.getContents(),w=this.editor.getSelection();this.regenerationSnapshot={delta:k,selection:w},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==s.generation){var O=this.regenerationSnapshot,k=O.delta,p=O.selection;delete this.regenerationSnapshot,this.instantiateEditor();var v=this.editor;v.setContents(k),Bt(function(){return d.setEditorSelection(v,p)})}},I.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},I.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},I.prototype.isControlled=function(){return"value"in this.props},I.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},I.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},I.prototype.createEditor=function(b,s){var d=new Ct.default(b,s);return s.tabIndex!=null&&this.setEditorTabIndex(d,s.tabIndex),this.hookEditor(d),d},I.prototype.hookEditor=function(b){this.unprivilegedEditor=this.makeUnprivilegedEditor(b),b.on("editor-change",this.onEditorChange)},I.prototype.unhookEditor=function(b){b.off("editor-change",this.onEditorChange)},I.prototype.getEditorContents=function(){return this.value},I.prototype.getEditorSelection=function(){return this.selection},I.prototype.isDelta=function(b){return b&&b.ops},I.prototype.isEqualValue=function(b,s){return this.isDelta(b)&&this.isDelta(s)?Re.default(b.ops,s.ops):Re.default(b,s)},I.prototype.setEditorContents=function(b,s){var d=this;this.value=s;var k=this.getEditorSelection();typeof s=="string"?b.setContents(b.clipboard.convert(s)):b.setContents(s),Bt(function(){return d.setEditorSelection(b,k)})},I.prototype.setEditorSelection=function(b,s){if(this.selection=s,s){var d=b.getLength();s.index=Math.max(0,Math.min(s.index,d-1)),s.length=Math.max(0,Math.min(s.length,d-1-s.index)),b.setSelection(s)}},I.prototype.setEditorTabIndex=function(b,s){var d,k;!((k=(d=b)===null||d===void 0?void 0:d.scroll)===null||k===void 0)&&k.domNode&&(b.scroll.domNode.tabIndex=s)},I.prototype.setEditorReadOnly=function(b,s){s?b.disable():b.enable()},I.prototype.makeUnprivilegedEditor=function(b){var s=b;return{getHTML:function(){return s.root.innerHTML},getLength:s.getLength.bind(s),getText:s.getText.bind(s),getContents:s.getContents.bind(s),getSelection:s.getSelection.bind(s),getBounds:s.getBounds.bind(s)}},I.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var b=Xu.default.findDOMNode(this.editingArea);if(!b)throw new Error("Cannot find element for editing area");if(b.nodeType===3)throw new Error("Editing area cannot be a text node");return b},I.prototype.renderEditingArea=function(){var b=this,s=this.props,d=s.children,k=s.preserveWhitespace,w=this.state.generation,O={key:w,ref:function(p){b.editingArea=p}};return me.default.Children.count(d)?me.default.cloneElement(me.default.Children.only(d),O):k?me.default.createElement("pre",Fe({},O)):me.default.createElement("div",Fe({},O))},I.prototype.render=function(){var b;return me.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(b=this.props.className,b??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},I.prototype.onEditorChangeText=function(b,s,d,k){var w,O;if(this.editor){var p=this.isDelta(this.value)?k.getContents():k.getHTML();p!==this.getEditorContents()&&(this.lastDeltaChangeSet=s,this.value=p,(O=(w=this.props).onChange)===null||O===void 0||O.call(w,b,s,d,k))}},I.prototype.onEditorChangeSelection=function(b,s,d){var k,w,O,p,v,h;if(this.editor){var o=this.getEditorSelection(),e=!o&&b,t=o&&!b;Re.default(b,o)||(this.selection=b,(w=(k=this.props).onChangeSelection)===null||w===void 0||w.call(k,b,s,d),e?(p=(O=this.props).onFocus)===null||p===void 0||p.call(O,b,s,d):t&&((h=(v=this.props).onBlur)===null||h===void 0||h.call(v,o,s,d)))}},I.prototype.focus=function(){this.editor&&this.editor.focus()},I.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},I.displayName="React Quill",I.Quill=Ct.default,I.defaultProps={theme:"snow",modules:{},readOnly:!1},I}(me.default.Component);function Bt(_){Promise.resolve().then(_)}var es=Ju;const Te=ln(es),ts=_=>{const I=un(),{mode:b,qpcode:s,set:d,teachcode:k,tempcode:w,type:O,year:p,disabled:v}=_.element;let h="https://omr-files.s3.ap-south-1.amazonaws.com/",o=localStorage.getItem("dbname");const[e,t]=de.useState([]),[u,a]=de.useState(""),[l,r]=de.useState(null),[i,f]=de.useState(null),[n,c]=de.useState(null),[S,E]=de.useState(null),[x,P]=de.useState(null),[m,y]=de.useState(null);de.useState(""),de.useEffect(()=>{g()},[]);const g=async()=>{await _.getQuestions(_.element)};de.useEffect(()=>{var q;console.log(_.getQn,"data"),t(_.getQn),a((q=_.getQn[0])==null?void 0:q.fdata[0].fqpno)},[_.getQn]),de.useEffect(()=>{t(e)},[e]);const N=q=>{document.execCommand(q)},L=q=>{q.file.status==="done"?message.success(`${q.file.name} file uploaded successfully`):q.file.status==="error"&&message.error(`${q.file.name} file upload failed.`)},D=(q,j,R)=>{const M=e;R.target.checked&&(M[q].fdata[j].ftype=R.target.value),t([...M])},U=(q,j,R,M)=>{const A=e;A[q].fdata[j][M]=R,t([...A])},F=async(q,j,R,M,A,$)=>{let H=q.file.name.split(".").pop();if(H!=="jpg"&&H!=="png"&&H!=="jpeg"){Me("info","only jpg or png files allowed");return}const z=new FormData;z.append("univcode",_.user.funivcode),z.append("qpcode",s),z.append("year",p),z.append("mode",b),z.append("qnno",M),z.append("field",A),z.append("file",q.file),z.append("noqp",d),z.append("teachcode",k),z.append("userid",_.user.fregno),I({type:"SET_BTN_LOADER"});const W=await Ze.post("app.php?a=uploadQnFiles&db="+o,z);if(I({type:"UNSET_BTN_LOADER"}),W.data.error_code===0){let X=_.user.fusertype==="T"?A:_.user.fusertype==="M"&&$,ee=e;ee[j].fdata[R][X]=W.data.data.msg,t([...ee])}else Me("error",W.data.data.msg);_.uploadQnFiles(JSON.stringify(W.data))},Z=async(q,j,R)=>{let M=e[q].fdata[j];if(M.fquestion===""||M.fquestion==="<p><br></p>"){Me("info","Question field should not be empty");return}const A=new FormData;if(A.append("data",JSON.stringify(M)),A.append("qpcode",s),A.append("year",p),A.append("mode",b),A.append("teachcode",k),A.append("set",d),A.append("usertype",_.user.fusertype),A.append("userid",_.user.fregno),(await Ze.post("app.php?a=saveQuestions&db="+o,A)).data.error_code===0){if(e[q].fdata.length===j+1)if(e[q+1]==null)a(e[0].fdata[0].fqpno);else{let z=e[q+1].fdata[0].fqpno;a(z)}else a(R[j+1].fqpno);let H=e;M.fquestion!==""&&M.fquestion!==null&&(H[q].fdata[j].fqpcomp="Completed",t(H)),r(""),f(""),c(""),E(""),P("")}},B=async(q,j,R,M,A,$)=>{const H=new FormData;H.append("qpcode",s),H.append("year",p),H.append("mode",b),H.append("teachcode",k),H.append("set",d),H.append("fqpno",R),H.append("path",M),H.append("field",A);let z=localStorage.getItem("dbname");I({type:"SET_LOADER"});const W=await Ze.post("app.php?a=deleteThQpFile&db="+z+"&univcode="+_.user.funivcode,H);if(I({type:"UNSET_LOADER"}),W.data.error_code===0){let X=_.user.fusertype==="T"?A:_.user.fusertype==="M"&&$,ee=e;ee[q].fdata[j][X]="",t([...ee]),r(""),f(""),c(""),E(""),P("")}else Me("info",W.data.data.msg)},C=()=>{window.open(fn+"/app.php?a=getOmrQpReport&db="+localStorage.getItem("dbname")+"&univcode="+_.user.funivcode+"&qpcode="+s+"&year="+p+"&mode="+b+"&teachcode="+k+"&noqp="+d+"&type="+O+"&teachtype="+_.user.fusertype)},T=()=>K.jsxs(Qe,{children:[K.jsx(se,{size:"small",onClick:()=>{N("bold")},children:"B"}),K.jsx(se,{size:"small",onClick:()=>N("italic"),children:"I"}),K.jsx(se,{size:"small",onClick:()=>N("underline"),children:"U"})]});return K.jsxs("div",{children:[K.jsx(st,{style:{margin:"6rem 10px 10px"},title:K.jsx("h6",{children:"Prepare Question Paper"}),extra:K.jsxs(Qe,{children:[K.jsx(ft,{to:_.user.fusertype==="M"?"/qpsettings/mod-qp-det-online":"/qpsettings/prepare-qp",children:K.jsxs(se,{style:{background:"green",color:"white"},children:[K.jsx(ct,{}),"Back"]})}),K.jsxs(se,{type:"primary",onClick:()=>C(),children:[K.jsx(yn,{})," Preview"]}),K.jsx(ft,{to:"/",children:K.jsxs(se,{type:"primary",danger:!0,children:[K.jsx(gn,{})," Exit"]})})]}),children:K.jsx("div",{style:{height:"160px",overflowY:"auto"},children:e.map((q,j)=>K.jsxs("div",{children:[K.jsx("span",{children:K.jsxs("b",{children:[q.fpartcode+" - "+q.fpartdesc,":"]})}),q.fdata.map((R,M)=>K.jsx(se,{size:"small",style:{margin:"4px",marginBottom:"3px",background:R.fqpcomp==="Completed"?"green":u===R.fqpno&&"orange",color:R.fqpcomp==="Completed"&&"white"},onClick:()=>a(R.fqpno),children:R.fqpno},M))]},j))})}),K.jsx("div",{style:{margin:"0px 10px"},children:e.map((q,j)=>K.jsx("div",{children:q.fdata.map((R,M)=>K.jsx("div",{children:u==R.fqpno&&K.jsxs(st,{title:K.jsx("div",{children:O==="THEORY"&&K.jsxs(Ye.Group,{style:{marginBottom:"10px"},value:R.ftype,onChange:A=>D(j,M,A),children:[K.jsx(Ye,{value:"Descriptive",children:"Descriptive"}),K.jsx(Ye,{value:"MCQ",children:"MCQ"})]})}),extra:K.jsx(T,{}),children:[K.jsxs(ge,{gutter:16,children:[K.jsxs(he,{xs:24,sm:24,md:12,lg:8,xl:8,xxl:8,children:[K.jsx("h6",{children:R.fqpno}),K.jsx("div",{className:"editor-container",children:K.jsx(Te,{className:"custom-quill-editor",value:R.fquestion,onChange:A=>U(j,M,A,"fquestion")})}),K.jsxs("div",{style:{marginTop:"5px"},children:[K.jsx(xe,{disabled:v==="T"&&!0,customRequest:A=>{_.user.fusertype==="T"?(F(A,j,M,R.fqpno,"fqnfile"),F(A,j,M,R.fqpno,"fmodqnfile")):_.user.fusertype==="M"&&F(A,j,M,R.fqpno,"fmodqnfile","fqnfile")},onChange:L,showUploadList:!1,beforeUpload:A=>{r(A)},maxCount:1,children:K.jsxs(se,{loading:_.btnLoading,size:"small",children:[K.jsx(Ae,{})," Upload Image"]})}),K.jsx("a",{children:l&&l.name}),R.fqnfile!==""&&K.jsxs(K.Fragment,{children:[K.jsx(se,{style:{float:"right",marginLeft:"10px"},size:"small",type:"primary",danger:!0,onClick:()=>{_.user.fusertype==="T"?(B(j,M,R.fqpno,R.fqnfile,"fqnfile"),B(j,M,R.fqpno,R.fqnfile,"fmodqnfile")):_.user.fusertype==="M"&&B(j,M,R.fqpno,R.fmodqnfile,"fmodqnfile","fqnfile")},children:K.jsx(we,{})}),K.jsx("a",{href:R.fqnfile,target:"_blank",style:{float:"right"},children:"View"})]})]})]}),R.ftype!=="MCQ"&&O!=="MCQ"?K.jsxs(he,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[K.jsx("h6",{children:"Key Answer"}),K.jsx("div",{className:"editor-container",children:K.jsx(Te,{className:"custom-quill-editor",value:R.fkeyans,onChange:A=>U(j,M,A,"fkeyans")})}),K.jsxs("div",{style:{marginTop:"10px"},children:[K.jsx(xe,{disabled:v==="T"&&_.user.fusertype!=="M",customRequest:A=>{_.user.fusertype==="T"?(F(A,j,M,R.fqpno,"fkeyansfile"),F(A,j,M,R.fqpno,"fmodkeyansfile")):_.user.fusertype==="M"&&F(A,j,M,R.fqpno,"fmodkeyansfile","fkeyansfile")},onChange:L,showUploadList:!1,beforeUpload:A=>{f(A)},maxCount:1,children:K.jsxs(se,{size:"small",children:[K.jsx(Ae,{})," Upload Image"]})}),K.jsx("a",{children:i&&i.name}),R.fkeyansfile!==""&&K.jsxs(K.Fragment,{children:[K.jsx(se,{style:{float:"right",marginLeft:"10px"},size:"small",type:"primary",danger:!0,onClick:()=>{_.user.fusertype==="T"?(B(j,M,R.fqpno,R.fqnfile,"fkeyansfile"),B(j,M,R.fqpno,R.fqnfile,"fmodkeyansfile")):_.user.fusertype==="M"&&B(j,M,R.fqpno,R.fmodqnfile,"fmodkeyansfile","fkeyansfile")},children:K.jsx(we,{})}),K.jsx("a",{href:h+R.fkeyansfile,target:"_blank",style:{float:"right"},children:"View"})]})]})]}):K.jsxs(he,{xs:24,sm:24,md:24,lg:12,xl:12,xxl:12,children:[K.jsxs(ge,{gutter:16,children:[K.jsxs(he,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[K.jsx("h6",{children:" A) "}),K.jsx("div",{className:"editor-container",children:K.jsx(Te,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:R.fopta,onChange:A=>U(j,M,A,"fopta")})}),K.jsxs("div",{style:{marginTop:"10px"},children:[K.jsx(xe,{disabled:v==="T"&&_.user.fusertype!=="M",customRequest:A=>{_.user.fusertype==="T"?(F(A,j,M,R.fqpno,"foptafile"),F(A,j,M,R.fqpno,"fmodoptafile")):_.user.fusertype==="M"&&F(A,j,M,R.fqpno,"fmodoptafile","foptafile")},onChange:L,showUploadList:!1,beforeUpload:A=>{c(A)},maxCount:1,children:K.jsxs(se,{size:"small",children:[K.jsx(Ae,{})," Upload Image"]})}),K.jsx("a",{children:n&&n.name}),R.foptafile!==""&&K.jsxs(K.Fragment,{children:[K.jsx(se,{style:{float:"right",marginLeft:"10px"},size:"small",type:"primary",danger:!0,onClick:()=>{_.user.fusertype==="T"?(B(j,M,R.fqpno,R.fqnfile,"foptafile"),B(j,M,R.fqpno,R.fqnfile,"fmodoptafile")):_.user.fusertype==="M"&&B(j,M,R.fqpno,R.fmodqnfile,"fmodoptafile","foptafile")},children:K.jsx(we,{})}),K.jsx("a",{href:h+R.foptafile,target:"_blank",style:{float:"right"},children:"View"})]})]})]}),K.jsxs(he,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[K.jsx("h6",{children:" B) "}),K.jsx("div",{className:"editor-container",children:K.jsx(Te,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:R.foptb,onChange:A=>U(j,M,A,"foptb")})}),K.jsxs("div",{style:{marginTop:"10px"},children:[K.jsx(xe,{disabled:v==="T"&&_.user.fusertype!=="M",customRequest:A=>{_.user.fusertype==="T"?(F(A,j,M,R.fqpno,"foptbfile"),F(A,j,M,R.fqpno,"fmodoptbfile")):_.user.fusertype==="M"&&F(A,j,M,R.fqpno,"fmodoptbfile","foptbfile")},onChange:L,showUploadList:!1,beforeUpload:A=>{E(A)},maxCount:1,children:K.jsxs(se,{size:"small",children:[K.jsx(Ae,{})," Upload Image"]})}),K.jsx("a",{children:S&&S.name}),R.foptbfile!==""&&K.jsxs(K.Fragment,{children:[K.jsx(se,{style:{float:"right",marginLeft:"10px"},size:"small",type:"primary",danger:!0,onClick:()=>{_.user.fusertype==="T"?(B(j,M,R.fqpno,R.fqnfile,"foptbfile"),B(j,M,R.fqpno,R.fqnfile,"fmodoptbfile")):_.user.fusertype==="M"&&B(j,M,R.fqpno,R.fmodqnfile,"fmodoptbfile","foptbfile")},children:K.jsx(we,{})}),K.jsx("a",{href:h+R.foptbfile,target:"_blank",style:{float:"right"},children:"View"})]})]})]})]}),K.jsxs(ge,{gutter:16,children:[K.jsxs(he,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[K.jsx("h6",{children:" C) "}),K.jsx("div",{className:"editor-container",children:K.jsx(Te,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:R.foptc,onChange:A=>U(j,M,A,"foptc")})}),K.jsxs("div",{style:{marginTop:"10px"},children:[K.jsx(xe,{disabled:v==="T"&&_.user.fusertype!=="M",customRequest:A=>{_.user.fusertype==="T"?(F(A,j,M,R.fqpno,"foptcfile"),F(A,j,M,R.fqpno,"fmodoptcfile")):_.user.fusertype==="M"&&F(A,j,M,R.fqpno,"fmodoptcfile","foptcfile")},onChange:L,showUploadList:!1,beforeUpload:A=>{P(A)},maxCount:1,children:K.jsxs(se,{size:"small",children:[K.jsx(Ae,{})," Upload Image"]})}),K.jsx("a",{children:x&&x.name}),R.foptcfile!==""&&K.jsxs(K.Fragment,{children:[K.jsx(se,{style:{float:"right",marginLeft:"10px"},size:"small",type:"primary",danger:!0,onClick:()=>{_.user.fusertype==="T"?(B(j,M,R.fqpno,R.fqnfile,"foptcfile"),B(j,M,R.fqpno,R.fqnfile,"fmodoptcfile")):_.user.fusertype==="M"&&B(j,M,R.fqpno,R.fmodqnfile,"fmodoptcfile","foptcfile")},children:K.jsx(we,{})}),K.jsx("a",{href:h+R.foptcfile,target:"_blank",style:{float:"right"},children:"View"})]})]})]}),K.jsxs(he,{xs:24,sm:24,md:12,lg:12,xl:12,xxl:12,style:{marginBottom:"20px"},children:[K.jsx("h6",{children:" D) "}),K.jsx("div",{className:"editor-container",children:K.jsx(Te,{className:"custom-quill-editor",style:{height:"80px",overflowY:"auto"},value:R.foptd,onChange:A=>U(j,M,A,"foptd")})}),K.jsxs("div",{style:{marginTop:"10px"},children:[K.jsx(xe,{disabled:v==="T"&&_.user.fusertype!=="M",customRequest:A=>{_.user.fusertype==="T"?(F(A,j,M,R.fqpno,"foptdfile"),F(A,j,M,R.fqpno,"fmodoptdfile")):_.user.fusertype==="M"&&F(A,j,M,R.fqpno,"fmodoptdfile","foptdfile")},onChange:L,showUploadList:!1,beforeUpload:A=>{y(A)},maxCount:1,children:K.jsxs(se,{size:"small",children:[K.jsx(Ae,{})," Upload Image"]})}),K.jsx("a",{children:m&&m.name}),R.foptdfile!==""&&K.jsxs(K.Fragment,{children:[K.jsx(se,{style:{float:"right",marginLeft:"10px"},size:"small",type:"primary",danger:!0,onClick:()=>{_.user.fusertype==="T"?(B(j,M,R.fqpno,R.fqnfile,"foptdfile"),B(j,M,R.fqpno,R.fqnfile,"fmodoptdfile")):_.user.fusertype==="M"&&B(j,M,R.fqpno,R.fmodqnfile,"fmodoptdfile","foptdfile")},children:K.jsx(we,{})}),K.jsx("a",{href:h+R.foptdfile,target:"_blank",style:{float:"right"},children:"View"})]})]})]})]})]}),K.jsxs(he,{xs:24,sm:24,md:24,lg:4,xl:4,xxl:4,children:[K.jsxs(ge,{gutter:4,children:[K.jsxs(he,{xs:12,sm:12,md:12,lg:12,xl:12,xxl:12,children:[K.jsx("label",{children:"Max. Marks"}),K.jsx(Ie,{style:{marginBottom:"10px"},value:R.fmaxmarks,disabled:!0})]}),(O==="MCQ"||R.ftype==="MCQ")&&K.jsxs(he,{xs:12,sm:12,md:12,lg:12,xl:12,xxl:12,children:[K.jsx("label",{children:"Key Answer"}),K.jsx(sn,{style:{width:"100%",height:"37px"},value:R.fkeyans,options:vn,onChange:A=>U(j,M,A,"fkeyans")})]})]}),K.jsxs(ge,{gutter:4,children:[K.jsxs(he,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:[K.jsx("label",{children:"CO"}),K.jsx(Ie,{style:{marginBottom:"10px"},value:R.fco,onChange:A=>U(j,M,A.target.value,"fco")})]}),K.jsxs(he,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:[K.jsx("label",{children:"PO"}),K.jsx(Ie,{style:{marginBottom:"10px"},value:R.fpo,onChange:A=>U(j,M,A.target.value,"fpo")})]}),K.jsxs(he,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:[K.jsx("label",{children:"Bloom's"}),K.jsx(Ie,{style:{marginBottom:"10px"},value:R.fblooms,onChange:A=>U(j,M,A.target.value,"fblooms")})]})]}),K.jsx(ge,{children:K.jsx(he,{children:K.jsx("p",{})})}),K.jsx(ge,{children:K.jsx(he,{children:K.jsx("p",{})})}),K.jsx(ge,{children:K.jsx(he,{children:K.jsx("p",{})})}),K.jsx(ge,{children:K.jsx(he,{children:K.jsx("p",{})})})]})]}),K.jsx(ge,{children:K.jsx(he,{span:24,children:K.jsxs(Qe,{style:{float:"right",position:"absolute",right:0,bottom:20},children:[K.jsx(se,{size:"medium",icon:K.jsx(ct,{}),onClick:()=>{M!==0&&a(q.fdata[M-1].fqpno)},children:"Previous"}),K.jsxs(se,{size:"medium",type:"primary",disabled:v=="T"&&_.user.fusertype!=="M",onClick:()=>Z(j,M,q.fdata),children:["Next ",K.jsx(_n,{})]})]})})})]},M)},M))},j))})]})},ns=_=>(console.log(_.getQuestions,"SDsdm,sd"),{user:_.loginfo.userData,getQn:_.getQuestions,btnLoading:_.loader.btnLoading,qnfiles:_.qnfiles}),rs=$t(ns,{getQuestions:hn,uploadQnFiles:dn,deleteFileHandler:pn})(ts),is=_=>{const I=cn();return console.log(I),K.jsx(rs,{element:I})},os=_=>({user:_.loginfo.userData}),bs=$t(os,{})(is);export{bs as default};
|