1(self.webpackChunkstudynco=self.webpackChunkstudynco||[]).push([["default-src_app_modules_wysiwyg_wysiwyg_component_ts-src_app_modules_wysiwyg_wysiwyg_module_ts"],{8426:(ct,D,b)=>{"use strict";b.d(D,{H:()=>c});var h=b(4006),S=b(9971),T=b.n(S);const _=T().import("formats/link");class m extends _{static create(f){let E=_.create(f);return f=_.sanitize(f),E.setAttribute("href",f),console.log(f),f.startsWith(window.location.origin)?E.removeAttribute("target"):E.setAttribute("target","_blank"),E}format(f,E){super.format(f,E),f===this.statics.blotName&&E&&(E.startsWith(window.location.origin)?this.domNode.removeAttribute("target"):this.domNode.setAttribute("target","_blank"))}}var u=b(8274),o=b(6895),e=b(5121),n=b(805);function s(t,f){1&t&&u._UZ(0,"option",25),2&t&&u.Q6J("value",f.$implicit)}function l(t,f){1&t&&u._UZ(0,"option",25),2&t&&u.Q6J("value",f.$implicit)}function a(t,f){1&t&&(u.TgZ(0,"span",2),u._UZ(1,"button",26)(2,"button",27)(3,"button",28),u.qZA())}function i(t,f){if(1&t&&(u.TgZ(0,"span",2)(1,"select",3)(2,"option",4),u._uU(3,"Heading"),u.qZA(),u.TgZ(4,"option",5),u._uU(5,"Subheading"),u.qZA(),u.TgZ(6,"option",6),u._uU(7,"Normal"),u.qZA()(),u.TgZ(8,"select",7),u._UZ(9,"option",8)(10,"option",6)(11,"option",9)(12,"option",10),u.qZA()(),u.TgZ(13,"span",2),u._UZ(14,"button",11)(15,"button",12)(16,"button",13),u.qZA(),u.TgZ(17,"span",2)(18,"select",14),u.YNc(19,s,1,1,"option",15),u.qZA(),u.TgZ(20,"select",16),u.YNc(21,l,1,1,"option",15),u.qZA()(),u.TgZ(22,"span",2),u._UZ(23,"button",17)(24,"button",18),u.TgZ(25,"select",19),u._UZ(26,"option",6),u.TgZ(27,"option",20),u._uU(28,"center"),u.qZA(),u.TgZ(29,"option",21),u._uU(30,"right"),u.qZA(),u.TgZ(31,"option",22),u._uU(32,"justify"),u.qZA()()(),u.YNc(33,a,4,0,"span",23),u.TgZ(34,"span",2),u._UZ(35,"button",24),u.qZA()),2&t){const E=u.oxw();u.xp6(19),u.Q6J("ngForOf",E.colors),u.xp6(2),u.Q6J("ngForOf",E.colors),u.xp6(12),u.Q6J("ngIf","full"===E.mode)}}const r=["var(--theme-primary)","var(--theme-primary-light)","var(--theme-secondary-dark)","var(--theme-secondary-darker)","white","white","white","#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"];let c=(()=>{class t{constructor(){this.mode="minimal",this._innerValue="",this.colors=r,this.disabled=!1,T().register("formats/link",m,!0)}get innerValue(){return this._innerValue}set innerValue(E){this._innerValue=E,this.onChangeFn&&this.onChangeFn(E),this.onTouchedFn&&this.onTouchedFn(E)}registerOnChange(E){this.onChangeFn=E}registerOnTouched(E){this.onTouchedFn=E}setDisabledState(E){this.disabled=E}writeValue(E){this._innerValue=E}ngOnInit(){}static#t=this.\u0275fac=function(g){return new(g||t)};static#e=this.\u0275cmp=u.Xpm({type:t,selectors:[["app-wysiwyg"]],inputs:{ngStyle:"ngStyle",mode:"mode"},features:[u._Bn([{provide:h.JU,useExisting:t,multi:!0}])],decls:2,vars:3,consts:[[3,"ngModel","ngModelChange"],["pTemplate","header"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-size"],["value","small"],["value","large"],["value","huge"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color","ql-picker","ql-color-picker"],[3,"value",4,"ngFor","ngForOf"],[1,"ql-background","ql-picker","ql-color-picker"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["class","ql-formats",4,"ngIf"],["aria-label","Remove Styles","type","button",1,"ql-clean"],[3,"value"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"]],template:function(g,O){1&g&&(u.TgZ(0,"p-editor",0),u.NdJ("ngModelChange",function(v){return O.innerValue=v}),u.YNc(1,i,36,3,"ng-template",1),u.qZA()),2&g&&(u.Akn(O.ngStyle),u.Q6J("ngModel",O.innerValue))},dependencies:[o.sg,o.O5,h.YN,h.Kr,h.JJ,h.On,e.ML,n.jx],styles:["[_nghost-%COMP%] .ql-snow .ql-color-picker .ql-picker-item{height:16px!important;padding:0!important;width:16px!important}"]})}return t})()},4257:(ct,D,b)=>{"use strict";b.d(D,{I:()=>m});var h=b(6895),S=b(5121),T=b(4006),_=b(8274);let m=(()=>{class y{static#t=this.\u0275fac=function(e){return new(e||y)};static#e=this.\u0275mod=_.oAB({type:y});static#n=this.\u0275inj=_.cJS({imports:[h.ez,T.u5,S.Z_]})}return y})()},9971:function(ct){typeof self<"u"&&self,ct.exports=function(D){var b={};function h(S){if(b[S])return b[S].exports;var T=b[S]={i:S,l:!1,exports:{}};return D[S].call(T.exports,T,T.exports,h),T.l=!0,T.exports}return h.m=D,h.c=b,h.d=function(S,T,_){h.o(S,T)||Object.defineProperty(S,T,{configurable:!1,enumerable:!0,get:_})},h.n=function(S){var T=S&&S.__esModule?function(){return S.default}:function(){return S};return h.d(T,"a",T),T},h.o=function(S,T){return Object.prototype.hasOwnProperty.call(S,T)},h.p="",h(h.s=109)}([function(D,b,h){"use strict";
1Object.defineProperty(b,"__esModule",{value:!0});var S=h(17),T=h(18),_=h(19),m=h(45),y=h(46),u=h(47),o=h(48),e=h(49),n=h(12),s=h(32),l=h(33),a=h(31),i=h(1);b.default={Scope:i.Scope,create:i.create,find:i.find,query:i.query,register:i.register,Container:S.default,Format:T.default,Leaf:_.default,Embed:o.default,Scroll:m.default,Block:u.default,Inline:y.default,Text:e.default,Attributor:{Attribute:n.default,Class:s.default,Style:l.default,Store:a.default}}},function(D,b,h){"use strict";var a,S=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var c in r)r.hasOwnProperty(c)&&(i[c]=r[c])},function(i,r){function c(){this.constructor=i}a(i,r),i.prototype=null===r?Object.create(r):(c.prototype=r.prototype,new c)});Object.defineProperty(b,"__esModule",{value:!0});var T=function(a){function i(r){var c=this;return(c=a.call(this,r="[Parchment] "+r)||this).message=r,c.name=c.constructor.name,c}return S(i,a),i}(Error);b.ParchmentError=T;var o,_={},m={},y={},u={};function s(a,i){var r;if(void 0===i&&(i=o.ANY),"string"==typeof a)r=u[a]||_[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)r=u.text;else if("number"==typeof a)a&o.LEVEL&o.BLOCK?r=u.block:a&o.LEVEL&o.INLINE&&(r=u.inline);else if(a instanceof HTMLElement){var c=(a.getAttribute("class")||"").split(/\s+/);for(var t in c)if(r=m[c[t]])break;r=r||y[a.tagName]}return null==r?null:i&o.LEVEL&r.scope&&i&o.TYPE&r.scope?r:null}b.DATA_KEY="__blot",function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"}(o=b.Scope||(b.Scope={})),b.create=function e(a,i){var r=s(a);if(null==r)throw new T("Unable to create "+a+" blot");var c=r,t=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:c.create(i);return new c(t,i)},b.find=function n(a,i){return void 0===i&&(i=!1),null==a?null:null!=a[b.DATA_KEY]?a[b.DATA_KEY].blot:i?n(a.parentNode,i):null},b.query=s,b.register=function l(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(a.length>1)return a.map(function(t){return l(t)});var r=a[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new T("Invalid definition");if("abstract"===r.blotName)throw new T("Cannot register abstract class");return u[r.blotName||r.attrName]=r,"string"==typeof r.keyName?_[r.keyName]=r:(null!=r.className&&(m[r.className]=r),null!=r.tagName&&(r.tagName=Array.isArray(r.tagName)?r.tagName.map(function(t){return t.toUpperCase()}):r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(function(t){(null==y[t]||null==r.className)&&(y[t]=r)}))),r}},function(D,b,h){var S=h(51),T=h(11),_=h(3),m=h(20),y=String.fromCharCode(0),u=function(o){this.ops=Array.isArray(o)?o:null!=o&&Array.isArray(o.ops)?o.ops:[]};u.prototype.insert=function(o,e){var n={};return 0===o.length?this:(n.insert=o,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},u.prototype.retain=function(o,e){if(o<=0)return this;var n={retain:o};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(o){var e=this.ops.length,n=this.ops[e-1];if(o=_(!0,{},o),"object"==typeof n){if("number"==typeof o.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+o.delete},this;if("number"==typeof n.delete&&null!=o.insert&&"object"!=typeof(n=this.ops[(e-=1)-1]))return this.ops.unshift(o),this;if(T(o.attributes,n.attributes)){if("string"==typeof o.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+o.insert},"object"==typeof o.attributes&&(this.ops[e-1].attributes=o.attributes),this;if("number"==typeof o.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+o.retain},"object"==typeof o.attributes&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},u.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},u.prototype.filter=function(o){return this.ops.filter(o)},u.prototype.forEach=function(o){this.ops.forEach(o)},u.prototype.map=function(o){return this.ops.map(o)},u.prototype.partition=function(o){var e=[],n=[];return this.forEach(function(s){(o(s)?e:n).push(s)}),[e,n]},u.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},u.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+m.length(e):e.delete?o-e.delete:o}
vendor: 9,815 bytes, line 1
1,0)},u.prototype.length=function(){return this.reduce(function(o,e){return o+m.length(e)},0)},u.prototype.slice=function(o,e){o=o||0,"number"!=typeof e&&(e=1/0);for(var n=[],s=m.iterator(this.ops),l=0;l<e&&s.hasNext();){var a;l<o?a=s.next(o-l):(a=s.next(e-l),n.push(a)),l+=m.length(a)}return new u(n)},u.prototype.compose=function(o){var e=m.iterator(this.ops),n=m.iterator(o.ops),s=[],l=n.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){for(var a=l.retain;"insert"===e.peekType()&&e.peekLength()<=a;)a-=e.peekLength(),s.push(e.next());l.retain-a>0&&n.next(l.retain-a)}for(var i=new u(s);e.hasNext()||n.hasNext();)if("insert"===n.peekType())i.push(n.next());else if("delete"===e.peekType())i.push(e.next());else{var r=Math.min(e.peekLength(),n.peekLength()),c=e.next(r),t=n.next(r);if("number"==typeof t.retain){var f={};"number"==typeof c.retain?f.retain=r:f.insert=c.insert;var E=m.attributes.compose(c.attributes,t.attributes,"number"==typeof c.retain);if(E&&(f.attributes=E),i.push(f),!n.hasNext()&&T(i.ops[i.ops.length-1],f)){var g=new u(e.rest());return i.concat(g).chop()}}else"number"==typeof t.delete&&"number"==typeof c.retain&&i.push(t)}return i.chop()},u.prototype.concat=function(o){var e=new u(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},u.prototype.diff=function(o,e){if(this.ops===o.ops)return new u;var n=[this,o].map(function(r){return r.map(function(c){if(null!=c.insert)return"string"==typeof c.insert?c.insert:y;throw new Error("diff() called "+(r===o?"on":"with")+" non-document")}).join("")}),s=new u,l=S(n[0],n[1],e),a=m.iterator(this.ops),i=m.iterator(o.ops);return l.forEach(function(r){for(var c=r[1].length;c>0;){var t=0;switch(r[0]){case S.INSERT:t=Math.min(i.peekLength(),c),s.push(i.next(t));break;case S.DELETE:t=Math.min(c,a.peekLength()),a.next(t),s.delete(t);break;case S.EQUAL:t=Math.min(a.peekLength(),i.peekLength(),c);var f=a.next(t),E=i.next(t);T(f.insert,E.insert)?s.retain(t,m.attributes.diff(f.attributes,E.attributes)):s.push(E).delete(t)}c-=t}}),s.chop()},u.prototype.eachLine=function(o,e){e=e||"\n";for(var n=m.iterator(this.ops),s=new u,l=0;n.hasNext();){if("insert"!==n.peekType())return;var a=n.peek(),i=m.length(a)-n.peekLength(),r="string"==typeof a.insert?a.insert.indexOf(e,i)-i:-1;if(r<0)s.push(n.next());else if(r>0)s.push(n.next(r));else{if(!1===o(s,n.next(1).attributes||{},l))return;l+=1,s=new u}}s.length()>0&&o(s,{},l)},u.prototype.transform=function(o,e){if(e=!!e,"number"==typeof o)return this.transformPosition(o,e);for(var n=m.iterator(this.ops),s=m.iterator(o.ops),l=new u;n.hasNext()||s.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===s.peekType())if("insert"===s.peekType())l.push(s.next());else{var a=Math.min(n.peekLength(),s.peekLength()),i=n.next(a),r=s.next(a);if(i.delete)continue;r.delete?l.push(r):l.retain(a,m.attributes.transform(i.attributes,r.attributes,e))}else l.retain(m.length(n.next()));return l.chop()},u.prototype.transformPosition=function(o,e){e=!!e;for(var n=m.iterator(this.ops),s=0;n.hasNext()&&s<=o;){var l=n.peekLength(),a=n.peekType();n.next(),"delete"!==a?("insert"===a&&(s<o||!e)&&(o+=l),s+=l):o-=Math.min(l,o-s)}return o},D.exports=u},function(D,b){"use strict";var h=Object.prototype.hasOwnProperty,S=Object.prototype.toString,T=Object.defineProperty,_=Object.getOwnPropertyDescriptor,m=function(n){return"function"==typeof Array.isArray?Array.isArray(n):"[object Array]"===S.call(n)},y=function(n){if(!n||"[object Object]"!==S.call(n))return!1;var a,s=h.call(n,"constructor"),l=n.constructor&&n.constructor.prototype&&h.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!s&&!l)return!1;for(a in n);return typeof a>"u"||h.call(n,a)},u=function(n,s){T&&"__proto__"===s.name?T(n,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):n[s.name]=s.newValue},o=function(n,s){if("__proto__"===s){if(!h.call(n,s))return;if(_)return _(n,s).value}return n[s]};D.exports=function e(){var n,s,l,a,i,r,c=arguments[0],t=1,f=arguments.length,E=!1;for("boolean"==typeof c&&(E=c,c=arguments[1]||{},t=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});t<f;++t)if(null!=(n=arguments[t]))for(s in n)l=o(c,s),c!==(a=o(n,s))&&(E&&a&&(y(a)||(i=m(a)))?(i?(i=!1,r=l&&m(l)?l:[]):r=l&&y(l)?l:{},u(c,{name:s,newValue:e(E,r,a)})):typeof a<"u"&&u(c,{name:s,newValue:a}));return c}},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BlockEmbed=b.bubbleFormats=void 0;var S=function(){function d(p,k){for(var N=0;N<k.length;N++){var L=k[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(p,L.key,L)}}return function(p,k,N){return k&&d(p.prototype,k),N&&d(p,N),p}}(),T=function d(p,k,N){null===p&&(p=Function.prototype);var L=Object.getOwnPropertyDescriptor(p,k);if(void 0===L){var B=Object.getPrototypeOf(p);return null===B?void 0:d(B,k,N)}if("value"in L)return L.value;var C=L.get;return void 0===C?void 0:C.call(N)},m=c(h(3)),u=c(h(2)),e=c(h(0)),s=c(h(16)),a=c(h(6)),r=c(h(7));function c(d){return d&&d.__esModule?d:{default:d}}function t(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function f(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?d:p}function E(d,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}var g=1,O=function(d){function p(){return t(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return E(p,d),S(p,[{key:"attach",value:function(){T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new u.default).insert(this.value(),(0,m.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(N,L){var B=e.default.query(N,e.default.Scope.BLOCK_ATTRIBUTE);null!=B&&this.attributes.attribute(B,L)}},{key:"formatAt",value:function(N,L,B,C){this.format(B,C)}},{key:"insertAt",value:function(N,L,B){if("string"==typeof L&&L.endsWith("\n")){var C=e.default.create(w.blotName);this.parent.insertBefore(C,0===N?this:this.next),C.insertAt(0,L.slice(0,-1))}else T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,N,L,B)}}]),p}(e.default.Embed);O.scope=e.default.Scope.BLOCK_BLOT;var w=function(d){function p(k){t(this,p);var N=f(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,k));return N.cache={},N}return E(p,d),S(p,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(N,L){return 0===L.length()?N:N.insert(L.value(),v(L))},new u.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(N,L){T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"deleteAt",this).call(this,N,L),this.cache={}}},{key:"formatAt",value:function(N,L,B,C){L<=0||(e.default.query(B,e.default.Scope.BLOCK)?N+L===this.length()&&this.format(B,C):T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"formatAt",this).call(this,N,Math.min(L,this.length()-N-1),B,C),this.cache={})}},{key:"insertAt",value:function(N,L,B){if(null!=B)return T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,N,L,B);if(0!==L.length){var C=L.split("\n"),V=C.shift();V.length>0&&(N<this.length()-1||null==this.children.tail?T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertAt",this).call(this,Math.min(N,this.length()-1),V):this.children.tail.insertAt(this.children.tail.length(),V),this.cache={});var I=this;C.reduce(function(R,A){return(I=I.split(R,!0)).insertAt(0,A),A.length},N+V.length)}}},{key:"insertBefore",value:function(N,L){var B=this.children.head;T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertBefore",this).call(this,N,L),B instanceof s.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"length",this).call(this)+g),this.cache.length}},{key:"moveChildren",value:function(N,L){T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"moveChildren",this).call(this,N,L),this.cache={}}},{key:"optimize",value:function(N){T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,N),this.cache={}}},{key:"path",value:function(N){return T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"path",this).call(this,N,!0)}},{key:"removeChild",value:function(N){T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"removeChild",this).call(this,N),this.cache={}}},{key:"split",value:function(N){var L=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(L&&(0===N||N>=this.length()-g)){var B=this.clone();return 0===N?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}var C=T(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"split",this).call(this,N,L);return this.cache={},C}}]),p}(e.default.Block);function v(d){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==d||("function"==typeof d.formats&&(p=(0,m.default)(p,d.formats())),null==d.parent||"scroll"==d.parent.blotName||d.parent.statics.scope!==d.statics.scope)?p:v(d.parent,p)}w.blotName="block",w.tagName="P",w.defaultChild="break",w.allowedChildren=[a.default,e.default.Embed,r.default],b.bubbleFormats=v,b.BlockEmbed=O,b.default=w},function(D,b,h){"use strict";
1Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.overload=b.expandConfig=void 0;var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,A){var q=[],P=!0,U=!1,j=void 0;try{for(var M,x=R[Symbol.iterator]();!(P=(M=x.next()).done)&&(q.push(M.value),!A||q.length!==A);P=!0);}catch(F){U=!0,j=F}finally{try{!P&&x.return&&x.return()}finally{if(U)throw j}}return q}(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=function(){function I(R,A){for(var q=0;q<A.length;q++){var P=A[q];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(R,P.key,P)}}return function(R,A,q){return A&&I(R.prototype,A),q&&I(R,q),R}}();h(50);var y=v(h(2)),o=v(h(14)),n=v(h(8)),l=v(h(9)),i=v(h(0)),r=h(15),c=v(r),f=v(h(3)),g=v(h(10)),w=v(h(34));function v(I){return I&&I.__esModule?I:{default:I}}function d(I,R,A){return R in I?Object.defineProperty(I,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[R]=A,I}var k=(0,g.default)("quill"),N=function(){function I(R){var A=this,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function p(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}(this,I),this.options=L(R,q),this.container=this.options.container,null==this.container)return k.error("Invalid Quill container",R);this.options.debug&&I.debug(this.options.debug);var P=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 n.default,this.scroll=i.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new c.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(n.default.events.EDITOR_CHANGE,function(j){j===n.default.events.TEXT_CHANGE&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(n.default.events.SCROLL_UPDATE,function(j,x){var M=A.selection.lastRange,F=M&&0===M.length?M.index:void 0;B.call(A,function(){return A.editor.update(null,x,F)},j)});var U=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+P+"<p><br></p></div>");this.setContents(U),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return _(I,null,[{key:"debug",value:function(A){!0===A&&(A="log"),g.default.level(A)}},{key:"find",value:function(A){return A.__quill||i.default.find(A)}},{key:"import",value:function(A){return null==this.imports[A]&&k.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,q){var P=this,U=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof A){var j=A.attrName||A.blotName;"string"==typeof j?this.register("formats/"+j,A,q):Object.keys(A).forEach(function(x){P.register(x,A[x],q)})}else null!=this.imports[A]&&!U&&k.warn("Overwriting "+A+" with",q),this.imports[A]=q,(A.startsWith("blots/")||A.startsWith("formats/"))&&"abstract"!==q.blotName?i.default.register(q):A.startsWith("modules")&&"function"==typeof q.register&&q.register()}}]),_(I,[{key:"addContainer",value:function(A){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof A){var P=A;(A=document.createElement("div")).classList.add(P)}return this.container.insertBefore(A,q),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,q,P){var U=this,j=C(A,q,P),x=T(j,4);return B.call(this,function(){return U.editor.deleteText(A,q)},P=x[3],A=x[0],-1*(q=x[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=!(arguments.length>0&&void 0!==arguments[0])||arguments[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,q){var P=this;return B.call(this,function(){var j=P.getSelection(!0),x=new y.default;if(null==j)return x;if(i.default.query(A,i.default.Scope.BLOCK))x=P.editor.formatLine(j.index,j.length,d({},A,q));else{if(0===j.length)return P.selection.format(A,q),x;x=P.editor.formatText(j.index,j.length,d({},A,q))}return P.setSelection(j,n.default.sources.SILENT),x},arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.default.sources.API)}},{key:"formatLine",value:function(A,q,P,U,j){var M,x=this,F=C(A,q,P,U,j),Z=T(F,4);return q=Z[1],M=Z[2],B.call(this,function(){return x.editor.formatLine(A,q,M)},j=Z[3],A=Z[0],0)}},{key:"formatText",value:function(A,q,P,U,j){var M,x=this,F=C(A,q,P,U,j),Z=T(F,4);return q=Z[1],M=Z[2],B.call(this,function(){return x.editor.formatText(A,q,M)},j=Z[3],A=Z[0],0)}},{key:"getBounds",value:function(A){var P;P="number"==typeof A?this.selection.getBounds(A,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(A.index,A.length);var U=this.container.getBoundingClientRect();return{bottom:P.bottom-U.top,height:P.height,left:P.left-U.left,right:P.right-U.left,top:P.top-U.top,width:P.width}}},{key:"getContents",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-A,P=C(A,q),U=T(P,2);return this.editor.getContents(A=U[0],q=U[1])}},{key:"getFormat",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof A?this.editor.getFormat(A,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):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&&void 0!==arguments[0]?arguments[0]:0,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof A?this.scroll.lines(A.index,A.length):this.scroll.lines(A,q)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-A,P=C(A,q),U=T(P,2);return this.editor.getText(A=U[0],q=U[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,q,P){var U=this;return B.call(this,function(){return U.editor.insertEmbed(A,q,P)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:I.sources.API,A)}},{key:"insertText",value:function(A,q,P,U,j){var M,x=this,F=C(A,0,P,U,j),Z=T(F,4);return M=Z[2],B.call(this,function(){return x.editor.insertText(A,q,M)},j=Z[3],A=Z[0],q.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(A,q,P){this.clipboard.dangerouslyPasteHTML(A,q,P)}},{key:"removeFormat",value:function(A,q,P){var U=this,j=C(A,q,P),x=T(j,4);return q=x[1],B.call(this,function(){return U.editor.removeFormat(A,q)},P=x[3],A=x[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var q=this;return B.call(this,function(){A=new y.default(A);var U=q.getLength(),j=q.editor.deleteText(0,U),x=q.editor.applyDelta(A),M=x.ops[x.ops.length-1];return null!=M&&"string"==typeof M.insert&&"\n"===M.insert[M.insert.length-1]&&(q.editor.deleteText(q.getLength()-1,1),x.delete(1)),j.compose(x)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.sources.API)}},{key:"setSelection",value:function(A,q,P){if(null==A)this.selection.setRange(null,q||I.sources.API);else{var U=C(A,q,P),j=T(U,4);P=j[3],this.selection.setRange(new r.Range(A=j[0],q=j[1]),P),P!==n.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.sources.API,P=(new y.default).insert(A);return this.setContents(P,q)}},{key:"update",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.default.sources.USER,q=this.scroll.update(A);return this.selection.update(A),q}},{key:"updateContents",value:function(A){var q=this,P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.default.sources.API;
vendor: 4,692 bytes, line 1
1return B.call(this,function(){return A=new y.default(A),q.editor.applyDelta(A,P)},P,!0)}}]),I}();function L(I,R){if((R=(0,f.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},R)).theme&&R.theme!==N.DEFAULTS.theme){if(R.theme=N.import("themes/"+R.theme),null==R.theme)throw new Error("Invalid theme "+R.theme+". Did you register it?")}else R.theme=w.default;var A=(0,f.default)(!0,{},R.theme.DEFAULTS);[A,R].forEach(function(U){U.modules=U.modules||{},Object.keys(U.modules).forEach(function(j){!0===U.modules[j]&&(U.modules[j]={})})});var P=Object.keys(A.modules).concat(Object.keys(R.modules)).reduce(function(U,j){var x=N.import("modules/"+j);return null==x?k.error("Cannot load "+j+" module. Are you sure you registered it?"):U[j]=x.DEFAULTS||{},U},{});return null!=R.modules&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,f.default)(!0,{},N.DEFAULTS,{modules:P},A,R),["bounds","container","scrollingContainer"].forEach(function(U){"string"==typeof R[U]&&(R[U]=document.querySelector(R[U]))}),R.modules=Object.keys(R.modules).reduce(function(U,j){return R.modules[j]&&(U[j]=R.modules[j]),U},{}),R}function B(I,R,A,q){if(this.options.strict&&!this.isEnabled()&&R===n.default.sources.USER)return new y.default;var P=null==A?null:this.getSelection(),U=this.editor.delta,j=I();if(null!=P&&(!0===A&&(A=P.index),null==q?P=V(P,j,R):0!==q&&(P=V(P,A,q,R)),this.setSelection(P,n.default.sources.SILENT)),j.length()>0){var x,F,M=[n.default.events.TEXT_CHANGE,j,U,R];(x=this.emitter).emit.apply(x,[n.default.events.EDITOR_CHANGE].concat(M)),R!==n.default.sources.SILENT&&(F=this.emitter).emit.apply(F,M)}return j}function C(I,R,A,q,P){var U={};return"number"==typeof I.index&&"number"==typeof I.length?"number"!=typeof R?(P=q,q=A,A=R,R=I.length,I=I.index):(R=I.length,I=I.index):"number"!=typeof R&&(P=q,q=A,A=R,R=0),"object"===(typeof A>"u"?"undefined":S(A))?(U=A,P=q):"string"==typeof A&&(null!=q?U[A]=q:P=A),[I,R,U,P=P||n.default.sources.API]}function V(I,R,A,q){if(null==I)return null;var P=void 0,U=void 0;if(R instanceof y.default){var j=[I.index,I.index+I.length].map(function(Z){return R.transformPosition(Z,q!==n.default.sources.USER)}),x=T(j,2);P=x[0],U=x[1]}else{var M=[I.index,I.index+I.length].map(function(Z){return Z<R||Z===R&&q===n.default.sources.USER?Z:A>=0?Z+A:Math.max(R,Z+A)}),F=T(M,2);P=F[0],U=F[1]}return new r.Range(P,U-P)}N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=n.default.events,N.sources=n.default.sources,N.version="1.3.7",N.imports={delta:y.default,parchment:i.default,"core/module":l.default,"core/theme":w.default},b.expandConfig=L,b.overload=C,b.default=N},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function a(i,r){for(var c=0;c<r.length;c++){var t=r[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,r,c){return r&&a(i.prototype,r),c&&a(i,c),i}}(),T=function a(i,r,c){null===i&&(i=Function.prototype);var t=Object.getOwnPropertyDescriptor(i,r);if(void 0===t){var f=Object.getPrototypeOf(i);return null===f?void 0:a(f,r,c)}if("value"in t)return t.value;var E=t.get;return void 0===E?void 0:E.call(c)},m=o(h(7)),u=o(h(0));function o(a){return a&&a.__esModule?a:{default:a}}var l=function(a){function i(){return function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),function n(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?a:i}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function s(a,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}(i,a),S(i,[{key:"formatAt",value:function(c,t,f,E){if(i.compare(this.statics.blotName,f)<0&&u.default.query(f,u.default.Scope.BLOT)){var g=this.isolate(c,t);E&&g.wrap(f,E)}else T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"formatAt",this).call(this,c,t,f,E)}},{key:"optimize",value:function(c){if(T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"optimize",this).call(this,c),this.parent instanceof i&&i.compare(this.statics.blotName,this.parent.statics.blotName)>0){var t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}
1],[{key:"compare",value:function(c,t){var f=i.order.indexOf(c),E=i.order.indexOf(t);return f>=0||E>=0?f-E:c===t?0:c<t?-1:1}}]),i}(u.default.Inline);l.allowedChildren=[l,u.default.Embed,m.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],b.default=l},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var o=function(e){function n(){return function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function u(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),n}(function _(e){return e&&e.__esModule?e:{default:e}}(h(0)).default.Text);b.default=o},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function r(c,t){for(var f=0;f<t.length;f++){var E=t[f];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(c,E.key,E)}}return function(c,t,f){return t&&r(c.prototype,t),f&&r(c,f),c}}(),T=function r(c,t,f){null===c&&(c=Function.prototype);var E=Object.getOwnPropertyDescriptor(c,t);if(void 0===E){var g=Object.getPrototypeOf(c);return null===g?void 0:r(g,t,f)}if("value"in E)return E.value;var O=E.get;return void 0===O?void 0:O.call(f)},m=o(h(54));function o(r){return r&&r.__esModule?r:{default:r}}var l=(0,o(h(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(r){document.addEventListener(r,function(){for(var c=arguments.length,t=Array(c),f=0;f<c;f++)t[f]=arguments[f];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(E){var g;E.__quill&&E.__quill.emitter&&(g=E.__quill.emitter).handleDOM.apply(g,t)})})});var i=function(r){function c(){!function e(r,c){if(!(r instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var t=function n(r,c){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?r:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return t.listeners={},t.on("error",l.error),t}return function s(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);r.prototype=Object.create(c&&c.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(r,c):r.__proto__=c)}(c,r),S(c,[{key:"emit",value:function(){l.log.apply(l,arguments),T(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(f){for(var E=arguments.length,g=Array(E>1?E-1:0),O=1;O<E;O++)g[O-1]=arguments[O];(this.listeners[f.type]||[]).forEach(function(w){var v=w.node,d=w.handler;(f.target===v||v.contains(f.target))&&d.apply(void 0,[f].concat(g))})}},{key:"listenDOM",value:function(f,E,g){this.listeners[f]||(this.listeners[f]=[]),this.listeners[f].push({node:E,handler:g})}}]),c}(m.default);i.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},i.sources={API:"api",SILENT:"silent",USER:"user"},b.default=i},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var T=function _(m){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function S(_,m){if(!(_ instanceof m))throw new TypeError("Cannot call a class as a function")})(this,_),this.quill=m,this.options=y};T.DEFAULTS={},b.default=T},function(D,b,h){"use strict";
1Object.defineProperty(b,"__esModule",{value:!0});var S=["error","warn","log","info"],T="warn";function _(y){if(S.indexOf(y)<=S.indexOf(T)){for(var u,o=arguments.length,e=Array(o>1?o-1:0),n=1;n<o;n++)e[n-1]=arguments[n];(u=console)[y].apply(u,e)}}function m(y){return S.reduce(function(u,o){return u[o]=_.bind(console,o,y),u},{})}_.level=m.level=function(y){T=y},b.default=m},function(D,b,h){var S=Array.prototype.slice,T=h(52),_=h(53),m=D.exports=function(e,n,s){return s||(s={}),e===n||(e instanceof Date&&n instanceof Date?e.getTime()===n.getTime():!e||!n||"object"!=typeof e&&"object"!=typeof n?s.strict?e===n:e==n:function o(e,n,s){var l,a;if(y(e)||y(n)||e.prototype!==n.prototype)return!1;if(_(e))return!!_(n)&&(e=S.call(e),n=S.call(n),m(e,n,s));if(u(e)){if(!u(n)||e.length!==n.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==n[l])return!1;return!0}try{var i=T(e),r=T(n)}catch{return!1}if(i.length!=r.length)return!1;for(i.sort(),r.sort(),l=i.length-1;l>=0;l--)if(i[l]!=r[l])return!1;for(l=i.length-1;l>=0;l--)if(!m(e[a=i[l]],n[a],s))return!1;return typeof e==typeof n}(e,n,s))};function y(e){return null==e}function u(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=h(1),T=function(){function _(m,y,u){void 0===u&&(u={}),this.attrName=m,this.keyName=y,this.scope=null!=u.scope?u.scope&S.Scope.LEVEL|S.Scope.TYPE&S.Scope.ATTRIBUTE:S.Scope.ATTRIBUTE,null!=u.whitelist&&(this.whitelist=u.whitelist)}return _.keys=function(m){return[].map.call(m.attributes,function(y){return y.name})},_.prototype.add=function(m,y){return!!this.canAdd(m,y)&&(m.setAttribute(this.keyName,y),!0)},_.prototype.canAdd=function(m,y){return null!=S.query(m,S.Scope.BLOT&(this.scope|S.Scope.TYPE))&&(null==this.whitelist||("string"==typeof y?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1))},_.prototype.remove=function(m){m.removeAttribute(this.keyName)},_.prototype.value=function(m){var y=m.getAttribute(this.keyName);return this.canAdd(m,y)&&y?y:""},_}();b.default=T},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Code=void 0;var S=function(w,v){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return function O(w,v){var d=[],p=!0,k=!1,N=void 0;try{for(var B,L=w[Symbol.iterator]();!(p=(B=L.next()).done)&&(d.push(B.value),!v||d.length!==v);p=!0);}catch(C){k=!0,N=C}finally{try{!p&&L.return&&L.return()}finally{if(k)throw N}}return d}(w,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function O(w,v){for(var d=0;d<v.length;d++){var p=v[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,p.key,p)}}return function(w,v,d){return v&&O(w.prototype,v),d&&O(w,d),w}}(),_=function O(w,v,d){null===w&&(w=Function.prototype);var p=Object.getOwnPropertyDescriptor(w,v);if(void 0===p){var k=Object.getPrototypeOf(w);return null===k?void 0:O(k,v,d)}if("value"in p)return p.value;var N=p.get;return void 0===N?void 0:N.call(d)},y=r(h(2)),o=r(h(0)),n=r(h(4)),l=r(h(6)),i=r(h(7));function r(O){return O&&O.__esModule?O:{default:O}}function c(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")}function t(O,w){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?O:w}function f(O,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);O.prototype=Object.create(w&&w.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(O,w):O.__proto__=w)}var E=function(O){function w(){return c(this,w),t(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return f(w,O),w}(l.default);E.blotName="code",E.tagName="CODE";var g=function(O){function w(){return c(this,w),t(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return f(w,O),T(w,[{key:"delta",value:function(){var d=this,p=this.domNode.textContent;return p.endsWith("\n")&&(p=p.slice(0,-1)),p.split("\n").reduce(function(k,N){return k.insert(N).insert("\n",d.formats())},new y.default)}}
1,{key:"format",value:function(d,p){if(d!==this.statics.blotName||!p){var k=this.descendant(i.default,this.length()-1),L=S(k,1)[0];L?.deleteAt(L.length()-1,1),_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,d,p)}}},{key:"formatAt",value:function(d,p,k,N){if(0!==p&&null!=o.default.query(k,o.default.Scope.BLOCK)&&(k!==this.statics.blotName||N!==this.statics.formats(this.domNode))){var L=this.newlineIndex(d);if(!(L<0||L>=d+p)){var B=this.newlineIndex(d,!0)+1,C=L-B+1,V=this.isolate(B,C),I=V.next;V.format(k,N),I instanceof w&&I.formatAt(0,d-B+p-C,k,N)}}}},{key:"insertAt",value:function(d,p,k){if(null==k){var N=this.descendant(i.default,d),L=S(N,2);L[0].insertAt(L[1],p)}}},{key:"length",value:function(){var d=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?d:d+1}},{key:"newlineIndex",value:function(d){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,d).lastIndexOf("\n");var k=this.domNode.textContent.slice(d).indexOf("\n");return k>-1?d+k:-1}},{key:"optimize",value:function(d){this.domNode.textContent.endsWith("\n")||this.appendChild(o.default.create("text","\n")),_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,d);var p=this.next;null!=p&&p.prev===this&&p.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===p.statics.formats(p.domNode)&&(p.optimize(d),p.moveChildren(this),p.remove())}},{key:"replace",value:function(d){_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,d),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(p){var k=o.default.find(p);null==k?p.parentNode.removeChild(p):k instanceof o.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(d){var p=_(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,d);return p.setAttribute("spellcheck",!1),p}},{key:"formats",value:function(){return!0}}]),w}(n.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",b.Code=E,b.default=g},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=function(R,A){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,A){var q=[],P=!0,U=!1,j=void 0;try{for(var M,x=R[Symbol.iterator]();!(P=(M=x.next()).done)&&(q.push(M.value),!A||q.length!==A);P=!0);}catch(F){U=!0,j=F}finally{try{!P&&x.return&&x.return()}finally{if(U)throw j}}return q}(R,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=function(){function I(R,A){for(var q=0;q<A.length;q++){var P=A[q];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(R,P.key,P)}}return function(R,A,q){return A&&I(R.prototype,A),q&&I(R,q),R}}(),y=p(h(2)),o=p(h(20)),n=p(h(0)),l=p(h(13)),i=p(h(24)),r=h(4),c=p(r),f=p(h(16)),g=p(h(21)),w=p(h(11)),d=p(h(3));function p(I){return I&&I.__esModule?I:{default:I}}var L=/^[ -~]*$/,B=function(){function I(R){(function N(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")})(this,I),this.scroll=R,this.delta=this.getDelta()}return _(I,[{key:"applyDelta",value:function(A){var q=this,P=!1;this.scroll.update();var U=this.scroll.length();return this.scroll.batchStart(),(A=function V(I){return I.reduce(function(R,A){if(1===A.insert){var q=(0,g.default)(A.attributes);return delete q.image,R.insert({image:A.attributes.image},q)}if(null!=A.attributes&&(!0===A.attributes.list||!0===A.attributes.bullet)&&((A=(0,g.default)(A)).attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),"string"==typeof A.insert){var P=A.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return R.insert(P,A.attributes)}return R.push(A)},new y.default)}(A)).reduce(function(j,x){var M=x.retain||x.delete||x.insert.length||1,F=x.attributes||{};if(null!=x.insert){if("string"==typeof x.insert){var Z=x.insert;Z.endsWith("\n")&&P&&(P=!1,Z=Z.slice(0,-1)),j>=U&&!Z.endsWith("\n")&&(P=!0),q.scroll.insertAt(j,Z);var K=q.scroll.line(j),Y=T(K,2),Q=Y[0],X=Y[1],nt=(0,d.default)({},(0,r.bubbleFormats)(Q));if(Q instanceof c.default){var rt=Q.descendant(n.default.Leaf,X),at=T(rt,1);nt=(0,d.default)(nt,(0,r.bubbleFormats)(at[0]))}F=o.default.attributes.diff(nt,F)||{}}else if("object"===S(x.insert)){var H=Object.keys(x.insert)[0];if(null==H)return j;q.scroll.insertAt(j,H,x.insert[H])}U+=M}
vendor: 4,271 bytes, line 1
1return Object.keys(F).forEach(function(z){q.scroll.formatAt(j,M,z,F[z])}),j+M},0),A.reduce(function(j,x){return"number"==typeof x.delete?(q.scroll.deleteAt(j,x.delete),j):j+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,q){return this.scroll.deleteAt(A,q),this.update((new y.default).retain(A).delete(q))}},{key:"formatLine",value:function(A,q){var P=this,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(U).forEach(function(j){if(null==P.scroll.whitelist||P.scroll.whitelist[j]){var x=P.scroll.lines(A,Math.max(q,1)),M=q;x.forEach(function(F){var Z=F.length();if(F instanceof l.default){var K=A-F.offset(P.scroll),Y=F.newlineIndex(K+M)-K+1;F.formatAt(K,Y,j,U[j])}else F.format(j,U[j]);M-=Z})}}),this.scroll.optimize(),this.update((new y.default).retain(A).retain(q,(0,g.default)(U)))}},{key:"formatText",value:function(A,q){var P=this,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(U).forEach(function(j){P.scroll.formatAt(A,q,j,U[j])}),this.update((new y.default).retain(A).retain(q,(0,g.default)(U)))}},{key:"getContents",value:function(A,q){return this.delta.slice(A,A+q)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,q){return A.concat(q.delta())},new y.default)}},{key:"getFormat",value:function(A){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,P=[],U=[];0===q?this.scroll.path(A).forEach(function(x){var F=T(x,1)[0];F instanceof c.default?P.push(F):F instanceof n.default.Leaf&&U.push(F)}):(P=this.scroll.lines(A,q),U=this.scroll.descendants(n.default.Leaf,A,q));var j=[P,U].map(function(x){if(0===x.length)return{};for(var M=(0,r.bubbleFormats)(x.shift());Object.keys(M).length>0;){var F=x.shift();if(null==F)return M;M=C((0,r.bubbleFormats)(F),M)}return M});return d.default.apply(d.default,j)}},{key:"getText",value:function(A,q){return this.getContents(A,q).filter(function(P){return"string"==typeof P.insert}).map(function(P){return P.insert}).join("")}},{key:"insertEmbed",value:function(A,q,P){return this.scroll.insertAt(A,q,P),this.update((new y.default).retain(A).insert(function k(I,R,A){return R in I?Object.defineProperty(I,R,{value:A,enumerable:!0,configurable:!0,writable:!0}):I[R]=A,I}({},q,P)))}},{key:"insertText",value:function(A,q){var P=this,U=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return q=q.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(A,q),Object.keys(U).forEach(function(j){P.scroll.formatAt(A,q.length,j,U[j])}),this.update((new y.default).retain(A).insert(q,(0,g.default)(U)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return!(A.statics.blotName!==c.default.blotName||A.children.length>1)&&A.children.head instanceof f.default}},{key:"removeFormat",value:function(A,q){var P=this.getText(A,q),U=this.scroll.line(A+q),j=T(U,2),x=j[0],M=j[1],F=0,Z=new y.default;null!=x&&(F=x instanceof l.default?x.newlineIndex(M)-M+1:x.length()-M,Z=x.delta().slice(M,M+F-1).insert("\n"));var Y=this.getContents(A,q+F).diff((new y.default).insert(P).concat(Z)),Q=(new y.default).retain(A).concat(Y);return this.applyDelta(Q)}},{key:"update",value:function(A){var q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],P=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,U=this.delta;if(1===q.length&&"characterData"===q[0].type&&q[0].target.data.match(L)&&n.default.find(q[0].target)){var j=n.default.find(q[0].target),x=(0,r.bubbleFormats)(j),M=j.offset(this.scroll),F=q[0].oldValue.replace(i.default.CONTENTS,""),Z=(new y.default).insert(F),K=(new y.default).insert(j.value());A=(new y.default).retain(M).concat(Z.diff(K,P)).reduce(function(Q,X){return X.insert?Q.insert(X.insert,x):Q.push(X)},new y.default),this.delta=U.compose(A)}else this.delta=this.getDelta(),(!A||!(0,w.default)(U.compose(A),this.delta))&&(A=U.diff(this.delta,P));return A}}]),I}();function C(I,R){return Object.keys(R).reduce(function(A,q){return null==I[q]||(R[q]===I[q]?A[q]=R[q]:Array.isArray(R[q])?R[q].indexOf(I[q])<0&&(A[q]=R[q].concat([I[q]])):A[q]=[R[q],I[q]]),A},{})}b.default=B},function(D,b,h){"use strict";
1Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.Range=void 0;var S=function(w,v){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return function O(w,v){var d=[],p=!0,k=!1,N=void 0;try{for(var B,L=w[Symbol.iterator]();!(p=(B=L.next()).done)&&(d.push(B.value),!v||d.length!==v);p=!0);}catch(C){k=!0,N=C}finally{try{!p&&L.return&&L.return()}finally{if(k)throw N}}return d}(w,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function O(w,v){for(var d=0;d<v.length;d++){var p=v[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(w,p.key,p)}}return function(w,v,d){return v&&O(w.prototype,v),d&&O(w,d),w}}(),m=i(h(0)),u=i(h(21)),e=i(h(11)),s=i(h(8));function i(O){return O&&O.__esModule?O:{default:O}}function r(O){if(Array.isArray(O)){for(var w=0,v=Array(O.length);w<O.length;w++)v[w]=O[w];return v}return Array.from(O)}function c(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")}var t=(0,i(h(10)).default)("quill:selection"),f=function O(w){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,O),this.index=w,this.length=v},E=function(){function O(w,v){var d=this;c(this,O),this.emitter=v,this.scroll=w,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=m.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){d.mouseDown||setTimeout(d.update.bind(d,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(p,k){p===s.default.events.TEXT_CHANGE&&k.length()>0&&d.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(d.hasFocus()){var p=d.getNativeRange();null!=p&&p.start.node!==d.cursor.textNode&&d.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{d.setNativeRange(p.start.node,p.start.offset,p.end.node,p.end.offset)}catch{}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(p,k){if(k.range){var N=k.range;d.setNativeRange(N.startNode,N.startOffset,N.endNode,N.endOffset)}}),this.update(s.default.sources.SILENT)}return T(O,[{key:"handleComposition",value:function(){var v=this;this.root.addEventListener("compositionstart",function(){v.composing=!0}),this.root.addEventListener("compositionend",function(){if(v.composing=!1,v.cursor.parent){var d=v.cursor.restore();if(!d)return;setTimeout(function(){v.setNativeRange(d.startNode,d.startOffset,d.endNode,d.endOffset)},1)}})}},{key:"handleDragging",value:function(){var v=this;this.emitter.listenDOM("mousedown",document.body,function(){v.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){v.mouseDown=!1,v.update(s.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(v,d){if(null==this.scroll.whitelist||this.scroll.whitelist[v]){this.scroll.update();var p=this.getNativeRange();if(null!=p&&p.native.collapsed&&!m.default.query(v,m.default.Scope.BLOCK)){if(p.start.node!==this.cursor.textNode){var k=m.default.find(p.start.node,!1);if(null==k)return;if(k instanceof m.default.Leaf){var N=k.split(p.start.offset);k.parent.insertBefore(this.cursor,N)}else k.insertBefore(this.cursor,p.start.node);this.cursor.attach()}this.cursor.format(v,d),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(v){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,p=this.scroll.length();v=Math.min(v,p-1),d=Math.min(v+d,p-1)-v;var k=void 0,N=this.scroll.leaf(v),L=S(N,2),B=L[0],C=L[1];if(null==B)return null;var V=B.position(C,!0),I=S(V,2);k=I[0],C=I[1];var R=document.createRange();if(d>0){R.setStart(k,C);var A=this.scroll.leaf(v+d),q=S(A,2);if(null==(B=q[0]))return null;var P=B.position(C=q[1],!0),U=S(P,2);return R.setEnd(k=U[0],C=U[1]),R.getBoundingClientRect()}var j="left",x=void 0;return k instanceof Text?(C<k.data.length?(R.setStart(k,C),R.setEnd(k,C+1)):(R.setStart(k,C-1),R.setEnd(k,C),j="right"),x=R.getBoundingClientRect()):(x=B.domNo
vendor: 4,257 bytes, line 1
1de.getBoundingClientRect(),C>0&&(j="right")),{bottom:x.top+x.height,height:x.height,left:x[j],right:x[j],top:x.top,width:0}}},{key:"getNativeRange",value:function(){var v=document.getSelection();if(null==v||v.rangeCount<=0)return null;var d=v.getRangeAt(0);if(null==d)return null;var p=this.normalizeNative(d);return t.info("getNativeRange",p),p}},{key:"getRange",value:function(){var v=this.getNativeRange();return null==v?[null,null]:[this.normalizedToRange(v),v]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(v){var d=this,p=[[v.start.node,v.start.offset]];v.native.collapsed||p.push([v.end.node,v.end.offset]);var k=p.map(function(B){var C=S(B,2),V=C[0],I=C[1],R=m.default.find(V,!0),A=R.offset(d.scroll);return 0===I?A:R instanceof m.default.Container?A+R.length():A+R.index(V,I)}),N=Math.min(Math.max.apply(Math,r(k)),this.scroll.length()-1),L=Math.min.apply(Math,[N].concat(r(k)));return new f(L,N-L)}},{key:"normalizeNative",value:function(v){if(!g(this.root,v.startContainer)||!v.collapsed&&!g(this.root,v.endContainer))return null;var d={start:{node:v.startContainer,offset:v.startOffset},end:{node:v.endContainer,offset:v.endOffset},native:v};return[d.start,d.end].forEach(function(p){for(var k=p.node,N=p.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>N)k=k.childNodes[N],N=0;else{if(k.childNodes.length!==N)break;N=(k=k.lastChild)instanceof Text?k.data.length:k.childNodes.length+1}p.node=k,p.offset=N}),d}},{key:"rangeToNative",value:function(v){var d=this,p=v.collapsed?[v.index]:[v.index,v.index+v.length],k=[],N=this.scroll.length();return p.forEach(function(L,B){L=Math.min(N-1,L);var V=d.scroll.leaf(L),I=S(V,2),A=I[1],q=I[0].position(A,0!==B),P=S(q,2);k.push(P[0],A=P[1])}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(v){var d=this.lastRange;if(null!=d){var p=this.getBounds(d.index,d.length);if(null!=p){var k=this.scroll.length()-1,N=this.scroll.line(Math.min(d.index,k)),B=S(N,1)[0],C=B;if(d.length>0){var V=this.scroll.line(Math.min(d.index+d.length,k));C=S(V,1)[0]}if(null!=B&&null!=C){var R=v.getBoundingClientRect();p.top<R.top?v.scrollTop-=R.top-p.top:p.bottom>R.bottom&&(v.scrollTop+=p.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(v,d){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v,k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d,N=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t.info("setNativeRange",v,d,p,k),null==v||null!=this.root.parentNode&&null!=v.parentNode&&null!=p.parentNode){var L=document.getSelection();if(null!=L)if(null!=v){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(null==B||N||v!==B.startContainer||d!==B.startOffset||p!==B.endContainer||k!==B.endOffset){"BR"==v.tagName&&(d=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode),"BR"==p.tagName&&(k=[].indexOf.call(p.parentNode.childNodes,p),p=p.parentNode);var C=document.createRange();C.setStart(v,d),C.setEnd(p,k),L.removeAllRanges(),L.addRange(C)}}else L.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(v){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof d&&(p=d,d=!1),t.info("setRange",v),null!=v){var k=this.rangeToNative(v);this.setNativeRange.apply(this,r(k).concat([d]))}else this.setNativeRange(null);this.update(p)}},{key:"update",value:function(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,d=this.lastRange,p=this.getRange(),k=S(p,2),L=k[1];if(this.lastRange=k[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,e.default)(d,this.lastRange)){var B;!this.composing&&null!=L&&L.native.collapsed&&L.start.node!==this.cursor.textNode&&this.cursor.restore();var V,C=[s.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(d),v];(B=this.emitter).emit.apply(B,[s.default.events.EDITOR_CHANGE].concat(C)),v!==s.default.sources.SILENT&&(V=this.emitter).emit.apply(V,C)}}}]),O}();function g(O,w){return w instanceof Text&&(w=w.parentNode),O.contains(w)}b.Range=f,b.default=E},function(D,b,h){"use strict";
vendor: 10,125 bytes, line 1
1Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function s(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&s(l.prototype,a),i&&s(l,i),l}}(),T=function s(l,a,i){null===l&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(void 0===r){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,a,i)}if("value"in r)return r.value;var t=r.get;return void 0===t?void 0:t.call(i)};var n=function(s){function l(){return function u(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),S(l,[{key:"insertInto",value:function(i,r){0===i.children.length?T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,i,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(function y(s){return s&&s.__esModule?s:{default:s}}(h(0)).default.Embed);n.blotName="break",n.tagName="BR",b.default=n},function(D,b,h){"use strict";var o,S=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])},function(e,n){function s(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(b,"__esModule",{value:!0});var T=h(44),_=h(30),m=h(1),y=function(o){function e(n){var s=o.call(this,n)||this;return s.build(),s}return S(e,o),e.prototype.appendChild=function(n){this.insertBefore(n)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(n){n.attach()})},e.prototype.build=function(){var n=this;this.children=new T.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(s){try{var l=u(s);n.insertBefore(l,n.children.head||void 0)}catch(a){if(a instanceof m.ParchmentError)return;throw a}})},e.prototype.deleteAt=function(n,s){if(0===n&&s===this.length())return this.remove();this.children.forEachAt(n,s,function(l,a,i){l.deleteAt(a,i)})},e.prototype.descendant=function(n,s){var l=this.children.find(s),a=l[0],i=l[1];return null==n.blotName&&n(a)||null!=n.blotName&&a instanceof n?[a,i]:a instanceof e?a.descendant(n,i):[null,-1]},e.prototype.descendants=function(n,s,l){void 0===s&&(s=0),void 0===l&&(l=Number.MAX_VALUE);var a=[],i=l;return this.children.forEachAt(s,l,function(r,c,t){(null==n.blotName&&n(r)||null!=n.blotName&&r instanceof n)&&a.push(r),r instanceof e&&(a=a.concat(r.descendants(n,c,i))),i-=t}),a},e.prototype.detach=function(){this.children.forEach(function(n){n.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(n,s,l,a){this.children.forEachAt(n,s,function(i,r,c){i.formatAt(r,c,l,a)})},e.prototype.insertAt=function(n,s,l){var a=this.children.find(n),i=a[0];if(i)i.insertAt(a[1],s,l);else{var c=null==l?m.create("text",s):m.create(s,l);this.appendChild(c)}},e.prototype.insertBefore=function(n,s){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(l){return n instanceof l}))throw new m.ParchmentError("Cannot insert "+n.statics.blotName+" into "+this.statics.blotName);n.insertInto(this,s)},e.prototype.length=function(){return this.children.reduce(function(n,s){return n+s.length()},0)},e.prototype.moveChildren=function(n,s){this.children.forEach(function(l){n.insertBefore(l,s)})},e.prototype.optimize=function(n){if(o.prototype.optimize.call(this,n),0===this.children.length)if(null!=this.statics.defaultChild){var s=m.create(this.statics.defaultChild);this.appendChild(s),s.optimize(n)}else this.remove()},e.prototype.path=function(n,s){void 0===s&&(s=!1);var l=this.children.find(n,s),a=l[0],i=l[1],r=[[this,n]];return a instanceof e?r.concat(a.path(i,s)):(null!=a&&r.push([a,i]),r)},e.prototype.removeChild=function(n){this.children.remove(n)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),o.prototype.replace.call(this,n)},e.prototype.split=function(n,s){if(void 0===s&&(s=!1),!s){if(0===n)return this;if(n===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(n,this.length(),function(a,i,r){a=a.split(i,s),l.appendChild(a)}),l},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(n,s){var l=this,a=[],i=[];n.forEach(function(r){r.target===l.domNode&&"childList"===r.type&&(a.push.apply(a,r.addedNodes),i.push.apply(i,r.removedNodes))}),i.forEach(function(r){if(!(null!=r.parentNode&&"IFRAME"!==r.tagName&&document.body.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var c=m.find(r);null!=c&&(null==c.domNode.parentNode||c.domNode.parentNode===l.domNode)&&c.detach()}}),a.filter(function(r){return r.parentNode==l.domNode}).sort(function(r,c){return r===c?0:r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(r){var c=null;null!=r.nextSibling&&(c=m.find(r.nextSibling));var t=u(r);(t.next!=c||null==t.next)&&(null!=t.parent&&t.parent.removeChild(l),l.insertBefore(t,c||void 0))})},e}(_.default);function u(o){var e=m.find(o);if(null==e)try{e=m.create(o)}catch{e=m.create(m.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(s){e.domNode.appendChild(s)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}b.default=y},function(D,b,h){"use strict";var o,S=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])},function(e,n){function s(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(b,"__esModule",{value:!0});var T=h(12),_=h(31),m=h(17),y=h(1),u=function(o){function e(n){var s=o.call(this,n)||this;return s.attributes=new _.default(s.domNode),s}return S(e,o),e.formats=function(n){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?n.tagName.toLowerCase():void 0)},e.prototype.format=function(n,s){var l=y.query(n);l instanceof T.default?this.attributes.attribute(l,s):s&&null!=l&&(n!==this.statics.blotName||this.formats()[n]!==s)&&this.replaceWith(n,s)},e.prototype.formats=function(){var n=this.attributes.values(),s=this.statics.formats(this.domNode);return null!=s&&(n[this.statics.blotName]=s),n},e.prototype.replaceWith=function(n,s){var l=o.prototype.replaceWith.call(this,n,s);return this.attributes.copy(l),l},e.prototype.update=function(n,s){var l=this;o.prototype.update.call(this,n,s),n.some(function(a){return a.target===l.domNode&&"attributes"===a.type})&&this.attributes.build()},e.prototype.wrap=function(n,s){var l=o.prototype.wrap.call(this,n,s);return l instanceof e&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},e}(m.default);b.default=u},function(D,b,h){"use strict";var y,S=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var e in o)o.hasOwnProperty(e)&&(u[e]=o[e])},function(u,o){function e(){this.constructor=u}y(u,o),u.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(b,"__esModule",{value:!0});var T=h(30),_=h(1),m=function(y){function u(){return null!==y&&y.apply(this,arguments)||this}return S(u,y),u.value=function(o){return!0},u.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},u.prototype.position=function(o,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(n+=1),[this.parent.domNode,n]},u.prototype.value=function(){var o;return(o={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},u.scope=_.Scope.INLINE_BLOT,u}(T.default);b.default=m},function(D,b,h){var S=h(11),T=h(3),_={attributes:{compose:function(y,u,o){"object"!=typeof y&&(y={}),"object"!=typeof u&&(u={});var e=T(!0,{},u);for(var n in o||(e=Object.keys(e).reduce(function(s,l){return null!=e[l]&&(s[l]=e[l]),s},{})),y)void 0!==y[n]&&void 0===u[n]&&(e[n]=y[n]);return Object.keys(e).length>0?e:void 0},diff:function(y,u){"object"!=typeof y&&(y={}),"object"!=typeof u&&(u={});var o=Object.keys(y).concat(Object.keys(u)).reduce(function(e,n){return S(y[n],u[n])||(e[n]=void 0===u[n]?null:u[n]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(y,u,o){if("object"!=typeof y)return u;if("object"==typeof u){if(!o)return u;var e=Object.keys(u).reduce(function(n,s){return void 0===y[s]&&(n[s]=u[s]),n},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(y){return new m(y)},length:function(y){return"number"==typeof y.delete?y.delete:"number"==typeof y.retain?y.retain:"string"==typeof y.insert?y.insert.length:1}};function m(y){this.ops=y,this.index=0,this.offset=0}m.prototype.hasNext=function(){return this.peekLength()<1/0},m.prototype.next=function(y){y||(y=1/0);var u=this.ops[this.index];if(u){var o=this.offset,e=_.length(u);if(y>=e-o?(y=e-o,this.index+=1,this.offset=0):this.offset+=y,"number"==typeof u.delete)return{delete:y};var n={};return u.attributes&&(n.attributes=u.attributes),"number"==typeof u.retain?n.retain=y:n.insert="string"==typeof u.insert?u.insert.substr(o,y):u.insert,n}return{retain:1/0}},m.prototype.peek=function(){return this.ops[this.index]},m.prototype.peekLength=function(){return this.ops[this.index]?_.length(this.ops[this.index])-this.offset:1/0}
1,m.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},m.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var y=this.offset,u=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=y,this.index=u,[o].concat(e)}return[]},D.exports=_},function(D,b){var h=function(){"use strict";function S(l,a){return null!=a&&l instanceof a}var T,_,m;try{T=Map}catch{T=function(){}}try{_=Set}catch{_=function(){}}try{m=Promise}catch{m=function(){}}function y(l,a,i,r,c){"object"==typeof a&&(i=a.depth,r=a.prototype,c=a.includeNonEnumerable,a=a.circular);var t=[],f=[],E=typeof Buffer<"u";return typeof a>"u"&&(a=!0),typeof i>"u"&&(i=1/0),function g(O,w){if(null===O)return null;if(0===w)return O;var v,d;if("object"!=typeof O)return O;if(S(O,T))v=new T;else if(S(O,_))v=new _;else if(S(O,m))v=new m(function(R,A){O.then(function(q){R(g(q,w-1))},function(q){A(g(q,w-1))})});else if(y.__isArray(O))v=[];else if(y.__isRegExp(O))v=new RegExp(O.source,s(O)),O.lastIndex&&(v.lastIndex=O.lastIndex);else if(y.__isDate(O))v=new Date(O.getTime());else{if(E&&Buffer.isBuffer(O))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(O.length):new Buffer(O.length),O.copy(v),v;S(O,Error)?v=Object.create(O):typeof r>"u"?(d=Object.getPrototypeOf(O),v=Object.create(d)):(v=Object.create(r),d=r)}if(a){var p=t.indexOf(O);if(-1!=p)return f[p];t.push(O),f.push(v)}for(var k in S(O,T)&&O.forEach(function(R,A){var q=g(A,w-1),P=g(R,w-1);v.set(q,P)}),S(O,_)&&O.forEach(function(R){var A=g(R,w-1);v.add(A)}),O){var N;d&&(N=Object.getOwnPropertyDescriptor(d,k)),(!N||null!=N.set)&&(v[k]=g(O[k],w-1))}if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(O);for(k=0;k<L.length;k++){var B=L[k];(C=Object.getOwnPropertyDescriptor(O,B))&&!C.enumerable&&!c||(v[B]=g(O[B],w-1),C.enumerable||Object.defineProperty(v,B,{enumerable:!1}))}}if(c){var V=Object.getOwnPropertyNames(O);for(k=0;k<V.length;k++){var C,I=V[k];(C=Object.getOwnPropertyDescriptor(O,I))&&C.enumerable||(v[I]=g(O[I],w-1),Object.defineProperty(v,I,{enumerable:!1}))}}return v}(l,i)}function u(l){return Object.prototype.toString.call(l)}function s(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.clonePrototype=function(a){if(null===a)return null;var i=function(){};return i.prototype=a,new i},y.__objToStr=u,y.__isDate=function o(l){return"object"==typeof l&&"[object Date]"===u(l)},y.__isArray=function e(l){return"object"==typeof l&&"[object Array]"===u(l)},y.__isRegExp=function n(l){return"object"==typeof l&&"[object RegExp]"===u(l)},y.__getRegExpFlags=s,y}();"object"==typeof D&&D.exports&&(D.exports=h)},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(d,p){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return function v(d,p){var k=[],N=!0,L=!1,B=void 0;try{for(var V,C=d[Symbol.iterator]();!(N=(V=C.next()).done)&&(k.push(V.value),!p||k.length!==p);N=!0);}catch(I){L=!0,B=I}finally{try{!N&&C.return&&C.return()}finally{if(L)throw B}}return k}(d,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function v(d,p){for(var k=0;k<p.length;k++){var N=p[k];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(d,N.key,N)}}return function(d,p,k){return p&&v(d.prototype,p),k&&v(d,k),d}}(),_=function v(d,p,k){null===d&&(d=Function.prototype);var N=Object.getOwnPropertyDescriptor(d,p);if(void 0===N){var L=Object.getPrototypeOf(d);return null===L?void 0:v(L,p,k)}if("value"in N)return N.value;var B=N.get;return void 0===B?void 0:B.call(k)},y=t(h(0)),o=t(h(8)),e=h(4),n=t(e),l=t(h(16)),i=t(h(13)),c=t(h(25));function t(v){return v&&v.__esModule?v:{default:v}}function O(v){return v instanceof n.default||v instanceof e.BlockEmbed}var w=function(v){function d(p,k){!function f(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d);var N=function E(v,d){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?v:d}(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,p));return N.emitter=k.emitter,Array.isArray(k.whitelist)&&(N.whitelist=k.whitelist.reduce(function(L,B){return L[B]=!0,L},{}
1)),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return function g(v,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);v.prototype=Object.create(d&&d.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(v,d):v.__proto__=d)}(d,v),T(d,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,N){var L=this.line(k),B=S(L,2),C=B[0],V=B[1],I=this.line(k+N),A=S(I,1)[0];if(_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,k,N),null!=A&&C!==A&&V>0){if(C instanceof e.BlockEmbed||A instanceof e.BlockEmbed)return void this.optimize();if(C instanceof i.default){var q=C.newlineIndex(C.length(),!0);if(q>-1&&(C=C.split(q+1))===A)return void this.optimize()}else if(A instanceof i.default){var P=A.newlineIndex(0);P>-1&&A.split(P+1)}C.moveChildren(A,A.children.head instanceof l.default?null:A.children.head),C.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(k,N,L,B){null!=this.whitelist&&!this.whitelist[L]||(_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,k,N,L,B),this.optimize())}},{key:"insertAt",value:function(k,N,L){if(null==L||null==this.whitelist||this.whitelist[N]){if(k>=this.length())if(null==L||null==y.default.query(N,y.default.Scope.BLOCK)){var B=y.default.create(this.statics.defaultChild);this.appendChild(B),null==L&&N.endsWith("\n")&&(N=N.slice(0,-1)),B.insertAt(0,N,L)}else{var C=y.default.create(N,L);this.appendChild(C)}else _(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,k,N,L);this.optimize()}}},{key:"insertBefore",value:function(k,N){if(k.statics.scope===y.default.Scope.INLINE_BLOT){var L=y.default.create(this.statics.defaultChild);L.appendChild(k),k=L}_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,k,N)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(O,k)}},{key:"lines",value:function(){return function B(C,V,I){var R=[],A=I;return C.children.forEachAt(V,I,function(q,P,U){O(q)?R.push(q):q instanceof y.default.Container&&(R=R.concat(B(q,P,A))),A-=U}),R}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var k=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],N=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,k,N),k.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,k,N))}},{key:"path",value:function(k){return _(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(!0!==this.batch){var N=o.default.sources.USER;"string"==typeof k&&(N=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,N,k),_(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,N,k)}}}]),d}(y.default.Scroll);w.blotName="scroll",w.className="ql-editor",w.tagName="DIV",w.defaultChild="block",w.allowedChildren=[n.default,e.BlockEmbed,c.default],b.default=w},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.SHORTKEY=b.default=void 0;var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},T=function(M,F){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return function x(M,F){var Z=[],K=!0,Y=!1,Q=void 0;try{for(var nt,X=M[Symbol.iterator]();!(K=(nt=X.next()).done)&&(Z.push(nt.value),!F||Z.length!==F);K=!0);}catch(rt){Y=!0,Q=rt}finally{try{!K&&X.return&&X.return()}finally{if(Y)throw Q}}return Z}(M,F);
1throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=function(){function x(M,F){for(var Z=0;Z<F.length;Z++){var K=F[Z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(M,K.key,K)}}return function(M,F,Z){return F&&x(M.prototype,F),Z&&x(M,Z),M}}(),y=v(h(21)),o=v(h(11)),n=v(h(3)),l=v(h(2)),i=v(h(20)),c=v(h(0)),f=v(h(5)),g=v(h(10)),w=v(h(9));function v(x){return x&&x.__esModule?x:{default:x}}function d(x,M,F){return M in x?Object.defineProperty(x,M,{value:F,enumerable:!0,configurable:!0,writable:!0}):x[M]=F,x}var L=(0,g.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){function M(F,Z){!function p(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}(this,M);var K=function k(x,M){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?x:M}(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,F,Z));return K.bindings={},Object.keys(K.options.bindings).forEach(function(Y){"list autofill"===Y&&null!=F.scroll.whitelist&&!F.scroll.whitelist.list||K.options.bindings[Y]&&K.addBinding(K.options.bindings[Y])}),K.addBinding({key:M.keys.ENTER,shiftKey:null},q),K.addBinding({key:M.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(K.addBinding({key:M.keys.BACKSPACE},{collapsed:!0},I),K.addBinding({key:M.keys.DELETE},{collapsed:!0},R)):(K.addBinding({key:M.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),K.addBinding({key:M.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),K.addBinding({key:M.keys.BACKSPACE},{collapsed:!1},A),K.addBinding({key:M.keys.DELETE},{collapsed:!1},A),K.addBinding({key:M.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),K.listen(),K}return function N(x,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);x.prototype=Object.create(M&&M.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(x,M):x.__proto__=M)}(M,x),_(M,null,[{key:"match",value:function(Z,K){return K=j(K),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!K[Y]!==Z[Y]&&null!==K[Y]})&&K.key===(Z.which||Z.keyCode)}}]),_(M,[{key:"addBinding",value:function(Z){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Q=j(Z);if(null==Q||null==Q.key)return L.warn("Attempted to add invalid keyboard binding",Q);"function"==typeof K&&(K={handler:K}),"function"==typeof Y&&(Y={handler:Y}),Q=(0,n.default)(Q,K,Y),this.bindings[Q.key]=this.bindings[Q.key]||[],this.bindings[Q.key].push(Q)}},{key:"listen",value:function(){var Z=this;this.quill.root.addEventListener("keydown",function(K){if(!K.defaultPrevented){var Q=(Z.bindings[K.which||K.keyCode]||[]).filter(function(ot){return M.match(K,ot)});if(0!==Q.length){var X=Z.quill.getSelection();if(null!=X&&Z.quill.hasFocus()){var nt=Z.quill.getLine(X.index),rt=T(nt,2),at=rt[0],lt=rt[1],H=Z.quill.getLeaf(X.index),z=T(H,2),$=z[0],G=z[1],W=0===X.length?[$,G]:Z.quill.getLeaf(X.index+X.length),J=T(W,2),tt=J[0],et=J[1],ut=$ instanceof c.default.Text?$.value().slice(0,G):"",ft=tt instanceof c.default.Text?tt.value().slice(et):"",it={collapsed:0===X.length,empty:0===X.length&&at.length()<=1,format:Z.quill.getFormat(X),offset:lt,prefix:ut,suffix:ft};Q.some(function(ot){if(null!=ot.collapsed&&ot.collapsed!==it.collapsed||null!=ot.empty&&ot.empty!==it.empty||null!=ot.offset&&ot.offset!==it.offset)return!1;if(Array.isArray(ot.format)){if(ot.format.every(function(st){return null==it.format[st]}))return!1}else if("object"===S(ot.format)&&!Object.keys(ot.format).every(function(st){return!0===ot.format[st]?null!=it.format[st]:!1===ot.format[st]?null==it.format[st]:(0,o.default)(ot.format[st],it.format[st])}))return!1;return!(null!=ot.prefix&&!ot.prefix.test(it.prefix)||null!=ot.suffix&&!ot.suffix.test(it.suffix))&&!0!==ot.handler.call(Z,X,it)})&&K.preventDefault()}}}})}}]),M}(w.default);function V(x,M){var F;
vendor: 6,330 bytes, line 1
1return d(F={key:x,shiftKey:M,altKey:null},x===C.keys.LEFT?"prefix":"suffix",/^$/),d(F,"handler",function(Y){var Q=Y.index;x===C.keys.RIGHT&&(Q+=Y.length+1);var X=this.quill.getLeaf(Q);return!(T(X,1)[0]instanceof c.default.Embed&&(x===C.keys.LEFT?M?this.quill.setSelection(Y.index-1,Y.length+1,f.default.sources.USER):this.quill.setSelection(Y.index-1,f.default.sources.USER):M?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))}),F}function I(x,M){if(!(0===x.index||this.quill.getLength()<=1)){var F=this.quill.getLine(x.index),K=T(F,1)[0],Y={};if(0===M.offset){var Q=this.quill.getLine(x.index-1),nt=T(Q,1)[0];if(null!=nt&&nt.length()>1){var rt=K.formats(),at=this.quill.getFormat(x.index-1,1);Y=i.default.attributes.diff(rt,at)||{}}}var lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(M.prefix)?2:1;this.quill.deleteText(x.index-lt,lt,f.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-lt,lt,Y,f.default.sources.USER),this.quill.focus()}}function R(x,M){var F=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(M.suffix)?2:1;if(!(x.index>=this.quill.getLength()-F)){var Z={},K=0,Y=this.quill.getLine(x.index),X=T(Y,1)[0];if(M.offset>=X.length()-1){var nt=this.quill.getLine(x.index+1),at=T(nt,1)[0];if(at){var lt=X.formats(),H=this.quill.getFormat(x.index,1);Z=i.default.attributes.diff(lt,H)||{},K=at.length()}}this.quill.deleteText(x.index,F,f.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(x.index+K-1,F,Z,f.default.sources.USER)}}function A(x){var M=this.quill.getLines(x),F={};if(M.length>1){var Z=M[0].formats(),K=M[M.length-1].formats();F=i.default.attributes.diff(K,Z)||{}}this.quill.deleteText(x,f.default.sources.USER),Object.keys(F).length>0&&this.quill.formatLine(x.index,1,F,f.default.sources.USER),this.quill.setSelection(x.index,f.default.sources.SILENT),this.quill.focus()}function q(x,M){var F=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var Z=Object.keys(M.format).reduce(function(K,Y){return c.default.query(Y,c.default.Scope.BLOCK)&&!Array.isArray(M.format[Y])&&(K[Y]=M.format[Y]),K},{});this.quill.insertText(x.index,"\n",Z,f.default.sources.USER),this.quill.setSelection(x.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(M.format).forEach(function(K){null==Z[K]&&(Array.isArray(M.format[K])||"link"!==K&&F.quill.format(K,M.format[K],f.default.sources.USER))})}function P(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(F){var Z=c.default.query("code-block"),K=F.index,Y=F.length,Q=this.quill.scroll.descendant(Z,K),X=T(Q,2),nt=X[0],rt=X[1];if(null!=nt){var at=this.quill.getIndex(nt),lt=nt.newlineIndex(rt,!0)+1,H=nt.newlineIndex(at+rt+Y),z=nt.domNode.textContent.slice(lt,H).split("\n");rt=0,z.forEach(function($,G){x?(nt.insertAt(lt+rt,Z.TAB),rt+=Z.TAB.length,0===G?K+=Z.TAB.length:Y+=Z.TAB.length):$.startsWith(Z.TAB)&&(nt.deleteAt(lt+rt,Z.TAB.length),rt-=Z.TAB.length,0===G?K-=Z.TAB.length:Y-=Z.TAB.length),rt+=$.length+1}),this.quill.update(f.default.sources.USER),this.quill.setSelection(K,Y,f.default.sources.SILENT)}}}}function U(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(F,Z){this.quill.format(x,!Z.format[x],f.default.sources.USER)}}}function j(x){if("string"==typeof x||"number"==typeof x)return j({key:x});if("object"===(typeof x>"u"?"undefined":S(x))&&(x=(0,y.default)(x,!1)),"string"==typeof x.key)if(null!=C.keys[x.key.toUpperCase()])x.key=C.keys[x.key.toUpperCase()];else{if(1!==x.key.length)return null;x.key=x.key.toUpperCase().charCodeAt(0)}return x.shortKey&&(x[B]=x.shortKey,delete x.shortKey),x}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:U("bold"),italic:U("italic"),underline:U("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(M,F){if(F.collapsed&&0!==F.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(M,F){if(F.collapsed&&0!==F.offset)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(M,F){null!=F.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=F.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":P(!0),"outdent code-block":P(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(M){this.quill.deleteText(M.index-1,1,f.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(M){this.quill.history.cutoff();var F=(new l.default).retain(M.index).delete(M.length).insert("\t");this.quill.updateContents(F,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index+1,f.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(M,F){this.quill.format("list",!1,f.default.sources.USER),F.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(M){var F=this.quill.getLine(M.index),Z=T(F,2),K=Z[0],Y=Z[1],Q=(0,n.default)({},K.formats(),{list:"checked"}),X=(new l.default).retain(M.index).insert("\n",Q).retain(K.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(X,f.default.sources.USER),this.quill.setSelection(M.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(M,F){var Z=this.quill.getLine(M.index),K=T(Z,2),Y=K[0],Q=K[1],X=(new l.default).retain(M.index).insert("\n",F.format).retain(Y.length()-Q-1).retain(1,{header:null});this.quill.updateContents(X,f.default.sources.USER),this.quill.setSelection(M.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(M,F){var Z=F.prefix.length,K=this.quill.getLine(M.index),Y=T(K,2),Q=Y[0],X=Y[1];if(X>Z)return!0;var nt=void 0;switch(F.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;
vendor: 4,764 bytes, line 1
1case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(M.index," ",f.default.sources.USER),this.quill.history.cutoff();var rt=(new l.default).retain(M.index-X).delete(Z+1).retain(Q.length()-2-X).retain(1,{list:nt});this.quill.updateContents(rt,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index-Z,f.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(M){var F=this.quill.getLine(M.index),Z=T(F,2),K=Z[0],Y=Z[1],Q=(new l.default).retain(M.index+K.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Q,f.default.sources.USER)}},"embed left":V(C.keys.LEFT,!1),"embed left shift":V(C.keys.LEFT,!0),"embed right":V(C.keys.RIGHT,!1),"embed right shift":V(C.keys.RIGHT,!0)}},b.default=C,b.SHORTKEY=B},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(r,c){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return function i(r,c){var t=[],f=!0,E=!1,g=void 0;try{for(var w,O=r[Symbol.iterator]();!(f=(w=O.next()).done)&&(t.push(w.value),!c||t.length!==c);f=!0);}catch(v){E=!0,g=v}finally{try{!f&&O.return&&O.return()}finally{if(E)throw g}}return t}(r,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function i(r,c,t){null===r&&(r=Function.prototype);var f=Object.getOwnPropertyDescriptor(r,c);if(void 0===f){var E=Object.getPrototypeOf(r);return null===E?void 0:i(E,c,t)}if("value"in f)return f.value;var g=f.get;return void 0===g?void 0:g.call(t)},_=function(){function i(r,c){for(var t=0;t<c.length;t++){var f=c[t];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f)}}return function(r,c,t){return c&&i(r.prototype,c),t&&i(r,t),r}}(),y=e(h(0)),o=e(h(7));function e(i){return i&&i.__esModule?i:{default:i}}var a=function(i){function r(c,t){!function n(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r);var f=function s(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?i:r}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,c));return f.selection=t,f.textNode=document.createTextNode(r.CONTENTS),f.domNode.appendChild(f.textNode),f._length=0,f}return function l(i,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}(r,i),_(r,null,[{key:"value",value:function(){}}]),_(r,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,f){if(0!==this._length)return T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,t,f);for(var E=this,g=0;null!=E&&E.statics.scope!==y.default.Scope.BLOCK_BLOT;)g+=E.offset(E.parent),E=E.parent;null!=E&&(this._length=r.CONTENTS.length,E.optimize(),E.formatAt(g,r.CONTENTS.length,t,f),this._length=0)}},{key:"index",value:function(t,f){return t===this.textNode?0:T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,t,f)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,f=this.selection.getNativeRange(),E=void 0,g=void 0,O=void 0;if(null!=f&&f.start.node===t&&f.end.node===t){var w=[t,f.start.offset,f.end.offset];E=w[0],g=w[1],O=w[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==r.CONTENTS){var v=this.textNode.data.split(r.CONTENTS).join("");this.next instanceof o.default?(E=this.next.domNode,this.next.insertAt(0,v),this.textNode.data=r.CONTENTS):(this.textNode.data=v,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(r.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=g){var d=[g,O].map(function(k){return Math.max(0,Math.min(E.data.length,k-1))}),p=S(d,2);return{startNode:E,startOffset:g=p[0],endNode:E,endOffset:O=p[1]}}}}},{key:"update",value:function(t,f){var E=this;if(t.some(function(O){return"characterData"===O.type&&O.target===E.textNode}
1)){var g=this.restore();g&&(f.range=g)}}},{key:"value",value:function(){return""}}]),r}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\ufeff",b.default=a},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var T=y(h(0)),_=h(4),m=y(_);function y(s){return s&&s.__esModule?s:{default:s}}var n=function(s){function l(){return function u(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),l}(T.default.Container);n.allowedChildren=[m.default,_.BlockEmbed,n],b.default=n},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.ColorStyle=b.ColorClass=b.ColorAttributor=void 0;var S=function(){function a(i,r){for(var c=0;c<r.length;c++){var t=r[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,r,c){return r&&a(i.prototype,r),c&&a(i,c),i}}(),T=function a(i,r,c){null===i&&(i=Function.prototype);var t=Object.getOwnPropertyDescriptor(i,r);if(void 0===t){var f=Object.getPrototypeOf(i);return null===f?void 0:a(f,r,c)}if("value"in t)return t.value;var E=t.get;return void 0===E?void 0:E.call(c)},m=function y(a){return a&&a.__esModule?a:{default:a}}(h(0));var n=function(a){function i(){return function u(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),function o(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?a:i}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function e(a,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}(i,a),S(i,[{key:"value",value:function(c){var t=T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,c);return t.startsWith("rgb(")?"#"+(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(f){return("00"+parseInt(f).toString(16)).slice(-2)}).join(""):t}}]),i}(m.default.Attributor.Style),s=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE}),l=new n("color","color",{scope:m.default.Scope.INLINE});b.ColorAttributor=n,b.ColorClass=s,b.ColorStyle=l},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.sanitize=b.default=void 0;var S=function(){function l(a,i){for(var r=0;r<i.length;r++){var c=i[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),T=function l(a,i,r){null===a&&(a=Function.prototype);var c=Object.getOwnPropertyDescriptor(a,i);if(void 0===c){var t=Object.getPrototypeOf(a);return null===t?void 0:l(t,i,r)}if("value"in c)return c.value;var f=c.get;return void 0===f?void 0:f.call(r)};var n=function(l){function a(){return function u(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function e(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),S(a,[{key:"format",value:function(r,c){if(r!==this.statics.blotName||!c)return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,r,c);c=this.constructor.sanitize(c),this.domNode.setAttribute("href",c)}}],[{key:"create",value:function(r){var c=T(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r);return r=this.sanitize(r),c.setAttribute("href",r),c.setAttribute("rel","noopener noreferrer"),c.setAttribute("target","_blank"),c}},{key:"formats",value:function(r){return r.getAttribute("href")}},{key:"sanitize",value:function(r){return s(r,this.PROTOCOL_WHITELIST)?r:this.SANITIZED_URL}}]),a}
1(function y(l){return l&&l.__esModule?l:{default:l}}(h(6)).default);function s(l,a){var i=document.createElement("a");i.href=l;var r=i.href.slice(0,i.href.indexOf(":"));return a.indexOf(r)>-1}n.blotName="link",n.tagName="A",n.SANITIZED_URL="about:blank",n.PROTOCOL_WHITELIST=["http","https","mailto","tel"],b.default=n,b.sanitize=s},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},T=function(){function a(i,r){for(var c=0;c<r.length;c++){var t=r[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,r,c){return r&&a(i.prototype,r),c&&a(i,c),i}}(),m=o(h(23)),u=o(h(107));function o(a){return a&&a.__esModule?a:{default:a}}var n=0;function s(a,i){a.setAttribute(i,"true"!==a.getAttribute(i))}var l=function(){function a(i){var r=this;(function e(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")})(this,a),this.select=i,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){r.togglePicker()}),this.label.addEventListener("keydown",function(c){switch(c.keyCode){case m.default.keys.ENTER:r.togglePicker();break;case m.default.keys.ESCAPE:r.escape(),c.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return T(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(r){var c=this,t=document.createElement("span");return t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item"),r.hasAttribute("value")&&t.setAttribute("data-value",r.getAttribute("value")),r.textContent&&t.setAttribute("data-label",r.textContent),t.addEventListener("click",function(){c.selectItem(t,!0)}),t.addEventListener("keydown",function(f){switch(f.keyCode){case m.default.keys.ENTER:c.selectItem(t,!0),f.preventDefault();break;case m.default.keys.ESCAPE:c.escape(),f.preventDefault()}}),t}},{key:"buildLabel",value:function(){var r=document.createElement("span");return r.classList.add("ql-picker-label"),r.innerHTML=u.default,r.tabIndex="0",r.setAttribute("role","button"),r.setAttribute("aria-expanded","false"),this.container.appendChild(r),r}},{key:"buildOptions",value:function(){var r=this,c=document.createElement("span");c.classList.add("ql-picker-options"),c.setAttribute("aria-hidden","true"),c.tabIndex="-1",c.id="ql-picker-options-"+n,n+=1,this.label.setAttribute("aria-controls",c.id),this.options=c,[].slice.call(this.select.options).forEach(function(t){var f=r.buildItem(t);c.appendChild(f),!0===t.selected&&r.selectItem(f)}),this.container.appendChild(c)}},{key:"buildPicker",value:function(){var r=this;[].slice.call(this.select.attributes).forEach(function(c){r.container.setAttribute(c.name,c.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var r=this;this.close(),setTimeout(function(){return r.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(r){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=this.container.querySelector(".ql-selected");if(r!==t&&(t?.classList.remove("ql-selected"),null!=r&&(r.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(r.parentNode.children,r),r.hasAttribute("data-value")?this.label.setAttribute("data-value",r.getAttribute("data-value")):this.label.removeAttribute("data-value"),r.hasAttribute("data-label")?this.label.setAttribute("data-label",r.getAttribute("data-label")):this.label.removeAttribute("data-label"),c))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":S(Event))){var f=document.createEvent("Event");f.initEvent("change",!0,!0),this.select.dispatchEvent(f)}this.close()}}},{key:"update",value:function(){var r=void 0;if(this.select.selectedIndex>-1){var c=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];r=this.select.options[this.select.selectedIndex],this.selectItem(c)}else this.selectItem(null);var t=null!=r&&r!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}]),a}();b.default=l},function(D,b,h){"use strict";
vendor: 4,194 bytes, line 1
1Object.defineProperty(b,"__esModule",{value:!0});var T=L(h(0)),m=L(h(5)),y=h(4),u=L(y),e=L(h(16)),s=L(h(25)),a=L(h(24)),r=L(h(35)),t=L(h(6)),E=L(h(22)),O=L(h(7)),v=L(h(55)),p=L(h(42)),N=L(h(23));function L(B){return B&&B.__esModule?B:{default:B}}m.default.register({"blots/block":u.default,"blots/block/embed":y.BlockEmbed,"blots/break":e.default,"blots/container":s.default,"blots/cursor":a.default,"blots/embed":r.default,"blots/inline":t.default,"blots/scroll":E.default,"blots/text":O.default,"modules/clipboard":v.default,"modules/history":p.default,"modules/keyboard":N.default}),T.default.register(u.default,e.default,a.default,t.default,E.default,O.default),b.default=m.default},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=h(1),T=function(){function _(m){this.domNode=m,this.domNode[S.DATA_KEY]={blot:this}}return Object.defineProperty(_.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),_.create=function(m){if(null==this.tagName)throw new S.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?("string"==typeof m&&(m=m.toUpperCase(),parseInt(m).toString()===m&&(m=parseInt(m))),y="number"==typeof m?document.createElement(this.tagName[m-1]):this.tagName.indexOf(m)>-1?document.createElement(m):document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},_.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},_.prototype.clone=function(){var m=this.domNode.cloneNode(!1);return S.create(m)},_.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[S.DATA_KEY]},_.prototype.deleteAt=function(m,y){this.isolate(m,y).remove()},_.prototype.formatAt=function(m,y,u,o){var e=this.isolate(m,y);if(null!=S.query(u,S.Scope.BLOT)&&o)e.wrap(u,o);else if(null!=S.query(u,S.Scope.ATTRIBUTE)){var n=S.create(this.statics.scope);e.wrap(n),n.format(u,o)}},_.prototype.insertAt=function(m,y,u){var o=null==u?S.create("text",y):S.create(y,u),e=this.split(m);this.parent.insertBefore(o,e)},_.prototype.insertInto=function(m,y){void 0===y&&(y=null),null!=this.parent&&this.parent.children.remove(this);var u=null;m.children.insertBefore(this,y),null!=y&&(u=y.domNode),(this.domNode.parentNode!=m.domNode||this.domNode.nextSibling!=u)&&m.domNode.insertBefore(this.domNode,u),this.parent=m,this.attach()},_.prototype.isolate=function(m,y){var u=this.split(m);return u.split(y),u},_.prototype.length=function(){return 1},_.prototype.offset=function(m){return void 0===m&&(m=this.parent),null==this.parent||this==m?0:this.parent.children.offset(this)+this.parent.offset(m)},_.prototype.optimize=function(m){null!=this.domNode[S.DATA_KEY]&&delete this.domNode[S.DATA_KEY].mutations},_.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},_.prototype.replace=function(m){null!=m.parent&&(m.parent.insertBefore(this,m.next),m.remove())},_.prototype.replaceWith=function(m,y){var u="string"==typeof m?S.create(m,y):m;return u.replace(this),u},_.prototype.split=function(m,y){return 0===m?this:this.next},_.prototype.update=function(m,y){},_.prototype.wrap=function(m,y){var u="string"==typeof m?S.create(m,y):m;return null!=this.parent&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},_.blotName="abstract",_}();b.default=T},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=h(12),T=h(32),_=h(33),m=h(1),y=function(){function u(o){this.attributes={},this.domNode=o,this.build()}return u.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(null!=o.value(this.domNode)?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},u.prototype.build=function(){var o=this;this.attributes={};var e=S.default.keys(this.domNode),n=T.default.keys(this.domNode),s=_.default.keys(this.domNode);e.concat(n).concat(s).forEach(function(l){var a=m.query(l,m.Scope.ATTRIBUTE);a instanceof S.default&&(o.attributes[a.attrName]=a)})},u.prototype.copy=function(o){var e=this;
1Object.keys(this.attributes).forEach(function(n){var s=e.attributes[n].value(e.domNode);o.format(n,s)})},u.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(n){e.attributes[n].remove(e.domNode)}),this.attributes={}},u.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=o.attributes[n].value(o.domNode),e},{})},u}();b.default=y},function(D,b,h){"use strict";var y,S=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var e in o)o.hasOwnProperty(e)&&(u[e]=o[e])},function(u,o){function e(){this.constructor=u}y(u,o),u.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});function _(y,u){return(y.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(u+"-")})}Object.defineProperty(b,"__esModule",{value:!0});var m=function(y){function u(){return null!==y&&y.apply(this,arguments)||this}return S(u,y),u.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},u.prototype.add=function(o,e){return!!this.canAdd(o,e)&&(this.remove(o),o.classList.add(this.keyName+"-"+e),!0)},u.prototype.remove=function(o){_(o,this.keyName).forEach(function(n){o.classList.remove(n)}),0===o.classList.length&&o.removeAttribute("class")},u.prototype.value=function(o){var n=(_(o,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(o,n)?n:""},u}(h(12).default);b.default=m},function(D,b,h){"use strict";var y,S=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var e in o)o.hasOwnProperty(e)&&(u[e]=o[e])},function(u,o){function e(){this.constructor=u}y(u,o),u.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});function _(y){var u=y.split("-"),o=u.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return u[0]+o}Object.defineProperty(b,"__esModule",{value:!0});var m=function(y){function u(){return null!==y&&y.apply(this,arguments)||this}return S(u,y),u.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},u.prototype.add=function(o,e){return!!this.canAdd(o,e)&&(o.style[_(this.keyName)]=e,!0)},u.prototype.remove=function(o){o.style[_(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},u.prototype.value=function(o){var e=o.style[_(this.keyName)];return this.canAdd(o,e)?e:""},u}(h(12).default);b.default=m},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function m(y,u){for(var o=0;o<u.length;o++){var e=u[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,u,o){return u&&m(y.prototype,u),o&&m(y,o),y}}();var _=function(){function m(y,u){(function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.options=u,this.modules={}}return S(m,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(o){null==u.modules[o]&&u.addModule(o)})}},{key:"addModule",value:function(u){var o=this.quill.constructor.import("modules/"+u);return this.modules[u]=new o(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),m}();_.DEFAULTS={modules:{}},_.themes={default:_},b.default=_},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function i(r,c){for(var t=0;t<c.length;t++){var f=c[t];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f)}}return function(r,c,t){return c&&i(r.prototype,c),t&&i(r,t),r}}(),T=function i(r,c,t){null===r&&(r=Function.prototype);var f=Object.getOwnPropertyDescriptor(r,c);if(void 0===f){var E=Object.getPrototypeOf(r);return null===E?void 0:i(E,c,t)}if("value"in f)return f.value;var g=f.get;return void 0===g?void 0:g.call(t)},m=o(h(0)),u=o(h(7));function o(i){return i&&i.__esModule?i:{default:i}}var l="\ufeff",a=function(i){function r(c){!function e(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r);var t=function n(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?i:r}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,c));return t.contentNode=document.createElement("span"),t.contentNode.setAttribute("contenteditable",!1),[].slice.call(t.domNode.childNodes).forEac
1h(function(f){t.contentNode.appendChild(f)}),t.leftGuard=document.createTextNode(l),t.rightGuard=document.createTextNode(l),t.domNode.appendChild(t.leftGuard),t.domNode.appendChild(t.contentNode),t.domNode.appendChild(t.rightGuard),t}return function s(i,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}(r,i),S(r,[{key:"index",value:function(t,f){return t===this.leftGuard?0:t===this.rightGuard?1:T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"index",this).call(this,t,f)}},{key:"restore",value:function(t){var f=void 0,E=void 0,g=t.data.split(l).join("");if(t===this.leftGuard)if(this.prev instanceof u.default){var O=this.prev.length();this.prev.insertAt(O,g),f={startNode:this.prev.domNode,startOffset:O+g.length}}else E=document.createTextNode(g),this.parent.insertBefore(m.default.create(E),this),f={startNode:E,startOffset:g.length};else t===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,g),f={startNode:this.next.domNode,startOffset:g.length}):(E=document.createTextNode(g),this.parent.insertBefore(m.default.create(E),this.next),f={startNode:E,startOffset:g.length}));return t.data=l,f}},{key:"update",value:function(t,f){var E=this;t.forEach(function(g){if("characterData"===g.type&&(g.target===E.leftGuard||g.target===E.rightGuard)){var O=E.restore(g.target);O&&(f.range=O)}})}}]),r}(m.default.Embed);b.default=a},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.AlignStyle=b.AlignClass=b.AlignAttribute=void 0;var T=function _(e){return e&&e.__esModule?e:{default:e}}(h(0));var m={scope:T.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new T.default.Attributor.Attribute("align","align",m),u=new T.default.Attributor.Class("align","ql-align",m),o=new T.default.Attributor.Style("align","text-align",m);b.AlignAttribute=y,b.AlignClass=u,b.AlignStyle=o},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.BackgroundStyle=b.BackgroundClass=void 0;var T=function m(o){return o&&o.__esModule?o:{default:o}}(h(0)),_=h(26);var y=new T.default.Attributor.Class("background","ql-bg",{scope:T.default.Scope.INLINE}),u=new _.ColorAttributor("background","background-color",{scope:T.default.Scope.INLINE});b.BackgroundClass=y,b.BackgroundStyle=u},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.DirectionStyle=b.DirectionClass=b.DirectionAttribute=void 0;var T=function _(e){return e&&e.__esModule?e:{default:e}}(h(0));var m={scope:T.default.Scope.BLOCK,whitelist:["rtl"]},y=new T.default.Attributor.Attribute("direction","dir",m),u=new T.default.Attributor.Class("direction","ql-direction",m),o=new T.default.Attributor.Style("direction","direction",m);b.DirectionAttribute=y,b.DirectionClass=u,b.DirectionStyle=o},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.FontClass=b.FontStyle=void 0;var S=function(){function i(r,c){for(var t=0;t<c.length;t++){var f=c[t];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,f.key,f)}}return function(r,c,t){return c&&i(r.prototype,c),t&&i(r,t),r}}(),T=function i(r,c,t){null===r&&(r=Function.prototype);var f=Object.getOwnPropertyDescriptor(r,c);if(void 0===f){var E=Object.getPrototypeOf(r);return null===E?void 0:i(E,c,t)}if("value"in f)return f.value;var g=f.get;return void 0===g?void 0:g.call(t)},m=function y(i){return i&&i.__esModule?i:{default:i}}(h(0));var n={scope:m.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new m.default.Attributor.Class("font","ql-font",n),l=function(i){function r(){return function u(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function o(i,r){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?i:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function e(i,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);i.prototype=Object.create(r&&r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(i,r):i.__proto__=r)}(r,i),S(r,[{key:"value",value:function(t){return T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),r}(m.default.Attributor.Style),a=new l("font","font-family",n);b.FontStyle=a,b.FontClass=s},function(D,b,h){"use strict";
vendor: 8,784 bytes, line 1
1Object.defineProperty(b,"__esModule",{value:!0}),b.SizeStyle=b.SizeClass=void 0;var T=function _(u){return u&&u.__esModule?u:{default:u}}(h(0));var m=new T.default.Attributor.Class("size","ql-size",{scope:T.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new T.default.Attributor.Style("size","font-size",{scope:T.default.Scope.INLINE,whitelist:["10px","18px","32px"]});b.SizeClass=m,b.SizeStyle=y},function(D,b,h){"use strict";D.exports={align:{"":h(76),center:h(77),right:h(78),justify:h(79)},background:h(80),blockquote:h(81),bold:h(82),clean:h(83),code:h(58),"code-block":h(58),color:h(84),direction:{"":h(85),rtl:h(86)},float:{center:h(87),full:h(88),left:h(89),right:h(90)},formula:h(91),header:{1:h(92),2:h(93)},italic:h(94),image:h(95),indent:{"+1":h(96),"-1":h(97)},link:h(98),list:{ordered:h(99),bullet:h(100),check:h(101)},script:{sub:h(102),super:h(103)},strike:h(104),underline:h(105),video:h(106)}},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getLastChangeIndex=b.default=void 0;var S=function(){function c(t,f){for(var E=0;E<f.length;E++){var g=f[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(t,g.key,g)}}return function(t,f,E){return f&&c(t.prototype,f),E&&c(t,E),t}}(),_=e(h(0)),y=e(h(5));function e(c){return c&&c.__esModule?c:{default:c}}var a=function(c){function t(f,E){!function n(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var g=function s(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?c:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,f,E));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(y.default.events.EDITOR_CHANGE,function(O,w,v,d){O!==y.default.events.TEXT_CHANGE||g.ignoreChange||(g.options.userOnly&&d!==y.default.sources.USER?g.transform(w):g.record(w,v))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return function l(c,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}(t,c),S(t,[{key:"change",value:function(E,g){if(0!==this.stack[E].length){var O=this.stack[E].pop();this.stack[g].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[E],y.default.sources.USER),this.ignoreChange=!1;var w=r(O[E]);this.quill.setSelection(w)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(E,g){if(0!==E.ops.length){this.stack.redo=[];var O=this.quill.getContents().diff(g),w=Date.now();if(this.lastRecorded+this.options.delay>w&&this.stack.undo.length>0){var v=this.stack.undo.pop();O=O.compose(v.undo),E=v.redo.compose(E)}else this.lastRecorded=w;this.stack.undo.push({redo:E,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(E){this.stack.undo.forEach(function(g){g.undo=E.transform(g.undo,!0),g.redo=E.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=E.transform(g.undo,!0),g.redo=E.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(e(h(9)).default);function r(c){var t=c.reduce(function(E,g){return E+(g.delete||0)},0),f=c.length()-t;return function i(c){var t=c.ops[c.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(f){return null!=_.default.query(f,_.default.Scope.BLOCK)}))}(c)&&(f-=1),f}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},b.default=a,b.getLastChangeIndex=r},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BaseTooltip=void 0;var S=function(){function q(P,U){for(var j=0;j<U.length;j++){var x=U[j];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(P,x.key,x)}}return function(P,U,j){return U&&q(P.prototype,U),j&&q(P,j),P}}(),T=function q(P,U,j){null===P&&(P=Function.prototype);var x=Object.getOwnPropertyDescriptor(P,U);if(void 0===x){var M=Object.getPrototypeOf(P);return null===M?void 0:q(M,U,j)}if("value"in x)return x.value;var F=x.get;return void 0===F?void 0:F.call(j)},m=w(h(3)),u=w(h(2)),e=w(h(8)),s=w(h(23)),a=w(h(34)),r=w(h(59)),t=w(h(60)),E=w(h(28)),O=w(h(61));function w(q){return q&&q.__esModule?q:{default:q}}function v(q,P){if(!(q instanceof P))throw new TypeError("Cannot call a class as a function")}function d(q,P){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!P||"object"!=typeof P&&"function"!=typeof P?q:P}function p(q,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function, not "+typeof P);q.prototype=Object.create(P&&P.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(q,P):q.__proto__=P)}var k=[!1,"center","right","justify"],N=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],L=[!1,"serif","monospace"],B=["1","2","3",!1],C=["small",!1,"large","huge"],V=function(q){function P(U,j){v(this,P);var x=d(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,U,j));return U.emitter.listenDOM("click",document.body,function F(Z){if(!document.body.contains(U.root))return document.body.removeEventListener("click",F);null!=x.tooltip&&!x.tooltip.root.contains(Z.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),null!=x.pickers&&x.pickers.forEach(function(K){K.container.contains(Z.target)||K.close()})}),x}return p(P,q),S(P,[{key:"addModule",value:function(j){var x=T(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"addModule",this).call(this,j);return"toolbar"===j&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(j,x){j.forEach(function(M){(M.getAttribute("class")||"").split(/\s+/).forEach(function(Z){if(Z.startsWith("ql-")&&(Z=Z.slice(3),null!=x[Z]))if("direction"===Z)M.innerHTML=x[Z][""]+x[Z].rtl;else if("string"==typeof x[Z])M.innerHTML=x[Z];else{var K=M.value||"";null!=K&&x[Z][K]&&(M.innerHTML=x[Z][K])}})})}},{key:"buildPickers",value:function(j,x){var M=this;this.pickers=j.map(function(Z){if(Z.classList.contains("ql-align"))return null==Z.querySelector("option")&&A(Z,k),new t.default(Z,x.align);if(Z.classList.contains("ql-background")||Z.classList.contains("ql-color")){var K=Z.classList.contains("ql-background")?"background":"color";return null==Z.querySelector("option")&&A(Z,N,"background"===K?"#ffffff":"#000000"),new r.default(Z,x[K])}return null==Z.querySelector("option")&&(Z.classList.contains("ql-font")?A(Z,L):Z.classList.contains("ql-header")?A(Z,B):Z.classList.contains("ql-size")&&A(Z,C)),new E.default(Z)}),this.quill.on(e.default.events.EDITOR_CHANGE,function(){M.pickers.forEach(function(K){K.update()})})}}]),P}(a.default);V.DEFAULTS=(0,m.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var P=this,U=this.container.querySelector("input.ql-image[type=file]");null==U&&((U=document.createElement("input")).setAttribute("type","file"),U.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),U.classList.add("ql-image"),U.addEventListener("change",function(){if(null!=U.files&&null!=U.files[0]){var j=new FileReader;j.onload=function(x){var M=P.quill.getSelection(!0);P.quill.updateContents((new u.default).retain(M.index).delete(M.length).insert({image:x.target.result}),e.default.sources.USER),P.quill.setSelection(M.index+1,e.default.sources.SILENT),U.value=""},j.readAsDataURL(U.files[0])}}),this.container.appendChild(U)),U.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(q){function P(U,j){v(this,P);var x=d(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,U,j));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}
vendor: 4,164 bytes, line 1
1return p(P,q),S(P,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(x){s.default.match(x,"enter")?(j.save(),x.preventDefault()):s.default.match(x,"escape")&&(j.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=x?this.textbox.value=x:j!==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-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=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",j,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,e.default.sources.USER)),this.quill.root.scrollTop=x;break;case"video":j=function R(q){var P=q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||q.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return P?(P[1]||"https")+"://www.youtube.com/embed/"+P[2]+"?showinfo=0":(P=q.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(P[1]||"https")+"://player.vimeo.com/video/"+P[2]+"/":q}(j);case"formula":if(!j)break;var M=this.quill.getSelection(!0);if(null!=M){var F=M.index+M.length;this.quill.insertEmbed(F,this.root.getAttribute("data-mode"),j,e.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(F+1," ",e.default.sources.USER),this.quill.setSelection(F+2,e.default.sources.USER)}}this.textbox.value="",this.hide()}}]),P}(O.default);function A(q,P){var U=arguments.length>2&&void 0!==arguments[2]&&arguments[2];P.forEach(function(j){var x=document.createElement("option");j===U?x.setAttribute("selected","selected"):x.setAttribute("value",j),q.appendChild(x)})}b.BaseTooltip=I,b.default=V},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var _=[],m=0;m<arguments.length;m++)_[m]=arguments[m];this.insertBefore(_[0],null),_.length>1&&this.append.apply(this,_.slice(1))},T.prototype.contains=function(_){for(var m,y=this.iterator();m=y();)if(m===_)return!0;return!1},T.prototype.insertBefore=function(_,m){_&&(_.next=m,null!=m?(_.prev=m.prev,null!=m.prev&&(m.prev.next=_),m.prev=_,m===this.head&&(this.head=_)):null!=this.tail?(this.tail.next=_,_.prev=this.tail,this.tail=_):(_.prev=null,this.head=this.tail=_),this.length+=1)},T.prototype.offset=function(_){for(var m=0,y=this.head;null!=y;){if(y===_)return m;m+=y.length(),y=y.next}return-1},T.prototype.remove=function(_){this.contains(_)&&(null!=_.prev&&(_.prev.next=_.next),null!=_.next&&(_.next.prev=_.prev),_===this.head&&(this.head=_.next),_===this.tail&&(this.tail=_.prev),this.length-=1)},T.prototype.iterator=function(_){return void 0===_&&(_=this.head),function(){var m=_;return null!=_&&(_=_.next),m}},T.prototype.find=function(_,m){void 0===m&&(m=!1);for(var y,u=this.iterator();y=u();){var o=y.length();if(_<o||m&&_===o&&(null==y.next||0!==y.next.length()))return[y,_];_-=o}return[null,0]},T.prototype.forEach=function(_){for(var m,y=this.iterator();m=y();)_(m)},T.prototype.forEachAt=function(_,m,y){if(!(m<=0))for(var n,u=this.find(_),s=_-u[1],l=this.iterator(u[0]);(n=l())&&s<_+m;){var a=n.length();_>s?y(n,_-s,Math.min(m,s+a-_)):y(n,0,Math.min(a,_+m-s)),s+=a}},T.prototype.map=function(_){return this.reduce(function(m,y){return m.push(_(y)),m},[])},T.prototype.reduce=function(_,m){for(var y,u=this.iterator();y=u();)m=_(m,y);return m},T}();b.default=S},function(D,b,h){"use strict";
1var o,S=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var s in n)n.hasOwnProperty(s)&&(e[s]=n[s])},function(e,n){function s(){this.constructor=e}o(e,n),e.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(b,"__esModule",{value:!0});var T=h(17),_=h(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=function(o){function e(n){var s=o.call(this,n)||this;return s.scroll=s,s.observer=new MutationObserver(function(l){s.update(l)}),s.observer.observe(s.domNode,m),s.attach(),s}return S(e,o),e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(n,s){this.update(),0===n&&s===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,n,s)},e.prototype.formatAt=function(n,s,l,a){this.update(),o.prototype.formatAt.call(this,n,s,l,a)},e.prototype.insertAt=function(n,s,l){this.update(),o.prototype.insertAt.call(this,n,s,l)},e.prototype.optimize=function(n,s){var l=this;void 0===n&&(n=[]),void 0===s&&(s={}),o.prototype.optimize.call(this,s);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)n.push(a.pop());for(var i=function(f,E){void 0===E&&(E=!0),null!=f&&f!==l&&null!=f.domNode.parentNode&&(null==f.domNode[_.DATA_KEY].mutations&&(f.domNode[_.DATA_KEY].mutations=[]),E&&i(f.parent))},r=function(f){null==f.domNode[_.DATA_KEY]||null==f.domNode[_.DATA_KEY].mutations||(f instanceof T.default&&f.children.forEach(r),f.optimize(s))},c=n,t=0;c.length>0;t+=1){if(t>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(f){var E=_.find(f.target,!0);null!=E&&(E.domNode===f.target&&("childList"===f.type?(i(_.find(f.previousSibling,!1)),[].forEach.call(f.addedNodes,function(g){var O=_.find(g,!1);i(O,!1),O instanceof T.default&&O.children.forEach(function(w){i(w,!1)})})):"attributes"===f.type&&i(E.prev)),i(E))}),this.children.forEach(r),a=(c=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)n.push(a.pop())}},e.prototype.update=function(n,s){var l=this;void 0===s&&(s={}),(n=n||this.observer.takeRecords()).map(function(a){var i=_.find(a.target,!0);return null==i?null:null==i.domNode[_.DATA_KEY].mutations?(i.domNode[_.DATA_KEY].mutations=[a],i):(i.domNode[_.DATA_KEY].mutations.push(a),null)}).forEach(function(a){null==a||a===l||null==a.domNode[_.DATA_KEY]||a.update(a.domNode[_.DATA_KEY].mutations||[],s)}),null!=this.domNode[_.DATA_KEY].mutations&&o.prototype.update.call(this,this.domNode[_.DATA_KEY].mutations,s),this.optimize(n,s)},e.blotName="scroll",e.defaultChild="block",e.scope=_.Scope.BLOCK_BLOT,e.tagName="DIV",e}(T.default);b.default=u},function(D,b,h){"use strict";var u,S=this&&this.__extends||(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var n in e)e.hasOwnProperty(n)&&(o[n]=e[n])},function(o,e){function n(){this.constructor=o}u(o,e),o.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(b,"__esModule",{value:!0});var T=h(18),_=h(1);var y=function(u){function o(){return null!==u&&u.apply(this,arguments)||this}return S(o,u),o.formats=function(e){if(e.tagName!==o.tagName)return u.formats.call(this,e)},o.prototype.format=function(e,n){var s=this;e!==this.statics.blotName||n?u.prototype.format.call(this,e,n):(this.children.forEach(function(l){l instanceof T.default||(l=l.wrap(o.blotName,!0)),s.attributes.copy(l)}),this.unwrap())},o.prototype.formatAt=function(e,n,s,l){null!=this.formats()[s]||_.query(s,_.Scope.ATTRIBUTE)?this.isolate(e,n).format(s,l):u.prototype.formatAt.call(this,e,n,s,l)},o.prototype.optimize=function(e){u.prototype.optimize.call(this,e);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var s=this.next;s instanceof o&&s.prev===this&&function m(u,o){if(Object.keys(u).length!==Object.keys(o).length)return!1;for(var e in u)if(u[e]!==o[e])return!1;return!0}(n,s.formats())&&(s.moveChildren(this),s.remove())},o.blotName="inline",o.scope=_.Scope.INLINE_BLOT,o.tagName="SPAN",o}(T.default);b.default=y},function(D,b,h){"use strict";
vendor: 16,170 bytes, line 1
1var y,S=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var e in o)o.hasOwnProperty(e)&&(u[e]=o[e])},function(u,o){function e(){this.constructor=u}y(u,o),u.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(b,"__esModule",{value:!0});var T=h(18),_=h(1),m=function(y){function u(){return null!==y&&y.apply(this,arguments)||this}return S(u,y),u.formats=function(o){var e=_.query(u.blotName).tagName;if(o.tagName!==e)return y.formats.call(this,o)},u.prototype.format=function(o,e){null!=_.query(o,_.Scope.BLOCK)&&(o!==this.statics.blotName||e?y.prototype.format.call(this,o,e):this.replaceWith(u.blotName))},u.prototype.formatAt=function(o,e,n,s){null!=_.query(n,_.Scope.BLOCK)?this.format(n,s):y.prototype.formatAt.call(this,o,e,n,s)},u.prototype.insertAt=function(o,e,n){if(null==n||null!=_.query(e,_.Scope.INLINE))y.prototype.insertAt.call(this,o,e,n);else{var s=this.split(o),l=_.create(e,n);s.parent.insertBefore(l,s)}},u.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,e)},u.blotName="block",u.scope=_.Scope.BLOCK_BLOT,u.tagName="P",u}(T.default);b.default=m},function(D,b,h){"use strict";var m,S=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,u){y.__proto__=u}||function(y,u){for(var o in u)u.hasOwnProperty(o)&&(y[o]=u[o])},function(y,u){function o(){this.constructor=y}m(y,u),y.prototype=null===u?Object.create(u):(o.prototype=u.prototype,new o)});Object.defineProperty(b,"__esModule",{value:!0});var _=function(m){function y(){return null!==m&&m.apply(this,arguments)||this}return S(y,m),y.formats=function(u){},y.prototype.format=function(u,o){m.prototype.formatAt.call(this,0,this.length(),u,o)},y.prototype.formatAt=function(u,o,e,n){0===u&&o===this.length()?this.format(e,n):m.prototype.formatAt.call(this,u,o,e,n)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(h(19).default);b.default=_},function(D,b,h){"use strict";var y,S=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,o){u.__proto__=o}||function(u,o){for(var e in o)o.hasOwnProperty(e)&&(u[e]=o[e])},function(u,o){function e(){this.constructor=u}y(u,o),u.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(b,"__esModule",{value:!0});var T=h(19),_=h(1),m=function(y){function u(o){var e=y.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return S(u,y),u.create=function(o){return document.createTextNode(o)},u.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},u.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},u.prototype.index=function(o,e){return this.domNode===o?e:-1},u.prototype.insertAt=function(o,e,n){null==n?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,e,n)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(o,e){return void 0===e&&(e=!1),[this.domNode,o]},u.prototype.split=function(o,e){if(void 0===e&&(e=!1),!e){if(0===o)return this;if(o===this.length())return this.next}var n=_.create(this.domNode.splitText(o));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},u.prototype.update=function(o,e){var n=this;o.some(function(s){return"characterData"===s.type&&s.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=_.Scope.INLINE_BLOT,u}(T.default);b.default=m},function(D,b,h){"use strict";var S=document.createElement("div");if(S.classList.toggle("test-class",!1),S.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(_,m){return arguments.length>1&&!this.contains(_)==!m?m:T.call(this,_)}}String.prototype.startsWith||(String.prototype.startsWith=function(_,m){return this.substr(m=m||0,_.length)===_}),String.prototype.endsWith||(String.prototype.endsWith=function(_,m){var y=this.toString();("number"!=typeof m||!isFinite(m)||Math.floor(m)!==m||m>y.length)&&(m=y.length);var u=y.indexOf(_,m-=_.length);return-1!==u&&u===m}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(m){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof m)throw new TypeError("predicate must be a function");for(var e,y=Object(this),u=y.length>>>0,o=arguments[1],n=0;n<u;n++)if(m.call(o,e=y[n],n,y))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(D,b){var h=-1,S=1,T=0;function _(t,f,E){if(t==f)return t?[[T,t]]:[];(E<0||t.length<E)&&(E=null);var g=o(t,f),O=t.substring(0,g);g=e(t=t.substring(g),f=f.substring(g));var w=t.substring(t.length-g),v=function m(t,f){var E;if(!t)return[[S,f]];if(!f)return[[h,t]];var g=t.length>f.length?t:f,O=t.length>f.length?f:t,w=g.indexOf(O);if(-1!=w)return E=[[S,g.substring(0,w)],[T,O],[S,g.substring(w+O.length)]],t.length>f.length&&(E[0][0]=E[2][0]=h),E;if(1==O.length)return[[h,t],[S,f]];var v=function n(t,f){var E=t.length>f.length?t:f,g=t.length>f.length?f:t;if(E.length<4||2*g.length<E.length)return null;function O(C,V,I){for(var P,U,j,x,R=C.substring(I,I+Math.floor(C.length/4)),A=-1,q="";-1!=(A=V.indexOf(R,A+1));){var M=o(C.substring(I),V.substring(A)),F=e(C.substring(0,I),V.substring(0,A));q.length<F+M&&(q=V.substring(A-F,A)+V.substring(A,A+M),P=C.substring(0,I-F),U=C.substring(I+M),j=V.substring(0,A-F),x=V.substring(A+M))}return 2*q.length>=C.length?[P,U,j,x,q]:null}var d,p,k,N,L,w=O(E,g,Math.ceil(E.length/4)),v=O(E,g,Math.ceil(E.length/2));return w||v?(d=v?w&&w[4].length>v[4].length?w:v:w,t.length>f.length?(p=d[0],k=d[1],N=d[2],L=d[3]):(N=d[0],L=d[1],p=d[2],k=d[3]),[p,k,N,L,d[4]]):null}(t,f);if(v){var p=v[1],N=v[3],L=v[4],B=_(v[0],v[2]),C=_(p,N);return B.concat([[T,L]],C)}return function y(t,f){for(var E=t.length,g=f.length,O=Math.ceil((E+g)/2),w=O,v=2*O,d=new Array(v),p=new Array(v),k=0;k<v;k++)d[k]=-1,p[k]=-1;d[w+1]=0,p[w+1]=0;for(var N=E-g,L=N%2!=0,B=0,C=0,V=0,I=0,R=0;R<O;R++){for(var A=-R+B;A<=R-C;A+=2){for(var q=w+A,U=(P=A==-R||A!=R&&d[q-1]<d[q+1]?d[q+1]:d[q-1]+1)-A;P<E&&U<g&&t.charAt(P)==f.charAt(U);)P++,U++;if(d[q]=P,P>E)C+=2;else if(U>g)B+=2;else if(L&&(j=w+N-A)>=0&&j<v&&-1!=p[j]&&P>=(x=E-p[j]))return u(t,f,P,U)}for(var M=-R+V;M<=R-I;M+=2){for(var x,j=w+M,F=(x=M==-R||M!=R&&p[j-1]<p[j+1]?p[j+1]:p[j-1]+1)-M;x<E&&F<g&&t.charAt(E-x-1)==f.charAt(g-F-1);)x++,F++;if(p[j]=x,x>E)I+=2;else if(F>g)V+=2;else if(!L){var P;if((q=w+N-M)>=0&&q<v&&-1!=d[q]&&(U=w+(P=d[q])-q,P>=(x=E-x)))return u(t,f,P,U)}}}return[[h,t],[S,f]]}(t,f)}(t=t.substring(0,t.length-g),f=f.substring(0,f.length-g));return O&&v.unshift([T,O]),w&&v.push([T,w]),s(v),null!=E&&(v=function i(t,f){var E=function a(t,f){if(0===f)return[T,t];for(var E=0,g=0;g<t.length;g++){var O=t[g];if(O[0]===h||O[0]===T){var w=E+O[1].length;if(f===w)return[g+1,t];if(f<w){t=t.slice();var v=f-E,d=[O[0],O[1].slice(0,v)],p=[O[0],O[1].slice(v)];return t.splice(g,1,d,p),[g+1,t]}E=w}}throw new Error("cursor_pos is out of bounds!")}(t,f),g=E[1],O=E[0],w=g[O],v=g[O+1];if(null==w)return t;if(w[0]!==T)return t;if(null!=v&&w[1]+v[1]===v[1]+w[1])return g.splice(O,2,v,w),c(g,O,2);if(null!=v&&0===v[1].indexOf(w[1])){g.splice(O,2,[v[0],w[1]],[0,w[1]]);var d=v[1].slice(w[1].length);return d.length>0&&g.splice(O+2,0,[v[0],d]),c(g,O,3)}return t}(v,E)),function r(t){for(var f=!1,E=function(v){return v.charCodeAt(0)>=56320&&v.charCodeAt(0)<=57343},g=function(v){return v.charCodeAt(v.length-1)>=55296&&v.charCodeAt(v.length-1)<=56319},O=2;O<t.length;O+=1)t[O-2][0]===T&&g(t[O-2][1])&&t[O-1][0]===h&&E(t[O-1][1])&&t[O][0]===S&&E(t[O][1])&&(f=!0,t[O-1][1]=t[O-2][1].slice(-1)+t[O-1][1],t[O][1]=t[O-2][1].slice(-1)+t[O][1],t[O-2][1]=t[O-2][1].slice(0,-1));if(!f)return t;var w=[];for(O=0;O<t.length;O+=1)t[O][1].length>0&&w.push(t[O]);return w}(v)}function u(t,f,E,g){var O=t.substring(0,E),w=f.substring(0,g),v=t.substring(E),d=f.substring(g),p=_(O,w),k=_(v,d);return p.concat(k)}function o(t,f){if(!t||!f||t.charAt(0)!=f.charAt(0))return 0;for(var E=0,g=Math.min(t.length,f.length),O=g,w=0;E<O;)t.substring(w,O)==f.substring(w,O)?w=E=O:g=O,O=Math.floor((g-E)/2+E);return O}function e(t,f){if(!t||!f||t.charAt(t.length-1)!=f.charAt(f.length-1))return 0;for(var E=0,g=Math.min(t.length,f.length),O=g,w=0;E<O;)t.substring(t.length-O,t.length-w)==f.substring(f.length-O,f.length-w)?w=E=O:g=O,O=Math.floor((g-E)/2+E);return O}function s(t){t.push([T,""]);for(var v,f=0,E=0,g=0,O="",w="";f<t.length;)switch(t[f][0]){case S:g++,w+=t[f][1],f++;break;case h:E++,O+=t[f][1],f++;break;case T:E+g>1?(0!==E&&0!==g&&(0!==(v=o(w,O))&&(f-E-g>0&&t[f-E-g-1][0]==T?t[f-E-g-1][1]+=w.substring(0,v):(t.splice(0,0,[T,w.substring(0,v)]),f++),w=w.substring(v),O=O.substring(v)),0!==(v=e(w,O))&&(t[f][1]=w.substring(w.length-v)+t[f][1],w=w.substring(0,w.length-v),O=O.substring(0,O.length-v))),0===E?t.splice(f-g,E+g,[S,w]):0===g?t.splice(f-E,E+g,[h,O]):t.splice(f-E-g,E+g,[h,O],[S,w]),f=f-E-g+(E?1:0)+(g?1:0)+1):0!==f&&t[f-1][0]==T?(t[f-1][1]+=t[f][1],t.splice(f,1)):f++,g=0,E=0,O="",w=""}""===t[t.length-1][1]&&t.pop();var d=!1;for(f=1;f<t.length-1;)t[f-1][0]==T&&t[f+1][0]==T&&(t[f][1].substring(t[f][1].length-t[f-1][1].length)==t[f-1][1]?(t[f][1]=t[f-1][1]+t[f][1].substring(0,t[f][1].length-t[f-1][1].length),t[f+1][1]=t[f-1][1]+t[f+1][1],t.splice(f-1,1),d=!0):t[f][1].substring(0,t[f+1][1].length)==t[f+1][1]&&(t[f-1][1]+=t[f+1][1],t[f][1]=t[f][1].substring(t[f+1][1].length)+t[f+1][1],t.splice(f+1,1),d=!0)),f++;d&&s(t)}var l=_;function c(t,f,E){for(var g=f+E-1;g>=0&&g>=f-1;g--)if(g+1<t.length){var O=t[g],w=t[g+1];O[0]===w[1]&&t.splice(g,2,[O[0],O[1]+w[1]])}return t}l.INSERT=S,l.DELETE=h,l.EQUAL=T,D.exports=l},function(D,b){function h(S){var T=[];for(var _ in S)T.push(_);return T}(D.exports="function"==typeof Object.keys?Object.keys:h).shim=h},function(D,b){var h="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function S(_){return"[object Arguments]"==Object.prototype.toString.call(_)}function T(_){return _&&"object"==typeof _&&"number"==typeof _.length&&Object.prototype.hasOwnProperty.call(_,"callee")&&!Object.prototype.propertyIsEnumerable.call(_,"callee")||!1}(b=D.exports=h?S:T).supported=S,b.unsupported=T},function(D,b){"use strict";var h=Object.prototype.hasOwnProperty,S="~";function T(){}function _(y,u,o){this.fn=y,this.context=u,this.once=o||!1}function m(){this._events=new T,this._eventsCount=0}Object.create&&(T.prototype=Object.create(null),(new T).__proto__||(S=!1)),m.prototype.eventNames=function(){var o,e,u=[];if(0===this._eventsCount)return u;for(e in o=this._events)h.call(o,e)&&u.push(S?e.slice(1):e);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(o)):u},m.prototype.listeners=function(u,o){var n=this._events[S?S+u:u];if(o)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var s=0,l=n.length,a=new Array(l);s<l;s++)a[s]=n[s].fn;return a},m.prototype.emit=function(u,o,e,n,s,l){var a=S?S+u:u;if(!this._events[a])return!1;var c,t,i=this._events[a],r=arguments.length;if(i.fn){switch(i.once&&this.removeListener(u,i.fn,void 0,!0),r){case 1:return i.fn.call(i.context),!0;case 2:return i.fn.call(i.context,o),!0;case 3:return i.fn.call(i.context,o,e),!0;case 4:return i.fn.call(i.context,o,e,n),!0;case 5:return i.fn.call(i.context,o,e,n,s),!0;case 6:return i.fn.call(i.context,o,e,n,s,l),!0}for(t=1,c=new Array(r-1);t<r;t++)c[t-1]=arguments[t];i.fn.apply(i.context,c)}else{var E,f=i.length;for(t=0;t<f;t++)switch(i[t].once&&this.removeListener(u,i[t].fn,void 0,!0),r){case 1:i[t].fn.call(i[t].context);break;case 2:i[t].fn.call(i[t].context,o);break;case 3:i[t].fn.call(i[t].context,o,e);break;case 4:i[t].fn.call(i[t].context,o,e,n);break;default:if(!c)for(E=1,c=new Array(r-1);E<r;E++)c[E-1]=arguments[E];i[t].fn.apply(i[t].context,c)}}return!0},m.prototype.on=function(u,o,e){var n=new _(o,e||this),s=S?S+u:u;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],n]:this._events[s].push(n):(this._events[s]=n,this._eventsCount++),this},m.prototype.once=function(u,o,e){var n=new _(o,e||this,!0),s=S?S+u:u;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],n]:this._events[s].push(n):(this._events[s]=n,this._eventsCount++),this},m.prototype.removeListener=function(u,o,e,n){var s=S?S+u:u;if(!this._events[s])return this;if(!o)return 0==--this._eventsCount?this._events=new T:delete this._events[s],this;var l=this._events[s];if(l.fn)l.fn===o&&(!n||l.once)&&(!e||l.context===e)&&(0==--this._eventsCount?this._events=new T:delete this._events[s]);else{for(var a=0,i=[],r=l.length;a<r;a++)(l[a].fn!==o||n&&!l[a].once||e&&l[a].context!==e)&&i.push(l[a]);i.length?this._events[s]=1===i.length?i[0]:i:0==--this._eventsCount?this._events=new T:delete this._events[s]}return this},m.prototype.removeAllListeners=function(u){var o;return u?this._events[o=S?S+u:u]&&(0==--this._eventsCount?this._events=new T:delete this._events[o]):(this._events=new T,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prototype.setMaxListeners=function(){return this},m.prefixed=S,m.EventEmitter=m,typeof D<"u"&&(D.exports=m)},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.matchText=b.matchSpacing=b.matchNewline=b.matchBlot=b.matchAttributor=b.default=void 0;var S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},T=function(z,$){if(Array.isArray(z))return z;if(Symbol.iterator in Object(z))return function H(z,$){var G=[],W=!0,J=!1,tt=void 0;try{for(var ut,et=z[Symbol.iterator]();!(W=(ut=et.next()).done)&&(G.push(ut.value),!$||G.length!==$);W=!0);}catch(ft){J=!0,tt=ft}finally{try{!W&&et.return&&et.return()}finally{if(J)throw tt}}return G}(z,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")},_=function(){function H(z,$){for(var G=0;G<$.length;G++){var W=$[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(z,W.key,W)}}return function(z,$,G){return $&&H(z.prototype,$),G&&H(z,G),z}}(),y=p(h(3)),o=p(h(2)),n=p(h(0)),l=p(h(5)),i=p(h(10)),c=p(h(9)),t=h(36),f=h(37),g=p(h(13)),O=h(26),w=h(38),v=h(39),d=h(40);function p(H){return H&&H.__esModule?H:{default:H}}function k(H,z,$){return z in H?Object.defineProperty(H,z,{value:$,enumerable:!0,configurable:!0,writable:!0}):H[z]=$,H}var C=(0,i.default)("quill:clipboard"),V="__ql-matcher",I=[[Node.TEXT_NODE,lt],[Node.TEXT_NODE,nt],["br",function Y(H,z){return j(z,"\n")||z.insert("\n"),z}],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,function at(H,z){var $={},G=H.style||{};return G.fontStyle&&"italic"===U(H).fontStyle&&($.italic=!0),G.fontWeight&&(U(H).fontWeight.startsWith("bold")||parseInt(U(H).fontWeight)>=700)&&($.bold=!0),Object.keys($).length>0&&(z=P(z,$)),parseFloat(G.textIndent||0)>0&&(z=(new o.default).insert("\t").concat(z)),z}],["li",function X(H,z){var $=n.default.query(H);if(null==$||"list-item"!==$.blotName||!j(z,"\n"))return z;for(var G=-1,W=H.parentNode;!W.classList.contains("ql-clipboard");)"list"===(n.default.query(W)||{}).blotName&&(G+=1),W=W.parentNode;return G<=0?z:z.compose((new o.default).retain(z.length()-1).retain(1,{indent:G}))}],["b",F.bind(F,"bold")],["i",F.bind(F,"italic")],["style",function Q(){return new o.default}]],R=[t.AlignAttribute,w.DirectionAttribute].reduce(function(H,z){return H[z.keyName]=z,H},{}
vendor: 5,662 bytes, line 1
1),A=[t.AlignStyle,f.BackgroundStyle,O.ColorStyle,w.DirectionStyle,v.FontStyle,d.SizeStyle].reduce(function(H,z){return H[z.keyName]=z,H},{}),q=function(H){function z($,G){!function N(H,z){if(!(H instanceof z))throw new TypeError("Cannot call a class as a function")}(this,z);var W=function L(H,z){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!z||"object"!=typeof z&&"function"!=typeof z?H:z}(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,$,G));return W.quill.root.addEventListener("paste",W.onPaste.bind(W)),W.container=W.quill.addContainer("ql-clipboard"),W.container.setAttribute("contenteditable",!0),W.container.setAttribute("tabindex",-1),W.matchers=[],I.concat(W.options.matchers).forEach(function(J){var tt=T(J,2),ut=tt[1];!G.matchVisual&&ut===rt||W.addMatcher(tt[0],ut)}),W}return function B(H,z){if("function"!=typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function, not "+typeof z);H.prototype=Object.create(z&&z.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(H,z):H.__proto__=z)}(z,H),_(z,[{key:"addMatcher",value:function(G,W){this.matchers.push([G,W])}},{key:"convert",value:function(G){if("string"==typeof G)return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var W=this.quill.getFormat(this.quill.selection.savedRange.index);if(W[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",(new o.default).insert(J,k({},g.default.blotName,W[g.default.blotName]))}var tt=this.prepareMatching(),et=T(tt,2),it=M(this.container,et[0],et[1]);return j(it,"\n")&&null==it.ops[it.ops.length-1].attributes&&(it=it.compose((new o.default).retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(G,W){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof G)this.quill.setContents(this.convert(G),W),this.quill.setSelection(0,l.default.sources.SILENT);else{var tt=this.convert(W);this.quill.updateContents((new o.default).retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var W=this;if(!G.defaultPrevented&&this.quill.isEnabled()){var J=this.quill.getSelection(),tt=(new o.default).retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){tt=tt.concat(W.convert()).delete(J.length),W.quill.updateContents(tt,l.default.sources.USER),W.quill.setSelection(tt.length()-J.length,l.default.sources.SILENT),W.quill.scrollingContainer.scrollTop=et,W.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,W=[],J=[];return this.matchers.forEach(function(tt){var et=T(tt,2),ut=et[0],ft=et[1];switch(ut){case Node.TEXT_NODE:J.push(ft);break;case Node.ELEMENT_NODE:W.push(ft);break;default:[].forEach.call(G.container.querySelectorAll(ut),function(it){it[V]=it[V]||[],it[V].push(ft)})}}),[W,J]}}]),z}(c.default);function P(H,z,$){return"object"===(typeof z>"u"?"undefined":S(z))?Object.keys(z).reduce(function(G,W){return P(G,W,z[W])},H):H.reduce(function(G,W){return W.attributes&&W.attributes[z]?G.push(W):G.insert(W.insert,(0,y.default)({},k({},z,$),W.attributes))},new o.default)}function U(H){if(H.nodeType!==Node.ELEMENT_NODE)return{};var z="__ql-computed-style";return H[z]||(H[z]=window.getComputedStyle(H))}function j(H,z){for(var $="",G=H.ops.length-1;G>=0&&$.length<z.length;--G){var W=H.ops[G];if("string"!=typeof W.insert)break;$=W.insert+$}return $.slice(-1*z.length)===z}function x(H){if(0===H.childNodes.length)return!1;var z=U(H);return["block","list-item"].indexOf(z.display)>-1}function M(H,z,$){return H.nodeType===H.TEXT_NODE?$.reduce(function(G,W){return W(H,G)},new o.default):H.nodeType===H.ELEMENT_NODE?[].reduce.call(H.childNodes||[],function(G,W){var J=M(W,z,$);return W.nodeType===H.ELEMENT_NODE&&(J=z.reduce(function(tt,et){return et(W,tt)},J),J=(W[V]||[]).reduce(function(tt,et){return et(W,tt)},J)),G.concat(J)},new o.default):new o.default}function F(H,z,$){return P($,H,!0)}function Z(H,z){var $=n.default.Attributor.Attribute.keys(H),G=n.default.Attributor.Class.keys(H),W=n.default.Attributor.Style.keys(H),J={};return $.concat(G).concat(W).forEach(function(tt){var et=n.default.query(tt,n.default.Scope.ATTRIBUTE);null!=et&&(J[et.attrName]=et.value(H),J[et.attrName])||(null!=(et=R[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(H)||void 0),null!=(et=A[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[(et=A[tt]).attrName]=et.value(H)||void 0))}),Object.keys(J).length>0&&(z=P(z,J)),z}function K(H,z){var $=n.default.query(H);if(null==$)return z;if($.prototype instanceof n.default.Embed){var G={},W=$.value(H);null!=W&&(G[$.blotName]=W,z=(new o.default).insert(G,$.formats(H)))}else"function"==typeof $.formats&&(z=P(z,$.blotName,$.formats(H)));return z}function nt(H,z){return j(z,"\n")||(x(H)||z.length()>0&&H.nextSibling&&x(H.nextSibling))&&z.insert("\n"),z}function rt(H,z){if(x(H)&&null!=H.nextElementSibling&&!j(z,"\n\n")){var $=H.offsetHeight+parseFloat(U(H).marginTop)+parseFloat(U(H).marginBottom);H.nextElementSibling.offsetTop>H.offsetTop+1.5*$&&z.insert("\n")}return z}function lt(H,z){var $=H.data;if("O:P"===H.parentNode.tagName)return z.insert($.trim());if(0===$.trim().length&&H.parentNode.classList.contains("ql-clipboard"))return z;if(!U(H.parentNode).whiteSpace.startsWith("pre")){var G=function(J,tt){return(tt=tt.replace(/[^\u
100a0]/g,"")).length<1&&J?" ":tt};$=($=$.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,G.bind(G,!0)),(null==H.previousSibling&&x(H.parentNode)||null!=H.previousSibling&&x(H.previousSibling))&&($=$.replace(/^\s+/,G.bind(G,!1))),(null==H.nextSibling&&x(H.parentNode)||null!=H.nextSibling&&x(H.nextSibling))&&($=$.replace(/\s+$/,G.bind(G,!1)))}return z.insert($)}q.DEFAULTS={matchers:[],matchVisual:!0},b.default=q,b.matchAttributor=Z,b.matchBlot=K,b.matchNewline=nt,b.matchSpacing=rt,b.matchText=lt},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function s(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&s(l.prototype,a),i&&s(l,i),l}}(),T=function s(l,a,i){null===l&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(void 0===r){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,a,i)}if("value"in r)return r.value;var t=r.get;return void 0===t?void 0:t.call(i)};var n=function(s){function l(){return function u(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),S(l,[{key:"optimize",value:function(i){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,i),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(function y(s){return s&&s.__esModule?s:{default:s}}(h(6)).default);n.blotName="bold",n.tagName=["STRONG","B"],b.default=n},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.addControls=b.default=void 0;var S=function(p,k){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return function d(p,k){var N=[],L=!0,B=!1,C=void 0;try{for(var I,V=p[Symbol.iterator]();!(L=(I=V.next()).done)&&(N.push(I.value),!k||N.length!==k);L=!0);}catch(R){B=!0,C=R}finally{try{!L&&V.return&&V.return()}finally{if(B)throw C}}return N}(p,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function d(p,k){for(var N=0;N<k.length;N++){var L=k[N];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(p,L.key,L)}}return function(p,k,N){return k&&d(p.prototype,k),N&&d(p,N),p}}(),m=i(h(2)),u=i(h(0)),e=i(h(5)),s=i(h(10)),a=i(h(9));function i(d){return d&&d.__esModule?d:{default:d}}function t(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?d:p}var E=(0,s.default)("quill:toolbar"),g=function(d){function p(k,N){!function c(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p);var C,L=t(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,k,N));if(Array.isArray(L.options.container)){var B=document.createElement("div");w(B,L.options.container),k.container.parentNode.insertBefore(B,k.container),L.container=B}else L.container="string"==typeof L.options.container?document.querySelector(L.options.container):L.options.container;return L.container instanceof HTMLElement?(L.container.classList.add("ql-toolbar"),L.controls=[],L.handlers={},Object.keys(L.options.handlers).forEach(function(V){L.addHandler(V,L.options.handlers[V])}),[].forEach.call(L.container.querySelectorAll("button, select"),function(V){L.attach(V)}),L.quill.on(e.default.events.EDITOR_CHANGE,function(V,I){V===e.default.events.SELECTION_CHANGE&&L.update(I)}),L.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var V=L.quill.selection.getRange(),I=S(V,1);L.update(I[0])}),L):(C=E.error("Container required for toolbar",L.options),t(L,C
vendor: 4,227 bytes, line 1
1))}return function f(d,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}(p,d),T(p,[{key:"addHandler",value:function(N,L){this.handlers[N]=L}},{key:"attach",value:function(N){var L=this,B=[].find.call(N.classList,function(V){return 0===V.indexOf("ql-")});if(B){if(B=B.slice(3),"BUTTON"===N.tagName&&N.setAttribute("type","button"),null==this.handlers[B]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[B])return void E.warn("ignoring attaching to disabled format",B,N);if(null==u.default.query(B))return void E.warn("ignoring attaching to nonexistent format",B,N)}N.addEventListener("SELECT"===N.tagName?"change":"click",function(V){var I=void 0;if("SELECT"===N.tagName){if(N.selectedIndex<0)return;var R=N.options[N.selectedIndex];I=!R.hasAttribute("selected")&&(R.value||!1)}else I=!N.classList.contains("ql-active")&&(N.value||!N.hasAttribute("value")),V.preventDefault();L.quill.focus();var A=L.quill.selection.getRange(),P=S(A,1)[0];if(null!=L.handlers[B])L.handlers[B].call(L,I);else if(u.default.query(B).prototype instanceof u.default.Embed){if(!(I=prompt("Enter "+B)))return;L.quill.updateContents((new m.default).retain(P.index).delete(P.length).insert(function r(d,p,k){return p in d?Object.defineProperty(d,p,{value:k,enumerable:!0,configurable:!0,writable:!0}):d[p]=k,d}({},B,I)),e.default.sources.USER)}else L.quill.format(B,I,e.default.sources.USER);L.update(P)}),this.controls.push([B,N])}}},{key:"update",value:function(N){var L=null==N?{}:this.quill.getFormat(N);this.controls.forEach(function(B){var C=S(B,2),V=C[0],I=C[1];if("SELECT"===I.tagName){var R=void 0;if(null==N)R=null;else if(null==L[V])R=I.querySelector("option[selected]");else if(!Array.isArray(L[V])){var A=L[V];"string"==typeof A&&(A=A.replace(/\"/g,'\\"')),R=I.querySelector('option[value="'+A+'"]')}null==R?(I.value="",I.selectedIndex=-1):R.selected=!0}else if(null==N)I.classList.remove("ql-active");else if(I.hasAttribute("value")){var q=L[V]===I.getAttribute("value")||null!=L[V]&&L[V].toString()===I.getAttribute("value")||null==L[V]&&!I.getAttribute("value");I.classList.toggle("ql-active",q)}else I.classList.toggle("ql-active",null!=L[V])})}}]),p}(a.default);function O(d,p,k){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+p),null!=k&&(N.value=k),d.appendChild(N)}function w(d,p){Array.isArray(p[0])||(p=[p]),p.forEach(function(k){var N=document.createElement("span");N.classList.add("ql-formats"),k.forEach(function(L){if("string"==typeof L)O(N,L);else{var B=Object.keys(L)[0],C=L[B];Array.isArray(C)?function v(d,p,k){var N=document.createElement("select");N.classList.add("ql-"+p),k.forEach(function(L){var B=document.createElement("option");!1!==L?B.setAttribute("value",L):B.setAttribute("selected","selected"),N.appendChild(B)}),d.appendChild(N)}(N,B,C):O(N,B,C)}}),d.appendChild(N)})}g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var p=this,k=this.quill.getSelection();if(null!=k)if(0==k.length){var N=this.quill.getFormat();Object.keys(N).forEach(function(L){null!=u.default.query(L,u.default.Scope.INLINE)&&p.quill.format(L,!1)})}else this.quill.removeFormat(k,e.default.sources.USER)},direction:function(p){var k=this.quill.getFormat().align;"rtl"===p&&null==k?this.quill.format("align","right",e.default.sources.USER):!p&&"right"===k&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",p,e.default.sources.USER)},indent:function(p){var k=this.quill.getSelection(),N=this.quill.getFormat(k),L=parseInt(N.indent||0);if("+1"===p||"-1"===p){var B="+1"===p?1:-1;"rtl"===N.direction&&(B*=-1),this.quill.format("indent",L+B,e.default.sources.USER)}},link:function(p){!0===p&&(p=prompt("Enter link URL:")),this.quill.format("link",p,e.default.sources.USER)},list:function(p){var k=this.quill.getSelection(),N=this.quill.getFormat(k);this.quill.format("list","check"===p?"checked"!==N.list&&"unchecked"!==N.list&&"unchecked":p,e.default.sources.USER)}}}
1,b.default=g,b.addControls=w},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function s(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&s(l.prototype,a),i&&s(l,i),l}}(),T=function s(l,a,i){null===l&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(void 0===r){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,a,i)}if("value"in r)return r.value;var t=r.get;return void 0===t?void 0:t.call(i)};var n=function(s){function l(a,i){!function u(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var r=function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.label.innerHTML=i,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(c){c.classList.add("ql-primary")}),r}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),S(l,[{key:"buildItem",value:function(i){var r=T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,i);return r.style.backgroundColor=i.getAttribute("value")||"",r}},{key:"selectItem",value:function(i,r){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r);var c=this.label.querySelector(".ql-color-label"),t=i&&i.getAttribute("data-value")||"";c&&("line"===c.tagName?c.style.stroke=t:c.style.fill=t)}}]),l}(function y(s){return s&&s.__esModule?s:{default:s}}(h(28)).default);b.default=n},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function s(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&s(l.prototype,a),i&&s(l,i),l}}(),T=function s(l,a,i){null===l&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(void 0===r){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,a,i)}if("value"in r)return r.value;var t=r.get;return void 0===t?void 0:t.call(i)};var n=function(s){function l(a,i){!function u(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var r=function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(c){c.innerHTML=i[c.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),S(l,[{key:"selectItem",value:function(i,r){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,i,r),this.label.innerHTML=(i=i||this.defaultItem).innerHTML}}]),l}(function y(s){return s&&s.__esModule?s:{default:s}}(h(28)).default);b.default=n},function(D,b,h){"use strict";
1Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function m(y,u){for(var o=0;o<u.length;o++){var e=u[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(y,e.key,e)}}return function(y,u,o){return u&&m(y.prototype,u),o&&m(y,o),y}}();var _=function(){function m(y,u){var o=this;(function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.boundsContainer=u||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return S(m,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var o=u.left+u.width/2-this.root.offsetWidth/2,e=u.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),s=this.root.getBoundingClientRect(),l=0;return s.right>n.right&&(this.root.style.left=o+(l=n.right-s.right)+"px"),s.left<n.left&&(this.root.style.left=o+(l=n.left-s.left)+"px"),s.bottom>n.bottom&&(this.root.style.top=e-(u.bottom-u.top+(s.bottom-s.top))+"px",this.root.classList.add("ql-flip")),l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),m}();b.default=_},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(d,p){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return function v(d,p){var k=[],N=!0,L=!1,B=void 0;try{for(var V,C=d[Symbol.iterator]();!(N=(V=C.next()).done)&&(k.push(V.value),!p||k.length!==p);N=!0);}catch(I){L=!0,B=I}finally{try{!N&&C.return&&C.return()}finally{if(L)throw B}}return k}(d,p);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function v(d,p,k){null===d&&(d=Function.prototype);var N=Object.getOwnPropertyDescriptor(d,p);if(void 0===N){var L=Object.getPrototypeOf(d);return null===L?void 0:v(L,p,k)}if("value"in N)return N.value;var B=N.get;return void 0===B?void 0:B.call(k)},_=function(){function v(d,p){for(var k=0;k<p.length;k++){var N=p[k];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(d,N.key,N)}}return function(d,p,k){return p&&v(d.prototype,p),k&&v(d,k),d}}(),y=c(h(3)),o=c(h(8)),e=h(43),n=c(e),l=c(h(27)),a=h(15),r=c(h(41));function c(v){return v&&v.__esModule?v:{default:v}}function t(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")}function f(v,d){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?v:d}function E(v,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);v.prototype=Object.create(d&&d.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(v,d):v.__proto__=d)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(v){function d(p,k){t(this,d),null!=k.modules.toolbar&&null==k.modules.toolbar.container&&(k.modules.toolbar.container=g);var N=f(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,p,k));return N.quill.container.classList.add("ql-snow"),N}return E(d,v),_(d,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),r.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),r.default),this.tooltip=new w(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,L){k.handlers.link.call(k,!L.format.link)})}}]),d}(n.default);O.DEFAULTS=(0,y.default)(!0,{},n.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(d){if(d){var p=this.quill.getSelection();if(null==p||0==p.length)return;var k=this.quill.getText(p);/^\S+@\S+\.\S+$/.test(k)&&0!==k.indexOf("mailto:")&&(k="mailto:"+k),this.quill.theme.tooltip.edit("link",k)}else this.quill.format("link",!1)}}}}});var w=function(v){function d(p,k){t(this,d);var N=f(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,p,k));return N.preview=N.root.querySelector("a.ql-preview"),N}return E(d,v),_(d,[{key:"listen",value:function(){var k=this;T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(null!=k.linkRange){var L=k.linkRange;k.restoreFocus(),k.quill.formatText(L,"link",!1,o.default.sources.USER),delete k.linkRange}N.preventDefault(),k.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(N,L,B){if(null!=N){
vendor: 4,882 bytes, line 1
1if(0===N.length&&B===o.default.sources.USER){var C=k.quill.scroll.descendant(l.default,N.index),V=S(C,2),I=V[0];if(null!=I){k.linkRange=new a.Range(N.index-V[1],I.length());var A=l.default.formats(I.domNode);return k.preview.textContent=A,k.preview.setAttribute("href",A),k.show(),void k.position(k.quill.getBounds(k.linkRange))}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),d}(e.BaseTooltip);w.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),b.default=O},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var T=W(h(29)),_=h(36),m=h(38),y=h(64),o=W(h(65)),n=W(h(66)),s=h(67),l=W(s),a=h(37),i=h(26),r=h(39),c=h(40),f=W(h(56)),g=W(h(68)),w=W(h(27)),d=W(h(69)),k=W(h(70)),L=W(h(71)),C=W(h(72)),I=W(h(73)),R=h(13),A=W(R),P=W(h(74)),j=W(h(75)),M=W(h(57)),Z=W(h(41)),Y=W(h(28)),X=W(h(59)),rt=W(h(60)),lt=W(h(61)),z=W(h(108)),G=W(h(62));function W(J){return J&&J.__esModule?J:{default:J}}T.default.register({"attributors/attribute/direction":m.DirectionAttribute,"attributors/class/align":_.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":i.ColorClass,"attributors/class/direction":m.DirectionClass,"attributors/class/font":r.FontClass,"attributors/class/size":c.SizeClass,"attributors/style/align":_.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":i.ColorStyle,"attributors/style/direction":m.DirectionStyle,"attributors/style/font":r.FontStyle,"attributors/style/size":c.SizeStyle},!0),T.default.register({"formats/align":_.AlignClass,"formats/direction":m.DirectionClass,"formats/indent":y.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":i.ColorStyle,"formats/font":r.FontClass,"formats/size":c.SizeClass,"formats/blockquote":o.default,"formats/code-block":A.default,"formats/header":n.default,"formats/list":l.default,"formats/bold":f.default,"formats/code":R.Code,"formats/italic":g.default,"formats/link":w.default,"formats/script":d.default,"formats/strike":k.default,"formats/underline":L.default,"formats/image":C.default,"formats/video":I.default,"formats/list/item":s.ListItem,"modules/formula":P.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":z.default,"themes/snow":G.default,"ui/icons":Z.default,"ui/picker":Y.default,"ui/icon-picker":rt.default,"ui/color-picker":X.default,"ui/tooltip":lt.default},!0),b.default=T.default},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.IndentClass=void 0;var S=function(){function l(a,i){for(var r=0;r<i.length;r++){var c=i[r];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}}return function(a,i,r){return i&&l(a.prototype,i),r&&l(a,r),a}}(),T=function l(a,i,r){null===a&&(a=Function.prototype);var c=Object.getOwnPropertyDescriptor(a,i);if(void 0===c){var t=Object.getPrototypeOf(a);return null===t?void 0:l(t,i,r)}if("value"in c)return c.value;var f=c.get;return void 0===f?void 0:f.call(r)},m=function y(l){return l&&l.__esModule?l:{default:l}}(h(0));var n=function(l){function a(){return function u(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function e(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),S(a,[{key:"add",value:function(r,c){if("+1"===c||"-1"===c){var t=this.value(r)||0;c="+1"===c?t+1:t-1}return 0===c?(this.remove(r),!0):T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,r,c)}},{key:"canAdd",value:function(r,c){return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,c)||T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,r,parseInt(c))}},{key:"value",value:function(r){return parseInt(T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,r))||void 0}}]),a}(m.default.Attributor.Class),s=new n("indent","ql-indent",{scope:m.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});b.IndentClass=s},function(D,b,h){"use strict";
vendor: 6,609 bytes, line 1
1Object.defineProperty(b,"__esModule",{value:!0});var o=function(e){function n(){return function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function u(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),n}(function _(e){return e&&e.__esModule?e:{default:e}}(h(4)).default);o.blotName="blockquote",o.tagName="blockquote",b.default=o},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function n(s,l){for(var a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(s,i.key,i)}}return function(s,l,a){return l&&n(s.prototype,l),a&&n(s,a),s}}();var e=function(n){function s(){return function y(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}(this,s),function u(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?n:s}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return function o(n,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)}(s,n),S(s,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),s}(function m(n){return n&&n.__esModule?n:{default:n}}(h(4)).default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],b.default=e},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.ListItem=void 0;var S=function(){function t(f,E){for(var g=0;g<E.length;g++){var O=E[g];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(f,O.key,O)}}return function(f,E,g){return E&&t(f.prototype,E),g&&t(f,g),f}}(),T=function t(f,E,g){null===f&&(f=Function.prototype);var O=Object.getOwnPropertyDescriptor(f,E);if(void 0===O){var w=Object.getPrototypeOf(f);return null===w?void 0:t(w,E,g)}if("value"in O)return O.value;var v=O.get;return void 0===v?void 0:v.call(g)},m=n(h(0)),u=n(h(4)),e=n(h(25));function n(t){return t&&t.__esModule?t:{default:t}}function l(t,f){if(!(t instanceof f))throw new TypeError("Cannot call a class as a function")}function a(t,f){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?t:f}function i(t,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);t.prototype=Object.create(f&&f.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(t,f):t.__proto__=f)}var r=function(t){function f(){return l(this,f),a(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return i(f,t),S(f,[{key:"format",value:function(g,O){g!==c.blotName||O?T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,g,O):this.replaceWith(m.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(g,O){return this.parent.isolate(this.offset(this.parent),this.length()),g===this.parent.statics.blotName?(this.parent.replaceWith(g,O),this):(this.parent.unwrap(),T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replaceWith",this).call(this,g,O))}}],[{key:"formats",value:function(g){return g.tagName===this.tagName?void 0:T(f.__proto__||Object.getPrototypeOf(f),"formats",this).call(this,g)}}]),f}(u.default);r.blotName="list-item",r.tagName="LI";var c=function(t){function f(E){l(this,f);var g=a(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,E)),O=function(v){if(v.target.parentNode===E){var d=g.statics.formats(E),p=m.default.find(v.target);"checked"===d?p.format("list","unchecked"):"unchecked"===d&&p.format("list","checked")}};return E.addEventListener("touchstart",O),E.addEventListener("mousedown",O),g}return i(f,t),S(f,null,[{key:"create",value:function(g){var O="ordered"===g?"OL":"UL",w=T(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,O);return("checked"===g||"unchecked"===g)&&w.setAttribute("data-checked","checked"===g),w}},{key:"formats",value:function(g){return"OL"===g.tagName?"ordered":"UL"===g.tagName?g.hasAttribute("data-checked")?"true"===g.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),S(f,[{key:"format",value:function(g,O){this.children.length>0&&this.children.tail.format(g,O)}},{key:"formats",value:function(){return function s(t,f,E){return f in t?Object.defineProperty(t,f,{value:E,enumerable:!0,configurable:!0,writable:!0}):t[f]=E,t}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(g,O){if(g instanceof r)T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"insertBefore",this).call(this,g,O);else{var w=null==O?this.length():O.offset(this),v=this.split(w);v.parent.insertBefore(g,v)}}},{key:"optimize",value:function(g){T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"optimize",this).call(this,g);var O=this.next;null!=O&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(g){if(g.statics.blotName!==this.statics.blotName){var O=m.default.create(this.statics.defaultChild);g.moveChildren(O),this.appendChild(O)}T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"replace",this).call(this,g)}}]),f}(e.default);c.blotName="list",c.scope=m.default.Scope.BLOCK_BLOT,c.tagName=["OL","UL"],c.defaultChild="list-item",c.allowedChildren=[r],b.ListItem=r,b.default=c},function(D,b,h){"use strict";
1Object.defineProperty(b,"__esModule",{value:!0});var o=function(e){function n(){return function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function u(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),n}(function _(e){return e&&e.__esModule?e:{default:e}}(h(56)).default);o.blotName="italic",o.tagName=["EM","I"],b.default=o},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function s(l,a){for(var i=0;i<a.length;i++){var r=a[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,i){return a&&s(l.prototype,a),i&&s(l,i),l}}(),T=function s(l,a,i){null===l&&(l=Function.prototype);var r=Object.getOwnPropertyDescriptor(l,a);if(void 0===r){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,a,i)}if("value"in r)return r.value;var t=r.get;return void 0===t?void 0:t.call(i)};var n=function(s){function l(){return function u(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),S(l,null,[{key:"create",value:function(i){return"super"===i?document.createElement("sup"):"sub"===i?document.createElement("sub"):T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,i)}},{key:"formats",value:function(i){return"SUB"===i.tagName?"sub":"SUP"===i.tagName?"super":void 0}}]),l}(function y(s){return s&&s.__esModule?s:{default:s}}(h(6)).default);n.blotName="script",n.tagName=["SUB","SUP"],b.default=n},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var o=function(e){function n(){return function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function u(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),n}(function _(e){return e&&e.__esModule?e:{default:e}}(h(6)).default);o.blotName="strike",o.tagName="S",b.default=o},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var o=function(e){function n(){return function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function y(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function u(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}(n,e),n}
1(function _(e){return e&&e.__esModule?e:{default:e}}(h(6)).default);o.blotName="underline",o.tagName="U",b.default=o},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function a(i,r){for(var c=0;c<r.length;c++){var t=r[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,r,c){return r&&a(i.prototype,r),c&&a(i,c),i}}(),T=function a(i,r,c){null===i&&(i=Function.prototype);var t=Object.getOwnPropertyDescriptor(i,r);if(void 0===t){var f=Object.getPrototypeOf(i);return null===f?void 0:a(f,r,c)}if("value"in t)return t.value;var E=t.get;return void 0===E?void 0:E.call(c)},m=function u(a){return a&&a.__esModule?a:{default:a}}(h(0)),y=h(27);var s=["alt","height","width"],l=function(a){function i(){return function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?a:i}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function n(a,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}(i,a),S(i,[{key:"format",value:function(c,t){s.indexOf(c)>-1?t?this.domNode.setAttribute(c,t):this.domNode.removeAttribute(c):T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,c,t)}}],[{key:"create",value:function(c){var t=T(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,c);return"string"==typeof c&&t.setAttribute("src",this.sanitize(c)),t}},{key:"formats",value:function(c){return s.reduce(function(t,f){return c.hasAttribute(f)&&(t[f]=c.getAttribute(f)),t},{})}},{key:"match",value:function(c){return/\.(jpe?g|gif|png)$/.test(c)||/^data:image\/.+;base64/.test(c)}},{key:"sanitize",value:function(c){return(0,y.sanitize)(c,["http","https","data"])?c:"//:0"}},{key:"value",value:function(c){return c.getAttribute("src")}}]),i}(m.default.Embed);l.blotName="image",l.tagName="IMG",b.default=l},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=function(){function a(i,r){for(var c=0;c<r.length;c++){var t=r[c];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}return function(i,r,c){return r&&a(i.prototype,r),c&&a(i,c),i}}(),T=function a(i,r,c){null===i&&(i=Function.prototype);var t=Object.getOwnPropertyDescriptor(i,r);if(void 0===t){var f=Object.getPrototypeOf(i);return null===f?void 0:a(f,r,c)}if("value"in t)return t.value;var E=t.get;return void 0===E?void 0:E.call(c)},_=h(4),y=function u(a){return a&&a.__esModule?a:{default:a}}(h(27));var s=["height","width"],l=function(a){function i(){return function o(a,i){if(!(a instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),function e(a,i){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?a:i}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function n(a,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(a,i):a.__proto__=i)}(i,a),S(i,[{key:"format",value:function(c,t){s.indexOf(c)>-1?t?this.domNode.setAttribute(c,t):this.domNode.removeAttribute(c):T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,c,t)}}],[{key:"create",value:function(c){var t=T(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,c);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",!0),t.setAttribute("src",this.sanitize(c)),t}},{key:"formats",value:function(c){return s.reduce(function(t,f){return c.hasAttribute(f)&&(t[f]=c.getAttribute(f)),t},{})}},{key:"sanitize",value:function(c){return y.default.sanitize(c)}},{key:"value",value:function(c){return c.getAttribute("src")}}]),i}(_.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",b.default=l},function(D,b,h){"use strict";
vendor: 9,313 bytes, line 1
1Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.FormulaBlot=void 0;var S=function(){function c(t,f){for(var E=0;E<f.length;E++){var g=f[E];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(t,g.key,g)}}return function(t,f,E){return f&&c(t.prototype,f),E&&c(t,E),t}}(),T=function c(t,f,E){null===t&&(t=Function.prototype);var g=Object.getOwnPropertyDescriptor(t,f);if(void 0===g){var O=Object.getPrototypeOf(t);return null===O?void 0:c(O,f,E)}if("value"in g)return g.value;var w=g.get;return void 0===w?void 0:w.call(E)},m=n(h(35)),u=n(h(5)),e=n(h(9));function n(c){return c&&c.__esModule?c:{default:c}}function s(c,t){if(!(c instanceof t))throw new TypeError("Cannot call a class as a function")}function l(c,t){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?c:t}function a(c,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(c,t):c.__proto__=t)}var i=function(c){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,c),S(t,null,[{key:"create",value:function(E){var g=T(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,E);return"string"==typeof E&&(window.katex.render(E,g,{throwOnError:!1,errorColor:"#f00"}),g.setAttribute("data-value",E)),g}},{key:"value",value:function(E){return E.getAttribute("data-value")}}]),t}(m.default);i.blotName="formula",i.className="ql-formula",i.tagName="SPAN";var r=function(c){function t(){s(this,t);var f=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return f}return a(t,c),S(t,null,[{key:"register",value:function(){u.default.register(i,!0)}}]),t}(e.default);b.FormulaBlot=i,b.default=r},function(D,b,h){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.CodeToken=b.CodeBlock=void 0;var S=function(){function E(g,O){for(var w=0;w<O.length;w++){var v=O[w];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,O,w){return O&&E(g.prototype,O),w&&E(g,w),g}}(),T=function E(g,O,w){null===g&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,O);if(void 0===v){var d=Object.getPrototypeOf(g);return null===d?void 0:E(d,O,w)}if("value"in v)return v.value;var p=v.get;return void 0===p?void 0:p.call(w)},m=l(h(0)),u=l(h(5)),e=l(h(9));function l(E){return E&&E.__esModule?E:{default:E}}function a(E,g){if(!(E instanceof g))throw new TypeError("Cannot call a class as a function")}function i(E,g){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?E:g}function r(E,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);E.prototype=Object.create(g&&g.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(E,g):E.__proto__=g)}var c=function(E){function g(){return a(this,g),i(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return r(g,E),S(g,[{key:"replaceWith",value:function(w){this.domNode.textContent=this.domNode.textContent,this.attach(),T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,w)}},{key:"highlight",value:function(w){var v=this.domNode.textContent;this.cachedText!==v&&((v.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=w(v),this.domNode.normalize(),this.attach()),this.cachedText=v)}}]),g}(l(h(13)).default);c.className="ql-syntax";var t=new m.default.Attributor.Class("token","hljs",{scope:m.default.Scope.INLINE}),f=function(E){function g(O,w){a(this,g);var v=i(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,O,w));if("function"!=typeof v.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var d=null;return v.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(d),d=setTimeout(function(){v.highlight(),d=null},v.options.interval)}),v.highlight(),v}return r(g,E),S(g,null,[{key:"register",value:function(){u.default.register(t,!0),u.default.register(c,!0)}}]),S(g,[{key:"highlight",value:function(){var w=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var v=this.quill.getSelection();this.quill.scroll.descendants(c).forEach(function(d){d.highlight(w.options.highlight)}),this.quill.update(u.default.sources.SILENT),null!=v&&this.quill.setSelection(v,u.default.sources.SILENT)}}}]),g}(e.default);f.DEFAULTS={highlight:null==window.hljs?null:function(E){return window.hljs.highlightAuto(E).value},interval:1e3},b.CodeBlock=c,b.CodeToken=t,b.default=f},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(D,b){D.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
1 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(D,b){D.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(D,b){D.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(D,b){D.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(D,b){D.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(D,b,h){"use strict";
1Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.BubbleTooltip=void 0;var S=function g(O,w,v){null===O&&(O=Function.prototype);var d=Object.getOwnPropertyDescriptor(O,w);if(void 0===d){var p=Object.getPrototypeOf(O);return null===p?void 0:g(p,w,v)}if("value"in d)return d.value;var k=d.get;return void 0===k?void 0:k.call(v)},T=function(){function g(O,w){for(var v=0;v<w.length;v++){var d=w[v];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(O,d.key,d)}}return function(O,w,v){return w&&g(O.prototype,w),v&&g(O,v),O}}(),m=a(h(3)),u=a(h(8)),o=h(43),e=a(o),n=h(15),l=a(h(41));function a(g){return g&&g.__esModule?g:{default:g}}function i(g,O){if(!(g instanceof O))throw new TypeError("Cannot call a class as a function")}function r(g,O){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?g:O}function c(g,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);g.prototype=Object.create(O&&O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(g,O):g.__proto__=O)}var t=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],f=function(g){function O(w,v){i(this,O),null!=v.modules.toolbar&&null==v.modules.toolbar.container&&(v.modules.toolbar.container=t);var d=r(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,w,v));return d.quill.container.classList.add("ql-bubble"),d}return c(O,g),T(O,[{key:"extendToolbar",value:function(v){this.tooltip=new E(this.quill,this.options.bounds),this.tooltip.root.appendChild(v.container),this.buildButtons([].slice.call(v.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(v.container.querySelectorAll("select")),l.default)}}]),O}(e.default);f.DEFAULTS=(0,m.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var E=function(g){function O(w,v){i(this,O);var d=r(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,w,v));return d.quill.on(u.default.events.EDITOR_CHANGE,function(p,k,N,L){if(p===u.default.events.SELECTION_CHANGE)if(null!=k&&k.length>0&&L===u.default.sources.USER){d.show(),d.root.style.left="0px",d.root.style.width="",d.root.style.width=d.root.offsetWidth+"px";var B=d.quill.getLines(k.index,k.length);if(1===B.length)d.position(d.quill.getBounds(k));else{var C=B[B.length-1],V=d.quill.getIndex(C),I=Math.min(C.length()-1,k.index+k.length-V),R=d.quill.getBounds(new n.Range(V,I));d.position(R)}}else document.activeElement!==d.textbox&&d.quill.hasFocus()&&d.hide()}),d}return c(O,g),T(O,[{key:"listen",value:function(){var v=this;S(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){v.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!v.root.classList.contains("ql-hidden")){var d=v.quill.getSelection();null!=d&&v.position(v.quill.getBounds(d))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(v){var d=S(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,v),p=this.root.querySelector(".ql-tooltip-arrow");if(p.style.marginLeft="",0===d)return d;p.style.marginLeft=-1*d-p.offsetWidth/2+"px"}}]),O}(o.BaseTooltip);E.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),b.BubbleTooltip=E,b.default=f},function(D,b,h){D.exports=h(63)}]).default},5121:(ct,D,b)=>{"use strict";b.d(D,{ML:()=>a,Z_:()=>i});var h=b(8274),S=b(6895),T=b(805),_=b(9592),m=b(4006),y=b(9971);function u(r,c){1&r&&h.GkF(0)}function o(r,c){if(1&r&&(h.TgZ(0,"div",3),h.Hsn(1),h.YNc(2,u,1,0,"ng-container",4),h.qZA()),2&r){const t=h.oxw();h.xp6(2),h.Q6J("ngTemplateOutlet",t.headerTemplate)}}function e(r,c){1&r&&(h.TgZ(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),h._uU(4,"Heading"),h.qZA(),h.TgZ(5,"option",8),h._uU(6,"Subheading"),h.qZA(),h.TgZ(7,"option",9),h._uU(8,"Normal"),h.qZA()(),h.TgZ(9,"select",10)(10,"option",9),h._uU(11,"Sans Serif"),h.qZA(),h.TgZ(12,"option",11),h._uU(13,"Serif"),h.qZA(),h.TgZ(14,"option",12),h._uU(15,"Monospace"),h.qZA()()(),h.TgZ(16,"span",5),h._UZ(17,"button",13)(18,"button",14)(19,"button",15),h.qZA(),h.TgZ(20,"span",5),h._UZ(21,"select",16)(22,"select",17),h.qZA(),h.TgZ(23,"span",5),h._UZ(24,"button",18)(25,"button",19),h.TgZ(26,"select",20),h._UZ(27,"option",9),h.TgZ(28,"option",21),h._uU(29,"center"),h.qZA(),h.TgZ(30,"option",22),h._uU(31,"right"),h.qZA(),h.TgZ(32,"option",23),h._uU(33,"justify"),h.qZA()()(),h.TgZ(34,"span",5),h._UZ(35,"button",24)(36,"button",25)(37,"button",26),h.qZA(),h.TgZ(38,"span",5),h._UZ(39,"button",27),h.qZA()())}
1const n=[[["p-header"]]],s=["p-header"],l={provide:m.JU,useExisting:(0,h.Gpc)(()=>a),multi:!0};let a=(()=>{class r{constructor(t){this.el=t,this.onTextChange=new h.vpe,this.onSelectionChange=new h.vpe,this.onInit=new h.vpe,this.delayedCommand=null,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.quillElements=null}get isAttachedQuillEditorToDOM(){return this.quillElements?.editorElement?.isConnected}ngAfterViewInit(){this.initQuillElements(),this.isAttachedQuillEditorToDOM&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.isAttachedQuillEditorToDOM&&this.initQuillEditor(),this.delayedCommand&&this.isAttachedQuillEditorToDOM&&(this.delayedCommand(),this.delayedCommand=null)}ngAfterContentInit(){this.templates.forEach(t=>{"header"===t.getType()&&(this.headerTemplate=t.template)})}writeValue(t){if(this.value=t,this.quill)if(t){const f=()=>{this.quill.setContents(this.quill.clipboard.convert(this.value))};this.isAttachedQuillEditorToDOM?f():this.delayedCommand=f}else{const f=()=>{this.quill.setText("")};this.isAttachedQuillEditorToDOM?f():this.delayedCommand=f}}registerOnChange(t){this.onModelChange=t}registerOnTouched(t){this.onModelTouched=t}getQuill(){return this.quill}get readonly(){return this._readonly}set readonly(t){this._readonly=t,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}initQuillEditor(){this.initQuillElements();const{toolbarElement:t,editorElement:f}=this.quillElements;let E={toolbar:t},g=this.modules?{...E,...this.modules}:E;this.quill=new y(f,{modules:g,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(O,w,v)=>{if("user"===v){let d=_.p.findSingle(f,".ql-editor").innerHTML,p=this.quill.getText().trim();"<p><br></p>"===d&&(d=null),this.onTextChange.emit({htmlValue:d,textValue:p,delta:O,source:v}),this.onModelChange(d),this.onModelTouched()}}),this.quill.on("selection-change",(O,w,v)=>{this.onSelectionChange.emit({range:O,oldRange:w,source:v})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:_.p.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:_.p.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}}return r.\u0275fac=function(t){return new(t||r)(h.Y36(h.SBq))},r.\u0275cmp=h.Xpm({type:r,selectors:[["p-editor"]],contentQueries:function(t,f,E){if(1&t&&(h.Suo(E,T.h4,5),h.Suo(E,T.jx,4)),2&t){let g;h.iGM(g=h.CRH())&&(f.toolbar=g.first),h.iGM(g=h.CRH())&&(f.templates=g)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onTextChange:"onTextChange",onSelectionChange:"onSelectionChange",onInit:"onInit"},features:[h._Bn([l])],ngContentSelectors:s,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(t,f){1&t&&(h.F$t(n),h.TgZ(0,"div",0),h.YNc(1,o,3,1,"div",1),h.YNc(2,e,40,0,"div",1),h._UZ(3,"div",2),h.qZA()),2&t&&(h.Tol(f.styleClass),h.Q6J("ngClass","p-editor-container"),h.xp6(1),h.Q6J("ngIf",f.toolbar||f.headerTemplate),h.xp6(1),h.Q6J("ngIf",!f.toolbar&&!f.headerTemplate),h.xp6(1),h.Q6J("ngStyle",f.style))},dependencies:[S.mk,S.O5,S.tP,S.PC],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0}),r})(),i=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=h.oAB({type:r}),r.\u0275inj=h.cJS({imports:[S.ez,T.m8]}),r})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.