PageSourceSearch

https://sariverwalk.com/assets/WysiwygEditor-BJbrQgjj.js

js sariverwalk.com collected 2026-10-10 02:17:15 UTC 244,185 bytes, 108 lines download raw bytes

vendor: 210,479 bytes, lines 1-41
1import{bn as ct,bo as en,r as dt,bp as nn,j as vt,B as rn}from"./index-CHCCGYt6.js";function on(){this.__data__=[],this.size=0}var an=on;function ln(N,R){return N===R||N!==N&&R!==R}var Be=ln,un=Be;function sn(N,R){for(var _=N.length;_--;)if(un(N[_][0],R))return _;return-1}var Ft=sn,fn=Ft,cn=Array.prototype,hn=cn.splice;function dn(N){var R=this.__data__,_=fn(R,N);if(_<0)return!1;var s=R.length-1;return _==s?R.pop():hn.call(R,_,1),--this.size,!0}var vn=dn,pn=Ft;function yn(N){var R=this.__data__,_=pn(R,N);return _<0?void 0:R[_][1]}var gn=yn,mn=Ft;function bn(N){return mn(this.__data__,N)>-1}var _n=bn,On=Ft;function En(N,R){var _=this.__data__,s=On(_,N);return s<0?(++this.size,_.push([N,R])):_[s][1]=R,this}var An=En,wn=an,Tn=vn,kn=gn,xn=_n,Nn=An;function Ot(N){var R=-1,_=N==null?0:N.length;for(this.clear();++R<_;){var s=N[R];this.set(s[0],s[1])}}Ot.prototype.clear=wn;Ot.prototype.delete=Tn;Ot.prototype.get=kn;Ot.prototype.has=xn;Ot.prototype.set=Nn;var Ut=Ot,Sn=Ut;function Pn(){this.__data__=new Sn,this.size=0}var Ln=Pn;function qn(N){var R=this.__data__,_=R.delete(N);return this.size=R.size,_}var Rn=qn;function jn(N){return this.__data__.get(N)}var In=jn;function Mn(N){return this.__data__.has(N)}var Dn=Mn,Cn=typeof ct=="object"&&ct&&ct.Object===Object&&ct,$e=Cn,Bn=$e,$n=typeof self=="object"&&self&&self.Object===Object&&self,Fn=Bn||$n||Function("return this")(),gt=Fn,Un=gt,Hn=Un.Symbol,ue=Hn,ce=ue,Fe=Object.prototype,zn=Fe.hasOwnProperty,Kn=Fe.toString,Nt=ce?ce.toStringTag:void 0;function Gn(N){var R=zn.call(N,Nt),_=N[Nt];try{N[Nt]=void 0;var s=!0}catch{}var d=Kn.call(N);return s&&(R?N[Nt]=_:delete N[Nt]),d}var Vn=Gn,Wn=Object.prototype,Zn=Wn.toString;function Yn(N){return Zn.call(N)}var Qn=Yn,he=ue,Xn=Vn,Jn=Qn,tr="[object Null]",er="[object Undefined]",de=he?he.toStringTag:void 0;function nr(N){return N==null?N===void 0?er:tr:de&&de in Object(N)?Xn(N):Jn(N)}var Ht=nr;function rr(N){var R=typeof N;return N!=null&&(R=="object"||R=="function")}var Ue=rr,ir=Ht,or=Ue,ar="[object AsyncFunction]",lr="[object Function]",ur="[object GeneratorFunction]",sr="[object Proxy]";function fr(N){if(!or(N))return!1;var R=ir(N);return R==lr||R==ur||R==ar||R==sr}var He=fr,cr=gt,hr=cr["__core-js_shared__"],dr=hr,Wt=dr,ve=function(){var N=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""}();function vr(N){return!!ve&&ve in N}var pr=vr,yr=Function.prototype,gr=yr.toString;function mr(N){if(N!=null){try{return gr.call(N)}catch{}try{return N+""}catch{}}return""}var ze=mr,br=He,_r=pr,Or=Ue,Er=ze,Ar=/[\\^$.*+?()[\]{}|]/g,wr=/^\[object .+?Constructor\]$/,Tr=Function.prototype,kr=Object.prototype,xr=Tr.toString,Nr=kr.hasOwnProperty,Sr=RegExp("^"+xr.call(Nr).replace(Ar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pr(N){if(!Or(N)||_r(N))return!1;var R=br(N)?Sr:wr;return R.test(Er(N))}var Lr=Pr;function qr(N,R){return N==null?void 0:N[R]}var Rr=qr,jr=Lr,Ir=Rr;function Mr(N,R){var _=Ir(N,R);return jr(_)?_:void 0}var Et=Mr,Dr=Et,Cr=gt,Br=Dr(Cr,"Map"),se=Br,$r=Et,Fr=$r(Object,"create"),zt=Fr,pe=zt;function Ur(){this.__data__=pe?pe(null):{},this.size=0}var Hr=Ur;function zr(N){var R=this.has(N)&&delete this.__data__[N];return this.size-=R?1:0,R}var Kr=zr,Gr=zt,Vr="__lodash_hash_undefined__",Wr=Object.prototype,Zr=Wr.hasOwnProperty;function Yr(N){var R=this.__data__;if(Gr){var _=R[N];return _===Vr?void 0:_}return Zr.call(R,N)?R[N]:void 0}var Qr=Yr,Xr=zt,Jr=Object.prototype,ti=Jr.hasOwnProperty;function ei(N){var R=this.__data__;return Xr?R[N]!==void 0:ti.call(R,N)}var ni=ei,ri=zt,ii="__lodash_hash_undefined__";function oi(N,R){var _=this.__data__;return this.size+=this.has(N)?0:1,_[N]=ri&&R===void 0?ii:R,this}var ai=oi,li=Hr,ui=Kr,si=Qr,fi=ni,ci=ai;function At(N){var R=-1,_=N==null?0:N.length;for(this.clear();++R<_;){var s=N[R];this.set(s[0],s[1])}}At.prototype.clear=li;At.prototype.delete=ui;At.prototype.get=si;At.prototype.has=fi;At.prototype.set=ci;var hi=At,ye=hi,di=Ut,vi=se;function pi(){this.size=0,this.__data__={hash:new ye,map:new(vi||di),string:new ye}}var yi=pi;function gi(N){var R=typeof N;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?N!=="__proto__":N===null}var mi=gi,bi=mi;function _i(N,R){var _=N.__data__;return bi(R)?_[typeof R=="string"?"string":"hash"]:_.map}var Kt=_i,Oi=Kt;function Ei(N){var R=Oi(this,N).delete(N);return this.size-=R?1:0,R}var Ai=Ei,wi=Kt;function Ti(N){return wi(this,N).get(N)}var ki=Ti,xi=Kt;function Ni(N){return xi(this,N).has(N)}var Si=Ni,Pi=Kt;function Li(N,R){var _=Pi(this,N),s=_.size;return _.set(N,R),this.size+=_.size==s?0:1,this}var qi=Li,Ri=yi,ji=Ai,Ii=ki,Mi=Si,Di=qi;function wt(N){var R=-1,_=N==null?0:N.length;for(this.clear();++R<_;){var s=N[R];this.set(s[0],s[1])}}wt.prototype.clear=Ri;wt.prototype.delete=ji;wt.prototype.get=Ii;wt.prototype.has=Mi;wt.prototype.set=Di;var Ke=wt,Ci=Ut,Bi=se,$i=Ke,Fi=200;function Ui(N,R){var _=this.__data__;if(_ instanceof Ci){var s=_.__data__;if(!Bi||s.length<Fi-1)return s.push([N,R]),this.size=++_.size,this;_=this.__data__=new $i(s)}return _.set(N,R),this.size=_.size,this}var Hi=Ui,zi=Ut,Ki=Ln,Gi=Rn,Vi=In,Wi=Dn,Zi=Hi;function Tt(N){var R=this.__data__=new zi(N);this.size=R.size}Tt.prototype.clear=Ki;Tt.prototype.delete=Gi;Tt.prototype.get=Vi;Tt.prototype.has=Wi;Tt.prototype.set=Zi;var Yi=Tt,Qi="__lodash_hash_undefined__";function Xi(N){return this.__data__.set(N,Qi),this}var Ji=Xi;function to(N){return this.__data__.has(N)}var eo=to,no=Ke,ro=Ji,io=eo;function qt(N){var R=-1,_=N==null?0:N.length;for(this.__data__=new no;++R<_;)this.add(N[R])}qt.prototype.add=qt.prototype.push=ro;qt.prototype.has=io;var oo=qt;function ao(N,R){for(var _=-1,s=N==null?0:N.length;++_<s;)if(R(N[_],_,N))return!0;return!1}var lo=ao;function uo(N,R){return N.has(R)}var so=uo,fo=oo,co=lo,ho=so,vo=1,po=2;function yo(N,R,_,s,d,w){var A=_&vo,b=N.length,p=R.length;if(b!=p&&!(A&&p>b))return!1;var y=w.get(N),h=w.get(R);if(y&&h)return y==R&&h==N;var o=-1,t=!0,e=_&po?new fo:void 0;for(w.set(N,R),w.set(R,N);++o<b;){var u=N[o],a=R[o];if(s)var l=A?s(a,u,o,R,N,w):s(u,a,o,N,R,w);if(l!==void 0){if(l)continue;t=!1;break}if(e){if(!co(R,function(r,i){if(!ho(e,i)&&(u===r||d(u,r,_,s,w)))return e.push(i)})){t=!1;break}}else if(!(u===a||d(u,a,_,s,w))){t=!1;break}}return w.delete(N),w.delete(R),t}var Ge=yo,go=gt,mo=go.Uint8Array,bo=mo;function _o(N){var R=-1,_=Array(N.size);return N.forEach(function(s,d){_[++R]=[d,s]}),_}var Oo=_o;function Eo(N){var R=-1,_=Array(N.size);return N.forEach(function(s){_[++R]=s}),_}var Ao=Eo,ge=ue,me=bo,wo=Be,To=Ge,ko=Oo,xo=Ao,No=1,So=2,Po="[object Boolean]",Lo="[object Date]",qo="[object Error]",Ro="[object Map]",jo="[object Number]",Io="[object RegExp]",Mo="[object Set]",Do="[object String]",Co="[object Symbol]",Bo="[object ArrayBuffer]",$o="[object DataView]",be=ge?ge.prototype:void 0,Zt=be?be.valueOf:void 0;function Fo(N,R,_,s,d,w,A){switch(_){case $o:if(N.byteLength!=R.byteLength||N.byteOffset!=R.byteOffset)return!1;N=N.buffer,R=R.buffer;case Bo:return!(N.byteLength!=R.byteLength||!w(new me(N),new me(R)));case Po:case Lo:case jo:return wo(+N,+R);case qo:return N.name==R.name&&N.message==R.message;case Io:case Do:return N==R+"";case Ro:var b=ko;case Mo:var p=s&No;if(b||(b=xo),N.size!=R.size&&!p)return!1;var y=A.get(N);if(y)return y==R;s|=So,A.set(N,R);var h=To(b(N),b(R),s,d,w,A);return A.delete(N),h;case Co:if(Zt)return Zt.call(N)==Zt.call(R)}return!1}var Uo=Fo;function Ho(N,R){for(var _=-1,s=R.length,d=N.length;++_<s;)N[d+_]=R[_];return N}var zo=Ho,Ko=Array.isArray,fe=Ko,Go=zo,Vo=fe;function Wo(N,R,_){var s=R(N);return Vo(N)?s:Go(s,_(N))}var Zo=Wo;function Yo(N,R){for(var _=-1,s=N==null?0:N.length,d=0,w=[];++_<s;){var A=N[_];R(A,_,N)&&(w[d++]=A)}return w}var Qo=Yo;function Xo(){return[]}var Jo=Xo,ta=Qo,ea=Jo,na=Object.prototype,ra=na.propertyIsEnumerable,_e=Object.getOwnPropertySymbols,ia=_e?function(N){return N==null?[]:(N=Object(N),ta(_e(N),function(R){return ra.call(N,R)}))}:ea,oa=ia;function aa(N,R){for(var _=-1,s=Array(N);++_<N;)s[_]=R(_);return s}var la=aa;function ua(N){return N!=null&&typeof N=="object"}var Gt=ua,sa=Ht,fa=Gt,ca="[object Arguments]";function ha(N){return fa(N)&&sa(N)==ca}var da=ha,Oe=da,va=Gt,Ve=Object.prototype,pa=Ve.hasOwnProperty,ya=Ve.propertyIsEnumerable,ga=Oe(function(){return arguments}())?Oe:function(N){return va(N)&&pa.call(N,"callee")&&!ya.call(N,"callee")},ma=ga,Rt={exports:{}};function ba(){return!1}var _a=ba;Rt.exports;(function(N,R){var _=gt,s=_a,d=R&&!R.nodeType&&R,w=d&&!0&&N&&!N.nodeType&&N,A=w&&w.exports===d,b=A?_.Buffer:void 0,p=b?b.isBuffer:void 0,y=p||s;N.exports=y})(Rt,Rt.exports);var We=Rt.exports,Oa=9007199254740991,Ea=/^(?:0|[1-9]\d*)$/;function Aa(N,R){var _=typeof N;return R=R??Oa,!!R&&(_=="number"||_!="symbol"&&Ea.test(N))&&N>-1&&N%1==0&&N<R}var wa=Aa,Ta=9007199254740991;function ka(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=Ta}var Ze=ka,xa=Ht,Na=Ze,Sa=Gt,Pa="[object Arguments]",La="[object Array]",qa="[object Boolean]",Ra="[object Date]",ja="[object Error]",Ia="[object Function]",Ma="[object Map]",Da="[object Number]",Ca="[object Object]",Ba="[object RegExp]",$a="[object Set]",Fa="[object String]",Ua="[object WeakMap]",Ha="[object ArrayBuffer]",za="[object DataView]",Ka="[object Float32Array]",Ga="[object Float64Array]",Va="[object Int8Array]",Wa="[object Int16Array]",Za="[object Int32Array]",Ya="[object Uint8Array]",Qa="[object Uint8ClampedArray]",Xa="[object Uint16Array]",Ja="[object Uint32Array]",at={};at[Ka]=at[Ga]=at[Va]=at[Wa]=at[Za]=at[Ya]=at[Qa]=at[Xa]=at[Ja]=!0;at[Pa]=at[La]=at[Ha]=at[qa]=at[za]=at[Ra]=at[ja]=at[Ia]=at[Ma]=at[Da]=at[Ca]=at[Ba]=at[$a]=at[Fa]=at[Ua]=!1;function tl(N){return Sa(N)&&Na(N.length)&&!!at[xa(N)]}var el=tl;function nl(N){return function(R){return N(R)}}var rl=nl,jt={exports:{}};jt.exports;(function(N,R){var _=$e,s=R&&!R.nodeType&&R,d=s&&!0&&N&&!N.nodeType&&N,w=d&&d.exports===s,A=w&&_.process,b=function(){try{var p=d&&d.require&&d.require("util").types;return p||A&&A.binding&&A.binding("util")}catch{}}();N.exports=b})(jt,jt.exports);var il=jt.exports,ol=el,al=rl,Ee=il,Ae=Ee&&Ee.isTypedArray,ll=Ae?al(Ae):ol,Ye=ll,ul=la,sl=ma,fl=fe,cl=We,hl=wa,dl=Ye,vl=Object.prototype,pl=vl.hasOwnProperty;function yl(N,R){var _=fl(N),s=!_&&sl(N),d=!_&&!s&&cl(N),w=!_&&!s&&!d&&dl(N),A=_||s||d||w,b=A?ul(N.length,String):[],p=b.length;for(var y in N)(R||pl.call(N,y))&&!(A&&(y=="length"||d&&(y=="offset"||y=="parent")||w&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||hl(y,p)))&&b.push(y);return b}var gl=yl,ml=Object.prototype;function bl(N){var R=N&&N.constructor,_=typeof R=="function"&&R.prototype||ml;return N===_}var _l=bl;function Ol(N,R){return function(_){return N(R(_))}}var El=Ol,Al=El,wl=Al(Object.keys,Object),Tl=wl,kl=_l,xl=Tl,Nl=Object.prototype,Sl=Nl.hasOwnProperty;function Pl(N){if(!kl(N))return xl(N);var R=[];for(var _ in Object(N))Sl.call(N,_)&&_!="constructor"&&R.push(_);return R}var Ll=Pl,ql=He,Rl=Ze;function jl(N){return N!=null&&Rl(N.length)&&!ql(N)}var Il=jl,Ml=gl,Dl=Ll,Cl=Il;function Bl(N){return Cl(N)?Ml(N):Dl(N)}var $l=Bl,Fl=Zo,Ul=oa,Hl=$l;function zl(N){return Fl(N,Hl,Ul)}var Kl=zl,we=Kl,Gl=1,Vl=Object.prototype,Wl=Vl.hasOwnProperty;function Zl(N,R,_,s,d,w){var A=_&Gl,b=we(N),p=b.length,y=we(R),h=y.length;if(p!=h&&!A)return!1;for(var o=p;o--;){var t=b[o];if(!(A?t in R:Wl.call(R,t)))return!1}var e=w.get(N),u=w.get(R);if(e&&u)return e==R&&u==N;var a=!0;w.set(N,R),w.set(R,N);for(var l=A;++o<p;){t=b[o];var r=N[t],i=R[t];if(s)var f=A?s(i,r,t,R,N,w):s(r,i,t,N,R,w);if(!(f===void 0?r===i||d(r,i,_,s,w):f)){a=!1;break}l||(l=t=="constructor")}if(a&&!l){var n=N.constructor,c=R.constructor;n!=c&&"constructor"in N&&"constructor"in R&&!(typeof n=="function"&&n instanceof n&&typeof c=="function"&&c instanceof c)&&(a=!1)}return w.delete(N),w.delete(R),a}var Yl=Zl,Ql=Et,Xl=gt,Jl=Ql(Xl,"DataView"),tu=Jl,eu=Et,nu=gt,ru=eu(nu,"Promise"),iu=ru,ou=Et,au=gt,lu=ou(au,"Set"),uu=lu,su=Et,fu=gt,cu=su(fu,"WeakMap"),hu=cu,Qt=tu,Xt=se,Jt=iu,te=uu,ee=hu,Qe=Ht,kt=ze,Te="[object Map]",du="[object Object]",ke="[object Promise]",xe="[object Set]",Ne="[object WeakMap]",Se="[object DataView]",vu=kt(Qt),pu=kt(Xt),yu=kt(Jt),gu=kt(te),mu=kt(ee),_t=Qe;(Qt&&_t(new Qt(new ArrayBuffer(1)))!=Se||Xt&&_t(new Xt)!=Te||Jt&&_t(Jt.resolve())!=ke||te&&_t(new te)!=xe||ee&&_t(new ee)!=Ne)&&(_t=function(N){var R=Qe(N),_=R==du?N.constructor:void 0,s=_?kt(_):"";if(s)switch(s){case vu:return Se;case pu:return Te;case yu:return ke;case gu:return xe;case mu:return Ne}return R});var bu=_t,Yt=Yi,_u=Ge,Ou=Uo,Eu=Yl,Pe=bu,Le=fe,qe=We,Au=Ye,wu=1,Re="[object Arguments]",je="[object Array]",Lt="[object Object]",Tu=Object.prototype,Ie=Tu.hasOwnProperty;function ku(N,R,_,s,d,w){var A=Le(N),b=Le(R),p=A?je:Pe(N),y=b?je:Pe(R);p=p==Re?Lt:p,y=y==Re?Lt:y;var h=p==Lt,o=y==Lt,t=p==y;if(t&&qe(N)){if(!qe(R))return!1;A=!0,h=!1}if(t&&!h)return w||(w=new Yt),A||Au(N)?_u(N,R,_,s,d,w):Ou(N,R,p,_,s,d,w);if(!(_&wu)){var e=h&&Ie.call(N,"__wrapped__"),u=o&&Ie.call(R,"__wrapped__");if(e||u){var a=e?N.value():N,l=u?R.value():R;return w||(w=new Yt),d(a,l,_,s,w)}}return t?(w||(w=new Yt),Eu(N,R,_,s,d,w)):!1}var xu=ku,Nu=xu,Me=Gt;function Xe(N,R,_,s,d){return N===R?!0:N==null||R==null||!Me(N)&&!Me(R)?N!==N&&R!==R:Nu(N,R,_,s,Xe,d)}var Su=Xe,Pu=Su;function Lu(N,R){return Pu(N,R)}var qu=Lu,Je={exports:{}};/*!
2 * Quill Editor v1.3.7
3 * https://quilljs.com/
4 * Copyright (c) 2014, Jason Chen
5 * Copyright (c) 2013, salesforce.com
6 */(function(N,R){(function(s,d){N.exports=d()})(typeof self<"u"?self:ct,function(){return function(_){var s={};function d(w){if(s[w])return s[w].exports;var A=s[w]={i:w,l:!1,exports:{}};return _[w].call(A.exports,A,A.exports,d),A.l=!0,A.exports}return d.m=_,d.c=s,d.d=function(w,A,b){d.o(w,A)||Object.defineProperty(w,A,{configurable:!1,enumerable:!0,get:b})},d.n=function(w){var A=w&&w.__esModule?function(){return w.default}:function(){return w};return d.d(A,"a",A),A},d.o=function(w,A){return Object.prototype.hasOwnProperty.call(w,A)},d.p="",d(d.s=109)}([function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(17),A=d(18),b=d(19),p=d(45),y=d(46),h=d(47),o=d(48),t=d(49),e=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:w.default,Format:A.default,Leaf:b.default,Embed:o.default,Scroll:p.default,Block:h.default,Inline:y.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:a.default,Store:l.default}};s.default=i},function(_,s,d){var w=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 A=function(l){w(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=A;var b={},p={},y={},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 t(l,r){var i=u(l);if(i==null)throw new A("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=t;function e(l,r){return r===void 0&&(r=!1),l==null?null:l[s.DATA_KEY]!=null?l[s.DATA_KEY].blot:r?e(l.parentNode,r):null}s.find=e;function u(l,r){r===void 0&&(r=o.ANY);var i;if(typeof l=="string")i=h[l]||b[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||y[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 A("Invalid definition");if(i.blotName==="abstract")throw new A("Cannot register abstract class");if(h[i.blotName||i.attrName]=i,typeof i.keyName=="string")b[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){(y[n]==null||i.className==null)&&(y[n]=i)})}return i}s.register=a},function(_,s,d){var w=d(51),A=d(11),b=d(3),p=d(20),y="\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,t){var e={};return o.length===0?this:(e.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},h.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},h.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},h.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=b(!0,{},o),typeof e=="object"){if(typeof o.delete=="number"&&typeof e.delete=="number")return this.ops[t-1]={delete:e.delete+o.delete},this;if(typeof e.delete=="number"&&o.insert!=null&&(t-=1,e=this.ops[t-1],typeof e!="object"))return this.ops.unshift(o),this;if(A(o.attributes,e.attributes)){if(typeof o.insert=="string"&&typeof e.insert=="string")return this.ops[t-1]={insert:e.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof e.retain=="number")return this.ops[t-1]={retain:e.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,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 t=[],e=[];return this.forEach(function(u){var a=o(u)?t:e;a.push(u)}),[t,e]},h.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},h.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+p.length(t):t.delete?o-t.delete:o},0)},h.prototype.length=function(){return this.reduce(function(o,t){return o+p.length(t)},0)},h.prototype.slice=function(o,t){o=o||0,typeof t!="number"&&(t=1/0);for(var e=[],u=p.iterator(this.ops),a=0;a<t&&u.hasNext();){var l;a<o?l=u.next(o-a):(l=u.next(t-a),e.push(l)),a+=p.length(l)}return new h(e)},h.prototype.compose=function(o){var t=p.iterator(this.ops),e=p.iterator(o.ops),u=[],a=e.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){for(var l=a.retain;t.peekType()==="insert"&&t.peekLength()<=l;)l-=t.peekLength(),u.push(t.next());a.retain-l>0&&e.next(a.retain-l)}for(var r=new h(u);t.hasNext()||e.hasNext();)if(e.peekType()==="insert")r.push(e.next());else if(t.peekType()==="delete")r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),f=t.next(i),n=e.next(i);if(typeof n.retain=="number"){var c={};typeof f.retain=="number"?c.retain=i:c.insert=f.insert;var x=p.attributes.compose(f.attributes,n.attributes,typeof f.retain=="number");if(x&&(c.attributes=x),r.push(c),!e.hasNext()&&A(r.ops[r.ops.length-1],c)){var O=new h(t.rest());return r.concat(O).chop()}}else typeof n.delete=="number"&&typeof f.retain=="number"&&r.push(n)}return r.chop()},h.prototype.concat=function(o){var t=new h(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},h.prototype.diff=function(o,t){if(this.ops===o.ops)return new h;var e=[this,o].map(function(i){return i.map(function(f){if(f.insert!=null)return typeof f.insert=="string"?f.insert:y;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),u=new h,a=w(e[0],e[1],t),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 w.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case w.DELETE:n=Math.min(f,l.peekLength()),l.next(n),u.delete(n);break;case w.EQUAL:n=Math.min(l.peekLength(),r.peekLength(),f);var c=l.next(n),x=r.next(n);A(c.insert,x.insert)?u.retain(n,p.attributes.diff(c.attributes,x.attributes)):u.push(x).delete(n);break}f-=n}}),u.chop()},h.prototype.eachLine=function(o,t){t=t||`
7`;for(var e=p.iterator(this.ops),u=new h,a=0;e.hasNext();){if(e.peekType()!=="insert")return;var l=e.peek(),r=p.length(l)-e.peekLength(),i=typeof l.insert=="string"?l.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(o(u,e.next(1).attributes||{},a)===!1)return;a+=1,u=new h}}u.length()>0&&o(u,{},a)},h.prototype.transform=function(o,t){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);for(var e=p.iterator(this.ops),u=p.iterator(o.ops),a=new h;e.hasNext()||u.hasNext();)if(e.peekType()==="insert"&&(t||u.peekType()!=="insert"))a.retain(p.length(e.next()));else if(u.peekType()==="insert")a.push(u.next());else{var l=Math.min(e.peekLength(),u.peekLength()),r=e.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,t))}return a.chop()},h.prototype.transformPosition=function(o,t){t=!!t;for(var e=p.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var a=e.peekLength(),l=e.peekType();if(e.next(),l==="delete"){o-=Math.min(a,o-u);continue}else l==="insert"&&(u<o||!t)&&(o+=a);u+=a}return o},_.exports=h},function(_,s){var d=Object.prototype.hasOwnProperty,w=Object.prototype.toString,A=Object.defineProperty,b=Object.getOwnPropertyDescriptor,p=function(e){return typeof Array.isArray=="function"?Array.isArray(e):w.call(e)==="[object Array]"},y=function(e){if(!e||w.call(e)!=="[object Object]")return!1;var u=d.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&d.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!a)return!1;var l;for(l in e);return typeof l>"u"||d.call(e,l)},h=function(e,u){A&&u.name==="__proto__"?A(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if(u==="__proto__")if(d.call(e,u)){if(b)return b(e,u).value}else return;return e[u]};_.exports=function t(){var e,u,a,l,r,i,f=arguments[0],n=1,c=arguments.length,x=!1;for(typeof f=="boolean"&&(x=f,f=arguments[1]||{},n=2),(f==null||typeof f!="object"&&typeof f!="function")&&(f={});n<c;++n)if(e=arguments[n],e!=null)for(u in e)a=o(f,u),l=o(e,u),f!==l&&(x&&l&&(y(l)||(r=p(l)))?(r?(r=!1,i=a&&p(a)?a:[]):i=a&&y(a)?a:{},h(f,{name:u,newValue:t(x,i,l)})):typeof l<"u"&&h(f,{name:u,newValue:l}));return f}},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BlockEmbed=s.bubbleFormats=void 0;var w=function(){function v(g,k){for(var P=0;P<k.length;P++){var j=k[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(g,j.key,j)}}return function(g,k,P){return k&&v(g.prototype,k),P&&v(g,P),g}}(),A=function v(g,k,P){g===null&&(g=Function.prototype);var j=Object.getOwnPropertyDescriptor(g,k);if(j===void 0){var $=Object.getPrototypeOf(g);return $===null?void 0:v($,k,P)}else{if("value"in j)return j.value;var F=j.get;return F===void 0?void 0:F.call(P)}},b=d(3),p=f(b),y=d(2),h=f(y),o=d(0),t=f(o),e=d(16),u=f(e),a=d(6),l=f(a),r=d(7),i=f(r);function f(v){return v&&v.__esModule?v:{default:v}}function n(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function c(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function x(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var O=1,E=function(v){x(g,v);function g(){return n(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return w(g,[{key:"attach",value:function(){A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"attach",this).call(this),this.attributes=new t.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(P,j){var $=t.default.query(P,t.default.Scope.BLOCK_ATTRIBUTE);$!=null&&this.attributes.attribute($,j)}},{key:"formatAt",value:function(P,j,$,F){this.format($,F)}},{key:"insertAt",value:function(P,j,$){if(typeof j=="string"&&j.endsWith(`
8`)){var F=t.default.create(S.blotName);this.parent.insertBefore(F,P===0?this:this.next),F.insertAt(0,j.slice(0,-1))}else A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,P,j,$)}}]),g}(t.default.Embed);E.scope=t.default.Scope.BLOCK_BLOT;var S=function(v){x(g,v);function g(k){n(this,g);var P=c(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,k));return P.cache={},P}return w(g,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(P,j){return j.length()===0?P:P.insert(j.value(),m(j))},new h.default).insert(`
9`,m(this))),this.cache.delta}},{key:"deleteAt",value:function(P,j){A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"deleteAt",this).call(this,P,j),this.cache={}}},{key:"formatAt",value:function(P,j,$,F){j<=0||(t.default.query($,t.default.Scope.BLOCK)?P+j===this.length()&&this.format($,F):A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,P,Math.min(j,this.length()-P-1),$,F),this.cache={})}},{key:"insertAt",value:function(P,j,$){if($!=null)return A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,P,j,$);if(j.length!==0){var F=j.split(`
10`),W=F.shift();W.length>0&&(P<this.length()-1||this.children.tail==null?A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,Math.min(P,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var C=this;F.reduce(function(M,T){return C=C.split(M,!0),C.insertAt(0,T),T.length},P+W.length)}}},{key:"insertBefore",value:function(P,j){var $=this.children.head;A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,P,j),$ instanceof u.default&&$.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"length",this).call(this)+O),this.cache.length}},{key:"moveChildren",value:function(P,j){A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"moveChildren",this).call(this,P,j),this.cache={}}},{key:"optimize",value:function(P){A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(j&&(P===0||P>=this.length()-O)){var $=this.clone();return P===0?(this.parent.insertBefore($,this),this):(this.parent.insertBefore($,this.next),$)}else{var F=A(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"split",this).call(this,P,j);return this.cache={},F}}}]),g}(t.default.Block);S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[l.default,t.default.Embed,i.default];function m(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v==null||(typeof v.formats=="function"&&(g=(0,p.default)(g,v.formats())),v.parent==null||v.parent.blotName=="scroll"||v.parent.statics.scope!==v.statics.scope)?g:m(v.parent,g)}s.bubbleFormats=m,s.BlockEmbed=E,s.default=S},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.overload=s.expandConfig=void 0;var w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},A=function(){function C(M,T){var q=[],I=!0,U=!1,B=void 0;try{for(var L=M[Symbol.iterator](),D;!(I=(D=L.next()).done)&&(q.push(D.value),!(T&&q.length===T));I=!0);}catch(H){U=!0,B=H}finally{try{!I&&L.return&&L.return()}finally{if(U)throw B}}return q}return function(M,T){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return C(M,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function C(M,T){for(var q=0;q<T.length;q++){var I=T[q];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(M,I.key,I)}}return function(M,T,q){return T&&C(M.prototype,T),q&&C(M,q),M}}();d(50);var p=d(2),y=m(p),h=d(14),o=m(h),t=d(8),e=m(t),u=d(9),a=m(u),l=d(0),r=m(l),i=d(15),f=m(i),n=d(3),c=m(n),x=d(10),O=m(x),E=d(34),S=m(E);function m(C){return C&&C.__esModule?C:{default:C}}function v(C,M,T){return M in C?Object.defineProperty(C,M,{value:T,enumerable:!0,configurable:!0,writable:!0}):C[M]=T,C}function g(C,M){if(!(C instanceof M))throw new TypeError("Cannot call a class as a function")}var k=(0,O.default)("quill"),P=function(){b(C,null,[{key:"debug",value:function(T){T===!0&&(T="log"),O.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&&k.error("Cannot import "+T+". Are you sure it was registered?"),this.imports[T]}},{key:"register",value:function(T,q){var I=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof T!="string"){var B=T.attrName||T.blotName;typeof B=="string"?this.register("formats/"+B,T,q):Object.keys(T).forEach(function(L){I.register(L,T[L],q)})}else this.imports[T]!=null&&!U&&k.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 C(M){var T=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g(this,C),this.options=j(M,q),this.container=this.options.container,this.container==null)return k.error("Invalid Quill container",M);this.options.debug&&C.debug(this.options.debug);var I=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 e.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(e.default.events.EDITOR_CHANGE,function(B){B===e.default.events.TEXT_CHANGE&&T.root.classList.toggle("ql-blank",T.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(B,L){var D=T.selection.lastRange,H=D&&D.length===0?D.index:void 0;$.call(T,function(){return T.editor.update(null,L,H)},B)});var U=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+I+"<p><br></p></div>");this.setContents(U),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return b(C,[{key:"addContainer",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof T=="string"){var I=T;T=document.createElement("div"),T.classList.add(I)}return this.container.insertBefore(T,q),T}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(T,q,I){var U=this,B=F(T,q,I),L=A(B,4);return T=L[0],q=L[1],I=L[3],$.call(this,function(){return U.editor.deleteText(T,q)},I,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 I=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e.default.sources.API;return $.call(this,function(){var B=I.getSelection(!0),L=new y.default;if(B==null)return L;if(r.default.query(T,r.default.Scope.BLOCK))L=I.editor.formatLine(B.index,B.length,v({},T,q));else{if(B.length===0)return I.selection.format(T,q),L;L=I.editor.formatText(B.index,B.length,v({},T,q))}return I.setSelection(B,e.default.sources.SILENT),L},U)}},{key:"formatLine",value:function(T,q,I,U,B){var L=this,D=void 0,H=F(T,q,I,U,B),z=A(H,4);return T=z[0],q=z[1],D=z[2],B=z[3],$.call(this,function(){return L.editor.formatLine(T,q,D)},B,T,0)}},{key:"formatText",value:function(T,q,I,U,B){var L=this,D=void 0,H=F(T,q,I,U,B),z=A(H,4);return T=z[0],q=z[1],D=z[2],B=z[3],$.call(this,function(){return L.editor.formatText(T,q,D)},B,T,0)}},{key:"getBounds",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=void 0;typeof T=="number"?I=this.selection.getBounds(T,q):I=this.selection.getBounds(T.index,T.length);var U=this.container.getBoundingClientRect();return{bottom:I.bottom-U.top,height:I.height,left:I.left-U.left,right:I.right-U.left,top:I.top-U.top,width:I.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,I=F(T,q),U=A(I,2);return T=U[0],q=U[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,I=F(T,q),U=A(I,2);return T=U[0],q=U[1],this.editor.getText(T,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(T,q,I){var U=this,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C.sources.API;return $.call(this,function(){return U.editor.insertEmbed(T,q,I)},B,T)}},{key:"insertText",value:function(T,q,I,U,B){var L=this,D=void 0,H=F(T,0,I,U,B),z=A(H,4);return T=z[0],D=z[2],B=z[3],$.call(this,function(){return L.editor.insertText(T,q,D)},B,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,I){this.clipboard.dangerouslyPasteHTML(T,q,I)}},{key:"removeFormat",value:function(T,q,I){var U=this,B=F(T,q,I),L=A(B,4);return T=L[0],q=L[1],I=L[3],$.call(this,function(){return U.editor.removeFormat(T,q)},I,T)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(T){var q=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return $.call(this,function(){T=new y.default(T);var U=q.getLength(),B=q.editor.deleteText(0,U),L=q.editor.applyDelta(T),D=L.ops[L.ops.length-1];D!=null&&typeof D.insert=="string"&&D.insert[D.insert.length-1]===`
11`&&(q.editor.deleteText(q.getLength()-1,1),L.delete(1));var H=B.compose(L);return H},I)}},{key:"setSelection",value:function(T,q,I){if(T==null)this.selection.setRange(null,q||C.sources.API);else{var U=F(T,q,I),B=A(U,4);T=B[0],q=B[1],I=B[3],this.selection.setRange(new i.Range(T,q),I),I!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API,I=new y.default().insert(T);return this.setContents(I,q)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.default.sources.USER,q=this.scroll.update(T);return this.selection.update(T),q}},{key:"updateContents",value:function(T){var q=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.default.sources.API;return $.call(this,function(){return T=new y.default(T),q.editor.applyDelta(T,I)},I,!0)}}]),C}();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=e.default.events,P.sources=e.default.sources,P.version="1.3.7",P.imports={delta:y.default,parchment:r.default,"core/module":a.default,"core/theme":S.default};function j(C,M){if(M=(0,c.default)(!0,{container:C,modules:{clipboard:!0,keyboard:!0,history:!0}},M),!M.theme||M.theme===P.DEFAULTS.theme)M.theme=S.default;else if(M.theme=P.import("themes/"+M.theme),M.theme==null)throw new Error("Invalid theme "+M.theme+". Did you register it?");var T=(0,c.default)(!0,{},M.theme.DEFAULTS);[T,M].forEach(function(U){U.modules=U.modules||{},Object.keys(U.modules).forEach(function(B){U.modules[B]===!0&&(U.modules[B]={})})});var q=Object.keys(T.modules).concat(Object.keys(M.modules)),I=q.reduce(function(U,B){var L=P.import("modules/"+B);return L==null?k.error("Cannot load "+B+" module. Are you sure you registered it?"):U[B]=L.DEFAULTS||{},U},{});return M.modules!=null&&M.modules.toolbar&&M.modules.toolbar.constructor!==Object&&(M.modules.toolbar={container:M.modules.toolbar}),M=(0,c.default)(!0,{},P.DEFAULTS,{modules:I},T,M),["bounds","container","scrollingContainer"].forEach(function(U){typeof M[U]=="string"&&(M[U]=document.querySelector(M[U]))}),M.modules=Object.keys(M.modules).reduce(function(U,B){return M.modules[B]&&(U[B]=M.modules[B]),U},{}),M}function $(C,M,T,q){if(this.options.strict&&!this.isEnabled()&&M===e.default.sources.USER)return new y.default;var I=T==null?null:this.getSelection(),U=this.editor.delta,B=C();if(I!=null&&(T===!0&&(T=I.index),q==null?I=W(I,B,M):q!==0&&(I=W(I,T,q,M)),this.setSelection(I,e.default.sources.SILENT)),B.length()>0){var L,D=[e.default.events.TEXT_CHANGE,B,U,M];if((L=this.emitter).emit.apply(L,[e.default.events.EDITOR_CHANGE].concat(D)),M!==e.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,D)}}return B}function F(C,M,T,q,I){var U={};return typeof C.index=="number"&&typeof C.length=="number"?typeof M!="number"?(I=q,q=T,T=M,M=C.length,C=C.index):(M=C.length,C=C.index):typeof M!="number"&&(I=q,q=T,T=M,M=0),(typeof T>"u"?"undefined":w(T))==="object"?(U=T,I=q):typeof T=="string"&&(q!=null?U[T]=q:I=T),I=I||e.default.sources.API,[C,M,U,I]}function W(C,M,T,q){if(C==null)return null;var I=void 0,U=void 0;if(M instanceof y.default){var B=[C.index,C.index+C.length].map(function(z){return M.transformPosition(z,q!==e.default.sources.USER)}),L=A(B,2);I=L[0],U=L[1]}else{var D=[C.index,C.index+C.length].map(function(z){return z<M||z===M&&q===e.default.sources.USER?z:T>=0?z+T:Math.max(M,z+T)}),H=A(D,2);I=H[0],U=H[1]}return new i.Range(I,U-I)}s.expandConfig=j,s.overload=F,s.default=P},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var 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}}(),A=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 x=n.get;return x===void 0?void 0:x.call(f)}},b=d(7),p=o(b),y=d(0),h=o(y);function o(l){return l&&l.__esModule?l:{default:l}}function t(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 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 t(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return w(r,[{key:"formatAt",value:function(f,n,c,x){if(r.compare(this.statics.blotName,c)<0&&h.default.query(c,h.default.Scope.BLOT)){var O=this.isolate(f,n);x&&O.wrap(c,x)}else A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,c,x)}},{key:"optimize",value:function(f){if(A(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),x=r.order.indexOf(n);return c>=0||x>=0?c-x: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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(0),A=b(w);function b(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){h(e,t);function e(){return p(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default.Text);s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function i(f,n){for(var c=0;c<n.length;c++){var x=n[c];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(f,x.key,x)}}return function(f,n,c){return n&&i(f.prototype,n),c&&i(f,c),f}}(),A=function i(f,n,c){f===null&&(f=Function.prototype);var x=Object.getOwnPropertyDescriptor(f,n);if(x===void 0){var O=Object.getPrototypeOf(f);return O===null?void 0:i(O,n,c)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(c)}},b=d(54),p=o(b),y=d(10),h=o(y);function o(i){return i&&i.__esModule?i:{default:i}}function t(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}function e(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(x){if(x.__quill&&x.__quill.emitter){var O;(O=x.__quill.emitter).handleDOM.apply(O,n)}})})});var r=function(i){u(f,i);function f(){t(this,f);var n=e(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",a.error),n}return w(f,[{key:"emit",value:function(){a.log.apply(a,arguments),A(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(c){for(var x=arguments.length,O=Array(x>1?x-1:0),E=1;E<x;E++)O[E-1]=arguments[E];(this.listeners[c.type]||[]).forEach(function(S){var m=S.node,v=S.handler;(c.target===m||m.contains(c.target))&&v.apply(void 0,[c].concat(O))})}},{key:"listenDOM",value:function(c,x,O){this.listeners[c]||(this.listeners[c]=[]),this.listeners[c].push({node:x,handler:O})}}]),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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});function w(b,p){if(!(b instanceof p))throw new TypeError("Cannot call a class as a function")}var A=function b(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};w(this,b),this.quill=p,this.options=y};A.DEFAULTS={},s.default=A},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=["error","warn","log","info"],A="warn";function b(y){if(w.indexOf(y)<=w.indexOf(A)){for(var h,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(h=console)[y].apply(h,t)}}function p(y){return w.reduce(function(h,o){return h[o]=b.bind(console,o,y),h},{})}b.level=p.level=function(y){A=y},s.default=p},function(_,s,d){var w=Array.prototype.slice,A=d(52),b=d(53),p=_.exports=function(t,e,u){return u||(u={}),t===e?!0:t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||typeof t!="object"&&typeof e!="object"?u.strict?t===e:t==e:o(t,e,u)};function y(t){return t==null}function h(t){return!(!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number")}function o(t,e,u){var a,l;if(y(t)||y(e)||t.prototype!==e.prototype)return!1;if(b(t))return b(e)?(t=w.call(t),e=w.call(e),p(t,e,u)):!1;if(h(t)){if(!h(e)||t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}try{var r=A(t),i=A(e)}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(t[l],e[l],u))return!1;return typeof t==typeof e}},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(1),A=function(){function b(p,y,h){h===void 0&&(h={}),this.attrName=p,this.keyName=y;var o=w.Scope.TYPE&w.Scope.ATTRIBUTE;h.scope!=null?this.scope=h.scope&w.Scope.LEVEL|o:this.scope=w.Scope.ATTRIBUTE,h.whitelist!=null&&(this.whitelist=h.whitelist)}return b.keys=function(p){return[].map.call(p.attributes,function(y){return y.name})},b.prototype.add=function(p,y){return this.canAdd(p,y)?(p.setAttribute(this.keyName,y),!0):!1},b.prototype.canAdd=function(p,y){var h=w.query(p,w.Scope.BLOT&(this.scope|w.Scope.TYPE));return h==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},b.prototype.remove=function(p){p.removeAttribute(this.keyName)},b.prototype.value=function(p){var y=p.getAttribute(this.keyName);return this.canAdd(p,y)&&y?y:""},b}();s.default=A},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Code=void 0;var w=function(){function E(S,m){var v=[],g=!0,k=!1,P=void 0;try{for(var j=S[Symbol.iterator](),$;!(g=($=j.next()).done)&&(v.push($.value),!(m&&v.length===m));g=!0);}catch(F){k=!0,P=F}finally{try{!g&&j.return&&j.return()}finally{if(k)throw P}}return v}return function(S,m){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return E(S,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function E(S,m){for(var v=0;v<m.length;v++){var g=m[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(S,g.key,g)}}return function(S,m,v){return m&&E(S.prototype,m),v&&E(S,v),S}}(),b=function E(S,m,v){S===null&&(S=Function.prototype);var g=Object.getOwnPropertyDescriptor(S,m);if(g===void 0){var k=Object.getPrototypeOf(S);return k===null?void 0:E(k,m,v)}else{if("value"in g)return g.value;var P=g.get;return P===void 0?void 0:P.call(v)}},p=d(2),y=i(p),h=d(0),o=i(h),t=d(4),e=i(t),u=d(6),a=i(u),l=d(7),r=i(l);function i(E){return E&&E.__esModule?E:{default:E}}function f(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}function n(E,S){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:E}function c(E,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);E.prototype=Object.create(S&&S.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(E,S):E.__proto__=S)}var x=function(E){c(S,E);function S(){return f(this,S),n(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return S}(a.default);x.blotName="code",x.tagName="CODE";var O=function(E){c(S,E);function S(){return f(this,S),n(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return A(S,[{key:"delta",value:function(){var v=this,g=this.domNode.textContent;return g.endsWith(`
12`)&&(g=g.slice(0,-1)),g.split(`
13`).reduce(function(k,P){return k.insert(P).insert(`
14`,v.formats())},new y.default)}},{key:"format",value:function(v,g){if(!(v===this.statics.blotName&&g)){var k=this.descendant(r.default,this.length()-1),P=w(k,1),j=P[0];j!=null&&j.deleteAt(j.length()-1,1),b(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"format",this).call(this,v,g)}}},{key:"formatAt",value:function(v,g,k,P){if(g!==0&&!(o.default.query(k,o.default.Scope.BLOCK)==null||k===this.statics.blotName&&P===this.statics.formats(this.domNode))){var j=this.newlineIndex(v);if(!(j<0||j>=v+g)){var $=this.newlineIndex(v,!0)+1,F=j-$+1,W=this.isolate($,F),C=W.next;W.format(k,P),C instanceof S&&C.formatAt(0,v-$+g-F,k,P)}}}},{key:"insertAt",value:function(v,g,k){if(k==null){var P=this.descendant(r.default,v),j=w(P,2),$=j[0],F=j[1];$.insertAt(F,g)}}},{key:"length",value:function(){var v=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
15`)?v:v+1}},{key:"newlineIndex",value:function(v){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(g)return this.domNode.textContent.slice(0,v).lastIndexOf(`
16`);var k=this.domNode.textContent.slice(v).indexOf(`
17`);return k>-1?v+k:-1}},{key:"optimize",value:function(v){this.domNode.textContent.endsWith(`
18`)||this.appendChild(o.default.create("text",`
19`)),b(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,v);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(v),g.moveChildren(this),g.remove())}},{key:"replace",value:function(v){b(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replace",this).call(this,v),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(g){var k=o.default.find(g);k==null?g.parentNode.removeChild(g):k instanceof o.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(v){var g=b(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this,v);return g.setAttribute("spellcheck",!1),g}},{key:"formats",value:function(){return!0}}]),S}(e.default);O.blotName="code-block",O.tagName="PRE",O.TAB="  ",s.Code=x,s.default=O},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},A=function(){function C(M,T){var q=[],I=!0,U=!1,B=void 0;try{for(var L=M[Symbol.iterator](),D;!(I=(D=L.next()).done)&&(q.push(D.value),!(T&&q.length===T));I=!0);}catch(H){U=!0,B=H}finally{try{!I&&L.return&&L.return()}finally{if(U)throw B}}return q}return function(M,T){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return C(M,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function C(M,T){for(var q=0;q<T.length;q++){var I=T[q];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(M,I.key,I)}}return function(M,T,q){return T&&C(M.prototype,T),q&&C(M,q),M}}(),p=d(2),y=g(p),h=d(20),o=g(h),t=d(0),e=g(t),u=d(13),a=g(u),l=d(24),r=g(l),i=d(4),f=g(i),n=d(16),c=g(n),x=d(21),O=g(x),E=d(11),S=g(E),m=d(3),v=g(m);function g(C){return C&&C.__esModule?C:{default:C}}function k(C,M,T){return M in C?Object.defineProperty(C,M,{value:T,enumerable:!0,configurable:!0,writable:!0}):C[M]=T,C}function P(C,M){if(!(C instanceof M))throw new TypeError("Cannot call a class as a function")}var j=/^[ -~]*$/,$=function(){function C(M){P(this,C),this.scroll=M,this.delta=this.getDelta()}return b(C,[{key:"applyDelta",value:function(T){var q=this,I=!1;this.scroll.update();var U=this.scroll.length();return this.scroll.batchStart(),T=W(T),T.reduce(function(B,L){var D=L.retain||L.delete||L.insert.length||1,H=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
20`)&&I&&(I=!1,z=z.slice(0,-1)),B>=U&&!z.endsWith(`
21`)&&(I=!0),q.scroll.insertAt(B,z);var V=q.scroll.line(B),X=A(V,2),J=X[0],tt=X[1],it=(0,v.default)({},(0,i.bubbleFormats)(J));if(J instanceof f.default){var ot=J.descendant(e.default.Leaf,tt),ft=A(ot,1),st=ft[0];it=(0,v.default)(it,(0,i.bubbleFormats)(st))}H=o.default.attributes.diff(it,H)||{}}else if(w(L.insert)==="object"){var K=Object.keys(L.insert)[0];if(K==null)return B;q.scroll.insertAt(B,K,L.insert[K])}U+=D}return Object.keys(H).forEach(function(G){q.scroll.formatAt(B,D,G,H[G])}),B+D},0),T.reduce(function(B,L){return typeof L.delete=="number"?(q.scroll.deleteAt(B,L.delete),B):B+(L.retain||L.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 y.default().retain(T).delete(q))}},{key:"formatLine",value:function(T,q){var I=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(U).forEach(function(B){if(!(I.scroll.whitelist!=null&&!I.scroll.whitelist[B])){var L=I.scroll.lines(T,Math.max(q,1)),D=q;L.forEach(function(H){var z=H.length();if(!(H instanceof a.default))H.format(B,U[B]);else{var V=T-H.offset(I.scroll),X=H.newlineIndex(V+D)-V+1;H.formatAt(V,X,B,U[B])}D-=z})}}),this.scroll.optimize(),this.update(new y.default().retain(T).retain(q,(0,O.default)(U)))}},{key:"formatText",value:function(T,q){var I=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(U).forEach(function(B){I.scroll.formatAt(T,q,B,U[B])}),this.update(new y.default().retain(T).retain(q,(0,O.default)(U)))}},{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 y.default)}},{key:"getFormat",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=[],U=[];q===0?this.scroll.path(T).forEach(function(L){var D=A(L,1),H=D[0];H instanceof f.default?I.push(H):H instanceof e.default.Leaf&&U.push(H)}):(I=this.scroll.lines(T,q),U=this.scroll.descendants(e.default.Leaf,T,q));var B=[I,U].map(function(L){if(L.length===0)return{};for(var D=(0,i.bubbleFormats)(L.shift());Object.keys(D).length>0;){var H=L.shift();if(H==null)return D;D=F((0,i.bubbleFormats)(H),D)}return D});return v.default.apply(v.default,B)}},{key:"getText",value:function(T,q){return this.getContents(T,q).filter(function(I){return typeof I.insert=="string"}).map(function(I){return I.insert}).join("")}},{key:"insertEmbed",value:function(T,q,I){return this.scroll.insertAt(T,q,I),this.update(new y.default().retain(T).insert(k({},q,I)))}},{key:"insertText",value:function(T,q){var I=this,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,`
22`).replace(/\r/g,`
23`),this.scroll.insertAt(T,q),Object.keys(U).forEach(function(B){I.scroll.formatAt(T,q.length,B,U[B])}),this.update(new y.default().retain(T).insert(q,(0,O.default)(U)))}},{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 I=this.getText(T,q),U=this.scroll.line(T+q),B=A(U,2),L=B[0],D=B[1],H=0,z=new y.default;L!=null&&(L instanceof a.default?H=L.newlineIndex(D)-D+1:H=L.length()-D,z=L.delta().slice(D,D+H-1).insert(`
24`));var V=this.getContents(T,q+H),X=V.diff(new y.default().insert(I).concat(z)),J=new y.default().retain(T).concat(X);return this.applyDelta(J)}},{key:"update",value:function(T){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,U=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(j)&&e.default.find(q[0].target)){var B=e.default.find(q[0].target),L=(0,i.bubbleFormats)(B),D=B.offset(this.scroll),H=q[0].oldValue.replace(r.default.CONTENTS,""),z=new y.default().insert(H),V=new y.default().insert(B.value()),X=new y.default().retain(D).concat(z.diff(V,I));T=X.reduce(function(J,tt){return tt.insert?J.insert(tt.insert,L):J.push(tt)},new y.default),this.delta=U.compose(T)}else this.delta=this.getDelta(),(!T||!(0,S.default)(U.compose(T),this.delta))&&(T=U.diff(this.delta,I));return T}}]),C}();function F(C,M){return Object.keys(M).reduce(function(T,q){return C[q]==null||(M[q]===C[q]?T[q]=M[q]:Array.isArray(M[q])?M[q].indexOf(C[q])<0&&(T[q]=M[q].concat([C[q]])):T[q]=[M[q],C[q]]),T},{})}function W(C){return C.reduce(function(M,T){if(T.insert===1){var q=(0,O.default)(T.attributes);return delete q.image,M.insert({image:T.attributes.image},q)}if(T.attributes!=null&&(T.attributes.list===!0||T.attributes.bullet===!0)&&(T=(0,O.default)(T),T.attributes.list?T.attributes.list="ordered":(T.attributes.list="bullet",delete T.attributes.bullet)),typeof T.insert=="string"){var I=T.insert.replace(/\r\n/g,`
25`).replace(/\r/g,`
26`);return M.insert(I,T.attributes)}return M.push(T)},new y.default)}s.default=$},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.Range=void 0;var w=function(){function E(S,m){var v=[],g=!0,k=!1,P=void 0;try{for(var j=S[Symbol.iterator](),$;!(g=($=j.next()).done)&&(v.push($.value),!(m&&v.length===m));g=!0);}catch(F){k=!0,P=F}finally{try{!g&&j.return&&j.return()}finally{if(k)throw P}}return v}return function(S,m){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return E(S,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function E(S,m){for(var v=0;v<m.length;v++){var g=m[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(S,g.key,g)}}return function(S,m,v){return m&&E(S.prototype,m),v&&E(S,v),S}}(),b=d(0),p=r(b),y=d(21),h=r(y),o=d(11),t=r(o),e=d(8),u=r(e),a=d(10),l=r(a);function r(E){return E&&E.__esModule?E:{default:E}}function i(E){if(Array.isArray(E)){for(var S=0,m=Array(E.length);S<E.length;S++)m[S]=E[S];return m}else return Array.from(E)}function f(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}var n=(0,l.default)("quill:selection"),c=function E(S){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;f(this,E),this.index=S,this.length=m},x=function(){function E(S,m){var v=this;f(this,E),this.emitter=m,this.scroll=S,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(){v.mouseDown||setTimeout(v.update.bind(v,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(g,k){g===u.default.events.TEXT_CHANGE&&k.length()>0&&v.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(v.hasFocus()){var g=v.getNativeRange();g!=null&&g.start.node!==v.cursor.textNode&&v.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{v.setNativeRange(g.start.node,g.start.offset,g.end.node,g.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(g,k){if(k.range){var P=k.range,j=P.startNode,$=P.startOffset,F=P.endNode,W=P.endOffset;v.setNativeRange(j,$,F,W)}}),this.update(u.default.sources.SILENT)}return A(E,[{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 v=m.cursor.restore();if(!v)return;setTimeout(function(){m.setNativeRange(v.startNode,v.startOffset,v.endNode,v.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,v){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 k=p.default.find(g.start.node,!1);if(k==null)return;if(k instanceof p.default.Leaf){var P=k.split(g.start.offset);k.parent.insertBefore(this.cursor,P)}else k.insertBefore(this.cursor,g.start.node);this.cursor.attach()}this.cursor.format(m,v),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=this.scroll.length();m=Math.min(m,g-1),v=Math.min(m+v,g-1)-m;var k=void 0,P=this.scroll.leaf(m),j=w(P,2),$=j[0],F=j[1];if($==null)return null;var W=$.position(F,!0),C=w(W,2);k=C[0],F=C[1];var M=document.createRange();if(v>0){M.setStart(k,F);var T=this.scroll.leaf(m+v),q=w(T,2);if($=q[0],F=q[1],$==null)return null;var I=$.position(F,!0),U=w(I,2);return k=U[0],F=U[1],M.setEnd(k,F),M.getBoundingClientRect()}else{var B="left",L=void 0;return k instanceof Text?(F<k.data.length?(M.setStart(k,F),M.setEnd(k,F+1)):(M.setStart(k,F-1),M.setEnd(k,F),B="right"),L=M.getBoundingClientRect()):(L=$.domNode.getBoundingClientRect(),F>0&&(B="right")),{bottom:L.top+L.height,height:L.height,left:L[B],right:L[B],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var m=document.getSelection();if(m==null||m.rangeCount<=0)return null;var v=m.getRangeAt(0);if(v==null)return null;var g=this.normalizeNative(v);return n.info("getNativeRange",g),g}},{key:"getRange",value:function(){var m=this.getNativeRange();if(m==null)return[null,null];var v=this.normalizedToRange(m);return[v,m]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(m){var v=this,g=[[m.start.node,m.start.offset]];m.native.collapsed||g.push([m.end.node,m.end.offset]);var k=g.map(function($){var F=w($,2),W=F[0],C=F[1],M=p.default.find(W,!0),T=M.offset(v.scroll);return C===0?T:M instanceof p.default.Container?T+M.length():T+M.index(W,C)}),P=Math.min(Math.max.apply(Math,i(k)),this.scroll.length()-1),j=Math.min.apply(Math,[P].concat(i(k)));return new c(j,P-j)}},{key:"normalizeNative",value:function(m){if(!O(this.root,m.startContainer)||!m.collapsed&&!O(this.root,m.endContainer))return null;var v={start:{node:m.startContainer,offset:m.startOffset},end:{node:m.endContainer,offset:m.endOffset},native:m};return[v.start,v.end].forEach(function(g){for(var k=g.node,P=g.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>P)k=k.childNodes[P],P=0;else if(k.childNodes.length===P)k=k.lastChild,P=k instanceof Text?k.data.length:k.childNodes.length+1;else break;g.node=k,g.offset=P}),v}},{key:"rangeToNative",value:function(m){var v=this,g=m.collapsed?[m.index]:[m.index,m.index+m.length],k=[],P=this.scroll.length();return g.forEach(function(j,$){j=Math.min(P-1,j);var F=void 0,W=v.scroll.leaf(j),C=w(W,2),M=C[0],T=C[1],q=M.position(T,$!==0),I=w(q,2);F=I[0],T=I[1],k.push(F,T)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(m){var v=this.lastRange;if(v!=null){var g=this.getBounds(v.index,v.length);if(g!=null){var k=this.scroll.length()-1,P=this.scroll.line(Math.min(v.index,k)),j=w(P,1),$=j[0],F=$;if(v.length>0){var W=this.scroll.line(Math.min(v.index+v.length,k)),C=w(W,1);F=C[0]}if(!($==null||F==null)){var M=m.getBoundingClientRect();g.top<M.top?m.scrollTop-=M.top-g.top:g.bottom>M.bottom&&(m.scrollTop+=g.bottom-M.bottom)}}}}},{key:"setNativeRange",value:function(m,v){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",m,v,g,k),!(m!=null&&(this.root.parentNode==null||m.parentNode==null||g.parentNode==null))){var j=document.getSelection();if(j!=null)if(m!=null){this.hasFocus()||this.root.focus();var $=(this.getNativeRange()||{}).native;if($==null||P||m!==$.startContainer||v!==$.startOffset||g!==$.endContainer||k!==$.endOffset){m.tagName=="BR"&&(v=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode),g.tagName=="BR"&&(k=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode);var F=document.createRange();F.setStart(m,v),F.setEnd(g,k),j.removeAllRanges(),j.addRange(F)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(m){var v=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 v=="string"&&(g=v,v=!1),n.info("setRange",m),m!=null){var k=this.rangeToNative(m);this.setNativeRange.apply(this,i(k).concat([v]))}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,v=this.lastRange,g=this.getRange(),k=w(g,2),P=k[0],j=k[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,t.default)(v,this.lastRange)){var $;!this.composing&&j!=null&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var F=[u.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(v),m];if(($=this.emitter).emit.apply($,[u.default.events.EDITOR_CHANGE].concat(F)),m!==u.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,F)}}}}]),E}();function O(E,S){try{S.parentNode}catch{return!1}return S instanceof Text&&(S=S.parentNode),E.contains(S)}s.Range=c,s.default=x},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=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}}(),A=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)}},b=d(0),p=y(b);function y(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 t(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 e=function(u){t(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return w(a,[{key:"insertInto",value:function(r,i){r.children.length===0?A(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);e.blotName="break",e.tagName="BR",s.default=e},function(_,s,d){var w=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(44),b=d(30),p=d(1),y=function(o){w(t,o);function t(e){var u=o.call(this,e)||this;return u.build(),u}return t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new A.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var a=h(u);e.insertBefore(a,e.children.head||void 0)}catch(l){if(l instanceof p.ParchmentError)return;throw l}})},t.prototype.deleteAt=function(e,u){if(e===0&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(a,l,r){a.deleteAt(l,r)})},t.prototype.descendant=function(e,u){var a=this.children.find(u),l=a[0],r=a[1];return e.blotName==null&&e(l)||e.blotName!=null&&l instanceof e?[l,r]:l instanceof t?l.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,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){(e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e)&&l.push(i),i instanceof t&&(l=l.concat(i.descendants(e,f,r))),r-=n}),l},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,a,l){this.children.forEachAt(e,u,function(r,i,f){r.formatAt(i,f,a,l)})},t.prototype.insertAt=function(e,u,a){var l=this.children.find(e),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)}},t.prototype.insertBefore=function(e,u){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(a){return e instanceof a}))throw new p.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(a){e.insertBefore(a,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),this.children.length===0)if(this.statics.defaultChild!=null){var u=p.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){u===void 0&&(u=!1);var a=this.children.find(e,u),l=a[0],r=a[1],i=[[this,e]];return l instanceof t?i.concat(l.path(r,u)):(l!=null&&i.push([l,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(u===void 0&&(u=!1),!u){if(e===0)return this;if(e===this.length())return this.next}var a=this.clone();return this.parent.insertBefore(a,this.next),this.children.forEachAt(e,this.length(),function(l,r,i){l=l.split(r,u),a.appendChild(l)}),a},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var a=this,l=[],r=[];e.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))})},t}(b.default);function h(o){var t=p.find(o);if(t==null)try{t=p.create(o)}catch{t=p.create(p.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}s.default=y},function(_,s,d){var w=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(12),b=d(31),p=d(17),y=d(1),h=function(o){w(t,o);function t(e){var u=o.call(this,e)||this;return u.attributes=new b.default(u.domNode),u}return t.formats=function(e){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()},t.prototype.format=function(e,u){var a=y.query(e);a instanceof A.default?this.attributes.attribute(a,u):u&&a!=null&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return u!=null&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var a=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(a),a},t.prototype.update=function(e,u){var a=this;o.prototype.update.call(this,e,u),e.some(function(l){return l.target===a.domNode&&l.type==="attributes"})&&this.attributes.build()},t.prototype.wrap=function(e,u){var a=o.prototype.wrap.call(this,e,u);return a instanceof t&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},t}(p.default);s.default=h},function(_,s,d){var w=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){y(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(30),b=d(1),p=function(y){w(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.value=function(o){return!0},h.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},h.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},h.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},h.scope=b.Scope.INLINE_BLOT,h}(A.default);s.default=p},function(_,s,d){var w=d(11),A=d(3),b={attributes:{compose:function(y,h,o){typeof y!="object"&&(y={}),typeof h!="object"&&(h={});var t=A(!0,{},h);o||(t=Object.keys(t).reduce(function(u,a){return t[a]!=null&&(u[a]=t[a]),u},{}));for(var e in y)y[e]!==void 0&&h[e]===void 0&&(t[e]=y[e]);return Object.keys(t).length>0?t:void 0},diff:function(y,h){typeof y!="object"&&(y={}),typeof h!="object"&&(h={});var o=Object.keys(y).concat(Object.keys(h)).reduce(function(t,e){return w(y[e],h[e])||(t[e]=h[e]===void 0?null:h[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(y,h,o){if(typeof y!="object")return h;if(typeof h=="object"){if(!o)return h;var t=Object.keys(h).reduce(function(e,u){return y[u]===void 0&&(e[u]=h[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(y){return new p(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function p(y){this.ops=y,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(y){y||(y=1/0);var h=this.ops[this.index];if(h){var o=this.offset,t=b.length(h);if(y>=t-o?(y=t-o,this.index+=1,this.offset=0):this.offset+=y,typeof h.delete=="number")return{delete:y};var e={};return h.attributes&&(e.attributes=h.attributes),typeof h.retain=="number"?e.retain=y:typeof h.insert=="string"?e.insert=h.insert.substr(o,y):e.insert=h.insert,e}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?b.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 y=this.offset,h=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=y,this.index=h,[o].concat(t)}else return[]},_.exports=b},function(_,s){var d=function(){function w(a,l){return l!=null&&a instanceof l}var A;try{A=Map}catch{A=function(){}}var b;try{b=Set}catch{b=function(){}}var p;try{p=Promise}catch{p=function(){}}function y(a,l,r,i,f){typeof l=="object"&&(r=l.depth,i=l.prototype,f=l.includeNonEnumerable,l=l.circular);var n=[],c=[],x=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof r>"u"&&(r=1/0);function O(E,S){if(E===null)return null;if(S===0)return E;var m,v;if(typeof E!="object")return E;if(w(E,A))m=new A;else if(w(E,b))m=new b;else if(w(E,p))m=new p(function(M,T){E.then(function(q){M(O(q,S-1))},function(q){T(O(q,S-1))})});else if(y.__isArray(E))m=[];else if(y.__isRegExp(E))m=new RegExp(E.source,u(E)),E.lastIndex&&(m.lastIndex=E.lastIndex);else if(y.__isDate(E))m=new Date(E.getTime());else{if(x&&Buffer.isBuffer(E))return Buffer.allocUnsafe?m=Buffer.allocUnsafe(E.length):m=new Buffer(E.length),E.copy(m),m;w(E,Error)?m=Object.create(E):typeof i>"u"?(v=Object.getPrototypeOf(E),m=Object.create(v)):(m=Object.create(i),v=i)}if(l){var g=n.indexOf(E);if(g!=-1)return c[g];n.push(E),c.push(m)}w(E,A)&&E.forEach(function(M,T){var q=O(T,S-1),I=O(M,S-1);m.set(q,I)}),w(E,b)&&E.forEach(function(M){var T=O(M,S-1);m.add(T)});for(var k in E){var P;v&&(P=Object.getOwnPropertyDescriptor(v,k)),!(P&&P.set==null)&&(m[k]=O(E[k],S-1))}if(Object.getOwnPropertySymbols)for(var j=Object.getOwnPropertySymbols(E),k=0;k<j.length;k++){var $=j[k],F=Object.getOwnPropertyDescriptor(E,$);F&&!F.enumerable&&!f||(m[$]=O(E[$],S-1),F.enumerable||Object.defineProperty(m,$,{enumerable:!1}))}if(f)for(var W=Object.getOwnPropertyNames(E),k=0;k<W.length;k++){var C=W[k],F=Object.getOwnPropertyDescriptor(E,C);F&&F.enumerable||(m[C]=O(E[C],S-1),Object.defineProperty(m,C,{enumerable:!1}))}return m}return O(a,r)}y.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)}y.__objToStr=h;function o(a){return typeof a=="object"&&h(a)==="[object Date]"}y.__isDate=o;function t(a){return typeof a=="object"&&h(a)==="[object Array]"}y.__isArray=t;function e(a){return typeof a=="object"&&h(a)==="[object RegExp]"}y.__isRegExp=e;function u(a){var l="";return a.global&&(l+="g"),a.ignoreCase&&(l+="i"),a.multiline&&(l+="m"),l}return y.__getRegExpFlags=u,y}();typeof _=="object"&&_.exports&&(_.exports=d)},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function m(v,g){var k=[],P=!0,j=!1,$=void 0;try{for(var F=v[Symbol.iterator](),W;!(P=(W=F.next()).done)&&(k.push(W.value),!(g&&k.length===g));P=!0);}catch(C){j=!0,$=C}finally{try{!P&&F.return&&F.return()}finally{if(j)throw $}}return k}return function(v,g){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return m(v,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function m(v,g){for(var k=0;k<g.length;k++){var P=g[k];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(v,P.key,P)}}return function(v,g,k){return g&&m(v.prototype,g),k&&m(v,k),v}}(),b=function m(v,g,k){v===null&&(v=Function.prototype);var P=Object.getOwnPropertyDescriptor(v,g);if(P===void 0){var j=Object.getPrototypeOf(v);return j===null?void 0:m(j,g,k)}else{if("value"in P)return P.value;var $=P.get;return $===void 0?void 0:$.call(k)}},p=d(0),y=n(p),h=d(8),o=n(h),t=d(4),e=n(t),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,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function x(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function O(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}function E(m){return m instanceof e.default||m instanceof t.BlockEmbed}var S=function(m){O(v,m);function v(g,k){c(this,v);var P=x(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g));return P.emitter=k.emitter,Array.isArray(k.whitelist)&&(P.whitelist=k.whitelist.reduce(function(j,$){return j[$]=!0,j},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return A(v,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,P){var j=this.line(k),$=w(j,2),F=$[0],W=$[1],C=this.line(k+P),M=w(C,1),T=M[0];if(b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"deleteAt",this).call(this,k,P),T!=null&&F!==T&&W>0){if(F instanceof t.BlockEmbed||T instanceof t.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 I=T.newlineIndex(0);I>-1&&T.split(I+1)}var U=T.children.head instanceof a.default?null:T.children.head;F.moveChildren(T,U),F.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,P,j,$){this.whitelist!=null&&!this.whitelist[j]||(b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,k,P,j,$),this.optimize())}},{key:"insertAt",value:function(k,P,j){if(!(j!=null&&this.whitelist!=null&&!this.whitelist[P])){if(k>=this.length())if(j==null||y.default.query(P,y.default.Scope.BLOCK)==null){var $=y.default.create(this.statics.defaultChild);this.appendChild($),j==null&&P.endsWith(`
27`)&&(P=P.slice(0,-1)),$.insertAt(0,P,j)}else{var F=y.default.create(P,j);this.appendChild(F)}else b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,k,P,j);this.optimize()}}},{key:"insertBefore",value:function(k,P){if(k.statics.scope===y.default.Scope.INLINE_BLOT){var j=y.default.create(this.statics.defaultChild);j.appendChild(k),k=j}b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,k,P)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(E,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,j=function $(F,W,C){var M=[],T=C;return F.children.forEachAt(W,C,function(q,I,U){E(q)?M.push(q):q instanceof y.default.Container&&(M=M.concat($(q,I,T))),T-=U}),M};return j(this,k,P)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,k,P),k.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,k,P))}},{key:"path",value:function(k){return b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var P=o.default.sources.USER;typeof k=="string"&&(P=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,P,k),b(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,P,k)}}}]),v}(y.default.Scroll);S.blotName="scroll",S.className="ql-editor",S.tagName="DIV",S.defaultChild="block",S.allowedChildren=[e.default,t.BlockEmbed,f.default],s.default=S},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.SHORTKEY=s.default=void 0;var w=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},A=function(){function L(D,H){var z=[],V=!0,X=!1,J=void 0;try{for(var tt=D[Symbol.iterator](),it;!(V=(it=tt.next()).done)&&(z.push(it.value),!(H&&z.length===H));V=!0);}catch(ot){X=!0,J=ot}finally{try{!V&&tt.return&&tt.return()}finally{if(X)throw J}}return z}return function(D,H){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return L(D,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function L(D,H){for(var z=0;z<H.length;z++){var V=H[z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(D,V.key,V)}}return function(D,H,z){return H&&L(D.prototype,H),z&&L(D,z),D}}(),p=d(21),y=m(p),h=d(11),o=m(h),t=d(3),e=m(t),u=d(2),a=m(u),l=d(20),r=m(l),i=d(0),f=m(i),n=d(5),c=m(n),x=d(10),O=m(x),E=d(9),S=m(E);function m(L){return L&&L.__esModule?L:{default:L}}function v(L,D,H){return D in L?Object.defineProperty(L,D,{value:H,enumerable:!0,configurable:!0,writable:!0}):L[D]=H,L}function g(L,D){if(!(L instanceof D))throw new TypeError("Cannot call a class as a function")}function k(L,D){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:L}function P(L,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);L.prototype=Object.create(D&&D.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(L,D):L.__proto__=D)}var j=(0,O.default)("quill:keyboard"),$=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",F=function(L){P(D,L),b(D,null,[{key:"match",value:function(z,V){return V=B(V),["altKey","ctrlKey","metaKey","shiftKey"].some(function(X){return!!V[X]!==z[X]&&V[X]!==null})?!1:V.key===(z.which||z.keyCode)}}]);function D(H,z){g(this,D);var V=k(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,H,z));return V.bindings={},Object.keys(V.options.bindings).forEach(function(X){X==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||V.options.bindings[X]&&V.addBinding(V.options.bindings[X])}),V.addBinding({key:D.keys.ENTER,shiftKey:null},q),V.addBinding({key:D.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:D.keys.BACKSPACE},{collapsed:!0},C),V.addBinding({key:D.keys.DELETE},{collapsed:!0},M)):(V.addBinding({key:D.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},C),V.addBinding({key:D.keys.DELETE},{collapsed:!0,suffix:/^.?$/},M)),V.addBinding({key:D.keys.BACKSPACE},{collapsed:!1},T),V.addBinding({key:D.keys.DELETE},{collapsed:!1},T),V.addBinding({key:D.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},C),V.listen(),V}return b(D,[{key:"addBinding",value:function(z){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=B(z);if(J==null||J.key==null)return j.warn("Attempted to add invalid keyboard binding",J);typeof V=="function"&&(V={handler:V}),typeof X=="function"&&(X={handler:X}),J=(0,e.default)(J,V,X),this.bindings[J.key]=this.bindings[J.key]||[],this.bindings[J.key].push(J)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var X=V.which||V.keyCode,J=(z.bindings[X]||[]).filter(function(ut){return D.match(V,ut)});if(J.length!==0){var tt=z.quill.getSelection();if(!(tt==null||!z.quill.hasFocus())){var it=z.quill.getLine(tt.index),ot=A(it,2),ft=ot[0],st=ot[1],K=z.quill.getLeaf(tt.index),G=A(K,2),Y=G[0],Q=G[1],Z=tt.length===0?[Y,Q]:z.quill.getLeaf(tt.index+tt.length),et=A(Z,2),nt=et[0],rt=et[1],ht=Y instanceof f.default.Text?Y.value().slice(0,Q):"",yt=nt instanceof f.default.Text?nt.value().slice(rt):"",lt={collapsed:tt.length===0,empty:tt.length===0&&ft.length()<=1,format:z.quill.getFormat(tt),offset:st,prefix:ht,suffix:yt},tn=J.some(function(ut){if(ut.collapsed!=null&&ut.collapsed!==lt.collapsed||ut.empty!=null&&ut.empty!==lt.empty||ut.offset!=null&&ut.offset!==lt.offset)return!1;if(Array.isArray(ut.format)){if(ut.format.every(function(mt){return lt.format[mt]==null}))return!1}else if(w(ut.format)==="object"&&!Object.keys(ut.format).every(function(mt){return ut.format[mt]===!0?lt.format[mt]!=null:ut.format[mt]===!1?lt.format[mt]==null:(0,o.default)(ut.format[mt],lt.format[mt])}))return!1;return ut.prefix!=null&&!ut.prefix.test(lt.prefix)||ut.suffix!=null&&!ut.suffix.test(lt.suffix)?!1:ut.handler.call(z,tt,lt)!==!0});tn&&V.preventDefault()}}}})}}]),D}(S.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:U("bold"),italic:U("italic"),underline:U("underline"),indent:{key:F.keys.TAB,format:["blockquote","indent","list"],handler:function(D,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(D,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(D,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":I(!0),"outdent code-block":I(!1),"remove tab":{key:F.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(D){this.quill.deleteText(D.index-1,1,c.default.sources.USER)}},tab:{key:F.keys.TAB,handler:function(D){this.quill.history.cutoff();var H=new a.default().retain(D.index).delete(D.length).insert("	");this.quill.updateContents(H,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index+1,c.default.sources.SILENT)}},"list empty enter":{key:F.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(D,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(D){var H=this.quill.getLine(D.index),z=A(H,2),V=z[0],X=z[1],J=(0,e.default)({},V.formats(),{list:"checked"}),tt=new a.default().retain(D.index).insert(`
28`,J).retain(V.length()-X-1).retain(1,{list:"unchecked"});this.quill.updateContents(tt,c.default.sources.USER),this.quill.setSelection(D.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:F.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(D,H){var z=this.quill.getLine(D.index),V=A(z,2),X=V[0],J=V[1],tt=new a.default().retain(D.index).insert(`
29`,H.format).retain(X.length()-J-1).retain(1,{header:null});this.quill.updateContents(tt,c.default.sources.USER),this.quill.setSelection(D.index+1,c.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(D,H){var z=H.prefix.length,V=this.quill.getLine(D.index),X=A(V,2),J=X[0],tt=X[1];if(tt>z)return!0;var it=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":it="unchecked";break;case"[x]":it="checked";break;case"-":case"*":it="bullet";break;default:it="ordered"}this.quill.insertText(D.index," ",c.default.sources.USER),this.quill.history.cutoff();var ot=new a.default().retain(D.index-tt).delete(z+1).retain(J.length()-2-tt).retain(1,{list:it});this.quill.updateContents(ot,c.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(D.index-z,c.default.sources.SILENT)}},"code exit":{key:F.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(D){var H=this.quill.getLine(D.index),z=A(H,2),V=z[0],X=z[1],J=new a.default().retain(D.index+V.length()-X-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(J,c.default.sources.USER)}},"embed left":W(F.keys.LEFT,!1),"embed left shift":W(F.keys.LEFT,!0),"embed right":W(F.keys.RIGHT,!1),"embed right shift":W(F.keys.RIGHT,!0)}};function W(L,D){var H,z=L===F.keys.LEFT?"prefix":"suffix";return H={key:L,shiftKey:D,altKey:null},v(H,z,/^$/),v(H,"handler",function(X){var J=X.index;L===F.keys.RIGHT&&(J+=X.length+1);var tt=this.quill.getLeaf(J),it=A(tt,1),ot=it[0];return ot instanceof f.default.Embed?(L===F.keys.LEFT?D?this.quill.setSelection(X.index-1,X.length+1,c.default.sources.USER):this.quill.setSelection(X.index-1,c.default.sources.USER):D?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 C(L,D){if(!(L.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(L.index),z=A(H,1),V=z[0],X={};if(D.offset===0){var J=this.quill.getLine(L.index-1),tt=A(J,1),it=tt[0];if(it!=null&&it.length()>1){var ot=V.formats(),ft=this.quill.getFormat(L.index-1,1);X=r.default.attributes.diff(ot,ft)||{}}}var st=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(D.prefix)?2:1;this.quill.deleteText(L.index-st,st,c.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(L.index-st,st,X,c.default.sources.USER),this.quill.focus()}}function M(L,D){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(D.suffix)?2:1;if(!(L.index>=this.quill.getLength()-H)){var z={},V=0,X=this.quill.getLine(L.index),J=A(X,1),tt=J[0];if(D.offset>=tt.length()-1){var it=this.quill.getLine(L.index+1),ot=A(it,1),ft=ot[0];if(ft){var st=tt.formats(),K=this.quill.getFormat(L.index,1);z=r.default.attributes.diff(st,K)||{},V=ft.length()}}this.quill.deleteText(L.index,H,c.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+V-1,H,z,c.default.sources.USER)}}function T(L){var D=this.quill.getLines(L),H={};if(D.length>1){var z=D[0].formats(),V=D[D.length-1].formats();H=r.default.attributes.diff(V,z)||{}}this.quill.deleteText(L,c.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(L.index,1,H,c.default.sources.USER),this.quill.setSelection(L.index,c.default.sources.SILENT),this.quill.focus()}function q(L,D){var H=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys(D.format).reduce(function(V,X){return f.default.query(X,f.default.Scope.BLOCK)&&!Array.isArray(D.format[X])&&(V[X]=D.format[X]),V},{});this.quill.insertText(L.index,`
30`,z,c.default.sources.USER),this.quill.setSelection(L.index+1,c.default.sources.SILENT),this.quill.focus(),Object.keys(D.format).forEach(function(V){z[V]==null&&(Array.isArray(D.format[V])||V!=="link"&&H.quill.format(V,D.format[V],c.default.sources.USER))})}function I(L){return{key:F.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(H){var z=f.default.query("code-block"),V=H.index,X=H.length,J=this.quill.scroll.descendant(z,V),tt=A(J,2),it=tt[0],ot=tt[1];if(it!=null){var ft=this.quill.getIndex(it),st=it.newlineIndex(ot,!0)+1,K=it.newlineIndex(ft+ot+X),G=it.domNode.textContent.slice(st,K).split(`
31`);ot=0,G.forEach(function(Y,Q){L?(it.insertAt(st+ot,z.TAB),ot+=z.TAB.length,Q===0?V+=z.TAB.length:X+=z.TAB.length):Y.startsWith(z.TAB)&&(it.deleteAt(st+ot,z.TAB.length),ot-=z.TAB.length,Q===0?V-=z.TAB.length:X-=z.TAB.length),ot+=Y.length+1}),this.quill.update(c.default.sources.USER),this.quill.setSelection(V,X,c.default.sources.SILENT)}}}}function U(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(L,!z.format[L],c.default.sources.USER)}}}function B(L){if(typeof L=="string"||typeof L=="number")return B({key:L});if((typeof L>"u"?"undefined":w(L))==="object"&&(L=(0,y.default)(L,!1)),typeof L.key=="string")if(F.keys[L.key.toUpperCase()]!=null)L.key=F.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[$]=L.shortKey,delete L.shortKey),L}s.default=F,s.SHORTKEY=$},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function r(i,f){var n=[],c=!0,x=!1,O=void 0;try{for(var E=i[Symbol.iterator](),S;!(c=(S=E.next()).done)&&(n.push(S.value),!(f&&n.length===f));c=!0);}catch(m){x=!0,O=m}finally{try{!c&&E.return&&E.return()}finally{if(x)throw O}}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")}}(),A=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var x=Object.getPrototypeOf(i);return x===null?void 0:r(x,f,n)}else{if("value"in c)return c.value;var O=c.get;return O===void 0?void 0:O.call(n)}},b=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),y=t(p),h=d(7),o=t(h);function t(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 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),b(i,null,[{key:"value",value:function(){}}]);function i(f,n){e(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 b(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,c){if(this._length!==0)return A(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,c);for(var x=this,O=0;x!=null&&x.statics.scope!==y.default.Scope.BLOCK_BLOT;)O+=x.offset(x.parent),x=x.parent;x!=null&&(this._length=i.CONTENTS.length,x.optimize(),x.formatAt(O,i.CONTENTS.length,n,c),this._length=0)}},{key:"index",value:function(n,c){return n===this.textNode?0:A(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(){A(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(),x=void 0,O=void 0,E=void 0;if(c!=null&&c.start.node===n&&c.end.node===n){var S=[n,c.start.offset,c.end.offset];x=S[0],O=S[1],E=S[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?(x=this.next.domNode,this.next.insertAt(0,m),this.textNode.data=i.CONTENTS):(this.textNode.data=m,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),O!=null){var v=[O,E].map(function(k){return Math.max(0,Math.min(x.data.length,k-1))}),g=w(v,2);return O=g[0],E=g[1],{startNode:x,startOffset:O,endNode:x,endOffset:E}}}}},{key:"update",value:function(n,c){var x=this;if(n.some(function(E){return E.type==="characterData"&&E.target===x.textNode})){var O=this.restore();O&&(c.range=O)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\uFEFF",s.default=l},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(0),A=y(w),b=d(4),p=y(b);function y(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 t(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 e=function(u){t(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(A.default.Container);e.allowedChildren=[p.default,b.BlockEmbed,e],s.default=e},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.ColorStyle=s.ColorClass=s.ColorAttributor=void 0;var 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}}(),A=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 x=n.get;return x===void 0?void 0:x.call(f)}},b=d(0),p=y(b);function y(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 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 e=function(l){t(r,l);function r(){return h(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return w(r,[{key:"value",value:function(f){var n=A(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 e("color","color",{scope:p.default.Scope.INLINE});s.ColorAttributor=e,s.ColorClass=u,s.ColorStyle=a},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.sanitize=s.default=void 0;var w=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}}(),A=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)}},b=d(6),p=y(b);function y(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 t(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 e=function(a){t(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return w(l,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return A(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=A(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);e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.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=e,s.sanitize=u},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=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},A=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}}(),b=d(23),p=o(b),y=d(107),h=o(y);function o(l){return l&&l.__esModule?l:{default:l}}function t(l,r){if(!(l instanceof r))throw new TypeError("Cannot call a class as a function")}var e=0;function u(l,r){l.setAttribute(r,l.getAttribute(r)!=="true")}var a=function(){function l(r){var i=this;t(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 A(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-"+e,e+=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":w(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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(0),A=j(w),b=d(5),p=j(b),y=d(4),h=j(y),o=d(16),t=j(o),e=d(25),u=j(e),a=d(24),l=j(a),r=d(35),i=j(r),f=d(6),n=j(f),c=d(22),x=j(c),O=d(7),E=j(O),S=d(55),m=j(S),v=d(42),g=j(v),k=d(23),P=j(k);function j($){return $&&$.__esModule?$:{default:$}}p.default.register({"blots/block":h.default,"blots/block/embed":y.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":x.default,"blots/text":E.default,"modules/clipboard":m.default,"modules/history":g.default,"modules/keyboard":P.default}),A.default.register(h.default,t.default,l.default,n.default,x.default,E.default),s.default=p.default},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(1),A=function(){function b(p){this.domNode=p,this.domNode[w.DATA_KEY]={blot:this}}return Object.defineProperty(b.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),b.create=function(p){if(this.tagName==null)throw new w.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof p=="string"&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),typeof p=="number"?y=document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?y=document.createElement(p):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},b.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},b.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return w.create(p)},b.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[w.DATA_KEY]},b.prototype.deleteAt=function(p,y){var h=this.isolate(p,y);h.remove()},b.prototype.formatAt=function(p,y,h,o){var t=this.isolate(p,y);if(w.query(h,w.Scope.BLOT)!=null&&o)t.wrap(h,o);else if(w.query(h,w.Scope.ATTRIBUTE)!=null){var e=w.create(this.statics.scope);t.wrap(e),e.format(h,o)}},b.prototype.insertAt=function(p,y,h){var o=h==null?w.create("text",y):w.create(y,h),t=this.split(p);this.parent.insertBefore(o,t)},b.prototype.insertInto=function(p,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var h=null;p.children.insertBefore(this,y),y!=null&&(h=y.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=h)&&p.domNode.insertBefore(this.domNode,h),this.parent=p,this.attach()},b.prototype.isolate=function(p,y){var h=this.split(p);return h.split(y),h},b.prototype.length=function(){return 1},b.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)},b.prototype.optimize=function(p){this.domNode[w.DATA_KEY]!=null&&delete this.domNode[w.DATA_KEY].mutations},b.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},b.prototype.replace=function(p){p.parent!=null&&(p.parent.insertBefore(this,p.next),p.remove())},b.prototype.replaceWith=function(p,y){var h=typeof p=="string"?w.create(p,y):p;return h.replace(this),h},b.prototype.split=function(p,y){return p===0?this:this.next},b.prototype.update=function(p,y){},b.prototype.wrap=function(p,y){var h=typeof p=="string"?w.create(p,y):p;return this.parent!=null&&this.parent.insertBefore(h,this.next),h.appendChild(this),h},b.blotName="abstract",b}();s.default=A},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(12),A=d(32),b=d(33),p=d(1),y=function(){function h(o){this.attributes={},this.domNode=o,this.build()}return h.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(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 t=w.default.keys(this.domNode),e=A.default.keys(this.domNode),u=b.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(a){var l=p.query(a,p.Scope.ATTRIBUTE);l instanceof w.default&&(o.attributes[l.attrName]=l)})},h.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},h.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},h.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},h}();s.default=y},function(_,s,d){var w=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){y(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(12);function b(y,h){var o=y.getAttribute("class")||"";return o.split(/\s+/).filter(function(t){return t.indexOf(h+"-")===0})}var p=function(y){w(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},h.prototype.add=function(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(this.keyName+"-"+t),!0):!1},h.prototype.remove=function(o){var t=b(o,this.keyName);t.forEach(function(e){o.classList.remove(e)}),o.classList.length===0&&o.removeAttribute("class")},h.prototype.value=function(o){var t=b(o,this.keyName)[0]||"",e=t.slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},h}(A.default);s.default=p},function(_,s,d){var w=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){y(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(12);function b(y){var h=y.split("-"),o=h.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return h[0]+o}var p=function(y){w(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){var e=t.split(":");return e[0].trim()})},h.prototype.add=function(o,t){return this.canAdd(o,t)?(o.style[b(this.keyName)]=t,!0):!1},h.prototype.remove=function(o){o.style[b(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},h.prototype.value=function(o){var t=o.style[b(this.keyName)];return this.canAdd(o,t)?t:""},h}(A.default);s.default=p},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function p(y,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,h,o){return h&&p(y.prototype,h),o&&p(y,o),y}}();function A(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}var b=function(){function p(y,h){A(this,p),this.quill=y,this.options=h,this.modules={}}return w(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}();b.DEFAULTS={modules:{}},b.themes={default:b},s.default=b},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=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}}(),A=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var x=Object.getPrototypeOf(i);return x===null?void 0:r(x,f,n)}else{if("value"in c)return c.value;var O=c.get;return O===void 0?void 0:O.call(n)}},b=d(0),p=o(b),y=d(7),h=o(y);function o(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 e(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){t(this,i);var n=e(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 w(i,[{key:"index",value:function(n,c){return n===this.leftGuard?0:n===this.rightGuard?1:A(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,c)}},{key:"restore",value:function(n){var c=void 0,x=void 0,O=n.data.split(a).join("");if(n===this.leftGuard)if(this.prev instanceof h.default){var E=this.prev.length();this.prev.insertAt(E,O),c={startNode:this.prev.domNode,startOffset:E+O.length}}else x=document.createTextNode(O),this.parent.insertBefore(p.default.create(x),this),c={startNode:x,startOffset:O.length};else n===this.rightGuard&&(this.next instanceof h.default?(this.next.insertAt(0,O),c={startNode:this.next.domNode,startOffset:O.length}):(x=document.createTextNode(O),this.parent.insertBefore(p.default.create(x),this.next),c={startNode:x,startOffset:O.length}));return n.data=a,c}},{key:"update",value:function(n,c){var x=this;n.forEach(function(O){if(O.type==="characterData"&&(O.target===x.leftGuard||O.target===x.rightGuard)){var E=x.restore(O.target);E&&(c.range=E)}})}}]),i}(p.default.Embed);s.default=l},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.AlignStyle=s.AlignClass=s.AlignAttribute=void 0;var w=d(0),A=b(w);function b(t){return t&&t.__esModule?t:{default:t}}var p={scope:A.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new A.default.Attributor.Attribute("align","align",p),h=new A.default.Attributor.Class("align","ql-align",p),o=new A.default.Attributor.Style("align","text-align",p);s.AlignAttribute=y,s.AlignClass=h,s.AlignStyle=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.BackgroundStyle=s.BackgroundClass=void 0;var w=d(0),A=p(w),b=d(26);function p(o){return o&&o.__esModule?o:{default:o}}var y=new A.default.Attributor.Class("background","ql-bg",{scope:A.default.Scope.INLINE}),h=new b.ColorAttributor("background","background-color",{scope:A.default.Scope.INLINE});s.BackgroundClass=y,s.BackgroundStyle=h},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.DirectionStyle=s.DirectionClass=s.DirectionAttribute=void 0;var w=d(0),A=b(w);function b(t){return t&&t.__esModule?t:{default:t}}var p={scope:A.default.Scope.BLOCK,whitelist:["rtl"]},y=new A.default.Attributor.Attribute("direction","dir",p),h=new A.default.Attributor.Class("direction","ql-direction",p),o=new A.default.Attributor.Style("direction","direction",p);s.DirectionAttribute=y,s.DirectionClass=h,s.DirectionStyle=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.FontClass=s.FontStyle=void 0;var w=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}}(),A=function r(i,f,n){i===null&&(i=Function.prototype);var c=Object.getOwnPropertyDescriptor(i,f);if(c===void 0){var x=Object.getPrototypeOf(i);return x===null?void 0:r(x,f,n)}else{if("value"in c)return c.value;var O=c.get;return O===void 0?void 0:O.call(n)}},b=d(0),p=y(b);function y(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 t(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 e={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new p.default.Attributor.Class("font","ql-font",e),a=function(r){t(i,r);function i(){return h(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return w(i,[{key:"value",value:function(n){return A(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",e);s.FontStyle=l,s.FontClass=u},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.SizeStyle=s.SizeClass=void 0;var w=d(0),A=b(w);function b(h){return h&&h.__esModule?h:{default:h}}var p=new A.default.Attributor.Class("size","ql-size",{scope:A.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new A.default.Attributor.Style("size","font-size",{scope:A.default.Scope.INLINE,whitelist:["10px","18px","32px"]});s.SizeClass=p,s.SizeStyle=y},function(_,s,d){_.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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.getLastChangeIndex=s.default=void 0;var w=function(){function f(n,c){for(var x=0;x<c.length;x++){var O=c[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(n,O.key,O)}}return function(n,c,x){return c&&f(n.prototype,c),x&&f(n,x),n}}(),A=d(0),b=t(A),p=d(5),y=t(p),h=d(9),o=t(h);function t(f){return f&&f.__esModule?f:{default:f}}function e(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,x){e(this,n);var O=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,c,x));return O.lastRecorded=0,O.ignoreChange=!1,O.clear(),O.quill.on(y.default.events.EDITOR_CHANGE,function(E,S,m,v){E!==y.default.events.TEXT_CHANGE||O.ignoreChange||(!O.options.userOnly||v===y.default.sources.USER?O.record(S,m):O.transform(S))}),O.quill.keyboard.addBinding({key:"Z",shortKey:!0},O.undo.bind(O)),O.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},O.redo.bind(O)),/Win/i.test(navigator.platform)&&O.quill.keyboard.addBinding({key:"Y",shortKey:!0},O.redo.bind(O)),O}return w(n,[{key:"change",value:function(x,O){if(this.stack[x].length!==0){var E=this.stack[x].pop();this.stack[O].push(E),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(E[x],y.default.sources.USER),this.ignoreChange=!1;var S=i(E[x]);this.quill.setSelection(S)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(x,O){if(x.ops.length!==0){this.stack.redo=[];var E=this.quill.getContents().diff(O),S=Date.now();if(this.lastRecorded+this.options.delay>S&&this.stack.undo.length>0){var m=this.stack.undo.pop();E=E.compose(m.undo),x=m.redo.compose(x)}else this.lastRecorded=S;this.stack.undo.push({redo:x,undo:E}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(x){this.stack.undo.forEach(function(O){O.undo=x.transform(O.undo,!0),O.redo=x.transform(O.redo,!0)}),this.stack.redo.forEach(function(O){O.undo=x.transform(O.undo,!0),O.redo=x.transform(O.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(`
32`):n.attributes!=null?Object.keys(n.attributes).some(function(c){return b.default.query(c,b.default.Scope.BLOCK)!=null}):!1}function i(f){var n=f.reduce(function(x,O){return x+=O.delete||0,x},0),c=f.length()-n;return r(f)&&(c-=1),c}s.default=l,s.getLastChangeIndex=i},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BaseTooltip=void 0;var w=function(){function q(I,U){for(var B=0;B<U.length;B++){var L=U[B];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}return function(I,U,B){return U&&q(I.prototype,U),B&&q(I,B),I}}(),A=function q(I,U,B){I===null&&(I=Function.prototype);var L=Object.getOwnPropertyDescriptor(I,U);if(L===void 0){var D=Object.getPrototypeOf(I);return D===null?void 0:q(D,U,B)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(B)}},b=d(3),p=S(b),y=d(2),h=S(y),o=d(8),t=S(o),e=d(23),u=S(e),a=d(34),l=S(a),r=d(59),i=S(r),f=d(60),n=S(f),c=d(28),x=S(c),O=d(61),E=S(O);function S(q){return q&&q.__esModule?q:{default:q}}function m(q,I){if(!(q instanceof I))throw new TypeError("Cannot call a class as a function")}function v(q,I){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:q}function g(q,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);q.prototype=Object.create(I&&I.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(q,I):q.__proto__=I)}var k=[!1,"center","right","justify"],P=["#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"],j=[!1,"serif","monospace"],$=["1","2","3",!1],F=["small",!1,"large","huge"],W=function(q){g(I,q);function I(U,B){m(this,I);var L=v(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,U,B)),D=function H(z){if(!document.body.contains(U.root))return document.body.removeEventListener("click",H);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(V){V.container.contains(z.target)||V.close()})};return U.emitter.listenDOM("click",document.body,D),L}return w(I,[{key:"addModule",value:function(B){var L=A(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"addModule",this).call(this,B);return B==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(B,L){B.forEach(function(D){var H=D.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(z.startsWith("ql-")&&(z=z.slice(3),L[z]!=null))if(z==="direction")D.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")D.innerHTML=L[z];else{var V=D.value||"";V!=null&&L[z][V]&&(D.innerHTML=L[z][V])}})})}},{key:"buildPickers",value:function(B,L){var D=this;this.pickers=B.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&T(z,k),new n.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var V=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&T(z,P,V==="background"?"#ffffff":"#000000"),new i.default(z,L[V])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?T(z,j):z.classList.contains("ql-header")?T(z,$):z.classList.contains("ql-size")&&T(z,F)),new x.default(z)});var H=function(){D.pickers.forEach(function(V){V.update()})};this.quill.on(t.default.events.EDITOR_CHANGE,H)}}]),I}(l.default);W.DEFAULTS=(0,p.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var I=this,U=this.container.querySelector("input.ql-image[type=file]");U==null&&(U=document.createElement("input"),U.setAttribute("type","file"),U.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),U.classList.add("ql-image"),U.addEventListener("change",function(){if(U.files!=null&&U.files[0]!=null){var B=new FileReader;B.onload=function(L){var D=I.quill.getSelection(!0);I.quill.updateContents(new h.default().retain(D.index).delete(D.length).insert({image:L.target.result}),t.default.sources.USER),I.quill.setSelection(D.index+1,t.default.sources.SILENT),U.value=""},B.readAsDataURL(U.files[0])}}),this.container.appendChild(U)),U.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(q){g(I,q);function I(U,B){m(this,I);var L=v(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,U,B));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return w(I,[{key:"listen",value:function(){var B=this;this.textbox.addEventListener("keydown",function(L){u.default.match(L,"enter")?(B.save(),L.preventDefault()):u.default.match(L,"escape")&&(B.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:B!==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-"+B)||""),this.root.setAttribute("data-mode",B)}},{key:"restoreFocus",value:function(){var B=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=B}},{key:"save",value:function(){var B=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",B,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",B,t.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":B=M(B);case"formula":{if(!B)break;var D=this.quill.getSelection(!0);if(D!=null){var H=D.index+D.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),B,t.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",t.default.sources.USER),this.quill.setSelection(H+2,t.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),I}(E.default);function M(q){var I=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 I?(I[1]||"https")+"://www.youtube.com/embed/"+I[2]+"?showinfo=0":(I=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(I[1]||"https")+"://player.vimeo.com/video/"+I[2]+"/":q}function T(q,I){var U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;I.forEach(function(B){var L=document.createElement("option");B===U?L.setAttribute("selected","selected"):L.setAttribute("value",B),q.appendChild(L)})}s.BaseTooltip=C,s.default=W},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function A(){this.head=this.tail=null,this.length=0}return A.prototype.append=function(){for(var b=[],p=0;p<arguments.length;p++)b[p]=arguments[p];this.insertBefore(b[0],null),b.length>1&&this.append.apply(this,b.slice(1))},A.prototype.contains=function(b){for(var p,y=this.iterator();p=y();)if(p===b)return!0;return!1},A.prototype.insertBefore=function(b,p){b&&(b.next=p,p!=null?(b.prev=p.prev,p.prev!=null&&(p.prev.next=b),p.prev=b,p===this.head&&(this.head=b)):this.tail!=null?(this.tail.next=b,b.prev=this.tail,this.tail=b):(b.prev=null,this.head=this.tail=b),this.length+=1)},A.prototype.offset=function(b){for(var p=0,y=this.head;y!=null;){if(y===b)return p;p+=y.length(),y=y.next}return-1},A.prototype.remove=function(b){this.contains(b)&&(b.prev!=null&&(b.prev.next=b.next),b.next!=null&&(b.next.prev=b.prev),b===this.head&&(this.head=b.next),b===this.tail&&(this.tail=b.prev),this.length-=1)},A.prototype.iterator=function(b){return b===void 0&&(b=this.head),function(){var p=b;return b!=null&&(b=b.next),p}},A.prototype.find=function(b,p){p===void 0&&(p=!1);for(var y,h=this.iterator();y=h();){var o=y.length();if(b<o||p&&b===o&&(y.next==null||y.next.length()!==0))return[y,b];b-=o}return[null,0]},A.prototype.forEach=function(b){for(var p,y=this.iterator();p=y();)b(p)},A.prototype.forEachAt=function(b,p,y){if(!(p<=0))for(var h=this.find(b),o=h[0],t=h[1],e,u=b-t,a=this.iterator(o);(e=a())&&u<b+p;){var l=e.length();b>u?y(e,b-u,Math.min(p,u+l-b)):y(e,0,Math.min(l,b+p-u)),u+=l}},A.prototype.map=function(b){return this.reduce(function(p,y){return p.push(b(y)),p},[])},A.prototype.reduce=function(b,p){for(var y,h=this.iterator();y=h();)p=b(p,y);return p},A}();s.default=w},function(_,s,d){var w=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])};return function(t,e){o(t,e);function u(){this.constructor=t}t.prototype=e===null?Object.create(e):(u.prototype=e.prototype,new u)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(17),b=d(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,h=function(o){w(t,o);function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(a){u.update(a)}),u.observer.observe(u.domNode,p),u.attach(),u}return t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),e===0&&u===this.length()?this.children.forEach(function(a){a.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,a,l){this.update(),o.prototype.formatAt.call(this,e,u,a,l)},t.prototype.insertAt=function(e,u,a){this.update(),o.prototype.insertAt.call(this,e,u,a)},t.prototype.optimize=function(e,u){var a=this;e===void 0&&(e=[]),u===void 0&&(u={}),o.prototype.optimize.call(this,u);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)e.push(l.pop());for(var r=function(c,x){x===void 0&&(x=!0),!(c==null||c===a)&&c.domNode.parentNode!=null&&(c.domNode[b.DATA_KEY].mutations==null&&(c.domNode[b.DATA_KEY].mutations=[]),x&&r(c.parent))},i=function(c){c.domNode[b.DATA_KEY]==null||c.domNode[b.DATA_KEY].mutations==null||(c instanceof A.default&&c.children.forEach(i),c.optimize(u))},f=e,n=0;f.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(c){var x=b.find(c.target,!0);x!=null&&(x.domNode===c.target&&(c.type==="childList"?(r(b.find(c.previousSibling,!1)),[].forEach.call(c.addedNodes,function(O){var E=b.find(O,!1);r(E,!1),E instanceof A.default&&E.children.forEach(function(S){r(S,!1)})})):c.type==="attributes"&&r(x.prev)),r(x))}),this.children.forEach(i),f=[].slice.call(this.observer.takeRecords()),l=f.slice();l.length>0;)e.push(l.pop())}},t.prototype.update=function(e,u){var a=this;u===void 0&&(u={}),e=e||this.observer.takeRecords(),e.map(function(l){var r=b.find(l.target,!0);return r==null?null:r.domNode[b.DATA_KEY].mutations==null?(r.domNode[b.DATA_KEY].mutations=[l],r):(r.domNode[b.DATA_KEY].mutations.push(l),null)}).forEach(function(l){l==null||l===a||l.domNode[b.DATA_KEY]==null||l.update(l.domNode[b.DATA_KEY].mutations||[],u)}),this.domNode[b.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[b.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=b.Scope.BLOCK_BLOT,t.tagName="DIV",t}(A.default);s.default=h},function(_,s,d){var w=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])};return function(o,t){h(o,t);function e(){this.constructor=o}o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(18),b=d(1);function p(h,o){if(Object.keys(h).length!==Object.keys(o).length)return!1;for(var t in h)if(h[t]!==o[t])return!1;return!0}var y=function(h){w(o,h);function o(){return h!==null&&h.apply(this,arguments)||this}return o.formats=function(t){if(t.tagName!==o.tagName)return h.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t===this.statics.blotName&&!e?(this.children.forEach(function(a){a instanceof A.default||(a=a.wrap(o.blotName,!0)),u.attributes.copy(a)}),this.unwrap()):h.prototype.format.call(this,t,e)},o.prototype.formatAt=function(t,e,u,a){if(this.formats()[u]!=null||b.query(u,b.Scope.ATTRIBUTE)){var l=this.isolate(t,e);l.format(u,a)}else h.prototype.formatAt.call(this,t,e,u,a)},o.prototype.optimize=function(t){h.prototype.optimize.call(this,t);var e=this.formats();if(Object.keys(e).length===0)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&p(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=b.Scope.INLINE_BLOT,o.tagName="SPAN",o}(A.default);s.default=y},function(_,s,d){var w=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){y(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(18),b=d(1),p=function(y){w(h,y);function h(){return y!==null&&y.apply(this,arguments)||this}return h.formats=function(o){var t=b.query(h.blotName).tagName;if(o.tagName!==t)return y.formats.call(this,o)},h.prototype.format=function(o,t){b.query(o,b.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!t?this.replaceWith(h.blotName):y.prototype.format.call(this,o,t))},h.prototype.formatAt=function(o,t,e,u){b.query(e,b.Scope.BLOCK)!=null?this.format(e,u):y.prototype.formatAt.call(this,o,t,e,u)},h.prototype.insertAt=function(o,t,e){if(e==null||b.query(t,b.Scope.INLINE)!=null)y.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),a=b.create(t,e);u.parent.insertBefore(a,u)}},h.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,t)},h.blotName="block",h.scope=b.Scope.BLOCK_BLOT,h.tagName="P",h}(A.default);s.default=p},function(_,s,d){var w=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,h){y.__proto__=h}||function(y,h){for(var o in h)h.hasOwnProperty(o)&&(y[o]=h[o])};return function(y,h){p(y,h);function o(){this.constructor=y}y.prototype=h===null?Object.create(h):(o.prototype=h.prototype,new o)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(19),b=function(p){w(y,p);function y(){return p!==null&&p.apply(this,arguments)||this}return y.formats=function(h){},y.prototype.format=function(h,o){p.prototype.formatAt.call(this,0,this.length(),h,o)},y.prototype.formatAt=function(h,o,t,e){h===0&&o===this.length()?this.format(t,e):p.prototype.formatAt.call(this,h,o,t,e)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(A.default);s.default=b},function(_,s,d){var w=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,o){h.__proto__=o}||function(h,o){for(var t in o)o.hasOwnProperty(t)&&(h[t]=o[t])};return function(h,o){y(h,o);function t(){this.constructor=h}h.prototype=o===null?Object.create(o):(t.prototype=o.prototype,new t)}}();Object.defineProperty(s,"__esModule",{value:!0});var A=d(19),b=d(1),p=function(y){w(h,y);function h(o){var t=y.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return h.create=function(o){return document.createTextNode(o)},h.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},h.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},h.prototype.index=function(o,t){return this.domNode===o?t:-1},h.prototype.insertAt=function(o,t,e){e==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,t,e)},h.prototype.length=function(){return this.text.length},h.prototype.optimize=function(o){y.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,t){return[this.domNode,o]},h.prototype.split=function(o,t){if(t===void 0&&(t=!1),!t){if(o===0)return this;if(o===this.length())return this.next}var e=b.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},h.prototype.update=function(o,t){var e=this;o.some(function(u){return u.type==="characterData"&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},h.prototype.value=function(){return this.text},h.blotName="text",h.scope=b.Scope.INLINE_BLOT,h}(A.default);s.default=p},function(_,s,d){var w=document.createElement("div");if(w.classList.toggle("test-class",!1),w.classList.contains("test-class")){var A=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(b,p){return arguments.length>1&&!this.contains(b)==!p?p:A.call(this,b)}}String.prototype.startsWith||(String.prototype.startsWith=function(b,p){return p=p||0,this.substr(p,b.length)===b}),String.prototype.endsWith||(String.prototype.endsWith=function(b,p){var y=this.toString();(typeof p!="number"||!isFinite(p)||Math.floor(p)!==p||p>y.length)&&(p=y.length),p-=b.length;var h=y.indexOf(b,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 y=Object(this),h=y.length>>>0,o=arguments[1],t,e=0;e<h;e++)if(t=y[e],p.call(o,t,e,y))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(_,s){var d=-1,w=1,A=0;function b(n,c,x){if(n==c)return n?[[A,n]]:[];(x<0||n.length<x)&&(x=null);var O=o(n,c),E=n.substring(0,O);n=n.substring(O),c=c.substring(O),O=t(n,c);var S=n.substring(n.length-O);n=n.substring(0,n.length-O),c=c.substring(0,c.length-O);var m=p(n,c);return E&&m.unshift([A,E]),S&&m.push([A,S]),u(m),x!=null&&(m=r(m,x)),m=i(m),m}function p(n,c){var x;if(!n)return[[w,c]];if(!c)return[[d,n]];var O=n.length>c.length?n:c,E=n.length>c.length?c:n,S=O.indexOf(E);if(S!=-1)return x=[[w,O.substring(0,S)],[A,E],[w,O.substring(S+E.length)]],n.length>c.length&&(x[0][0]=x[2][0]=d),x;if(E.length==1)return[[d,n],[w,c]];var m=e(n,c);if(m){var v=m[0],g=m[1],k=m[2],P=m[3],j=m[4],$=b(v,k),F=b(g,P);return $.concat([[A,j]],F)}return y(n,c)}function y(n,c){for(var x=n.length,O=c.length,E=Math.ceil((x+O)/2),S=E,m=2*E,v=new Array(m),g=new Array(m),k=0;k<m;k++)v[k]=-1,g[k]=-1;v[S+1]=0,g[S+1]=0;for(var P=x-O,j=P%2!=0,$=0,F=0,W=0,C=0,M=0;M<E;M++){for(var T=-M+$;T<=M-F;T+=2){var q=S+T,I;T==-M||T!=M&&v[q-1]<v[q+1]?I=v[q+1]:I=v[q-1]+1;for(var U=I-T;I<x&&U<O&&n.charAt(I)==c.charAt(U);)I++,U++;if(v[q]=I,I>x)F+=2;else if(U>O)$+=2;else if(j){var B=S+P-T;if(B>=0&&B<m&&g[B]!=-1){var L=x-g[B];if(I>=L)return h(n,c,I,U)}}}for(var D=-M+W;D<=M-C;D+=2){var B=S+D,L;D==-M||D!=M&&g[B-1]<g[B+1]?L=g[B+1]:L=g[B-1]+1;for(var H=L-D;L<x&&H<O&&n.charAt(x-L-1)==c.charAt(O-H-1);)L++,H++;if(g[B]=L,L>x)C+=2;else if(H>O)W+=2;else if(!j){var q=S+P-D;if(q>=0&&q<m&&v[q]!=-1){var I=v[q],U=S+I-q;if(L=x-L,I>=L)return h(n,c,I,U)}}}}return[[d,n],[w,c]]}function h(n,c,x,O){var E=n.substring(0,x),S=c.substring(0,O),m=n.substring(x),v=c.substring(O),g=b(E,S),k=b(m,v);return g.concat(k)}function o(n,c){if(!n||!c||n.charAt(0)!=c.charAt(0))return 0;for(var x=0,O=Math.min(n.length,c.length),E=O,S=0;x<E;)n.substring(S,E)==c.substring(S,E)?(x=E,S=x):O=E,E=Math.floor((O-x)/2+x);return E}function t(n,c){if(!n||!c||n.charAt(n.length-1)!=c.charAt(c.length-1))return 0;for(var x=0,O=Math.min(n.length,c.length),E=O,S=0;x<E;)n.substring(n.length-E,n.length-S)==c.substring(c.length-E,c.length-S)?(x=E,S=x):O=E,E=Math.floor((O-x)/2+x);return E}function e(n,c){var x=n.length>c.length?n:c,O=n.length>c.length?c:n;if(x.length<4||O.length*2<x.length)return null;function E(F,W,C){for(var M=F.substring(C,C+Math.floor(F.length/4)),T=-1,q="",I,U,B,L;(T=W.indexOf(M,T+1))!=-1;){var D=o(F.substring(C),W.substring(T)),H=t(F.substring(0,C),W.substring(0,T));q.length<H+D&&(q=W.substring(T-H,T)+W.substring(T,T+D),I=F.substring(0,C-H),U=F.substring(C+D),B=W.substring(0,T-H),L=W.substring(T+D))}return q.length*2>=F.length?[I,U,B,L,q]:null}var S=E(x,O,Math.ceil(x.length/4)),m=E(x,O,Math.ceil(x.length/2)),v;if(!S&&!m)return null;m?S?v=S[4].length>m[4].length?S:m:v=m:v=S;var g,k,P,j;n.length>c.length?(g=v[0],k=v[1],P=v[2],j=v[3]):(P=v[0],j=v[1],g=v[2],k=v[3]);var $=v[4];return[g,k,P,j,$]}function u(n){n.push([A,""]);for(var c=0,x=0,O=0,E="",S="",m;c<n.length;)switch(n[c][0]){case w:O++,S+=n[c][1],c++;break;case d:x++,E+=n[c][1],c++;break;case A:x+O>1?(x!==0&&O!==0&&(m=o(S,E),m!==0&&(c-x-O>0&&n[c-x-O-1][0]==A?n[c-x-O-1][1]+=S.substring(0,m):(n.splice(0,0,[A,S.substring(0,m)]),c++),S=S.substring(m),E=E.substring(m)),m=t(S,E),m!==0&&(n[c][1]=S.substring(S.length-m)+n[c][1],S=S.substring(0,S.length-m),E=E.substring(0,E.length-m))),x===0?n.splice(c-O,x+O,[w,S]):O===0?n.splice(c-x,x+O,[d,E]):n.splice(c-x-O,x+O,[d,E],[w,S]),c=c-x-O+(x?1:0)+(O?1:0)+1):c!==0&&n[c-1][0]==A?(n[c-1][1]+=n[c][1],n.splice(c,1)):c++,O=0,x=0,E="",S="";break}n[n.length-1][1]===""&&n.pop();var v=!1;for(c=1;c<n.length-1;)n[c-1][0]==A&&n[c+1][0]==A&&(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),v=!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),v=!0)),c++;v&&u(n)}var a=b;a.INSERT=w,a.DELETE=d,a.EQUAL=A,_.exports=a;function l(n,c){if(c===0)return[A,n];for(var x=0,O=0;O<n.length;O++){var E=n[O];if(E[0]===d||E[0]===A){var S=x+E[1].length;if(c===S)return[O+1,n];if(c<S){n=n.slice();var m=c-x,v=[E[0],E[1].slice(0,m)],g=[E[0],E[1].slice(m)];return n.splice(O,1,v,g),[O+1,n]}else x=S}}throw new Error("cursor_pos is out of bounds!")}function r(n,c){var x=l(n,c),O=x[1],E=x[0],S=O[E],m=O[E+1];if(S==null)return n;if(S[0]!==A)return n;if(m!=null&&S[1]+m[1]===m[1]+S[1])return O.splice(E,2,m,S),f(O,E,2);if(m!=null&&m[1].indexOf(S[1])===0){O.splice(E,2,[m[0],S[1]],[0,S[1]]);var v=m[1].slice(S[1].length);return v.length>0&&O.splice(E+2,0,[m[0],v]),f(O,E,3)}else return n}function i(n){for(var c=!1,x=function(m){return m.charCodeAt(0)>=56320&&m.charCodeAt(0)<=57343},O=function(m){return m.charCodeAt(m.length-1)>=55296&&m.charCodeAt(m.length-1)<=56319},E=2;E<n.length;E+=1)n[E-2][0]===A&&O(n[E-2][1])&&n[E-1][0]===d&&x(n[E-1][1])&&n[E][0]===w&&x(n[E][1])&&(c=!0,n[E-1][1]=n[E-2][1].slice(-1)+n[E-1][1],n[E][1]=n[E-2][1].slice(-1)+n[E][1],n[E-2][1]=n[E-2][1].slice(0,-1));if(!c)return n;for(var S=[],E=0;E<n.length;E+=1)n[E][1].length>0&&S.push(n[E]);return S}function f(n,c,x){for(var O=c+x-1;O>=0&&O>=c-1;O--)if(O+1<n.length){var E=n[O],S=n[O+1];E[0]===S[1]&&n.splice(O,2,[E[0],E[1]+S[1]])}return n}},function(_,s){s=_.exports=typeof Object.keys=="function"?Object.keys:d,s.shim=d;function d(w){var A=[];for(var b in w)A.push(b);return A}},function(_,s){var d=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";s=_.exports=d?w:A,s.supported=w;function w(b){return Object.prototype.toString.call(b)=="[object Arguments]"}s.unsupported=A;function A(b){return b&&typeof b=="object"&&typeof b.length=="number"&&Object.prototype.hasOwnProperty.call(b,"callee")&&!Object.prototype.propertyIsEnumerable.call(b,"callee")||!1}},function(_,s){var d=Object.prototype.hasOwnProperty,w="~";function A(){}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(w=!1));function b(y,h,o){this.fn=y,this.context=h,this.once=o||!1}function p(){this._events=new A,this._eventsCount=0}p.prototype.eventNames=function(){var h=[],o,t;if(this._eventsCount===0)return h;for(t in o=this._events)d.call(o,t)&&h.push(w?t.slice(1):t);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(o)):h},p.prototype.listeners=function(h,o){var t=w?w+h:h,e=this._events[t];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,a=e.length,l=new Array(a);u<a;u++)l[u]=e[u].fn;return l},p.prototype.emit=function(h,o,t,e,u,a){var l=w?w+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,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,u),!0;case 6:return r.fn.call(r.context,o,t,e,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,x;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,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!f)for(x=1,f=new Array(i-1);x<i;x++)f[x-1]=arguments[x];r[n].fn.apply(r[n].context,f)}}return!0},p.prototype.on=function(h,o,t){var e=new b(o,t||this),u=w?w+h:h;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},p.prototype.once=function(h,o,t){var e=new b(o,t||this,!0),u=w?w+h:h;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},p.prototype.removeListener=function(h,o,t,e){var u=w?w+h:h;if(!this._events[u])return this;if(!o)return--this._eventsCount===0?this._events=new A:delete this._events[u],this;var a=this._events[u];if(a.fn)a.fn===o&&(!e||a.once)&&(!t||a.context===t)&&(--this._eventsCount===0?this._events=new A:delete this._events[u]);else{for(var l=0,r=[],i=a.length;l<i;l++)(a[l].fn!==o||e&&!a[l].once||t&&a[l].context!==t)&&r.push(a[l]);r.length?this._events[u]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new A:delete this._events[u]}return this},p.prototype.removeAllListeners=function(h){var o;return h?(o=w?w+h:h,this._events[o]&&(--this._eventsCount===0?this._events=new A:delete this._events[o])):(this._events=new A,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=w,p.EventEmitter=p,typeof _<"u"&&(_.exports=p)},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.matchText=s.matchSpacing=s.matchNewline=s.matchBlot=s.matchAttributor=s.default=void 0;var w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},A=function(){function K(G,Y){var Q=[],Z=!0,et=!1,nt=void 0;try{for(var rt=G[Symbol.iterator](),ht;!(Z=(ht=rt.next()).done)&&(Q.push(ht.value),!(Y&&Q.length===Y));Z=!0);}catch(yt){et=!0,nt=yt}finally{try{!Z&&rt.return&&rt.return()}finally{if(et)throw nt}}return Q}return function(G,Y){if(Array.isArray(G))return G;if(Symbol.iterator in Object(G))return K(G,Y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function K(G,Y){for(var Q=0;Q<Y.length;Q++){var Z=Y[Q];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(G,Z.key,Z)}}return function(G,Y,Q){return Y&&K(G.prototype,Y),Q&&K(G,Q),G}}(),p=d(3),y=g(p),h=d(2),o=g(h),t=d(0),e=g(t),u=d(5),a=g(u),l=d(10),r=g(l),i=d(9),f=g(i),n=d(36),c=d(37),x=d(13),O=g(x),E=d(26),S=d(38),m=d(39),v=d(40);function g(K){return K&&K.__esModule?K:{default:K}}function k(K,G,Y){return G in K?Object.defineProperty(K,G,{value:Y,enumerable:!0,configurable:!0,writable:!0}):K[G]=Y,K}function P(K,G){if(!(K instanceof G))throw new TypeError("Cannot call a class as a function")}function j(K,G){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:K}function $(K,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);K.prototype=Object.create(G&&G.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(K,G):K.__proto__=G)}var F=(0,r.default)("quill:clipboard"),W="__ql-matcher",C=[[Node.TEXT_NODE,st],[Node.TEXT_NODE,it],["br",X],[Node.ELEMENT_NODE,it],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,ot],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,ft],["li",tt],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",J]],M=[n.AlignAttribute,S.DirectionAttribute].reduce(function(K,G){return K[G.keyName]=G,K},{}),T=[n.AlignStyle,c.BackgroundStyle,E.ColorStyle,S.DirectionStyle,m.FontStyle,v.SizeStyle].reduce(function(K,G){return K[G.keyName]=G,K},{}),q=function(K){$(G,K);function G(Y,Q){P(this,G);var Z=j(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,Y,Q));return Z.quill.root.addEventListener("paste",Z.onPaste.bind(Z)),Z.container=Z.quill.addContainer("ql-clipboard"),Z.container.setAttribute("contenteditable",!0),Z.container.setAttribute("tabindex",-1),Z.matchers=[],C.concat(Z.options.matchers).forEach(function(et){var nt=A(et,2),rt=nt[0],ht=nt[1];!Q.matchVisual&&ht===ot||Z.addMatcher(rt,ht)}),Z}return b(G,[{key:"addMatcher",value:function(Q,Z){this.matchers.push([Q,Z])}},{key:"convert",value:function(Q){if(typeof Q=="string")return this.container.innerHTML=Q.replace(/\>\r?\n +\</g,"><"),this.convert();var Z=this.quill.getFormat(this.quill.selection.savedRange.index);if(Z[O.default.blotName]){var et=this.container.innerText;return this.container.innerHTML="",new o.default().insert(et,k({},O.default.blotName,Z[O.default.blotName]))}var nt=this.prepareMatching(),rt=A(nt,2),ht=rt[0],yt=rt[1],lt=D(this.container,ht,yt);return B(lt,`
33`)&&lt.ops[lt.ops.length-1].attributes==null&&(lt=lt.compose(new o.default().retain(lt.length()-1).delete(1))),F.log("convert",this.container.innerHTML,lt),this.container.innerHTML="",lt}},{key:"dangerouslyPasteHTML",value:function(Q,Z){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;if(typeof Q=="string")this.quill.setContents(this.convert(Q),Z),this.quill.setSelection(0,a.default.sources.SILENT);else{var nt=this.convert(Z);this.quill.updateContents(new o.default().retain(Q).concat(nt),et),this.quill.setSelection(Q+nt.length(),a.default.sources.SILENT)}}},{key:"onPaste",value:function(Q){var Z=this;if(!(Q.defaultPrevented||!this.quill.isEnabled())){var et=this.quill.getSelection(),nt=new o.default().retain(et.index),rt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(a.default.sources.SILENT),setTimeout(function(){nt=nt.concat(Z.convert()).delete(et.length),Z.quill.updateContents(nt,a.default.sources.USER),Z.quill.setSelection(nt.length()-et.length,a.default.sources.SILENT),Z.quill.scrollingContainer.scrollTop=rt,Z.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Q=this,Z=[],et=[];return this.matchers.forEach(function(nt){var rt=A(nt,2),ht=rt[0],yt=rt[1];switch(ht){case Node.TEXT_NODE:et.push(yt);break;case Node.ELEMENT_NODE:Z.push(yt);break;default:[].forEach.call(Q.container.querySelectorAll(ht),function(lt){lt[W]=lt[W]||[],lt[W].push(yt)});break}}),[Z,et]}}]),G}(f.default);q.DEFAULTS={matchers:[],matchVisual:!0};function I(K,G,Y){return(typeof G>"u"?"undefined":w(G))==="object"?Object.keys(G).reduce(function(Q,Z){return I(Q,Z,G[Z])},K):K.reduce(function(Q,Z){return Z.attributes&&Z.attributes[G]?Q.push(Z):Q.insert(Z.insert,(0,y.default)({},k({},G,Y),Z.attributes))},new o.default)}function U(K){if(K.nodeType!==Node.ELEMENT_NODE)return{};var G="__ql-computed-style";return K[G]||(K[G]=window.getComputedStyle(K))}function B(K,G){for(var Y="",Q=K.ops.length-1;Q>=0&&Y.length<G.length;--Q){var Z=K.ops[Q];if(typeof Z.insert!="string")break;Y=Z.insert+Y}return Y.slice(-1*G.length)===G}function L(K){if(K.childNodes.length===0)return!1;var G=U(K);return["block","list-item"].indexOf(G.display)>-1}function D(K,G,Y){return K.nodeType===K.TEXT_NODE?Y.reduce(function(Q,Z){return Z(K,Q)},new o.default):K.nodeType===K.ELEMENT_NODE?[].reduce.call(K.childNodes||[],function(Q,Z){var et=D(Z,G,Y);return Z.nodeType===K.ELEMENT_NODE&&(et=G.reduce(function(nt,rt){return rt(Z,nt)},et),et=(Z[W]||[]).reduce(function(nt,rt){return rt(Z,nt)},et)),Q.concat(et)},new o.default):new o.default}function H(K,G,Y){return I(Y,K,!0)}function z(K,G){var Y=e.default.Attributor.Attribute.keys(K),Q=e.default.Attributor.Class.keys(K),Z=e.default.Attributor.Style.keys(K),et={};return Y.concat(Q).concat(Z).forEach(function(nt){var rt=e.default.query(nt,e.default.Scope.ATTRIBUTE);rt!=null&&(et[rt.attrName]=rt.value(K),et[rt.attrName])||(rt=M[nt],rt!=null&&(rt.attrName===nt||rt.keyName===nt)&&(et[rt.attrName]=rt.value(K)||void 0),rt=T[nt],rt!=null&&(rt.attrName===nt||rt.keyName===nt)&&(rt=T[nt],et[rt.attrName]=rt.value(K)||void 0))}),Object.keys(et).length>0&&(G=I(G,et)),G}function V(K,G){var Y=e.default.query(K);if(Y==null)return G;if(Y.prototype instanceof e.default.Embed){var Q={},Z=Y.value(K);Z!=null&&(Q[Y.blotName]=Z,G=new o.default().insert(Q,Y.formats(K)))}else typeof Y.formats=="function"&&(G=I(G,Y.blotName,Y.formats(K)));return G}function X(K,G){return B(G,`
34`)||G.insert(`
35`),G}function J(){return new o.default}function tt(K,G){var Y=e.default.query(K);if(Y==null||Y.blotName!=="list-item"||!B(G,`
36`))return G;for(var Q=-1,Z=K.parentNode;!Z.classList.contains("ql-clipboard");)(e.default.query(Z)||{}).blotName==="list"&&(Q+=1),Z=Z.parentNode;return Q<=0?G:G.compose(new o.default().retain(G.length()-1).retain(1,{indent:Q}))}function it(K,G){return B(G,`
37`)||(L(K)||G.length()>0&&K.nextSibling&&L(K.nextSibling))&&G.insert(`
38`),G}function ot(K,G){if(L(K)&&K.nextElementSibling!=null&&!B(G,`
39
40`)){var Y=K.offsetHeight+parseFloat(U(K).marginTop)+parseFloat(U(K).marginBottom);K.nextElementSibling.offsetTop>K.offsetTop+Y*1.5&&G.insert(`
41`)}return G}function ft(K,G){var Y={},Q=K.style||{};return Q.fontStyle&&U(K).fontStyle==="italic"&&(Y.italic=!0),Q.fontWeight&&(U(K).fontWeight.startsWith("bold")||parseInt(U(K).fontWeight)>=700)&&(Y.bold=!0),Object.keys(Y).length>0&&(G=I(G,Y)),parseFloat(Q.textIndent||0)>0&&(G=new o.default().insert("	").concat(G)),G}function st(K,G){var Y=K.data;if(K.parentNode.tagName==="O:P")return G.insert(Y.trim());if(Y.trim().length===0&&K.parentNode.classList.contains("ql-clipboard"))return G;if(!U(K.parentNode).whiteSpace.startsWith("pre")){var Q=function(et,nt){return nt=nt.replace(/[^\u00a0]/g,""),nt.length<1&&et?" ":nt};Y=Y.replace(/\r\n/g," ").replace(/\n/g," "),Y=Y.replace(/\s\s+/g,Q.bind(Q,!0)),(K.previousSibling==null&&L(K.parentNode)||K.previousSibling!=null&&L(K.previousSibling))&&(Y=Y.replace(/^\s+/,Q.bind(Q,!1))),(K.nextSibling==null&&L(K.parentNode)||K.nextSibling!=null&&L(K.nextSibling))&&(Y=Y.replace(/\s+$/,Q.bind(Q,!1)))}return G.insert(Y)}s.default=q,s.matchAttributor=z,s.matchBlot=V,s.matchNewline=it,s.matchSpacing=ot,s.matchText=st},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=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}}(),A=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)}},b=d(6),p=y(b);function y(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 t(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 e=function(u){t(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return w(a,[{key:"optimize",value:function(r){A(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 A(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),a}(p.default);e.blotName="bold",e.tagName=["STRONG","B"],s.default=e},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.addControls=s.default=void 0;var w=function(){function v(g,k){var P=[],j=!0,$=!1,F=void 0;try{for(var W=g[Symbol.iterator](),C;!(j=(C=W.next()).done)&&(P.push(C.value),!(k&&P.length===k));j=!0);}catch(M){$=!0,F=M}finally{try{!j&&W.return&&W.return()}finally{if($)throw F}}return P}return function(g,k){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return v(g,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function(){function v(g,k){for(var P=0;P<k.length;P++){var j=k[P];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(g,j.key,j)}}return function(g,k,P){return k&&v(g.prototype,k),P&&v(g,P),g}}(),b=d(2),p=r(b),y=d(0),h=r(y),o=d(5),t=r(o),e=d(10),u=r(e),a=d(9),l=r(a);function r(v){return v&&v.__esModule?v:{default:v}}function i(v,g,k){return g in v?Object.defineProperty(v,g,{value:k,enumerable:!0,configurable:!0,writable:!0}):v[g]=k,v}function f(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function n(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function c(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var x=(0,u.default)("quill:toolbar"),O=function(v){c(g,v);function g(k,P){f(this,g);var j=n(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,k,P));if(Array.isArray(j.options.container)){var $=document.createElement("div");S($,j.options.container),k.container.parentNode.insertBefore($,k.container),j.container=$}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var F;return F=x.error("Container required for toolbar",j.options),n(j,F)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={},Object.keys(j.options.handlers).forEach(function(W){j.addHandler(W,j.options.handlers[W])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(W){j.attach(W)}),j.quill.on(t.default.events.EDITOR_CHANGE,function(W,C){W===t.default.events.SELECTION_CHANGE&&j.update(C)}),j.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var W=j.quill.selection.getRange(),C=w(W,1),M=C[0];j.update(M)}),j}return A(g,[{key:"addHandler",value:function(P,j){this.handlers[P]=j}},{key:"attach",value:function(P){var j=this,$=[].find.call(P.classList,function(W){return W.indexOf("ql-")===0});if($){if($=$.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[$]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[$]==null){x.warn("ignoring attaching to disabled format",$,P);return}if(h.default.query($)==null){x.warn("ignoring attaching to nonexistent format",$,P);return}}var F=P.tagName==="SELECT"?"change":"click";P.addEventListener(F,function(W){var C=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var M=P.options[P.selectedIndex];M.hasAttribute("selected")?C=!1:C=M.value||!1}else P.classList.contains("ql-active")?C=!1:C=P.value||!P.hasAttribute("value"),W.preventDefault();j.quill.focus();var T=j.quill.selection.getRange(),q=w(T,1),I=q[0];if(j.handlers[$]!=null)j.handlers[$].call(j,C);else if(h.default.query($).prototype instanceof h.default.Embed){if(C=prompt("Enter "+$),!C)return;j.quill.updateContents(new p.default().retain(I.index).delete(I.length).insert(i({},$,C)),t.default.sources.USER)}else j.quill.format($,C,t.default.sources.USER);j.update(I)}),this.controls.push([$,P])}}},{key:"update",value:function(P){var j=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function($){var F=w($,2),W=F[0],C=F[1];if(C.tagName==="SELECT"){var M=void 0;if(P==null)M=null;else if(j[W]==null)M=C.querySelector("option[selected]");else if(!Array.isArray(j[W])){var T=j[W];typeof T=="string"&&(T=T.replace(/\"/g,'\\"')),M=C.querySelector('option[value="'+T+'"]')}M==null?(C.value="",C.selectedIndex=-1):M.selected=!0}else if(P==null)C.classList.remove("ql-active");else if(C.hasAttribute("value")){var q=j[W]===C.getAttribute("value")||j[W]!=null&&j[W].toString()===C.getAttribute("value")||j[W]==null&&!C.getAttribute("value");C.classList.toggle("ql-active",q)}else C.classList.toggle("ql-active",j[W]!=null)})}}]),g}(l.default);O.DEFAULTS={};function E(v,g,k){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+g),k!=null&&(P.value=k),v.appendChild(P)}function S(v,g){Array.isArray(g[0])||(g=[g]),g.forEach(function(k){var P=document.createElement("span");P.classList.add("ql-formats"),k.forEach(function(j){if(typeof j=="string")E(P,j);else{var $=Object.keys(j)[0],F=j[$];Array.isArray(F)?m(P,$,F):E(P,$,F)}}),v.appendChild(P)})}function m(v,g,k){var P=document.createElement("select");P.classList.add("ql-"+g),k.forEach(function(j){var $=document.createElement("option");j!==!1?$.setAttribute("value",j):$.setAttribute("selected","selected"),P.appendChild($)}),v.appendChild(P)}O.DEFAULTS={container:null,handlers:{clean:function(){var g=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function(j){h.default.query(j,h.default.Scope.INLINE)!=null&&g.quill.format(j,!1)})}else this.quill.removeFormat(k,t.default.sources.USER)},direction:function(g){var k=this.quill.getFormat().align;g==="rtl"&&k==null?this.quill.format("align","right",t.default.sources.USER):!g&&k==="right"&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",g,t.default.sources.USER)},indent:function(g){var k=this.quill.getSelection(),P=this.quill.getFormat(k),j=parseInt(P.indent||0);if(g==="+1"||g==="-1"){var $=g==="+1"?1:-1;P.direction==="rtl"&&($*=-1),this.quill.format("indent",j+$,t.default.sources.USER)}},link:function(g){g===!0&&(g=prompt("Enter link URL:")),this.quill.format("link",g,t.default.sources.USER)},list:function(g){var k=this.quill.getSelection(),P=this.quill.getFormat(k);g==="check"?P.list==="checked"||P.list==="unchecked"?this.quill.format("list",!1,t.default.sources.USER):this.quill.format("list","unchecked",t.default.sources.USER):this.quill.format("list",g,t.default.sources.USER)}}},s.default=O,s.addControls=S},function(_,s){_.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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=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}}(),A=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)}},b=d(28),p=y(b);function y(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 t(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 e=function(u){t(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 w(a,[{key:"buildItem",value:function(r){var i=A(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){A(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=e},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=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}}(),A=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)}},b=d(28),p=y(b);function y(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 t(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 e=function(u){t(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 w(a,[{key:"selectItem",value:function(r,i){A(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=e},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function p(y,h){for(var o=0;o<h.length;o++){var t=h[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,h,o){return h&&p(y.prototype,h),o&&p(y,o),y}}();function A(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}var b=function(){function p(y,h){var o=this;A(this,p),this.quill=y,this.boundsContainer=h||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return w(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,t=h.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),a=0;if(u.right>e.right&&(a=e.right-u.right,this.root.style.left=o+a+"px"),u.left<e.left&&(a=e.left-u.left,this.root.style.left=o+a+"px"),u.bottom>e.bottom){var l=u.bottom-u.top,r=h.bottom-h.top+l;this.root.style.top=t-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=b},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function m(v,g){var k=[],P=!0,j=!1,$=void 0;try{for(var F=v[Symbol.iterator](),W;!(P=(W=F.next()).done)&&(k.push(W.value),!(g&&k.length===g));P=!0);}catch(C){j=!0,$=C}finally{try{!P&&F.return&&F.return()}finally{if(j)throw $}}return k}return function(v,g){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return m(v,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),A=function m(v,g,k){v===null&&(v=Function.prototype);var P=Object.getOwnPropertyDescriptor(v,g);if(P===void 0){var j=Object.getPrototypeOf(v);return j===null?void 0:m(j,g,k)}else{if("value"in P)return P.value;var $=P.get;return $===void 0?void 0:$.call(k)}},b=function(){function m(v,g){for(var k=0;k<g.length;k++){var P=g[k];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(v,P.key,P)}}return function(v,g,k){return g&&m(v.prototype,g),k&&m(v,k),v}}(),p=d(3),y=f(p),h=d(8),o=f(h),t=d(43),e=f(t),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,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function c(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function x(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],E=function(m){x(v,m);function v(g,k){n(this,v),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=O);var P=c(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g,k));return P.quill.container.classList.add("ql-snow"),P}return b(v,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),i.default),this.tooltip=new S(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,j){k.handlers.link.call(k,!j.format.link)})}}]),v}(e.default);E.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(v){if(v){var g=this.quill.getSelection();if(g==null||g.length==0)return;var k=this.quill.getText(g);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var P=this.quill.theme.tooltip;P.edit("link",k)}else this.quill.format("link",!1)}}}}});var S=function(m){x(v,m);function v(g,k){n(this,v);var P=c(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g,k));return P.preview=P.root.querySelector("a.ql-preview"),P}return b(v,[{key:"listen",value:function(){var k=this;A(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(k.linkRange!=null){var j=k.linkRange;k.restoreFocus(),k.quill.formatText(j,"link",!1,o.default.sources.USER),delete k.linkRange}P.preventDefault(),k.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(P,j,$){if(P!=null){if(P.length===0&&$===o.default.sources.USER){var F=k.quill.scroll.descendant(a.default,P.index),W=w(F,2),C=W[0],M=W[1];if(C!=null){k.linkRange=new l.Range(P.index-M,C.length());var T=a.default.formats(C.domNode);k.preview.textContent=T,k.preview.setAttribute("href",T),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){A(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),v}(t.BaseTooltip);S.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=E},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(29),A=Z(w),b=d(36),p=d(38),y=d(64),h=d(65),o=Z(h),t=d(66),e=Z(t),u=d(67),a=Z(u),l=d(37),r=d(26),i=d(39),f=d(40),n=d(56),c=Z(n),x=d(68),O=Z(x),E=d(27),S=Z(E),m=d(69),v=Z(m),g=d(70),k=Z(g),P=d(71),j=Z(P),$=d(72),F=Z($),W=d(73),C=Z(W),M=d(13),T=Z(M),q=d(74),I=Z(q),U=d(75),B=Z(U),L=d(57),D=Z(L),H=d(41),z=Z(H),V=d(28),X=Z(V),J=d(59),tt=Z(J),it=d(60),ot=Z(it),ft=d(61),st=Z(ft),K=d(108),G=Z(K),Y=d(62),Q=Z(Y);function Z(et){return et&&et.__esModule?et:{default:et}}A.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":b.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":b.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),A.default.register({"formats/align":b.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":y.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":e.default,"formats/list":a.default,"formats/bold":c.default,"formats/code":M.Code,"formats/italic":O.default,"formats/link":S.default,"formats/script":v.default,"formats/strike":k.default,"formats/underline":j.default,"formats/image":F.default,"formats/video":C.default,"formats/list/item":u.ListItem,"modules/formula":I.default,"modules/syntax":B.default,"modules/toolbar":D.default,"themes/bubble":G.default,"themes/snow":Q.default,"ui/icons":z.default,"ui/picker":X.default,"ui/icon-picker":ot.default,"ui/color-picker":tt.default,"ui/tooltip":st.default},!0),s.default=A.default},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.IndentClass=void 0;var w=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}}(),A=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)}},b=d(0),p=y(b);function y(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 t(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 e=function(a){t(l,a);function l(){return h(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return w(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):A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,f)||A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(A(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,i))||void 0}}]),l}(p.default.Attributor.Class),u=new e("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});s.IndentClass=u},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(4),A=b(w);function b(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){h(e,t);function e(){return p(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="blockquote",o.tagName="blockquote",s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=function(){function e(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&&e(u.prototype,a),l&&e(u,l),u}}(),A=d(4),b=p(A);function p(e){return e&&e.__esModule?e:{default:e}}function y(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function h(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:e}function o(e,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}var t=function(e){o(u,e);function u(){return y(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return w(u,null,[{key:"formats",value:function(l){return this.tagName.indexOf(l.tagName)+1}}]),u}(b.default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],s.default=t},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.ListItem=void 0;var w=function(){function n(c,x){for(var O=0;O<x.length;O++){var E=x[O];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,x,O){return x&&n(c.prototype,x),O&&n(c,O),c}}(),A=function n(c,x,O){c===null&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,x);if(E===void 0){var S=Object.getPrototypeOf(c);return S===null?void 0:n(S,x,O)}else{if("value"in E)return E.value;var m=E.get;return m===void 0?void 0:m.call(O)}},b=d(0),p=e(b),y=d(4),h=e(y),o=d(25),t=e(o);function e(n){return n&&n.__esModule?n:{default:n}}function u(n,c,x){return c in n?Object.defineProperty(n,c,{value:x,enumerable:!0,configurable:!0,writable:!0}):n[c]=x,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 w(c,[{key:"format",value:function(O,E){O===f.blotName&&!E?this.replaceWith(p.default.create(this.statics.scope)):A(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,O,E)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():A(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(O,E){return this.parent.isolate(this.offset(this.parent),this.length()),O===this.parent.statics.blotName?(this.parent.replaceWith(O,E),this):(this.parent.unwrap(),A(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replaceWith",this).call(this,O,E))}}],[{key:"formats",value:function(O){return O.tagName===this.tagName?void 0:A(c.__proto__||Object.getPrototypeOf(c),"formats",this).call(this,O)}}]),c}(h.default);i.blotName="list-item",i.tagName="LI";var f=function(n){r(c,n),w(c,null,[{key:"create",value:function(O){var E=O==="ordered"?"OL":"UL",S=A(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,E);return(O==="checked"||O==="unchecked")&&S.setAttribute("data-checked",O==="checked"),S}},{key:"formats",value:function(O){if(O.tagName==="OL")return"ordered";if(O.tagName==="UL")return O.hasAttribute("data-checked")?O.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function c(x){a(this,c);var O=l(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,x)),E=function(m){if(m.target.parentNode===x){var v=O.statics.formats(x),g=p.default.find(m.target);v==="checked"?g.format("list","unchecked"):v==="unchecked"&&g.format("list","checked")}};return x.addEventListener("touchstart",E),x.addEventListener("mousedown",E),O}return w(c,[{key:"format",value:function(O,E){this.children.length>0&&this.children.tail.format(O,E)}},{key:"formats",value:function(){return u({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(O,E){if(O instanceof i)A(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"insertBefore",this).call(this,O,E);else{var S=E==null?this.length():E.offset(this),m=this.split(S);m.parent.insertBefore(O,m)}}},{key:"optimize",value:function(O){A(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"optimize",this).call(this,O);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&E.domNode.tagName===this.domNode.tagName&&E.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(E.moveChildren(this),E.remove())}},{key:"replace",value:function(O){if(O.statics.blotName!==this.statics.blotName){var E=p.default.create(this.statics.defaultChild);O.moveChildren(E),this.appendChild(E)}A(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"replace",this).call(this,O)}}]),c}(t.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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(56),A=b(w);function b(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){h(e,t);function e(){return p(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="italic",o.tagName=["EM","I"],s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=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}}(),A=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)}},b=d(6),p=y(b);function y(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 t(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 e=function(u){t(a,u);function a(){return h(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return w(a,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):A(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);e.blotName="script",e.tagName=["SUB","SUP"],s.default=e},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(6),A=b(w);function b(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){h(e,t);function e(){return p(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="strike",o.tagName="S",s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var w=d(6),A=b(w);function b(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function h(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var o=function(t){h(e,t);function e(){return p(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return e}(A.default);o.blotName="underline",o.tagName="U",s.default=o},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var 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}}(),A=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 x=n.get;return x===void 0?void 0:x.call(f)}},b=d(0),p=h(b),y=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 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 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 u=["alt","height","width"],a=function(l){e(r,l);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return w(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=A(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,y.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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0});var 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}}(),A=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 x=n.get;return x===void 0?void 0:x.call(f)}},b=d(4),p=d(27),y=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 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 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 u=["height","width"],a=function(l){e(r,l);function r(){return o(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return w(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):A(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=A(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 y.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(b.BlockEmbed);a.blotName="video",a.className="ql-video",a.tagName="IFRAME",s.default=a},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.FormulaBlot=void 0;var w=function(){function f(n,c){for(var x=0;x<c.length;x++){var O=c[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(n,O.key,O)}}return function(n,c,x){return c&&f(n.prototype,c),x&&f(n,x),n}}(),A=function f(n,c,x){n===null&&(n=Function.prototype);var O=Object.getOwnPropertyDescriptor(n,c);if(O===void 0){var E=Object.getPrototypeOf(n);return E===null?void 0:f(E,c,x)}else{if("value"in O)return O.value;var S=O.get;return S===void 0?void 0:S.call(x)}},b=d(35),p=e(b),y=d(5),h=e(y),o=d(9),t=e(o);function e(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 w(n,null,[{key:"create",value:function(x){var O=A(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,x);return typeof x=="string"&&(window.katex.render(x,O,{throwOnError:!1,errorColor:"#f00"}),O.setAttribute("data-value",x)),O}},{key:"value",value:function(x){return x.getAttribute("data-value")}}]),n}(p.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){l(n,f),w(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}(t.default);s.FormulaBlot=r,s.default=i},function(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.CodeToken=s.CodeBlock=void 0;var w=function(){function x(O,E){for(var S=0;S<E.length;S++){var m=E[S];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(O,m.key,m)}}return function(O,E,S){return E&&x(O.prototype,E),S&&x(O,S),O}}(),A=function x(O,E,S){O===null&&(O=Function.prototype);var m=Object.getOwnPropertyDescriptor(O,E);if(m===void 0){var v=Object.getPrototypeOf(O);return v===null?void 0:x(v,E,S)}else{if("value"in m)return m.value;var g=m.get;return g===void 0?void 0:g.call(S)}},b=d(0),p=a(b),y=d(5),h=a(y),o=d(9),t=a(o),e=d(13),u=a(e);function a(x){return x&&x.__esModule?x:{default:x}}function l(x,O){if(!(x instanceof O))throw new TypeError("Cannot call a class as a function")}function r(x,O){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:x}function i(x,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);x.prototype=Object.create(O&&O.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(x,O):x.__proto__=O)}var f=function(x){i(O,x);function O(){return l(this,O),r(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return w(O,[{key:"replaceWith",value:function(S){this.domNode.textContent=this.domNode.textContent,this.attach(),A(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,S)}},{key:"highlight",value:function(S){var m=this.domNode.textContent;this.cachedText!==m&&((m.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=S(m),this.domNode.normalize(),this.attach()),this.cachedText=m)}}]),O}(u.default);f.className="ql-syntax";var n=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),c=function(x){i(O,x),w(O,null,[{key:"register",value:function(){h.default.register(n,!0),h.default.register(f,!0)}}]);function O(E,S){l(this,O);var m=r(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,E,S));if(typeof m.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var v=null;return m.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(v),v=setTimeout(function(){m.highlight(),v=null},m.options.interval)}),m.highlight(),m}return w(O,[{key:"highlight",value:function(){var S=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(v){v.highlight(S.options.highlight)}),this.quill.update(h.default.sources.SILENT),m!=null&&this.quill.setSelection(m,h.default.sources.SILENT)}}}]),O}(t.default);c.DEFAULTS={highlight:function(){return window.hljs==null?null:function(x){var O=window.hljs.highlightAuto(x);return O.value}}(),interval:1e3}
41,s.CodeBlock=f,s.CodeToken=n,s.default=c},function(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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>
41 <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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s){_.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(_,s,d){Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.BubbleTooltip=void 0;var w=function O(E,S,m){E===null&&(E=Function.prototype);var v=Object.getOwnPropertyDescriptor(E,S);if(v===void 0){var g=Object.getPrototypeOf(E);return g===null?void 0:O(g,S,m)}else{if("value"in v)return v.value;var k=v.get;return k===void 0?void 0:k.call(m)}},A=function(){function O(E,S){for(var m=0;m<S.length;m++){var v=S[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(E,v.key,v)}}return function(E,S,m){return S&&O(E.prototype,S),m&&O(E,m),E}}(),b=d(3),p=l(b),y=d(8),h=l(y),o=d(43),t=l(o),e=d(15),u=d(41),a=l(u);function l(O){return O&&O.__esModule?O:{default:O}}function r(O,E){if(!(O instanceof E))throw new TypeError("Cannot call a class as a function")}function i(O,E){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:O}function f(O,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);O.prototype=Object.create(E&&E.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(O,E):O.__proto__=E)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],c=function(O){f(E,O);function E(S,m){r(this,E),m.modules.toolbar!=null&&m.modules.toolbar.container==null&&(m.modules.toolbar.container=n);var v=i(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S,m));return v.quill.container.classList.add("ql-bubble"),v}return A(E,[{key:"extendToolbar",value:function(m){this.tooltip=new x(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)}}]),E}(t.default);c.DEFAULTS=(0,p.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){E?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var x=function(O){f(E,O);function E(S,m){r(this,E);var v=i(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S,m));return v.quill.on(h.default.events.EDITOR_CHANGE,function(g,k,P,j){if(g===h.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&j===h.default.sources.USER){v.show(),v.root.style.left="0px",v.root.style.width="",v.root.style.width=v.root.offsetWidth+"px";var $=v.quill.getLines(k.index,k.length);if($.length===1)v.position(v.quill.getBounds(k));else{var F=$[$.length-1],W=v.quill.getIndex(F),C=Math.min(F.length()-1,k.index+k.length-W),M=v.quill.getBounds(new e.Range(W,C));v.position(M)}}else document.activeElement!==v.textbox&&v.quill.hasFocus()&&v.hide()}),v}return A(E,[{key:"listen",value:function(){var m=this;w(E.prototype.__proto__||Object.getPrototypeOf(E.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 v=m.quill.getSelection();v!=null&&m.position(m.quill.getBounds(v))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(m){var v=w(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"position",this).call(this,m),g=this.root.querySelector(".ql-tooltip-arrow");if(g.style.marginLeft="",v===0)return v;g.style.marginLeft=-1*v-g.offsetWidth/2+"px"}}]),E}(o.BaseTooltip);x.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=x,s.default=c},function(_,s,d){_.exports=d(63)}]).default})})(Je);var Ru=Je.exports,ju=ct&&ct.__extends||function(){var N=function(R,_){return N=Object.
vendor: 5,448 bytes, line 41
41setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var w in d)d.hasOwnProperty(w)&&(s[w]=d[w])},N(R,_)};return function(R,_){N(R,_);function s(){this.constructor=R}R.prototype=_===null?Object.create(_):(s.prototype=_.prototype,new s)}}(),It=ct&&ct.__assign||function(){return It=Object.assign||function(N){for(var R,_=1,s=arguments.length;_<s;_++){R=arguments[_];for(var d in R)Object.prototype.hasOwnProperty.call(R,d)&&(N[d]=R[d])}return N},It.apply(this,arguments)},Iu=ct&&ct.__spreadArrays||function(){for(var N=0,R=0,_=arguments.length;R<_;R++)N+=arguments[R].length;for(var s=Array(N),d=0,R=0;R<_;R++)for(var w=arguments[R],A=0,b=w.length;A<b;A++,d++)s[d]=w[A];return s},Vt=ct&&ct.__importDefault||function(N){return N&&N.__esModule?N:{default:N}},pt=Vt(dt),Mu=Vt(nn),St=Vt(qu),De=Vt(Ru),Du=function(N){ju(R,N);function R(_){var s=N.call(this,_)||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(w,A,b,p){var y,h,o,t;w==="text-change"?(h=(y=s).onEditorChangeText)===null||h===void 0||h.call(y,s.editor.root.innerHTML,A,p,s.unprivilegedEditor):w==="selection-change"&&((t=(o=s).onEditorChangeSelection)===null||t===void 0||t.call(o,A,p,s.unprivilegedEditor))};var d=s.isControlled()?_.value:_.defaultValue;return s.value=d??"",s}return R.prototype.validateProps=function(_){var s;if(pt.default.Children.count(_.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(pt.default.Children.count(_.children)){var d=pt.default.Children.only(_.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&&_.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")},R.prototype.shouldComponentUpdate=function(_,s){var d=this,w;if(this.validateProps(_),!this.editor||this.state.generation!==s.generation)return!0;if("value"in _){var A=this.getEditorContents(),b=(w=_.value,w??"");this.isEqualValue(b,A)||this.setEditorContents(this.editor,b)}return _.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,_.readOnly),Iu(this.cleanProps,this.dirtyProps).some(function(p){return!St.default(_[p],d.props[p])})},R.prototype.shouldComponentRegenerate=function(_){var s=this;return this.dirtyProps.some(function(d){return!St.default(_[d],s.props[d])})},R.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},R.prototype.componentWillUnmount=function(){this.destroyEditor()},R.prototype.componentDidUpdate=function(_,s){var d=this;if(this.editor&&this.shouldComponentRegenerate(_)){var w=this.editor.getContents(),A=this.editor.getSelection();this.regenerationSnapshot={delta:w,selection:A},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==s.generation){var b=this.regenerationSnapshot,w=b.delta,p=b.selection;delete this.regenerationSnapshot,this.instantiateEditor();var y=this.editor;y.setContents(w),Ce(function(){return d.setEditorSelection(y,p)})}},R.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},R.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},R.prototype.isControlled=function(){return"value"in this.props},R.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}},R.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},R.prototype.createEditor=function(_,s){var d=new De.default(_,s);return s.tabIndex!=null&&this.setEditorTabIndex(d,s.tabIndex),this.hookEditor(d),d},R.prototype.hookEditor=function(_){this.unprivilegedEditor=this.makeUnprivilegedEditor(_),_.on("editor-change",this.onEditorChange)},R.prototype.unhookEditor=function(_){_.off("editor-change",this.onEditorChange)},R.prototype.getEditorContents=function(){return this.value},R.prototype.getEditorSelection=function(){return this.selection},R.prototype.isDelta=function(_){return _&&_.ops},R.prototype.isEqualValue=function(_,s){return this.isDelta(_)&&this.isDelta(s)?St.default(_.ops,s.ops):St.default(_,s)},R.prototype.setEditorContents=function(_,s){var d=this;this.value=s;var w=this.getEditorSelection();typeof s=="string"?_.setContents(_.clipboard.convert(s)):_.setContents(s),Ce(function(){return d.setEditorSelection(_,w)})},R.prototype.setEditorSelection=function(_,s){if(this.selection=s,s){var d=_.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)),_.setSelection(s)}},R.prototype.setEditorTabIndex=function(_,s){var d,w;!((w=(d=_)===null||d===void 0?void 0:d.scroll)===null||w===void 0)&&w.domNo
41de&&(_.scroll.domNode.tabIndex=s)},R.prototype.setEditorReadOnly=function(_,s){s?_.disable():_.enable()},R.prototype.makeUnprivilegedEditor=function(_){var s=_;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)}},R.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var _=Mu.default.findDOMNode(this.editingArea);if(!_)throw new Error("Cannot find element for editing area");if(_.nodeType===3)throw new Error("Editing area cannot be a text node");return _},R.prototype.renderEditingArea=function(){var _=this,s=this.props,d=s.children,w=s.preserveWhitespace,A=this.state.generation,b={key:A,ref:function(p){_.editingArea=p}};return pt.default.Children.count(d)?pt.default.cloneElement(pt.default.Children.only(d),b):w?pt.default.createElement("pre",It({},b)):pt.default.createElement("div",It({},b))},R.prototype.render=function(){var _;return pt.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(_=this.props.className,_??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},R.prototype.onEditorChangeText=function(_,s,d,w){var A,b;if(this.editor){var p=this.isDelta(this.value)?w.getContents():w.getHTML();p!==this.getEditorContents()&&(this.lastDeltaChangeSet=s,this.value=p,(b=(A=this.props).onChange)===null||b===void 0||b.call(A,_,s,d,w))}},R.prototype.onEditorChangeSelection=function(_,s,d){var w,A,b,p,y,h;if(this.editor){var o=this.getEditorSelection(),t=!o&&_,e=o&&!_;St.default(_,o)||(this.selection=_,(A=(w=this.props).onChangeSelection)===null||A===void 0||A.call(w,_,s,d),t?(p=(b=this.props).onFocus)===null||p===void 0||p.call(b,_,s,d):e&&((h=(y=this.props).onBlur)===null||h===void 0||h.call(y,o,s,d)))}},R.prototype.focus=function(){this.editor&&this.editor.focus()},R.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},R.displayName="React Quill",R.Quill=De.default,R.defaultProps={theme:"snow",modules:{},readOnly:!1},R}(pt.default.Component);function Ce(N){Promise.resolve().then(N)}var bt=Du;const Cu=en(bt),xt=bt.Quill.import("blots/block"),Pt=class Pt extends xt{};Pt.blotName="table",Pt.tagName="TABLE",Pt.className="ql-table";let ne=Pt;const Mt=class Mt extends xt{};Mt.blotName="thead",Mt.tagName="THEAD";let re=Mt;const Dt=class Dt extends xt{};Dt.blotName="tbody",Dt.tagName="TBODY";let ie=Dt;const Ct=class Ct extends xt{};Ct.blotName="table-row",Ct.tagName="TR";let oe=Ct;const Bt=class Bt extends xt{};Bt.blotName="table-cell",Bt.tagName="TD";let ae=Bt;const $t=class $t extends xt{};$t.blotName="table-header",$t.tagName="TH";let le=$t;bt.Quill.register(ne);bt.Quill.register(re);bt.Quill.register(ie);bt.Quill.register(oe);bt.Quill.register(ae);bt.Quill.register(le);function $u({value:N,onChange:R,placeholder:_,className:s=""}){const d=dt.useRef(null),[w,A]=dt.useState(!1),[b,p]=dt.useState(N);dt.useMemo(()=>{w||p(N)},[N,w]);const y=dt.useCallback(()=>{if(w){if(d.current){const r=d.current.getEditor();r.setText(""),r.clipboard.dangerouslyPasteHTML(0,b)}R(b),A(!1)}else p(N),A(!0)},[w,b,N,R]),h=dt.useCallback(r=>{p(r),R(r)},[R]),o=dt.useCallback(async()=>{const r=document.createElement("input");r.setAttribute("type","file"),r.setAttribute("accept","image/*"),r.click(),r.onchange=async()=>{var f,n;const i=(f=r.files)==null?void 0:f[0];if(i)try{const x=await(await fetch("/api/objects/upload",{method:"POST",headers:{"Content-Type":"application/json"}})).json();console.log("Upload response:",x);const O=await fetch(x.uploadURL,{method:"PUT",body:i,headers:{"Content-Type":i.type}});if(O.ok){const S=x.uploadURL.split("?")[0].match(/\/([^\/]+\/[^\/]+)$/),m=S?S[1]:"";console.log("Extracted objectPath:",m);const v=await fetch("/api/objects/finalize",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({objectPath:m})});if(v.ok){const{publicUrl:g}=await v.json(),k=(n=d.current)==null?void 0:n.getEditor();if(k){const P=k.getSelection(),j=P?P.index:k.getLength();k.insertEmbed(j,"image",g),k.setSelection({index:j+1,length:0})}}else{console.error("Finalization failed:",v.status,v.statusText);const g=await v.text();console.error("Finalization error details:",g)}}else console.error("Upload failed:",O.status,O.statusText)}catch(c){console.error("Error uploading image:",c)}}},[]),t=dt.useCallback(()=>{var i;const r=prompt("Enter video URL (YouTube, Vimeo, etc.):");if(r){const f=(i=d.current)==null?void 0:i.getEditor();if(f){const n=f.getSelection(),c=n?n.index:f.getLength(),x=e(r);x&&(f.insertEmbed(c,"video",x),f.setSelection({index:c+1,length:0}))}}},[]),e=r=>{const i=r.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([^&\n?#]+)/);if(i)return`https://www.youtube.com/embed/${i[1]}`;const f=r.match(/vimeo\.com\/(\d+)/);return f?`https://player.vimeo.com/video/${f[1]}`:r.match(/\.(mp4|webm|ogg)$/i)?r:null},u=dt.useCallback(()=>
41{if(d.current){const r=d.current.getEditor(),i=r.getSelection()||{index:r.getLength()};r.clipboard.dangerouslyPasteHTML(i.index,`
42        <table style="border-collapse: collapse; width: 100%; margin: 1em 0;">
43          <tr>
44            <td style="border: 1px solid #ddd; padding: 8px; min-width: 100px;">Cell 1</td>
45            <td style="border: 1px solid #ddd; padding: 8px; min-width: 100px;">Cell 2</td>
46          </tr>
47          <tr>
48            <td style="border: 1px solid #ddd; padding: 8px; min-width: 100px;">Cell 3</td>
49            <td style="border: 1px solid #ddd; padding: 8px; min-width: 100px;">Cell 4</td>
50          </tr>
51        </table>
52        <p><br></p>
53      `),r.setSelection({index:i.index+1,length:0})}},[]),a=dt.useMemo(()=>({toolbar:{container:[[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],[{size:[]}],["bold","italic","underline","strike","blockquote"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],[{align:[]}],["link","image","video"],["code-block"],["table"],["clean"]],handlers:{image:o,video:t,table:u}},clipboard:{matchVisual:!1,matchers:[["table",function(r,i){return i}],["thead",function(r,i){return i}],["tbody",function(r,i){return i}],["tr",function(r,i){return i}],["td",function(r,i){return i}],["th",function(r,i){return i}]]}}),[o,t,u]),l=["header","font","size","bold","italic","underline","strike","blockquote","color","background","list","bullet","indent","align","link","image","video","code-block","table","thead","tbody","table-row","table-cell","table-header"];return vt.jsxs("div",{className:`wysiwyg-editor ${s}`,children:[vt.jsx("style",{children:`
54        /* Custom table button styling */
55        .ql-toolbar .ql-table:before {
56          content: "⚏";
57          font-size: 16px;
58          color: #444;
59        }
60        
61        .ql-toolbar .ql-table {
62          width: 28px;
63          height: 28px;
64          display: inline-block;
65          vertical-align: top;
66          background: transparent;
67          border: none;
68          cursor: pointer;
69          outline: none;
70          position: relative;
71        }
72        
73        .ql-toolbar .ql-table:hover {
74          background-color: #f0f0f0;
75          border-radius: 3px;
76        }
77        
78        .ql-toolbar .ql-table:active {
79          background-color: #e0e0e0;
80        }
81
82        /* HTML view styling */
83        .html-editor-container {
84          border: 1px solid #ccc;
85          border-radius: 4px;
86        }
87        
88        .html-editor-toolbar {
89          background: #f3f3f3;
90          border-bottom: 1px solid #ccc;
91          padding: 8px 12px;
92          display: flex;
93          justify-content: space-between;
94          align-items: center;
95        }
96        
97        .html-editor-textarea {
98          width: 100%;
99          min-height: 300px;
100          padding: 12px;
101          border: none;
102          outline: none;
103          font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
104          font-size: 14px;
105          resize: vertical;
106          background: #fafafa;
107        }
108      `}),vt.jsx("div",{className:"mb-2",children:vt.jsx(rn,{type:"button",variant:"outline",size:"sm",onClick:y,"data-testid":"button-toggle-html-view",children:w?"👁️ Visual":"💻 HTML"})}),w?vt.jsxs("div",{className:"html-editor-container",children:[vt.jsxs("div",{className:"html-editor-toolbar",children:[vt.jsx("span",{className:"text-sm text-gray-600",children:"HTML Editor - Edit raw HTML code"}),vt.jsx("span",{className:"text-xs text-gray-500",children:"Tip: You can add tables with <table> tags here"})]}),vt.jsx("textarea",{className:"html-editor-textarea",value:b,onChange:r=>h(r.target.value),placeholder:_||"Enter HTML content...","data-testid":"textarea-html-editor"})]}):vt.jsx(Cu,{ref:d,theme:"snow",value:N,onChange:R,modules:a,formats:l,placeholder:_})]})}export{$u as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.