Files
houyi-admin/dist/2796.57692888.async.js
PC-202306242200\Administrator 23dc139a31 first commit
2026-03-28 23:25:01 +08:00

37 lines
232 KiB
JavaScript

(self.webpackChunk=self.webpackChunk||[]).push([[2796],{78033:function(vt,ht,X){"use strict";X.d(ht,{Z:function(){return w}});var ot=X(52319),q=X(93236),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},p=b,P=X(85651),k=function(m,c){return q.createElement(P.Z,(0,ot.Z)({},m,{ref:c,icon:p}))},w=q.forwardRef(k)},17675:function(vt,ht,X){"use strict";X.d(ht,{Z:function(){return w}});var ot=X(52319),q=X(93236),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},p=b,P=X(85651),k=function(m,c){return q.createElement(P.Z,(0,ot.Z)({},m,{ref:c,icon:p}))},w=q.forwardRef(k)},61786:function(vt,ht,X){"use strict";var ot=X(88351),q=X(87841),b=X(93236),p=X(8263),P=X(62086),k=["fieldProps","proFieldProps"],w=["fieldProps","proFieldProps"],y="text",m=function(t){var l=t.fieldProps,o=t.proFieldProps,a=(0,q.Z)(t,k);return(0,P.jsx)(p.Z,(0,ot.Z)({valueType:y,fieldProps:l,filedConfig:{valueType:y},proFieldProps:o},a))},c=function(t){var l=t.fieldProps,o=t.proFieldProps,a=(0,q.Z)(t,w);return(0,P.jsx)(p.Z,(0,ot.Z)({valueType:"password",fieldProps:l,proFieldProps:o,filedConfig:{valueType:y}},a))},u=m;u.Password=c,u.displayName="ProFormComponent",ht.Z=u},28931:function(vt,ht,X){"use strict";X.d(ht,{Y:function(){return i}});var ot=X(99177),q=X(42700),b=X(88351),p=X(67654),P=X(87841),k=X(29320),w=X(50126),y=X(92750),m=X(72266),c=X.n(m),u=X(71639),e=X(24599),t=X(93236),l=X(19103),o=X(96630),a=X(62086),r=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function i(s){var n,f,T,g,O=s.children,x=s.trigger,v=s.onVisibleChange,h=s.onOpenChange,d=s.modalProps,E=s.onFinish,N=s.submitTimeout,R=s.title,B=s.width,C=s.visible,$=s.open,I=(0,P.Z)(s,r);(0,e.ET)(!I.footer||!(d!=null&&d.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var L=(0,t.useContext)(w.ZP.ConfigContext),A=(0,t.useState)([]),S=(0,p.Z)(A,2),M=S[1],F=(0,t.useState)(!1),D=(0,p.Z)(F,2),_=D[0],j=D[1],H=(0,u.Z)(!!C,{value:$||C,onChange:h||v}),U=(0,p.Z)(H,2),W=U[0],Y=U[1],et=(0,t.useRef)(null),nt=(0,t.useCallback)(function(V){et.current===null&&V&&M([]),et.current=V},[]),rt=(0,t.useRef)(),at=(0,t.useCallback)(function(){var V,Z,J,Q=(V=(Z=I.form)!==null&&Z!==void 0?Z:(J=I.formRef)===null||J===void 0?void 0:J.current)!==null&&V!==void 0?V:rt.current;Q&&d!==null&&d!==void 0&&d.destroyOnClose&&Q.resetFields()},[d==null?void 0:d.destroyOnClose,I.form,I.formRef]);(0,t.useImperativeHandle)(I.formRef,function(){return rt.current},[rt.current]),(0,t.useEffect)(function(){W&&($||C)&&(h==null||h(!0),v==null||v(!0))},[C,$,W]);var ft=(0,t.useMemo)(function(){return x?t.cloneElement(x,(0,b.Z)((0,b.Z)({key:"trigger"},x.props),{},{onClick:function(){var V=(0,q.Z)((0,ot.Z)().mark(function J(Q){var tt,lt;return(0,ot.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:Y(!W),(tt=x.props)===null||tt===void 0||(lt=tt.onClick)===null||lt===void 0||lt.call(tt,Q);case 2:case"end":return it.stop()}},J)}));function Z(J){return V.apply(this,arguments)}return Z}()})):null},[Y,x,W]),st=(0,t.useMemo)(function(){var V,Z,J,Q,tt,lt,ct,it;return I.submitter===!1?!1:c()({searchConfig:{submitText:(V=(Z=d==null?void 0:d.okText)!==null&&Z!==void 0?Z:(J=L.locale)===null||J===void 0||(Q=J.Modal)===null||Q===void 0?void 0:Q.okText)!==null&&V!==void 0?V:"\u786E\u8BA4",resetText:(tt=(lt=d==null?void 0:d.cancelText)!==null&&lt!==void 0?lt:(ct=L.locale)===null||ct===void 0||(it=ct.Modal)===null||it===void 0?void 0:it.cancelText)!==null&&tt!==void 0?tt:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:N?_:void 0,onClick:function(ut){var dt;Y(!1),d==null||(dt=d.onCancel)===null||dt===void 0||dt.call(d,ut)}}},I.submitter)},[(n=L.locale)===null||n===void 0||(f=n.Modal)===null||f===void 0?void 0:f.cancelText,(T=L.locale)===null||T===void 0||(g=T.Modal)===null||g===void 0?void 0:g.okText,d,I.submitter,Y,_,N]),K=(0,t.useCallback)(function(V,Z){return(0,a.jsxs)(a.Fragment,{children:[V,et.current&&Z?(0,a.jsx)(t.Fragment,{children:(0,l.createPortal)(Z,et.current)},"submitter"):Z]})},[]),z=(0,t.useCallback)(function(){var V=(0,q.Z)((0,ot.Z)().mark(function Z(J){var Q,tt,lt;return(0,ot.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:return Q=E==null?void 0:E(J),N&&Q instanceof Promise&&(j(!0),tt=setTimeout(function(){return j(!1)},N),Q.finally(function(){clearTimeout(tt),j(!1)})),it.next=4,Q;case 4:return lt=it.sent,lt&&Y(!1),it.abrupt("return",lt);case 7:case"end":return it.stop()}},Z)}));return function(Z){return V.apply(this,arguments)}}(),[E,Y,N]),G=(0,k.X)(W);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.Z,(0,b.Z)((0,b.Z)((0,b.Z)({title:R,width:B||800},d),G),{},{onCancel:function(Z){var J;N&&_||(Y(!1),d==null||(J=d.onCancel)===null||J===void 0||J.call(d,Z))},afterClose:function(){var Z;at(),Y(!1),d==null||(Z=d.afterClose)===null||Z===void 0||Z.call(d)},footer:I.submitter!==!1?(0,a.jsx)("div",{ref:nt,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,a.jsx)(o.I,(0,b.Z)((0,b.Z)({formComponentType:"ModalForm",layout:"vertical"},I),{},{onInit:function(Z,J){var Q;I.formRef&&(I.formRef.current=J),I==null||(Q=I.onInit)===null||Q===void 0||Q.call(I,Z,J),rt.current=J},formRef:rt,submitter:st,onFinish:function(){var V=(0,q.Z)((0,ot.Z)().mark(function Z(J){var Q;return(0,ot.Z)().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return lt.next=2,z(J);case 2:return Q=lt.sent,lt.abrupt("return",Q);case 4:case"end":return lt.stop()}},Z)}));return function(Z){return V.apply(this,arguments)}}(),contentRender:K,children:O}))})),ft]})}},40882:function(vt,ht,X){"use strict";X.d(ht,{A:function(){return O}});var ot=X(88351),q=X(84974),b=X(93236),p=X(96630),P=X(5424),k=X(40749),w=X(67654),y=X(67817),m=X(71639),c=X(80128),u=X(50126),e=X(61385),t=X(84875),l=X.n(t),o=X(75986),a=X(16216),r=X(21983),i=function(v){var h;return(0,k.Z)({},v.componentCls,{"&-title":{marginBlockEnd:v.marginXL,fontWeight:"bold"},"&-container":(0,k.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(v.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(h={display:"block",width:"100%"},(0,k.Z)(h,"".concat(v.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,k.Z)(h,"".concat(v.componentCls,"-container"),{paddingInlineStart:16}),(0,k.Z)(h,"".concat(v.antCls,"-space-item,").concat(v.antCls,"-form-item"),{width:"100%"}),(0,k.Z)(h,"".concat(v.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),h)})};function s(x){return(0,r.Xj)("ProFormGroup",function(v){var h=(0,ot.Z)((0,ot.Z)({},v),{},{componentCls:".".concat(x)});return[i(h)]})}var n=X(62086),f=b.forwardRef(function(x,v){var h=b.useContext(o.Z),d=h.groupProps,E=(0,ot.Z)((0,ot.Z)({},d),x),N=E.children,R=E.collapsible,B=E.defaultCollapsed,C=E.style,$=E.labelLayout,I=E.title,L=I===void 0?x.label:I,A=E.tooltip,S=E.align,M=S===void 0?"start":S,F=E.direction,D=E.size,_=D===void 0?32:D,j=E.titleStyle,H=E.titleRender,U=E.spaceProps,W=E.extra,Y=E.autoFocus,et=(0,m.Z)(function(){return B||!1},{value:x.collapsed,onChange:x.onCollapse}),nt=(0,w.Z)(et,2),rt=nt[0],at=nt[1],ft=(0,b.useContext)(u.ZP.ConfigContext),st=ft.getPrefixCls,K=(0,a.zx)(x),z=K.ColWrapper,G=K.RowWrapper,V=st("pro-form-group"),Z=s(V),J=Z.wrapSSR,Q=Z.hashId,tt=R&&(0,n.jsx)(y.Z,{style:{marginInlineEnd:8},rotate:rt?void 0:90}),lt=(0,n.jsx)(c.G,{label:tt?(0,n.jsxs)("div",{children:[tt,L]}):L,tooltip:A}),ct=(0,b.useCallback)(function(yt){var mt=yt.children;return(0,n.jsx)(e.Z,(0,ot.Z)((0,ot.Z)({},U),{},{className:l()("".concat(V,"-container ").concat(Q),U==null?void 0:U.className),size:_,align:M,direction:F,style:(0,ot.Z)({rowGap:0},U==null?void 0:U.style),children:mt}))},[M,V,F,Q,_,U]),it=H?H(lt,x):lt,gt=(0,b.useMemo)(function(){var yt=[],mt=b.Children.toArray(N).map(function(pt,Et){var bt;return b.isValidElement(pt)&&pt!==null&&pt!==void 0&&(bt=pt.props)!==null&&bt!==void 0&&bt.hidden?(yt.push(pt),null):Et===0&&b.isValidElement(pt)&&Y?b.cloneElement(pt,(0,ot.Z)((0,ot.Z)({},pt.props),{},{autoFocus:Y})):pt});return[(0,n.jsx)(G,{Wrapper:ct,children:mt},"children"),yt.length>0?(0,n.jsx)("div",{style:{display:"none"},children:yt}):null]},[N,G,ct,Y]),ut=(0,w.Z)(gt,2),dt=ut[0],Ot=ut[1];return J((0,n.jsx)(z,{children:(0,n.jsxs)("div",{className:l()(V,Q,(0,k.Z)({},"".concat(V,"-twoLine"),$==="twoLine")),style:C,ref:v,children:[Ot,(L||A||W)&&(0,n.jsx)("div",{className:"".concat(V,"-title ").concat(Q).trim(),style:j,onClick:function(){at(!rt)},children:W?(0,n.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[it,(0,n.jsx)("span",{onClick:function(mt){return mt.stopPropagation()},children:W})]}):it}),(0,n.jsx)("div",{style:{display:R&&rt?"none":void 0},children:dt})]})}))});f.displayName="ProForm-Group";var T=f,g=X(9664);function O(x){return(0,n.jsx)(p.I,(0,ot.Z)({layout:"vertical",submitter:{render:function(h,d){return d.reverse()}},contentRender:function(h,d){return(0,n.jsxs)(n.Fragment,{children:[h,d]})}},x))}O.Group=T,O.useForm=q.Z.useForm,O.Item=g.Z,O.useWatch=q.Z.useWatch,O.ErrorList=q.Z.ErrorList,O.Provider=q.Z.Provider,O.useFormInstance=q.Z.useFormInstance,O.EditOrReadOnlyContext=P.A},80128:function(vt,ht,X){"use strict";X.d(ht,{G:function(){return i}});var ot=X(88351),q=X(40749),b=X(52319),p=X(93236),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},k=P,w=X(85651),y=function(n,f){return p.createElement(w.Z,(0,b.Z)({},n,{ref:f,icon:k}))},m=p.forwardRef(y),c=X(50126),u=X(87087),e=X(84875),t=X.n(e),l=X(21983),o=function(n){return(0,q.Z)({},n.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:n.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:n.colorTextSecondary,fontWeight:"normal",fontSize:n.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function a(s){return(0,l.Xj)("LabelIconTip",function(n){var f=(0,ot.Z)((0,ot.Z)({},n),{},{componentCls:".".concat(s)});return[o(f)]})}var r=X(62086),i=p.memo(function(s){var n=s.label,f=s.tooltip,T=s.ellipsis,g=s.subTitle,O=(0,p.useContext)(c.ZP.ConfigContext),x=O.getPrefixCls,v=x("pro-core-label-tip"),h=a(v),d=h.wrapSSR,E=h.hashId;if(!f&&!g)return(0,r.jsx)(r.Fragment,{children:n});var N=typeof f=="string"||p.isValidElement(f)?{title:f}:f,R=(N==null?void 0:N.icon)||(0,r.jsx)(m,{});return d((0,r.jsxs)("div",{className:t()(v,E),onMouseDown:function(C){return C.stopPropagation()},onMouseLeave:function(C){return C.stopPropagation()},onMouseMove:function(C){return C.stopPropagation()},children:[(0,r.jsx)("div",{className:t()("".concat(v,"-title"),E,(0,q.Z)({},"".concat(v,"-title-ellipsis"),T)),children:n}),g&&(0,r.jsx)("div",{className:"".concat(v,"-subtitle ").concat(E).trim(),children:g}),f&&(0,r.jsx)(u.Z,(0,ot.Z)((0,ot.Z)({},N),{},{children:(0,r.jsx)("span",{className:"".concat(v,"-icon ").concat(E).trim(),children:R})}))]}))})},23653:function(){"use strict"},31223:function(vt,ht,X){var ot=X(6620);function q(b,p){return ot(b,p)}vt.exports=q},82270:function(vt,ht,X){var ot=X(36379).lW;(function(b,p){vt.exports=p()})(typeof self!="undefined"?self:this,function(){return function(q){var b={};function p(P){if(b[P])return b[P].exports;var k=b[P]={i:P,l:!1,exports:{}};return q[P].call(k.exports,k,k.exports,p),k.l=!0,k.exports}return p.m=q,p.c=b,p.d=function(P,k,w){p.o(P,k)||Object.defineProperty(P,k,{configurable:!1,enumerable:!0,get:w})},p.n=function(P){var k=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(k,"a",k),k},p.o=function(P,k){return Object.prototype.hasOwnProperty.call(P,k)},p.p="",p(p.s=109)}([function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(17),k=p(18),w=p(19),y=p(45),m=p(46),c=p(47),u=p(48),e=p(49),t=p(12),l=p(32),o=p(33),a=p(31),r=p(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:k.default,Leaf:w.default,Embed:u.default,Scroll:y.default,Block:c.default,Inline:m.default,Text:e.default,Attributor:{Attribute:t.default,Class:l.default,Style:o.default,Store:a.default}};b.default=i},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])};return function(r,i){a(r,i);function s(){this.constructor=r}r.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=function(a){P(r,a);function r(i){var s=this;return i="[Parchment] "+i,s=a.call(this,i)||this,s.message=i,s.name=s.constructor.name,s}return r}(Error);b.ParchmentError=k;var w={},y={},m={},c={};b.DATA_KEY="__blot";var u;(function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"})(u=b.Scope||(b.Scope={}));function e(a,r){var i=l(a);if(i==null)throw new k("Unable to create "+a+" blot");var s=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:s.create(r);return new s(n,r)}b.create=e;function t(a,r){return r===void 0&&(r=!1),a==null?null:a[b.DATA_KEY]!=null?a[b.DATA_KEY].blot:r?t(a.parentNode,r):null}b.find=t;function l(a,r){r===void 0&&(r=u.ANY);var i;if(typeof a=="string")i=c[a]||w[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=c.text;else if(typeof a=="number")a&u.LEVEL&u.BLOCK?i=c.block:a&u.LEVEL&u.INLINE&&(i=c.inline);else if(a instanceof HTMLElement){var s=(a.getAttribute("class")||"").split(/\s+/);for(var n in s)if(i=y[s[n]],i)break;i=i||m[a.tagName]}return i==null?null:r&u.LEVEL&i.scope&&r&u.TYPE&i.scope?i:null}b.query=l;function o(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return o(n)});var i=a[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new k("Invalid definition");if(i.blotName==="abstract")throw new k("Cannot register abstract class");if(c[i.blotName||i.attrName]=i,typeof i.keyName=="string")w[i.keyName]=i;else if(i.className!=null&&(y[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var s=Array.isArray(i.tagName)?i.tagName:[i.tagName];s.forEach(function(n){(m[n]==null||i.className==null)&&(m[n]=i)})}return i}b.register=o},function(q,b,p){var P=p(51),k=p(11),w=p(3),y=p(20),m=String.fromCharCode(0),c=function(u){Array.isArray(u)?this.ops=u:u!=null&&Array.isArray(u.ops)?this.ops=u.ops:this.ops=[]};c.prototype.insert=function(u,e){var t={};return u.length===0?this:(t.insert=u,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},c.prototype.delete=function(u){return u<=0?this:this.push({delete:u})},c.prototype.retain=function(u,e){if(u<=0)return this;var t={retain:u};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},c.prototype.push=function(u){var e=this.ops.length,t=this.ops[e-1];if(u=w(!0,{},u),typeof t=="object"){if(typeof u.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+u.delete},this;if(typeof t.delete=="number"&&u.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(u),this;if(k(u.attributes,t.attributes)){if(typeof u.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+u.insert},typeof u.attributes=="object"&&(this.ops[e-1].attributes=u.attributes),this;if(typeof u.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+u.retain},typeof u.attributes=="object"&&(this.ops[e-1].attributes=u.attributes),this}}return e===this.ops.length?this.ops.push(u):this.ops.splice(e,0,u),this},c.prototype.chop=function(){var u=this.ops[this.ops.length-1];return u&&u.retain&&!u.attributes&&this.ops.pop(),this},c.prototype.filter=function(u){return this.ops.filter(u)},c.prototype.forEach=function(u){this.ops.forEach(u)},c.prototype.map=function(u){return this.ops.map(u)},c.prototype.partition=function(u){var e=[],t=[];return this.forEach(function(l){var o=u(l)?e:t;o.push(l)}),[e,t]},c.prototype.reduce=function(u,e){return this.ops.reduce(u,e)},c.prototype.changeLength=function(){return this.reduce(function(u,e){return e.insert?u+y.length(e):e.delete?u-e.delete:u},0)},c.prototype.length=function(){return this.reduce(function(u,e){return u+y.length(e)},0)},c.prototype.slice=function(u,e){u=u||0,typeof e!="number"&&(e=1/0);for(var t=[],l=y.iterator(this.ops),o=0;o<e&&l.hasNext();){var a;o<u?a=l.next(u-o):(a=l.next(e-o),t.push(a)),o+=y.length(a)}return new c(t)},c.prototype.compose=function(u){var e=y.iterator(this.ops),t=y.iterator(u.ops),l=[],o=t.peek();if(o!=null&&typeof o.retain=="number"&&o.attributes==null){for(var a=o.retain;e.peekType()==="insert"&&e.peekLength()<=a;)a-=e.peekLength(),l.push(e.next());o.retain-a>0&&t.next(o.retain-a)}for(var r=new c(l);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")r.push(t.next());else if(e.peekType()==="delete")r.push(e.next());else{var i=Math.min(e.peekLength(),t.peekLength()),s=e.next(i),n=t.next(i);if(typeof n.retain=="number"){var f={};typeof s.retain=="number"?f.retain=i:f.insert=s.insert;var T=y.attributes.compose(s.attributes,n.attributes,typeof s.retain=="number");if(T&&(f.attributes=T),r.push(f),!t.hasNext()&&k(r.ops[r.ops.length-1],f)){var g=new c(e.rest());return r.concat(g).chop()}}else typeof n.delete=="number"&&typeof s.retain=="number"&&r.push(n)}return r.chop()},c.prototype.concat=function(u){var e=new c(this.ops.slice());return u.ops.length>0&&(e.push(u.ops[0]),e.ops=e.ops.concat(u.ops.slice(1))),e},c.prototype.diff=function(u,e){if(this.ops===u.ops)return new c;var t=[this,u].map(function(i){return i.map(function(s){if(s.insert!=null)return typeof s.insert=="string"?s.insert:m;var n=i===u?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),l=new c,o=P(t[0],t[1],e),a=y.iterator(this.ops),r=y.iterator(u.ops);return o.forEach(function(i){for(var s=i[1].length;s>0;){var n=0;switch(i[0]){case P.INSERT:n=Math.min(r.peekLength(),s),l.push(r.next(n));break;case P.DELETE:n=Math.min(s,a.peekLength()),a.next(n),l.delete(n);break;case P.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),s);var f=a.next(n),T=r.next(n);k(f.insert,T.insert)?l.retain(n,y.attributes.diff(f.attributes,T.attributes)):l.push(T).delete(n);break}s-=n}}),l.chop()},c.prototype.eachLine=function(u,e){e=e||`
`;for(var t=y.iterator(this.ops),l=new c,o=0;t.hasNext();){if(t.peekType()!=="insert")return;var a=t.peek(),r=y.length(a)-t.peekLength(),i=typeof a.insert=="string"?a.insert.indexOf(e,r)-r:-1;if(i<0)l.push(t.next());else if(i>0)l.push(t.next(i));else{if(u(l,t.next(1).attributes||{},o)===!1)return;o+=1,l=new c}}l.length()>0&&u(l,{},o)},c.prototype.transform=function(u,e){if(e=!!e,typeof u=="number")return this.transformPosition(u,e);for(var t=y.iterator(this.ops),l=y.iterator(u.ops),o=new c;t.hasNext()||l.hasNext();)if(t.peekType()==="insert"&&(e||l.peekType()!=="insert"))o.retain(y.length(t.next()));else if(l.peekType()==="insert")o.push(l.next());else{var a=Math.min(t.peekLength(),l.peekLength()),r=t.next(a),i=l.next(a);if(r.delete)continue;i.delete?o.push(i):o.retain(a,y.attributes.transform(r.attributes,i.attributes,e))}return o.chop()},c.prototype.transformPosition=function(u,e){e=!!e;for(var t=y.iterator(this.ops),l=0;t.hasNext()&&l<=u;){var o=t.peekLength(),a=t.peekType();if(t.next(),a==="delete"){u-=Math.min(o,u-l);continue}else a==="insert"&&(l<u||!e)&&(u+=o);l+=o}return u},q.exports=c},function(q,b){"use strict";var p=Object.prototype.hasOwnProperty,P=Object.prototype.toString,k=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=function(t){return typeof Array.isArray=="function"?Array.isArray(t):P.call(t)==="[object Array]"},m=function(t){if(!t||P.call(t)!=="[object Object]")return!1;var l=p.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&p.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!l&&!o)return!1;var a;for(a in t);return typeof a=="undefined"||p.call(t,a)},c=function(t,l){k&&l.name==="__proto__"?k(t,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):t[l.name]=l.newValue},u=function(t,l){if(l==="__proto__")if(p.call(t,l)){if(w)return w(t,l).value}else return;return t[l]};q.exports=function e(){var t,l,o,a,r,i,s=arguments[0],n=1,f=arguments.length,T=!1;for(typeof s=="boolean"&&(T=s,s=arguments[1]||{},n=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});n<f;++n)if(t=arguments[n],t!=null)for(l in t)o=u(s,l),a=u(t,l),s!==a&&(T&&a&&(m(a)||(r=y(a)))?(r?(r=!1,i=o&&y(o)?o:[]):i=o&&m(o)?o:{},c(s,{name:l,newValue:e(T,i,a)})):typeof a!="undefined"&&c(s,{name:l,newValue:a}));return s}},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BlockEmbed=b.bubbleFormats=void 0;var P=function(){function h(d,E){for(var N=0;N<E.length;N++){var R=E[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(d,R.key,R)}}return function(d,E,N){return E&&h(d.prototype,E),N&&h(d,N),d}}(),k=function h(d,E,N){d===null&&(d=Function.prototype);var R=Object.getOwnPropertyDescriptor(d,E);if(R===void 0){var B=Object.getPrototypeOf(d);return B===null?void 0:h(B,E,N)}else{if("value"in R)return R.value;var C=R.get;return C===void 0?void 0:C.call(N)}},w=p(3),y=s(w),m=p(2),c=s(m),u=p(0),e=s(u),t=p(16),l=s(t),o=p(6),a=s(o),r=p(7),i=s(r);function s(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function f(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function T(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var g=1,O=function(h){T(d,h);function d(){return n(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return P(d,[{key:"attach",value:function(){k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new c.default().insert(this.value(),(0,y.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(N,R){var B=e.default.query(N,e.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,R)}},{key:"formatAt",value:function(N,R,B,C){this.format(B,C)}},{key:"insertAt",value:function(N,R,B){if(typeof R=="string"&&R.endsWith(`
`)){var C=e.default.create(x.blotName);this.parent.insertBefore(C,N===0?this:this.next),C.insertAt(0,R.slice(0,-1))}else k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,N,R,B)}}]),d}(e.default.Embed);O.scope=e.default.Scope.BLOCK_BLOT;var x=function(h){T(d,h);function d(E){n(this,d);var N=f(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,E));return N.cache={},N}return P(d,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(N,R){return R.length()===0?N:N.insert(R.value(),v(R))},new c.default).insert(`
`,v(this))),this.cache.delta}},{key:"deleteAt",value:function(N,R){k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,N,R),this.cache={}}},{key:"formatAt",value:function(N,R,B,C){R<=0||(e.default.query(B,e.default.Scope.BLOCK)?N+R===this.length()&&this.format(B,C):k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,N,Math.min(R,this.length()-N-1),B,C),this.cache={})}},{key:"insertAt",value:function(N,R,B){if(B!=null)return k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,N,R,B);if(R.length!==0){var C=R.split(`
`),$=C.shift();$.length>0&&(N<this.length()-1||this.children.tail==null?k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,Math.min(N,this.length()-1),$):this.children.tail.insertAt(this.children.tail.length(),$),this.cache={});var I=this;C.reduce(function(L,A){return I=I.split(L,!0),I.insertAt(0,A),A.length},N+$.length)}}},{key:"insertBefore",value:function(N,R){var B=this.children.head;k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,N,R),B instanceof l.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(N,R){k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"moveChildren",this).call(this,N,R),this.cache={}}},{key:"optimize",value:function(N){k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,N),this.cache={}}},{key:"path",value:function(N){return k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,N,!0)}},{key:"removeChild",value:function(N){k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"removeChild",this).call(this,N),this.cache={}}},{key:"split",value:function(N){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(N===0||N>=this.length()-g)){var B=this.clone();return N===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var C=k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"split",this).call(this,N,R);return this.cache={},C}}}]),d}(e.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[a.default,e.default.Embed,i.default];function v(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h==null||(typeof h.formats=="function"&&(d=(0,y.default)(d,h.formats())),h.parent==null||h.parent.blotName=="scroll"||h.parent.statics.scope!==h.statics.scope)?d:v(h.parent,d)}b.bubbleFormats=v,b.BlockEmbed=O,b.default=x},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.overload=b.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},k=function(){function I(L,A){var S=[],M=!0,F=!1,D=void 0;try{for(var _=L[Symbol.iterator](),j;!(M=(j=_.next()).done)&&(S.push(j.value),!(A&&S.length===A));M=!0);}catch(H){F=!0,D=H}finally{try{!M&&_.return&&_.return()}finally{if(F)throw D}}return S}return function(L,A){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return I(L,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function I(L,A){for(var S=0;S<A.length;S++){var M=A[S];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(L,M.key,M)}}return function(L,A,S){return A&&I(L.prototype,A),S&&I(L,S),L}}();p(50);var y=p(2),m=v(y),c=p(14),u=v(c),e=p(8),t=v(e),l=p(9),o=v(l),a=p(0),r=v(a),i=p(15),s=v(i),n=p(3),f=v(n),T=p(10),g=v(T),O=p(34),x=v(O);function v(I){return I&&I.__esModule?I:{default:I}}function h(I,L,A){return L in I?Object.defineProperty(I,L,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[L]=A,I}function d(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}var E=(0,g.default)("quill"),N=function(){w(I,null,[{key:"debug",value:function(A){A===!0&&(A="log"),g.default.level(A)}},{key:"find",value:function(A){return A.__quill||r.default.find(A)}},{key:"import",value:function(A){return this.imports[A]==null&&E.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,S){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof A!="string"){var D=A.attrName||A.blotName;typeof D=="string"?this.register("formats/"+D,A,S):Object.keys(A).forEach(function(_){M.register(_,A[_],S)})}else this.imports[A]!=null&&!F&&E.warn("Overwriting "+A+" with",S),this.imports[A]=S,(A.startsWith("blots/")||A.startsWith("formats/"))&&S.blotName!=="abstract"?r.default.register(S):A.startsWith("modules")&&typeof S.register=="function"&&S.register()}}]);function I(L){var A=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(d(this,I),this.options=R(L,S),this.container=this.options.container,this.container==null)return E.error("Invalid Quill container",L);this.options.debug&&I.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new s.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&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(D,_){var j=A.selection.lastRange,H=j&&j.length===0?j.index:void 0;B.call(A,function(){return A.editor.update(null,_,H)},D)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return w(I,[{key:"addContainer",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof A=="string"){var M=A;A=document.createElement("div"),A.classList.add(M)}return this.container.insertBefore(A,S),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,S,M){var F=this,D=C(A,S,M),_=k(D,4);return A=_[0],S=_[1],M=_[3],B.call(this,function(){return F.editor.deleteText(A,S)},M,A,-1*S)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(A),this.container.classList.toggle("ql-disabled",!A)}},{key:"focus",value:function(){var A=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=A,this.scrollIntoView()}},{key:"format",value:function(A,S){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return B.call(this,function(){var D=M.getSelection(!0),_=new m.default;if(D==null)return _;if(r.default.query(A,r.default.Scope.BLOCK))_=M.editor.formatLine(D.index,D.length,h({},A,S));else{if(D.length===0)return M.selection.format(A,S),_;_=M.editor.formatText(D.index,D.length,h({},A,S))}return M.setSelection(D,t.default.sources.SILENT),_},F)}},{key:"formatLine",value:function(A,S,M,F,D){var _=this,j=void 0,H=C(A,S,M,F,D),U=k(H,4);return A=U[0],S=U[1],j=U[2],D=U[3],B.call(this,function(){return _.editor.formatLine(A,S,j)},D,A,0)}},{key:"formatText",value:function(A,S,M,F,D){var _=this,j=void 0,H=C(A,S,M,F,D),U=k(H,4);return A=U[0],S=U[1],j=U[2],D=U[3],B.call(this,function(){return _.editor.formatText(A,S,j)},D,A,0)}},{key:"getBounds",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof A=="number"?M=this.selection.getBounds(A,S):M=this.selection.getBounds(A.index,A.length);var F=this.container.getBoundingClientRect();return{bottom:M.bottom-F.top,height:M.height,left:M.left-F.left,right:M.right-F.left,top:M.top-F.top,width:M.width}}},{key:"getContents",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,M=C(A,S),F=k(M,2);return A=F[0],S=F[1],this.editor.getContents(A,S)}},{key:"getFormat",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof A=="number"?this.editor.getFormat(A,S):this.editor.getFormat(A.index,A.length)}},{key:"getIndex",value:function(A){return A.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(A){return this.scroll.leaf(A)}},{key:"getLine",value:function(A){return this.scroll.line(A)}},{key:"getLines",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof A!="number"?this.scroll.lines(A.index,A.length):this.scroll.lines(A,S)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return A&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-A,M=C(A,S),F=k(M,2);return A=F[0],S=F[1],this.editor.getText(A,S)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,S,M){var F=this,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I.sources.API;return B.call(this,function(){return F.editor.insertEmbed(A,S,M)},D,A)}},{key:"insertText",value:function(A,S,M,F,D){var _=this,j=void 0,H=C(A,0,M,F,D),U=k(H,4);return A=U[0],j=U[2],D=U[3],B.call(this,function(){return _.editor.insertText(A,S,j)},D,A,S.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(A,S,M){this.clipboard.dangerouslyPasteHTML(A,S,M)}},{key:"removeFormat",value:function(A,S,M){var F=this,D=C(A,S,M),_=k(D,4);return A=_[0],S=_[1],M=_[3],B.call(this,function(){return F.editor.removeFormat(A,S)},M,A)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var S=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){A=new m.default(A);var F=S.getLength(),D=S.editor.deleteText(0,F),_=S.editor.applyDelta(A),j=_.ops[_.ops.length-1];j!=null&&typeof j.insert=="string"&&j.insert[j.insert.length-1]===`
`&&(S.editor.deleteText(S.getLength()-1,1),_.delete(1));var H=D.compose(_);return H},M)}},{key:"setSelection",value:function(A,S,M){if(A==null)this.selection.setRange(null,S||I.sources.API);else{var F=C(A,S,M),D=k(F,4);A=D[0],S=D[1],M=D[3],this.selection.setRange(new i.Range(A,S),M),M!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,M=new m.default().insert(A);return this.setContents(M,S)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,S=this.scroll.update(A);return this.selection.update(A),S}},{key:"updateContents",value:function(A){var S=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){return A=new m.default(A),S.editor.applyDelta(A,M)},M,!0)}}]),I}();N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=t.default.events,N.sources=t.default.sources,N.version="1.3.7",N.imports={delta:m.default,parchment:r.default,"core/module":o.default,"core/theme":x.default};function R(I,L){if(L=(0,f.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},L),!L.theme||L.theme===N.DEFAULTS.theme)L.theme=x.default;else if(L.theme=N.import("themes/"+L.theme),L.theme==null)throw new Error("Invalid theme "+L.theme+". Did you register it?");var A=(0,f.default)(!0,{},L.theme.DEFAULTS);[A,L].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(D){F.modules[D]===!0&&(F.modules[D]={})})});var S=Object.keys(A.modules).concat(Object.keys(L.modules)),M=S.reduce(function(F,D){var _=N.import("modules/"+D);return _==null?E.error("Cannot load "+D+" module. Are you sure you registered it?"):F[D]=_.DEFAULTS||{},F},{});return L.modules!=null&&L.modules.toolbar&&L.modules.toolbar.constructor!==Object&&(L.modules.toolbar={container:L.modules.toolbar}),L=(0,f.default)(!0,{},N.DEFAULTS,{modules:M},A,L),["bounds","container","scrollingContainer"].forEach(function(F){typeof L[F]=="string"&&(L[F]=document.querySelector(L[F]))}),L.modules=Object.keys(L.modules).reduce(function(F,D){return L.modules[D]&&(F[D]=L.modules[D]),F},{}),L}function B(I,L,A,S){if(this.options.strict&&!this.isEnabled()&&L===t.default.sources.USER)return new m.default;var M=A==null?null:this.getSelection(),F=this.editor.delta,D=I();if(M!=null&&(A===!0&&(A=M.index),S==null?M=$(M,D,L):S!==0&&(M=$(M,A,S,L)),this.setSelection(M,t.default.sources.SILENT)),D.length()>0){var _,j=[t.default.events.TEXT_CHANGE,D,F,L];if((_=this.emitter).emit.apply(_,[t.default.events.EDITOR_CHANGE].concat(j)),L!==t.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,j)}}return D}function C(I,L,A,S,M){var F={};return typeof I.index=="number"&&typeof I.length=="number"?typeof L!="number"?(M=S,S=A,A=L,L=I.length,I=I.index):(L=I.length,I=I.index):typeof L!="number"&&(M=S,S=A,A=L,L=0),(typeof A=="undefined"?"undefined":P(A))==="object"?(F=A,M=S):typeof A=="string"&&(S!=null?F[A]=S:M=A),M=M||t.default.sources.API,[I,L,F,M]}function $(I,L,A,S){if(I==null)return null;var M=void 0,F=void 0;if(L instanceof m.default){var D=[I.index,I.index+I.length].map(function(U){return L.transformPosition(U,S!==t.default.sources.USER)}),_=k(D,2);M=_[0],F=_[1]}else{var j=[I.index,I.index+I.length].map(function(U){return U<L||U===L&&S===t.default.sources.USER?U:A>=0?U+A:Math.max(L,U+A)}),H=k(j,2);M=H[0],F=H[1]}return new i.Range(M,F-M)}b.expandConfig=R,b.overload=C,b.default=N},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function a(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&a(r.prototype,i),s&&a(r,s),r}}(),k=function a(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:a(f,i,s)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(s)}},w=p(7),y=u(w),m=p(0),c=u(m);function u(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 l(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 o=function(a){l(r,a);function r(){return e(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"formatAt",value:function(s,n,f,T){if(r.compare(this.statics.blotName,f)<0&&c.default.query(f,c.default.Scope.BLOT)){var g=this.isolate(s,n);T&&g.wrap(f,T)}else k(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,s,n,f,T)}},{key:"optimize",value:function(s){if(k(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,s),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(s,n){var f=r.order.indexOf(s),T=r.order.indexOf(n);return f>=0||T>=0?f-T:s===n?0:s<n?-1:1}}]),r}(c.default.Inline);o.allowedChildren=[o,c.default.Embed,y.default],o.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],b.default=o},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(0),k=w(P);function w(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 m(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 c(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 u=function(e){c(t,e);function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(k.default.Text);b.default=u},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function i(s,n){for(var f=0;f<n.length;f++){var T=n[f];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(s,T.key,T)}}return function(s,n,f){return n&&i(s.prototype,n),f&&i(s,f),s}}(),k=function i(s,n,f){s===null&&(s=Function.prototype);var T=Object.getOwnPropertyDescriptor(s,n);if(T===void 0){var g=Object.getPrototypeOf(s);return g===null?void 0:i(g,n,f)}else{if("value"in T)return T.value;var O=T.get;return O===void 0?void 0:O.call(f)}},w=p(54),y=u(w),m=p(10),c=u(m);function u(i){return i&&i.__esModule?i:{default:i}}function e(i,s){if(!(i instanceof s))throw new TypeError("Cannot call a class as a function")}function t(i,s){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:i}function l(i,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);i.prototype=Object.create(s&&s.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(i,s):i.__proto__=s)}var o=(0,c.default)("quill:events"),a=["selectionchange","mousedown","mouseup","click"];a.forEach(function(i){document.addEventListener(i,function(){for(var s=arguments.length,n=Array(s),f=0;f<s;f++)n[f]=arguments[f];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(T){if(T.__quill&&T.__quill.emitter){var g;(g=T.__quill.emitter).handleDOM.apply(g,n)}})})});var r=function(i){l(s,i);function s(){e(this,s);var n=t(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return n.listeners={},n.on("error",o.error),n}return P(s,[{key:"emit",value:function(){o.log.apply(o,arguments),k(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var T=arguments.length,g=Array(T>1?T-1:0),O=1;O<T;O++)g[O-1]=arguments[O];(this.listeners[f.type]||[]).forEach(function(x){var v=x.node,h=x.handler;(f.target===v||v.contains(f.target))&&h.apply(void 0,[f].concat(g))})}},{key:"listenDOM",value:function(f,T,g){this.listeners[f]||(this.listeners[f]=[]),this.listeners[f].push({node:T,handler:g})}}]),s}(y.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},b.default=r},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});function P(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}var k=function w(y){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P(this,w),this.quill=y,this.options=m};k.DEFAULTS={},b.default=k},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=["error","warn","log","info"],k="warn";function w(m){if(P.indexOf(m)<=P.indexOf(k)){for(var c,u=arguments.length,e=Array(u>1?u-1:0),t=1;t<u;t++)e[t-1]=arguments[t];(c=console)[m].apply(c,e)}}function y(m){return P.reduce(function(c,u){return c[u]=w.bind(console,u,m),c},{})}w.level=y.level=function(m){k=m},b.default=y},function(q,b,p){var P=Array.prototype.slice,k=p(52),w=p(53),y=q.exports=function(e,t,l){return l||(l={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?l.strict?e===t:e==t:u(e,t,l)};function m(e){return e==null}function c(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 u(e,t,l){var o,a;if(m(e)||m(t)||e.prototype!==t.prototype)return!1;if(w(e))return w(t)?(e=P.call(e),t=P.call(t),y(e,t,l)):!1;if(c(e)){if(!c(t)||e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}try{var r=k(e),i=k(t)}catch(s){return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),o=r.length-1;o>=0;o--)if(r[o]!=i[o])return!1;for(o=r.length-1;o>=0;o--)if(a=r[o],!y(e[a],t[a],l))return!1;return typeof e==typeof t}},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(1),k=function(){function w(y,m,c){c===void 0&&(c={}),this.attrName=y,this.keyName=m;var u=P.Scope.TYPE&P.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&P.Scope.LEVEL|u:this.scope=P.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return w.keys=function(y){return[].map.call(y.attributes,function(m){return m.name})},w.prototype.add=function(y,m){return this.canAdd(y,m)?(y.setAttribute(this.keyName,m),!0):!1},w.prototype.canAdd=function(y,m){var c=P.query(y,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof m=="string"?this.whitelist.indexOf(m.replace(/["']/g,""))>-1:this.whitelist.indexOf(m)>-1},w.prototype.remove=function(y){y.removeAttribute(this.keyName)},w.prototype.value=function(y){var m=y.getAttribute(this.keyName);return this.canAdd(y,m)&&m?m:""},w}();b.default=k},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Code=void 0;var P=function(){function O(x,v){var h=[],d=!0,E=!1,N=void 0;try{for(var R=x[Symbol.iterator](),B;!(d=(B=R.next()).done)&&(h.push(B.value),!(v&&h.length===v));d=!0);}catch(C){E=!0,N=C}finally{try{!d&&R.return&&R.return()}finally{if(E)throw N}}return h}return function(x,v){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return O(x,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function O(x,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(x,d.key,d)}}return function(x,v,h){return v&&O(x.prototype,v),h&&O(x,h),x}}(),w=function O(x,v,h){x===null&&(x=Function.prototype);var d=Object.getOwnPropertyDescriptor(x,v);if(d===void 0){var E=Object.getPrototypeOf(x);return E===null?void 0:O(E,v,h)}else{if("value"in d)return d.value;var N=d.get;return N===void 0?void 0:N.call(h)}},y=p(2),m=i(y),c=p(0),u=i(c),e=p(4),t=i(e),l=p(6),o=i(l),a=p(7),r=i(a);function i(O){return O&&O.__esModule?O:{default:O}}function s(O,x){if(!(O instanceof x))throw new TypeError("Cannot call a class as a function")}function n(O,x){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:O}function f(O,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);O.prototype=Object.create(x&&x.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(O,x):O.__proto__=x)}var T=function(O){f(x,O);function x(){return s(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return x}(o.default);T.blotName="code",T.tagName="CODE";var g=function(O){f(x,O);function x(){return s(this,x),n(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return k(x,[{key:"delta",value:function(){var h=this,d=this.domNode.textContent;return d.endsWith(`
`)&&(d=d.slice(0,-1)),d.split(`
`).reduce(function(E,N){return E.insert(N).insert(`
`,h.formats())},new m.default)}},{key:"format",value:function(h,d){if(!(h===this.statics.blotName&&d)){var E=this.descendant(r.default,this.length()-1),N=P(E,1),R=N[0];R!=null&&R.deleteAt(R.length()-1,1),w(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,h,d)}}},{key:"formatAt",value:function(h,d,E,N){if(d!==0&&!(u.default.query(E,u.default.Scope.BLOCK)==null||E===this.statics.blotName&&N===this.statics.formats(this.domNode))){var R=this.newlineIndex(h);if(!(R<0||R>=h+d)){var B=this.newlineIndex(h,!0)+1,C=R-B+1,$=this.isolate(B,C),I=$.next;$.format(E,N),I instanceof x&&I.formatAt(0,h-B+d-C,E,N)}}}},{key:"insertAt",value:function(h,d,E){if(E==null){var N=this.descendant(r.default,h),R=P(N,2),B=R[0],C=R[1];B.insertAt(C,d)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?h:h+1}},{key:"newlineIndex",value:function(h){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(d)return this.domNode.textContent.slice(0,h).lastIndexOf(`
`);var E=this.domNode.textContent.slice(h).indexOf(`
`);return E>-1?h+E:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith(`
`)||this.appendChild(u.default.create("text",`
`)),w(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,h);var d=this.next;d!=null&&d.prev===this&&d.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===d.statics.formats(d.domNode)&&(d.optimize(h),d.moveChildren(this),d.remove())}},{key:"replace",value:function(h){w(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(d){var E=u.default.find(d);E==null?d.parentNode.removeChild(d):E instanceof u.default.Embed?E.remove():E.unwrap()})}}],[{key:"create",value:function(h){var d=w(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,h);return d.setAttribute("spellcheck",!1),d}},{key:"formats",value:function(){return!0}}]),x}(t.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",b.Code=T,b.default=g},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},k=function(){function I(L,A){var S=[],M=!0,F=!1,D=void 0;try{for(var _=L[Symbol.iterator](),j;!(M=(j=_.next()).done)&&(S.push(j.value),!(A&&S.length===A));M=!0);}catch(H){F=!0,D=H}finally{try{!M&&_.return&&_.return()}finally{if(F)throw D}}return S}return function(L,A){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return I(L,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function I(L,A){for(var S=0;S<A.length;S++){var M=A[S];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(L,M.key,M)}}return function(L,A,S){return A&&I(L.prototype,A),S&&I(L,S),L}}(),y=p(2),m=d(y),c=p(20),u=d(c),e=p(0),t=d(e),l=p(13),o=d(l),a=p(24),r=d(a),i=p(4),s=d(i),n=p(16),f=d(n),T=p(21),g=d(T),O=p(11),x=d(O),v=p(3),h=d(v);function d(I){return I&&I.__esModule?I:{default:I}}function E(I,L,A){return L in I?Object.defineProperty(I,L,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[L]=A,I}function N(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,B=function(){function I(L){N(this,I),this.scroll=L,this.delta=this.getDelta()}return w(I,[{key:"applyDelta",value:function(A){var S=this,M=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),A=$(A),A.reduce(function(D,_){var j=_.retain||_.delete||_.insert.length||1,H=_.attributes||{};if(_.insert!=null){if(typeof _.insert=="string"){var U=_.insert;U.endsWith(`
`)&&M&&(M=!1,U=U.slice(0,-1)),D>=F&&!U.endsWith(`
`)&&(M=!0),S.scroll.insertAt(D,U);var W=S.scroll.line(D),Y=k(W,2),et=Y[0],nt=Y[1],rt=(0,h.default)({},(0,i.bubbleFormats)(et));if(et instanceof s.default){var at=et.descendant(t.default.Leaf,nt),ft=k(at,1),st=ft[0];rt=(0,h.default)(rt,(0,i.bubbleFormats)(st))}H=u.default.attributes.diff(rt,H)||{}}else if(P(_.insert)==="object"){var K=Object.keys(_.insert)[0];if(K==null)return D;S.scroll.insertAt(D,K,_.insert[K])}F+=j}return Object.keys(H).forEach(function(z){S.scroll.formatAt(D,j,z,H[z])}),D+j},0),A.reduce(function(D,_){return typeof _.delete=="number"?(S.scroll.deleteAt(D,_.delete),D):D+(_.retain||_.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,S){return this.scroll.deleteAt(A,S),this.update(new m.default().retain(A).delete(S))}},{key:"formatLine",value:function(A,S){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(D){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[D])){var _=M.scroll.lines(A,Math.max(S,1)),j=S;_.forEach(function(H){var U=H.length();if(!(H instanceof o.default))H.format(D,F[D]);else{var W=A-H.offset(M.scroll),Y=H.newlineIndex(W+j)-W+1;H.formatAt(W,Y,D,F[D])}j-=U})}}),this.scroll.optimize(),this.update(new m.default().retain(A).retain(S,(0,g.default)(F)))}},{key:"formatText",value:function(A,S){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(D){M.scroll.formatAt(A,S,D,F[D])}),this.update(new m.default().retain(A).retain(S,(0,g.default)(F)))}},{key:"getContents",value:function(A,S){return this.delta.slice(A,A+S)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,S){return A.concat(S.delta())},new m.default)}},{key:"getFormat",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],F=[];S===0?this.scroll.path(A).forEach(function(_){var j=k(_,1),H=j[0];H instanceof s.default?M.push(H):H instanceof t.default.Leaf&&F.push(H)}):(M=this.scroll.lines(A,S),F=this.scroll.descendants(t.default.Leaf,A,S));var D=[M,F].map(function(_){if(_.length===0)return{};for(var j=(0,i.bubbleFormats)(_.shift());Object.keys(j).length>0;){var H=_.shift();if(H==null)return j;j=C((0,i.bubbleFormats)(H),j)}return j});return h.default.apply(h.default,D)}},{key:"getText",value:function(A,S){return this.getContents(A,S).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(A,S,M){return this.scroll.insertAt(A,S,M),this.update(new m.default().retain(A).insert(E({},S,M)))}},{key:"insertText",value:function(A,S){var M=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return S=S.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(A,S),Object.keys(F).forEach(function(D){M.scroll.formatAt(A,S.length,D,F[D])}),this.update(new m.default().retain(A).insert(S,(0,g.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return A.statics.blotName!==s.default.blotName||A.children.length>1?!1:A.children.head instanceof f.default}},{key:"removeFormat",value:function(A,S){var M=this.getText(A,S),F=this.scroll.line(A+S),D=k(F,2),_=D[0],j=D[1],H=0,U=new m.default;_!=null&&(_ instanceof o.default?H=_.newlineIndex(j)-j+1:H=_.length()-j,U=_.delta().slice(j,j+H-1).insert(`
`));var W=this.getContents(A,S+H),Y=W.diff(new m.default().insert(M).concat(U)),et=new m.default().retain(A).concat(Y);return this.applyDelta(et)}},{key:"update",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(S.length===1&&S[0].type==="characterData"&&S[0].target.data.match(R)&&t.default.find(S[0].target)){var D=t.default.find(S[0].target),_=(0,i.bubbleFormats)(D),j=D.offset(this.scroll),H=S[0].oldValue.replace(r.default.CONTENTS,""),U=new m.default().insert(H),W=new m.default().insert(D.value()),Y=new m.default().retain(j).concat(U.diff(W,M));A=Y.reduce(function(et,nt){return nt.insert?et.insert(nt.insert,_):et.push(nt)},new m.default),this.delta=F.compose(A)}else this.delta=this.getDelta(),(!A||!(0,x.default)(F.compose(A),this.delta))&&(A=F.diff(this.delta,M));return A}}]),I}();function C(I,L){return Object.keys(L).reduce(function(A,S){return I[S]==null||(L[S]===I[S]?A[S]=L[S]:Array.isArray(L[S])?L[S].indexOf(I[S])<0&&(A[S]=L[S].concat([I[S]])):A[S]=[L[S],I[S]]),A},{})}function $(I){return I.reduce(function(L,A){if(A.insert===1){var S=(0,g.default)(A.attributes);return delete S.image,L.insert({image:A.attributes.image},S)}if(A.attributes!=null&&(A.attributes.list===!0||A.attributes.bullet===!0)&&(A=(0,g.default)(A),A.attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),typeof A.insert=="string"){var M=A.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return L.insert(M,A.attributes)}return L.push(A)},new m.default)}b.default=B},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Range=void 0;var P=function(){function O(x,v){var h=[],d=!0,E=!1,N=void 0;try{for(var R=x[Symbol.iterator](),B;!(d=(B=R.next()).done)&&(h.push(B.value),!(v&&h.length===v));d=!0);}catch(C){E=!0,N=C}finally{try{!d&&R.return&&R.return()}finally{if(E)throw N}}return h}return function(x,v){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return O(x,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function O(x,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(x,d.key,d)}}return function(x,v,h){return v&&O(x.prototype,v),h&&O(x,h),x}}(),w=p(0),y=r(w),m=p(21),c=r(m),u=p(11),e=r(u),t=p(8),l=r(t),o=p(10),a=r(o);function r(O){return O&&O.__esModule?O:{default:O}}function i(O){if(Array.isArray(O)){for(var x=0,v=Array(O.length);x<O.length;x++)v[x]=O[x];return v}else return Array.from(O)}function s(O,x){if(!(O instanceof x))throw new TypeError("Cannot call a class as a function")}var n=(0,a.default)("quill:selection"),f=function O(x){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;s(this,O),this.index=x,this.length=v},T=function(){function O(x,v){var h=this;s(this,O),this.emitter=v,this.scroll=x,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=y.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,l.default.sources.USER),1)}),this.emitter.on(l.default.events.EDITOR_CHANGE,function(d,E){d===l.default.events.TEXT_CHANGE&&E.length()>0&&h.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var d=h.getNativeRange();d!=null&&d.start.node!==h.cursor.textNode&&h.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(d.start.node,d.start.offset,d.end.node,d.end.offset)}catch(E){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(d,E){if(E.range){var N=E.range,R=N.startNode,B=N.startOffset,C=N.endNode,$=N.endOffset;h.setNativeRange(R,B,C,$)}}),this.update(l.default.sources.SILENT)}return k(O,[{key:"handleComposition",value:function(){var v=this;this.root.addEventListener("compositionstart",function(){v.composing=!0}),this.root.addEventListener("compositionend",function(){if(v.composing=!1,v.cursor.parent){var h=v.cursor.restore();if(!h)return;setTimeout(function(){v.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var v=this;this.emitter.listenDOM("mousedown",document.body,function(){v.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){v.mouseDown=!1,v.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(v,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[v])){this.scroll.update();var d=this.getNativeRange();if(!(d==null||!d.native.collapsed||y.default.query(v,y.default.Scope.BLOCK))){if(d.start.node!==this.cursor.textNode){var E=y.default.find(d.start.node,!1);if(E==null)return;if(E instanceof y.default.Leaf){var N=E.split(d.start.offset);E.parent.insertBefore(this.cursor,N)}else E.insertBefore(this.cursor,d.start.node);this.cursor.attach()}this.cursor.format(v,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d=this.scroll.length();v=Math.min(v,d-1),h=Math.min(v+h,d-1)-v;var E=void 0,N=this.scroll.leaf(v),R=P(N,2),B=R[0],C=R[1];if(B==null)return null;var $=B.position(C,!0),I=P($,2);E=I[0],C=I[1];var L=document.createRange();if(h>0){L.setStart(E,C);var A=this.scroll.leaf(v+h),S=P(A,2);if(B=S[0],C=S[1],B==null)return null;var M=B.position(C,!0),F=P(M,2);return E=F[0],C=F[1],L.setEnd(E,C),L.getBoundingClientRect()}else{var D="left",_=void 0;return E instanceof Text?(C<E.data.length?(L.setStart(E,C),L.setEnd(E,C+1)):(L.setStart(E,C-1),L.setEnd(E,C),D="right"),_=L.getBoundingClientRect()):(_=B.domNode.getBoundingClientRect(),C>0&&(D="right")),{bottom:_.top+_.height,height:_.height,left:_[D],right:_[D],top:_.top,width:0}}}},{key:"getNativeRange",value:function(){var v=document.getSelection();if(v==null||v.rangeCount<=0)return null;var h=v.getRangeAt(0);if(h==null)return null;var d=this.normalizeNative(h);return n.info("getNativeRange",d),d}},{key:"getRange",value:function(){var v=this.getNativeRange();if(v==null)return[null,null];var h=this.normalizedToRange(v);return[h,v]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(v){var h=this,d=[[v.start.node,v.start.offset]];v.native.collapsed||d.push([v.end.node,v.end.offset]);var E=d.map(function(B){var C=P(B,2),$=C[0],I=C[1],L=y.default.find($,!0),A=L.offset(h.scroll);return I===0?A:L instanceof y.default.Container?A+L.length():A+L.index($,I)}),N=Math.min(Math.max.apply(Math,i(E)),this.scroll.length()-1),R=Math.min.apply(Math,[N].concat(i(E)));return new f(R,N-R)}},{key:"normalizeNative",value:function(v){if(!g(this.root,v.startContainer)||!v.collapsed&&!g(this.root,v.endContainer))return null;var h={start:{node:v.startContainer,offset:v.startOffset},end:{node:v.endContainer,offset:v.endOffset},native:v};return[h.start,h.end].forEach(function(d){for(var E=d.node,N=d.offset;!(E instanceof Text)&&E.childNodes.length>0;)if(E.childNodes.length>N)E=E.childNodes[N],N=0;else if(E.childNodes.length===N)E=E.lastChild,N=E instanceof Text?E.data.length:E.childNodes.length+1;else break;d.node=E,d.offset=N}),h}},{key:"rangeToNative",value:function(v){var h=this,d=v.collapsed?[v.index]:[v.index,v.index+v.length],E=[],N=this.scroll.length();return d.forEach(function(R,B){R=Math.min(N-1,R);var C=void 0,$=h.scroll.leaf(R),I=P($,2),L=I[0],A=I[1],S=L.position(A,B!==0),M=P(S,2);C=M[0],A=M[1],E.push(C,A)}),E.length<2&&(E=E.concat(E)),E}},{key:"scrollIntoView",value:function(v){var h=this.lastRange;if(h!=null){var d=this.getBounds(h.index,h.length);if(d!=null){var E=this.scroll.length()-1,N=this.scroll.line(Math.min(h.index,E)),R=P(N,1),B=R[0],C=B;if(h.length>0){var $=this.scroll.line(Math.min(h.index+h.length,E)),I=P($,1);C=I[0]}if(!(B==null||C==null)){var L=v.getBoundingClientRect();d.top<L.top?v.scrollTop-=L.top-d.top:d.bottom>L.bottom&&(v.scrollTop+=d.bottom-L.bottom)}}}}},{key:"setNativeRange",value:function(v,h){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",v,h,d,E),!(v!=null&&(this.root.parentNode==null||v.parentNode==null||d.parentNode==null))){var R=document.getSelection();if(R!=null)if(v!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||N||v!==B.startContainer||h!==B.startOffset||d!==B.endContainer||E!==B.endOffset){v.tagName=="BR"&&(h=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode),d.tagName=="BR"&&(E=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode);var C=document.createRange();C.setStart(v,h),C.setEnd(d,E),R.removeAllRanges(),R.addRange(C)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof h=="string"&&(d=h,h=!1),n.info("setRange",v),v!=null){var E=this.rangeToNative(v);this.setNativeRange.apply(this,i(E).concat([h]))}else this.setNativeRange(null);this.update(d)}},{key:"update",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,h=this.lastRange,d=this.getRange(),E=P(d,2),N=E[0],R=E[1];if(this.lastRange=N,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(h,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var C=[l.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),v];if((B=this.emitter).emit.apply(B,[l.default.events.EDITOR_CHANGE].concat(C)),v!==l.default.sources.SILENT){var $;($=this.emitter).emit.apply($,C)}}}}]),O}();function g(O,x){try{x.parentNode}catch(v){return!1}return x instanceof Text&&(x=x.parentNode),O.contains(x)}b.Range=f,b.default=T},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function l(o,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,a,r){return a&&l(o.prototype,a),r&&l(o,r),o}}(),k=function l(o,a,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,a);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},w=p(0),y=m(w);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function u(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),u(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,[{key:"insertInto",value:function(r,i){r.children.length===0?k(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),o}(y.default.Embed);t.blotName="break",t.tagName="BR",b.default=t},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){u(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(44),w=p(30),y=p(1),m=function(u){P(e,u);function e(t){var l=u.call(this,t)||this;return l.build(),l}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){u.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new k.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(l){try{var o=c(l);t.insertBefore(o,t.children.head||void 0)}catch(a){if(a instanceof y.ParchmentError)return;throw a}})},e.prototype.deleteAt=function(t,l){if(t===0&&l===this.length())return this.remove();this.children.forEachAt(t,l,function(o,a,r){o.deleteAt(a,r)})},e.prototype.descendant=function(t,l){var o=this.children.find(l),a=o[0],r=o[1];return t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t?[a,r]:a instanceof e?a.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,l,o){l===void 0&&(l=0),o===void 0&&(o=Number.MAX_VALUE);var a=[],r=o;return this.children.forEachAt(l,o,function(i,s,n){(t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t)&&a.push(i),i instanceof e&&(a=a.concat(i.descendants(t,s,r))),r-=n}),a},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),u.prototype.detach.call(this)},e.prototype.formatAt=function(t,l,o,a){this.children.forEachAt(t,l,function(r,i,s){r.formatAt(i,s,o,a)})},e.prototype.insertAt=function(t,l,o){var a=this.children.find(t),r=a[0],i=a[1];if(r)r.insertAt(i,l,o);else{var s=o==null?y.create("text",l):y.create(l,o);this.appendChild(s)}},e.prototype.insertBefore=function(t,l){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(o){return t instanceof o}))throw new y.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,l)},e.prototype.length=function(){return this.children.reduce(function(t,l){return t+l.length()},0)},e.prototype.moveChildren=function(t,l){this.children.forEach(function(o){t.insertBefore(o,l)})},e.prototype.optimize=function(t){if(u.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var l=y.create(this.statics.defaultChild);this.appendChild(l),l.optimize(t)}else this.remove()},e.prototype.path=function(t,l){l===void 0&&(l=!1);var o=this.children.find(t,l),a=o[0],r=o[1],i=[[this,t]];return a instanceof e?i.concat(a.path(r,l)):(a!=null&&i.push([a,r]),i)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),u.prototype.replace.call(this,t)},e.prototype.split=function(t,l){if(l===void 0&&(l=!1),!l){if(t===0)return this;if(t===this.length())return this.next}var o=this.clone();return this.parent.insertBefore(o,this.next),this.children.forEachAt(t,this.length(),function(a,r,i){a=a.split(r,l),o.appendChild(a)}),o},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,l){var o=this,a=[],r=[];t.forEach(function(i){i.target===o.domNode&&i.type==="childList"&&(a.push.apply(a,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var s=y.find(i);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===o.domNode)&&s.detach()}}),a.filter(function(i){return i.parentNode==o.domNode}).sort(function(i,s){return i===s?0:i.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var s=null;i.nextSibling!=null&&(s=y.find(i.nextSibling));var n=c(i);(n.next!=s||n.next==null)&&(n.parent!=null&&n.parent.removeChild(o),o.insertBefore(n,s||void 0))})},e}(w.default);function c(u){var e=y.find(u);if(e==null)try{e=y.create(u)}catch(t){e=y.create(y.Scope.INLINE),[].slice.call(u.childNodes).forEach(function(l){e.domNode.appendChild(l)}),u.parentNode&&u.parentNode.replaceChild(e.domNode,u),e.attach()}return e}b.default=m},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){u(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(12),w=p(31),y=p(17),m=p(1),c=function(u){P(e,u);function e(t){var l=u.call(this,t)||this;return l.attributes=new w.default(l.domNode),l}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,l){var o=m.query(t);o instanceof k.default?this.attributes.attribute(o,l):l&&o!=null&&(t!==this.statics.blotName||this.formats()[t]!==l)&&this.replaceWith(t,l)},e.prototype.formats=function(){var t=this.attributes.values(),l=this.statics.formats(this.domNode);return l!=null&&(t[this.statics.blotName]=l),t},e.prototype.replaceWith=function(t,l){var o=u.prototype.replaceWith.call(this,t,l);return this.attributes.copy(o),o},e.prototype.update=function(t,l){var o=this;u.prototype.update.call(this,t,l),t.some(function(a){return a.target===o.domNode&&a.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,l){var o=u.prototype.wrap.call(this,t,l);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(y.default);b.default=c},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var e in u)u.hasOwnProperty(e)&&(c[e]=u[e])};return function(c,u){m(c,u);function e(){this.constructor=c}c.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(30),w=p(1),y=function(m){P(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.value=function(u){return!0},c.prototype.index=function(u,e){return this.domNode===u||this.domNode.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},c.prototype.position=function(u,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return u>0&&(t+=1),[this.parent.domNode,t]},c.prototype.value=function(){var u;return u={},u[this.statics.blotName]=this.statics.value(this.domNode)||!0,u},c.scope=w.Scope.INLINE_BLOT,c}(k.default);b.default=y},function(q,b,p){var P=p(11),k=p(3),w={attributes:{compose:function(m,c,u){typeof m!="object"&&(m={}),typeof c!="object"&&(c={});var e=k(!0,{},c);u||(e=Object.keys(e).reduce(function(l,o){return e[o]!=null&&(l[o]=e[o]),l},{}));for(var t in m)m[t]!==void 0&&c[t]===void 0&&(e[t]=m[t]);return Object.keys(e).length>0?e:void 0},diff:function(m,c){typeof m!="object"&&(m={}),typeof c!="object"&&(c={});var u=Object.keys(m).concat(Object.keys(c)).reduce(function(e,t){return P(m[t],c[t])||(e[t]=c[t]===void 0?null:c[t]),e},{});return Object.keys(u).length>0?u:void 0},transform:function(m,c,u){if(typeof m!="object")return c;if(typeof c=="object"){if(!u)return c;var e=Object.keys(c).reduce(function(t,l){return m[l]===void 0&&(t[l]=c[l]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(m){return new y(m)},length:function(m){return typeof m.delete=="number"?m.delete:typeof m.retain=="number"?m.retain:typeof m.insert=="string"?m.insert.length:1}};function y(m){this.ops=m,this.index=0,this.offset=0}y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(m){m||(m=1/0);var c=this.ops[this.index];if(c){var u=this.offset,e=w.length(c);if(m>=e-u?(m=e-u,this.index+=1,this.offset=0):this.offset+=m,typeof c.delete=="number")return{delete:m};var t={};return c.attributes&&(t.attributes=c.attributes),typeof c.retain=="number"?t.retain=m:typeof c.insert=="string"?t.insert=c.insert.substr(u,m):t.insert=c.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]?w.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 m=this.offset,c=this.index,u=this.next(),e=this.ops.slice(this.index);return this.offset=m,this.index=c,[u].concat(e)}else return[]},q.exports=w},function(q,b){var p=function(){"use strict";function P(o,a){return a!=null&&o instanceof a}var k;try{k=Map}catch(o){k=function(){}}var w;try{w=Set}catch(o){w=function(){}}var y;try{y=Promise}catch(o){y=function(){}}function m(o,a,r,i,s){typeof a=="object"&&(r=a.depth,i=a.prototype,s=a.includeNonEnumerable,a=a.circular);var n=[],f=[],T=typeof ot!="undefined";typeof a=="undefined"&&(a=!0),typeof r=="undefined"&&(r=1/0);function g(O,x){if(O===null)return null;if(x===0)return O;var v,h;if(typeof O!="object")return O;if(P(O,k))v=new k;else if(P(O,w))v=new w;else if(P(O,y))v=new y(function(L,A){O.then(function(S){L(g(S,x-1))},function(S){A(g(S,x-1))})});else if(m.__isArray(O))v=[];else if(m.__isRegExp(O))v=new RegExp(O.source,l(O)),O.lastIndex&&(v.lastIndex=O.lastIndex);else if(m.__isDate(O))v=new Date(O.getTime());else{if(T&&ot.isBuffer(O))return ot.allocUnsafe?v=ot.allocUnsafe(O.length):v=new ot(O.length),O.copy(v),v;P(O,Error)?v=Object.create(O):typeof i=="undefined"?(h=Object.getPrototypeOf(O),v=Object.create(h)):(v=Object.create(i),h=i)}if(a){var d=n.indexOf(O);if(d!=-1)return f[d];n.push(O),f.push(v)}P(O,k)&&O.forEach(function(L,A){var S=g(A,x-1),M=g(L,x-1);v.set(S,M)}),P(O,w)&&O.forEach(function(L){var A=g(L,x-1);v.add(A)});for(var E in O){var N;h&&(N=Object.getOwnPropertyDescriptor(h,E)),!(N&&N.set==null)&&(v[E]=g(O[E],x-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(O),E=0;E<R.length;E++){var B=R[E],C=Object.getOwnPropertyDescriptor(O,B);C&&!C.enumerable&&!s||(v[B]=g(O[B],x-1),C.enumerable||Object.defineProperty(v,B,{enumerable:!1}))}if(s)for(var $=Object.getOwnPropertyNames(O),E=0;E<$.length;E++){var I=$[E],C=Object.getOwnPropertyDescriptor(O,I);C&&C.enumerable||(v[I]=g(O[I],x-1),Object.defineProperty(v,I,{enumerable:!1}))}return v}return g(o,r)}m.clonePrototype=function(a){if(a===null)return null;var r=function(){};return r.prototype=a,new r};function c(o){return Object.prototype.toString.call(o)}m.__objToStr=c;function u(o){return typeof o=="object"&&c(o)==="[object Date]"}m.__isDate=u;function e(o){return typeof o=="object"&&c(o)==="[object Array]"}m.__isArray=e;function t(o){return typeof o=="object"&&c(o)==="[object RegExp]"}m.__isRegExp=t;function l(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return m.__getRegExpFlags=l,m}();typeof q=="object"&&q.exports&&(q.exports=p)},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function v(h,d){var E=[],N=!0,R=!1,B=void 0;try{for(var C=h[Symbol.iterator](),$;!(N=($=C.next()).done)&&(E.push($.value),!(d&&E.length===d));N=!0);}catch(I){R=!0,B=I}finally{try{!N&&C.return&&C.return()}finally{if(R)throw B}}return E}return function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return v(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function v(h,d){for(var E=0;E<d.length;E++){var N=d[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(h,N.key,N)}}return function(h,d,E){return d&&v(h.prototype,d),E&&v(h,E),h}}(),w=function v(h,d,E){h===null&&(h=Function.prototype);var N=Object.getOwnPropertyDescriptor(h,d);if(N===void 0){var R=Object.getPrototypeOf(h);return R===null?void 0:v(R,d,E)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(E)}},y=p(0),m=n(y),c=p(8),u=n(c),e=p(4),t=n(e),l=p(16),o=n(l),a=p(13),r=n(a),i=p(25),s=n(i);function n(v){return v&&v.__esModule?v:{default:v}}function f(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function T(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function g(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}function O(v){return v instanceof t.default||v instanceof e.BlockEmbed}var x=function(v){g(h,v);function h(d,E){f(this,h);var N=T(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return N.emitter=E.emitter,Array.isArray(E.whitelist)&&(N.whitelist=E.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return k(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(E,N){var R=this.line(E),B=P(R,2),C=B[0],$=B[1],I=this.line(E+N),L=P(I,1),A=L[0];if(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,E,N),A!=null&&C!==A&&$>0){if(C instanceof e.BlockEmbed||A instanceof e.BlockEmbed){this.optimize();return}if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1),C===A)){this.optimize();return}}else if(A instanceof r.default){var M=A.newlineIndex(0);M>-1&&A.split(M+1)}var F=A.children.head instanceof o.default?null:A.children.head;C.moveChildren(A,F),C.remove()}this.optimize()}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",E)}},{key:"formatAt",value:function(E,N,R,B){this.whitelist!=null&&!this.whitelist[R]||(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,E,N,R,B),this.optimize())}},{key:"insertAt",value:function(E,N,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[N])){if(E>=this.length())if(R==null||m.default.query(N,m.default.Scope.BLOCK)==null){var B=m.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&N.endsWith(`
`)&&(N=N.slice(0,-1)),B.insertAt(0,N,R)}else{var C=m.default.create(N,R);this.appendChild(C)}else w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,E,N,R);this.optimize()}}},{key:"insertBefore",value:function(E,N){if(E.statics.scope===m.default.Scope.INLINE_BLOT){var R=m.default.create(this.statics.defaultChild);R.appendChild(E),E=R}w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,E,N)}},{key:"leaf",value:function(E){return this.path(E).pop()||[null,-1]}},{key:"line",value:function(E){return E===this.length()?this.line(E-1):this.descendant(O,E)}},{key:"lines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(C,$,I){var L=[],A=I;return C.children.forEachAt($,I,function(S,M,F){O(S)?L.push(S):S instanceof m.default.Container&&(L=L.concat(B(S,M,A))),A-=F}),L};return R(this,E,N)}},{key:"optimize",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,E,N),E.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,E,N))}},{key:"path",value:function(E){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,E).slice(1)}},{key:"update",value:function(E){if(this.batch!==!0){var N=u.default.sources.USER;typeof E=="string"&&(N=E),Array.isArray(E)||(E=this.observer.takeRecords()),E.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,N,E),w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,E.concat([])),E.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,N,E)}}}]),h}(m.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[t.default,e.BlockEmbed,s.default],b.default=x},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SHORTKEY=b.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},k=function(){function _(j,H){var U=[],W=!0,Y=!1,et=void 0;try{for(var nt=j[Symbol.iterator](),rt;!(W=(rt=nt.next()).done)&&(U.push(rt.value),!(H&&U.length===H));W=!0);}catch(at){Y=!0,et=at}finally{try{!W&&nt.return&&nt.return()}finally{if(Y)throw et}}return U}return function(j,H){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return _(j,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function _(j,H){for(var U=0;U<H.length;U++){var W=H[U];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(j,W.key,W)}}return function(j,H,U){return H&&_(j.prototype,H),U&&_(j,U),j}}(),y=p(21),m=v(y),c=p(11),u=v(c),e=p(3),t=v(e),l=p(2),o=v(l),a=p(20),r=v(a),i=p(0),s=v(i),n=p(5),f=v(n),T=p(10),g=v(T),O=p(9),x=v(O);function v(_){return _&&_.__esModule?_:{default:_}}function h(_,j,H){return j in _?Object.defineProperty(_,j,{value:H,enumerable:!0,configurable:!0,writable:!0}):_[j]=H,_}function d(_,j){if(!(_ instanceof j))throw new TypeError("Cannot call a class as a function")}function E(_,j){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:_}function N(_,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);_.prototype=Object.create(j&&j.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(_,j):_.__proto__=j)}var R=(0,g.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(_){N(j,_),w(j,null,[{key:"match",value:function(U,W){return W=D(W),["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!W[Y]!==U[Y]&&W[Y]!==null})?!1:W.key===(U.which||U.keyCode)}}]);function j(H,U){d(this,j);var W=E(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,U));return W.bindings={},Object.keys(W.options.bindings).forEach(function(Y){Y==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||W.options.bindings[Y]&&W.addBinding(W.options.bindings[Y])}),W.addBinding({key:j.keys.ENTER,shiftKey:null},S),W.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(W.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},I),W.addBinding({key:j.keys.DELETE},{collapsed:!0},L)):(W.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),W.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},L)),W.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},A),W.addBinding({key:j.keys.DELETE},{collapsed:!1},A),W.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),W.listen(),W}return w(j,[{key:"addBinding",value:function(U){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},et=D(U);if(et==null||et.key==null)return R.warn("Attempted to add invalid keyboard binding",et);typeof W=="function"&&(W={handler:W}),typeof Y=="function"&&(Y={handler:Y}),et=(0,t.default)(et,W,Y),this.bindings[et.key]=this.bindings[et.key]||[],this.bindings[et.key].push(et)}},{key:"listen",value:function(){var U=this;this.quill.root.addEventListener("keydown",function(W){if(!W.defaultPrevented){var Y=W.which||W.keyCode,et=(U.bindings[Y]||[]).filter(function(ut){return j.match(W,ut)});if(et.length!==0){var nt=U.quill.getSelection();if(!(nt==null||!U.quill.hasFocus())){var rt=U.quill.getLine(nt.index),at=k(rt,2),ft=at[0],st=at[1],K=U.quill.getLeaf(nt.index),z=k(K,2),G=z[0],V=z[1],Z=nt.length===0?[G,V]:U.quill.getLeaf(nt.index+nt.length),J=k(Z,2),Q=J[0],tt=J[1],lt=G instanceof s.default.Text?G.value().slice(0,V):"",ct=Q instanceof s.default.Text?Q.value().slice(tt):"",it={collapsed:nt.length===0,empty:nt.length===0&&ft.length()<=1,format:U.quill.getFormat(nt),offset:st,prefix:lt,suffix:ct},gt=et.some(function(ut){if(ut.collapsed!=null&&ut.collapsed!==it.collapsed||ut.empty!=null&&ut.empty!==it.empty||ut.offset!=null&&ut.offset!==it.offset)return!1;if(Array.isArray(ut.format)){if(ut.format.every(function(dt){return it.format[dt]==null}))return!1}else if(P(ut.format)==="object"&&!Object.keys(ut.format).every(function(dt){return ut.format[dt]===!0?it.format[dt]!=null:ut.format[dt]===!1?it.format[dt]==null:(0,u.default)(ut.format[dt],it.format[dt])}))return!1;return ut.prefix!=null&&!ut.prefix.test(it.prefix)||ut.suffix!=null&&!ut.suffix.test(it.suffix)?!1:ut.handler.call(U,nt,it)!==!0});gt&&W.preventDefault()}}}})}}]),j}(x.default);C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(j,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,H){H.format.indent!=null?this.quill.format("indent","-1",f.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,f.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(j){this.quill.history.cutoff();var H=new o.default().retain(j.index).delete(j.length).insert(" ");this.quill.updateContents(H,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,f.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,H){this.quill.format("list",!1,f.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var H=this.quill.getLine(j.index),U=k(H,2),W=U[0],Y=U[1],et=(0,t.default)({},W.formats(),{list:"checked"}),nt=new o.default().retain(j.index).insert(`
`,et).retain(W.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(nt,f.default.sources.USER),this.quill.setSelection(j.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,H){var U=this.quill.getLine(j.index),W=k(U,2),Y=W[0],et=W[1],nt=new o.default().retain(j.index).insert(`
`,H.format).retain(Y.length()-et-1).retain(1,{header:null});this.quill.updateContents(nt,f.default.sources.USER),this.quill.setSelection(j.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,H){var U=H.prefix.length,W=this.quill.getLine(j.index),Y=k(W,2),et=Y[0],nt=Y[1];if(nt>U)return!0;var rt=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":rt="unchecked";break;case"[x]":rt="checked";break;case"-":case"*":rt="bullet";break;default:rt="ordered"}this.quill.insertText(j.index," ",f.default.sources.USER),this.quill.history.cutoff();var at=new o.default().retain(j.index-nt).delete(U+1).retain(et.length()-2-nt).retain(1,{list:rt});this.quill.updateContents(at,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-U,f.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var H=this.quill.getLine(j.index),U=k(H,2),W=U[0],Y=U[1],et=new o.default().retain(j.index+W.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(et,f.default.sources.USER)}},"embed left":$(C.keys.LEFT,!1),"embed left shift":$(C.keys.LEFT,!0),"embed right":$(C.keys.RIGHT,!1),"embed right shift":$(C.keys.RIGHT,!0)}};function $(_,j){var H,U=_===C.keys.LEFT?"prefix":"suffix";return H={key:_,shiftKey:j,altKey:null},h(H,U,/^$/),h(H,"handler",function(Y){var et=Y.index;_===C.keys.RIGHT&&(et+=Y.length+1);var nt=this.quill.getLeaf(et),rt=k(nt,1),at=rt[0];return at instanceof s.default.Embed?(_===C.keys.LEFT?j?this.quill.setSelection(Y.index-1,Y.length+1,f.default.sources.USER):this.quill.setSelection(Y.index-1,f.default.sources.USER):j?this.quill.setSelection(Y.index,Y.length+1,f.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,f.default.sources.USER),!1):!0}),H}function I(_,j){if(!(_.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(_.index),U=k(H,1),W=U[0],Y={};if(j.offset===0){var et=this.quill.getLine(_.index-1),nt=k(et,1),rt=nt[0];if(rt!=null&&rt.length()>1){var at=W.formats(),ft=this.quill.getFormat(_.index-1,1);Y=r.default.attributes.diff(at,ft)||{}}}var st=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(_.index-st,st,f.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(_.index-st,st,Y,f.default.sources.USER),this.quill.focus()}}function L(_,j){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(_.index>=this.quill.getLength()-H)){var U={},W=0,Y=this.quill.getLine(_.index),et=k(Y,1),nt=et[0];if(j.offset>=nt.length()-1){var rt=this.quill.getLine(_.index+1),at=k(rt,1),ft=at[0];if(ft){var st=nt.formats(),K=this.quill.getFormat(_.index,1);U=r.default.attributes.diff(st,K)||{},W=ft.length()}}this.quill.deleteText(_.index,H,f.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(_.index+W-1,H,U,f.default.sources.USER)}}function A(_){var j=this.quill.getLines(_),H={};if(j.length>1){var U=j[0].formats(),W=j[j.length-1].formats();H=r.default.attributes.diff(W,U)||{}}this.quill.deleteText(_,f.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(_.index,1,H,f.default.sources.USER),this.quill.setSelection(_.index,f.default.sources.SILENT),this.quill.focus()}function S(_,j){var H=this;_.length>0&&this.quill.scroll.deleteAt(_.index,_.length);var U=Object.keys(j.format).reduce(function(W,Y){return s.default.query(Y,s.default.Scope.BLOCK)&&!Array.isArray(j.format[Y])&&(W[Y]=j.format[Y]),W},{});this.quill.insertText(_.index,`
`,U,f.default.sources.USER),this.quill.setSelection(_.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(W){U[W]==null&&(Array.isArray(j.format[W])||W!=="link"&&H.quill.format(W,j.format[W],f.default.sources.USER))})}function M(_){return{key:C.keys.TAB,shiftKey:!_,format:{"code-block":!0},handler:function(H){var U=s.default.query("code-block"),W=H.index,Y=H.length,et=this.quill.scroll.descendant(U,W),nt=k(et,2),rt=nt[0],at=nt[1];if(rt!=null){var ft=this.quill.getIndex(rt),st=rt.newlineIndex(at,!0)+1,K=rt.newlineIndex(ft+at+Y),z=rt.domNode.textContent.slice(st,K).split(`
`);at=0,z.forEach(function(G,V){_?(rt.insertAt(st+at,U.TAB),at+=U.TAB.length,V===0?W+=U.TAB.length:Y+=U.TAB.length):G.startsWith(U.TAB)&&(rt.deleteAt(st+at,U.TAB.length),at-=U.TAB.length,V===0?W-=U.TAB.length:Y-=U.TAB.length),at+=G.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(W,Y,f.default.sources.SILENT)}}}}function F(_){return{key:_[0].toUpperCase(),shortKey:!0,handler:function(H,U){this.quill.format(_,!U.format[_],f.default.sources.USER)}}}function D(_){if(typeof _=="string"||typeof _=="number")return D({key:_});if((typeof _=="undefined"?"undefined":P(_))==="object"&&(_=(0,m.default)(_,!1)),typeof _.key=="string")if(C.keys[_.key.toUpperCase()]!=null)_.key=C.keys[_.key.toUpperCase()];else if(_.key.length===1)_.key=_.key.toUpperCase().charCodeAt(0);else return null;return _.shortKey&&(_[B]=_.shortKey,delete _.shortKey),_}b.default=C,b.SHORTKEY=B},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function r(i,s){var n=[],f=!0,T=!1,g=void 0;try{for(var O=i[Symbol.iterator](),x;!(f=(x=O.next()).done)&&(n.push(x.value),!(s&&n.length===s));f=!0);}catch(v){T=!0,g=v}finally{try{!f&&O.return&&O.return()}finally{if(T)throw g}}return n}return function(i,s){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,s);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function r(i,s,n){i===null&&(i=Function.prototype);var f=Object.getOwnPropertyDescriptor(i,s);if(f===void 0){var T=Object.getPrototypeOf(i);return T===null?void 0:r(T,s,n)}else{if("value"in f)return f.value;var g=f.get;return g===void 0?void 0:g.call(n)}},w=function(){function r(i,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,s,n){return s&&r(i.prototype,s),n&&r(i,n),i}}(),y=p(0),m=e(y),c=p(7),u=e(c);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function l(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function o(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a=function(r){o(i,r),w(i,null,[{key:"value",value:function(){}}]);function i(s,n){t(this,i);var f=l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,s));return f.selection=n,f.textNode=document.createTextNode(i.CONTENTS),f.domNode.appendChild(f.textNode),f._length=0,f}return w(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,f){if(this._length!==0)return k(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,f);for(var T=this,g=0;T!=null&&T.statics.scope!==m.default.Scope.BLOCK_BLOT;)g+=T.offset(T.parent),T=T.parent;T!=null&&(this._length=i.CONTENTS.length,T.optimize(),T.formatAt(g,i.CONTENTS.length,n,f),this._length=0)}},{key:"index",value:function(n,f){return n===this.textNode?0:k(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,f)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){k(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,f=this.selection.getNativeRange(),T=void 0,g=void 0,O=void 0;if(f!=null&&f.start.node===n&&f.end.node===n){var x=[n,f.start.offset,f.end.offset];T=x[0],g=x[1],O=x[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var v=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof u.default?(T=this.next.domNode,this.next.insertAt(0,v),this.textNode.data=i.CONTENTS):(this.textNode.data=v,this.parent.insertBefore(m.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),g!=null){var h=[g,O].map(function(E){return Math.max(0,Math.min(T.data.length,E-1))}),d=P(h,2);return g=d[0],O=d[1],{startNode:T,startOffset:g,endNode:T,endOffset:O}}}}},{key:"update",value:function(n,f){var T=this;if(n.some(function(O){return O.type==="characterData"&&O.target===T.textNode})){var g=this.restore();g&&(f.range=g)}}},{key:"value",value:function(){return""}}]),i}(m.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\uFEFF",b.default=a},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(0),k=m(P),w=p(4),y=m(w);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function u(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),u(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return o}(k.default.Container);t.allowedChildren=[y.default,w.BlockEmbed,t],b.default=t},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ColorStyle=b.ColorClass=b.ColorAttributor=void 0;var P=function(){function a(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&a(r.prototype,i),s&&a(r,s),r}}(),k=function a(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:a(f,i,s)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(s)}},w=p(0),y=m(w);function m(a){return a&&a.__esModule?a:{default:a}}function c(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function u(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 e(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 t=function(a){e(r,a);function r(){return c(this,r),u(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"value",value:function(s){var n=k(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,s);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(f){return("00"+parseInt(f).toString(16)).slice(-2)}).join("")):n}}]),r}(y.default.Attributor.Style),l=new y.default.Attributor.Class("color","ql-color",{scope:y.default.Scope.INLINE}),o=new t("color","color",{scope:y.default.Scope.INLINE});b.ColorAttributor=t,b.ColorClass=l,b.ColorStyle=o},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.sanitize=b.default=void 0;var P=function(){function o(a,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}return function(a,r,i){return r&&o(a.prototype,r),i&&o(a,i),a}}(),k=function o(a,r,i){a===null&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,r);if(s===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:o(n,r,i)}else{if("value"in s)return s.value;var f=s.get;return f===void 0?void 0:f.call(i)}},w=p(6),y=m(w);function m(o){return o&&o.__esModule?o:{default:o}}function c(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function u(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=function(o){e(a,o);function a(){return c(this,a),u(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"format",value:function(i,s){if(i!==this.statics.blotName||!s)return k(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,s);s=this.constructor.sanitize(s),this.domNode.setAttribute("href",s)}}],[{key:"create",value:function(i){var s=k(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,i);return i=this.sanitize(i),s.setAttribute("href",i),s.setAttribute("rel","noopener noreferrer"),s.setAttribute("target","_blank"),s}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return l(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(y.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function l(o,a){var r=document.createElement("a");r.href=o;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}b.default=t,b.sanitize=l},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k=function(){function a(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&a(r.prototype,i),s&&a(r,s),r}}(),w=p(23),y=u(w),m=p(107),c=u(m);function u(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")}var t=0;function l(a,r){a.setAttribute(r,a.getAttribute(r)!=="true")}var o=function(){function a(r){var i=this;e(this,a),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(s){switch(s.keyCode){case y.default.keys.ENTER:i.togglePicker();break;case y.default.keys.ESCAPE:i.escape(),s.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}return k(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var s=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){s.selectItem(n,!0)}),n.addEventListener("keydown",function(f){switch(f.keyCode){case y.default.keys.ENTER:s.selectItem(n,!0),f.preventDefault();break;case y.default.keys.ESCAPE:s.escape(),f.preventDefault();break;default:}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,s=document.createElement("span");s.classList.add("ql-picker-options"),s.setAttribute("aria-hidden","true"),s.tabIndex="-1",s.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",s.id),this.options=s,[].slice.call(this.select.options).forEach(function(n){var f=i.buildItem(n);s.appendChild(f),n.selected===!0&&i.selectItem(f)}),this.container.appendChild(s)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(s){i.container.setAttribute(s.name,s.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n!=null&&n.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),s))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":P(Event))==="object"){var f=document.createEvent("Event");f.initEvent("change",!0,!0),this.select.dispatchEvent(f)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();b.default=o},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(0),k=R(P),w=p(5),y=R(w),m=p(4),c=R(m),u=p(16),e=R(u),t=p(25),l=R(t),o=p(24),a=R(o),r=p(35),i=R(r),s=p(6),n=R(s),f=p(22),T=R(f),g=p(7),O=R(g),x=p(55),v=R(x),h=p(42),d=R(h),E=p(23),N=R(E);function R(B){return B&&B.__esModule?B:{default:B}}y.default.register({"blots/block":c.default,"blots/block/embed":m.BlockEmbed,"blots/break":e.default,"blots/container":l.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":T.default,"blots/text":O.default,"modules/clipboard":v.default,"modules/history":d.default,"modules/keyboard":N.default}),k.default.register(c.default,e.default,a.default,n.default,T.default,O.default),b.default=y.default},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(1),k=function(){function w(y){this.domNode=y,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(w.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),w.create=function(y){if(this.tagName==null)throw new P.ParchmentError("Blot definition missing tagName");var m;return Array.isArray(this.tagName)?(typeof y=="string"&&(y=y.toUpperCase(),parseInt(y).toString()===y&&(y=parseInt(y))),typeof y=="number"?m=document.createElement(this.tagName[y-1]):this.tagName.indexOf(y)>-1?m=document.createElement(y):m=document.createElement(this.tagName[0])):m=document.createElement(this.tagName),this.className&&m.classList.add(this.className),m},w.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},w.prototype.clone=function(){var y=this.domNode.cloneNode(!1);return P.create(y)},w.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},w.prototype.deleteAt=function(y,m){var c=this.isolate(y,m);c.remove()},w.prototype.formatAt=function(y,m,c,u){var e=this.isolate(y,m);if(P.query(c,P.Scope.BLOT)!=null&&u)e.wrap(c,u);else if(P.query(c,P.Scope.ATTRIBUTE)!=null){var t=P.create(this.statics.scope);e.wrap(t),t.format(c,u)}},w.prototype.insertAt=function(y,m,c){var u=c==null?P.create("text",m):P.create(m,c),e=this.split(y);this.parent.insertBefore(u,e)},w.prototype.insertInto=function(y,m){m===void 0&&(m=null),this.parent!=null&&this.parent.children.remove(this);var c=null;y.children.insertBefore(this,m),m!=null&&(c=m.domNode),(this.domNode.parentNode!=y.domNode||this.domNode.nextSibling!=c)&&y.domNode.insertBefore(this.domNode,c),this.parent=y,this.attach()},w.prototype.isolate=function(y,m){var c=this.split(y);return c.split(m),c},w.prototype.length=function(){return 1},w.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)},w.prototype.optimize=function(y){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.DATA_KEY].mutations},w.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},w.prototype.replace=function(y){y.parent!=null&&(y.parent.insertBefore(this,y.next),y.remove())},w.prototype.replaceWith=function(y,m){var c=typeof y=="string"?P.create(y,m):y;return c.replace(this),c},w.prototype.split=function(y,m){return y===0?this:this.next},w.prototype.update=function(y,m){},w.prototype.wrap=function(y,m){var c=typeof y=="string"?P.create(y,m):y;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},w.blotName="abstract",w}();b.default=k},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(12),k=p(32),w=p(33),y=p(1),m=function(){function c(u){this.attributes={},this.domNode=u,this.build()}return c.prototype.attribute=function(u,e){e?u.add(this.domNode,e)&&(u.value(this.domNode)!=null?this.attributes[u.attrName]=u:delete this.attributes[u.attrName]):(u.remove(this.domNode),delete this.attributes[u.attrName])},c.prototype.build=function(){var u=this;this.attributes={};var e=P.default.keys(this.domNode),t=k.default.keys(this.domNode),l=w.default.keys(this.domNode);e.concat(t).concat(l).forEach(function(o){var a=y.query(o,y.Scope.ATTRIBUTE);a instanceof P.default&&(u.attributes[a.attrName]=a)})},c.prototype.copy=function(u){var e=this;Object.keys(this.attributes).forEach(function(t){var l=e.attributes[t].value(e.domNode);u.format(t,l)})},c.prototype.move=function(u){var e=this;this.copy(u),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},c.prototype.values=function(){var u=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=u.attributes[t].value(u.domNode),e},{})},c}();b.default=m},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var e in u)u.hasOwnProperty(e)&&(c[e]=u[e])};return function(c,u){m(c,u);function e(){this.constructor=c}c.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(12);function w(m,c){var u=m.getAttribute("class")||"";return u.split(/\s+/).filter(function(e){return e.indexOf(c+"-")===0})}var y=function(m){P(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.keys=function(u){return(u.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},c.prototype.add=function(u,e){return this.canAdd(u,e)?(this.remove(u),u.classList.add(this.keyName+"-"+e),!0):!1},c.prototype.remove=function(u){var e=w(u,this.keyName);e.forEach(function(t){u.classList.remove(t)}),u.classList.length===0&&u.removeAttribute("class")},c.prototype.value=function(u){var e=w(u,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(u,t)?t:""},c}(k.default);b.default=y},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var e in u)u.hasOwnProperty(e)&&(c[e]=u[e])};return function(c,u){m(c,u);function e(){this.constructor=c}c.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(12);function w(m){var c=m.split("-"),u=c.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return c[0]+u}var y=function(m){P(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.keys=function(u){return(u.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},c.prototype.add=function(u,e){return this.canAdd(u,e)?(u.style[w(this.keyName)]=e,!0):!1},c.prototype.remove=function(u){u.style[w(this.keyName)]="",u.getAttribute("style")||u.removeAttribute("style")},c.prototype.value=function(u){var e=u.style[w(this.keyName)];return this.canAdd(u,e)?e:""},c}(k.default);b.default=y},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function y(m,c){for(var u=0;u<c.length;u++){var e=c[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(m,e.key,e)}}return function(m,c,u){return c&&y(m.prototype,c),u&&y(m,u),m}}();function k(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}var w=function(){function y(m,c){k(this,y),this.quill=m,this.options=c,this.modules={}}return P(y,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(u){c.modules[u]==null&&c.addModule(u)})}},{key:"addModule",value:function(c){var u=this.quill.constructor.import("modules/"+c);return this.modules[c]=new u(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),y}();w.DEFAULTS={modules:{}},w.themes={default:w},b.default=w},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function r(i,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,s,n){return s&&r(i.prototype,s),n&&r(i,n),i}}(),k=function r(i,s,n){i===null&&(i=Function.prototype);var f=Object.getOwnPropertyDescriptor(i,s);if(f===void 0){var T=Object.getPrototypeOf(i);return T===null?void 0:r(T,s,n)}else{if("value"in f)return f.value;var g=f.get;return g===void 0?void 0:g.call(n)}},w=p(0),y=u(w),m=p(7),c=u(m);function u(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function t(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function l(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var o="\uFEFF",a=function(r){l(i,r);function i(s){e(this,i);var n=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,s));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(f){n.contentNode.appendChild(f)}),n.leftGuard=document.createTextNode(o),n.rightGuard=document.createTextNode(o),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return P(i,[{key:"index",value:function(n,f){return n===this.leftGuard?0:n===this.rightGuard?1:k(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,f)}},{key:"restore",value:function(n){var f=void 0,T=void 0,g=n.data.split(o).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var O=this.prev.length();this.prev.insertAt(O,g),f={startNode:this.prev.domNode,startOffset:O+g.length}}else T=document.createTextNode(g),this.parent.insertBefore(y.default.create(T),this),f={startNode:T,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),f={startNode:this.next.domNode,startOffset:g.length}):(T=document.createTextNode(g),this.parent.insertBefore(y.default.create(T),this.next),f={startNode:T,startOffset:g.length}));return n.data=o,f}},{key:"update",value:function(n,f){var T=this;n.forEach(function(g){if(g.type==="characterData"&&(g.target===T.leftGuard||g.target===T.rightGuard)){var O=T.restore(g.target);O&&(f.range=O)}})}}]),i}(y.default.Embed);b.default=a},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.AlignStyle=b.AlignClass=b.AlignAttribute=void 0;var P=p(0),k=w(P);function w(e){return e&&e.__esModule?e:{default:e}}var y={scope:k.default.Scope.BLOCK,whitelist:["right","center","justify"]},m=new k.default.Attributor.Attribute("align","align",y),c=new k.default.Attributor.Class("align","ql-align",y),u=new k.default.Attributor.Style("align","text-align",y);b.AlignAttribute=m,b.AlignClass=c,b.AlignStyle=u},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.BackgroundStyle=b.BackgroundClass=void 0;var P=p(0),k=y(P),w=p(26);function y(u){return u&&u.__esModule?u:{default:u}}var m=new k.default.Attributor.Class("background","ql-bg",{scope:k.default.Scope.INLINE}),c=new w.ColorAttributor("background","background-color",{scope:k.default.Scope.INLINE});b.BackgroundClass=m,b.BackgroundStyle=c},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DirectionStyle=b.DirectionClass=b.DirectionAttribute=void 0;var P=p(0),k=w(P);function w(e){return e&&e.__esModule?e:{default:e}}var y={scope:k.default.Scope.BLOCK,whitelist:["rtl"]},m=new k.default.Attributor.Attribute("direction","dir",y),c=new k.default.Attributor.Class("direction","ql-direction",y),u=new k.default.Attributor.Style("direction","direction",y);b.DirectionAttribute=m,b.DirectionClass=c,b.DirectionStyle=u},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.FontClass=b.FontStyle=void 0;var P=function(){function r(i,s){for(var n=0;n<s.length;n++){var f=s[n];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(i,f.key,f)}}return function(i,s,n){return s&&r(i.prototype,s),n&&r(i,n),i}}(),k=function r(i,s,n){i===null&&(i=Function.prototype);var f=Object.getOwnPropertyDescriptor(i,s);if(f===void 0){var T=Object.getPrototypeOf(i);return T===null?void 0:r(T,s,n)}else{if("value"in f)return f.value;var g=f.get;return g===void 0?void 0:g.call(n)}},w=p(0),y=m(w);function m(r){return r&&r.__esModule?r:{default:r}}function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function e(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var t={scope:y.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new y.default.Attributor.Class("font","ql-font",t),o=function(r){e(i,r);function i(){return c(this,i),u(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return P(i,[{key:"value",value:function(n){return k(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(y.default.Attributor.Style),a=new o("font","font-family",t);b.FontStyle=a,b.FontClass=l},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SizeStyle=b.SizeClass=void 0;var P=p(0),k=w(P);function w(c){return c&&c.__esModule?c:{default:c}}var y=new k.default.Attributor.Class("size","ql-size",{scope:k.default.Scope.INLINE,whitelist:["small","large","huge"]}),m=new k.default.Attributor.Style("size","font-size",{scope:k.default.Scope.INLINE,whitelist:["10px","18px","32px"]});b.SizeClass=y,b.SizeStyle=m},function(q,b,p){"use strict";q.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(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getLastChangeIndex=b.default=void 0;var P=function(){function s(n,f){for(var T=0;T<f.length;T++){var g=f[T];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,f,T){return f&&s(n.prototype,f),T&&s(n,T),n}}(),k=p(0),w=e(k),y=p(5),m=e(y),c=p(9),u=e(c);function e(s){return s&&s.__esModule?s:{default:s}}function t(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function l(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function o(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var a=function(s){o(n,s);function n(f,T){t(this,n);var g=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,f,T));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(m.default.events.EDITOR_CHANGE,function(O,x,v,h){O!==m.default.events.TEXT_CHANGE||g.ignoreChange||(!g.options.userOnly||h===m.default.sources.USER?g.record(x,v):g.transform(x))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return P(n,[{key:"change",value:function(T,g){if(this.stack[T].length!==0){var O=this.stack[T].pop();this.stack[g].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[T],m.default.sources.USER),this.ignoreChange=!1;var x=i(O[T]);this.quill.setSelection(x)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(T,g){if(T.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(g),x=Date.now();if(this.lastRecorded+this.options.delay>x&&this.stack.undo.length>0){var v=this.stack.undo.pop();O=O.compose(v.undo),T=v.redo.compose(T)}else this.lastRecorded=x;this.stack.undo.push({redo:T,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(T){this.stack.undo.forEach(function(g){g.undo=T.transform(g.undo,!0),g.redo=T.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=T.transform(g.undo,!0),g.redo=T.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(u.default);a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(s){var n=s.ops[s.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(f){return w.default.query(f,w.default.Scope.BLOCK)!=null}):!1}function i(s){var n=s.reduce(function(T,g){return T+=g.delete||0,T},0),f=s.length()-n;return r(s)&&(f-=1),f}b.default=a,b.getLastChangeIndex=i},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BaseTooltip=void 0;var P=function(){function S(M,F){for(var D=0;D<F.length;D++){var _=F[D];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(M,_.key,_)}}return function(M,F,D){return F&&S(M.prototype,F),D&&S(M,D),M}}(),k=function S(M,F,D){M===null&&(M=Function.prototype);var _=Object.getOwnPropertyDescriptor(M,F);if(_===void 0){var j=Object.getPrototypeOf(M);return j===null?void 0:S(j,F,D)}else{if("value"in _)return _.value;var H=_.get;return H===void 0?void 0:H.call(D)}},w=p(3),y=x(w),m=p(2),c=x(m),u=p(8),e=x(u),t=p(23),l=x(t),o=p(34),a=x(o),r=p(59),i=x(r),s=p(60),n=x(s),f=p(28),T=x(f),g=p(61),O=x(g);function x(S){return S&&S.__esModule?S:{default:S}}function v(S,M){if(!(S instanceof M))throw new TypeError("Cannot call a class as a function")}function h(S,M){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:S}function d(S,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);S.prototype=Object.create(M&&M.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(S,M):S.__proto__=M)}var E=[!1,"center","right","justify"],N=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],R=[!1,"serif","monospace"],B=["1","2","3",!1],C=["small",!1,"large","huge"],$=function(S){d(M,S);function M(F,D){v(this,M);var _=h(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,F,D)),j=function H(U){if(!document.body.contains(F.root))return document.body.removeEventListener("click",H);_.tooltip!=null&&!_.tooltip.root.contains(U.target)&&document.activeElement!==_.tooltip.textbox&&!_.quill.hasFocus()&&_.tooltip.hide(),_.pickers!=null&&_.pickers.forEach(function(W){W.container.contains(U.target)||W.close()})};return F.emitter.listenDOM("click",document.body,j),_}return P(M,[{key:"addModule",value:function(D){var _=k(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,D);return D==="toolbar"&&this.extendToolbar(_),_}},{key:"buildButtons",value:function(D,_){D.forEach(function(j){var H=j.getAttribute("class")||"";H.split(/\s+/).forEach(function(U){if(U.startsWith("ql-")&&(U=U.slice(3),_[U]!=null))if(U==="direction")j.innerHTML=_[U][""]+_[U].rtl;else if(typeof _[U]=="string")j.innerHTML=_[U];else{var W=j.value||"";W!=null&&_[U][W]&&(j.innerHTML=_[U][W])}})})}},{key:"buildPickers",value:function(D,_){var j=this;this.pickers=D.map(function(U){if(U.classList.contains("ql-align"))return U.querySelector("option")==null&&A(U,E),new n.default(U,_.align);if(U.classList.contains("ql-background")||U.classList.contains("ql-color")){var W=U.classList.contains("ql-background")?"background":"color";return U.querySelector("option")==null&&A(U,N,W==="background"?"#ffffff":"#000000"),new i.default(U,_[W])}else return U.querySelector("option")==null&&(U.classList.contains("ql-font")?A(U,R):U.classList.contains("ql-header")?A(U,B):U.classList.contains("ql-size")&&A(U,C)),new T.default(U)});var H=function(){j.pickers.forEach(function(W){W.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,H)}}]),M}(a.default);$.DEFAULTS=(0,y.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var D=new FileReader;D.onload=function(_){var j=M.quill.getSelection(!0);M.quill.updateContents(new c.default().retain(j.index).delete(j.length).insert({image:_.target.result}),e.default.sources.USER),M.quill.setSelection(j.index+1,e.default.sources.SILENT),F.value=""},D.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(S){d(M,S);function M(F,D){v(this,M);var _=h(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,F,D));return _.textbox=_.root.querySelector('input[type="text"]'),_.listen(),_}return P(M,[{key:"listen",value:function(){var D=this;this.textbox.addEventListener("keydown",function(_){l.default.match(_,"enter")?(D.save(),_.preventDefault()):l.default.match(_,"escape")&&(D.cancel(),_.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),_!=null?this.textbox.value=_: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 _=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=_;break}case"video":D=L(D);case"formula":{if(!D)break;var j=this.quill.getSelection(!0);if(j!=null){var H=j.index+j.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),D,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",e.default.sources.USER),this.quill.setSelection(H+2,e.default.sources.USER)}break}default:}this.textbox.value="",this.hide()}}]),M}(O.default);function L(S){var M=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":S}function A(S,M){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(D){var _=document.createElement("option");D===F?_.setAttribute("selected","selected"):_.setAttribute("value",D),S.appendChild(_)})}b.BaseTooltip=I,b.default=$},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function k(){this.head=this.tail=null,this.length=0}return k.prototype.append=function(){for(var w=[],y=0;y<arguments.length;y++)w[y]=arguments[y];this.insertBefore(w[0],null),w.length>1&&this.append.apply(this,w.slice(1))},k.prototype.contains=function(w){for(var y,m=this.iterator();y=m();)if(y===w)return!0;return!1},k.prototype.insertBefore=function(w,y){w&&(w.next=y,y!=null?(w.prev=y.prev,y.prev!=null&&(y.prev.next=w),y.prev=w,y===this.head&&(this.head=w)):this.tail!=null?(this.tail.next=w,w.prev=this.tail,this.tail=w):(w.prev=null,this.head=this.tail=w),this.length+=1)},k.prototype.offset=function(w){for(var y=0,m=this.head;m!=null;){if(m===w)return y;y+=m.length(),m=m.next}return-1},k.prototype.remove=function(w){this.contains(w)&&(w.prev!=null&&(w.prev.next=w.next),w.next!=null&&(w.next.prev=w.prev),w===this.head&&(this.head=w.next),w===this.tail&&(this.tail=w.prev),this.length-=1)},k.prototype.iterator=function(w){return w===void 0&&(w=this.head),function(){var y=w;return w!=null&&(w=w.next),y}},k.prototype.find=function(w,y){y===void 0&&(y=!1);for(var m,c=this.iterator();m=c();){var u=m.length();if(w<u||y&&w===u&&(m.next==null||m.next.length()!==0))return[m,w];w-=u}return[null,0]},k.prototype.forEach=function(w){for(var y,m=this.iterator();y=m();)w(y)},k.prototype.forEachAt=function(w,y,m){if(!(y<=0))for(var c=this.find(w),u=c[0],e=c[1],t,l=w-e,o=this.iterator(u);(t=o())&&l<w+y;){var a=t.length();w>l?m(t,w-l,Math.min(y,l+a-w)):m(t,0,Math.min(a,w+y-l)),l+=a}},k.prototype.map=function(w){return this.reduce(function(y,m){return y.push(w(m)),y},[])},k.prototype.reduce=function(w,y){for(var m,c=this.iterator();m=c();)y=w(y,m);return y},k}();b.default=P},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){u(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(17),w=p(1),y={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},m=100,c=function(u){P(e,u);function e(t){var l=u.call(this,t)||this;return l.scroll=l,l.observer=new MutationObserver(function(o){l.update(o)}),l.observer.observe(l.domNode,y),l.attach(),l}return e.prototype.detach=function(){u.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,l){this.update(),t===0&&l===this.length()?this.children.forEach(function(o){o.remove()}):u.prototype.deleteAt.call(this,t,l)},e.prototype.formatAt=function(t,l,o,a){this.update(),u.prototype.formatAt.call(this,t,l,o,a)},e.prototype.insertAt=function(t,l,o){this.update(),u.prototype.insertAt.call(this,t,l,o)},e.prototype.optimize=function(t,l){var o=this;t===void 0&&(t=[]),l===void 0&&(l={}),u.prototype.optimize.call(this,l);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)t.push(a.pop());for(var r=function(f,T){T===void 0&&(T=!0),!(f==null||f===o)&&f.domNode.parentNode!=null&&(f.domNode[w.DATA_KEY].mutations==null&&(f.domNode[w.DATA_KEY].mutations=[]),T&&r(f.parent))},i=function(f){f.domNode[w.DATA_KEY]==null||f.domNode[w.DATA_KEY].mutations==null||(f instanceof k.default&&f.children.forEach(i),f.optimize(l))},s=t,n=0;s.length>0;n+=1){if(n>=m)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(function(f){var T=w.find(f.target,!0);T!=null&&(T.domNode===f.target&&(f.type==="childList"?(r(w.find(f.previousSibling,!1)),[].forEach.call(f.addedNodes,function(g){var O=w.find(g,!1);r(O,!1),O instanceof k.default&&O.children.forEach(function(x){r(x,!1)})})):f.type==="attributes"&&r(T.prev)),r(T))}),this.children.forEach(i),s=[].slice.call(this.observer.takeRecords()),a=s.slice();a.length>0;)t.push(a.pop())}},e.prototype.update=function(t,l){var o=this;l===void 0&&(l={}),t=t||this.observer.takeRecords(),t.map(function(a){var r=w.find(a.target,!0);return r==null?null:r.domNode[w.DATA_KEY].mutations==null?(r.domNode[w.DATA_KEY].mutations=[a],r):(r.domNode[w.DATA_KEY].mutations.push(a),null)}).forEach(function(a){a==null||a===o||a.domNode[w.DATA_KEY]==null||a.update(a.domNode[w.DATA_KEY].mutations||[],l)}),this.domNode[w.DATA_KEY].mutations!=null&&u.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,l),this.optimize(t,l)},e.blotName="scroll",e.defaultChild="block",e.scope=w.Scope.BLOCK_BLOT,e.tagName="DIV",e}(k.default);b.default=c},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,e){u.__proto__=e}||function(u,e){for(var t in e)e.hasOwnProperty(t)&&(u[t]=e[t])};return function(u,e){c(u,e);function t(){this.constructor=u}u.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(18),w=p(1);function y(c,u){if(Object.keys(c).length!==Object.keys(u).length)return!1;for(var e in c)if(c[e]!==u[e])return!1;return!0}var m=function(c){P(u,c);function u(){return c!==null&&c.apply(this,arguments)||this}return u.formats=function(e){if(e.tagName!==u.tagName)return c.formats.call(this,e)},u.prototype.format=function(e,t){var l=this;e===this.statics.blotName&&!t?(this.children.forEach(function(o){o instanceof k.default||(o=o.wrap(u.blotName,!0)),l.attributes.copy(o)}),this.unwrap()):c.prototype.format.call(this,e,t)},u.prototype.formatAt=function(e,t,l,o){if(this.formats()[l]!=null||w.query(l,w.Scope.ATTRIBUTE)){var a=this.isolate(e,t);a.format(l,o)}else c.prototype.formatAt.call(this,e,t,l,o)},u.prototype.optimize=function(e){c.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var l=this.next;l instanceof u&&l.prev===this&&y(t,l.formats())&&(l.moveChildren(this),l.remove())},u.blotName="inline",u.scope=w.Scope.INLINE_BLOT,u.tagName="SPAN",u}(k.default);b.default=m},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var e in u)u.hasOwnProperty(e)&&(c[e]=u[e])};return function(c,u){m(c,u);function e(){this.constructor=c}c.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(18),w=p(1),y=function(m){P(c,m);function c(){return m!==null&&m.apply(this,arguments)||this}return c.formats=function(u){var e=w.query(c.blotName).tagName;if(u.tagName!==e)return m.formats.call(this,u)},c.prototype.format=function(u,e){w.query(u,w.Scope.BLOCK)!=null&&(u===this.statics.blotName&&!e?this.replaceWith(c.blotName):m.prototype.format.call(this,u,e))},c.prototype.formatAt=function(u,e,t,l){w.query(t,w.Scope.BLOCK)!=null?this.format(t,l):m.prototype.formatAt.call(this,u,e,t,l)},c.prototype.insertAt=function(u,e,t){if(t==null||w.query(e,w.Scope.INLINE)!=null)m.prototype.insertAt.call(this,u,e,t);else{var l=this.split(u),o=w.create(e,t);l.parent.insertBefore(o,l)}},c.prototype.update=function(u,e){navigator.userAgent.match(/Trident/)?this.build():m.prototype.update.call(this,u,e)},c.blotName="block",c.scope=w.Scope.BLOCK_BLOT,c.tagName="P",c}(k.default);b.default=y},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,c){m.__proto__=c}||function(m,c){for(var u in c)c.hasOwnProperty(u)&&(m[u]=c[u])};return function(m,c){y(m,c);function u(){this.constructor=m}m.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(19),w=function(y){P(m,y);function m(){return y!==null&&y.apply(this,arguments)||this}return m.formats=function(c){},m.prototype.format=function(c,u){y.prototype.formatAt.call(this,0,this.length(),c,u)},m.prototype.formatAt=function(c,u,e,t){c===0&&u===this.length()?this.format(e,t):y.prototype.formatAt.call(this,c,u,e,t)},m.prototype.formats=function(){return this.statics.formats(this.domNode)},m}(k.default);b.default=w},function(q,b,p){"use strict";var P=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,u){c.__proto__=u}||function(c,u){for(var e in u)u.hasOwnProperty(e)&&(c[e]=u[e])};return function(c,u){m(c,u);function e(){this.constructor=c}c.prototype=u===null?Object.create(u):(e.prototype=u.prototype,new e)}}();Object.defineProperty(b,"__esModule",{value:!0});var k=p(19),w=p(1),y=function(m){P(c,m);function c(u){var e=m.call(this,u)||this;return e.text=e.statics.value(e.domNode),e}return c.create=function(u){return document.createTextNode(u)},c.value=function(u){var e=u.data;return e.normalize&&(e=e.normalize()),e},c.prototype.deleteAt=function(u,e){this.domNode.data=this.text=this.text.slice(0,u)+this.text.slice(u+e)},c.prototype.index=function(u,e){return this.domNode===u?e:-1},c.prototype.insertAt=function(u,e,t){t==null?(this.text=this.text.slice(0,u)+e+this.text.slice(u),this.domNode.data=this.text):m.prototype.insertAt.call(this,u,e,t)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(u){m.prototype.optimize.call(this,u),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(u,e){return e===void 0&&(e=!1),[this.domNode,u]},c.prototype.split=function(u,e){if(e===void 0&&(e=!1),!e){if(u===0)return this;if(u===this.length())return this.next}var t=w.create(this.domNode.splitText(u));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},c.prototype.update=function(u,e){var t=this;u.some(function(l){return l.type==="characterData"&&l.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=w.Scope.INLINE_BLOT,c}(k.default);b.default=y},function(q,b,p){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var k=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(w,y){return arguments.length>1&&!this.contains(w)==!y?y:k.call(this,w)}}String.prototype.startsWith||(String.prototype.startsWith=function(w,y){return y=y||0,this.substr(y,w.length)===w}),String.prototype.endsWith||(String.prototype.endsWith=function(w,y){var m=this.toString();(typeof y!="number"||!isFinite(y)||Math.floor(y)!==y||y>m.length)&&(y=m.length),y-=w.length;var c=m.indexOf(w,y);return c!==-1&&c===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 m=Object(this),c=m.length>>>0,u=arguments[1],e,t=0;t<c;t++)if(e=m[t],y.call(u,e,t,m))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(q,b){var p=-1,P=1,k=0;function w(n,f,T){if(n==f)return n?[[k,n]]:[];(T<0||n.length<T)&&(T=null);var g=u(n,f),O=n.substring(0,g);n=n.substring(g),f=f.substring(g),g=e(n,f);var x=n.substring(n.length-g);n=n.substring(0,n.length-g),f=f.substring(0,f.length-g);var v=y(n,f);return O&&v.unshift([k,O]),x&&v.push([k,x]),l(v),T!=null&&(v=r(v,T)),v=i(v),v}function y(n,f){var T;if(!n)return[[P,f]];if(!f)return[[p,n]];var g=n.length>f.length?n:f,O=n.length>f.length?f:n,x=g.indexOf(O);if(x!=-1)return T=[[P,g.substring(0,x)],[k,O],[P,g.substring(x+O.length)]],n.length>f.length&&(T[0][0]=T[2][0]=p),T;if(O.length==1)return[[p,n],[P,f]];var v=t(n,f);if(v){var h=v[0],d=v[1],E=v[2],N=v[3],R=v[4],B=w(h,E),C=w(d,N);return B.concat([[k,R]],C)}return m(n,f)}function m(n,f){for(var T=n.length,g=f.length,O=Math.ceil((T+g)/2),x=O,v=2*O,h=new Array(v),d=new Array(v),E=0;E<v;E++)h[E]=-1,d[E]=-1;h[x+1]=0,d[x+1]=0;for(var N=T-g,R=N%2!=0,B=0,C=0,$=0,I=0,L=0;L<O;L++){for(var A=-L+B;A<=L-C;A+=2){var S=x+A,M;A==-L||A!=L&&h[S-1]<h[S+1]?M=h[S+1]:M=h[S-1]+1;for(var F=M-A;M<T&&F<g&&n.charAt(M)==f.charAt(F);)M++,F++;if(h[S]=M,M>T)C+=2;else if(F>g)B+=2;else if(R){var D=x+N-A;if(D>=0&&D<v&&d[D]!=-1){var _=T-d[D];if(M>=_)return c(n,f,M,F)}}}for(var j=-L+$;j<=L-I;j+=2){var D=x+j,_;j==-L||j!=L&&d[D-1]<d[D+1]?_=d[D+1]:_=d[D-1]+1;for(var H=_-j;_<T&&H<g&&n.charAt(T-_-1)==f.charAt(g-H-1);)_++,H++;if(d[D]=_,_>T)I+=2;else if(H>g)$+=2;else if(!R){var S=x+N-j;if(S>=0&&S<v&&h[S]!=-1){var M=h[S],F=x+M-S;if(_=T-_,M>=_)return c(n,f,M,F)}}}}return[[p,n],[P,f]]}function c(n,f,T,g){var O=n.substring(0,T),x=f.substring(0,g),v=n.substring(T),h=f.substring(g),d=w(O,x),E=w(v,h);return d.concat(E)}function u(n,f){if(!n||!f||n.charAt(0)!=f.charAt(0))return 0;for(var T=0,g=Math.min(n.length,f.length),O=g,x=0;T<O;)n.substring(x,O)==f.substring(x,O)?(T=O,x=T):g=O,O=Math.floor((g-T)/2+T);return O}function e(n,f){if(!n||!f||n.charAt(n.length-1)!=f.charAt(f.length-1))return 0;for(var T=0,g=Math.min(n.length,f.length),O=g,x=0;T<O;)n.substring(n.length-O,n.length-x)==f.substring(f.length-O,f.length-x)?(T=O,x=T):g=O,O=Math.floor((g-T)/2+T);return O}function t(n,f){var T=n.length>f.length?n:f,g=n.length>f.length?f:n;if(T.length<4||g.length*2<T.length)return null;function O(C,$,I){for(var L=C.substring(I,I+Math.floor(C.length/4)),A=-1,S="",M,F,D,_;(A=$.indexOf(L,A+1))!=-1;){var j=u(C.substring(I),$.substring(A)),H=e(C.substring(0,I),$.substring(0,A));S.length<H+j&&(S=$.substring(A-H,A)+$.substring(A,A+j),M=C.substring(0,I-H),F=C.substring(I+j),D=$.substring(0,A-H),_=$.substring(A+j))}return S.length*2>=C.length?[M,F,D,_,S]:null}var x=O(T,g,Math.ceil(T.length/4)),v=O(T,g,Math.ceil(T.length/2)),h;if(!x&&!v)return null;v?x?h=x[4].length>v[4].length?x:v:h=v:h=x;var d,E,N,R;n.length>f.length?(d=h[0],E=h[1],N=h[2],R=h[3]):(N=h[0],R=h[1],d=h[2],E=h[3]);var B=h[4];return[d,E,N,R,B]}function l(n){n.push([k,""]);for(var f=0,T=0,g=0,O="",x="",v;f<n.length;)switch(n[f][0]){case P:g++,x+=n[f][1],f++;break;case p:T++,O+=n[f][1],f++;break;case k:T+g>1?(T!==0&&g!==0&&(v=u(x,O),v!==0&&(f-T-g>0&&n[f-T-g-1][0]==k?n[f-T-g-1][1]+=x.substring(0,v):(n.splice(0,0,[k,x.substring(0,v)]),f++),x=x.substring(v),O=O.substring(v)),v=e(x,O),v!==0&&(n[f][1]=x.substring(x.length-v)+n[f][1],x=x.substring(0,x.length-v),O=O.substring(0,O.length-v))),T===0?n.splice(f-g,T+g,[P,x]):g===0?n.splice(f-T,T+g,[p,O]):n.splice(f-T-g,T+g,[p,O],[P,x]),f=f-T-g+(T?1:0)+(g?1:0)+1):f!==0&&n[f-1][0]==k?(n[f-1][1]+=n[f][1],n.splice(f,1)):f++,g=0,T=0,O="",x="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(f=1;f<n.length-1;)n[f-1][0]==k&&n[f+1][0]==k&&(n[f][1].substring(n[f][1].length-n[f-1][1].length)==n[f-1][1]?(n[f][1]=n[f-1][1]+n[f][1].substring(0,n[f][1].length-n[f-1][1].length),n[f+1][1]=n[f-1][1]+n[f+1][1],n.splice(f-1,1),h=!0):n[f][1].substring(0,n[f+1][1].length)==n[f+1][1]&&(n[f-1][1]+=n[f+1][1],n[f][1]=n[f][1].substring(n[f+1][1].length)+n[f+1][1],n.splice(f+1,1),h=!0)),f++;h&&l(n)}var o=w;o.INSERT=P,o.DELETE=p,o.EQUAL=k,q.exports=o;function a(n,f){if(f===0)return[k,n];for(var T=0,g=0;g<n.length;g++){var O=n[g];if(O[0]===p||O[0]===k){var x=T+O[1].length;if(f===x)return[g+1,n];if(f<x){n=n.slice();var v=f-T,h=[O[0],O[1].slice(0,v)],d=[O[0],O[1].slice(v)];return n.splice(g,1,h,d),[g+1,n]}else T=x}}throw new Error("cursor_pos is out of bounds!")}function r(n,f){var T=a(n,f),g=T[1],O=T[0],x=g[O],v=g[O+1];if(x==null)return n;if(x[0]!==k)return n;if(v!=null&&x[1]+v[1]===v[1]+x[1])return g.splice(O,2,v,x),s(g,O,2);if(v!=null&&v[1].indexOf(x[1])===0){g.splice(O,2,[v[0],x[1]],[0,x[1]]);var h=v[1].slice(x[1].length);return h.length>0&&g.splice(O+2,0,[v[0],h]),s(g,O,3)}else return n}function i(n){for(var f=!1,T=function(v){return v.charCodeAt(0)>=56320&&v.charCodeAt(0)<=57343},g=function(v){return v.charCodeAt(v.length-1)>=55296&&v.charCodeAt(v.length-1)<=56319},O=2;O<n.length;O+=1)n[O-2][0]===k&&g(n[O-2][1])&&n[O-1][0]===p&&T(n[O-1][1])&&n[O][0]===P&&T(n[O][1])&&(f=!0,n[O-1][1]=n[O-2][1].slice(-1)+n[O-1][1],n[O][1]=n[O-2][1].slice(-1)+n[O][1],n[O-2][1]=n[O-2][1].slice(0,-1));if(!f)return n;for(var x=[],O=0;O<n.length;O+=1)n[O][1].length>0&&x.push(n[O]);return x}function s(n,f,T){for(var g=f+T-1;g>=0&&g>=f-1;g--)if(g+1<n.length){var O=n[g],x=n[g+1];O[0]===x[1]&&n.splice(g,2,[O[0],O[1]+x[1]])}return n}},function(q,b){b=q.exports=typeof Object.keys=="function"?Object.keys:p,b.shim=p;function p(P){var k=[];for(var w in P)k.push(w);return k}},function(q,b){var p=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";b=q.exports=p?P:k,b.supported=P;function P(w){return Object.prototype.toString.call(w)=="[object Arguments]"}b.unsupported=k;function k(w){return w&&typeof w=="object"&&typeof w.length=="number"&&Object.prototype.hasOwnProperty.call(w,"callee")&&!Object.prototype.propertyIsEnumerable.call(w,"callee")||!1}},function(q,b){"use strict";var p=Object.prototype.hasOwnProperty,P="~";function k(){}Object.create&&(k.prototype=Object.create(null),new k().__proto__||(P=!1));function w(m,c,u){this.fn=m,this.context=c,this.once=u||!1}function y(){this._events=new k,this._eventsCount=0}y.prototype.eventNames=function(){var c=[],u,e;if(this._eventsCount===0)return c;for(e in u=this._events)p.call(u,e)&&c.push(P?e.slice(1):e);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},y.prototype.listeners=function(c,u){var e=P?P+c:c,t=this._events[e];if(u)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var l=0,o=t.length,a=new Array(o);l<o;l++)a[l]=t[l].fn;return a},y.prototype.emit=function(c,u,e,t,l,o){var a=P?P+c:c;if(!this._events[a])return!1;var r=this._events[a],i=arguments.length,s,n;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,u),!0;case 3:return r.fn.call(r.context,u,e),!0;case 4:return r.fn.call(r.context,u,e,t),!0;case 5:return r.fn.call(r.context,u,e,t,l),!0;case 6:return r.fn.call(r.context,u,e,t,l,o),!0}for(n=1,s=new Array(i-1);n<i;n++)s[n-1]=arguments[n];r.fn.apply(r.context,s)}else{var f=r.length,T;for(n=0;n<f;n++)switch(r[n].once&&this.removeListener(c,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,u);break;case 3:r[n].fn.call(r[n].context,u,e);break;case 4:r[n].fn.call(r[n].context,u,e,t);break;default:if(!s)for(T=1,s=new Array(i-1);T<i;T++)s[T-1]=arguments[T];r[n].fn.apply(r[n].context,s)}}return!0},y.prototype.on=function(c,u,e){var t=new w(u,e||this),l=P?P+c:c;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],t]:this._events[l].push(t):(this._events[l]=t,this._eventsCount++),this},y.prototype.once=function(c,u,e){var t=new w(u,e||this,!0),l=P?P+c:c;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],t]:this._events[l].push(t):(this._events[l]=t,this._eventsCount++),this},y.prototype.removeListener=function(c,u,e,t){var l=P?P+c:c;if(!this._events[l])return this;if(!u)return--this._eventsCount===0?this._events=new k:delete this._events[l],this;var o=this._events[l];if(o.fn)o.fn===u&&(!t||o.once)&&(!e||o.context===e)&&(--this._eventsCount===0?this._events=new k:delete this._events[l]);else{for(var a=0,r=[],i=o.length;a<i;a++)(o[a].fn!==u||t&&!o[a].once||e&&o[a].context!==e)&&r.push(o[a]);r.length?this._events[l]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new k:delete this._events[l]}return this},y.prototype.removeAllListeners=function(c){var u;return c?(u=P?P+c:c,this._events[u]&&(--this._eventsCount===0?this._events=new k:delete this._events[u])):(this._events=new k,this._eventsCount=0),this},y.prototype.off=y.prototype.removeListener,y.prototype.addListener=y.prototype.on,y.prototype.setMaxListeners=function(){return this},y.prefixed=P,y.EventEmitter=y,typeof q!="undefined"&&(q.exports=y)},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.matchText=b.matchSpacing=b.matchNewline=b.matchBlot=b.matchAttributor=b.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(K){return typeof K}:function(K){return K&&typeof Symbol=="function"&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},k=function(){function K(z,G){var V=[],Z=!0,J=!1,Q=void 0;try{for(var tt=z[Symbol.iterator](),lt;!(Z=(lt=tt.next()).done)&&(V.push(lt.value),!(G&&V.length===G));Z=!0);}catch(ct){J=!0,Q=ct}finally{try{!Z&&tt.return&&tt.return()}finally{if(J)throw Q}}return V}return function(z,G){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return K(z,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function K(z,G){for(var V=0;V<G.length;V++){var Z=G[V];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(z,Z.key,Z)}}return function(z,G,V){return G&&K(z.prototype,G),V&&K(z,V),z}}(),y=p(3),m=d(y),c=p(2),u=d(c),e=p(0),t=d(e),l=p(5),o=d(l),a=p(10),r=d(a),i=p(9),s=d(i),n=p(36),f=p(37),T=p(13),g=d(T),O=p(26),x=p(38),v=p(39),h=p(40);function d(K){return K&&K.__esModule?K:{default:K}}function E(K,z,G){return z in K?Object.defineProperty(K,z,{value:G,enumerable:!0,configurable:!0,writable:!0}):K[z]=G,K}function N(K,z){if(!(K instanceof z))throw new TypeError("Cannot call a class as a function")}function R(K,z){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:K}function B(K,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);K.prototype=Object.create(z&&z.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(K,z):K.__proto__=z)}var C=(0,r.default)("quill:clipboard"),$="__ql-matcher",I=[[Node.TEXT_NODE,st],[Node.TEXT_NODE,rt],["br",Y],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,at],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,ft],["li",nt],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",et]],L=[n.AlignAttribute,x.DirectionAttribute].reduce(function(K,z){return K[z.keyName]=z,K},{}),A=[n.AlignStyle,f.BackgroundStyle,O.ColorStyle,x.DirectionStyle,v.FontStyle,h.SizeStyle].reduce(function(K,z){return K[z.keyName]=z,K},{}),S=function(K){B(z,K);function z(G,V){N(this,z);var Z=R(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,G,V));return Z.quill.root.addEventListener("paste",Z.onPaste.bind(Z)),Z.container=Z.quill.addContainer("ql-clipboard"),Z.container.setAttribute("contenteditable",!0),Z.container.setAttribute("tabindex",-1),Z.matchers=[],I.concat(Z.options.matchers).forEach(function(J){var Q=k(J,2),tt=Q[0],lt=Q[1];!V.matchVisual&&lt===at||Z.addMatcher(tt,lt)}),Z}return w(z,[{key:"addMatcher",value:function(V,Z){this.matchers.push([V,Z])}},{key:"convert",value:function(V){if(typeof V=="string")return this.container.innerHTML=V.replace(/\>\r?\n +\</g,"><"),this.convert();var Z=this.quill.getFormat(this.quill.selection.savedRange.index);if(Z[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",new u.default().insert(J,E({},g.default.blotName,Z[g.default.blotName]))}var Q=this.prepareMatching(),tt=k(Q,2),lt=tt[0],ct=tt[1],it=j(this.container,lt,ct);return D(it,`
`)&&it.ops[it.ops.length-1].attributes==null&&(it=it.compose(new u.default().retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(V,Z){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.default.sources.API;if(typeof V=="string")this.quill.setContents(this.convert(V),Z),this.quill.setSelection(0,o.default.sources.SILENT);else{var Q=this.convert(Z);this.quill.updateContents(new u.default().retain(V).concat(Q),J),this.quill.setSelection(V+Q.length(),o.default.sources.SILENT)}}},{key:"onPaste",value:function(V){var Z=this;if(!(V.defaultPrevented||!this.quill.isEnabled())){var J=this.quill.getSelection(),Q=new u.default().retain(J.index),tt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(o.default.sources.SILENT),setTimeout(function(){Q=Q.concat(Z.convert()).delete(J.length),Z.quill.updateContents(Q,o.default.sources.USER),Z.quill.setSelection(Q.length()-J.length,o.default.sources.SILENT),Z.quill.scrollingContainer.scrollTop=tt,Z.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var V=this,Z=[],J=[];return this.matchers.forEach(function(Q){var tt=k(Q,2),lt=tt[0],ct=tt[1];switch(lt){case Node.TEXT_NODE:J.push(ct);break;case Node.ELEMENT_NODE:Z.push(ct);break;default:[].forEach.call(V.container.querySelectorAll(lt),function(it){it[$]=it[$]||[],it[$].push(ct)});break}}),[Z,J]}}]),z}(s.default);S.DEFAULTS={matchers:[],matchVisual:!0};function M(K,z,G){return(typeof z=="undefined"?"undefined":P(z))==="object"?Object.keys(z).reduce(function(V,Z){return M(V,Z,z[Z])},K):K.reduce(function(V,Z){return Z.attributes&&Z.attributes[z]?V.push(Z):V.insert(Z.insert,(0,m.default)({},E({},z,G),Z.attributes))},new u.default)}function F(K){if(K.nodeType!==Node.ELEMENT_NODE)return{};var z="__ql-computed-style";return K[z]||(K[z]=window.getComputedStyle(K))}function D(K,z){for(var G="",V=K.ops.length-1;V>=0&&G.length<z.length;--V){var Z=K.ops[V];if(typeof Z.insert!="string")break;G=Z.insert+G}return G.slice(-1*z.length)===z}function _(K){if(K.childNodes.length===0)return!1;var z=F(K);return["block","list-item"].indexOf(z.display)>-1}function j(K,z,G){return K.nodeType===K.TEXT_NODE?G.reduce(function(V,Z){return Z(K,V)},new u.default):K.nodeType===K.ELEMENT_NODE?[].reduce.call(K.childNodes||[],function(V,Z){var J=j(Z,z,G);return Z.nodeType===K.ELEMENT_NODE&&(J=z.reduce(function(Q,tt){return tt(Z,Q)},J),J=(Z[$]||[]).reduce(function(Q,tt){return tt(Z,Q)},J)),V.concat(J)},new u.default):new u.default}function H(K,z,G){return M(G,K,!0)}function U(K,z){var G=t.default.Attributor.Attribute.keys(K),V=t.default.Attributor.Class.keys(K),Z=t.default.Attributor.Style.keys(K),J={};return G.concat(V).concat(Z).forEach(function(Q){var tt=t.default.query(Q,t.default.Scope.ATTRIBUTE);tt!=null&&(J[tt.attrName]=tt.value(K),J[tt.attrName])||(tt=L[Q],tt!=null&&(tt.attrName===Q||tt.keyName===Q)&&(J[tt.attrName]=tt.value(K)||void 0),tt=A[Q],tt!=null&&(tt.attrName===Q||tt.keyName===Q)&&(tt=A[Q],J[tt.attrName]=tt.value(K)||void 0))}),Object.keys(J).length>0&&(z=M(z,J)),z}function W(K,z){var G=t.default.query(K);if(G==null)return z;if(G.prototype instanceof t.default.Embed){var V={},Z=G.value(K);Z!=null&&(V[G.blotName]=Z,z=new u.default().insert(V,G.formats(K)))}else typeof G.formats=="function"&&(z=M(z,G.blotName,G.formats(K)));return z}function Y(K,z){return D(z,`
`)||z.insert(`
`),z}function et(){return new u.default}function nt(K,z){var G=t.default.query(K);if(G==null||G.blotName!=="list-item"||!D(z,`
`))return z;for(var V=-1,Z=K.parentNode;!Z.classList.contains("ql-clipboard");)(t.default.query(Z)||{}).blotName==="list"&&(V+=1),Z=Z.parentNode;return V<=0?z:z.compose(new u.default().retain(z.length()-1).retain(1,{indent:V}))}function rt(K,z){return D(z,`
`)||(_(K)||z.length()>0&&K.nextSibling&&_(K.nextSibling))&&z.insert(`
`),z}function at(K,z){if(_(K)&&K.nextElementSibling!=null&&!D(z,`
`)){var G=K.offsetHeight+parseFloat(F(K).marginTop)+parseFloat(F(K).marginBottom);K.nextElementSibling.offsetTop>K.offsetTop+G*1.5&&z.insert(`
`)}return z}function ft(K,z){var G={},V=K.style||{};return V.fontStyle&&F(K).fontStyle==="italic"&&(G.italic=!0),V.fontWeight&&(F(K).fontWeight.startsWith("bold")||parseInt(F(K).fontWeight)>=700)&&(G.bold=!0),Object.keys(G).length>0&&(z=M(z,G)),parseFloat(V.textIndent||0)>0&&(z=new u.default().insert(" ").concat(z)),z}function st(K,z){var G=K.data;if(K.parentNode.tagName==="O:P")return z.insert(G.trim());if(G.trim().length===0&&K.parentNode.classList.contains("ql-clipboard"))return z;if(!F(K.parentNode).whiteSpace.startsWith("pre")){var V=function(J,Q){return Q=Q.replace(/[^\u00a0]/g,""),Q.length<1&&J?" ":Q};G=G.replace(/\r\n/g," ").replace(/\n/g," "),G=G.replace(/\s\s+/g,V.bind(V,!0)),(K.previousSibling==null&&_(K.parentNode)||K.previousSibling!=null&&_(K.previousSibling))&&(G=G.replace(/^\s+/,V.bind(V,!1))),(K.nextSibling==null&&_(K.parentNode)||K.nextSibling!=null&&_(K.nextSibling))&&(G=G.replace(/\s+$/,V.bind(V,!1)))}return z.insert(G)}b.default=S,b.matchAttributor=U,b.matchBlot=W,b.matchNewline=rt,b.matchSpacing=at,b.matchText=st},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function l(o,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,a,r){return a&&l(o.prototype,a),r&&l(o,r),o}}(),k=function l(o,a,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,a);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},w=p(6),y=m(w);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function u(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),u(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,[{key:"optimize",value:function(r){k(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return k(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),o}(y.default);t.blotName="bold",t.tagName=["STRONG","B"],b.default=t},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.addControls=b.default=void 0;var P=function(){function h(d,E){var N=[],R=!0,B=!1,C=void 0;try{for(var $=d[Symbol.iterator](),I;!(R=(I=$.next()).done)&&(N.push(I.value),!(E&&N.length===E));R=!0);}catch(L){B=!0,C=L}finally{try{!R&&$.return&&$.return()}finally{if(B)throw C}}return N}return function(d,E){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return h(d,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function h(d,E){for(var N=0;N<E.length;N++){var R=E[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(d,R.key,R)}}return function(d,E,N){return E&&h(d.prototype,E),N&&h(d,N),d}}(),w=p(2),y=r(w),m=p(0),c=r(m),u=p(5),e=r(u),t=p(10),l=r(t),o=p(9),a=r(o);function r(h){return h&&h.__esModule?h:{default:h}}function i(h,d,E){return d in h?Object.defineProperty(h,d,{value:E,enumerable:!0,configurable:!0,writable:!0}):h[d]=E,h}function s(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function n(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:h}function f(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var T=(0,l.default)("quill:toolbar"),g=function(h){f(d,h);function d(E,N){s(this,d);var R=n(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,E,N));if(Array.isArray(R.options.container)){var B=document.createElement("div");x(B,R.options.container),E.container.parentNode.insertBefore(B,E.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var C;return C=T.error("Container required for toolbar",R.options),n(R,C)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function($){R.addHandler($,R.options.handlers[$])}),[].forEach.call(R.container.querySelectorAll("button, select"),function($){R.attach($)}),R.quill.on(e.default.events.EDITOR_CHANGE,function($,I){$===e.default.events.SELECTION_CHANGE&&R.update(I)}),R.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var $=R.quill.selection.getRange(),I=P($,1),L=I[0];R.update(L)}),R}return k(d,[{key:"addHandler",value:function(N,R){this.handlers[N]=R}},{key:"attach",value:function(N){var R=this,B=[].find.call(N.classList,function($){return $.indexOf("ql-")===0});if(B){if(B=B.slice(3),N.tagName==="BUTTON"&&N.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){T.warn("ignoring attaching to disabled format",B,N);return}if(c.default.query(B)==null){T.warn("ignoring attaching to nonexistent format",B,N);return}}var C=N.tagName==="SELECT"?"change":"click";N.addEventListener(C,function($){var I=void 0;if(N.tagName==="SELECT"){if(N.selectedIndex<0)return;var L=N.options[N.selectedIndex];L.hasAttribute("selected")?I=!1:I=L.value||!1}else N.classList.contains("ql-active")?I=!1:I=N.value||!N.hasAttribute("value"),$.preventDefault();R.quill.focus();var A=R.quill.selection.getRange(),S=P(A,1),M=S[0];if(R.handlers[B]!=null)R.handlers[B].call(R,I);else if(c.default.query(B).prototype instanceof c.default.Embed){if(I=prompt("Enter "+B),!I)return;R.quill.updateContents(new y.default().retain(M.index).delete(M.length).insert(i({},B,I)),e.default.sources.USER)}else R.quill.format(B,I,e.default.sources.USER);R.update(M)}),this.controls.push([B,N])}}},{key:"update",value:function(N){var R=N==null?{}:this.quill.getFormat(N);this.controls.forEach(function(B){var C=P(B,2),$=C[0],I=C[1];if(I.tagName==="SELECT"){var L=void 0;if(N==null)L=null;else if(R[$]==null)L=I.querySelector("option[selected]");else if(!Array.isArray(R[$])){var A=R[$];typeof A=="string"&&(A=A.replace(/\"/g,'\\"')),L=I.querySelector('option[value="'+A+'"]')}L==null?(I.value="",I.selectedIndex=-1):L.selected=!0}else if(N==null)I.classList.remove("ql-active");else if(I.hasAttribute("value")){var S=R[$]===I.getAttribute("value")||R[$]!=null&&R[$].toString()===I.getAttribute("value")||R[$]==null&&!I.getAttribute("value");I.classList.toggle("ql-active",S)}else I.classList.toggle("ql-active",R[$]!=null)})}}]),d}(a.default);g.DEFAULTS={};function O(h,d,E){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+d),E!=null&&(N.value=E),h.appendChild(N)}function x(h,d){Array.isArray(d[0])||(d=[d]),d.forEach(function(E){var N=document.createElement("span");N.classList.add("ql-formats"),E.forEach(function(R){if(typeof R=="string")O(N,R);else{var B=Object.keys(R)[0],C=R[B];Array.isArray(C)?v(N,B,C):O(N,B,C)}}),h.appendChild(N)})}function v(h,d,E){var N=document.createElement("select");N.classList.add("ql-"+d),E.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),N.appendChild(B)}),h.appendChild(N)}g.DEFAULTS={container:null,handlers:{clean:function(){var d=this,E=this.quill.getSelection();if(E!=null)if(E.length==0){var N=this.quill.getFormat();Object.keys(N).forEach(function(R){c.default.query(R,c.default.Scope.INLINE)!=null&&d.quill.format(R,!1)})}else this.quill.removeFormat(E,e.default.sources.USER)},direction:function(d){var E=this.quill.getFormat().align;d==="rtl"&&E==null?this.quill.format("align","right",e.default.sources.USER):!d&&E==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",d,e.default.sources.USER)},indent:function(d){var E=this.quill.getSelection(),N=this.quill.getFormat(E),R=parseInt(N.indent||0);if(d==="+1"||d==="-1"){var B=d==="+1"?1:-1;N.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,e.default.sources.USER)}},link:function(d){d===!0&&(d=prompt("Enter link URL:")),this.quill.format("link",d,e.default.sources.USER)},list:function(d){var E=this.quill.getSelection(),N=this.quill.getFormat(E);d==="check"?N.list==="checked"||N.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",d,e.default.sources.USER)}}},b.default=g,b.addControls=x},function(q,b){q.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(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function l(o,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,a,r){return a&&l(o.prototype,a),r&&l(o,r),o}}(),k=function l(o,a,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,a);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},w=p(28),y=m(w);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function u(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(a,r){c(this,o);var i=u(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,a));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(s){s.classList.add("ql-primary")}),i}return P(o,[{key:"buildItem",value:function(r){var i=k(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){k(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,r,i);var s=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=n:s.style.fill=n)}}]),o}(y.default);b.default=t},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function l(o,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,a,r){return a&&l(o.prototype,a),r&&l(o,r),o}}(),k=function l(o,a,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,a);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},w=p(28),y=m(w);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function u(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(a,r){c(this,o);var i=u(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,a));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(s){s.innerHTML=r[s.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return P(o,[{key:"selectItem",value:function(r,i){k(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),o}(y.default);b.default=t},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function y(m,c){for(var u=0;u<c.length;u++){var e=c[u];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(m,e.key,e)}}return function(m,c,u){return c&&y(m.prototype,c),u&&y(m,u),m}}();function k(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}var w=function(){function y(m,c){var u=this;k(this,y),this.quill=m,this.boundsContainer=c||document.body,this.root=m.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"}),this.hide()}return P(y,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var u=c.left+c.width/2-this.root.offsetWidth/2,e=c.bottom+this.quill.root.scrollTop;this.root.style.left=u+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect(),o=0;if(l.right>t.right&&(o=t.right-l.right,this.root.style.left=u+o+"px"),l.left<t.left&&(o=t.left-l.left,this.root.style.left=u+o+"px"),l.bottom>t.bottom){var a=l.bottom-l.top,r=c.bottom-c.top+a;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),y}();b.default=w},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function v(h,d){var E=[],N=!0,R=!1,B=void 0;try{for(var C=h[Symbol.iterator](),$;!(N=($=C.next()).done)&&(E.push($.value),!(d&&E.length===d));N=!0);}catch(I){R=!0,B=I}finally{try{!N&&C.return&&C.return()}finally{if(R)throw B}}return E}return function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return v(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function v(h,d,E){h===null&&(h=Function.prototype);var N=Object.getOwnPropertyDescriptor(h,d);if(N===void 0){var R=Object.getPrototypeOf(h);return R===null?void 0:v(R,d,E)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(E)}},w=function(){function v(h,d){for(var E=0;E<d.length;E++){var N=d[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(h,N.key,N)}}return function(h,d,E){return d&&v(h.prototype,d),E&&v(h,E),h}}(),y=p(3),m=s(y),c=p(8),u=s(c),e=p(43),t=s(e),l=p(27),o=s(l),a=p(15),r=p(41),i=s(r);function s(v){return v&&v.__esModule?v:{default:v}}function n(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function f(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:v}function T(v,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(v){T(h,v);function h(d,E){n(this,h),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=g);var N=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,E));return N.quill.container.classList.add("ql-snow"),N}return w(h,[{key:"extendToolbar",value:function(E){E.container.classList.add("ql-snow"),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),i.default),this.tooltip=new x(this.quill,this.options.bounds),E.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,R){E.handlers.link.call(E,!R.format.link)})}}]),h}(t.default);O.DEFAULTS=(0,m.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(h){if(h){var d=this.quill.getSelection();if(d==null||d.length==0)return;var E=this.quill.getText(d);/^\S+@\S+\.\S+$/.test(E)&&E.indexOf("mailto:")!==0&&(E="mailto:"+E);var N=this.quill.theme.tooltip;N.edit("link",E)}else this.quill.format("link",!1)}}}}});var x=function(v){T(h,v);function h(d,E){n(this,h);var N=f(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,E));return N.preview=N.root.querySelector("a.ql-preview"),N}return w(h,[{key:"listen",value:function(){var E=this;k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){E.root.classList.contains("ql-editing")?E.save():E.edit("link",E.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(E.linkRange!=null){var R=E.linkRange;E.restoreFocus(),E.quill.formatText(R,"link",!1,u.default.sources.USER),delete E.linkRange}N.preventDefault(),E.hide()}),this.quill.on(u.default.events.SELECTION_CHANGE,function(N,R,B){if(N!=null){if(N.length===0&&B===u.default.sources.USER){var C=E.quill.scroll.descendant(o.default,N.index),$=P(C,2),I=$[0],L=$[1];if(I!=null){E.linkRange=new a.Range(N.index-L,I.length());var A=o.default.formats(I.domNode);E.preview.textContent=A,E.preview.setAttribute("href",A),E.show(),E.position(E.quill.getBounds(E.linkRange));return}}else delete E.linkRange;E.hide()}})}},{key:"show",value:function(){k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(e.BaseTooltip);x.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(""),b.default=O},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(29),k=Z(P),w=p(36),y=p(38),m=p(64),c=p(65),u=Z(c),e=p(66),t=Z(e),l=p(67),o=Z(l),a=p(37),r=p(26),i=p(39),s=p(40),n=p(56),f=Z(n),T=p(68),g=Z(T),O=p(27),x=Z(O),v=p(69),h=Z(v),d=p(70),E=Z(d),N=p(71),R=Z(N),B=p(72),C=Z(B),$=p(73),I=Z($),L=p(13),A=Z(L),S=p(74),M=Z(S),F=p(75),D=Z(F),_=p(57),j=Z(_),H=p(41),U=Z(H),W=p(28),Y=Z(W),et=p(59),nt=Z(et),rt=p(60),at=Z(rt),ft=p(61),st=Z(ft),K=p(108),z=Z(K),G=p(62),V=Z(G);function Z(J){return J&&J.__esModule?J:{default:J}}k.default.register({"attributors/attribute/direction":y.DirectionAttribute,"attributors/class/align":w.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":y.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":s.SizeClass,"attributors/style/align":w.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":y.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":s.SizeStyle},!0),k.default.register({"formats/align":w.AlignClass,"formats/direction":y.DirectionClass,"formats/indent":m.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":s.SizeClass,"formats/blockquote":u.default,"formats/code-block":A.default,"formats/header":t.default,"formats/list":o.default,"formats/bold":f.default,"formats/code":L.Code,"formats/italic":g.default,"formats/link":x.default,"formats/script":h.default,"formats/strike":E.default,"formats/underline":R.default,"formats/image":C.default,"formats/video":I.default,"formats/list/item":l.ListItem,"modules/formula":M.default,"modules/syntax":D.default,"modules/toolbar":j.default,"themes/bubble":z.default,"themes/snow":V.default,"ui/icons":U.default,"ui/picker":Y.default,"ui/icon-picker":at.default,"ui/color-picker":nt.default,"ui/tooltip":st.default},!0),b.default=k.default},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.IndentClass=void 0;var P=function(){function o(a,r){for(var i=0;i<r.length;i++){var s=r[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,s.key,s)}}return function(a,r,i){return r&&o(a.prototype,r),i&&o(a,i),a}}(),k=function o(a,r,i){a===null&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,r);if(s===void 0){var n=Object.getPrototypeOf(a);return n===null?void 0:o(n,r,i)}else{if("value"in s)return s.value;var f=s.get;return f===void 0?void 0:f.call(i)}},w=p(0),y=m(w);function m(o){return o&&o.__esModule?o:{default:o}}function c(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function u(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=function(o){e(a,o);function a(){return c(this,a),u(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"add",value:function(i,s){if(s==="+1"||s==="-1"){var n=this.value(i)||0;s=s==="+1"?n+1:n-1}return s===0?(this.remove(i),!0):k(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,i,s)}},{key:"canAdd",value:function(i,s){return k(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,s)||k(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,parseInt(s))}},{key:"value",value:function(i){return parseInt(k(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,i))||void 0}}]),a}(y.default.Attributor.Class),l=new t("indent","ql-indent",{scope:y.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});b.IndentClass=l},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(4),k=w(P);function w(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 m(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 c(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 u=function(e){c(t,e);function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(k.default);u.blotName="blockquote",u.tagName="blockquote",b.default=u},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function t(l,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(l,r.key,r)}}return function(l,o,a){return o&&t(l.prototype,o),a&&t(l,a),l}}(),k=p(4),w=y(k);function y(t){return t&&t.__esModule?t:{default:t}}function m(t,l){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}function c(t,l){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:t}function u(t,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);t.prototype=Object.create(l&&l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(t,l):t.__proto__=l)}var e=function(t){u(l,t);function l(){return m(this,l),c(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),l}(w.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],b.default=e},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.ListItem=void 0;var P=function(){function n(f,T){for(var g=0;g<T.length;g++){var O=T[g];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(f,O.key,O)}}return function(f,T,g){return T&&n(f.prototype,T),g&&n(f,g),f}}(),k=function n(f,T,g){f===null&&(f=Function.prototype);var O=Object.getOwnPropertyDescriptor(f,T);if(O===void 0){var x=Object.getPrototypeOf(f);return x===null?void 0:n(x,T,g)}else{if("value"in O)return O.value;var v=O.get;return v===void 0?void 0:v.call(g)}},w=p(0),y=t(w),m=p(4),c=t(m),u=p(25),e=t(u);function t(n){return n&&n.__esModule?n:{default:n}}function l(n,f,T){return f in n?Object.defineProperty(n,f,{value:T,enumerable:!0,configurable:!0,writable:!0}):n[f]=T,n}function o(n,f){if(!(n instanceof f))throw new TypeError("Cannot call a class as a function")}function a(n,f){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:n}function r(n,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);n.prototype=Object.create(f&&f.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(n,f):n.__proto__=f)}var i=function(n){r(f,n);function f(){return o(this,f),a(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return P(f,[{key:"format",value:function(g,O){g===s.blotName&&!O?this.replaceWith(y.default.create(this.statics.scope)):k(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,g,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():k(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(g,O){return this.parent.isolate(this.offset(this.parent),this.length()),g===this.parent.statics.blotName?(this.parent.replaceWith(g,O),this):(this.parent.unwrap(),k(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,g,O))}}],[{key:"formats",value:function(g){return g.tagName===this.tagName?void 0:k(f.__proto__||Object.getPrototypeOf(f),"formats",this).call(this,g)}}]),f}(c.default);i.blotName="list-item",i.tagName="LI";var s=function(n){r(f,n),P(f,null,[{key:"create",value:function(g){var O=g==="ordered"?"OL":"UL",x=k(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,O);return(g==="checked"||g==="unchecked")&&x.setAttribute("data-checked",g==="checked"),x}},{key:"formats",value:function(g){if(g.tagName==="OL")return"ordered";if(g.tagName==="UL")return g.hasAttribute("data-checked")?g.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function f(T){o(this,f);var g=a(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,T)),O=function(v){if(v.target.parentNode===T){var h=g.statics.formats(T),d=y.default.find(v.target);h==="checked"?d.format("list","unchecked"):h==="unchecked"&&d.format("list","checked")}};return T.addEventListener("touchstart",O),T.addEventListener("mousedown",O),g}return P(f,[{key:"format",value:function(g,O){this.children.length>0&&this.children.tail.format(g,O)}},{key:"formats",value:function(){return l({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(g,O){if(g instanceof i)k(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"insertBefore",this).call(this,g,O);else{var x=O==null?this.length():O.offset(this),v=this.split(x);v.parent.insertBefore(g,v)}}},{key:"optimize",value:function(g){k(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,g);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(g){if(g.statics.blotName!==this.statics.blotName){var O=y.default.create(this.statics.defaultChild);g.moveChildren(O),this.appendChild(O)}k(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replace",this).call(this,g)}}]),f}(e.default);s.blotName="list",s.scope=y.default.Scope.BLOCK_BLOT,s.tagName=["OL","UL"],s.defaultChild="list-item",s.allowedChildren=[i],b.ListItem=i,b.default=s},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(56),k=w(P);function w(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 m(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 c(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 u=function(e){c(t,e);function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(k.default);u.blotName="italic",u.tagName=["EM","I"],b.default=u},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function l(o,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,a,r){return a&&l(o.prototype,a),r&&l(o,r),o}}(),k=function l(o,a,r){o===null&&(o=Function.prototype);var i=Object.getOwnPropertyDescriptor(o,a);if(i===void 0){var s=Object.getPrototypeOf(o);return s===null?void 0:l(s,a,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},w=p(6),y=m(w);function m(l){return l&&l.__esModule?l:{default:l}}function c(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function u(l,o){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:l}function e(l,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);l.prototype=Object.create(o&&o.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(l,o):l.__proto__=o)}var t=function(l){e(o,l);function o(){return c(this,o),u(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):k(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),o}(y.default);t.blotName="script",t.tagName=["SUB","SUP"],b.default=t},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(6),k=w(P);function w(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 m(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 c(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 u=function(e){c(t,e);function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(k.default);u.blotName="strike",u.tagName="S",b.default=u},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=p(6),k=w(P);function w(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 m(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 c(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 u=function(e){c(t,e);function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(k.default);u.blotName="underline",u.tagName="U",b.default=u},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function a(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&a(r.prototype,i),s&&a(r,s),r}}(),k=function a(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:a(f,i,s)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(s)}},w=p(0),y=c(w),m=p(27);function c(a){return a&&a.__esModule?a:{default:a}}function u(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function e(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 t(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 l=["alt","height","width"],o=function(a){t(r,a);function r(){return u(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"format",value:function(s,n){l.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):k(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=k(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,s);return typeof s=="string"&&n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return l.reduce(function(n,f){return s.hasAttribute(f)&&(n[f]=s.getAttribute(f)),n},{})}},{key:"match",value:function(s){return/\.(jpe?g|gif|png)$/.test(s)||/^data:image\/.+;base64/.test(s)}},{key:"sanitize",value:function(s){return(0,m.sanitize)(s,["http","https","data"])?s:"//:0"}},{key:"value",value:function(s){return s.getAttribute("src")}}]),r}(y.default.Embed);o.blotName="image",o.tagName="IMG",b.default=o},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var P=function(){function a(r,i){for(var s=0;s<i.length;s++){var n=i[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,s){return i&&a(r.prototype,i),s&&a(r,s),r}}(),k=function a(r,i,s){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var f=Object.getPrototypeOf(r);return f===null?void 0:a(f,i,s)}else{if("value"in n)return n.value;var T=n.get;return T===void 0?void 0:T.call(s)}},w=p(4),y=p(27),m=c(y);function c(a){return a&&a.__esModule?a:{default:a}}function u(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function e(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 t(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 l=["height","width"],o=function(a){t(r,a);function r(){return u(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return P(r,[{key:"format",value:function(s,n){l.indexOf(s)>-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):k(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=k(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,s);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(s)),n}},{key:"formats",value:function(s){return l.reduce(function(n,f){return s.hasAttribute(f)&&(n[f]=s.getAttribute(f)),n},{})}},{key:"sanitize",value:function(s){return m.default.sanitize(s)}},{key:"value",value:function(s){return s.getAttribute("src")}}]),r}(w.BlockEmbed);o.blotName="video",o.className="ql-video",o.tagName="IFRAME",b.default=o},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.FormulaBlot=void 0;var P=function(){function s(n,f){for(var T=0;T<f.length;T++){var g=f[T];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,f,T){return f&&s(n.prototype,f),T&&s(n,T),n}}(),k=function s(n,f,T){n===null&&(n=Function.prototype);var g=Object.getOwnPropertyDescriptor(n,f);if(g===void 0){var O=Object.getPrototypeOf(n);return O===null?void 0:s(O,f,T)}else{if("value"in g)return g.value;var x=g.get;return x===void 0?void 0:x.call(T)}},w=p(35),y=t(w),m=p(5),c=t(m),u=p(9),e=t(u);function t(s){return s&&s.__esModule?s:{default:s}}function l(s,n){if(!(s instanceof n))throw new TypeError("Cannot call a class as a function")}function o(s,n){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:s}function a(s,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);s.prototype=Object.create(n&&n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(s,n):s.__proto__=n)}var r=function(s){a(n,s);function n(){return l(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return P(n,null,[{key:"create",value:function(T){var g=k(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,T);return typeof T=="string"&&(window.katex.render(T,g,{throwOnError:!1,errorColor:"#f00"}),g.setAttribute("data-value",T)),g}},{key:"value",value:function(T){return T.getAttribute("data-value")}}]),n}(y.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(s){a(n,s),P(n,null,[{key:"register",value:function(){c.default.register(r,!0)}}]);function n(){l(this,n);var f=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return f}return n}(e.default);b.FormulaBlot=r,b.default=i},function(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.CodeToken=b.CodeBlock=void 0;var P=function(){function T(g,O){for(var x=0;x<O.length;x++){var v=O[x];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,O,x){return O&&T(g.prototype,O),x&&T(g,x),g}}(),k=function T(g,O,x){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,O);if(v===void 0){var h=Object.getPrototypeOf(g);return h===null?void 0:T(h,O,x)}else{if("value"in v)return v.value;var d=v.get;return d===void 0?void 0:d.call(x)}},w=p(0),y=o(w),m=p(5),c=o(m),u=p(9),e=o(u),t=p(13),l=o(t);function o(T){return T&&T.__esModule?T:{default:T}}function a(T,g){if(!(T instanceof g))throw new TypeError("Cannot call a class as a function")}function r(T,g){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:T}function i(T,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);T.prototype=Object.create(g&&g.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(T,g):T.__proto__=g)}var s=function(T){i(g,T);function g(){return a(this,g),r(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return P(g,[{key:"replaceWith",value:function(x){this.domNode.textContent=this.domNode.textContent,this.attach(),k(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,x)}},{key:"highlight",value:function(x){var v=this.domNode.textContent;this.cachedText!==v&&((v.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=x(v),this.domNode.normalize(),this.attach()),this.cachedText=v)}}]),g}(l.default);s.className="ql-syntax";var n=new y.default.Attributor.Class("token","hljs",{scope:y.default.Scope.INLINE}),f=function(T){i(g,T),P(g,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(s,!0)}}]);function g(O,x){a(this,g);var v=r(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,O,x));if(typeof v.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return v.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){v.highlight(),h=null},v.options.interval)}),v.highlight(),v}return P(g,[{key:"highlight",value:function(){var x=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var v=this.quill.getSelection();this.quill.scroll.descendants(s).forEach(function(h){h.highlight(x.options.highlight)}),this.quill.update(c.default.sources.SILENT),v!=null&&this.quill.setSelection(v,c.default.sources.SILENT)}}}]),g}(e.default);f.DEFAULTS={highlight:function(){return window.hljs==null?null:function(T){var g=window.hljs.highlightAuto(T);return g.value}}(),interval:1e3},b.CodeBlock=s,b.CodeToken=n,b.default=f},function(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b){q.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(q,b,p){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BubbleTooltip=void 0;var P=function g(O,x,v){O===null&&(O=Function.prototype);var h=Object.getOwnPropertyDescriptor(O,x);if(h===void 0){var d=Object.getPrototypeOf(O);return d===null?void 0:g(d,x,v)}else{if("value"in h)return h.value;var E=h.get;return E===void 0?void 0:E.call(v)}},k=function(){function g(O,x){for(var v=0;v<x.length;v++){var h=x[v];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(O,h.key,h)}}return function(O,x,v){return x&&g(O.prototype,x),v&&g(O,v),O}}(),w=p(3),y=a(w),m=p(8),c=a(m),u=p(43),e=a(u),t=p(15),l=p(41),o=a(l);function a(g){return g&&g.__esModule?g:{default:g}}function r(g,O){if(!(g instanceof O))throw new TypeError("Cannot call a class as a function")}function i(g,O){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:g}function s(g,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);g.prototype=Object.create(O&&O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(g,O):g.__proto__=O)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],f=function(g){s(O,g);function O(x,v){r(this,O),v.modules.toolbar!=null&&v.modules.toolbar.container==null&&(v.modules.toolbar.container=n);var h=i(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,x,v));return h.quill.container.classList.add("ql-bubble"),h}return k(O,[{key:"extendToolbar",value:function(v){this.tooltip=new T(this.quill,this.options.bounds),this.tooltip.root.appendChild(v.container),this.buildButtons([].slice.call(v.container.querySelectorAll("button")),o.default),this.buildPickers([].slice.call(v.container.querySelectorAll("select")),o.default)}}]),O}(e.default);f.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var T=function(g){s(O,g);function O(x,v){r(this,O);var h=i(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,x,v));return h.quill.on(c.default.events.EDITOR_CHANGE,function(d,E,N,R){if(d===c.default.events.SELECTION_CHANGE)if(E!=null&&E.length>0&&R===c.default.sources.USER){h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px";var B=h.quill.getLines(E.index,E.length);if(B.length===1)h.position(h.quill.getBounds(E));else{var C=B[B.length-1],$=h.quill.getIndex(C),I=Math.min(C.length()-1,E.index+E.length-$),L=h.quill.getBounds(new t.Range($,I));h.position(L)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return k(O,[{key:"listen",value:function(){var v=this;P(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){v.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!v.root.classList.contains("ql-hidden")){var h=v.quill.getSelection();h!=null&&v.position(v.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(v){var h=P(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,v),d=this.root.querySelector(".ql-tooltip-arrow");if(d.style.marginLeft="",h===0)return h;d.style.marginLeft=-1*h-d.offsetWidth/2+"px"}}]),O}(u.BaseTooltip);T.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(""),b.BubbleTooltip=T,b.default=f},function(q,b,p){q.exports=p(63)}]).default})},18123:function(vt,ht,X){"use strict";var ot=this&&this.__extends||function(){var u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var a in o)o.hasOwnProperty(a)&&(l[a]=o[a])},u(e,t)};return function(e,t){u(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}(),q=this&&this.__assign||function(){return q=Object.assign||function(u){for(var e,t=1,l=arguments.length;t<l;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(u[o]=e[o])}return u},q.apply(this,arguments)},b=this&&this.__spreadArrays||function(){for(var u=0,e=0,t=arguments.length;e<t;e++)u+=arguments[e].length;for(var l=Array(u),o=0,e=0;e<t;e++)for(var a=arguments[e],r=0,i=a.length;r<i;r++,o++)l[o]=a[r];return l},p=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}},P=p(X(93236)),k=p(X(19103)),w=p(X(31223)),y=p(X(82270)),m=function(u){ot(e,u);function e(t){var l=u.call(this,t)||this;l.dirtyProps=["modules","formats","bounds","theme","children"],l.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],l.state={generation:0},l.selection=null,l.onEditorChange=function(a,r,i,s){var n,f,T,g;a==="text-change"?(f=(n=l).onEditorChangeText)===null||f===void 0||f.call(n,l.editor.root.innerHTML,r,s,l.unprivilegedEditor):a==="selection-change"&&((g=(T=l).onEditorChangeSelection)===null||g===void 0||g.call(T,r,s,l.unprivilegedEditor))};var o=l.isControlled()?t.value:t.defaultValue;return l.value=o!=null?o:"",l}return e.prototype.validateProps=function(t){var l;if(P.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(P.default.Children.count(t.children)){var o=P.default.Children.only(t.children);if(((l=o)===null||l===void 0?void 0:l.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},e.prototype.shouldComponentUpdate=function(t,l){var o=this,a;if(this.validateProps(t),!this.editor||this.state.generation!==l.generation)return!0;if("value"in t){var r=this.getEditorContents(),i=(a=t.value,a!=null?a:"");this.isEqualValue(i,r)||this.setEditorContents(this.editor,i)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),b(this.cleanProps,this.dirtyProps).some(function(s){return!w.default(t[s],o.props[s])})},e.prototype.shouldComponentRegenerate=function(t){var l=this;return this.dirtyProps.some(function(o){return!w.default(t[o],l.props[o])})},e.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},e.prototype.componentWillUnmount=function(){this.destroyEditor()},e.prototype.componentDidUpdate=function(t,l){var o=this;if(this.editor&&this.shouldComponentRegenerate(t)){var a=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:a,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==l.generation){var i=this.regenerationSnapshot,a=i.delta,s=i.selection;delete this.regenerationSnapshot,this.instantiateEditor();var n=this.editor;n.setContents(a),c(function(){return o.setEditorSelection(n,s)})}},e.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},e.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},e.prototype.isControlled=function(){return"value"in this.props},e.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},e.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},e.prototype.createEditor=function(t,l){var o=new y.default(t,l);return l.tabIndex!=null&&this.setEditorTabIndex(o,l.tabIndex),this.hookEditor(o),o},e.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},e.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},e.prototype.getEditorContents=function(){return this.value},e.prototype.getEditorSelection=function(){return this.selection},e.prototype.isDelta=function(t){return t&&t.ops},e.prototype.isEqualValue=function(t,l){return this.isDelta(t)&&this.isDelta(l)?w.default(t.ops,l.ops):w.default(t,l)},e.prototype.setEditorContents=function(t,l){var o=this;this.value=l;var a=this.getEditorSelection();typeof l=="string"?t.setContents(t.clipboard.convert(l)):t.setContents(l),c(function(){return o.setEditorSelection(t,a)})},e.prototype.setEditorSelection=function(t,l){if(this.selection=l,l){var o=t.getLength();l.index=Math.max(0,Math.min(l.index,o-1)),l.length=Math.max(0,Math.min(l.length,o-1-l.index)),t.setSelection(l)}},e.prototype.setEditorTabIndex=function(t,l){var o,a;!((a=(o=t)===null||o===void 0?void 0:o.scroll)===null||a===void 0)&&a.domNode&&(t.scroll.domNode.tabIndex=l)},e.prototype.setEditorReadOnly=function(t,l){l?t.disable():t.enable()},e.prototype.makeUnprivilegedEditor=function(t){var l=t;return{getHTML:function(){return l.root.innerHTML},getLength:l.getLength.bind(l),getText:l.getText.bind(l),getContents:l.getContents.bind(l),getSelection:l.getSelection.bind(l),getBounds:l.getBounds.bind(l)}},e.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var t=k.default.findDOMNode(this.editingArea);if(!t)throw new Error("Cannot find element for editing area");if(t.nodeType===3)throw new Error("Editing area cannot be a text node");return t},e.prototype.renderEditingArea=function(){var t=this,l=this.props,o=l.children,a=l.preserveWhitespace,r=this.state.generation,i={key:r,ref:function(s){t.editingArea=s}};return P.default.Children.count(o)?P.default.cloneElement(P.default.Children.only(o),i):a?P.default.createElement("pre",q({},i)):P.default.createElement("div",q({},i))},e.prototype.render=function(){var t;return P.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(t=this.props.className,t!=null?t:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},e.prototype.onEditorChangeText=function(t,l,o,a){var r,i;if(this.editor){var s=this.isDelta(this.value)?a.getContents():a.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=l,this.value=s,(i=(r=this.props).onChange)===null||i===void 0||i.call(r,t,l,o,a))}},e.prototype.onEditorChangeSelection=function(t,l,o){var a,r,i,s,n,f;if(this.editor){var T=this.getEditorSelection(),g=!T&&t,O=T&&!t;w.default(t,T)||(this.selection=t,(r=(a=this.props).onChangeSelection)===null||r===void 0||r.call(a,t,l,o),g?(s=(i=this.props).onFocus)===null||s===void 0||s.call(i,t,l,o):O&&((f=(n=this.props).onBlur)===null||f===void 0||f.call(n,T,l,o)))}},e.prototype.focus=function(){this.editor&&this.editor.focus()},e.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},e.displayName="React Quill",e.Quill=y.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(P.default.Component);function c(u){Promise.resolve().then(u)}vt.exports=m}}]);