Files
aso/public/client-portal/assets/RHFTextField.d883cc4b.js
2023-05-24 17:14:37 +07:00

45 lines
303 KiB
JavaScript

import{A as Ee,R as pe,s as Be,j as vt,r as Ki,C as Gi,B as Wi}from"./index.8db8ac40.js";import"./formatNumber.188b6a51.js";import{T as Zi}from"./TextField.bb92a059.js";var zt;try{zt=Map}catch{}var Kt;try{Kt=Set}catch{}function xn(e,n,t){if(!e||typeof e!="object"||typeof e=="function")return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(Gt);if(zt&&e instanceof zt)return new Map(Array.from(e.entries()));if(Kt&&e instanceof Kt)return new Set(Array.from(e.values()));if(e instanceof Object){n.push(e);var r=Object.create(e);t.push(r);for(var i in e){var c=n.findIndex(function(y){return y===e[i]});r[i]=c>-1?t[c]:xn(e[i],n,t)}return r}return e}function Gt(e){return xn(e,[],[])}const Yi=Object.prototype.toString,Xi=Error.prototype.toString,Qi=RegExp.prototype.toString,Ji=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",eo=/^Symbol\((.*)\)(.*)$/;function to(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function Ar(e,n=!1){if(e==null||e===!0||e===!1)return""+e;const t=typeof e;if(t==="number")return to(e);if(t==="string")return n?`"${e}"`:e;if(t==="function")return"[Function "+(e.name||"anonymous")+"]";if(t==="symbol")return Ji.call(e).replace(eo,"Symbol($1)");const r=Yi.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Xi.call(e)+"]":r==="RegExp"?Qi.call(e):null}function nt(e,n){let t=Ar(e,n);return t!==null?t:JSON.stringify(e,function(r,i){let c=Ar(this[r],n);return c!==null?c:i},2)}let Ie={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:n,value:t,originalValue:r})=>{let i=r!=null&&r!==t,c=`${e} must be a \`${n}\` type, but the final value was: \`${nt(t,!0)}\``+(i?` (cast from the value \`${nt(r,!0)}\`).`:".");return t===null&&(c+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),c},defined:"${path} must be defined"},Te={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Re={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Wt={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ro={isValue:"${path} field must be ${value}"},Zt={noUnknown:"${path} field has unspecified keys: ${unknown}"},no={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Ie,string:Te,number:Re,date:Wt,object:Zt,array:no,boolean:ro});var io=Object.prototype,oo=io.hasOwnProperty;function ao(e,n){return e!=null&&oo.call(e,n)}var lo=ao,so=Array.isArray,Ce=so,uo=typeof Ee=="object"&&Ee&&Ee.Object===Object&&Ee,An=uo,fo=An,co=typeof self=="object"&&self&&self.Object===Object&&self,ho=fo||co||Function("return this")(),Le=ho,po=Le,vo=po.Symbol,Tt=vo,kr=Tt,kn=Object.prototype,yo=kn.hasOwnProperty,go=kn.toString,et=kr?kr.toStringTag:void 0;function mo(e){var n=yo.call(e,et),t=e[et];try{e[et]=void 0;var r=!0}catch{}var i=go.call(e);return r&&(n?e[et]=t:delete e[et]),i}var bo=mo,_o=Object.prototype,Oo=_o.toString;function Eo(e){return Oo.call(e)}var wo=Eo,Tr=Tt,xo=bo,Ao=wo,ko="[object Null]",To="[object Undefined]",Sr=Tr?Tr.toStringTag:void 0;function So(e){return e==null?e===void 0?To:ko:Sr&&Sr in Object(e)?xo(e):Ao(e)}var it=So;function qo(e){return e!=null&&typeof e=="object"}var ot=qo,No=it,Po=ot,Fo="[object Symbol]";function Lo(e){return typeof e=="symbol"||Po(e)&&No(e)==Fo}var sr=Lo,Ro=Ce,Do=sr,$o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Co=/^\w*$/;function Io(e,n){if(Ro(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Do(e)?!0:Co.test(e)||!$o.test(e)||n!=null&&e in Object(n)}var ur=Io;function jo(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var fr=jo,Mo=it,Bo=fr,Uo="[object AsyncFunction]",Vo="[object Function]",Ho="[object GeneratorFunction]",zo="[object Proxy]";function Ko(e){if(!Bo(e))return!1;var n=Mo(e);return n==Vo||n==Ho||n==Uo||n==zo}var Tn=Ko,Go=Le,Wo=Go["__core-js_shared__"],Zo=Wo,Ct=Zo,qr=function(){var e=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Yo(e){return!!qr&&qr in e}var Xo=Yo,Qo=Function.prototype,Jo=Qo.toString;function ea(e){if(e!=null){try{return Jo.call(e)}catch{}try{return e+""}catch{}}return""}var Sn=ea,ta=Tn,ra=Xo,na=fr,ia=Sn,oa=/[\\^$.*+?()[\]{}|]/g,aa=/^\[object .+?Constructor\]$/,la=Function.prototype,sa=Object.prototype,ua=la.toString,fa=sa.hasOwnProperty,ca=RegExp("^"+ua.call(fa).replace(oa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ha(e){if(!na(e)||ra(e))return!1;var n=ta(e)?ca:aa;return n.test(ia(e))}var da=ha;function pa(e,n){return e==null?void 0:e[n]}var va=pa,ya=da,ga=va;function ma(e,n){var t=ga(e,n);return ya(t)?t:void 0}var Ue=ma,ba=Ue,_a=ba(Object,"create"),St=_a,Nr=St;function Oa(){this.__data__=Nr?Nr(null):{},this.size=0}var Ea=Oa;function wa(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var xa=wa,Aa=St,ka="__lodash_hash_undefined__",Ta=Object.prototype,Sa=Ta.hasOwnProperty;function qa(e){var n=this.__data__;if(Aa){var t=n[e];return t===ka?void 0:t}return Sa.call(n,e)?n[e]:void 0}var Na=qa,Pa=St,Fa=Object.prototype,La=Fa.hasOwnProperty;function Ra(e){var n=this.__data__;return Pa?n[e]!==void 0:La.call(n,e)}var Da=Ra,$a=St,Ca="__lodash_hash_undefined__";function Ia(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=$a&&n===void 0?Ca:n,this}var ja=Ia,Ma=Ea,Ba=xa,Ua=Na,Va=Da,Ha=ja;function Ze(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}Ze.prototype.clear=Ma;Ze.prototype.delete=Ba;Ze.prototype.get=Ua;Ze.prototype.has=Va;Ze.prototype.set=Ha;var za=Ze;function Ka(){this.__data__=[],this.size=0}var Ga=Ka;function Wa(e,n){return e===n||e!==e&&n!==n}var qn=Wa,Za=qn;function Ya(e,n){for(var t=e.length;t--;)if(Za(e[t][0],n))return t;return-1}var qt=Ya,Xa=qt,Qa=Array.prototype,Ja=Qa.splice;function el(e){var n=this.__data__,t=Xa(n,e);if(t<0)return!1;var r=n.length-1;return t==r?n.pop():Ja.call(n,t,1),--this.size,!0}var tl=el,rl=qt;function nl(e){var n=this.__data__,t=rl(n,e);return t<0?void 0:n[t][1]}var il=nl,ol=qt;function al(e){return ol(this.__data__,e)>-1}var ll=al,sl=qt;function ul(e,n){var t=this.__data__,r=sl(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}var fl=ul,cl=Ga,hl=tl,dl=il,pl=ll,vl=fl;function Ye(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}Ye.prototype.clear=cl;Ye.prototype.delete=hl;Ye.prototype.get=dl;Ye.prototype.has=pl;Ye.prototype.set=vl;var Nt=Ye,yl=Ue,gl=Le,ml=yl(gl,"Map"),cr=ml,Pr=za,bl=Nt,_l=cr;function Ol(){this.size=0,this.__data__={hash:new Pr,map:new(_l||bl),string:new Pr}}var El=Ol;function wl(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var xl=wl,Al=xl;function kl(e,n){var t=e.__data__;return Al(n)?t[typeof n=="string"?"string":"hash"]:t.map}var Pt=kl,Tl=Pt;function Sl(e){var n=Tl(this,e).delete(e);return this.size-=n?1:0,n}var ql=Sl,Nl=Pt;function Pl(e){return Nl(this,e).get(e)}var Fl=Pl,Ll=Pt;function Rl(e){return Ll(this,e).has(e)}var Dl=Rl,$l=Pt;function Cl(e,n){var t=$l(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}var Il=Cl,jl=El,Ml=ql,Bl=Fl,Ul=Dl,Vl=Il;function Xe(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}Xe.prototype.clear=jl;Xe.prototype.delete=Ml;Xe.prototype.get=Bl;Xe.prototype.has=Ul;Xe.prototype.set=Vl;var hr=Xe,Nn=hr,Hl="Expected a function";function dr(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(Hl);var t=function(){var r=arguments,i=n?n.apply(this,r):r[0],c=t.cache;if(c.has(i))return c.get(i);var y=e.apply(this,r);return t.cache=c.set(i,y)||c,y};return t.cache=new(dr.Cache||Nn),t}dr.Cache=Nn;var zl=dr,Kl=zl,Gl=500;function Wl(e){var n=Kl(e,function(r){return t.size===Gl&&t.clear(),r}),t=n.cache;return n}var Zl=Wl,Yl=Zl,Xl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ql=/\\(\\)?/g,Jl=Yl(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Xl,function(t,r,i,c){n.push(i?c.replace(Ql,"$1"):r||t)}),n}),es=Jl;function ts(e,n){for(var t=-1,r=e==null?0:e.length,i=Array(r);++t<r;)i[t]=n(e[t],t,e);return i}var rs=ts,Fr=Tt,ns=rs,is=Ce,os=sr,as=1/0,Lr=Fr?Fr.prototype:void 0,Rr=Lr?Lr.toString:void 0;function Pn(e){if(typeof e=="string")return e;if(is(e))return ns(e,Pn)+"";if(os(e))return Rr?Rr.call(e):"";var n=e+"";return n=="0"&&1/e==-as?"-0":n}var ls=Pn,ss=ls;function us(e){return e==null?"":ss(e)}var at=us,fs=Ce,cs=ur,hs=es,ds=at;function ps(e,n){return fs(e)?e:cs(e,n)?[e]:hs(ds(e))}var Fn=ps,vs=it,ys=ot,gs="[object Arguments]";function ms(e){return ys(e)&&vs(e)==gs}var bs=ms,Dr=bs,_s=ot,Ln=Object.prototype,Os=Ln.hasOwnProperty,Es=Ln.propertyIsEnumerable,ws=Dr(function(){return arguments}())?Dr:function(e){return _s(e)&&Os.call(e,"callee")&&!Es.call(e,"callee")},Rn=ws,xs=9007199254740991,As=/^(?:0|[1-9]\d*)$/;function ks(e,n){var t=typeof e;return n=n==null?xs:n,!!n&&(t=="number"||t!="symbol"&&As.test(e))&&e>-1&&e%1==0&&e<n}var Dn=ks,Ts=9007199254740991;function Ss(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ts}var pr=Ss,qs=sr,Ns=1/0;function Ps(e){if(typeof e=="string"||qs(e))return e;var n=e+"";return n=="0"&&1/e==-Ns?"-0":n}var Ft=Ps,Fs=Fn,Ls=Rn,Rs=Ce,Ds=Dn,$s=pr,Cs=Ft;function Is(e,n,t){n=Fs(n,e);for(var r=-1,i=n.length,c=!1;++r<i;){var y=Cs(n[r]);if(!(c=e!=null&&t(e,y)))break;e=e[y]}return c||++r!=i?c:(i=e==null?0:e.length,!!i&&$s(i)&&Ds(y,i)&&(Rs(e)||Ls(e)))}var $n=Is,js=lo,Ms=$n;function Bs(e,n){return e!=null&&Ms(e,n,js)}var yt=Bs;const Cn=e=>e&&e.__isYupSchema__;class Us{constructor(n,t){if(this.fn=void 0,this.refs=n,this.refs=n,typeof t=="function"){this.fn=t;return}if(!yt(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:c}=t,y=typeof r=="function"?r:(...O)=>O.every(g=>g===r);this.fn=function(...O){let g=O.pop(),_=O.pop(),p=y(...O)?i:c;if(!!p)return typeof p=="function"?p(_):_.concat(p.resolve(g))}}resolve(n,t){let r=this.refs.map(c=>c.getValue(t==null?void 0:t.value,t==null?void 0:t.parent,t==null?void 0:t.context)),i=this.fn.apply(n,r.concat(n,t));if(i===void 0||i===n)return n;if(!Cn(i))throw new TypeError("conditions must return a schema object");return i.resolve(t)}}function In(e){return e==null?[]:[].concat(e)}function Yt(){return Yt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Yt.apply(this,arguments)}let Vs=/\$\{\s*(\w+)\s*\}/g;class we extends Error{static formatError(n,t){const r=t.label||t.path||"this";return r!==t.path&&(t=Yt({},t,{path:r})),typeof n=="string"?n.replace(Vs,(i,c)=>nt(t[c])):typeof n=="function"?n(t):n}static isError(n){return n&&n.name==="ValidationError"}constructor(n,t,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=i,this.errors=[],this.inner=[],In(n).forEach(c=>{we.isError(c)?(this.errors.push(...c.errors),this.inner=this.inner.concat(c.inner.length?c.inner:c)):this.errors.push(c)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,we)}}const Hs=e=>{let n=!1;return(...t)=>{n||(n=!0,e(...t))}};function Xt(e,n){let{endEarly:t,tests:r,args:i,value:c,errors:y,sort:O,path:g}=e,_=Hs(n),p=r.length;const l=[];if(y=y||[],!p)return y.length?_(new we(y,c,g)):_(null,c);for(let o=0;o<r.length;o++){const a=r[o];a(i,function(h){if(h){if(!we.isError(h))return _(h,c);if(t)return h.value=c,_(h,c);l.push(h)}if(--p<=0){if(l.length&&(O&&l.sort(O),y.length&&l.push(...y),y=l),y.length){_(new we(y,c,g),c);return}_(null,c)}})}}var zs=Ue,Ks=function(){try{var e=zs(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Gs=Ks,$r=Gs;function Ws(e,n,t){n=="__proto__"&&$r?$r(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}var jn=Ws;function Zs(e){return function(n,t,r){for(var i=-1,c=Object(n),y=r(n),O=y.length;O--;){var g=y[e?O:++i];if(t(c[g],g,c)===!1)break}return n}}var Ys=Zs,Xs=Ys,Qs=Xs(),Js=Qs;function eu(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}var tu=eu,gt={exports:{}};function ru(){return!1}var nu=ru;(function(e,n){var t=Le,r=nu,i=n&&!n.nodeType&&n,c=i&&!0&&e&&!e.nodeType&&e,y=c&&c.exports===i,O=y?t.Buffer:void 0,g=O?O.isBuffer:void 0,_=g||r;e.exports=_})(gt,gt.exports);var iu=it,ou=pr,au=ot,lu="[object Arguments]",su="[object Array]",uu="[object Boolean]",fu="[object Date]",cu="[object Error]",hu="[object Function]",du="[object Map]",pu="[object Number]",vu="[object Object]",yu="[object RegExp]",gu="[object Set]",mu="[object String]",bu="[object WeakMap]",_u="[object ArrayBuffer]",Ou="[object DataView]",Eu="[object Float32Array]",wu="[object Float64Array]",xu="[object Int8Array]",Au="[object Int16Array]",ku="[object Int32Array]",Tu="[object Uint8Array]",Su="[object Uint8ClampedArray]",qu="[object Uint16Array]",Nu="[object Uint32Array]",ce={};ce[Eu]=ce[wu]=ce[xu]=ce[Au]=ce[ku]=ce[Tu]=ce[Su]=ce[qu]=ce[Nu]=!0;ce[lu]=ce[su]=ce[_u]=ce[uu]=ce[Ou]=ce[fu]=ce[cu]=ce[hu]=ce[du]=ce[pu]=ce[vu]=ce[yu]=ce[gu]=ce[mu]=ce[bu]=!1;function Pu(e){return au(e)&&ou(e.length)&&!!ce[iu(e)]}var Fu=Pu;function Lu(e){return function(n){return e(n)}}var Ru=Lu,Qt={exports:{}};(function(e,n){var t=An,r=n&&!n.nodeType&&n,i=r&&!0&&e&&!e.nodeType&&e,c=i&&i.exports===r,y=c&&t.process,O=function(){try{var g=i&&i.require&&i.require("util").types;return g||y&&y.binding&&y.binding("util")}catch{}}();e.exports=O})(Qt,Qt.exports);var Du=Fu,$u=Ru,Cr=Qt.exports,Ir=Cr&&Cr.isTypedArray,Cu=Ir?$u(Ir):Du,Mn=Cu,Iu=tu,ju=Rn,Mu=Ce,Bu=gt.exports,Uu=Dn,Vu=Mn,Hu=Object.prototype,zu=Hu.hasOwnProperty;function Ku(e,n){var t=Mu(e),r=!t&&ju(e),i=!t&&!r&&Bu(e),c=!t&&!r&&!i&&Vu(e),y=t||r||i||c,O=y?Iu(e.length,String):[],g=O.length;for(var _ in e)(n||zu.call(e,_))&&!(y&&(_=="length"||i&&(_=="offset"||_=="parent")||c&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Uu(_,g)))&&O.push(_);return O}var Gu=Ku,Wu=Object.prototype;function Zu(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||Wu;return e===t}var Yu=Zu;function Xu(e,n){return function(t){return e(n(t))}}var Qu=Xu,Ju=Qu,ef=Ju(Object.keys,Object),tf=ef,rf=Yu,nf=tf,of=Object.prototype,af=of.hasOwnProperty;function lf(e){if(!rf(e))return nf(e);var n=[];for(var t in Object(e))af.call(e,t)&&t!="constructor"&&n.push(t);return n}var sf=lf,uf=Tn,ff=pr;function cf(e){return e!=null&&ff(e.length)&&!uf(e)}var hf=cf,df=Gu,pf=sf,vf=hf;function yf(e){return vf(e)?df(e):pf(e)}var vr=yf,gf=Js,mf=vr;function bf(e,n){return e&&gf(e,n,mf)}var Bn=bf,_f=Nt;function Of(){this.__data__=new _f,this.size=0}var Ef=Of;function wf(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}var xf=wf;function Af(e){return this.__data__.get(e)}var kf=Af;function Tf(e){return this.__data__.has(e)}var Sf=Tf,qf=Nt,Nf=cr,Pf=hr,Ff=200;function Lf(e,n){var t=this.__data__;if(t instanceof qf){var r=t.__data__;if(!Nf||r.length<Ff-1)return r.push([e,n]),this.size=++t.size,this;t=this.__data__=new Pf(r)}return t.set(e,n),this.size=t.size,this}var Rf=Lf,Df=Nt,$f=Ef,Cf=xf,If=kf,jf=Sf,Mf=Rf;function Qe(e){var n=this.__data__=new Df(e);this.size=n.size}Qe.prototype.clear=$f;Qe.prototype.delete=Cf;Qe.prototype.get=If;Qe.prototype.has=jf;Qe.prototype.set=Mf;var Un=Qe,Bf="__lodash_hash_undefined__";function Uf(e){return this.__data__.set(e,Bf),this}var Vf=Uf;function Hf(e){return this.__data__.has(e)}var zf=Hf,Kf=hr,Gf=Vf,Wf=zf;function mt(e){var n=-1,t=e==null?0:e.length;for(this.__data__=new Kf;++n<t;)this.add(e[n])}mt.prototype.add=mt.prototype.push=Gf;mt.prototype.has=Wf;var Zf=mt;function Yf(e,n){for(var t=-1,r=e==null?0:e.length;++t<r;)if(n(e[t],t,e))return!0;return!1}var Xf=Yf;function Qf(e,n){return e.has(n)}var Jf=Qf,ec=Zf,tc=Xf,rc=Jf,nc=1,ic=2;function oc(e,n,t,r,i,c){var y=t&nc,O=e.length,g=n.length;if(O!=g&&!(y&&g>O))return!1;var _=c.get(e),p=c.get(n);if(_&&p)return _==n&&p==e;var l=-1,o=!0,a=t&ic?new ec:void 0;for(c.set(e,n),c.set(n,e);++l<O;){var v=e[l],h=n[l];if(r)var d=y?r(h,v,l,n,e,c):r(v,h,l,e,n,c);if(d!==void 0){if(d)continue;o=!1;break}if(a){if(!tc(n,function(f,u){if(!rc(a,u)&&(v===f||i(v,f,t,r,c)))return a.push(u)})){o=!1;break}}else if(!(v===h||i(v,h,t,r,c))){o=!1;break}}return c.delete(e),c.delete(n),o}var Vn=oc,ac=Le,lc=ac.Uint8Array,sc=lc;function uc(e){var n=-1,t=Array(e.size);return e.forEach(function(r,i){t[++n]=[i,r]}),t}var fc=uc;function cc(e){var n=-1,t=Array(e.size);return e.forEach(function(r){t[++n]=r}),t}var hc=cc,jr=Tt,Mr=sc,dc=qn,pc=Vn,vc=fc,yc=hc,gc=1,mc=2,bc="[object Boolean]",_c="[object Date]",Oc="[object Error]",Ec="[object Map]",wc="[object Number]",xc="[object RegExp]",Ac="[object Set]",kc="[object String]",Tc="[object Symbol]",Sc="[object ArrayBuffer]",qc="[object DataView]",Br=jr?jr.prototype:void 0,It=Br?Br.valueOf:void 0;function Nc(e,n,t,r,i,c,y){switch(t){case qc:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case Sc:return!(e.byteLength!=n.byteLength||!c(new Mr(e),new Mr(n)));case bc:case _c:case wc:return dc(+e,+n);case Oc:return e.name==n.name&&e.message==n.message;case xc:case kc:return e==n+"";case Ec:var O=vc;case Ac:var g=r&gc;if(O||(O=yc),e.size!=n.size&&!g)return!1;var _=y.get(e);if(_)return _==n;r|=mc,y.set(e,n);var p=pc(O(e),O(n),r,i,c,y);return y.delete(e),p;case Tc:if(It)return It.call(e)==It.call(n)}return!1}var Pc=Nc;function Fc(e,n){for(var t=-1,r=n.length,i=e.length;++t<r;)e[i+t]=n[t];return e}var Lc=Fc,Rc=Lc,Dc=Ce;function $c(e,n,t){var r=n(e);return Dc(e)?r:Rc(r,t(e))}var Cc=$c;function Ic(e,n){for(var t=-1,r=e==null?0:e.length,i=0,c=[];++t<r;){var y=e[t];n(y,t,e)&&(c[i++]=y)}return c}var jc=Ic;function Mc(){return[]}var Bc=Mc,Uc=jc,Vc=Bc,Hc=Object.prototype,zc=Hc.propertyIsEnumerable,Ur=Object.getOwnPropertySymbols,Kc=Ur?function(e){return e==null?[]:(e=Object(e),Uc(Ur(e),function(n){return zc.call(e,n)}))}:Vc,Gc=Kc,Wc=Cc,Zc=Gc,Yc=vr;function Xc(e){return Wc(e,Yc,Zc)}var Qc=Xc,Vr=Qc,Jc=1,eh=Object.prototype,th=eh.hasOwnProperty;function rh(e,n,t,r,i,c){var y=t&Jc,O=Vr(e),g=O.length,_=Vr(n),p=_.length;if(g!=p&&!y)return!1;for(var l=g;l--;){var o=O[l];if(!(y?o in n:th.call(n,o)))return!1}var a=c.get(e),v=c.get(n);if(a&&v)return a==n&&v==e;var h=!0;c.set(e,n),c.set(n,e);for(var d=y;++l<g;){o=O[l];var f=e[o],u=n[o];if(r)var m=y?r(u,f,o,n,e,c):r(f,u,o,e,n,c);if(!(m===void 0?f===u||i(f,u,t,r,c):m)){h=!1;break}d||(d=o=="constructor")}if(h&&!d){var s=e.constructor,b=n.constructor;s!=b&&"constructor"in e&&"constructor"in n&&!(typeof s=="function"&&s instanceof s&&typeof b=="function"&&b instanceof b)&&(h=!1)}return c.delete(e),c.delete(n),h}var nh=rh,ih=Ue,oh=Le,ah=ih(oh,"DataView"),lh=ah,sh=Ue,uh=Le,fh=sh(uh,"Promise"),ch=fh,hh=Ue,dh=Le,ph=hh(dh,"Set"),vh=ph,yh=Ue,gh=Le,mh=yh(gh,"WeakMap"),bh=mh,Jt=lh,er=cr,tr=ch,rr=vh,nr=bh,Hn=it,Je=Sn,Hr="[object Map]",_h="[object Object]",zr="[object Promise]",Kr="[object Set]",Gr="[object WeakMap]",Wr="[object DataView]",Oh=Je(Jt),Eh=Je(er),wh=Je(tr),xh=Je(rr),Ah=Je(nr),je=Hn;(Jt&&je(new Jt(new ArrayBuffer(1)))!=Wr||er&&je(new er)!=Hr||tr&&je(tr.resolve())!=zr||rr&&je(new rr)!=Kr||nr&&je(new nr)!=Gr)&&(je=function(e){var n=Hn(e),t=n==_h?e.constructor:void 0,r=t?Je(t):"";if(r)switch(r){case Oh:return Wr;case Eh:return Hr;case wh:return zr;case xh:return Kr;case Ah:return Gr}return n});var kh=je,jt=Un,Th=Vn,Sh=Pc,qh=nh,Zr=kh,Yr=Ce,Xr=gt.exports,Nh=Mn,Ph=1,Qr="[object Arguments]",Jr="[object Array]",ft="[object Object]",Fh=Object.prototype,en=Fh.hasOwnProperty;function Lh(e,n,t,r,i,c){var y=Yr(e),O=Yr(n),g=y?Jr:Zr(e),_=O?Jr:Zr(n);g=g==Qr?ft:g,_=_==Qr?ft:_;var p=g==ft,l=_==ft,o=g==_;if(o&&Xr(e)){if(!Xr(n))return!1;y=!0,p=!1}if(o&&!p)return c||(c=new jt),y||Nh(e)?Th(e,n,t,r,i,c):Sh(e,n,g,t,r,i,c);if(!(t&Ph)){var a=p&&en.call(e,"__wrapped__"),v=l&&en.call(n,"__wrapped__");if(a||v){var h=a?e.value():e,d=v?n.value():n;return c||(c=new jt),i(h,d,t,r,c)}}return o?(c||(c=new jt),qh(e,n,t,r,i,c)):!1}var Rh=Lh,Dh=Rh,tn=ot;function zn(e,n,t,r,i){return e===n?!0:e==null||n==null||!tn(e)&&!tn(n)?e!==e&&n!==n:Dh(e,n,t,r,zn,i)}var yr=zn,$h=Un,Ch=yr,Ih=1,jh=2;function Mh(e,n,t,r){var i=t.length,c=i,y=!r;if(e==null)return!c;for(e=Object(e);i--;){var O=t[i];if(y&&O[2]?O[1]!==e[O[0]]:!(O[0]in e))return!1}for(;++i<c;){O=t[i];var g=O[0],_=e[g],p=O[1];if(y&&O[2]){if(_===void 0&&!(g in e))return!1}else{var l=new $h;if(r)var o=r(_,p,g,e,n,l);if(!(o===void 0?Ch(p,_,Ih|jh,r,l):o))return!1}}return!0}var Bh=Mh,Uh=fr;function Vh(e){return e===e&&!Uh(e)}var Kn=Vh,Hh=Kn,zh=vr;function Kh(e){for(var n=zh(e),t=n.length;t--;){var r=n[t],i=e[r];n[t]=[r,i,Hh(i)]}return n}var Gh=Kh;function Wh(e,n){return function(t){return t==null?!1:t[e]===n&&(n!==void 0||e in Object(t))}}var Gn=Wh,Zh=Bh,Yh=Gh,Xh=Gn;function Qh(e){var n=Yh(e);return n.length==1&&n[0][2]?Xh(n[0][0],n[0][1]):function(t){return t===e||Zh(t,e,n)}}var Jh=Qh,ed=Fn,td=Ft;function rd(e,n){n=ed(n,e);for(var t=0,r=n.length;e!=null&&t<r;)e=e[td(n[t++])];return t&&t==r?e:void 0}var Wn=rd,nd=Wn;function id(e,n,t){var r=e==null?void 0:nd(e,n);return r===void 0?t:r}var od=id;function ad(e,n){return e!=null&&n in Object(e)}var ld=ad,sd=ld,ud=$n;function fd(e,n){return e!=null&&ud(e,n,sd)}var cd=fd,hd=yr,dd=od,pd=cd,vd=ur,yd=Kn,gd=Gn,md=Ft,bd=1,_d=2;function Od(e,n){return vd(e)&&yd(n)?gd(md(e),n):function(t){var r=dd(t,e);return r===void 0&&r===n?pd(t,e):hd(n,r,bd|_d)}}var Ed=Od;function wd(e){return e}var xd=wd;function Ad(e){return function(n){return n==null?void 0:n[e]}}var kd=Ad,Td=Wn;function Sd(e){return function(n){return Td(n,e)}}var qd=Sd,Nd=kd,Pd=qd,Fd=ur,Ld=Ft;function Rd(e){return Fd(e)?Nd(Ld(e)):Pd(e)}var Dd=Rd,$d=Jh,Cd=Ed,Id=xd,jd=Ce,Md=Dd;function Bd(e){return typeof e=="function"?e:e==null?Id:typeof e=="object"?jd(e)?Cd(e[0],e[1]):$d(e):Md(e)}var Zn=Bd,Ud=jn,Vd=Bn,Hd=Zn;function zd(e,n){var t={};return n=Hd(n),Vd(e,function(r,i,c){Ud(t,i,n(r,i,c))}),t}var Yn=zd;function Ve(e){this._maxSize=e,this.clear()}Ve.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Ve.prototype.get=function(e){return this._values[e]};Ve.prototype.set=function(e,n){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=n};var Kd=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Xn=/^\d+$/,Gd=/^\d/,Wd=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Zd=/^\s*(['"]?)(.*?)(\1)\s*$/,gr=512,rn=new Ve(gr),nn=new Ve(gr),on=new Ve(gr),Lt={Cache:Ve,split:ir,normalizePath:Mt,setter:function(e){var n=Mt(e);return nn.get(e)||nn.set(e,function(r,i){for(var c=0,y=n.length,O=r;c<y-1;){var g=n[c];if(g==="__proto__"||g==="constructor"||g==="prototype")return r;O=O[n[c++]]}O[n[c]]=i})},getter:function(e,n){var t=Mt(e);return on.get(e)||on.set(e,function(i){for(var c=0,y=t.length;c<y;)if(i!=null||!n)i=i[t[c++]];else return;return i})},join:function(e){return e.reduce(function(n,t){return n+(mr(t)||Xn.test(t)?"["+t+"]":(n?".":"")+t)},"")},forEach:function(e,n,t){Yd(Array.isArray(e)?e:ir(e),n,t)}};function Mt(e){return rn.get(e)||rn.set(e,ir(e).map(function(n){return n.replace(Zd,"$2")}))}function ir(e){return e.match(Kd)||[""]}function Yd(e,n,t){var r=e.length,i,c,y,O;for(c=0;c<r;c++)i=e[c],i&&(Jd(i)&&(i='"'+i+'"'),O=mr(i),y=!O&&/^\d+$/.test(i),n.call(t,i,O,y,c,e))}function mr(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Xd(e){return e.match(Gd)&&!e.match(Xn)}function Qd(e){return Wd.test(e)}function Jd(e){return!mr(e)&&(Xd(e)||Qd(e))}const ct={context:"$",value:"."};class $e{constructor(n,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof n!="string")throw new TypeError("ref must be a string, got: "+n);if(this.key=n.trim(),n==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ct.context,this.isValue=this.key[0]===ct.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ct.context:this.isValue?ct.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Lt.getter(this.path,!0),this.map=t.map}getValue(n,t,r){let i=this.isContext?r:this.isValue?n:t;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(n,t){return this.getValue(n,t==null?void 0:t.parent,t==null?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(n){return n&&n.__isYupRef}}$e.prototype.__isYupRef=!0;function bt(){return bt=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},bt.apply(this,arguments)}function ep(e,n){if(e==null)return{};var t={},r=Object.keys(e),i,c;for(c=0;c<r.length;c++)i=r[c],!(n.indexOf(i)>=0)&&(t[i]=e[i]);return t}function ht(e){function n(t,r){let{value:i,path:c="",label:y,options:O,originalValue:g,sync:_}=t,p=ep(t,["value","path","label","options","originalValue","sync"]);const{name:l,test:o,params:a,message:v}=e;let{parent:h,context:d}=O;function f(S){return $e.isRef(S)?S.getValue(i,h,d):S}function u(S={}){const A=Yn(bt({value:i,originalValue:g,label:y,path:S.path||c},a,S.params),f),k=new we(we.formatError(S.message||v,A),i,A.path,S.type||l);return k.params=A,k}let m=bt({path:c,parent:h,type:l,createError:u,resolve:f,options:O,originalValue:g},p);if(!_){try{Promise.resolve(o.call(m,i,m)).then(S=>{we.isError(S)?r(S):S?r(null,S):r(u())}).catch(r)}catch(S){r(S)}return}let s;try{var b;if(s=o.call(m,i,m),typeof((b=s)==null?void 0:b.then)=="function")throw new Error(`Validation test of type: "${m.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(S){r(S);return}we.isError(s)?r(s):s?r(null,s):r(u())}return n.OPTIONS=e,n}let tp=e=>e.substr(0,e.length-1).substr(1);function rp(e,n,t,r=t){let i,c,y;return n?(Lt.forEach(n,(O,g,_)=>{let p=g?tp(O):O;if(e=e.resolve({context:r,parent:i,value:t}),e.innerType){let l=_?parseInt(p,10):0;if(t&&l>=t.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${O}, in the path: ${n}. because there is no value at that index. `);i=t,t=t&&t[l],e=e.innerType}if(!_){if(!e.fields||!e.fields[p])throw new Error(`The schema does not contain the path: ${n}. (failed at: ${y} which is a type: "${e._type}")`);i=t,t=t&&t[p],e=e.fields[p]}c=p,y=g?"["+O+"]":"."+O}),{schema:e,parent:i,parentPath:c}):{parent:i,parentPath:n,schema:e}}class _t{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const n=[];for(const t of this.list)n.push(t);for(const[,t]of this.refs)n.push(t.describe());return n}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(n){return this.toArray().reduce((t,r)=>t.concat($e.isRef(r)?n(r):r),[])}add(n){$e.isRef(n)?this.refs.set(n.key,n):this.list.add(n)}delete(n){$e.isRef(n)?this.refs.delete(n.key):this.list.delete(n)}clone(){const n=new _t;return n.list=new Set(this.list),n.refs=new Map(this.refs),n}merge(n,t){const r=this.clone();return n.list.forEach(i=>r.add(i)),n.refs.forEach(i=>r.add(i)),t.list.forEach(i=>r.delete(i)),t.refs.forEach(i=>r.delete(i)),r}}function xe(){return xe=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xe.apply(this,arguments)}class _e{constructor(n){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new _t,this._blacklist=new _t,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ie.notType)}),this.type=(n==null?void 0:n.type)||"mixed",this.spec=xe({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},n==null?void 0:n.spec)}get _type(){return this.type}_typeCheck(n){return!0}clone(n){if(this._mutate)return n&&Object.assign(this.spec,n),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=xe({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Gt(xe({},this.spec,n)),t}label(n){let t=this.clone();return t.spec.label=n,t}meta(...n){if(n.length===0)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},n[0]),t}withMutation(n){let t=this._mutate;this._mutate=!0;let r=n(this);return this._mutate=t,r}concat(n){if(!n||n===this)return this;if(n.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${n.type}`);let t=this,r=n.clone();const i=xe({},t.spec,r.spec);return r.spec=i,r._typeError||(r._typeError=t._typeError),r._whitelistError||(r._whitelistError=t._whitelistError),r._blacklistError||(r._blacklistError=t._blacklistError),r._whitelist=t._whitelist.merge(n._whitelist,n._blacklist),r._blacklist=t._blacklist.merge(n._blacklist,n._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation(c=>{n.tests.forEach(y=>{c.test(y.OPTIONS)})}),r.transforms=[...t.transforms,...r.transforms],r}isType(n){return this.spec.nullable&&n===null?!0:this._typeCheck(n)}resolve(n){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce((i,c)=>c.resolve(i,n),t),t=t.resolve(n)}return t}cast(n,t={}){let r=this.resolve(xe({value:n},t)),i=r._cast(n,t);if(n!==void 0&&t.assert!==!1&&r.isType(i)!==!0){let c=nt(n),y=nt(i);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}".
attempted value: ${c}
`+(y!==c?`result of cast: ${y}`:""))}return i}_cast(n,t){let r=n===void 0?n:this.transforms.reduce((i,c)=>c.call(this,i,n,this),n);return r===void 0&&(r=this.getDefault()),r}_validate(n,t={},r){let{sync:i,path:c,from:y=[],originalValue:O=n,strict:g=this.spec.strict,abortEarly:_=this.spec.abortEarly}=t,p=n;g||(p=this._cast(p,xe({assert:!1},t)));let l={value:p,path:c,options:t,originalValue:O,schema:this,label:this.spec.label,sync:i,from:y},o=[];this._typeError&&o.push(this._typeError);let a=[];this._whitelistError&&a.push(this._whitelistError),this._blacklistError&&a.push(this._blacklistError),Xt({args:l,value:p,path:c,sync:i,tests:o,endEarly:_},v=>{if(v)return void r(v,p);Xt({tests:this.tests.concat(a),args:l,path:c,sync:i,value:p,endEarly:_},r)})}validate(n,t,r){let i=this.resolve(xe({},t,{value:n}));return typeof r=="function"?i._validate(n,t,r):new Promise((c,y)=>i._validate(n,t,(O,g)=>{O?y(O):c(g)}))}validateSync(n,t){let r=this.resolve(xe({},t,{value:n})),i;return r._validate(n,xe({},t,{sync:!0}),(c,y)=>{if(c)throw c;i=y}),i}isValid(n,t){return this.validate(n,t).then(()=>!0,r=>{if(we.isError(r))return!1;throw r})}isValidSync(n,t){try{return this.validateSync(n,t),!0}catch(r){if(we.isError(r))return!1;throw r}}_getDefault(){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this):Gt(n)}getDefault(n){return this.resolve(n||{})._getDefault()}default(n){return arguments.length===0?this._getDefault():this.clone({default:n})}strict(n=!0){let t=this.clone();return t.spec.strict=n,t}_isPresent(n){return n!=null}defined(n=Ie.defined){return this.test({message:n,name:"defined",exclusive:!0,test(t){return t!==void 0}})}required(n=Ie.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:n,name:"required",exclusive:!0,test(r){return this.schema._isPresent(r)}}))}notRequired(){let n=this.clone({presence:"optional"});return n.tests=n.tests.filter(t=>t.OPTIONS.name!=="required"),n}nullable(n=!0){return this.clone({nullable:n!==!1})}transform(n){let t=this.clone();return t.transforms.push(n),t}test(...n){let t;if(n.length===1?typeof n[0]=="function"?t={test:n[0]}:t=n[0]:n.length===2?t={name:n[0],test:n[1]}:t={name:n[0],message:n[1],test:n[2]},t.message===void 0&&(t.message=Ie.default),typeof t.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ht(t),c=t.exclusive||t.name&&r.exclusiveTests[t.name]===!0;if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter(y=>!(y.OPTIONS.name===t.name&&(c||y.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(n,t){!Array.isArray(n)&&typeof n!="string"&&(t=n,n=".");let r=this.clone(),i=In(n).map(c=>new $e(c));return i.forEach(c=>{c.isSibling&&r.deps.push(c.key)}),r.conditions.push(new Us(i,t)),r}typeError(n){let t=this.clone();return t._typeError=ht({message:n,name:"typeError",test(r){return r!==void 0&&!this.schema.isType(r)?this.createError({params:{type:this.schema._type}}):!0}}),t}oneOf(n,t=Ie.oneOf){let r=this.clone();return n.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r._whitelistError=ht({message:t,name:"oneOf",test(i){if(i===void 0)return!0;let c=this.schema._whitelist,y=c.resolveAll(this.resolve);return y.includes(i)?!0:this.createError({params:{values:c.toArray().join(", "),resolved:y}})}}),r}notOneOf(n,t=Ie.notOneOf){let r=this.clone();return n.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r._blacklistError=ht({message:t,name:"notOneOf",test(i){let c=this.schema._blacklist,y=c.resolveAll(this.resolve);return y.includes(i)?this.createError({params:{values:c.toArray().join(", "),resolved:y}}):!0}}),r}strip(n=!0){let t=this.clone();return t.spec.strip=n,t}describe(){const n=this.clone(),{label:t,meta:r}=n.spec;return{meta:r,label:t,type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,y,O)=>O.findIndex(g=>g.name===c.name)===y)}}}_e.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])_e.prototype[`${e}At`]=function(n,t,r={}){const{parent:i,parentPath:c,schema:y}=rp(this,n,t,r.context);return y[e](i&&i[c],xe({},r,{parent:i,path:n}))};for(const e of["equals","is"])_e.prototype[e]=_e.prototype.oneOf;for(const e of["not","nope"])_e.prototype[e]=_e.prototype.notOneOf;_e.prototype.optional=_e.prototype.notRequired;const np=_e;np.prototype;const ye=e=>e==null;let ip=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,op=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,ap=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,lp=e=>ye(e)||e===e.trim(),sp={}.toString();function up(){return new Qn}class Qn extends _e{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(n){if(this.isType(n)||Array.isArray(n))return n;const t=n!=null&&n.toString?n.toString():n;return t===sp?n:t})})}_typeCheck(n){return n instanceof String&&(n=n.valueOf()),typeof n=="string"}_isPresent(n){return super._isPresent(n)&&!!n.length}length(n,t=Te.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:n},test(r){return ye(r)||r.length===this.resolve(n)}})}min(n,t=Te.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:n},test(r){return ye(r)||r.length>=this.resolve(n)}})}max(n,t=Te.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:n},test(r){return ye(r)||r.length<=this.resolve(n)}})}matches(n,t){let r=!1,i,c;return t&&(typeof t=="object"?{excludeEmptyString:r=!1,message:i,name:c}=t:i=t),this.test({name:c||"matches",message:i||Te.matches,params:{regex:n},test:y=>ye(y)||y===""&&r||y.search(n)!==-1})}email(n=Te.email){return this.matches(ip,{name:"email",message:n,excludeEmptyString:!0})}url(n=Te.url){return this.matches(op,{name:"url",message:n,excludeEmptyString:!0})}uuid(n=Te.uuid){return this.matches(ap,{name:"uuid",message:n,excludeEmptyString:!1})}ensure(){return this.default("").transform(n=>n===null?"":n)}trim(n=Te.trim){return this.transform(t=>t!=null?t.trim():t).test({message:n,name:"trim",test:lp})}lowercase(n=Te.lowercase){return this.transform(t=>ye(t)?t:t.toLowerCase()).test({message:n,name:"string_case",exclusive:!0,test:t=>ye(t)||t===t.toLowerCase()})}uppercase(n=Te.uppercase){return this.transform(t=>ye(t)?t:t.toUpperCase()).test({message:n,name:"string_case",exclusive:!0,test:t=>ye(t)||t===t.toUpperCase()})}}up.prototype=Qn.prototype;let fp=e=>e!=+e;function cp(){return new Jn}class Jn extends _e{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(n){let t=n;if(typeof t=="string"){if(t=t.replace(/\s/g,""),t==="")return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(n){return n instanceof Number&&(n=n.valueOf()),typeof n=="number"&&!fp(n)}min(n,t=Re.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:n},test(r){return ye(r)||r>=this.resolve(n)}})}max(n,t=Re.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:n},test(r){return ye(r)||r<=this.resolve(n)}})}lessThan(n,t=Re.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:n},test(r){return ye(r)||r<this.resolve(n)}})}moreThan(n,t=Re.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:n},test(r){return ye(r)||r>this.resolve(n)}})}positive(n=Re.positive){return this.moreThan(0,n)}negative(n=Re.negative){return this.lessThan(0,n)}integer(n=Re.integer){return this.test({name:"integer",message:n,test:t=>ye(t)||Number.isInteger(t)})}truncate(){return this.transform(n=>ye(n)?n:n|0)}round(n){var t;let r=["ceil","floor","round","trunc"];if(n=((t=n)==null?void 0:t.toLowerCase())||"round",n==="trunc")return this.truncate();if(r.indexOf(n.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(i=>ye(i)?i:Math[n](i))}}cp.prototype=Jn.prototype;var hp=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function dp(e){var n=[1,4,5,6,7,10,11],t=0,r,i;if(i=hp.exec(e)){for(var c=0,y;y=n[c];++c)i[y]=+i[y]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(t=i[10]*60+i[11],i[9]==="+"&&(t=0-t)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+t,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let ei=new Date(""),pp=e=>Object.prototype.toString.call(e)==="[object Date]";class ti extends _e{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(n){return this.isType(n)?n:(n=dp(n),isNaN(n)?ei:new Date(n))})})}_typeCheck(n){return pp(n)&&!isNaN(n.getTime())}prepareParam(n,t){let r;if($e.isRef(n))r=n;else{let i=this.cast(n);if(!this._typeCheck(i))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(n,t=Wt.min){let r=this.prepareParam(n,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:n},test(i){return ye(i)||i>=this.resolve(r)}})}max(n,t=Wt.max){let r=this.prepareParam(n,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:n},test(i){return ye(i)||i<=this.resolve(r)}})}}ti.INVALID_DATE=ei;ti.prototype;function vp(e,n,t,r){var i=-1,c=e==null?0:e.length;for(r&&c&&(t=e[++i]);++i<c;)t=n(t,e[i],i,e);return t}var yp=vp;function gp(e){return function(n){return e==null?void 0:e[n]}}var mp=gp,bp=mp,_p={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Op=bp(_p),Ep=Op,wp=Ep,xp=at,Ap=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kp="\\u0300-\\u036f",Tp="\\ufe20-\\ufe2f",Sp="\\u20d0-\\u20ff",qp=kp+Tp+Sp,Np="["+qp+"]",Pp=RegExp(Np,"g");function Fp(e){return e=xp(e),e&&e.replace(Ap,wp).replace(Pp,"")}var Lp=Fp,Rp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Dp(e){return e.match(Rp)||[]}var $p=Dp,Cp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ip(e){return Cp.test(e)}var jp=Ip,ri="\\ud800-\\udfff",Mp="\\u0300-\\u036f",Bp="\\ufe20-\\ufe2f",Up="\\u20d0-\\u20ff",Vp=Mp+Bp+Up,ni="\\u2700-\\u27bf",ii="a-z\\xdf-\\xf6\\xf8-\\xff",Hp="\\xac\\xb1\\xd7\\xf7",zp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kp="\\u2000-\\u206f",Gp=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Wp="\\ufe0e\\ufe0f",ai=Hp+zp+Kp+Gp,li="['\u2019]",an="["+ai+"]",Zp="["+Vp+"]",si="\\d+",Yp="["+ni+"]",ui="["+ii+"]",fi="[^"+ri+ai+si+ni+ii+oi+"]",Xp="\\ud83c[\\udffb-\\udfff]",Qp="(?:"+Zp+"|"+Xp+")",Jp="[^"+ri+"]",ci="(?:\\ud83c[\\udde6-\\uddff]){2}",hi="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+oi+"]",ev="\\u200d",ln="(?:"+ui+"|"+fi+")",tv="(?:"+ze+"|"+fi+")",sn="(?:"+li+"(?:d|ll|m|re|s|t|ve))?",un="(?:"+li+"(?:D|LL|M|RE|S|T|VE))?",di=Qp+"?",pi="["+Wp+"]?",rv="(?:"+ev+"(?:"+[Jp,ci,hi].join("|")+")"+pi+di+")*",nv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",iv="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ov=pi+di+rv,av="(?:"+[Yp,ci,hi].join("|")+")"+ov,lv=RegExp([ze+"?"+ui+"+"+sn+"(?="+[an,ze,"$"].join("|")+")",tv+"+"+un+"(?="+[an,ze+ln,"$"].join("|")+")",ze+"?"+ln+"+"+sn,ze+"+"+un,iv,nv,si,av].join("|"),"g");function sv(e){return e.match(lv)||[]}var uv=sv,fv=$p,cv=jp,hv=at,dv=uv;function pv(e,n,t){return e=hv(e),n=t?void 0:n,n===void 0?cv(e)?dv(e):fv(e):e.match(n)||[]}var vv=pv,yv=yp,gv=Lp,mv=vv,bv="['\u2019]",_v=RegExp(bv,"g");function Ov(e){return function(n){return yv(mv(gv(n).replace(_v,"")),e,"")}}var vi=Ov,Ev=vi,wv=Ev(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}),fn=wv;function xv(e,n,t){var r=-1,i=e.length;n<0&&(n=-n>i?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var c=Array(i);++r<i;)c[r]=e[r+n];return c}var Av=xv,kv=Av;function Tv(e,n,t){var r=e.length;return t=t===void 0?r:t,!n&&t>=r?e:kv(e,n,t)}var Sv=Tv,qv="\\ud800-\\udfff",Nv="\\u0300-\\u036f",Pv="\\ufe20-\\ufe2f",Fv="\\u20d0-\\u20ff",Lv=Nv+Pv+Fv,Rv="\\ufe0e\\ufe0f",Dv="\\u200d",$v=RegExp("["+Dv+qv+Lv+Rv+"]");function Cv(e){return $v.test(e)}var yi=Cv;function Iv(e){return e.split("")}var jv=Iv,gi="\\ud800-\\udfff",Mv="\\u0300-\\u036f",Bv="\\ufe20-\\ufe2f",Uv="\\u20d0-\\u20ff",Vv=Mv+Bv+Uv,Hv="\\ufe0e\\ufe0f",zv="["+gi+"]",or="["+Vv+"]",ar="\\ud83c[\\udffb-\\udfff]",Kv="(?:"+or+"|"+ar+")",mi="[^"+gi+"]",bi="(?:\\ud83c[\\udde6-\\uddff]){2}",_i="[\\ud800-\\udbff][\\udc00-\\udfff]",Gv="\\u200d",Oi=Kv+"?",Ei="["+Hv+"]?",Wv="(?:"+Gv+"(?:"+[mi,bi,_i].join("|")+")"+Ei+Oi+")*",Zv=Ei+Oi+Wv,Yv="(?:"+[mi+or+"?",or,bi,_i,zv].join("|")+")",Xv=RegExp(ar+"(?="+ar+")|"+Yv+Zv,"g");function Qv(e){return e.match(Xv)||[]}var Jv=Qv,ey=jv,ty=yi,ry=Jv;function ny(e){return ty(e)?ry(e):ey(e)}var iy=ny,oy=Sv,ay=yi,ly=iy,sy=at;function uy(e){return function(n){n=sy(n);var t=ay(n)?ly(n):void 0,r=t?t[0]:n.charAt(0),i=t?oy(t,1).join(""):n.slice(1);return r[e]()+i}}var fy=uy,cy=fy,hy=cy("toUpperCase"),dy=hy,py=at,vy=dy;function yy(e){return vy(py(e).toLowerCase())}var gy=yy,my=gy,by=vi,_y=by(function(e,n,t){return n=n.toLowerCase(),e+(t?my(n):n)}),Oy=_y,Ey=jn,wy=Bn,xy=Zn;function Ay(e,n){var t={};return n=xy(n),wy(e,function(r,i,c){Ey(t,n(r,i,c),r)}),t}var ky=Ay,br={exports:{}};br.exports=function(e){return wi(Ty(e),e)};br.exports.array=wi;function wi(e,n){var t=e.length,r=new Array(t),i={},c=t,y=Sy(n),O=qy(e);for(n.forEach(function(_){if(!O.has(_[0])||!O.has(_[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});c--;)i[c]||g(e[c],c,new Set);return r;function g(_,p,l){if(l.has(_)){var o;try{o=", node was:"+JSON.stringify(_)}catch{o=""}throw new Error("Cyclic dependency"+o)}if(!O.has(_))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(_));if(!i[p]){i[p]=!0;var a=y.get(_)||new Set;if(a=Array.from(a),p=a.length){l.add(_);do{var v=a[--p];g(v,O.get(v),l)}while(p);l.delete(_)}r[--t]=_}}}function Ty(e){for(var n=new Set,t=0,r=e.length;t<r;t++){var i=e[t];n.add(i[0]),n.add(i[1])}return Array.from(n)}function Sy(e){for(var n=new Map,t=0,r=e.length;t<r;t++){var i=e[t];n.has(i[0])||n.set(i[0],new Set),n.has(i[1])||n.set(i[1],new Set),n.get(i[0]).add(i[1])}return n}function qy(e){for(var n=new Map,t=0,r=e.length;t<r;t++)n.set(e[t],t);return n}function Ny(e,n=[]){let t=[],r=new Set,i=new Set(n.map(([y,O])=>`${y}-${O}`));function c(y,O){let g=Lt.split(y)[0];r.add(g),i.has(`${O}-${g}`)||t.push([O,g])}for(const y in e)if(yt(e,y)){let O=e[y];r.add(y),$e.isRef(O)&&O.isSibling?c(O.path,y):Cn(O)&&"deps"in O&&O.deps.forEach(g=>c(g,y))}return br.exports.array(Array.from(r),t).reverse()}function cn(e,n){let t=1/0;return e.some((r,i)=>{var c;if(((c=n.path)==null?void 0:c.indexOf(r))!==-1)return t=i,!0}),t}function xi(e){return(n,t)=>cn(e,n)-cn(e,t)}function Ke(){return Ke=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ke.apply(this,arguments)}let hn=e=>Object.prototype.toString.call(e)==="[object Object]";function Py(e,n){let t=Object.keys(e.fields);return Object.keys(n).filter(r=>t.indexOf(r)===-1)}const Fy=xi([]);class Ai extends _e{constructor(n){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=Fy,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{r=null}return this.isType(r)?r:null}),n&&this.shape(n)})}_typeCheck(n){return hn(n)||typeof n=="function"}_cast(n,t={}){var r;let i=super._cast(n,t);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let c=this.fields,y=(r=t.stripUnknown)!=null?r:this.spec.noUnknown,O=this._nodes.concat(Object.keys(i).filter(l=>this._nodes.indexOf(l)===-1)),g={},_=Ke({},t,{parent:g,__validating:t.__validating||!1}),p=!1;for(const l of O){let o=c[l],a=yt(i,l);if(o){let v,h=i[l];_.path=(t.path?`${t.path}.`:"")+l,o=o.resolve({value:h,context:t.context,parent:g});let d="spec"in o?o.spec:void 0,f=d==null?void 0:d.strict;if(d!=null&&d.strip){p=p||l in i;continue}v=!t.__validating||!f?o.cast(i[l],_):i[l],v!==void 0&&(g[l]=v)}else a&&!y&&(g[l]=i[l]);g[l]!==i[l]&&(p=!0)}return p?g:i}_validate(n,t={},r){let i=[],{sync:c,from:y=[],originalValue:O=n,abortEarly:g=this.spec.abortEarly,recursive:_=this.spec.recursive}=t;y=[{schema:this,value:O},...y],t.__validating=!0,t.originalValue=O,t.from=y,super._validate(n,t,(p,l)=>{if(p){if(!we.isError(p)||g)return void r(p,l);i.push(p)}if(!_||!hn(l)){r(i[0]||null,l);return}O=O||l;let o=this._nodes.map(a=>(v,h)=>{let d=a.indexOf(".")===-1?(t.path?`${t.path}.`:"")+a:`${t.path||""}["${a}"]`,f=this.fields[a];if(f&&"validate"in f){f.validate(l[a],Ke({},t,{path:d,from:y,strict:!0,parent:l,originalValue:O[a]}),h);return}h(null)});Xt({sync:c,tests:o,value:l,errors:i,endEarly:g,sort:this._sortErrors,path:t.path},r)})}clone(n){const t=super.clone(n);return t.fields=Ke({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(n){let t=super.concat(n),r=t.fields;for(let[i,c]of Object.entries(this.fields)){const y=r[i];y===void 0?r[i]=c:y instanceof _e&&c instanceof _e&&(r[i]=c.concat(y))}return t.withMutation(()=>t.shape(r,this._excludedEdges))}getDefaultFromShape(){let n={};return this._nodes.forEach(t=>{const r=this.fields[t];n[t]="default"in r?r.getDefault():void 0}),n}_getDefault(){if("default"in this.spec)return super._getDefault();if(!!this._nodes.length)return this.getDefaultFromShape()}shape(n,t=[]){let r=this.clone(),i=Object.assign(r.fields,n);return r.fields=i,r._sortErrors=xi(Object.keys(i)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=Ny(i,r._excludedEdges),r}pick(n){const t={};for(const r of n)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation(r=>(r.fields={},r.shape(t)))}omit(n){const t=this.clone(),r=t.fields;t.fields={};for(const i of n)delete r[i];return t.withMutation(()=>t.shape(r))}from(n,t,r){let i=Lt.getter(n,!0);return this.transform(c=>{if(c==null)return c;let y=c;return yt(c,n)&&(y=Ke({},c),r||delete y[n],y[t]=i(c)),y})}noUnknown(n=!0,t=Zt.noUnknown){typeof n=="string"&&(t=n,n=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(i){if(i==null)return!0;const c=Py(this.schema,i);return!n||c.length===0||this.createError({params:{unknown:c.join(", ")}})}});return r.spec.noUnknown=n,r}unknown(n=!0,t=Zt.noUnknown){return this.noUnknown(!n,t)}transformKeys(n){return this.transform(t=>t&&ky(t,(r,i)=>n(i)))}camelCase(){return this.transformKeys(Oy)}snakeCase(){return this.transformKeys(fn)}constantCase(){return this.transformKeys(n=>fn(n).toUpperCase())}describe(){let n=super.describe();return n.fields=Yn(this.fields,t=>t.describe()),n}}function Ly(e){return new Ai(e)}Ly.prototype=Ai.prototype;var lt=e=>e.type==="checkbox",Ge=e=>e instanceof Date,be=e=>e==null;const ki=e=>typeof e=="object";var ve=e=>!be(e)&&!Array.isArray(e)&&ki(e)&&!Ge(e),Ti=e=>ve(e)&&e.target?lt(e.target)?e.target.checked:e.target.value:e,Ry=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Si=(e,n)=>e.has(Ry(n)),Dy=e=>{const n=e.constructor&&e.constructor.prototype;return ve(n)&&n.hasOwnProperty("isPrototypeOf")},_r=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Fe(e){let n;const t=Array.isArray(e);if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set(e);else if(!(_r&&(e instanceof Blob||e instanceof FileList))&&(t||ve(e)))if(n=t?[]:{},!Array.isArray(e)&&!Dy(e))n=e;else for(const r in e)n[r]=Fe(e[r]);else return e;return n}var st=e=>Array.isArray(e)?e.filter(Boolean):[],de=e=>e===void 0,te=(e,n,t)=>{if(!n||!ve(e))return t;const r=st(n.split(/[,[\].]+?/)).reduce((i,c)=>be(i)?i:i[c],e);return de(r)||r===e?de(e[n])?t:e[n]:r};const Ot={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Se={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Pe={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},qi=pe.createContext(null),Rt=()=>pe.useContext(qi),$y=e=>{const{children:n,...t}=e;return pe.createElement(qi.Provider,{value:t},n)};var Ni=(e,n,t,r=!0)=>{const i={defaultValues:n._defaultValues};for(const c in e)Object.defineProperty(i,c,{get:()=>{const y=c;return n._proxyFormState[y]!==Se.all&&(n._proxyFormState[y]=!r||Se.all),t&&(t[y]=!0),e[y]}});return i},Ae=e=>ve(e)&&!Object.keys(e).length,Pi=(e,n,t,r)=>{t(e);const{name:i,...c}=e;return Ae(c)||Object.keys(c).length>=Object.keys(n).length||Object.keys(c).find(y=>n[y]===(!r||Se.all))},dt=e=>Array.isArray(e)?e:[e],Fi=(e,n,t)=>t&&n?e===n:!e||!n||e===n||dt(e).some(r=>r&&(r.startsWith(n)||n.startsWith(r)));function Or(e){const n=pe.useRef(e);n.current=e,pe.useEffect(()=>{const t=!e.disabled&&n.current.subject&&n.current.subject.subscribe({next:n.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}function Cy(e){const n=Rt(),{control:t=n.control,disabled:r,name:i,exact:c}=e||{},[y,O]=pe.useState(t._formState),g=pe.useRef(!0),_=pe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=pe.useRef(i);return p.current=i,Or({disabled:r,next:l=>g.current&&Fi(p.current,l.name,c)&&Pi(l,_.current,t._updateFormState)&&O({...t._formState,...l}),subject:t._subjects.state}),pe.useEffect(()=>{g.current=!0;const l=t._proxyFormState.isDirty&&t._getDirty();return l!==t._formState.isDirty&&t._subjects.state.next({isDirty:l}),_.current.isValid&&t._updateValid(!0),()=>{g.current=!1}},[t]),Ni(y,t,_.current,!1)}var Ne=e=>typeof e=="string",Li=(e,n,t,r,i)=>Ne(e)?(r&&n.watch.add(e),te(t,e,i)):Array.isArray(e)?e.map(c=>(r&&n.watch.add(c),te(t,c))):(r&&(n.watchAll=!0),t);function Iy(e){const n=Rt(),{control:t=n.control,name:r,defaultValue:i,disabled:c,exact:y}=e||{},O=pe.useRef(r);O.current=r,Or({disabled:c,subject:t._subjects.values,next:p=>{Fi(O.current,p.name,y)&&_(Fe(Li(O.current,t._names,p.values||t._formValues,!1,i)))}});const[g,_]=pe.useState(t._getWatch(r,i));return pe.useEffect(()=>t._removeUnmounted()),g}var Er=e=>/^\w*$/.test(e),Ri=e=>st(e.replace(/["|']|\]/g,"").split(/\.|\[/));function ue(e,n,t){let r=-1;const i=Er(n)?[n]:Ri(n),c=i.length,y=c-1;for(;++r<c;){const O=i[r];let g=t;if(r!==y){const _=e[O];g=ve(_)||Array.isArray(_)?_:isNaN(+i[r+1])?{}:[]}e[O]=g,e=e[O]}return e}function jy(e){const n=Rt(),{name:t,control:r=n.control,shouldUnregister:i}=e,c=Si(r._names.array,t),y=Iy({control:r,name:t,defaultValue:te(r._formValues,t,te(r._defaultValues,t,e.defaultValue)),exact:!0}),O=Cy({control:r,name:t}),g=pe.useRef(r.register(t,{...e.rules,value:y}));return pe.useEffect(()=>{const _=r._options.shouldUnregister||i,p=(l,o)=>{const a=te(r._fields,l);a&&(a._f.mount=o)};if(p(t,!0),_){const l=Fe(te(r._options.defaultValues,t));ue(r._defaultValues,t,l),de(te(r._formValues,t))&&ue(r._formValues,t,l)}return()=>{(c?_&&!r._state.action:_)?r.unregister(t):p(t,!1)}},[t,r,c,i]),{field:{name:t,value:y,onChange:pe.useCallback(_=>g.current.onChange({target:{value:Ti(_),name:t},type:Ot.CHANGE}),[t]),onBlur:pe.useCallback(()=>g.current.onBlur({target:{value:te(r._formValues,t),name:t},type:Ot.BLUR}),[t,r]),ref:_=>{const p=te(r._fields,t);p&&_&&(p._f.ref={focus:()=>_.focus(),select:()=>_.select(),setCustomValidity:l=>_.setCustomValidity(l),reportValidity:()=>_.reportValidity()})}},formState:O,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!te(O.errors,t)},isDirty:{enumerable:!0,get:()=>!!te(O.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!te(O.touchedFields,t)},error:{enumerable:!0,get:()=>te(O.errors,t)}})}}const My=e=>e.render(jy(e));var Di=(e,n,t,r,i)=>n?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:i||!0}}:{};const lr=(e,n,t)=>{for(const r of t||Object.keys(e)){const i=te(e,r);if(i){const{_f:c,...y}=i;if(c&&n(c.name)){if(c.ref.focus){c.ref.focus();break}else if(c.refs&&c.refs[0].focus){c.refs[0].focus();break}}else ve(y)&&lr(y,n)}}};var dn=e=>({isOnSubmit:!e||e===Se.onSubmit,isOnBlur:e===Se.onBlur,isOnChange:e===Se.onChange,isOnAll:e===Se.all,isOnTouch:e===Se.onTouched}),pn=(e,n,t)=>!t&&(n.watchAll||n.watch.has(e)||[...n.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),By=(e,n,t)=>{const r=st(te(e,t));return ue(r,"root",n[t]),ue(e,t,r),e},We=e=>typeof e=="boolean",wr=e=>e.type==="file",De=e=>typeof e=="function",Et=e=>{if(!_r)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},pt=e=>Ne(e),xr=e=>e.type==="radio",wt=e=>e instanceof RegExp;const vn={value:!1,isValid:!1},yn={value:!0,isValid:!0};var $i=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!de(e[0].attributes.value)?de(e[0].value)||e[0].value===""?yn:{value:e[0].value,isValid:!0}:yn:vn}return vn};const gn={isValid:!1,value:null};var Ci=e=>Array.isArray(e)?e.reduce((n,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:n,gn):gn;function mn(e,n,t="validate"){if(pt(e)||Array.isArray(e)&&e.every(pt)||We(e)&&!e)return{type:t,message:pt(e)?e:"",ref:n}}var He=e=>ve(e)&&!wt(e)?e:{value:e,message:""},bn=async(e,n,t,r,i)=>{const{ref:c,refs:y,required:O,maxLength:g,minLength:_,min:p,max:l,pattern:o,validate:a,name:v,valueAsNumber:h,mount:d,disabled:f}=e._f,u=te(n,v);if(!d||f)return{};const m=y?y[0]:c,s=w=>{r&&m.reportValidity&&(m.setCustomValidity(We(w)?"":w||""),m.reportValidity())},b={},S=xr(c),A=lt(c),k=S||A,N=(h||wr(c))&&de(c.value)&&de(u)||Et(c)&&c.value===""||u===""||Array.isArray(u)&&!u.length,x=Di.bind(null,v,t,b),E=(w,T,P,R=Pe.maxLength,U=Pe.minLength)=>{const V=w?T:P;b[v]={type:w?R:U,message:V,ref:c,...x(w?R:U,V)}};if(i?!Array.isArray(u)||!u.length:O&&(!k&&(N||be(u))||We(u)&&!u||A&&!$i(y).isValid||S&&!Ci(y).isValid)){const{value:w,message:T}=pt(O)?{value:!!O,message:O}:He(O);if(w&&(b[v]={type:Pe.required,message:T,ref:m,...x(Pe.required,T)},!t))return s(T),b}if(!N&&(!be(p)||!be(l))){let w,T;const P=He(l),R=He(p);if(!be(u)&&!isNaN(u)){const U=c.valueAsNumber||u&&+u;be(P.value)||(w=U>P.value),be(R.value)||(T=U<R.value)}else{const U=c.valueAsDate||new Date(u),V=D=>new Date(new Date().toDateString()+" "+D),ee=c.type=="time",j=c.type=="week";Ne(P.value)&&u&&(w=ee?V(u)>V(P.value):j?u>P.value:U>new Date(P.value)),Ne(R.value)&&u&&(T=ee?V(u)<V(R.value):j?u<R.value:U<new Date(R.value))}if((w||T)&&(E(!!w,P.message,R.message,Pe.max,Pe.min),!t))return s(b[v].message),b}if((g||_)&&!N&&(Ne(u)||i&&Array.isArray(u))){const w=He(g),T=He(_),P=!be(w.value)&&u.length>+w.value,R=!be(T.value)&&u.length<+T.value;if((P||R)&&(E(P,w.message,T.message),!t))return s(b[v].message),b}if(o&&!N&&Ne(u)){const{value:w,message:T}=He(o);if(wt(w)&&!u.match(w)&&(b[v]={type:Pe.pattern,message:T,ref:c,...x(Pe.pattern,T)},!t))return s(T),b}if(a){if(De(a)){const w=await a(u,n),T=mn(w,m);if(T&&(b[v]={...T,...x(Pe.validate,T.message)},!t))return s(T.message),b}else if(ve(a)){let w={};for(const T in a){if(!Ae(w)&&!t)break;const P=mn(await a[T](u,n),m,T);P&&(w={...P,...x(T,P.message)},s(P.message),t&&(b[v]=w))}if(!Ae(w)&&(b[v]={ref:m,...w},!t))return b}}return s(!0),b};function Uy(e,n){const t=n.slice(0,-1).length;let r=0;for(;r<t;)e=de(e)?r++:e[n[r++]];return e}function Vy(e){for(const n in e)if(!de(e[n]))return!1;return!0}function ge(e,n){const t=Array.isArray(n)?n:Er(n)?[n]:Ri(n),r=t.length===1?e:Uy(e,t),i=t.length-1,c=t[i];return r&&delete r[c],i!==0&&(ve(r)&&Ae(r)||Array.isArray(r)&&Vy(r))&&ge(e,t.slice(0,-1)),e}function Bt(){let e=[];return{get observers(){return e},next:i=>{for(const c of e)c.next&&c.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(c=>c!==i)}}),unsubscribe:()=>{e=[]}}}var xt=e=>be(e)||!ki(e);function Me(e,n){if(xt(e)||xt(n))return e===n;if(Ge(e)&&Ge(n))return e.getTime()===n.getTime();const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(const i of t){const c=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const y=n[i];if(Ge(c)&&Ge(y)||ve(c)&&ve(y)||Array.isArray(c)&&Array.isArray(y)?!Me(c,y):c!==y)return!1}}return!0}var Ii=e=>e.type==="select-multiple",Hy=e=>xr(e)||lt(e),Ut=e=>Et(e)&&e.isConnected,ji=e=>{for(const n in e)if(De(e[n]))return!0;return!1};function At(e,n={}){const t=Array.isArray(e);if(ve(e)||t)for(const r in e)Array.isArray(e[r])||ve(e[r])&&!ji(e[r])?(n[r]=Array.isArray(e[r])?[]:{},At(e[r],n[r])):be(e[r])||(n[r]=!0);return n}function Mi(e,n,t){const r=Array.isArray(e);if(ve(e)||r)for(const i in e)Array.isArray(e[i])||ve(e[i])&&!ji(e[i])?de(n)||xt(t[i])?t[i]=Array.isArray(e[i])?At(e[i],[]):{...At(e[i])}:Mi(e[i],be(n)?{}:n[i],t[i]):t[i]=!Me(e[i],n[i]);return t}var Vt=(e,n)=>Mi(e,n,At(n)),Bi=(e,{valueAsNumber:n,valueAsDate:t,setValueAs:r})=>de(e)?e:n?e===""?NaN:e&&+e:t&&Ne(e)?new Date(e):r?r(e):e;function Ht(e){const n=e.ref;if(!(e.refs?e.refs.every(t=>t.disabled):n.disabled))return wr(n)?n.files:xr(n)?Ci(e.refs).value:Ii(n)?[...n.selectedOptions].map(({value:t})=>t):lt(n)?$i(e.refs).value:Bi(de(n.value)?e.ref.value:n.value,e)}var zy=(e,n,t,r)=>{const i={};for(const c of e){const y=te(n,c);y&&ue(i,c,y._f)}return{criteriaMode:t,names:[...e],fields:i,shouldUseNativeValidation:r}},tt=e=>de(e)?e:wt(e)?e.source:ve(e)?wt(e.value)?e.value.source:e.value:e,Ky=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _n(e,n,t){const r=te(e,t);if(r||Er(t))return{error:r,name:t};const i=t.split(".");for(;i.length;){const c=i.join("."),y=te(n,c),O=te(e,c);if(y&&!Array.isArray(y)&&t!==c)return{name:t};if(O&&O.type)return{name:c,error:O};i.pop()}return{name:t}}var Gy=(e,n,t,r,i)=>i.isOnAll?!1:!t&&i.isOnTouch?!(n||e):(t?r.isOnBlur:i.isOnBlur)?!e:(t?r.isOnChange:i.isOnChange)?e:!0,Wy=(e,n)=>!st(te(e,n)).length&&ge(e,n);const Zy={mode:Se.onSubmit,reValidateMode:Se.onChange,shouldFocusError:!0};function Yy(e={},n){let t={...Zy,...e},r={submitCount:0,isDirty:!1,isLoading:De(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},c=ve(t.defaultValues)||ve(t.values)?Fe(t.defaultValues||t.values)||{}:{},y=t.shouldUnregister?{}:Fe(c),O={action:!1,mount:!1,watch:!1},g={mount:new Set,unMount:new Set,array:new Set,watch:new Set},_,p=0;const l={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},o={values:Bt(),array:Bt(),state:Bt()},a=e.resetOptions&&e.resetOptions.keepDirtyValues,v=dn(t.mode),h=dn(t.reValidateMode),d=t.criteriaMode===Se.all,f=C=>Z=>{clearTimeout(p),p=setTimeout(C,Z)},u=async C=>{if(l.isValid||C){const Z=t.resolver?Ae((await N()).errors):await E(i,!0);Z!==r.isValid&&o.state.next({isValid:Z})}},m=C=>l.isValidating&&o.state.next({isValidating:C}),s=(C,Z=[],Y,B,M=!0,K=!0)=>{if(B&&Y){if(O.action=!0,K&&Array.isArray(te(i,C))){const X=Y(te(i,C),B.argA,B.argB);M&&ue(i,C,X)}if(K&&Array.isArray(te(r.errors,C))){const X=Y(te(r.errors,C),B.argA,B.argB);M&&ue(r.errors,C,X),Wy(r.errors,C)}if(l.touchedFields&&K&&Array.isArray(te(r.touchedFields,C))){const X=Y(te(r.touchedFields,C),B.argA,B.argB);M&&ue(r.touchedFields,C,X)}l.dirtyFields&&(r.dirtyFields=Vt(c,y)),o.state.next({name:C,isDirty:T(C,Z),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ue(y,C,Z)},b=(C,Z)=>{ue(r.errors,C,Z),o.state.next({errors:r.errors})},S=(C,Z,Y,B)=>{const M=te(i,C);if(M){const K=te(y,C,de(Y)?te(c,C):Y);de(K)||B&&B.defaultChecked||Z?ue(y,C,Z?K:Ht(M._f)):U(C,K),O.mount&&u()}},A=(C,Z,Y,B,M)=>{let K=!1,X=!1;const Q={name:C};if(!Y||B){l.isDirty&&(X=r.isDirty,r.isDirty=Q.isDirty=T(),K=X!==Q.isDirty);const ne=Me(te(c,C),Z);X=te(r.dirtyFields,C),ne?ge(r.dirtyFields,C):ue(r.dirtyFields,C,!0),Q.dirtyFields=r.dirtyFields,K=K||l.dirtyFields&&X!==!ne}if(Y){const ne=te(r.touchedFields,C);ne||(ue(r.touchedFields,C,Y),Q.touchedFields=r.touchedFields,K=K||l.touchedFields&&ne!==Y)}return K&&M&&o.state.next(Q),K?Q:{}},k=(C,Z,Y,B)=>{const M=te(r.errors,C),K=l.isValid&&We(Z)&&r.isValid!==Z;if(e.delayError&&Y?(_=f(()=>b(C,Y)),_(e.delayError)):(clearTimeout(p),_=null,Y?ue(r.errors,C,Y):ge(r.errors,C)),(Y?!Me(M,Y):M)||!Ae(B)||K){const X={...B,...K&&We(Z)?{isValid:Z}:{},errors:r.errors,name:C};r={...r,...X},o.state.next(X)}m(!1)},N=async C=>t.resolver(y,t.context,zy(C||g.mount,i,t.criteriaMode,t.shouldUseNativeValidation)),x=async C=>{const{errors:Z}=await N();if(C)for(const Y of C){const B=te(Z,Y);B?ue(r.errors,Y,B):ge(r.errors,Y)}else r.errors=Z;return Z},E=async(C,Z,Y={valid:!0})=>{for(const B in C){const M=C[B];if(M){const{_f:K,...X}=M;if(K){const Q=g.array.has(K.name),ne=await bn(M,y,d,t.shouldUseNativeValidation&&!Z,Q);if(ne[K.name]&&(Y.valid=!1,Z))break;!Z&&(te(ne,K.name)?Q?By(r.errors,ne,K.name):ue(r.errors,K.name,ne[K.name]):ge(r.errors,K.name))}X&&await E(X,Z,Y)}}return Y.valid},w=()=>{for(const C of g.unMount){const Z=te(i,C);Z&&(Z._f.refs?Z._f.refs.every(Y=>!Ut(Y)):!Ut(Z._f.ref))&&F(C)}g.unMount=new Set},T=(C,Z)=>(C&&Z&&ue(y,C,Z),!Me(q(),c)),P=(C,Z,Y)=>Li(C,g,{...O.mount?y:de(Z)?c:Ne(C)?{[C]:Z}:Z},Y,Z),R=C=>st(te(O.mount?y:c,C,e.shouldUnregister?te(c,C,[]):[])),U=(C,Z,Y={})=>{const B=te(i,C);let M=Z;if(B){const K=B._f;K&&(!K.disabled&&ue(y,C,Bi(Z,K)),M=Et(K.ref)&&be(Z)?"":Z,Ii(K.ref)?[...K.ref.options].forEach(X=>X.selected=M.includes(X.value)):K.refs?lt(K.ref)?K.refs.length>1?K.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(M)?!!M.find(Q=>Q===X.value):M===X.value)):K.refs[0]&&(K.refs[0].checked=!!M):K.refs.forEach(X=>X.checked=X.value===M):wr(K.ref)?K.ref.value="":(K.ref.value=M,K.ref.type||o.values.next({name:C,values:{...y}})))}(Y.shouldDirty||Y.shouldTouch)&&A(C,M,Y.shouldTouch,Y.shouldDirty,!0),Y.shouldValidate&&D(C)},V=(C,Z,Y)=>{for(const B in Z){const M=Z[B],K=`${C}.${B}`,X=te(i,K);(g.array.has(C)||!xt(M)||X&&!X._f)&&!Ge(M)?V(K,M,Y):U(K,M,Y)}},ee=(C,Z,Y={})=>{const B=te(i,C),M=g.array.has(C),K=Fe(Z);ue(y,C,K),M?(o.array.next({name:C,values:{...y}}),(l.isDirty||l.dirtyFields)&&Y.shouldDirty&&o.state.next({name:C,dirtyFields:Vt(c,y),isDirty:T(C,K)})):B&&!B._f&&!be(K)?V(C,K,Y):U(C,K,Y),pn(C,g)&&o.state.next({...r}),o.values.next({name:C,values:{...y}}),!O.mount&&n()},j=async C=>{const Z=C.target;let Y=Z.name,B=!0;const M=te(i,Y),K=()=>Z.type?Ht(M._f):Ti(C);if(M){let X,Q;const ne=K(),oe=C.type===Ot.BLUR||C.type===Ot.FOCUS_OUT,le=!Ky(M._f)&&!t.resolver&&!te(r.errors,Y)&&!M._f.deps||Gy(oe,te(r.touchedFields,Y),r.isSubmitted,h,v),me=pn(Y,g,oe);ue(y,Y,ne),oe?(M._f.onBlur&&M._f.onBlur(C),_&&_(0)):M._f.onChange&&M._f.onChange(C);const Oe=A(Y,ne,oe,!1),fe=!Ae(Oe)||me;if(!oe&&o.values.next({name:Y,type:C.type,values:{...y}}),le)return l.isValid&&u(),fe&&o.state.next({name:Y,...me?{}:Oe});if(!oe&&me&&o.state.next({...r}),m(!0),t.resolver){const{errors:ut}=await N([Y]),he=_n(r.errors,i,Y),ke=_n(ut,i,he.name||Y);X=ke.error,Y=ke.name,Q=Ae(ut)}else X=(await bn(M,y,d,t.shouldUseNativeValidation))[Y],B=isNaN(ne)||ne===te(y,Y,ne),B&&(X?Q=!1:l.isValid&&(Q=await E(i,!0)));B&&(M._f.deps&&D(M._f.deps),k(Y,Q,X,Oe))}},D=async(C,Z={})=>{let Y,B;const M=dt(C);if(m(!0),t.resolver){const K=await x(de(C)?C:M);Y=Ae(K),B=C?!M.some(X=>te(K,X)):Y}else C?(B=(await Promise.all(M.map(async K=>{const X=te(i,K);return await E(X&&X._f?{[K]:X}:X)}))).every(Boolean),!(!B&&!r.isValid)&&u()):B=Y=await E(i);return o.state.next({...!Ne(C)||l.isValid&&Y!==r.isValid?{}:{name:C},...t.resolver||!C?{isValid:Y}:{},errors:r.errors,isValidating:!1}),Z.shouldFocus&&!B&&lr(i,K=>K&&te(r.errors,K),C?M:g.mount),B},q=C=>{const Z={...c,...O.mount?y:{}};return de(C)?Z:Ne(C)?te(Z,C):C.map(Y=>te(Z,Y))},L=(C,Z)=>({invalid:!!te((Z||r).errors,C),isDirty:!!te((Z||r).dirtyFields,C),isTouched:!!te((Z||r).touchedFields,C),error:te((Z||r).errors,C)}),$=C=>{C&&dt(C).forEach(Z=>ge(r.errors,Z)),o.state.next({errors:C?r.errors:{}})},z=(C,Z,Y)=>{const B=(te(i,C,{_f:{}})._f||{}).ref;ue(r.errors,C,{...Z,ref:B}),o.state.next({name:C,errors:r.errors,isValid:!1}),Y&&Y.shouldFocus&&B&&B.focus&&B.focus()},H=(C,Z)=>De(C)?o.values.subscribe({next:Y=>C(P(void 0,Z),Y)}):P(C,Z,!0),F=(C,Z={})=>{for(const Y of C?dt(C):g.mount)g.mount.delete(Y),g.array.delete(Y),Z.keepValue||(ge(i,Y),ge(y,Y)),!Z.keepError&&ge(r.errors,Y),!Z.keepDirty&&ge(r.dirtyFields,Y),!Z.keepTouched&&ge(r.touchedFields,Y),!t.shouldUnregister&&!Z.keepDefaultValue&&ge(c,Y);o.values.next({values:{...y}}),o.state.next({...r,...Z.keepDirty?{isDirty:T()}:{}}),!Z.keepIsValid&&u()},I=(C,Z={})=>{let Y=te(i,C);const B=We(Z.disabled);return ue(i,C,{...Y||{},_f:{...Y&&Y._f?Y._f:{ref:{name:C}},name:C,mount:!0,...Z}}),g.mount.add(C),Y?B&&ue(y,C,Z.disabled?void 0:te(y,C,Ht(Y._f))):S(C,!0,Z.value),{...B?{disabled:Z.disabled}:{},...t.shouldUseNativeValidation?{required:!!Z.required,min:tt(Z.min),max:tt(Z.max),minLength:tt(Z.minLength),maxLength:tt(Z.maxLength),pattern:tt(Z.pattern)}:{},name:C,onChange:j,onBlur:j,ref:M=>{if(M){I(C,Z),Y=te(i,C);const K=de(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,X=Hy(K),Q=Y._f.refs||[];if(X?Q.find(ne=>ne===K):K===Y._f.ref)return;ue(i,C,{_f:{...Y._f,...X?{refs:[...Q.filter(Ut),K,...Array.isArray(te(c,C))?[{}]:[]],ref:{type:K.type,name:C}}:{ref:K}}}),S(C,!1,void 0,K)}else Y=te(i,C,{}),Y._f&&(Y._f.mount=!1),(t.shouldUnregister||Z.shouldUnregister)&&!(Si(g.array,C)&&O.action)&&g.unMount.add(C)}}},G=()=>t.shouldFocusError&&lr(i,C=>C&&te(r.errors,C),g.mount),W=(C,Z)=>async Y=>{Y&&(Y.preventDefault&&Y.preventDefault(),Y.persist&&Y.persist());let B=Fe(y);if(o.state.next({isSubmitting:!0}),t.resolver){const{errors:M,values:K}=await N();r.errors=M,B=K}else await E(i);ge(r.errors,"root"),Ae(r.errors)?(o.state.next({errors:{}}),await C(B,Y)):(Z&&await Z({...r.errors},Y),G(),setTimeout(G)),o.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ae(r.errors),submitCount:r.submitCount+1,errors:r.errors})},J=(C,Z={})=>{te(i,C)&&(de(Z.defaultValue)?ee(C,te(c,C)):(ee(C,Z.defaultValue),ue(c,C,Z.defaultValue)),Z.keepTouched||ge(r.touchedFields,C),Z.keepDirty||(ge(r.dirtyFields,C),r.isDirty=Z.defaultValue?T(C,te(c,C)):T()),Z.keepError||(ge(r.errors,C),l.isValid&&u()),o.state.next({...r}))},re=(C,Z={})=>{const Y=C||c,B=Fe(Y),M=C&&!Ae(C)?B:c;if(Z.keepDefaultValues||(c=Y),!Z.keepValues){if(Z.keepDirtyValues||a)for(const K of g.mount)te(r.dirtyFields,K)?ue(M,K,te(y,K)):ee(K,te(M,K));else{if(_r&&de(C))for(const K of g.mount){const X=te(i,K);if(X&&X._f){const Q=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(Et(Q)){const ne=Q.closest("form");if(ne){ne.reset();break}}}}i={}}y=e.shouldUnregister?Z.keepDefaultValues?Fe(c):{}:B,o.array.next({values:{...M}}),o.values.next({values:{...M}})}g={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!O.mount&&n(),O.mount=!l.isValid||!!Z.keepIsValid,O.watch=!!e.shouldUnregister,o.state.next({submitCount:Z.keepSubmitCount?r.submitCount:0,isDirty:Z.keepDirty?r.isDirty:!!(Z.keepDefaultValues&&!Me(C,c)),isSubmitted:Z.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:Z.keepDirtyValues?r.dirtyFields:Z.keepDefaultValues&&C?Vt(c,C):{},touchedFields:Z.keepTouched?r.touchedFields:{},errors:Z.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},ie=(C,Z)=>re(De(C)?C(y):C,Z),ae=(C,Z={})=>{const Y=te(i,C),B=Y&&Y._f;if(B){const M=B.refs?B.refs[0]:B.ref;M.focus&&(M.focus(),Z.shouldSelect&&M.select())}},se=C=>{r={...r,...C}};return De(t.defaultValues)&&t.defaultValues().then(C=>{ie(C,t.resetOptions),o.state.next({isLoading:!1})}),{control:{register:I,unregister:F,getFieldState:L,_executeSchema:N,_getWatch:P,_getDirty:T,_updateValid:u,_removeUnmounted:w,_updateFieldArray:s,_getFieldArray:R,_reset:re,_updateFormState:se,_subjects:o,_proxyFormState:l,get _fields(){return i},get _formValues(){return y},get _state(){return O},set _state(C){O=C},get _defaultValues(){return c},get _names(){return g},set _names(C){g=C},get _formState(){return r},set _formState(C){r=C},get _options(){return t},set _options(C){t={...t,...C}}},trigger:D,register:I,handleSubmit:W,watch:H,setValue:ee,getValues:q,reset:ie,resetField:J,clearErrors:$,unregister:F,setError:z,setFocus:ae,getFieldState:L}}function fg(e={}){const n=pe.useRef(),[t,r]=pe.useState({isDirty:!1,isValidating:!1,isLoading:De(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:De(e.defaultValues)?void 0:e.defaultValues});n.current||(n.current={...Yy(e,()=>r(c=>({...c}))),formState:t});const i=n.current.control;return i._options=e,Or({subject:i._subjects.state,next:c=>{Pi(c,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),pe.useEffect(()=>{e.values&&!Me(e.values,i._defaultValues)&&i._reset(e.values,i._options.resetOptions)},[e.values,i]),pe.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),n.current.formState=Ni(t,i),n.current}var On=function(e,n,t){if(e&&"reportValidity"in e){var r=te(t,n);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},Ui=function(e,n){var t=function(i){var c=n.fields[i];c&&c.ref&&"reportValidity"in c.ref?On(c.ref,i,e):c.refs&&c.refs.forEach(function(y){return On(y,i,e)})};for(var r in n.fields)t(r)},Xy=function(e,n){n.shouldUseNativeValidation&&Ui(e,n);var t={};for(var r in e){var i=te(n.fields,r);ue(t,r,Object.assign(e[r],{ref:i&&i.ref}))}return t},cg=function(e,n,t){return n===void 0&&(n={}),t===void 0&&(t={}),function(r,i,c){try{return Promise.resolve(function(y,O){try{var g=(n.context,Promise.resolve(e[t.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},n,{context:i}))).then(function(_){return c.shouldUseNativeValidation&&Ui({},c),{values:t.rawValues?r:_,errors:{}}}))}catch(_){return O(_)}return g&&g.then?g.then(void 0,O):g}(0,function(y){if(!y.inner)throw y;return{values:{},errors:Xy((O=y,g=!c.shouldUseNativeValidation&&c.criteriaMode==="all",(O.inner||[]).reduce(function(_,p){if(_[p.path]||(_[p.path]={message:p.message,type:p.type}),g){var l=_[p.path].types,o=l&&l[p.type];_[p.path]=Di(p.path,g,_,p.type,o?[].concat(o,p.message):p.message)}return _},{})),c)};var O,g}))}catch(y){return Promise.reject(y)}}};Be("div")(({theme:e})=>({width:144,height:144,margin:"auto",borderRadius:"50%",padding:e.spacing(1),border:`1px dashed ${e.palette.grey[50032]}`}));Be("div")({zIndex:0,width:"100%",height:"100%",outline:"none",display:"flex",overflow:"hidden",borderRadius:"50%",position:"relative",alignItems:"center",justifyContent:"center","& > *":{width:"100%",height:"100%"},"&:hover":{cursor:"pointer","& .placeholder":{zIndex:9}}});Be("div")(({theme:e})=>({display:"flex",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",color:e.palette.text.secondary,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter}),"&:hover":{opacity:.72}}));Be("div")(({theme:e})=>({outline:"none",padding:e.spacing(5,1),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.neutral,border:`1px dashed ${e.palette.grey[50032]}`,"&:hover":{opacity:.72,cursor:"pointer"}}));Be("div")(({theme:e})=>({outline:"none",overflow:"hidden",position:"relative",padding:e.spacing(5,1),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${e.palette.grey[50032]}`,"&:hover":{opacity:.72,cursor:"pointer"}}));function hg({children:e,onSubmit:n,methods:t,encType:r}){return vt($y,{...t,children:vt("form",{onSubmit:n,encType:r,children:e})})}var Qy=yr;function Jy(e,n){return Qy(e,n)}var eg=Jy,Vi={exports:{}};/*!
* Quill Editor v1.3.7
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/(function(e,n){(function(r,i){e.exports=i()})(typeof self<"u"?self:Ee,function(){return function(t){var r={};function i(c){if(r[c])return r[c].exports;var y=r[c]={i:c,l:!1,exports:{}};return t[c].call(y.exports,y,y.exports,i),y.l=!0,y.exports}return i.m=t,i.c=r,i.d=function(c,y,O){i.o(c,y)||Object.defineProperty(c,y,{configurable:!1,enumerable:!0,get:O})},i.n=function(c){var y=c&&c.__esModule?function(){return c.default}:function(){return c};return i.d(y,"a",y),y},i.o=function(c,y){return Object.prototype.hasOwnProperty.call(c,y)},i.p="",i(i.s=109)}([function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(17),y=i(18),O=i(19),g=i(45),_=i(46),p=i(47),l=i(48),o=i(49),a=i(12),v=i(32),h=i(33),d=i(31),f=i(1),u={Scope:f.Scope,create:f.create,find:f.find,query:f.query,register:f.register,Container:c.default,Format:y.default,Leaf:O.default,Embed:l.default,Scroll:g.default,Block:p.default,Inline:_.default,Text:o.default,Attributor:{Attribute:a.default,Class:v.default,Style:h.default,Store:d.default}};r.default=u},function(t,r,i){var c=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,u){f.__proto__=u}||function(f,u){for(var m in u)u.hasOwnProperty(m)&&(f[m]=u[m])};return function(f,u){d(f,u);function m(){this.constructor=f}f.prototype=u===null?Object.create(u):(m.prototype=u.prototype,new m)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=function(d){c(f,d);function f(u){var m=this;return u="[Parchment] "+u,m=d.call(this,u)||this,m.message=u,m.name=m.constructor.name,m}return f}(Error);r.ParchmentError=y;var O={},g={},_={},p={};r.DATA_KEY="__blot";var l;(function(d){d[d.TYPE=3]="TYPE",d[d.LEVEL=12]="LEVEL",d[d.ATTRIBUTE=13]="ATTRIBUTE",d[d.BLOT=14]="BLOT",d[d.INLINE=7]="INLINE",d[d.BLOCK=11]="BLOCK",d[d.BLOCK_BLOT=10]="BLOCK_BLOT",d[d.INLINE_BLOT=6]="INLINE_BLOT",d[d.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",d[d.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",d[d.ANY=15]="ANY"})(l=r.Scope||(r.Scope={}));function o(d,f){var u=v(d);if(u==null)throw new y("Unable to create "+d+" blot");var m=u,s=d instanceof Node||d.nodeType===Node.TEXT_NODE?d:m.create(f);return new m(s,f)}r.create=o;function a(d,f){return f===void 0&&(f=!1),d==null?null:d[r.DATA_KEY]!=null?d[r.DATA_KEY].blot:f?a(d.parentNode,f):null}r.find=a;function v(d,f){f===void 0&&(f=l.ANY);var u;if(typeof d=="string")u=p[d]||O[d];else if(d instanceof Text||d.nodeType===Node.TEXT_NODE)u=p.text;else if(typeof d=="number")d&l.LEVEL&l.BLOCK?u=p.block:d&l.LEVEL&l.INLINE&&(u=p.inline);else if(d instanceof HTMLElement){var m=(d.getAttribute("class")||"").split(/\s+/);for(var s in m)if(u=g[m[s]],u)break;u=u||_[d.tagName]}return u==null?null:f&l.LEVEL&u.scope&&f&l.TYPE&u.scope?u:null}r.query=v;function h(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];if(d.length>1)return d.map(function(s){return h(s)});var u=d[0];if(typeof u.blotName!="string"&&typeof u.attrName!="string")throw new y("Invalid definition");if(u.blotName==="abstract")throw new y("Cannot register abstract class");if(p[u.blotName||u.attrName]=u,typeof u.keyName=="string")O[u.keyName]=u;else if(u.className!=null&&(g[u.className]=u),u.tagName!=null){Array.isArray(u.tagName)?u.tagName=u.tagName.map(function(s){return s.toUpperCase()}):u.tagName=u.tagName.toUpperCase();var m=Array.isArray(u.tagName)?u.tagName:[u.tagName];m.forEach(function(s){(_[s]==null||u.className==null)&&(_[s]=u)})}return u}r.register=h},function(t,r,i){var c=i(51),y=i(11),O=i(3),g=i(20),_=String.fromCharCode(0),p=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};p.prototype.insert=function(l,o){var a={};return l.length===0?this:(a.insert=l,o!=null&&typeof o=="object"&&Object.keys(o).length>0&&(a.attributes=o),this.push(a))},p.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},p.prototype.retain=function(l,o){if(l<=0)return this;var a={retain:l};return o!=null&&typeof o=="object"&&Object.keys(o).length>0&&(a.attributes=o),this.push(a)},p.prototype.push=function(l){var o=this.ops.length,a=this.ops[o-1];if(l=O(!0,{},l),typeof a=="object"){if(typeof l.delete=="number"&&typeof a.delete=="number")return this.ops[o-1]={delete:a.delete+l.delete},this;if(typeof a.delete=="number"&&l.insert!=null&&(o-=1,a=this.ops[o-1],typeof a!="object"))return this.ops.unshift(l),this;if(y(l.attributes,a.attributes)){if(typeof l.insert=="string"&&typeof a.insert=="string")return this.ops[o-1]={insert:a.insert+l.insert},typeof l.attributes=="object"&&(this.ops[o-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof a.retain=="number")return this.ops[o-1]={retain:a.retain+l.retain},typeof l.attributes=="object"&&(this.ops[o-1].attributes=l.attributes),this}}return o===this.ops.length?this.ops.push(l):this.ops.splice(o,0,l),this},p.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},p.prototype.filter=function(l){return this.ops.filter(l)},p.prototype.forEach=function(l){this.ops.forEach(l)},p.prototype.map=function(l){return this.ops.map(l)},p.prototype.partition=function(l){var o=[],a=[];return this.forEach(function(v){var h=l(v)?o:a;h.push(v)}),[o,a]},p.prototype.reduce=function(l,o){return this.ops.reduce(l,o)},p.prototype.changeLength=function(){return this.reduce(function(l,o){return o.insert?l+g.length(o):o.delete?l-o.delete:l},0)},p.prototype.length=function(){return this.reduce(function(l,o){return l+g.length(o)},0)},p.prototype.slice=function(l,o){l=l||0,typeof o!="number"&&(o=1/0);for(var a=[],v=g.iterator(this.ops),h=0;h<o&&v.hasNext();){var d;h<l?d=v.next(l-h):(d=v.next(o-h),a.push(d)),h+=g.length(d)}return new p(a)},p.prototype.compose=function(l){var o=g.iterator(this.ops),a=g.iterator(l.ops),v=[],h=a.peek();if(h!=null&&typeof h.retain=="number"&&h.attributes==null){for(var d=h.retain;o.peekType()==="insert"&&o.peekLength()<=d;)d-=o.peekLength(),v.push(o.next());h.retain-d>0&&a.next(h.retain-d)}for(var f=new p(v);o.hasNext()||a.hasNext();)if(a.peekType()==="insert")f.push(a.next());else if(o.peekType()==="delete")f.push(o.next());else{var u=Math.min(o.peekLength(),a.peekLength()),m=o.next(u),s=a.next(u);if(typeof s.retain=="number"){var b={};typeof m.retain=="number"?b.retain=u:b.insert=m.insert;var S=g.attributes.compose(m.attributes,s.attributes,typeof m.retain=="number");if(S&&(b.attributes=S),f.push(b),!a.hasNext()&&y(f.ops[f.ops.length-1],b)){var A=new p(o.rest());return f.concat(A).chop()}}else typeof s.delete=="number"&&typeof m.retain=="number"&&f.push(s)}return f.chop()},p.prototype.concat=function(l){var o=new p(this.ops.slice());return l.ops.length>0&&(o.push(l.ops[0]),o.ops=o.ops.concat(l.ops.slice(1))),o},p.prototype.diff=function(l,o){if(this.ops===l.ops)return new p;var a=[this,l].map(function(u){return u.map(function(m){if(m.insert!=null)return typeof m.insert=="string"?m.insert:_;var s=u===l?"on":"with";throw new Error("diff() called "+s+" non-document")}).join("")}),v=new p,h=c(a[0],a[1],o),d=g.iterator(this.ops),f=g.iterator(l.ops);return h.forEach(function(u){for(var m=u[1].length;m>0;){var s=0;switch(u[0]){case c.INSERT:s=Math.min(f.peekLength(),m),v.push(f.next(s));break;case c.DELETE:s=Math.min(m,d.peekLength()),d.next(s),v.delete(s);break;case c.EQUAL:s=Math.min(d.peekLength(),f.peekLength(),m);var b=d.next(s),S=f.next(s);y(b.insert,S.insert)?v.retain(s,g.attributes.diff(b.attributes,S.attributes)):v.push(S).delete(s);break}m-=s}}),v.chop()},p.prototype.eachLine=function(l,o){o=o||`
`;for(var a=g.iterator(this.ops),v=new p,h=0;a.hasNext();){if(a.peekType()!=="insert")return;var d=a.peek(),f=g.length(d)-a.peekLength(),u=typeof d.insert=="string"?d.insert.indexOf(o,f)-f:-1;if(u<0)v.push(a.next());else if(u>0)v.push(a.next(u));else{if(l(v,a.next(1).attributes||{},h)===!1)return;h+=1,v=new p}}v.length()>0&&l(v,{},h)},p.prototype.transform=function(l,o){if(o=!!o,typeof l=="number")return this.transformPosition(l,o);for(var a=g.iterator(this.ops),v=g.iterator(l.ops),h=new p;a.hasNext()||v.hasNext();)if(a.peekType()==="insert"&&(o||v.peekType()!=="insert"))h.retain(g.length(a.next()));else if(v.peekType()==="insert")h.push(v.next());else{var d=Math.min(a.peekLength(),v.peekLength()),f=a.next(d),u=v.next(d);if(f.delete)continue;u.delete?h.push(u):h.retain(d,g.attributes.transform(f.attributes,u.attributes,o))}return h.chop()},p.prototype.transformPosition=function(l,o){o=!!o;for(var a=g.iterator(this.ops),v=0;a.hasNext()&&v<=l;){var h=a.peekLength(),d=a.peekType();if(a.next(),d==="delete"){l-=Math.min(h,l-v);continue}else d==="insert"&&(v<l||!o)&&(l+=h);v+=h}return l},t.exports=p},function(t,r){var i=Object.prototype.hasOwnProperty,c=Object.prototype.toString,y=Object.defineProperty,O=Object.getOwnPropertyDescriptor,g=function(a){return typeof Array.isArray=="function"?Array.isArray(a):c.call(a)==="[object Array]"},_=function(a){if(!a||c.call(a)!=="[object Object]")return!1;var v=i.call(a,"constructor"),h=a.constructor&&a.constructor.prototype&&i.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!v&&!h)return!1;var d;for(d in a);return typeof d>"u"||i.call(a,d)},p=function(a,v){y&&v.name==="__proto__"?y(a,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):a[v.name]=v.newValue},l=function(a,v){if(v==="__proto__")if(i.call(a,v)){if(O)return O(a,v).value}else return;return a[v]};t.exports=function o(){var a,v,h,d,f,u,m=arguments[0],s=1,b=arguments.length,S=!1;for(typeof m=="boolean"&&(S=m,m=arguments[1]||{},s=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});s<b;++s)if(a=arguments[s],a!=null)for(v in a)h=l(m,v),d=l(a,v),m!==d&&(S&&d&&(_(d)||(f=g(d)))?(f?(f=!1,u=h&&g(h)?h:[]):u=h&&_(h)?h:{},p(m,{name:v,newValue:o(S,u,d)})):typeof d<"u"&&p(m,{name:v,newValue:d}));return m}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BlockEmbed=r.bubbleFormats=void 0;var c=function(){function E(w,T){for(var P=0;P<T.length;P++){var R=T[P];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,T,P){return T&&E(w.prototype,T),P&&E(w,P),w}}(),y=function E(w,T,P){w===null&&(w=Function.prototype);var R=Object.getOwnPropertyDescriptor(w,T);if(R===void 0){var U=Object.getPrototypeOf(w);return U===null?void 0:E(U,T,P)}else{if("value"in R)return R.value;var V=R.get;return V===void 0?void 0:V.call(P)}},O=i(3),g=m(O),_=i(2),p=m(_),l=i(0),o=m(l),a=i(16),v=m(a),h=i(6),d=m(h),f=i(7),u=m(f);function m(E){return E&&E.__esModule?E:{default:E}}function s(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}function b(E,w){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:E}function S(E,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);E.prototype=Object.create(w&&w.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(E,w):E.__proto__=w)}var A=1,k=function(E){S(w,E);function w(){return s(this,w),b(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return c(w,[{key:"attach",value:function(){y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"attach",this).call(this),this.attributes=new o.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new p.default().insert(this.value(),(0,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(P,R){var U=o.default.query(P,o.default.Scope.BLOCK_ATTRIBUTE);U!=null&&this.attributes.attribute(U,R)}},{key:"formatAt",value:function(P,R,U,V){this.format(U,V)}},{key:"insertAt",value:function(P,R,U){if(typeof R=="string"&&R.endsWith(`
`)){var V=o.default.create(N.blotName);this.parent.insertBefore(V,P===0?this:this.next),V.insertAt(0,R.slice(0,-1))}else y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,P,R,U)}}]),w}(o.default.Embed);k.scope=o.default.Scope.BLOCK_BLOT;var N=function(E){S(w,E);function w(T){s(this,w);var P=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return P.cache={},P}return c(w,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(o.default.Leaf).reduce(function(P,R){return R.length()===0?P:P.insert(R.value(),x(R))},new p.default).insert(`
`,x(this))),this.cache.delta}},{key:"deleteAt",value:function(P,R){y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,P,R),this.cache={}}},{key:"formatAt",value:function(P,R,U,V){R<=0||(o.default.query(U,o.default.Scope.BLOCK)?P+R===this.length()&&this.format(U,V):y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,P,Math.min(R,this.length()-P-1),U,V),this.cache={})}},{key:"insertAt",value:function(P,R,U){if(U!=null)return y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,P,R,U);if(R.length!==0){var V=R.split(`
`),ee=V.shift();ee.length>0&&(P<this.length()-1||this.children.tail==null?y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(P,this.length()-1),ee):this.children.tail.insertAt(this.children.tail.length(),ee),this.cache={});var j=this;V.reduce(function(D,q){return j=j.split(D,!0),j.insertAt(0,q),q.length},P+ee.length)}}},{key:"insertBefore",value:function(P,R){var U=this.children.head;y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,P,R),U instanceof v.default&&U.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+A),this.cache.length}},{key:"moveChildren",value:function(P,R){y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,P,R),this.cache={}}},{key:"optimize",value:function(P){y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(P===0||P>=this.length()-A)){var U=this.clone();return P===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{var V=y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,P,R);return this.cache={},V}}}]),w}(o.default.Block);N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[d.default,o.default.Embed,u.default];function x(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(w=(0,g.default)(w,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?w:x(E.parent,w)}r.bubbleFormats=x,r.BlockEmbed=k,r.default=N},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.overload=r.expandConfig=void 0;var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},y=function(){function j(D,q){var L=[],$=!0,z=!1,H=void 0;try{for(var F=D[Symbol.iterator](),I;!($=(I=F.next()).done)&&(L.push(I.value),!(q&&L.length===q));$=!0);}catch(G){z=!0,H=G}finally{try{!$&&F.return&&F.return()}finally{if(z)throw H}}return L}return function(D,q){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return j(D,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function j(D,q){for(var L=0;L<q.length;L++){var $=q[L];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(D,$.key,$)}}return function(D,q,L){return q&&j(D.prototype,q),L&&j(D,L),D}}();i(50);var g=i(2),_=x(g),p=i(14),l=x(p),o=i(8),a=x(o),v=i(9),h=x(v),d=i(0),f=x(d),u=i(15),m=x(u),s=i(3),b=x(s),S=i(10),A=x(S),k=i(34),N=x(k);function x(j){return j&&j.__esModule?j:{default:j}}function E(j,D,q){return D in j?Object.defineProperty(j,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):j[D]=q,j}function w(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}var T=(0,A.default)("quill"),P=function(){O(j,null,[{key:"debug",value:function(q){q===!0&&(q="log"),A.default.level(q)}},{key:"find",value:function(q){return q.__quill||f.default.find(q)}},{key:"import",value:function(q){return this.imports[q]==null&&T.error("Cannot import "+q+". Are you sure it was registered?"),this.imports[q]}},{key:"register",value:function(q,L){var $=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof q!="string"){var H=q.attrName||q.blotName;typeof H=="string"?this.register("formats/"+H,q,L):Object.keys(q).forEach(function(F){$.register(F,q[F],L)})}else this.imports[q]!=null&&!z&&T.warn("Overwriting "+q+" with",L),this.imports[q]=L,(q.startsWith("blots/")||q.startsWith("formats/"))&&L.blotName!=="abstract"?f.default.register(L):q.startsWith("modules")&&typeof L.register=="function"&&L.register()}}]);function j(D){var q=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,j),this.options=R(D,L),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",D);this.options.debug&&j.debug(this.options.debug);var $=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 a.default,this.scroll=f.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new m.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(a.default.events.EDITOR_CHANGE,function(H){H===a.default.events.TEXT_CHANGE&&q.root.classList.toggle("ql-blank",q.editor.isBlank())}),this.emitter.on(a.default.events.SCROLL_UPDATE,function(H,F){var I=q.selection.lastRange,G=I&&I.length===0?I.index:void 0;U.call(q,function(){return q.editor.update(null,F,G)},H)});var z=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+$+"<p><br></p></div>");this.setContents(z),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(j,[{key:"addContainer",value:function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof q=="string"){var $=q;q=document.createElement("div"),q.classList.add($)}return this.container.insertBefore(q,L),q}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(q,L,$){var z=this,H=V(q,L,$),F=y(H,4);return q=F[0],L=F[1],$=F[3],U.call(this,function(){return z.editor.deleteText(q,L)},$,q,-1*L)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(q),this.container.classList.toggle("ql-disabled",!q)}},{key:"focus",value:function(){var q=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=q,this.scrollIntoView()}},{key:"format",value:function(q,L){var $=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;return U.call(this,function(){var H=$.getSelection(!0),F=new _.default;if(H==null)return F;if(f.default.query(q,f.default.Scope.BLOCK))F=$.editor.formatLine(H.index,H.length,E({},q,L));else{if(H.length===0)return $.selection.format(q,L),F;F=$.editor.formatText(H.index,H.length,E({},q,L))}return $.setSelection(H,a.default.sources.SILENT),F},z)}},{key:"formatLine",value:function(q,L,$,z,H){var F=this,I=void 0,G=V(q,L,$,z,H),W=y(G,4);return q=W[0],L=W[1],I=W[2],H=W[3],U.call(this,function(){return F.editor.formatLine(q,L,I)},H,q,0)}},{key:"formatText",value:function(q,L,$,z,H){var F=this,I=void 0,G=V(q,L,$,z,H),W=y(G,4);return q=W[0],L=W[1],I=W[2],H=W[3],U.call(this,function(){return F.editor.formatText(q,L,I)},H,q,0)}},{key:"getBounds",value:function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$=void 0;typeof q=="number"?$=this.selection.getBounds(q,L):$=this.selection.getBounds(q.index,q.length);var z=this.container.getBoundingClientRect();return{bottom:$.bottom-z.top,height:$.height,left:$.left-z.left,right:$.right-z.left,top:$.top-z.top,width:$.width}}},{key:"getContents",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-q,$=V(q,L),z=y($,2);return q=z[0],L=z[1],this.editor.getContents(q,L)}},{key:"getFormat",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof q=="number"?this.editor.getFormat(q,L):this.editor.getFormat(q.index,q.length)}},{key:"getIndex",value:function(q){return q.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(q){return this.scroll.leaf(q)}},{key:"getLine",value:function(q){return this.scroll.line(q)}},{key:"getLines",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof q!="number"?this.scroll.lines(q.index,q.length):this.scroll.lines(q,L)}},{key:"getModule",value:function(q){return this.theme.modules[q]}},{key:"getSelection",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return q&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-q,$=V(q,L),z=y($,2);return q=z[0],L=z[1],this.editor.getText(q,L)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(q,L,$){var z=this,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:j.sources.API;return U.call(this,function(){return z.editor.insertEmbed(q,L,$)},H,q)}},{key:"insertText",value:function(q,L,$,z,H){var F=this,I=void 0,G=V(q,0,$,z,H),W=y(G,4);return q=W[0],I=W[2],H=W[3],U.call(this,function(){return F.editor.insertText(q,L,I)},H,q,L.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(q,L,$){this.clipboard.dangerouslyPasteHTML(q,L,$)}},{key:"removeFormat",value:function(q,L,$){var z=this,H=V(q,L,$),F=y(H,4);return q=F[0],L=F[1],$=F[3],U.call(this,function(){return z.editor.removeFormat(q,L)},$,q)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(q){var L=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API;return U.call(this,function(){q=new _.default(q);var z=L.getLength(),H=L.editor.deleteText(0,z),F=L.editor.applyDelta(q),I=F.ops[F.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===`
`&&(L.editor.deleteText(L.getLength()-1,1),F.delete(1));var G=H.compose(F);return G},$)}},{key:"setSelection",value:function(q,L,$){if(q==null)this.selection.setRange(null,L||j.sources.API);else{var z=V(q,L,$),H=y(z,4);q=H[0],L=H[1],$=H[3],this.selection.setRange(new u.Range(q,L),$),$!==a.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API,$=new _.default().insert(q);return this.setContents($,L)}},{key:"update",value:function(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.default.sources.USER,L=this.scroll.update(q);return this.selection.update(q),L}},{key:"updateContents",value:function(q){var L=this,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a.default.sources.API;return U.call(this,function(){return q=new _.default(q),L.editor.applyDelta(q,$)},$,!0)}}]),j}();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=a.default.events,P.sources=a.default.sources,P.version="1.3.7",P.imports={delta:_.default,parchment:f.default,"core/module":h.default,"core/theme":N.default};function R(j,D){if(D=(0,b.default)(!0,{container:j,modules:{clipboard:!0,keyboard:!0,history:!0}},D),!D.theme||D.theme===P.DEFAULTS.theme)D.theme=N.default;else if(D.theme=P.import("themes/"+D.theme),D.theme==null)throw new Error("Invalid theme "+D.theme+". Did you register it?");var q=(0,b.default)(!0,{},D.theme.DEFAULTS);[q,D].forEach(function(z){z.modules=z.modules||{},Object.keys(z.modules).forEach(function(H){z.modules[H]===!0&&(z.modules[H]={})})});var L=Object.keys(q.modules).concat(Object.keys(D.modules)),$=L.reduce(function(z,H){var F=P.import("modules/"+H);return F==null?T.error("Cannot load "+H+" module. Are you sure you registered it?"):z[H]=F.DEFAULTS||{},z},{});return D.modules!=null&&D.modules.toolbar&&D.modules.toolbar.constructor!==Object&&(D.modules.toolbar={container:D.modules.toolbar}),D=(0,b.default)(!0,{},P.DEFAULTS,{modules:$},q,D),["bounds","container","scrollingContainer"].forEach(function(z){typeof D[z]=="string"&&(D[z]=document.querySelector(D[z]))}),D.modules=Object.keys(D.modules).reduce(function(z,H){return D.modules[H]&&(z[H]=D.modules[H]),z},{}),D}function U(j,D,q,L){if(this.options.strict&&!this.isEnabled()&&D===a.default.sources.USER)return new _.default;var $=q==null?null:this.getSelection(),z=this.editor.delta,H=j();if($!=null&&(q===!0&&(q=$.index),L==null?$=ee($,H,D):L!==0&&($=ee($,q,L,D)),this.setSelection($,a.default.sources.SILENT)),H.length()>0){var F,I=[a.default.events.TEXT_CHANGE,H,z,D];if((F=this.emitter).emit.apply(F,[a.default.events.EDITOR_CHANGE].concat(I)),D!==a.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,I)}}return H}function V(j,D,q,L,$){var z={};return typeof j.index=="number"&&typeof j.length=="number"?typeof D!="number"?($=L,L=q,q=D,D=j.length,j=j.index):(D=j.length,j=j.index):typeof D!="number"&&($=L,L=q,q=D,D=0),(typeof q>"u"?"undefined":c(q))==="object"?(z=q,$=L):typeof q=="string"&&(L!=null?z[q]=L:$=q),$=$||a.default.sources.API,[j,D,z,$]}function ee(j,D,q,L){if(j==null)return null;var $=void 0,z=void 0;if(D instanceof _.default){var H=[j.index,j.index+j.length].map(function(W){return D.transformPosition(W,L!==a.default.sources.USER)}),F=y(H,2);$=F[0],z=F[1]}else{var I=[j.index,j.index+j.length].map(function(W){return W<D||W===D&&L===a.default.sources.USER?W:q>=0?W+q:Math.max(D,W+q)}),G=y(I,2);$=G[0],z=G[1]}return new u.Range($,z-$)}r.expandConfig=R,r.overload=V,r.default=P},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function d(f,u){for(var m=0;m<u.length;m++){var s=u[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,s.key,s)}}return function(f,u,m){return u&&d(f.prototype,u),m&&d(f,m),f}}(),y=function d(f,u,m){f===null&&(f=Function.prototype);var s=Object.getOwnPropertyDescriptor(f,u);if(s===void 0){var b=Object.getPrototypeOf(f);return b===null?void 0:d(b,u,m)}else{if("value"in s)return s.value;var S=s.get;return S===void 0?void 0:S.call(m)}},O=i(7),g=l(O),_=i(0),p=l(_);function l(d){return d&&d.__esModule?d:{default:d}}function o(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function a(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function v(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var h=function(d){v(f,d);function f(){return o(this,f),a(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return c(f,[{key:"formatAt",value:function(m,s,b,S){if(f.compare(this.statics.blotName,b)<0&&p.default.query(b,p.default.Scope.BLOT)){var A=this.isolate(m,s);S&&A.wrap(b,S)}else y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"formatAt",this).call(this,m,s,b,S)}},{key:"optimize",value:function(m){if(y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,m),this.parent instanceof f&&f.compare(this.statics.blotName,this.parent.statics.blotName)>0){var s=this.parent.isolate(this.offset(),this.length());this.moveChildren(s),s.wrap(this)}}}],[{key:"compare",value:function(m,s){var b=f.order.indexOf(m),S=f.order.indexOf(s);return b>=0||S>=0?b-S:m===s?0:m<s?-1:1}}]),f}(p.default.Inline);h.allowedChildren=[h,p.default.Embed,g.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(0),y=O(c);function O(o){return o&&o.__esModule?o:{default:o}}function g(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return g(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(y.default.Text);r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function u(m,s){for(var b=0;b<s.length;b++){var S=s[b];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(m,S.key,S)}}return function(m,s,b){return s&&u(m.prototype,s),b&&u(m,b),m}}(),y=function u(m,s,b){m===null&&(m=Function.prototype);var S=Object.getOwnPropertyDescriptor(m,s);if(S===void 0){var A=Object.getPrototypeOf(m);return A===null?void 0:u(A,s,b)}else{if("value"in S)return S.value;var k=S.get;return k===void 0?void 0:k.call(b)}},O=i(54),g=l(O),_=i(10),p=l(_);function l(u){return u&&u.__esModule?u:{default:u}}function o(u,m){if(!(u instanceof m))throw new TypeError("Cannot call a class as a function")}function a(u,m){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:u}function v(u,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);u.prototype=Object.create(m&&m.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(u,m):u.__proto__=m)}var h=(0,p.default)("quill:events"),d=["selectionchange","mousedown","mouseup","click"];d.forEach(function(u){document.addEventListener(u,function(){for(var m=arguments.length,s=Array(m),b=0;b<m;b++)s[b]=arguments[b];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var A;(A=S.__quill.emitter).handleDOM.apply(A,s)}})})});var f=function(u){v(m,u);function m(){o(this,m);var s=a(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));return s.listeners={},s.on("error",h.error),s}return c(m,[{key:"emit",value:function(){h.log.apply(h,arguments),y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(b){for(var S=arguments.length,A=Array(S>1?S-1:0),k=1;k<S;k++)A[k-1]=arguments[k];(this.listeners[b.type]||[]).forEach(function(N){var x=N.node,E=N.handler;(b.target===x||x.contains(b.target))&&E.apply(void 0,[b].concat(A))})}},{key:"listenDOM",value:function(b,S,A){this.listeners[b]||(this.listeners[b]=[]),this.listeners[b].push({node:S,handler:A})}}]),m}(g.default);f.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"},f.sources={API:"api",SILENT:"silent",USER:"user"},r.default=f},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});function c(O,g){if(!(O instanceof g))throw new TypeError("Cannot call a class as a function")}var y=function O(g){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c(this,O),this.quill=g,this.options=_};y.DEFAULTS={},r.default=y},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=["error","warn","log","info"],y="warn";function O(_){if(c.indexOf(_)<=c.indexOf(y)){for(var p,l=arguments.length,o=Array(l>1?l-1:0),a=1;a<l;a++)o[a-1]=arguments[a];(p=console)[_].apply(p,o)}}function g(_){return c.reduce(function(p,l){return p[l]=O.bind(console,l,_),p},{})}O.level=g.level=function(_){y=_},r.default=g},function(t,r,i){var c=Array.prototype.slice,y=i(52),O=i(53),g=t.exports=function(o,a,v){return v||(v={}),o===a?!0:o instanceof Date&&a instanceof Date?o.getTime()===a.getTime():!o||!a||typeof o!="object"&&typeof a!="object"?v.strict?o===a:o==a:l(o,a,v)};function _(o){return o==null}function p(o){return!(!o||typeof o!="object"||typeof o.length!="number"||typeof o.copy!="function"||typeof o.slice!="function"||o.length>0&&typeof o[0]!="number")}function l(o,a,v){var h,d;if(_(o)||_(a)||o.prototype!==a.prototype)return!1;if(O(o))return O(a)?(o=c.call(o),a=c.call(a),g(o,a,v)):!1;if(p(o)){if(!p(a)||o.length!==a.length)return!1;for(h=0;h<o.length;h++)if(o[h]!==a[h])return!1;return!0}try{var f=y(o),u=y(a)}catch{return!1}if(f.length!=u.length)return!1;for(f.sort(),u.sort(),h=f.length-1;h>=0;h--)if(f[h]!=u[h])return!1;for(h=f.length-1;h>=0;h--)if(d=f[h],!g(o[d],a[d],v))return!1;return typeof o==typeof a}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(1),y=function(){function O(g,_,p){p===void 0&&(p={}),this.attrName=g,this.keyName=_;var l=c.Scope.TYPE&c.Scope.ATTRIBUTE;p.scope!=null?this.scope=p.scope&c.Scope.LEVEL|l:this.scope=c.Scope.ATTRIBUTE,p.whitelist!=null&&(this.whitelist=p.whitelist)}return O.keys=function(g){return[].map.call(g.attributes,function(_){return _.name})},O.prototype.add=function(g,_){return this.canAdd(g,_)?(g.setAttribute(this.keyName,_),!0):!1},O.prototype.canAdd=function(g,_){var p=c.query(g,c.Scope.BLOT&(this.scope|c.Scope.TYPE));return p==null?!1:this.whitelist==null?!0:typeof _=="string"?this.whitelist.indexOf(_.replace(/["']/g,""))>-1:this.whitelist.indexOf(_)>-1},O.prototype.remove=function(g){g.removeAttribute(this.keyName)},O.prototype.value=function(g){var _=g.getAttribute(this.keyName);return this.canAdd(g,_)&&_?_:""},O}();r.default=y},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Code=void 0;var c=function(){function k(N,x){var E=[],w=!0,T=!1,P=void 0;try{for(var R=N[Symbol.iterator](),U;!(w=(U=R.next()).done)&&(E.push(U.value),!(x&&E.length===x));w=!0);}catch(V){T=!0,P=V}finally{try{!w&&R.return&&R.return()}finally{if(T)throw P}}return E}return function(N,x){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return k(N,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function k(N,x){for(var E=0;E<x.length;E++){var w=x[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(N,w.key,w)}}return function(N,x,E){return x&&k(N.prototype,x),E&&k(N,E),N}}(),O=function k(N,x,E){N===null&&(N=Function.prototype);var w=Object.getOwnPropertyDescriptor(N,x);if(w===void 0){var T=Object.getPrototypeOf(N);return T===null?void 0:k(T,x,E)}else{if("value"in w)return w.value;var P=w.get;return P===void 0?void 0:P.call(E)}},g=i(2),_=u(g),p=i(0),l=u(p),o=i(4),a=u(o),v=i(6),h=u(v),d=i(7),f=u(d);function u(k){return k&&k.__esModule?k:{default:k}}function m(k,N){if(!(k instanceof N))throw new TypeError("Cannot call a class as a function")}function s(k,N){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:k}function b(k,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);k.prototype=Object.create(N&&N.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(k,N):k.__proto__=N)}var S=function(k){b(N,k);function N(){return m(this,N),s(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return N}(h.default);S.blotName="code",S.tagName="CODE";var A=function(k){b(N,k);function N(){return m(this,N),s(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return y(N,[{key:"delta",value:function(){var E=this,w=this.domNode.textContent;return w.endsWith(`
`)&&(w=w.slice(0,-1)),w.split(`
`).reduce(function(T,P){return T.insert(P).insert(`
`,E.formats())},new _.default)}},{key:"format",value:function(E,w){if(!(E===this.statics.blotName&&w)){var T=this.descendant(f.default,this.length()-1),P=c(T,1),R=P[0];R!=null&&R.deleteAt(R.length()-1,1),O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,E,w)}}},{key:"formatAt",value:function(E,w,T,P){if(w!==0&&!(l.default.query(T,l.default.Scope.BLOCK)==null||T===this.statics.blotName&&P===this.statics.formats(this.domNode))){var R=this.newlineIndex(E);if(!(R<0||R>=E+w)){var U=this.newlineIndex(E,!0)+1,V=R-U+1,ee=this.isolate(U,V),j=ee.next;ee.format(T,P),j instanceof N&&j.formatAt(0,E-U+w-V,T,P)}}}},{key:"insertAt",value:function(E,w,T){if(T==null){var P=this.descendant(f.default,E),R=c(P,2),U=R[0],V=R[1];U.insertAt(V,w)}}},{key:"length",value:function(){var E=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?E:E+1}},{key:"newlineIndex",value:function(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(w)return this.domNode.textContent.slice(0,E).lastIndexOf(`
`);var T=this.domNode.textContent.slice(E).indexOf(`
`);return T>-1?E+T:-1}},{key:"optimize",value:function(E){this.domNode.textContent.endsWith(`
`)||this.appendChild(l.default.create("text",`
`)),O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,E);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(E),w.moveChildren(this),w.remove())}},{key:"replace",value:function(E){O(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,E),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var T=l.default.find(w);T==null?w.parentNode.removeChild(w):T instanceof l.default.Embed?T.remove():T.unwrap()})}}],[{key:"create",value:function(E){var w=O(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,E);return w.setAttribute("spellcheck",!1),w}},{key:"formats",value:function(){return!0}}]),N}(a.default);A.blotName="code-block",A.tagName="PRE",A.TAB=" ",r.Code=S,r.default=A},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},y=function(){function j(D,q){var L=[],$=!0,z=!1,H=void 0;try{for(var F=D[Symbol.iterator](),I;!($=(I=F.next()).done)&&(L.push(I.value),!(q&&L.length===q));$=!0);}catch(G){z=!0,H=G}finally{try{!$&&F.return&&F.return()}finally{if(z)throw H}}return L}return function(D,q){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return j(D,q);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function j(D,q){for(var L=0;L<q.length;L++){var $=q[L];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(D,$.key,$)}}return function(D,q,L){return q&&j(D.prototype,q),L&&j(D,L),D}}(),g=i(2),_=w(g),p=i(20),l=w(p),o=i(0),a=w(o),v=i(13),h=w(v),d=i(24),f=w(d),u=i(4),m=w(u),s=i(16),b=w(s),S=i(21),A=w(S),k=i(11),N=w(k),x=i(3),E=w(x);function w(j){return j&&j.__esModule?j:{default:j}}function T(j,D,q){return D in j?Object.defineProperty(j,D,{value:q,enumerable:!0,configurable:!0,writable:!0}):j[D]=q,j}function P(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,U=function(){function j(D){P(this,j),this.scroll=D,this.delta=this.getDelta()}return O(j,[{key:"applyDelta",value:function(q){var L=this,$=!1;this.scroll.update();var z=this.scroll.length();return this.scroll.batchStart(),q=ee(q),q.reduce(function(H,F){var I=F.retain||F.delete||F.insert.length||1,G=F.attributes||{};if(F.insert!=null){if(typeof F.insert=="string"){var W=F.insert;W.endsWith(`
`)&&$&&($=!1,W=W.slice(0,-1)),H>=z&&!W.endsWith(`
`)&&($=!0),L.scroll.insertAt(H,W);var J=L.scroll.line(H),re=y(J,2),ie=re[0],ae=re[1],se=(0,E.default)({},(0,u.bubbleFormats)(ie));if(ie instanceof m.default){var C=ie.descendant(a.default.Leaf,ae),Z=y(C,1),Y=Z[0];se=(0,E.default)(se,(0,u.bubbleFormats)(Y))}G=l.default.attributes.diff(se,G)||{}}else if(c(F.insert)==="object"){var B=Object.keys(F.insert)[0];if(B==null)return H;L.scroll.insertAt(H,B,F.insert[B])}z+=I}return Object.keys(G).forEach(function(M){L.scroll.formatAt(H,I,M,G[M])}),H+I},0),q.reduce(function(H,F){return typeof F.delete=="number"?(L.scroll.deleteAt(H,F.delete),H):H+(F.retain||F.insert.length||1)},0),this.scroll.batchEnd(),this.update(q)}},{key:"deleteText",value:function(q,L){return this.scroll.deleteAt(q,L),this.update(new _.default().retain(q).delete(L))}},{key:"formatLine",value:function(q,L){var $=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(z).forEach(function(H){if(!($.scroll.whitelist!=null&&!$.scroll.whitelist[H])){var F=$.scroll.lines(q,Math.max(L,1)),I=L;F.forEach(function(G){var W=G.length();if(!(G instanceof h.default))G.format(H,z[H]);else{var J=q-G.offset($.scroll),re=G.newlineIndex(J+I)-J+1;G.formatAt(J,re,H,z[H])}I-=W})}}),this.scroll.optimize(),this.update(new _.default().retain(q).retain(L,(0,A.default)(z)))}},{key:"formatText",value:function(q,L){var $=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(z).forEach(function(H){$.scroll.formatAt(q,L,H,z[H])}),this.update(new _.default().retain(q).retain(L,(0,A.default)(z)))}},{key:"getContents",value:function(q,L){return this.delta.slice(q,q+L)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(q,L){return q.concat(L.delta())},new _.default)}},{key:"getFormat",value:function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$=[],z=[];L===0?this.scroll.path(q).forEach(function(F){var I=y(F,1),G=I[0];G instanceof m.default?$.push(G):G instanceof a.default.Leaf&&z.push(G)}):($=this.scroll.lines(q,L),z=this.scroll.descendants(a.default.Leaf,q,L));var H=[$,z].map(function(F){if(F.length===0)return{};for(var I=(0,u.bubbleFormats)(F.shift());Object.keys(I).length>0;){var G=F.shift();if(G==null)return I;I=V((0,u.bubbleFormats)(G),I)}return I});return E.default.apply(E.default,H)}},{key:"getText",value:function(q,L){return this.getContents(q,L).filter(function($){return typeof $.insert=="string"}).map(function($){return $.insert}).join("")}},{key:"insertEmbed",value:function(q,L,$){return this.scroll.insertAt(q,L,$),this.update(new _.default().retain(q).insert(T({},L,$)))}},{key:"insertText",value:function(q,L){var $=this,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return L=L.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(q,L),Object.keys(z).forEach(function(H){$.scroll.formatAt(q,L.length,H,z[H])}),this.update(new _.default().retain(q).insert(L,(0,A.default)(z)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var q=this.scroll.children.head;return q.statics.blotName!==m.default.blotName||q.children.length>1?!1:q.children.head instanceof b.default}},{key:"removeFormat",value:function(q,L){var $=this.getText(q,L),z=this.scroll.line(q+L),H=y(z,2),F=H[0],I=H[1],G=0,W=new _.default;F!=null&&(F instanceof h.default?G=F.newlineIndex(I)-I+1:G=F.length()-I,W=F.delta().slice(I,I+G-1).insert(`
`));var J=this.getContents(q,L+G),re=J.diff(new _.default().insert($).concat(W)),ie=new _.default().retain(q).concat(re);return this.applyDelta(ie)}},{key:"update",value:function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,z=this.delta;if(L.length===1&&L[0].type==="characterData"&&L[0].target.data.match(R)&&a.default.find(L[0].target)){var H=a.default.find(L[0].target),F=(0,u.bubbleFormats)(H),I=H.offset(this.scroll),G=L[0].oldValue.replace(f.default.CONTENTS,""),W=new _.default().insert(G),J=new _.default().insert(H.value()),re=new _.default().retain(I).concat(W.diff(J,$));q=re.reduce(function(ie,ae){return ae.insert?ie.insert(ae.insert,F):ie.push(ae)},new _.default),this.delta=z.compose(q)}else this.delta=this.getDelta(),(!q||!(0,N.default)(z.compose(q),this.delta))&&(q=z.diff(this.delta,$));return q}}]),j}();function V(j,D){return Object.keys(D).reduce(function(q,L){return j[L]==null||(D[L]===j[L]?q[L]=D[L]:Array.isArray(D[L])?D[L].indexOf(j[L])<0&&(q[L]=D[L].concat([j[L]])):q[L]=[D[L],j[L]]),q},{})}function ee(j){return j.reduce(function(D,q){if(q.insert===1){var L=(0,A.default)(q.attributes);return delete L.image,D.insert({image:q.attributes.image},L)}if(q.attributes!=null&&(q.attributes.list===!0||q.attributes.bullet===!0)&&(q=(0,A.default)(q),q.attributes.list?q.attributes.list="ordered":(q.attributes.list="bullet",delete q.attributes.bullet)),typeof q.insert=="string"){var $=q.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return D.insert($,q.attributes)}return D.push(q)},new _.default)}r.default=U},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.Range=void 0;var c=function(){function k(N,x){var E=[],w=!0,T=!1,P=void 0;try{for(var R=N[Symbol.iterator](),U;!(w=(U=R.next()).done)&&(E.push(U.value),!(x&&E.length===x));w=!0);}catch(V){T=!0,P=V}finally{try{!w&&R.return&&R.return()}finally{if(T)throw P}}return E}return function(N,x){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return k(N,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function k(N,x){for(var E=0;E<x.length;E++){var w=x[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(N,w.key,w)}}return function(N,x,E){return x&&k(N.prototype,x),E&&k(N,E),N}}(),O=i(0),g=f(O),_=i(21),p=f(_),l=i(11),o=f(l),a=i(8),v=f(a),h=i(10),d=f(h);function f(k){return k&&k.__esModule?k:{default:k}}function u(k){if(Array.isArray(k)){for(var N=0,x=Array(k.length);N<k.length;N++)x[N]=k[N];return x}else return Array.from(k)}function m(k,N){if(!(k instanceof N))throw new TypeError("Cannot call a class as a function")}var s=(0,d.default)("quill:selection"),b=function k(N){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;m(this,k),this.index=N,this.length=x},S=function(){function k(N,x){var E=this;m(this,k),this.emitter=x,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(w,T){w===v.default.events.TEXT_CHANGE&&T.length()>0&&E.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!E.hasFocus()){var w=E.getNativeRange();w!=null&&w.start.node!==E.cursor.textNode&&E.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(w,T){if(T.range){var P=T.range,R=P.startNode,U=P.startOffset,V=P.endNode,ee=P.endOffset;E.setNativeRange(R,U,V,ee)}}),this.update(v.default.sources.SILENT)}return y(k,[{key:"handleComposition",value:function(){var x=this;this.root.addEventListener("compositionstart",function(){x.composing=!0}),this.root.addEventListener("compositionend",function(){if(x.composing=!1,x.cursor.parent){var E=x.cursor.restore();if(!E)return;setTimeout(function(){x.setNativeRange(E.startNode,E.startOffset,E.endNode,E.endOffset)},1)}})}},{key:"handleDragging",value:function(){var x=this;this.emitter.listenDOM("mousedown",document.body,function(){x.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){x.mouseDown=!1,x.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(x,E){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[x])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||g.default.query(x,g.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var T=g.default.find(w.start.node,!1);if(T==null)return;if(T instanceof g.default.Leaf){var P=T.split(w.start.offset);T.parent.insertBefore(this.cursor,P)}else T.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(x,E),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();x=Math.min(x,w-1),E=Math.min(x+E,w-1)-x;var T=void 0,P=this.scroll.leaf(x),R=c(P,2),U=R[0],V=R[1];if(U==null)return null;var ee=U.position(V,!0),j=c(ee,2);T=j[0],V=j[1];var D=document.createRange();if(E>0){D.setStart(T,V);var q=this.scroll.leaf(x+E),L=c(q,2);if(U=L[0],V=L[1],U==null)return null;var $=U.position(V,!0),z=c($,2);return T=z[0],V=z[1],D.setEnd(T,V),D.getBoundingClientRect()}else{var H="left",F=void 0;return T instanceof Text?(V<T.data.length?(D.setStart(T,V),D.setEnd(T,V+1)):(D.setStart(T,V-1),D.setEnd(T,V),H="right"),F=D.getBoundingClientRect()):(F=U.domNode.getBoundingClientRect(),V>0&&(H="right")),{bottom:F.top+F.height,height:F.height,left:F[H],right:F[H],top:F.top,width:0}}}},{key:"getNativeRange",value:function(){var x=document.getSelection();if(x==null||x.rangeCount<=0)return null;var E=x.getRangeAt(0);if(E==null)return null;var w=this.normalizeNative(E);return s.info("getNativeRange",w),w}},{key:"getRange",value:function(){var x=this.getNativeRange();if(x==null)return[null,null];var E=this.normalizedToRange(x);return[E,x]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(x){var E=this,w=[[x.start.node,x.start.offset]];x.native.collapsed||w.push([x.end.node,x.end.offset]);var T=w.map(function(U){var V=c(U,2),ee=V[0],j=V[1],D=g.default.find(ee,!0),q=D.offset(E.scroll);return j===0?q:D instanceof g.default.Container?q+D.length():q+D.index(ee,j)}),P=Math.min(Math.max.apply(Math,u(T)),this.scroll.length()-1),R=Math.min.apply(Math,[P].concat(u(T)));return new b(R,P-R)}},{key:"normalizeNative",value:function(x){if(!A(this.root,x.startContainer)||!x.collapsed&&!A(this.root,x.endContainer))return null;var E={start:{node:x.startContainer,offset:x.startOffset},end:{node:x.endContainer,offset:x.endOffset},native:x};return[E.start,E.end].forEach(function(w){for(var T=w.node,P=w.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>P)T=T.childNodes[P],P=0;else if(T.childNodes.length===P)T=T.lastChild,P=T instanceof Text?T.data.length:T.childNodes.length+1;else break;w.node=T,w.offset=P}),E}},{key:"rangeToNative",value:function(x){var E=this,w=x.collapsed?[x.index]:[x.index,x.index+x.length],T=[],P=this.scroll.length();return w.forEach(function(R,U){R=Math.min(P-1,R);var V=void 0,ee=E.scroll.leaf(R),j=c(ee,2),D=j[0],q=j[1],L=D.position(q,U!==0),$=c(L,2);V=$[0],q=$[1],T.push(V,q)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(x){var E=this.lastRange;if(E!=null){var w=this.getBounds(E.index,E.length);if(w!=null){var T=this.scroll.length()-1,P=this.scroll.line(Math.min(E.index,T)),R=c(P,1),U=R[0],V=U;if(E.length>0){var ee=this.scroll.line(Math.min(E.index+E.length,T)),j=c(ee,1);V=j[0]}if(!(U==null||V==null)){var D=x.getBoundingClientRect();w.top<D.top?x.scrollTop-=D.top-w.top:w.bottom>D.bottom&&(x.scrollTop+=w.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(x,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(s.info("setNativeRange",x,E,w,T),!(x!=null&&(this.root.parentNode==null||x.parentNode==null||w.parentNode==null))){var R=document.getSelection();if(R!=null)if(x!=null){this.hasFocus()||this.root.focus();var U=(this.getNativeRange()||{}).native;if(U==null||P||x!==U.startContainer||E!==U.startOffset||w!==U.endContainer||T!==U.endOffset){x.tagName=="BR"&&(E=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),w.tagName=="BR"&&(T=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var V=document.createRange();V.setStart(x,E),V.setEnd(w,T),R.removeAllRanges(),R.addRange(V)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(x){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof E=="string"&&(w=E,E=!1),s.info("setRange",x),x!=null){var T=this.rangeToNative(x);this.setNativeRange.apply(this,u(T).concat([E]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,E=this.lastRange,w=this.getRange(),T=c(w,2),P=T[0],R=T[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,o.default)(E,this.lastRange)){var U;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var V=[v.default.events.SELECTION_CHANGE,(0,p.default)(this.lastRange),(0,p.default)(E),x];if((U=this.emitter).emit.apply(U,[v.default.events.EDITOR_CHANGE].concat(V)),x!==v.default.sources.SILENT){var ee;(ee=this.emitter).emit.apply(ee,V)}}}}]),k}();function A(k,N){try{N.parentNode}catch{return!1}return N instanceof Text&&(N=N.parentNode),k.contains(N)}r.Range=b,r.default=S},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function v(h,d){for(var f=0;f<d.length;f++){var u=d[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}return function(h,d,f){return d&&v(h.prototype,d),f&&v(h,f),h}}(),y=function v(h,d,f){h===null&&(h=Function.prototype);var u=Object.getOwnPropertyDescriptor(h,d);if(u===void 0){var m=Object.getPrototypeOf(h);return m===null?void 0:v(m,d,f)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(f)}},O=i(0),g=_(O);function _(v){return v&&v.__esModule?v:{default:v}}function p(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function o(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var a=function(v){o(h,v);function h(){return p(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return c(h,[{key:"insertInto",value:function(f,u){f.children.length===0?y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertInto",this).call(this,f,u):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),h}(g.default.Embed);a.blotName="break",a.tagName="BR",r.default=a},function(t,r,i){var c=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var v in a)a.hasOwnProperty(v)&&(o[v]=a[v])};return function(o,a){l(o,a);function v(){this.constructor=o}o.prototype=a===null?Object.create(a):(v.prototype=a.prototype,new v)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(44),O=i(30),g=i(1),_=function(l){c(o,l);function o(a){var v=l.call(this,a)||this;return v.build(),v}return o.prototype.appendChild=function(a){this.insertBefore(a)},o.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(a){a.attach()})},o.prototype.build=function(){var a=this;this.children=new y.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var h=p(v);a.insertBefore(h,a.children.head||void 0)}catch(d){if(d instanceof g.ParchmentError)return;throw d}})},o.prototype.deleteAt=function(a,v){if(a===0&&v===this.length())return this.remove();this.children.forEachAt(a,v,function(h,d,f){h.deleteAt(d,f)})},o.prototype.descendant=function(a,v){var h=this.children.find(v),d=h[0],f=h[1];return a.blotName==null&&a(d)||a.blotName!=null&&d instanceof a?[d,f]:d instanceof o?d.descendant(a,f):[null,-1]},o.prototype.descendants=function(a,v,h){v===void 0&&(v=0),h===void 0&&(h=Number.MAX_VALUE);var d=[],f=h;return this.children.forEachAt(v,h,function(u,m,s){(a.blotName==null&&a(u)||a.blotName!=null&&u instanceof a)&&d.push(u),u instanceof o&&(d=d.concat(u.descendants(a,m,f))),f-=s}),d},o.prototype.detach=function(){this.children.forEach(function(a){a.detach()}),l.prototype.detach.call(this)},o.prototype.formatAt=function(a,v,h,d){this.children.forEachAt(a,v,function(f,u,m){f.formatAt(u,m,h,d)})},o.prototype.insertAt=function(a,v,h){var d=this.children.find(a),f=d[0],u=d[1];if(f)f.insertAt(u,v,h);else{var m=h==null?g.create("text",v):g.create(v,h);this.appendChild(m)}},o.prototype.insertBefore=function(a,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(h){return a instanceof h}))throw new g.ParchmentError("Cannot insert "+a.statics.blotName+" into "+this.statics.blotName);a.insertInto(this,v)},o.prototype.length=function(){return this.children.reduce(function(a,v){return a+v.length()},0)},o.prototype.moveChildren=function(a,v){this.children.forEach(function(h){a.insertBefore(h,v)})},o.prototype.optimize=function(a){if(l.prototype.optimize.call(this,a),this.children.length===0)if(this.statics.defaultChild!=null){var v=g.create(this.statics.defaultChild);this.appendChild(v),v.optimize(a)}else this.remove()},o.prototype.path=function(a,v){v===void 0&&(v=!1);var h=this.children.find(a,v),d=h[0],f=h[1],u=[[this,a]];return d instanceof o?u.concat(d.path(f,v)):(d!=null&&u.push([d,f]),u)},o.prototype.removeChild=function(a){this.children.remove(a)},o.prototype.replace=function(a){a instanceof o&&a.moveChildren(this),l.prototype.replace.call(this,a)},o.prototype.split=function(a,v){if(v===void 0&&(v=!1),!v){if(a===0)return this;if(a===this.length())return this.next}var h=this.clone();return this.parent.insertBefore(h,this.next),this.children.forEachAt(a,this.length(),function(d,f,u){d=d.split(f,v),h.appendChild(d)}),h},o.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},o.prototype.update=function(a,v){var h=this,d=[],f=[];a.forEach(function(u){u.target===h.domNode&&u.type==="childList"&&(d.push.apply(d,u.addedNodes),f.push.apply(f,u.removedNodes))}),f.forEach(function(u){if(!(u.parentNode!=null&&u.tagName!=="IFRAME"&&document.body.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var m=g.find(u);m!=null&&(m.domNode.parentNode==null||m.domNode.parentNode===h.domNode)&&m.detach()}}),d.filter(function(u){return u.parentNode==h.domNode}).sort(function(u,m){return u===m?0:u.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(u){var m=null;u.nextSibling!=null&&(m=g.find(u.nextSibling));var s=p(u);(s.next!=m||s.next==null)&&(s.parent!=null&&s.parent.removeChild(h),h.insertBefore(s,m||void 0))})},o}(O.default);function p(l){var o=g.find(l);if(o==null)try{o=g.create(l)}catch{o=g.create(g.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){o.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(o.domNode,l),o.attach()}return o}r.default=_},function(t,r,i){var c=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var v in a)a.hasOwnProperty(v)&&(o[v]=a[v])};return function(o,a){l(o,a);function v(){this.constructor=o}o.prototype=a===null?Object.create(a):(v.prototype=a.prototype,new v)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(12),O=i(31),g=i(17),_=i(1),p=function(l){c(o,l);function o(a){var v=l.call(this,a)||this;return v.attributes=new O.default(v.domNode),v}return o.formats=function(a){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return a.tagName.toLowerCase()},o.prototype.format=function(a,v){var h=_.query(a);h instanceof y.default?this.attributes.attribute(h,v):v&&h!=null&&(a!==this.statics.blotName||this.formats()[a]!==v)&&this.replaceWith(a,v)},o.prototype.formats=function(){var a=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(a[this.statics.blotName]=v),a},o.prototype.replaceWith=function(a,v){var h=l.prototype.replaceWith.call(this,a,v);return this.attributes.copy(h),h},o.prototype.update=function(a,v){var h=this;l.prototype.update.call(this,a,v),a.some(function(d){return d.target===h.domNode&&d.type==="attributes"})&&this.attributes.build()},o.prototype.wrap=function(a,v){var h=l.prototype.wrap.call(this,a,v);return h instanceof o&&h.statics.scope===this.statics.scope&&this.attributes.move(h),h},o}(g.default);r.default=p},function(t,r,i){var c=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(30),O=i(1),g=function(_){c(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.value=function(l){return!0},p.prototype.index=function(l,o){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(o,1):-1},p.prototype.position=function(l,o){var a=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(a+=1),[this.parent.domNode,a]},p.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},p.scope=O.Scope.INLINE_BLOT,p}(y.default);r.default=g},function(t,r,i){var c=i(11),y=i(3),O={attributes:{compose:function(_,p,l){typeof _!="object"&&(_={}),typeof p!="object"&&(p={});var o=y(!0,{},p);l||(o=Object.keys(o).reduce(function(v,h){return o[h]!=null&&(v[h]=o[h]),v},{}));for(var a in _)_[a]!==void 0&&p[a]===void 0&&(o[a]=_[a]);return Object.keys(o).length>0?o:void 0},diff:function(_,p){typeof _!="object"&&(_={}),typeof p!="object"&&(p={});var l=Object.keys(_).concat(Object.keys(p)).reduce(function(o,a){return c(_[a],p[a])||(o[a]=p[a]===void 0?null:p[a]),o},{});return Object.keys(l).length>0?l:void 0},transform:function(_,p,l){if(typeof _!="object")return p;if(typeof p=="object"){if(!l)return p;var o=Object.keys(p).reduce(function(a,v){return _[v]===void 0&&(a[v]=p[v]),a},{});return Object.keys(o).length>0?o:void 0}}},iterator:function(_){return new g(_)},length:function(_){return typeof _.delete=="number"?_.delete:typeof _.retain=="number"?_.retain:typeof _.insert=="string"?_.insert.length:1}};function g(_){this.ops=_,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(_){_||(_=1/0);var p=this.ops[this.index];if(p){var l=this.offset,o=O.length(p);if(_>=o-l?(_=o-l,this.index+=1,this.offset=0):this.offset+=_,typeof p.delete=="number")return{delete:_};var a={};return p.attributes&&(a.attributes=p.attributes),typeof p.retain=="number"?a.retain=_:typeof p.insert=="string"?a.insert=p.insert.substr(l,_):a.insert=p.insert,a}else return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?O.length(this.ops[this.index])-this.offset:1/0},g.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"},g.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var _=this.offset,p=this.index,l=this.next(),o=this.ops.slice(this.index);return this.offset=_,this.index=p,[l].concat(o)}else return[]},t.exports=O},function(t,r){var i=function(){function c(h,d){return d!=null&&h instanceof d}var y;try{y=Map}catch{y=function(){}}var O;try{O=Set}catch{O=function(){}}var g;try{g=Promise}catch{g=function(){}}function _(h,d,f,u,m){typeof d=="object"&&(f=d.depth,u=d.prototype,m=d.includeNonEnumerable,d=d.circular);var s=[],b=[],S=typeof Buffer<"u";typeof d>"u"&&(d=!0),typeof f>"u"&&(f=1/0);function A(k,N){if(k===null)return null;if(N===0)return k;var x,E;if(typeof k!="object")return k;if(c(k,y))x=new y;else if(c(k,O))x=new O;else if(c(k,g))x=new g(function(D,q){k.then(function(L){D(A(L,N-1))},function(L){q(A(L,N-1))})});else if(_.__isArray(k))x=[];else if(_.__isRegExp(k))x=new RegExp(k.source,v(k)),k.lastIndex&&(x.lastIndex=k.lastIndex);else if(_.__isDate(k))x=new Date(k.getTime());else{if(S&&Buffer.isBuffer(k))return Buffer.allocUnsafe?x=Buffer.allocUnsafe(k.length):x=new Buffer(k.length),k.copy(x),x;c(k,Error)?x=Object.create(k):typeof u>"u"?(E=Object.getPrototypeOf(k),x=Object.create(E)):(x=Object.create(u),E=u)}if(d){var w=s.indexOf(k);if(w!=-1)return b[w];s.push(k),b.push(x)}c(k,y)&&k.forEach(function(D,q){var L=A(q,N-1),$=A(D,N-1);x.set(L,$)}),c(k,O)&&k.forEach(function(D){var q=A(D,N-1);x.add(q)});for(var T in k){var P;E&&(P=Object.getOwnPropertyDescriptor(E,T)),!(P&&P.set==null)&&(x[T]=A(k[T],N-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(k),T=0;T<R.length;T++){var U=R[T],V=Object.getOwnPropertyDescriptor(k,U);V&&!V.enumerable&&!m||(x[U]=A(k[U],N-1),V.enumerable||Object.defineProperty(x,U,{enumerable:!1}))}if(m)for(var ee=Object.getOwnPropertyNames(k),T=0;T<ee.length;T++){var j=ee[T],V=Object.getOwnPropertyDescriptor(k,j);V&&V.enumerable||(x[j]=A(k[j],N-1),Object.defineProperty(x,j,{enumerable:!1}))}return x}return A(h,f)}_.clonePrototype=function(d){if(d===null)return null;var f=function(){};return f.prototype=d,new f};function p(h){return Object.prototype.toString.call(h)}_.__objToStr=p;function l(h){return typeof h=="object"&&p(h)==="[object Date]"}_.__isDate=l;function o(h){return typeof h=="object"&&p(h)==="[object Array]"}_.__isArray=o;function a(h){return typeof h=="object"&&p(h)==="[object RegExp]"}_.__isRegExp=a;function v(h){var d="";return h.global&&(d+="g"),h.ignoreCase&&(d+="i"),h.multiline&&(d+="m"),d}return _.__getRegExpFlags=v,_}();typeof t=="object"&&t.exports&&(t.exports=i)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function x(E,w){var T=[],P=!0,R=!1,U=void 0;try{for(var V=E[Symbol.iterator](),ee;!(P=(ee=V.next()).done)&&(T.push(ee.value),!(w&&T.length===w));P=!0);}catch(j){R=!0,U=j}finally{try{!P&&V.return&&V.return()}finally{if(R)throw U}}return T}return function(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return x(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function x(E,w){for(var T=0;T<w.length;T++){var P=w[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,w,T){return w&&x(E.prototype,w),T&&x(E,T),E}}(),O=function x(E,w,T){E===null&&(E=Function.prototype);var P=Object.getOwnPropertyDescriptor(E,w);if(P===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:x(R,w,T)}else{if("value"in P)return P.value;var U=P.get;return U===void 0?void 0:U.call(T)}},g=i(0),_=s(g),p=i(8),l=s(p),o=i(4),a=s(o),v=i(16),h=s(v),d=i(13),f=s(d),u=i(25),m=s(u);function s(x){return x&&x.__esModule?x:{default:x}}function b(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function S(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function A(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}function k(x){return x instanceof a.default||x instanceof o.BlockEmbed}var N=function(x){A(E,x);function E(w,T){b(this,E);var P=S(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w));return P.emitter=T.emitter,Array.isArray(T.whitelist)&&(P.whitelist=T.whitelist.reduce(function(R,U){return R[U]=!0,R},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return y(E,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(T,P){var R=this.line(T),U=c(R,2),V=U[0],ee=U[1],j=this.line(T+P),D=c(j,1),q=D[0];if(O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,T,P),q!=null&&V!==q&&ee>0){if(V instanceof o.BlockEmbed||q instanceof o.BlockEmbed){this.optimize();return}if(V instanceof f.default){var L=V.newlineIndex(V.length(),!0);if(L>-1&&(V=V.split(L+1),V===q)){this.optimize();return}}else if(q instanceof f.default){var $=q.newlineIndex(0);$>-1&&q.split($+1)}var z=q.children.head instanceof h.default?null:q.children.head;V.moveChildren(q,z),V.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,P,R,U){this.whitelist!=null&&!this.whitelist[R]||(O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,T,P,R,U),this.optimize())}},{key:"insertAt",value:function(T,P,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[P])){if(T>=this.length())if(R==null||_.default.query(P,_.default.Scope.BLOCK)==null){var U=_.default.create(this.statics.defaultChild);this.appendChild(U),R==null&&P.endsWith(`
`)&&(P=P.slice(0,-1)),U.insertAt(0,P,R)}else{var V=_.default.create(P,R);this.appendChild(V)}else O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,T,P,R);this.optimize()}}},{key:"insertBefore",value:function(T,P){if(T.statics.scope===_.default.Scope.INLINE_BLOT){var R=_.default.create(this.statics.defaultChild);R.appendChild(T),T=R}O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,T,P)}},{key:"leaf",value:function(T){return this.path(T).pop()||[null,-1]}},{key:"line",value:function(T){return T===this.length()?this.line(T-1):this.descendant(k,T)}},{key:"lines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function U(V,ee,j){var D=[],q=j;return V.children.forEachAt(ee,j,function(L,$,z){k(L)?D.push(L):L instanceof _.default.Container&&(D=D.concat(U(L,$,q))),q-=z}),D};return R(this,T,P)}},{key:"optimize",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,T,P),T.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,T,P))}},{key:"path",value:function(T){return O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,T).slice(1)}},{key:"update",value:function(T){if(this.batch!==!0){var P=l.default.sources.USER;typeof T=="string"&&(P=T),Array.isArray(T)||(T=this.observer.takeRecords()),T.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,P,T),O(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"update",this).call(this,T.concat([])),T.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,P,T)}}}]),E}(_.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[a.default,o.BlockEmbed,m.default],r.default=N},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SHORTKEY=r.default=void 0;var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},y=function(){function F(I,G){var W=[],J=!0,re=!1,ie=void 0;try{for(var ae=I[Symbol.iterator](),se;!(J=(se=ae.next()).done)&&(W.push(se.value),!(G&&W.length===G));J=!0);}catch(C){re=!0,ie=C}finally{try{!J&&ae.return&&ae.return()}finally{if(re)throw ie}}return W}return function(I,G){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return F(I,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function F(I,G){for(var W=0;W<G.length;W++){var J=G[W];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(I,J.key,J)}}return function(I,G,W){return G&&F(I.prototype,G),W&&F(I,W),I}}(),g=i(21),_=x(g),p=i(11),l=x(p),o=i(3),a=x(o),v=i(2),h=x(v),d=i(20),f=x(d),u=i(0),m=x(u),s=i(5),b=x(s),S=i(10),A=x(S),k=i(9),N=x(k);function x(F){return F&&F.__esModule?F:{default:F}}function E(F,I,G){return I in F?Object.defineProperty(F,I,{value:G,enumerable:!0,configurable:!0,writable:!0}):F[I]=G,F}function w(F,I){if(!(F instanceof I))throw new TypeError("Cannot call a class as a function")}function T(F,I){if(!F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:F}function P(F,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);F.prototype=Object.create(I&&I.prototype,{constructor:{value:F,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(F,I):F.__proto__=I)}var R=(0,A.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",V=function(F){P(I,F),O(I,null,[{key:"match",value:function(W,J){return J=H(J),["altKey","ctrlKey","metaKey","shiftKey"].some(function(re){return!!J[re]!==W[re]&&J[re]!==null})?!1:J.key===(W.which||W.keyCode)}}]);function I(G,W){w(this,I);var J=T(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,G,W));return J.bindings={},Object.keys(J.options.bindings).forEach(function(re){re==="list autofill"&&G.scroll.whitelist!=null&&!G.scroll.whitelist.list||J.options.bindings[re]&&J.addBinding(J.options.bindings[re])}),J.addBinding({key:I.keys.ENTER,shiftKey:null},L),J.addBinding({key:I.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(J.addBinding({key:I.keys.BACKSPACE},{collapsed:!0},j),J.addBinding({key:I.keys.DELETE},{collapsed:!0},D)):(J.addBinding({key:I.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},j),J.addBinding({key:I.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),J.addBinding({key:I.keys.BACKSPACE},{collapsed:!1},q),J.addBinding({key:I.keys.DELETE},{collapsed:!1},q),J.addBinding({key:I.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},j),J.listen(),J}return O(I,[{key:"addBinding",value:function(W){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=H(W);if(ie==null||ie.key==null)return R.warn("Attempted to add invalid keyboard binding",ie);typeof J=="function"&&(J={handler:J}),typeof re=="function"&&(re={handler:re}),ie=(0,a.default)(ie,J,re),this.bindings[ie.key]=this.bindings[ie.key]||[],this.bindings[ie.key].push(ie)}},{key:"listen",value:function(){var W=this;this.quill.root.addEventListener("keydown",function(J){if(!J.defaultPrevented){var re=J.which||J.keyCode,ie=(W.bindings[re]||[]).filter(function(he){return I.match(J,he)});if(ie.length!==0){var ae=W.quill.getSelection();if(!(ae==null||!W.quill.hasFocus())){var se=W.quill.getLine(ae.index),C=y(se,2),Z=C[0],Y=C[1],B=W.quill.getLeaf(ae.index),M=y(B,2),K=M[0],X=M[1],Q=ae.length===0?[K,X]:W.quill.getLeaf(ae.index+ae.length),ne=y(Q,2),oe=ne[0],le=ne[1],me=K instanceof m.default.Text?K.value().slice(0,X):"",Oe=oe instanceof m.default.Text?oe.value().slice(le):"",fe={collapsed:ae.length===0,empty:ae.length===0&&Z.length()<=1,format:W.quill.getFormat(ae),offset:Y,prefix:me,suffix:Oe},ut=ie.some(function(he){if(he.collapsed!=null&&he.collapsed!==fe.collapsed||he.empty!=null&&he.empty!==fe.empty||he.offset!=null&&he.offset!==fe.offset)return!1;if(Array.isArray(he.format)){if(he.format.every(function(ke){return fe.format[ke]==null}))return!1}else if(c(he.format)==="object"&&!Object.keys(he.format).every(function(ke){return he.format[ke]===!0?fe.format[ke]!=null:he.format[ke]===!1?fe.format[ke]==null:(0,l.default)(he.format[ke],fe.format[ke])}))return!1;return he.prefix!=null&&!he.prefix.test(fe.prefix)||he.suffix!=null&&!he.suffix.test(fe.suffix)?!1:he.handler.call(W,ae,fe)!==!0});ut&&J.preventDefault()}}}})}}]),I}(N.default);V.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},V.DEFAULTS={bindings:{bold:z("bold"),italic:z("italic"),underline:z("underline"),indent:{key:V.keys.TAB,format:["blockquote","indent","list"],handler:function(I,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:V.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(I,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:V.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(I,G){G.format.indent!=null?this.quill.format("indent","-1",b.default.sources.USER):G.format.list!=null&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":$(!0),"outdent code-block":$(!1),"remove tab":{key:V.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(I){this.quill.deleteText(I.index-1,1,b.default.sources.USER)}},tab:{key:V.keys.TAB,handler:function(I){this.quill.history.cutoff();var G=new h.default().retain(I.index).delete(I.length).insert(" ");this.quill.updateContents(G,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,b.default.sources.SILENT)}},"list empty enter":{key:V.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(I,G){this.quill.format("list",!1,b.default.sources.USER),G.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:V.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(I){var G=this.quill.getLine(I.index),W=y(G,2),J=W[0],re=W[1],ie=(0,a.default)({},J.formats(),{list:"checked"}),ae=new h.default().retain(I.index).insert(`
`,ie).retain(J.length()-re-1).retain(1,{list:"unchecked"});this.quill.updateContents(ae,b.default.sources.USER),this.quill.setSelection(I.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:V.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(I,G){var W=this.quill.getLine(I.index),J=y(W,2),re=J[0],ie=J[1],ae=new h.default().retain(I.index).insert(`
`,G.format).retain(re.length()-ie-1).retain(1,{header:null});this.quill.updateContents(ae,b.default.sources.USER),this.quill.setSelection(I.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,G){var W=G.prefix.length,J=this.quill.getLine(I.index),re=y(J,2),ie=re[0],ae=re[1];if(ae>W)return!0;var se=void 0;switch(G.prefix.trim()){case"[]":case"[ ]":se="unchecked";break;case"[x]":se="checked";break;case"-":case"*":se="bullet";break;default:se="ordered"}this.quill.insertText(I.index," ",b.default.sources.USER),this.quill.history.cutoff();var C=new h.default().retain(I.index-ae).delete(W+1).retain(ie.length()-2-ae).retain(1,{list:se});this.quill.updateContents(C,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-W,b.default.sources.SILENT)}},"code exit":{key:V.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var G=this.quill.getLine(I.index),W=y(G,2),J=W[0],re=W[1],ie=new h.default().retain(I.index+J.length()-re-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ie,b.default.sources.USER)}},"embed left":ee(V.keys.LEFT,!1),"embed left shift":ee(V.keys.LEFT,!0),"embed right":ee(V.keys.RIGHT,!1),"embed right shift":ee(V.keys.RIGHT,!0)}};function ee(F,I){var G,W=F===V.keys.LEFT?"prefix":"suffix";return G={key:F,shiftKey:I,altKey:null},E(G,W,/^$/),E(G,"handler",function(re){var ie=re.index;F===V.keys.RIGHT&&(ie+=re.length+1);var ae=this.quill.getLeaf(ie),se=y(ae,1),C=se[0];return C instanceof m.default.Embed?(F===V.keys.LEFT?I?this.quill.setSelection(re.index-1,re.length+1,b.default.sources.USER):this.quill.setSelection(re.index-1,b.default.sources.USER):I?this.quill.setSelection(re.index,re.length+1,b.default.sources.USER):this.quill.setSelection(re.index+re.length+1,b.default.sources.USER),!1):!0}),G}function j(F,I){if(!(F.index===0||this.quill.getLength()<=1)){var G=this.quill.getLine(F.index),W=y(G,1),J=W[0],re={};if(I.offset===0){var ie=this.quill.getLine(F.index-1),ae=y(ie,1),se=ae[0];if(se!=null&&se.length()>1){var C=J.formats(),Z=this.quill.getFormat(F.index-1,1);re=f.default.attributes.diff(C,Z)||{}}}var Y=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(F.index-Y,Y,b.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(F.index-Y,Y,re,b.default.sources.USER),this.quill.focus()}}function D(F,I){var G=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(F.index>=this.quill.getLength()-G)){var W={},J=0,re=this.quill.getLine(F.index),ie=y(re,1),ae=ie[0];if(I.offset>=ae.length()-1){var se=this.quill.getLine(F.index+1),C=y(se,1),Z=C[0];if(Z){var Y=ae.formats(),B=this.quill.getFormat(F.index,1);W=f.default.attributes.diff(Y,B)||{},J=Z.length()}}this.quill.deleteText(F.index,G,b.default.sources.USER),Object.keys(W).length>0&&this.quill.formatLine(F.index+J-1,G,W,b.default.sources.USER)}}function q(F){var I=this.quill.getLines(F),G={};if(I.length>1){var W=I[0].formats(),J=I[I.length-1].formats();G=f.default.attributes.diff(J,W)||{}}this.quill.deleteText(F,b.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(F.index,1,G,b.default.sources.USER),this.quill.setSelection(F.index,b.default.sources.SILENT),this.quill.focus()}function L(F,I){var G=this;F.length>0&&this.quill.scroll.deleteAt(F.index,F.length);var W=Object.keys(I.format).reduce(function(J,re){return m.default.query(re,m.default.Scope.BLOCK)&&!Array.isArray(I.format[re])&&(J[re]=I.format[re]),J},{});this.quill.insertText(F.index,`
`,W,b.default.sources.USER),this.quill.setSelection(F.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(J){W[J]==null&&(Array.isArray(I.format[J])||J!=="link"&&G.quill.format(J,I.format[J],b.default.sources.USER))})}function $(F){return{key:V.keys.TAB,shiftKey:!F,format:{"code-block":!0},handler:function(G){var W=m.default.query("code-block"),J=G.index,re=G.length,ie=this.quill.scroll.descendant(W,J),ae=y(ie,2),se=ae[0],C=ae[1];if(se!=null){var Z=this.quill.getIndex(se),Y=se.newlineIndex(C,!0)+1,B=se.newlineIndex(Z+C+re),M=se.domNode.textContent.slice(Y,B).split(`
`);C=0,M.forEach(function(K,X){F?(se.insertAt(Y+C,W.TAB),C+=W.TAB.length,X===0?J+=W.TAB.length:re+=W.TAB.length):K.startsWith(W.TAB)&&(se.deleteAt(Y+C,W.TAB.length),C-=W.TAB.length,X===0?J-=W.TAB.length:re-=W.TAB.length),C+=K.length+1}),this.quill.update(b.default.sources.USER),this.quill.setSelection(J,re,b.default.sources.SILENT)}}}}function z(F){return{key:F[0].toUpperCase(),shortKey:!0,handler:function(G,W){this.quill.format(F,!W.format[F],b.default.sources.USER)}}}function H(F){if(typeof F=="string"||typeof F=="number")return H({key:F});if((typeof F>"u"?"undefined":c(F))==="object"&&(F=(0,_.default)(F,!1)),typeof F.key=="string")if(V.keys[F.key.toUpperCase()]!=null)F.key=V.keys[F.key.toUpperCase()];else if(F.key.length===1)F.key=F.key.toUpperCase().charCodeAt(0);else return null;return F.shortKey&&(F[U]=F.shortKey,delete F.shortKey),F}r.default=V,r.SHORTKEY=U},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function f(u,m){var s=[],b=!0,S=!1,A=void 0;try{for(var k=u[Symbol.iterator](),N;!(b=(N=k.next()).done)&&(s.push(N.value),!(m&&s.length===m));b=!0);}catch(x){S=!0,A=x}finally{try{!b&&k.return&&k.return()}finally{if(S)throw A}}return s}return function(u,m){if(Array.isArray(u))return u;if(Symbol.iterator in Object(u))return f(u,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function f(u,m,s){u===null&&(u=Function.prototype);var b=Object.getOwnPropertyDescriptor(u,m);if(b===void 0){var S=Object.getPrototypeOf(u);return S===null?void 0:f(S,m,s)}else{if("value"in b)return b.value;var A=b.get;return A===void 0?void 0:A.call(s)}},O=function(){function f(u,m){for(var s=0;s<m.length;s++){var b=m[s];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,m,s){return m&&f(u.prototype,m),s&&f(u,s),u}}(),g=i(0),_=o(g),p=i(7),l=o(p);function o(f){return f&&f.__esModule?f:{default:f}}function a(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function v(f,u){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:f}function h(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}var d=function(f){h(u,f),O(u,null,[{key:"value",value:function(){}}]);function u(m,s){a(this,u);var b=v(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,m));return b.selection=s,b.textNode=document.createTextNode(u.CONTENTS),b.domNode.appendChild(b.textNode),b._length=0,b}return O(u,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(s,b){if(this._length!==0)return y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,s,b);for(var S=this,A=0;S!=null&&S.statics.scope!==_.default.Scope.BLOCK_BLOT;)A+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=u.CONTENTS.length,S.optimize(),S.formatAt(A,u.CONTENTS.length,s,b),this._length=0)}},{key:"index",value:function(s,b){return s===this.textNode?0:y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"index",this).call(this,s,b)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var s=this.textNode,b=this.selection.getNativeRange(),S=void 0,A=void 0,k=void 0;if(b!=null&&b.start.node===s&&b.end.node===s){var N=[s,b.start.offset,b.end.offset];S=N[0],A=N[1],k=N[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==u.CONTENTS){var x=this.textNode.data.split(u.CONTENTS).join("");this.next instanceof l.default?(S=this.next.domNode,this.next.insertAt(0,x),this.textNode.data=u.CONTENTS):(this.textNode.data=x,this.parent.insertBefore(_.default.create(this.textNode),this),this.textNode=document.createTextNode(u.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),A!=null){var E=[A,k].map(function(T){return Math.max(0,Math.min(S.data.length,T-1))}),w=c(E,2);return A=w[0],k=w[1],{startNode:S,startOffset:A,endNode:S,endOffset:k}}}}},{key:"update",value:function(s,b){var S=this;if(s.some(function(k){return k.type==="characterData"&&k.target===S.textNode})){var A=this.restore();A&&(b.range=A)}}},{key:"value",value:function(){return""}}]),u}(_.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\uFEFF",r.default=d},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(0),y=_(c),O=i(4),g=_(O);function _(v){return v&&v.__esModule?v:{default:v}}function p(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function o(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var a=function(v){o(h,v);function h(){return p(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(y.default.Container);a.allowedChildren=[g.default,O.BlockEmbed,a],r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.ColorStyle=r.ColorClass=r.ColorAttributor=void 0;var c=function(){function d(f,u){for(var m=0;m<u.length;m++){var s=u[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,s.key,s)}}return function(f,u,m){return u&&d(f.prototype,u),m&&d(f,m),f}}(),y=function d(f,u,m){f===null&&(f=Function.prototype);var s=Object.getOwnPropertyDescriptor(f,u);if(s===void 0){var b=Object.getPrototypeOf(f);return b===null?void 0:d(b,u,m)}else{if("value"in s)return s.value;var S=s.get;return S===void 0?void 0:S.call(m)}},O=i(0),g=_(O);function _(d){return d&&d.__esModule?d:{default:d}}function p(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function l(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function o(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=function(d){o(f,d);function f(){return p(this,f),l(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return c(f,[{key:"value",value:function(m){var s=y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,m);return s.startsWith("rgb(")?(s=s.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+s.split(",").map(function(b){return("00"+parseInt(b).toString(16)).slice(-2)}).join("")):s}}]),f}(g.default.Attributor.Style),v=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),h=new a("color","color",{scope:g.default.Scope.INLINE});r.ColorAttributor=a,r.ColorClass=v,r.ColorStyle=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.sanitize=r.default=void 0;var c=function(){function h(d,f){for(var u=0;u<f.length;u++){var m=f[u];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,f,u){return f&&h(d.prototype,f),u&&h(d,u),d}}(),y=function h(d,f,u){d===null&&(d=Function.prototype);var m=Object.getOwnPropertyDescriptor(d,f);if(m===void 0){var s=Object.getPrototypeOf(d);return s===null?void 0:h(s,f,u)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(u)}},O=i(6),g=_(O);function _(h){return h&&h.__esModule?h:{default:h}}function p(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function o(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var a=function(h){o(d,h);function d(){return p(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return c(d,[{key:"format",value:function(u,m){if(u!==this.statics.blotName||!m)return y(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,u,m);m=this.constructor.sanitize(m),this.domNode.setAttribute("href",m)}}],[{key:"create",value:function(u){var m=y(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,u);return u=this.sanitize(u),m.setAttribute("href",u),m.setAttribute("rel","noopener noreferrer"),m.setAttribute("target","_blank"),m}},{key:"formats",value:function(u){return u.getAttribute("href")}},{key:"sanitize",value:function(u){return v(u,this.PROTOCOL_WHITELIST)?u:this.SANITIZED_URL}}]),d}(g.default);a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(h,d){var f=document.createElement("a");f.href=h;var u=f.href.slice(0,f.href.indexOf(":"));return d.indexOf(u)>-1}r.default=a,r.sanitize=v},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},y=function(){function d(f,u){for(var m=0;m<u.length;m++){var s=u[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,s.key,s)}}return function(f,u,m){return u&&d(f.prototype,u),m&&d(f,m),f}}(),O=i(23),g=l(O),_=i(107),p=l(_);function l(d){return d&&d.__esModule?d:{default:d}}function o(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}var a=0;function v(d,f){d.setAttribute(f,d.getAttribute(f)!=="true")}var h=function(){function d(f){var u=this;o(this,d),this.select=f,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(){u.togglePicker()}),this.label.addEventListener("keydown",function(m){switch(m.keyCode){case g.default.keys.ENTER:u.togglePicker();break;case g.default.keys.ESCAPE:u.escape(),m.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return y(d,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(u){var m=this,s=document.createElement("span");return s.tabIndex="0",s.setAttribute("role","button"),s.classList.add("ql-picker-item"),u.hasAttribute("value")&&s.setAttribute("data-value",u.getAttribute("value")),u.textContent&&s.setAttribute("data-label",u.textContent),s.addEventListener("click",function(){m.selectItem(s,!0)}),s.addEventListener("keydown",function(b){switch(b.keyCode){case g.default.keys.ENTER:m.selectItem(s,!0),b.preventDefault();break;case g.default.keys.ESCAPE:m.escape(),b.preventDefault();break}}),s}},{key:"buildLabel",value:function(){var u=document.createElement("span");return u.classList.add("ql-picker-label"),u.innerHTML=p.default,u.tabIndex="0",u.setAttribute("role","button"),u.setAttribute("aria-expanded","false"),this.container.appendChild(u),u}},{key:"buildOptions",value:function(){var u=this,m=document.createElement("span");m.classList.add("ql-picker-options"),m.setAttribute("aria-hidden","true"),m.tabIndex="-1",m.id="ql-picker-options-"+a,a+=1,this.label.setAttribute("aria-controls",m.id),this.options=m,[].slice.call(this.select.options).forEach(function(s){var b=u.buildItem(s);m.appendChild(b),s.selected===!0&&u.selectItem(b)}),this.container.appendChild(m)}},{key:"buildPicker",value:function(){var u=this;[].slice.call(this.select.attributes).forEach(function(m){u.container.setAttribute(m.name,m.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var u=this;this.close(),setTimeout(function(){return u.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(u){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=this.container.querySelector(".ql-selected");if(u!==s&&(s!=null&&s.classList.remove("ql-selected"),u!=null&&(u.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(u.parentNode.children,u),u.hasAttribute("data-value")?this.label.setAttribute("data-value",u.getAttribute("data-value")):this.label.removeAttribute("data-value"),u.hasAttribute("data-label")?this.label.setAttribute("data-label",u.getAttribute("data-label")):this.label.removeAttribute("data-label"),m))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":c(Event))==="object"){var b=document.createEvent("Event");b.initEvent("change",!0,!0),this.select.dispatchEvent(b)}this.close()}}},{key:"update",value:function(){var u=void 0;if(this.select.selectedIndex>-1){var m=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];u=this.select.options[this.select.selectedIndex],this.selectItem(m)}else this.selectItem(null);var s=u!=null&&u!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",s)}}]),d}();r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(0),y=R(c),O=i(5),g=R(O),_=i(4),p=R(_),l=i(16),o=R(l),a=i(25),v=R(a),h=i(24),d=R(h),f=i(35),u=R(f),m=i(6),s=R(m),b=i(22),S=R(b),A=i(7),k=R(A),N=i(55),x=R(N),E=i(42),w=R(E),T=i(23),P=R(T);function R(U){return U&&U.__esModule?U:{default:U}}g.default.register({"blots/block":p.default,"blots/block/embed":_.BlockEmbed,"blots/break":o.default,"blots/container":v.default,"blots/cursor":d.default,"blots/embed":u.default,"blots/inline":s.default,"blots/scroll":S.default,"blots/text":k.default,"modules/clipboard":x.default,"modules/history":w.default,"modules/keyboard":P.default}),y.default.register(p.default,o.default,d.default,s.default,S.default,k.default),r.default=g.default},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(1),y=function(){function O(g){this.domNode=g,this.domNode[c.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(g){if(this.tagName==null)throw new c.ParchmentError("Blot definition missing tagName");var _;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?_=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?_=document.createElement(g):_=document.createElement(this.tagName[0])):_=document.createElement(this.tagName),this.className&&_.classList.add(this.className),_},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return c.create(g)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[c.DATA_KEY]},O.prototype.deleteAt=function(g,_){var p=this.isolate(g,_);p.remove()},O.prototype.formatAt=function(g,_,p,l){var o=this.isolate(g,_);if(c.query(p,c.Scope.BLOT)!=null&&l)o.wrap(p,l);else if(c.query(p,c.Scope.ATTRIBUTE)!=null){var a=c.create(this.statics.scope);o.wrap(a),a.format(p,l)}},O.prototype.insertAt=function(g,_,p){var l=p==null?c.create("text",_):c.create(_,p),o=this.split(g);this.parent.insertBefore(l,o)},O.prototype.insertInto=function(g,_){_===void 0&&(_=null),this.parent!=null&&this.parent.children.remove(this);var p=null;g.children.insertBefore(this,_),_!=null&&(p=_.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=p)&&g.domNode.insertBefore(this.domNode,p),this.parent=g,this.attach()},O.prototype.isolate=function(g,_){var p=this.split(g);return p.split(_),p},O.prototype.length=function(){return 1},O.prototype.offset=function(g){return g===void 0&&(g=this.parent),this.parent==null||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},O.prototype.optimize=function(g){this.domNode[c.DATA_KEY]!=null&&delete this.domNode[c.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},O.prototype.replaceWith=function(g,_){var p=typeof g=="string"?c.create(g,_):g;return p.replace(this),p},O.prototype.split=function(g,_){return g===0?this:this.next},O.prototype.update=function(g,_){},O.prototype.wrap=function(g,_){var p=typeof g=="string"?c.create(g,_):g;return this.parent!=null&&this.parent.insertBefore(p,this.next),p.appendChild(this),p},O.blotName="abstract",O}();r.default=y},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(12),y=i(32),O=i(33),g=i(1),_=function(){function p(l){this.attributes={},this.domNode=l,this.build()}return p.prototype.attribute=function(l,o){o?l.add(this.domNode,o)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},p.prototype.build=function(){var l=this;this.attributes={};var o=c.default.keys(this.domNode),a=y.default.keys(this.domNode),v=O.default.keys(this.domNode);o.concat(a).concat(v).forEach(function(h){var d=g.query(h,g.Scope.ATTRIBUTE);d instanceof c.default&&(l.attributes[d.attrName]=d)})},p.prototype.copy=function(l){var o=this;Object.keys(this.attributes).forEach(function(a){var v=o.attributes[a].value(o.domNode);l.format(a,v)})},p.prototype.move=function(l){var o=this;this.copy(l),Object.keys(this.attributes).forEach(function(a){o.attributes[a].remove(o.domNode)}),this.attributes={}},p.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(o,a){return o[a]=l.attributes[a].value(l.domNode),o},{})},p}();r.default=_},function(t,r,i){var c=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(12);function O(_,p){var l=_.getAttribute("class")||"";return l.split(/\s+/).filter(function(o){return o.indexOf(p+"-")===0})}var g=function(_){c(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(o){return o.split("-").slice(0,-1).join("-")})},p.prototype.add=function(l,o){return this.canAdd(l,o)?(this.remove(l),l.classList.add(this.keyName+"-"+o),!0):!1},p.prototype.remove=function(l){var o=O(l,this.keyName);o.forEach(function(a){l.classList.remove(a)}),l.classList.length===0&&l.removeAttribute("class")},p.prototype.value=function(l){var o=O(l,this.keyName)[0]||"",a=o.slice(this.keyName.length+1);return this.canAdd(l,a)?a:""},p}(y.default);r.default=g},function(t,r,i){var c=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(12);function O(_){var p=_.split("-"),l=p.slice(1).map(function(o){return o[0].toUpperCase()+o.slice(1)}).join("");return p[0]+l}var g=function(_){c(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(o){var a=o.split(":");return a[0].trim()})},p.prototype.add=function(l,o){return this.canAdd(l,o)?(l.style[O(this.keyName)]=o,!0):!1},p.prototype.remove=function(l){l.style[O(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},p.prototype.value=function(l){var o=l.style[O(this.keyName)];return this.canAdd(l,o)?o:""},p}(y.default);r.default=g},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function g(_,p){for(var l=0;l<p.length;l++){var o=p[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(_,o.key,o)}}return function(_,p,l){return p&&g(_.prototype,p),l&&g(_,l),_}}();function y(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}var O=function(){function g(_,p){y(this,g),this.quill=_,this.options=p,this.modules={}}return c(g,[{key:"init",value:function(){var p=this;Object.keys(this.options.modules).forEach(function(l){p.modules[l]==null&&p.addModule(l)})}},{key:"addModule",value:function(p){var l=this.quill.constructor.import("modules/"+p);return this.modules[p]=new l(this.quill,this.options.modules[p]||{}),this.modules[p]}}]),g}();O.DEFAULTS={modules:{}},O.themes={default:O},r.default=O},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function f(u,m){for(var s=0;s<m.length;s++){var b=m[s];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,m,s){return m&&f(u.prototype,m),s&&f(u,s),u}}(),y=function f(u,m,s){u===null&&(u=Function.prototype);var b=Object.getOwnPropertyDescriptor(u,m);if(b===void 0){var S=Object.getPrototypeOf(u);return S===null?void 0:f(S,m,s)}else{if("value"in b)return b.value;var A=b.get;return A===void 0?void 0:A.call(s)}},O=i(0),g=l(O),_=i(7),p=l(_);function l(f){return f&&f.__esModule?f:{default:f}}function o(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function a(f,u){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:f}function v(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}var h="\uFEFF",d=function(f){v(u,f);function u(m){o(this,u);var s=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,m));return s.contentNode=document.createElement("span"),s.contentNode.setAttribute("contenteditable",!1),[].slice.call(s.domNode.childNodes).forEach(function(b){s.contentNode.appendChild(b)}),s.leftGuard=document.createTextNode(h),s.rightGuard=document.createTextNode(h),s.domNode.appendChild(s.leftGuard),s.domNode.appendChild(s.contentNode),s.domNode.appendChild(s.rightGuard),s}return c(u,[{key:"index",value:function(s,b){return s===this.leftGuard?0:s===this.rightGuard?1:y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"index",this).call(this,s,b)}},{key:"restore",value:function(s){var b=void 0,S=void 0,A=s.data.split(h).join("");if(s===this.leftGuard)if(this.prev instanceof p.default){var k=this.prev.length();this.prev.insertAt(k,A),b={startNode:this.prev.domNode,startOffset:k+A.length}}else S=document.createTextNode(A),this.parent.insertBefore(g.default.create(S),this),b={startNode:S,startOffset:A.length};else s===this.rightGuard&&(this.next instanceof p.default?(this.next.insertAt(0,A),b={startNode:this.next.domNode,startOffset:A.length}):(S=document.createTextNode(A),this.parent.insertBefore(g.default.create(S),this.next),b={startNode:S,startOffset:A.length}));return s.data=h,b}},{key:"update",value:function(s,b){var S=this;s.forEach(function(A){if(A.type==="characterData"&&(A.target===S.leftGuard||A.target===S.rightGuard)){var k=S.restore(A.target);k&&(b.range=k)}})}}]),u}(g.default.Embed);r.default=d},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.AlignStyle=r.AlignClass=r.AlignAttribute=void 0;var c=i(0),y=O(c);function O(o){return o&&o.__esModule?o:{default:o}}var g={scope:y.default.Scope.BLOCK,whitelist:["right","center","justify"]},_=new y.default.Attributor.Attribute("align","align",g),p=new y.default.Attributor.Class("align","ql-align",g),l=new y.default.Attributor.Style("align","text-align",g);r.AlignAttribute=_,r.AlignClass=p,r.AlignStyle=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.BackgroundStyle=r.BackgroundClass=void 0;var c=i(0),y=g(c),O=i(26);function g(l){return l&&l.__esModule?l:{default:l}}var _=new y.default.Attributor.Class("background","ql-bg",{scope:y.default.Scope.INLINE}),p=new O.ColorAttributor("background","background-color",{scope:y.default.Scope.INLINE});r.BackgroundClass=_,r.BackgroundStyle=p},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.DirectionStyle=r.DirectionClass=r.DirectionAttribute=void 0;var c=i(0),y=O(c);function O(o){return o&&o.__esModule?o:{default:o}}var g={scope:y.default.Scope.BLOCK,whitelist:["rtl"]},_=new y.default.Attributor.Attribute("direction","dir",g),p=new y.default.Attributor.Class("direction","ql-direction",g),l=new y.default.Attributor.Style("direction","direction",g);r.DirectionAttribute=_,r.DirectionClass=p,r.DirectionStyle=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.FontClass=r.FontStyle=void 0;var c=function(){function f(u,m){for(var s=0;s<m.length;s++){var b=m[s];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(u,b.key,b)}}return function(u,m,s){return m&&f(u.prototype,m),s&&f(u,s),u}}(),y=function f(u,m,s){u===null&&(u=Function.prototype);var b=Object.getOwnPropertyDescriptor(u,m);if(b===void 0){var S=Object.getPrototypeOf(u);return S===null?void 0:f(S,m,s)}else{if("value"in b)return b.value;var A=b.get;return A===void 0?void 0:A.call(s)}},O=i(0),g=_(O);function _(f){return f&&f.__esModule?f:{default:f}}function p(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function l(f,u){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:f}function o(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}var a={scope:g.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new g.default.Attributor.Class("font","ql-font",a),h=function(f){o(u,f);function u(){return p(this,u),l(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return c(u,[{key:"value",value:function(s){return y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,s).replace(/["']/g,"")}}]),u}(g.default.Attributor.Style),d=new h("font","font-family",a);r.FontStyle=d,r.FontClass=v},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.SizeStyle=r.SizeClass=void 0;var c=i(0),y=O(c);function O(p){return p&&p.__esModule?p:{default:p}}var g=new y.default.Attributor.Class("size","ql-size",{scope:y.default.Scope.INLINE,whitelist:["small","large","huge"]}),_=new y.default.Attributor.Style("size","font-size",{scope:y.default.Scope.INLINE,whitelist:["10px","18px","32px"]});r.SizeClass=g,r.SizeStyle=_},function(t,r,i){t.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.getLastChangeIndex=r.default=void 0;var c=function(){function m(s,b){for(var S=0;S<b.length;S++){var A=b[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(s,A.key,A)}}return function(s,b,S){return b&&m(s.prototype,b),S&&m(s,S),s}}(),y=i(0),O=o(y),g=i(5),_=o(g),p=i(9),l=o(p);function o(m){return m&&m.__esModule?m:{default:m}}function a(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")}function v(m,s){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:m}function h(m,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);m.prototype=Object.create(s&&s.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(m,s):m.__proto__=s)}var d=function(m){h(s,m);function s(b,S){a(this,s);var A=v(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,b,S));return A.lastRecorded=0,A.ignoreChange=!1,A.clear(),A.quill.on(_.default.events.EDITOR_CHANGE,function(k,N,x,E){k!==_.default.events.TEXT_CHANGE||A.ignoreChange||(!A.options.userOnly||E===_.default.sources.USER?A.record(N,x):A.transform(N))}),A.quill.keyboard.addBinding({key:"Z",shortKey:!0},A.undo.bind(A)),A.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},A.redo.bind(A)),/Win/i.test(navigator.platform)&&A.quill.keyboard.addBinding({key:"Y",shortKey:!0},A.redo.bind(A)),A}return c(s,[{key:"change",value:function(S,A){if(this.stack[S].length!==0){var k=this.stack[S].pop();this.stack[A].push(k),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(k[S],_.default.sources.USER),this.ignoreChange=!1;var N=u(k[S]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,A){if(S.ops.length!==0){this.stack.redo=[];var k=this.quill.getContents().diff(A),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var x=this.stack.undo.pop();k=k.compose(x.undo),S=x.redo.compose(S)}else this.lastRecorded=N;this.stack.undo.push({redo:S,undo:k}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(A){A.undo=S.transform(A.undo,!0),A.redo=S.transform(A.redo,!0)}),this.stack.redo.forEach(function(A){A.undo=S.transform(A.undo,!0),A.redo=S.transform(A.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),s}(l.default);d.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function f(m){var s=m.ops[m.ops.length-1];return s==null?!1:s.insert!=null?typeof s.insert=="string"&&s.insert.endsWith(`
`):s.attributes!=null?Object.keys(s.attributes).some(function(b){return O.default.query(b,O.default.Scope.BLOCK)!=null}):!1}function u(m){var s=m.reduce(function(S,A){return S+=A.delete||0,S},0),b=m.length()-s;return f(m)&&(b-=1),b}r.default=d,r.getLastChangeIndex=u},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BaseTooltip=void 0;var c=function(){function L($,z){for(var H=0;H<z.length;H++){var F=z[H];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty($,F.key,F)}}return function($,z,H){return z&&L($.prototype,z),H&&L($,H),$}}(),y=function L($,z,H){$===null&&($=Function.prototype);var F=Object.getOwnPropertyDescriptor($,z);if(F===void 0){var I=Object.getPrototypeOf($);return I===null?void 0:L(I,z,H)}else{if("value"in F)return F.value;var G=F.get;return G===void 0?void 0:G.call(H)}},O=i(3),g=N(O),_=i(2),p=N(_),l=i(8),o=N(l),a=i(23),v=N(a),h=i(34),d=N(h),f=i(59),u=N(f),m=i(60),s=N(m),b=i(28),S=N(b),A=i(61),k=N(A);function N(L){return L&&L.__esModule?L:{default:L}}function x(L,$){if(!(L instanceof $))throw new TypeError("Cannot call a class as a function")}function E(L,$){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:L}function w(L,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);L.prototype=Object.create($&&$.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(L,$):L.__proto__=$)}var T=[!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"],R=[!1,"serif","monospace"],U=["1","2","3",!1],V=["small",!1,"large","huge"],ee=function(L){w($,L);function $(z,H){x(this,$);var F=E(this,($.__proto__||Object.getPrototypeOf($)).call(this,z,H)),I=function G(W){if(!document.body.contains(z.root))return document.body.removeEventListener("click",G);F.tooltip!=null&&!F.tooltip.root.contains(W.target)&&document.activeElement!==F.tooltip.textbox&&!F.quill.hasFocus()&&F.tooltip.hide(),F.pickers!=null&&F.pickers.forEach(function(J){J.container.contains(W.target)||J.close()})};return z.emitter.listenDOM("click",document.body,I),F}return c($,[{key:"addModule",value:function(H){var F=y($.prototype.__proto__||Object.getPrototypeOf($.prototype),"addModule",this).call(this,H);return H==="toolbar"&&this.extendToolbar(F),F}},{key:"buildButtons",value:function(H,F){H.forEach(function(I){var G=I.getAttribute("class")||"";G.split(/\s+/).forEach(function(W){if(!!W.startsWith("ql-")&&(W=W.slice(3),F[W]!=null))if(W==="direction")I.innerHTML=F[W][""]+F[W].rtl;else if(typeof F[W]=="string")I.innerHTML=F[W];else{var J=I.value||"";J!=null&&F[W][J]&&(I.innerHTML=F[W][J])}})})}},{key:"buildPickers",value:function(H,F){var I=this;this.pickers=H.map(function(W){if(W.classList.contains("ql-align"))return W.querySelector("option")==null&&q(W,T),new s.default(W,F.align);if(W.classList.contains("ql-background")||W.classList.contains("ql-color")){var J=W.classList.contains("ql-background")?"background":"color";return W.querySelector("option")==null&&q(W,P,J==="background"?"#ffffff":"#000000"),new u.default(W,F[J])}else return W.querySelector("option")==null&&(W.classList.contains("ql-font")?q(W,R):W.classList.contains("ql-header")?q(W,U):W.classList.contains("ql-size")&&q(W,V)),new S.default(W)});var G=function(){I.pickers.forEach(function(J){J.update()})};this.quill.on(o.default.events.EDITOR_CHANGE,G)}}]),$}(d.default);ee.DEFAULTS=(0,g.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var $=this,z=this.container.querySelector("input.ql-image[type=file]");z==null&&(z=document.createElement("input"),z.setAttribute("type","file"),z.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),z.classList.add("ql-image"),z.addEventListener("change",function(){if(z.files!=null&&z.files[0]!=null){var H=new FileReader;H.onload=function(F){var I=$.quill.getSelection(!0);$.quill.updateContents(new p.default().retain(I.index).delete(I.length).insert({image:F.target.result}),o.default.sources.USER),$.quill.setSelection(I.index+1,o.default.sources.SILENT),z.value=""},H.readAsDataURL(z.files[0])}}),this.container.appendChild(z)),z.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var j=function(L){w($,L);function $(z,H){x(this,$);var F=E(this,($.__proto__||Object.getPrototypeOf($)).call(this,z,H));return F.textbox=F.root.querySelector('input[type="text"]'),F.listen(),F}return c($,[{key:"listen",value:function(){var H=this;this.textbox.addEventListener("keydown",function(F){v.default.match(F,"enter")?(H.save(),F.preventDefault()):v.default.match(F,"escape")&&(H.cancel(),F.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),F!=null?this.textbox.value=F:H!==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-"+H)||""),this.root.setAttribute("data-mode",H)}},{key:"restoreFocus",value:function(){var H=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=H}},{key:"save",value:function(){var H=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var F=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",H,o.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",H,o.default.sources.USER)),this.quill.root.scrollTop=F;break}case"video":H=D(H);case"formula":{if(!H)break;var I=this.quill.getSelection(!0);if(I!=null){var G=I.index+I.length;this.quill.insertEmbed(G,this.root.getAttribute("data-mode"),H,o.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(G+1," ",o.default.sources.USER),this.quill.setSelection(G+2,o.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),$}(k.default);function D(L){var $=L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||L.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return $?($[1]||"https")+"://www.youtube.com/embed/"+$[2]+"?showinfo=0":($=L.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?($[1]||"https")+"://player.vimeo.com/video/"+$[2]+"/":L}function q(L,$){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$.forEach(function(H){var F=document.createElement("option");H===z?F.setAttribute("selected","selected"):F.setAttribute("value",H),L.appendChild(F)})}r.BaseTooltip=j,r.default=ee},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function y(){this.head=this.tail=null,this.length=0}return y.prototype.append=function(){for(var O=[],g=0;g<arguments.length;g++)O[g]=arguments[g];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},y.prototype.contains=function(O){for(var g,_=this.iterator();g=_();)if(g===O)return!0;return!1},y.prototype.insertBefore=function(O,g){!O||(O.next=g,g!=null?(O.prev=g.prev,g.prev!=null&&(g.prev.next=O),g.prev=O,g===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},y.prototype.offset=function(O){for(var g=0,_=this.head;_!=null;){if(_===O)return g;g+=_.length(),_=_.next}return-1},y.prototype.remove=function(O){!this.contains(O)||(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},y.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var g=O;return O!=null&&(O=O.next),g}},y.prototype.find=function(O,g){g===void 0&&(g=!1);for(var _,p=this.iterator();_=p();){var l=_.length();if(O<l||g&&O===l&&(_.next==null||_.next.length()!==0))return[_,O];O-=l}return[null,0]},y.prototype.forEach=function(O){for(var g,_=this.iterator();g=_();)O(g)},y.prototype.forEachAt=function(O,g,_){if(!(g<=0))for(var p=this.find(O),l=p[0],o=p[1],a,v=O-o,h=this.iterator(l);(a=h())&&v<O+g;){var d=a.length();O>v?_(a,O-v,Math.min(g,v+d-O)):_(a,0,Math.min(d,O+g-v)),v+=d}},y.prototype.map=function(O){return this.reduce(function(g,_){return g.push(O(_)),g},[])},y.prototype.reduce=function(O,g){for(var _,p=this.iterator();_=p();)g=O(g,_);return g},y}();r.default=c},function(t,r,i){var c=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var v in a)a.hasOwnProperty(v)&&(o[v]=a[v])};return function(o,a){l(o,a);function v(){this.constructor=o}o.prototype=a===null?Object.create(a):(v.prototype=a.prototype,new v)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(17),O=i(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},_=100,p=function(l){c(o,l);function o(a){var v=l.call(this,a)||this;return v.scroll=v,v.observer=new MutationObserver(function(h){v.update(h)}),v.observer.observe(v.domNode,g),v.attach(),v}return o.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},o.prototype.deleteAt=function(a,v){this.update(),a===0&&v===this.length()?this.children.forEach(function(h){h.remove()}):l.prototype.deleteAt.call(this,a,v)},o.prototype.formatAt=function(a,v,h,d){this.update(),l.prototype.formatAt.call(this,a,v,h,d)},o.prototype.insertAt=function(a,v,h){this.update(),l.prototype.insertAt.call(this,a,v,h)},o.prototype.optimize=function(a,v){var h=this;a===void 0&&(a=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var d=[].slice.call(this.observer.takeRecords());d.length>0;)a.push(d.pop());for(var f=function(b,S){S===void 0&&(S=!0),!(b==null||b===h)&&b.domNode.parentNode!=null&&(b.domNode[O.DATA_KEY].mutations==null&&(b.domNode[O.DATA_KEY].mutations=[]),S&&f(b.parent))},u=function(b){b.domNode[O.DATA_KEY]==null||b.domNode[O.DATA_KEY].mutations==null||(b instanceof y.default&&b.children.forEach(u),b.optimize(v))},m=a,s=0;m.length>0;s+=1){if(s>=_)throw new Error("[Parchment] Maximum optimize iterations reached");for(m.forEach(function(b){var S=O.find(b.target,!0);S!=null&&(S.domNode===b.target&&(b.type==="childList"?(f(O.find(b.previousSibling,!1)),[].forEach.call(b.addedNodes,function(A){var k=O.find(A,!1);f(k,!1),k instanceof y.default&&k.children.forEach(function(N){f(N,!1)})})):b.type==="attributes"&&f(S.prev)),f(S))}),this.children.forEach(u),m=[].slice.call(this.observer.takeRecords()),d=m.slice();d.length>0;)a.push(d.pop())}},o.prototype.update=function(a,v){var h=this;v===void 0&&(v={}),a=a||this.observer.takeRecords(),a.map(function(d){var f=O.find(d.target,!0);return f==null?null:f.domNode[O.DATA_KEY].mutations==null?(f.domNode[O.DATA_KEY].mutations=[d],f):(f.domNode[O.DATA_KEY].mutations.push(d),null)}).forEach(function(d){d==null||d===h||d.domNode[O.DATA_KEY]==null||d.update(d.domNode[O.DATA_KEY].mutations||[],v)}),this.domNode[O.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,v),this.optimize(a,v)},o.blotName="scroll",o.defaultChild="block",o.scope=O.Scope.BLOCK_BLOT,o.tagName="DIV",o}(y.default);r.default=p},function(t,r,i){var c=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var a in o)o.hasOwnProperty(a)&&(l[a]=o[a])};return function(l,o){p(l,o);function a(){this.constructor=l}l.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(18),O=i(1);function g(p,l){if(Object.keys(p).length!==Object.keys(l).length)return!1;for(var o in p)if(p[o]!==l[o])return!1;return!0}var _=function(p){c(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.formats=function(o){if(o.tagName!==l.tagName)return p.formats.call(this,o)},l.prototype.format=function(o,a){var v=this;o===this.statics.blotName&&!a?(this.children.forEach(function(h){h instanceof y.default||(h=h.wrap(l.blotName,!0)),v.attributes.copy(h)}),this.unwrap()):p.prototype.format.call(this,o,a)},l.prototype.formatAt=function(o,a,v,h){if(this.formats()[v]!=null||O.query(v,O.Scope.ATTRIBUTE)){var d=this.isolate(o,a);d.format(v,h)}else p.prototype.formatAt.call(this,o,a,v,h)},l.prototype.optimize=function(o){p.prototype.optimize.call(this,o);var a=this.formats();if(Object.keys(a).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&g(a,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=O.Scope.INLINE_BLOT,l.tagName="SPAN",l}(y.default);r.default=_},function(t,r,i){var c=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(18),O=i(1),g=function(_){c(p,_);function p(){return _!==null&&_.apply(this,arguments)||this}return p.formats=function(l){var o=O.query(p.blotName).tagName;if(l.tagName!==o)return _.formats.call(this,l)},p.prototype.format=function(l,o){O.query(l,O.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!o?this.replaceWith(p.blotName):_.prototype.format.call(this,l,o))},p.prototype.formatAt=function(l,o,a,v){O.query(a,O.Scope.BLOCK)!=null?this.format(a,v):_.prototype.formatAt.call(this,l,o,a,v)},p.prototype.insertAt=function(l,o,a){if(a==null||O.query(o,O.Scope.INLINE)!=null)_.prototype.insertAt.call(this,l,o,a);else{var v=this.split(l),h=O.create(o,a);v.parent.insertBefore(h,v)}},p.prototype.update=function(l,o){navigator.userAgent.match(/Trident/)?this.build():_.prototype.update.call(this,l,o)},p.blotName="block",p.scope=O.Scope.BLOCK_BLOT,p.tagName="P",p}(y.default);r.default=g},function(t,r,i){var c=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var l in p)p.hasOwnProperty(l)&&(_[l]=p[l])};return function(_,p){g(_,p);function l(){this.constructor=_}_.prototype=p===null?Object.create(p):(l.prototype=p.prototype,new l)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(19),O=function(g){c(_,g);function _(){return g!==null&&g.apply(this,arguments)||this}return _.formats=function(p){},_.prototype.format=function(p,l){g.prototype.formatAt.call(this,0,this.length(),p,l)},_.prototype.formatAt=function(p,l,o,a){p===0&&l===this.length()?this.format(o,a):g.prototype.formatAt.call(this,p,l,o,a)},_.prototype.formats=function(){return this.statics.formats(this.domNode)},_}(y.default);r.default=O},function(t,r,i){var c=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var o in l)l.hasOwnProperty(o)&&(p[o]=l[o])};return function(p,l){_(p,l);function o(){this.constructor=p}p.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}}();Object.defineProperty(r,"__esModule",{value:!0});var y=i(19),O=i(1),g=function(_){c(p,_);function p(l){var o=_.call(this,l)||this;return o.text=o.statics.value(o.domNode),o}return p.create=function(l){return document.createTextNode(l)},p.value=function(l){var o=l.data;return o.normalize&&(o=o.normalize()),o},p.prototype.deleteAt=function(l,o){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+o)},p.prototype.index=function(l,o){return this.domNode===l?o:-1},p.prototype.insertAt=function(l,o,a){a==null?(this.text=this.text.slice(0,l)+o+this.text.slice(l),this.domNode.data=this.text):_.prototype.insertAt.call(this,l,o,a)},p.prototype.length=function(){return this.text.length},p.prototype.optimize=function(l){_.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof p&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},p.prototype.position=function(l,o){return[this.domNode,l]},p.prototype.split=function(l,o){if(o===void 0&&(o=!1),!o){if(l===0)return this;if(l===this.length())return this.next}var a=O.create(this.domNode.splitText(l));return this.parent.insertBefore(a,this.next),this.text=this.statics.value(this.domNode),a},p.prototype.update=function(l,o){var a=this;l.some(function(v){return v.type==="characterData"&&v.target===a.domNode})&&(this.text=this.statics.value(this.domNode))},p.prototype.value=function(){return this.text},p.blotName="text",p.scope=O.Scope.INLINE_BLOT,p}(y.default);r.default=g},function(t,r,i){var c=document.createElement("div");if(c.classList.toggle("test-class",!1),c.classList.contains("test-class")){var y=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,g){return arguments.length>1&&!this.contains(O)==!g?g:y.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,g){return g=g||0,this.substr(g,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,g){var _=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>_.length)&&(g=_.length),g-=O.length;var p=_.indexOf(O,g);return p!==-1&&p===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof g!="function")throw new TypeError("predicate must be a function");for(var _=Object(this),p=_.length>>>0,l=arguments[1],o,a=0;a<p;a++)if(o=_[a],g.call(l,o,a,_))return o}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,r){var i=-1,c=1,y=0;function O(s,b,S){if(s==b)return s?[[y,s]]:[];(S<0||s.length<S)&&(S=null);var A=l(s,b),k=s.substring(0,A);s=s.substring(A),b=b.substring(A),A=o(s,b);var N=s.substring(s.length-A);s=s.substring(0,s.length-A),b=b.substring(0,b.length-A);var x=g(s,b);return k&&x.unshift([y,k]),N&&x.push([y,N]),v(x),S!=null&&(x=f(x,S)),x=u(x),x}function g(s,b){var S;if(!s)return[[c,b]];if(!b)return[[i,s]];var A=s.length>b.length?s:b,k=s.length>b.length?b:s,N=A.indexOf(k);if(N!=-1)return S=[[c,A.substring(0,N)],[y,k],[c,A.substring(N+k.length)]],s.length>b.length&&(S[0][0]=S[2][0]=i),S;if(k.length==1)return[[i,s],[c,b]];var x=a(s,b);if(x){var E=x[0],w=x[1],T=x[2],P=x[3],R=x[4],U=O(E,T),V=O(w,P);return U.concat([[y,R]],V)}return _(s,b)}function _(s,b){for(var S=s.length,A=b.length,k=Math.ceil((S+A)/2),N=k,x=2*k,E=new Array(x),w=new Array(x),T=0;T<x;T++)E[T]=-1,w[T]=-1;E[N+1]=0,w[N+1]=0;for(var P=S-A,R=P%2!=0,U=0,V=0,ee=0,j=0,D=0;D<k;D++){for(var q=-D+U;q<=D-V;q+=2){var L=N+q,$;q==-D||q!=D&&E[L-1]<E[L+1]?$=E[L+1]:$=E[L-1]+1;for(var z=$-q;$<S&&z<A&&s.charAt($)==b.charAt(z);)$++,z++;if(E[L]=$,$>S)V+=2;else if(z>A)U+=2;else if(R){var H=N+P-q;if(H>=0&&H<x&&w[H]!=-1){var F=S-w[H];if($>=F)return p(s,b,$,z)}}}for(var I=-D+ee;I<=D-j;I+=2){var H=N+I,F;I==-D||I!=D&&w[H-1]<w[H+1]?F=w[H+1]:F=w[H-1]+1;for(var G=F-I;F<S&&G<A&&s.charAt(S-F-1)==b.charAt(A-G-1);)F++,G++;if(w[H]=F,F>S)j+=2;else if(G>A)ee+=2;else if(!R){var L=N+P-I;if(L>=0&&L<x&&E[L]!=-1){var $=E[L],z=N+$-L;if(F=S-F,$>=F)return p(s,b,$,z)}}}}return[[i,s],[c,b]]}function p(s,b,S,A){var k=s.substring(0,S),N=b.substring(0,A),x=s.substring(S),E=b.substring(A),w=O(k,N),T=O(x,E);return w.concat(T)}function l(s,b){if(!s||!b||s.charAt(0)!=b.charAt(0))return 0;for(var S=0,A=Math.min(s.length,b.length),k=A,N=0;S<k;)s.substring(N,k)==b.substring(N,k)?(S=k,N=S):A=k,k=Math.floor((A-S)/2+S);return k}function o(s,b){if(!s||!b||s.charAt(s.length-1)!=b.charAt(b.length-1))return 0;for(var S=0,A=Math.min(s.length,b.length),k=A,N=0;S<k;)s.substring(s.length-k,s.length-N)==b.substring(b.length-k,b.length-N)?(S=k,N=S):A=k,k=Math.floor((A-S)/2+S);return k}function a(s,b){var S=s.length>b.length?s:b,A=s.length>b.length?b:s;if(S.length<4||A.length*2<S.length)return null;function k(V,ee,j){for(var D=V.substring(j,j+Math.floor(V.length/4)),q=-1,L="",$,z,H,F;(q=ee.indexOf(D,q+1))!=-1;){var I=l(V.substring(j),ee.substring(q)),G=o(V.substring(0,j),ee.substring(0,q));L.length<G+I&&(L=ee.substring(q-G,q)+ee.substring(q,q+I),$=V.substring(0,j-G),z=V.substring(j+I),H=ee.substring(0,q-G),F=ee.substring(q+I))}return L.length*2>=V.length?[$,z,H,F,L]:null}var N=k(S,A,Math.ceil(S.length/4)),x=k(S,A,Math.ceil(S.length/2)),E;if(!N&&!x)return null;x?N?E=N[4].length>x[4].length?N:x:E=x:E=N;var w,T,P,R;s.length>b.length?(w=E[0],T=E[1],P=E[2],R=E[3]):(P=E[0],R=E[1],w=E[2],T=E[3]);var U=E[4];return[w,T,P,R,U]}function v(s){s.push([y,""]);for(var b=0,S=0,A=0,k="",N="",x;b<s.length;)switch(s[b][0]){case c:A++,N+=s[b][1],b++;break;case i:S++,k+=s[b][1],b++;break;case y:S+A>1?(S!==0&&A!==0&&(x=l(N,k),x!==0&&(b-S-A>0&&s[b-S-A-1][0]==y?s[b-S-A-1][1]+=N.substring(0,x):(s.splice(0,0,[y,N.substring(0,x)]),b++),N=N.substring(x),k=k.substring(x)),x=o(N,k),x!==0&&(s[b][1]=N.substring(N.length-x)+s[b][1],N=N.substring(0,N.length-x),k=k.substring(0,k.length-x))),S===0?s.splice(b-A,S+A,[c,N]):A===0?s.splice(b-S,S+A,[i,k]):s.splice(b-S-A,S+A,[i,k],[c,N]),b=b-S-A+(S?1:0)+(A?1:0)+1):b!==0&&s[b-1][0]==y?(s[b-1][1]+=s[b][1],s.splice(b,1)):b++,A=0,S=0,k="",N="";break}s[s.length-1][1]===""&&s.pop();var E=!1;for(b=1;b<s.length-1;)s[b-1][0]==y&&s[b+1][0]==y&&(s[b][1].substring(s[b][1].length-s[b-1][1].length)==s[b-1][1]?(s[b][1]=s[b-1][1]+s[b][1].substring(0,s[b][1].length-s[b-1][1].length),s[b+1][1]=s[b-1][1]+s[b+1][1],s.splice(b-1,1),E=!0):s[b][1].substring(0,s[b+1][1].length)==s[b+1][1]&&(s[b-1][1]+=s[b+1][1],s[b][1]=s[b][1].substring(s[b+1][1].length)+s[b+1][1],s.splice(b+1,1),E=!0)),b++;E&&v(s)}var h=O;h.INSERT=c,h.DELETE=i,h.EQUAL=y,t.exports=h;function d(s,b){if(b===0)return[y,s];for(var S=0,A=0;A<s.length;A++){var k=s[A];if(k[0]===i||k[0]===y){var N=S+k[1].length;if(b===N)return[A+1,s];if(b<N){s=s.slice();var x=b-S,E=[k[0],k[1].slice(0,x)],w=[k[0],k[1].slice(x)];return s.splice(A,1,E,w),[A+1,s]}else S=N}}throw new Error("cursor_pos is out of bounds!")}function f(s,b){var S=d(s,b),A=S[1],k=S[0],N=A[k],x=A[k+1];if(N==null)return s;if(N[0]!==y)return s;if(x!=null&&N[1]+x[1]===x[1]+N[1])return A.splice(k,2,x,N),m(A,k,2);if(x!=null&&x[1].indexOf(N[1])===0){A.splice(k,2,[x[0],N[1]],[0,N[1]]);var E=x[1].slice(N[1].length);return E.length>0&&A.splice(k+2,0,[x[0],E]),m(A,k,3)}else return s}function u(s){for(var b=!1,S=function(x){return x.charCodeAt(0)>=56320&&x.charCodeAt(0)<=57343},A=function(x){return x.charCodeAt(x.length-1)>=55296&&x.charCodeAt(x.length-1)<=56319},k=2;k<s.length;k+=1)s[k-2][0]===y&&A(s[k-2][1])&&s[k-1][0]===i&&S(s[k-1][1])&&s[k][0]===c&&S(s[k][1])&&(b=!0,s[k-1][1]=s[k-2][1].slice(-1)+s[k-1][1],s[k][1]=s[k-2][1].slice(-1)+s[k][1],s[k-2][1]=s[k-2][1].slice(0,-1));if(!b)return s;for(var N=[],k=0;k<s.length;k+=1)s[k][1].length>0&&N.push(s[k]);return N}function m(s,b,S){for(var A=b+S-1;A>=0&&A>=b-1;A--)if(A+1<s.length){var k=s[A],N=s[A+1];k[0]===N[1]&&s.splice(A,2,[k[0],k[1]+N[1]])}return s}},function(t,r){r=t.exports=typeof Object.keys=="function"?Object.keys:i,r.shim=i;function i(c){var y=[];for(var O in c)y.push(O);return y}},function(t,r){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";r=t.exports=i?c:y,r.supported=c;function c(O){return Object.prototype.toString.call(O)=="[object Arguments]"}r.unsupported=y;function y(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(t,r){var i=Object.prototype.hasOwnProperty,c="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(c=!1));function O(_,p,l){this.fn=_,this.context=p,this.once=l||!1}function g(){this._events=new y,this._eventsCount=0}g.prototype.eventNames=function(){var p=[],l,o;if(this._eventsCount===0)return p;for(o in l=this._events)i.call(l,o)&&p.push(c?o.slice(1):o);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(l)):p},g.prototype.listeners=function(p,l){var o=c?c+p:p,a=this._events[o];if(l)return!!a;if(!a)return[];if(a.fn)return[a.fn];for(var v=0,h=a.length,d=new Array(h);v<h;v++)d[v]=a[v].fn;return d},g.prototype.emit=function(p,l,o,a,v,h){var d=c?c+p:p;if(!this._events[d])return!1;var f=this._events[d],u=arguments.length,m,s;if(f.fn){switch(f.once&&this.removeListener(p,f.fn,void 0,!0),u){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,l),!0;case 3:return f.fn.call(f.context,l,o),!0;case 4:return f.fn.call(f.context,l,o,a),!0;case 5:return f.fn.call(f.context,l,o,a,v),!0;case 6:return f.fn.call(f.context,l,o,a,v,h),!0}for(s=1,m=new Array(u-1);s<u;s++)m[s-1]=arguments[s];f.fn.apply(f.context,m)}else{var b=f.length,S;for(s=0;s<b;s++)switch(f[s].once&&this.removeListener(p,f[s].fn,void 0,!0),u){case 1:f[s].fn.call(f[s].context);break;case 2:f[s].fn.call(f[s].context,l);break;case 3:f[s].fn.call(f[s].context,l,o);break;case 4:f[s].fn.call(f[s].context,l,o,a);break;default:if(!m)for(S=1,m=new Array(u-1);S<u;S++)m[S-1]=arguments[S];f[s].fn.apply(f[s].context,m)}}return!0},g.prototype.on=function(p,l,o){var a=new O(l,o||this),v=c?c+p:p;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],a]:this._events[v].push(a):(this._events[v]=a,this._eventsCount++),this},g.prototype.once=function(p,l,o){var a=new O(l,o||this,!0),v=c?c+p:p;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],a]:this._events[v].push(a):(this._events[v]=a,this._eventsCount++),this},g.prototype.removeListener=function(p,l,o,a){var v=c?c+p:p;if(!this._events[v])return this;if(!l)return--this._eventsCount===0?this._events=new y:delete this._events[v],this;var h=this._events[v];if(h.fn)h.fn===l&&(!a||h.once)&&(!o||h.context===o)&&(--this._eventsCount===0?this._events=new y:delete this._events[v]);else{for(var d=0,f=[],u=h.length;d<u;d++)(h[d].fn!==l||a&&!h[d].once||o&&h[d].context!==o)&&f.push(h[d]);f.length?this._events[v]=f.length===1?f[0]:f:--this._eventsCount===0?this._events=new y:delete this._events[v]}return this},g.prototype.removeAllListeners=function(p){var l;return p?(l=c?c+p:p,this._events[l]&&(--this._eventsCount===0?this._events=new y:delete this._events[l])):(this._events=new y,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=c,g.EventEmitter=g,typeof t<"u"&&(t.exports=g)},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.matchText=r.matchSpacing=r.matchNewline=r.matchBlot=r.matchAttributor=r.default=void 0;var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},y=function(){function B(M,K){var X=[],Q=!0,ne=!1,oe=void 0;try{for(var le=M[Symbol.iterator](),me;!(Q=(me=le.next()).done)&&(X.push(me.value),!(K&&X.length===K));Q=!0);}catch(Oe){ne=!0,oe=Oe}finally{try{!Q&&le.return&&le.return()}finally{if(ne)throw oe}}return X}return function(M,K){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return B(M,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function B(M,K){for(var X=0;X<K.length;X++){var Q=K[X];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(M,Q.key,Q)}}return function(M,K,X){return K&&B(M.prototype,K),X&&B(M,X),M}}(),g=i(3),_=w(g),p=i(2),l=w(p),o=i(0),a=w(o),v=i(5),h=w(v),d=i(10),f=w(d),u=i(9),m=w(u),s=i(36),b=i(37),S=i(13),A=w(S),k=i(26),N=i(38),x=i(39),E=i(40);function w(B){return B&&B.__esModule?B:{default:B}}function T(B,M,K){return M in B?Object.defineProperty(B,M,{value:K,enumerable:!0,configurable:!0,writable:!0}):B[M]=K,B}function P(B,M){if(!(B instanceof M))throw new TypeError("Cannot call a class as a function")}function R(B,M){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:B}function U(B,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);B.prototype=Object.create(M&&M.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(B,M):B.__proto__=M)}var V=(0,f.default)("quill:clipboard"),ee="__ql-matcher",j=[[Node.TEXT_NODE,Y],[Node.TEXT_NODE,se],["br",re],[Node.ELEMENT_NODE,se],[Node.ELEMENT_NODE,J],[Node.ELEMENT_NODE,C],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,Z],["li",ae],["b",G.bind(G,"bold")],["i",G.bind(G,"italic")],["style",ie]],D=[s.AlignAttribute,N.DirectionAttribute].reduce(function(B,M){return B[M.keyName]=M,B},{}),q=[s.AlignStyle,b.BackgroundStyle,k.ColorStyle,N.DirectionStyle,x.FontStyle,E.SizeStyle].reduce(function(B,M){return B[M.keyName]=M,B},{}),L=function(B){U(M,B);function M(K,X){P(this,M);var Q=R(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,K,X));return Q.quill.root.addEventListener("paste",Q.onPaste.bind(Q)),Q.container=Q.quill.addContainer("ql-clipboard"),Q.container.setAttribute("contenteditable",!0),Q.container.setAttribute("tabindex",-1),Q.matchers=[],j.concat(Q.options.matchers).forEach(function(ne){var oe=y(ne,2),le=oe[0],me=oe[1];!X.matchVisual&&me===C||Q.addMatcher(le,me)}),Q}return O(M,[{key:"addMatcher",value:function(X,Q){this.matchers.push([X,Q])}},{key:"convert",value:function(X){if(typeof X=="string")return this.container.innerHTML=X.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[A.default.blotName]){var ne=this.container.innerText;return this.container.innerHTML="",new l.default().insert(ne,T({},A.default.blotName,Q[A.default.blotName]))}var oe=this.prepareMatching(),le=y(oe,2),me=le[0],Oe=le[1],fe=I(this.container,me,Oe);return H(fe,`
`)&&fe.ops[fe.ops.length-1].attributes==null&&(fe=fe.compose(new l.default().retain(fe.length()-1).delete(1))),V.log("convert",this.container.innerHTML,fe),this.container.innerHTML="",fe}},{key:"dangerouslyPasteHTML",value:function(X,Q){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof X=="string")this.quill.setContents(this.convert(X),Q),this.quill.setSelection(0,h.default.sources.SILENT);else{var oe=this.convert(Q);this.quill.updateContents(new l.default().retain(X).concat(oe),ne),this.quill.setSelection(X+oe.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(X){var Q=this;if(!(X.defaultPrevented||!this.quill.isEnabled())){var ne=this.quill.getSelection(),oe=new l.default().retain(ne.index),le=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout(function(){oe=oe.concat(Q.convert()).delete(ne.length),Q.quill.updateContents(oe,h.default.sources.USER),Q.quill.setSelection(oe.length()-ne.length,h.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=le,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var X=this,Q=[],ne=[];return this.matchers.forEach(function(oe){var le=y(oe,2),me=le[0],Oe=le[1];switch(me){case Node.TEXT_NODE:ne.push(Oe);break;case Node.ELEMENT_NODE:Q.push(Oe);break;default:[].forEach.call(X.container.querySelectorAll(me),function(fe){fe[ee]=fe[ee]||[],fe[ee].push(Oe)});break}}),[Q,ne]}}]),M}(m.default);L.DEFAULTS={matchers:[],matchVisual:!0};function $(B,M,K){return(typeof M>"u"?"undefined":c(M))==="object"?Object.keys(M).reduce(function(X,Q){return $(X,Q,M[Q])},B):B.reduce(function(X,Q){return Q.attributes&&Q.attributes[M]?X.push(Q):X.insert(Q.insert,(0,_.default)({},T({},M,K),Q.attributes))},new l.default)}function z(B){if(B.nodeType!==Node.ELEMENT_NODE)return{};var M="__ql-computed-style";return B[M]||(B[M]=window.getComputedStyle(B))}function H(B,M){for(var K="",X=B.ops.length-1;X>=0&&K.length<M.length;--X){var Q=B.ops[X];if(typeof Q.insert!="string")break;K=Q.insert+K}return K.slice(-1*M.length)===M}function F(B){if(B.childNodes.length===0)return!1;var M=z(B);return["block","list-item"].indexOf(M.display)>-1}function I(B,M,K){return B.nodeType===B.TEXT_NODE?K.reduce(function(X,Q){return Q(B,X)},new l.default):B.nodeType===B.ELEMENT_NODE?[].reduce.call(B.childNodes||[],function(X,Q){var ne=I(Q,M,K);return Q.nodeType===B.ELEMENT_NODE&&(ne=M.reduce(function(oe,le){return le(Q,oe)},ne),ne=(Q[ee]||[]).reduce(function(oe,le){return le(Q,oe)},ne)),X.concat(ne)},new l.default):new l.default}function G(B,M,K){return $(K,B,!0)}function W(B,M){var K=a.default.Attributor.Attribute.keys(B),X=a.default.Attributor.Class.keys(B),Q=a.default.Attributor.Style.keys(B),ne={};return K.concat(X).concat(Q).forEach(function(oe){var le=a.default.query(oe,a.default.Scope.ATTRIBUTE);le!=null&&(ne[le.attrName]=le.value(B),ne[le.attrName])||(le=D[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(ne[le.attrName]=le.value(B)||void 0),le=q[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(le=q[oe],ne[le.attrName]=le.value(B)||void 0))}),Object.keys(ne).length>0&&(M=$(M,ne)),M}function J(B,M){var K=a.default.query(B);if(K==null)return M;if(K.prototype instanceof a.default.Embed){var X={},Q=K.value(B);Q!=null&&(X[K.blotName]=Q,M=new l.default().insert(X,K.formats(B)))}else typeof K.formats=="function"&&(M=$(M,K.blotName,K.formats(B)));return M}function re(B,M){return H(M,`
`)||M.insert(`
`),M}function ie(){return new l.default}function ae(B,M){var K=a.default.query(B);if(K==null||K.blotName!=="list-item"||!H(M,`
`))return M;for(var X=-1,Q=B.parentNode;!Q.classList.contains("ql-clipboard");)(a.default.query(Q)||{}).blotName==="list"&&(X+=1),Q=Q.parentNode;return X<=0?M:M.compose(new l.default().retain(M.length()-1).retain(1,{indent:X}))}function se(B,M){return H(M,`
`)||(F(B)||M.length()>0&&B.nextSibling&&F(B.nextSibling))&&M.insert(`
`),M}function C(B,M){if(F(B)&&B.nextElementSibling!=null&&!H(M,`
`)){var K=B.offsetHeight+parseFloat(z(B).marginTop)+parseFloat(z(B).marginBottom);B.nextElementSibling.offsetTop>B.offsetTop+K*1.5&&M.insert(`
`)}return M}function Z(B,M){var K={},X=B.style||{};return X.fontStyle&&z(B).fontStyle==="italic"&&(K.italic=!0),X.fontWeight&&(z(B).fontWeight.startsWith("bold")||parseInt(z(B).fontWeight)>=700)&&(K.bold=!0),Object.keys(K).length>0&&(M=$(M,K)),parseFloat(X.textIndent||0)>0&&(M=new l.default().insert(" ").concat(M)),M}function Y(B,M){var K=B.data;if(B.parentNode.tagName==="O:P")return M.insert(K.trim());if(K.trim().length===0&&B.parentNode.classList.contains("ql-clipboard"))return M;if(!z(B.parentNode).whiteSpace.startsWith("pre")){var X=function(ne,oe){return oe=oe.replace(/[^\u00a0]/g,""),oe.length<1&&ne?" ":oe};K=K.replace(/\r\n/g," ").replace(/\n/g," "),K=K.replace(/\s\s+/g,X.bind(X,!0)),(B.previousSibling==null&&F(B.parentNode)||B.previousSibling!=null&&F(B.previousSibling))&&(K=K.replace(/^\s+/,X.bind(X,!1))),(B.nextSibling==null&&F(B.parentNode)||B.nextSibling!=null&&F(B.nextSibling))&&(K=K.replace(/\s+$/,X.bind(X,!1)))}return M.insert(K)}r.default=L,r.matchAttributor=W,r.matchBlot=J,r.matchNewline=se,r.matchSpacing=C,r.matchText=Y},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function v(h,d){for(var f=0;f<d.length;f++){var u=d[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}return function(h,d,f){return d&&v(h.prototype,d),f&&v(h,f),h}}(),y=function v(h,d,f){h===null&&(h=Function.prototype);var u=Object.getOwnPropertyDescriptor(h,d);if(u===void 0){var m=Object.getPrototypeOf(h);return m===null?void 0:v(m,d,f)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(f)}},O=i(6),g=_(O);function _(v){return v&&v.__esModule?v:{default:v}}function p(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function o(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var a=function(v){o(h,v);function h(){return p(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return c(h,[{key:"optimize",value:function(f){y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,f),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return y(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),h}(g.default);a.blotName="bold",a.tagName=["STRONG","B"],r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.addControls=r.default=void 0;var c=function(){function E(w,T){var P=[],R=!0,U=!1,V=void 0;try{for(var ee=w[Symbol.iterator](),j;!(R=(j=ee.next()).done)&&(P.push(j.value),!(T&&P.length===T));R=!0);}catch(D){U=!0,V=D}finally{try{!R&&ee.return&&ee.return()}finally{if(U)throw V}}return P}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return E(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function E(w,T){for(var P=0;P<T.length;P++){var R=T[P];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}return function(w,T,P){return T&&E(w.prototype,T),P&&E(w,P),w}}(),O=i(2),g=f(O),_=i(0),p=f(_),l=i(5),o=f(l),a=i(10),v=f(a),h=i(9),d=f(h);function f(E){return E&&E.__esModule?E:{default:E}}function u(E,w,T){return w in E?Object.defineProperty(E,w,{value:T,enumerable:!0,configurable:!0,writable:!0}):E[w]=T,E}function m(E,w){if(!(E instanceof w))throw new TypeError("Cannot call a class as a function")}function s(E,w){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:E}function b(E,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);E.prototype=Object.create(w&&w.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(E,w):E.__proto__=w)}var S=(0,v.default)("quill:toolbar"),A=function(E){b(w,E);function w(T,P){m(this,w);var R=s(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T,P));if(Array.isArray(R.options.container)){var U=document.createElement("div");N(U,R.options.container),T.container.parentNode.insertBefore(U,T.container),R.container=U}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var V;return V=S.error("Container required for toolbar",R.options),s(R,V)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(ee){R.addHandler(ee,R.options.handlers[ee])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(ee){R.attach(ee)}),R.quill.on(o.default.events.EDITOR_CHANGE,function(ee,j){ee===o.default.events.SELECTION_CHANGE&&R.update(j)}),R.quill.on(o.default.events.SCROLL_OPTIMIZE,function(){var ee=R.quill.selection.getRange(),j=c(ee,1),D=j[0];R.update(D)}),R}return y(w,[{key:"addHandler",value:function(P,R){this.handlers[P]=R}},{key:"attach",value:function(P){var R=this,U=[].find.call(P.classList,function(ee){return ee.indexOf("ql-")===0});if(!!U){if(U=U.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[U]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[U]==null){S.warn("ignoring attaching to disabled format",U,P);return}if(p.default.query(U)==null){S.warn("ignoring attaching to nonexistent format",U,P);return}}var V=P.tagName==="SELECT"?"change":"click";P.addEventListener(V,function(ee){var j=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var D=P.options[P.selectedIndex];D.hasAttribute("selected")?j=!1:j=D.value||!1}else P.classList.contains("ql-active")?j=!1:j=P.value||!P.hasAttribute("value"),ee.preventDefault();R.quill.focus();var q=R.quill.selection.getRange(),L=c(q,1),$=L[0];if(R.handlers[U]!=null)R.handlers[U].call(R,j);else if(p.default.query(U).prototype instanceof p.default.Embed){if(j=prompt("Enter "+U),!j)return;R.quill.updateContents(new g.default().retain($.index).delete($.length).insert(u({},U,j)),o.default.sources.USER)}else R.quill.format(U,j,o.default.sources.USER);R.update($)}),this.controls.push([U,P])}}},{key:"update",value:function(P){var R=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function(U){var V=c(U,2),ee=V[0],j=V[1];if(j.tagName==="SELECT"){var D=void 0;if(P==null)D=null;else if(R[ee]==null)D=j.querySelector("option[selected]");else if(!Array.isArray(R[ee])){var q=R[ee];typeof q=="string"&&(q=q.replace(/\"/g,'\\"')),D=j.querySelector('option[value="'+q+'"]')}D==null?(j.value="",j.selectedIndex=-1):D.selected=!0}else if(P==null)j.classList.remove("ql-active");else if(j.hasAttribute("value")){var L=R[ee]===j.getAttribute("value")||R[ee]!=null&&R[ee].toString()===j.getAttribute("value")||R[ee]==null&&!j.getAttribute("value");j.classList.toggle("ql-active",L)}else j.classList.toggle("ql-active",R[ee]!=null)})}}]),w}(d.default);A.DEFAULTS={};function k(E,w,T){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+w),T!=null&&(P.value=T),E.appendChild(P)}function N(E,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(T){var P=document.createElement("span");P.classList.add("ql-formats"),T.forEach(function(R){if(typeof R=="string")k(P,R);else{var U=Object.keys(R)[0],V=R[U];Array.isArray(V)?x(P,U,V):k(P,U,V)}}),E.appendChild(P)})}function x(E,w,T){var P=document.createElement("select");P.classList.add("ql-"+w),T.forEach(function(R){var U=document.createElement("option");R!==!1?U.setAttribute("value",R):U.setAttribute("selected","selected"),P.appendChild(U)}),E.appendChild(P)}A.DEFAULTS={container:null,handlers:{clean:function(){var w=this,T=this.quill.getSelection();if(T!=null)if(T.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function(R){p.default.query(R,p.default.Scope.INLINE)!=null&&w.quill.format(R,!1)})}else this.quill.removeFormat(T,o.default.sources.USER)},direction:function(w){var T=this.quill.getFormat().align;w==="rtl"&&T==null?this.quill.format("align","right",o.default.sources.USER):!w&&T==="right"&&this.quill.format("align",!1,o.default.sources.USER),this.quill.format("direction",w,o.default.sources.USER)},indent:function(w){var T=this.quill.getSelection(),P=this.quill.getFormat(T),R=parseInt(P.indent||0);if(w==="+1"||w==="-1"){var U=w==="+1"?1:-1;P.direction==="rtl"&&(U*=-1),this.quill.format("indent",R+U,o.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,o.default.sources.USER)},list:function(w){var T=this.quill.getSelection(),P=this.quill.getFormat(T);w==="check"?P.list==="checked"||P.list==="unchecked"?this.quill.format("list",!1,o.default.sources.USER):this.quill.format("list","unchecked",o.default.sources.USER):this.quill.format("list",w,o.default.sources.USER)}}},r.default=A,r.addControls=N},function(t,r){t.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(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function v(h,d){for(var f=0;f<d.length;f++){var u=d[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}return function(h,d,f){return d&&v(h.prototype,d),f&&v(h,f),h}}(),y=function v(h,d,f){h===null&&(h=Function.prototype);var u=Object.getOwnPropertyDescriptor(h,d);if(u===void 0){var m=Object.getPrototypeOf(h);return m===null?void 0:v(m,d,f)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(f)}},O=i(28),g=_(O);function _(v){return v&&v.__esModule?v:{default:v}}function p(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function o(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var a=function(v){o(h,v);function h(d,f){p(this,h);var u=l(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return u.label.innerHTML=f,u.container.classList.add("ql-color-picker"),[].slice.call(u.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(m){m.classList.add("ql-primary")}),u}return c(h,[{key:"buildItem",value:function(f){var u=y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"buildItem",this).call(this,f);return u.style.backgroundColor=f.getAttribute("value")||"",u}},{key:"selectItem",value:function(f,u){y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,f,u);var m=this.label.querySelector(".ql-color-label"),s=f&&f.getAttribute("data-value")||"";m&&(m.tagName==="line"?m.style.stroke=s:m.style.fill=s)}}]),h}(g.default);r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function v(h,d){for(var f=0;f<d.length;f++){var u=d[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}return function(h,d,f){return d&&v(h.prototype,d),f&&v(h,f),h}}(),y=function v(h,d,f){h===null&&(h=Function.prototype);var u=Object.getOwnPropertyDescriptor(h,d);if(u===void 0){var m=Object.getPrototypeOf(h);return m===null?void 0:v(m,d,f)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(f)}},O=i(28),g=_(O);function _(v){return v&&v.__esModule?v:{default:v}}function p(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function o(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var a=function(v){o(h,v);function h(d,f){p(this,h);var u=l(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return u.container.classList.add("ql-icon-picker"),[].forEach.call(u.container.querySelectorAll(".ql-picker-item"),function(m){m.innerHTML=f[m.getAttribute("data-value")||""]}),u.defaultItem=u.container.querySelector(".ql-selected"),u.selectItem(u.defaultItem),u}return c(h,[{key:"selectItem",value:function(f,u){y(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"selectItem",this).call(this,f,u),f=f||this.defaultItem,this.label.innerHTML=f.innerHTML}}]),h}(g.default);r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function g(_,p){for(var l=0;l<p.length;l++){var o=p[l];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(_,o.key,o)}}return function(_,p,l){return p&&g(_.prototype,p),l&&g(_,l),_}}();function y(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}var O=function(){function g(_,p){var l=this;y(this,g),this.quill=_,this.boundsContainer=p||document.body,this.root=_.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return c(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(p){var l=p.left+p.width/2-this.root.offsetWidth/2,o=p.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=o+"px",this.root.classList.remove("ql-flip");var a=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),h=0;if(v.right>a.right&&(h=a.right-v.right,this.root.style.left=l+h+"px"),v.left<a.left&&(h=a.left-v.left,this.root.style.left=l+h+"px"),v.bottom>a.bottom){var d=v.bottom-v.top,f=p.bottom-p.top+d;this.root.style.top=o-f+"px",this.root.classList.add("ql-flip")}return h}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g}();r.default=O},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function x(E,w){var T=[],P=!0,R=!1,U=void 0;try{for(var V=E[Symbol.iterator](),ee;!(P=(ee=V.next()).done)&&(T.push(ee.value),!(w&&T.length===w));P=!0);}catch(j){R=!0,U=j}finally{try{!P&&V.return&&V.return()}finally{if(R)throw U}}return T}return function(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return x(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function x(E,w,T){E===null&&(E=Function.prototype);var P=Object.getOwnPropertyDescriptor(E,w);if(P===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:x(R,w,T)}else{if("value"in P)return P.value;var U=P.get;return U===void 0?void 0:U.call(T)}},O=function(){function x(E,w){for(var T=0;T<w.length;T++){var P=w[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(E,P.key,P)}}return function(E,w,T){return w&&x(E.prototype,w),T&&x(E,T),E}}(),g=i(3),_=m(g),p=i(8),l=m(p),o=i(43),a=m(o),v=i(27),h=m(v),d=i(15),f=i(41),u=m(f);function m(x){return x&&x.__esModule?x:{default:x}}function s(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function b(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function S(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}var A=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=function(x){S(E,x);function E(w,T){s(this,E),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=A);var P=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,T));return P.quill.container.classList.add("ql-snow"),P}return O(E,[{key:"extendToolbar",value:function(T){T.container.classList.add("ql-snow"),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),u.default),this.tooltip=new N(this.quill,this.options.bounds),T.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,R){T.handlers.link.call(T,!R.format.link)})}}]),E}(a.default);k.DEFAULTS=(0,_.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){if(E){var w=this.quill.getSelection();if(w==null||w.length==0)return;var T=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(T)&&T.indexOf("mailto:")!==0&&(T="mailto:"+T);var P=this.quill.theme.tooltip;P.edit("link",T)}else this.quill.format("link",!1)}}}}});var N=function(x){S(E,x);function E(w,T){s(this,E);var P=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w,T));return P.preview=P.root.querySelector("a.ql-preview"),P}return O(E,[{key:"listen",value:function(){var T=this;y(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){T.root.classList.contains("ql-editing")?T.save():T.edit("link",T.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(T.linkRange!=null){var R=T.linkRange;T.restoreFocus(),T.quill.formatText(R,"link",!1,l.default.sources.USER),delete T.linkRange}P.preventDefault(),T.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(P,R,U){if(P!=null){if(P.length===0&&U===l.default.sources.USER){var V=T.quill.scroll.descendant(h.default,P.index),ee=c(V,2),j=ee[0],D=ee[1];if(j!=null){T.linkRange=new d.Range(P.index-D,j.length());var q=h.default.formats(j.domNode);T.preview.textContent=q,T.preview.setAttribute("href",q),T.show(),T.position(T.quill.getBounds(T.linkRange));return}}else delete T.linkRange;T.hide()}})}},{key:"show",value:function(){y(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),E}(o.BaseTooltip);N.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(""),r.default=k},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(29),y=Q(c),O=i(36),g=i(38),_=i(64),p=i(65),l=Q(p),o=i(66),a=Q(o),v=i(67),h=Q(v),d=i(37),f=i(26),u=i(39),m=i(40),s=i(56),b=Q(s),S=i(68),A=Q(S),k=i(27),N=Q(k),x=i(69),E=Q(x),w=i(70),T=Q(w),P=i(71),R=Q(P),U=i(72),V=Q(U),ee=i(73),j=Q(ee),D=i(13),q=Q(D),L=i(74),$=Q(L),z=i(75),H=Q(z),F=i(57),I=Q(F),G=i(41),W=Q(G),J=i(28),re=Q(J),ie=i(59),ae=Q(ie),se=i(60),C=Q(se),Z=i(61),Y=Q(Z),B=i(108),M=Q(B),K=i(62),X=Q(K);function Q(ne){return ne&&ne.__esModule?ne:{default:ne}}y.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":u.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":u.FontStyle,"attributors/style/size":m.SizeStyle},!0),y.default.register({"formats/align":O.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":_.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":u.FontClass,"formats/size":m.SizeClass,"formats/blockquote":l.default,"formats/code-block":q.default,"formats/header":a.default,"formats/list":h.default,"formats/bold":b.default,"formats/code":D.Code,"formats/italic":A.default,"formats/link":N.default,"formats/script":E.default,"formats/strike":T.default,"formats/underline":R.default,"formats/image":V.default,"formats/video":j.default,"formats/list/item":v.ListItem,"modules/formula":$.default,"modules/syntax":H.default,"modules/toolbar":I.default,"themes/bubble":M.default,"themes/snow":X.default,"ui/icons":W.default,"ui/picker":re.default,"ui/icon-picker":C.default,"ui/color-picker":ae.default,"ui/tooltip":Y.default},!0),r.default=y.default},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.IndentClass=void 0;var c=function(){function h(d,f){for(var u=0;u<f.length;u++){var m=f[u];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,f,u){return f&&h(d.prototype,f),u&&h(d,u),d}}(),y=function h(d,f,u){d===null&&(d=Function.prototype);var m=Object.getOwnPropertyDescriptor(d,f);if(m===void 0){var s=Object.getPrototypeOf(d);return s===null?void 0:h(s,f,u)}else{if("value"in m)return m.value;var b=m.get;return b===void 0?void 0:b.call(u)}},O=i(0),g=_(O);function _(h){return h&&h.__esModule?h:{default:h}}function p(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function l(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function o(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var a=function(h){o(d,h);function d(){return p(this,d),l(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return c(d,[{key:"add",value:function(u,m){if(m==="+1"||m==="-1"){var s=this.value(u)||0;m=m==="+1"?s+1:s-1}return m===0?(this.remove(u),!0):y(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"add",this).call(this,u,m)}},{key:"canAdd",value:function(u,m){return y(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"canAdd",this).call(this,u,m)||y(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"canAdd",this).call(this,u,parseInt(m))}},{key:"value",value:function(u){return parseInt(y(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"value",this).call(this,u))||void 0}}]),d}(g.default.Attributor.Class),v=new a("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});r.IndentClass=v},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(4),y=O(c);function O(o){return o&&o.__esModule?o:{default:o}}function g(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return g(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(y.default);l.blotName="blockquote",l.tagName="blockquote",r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function a(v,h){for(var d=0;d<h.length;d++){var f=h[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(v,f.key,f)}}return function(v,h,d){return h&&a(v.prototype,h),d&&a(v,d),v}}(),y=i(4),O=g(y);function g(a){return a&&a.__esModule?a:{default:a}}function _(a,v){if(!(a instanceof v))throw new TypeError("Cannot call a class as a function")}function p(a,v){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:a}function l(a,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);a.prototype=Object.create(v&&v.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(a,v):a.__proto__=v)}var o=function(a){l(v,a);function v(){return _(this,v),p(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return c(v,null,[{key:"formats",value:function(d){return this.tagName.indexOf(d.tagName)+1}}]),v}(O.default);o.blotName="header",o.tagName=["H1","H2","H3","H4","H5","H6"],r.default=o},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ListItem=void 0;var c=function(){function s(b,S){for(var A=0;A<S.length;A++){var k=S[A];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(b,k.key,k)}}return function(b,S,A){return S&&s(b.prototype,S),A&&s(b,A),b}}(),y=function s(b,S,A){b===null&&(b=Function.prototype);var k=Object.getOwnPropertyDescriptor(b,S);if(k===void 0){var N=Object.getPrototypeOf(b);return N===null?void 0:s(N,S,A)}else{if("value"in k)return k.value;var x=k.get;return x===void 0?void 0:x.call(A)}},O=i(0),g=a(O),_=i(4),p=a(_),l=i(25),o=a(l);function a(s){return s&&s.__esModule?s:{default:s}}function v(s,b,S){return b in s?Object.defineProperty(s,b,{value:S,enumerable:!0,configurable:!0,writable:!0}):s[b]=S,s}function h(s,b){if(!(s instanceof b))throw new TypeError("Cannot call a class as a function")}function d(s,b){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:s}function f(s,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);s.prototype=Object.create(b&&b.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(s,b):s.__proto__=b)}var u=function(s){f(b,s);function b(){return h(this,b),d(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return c(b,[{key:"format",value:function(A,k){A===m.blotName&&!k?this.replaceWith(g.default.create(this.statics.scope)):y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,A,k)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(A,k){return this.parent.isolate(this.offset(this.parent),this.length()),A===this.parent.statics.blotName?(this.parent.replaceWith(A,k),this):(this.parent.unwrap(),y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replaceWith",this).call(this,A,k))}}],[{key:"formats",value:function(A){return A.tagName===this.tagName?void 0:y(b.__proto__||Object.getPrototypeOf(b),"formats",this).call(this,A)}}]),b}(p.default);u.blotName="list-item",u.tagName="LI";var m=function(s){f(b,s),c(b,null,[{key:"create",value:function(A){var k=A==="ordered"?"OL":"UL",N=y(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,k);return(A==="checked"||A==="unchecked")&&N.setAttribute("data-checked",A==="checked"),N}},{key:"formats",value:function(A){if(A.tagName==="OL")return"ordered";if(A.tagName==="UL")return A.hasAttribute("data-checked")?A.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function b(S){h(this,b);var A=d(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,S)),k=function(x){if(x.target.parentNode===S){var E=A.statics.formats(S),w=g.default.find(x.target);E==="checked"?w.format("list","unchecked"):E==="unchecked"&&w.format("list","checked")}};return S.addEventListener("touchstart",k),S.addEventListener("mousedown",k),A}return c(b,[{key:"format",value:function(A,k){this.children.length>0&&this.children.tail.format(A,k)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,k){if(A instanceof u)y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,A,k);else{var N=k==null?this.length():k.offset(this),x=this.split(N);x.parent.insertBefore(A,x)}}},{key:"optimize",value:function(A){y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,A);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&k.domNode.tagName===this.domNode.tagName&&k.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(k.moveChildren(this),k.remove())}},{key:"replace",value:function(A){if(A.statics.blotName!==this.statics.blotName){var k=g.default.create(this.statics.defaultChild);A.moveChildren(k),this.appendChild(k)}y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,A)}}]),b}(o.default);m.blotName="list",m.scope=g.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[u],r.ListItem=u,r.default=m},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(56),y=O(c);function O(o){return o&&o.__esModule?o:{default:o}}function g(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return g(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(y.default);l.blotName="italic",l.tagName=["EM","I"],r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function v(h,d){for(var f=0;f<d.length;f++){var u=d[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(h,u.key,u)}}return function(h,d,f){return d&&v(h.prototype,d),f&&v(h,f),h}}(),y=function v(h,d,f){h===null&&(h=Function.prototype);var u=Object.getOwnPropertyDescriptor(h,d);if(u===void 0){var m=Object.getPrototypeOf(h);return m===null?void 0:v(m,d,f)}else{if("value"in u)return u.value;var s=u.get;return s===void 0?void 0:s.call(f)}},O=i(6),g=_(O);function _(v){return v&&v.__esModule?v:{default:v}}function p(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function l(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function o(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var a=function(v){o(h,v);function h(){return p(this,h),l(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return c(h,null,[{key:"create",value:function(f){return f==="super"?document.createElement("sup"):f==="sub"?document.createElement("sub"):y(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,f)}},{key:"formats",value:function(f){if(f.tagName==="SUB")return"sub";if(f.tagName==="SUP")return"super"}}]),h}(g.default);a.blotName="script",a.tagName=["SUB","SUP"],r.default=a},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(6),y=O(c);function O(o){return o&&o.__esModule?o:{default:o}}function g(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return g(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(y.default);l.blotName="strike",l.tagName="S",r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=i(6),y=O(c);function O(o){return o&&o.__esModule?o:{default:o}}function g(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function _(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function p(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var l=function(o){p(a,o);function a(){return g(this,a),_(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(y.default);l.blotName="underline",l.tagName="U",r.default=l},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function d(f,u){for(var m=0;m<u.length;m++){var s=u[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,s.key,s)}}return function(f,u,m){return u&&d(f.prototype,u),m&&d(f,m),f}}(),y=function d(f,u,m){f===null&&(f=Function.prototype);var s=Object.getOwnPropertyDescriptor(f,u);if(s===void 0){var b=Object.getPrototypeOf(f);return b===null?void 0:d(b,u,m)}else{if("value"in s)return s.value;var S=s.get;return S===void 0?void 0:S.call(m)}},O=i(0),g=p(O),_=i(27);function p(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function o(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function a(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var v=["alt","height","width"],h=function(d){a(f,d);function f(){return l(this,f),o(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return c(f,[{key:"format",value:function(m,s){v.indexOf(m)>-1?s?this.domNode.setAttribute(m,s):this.domNode.removeAttribute(m):y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,m,s)}}],[{key:"create",value:function(m){var s=y(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,m);return typeof m=="string"&&s.setAttribute("src",this.sanitize(m)),s}},{key:"formats",value:function(m){return v.reduce(function(s,b){return m.hasAttribute(b)&&(s[b]=m.getAttribute(b)),s},{})}},{key:"match",value:function(m){return/\.(jpe?g|gif|png)$/.test(m)||/^data:image\/.+;base64/.test(m)}},{key:"sanitize",value:function(m){return(0,_.sanitize)(m,["http","https","data"])?m:"//:0"}},{key:"value",value:function(m){return m.getAttribute("src")}}]),f}(g.default.Embed);h.blotName="image",h.tagName="IMG",r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function d(f,u){for(var m=0;m<u.length;m++){var s=u[m];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(f,s.key,s)}}return function(f,u,m){return u&&d(f.prototype,u),m&&d(f,m),f}}(),y=function d(f,u,m){f===null&&(f=Function.prototype);var s=Object.getOwnPropertyDescriptor(f,u);if(s===void 0){var b=Object.getPrototypeOf(f);return b===null?void 0:d(b,u,m)}else{if("value"in s)return s.value;var S=s.get;return S===void 0?void 0:S.call(m)}},O=i(4),g=i(27),_=p(g);function p(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function o(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function a(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var v=["height","width"],h=function(d){a(f,d);function f(){return l(this,f),o(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return c(f,[{key:"format",value:function(m,s){v.indexOf(m)>-1?s?this.domNode.setAttribute(m,s):this.domNode.removeAttribute(m):y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,m,s)}}],[{key:"create",value:function(m){var s=y(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,m);return s.setAttribute("frameborder","0"),s.setAttribute("allowfullscreen",!0),s.setAttribute("src",this.sanitize(m)),s}},{key:"formats",value:function(m){return v.reduce(function(s,b){return m.hasAttribute(b)&&(s[b]=m.getAttribute(b)),s},{})}},{key:"sanitize",value:function(m){return _.default.sanitize(m)}},{key:"value",value:function(m){return m.getAttribute("src")}}]),f}(O.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",r.default=h},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.FormulaBlot=void 0;var c=function(){function m(s,b){for(var S=0;S<b.length;S++){var A=b[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(s,A.key,A)}}return function(s,b,S){return b&&m(s.prototype,b),S&&m(s,S),s}}(),y=function m(s,b,S){s===null&&(s=Function.prototype);var A=Object.getOwnPropertyDescriptor(s,b);if(A===void 0){var k=Object.getPrototypeOf(s);return k===null?void 0:m(k,b,S)}else{if("value"in A)return A.value;var N=A.get;return N===void 0?void 0:N.call(S)}},O=i(35),g=a(O),_=i(5),p=a(_),l=i(9),o=a(l);function a(m){return m&&m.__esModule?m:{default:m}}function v(m,s){if(!(m instanceof s))throw new TypeError("Cannot call a class as a function")}function h(m,s){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:m}function d(m,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);m.prototype=Object.create(s&&s.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(m,s):m.__proto__=s)}var f=function(m){d(s,m);function s(){return v(this,s),h(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return c(s,null,[{key:"create",value:function(S){var A=y(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,A,{throwOnError:!1,errorColor:"#f00"}),A.setAttribute("data-value",S)),A}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),s}(g.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var u=function(m){d(s,m),c(s,null,[{key:"register",value:function(){p.default.register(f,!0)}}]);function s(){v(this,s);var b=h(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return b}return s}(o.default);r.FormulaBlot=f,r.default=u},function(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.CodeToken=r.CodeBlock=void 0;var c=function(){function S(A,k){for(var N=0;N<k.length;N++){var x=k[N];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}return function(A,k,N){return k&&S(A.prototype,k),N&&S(A,N),A}}(),y=function S(A,k,N){A===null&&(A=Function.prototype);var x=Object.getOwnPropertyDescriptor(A,k);if(x===void 0){var E=Object.getPrototypeOf(A);return E===null?void 0:S(E,k,N)}else{if("value"in x)return x.value;var w=x.get;return w===void 0?void 0:w.call(N)}},O=i(0),g=h(O),_=i(5),p=h(_),l=i(9),o=h(l),a=i(13),v=h(a);function h(S){return S&&S.__esModule?S:{default:S}}function d(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function f(S,A){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:S}function u(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(S,A):S.__proto__=A)}var m=function(S){u(A,S);function A(){return d(this,A),f(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return c(A,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),y(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var x=this.domNode.textContent;this.cachedText!==x&&((x.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(x),this.domNode.normalize(),this.attach()),this.cachedText=x)}}]),A}(v.default);m.className="ql-syntax";var s=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),b=function(S){u(A,S),c(A,null,[{key:"register",value:function(){p.default.register(s,!0),p.default.register(m,!0)}}]);function A(k,N){d(this,A);var x=f(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,k,N));if(typeof x.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return x.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){x.highlight(),E=null},x.options.interval)}),x.highlight(),x}return c(A,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(p.default.sources.USER);var x=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(E){E.highlight(N.options.highlight)}),this.quill.update(p.default.sources.SILENT),x!=null&&this.quill.setSelection(x,p.default.sources.SILENT)}}}]),A}(o.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var A=window.hljs.highlightAuto(S);return A.value}}(),interval:1e3},r.CodeBlock=m,r.CodeToken=s,r.default=b},function(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r){t.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(t,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.BubbleTooltip=void 0;var c=function A(k,N,x){k===null&&(k=Function.prototype);var E=Object.getOwnPropertyDescriptor(k,N);if(E===void 0){var w=Object.getPrototypeOf(k);return w===null?void 0:A(w,N,x)}else{if("value"in E)return E.value;var T=E.get;return T===void 0?void 0:T.call(x)}},y=function(){function A(k,N){for(var x=0;x<N.length;x++){var E=N[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(k,E.key,E)}}return function(k,N,x){return N&&A(k.prototype,N),x&&A(k,x),k}}(),O=i(3),g=d(O),_=i(8),p=d(_),l=i(43),o=d(l),a=i(15),v=i(41),h=d(v);function d(A){return A&&A.__esModule?A:{default:A}}function f(A,k){if(!(A instanceof k))throw new TypeError("Cannot call a class as a function")}function u(A,k){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:A}function m(A,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);A.prototype=Object.create(k&&k.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(A,k):A.__proto__=k)}var s=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(A){m(k,A);function k(N,x){f(this,k),x.modules.toolbar!=null&&x.modules.toolbar.container==null&&(x.modules.toolbar.container=s);var E=u(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,N,x));return E.quill.container.classList.add("ql-bubble"),E}return y(k,[{key:"extendToolbar",value:function(x){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(x.container),this.buildButtons([].slice.call(x.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(x.container.querySelectorAll("select")),h.default)}}]),k}(o.default);b.DEFAULTS=(0,g.default)(!0,{},o.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){k?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(A){m(k,A);function k(N,x){f(this,k);var E=u(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,N,x));return E.quill.on(p.default.events.EDITOR_CHANGE,function(w,T,P,R){if(w===p.default.events.SELECTION_CHANGE)if(T!=null&&T.length>0&&R===p.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var U=E.quill.getLines(T.index,T.length);if(U.length===1)E.position(E.quill.getBounds(T));else{var V=U[U.length-1],ee=E.quill.getIndex(V),j=Math.min(V.length()-1,T.index+T.length-ee),D=E.quill.getBounds(new a.Range(ee,j));E.position(D)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return y(k,[{key:"listen",value:function(){var x=this;c(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){x.root.classList.remove("ql-editing")}),this.quill.on(p.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!x.root.classList.contains("ql-hidden")){var E=x.quill.getSelection();E!=null&&x.position(x.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(x){var E=c(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"position",this).call(this,x),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",E===0)return E;w.style.marginLeft=-1*E-w.offsetWidth/2+"px"}}]),k}(l.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),r.BubbleTooltip=S,r.default=b},function(t,r,i){t.exports=i(63)}]).default})})(Vi);var tg=Ee&&Ee.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var c in i)i.hasOwnProperty(c)&&(r[c]=i[c])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),kt=Ee&&Ee.__assign||function(){return kt=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kt.apply(this,arguments)},rg=Ee&&Ee.__spreadArrays||function(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var r=Array(e),i=0,n=0;n<t;n++)for(var c=arguments[n],y=0,O=c.length;y<O;y++,i++)r[i]=c[y];return r},Dt=Ee&&Ee.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},qe=Dt(Ki.exports),ng=Dt(Gi.exports),rt=Dt(eg),En=Dt(Vi.exports),ig=function(e){tg(n,e);function n(t){var r=e.call(this,t)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(c,y,O,g){var _,p,l,o;c==="text-change"?(p=(_=r).onEditorChangeText)===null||p===void 0||p.call(_,r.editor.root.innerHTML,y,g,r.unprivilegedEditor):c==="selection-change"&&((o=(l=r).onEditorChangeSelection)===null||o===void 0||o.call(l,y,g,r.unprivilegedEditor))};var i=r.isControlled()?t.value:t.defaultValue;return r.value=i!=null?i:"",r}return n.prototype.validateProps=function(t){var r;if(qe.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(qe.default.Children.count(t.children)){var i=qe.default.Children.only(t.children);if(((r=i)===null||r===void 0?void 0:r.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.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")},n.prototype.shouldComponentUpdate=function(t,r){var i=this,c;if(this.validateProps(t),!this.editor||this.state.generation!==r.generation)return!0;if("value"in t){var y=this.getEditorContents(),O=(c=t.value,c!=null?c:"");this.isEqualValue(O,y)||this.setEditorContents(this.editor,O)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),rg(this.cleanProps,this.dirtyProps).some(function(g){return!rt.default(t[g],i.props[g])})},n.prototype.shouldComponentRegenerate=function(t){var r=this;return this.dirtyProps.some(function(i){return!rt.default(t[i],r.props[i])})},n.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},n.prototype.componentWillUnmount=function(){this.destroyEditor()},n.prototype.componentDidUpdate=function(t,r){var i=this;if(this.editor&&this.shouldComponentRegenerate(t)){var c=this.editor.getContents(),y=this.editor.getSelection();this.regenerationSnapshot={delta:c,selection:y},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==r.generation){var O=this.regenerationSnapshot,c=O.delta,g=O.selection;delete this.regenerationSnapshot,this.instantiateEditor();var _=this.editor;_.setContents(c),wn(function(){return i.setEditorSelection(_,g)})}},n.prototype.instantiateEditor=function(){this.editor||(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()))},n.prototype.destroyEditor=function(){!this.editor||(this.unhookEditor(this.editor),delete this.editor)},n.prototype.isControlled=function(){return"value"in this.props},n.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}},n.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},n.prototype.createEditor=function(t,r){var i=new En.default(t,r);return r.tabIndex!=null&&this.setEditorTabIndex(i,r.tabIndex),this.hookEditor(i),i},n.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},n.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},n.prototype.getEditorContents=function(){return this.value},n.prototype.getEditorSelection=function(){return this.selection},n.prototype.isDelta=function(t){return t&&t.ops},n.prototype.isEqualValue=function(t,r){return this.isDelta(t)&&this.isDelta(r)?rt.default(t.ops,r.ops):rt.default(t,r)},n.prototype.setEditorContents=function(t,r){var i=this;this.value=r;var c=this.getEditorSelection();typeof r=="string"?t.setContents(t.clipboard.convert(r)):t.setContents(r),wn(function(){return i.setEditorSelection(t,c)})},n.prototype.setEditorSelection=function(t,r){if(this.selection=r,r){var i=t.getLength();r.index=Math.max(0,Math.min(r.index,i-1)),r.length=Math.max(0,Math.min(r.length,i-1-r.index)),t.setSelection(r)}},n.prototype.setEditorTabIndex=function(t,r){var i,c;!((c=(i=t)===null||i===void 0?void 0:i.scroll)===null||c===void 0)&&c.domNode&&(t.scroll.domNode.tabIndex=r)},n.prototype.setEditorReadOnly=function(t,r){r?t.disable():t.enable()},n.prototype.makeUnprivilegedEditor=function(t){var r=t;return{getHTML:function(){return r.root.innerHTML},getLength:r.getLength.bind(r),getText:r.getText.bind(r),getContents:r.getContents.bind(r),getSelection:r.getSelection.bind(r),getBounds:r.getBounds.bind(r)}},n.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var t=ng.default.findDOMNode(this.editingArea);if(!t)throw new Error("Cannot find element for editing area");if(t.nodeType===3)throw new Error("Editing area cannot be a text node");return t},n.prototype.renderEditingArea=function(){var t=this,r=this.props,i=r.children,c=r.preserveWhitespace,y=this.state.generation,O={key:y,ref:function(g){t.editingArea=g}};return qe.default.Children.count(i)?qe.default.cloneElement(qe.default.Children.only(i),O):c?qe.default.createElement("pre",kt({},O)):qe.default.createElement("div",kt({},O))},n.prototype.render=function(){var t;return qe.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(t=this.props.className,t!=null?t:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},n.prototype.onEditorChangeText=function(t,r,i,c){var y,O;if(!!this.editor){var g=this.isDelta(this.value)?c.getContents():c.getHTML();g!==this.getEditorContents()&&(this.lastDeltaChangeSet=r,this.value=g,(O=(y=this.props).onChange)===null||O===void 0||O.call(y,t,r,i,c))}},n.prototype.onEditorChangeSelection=function(t,r,i){var c,y,O,g,_,p;if(!!this.editor){var l=this.getEditorSelection(),o=!l&&t,a=l&&!t;rt.default(t,l)||(this.selection=t,(y=(c=this.props).onChangeSelection)===null||y===void 0||y.call(c,t,r,i),o?(g=(O=this.props).onFocus)===null||g===void 0||g.call(O,t,r,i):a&&((p=(_=this.props).onBlur)===null||p===void 0||p.call(_,l,r,i)))}},n.prototype.focus=function(){!this.editor||this.editor.focus()},n.prototype.blur=function(){!this.editor||(this.selection=null,this.editor.blur())},n.displayName="React Quill",n.Quill=En.default,n.defaultProps={theme:"snow",modules:{},readOnly:!1},n}(qe.default.Component);function wn(e){Promise.resolve().then(e)}var $t=ig;Be("div")(({theme:e})=>{const n=e.direction==="rtl";return{"& .ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button:focus .ql-fill, .ql-snow .ql-toolbar button:focus .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill":{fill:e.palette.primary.main},"& .ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected":{color:e.palette.primary.main},"& .ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button:focus .ql-stroke, .ql-snow .ql-toolbar button:focus .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-toolbar button.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow.ql-toolbar button:hover .ql-stroke-miter, .ql-snow .ql-toolbar button:hover .ql-stroke-miter, .ql-snow.ql-toolbar button:focus .ql-stroke-miter, .ql-snow .ql-toolbar button:focus .ql-stroke-miter, .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter":{stroke:e.palette.primary.main},"& .ql-stroke":{stroke:e.palette.text.primary},"& .ql-fill, .ql-stroke.ql-fill":{fill:e.palette.text.primary},"& .ql-picker, .ql-picker-options, .ql-picker-item, .ql-picker-label, button":{"&:focus":{outline:"none"}},"& .ql-toolbar.ql-snow":{border:"none",borderBottom:`solid 1px ${e.palette.grey[50032]}`,"& .ql-formats":{"&:not(:last-of-type)":{marginRight:e.spacing(2)}},"& button":{padding:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,color:e.palette.text.primary},"& button svg, span svg":{width:20,height:20},"& .ql-picker-label":{...e.typography.subtitle2,color:e.palette.text.primary,"& .ql-stroke":{stroke:e.palette.text.primary}},"& .ql-picker-label svg":{...n&&{right:"0 !important",left:"auto !important"}},"& .ql-color,& .ql-background,& .ql-align ":{"& .ql-picker-label":{padding:0,display:"flex",alignItems:"center",justifyContent:"center"}},"& .ql-expanded":{"& .ql-picker-label":{borderRadius:4,color:e.palette.text.disabled,borderColor:"transparent !important",backgroundColor:e.palette.action.focus,"& .ql-stroke":{stroke:e.palette.text.disabled}},"& .ql-picker-options":{padding:0,marginTop:4,border:"none",maxHeight:200,overflow:"auto",boxShadow:e.customShadows.z20,borderRadius:e.shape.borderRadius,backgroundColor:e.palette.background.paper},"& .ql-picker-item":{color:e.palette.text.primary},"&.ql-align":{"& .ql-picker-options":{padding:0,display:"flex"},"& .ql-picker-item":{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"}},"&.ql-color, &.ql-background":{"& .ql-picker-options":{padding:8},"& .ql-picker-item":{margin:3,borderRadius:4,"&.ql-selected":{border:"solid 1px black"}}},"&.ql-font, &.ql-size, &.ql-header":{"& .ql-picker-options":{padding:e.spacing(1,0)},"& .ql-picker-item":{padding:e.spacing(.5,1.5)}}}}}});const og=["Arial","Tahoma","Georgia","Impact","Verdana"],ag=["8px","9px","10px","12px","14px","16px","20px","24px","32px","42px","54px","68px","84px","98px"],Hi=$t.Quill.import("attributors/style/size");Hi.whitelist=ag;$t.Quill.register(Hi,!0);const zi=$t.Quill.import("attributors/style/font");zi.whitelist=og;$t.Quill.register(zi,!0);Be(Wi)(({theme:e})=>({borderRadius:e.shape.borderRadius,border:`solid 1px ${e.palette.grey[50032]}`,"& .ql-container.ql-snow":{borderColor:"transparent",...e.typography.body1,fontFamily:e.typography.fontFamily},"& .ql-editor":{minHeight:200,"&.ql-blank::before":{fontStyle:"normal",color:e.palette.text.disabled},"& pre.ql-syntax":{...e.typography.body2,padding:e.spacing(2),borderRadius:e.shape.borderRadius,backgroundColor:e.palette.grey[900]}}}));function dg({name:e,...n}){const{control:t}=Rt();return vt(My,{name:e,control:t,render:({field:r,fieldState:{error:i}})=>vt(Zi,{...r,fullWidth:!0,error:!!i,helperText:i==null?void 0:i.message,...n})})}export{My as C,hg as F,dg as R,up as a,cp as b,Ly as c,cg as o,fg as u};