/
home
/
maktab
/
pwa
/
assets
/
File Upload :
llllll
Current File: /home/maktab/pwa/assets/vue-quill.esm-bundler-BwSos2P8.js
import{T as wr,r as je,U as Tr,V as kr,W as ar,d as pt,a as lr,y as Ce,l as Fe,e as Oe,m as ur,X as Sr,J as Ve,Y as Nr,Z as xr,p as Pr,$ as Lr,a0 as xt,a1 as sr,a2 as Ze,a3 as Rr}from"./index-CGJ7bzSo.js";import{r as Hn,f as fr,s as qr,i as Ir,o as cr,b as vt,m as hr,n as nt,c as It,h as dr,j as vr,k as pr,l as qt,p as yr,e as gr,q as jr,w as Kn,t as Qt,v as zn,x as Bn,u as Mr,a as Vn,y as Dr,z as Zn,A as Br,B as Cr,d as Fr,C as Ur,D as Hr}from"./with-install-DxVsq9lV.js";import{u as $n,o as zr}from"./use-touch-CzhDil91.js";import{S as Kr,a as $r}from"./index-DW2vPxS3.js";import{a as Gr,b as Vr}from"./index-y0X5DRaR.js";import{c as Zr}from"./index-D_LWMeuQ.js";const Wr={to:[String,Object],url:String,replace:Boolean};function Yr({to:z,url:J,replace:I,$router:_}){z&&_?_[I?"replace":"push"](z):J&&(I?location.replace(J):location.href=J)}let Xr=0;function mr(){const z=wr(),{name:J="unknown"}=(z==null?void 0:z.type)||{};return`${J}-${++Xr}`}function Qr(){const z=je([]),J=[];return Tr(()=>{z.value=[]}),[z,_=>(J[_]||(J[_]=p=>{z.value[_]=p}),J[_])]}function Jr(z,J,I){let _=0;const p=z.scrollLeft,N=I===0?1:Math.round(I*1e3/16);function S(){z.scrollLeft+=(J-p)/N,++_<N&&Hn(S)}S()}function ei(z,J,I,_){let p=fr(z);const N=p<J,S=I===0?1:Math.round(I*1e3/16),T=(J-p)/S;function y(){p+=T,(N&&p>J||!N&&p<J)&&(p=J),qr(z,p),N&&p<J||!N&&p>J?Hn(y):_&&Hn(_)}y()}function ti(z,J){if(!Ir||!window.IntersectionObserver)return;const I=new IntersectionObserver(N=>{J(N[0].intersectionRatio>0)},{root:document.body}),_=()=>{z.value&&I.observe(z.value)},p=()=>{z.value&&I.unobserve(z.value)};kr(p),ar(p),cr(_)}const[ni,ri]=It("sticky"),ii={zIndex:nt,position:hr("top"),container:Object,offsetTop:vt(0),offsetBottom:vt(0)};var oi=pt({name:ni,props:ii,emits:["scroll","change"],setup(z,{emit:J,slots:I}){const _=je(),p=dr(_),N=lr({fixed:!1,width:0,height:0,transform:0}),S=Ce(()=>yr(z.position==="top"?z.offsetTop:z.offsetBottom)),T=Ce(()=>{const{fixed:i,height:e,width:t}=N;if(i)return{width:`${t}px`,height:`${e}px`}}),y=Ce(()=>{if(!N.fixed)return;const i=gr(jr(z.zIndex),{width:`${N.width}px`,height:`${N.height}px`,[z.position]:`${S.value}px`});return N.transform&&(i.transform=`translate3d(0, ${N.transform}px, 0)`),i}),v=i=>J("scroll",{scrollTop:i,isFixed:N.fixed}),u=()=>{if(!_.value||pr(_))return;const{container:i,position:e}=z,t=qt(_),c=fr(window);if(N.width=t.width,N.height=t.height,e==="top")if(i){const s=qt(i),f=s.bottom-S.value-N.height;N.fixed=S.value>t.top&&s.bottom>0,N.transform=f<0?f:0}else N.fixed=S.value>t.top;else{const{clientHeight:s}=document.documentElement;if(i){const f=qt(i),o=s-f.top-S.value-N.height;N.fixed=s-S.value<t.bottom&&s>f.top,N.transform=o<0?-o:0}else N.fixed=s-S.value<t.bottom}v(c)};return Fe(()=>N.fixed,i=>J("change",i)),vr("scroll",u,{target:p,passive:!0}),ti(_,u),()=>{var i;return Oe("div",{ref:_,style:T.value},[Oe("div",{class:ri({fixed:N.fixed}),style:y.value},[(i=I.default)==null?void 0:i.call(I)])])}}});const ai=Kn(oi),[li,Wn]=It("tab");var ui=pt({name:li,props:{id:String,dot:Boolean,type:String,color:String,title:String,badge:nt,shrink:Boolean,isActive:Boolean,disabled:Boolean,controls:String,scrollable:Boolean,activeColor:String,inactiveColor:String,showZeroBadge:Qt},setup(z,{slots:J}){const I=Ce(()=>{const p={},{type:N,color:S,disabled:T,isActive:y,activeColor:v,inactiveColor:u}=z;S&&N==="card"&&(p.borderColor=S,T||(y?p.backgroundColor=S:p.color=S));const e=y?v:u;return e&&(p.color=e),p}),_=()=>{const p=Oe("span",{class:Wn("text",{ellipsis:!z.scrollable})},[J.title?J.title():z.title]);return z.dot||zn(z.badge)&&z.badge!==""?Oe(Gr,{dot:z.dot,content:z.badge,showZero:z.showZeroBadge},{default:()=>[p]}):p};return()=>Oe("div",{id:z.id,role:"tab",class:[Wn([z.type,{grow:z.scrollable&&!z.shrink,shrink:z.shrink,active:z.isActive,disabled:z.disabled}])],style:I.value,tabindex:z.disabled?void 0:z.isActive?0:-1,"aria-selected":z.isActive,"aria-disabled":z.disabled||void 0,"aria-controls":z.controls},[_()])}});const[si,Yn]=It("tabs");var fi=pt({name:si,props:{count:Bn(Number),inited:Boolean,animated:Boolean,duration:Bn(nt),swipeable:Boolean,lazyRender:Boolean,currentIndex:Bn(Number)},emits:["change"],setup(z,{emit:J,slots:I}){const _=je(),p=T=>J("change",T),N=()=>{var T;const y=(T=I.default)==null?void 0:T.call(I);return z.animated||z.swipeable?Oe(Kr,{ref:_,loop:!1,class:Yn("track"),duration:+z.duration*1e3,touchable:z.swipeable,lazyRender:z.lazyRender,showIndicators:!1,onChange:p},{default:()=>[y]}):y},S=T=>{const y=_.value;y&&y.state.active!==T&&y.swipeTo(T,{immediate:!z.inited})};return Fe(()=>z.currentIndex,S),ur(()=>{S(z.currentIndex)}),$n({swipeRef:_}),()=>Oe("div",{class:Yn("content",{animated:z.animated||z.swipeable})},[N()])}});const[br,Yt]=It("tabs"),ci={type:hr("line"),color:String,border:Boolean,sticky:Boolean,shrink:Boolean,active:vt(0),duration:vt(.3),animated:Boolean,ellipsis:Qt,swipeable:Boolean,scrollspy:Boolean,offsetTop:vt(0),background:String,lazyRender:Qt,lineWidth:nt,lineHeight:nt,beforeChange:Function,swipeThreshold:vt(5),titleActiveColor:String,titleInactiveColor:String},_r=Symbol(br);var hi=pt({name:br,props:ci,emits:["click","change","scroll","disabled","rendered","click-tab","update:active"],setup(z,{emit:J,slots:I}){let _,p,N;const S=je(),T=je(),y=je(),v=je(),u=mr(),i=dr(S),[e,t]=Qr(),{children:c,linkChildren:s}=Mr(_r),f=lr({inited:!1,position:"",lineStyle:{},currentIndex:-1}),o=Ce(()=>c.length>z.swipeThreshold||!z.ellipsis||z.shrink),a=Ce(()=>({borderColor:z.color,background:z.background})),r=(B,D)=>{var P;return(P=B.name)!=null?P:D},n=Ce(()=>{const B=c[f.currentIndex];if(B)return r(B,f.currentIndex)}),l=Ce(()=>yr(z.offsetTop)),E=Ce(()=>z.sticky?l.value+_:0),O=B=>{const D=T.value,P=e.value;if(!o.value||!D||!P||!P[f.currentIndex])return;const C=P[f.currentIndex].$el,$=C.offsetLeft-(D.offsetWidth-C.offsetWidth)/2;Jr(D,$,B?0:+z.duration)},b=()=>{const B=f.inited;Ve(()=>{const D=e.value;if(!D||!D[f.currentIndex]||z.type!=="line"||pr(S.value))return;const P=D[f.currentIndex].$el,{lineWidth:C,lineHeight:$}=z,G=P.offsetLeft+P.offsetWidth/2,X={width:Vn(C),backgroundColor:z.color,transform:`translateX(${G}px) translateX(-50%)`};if(B&&(X.transitionDuration=`${z.duration}s`),zn($)){const te=Vn($);X.height=te,X.borderRadius=te}f.lineStyle=X})},k=B=>{const D=B<f.currentIndex?-1:1;for(;B>=0&&B<c.length;){if(!c[B].disabled)return B;B+=D}},m=(B,D)=>{const P=k(B);if(!zn(P))return;const C=c[P],$=r(C,P),G=f.currentIndex!==null;f.currentIndex!==P&&(f.currentIndex=P,D||O(),b()),$!==z.active&&(J("update:active",$),G&&J("change",$,C.title)),N&&!z.scrollspy&&Dr(Math.ceil(Zn(S.value)-l.value))},d=(B,D)=>{const P=c.find(($,G)=>r($,G)===B),C=P?c.indexOf(P):0;m(C,D)},g=(B=!1)=>{if(z.scrollspy){const D=c[f.currentIndex].$el;if(D&&i.value){const P=Zn(D,i.value)-E.value;p=!0,ei(i.value,P,B?0:+z.duration,()=>{p=!1})}}},A=(B,D,P)=>{const{title:C,disabled:$}=c[D],G=r(c[D],D);$?J("disabled",G,C):(Zr(z.beforeChange,{args:[G],done:()=>{m(D),g()}}),J("click",G,C),Yr(B)),J("click-tab",{name:G,title:C,event:P,disabled:$})},L=B=>{N=B.isFixed,J("scroll",B)},M=B=>{Ve(()=>{d(B),g(!0)})},H=()=>{for(let B=0;B<c.length;B++){const{top:D}=qt(c[B].$el);if(D>E.value)return B===0?0:B-1}return c.length-1},K=()=>{if(z.scrollspy&&!p){const B=H();m(B)}},W=()=>c.map((B,D)=>Oe(ui,Nr({key:B.id,id:`${u}-${D}`,ref:t(D),type:z.type,color:z.color,style:B.titleStyle,class:B.titleClass,shrink:z.shrink,isActive:D===f.currentIndex,controls:B.id,scrollable:o.value,activeColor:z.titleActiveColor,inactiveColor:z.titleInactiveColor,onClick:P=>A(B,D,P)},Br(B,["dot","badge","title","disabled","showZeroBadge"])),{title:B.$slots.title})),U=()=>{if(z.type==="line"&&c.length)return Oe("div",{class:Yt("line"),style:f.lineStyle},null)},R=()=>{var B,D,P;const{type:C,border:$,sticky:G}=z,X=[Oe("div",{ref:G?void 0:y,class:[Yt("wrap"),{[Vr]:C==="line"&&$}]},[Oe("div",{ref:T,role:"tablist",class:Yt("nav",[C,{shrink:z.shrink,complete:o.value}]),style:a.value,"aria-orientation":"horizontal"},[(B=I["nav-left"])==null?void 0:B.call(I),W(),U(),(D=I["nav-right"])==null?void 0:D.call(I)])]),(P=I["nav-bottom"])==null?void 0:P.call(I)];return G?Oe("div",{ref:y},[X]):X};Fe([()=>z.color,Cr],b),Fe(()=>z.active,B=>{B!==n.value&&d(B)}),Fe(()=>c.length,()=>{f.inited&&(d(z.active),b(),Ve(()=>{O(!0)}))});const w=()=>{d(z.active,!0),Ve(()=>{f.inited=!0,y.value&&(_=qt(y.value).height),O(!0)})},q=(B,D)=>J("rendered",B,D);return $n({resize:()=>{b(),Ve(()=>{var B,D;return(D=(B=v.value)==null?void 0:B.swipeRef.value)==null?void 0:D.resize()})},scrollTo:M}),Sr(b),zr(b),cr(w),vr("scroll",K,{target:i,passive:!0}),s({id:u,props:z,setLine:b,onRendered:q,currentName:n,scrollIntoView:O}),()=>Oe("div",{ref:S,class:Yt([z.type])},[z.sticky?Oe(ai,{container:S.value,offsetTop:l.value,onScroll:L},{default:()=>[R()]}):R(),Oe(fi,{ref:v,count:c.length,inited:f.inited,animated:z.animated,duration:z.duration,swipeable:z.swipeable,lazyRender:z.lazyRender,currentIndex:f.currentIndex,onChange:m},{default:()=>{var B;return[(B=I.default)==null?void 0:B.call(I)]}})])}});const di=Symbol(),[vi,Cn]=It("tab"),pi=gr({},Wr,{dot:Boolean,name:nt,badge:nt,title:String,disabled:Boolean,titleClass:Ur,titleStyle:[String,Object],showZeroBadge:Qt});var yi=pt({name:vi,props:pi,setup(z,{slots:J}){const I=mr(),_=je(!1),{parent:p,index:N}=Fr(_r);if(!p)return;const S=()=>{var u;return(u=z.name)!=null?u:N.value},T=()=>{_.value=!0,p.props.lazyRender&&Ve(()=>{p.onRendered(S(),z.title)})},y=Ce(()=>{const u=S()===p.currentName.value;return u&&!_.value&&T(),u}),v=je(!y.value);return Fe(y,u=>{u?v.value=!1:Hr(()=>{v.value=!0})}),Fe(()=>z.title,()=>{p.setLine(),p.scrollIntoView()}),xr(di,y),()=>{var u;const i=`${p.id}-${N.value}`,{animated:e,swipeable:t,scrollspy:c,lazyRender:s}=p.props;if(!J.default&&!e)return;const f=c||y.value;if(e||t)return Oe($r,{id:I,role:"tabpanel",class:Cn("panel-wrapper",{inactive:v.value}),tabindex:y.value?0:-1,"aria-hidden":!y.value,"aria-labelledby":i},{default:()=>{var r;return[Oe("div",{class:Cn("panel")},[(r=J.default)==null?void 0:r.call(J)])]}});const a=_.value||c||!s?(u=J.default)==null?void 0:u.call(J):null;return $n({id:I}),Pr(Oe("div",{id:I,role:"tabpanel",class:Cn("panel"),tabindex:f?0:-1,"aria-labelledby":i},[a]),[[Lr,f]])}}});const Ri=Kn(yi),qi=Kn(hi);var Xt={exports:{}},gi=Xt.exports,Xn;function mi(){return Xn||(Xn=1,function(z,J){(function(_,p){z.exports=p()})(typeof self<"u"?self:gi,function(){return function(I){var _={};function p(N){if(_[N])return _[N].exports;var S=_[N]={i:N,l:!1,exports:{}};return I[N].call(S.exports,S,S.exports,p),S.l=!0,S.exports}return p.m=I,p.c=_,p.d=function(N,S,T){p.o(N,S)||Object.defineProperty(N,S,{configurable:!1,enumerable:!0,get:T})},p.n=function(N){var S=N&&N.__esModule?function(){return N.default}:function(){return N};return p.d(S,"a",S),S},p.o=function(N,S){return Object.prototype.hasOwnProperty.call(N,S)},p.p="",p(p.s=109)}([function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(17),S=p(18),T=p(19),y=p(45),v=p(46),u=p(47),i=p(48),e=p(49),t=p(12),c=p(32),s=p(33),f=p(31),o=p(1),a={Scope:o.Scope,create:o.create,find:o.find,query:o.query,register:o.register,Container:N.default,Format:S.default,Leaf:T.default,Embed:i.default,Scroll:y.default,Block:u.default,Inline:v.default,Text:e.default,Attributor:{Attribute:t.default,Class:c.default,Style:s.default,Store:f.default}};_.default=a},function(I,_,p){var N=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var r in a)a.hasOwnProperty(r)&&(o[r]=a[r])};return function(o,a){f(o,a);function r(){this.constructor=o}o.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=function(f){N(o,f);function o(a){var r=this;return a="[Parchment] "+a,r=f.call(this,a)||this,r.message=a,r.name=r.constructor.name,r}return o}(Error);_.ParchmentError=S;var T={},y={},v={},u={};_.DATA_KEY="__blot";var i;(function(f){f[f.TYPE=3]="TYPE",f[f.LEVEL=12]="LEVEL",f[f.ATTRIBUTE=13]="ATTRIBUTE",f[f.BLOT=14]="BLOT",f[f.INLINE=7]="INLINE",f[f.BLOCK=11]="BLOCK",f[f.BLOCK_BLOT=10]="BLOCK_BLOT",f[f.INLINE_BLOT=6]="INLINE_BLOT",f[f.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",f[f.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",f[f.ANY=15]="ANY"})(i=_.Scope||(_.Scope={}));function e(f,o){var a=c(f);if(a==null)throw new S("Unable to create "+f+" blot");var r=a,n=f instanceof Node||f.nodeType===Node.TEXT_NODE?f:r.create(o);return new r(n,o)}_.create=e;function t(f,o){return o===void 0&&(o=!1),f==null?null:f[_.DATA_KEY]!=null?f[_.DATA_KEY].blot:o?t(f.parentNode,o):null}_.find=t;function c(f,o){o===void 0&&(o=i.ANY);var a;if(typeof f=="string")a=u[f]||T[f];else if(f instanceof Text||f.nodeType===Node.TEXT_NODE)a=u.text;else if(typeof f=="number")f&i.LEVEL&i.BLOCK?a=u.block:f&i.LEVEL&i.INLINE&&(a=u.inline);else if(f instanceof HTMLElement){var r=(f.getAttribute("class")||"").split(/\s+/);for(var n in r)if(a=y[r[n]],a)break;a=a||v[f.tagName]}return a==null?null:o&i.LEVEL&a.scope&&o&i.TYPE&a.scope?a:null}_.query=c;function s(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];if(f.length>1)return f.map(function(n){return s(n)});var a=f[0];if(typeof a.blotName!="string"&&typeof a.attrName!="string")throw new S("Invalid definition");if(a.blotName==="abstract")throw new S("Cannot register abstract class");if(u[a.blotName||a.attrName]=a,typeof a.keyName=="string")T[a.keyName]=a;else if(a.className!=null&&(y[a.className]=a),a.tagName!=null){Array.isArray(a.tagName)?a.tagName=a.tagName.map(function(n){return n.toUpperCase()}):a.tagName=a.tagName.toUpperCase();var r=Array.isArray(a.tagName)?a.tagName:[a.tagName];r.forEach(function(n){(v[n]==null||a.className==null)&&(v[n]=a)})}return a}_.register=s},function(I,_,p){var N=p(51),S=p(11),T=p(3),y=p(20),v="\0",u=function(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]};u.prototype.insert=function(i,e){var t={};return i.length===0?this:(t.insert=i,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},u.prototype.delete=function(i){return i<=0?this:this.push({delete:i})},u.prototype.retain=function(i,e){if(i<=0)return this;var t={retain:i};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},u.prototype.push=function(i){var e=this.ops.length,t=this.ops[e-1];if(i=T(!0,{},i),typeof t=="object"){if(typeof i.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+i.delete},this;if(typeof t.delete=="number"&&i.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(i),this;if(S(i.attributes,t.attributes)){if(typeof i.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+i.insert},typeof i.attributes=="object"&&(this.ops[e-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+i.retain},typeof i.attributes=="object"&&(this.ops[e-1].attributes=i.attributes),this}}return e===this.ops.length?this.ops.push(i):this.ops.splice(e,0,i),this},u.prototype.chop=function(){var i=this.ops[this.ops.length-1];return i&&i.retain&&!i.attributes&&this.ops.pop(),this},u.prototype.filter=function(i){return this.ops.filter(i)},u.prototype.forEach=function(i){this.ops.forEach(i)},u.prototype.map=function(i){return this.ops.map(i)},u.prototype.partition=function(i){var e=[],t=[];return this.forEach(function(c){var s=i(c)?e:t;s.push(c)}),[e,t]},u.prototype.reduce=function(i,e){return this.ops.reduce(i,e)},u.prototype.changeLength=function(){return this.reduce(function(i,e){return e.insert?i+y.length(e):e.delete?i-e.delete:i},0)},u.prototype.length=function(){return this.reduce(function(i,e){return i+y.length(e)},0)},u.prototype.slice=function(i,e){i=i||0,typeof e!="number"&&(e=1/0);for(var t=[],c=y.iterator(this.ops),s=0;s<e&&c.hasNext();){var f;s<i?f=c.next(i-s):(f=c.next(e-s),t.push(f)),s+=y.length(f)}return new u(t)},u.prototype.compose=function(i){var e=y.iterator(this.ops),t=y.iterator(i.ops),c=[],s=t.peek();if(s!=null&&typeof s.retain=="number"&&s.attributes==null){for(var f=s.retain;e.peekType()==="insert"&&e.peekLength()<=f;)f-=e.peekLength(),c.push(e.next());s.retain-f>0&&t.next(s.retain-f)}for(var o=new u(c);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")o.push(t.next());else if(e.peekType()==="delete")o.push(e.next());else{var a=Math.min(e.peekLength(),t.peekLength()),r=e.next(a),n=t.next(a);if(typeof n.retain=="number"){var l={};typeof r.retain=="number"?l.retain=a:l.insert=r.insert;var E=y.attributes.compose(r.attributes,n.attributes,typeof r.retain=="number");if(E&&(l.attributes=E),o.push(l),!t.hasNext()&&S(o.ops[o.ops.length-1],l)){var O=new u(e.rest());return o.concat(O).chop()}}else typeof n.delete=="number"&&typeof r.retain=="number"&&o.push(n)}return o.chop()},u.prototype.concat=function(i){var e=new u(this.ops.slice());return i.ops.length>0&&(e.push(i.ops[0]),e.ops=e.ops.concat(i.ops.slice(1))),e},u.prototype.diff=function(i,e){if(this.ops===i.ops)return new u;var t=[this,i].map(function(a){return a.map(function(r){if(r.insert!=null)return typeof r.insert=="string"?r.insert:v;var n=a===i?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),c=new u,s=N(t[0],t[1],e),f=y.iterator(this.ops),o=y.iterator(i.ops);return s.forEach(function(a){for(var r=a[1].length;r>0;){var n=0;switch(a[0]){case N.INSERT:n=Math.min(o.peekLength(),r),c.push(o.next(n));break;case N.DELETE:n=Math.min(r,f.peekLength()),f.next(n),c.delete(n);break;case N.EQUAL:n=Math.min(f.peekLength(),o.peekLength(),r);var l=f.next(n),E=o.next(n);S(l.insert,E.insert)?c.retain(n,y.attributes.diff(l.attributes,E.attributes)):c.push(E).delete(n);break}r-=n}}),c.chop()},u.prototype.eachLine=function(i,e){e=e||` `;for(var t=y.iterator(this.ops),c=new u,s=0;t.hasNext();){if(t.peekType()!=="insert")return;var f=t.peek(),o=y.length(f)-t.peekLength(),a=typeof f.insert=="string"?f.insert.indexOf(e,o)-o:-1;if(a<0)c.push(t.next());else if(a>0)c.push(t.next(a));else{if(i(c,t.next(1).attributes||{},s)===!1)return;s+=1,c=new u}}c.length()>0&&i(c,{},s)},u.prototype.transform=function(i,e){if(e=!!e,typeof i=="number")return this.transformPosition(i,e);for(var t=y.iterator(this.ops),c=y.iterator(i.ops),s=new u;t.hasNext()||c.hasNext();)if(t.peekType()==="insert"&&(e||c.peekType()!=="insert"))s.retain(y.length(t.next()));else if(c.peekType()==="insert")s.push(c.next());else{var f=Math.min(t.peekLength(),c.peekLength()),o=t.next(f),a=c.next(f);if(o.delete)continue;a.delete?s.push(a):s.retain(f,y.attributes.transform(o.attributes,a.attributes,e))}return s.chop()},u.prototype.transformPosition=function(i,e){e=!!e;for(var t=y.iterator(this.ops),c=0;t.hasNext()&&c<=i;){var s=t.peekLength(),f=t.peekType();if(t.next(),f==="delete"){i-=Math.min(s,i-c);continue}else f==="insert"&&(c<i||!e)&&(i+=s);c+=s}return i},I.exports=u},function(I,_){var p=Object.prototype.hasOwnProperty,N=Object.prototype.toString,S=Object.defineProperty,T=Object.getOwnPropertyDescriptor,y=function(t){return typeof Array.isArray=="function"?Array.isArray(t):N.call(t)==="[object Array]"},v=function(t){if(!t||N.call(t)!=="[object Object]")return!1;var c=p.call(t,"constructor"),s=t.constructor&&t.constructor.prototype&&p.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!c&&!s)return!1;var f;for(f in t);return typeof f>"u"||p.call(t,f)},u=function(t,c){S&&c.name==="__proto__"?S(t,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):t[c.name]=c.newValue},i=function(t,c){if(c==="__proto__")if(p.call(t,c)){if(T)return T(t,c).value}else return;return t[c]};I.exports=function e(){var t,c,s,f,o,a,r=arguments[0],n=1,l=arguments.length,E=!1;for(typeof r=="boolean"&&(E=r,r=arguments[1]||{},n=2),(r==null||typeof r!="object"&&typeof r!="function")&&(r={});n<l;++n)if(t=arguments[n],t!=null)for(c in t)s=i(r,c),f=i(t,c),r!==f&&(E&&f&&(v(f)||(o=y(f)))?(o?(o=!1,a=s&&y(s)?s:[]):a=s&&v(s)?s:{},u(r,{name:c,newValue:e(E,a,f)})):typeof f<"u"&&u(r,{name:c,newValue:f}));return r}},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BlockEmbed=_.bubbleFormats=void 0;var N=function(){function d(g,A){for(var L=0;L<A.length;L++){var M=A[L];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(g,M.key,M)}}return function(g,A,L){return A&&d(g.prototype,A),L&&d(g,L),g}}(),S=function d(g,A,L){g===null&&(g=Function.prototype);var M=Object.getOwnPropertyDescriptor(g,A);if(M===void 0){var H=Object.getPrototypeOf(g);return H===null?void 0:d(H,A,L)}else{if("value"in M)return M.value;var K=M.get;return K===void 0?void 0:K.call(L)}},T=p(3),y=r(T),v=p(2),u=r(v),i=p(0),e=r(i),t=p(16),c=r(t),s=p(6),f=r(s),o=p(7),a=r(o);function r(d){return d&&d.__esModule?d:{default:d}}function n(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function l(d,g){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:d}function E(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(d,g):d.__proto__=g)}var O=1,b=function(d){E(g,d);function g(){return n(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return N(g,[{key:"attach",value:function(){S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(L,M){var H=e.default.query(L,e.default.Scope.BLOCK_ATTRIBUTE);H!=null&&this.attributes.attribute(H,M)}},{key:"formatAt",value:function(L,M,H,K){this.format(H,K)}},{key:"insertAt",value:function(L,M,H){if(typeof M=="string"&&M.endsWith(` `)){var K=e.default.create(k.blotName);this.parent.insertBefore(K,L===0?this:this.next),K.insertAt(0,M.slice(0,-1))}else S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,L,M,H)}}]),g}(e.default.Embed);b.scope=e.default.Scope.BLOCK_BLOT;var k=function(d){E(g,d);function g(A){n(this,g);var L=l(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,A));return L.cache={},L}return N(g,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(L,M){return M.length()===0?L:L.insert(M.value(),m(M))},new u.default).insert(` `,m(this))),this.cache.delta}},{key:"deleteAt",value:function(L,M){S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"deleteAt",this).call(this,L,M),this.cache={}}},{key:"formatAt",value:function(L,M,H,K){M<=0||(e.default.query(H,e.default.Scope.BLOCK)?L+M===this.length()&&this.format(H,K):S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,L,Math.min(M,this.length()-L-1),H,K),this.cache={})}},{key:"insertAt",value:function(L,M,H){if(H!=null)return S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,L,M,H);if(M.length!==0){var K=M.split(` `),W=K.shift();W.length>0&&(L<this.length()-1||this.children.tail==null?S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,Math.min(L,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var U=this;K.reduce(function(R,w){return U=U.split(R,!0),U.insertAt(0,w),w.length},L+W.length)}}},{key:"insertBefore",value:function(L,M){var H=this.children.head;S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,L,M),H instanceof c.default&&H.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"length",this).call(this)+O),this.cache.length}},{key:"moveChildren",value:function(L,M){S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"moveChildren",this).call(this,L,M),this.cache={}}},{key:"optimize",value:function(L){S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,L),this.cache={}}},{key:"path",value:function(L){return S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"path",this).call(this,L,!0)}},{key:"removeChild",value:function(L){S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"removeChild",this).call(this,L),this.cache={}}},{key:"split",value:function(L){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(M&&(L===0||L>=this.length()-O)){var H=this.clone();return L===0?(this.parent.insertBefore(H,this),this):(this.parent.insertBefore(H,this.next),H)}else{var K=S(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"split",this).call(this,L,M);return this.cache={},K}}}]),g}(e.default.Block);k.blotName="block",k.tagName="P",k.defaultChild="break",k.allowedChildren=[f.default,e.default.Embed,a.default];function m(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return d==null||(typeof d.formats=="function"&&(g=(0,y.default)(g,d.formats())),d.parent==null||d.parent.blotName=="scroll"||d.parent.statics.scope!==d.statics.scope)?g:m(d.parent,g)}_.bubbleFormats=m,_.BlockEmbed=b,_.default=k},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.overload=_.expandConfig=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},S=function(){function U(R,w){var q=[],j=!0,B=!1,D=void 0;try{for(var P=R[Symbol.iterator](),C;!(j=(C=P.next()).done)&&(q.push(C.value),!(w&&q.length===w));j=!0);}catch($){B=!0,D=$}finally{try{!j&&P.return&&P.return()}finally{if(B)throw D}}return q}return function(R,w){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return U(R,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function U(R,w){for(var q=0;q<w.length;q++){var j=w[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}return function(R,w,q){return w&&U(R.prototype,w),q&&U(R,q),R}}();p(50);var y=p(2),v=m(y),u=p(14),i=m(u),e=p(8),t=m(e),c=p(9),s=m(c),f=p(0),o=m(f),a=p(15),r=m(a),n=p(3),l=m(n),E=p(10),O=m(E),b=p(34),k=m(b);function m(U){return U&&U.__esModule?U:{default:U}}function d(U,R,w){return R in U?Object.defineProperty(U,R,{value:w,enumerable:!0,configurable:!0,writable:!0}):U[R]=w,U}function g(U,R){if(!(U instanceof R))throw new TypeError("Cannot call a class as a function")}var A=(0,O.default)("quill"),L=function(){T(U,null,[{key:"debug",value:function(w){w===!0&&(w="log"),O.default.level(w)}},{key:"find",value:function(w){return w.__quill||o.default.find(w)}},{key:"import",value:function(w){return this.imports[w]==null&&A.error("Cannot import "+w+". Are you sure it was registered?"),this.imports[w]}},{key:"register",value:function(w,q){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof w!="string"){var D=w.attrName||w.blotName;typeof D=="string"?this.register("formats/"+D,w,q):Object.keys(w).forEach(function(P){j.register(P,w[P],q)})}else this.imports[w]!=null&&!B&&A.warn("Overwriting "+w+" with",q),this.imports[w]=q,(w.startsWith("blots/")||w.startsWith("formats/"))&&q.blotName!=="abstract"?o.default.register(q):w.startsWith("modules")&&typeof q.register=="function"&&q.register()}}]);function U(R){var w=this,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(g(this,U),this.options=M(R,q),this.container=this.options.container,this.container==null)return A.error("Invalid Quill container",R);this.options.debug&&U.debug(this.options.debug);var j=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=o.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new i.default(this.scroll),this.selection=new r.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(D){D===t.default.events.TEXT_CHANGE&&w.root.classList.toggle("ql-blank",w.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(D,P){var C=w.selection.lastRange,$=C&&C.length===0?C.index:void 0;H.call(w,function(){return w.editor.update(null,P,$)},D)});var B=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(B),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return T(U,[{key:"addContainer",value:function(w){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof w=="string"){var j=w;w=document.createElement("div"),w.classList.add(j)}return this.container.insertBefore(w,q),w}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(w,q,j){var B=this,D=K(w,q,j),P=S(D,4);return w=P[0],q=P[1],j=P[3],H.call(this,function(){return B.editor.deleteText(w,q)},j,w,-1*q)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(w),this.container.classList.toggle("ql-disabled",!w)}},{key:"focus",value:function(){var w=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=w,this.scrollIntoView()}},{key:"format",value:function(w,q){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return H.call(this,function(){var D=j.getSelection(!0),P=new v.default;if(D==null)return P;if(o.default.query(w,o.default.Scope.BLOCK))P=j.editor.formatLine(D.index,D.length,d({},w,q));else{if(D.length===0)return j.selection.format(w,q),P;P=j.editor.formatText(D.index,D.length,d({},w,q))}return j.setSelection(D,t.default.sources.SILENT),P},B)}},{key:"formatLine",value:function(w,q,j,B,D){var P=this,C=void 0,$=K(w,q,j,B,D),G=S($,4);return w=G[0],q=G[1],C=G[2],D=G[3],H.call(this,function(){return P.editor.formatLine(w,q,C)},D,w,0)}},{key:"formatText",value:function(w,q,j,B,D){var P=this,C=void 0,$=K(w,q,j,B,D),G=S($,4);return w=G[0],q=G[1],C=G[2],D=G[3],H.call(this,function(){return P.editor.formatText(w,q,C)},D,w,0)}},{key:"getBounds",value:function(w){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof w=="number"?j=this.selection.getBounds(w,q):j=this.selection.getBounds(w.index,w.length);var B=this.container.getBoundingClientRect();return{bottom:j.bottom-B.top,height:j.height,left:j.left-B.left,right:j.right-B.left,top:j.top-B.top,width:j.width}}},{key:"getContents",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-w,j=K(w,q),B=S(j,2);return w=B[0],q=B[1],this.editor.getContents(w,q)}},{key:"getFormat",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof w=="number"?this.editor.getFormat(w,q):this.editor.getFormat(w.index,w.length)}},{key:"getIndex",value:function(w){return w.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(w){return this.scroll.leaf(w)}},{key:"getLine",value:function(w){return this.scroll.line(w)}},{key:"getLines",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof w!="number"?this.scroll.lines(w.index,w.length):this.scroll.lines(w,q)}},{key:"getModule",value:function(w){return this.theme.modules[w]}},{key:"getSelection",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return w&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-w,j=K(w,q),B=S(j,2);return w=B[0],q=B[1],this.editor.getText(w,q)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(w,q,j){var B=this,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:U.sources.API;return H.call(this,function(){return B.editor.insertEmbed(w,q,j)},D,w)}},{key:"insertText",value:function(w,q,j,B,D){var P=this,C=void 0,$=K(w,0,j,B,D),G=S($,4);return w=G[0],C=G[2],D=G[3],H.call(this,function(){return P.editor.insertText(w,q,C)},D,w,q.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(w,q,j){this.clipboard.dangerouslyPasteHTML(w,q,j)}},{key:"removeFormat",value:function(w,q,j){var B=this,D=K(w,q,j),P=S(D,4);return w=P[0],q=P[1],j=P[3],H.call(this,function(){return B.editor.removeFormat(w,q)},j,w)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(w){var q=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return H.call(this,function(){w=new v.default(w);var B=q.getLength(),D=q.editor.deleteText(0,B),P=q.editor.applyDelta(w),C=P.ops[P.ops.length-1];C!=null&&typeof C.insert=="string"&&C.insert[C.insert.length-1]===` `&&(q.editor.deleteText(q.getLength()-1,1),P.delete(1));var $=D.compose(P);return $},j)}},{key:"setSelection",value:function(w,q,j){if(w==null)this.selection.setRange(null,q||U.sources.API);else{var B=K(w,q,j),D=S(B,4);w=D[0],q=D[1],j=D[3],this.selection.setRange(new a.Range(w,q),j),j!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(w){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,j=new v.default().insert(w);return this.setContents(j,q)}},{key:"update",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,q=this.scroll.update(w);return this.selection.update(w),q}},{key:"updateContents",value:function(w){var q=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return H.call(this,function(){return w=new v.default(w),q.editor.applyDelta(w,j)},j,!0)}}]),U}();L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=t.default.events,L.sources=t.default.sources,L.version="1.3.7",L.imports={delta:v.default,parchment:o.default,"core/module":s.default,"core/theme":k.default};function M(U,R){if(R=(0,l.default)(!0,{container:U,modules:{clipboard:!0,keyboard:!0,history:!0}},R),!R.theme||R.theme===L.DEFAULTS.theme)R.theme=k.default;else if(R.theme=L.import("themes/"+R.theme),R.theme==null)throw new Error("Invalid theme "+R.theme+". Did you register it?");var w=(0,l.default)(!0,{},R.theme.DEFAULTS);[w,R].forEach(function(B){B.modules=B.modules||{},Object.keys(B.modules).forEach(function(D){B.modules[D]===!0&&(B.modules[D]={})})});var q=Object.keys(w.modules).concat(Object.keys(R.modules)),j=q.reduce(function(B,D){var P=L.import("modules/"+D);return P==null?A.error("Cannot load "+D+" module. Are you sure you registered it?"):B[D]=P.DEFAULTS||{},B},{});return R.modules!=null&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,l.default)(!0,{},L.DEFAULTS,{modules:j},w,R),["bounds","container","scrollingContainer"].forEach(function(B){typeof R[B]=="string"&&(R[B]=document.querySelector(R[B]))}),R.modules=Object.keys(R.modules).reduce(function(B,D){return R.modules[D]&&(B[D]=R.modules[D]),B},{}),R}function H(U,R,w,q){if(this.options.strict&&!this.isEnabled()&&R===t.default.sources.USER)return new v.default;var j=w==null?null:this.getSelection(),B=this.editor.delta,D=U();if(j!=null&&(w===!0&&(w=j.index),q==null?j=W(j,D,R):q!==0&&(j=W(j,w,q,R)),this.setSelection(j,t.default.sources.SILENT)),D.length()>0){var P,C=[t.default.events.TEXT_CHANGE,D,B,R];if((P=this.emitter).emit.apply(P,[t.default.events.EDITOR_CHANGE].concat(C)),R!==t.default.sources.SILENT){var $;($=this.emitter).emit.apply($,C)}}return D}function K(U,R,w,q,j){var B={};return typeof U.index=="number"&&typeof U.length=="number"?typeof R!="number"?(j=q,q=w,w=R,R=U.length,U=U.index):(R=U.length,U=U.index):typeof R!="number"&&(j=q,q=w,w=R,R=0),(typeof w>"u"?"undefined":N(w))==="object"?(B=w,j=q):typeof w=="string"&&(q!=null?B[w]=q:j=w),j=j||t.default.sources.API,[U,R,B,j]}function W(U,R,w,q){if(U==null)return null;var j=void 0,B=void 0;if(R instanceof v.default){var D=[U.index,U.index+U.length].map(function(G){return R.transformPosition(G,q!==t.default.sources.USER)}),P=S(D,2);j=P[0],B=P[1]}else{var C=[U.index,U.index+U.length].map(function(G){return G<R||G===R&&q===t.default.sources.USER?G:w>=0?G+w:Math.max(R,G+w)}),$=S(C,2);j=$[0],B=$[1]}return new a.Range(j,B-j)}_.expandConfig=M,_.overload=K,_.default=L},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function f(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&f(o.prototype,a),r&&f(o,r),o}}(),S=function f(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:f(l,a,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},T=p(7),y=i(T),v=p(0),u=i(v);function i(f){return f&&f.__esModule?f:{default:f}}function e(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function t(f,o){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:f}function c(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(f,o):f.__proto__=o)}var s=function(f){c(o,f);function o(){return e(this,o),t(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return N(o,[{key:"formatAt",value:function(r,n,l,E){if(o.compare(this.statics.blotName,l)<0&&u.default.query(l,u.default.Scope.BLOT)){var O=this.isolate(r,n);E&&O.wrap(l,E)}else S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"formatAt",this).call(this,r,n,l,E)}},{key:"optimize",value:function(r){if(S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,r),this.parent instanceof o&&o.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(r,n){var l=o.order.indexOf(r),E=o.order.indexOf(n);return l>=0||E>=0?l-E:r===n?0:r<n?-1:1}}]),o}(u.default.Inline);s.allowedChildren=[s,u.default.Embed,y.default],s.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],_.default=s},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(0),S=T(N);function T(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function u(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e){u(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(S.default.Text);_.default=i},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function a(r,n){for(var l=0;l<n.length;l++){var E=n[l];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(r,E.key,E)}}return function(r,n,l){return n&&a(r.prototype,n),l&&a(r,l),r}}(),S=function a(r,n,l){r===null&&(r=Function.prototype);var E=Object.getOwnPropertyDescriptor(r,n);if(E===void 0){var O=Object.getPrototypeOf(r);return O===null?void 0:a(O,n,l)}else{if("value"in E)return E.value;var b=E.get;return b===void 0?void 0:b.call(l)}},T=p(54),y=i(T),v=p(10),u=i(v);function i(a){return a&&a.__esModule?a:{default:a}}function e(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function c(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var s=(0,u.default)("quill:events"),f=["selectionchange","mousedown","mouseup","click"];f.forEach(function(a){document.addEventListener(a,function(){for(var r=arguments.length,n=Array(r),l=0;l<r;l++)n[l]=arguments[l];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(E){if(E.__quill&&E.__quill.emitter){var O;(O=E.__quill.emitter).handleDOM.apply(O,n)}})})});var o=function(a){c(r,a);function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.listeners={},n.on("error",s.error),n}return N(r,[{key:"emit",value:function(){s.log.apply(s,arguments),S(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(l){for(var E=arguments.length,O=Array(E>1?E-1:0),b=1;b<E;b++)O[b-1]=arguments[b];(this.listeners[l.type]||[]).forEach(function(k){var m=k.node,d=k.handler;(l.target===m||m.contains(l.target))&&d.apply(void 0,[l].concat(O))})}},{key:"listenDOM",value:function(l,E,O){this.listeners[l]||(this.listeners[l]=[]),this.listeners[l].push({node:E,handler:O})}}]),r}(y.default);o.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"},o.sources={API:"api",SILENT:"silent",USER:"user"},_.default=o},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});function N(T,y){if(!(T instanceof y))throw new TypeError("Cannot call a class as a function")}var S=function T(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};N(this,T),this.quill=y,this.options=v};S.DEFAULTS={},_.default=S},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=["error","warn","log","info"],S="warn";function T(v){if(N.indexOf(v)<=N.indexOf(S)){for(var u,i=arguments.length,e=Array(i>1?i-1:0),t=1;t<i;t++)e[t-1]=arguments[t];(u=console)[v].apply(u,e)}}function y(v){return N.reduce(function(u,i){return u[i]=T.bind(console,i,v),u},{})}T.level=y.level=function(v){S=v},_.default=y},function(I,_,p){var N=Array.prototype.slice,S=p(52),T=p(53),y=I.exports=function(e,t,c){return c||(c={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?c.strict?e===t:e==t:i(e,t,c)};function v(e){return e==null}function u(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function i(e,t,c){var s,f;if(v(e)||v(t)||e.prototype!==t.prototype)return!1;if(T(e))return T(t)?(e=N.call(e),t=N.call(t),y(e,t,c)):!1;if(u(e)){if(!u(t)||e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(e[s]!==t[s])return!1;return!0}try{var o=S(e),a=S(t)}catch{return!1}if(o.length!=a.length)return!1;for(o.sort(),a.sort(),s=o.length-1;s>=0;s--)if(o[s]!=a[s])return!1;for(s=o.length-1;s>=0;s--)if(f=o[s],!y(e[f],t[f],c))return!1;return typeof e==typeof t}},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(1),S=function(){function T(y,v,u){u===void 0&&(u={}),this.attrName=y,this.keyName=v;var i=N.Scope.TYPE&N.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&N.Scope.LEVEL|i:this.scope=N.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return T.keys=function(y){return[].map.call(y.attributes,function(v){return v.name})},T.prototype.add=function(y,v){return this.canAdd(y,v)?(y.setAttribute(this.keyName,v),!0):!1},T.prototype.canAdd=function(y,v){var u=N.query(y,N.Scope.BLOT&(this.scope|N.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},T.prototype.remove=function(y){y.removeAttribute(this.keyName)},T.prototype.value=function(y){var v=y.getAttribute(this.keyName);return this.canAdd(y,v)&&v?v:""},T}();_.default=S},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Code=void 0;var N=function(){function b(k,m){var d=[],g=!0,A=!1,L=void 0;try{for(var M=k[Symbol.iterator](),H;!(g=(H=M.next()).done)&&(d.push(H.value),!(m&&d.length===m));g=!0);}catch(K){A=!0,L=K}finally{try{!g&&M.return&&M.return()}finally{if(A)throw L}}return d}return function(k,m){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return b(k,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function b(k,m){for(var d=0;d<m.length;d++){var g=m[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(k,g.key,g)}}return function(k,m,d){return m&&b(k.prototype,m),d&&b(k,d),k}}(),T=function b(k,m,d){k===null&&(k=Function.prototype);var g=Object.getOwnPropertyDescriptor(k,m);if(g===void 0){var A=Object.getPrototypeOf(k);return A===null?void 0:b(A,m,d)}else{if("value"in g)return g.value;var L=g.get;return L===void 0?void 0:L.call(d)}},y=p(2),v=a(y),u=p(0),i=a(u),e=p(4),t=a(e),c=p(6),s=a(c),f=p(7),o=a(f);function a(b){return b&&b.__esModule?b:{default:b}}function r(b,k){if(!(b instanceof k))throw new TypeError("Cannot call a class as a function")}function n(b,k){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:b}function l(b,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);b.prototype=Object.create(k&&k.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(b,k):b.__proto__=k)}var E=function(b){l(k,b);function k(){return r(this,k),n(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return k}(s.default);E.blotName="code",E.tagName="CODE";var O=function(b){l(k,b);function k(){return r(this,k),n(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return S(k,[{key:"delta",value:function(){var d=this,g=this.domNode.textContent;return g.endsWith(` `)&&(g=g.slice(0,-1)),g.split(` `).reduce(function(A,L){return A.insert(L).insert(` `,d.formats())},new v.default)}},{key:"format",value:function(d,g){if(!(d===this.statics.blotName&&g)){var A=this.descendant(o.default,this.length()-1),L=N(A,1),M=L[0];M!=null&&M.deleteAt(M.length()-1,1),T(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"format",this).call(this,d,g)}}},{key:"formatAt",value:function(d,g,A,L){if(g!==0&&!(i.default.query(A,i.default.Scope.BLOCK)==null||A===this.statics.blotName&&L===this.statics.formats(this.domNode))){var M=this.newlineIndex(d);if(!(M<0||M>=d+g)){var H=this.newlineIndex(d,!0)+1,K=M-H+1,W=this.isolate(H,K),U=W.next;W.format(A,L),U instanceof k&&U.formatAt(0,d-H+g-K,A,L)}}}},{key:"insertAt",value:function(d,g,A){if(A==null){var L=this.descendant(o.default,d),M=N(L,2),H=M[0],K=M[1];H.insertAt(K,g)}}},{key:"length",value:function(){var d=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?d:d+1}},{key:"newlineIndex",value:function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(g)return this.domNode.textContent.slice(0,d).lastIndexOf(` `);var A=this.domNode.textContent.slice(d).indexOf(` `);return A>-1?d+A:-1}},{key:"optimize",value:function(d){this.domNode.textContent.endsWith(` `)||this.appendChild(i.default.create("text",` `)),T(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,d);var g=this.next;g!=null&&g.prev===this&&g.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===g.statics.formats(g.domNode)&&(g.optimize(d),g.moveChildren(this),g.remove())}},{key:"replace",value:function(d){T(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replace",this).call(this,d),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(g){var A=i.default.find(g);A==null?g.parentNode.removeChild(g):A instanceof i.default.Embed?A.remove():A.unwrap()})}}],[{key:"create",value:function(d){var g=T(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,d);return g.setAttribute("spellcheck",!1),g}},{key:"formats",value:function(){return!0}}]),k}(t.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",_.Code=E,_.default=O},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},S=function(){function U(R,w){var q=[],j=!0,B=!1,D=void 0;try{for(var P=R[Symbol.iterator](),C;!(j=(C=P.next()).done)&&(q.push(C.value),!(w&&q.length===w));j=!0);}catch($){B=!0,D=$}finally{try{!j&&P.return&&P.return()}finally{if(B)throw D}}return q}return function(R,w){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return U(R,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function U(R,w){for(var q=0;q<w.length;q++){var j=w[q];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(R,j.key,j)}}return function(R,w,q){return w&&U(R.prototype,w),q&&U(R,q),R}}(),y=p(2),v=g(y),u=p(20),i=g(u),e=p(0),t=g(e),c=p(13),s=g(c),f=p(24),o=g(f),a=p(4),r=g(a),n=p(16),l=g(n),E=p(21),O=g(E),b=p(11),k=g(b),m=p(3),d=g(m);function g(U){return U&&U.__esModule?U:{default:U}}function A(U,R,w){return R in U?Object.defineProperty(U,R,{value:w,enumerable:!0,configurable:!0,writable:!0}):U[R]=w,U}function L(U,R){if(!(U instanceof R))throw new TypeError("Cannot call a class as a function")}var M=/^[ -~]*$/,H=function(){function U(R){L(this,U),this.scroll=R,this.delta=this.getDelta()}return T(U,[{key:"applyDelta",value:function(w){var q=this,j=!1;this.scroll.update();var B=this.scroll.length();return this.scroll.batchStart(),w=W(w),w.reduce(function(D,P){var C=P.retain||P.delete||P.insert.length||1,$=P.attributes||{};if(P.insert!=null){if(typeof P.insert=="string"){var G=P.insert;G.endsWith(` `)&&j&&(j=!1,G=G.slice(0,-1)),D>=B&&!G.endsWith(` `)&&(j=!0),q.scroll.insertAt(D,G);var X=q.scroll.line(D),te=S(X,2),ie=te[0],ae=te[1],fe=(0,d.default)({},(0,a.bubbleFormats)(ie));if(ie instanceof r.default){var ce=ie.descendant(t.default.Leaf,ae),me=S(ce,1),ge=me[0];fe=(0,d.default)(fe,(0,a.bubbleFormats)(ge))}$=i.default.attributes.diff(fe,$)||{}}else if(N(P.insert)==="object"){var V=Object.keys(P.insert)[0];if(V==null)return D;q.scroll.insertAt(D,V,P.insert[V])}B+=C}return Object.keys($).forEach(function(Y){q.scroll.formatAt(D,C,Y,$[Y])}),D+C},0),w.reduce(function(D,P){return typeof P.delete=="number"?(q.scroll.deleteAt(D,P.delete),D):D+(P.retain||P.insert.length||1)},0),this.scroll.batchEnd(),this.update(w)}},{key:"deleteText",value:function(w,q){return this.scroll.deleteAt(w,q),this.update(new v.default().retain(w).delete(q))}},{key:"formatLine",value:function(w,q){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(B).forEach(function(D){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[D])){var P=j.scroll.lines(w,Math.max(q,1)),C=q;P.forEach(function($){var G=$.length();if(!($ instanceof s.default))$.format(D,B[D]);else{var X=w-$.offset(j.scroll),te=$.newlineIndex(X+C)-X+1;$.formatAt(X,te,D,B[D])}C-=G})}}),this.scroll.optimize(),this.update(new v.default().retain(w).retain(q,(0,O.default)(B)))}},{key:"formatText",value:function(w,q){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(B).forEach(function(D){j.scroll.formatAt(w,q,D,B[D])}),this.update(new v.default().retain(w).retain(q,(0,O.default)(B)))}},{key:"getContents",value:function(w,q){return this.delta.slice(w,w+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(w,q){return w.concat(q.delta())},new v.default)}},{key:"getFormat",value:function(w){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],B=[];q===0?this.scroll.path(w).forEach(function(P){var C=S(P,1),$=C[0];$ instanceof r.default?j.push($):$ instanceof t.default.Leaf&&B.push($)}):(j=this.scroll.lines(w,q),B=this.scroll.descendants(t.default.Leaf,w,q));var D=[j,B].map(function(P){if(P.length===0)return{};for(var C=(0,a.bubbleFormats)(P.shift());Object.keys(C).length>0;){var $=P.shift();if($==null)return C;C=K((0,a.bubbleFormats)($),C)}return C});return d.default.apply(d.default,D)}},{key:"getText",value:function(w,q){return this.getContents(w,q).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(w,q,j){return this.scroll.insertAt(w,q,j),this.update(new v.default().retain(w).insert(A({},q,j)))}},{key:"insertText",value:function(w,q){var j=this,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q=q.replace(/\r\n/g,` `).replace(/\r/g,` `),this.scroll.insertAt(w,q),Object.keys(B).forEach(function(D){j.scroll.formatAt(w,q.length,D,B[D])}),this.update(new v.default().retain(w).insert(q,(0,O.default)(B)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var w=this.scroll.children.head;return w.statics.blotName!==r.default.blotName||w.children.length>1?!1:w.children.head instanceof l.default}},{key:"removeFormat",value:function(w,q){var j=this.getText(w,q),B=this.scroll.line(w+q),D=S(B,2),P=D[0],C=D[1],$=0,G=new v.default;P!=null&&(P instanceof s.default?$=P.newlineIndex(C)-C+1:$=P.length()-C,G=P.delta().slice(C,C+$-1).insert(` `));var X=this.getContents(w,q+$),te=X.diff(new v.default().insert(j).concat(G)),ie=new v.default().retain(w).concat(te);return this.applyDelta(ie)}},{key:"update",value:function(w){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,B=this.delta;if(q.length===1&&q[0].type==="characterData"&&q[0].target.data.match(M)&&t.default.find(q[0].target)){var D=t.default.find(q[0].target),P=(0,a.bubbleFormats)(D),C=D.offset(this.scroll),$=q[0].oldValue.replace(o.default.CONTENTS,""),G=new v.default().insert($),X=new v.default().insert(D.value()),te=new v.default().retain(C).concat(G.diff(X,j));w=te.reduce(function(ie,ae){return ae.insert?ie.insert(ae.insert,P):ie.push(ae)},new v.default),this.delta=B.compose(w)}else this.delta=this.getDelta(),(!w||!(0,k.default)(B.compose(w),this.delta))&&(w=B.diff(this.delta,j));return w}}]),U}();function K(U,R){return Object.keys(R).reduce(function(w,q){return U[q]==null||(R[q]===U[q]?w[q]=R[q]:Array.isArray(R[q])?R[q].indexOf(U[q])<0&&(w[q]=R[q].concat([U[q]])):w[q]=[R[q],U[q]]),w},{})}function W(U){return U.reduce(function(R,w){if(w.insert===1){var q=(0,O.default)(w.attributes);return delete q.image,R.insert({image:w.attributes.image},q)}if(w.attributes!=null&&(w.attributes.list===!0||w.attributes.bullet===!0)&&(w=(0,O.default)(w),w.attributes.list?w.attributes.list="ordered":(w.attributes.list="bullet",delete w.attributes.bullet)),typeof w.insert=="string"){var j=w.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return R.insert(j,w.attributes)}return R.push(w)},new v.default)}_.default=H},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.Range=void 0;var N=function(){function b(k,m){var d=[],g=!0,A=!1,L=void 0;try{for(var M=k[Symbol.iterator](),H;!(g=(H=M.next()).done)&&(d.push(H.value),!(m&&d.length===m));g=!0);}catch(K){A=!0,L=K}finally{try{!g&&M.return&&M.return()}finally{if(A)throw L}}return d}return function(k,m){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return b(k,m);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function b(k,m){for(var d=0;d<m.length;d++){var g=m[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(k,g.key,g)}}return function(k,m,d){return m&&b(k.prototype,m),d&&b(k,d),k}}(),T=p(0),y=o(T),v=p(21),u=o(v),i=p(11),e=o(i),t=p(8),c=o(t),s=p(10),f=o(s);function o(b){return b&&b.__esModule?b:{default:b}}function a(b){if(Array.isArray(b)){for(var k=0,m=Array(b.length);k<b.length;k++)m[k]=b[k];return m}else return Array.from(b)}function r(b,k){if(!(b instanceof k))throw new TypeError("Cannot call a class as a function")}var n=(0,f.default)("quill:selection"),l=function b(k){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;r(this,b),this.index=k,this.length=m},E=function(){function b(k,m){var d=this;r(this,b),this.emitter=m,this.scroll=k,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new l(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){d.mouseDown||setTimeout(d.update.bind(d,c.default.sources.USER),1)}),this.emitter.on(c.default.events.EDITOR_CHANGE,function(g,A){g===c.default.events.TEXT_CHANGE&&A.length()>0&&d.update(c.default.sources.SILENT)}),this.emitter.on(c.default.events.SCROLL_BEFORE_UPDATE,function(){if(d.hasFocus()){var g=d.getNativeRange();g!=null&&g.start.node!==d.cursor.textNode&&d.emitter.once(c.default.events.SCROLL_UPDATE,function(){try{d.setNativeRange(g.start.node,g.start.offset,g.end.node,g.end.offset)}catch{}})}}),this.emitter.on(c.default.events.SCROLL_OPTIMIZE,function(g,A){if(A.range){var L=A.range,M=L.startNode,H=L.startOffset,K=L.endNode,W=L.endOffset;d.setNativeRange(M,H,K,W)}}),this.update(c.default.sources.SILENT)}return S(b,[{key:"handleComposition",value:function(){var m=this;this.root.addEventListener("compositionstart",function(){m.composing=!0}),this.root.addEventListener("compositionend",function(){if(m.composing=!1,m.cursor.parent){var d=m.cursor.restore();if(!d)return;setTimeout(function(){m.setNativeRange(d.startNode,d.startOffset,d.endNode,d.endOffset)},1)}})}},{key:"handleDragging",value:function(){var m=this;this.emitter.listenDOM("mousedown",document.body,function(){m.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){m.mouseDown=!1,m.update(c.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(m,d){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[m])){this.scroll.update();var g=this.getNativeRange();if(!(g==null||!g.native.collapsed||y.default.query(m,y.default.Scope.BLOCK))){if(g.start.node!==this.cursor.textNode){var A=y.default.find(g.start.node,!1);if(A==null)return;if(A instanceof y.default.Leaf){var L=A.split(g.start.offset);A.parent.insertBefore(this.cursor,L)}else A.insertBefore(this.cursor,g.start.node);this.cursor.attach()}this.cursor.format(m,d),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(m){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,g=this.scroll.length();m=Math.min(m,g-1),d=Math.min(m+d,g-1)-m;var A=void 0,L=this.scroll.leaf(m),M=N(L,2),H=M[0],K=M[1];if(H==null)return null;var W=H.position(K,!0),U=N(W,2);A=U[0],K=U[1];var R=document.createRange();if(d>0){R.setStart(A,K);var w=this.scroll.leaf(m+d),q=N(w,2);if(H=q[0],K=q[1],H==null)return null;var j=H.position(K,!0),B=N(j,2);return A=B[0],K=B[1],R.setEnd(A,K),R.getBoundingClientRect()}else{var D="left",P=void 0;return A instanceof Text?(K<A.data.length?(R.setStart(A,K),R.setEnd(A,K+1)):(R.setStart(A,K-1),R.setEnd(A,K),D="right"),P=R.getBoundingClientRect()):(P=H.domNode.getBoundingClientRect(),K>0&&(D="right")),{bottom:P.top+P.height,height:P.height,left:P[D],right:P[D],top:P.top,width:0}}}},{key:"getNativeRange",value:function(){var m=document.getSelection();if(m==null||m.rangeCount<=0)return null;var d=m.getRangeAt(0);if(d==null)return null;var g=this.normalizeNative(d);return n.info("getNativeRange",g),g}},{key:"getRange",value:function(){var m=this.getNativeRange();if(m==null)return[null,null];var d=this.normalizedToRange(m);return[d,m]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(m){var d=this,g=[[m.start.node,m.start.offset]];m.native.collapsed||g.push([m.end.node,m.end.offset]);var A=g.map(function(H){var K=N(H,2),W=K[0],U=K[1],R=y.default.find(W,!0),w=R.offset(d.scroll);return U===0?w:R instanceof y.default.Container?w+R.length():w+R.index(W,U)}),L=Math.min(Math.max.apply(Math,a(A)),this.scroll.length()-1),M=Math.min.apply(Math,[L].concat(a(A)));return new l(M,L-M)}},{key:"normalizeNative",value:function(m){if(!O(this.root,m.startContainer)||!m.collapsed&&!O(this.root,m.endContainer))return null;var d={start:{node:m.startContainer,offset:m.startOffset},end:{node:m.endContainer,offset:m.endOffset},native:m};return[d.start,d.end].forEach(function(g){for(var A=g.node,L=g.offset;!(A instanceof Text)&&A.childNodes.length>0;)if(A.childNodes.length>L)A=A.childNodes[L],L=0;else if(A.childNodes.length===L)A=A.lastChild,L=A instanceof Text?A.data.length:A.childNodes.length+1;else break;g.node=A,g.offset=L}),d}},{key:"rangeToNative",value:function(m){var d=this,g=m.collapsed?[m.index]:[m.index,m.index+m.length],A=[],L=this.scroll.length();return g.forEach(function(M,H){M=Math.min(L-1,M);var K=void 0,W=d.scroll.leaf(M),U=N(W,2),R=U[0],w=U[1],q=R.position(w,H!==0),j=N(q,2);K=j[0],w=j[1],A.push(K,w)}),A.length<2&&(A=A.concat(A)),A}},{key:"scrollIntoView",value:function(m){var d=this.lastRange;if(d!=null){var g=this.getBounds(d.index,d.length);if(g!=null){var A=this.scroll.length()-1,L=this.scroll.line(Math.min(d.index,A)),M=N(L,1),H=M[0],K=H;if(d.length>0){var W=this.scroll.line(Math.min(d.index+d.length,A)),U=N(W,1);K=U[0]}if(!(H==null||K==null)){var R=m.getBoundingClientRect();g.top<R.top?m.scrollTop-=R.top-g.top:g.bottom>R.bottom&&(m.scrollTop+=g.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(m,d){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m,A=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d,L=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",m,d,g,A),!(m!=null&&(this.root.parentNode==null||m.parentNode==null||g.parentNode==null))){var M=document.getSelection();if(M!=null)if(m!=null){this.hasFocus()||this.root.focus();var H=(this.getNativeRange()||{}).native;if(H==null||L||m!==H.startContainer||d!==H.startOffset||g!==H.endContainer||A!==H.endOffset){m.tagName=="BR"&&(d=[].indexOf.call(m.parentNode.childNodes,m),m=m.parentNode),g.tagName=="BR"&&(A=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode);var K=document.createRange();K.setStart(m,d),K.setEnd(g,A),M.removeAllRanges(),M.addRange(K)}}else M.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(m){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c.default.sources.API;if(typeof d=="string"&&(g=d,d=!1),n.info("setRange",m),m!=null){var A=this.rangeToNative(m);this.setNativeRange.apply(this,a(A).concat([d]))}else this.setNativeRange(null);this.update(g)}},{key:"update",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c.default.sources.USER,d=this.lastRange,g=this.getRange(),A=N(g,2),L=A[0],M=A[1];if(this.lastRange=L,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(d,this.lastRange)){var H;!this.composing&&M!=null&&M.native.collapsed&&M.start.node!==this.cursor.textNode&&this.cursor.restore();var K=[c.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(d),m];if((H=this.emitter).emit.apply(H,[c.default.events.EDITOR_CHANGE].concat(K)),m!==c.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,K)}}}}]),b}();function O(b,k){try{k.parentNode}catch{return!1}return k instanceof Text&&(k=k.parentNode),b.contains(k)}_.Range=l,_.default=E},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function c(s,f){for(var o=0;o<f.length;o++){var a=f[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,f,o){return f&&c(s.prototype,f),o&&c(s,o),s}}(),S=function c(s,f,o){s===null&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,f);if(a===void 0){var r=Object.getPrototypeOf(s);return r===null?void 0:c(r,f,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},T=p(0),y=v(T);function v(c){return c&&c.__esModule?c:{default:c}}function u(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function e(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var t=function(c){e(s,c);function s(){return u(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return N(s,[{key:"insertInto",value:function(o,a){o.children.length===0?S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertInto",this).call(this,o,a):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),s}(y.default.Embed);t.blotName="break",t.tagName="BR",_.default=t},function(I,_,p){var N=this&&this.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var c in t)t.hasOwnProperty(c)&&(e[c]=t[c])};return function(e,t){i(e,t);function c(){this.constructor=e}e.prototype=t===null?Object.create(t):(c.prototype=t.prototype,new c)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(44),T=p(30),y=p(1),v=function(i){N(e,i);function e(t){var c=i.call(this,t)||this;return c.build(),c}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){i.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new S.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(c){try{var s=u(c);t.insertBefore(s,t.children.head||void 0)}catch(f){if(f instanceof y.ParchmentError)return;throw f}})},e.prototype.deleteAt=function(t,c){if(t===0&&c===this.length())return this.remove();this.children.forEachAt(t,c,function(s,f,o){s.deleteAt(f,o)})},e.prototype.descendant=function(t,c){var s=this.children.find(c),f=s[0],o=s[1];return t.blotName==null&&t(f)||t.blotName!=null&&f instanceof t?[f,o]:f instanceof e?f.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,c,s){c===void 0&&(c=0),s===void 0&&(s=Number.MAX_VALUE);var f=[],o=s;return this.children.forEachAt(c,s,function(a,r,n){(t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t)&&f.push(a),a instanceof e&&(f=f.concat(a.descendants(t,r,o))),o-=n}),f},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),i.prototype.detach.call(this)},e.prototype.formatAt=function(t,c,s,f){this.children.forEachAt(t,c,function(o,a,r){o.formatAt(a,r,s,f)})},e.prototype.insertAt=function(t,c,s){var f=this.children.find(t),o=f[0],a=f[1];if(o)o.insertAt(a,c,s);else{var r=s==null?y.create("text",c):y.create(c,s);this.appendChild(r)}},e.prototype.insertBefore=function(t,c){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(s){return t instanceof s}))throw new y.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,c)},e.prototype.length=function(){return this.children.reduce(function(t,c){return t+c.length()},0)},e.prototype.moveChildren=function(t,c){this.children.forEach(function(s){t.insertBefore(s,c)})},e.prototype.optimize=function(t){if(i.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var c=y.create(this.statics.defaultChild);this.appendChild(c),c.optimize(t)}else this.remove()},e.prototype.path=function(t,c){c===void 0&&(c=!1);var s=this.children.find(t,c),f=s[0],o=s[1],a=[[this,t]];return f instanceof e?a.concat(f.path(o,c)):(f!=null&&a.push([f,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),i.prototype.replace.call(this,t)},e.prototype.split=function(t,c){if(c===void 0&&(c=!1),!c){if(t===0)return this;if(t===this.length())return this.next}var s=this.clone();return this.parent.insertBefore(s,this.next),this.children.forEachAt(t,this.length(),function(f,o,a){f=f.split(o,c),s.appendChild(f)}),s},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,c){var s=this,f=[],o=[];t.forEach(function(a){a.target===s.domNode&&a.type==="childList"&&(f.push.apply(f,a.addedNodes),o.push.apply(o,a.removedNodes))}),o.forEach(function(a){if(!(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var r=y.find(a);r!=null&&(r.domNode.parentNode==null||r.domNode.parentNode===s.domNode)&&r.detach()}}),f.filter(function(a){return a.parentNode==s.domNode}).sort(function(a,r){return a===r?0:a.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(a){var r=null;a.nextSibling!=null&&(r=y.find(a.nextSibling));var n=u(a);(n.next!=r||n.next==null)&&(n.parent!=null&&n.parent.removeChild(s),s.insertBefore(n,r||void 0))})},e}(T.default);function u(i){var e=y.find(i);if(e==null)try{e=y.create(i)}catch{e=y.create(y.Scope.INLINE),[].slice.call(i.childNodes).forEach(function(c){e.domNode.appendChild(c)}),i.parentNode&&i.parentNode.replaceChild(e.domNode,i),e.attach()}return e}_.default=v},function(I,_,p){var N=this&&this.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var c in t)t.hasOwnProperty(c)&&(e[c]=t[c])};return function(e,t){i(e,t);function c(){this.constructor=e}e.prototype=t===null?Object.create(t):(c.prototype=t.prototype,new c)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(12),T=p(31),y=p(17),v=p(1),u=function(i){N(e,i);function e(t){var c=i.call(this,t)||this;return c.attributes=new T.default(c.domNode),c}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,c){var s=v.query(t);s instanceof S.default?this.attributes.attribute(s,c):c&&s!=null&&(t!==this.statics.blotName||this.formats()[t]!==c)&&this.replaceWith(t,c)},e.prototype.formats=function(){var t=this.attributes.values(),c=this.statics.formats(this.domNode);return c!=null&&(t[this.statics.blotName]=c),t},e.prototype.replaceWith=function(t,c){var s=i.prototype.replaceWith.call(this,t,c);return this.attributes.copy(s),s},e.prototype.update=function(t,c){var s=this;i.prototype.update.call(this,t,c),t.some(function(f){return f.target===s.domNode&&f.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,c){var s=i.prototype.wrap.call(this,t,c);return s instanceof e&&s.statics.scope===this.statics.scope&&this.attributes.move(s),s},e}(y.default);_.default=u},function(I,_,p){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,i){u.__proto__=i}||function(u,i){for(var e in i)i.hasOwnProperty(e)&&(u[e]=i[e])};return function(u,i){v(u,i);function e(){this.constructor=u}u.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(30),T=p(1),y=function(v){N(u,v);function u(){return v!==null&&v.apply(this,arguments)||this}return u.value=function(i){return!0},u.prototype.index=function(i,e){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},u.prototype.position=function(i,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return i>0&&(t+=1),[this.parent.domNode,t]},u.prototype.value=function(){var i;return i={},i[this.statics.blotName]=this.statics.value(this.domNode)||!0,i},u.scope=T.Scope.INLINE_BLOT,u}(S.default);_.default=y},function(I,_,p){var N=p(11),S=p(3),T={attributes:{compose:function(v,u,i){typeof v!="object"&&(v={}),typeof u!="object"&&(u={});var e=S(!0,{},u);i||(e=Object.keys(e).reduce(function(c,s){return e[s]!=null&&(c[s]=e[s]),c},{}));for(var t in v)v[t]!==void 0&&u[t]===void 0&&(e[t]=v[t]);return Object.keys(e).length>0?e:void 0},diff:function(v,u){typeof v!="object"&&(v={}),typeof u!="object"&&(u={});var i=Object.keys(v).concat(Object.keys(u)).reduce(function(e,t){return N(v[t],u[t])||(e[t]=u[t]===void 0?null:u[t]),e},{});return Object.keys(i).length>0?i:void 0},transform:function(v,u,i){if(typeof v!="object")return u;if(typeof u=="object"){if(!i)return u;var e=Object.keys(u).reduce(function(t,c){return v[c]===void 0&&(t[c]=u[c]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(v){return new y(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function y(v){this.ops=v,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(v){v||(v=1/0);var u=this.ops[this.index];if(u){var i=this.offset,e=T.length(u);if(v>=e-i?(v=e-i,this.index+=1,this.offset=0):this.offset+=v,typeof u.delete=="number")return{delete:v};var t={};return u.attributes&&(t.attributes=u.attributes),typeof u.retain=="number"?t.retain=v:typeof u.insert=="string"?t.insert=u.insert.substr(i,v):t.insert=u.insert,t}else return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?T.length(this.ops[this.index])-this.offset:1/0},y.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},y.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var v=this.offset,u=this.index,i=this.next(),e=this.ops.slice(this.index);return this.offset=v,this.index=u,[i].concat(e)}else return[]},I.exports=T},function(I,_){var p=function(){function N(s,f){return f!=null&&s instanceof f}var S;try{S=Map}catch{S=function(){}}var T;try{T=Set}catch{T=function(){}}var y;try{y=Promise}catch{y=function(){}}function v(s,f,o,a,r){typeof f=="object"&&(o=f.depth,a=f.prototype,r=f.includeNonEnumerable,f=f.circular);var n=[],l=[],E=typeof xt<"u";typeof f>"u"&&(f=!0),typeof o>"u"&&(o=1/0);function O(b,k){if(b===null)return null;if(k===0)return b;var m,d;if(typeof b!="object")return b;if(N(b,S))m=new S;else if(N(b,T))m=new T;else if(N(b,y))m=new y(function(R,w){b.then(function(q){R(O(q,k-1))},function(q){w(O(q,k-1))})});else if(v.__isArray(b))m=[];else if(v.__isRegExp(b))m=new RegExp(b.source,c(b)),b.lastIndex&&(m.lastIndex=b.lastIndex);else if(v.__isDate(b))m=new Date(b.getTime());else{if(E&&xt.isBuffer(b))return xt.allocUnsafe?m=xt.allocUnsafe(b.length):m=new xt(b.length),b.copy(m),m;N(b,Error)?m=Object.create(b):typeof a>"u"?(d=Object.getPrototypeOf(b),m=Object.create(d)):(m=Object.create(a),d=a)}if(f){var g=n.indexOf(b);if(g!=-1)return l[g];n.push(b),l.push(m)}N(b,S)&&b.forEach(function(R,w){var q=O(w,k-1),j=O(R,k-1);m.set(q,j)}),N(b,T)&&b.forEach(function(R){var w=O(R,k-1);m.add(w)});for(var A in b){var L;d&&(L=Object.getOwnPropertyDescriptor(d,A)),!(L&&L.set==null)&&(m[A]=O(b[A],k-1))}if(Object.getOwnPropertySymbols)for(var M=Object.getOwnPropertySymbols(b),A=0;A<M.length;A++){var H=M[A],K=Object.getOwnPropertyDescriptor(b,H);K&&!K.enumerable&&!r||(m[H]=O(b[H],k-1),K.enumerable||Object.defineProperty(m,H,{enumerable:!1}))}if(r)for(var W=Object.getOwnPropertyNames(b),A=0;A<W.length;A++){var U=W[A],K=Object.getOwnPropertyDescriptor(b,U);K&&K.enumerable||(m[U]=O(b[U],k-1),Object.defineProperty(m,U,{enumerable:!1}))}return m}return O(s,o)}v.clonePrototype=function(f){if(f===null)return null;var o=function(){};return o.prototype=f,new o};function u(s){return Object.prototype.toString.call(s)}v.__objToStr=u;function i(s){return typeof s=="object"&&u(s)==="[object Date]"}v.__isDate=i;function e(s){return typeof s=="object"&&u(s)==="[object Array]"}v.__isArray=e;function t(s){return typeof s=="object"&&u(s)==="[object RegExp]"}v.__isRegExp=t;function c(s){var f="";return s.global&&(f+="g"),s.ignoreCase&&(f+="i"),s.multiline&&(f+="m"),f}return v.__getRegExpFlags=c,v}();typeof I=="object"&&I.exports&&(I.exports=p)},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function m(d,g){var A=[],L=!0,M=!1,H=void 0;try{for(var K=d[Symbol.iterator](),W;!(L=(W=K.next()).done)&&(A.push(W.value),!(g&&A.length===g));L=!0);}catch(U){M=!0,H=U}finally{try{!L&&K.return&&K.return()}finally{if(M)throw H}}return A}return function(d,g){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return m(d,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function m(d,g){for(var A=0;A<g.length;A++){var L=g[A];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(d,L.key,L)}}return function(d,g,A){return g&&m(d.prototype,g),A&&m(d,A),d}}(),T=function m(d,g,A){d===null&&(d=Function.prototype);var L=Object.getOwnPropertyDescriptor(d,g);if(L===void 0){var M=Object.getPrototypeOf(d);return M===null?void 0:m(M,g,A)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(A)}},y=p(0),v=n(y),u=p(8),i=n(u),e=p(4),t=n(e),c=p(16),s=n(c),f=p(13),o=n(f),a=p(25),r=n(a);function n(m){return m&&m.__esModule?m:{default:m}}function l(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function E(m,d){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:m}function O(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(m,d):m.__proto__=d)}function b(m){return m instanceof t.default||m instanceof e.BlockEmbed}var k=function(m){O(d,m);function d(g,A){l(this,d);var L=E(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,g));return L.emitter=A.emitter,Array.isArray(A.whitelist)&&(L.whitelist=A.whitelist.reduce(function(M,H){return M[H]=!0,M},{})),L.domNode.addEventListener("DOMNodeInserted",function(){}),L.optimize(),L.enable(),L}return S(d,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(A,L){var M=this.line(A),H=N(M,2),K=H[0],W=H[1],U=this.line(A+L),R=N(U,1),w=R[0];if(T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,A,L),w!=null&&K!==w&&W>0){if(K instanceof e.BlockEmbed||w instanceof e.BlockEmbed){this.optimize();return}if(K instanceof o.default){var q=K.newlineIndex(K.length(),!0);if(q>-1&&(K=K.split(q+1),K===w)){this.optimize();return}}else if(w instanceof o.default){var j=w.newlineIndex(0);j>-1&&w.split(j+1)}var B=w.children.head instanceof s.default?null:w.children.head;K.moveChildren(w,B),K.remove()}this.optimize()}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",A)}},{key:"formatAt",value:function(A,L,M,H){this.whitelist!=null&&!this.whitelist[M]||(T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,A,L,M,H),this.optimize())}},{key:"insertAt",value:function(A,L,M){if(!(M!=null&&this.whitelist!=null&&!this.whitelist[L])){if(A>=this.length())if(M==null||v.default.query(L,v.default.Scope.BLOCK)==null){var H=v.default.create(this.statics.defaultChild);this.appendChild(H),M==null&&L.endsWith(` `)&&(L=L.slice(0,-1)),H.insertAt(0,L,M)}else{var K=v.default.create(L,M);this.appendChild(K)}else T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,A,L,M);this.optimize()}}},{key:"insertBefore",value:function(A,L){if(A.statics.scope===v.default.Scope.INLINE_BLOT){var M=v.default.create(this.statics.defaultChild);M.appendChild(A),A=M}T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,A,L)}},{key:"leaf",value:function(A){return this.path(A).pop()||[null,-1]}},{key:"line",value:function(A){return A===this.length()?this.line(A-1):this.descendant(b,A)}},{key:"lines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,M=function H(K,W,U){var R=[],w=U;return K.children.forEachAt(W,U,function(q,j,B){b(q)?R.push(q):q instanceof v.default.Container&&(R=R.concat(H(q,j,w))),w-=B}),R};return M(this,A,L)}},{key:"optimize",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,A,L),A.length>0&&this.emitter.emit(i.default.events.SCROLL_OPTIMIZE,A,L))}},{key:"path",value:function(A){return T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,A).slice(1)}},{key:"update",value:function(A){if(this.batch!==!0){var L=i.default.sources.USER;typeof A=="string"&&(L=A),Array.isArray(A)||(A=this.observer.takeRecords()),A.length>0&&this.emitter.emit(i.default.events.SCROLL_BEFORE_UPDATE,L,A),T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"update",this).call(this,A.concat([])),A.length>0&&this.emitter.emit(i.default.events.SCROLL_UPDATE,L,A)}}}]),d}(v.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[t.default,e.BlockEmbed,r.default],_.default=k},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.SHORTKEY=_.default=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},S=function(){function P(C,$){var G=[],X=!0,te=!1,ie=void 0;try{for(var ae=C[Symbol.iterator](),fe;!(X=(fe=ae.next()).done)&&(G.push(fe.value),!($&&G.length===$));X=!0);}catch(ce){te=!0,ie=ce}finally{try{!X&&ae.return&&ae.return()}finally{if(te)throw ie}}return G}return function(C,$){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return P(C,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function P(C,$){for(var G=0;G<$.length;G++){var X=$[G];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(C,X.key,X)}}return function(C,$,G){return $&&P(C.prototype,$),G&&P(C,G),C}}(),y=p(21),v=m(y),u=p(11),i=m(u),e=p(3),t=m(e),c=p(2),s=m(c),f=p(20),o=m(f),a=p(0),r=m(a),n=p(5),l=m(n),E=p(10),O=m(E),b=p(9),k=m(b);function m(P){return P&&P.__esModule?P:{default:P}}function d(P,C,$){return C in P?Object.defineProperty(P,C,{value:$,enumerable:!0,configurable:!0,writable:!0}):P[C]=$,P}function g(P,C){if(!(P instanceof C))throw new TypeError("Cannot call a class as a function")}function A(P,C){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:P}function L(P,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);P.prototype=Object.create(C&&C.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(P,C):P.__proto__=C)}var M=(0,O.default)("quill:keyboard"),H=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",K=function(P){L(C,P),T(C,null,[{key:"match",value:function(G,X){return X=D(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(te){return!!X[te]!==G[te]&&X[te]!==null})?!1:X.key===(G.which||G.keyCode)}}]);function C($,G){g(this,C);var X=A(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,$,G));return X.bindings={},Object.keys(X.options.bindings).forEach(function(te){te==="list autofill"&&$.scroll.whitelist!=null&&!$.scroll.whitelist.list||X.options.bindings[te]&&X.addBinding(X.options.bindings[te])}),X.addBinding({key:C.keys.ENTER,shiftKey:null},q),X.addBinding({key:C.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:C.keys.BACKSPACE},{collapsed:!0},U),X.addBinding({key:C.keys.DELETE},{collapsed:!0},R)):(X.addBinding({key:C.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},U),X.addBinding({key:C.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),X.addBinding({key:C.keys.BACKSPACE},{collapsed:!1},w),X.addBinding({key:C.keys.DELETE},{collapsed:!1},w),X.addBinding({key:C.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},U),X.listen(),X}return T(C,[{key:"addBinding",value:function(G){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=D(G);if(ie==null||ie.key==null)return M.warn("Attempted to add invalid keyboard binding",ie);typeof X=="function"&&(X={handler:X}),typeof te=="function"&&(te={handler:te}),ie=(0,t.default)(ie,X,te),this.bindings[ie.key]=this.bindings[ie.key]||[],this.bindings[ie.key].push(ie)}},{key:"listen",value:function(){var G=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var te=X.which||X.keyCode,ie=(G.bindings[te]||[]).filter(function(he){return C.match(X,he)});if(ie.length!==0){var ae=G.quill.getSelection();if(!(ae==null||!G.quill.hasFocus())){var fe=G.quill.getLine(ae.index),ce=S(fe,2),me=ce[0],ge=ce[1],V=G.quill.getLeaf(ae.index),Y=S(V,2),ee=Y[0],ne=Y[1],Q=ae.length===0?[ee,ne]:G.quill.getLeaf(ae.index+ae.length),ue=S(Q,2),oe=ue[0],le=ue[1],Te=ee instanceof r.default.Text?ee.value().slice(0,ne):"",Ee=oe instanceof r.default.Text?oe.value().slice(le):"",pe={collapsed:ae.length===0,empty:ae.length===0&&me.length()<=1,format:G.quill.getFormat(ae),offset:ge,prefix:Te,suffix:Ee},We=ie.some(function(he){if(he.collapsed!=null&&he.collapsed!==pe.collapsed||he.empty!=null&&he.empty!==pe.empty||he.offset!=null&&he.offset!==pe.offset)return!1;if(Array.isArray(he.format)){if(he.format.every(function(Re){return pe.format[Re]==null}))return!1}else if(N(he.format)==="object"&&!Object.keys(he.format).every(function(Re){return he.format[Re]===!0?pe.format[Re]!=null:he.format[Re]===!1?pe.format[Re]==null:(0,i.default)(he.format[Re],pe.format[Re])}))return!1;return he.prefix!=null&&!he.prefix.test(pe.prefix)||he.suffix!=null&&!he.suffix.test(pe.suffix)?!1:he.handler.call(G,ae,pe)!==!0});We&&X.preventDefault()}}}})}}]),C}(k.default);K.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},K.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:K.keys.TAB,format:["blockquote","indent","list"],handler:function(C,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","+1",l.default.sources.USER)}},outdent:{key:K.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(C,$){if($.collapsed&&$.offset!==0)return!0;this.quill.format("indent","-1",l.default.sources.USER)}},"outdent backspace":{key:K.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(C,$){$.format.indent!=null?this.quill.format("indent","-1",l.default.sources.USER):$.format.list!=null&&this.quill.format("list",!1,l.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:K.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(C){this.quill.deleteText(C.index-1,1,l.default.sources.USER)}},tab:{key:K.keys.TAB,handler:function(C){this.quill.history.cutoff();var $=new s.default().retain(C.index).delete(C.length).insert(" ");this.quill.updateContents($,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index+1,l.default.sources.SILENT)}},"list empty enter":{key:K.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(C,$){this.quill.format("list",!1,l.default.sources.USER),$.format.indent&&this.quill.format("indent",!1,l.default.sources.USER)}},"checklist enter":{key:K.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(C){var $=this.quill.getLine(C.index),G=S($,2),X=G[0],te=G[1],ie=(0,t.default)({},X.formats(),{list:"checked"}),ae=new s.default().retain(C.index).insert(` `,ie).retain(X.length()-te-1).retain(1,{list:"unchecked"});this.quill.updateContents(ae,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:K.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(C,$){var G=this.quill.getLine(C.index),X=S(G,2),te=X[0],ie=X[1],ae=new s.default().retain(C.index).insert(` `,$.format).retain(te.length()-ie-1).retain(1,{header:null});this.quill.updateContents(ae,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(C,$){var G=$.prefix.length,X=this.quill.getLine(C.index),te=S(X,2),ie=te[0],ae=te[1];if(ae>G)return!0;var fe=void 0;switch($.prefix.trim()){case"[]":case"[ ]":fe="unchecked";break;case"[x]":fe="checked";break;case"-":case"*":fe="bullet";break;default:fe="ordered"}this.quill.insertText(C.index," ",l.default.sources.USER),this.quill.history.cutoff();var ce=new s.default().retain(C.index-ae).delete(G+1).retain(ie.length()-2-ae).retain(1,{list:fe});this.quill.updateContents(ce,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index-G,l.default.sources.SILENT)}},"code exit":{key:K.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(C){var $=this.quill.getLine(C.index),G=S($,2),X=G[0],te=G[1],ie=new s.default().retain(C.index+X.length()-te-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ie,l.default.sources.USER)}},"embed left":W(K.keys.LEFT,!1),"embed left shift":W(K.keys.LEFT,!0),"embed right":W(K.keys.RIGHT,!1),"embed right shift":W(K.keys.RIGHT,!0)}};function W(P,C){var $,G=P===K.keys.LEFT?"prefix":"suffix";return $={key:P,shiftKey:C,altKey:null},d($,G,/^$/),d($,"handler",function(te){var ie=te.index;P===K.keys.RIGHT&&(ie+=te.length+1);var ae=this.quill.getLeaf(ie),fe=S(ae,1),ce=fe[0];return ce instanceof r.default.Embed?(P===K.keys.LEFT?C?this.quill.setSelection(te.index-1,te.length+1,l.default.sources.USER):this.quill.setSelection(te.index-1,l.default.sources.USER):C?this.quill.setSelection(te.index,te.length+1,l.default.sources.USER):this.quill.setSelection(te.index+te.length+1,l.default.sources.USER),!1):!0}),$}function U(P,C){if(!(P.index===0||this.quill.getLength()<=1)){var $=this.quill.getLine(P.index),G=S($,1),X=G[0],te={};if(C.offset===0){var ie=this.quill.getLine(P.index-1),ae=S(ie,1),fe=ae[0];if(fe!=null&&fe.length()>1){var ce=X.formats(),me=this.quill.getFormat(P.index-1,1);te=o.default.attributes.diff(ce,me)||{}}}var ge=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(C.prefix)?2:1;this.quill.deleteText(P.index-ge,ge,l.default.sources.USER),Object.keys(te).length>0&&this.quill.formatLine(P.index-ge,ge,te,l.default.sources.USER),this.quill.focus()}}function R(P,C){var $=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(C.suffix)?2:1;if(!(P.index>=this.quill.getLength()-$)){var G={},X=0,te=this.quill.getLine(P.index),ie=S(te,1),ae=ie[0];if(C.offset>=ae.length()-1){var fe=this.quill.getLine(P.index+1),ce=S(fe,1),me=ce[0];if(me){var ge=ae.formats(),V=this.quill.getFormat(P.index,1);G=o.default.attributes.diff(ge,V)||{},X=me.length()}}this.quill.deleteText(P.index,$,l.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(P.index+X-1,$,G,l.default.sources.USER)}}function w(P){var C=this.quill.getLines(P),$={};if(C.length>1){var G=C[0].formats(),X=C[C.length-1].formats();$=o.default.attributes.diff(X,G)||{}}this.quill.deleteText(P,l.default.sources.USER),Object.keys($).length>0&&this.quill.formatLine(P.index,1,$,l.default.sources.USER),this.quill.setSelection(P.index,l.default.sources.SILENT),this.quill.focus()}function q(P,C){var $=this;P.length>0&&this.quill.scroll.deleteAt(P.index,P.length);var G=Object.keys(C.format).reduce(function(X,te){return r.default.query(te,r.default.Scope.BLOCK)&&!Array.isArray(C.format[te])&&(X[te]=C.format[te]),X},{});this.quill.insertText(P.index,` `,G,l.default.sources.USER),this.quill.setSelection(P.index+1,l.default.sources.SILENT),this.quill.focus(),Object.keys(C.format).forEach(function(X){G[X]==null&&(Array.isArray(C.format[X])||X!=="link"&&$.quill.format(X,C.format[X],l.default.sources.USER))})}function j(P){return{key:K.keys.TAB,shiftKey:!P,format:{"code-block":!0},handler:function($){var G=r.default.query("code-block"),X=$.index,te=$.length,ie=this.quill.scroll.descendant(G,X),ae=S(ie,2),fe=ae[0],ce=ae[1];if(fe!=null){var me=this.quill.getIndex(fe),ge=fe.newlineIndex(ce,!0)+1,V=fe.newlineIndex(me+ce+te),Y=fe.domNode.textContent.slice(ge,V).split(` `);ce=0,Y.forEach(function(ee,ne){P?(fe.insertAt(ge+ce,G.TAB),ce+=G.TAB.length,ne===0?X+=G.TAB.length:te+=G.TAB.length):ee.startsWith(G.TAB)&&(fe.deleteAt(ge+ce,G.TAB.length),ce-=G.TAB.length,ne===0?X-=G.TAB.length:te-=G.TAB.length),ce+=ee.length+1}),this.quill.update(l.default.sources.USER),this.quill.setSelection(X,te,l.default.sources.SILENT)}}}}function B(P){return{key:P[0].toUpperCase(),shortKey:!0,handler:function($,G){this.quill.format(P,!G.format[P],l.default.sources.USER)}}}function D(P){if(typeof P=="string"||typeof P=="number")return D({key:P});if((typeof P>"u"?"undefined":N(P))==="object"&&(P=(0,v.default)(P,!1)),typeof P.key=="string")if(K.keys[P.key.toUpperCase()]!=null)P.key=K.keys[P.key.toUpperCase()];else if(P.key.length===1)P.key=P.key.toUpperCase().charCodeAt(0);else return null;return P.shortKey&&(P[H]=P.shortKey,delete P.shortKey),P}_.default=K,_.SHORTKEY=H},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function o(a,r){var n=[],l=!0,E=!1,O=void 0;try{for(var b=a[Symbol.iterator](),k;!(l=(k=b.next()).done)&&(n.push(k.value),!(r&&n.length===r));l=!0);}catch(m){E=!0,O=m}finally{try{!l&&b.return&&b.return()}finally{if(E)throw O}}return n}return function(a,r){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a))return o(a,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function o(a,r,n){a===null&&(a=Function.prototype);var l=Object.getOwnPropertyDescriptor(a,r);if(l===void 0){var E=Object.getPrototypeOf(a);return E===null?void 0:o(E,r,n)}else{if("value"in l)return l.value;var O=l.get;return O===void 0?void 0:O.call(n)}},T=function(){function o(a,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}return function(a,r,n){return r&&o(a.prototype,r),n&&o(a,n),a}}(),y=p(0),v=e(y),u=p(7),i=e(u);function e(o){return o&&o.__esModule?o:{default:o}}function t(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function c(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 s(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 f=function(o){s(a,o),T(a,null,[{key:"value",value:function(){}}]);function a(r,n){t(this,a);var l=c(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r));return l.selection=n,l.textNode=document.createTextNode(a.CONTENTS),l.domNode.appendChild(l.textNode),l._length=0,l}return T(a,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,l){if(this._length!==0)return S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,n,l);for(var E=this,O=0;E!=null&&E.statics.scope!==v.default.Scope.BLOCK_BLOT;)O+=E.offset(E.parent),E=E.parent;E!=null&&(this._length=a.CONTENTS.length,E.optimize(),E.formatAt(O,a.CONTENTS.length,n,l),this._length=0)}},{key:"index",value:function(n,l){return n===this.textNode?0:S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"index",this).call(this,n,l)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,l=this.selection.getNativeRange(),E=void 0,O=void 0,b=void 0;if(l!=null&&l.start.node===n&&l.end.node===n){var k=[n,l.start.offset,l.end.offset];E=k[0],O=k[1],b=k[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==a.CONTENTS){var m=this.textNode.data.split(a.CONTENTS).join("");this.next instanceof i.default?(E=this.next.domNode,this.next.insertAt(0,m),this.textNode.data=a.CONTENTS):(this.textNode.data=m,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(a.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),O!=null){var d=[O,b].map(function(A){return Math.max(0,Math.min(E.data.length,A-1))}),g=N(d,2);return O=g[0],b=g[1],{startNode:E,startOffset:O,endNode:E,endOffset:b}}}}},{key:"update",value:function(n,l){var E=this;if(n.some(function(b){return b.type==="characterData"&&b.target===E.textNode})){var O=this.restore();O&&(l.range=O)}}},{key:"value",value:function(){return""}}]),a}(v.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\uFEFF",_.default=f},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(0),S=v(N),T=p(4),y=v(T);function v(c){return c&&c.__esModule?c:{default:c}}function u(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function e(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var t=function(c){e(s,c);function s(){return u(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return s}(S.default.Container);t.allowedChildren=[y.default,T.BlockEmbed,t],_.default=t},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.ColorStyle=_.ColorClass=_.ColorAttributor=void 0;var N=function(){function f(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&f(o.prototype,a),r&&f(o,r),o}}(),S=function f(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:f(l,a,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},T=p(0),y=v(T);function v(f){return f&&f.__esModule?f:{default:f}}function u(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function i(f,o){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:f}function e(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(f,o):f.__proto__=o)}var t=function(f){e(o,f);function o(){return u(this,o),i(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return N(o,[{key:"value",value:function(r){var n=S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"value",this).call(this,r);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(l){return("00"+parseInt(l).toString(16)).slice(-2)}).join("")):n}}]),o}(y.default.Attributor.Style),c=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),s=new t("color","color",{scope:y.default.Scope.INLINE});_.ColorAttributor=t,_.ColorClass=c,_.ColorStyle=s},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.sanitize=_.default=void 0;var N=function(){function s(f,o){for(var a=0;a<o.length;a++){var r=o[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}return function(f,o,a){return o&&s(f.prototype,o),a&&s(f,a),f}}(),S=function s(f,o,a){f===null&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,o);if(r===void 0){var n=Object.getPrototypeOf(f);return n===null?void 0:s(n,o,a)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(a)}},T=p(6),y=v(T);function v(s){return s&&s.__esModule?s:{default:s}}function u(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function i(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:s}function e(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}var t=function(s){e(f,s);function f(){return u(this,f),i(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return N(f,[{key:"format",value:function(a,r){if(a!==this.statics.blotName||!r)return S(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,a,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(a){var r=S(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,a);return a=this.sanitize(a),r.setAttribute("href",a),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(a){return a.getAttribute("href")}},{key:"sanitize",value:function(a){return c(a,this.PROTOCOL_WHITELIST)?a:this.SANITIZED_URL}}]),f}(y.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function c(s,f){var o=document.createElement("a");o.href=s;var a=o.href.slice(0,o.href.indexOf(":"));return f.indexOf(a)>-1}_.default=t,_.sanitize=c},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=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},S=function(){function f(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&f(o.prototype,a),r&&f(o,r),o}}(),T=p(23),y=i(T),v=p(107),u=i(v);function i(f){return f&&f.__esModule?f:{default:f}}function e(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}var t=0;function c(f,o){f.setAttribute(o,f.getAttribute(o)!=="true")}var s=function(){function f(o){var a=this;e(this,f),this.select=o,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(){a.togglePicker()}),this.label.addEventListener("keydown",function(r){switch(r.keyCode){case y.default.keys.ENTER:a.togglePicker();break;case y.default.keys.ESCAPE:a.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return S(f,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(a){var r=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),a.hasAttribute("value")&&n.setAttribute("data-value",a.getAttribute("value")),a.textContent&&n.setAttribute("data-label",a.textContent),n.addEventListener("click",function(){r.selectItem(n,!0)}),n.addEventListener("keydown",function(l){switch(l.keyCode){case y.default.keys.ENTER:r.selectItem(n,!0),l.preventDefault();break;case y.default.keys.ESCAPE:r.escape(),l.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var a=document.createElement("span");return a.classList.add("ql-picker-label"),a.innerHTML=u.default,a.tabIndex="0",a.setAttribute("role","button"),a.setAttribute("aria-expanded","false"),this.container.appendChild(a),a}},{key:"buildOptions",value:function(){var a=this,r=document.createElement("span");r.classList.add("ql-picker-options"),r.setAttribute("aria-hidden","true"),r.tabIndex="-1",r.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",r.id),this.options=r,[].slice.call(this.select.options).forEach(function(n){var l=a.buildItem(n);r.appendChild(l),n.selected===!0&&a.selectItem(l)}),this.container.appendChild(r)}},{key:"buildPicker",value:function(){var a=this;[].slice.call(this.select.attributes).forEach(function(r){a.container.setAttribute(r.name,r.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var a=this;this.close(),setTimeout(function(){return a.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(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(a!==n&&(n!=null&&n.classList.remove("ql-selected"),a!=null&&(a.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(a.parentNode.children,a),a.hasAttribute("data-value")?this.label.setAttribute("data-value",a.getAttribute("data-value")):this.label.removeAttribute("data-value"),a.hasAttribute("data-label")?this.label.setAttribute("data-label",a.getAttribute("data-label")):this.label.removeAttribute("data-label"),r))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":N(Event))==="object"){var l=document.createEvent("Event");l.initEvent("change",!0,!0),this.select.dispatchEvent(l)}this.close()}}},{key:"update",value:function(){var a=void 0;if(this.select.selectedIndex>-1){var r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];a=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);var n=a!=null&&a!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),f}();_.default=s},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(0),S=M(N),T=p(5),y=M(T),v=p(4),u=M(v),i=p(16),e=M(i),t=p(25),c=M(t),s=p(24),f=M(s),o=p(35),a=M(o),r=p(6),n=M(r),l=p(22),E=M(l),O=p(7),b=M(O),k=p(55),m=M(k),d=p(42),g=M(d),A=p(23),L=M(A);function M(H){return H&&H.__esModule?H:{default:H}}y.default.register({"blots/block":u.default,"blots/block/embed":v.BlockEmbed,"blots/break":e.default,"blots/container":c.default,"blots/cursor":f.default,"blots/embed":a.default,"blots/inline":n.default,"blots/scroll":E.default,"blots/text":b.default,"modules/clipboard":m.default,"modules/history":g.default,"modules/keyboard":L.default}),S.default.register(u.default,e.default,f.default,n.default,E.default,b.default),_.default=y.default},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(1),S=function(){function T(y){this.domNode=y,this.domNode[N.DATA_KEY]={blot:this}}return Object.defineProperty(T.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),T.create=function(y){if(this.tagName==null)throw new N.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?v=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?v=document.createElement(y):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},T.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},T.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return N.create(y)},T.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[N.DATA_KEY]},T.prototype.deleteAt=function(y,v){var u=this.isolate(y,v);u.remove()},T.prototype.formatAt=function(y,v,u,i){var e=this.isolate(y,v);if(N.query(u,N.Scope.BLOT)!=null&&i)e.wrap(u,i);else if(N.query(u,N.Scope.ATTRIBUTE)!=null){var t=N.create(this.statics.scope);e.wrap(t),t.format(u,i)}},T.prototype.insertAt=function(y,v,u){var i=u==null?N.create("text",v):N.create(v,u),e=this.split(y);this.parent.insertBefore(i,e)},T.prototype.insertInto=function(y,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var u=null;y.children.insertBefore(this,v),v!=null&&(u=v.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=u)&&y.domNode.insertBefore(this.domNode,u),this.parent=y,this.attach()},T.prototype.isolate=function(y,v){var u=this.split(y);return u.split(v),u},T.prototype.length=function(){return 1},T.prototype.offset=function(y){return y===void 0&&(y=this.parent),this.parent==null||this==y?0:this.parent.children.offset(this)+this.parent.offset(y)},T.prototype.optimize=function(y){this.domNode[N.DATA_KEY]!=null&&delete this.domNode[N.DATA_KEY].mutations},T.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},T.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},T.prototype.replaceWith=function(y,v){var u=typeof y=="string"?N.create(y,v):y;return u.replace(this),u},T.prototype.split=function(y,v){return y===0?this:this.next},T.prototype.update=function(y,v){},T.prototype.wrap=function(y,v){var u=typeof y=="string"?N.create(y,v):y;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},T.blotName="abstract",T}();_.default=S},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(12),S=p(32),T=p(33),y=p(1),v=function(){function u(i){this.attributes={},this.domNode=i,this.build()}return u.prototype.attribute=function(i,e){e?i.add(this.domNode,e)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])},u.prototype.build=function(){var i=this;this.attributes={};var e=N.default.keys(this.domNode),t=S.default.keys(this.domNode),c=T.default.keys(this.domNode);e.concat(t).concat(c).forEach(function(s){var f=y.query(s,y.Scope.ATTRIBUTE);f instanceof N.default&&(i.attributes[f.attrName]=f)})},u.prototype.copy=function(i){var e=this;Object.keys(this.attributes).forEach(function(t){var c=e.attributes[t].value(e.domNode);i.format(t,c)})},u.prototype.move=function(i){var e=this;this.copy(i),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},u.prototype.values=function(){var i=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=i.attributes[t].value(i.domNode),e},{})},u}();_.default=v},function(I,_,p){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,i){u.__proto__=i}||function(u,i){for(var e in i)i.hasOwnProperty(e)&&(u[e]=i[e])};return function(u,i){v(u,i);function e(){this.constructor=u}u.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(12);function T(v,u){var i=v.getAttribute("class")||"";return i.split(/\s+/).filter(function(e){return e.indexOf(u+"-")===0})}var y=function(v){N(u,v);function u(){return v!==null&&v.apply(this,arguments)||this}return u.keys=function(i){return(i.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},u.prototype.add=function(i,e){return this.canAdd(i,e)?(this.remove(i),i.classList.add(this.keyName+"-"+e),!0):!1},u.prototype.remove=function(i){var e=T(i,this.keyName);e.forEach(function(t){i.classList.remove(t)}),i.classList.length===0&&i.removeAttribute("class")},u.prototype.value=function(i){var e=T(i,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(i,t)?t:""},u}(S.default);_.default=y},function(I,_,p){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,i){u.__proto__=i}||function(u,i){for(var e in i)i.hasOwnProperty(e)&&(u[e]=i[e])};return function(u,i){v(u,i);function e(){this.constructor=u}u.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(12);function T(v){var u=v.split("-"),i=u.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return u[0]+i}var y=function(v){N(u,v);function u(){return v!==null&&v.apply(this,arguments)||this}return u.keys=function(i){return(i.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},u.prototype.add=function(i,e){return this.canAdd(i,e)?(i.style[T(this.keyName)]=e,!0):!1},u.prototype.remove=function(i){i.style[T(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")},u.prototype.value=function(i){var e=i.style[T(this.keyName)];return this.canAdd(i,e)?e:""},u}(S.default);_.default=y},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function y(v,u){for(var i=0;i<u.length;i++){var e=u[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,u,i){return u&&y(v.prototype,u),i&&y(v,i),v}}();function S(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}var T=function(){function y(v,u){S(this,y),this.quill=v,this.options=u,this.modules={}}return N(y,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(i){u.modules[i]==null&&u.addModule(i)})}},{key:"addModule",value:function(u){var i=this.quill.constructor.import("modules/"+u);return this.modules[u]=new i(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),y}();T.DEFAULTS={modules:{}},T.themes={default:T},_.default=T},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function o(a,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}return function(a,r,n){return r&&o(a.prototype,r),n&&o(a,n),a}}(),S=function o(a,r,n){a===null&&(a=Function.prototype);var l=Object.getOwnPropertyDescriptor(a,r);if(l===void 0){var E=Object.getPrototypeOf(a);return E===null?void 0:o(E,r,n)}else{if("value"in l)return l.value;var O=l.get;return O===void 0?void 0:O.call(n)}},T=p(0),y=i(T),v=p(7),u=i(v);function i(o){return o&&o.__esModule?o:{default:o}}function e(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function t(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 c(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 s="\uFEFF",f=function(o){c(a,o);function a(r){e(this,a);var n=t(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(l){n.contentNode.appendChild(l)}),n.leftGuard=document.createTextNode(s),n.rightGuard=document.createTextNode(s),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return N(a,[{key:"index",value:function(n,l){return n===this.leftGuard?0:n===this.rightGuard?1:S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"index",this).call(this,n,l)}},{key:"restore",value:function(n){var l=void 0,E=void 0,O=n.data.split(s).join("");if(n===this.leftGuard)if(this.prev instanceof u.default){var b=this.prev.length();this.prev.insertAt(b,O),l={startNode:this.prev.domNode,startOffset:b+O.length}}else E=document.createTextNode(O),this.parent.insertBefore(y.default.create(E),this),l={startNode:E,startOffset:O.length};else n===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,O),l={startNode:this.next.domNode,startOffset:O.length}):(E=document.createTextNode(O),this.parent.insertBefore(y.default.create(E),this.next),l={startNode:E,startOffset:O.length}));return n.data=s,l}},{key:"update",value:function(n,l){var E=this;n.forEach(function(O){if(O.type==="characterData"&&(O.target===E.leftGuard||O.target===E.rightGuard)){var b=E.restore(O.target);b&&(l.range=b)}})}}]),a}(y.default.Embed);_.default=f},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.AlignStyle=_.AlignClass=_.AlignAttribute=void 0;var N=p(0),S=T(N);function T(e){return e&&e.__esModule?e:{default:e}}var y={scope:S.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new S.default.Attributor.Attribute("align","align",y),u=new S.default.Attributor.Class("align","ql-align",y),i=new S.default.Attributor.Style("align","text-align",y);_.AlignAttribute=v,_.AlignClass=u,_.AlignStyle=i},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.BackgroundStyle=_.BackgroundClass=void 0;var N=p(0),S=y(N),T=p(26);function y(i){return i&&i.__esModule?i:{default:i}}var v=new S.default.Attributor.Class("background","ql-bg",{scope:S.default.Scope.INLINE}),u=new T.ColorAttributor("background","background-color",{scope:S.default.Scope.INLINE});_.BackgroundClass=v,_.BackgroundStyle=u},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.DirectionStyle=_.DirectionClass=_.DirectionAttribute=void 0;var N=p(0),S=T(N);function T(e){return e&&e.__esModule?e:{default:e}}var y={scope:S.default.Scope.BLOCK,whitelist:["rtl"]},v=new S.default.Attributor.Attribute("direction","dir",y),u=new S.default.Attributor.Class("direction","ql-direction",y),i=new S.default.Attributor.Style("direction","direction",y);_.DirectionAttribute=v,_.DirectionClass=u,_.DirectionStyle=i},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.FontClass=_.FontStyle=void 0;var N=function(){function o(a,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}return function(a,r,n){return r&&o(a.prototype,r),n&&o(a,n),a}}(),S=function o(a,r,n){a===null&&(a=Function.prototype);var l=Object.getOwnPropertyDescriptor(a,r);if(l===void 0){var E=Object.getPrototypeOf(a);return E===null?void 0:o(E,r,n)}else{if("value"in l)return l.value;var O=l.get;return O===void 0?void 0:O.call(n)}},T=p(0),y=v(T);function v(o){return o&&o.__esModule?o:{default:o}}function u(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function i(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 e(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 t={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new y.default.Attributor.Class("font","ql-font",t),s=function(o){e(a,o);function a(){return u(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return N(a,[{key:"value",value:function(n){return S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),a}(y.default.Attributor.Style),f=new s("font","font-family",t);_.FontStyle=f,_.FontClass=c},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.SizeStyle=_.SizeClass=void 0;var N=p(0),S=T(N);function T(u){return u&&u.__esModule?u:{default:u}}var y=new S.default.Attributor.Class("size","ql-size",{scope:S.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new S.default.Attributor.Style("size","font-size",{scope:S.default.Scope.INLINE,whitelist:["10px","18px","32px"]});_.SizeClass=y,_.SizeStyle=v},function(I,_,p){I.exports={align:{"":p(76),center:p(77),right:p(78),justify:p(79)},background:p(80),blockquote:p(81),bold:p(82),clean:p(83),code:p(58),"code-block":p(58),color:p(84),direction:{"":p(85),rtl:p(86)},float:{center:p(87),full:p(88),left:p(89),right:p(90)},formula:p(91),header:{1:p(92),2:p(93)},italic:p(94),image:p(95),indent:{"+1":p(96),"-1":p(97)},link:p(98),list:{ordered:p(99),bullet:p(100),check:p(101)},script:{sub:p(102),super:p(103)},strike:p(104),underline:p(105),video:p(106)}},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.getLastChangeIndex=_.default=void 0;var N=function(){function r(n,l){for(var E=0;E<l.length;E++){var O=l[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(n,O.key,O)}}return function(n,l,E){return l&&r(n.prototype,l),E&&r(n,E),n}}(),S=p(0),T=e(S),y=p(5),v=e(y),u=p(9),i=e(u);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function c(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function s(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var f=function(r){s(n,r);function n(l,E){t(this,n);var O=c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,l,E));return O.lastRecorded=0,O.ignoreChange=!1,O.clear(),O.quill.on(v.default.events.EDITOR_CHANGE,function(b,k,m,d){b!==v.default.events.TEXT_CHANGE||O.ignoreChange||(!O.options.userOnly||d===v.default.sources.USER?O.record(k,m):O.transform(k))}),O.quill.keyboard.addBinding({key:"Z",shortKey:!0},O.undo.bind(O)),O.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},O.redo.bind(O)),/Win/i.test(navigator.platform)&&O.quill.keyboard.addBinding({key:"Y",shortKey:!0},O.redo.bind(O)),O}return N(n,[{key:"change",value:function(E,O){if(this.stack[E].length!==0){var b=this.stack[E].pop();this.stack[O].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[E],v.default.sources.USER),this.ignoreChange=!1;var k=a(b[E]);this.quill.setSelection(k)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(E,O){if(E.ops.length!==0){this.stack.redo=[];var b=this.quill.getContents().diff(O),k=Date.now();if(this.lastRecorded+this.options.delay>k&&this.stack.undo.length>0){var m=this.stack.undo.pop();b=b.compose(m.undo),E=m.redo.compose(E)}else this.lastRecorded=k;this.stack.undo.push({redo:E,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(E){this.stack.undo.forEach(function(O){O.undo=E.transform(O.undo,!0),O.redo=E.transform(O.redo,!0)}),this.stack.redo.forEach(function(O){O.undo=E.transform(O.undo,!0),O.redo=E.transform(O.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(i.default);f.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function o(r){var n=r.ops[r.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(` `):n.attributes!=null?Object.keys(n.attributes).some(function(l){return T.default.query(l,T.default.Scope.BLOCK)!=null}):!1}function a(r){var n=r.reduce(function(E,O){return E+=O.delete||0,E},0),l=r.length()-n;return o(r)&&(l-=1),l}_.default=f,_.getLastChangeIndex=a},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BaseTooltip=void 0;var N=function(){function q(j,B){for(var D=0;D<B.length;D++){var P=B[D];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(j,P.key,P)}}return function(j,B,D){return B&&q(j.prototype,B),D&&q(j,D),j}}(),S=function q(j,B,D){j===null&&(j=Function.prototype);var P=Object.getOwnPropertyDescriptor(j,B);if(P===void 0){var C=Object.getPrototypeOf(j);return C===null?void 0:q(C,B,D)}else{if("value"in P)return P.value;var $=P.get;return $===void 0?void 0:$.call(D)}},T=p(3),y=k(T),v=p(2),u=k(v),i=p(8),e=k(i),t=p(23),c=k(t),s=p(34),f=k(s),o=p(59),a=k(o),r=p(60),n=k(r),l=p(28),E=k(l),O=p(61),b=k(O);function k(q){return q&&q.__esModule?q:{default:q}}function m(q,j){if(!(q instanceof j))throw new TypeError("Cannot call a class as a function")}function d(q,j){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:q}function g(q,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);q.prototype=Object.create(j&&j.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(q,j):q.__proto__=j)}var A=[!1,"center","right","justify"],L=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],M=[!1,"serif","monospace"],H=["1","2","3",!1],K=["small",!1,"large","huge"],W=function(q){g(j,q);function j(B,D){m(this,j);var P=d(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,B,D)),C=function $(G){if(!document.body.contains(B.root))return document.body.removeEventListener("click",$);P.tooltip!=null&&!P.tooltip.root.contains(G.target)&&document.activeElement!==P.tooltip.textbox&&!P.quill.hasFocus()&&P.tooltip.hide(),P.pickers!=null&&P.pickers.forEach(function(X){X.container.contains(G.target)||X.close()})};return B.emitter.listenDOM("click",document.body,C),P}return N(j,[{key:"addModule",value:function(D){var P=S(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,D);return D==="toolbar"&&this.extendToolbar(P),P}},{key:"buildButtons",value:function(D,P){D.forEach(function(C){var $=C.getAttribute("class")||"";$.split(/\s+/).forEach(function(G){if(G.startsWith("ql-")&&(G=G.slice(3),P[G]!=null))if(G==="direction")C.innerHTML=P[G][""]+P[G].rtl;else if(typeof P[G]=="string")C.innerHTML=P[G];else{var X=C.value||"";X!=null&&P[G][X]&&(C.innerHTML=P[G][X])}})})}},{key:"buildPickers",value:function(D,P){var C=this;this.pickers=D.map(function(G){if(G.classList.contains("ql-align"))return G.querySelector("option")==null&&w(G,A),new n.default(G,P.align);if(G.classList.contains("ql-background")||G.classList.contains("ql-color")){var X=G.classList.contains("ql-background")?"background":"color";return G.querySelector("option")==null&&w(G,L,X==="background"?"#ffffff":"#000000"),new a.default(G,P[X])}else return G.querySelector("option")==null&&(G.classList.contains("ql-font")?w(G,M):G.classList.contains("ql-header")?w(G,H):G.classList.contains("ql-size")&&w(G,K)),new E.default(G)});var $=function(){C.pickers.forEach(function(X){X.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,$)}}]),j}(f.default);W.DEFAULTS=(0,y.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,B=this.container.querySelector("input.ql-image[type=file]");B==null&&(B=document.createElement("input"),B.setAttribute("type","file"),B.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),B.classList.add("ql-image"),B.addEventListener("change",function(){if(B.files!=null&&B.files[0]!=null){var D=new FileReader;D.onload=function(P){var C=j.quill.getSelection(!0);j.quill.updateContents(new u.default().retain(C.index).delete(C.length).insert({image:P.target.result}),e.default.sources.USER),j.quill.setSelection(C.index+1,e.default.sources.SILENT),B.value=""},D.readAsDataURL(B.files[0])}}),this.container.appendChild(B)),B.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var U=function(q){g(j,q);function j(B,D){m(this,j);var P=d(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,B,D));return P.textbox=P.root.querySelector('input[type="text"]'),P.listen(),P}return N(j,[{key:"listen",value:function(){var D=this;this.textbox.addEventListener("keydown",function(P){c.default.match(P,"enter")?(D.save(),P.preventDefault()):c.default.match(P,"escape")&&(D.cancel(),P.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),P!=null?this.textbox.value=P:D!==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-"+D)||""),this.root.setAttribute("data-mode",D)}},{key:"restoreFocus",value:function(){var D=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=D}},{key:"save",value:function(){var D=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var P=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",D,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",D,e.default.sources.USER)),this.quill.root.scrollTop=P;break}case"video":D=R(D);case"formula":{if(!D)break;var C=this.quill.getSelection(!0);if(C!=null){var $=C.index+C.length;this.quill.insertEmbed($,this.root.getAttribute("data-mode"),D,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText($+1," ",e.default.sources.USER),this.quill.setSelection($+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j}(b.default);function R(q){var j=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":q}function w(q,j){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(D){var P=document.createElement("option");D===B?P.setAttribute("selected","selected"):P.setAttribute("value",D),q.appendChild(P)})}_.BaseTooltip=U,_.default=W},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function S(){this.head=this.tail=null,this.length=0}return S.prototype.append=function(){for(var T=[],y=0;y<arguments.length;y++)T[y]=arguments[y];this.insertBefore(T[0],null),T.length>1&&this.append.apply(this,T.slice(1))},S.prototype.contains=function(T){for(var y,v=this.iterator();y=v();)if(y===T)return!0;return!1},S.prototype.insertBefore=function(T,y){T&&(T.next=y,y!=null?(T.prev=y.prev,y.prev!=null&&(y.prev.next=T),y.prev=T,y===this.head&&(this.head=T)):this.tail!=null?(this.tail.next=T,T.prev=this.tail,this.tail=T):(T.prev=null,this.head=this.tail=T),this.length+=1)},S.prototype.offset=function(T){for(var y=0,v=this.head;v!=null;){if(v===T)return y;y+=v.length(),v=v.next}return-1},S.prototype.remove=function(T){this.contains(T)&&(T.prev!=null&&(T.prev.next=T.next),T.next!=null&&(T.next.prev=T.prev),T===this.head&&(this.head=T.next),T===this.tail&&(this.tail=T.prev),this.length-=1)},S.prototype.iterator=function(T){return T===void 0&&(T=this.head),function(){var y=T;return T!=null&&(T=T.next),y}},S.prototype.find=function(T,y){y===void 0&&(y=!1);for(var v,u=this.iterator();v=u();){var i=v.length();if(T<i||y&&T===i&&(v.next==null||v.next.length()!==0))return[v,T];T-=i}return[null,0]},S.prototype.forEach=function(T){for(var y,v=this.iterator();y=v();)T(y)},S.prototype.forEachAt=function(T,y,v){if(!(y<=0))for(var u=this.find(T),i=u[0],e=u[1],t,c=T-e,s=this.iterator(i);(t=s())&&c<T+y;){var f=t.length();T>c?v(t,T-c,Math.min(y,c+f-T)):v(t,0,Math.min(f,T+y-c)),c+=f}},S.prototype.map=function(T){return this.reduce(function(y,v){return y.push(T(v)),y},[])},S.prototype.reduce=function(T,y){for(var v,u=this.iterator();v=u();)y=T(y,v);return y},S}();_.default=N},function(I,_,p){var N=this&&this.__extends||function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var c in t)t.hasOwnProperty(c)&&(e[c]=t[c])};return function(e,t){i(e,t);function c(){this.constructor=e}e.prototype=t===null?Object.create(t):(c.prototype=t.prototype,new c)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(17),T=p(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,u=function(i){N(e,i);function e(t){var c=i.call(this,t)||this;return c.scroll=c,c.observer=new MutationObserver(function(s){c.update(s)}),c.observer.observe(c.domNode,y),c.attach(),c}return e.prototype.detach=function(){i.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,c){this.update(),t===0&&c===this.length()?this.children.forEach(function(s){s.remove()}):i.prototype.deleteAt.call(this,t,c)},e.prototype.formatAt=function(t,c,s,f){this.update(),i.prototype.formatAt.call(this,t,c,s,f)},e.prototype.insertAt=function(t,c,s){this.update(),i.prototype.insertAt.call(this,t,c,s)},e.prototype.optimize=function(t,c){var s=this;t===void 0&&(t=[]),c===void 0&&(c={}),i.prototype.optimize.call(this,c);for(var f=[].slice.call(this.observer.takeRecords());f.length>0;)t.push(f.pop());for(var o=function(l,E){E===void 0&&(E=!0),!(l==null||l===s)&&l.domNode.parentNode!=null&&(l.domNode[T.DATA_KEY].mutations==null&&(l.domNode[T.DATA_KEY].mutations=[]),E&&o(l.parent))},a=function(l){l.domNode[T.DATA_KEY]==null||l.domNode[T.DATA_KEY].mutations==null||(l instanceof S.default&&l.children.forEach(a),l.optimize(c))},r=t,n=0;r.length>0;n+=1){if(n>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(r.forEach(function(l){var E=T.find(l.target,!0);E!=null&&(E.domNode===l.target&&(l.type==="childList"?(o(T.find(l.previousSibling,!1)),[].forEach.call(l.addedNodes,function(O){var b=T.find(O,!1);o(b,!1),b instanceof S.default&&b.children.forEach(function(k){o(k,!1)})})):l.type==="attributes"&&o(E.prev)),o(E))}),this.children.forEach(a),r=[].slice.call(this.observer.takeRecords()),f=r.slice();f.length>0;)t.push(f.pop())}},e.prototype.update=function(t,c){var s=this;c===void 0&&(c={}),t=t||this.observer.takeRecords(),t.map(function(f){var o=T.find(f.target,!0);return o==null?null:o.domNode[T.DATA_KEY].mutations==null?(o.domNode[T.DATA_KEY].mutations=[f],o):(o.domNode[T.DATA_KEY].mutations.push(f),null)}).forEach(function(f){f==null||f===s||f.domNode[T.DATA_KEY]==null||f.update(f.domNode[T.DATA_KEY].mutations||[],c)}),this.domNode[T.DATA_KEY].mutations!=null&&i.prototype.update.call(this,this.domNode[T.DATA_KEY].mutations,c),this.optimize(t,c)},e.blotName="scroll",e.defaultChild="block",e.scope=T.Scope.BLOCK_BLOT,e.tagName="DIV",e}(S.default);_.default=u},function(I,_,p){var N=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,e){i.__proto__=e}||function(i,e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t])};return function(i,e){u(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(18),T=p(1);function y(u,i){if(Object.keys(u).length!==Object.keys(i).length)return!1;for(var e in u)if(u[e]!==i[e])return!1;return!0}var v=function(u){N(i,u);function i(){return u!==null&&u.apply(this,arguments)||this}return i.formats=function(e){if(e.tagName!==i.tagName)return u.formats.call(this,e)},i.prototype.format=function(e,t){var c=this;e===this.statics.blotName&&!t?(this.children.forEach(function(s){s instanceof S.default||(s=s.wrap(i.blotName,!0)),c.attributes.copy(s)}),this.unwrap()):u.prototype.format.call(this,e,t)},i.prototype.formatAt=function(e,t,c,s){if(this.formats()[c]!=null||T.query(c,T.Scope.ATTRIBUTE)){var f=this.isolate(e,t);f.format(c,s)}else u.prototype.formatAt.call(this,e,t,c,s)},i.prototype.optimize=function(e){u.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var c=this.next;c instanceof i&&c.prev===this&&y(t,c.formats())&&(c.moveChildren(this),c.remove())},i.blotName="inline",i.scope=T.Scope.INLINE_BLOT,i.tagName="SPAN",i}(S.default);_.default=v},function(I,_,p){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,i){u.__proto__=i}||function(u,i){for(var e in i)i.hasOwnProperty(e)&&(u[e]=i[e])};return function(u,i){v(u,i);function e(){this.constructor=u}u.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(18),T=p(1),y=function(v){N(u,v);function u(){return v!==null&&v.apply(this,arguments)||this}return u.formats=function(i){var e=T.query(u.blotName).tagName;if(i.tagName!==e)return v.formats.call(this,i)},u.prototype.format=function(i,e){T.query(i,T.Scope.BLOCK)!=null&&(i===this.statics.blotName&&!e?this.replaceWith(u.blotName):v.prototype.format.call(this,i,e))},u.prototype.formatAt=function(i,e,t,c){T.query(t,T.Scope.BLOCK)!=null?this.format(t,c):v.prototype.formatAt.call(this,i,e,t,c)},u.prototype.insertAt=function(i,e,t){if(t==null||T.query(e,T.Scope.INLINE)!=null)v.prototype.insertAt.call(this,i,e,t);else{var c=this.split(i),s=T.create(e,t);c.parent.insertBefore(s,c)}},u.prototype.update=function(i,e){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,i,e)},u.blotName="block",u.scope=T.Scope.BLOCK_BLOT,u.tagName="P",u}(S.default);_.default=y},function(I,_,p){var N=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,u){v.__proto__=u}||function(v,u){for(var i in u)u.hasOwnProperty(i)&&(v[i]=u[i])};return function(v,u){y(v,u);function i(){this.constructor=v}v.prototype=u===null?Object.create(u):(i.prototype=u.prototype,new i)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(19),T=function(y){N(v,y);function v(){return y!==null&&y.apply(this,arguments)||this}return v.formats=function(u){},v.prototype.format=function(u,i){y.prototype.formatAt.call(this,0,this.length(),u,i)},v.prototype.formatAt=function(u,i,e,t){u===0&&i===this.length()?this.format(e,t):y.prototype.formatAt.call(this,u,i,e,t)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v}(S.default);_.default=T},function(I,_,p){var N=this&&this.__extends||function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,i){u.__proto__=i}||function(u,i){for(var e in i)i.hasOwnProperty(e)&&(u[e]=i[e])};return function(u,i){v(u,i);function e(){this.constructor=u}u.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();Object.defineProperty(_,"__esModule",{value:!0});var S=p(19),T=p(1),y=function(v){N(u,v);function u(i){var e=v.call(this,i)||this;return e.text=e.statics.value(e.domNode),e}return u.create=function(i){return document.createTextNode(i)},u.value=function(i){var e=i.data;return e.normalize&&(e=e.normalize()),e},u.prototype.deleteAt=function(i,e){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+e)},u.prototype.index=function(i,e){return this.domNode===i?e:-1},u.prototype.insertAt=function(i,e,t){t==null?(this.text=this.text.slice(0,i)+e+this.text.slice(i),this.domNode.data=this.text):v.prototype.insertAt.call(this,i,e,t)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(i){v.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(i,e){return[this.domNode,i]},u.prototype.split=function(i,e){if(e===void 0&&(e=!1),!e){if(i===0)return this;if(i===this.length())return this.next}var t=T.create(this.domNode.splitText(i));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},u.prototype.update=function(i,e){var t=this;i.some(function(c){return c.type==="characterData"&&c.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=T.Scope.INLINE_BLOT,u}(S.default);_.default=y},function(I,_,p){var N=document.createElement("div");if(N.classList.toggle("test-class",!1),N.classList.contains("test-class")){var S=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(T,y){return arguments.length>1&&!this.contains(T)==!y?y:S.call(this,T)}}String.prototype.startsWith||(String.prototype.startsWith=function(T,y){return y=y||0,this.substr(y,T.length)===T}),String.prototype.endsWith||(String.prototype.endsWith=function(T,y){var v=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>v.length)&&(y=v.length),y-=T.length;var u=v.indexOf(T,y);return u!==-1&&u===y}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(y){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof y!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),u=v.length>>>0,i=arguments[1],e,t=0;t<u;t++)if(e=v[t],y.call(i,e,t,v))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(I,_){var p=-1,N=1,S=0;function T(n,l,E){if(n==l)return n?[[S,n]]:[];(E<0||n.length<E)&&(E=null);var O=i(n,l),b=n.substring(0,O);n=n.substring(O),l=l.substring(O),O=e(n,l);var k=n.substring(n.length-O);n=n.substring(0,n.length-O),l=l.substring(0,l.length-O);var m=y(n,l);return b&&m.unshift([S,b]),k&&m.push([S,k]),c(m),E!=null&&(m=o(m,E)),m=a(m),m}function y(n,l){var E;if(!n)return[[N,l]];if(!l)return[[p,n]];var O=n.length>l.length?n:l,b=n.length>l.length?l:n,k=O.indexOf(b);if(k!=-1)return E=[[N,O.substring(0,k)],[S,b],[N,O.substring(k+b.length)]],n.length>l.length&&(E[0][0]=E[2][0]=p),E;if(b.length==1)return[[p,n],[N,l]];var m=t(n,l);if(m){var d=m[0],g=m[1],A=m[2],L=m[3],M=m[4],H=T(d,A),K=T(g,L);return H.concat([[S,M]],K)}return v(n,l)}function v(n,l){for(var E=n.length,O=l.length,b=Math.ceil((E+O)/2),k=b,m=2*b,d=new Array(m),g=new Array(m),A=0;A<m;A++)d[A]=-1,g[A]=-1;d[k+1]=0,g[k+1]=0;for(var L=E-O,M=L%2!=0,H=0,K=0,W=0,U=0,R=0;R<b;R++){for(var w=-R+H;w<=R-K;w+=2){var q=k+w,j;w==-R||w!=R&&d[q-1]<d[q+1]?j=d[q+1]:j=d[q-1]+1;for(var B=j-w;j<E&&B<O&&n.charAt(j)==l.charAt(B);)j++,B++;if(d[q]=j,j>E)K+=2;else if(B>O)H+=2;else if(M){var D=k+L-w;if(D>=0&&D<m&&g[D]!=-1){var P=E-g[D];if(j>=P)return u(n,l,j,B)}}}for(var C=-R+W;C<=R-U;C+=2){var D=k+C,P;C==-R||C!=R&&g[D-1]<g[D+1]?P=g[D+1]:P=g[D-1]+1;for(var $=P-C;P<E&&$<O&&n.charAt(E-P-1)==l.charAt(O-$-1);)P++,$++;if(g[D]=P,P>E)U+=2;else if($>O)W+=2;else if(!M){var q=k+L-C;if(q>=0&&q<m&&d[q]!=-1){var j=d[q],B=k+j-q;if(P=E-P,j>=P)return u(n,l,j,B)}}}}return[[p,n],[N,l]]}function u(n,l,E,O){var b=n.substring(0,E),k=l.substring(0,O),m=n.substring(E),d=l.substring(O),g=T(b,k),A=T(m,d);return g.concat(A)}function i(n,l){if(!n||!l||n.charAt(0)!=l.charAt(0))return 0;for(var E=0,O=Math.min(n.length,l.length),b=O,k=0;E<b;)n.substring(k,b)==l.substring(k,b)?(E=b,k=E):O=b,b=Math.floor((O-E)/2+E);return b}function e(n,l){if(!n||!l||n.charAt(n.length-1)!=l.charAt(l.length-1))return 0;for(var E=0,O=Math.min(n.length,l.length),b=O,k=0;E<b;)n.substring(n.length-b,n.length-k)==l.substring(l.length-b,l.length-k)?(E=b,k=E):O=b,b=Math.floor((O-E)/2+E);return b}function t(n,l){var E=n.length>l.length?n:l,O=n.length>l.length?l:n;if(E.length<4||O.length*2<E.length)return null;function b(K,W,U){for(var R=K.substring(U,U+Math.floor(K.length/4)),w=-1,q="",j,B,D,P;(w=W.indexOf(R,w+1))!=-1;){var C=i(K.substring(U),W.substring(w)),$=e(K.substring(0,U),W.substring(0,w));q.length<$+C&&(q=W.substring(w-$,w)+W.substring(w,w+C),j=K.substring(0,U-$),B=K.substring(U+C),D=W.substring(0,w-$),P=W.substring(w+C))}return q.length*2>=K.length?[j,B,D,P,q]:null}var k=b(E,O,Math.ceil(E.length/4)),m=b(E,O,Math.ceil(E.length/2)),d;if(!k&&!m)return null;m?k?d=k[4].length>m[4].length?k:m:d=m:d=k;var g,A,L,M;n.length>l.length?(g=d[0],A=d[1],L=d[2],M=d[3]):(L=d[0],M=d[1],g=d[2],A=d[3]);var H=d[4];return[g,A,L,M,H]}function c(n){n.push([S,""]);for(var l=0,E=0,O=0,b="",k="",m;l<n.length;)switch(n[l][0]){case N:O++,k+=n[l][1],l++;break;case p:E++,b+=n[l][1],l++;break;case S:E+O>1?(E!==0&&O!==0&&(m=i(k,b),m!==0&&(l-E-O>0&&n[l-E-O-1][0]==S?n[l-E-O-1][1]+=k.substring(0,m):(n.splice(0,0,[S,k.substring(0,m)]),l++),k=k.substring(m),b=b.substring(m)),m=e(k,b),m!==0&&(n[l][1]=k.substring(k.length-m)+n[l][1],k=k.substring(0,k.length-m),b=b.substring(0,b.length-m))),E===0?n.splice(l-O,E+O,[N,k]):O===0?n.splice(l-E,E+O,[p,b]):n.splice(l-E-O,E+O,[p,b],[N,k]),l=l-E-O+(E?1:0)+(O?1:0)+1):l!==0&&n[l-1][0]==S?(n[l-1][1]+=n[l][1],n.splice(l,1)):l++,O=0,E=0,b="",k="";break}n[n.length-1][1]===""&&n.pop();var d=!1;for(l=1;l<n.length-1;)n[l-1][0]==S&&n[l+1][0]==S&&(n[l][1].substring(n[l][1].length-n[l-1][1].length)==n[l-1][1]?(n[l][1]=n[l-1][1]+n[l][1].substring(0,n[l][1].length-n[l-1][1].length),n[l+1][1]=n[l-1][1]+n[l+1][1],n.splice(l-1,1),d=!0):n[l][1].substring(0,n[l+1][1].length)==n[l+1][1]&&(n[l-1][1]+=n[l+1][1],n[l][1]=n[l][1].substring(n[l+1][1].length)+n[l+1][1],n.splice(l+1,1),d=!0)),l++;d&&c(n)}var s=T;s.INSERT=N,s.DELETE=p,s.EQUAL=S,I.exports=s;function f(n,l){if(l===0)return[S,n];for(var E=0,O=0;O<n.length;O++){var b=n[O];if(b[0]===p||b[0]===S){var k=E+b[1].length;if(l===k)return[O+1,n];if(l<k){n=n.slice();var m=l-E,d=[b[0],b[1].slice(0,m)],g=[b[0],b[1].slice(m)];return n.splice(O,1,d,g),[O+1,n]}else E=k}}throw new Error("cursor_pos is out of bounds!")}function o(n,l){var E=f(n,l),O=E[1],b=E[0],k=O[b],m=O[b+1];if(k==null)return n;if(k[0]!==S)return n;if(m!=null&&k[1]+m[1]===m[1]+k[1])return O.splice(b,2,m,k),r(O,b,2);if(m!=null&&m[1].indexOf(k[1])===0){O.splice(b,2,[m[0],k[1]],[0,k[1]]);var d=m[1].slice(k[1].length);return d.length>0&&O.splice(b+2,0,[m[0],d]),r(O,b,3)}else return n}function a(n){for(var l=!1,E=function(m){return m.charCodeAt(0)>=56320&&m.charCodeAt(0)<=57343},O=function(m){return m.charCodeAt(m.length-1)>=55296&&m.charCodeAt(m.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===S&&O(n[b-2][1])&&n[b-1][0]===p&&E(n[b-1][1])&&n[b][0]===N&&E(n[b][1])&&(l=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!l)return n;for(var k=[],b=0;b<n.length;b+=1)n[b][1].length>0&&k.push(n[b]);return k}function r(n,l,E){for(var O=l+E-1;O>=0&&O>=l-1;O--)if(O+1<n.length){var b=n[O],k=n[O+1];b[0]===k[1]&&n.splice(O,2,[b[0],b[1]+k[1]])}return n}},function(I,_){_=I.exports=typeof Object.keys=="function"?Object.keys:p,_.shim=p;function p(N){var S=[];for(var T in N)S.push(T);return S}},function(I,_){var p=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";_=I.exports=p?N:S,_.supported=N;function N(T){return Object.prototype.toString.call(T)=="[object Arguments]"}_.unsupported=S;function S(T){return T&&typeof T=="object"&&typeof T.length=="number"&&Object.prototype.hasOwnProperty.call(T,"callee")&&!Object.prototype.propertyIsEnumerable.call(T,"callee")||!1}},function(I,_){var p=Object.prototype.hasOwnProperty,N="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(N=!1));function T(v,u,i){this.fn=v,this.context=u,this.once=i||!1}function y(){this._events=new S,this._eventsCount=0}y.prototype.eventNames=function(){var u=[],i,e;if(this._eventsCount===0)return u;for(e in i=this._events)p.call(i,e)&&u.push(N?e.slice(1):e);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(i)):u},y.prototype.listeners=function(u,i){var e=N?N+u:u,t=this._events[e];if(i)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var c=0,s=t.length,f=new Array(s);c<s;c++)f[c]=t[c].fn;return f},y.prototype.emit=function(u,i,e,t,c,s){var f=N?N+u:u;if(!this._events[f])return!1;var o=this._events[f],a=arguments.length,r,n;if(o.fn){switch(o.once&&this.removeListener(u,o.fn,void 0,!0),a){case 1:return o.fn.call(o.context),!0;case 2:return o.fn.call(o.context,i),!0;case 3:return o.fn.call(o.context,i,e),!0;case 4:return o.fn.call(o.context,i,e,t),!0;case 5:return o.fn.call(o.context,i,e,t,c),!0;case 6:return o.fn.call(o.context,i,e,t,c,s),!0}for(n=1,r=new Array(a-1);n<a;n++)r[n-1]=arguments[n];o.fn.apply(o.context,r)}else{var l=o.length,E;for(n=0;n<l;n++)switch(o[n].once&&this.removeListener(u,o[n].fn,void 0,!0),a){case 1:o[n].fn.call(o[n].context);break;case 2:o[n].fn.call(o[n].context,i);break;case 3:o[n].fn.call(o[n].context,i,e);break;case 4:o[n].fn.call(o[n].context,i,e,t);break;default:if(!r)for(E=1,r=new Array(a-1);E<a;E++)r[E-1]=arguments[E];o[n].fn.apply(o[n].context,r)}}return!0},y.prototype.on=function(u,i,e){var t=new T(i,e||this),c=N?N+u:u;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],t]:this._events[c].push(t):(this._events[c]=t,this._eventsCount++),this},y.prototype.once=function(u,i,e){var t=new T(i,e||this,!0),c=N?N+u:u;return this._events[c]?this._events[c].fn?this._events[c]=[this._events[c],t]:this._events[c].push(t):(this._events[c]=t,this._eventsCount++),this},y.prototype.removeListener=function(u,i,e,t){var c=N?N+u:u;if(!this._events[c])return this;if(!i)return--this._eventsCount===0?this._events=new S:delete this._events[c],this;var s=this._events[c];if(s.fn)s.fn===i&&(!t||s.once)&&(!e||s.context===e)&&(--this._eventsCount===0?this._events=new S:delete this._events[c]);else{for(var f=0,o=[],a=s.length;f<a;f++)(s[f].fn!==i||t&&!s[f].once||e&&s[f].context!==e)&&o.push(s[f]);o.length?this._events[c]=o.length===1?o[0]:o:--this._eventsCount===0?this._events=new S:delete this._events[c]}return this},y.prototype.removeAllListeners=function(u){var i;return u?(i=N?N+u:u,this._events[i]&&(--this._eventsCount===0?this._events=new S:delete this._events[i])):(this._events=new S,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=N,y.EventEmitter=y,typeof I<"u"&&(I.exports=y)},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.matchText=_.matchSpacing=_.matchNewline=_.matchBlot=_.matchAttributor=_.default=void 0;var N=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},S=function(){function V(Y,ee){var ne=[],Q=!0,ue=!1,oe=void 0;try{for(var le=Y[Symbol.iterator](),Te;!(Q=(Te=le.next()).done)&&(ne.push(Te.value),!(ee&&ne.length===ee));Q=!0);}catch(Ee){ue=!0,oe=Ee}finally{try{!Q&&le.return&&le.return()}finally{if(ue)throw oe}}return ne}return function(Y,ee){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return V(Y,ee);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function V(Y,ee){for(var ne=0;ne<ee.length;ne++){var Q=ee[ne];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(Y,Q.key,Q)}}return function(Y,ee,ne){return ee&&V(Y.prototype,ee),ne&&V(Y,ne),Y}}(),y=p(3),v=g(y),u=p(2),i=g(u),e=p(0),t=g(e),c=p(5),s=g(c),f=p(10),o=g(f),a=p(9),r=g(a),n=p(36),l=p(37),E=p(13),O=g(E),b=p(26),k=p(38),m=p(39),d=p(40);function g(V){return V&&V.__esModule?V:{default:V}}function A(V,Y,ee){return Y in V?Object.defineProperty(V,Y,{value:ee,enumerable:!0,configurable:!0,writable:!0}):V[Y]=ee,V}function L(V,Y){if(!(V instanceof Y))throw new TypeError("Cannot call a class as a function")}function M(V,Y){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:V}function H(V,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);V.prototype=Object.create(Y&&Y.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(V,Y):V.__proto__=Y)}var K=(0,o.default)("quill:clipboard"),W="__ql-matcher",U=[[Node.TEXT_NODE,ge],[Node.TEXT_NODE,fe],["br",te],[Node.ELEMENT_NODE,fe],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,me],["li",ae],["b",$.bind($,"bold")],["i",$.bind($,"italic")],["style",ie]],R=[n.AlignAttribute,k.DirectionAttribute].reduce(function(V,Y){return V[Y.keyName]=Y,V},{}),w=[n.AlignStyle,l.BackgroundStyle,b.ColorStyle,k.DirectionStyle,m.FontStyle,d.SizeStyle].reduce(function(V,Y){return V[Y.keyName]=Y,V},{}),q=function(V){H(Y,V);function Y(ee,ne){L(this,Y);var Q=M(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,ee,ne));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=[],U.concat(Q.options.matchers).forEach(function(ue){var oe=S(ue,2),le=oe[0],Te=oe[1];!ne.matchVisual&&Te===ce||Q.addMatcher(le,Te)}),Q}return T(Y,[{key:"addMatcher",value:function(ne,Q){this.matchers.push([ne,Q])}},{key:"convert",value:function(ne){if(typeof ne=="string")return this.container.innerHTML=ne.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[O.default.blotName]){var ue=this.container.innerText;return this.container.innerHTML="",new i.default().insert(ue,A({},O.default.blotName,Q[O.default.blotName]))}var oe=this.prepareMatching(),le=S(oe,2),Te=le[0],Ee=le[1],pe=C(this.container,Te,Ee);return D(pe,` `)&&pe.ops[pe.ops.length-1].attributes==null&&(pe=pe.compose(new i.default().retain(pe.length()-1).delete(1))),K.log("convert",this.container.innerHTML,pe),this.container.innerHTML="",pe}},{key:"dangerouslyPasteHTML",value:function(ne,Q){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:s.default.sources.API;if(typeof ne=="string")this.quill.setContents(this.convert(ne),Q),this.quill.setSelection(0,s.default.sources.SILENT);else{var oe=this.convert(Q);this.quill.updateContents(new i.default().retain(ne).concat(oe),ue),this.quill.setSelection(ne+oe.length(),s.default.sources.SILENT)}}},{key:"onPaste",value:function(ne){var Q=this;if(!(ne.defaultPrevented||!this.quill.isEnabled())){var ue=this.quill.getSelection(),oe=new i.default().retain(ue.index),le=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(s.default.sources.SILENT),setTimeout(function(){oe=oe.concat(Q.convert()).delete(ue.length),Q.quill.updateContents(oe,s.default.sources.USER),Q.quill.setSelection(oe.length()-ue.length,s.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=le,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ne=this,Q=[],ue=[];return this.matchers.forEach(function(oe){var le=S(oe,2),Te=le[0],Ee=le[1];switch(Te){case Node.TEXT_NODE:ue.push(Ee);break;case Node.ELEMENT_NODE:Q.push(Ee);break;default:[].forEach.call(ne.container.querySelectorAll(Te),function(pe){pe[W]=pe[W]||[],pe[W].push(Ee)});break}}),[Q,ue]}}]),Y}(r.default);q.DEFAULTS={matchers:[],matchVisual:!0};function j(V,Y,ee){return(typeof Y>"u"?"undefined":N(Y))==="object"?Object.keys(Y).reduce(function(ne,Q){return j(ne,Q,Y[Q])},V):V.reduce(function(ne,Q){return Q.attributes&&Q.attributes[Y]?ne.push(Q):ne.insert(Q.insert,(0,v.default)({},A({},Y,ee),Q.attributes))},new i.default)}function B(V){if(V.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return V[Y]||(V[Y]=window.getComputedStyle(V))}function D(V,Y){for(var ee="",ne=V.ops.length-1;ne>=0&&ee.length<Y.length;--ne){var Q=V.ops[ne];if(typeof Q.insert!="string")break;ee=Q.insert+ee}return ee.slice(-1*Y.length)===Y}function P(V){if(V.childNodes.length===0)return!1;var Y=B(V);return["block","list-item"].indexOf(Y.display)>-1}function C(V,Y,ee){return V.nodeType===V.TEXT_NODE?ee.reduce(function(ne,Q){return Q(V,ne)},new i.default):V.nodeType===V.ELEMENT_NODE?[].reduce.call(V.childNodes||[],function(ne,Q){var ue=C(Q,Y,ee);return Q.nodeType===V.ELEMENT_NODE&&(ue=Y.reduce(function(oe,le){return le(Q,oe)},ue),ue=(Q[W]||[]).reduce(function(oe,le){return le(Q,oe)},ue)),ne.concat(ue)},new i.default):new i.default}function $(V,Y,ee){return j(ee,V,!0)}function G(V,Y){var ee=t.default.Attributor.Attribute.keys(V),ne=t.default.Attributor.Class.keys(V),Q=t.default.Attributor.Style.keys(V),ue={};return ee.concat(ne).concat(Q).forEach(function(oe){var le=t.default.query(oe,t.default.Scope.ATTRIBUTE);le!=null&&(ue[le.attrName]=le.value(V),ue[le.attrName])||(le=R[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(ue[le.attrName]=le.value(V)||void 0),le=w[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(le=w[oe],ue[le.attrName]=le.value(V)||void 0))}),Object.keys(ue).length>0&&(Y=j(Y,ue)),Y}function X(V,Y){var ee=t.default.query(V);if(ee==null)return Y;if(ee.prototype instanceof t.default.Embed){var ne={},Q=ee.value(V);Q!=null&&(ne[ee.blotName]=Q,Y=new i.default().insert(ne,ee.formats(V)))}else typeof ee.formats=="function"&&(Y=j(Y,ee.blotName,ee.formats(V)));return Y}function te(V,Y){return D(Y,` `)||Y.insert(` `),Y}function ie(){return new i.default}function ae(V,Y){var ee=t.default.query(V);if(ee==null||ee.blotName!=="list-item"||!D(Y,` `))return Y;for(var ne=-1,Q=V.parentNode;!Q.classList.contains("ql-clipboard");)(t.default.query(Q)||{}).blotName==="list"&&(ne+=1),Q=Q.parentNode;return ne<=0?Y:Y.compose(new i.default().retain(Y.length()-1).retain(1,{indent:ne}))}function fe(V,Y){return D(Y,` `)||(P(V)||Y.length()>0&&V.nextSibling&&P(V.nextSibling))&&Y.insert(` `),Y}function ce(V,Y){if(P(V)&&V.nextElementSibling!=null&&!D(Y,` `)){var ee=V.offsetHeight+parseFloat(B(V).marginTop)+parseFloat(B(V).marginBottom);V.nextElementSibling.offsetTop>V.offsetTop+ee*1.5&&Y.insert(` `)}return Y}function me(V,Y){var ee={},ne=V.style||{};return ne.fontStyle&&B(V).fontStyle==="italic"&&(ee.italic=!0),ne.fontWeight&&(B(V).fontWeight.startsWith("bold")||parseInt(B(V).fontWeight)>=700)&&(ee.bold=!0),Object.keys(ee).length>0&&(Y=j(Y,ee)),parseFloat(ne.textIndent||0)>0&&(Y=new i.default().insert(" ").concat(Y)),Y}function ge(V,Y){var ee=V.data;if(V.parentNode.tagName==="O:P")return Y.insert(ee.trim());if(ee.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return Y;if(!B(V.parentNode).whiteSpace.startsWith("pre")){var ne=function(ue,oe){return oe=oe.replace(/[^\u00a0]/g,""),oe.length<1&&ue?" ":oe};ee=ee.replace(/\r\n/g," ").replace(/\n/g," "),ee=ee.replace(/\s\s+/g,ne.bind(ne,!0)),(V.previousSibling==null&&P(V.parentNode)||V.previousSibling!=null&&P(V.previousSibling))&&(ee=ee.replace(/^\s+/,ne.bind(ne,!1))),(V.nextSibling==null&&P(V.parentNode)||V.nextSibling!=null&&P(V.nextSibling))&&(ee=ee.replace(/\s+$/,ne.bind(ne,!1)))}return Y.insert(ee)}_.default=q,_.matchAttributor=G,_.matchBlot=X,_.matchNewline=fe,_.matchSpacing=ce,_.matchText=ge},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function c(s,f){for(var o=0;o<f.length;o++){var a=f[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,f,o){return f&&c(s.prototype,f),o&&c(s,o),s}}(),S=function c(s,f,o){s===null&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,f);if(a===void 0){var r=Object.getPrototypeOf(s);return r===null?void 0:c(r,f,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},T=p(6),y=v(T);function v(c){return c&&c.__esModule?c:{default:c}}function u(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function e(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var t=function(c){e(s,c);function s(){return u(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return N(s,[{key:"optimize",value:function(o){S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,o),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return S(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),s}(y.default);t.blotName="bold",t.tagName=["STRONG","B"],_.default=t},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.addControls=_.default=void 0;var N=function(){function d(g,A){var L=[],M=!0,H=!1,K=void 0;try{for(var W=g[Symbol.iterator](),U;!(M=(U=W.next()).done)&&(L.push(U.value),!(A&&L.length===A));M=!0);}catch(R){H=!0,K=R}finally{try{!M&&W.return&&W.return()}finally{if(H)throw K}}return L}return function(g,A){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return d(g,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function d(g,A){for(var L=0;L<A.length;L++){var M=A[L];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(g,M.key,M)}}return function(g,A,L){return A&&d(g.prototype,A),L&&d(g,L),g}}(),T=p(2),y=o(T),v=p(0),u=o(v),i=p(5),e=o(i),t=p(10),c=o(t),s=p(9),f=o(s);function o(d){return d&&d.__esModule?d:{default:d}}function a(d,g,A){return g in d?Object.defineProperty(d,g,{value:A,enumerable:!0,configurable:!0,writable:!0}):d[g]=A,d}function r(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function n(d,g){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(d,g):d.__proto__=g)}var E=(0,c.default)("quill:toolbar"),O=function(d){l(g,d);function g(A,L){r(this,g);var M=n(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,A,L));if(Array.isArray(M.options.container)){var H=document.createElement("div");k(H,M.options.container),A.container.parentNode.insertBefore(H,A.container),M.container=H}else typeof M.options.container=="string"?M.container=document.querySelector(M.options.container):M.container=M.options.container;if(!(M.container instanceof HTMLElement)){var K;return K=E.error("Container required for toolbar",M.options),n(M,K)}return M.container.classList.add("ql-toolbar"),M.controls=[],M.handlers={},Object.keys(M.options.handlers).forEach(function(W){M.addHandler(W,M.options.handlers[W])}),[].forEach.call(M.container.querySelectorAll("button, select"),function(W){M.attach(W)}),M.quill.on(e.default.events.EDITOR_CHANGE,function(W,U){W===e.default.events.SELECTION_CHANGE&&M.update(U)}),M.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var W=M.quill.selection.getRange(),U=N(W,1),R=U[0];M.update(R)}),M}return S(g,[{key:"addHandler",value:function(L,M){this.handlers[L]=M}},{key:"attach",value:function(L){var M=this,H=[].find.call(L.classList,function(W){return W.indexOf("ql-")===0});if(H){if(H=H.slice(3),L.tagName==="BUTTON"&&L.setAttribute("type","button"),this.handlers[H]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[H]==null){E.warn("ignoring attaching to disabled format",H,L);return}if(u.default.query(H)==null){E.warn("ignoring attaching to nonexistent format",H,L);return}}var K=L.tagName==="SELECT"?"change":"click";L.addEventListener(K,function(W){var U=void 0;if(L.tagName==="SELECT"){if(L.selectedIndex<0)return;var R=L.options[L.selectedIndex];R.hasAttribute("selected")?U=!1:U=R.value||!1}else L.classList.contains("ql-active")?U=!1:U=L.value||!L.hasAttribute("value"),W.preventDefault();M.quill.focus();var w=M.quill.selection.getRange(),q=N(w,1),j=q[0];if(M.handlers[H]!=null)M.handlers[H].call(M,U);else if(u.default.query(H).prototype instanceof u.default.Embed){if(U=prompt("Enter "+H),!U)return;M.quill.updateContents(new y.default().retain(j.index).delete(j.length).insert(a({},H,U)),e.default.sources.USER)}else M.quill.format(H,U,e.default.sources.USER);M.update(j)}),this.controls.push([H,L])}}},{key:"update",value:function(L){var M=L==null?{}:this.quill.getFormat(L);this.controls.forEach(function(H){var K=N(H,2),W=K[0],U=K[1];if(U.tagName==="SELECT"){var R=void 0;if(L==null)R=null;else if(M[W]==null)R=U.querySelector("option[selected]");else if(!Array.isArray(M[W])){var w=M[W];typeof w=="string"&&(w=w.replace(/\"/g,'\\"')),R=U.querySelector('option[value="'+w+'"]')}R==null?(U.value="",U.selectedIndex=-1):R.selected=!0}else if(L==null)U.classList.remove("ql-active");else if(U.hasAttribute("value")){var q=M[W]===U.getAttribute("value")||M[W]!=null&&M[W].toString()===U.getAttribute("value")||M[W]==null&&!U.getAttribute("value");U.classList.toggle("ql-active",q)}else U.classList.toggle("ql-active",M[W]!=null)})}}]),g}(f.default);O.DEFAULTS={};function b(d,g,A){var L=document.createElement("button");L.setAttribute("type","button"),L.classList.add("ql-"+g),A!=null&&(L.value=A),d.appendChild(L)}function k(d,g){Array.isArray(g[0])||(g=[g]),g.forEach(function(A){var L=document.createElement("span");L.classList.add("ql-formats"),A.forEach(function(M){if(typeof M=="string")b(L,M);else{var H=Object.keys(M)[0],K=M[H];Array.isArray(K)?m(L,H,K):b(L,H,K)}}),d.appendChild(L)})}function m(d,g,A){var L=document.createElement("select");L.classList.add("ql-"+g),A.forEach(function(M){var H=document.createElement("option");M!==!1?H.setAttribute("value",M):H.setAttribute("selected","selected"),L.appendChild(H)}),d.appendChild(L)}O.DEFAULTS={container:null,handlers:{clean:function(){var g=this,A=this.quill.getSelection();if(A!=null)if(A.length==0){var L=this.quill.getFormat();Object.keys(L).forEach(function(M){u.default.query(M,u.default.Scope.INLINE)!=null&&g.quill.format(M,!1)})}else this.quill.removeFormat(A,e.default.sources.USER)},direction:function(g){var A=this.quill.getFormat().align;g==="rtl"&&A==null?this.quill.format("align","right",e.default.sources.USER):!g&&A==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",g,e.default.sources.USER)},indent:function(g){var A=this.quill.getSelection(),L=this.quill.getFormat(A),M=parseInt(L.indent||0);if(g==="+1"||g==="-1"){var H=g==="+1"?1:-1;L.direction==="rtl"&&(H*=-1),this.quill.format("indent",M+H,e.default.sources.USER)}},link:function(g){g===!0&&(g=prompt("Enter link URL:")),this.quill.format("link",g,e.default.sources.USER)},list:function(g){var A=this.quill.getSelection(),L=this.quill.getFormat(A);g==="check"?L.list==="checked"||L.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",g,e.default.sources.USER)}}},_.default=O,_.addControls=k},function(I,_){I.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(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function c(s,f){for(var o=0;o<f.length;o++){var a=f[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,f,o){return f&&c(s.prototype,f),o&&c(s,o),s}}(),S=function c(s,f,o){s===null&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,f);if(a===void 0){var r=Object.getPrototypeOf(s);return r===null?void 0:c(r,f,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},T=p(28),y=v(T);function v(c){return c&&c.__esModule?c:{default:c}}function u(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function e(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var t=function(c){e(s,c);function s(f,o){u(this,s);var a=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,f));return a.label.innerHTML=o,a.container.classList.add("ql-color-picker"),[].slice.call(a.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(r){r.classList.add("ql-primary")}),a}return N(s,[{key:"buildItem",value:function(o){var a=S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"buildItem",this).call(this,o);return a.style.backgroundColor=o.getAttribute("value")||"",a}},{key:"selectItem",value:function(o,a){S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,o,a);var r=this.label.querySelector(".ql-color-label"),n=o&&o.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=n:r.style.fill=n)}}]),s}(y.default);_.default=t},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function c(s,f){for(var o=0;o<f.length;o++){var a=f[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,f,o){return f&&c(s.prototype,f),o&&c(s,o),s}}(),S=function c(s,f,o){s===null&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,f);if(a===void 0){var r=Object.getPrototypeOf(s);return r===null?void 0:c(r,f,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},T=p(28),y=v(T);function v(c){return c&&c.__esModule?c:{default:c}}function u(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function e(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var t=function(c){e(s,c);function s(f,o){u(this,s);var a=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,f));return a.container.classList.add("ql-icon-picker"),[].forEach.call(a.container.querySelectorAll(".ql-picker-item"),function(r){r.innerHTML=o[r.getAttribute("data-value")||""]}),a.defaultItem=a.container.querySelector(".ql-selected"),a.selectItem(a.defaultItem),a}return N(s,[{key:"selectItem",value:function(o,a){S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,o,a),o=o||this.defaultItem,this.label.innerHTML=o.innerHTML}}]),s}(y.default);_.default=t},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function y(v,u){for(var i=0;i<u.length;i++){var e=u[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,u,i){return u&&y(v.prototype,u),i&&y(v,i),v}}();function S(y,v){if(!(y instanceof v))throw new TypeError("Cannot call a class as a function")}var T=function(){function y(v,u){var i=this;S(this,y),this.quill=v,this.boundsContainer=u||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return N(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var i=u.left+u.width/2-this.root.offsetWidth/2,e=u.bottom+this.quill.root.scrollTop;this.root.style.left=i+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),c=this.root.getBoundingClientRect(),s=0;if(c.right>t.right&&(s=t.right-c.right,this.root.style.left=i+s+"px"),c.left<t.left&&(s=t.left-c.left,this.root.style.left=i+s+"px"),c.bottom>t.bottom){var f=c.bottom-c.top,o=u.bottom-u.top+f;this.root.style.top=e-o+"px",this.root.classList.add("ql-flip")}return s}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();_.default=T},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function m(d,g){var A=[],L=!0,M=!1,H=void 0;try{for(var K=d[Symbol.iterator](),W;!(L=(W=K.next()).done)&&(A.push(W.value),!(g&&A.length===g));L=!0);}catch(U){M=!0,H=U}finally{try{!L&&K.return&&K.return()}finally{if(M)throw H}}return A}return function(d,g){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return m(d,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function m(d,g,A){d===null&&(d=Function.prototype);var L=Object.getOwnPropertyDescriptor(d,g);if(L===void 0){var M=Object.getPrototypeOf(d);return M===null?void 0:m(M,g,A)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(A)}},T=function(){function m(d,g){for(var A=0;A<g.length;A++){var L=g[A];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(d,L.key,L)}}return function(d,g,A){return g&&m(d.prototype,g),A&&m(d,A),d}}(),y=p(3),v=r(y),u=p(8),i=r(u),e=p(43),t=r(e),c=p(27),s=r(c),f=p(15),o=p(41),a=r(o);function r(m){return m&&m.__esModule?m:{default:m}}function n(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function l(m,d){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:m}function E(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(m,d):m.__proto__=d)}var O=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(m){E(d,m);function d(g,A){n(this,d),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=O);var L=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,g,A));return L.quill.container.classList.add("ql-snow"),L}return T(d,[{key:"extendToolbar",value:function(A){A.container.classList.add("ql-snow"),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),a.default),this.tooltip=new k(this.quill,this.options.bounds),A.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(L,M){A.handlers.link.call(A,!M.format.link)})}}]),d}(t.default);b.DEFAULTS=(0,v.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(d){if(d){var g=this.quill.getSelection();if(g==null||g.length==0)return;var A=this.quill.getText(g);/^\S+@\S+\.\S+$/.test(A)&&A.indexOf("mailto:")!==0&&(A="mailto:"+A);var L=this.quill.theme.tooltip;L.edit("link",A)}else this.quill.format("link",!1)}}}}});var k=function(m){E(d,m);function d(g,A){n(this,d);var L=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,g,A));return L.preview=L.root.querySelector("a.ql-preview"),L}return T(d,[{key:"listen",value:function(){var A=this;S(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(L){A.root.classList.contains("ql-editing")?A.save():A.edit("link",A.preview.textContent),L.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(L){if(A.linkRange!=null){var M=A.linkRange;A.restoreFocus(),A.quill.formatText(M,"link",!1,i.default.sources.USER),delete A.linkRange}L.preventDefault(),A.hide()}),this.quill.on(i.default.events.SELECTION_CHANGE,function(L,M,H){if(L!=null){if(L.length===0&&H===i.default.sources.USER){var K=A.quill.scroll.descendant(s.default,L.index),W=N(K,2),U=W[0],R=W[1];if(U!=null){A.linkRange=new f.Range(L.index-R,U.length());var w=s.default.formats(U.domNode);A.preview.textContent=w,A.preview.setAttribute("href",w),A.show(),A.position(A.quill.getBounds(A.linkRange));return}}else delete A.linkRange;A.hide()}})}},{key:"show",value:function(){S(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),d}(e.BaseTooltip);k.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(""),_.default=b},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(29),S=Q(N),T=p(36),y=p(38),v=p(64),u=p(65),i=Q(u),e=p(66),t=Q(e),c=p(67),s=Q(c),f=p(37),o=p(26),a=p(39),r=p(40),n=p(56),l=Q(n),E=p(68),O=Q(E),b=p(27),k=Q(b),m=p(69),d=Q(m),g=p(70),A=Q(g),L=p(71),M=Q(L),H=p(72),K=Q(H),W=p(73),U=Q(W),R=p(13),w=Q(R),q=p(74),j=Q(q),B=p(75),D=Q(B),P=p(57),C=Q(P),$=p(41),G=Q($),X=p(28),te=Q(X),ie=p(59),ae=Q(ie),fe=p(60),ce=Q(fe),me=p(61),ge=Q(me),V=p(108),Y=Q(V),ee=p(62),ne=Q(ee);function Q(ue){return ue&&ue.__esModule?ue:{default:ue}}S.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":T.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":o.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":a.FontClass,"attributors/class/size":r.SizeClass,"attributors/style/align":T.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":o.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":a.FontStyle,"attributors/style/size":r.SizeStyle},!0),S.default.register({"formats/align":T.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":v.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":o.ColorStyle,"formats/font":a.FontClass,"formats/size":r.SizeClass,"formats/blockquote":i.default,"formats/code-block":w.default,"formats/header":t.default,"formats/list":s.default,"formats/bold":l.default,"formats/code":R.Code,"formats/italic":O.default,"formats/link":k.default,"formats/script":d.default,"formats/strike":A.default,"formats/underline":M.default,"formats/image":K.default,"formats/video":U.default,"formats/list/item":c.ListItem,"modules/formula":j.default,"modules/syntax":D.default,"modules/toolbar":C.default,"themes/bubble":Y.default,"themes/snow":ne.default,"ui/icons":G.default,"ui/picker":te.default,"ui/icon-picker":ce.default,"ui/color-picker":ae.default,"ui/tooltip":ge.default},!0),_.default=S.default},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.IndentClass=void 0;var N=function(){function s(f,o){for(var a=0;a<o.length;a++){var r=o[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}return function(f,o,a){return o&&s(f.prototype,o),a&&s(f,a),f}}(),S=function s(f,o,a){f===null&&(f=Function.prototype);var r=Object.getOwnPropertyDescriptor(f,o);if(r===void 0){var n=Object.getPrototypeOf(f);return n===null?void 0:s(n,o,a)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(a)}},T=p(0),y=v(T);function v(s){return s&&s.__esModule?s:{default:s}}function u(s,f){if(!(s instanceof f))throw new TypeError("Cannot call a class as a function")}function i(s,f){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:s}function e(s,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);s.prototype=Object.create(f&&f.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(s,f):s.__proto__=f)}var t=function(s){e(f,s);function f(){return u(this,f),i(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return N(f,[{key:"add",value:function(a,r){if(r==="+1"||r==="-1"){var n=this.value(a)||0;r=r==="+1"?n+1:n-1}return r===0?(this.remove(a),!0):S(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"add",this).call(this,a,r)}},{key:"canAdd",value:function(a,r){return S(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,a,r)||S(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,a,parseInt(r))}},{key:"value",value:function(a){return parseInt(S(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,a))||void 0}}]),f}(y.default.Attributor.Class),c=new t("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});_.IndentClass=c},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(4),S=T(N);function T(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function u(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e){u(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(S.default);i.blotName="blockquote",i.tagName="blockquote",_.default=i},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function t(c,s){for(var f=0;f<s.length;f++){var o=s[f];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(c,o.key,o)}}return function(c,s,f){return s&&t(c.prototype,s),f&&t(c,f),c}}(),S=p(4),T=y(S);function y(t){return t&&t.__esModule?t:{default:t}}function v(t,c){if(!(t instanceof c))throw new TypeError("Cannot call a class as a function")}function u(t,c){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:t}function i(t,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);t.prototype=Object.create(c&&c.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(t,c):t.__proto__=c)}var e=function(t){i(c,t);function c(){return v(this,c),u(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return N(c,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]),c}(T.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],_.default=e},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.ListItem=void 0;var N=function(){function n(l,E){for(var O=0;O<E.length;O++){var b=E[O];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(l,b.key,b)}}return function(l,E,O){return E&&n(l.prototype,E),O&&n(l,O),l}}(),S=function n(l,E,O){l===null&&(l=Function.prototype);var b=Object.getOwnPropertyDescriptor(l,E);if(b===void 0){var k=Object.getPrototypeOf(l);return k===null?void 0:n(k,E,O)}else{if("value"in b)return b.value;var m=b.get;return m===void 0?void 0:m.call(O)}},T=p(0),y=t(T),v=p(4),u=t(v),i=p(25),e=t(i);function t(n){return n&&n.__esModule?n:{default:n}}function c(n,l,E){return l in n?Object.defineProperty(n,l,{value:E,enumerable:!0,configurable:!0,writable:!0}):n[l]=E,n}function s(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function f(n,l){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:n}function o(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(n,l):n.__proto__=l)}var a=function(n){o(l,n);function l(){return s(this,l),f(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return N(l,[{key:"format",value:function(O,b){O===r.blotName&&!b?this.replaceWith(y.default.create(this.statics.scope)):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,O,b)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(O,b){return this.parent.isolate(this.offset(this.parent),this.length()),O===this.parent.statics.blotName?(this.parent.replaceWith(O,b),this):(this.parent.unwrap(),S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replaceWith",this).call(this,O,b))}}],[{key:"formats",value:function(O){return O.tagName===this.tagName?void 0:S(l.__proto__||Object.getPrototypeOf(l),"formats",this).call(this,O)}}]),l}(u.default);a.blotName="list-item",a.tagName="LI";var r=function(n){o(l,n),N(l,null,[{key:"create",value:function(O){var b=O==="ordered"?"OL":"UL",k=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,b);return(O==="checked"||O==="unchecked")&&k.setAttribute("data-checked",O==="checked"),k}},{key:"formats",value:function(O){if(O.tagName==="OL")return"ordered";if(O.tagName==="UL")return O.hasAttribute("data-checked")?O.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function l(E){s(this,l);var O=f(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,E)),b=function(m){if(m.target.parentNode===E){var d=O.statics.formats(E),g=y.default.find(m.target);d==="checked"?g.format("list","unchecked"):d==="unchecked"&&g.format("list","checked")}};return E.addEventListener("touchstart",b),E.addEventListener("mousedown",b),O}return N(l,[{key:"format",value:function(O,b){this.children.length>0&&this.children.tail.format(O,b)}},{key:"formats",value:function(){return c({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(O,b){if(O instanceof a)S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertBefore",this).call(this,O,b);else{var k=b==null?this.length():b.offset(this),m=this.split(k);m.parent.insertBefore(O,m)}}},{key:"optimize",value:function(O){S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,O);var b=this.next;b!=null&&b.prev===this&&b.statics.blotName===this.statics.blotName&&b.domNode.tagName===this.domNode.tagName&&b.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(b.moveChildren(this),b.remove())}},{key:"replace",value:function(O){if(O.statics.blotName!==this.statics.blotName){var b=y.default.create(this.statics.defaultChild);O.moveChildren(b),this.appendChild(b)}S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replace",this).call(this,O)}}]),l}(e.default);r.blotName="list",r.scope=y.default.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[a],_.ListItem=a,_.default=r},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(56),S=T(N);function T(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function u(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e){u(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(S.default);i.blotName="italic",i.tagName=["EM","I"],_.default=i},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function c(s,f){for(var o=0;o<f.length;o++){var a=f[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}return function(s,f,o){return f&&c(s.prototype,f),o&&c(s,o),s}}(),S=function c(s,f,o){s===null&&(s=Function.prototype);var a=Object.getOwnPropertyDescriptor(s,f);if(a===void 0){var r=Object.getPrototypeOf(s);return r===null?void 0:c(r,f,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},T=p(6),y=v(T);function v(c){return c&&c.__esModule?c:{default:c}}function u(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function e(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var t=function(c){e(s,c);function s(){return u(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return N(s,null,[{key:"create",value:function(o){return o==="super"?document.createElement("sup"):o==="sub"?document.createElement("sub"):S(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,o)}},{key:"formats",value:function(o){if(o.tagName==="SUB")return"sub";if(o.tagName==="SUP")return"super"}}]),s}(y.default);t.blotName="script",t.tagName=["SUB","SUP"],_.default=t},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(6),S=T(N);function T(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function u(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e){u(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(S.default);i.blotName="strike",i.tagName="S",_.default=i},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=p(6),S=T(N);function T(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function u(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e){u(t,e);function t(){return y(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(S.default);i.blotName="underline",i.tagName="U",_.default=i},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function f(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&f(o.prototype,a),r&&f(o,r),o}}(),S=function f(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:f(l,a,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},T=p(0),y=u(T),v=p(27);function u(f){return f&&f.__esModule?f:{default:f}}function i(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function e(f,o){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:f}function t(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(f,o):f.__proto__=o)}var c=["alt","height","width"],s=function(f){t(o,f);function o(){return i(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return N(o,[{key:"format",value:function(r,n){c.indexOf(r)>-1?n?this.domNode.setAttribute(r,n):this.domNode.removeAttribute(r):S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,r,n)}}],[{key:"create",value:function(r){var n=S(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,r);return typeof r=="string"&&n.setAttribute("src",this.sanitize(r)),n}},{key:"formats",value:function(r){return c.reduce(function(n,l){return r.hasAttribute(l)&&(n[l]=r.getAttribute(l)),n},{})}},{key:"match",value:function(r){return/\.(jpe?g|gif|png)$/.test(r)||/^data:image\/.+;base64/.test(r)}},{key:"sanitize",value:function(r){return(0,v.sanitize)(r,["http","https","data"])?r:"//:0"}},{key:"value",value:function(r){return r.getAttribute("src")}}]),o}(y.default.Embed);s.blotName="image",s.tagName="IMG",_.default=s},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0});var N=function(){function f(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&f(o.prototype,a),r&&f(o,r),o}}(),S=function f(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:f(l,a,r)}else{if("value"in n)return n.value;var E=n.get;return E===void 0?void 0:E.call(r)}},T=p(4),y=p(27),v=u(y);function u(f){return f&&f.__esModule?f:{default:f}}function i(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}function e(f,o){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:f}function t(f,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);f.prototype=Object.create(o&&o.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(f,o):f.__proto__=o)}var c=["height","width"],s=function(f){t(o,f);function o(){return i(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return N(o,[{key:"format",value:function(r,n){c.indexOf(r)>-1?n?this.domNode.setAttribute(r,n):this.domNode.removeAttribute(r):S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,r,n)}}],[{key:"create",value:function(r){var n=S(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,r);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(r)),n}},{key:"formats",value:function(r){return c.reduce(function(n,l){return r.hasAttribute(l)&&(n[l]=r.getAttribute(l)),n},{})}},{key:"sanitize",value:function(r){return v.default.sanitize(r)}},{key:"value",value:function(r){return r.getAttribute("src")}}]),o}(T.BlockEmbed);s.blotName="video",s.className="ql-video",s.tagName="IFRAME",_.default=s},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.FormulaBlot=void 0;var N=function(){function r(n,l){for(var E=0;E<l.length;E++){var O=l[E];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(n,O.key,O)}}return function(n,l,E){return l&&r(n.prototype,l),E&&r(n,E),n}}(),S=function r(n,l,E){n===null&&(n=Function.prototype);var O=Object.getOwnPropertyDescriptor(n,l);if(O===void 0){var b=Object.getPrototypeOf(n);return b===null?void 0:r(b,l,E)}else{if("value"in O)return O.value;var k=O.get;return k===void 0?void 0:k.call(E)}},T=p(35),y=t(T),v=p(5),u=t(v),i=p(9),e=t(i);function t(r){return r&&r.__esModule?r:{default:r}}function c(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function s(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function f(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var o=function(r){f(n,r);function n(){return c(this,n),s(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return N(n,null,[{key:"create",value:function(E){var O=S(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,E);return typeof E=="string"&&(window.katex.render(E,O,{throwOnError:!1,errorColor:"#f00"}),O.setAttribute("data-value",E)),O}},{key:"value",value:function(E){return E.getAttribute("data-value")}}]),n}(y.default);o.blotName="formula",o.className="ql-formula",o.tagName="SPAN";var a=function(r){f(n,r),N(n,null,[{key:"register",value:function(){u.default.register(o,!0)}}]);function n(){c(this,n);var l=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return l}return n}(e.default);_.FormulaBlot=o,_.default=a},function(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.CodeToken=_.CodeBlock=void 0;var N=function(){function E(O,b){for(var k=0;k<b.length;k++){var m=b[k];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(O,m.key,m)}}return function(O,b,k){return b&&E(O.prototype,b),k&&E(O,k),O}}(),S=function E(O,b,k){O===null&&(O=Function.prototype);var m=Object.getOwnPropertyDescriptor(O,b);if(m===void 0){var d=Object.getPrototypeOf(O);return d===null?void 0:E(d,b,k)}else{if("value"in m)return m.value;var g=m.get;return g===void 0?void 0:g.call(k)}},T=p(0),y=s(T),v=p(5),u=s(v),i=p(9),e=s(i),t=p(13),c=s(t);function s(E){return E&&E.__esModule?E:{default:E}}function f(E,O){if(!(E instanceof O))throw new TypeError("Cannot call a class as a function")}function o(E,O){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:E}function a(E,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);E.prototype=Object.create(O&&O.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(E,O):E.__proto__=O)}var r=function(E){a(O,E);function O(){return f(this,O),o(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return N(O,[{key:"replaceWith",value:function(k){this.domNode.textContent=this.domNode.textContent,this.attach(),S(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,k)}},{key:"highlight",value:function(k){var m=this.domNode.textContent;this.cachedText!==m&&((m.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=k(m),this.domNode.normalize(),this.attach()),this.cachedText=m)}}]),O}(c.default);r.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),l=function(E){a(O,E),N(O,null,[{key:"register",value:function(){u.default.register(n,!0),u.default.register(r,!0)}}]);function O(b,k){f(this,O);var m=o(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,b,k));if(typeof m.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var d=null;return m.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(d),d=setTimeout(function(){m.highlight(),d=null},m.options.interval)}),m.highlight(),m}return N(O,[{key:"highlight",value:function(){var k=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var m=this.quill.getSelection();this.quill.scroll.descendants(r).forEach(function(d){d.highlight(k.options.highlight)}),this.quill.update(u.default.sources.SILENT),m!=null&&this.quill.setSelection(m,u.default.sources.SILENT)}}}]),O}(e.default);l.DEFAULTS={highlight:function(){return window.hljs==null?null:function(E){var O=window.hljs.highlightAuto(E);return O.value}}(),interval:1e3},_.CodeBlock=r,_.CodeToken=n,_.default=l},function(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_){I.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(I,_,p){Object.defineProperty(_,"__esModule",{value:!0}),_.default=_.BubbleTooltip=void 0;var N=function O(b,k,m){b===null&&(b=Function.prototype);var d=Object.getOwnPropertyDescriptor(b,k);if(d===void 0){var g=Object.getPrototypeOf(b);return g===null?void 0:O(g,k,m)}else{if("value"in d)return d.value;var A=d.get;return A===void 0?void 0:A.call(m)}},S=function(){function O(b,k){for(var m=0;m<k.length;m++){var d=k[m];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(b,d.key,d)}}return function(b,k,m){return k&&O(b.prototype,k),m&&O(b,m),b}}(),T=p(3),y=f(T),v=p(8),u=f(v),i=p(43),e=f(i),t=p(15),c=p(41),s=f(c);function f(O){return O&&O.__esModule?O:{default:O}}function o(O,b){if(!(O instanceof b))throw new TypeError("Cannot call a class as a function")}function a(O,b){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:O}function r(O,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);O.prototype=Object.create(b&&b.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(O,b):O.__proto__=b)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],l=function(O){r(b,O);function b(k,m){o(this,b),m.modules.toolbar!=null&&m.modules.toolbar.container==null&&(m.modules.toolbar.container=n);var d=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,k,m));return d.quill.container.classList.add("ql-bubble"),d}return S(b,[{key:"extendToolbar",value:function(m){this.tooltip=new E(this.quill,this.options.bounds),this.tooltip.root.appendChild(m.container),this.buildButtons([].slice.call(m.container.querySelectorAll("button")),s.default),this.buildPickers([].slice.call(m.container.querySelectorAll("select")),s.default)}}]),b}(e.default);l.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(b){b?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var E=function(O){r(b,O);function b(k,m){o(this,b);var d=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,k,m));return d.quill.on(u.default.events.EDITOR_CHANGE,function(g,A,L,M){if(g===u.default.events.SELECTION_CHANGE)if(A!=null&&A.length>0&&M===u.default.sources.USER){d.show(),d.root.style.left="0px",d.root.style.width="",d.root.style.width=d.root.offsetWidth+"px";var H=d.quill.getLines(A.index,A.length);if(H.length===1)d.position(d.quill.getBounds(A));else{var K=H[H.length-1],W=d.quill.getIndex(K),U=Math.min(K.length()-1,A.index+A.length-W),R=d.quill.getBounds(new t.Range(W,U));d.position(R)}}else document.activeElement!==d.textbox&&d.quill.hasFocus()&&d.hide()}),d}return S(b,[{key:"listen",value:function(){var m=this;N(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){m.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!m.root.classList.contains("ql-hidden")){var d=m.quill.getSelection();d!=null&&m.position(m.quill.getBounds(d))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(m){var d=N(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,m),g=this.root.querySelector(".ql-tooltip-arrow");if(g.style.marginLeft="",d===0)return d;g.style.marginLeft=-1*d-g.offsetWidth/2+"px"}}]),b}(i.BaseTooltip);E.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),_.BubbleTooltip=E,_.default=l},function(I,_,p){I.exports=p(63)}]).default})}(Xt)),Xt.exports}var bi=mi();const Fn=sr(bi);var Un,Qn;function _i(){if(Qn)return Un;Qn=1;var z=-1,J=1,I=0;function _(r,n,l,E){if(r===n)return r?[[I,r]]:[];if(l!=null){var O=o(r,n,l);if(O)return O}var b=T(r,n),k=r.substring(0,b);r=r.substring(b),n=n.substring(b),b=y(r,n);var m=r.substring(r.length-b);r=r.substring(0,r.length-b),n=n.substring(0,n.length-b);var d=p(r,n);return k&&d.unshift([I,k]),m&&d.push([I,m]),u(d,E),d}function p(r,n){var l;if(!r)return[[J,n]];if(!n)return[[z,r]];var E=r.length>n.length?r:n,O=r.length>n.length?n:r,b=E.indexOf(O);if(b!==-1)return l=[[J,E.substring(0,b)],[I,O],[J,E.substring(b+O.length)]],r.length>n.length&&(l[0][0]=l[2][0]=z),l;if(O.length===1)return[[z,r],[J,n]];var k=v(r,n);if(k){var m=k[0],d=k[1],g=k[2],A=k[3],L=k[4],M=_(m,g),H=_(d,A);return M.concat([[I,L]],H)}return N(r,n)}function N(r,n){for(var l=r.length,E=n.length,O=Math.ceil((l+E)/2),b=O,k=2*O,m=new Array(k),d=new Array(k),g=0;g<k;g++)m[g]=-1,d[g]=-1;m[b+1]=0,d[b+1]=0;for(var A=l-E,L=A%2!==0,M=0,H=0,K=0,W=0,U=0;U<O;U++){for(var R=-U+M;R<=U-H;R+=2){var w=b+R,q;R===-U||R!==U&&m[w-1]<m[w+1]?q=m[w+1]:q=m[w-1]+1;for(var j=q-R;q<l&&j<E&&r.charAt(q)===n.charAt(j);)q++,j++;if(m[w]=q,q>l)H+=2;else if(j>E)M+=2;else if(L){var B=b+A-R;if(B>=0&&B<k&&d[B]!==-1){var D=l-d[B];if(q>=D)return S(r,n,q,j)}}}for(var P=-U+K;P<=U-W;P+=2){var B=b+P,D;P===-U||P!==U&&d[B-1]<d[B+1]?D=d[B+1]:D=d[B-1]+1;for(var C=D-P;D<l&&C<E&&r.charAt(l-D-1)===n.charAt(E-C-1);)D++,C++;if(d[B]=D,D>l)W+=2;else if(C>E)K+=2;else if(!L){var w=b+A-P;if(w>=0&&w<k&&m[w]!==-1){var q=m[w],j=b+q-w;if(D=l-D,q>=D)return S(r,n,q,j)}}}}return[[z,r],[J,n]]}function S(r,n,l,E){var O=r.substring(0,l),b=n.substring(0,E),k=r.substring(l),m=n.substring(E),d=_(O,b),g=_(k,m);return d.concat(g)}function T(r,n){if(!r||!n||r.charAt(0)!==n.charAt(0))return 0;for(var l=0,E=Math.min(r.length,n.length),O=E,b=0;l<O;)r.substring(b,O)==n.substring(b,O)?(l=O,b=l):E=O,O=Math.floor((E-l)/2+l);return i(r.charCodeAt(O-1))&&O--,O}function y(r,n){if(!r||!n||r.slice(-1)!==n.slice(-1))return 0;for(var l=0,E=Math.min(r.length,n.length),O=E,b=0;l<O;)r.substring(r.length-O,r.length-b)==n.substring(n.length-O,n.length-b)?(l=O,b=l):E=O,O=Math.floor((E-l)/2+l);return e(r.charCodeAt(r.length-O))&&O--,O}function v(r,n){var l=r.length>n.length?r:n,E=r.length>n.length?n:r;if(l.length<4||E.length*2<l.length)return null;function O(H,K,W){for(var U=H.substring(W,W+Math.floor(H.length/4)),R=-1,w="",q,j,B,D;(R=K.indexOf(U,R+1))!==-1;){var P=T(H.substring(W),K.substring(R)),C=y(H.substring(0,W),K.substring(0,R));w.length<C+P&&(w=K.substring(R-C,R)+K.substring(R,R+P),q=H.substring(0,W-C),j=H.substring(W+P),B=K.substring(0,R-C),D=K.substring(R+P))}return w.length*2>=H.length?[q,j,B,D,w]:null}var b=O(l,E,Math.ceil(l.length/4)),k=O(l,E,Math.ceil(l.length/2)),m;if(!b&&!k)return null;k?b?m=b[4].length>k[4].length?b:k:m=k:m=b;var d,g,A,L;r.length>n.length?(d=m[0],g=m[1],A=m[2],L=m[3]):(A=m[0],L=m[1],d=m[2],g=m[3]);var M=m[4];return[d,g,A,L,M]}function u(r,n){r.push([I,""]);for(var l=0,E=0,O=0,b="",k="",m;l<r.length;){if(l<r.length-1&&!r[l][1]){r.splice(l,1);continue}switch(r[l][0]){case J:O++,k+=r[l][1],l++;break;case z:E++,b+=r[l][1],l++;break;case I:var d=l-O-E-1;if(n){if(d>=0&&c(r[d][1])){var g=r[d][1].slice(-1);if(r[d][1]=r[d][1].slice(0,-1),b=g+b,k=g+k,!r[d][1]){r.splice(d,1),l--;var A=d-1;r[A]&&r[A][0]===J&&(O++,k=r[A][1]+k,A--),r[A]&&r[A][0]===z&&(E++,b=r[A][1]+b,A--),d=A}}if(t(r[l][1])){var g=r[l][1].charAt(0);r[l][1]=r[l][1].slice(1),b+=g,k+=g}}if(l<r.length-1&&!r[l][1]){r.splice(l,1);break}if(b.length>0||k.length>0){b.length>0&&k.length>0&&(m=T(k,b),m!==0&&(d>=0?r[d][1]+=k.substring(0,m):(r.splice(0,0,[I,k.substring(0,m)]),l++),k=k.substring(m),b=b.substring(m)),m=y(k,b),m!==0&&(r[l][1]=k.substring(k.length-m)+r[l][1],k=k.substring(0,k.length-m),b=b.substring(0,b.length-m)));var L=O+E;b.length===0&&k.length===0?(r.splice(l-L,L),l=l-L):b.length===0?(r.splice(l-L,L,[J,k]),l=l-L+1):k.length===0?(r.splice(l-L,L,[z,b]),l=l-L+1):(r.splice(l-L,L,[z,b],[J,k]),l=l-L+2)}l!==0&&r[l-1][0]===I?(r[l-1][1]+=r[l][1],r.splice(l,1)):l++,O=0,E=0,b="",k="";break}}r[r.length-1][1]===""&&r.pop();var M=!1;for(l=1;l<r.length-1;)r[l-1][0]===I&&r[l+1][0]===I&&(r[l][1].substring(r[l][1].length-r[l-1][1].length)===r[l-1][1]?(r[l][1]=r[l-1][1]+r[l][1].substring(0,r[l][1].length-r[l-1][1].length),r[l+1][1]=r[l-1][1]+r[l+1][1],r.splice(l-1,1),M=!0):r[l][1].substring(0,r[l+1][1].length)==r[l+1][1]&&(r[l-1][1]+=r[l+1][1],r[l][1]=r[l][1].substring(r[l+1][1].length)+r[l+1][1],r.splice(l+1,1),M=!0)),l++;M&&u(r,n)}function i(r){return r>=55296&&r<=56319}function e(r){return r>=56320&&r<=57343}function t(r){return e(r.charCodeAt(0))}function c(r){return i(r.charCodeAt(r.length-1))}function s(r){for(var n=[],l=0;l<r.length;l++)r[l][1].length>0&&n.push(r[l]);return n}function f(r,n,l,E){return c(r)||t(E)?null:s([[I,r],[z,n],[J,l],[I,E]])}function o(r,n,l){var E=typeof l=="number"?{index:l,length:0}:l.oldRange,O=typeof l=="number"?null:l.newRange,b=r.length,k=n.length;if(E.length===0&&(O===null||O.length===0)){var m=E.index,d=r.slice(0,m),g=r.slice(m),A=O?O.index:null;e:{var L=m+k-b;if(A!==null&&A!==L||L<0||L>k)break e;var M=n.slice(0,L),H=n.slice(L);if(H!==g)break e;var K=Math.min(m,L),W=d.slice(0,K),U=M.slice(0,K);if(W!==U)break e;var R=d.slice(K),w=M.slice(K);return f(W,R,w,g)}e:{if(A!==null&&A!==m)break e;var q=m,M=n.slice(0,q),H=n.slice(q);if(M!==d)break e;var j=Math.min(b-q,k-q),B=g.slice(g.length-j),D=H.slice(H.length-j);if(B!==D)break e;var R=g.slice(0,g.length-j),w=H.slice(0,H.length-j);return f(d,R,w,B)}}if(E.length>0&&O&&O.length===0)e:{var W=r.slice(0,E.index),B=r.slice(E.index+E.length),K=W.length,j=B.length;if(k<K+j)break e;var U=n.slice(0,K),D=n.slice(k-j);if(W!==U||B!==D)break e;var R=r.slice(K,b-j),w=n.slice(K,k-j);return f(W,R,w,B)}return null}function a(r,n,l){return _(r,n,l,!0)}return a.INSERT=J,a.DELETE=z,a.EQUAL=I,Un=a,Un}var Lt={exports:{}};Lt.exports;var Jn;function Or(){return Jn||(Jn=1,function(z,J){var I=200,_="__lodash_hash_undefined__",p=9007199254740991,N="[object Arguments]",S="[object Array]",T="[object Boolean]",y="[object Date]",v="[object Error]",u="[object Function]",i="[object GeneratorFunction]",e="[object Map]",t="[object Number]",c="[object Object]",s="[object Promise]",f="[object RegExp]",o="[object Set]",a="[object String]",r="[object Symbol]",n="[object WeakMap]",l="[object ArrayBuffer]",E="[object DataView]",O="[object Float32Array]",b="[object Float64Array]",k="[object Int8Array]",m="[object Int16Array]",d="[object Int32Array]",g="[object Uint8Array]",A="[object Uint8ClampedArray]",L="[object Uint16Array]",M="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,W=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,R={};R[N]=R[S]=R[l]=R[E]=R[T]=R[y]=R[O]=R[b]=R[k]=R[m]=R[d]=R[e]=R[t]=R[c]=R[f]=R[o]=R[a]=R[r]=R[g]=R[A]=R[L]=R[M]=!0,R[v]=R[u]=R[n]=!1;var w=typeof Ze=="object"&&Ze&&Ze.Object===Object&&Ze,q=typeof self=="object"&&self&&self.Object===Object&&self,j=w||q||Function("return this")(),B=J&&!J.nodeType&&J,D=B&&!0&&z&&!z.nodeType&&z,P=D&&D.exports===B;function C(h,x){return h.set(x[0],x[1]),h}function $(h,x){return h.add(x),h}function G(h,x){for(var F=-1,Z=h?h.length:0;++F<Z&&x(h[F],F,h)!==!1;);return h}function X(h,x){for(var F=-1,Z=x.length,se=h.length;++F<Z;)h[se+F]=x[F];return h}function te(h,x,F,Z){for(var se=-1,re=h?h.length:0;++se<re;)F=x(F,h[se],se,h);return F}function ie(h,x){for(var F=-1,Z=Array(h);++F<h;)Z[F]=x(F);return Z}function ae(h,x){return h==null?void 0:h[x]}function fe(h){var x=!1;if(h!=null&&typeof h.toString!="function")try{x=!!(h+"")}catch{}return x}function ce(h){var x=-1,F=Array(h.size);return h.forEach(function(Z,se){F[++x]=[se,Z]}),F}function me(h,x){return function(F){return h(x(F))}}function ge(h){var x=-1,F=Array(h.size);return h.forEach(function(Z){F[++x]=Z}),F}var V=Array.prototype,Y=Function.prototype,ee=Object.prototype,ne=j["__core-js_shared__"],Q=function(){var h=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ue=Y.toString,oe=ee.hasOwnProperty,le=ee.toString,Te=RegExp("^"+ue.call(oe).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=P?j.Buffer:void 0,pe=j.Symbol,We=j.Uint8Array,he=me(Object.getPrototypeOf,Object),Re=Object.create,jt=ee.propertyIsEnumerable,Jt=V.splice,yt=Object.getOwnPropertySymbols,rt=Ee?Ee.isBuffer:void 0,Mt=me(Object.keys,Object),it=Ie(j,"DataView"),Ye=Ie(j,"Map"),qe=Ie(j,"Promise"),ot=Ie(j,"Set"),gt=Ie(j,"WeakMap"),Xe=Ie(Object,"create"),mt=xe(it),Qe=xe(Ye),bt=xe(qe),_t=xe(ot),Ot=xe(gt),$e=pe?pe.prototype:void 0,Dt=$e?$e.valueOf:void 0;function Ue(h){var x=-1,F=h?h.length:0;for(this.clear();++x<F;){var Z=h[x];this.set(Z[0],Z[1])}}function en(){this.__data__=Xe?Xe(null):{}}function tn(h){return this.has(h)&&delete this.__data__[h]}function nn(h){var x=this.__data__;if(Xe){var F=x[h];return F===_?void 0:F}return oe.call(x,h)?x[h]:void 0}function Bt(h){var x=this.__data__;return Xe?x[h]!==void 0:oe.call(x,h)}function Et(h,x){var F=this.__data__;return F[h]=Xe&&x===void 0?_:x,this}Ue.prototype.clear=en,Ue.prototype.delete=tn,Ue.prototype.get=nn,Ue.prototype.has=Bt,Ue.prototype.set=Et;function Ae(h){var x=-1,F=h?h.length:0;for(this.clear();++x<F;){var Z=h[x];this.set(Z[0],Z[1])}}function rn(){this.__data__=[]}function on(h){var x=this.__data__,F=lt(x,h);if(F<0)return!1;var Z=x.length-1;return F==Z?x.pop():Jt.call(x,F,1),!0}function an(h){var x=this.__data__,F=lt(x,h);return F<0?void 0:x[F][1]}function ln(h){return lt(this.__data__,h)>-1}function un(h,x){var F=this.__data__,Z=lt(F,h);return Z<0?F.push([h,x]):F[Z][1]=x,this}Ae.prototype.clear=rn,Ae.prototype.delete=on,Ae.prototype.get=an,Ae.prototype.has=ln,Ae.prototype.set=un;function ke(h){var x=-1,F=h?h.length:0;for(this.clear();++x<F;){var Z=h[x];this.set(Z[0],Z[1])}}function sn(){this.__data__={hash:new Ue,map:new(Ye||Ae),string:new Ue}}function fn(h){return et(this,h).delete(h)}function cn(h){return et(this,h).get(h)}function hn(h){return et(this,h).has(h)}function dn(h,x){return et(this,h).set(h,x),this}ke.prototype.clear=sn,ke.prototype.delete=fn,ke.prototype.get=cn,ke.prototype.has=hn,ke.prototype.set=dn;function Pe(h){this.__data__=new Ae(h)}function vn(){this.__data__=new Ae}function pn(h){return this.__data__.delete(h)}function yn(h){return this.__data__.get(h)}function gn(h){return this.__data__.has(h)}function mn(h,x){var F=this.__data__;if(F instanceof Ae){var Z=F.__data__;if(!Ye||Z.length<I-1)return Z.push([h,x]),this;F=this.__data__=new ke(Z)}return F.set(h,x),this}Pe.prototype.clear=vn,Pe.prototype.delete=pn,Pe.prototype.get=yn,Pe.prototype.has=gn,Pe.prototype.set=mn;function at(h,x){var F=kt(h)||st(h)?ie(h.length,String):[],Z=F.length,se=!!Z;for(var re in h)oe.call(h,re)&&!(se&&(re=="length"||Rn(re,Z)))&&F.push(re);return F}function Ct(h,x,F){var Z=h[x];(!(oe.call(h,x)&&Kt(Z,F))||F===void 0&&!(x in h))&&(h[x]=F)}function lt(h,x){for(var F=h.length;F--;)if(Kt(h[F][0],x))return F;return-1}function Me(h,x){return h&&Tt(x,Nt(x),h)}function At(h,x,F,Z,se,re,ve){var de;if(Z&&(de=re?Z(h,se,re,ve):Z(h)),de!==void 0)return de;if(!Be(h))return h;var be=kt(h);if(be){if(de=Pn(h),!x)return Sn(h,de)}else{var ye=ze(h),Se=ye==u||ye==i;if($t(h))return ut(h,x);if(ye==c||ye==N||Se&&!re){if(fe(h))return re?h:{};if(de=De(Se?{}:h),!x)return Nn(h,Me(de,h))}else{if(!R[ye])return re?h:{};de=Ln(h,ye,At,x)}}ve||(ve=new Pe);var Le=ve.get(h);if(Le)return Le;if(ve.set(h,de),!be)var _e=F?xn(h):Nt(h);return G(_e||h,function(Ne,we){_e&&(we=Ne,Ne=h[we]),Ct(de,we,At(Ne,x,F,Z,we,h,ve))}),de}function bn(h){return Be(h)?Re(h):{}}function _n(h,x,F){var Z=x(h);return kt(h)?Z:X(Z,F(h))}function On(h){return le.call(h)}function En(h){if(!Be(h)||In(h))return!1;var x=St(h)||fe(h)?Te:W;return x.test(xe(h))}function An(h){if(!Ht(h))return Mt(h);var x=[];for(var F in Object(h))oe.call(h,F)&&F!="constructor"&&x.push(F);return x}function ut(h,x){if(x)return h.slice();var F=new h.constructor(h.length);return h.copy(F),F}function wt(h){var x=new h.constructor(h.byteLength);return new We(x).set(new We(h)),x}function Je(h,x){var F=x?wt(h.buffer):h.buffer;return new h.constructor(F,h.byteOffset,h.byteLength)}function Ft(h,x,F){var Z=x?F(ce(h),!0):ce(h);return te(Z,C,new h.constructor)}function Ut(h){var x=new h.constructor(h.source,K.exec(h));return x.lastIndex=h.lastIndex,x}function wn(h,x,F){var Z=x?F(ge(h),!0):ge(h);return te(Z,$,new h.constructor)}function Tn(h){return Dt?Object(Dt.call(h)):{}}function kn(h,x){var F=x?wt(h.buffer):h.buffer;return new h.constructor(F,h.byteOffset,h.length)}function Sn(h,x){var F=-1,Z=h.length;for(x||(x=Array(Z));++F<Z;)x[F]=h[F];return x}function Tt(h,x,F,Z){F||(F={});for(var se=-1,re=x.length;++se<re;){var ve=x[se],de=void 0;Ct(F,ve,de===void 0?h[ve]:de)}return F}function Nn(h,x){return Tt(h,He(h),x)}function xn(h){return _n(h,Nt,He)}function et(h,x){var F=h.__data__;return qn(x)?F[typeof x=="string"?"string":"hash"]:F.map}function Ie(h,x){var F=ae(h,x);return En(F)?F:void 0}var He=yt?me(yt,Object):Mn,ze=On;(it&&ze(new it(new ArrayBuffer(1)))!=E||Ye&&ze(new Ye)!=e||qe&&ze(qe.resolve())!=s||ot&&ze(new ot)!=o||gt&&ze(new gt)!=n)&&(ze=function(h){var x=le.call(h),F=x==c?h.constructor:void 0,Z=F?xe(F):void 0;if(Z)switch(Z){case mt:return E;case Qe:return e;case bt:return s;case _t:return o;case Ot:return n}return x});function Pn(h){var x=h.length,F=h.constructor(x);return x&&typeof h[0]=="string"&&oe.call(h,"index")&&(F.index=h.index,F.input=h.input),F}function De(h){return typeof h.constructor=="function"&&!Ht(h)?bn(he(h)):{}}function Ln(h,x,F,Z){var se=h.constructor;switch(x){case l:return wt(h);case T:case y:return new se(+h);case E:return Je(h,Z);case O:case b:case k:case m:case d:case g:case A:case L:case M:return kn(h,Z);case e:return Ft(h,Z,F);case t:case a:return new se(h);case f:return Ut(h);case o:return wn(h,Z,F);case r:return Tn(h)}}function Rn(h,x){return x=x??p,!!x&&(typeof h=="number"||U.test(h))&&h>-1&&h%1==0&&h<x}function qn(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function In(h){return!!Q&&Q in h}function Ht(h){var x=h&&h.constructor,F=typeof x=="function"&&x.prototype||ee;return h===F}function xe(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function zt(h){return At(h,!0,!0)}function Kt(h,x){return h===x||h!==h&&x!==x}function st(h){return jn(h)&&oe.call(h,"callee")&&(!jt.call(h,"callee")||le.call(h)==N)}var kt=Array.isArray;function ft(h){return h!=null&&Gt(h.length)&&!St(h)}function jn(h){return Vt(h)&&ft(h)}var $t=rt||Dn;function St(h){var x=Be(h)?le.call(h):"";return x==u||x==i}function Gt(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=p}function Be(h){var x=typeof h;return!!h&&(x=="object"||x=="function")}function Vt(h){return!!h&&typeof h=="object"}function Nt(h){return ft(h)?at(h):An(h)}function Mn(){return[]}function Dn(){return!1}z.exports=zt}(Lt,Lt.exports)),Lt.exports}var Rt={exports:{}};Rt.exports;var er;function Er(){return er||(er=1,function(z,J){var I=200,_="__lodash_hash_undefined__",p=1,N=2,S=9007199254740991,T="[object Arguments]",y="[object Array]",v="[object AsyncFunction]",u="[object Boolean]",i="[object Date]",e="[object Error]",t="[object Function]",c="[object GeneratorFunction]",s="[object Map]",f="[object Number]",o="[object Null]",a="[object Object]",r="[object Promise]",n="[object Proxy]",l="[object RegExp]",E="[object Set]",O="[object String]",b="[object Symbol]",k="[object Undefined]",m="[object WeakMap]",d="[object ArrayBuffer]",g="[object DataView]",A="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",H="[object Int16Array]",K="[object Int32Array]",W="[object Uint8Array]",U="[object Uint8ClampedArray]",R="[object Uint16Array]",w="[object Uint32Array]",q=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,D={};D[A]=D[L]=D[M]=D[H]=D[K]=D[W]=D[U]=D[R]=D[w]=!0,D[T]=D[y]=D[d]=D[u]=D[g]=D[i]=D[e]=D[t]=D[s]=D[f]=D[a]=D[l]=D[E]=D[O]=D[m]=!1;var P=typeof Ze=="object"&&Ze&&Ze.Object===Object&&Ze,C=typeof self=="object"&&self&&self.Object===Object&&self,$=P||C||Function("return this")(),G=J&&!J.nodeType&&J,X=G&&!0&&z&&!z.nodeType&&z,te=X&&X.exports===G,ie=te&&P.process,ae=function(){try{return ie&&ie.binding&&ie.binding("util")}catch{}}(),fe=ae&&ae.isTypedArray;function ce(h,x){for(var F=-1,Z=h==null?0:h.length,se=0,re=[];++F<Z;){var ve=h[F];x(ve,F,h)&&(re[se++]=ve)}return re}function me(h,x){for(var F=-1,Z=x.length,se=h.length;++F<Z;)h[se+F]=x[F];return h}function ge(h,x){for(var F=-1,Z=h==null?0:h.length;++F<Z;)if(x(h[F],F,h))return!0;return!1}function V(h,x){for(var F=-1,Z=Array(h);++F<h;)Z[F]=x(F);return Z}function Y(h){return function(x){return h(x)}}function ee(h,x){return h.has(x)}function ne(h,x){return h==null?void 0:h[x]}function Q(h){var x=-1,F=Array(h.size);return h.forEach(function(Z,se){F[++x]=[se,Z]}),F}function ue(h,x){return function(F){return h(x(F))}}function oe(h){var x=-1,F=Array(h.size);return h.forEach(function(Z){F[++x]=Z}),F}var le=Array.prototype,Te=Function.prototype,Ee=Object.prototype,pe=$["__core-js_shared__"],We=Te.toString,he=Ee.hasOwnProperty,Re=function(){var h=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),jt=Ee.toString,Jt=RegExp("^"+We.call(he).replace(q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=te?$.Buffer:void 0,rt=$.Symbol,Mt=$.Uint8Array,it=Ee.propertyIsEnumerable,Ye=le.splice,qe=rt?rt.toStringTag:void 0,ot=Object.getOwnPropertySymbols,gt=yt?yt.isBuffer:void 0,Xe=ue(Object.keys,Object),mt=He($,"DataView"),Qe=He($,"Map"),bt=He($,"Promise"),_t=He($,"Set"),Ot=He($,"WeakMap"),$e=He(Object,"create"),Dt=xe(mt),Ue=xe(Qe),en=xe(bt),tn=xe(_t),nn=xe(Ot),Bt=rt?rt.prototype:void 0,Et=Bt?Bt.valueOf:void 0;function Ae(h){var x=-1,F=h==null?0:h.length;for(this.clear();++x<F;){var Z=h[x];this.set(Z[0],Z[1])}}function rn(){this.__data__=$e?$e(null):{},this.size=0}function on(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function an(h){var x=this.__data__;if($e){var F=x[h];return F===_?void 0:F}return he.call(x,h)?x[h]:void 0}function ln(h){var x=this.__data__;return $e?x[h]!==void 0:he.call(x,h)}function un(h,x){var F=this.__data__;return this.size+=this.has(h)?0:1,F[h]=$e&&x===void 0?_:x,this}Ae.prototype.clear=rn,Ae.prototype.delete=on,Ae.prototype.get=an,Ae.prototype.has=ln,Ae.prototype.set=un;function ke(h){var x=-1,F=h==null?0:h.length;for(this.clear();++x<F;){var Z=h[x];this.set(Z[0],Z[1])}}function sn(){this.__data__=[],this.size=0}function fn(h){var x=this.__data__,F=ut(x,h);if(F<0)return!1;var Z=x.length-1;return F==Z?x.pop():Ye.call(x,F,1),--this.size,!0}function cn(h){var x=this.__data__,F=ut(x,h);return F<0?void 0:x[F][1]}function hn(h){return ut(this.__data__,h)>-1}function dn(h,x){var F=this.__data__,Z=ut(F,h);return Z<0?(++this.size,F.push([h,x])):F[Z][1]=x,this}ke.prototype.clear=sn,ke.prototype.delete=fn,ke.prototype.get=cn,ke.prototype.has=hn,ke.prototype.set=dn;function Pe(h){var x=-1,F=h==null?0:h.length;for(this.clear();++x<F;){var Z=h[x];this.set(Z[0],Z[1])}}function vn(){this.size=0,this.__data__={hash:new Ae,map:new(Qe||ke),string:new Ae}}function pn(h){var x=Ie(this,h).delete(h);return this.size-=x?1:0,x}function yn(h){return Ie(this,h).get(h)}function gn(h){return Ie(this,h).has(h)}function mn(h,x){var F=Ie(this,h),Z=F.size;return F.set(h,x),this.size+=F.size==Z?0:1,this}Pe.prototype.clear=vn,Pe.prototype.delete=pn,Pe.prototype.get=yn,Pe.prototype.has=gn,Pe.prototype.set=mn;function at(h){var x=-1,F=h==null?0:h.length;for(this.__data__=new Pe;++x<F;)this.add(h[x])}function Ct(h){return this.__data__.set(h,_),this}function lt(h){return this.__data__.has(h)}at.prototype.add=at.prototype.push=Ct,at.prototype.has=lt;function Me(h){var x=this.__data__=new ke(h);this.size=x.size}function At(){this.__data__=new ke,this.size=0}function bn(h){var x=this.__data__,F=x.delete(h);return this.size=x.size,F}function _n(h){return this.__data__.get(h)}function On(h){return this.__data__.has(h)}function En(h,x){var F=this.__data__;if(F instanceof ke){var Z=F.__data__;if(!Qe||Z.length<I-1)return Z.push([h,x]),this.size=++F.size,this;F=this.__data__=new Pe(Z)}return F.set(h,x),this.size=F.size,this}Me.prototype.clear=At,Me.prototype.delete=bn,Me.prototype.get=_n,Me.prototype.has=On,Me.prototype.set=En;function An(h,x){var F=st(h),Z=!F&&Kt(h),se=!F&&!Z&&ft(h),re=!F&&!Z&&!se&&Vt(h),ve=F||Z||se||re,de=ve?V(h.length,String):[],be=de.length;for(var ye in h)he.call(h,ye)&&!(ve&&(ye=="length"||se&&(ye=="offset"||ye=="parent")||re&&(ye=="buffer"||ye=="byteLength"||ye=="byteOffset")||Ln(ye,be)))&&de.push(ye);return de}function ut(h,x){for(var F=h.length;F--;)if(zt(h[F][0],x))return F;return-1}function wt(h,x,F){var Z=x(h);return st(h)?Z:me(Z,F(h))}function Je(h){return h==null?h===void 0?k:o:qe&&qe in Object(h)?ze(h):Ht(h)}function Ft(h){return Be(h)&&Je(h)==T}function Ut(h,x,F,Z,se){return h===x?!0:h==null||x==null||!Be(h)&&!Be(x)?h!==h&&x!==x:wn(h,x,F,Z,Ut,se)}function wn(h,x,F,Z,se,re){var ve=st(h),de=st(x),be=ve?y:De(h),ye=de?y:De(x);be=be==T?a:be,ye=ye==T?a:ye;var Se=be==a,Le=ye==a,_e=be==ye;if(_e&&ft(h)){if(!ft(x))return!1;ve=!0,Se=!1}if(_e&&!Se)return re||(re=new Me),ve||Vt(h)?Tt(h,x,F,Z,se,re):Nn(h,x,be,F,Z,se,re);if(!(F&p)){var Ne=Se&&he.call(h,"__wrapped__"),we=Le&&he.call(x,"__wrapped__");if(Ne||we){var Ge=Ne?h.value():h,Ke=we?x.value():x;return re||(re=new Me),se(Ge,Ke,F,Z,re)}}return _e?(re||(re=new Me),xn(h,x,F,Z,se,re)):!1}function Tn(h){if(!Gt(h)||qn(h))return!1;var x=$t(h)?Jt:j;return x.test(xe(h))}function kn(h){return Be(h)&&St(h.length)&&!!D[Je(h)]}function Sn(h){if(!In(h))return Xe(h);var x=[];for(var F in Object(h))he.call(h,F)&&F!="constructor"&&x.push(F);return x}function Tt(h,x,F,Z,se,re){var ve=F&p,de=h.length,be=x.length;if(de!=be&&!(ve&&be>de))return!1;var ye=re.get(h);if(ye&&re.get(x))return ye==x;var Se=-1,Le=!0,_e=F&N?new at:void 0;for(re.set(h,x),re.set(x,h);++Se<de;){var Ne=h[Se],we=x[Se];if(Z)var Ge=ve?Z(we,Ne,Se,x,h,re):Z(Ne,we,Se,h,x,re);if(Ge!==void 0){if(Ge)continue;Le=!1;break}if(_e){if(!ge(x,function(Ke,tt){if(!ee(_e,tt)&&(Ne===Ke||se(Ne,Ke,F,Z,re)))return _e.push(tt)})){Le=!1;break}}else if(!(Ne===we||se(Ne,we,F,Z,re))){Le=!1;break}}return re.delete(h),re.delete(x),Le}function Nn(h,x,F,Z,se,re,ve){switch(F){case g:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case d:return!(h.byteLength!=x.byteLength||!re(new Mt(h),new Mt(x)));case u:case i:case f:return zt(+h,+x);case e:return h.name==x.name&&h.message==x.message;case l:case O:return h==x+"";case s:var de=Q;case E:var be=Z&p;if(de||(de=oe),h.size!=x.size&&!be)return!1;var ye=ve.get(h);if(ye)return ye==x;Z|=N,ve.set(h,x);var Se=Tt(de(h),de(x),Z,se,re,ve);return ve.delete(h),Se;case b:if(Et)return Et.call(h)==Et.call(x)}return!1}function xn(h,x,F,Z,se,re){var ve=F&p,de=et(h),be=de.length,ye=et(x),Se=ye.length;if(be!=Se&&!ve)return!1;for(var Le=be;Le--;){var _e=de[Le];if(!(ve?_e in x:he.call(x,_e)))return!1}var Ne=re.get(h);if(Ne&&re.get(x))return Ne==x;var we=!0;re.set(h,x),re.set(x,h);for(var Ge=ve;++Le<be;){_e=de[Le];var Ke=h[_e],tt=x[_e];if(Z)var Gn=ve?Z(tt,Ke,_e,x,h,re):Z(Ke,tt,_e,h,x,re);if(!(Gn===void 0?Ke===tt||se(Ke,tt,F,Z,re):Gn)){we=!1;break}Ge||(Ge=_e=="constructor")}if(we&&!Ge){var Zt=h.constructor,Wt=x.constructor;Zt!=Wt&&"constructor"in h&&"constructor"in x&&!(typeof Zt=="function"&&Zt instanceof Zt&&typeof Wt=="function"&&Wt instanceof Wt)&&(we=!1)}return re.delete(h),re.delete(x),we}function et(h){return wt(h,Nt,Pn)}function Ie(h,x){var F=h.__data__;return Rn(x)?F[typeof x=="string"?"string":"hash"]:F.map}function He(h,x){var F=ne(h,x);return Tn(F)?F:void 0}function ze(h){var x=he.call(h,qe),F=h[qe];try{h[qe]=void 0;var Z=!0}catch{}var se=jt.call(h);return Z&&(x?h[qe]=F:delete h[qe]),se}var Pn=ot?function(h){return h==null?[]:(h=Object(h),ce(ot(h),function(x){return it.call(h,x)}))}:Mn,De=Je;(mt&&De(new mt(new ArrayBuffer(1)))!=g||Qe&&De(new Qe)!=s||bt&&De(bt.resolve())!=r||_t&&De(new _t)!=E||Ot&&De(new Ot)!=m)&&(De=function(h){var x=Je(h),F=x==a?h.constructor:void 0,Z=F?xe(F):"";if(Z)switch(Z){case Dt:return g;case Ue:return s;case en:return r;case tn:return E;case nn:return m}return x});function Ln(h,x){return x=x??S,!!x&&(typeof h=="number"||B.test(h))&&h>-1&&h%1==0&&h<x}function Rn(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function qn(h){return!!Re&&Re in h}function In(h){var x=h&&h.constructor,F=typeof x=="function"&&x.prototype||Ee;return h===F}function Ht(h){return jt.call(h)}function xe(h){if(h!=null){try{return We.call(h)}catch{}try{return h+""}catch{}}return""}function zt(h,x){return h===x||h!==h&&x!==x}var Kt=Ft(function(){return arguments}())?Ft:function(h){return Be(h)&&he.call(h,"callee")&&!it.call(h,"callee")},st=Array.isArray;function kt(h){return h!=null&&St(h.length)&&!$t(h)}var ft=gt||Dn;function jn(h,x){return Ut(h,x)}function $t(h){if(!Gt(h))return!1;var x=Je(h);return x==t||x==c||x==v||x==n}function St(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=S}function Gt(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function Be(h){return h!=null&&typeof h=="object"}var Vt=fe?Y(fe):kn;function Nt(h){return kt(h)?An(h):Sn(h)}function Mn(){return[]}function Dn(){return!1}z.exports=jn}(Rt,Rt.exports)),Rt.exports}var ct={},tr;function Oi(){if(tr)return ct;tr=1;var z=ct&&ct.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(ct,"__esModule",{value:!0});var J=z(Or()),I=z(Er()),_;return function(p){function N(v,u,i){v===void 0&&(v={}),u===void 0&&(u={}),typeof v!="object"&&(v={}),typeof u!="object"&&(u={});var e=J.default(u);i||(e=Object.keys(e).reduce(function(c,s){return e[s]!=null&&(c[s]=e[s]),c},{}));for(var t in v)v[t]!==void 0&&u[t]===void 0&&(e[t]=v[t]);return Object.keys(e).length>0?e:void 0}p.compose=N;function S(v,u){v===void 0&&(v={}),u===void 0&&(u={}),typeof v!="object"&&(v={}),typeof u!="object"&&(u={});var i=Object.keys(v).concat(Object.keys(u)).reduce(function(e,t){return I.default(v[t],u[t])||(e[t]=u[t]===void 0?null:u[t]),e},{});return Object.keys(i).length>0?i:void 0}p.diff=S;function T(v,u){v===void 0&&(v={}),u===void 0&&(u={}),v=v||{};var i=Object.keys(u).reduce(function(e,t){return u[t]!==v[t]&&v[t]!==void 0&&(e[t]=u[t]),e},{});return Object.keys(v).reduce(function(e,t){return v[t]!==u[t]&&u[t]===void 0&&(e[t]=null),e},i)}p.invert=T;function y(v,u,i){if(i===void 0&&(i=!1),typeof v!="object")return u;if(typeof u=="object"){if(!i)return u;var e=Object.keys(u).reduce(function(t,c){return v[c]===void 0&&(t[c]=u[c]),t},{});return Object.keys(e).length>0?e:void 0}}p.transform=y}(_||(_={})),ct.default=_,ct}var ht={},dt={},nr;function Ei(){if(nr)return dt;nr=1;var z=dt&&dt.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(dt,"__esModule",{value:!0});var J=z(Ar()),I=function(){function _(p){this.ops=p,this.index=0,this.offset=0}return _.prototype.hasNext=function(){return this.peekLength()<1/0},_.prototype.next=function(p){p||(p=1/0);var N=this.ops[this.index];if(N){var S=this.offset,T=J.default.length(N);if(p>=T-S?(p=T-S,this.index+=1,this.offset=0):this.offset+=p,typeof N.delete=="number")return{delete:p};var y={};return N.attributes&&(y.attributes=N.attributes),typeof N.retain=="number"?y.retain=p:typeof N.insert=="string"?y.insert=N.insert.substr(S,p):y.insert=N.insert,y}else return{retain:1/0}},_.prototype.peek=function(){return this.ops[this.index]},_.prototype.peekLength=function(){return this.ops[this.index]?J.default.length(this.ops[this.index])-this.offset:1/0},_.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"},_.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var p=this.offset,N=this.index,S=this.next(),T=this.ops.slice(this.index);return this.offset=p,this.index=N,[S].concat(T)}else return[]},_}();return dt.default=I,dt}var rr;function Ar(){if(rr)return ht;rr=1;var z=ht&&ht.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(ht,"__esModule",{value:!0});var J=z(Ei()),I;return function(_){function p(S){return new J.default(S)}_.iterator=p;function N(S){return typeof S.delete=="number"?S.delete:typeof S.retain=="number"?S.retain:typeof S.insert=="string"?S.insert.length:1}_.length=N}(I||(I={})),ht.default=I,ht}var Pt,ir;function Ai(){if(ir)return Pt;ir=1;var z=Pt&&Pt.__importDefault||function(y){return y&&y.__esModule?y:{default:y}},J=z(_i()),I=z(Or()),_=z(Er()),p=z(Oi()),N=z(Ar()),S="\0",T=function(){function y(v){Array.isArray(v)?this.ops=v:v!=null&&Array.isArray(v.ops)?this.ops=v.ops:this.ops=[]}return y.prototype.insert=function(v,u){var i={};return typeof v=="string"&&v.length===0?this:(i.insert=v,u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(i.attributes=u),this.push(i))},y.prototype.delete=function(v){return v<=0?this:this.push({delete:v})},y.prototype.retain=function(v,u){if(v<=0)return this;var i={retain:v};return u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(i.attributes=u),this.push(i)},y.prototype.push=function(v){var u=this.ops.length,i=this.ops[u-1];if(v=I.default(v),typeof i=="object"){if(typeof v.delete=="number"&&typeof i.delete=="number")return this.ops[u-1]={delete:i.delete+v.delete},this;if(typeof i.delete=="number"&&v.insert!=null&&(u-=1,i=this.ops[u-1],typeof i!="object"))return this.ops.unshift(v),this;if(_.default(v.attributes,i.attributes)){if(typeof v.insert=="string"&&typeof i.insert=="string")return this.ops[u-1]={insert:i.insert+v.insert},typeof v.attributes=="object"&&(this.ops[u-1].attributes=v.attributes),this;if(typeof v.retain=="number"&&typeof i.retain=="number")return this.ops[u-1]={retain:i.retain+v.retain},typeof v.attributes=="object"&&(this.ops[u-1].attributes=v.attributes),this}}return u===this.ops.length?this.ops.push(v):this.ops.splice(u,0,v),this},y.prototype.chop=function(){var v=this.ops[this.ops.length-1];return v&&v.retain&&!v.attributes&&this.ops.pop(),this},y.prototype.filter=function(v){return this.ops.filter(v)},y.prototype.forEach=function(v){this.ops.forEach(v)},y.prototype.map=function(v){return this.ops.map(v)},y.prototype.partition=function(v){var u=[],i=[];return this.forEach(function(e){var t=v(e)?u:i;t.push(e)}),[u,i]},y.prototype.reduce=function(v,u){return this.ops.reduce(v,u)},y.prototype.changeLength=function(){return this.reduce(function(v,u){return u.insert?v+N.default.length(u):u.delete?v-u.delete:v},0)},y.prototype.length=function(){return this.reduce(function(v,u){return v+N.default.length(u)},0)},y.prototype.slice=function(v,u){v===void 0&&(v=0),u===void 0&&(u=1/0);for(var i=[],e=N.default.iterator(this.ops),t=0;t<u&&e.hasNext();){var c=void 0;t<v?c=e.next(v-t):(c=e.next(u-t),i.push(c)),t+=N.default.length(c)}return new y(i)},y.prototype.compose=function(v){var u=N.default.iterator(this.ops),i=N.default.iterator(v.ops),e=[],t=i.peek();if(t!=null&&typeof t.retain=="number"&&t.attributes==null){for(var c=t.retain;u.peekType()==="insert"&&u.peekLength()<=c;)c-=u.peekLength(),e.push(u.next());t.retain-c>0&&i.next(t.retain-c)}for(var s=new y(e);u.hasNext()||i.hasNext();)if(i.peekType()==="insert")s.push(i.next());else if(u.peekType()==="delete")s.push(u.next());else{var f=Math.min(u.peekLength(),i.peekLength()),o=u.next(f),a=i.next(f);if(typeof a.retain=="number"){var r={};typeof o.retain=="number"?r.retain=f:r.insert=o.insert;var n=p.default.compose(o.attributes,a.attributes,typeof o.retain=="number");if(n&&(r.attributes=n),s.push(r),!i.hasNext()&&_.default(s.ops[s.ops.length-1],r)){var l=new y(u.rest());return s.concat(l).chop()}}else typeof a.delete=="number"&&typeof o.retain=="number"&&s.push(a)}return s.chop()},y.prototype.concat=function(v){var u=new y(this.ops.slice());return v.ops.length>0&&(u.push(v.ops[0]),u.ops=u.ops.concat(v.ops.slice(1))),u},y.prototype.diff=function(v,u){if(this.ops===v.ops)return new y;var i=[this,v].map(function(f){return f.map(function(o){if(o.insert!=null)return typeof o.insert=="string"?o.insert:S;var a=f===v?"on":"with";throw new Error("diff() called "+a+" non-document")}).join("")}),e=new y,t=J.default(i[0],i[1],u),c=N.default.iterator(this.ops),s=N.default.iterator(v.ops);return t.forEach(function(f){for(var o=f[1].length;o>0;){var a=0;switch(f[0]){case J.default.INSERT:a=Math.min(s.peekLength(),o),e.push(s.next(a));break;case J.default.DELETE:a=Math.min(o,c.peekLength()),c.next(a),e.delete(a);break;case J.default.EQUAL:a=Math.min(c.peekLength(),s.peekLength(),o);var r=c.next(a),n=s.next(a);_.default(r.insert,n.insert)?e.retain(a,p.default.diff(r.attributes,n.attributes)):e.push(n).delete(a);break}o-=a}}),e.chop()},y.prototype.eachLine=function(v,u){u===void 0&&(u=` `);for(var i=N.default.iterator(this.ops),e=new y,t=0;i.hasNext();){if(i.peekType()!=="insert")return;var c=i.peek(),s=N.default.length(c)-i.peekLength(),f=typeof c.insert=="string"?c.insert.indexOf(u,s)-s:-1;if(f<0)e.push(i.next());else if(f>0)e.push(i.next(f));else{if(v(e,i.next(1).attributes||{},t)===!1)return;t+=1,e=new y}}e.length()>0&&v(e,{},t)},y.prototype.invert=function(v){var u=new y;return this.reduce(function(i,e){if(e.insert)u.delete(N.default.length(e));else{if(e.retain&&e.attributes==null)return u.retain(e.retain),i+e.retain;if(e.delete||e.retain&&e.attributes){var t=e.delete||e.retain,c=v.slice(i,i+t);return c.forEach(function(s){e.delete?u.push(s):e.retain&&e.attributes&&u.retain(N.default.length(s),p.default.invert(e.attributes,s.attributes))}),i+t}}return i},0),u.chop()},y.prototype.transform=function(v,u){if(u===void 0&&(u=!1),u=!!u,typeof v=="number")return this.transformPosition(v,u);for(var i=v,e=N.default.iterator(this.ops),t=N.default.iterator(i.ops),c=new y;e.hasNext()||t.hasNext();)if(e.peekType()==="insert"&&(u||t.peekType()!=="insert"))c.retain(N.default.length(e.next()));else if(t.peekType()==="insert")c.push(t.next());else{var s=Math.min(e.peekLength(),t.peekLength()),f=e.next(s),o=t.next(s);if(f.delete)continue;o.delete?c.push(o):c.retain(s,p.default.transform(f.attributes,o.attributes,u))}return c.chop()},y.prototype.transformPosition=function(v,u){u===void 0&&(u=!1),u=!!u;for(var i=N.default.iterator(this.ops),e=0;i.hasNext()&&e<=v;){var t=i.peekLength(),c=i.peekType();if(i.next(),c==="delete"){v-=Math.min(t,v-e);continue}else c==="insert"&&(e<v||!u)&&(v+=t);e+=t}return v},y.Op=N.default,y.AttributeMap=p.default,y}();return Pt=T,Pt}var wi=Ai();const Ti=sr(wi);/*! * VueQuill @vueup/vue-quill v1.2.0 * https://vueup.github.io/vue-quill/ * * Includes quill v1.3.7 * https://quilljs.com/ * * Copyright (c) 2023 Ahmad Luthfi Masruri * Released under the MIT license * Date: 2023-05-12T08:44:03.742Z */const or={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},Ii=pt({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:z=>["delta","html","text"].includes(z)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:z=>["snow","bubble",""].includes(z)},toolbar:{type:[String,Array,Object],required:!1,validator:z=>typeof z=="string"&&z!==""?z.charAt(0)==="#"?!0:Object.keys(or).indexOf(z)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(z,J)=>{ur(()=>{N()}),ar(()=>{I=null});let I,_;const p=je(),N=()=>{var d;if(p.value){if(_=S(),z.modules)if(Array.isArray(z.modules))for(const g of z.modules)Fn.register(`modules/${g.name}`,g.module);else Fn.register(`modules/${z.modules.name}`,z.modules.module);I=new Fn(p.value,_),r(z.content),I.on("text-change",i),I.on("selection-change",t),I.on("editor-change",c),z.theme!=="bubble"&&p.value.classList.remove("ql-bubble"),z.theme!=="snow"&&p.value.classList.remove("ql-snow"),(d=I.getModule("toolbar"))===null||d===void 0||d.container.addEventListener("mousedown",g=>{g.preventDefault()}),J.emit("ready",I)}},S=()=>{const d={};if(z.theme!==""&&(d.theme=z.theme),z.readOnly&&(d.readOnly=z.readOnly),z.placeholder&&(d.placeholder=z.placeholder),z.toolbar&&z.toolbar!==""&&(d.modules={toolbar:(()=>{if(typeof z.toolbar=="object")return z.toolbar;if(typeof z.toolbar=="string")return z.toolbar.charAt(0)==="#"?z.toolbar:or[z.toolbar]})()}),z.modules){const g=(()=>{var A,L;const M={};if(Array.isArray(z.modules))for(const H of z.modules)M[H.name]=(A=H.options)!==null&&A!==void 0?A:{};else M[z.modules.name]=(L=z.modules.options)!==null&&L!==void 0?L:{};return M})();d.modules=Object.assign({},d.modules,g)}return Object.assign({},z.globalOptions,z.options,d)},T=d=>typeof d=="object"&&d?d.slice():d,y=d=>Object.values(d.ops).some(g=>!g.retain||Object.keys(g).length!==1);let v;const u=d=>{if(typeof v==typeof d){if(d===v)return!0;if(typeof d=="object"&&d&&typeof v=="object"&&v)return!y(v.diff(d))}return!1},i=(d,g,A)=>{v=T(a()),u(z.content)||J.emit("update:content",v),J.emit("textChange",{delta:d,oldContents:g,source:A})},e=je(),t=(d,g,A)=>{e.value=!!(I!=null&&I.hasFocus()),J.emit("selectionChange",{range:d,oldRange:g,source:A})};Fe(e,d=>{d?J.emit("focus",p):J.emit("blur",p)});const c=(...d)=>{d[0]==="text-change"&&J.emit("editorChange",{name:d[0],delta:d[1],oldContents:d[2],source:d[3]}),d[0]==="selection-change"&&J.emit("editorChange",{name:d[0],range:d[1],oldRange:d[2],source:d[3]})},s=()=>p.value,f=()=>{var d;return(d=I==null?void 0:I.getModule("toolbar"))===null||d===void 0?void 0:d.container},o=()=>{if(I)return I;throw`The quill editor hasn't been instantiated yet, make sure to call this method when the editor ready or use v-on:ready="onReady(quill)" event instead.`},a=(d,g)=>z.contentType==="html"?E():z.contentType==="text"?n(d,g):I==null?void 0:I.getContents(d,g),r=(d,g="api")=>{const A=d||(z.contentType==="delta"?new Ti:"");z.contentType==="html"?O(A):z.contentType==="text"?l(A,g):I==null||I.setContents(A,g),v=T(A)},n=(d,g)=>{var A;return(A=I==null?void 0:I.getText(d,g))!==null&&A!==void 0?A:""},l=(d,g="api")=>{I==null||I.setText(d,g)},E=()=>{var d;return(d=I==null?void 0:I.root.innerHTML)!==null&&d!==void 0?d:""},O=d=>{I&&(I.root.innerHTML=d)},b=(d,g="api")=>{const A=I==null?void 0:I.clipboard.convert(d);A&&(I==null||I.setContents(A,g))},k=()=>{I==null||I.focus()},m=()=>{Ve(()=>{var d;!J.slots.toolbar&&I&&((d=I.getModule("toolbar"))===null||d===void 0||d.container.remove()),N()})};return Fe(()=>z.content,d=>{if(!I||!d||u(d))return;const g=I.getSelection();g&&Ve(()=>I==null?void 0:I.setSelection(g)),r(d)},{deep:!0}),Fe(()=>z.enable,d=>{I&&I.enable(d)}),{editor:p,getEditor:s,getToolbar:f,getQuill:o,getContents:a,setContents:r,getHTML:E,setHTML:O,pasteHTML:b,focus:k,getText:n,setText:l,reinit:m}},render(){var z,J;return[(J=(z=this.$slots).toolbar)===null||J===void 0?void 0:J.call(z),Rr("div",{ref:"editor",...this.$attrs})]}});export{Ii as Q,qi as T,Ri as a};
Copyright ©2k19 -
Hexid
|
Tex7ure