(self.webpackChunk=self.webpackChunk||[]).push([[737],{19109:function(dt,vt,it){"use strict";it.d(vt,{i$:function(){return a}});var ut=it(45987),j=it(1413),O=it(23323),p=it(62435),P=it(4499),T=it(86074),k=["children"],g=["children"];function y(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.valuePropName||"value",s=r.trigger||"onChange",n=r.name;return{valuePropName:i,trigger:s,name:n}}function c(r,i){var s=r.value,n=r.onChange;if(!Array.isArray(i)){var f=y(i);return _defineProperty(_defineProperty({},f.valuePropName,s),f.trigger,function(E){n==null||n(E!=null&&E.target?E.target[f.valuePropName]:E)})}return i.reduce(function(E,m){var b=y(m),w=b.name||m;return E[w]=_defineProperty(_defineProperty({},b.valuePropName,s==null?void 0:s[w]),b.trigger,function(d){n==null||n(_objectSpread(_objectSpread({},s),{},_defineProperty({},w,d!=null&&d.target?d.target[b.valuePropName]:d)))}),E},{})}function a(r){var i=r.children,s=(0,ut.Z)(r,k),n=O.Z.Item.useStatus(),f=n.status,E=n.errors,m=n.warnings;return i((0,j.Z)({status:f,errors:E,warnings:m},s))}function e(r){return{value:r.value,onChange:function(s){return r.onChange(s!=null&&s.target?s.target.value:s)}}}function t(r){return _objectSpread(_objectSpread({},e(r)),{},{id:r.id})}function l(r){return function(i){var s=i.children,n=(0,ut.Z)(i,g);return(0,T.jsx)(r,(0,j.Z)((0,j.Z)({},n),{},{children:(0,T.jsx)(a,{children:s})}))}}var o=l(O.Z.Item),u=l(P.Z)},5966:function(dt,vt,it){"use strict";var ut=it(97685),j=it(1413),O=it(45987),p=it(21770),P=it(23323),T=it(55241),k=it(97435),g=it(62435),y=it(92767),c=it(86074),a=["fieldProps","proFieldProps"],e=["fieldProps","proFieldProps"],t="text",l=function(s){var n=s.fieldProps,f=s.proFieldProps,E=(0,O.Z)(s,a);return(0,c.jsx)(y.Z,(0,j.Z)({valueType:t,fieldProps:n,filedConfig:{valueType:t},proFieldProps:f},E))},o=function(s){var n=(0,p.Z)(s.open||!1,{value:s.open,onChange:s.onOpenChange}),f=(0,ut.Z)(n,2),E=f[0],m=f[1];return(0,c.jsx)(P.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(w){var d,h=w.getFieldValue(s.name||[]);return(0,c.jsx)(T.Z,(0,j.Z)((0,j.Z)({getPopupContainer:function(_){return _&&_.parentNode?_.parentNode:_},onOpenChange:function(_){return m(_)},content:(0,c.jsxs)("div",{style:{padding:"4px 0"},children:[(d=s.statusRender)===null||d===void 0?void 0:d.call(s,h),s.strengthText?(0,c.jsx)("div",{style:{marginTop:10},children:(0,c.jsx)("span",{children:s.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},s.popoverProps),{},{open:E,children:s.children}))}})},u=function(s){var n=s.fieldProps,f=s.proFieldProps,E=(0,O.Z)(s,e),m=(0,g.useState)(!1),b=(0,ut.Z)(m,2),w=b[0],d=b[1];return n!=null&&n.statusRender&&E.name?(0,c.jsx)(o,{name:E.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:w,onOpenChange:d,children:(0,c.jsx)("div",{children:(0,c.jsx)(y.Z,(0,j.Z)({valueType:"password",fieldProps:(0,j.Z)((0,j.Z)({},(0,k.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(v){var _;n==null||(_=n.onBlur)===null||_===void 0||_.call(n,v),d(!1)},onClick:function(v){var _;n==null||(_=n.onClick)===null||_===void 0||_.call(n,v),d(!0)}}),proFieldProps:f,filedConfig:{valueType:t}},E))})}):(0,c.jsx)(y.Z,(0,j.Z)({valueType:"password",fieldProps:n,proFieldProps:f,filedConfig:{valueType:t}},E))},r=l;r.Password=u,r.displayName="ProFormComponent",vt.Z=r},40190:function(){"use strict"},18446:function(dt,vt,it){var ut=it(90939);function j(O,p){return ut(O,p)}dt.exports=j},76095:function(dt,vt,it){var ut=it(48764).lW;(function(O,p){dt.exports=p()})(typeof self!="undefined"?self:this,function(){return function(j){var O={};function p(P){if(O[P])return O[P].exports;var T=O[P]={i:P,l:!1,exports:{}};return j[P].call(T.exports,T,T.exports,p),T.l=!0,T.exports}return p.m=j,p.c=O,p.d=function(P,T,k){p.o(P,T)||Object.defineProperty(P,T,{configurable:!1,enumerable:!0,get:k})},p.n=function(P){var T=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(T,"a",T),T},p.o=function(P,T){return Object.prototype.hasOwnProperty.call(P,T)},p.p="",p(p.s=109)}([function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(17),T=p(18),k=p(19),g=p(45),y=p(46),c=p(47),a=p(48),e=p(49),t=p(12),l=p(32),o=p(33),u=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:T.default,Leaf:k.default,Embed:a.default,Scroll:g.default,Block:c.default,Inline:y.default,Text:e.default,Attributor:{Attribute:t.default,Class:l.default,Style:o.default,Store:u.default}};O.default=i},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var u=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){u(r,i);function s(){this.constructor=r}r.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=function(u){P(r,u);function r(i){var s=this;return i="[Parchment] "+i,s=u.call(this,i)||this,s.message=i,s.name=s.constructor.name,s}return r}(Error);O.ParchmentError=T;var k={},g={},y={},c={};O.DATA_KEY="__blot";var a;(function(u){u[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY"})(a=O.Scope||(O.Scope={}));function e(u,r){var i=l(u);if(i==null)throw new T("Unable to create "+u+" blot");var s=i,n=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:s.create(r);return new s(n,r)}O.create=e;function t(u,r){return r===void 0&&(r=!1),u==null?null:u[O.DATA_KEY]!=null?u[O.DATA_KEY].blot:r?t(u.parentNode,r):null}O.find=t;function l(u,r){r===void 0&&(r=a.ANY);var i;if(typeof u=="string")i=c[u]||k[u];else if(u instanceof Text||u.nodeType===Node.TEXT_NODE)i=c.text;else if(typeof u=="number")u&a.LEVEL&a.BLOCK?i=c.block:u&a.LEVEL&a.INLINE&&(i=c.inline);else if(u instanceof HTMLElement){var s=(u.getAttribute("class")||"").split(/\s+/);for(var n in s)if(i=g[s[n]],i)break;i=i||y[u.tagName]}return i==null?null:r&a.LEVEL&i.scope&&r&a.TYPE&i.scope?i:null}O.query=l;function o(){for(var u=[],r=0;r1)return u.map(function(n){return o(n)});var i=u[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new T("Invalid definition");if(i.blotName==="abstract")throw new T("Cannot register abstract class");if(c[i.blotName||i.attrName]=i,typeof i.keyName=="string")k[i.keyName]=i;else if(i.className!=null&&(g[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){(y[n]==null||i.className==null)&&(y[n]=i)})}return i}O.register=o},function(j,O,p){var P=p(51),T=p(11),k=p(3),g=p(20),y="\0",c=function(a){Array.isArray(a)?this.ops=a:a!=null&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]};c.prototype.insert=function(a,e){var t={};return a.length===0?this:(t.insert=a,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},c.prototype.delete=function(a){return a<=0?this:this.push({delete:a})},c.prototype.retain=function(a,e){if(a<=0)return this;var t={retain:a};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},c.prototype.push=function(a){var e=this.ops.length,t=this.ops[e-1];if(a=k(!0,{},a),typeof t=="object"){if(typeof a.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+a.delete},this;if(typeof t.delete=="number"&&a.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(a),this;if(T(a.attributes,t.attributes)){if(typeof a.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+a.insert},typeof a.attributes=="object"&&(this.ops[e-1].attributes=a.attributes),this;if(typeof a.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+a.retain},typeof a.attributes=="object"&&(this.ops[e-1].attributes=a.attributes),this}}return e===this.ops.length?this.ops.push(a):this.ops.splice(e,0,a),this},c.prototype.chop=function(){var a=this.ops[this.ops.length-1];return a&&a.retain&&!a.attributes&&this.ops.pop(),this},c.prototype.filter=function(a){return this.ops.filter(a)},c.prototype.forEach=function(a){this.ops.forEach(a)},c.prototype.map=function(a){return this.ops.map(a)},c.prototype.partition=function(a){var e=[],t=[];return this.forEach(function(l){var o=a(l)?e:t;o.push(l)}),[e,t]},c.prototype.reduce=function(a,e){return this.ops.reduce(a,e)},c.prototype.changeLength=function(){return this.reduce(function(a,e){return e.insert?a+g.length(e):e.delete?a-e.delete:a},0)},c.prototype.length=function(){return this.reduce(function(a,e){return a+g.length(e)},0)},c.prototype.slice=function(a,e){a=a||0,typeof e!="number"&&(e=1/0);for(var t=[],l=g.iterator(this.ops),o=0;o0&&t.next(o.retain-u)}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 E=g.attributes.compose(s.attributes,n.attributes,typeof s.retain=="number");if(E&&(f.attributes=E),r.push(f),!t.hasNext()&&T(r.ops[r.ops.length-1],f)){var m=new c(e.rest());return r.concat(m).chop()}}else typeof n.delete=="number"&&typeof s.retain=="number"&&r.push(n)}return r.chop()},c.prototype.concat=function(a){var e=new c(this.ops.slice());return a.ops.length>0&&(e.push(a.ops[0]),e.ops=e.ops.concat(a.ops.slice(1))),e},c.prototype.diff=function(a,e){if(this.ops===a.ops)return new c;var t=[this,a].map(function(i){return i.map(function(s){if(s.insert!=null)return typeof s.insert=="string"?s.insert:y;var n=i===a?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),l=new c,o=P(t[0],t[1],e),u=g.iterator(this.ops),r=g.iterator(a.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,u.peekLength()),u.next(n),l.delete(n);break;case P.EQUAL:n=Math.min(u.peekLength(),r.peekLength(),s);var f=u.next(n),E=r.next(n);T(f.insert,E.insert)?l.retain(n,g.attributes.diff(f.attributes,E.attributes)):l.push(E).delete(n);break}s-=n}}),l.chop()},c.prototype.eachLine=function(a,e){e=e||` `;for(var t=g.iterator(this.ops),l=new c,o=0;t.hasNext();){if(t.peekType()!=="insert")return;var u=t.peek(),r=g.length(u)-t.peekLength(),i=typeof u.insert=="string"?u.insert.indexOf(e,r)-r:-1;if(i<0)l.push(t.next());else if(i>0)l.push(t.next(i));else{if(a(l,t.next(1).attributes||{},o)===!1)return;o+=1,l=new c}}l.length()>0&&a(l,{},o)},c.prototype.transform=function(a,e){if(e=!!e,typeof a=="number")return this.transformPosition(a,e);for(var t=g.iterator(this.ops),l=g.iterator(a.ops),o=new c;t.hasNext()||l.hasNext();)if(t.peekType()==="insert"&&(e||l.peekType()!=="insert"))o.retain(g.length(t.next()));else if(l.peekType()==="insert")o.push(l.next());else{var u=Math.min(t.peekLength(),l.peekLength()),r=t.next(u),i=l.next(u);if(r.delete)continue;i.delete?o.push(i):o.retain(u,g.attributes.transform(r.attributes,i.attributes,e))}return o.chop()},c.prototype.transformPosition=function(a,e){e=!!e;for(var t=g.iterator(this.ops),l=0;t.hasNext()&&l<=a;){var o=t.peekLength(),u=t.peekType();if(t.next(),u==="delete"){a-=Math.min(o,a-l);continue}else u==="insert"&&(l0&&(N1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(N===0||N>=this.length()-m)){var B=this.clone();return N===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var C=T(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"split",this).call(this,N,R);return this.cache={},C}}}]),v}(e.default.Block);w.blotName="block",w.tagName="P",w.defaultChild="break",w.allowedChildren=[u.default,e.default.Embed,i.default];function d(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return h==null||(typeof h.formats=="function"&&(v=(0,g.default)(v,h.formats())),h.parent==null||h.parent.blotName=="scroll"||h.parent.statics.scope!==h.statics.scope)?v:d(h.parent,v)}O.bubbleFormats=d,O.BlockEmbed=b,O.default=w},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},T=function(){function M(q,A){var S=[],L=!0,F=!1,D=void 0;try{for(var x=q[Symbol.iterator](),I;!(L=(I=x.next()).done)&&(S.push(I.value),!(A&&S.length===A));L=!0);}catch(U){F=!0,D=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw D}}return S}return function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return M(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function M(q,A){for(var S=0;S2&&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(x){L.register(x,A[x],S)})}else this.imports[A]!=null&&!F&&_.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 M(q){var A=this,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(v(this,M),this.options=R(q,S),this.container=this.options.container,this.container==null)return _.error("Invalid Quill container",q);this.options.debug&&M.debug(this.options.debug);var L=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 a.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,x){var I=A.selection.lastRange,U=I&&I.length===0?I.index:void 0;B.call(A,function(){return A.editor.update(null,x,U)},D)});var F=this.clipboard.convert(`
`+L+"


");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return k(M,[{key:"addContainer",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof A=="string"){var L=A;A=document.createElement("div"),A.classList.add(L)}return this.container.insertBefore(A,S),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,S,L){var F=this,D=C(A,S,L),x=T(D,4);return A=x[0],S=x[1],L=x[3],B.call(this,function(){return F.editor.deleteText(A,S)},L,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 L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return B.call(this,function(){var D=L.getSelection(!0),x=new y.default;if(D==null)return x;if(r.default.query(A,r.default.Scope.BLOCK))x=L.editor.formatLine(D.index,D.length,h({},A,S));else{if(D.length===0)return L.selection.format(A,S),x;x=L.editor.formatText(D.index,D.length,h({},A,S))}return L.setSelection(D,t.default.sources.SILENT),x},F)}},{key:"formatLine",value:function(A,S,L,F,D){var x=this,I=void 0,U=C(A,S,L,F,D),H=T(U,4);return A=H[0],S=H[1],I=H[2],D=H[3],B.call(this,function(){return x.editor.formatLine(A,S,I)},D,A,0)}},{key:"formatText",value:function(A,S,L,F,D){var x=this,I=void 0,U=C(A,S,L,F,D),H=T(U,4);return A=H[0],S=H[1],I=H[2],D=H[3],B.call(this,function(){return x.editor.formatText(A,S,I)},D,A,0)}},{key:"getBounds",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=void 0;typeof A=="number"?L=this.selection.getBounds(A,S):L=this.selection.getBounds(A.index,A.length);var F=this.container.getBoundingClientRect();return{bottom:L.bottom-F.top,height:L.height,left:L.left-F.left,right:L.right-F.left,top:L.top-F.top,width:L.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,L=C(A,S),F=T(L,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,L=C(A,S),F=T(L,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,L){var F=this,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:M.sources.API;return B.call(this,function(){return F.editor.insertEmbed(A,S,L)},D,A)}},{key:"insertText",value:function(A,S,L,F,D){var x=this,I=void 0,U=C(A,0,L,F,D),H=T(U,4);return A=H[0],I=H[2],D=H[3],B.call(this,function(){return x.editor.insertText(A,S,I)},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,L){this.clipboard.dangerouslyPasteHTML(A,S,L)}},{key:"removeFormat",value:function(A,S,L){var F=this,D=C(A,S,L),x=T(D,4);return A=x[0],S=x[1],L=x[3],B.call(this,function(){return F.editor.removeFormat(A,S)},L,A)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var S=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){A=new y.default(A);var F=S.getLength(),D=S.editor.deleteText(0,F),x=S.editor.applyDelta(A),I=x.ops[x.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===` `&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1));var U=D.compose(x);return U},L)}},{key:"setSelection",value:function(A,S,L){if(A==null)this.selection.setRange(null,S||M.sources.API);else{var F=C(A,S,L),D=T(F,4);A=D[0],S=D[1],L=D[3],this.selection.setRange(new i.Range(A,S),L),L!==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,L=new y.default().insert(A);return this.setContents(L,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,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return B.call(this,function(){return A=new y.default(A),S.editor.applyDelta(A,L)},L,!0)}}]),M}();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:y.default,parchment:r.default,"core/module":o.default,"core/theme":w.default};function R(M,q){if(q=(0,f.default)(!0,{container:M,modules:{clipboard:!0,keyboard:!0,history:!0}},q),!q.theme||q.theme===N.DEFAULTS.theme)q.theme=w.default;else if(q.theme=N.import("themes/"+q.theme),q.theme==null)throw new Error("Invalid theme "+q.theme+". Did you register it?");var A=(0,f.default)(!0,{},q.theme.DEFAULTS);[A,q].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(q.modules)),L=S.reduce(function(F,D){var x=N.import("modules/"+D);return x==null?_.error("Cannot load "+D+" module. Are you sure you registered it?"):F[D]=x.DEFAULTS||{},F},{});return q.modules!=null&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=(0,f.default)(!0,{},N.DEFAULTS,{modules:L},A,q),["bounds","container","scrollingContainer"].forEach(function(F){typeof q[F]=="string"&&(q[F]=document.querySelector(q[F]))}),q.modules=Object.keys(q.modules).reduce(function(F,D){return q.modules[D]&&(F[D]=q.modules[D]),F},{}),q}function B(M,q,A,S){if(this.options.strict&&!this.isEnabled()&&q===t.default.sources.USER)return new y.default;var L=A==null?null:this.getSelection(),F=this.editor.delta,D=M();if(L!=null&&(A===!0&&(A=L.index),S==null?L=W(L,D,q):S!==0&&(L=W(L,A,S,q)),this.setSelection(L,t.default.sources.SILENT)),D.length()>0){var x,I=[t.default.events.TEXT_CHANGE,D,F,q];if((x=this.emitter).emit.apply(x,[t.default.events.EDITOR_CHANGE].concat(I)),q!==t.default.sources.SILENT){var U;(U=this.emitter).emit.apply(U,I)}}return D}function C(M,q,A,S,L){var F={};return typeof M.index=="number"&&typeof M.length=="number"?typeof q!="number"?(L=S,S=A,A=q,q=M.length,M=M.index):(q=M.length,M=M.index):typeof q!="number"&&(L=S,S=A,A=q,q=0),(typeof A=="undefined"?"undefined":P(A))==="object"?(F=A,L=S):typeof A=="string"&&(S!=null?F[A]=S:L=A),L=L||t.default.sources.API,[M,q,F,L]}function W(M,q,A,S){if(M==null)return null;var L=void 0,F=void 0;if(q instanceof y.default){var D=[M.index,M.index+M.length].map(function(H){return q.transformPosition(H,S!==t.default.sources.USER)}),x=T(D,2);L=x[0],F=x[1]}else{var I=[M.index,M.index+M.length].map(function(H){return H=0?H+A:Math.max(q,H+A)}),U=T(I,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}O.expandConfig=R,O.overload=C,O.default=N},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(r,i){for(var s=0;s0){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),E=r.order.indexOf(n);return f>=0||E>=0?f-E:s===n?0:s1?E-1:0),b=1;b1&&arguments[1]!==void 0?arguments[1]:{};P(this,k),this.quill=g,this.options=y};T.DEFAULTS={},O.default=T},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],T="warn";function k(y){if(P.indexOf(y)<=P.indexOf(T)){for(var c,a=arguments.length,e=Array(a>1?a-1:0),t=1;t0&&typeof e[0]!="number")}function a(e,t,l){var o,u;if(y(e)||y(t)||e.prototype!==t.prototype)return!1;if(k(e))return k(t)?(e=P.call(e),t=P.call(t),g(e,t,l)):!1;if(c(e)){if(!c(t)||e.length!==t.length)return!1;for(o=0;o=0;o--)if(r[o]!=i[o])return!1;for(o=r.length-1;o>=0;o--)if(u=r[o],!g(e[u],t[u],l))return!1;return typeof e==typeof t}},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function k(g,y,c){c===void 0&&(c={}),this.attrName=g,this.keyName=y;var a=P.Scope.TYPE&P.Scope.ATTRIBUTE;c.scope!=null?this.scope=c.scope&P.Scope.LEVEL|a:this.scope=P.Scope.ATTRIBUTE,c.whitelist!=null&&(this.whitelist=c.whitelist)}return k.keys=function(g){return[].map.call(g.attributes,function(y){return y.name})},k.prototype.add=function(g,y){return this.canAdd(g,y)?(g.setAttribute(this.keyName,y),!0):!1},k.prototype.canAdd=function(g,y){var c=P.query(g,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return c==null?!1:this.whitelist==null?!0:typeof y=="string"?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1},k.prototype.remove=function(g){g.removeAttribute(this.keyName)},k.prototype.value=function(g){var y=g.getAttribute(this.keyName);return this.canAdd(g,y)&&y?y:""},k}();O.default=T},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=function(){function b(w,d){var h=[],v=!0,_=!1,N=void 0;try{for(var R=w[Symbol.iterator](),B;!(v=(B=R.next()).done)&&(h.push(B.value),!(d&&h.length===d));v=!0);}catch(C){_=!0,N=C}finally{try{!v&&R.return&&R.return()}finally{if(_)throw N}}return h}return function(w,d){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return b(w,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(w,d){for(var h=0;h=h+v)){var B=this.newlineIndex(h,!0)+1,C=R-B+1,W=this.isolate(B,C),M=W.next;W.format(_,N),M instanceof w&&M.formatAt(0,h-B+v-C,_,N)}}}},{key:"insertAt",value:function(h,v,_){if(_==null){var N=this.descendant(r.default,h),R=P(N,2),B=R[0],C=R[1];B.insertAt(C,v)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith(` `)?h:h+1}},{key:"newlineIndex",value:function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(v)return this.domNode.textContent.slice(0,h).lastIndexOf(` `);var _=this.domNode.textContent.slice(h).indexOf(` `);return _>-1?h+_:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith(` `)||this.appendChild(a.default.create("text",` `)),k(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,h);var v=this.next;v!=null&&v.prev===this&&v.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===v.statics.formats(v.domNode)&&(v.optimize(h),v.moveChildren(this),v.remove())}},{key:"replace",value:function(h){k(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(v){var _=a.default.find(v);_==null?v.parentNode.removeChild(v):_ instanceof a.default.Embed?_.remove():_.unwrap()})}}],[{key:"create",value:function(h){var v=k(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,h);return v.setAttribute("spellcheck",!1),v}},{key:"formats",value:function(){return!0}}]),w}(t.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",O.Code=E,O.default=m},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},T=function(){function M(q,A){var S=[],L=!0,F=!1,D=void 0;try{for(var x=q[Symbol.iterator](),I;!(L=(I=x.next()).done)&&(S.push(I.value),!(A&&S.length===A));L=!0);}catch(U){F=!0,D=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw D}}return S}return function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return M(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function M(q,A){for(var S=0;S=F&&!H.endsWith(` `)&&(L=!0),S.scroll.insertAt(D,H);var Z=S.scroll.line(D),Y=T(Z,2),X=Y[0],Q=Y[1],nt=(0,h.default)({},(0,i.bubbleFormats)(X));if(X instanceof s.default){var rt=X.descendant(t.default.Leaf,Q),st=T(rt,1),at=st[0];nt=(0,h.default)(nt,(0,i.bubbleFormats)(at))}U=a.default.attributes.diff(nt,U)||{}}else if(P(x.insert)==="object"){var K=Object.keys(x.insert)[0];if(K==null)return D;S.scroll.insertAt(D,K,x.insert[K])}F+=I}return Object.keys(U).forEach(function(z){S.scroll.formatAt(D,I,z,U[z])}),D+I},0),A.reduce(function(D,x){return typeof x.delete=="number"?(S.scroll.deleteAt(D,x.delete),D):D+(x.retain||x.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 y.default().retain(A).delete(S))}},{key:"formatLine",value:function(A,S){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(D){if(!(L.scroll.whitelist!=null&&!L.scroll.whitelist[D])){var x=L.scroll.lines(A,Math.max(S,1)),I=S;x.forEach(function(U){var H=U.length();if(!(U instanceof o.default))U.format(D,F[D]);else{var Z=A-U.offset(L.scroll),Y=U.newlineIndex(Z+I)-Z+1;U.formatAt(Z,Y,D,F[D])}I-=H})}}),this.scroll.optimize(),this.update(new y.default().retain(A).retain(S,(0,m.default)(F)))}},{key:"formatText",value:function(A,S){var L=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(D){L.scroll.formatAt(A,S,D,F[D])}),this.update(new y.default().retain(A).retain(S,(0,m.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 y.default)}},{key:"getFormat",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=[],F=[];S===0?this.scroll.path(A).forEach(function(x){var I=T(x,1),U=I[0];U instanceof s.default?L.push(U):U instanceof t.default.Leaf&&F.push(U)}):(L=this.scroll.lines(A,S),F=this.scroll.descendants(t.default.Leaf,A,S));var D=[L,F].map(function(x){if(x.length===0)return{};for(var I=(0,i.bubbleFormats)(x.shift());Object.keys(I).length>0;){var U=x.shift();if(U==null)return I;I=C((0,i.bubbleFormats)(U),I)}return I});return h.default.apply(h.default,D)}},{key:"getText",value:function(A,S){return this.getContents(A,S).filter(function(L){return typeof L.insert=="string"}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(A,S,L){return this.scroll.insertAt(A,S,L),this.update(new y.default().retain(A).insert(_({},S,L)))}},{key:"insertText",value:function(A,S){var L=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){L.scroll.formatAt(A,S.length,D,F[D])}),this.update(new y.default().retain(A).insert(S,(0,m.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 L=this.getText(A,S),F=this.scroll.line(A+S),D=T(F,2),x=D[0],I=D[1],U=0,H=new y.default;x!=null&&(x instanceof o.default?U=x.newlineIndex(I)-I+1:U=x.length()-I,H=x.delta().slice(I,I+U-1).insert(` `));var Z=this.getContents(A,S+U),Y=Z.diff(new y.default().insert(L).concat(H)),X=new y.default().retain(A).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(A){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],L=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),x=(0,i.bubbleFormats)(D),I=D.offset(this.scroll),U=S[0].oldValue.replace(r.default.CONTENTS,""),H=new y.default().insert(U),Z=new y.default().insert(D.value()),Y=new y.default().retain(I).concat(H.diff(Z,L));A=Y.reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new y.default),this.delta=F.compose(A)}else this.delta=this.getDelta(),(!A||!(0,w.default)(F.compose(A),this.delta))&&(A=F.diff(this.delta,L));return A}}]),M}();function C(M,q){return Object.keys(q).reduce(function(A,S){return M[S]==null||(q[S]===M[S]?A[S]=q[S]:Array.isArray(q[S])?q[S].indexOf(M[S])<0&&(A[S]=q[S].concat([M[S]])):A[S]=[q[S],M[S]]),A},{})}function W(M){return M.reduce(function(q,A){if(A.insert===1){var S=(0,m.default)(A.attributes);return delete S.image,q.insert({image:A.attributes.image},S)}if(A.attributes!=null&&(A.attributes.list===!0||A.attributes.bullet===!0)&&(A=(0,m.default)(A),A.attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),typeof A.insert=="string"){var L=A.insert.replace(/\r\n/g,` `).replace(/\r/g,` `);return q.insert(L,A.attributes)}return q.push(A)},new y.default)}O.default=B},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=function(){function b(w,d){var h=[],v=!0,_=!1,N=void 0;try{for(var R=w[Symbol.iterator](),B;!(v=(B=R.next()).done)&&(h.push(B.value),!(d&&h.length===d));v=!0);}catch(C){_=!0,N=C}finally{try{!v&&R.return&&R.return()}finally{if(_)throw N}}return h}return function(w,d){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return b(w,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function(){function b(w,d){for(var h=0;h1&&arguments[1]!==void 0?arguments[1]:0;s(this,b),this.index=w,this.length=d},E=function(){function b(w,d){var h=this;s(this,b),this.emitter=d,this.scroll=w,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.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(v,_){v===l.default.events.TEXT_CHANGE&&_.length()>0&&h.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var v=h.getNativeRange();v!=null&&v.start.node!==h.cursor.textNode&&h.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(v.start.node,v.start.offset,v.end.node,v.end.offset)}catch(_){}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(v,_){if(_.range){var N=_.range,R=N.startNode,B=N.startOffset,C=N.endNode,W=N.endOffset;h.setNativeRange(R,B,C,W)}}),this.update(l.default.sources.SILENT)}return T(b,[{key:"handleComposition",value:function(){var d=this;this.root.addEventListener("compositionstart",function(){d.composing=!0}),this.root.addEventListener("compositionend",function(){if(d.composing=!1,d.cursor.parent){var h=d.cursor.restore();if(!h)return;setTimeout(function(){d.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var d=this;this.emitter.listenDOM("mousedown",document.body,function(){d.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){d.mouseDown=!1,d.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(d,h){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[d])){this.scroll.update();var v=this.getNativeRange();if(!(v==null||!v.native.collapsed||g.default.query(d,g.default.Scope.BLOCK))){if(v.start.node!==this.cursor.textNode){var _=g.default.find(v.start.node,!1);if(_==null)return;if(_ instanceof g.default.Leaf){var N=_.split(v.start.offset);_.parent.insertBefore(this.cursor,N)}else _.insertBefore(this.cursor,v.start.node);this.cursor.attach()}this.cursor.format(d,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=this.scroll.length();d=Math.min(d,v-1),h=Math.min(d+h,v-1)-d;var _=void 0,N=this.scroll.leaf(d),R=P(N,2),B=R[0],C=R[1];if(B==null)return null;var W=B.position(C,!0),M=P(W,2);_=M[0],C=M[1];var q=document.createRange();if(h>0){q.setStart(_,C);var A=this.scroll.leaf(d+h),S=P(A,2);if(B=S[0],C=S[1],B==null)return null;var L=B.position(C,!0),F=P(L,2);return _=F[0],C=F[1],q.setEnd(_,C),q.getBoundingClientRect()}else{var D="left",x=void 0;return _ instanceof Text?(C<_.data.length?(q.setStart(_,C),q.setEnd(_,C+1)):(q.setStart(_,C-1),q.setEnd(_,C),D="right"),x=q.getBoundingClientRect()):(x=B.domNode.getBoundingClientRect(),C>0&&(D="right")),{bottom:x.top+x.height,height:x.height,left:x[D],right:x[D],top:x.top,width:0}}}},{key:"getNativeRange",value:function(){var d=document.getSelection();if(d==null||d.rangeCount<=0)return null;var h=d.getRangeAt(0);if(h==null)return null;var v=this.normalizeNative(h);return n.info("getNativeRange",v),v}},{key:"getRange",value:function(){var d=this.getNativeRange();if(d==null)return[null,null];var h=this.normalizedToRange(d);return[h,d]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(d){var h=this,v=[[d.start.node,d.start.offset]];d.native.collapsed||v.push([d.end.node,d.end.offset]);var _=v.map(function(B){var C=P(B,2),W=C[0],M=C[1],q=g.default.find(W,!0),A=q.offset(h.scroll);return M===0?A:q instanceof g.default.Container?A+q.length():A+q.index(W,M)}),N=Math.min(Math.max.apply(Math,i(_)),this.scroll.length()-1),R=Math.min.apply(Math,[N].concat(i(_)));return new f(R,N-R)}},{key:"normalizeNative",value:function(d){if(!m(this.root,d.startContainer)||!d.collapsed&&!m(this.root,d.endContainer))return null;var h={start:{node:d.startContainer,offset:d.startOffset},end:{node:d.endContainer,offset:d.endOffset},native:d};return[h.start,h.end].forEach(function(v){for(var _=v.node,N=v.offset;!(_ instanceof Text)&&_.childNodes.length>0;)if(_.childNodes.length>N)_=_.childNodes[N],N=0;else if(_.childNodes.length===N)_=_.lastChild,N=_ instanceof Text?_.data.length:_.childNodes.length+1;else break;v.node=_,v.offset=N}),h}},{key:"rangeToNative",value:function(d){var h=this,v=d.collapsed?[d.index]:[d.index,d.index+d.length],_=[],N=this.scroll.length();return v.forEach(function(R,B){R=Math.min(N-1,R);var C=void 0,W=h.scroll.leaf(R),M=P(W,2),q=M[0],A=M[1],S=q.position(A,B!==0),L=P(S,2);C=L[0],A=L[1],_.push(C,A)}),_.length<2&&(_=_.concat(_)),_}},{key:"scrollIntoView",value:function(d){var h=this.lastRange;if(h!=null){var v=this.getBounds(h.index,h.length);if(v!=null){var _=this.scroll.length()-1,N=this.scroll.line(Math.min(h.index,_)),R=P(N,1),B=R[0],C=B;if(h.length>0){var W=this.scroll.line(Math.min(h.index+h.length,_)),M=P(W,1);C=M[0]}if(!(B==null||C==null)){var q=d.getBoundingClientRect();v.topq.bottom&&(d.scrollTop+=v.bottom-q.bottom)}}}}},{key:"setNativeRange",value:function(d,h){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d,_=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",d,h,v,_),!(d!=null&&(this.root.parentNode==null||d.parentNode==null||v.parentNode==null))){var R=document.getSelection();if(R!=null)if(d!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||N||d!==B.startContainer||h!==B.startOffset||v!==B.endContainer||_!==B.endOffset){d.tagName=="BR"&&(h=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode),v.tagName=="BR"&&(_=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode);var C=document.createRange();C.setStart(d,h),C.setEnd(v,_),R.removeAllRanges(),R.addRange(C)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof h=="string"&&(v=h,h=!1),n.info("setRange",d),d!=null){var _=this.rangeToNative(d);this.setNativeRange.apply(this,i(_).concat([h]))}else this.setNativeRange(null);this.update(v)}},{key:"update",value:function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,h=this.lastRange,v=this.getRange(),_=P(v,2),N=_[0],R=_[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),d];if((B=this.emitter).emit.apply(B,[l.default.events.EDITOR_CHANGE].concat(C)),d!==l.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,C)}}}}]),b}();function m(b,w){try{w.parentNode}catch(d){return!1}return w instanceof Text&&(w=w.parentNode),b.contains(w)}O.Range=f,O.default=E},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function l(o,u){for(var r=0;r0&&(t+=1),[this.parent.domNode,t]},c.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a},c.scope=k.Scope.INLINE_BLOT,c}(T.default);O.default=g},function(j,O,p){var P=p(11),T=p(3),k={attributes:{compose:function(y,c,a){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var e=T(!0,{},c);a||(e=Object.keys(e).reduce(function(l,o){return e[o]!=null&&(l[o]=e[o]),l},{}));for(var t in y)y[t]!==void 0&&c[t]===void 0&&(e[t]=y[t]);return Object.keys(e).length>0?e:void 0},diff:function(y,c){typeof y!="object"&&(y={}),typeof c!="object"&&(c={});var a=Object.keys(y).concat(Object.keys(c)).reduce(function(e,t){return P(y[t],c[t])||(e[t]=c[t]===void 0?null:c[t]),e},{});return Object.keys(a).length>0?a:void 0},transform:function(y,c,a){if(typeof y!="object")return c;if(typeof c=="object"){if(!a)return c;var e=Object.keys(c).reduce(function(t,l){return y[l]===void 0&&(t[l]=c[l]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(y){return new g(y)},length:function(y){return typeof y.delete=="number"?y.delete:typeof y.retain=="number"?y.retain:typeof y.insert=="string"?y.insert.length:1}};function g(y){this.ops=y,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var a=this.offset,e=k.length(c);if(y>=e-a?(y=e-a,this.index+=1,this.offset=0):this.offset+=y,typeof c.delete=="number")return{delete:y};var t={};return c.attributes&&(t.attributes=c.attributes),typeof c.retain=="number"?t.retain=y:typeof c.insert=="string"?t.insert=c.insert.substr(a,y):t.insert=c.insert,t}else return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?k.length(this.ops[this.index])-this.offset:1/0},g.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},g.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var y=this.offset,c=this.index,a=this.next(),e=this.ops.slice(this.index);return this.offset=y,this.index=c,[a].concat(e)}else return[]},j.exports=k},function(j,O){var p=function(){"use strict";function P(o,u){return u!=null&&o instanceof u}var T;try{T=Map}catch(o){T=function(){}}var k;try{k=Set}catch(o){k=function(){}}var g;try{g=Promise}catch(o){g=function(){}}function y(o,u,r,i,s){typeof u=="object"&&(r=u.depth,i=u.prototype,s=u.includeNonEnumerable,u=u.circular);var n=[],f=[],E=typeof ut!="undefined";typeof u=="undefined"&&(u=!0),typeof r=="undefined"&&(r=1/0);function m(b,w){if(b===null)return null;if(w===0)return b;var d,h;if(typeof b!="object")return b;if(P(b,T))d=new T;else if(P(b,k))d=new k;else if(P(b,g))d=new g(function(q,A){b.then(function(S){q(m(S,w-1))},function(S){A(m(S,w-1))})});else if(y.__isArray(b))d=[];else if(y.__isRegExp(b))d=new RegExp(b.source,l(b)),b.lastIndex&&(d.lastIndex=b.lastIndex);else if(y.__isDate(b))d=new Date(b.getTime());else{if(E&&ut.isBuffer(b))return ut.allocUnsafe?d=ut.allocUnsafe(b.length):d=new ut(b.length),b.copy(d),d;P(b,Error)?d=Object.create(b):typeof i=="undefined"?(h=Object.getPrototypeOf(b),d=Object.create(h)):(d=Object.create(i),h=i)}if(u){var v=n.indexOf(b);if(v!=-1)return f[v];n.push(b),f.push(d)}P(b,T)&&b.forEach(function(q,A){var S=m(A,w-1),L=m(q,w-1);d.set(S,L)}),P(b,k)&&b.forEach(function(q){var A=m(q,w-1);d.add(A)});for(var _ in b){var N;h&&(N=Object.getOwnPropertyDescriptor(h,_)),!(N&&N.set==null)&&(d[_]=m(b[_],w-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(b),_=0;_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 L=A.newlineIndex(0);L>-1&&A.split(L+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 _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",_)}},{key:"formatAt",value:function(_,N,R,B){this.whitelist!=null&&!this.whitelist[R]||(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,_,N,R,B),this.optimize())}},{key:"insertAt",value:function(_,N,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[N])){if(_>=this.length())if(R==null||y.default.query(N,y.default.Scope.BLOCK)==null){var B=y.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=y.default.create(N,R);this.appendChild(C)}else k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,_,N,R);this.optimize()}}},{key:"insertBefore",value:function(_,N){if(_.statics.scope===y.default.Scope.INLINE_BLOT){var R=y.default.create(this.statics.defaultChild);R.appendChild(_),_=R}k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,_,N)}},{key:"leaf",value:function(_){return this.path(_).pop()||[null,-1]}},{key:"line",value:function(_){return _===this.length()?this.line(_-1):this.descendant(b,_)}},{key:"lines",value:function(){var _=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,W,M){var q=[],A=M;return C.children.forEachAt(W,M,function(S,L,F){b(S)?q.push(S):S instanceof y.default.Container&&(q=q.concat(B(S,L,A))),A-=F}),q};return R(this,_,N)}},{key:"optimize",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,_,N),_.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,_,N))}},{key:"path",value:function(_){return k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,_).slice(1)}},{key:"update",value:function(_){if(this.batch!==!0){var N=a.default.sources.USER;typeof _=="string"&&(N=_),Array.isArray(_)||(_=this.observer.takeRecords()),_.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,N,_),k(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,_.concat([])),_.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,N,_)}}}]),h}(y.default.Scroll);w.blotName="scroll",w.className="ql-editor",w.tagName="DIV",w.defaultChild="block",w.allowedChildren=[t.default,e.BlockEmbed,s.default],O.default=w},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},T=function(){function x(I,U){var H=[],Z=!0,Y=!1,X=void 0;try{for(var Q=I[Symbol.iterator](),nt;!(Z=(nt=Q.next()).done)&&(H.push(nt.value),!(U&&H.length===U));Z=!0);}catch(rt){Y=!0,X=rt}finally{try{!Z&&Q.return&&Q.return()}finally{if(Y)throw X}}return H}return function(I,U){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return x(I,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),k=function(){function x(I,U){for(var H=0;H1&&arguments[1]!==void 0?arguments[1]:{},Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=D(H);if(X==null||X.key==null)return R.warn("Attempted to add invalid keyboard binding",X);typeof Z=="function"&&(Z={handler:Z}),typeof Y=="function"&&(Y={handler:Y}),X=(0,t.default)(X,Z,Y),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(Z){if(!Z.defaultPrevented){var Y=Z.which||Z.keyCode,X=(H.bindings[Y]||[]).filter(function(lt){return I.match(Z,lt)});if(X.length!==0){var Q=H.quill.getSelection();if(!(Q==null||!H.quill.hasFocus())){var nt=H.quill.getLine(Q.index),rt=T(nt,2),st=rt[0],at=rt[1],K=H.quill.getLeaf(Q.index),z=T(K,2),$=z[0],G=z[1],V=Q.length===0?[$,G]:H.quill.getLeaf(Q.index+Q.length),J=T(V,2),tt=J[0],et=J[1],ft=$ instanceof s.default.Text?$.value().slice(0,G):"",ct=tt instanceof s.default.Text?tt.value().slice(et):"",ot={collapsed:Q.length===0,empty:Q.length===0&&st.length()<=1,format:H.quill.getFormat(Q),offset:at,prefix:ft,suffix:ct},pt=X.some(function(lt){if(lt.collapsed!=null&<.collapsed!==ot.collapsed||lt.empty!=null&<.empty!==ot.empty||lt.offset!=null&<.offset!==ot.offset)return!1;if(Array.isArray(lt.format)){if(lt.format.every(function(ht){return ot.format[ht]==null}))return!1}else if(P(lt.format)==="object"&&!Object.keys(lt.format).every(function(ht){return lt.format[ht]===!0?ot.format[ht]!=null:lt.format[ht]===!1?ot.format[ht]==null:(0,a.default)(lt.format[ht],ot.format[ht])}))return!1;return lt.prefix!=null&&!lt.prefix.test(ot.prefix)||lt.suffix!=null&&!lt.suffix.test(ot.suffix)?!1:lt.handler.call(H,Q,ot)!==!0});pt&&Z.preventDefault()}}}})}}]),I}(w.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(I,U){if(U.collapsed&&U.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(I,U){if(U.collapsed&&U.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(I,U){U.format.indent!=null?this.quill.format("indent","-1",f.default.sources.USER):U.format.list!=null&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(I){this.quill.deleteText(I.index-1,1,f.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(I){this.quill.history.cutoff();var U=new o.default().retain(I.index).delete(I.length).insert(" ");this.quill.updateContents(U,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,f.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(I,U){this.quill.format("list",!1,f.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(I){var U=this.quill.getLine(I.index),H=T(U,2),Z=H[0],Y=H[1],X=(0,t.default)({},Z.formats(),{list:"checked"}),Q=new o.default().retain(I.index).insert(` `,X).retain(Z.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,f.default.sources.USER),this.quill.setSelection(I.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(I,U){var H=this.quill.getLine(I.index),Z=T(H,2),Y=Z[0],X=Z[1],Q=new o.default().retain(I.index).insert(` `,U.format).retain(Y.length()-X-1).retain(1,{header:null});this.quill.updateContents(Q,f.default.sources.USER),this.quill.setSelection(I.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,U){var H=U.prefix.length,Z=this.quill.getLine(I.index),Y=T(Z,2),X=Y[0],Q=Y[1];if(Q>H)return!0;var nt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(I.index," ",f.default.sources.USER),this.quill.history.cutoff();var rt=new o.default().retain(I.index-Q).delete(H+1).retain(X.length()-2-Q).retain(1,{list:nt});this.quill.updateContents(rt,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-H,f.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var U=this.quill.getLine(I.index),H=T(U,2),Z=H[0],Y=H[1],X=new o.default().retain(I.index+Z.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,f.default.sources.USER)}},"embed left":W(C.keys.LEFT,!1),"embed left shift":W(C.keys.LEFT,!0),"embed right":W(C.keys.RIGHT,!1),"embed right shift":W(C.keys.RIGHT,!0)}};function W(x,I){var U,H=x===C.keys.LEFT?"prefix":"suffix";return U={key:x,shiftKey:I,altKey:null},h(U,H,/^$/),h(U,"handler",function(Y){var X=Y.index;x===C.keys.RIGHT&&(X+=Y.length+1);var Q=this.quill.getLeaf(X),nt=T(Q,1),rt=nt[0];return rt instanceof s.default.Embed?(x===C.keys.LEFT?I?this.quill.setSelection(Y.index-1,Y.length+1,f.default.sources.USER):this.quill.setSelection(Y.index-1,f.default.sources.USER):I?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}),U}function M(x,I){if(!(x.index===0||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),H=T(U,1),Z=H[0],Y={};if(I.offset===0){var X=this.quill.getLine(x.index-1),Q=T(X,1),nt=Q[0];if(nt!=null&&nt.length()>1){var rt=Z.formats(),st=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,st)||{}}}var at=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(x.index-at,at,f.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-at,at,Y,f.default.sources.USER),this.quill.focus()}}function q(x,I){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},Z=0,Y=this.quill.getLine(x.index),X=T(Y,1),Q=X[0];if(I.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),rt=T(nt,1),st=rt[0];if(st){var at=Q.formats(),K=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(at,K)||{},Z=st.length()}}this.quill.deleteText(x.index,U,f.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+Z-1,U,H,f.default.sources.USER)}}function A(x){var I=this.quill.getLines(x),U={};if(I.length>1){var H=I[0].formats(),Z=I[I.length-1].formats();U=r.default.attributes.diff(Z,H)||{}}this.quill.deleteText(x,f.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,f.default.sources.USER),this.quill.setSelection(x.index,f.default.sources.SILENT),this.quill.focus()}function S(x,I){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(I.format).reduce(function(Z,Y){return s.default.query(Y,s.default.Scope.BLOCK)&&!Array.isArray(I.format[Y])&&(Z[Y]=I.format[Y]),Z},{});this.quill.insertText(x.index,` `,H,f.default.sources.USER),this.quill.setSelection(x.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(Z){H[Z]==null&&(Array.isArray(I.format[Z])||Z!=="link"&&U.quill.format(Z,I.format[Z],f.default.sources.USER))})}function L(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=s.default.query("code-block"),Z=U.index,Y=U.length,X=this.quill.scroll.descendant(H,Z),Q=T(X,2),nt=Q[0],rt=Q[1];if(nt!=null){var st=this.quill.getIndex(nt),at=nt.newlineIndex(rt,!0)+1,K=nt.newlineIndex(st+rt+Y),z=nt.domNode.textContent.slice(at,K).split(` `);rt=0,z.forEach(function($,G){x?(nt.insertAt(at+rt,H.TAB),rt+=H.TAB.length,G===0?Z+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(at+rt,H.TAB.length),rt-=H.TAB.length,G===0?Z-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(Z,Y,f.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],f.default.sources.USER)}}}function D(x){if(typeof x=="string"||typeof x=="number")return D({key:x});if((typeof x=="undefined"?"undefined":P(x))==="object"&&(x=(0,y.default)(x,!1)),typeof x.key=="string")if(C.keys[x.key.toUpperCase()]!=null)x.key=C.keys[x.key.toUpperCase()];else if(x.key.length===1)x.key=x.key.toUpperCase().charCodeAt(0);else return null;return x.shortKey&&(x[B]=x.shortKey,delete x.shortKey),x}O.default=C,O.SHORTKEY=B},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,s){var n=[],f=!0,E=!1,m=void 0;try{for(var b=i[Symbol.iterator](),w;!(f=(w=b.next()).done)&&(n.push(w.value),!(s&&n.length===s));f=!0);}catch(d){E=!0,m=d}finally{try{!f&&b.return&&b.return()}finally{if(E)throw m}}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")}}(),T=function r(i,s,n){i===null&&(i=Function.prototype);var f=Object.getOwnPropertyDescriptor(i,s);if(f===void 0){var E=Object.getPrototypeOf(i);return E===null?void 0:r(E,s,n)}else{if("value"in f)return f.value;var m=f.get;return m===void 0?void 0:m.call(n)}},k=function(){function r(i,s){for(var n=0;n-1}O.default=t,O.sanitize=l},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},T=function(){function u(r,i){for(var s=0;s1&&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)}}]),u}();O.default=o},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),T=R(P),k=p(5),g=R(k),y=p(4),c=R(y),a=p(16),e=R(a),t=p(25),l=R(t),o=p(24),u=R(o),r=p(35),i=R(r),s=p(6),n=R(s),f=p(22),E=R(f),m=p(7),b=R(m),w=p(55),d=R(w),h=p(42),v=R(h),_=p(23),N=R(_);function R(B){return B&&B.__esModule?B:{default:B}}g.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":e.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":E.default,"blots/text":b.default,"modules/clipboard":d.default,"modules/history":v.default,"modules/keyboard":N.default}),T.default.register(c.default,e.default,u.default,n.default,E.default,b.default),O.default=g.default},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function k(g){this.domNode=g,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(k.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),k.create=function(g){if(this.tagName==null)throw new P.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?y=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?y=document.createElement(g):y=document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},k.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},k.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return P.create(g)},k.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},k.prototype.deleteAt=function(g,y){var c=this.isolate(g,y);c.remove()},k.prototype.formatAt=function(g,y,c,a){var e=this.isolate(g,y);if(P.query(c,P.Scope.BLOT)!=null&&a)e.wrap(c,a);else if(P.query(c,P.Scope.ATTRIBUTE)!=null){var t=P.create(this.statics.scope);e.wrap(t),t.format(c,a)}},k.prototype.insertAt=function(g,y,c){var a=c==null?P.create("text",y):P.create(y,c),e=this.split(g);this.parent.insertBefore(a,e)},k.prototype.insertInto=function(g,y){y===void 0&&(y=null),this.parent!=null&&this.parent.children.remove(this);var c=null;g.children.insertBefore(this,y),y!=null&&(c=y.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=c)&&g.domNode.insertBefore(this.domNode,c),this.parent=g,this.attach()},k.prototype.isolate=function(g,y){var c=this.split(g);return c.split(y),c},k.prototype.length=function(){return 1},k.prototype.offset=function(g){return g===void 0&&(g=this.parent),this.parent==null||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},k.prototype.optimize=function(g){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.DATA_KEY].mutations},k.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},k.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},k.prototype.replaceWith=function(g,y){var c=typeof g=="string"?P.create(g,y):g;return c.replace(this),c},k.prototype.split=function(g,y){return g===0?this:this.next},k.prototype.update=function(g,y){},k.prototype.wrap=function(g,y){var c=typeof g=="string"?P.create(g,y):g;return this.parent!=null&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},k.blotName="abstract",k}();O.default=T},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(12),T=p(32),k=p(33),g=p(1),y=function(){function c(a){this.attributes={},this.domNode=a,this.build()}return c.prototype.attribute=function(a,e){e?a.add(this.domNode,e)&&(a.value(this.domNode)!=null?this.attributes[a.attrName]=a:delete this.attributes[a.attrName]):(a.remove(this.domNode),delete this.attributes[a.attrName])},c.prototype.build=function(){var a=this;this.attributes={};var e=P.default.keys(this.domNode),t=T.default.keys(this.domNode),l=k.default.keys(this.domNode);e.concat(t).concat(l).forEach(function(o){var u=g.query(o,g.Scope.ATTRIBUTE);u instanceof P.default&&(a.attributes[u.attrName]=u)})},c.prototype.copy=function(a){var e=this;Object.keys(this.attributes).forEach(function(t){var l=e.attributes[t].value(e.domNode);a.format(t,l)})},c.prototype.move=function(a){var e=this;this.copy(a),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},c.prototype.values=function(){var a=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=a.attributes[t].value(a.domNode),e},{})},c}();O.default=y},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){y(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12);function k(y,c){var a=y.getAttribute("class")||"";return a.split(/\s+/).filter(function(e){return e.indexOf(c+"-")===0})}var g=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},c.prototype.add=function(a,e){return this.canAdd(a,e)?(this.remove(a),a.classList.add(this.keyName+"-"+e),!0):!1},c.prototype.remove=function(a){var e=k(a,this.keyName);e.forEach(function(t){a.classList.remove(t)}),a.classList.length===0&&a.removeAttribute("class")},c.prototype.value=function(a){var e=k(a,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(a,t)?t:""},c}(T.default);O.default=g},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){y(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(12);function k(y){var c=y.split("-"),a=c.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return c[0]+a}var g=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},c.prototype.add=function(a,e){return this.canAdd(a,e)?(a.style[k(this.keyName)]=e,!0):!1},c.prototype.remove=function(a){a.style[k(this.keyName)]="",a.getAttribute("style")||a.removeAttribute("style")},c.prototype.value=function(a){var e=a.style[k(this.keyName)];return this.canAdd(a,e)?e:""},c}(T.default);O.default=g},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function g(y,c){for(var a=0;aw&&this.stack.undo.length>0){var d=this.stack.undo.pop();b=b.compose(d.undo),E=d.redo.compose(E)}else this.lastRecorded=w;this.stack.undo.push({redo:E,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(E){this.stack.undo.forEach(function(m){m.undo=E.transform(m.undo,!0),m.redo=E.transform(m.redo,!0)}),this.stack.redo.forEach(function(m){m.undo=E.transform(m.undo,!0),m.redo=E.transform(m.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(a.default);u.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 k.default.query(f,k.default.Scope.BLOCK)!=null}):!1}function i(s){var n=s.reduce(function(E,m){return E+=m.delete||0,E},0),f=s.length()-n;return r(s)&&(f-=1),f}O.default=u,O.getLastChangeIndex=i},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=function(){function S(L,F){for(var D=0;D0&&arguments[0]!==void 0?arguments[0]:"link",x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),x!=null?this.textbox.value=x: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 x=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=x;break}case"video":D=q(D);case"formula":{if(!D)break;var I=this.quill.getSelection(!0);if(I!=null){var U=I.index+I.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),D,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(U+1," ",e.default.sources.USER),this.quill.setSelection(U+2,e.default.sources.USER)}break}default:}this.textbox.value="",this.hide()}}]),L}(b.default);function q(S){var L=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 L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":S}function A(S,L){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;L.forEach(function(D){var x=document.createElement("option");D===F?x.setAttribute("selected","selected"):x.setAttribute("value",D),S.appendChild(x)})}O.BaseTooltip=M,O.default=W},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var k=[],g=0;g1&&this.append.apply(this,k.slice(1))},T.prototype.contains=function(k){for(var g,y=this.iterator();g=y();)if(g===k)return!0;return!1},T.prototype.insertBefore=function(k,g){k&&(k.next=g,g!=null?(k.prev=g.prev,g.prev!=null&&(g.prev.next=k),g.prev=k,g===this.head&&(this.head=k)):this.tail!=null?(this.tail.next=k,k.prev=this.tail,this.tail=k):(k.prev=null,this.head=this.tail=k),this.length+=1)},T.prototype.offset=function(k){for(var g=0,y=this.head;y!=null;){if(y===k)return g;g+=y.length(),y=y.next}return-1},T.prototype.remove=function(k){this.contains(k)&&(k.prev!=null&&(k.prev.next=k.next),k.next!=null&&(k.next.prev=k.prev),k===this.head&&(this.head=k.next),k===this.tail&&(this.tail=k.prev),this.length-=1)},T.prototype.iterator=function(k){return k===void 0&&(k=this.head),function(){var g=k;return k!=null&&(k=k.next),g}},T.prototype.find=function(k,g){g===void 0&&(g=!1);for(var y,c=this.iterator();y=c();){var a=y.length();if(kl?y(t,k-l,Math.min(g,l+u-k)):y(t,0,Math.min(u,k+g-l)),l+=u}},T.prototype.map=function(k){return this.reduce(function(g,y){return g.push(k(y)),g},[])},T.prototype.reduce=function(k,g){for(var y,c=this.iterator();y=c();)g=k(g,y);return g},T}();O.default=P},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var a=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){a(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(17),k=p(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},y=100,c=function(a){P(e,a);function e(t){var l=a.call(this,t)||this;return l.scroll=l,l.observer=new MutationObserver(function(o){l.update(o)}),l.observer.observe(l.domNode,g),l.attach(),l}return e.prototype.detach=function(){a.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()}):a.prototype.deleteAt.call(this,t,l)},e.prototype.formatAt=function(t,l,o,u){this.update(),a.prototype.formatAt.call(this,t,l,o,u)},e.prototype.insertAt=function(t,l,o){this.update(),a.prototype.insertAt.call(this,t,l,o)},e.prototype.optimize=function(t,l){var o=this;t===void 0&&(t=[]),l===void 0&&(l={}),a.prototype.optimize.call(this,l);for(var u=[].slice.call(this.observer.takeRecords());u.length>0;)t.push(u.pop());for(var r=function(f,E){E===void 0&&(E=!0),!(f==null||f===o)&&f.domNode.parentNode!=null&&(f.domNode[k.DATA_KEY].mutations==null&&(f.domNode[k.DATA_KEY].mutations=[]),E&&r(f.parent))},i=function(f){f.domNode[k.DATA_KEY]==null||f.domNode[k.DATA_KEY].mutations==null||(f instanceof T.default&&f.children.forEach(i),f.optimize(l))},s=t,n=0;s.length>0;n+=1){if(n>=y)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(function(f){var E=k.find(f.target,!0);E!=null&&(E.domNode===f.target&&(f.type==="childList"?(r(k.find(f.previousSibling,!1)),[].forEach.call(f.addedNodes,function(m){var b=k.find(m,!1);r(b,!1),b instanceof T.default&&b.children.forEach(function(w){r(w,!1)})})):f.type==="attributes"&&r(E.prev)),r(E))}),this.children.forEach(i),s=[].slice.call(this.observer.takeRecords()),u=s.slice();u.length>0;)t.push(u.pop())}},e.prototype.update=function(t,l){var o=this;l===void 0&&(l={}),t=t||this.observer.takeRecords(),t.map(function(u){var r=k.find(u.target,!0);return r==null?null:r.domNode[k.DATA_KEY].mutations==null?(r.domNode[k.DATA_KEY].mutations=[u],r):(r.domNode[k.DATA_KEY].mutations.push(u),null)}).forEach(function(u){u==null||u===o||u.domNode[k.DATA_KEY]==null||u.update(u.domNode[k.DATA_KEY].mutations||[],l)}),this.domNode[k.DATA_KEY].mutations!=null&&a.prototype.update.call(this,this.domNode[k.DATA_KEY].mutations,l),this.optimize(t,l)},e.blotName="scroll",e.defaultChild="block",e.scope=k.Scope.BLOCK_BLOT,e.tagName="DIV",e}(T.default);O.default=c},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var t in e)e.hasOwnProperty(t)&&(a[t]=e[t])};return function(a,e){c(a,e);function t(){this.constructor=a}a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),k=p(1);function g(c,a){if(Object.keys(c).length!==Object.keys(a).length)return!1;for(var e in c)if(c[e]!==a[e])return!1;return!0}var y=function(c){P(a,c);function a(){return c!==null&&c.apply(this,arguments)||this}return a.formats=function(e){if(e.tagName!==a.tagName)return c.formats.call(this,e)},a.prototype.format=function(e,t){var l=this;e===this.statics.blotName&&!t?(this.children.forEach(function(o){o instanceof T.default||(o=o.wrap(a.blotName,!0)),l.attributes.copy(o)}),this.unwrap()):c.prototype.format.call(this,e,t)},a.prototype.formatAt=function(e,t,l,o){if(this.formats()[l]!=null||k.query(l,k.Scope.ATTRIBUTE)){var u=this.isolate(e,t);u.format(l,o)}else c.prototype.formatAt.call(this,e,t,l,o)},a.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 a&&l.prev===this&&g(t,l.formats())&&(l.moveChildren(this),l.remove())},a.blotName="inline",a.scope=k.Scope.INLINE_BLOT,a.tagName="SPAN",a}(T.default);O.default=y},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){y(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),k=p(1),g=function(y){P(c,y);function c(){return y!==null&&y.apply(this,arguments)||this}return c.formats=function(a){var e=k.query(c.blotName).tagName;if(a.tagName!==e)return y.formats.call(this,a)},c.prototype.format=function(a,e){k.query(a,k.Scope.BLOCK)!=null&&(a===this.statics.blotName&&!e?this.replaceWith(c.blotName):y.prototype.format.call(this,a,e))},c.prototype.formatAt=function(a,e,t,l){k.query(t,k.Scope.BLOCK)!=null?this.format(t,l):y.prototype.formatAt.call(this,a,e,t,l)},c.prototype.insertAt=function(a,e,t){if(t==null||k.query(e,k.Scope.INLINE)!=null)y.prototype.insertAt.call(this,a,e,t);else{var l=this.split(a),o=k.create(e,t);l.parent.insertBefore(o,l)}},c.prototype.update=function(a,e){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,a,e)},c.blotName="block",c.scope=k.Scope.BLOCK_BLOT,c.tagName="P",c}(T.default);O.default=g},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var a in c)c.hasOwnProperty(a)&&(y[a]=c[a])};return function(y,c){g(y,c);function a(){this.constructor=y}y.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),k=function(g){P(y,g);function y(){return g!==null&&g.apply(this,arguments)||this}return y.formats=function(c){},y.prototype.format=function(c,a){g.prototype.formatAt.call(this,0,this.length(),c,a)},y.prototype.formatAt=function(c,a,e,t){c===0&&a===this.length()?this.format(e,t):g.prototype.formatAt.call(this,c,a,e,t)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(T.default);O.default=k},function(j,O,p){"use strict";var P=this&&this.__extends||function(){var y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return function(c,a){y(c,a);function e(){this.constructor=c}c.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)}}();Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),k=p(1),g=function(y){P(c,y);function c(a){var e=y.call(this,a)||this;return e.text=e.statics.value(e.domNode),e}return c.create=function(a){return document.createTextNode(a)},c.value=function(a){var e=a.data;return e.normalize&&(e=e.normalize()),e},c.prototype.deleteAt=function(a,e){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+e)},c.prototype.index=function(a,e){return this.domNode===a?e:-1},c.prototype.insertAt=function(a,e,t){t==null?(this.text=this.text.slice(0,a)+e+this.text.slice(a),this.domNode.data=this.text):y.prototype.insertAt.call(this,a,e,t)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(a){y.prototype.optimize.call(this,a),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(a,e){return e===void 0&&(e=!1),[this.domNode,a]},c.prototype.split=function(a,e){if(e===void 0&&(e=!1),!e){if(a===0)return this;if(a===this.length())return this.next}var t=k.create(this.domNode.splitText(a));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},c.prototype.update=function(a,e){var t=this;a.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=k.Scope.INLINE_BLOT,c}(T.default);O.default=g},function(j,O,p){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(k,g){return arguments.length>1&&!this.contains(k)==!g?g:T.call(this,k)}}String.prototype.startsWith||(String.prototype.startsWith=function(k,g){return g=g||0,this.substr(g,k.length)===k}),String.prototype.endsWith||(String.prototype.endsWith=function(k,g){var y=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>y.length)&&(g=y.length),g-=k.length;var c=y.indexOf(k,g);return c!==-1&&c===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof g!="function")throw new TypeError("predicate must be a function");for(var y=Object(this),c=y.length>>>0,a=arguments[1],e,t=0;tf.length?n:f,b=n.length>f.length?f:n,w=m.indexOf(b);if(w!=-1)return E=[[P,m.substring(0,w)],[T,b],[P,m.substring(w+b.length)]],n.length>f.length&&(E[0][0]=E[2][0]=p),E;if(b.length==1)return[[p,n],[P,f]];var d=t(n,f);if(d){var h=d[0],v=d[1],_=d[2],N=d[3],R=d[4],B=k(h,_),C=k(v,N);return B.concat([[T,R]],C)}return y(n,f)}function y(n,f){for(var E=n.length,m=f.length,b=Math.ceil((E+m)/2),w=b,d=2*b,h=new Array(d),v=new Array(d),_=0;_E)C+=2;else if(F>m)B+=2;else if(R){var D=w+N-A;if(D>=0&&D=x)return c(n,f,L,F)}}}for(var I=-q+W;I<=q-M;I+=2){var D=w+I,x;I==-q||I!=q&&v[D-1]E)M+=2;else if(U>m)W+=2;else if(!R){var S=w+N-I;if(S>=0&&S=x)return c(n,f,L,F)}}}}return[[p,n],[P,f]]}function c(n,f,E,m){var b=n.substring(0,E),w=f.substring(0,m),d=n.substring(E),h=f.substring(m),v=k(b,w),_=k(d,h);return v.concat(_)}function a(n,f){if(!n||!f||n.charAt(0)!=f.charAt(0))return 0;for(var E=0,m=Math.min(n.length,f.length),b=m,w=0;Ef.length?n:f,m=n.length>f.length?f:n;if(E.length<4||m.length*2=C.length?[L,F,D,x,S]:null}var w=b(E,m,Math.ceil(E.length/4)),d=b(E,m,Math.ceil(E.length/2)),h;if(!w&&!d)return null;d?w?h=w[4].length>d[4].length?w:d:h=d:h=w;var v,_,N,R;n.length>f.length?(v=h[0],_=h[1],N=h[2],R=h[3]):(N=h[0],R=h[1],v=h[2],_=h[3]);var B=h[4];return[v,_,N,R,B]}function l(n){n.push([T,""]);for(var f=0,E=0,m=0,b="",w="",d;f1?(E!==0&&m!==0&&(d=a(w,b),d!==0&&(f-E-m>0&&n[f-E-m-1][0]==T?n[f-E-m-1][1]+=w.substring(0,d):(n.splice(0,0,[T,w.substring(0,d)]),f++),w=w.substring(d),b=b.substring(d)),d=e(w,b),d!==0&&(n[f][1]=w.substring(w.length-d)+n[f][1],w=w.substring(0,w.length-d),b=b.substring(0,b.length-d))),E===0?n.splice(f-m,E+m,[P,w]):m===0?n.splice(f-E,E+m,[p,b]):n.splice(f-E-m,E+m,[p,b],[P,w]),f=f-E-m+(E?1:0)+(m?1:0)+1):f!==0&&n[f-1][0]==T?(n[f-1][1]+=n[f][1],n.splice(f,1)):f++,m=0,E=0,b="",w="";break}n[n.length-1][1]===""&&n.pop();var h=!1;for(f=1;f0&&m.splice(b+2,0,[d[0],h]),s(m,b,3)}else return n}function i(n){for(var f=!1,E=function(d){return d.charCodeAt(0)>=56320&&d.charCodeAt(0)<=57343},m=function(d){return d.charCodeAt(d.length-1)>=55296&&d.charCodeAt(d.length-1)<=56319},b=2;b0&&w.push(n[b]);return w}function s(n,f,E){for(var m=f+E-1;m>=0&&m>=f-1;m--)if(m+1\r?\n +\<"),this.convert();var V=this.quill.getFormat(this.quill.selection.savedRange.index);if(V[m.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",new a.default().insert(J,_({},m.default.blotName,V[m.default.blotName]))}var tt=this.prepareMatching(),et=T(tt,2),ft=et[0],ct=et[1],ot=I(this.container,ft,ct);return D(ot,` `)&&ot.ops[ot.ops.length-1].attributes==null&&(ot=ot.compose(new a.default().retain(ot.length()-1).delete(1))),C.log("convert",this.container.innerHTML,ot),this.container.innerHTML="",ot}},{key:"dangerouslyPasteHTML",value:function(G,V){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.default.sources.API;if(typeof G=="string")this.quill.setContents(this.convert(G),V),this.quill.setSelection(0,o.default.sources.SILENT);else{var tt=this.convert(V);this.quill.updateContents(new a.default().retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),o.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var V=this;if(!(G.defaultPrevented||!this.quill.isEnabled())){var J=this.quill.getSelection(),tt=new a.default().retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(o.default.sources.SILENT),setTimeout(function(){tt=tt.concat(V.convert()).delete(J.length),V.quill.updateContents(tt,o.default.sources.USER),V.quill.setSelection(tt.length()-J.length,o.default.sources.SILENT),V.quill.scrollingContainer.scrollTop=et,V.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,V=[],J=[];return this.matchers.forEach(function(tt){var et=T(tt,2),ft=et[0],ct=et[1];switch(ft){case Node.TEXT_NODE:J.push(ct);break;case Node.ELEMENT_NODE:V.push(ct);break;default:[].forEach.call(G.container.querySelectorAll(ft),function(ot){ot[W]=ot[W]||[],ot[W].push(ct)});break}}),[V,J]}}]),z}(s.default);S.DEFAULTS={matchers:[],matchVisual:!0};function L(K,z,$){return(typeof z=="undefined"?"undefined":P(z))==="object"?Object.keys(z).reduce(function(G,V){return L(G,V,z[V])},K):K.reduce(function(G,V){return V.attributes&&V.attributes[z]?G.push(V):G.insert(V.insert,(0,y.default)({},_({},z,$),V.attributes))},new a.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=K.ops.length-1;G>=0&&$.length-1}function I(K,z,$){return K.nodeType===K.TEXT_NODE?$.reduce(function(G,V){return V(K,G)},new a.default):K.nodeType===K.ELEMENT_NODE?[].reduce.call(K.childNodes||[],function(G,V){var J=I(V,z,$);return V.nodeType===K.ELEMENT_NODE&&(J=z.reduce(function(tt,et){return et(V,tt)},J),J=(V[W]||[]).reduce(function(tt,et){return et(V,tt)},J)),G.concat(J)},new a.default):new a.default}function U(K,z,$){return L($,K,!0)}function H(K,z){var $=t.default.Attributor.Attribute.keys(K),G=t.default.Attributor.Class.keys(K),V=t.default.Attributor.Style.keys(K),J={};return $.concat(G).concat(V).forEach(function(tt){var et=t.default.query(tt,t.default.Scope.ATTRIBUTE);et!=null&&(J[et.attrName]=et.value(K),J[et.attrName])||(et=q[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(K)||void 0),et=A[tt],et!=null&&(et.attrName===tt||et.keyName===tt)&&(et=A[tt],J[et.attrName]=et.value(K)||void 0))}),Object.keys(J).length>0&&(z=L(z,J)),z}function Z(K,z){var $=t.default.query(K);if($==null)return z;if($.prototype instanceof t.default.Embed){var G={},V=$.value(K);V!=null&&(G[$.blotName]=V,z=new a.default().insert(G,$.formats(K)))}else typeof $.formats=="function"&&(z=L(z,$.blotName,$.formats(K)));return z}function Y(K,z){return D(z,` `)||z.insert(` `),z}function X(){return new a.default}function Q(K,z){var $=t.default.query(K);if($==null||$.blotName!=="list-item"||!D(z,` `))return z;for(var G=-1,V=K.parentNode;!V.classList.contains("ql-clipboard");)(t.default.query(V)||{}).blotName==="list"&&(G+=1),V=V.parentNode;return G<=0?z:z.compose(new a.default().retain(z.length()-1).retain(1,{indent:G}))}function nt(K,z){return D(z,` `)||(x(K)||z.length()>0&&K.nextSibling&&x(K.nextSibling))&&z.insert(` `),z}function rt(K,z){if(x(K)&&K.nextElementSibling!=null&&!D(z,` `)){var $=K.offsetHeight+parseFloat(F(K).marginTop)+parseFloat(F(K).marginBottom);K.nextElementSibling.offsetTop>K.offsetTop+$*1.5&&z.insert(` `)}return z}function st(K,z){var $={},G=K.style||{};return G.fontStyle&&F(K).fontStyle==="italic"&&($.italic=!0),G.fontWeight&&(F(K).fontWeight.startsWith("bold")||parseInt(F(K).fontWeight)>=700)&&($.bold=!0),Object.keys($).length>0&&(z=L(z,$)),parseFloat(G.textIndent||0)>0&&(z=new a.default().insert(" ").concat(z)),z}function at(K,z){var $=K.data;if(K.parentNode.tagName==="O:P")return z.insert($.trim());if($.trim().length===0&&K.parentNode.classList.contains("ql-clipboard"))return z;if(!F(K.parentNode).whiteSpace.startsWith("pre")){var G=function(J,tt){return tt=tt.replace(/[^\u00a0]/g,""),tt.length<1&&J?" ":tt};$=$.replace(/\r\n/g," ").replace(/\n/g," "),$=$.replace(/\s\s+/g,G.bind(G,!0)),(K.previousSibling==null&&x(K.parentNode)||K.previousSibling!=null&&x(K.previousSibling))&&($=$.replace(/^\s+/,G.bind(G,!1))),(K.nextSibling==null&&x(K.parentNode)||K.nextSibling!=null&&x(K.nextSibling))&&($=$.replace(/\s+$/,G.bind(G,!1)))}return z.insert($)}O.default=S,O.matchAttributor=H,O.matchBlot=Z,O.matchNewline=nt,O.matchSpacing=rt,O.matchText=at},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function l(o,u){for(var r=0;r '},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function l(o,u){for(var r=0;rt.right&&(o=t.right-l.right,this.root.style.left=a+o+"px"),l.leftt.bottom){var u=l.bottom-l.top,r=c.bottom-c.top+u;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")}}]),g}();O.default=k},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function d(h,v){var _=[],N=!0,R=!1,B=void 0;try{for(var C=h[Symbol.iterator](),W;!(N=(W=C.next()).done)&&(_.push(W.value),!(v&&_.length===v));N=!0);}catch(M){R=!0,B=M}finally{try{!N&&C.return&&C.return()}finally{if(R)throw B}}return _}return function(h,v){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return d(h,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),T=function d(h,v,_){h===null&&(h=Function.prototype);var N=Object.getOwnPropertyDescriptor(h,v);if(N===void 0){var R=Object.getPrototypeOf(h);return R===null?void 0:d(R,v,_)}else{if("value"in N)return N.value;var B=N.get;return B===void 0?void 0:B.call(_)}},k=function(){function d(h,v){for(var _=0;_','','',''].join(""),O.default=b},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(29),T=V(P),k=p(36),g=p(38),y=p(64),c=p(65),a=V(c),e=p(66),t=V(e),l=p(67),o=V(l),u=p(37),r=p(26),i=p(39),s=p(40),n=p(56),f=V(n),E=p(68),m=V(E),b=p(27),w=V(b),d=p(69),h=V(d),v=p(70),_=V(v),N=p(71),R=V(N),B=p(72),C=V(B),W=p(73),M=V(W),q=p(13),A=V(q),S=p(74),L=V(S),F=p(75),D=V(F),x=p(57),I=V(x),U=p(41),H=V(U),Z=p(28),Y=V(Z),X=p(59),Q=V(X),nt=p(60),rt=V(nt),st=p(61),at=V(st),K=p(108),z=V(K),$=p(62),G=V($);function V(J){return J&&J.__esModule?J:{default:J}}T.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":k.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":s.SizeClass,"attributors/style/align":k.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":s.SizeStyle},!0),T.default.register({"formats/align":k.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":y.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":s.SizeClass,"formats/blockquote":a.default,"formats/code-block":A.default,"formats/header":t.default,"formats/list":o.default,"formats/bold":f.default,"formats/code":q.Code,"formats/italic":m.default,"formats/link":w.default,"formats/script":h.default,"formats/strike":_.default,"formats/underline":R.default,"formats/image":C.default,"formats/video":M.default,"formats/list/item":l.ListItem,"modules/formula":L.default,"modules/syntax":D.default,"modules/toolbar":I.default,"themes/bubble":z.default,"themes/snow":G.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":rt.default,"ui/color-picker":Q.default,"ui/tooltip":at.default},!0),O.default=T.default},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var P=function(){function o(u,r){for(var i=0;i0&&this.children.tail.format(m,b)}},{key:"formats",value:function(){return l({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(m,b){if(m instanceof i)T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"insertBefore",this).call(this,m,b);else{var w=b==null?this.length():b.offset(this),d=this.split(w);d.parent.insertBefore(m,d)}}},{key:"optimize",value:function(m){T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,m);var b=this.next;b!=null&&b.prev===this&&b.statics.blotName===this.statics.blotName&&b.domNode.tagName===this.domNode.tagName&&b.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(b.moveChildren(this),b.remove())}},{key:"replace",value:function(m){if(m.statics.blotName!==this.statics.blotName){var b=g.default.create(this.statics.defaultChild);m.moveChildren(b),this.appendChild(b)}T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replace",this).call(this,m)}}]),f}(e.default);s.blotName="list",s.scope=g.default.Scope.BLOCK_BLOT,s.tagName=["OL","UL"],s.defaultChild="list-item",s.allowedChildren=[i],O.ListItem=i,O.default=s},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(56),T=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 a=function(e){c(t,e);function t(){return g(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(T.default);a.blotName="italic",a.tagName=["EM","I"],O.default=a},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function l(o,u){for(var r=0;r-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=T(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,y.sanitize)(s,["http","https","data"])?s:"//:0"}},{key:"value",value:function(s){return s.getAttribute("src")}}]),r}(g.default.Embed);o.blotName="image",o.tagName="IMG",O.default=o},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(r,i){for(var s=0;s-1?n?this.domNode.setAttribute(s,n):this.domNode.removeAttribute(s):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,s,n)}}],[{key:"create",value:function(s){var n=T(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 y.default.sanitize(s)}},{key:"value",value:function(s){return s.getAttribute("src")}}]),r}(k.BlockEmbed);o.blotName="video",o.className="ql-video",o.tagName="IFRAME",O.default=o},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var P=function(){function s(n,f){for(var E=0;E0||this.cachedText==null)&&(this.domNode.innerHTML=w(d),this.domNode.normalize(),this.attach()),this.cachedText=d)}}]),m}(l.default);s.className="ql-syntax";var n=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),f=function(E){i(m,E),P(m,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(s,!0)}}]);function m(b,w){u(this,m);var d=r(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b,w));if(typeof d.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return d.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){d.highlight(),h=null},d.options.interval)}),d.highlight(),d}return P(m,[{key:"highlight",value:function(){var w=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var d=this.quill.getSelection();this.quill.scroll.descendants(s).forEach(function(h){h.highlight(w.options.highlight)}),this.quill.update(c.default.sources.SILENT),d!=null&&this.quill.setSelection(d,c.default.sources.SILENT)}}}]),m}(e.default);f.DEFAULTS={highlight:function(){return window.hljs==null?null:function(E){var m=window.hljs.highlightAuto(E);return m.value}}(),interval:1e3},O.CodeBlock=s,O.CodeToken=n,O.default=f},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O){j.exports=' '},function(j,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var P=function m(b,w,d){b===null&&(b=Function.prototype);var h=Object.getOwnPropertyDescriptor(b,w);if(h===void 0){var v=Object.getPrototypeOf(b);return v===null?void 0:m(v,w,d)}else{if("value"in h)return h.value;var _=h.get;return _===void 0?void 0:_.call(d)}},T=function(){function m(b,w){for(var d=0;d0&&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(_.index,_.length);if(B.length===1)h.position(h.quill.getBounds(_));else{var C=B[B.length-1],W=h.quill.getIndex(C),M=Math.min(C.length()-1,_.index+_.length-W),q=h.quill.getBounds(new t.Range(W,M));h.position(q)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return T(b,[{key:"listen",value:function(){var d=this;P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){d.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!d.root.classList.contains("ql-hidden")){var h=d.quill.getSelection();h!=null&&d.position(d.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(d){var h=P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,d),v=this.root.querySelector(".ql-tooltip-arrow");if(v.style.marginLeft="",h===0)return h;v.style.marginLeft=-1*h-v.offsetWidth/2+"px"}}]),b}(a.BaseTooltip);E.TEMPLATE=['','
','','',"
"].join(""),O.BubbleTooltip=E,O.default=f},function(j,O,p){j.exports=p(63)}]).default})},71167:function(dt,vt,it){"use strict";var ut=this&&this.__extends||function(){var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)o.hasOwnProperty(u)&&(l[u]=o[u])},a(e,t)};return function(e,t){a(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}(),j=this&&this.__assign||function(){return j=Object.assign||function(a){for(var e,t=1,l=arguments.length;t1)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