PageSourceSearch

https://abcard.io/assets/index-76mnAOYM.js

js abcard.io collected 2026-10-06 18:58:35 UTC 274,005 bytes, 54 lines download raw bytes

1import{a as Ht,P as yr,T as Ce,C as Et,d as bt,z as Xn,g as gr,c as mr}from"./index-CCtncUPz.js";import{B as je,e as Ye,g as he,j as Fe,p as Mt,n as br,c as _t,i as mt,F as ur,D as ye,k as Se,t as Ot,r as _e,R as Ie,d as _r,h as Or,o as ln,a as Er,w as Ft,A as Zn,ai as wr,x as we,a6 as Ar,O as Tr}from"./vendor-vue-CWMYJQp1.js";import{F as kr}from"./FiltersUtils-CoqARkI4.js";import{N as Wn,M as Nr}from"./ModalNewsViewer-CjXqo9-x.js";import{C as sr}from"./CustomSelect-BVSVwImb.js";import{U as Sr}from"./UniversalTable-DUKMrEzJ.js";import{I as xr}from"./IconPlus-DS0UgZN4.js";import{M as Pr}from"./ModalConfirmAction-w_SojJoE.js";import{u as Lr,r as on}from"./index.esm-D_hLVnX1.js";import{f as qr}from"./vendor-charts-C7GLEJbE.js";import{c as Rr}from"./cloneDeep-CLIfd78A.js";import{I as fr}from"./InputWrapper-Czi17J3J.js";import{_ as Yn,g as cr,c as Je}from"./index-2vIWNS4O.js";import{T as Ir}from"./TextInput-8IZhHVlz.js";import{B as jr}from"./BaseModal-D5sD3B5i.js";import{D as hr}from"./DateTimePicker-BVLsxaUj.js";import{P as Mr}from"./PageWrapper-TDaCXdvA.js";import{D as Dr}from"./DateUtils-CHVx5FgY.js";import{u as Br}from"./useAuthImg-DqP9CwVU.js";import{C as $n}from"./CashInfoGroup-Dx3OGNs-.js";import{S as Cr}from"./StatusIndicator-BvfiCrWR.js";import"./IconChevron-CU0SVSE4.js";import"./useAnchoredPosition-CN9w8N4O.js";import"./useDownloadActions-DYdtgLI6.js";import"./IconDownload-eAXzYhbG.js";import"./TablePaginationSkeleton-DFMAysnx.js";import"./Tooltip-BChViCs8.js";import"./IconInformer-B-W3XAPJ.js";import"./IconTableSortAscDescArrow-COm3BTbo.js";import"./Checkbox-D37DAujs.js";import"./RadioButton-D2rXYpCN.js";import"./TableControls-B5cskjh-.js";import"./debounce-BA9f0Jbd.js";import"./client-detail.admin.service-sYCt65X8.js";import"./short-user.model-h4J_ma3V.js";import"./income-fee-history-record-user.model-Yic_eOZX.js";import"./bank.client.service-BM1FSnfZ.js";import"./account-status.model-DJnb1vPd.js";import"./account-short.model-BdaZcoZe.js";import"./transaction-type.model-B4ZbJOI-.js";import"./enums.service-DBABrS_p.js";import"./CashValue-BPEf12tP.js";import"./IconWarning-b4chff4t.js";import"./Modal-BlhCWSmJ.js";import"./focus-trap-vue.esm-browser-DaUVyDIE.js";import"./useDropdown-6vDZytm7.js";import"./fetchAuthImage-D5BMpm1t.js";async function Fr(){return Ht.get("backoffice/news/rubrics").then($=>$.data.data)}async function Ur($){const ne=new FormData;return ne.append("image",$.image),ne.append("content",$.content),ne.append("rubricId",$.rubricId),ne.append("title",$.title),$.publishDate&&ne.append("publishDate",$.publishDate),Ht.post("backoffice/news/create",ne,{headers:{"Content-Type":"multipart/form-data"}})}async function Hr($,ne){const M=new FormData;return M.append("content",$.content),M.append("rubricId",$.rubricId),M.append("title",$.title),$.publishDate&&M.append("publishDate",$.publishDate),$.image&&M.append("image",$.image),Ht.post(`backoffice/news/${ne}/edit`,M,{headers:{"Content-Type":"multipart/form-data"}})}async function zr($){return Ht.get("backoffice/news/list",{params:$}).then(ne=>new yr(ne.data.data[0],Wn))}async function Vr($){return Ht.delete(`backoffice/news/${$}`)}const Kr={class:"image_input_area-label"},$r=["src"],Gr={class:"image_input_area-wrapper"},Zr=["accept"],Wr={__name:"ImageInputArea",props:{inputId:{type:String,default:Math.random().toString()},modelValue:{type:File,default:null},accept:{type:String,default:"image"},v:{type:Object},label:String,noLabel:{type:Boolean,default:!0},preview:String},emits:["update:modelValue"],setup($,{emit:ne}){const M=ne,O=$,p=_e(!1),P=_e(null),S=_e(null),k=Ie(()=>O.accept.replaceAll(".","")),g=Ie(()=>O.modelValue!==null),v=Ie(()=>O.modelValue?URL.createObjectURL(O.modelValue):O.preview?O.preview:null);function f(s){const o=s.target.files[0];o&&M("update:modelValue",o)}function i(s){const o=s.dataTransfer.files[0];o&&u(o)&&M("update:modelValue",o),p.value=!1}function e(){P.value.click()}function t(){p.value=!0}function h(s){S.value.contains(s.relatedTarget)||(p.value=!1)}function u(s){return O.accept.split(",").some(o=>s.type.match(o.trim()))}return(s,o)=>{var a,r,n;return je(),Ye(fr,{error:(n=(r=(a=$.v)==null?void 0:a.$errors)==null?void 0:r[0])==null?void 0:n.$message,"input-id":$.inputId,label:$.label,"no-label":$.noLabel},{afterLabel:he(()=>[Fe("div",Kr,[ye(Ce,{type:"table-text",soft:""},{default:he(()=>[Se(Ot(k.value),1)]),_:1}),ye(Ce,{type:"table-text",soft:""},{default:he(()=>[...o[1]||(o[1]=[Se("max size: 2 MB",-1)])]),_:1})])]),default:he(()=>
1[Fe("div",{ref_key:"content",ref:S,class:br(["image_input_area",{hover:p.value}]),onDragenter:Mt(t,["prevent"]),onDragleave:Mt(h,["prevent"]),onDragover:o[0]||(o[0]=Mt(()=>{},["prevent"])),onDrop:Mt(i,["prevent"])},[v.value?(je(),_t("img",{key:0,alt:"uploaded image",class:"image_input_area-image",src:v.value},null,8,$r)):mt("",!0),Fe("div",Gr,[Fe("input",{ref_key:"fileInput",ref:P,class:"hidden",type:"file",accept:$.accept,onChange:f},null,40,Zr),Fe("div",{class:"image_input_area-content",onDragenter:Mt(t,["prevent"])},[g.value?(je(),Ye(Et,{key:1,class:"image_input_area-info__btn","large-padding":"",onClick:e},{default:he(()=>[...o[5]||(o[5]=[Se(" Replace image ",-1)])]),_:1})):(je(),_t(ur,{key:0},[ye(Ce,{class:"image_input_area-content__desc"},{default:he(()=>[...o[2]||(o[2]=[Se("Drag image here",-1)])]),_:1}),ye(Ce,{class:"image_input_area-content__desc"},{default:he(()=>[...o[3]||(o[3]=[Se("or",-1)])]),_:1}),ye(Et,{class:"image_input_area-content__btn","large-padding":"",onClick:e},{default:he(()=>[...o[4]||(o[4]=[Se(" Browse ",-1)])]),_:1})],64))],32)])],34)]),_:1},8,["error","input-id","label","no-label"])}}},Yr=Yn(Wr,[["__scopeId","data-v-715c2106"]]);var an={exports:{}};/*!
2 * Quill Editor v1.3.7
3 * https://quilljs.com/
4 * Copyright (c) 2014, Jason Chen
5 * Copyright (c) 2013, salesforce.com
6 */var Qr=an.exports,Jn;function Xr(){return Jn||(Jn=1,(function($,ne){(function(O,p){$.exports=p()})(typeof self<"u"?self:Qr,function(){return(function(M){var O={};function p(P){if(O[P])return O[P].exports;var S=O[P]={i:P,l:!1,exports:{}};return M[P].call(S.exports,S,S.exports,p),S.l=!0,S.exports}return p.m=M,p.c=O,p.d=function(P,S,k){p.o(P,S)||Object.defineProperty(P,S,{configurable:!1,enumerable:!0,get:k})},p.n=function(P){var S=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(S,"a",S),S},p.o=function(P,S){return Object.prototype.hasOwnProperty.call(P,S)},p.p="",p(p.s=109)}
vendor: 14,681 bytes, lines 6-10
6)([(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(17),S=p(18),k=p(19),g=p(45),v=p(46),f=p(47),i=p(48),e=p(49),t=p(12),h=p(32),u=p(33),s=p(31),o=p(1),a={Scope:o.Scope,create:o.create,find:o.find,query:o.query,register:o.register,Container:P.default,Format:S.default,Leaf:k.default,Embed:i.default,Scroll:g.default,Block:f.default,Inline:v.default,Text:e.default,Attributor:{Attribute:t.default,Class:h.default,Style:u.default,Store:s.default}};O.default=a}),(function(M,O,p){var P=this&&this.__extends||(function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var r in a)a.hasOwnProperty(r)&&(o[r]=a[r])};return function(o,a){s(o,a);function r(){this.constructor=o}o.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=(function(s){P(o,s);function o(a){var r=this;return a="[Parchment] "+a,r=s.call(this,a)||this,r.message=a,r.name=r.constructor.name,r}return o})(Error);O.ParchmentError=S;var k={},g={},v={},f={};O.DATA_KEY="__blot";var i;(function(s){s[s.TYPE=3]="TYPE",s[s.LEVEL=12]="LEVEL",s[s.ATTRIBUTE=13]="ATTRIBUTE",s[s.BLOT=14]="BLOT",s[s.INLINE=7]="INLINE",s[s.BLOCK=11]="BLOCK",s[s.BLOCK_BLOT=10]="BLOCK_BLOT",s[s.INLINE_BLOT=6]="INLINE_BLOT",s[s.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",s[s.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",s[s.ANY=15]="ANY"})(i=O.Scope||(O.Scope={}));function e(s,o){var a=h(s);if(a==null)throw new S("Unable to create "+s+" blot");var r=a,n=s instanceof Node||s.nodeType===Node.TEXT_NODE?s:r.create(o);return new r(n,o)}O.create=e;function t(s,o){return o===void 0&&(o=!1),s==null?null:s[O.DATA_KEY]!=null?s[O.DATA_KEY].blot:o?t(s.parentNode,o):null}O.find=t;function h(s,o){o===void 0&&(o=i.ANY);var a;if(typeof s=="string")a=f[s]||k[s];else if(s instanceof Text||s.nodeType===Node.TEXT_NODE)a=f.text;else if(typeof s=="number")s&i.LEVEL&i.BLOCK?a=f.block:s&i.LEVEL&i.INLINE&&(a=f.inline);else if(s instanceof HTMLElement){var r=(s.getAttribute("class")||"").split(/\s+/);for(var n in r)if(a=g[r[n]],a)break;a=a||v[s.tagName]}return a==null?null:o&i.LEVEL&a.scope&&o&i.TYPE&a.scope?a:null}O.query=h;function u(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];if(s.length>1)return s.map(function(n){return u(n)});var a=s[0];if(typeof a.blotName!="string"&&typeof a.attrName!="string")throw new S("Invalid definition");if(a.blotName==="abstract")throw new S("Cannot register abstract class");if(f[a.blotName||a.attrName]=a,typeof a.keyName=="string")k[a.keyName]=a;else if(a.className!=null&&(g[a.className]=a),a.tagName!=null){Array.isArray(a.tagName)?a.tagName=a.tagName.map(function(n){return n.toUpperCase()}):a.tagName=a.tagName.toUpperCase();var r=Array.isArray(a.tagName)?a.tagName:[a.tagName];r.forEach(function(n){(v[n]==null||a.className==null)&&(v[n]=a)})}return a}O.register=u}),(function(M,O,p){var P=p(51),S=p(11),k=p(3),g=p(20),v="\0",f=function(i){Array.isArray(i)?this.ops=i:i!=null&&Array.isArray(i.ops)?this.ops=i.ops:this.ops=[]};f.prototype.insert=function(i,e){var t={};return i.length===0?this:(t.insert=i,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},f.prototype.delete=function(i){return i<=0?this:this.push({delete:i})},f.prototype.retain=function(i,e){if(i<=0)return this;var t={retain:i};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},f.prototype.push=function(i){var e=this.ops.length,t=this.ops[e-1];if(i=k(!0,{},i),typeof t=="object"){if(typeof i.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+i.delete},this;if(typeof t.delete=="number"&&i.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(i),this;if(S(i.attributes,t.attributes)){if(typeof i.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+i.insert},typeof i.attributes=="object"&&(this.ops[e-1].attributes=i.attributes),this;if(typeof i.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+i.retain},typeof i.attributes=="object"&&(this.ops[e-1].attributes=i.attributes),this}}return e===this.ops.length?this.ops.push(i):this.ops.splice(e,0,i),this},f.prototype.chop=function(){var i=this.ops[this.ops.length-1];return i&&i.retain&&!i.attributes&&this.ops.pop(),this},f.prototype.filter=function(i){return this.ops.filter(i)},f.prototype.forEach=function(i){this.ops.forEach(i)},f.prototype.map=function(i){return this.ops.map(i)},f.prototype.partition=function(i){var e=[],t=[];return this.forEach(function(h){var u=i(h)?e:t;u.push(h)}),[e,t]},f.prototype.reduce=function(i,e){return this.ops.reduce(i,e)},f.prototype.changeLength=function(){return this.reduce(function(i,e){return e.insert?i+g.length(e):e.delete?i-e.delete:i},0)},f.prototype.length=function(){return this.reduce(function(i,e){return i+g.length(e)},0)},f.prototype.slice=function(i,e){i=i||0,typeof e!="number"&&(e=1/0);for(var t=[],h=g.iterator(this.ops),u=0;u<e&&h.hasNext();){var s;u<i?s=h.next(i-u):(s=h.next(e-u),t.push(s)),u+=g.length(s)}return new f(t)},f.prototype.compose=function(i){var e=g.iterator(this.ops),t=g.iterator(i.ops),h=[],u=t.peek();if(u!=null&&typeof u.retain=="number"&&u.attributes==null){for(var s=u.retain;e.peekType()==="insert"&&e.peekLength()<=s;)s-=e.peekLength(),h.push(e.next());u.retain-s>0&&t.next(u.retain-s)}for(var o=new f(h);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")o.push(t.next());else if(e.peekType()==="delete")o.push(e.next());else{var a=Math.min(e.peekLength(),t.peekLength()),r=e.next(a),n=t.next(a);if(typeof n.retain=="number"){var l={};typeof r.retain=="number"?l.retain=a:l.insert=r.insert;var w=g.attributes.compose(r.attributes,n.attributes,typeof r.retain=="number");if(w&&(l.attributes=w),o.push(l),!t.hasNext()&&S(o.ops[o.ops.length-1],l)){var m=new f(e.rest());return o.concat(m).chop()}}else typeof n.delete=="number"&&typeof r.retain=="number"&&o.push(n)}return o.chop()},f.prototype.concat=function(i){var e=new f(this.ops.slice());return i.ops.length>0&&(e.push(i.ops[0]),e.ops=e.ops.concat(i.ops.slice(1))),e},f.prototype.diff=function(i,e){if(this.ops===i.ops)return new f;var t=[this,i].map(function(a){return a.map(function(r){if(r.insert!=null)return typeof r.insert=="string"?r.insert:v;var n=a===i?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),h=new f,u=P(t[0],t[1],e),s=g.iterator(this.ops),o=g.iterator(i.ops);return u.forEach(function(a){for(var r=a[1].length;r>0;){var n=0;switch(a[0]){case P.INSERT:n=Math.min(o.peekLength(),r),h.push(o.next(n));break;case P.DELETE:n=Math.min(r,s.peekLength()),s.next(n),h.delete(n);break;case P.EQUAL:n=Math.min(s.peekLength(),o.peekLength(),r);var l=s.next(n),w=o.next(n);S(l.insert,w.insert)?h.retain(n,g.attributes.diff(l.attributes,w.attributes)):h.push(w).delete(n);break}r-=n}}),h.chop()},f.prototype.eachLine=function(i,e){e=e||`
7`;for(var t=g.iterator(this.ops),h=new f,u=0;t.hasNext();){if(t.peekType()!=="insert")return;var s=t.peek(),o=g.length(s)-t.peekLength(),a=typeof s.insert=="string"?s.insert.indexOf(e,o)-o:-1;if(a<0)h.push(t.next());else if(a>0)h.push(t.next(a));else{if(i(h,t.next(1).attributes||{},u)===!1)return;u+=1,h=new f}}h.length()>0&&i(h,{},u)},f.prototype.transform=function(i,e){if(e=!!e,typeof i=="number")return this.transformPosition(i,e);for(var t=g.iterator(this.ops),h=g.iterator(i.ops),u=new f;t.hasNext()||h.hasNext();)if(t.peekType()==="insert"&&(e||h.peekType()!=="insert"))u.retain(g.length(t.next()));else if(h.peekType()==="insert")u.push(h.next());else{var s=Math.min(t.peekLength(),h.peekLength()),o=t.next(s),a=h.next(s);if(o.delete)continue;a.delete?u.push(a):u.retain(s,g.attributes.transform(o.attributes,a.attributes,e))}return u.chop()},f.prototype.transformPosition=function(i,e){e=!!e;for(var t=g.iterator(this.ops),h=0;t.hasNext()&&h<=i;){var u=t.peekLength(),s=t.peekType();if(t.next(),s==="delete"){i-=Math.min(u,i-h);continue}else s==="insert"&&(h<i||!e)&&(i+=u);h+=u}return i},M.exports=f}),(function(M,O){var p=Object.prototype.hasOwnProperty,P=Object.prototype.toString,S=Object.defineProperty,k=Object.getOwnPropertyDescriptor,g=function(t){return typeof Array.isArray=="function"?Array.isArray(t):P.call(t)==="[object Array]"},v=function(t){if(!t||P.call(t)!=="[object Object]")return!1;var h=p.call(t,"constructor"),u=t.constructor&&t.constructor.prototype&&p.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!h&&!u)return!1;var s;for(s in t);return typeof s>"u"||p.call(t,s)},f=function(t,h){S&&h.name==="__proto__"?S(t,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):t[h.name]=h.newValue},i=function(t,h){if(h==="__proto__")if(p.call(t,h)){if(k)return k(t,h).value}else return;return t[h]};M.exports=function e(){var t,h,u,s,o,a,r=arguments[0],n=1,l=arguments.length,w=!1;for(typeof r=="boolean"&&(w=r,r=arguments[1]||{},n=2),(r==null||typeof r!="object"&&typeof r!="function")&&(r={});n<l;++n)if(t=arguments[n],t!=null)for(h in t)u=i(r,h),s=i(t,h),r!==s&&(w&&s&&(v(s)||(o=g(s)))?(o?(o=!1,a=u&&g(u)?u:[]):a=u&&v(u)?u:{},f(r,{name:h,newValue:e(w,a,s)})):typeof s<"u"&&f(r,{name:h,newValue:s}));return r}}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=(function(){function d(y,E){for(var N=0;N<E.length;N++){var I=E[N];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(y,I.key,I)}}return function(y,E,N){return E&&d(y.prototype,E),N&&d(y,N),y}})(),S=function d(y,E,N){y===null&&(y=Function.prototype);var I=Object.getOwnPropertyDescriptor(y,E);if(I===void 0){var U=Object.getPrototypeOf(y);return U===null?void 0:d(U,E,N)}else{if("value"in I)return I.value;var z=I.get;return z===void 0?void 0:z.call(N)}},k=p(3),g=r(k),v=p(2),f=r(v),i=p(0),e=r(i),t=p(16),h=r(t),u=p(6),s=r(u),o=p(7),a=r(o);function r(d){return d&&d.__esModule?d:{default:d}}function n(d,y){if(!(d instanceof y))throw new TypeError("Cannot call a class as a function")}function l(d,y){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:d}function w(d,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);d.prototype=Object.create(y&&y.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(d,y):d.__proto__=y)}var m=1,b=(function(d){w(y,d);function y(){return n(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return P(y,[{key:"attach",value:function(){S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(N,I){var U=e.default.query(N,e.default.Scope.BLOCK_ATTRIBUTE);U!=null&&this.attributes.attribute(U,I)}},{key:"formatAt",value:function(N,I,U,z){this.format(U,z)}},{key:"insertAt",value:function(N,I,U){if(typeof I=="string"&&I.endsWith(`
8`)){var z=e.default.create(A.blotName);this.parent.insertBefore(z,N===0?this:this.next),z.insertAt(0,I.slice(0,-1))}else S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,N,I,U)}}]),y})(e.default.Embed);b.scope=e.default.Scope.BLOCK_BLOT;var A=(function(d){w(y,d);function y(E){n(this,y);var N=l(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,E));return N.cache={},N}return P(y,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(N,I){return I.length()===0?N:N.insert(I.value(),_(I))},new f.default).insert(`
9`,_(this))),this.cache.delta}},{key:"deleteAt",value:function(N,I){S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"deleteAt",this).call(this,N,I),this.cache={}}},{key:"formatAt",value:function(N,I,U,z){I<=0||(e.default.query(U,e.default.Scope.BLOCK)?N+I===this.length()&&this.format(U,z):S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,N,Math.min(I,this.length()-N-1),U,z),this.cache={})}},{key:"insertAt",value:function(N,I,U){if(U!=null)return S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,N,I,U);if(I.length!==0){var z=I.split(`
10`),W=z.shift();W.length>0&&(N<this.length()-1||this.children.tail==null?S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,Math.min(N,this.length()-1),W):this.children.tail.insertAt(this.children.tail.length(),W),this.cache={});var F=this;z.reduce(function(q,T){return F=F.split(q,!0),F.insertAt(0,T),T.length},N+W.length)}}},{key:"insertBefore",value:function(N,I){var U=this.children.head;S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,N,I),U instanceof h.default&&U.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"length",this).call(this)+m),this.cache.length}},{key:"moveChildren",value:function(N,I){S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"moveChildren",this).call(this,N,I),this.cache={}}},{key:"optimize",value:function(N){S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,N),this.cache={}}},{key:"path",value:function(N){return S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"path",this).call(this,N,!0)}},{key:"removeChild",value:function(N){S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"removeChild",this).call(this,N),this.cache={}}},{key:"split",value:function(N){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I&&(N===0||N>=this.length()-m)){var U=this.clone();return N===0?(this.parent.insertBefore(U,this),this):(this.parent.insertBefore(U,this.next),U)}else{var z=S(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"split",this).call(this,N,I);return this.cache={},z}}}]),y})(e.default.Block);A.blotName="block",A.tagName="P",A.defaultChild="break",A.allowedChildren=[s.default,e.default.Embed,a.default];function _(d){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return d==null||(typeof d.formats=="function"&&(y=(0,g.default)(y,d.formats())),d.parent==null||d.parent.blotName=="scroll"||d.parent.statics.scope!==d.statics.scope)?y:_(d.parent,y)}O.bubbleFormats=_,O.BlockEmbed=b,O.default=A}
10),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},S=(function(){function F(q,T){var R=[],j=!0,H=!1,D=void 0;try{for(var L=q[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(R.push(C.value),!(T&&R.length===T));j=!0);}catch(V){H=!0,D=V}finally{try{!j&&L.return&&L.return()}finally{if(H)throw D}}return R}return function(q,T){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return F(q,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function F(q,T){for(var R=0;R<T.length;R++){var j=T[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(q,j.key,j)}}return function(q,T,R){return T&&F(q.prototype,T),R&&F(q,R),q}})();p(50);var g=p(2),v=_(g),f=p(14),i=_(f),e=p(8),t=_(e),h=p(9),u=_(h),s=p(0),o=_(s),a=p(15),r=_(a),n=p(3),l=_(n),w=p(10),m=_(w),b=p(34),A=_(b);function _(F){return F&&F.__esModule?F:{default:F}}function d(F,q,T){return q in F?Object.defineProperty(F,q,{value:T,enumerable:!0,configurable:!0,writable:!0}):F[q]=T,F}function y(F,q){if(!(F instanceof q))throw new TypeError("Cannot call a class as a function")}var E=(0,m.default)("quill"),N=(function(){k(F,null,[{key:"debug",value:function(T){T===!0&&(T="log"),m.default.level(T)}},{key:"find",value:function(T){return T.__quill||o.default.find(T)}},{key:"import",value:function(T){return this.imports[T]==null&&E.error("Cannot import "+T+". Are you sure it was registered?"),this.imports[T]}},{key:"register",value:function(T,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof T!="string"){var D=T.attrName||T.blotName;
vendor: 10,666 bytes, lines 10-11
10typeof D=="string"?this.register("formats/"+D,T,R):Object.keys(T).forEach(function(L){j.register(L,T[L],R)})}else this.imports[T]!=null&&!H&&E.warn("Overwriting "+T+" with",R),this.imports[T]=R,(T.startsWith("blots/")||T.startsWith("formats/"))&&R.blotName!=="abstract"?o.default.register(R):T.startsWith("modules")&&typeof R.register=="function"&&R.register()}}]);function F(q){var T=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(y(this,F),this.options=I(q,R),this.container=this.options.container,this.container==null)return E.error("Invalid Quill container",q);this.options.debug&&F.debug(this.options.debug);var j=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=o.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new i.default(this.scroll),this.selection=new r.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(D){D===t.default.events.TEXT_CHANGE&&T.root.classList.toggle("ql-blank",T.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(D,L){var C=T.selection.lastRange,V=C&&C.length===0?C.index:void 0;U.call(T,function(){return T.editor.update(null,L,V)},D)});var H=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(H),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return k(F,[{key:"addContainer",value:function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof T=="string"){var j=T;T=document.createElement("div"),T.classList.add(j)}return this.container.insertBefore(T,R),T}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(T,R,j){var H=this,D=z(T,R,j),L=S(D,4);return T=L[0],R=L[1],j=L[3],U.call(this,function(){return H.editor.deleteText(T,R)},j,T,-1*R)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(T),this.container.classList.toggle("ql-disabled",!T)}},{key:"focus",value:function(){var T=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=T,this.scrollIntoView()}},{key:"format",value:function(T,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return U.call(this,function(){var D=j.getSelection(!0),L=new v.default;if(D==null)return L;if(o.default.query(T,o.default.Scope.BLOCK))L=j.editor.formatLine(D.index,D.length,d({},T,R));else{if(D.length===0)return j.selection.format(T,R),L;L=j.editor.formatText(D.index,D.length,d({},T,R))}return j.setSelection(D,t.default.sources.SILENT),L},H)}},{key:"formatLine",value:function(T,R,j,H,D){var L=this,C=void 0,V=z(T,R,j,H,D),K=S(V,4);return T=K[0],R=K[1],C=K[2],D=K[3],U.call(this,function(){return L.editor.formatLine(T,R,C)},D,T,0)}},{key:"formatText",value:function(T,R,j,H,D){var L=this,C=void 0,V=z(T,R,j,H,D),K=S(V,4);return T=K[0],R=K[1],C=K[2],D=K[3],U.call(this,function(){return L.editor.formatText(T,R,C)},D,T,0)}},{key:"getBounds",value:function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof T=="number"?j=this.selection.getBounds(T,R):j=this.selection.getBounds(T.index,T.length);var H=this.container.getBoundingClientRect();return{bottom:j.bottom-H.top,height:j.height,left:j.left-H.left,right:j.right-H.left,top:j.top-H.top,width:j.width}}},{key:"getContents",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,j=z(T,R),H=S(j,2);return T=H[0],R=H[1],this.editor.getContents(T,R)}},{key:"getFormat",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof T=="number"?this.editor.getFormat(T,R):this.editor.getFormat(T.index,T.length)}},{key:"getIndex",value:function(T){return T.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(T){return this.scroll.leaf(T)}},{key:"getLine",value:function(T){return this.scroll.line(T)}},{key:"getLines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof T!="number"?this.scroll.lines(T.index,T.length):this.scroll.lines(T,R)}},{key:"getModule",value:function(T){return this.theme.modules[T]}},{key:"getSelection",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return T&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-T,j=z(T,R),H=S(j,2);return T=H[0],R=H[1],this.editor.getText(T,R)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(T,R,j){var H=this,D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:F.sources.API;return U.call(this,function(){return H.editor.insertEmbed(T,R,j)},D,T)}},{key:"insertText",value:function(T,R,j,H,D){var L=this,C=void 0,V=z(T,0,j,H,D),K=S(V,4);return T=K[0],C=K[2],D=K[3],U.call(this,function(){return L.editor.insertText(T,R,C)},D,T,R.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(T,R,j){this.clipboard.dangerouslyPasteHTML(T,R,j)}},{key:"removeFormat",value:function(T,R,j){var H=this,D=z(T,R,j),L=S(D,4);return T=L[0],R=L[1],j=L[3],U.call(this,function(){return H.editor.removeFormat(T,R)},j,T)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(T){var R=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return U.call(this,function(){T=new v.default(T);var H=R.getLength(),D=R.editor.deleteText(0,H),L=R.editor.applyDelta(T),C=L.ops[L.ops.length-1];C!=null&&typeof C.insert=="string"&&C.insert[C.insert.length-1]===`
11`&&(R.editor.deleteText(R.getLength()-1,1),L.delete(1));var V=D.compose(L);return V},j)}},{key:"setSelection",value:function(T,R,j){if(T==null)this.selection.setRange(null,R||F.sources.API);else{var H=z(T,R,j),D=S(H,4);T=D[0],R=D[1],j=D[3],this.selection.setRange(new a.Range(T,R),j),j!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,j=new v.default().insert(T);return this.setContents(j,R)}},{key:"update",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,R=this.scroll.update(T);return this.selection.update(T),R}},{key:"updateContents",value:function(T){var R=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return U.call(this,function(){return T=new v.default(T),R.editor.applyDelta(T,j)},j,!0)}}]),F})();N.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},N.events=t.default.events,N.sources=t.default.sources,N.version="1.3.7",N.imports={delta:v.default,parchment:o.default,"core/module":u.default,"core/theme":A.default};function I(F,q){if(q=(0,l.default)(!0,{container:F,modules:{clipboard:!0,keyboard:!0,history:!0}},q),!q.theme||q.theme===N.DEFAULTS.theme)q.theme=A.default;else if(q.theme=N.import("themes/"+q.theme),q.theme==null)throw new Error("Invalid theme "+q.theme+". Did you register it?");var T=(0,l.default)(!0,{},q.theme.DEFAULTS);[T,q].forEach(function(H){H.modules=H.modules||{},Object.keys(H.modules).forEach(function(D){H.modules[D]===!0&&(H.modules[D]={})})});var R=Object.keys(T.modules).concat(Object.keys(q.modules)),j=R.reduce(function(H,D){var L=N.import("modules/"+D);return L==null?E.error("Cannot load "+D+" module. Are you sure you registered it?"):H[D]=L.DEFAULTS||{},H},{});return q.modules!=null&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=(0,l.default)(!0,{},N.DEFAULTS,{modules:j},T,q),["bounds","container","scrollingContainer"].forEach(function(H){typeof q[H]=="string"&&(q[H]=document.querySelector(q[H]))}),q.modules=Object.keys(q.modules).reduce(function(H,D){return q.modules[D]&&(H[D]=q.modules[D]),H},{}),q}function U(F,q,T,R){if(this.options.strict&&!this.isEnabled()&&q===t.default.sources.USER)return new v.default;var j=T==null?null:this.getSelection(),H=this.editor.delta,D=F();if(j!=null&&(T===!0&&(T=j.index),R==null?j=W(j,D,q):R!==0&&(j=W(j,T,R,q)),this.setSelection(j,t.default.sources.SILENT)),D.length()>0){var L,C=[t.default.events.TEXT_CHANGE,D,H,q];if((L=this.emitter).emit.apply(L,[t.default.events.EDITOR_CHANGE].concat(C)),q!==t.default.sources.SILENT){var V;(V=this.emitter).emit.apply(V,C)}}return D}function z(F,q,T,R,j){var H={};return typeof F.index=="number"&&typeof F.length=="number"?typeof q!="number"?(j=R,R=T,T=q,q=F.length,F=F.index):(q=F.length,F=F.index):typeof q!="number"&&(j=R,R=T,T=q,q=0),(typeof T>"u"?"undefined":P(T))==="object"?(H=T,j=R):typeof T=="string"&&(R!=null?H[T]=R:j=T),j=j||t.default.sources.API,[F,q,H,j]}function W(F,q,T,R){if(F==null)return null;var j=void 0,H=void 0;if(q instanceof v.default){var D=[F.index,F.index+F.length].map(function(K){return q.transformPosition(K,R!==t.default.sources.USER)}),L=S(D,2);j=L[0],H=L[1]}else{var C=[F.index,F.index+F.length].map(function(K){return K<q||K===q&&R===t.default.sources.USER?K:T>=0?K+T:Math.max(q,K+T)}),V=S(C,2);j=V[0],H=V[1]}return new a.Range(j,H-j)}O.expandConfig=I,O.overload=z,O.default=N}
11),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function s(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&s(o.prototype,a),r&&s(o,r),o}})(),S=function s(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:s(l,a,r)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(r)}},k=p(7),g=i(k),v=p(0),f=i(v);function i(s){return s&&s.__esModule?s:{default:s}}function e(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function t(s,o){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:s}function h(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(s,o):s.__proto__=o)}var u=(function(s){h(o,s);function o(){return e(this,o),t(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,[{key:"formatAt",value:function(r,n,l,w){if(o.compare(this.statics.blotName,l)<0&&f.default.query(l,f.default.Scope.BLOT)){var m=this.isolate(r,n);w&&m.wrap(l,w)}else S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"formatAt",this).call(this,r,n,l,w)}},{key:"optimize",value:function(r){if(S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"optimize",this).call(this,r),this.parent instanceof o&&o.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(r,n){var l=o.order.indexOf(r),w=o.order.indexOf(n);return l>=0||w>=0?l-w:r===n?0:r<n?-1:1}}]),o})(f.default.Inline);u.allowedChildren=[u,f.default.Embed,g.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=u}
11),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),S=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){f(t,e);function t(){return g(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t})(S.default.Text);O.default=i}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function a(r,n){for(var l=0;l<n.length;l++){var w=n[l];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(r,w.key,w)}}return function(r,n,l){return n&&a(r.prototype,n),l&&a(r,l),r}})(),S=function a(r,n,l){r===null&&(r=Function.prototype);var w=Object.getOwnPropertyDescriptor(r,n);if(w===void 0){var m=Object.getPrototypeOf(r);return m===null?void 0:a(m,n,l)}else{if("value"in w)return w.value;var b=w.get;return b===void 0?void 0:b.call(l)}},k=p(54),g=i(k),v=p(10),f=i(v);function i(a){return a&&a.__esModule?a:{default:a}}function e(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function h(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var u=(0,f.default)("quill:events"),s=["selectionchange","mousedown","mouseup","click"];s.forEach(function(a){document.addEventListener(a,function(){for(var r=arguments.length,n=Array(r),l=0;l<r;l++)n[l]=arguments[l];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(w){if(w.__quill&&w.__quill.emitter){var m;(m=w.__quill.emitter).handleDOM.apply(m,n)}})})});var o=(function(a){h(r,a);function r(){e(this,r);var n=t(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return n.listeners={},n.on("error",u.error),n}return P(r,[{key:"emit",value:function(){u.log.apply(u,arguments),S(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(l){for(var w=arguments.length,m=Array(w>1?w-1:0),b=1;b<w;b++)m[b-1]=arguments[b];(this.listeners[l.type]||[]).forEach(function(A){var _=A.node,d=A.handler;(l.target===_||_.contains(l.target))&&d.apply(void 0,[l].concat(m))})}},{key:"listenDOM",value:function(l,w,m){this.listeners[l]||(this.listeners[l]=[]),this.listeners[l].push({node:w,handler:m})}}]),r})(g.default);o.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},o.sources={API:"api",SILENT:"silent",USER:"user"},O.default=o}
vendor: 11,490 bytes, lines 11-22
11),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});function P(k,g){if(!(k instanceof g))throw new TypeError("Cannot call a class as a function")}var S=function k(g){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P(this,k),this.quill=g,this.options=v};S.DEFAULTS={},O.default=S}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],S="warn";function k(v){if(P.indexOf(v)<=P.indexOf(S)){for(var f,i=arguments.length,e=Array(i>1?i-1:0),t=1;t<i;t++)e[t-1]=arguments[t];(f=console)[v].apply(f,e)}}function g(v){return P.reduce(function(f,i){return f[i]=k.bind(console,i,v),f},{})}k.level=g.level=function(v){S=v},O.default=g}),(function(M,O,p){var P=Array.prototype.slice,S=p(52),k=p(53),g=M.exports=function(e,t,h){return h||(h={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?h.strict?e===t:e==t:i(e,t,h)};function v(e){return e==null}function f(e){return!(!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number")}function i(e,t,h){var u,s;if(v(e)||v(t)||e.prototype!==t.prototype)return!1;if(k(e))return k(t)?(e=P.call(e),t=P.call(t),g(e,t,h)):!1;if(f(e)){if(!f(t)||e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var o=S(e),a=S(t)}catch{return!1}if(o.length!=a.length)return!1;for(o.sort(),a.sort(),u=o.length-1;u>=0;u--)if(o[u]!=a[u])return!1;for(u=o.length-1;u>=0;u--)if(s=o[u],!g(e[s],t[s],h))return!1;return typeof e==typeof t}}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),S=(function(){function k(g,v,f){f===void 0&&(f={}),this.attrName=g,this.keyName=v;var i=P.Scope.TYPE&P.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&P.Scope.LEVEL|i:this.scope=P.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return k.keys=function(g){return[].map.call(g.attributes,function(v){return v.name})},k.prototype.add=function(g,v){return this.canAdd(g,v)?(g.setAttribute(this.keyName,v),!0):!1},k.prototype.canAdd=function(g,v){var f=P.query(g,P.Scope.BLOT&(this.scope|P.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof v=="string"?this.whitelist.indexOf(v.replace(/["']/g,""))>-1:this.whitelist.indexOf(v)>-1},k.prototype.remove=function(g){g.removeAttribute(this.keyName)},k.prototype.value=function(g){var v=g.getAttribute(this.keyName);return this.canAdd(g,v)&&v?v:""},k})();O.default=S}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=(function(){function b(A,_){var d=[],y=!0,E=!1,N=void 0;try{for(var I=A[Symbol.iterator](),U;!(y=(U=I.next()).done)&&(d.push(U.value),!(_&&d.length===_));y=!0);}catch(z){E=!0,N=z}finally{try{!y&&I.return&&I.return()}finally{if(E)throw N}}return d}return function(A,_){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return b(A,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function b(A,_){for(var d=0;d<_.length;d++){var y=_[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(A,y.key,y)}}return function(A,_,d){return _&&b(A.prototype,_),d&&b(A,d),A}})(),k=function b(A,_,d){A===null&&(A=Function.prototype);var y=Object.getOwnPropertyDescriptor(A,_);if(y===void 0){var E=Object.getPrototypeOf(A);return E===null?void 0:b(E,_,d)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(d)}},g=p(2),v=a(g),f=p(0),i=a(f),e=p(4),t=a(e),h=p(6),u=a(h),s=p(7),o=a(s);function a(b){return b&&b.__esModule?b:{default:b}}function r(b,A){if(!(b instanceof A))throw new TypeError("Cannot call a class as a function")}function n(b,A){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:b}function l(b,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);b.prototype=Object.create(A&&A.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(b,A):b.__proto__=A)}var w=(function(b){l(A,b);function A(){return r(this,A),n(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return A})(u.default);w.blotName="code",w.tagName="CODE";var m=(function(b){l(A,b);function A(){return r(this,A),n(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return S(A,[{key:"delta",value:function(){var d=this,y=this.domNode.textContent;return y.endsWith(`
12`)&&(y=y.slice(0,-1)),y.split(`
13`).reduce(function(E,N){return E.insert(N).insert(`
14`,d.formats())},new v.default)}},{key:"format",value:function(d,y){if(!(d===this.statics.blotName&&y)){var E=this.descendant(o.default,this.length()-1),N=P(E,1),I=N[0];I!=null&&I.deleteAt(I.length()-1,1),k(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,d,y)}}},{key:"formatAt",value:function(d,y,E,N){if(y!==0&&!(i.default.query(E,i.default.Scope.BLOCK)==null||E===this.statics.blotName&&N===this.statics.formats(this.domNode))){var I=this.newlineIndex(d);if(!(I<0||I>=d+y)){var U=this.newlineIndex(d,!0)+1,z=I-U+1,W=this.isolate(U,z),F=W.next;W.format(E,N),F instanceof A&&F.formatAt(0,d-U+y-z,E,N)}}}},{key:"insertAt",value:function(d,y,E){if(E==null){var N=this.descendant(o.default,d),I=P(N,2),U=I[0],z=I[1];U.insertAt(z,y)}}},{key:"length",value:function(){var d=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
15`)?d:d+1}},{key:"newlineIndex",value:function(d){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(y)return this.domNode.textContent.slice(0,d).lastIndexOf(`
16`);var E=this.domNode.textContent.slice(d).indexOf(`
17`);return E>-1?d+E:-1}},{key:"optimize",value:function(d){this.domNode.textContent.endsWith(`
18`)||this.appendChild(i.default.create("text",`
19`)),k(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,d);var y=this.next;y!=null&&y.prev===this&&y.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===y.statics.formats(y.domNode)&&(y.optimize(d),y.moveChildren(this),y.remove())}},{key:"replace",value:function(d){k(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,d),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(y){var E=i.default.find(y);E==null?y.parentNode.removeChild(y):E instanceof i.default.Embed?E.remove():E.unwrap()})}}],[{key:"create",value:function(d){var y=k(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,d);return y.setAttribute("spellcheck",!1),y}},{key:"formats",value:function(){return!0}}]),A})(t.default);m.blotName="code-block",m.tagName="PRE",m.TAB="  ",O.Code=w,O.default=m}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},S=(function(){function F(q,T){var R=[],j=!0,H=!1,D=void 0;try{for(var L=q[Symbol.iterator](),C;!(j=(C=L.next()).done)&&(R.push(C.value),!(T&&R.length===T));j=!0);}catch(V){H=!0,D=V}finally{try{!j&&L.return&&L.return()}finally{if(H)throw D}}return R}return function(q,T){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return F(q,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function F(q,T){for(var R=0;R<T.length;R++){var j=T[R];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(q,j.key,j)}}return function(q,T,R){return T&&F(q.prototype,T),R&&F(q,R),q}})(),g=p(2),v=y(g),f=p(20),i=y(f),e=p(0),t=y(e),h=p(13),u=y(h),s=p(24),o=y(s),a=p(4),r=y(a),n=p(16),l=y(n),w=p(21),m=y(w),b=p(11),A=y(b),_=p(3),d=y(_);function y(F){return F&&F.__esModule?F:{default:F}}function E(F,q,T){return q in F?Object.defineProperty(F,q,{value:T,enumerable:!0,configurable:!0,writable:!0}):F[q]=T,F}function N(F,q){if(!(F instanceof q))throw new TypeError("Cannot call a class as a function")}var I=/^[ -~]*$/,U=(function(){function F(q){N(this,F),this.scroll=q,this.delta=this.getDelta()}return k(F,[{key:"applyDelta",value:function(T){var R=this,j=!1;this.scroll.update();var H=this.scroll.length();return this.scroll.batchStart(),T=W(T),T.reduce(function(D,L){var C=L.retain||L.delete||L.insert.length||1,V=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var K=L.insert;K.endsWith(`
20`)&&j&&(j=!1,K=K.slice(0,-1)),D>=H&&!K.endsWith(`
21`)&&(j=!0),R.scroll.insertAt(D,K);var Q=R.scroll.line(D),te=S(Q,2),ie=te[0],ae=te[1],fe=(0,d.default)({},(0,a.bubbleFormats)(ie));if(ie instanceof r.default){var ce=ie.descendant(t.default.Leaf,ae),Oe=S(ce,1),be=Oe[0];fe=(0,d.default)(fe,(0,a.bubbleFormats)(be))}V=i.default.attributes.diff(fe,V)||{}}else if(P(L.insert)==="object"){var G=Object.keys(L.insert)[0];if(G==null)return D;R.scroll.insertAt(D,G,L.insert[G])}H+=C}return Object.keys(V).forEach(function(Y){R.scroll.formatAt(D,C,Y,V[Y])}),D+C},0),T.reduce(function(D,L){return typeof L.delete=="number"?(R.scroll.deleteAt(D,L.delete),D):D+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(T)}},{key:"deleteText",value:function(T,R){return this.scroll.deleteAt(T,R),this.update(new v.default().retain(T).delete(R))}},{key:"formatLine",value:function(T,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(H).forEach(function(D){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[D])){var L=j.scroll.lines(T,Math.max(R,1)),C=R;L.forEach(function(V){var K=V.length();if(!(V instanceof u.default))V.format(D,H[D]);else{var Q=T-V.offset(j.scroll),te=V.newlineIndex(Q+C)-Q+1;V.formatAt(Q,te,D,H[D])}C-=K})}}),this.scroll.optimize(),this.update(new v.default().retain(T).retain(R,(0,m.default)(H)))}},{key:"formatText",value:function(T,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(H).forEach(function(D){j.scroll.formatAt(T,R,D,H[D])}),this.update(new v.default().retain(T).retain(R,(0,m.default)(H)))}},{key:"getContents",value:function(T,R){return this.delta.slice(T,T+R)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(T,R){return T.concat(R.delta())},new v.default)}},{key:"getFormat",value:function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],H=[];R===0?this.scroll.path(T).forEach(function(L){var C=S(L,1),V=C[0];V instanceof r.default?j.push(V):V instanceof t.default.Leaf&&H.push(V)}):(j=this.scroll.lines(T,R),H=this.scroll.descendants(t.default.Leaf,T,R));var D=[j,H].map(function(L){if(L.length===0)return{};for(var C=(0,a.bubbleFormats)(L.shift());Object.keys(C).length>0;){var V=L.shift();if(V==null)return C;C=z((0,a.bubbleFormats)(V),C)}return C});return d.default.apply(d.default,D)}},{key:"getText",value:function(T,R){return this.getContents(T,R).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(T,R,j){return this.scroll.insertAt(T,R,j),this.update(new v.default().retain(T).insert(E({},R,j)))}},{key:"insertText",value:function(T,R){var j=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return R=R.replace(/\r\n/g,`
22`).replace(/\r/g,`
23`),this.scroll.insertAt(T,R),Object.keys(H).forEach(function(D){j.scroll.formatAt(T,R.length,D,H[D])}),this.update(new v.default().retain(T).insert(R,(0,m.default)(H)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var T=this.scroll.children.head;return T.statics.blotName!==r.default.blotName||T.children.length>1?!1:T.children.head instanceof l.default}},{key:"removeFormat",value:function(T,R){var j=this.getText(T,R),H=this.scroll.line(T+R),D=S(H,2),L=D[0],C=D[1],V=0,K=new v.default;L!=null&&(L instanceof u.default?V=L.newlineIndex(C)-C+1:V=L.length()-C,K=L.delta().slice(C,C+V-1).insert(`
24`));var Q=this.getContents(T,R+V),te=Q.diff(new v.default().insert(j).concat(K)),ie=new v.default().retain(T).concat(te);return this.applyDelta(ie)}},{key:"update",value:function(T){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,H=this.delta;if(R.length===1&&R[0].type==="characterData"&&R[0].target.data.match(I)&&t.default.find(R[0].target)){var D=t.default.find(R[0].target),L=(0,a.bubbleFormats)(D),C=D.offset(this.scroll),V=R[0].oldValue.replace(o.default.CONTENTS,""),K=new v.default().insert(V),Q=new v.default().insert(D.value()),te=new v.default().retain(C).concat(K.diff(Q,j));T=te.reduce(function(ie,ae){return ae.insert?ie.insert(ae.insert,L):ie.push(ae)},new v.default),this.delta=H.compose(T)}else this.delta=this.getDelta(),(!T||!(0,A.default)(H.compose(T),this.delta))&&(T=H.diff(this.delta,j));return T}}]),F})();function z(F,q){return Object.keys(q).reduce(function(T,R){return F[R]==null||(q[R]===F[R]?T[R]=q[R]:Array.isArray(q[R])?q[R].indexOf(F[R])<0&&(T[R]=q[R].concat([F[R]])):T[R]=[q[R],F[R]]),T},{})}function W(F){return F.reduce(function(q,T){if(T.insert===1){var R=(0,m.default)(T.attributes);return delete R.image,q.insert({image:T.attributes.image},R)}if(T.attributes!=null&&(T.attributes.list===!0||T.attributes.bullet===!0)&&(T=(0,m.default)(T),T.attributes.list?T.attributes.list="ordered":(T.attributes.list="bullet",delete T.attributes.bullet)),typeof T.insert=="string"){var j=T.insert.replace(/\r\n/g,`
25`).replace(/\r/g,`
26`);return q.insert(j,T.attributes)}return q.push(T)},new v.default)}O.default=U}
vendor: 8,684 bytes, line 26
26),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=(function(){function b(A,_){var d=[],y=!0,E=!1,N=void 0;try{for(var I=A[Symbol.iterator](),U;!(y=(U=I.next()).done)&&(d.push(U.value),!(_&&d.length===_));y=!0);}catch(z){E=!0,N=z}finally{try{!y&&I.return&&I.return()}finally{if(E)throw N}}return d}return function(A,_){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return b(A,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function b(A,_){for(var d=0;d<_.length;d++){var y=_[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(A,y.key,y)}}return function(A,_,d){return _&&b(A.prototype,_),d&&b(A,d),A}})(),k=p(0),g=o(k),v=p(21),f=o(v),i=p(11),e=o(i),t=p(8),h=o(t),u=p(10),s=o(u);function o(b){return b&&b.__esModule?b:{default:b}}function a(b){if(Array.isArray(b)){for(var A=0,_=Array(b.length);A<b.length;A++)_[A]=b[A];return _}else return Array.from(b)}function r(b,A){if(!(b instanceof A))throw new TypeError("Cannot call a class as a function")}var n=(0,s.default)("quill:selection"),l=function b(A){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;r(this,b),this.index=A,this.length=_},w=(function(){function b(A,_){var d=this;r(this,b),this.emitter=_,this.scroll=A,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new l(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){d.mouseDown||setTimeout(d.update.bind(d,h.default.sources.USER),1)}),this.emitter.on(h.default.events.EDITOR_CHANGE,function(y,E){y===h.default.events.TEXT_CHANGE&&E.length()>0&&d.update(h.default.sources.SILENT)}),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,function(){if(d.hasFocus()){var y=d.getNativeRange();y!=null&&y.start.node!==d.cursor.textNode&&d.emitter.once(h.default.events.SCROLL_UPDATE,function(){try{d.setNativeRange(y.start.node,y.start.offset,y.end.node,y.end.offset)}catch{}})}}),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,function(y,E){if(E.range){var N=E.range,I=N.startNode,U=N.startOffset,z=N.endNode,W=N.endOffset;d.setNativeRange(I,U,z,W)}}),this.update(h.default.sources.SILENT)}return S(b,[{key:"handleComposition",value:function(){var _=this;this.root.addEventListener("compositionstart",function(){_.composing=!0}),this.root.addEventListener("compositionend",function(){if(_.composing=!1,_.cursor.parent){var d=_.cursor.restore();if(!d)return;setTimeout(function(){_.setNativeRange(d.startNode,d.startOffset,d.endNode,d.endOffset)},1)}})}},{key:"handleDragging",value:function(){var _=this;this.emitter.listenDOM("mousedown",document.body,function(){_.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){_.mouseDown=!1,_.update(h.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(_,d){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[_])){this.scroll.update();var y=this.getNativeRange();if(!(y==null||!y.native.collapsed||g.default.query(_,g.default.Scope.BLOCK))){if(y.start.node!==this.cursor.textNode){var E=g.default.find(y.start.node,!1);if(E==null)return;if(E instanceof g.default.Leaf){var N=E.split(y.start.offset);E.parent.insertBefore(this.cursor,N)}else E.insertBefore(this.cursor,y.start.node);this.cursor.attach()}this.cursor.format(_,d),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(_){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=this.scroll.length();_=Math.min(_,y-1),d=Math.min(_+d,y-1)-_;var E=void 0,N=this.scroll.leaf(_),I=P(N,2),U=I[0],z=I[1];if(U==null)return null;var W=U.position(z,!0),F=P(W,2);E=F[0],z=F[1];var q=document.createRange();if(d>0){q.setStart(E,z);var T=this.scroll.leaf(_+d),R=P(T,2);if(U=R[0],z=R[1],U==null)return null;var j=U.position(z,!0),H=P(j,2);return E=H[0],z=H[1],q.setEnd(E,z),q.getBoundingClientRect()}else{var D="left",L=void 0;return E instanceof Text?(z<E.data.length?(q.setStart(E,z),q.setEnd(E,z+1)):(q.setStart(E,z-1),q.setEnd(E,z),D="right"),L=q.getBoundingClientRect()):(L=U.domNode.getBoundingClientRect(),z>0&&(D="right")),{bottom:L.top+L.height,height:L.height,left:L[D],right:L[D],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var _=document.getSelection();if(_==null||_.rangeCount<=0)return null;var d=_.getRangeAt(0);if(d==null)return null;var y=this.normalizeNative(d);return n.info("getNativeRange",y),y}},{key:"getRange",value:function(){var _=this.getNativeRange();if(_==null)return[null,null];var d=this.normalizedToRange(_);return[d,_]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(_){var d=this,y=[[_.start.node,_.start.offset]];_.native.collapsed||y.push([_.end.node,_.end.offset]);var E=y.map(function(U){var z=P(U,2),W=z[0],F=z[1],q=g.default.find(W,!0),T=q.offset(d.scroll);return F===0?T:q instanceof g.default.Container?T+q.length():T+q.index(W,F)}),N=Math.min(Math.max.apply(Math,a(E)),this.scroll.length()-1),I=Math.min.apply(Math,[N].concat(a(E)));return new l(I,N-I)}},{key:"normalizeNative",value:function(_){if(!m(this.root,_.startContainer)||!_.collapsed&&!m(this.root,_.endContainer))return null;var d={start:{node:_.startContainer,offset:_.startOffset},end:{node:_.endContainer,offset:_.endOffset},native:_};return[d.start,d.end].forEach(function(y){for(var E=y.node,N=y.offset;!(E instanceof Text)&&E.childNodes.length>0;)if(E.childNodes.length>N)E=E.childNodes[N],N=0;else if(E.childNodes.length===N)E=E.lastChild,N=E instanceof Text?E.data.length:E.childNodes.length+1;else break;y.node=E,y.offset=N}),d}},{key:"rangeToNative",value:function(_){var d=this,y=_.collapsed?[_.index]:[_.index,_.index+_.length],E=[],N=this.scroll.length();return y.forEach(function(I,U){I=Math.min(N-1,I);var z=void 0,W=d.scroll.leaf(I),F=P(W,2),q=F[0],T=F[1],R=q.position(T,U!==0),j=P(R,2);z=j[0],T=j[1],E.push(z,T)}),E.length<2&&(E=E.concat(E)),E}},{key:"scrollIntoView",value:function(_){var d=this.lastRange;if(d!=null){var y=this.getBounds(d.index,d.length);if(y!=null){var E=this.scroll.length()-1,N=this.scroll.line(Math.min(d.index,E)),I=P(N,1),U=I[0],z=U;if(d.length>0){var W=this.scroll.line(Math.min(d.index+d.length,E)),F=P(W,1);z=F[0]}if(!(U==null||z==null)){var q=_.getBoundingClientRect();y.top<q.top?_.scrollTop-=q.top-y.top:y.bottom>q.bottom&&(_.scrollTop+=y.bottom-q.bottom)}}}}},{key:"setNativeRange",value:function(_,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,E=arguments.length>3&&arguments[3]!==void 0?arguments[3]:d,N=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",_,d,y,E),!(_!=null&&(this.root.parentNode==null||_.parentNode==null||y.parentNode==null))){var I=document.getSelection();if(I!=null)if(_!=null){this.hasFocus()||this.root.focus();var U=(this.getNativeRange()||{}).native;if(U==null||N||_!==U.startContainer||d!==U.startOffset||y!==U.endContainer||E!==U.endOffset){_.tagName=="BR"&&(d=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode),y.tagName=="BR"&&(E=[].indexOf.call(y.parentNode.childNodes,y),y=y.parentNode);var z=document.createRange();z.setStart(_,d),z.setEnd(y,E),I.removeAllRanges(),I.addRange(z)}}else I.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(_){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;if(typeof d=="string"&&(y=d,d=!1),n.info("setRange",_),_!=null){var E=this.rangeToNative(_);this.setNativeRange.apply(this,a(E).concat([d]))}else this.setNativeRange(null);this.update(y)}},{key:"update",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,d=this.lastRange,y=this.getRange(),E=P(y,2),N=E[0],I=E[1];if(this.lastRange=N,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(d,this.lastRange)){var U;!this.composing&&I!=null&&I.native.collapsed&&I.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[h.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(d),_];if((U=this.emitter).emit.apply(U,[h.default.events.EDITOR_CHANGE].concat(z)),_!==h.default.sources.SILENT){var W;(W=this.emitter).emit.apply(W,z)}}}}]),b})();function m(b,A){try{A.parentNode}catch{return!1}return A instanceof Text&&(A=A.parentNode),b.contains(A)}O.Range=l,O.default=w}
26),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,s){for(var o=0;o<s.length;o++){var a=s[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(u,a.key,a)}}return function(u,s,o){return s&&h(u.prototype,s),o&&h(u,o),u}})(),S=function h(u,s,o){u===null&&(u=Function.prototype);var a=Object.getOwnPropertyDescriptor(u,s);if(a===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,s,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},k=p(0),g=v(k);function v(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function e(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var t=(function(h){e(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,[{key:"insertInto",value:function(o,a){o.children.length===0?S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"insertInto",this).call(this,o,a):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),u})(g.default.Embed);t.blotName="break",t.tagName="BR",O.default=t}),(function(M,O,p){var P=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var h in t)t.hasOwnProperty(h)&&(e[h]=t[h])};return function(e,t){i(e,t);function h(){this.constructor=e}e.prototype=t===null?Object.create(t):(h.prototype=t.prototype,new h)}})();
vendor: 4,111 bytes, line 26
26Object.defineProperty(O,"__esModule",{value:!0});var S=p(44),k=p(30),g=p(1),v=(function(i){P(e,i);function e(t){var h=i.call(this,t)||this;return h.build(),h}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){i.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new S.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(h){try{var u=f(h);t.insertBefore(u,t.children.head||void 0)}catch(s){if(s instanceof g.ParchmentError)return;throw s}})},e.prototype.deleteAt=function(t,h){if(t===0&&h===this.length())return this.remove();this.children.forEachAt(t,h,function(u,s,o){u.deleteAt(s,o)})},e.prototype.descendant=function(t,h){var u=this.children.find(h),s=u[0],o=u[1];return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,o]:s instanceof e?s.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,h,u){h===void 0&&(h=0),u===void 0&&(u=Number.MAX_VALUE);var s=[],o=u;return this.children.forEachAt(h,u,function(a,r,n){(t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t)&&s.push(a),a instanceof e&&(s=s.concat(a.descendants(t,r,o))),o-=n}),s},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),i.prototype.detach.call(this)},e.prototype.formatAt=function(t,h,u,s){this.children.forEachAt(t,h,function(o,a,r){o.formatAt(a,r,u,s)})},e.prototype.insertAt=function(t,h,u){var s=this.children.find(t),o=s[0],a=s[1];if(o)o.insertAt(a,h,u);else{var r=u==null?g.create("text",h):g.create(h,u);this.appendChild(r)}},e.prototype.insertBefore=function(t,h){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(u){return t instanceof u}))throw new g.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,h)},e.prototype.length=function(){return this.children.reduce(function(t,h){return t+h.length()},0)},e.prototype.moveChildren=function(t,h){this.children.forEach(function(u){t.insertBefore(u,h)})},e.prototype.optimize=function(t){if(i.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var h=g.create(this.statics.defaultChild);this.appendChild(h),h.optimize(t)}else this.remove()},e.prototype.path=function(t,h){h===void 0&&(h=!1);var u=this.children.find(t,h),s=u[0],o=u[1],a=[[this,t]];return s instanceof e?a.concat(s.path(o,h)):(s!=null&&a.push([s,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),i.prototype.replace.call(this,t)},e.prototype.split=function(t,h){if(h===void 0&&(h=!1),!h){if(t===0)return this;if(t===this.length())return this.next}var u=this.clone();return this.parent.insertBefore(u,this.next),this.children.forEachAt(t,this.length(),function(s,o,a){s=s.split(o,h),u.appendChild(s)}),u},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,h){var u=this,s=[],o=[];t.forEach(function(a){a.target===u.domNode&&a.type==="childList"&&(s.push.apply(s,a.addedNodes),o.push.apply(o,a.removedNodes))}),o.forEach(function(a){if(!(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var r=g.find(a);r!=null&&(r.domNode.parentNode==null||r.domNode.parentNode===u.domNode)&&r.detach()}}),s.filter(function(a){return a.parentNode==u.domNode}).sort(function(a,r){return a===r?0:a.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(a){var r=null;a.nextSibling!=null&&(r=g.find(a.nextSibling));var n=f(a);(n.next!=r||n.next==null)&&(n.parent!=null&&n.parent.removeChild(u),u.insertBefore(n,r||void 0))})},e})(k.default);function f(i){var e=g.find(i);if(e==null)try{e=g.create(i)}catch{e=g.create(g.Scope.INLINE),[].slice.call(i.childNodes).forEach(function(h){e.domNode.appendChild(h)}),i.parentNode&&i.parentNode.replaceChild(e.domNode,i),e.attach()}return e}O.default=v}),(function(M,O,p){var P=this&&this.__extends||(function(){var i=Object.
26setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var h in t)t.hasOwnProperty(h)&&(e[h]=t[h])};return function(e,t){i(e,t);function h(){this.constructor=e}e.prototype=t===null?Object.create(t):(h.prototype=t.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=p(12),k=p(31),g=p(17),v=p(1),f=(function(i){P(e,i);function e(t){var h=i.call(this,t)||this;return h.attributes=new k.default(h.domNode),h}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,h){var u=v.query(t);u instanceof S.default?this.attributes.attribute(u,h):h&&u!=null&&(t!==this.statics.blotName||this.formats()[t]!==h)&&this.replaceWith(t,h)},e.prototype.formats=function(){var t=this.attributes.values(),h=this.statics.formats(this.domNode);return h!=null&&(t[this.statics.blotName]=h),t},e.prototype.replaceWith=function(t,h){var u=i.prototype.replaceWith.call(this,t,h);return this.attributes.copy(u),u},e.prototype.update=function(t,h){var u=this;i.prototype.update.call(this,t,h),t.some(function(s){return s.target===u.domNode&&s.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,h){var u=i.prototype.wrap.call(this,t,h);return u instanceof e&&u.statics.scope===this.statics.scope&&this.attributes.move(u),u},e})(g.default);O.default=f}),(function(M,O,p){var P=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var e in i)i.hasOwnProperty(e)&&(f[e]=i[e])};return function(f,i){v(f,i);function e(){this.constructor=f}f.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}})();
vendor: 26,328 bytes, lines 26-31
26Object.defineProperty(O,"__esModule",{value:!0});var S=p(30),k=p(1),g=(function(v){P(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.value=function(i){return!0},f.prototype.index=function(i,e){return this.domNode===i||this.domNode.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},f.prototype.position=function(i,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return i>0&&(t+=1),[this.parent.domNode,t]},f.prototype.value=function(){var i;return i={},i[this.statics.blotName]=this.statics.value(this.domNode)||!0,i},f.scope=k.Scope.INLINE_BLOT,f})(S.default);O.default=g}),(function(M,O,p){var P=p(11),S=p(3),k={attributes:{compose:function(v,f,i){typeof v!="object"&&(v={}),typeof f!="object"&&(f={});var e=S(!0,{},f);i||(e=Object.keys(e).reduce(function(h,u){return e[u]!=null&&(h[u]=e[u]),h},{}));for(var t in v)v[t]!==void 0&&f[t]===void 0&&(e[t]=v[t]);return Object.keys(e).length>0?e:void 0},diff:function(v,f){typeof v!="object"&&(v={}),typeof f!="object"&&(f={});var i=Object.keys(v).concat(Object.keys(f)).reduce(function(e,t){return P(v[t],f[t])||(e[t]=f[t]===void 0?null:f[t]),e},{});return Object.keys(i).length>0?i:void 0},transform:function(v,f,i){if(typeof v!="object")return f;if(typeof f=="object"){if(!i)return f;var e=Object.keys(f).reduce(function(t,h){return v[h]===void 0&&(t[h]=f[h]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(v){return new g(v)},length:function(v){return typeof v.delete=="number"?v.delete:typeof v.retain=="number"?v.retain:typeof v.insert=="string"?v.insert.length:1}};function g(v){this.ops=v,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(v){v||(v=1/0);var f=this.ops[this.index];if(f){var i=this.offset,e=k.length(f);if(v>=e-i?(v=e-i,this.index+=1,this.offset=0):this.offset+=v,typeof f.delete=="number")return{delete:v};var t={};return f.attributes&&(t.attributes=f.attributes),typeof f.retain=="number"?t.retain=v:typeof f.insert=="string"?t.insert=f.insert.substr(i,v):t.insert=f.insert,t}else return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?k.length(this.ops[this.index])-this.offset:1/0},g.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},g.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var v=this.offset,f=this.index,i=this.next(),e=this.ops.slice(this.index);return this.offset=v,this.index=f,[i].concat(e)}else return[]},M.exports=k}),(function(M,O){var p=(function(){function P(u,s){return s!=null&&u instanceof s}var S;try{S=Map}catch{S=function(){}}var k;try{k=Set}catch{k=function(){}}var g;try{g=Promise}catch{g=function(){}}function v(u,s,o,a,r){typeof s=="object"&&(o=s.depth,a=s.prototype,r=s.includeNonEnumerable,s=s.circular);var n=[],l=[],w=typeof Buffer<"u";typeof s>"u"&&(s=!0),typeof o>"u"&&(o=1/0);function m(b,A){if(b===null)return null;if(A===0)return b;var _,d;if(typeof b!="object")return b;if(P(b,S))_=new S;else if(P(b,k))_=new k;else if(P(b,g))_=new g(function(q,T){b.then(function(R){q(m(R,A-1))},function(R){T(m(R,A-1))})});else if(v.__isArray(b))_=[];else if(v.__isRegExp(b))_=new RegExp(b.source,h(b)),b.lastIndex&&(_.lastIndex=b.lastIndex);else if(v.__isDate(b))_=new Date(b.getTime());else{if(w&&Buffer.isBuffer(b))return Buffer.allocUnsafe?_=Buffer.allocUnsafe(b.length):_=new Buffer(b.length),b.copy(_),_;P(b,Error)?_=Object.create(b):typeof a>"u"?(d=Object.getPrototypeOf(b),_=Object.create(d)):(_=Object.create(a),d=a)}if(s){var y=n.indexOf(b);if(y!=-1)return l[y];n.push(b),l.push(_)}P(b,S)&&b.forEach(function(q,T){var R=m(T,A-1),j=m(q,A-1);_.set(R,j)}),P(b,k)&&b.forEach(function(q){var T=m(q,A-1);_.add(T)});for(var E in b){var N;d&&(N=Object.getOwnPropertyDescriptor(d,E)),!(N&&N.set==null)&&(_[E]=m(b[E],A-1))}if(Object.getOwnPropertySymbols)for(var I=Object.getOwnPropertySymbols(b),E=0;E<I.length;E++){var U=I[E],z=Object.getOwnPropertyDescriptor(b,U);z&&!z.enumerable&&!r||(_[U]=m(b[U],A-1),z.enumerable||Object.defineProperty(_,U,{enumerable:!1}))}if(r)for(var W=Object.getOwnPropertyNames(b),E=0;E<W.length;E++){var F=W[E],z=Object.getOwnPropertyDescriptor(b,F);z&&z.enumerable||(_[F]=m(b[F],A-1),Object.defineProperty(_,F,{enumerable:!1}))}return _}return m(u,o)}v.clonePrototype=function(s){if(s===null)return null;var o=function(){};return o.prototype=s,new o};function f(u){return Object.prototype.toString.call(u)}v.__objToStr=f;function i(u){return typeof u=="object"&&f(u)==="[object Date]"}v.__isDate=i;function e(u){return typeof u=="object"&&f(u)==="[object Array]"}v.__isArray=e;function t(u){return typeof u=="object"&&f(u)==="[object RegExp]"}v.__isRegExp=t;function h(u){var s="";return u.global&&(s+="g"),u.ignoreCase&&(s+="i"),u.multiline&&(s+="m"),s}return v.__getRegExpFlags=h,v})();typeof M=="object"&&M.exports&&(M.exports=p)}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function _(d,y){var E=[],N=!0,I=!1,U=void 0;try{for(var z=d[Symbol.iterator](),W;!(N=(W=z.next()).done)&&(E.push(W.value),!(y&&E.length===y));N=!0);}catch(F){I=!0,U=F}finally{try{!N&&z.return&&z.return()}finally{if(I)throw U}}return E}return function(d,y){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return _(d,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function _(d,y){for(var E=0;E<y.length;E++){var N=y[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(d,N.key,N)}}return function(d,y,E){return y&&_(d.prototype,y),E&&_(d,E),d}})(),k=function _(d,y,E){d===null&&(d=Function.prototype);var N=Object.getOwnPropertyDescriptor(d,y);if(N===void 0){var I=Object.getPrototypeOf(d);return I===null?void 0:_(I,y,E)}else{if("value"in N)return N.value;var U=N.get;return U===void 0?void 0:U.call(E)}},g=p(0),v=n(g),f=p(8),i=n(f),e=p(4),t=n(e),h=p(16),u=n(h),s=p(13),o=n(s),a=p(25),r=n(a);function n(_){return _&&_.__esModule?_:{default:_}}function l(_,d){if(!(_ instanceof d))throw new TypeError("Cannot call a class as a function")}function w(_,d){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:_}function m(_,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);_.prototype=Object.create(d&&d.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(_,d):_.__proto__=d)}function b(_){return _ instanceof t.default||_ instanceof e.BlockEmbed}var A=(function(_){m(d,_);function d(y,E){l(this,d);var N=w(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,y));return N.emitter=E.emitter,Array.isArray(E.whitelist)&&(N.whitelist=E.whitelist.reduce(function(I,U){return I[U]=!0,I},{})),N.domNode.addEventListener("DOMNodeInserted",function(){}),N.optimize(),N.enable(),N}return S(d,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(E,N){var I=this.line(E),U=P(I,2),z=U[0],W=U[1],F=this.line(E+N),q=P(F,1),T=q[0];if(k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,E,N),T!=null&&z!==T&&W>0){if(z instanceof e.BlockEmbed||T instanceof e.BlockEmbed){this.optimize();return}if(z instanceof o.default){var R=z.newlineIndex(z.length(),!0);if(R>-1&&(z=z.split(R+1),z===T)){this.optimize();return}}else if(T instanceof o.default){var j=T.newlineIndex(0);j>-1&&T.split(j+1)}var H=T.children.head instanceof u.default?null:T.children.head;z.moveChildren(T,H),z.remove()}this.optimize()}},{key:"enable",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",E)}},{key:"formatAt",value:function(E,N,I,U){this.whitelist!=null&&!this.whitelist[I]||(k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,E,N,I,U),this.optimize())}},{key:"insertAt",value:function(E,N,I){if(!(I!=null&&this.whitelist!=null&&!this.whitelist[N])){if(E>=this.length())if(I==null||v.default.query(N,v.default.Scope.BLOCK)==null){var U=v.default.create(this.statics.defaultChild);this.appendChild(U),I==null&&N.endsWith(`
27`)&&(N=N.slice(0,-1)),U.insertAt(0,N,I)}else{var z=v.default.create(N,I);this.appendChild(z)}else k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,E,N,I);this.optimize()}}},{key:"insertBefore",value:function(E,N){if(E.statics.scope===v.default.Scope.INLINE_BLOT){var I=v.default.create(this.statics.defaultChild);I.appendChild(E),E=I}k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,E,N)}},{key:"leaf",value:function(E){return this.path(E).pop()||[null,-1]}},{key:"line",value:function(E){return E===this.length()?this.line(E-1):this.descendant(b,E)}},{key:"lines",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,I=function U(z,W,F){var q=[],T=F;return z.children.forEachAt(W,F,function(R,j,H){b(R)?q.push(R):R instanceof v.default.Container&&(q=q.concat(U(R,j,T))),T-=H}),q};return I(this,E,N)}},{key:"optimize",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,E,N),E.length>0&&this.emitter.emit(i.default.events.SCROLL_OPTIMIZE,E,N))}},{key:"path",value:function(E){return k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,E).slice(1)}},{key:"update",value:function(E){if(this.batch!==!0){var N=i.default.sources.USER;typeof E=="string"&&(N=E),Array.isArray(E)||(E=this.observer.takeRecords()),E.length>0&&this.emitter.emit(i.default.events.SCROLL_BEFORE_UPDATE,N,E),k(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"update",this).call(this,E.concat([])),E.length>0&&this.emitter.emit(i.default.events.SCROLL_UPDATE,N,E)}}}]),d})(v.default.Scroll);A.blotName="scroll",A.className="ql-editor",A.tagName="DIV",A.defaultChild="block",A.allowedChildren=[t.default,e.BlockEmbed,r.default],O.default=A}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},S=(function(){function L(C,V){var K=[],Q=!0,te=!1,ie=void 0;try{for(var ae=C[Symbol.iterator](),fe;!(Q=(fe=ae.next()).done)&&(K.push(fe.value),!(V&&K.length===V));Q=!0);}catch(ce){te=!0,ie=ce}finally{try{!Q&&ae.return&&ae.return()}finally{if(te)throw ie}}return K}return function(C,V){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return L(C,V);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function L(C,V){for(var K=0;K<V.length;K++){var Q=V[K];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(C,Q.key,Q)}}return function(C,V,K){return V&&L(C.prototype,V),K&&L(C,K),C}})(),g=p(21),v=_(g),f=p(11),i=_(f),e=p(3),t=_(e),h=p(2),u=_(h),s=p(20),o=_(s),a=p(0),r=_(a),n=p(5),l=_(n),w=p(10),m=_(w),b=p(9),A=_(b);function _(L){return L&&L.__esModule?L:{default:L}}function d(L,C,V){return C in L?Object.defineProperty(L,C,{value:V,enumerable:!0,configurable:!0,writable:!0}):L[C]=V,L}function y(L,C){if(!(L instanceof C))throw new TypeError("Cannot call a class as a function")}function E(L,C){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:L}function N(L,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);L.prototype=Object.create(C&&C.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(L,C):L.__proto__=C)}var I=(0,m.default)("quill:keyboard"),U=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=(function(L){N(C,L),k(C,null,[{key:"match",value:function(K,Q){return Q=D(Q),["altKey","ctrlKey","metaKey","shiftKey"].some(function(te){return!!Q[te]!==K[te]&&Q[te]!==null})?!1:Q.key===(K.which||K.keyCode)}}]);function C(V,K){y(this,C);var Q=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,V,K));return Q.bindings={},Object.keys(Q.options.bindings).forEach(function(te){te==="list autofill"&&V.scroll.whitelist!=null&&!V.scroll.whitelist.list||Q.options.bindings[te]&&Q.addBinding(Q.options.bindings[te])}),Q.addBinding({key:C.keys.ENTER,shiftKey:null},R),Q.addBinding({key:C.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Q.addBinding({key:C.keys.BACKSPACE},{collapsed:!0},F),Q.addBinding({key:C.keys.DELETE},{collapsed:!0},q)):(Q.addBinding({key:C.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},F),Q.addBinding({key:C.keys.DELETE},{collapsed:!0,suffix:/^.?$/},q)),Q.addBinding({key:C.keys.BACKSPACE},{collapsed:!1},T),Q.addBinding({key:C.keys.DELETE},{collapsed:!1},T),Q.addBinding({key:C.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},F),Q.listen(),Q}return k(C,[{key:"addBinding",value:function(K){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ie=D(K);if(ie==null||ie.key==null)return I.warn("Attempted to add invalid keyboard binding",ie);typeof Q=="function"&&(Q={handler:Q}),typeof te=="function"&&(te={handler:te}),ie=(0,t.default)(ie,Q,te),this.bindings[ie.key]=this.bindings[ie.key]||[],this.bindings[ie.key].push(ie)}},{key:"listen",value:function(){var K=this;this.quill.root.addEventListener("keydown",function(Q){if(!Q.defaultPrevented){var te=Q.which||Q.keyCode,ie=(K.bindings[te]||[]).filter(function(de){return C.match(Q,de)});if(ie.length!==0){var ae=K.quill.getSelection();if(!(ae==null||!K.quill.hasFocus())){var fe=K.quill.getLine(ae.index),ce=S(fe,2),Oe=ce[0],be=ce[1],G=K.quill.getLeaf(ae.index),Y=S(G,2),J=Y[0],ee=Y[1],X=ae.length===0?[J,ee]:K.quill.getLeaf(ae.index+ae.length),ue=S(X,2),oe=ue[0],le=ue[1],xe=J instanceof r.default.Text?J.value().slice(0,ee):"",Te=oe instanceof r.default.Text?oe.value().slice(le):"",ge={collapsed:ae.length===0,empty:ae.length===0&&Oe.length()<=1,format:K.quill.getFormat(ae),offset:be,prefix:xe,suffix:Te},et=ie.some(function(de){if(de.collapsed!=null&&de.collapsed!==ge.collapsed||de.empty!=null&&de.empty!==ge.empty||de.offset!=null&&de.offset!==ge.offset)return!1;if(Array.isArray(de.format)){if(de.format.every(function(Be){return ge.format[Be]==null}))return!1}else if(P(de.format)==="object"&&!Object.keys(de.format).every(function(Be){return de.format[Be]===!0?ge.format[Be]!=null:de.format[Be]===!1?ge.format[Be]==null:(0,i.default)(de.format[Be],ge.format[Be])}))return!1;return de.prefix!=null&&!de.prefix.test(ge.prefix)||de.suffix!=null&&!de.suffix.test(ge.suffix)?!1:de.handler.call(K,ae,ge)!==!0});et&&Q.preventDefault()}}}})}}]),C})(A.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:H("bold"),italic:H("italic"),underline:H("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(C,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","+1",l.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(C,V){if(V.collapsed&&V.offset!==0)return!0;this.quill.format("indent","-1",l.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(C,V){V.format.indent!=null?this.quill.format("indent","-1",l.default.sources.USER):V.format.list!=null&&this.quill.format("list",!1,l.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(C){this.quill.deleteText(C.index-1,1,l.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(C){this.quill.history.cutoff();var V=new u.default().retain(C.index).delete(C.length).insert("	");this.quill.updateContents(V,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index+1,l.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(C,V){this.quill.format("list",!1,l.default.sources.USER),V.format.indent&&this.quill.format("indent",!1,l.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(C){var V=this.quill.getLine(C.index),K=S(V,2),Q=K[0],te=K[1],ie=(0,t.default)({},Q.formats(),{list:"checked"}),ae=new u.default().retain(C.index).insert(`
28`,ie).retain(Q.length()-te-1).retain(1,{list:"unchecked"});this.quill.updateContents(ae,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(C,V){var K=this.quill.getLine(C.index),Q=S(K,2),te=Q[0],ie=Q[1],ae=new u.default().retain(C.index).insert(`
29`,V.format).retain(te.length()-ie-1).retain(1,{header:null});this.quill.updateContents(ae,l.default.sources.USER),this.quill.setSelection(C.index+1,l.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(C,V){var K=V.prefix.length,Q=this.quill.getLine(C.index),te=S(Q,2),ie=te[0],ae=te[1];if(ae>K)return!0;var fe=void 0;switch(V.prefix.trim()){case"[]":case"[ ]":fe="unchecked";break;case"[x]":fe="checked";break;case"-":case"*":fe="bullet";break;default:fe="ordered"}this.quill.insertText(C.index," ",l.default.sources.USER),this.quill.history.cutoff();var ce=new u.default().retain(C.index-ae).delete(K+1).retain(ie.length()-2-ae).retain(1,{list:fe});this.quill.updateContents(ce,l.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(C.index-K,l.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(C){var V=this.quill.getLine(C.index),K=S(V,2),Q=K[0],te=K[1],ie=new u.default().retain(C.index+Q.length()-te-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ie,l.default.sources.USER)}},"embed left":W(z.keys.LEFT,!1),"embed left shift":W(z.keys.LEFT,!0),"embed right":W(z.keys.RIGHT,!1),"embed right shift":W(z.keys.RIGHT,!0)}};function W(L,C){var V,K=L===z.keys.LEFT?"prefix":"suffix";return V={key:L,shiftKey:C,altKey:null},d(V,K,/^$/),d(V,"handler",function(te){var ie=te.index;L===z.keys.RIGHT&&(ie+=te.length+1);var ae=this.quill.getLeaf(ie),fe=S(ae,1),ce=fe[0];return ce instanceof r.default.Embed?(L===z.keys.LEFT?C?this.quill.setSelection(te.index-1,te.length+1,l.default.sources.USER):this.quill.setSelection(te.index-1,l.default.sources.USER):C?this.quill.setSelection(te.index,te.length+1,l.default.sources.USER):this.quill.setSelection(te.index+te.length+1,l.default.sources.USER),!1):!0}),V}function F(L,C){if(!(L.index===0||this.quill.getLength()<=1)){var V=this.quill.getLine(L.index),K=S(V,1),Q=K[0],te={};if(C.offset===0){var ie=this.quill.getLine(L.index-1),ae=S(ie,1),fe=ae[0];if(fe!=null&&fe.length()>1){var ce=Q.formats(),Oe=this.quill.getFormat(L.index-1,1);te=o.default.attributes.diff(ce,Oe)||{}}}var be=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(C.prefix)?2:1;this.quill.deleteText(L.index-be,be,l.default.sources.USER),Object.keys(te).length>0&&this.quill.formatLine(L.index-be,be,te,l.default.sources.USER),this.quill.focus()}}function q(L,C){var V=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(C.suffix)?2:1;if(!(L.index>=this.quill.getLength()-V)){var K={},Q=0,te=this.quill.getLine(L.index),ie=S(te,1),ae=ie[0];if(C.offset>=ae.length()-1){var fe=this.quill.getLine(L.index+1),ce=S(fe,1),Oe=ce[0];if(Oe){var be=ae.formats(),G=this.quill.getFormat(L.index,1);K=o.default.attributes.diff(be,G)||{},Q=Oe.length()}}this.quill.deleteText(L.index,V,l.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(L.index+Q-1,V,K,l.default.sources.USER)}}function T(L){var C=this.quill.getLines(L),V={};if(C.length>1){var K=C[0].formats(),Q=C[C.length-1].formats();V=o.default.attributes.diff(Q,K)||{}}this.quill.deleteText(L,l.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(L.index,1,V,l.default.sources.USER),this.quill.setSelection(L.index,l.default.sources.SILENT),this.quill.focus()}function R(L,C){var V=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var K=Object.keys(C.format).reduce(function(Q,te){return r.default.query(te,r.default.Scope.BLOCK)&&!Array.isArray(C.format[te])&&(Q[te]=C.format[te]),Q},{});this.quill.insertText(L.index,`
30`,K,l.default.sources.USER),this.quill.setSelection(L.index+1,l.default.sources.SILENT),this.quill.focus(),Object.keys(C.format).forEach(function(Q){K[Q]==null&&(Array.isArray(C.format[Q])||Q!=="link"&&V.quill.format(Q,C.format[Q],l.default.sources.USER))})}function j(L){return{key:z.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(V){var K=r.default.query("code-block"),Q=V.index,te=V.length,ie=this.quill.scroll.descendant(K,Q),ae=S(ie,2),fe=ae[0],ce=ae[1];if(fe!=null){var Oe=this.quill.getIndex(fe),be=fe.newlineIndex(ce,!0)+1,G=fe.newlineIndex(Oe+ce+te),Y=fe.domNode.textContent.slice(be,G).split(`
31`);ce=0,Y.forEach(function(J,ee){L?(fe.insertAt(be+ce,K.TAB),ce+=K.TAB.length,ee===0?Q+=K.TAB.length:te+=K.TAB.length):J.startsWith(K.TAB)&&(fe.deleteAt(be+ce,K.TAB.length),ce-=K.TAB.length,ee===0?Q-=K.TAB.length:te-=K.TAB.length),ce+=J.length+1}),this.quill.update(l.default.sources.USER),this.quill.setSelection(Q,te,l.default.sources.SILENT)}}}}function H(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(V,K){this.quill.format(L,!K.format[L],l.default.sources.USER)}}}function D(L){if(typeof L=="string"||typeof L=="number")return D({key:L});if((typeof L>"u"?"undefined":P(L))==="object"&&(L=(0,v.default)(L,!1)),typeof L.key=="string")if(z.keys[L.key.toUpperCase()]!=null)L.key=z.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[U]=L.shortKey,delete L.shortKey),L}O.default=z,O.SHORTKEY=U}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function o(a,r){var n=[],l=!0,w=!1,m=void 0;try{for(var b=a[Symbol.iterator](),A;!(l=(A=b.next()).done)&&(n.push(A.value),!(r&&n.length===r));l=!0);}catch(_){w=!0,m=_}finally{try{!l&&b.return&&b.return()}finally{if(w)throw m}}return n}return function(a,r){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a))return o(a,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=function o(a,r,n){a===null&&(a=Function.prototype);var l=Object.getOwnPropertyDescriptor(a,r);if(l===void 0){var w=Object.getPrototypeOf(a);return w===null?void 0:o(w,r,n)}else{if("value"in l)return l.value;var m=l.get;return m===void 0?void 0:m.call(n)}},k=(function(){function o(a,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}return function(a,r,n){return r&&o(a.prototype,r),n&&o(a,n),a}})(),g=p(0),v=e(g),f=p(7),i=e(f);function e(o){return o&&o.__esModule?o:{default:o}}function t(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function h(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function u(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var s=(function(o){u(a,o),k(a,null,[{key:"value",value:function(){}}]);function a(r,n){t(this,a);var l=h(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r));return l.selection=n,l.textNode=document.createTextNode(a.CONTENTS),l.domNode.appendChild(l.textNode),l._length=0,l}return k(a,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,l){if(this._length!==0)return S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,n,l);for(var w=this,m=0;w!=null&&w.statics.scope!==v.default.Scope.BLOCK_BLOT;)m+=w.offset(w.parent),w=w.parent;w!=null&&(this._length=a.CONTENTS.length,w.optimize(),w.formatAt(m,a.CONTENTS.length,n,l),this._length=0)}},{key:"index",value:function(n,l){return n===this.textNode?0:S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"index",this).call(this,n,l)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,l=this.selection.getNativeRange(),w=void 0,m=void 0,b=void 0;if(l!=null&&l.start.node===n&&l.end.node===n){var A=[n,l.start.offset,l.end.offset];w=A[0],m=A[1],b=A[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==a.CONTENTS){var _=this.textNode.data.split(a.CONTENTS).join("");this.next instanceof i.default?(w=this.next.domNode,this.next.insertAt(0,_),this.textNode.data=a.
31CONTENTS):(this.textNode.data=_,this.parent.insertBefore(v.default.create(this.textNode),this),this.textNode=document.createTextNode(a.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),m!=null){var d=[m,b].map(function(E){return Math.max(0,Math.min(w.data.length,E-1))}),y=P(d,2);return m=y[0],b=y[1],{startNode:w,startOffset:m,endNode:w,endOffset:b}}}}},{key:"update",value:function(n,l){var w=this;if(n.some(function(b){return b.type==="characterData"&&b.target===w.textNode})){var m=this.restore();m&&(l.range=m)}}},{key:"value",value:function(){return""}}]),a})(v.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\uFEFF",O.default=s}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),S=v(P),k=p(4),g=v(k);function v(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function e(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var t=(function(h){e(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u})(S.default.Container);t.allowedChildren=[g.default,k.BlockEmbed,t],O.default=t}
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var P=(function(){function s(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&s(o.prototype,a),r&&s(o,r),o}})(),S=function s(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:s(l,a,r)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(r)}},k=p(0),g=v(k);function v(s){return s&&s.__esModule?s:{default:s}}function f(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function i(s,o){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:s}function e(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(s,o):s.__proto__=o)}var t=(function(s){e(o,s);function o(){return f(this,o),i(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,[{key:"value",value:function(r){var n=S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"value",this).call(this,r);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(l){return("00"+parseInt(l).toString(16)).slice(-2)}).join("")):n}}]),o})(g.default.Attributor.Style),h=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),u=new t("color","color",{scope:g.default.Scope.INLINE});O.ColorAttributor=t,O.ColorClass=h,O.ColorStyle=u}
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var P=(function(){function u(s,o){for(var a=0;a<o.length;a++){var r=o[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}return function(s,o,a){return o&&u(s.prototype,o),a&&u(s,a),s}})(),S=function u(s,o,a){s===null&&(s=Function.prototype);var r=Object.getOwnPropertyDescriptor(s,o);if(r===void 0){var n=Object.getPrototypeOf(s);return n===null?void 0:u(n,o,a)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(a)}},k=p(6),g=v(k);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function e(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var t=(function(u){e(s,u);function s(){return f(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return P(s,[{key:"format",value:function(a,r){if(a!==this.statics.blotName||!r)return S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,a,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(a){var r=S(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,a);return a=this.sanitize(a),r.setAttribute("href",a),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(a){return a.getAttribute("href")}},{key:"sanitize",value:function(a){return h(a,this.PROTOCOL_WHITELIST)?a:this.SANITIZED_URL}}]),s})(g.default);t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function h(u,s){var o=document.createElement("a");o.href=u;var a=o.href.slice(0,o.href.indexOf(":"));return s.indexOf(a)>-1}O.default=t,O.sanitize=h}
vendor: 7,986 bytes, line 31
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},S=(function(){function s(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&s(o.prototype,a),r&&s(o,r),o}})(),k=p(23),g=i(k),v=p(107),f=i(v);function i(s){return s&&s.__esModule?s:{default:s}}function e(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}var t=0;function h(s,o){s.setAttribute(o,s.getAttribute(o)!=="true")}var u=(function(){function s(o){var a=this;e(this,s),this.select=o,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){a.togglePicker()}),this.label.addEventListener("keydown",function(r){switch(r.keyCode){case g.default.keys.ENTER:a.togglePicker();break;case g.default.keys.ESCAPE:a.escape(),r.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return S(s,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(a){var r=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),a.hasAttribute("value")&&n.setAttribute("data-value",a.getAttribute("value")),a.textContent&&n.setAttribute("data-label",a.textContent),n.addEventListener("click",function(){r.selectItem(n,!0)}),n.addEventListener("keydown",function(l){switch(l.keyCode){case g.default.keys.ENTER:r.selectItem(n,!0),l.preventDefault();break;case g.default.keys.ESCAPE:r.escape(),l.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var a=document.createElement("span");return a.classList.add("ql-picker-label"),a.innerHTML=f.default,a.tabIndex="0",a.setAttribute("role","button"),a.setAttribute("aria-expanded","false"),this.container.appendChild(a),a}},{key:"buildOptions",value:function(){var a=this,r=document.createElement("span");r.classList.add("ql-picker-options"),r.setAttribute("aria-hidden","true"),r.tabIndex="-1",r.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",r.id),this.options=r,[].slice.call(this.select.options).forEach(function(n){var l=a.buildItem(n);r.appendChild(l),n.selected===!0&&a.selectItem(l)}),this.container.appendChild(r)}},{key:"buildPicker",value:function(){var a=this;[].slice.call(this.select.attributes).forEach(function(r){a.container.setAttribute(r.name,r.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var a=this;this.close(),setTimeout(function(){return a.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(a!==n&&(n!=null&&n.classList.remove("ql-selected"),a!=null&&(a.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(a.parentNode.children,a),a.hasAttribute("data-value")?this.label.setAttribute("data-value",a.getAttribute("data-value")):this.label.removeAttribute("data-value"),a.hasAttribute("data-label")?this.label.setAttribute("data-label",a.getAttribute("data-label")):this.label.removeAttribute("data-label"),r))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":P(Event))==="object"){var l=document.createEvent("Event");l.initEvent("change",!0,!0),this.select.dispatchEvent(l)}this.close()}}},{key:"update",value:function(){var a=void 0;if(this.select.selectedIndex>-1){var r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];a=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);var n=a!=null&&a!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),s})();O.default=u}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(0),S=I(P),k=p(5),g=I(k),v=p(4),f=I(v),i=p(16),e=I(i),t=p(25),h=I(t),u=p(24),s=I(u),o=p(35),a=I(o),r=p(6),n=I(r),l=p(22),w=I(l),m=p(7),b=I(m),A=p(55),_=I(A),d=p(42),y=I(d),E=p(23),N=I(E);function I(U){return U&&U.__esModule?U:{default:U}}g.default.register({"blots/block":f.default,"blots/block/embed":v.BlockEmbed,"blots/break":e.default,"blots/container":h.default,"blots/cursor":s.default,"blots/embed":a.default,"blots/inline":n.default,"blots/scroll":w.default,"blots/text":b.default,"modules/clipboard":_.default,"modules/history":y.default,"modules/keyboard":N.default}),S.default.register(f.default,e.default,s.default,n.default,w.default,b.default),O.default=g.default}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),S=(function(){function k(g){this.domNode=g,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(k.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),k.create=function(g){if(this.tagName==null)throw new P.ParchmentError("Blot definition missing tagName");var v;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?v=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?v=document.createElement(g):v=document.createElement(this.tagName[0])):v=document.createElement(this.tagName),this.className&&v.classList.add(this.className),v},k.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},k.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return P.create(g)},k.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},k.prototype.deleteAt=function(g,v){var f=this.isolate(g,v);f.remove()},k.prototype.formatAt=function(g,v,f,i){var e=this.isolate(g,v);if(P.query(f,P.Scope.BLOT)!=null&&i)e.wrap(f,i);else if(P.query(f,P.Scope.ATTRIBUTE)!=null){var t=P.create(this.statics.scope);e.wrap(t),t.format(f,i)}},k.prototype.insertAt=function(g,v,f){var i=f==null?P.create("text",v):P.create(v,f),e=this.split(g);this.parent.insertBefore(i,e)},k.prototype.insertInto=function(g,v){v===void 0&&(v=null),this.parent!=null&&this.parent.children.remove(this);var f=null;g.children.insertBefore(this,v),v!=null&&(f=v.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=f)&&g.domNode.insertBefore(this.domNode,f),this.parent=g,this.attach()},k.prototype.isolate=function(g,v){var f=this.split(g);return f.split(v),f},k.prototype.length=function(){return 1},k.prototype.offset=function(g){return g===void 0&&(g=this.parent),this.parent==null||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},k.prototype.optimize=function(g){this.domNode[P.DATA_KEY]!=null&&delete this.domNode[P.DATA_KEY].mutations},k.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},k.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},k.prototype.replaceWith=function(g,v){var f=typeof g=="string"?P.create(g,v):g;return f.replace(this),f},k.prototype.split=function(g,v){return g===0?this:this.next},k.prototype.update=function(g,v){},k.prototype.wrap=function(g,v){var f=typeof g=="string"?P.create(g,v):g;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},k.blotName="abstract",k})();O.default=S}
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(12),S=p(32),k=p(33),g=p(1),v=(function(){function f(i){this.attributes={},this.domNode=i,this.build()}return f.prototype.attribute=function(i,e){e?i.add(this.domNode,e)&&(i.value(this.domNode)!=null?this.attributes[i.attrName]=i:delete this.attributes[i.attrName]):(i.remove(this.domNode),delete this.attributes[i.attrName])},f.prototype.build=function(){var i=this;this.attributes={};var e=P.default.keys(this.domNode),t=S.default.keys(this.domNode),h=k.default.keys(this.domNode);e.concat(t).concat(h).forEach(function(u){var s=g.query(u,g.Scope.ATTRIBUTE);s instanceof P.default&&(i.attributes[s.attrName]=s)})},f.prototype.copy=function(i){var e=this;Object.keys(this.attributes).forEach(function(t){var h=e.attributes[t].value(e.domNode);i.format(t,h)})},f.prototype.move=function(i){var e=this;this.copy(i),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},f.prototype.values=function(){var i=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=i.attributes[t].value(i.domNode),e},{})},f})();O.default=v}),(function(M,O,p){var P=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var e in i)i.hasOwnProperty(e)&&(f[e]=i[e])};return function(f,i){v(f,i);function e(){this.constructor=f}f.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}})();
31Object.defineProperty(O,"__esModule",{value:!0});var S=p(12);function k(v,f){var i=v.getAttribute("class")||"";return i.split(/\s+/).filter(function(e){return e.indexOf(f+"-")===0})}var g=(function(v){P(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.keys=function(i){return(i.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},f.prototype.add=function(i,e){return this.canAdd(i,e)?(this.remove(i),i.classList.add(this.keyName+"-"+e),!0):!1},f.prototype.remove=function(i){var e=k(i,this.keyName);e.forEach(function(t){i.classList.remove(t)}),i.classList.length===0&&i.removeAttribute("class")},f.prototype.value=function(i){var e=k(i,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(i,t)?t:""},f})(S.default);O.default=g}),(function(M,O,p){var P=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var e in i)i.hasOwnProperty(e)&&(f[e]=i[e])};return function(f,i){v(f,i);function e(){this.constructor=f}f.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}})();
31Object.defineProperty(O,"__esModule",{value:!0});var S=p(12);function k(v){var f=v.split("-"),i=f.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return f[0]+i}var g=(function(v){P(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.keys=function(i){return(i.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},f.prototype.add=function(i,e){return this.canAdd(i,e)?(i.style[k(this.keyName)]=e,!0):!1},f.prototype.remove=function(i){i.style[k(this.keyName)]="",i.getAttribute("style")||i.removeAttribute("style")},f.prototype.value=function(i){var e=i.style[k(this.keyName)];return this.canAdd(i,e)?e:""},f})(S.default);O.default=g}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function g(v,f){for(var i=0;i<f.length;i++){var e=f[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,f,i){return f&&g(v.prototype,f),i&&g(v,i),v}})();function S(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}var k=(function(){function g(v,f){S(this,g),this.quill=v,this.options=f,this.modules={}}return P(g,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(i){f.modules[i]==null&&f.addModule(i)})}},{key:"addModule",value:function(f){var i=this.quill.constructor.import("modules/"+f);return this.modules[f]=new i(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),g})();k.DEFAULTS={modules:{}},k.themes={default:k},O.default=k}
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function o(a,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}return function(a,r,n){return r&&o(a.prototype,r),n&&o(a,n),a}})(),S=function o(a,r,n){a===null&&(a=Function.prototype);var l=Object.getOwnPropertyDescriptor(a,r);if(l===void 0){var w=Object.getPrototypeOf(a);return w===null?void 0:o(w,r,n)}else{if("value"in l)return l.value;var m=l.get;return m===void 0?void 0:m.call(n)}},k=p(0),g=i(k),v=p(7),f=i(v);function i(o){return o&&o.__esModule?o:{default:o}}function e(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function t(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function h(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var u="\uFEFF",s=(function(o){h(a,o);function a(r){e(this,a);var n=t(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(l){n.contentNode.appendChild(l)}),n.leftGuard=document.createTextNode(u),n.rightGuard=document.createTextNode(u),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return P(a,[{key:"index",value:function(n,l){return n===this.leftGuard?0:n===this.rightGuard?1:S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"index",this).call(this,n,l)}},{key:"restore",value:function(n){var l=void 0,w=void 0,m=n.data.split(u).join("");if(n===this.leftGuard)if(this.prev instanceof f.default){var b=this.prev.length();this.prev.insertAt(b,m),l={startNode:this.prev.domNode,startOffset:b+m.length}}else w=document.createTextNode(m),this.parent.insertBefore(g.default.create(w),this),l={startNode:w,startOffset:m.length};else n===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,m),l={startNode:this.next.domNode,startOffset:m.length}):(w=document.createTextNode(m),this.parent.insertBefore(g.default.create(w),this.next),l={startNode:w,startOffset:m.length}));return n.data=u,l}},{key:"update",value:function(n,l){var w=this;n.forEach(function(m){if(m.type==="characterData"&&(m.target===w.leftGuard||m.target===w.rightGuard)){var b=w.restore(m.target);b&&(l.range=b)}})}}]),a})(g.default.Embed);O.default=s}
vendor: 1,380 bytes, line 31
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var P=p(0),S=k(P);function k(e){return e&&e.__esModule?e:{default:e}}var g={scope:S.default.Scope.BLOCK,whitelist:["right","center","justify"]},v=new S.default.Attributor.Attribute("align","align",g),f=new S.default.Attributor.Class("align","ql-align",g),i=new S.default.Attributor.Style("align","text-align",g);O.AlignAttribute=v,O.AlignClass=f,O.AlignStyle=i}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var P=p(0),S=g(P),k=p(26);function g(i){return i&&i.__esModule?i:{default:i}}var v=new S.default.Attributor.Class("background","ql-bg",{scope:S.default.Scope.INLINE}),f=new k.ColorAttributor("background","background-color",{scope:S.default.Scope.INLINE});O.BackgroundClass=v,O.BackgroundStyle=f}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var P=p(0),S=k(P);function k(e){return e&&e.__esModule?e:{default:e}}var g={scope:S.default.Scope.BLOCK,whitelist:["rtl"]},v=new S.default.Attributor.Attribute("direction","dir",g),f=new S.default.Attributor.Class("direction","ql-direction",g),i=new S.default.Attributor.Style("direction","direction",g);O.DirectionAttribute=v,O.DirectionClass=f,O.DirectionStyle=i}
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var P=(function(){function o(a,r){for(var n=0;n<r.length;n++){var l=r[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}return function(a,r,n){return r&&o(a.prototype,r),n&&o(a,n),a}})(),S=function o(a,r,n){a===null&&(a=Function.prototype);var l=Object.getOwnPropertyDescriptor(a,r);if(l===void 0){var w=Object.getPrototypeOf(a);return w===null?void 0:o(w,r,n)}else{if("value"in l)return l.value;var m=l.get;return m===void 0?void 0:m.call(n)}},k=p(0),g=v(k);function v(o){return o&&o.__esModule?o:{default:o}}function f(o,a){if(!(o instanceof a))throw new TypeError("Cannot call a class as a function")}function i(o,a){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:o}function e(o,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);o.prototype=Object.create(a&&a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(o,a):o.__proto__=a)}var t={scope:g.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new g.default.Attributor.Class("font","ql-font",t),u=(function(o){e(a,o);function a(){return f(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return P(a,[{key:"value",value:function(n){return S(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),a})(g.default.Attributor.Style),s=new u("font","font-family",t);O.FontStyle=s,O.FontClass=h}
vendor: 16,197 bytes, lines 31-32
31),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var P=p(0),S=k(P);function k(f){return f&&f.__esModule?f:{default:f}}var g=new S.default.Attributor.Class("size","ql-size",{scope:S.default.Scope.INLINE,whitelist:["small","large","huge"]}),v=new S.default.Attributor.Style("size","font-size",{scope:S.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=g,O.SizeStyle=v}),(function(M,O,p){M.exports={align:{"":p(76),center:p(77),right:p(78),justify:p(79)},background:p(80),blockquote:p(81),bold:p(82),clean:p(83),code:p(58),"code-block":p(58),color:p(84),direction:{"":p(85),rtl:p(86)},float:{center:p(87),full:p(88),left:p(89),right:p(90)},formula:p(91),header:{1:p(92),2:p(93)},italic:p(94),image:p(95),indent:{"+1":p(96),"-1":p(97)},link:p(98),list:{ordered:p(99),bullet:p(100),check:p(101)},script:{sub:p(102),super:p(103)},strike:p(104),underline:p(105),video:p(106)}}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var P=(function(){function r(n,l){for(var w=0;w<l.length;w++){var m=l[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(n,m.key,m)}}return function(n,l,w){return l&&r(n.prototype,l),w&&r(n,w),n}})(),S=p(0),k=e(S),g=p(5),v=e(g),f=p(9),i=e(f);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function h(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function u(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var s=(function(r){u(n,r);function n(l,w){t(this,n);var m=h(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,l,w));return m.lastRecorded=0,m.ignoreChange=!1,m.clear(),m.quill.on(v.default.events.EDITOR_CHANGE,function(b,A,_,d){b!==v.default.events.TEXT_CHANGE||m.ignoreChange||(!m.options.userOnly||d===v.default.sources.USER?m.record(A,_):m.transform(A))}),m.quill.keyboard.addBinding({key:"Z",shortKey:!0},m.undo.bind(m)),m.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},m.redo.bind(m)),/Win/i.test(navigator.platform)&&m.quill.keyboard.addBinding({key:"Y",shortKey:!0},m.redo.bind(m)),m}return P(n,[{key:"change",value:function(w,m){if(this.stack[w].length!==0){var b=this.stack[w].pop();this.stack[m].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[w],v.default.sources.USER),this.ignoreChange=!1;var A=a(b[w]);this.quill.setSelection(A)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(w,m){if(w.ops.length!==0){this.stack.redo=[];var b=this.quill.getContents().diff(m),A=Date.now();if(this.lastRecorded+this.options.delay>A&&this.stack.undo.length>0){var _=this.stack.undo.pop();b=b.compose(_.undo),w=_.redo.compose(w)}else this.lastRecorded=A;this.stack.undo.push({redo:w,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(w){this.stack.undo.forEach(function(m){m.undo=w.transform(m.undo,!0),m.redo=w.transform(m.redo,!0)}),this.stack.redo.forEach(function(m){m.undo=w.transform(m.undo,!0),m.redo=w.transform(m.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n})(i.default);s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function o(r){var n=r.ops[r.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
32`):n.attributes!=null?Object.keys(n.attributes).some(function(l){return k.default.query(l,k.default.Scope.BLOCK)!=null}):!1}function a(r){var n=r.reduce(function(w,m){return w+=m.delete||0,w},0),l=r.length()-n;return o(r)&&(l-=1),l}O.default=s,O.getLastChangeIndex=a}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=(function(){function R(j,H){for(var D=0;D<H.length;D++){var L=H[D];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(j,L.key,L)}}return function(j,H,D){return H&&R(j.prototype,H),D&&R(j,D),j}})(),S=function R(j,H,D){j===null&&(j=Function.prototype);var L=Object.getOwnPropertyDescriptor(j,H);if(L===void 0){var C=Object.getPrototypeOf(j);return C===null?void 0:R(C,H,D)}else{if("value"in L)return L.value;var V=L.get;return V===void 0?void 0:V.call(D)}},k=p(3),g=A(k),v=p(2),f=A(v),i=p(8),e=A(i),t=p(23),h=A(t),u=p(34),s=A(u),o=p(59),a=A(o),r=p(60),n=A(r),l=p(28),w=A(l),m=p(61),b=A(m);function A(R){return R&&R.__esModule?R:{default:R}}function _(R,j){if(!(R instanceof j))throw new TypeError("Cannot call a class as a function")}function d(R,j){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:R}function y(R,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);R.prototype=Object.create(j&&j.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(R,j):R.__proto__=j)}var E=[!1,"center","right","justify"],N=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],I=[!1,"serif","monospace"],U=["1","2","3",!1],z=["small",!1,"large","huge"],W=(function(R){y(j,R);function j(H,D){_(this,j);var L=d(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,D)),C=function V(K){if(!document.body.contains(H.root))return document.body.removeEventListener("click",V);L.tooltip!=null&&!L.tooltip.root.contains(K.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(Q){Q.container.contains(K.target)||Q.close()})};return H.emitter.listenDOM("click",document.body,C),L}return P(j,[{key:"addModule",value:function(D){var L=S(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,D);return D==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(D,L){D.forEach(function(C){var V=C.getAttribute("class")||"";V.split(/\s+/).forEach(function(K){if(K.startsWith("ql-")&&(K=K.slice(3),L[K]!=null))if(K==="direction")C.innerHTML=L[K][""]+L[K].rtl;else if(typeof L[K]=="string")C.innerHTML=L[K];else{var Q=C.value||"";Q!=null&&L[K][Q]&&(C.innerHTML=L[K][Q])}})})}},{key:"buildPickers",value:function(D,L){var C=this;this.pickers=D.map(function(K){if(K.classList.contains("ql-align"))return K.querySelector("option")==null&&T(K,E),new n.default(K,L.align);if(K.classList.contains("ql-background")||K.classList.contains("ql-color")){var Q=K.classList.contains("ql-background")?"background":"color";return K.querySelector("option")==null&&T(K,N,Q==="background"?"#ffffff":"#000000"),new a.default(K,L[Q])}else return K.querySelector("option")==null&&(K.classList.contains("ql-font")?T(K,I):K.classList.contains("ql-header")?T(K,U):K.classList.contains("ql-size")&&T(K,z)),new w.default(K)});var V=function(){C.pickers.forEach(function(Q){Q.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,V)}}]),j})(s.default);W.DEFAULTS=(0,g.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,H=this.container.querySelector("input.ql-image[type=file]");H==null&&(H=document.createElement("input"),H.setAttribute("type","file"),H.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),H.classList.add("ql-image"),H.addEventListener("change",function(){if(H.files!=null&&H.files[0]!=null){var D=new FileReader;D.onload=function(L){var C=j.quill.getSelection(!0);j.quill.updateContents(new f.default().retain(C.index).delete(C.length).insert({image:L.target.result}),e.default.sources.USER),j.quill.setSelection(C.index+1,e.default.sources.SILENT),H.value=""},D.readAsDataURL(H.files[0])}}),this.container.appendChild(H)),H.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var F=(function(R){y(j,R);function j(H,D){_(this,j);var L=d(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,H,D));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return P(j,[{key:"listen",value:function(){var D=this;this.textbox.addEventListener("keydown",function(L){h.default.match(L,"enter")?(D.save(),L.preventDefault()):h.default.match(L,"escape")&&(D.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:D!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+D)||""),this.root.setAttribute("data-mode",D)}},{key:"restoreFocus",value:function(){var D=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=D}},{key:"save",value:function(){var D=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",D,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",D,e.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":D=q(D);case"formula":{if(!D)break;var C=this.quill.getSelection(!0);if(C!=null){var V=C.index+C.length;this.quill.insertEmbed(V,this.root.getAttribute("data-mode"),D,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(V+1," ",e.default.sources.USER),this.quill.setSelection(V+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j})(b.default);function q(R){var j=R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||R.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=R.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":R}function T(R,j){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(D){var L=document.createElement("option");D===H?L.setAttribute("selected","selected"):L.setAttribute("value",D),R.appendChild(L)})}O.BaseTooltip=F,O.default=W}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function S(){this.head=this.tail=null,this.length=0}return S.prototype.append=function(){for(var k=[],g=0;g<arguments.length;g++)k[g]=arguments[g];this.insertBefore(k[0],null),k.length>1&&this.append.apply(this,k.slice(1))},S.prototype.contains=function(k){for(var g,v=this.iterator();g=v();)if(g===k)return!0;return!1},S.prototype.insertBefore=function(k,g){k&&(k.next=g,g!=null?(k.prev=g.prev,g.prev!=null&&(g.prev.next=k),g.prev=k,g===this.head&&(this.head=k)):this.tail!=null?(this.tail.next=k,k.prev=this.tail,this.tail=k):(k.prev=null,this.head=this.tail=k),this.length+=1)},S.prototype.offset=function(k){for(var g=0,v=this.head;v!=null;){if(v===k)return g;g+=v.length(),v=v.next}return-1},S.prototype.remove=function(k){this.contains(k)&&(k.prev!=null&&(k.prev.next=k.next),k.next!=null&&(k.next.prev=k.prev),k===this.head&&(this.head=k.next),k===this.tail&&(this.tail=k.prev),this.length-=1)},S.prototype.iterator=function(k){return k===void 0&&(k=this.head),function(){var g=k;return k!=null&&(k=k.next),g}},S.prototype.find=function(k,g){g===void 0&&(g=!1);for(var v,f=this.iterator();v=f();){var i=v.length();if(k<i||g&&k===i&&(v.next==null||v.next.length()!==0))return[v,k];k-=i}return[null,0]},S.prototype.forEach=function(k){for(var g,v=this.iterator();g=v();)k(g)},S.prototype.forEachAt=function(k,g,v){if(!(g<=0))for(var f=this.find(k),i=f[0],e=f[1],t,h=k-e,u=this.iterator(i);(t=u())&&h<k+g;){var s=t.length();k>h?v(t,k-h,Math.min(g,h+s-k)):v(t,0,Math.min(s,k+g-h)),h+=s}},S.prototype.map=function(k){return this.reduce(function(g,v){return g.push(k(v)),g},[])},S.prototype.reduce=function(k,g){for(var v,f=this.iterator();v=f();)g=k(g,v);return g},S})();O.default=P}),(function(M,O,p){var P=this&&this.__extends||(function(){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var h in t)t.hasOwnProperty(h)&&(e[h]=t[h])};return function(e,t){i(e,t);function h(){this.constructor=e}e.prototype=t===null?Object.create(t):(h.prototype=t.prototype,new h)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=p(17),k=p(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},v=100,f=(function(i){P(e,i);function e(t){var h=i.call(this,t)||this;return h.scroll=h,h.observer=new MutationObserver(function(u){h.update(u)}),h.observer.observe(h.domNode,g),h.attach(),h}return e.prototype.detach=function(){i.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,h){this.update(),t===0&&h===this.length()?this.children.forEach(function(u){u.remove()}):i.prototype.deleteAt.call(this,t,h)},e.prototype.formatAt=function(t,h,u,s){this.update(),i.prototype.formatAt.call(this,t,h,u,s)},e.prototype.insertAt=function(t,h,u){this.update(),i.prototype.insertAt.call(this,t,h,u)},e.prototype.optimize=function(t,h){var u=this;t===void 0&&(t=[]),h===void 0&&(h={}),i.prototype.optimize.call(this,h);for(var s=[].slice.call(this.observer.takeRecords());s.length>0;)t.push(s.pop());for(var o=function(l,w){w===void 0&&(w=!0),!(l==null||l===u)&&l.domNode.parentNode!=null&&(l.domNode[k.DATA_KEY].mutations==null&&(l.domNode[k.DATA_KEY].mutations=[]),w&&o(l.parent))},a=function(l){l.domNode[k.DATA_KEY]==null||l.domNode[k.DATA_KEY].mutations==null||(l instanceof S.default&&l.children.forEach(a),l.optimize(h))},r=t,n=0;r.length>0;n+=1){if(n>=v)throw new Error("[Parchment] Maximum optimize iterations reached");for(r.forEach(function(l){var w=k.find(l.target,!0);w!=null&&(w.domNode===l.target&&(l.type==="childList"?(o(k.find(l.previousSibling,!1)),[].forEach.call(l.addedNodes,function(m){var b=k.find(m,!1);o(b,!1),b instanceof S.default&&b.children.forEach(function(A){o(A,!1)})})):l.type==="attributes"&&o(w.prev)),o(w))}),this.children.forEach(a),r=[].slice.call(this.observer.takeRecords()),s=r.slice();s.length>0;)t.push(s.pop())}},e.prototype.update=function(t,h){var u=this;h===void 0&&(h={}),t=t||this.observer.takeRecords(),t.map(function(s){var o=k.find(s.target,!0);return o==null?null:o.domNode[k.DATA_KEY].mutations==null?(o.domNode[k.DATA_KEY].mutations=[s],o):(o.domNode[k.DATA_KEY].mutations.push(s),null)}).forEach(function(s){s==null||s===u||s.domNode[k.DATA_KEY]==null||s.update(s.domNode[k.DATA_KEY].mutations||[],h)}),this.domNode[k.DATA_KEY].mutations!=null&&i.prototype.update.call(this,this.domNode[k.DATA_KEY].mutations,h),this.optimize(t,h)},e.blotName="scroll",e.defaultChild="block",e.scope=k.Scope.BLOCK_BLOT,e.tagName="DIV",e})(S.default);O.default=f}),(function(M,O,p){var P=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,e){i.__proto__=e}||function(i,e){for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t])};return function(i,e){f(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}})();
32Object.defineProperty(O,"__esModule",{value:!0});var S=p(18),k=p(1);function g(f,i){if(Object.keys(f).length!==Object.keys(i).length)return!1;for(var e in f)if(f[e]!==i[e])return!1;return!0}var v=(function(f){P(i,f);function i(){return f!==null&&f.apply(this,arguments)||this}return i.formats=function(e){if(e.tagName!==i.tagName)return f.formats.call(this,e)},i.prototype.format=function(e,t){var h=this;e===this.statics.blotName&&!t?(this.children.forEach(function(u){u instanceof S.default||(u=u.wrap(i.blotName,!0)),h.attributes.copy(u)}),this.unwrap()):f.prototype.format.call(this,e,t)},i.prototype.formatAt=function(e,t,h,u){if(this.formats()[h]!=null||k.query(h,k.Scope.ATTRIBUTE)){var s=this.isolate(e,t);s.format(h,u)}else f.prototype.formatAt.call(this,e,t,h,u)},i.prototype.optimize=function(e){f.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var h=this.next;h instanceof i&&h.prev===this&&g(t,h.formats())&&(h.moveChildren(this),h.remove())},i.blotName="inline",i.scope=k.Scope.INLINE_BLOT,i.tagName="SPAN",i})(S.default);O.default=v}),(function(M,O,p){var P=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var e in i)i.hasOwnProperty(e)&&(f[e]=i[e])};return function(f,i){v(f,i);function e(){this.constructor=f}f.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}})();
32Object.defineProperty(O,"__esModule",{value:!0});var S=p(18),k=p(1),g=(function(v){P(f,v);function f(){return v!==null&&v.apply(this,arguments)||this}return f.formats=function(i){var e=k.query(f.blotName).tagName;if(i.tagName!==e)return v.formats.call(this,i)},f.prototype.format=function(i,e){k.query(i,k.Scope.BLOCK)!=null&&(i===this.statics.blotName&&!e?this.replaceWith(f.blotName):v.prototype.format.call(this,i,e))},f.prototype.formatAt=function(i,e,t,h){k.query(t,k.Scope.BLOCK)!=null?this.format(t,h):v.prototype.formatAt.call(this,i,e,t,h)},f.prototype.insertAt=function(i,e,t){if(t==null||k.query(e,k.Scope.INLINE)!=null)v.prototype.insertAt.call(this,i,e,t);else{var h=this.split(i),u=k.create(e,t);h.parent.insertBefore(u,h)}},f.prototype.update=function(i,e){navigator.userAgent.match(/Trident/)?this.build():v.prototype.update.call(this,i,e)},f.blotName="block",f.scope=k.Scope.BLOCK_BLOT,f.tagName="P",f})(S.default);O.default=g}),(function(M,O,p){var P=this&&this.__extends||(function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,f){v.__proto__=f}||function(v,f){for(var i in f)f.hasOwnProperty(i)&&(v[i]=f[i])};return function(v,f){g(v,f);function i(){this.constructor=v}v.prototype=f===null?Object.create(f):(i.prototype=f.prototype,new i)}})();
vendor: 20,582 bytes, lines 32-41
32Object.defineProperty(O,"__esModule",{value:!0});var S=p(19),k=(function(g){P(v,g);function v(){return g!==null&&g.apply(this,arguments)||this}return v.formats=function(f){},v.prototype.format=function(f,i){g.prototype.formatAt.call(this,0,this.length(),f,i)},v.prototype.formatAt=function(f,i,e,t){f===0&&i===this.length()?this.format(e,t):g.prototype.formatAt.call(this,f,i,e,t)},v.prototype.formats=function(){return this.statics.formats(this.domNode)},v})(S.default);O.default=k}),(function(M,O,p){var P=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,i){f.__proto__=i}||function(f,i){for(var e in i)i.hasOwnProperty(e)&&(f[e]=i[e])};return function(f,i){v(f,i);function e(){this.constructor=f}f.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}})();Object.defineProperty(O,"__esModule",{value:!0});var S=p(19),k=p(1),g=(function(v){P(f,v);function f(i){var e=v.call(this,i)||this;return e.text=e.statics.value(e.domNode),e}return f.create=function(i){return document.createTextNode(i)},f.value=function(i){var e=i.data;return e.normalize&&(e=e.normalize()),e},f.prototype.deleteAt=function(i,e){this.domNode.data=this.text=this.text.slice(0,i)+this.text.slice(i+e)},f.prototype.index=function(i,e){return this.domNode===i?e:-1},f.prototype.insertAt=function(i,e,t){t==null?(this.text=this.text.slice(0,i)+e+this.text.slice(i),this.domNode.data=this.text):v.prototype.insertAt.call(this,i,e,t)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(i){v.prototype.optimize.call(this,i),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(i,e){return[this.domNode,i]},f.prototype.split=function(i,e){if(e===void 0&&(e=!1),!e){if(i===0)return this;if(i===this.length())return this.next}var t=k.create(this.domNode.splitText(i));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},f.prototype.update=function(i,e){var t=this;i.some(function(h){return h.type==="characterData"&&h.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=k.Scope.INLINE_BLOT,f})(S.default);O.default=g}),(function(M,O,p){var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var S=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(k,g){return arguments.length>1&&!this.contains(k)==!g?g:S.call(this,k)}}String.prototype.startsWith||(String.prototype.startsWith=function(k,g){return g=g||0,this.substr(g,k.length)===k}),String.prototype.endsWith||(String.prototype.endsWith=function(k,g){var v=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>v.length)&&(g=v.length),g-=k.length;var f=v.indexOf(k,g);return f!==-1&&f===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof g!="function")throw new TypeError("predicate must be a function");for(var v=Object(this),f=v.length>>>0,i=arguments[1],e,t=0;t<f;t++)if(e=v[t],g.call(i,e,t,v))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(M,O){var p=-1,P=1,S=0;function k(n,l,w){if(n==l)return n?[[S,n]]:[];(w<0||n.length<w)&&(w=null);var m=i(n,l),b=n.substring(0,m);n=n.substring(m),l=l.substring(m),m=e(n,l);var A=n.substring(n.length-m);n=n.substring(0,n.length-m),l=l.substring(0,l.length-m);var _=g(n,l);return b&&_.unshift([S,b]),A&&_.push([S,A]),h(_),w!=null&&(_=o(_,w)),_=a(_),_}function g(n,l){var w;if(!n)return[[P,l]];if(!l)return[[p,n]];var m=n.length>l.length?n:l,b=n.length>l.length?l:n,A=m.indexOf(b);if(A!=-1)return w=[[P,m.substring(0,A)],[S,b],[P,m.substring(A+b.length)]],n.length>l.length&&(w[0][0]=w[2][0]=p),w;if(b.length==1)return[[p,n],[P,l]];var _=t(n,l);if(_){var d=_[0],y=_[1],E=_[2],N=_[3],I=_[4],U=k(d,E),z=k(y,N);return U.concat([[S,I]],z)}return v(n,l)}function v(n,l){for(var w=n.length,m=l.length,b=Math.ceil((w+m)/2),A=b,_=2*b,d=new Array(_),y=new Array(_),E=0;E<_;E++)d[E]=-1,y[E]=-1;d[A+1]=0,y[A+1]=0;for(var N=w-m,I=N%2!=0,U=0,z=0,W=0,F=0,q=0;q<b;q++){for(var T=-q+U;T<=q-z;T+=2){var R=A+T,j;T==-q||T!=q&&d[R-1]<d[R+1]?j=d[R+1]:j=d[R-1]+1;for(var H=j-T;j<w&&H<m&&n.charAt(j)==l.charAt(H);)j++,H++;if(d[R]=j,j>w)z+=2;else if(H>m)U+=2;else if(I){var D=A+N-T;if(D>=0&&D<_&&y[D]!=-1){var L=w-y[D];if(j>=L)return f(n,l,j,H)}}}for(var C=-q+W;C<=q-F;C+=2){var D=A+C,L;C==-q||C!=q&&y[D-1]<y[D+1]?L=y[D+1]:L=y[D-1]+1;for(var V=L-C;L<w&&V<m&&n.charAt(w-L-1)==l.charAt(m-V-1);)L++,V++;if(y[D]=L,L>w)F+=2;else if(V>m)W+=2;else if(!I){var R=A+N-C;if(R>=0&&R<_&&d[R]!=-1){var j=d[R],H=A+j-R;if(L=w-L,j>=L)return f(n,l,j,H)}}}}return[[p,n],[P,l]]}function f(n,l,w,m){var b=n.substring(0,w),A=l.substring(0,m),_=n.substring(w),d=l.substring(m),y=k(b,A),E=k(_,d);return y.concat(E)}function i(n,l){if(!n||!l||n.charAt(0)!=l.charAt(0))return 0;for(var w=0,m=Math.min(n.length,l.length),b=m,A=0;w<b;)n.substring(A,b)==l.substring(A,b)?(w=b,A=w):m=b,b=Math.floor((m-w)/2+w);return b}function e(n,l){if(!n||!l||n.charAt(n.length-1)!=l.charAt(l.length-1))return 0;for(var w=0,m=Math.min(n.length,l.length),b=m,A=0;w<b;)n.substring(n.length-b,n.length-A)==l.substring(l.length-b,l.length-A)?(w=b,A=w):m=b,b=Math.floor((m-w)/2+w);return b}function t(n,l){var w=n.length>l.length?n:l,m=n.length>l.length?l:n;if(w.length<4||m.length*2<w.length)return null;function b(z,W,F){for(var q=z.substring(F,F+Math.floor(z.length/4)),T=-1,R="",j,H,D,L;(T=W.indexOf(q,T+1))!=-1;){var C=i(z.substring(F),W.substring(T)),V=e(z.substring(0,F),W.substring(0,T));R.length<V+C&&(R=W.substring(T-V,T)+W.substring(T,T+C),j=z.substring(0,F-V),H=z.substring(F+C),D=W.substring(0,T-V),L=W.substring(T+C))}return R.length*2>=z.length?[j,H,D,L,R]:null}var A=b(w,m,Math.ceil(w.length/4)),_=b(w,m,Math.ceil(w.length/2)),d;if(!A&&!_)return null;_?A?d=A[4].length>_[4].length?A:_:d=_:d=A;var y,E,N,I;n.length>l.length?(y=d[0],E=d[1],N=d[2],I=d[3]):(N=d[0],I=d[1],y=d[2],E=d[3]);var U=d[4];return[y,E,N,I,U]}function h(n){n.push([S,""]);for(var l=0,w=0,m=0,b="",A="",_;l<n.length;)switch(n[l][0]){case P:m++,A+=n[l][1],l++;break;case p:w++,b+=n[l][1],l++;break;case S:w+m>1?(w!==0&&m!==0&&(_=i(A,b),_!==0&&(l-w-m>0&&n[l-w-m-1][0]==S?n[l-w-m-1][1]+=A.substring(0,_):(n.splice(0,0,[S,A.substring(0,_)]),l++),A=A.substring(_),b=b.substring(_)),_=e(A,b),_!==0&&(n[l][1]=A.substring(A.length-_)+n[l][1],A=A.substring(0,A.length-_),b=b.substring(0,b.length-_))),w===0?n.splice(l-m,w+m,[P,A]):m===0?n.splice(l-w,w+m,[p,b]):n.splice(l-w-m,w+m,[p,b],[P,A]),l=l-w-m+(w?1:0)+(m?1:0)+1):l!==0&&n[l-1][0]==S?(n[l-1][1]+=n[l][1],n.splice(l,1)):l++,m=0,w=0,b="",A="";break}n[n.length-1][1]===""&&n.pop();var d=!1;for(l=1;l<n.length-1;)n[l-1][0]==S&&n[l+1][0]==S&&(n[l][1].substring(n[l][1].length-n[l-1][1].length)==n[l-1][1]?(n[l][1]=n[l-1][1]+n[l][1].substring(0,n[l][1].length-n[l-1][1].length),n[l+1][1]=n[l-1][1]+n[l+1][1],n.splice(l-1,1),d=!0):n[l][1].substring(0,n[l+1][1].length)==n[l+1][1]&&(n[l-1][1]+=n[l+1][1],n[l][1]=n[l][1].substring(n[l+1][1].length)+n[l+1][1],n.splice(l+1,1),d=!0)),l++;d&&h(n)}var u=k;u.INSERT=P,u.DELETE=p,u.EQUAL=S,M.exports=u;function s(n,l){if(l===0)return[S,n];for(var w=0,m=0;m<n.length;m++){var b=n[m];if(b[0]===p||b[0]===S){var A=w+b[1].length;if(l===A)return[m+1,n];if(l<A){n=n.slice();var _=l-w,d=[b[0],b[1].slice(0,_)],y=[b[0],b[1].slice(_)];return n.splice(m,1,d,y),[m+1,n]}else w=A}}throw new Error("cursor_pos is out of bounds!")}function o(n,l){var w=s(n,l),m=w[1],b=w[0],A=m[b],_=m[b+1];if(A==null)return n;if(A[0]!==S)return n;if(_!=null&&A[1]+_[1]===_[1]+A[1])return m.splice(b,2,_,A),r(m,b,2);if(_!=null&&_[1].indexOf(A[1])===0){m.splice(b,2,[_[0],A[1]],[0,A[1]]);var d=_[1].slice(A[1].length);return d.length>0&&m.splice(b+2,0,[_[0],d]),r(m,b,3)}else return n}function a(n){for(var l=!1,w=function(_){return _.charCodeAt(0)>=56320&&_.charCodeAt(0)<=57343},m=function(_){return _.charCodeAt(_.length-1)>=55296&&_.charCodeAt(_.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===S&&m(n[b-2][1])&&n[b-1][0]===p&&w(n[b-1][1])&&n[b][0]===P&&w(n[b][1])&&(l=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!l)return n;for(var A=[],b=0;b<n.length;b+=1)n[b][1].length>0&&A.push(n[b]);return A}function r(n,l,w){for(var m=l+w-1;m>=0&&m>=l-1;m--)if(m+1<n.length){var b=n[m],A=n[m+1];b[0]===A[1]&&n.splice(m,2,[b[0],b[1]+A[1]])}return n}}),(function(M,O){O=M.exports=typeof Object.keys=="function"?Object.keys:p,O.shim=p;function p(P){var S=[];for(var k in P)S.push(k);return S}}),(function(M,O){var p=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";O=M.exports=p?P:S,O.supported=P;function P(k){return Object.prototype.toString.call(k)=="[object Arguments]"}O.unsupported=S;function S(k){return k&&typeof k=="object"&&typeof k.length=="number"&&Object.prototype.hasOwnProperty.call(k,"callee")&&!Object.prototype.propertyIsEnumerable.call(k,"callee")||!1}}),(function(M,O){var p=Object.prototype.hasOwnProperty,P="~";function S(){}Object.create&&(S.prototype=Object.create(null),new S().__proto__||(P=!1));function k(v,f,i){this.fn=v,this.context=f,this.once=i||!1}function g(){this._events=new S,this._eventsCount=0}g.prototype.eventNames=function(){var f=[],i,e;if(this._eventsCount===0)return f;for(e in i=this._events)p.call(i,e)&&f.push(P?e.slice(1):e);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(i)):f},g.prototype.listeners=function(f,i){var e=P?P+f:f,t=this._events[e];if(i)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var h=0,u=t.length,s=new Array(u);h<u;h++)s[h]=t[h].fn;return s},g.prototype.emit=function(f,i,e,t,h,u){var s=P?P+f:f;if(!this._events[s])return!1;var o=this._events[s],a=arguments.length,r,n;if(o.fn){switch(o.once&&this.removeListener(f,o.fn,void 0,!0),a){case 1:return o.fn.call(o.context),!0;case 2:return o.fn.call(o.context,i),!0;case 3:return o.fn.call(o.context,i,e),!0;case 4:return o.fn.call(o.context,i,e,t),!0;case 5:return o.fn.call(o.context,i,e,t,h),!0;case 6:return o.fn.call(o.context,i,e,t,h,u),!0}for(n=1,r=new Array(a-1);n<a;n++)r[n-1]=arguments[n];o.fn.apply(o.context,r)}else{var l=o.length,w;for(n=0;n<l;n++)switch(o[n].once&&this.removeListener(f,o[n].fn,void 0,!0),a){case 1:o[n].fn.call(o[n].context);break;case 2:o[n].fn.call(o[n].context,i);break;case 3:o[n].fn.call(o[n].context,i,e);break;case 4:o[n].fn.call(o[n].context,i,e,t);break;default:if(!r)for(w=1,r=new Array(a-1);w<a;w++)r[w-1]=arguments[w];o[n].fn.apply(o[n].context,r)}}return!0},g.prototype.on=function(f,i,e){var t=new k(i,e||this),h=P?P+f:f;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],t]:this._events[h].push(t):(this._events[h]=t,this._eventsCount++),this},g.prototype.once=function(f,i,e){var t=new k(i,e||this,!0),h=P?P+f:f;return this._events[h]?this._events[h].fn?this._events[h]=[this._events[h],t]:this._events[h].push(t):(this._events[h]=t,this._eventsCount++),this},g.prototype.removeListener=function(f,i,e,t){var h=P?P+f:f;if(!this._events[h])return this;if(!i)return--this._eventsCount===0?this._events=new S:delete this._events[h],this;var u=this._events[h];if(u.fn)u.fn===i&&(!t||u.once)&&(!e||u.context===e)&&(--this._eventsCount===0?this._events=new S:delete this._events[h]);else{for(var s=0,o=[],a=u.length;s<a;s++)(u[s].fn!==i||t&&!u[s].once||e&&u[s].context!==e)&&o.push(u[s]);o.length?this._events[h]=o.length===1?o[0]:o:--this._eventsCount===0?this._events=new S:delete this._events[h]}return this},g.prototype.removeAllListeners=function(f){var i;return f?(i=P?P+f:f,this._events[i]&&(--this._eventsCount===0?this._events=new S:delete this._events[i])):(this._events=new S,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=P,g.EventEmitter=g,typeof M<"u"&&(M.exports=g)}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},S=(function(){function G(Y,J){var ee=[],X=!0,ue=!1,oe=void 0;try{for(var le=Y[Symbol.iterator](),xe;!(X=(xe=le.next()).done)&&(ee.push(xe.value),!(J&&ee.length===J));X=!0);}catch(Te){ue=!0,oe=Te}finally{try{!X&&le.return&&le.return()}finally{if(ue)throw oe}}return ee}return function(Y,J){if(Array.isArray(Y))return Y;if(Symbol.iterator in Object(Y))return G(Y,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),k=(function(){function G(Y,J){for(var ee=0;ee<J.length;ee++){var X=J[ee];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(Y,X.key,X)}}return function(Y,J,ee){return J&&G(Y.prototype,J),ee&&G(Y,ee),Y}})(),g=p(3),v=y(g),f=p(2),i=y(f),e=p(0),t=y(e),h=p(5),u=y(h),s=p(10),o=y(s),a=p(9),r=y(a),n=p(36),l=p(37),w=p(13),m=y(w),b=p(26),A=p(38),_=p(39),d=p(40);function y(G){return G&&G.__esModule?G:{default:G}}function E(G,Y,J){return Y in G?Object.defineProperty(G,Y,{value:J,enumerable:!0,configurable:!0,writable:!0}):G[Y]=J,G}function N(G,Y){if(!(G instanceof Y))throw new TypeError("Cannot call a class as a function")}function I(G,Y){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Y&&(typeof Y=="object"||typeof Y=="function")?Y:G}function U(G,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Y);G.prototype=Object.create(Y&&Y.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),Y&&(Object.setPrototypeOf?Object.setPrototypeOf(G,Y):G.__proto__=Y)}var z=(0,o.default)("quill:clipboard"),W="__ql-matcher",F=[[Node.TEXT_NODE,be],[Node.TEXT_NODE,fe],["br",te],[Node.ELEMENT_NODE,fe],[Node.ELEMENT_NODE,Q],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,Oe],["li",ae],["b",V.bind(V,"bold")],["i",V.bind(V,"italic")],["style",ie]],q=[n.AlignAttribute,A.DirectionAttribute].reduce(function(G,Y){return G[Y.keyName]=Y,G},{}),T=[n.AlignStyle,l.BackgroundStyle,b.ColorStyle,A.DirectionStyle,_.FontStyle,d.SizeStyle].reduce(function(G,Y){return G[Y.keyName]=Y,G},{}),R=(function(G){U(Y,G);function Y(J,ee){N(this,Y);var X=I(this,(Y.__proto__||Object.getPrototypeOf(Y)).call(this,J,ee));return X.quill.root.addEventListener("paste",X.onPaste.bind(X)),X.container=X.quill.addContainer("ql-clipboard"),X.container.setAttribute("contenteditable",!0),X.container.setAttribute("tabindex",-1),X.matchers=[],F.concat(X.options.matchers).forEach(function(ue){var oe=S(ue,2),le=oe[0],xe=oe[1];!ee.matchVisual&&xe===ce||X.addMatcher(le,xe)}),X}return k(Y,[{key:"addMatcher",value:function(ee,X){this.matchers.push([ee,X])}},{key:"convert",value:function(ee){if(typeof ee=="string")return this.container.innerHTML=ee.replace(/\>\r?\n +\</g,"><"),this.convert();var X=this.quill.getFormat(this.quill.selection.savedRange.index);if(X[m.default.blotName]){var ue=this.container.innerText;return this.container.innerHTML="",new i.default().insert(ue,E({},m.default.blotName,X[m.default.blotName]))}var oe=this.prepareMatching(),le=S(oe,2),xe=le[0],Te=le[1],ge=C(this.container,xe,Te);return D(ge,`
33`)&&ge.ops[ge.ops.length-1].attributes==null&&(ge=ge.compose(new i.default().retain(ge.length()-1).delete(1))),z.log("convert",this.container.innerHTML,ge),this.container.innerHTML="",ge}},{key:"dangerouslyPasteHTML",value:function(ee,X){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u.default.sources.API;if(typeof ee=="string")this.quill.setContents(this.convert(ee),X),this.quill.setSelection(0,u.default.sources.SILENT);else{var oe=this.convert(X);this.quill.updateContents(new i.default().retain(ee).concat(oe),ue),this.quill.setSelection(ee+oe.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(ee){var X=this;if(!(ee.defaultPrevented||!this.quill.isEnabled())){var ue=this.quill.getSelection(),oe=new i.default().retain(ue.index),le=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout(function(){oe=oe.concat(X.convert()).delete(ue.length),X.quill.updateContents(oe,u.default.sources.USER),X.quill.setSelection(oe.length()-ue.length,u.default.sources.SILENT),X.quill.scrollingContainer.scrollTop=le,X.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ee=this,X=[],ue=[];return this.matchers.forEach(function(oe){var le=S(oe,2),xe=le[0],Te=le[1];switch(xe){case Node.TEXT_NODE:ue.push(Te);break;case Node.ELEMENT_NODE:X.push(Te);break;default:[].forEach.call(ee.container.querySelectorAll(xe),function(ge){ge[W]=ge[W]||[],ge[W].push(Te)});break}}),[X,ue]}}]),Y})(r.default);R.DEFAULTS={matchers:[],matchVisual:!0};function j(G,Y,J){return(typeof Y>"u"?"undefined":P(Y))==="object"?Object.keys(Y).reduce(function(ee,X){return j(ee,X,Y[X])},G):G.reduce(function(ee,X){return X.attributes&&X.attributes[Y]?ee.push(X):ee.insert(X.insert,(0,v.default)({},E({},Y,J),X.attributes))},new i.default)}function H(G){if(G.nodeType!==Node.ELEMENT_NODE)return{};var Y="__ql-computed-style";return G[Y]||(G[Y]=window.getComputedStyle(G))}function D(G,Y){for(var J="",ee=G.ops.length-1;ee>=0&&J.length<Y.length;--ee){var X=G.ops[ee];if(typeof X.insert!="string")break;J=X.insert+J}return J.slice(-1*Y.length)===Y}function L(G){if(G.childNodes.length===0)return!1;var Y=H(G);return["block","list-item"].indexOf(Y.display)>-1}function C(G,Y,J){return G.nodeType===G.TEXT_NODE?J.reduce(function(ee,X){return X(G,ee)},new i.default):G.nodeType===G.ELEMENT_NODE?[].reduce.call(G.childNodes||[],function(ee,X){var ue=C(X,Y,J);return X.nodeType===G.ELEMENT_NODE&&(ue=Y.reduce(function(oe,le){return le(X,oe)},ue),ue=(X[W]||[]).reduce(function(oe,le){return le(X,oe)},ue)),ee.concat(ue)},new i.default):new i.default}function V(G,Y,J){return j(J,G,!0)}function K(G,Y){var J=t.default.Attributor.Attribute.keys(G),ee=t.default.Attributor.Class.keys(G),X=t.default.Attributor.Style.keys(G),ue={};return J.concat(ee).concat(X).forEach(function(oe){var le=t.default.query(oe,t.default.Scope.ATTRIBUTE);le!=null&&(ue[le.attrName]=le.value(G),ue[le.attrName])||(le=q[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(ue[le.attrName]=le.value(G)||void 0),le=T[oe],le!=null&&(le.attrName===oe||le.keyName===oe)&&(le=T[oe],ue[le.attrName]=le.value(G)||void 0))}),Object.keys(ue).length>0&&(Y=j(Y,ue)),Y}function Q(G,Y){var J=t.default.query(G);if(J==null)return Y;if(J.prototype instanceof t.default.Embed){var ee={},X=J.value(G);X!=null&&(ee[J.blotName]=X,Y=new i.default().insert(ee,J.formats(G)))}else typeof J.formats=="function"&&(Y=j(Y,J.blotName,J.formats(G)));return Y}function te(G,Y){return D(Y,`
34`)||Y.insert(`
35`),Y}function ie(){return new i.default}function ae(G,Y){var J=t.default.query(G);if(J==null||J.blotName!=="list-item"||!D(Y,`
36`))return Y;for(var ee=-1,X=G.parentNode;!X.classList.contains("ql-clipboard");)(t.default.query(X)||{}).blotName==="list"&&(ee+=1),X=X.parentNode;return ee<=0?Y:Y.compose(new i.default().retain(Y.length()-1).retain(1,{indent:ee}))}function fe(G,Y){return D(Y,`
37`)||(L(G)||Y.length()>0&&G.nextSibling&&L(G.nextSibling))&&Y.insert(`
38`),Y}function ce(G,Y){if(L(G)&&G.nextElementSibling!=null&&!D(Y,`
39
40`)){var J=G.offsetHeight+parseFloat(H(G).marginTop)+parseFloat(H(G).marginBottom);G.nextElementSibling.offsetTop>G.offsetTop+J*1.5&&Y.insert(`
41`)}return Y}function Oe(G,Y){var J={},ee=G.style||{};return ee.fontStyle&&H(G).fontStyle==="italic"&&(J.italic=!0),ee.fontWeight&&(H(G).fontWeight.startsWith("bold")||parseInt(H(G).fontWeight)>=700)&&(J.bold=!0),Object.keys(J).length>0&&(Y=j(Y,J)),parseFloat(ee.textIndent||0)>0&&(Y=new i.default().insert("	").concat(Y)),Y}function be(G,Y){var J=G.data;if(G.parentNode.tagName==="O:P")return Y.insert(J.trim());if(J.trim().length===0&&G.parentNode.classList.contains("ql-clipboard"))return Y;if(!H(G.parentNode).whiteSpace.startsWith("pre")){var ee=function(ue,oe){return oe=oe.replace(/[^\u
4100a0]/g,""),oe.length<1&&ue?" ":oe};J=J.replace(/\r\n/g," ").replace(/\n/g," "),J=J.replace(/\s\s+/g,ee.bind(ee,!0)),(G.previousSibling==null&&L(G.parentNode)||G.previousSibling!=null&&L(G.previousSibling))&&(J=J.replace(/^\s+/,ee.bind(ee,!1))),(G.nextSibling==null&&L(G.parentNode)||G.nextSibling!=null&&L(G.nextSibling))&&(J=J.replace(/\s+$/,ee.bind(ee,!1)))}return Y.insert(J)}O.default=R,O.matchAttributor=K,O.matchBlot=Q,O.matchNewline=fe,O.matchSpacing=ce,O.matchText=be}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,s){for(var o=0;o<s.length;o++){var a=s[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(u,a.key,a)}}return function(u,s,o){return s&&h(u.prototype,s),o&&h(u,o),u}})(),S=function h(u,s,o){u===null&&(u=Function.prototype);var a=Object.getOwnPropertyDescriptor(u,s);if(a===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,s,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},k=p(6),g=v(k);function v(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function e(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var t=(function(h){e(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,[{key:"optimize",value:function(o){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,o),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return S(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),u})(g.default);t.blotName="bold",t.tagName=["STRONG","B"],O.default=t}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var P=(function(){function d(y,E){var N=[],I=!0,U=!1,z=void 0;try{for(var W=y[Symbol.iterator](),F;!(I=(F=W.next()).done)&&(N.push(F.value),!(E&&N.length===E));I=!0);}catch(q){U=!0,z=q}finally{try{!I&&W.return&&W.return()}finally{if(U)throw z}}return N}return function(y,E){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return d(y,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=(function(){function d(y,E){for(var N=0;N<E.length;N++){var I=E[N];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(y,I.key,I)}}return function(y,E,N){return E&&d(y.prototype,E),N&&d(y,N),y}})(),k=p(2),g=o(k),v=p(0),f=o(v),i=p(5),e=o(i),t=p(10),h=o(t),u=p(9),s=o(u);function o(d){return d&&d.__esModule?d:{default:d}}function a(d,y,E){return y in d?Object.defineProperty(d,y,{value:E,enumerable:!0,configurable:!0,writable:!0}):d[y]=E,d}function r(d,y){if(!(d instanceof y))throw new TypeError("Cannot call a class as a function")}function n(d,y){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:d}
vendor: 5,546 bytes, line 41
41function l(d,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);d.prototype=Object.create(y&&y.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(d,y):d.__proto__=y)}var w=(0,h.default)("quill:toolbar"),m=(function(d){l(y,d);function y(E,N){r(this,y);var I=n(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,E,N));if(Array.isArray(I.options.container)){var U=document.createElement("div");A(U,I.options.container),E.container.parentNode.insertBefore(U,E.container),I.container=U}else typeof I.options.container=="string"?I.container=document.querySelector(I.options.container):I.container=I.options.container;if(!(I.container instanceof HTMLElement)){var z;return z=w.error("Container required for toolbar",I.options),n(I,z)}return I.container.classList.add("ql-toolbar"),I.controls=[],I.handlers={},Object.keys(I.options.handlers).forEach(function(W){I.addHandler(W,I.options.handlers[W])}),[].forEach.call(I.container.querySelectorAll("button, select"),function(W){I.attach(W)}),I.quill.on(e.default.events.EDITOR_CHANGE,function(W,F){W===e.default.events.SELECTION_CHANGE&&I.update(F)}),I.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var W=I.quill.selection.getRange(),F=P(W,1),q=F[0];I.update(q)}),I}return S(y,[{key:"addHandler",value:function(N,I){this.handlers[N]=I}},{key:"attach",value:function(N){var I=this,U=[].find.call(N.classList,function(W){return W.indexOf("ql-")===0});if(U){if(U=U.slice(3),N.tagName==="BUTTON"&&N.setAttribute("type","button"),this.handlers[U]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[U]==null){w.warn("ignoring attaching to disabled format",U,N);return}if(f.default.query(U)==null){w.warn("ignoring attaching to nonexistent format",U,N);return}}var z=N.tagName==="SELECT"?"change":"click";N.addEventListener(z,function(W){var F=void 0;if(N.tagName==="SELECT"){if(N.selectedIndex<0)return;var q=N.options[N.selectedIndex];q.hasAttribute("selected")?F=!1:F=q.value||!1}else N.classList.contains("ql-active")?F=!1:F=N.value||!N.hasAttribute("value"),W.preventDefault();I.quill.focus();var T=I.quill.selection.getRange(),R=P(T,1),j=R[0];if(I.handlers[U]!=null)I.handlers[U].call(I,F);else if(f.default.query(U).prototype instanceof f.default.Embed){if(F=prompt("Enter "+U),!F)return;I.quill.updateContents(new g.default().retain(j.index).delete(j.length).insert(a({},U,F)),e.default.sources.USER)}else I.quill.format(U,F,e.default.sources.USER);I.update(j)}),this.controls.push([U,N])}}},{key:"update",value:function(N){var I=N==null?{}:this.quill.getFormat(N);this.controls.forEach(function(U){var z=P(U,2),W=z[0],F=z[1];if(F.tagName==="SELECT"){var q=void 0;if(N==null)q=null;else if(I[W]==null)q=F.querySelector("option[selected]");else if(!Array.isArray(I[W])){var T=I[W];typeof T=="string"&&(T=T.replace(/\"/g,'\\"')),q=F.querySelector('option[value="'+T+'"]')}q==null?(F.value="",F.selectedIndex=-1):q.selected=!0}else if(N==null)F.classList.remove("ql-active");else if(F.hasAttribute("value")){var R=I[W]===F.getAttribute("value")||I[W]!=null&&I[W].toString()===F.getAttribute("value")||I[W]==null&&!F.getAttribute("value");F.classList.toggle("ql-active",R)}else F.classList.toggle("ql-active",I[W]!=null)})}}]),y})(s.default);m.DEFAULTS={};function b(d,y,E){var N=document.createElement("button");N.setAttribute("type","button"),N.classList.add("ql-"+y),E!=null&&(N.value=E),d.appendChild(N)}function A(d,y){Array.isArray(y[0])||(y=[y]),y.forEach(function(E){var N=document.createElement("span");N.classList.add("ql-formats"),E.forEach(function(I){if(typeof I=="string")b(N,I);else{var U=Object.keys(I)[0],z=I[U];Array.isArray(z)?_(N,U,z):b(N,U,z)}}),d.appendChild(N)})}function _(d,y,E){var N=document.createElement("select");N.classList.add("ql-"+y),E.forEach(function(I){var U=document.createElement("option");I!==!1?U.setAttribute("value",I):U.setAttribute("selected","selected"),N.appendChild(U)}),d.appendChild(N)}m.DEFAULTS={container:null,handlers:{clean:function(){var y=this,E=this.quill.getSelection();if(E!=null)if(E.length==0){var N=this.quill.getFormat();Object.keys(N).forEach(function(I){f.default.query(I,f.default.Scope.INLINE)!=null&&y.quill.format(I,!1)})}else this.quill.removeFormat(E,e.default.sources.USER)},direction:function(y){var E=this.quill.getFormat().align;y==="rtl"&&E==null?this.quill.format("align","right",e.default.sources.USER):!y&&E==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",y,e.default.sources.USER)},indent:function(y){var E=this.quill.getSelection(),N=this.quill.getFormat(E),I=parseInt(N.indent||0);if(y==="+1"||y==="-1"){var U=y==="+1"?1:-1;N.direction==="rtl"&&(U*=-1),this.quill.format("indent",I+U,e.default.sources.USER)}},link:function(y){y===!0&&(y=prompt("Enter link URL:")),this.quill.format("link",y,e.default.sources.USER)},list:function(y){var E=this.quill.getSelection(),N=this.quill.getFormat(E);y==="check"?N.list==="checked"||N.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",y,e.default.sources.USER)}}},O.default=m,O.addControls=A}),(function(M,O){M.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>'}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,s){for(var o=0;o<s.length;o++){var a=s[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(u,a.key,a)}}return function(u,s,o){return s&&h(u.prototype,s),o&&h(u,o),u}})(),S=function h(u,s,o){u===null&&(u=Function.prototype);var a=Object.getOwnPropertyDescriptor(u,s);if(a===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,s,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},k=p(28),g=v(k);function v(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function e(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var t=(function(h){e(u,h);function u(s,o){f(this,u);var a=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,s));return a.label.innerHTML=o,a.container.classList.add("ql-color-picker"),[].slice.call(a.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(r){r.classList.add("ql-primary")}),a}return P(u,[{key:"buildItem",value:function(o){var a=S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"buildItem",this).call(this,o);return a.style.backgroundColor=o.getAttribute("value")||"",a}},{key:"selectItem",value:function(o,a){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,o,a);var r=this.label.querySelector(".ql-color-label"),n=o&&o.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=n:r.style.fill=n)}}]),u})(g.default);O.default=t}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,s){for(var o=0;o<s.length;o++){var a=s[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(u,a.key,a)}}return function(u,s,o){return s&&h(u.prototype,s),o&&h(u,o),u}})(),S=function h(u,s,o){u===null&&(u=Function.prototype);var a=Object.getOwnPropertyDescriptor(u,s);if(a===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,s,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},k=p(28),g=v(k);function v(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function e(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var t=(function(h){e(u,h);function u(s,o){f(this,u);var a=i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,s));return a.container.classList.add("ql-icon-picker"),[].forEach.call(a.container.querySelectorAll(".ql-picker-item"),function(r){r.innerHTML=o[r.getAttribute("data-value")||""]}),a.defaultItem=a.container.querySelector(".ql-selected"),a.selectItem(a.defaultItem),a}return P(u,[{key:"selectItem",value:function(o,a){S(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"selectItem",this).call(this,o,a),o=o||this.defaultItem,this.label.innerHTML=o.innerHTML}}]),u})(g.default);O.default=t}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function g(v,f){for(var i=0;i<f.length;i++){var e=f[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(v,e.key,e)}}return function(v,f,i){return f&&g(v.prototype,f),i&&g(v,i),v}})();function S(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}var k=(function(){function g(v,f){var i=this;S(this,g),this.quill=v,this.boundsContainer=f||document.body,this.root=v.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return P(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var i=f.left+f.width/2-this.root.offsetWidth/2,e=f.bottom+this.quill.root.scrollTop;this.root.style.left=i+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),h=this.root.getBoundingClientRect(),u=0;if(h.right>t.right&&(u=t.right-h.right,this.root.style.left=i+u+"px"),h.left<t.left&&(u=t.left-h.left,this.root.style.left=i+u+"px"),h.bottom>t.bottom){var s=h.bottom-h.top,o=f.bottom-f.top+s;this.root.style.top=e-o+"px",this.root.classList.add("ql-flip")}return u}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g})();O.default=k}
vendor: 4,542 bytes, line 41
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function _(d,y){var E=[],N=!0,I=!1,U=void 0;try{for(var z=d[Symbol.iterator](),W;!(N=(W=z.next()).done)&&(E.push(W.value),!(y&&E.length===y));N=!0);}catch(F){I=!0,U=F}finally{try{!N&&z.return&&z.return()}finally{if(I)throw U}}return E}return function(d,y){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return _(d,y);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),S=function _(d,y,E){d===null&&(d=Function.prototype);var N=Object.getOwnPropertyDescriptor(d,y);if(N===void 0){var I=Object.getPrototypeOf(d);return I===null?void 0:_(I,y,E)}else{if("value"in N)return N.value;var U=N.get;return U===void 0?void 0:U.call(E)}},k=(function(){function _(d,y){for(var E=0;E<y.length;E++){var N=y[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(d,N.key,N)}}return function(d,y,E){return y&&_(d.prototype,y),E&&_(d,E),d}})(),g=p(3),v=r(g),f=p(8),i=r(f),e=p(43),t=r(e),h=p(27),u=r(h),s=p(15),o=p(41),a=r(o);function r(_){return _&&_.__esModule?_:{default:_}}function n(_,d){if(!(_ instanceof d))throw new TypeError("Cannot call a class as a function")}function l(_,d){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:_}function w(_,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);_.prototype=Object.create(d&&d.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(_,d):_.__proto__=d)}var m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=(function(_){w(d,_);function d(y,E){n(this,d),E.modules.toolbar!=null&&E.modules.toolbar.container==null&&(E.modules.toolbar.container=m);var N=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,y,E));return N.quill.container.classList.add("ql-snow"),N}return k(d,[{key:"extendToolbar",value:function(E){E.container.classList.add("ql-snow"),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),a.default),this.tooltip=new A(this.quill,this.options.bounds),E.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(N,I){E.handlers.link.call(E,!I.format.link)})}}]),d})(t.default);b.DEFAULTS=(0,v.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(d){if(d){var y=this.quill.getSelection();if(y==null||y.length==0)return;var E=this.quill.getText(y);/^\S+@\S+\.\S+$/.test(E)&&E.indexOf("mailto:")!==0&&(E="mailto:"+E);var N=this.quill.theme.tooltip;N.edit("link",E)}else this.quill.format("link",!1)}}}}});var A=(function(_){w(d,_);function d(y,E){n(this,d);var N=l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,y,E));return N.preview=N.root.querySelector("a.ql-preview"),N}return k(d,[{key:"listen",value:function(){var E=this;S(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(N){E.root.classList.contains("ql-editing")?E.save():E.edit("link",E.preview.textContent),N.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(N){if(E.linkRange!=null){var I=E.linkRange;E.restoreFocus(),E.quill.formatText(I,"link",!1,i.default.sources.USER),delete E.linkRange}N.preventDefault(),E.hide()}),this.quill.on(i.default.events.SELECTION_CHANGE,function(N,I,U){if(N!=null){if(N.length===0&&U===i.default.sources.USER){var z=E.quill.scroll.descendant(u.default,N.index),W=P(z,2),F=W[0],q=W[1];if(F!=null){E.linkRange=new s.Range(N.index-q,F.length());var T=u.default.formats(F.domNode);E.preview.textContent=T,E.preview.setAttribute("href",T),E.show(),E.position(E.quill.getBounds(E.linkRange));return}}else delete E.linkRange;E.hide()}})}},{key:"show",value:function(){S(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),d})(e.BaseTooltip);A.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(""),O.default=b}
vendor: 2,020 bytes, line 41
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(29),S=X(P),k=p(36),g=p(38),v=p(64),f=p(65),i=X(f),e=p(66),t=X(e),h=p(67),u=X(h),s=p(37),o=p(26),a=p(39),r=p(40),n=p(56),l=X(n),w=p(68),m=X(w),b=p(27),A=X(b),_=p(69),d=X(_),y=p(70),E=X(y),N=p(71),I=X(N),U=p(72),z=X(U),W=p(73),F=X(W),q=p(13),T=X(q),R=p(74),j=X(R),H=p(75),D=X(H),L=p(57),C=X(L),V=p(41),K=X(V),Q=p(28),te=X(Q),ie=p(59),ae=X(ie),fe=p(60),ce=X(fe),Oe=p(61),be=X(Oe),G=p(108),Y=X(G),J=p(62),ee=X(J);function X(ue){return ue&&ue.__esModule?ue:{default:ue}}S.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":k.AlignClass,"attributors/class/background":s.BackgroundClass,"attributors/class/color":o.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":a.FontClass,"attributors/class/size":r.SizeClass,"attributors/style/align":k.AlignStyle,"attributors/style/background":s.BackgroundStyle,"attributors/style/color":o.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":a.FontStyle,"attributors/style/size":r.SizeStyle},!0),S.default.register({"formats/align":k.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":v.IndentClass,"formats/background":s.BackgroundStyle,"formats/color":o.ColorStyle,"formats/font":a.FontClass,"formats/size":r.SizeClass,"formats/blockquote":i.default,"formats/code-block":T.default,"formats/header":t.default,"formats/list":u.default,"formats/bold":l.default,"formats/code":q.Code,"formats/italic":m.default,"formats/link":A.default,"formats/script":d.default,"formats/strike":E.default,"formats/underline":I.default,"formats/image":z.default,"formats/video":F.default,"formats/list/item":h.ListItem,"modules/formula":j.default,"modules/syntax":D.default,"modules/toolbar":C.default,"themes/bubble":Y.default,"themes/snow":ee.default,"ui/icons":K.default,"ui/picker":te.default,"ui/icon-picker":ce.default,"ui/color-picker":ae.default,"ui/tooltip":be.default},!0),O.default=S.default}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var P=(function(){function u(s,o){for(var a=0;a<o.length;a++){var r=o[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(s,r.key,r)}}return function(s,o,a){return o&&u(s.prototype,o),a&&u(s,a),s}})(),S=function u(s,o,a){s===null&&(s=Function.prototype);var r=Object.getOwnPropertyDescriptor(s,o);if(r===void 0){var n=Object.getPrototypeOf(s);return n===null?void 0:u(n,o,a)}else{if("value"in r)return r.value;var l=r.get;return l===void 0?void 0:l.call(a)}},k=p(0),g=v(k);function v(u){return u&&u.__esModule?u:{default:u}}function f(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function e(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var t=(function(u){e(s,u);function s(){return f(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return P(s,[{key:"add",value:function(a,r){if(r==="+1"||r==="-1"){var n=this.value(a)||0;r=r==="+1"?n+1:n-1}return r===0?(this.remove(a),!0):S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"add",this).call(this,a,r)}},{key:"canAdd",value:function(a,r){return S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,a,r)||S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,a,parseInt(r))}},{key:"value",value:function(a){return parseInt(S(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"value",this).call(this,a))||void 0}}]),s})(g.default.Attributor.Class),h=new t("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});O.IndentClass=h}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(4),S=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){f(t,e);function t(){return g(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t})(S.default);i.blotName="blockquote",i.tagName="blockquote",O.default=i}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function t(h,u){for(var s=0;s<u.length;s++){var o=u[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(h,o.key,o)}}return function(h,u,s){return u&&t(h.prototype,u),s&&t(h,s),h}})(),S=p(4),k=g(S);function g(t){return t&&t.__esModule?t:{default:t}}function v(t,h){if(!(t instanceof h))throw new TypeError("Cannot call a class as a function")}function f(t,h){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:t}function i(t,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);t.prototype=Object.create(h&&h.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(t,h):t.__proto__=h)}var e=(function(t){i(h,t);function h(){return v(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return P(h,null,[{key:"formats",value:function(s){return this.tagName.indexOf(s.tagName)+1}}]),h})(k.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],O.default=e}
vendor: 4,462 bytes, line 41
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.ListItem=void 0;var P=(function(){function n(l,w){for(var m=0;m<w.length;m++){var b=w[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(l,b.key,b)}}return function(l,w,m){return w&&n(l.prototype,w),m&&n(l,m),l}})(),S=function n(l,w,m){l===null&&(l=Function.prototype);var b=Object.getOwnPropertyDescriptor(l,w);if(b===void 0){var A=Object.getPrototypeOf(l);return A===null?void 0:n(A,w,m)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(m)}},k=p(0),g=t(k),v=p(4),f=t(v),i=p(25),e=t(i);function t(n){return n&&n.__esModule?n:{default:n}}function h(n,l,w){return l in n?Object.defineProperty(n,l,{value:w,enumerable:!0,configurable:!0,writable:!0}):n[l]=w,n}function u(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function s(n,l){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:n}function o(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(n,l):n.__proto__=l)}var a=(function(n){o(l,n);function l(){return u(this,l),s(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return P(l,[{key:"format",value:function(m,b){m===r.blotName&&!b?this.replaceWith(g.default.create(this.statics.scope)):S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"format",this).call(this,m,b)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(m,b){return this.parent.isolate(this.offset(this.parent),this.length()),m===this.parent.statics.blotName?(this.parent.replaceWith(m,b),this):(this.parent.unwrap(),S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replaceWith",this).call(this,m,b))}}],[{key:"formats",value:function(m){return m.tagName===this.tagName?void 0:S(l.__proto__||Object.getPrototypeOf(l),"formats",this).call(this,m)}}]),l})(f.default);a.blotName="list-item",a.tagName="LI";var r=(function(n){o(l,n),P(l,null,[{key:"create",value:function(m){var b=m==="ordered"?"OL":"UL",A=S(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,b);return(m==="checked"||m==="unchecked")&&A.setAttribute("data-checked",m==="checked"),A}},{key:"formats",value:function(m){if(m.tagName==="OL")return"ordered";if(m.tagName==="UL")return m.hasAttribute("data-checked")?m.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function l(w){u(this,l);var m=s(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,w)),b=function(_){if(_.target.parentNode===w){var d=m.statics.formats(w),y=g.default.find(_.target);d==="checked"?y.format("list","unchecked"):d==="unchecked"&&y.format("list","checked")}};return w.addEventListener("touchstart",b),w.addEventListener("mousedown",b),m}return P(l,[{key:"format",value:function(m,b){this.children.length>0&&this.children.tail.format(m,b)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(m,b){if(m instanceof a)S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertBefore",this).call(this,m,b);else{var A=b==null?this.length():b.offset(this),_=this.split(A);_.parent.insertBefore(m,_)}}},{key:"optimize",value:function(m){S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,m);var b=this.next;b!=null&&b.prev===this&&b.statics.blotName===this.statics.blotName&&b.domNode.tagName===this.domNode.tagName&&b.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(b.moveChildren(this),b.remove())}},{key:"replace",value:function(m){if(m.statics.blotName!==this.statics.blotName){var b=g.default.create(this.statics.defaultChild);m.moveChildren(b),this.appendChild(b)}S(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"replace",this).call(this,m)}}]),l})(e.default);r.blotName="list",r.scope=g.default.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[a],O.ListItem=a,O.default=r}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(56),S=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){f(t,e);function t(){return g(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t})(S.default);i.blotName="italic",i.tagName=["EM","I"],O.default=i}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function h(u,s){for(var o=0;o<s.length;o++){var a=s[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(u,a.key,a)}}return function(u,s,o){return s&&h(u.prototype,s),o&&h(u,o),u}})(),S=function h(u,s,o){u===null&&(u=Function.prototype);var a=Object.getOwnPropertyDescriptor(u,s);if(a===void 0){var r=Object.getPrototypeOf(u);return r===null?void 0:h(r,s,o)}else{if("value"in a)return a.value;var n=a.get;return n===void 0?void 0:n.call(o)}},k=p(6),g=v(k);function v(h){return h&&h.__esModule?h:{default:h}}function f(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}function i(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:h}function e(h,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}var t=(function(h){e(u,h);function u(){return f(this,u),i(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return P(u,null,[{key:"create",value:function(o){return o==="super"?document.createElement("sup"):o==="sub"?document.createElement("sub"):S(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,o)}},{key:"formats",value:function(o){if(o.tagName==="SUB")return"sub";if(o.tagName==="SUP")return"super"}}]),u})(g.default);t.blotName="script",t.tagName=["SUB","SUP"],O.default=t}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(6),S=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){f(t,e);function t(){return g(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t})(S.default);i.blotName="strike",i.tagName="S",O.default=i}),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=p(6),S=k(P);function k(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function f(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=(function(e){f(t,e);function t(){return g(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t})(S.default);i.blotName="underline",i.tagName="U",O.default=i}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function s(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&s(o.prototype,a),r&&s(o,r),o}})(),S=function s(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:s(l,a,r)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(r)}},k=p(0),g=f(k),v=p(27);function f(s){return s&&s.__esModule?s:{default:s}}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function e(s,o){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:s}function t(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(s,o):s.__proto__=o)}var h=["alt","height","width"],u=(function(s){t(o,s);function o(){return i(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,[{key:"format",value:function(r,n){h.indexOf(r)>-1?n?this.domNode.setAttribute(r,n):this.domNode.removeAttribute(r):S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,r,n)}}],[{key:"create",value:function(r){var n=S(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,r);return typeof r=="string"&&n.setAttribute("src",this.sanitize(r)),n}},{key:"formats",value:function(r){return h.reduce(function(n,l){return r.hasAttribute(l)&&(n[l]=r.getAttribute(l)),n},{})}},{key:"match",value:function(r){return/\.(jpe?g|gif|png)$/.test(r)||/^data:image\/.+;base64/.test(r)}},{key:"sanitize",value:function(r){return(0,v.sanitize)(r,["http","https","data"])?r:"//:0"}},{key:"value",value:function(r){return r.getAttribute("src")}}]),o})(g.default.Embed);u.blotName="image",u.tagName="IMG",O.default=u}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0});var P=(function(){function s(o,a){for(var r=0;r<a.length;r++){var n=a[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}return function(o,a,r){return a&&s(o.prototype,a),r&&s(o,r),o}})(),S=function s(o,a,r){o===null&&(o=Function.prototype);var n=Object.getOwnPropertyDescriptor(o,a);if(n===void 0){var l=Object.getPrototypeOf(o);return l===null?void 0:s(l,a,r)}else{if("value"in n)return n.value;var w=n.get;return w===void 0?void 0:w.call(r)}},k=p(4),g=p(27),v=f(g);function f(s){return s&&s.__esModule?s:{default:s}}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function e(s,o){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:s}function t(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(s,o):s.__proto__=o)}var h=["height","width"],u=(function(s){t(o,s);function o(){return i(this,o),e(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return P(o,[{key:"format",value:function(r,n){h.indexOf(r)>-1?n?this.domNode.setAttribute(r,n):this.domNode.removeAttribute(r):S(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"format",this).call(this,r,n)}}],[{key:"create",value:function(r){var n=S(o.__proto__||Object.getPrototypeOf(o),"create",this).call(this,r);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(r)),n}},{key:"formats",value:function(r){return h.reduce(function(n,l){return r.hasAttribute(l)&&(n[l]=r.getAttribute(l)),n},{})}},{key:"sanitize",value:function(r){return v.default.sanitize(r)}},{key:"value",value:function(r){return r.getAttribute("src")}}]),o})(k.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",O.default=u}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var P=(function(){function r(n,l){for(var w=0;w<l.length;w++){var m=l[w];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(n,m.key,m)}}return function(n,l,w){return l&&r(n.prototype,l),w&&r(n,w),n}})(),S=function r(n,l,w){n===null&&(n=Function.prototype);var m=Object.getOwnPropertyDescriptor(n,l);if(m===void 0){var b=Object.getPrototypeOf(n);return b===null?void 0:r(b,l,w)}else{if("value"in m)return m.value;var A=m.get;return A===void 0?void 0:A.call(w)}},k=p(35),g=t(k),v=p(5),f=t(v),i=p(9),e=t(i);function t(r){return r&&r.__esModule?r:{default:r}}function h(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function u(r,n){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:r}function s(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}var o=(function(r){s(n,r);function n(){return h(this,n),u(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return P(n,null,[{key:"create",value:function(w){var m=S(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,w);return typeof w=="string"&&(window.katex.render(w,m,{throwOnError:!1,errorColor:"#f00"}),m.setAttribute("data-value",w)),m}},{key:"value",value:function(w){return w.getAttribute("data-value")}}]),n})(g.default);o.blotName="formula",o.className="ql-formula",o.tagName="SPAN";var a=(function(r){s(n,r),P(n,null,[{key:"register",value:function(){f.default.register(o,!0)}}]);function n(){h(this,n);var l=u(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return l}return n})(e.default);O.FormulaBlot=o,O.default=a}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.CodeToken=O.CodeBlock=void 0;var P=(function(){function w(m,b){for(var A=0;A<b.length;A++){var _=b[A];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,b,A){return b&&w(m.prototype,b),A&&w(m,A),m}})(),S=function w(m,b,A){m===null&&(m=Function.prototype);var _=Object.getOwnPropertyDescriptor(m,b);if(_===void 0){var d=Object.getPrototypeOf(m);return d===null?void 0:w(d,b,A)}else{if("value"in _)return _.value;var y=_.get;return y===void 0?void 0:y.call(A)}},k=p(0),g=u(k),v=p(5),f=u(v),i=p(9),e=u(i),t=p(13),h=u(t);function u(w){return w&&w.__esModule?w:{default:w}}function s(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function o(w,m){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:w}function a(w,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);w.prototype=Object.create(m&&m.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(w,m):w.__proto__=m)}var r=(function(w){a(m,w);function m(){return s(this,m),o(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return P(m,[{key:"replaceWith",value:function(A){this.domNode.textContent=this.domNode.textContent,this.attach(),S(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"replaceWith",this).call(this,A)}},{key:"highlight",value:function(A){var _=this.domNode.textContent;this.cachedText!==_&&((_.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=A(_),this.domNode.normalize(),this.attach()),this.cachedText=_)}}]),m})(h.default);r.className="ql-syntax";var n=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),l=(function(w){a(m,w),P(m,null,[{key:"register",value:function(){f.default.register(n,!0),f.default.register(r,!0)}}]);function m(b,A){s(this,m);var _=o(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b,A));if(typeof _.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var d=null;return _.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(d),d=setTimeout(function(){_.highlight(),d=null},_.options.interval)}),_.highlight(),_}return P(m,[{key:"highlight",value:function(){var A=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var _=this.quill.getSelection();this.quill.scroll.descendants(r).forEach(function(d){d.highlight(A.options.highlight)}),this.quill.update(f.default.sources.SILENT),_!=null&&this.quill.setSelection(_,f.default.sources.SILENT)}}}]),m})(e.default);l.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(w){var m=window.hljs.highlightAuto(w);return m.value}})(),interval:1e3},O.CodeBlock=r,O.CodeToken=n,O.default=l}),(function(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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>
41 <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(M,O){M.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(M,O){M.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(M,O){M.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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.
41177-.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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(M,O){M.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>'}
41),(function(M,O,p){Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var P=function m(b,A,_){b===null&&(b=Function.prototype);var d=Object.getOwnPropertyDescriptor(b,A);if(d===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:m(y,A,_)}else{if("value"in d)return d.value;var E=d.get;return E===void 0?void 0:E.call(_)}},S=(function(){function m(b,A){for(var _=0;_<A.length;_++){var d=A[_];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(b,d.key,d)}}return function(b,A,_){return A&&m(b.prototype,A),_&&m(b,_),b}})(),k=p(3),g=s(k),v=p(8),f=s(v),i=p(43),e=s(i),t=p(15),h=p(41),u=s(h);function s(m){return m&&m.__esModule?m:{default:m}}function o(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function a(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function r(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],l=(function(m){r(b,m);function b(A,_){o(this,b),_.modules.toolbar!=null&&_.modules.toolbar.container==null&&(_.modules.toolbar.container=n);var d=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,A,_));return d.quill.container.classList.add("ql-bubble"),d}return S(b,[{key:"extendToolbar",value:function(_){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(_.container),this.buildButtons([].slice.call(_.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(_.container.querySelectorAll("select")),u.default)}}]),b})(e.default);l.DEFAULTS=(0,g.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(b){b?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=(function(m){r(b,m);function b(A,_){o(this,b);var d=a(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,A,_));return d.quill.on(f.default.events.EDITOR_CHANGE,function(y,E,N,I){if(y===f.default.events.SELECTION_CHANGE)if(E!=null&&E.length>0&&I===f.default.sources.USER){d.show(),d.root.style.left="0px",d.root.style.width="",d.root.style.width=d.root.offsetWidth+"px";var U=d.quill.getLines(E.index,E.length);if(U.length===1)d.position(d.quill.getBounds(E));else{var z=U[U.length-1],W=d.quill.getIndex(z),F=Math.min(z.length()-1,E.index+E.length-W),q=d.quill.getBounds(new t.Range(W,F));d.position(q)}}else document.activeElement!==d.textbox&&d.quill.hasFocus()&&d.hide()}),d}return S(b,[{key:"listen",value:function(){var _=this;P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){_.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!_.root.classList.contains("ql-hidden")){var d=_.quill.getSelection();d!=null&&_.position(_.quill.getBounds(d))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(_){var d=P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,_),y=this.root.querySelector(".ql-tooltip-arrow");if(y.style.marginLeft="",d===0)return d;y.style.marginLeft=-1*d-y.offsetWidth/2+"px"}}]),b})(i.BaseTooltip);w.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(""),O.BubbleTooltip=w,O.default=l}),(function(M,O,p){M.exports=p(63)})]).default})})(an)),an.exports}var Jr=Xr();const Ut=cr(Jr);var Gn,er;function ei(){if(er)return Gn;er=1;var $=-1,ne=1,M=0;function O(r,n,l,w){if(r===n)return r?[[M,r]]:[];if(l!=null){var m=o(r,n,l);
vendor: 11,973 bytes, line 41
41if(m)return m}var b=k(r,n),A=r.substring(0,b);r=r.substring(b),n=n.substring(b),b=g(r,n);var _=r.substring(r.length-b);r=r.substring(0,r.length-b),n=n.substring(0,n.length-b);var d=p(r,n);return A&&d.unshift([M,A]),_&&d.push([M,_]),f(d,w),d}function p(r,n){var l;if(!r)return[[ne,n]];if(!n)return[[$,r]];var w=r.length>n.length?r:n,m=r.length>n.length?n:r,b=w.indexOf(m);if(b!==-1)return l=[[ne,w.substring(0,b)],[M,m],[ne,w.substring(b+m.length)]],r.length>n.length&&(l[0][0]=l[2][0]=$),l;if(m.length===1)return[[$,r],[ne,n]];var A=v(r,n);if(A){var _=A[0],d=A[1],y=A[2],E=A[3],N=A[4],I=O(_,y),U=O(d,E);return I.concat([[M,N]],U)}return P(r,n)}function P(r,n){for(var l=r.length,w=n.length,m=Math.ceil((l+w)/2),b=m,A=2*m,_=new Array(A),d=new Array(A),y=0;y<A;y++)_[y]=-1,d[y]=-1;_[b+1]=0,d[b+1]=0;for(var E=l-w,N=E%2!==0,I=0,U=0,z=0,W=0,F=0;F<m;F++){for(var q=-F+I;q<=F-U;q+=2){var T=b+q,R;q===-F||q!==F&&_[T-1]<_[T+1]?R=_[T+1]:R=_[T-1]+1;for(var j=R-q;R<l&&j<w&&r.charAt(R)===n.charAt(j);)R++,j++;if(_[T]=R,R>l)U+=2;else if(j>w)I+=2;else if(N){var H=b+E-q;if(H>=0&&H<A&&d[H]!==-1){var D=l-d[H];if(R>=D)return S(r,n,R,j)}}}for(var L=-F+z;L<=F-W;L+=2){var H=b+L,D;L===-F||L!==F&&d[H-1]<d[H+1]?D=d[H+1]:D=d[H-1]+1;for(var C=D-L;D<l&&C<w&&r.charAt(l-D-1)===n.charAt(w-C-1);)D++,C++;if(d[H]=D,D>l)W+=2;else if(C>w)z+=2;else if(!N){var T=b+E-L;if(T>=0&&T<A&&_[T]!==-1){var R=_[T],j=b+R-T;if(D=l-D,R>=D)return S(r,n,R,j)}}}}return[[$,r],[ne,n]]}function S(r,n,l,w){var m=r.substring(0,l),b=n.substring(0,w),A=r.substring(l),_=n.substring(w),d=O(m,b),y=O(A,_);return d.concat(y)}function k(r,n){if(!r||!n||r.charAt(0)!==n.charAt(0))return 0;for(var l=0,w=Math.min(r.length,n.length),m=w,b=0;l<m;)r.substring(b,m)==n.substring(b,m)?(l=m,b=l):w=m,m=Math.floor((w-l)/2+l);return i(r.charCodeAt(m-1))&&m--,m}function g(r,n){if(!r||!n||r.slice(-1)!==n.slice(-1))return 0;for(var l=0,w=Math.min(r.length,n.length),m=w,b=0;l<m;)r.substring(r.length-m,r.length-b)==n.substring(n.length-m,n.length-b)?(l=m,b=l):w=m,m=Math.floor((w-l)/2+l);return e(r.charCodeAt(r.length-m))&&m--,m}function v(r,n){var l=r.length>n.length?r:n,w=r.length>n.length?n:r;if(l.length<4||w.length*2<l.length)return null;function m(U,z,W){for(var F=U.substring(W,W+Math.floor(U.length/4)),q=-1,T="",R,j,H,D;(q=z.indexOf(F,q+1))!==-1;){var L=k(U.substring(W),z.substring(q)),C=g(U.substring(0,W),z.substring(0,q));T.length<C+L&&(T=z.substring(q-C,q)+z.substring(q,q+L),R=U.substring(0,W-C),j=U.substring(W+L),H=z.substring(0,q-C),D=z.substring(q+L))}return T.length*2>=U.length?[R,j,H,D,T]:null}var b=m(l,w,Math.ceil(l.length/4)),A=m(l,w,Math.ceil(l.length/2)),_;if(!b&&!A)return null;A?b?_=b[4].length>A[4].length?b:A:_=A:_=b;var d,y,E,N;r.length>n.length?(d=_[0],y=_[1],E=_[2],N=_[3]):(E=_[0],N=_[1],d=_[2],y=_[3]);var I=_[4];return[d,y,E,N,I]}function f(r,n){r.push([M,""]);for(var l=0,w=0,m=0,b="",A="",_;l<r.length;){if(l<r.length-1&&!r[l][1]){r.splice(l,1);continue}switch(r[l][0]){case ne:m++,A+=r[l][1],l++;break;case $:w++,b+=r[l][1],l++;break;case M:var d=l-m-w-1;if(n){if(d>=0&&h(r[d][1])){var y=r[d][1].slice(-1);if(r[d][1]=r[d][1].slice(0,-1),b=y+b,A=y+A,!r[d][1]){r.splice(d,1),l--;var E=d-1;r[E]&&r[E][0]===ne&&(m++,A=r[E][1]+A,E--),r[E]&&r[E][0]===$&&(w++,b=r[E][1]+b,E--),d=E}}if(t(r[l][1])){var y=r[l][1].charAt(0);r[l][1]=r[l][1].slice(1),b+=y,A+=y}}if(l<r.length-1&&!r[l][1]){r.splice(l,1);break}if(b.length>0||A.length>0){b.length>0&&A.length>0&&(_=k(A,b),_!==0&&(d>=0?r[d][1]+=A.substring(0,_):(r.splice(0,0,[M,A.substring(0,_)]),l++),A=A.substring(_),b=b.substring(_)),_=g(A,b),_!==0&&(r[l][1]=A.substring(A.length-_)+r[l][1],A=A.substring(0,A.length-_),b=b.substring(0,b.length-_)));var N=m+w;b.length===0&&A.length===0?(r.splice(l-N,N),l=l-N):b.length===0?(r.splice(l-N,N,[ne,A]),l=l-N+1):A.length===0?(r.splice(l-N,N,[$,b]),l=l-N+1):(r.splice(l-N,N,[$,b],[ne,A]),l=l-N+2)}l!==0&&r[l-1][0]===M?(r[l-1][1]+=r[l][1],r.splice(l,1)):l++,m=0,w=0,b="",A="";break}}r[r.length-1][1]===""&&r.pop();var I=!1;for(l=1;l<r.length-1;)r[l-1][0]===M&&r[l+1][0]===M&&(r[l][1].substring(r[l][1].length-r[l-1][1].length)===r[l-1][1]?(r[l][1]=r[l-1][1]+r[l][1].substring(0,r[l][1].length-r[l-1][1].length),r[l+1][1]=r[l-1][1]+r[l+1][1],r.splice(l-1,1),I=!0):r[l][1].substring(0,r[l+1][1].length)==r[l+1][1]&&(r[l-1][1]+=r[l+1][1],r[l][1]=r[l][1].substring(r[l+1][1].length)+r[l+1][1],r.splice(l+1,1),I=!0)),l++;I&&f(r,n)}function i(r){return r>=55296&&r<=56319}function e(r){return r>=56320&&r<=57343}function t(r){return e(r.charCodeAt(0))}function h(r){return i(r.charCodeAt(r.length-1))}function u(r){for(var n=[],l=0;l<r.length;l++)r[l][1].length>0&&n.push(r[l]);return n}function s(r,n,l,w){return h(r)||t(w)?null:u([[M,r],[$,n],[ne,l],[M,w]])}function o(r,n,l){var w=typeof l=="number"?{index:l,length:0}:l.oldRange,m=typeof l=="number"?null:l.newRange,b=r.length,A=n.length;if(w.length===0&&(m===null||m.length===0)){var _=w.index,d=r.slice(0,_),y=r.slice(_),E=m?m.index:null;e:{var N=_+A-b;if(E!==null&&E!==N||N<0||N>A)break e;var I=n.slice(0,N),U=n.slice(N);if(U!==y)break e;var z=Math.min(_,N),W=d.slice(0,z),F=I.slice(0,z);if(W!==F)break e;var q=d.slice(z),T=I.slice(z);return s(W,q,T,y)}e:{if(E!==null&&E!==_)break e;var R=_,I=n.slice(0,R),U=n.slice(R);if(I!==d)break e;var j=Math.min(b-R,A-R),H=y.slice(y.length-j),D=U.slice(U.length-j);if(H!==D)break e;var q=y.slice(0,y.length-j),T=U.slice(0,U.length-j);return s(d,q,T,H)}}if(w.length>0&&m&&m.length===0)e:{var W=r.slice(0,w.index),H=r.slice(w.index+w.length),z=W.length,j=H.length;if(A<z+j)break e;var F=n.slice(0,z),D=n.slice(A-j);if(W!==F||H!==D)break e;var q=r.slice(z,b-j),T=n.slice(z,A-j);return s(W,q,T,H)}return null}function a(r,n,l){return O(r,n,l,!0)}return a.INSERT=ne,a.DELETE=$,a.EQUAL=M,Gn=a,Gn}var Bt={exports:{}};Bt.exports;var tr;function dr(){return tr||(tr=1,(function($,ne){var M=200,O="__lodash_hash_undefined__",p=9007199254740991,P="[object Arguments]",S="[object Array]",k="[object Boolean]",g="[object Date]",v="[object Error]",f="[object Function]",i="[object GeneratorFunction]",e="[object Map]",t="[object Number]",h="[object Object]",u="[object Promise]",s="[object RegExp]",o="[object Set]",a="[object String]",r="[object Symbol]",n="[object WeakMap]",l="[object ArrayBuffer]",w="[object DataView]",m="[object Float32Array]",b="[object Float64Array]",A="[object Int8Array]",_="[object Int16Array]",d="[object Int32Array]",y="[object Uint8Array]",E="[object Uint8ClampedArray]",N="[object Uint16Array]",I="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,W=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,q={};q[P]=q[S]=q[l]=q[w]=q[k]=q[g]=q[m]=q[b]=q[A]=q[_]=q[d]=q[e]=q[t]=q[h]=q[s]=q[o]=q[a]=q[r]=q[y]=q[E]=q[N]=q[I]=!0,q[v]=q[f]=q[n]=!1;var T=typeof Je=="object"&&Je&&Je.Object===Object&&Je,R=typeof self=="object"&&self&&self.Object===Object&&self,j=T||R||Function("return this")(),H=ne&&!ne.nodeType&&ne,D=H&&!0&&$&&!$.nodeType&&$,L=D&&D.exports===H;function C(c,x){return c.set(x[0],x[1]),c}function V(c,x){return c.add(x),c}function K(c,x){for(var B=-1,Z=c?c.length:0;++B<Z&&x(c[B],B,c)!==!1;);return c}function Q(c,x){for(var B=-1,Z=x.length,se=c.length;++B<Z;)c[se+B]=x[B];return c}function te(c,x,B,Z){for(var se=-1,re=c?c.length:0;++se<re;)B=x(B,c[se],se,c);return B}function ie(c,x){for(var B=-1,Z=Array(c);++B<c;)Z[B]=x(B);return Z}function ae(c,x){return c==null?void 0:c[x]}function fe(c){var x=!1;if(c!=null&&typeof c.toString!="function")try{x=!!(c+"")}catch{}return x}function ce(c){var x=-1,B=Array(c.size);return c.forEach(function(Z,se){B[++x]=[se,Z]}),B}function Oe(c,x){return function(B){return c(x(B))}}function be(c){var x=-1,B=Array(c.size);return c.forEach(function(Z){B[++x]=Z}),B}var G=Array.prototype,Y=Function.prototype,J=Object.prototype,ee=j["__core-js_shared__"],X=(function(){var c=/[^.]+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),ue=Y.toString,oe=J.hasOwnProperty,le=J.toString,xe=RegExp("^"+ue.call(oe).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=L?j.Buffer:void 0,ge=j.Symbol,et=j.Uint8Array,de=Oe(Object.getPrototypeOf,Object),Be=Object.create,zt=J.propertyIsEnumerable,un=G.splice,wt=Object.getOwnPropertySymbols,lt=Te?Te.isBuffer:void 0,Vt=Oe(Object.keys,Object),ut=He(j,"DataView"),tt=He(j,"Map"),Ue=He(j,"Promise"),st=He(j,"Set"),At=He(j,"WeakMap"),nt=He(Object,"create"),Tt=Re(ut),rt=Re(tt),kt=Re(Ue),Nt=Re(st),St=Re(At),Qe=ge?ge.prototype:void 0,Kt=Qe?Qe.valueOf:void 0;function $e(c){var x=-1,B=c?c.length:0;for(this.clear();++x<B;){var Z=c[x];this.set(Z[0],Z[1])}}function sn(){this.__data__=nt?nt(null):{}}function fn(c){return this.has(c)&&delete this.__data__[c]}function cn(c){var x=this.__data__;if(nt){var B=x[c];return B===O?void 0:B}return oe.call(x,c)?x[c]:void 0}function $t(c){var x=this.__data__;return nt?x[c]!==void 0:oe.call(x,c)}function xt(c,x){var B=this.__data__;return B[c]=nt&&x===void 0?O:x,this}$e.prototype.clear=sn,$e.prototype.delete=fn,$e.prototype.get=cn,$e.prototype.has=$t,$e.prototype.set=xt;function ke(c){var x=-1,B=c?c.length:0;for(this.clear();++x<B;){var Z=c[x];this.set(Z[0],Z[1])}}function hn(){this.__data__=[]}function dn(c){var x=this.__data__,B=ct(x,c);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():un.call(x,B,1),!0}function vn(c){var x=this.__data__,B=ct(x,c);return B<0?void 0:x[B][1]}function pn(c){return ct(this.__data__,c)>-1}function yn(c,x){var B=this.__data__,Z=ct(B,c);return Z<0?B.push([c,x]):B[Z][1]=x,this}ke.prototype.clear=hn,ke.prototype.delete=dn,ke.prototype.get=vn,ke.prototype.has=pn,ke.prototype.set=yn;function Pe(c){var x=-1,B=c?c.length:0;for(this.clear();++x<B;){var Z=c[x];this.set(Z[0],Z[1])}}function gn(){this.__data__={hash:new $e,map:new(tt||ke),string:new $e}}function mn(c){return ot(this,c).delete(c)}function bn(c){return ot(this,c).get(c)}function _n(c){return ot(this,c).has(c)}function On(c,x){return ot(this,c).set(c,x),this}Pe.prototype.clear=gn,Pe.prototype.delete=mn,Pe.prototype.get=bn,Pe.prototype.has=_n,Pe.prototype.set=On;function Me(c){this.__data__=new ke(c)}function En(){this.__data__=new ke}function wn(c){return this.__data__.delete(c)}function An(c){return this.__data__.get(c)}function Tn(c){return this.__data__.has(c)}function kn(c,x){var B=this.__data__;if(B instanceof ke){var Z=B.__data__;if(!tt||Z.length<M-1)return Z.push([c,x]),this;B=this.__data__=new Pe(Z)}return B.set(c,x),this}Me.prototype.clear=En,Me.prototype.delete=wn,Me.prototype.get=An,Me.prototype.has=Tn,Me.prototype.set=kn;function ft(c,x){var B=Rt(c)||dt(c)?ie(c.length,String):[],Z=B.length,se=!!Z;for(var re in c)oe.call(c,re)&&!(se&&(re=="length"||Fn(re,Z)))&&B.push(re);return B}function Gt(c,x,B){var Z=c[x];(!(oe.call(c,x)&&Xt(Z,B))||B===void 0&&!(x in c))&&(c[x]=B)}function ct(c,x){for(var B=c.length;B--;)if(Xt(c[B][0],x))return B;return-1}function ze(c,x){return c&&qt(x,jt(x),c)}function Pt(c,x,B,Z,se,re,pe){var ve;if(Z&&(ve=re?Z(c,se,re,pe):Z(c)),ve!==void 0)return ve;if(!Ke(c))return c;var Ee=Rt(c);if(Ee){if(ve=Bn(c),!x)return jn(c,ve)}else{var me=Ze(c),Le=me==f||me==i;if(Jt(c))return ht(c,x);if(me==h||me==P||Le&&!re){if(fe(c))return re?c:{};if(ve=Ve(Le?{}:c),!x)return Mn(c,ze(ve,c))}else{if(!q[me])return re?c:{};ve=Cn(c,me,Pt,x)}}pe||(pe=new Me);var De=pe.get(c);if(De)return De;if(pe.set(c,ve),!Ee)var Ae=B?Dn(c):jt(c);return K(Ae||c,function(qe,Ne){Ae&&(Ne=qe,qe=c[Ne]),Gt(ve,Ne,Pt(qe,x,B,Z,Ne,c,pe))}),ve}function Nn(c){return Ke(c)?Be(c):{}}function Sn(c,x,B){var Z=x(c);return Rt(c)?Z:Q(Z,B(c))}function xn(c){return le.call(c)}function Pn(c){if(!Ke(c)||Hn(c))return!1;var x=It(c)||fe(c)?xe:W;return x.test(Re(c))}function Ln(c){if(!Yt(c))return Vt(c);var x=[];for(var B in Object(c))oe.call(c,B)&&B!="constructor"&&x.push(B);return x}function ht(c,x){if(x)return c.slice();var B=new c.constructor(c.length);return c.copy(B),B}function Lt(c){var x=new c.constructor(c.byteLength);return new et(x).set(new et(c)),x}function it(c,x){var B=x?Lt(c.buffer):c.buffer;
41return new c.constructor(B,c.byteOffset,c.byteLength)}function Zt(c,x,B){var Z=x?B(ce(c),!0):ce(c);return te(Z,C,new c.constructor)}function Wt(c){var x=new c.constructor(c.source,z.exec(c));return x.lastIndex=c.lastIndex,x}function qn(c,x,B){var Z=x?B(be(c),!0):be(c);return te(Z,V,new c.constructor)}function Rn(c){return Kt?Object(Kt.call(c)):{}}function In(c,x){var B=x?Lt(c.buffer):c.buffer;return new c.constructor(B,c.byteOffset,c.length)}function jn(c,x){var B=-1,Z=c.length;for(x||(x=Array(Z));++B<Z;)x[B]=c[B];return x}function qt(c,x,B,Z){B||(B={});for(var se=-1,re=x.length;++se<re;){var pe=x[se],ve=void 0;Gt(B,pe,ve===void 0?c[pe]:ve)}return B}function Mn(c,x){return qt(c,Ge(c),x)}function Dn(c){return Sn(c,jt,Ge)}function ot(c,x){var B=c.__data__;return Un(x)?B[typeof x=="string"?"string":"hash"]:B.map}function He(c,x){var B=ae(c,x);return Pn(B)?B:void 0}var Ge=wt?Oe(wt,Object):Vn,Ze=xn;(ut&&Ze(new ut(new ArrayBuffer(1)))!=w||tt&&Ze(new tt)!=e||Ue&&Ze(Ue.resolve())!=u||st&&Ze(new st)!=o||At&&Ze(new At)!=n)&&(Ze=function(c){var x=le.call(c),B=x==h?c.constructor:void 0,Z=B?Re(B):void 0;if(Z)switch(Z){case Tt:return w;case rt:return e;case kt:return u;case Nt:return o;case St:return n}return x});function Bn(c){var x=c.length,B=c.constructor(x);return x&&typeof c[0]=="string"&&oe.call(c,"index")&&(B.index=c.index,B.input=c.input),B}function Ve(c){return typeof c.constructor=="function"&&!Yt(c)?Nn(de(c)):{}}function Cn(c,x,B,Z){var se=c.constructor;switch(x){case l:return Lt(c);case k:case g:return new se(+c);case w:return it(c,Z);case m:case b:case A:case _:case d:case y:case E:case N:case I:return In(c,Z);case e:return Zt(c,Z,B);case t:case a:return new se(c);case s:return Wt(c);case o:return qn(c,Z,B);case r:return Rn(c)}}function Fn(c,x){return x=x??p,!!x&&(typeof c=="number"||F.test(c))&&c>-1&&c%1==0&&c<x}function Un(c){var x=typeof c;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?c!=="__proto__":c===null}function Hn(c){return!!X&&X in c}function Yt(c){var x=c&&c.constructor,B=typeof x=="function"&&x.prototype||J;return c===B}function Re(c){if(c!=null){try{return ue.call(c)}catch{}try{return c+""}catch{}}return""}function Qt(c){return Pt(c,!0,!0)}function Xt(c,x){return c===x||c!==c&&x!==x}function dt(c){return zn(c)&&oe.call(c,"callee")&&(!zt.call(c,"callee")||le.call(c)==P)}var Rt=Array.isArray;function vt(c){return c!=null&&en(c.length)&&!It(c)}function zn(c){return tn(c)&&vt(c)}var Jt=lt||Kn;function It(c){var x=Ke(c)?le.call(c):"";return x==f||x==i}function en(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=p}function Ke(c){var x=typeof c;return!!c&&(x=="object"||x=="function")}function tn(c){return!!c&&typeof c=="object"}function jt(c){return vt(c)?ft(c):Ln(c)}function Vn(){return[]}function Kn(){return!1}$.exports=Qt})(Bt,Bt.exports)),Bt.exports}var Ct={exports:{}};Ct.exports;var nr;function vr(){return nr||(nr=1,(function($,ne){var M=200,O="__lodash_hash_undefined__",p=1,P=2,S=9007199254740991,k="[object Arguments]",g="[object Array]",v="[object AsyncFunction]",f="[object Boolean]",i="[object Date]",e="[object Error]",t="[object Function]",h="[object GeneratorFunction]",u="[object Map]",s="[object Number]",o="[object Null]",a="[object Object]",r="[object Promise]",n="[object Proxy]",l="[object RegExp]",w="[object Set]",m="[object String]",b="[object Symbol]",A="[object Undefined]",_="[object WeakMap]",d="[object ArrayBuffer]",y="[object DataView]",E="[object Float32Array]",N="[object Float64Array]",I="[object Int8Array]",U="[object Int16Array]",z="[object Int32Array]",W="[object Uint8Array]",F="[object Uint8ClampedArray]",q="[object Uint16Array]",T="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,j=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,D={};D[E]=D[N]=D[I]=D[U]=D[z]=D[W]=D[F]=D[q]=D[T]=!0,D[k]=D[g]=D[d]=D[f]=D[y]=D[i]=D[e]=D[t]=D[u]=D[s]=D[a]=D[l]=D[w]=D[m]=D[_]=!1;var L=typeof Je=="object"&&Je&&Je.Object===Object&&Je,C=typeof self=="object"&&self&&self.Object===Object&&self,V=L||C||Function("return this")(),K=ne&&!ne.nodeType&&ne,Q=K&&!0&&$&&!$.nodeType&&$,te=Q&&Q.exports===K,ie=te&&L.process,ae=(function(){try{return ie&&ie.binding&&ie.binding("util")}catch{}})(),fe=ae&&ae.isTypedArray;function ce(c,x){for(var B=-1,Z=c==null?0:c.length,se=0,re=[];++B<Z;){var pe=c[B];x(pe,B,c)&&(re[se++]=pe)}return re}function Oe(c,x){for(var B=-1,Z=x.length,se=c.length;++B<Z;)c[se+B]=x[B];return c}function be(c,x){for(var B=-1,Z=c==null?0:c.length;++B<Z;)if(x(c[B],B,c))return!0;return!1}function G(c,x){for(var B=-1,Z=Array(c);++B<c;)Z[B]=x(B);return Z}function Y(c){return function(x){return c(x)}}function J(c,x){return c.has(x)}function ee(c,x){return c==null?void 0:c[x]}function X(c){var x=-1,B=Array(c.size);
vendor: 2,373 bytes, line 41
41return c.forEach(function(Z,se){B[++x]=[se,Z]}),B}function ue(c,x){return function(B){return c(x(B))}}function oe(c){var x=-1,B=Array(c.size);return c.forEach(function(Z){B[++x]=Z}),B}var le=Array.prototype,xe=Function.prototype,Te=Object.prototype,ge=V["__core-js_shared__"],et=xe.toString,de=Te.hasOwnProperty,Be=(function(){var c=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),zt=Te.toString,un=RegExp("^"+et.call(de).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=te?V.Buffer:void 0,lt=V.Symbol,Vt=V.Uint8Array,ut=Te.propertyIsEnumerable,tt=le.splice,Ue=lt?lt.toStringTag:void 0,st=Object.getOwnPropertySymbols,At=wt?wt.isBuffer:void 0,nt=ue(Object.keys,Object),Tt=Ge(V,"DataView"),rt=Ge(V,"Map"),kt=Ge(V,"Promise"),Nt=Ge(V,"Set"),St=Ge(V,"WeakMap"),Qe=Ge(Object,"create"),Kt=Re(Tt),$e=Re(rt),sn=Re(kt),fn=Re(Nt),cn=Re(St),$t=lt?lt.prototype:void 0,xt=$t?$t.valueOf:void 0;function ke(c){var x=-1,B=c==null?0:c.length;for(this.clear();++x<B;){var Z=c[x];this.set(Z[0],Z[1])}}function hn(){this.__data__=Qe?Qe(null):{},this.size=0}function dn(c){var x=this.has(c)&&delete this.__data__[c];return this.size-=x?1:0,x}function vn(c){var x=this.__data__;if(Qe){var B=x[c];return B===O?void 0:B}return de.call(x,c)?x[c]:void 0}function pn(c){var x=this.__data__;return Qe?x[c]!==void 0:de.call(x,c)}function yn(c,x){var B=this.__data__;return this.size+=this.has(c)?0:1,B[c]=Qe&&x===void 0?O:x,this}ke.prototype.clear=hn,ke.prototype.delete=dn,ke.prototype.get=vn,ke.prototype.has=pn,ke.prototype.set=yn;function Pe(c){var x=-1,B=c==null?0:c.length;for(this.clear();++x<B;){var Z=c[x];this.set(Z[0],Z[1])}}function gn(){this.__data__=[],this.size=0}function mn(c){var x=this.__data__,B=ht(x,c);if(B<0)return!1;var Z=x.length-1;return B==Z?x.pop():tt.call(x,B,1),--this.size,!0}function bn(c){var x=this.__data__,B=ht(x,c);return B<0?void 0:x[B][1]}function _n(c){return ht(this.__data__,c)>-1}function On(c,x){var B=this.__data__,Z=ht(B,c);return Z<0?(++this.size,B.push([c,x])):B[Z][1]=x,this}Pe.prototype.clear=gn,Pe.prototype.delete=mn,Pe.prototype.get=bn,Pe.prototype.has=_n,Pe.prototype.set=On;function Me(c){var x=-1,B=c==null?0:c.length;for(this.clear();++x<B;){var Z=c[x];this.set(Z[0],Z[1])}}function En(){this.size=0,this.__data__={hash:new ke,map:new(rt||Pe),string:new ke}}
vendor: 1,250 bytes, line 41
41function wn(c){var x=He(this,c).delete(c);return this.size-=x?1:0,x}function An(c){return He(this,c).get(c)}function Tn(c){return He(this,c).has(c)}function kn(c,x){var B=He(this,c),Z=B.size;return B.set(c,x),this.size+=B.size==Z?0:1,this}Me.prototype.clear=En,Me.prototype.delete=wn,Me.prototype.get=An,Me.prototype.has=Tn,Me.prototype.set=kn;function ft(c){var x=-1,B=c==null?0:c.length;for(this.__data__=new Me;++x<B;)this.add(c[x])}function Gt(c){return this.__data__.set(c,O),this}function ct(c){return this.__data__.has(c)}ft.prototype.add=ft.prototype.push=Gt,ft.prototype.has=ct;function ze(c){var x=this.__data__=new Pe(c);this.size=x.size}function Pt(){this.__data__=new Pe,this.size=0}function Nn(c){var x=this.__data__,B=x.delete(c);return this.size=x.size,B}function Sn(c){return this.__data__.get(c)}function xn(c){return this.__data__.has(c)}function Pn(c,x){var B=this.__data__;if(B instanceof Pe){var Z=B.__data__;if(!rt||Z.length<M-1)return Z.push([c,x]),this.size=++B.size,this;B=this.__data__=new Me(Z)}return B.set(c,x),this.size=B.size,this}ze.prototype.clear=Pt,ze.prototype.delete=Nn,ze.prototype.get=Sn,ze.prototype.has=xn,ze.prototype.set=Pn;function Ln(c,x){var B=dt(c),Z=!B&&Xt(c),se=!B&&!Z&&vt(c),re=!B&&!Z&&!se&&tn(c),pe
vendor: 4,965 bytes, line 41
41=B||Z||se||re,ve=pe?G(c.length,String):[],Ee=ve.length;for(var me in c)de.call(c,me)&&!(pe&&(me=="length"||se&&(me=="offset"||me=="parent")||re&&(me=="buffer"||me=="byteLength"||me=="byteOffset")||Cn(me,Ee)))&&ve.push(me);return ve}function ht(c,x){for(var B=c.length;B--;)if(Qt(c[B][0],x))return B;return-1}function Lt(c,x,B){var Z=x(c);return dt(c)?Z:Oe(Z,B(c))}function it(c){return c==null?c===void 0?A:o:Ue&&Ue in Object(c)?Ze(c):Yt(c)}function Zt(c){return Ke(c)&&it(c)==k}function Wt(c,x,B,Z,se){return c===x?!0:c==null||x==null||!Ke(c)&&!Ke(x)?c!==c&&x!==x:qn(c,x,B,Z,Wt,se)}function qn(c,x,B,Z,se,re){var pe=dt(c),ve=dt(x),Ee=pe?g:Ve(c),me=ve?g:Ve(x);Ee=Ee==k?a:Ee,me=me==k?a:me;var Le=Ee==a,De=me==a,Ae=Ee==me;if(Ae&&vt(c)){if(!vt(x))return!1;pe=!0,Le=!1}if(Ae&&!Le)return re||(re=new ze),pe||tn(c)?qt(c,x,B,Z,se,re):Mn(c,x,Ee,B,Z,se,re);if(!(B&p)){var qe=Le&&de.call(c,"__wrapped__"),Ne=De&&de.call(x,"__wrapped__");if(qe||Ne){var Xe=qe?c.value():c,We=Ne?x.value():x;return re||(re=new ze),se(Xe,We,B,Z,re)}}return Ae?(re||(re=new ze),Dn(c,x,B,Z,se,re)):!1}function Rn(c){if(!en(c)||Un(c))return!1;var x=Jt(c)?un:j;return x.test(Re(c))}function In(c){return Ke(c)&&It(c.length)&&!!D[it(c)]}function jn(c){if(!Hn(c))return nt(c);var x=[];for(var B in Object(c))de.call(c,B)&&B!="constructor"&&x.push(B);return x}function qt(c,x,B,Z,se,re){var pe=B&p,ve=c.length,Ee=x.length;if(ve!=Ee&&!(pe&&Ee>ve))return!1;var me=re.get(c);if(me&&re.get(x))return me==x;var Le=-1,De=!0,Ae=B&P?new ft:void 0;for(re.set(c,x),re.set(x,c);++Le<ve;){var qe=c[Le],Ne=x[Le];if(Z)var Xe=pe?Z(Ne,qe,Le,x,c,re):Z(qe,Ne,Le,c,x,re);if(Xe!==void 0){if(Xe)continue;De=!1;break}if(Ae){if(!be(x,function(We,at){if(!J(Ae,at)&&(qe===We||se(qe,We,B,Z,re)))return Ae.push(at)})){De=!1;break}}else if(!(qe===Ne||se(qe,Ne,B,Z,re))){De=!1;break}}return re.delete(c),re.delete(x),De}function Mn(c,x,B,Z,se,re,pe){switch(B){case y:if(c.byteLength!=x.byteLength||c.byteOffset!=x.byteOffset)return!1;c=c.buffer,x=x.buffer;case d:return!(c.byteLength!=x.byteLength||!re(new Vt(c),new Vt(x)));case f:case i:case s:return Qt(+c,+x);case e:return c.name==x.name&&c.message==x.message;case l:case m:return c==x+"";case u:var ve=X;case w:var Ee=Z&p;if(ve||(ve=oe),c.size!=x.size&&!Ee)return!1;var me=pe.get(c);if(me)return me==x;Z|=P,pe.set(c,x);var Le=qt(ve(c),ve(x),Z,se,re,pe);return pe.delete(c),Le;case b:if(xt)return xt.call(c)==xt.call(x)}return!1}function Dn(c,x,B,Z,se,re){var pe=B&p,ve=ot(c),Ee=ve.length,me=ot(x),Le=me.length;if(Ee!=Le&&!pe)return!1;for(var De=Ee;De--;){var Ae=ve[De];if(!(pe?Ae in x:de.call(x,Ae)))return!1}var qe=re.get(c);if(qe&&re.get(x))return qe==x;var Ne=!0;re.set(c,x),re.set(x,c);for(var Xe=pe;++De<Ee;){Ae=ve[De];var We=c[Ae],at=x[Ae];if(Z)var Qn=pe?Z(at,We,Ae,x,c,re):Z(We,at,Ae,c,x,re);if(!(Qn===void 0?We===at||se(We,at,B,Z,re):Qn)){Ne=!1;break}Xe||(Xe=Ae=="constructor")}if(Ne&&!Xe){var nn=c.constructor,rn=x.constructor;nn!=rn&&"constructor"in c&&"constructor"in x&&!(typeof nn=="function"&&nn instanceof nn&&typeof rn=="function"&&rn instanceof rn)&&(Ne=!1)}return re.delete(c),re.delete(x),Ne}function ot(c){return Lt(c,jt,Bn)}function He(c,x){var B=c.__data__;return Fn(x)?B[typeof x=="string"?"string":"hash"]:B.map}function Ge(c,x){var B=ee(c,x);return Rn(B)?B:void 0}function Ze(c){var x=de.call(c,Ue),B=c[Ue];try{c[Ue]=void 0;var Z=!0}catch{}var se=zt.call(c);return Z&&(x?c[Ue]=B:delete c[Ue]),se}var Bn=st?function(c){return c==null?[]:(c=Object(c),ce(st(c),function(x){return ut.call(c,x)}))}:Vn,Ve=it;(Tt&&Ve(new Tt(new ArrayBuffer(1)))!=y||rt&&Ve(new rt)!=u||kt&&Ve(kt.resolve())!=r||Nt&&Ve(new Nt)!=w||St&&Ve(new St)!=_)&&(Ve=function(c){var x=it(c),B=x==a?c.constructor:void 0,Z=B?Re(B):"";if(Z)switch(Z){case Kt:return y;case $e:return u;case sn:return r;case fn:return w;case cn:return _}return x});function Cn(c,x){return x=x??S,!!x&&(typeof c=="number"||H.test(c))&&c>-1&&c%1==0&&c<x}function Fn(c){var x=typeof c;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?c!=="__proto__":c===null}function Un(c){return!!Be&&Be in c}function Hn(c){var x=c&&c.constructor,B=typeof x=="function"&&x.prototype||Te;return c===B}function Yt(c){return zt.call(c)}function Re(c){if(c!=null){try{return et.call(c)}catch{}try{return c+""}catch{}}return""}function Qt(c,x){return c===x||c!==c&&x!==x}var Xt=Zt((function(){return arguments})())?Zt:function(c){return Ke(c)&&de.call(c,"callee")&&!ut.call(c,"callee")},dt=Array.isArray;function Rt(c){return c!=null&&It(c.length)&&!Jt(c)}var vt=At||Kn;function zn(c,x){return Wt(c,x)}function Jt(c){if(!en(c))return!1;var x=it(c);return x==t||x==h||x==v||x==n}function It(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=S}function en(c){var x=typeof c;return c!=null&&(x=="object"||x=="function")}function Ke(c){return c!=null&&typeof c=="object"}var tn=fe?Y(fe):In;function jt(c){return Rt(c)?Ln(c):jn(c)}function Vn(){return[]}function Kn(){return!1}$.exports=zn})(Ct,Ct.exports)),Ct.exports}var pt={},rr;
41function ti(){if(rr)return pt;rr=1;var $=pt&&pt.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(pt,"__esModule",{value:!0});var ne=$(dr()),M=$(vr()),O;return(function(p){function P(v,f,i){v===void 0&&(v={}),f===void 0&&(f={}),typeof v!="object"&&(v={}),typeof f!="object"&&(f={});var e=ne.default(f);i||(e=Object.keys(e).reduce(function(h,u){return e[u]!=null&&(h[u]=e[u]),h},{}));for(var t in v)v[t]!==void 0&&f[t]===void 0&&(e[t]=v[t]);return Object.keys(e).length>0?e:void 0}p.compose=P;function S(v,f){v===void 0&&(v={}),f===void 0&&(f={}),typeof v!="object"&&(v={}),typeof f!="object"&&(f={});var i=Object.keys(v).concat(Object.keys(f)).reduce(function(e,t){return M.default(v[t],f[t])||(e[t]=f[t]===void 0?null:f[t]),e},{});return Object.keys(i).length>0?i:void 0}p.diff=S;function k(v,f){v===void 0&&(v={}),f===void 0&&(f={}),v=v||{};var i=Object.keys(f).reduce(function(e,t){return f[t]!==v[t]&&v[t]!==void 0&&(e[t]=f[t]),e},{});return Object.keys(v).reduce(function(e,t){return v[t]!==f[t]&&f[t]===void 0&&(e[t]=null),e},i)}p.invert=k;function g(v,f,i){if(i===void 0&&(i=!1),typeof v!="object")return f;if(typeof f=="object"){if(!i)return f;var e=Object.keys(f).reduce(function(t,h){return v[h]===void 0&&(t[h]=f[h]),t},{});return Object.keys(e).length>0?e:void 0}}p.transform=g})(O||(O={})),pt.default=O,pt}var yt={},gt={},ir;function ni(){if(ir)return gt;ir=1;var $=gt&&gt.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(gt,"__esModule",{value:!0});var ne=$(pr()),M=(function(){function O(p){this.ops=p,this.index=0,this.offset=0}return O.prototype.hasNext=function(){return this.peekLength()<1/0},O.prototype.next=function(p){p||(p=1/0);var P=this.ops[this.index];if(P){var S=this.offset,k=ne.default.length(P);if(p>=k-S?(p=k-S,this.index+=1,this.offset=0):this.offset+=p,typeof P.delete=="number")return{delete:p};var g={};return P.attributes&&(g.attributes=P.attributes),typeof P.retain=="number"?g.retain=p:typeof P.insert=="string"?g.insert=P.insert.substr(S,p):g.insert=P.insert,g}else return{retain:1/0}},O.prototype.peek=function(){return this.ops[this.index]},O.prototype.peekLength=function(){return this.ops[this.index]?ne.default.length(this.ops[this.index])-this.offset:1/0},O.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},O.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var p=this.offset,P=this.index,S=this.next(),k=this.ops.slice(this.index);return this.offset=p,this.index=P,[S].concat(k)}else return[]},O})();return gt.default=M,gt}var or;function pr(){if(or)return yt;or=1;var $=yt&&yt.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(yt,"__esModule",{value:!0});var ne=$(ni()),M;return(function(O){function p(S){return new ne.default(S)}O.iterator=p;function P(S){return typeof S.delete=="number"?S.delete:typeof S.retain=="number"?S.retain:typeof S.insert=="string"?S.insert.length:1}O.length=P})(M||(M={})),yt.default=M,yt}var Dt,ar;function ri(){if(ar)return Dt;ar=1;var $=Dt&&Dt.__importDefault||function(g){return g&&g.__esModule?g:{default:g}},ne=$(ei()),M=$(dr()),O=$(vr()),p=$(ti()),P=$(pr()),S="\0",k=(function(){function g(v){Array.isArray(v)?this.ops=v:v!=null&&Array.isArray(v.ops)?this.ops=v.ops:this.ops=[]}return g.prototype.insert=function(v,f){var i={};return typeof v=="string"&&v.length===0?this:(i.insert=v,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(i.attributes=f),this.push(i))},g.prototype.delete=function(v){return v<=0?this:this.push({delete:v})},g.prototype.retain=function(v,f){if(v<=0)return this;var i={retain:v};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(i.attributes=f),this.push(i)},g.prototype.push=function(v){var f=this.ops.length,i=this.ops[f-1];if(v=M.default(v),typeof i=="object"){if(typeof v.delete=="number"&&typeof i.delete=="number")return this.ops[f-1]={delete:i.delete+v.delete},this;if(typeof i.delete=="number"&&v.insert!=null&&(f-=1,i=this.ops[f-1],typeof i!="object"))return this.ops.unshift(v),this;if(O.default(v.attributes,i.attributes)){if(typeof v.insert=="string"&&typeof i.insert=="string")return this.ops[f-1]={insert:i.insert+v.insert},typeof v.attributes=="object"&&(this.ops[f-1].attributes=v.attributes),this;if(typeof v.retain=="number"&&typeof i.retain=="number")return this.ops[f-1]={retain:i.retain+v.retain},typeof v.attributes=="object"&&(this.ops[f-1].attributes=v.attributes),this}}return f===this.ops.length?this.ops.push(v):this.ops.splice(f,0,v),this},g.prototype.chop=function(){var v=this.ops[this.ops.length-1];return v&&v.retain&&!v.attributes&&this.ops.pop(),this},g.prototype.filter=function(v){return this.ops.filter(v)},g.prototype.forEach=function(v){this.ops.forEach(v)},g.prototype.map=function(v){return this.ops.map(v)},g.prototype.partition=function(v){var f=[],i=[];return this.forEach(function(e){var t=v(e)?f:i;t.push(e)}),[f,i]},g.prototype.reduce=function(v,f){return this.ops.reduce(v,f)},g.prototype.changeLength=function(){return this.reduce(function(v,f){return f.insert?v+P.default.length(f):f.delete?v-f.delete:v},0)},g.prototype.length=function(){return this.reduce(function(v,f){return v+P.default.length(f)},0)},g.prototype.slice=function(v,f){v===void 0&&(v=0),f===void 0&&(f=1/0);for(var i=[],e=P.default.iterator(this.ops),t=0;t<f&&e.hasNext();){var h=void 0;t<v?h=e.next(v-t):(h=e.next(f-t),i.push(h)),t+=P.default.length(h)}return new g(i)},g.prototype.compose=function(v){var f=P.default.iterator(this.ops),i=P.default.iterator(v.ops),e=[],t=i.peek();if(t!=null&&typeof t.retain=="number"&&t.attributes==null){for(var h=t.retain;f.peekType()==="insert"&&f.peekLength()<=h;)h-=f.peekLength(),e.push(f.next());t.retain-h>0&&i.next(t.retain-h)}for(var u=new g(e);f.hasNext()||i.hasNext();)if(i.peekType()==="insert")u.push(i.next());else if(f.peekType()==="delete")u.push(f.next());else{var s=Math.min(f.peekLength(),i.peekLength()),o=f.next(s),a=i.next(s);if(typeof a.retain=="number"){var r={};typeof o.retain=="number"?r.retain=s:r.insert=o.insert;var n=p.default.compose(o.attributes,a.attributes,typeof o.retain=="number");if(n&&(r.attributes=n),u.push(r),!i.hasNext()&&O.default(u.ops[u.ops.length-1],r)){var l=new g(f.rest());return u.concat(l).chop()}}else typeof a.delete=="number"&&typeof o.retain=="number"&&u.push(a)}return u.chop()},g.prototype.concat=function(v){var f=new g(this.ops.slice());return v.ops.length>0&&(f.push(v.ops[0]),f.ops=f.ops.concat(v.ops.slice(1))),f},g.prototype.diff=function(v,f){if(this.ops===v.ops)return new g;
41var i=[this,v].map(function(s){return s.map(function(o){if(o.insert!=null)return typeof o.insert=="string"?o.insert:S;var a=s===v?"on":"with";throw new Error("diff() called "+a+" non-document")}).join("")}),e=new g,t=ne.default(i[0],i[1],f),h=P.default.iterator(this.ops),u=P.default.iterator(v.ops);return t.forEach(function(s){for(var o=s[1].length;o>0;){var a=0;switch(s[0]){case ne.default.INSERT:a=Math.min(u.peekLength(),o),e.push(u.next(a));break;case ne.default.DELETE:a=Math.min(o,h.peekLength()),h.next(a),e.delete(a);break;case ne.default.EQUAL:a=Math.min(h.peekLength(),u.peekLength(),o);var r=h.next(a),n=u.next(a);O.default(r.insert,n.insert)?e.retain(a,p.default.diff(r.attributes,n.attributes)):e.push(n).delete(a);break}o-=a}}),e.chop()},g.prototype.eachLine=function(v,f){f===void 0&&(f=`
42`);for(var i=P.default.iterator(this.ops),e=new g,t=0;i.hasNext();){if(i.peekType()!=="insert")return;var h=i.peek(),u=P.default.length(h)-i.peekLength(),s=typeof h.insert=="string"?h.insert.indexOf(f,u)-u:-1;if(s<0)e.push(i.next());else if(s>0)e.push(i.next(s));else{if(v(e,i.next(1).attributes||{},t)===!1)return;t+=1,e=new g}}e.length()>0&&v(e,{},t)},g.prototype.invert=function(v){var f=new g;return this.reduce(function(i,e){if(e.insert)f.delete(P.default.length(e));else{if(e.retain&&e.attributes==null)return f.retain(e.retain),i+e.retain;if(e.delete||e.retain&&e.attributes){var t=e.delete||e.retain,h=v.slice(i,i+t);return h.forEach(function(u){e.delete?f.push(u):e.retain&&e.attributes&&f.retain(P.default.length(u),p.default.invert(e.attributes,u.attributes))}),i+t}}return i},0),f.chop()},g.prototype.transform=function(v,f){if(f===void 0&&(f=!1),f=!!f,typeof v=="number")return this.transformPosition(v,f);for(var i=v,e=P.default.iterator(this.ops),t=P.default.iterator(i.ops),h=new g;e.hasNext()||t.hasNext();
42)if(e.peekType()==="insert"&&(f||t.peekType()!=="insert"))h.retain(P.default.length(e.next()));else if(t.peekType()==="insert")h.push(t.next());else{var u=Math.min(e.peekLength(),t.peekLength()),s=e.next(u),o=t.next(u);if(s.delete)continue;o.delete?h.push(o):h.retain(u,p.default.transform(s.attributes,o.attributes,f))}return h.chop()},g.prototype.transformPosition=function(v,f){f===void 0&&(f=!1),f=!!f;for(var i=P.default.iterator(this.ops),e=0;i.hasNext()&&e<=v;){var t=i.peekLength(),h=i.peekType();if(i.next(),h==="delete"){v-=Math.min(t,v-e);continue}else h==="insert"&&(e<v||!f)&&(v+=t);e+=t}return v},g.Op=P.default,g.AttributeMap=p.default,g})();return Dt=k,Dt}var ii=ri();const oi=cr(ii);/*!
43 * VueQuill @vueup/vue-quill v1.2.0
44 * https://vueup.github.io/vue-quill/
45 * 
46 * Includes quill v1.3.7
47 * https://quilljs.com/
48 * 
49 * Copyright (c) 2023 Ahmad Luthfi Masruri
50 * Released under the MIT license
51 * Date: 2023-05-12T08:44:03.742Z
52 */const lr={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]},ai=_r({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:$=>["delta","html","text"].includes($)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:$=>["snow","bubble",""].includes($)},toolbar:{type:[String,Array,Object],required:!1,validator:$=>typeof $=="string"&&$!==""?$.charAt(0)==="#"?!0:Object.keys(lr).indexOf($)!==-1:!0},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:($,ne)=>{ln(()=>{P()}),Er(()=>{M=null});let M,O;const p=_e(),P=()=>{var d;if(p.value){if(O=S(),$.modules)if(Array.isArray($.modules))for(const y of $.modules)Ut.register(`modules/${y.name}`,y.module);else Ut.register(`modules/${$.modules.name}`,$.modules.module);M=new Ut(p.value,O),r($.content),M.on("text-change",i),M.on("selection-change",t),M.on("editor-change",h),$.theme!=="bubble"&&p.value.classList.remove("ql-bubble"),$.theme!=="snow"&&p.value.classList.remove("ql-snow"),(d=M.getModule("toolbar"))===null||d===void 0||d.container.addEventListener("mousedown",y=>{y.preventDefault()}),ne.emit("ready",M)}},S=()=>{const d={};if($.theme!==""&&(d.theme=$.theme),$.readOnly&&(d.readOnly=$.readOnly),$.placeholder&&(d.placeholder=$.placeholder),$.toolbar&&$.toolbar!==""&&(d.modules={toolbar:(()=>{if(typeof $.toolbar=="object")return $.toolbar;if(typeof $.toolbar=="string")return $.toolbar.charAt(0)==="#"?$.toolbar:lr[$.toolbar]})()}),$.modules){const y=(()=>{var E,N;const I={};if(Array.isArray($.modules))for(const U of $.modules)I[U.name]=(E=U.options)!==null&&E!==void 0?E:{};else I[$.modules.name]=(N=$.modules.options)!==null&&N!==void 0?N:{};return I})();d.modules=Object.assign({},d.modules,y)}return Object.assign({},$.globalOptions,$.options,d)},k=d=>typeof d=="object"&&d?d.slice():d,g=d=>Object.values(d.ops).some(y=>!y.retain||Object.keys(y).length!==1);let v;const f=d=>{if(typeof v==typeof d){if(d===v)return!0;if(typeof d=="object"&&d&&typeof v=="object"&&v)return!g(v.diff(d))}return!1},i=(d,y,E)=>{v=k(a()),f($.content)||ne.emit("update:content",v),ne.emit("textChange",{delta:d,oldContents:y,source:E})},e=_e(),t=(d,y,E)=>{e.value=!!(M!=null&&M.hasFocus()),ne.emit("selectionChange",{range:d,oldRange:y,source:E})};Ft(e,d=>{d?ne.emit("focus",p):ne.emit("blur",p)});const h=(...d)=>{d[0]==="text-change"&&ne.emit("editorChange",{name:d[0],delta:d[1],oldContents:d[2],source:d[3]}),d[0]==="selection-change"&&ne.emit("editorChange",{name:d[0],range:d[1],oldRange:d[2],source:d[3]})},u=()=>p.value,s=()=>{var d;return(d=M==null?void 0:M.getModule("toolbar"))===null||d===void 0?void 0:d.container},o=()=>
52{if(M)return M;throw`The quill editor hasn't been instantiated yet,
53                  make sure to call this method when the editor ready
54                  or use v-on:ready="onReady(quill)" event instead.`},a=(d,y)=>$.contentType==="html"?w():$.contentType==="text"?n(d,y):M==null?void 0:M.getContents(d,y),r=(d,y="api")=>{const E=d||($.contentType==="delta"?new oi:"");$.contentType==="html"?m(E):$.contentType==="text"?l(E,y):M==null||M.setContents(E,y),v=k(E)},n=(d,y)=>{var E;return(E=M==null?void 0:M.getText(d,y))!==null&&E!==void 0?E:""},l=(d,y="api")=>{M==null||M.setText(d,y)},w=()=>{var d;return(d=M==null?void 0:M.root.innerHTML)!==null&&d!==void 0?d:""},m=d=>{M&&(M.root.innerHTML=d)},b=(d,y="api")=>{const E=M==null?void 0:M.clipboard.convert(d);E&&(M==null||M.setContents(E,y))},A=()=>{M==null||M.focus()},_=()=>{Zn(()=>{var d;!ne.slots.toolbar&&M&&((d=M.getModule("toolbar"))===null||d===void 0||d.container.remove()),P()})};return Ft(()=>$.content,d=>{if(!M||!d||f(d))return;const y=M.getSelection();y&&Zn(()=>M==null?void 0:M.setSelection(y)),r(d)},{deep:!0}),Ft(()=>$.enable,d=>{M&&M.enable(d)}),{editor:p,getEditor:u,getToolbar:s,getQuill:o,getContents:a,setContents:r,getHTML:w,setHTML:m,pasteHTML:b,focus:A,getText:n,setText:l,reinit:_}},render(){var $,ne;return[(ne=($=this.$slots).toolbar)===null||ne===void 0?void 0:ne.call($),Or("div",{ref:"editor",...this.$attrs})]}}),li={__name:"TextEditor",props:{inputId:{type:String,default:Math.random().toString()},modelValue:{type:String,required:!0},v:{type:Object},label:String,noLabel:{type:Boolean,default:!0},placeholder:{type:String,default:"Enter news"},toolbarOptions:Object,limit:{type:Number,default:null},isEdit:{type:Boolean,default:!1},content:[String]},emits:["update:modelValue"],setup($,{emit:ne}){const M=ne,O=$,p=Ut.import("attributors/style/size");p.whitelist=["10px","12px","14px","16px","20px","24px","32px"],Ut.register(p,!0);const P=[[{size:["10px","12px","14px","16px","20px","24px","32px"]}],["bold","italic","underline","strike"],[{align:[]}],[{list:"ordered"},{list:"bullet"}],["link"],["code-block"],["clean"]],S=_e(null),k=_e(0),g=Ie({get(){return O.modelValue},set(e){M("update:modelValue",e)}}),v=Ie(()=>({modules:{toolbar:O.toolbarOptions||P},placeholder:O.placeholder}));function f(){Zn(()=>{g.value=O.content})}function i(e){const t=S.value.getQuill();if(k.value=t.root.innerText.trim()?t.getLength():0,O.limit&&k.value>O.limit){const{ops:u}=e.delta;let s;u.length===1?s=[{delete:u[0].insert.length}]:s=[u[0],{delete:u[1].insert.length}],t.updateContents({ops:s})}t.getSelection()&&document.querySelectorAll(".ql-editor li").forEach(s=>{s.style.fontSize=s.childNodes[0].style.fontSize})}return ln(()=>{if(!O.isEdit){const e=S.value.getQuill();e.setText("");const t=h=>{h&&(e.off("selection-change",t),e.getLength()<=1&&e.format("size","16px"))};e.on("selection-change",t)}}),Ft(()=>O.modelValue,e=>{e||S.value.setText("")}),(e,t)=>{var h,u,s;return je(),Ye(fr,{error:(s=(u=(h=$.v)==null?void 0:h.$errors)==null?void 0:u[0])==null?void 0:s.$message,"input-id":$.inputId,label:$.label,"no-label":$.noLabel},wr({default:he(()=>[ye(we(ai),{ref_key:"editor",ref:S,content:g.value,"onUpdate:content":t[0]||(t[0]=o=>g.value=o),"content-type":"html",theme:"snow",options:v.value,onReady:f,onTextChange:i},null,8,["content","options"])]),_:2},[$.limit?{name:"afterLabel",fn:he(()=>[ye(Ce,{class:"text_editor_counter"},{default:he(()=>[Se(Ot(k.value)+"/"+Ot($.limit),1)]),_:1})]),key:"0"}:void 0]),1032,["error","input-id","label","no-label"])}}},ui={class:"modal_news_editor-form"},si={__name:"ModalNewsEditor",props:{isEdit:{type:Boolean,default:!1},rubricOptions:{type:Array,required:!0},loading:{type:Boolean,required:!0},item:{type:[null,Wn],default:null}},emits:["close","submit"],setup($,{emit:ne}){const M=ne,O=$,p=_e(h()),P=_e(h()),S=Ie(()=>O.isEdit?"Edit news":"Create news"),k=Ie(()=>O.isEdit?qr(p.value,P.value)||!p.value.title||!p.value.rubricId||!g.value:i.value.$invalid||!g.value),g=Ie(()=>!!p.value.content.replace(/<[^>]*>/g,"").trim().length),v=Ie(()=>{var m,b;return((b=(m=O.item)==null?void 0:m.status)==null?void 0:b.value)===1}),f=Ie(()=>({form:{title:{required:on},rubricId:{required:on},content:{required:on},image:{required:on},publishDate:{}}}
54)),i=Lr(f,{form:p}),e=Ie(()=>O.isEdit?O.item.imageUrl:""),t=Ie(()=>O.isEdit?"Save":"Create");function h(){return{title:"",content:"",rubricId:1,image:null,publishDate:void 0}}function u(){var b,A;const m={title:O.item.title,content:O.item.content,rubricId:O.item.rubric.id,publishDate:((b=O.item.publishDate)==null?void 0:b.date)||void 0,image:null};p.value=m,P.value={...Rr(m,!0),publishDate:((A=O.item.publishDate)==null?void 0:A.date)||void 0}}const s=Ie({get:()=>p.value.publishDate?{preset:null,start:p.value.publishDate,end:null}:null,set:m=>{p.value.publishDate=(m==null?void 0:m.start)||void 0}}),o=Ie(()=>bt().startOf("day"));function a(m){return!!(m!=null&&m.start)&&m.start.isBefore(bt(),"minute")}const r=_e(null);function n(){var m;(m=r.value)==null||m.close()}function l(){M("close")}async function w(){M("submit",{...p.value,publishDate:p.value.publishDate?p.value.publishDate.unix():void 0,image:p.value.image||void 0})}return ln(()=>{O.isEdit&&u()}),(m,b)=>(je(),Ye(we(jr),{ref_key:"baseModal",ref:r,class:"modal_news_editor","modal-width":"510px","secondary-button-text":"Cancel",controls:"","full-width-controls":"","close-on-escape":!1,"primary-button-disabled":k.value,"primary-button-loading":$.loading,"primary-button-text":t.value,title:S.value,onClose:l,onPrimaryButtonClick:w,onSecondaryButtonClick:n},{default:he(()=>[Fe("div",ui,[ye(sr,{modelValue:we(i).form.rubricId.$model,"onUpdate:modelValue":b[0]||(b[0]=A=>we(i).form.rubricId.$model=A),"input-id":"modal_news_rubric_select",label:"Theme","not-empty":"",options:$.rubricOptions,v:we(i).form.rubricId},null,8,["modelValue","options","v"]),ye(Yr,{modelValue:we(i).form.image.$model,"onUpdate:modelValue":b[1]||(b[1]=A=>we(i).form.image.$model=A),accept:".jpg, .png, .gif",class:"modal_news_editor-image-input","input-id":"modal_news_image",label:"Image","no-label":!1,preview:e.value,v:we(i).form.image},null,8,["modelValue","preview","v"]),ye(Ir,{modelValue:we(i).form.title.$model,"onUpdate:modelValue":b[2]||(b[2]=A=>we(i).form.title.$model=A),"input-id":"modal_news_title",label:"Title",placeholder:"Enter title",v:we(i).form.title},null,8,["modelValue","v"]),ye(li,{modelValue:we(i).form.content.$model,"onUpdate:modelValue":b[3]||(b[3]=A=>we(i).form.content.$model=A),class:"modal_news_editor-input","input-id":"modal_news_input",label:"News",content:P.value.content,limit:1500,"no-label":!1},null,8,["modelValue","content"]),ye(we(hr),{modelValue:s.value,"onUpdate:modelValue":b[4]||(b[4]=A=>s.value=A),"button-variant":"input",label:"Date",placeholder:"01.08.2022 00:00","selection-mode":"single",clearable:"","full-width":"","with-time":"","disable-apply":a,disabled:v.value,"min-date":o.value,"with-initial-date":!1},null,8,["modelValue","disabled","min-date"])])]),_:1},8,["primary-button-disabled","primary-button-loading","primary-button-text","title"]))}},fi={class:"news-item"},ci={class:"news-item__info"},hi=["src"],di={class:"news-item__actions"},vi={__name:"NewsTableItem",props:{item:{type:Wn,required:!0}},emits:["deleteNews","viewNews"],setup($,{emit:ne}){const M=Object.freeze({1:"var(--status-active)",2:"var(--status-pause)",3:"var(--surface-mute)"}),O=ne,p=$,P=Br(()=>p.item.imageUrl);function S(){O("viewNews",p.item)}function k(){O("deleteNews",p.item)}return(g,v)=>(je(),_t("div",fi,[Fe("div",ci,[Fe("img",{alt:"news image",class:"news-item__info-image",src:we(P)},null,8,hi),ye($n,{class:"news-item__info-title"},{title:he(()=>[ye(Ce,{class:"news-item__info-option-title",soft:""},{default:he(()=>[...v[0]||(v[0]=[Se(" Title: ",-1)])]),_:1})]),value:he(()=>[ye(Ce,{class:"news-item__info-value"},{default:he(()=>[Se(Ot($.item.title),1)]),_:1})]),_:1}),ye($n,{class:"news-item__info-options"},{title:he(()=>[ye(Ce,{class:"news-item__info-option-title",soft:""},{default:he(()=>[...v[1]||(v[1]=[Se(" Theme: ",-1)])]),_:1})]),value:he(()=>[ye(Ce,{class:"news-item__info-value"},{default:he(()=>[Se(Ot($.item.rubric.name),1)]),_:1})]),_:1}),ye($n,{class:"news-item__info-date"},{title:he(()=>[ye(Ce,{class:"news-item__info-option-title",soft:""},{default:he(()=>[...v[2]||(v[2]=[Se(" Date: ",-1)])]),_:1})]),value:he(()=>[ye(Ce,{class:"news-item__info-value"},{default:he(()=>[Se(Ot($.item.publishDate?we(Dr).dateFormat($.item.publishDate.date,"DD.MM.YYYY"):" "),1)]),_:1})]),_:1}),ye(Cr,{class:"news-item__info-status",color:we(M)[$.item.status.value],status:$.item.status},null,8,["color","status"])]),Fe("div",di,[ye(Et,{class:"news-item__actions-view","large-padding":"",onClick:S},{default:he(()=>[...v[3]||(v[3]=[Se(" View ",-1)])]),_:1}),ye(Et,{appearance:"secondary",class:"news-item__actions-delete",onClick:k},{default:he(()=>[...v[4]||(v[4]=[Se(" Delete ",-1)])]),_:1})])]))}},pi=Yn(vi,[["__scopeId","data-v-bcea7b16"]]),yi={class:"news__view-controls"},gi={key:1,class:"news__view-controls__skeleton-wrapper"},mi={key:0,class:"news__view-table__delimiter"},bi={__name:"NewsView",setup($){const ne=Ar(),M=Tr(),O=zr,p=_e(null),P=_e(!0),S=_e(!1),k=_e(!1),g=_e(),v=_e([{title:"All",value:void 0}]),f=_e(!1),i=_e(!1),e=_e(null),t=_e(!1),h=_e(!1),u=_e({rubric:void 0,period:{preset:Xn.CUSTOM,start:bt().subtract(30,"day").startOf("day"),end:bt().endOf("day")}}),s=Ie(()=>{var I,U;const[E,N]=gr((I=u.value.period)==null?void 0:I.start,(U=u.value.period)==null?void 0:U.end,mr.LOCAL);return{dateStart:E,dateEnd:N,rubric:u.value.rubric,sort:"desc",sortBy:"updatedAt"}});async function o(){try{const E=await Fr();g.value=_(E),v.value=[{title:"All",value:void 0},...g.value]}catch(E){console.error(E)}}async function a(){const E=M.query.ant;if(E)try{const N=JSON.parse(E);u.value.rubric=N.rubric||u.value.rubric,N.dateStart&&N.dateEnd&&(u.value.period={preset:Xn.CUSTOM,start:bt.unix(N.dateStart),end:bt.unix(N.dateEnd)})}catch(N){console.log(N)}}async function r(E){var N;S.value=!0;try{await(i.value?Hr:Ur)(E,(N=e.value)==null?void 0:N.id),y(),p.value.getTableRows()}catch(I){console.error(I)}S.value=!1}async function n(){k.value=!0;try{await Vr(e.value.id),m(),p.value.getTableRows()}catch(E){console.error(E)}k.value=!1}function l(){f.value=!1,i.value=!0,t.value=!0}function w(E){e.value=E,h.value=!0}function m(){e.value=null,h.value=!1}function b(E){e.value=E,f.value=!0}function A(){f.value=!1,e.value=null}function _(E){return Object.entries(E).map(([N,I])=>({title:I,value:parseInt(N)}))}function d(){t.value=!0}function y(){t.value=!1,e.value=null,i.value=!1}return ln(async()=>{P.value=!0,await o(),await a(),P.value=!1}),Ft(s,E=>{ne.replace({query:{...M.query,ant:JSON.stringify(kr.purgeFilters(E))}})}),(E,N)=>(je(),Ye(we(Mr),{title:"News"},{actions:he(()=>[ye(Et,{"icon-size":"s",disabled:P.value,onClick:d},{beforeIcon:he(()=>[ye(xr)]),default:he(()=>[ye(Ce,{type:"medium-text"},{default:he(()=>[...N[2]||(N[2]=[Se(" Create news ",-1)])]),_:1})]),_:1},8,["disabled"])]),default:he(()=>[Fe("div",yi,[P.value?(je(),_t("div",gi,[...N[3]||(N[3]=[Fe("div",{class:"skeleton_item news__view-controls__skeleton"},null,-1),Fe("div",{class:"skeleton_item news__view-controls__skeleton"},null,-1)])])):(je(),_t(ur,{key:0},[ye(sr,{modelValue:u.value.rubric,"onUpdate:modelValue":N[0]||(N[0]=I=>u.value.rubric=I),class:"news__view-controls__rubric","input-id":"news-rubric-select","no-label":"","not-empty":"",options:v.value,v:{}},null,8,["modelValue","options"]),ye(we(hr),{modelValue:u.value.period,"onUpdate:modelValue":N[1]||(N[1]=I=>u.value.period=I),"button-variant":"inline",placeholder:"Specify date range"},null,8,["modelValue"])],64))]),P.value?mt("",!0):(je(),Ye(Sr,{key:0,ref_key:"table",ref:p,class:"news__view-table","key-field":"id","table-id":"ant","all-time":"","no-controls":"",pagination:"","call-back":we(O),filters:s.value},{tableItem:he(({item:I,index:U})=>[U>0?(je(),_t("div",mi)):mt("",!0),ye(pi,{item:I,onDeleteNews:w,onViewNews:b},null,8,["item"])]),_:1},8,["call-back","filters"])),t.value?(je(),Ye(si,{key:1,"is-edit":i.value,item:e.value,loading:S.value,"rubric-options":g.value,onClose:y,onSubmit:r},null,8,["is-edit","item","loading","rubric-options"])):mt("",!0),f.value?(je(),Ye(Nr,{key:2,item:e.value,onClose:A},{afterContent:he(()=>[ye(Et,{class:"news__view-edit__btn",mode:"fill",onClick:l},{default:he(()=>[...N[4]||(N[4]=[Se(" Edit ",-1)])]),_:1})]),_:1},8,["item"])):mt("",!0),h.value?(je(),Ye(Pr,{key:3,text:"Selected news will be deleted",loading:k.value,onClose:m,onConfirm:n},null,8,["loading"])):mt("",!0)]),_:1}))}},vo=Yn(bi,[["__scopeId","data-v-1e6982c5"]]);export{vo as default};

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.