@konnectio/core 4.0.6 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ActionField-b87d2fd7.cjs +1 -0
- package/dist/{ActionField-5ecfc9dc.js → ActionField-f3d5b218.js} +4 -4
- package/dist/ActionField-f3d5b218.js.br +0 -0
- package/dist/AvailabilitySkeleton-019ec202.js +150 -0
- package/dist/AvailabilitySkeleton-019ec202.js.br +0 -0
- package/dist/AvailabilitySkeleton-e288f5be.cjs +1 -0
- package/dist/Field-21bb32d7.cjs +1 -0
- package/dist/Field-6bfeedce.js +59 -0
- package/dist/Field-6bfeedce.js.br +0 -0
- package/dist/{NumberField.vue_vue_type_style_index_0_lang-ab747739.js → SelectField.vue_vue_type_style_index_0_lang-701aecad.js} +7743 -6953
- package/dist/SelectField.vue_vue_type_style_index_0_lang-701aecad.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-a370e66d.cjs +797 -0
- package/dist/TextField-99e69631.cjs +54 -0
- package/dist/TextField-b8f4462a.js +9343 -0
- package/dist/TextField-b8f4462a.js.br +0 -0
- package/dist/ThankYou-add684c1.cjs +66 -0
- package/dist/ThankYou-edbf753b.js +14279 -0
- package/dist/ThankYou-edbf753b.js.br +0 -0
- package/dist/{_commonjsHelpers-aeeeeb92.js → _commonjsHelpers-c5d32002.js} +2 -2
- package/dist/{applyGiftCard-d9ab3dcf.cjs → applyGiftCard-c21f13ac.cjs} +1 -1
- package/dist/{applyGiftCard-c5e4aaad.js → applyGiftCard-dea77ba6.js} +7 -7
- package/dist/applyGiftCard-dea77ba6.js.br +0 -0
- package/dist/availability.cjs +2 -0
- package/dist/availability.js +236 -0
- package/dist/availability.js.br +0 -0
- package/dist/components/ErrorMessage.vue.d.ts +5 -0
- package/dist/components/ErrorMessage.vue.d.ts.map +1 -0
- package/dist/components/Icon.vue.d.ts +1 -1
- package/dist/components/forms/EventAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +1 -1
- package/dist/components/forms/MultiStepForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationForm.vue.d.ts +1 -1
- package/dist/components/forms/ReservationFormTest.vue.d.ts +5 -0
- package/dist/components/forms/ReservationFormTest.vue.d.ts.map +1 -0
- package/dist/components/inputs/grouped/CountryField.vue.d.ts +1 -1
- package/dist/components/listings/Base.vue.d.ts +1 -1
- package/dist/components/listings/Test.vue.d.ts +1 -1
- package/dist/components/side-panels/Base.vue.d.ts +1 -1
- package/dist/components/side-panels/Hotel.vue.d.ts +3 -2
- package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -1
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/AvailabilitySkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Field.vue.d.ts +5 -0
- package/dist/components/skeletons/Field.vue.d.ts.map +1 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/GiftCardSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts +5 -0
- package/dist/components/skeletons/HotelSkeleton.vue.d.ts.map +1 -0
- package/dist/components/skeletons/Listing.vue.d.ts +5 -0
- package/dist/components/skeletons/Listing.vue.d.ts.map +1 -0
- package/dist/components/skeletons/_.vue.d.ts +5 -0
- package/dist/components/skeletons/_.vue.d.ts.map +1 -0
- package/dist/entries/availability.d.ts +3 -2
- package/dist/entries/gift-card.d.ts +1 -2
- package/dist/entries/hotel.d.ts +0 -2
- package/dist/event-2c6a2138.cjs +1 -0
- package/dist/{event-a70cffeb.js → event-a9067cf5.js} +91 -91
- package/dist/event-a9067cf5.js.br +0 -0
- package/dist/event.cjs +2 -0
- package/dist/event.js +867 -0
- package/dist/event.js.br +0 -0
- package/dist/gift-card-validation.cjs +1 -0
- package/dist/{gift-card-validation.es.js → gift-card-validation.js} +42 -42
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card.cjs +1 -0
- package/dist/gift-card.d.ts +0 -2
- package/dist/gift-card.js +590 -0
- package/dist/gift-card.js.br +0 -0
- package/dist/hotel.cjs +19 -0
- package/dist/hotel.d.ts +0 -2
- package/dist/hotel.js +2981 -0
- package/dist/hotel.js.br +0 -0
- package/dist/{index-00262c16.js → index-d080b5a0.js} +5 -7
- package/dist/index-d080b5a0.js.br +0 -0
- package/dist/index-ec04c269.cjs +1 -0
- package/dist/layouts/Availability.vue.d.ts +42 -217
- package/dist/layouts/GiftCard.vue.d.ts +130 -99
- package/dist/layouts/Hotel.vue.d.ts +162 -57
- package/dist/{payment-fbffaa6d.cjs → payment-95b2392a.cjs} +2 -2
- package/dist/{payment-9e219e9b.js → payment-cce506b8.js} +930 -929
- package/dist/payment-cce506b8.js.br +0 -0
- package/dist/polyfill.cjs +4 -0
- package/dist/polyfill.js +6815 -0
- package/dist/polyfill.js.br +0 -0
- package/dist/store/availability.d.ts +4 -1
- package/dist/style.css +1 -1
- package/dist/style.css.br +0 -0
- package/package.json +11 -21
- package/dist/ActionField-5ecfc9dc.js.br +0 -0
- package/dist/ActionField-ae9b1adf.cjs +0 -1
- package/dist/HotelAvailabilityForm-0cd1abda.cjs +0 -1
- package/dist/HotelAvailabilityForm-a7b6f17e.js +0 -97
- package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
- package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +0 -793
- package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-05b8ec39.js +0 -376
- package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
- package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +0 -1
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js +0 -10107
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
- package/dist/SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs +0 -56
- package/dist/ThankYou-1866d8db.js +0 -8547
- package/dist/ThankYou-1866d8db.js.br +0 -0
- package/dist/ThankYou-5741bcb6.cjs +0 -15
- package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
- package/dist/availability.cjs.js +0 -1
- package/dist/availability.cjs.js.br +0 -0
- package/dist/availability.es.js +0 -183
- package/dist/availability.es.js.br +0 -0
- package/dist/components/LoadingBlock.vue.d.ts +0 -4
- package/dist/components/LoadingBlock.vue.d.ts.map +0 -1
- package/dist/event-39706438.cjs +0 -1
- package/dist/event-a70cffeb.js.br +0 -0
- package/dist/event.cjs.js +0 -1
- package/dist/event.cjs.js.br +0 -0
- package/dist/event.es.js +0 -645
- package/dist/event.es.js.br +0 -0
- package/dist/gift-card-validation.cjs.js +0 -1
- package/dist/gift-card-validation.cjs.js.br +0 -0
- package/dist/gift-card-validation.es.js.br +0 -0
- package/dist/gift-card.cjs.js +0 -1
- package/dist/gift-card.cjs.js.br +0 -0
- package/dist/gift-card.es.js +0 -584
- package/dist/gift-card.es.js.br +0 -0
- package/dist/hotel.cjs.js +0 -19
- package/dist/hotel.cjs.js.br +0 -0
- package/dist/hotel.es.js +0 -2394
- package/dist/hotel.es.js.br +0 -0
- package/dist/index-00262c16.js.br +0 -0
- package/dist/index-58f3b0cc.cjs +0 -1
- package/dist/payment-9e219e9b.js.br +0 -0
- package/dist/polyfill.cjs.js +0 -4
- package/dist/polyfill.cjs.js.br +0 -0
- package/dist/polyfill.es.js +0 -6764
- package/dist/polyfill.es.js.br +0 -0
- /package/dist/{navigation.cjs.js → navigation.cjs} +0 -0
- /package/dist/{navigation.es.js → navigation.js} +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";const H=require("./NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs"),Ee=require("./_commonjsHelpers-6763f629.cjs");var Yn={exports:{}};/*!
|
|
2
|
-
* Quill Editor v1.3.7
|
|
3
|
-
* https://quilljs.com/
|
|
4
|
-
* Copyright (c) 2014, Jason Chen
|
|
5
|
-
* Copyright (c) 2013, salesforce.com
|
|
6
|
-
*/(function(m,R){(function(p,f){m.exports=f()})(typeof self<"u"?self:Ee.commonjsGlobal,function(){return function(c){var p={};function f(E){if(p[E])return p[E].exports;var _=p[E]={i:E,l:!1,exports:{}};return c[E].call(_.exports,_,_.exports,f),_.l=!0,_.exports}return f.m=c,f.c=p,f.d=function(E,_,O){f.o(E,_)||Object.defineProperty(E,_,{configurable:!1,enumerable:!0,get:O})},f.n=function(E){var _=E&&E.__esModule?function(){return E.default}:function(){return E};return f.d(_,"a",_),_},f.o=function(E,_){return Object.prototype.hasOwnProperty.call(E,_)},f.p="",f(f.s=109)}([function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(17),_=f(18),O=f(19),g=f(45),b=f(46),d=f(47),o=f(48),e=f(49),t=f(12),l=f(32),a=f(33),s=f(31),r=f(1),i={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:E.default,Format:_.default,Leaf:O.default,Embed:o.default,Scroll:g.default,Block:d.default,Inline:b.default,Text:e.default,Attributor:{Attribute:t.default,Class:l.default,Style:a.default,Store:s.default}};p.default=i},function(c,p,f){var E=this&&this.__extends||function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var h in i)i.hasOwnProperty(h)&&(r[h]=i[h])};return function(r,i){s(r,i);function h(){this.constructor=r}r.prototype=i===null?Object.create(i):(h.prototype=i.prototype,new h)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=function(s){E(r,s);function r(i){var h=this;return i="[Parchment] "+i,h=s.call(this,i)||this,h.message=i,h.name=h.constructor.name,h}return r}(Error);p.ParchmentError=_;var O={},g={},b={},d={};p.DATA_KEY="__blot";var o;(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"})(o=p.Scope||(p.Scope={}));function e(s,r){var i=l(s);if(i==null)throw new _("Unable to create "+s+" blot");var h=i,n=s instanceof Node||s.nodeType===Node.TEXT_NODE?s:h.create(r);return new h(n,r)}p.create=e;function t(s,r){return r===void 0&&(r=!1),s==null?null:s[p.DATA_KEY]!=null?s[p.DATA_KEY].blot:r?t(s.parentNode,r):null}p.find=t;function l(s,r){r===void 0&&(r=o.ANY);var i;if(typeof s=="string")i=d[s]||O[s];else if(s instanceof Text||s.nodeType===Node.TEXT_NODE)i=d.text;else if(typeof s=="number")s&o.LEVEL&o.BLOCK?i=d.block:s&o.LEVEL&o.INLINE&&(i=d.inline);else if(s instanceof HTMLElement){var h=(s.getAttribute("class")||"").split(/\s+/);for(var n in h)if(i=g[h[n]],i)break;i=i||b[s.tagName]}return i==null?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}p.query=l;function a(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];if(s.length>1)return s.map(function(n){return a(n)});var i=s[0];if(typeof i.blotName!="string"&&typeof i.attrName!="string")throw new _("Invalid definition");if(i.blotName==="abstract")throw new _("Cannot register abstract class");if(d[i.blotName||i.attrName]=i,typeof i.keyName=="string")O[i.keyName]=i;else if(i.className!=null&&(g[i.className]=i),i.tagName!=null){Array.isArray(i.tagName)?i.tagName=i.tagName.map(function(n){return n.toUpperCase()}):i.tagName=i.tagName.toUpperCase();var h=Array.isArray(i.tagName)?i.tagName:[i.tagName];h.forEach(function(n){(b[n]==null||i.className==null)&&(b[n]=i)})}return i}p.register=a},function(c,p,f){var E=f(51),_=f(11),O=f(3),g=f(20),b=String.fromCharCode(0),d=function(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]};d.prototype.insert=function(o,e){var t={};return o.length===0?this:(t.insert=o,e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},d.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},d.prototype.retain=function(o,e){if(o<=0)return this;var t={retain:o};return e!=null&&typeof e=="object"&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},d.prototype.push=function(o){var e=this.ops.length,t=this.ops[e-1];if(o=O(!0,{},o),typeof t=="object"){if(typeof o.delete=="number"&&typeof t.delete=="number")return this.ops[e-1]={delete:t.delete+o.delete},this;if(typeof t.delete=="number"&&o.insert!=null&&(e-=1,t=this.ops[e-1],typeof t!="object"))return this.ops.unshift(o),this;if(_(o.attributes,t.attributes)){if(typeof o.insert=="string"&&typeof t.insert=="string")return this.ops[e-1]={insert:t.insert+o.insert},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof t.retain=="number")return this.ops[e-1]={retain:t.retain+o.retain},typeof o.attributes=="object"&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},d.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},d.prototype.filter=function(o){return this.ops.filter(o)},d.prototype.forEach=function(o){this.ops.forEach(o)},d.prototype.map=function(o){return this.ops.map(o)},d.prototype.partition=function(o){var e=[],t=[];return this.forEach(function(l){var a=o(l)?e:t;a.push(l)}),[e,t]},d.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},d.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+g.length(e):e.delete?o-e.delete:o},0)},d.prototype.length=function(){return this.reduce(function(o,e){return o+g.length(e)},0)},d.prototype.slice=function(o,e){o=o||0,typeof e!="number"&&(e=1/0);for(var t=[],l=g.iterator(this.ops),a=0;a<e&&l.hasNext();){var s;a<o?s=l.next(o-a):(s=l.next(e-a),t.push(s)),a+=g.length(s)}return new d(t)},d.prototype.compose=function(o){var e=g.iterator(this.ops),t=g.iterator(o.ops),l=[],a=t.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){for(var s=a.retain;e.peekType()==="insert"&&e.peekLength()<=s;)s-=e.peekLength(),l.push(e.next());a.retain-s>0&&t.next(a.retain-s)}for(var r=new d(l);e.hasNext()||t.hasNext();)if(t.peekType()==="insert")r.push(t.next());else if(e.peekType()==="delete")r.push(e.next());else{var i=Math.min(e.peekLength(),t.peekLength()),h=e.next(i),n=t.next(i);if(typeof n.retain=="number"){var v={};typeof h.retain=="number"?v.retain=i:v.insert=h.insert;var S=g.attributes.compose(h.attributes,n.attributes,typeof h.retain=="number");if(S&&(v.attributes=S),r.push(v),!t.hasNext()&&_(r.ops[r.ops.length-1],v)){var T=new d(e.rest());return r.concat(T).chop()}}else typeof n.delete=="number"&&typeof h.retain=="number"&&r.push(n)}return r.chop()},d.prototype.concat=function(o){var e=new d(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},d.prototype.diff=function(o,e){if(this.ops===o.ops)return new d;var t=[this,o].map(function(i){return i.map(function(h){if(h.insert!=null)return typeof h.insert=="string"?h.insert:b;var n=i===o?"on":"with";throw new Error("diff() called "+n+" non-document")}).join("")}),l=new d,a=E(t[0],t[1],e),s=g.iterator(this.ops),r=g.iterator(o.ops);return a.forEach(function(i){for(var h=i[1].length;h>0;){var n=0;switch(i[0]){case E.INSERT:n=Math.min(r.peekLength(),h),l.push(r.next(n));break;case E.DELETE:n=Math.min(h,s.peekLength()),s.next(n),l.delete(n);break;case E.EQUAL:n=Math.min(s.peekLength(),r.peekLength(),h);var v=s.next(n),S=r.next(n);_(v.insert,S.insert)?l.retain(n,g.attributes.diff(v.attributes,S.attributes)):l.push(S).delete(n);break}h-=n}}),l.chop()},d.prototype.eachLine=function(o,e){e=e||`
|
|
7
|
-
`;for(var t=g.iterator(this.ops),l=new d,a=0;t.hasNext();){if(t.peekType()!=="insert")return;var s=t.peek(),r=g.length(s)-t.peekLength(),i=typeof s.insert=="string"?s.insert.indexOf(e,r)-r:-1;if(i<0)l.push(t.next());else if(i>0)l.push(t.next(i));else{if(o(l,t.next(1).attributes||{},a)===!1)return;a+=1,l=new d}}l.length()>0&&o(l,{},a)},d.prototype.transform=function(o,e){if(e=!!e,typeof o=="number")return this.transformPosition(o,e);for(var t=g.iterator(this.ops),l=g.iterator(o.ops),a=new d;t.hasNext()||l.hasNext();)if(t.peekType()==="insert"&&(e||l.peekType()!=="insert"))a.retain(g.length(t.next()));else if(l.peekType()==="insert")a.push(l.next());else{var s=Math.min(t.peekLength(),l.peekLength()),r=t.next(s),i=l.next(s);if(r.delete)continue;i.delete?a.push(i):a.retain(s,g.attributes.transform(r.attributes,i.attributes,e))}return a.chop()},d.prototype.transformPosition=function(o,e){e=!!e;for(var t=g.iterator(this.ops),l=0;t.hasNext()&&l<=o;){var a=t.peekLength(),s=t.peekType();if(t.next(),s==="delete"){o-=Math.min(a,o-l);continue}else s==="insert"&&(l<o||!e)&&(o+=a);l+=a}return o},c.exports=d},function(c,p){var f=Object.prototype.hasOwnProperty,E=Object.prototype.toString,_=Object.defineProperty,O=Object.getOwnPropertyDescriptor,g=function(t){return typeof Array.isArray=="function"?Array.isArray(t):E.call(t)==="[object Array]"},b=function(t){if(!t||E.call(t)!=="[object Object]")return!1;var l=f.call(t,"constructor"),a=t.constructor&&t.constructor.prototype&&f.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!l&&!a)return!1;var s;for(s in t);return typeof s>"u"||f.call(t,s)},d=function(t,l){_&&l.name==="__proto__"?_(t,l.name,{enumerable:!0,configurable:!0,value:l.newValue,writable:!0}):t[l.name]=l.newValue},o=function(t,l){if(l==="__proto__")if(f.call(t,l)){if(O)return O(t,l).value}else return;return t[l]};c.exports=function e(){var t,l,a,s,r,i,h=arguments[0],n=1,v=arguments.length,S=!1;for(typeof h=="boolean"&&(S=h,h=arguments[1]||{},n=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});n<v;++n)if(t=arguments[n],t!=null)for(l in t)a=o(h,l),s=o(t,l),h!==s&&(S&&s&&(b(s)||(r=g(s)))?(r?(r=!1,i=a&&g(a)?a:[]):i=a&&b(a)?a:{},d(h,{name:l,newValue:e(S,i,s)})):typeof s<"u"&&d(h,{name:l,newValue:s}));return h}},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BlockEmbed=p.bubbleFormats=void 0;var E=function(){function y(w,N){for(var q=0;q<N.length;q++){var D=N[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(w,D.key,D)}}return function(w,N,q){return N&&y(w.prototype,N),q&&y(w,q),w}}(),_=function y(w,N,q){w===null&&(w=Function.prototype);var D=Object.getOwnPropertyDescriptor(w,N);if(D===void 0){var z=Object.getPrototypeOf(w);return z===null?void 0:y(z,N,q)}else{if("value"in D)return D.value;var K=D.get;return K===void 0?void 0:K.call(q)}},O=f(3),g=h(O),b=f(2),d=h(b),o=f(0),e=h(o),t=f(16),l=h(t),a=f(6),s=h(a),r=f(7),i=h(r);function h(y){return y&&y.__esModule?y:{default:y}}function n(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function v(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function S(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var T=1,k=function(y){S(w,y);function w(){return n(this,w),v(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return E(w,[{key:"attach",value:function(){_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(q,D){var z=e.default.query(q,e.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,D)}},{key:"formatAt",value:function(q,D,z,K){this.format(z,K)}},{key:"insertAt",value:function(q,D,z){if(typeof D=="string"&&D.endsWith(`
|
|
8
|
-
`)){var K=e.default.create(L.blotName);this.parent.insertBefore(K,q===0?this:this.next),K.insertAt(0,D.slice(0,-1))}else _(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,q,D,z)}}]),w}(e.default.Embed);k.scope=e.default.Scope.BLOCK_BLOT;var L=function(y){S(w,y);function w(N){n(this,w);var q=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N));return q.cache={},q}return E(w,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(q,D){return D.length()===0?q:q.insert(D.value(),A(D))},new d.default).insert(`
|
|
9
|
-
`,A(this))),this.cache.delta}},{key:"deleteAt",value:function(q,D){_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"deleteAt",this).call(this,q,D),this.cache={}}},{key:"formatAt",value:function(q,D,z,K){D<=0||(e.default.query(z,e.default.Scope.BLOCK)?q+D===this.length()&&this.format(z,K):_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"formatAt",this).call(this,q,Math.min(D,this.length()-q-1),z,K),this.cache={})}},{key:"insertAt",value:function(q,D,z){if(z!=null)return _(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,q,D,z);if(D.length!==0){var K=D.split(`
|
|
10
|
-
`),ee=K.shift();ee.length>0&&(q<this.length()-1||this.children.tail==null?_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertAt",this).call(this,Math.min(q,this.length()-1),ee):this.children.tail.insertAt(this.children.tail.length(),ee),this.cache={});var V=this;K.reduce(function(I,P){return V=V.split(I,!0),V.insertAt(0,P),P.length},q+ee.length)}}},{key:"insertBefore",value:function(q,D){var z=this.children.head;_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,q,D),z instanceof l.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(q,D){_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"moveChildren",this).call(this,q,D),this.cache={}}},{key:"optimize",value:function(q){_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,q),this.cache={}}},{key:"path",value:function(q){return _(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"path",this).call(this,q,!0)}},{key:"removeChild",value:function(q){_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"removeChild",this).call(this,q),this.cache={}}},{key:"split",value:function(q){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(q===0||q>=this.length()-T)){var z=this.clone();return q===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var K=_(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"split",this).call(this,q,D);return this.cache={},K}}}]),w}(e.default.Block);L.blotName="block",L.tagName="P",L.defaultChild="break",L.allowedChildren=[s.default,e.default.Embed,i.default];function A(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return y==null||(typeof y.formats=="function"&&(w=(0,g.default)(w,y.formats())),y.parent==null||y.parent.blotName=="scroll"||y.parent.statics.scope!==y.statics.scope)?w:A(y.parent,w)}p.bubbleFormats=A,p.BlockEmbed=k,p.default=L},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.overload=p.expandConfig=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},_=function(){function V(I,P){var B=[],M=!0,$=!1,F=void 0;try{for(var j=I[Symbol.iterator](),U;!(M=(U=j.next()).done)&&(B.push(U.value),!(P&&B.length===P));M=!0);}catch(G){$=!0,F=G}finally{try{!M&&j.return&&j.return()}finally{if($)throw F}}return B}return function(I,P){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return V(I,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function V(I,P){for(var B=0;B<P.length;B++){var M=P[B];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(I,M.key,M)}}return function(I,P,B){return P&&V(I.prototype,P),B&&V(I,B),I}}();f(50);var g=f(2),b=A(g),d=f(14),o=A(d),e=f(8),t=A(e),l=f(9),a=A(l),s=f(0),r=A(s),i=f(15),h=A(i),n=f(3),v=A(n),S=f(10),T=A(S),k=f(34),L=A(k);function A(V){return V&&V.__esModule?V:{default:V}}function y(V,I,P){return I in V?Object.defineProperty(V,I,{value:P,enumerable:!0,configurable:!0,writable:!0}):V[I]=P,V}function w(V,I){if(!(V instanceof I))throw new TypeError("Cannot call a class as a function")}var N=(0,T.default)("quill"),q=function(){O(V,null,[{key:"debug",value:function(P){P===!0&&(P="log"),T.default.level(P)}},{key:"find",value:function(P){return P.__quill||r.default.find(P)}},{key:"import",value:function(P){return this.imports[P]==null&&N.error("Cannot import "+P+". Are you sure it was registered?"),this.imports[P]}},{key:"register",value:function(P,B){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof P!="string"){var F=P.attrName||P.blotName;typeof F=="string"?this.register("formats/"+F,P,B):Object.keys(P).forEach(function(j){M.register(j,P[j],B)})}else this.imports[P]!=null&&!$&&N.warn("Overwriting "+P+" with",B),this.imports[P]=B,(P.startsWith("blots/")||P.startsWith("formats/"))&&B.blotName!=="abstract"?r.default.register(B):P.startsWith("modules")&&typeof B.register=="function"&&B.register()}}]);function V(I){var P=this,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(w(this,V),this.options=D(I,B),this.container=this.options.container,this.container==null)return N.error("Invalid Quill container",I);this.options.debug&&V.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new h.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(F){F===t.default.events.TEXT_CHANGE&&P.root.classList.toggle("ql-blank",P.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(F,j){var U=P.selection.lastRange,G=U&&U.length===0?U.index:void 0;z.call(P,function(){return P.editor.update(null,j,G)},F)});var $=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents($),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return O(V,[{key:"addContainer",value:function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof P=="string"){var M=P;P=document.createElement("div"),P.classList.add(M)}return this.container.insertBefore(P,B),P}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(P,B,M){var $=this,F=K(P,B,M),j=_(F,4);return P=j[0],B=j[1],M=j[3],z.call(this,function(){return $.editor.deleteText(P,B)},M,P,-1*B)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(P),this.container.classList.toggle("ql-disabled",!P)}},{key:"focus",value:function(){var P=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=P,this.scrollIntoView()}},{key:"format",value:function(P,B){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.default.sources.API;return z.call(this,function(){var F=M.getSelection(!0),j=new b.default;if(F==null)return j;if(r.default.query(P,r.default.Scope.BLOCK))j=M.editor.formatLine(F.index,F.length,y({},P,B));else{if(F.length===0)return M.selection.format(P,B),j;j=M.editor.formatText(F.index,F.length,y({},P,B))}return M.setSelection(F,t.default.sources.SILENT),j},$)}},{key:"formatLine",value:function(P,B,M,$,F){var j=this,U=void 0,G=K(P,B,M,$,F),Z=_(G,4);return P=Z[0],B=Z[1],U=Z[2],F=Z[3],z.call(this,function(){return j.editor.formatLine(P,B,U)},F,P,0)}},{key:"formatText",value:function(P,B,M,$,F){var j=this,U=void 0,G=K(P,B,M,$,F),Z=_(G,4);return P=Z[0],B=Z[1],U=Z[2],F=Z[3],z.call(this,function(){return j.editor.formatText(P,B,U)},F,P,0)}},{key:"getBounds",value:function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof P=="number"?M=this.selection.getBounds(P,B):M=this.selection.getBounds(P.index,P.length);var $=this.container.getBoundingClientRect();return{bottom:M.bottom-$.top,height:M.height,left:M.left-$.left,right:M.right-$.left,top:M.top-$.top,width:M.width}}},{key:"getContents",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,M=K(P,B),$=_(M,2);return P=$[0],B=$[1],this.editor.getContents(P,B)}},{key:"getFormat",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof P=="number"?this.editor.getFormat(P,B):this.editor.getFormat(P.index,P.length)}},{key:"getIndex",value:function(P){return P.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(P){return this.scroll.leaf(P)}},{key:"getLine",value:function(P){return this.scroll.line(P)}},{key:"getLines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof P!="number"?this.scroll.lines(P.index,P.length):this.scroll.lines(P,B)}},{key:"getModule",value:function(P){return this.theme.modules[P]}},{key:"getSelection",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return P&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-P,M=K(P,B),$=_(M,2);return P=$[0],B=$[1],this.editor.getText(P,B)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(P,B,M){var $=this,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:V.sources.API;return z.call(this,function(){return $.editor.insertEmbed(P,B,M)},F,P)}},{key:"insertText",value:function(P,B,M,$,F){var j=this,U=void 0,G=K(P,0,M,$,F),Z=_(G,4);return P=Z[0],U=Z[2],F=Z[3],z.call(this,function(){return j.editor.insertText(P,B,U)},F,P,B.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(P,B,M){this.clipboard.dangerouslyPasteHTML(P,B,M)}},{key:"removeFormat",value:function(P,B,M){var $=this,F=K(P,B,M),j=_(F,4);return P=j[0],B=j[1],M=j[3],z.call(this,function(){return $.editor.removeFormat(P,B)},M,P)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(P){var B=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return z.call(this,function(){P=new b.default(P);var $=B.getLength(),F=B.editor.deleteText(0,$),j=B.editor.applyDelta(P),U=j.ops[j.ops.length-1];U!=null&&typeof U.insert=="string"&&U.insert[U.insert.length-1]===`
|
|
11
|
-
`&&(B.editor.deleteText(B.getLength()-1,1),j.delete(1));var G=F.compose(j);return G},M)}},{key:"setSelection",value:function(P,B,M){if(P==null)this.selection.setRange(null,B||V.sources.API);else{var $=K(P,B,M),F=_($,4);P=F[0],B=F[1],M=F[3],this.selection.setRange(new i.Range(P,B),M),M!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API,M=new b.default().insert(P);return this.setContents(M,B)}},{key:"update",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.default.sources.USER,B=this.scroll.update(P);return this.selection.update(P),B}},{key:"updateContents",value:function(P){var B=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.default.sources.API;return z.call(this,function(){return P=new b.default(P),B.editor.applyDelta(P,M)},M,!0)}}]),V}();q.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},q.events=t.default.events,q.sources=t.default.sources,q.version="1.3.7",q.imports={delta:b.default,parchment:r.default,"core/module":a.default,"core/theme":L.default};function D(V,I){if(I=(0,v.default)(!0,{container:V,modules:{clipboard:!0,keyboard:!0,history:!0}},I),!I.theme||I.theme===q.DEFAULTS.theme)I.theme=L.default;else if(I.theme=q.import("themes/"+I.theme),I.theme==null)throw new Error("Invalid theme "+I.theme+". Did you register it?");var P=(0,v.default)(!0,{},I.theme.DEFAULTS);[P,I].forEach(function($){$.modules=$.modules||{},Object.keys($.modules).forEach(function(F){$.modules[F]===!0&&($.modules[F]={})})});var B=Object.keys(P.modules).concat(Object.keys(I.modules)),M=B.reduce(function($,F){var j=q.import("modules/"+F);return j==null?N.error("Cannot load "+F+" module. Are you sure you registered it?"):$[F]=j.DEFAULTS||{},$},{});return I.modules!=null&&I.modules.toolbar&&I.modules.toolbar.constructor!==Object&&(I.modules.toolbar={container:I.modules.toolbar}),I=(0,v.default)(!0,{},q.DEFAULTS,{modules:M},P,I),["bounds","container","scrollingContainer"].forEach(function($){typeof I[$]=="string"&&(I[$]=document.querySelector(I[$]))}),I.modules=Object.keys(I.modules).reduce(function($,F){return I.modules[F]&&($[F]=I.modules[F]),$},{}),I}function z(V,I,P,B){if(this.options.strict&&!this.isEnabled()&&I===t.default.sources.USER)return new b.default;var M=P==null?null:this.getSelection(),$=this.editor.delta,F=V();if(M!=null&&(P===!0&&(P=M.index),B==null?M=ee(M,F,I):B!==0&&(M=ee(M,P,B,I)),this.setSelection(M,t.default.sources.SILENT)),F.length()>0){var j,U=[t.default.events.TEXT_CHANGE,F,$,I];if((j=this.emitter).emit.apply(j,[t.default.events.EDITOR_CHANGE].concat(U)),I!==t.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,U)}}return F}function K(V,I,P,B,M){var $={};return typeof V.index=="number"&&typeof V.length=="number"?typeof I!="number"?(M=B,B=P,P=I,I=V.length,V=V.index):(I=V.length,V=V.index):typeof I!="number"&&(M=B,B=P,P=I,I=0),(typeof P>"u"?"undefined":E(P))==="object"?($=P,M=B):typeof P=="string"&&(B!=null?$[P]=B:M=P),M=M||t.default.sources.API,[V,I,$,M]}function ee(V,I,P,B){if(V==null)return null;var M=void 0,$=void 0;if(I instanceof b.default){var F=[V.index,V.index+V.length].map(function(Z){return I.transformPosition(Z,B!==t.default.sources.USER)}),j=_(F,2);M=j[0],$=j[1]}else{var U=[V.index,V.index+V.length].map(function(Z){return Z<I||Z===I&&B===t.default.sources.USER?Z:P>=0?Z+P:Math.max(I,Z+P)}),G=_(U,2);M=G[0],$=G[1]}return new i.Range(M,$-M)}p.expandConfig=D,p.overload=K,p.default=q},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(r,i){for(var h=0;h<i.length;h++){var n=i[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,h){return i&&s(r.prototype,i),h&&s(r,h),r}}(),_=function s(r,i,h){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var v=Object.getPrototypeOf(r);return v===null?void 0:s(v,i,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},O=f(7),g=o(O),b=f(0),d=o(b);function o(s){return s&&s.__esModule?s:{default:s}}function e(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function t(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function l(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var a=function(s){l(r,s);function r(){return e(this,r),t(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"formatAt",value:function(h,n,v,S){if(r.compare(this.statics.blotName,v)<0&&d.default.query(v,d.default.Scope.BLOT)){var T=this.isolate(h,n);S&&T.wrap(v,S)}else _(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,h,n,v,S)}},{key:"optimize",value:function(h){if(_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,h),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(h,n){var v=r.order.indexOf(h),S=r.order.indexOf(n);return v>=0||S>=0?v-S:h===n?0:h<n?-1:1}}]),r}(d.default.Inline);a.allowedChildren=[a,d.default.Embed,g.default],a.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],p.default=a},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(0),_=O(E);function O(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 b(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 d(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 o=function(e){d(t,e);function t(){return g(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default.Text);p.default=o},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function i(h,n){for(var v=0;v<n.length;v++){var S=n[v];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(h,S.key,S)}}return function(h,n,v){return n&&i(h.prototype,n),v&&i(h,v),h}}(),_=function i(h,n,v){h===null&&(h=Function.prototype);var S=Object.getOwnPropertyDescriptor(h,n);if(S===void 0){var T=Object.getPrototypeOf(h);return T===null?void 0:i(T,n,v)}else{if("value"in S)return S.value;var k=S.get;return k===void 0?void 0:k.call(v)}},O=f(54),g=o(O),b=f(10),d=o(b);function o(i){return i&&i.__esModule?i:{default:i}}function e(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")}function t(i,h){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:i}function l(i,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);i.prototype=Object.create(h&&h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(i,h):i.__proto__=h)}var a=(0,d.default)("quill:events"),s=["selectionchange","mousedown","mouseup","click"];s.forEach(function(i){document.addEventListener(i,function(){for(var h=arguments.length,n=Array(h),v=0;v<h;v++)n[v]=arguments[v];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(S){if(S.__quill&&S.__quill.emitter){var T;(T=S.__quill.emitter).handleDOM.apply(T,n)}})})});var r=function(i){l(h,i);function h(){e(this,h);var n=t(this,(h.__proto__||Object.getPrototypeOf(h)).call(this));return n.listeners={},n.on("error",a.error),n}return E(h,[{key:"emit",value:function(){a.log.apply(a,arguments),_(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(v){for(var S=arguments.length,T=Array(S>1?S-1:0),k=1;k<S;k++)T[k-1]=arguments[k];(this.listeners[v.type]||[]).forEach(function(L){var A=L.node,y=L.handler;(v.target===A||A.contains(v.target))&&y.apply(void 0,[v].concat(T))})}},{key:"listenDOM",value:function(v,S,T){this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push({node:S,handler:T})}}]),h}(g.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},p.default=r},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});function E(O,g){if(!(O instanceof g))throw new TypeError("Cannot call a class as a function")}var _=function O(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E(this,O),this.quill=g,this.options=b};_.DEFAULTS={},p.default=_},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=["error","warn","log","info"],_="warn";function O(b){if(E.indexOf(b)<=E.indexOf(_)){for(var d,o=arguments.length,e=Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];(d=console)[b].apply(d,e)}}function g(b){return E.reduce(function(d,o){return d[o]=O.bind(console,o,b),d},{})}O.level=g.level=function(b){_=b},p.default=g},function(c,p,f){var E=Array.prototype.slice,_=f(52),O=f(53),g=c.exports=function(e,t,l){return l||(l={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||typeof e!="object"&&typeof t!="object"?l.strict?e===t:e==t:o(e,t,l)};function b(e){return e==null}function d(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 o(e,t,l){var a,s;if(b(e)||b(t)||e.prototype!==t.prototype)return!1;if(O(e))return O(t)?(e=E.call(e),t=E.call(t),g(e,t,l)):!1;if(d(e)){if(!d(t)||e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}try{var r=_(e),i=_(t)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),a=r.length-1;a>=0;a--)if(r[a]!=i[a])return!1;for(a=r.length-1;a>=0;a--)if(s=r[a],!g(e[s],t[s],l))return!1;return typeof e==typeof t}},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(1),_=function(){function O(g,b,d){d===void 0&&(d={}),this.attrName=g,this.keyName=b;var o=E.Scope.TYPE&E.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&E.Scope.LEVEL|o:this.scope=E.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return O.keys=function(g){return[].map.call(g.attributes,function(b){return b.name})},O.prototype.add=function(g,b){return this.canAdd(g,b)?(g.setAttribute(this.keyName,b),!0):!1},O.prototype.canAdd=function(g,b){var d=E.query(g,E.Scope.BLOT&(this.scope|E.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof b=="string"?this.whitelist.indexOf(b.replace(/["']/g,""))>-1:this.whitelist.indexOf(b)>-1},O.prototype.remove=function(g){g.removeAttribute(this.keyName)},O.prototype.value=function(g){var b=g.getAttribute(this.keyName);return this.canAdd(g,b)&&b?b:""},O}();p.default=_},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Code=void 0;var E=function(){function k(L,A){var y=[],w=!0,N=!1,q=void 0;try{for(var D=L[Symbol.iterator](),z;!(w=(z=D.next()).done)&&(y.push(z.value),!(A&&y.length===A));w=!0);}catch(K){N=!0,q=K}finally{try{!w&&D.return&&D.return()}finally{if(N)throw q}}return y}return function(L,A){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return k(L,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function k(L,A){for(var y=0;y<A.length;y++){var w=A[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(L,w.key,w)}}return function(L,A,y){return A&&k(L.prototype,A),y&&k(L,y),L}}(),O=function k(L,A,y){L===null&&(L=Function.prototype);var w=Object.getOwnPropertyDescriptor(L,A);if(w===void 0){var N=Object.getPrototypeOf(L);return N===null?void 0:k(N,A,y)}else{if("value"in w)return w.value;var q=w.get;return q===void 0?void 0:q.call(y)}},g=f(2),b=i(g),d=f(0),o=i(d),e=f(4),t=i(e),l=f(6),a=i(l),s=f(7),r=i(s);function i(k){return k&&k.__esModule?k:{default:k}}function h(k,L){if(!(k instanceof L))throw new TypeError("Cannot call a class as a function")}function n(k,L){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:k}function v(k,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);k.prototype=Object.create(L&&L.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(k,L):k.__proto__=L)}var S=function(k){v(L,k);function L(){return h(this,L),n(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return L}(a.default);S.blotName="code",S.tagName="CODE";var T=function(k){v(L,k);function L(){return h(this,L),n(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return _(L,[{key:"delta",value:function(){var y=this,w=this.domNode.textContent;return w.endsWith(`
|
|
12
|
-
`)&&(w=w.slice(0,-1)),w.split(`
|
|
13
|
-
`).reduce(function(N,q){return N.insert(q).insert(`
|
|
14
|
-
`,y.formats())},new b.default)}},{key:"format",value:function(y,w){if(!(y===this.statics.blotName&&w)){var N=this.descendant(r.default,this.length()-1),q=E(N,1),D=q[0];D?.deleteAt(D.length()-1,1),O(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"format",this).call(this,y,w)}}},{key:"formatAt",value:function(y,w,N,q){if(w!==0&&!(o.default.query(N,o.default.Scope.BLOCK)==null||N===this.statics.blotName&&q===this.statics.formats(this.domNode))){var D=this.newlineIndex(y);if(!(D<0||D>=y+w)){var z=this.newlineIndex(y,!0)+1,K=D-z+1,ee=this.isolate(z,K),V=ee.next;ee.format(N,q),V instanceof L&&V.formatAt(0,y-z+w-K,N,q)}}}},{key:"insertAt",value:function(y,w,N){if(N==null){var q=this.descendant(r.default,y),D=E(q,2),z=D[0],K=D[1];z.insertAt(K,w)}}},{key:"length",value:function(){var y=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
15
|
-
`)?y:y+1}},{key:"newlineIndex",value:function(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(w)return this.domNode.textContent.slice(0,y).lastIndexOf(`
|
|
16
|
-
`);var N=this.domNode.textContent.slice(y).indexOf(`
|
|
17
|
-
`);return N>-1?y+N:-1}},{key:"optimize",value:function(y){this.domNode.textContent.endsWith(`
|
|
18
|
-
`)||this.appendChild(o.default.create("text",`
|
|
19
|
-
`)),O(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,y);var w=this.next;w!=null&&w.prev===this&&w.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===w.statics.formats(w.domNode)&&(w.optimize(y),w.moveChildren(this),w.remove())}},{key:"replace",value:function(y){O(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"replace",this).call(this,y),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(w){var N=o.default.find(w);N==null?w.parentNode.removeChild(w):N instanceof o.default.Embed?N.remove():N.unwrap()})}}],[{key:"create",value:function(y){var w=O(L.__proto__||Object.getPrototypeOf(L),"create",this).call(this,y);return w.setAttribute("spellcheck",!1),w}},{key:"formats",value:function(){return!0}}]),L}(t.default);T.blotName="code-block",T.tagName="PRE",T.TAB=" ",p.Code=S,p.default=T},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},_=function(){function V(I,P){var B=[],M=!0,$=!1,F=void 0;try{for(var j=I[Symbol.iterator](),U;!(M=(U=j.next()).done)&&(B.push(U.value),!(P&&B.length===P));M=!0);}catch(G){$=!0,F=G}finally{try{!M&&j.return&&j.return()}finally{if($)throw F}}return B}return function(I,P){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return V(I,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function V(I,P){for(var B=0;B<P.length;B++){var M=P[B];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(I,M.key,M)}}return function(I,P,B){return P&&V(I.prototype,P),B&&V(I,B),I}}(),g=f(2),b=w(g),d=f(20),o=w(d),e=f(0),t=w(e),l=f(13),a=w(l),s=f(24),r=w(s),i=f(4),h=w(i),n=f(16),v=w(n),S=f(21),T=w(S),k=f(11),L=w(k),A=f(3),y=w(A);function w(V){return V&&V.__esModule?V:{default:V}}function N(V,I,P){return I in V?Object.defineProperty(V,I,{value:P,enumerable:!0,configurable:!0,writable:!0}):V[I]=P,V}function q(V,I){if(!(V instanceof I))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,z=function(){function V(I){q(this,V),this.scroll=I,this.delta=this.getDelta()}return O(V,[{key:"applyDelta",value:function(P){var B=this,M=!1;this.scroll.update();var $=this.scroll.length();return this.scroll.batchStart(),P=ee(P),P.reduce(function(F,j){var U=j.retain||j.delete||j.insert.length||1,G=j.attributes||{};if(j.insert!=null){if(typeof j.insert=="string"){var Z=j.insert;Z.endsWith(`
|
|
20
|
-
`)&&M&&(M=!1,Z=Z.slice(0,-1)),F>=$&&!Z.endsWith(`
|
|
21
|
-
`)&&(M=!0),B.scroll.insertAt(F,Z);var Q=B.scroll.line(F),re=_(Q,2),oe=re[0],ae=re[1],ce=(0,y.default)({},(0,i.bubbleFormats)(oe));if(oe instanceof h.default){var de=oe.descendant(t.default.Leaf,ae),be=_(de,1),me=be[0];ce=(0,y.default)(ce,(0,i.bubbleFormats)(me))}G=o.default.attributes.diff(ce,G)||{}}else if(E(j.insert)==="object"){var Y=Object.keys(j.insert)[0];if(Y==null)return F;B.scroll.insertAt(F,Y,j.insert[Y])}$+=U}return Object.keys(G).forEach(function(X){B.scroll.formatAt(F,U,X,G[X])}),F+U},0),P.reduce(function(F,j){return typeof j.delete=="number"?(B.scroll.deleteAt(F,j.delete),F):F+(j.retain||j.insert.length||1)},0),this.scroll.batchEnd(),this.update(P)}},{key:"deleteText",value:function(P,B){return this.scroll.deleteAt(P,B),this.update(new b.default().retain(P).delete(B))}},{key:"formatLine",value:function(P,B){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys($).forEach(function(F){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[F])){var j=M.scroll.lines(P,Math.max(B,1)),U=B;j.forEach(function(G){var Z=G.length();if(!(G instanceof a.default))G.format(F,$[F]);else{var Q=P-G.offset(M.scroll),re=G.newlineIndex(Q+U)-Q+1;G.formatAt(Q,re,F,$[F])}U-=Z})}}),this.scroll.optimize(),this.update(new b.default().retain(P).retain(B,(0,T.default)($)))}},{key:"formatText",value:function(P,B){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys($).forEach(function(F){M.scroll.formatAt(P,B,F,$[F])}),this.update(new b.default().retain(P).retain(B,(0,T.default)($)))}},{key:"getContents",value:function(P,B){return this.delta.slice(P,P+B)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(P,B){return P.concat(B.delta())},new b.default)}},{key:"getFormat",value:function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],$=[];B===0?this.scroll.path(P).forEach(function(j){var U=_(j,1),G=U[0];G instanceof h.default?M.push(G):G instanceof t.default.Leaf&&$.push(G)}):(M=this.scroll.lines(P,B),$=this.scroll.descendants(t.default.Leaf,P,B));var F=[M,$].map(function(j){if(j.length===0)return{};for(var U=(0,i.bubbleFormats)(j.shift());Object.keys(U).length>0;){var G=j.shift();if(G==null)return U;U=K((0,i.bubbleFormats)(G),U)}return U});return y.default.apply(y.default,F)}},{key:"getText",value:function(P,B){return this.getContents(P,B).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(P,B,M){return this.scroll.insertAt(P,B,M),this.update(new b.default().retain(P).insert(N({},B,M)))}},{key:"insertText",value:function(P,B){var M=this,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return B=B.replace(/\r\n/g,`
|
|
22
|
-
`).replace(/\r/g,`
|
|
23
|
-
`),this.scroll.insertAt(P,B),Object.keys($).forEach(function(F){M.scroll.formatAt(P,B.length,F,$[F])}),this.update(new b.default().retain(P).insert(B,(0,T.default)($)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var P=this.scroll.children.head;return P.statics.blotName!==h.default.blotName||P.children.length>1?!1:P.children.head instanceof v.default}},{key:"removeFormat",value:function(P,B){var M=this.getText(P,B),$=this.scroll.line(P+B),F=_($,2),j=F[0],U=F[1],G=0,Z=new b.default;j!=null&&(j instanceof a.default?G=j.newlineIndex(U)-U+1:G=j.length()-U,Z=j.delta().slice(U,U+G-1).insert(`
|
|
24
|
-
`));var Q=this.getContents(P,B+G),re=Q.diff(new b.default().insert(M).concat(Z)),oe=new b.default().retain(P).concat(re);return this.applyDelta(oe)}},{key:"update",value:function(P){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,$=this.delta;if(B.length===1&&B[0].type==="characterData"&&B[0].target.data.match(D)&&t.default.find(B[0].target)){var F=t.default.find(B[0].target),j=(0,i.bubbleFormats)(F),U=F.offset(this.scroll),G=B[0].oldValue.replace(r.default.CONTENTS,""),Z=new b.default().insert(G),Q=new b.default().insert(F.value()),re=new b.default().retain(U).concat(Z.diff(Q,M));P=re.reduce(function(oe,ae){return ae.insert?oe.insert(ae.insert,j):oe.push(ae)},new b.default),this.delta=$.compose(P)}else this.delta=this.getDelta(),(!P||!(0,L.default)($.compose(P),this.delta))&&(P=$.diff(this.delta,M));return P}}]),V}();function K(V,I){return Object.keys(I).reduce(function(P,B){return V[B]==null||(I[B]===V[B]?P[B]=I[B]:Array.isArray(I[B])?I[B].indexOf(V[B])<0&&(P[B]=I[B].concat([V[B]])):P[B]=[I[B],V[B]]),P},{})}function ee(V){return V.reduce(function(I,P){if(P.insert===1){var B=(0,T.default)(P.attributes);return delete B.image,I.insert({image:P.attributes.image},B)}if(P.attributes!=null&&(P.attributes.list===!0||P.attributes.bullet===!0)&&(P=(0,T.default)(P),P.attributes.list?P.attributes.list="ordered":(P.attributes.list="bullet",delete P.attributes.bullet)),typeof P.insert=="string"){var M=P.insert.replace(/\r\n/g,`
|
|
25
|
-
`).replace(/\r/g,`
|
|
26
|
-
`);return I.insert(M,P.attributes)}return I.push(P)},new b.default)}p.default=z},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.Range=void 0;var E=function(){function k(L,A){var y=[],w=!0,N=!1,q=void 0;try{for(var D=L[Symbol.iterator](),z;!(w=(z=D.next()).done)&&(y.push(z.value),!(A&&y.length===A));w=!0);}catch(K){N=!0,q=K}finally{try{!w&&D.return&&D.return()}finally{if(N)throw q}}return y}return function(L,A){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return k(L,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function k(L,A){for(var y=0;y<A.length;y++){var w=A[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(L,w.key,w)}}return function(L,A,y){return A&&k(L.prototype,A),y&&k(L,y),L}}(),O=f(0),g=r(O),b=f(21),d=r(b),o=f(11),e=r(o),t=f(8),l=r(t),a=f(10),s=r(a);function r(k){return k&&k.__esModule?k:{default:k}}function i(k){if(Array.isArray(k)){for(var L=0,A=Array(k.length);L<k.length;L++)A[L]=k[L];return A}else return Array.from(k)}function h(k,L){if(!(k instanceof L))throw new TypeError("Cannot call a class as a function")}var n=(0,s.default)("quill:selection"),v=function k(L){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;h(this,k),this.index=L,this.length=A},S=function(){function k(L,A){var y=this;h(this,k),this.emitter=A,this.scroll=L,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new v(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){y.mouseDown||setTimeout(y.update.bind(y,l.default.sources.USER),1)}),this.emitter.on(l.default.events.EDITOR_CHANGE,function(w,N){w===l.default.events.TEXT_CHANGE&&N.length()>0&&y.update(l.default.sources.SILENT)}),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,function(){if(y.hasFocus()){var w=y.getNativeRange();w!=null&&w.start.node!==y.cursor.textNode&&y.emitter.once(l.default.events.SCROLL_UPDATE,function(){try{y.setNativeRange(w.start.node,w.start.offset,w.end.node,w.end.offset)}catch{}})}}),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,function(w,N){if(N.range){var q=N.range,D=q.startNode,z=q.startOffset,K=q.endNode,ee=q.endOffset;y.setNativeRange(D,z,K,ee)}}),this.update(l.default.sources.SILENT)}return _(k,[{key:"handleComposition",value:function(){var A=this;this.root.addEventListener("compositionstart",function(){A.composing=!0}),this.root.addEventListener("compositionend",function(){if(A.composing=!1,A.cursor.parent){var y=A.cursor.restore();if(!y)return;setTimeout(function(){A.setNativeRange(y.startNode,y.startOffset,y.endNode,y.endOffset)},1)}})}},{key:"handleDragging",value:function(){var A=this;this.emitter.listenDOM("mousedown",document.body,function(){A.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){A.mouseDown=!1,A.update(l.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(A,y){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[A])){this.scroll.update();var w=this.getNativeRange();if(!(w==null||!w.native.collapsed||g.default.query(A,g.default.Scope.BLOCK))){if(w.start.node!==this.cursor.textNode){var N=g.default.find(w.start.node,!1);if(N==null)return;if(N instanceof g.default.Leaf){var q=N.split(w.start.offset);N.parent.insertBefore(this.cursor,q)}else N.insertBefore(this.cursor,w.start.node);this.cursor.attach()}this.cursor.format(A,y),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(A){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w=this.scroll.length();A=Math.min(A,w-1),y=Math.min(A+y,w-1)-A;var N=void 0,q=this.scroll.leaf(A),D=E(q,2),z=D[0],K=D[1];if(z==null)return null;var ee=z.position(K,!0),V=E(ee,2);N=V[0],K=V[1];var I=document.createRange();if(y>0){I.setStart(N,K);var P=this.scroll.leaf(A+y),B=E(P,2);if(z=B[0],K=B[1],z==null)return null;var M=z.position(K,!0),$=E(M,2);return N=$[0],K=$[1],I.setEnd(N,K),I.getBoundingClientRect()}else{var F="left",j=void 0;return N instanceof Text?(K<N.data.length?(I.setStart(N,K),I.setEnd(N,K+1)):(I.setStart(N,K-1),I.setEnd(N,K),F="right"),j=I.getBoundingClientRect()):(j=z.domNode.getBoundingClientRect(),K>0&&(F="right")),{bottom:j.top+j.height,height:j.height,left:j[F],right:j[F],top:j.top,width:0}}}},{key:"getNativeRange",value:function(){var A=document.getSelection();if(A==null||A.rangeCount<=0)return null;var y=A.getRangeAt(0);if(y==null)return null;var w=this.normalizeNative(y);return n.info("getNativeRange",w),w}},{key:"getRange",value:function(){var A=this.getNativeRange();if(A==null)return[null,null];var y=this.normalizedToRange(A);return[y,A]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(A){var y=this,w=[[A.start.node,A.start.offset]];A.native.collapsed||w.push([A.end.node,A.end.offset]);var N=w.map(function(z){var K=E(z,2),ee=K[0],V=K[1],I=g.default.find(ee,!0),P=I.offset(y.scroll);return V===0?P:I instanceof g.default.Container?P+I.length():P+I.index(ee,V)}),q=Math.min(Math.max.apply(Math,i(N)),this.scroll.length()-1),D=Math.min.apply(Math,[q].concat(i(N)));return new v(D,q-D)}},{key:"normalizeNative",value:function(A){if(!T(this.root,A.startContainer)||!A.collapsed&&!T(this.root,A.endContainer))return null;var y={start:{node:A.startContainer,offset:A.startOffset},end:{node:A.endContainer,offset:A.endOffset},native:A};return[y.start,y.end].forEach(function(w){for(var N=w.node,q=w.offset;!(N instanceof Text)&&N.childNodes.length>0;)if(N.childNodes.length>q)N=N.childNodes[q],q=0;else if(N.childNodes.length===q)N=N.lastChild,q=N instanceof Text?N.data.length:N.childNodes.length+1;else break;w.node=N,w.offset=q}),y}},{key:"rangeToNative",value:function(A){var y=this,w=A.collapsed?[A.index]:[A.index,A.index+A.length],N=[],q=this.scroll.length();return w.forEach(function(D,z){D=Math.min(q-1,D);var K=void 0,ee=y.scroll.leaf(D),V=E(ee,2),I=V[0],P=V[1],B=I.position(P,z!==0),M=E(B,2);K=M[0],P=M[1],N.push(K,P)}),N.length<2&&(N=N.concat(N)),N}},{key:"scrollIntoView",value:function(A){var y=this.lastRange;if(y!=null){var w=this.getBounds(y.index,y.length);if(w!=null){var N=this.scroll.length()-1,q=this.scroll.line(Math.min(y.index,N)),D=E(q,1),z=D[0],K=z;if(y.length>0){var ee=this.scroll.line(Math.min(y.index+y.length,N)),V=E(ee,1);K=V[0]}if(!(z==null||K==null)){var I=A.getBoundingClientRect();w.top<I.top?A.scrollTop-=I.top-w.top:w.bottom>I.bottom&&(A.scrollTop+=w.bottom-I.bottom)}}}}},{key:"setNativeRange",value:function(A,y){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:A,N=arguments.length>3&&arguments[3]!==void 0?arguments[3]:y,q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n.info("setNativeRange",A,y,w,N),!(A!=null&&(this.root.parentNode==null||A.parentNode==null||w.parentNode==null))){var D=document.getSelection();if(D!=null)if(A!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||q||A!==z.startContainer||y!==z.startOffset||w!==z.endContainer||N!==z.endOffset){A.tagName=="BR"&&(y=[].indexOf.call(A.parentNode.childNodes,A),A=A.parentNode),w.tagName=="BR"&&(N=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode);var K=document.createRange();K.setStart(A,y),K.setEnd(w,N),D.removeAllRanges(),D.addRange(K)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(A){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;if(typeof y=="string"&&(w=y,y=!1),n.info("setRange",A),A!=null){var N=this.rangeToNative(A);this.setNativeRange.apply(this,i(N).concat([y]))}else this.setNativeRange(null);this.update(w)}},{key:"update",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,y=this.lastRange,w=this.getRange(),N=E(w,2),q=N[0],D=N[1];if(this.lastRange=q,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,e.default)(y,this.lastRange)){var z;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var K=[l.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(y),A];if((z=this.emitter).emit.apply(z,[l.default.events.EDITOR_CHANGE].concat(K)),A!==l.default.sources.SILENT){var ee;(ee=this.emitter).emit.apply(ee,K)}}}}]),k}();function T(k,L){try{L.parentNode}catch{return!1}return L instanceof Text&&(L=L.parentNode),k.contains(L)}p.Range=v,p.default=S},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function l(a,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,s,r){return s&&l(a.prototype,s),r&&l(a,r),a}}(),_=function l(a,s,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,s);if(i===void 0){var h=Object.getPrototypeOf(a);return h===null?void 0:l(h,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=f(0),g=b(O);function b(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return E(a,[{key:"insertInto",value:function(r,i){r.children.length===0?_(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),a}(g.default.Embed);t.blotName="break",t.tagName="BR",p.default=t},function(c,p,f){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){o(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(44),O=f(30),g=f(1),b=function(o){E(e,o);function e(t){var l=o.call(this,t)||this;return l.build(),l}return e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new _.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(l){try{var a=d(l);t.insertBefore(a,t.children.head||void 0)}catch(s){if(s instanceof g.ParchmentError)return;throw s}})},e.prototype.deleteAt=function(t,l){if(t===0&&l===this.length())return this.remove();this.children.forEachAt(t,l,function(a,s,r){a.deleteAt(s,r)})},e.prototype.descendant=function(t,l){var a=this.children.find(l),s=a[0],r=a[1];return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,r]:s instanceof e?s.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,l,a){l===void 0&&(l=0),a===void 0&&(a=Number.MAX_VALUE);var s=[],r=a;return this.children.forEachAt(l,a,function(i,h,n){(t.blotName==null&&t(i)||t.blotName!=null&&i instanceof t)&&s.push(i),i instanceof e&&(s=s.concat(i.descendants(t,h,r))),r-=n}),s},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(t,l,a,s){this.children.forEachAt(t,l,function(r,i,h){r.formatAt(i,h,a,s)})},e.prototype.insertAt=function(t,l,a){var s=this.children.find(t),r=s[0],i=s[1];if(r)r.insertAt(i,l,a);else{var h=a==null?g.create("text",l):g.create(l,a);this.appendChild(h)}},e.prototype.insertBefore=function(t,l){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(a){return t instanceof a}))throw new g.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,l)},e.prototype.length=function(){return this.children.reduce(function(t,l){return t+l.length()},0)},e.prototype.moveChildren=function(t,l){this.children.forEach(function(a){t.insertBefore(a,l)})},e.prototype.optimize=function(t){if(o.prototype.optimize.call(this,t),this.children.length===0)if(this.statics.defaultChild!=null){var l=g.create(this.statics.defaultChild);this.appendChild(l),l.optimize(t)}else this.remove()},e.prototype.path=function(t,l){l===void 0&&(l=!1);var a=this.children.find(t,l),s=a[0],r=a[1],i=[[this,t]];return s instanceof e?i.concat(s.path(r,l)):(s!=null&&i.push([s,r]),i)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),o.prototype.replace.call(this,t)},e.prototype.split=function(t,l){if(l===void 0&&(l=!1),!l){if(t===0)return this;if(t===this.length())return this.next}var a=this.clone();return this.parent.insertBefore(a,this.next),this.children.forEachAt(t,this.length(),function(s,r,i){s=s.split(r,l),a.appendChild(s)}),a},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,l){var a=this,s=[],r=[];t.forEach(function(i){i.target===a.domNode&&i.type==="childList"&&(s.push.apply(s,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var h=g.find(i);h!=null&&(h.domNode.parentNode==null||h.domNode.parentNode===a.domNode)&&h.detach()}}),s.filter(function(i){return i.parentNode==a.domNode}).sort(function(i,h){return i===h?0:i.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var h=null;i.nextSibling!=null&&(h=g.find(i.nextSibling));var n=d(i);(n.next!=h||n.next==null)&&(n.parent!=null&&n.parent.removeChild(a),a.insertBefore(n,h||void 0))})},e}(O.default);function d(o){var e=g.find(o);if(e==null)try{e=g.create(o)}catch{e=g.create(g.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(l){e.domNode.appendChild(l)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}p.default=b},function(c,p,f){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){o(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(12),O=f(31),g=f(17),b=f(1),d=function(o){E(e,o);function e(t){var l=o.call(this,t)||this;return l.attributes=new O.default(l.domNode),l}return e.formats=function(t){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()},e.prototype.format=function(t,l){var a=b.query(t);a instanceof _.default?this.attributes.attribute(a,l):l&&a!=null&&(t!==this.statics.blotName||this.formats()[t]!==l)&&this.replaceWith(t,l)},e.prototype.formats=function(){var t=this.attributes.values(),l=this.statics.formats(this.domNode);return l!=null&&(t[this.statics.blotName]=l),t},e.prototype.replaceWith=function(t,l){var a=o.prototype.replaceWith.call(this,t,l);return this.attributes.copy(a),a},e.prototype.update=function(t,l){var a=this;o.prototype.update.call(this,t,l),t.some(function(s){return s.target===a.domNode&&s.type==="attributes"})&&this.attributes.build()},e.prototype.wrap=function(t,l){var a=o.prototype.wrap.call(this,t,l);return a instanceof e&&a.statics.scope===this.statics.scope&&this.attributes.move(a),a},e}(g.default);p.default=d},function(c,p,f){var E=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){b(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(30),O=f(1),g=function(b){E(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.value=function(o){return!0},d.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},d.prototype.position=function(o,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(t+=1),[this.parent.domNode,t]},d.prototype.value=function(){var o;return o={},o[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},d.scope=O.Scope.INLINE_BLOT,d}(_.default);p.default=g},function(c,p,f){var E=f(11),_=f(3),O={attributes:{compose:function(b,d,o){typeof b!="object"&&(b={}),typeof d!="object"&&(d={});var e=_(!0,{},d);o||(e=Object.keys(e).reduce(function(l,a){return e[a]!=null&&(l[a]=e[a]),l},{}));for(var t in b)b[t]!==void 0&&d[t]===void 0&&(e[t]=b[t]);return Object.keys(e).length>0?e:void 0},diff:function(b,d){typeof b!="object"&&(b={}),typeof d!="object"&&(d={});var o=Object.keys(b).concat(Object.keys(d)).reduce(function(e,t){return E(b[t],d[t])||(e[t]=d[t]===void 0?null:d[t]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(b,d,o){if(typeof b!="object")return d;if(typeof d=="object"){if(!o)return d;var e=Object.keys(d).reduce(function(t,l){return b[l]===void 0&&(t[l]=d[l]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(b){return new g(b)},length:function(b){return typeof b.delete=="number"?b.delete:typeof b.retain=="number"?b.retain:typeof b.insert=="string"?b.insert.length:1}};function g(b){this.ops=b,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(b){b||(b=1/0);var d=this.ops[this.index];if(d){var o=this.offset,e=O.length(d);if(b>=e-o?(b=e-o,this.index+=1,this.offset=0):this.offset+=b,typeof d.delete=="number")return{delete:b};var t={};return d.attributes&&(t.attributes=d.attributes),typeof d.retain=="number"?t.retain=b:typeof d.insert=="string"?t.insert=d.insert.substr(o,b):t.insert=d.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]?O.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 b=this.offset,d=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=b,this.index=d,[o].concat(e)}else return[]},c.exports=O},function(c,p){var f=function(){function E(a,s){return s!=null&&a instanceof s}var _;try{_=Map}catch{_=function(){}}var O;try{O=Set}catch{O=function(){}}var g;try{g=Promise}catch{g=function(){}}function b(a,s,r,i,h){typeof s=="object"&&(r=s.depth,i=s.prototype,h=s.includeNonEnumerable,s=s.circular);var n=[],v=[],S=typeof Buffer<"u";typeof s>"u"&&(s=!0),typeof r>"u"&&(r=1/0);function T(k,L){if(k===null)return null;if(L===0)return k;var A,y;if(typeof k!="object")return k;if(E(k,_))A=new _;else if(E(k,O))A=new O;else if(E(k,g))A=new g(function(I,P){k.then(function(B){I(T(B,L-1))},function(B){P(T(B,L-1))})});else if(b.__isArray(k))A=[];else if(b.__isRegExp(k))A=new RegExp(k.source,l(k)),k.lastIndex&&(A.lastIndex=k.lastIndex);else if(b.__isDate(k))A=new Date(k.getTime());else{if(S&&Buffer.isBuffer(k))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(k.length):A=new Buffer(k.length),k.copy(A),A;E(k,Error)?A=Object.create(k):typeof i>"u"?(y=Object.getPrototypeOf(k),A=Object.create(y)):(A=Object.create(i),y=i)}if(s){var w=n.indexOf(k);if(w!=-1)return v[w];n.push(k),v.push(A)}E(k,_)&&k.forEach(function(I,P){var B=T(P,L-1),M=T(I,L-1);A.set(B,M)}),E(k,O)&&k.forEach(function(I){var P=T(I,L-1);A.add(P)});for(var N in k){var q;y&&(q=Object.getOwnPropertyDescriptor(y,N)),!(q&&q.set==null)&&(A[N]=T(k[N],L-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(k),N=0;N<D.length;N++){var z=D[N],K=Object.getOwnPropertyDescriptor(k,z);K&&!K.enumerable&&!h||(A[z]=T(k[z],L-1),K.enumerable||Object.defineProperty(A,z,{enumerable:!1}))}if(h)for(var ee=Object.getOwnPropertyNames(k),N=0;N<ee.length;N++){var V=ee[N],K=Object.getOwnPropertyDescriptor(k,V);K&&K.enumerable||(A[V]=T(k[V],L-1),Object.defineProperty(A,V,{enumerable:!1}))}return A}return T(a,r)}b.clonePrototype=function(s){if(s===null)return null;var r=function(){};return r.prototype=s,new r};function d(a){return Object.prototype.toString.call(a)}b.__objToStr=d;function o(a){return typeof a=="object"&&d(a)==="[object Date]"}b.__isDate=o;function e(a){return typeof a=="object"&&d(a)==="[object Array]"}b.__isArray=e;function t(a){return typeof a=="object"&&d(a)==="[object RegExp]"}b.__isRegExp=t;function l(a){var s="";return a.global&&(s+="g"),a.ignoreCase&&(s+="i"),a.multiline&&(s+="m"),s}return b.__getRegExpFlags=l,b}();typeof c=="object"&&c.exports&&(c.exports=f)},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(y,w){var N=[],q=!0,D=!1,z=void 0;try{for(var K=y[Symbol.iterator](),ee;!(q=(ee=K.next()).done)&&(N.push(ee.value),!(w&&N.length===w));q=!0);}catch(V){D=!0,z=V}finally{try{!q&&K.return&&K.return()}finally{if(D)throw z}}return N}return function(y,w){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return A(y,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function A(y,w){for(var N=0;N<w.length;N++){var q=w[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(y,q.key,q)}}return function(y,w,N){return w&&A(y.prototype,w),N&&A(y,N),y}}(),O=function A(y,w,N){y===null&&(y=Function.prototype);var q=Object.getOwnPropertyDescriptor(y,w);if(q===void 0){var D=Object.getPrototypeOf(y);return D===null?void 0:A(D,w,N)}else{if("value"in q)return q.value;var z=q.get;return z===void 0?void 0:z.call(N)}},g=f(0),b=n(g),d=f(8),o=n(d),e=f(4),t=n(e),l=f(16),a=n(l),s=f(13),r=n(s),i=f(25),h=n(i);function n(A){return A&&A.__esModule?A:{default:A}}function v(A,y){if(!(A instanceof y))throw new TypeError("Cannot call a class as a function")}function S(A,y){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:A}function T(A,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);A.prototype=Object.create(y&&y.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(A,y):A.__proto__=y)}function k(A){return A instanceof t.default||A instanceof e.BlockEmbed}var L=function(A){T(y,A);function y(w,N){v(this,y);var q=S(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w));return q.emitter=N.emitter,Array.isArray(N.whitelist)&&(q.whitelist=N.whitelist.reduce(function(D,z){return D[z]=!0,D},{})),q.domNode.addEventListener("DOMNodeInserted",function(){}),q.optimize(),q.enable(),q}return _(y,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(N,q){var D=this.line(N),z=E(D,2),K=z[0],ee=z[1],V=this.line(N+q),I=E(V,1),P=I[0];if(O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"deleteAt",this).call(this,N,q),P!=null&&K!==P&&ee>0){if(K instanceof e.BlockEmbed||P instanceof e.BlockEmbed){this.optimize();return}if(K instanceof r.default){var B=K.newlineIndex(K.length(),!0);if(B>-1&&(K=K.split(B+1),K===P)){this.optimize();return}}else if(P instanceof r.default){var M=P.newlineIndex(0);M>-1&&P.split(M+1)}var $=P.children.head instanceof a.default?null:P.children.head;K.moveChildren(P,$),K.remove()}this.optimize()}},{key:"enable",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",N)}},{key:"formatAt",value:function(N,q,D,z){this.whitelist!=null&&!this.whitelist[D]||(O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,N,q,D,z),this.optimize())}},{key:"insertAt",value:function(N,q,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[q])){if(N>=this.length())if(D==null||b.default.query(q,b.default.Scope.BLOCK)==null){var z=b.default.create(this.statics.defaultChild);this.appendChild(z),D==null&&q.endsWith(`
|
|
27
|
-
`)&&(q=q.slice(0,-1)),z.insertAt(0,q,D)}else{var K=b.default.create(q,D);this.appendChild(K)}else O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,N,q,D);this.optimize()}}},{key:"insertBefore",value:function(N,q){if(N.statics.scope===b.default.Scope.INLINE_BLOT){var D=b.default.create(this.statics.defaultChild);D.appendChild(N),N=D}O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,N,q)}},{key:"leaf",value:function(N){return this.path(N).pop()||[null,-1]}},{key:"line",value:function(N){return N===this.length()?this.line(N-1):this.descendant(k,N)}},{key:"lines",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function z(K,ee,V){var I=[],P=V;return K.children.forEachAt(ee,V,function(B,M,$){k(B)?I.push(B):B instanceof b.default.Container&&(I=I.concat(z(B,M,P))),P-=$}),I};return D(this,N,q)}},{key:"optimize",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,N,q),N.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,N,q))}},{key:"path",value:function(N){return O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"path",this).call(this,N).slice(1)}},{key:"update",value:function(N){if(this.batch!==!0){var q=o.default.sources.USER;typeof N=="string"&&(q=N),Array.isArray(N)||(N=this.observer.takeRecords()),N.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,q,N),O(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"update",this).call(this,N.concat([])),N.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,q,N)}}}]),y}(b.default.Scroll);L.blotName="scroll",L.className="ql-editor",L.tagName="DIV",L.defaultChild="block",L.allowedChildren=[t.default,e.BlockEmbed,h.default],p.default=L},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.SHORTKEY=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},_=function(){function j(U,G){var Z=[],Q=!0,re=!1,oe=void 0;try{for(var ae=U[Symbol.iterator](),ce;!(Q=(ce=ae.next()).done)&&(Z.push(ce.value),!(G&&Z.length===G));Q=!0);}catch(de){re=!0,oe=de}finally{try{!Q&&ae.return&&ae.return()}finally{if(re)throw oe}}return Z}return function(U,G){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return j(U,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function j(U,G){for(var Z=0;Z<G.length;Z++){var Q=G[Z];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(U,Q.key,Q)}}return function(U,G,Z){return G&&j(U.prototype,G),Z&&j(U,Z),U}}(),g=f(21),b=A(g),d=f(11),o=A(d),e=f(3),t=A(e),l=f(2),a=A(l),s=f(20),r=A(s),i=f(0),h=A(i),n=f(5),v=A(n),S=f(10),T=A(S),k=f(9),L=A(k);function A(j){return j&&j.__esModule?j:{default:j}}function y(j,U,G){return U in j?Object.defineProperty(j,U,{value:G,enumerable:!0,configurable:!0,writable:!0}):j[U]=G,j}function w(j,U){if(!(j instanceof U))throw new TypeError("Cannot call a class as a function")}function N(j,U){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U&&(typeof U=="object"||typeof U=="function")?U:j}function q(j,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof U);j.prototype=Object.create(U&&U.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),U&&(Object.setPrototypeOf?Object.setPrototypeOf(j,U):j.__proto__=U)}var D=(0,T.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",K=function(j){q(U,j),O(U,null,[{key:"match",value:function(Z,Q){return Q=F(Q),["altKey","ctrlKey","metaKey","shiftKey"].some(function(re){return!!Q[re]!==Z[re]&&Q[re]!==null})?!1:Q.key===(Z.which||Z.keyCode)}}]);function U(G,Z){w(this,U);var Q=N(this,(U.__proto__||Object.getPrototypeOf(U)).call(this,G,Z));return Q.bindings={},Object.keys(Q.options.bindings).forEach(function(re){re==="list autofill"&&G.scroll.whitelist!=null&&!G.scroll.whitelist.list||Q.options.bindings[re]&&Q.addBinding(Q.options.bindings[re])}),Q.addBinding({key:U.keys.ENTER,shiftKey:null},B),Q.addBinding({key:U.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Q.addBinding({key:U.keys.BACKSPACE},{collapsed:!0},V),Q.addBinding({key:U.keys.DELETE},{collapsed:!0},I)):(Q.addBinding({key:U.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},V),Q.addBinding({key:U.keys.DELETE},{collapsed:!0,suffix:/^.?$/},I)),Q.addBinding({key:U.keys.BACKSPACE},{collapsed:!1},P),Q.addBinding({key:U.keys.DELETE},{collapsed:!1},P),Q.addBinding({key:U.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},V),Q.listen(),Q}return O(U,[{key:"addBinding",value:function(Z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=F(Z);if(oe==null||oe.key==null)return D.warn("Attempted to add invalid keyboard binding",oe);typeof Q=="function"&&(Q={handler:Q}),typeof re=="function"&&(re={handler:re}),oe=(0,t.default)(oe,Q,re),this.bindings[oe.key]=this.bindings[oe.key]||[],this.bindings[oe.key].push(oe)}},{key:"listen",value:function(){var Z=this;this.quill.root.addEventListener("keydown",function(Q){if(!Q.defaultPrevented){var re=Q.which||Q.keyCode,oe=(Z.bindings[re]||[]).filter(function(pe){return U.match(Q,pe)});if(oe.length!==0){var ae=Z.quill.getSelection();if(!(ae==null||!Z.quill.hasFocus())){var ce=Z.quill.getLine(ae.index),de=_(ce,2),be=de[0],me=de[1],Y=Z.quill.getLeaf(ae.index),X=_(Y,2),te=X[0],ne=X[1],J=ae.length===0?[te,ne]:Z.quill.getLeaf(ae.index+ae.length),fe=_(J,2),le=fe[0],ue=fe[1],Se=te instanceof h.default.Text?te.value().slice(0,ne):"",we=le instanceof h.default.Text?le.value().slice(ue):"",ye={collapsed:ae.length===0,empty:ae.length===0&&be.length()<=1,format:Z.quill.getFormat(ae),offset:me,prefix:Se,suffix:we},We=oe.some(function(pe){if(pe.collapsed!=null&&pe.collapsed!==ye.collapsed||pe.empty!=null&&pe.empty!==ye.empty||pe.offset!=null&&pe.offset!==ye.offset)return!1;if(Array.isArray(pe.format)){if(pe.format.every(function(Ie){return ye.format[Ie]==null}))return!1}else if(E(pe.format)==="object"&&!Object.keys(pe.format).every(function(Ie){return pe.format[Ie]===!0?ye.format[Ie]!=null:pe.format[Ie]===!1?ye.format[Ie]==null:(0,o.default)(pe.format[Ie],ye.format[Ie])}))return!1;return pe.prefix!=null&&!pe.prefix.test(ye.prefix)||pe.suffix!=null&&!pe.suffix.test(ye.suffix)?!1:pe.handler.call(Z,ae,ye)!==!0});We&&Q.preventDefault()}}}})}}]),U}(L.default);K.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},K.DEFAULTS={bindings:{bold:$("bold"),italic:$("italic"),underline:$("underline"),indent:{key:K.keys.TAB,format:["blockquote","indent","list"],handler:function(U,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","+1",v.default.sources.USER)}},outdent:{key:K.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(U,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","-1",v.default.sources.USER)}},"outdent backspace":{key:K.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(U,G){G.format.indent!=null?this.quill.format("indent","-1",v.default.sources.USER):G.format.list!=null&&this.quill.format("list",!1,v.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:K.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(U){this.quill.deleteText(U.index-1,1,v.default.sources.USER)}},tab:{key:K.keys.TAB,handler:function(U){this.quill.history.cutoff();var G=new a.default().retain(U.index).delete(U.length).insert(" ");this.quill.updateContents(G,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(U.index+1,v.default.sources.SILENT)}},"list empty enter":{key:K.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(U,G){this.quill.format("list",!1,v.default.sources.USER),G.format.indent&&this.quill.format("indent",!1,v.default.sources.USER)}},"checklist enter":{key:K.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(U){var G=this.quill.getLine(U.index),Z=_(G,2),Q=Z[0],re=Z[1],oe=(0,t.default)({},Q.formats(),{list:"checked"}),ae=new a.default().retain(U.index).insert(`
|
|
28
|
-
`,oe).retain(Q.length()-re-1).retain(1,{list:"unchecked"});this.quill.updateContents(ae,v.default.sources.USER),this.quill.setSelection(U.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:K.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(U,G){var Z=this.quill.getLine(U.index),Q=_(Z,2),re=Q[0],oe=Q[1],ae=new a.default().retain(U.index).insert(`
|
|
29
|
-
`,G.format).retain(re.length()-oe-1).retain(1,{header:null});this.quill.updateContents(ae,v.default.sources.USER),this.quill.setSelection(U.index+1,v.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(U,G){var Z=G.prefix.length,Q=this.quill.getLine(U.index),re=_(Q,2),oe=re[0],ae=re[1];if(ae>Z)return!0;var ce=void 0;switch(G.prefix.trim()){case"[]":case"[ ]":ce="unchecked";break;case"[x]":ce="checked";break;case"-":case"*":ce="bullet";break;default:ce="ordered"}this.quill.insertText(U.index," ",v.default.sources.USER),this.quill.history.cutoff();var de=new a.default().retain(U.index-ae).delete(Z+1).retain(oe.length()-2-ae).retain(1,{list:ce});this.quill.updateContents(de,v.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(U.index-Z,v.default.sources.SILENT)}},"code exit":{key:K.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(U){var G=this.quill.getLine(U.index),Z=_(G,2),Q=Z[0],re=Z[1],oe=new a.default().retain(U.index+Q.length()-re-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(oe,v.default.sources.USER)}},"embed left":ee(K.keys.LEFT,!1),"embed left shift":ee(K.keys.LEFT,!0),"embed right":ee(K.keys.RIGHT,!1),"embed right shift":ee(K.keys.RIGHT,!0)}};function ee(j,U){var G,Z=j===K.keys.LEFT?"prefix":"suffix";return G={key:j,shiftKey:U,altKey:null},y(G,Z,/^$/),y(G,"handler",function(re){var oe=re.index;j===K.keys.RIGHT&&(oe+=re.length+1);var ae=this.quill.getLeaf(oe),ce=_(ae,1),de=ce[0];return de instanceof h.default.Embed?(j===K.keys.LEFT?U?this.quill.setSelection(re.index-1,re.length+1,v.default.sources.USER):this.quill.setSelection(re.index-1,v.default.sources.USER):U?this.quill.setSelection(re.index,re.length+1,v.default.sources.USER):this.quill.setSelection(re.index+re.length+1,v.default.sources.USER),!1):!0}),G}function V(j,U){if(!(j.index===0||this.quill.getLength()<=1)){var G=this.quill.getLine(j.index),Z=_(G,1),Q=Z[0],re={};if(U.offset===0){var oe=this.quill.getLine(j.index-1),ae=_(oe,1),ce=ae[0];if(ce!=null&&ce.length()>1){var de=Q.formats(),be=this.quill.getFormat(j.index-1,1);re=r.default.attributes.diff(de,be)||{}}}var me=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(U.prefix)?2:1;this.quill.deleteText(j.index-me,me,v.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(j.index-me,me,re,v.default.sources.USER),this.quill.focus()}}function I(j,U){var G=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(U.suffix)?2:1;if(!(j.index>=this.quill.getLength()-G)){var Z={},Q=0,re=this.quill.getLine(j.index),oe=_(re,1),ae=oe[0];if(U.offset>=ae.length()-1){var ce=this.quill.getLine(j.index+1),de=_(ce,1),be=de[0];if(be){var me=ae.formats(),Y=this.quill.getFormat(j.index,1);Z=r.default.attributes.diff(me,Y)||{},Q=be.length()}}this.quill.deleteText(j.index,G,v.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine(j.index+Q-1,G,Z,v.default.sources.USER)}}function P(j){var U=this.quill.getLines(j),G={};if(U.length>1){var Z=U[0].formats(),Q=U[U.length-1].formats();G=r.default.attributes.diff(Q,Z)||{}}this.quill.deleteText(j,v.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(j.index,1,G,v.default.sources.USER),this.quill.setSelection(j.index,v.default.sources.SILENT),this.quill.focus()}function B(j,U){var G=this;j.length>0&&this.quill.scroll.deleteAt(j.index,j.length);var Z=Object.keys(U.format).reduce(function(Q,re){return h.default.query(re,h.default.Scope.BLOCK)&&!Array.isArray(U.format[re])&&(Q[re]=U.format[re]),Q},{});this.quill.insertText(j.index,`
|
|
30
|
-
`,Z,v.default.sources.USER),this.quill.setSelection(j.index+1,v.default.sources.SILENT),this.quill.focus(),Object.keys(U.format).forEach(function(Q){Z[Q]==null&&(Array.isArray(U.format[Q])||Q!=="link"&&G.quill.format(Q,U.format[Q],v.default.sources.USER))})}function M(j){return{key:K.keys.TAB,shiftKey:!j,format:{"code-block":!0},handler:function(G){var Z=h.default.query("code-block"),Q=G.index,re=G.length,oe=this.quill.scroll.descendant(Z,Q),ae=_(oe,2),ce=ae[0],de=ae[1];if(ce!=null){var be=this.quill.getIndex(ce),me=ce.newlineIndex(de,!0)+1,Y=ce.newlineIndex(be+de+re),X=ce.domNode.textContent.slice(me,Y).split(`
|
|
31
|
-
`);de=0,X.forEach(function(te,ne){j?(ce.insertAt(me+de,Z.TAB),de+=Z.TAB.length,ne===0?Q+=Z.TAB.length:re+=Z.TAB.length):te.startsWith(Z.TAB)&&(ce.deleteAt(me+de,Z.TAB.length),de-=Z.TAB.length,ne===0?Q-=Z.TAB.length:re-=Z.TAB.length),de+=te.length+1}),this.quill.update(v.default.sources.USER),this.quill.setSelection(Q,re,v.default.sources.SILENT)}}}}function $(j){return{key:j[0].toUpperCase(),shortKey:!0,handler:function(G,Z){this.quill.format(j,!Z.format[j],v.default.sources.USER)}}}function F(j){if(typeof j=="string"||typeof j=="number")return F({key:j});if((typeof j>"u"?"undefined":E(j))==="object"&&(j=(0,b.default)(j,!1)),typeof j.key=="string")if(K.keys[j.key.toUpperCase()]!=null)j.key=K.keys[j.key.toUpperCase()];else if(j.key.length===1)j.key=j.key.toUpperCase().charCodeAt(0);else return null;return j.shortKey&&(j[z]=j.shortKey,delete j.shortKey),j}p.default=K,p.SHORTKEY=z},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,h){var n=[],v=!0,S=!1,T=void 0;try{for(var k=i[Symbol.iterator](),L;!(v=(L=k.next()).done)&&(n.push(L.value),!(h&&n.length===h));v=!0);}catch(A){S=!0,T=A}finally{try{!v&&k.return&&k.return()}finally{if(S)throw T}}return n}return function(i,h){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return r(i,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function r(i,h,n){i===null&&(i=Function.prototype);var v=Object.getOwnPropertyDescriptor(i,h);if(v===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,h,n)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(n)}},O=function(){function r(i,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(i,v.key,v)}}return function(i,h,n){return h&&r(i.prototype,h),n&&r(i,n),i}}(),g=f(0),b=e(g),d=f(7),o=e(d);function e(r){return r&&r.__esModule?r:{default:r}}function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function l(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function a(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var s=function(r){a(i,r),O(i,null,[{key:"value",value:function(){}}]);function i(h,n){t(this,i);var v=l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,h));return v.selection=n,v.textNode=document.createTextNode(i.CONTENTS),v.domNode.appendChild(v.textNode),v._length=0,v}return O(i,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(n,v){if(this._length!==0)return _(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,v);for(var S=this,T=0;S!=null&&S.statics.scope!==b.default.Scope.BLOCK_BLOT;)T+=S.offset(S.parent),S=S.parent;S!=null&&(this._length=i.CONTENTS.length,S.optimize(),S.formatAt(T,i.CONTENTS.length,n,v),this._length=0)}},{key:"index",value:function(n,v){return n===this.textNode?0:_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,v)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var n=this.textNode,v=this.selection.getNativeRange(),S=void 0,T=void 0,k=void 0;if(v!=null&&v.start.node===n&&v.end.node===n){var L=[n,v.start.offset,v.end.offset];S=L[0],T=L[1],k=L[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var A=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(S=this.next.domNode,this.next.insertAt(0,A),this.textNode.data=i.CONTENTS):(this.textNode.data=A,this.parent.insertBefore(b.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),T!=null){var y=[T,k].map(function(N){return Math.max(0,Math.min(S.data.length,N-1))}),w=E(y,2);return T=w[0],k=w[1],{startNode:S,startOffset:T,endNode:S,endOffset:k}}}}},{key:"update",value:function(n,v){var S=this;if(n.some(function(k){return k.type==="characterData"&&k.target===S.textNode})){var T=this.restore();T&&(v.range=T)}}},{key:"value",value:function(){return""}}]),i}(b.default.Embed);s.blotName="cursor",s.className="ql-cursor",s.tagName="span",s.CONTENTS="\uFEFF",p.default=s},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(0),_=b(E),O=f(4),g=b(O);function b(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return a}(_.default.Container);t.allowedChildren=[g.default,O.BlockEmbed,t],p.default=t},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.ColorStyle=p.ColorClass=p.ColorAttributor=void 0;var E=function(){function s(r,i){for(var h=0;h<i.length;h++){var n=i[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,h){return i&&s(r.prototype,i),h&&s(r,h),r}}(),_=function s(r,i,h){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var v=Object.getPrototypeOf(r);return v===null?void 0:s(v,i,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},O=f(0),g=b(O);function b(s){return s&&s.__esModule?s:{default:s}}function d(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function o(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function e(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var t=function(s){e(r,s);function r(){return d(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"value",value:function(h){var n=_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,h);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(v){return("00"+parseInt(v).toString(16)).slice(-2)}).join("")):n}}]),r}(g.default.Attributor.Style),l=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),a=new t("color","color",{scope:g.default.Scope.INLINE});p.ColorAttributor=t,p.ColorClass=l,p.ColorStyle=a},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.sanitize=p.default=void 0;var E=function(){function a(s,r){for(var i=0;i<r.length;i++){var h=r[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(s,h.key,h)}}return function(s,r,i){return r&&a(s.prototype,r),i&&a(s,i),s}}(),_=function a(s,r,i){s===null&&(s=Function.prototype);var h=Object.getOwnPropertyDescriptor(s,r);if(h===void 0){var n=Object.getPrototypeOf(s);return n===null?void 0:a(n,r,i)}else{if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(i)}},O=f(6),g=b(O);function b(a){return a&&a.__esModule?a:{default:a}}function d(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function o(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function e(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var t=function(a){e(s,a);function s(){return d(this,s),o(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return E(s,[{key:"format",value:function(i,h){if(i!==this.statics.blotName||!h)return _(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,i,h);h=this.constructor.sanitize(h),this.domNode.setAttribute("href",h)}}],[{key:"create",value:function(i){var h=_(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,i);return i=this.sanitize(i),h.setAttribute("href",i),h.setAttribute("rel","noopener noreferrer"),h.setAttribute("target","_blank"),h}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return l(i,this.PROTOCOL_WHITELIST)?i: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 l(a,s){var r=document.createElement("a");r.href=a;var i=r.href.slice(0,r.href.indexOf(":"));return s.indexOf(i)>-1}p.default=t,p.sanitize=l},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=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},_=function(){function s(r,i){for(var h=0;h<i.length;h++){var n=i[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,h){return i&&s(r.prototype,i),h&&s(r,h),r}}(),O=f(23),g=o(O),b=f(107),d=o(b);function o(s){return s&&s.__esModule?s:{default:s}}function e(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}var t=0;function l(s,r){s.setAttribute(r,s.getAttribute(r)!=="true")}var a=function(){function s(r){var i=this;e(this,s),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(h){switch(h.keyCode){case g.default.keys.ENTER:i.togglePicker();break;case g.default.keys.ESCAPE:i.escape(),h.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return _(s,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var h=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){h.selectItem(n,!0)}),n.addEventListener("keydown",function(v){switch(v.keyCode){case g.default.keys.ENTER:h.selectItem(n,!0),v.preventDefault();break;case g.default.keys.ESCAPE:h.escape(),v.preventDefault();break}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=d.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,h=document.createElement("span");h.classList.add("ql-picker-options"),h.setAttribute("aria-hidden","true"),h.tabIndex="-1",h.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",h.id),this.options=h,[].slice.call(this.select.options).forEach(function(n){var v=i.buildItem(n);h.appendChild(v),n.selected===!0&&i.selectItem(v)}),this.container.appendChild(h)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(h){i.container.setAttribute(h.name,h.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");if(i!==n&&(n?.classList.remove("ql-selected"),i!=null&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),h))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":E(Event))==="object"){var v=document.createEvent("Event");v.initEvent("change",!0,!0),this.select.dispatchEvent(v)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var h=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(h)}else this.selectItem(null);var n=i!=null&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),s}();p.default=a},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(0),_=D(E),O=f(5),g=D(O),b=f(4),d=D(b),o=f(16),e=D(o),t=f(25),l=D(t),a=f(24),s=D(a),r=f(35),i=D(r),h=f(6),n=D(h),v=f(22),S=D(v),T=f(7),k=D(T),L=f(55),A=D(L),y=f(42),w=D(y),N=f(23),q=D(N);function D(z){return z&&z.__esModule?z:{default:z}}g.default.register({"blots/block":d.default,"blots/block/embed":b.BlockEmbed,"blots/break":e.default,"blots/container":l.default,"blots/cursor":s.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":S.default,"blots/text":k.default,"modules/clipboard":A.default,"modules/history":w.default,"modules/keyboard":q.default}),_.default.register(d.default,e.default,s.default,n.default,S.default,k.default),p.default=g.default},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(1),_=function(){function O(g){this.domNode=g,this.domNode[E.DATA_KEY]={blot:this}}return Object.defineProperty(O.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),O.create=function(g){if(this.tagName==null)throw new E.ParchmentError("Blot definition missing tagName");var b;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?b=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?b=document.createElement(g):b=document.createElement(this.tagName[0])):b=document.createElement(this.tagName),this.className&&b.classList.add(this.className),b},O.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},O.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return E.create(g)},O.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[E.DATA_KEY]},O.prototype.deleteAt=function(g,b){var d=this.isolate(g,b);d.remove()},O.prototype.formatAt=function(g,b,d,o){var e=this.isolate(g,b);if(E.query(d,E.Scope.BLOT)!=null&&o)e.wrap(d,o);else if(E.query(d,E.Scope.ATTRIBUTE)!=null){var t=E.create(this.statics.scope);e.wrap(t),t.format(d,o)}},O.prototype.insertAt=function(g,b,d){var o=d==null?E.create("text",b):E.create(b,d),e=this.split(g);this.parent.insertBefore(o,e)},O.prototype.insertInto=function(g,b){b===void 0&&(b=null),this.parent!=null&&this.parent.children.remove(this);var d=null;g.children.insertBefore(this,b),b!=null&&(d=b.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=d)&&g.domNode.insertBefore(this.domNode,d),this.parent=g,this.attach()},O.prototype.isolate=function(g,b){var d=this.split(g);return d.split(b),d},O.prototype.length=function(){return 1},O.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)},O.prototype.optimize=function(g){this.domNode[E.DATA_KEY]!=null&&delete this.domNode[E.DATA_KEY].mutations},O.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},O.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},O.prototype.replaceWith=function(g,b){var d=typeof g=="string"?E.create(g,b):g;return d.replace(this),d},O.prototype.split=function(g,b){return g===0?this:this.next},O.prototype.update=function(g,b){},O.prototype.wrap=function(g,b){var d=typeof g=="string"?E.create(g,b):g;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},O.blotName="abstract",O}();p.default=_},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(12),_=f(32),O=f(33),g=f(1),b=function(){function d(o){this.attributes={},this.domNode=o,this.build()}return d.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},d.prototype.build=function(){var o=this;this.attributes={};var e=E.default.keys(this.domNode),t=_.default.keys(this.domNode),l=O.default.keys(this.domNode);e.concat(t).concat(l).forEach(function(a){var s=g.query(a,g.Scope.ATTRIBUTE);s instanceof E.default&&(o.attributes[s.attrName]=s)})},d.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(t){var l=e.attributes[t].value(e.domNode);o.format(t,l)})},d.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},d.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=o.attributes[t].value(o.domNode),e},{})},d}();p.default=b},function(c,p,f){var E=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){b(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(12);function O(b,d){var o=b.getAttribute("class")||"";return o.split(/\s+/).filter(function(e){return e.indexOf(d+"-")===0})}var g=function(b){E(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},d.prototype.add=function(o,e){return this.canAdd(o,e)?(this.remove(o),o.classList.add(this.keyName+"-"+e),!0):!1},d.prototype.remove=function(o){var e=O(o,this.keyName);e.forEach(function(t){o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")},d.prototype.value=function(o){var e=O(o,this.keyName)[0]||"",t=e.slice(this.keyName.length+1);return this.canAdd(o,t)?t:""},d}(_.default);p.default=g},function(c,p,f){var E=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){b(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(12);function O(b){var d=b.split("-"),o=d.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return d[0]+o}var g=function(b){E(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){var t=e.split(":");return t[0].trim()})},d.prototype.add=function(o,e){return this.canAdd(o,e)?(o.style[O(this.keyName)]=e,!0):!1},d.prototype.remove=function(o){o.style[O(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},d.prototype.value=function(o){var e=o.style[O(this.keyName)];return this.canAdd(o,e)?e:""},d}(_.default);p.default=g},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function g(b,d){for(var o=0;o<d.length;o++){var e=d[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(b,e.key,e)}}return function(b,d,o){return d&&g(b.prototype,d),o&&g(b,o),b}}();function _(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}var O=function(){function g(b,d){_(this,g),this.quill=b,this.options=d,this.modules={}}return E(g,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(o){d.modules[o]==null&&d.addModule(o)})}},{key:"addModule",value:function(d){var o=this.quill.constructor.import("modules/"+d);return this.modules[d]=new o(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),g}();O.DEFAULTS={modules:{}},O.themes={default:O},p.default=O},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function r(i,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(i,v.key,v)}}return function(i,h,n){return h&&r(i.prototype,h),n&&r(i,n),i}}(),_=function r(i,h,n){i===null&&(i=Function.prototype);var v=Object.getOwnPropertyDescriptor(i,h);if(v===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,h,n)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(n)}},O=f(0),g=o(O),b=f(7),d=o(b);function o(r){return r&&r.__esModule?r:{default:r}}function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function t(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function l(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var a="\uFEFF",s=function(r){l(i,r);function i(h){e(this,i);var n=t(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,h));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(v){n.contentNode.appendChild(v)}),n.leftGuard=document.createTextNode(a),n.rightGuard=document.createTextNode(a),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return E(i,[{key:"index",value:function(n,v){return n===this.leftGuard?0:n===this.rightGuard?1:_(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,v)}},{key:"restore",value:function(n){var v=void 0,S=void 0,T=n.data.split(a).join("");if(n===this.leftGuard)if(this.prev instanceof d.default){var k=this.prev.length();this.prev.insertAt(k,T),v={startNode:this.prev.domNode,startOffset:k+T.length}}else S=document.createTextNode(T),this.parent.insertBefore(g.default.create(S),this),v={startNode:S,startOffset:T.length};else n===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,T),v={startNode:this.next.domNode,startOffset:T.length}):(S=document.createTextNode(T),this.parent.insertBefore(g.default.create(S),this.next),v={startNode:S,startOffset:T.length}));return n.data=a,v}},{key:"update",value:function(n,v){var S=this;n.forEach(function(T){if(T.type==="characterData"&&(T.target===S.leftGuard||T.target===S.rightGuard)){var k=S.restore(T.target);k&&(v.range=k)}})}}]),i}(g.default.Embed);p.default=s},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.AlignStyle=p.AlignClass=p.AlignAttribute=void 0;var E=f(0),_=O(E);function O(e){return e&&e.__esModule?e:{default:e}}var g={scope:_.default.Scope.BLOCK,whitelist:["right","center","justify"]},b=new _.default.Attributor.Attribute("align","align",g),d=new _.default.Attributor.Class("align","ql-align",g),o=new _.default.Attributor.Style("align","text-align",g);p.AlignAttribute=b,p.AlignClass=d,p.AlignStyle=o},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.BackgroundStyle=p.BackgroundClass=void 0;var E=f(0),_=g(E),O=f(26);function g(o){return o&&o.__esModule?o:{default:o}}var b=new _.default.Attributor.Class("background","ql-bg",{scope:_.default.Scope.INLINE}),d=new O.ColorAttributor("background","background-color",{scope:_.default.Scope.INLINE});p.BackgroundClass=b,p.BackgroundStyle=d},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.DirectionStyle=p.DirectionClass=p.DirectionAttribute=void 0;var E=f(0),_=O(E);function O(e){return e&&e.__esModule?e:{default:e}}var g={scope:_.default.Scope.BLOCK,whitelist:["rtl"]},b=new _.default.Attributor.Attribute("direction","dir",g),d=new _.default.Attributor.Class("direction","ql-direction",g),o=new _.default.Attributor.Style("direction","direction",g);p.DirectionAttribute=b,p.DirectionClass=d,p.DirectionStyle=o},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.FontClass=p.FontStyle=void 0;var E=function(){function r(i,h){for(var n=0;n<h.length;n++){var v=h[n];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(i,v.key,v)}}return function(i,h,n){return h&&r(i.prototype,h),n&&r(i,n),i}}(),_=function r(i,h,n){i===null&&(i=Function.prototype);var v=Object.getOwnPropertyDescriptor(i,h);if(v===void 0){var S=Object.getPrototypeOf(i);return S===null?void 0:r(S,h,n)}else{if("value"in v)return v.value;var T=v.get;return T===void 0?void 0:T.call(n)}},O=f(0),g=b(O);function b(r){return r&&r.__esModule?r:{default:r}}function d(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function e(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var t={scope:g.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new g.default.Attributor.Class("font","ql-font",t),a=function(r){e(i,r);function i(){return d(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return E(i,[{key:"value",value:function(n){return _(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(g.default.Attributor.Style),s=new a("font","font-family",t);p.FontStyle=s,p.FontClass=l},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.SizeStyle=p.SizeClass=void 0;var E=f(0),_=O(E);function O(d){return d&&d.__esModule?d:{default:d}}var g=new _.default.Attributor.Class("size","ql-size",{scope:_.default.Scope.INLINE,whitelist:["small","large","huge"]}),b=new _.default.Attributor.Style("size","font-size",{scope:_.default.Scope.INLINE,whitelist:["10px","18px","32px"]});p.SizeClass=g,p.SizeStyle=b},function(c,p,f){c.exports={align:{"":f(76),center:f(77),right:f(78),justify:f(79)},background:f(80),blockquote:f(81),bold:f(82),clean:f(83),code:f(58),"code-block":f(58),color:f(84),direction:{"":f(85),rtl:f(86)},float:{center:f(87),full:f(88),left:f(89),right:f(90)},formula:f(91),header:{1:f(92),2:f(93)},italic:f(94),image:f(95),indent:{"+1":f(96),"-1":f(97)},link:f(98),list:{ordered:f(99),bullet:f(100),check:f(101)},script:{sub:f(102),super:f(103)},strike:f(104),underline:f(105),video:f(106)}},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.getLastChangeIndex=p.default=void 0;var E=function(){function h(n,v){for(var S=0;S<v.length;S++){var T=v[S];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(n,T.key,T)}}return function(n,v,S){return v&&h(n.prototype,v),S&&h(n,S),n}}(),_=f(0),O=e(_),g=f(5),b=e(g),d=f(9),o=e(d);function e(h){return h&&h.__esModule?h:{default:h}}function t(h,n){if(!(h instanceof n))throw new TypeError("Cannot call a class as a function")}function l(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:h}function a(h,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);h.prototype=Object.create(n&&n.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(h,n):h.__proto__=n)}var s=function(h){a(n,h);function n(v,S){t(this,n);var T=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,v,S));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(b.default.events.EDITOR_CHANGE,function(k,L,A,y){k!==b.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||y===b.default.sources.USER?T.record(L,A):T.transform(L))}),T.quill.keyboard.addBinding({key:"Z",shortKey:!0},T.undo.bind(T)),T.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},T.redo.bind(T)),/Win/i.test(navigator.platform)&&T.quill.keyboard.addBinding({key:"Y",shortKey:!0},T.redo.bind(T)),T}return E(n,[{key:"change",value:function(S,T){if(this.stack[S].length!==0){var k=this.stack[S].pop();this.stack[T].push(k),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(k[S],b.default.sources.USER),this.ignoreChange=!1;var L=i(k[S]);this.quill.setSelection(L)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(S,T){if(S.ops.length!==0){this.stack.redo=[];var k=this.quill.getContents().diff(T),L=Date.now();if(this.lastRecorded+this.options.delay>L&&this.stack.undo.length>0){var A=this.stack.undo.pop();k=k.compose(A.undo),S=A.redo.compose(S)}else this.lastRecorded=L;this.stack.undo.push({redo:S,undo:k}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(S){this.stack.undo.forEach(function(T){T.undo=S.transform(T.undo,!0),T.redo=S.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=S.transform(T.undo,!0),T.redo=S.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(o.default);s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function r(h){var n=h.ops[h.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(v){return O.default.query(v,O.default.Scope.BLOCK)!=null}):!1}function i(h){var n=h.reduce(function(S,T){return S+=T.delete||0,S},0),v=h.length()-n;return r(h)&&(v-=1),v}p.default=s,p.getLastChangeIndex=i},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BaseTooltip=void 0;var E=function(){function B(M,$){for(var F=0;F<$.length;F++){var j=$[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(M,j.key,j)}}return function(M,$,F){return $&&B(M.prototype,$),F&&B(M,F),M}}(),_=function B(M,$,F){M===null&&(M=Function.prototype);var j=Object.getOwnPropertyDescriptor(M,$);if(j===void 0){var U=Object.getPrototypeOf(M);return U===null?void 0:B(U,$,F)}else{if("value"in j)return j.value;var G=j.get;return G===void 0?void 0:G.call(F)}},O=f(3),g=L(O),b=f(2),d=L(b),o=f(8),e=L(o),t=f(23),l=L(t),a=f(34),s=L(a),r=f(59),i=L(r),h=f(60),n=L(h),v=f(28),S=L(v),T=f(61),k=L(T);function L(B){return B&&B.__esModule?B:{default:B}}function A(B,M){if(!(B instanceof M))throw new TypeError("Cannot call a class as a function")}function y(B,M){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:B}function w(B,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);B.prototype=Object.create(M&&M.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(B,M):B.__proto__=M)}var N=[!1,"center","right","justify"],q=["#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"],D=[!1,"serif","monospace"],z=["1","2","3",!1],K=["small",!1,"large","huge"],ee=function(B){w(M,B);function M($,F){A(this,M);var j=y(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,$,F)),U=function G(Z){if(!document.body.contains($.root))return document.body.removeEventListener("click",G);j.tooltip!=null&&!j.tooltip.root.contains(Z.target)&&document.activeElement!==j.tooltip.textbox&&!j.quill.hasFocus()&&j.tooltip.hide(),j.pickers!=null&&j.pickers.forEach(function(Q){Q.container.contains(Z.target)||Q.close()})};return $.emitter.listenDOM("click",document.body,U),j}return E(M,[{key:"addModule",value:function(F){var j=_(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,F);return F==="toolbar"&&this.extendToolbar(j),j}},{key:"buildButtons",value:function(F,j){F.forEach(function(U){var G=U.getAttribute("class")||"";G.split(/\s+/).forEach(function(Z){if(Z.startsWith("ql-")&&(Z=Z.slice(3),j[Z]!=null))if(Z==="direction")U.innerHTML=j[Z][""]+j[Z].rtl;else if(typeof j[Z]=="string")U.innerHTML=j[Z];else{var Q=U.value||"";Q!=null&&j[Z][Q]&&(U.innerHTML=j[Z][Q])}})})}},{key:"buildPickers",value:function(F,j){var U=this;this.pickers=F.map(function(Z){if(Z.classList.contains("ql-align"))return Z.querySelector("option")==null&&P(Z,N),new n.default(Z,j.align);if(Z.classList.contains("ql-background")||Z.classList.contains("ql-color")){var Q=Z.classList.contains("ql-background")?"background":"color";return Z.querySelector("option")==null&&P(Z,q,Q==="background"?"#ffffff":"#000000"),new i.default(Z,j[Q])}else return Z.querySelector("option")==null&&(Z.classList.contains("ql-font")?P(Z,D):Z.classList.contains("ql-header")?P(Z,z):Z.classList.contains("ql-size")&&P(Z,K)),new S.default(Z)});var G=function(){U.pickers.forEach(function(Q){Q.update()})};this.quill.on(e.default.events.EDITOR_CHANGE,G)}}]),M}(s.default);ee.DEFAULTS=(0,g.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,$=this.container.querySelector("input.ql-image[type=file]");$==null&&($=document.createElement("input"),$.setAttribute("type","file"),$.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),$.classList.add("ql-image"),$.addEventListener("change",function(){if($.files!=null&&$.files[0]!=null){var F=new FileReader;F.onload=function(j){var U=M.quill.getSelection(!0);M.quill.updateContents(new d.default().retain(U.index).delete(U.length).insert({image:j.target.result}),e.default.sources.USER),M.quill.setSelection(U.index+1,e.default.sources.SILENT),$.value=""},F.readAsDataURL($.files[0])}}),this.container.appendChild($)),$.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var V=function(B){w(M,B);function M($,F){A(this,M);var j=y(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,$,F));return j.textbox=j.root.querySelector('input[type="text"]'),j.listen(),j}return E(M,[{key:"listen",value:function(){var F=this;this.textbox.addEventListener("keydown",function(j){l.default.match(j,"enter")?(F.save(),j.preventDefault()):l.default.match(j,"escape")&&(F.cancel(),j.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),j!=null?this.textbox.value=j:F!==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-"+F)||""),this.root.setAttribute("data-mode",F)}},{key:"restoreFocus",value:function(){var F=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=F}},{key:"save",value:function(){var F=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var j=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",F,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",F,e.default.sources.USER)),this.quill.root.scrollTop=j;break}case"video":F=I(F);case"formula":{if(!F)break;var U=this.quill.getSelection(!0);if(U!=null){var G=U.index+U.length;this.quill.insertEmbed(G,this.root.getAttribute("data-mode"),F,e.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(G+1," ",e.default.sources.USER),this.quill.setSelection(G+2,e.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M}(k.default);function I(B){var M=B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||B.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=B.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":B}function P(B,M){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(F){var j=document.createElement("option");F===$?j.setAttribute("selected","selected"):j.setAttribute("value",F),B.appendChild(j)})}p.BaseTooltip=V,p.default=ee},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function _(){this.head=this.tail=null,this.length=0}return _.prototype.append=function(){for(var O=[],g=0;g<arguments.length;g++)O[g]=arguments[g];this.insertBefore(O[0],null),O.length>1&&this.append.apply(this,O.slice(1))},_.prototype.contains=function(O){for(var g,b=this.iterator();g=b();)if(g===O)return!0;return!1},_.prototype.insertBefore=function(O,g){O&&(O.next=g,g!=null?(O.prev=g.prev,g.prev!=null&&(g.prev.next=O),g.prev=O,g===this.head&&(this.head=O)):this.tail!=null?(this.tail.next=O,O.prev=this.tail,this.tail=O):(O.prev=null,this.head=this.tail=O),this.length+=1)},_.prototype.offset=function(O){for(var g=0,b=this.head;b!=null;){if(b===O)return g;g+=b.length(),b=b.next}return-1},_.prototype.remove=function(O){this.contains(O)&&(O.prev!=null&&(O.prev.next=O.next),O.next!=null&&(O.next.prev=O.prev),O===this.head&&(this.head=O.next),O===this.tail&&(this.tail=O.prev),this.length-=1)},_.prototype.iterator=function(O){return O===void 0&&(O=this.head),function(){var g=O;return O!=null&&(O=O.next),g}},_.prototype.find=function(O,g){g===void 0&&(g=!1);for(var b,d=this.iterator();b=d();){var o=b.length();if(O<o||g&&O===o&&(b.next==null||b.next.length()!==0))return[b,O];O-=o}return[null,0]},_.prototype.forEach=function(O){for(var g,b=this.iterator();g=b();)O(g)},_.prototype.forEachAt=function(O,g,b){if(!(g<=0))for(var d=this.find(O),o=d[0],e=d[1],t,l=O-e,a=this.iterator(o);(t=a())&&l<O+g;){var s=t.length();O>l?b(t,O-l,Math.min(g,l+s-O)):b(t,0,Math.min(s,O+g-l)),l+=s}},_.prototype.map=function(O){return this.reduce(function(g,b){return g.push(O(b)),g},[])},_.prototype.reduce=function(O,g){for(var b,d=this.iterator();b=d();)g=O(g,b);return g},_}();p.default=E},function(c,p,f){var E=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var l in t)t.hasOwnProperty(l)&&(e[l]=t[l])};return function(e,t){o(e,t);function l(){this.constructor=e}e.prototype=t===null?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(17),O=f(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},b=100,d=function(o){E(e,o);function e(t){var l=o.call(this,t)||this;return l.scroll=l,l.observer=new MutationObserver(function(a){l.update(a)}),l.observer.observe(l.domNode,g),l.attach(),l}return e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,l){this.update(),t===0&&l===this.length()?this.children.forEach(function(a){a.remove()}):o.prototype.deleteAt.call(this,t,l)},e.prototype.formatAt=function(t,l,a,s){this.update(),o.prototype.formatAt.call(this,t,l,a,s)},e.prototype.insertAt=function(t,l,a){this.update(),o.prototype.insertAt.call(this,t,l,a)},e.prototype.optimize=function(t,l){var a=this;t===void 0&&(t=[]),l===void 0&&(l={}),o.prototype.optimize.call(this,l);for(var s=[].slice.call(this.observer.takeRecords());s.length>0;)t.push(s.pop());for(var r=function(v,S){S===void 0&&(S=!0),!(v==null||v===a)&&v.domNode.parentNode!=null&&(v.domNode[O.DATA_KEY].mutations==null&&(v.domNode[O.DATA_KEY].mutations=[]),S&&r(v.parent))},i=function(v){v.domNode[O.DATA_KEY]==null||v.domNode[O.DATA_KEY].mutations==null||(v instanceof _.default&&v.children.forEach(i),v.optimize(l))},h=t,n=0;h.length>0;n+=1){if(n>=b)throw new Error("[Parchment] Maximum optimize iterations reached");for(h.forEach(function(v){var S=O.find(v.target,!0);S!=null&&(S.domNode===v.target&&(v.type==="childList"?(r(O.find(v.previousSibling,!1)),[].forEach.call(v.addedNodes,function(T){var k=O.find(T,!1);r(k,!1),k instanceof _.default&&k.children.forEach(function(L){r(L,!1)})})):v.type==="attributes"&&r(S.prev)),r(S))}),this.children.forEach(i),h=[].slice.call(this.observer.takeRecords()),s=h.slice();s.length>0;)t.push(s.pop())}},e.prototype.update=function(t,l){var a=this;l===void 0&&(l={}),t=t||this.observer.takeRecords(),t.map(function(s){var r=O.find(s.target,!0);return r==null?null:r.domNode[O.DATA_KEY].mutations==null?(r.domNode[O.DATA_KEY].mutations=[s],r):(r.domNode[O.DATA_KEY].mutations.push(s),null)}).forEach(function(s){s==null||s===a||s.domNode[O.DATA_KEY]==null||s.update(s.domNode[O.DATA_KEY].mutations||[],l)}),this.domNode[O.DATA_KEY].mutations!=null&&o.prototype.update.call(this,this.domNode[O.DATA_KEY].mutations,l),this.optimize(t,l)},e.blotName="scroll",e.defaultChild="block",e.scope=O.Scope.BLOCK_BLOT,e.tagName="DIV",e}(_.default);p.default=d},function(c,p,f){var E=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])};return function(o,e){d(o,e);function t(){this.constructor=o}o.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(18),O=f(1);function g(d,o){if(Object.keys(d).length!==Object.keys(o).length)return!1;for(var e in d)if(d[e]!==o[e])return!1;return!0}var b=function(d){E(o,d);function o(){return d!==null&&d.apply(this,arguments)||this}return o.formats=function(e){if(e.tagName!==o.tagName)return d.formats.call(this,e)},o.prototype.format=function(e,t){var l=this;e===this.statics.blotName&&!t?(this.children.forEach(function(a){a instanceof _.default||(a=a.wrap(o.blotName,!0)),l.attributes.copy(a)}),this.unwrap()):d.prototype.format.call(this,e,t)},o.prototype.formatAt=function(e,t,l,a){if(this.formats()[l]!=null||O.query(l,O.Scope.ATTRIBUTE)){var s=this.isolate(e,t);s.format(l,a)}else d.prototype.formatAt.call(this,e,t,l,a)},o.prototype.optimize=function(e){d.prototype.optimize.call(this,e);var t=this.formats();if(Object.keys(t).length===0)return this.unwrap();var l=this.next;l instanceof o&&l.prev===this&&g(t,l.formats())&&(l.moveChildren(this),l.remove())},o.blotName="inline",o.scope=O.Scope.INLINE_BLOT,o.tagName="SPAN",o}(_.default);p.default=b},function(c,p,f){var E=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){b(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(18),O=f(1),g=function(b){E(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.formats=function(o){var e=O.query(d.blotName).tagName;if(o.tagName!==e)return b.formats.call(this,o)},d.prototype.format=function(o,e){O.query(o,O.Scope.BLOCK)!=null&&(o===this.statics.blotName&&!e?this.replaceWith(d.blotName):b.prototype.format.call(this,o,e))},d.prototype.formatAt=function(o,e,t,l){O.query(t,O.Scope.BLOCK)!=null?this.format(t,l):b.prototype.formatAt.call(this,o,e,t,l)},d.prototype.insertAt=function(o,e,t){if(t==null||O.query(e,O.Scope.INLINE)!=null)b.prototype.insertAt.call(this,o,e,t);else{var l=this.split(o),a=O.create(e,t);l.parent.insertBefore(a,l)}},d.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():b.prototype.update.call(this,o,e)},d.blotName="block",d.scope=O.Scope.BLOCK_BLOT,d.tagName="P",d}(_.default);p.default=g},function(c,p,f){var E=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var o in d)d.hasOwnProperty(o)&&(b[o]=d[o])};return function(b,d){g(b,d);function o(){this.constructor=b}b.prototype=d===null?Object.create(d):(o.prototype=d.prototype,new o)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(19),O=function(g){E(b,g);function b(){return g!==null&&g.apply(this,arguments)||this}return b.formats=function(d){},b.prototype.format=function(d,o){g.prototype.formatAt.call(this,0,this.length(),d,o)},b.prototype.formatAt=function(d,o,e,t){d===0&&o===this.length()?this.format(e,t):g.prototype.formatAt.call(this,d,o,e,t)},b.prototype.formats=function(){return this.statics.formats(this.domNode)},b}(_.default);p.default=O},function(c,p,f){var E=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,o){d.__proto__=o}||function(d,o){for(var e in o)o.hasOwnProperty(e)&&(d[e]=o[e])};return function(d,o){b(d,o);function e(){this.constructor=d}d.prototype=o===null?Object.create(o):(e.prototype=o.prototype,new e)}}();Object.defineProperty(p,"__esModule",{value:!0});var _=f(19),O=f(1),g=function(b){E(d,b);function d(o){var e=b.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return d.create=function(o){return document.createTextNode(o)},d.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},d.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},d.prototype.index=function(o,e){return this.domNode===o?e:-1},d.prototype.insertAt=function(o,e,t){t==null?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):b.prototype.insertAt.call(this,o,e,t)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(o){b.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(o,e){return[this.domNode,o]},d.prototype.split=function(o,e){if(e===void 0&&(e=!1),!e){if(o===0)return this;if(o===this.length())return this.next}var t=O.create(this.domNode.splitText(o));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},d.prototype.update=function(o,e){var t=this;o.some(function(l){return l.type==="characterData"&&l.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=O.Scope.INLINE_BLOT,d}(_.default);p.default=g},function(c,p,f){var E=document.createElement("div");if(E.classList.toggle("test-class",!1),E.classList.contains("test-class")){var _=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(O,g){return arguments.length>1&&!this.contains(O)==!g?g:_.call(this,O)}}String.prototype.startsWith||(String.prototype.startsWith=function(O,g){return g=g||0,this.substr(g,O.length)===O}),String.prototype.endsWith||(String.prototype.endsWith=function(O,g){var b=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>b.length)&&(g=b.length),g-=O.length;var d=b.indexOf(O,g);return d!==-1&&d===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 b=Object(this),d=b.length>>>0,o=arguments[1],e,t=0;t<d;t++)if(e=b[t],g.call(o,e,t,b))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(c,p){var f=-1,E=1,_=0;function O(n,v,S){if(n==v)return n?[[_,n]]:[];(S<0||n.length<S)&&(S=null);var T=o(n,v),k=n.substring(0,T);n=n.substring(T),v=v.substring(T),T=e(n,v);var L=n.substring(n.length-T);n=n.substring(0,n.length-T),v=v.substring(0,v.length-T);var A=g(n,v);return k&&A.unshift([_,k]),L&&A.push([_,L]),l(A),S!=null&&(A=r(A,S)),A=i(A),A}function g(n,v){var S;if(!n)return[[E,v]];if(!v)return[[f,n]];var T=n.length>v.length?n:v,k=n.length>v.length?v:n,L=T.indexOf(k);if(L!=-1)return S=[[E,T.substring(0,L)],[_,k],[E,T.substring(L+k.length)]],n.length>v.length&&(S[0][0]=S[2][0]=f),S;if(k.length==1)return[[f,n],[E,v]];var A=t(n,v);if(A){var y=A[0],w=A[1],N=A[2],q=A[3],D=A[4],z=O(y,N),K=O(w,q);return z.concat([[_,D]],K)}return b(n,v)}function b(n,v){for(var S=n.length,T=v.length,k=Math.ceil((S+T)/2),L=k,A=2*k,y=new Array(A),w=new Array(A),N=0;N<A;N++)y[N]=-1,w[N]=-1;y[L+1]=0,w[L+1]=0;for(var q=S-T,D=q%2!=0,z=0,K=0,ee=0,V=0,I=0;I<k;I++){for(var P=-I+z;P<=I-K;P+=2){var B=L+P,M;P==-I||P!=I&&y[B-1]<y[B+1]?M=y[B+1]:M=y[B-1]+1;for(var $=M-P;M<S&&$<T&&n.charAt(M)==v.charAt($);)M++,$++;if(y[B]=M,M>S)K+=2;else if($>T)z+=2;else if(D){var F=L+q-P;if(F>=0&&F<A&&w[F]!=-1){var j=S-w[F];if(M>=j)return d(n,v,M,$)}}}for(var U=-I+ee;U<=I-V;U+=2){var F=L+U,j;U==-I||U!=I&&w[F-1]<w[F+1]?j=w[F+1]:j=w[F-1]+1;for(var G=j-U;j<S&&G<T&&n.charAt(S-j-1)==v.charAt(T-G-1);)j++,G++;if(w[F]=j,j>S)V+=2;else if(G>T)ee+=2;else if(!D){var B=L+q-U;if(B>=0&&B<A&&y[B]!=-1){var M=y[B],$=L+M-B;if(j=S-j,M>=j)return d(n,v,M,$)}}}}return[[f,n],[E,v]]}function d(n,v,S,T){var k=n.substring(0,S),L=v.substring(0,T),A=n.substring(S),y=v.substring(T),w=O(k,L),N=O(A,y);return w.concat(N)}function o(n,v){if(!n||!v||n.charAt(0)!=v.charAt(0))return 0;for(var S=0,T=Math.min(n.length,v.length),k=T,L=0;S<k;)n.substring(L,k)==v.substring(L,k)?(S=k,L=S):T=k,k=Math.floor((T-S)/2+S);return k}function e(n,v){if(!n||!v||n.charAt(n.length-1)!=v.charAt(v.length-1))return 0;for(var S=0,T=Math.min(n.length,v.length),k=T,L=0;S<k;)n.substring(n.length-k,n.length-L)==v.substring(v.length-k,v.length-L)?(S=k,L=S):T=k,k=Math.floor((T-S)/2+S);return k}function t(n,v){var S=n.length>v.length?n:v,T=n.length>v.length?v:n;if(S.length<4||T.length*2<S.length)return null;function k(K,ee,V){for(var I=K.substring(V,V+Math.floor(K.length/4)),P=-1,B="",M,$,F,j;(P=ee.indexOf(I,P+1))!=-1;){var U=o(K.substring(V),ee.substring(P)),G=e(K.substring(0,V),ee.substring(0,P));B.length<G+U&&(B=ee.substring(P-G,P)+ee.substring(P,P+U),M=K.substring(0,V-G),$=K.substring(V+U),F=ee.substring(0,P-G),j=ee.substring(P+U))}return B.length*2>=K.length?[M,$,F,j,B]:null}var L=k(S,T,Math.ceil(S.length/4)),A=k(S,T,Math.ceil(S.length/2)),y;if(!L&&!A)return null;A?L?y=L[4].length>A[4].length?L:A:y=A:y=L;var w,N,q,D;n.length>v.length?(w=y[0],N=y[1],q=y[2],D=y[3]):(q=y[0],D=y[1],w=y[2],N=y[3]);var z=y[4];return[w,N,q,D,z]}function l(n){n.push([_,""]);for(var v=0,S=0,T=0,k="",L="",A;v<n.length;)switch(n[v][0]){case E:T++,L+=n[v][1],v++;break;case f:S++,k+=n[v][1],v++;break;case _:S+T>1?(S!==0&&T!==0&&(A=o(L,k),A!==0&&(v-S-T>0&&n[v-S-T-1][0]==_?n[v-S-T-1][1]+=L.substring(0,A):(n.splice(0,0,[_,L.substring(0,A)]),v++),L=L.substring(A),k=k.substring(A)),A=e(L,k),A!==0&&(n[v][1]=L.substring(L.length-A)+n[v][1],L=L.substring(0,L.length-A),k=k.substring(0,k.length-A))),S===0?n.splice(v-T,S+T,[E,L]):T===0?n.splice(v-S,S+T,[f,k]):n.splice(v-S-T,S+T,[f,k],[E,L]),v=v-S-T+(S?1:0)+(T?1:0)+1):v!==0&&n[v-1][0]==_?(n[v-1][1]+=n[v][1],n.splice(v,1)):v++,T=0,S=0,k="",L="";break}n[n.length-1][1]===""&&n.pop();var y=!1;for(v=1;v<n.length-1;)n[v-1][0]==_&&n[v+1][0]==_&&(n[v][1].substring(n[v][1].length-n[v-1][1].length)==n[v-1][1]?(n[v][1]=n[v-1][1]+n[v][1].substring(0,n[v][1].length-n[v-1][1].length),n[v+1][1]=n[v-1][1]+n[v+1][1],n.splice(v-1,1),y=!0):n[v][1].substring(0,n[v+1][1].length)==n[v+1][1]&&(n[v-1][1]+=n[v+1][1],n[v][1]=n[v][1].substring(n[v+1][1].length)+n[v+1][1],n.splice(v+1,1),y=!0)),v++;y&&l(n)}var a=O;a.INSERT=E,a.DELETE=f,a.EQUAL=_,c.exports=a;function s(n,v){if(v===0)return[_,n];for(var S=0,T=0;T<n.length;T++){var k=n[T];if(k[0]===f||k[0]===_){var L=S+k[1].length;if(v===L)return[T+1,n];if(v<L){n=n.slice();var A=v-S,y=[k[0],k[1].slice(0,A)],w=[k[0],k[1].slice(A)];return n.splice(T,1,y,w),[T+1,n]}else S=L}}throw new Error("cursor_pos is out of bounds!")}function r(n,v){var S=s(n,v),T=S[1],k=S[0],L=T[k],A=T[k+1];if(L==null)return n;if(L[0]!==_)return n;if(A!=null&&L[1]+A[1]===A[1]+L[1])return T.splice(k,2,A,L),h(T,k,2);if(A!=null&&A[1].indexOf(L[1])===0){T.splice(k,2,[A[0],L[1]],[0,L[1]]);var y=A[1].slice(L[1].length);return y.length>0&&T.splice(k+2,0,[A[0],y]),h(T,k,3)}else return n}function i(n){for(var v=!1,S=function(A){return A.charCodeAt(0)>=56320&&A.charCodeAt(0)<=57343},T=function(A){return A.charCodeAt(A.length-1)>=55296&&A.charCodeAt(A.length-1)<=56319},k=2;k<n.length;k+=1)n[k-2][0]===_&&T(n[k-2][1])&&n[k-1][0]===f&&S(n[k-1][1])&&n[k][0]===E&&S(n[k][1])&&(v=!0,n[k-1][1]=n[k-2][1].slice(-1)+n[k-1][1],n[k][1]=n[k-2][1].slice(-1)+n[k][1],n[k-2][1]=n[k-2][1].slice(0,-1));if(!v)return n;for(var L=[],k=0;k<n.length;k+=1)n[k][1].length>0&&L.push(n[k]);return L}function h(n,v,S){for(var T=v+S-1;T>=0&&T>=v-1;T--)if(T+1<n.length){var k=n[T],L=n[T+1];k[0]===L[1]&&n.splice(T,2,[k[0],k[1]+L[1]])}return n}},function(c,p){p=c.exports=typeof Object.keys=="function"?Object.keys:f,p.shim=f;function f(E){var _=[];for(var O in E)_.push(O);return _}},function(c,p){var f=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";p=c.exports=f?E:_,p.supported=E;function E(O){return Object.prototype.toString.call(O)=="[object Arguments]"}p.unsupported=_;function _(O){return O&&typeof O=="object"&&typeof O.length=="number"&&Object.prototype.hasOwnProperty.call(O,"callee")&&!Object.prototype.propertyIsEnumerable.call(O,"callee")||!1}},function(c,p){var f=Object.prototype.hasOwnProperty,E="~";function _(){}Object.create&&(_.prototype=Object.create(null),new _().__proto__||(E=!1));function O(b,d,o){this.fn=b,this.context=d,this.once=o||!1}function g(){this._events=new _,this._eventsCount=0}g.prototype.eventNames=function(){var d=[],o,e;if(this._eventsCount===0)return d;for(e in o=this._events)f.call(o,e)&&d.push(E?e.slice(1):e);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(o)):d},g.prototype.listeners=function(d,o){var e=E?E+d:d,t=this._events[e];if(o)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var l=0,a=t.length,s=new Array(a);l<a;l++)s[l]=t[l].fn;return s},g.prototype.emit=function(d,o,e,t,l,a){var s=E?E+d:d;if(!this._events[s])return!1;var r=this._events[s],i=arguments.length,h,n;if(r.fn){switch(r.once&&this.removeListener(d,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,e),!0;case 4:return r.fn.call(r.context,o,e,t),!0;case 5:return r.fn.call(r.context,o,e,t,l),!0;case 6:return r.fn.call(r.context,o,e,t,l,a),!0}for(n=1,h=new Array(i-1);n<i;n++)h[n-1]=arguments[n];r.fn.apply(r.context,h)}else{var v=r.length,S;for(n=0;n<v;n++)switch(r[n].once&&this.removeListener(d,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,e);break;case 4:r[n].fn.call(r[n].context,o,e,t);break;default:if(!h)for(S=1,h=new Array(i-1);S<i;S++)h[S-1]=arguments[S];r[n].fn.apply(r[n].context,h)}}return!0},g.prototype.on=function(d,o,e){var t=new O(o,e||this),l=E?E+d:d;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],t]:this._events[l].push(t):(this._events[l]=t,this._eventsCount++),this},g.prototype.once=function(d,o,e){var t=new O(o,e||this,!0),l=E?E+d:d;return this._events[l]?this._events[l].fn?this._events[l]=[this._events[l],t]:this._events[l].push(t):(this._events[l]=t,this._eventsCount++),this},g.prototype.removeListener=function(d,o,e,t){var l=E?E+d:d;if(!this._events[l])return this;if(!o)return--this._eventsCount===0?this._events=new _:delete this._events[l],this;var a=this._events[l];if(a.fn)a.fn===o&&(!t||a.once)&&(!e||a.context===e)&&(--this._eventsCount===0?this._events=new _:delete this._events[l]);else{for(var s=0,r=[],i=a.length;s<i;s++)(a[s].fn!==o||t&&!a[s].once||e&&a[s].context!==e)&&r.push(a[s]);r.length?this._events[l]=r.length===1?r[0]:r:--this._eventsCount===0?this._events=new _:delete this._events[l]}return this},g.prototype.removeAllListeners=function(d){var o;return d?(o=E?E+d:d,this._events[o]&&(--this._eventsCount===0?this._events=new _:delete this._events[o])):(this._events=new _,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=E,g.EventEmitter=g,typeof c<"u"&&(c.exports=g)},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.matchText=p.matchSpacing=p.matchNewline=p.matchBlot=p.matchAttributor=p.default=void 0;var E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},_=function(){function Y(X,te){var ne=[],J=!0,fe=!1,le=void 0;try{for(var ue=X[Symbol.iterator](),Se;!(J=(Se=ue.next()).done)&&(ne.push(Se.value),!(te&&ne.length===te));J=!0);}catch(we){fe=!0,le=we}finally{try{!J&&ue.return&&ue.return()}finally{if(fe)throw le}}return ne}return function(X,te){if(Array.isArray(X))return X;if(Symbol.iterator in Object(X))return Y(X,te);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O=function(){function Y(X,te){for(var ne=0;ne<te.length;ne++){var J=te[ne];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(X,J.key,J)}}return function(X,te,ne){return te&&Y(X.prototype,te),ne&&Y(X,ne),X}}(),g=f(3),b=w(g),d=f(2),o=w(d),e=f(0),t=w(e),l=f(5),a=w(l),s=f(10),r=w(s),i=f(9),h=w(i),n=f(36),v=f(37),S=f(13),T=w(S),k=f(26),L=f(38),A=f(39),y=f(40);function w(Y){return Y&&Y.__esModule?Y:{default:Y}}function N(Y,X,te){return X in Y?Object.defineProperty(Y,X,{value:te,enumerable:!0,configurable:!0,writable:!0}):Y[X]=te,Y}function q(Y,X){if(!(Y instanceof X))throw new TypeError("Cannot call a class as a function")}function D(Y,X){if(!Y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:Y}function z(Y,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);Y.prototype=Object.create(X&&X.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(Y,X):Y.__proto__=X)}var K=(0,r.default)("quill:clipboard"),ee="__ql-matcher",V=[[Node.TEXT_NODE,me],[Node.TEXT_NODE,ce],["br",re],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,Q],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,be],["li",ae],["b",G.bind(G,"bold")],["i",G.bind(G,"italic")],["style",oe]],I=[n.AlignAttribute,L.DirectionAttribute].reduce(function(Y,X){return Y[X.keyName]=X,Y},{}),P=[n.AlignStyle,v.BackgroundStyle,k.ColorStyle,L.DirectionStyle,A.FontStyle,y.SizeStyle].reduce(function(Y,X){return Y[X.keyName]=X,Y},{}),B=function(Y){z(X,Y);function X(te,ne){q(this,X);var J=D(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,te,ne));return J.quill.root.addEventListener("paste",J.onPaste.bind(J)),J.container=J.quill.addContainer("ql-clipboard"),J.container.setAttribute("contenteditable",!0),J.container.setAttribute("tabindex",-1),J.matchers=[],V.concat(J.options.matchers).forEach(function(fe){var le=_(fe,2),ue=le[0],Se=le[1];!ne.matchVisual&&Se===de||J.addMatcher(ue,Se)}),J}return O(X,[{key:"addMatcher",value:function(ne,J){this.matchers.push([ne,J])}},{key:"convert",value:function(ne){if(typeof ne=="string")return this.container.innerHTML=ne.replace(/\>\r?\n +\</g,"><"),this.convert();var J=this.quill.getFormat(this.quill.selection.savedRange.index);if(J[T.default.blotName]){var fe=this.container.innerText;return this.container.innerHTML="",new o.default().insert(fe,N({},T.default.blotName,J[T.default.blotName]))}var le=this.prepareMatching(),ue=_(le,2),Se=ue[0],we=ue[1],ye=U(this.container,Se,we);return F(ye,`
|
|
33
|
-
`)&&ye.ops[ye.ops.length-1].attributes==null&&(ye=ye.compose(new o.default().retain(ye.length()-1).delete(1))),K.log("convert",this.container.innerHTML,ye),this.container.innerHTML="",ye}},{key:"dangerouslyPasteHTML",value:function(ne,J){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.default.sources.API;if(typeof ne=="string")this.quill.setContents(this.convert(ne),J),this.quill.setSelection(0,a.default.sources.SILENT);else{var le=this.convert(J);this.quill.updateContents(new o.default().retain(ne).concat(le),fe),this.quill.setSelection(ne+le.length(),a.default.sources.SILENT)}}},{key:"onPaste",value:function(ne){var J=this;if(!(ne.defaultPrevented||!this.quill.isEnabled())){var fe=this.quill.getSelection(),le=new o.default().retain(fe.index),ue=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(a.default.sources.SILENT),setTimeout(function(){le=le.concat(J.convert()).delete(fe.length),J.quill.updateContents(le,a.default.sources.USER),J.quill.setSelection(le.length()-fe.length,a.default.sources.SILENT),J.quill.scrollingContainer.scrollTop=ue,J.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ne=this,J=[],fe=[];return this.matchers.forEach(function(le){var ue=_(le,2),Se=ue[0],we=ue[1];switch(Se){case Node.TEXT_NODE:fe.push(we);break;case Node.ELEMENT_NODE:J.push(we);break;default:[].forEach.call(ne.container.querySelectorAll(Se),function(ye){ye[ee]=ye[ee]||[],ye[ee].push(we)});break}}),[J,fe]}}]),X}(h.default);B.DEFAULTS={matchers:[],matchVisual:!0};function M(Y,X,te){return(typeof X>"u"?"undefined":E(X))==="object"?Object.keys(X).reduce(function(ne,J){return M(ne,J,X[J])},Y):Y.reduce(function(ne,J){return J.attributes&&J.attributes[X]?ne.push(J):ne.insert(J.insert,(0,b.default)({},N({},X,te),J.attributes))},new o.default)}function $(Y){if(Y.nodeType!==Node.ELEMENT_NODE)return{};var X="__ql-computed-style";return Y[X]||(Y[X]=window.getComputedStyle(Y))}function F(Y,X){for(var te="",ne=Y.ops.length-1;ne>=0&&te.length<X.length;--ne){var J=Y.ops[ne];if(typeof J.insert!="string")break;te=J.insert+te}return te.slice(-1*X.length)===X}function j(Y){if(Y.childNodes.length===0)return!1;var X=$(Y);return["block","list-item"].indexOf(X.display)>-1}function U(Y,X,te){return Y.nodeType===Y.TEXT_NODE?te.reduce(function(ne,J){return J(Y,ne)},new o.default):Y.nodeType===Y.ELEMENT_NODE?[].reduce.call(Y.childNodes||[],function(ne,J){var fe=U(J,X,te);return J.nodeType===Y.ELEMENT_NODE&&(fe=X.reduce(function(le,ue){return ue(J,le)},fe),fe=(J[ee]||[]).reduce(function(le,ue){return ue(J,le)},fe)),ne.concat(fe)},new o.default):new o.default}function G(Y,X,te){return M(te,Y,!0)}function Z(Y,X){var te=t.default.Attributor.Attribute.keys(Y),ne=t.default.Attributor.Class.keys(Y),J=t.default.Attributor.Style.keys(Y),fe={};return te.concat(ne).concat(J).forEach(function(le){var ue=t.default.query(le,t.default.Scope.ATTRIBUTE);ue!=null&&(fe[ue.attrName]=ue.value(Y),fe[ue.attrName])||(ue=I[le],ue!=null&&(ue.attrName===le||ue.keyName===le)&&(fe[ue.attrName]=ue.value(Y)||void 0),ue=P[le],ue!=null&&(ue.attrName===le||ue.keyName===le)&&(ue=P[le],fe[ue.attrName]=ue.value(Y)||void 0))}),Object.keys(fe).length>0&&(X=M(X,fe)),X}function Q(Y,X){var te=t.default.query(Y);if(te==null)return X;if(te.prototype instanceof t.default.Embed){var ne={},J=te.value(Y);J!=null&&(ne[te.blotName]=J,X=new o.default().insert(ne,te.formats(Y)))}else typeof te.formats=="function"&&(X=M(X,te.blotName,te.formats(Y)));return X}function re(Y,X){return F(X,`
|
|
34
|
-
`)||X.insert(`
|
|
35
|
-
`),X}function oe(){return new o.default}function ae(Y,X){var te=t.default.query(Y);if(te==null||te.blotName!=="list-item"||!F(X,`
|
|
36
|
-
`))return X;for(var ne=-1,J=Y.parentNode;!J.classList.contains("ql-clipboard");)(t.default.query(J)||{}).blotName==="list"&&(ne+=1),J=J.parentNode;return ne<=0?X:X.compose(new o.default().retain(X.length()-1).retain(1,{indent:ne}))}function ce(Y,X){return F(X,`
|
|
37
|
-
`)||(j(Y)||X.length()>0&&Y.nextSibling&&j(Y.nextSibling))&&X.insert(`
|
|
38
|
-
`),X}function de(Y,X){if(j(Y)&&Y.nextElementSibling!=null&&!F(X,`
|
|
39
|
-
|
|
40
|
-
`)){var te=Y.offsetHeight+parseFloat($(Y).marginTop)+parseFloat($(Y).marginBottom);Y.nextElementSibling.offsetTop>Y.offsetTop+te*1.5&&X.insert(`
|
|
41
|
-
`)}return X}function be(Y,X){var te={},ne=Y.style||{};return ne.fontStyle&&$(Y).fontStyle==="italic"&&(te.italic=!0),ne.fontWeight&&($(Y).fontWeight.startsWith("bold")||parseInt($(Y).fontWeight)>=700)&&(te.bold=!0),Object.keys(te).length>0&&(X=M(X,te)),parseFloat(ne.textIndent||0)>0&&(X=new o.default().insert(" ").concat(X)),X}function me(Y,X){var te=Y.data;if(Y.parentNode.tagName==="O:P")return X.insert(te.trim());if(te.trim().length===0&&Y.parentNode.classList.contains("ql-clipboard"))return X;if(!$(Y.parentNode).whiteSpace.startsWith("pre")){var ne=function(fe,le){return le=le.replace(/[^\u00a0]/g,""),le.length<1&&fe?" ":le};te=te.replace(/\r\n/g," ").replace(/\n/g," "),te=te.replace(/\s\s+/g,ne.bind(ne,!0)),(Y.previousSibling==null&&j(Y.parentNode)||Y.previousSibling!=null&&j(Y.previousSibling))&&(te=te.replace(/^\s+/,ne.bind(ne,!1))),(Y.nextSibling==null&&j(Y.parentNode)||Y.nextSibling!=null&&j(Y.nextSibling))&&(te=te.replace(/\s+$/,ne.bind(ne,!1)))}return X.insert(te)}p.default=B,p.matchAttributor=Z,p.matchBlot=Q,p.matchNewline=ce,p.matchSpacing=de,p.matchText=me},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function l(a,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,s,r){return s&&l(a.prototype,s),r&&l(a,r),a}}(),_=function l(a,s,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,s);if(i===void 0){var h=Object.getPrototypeOf(a);return h===null?void 0:l(h,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=f(6),g=b(O);function b(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return E(a,[{key:"optimize",value:function(r){_(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return _(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),a}(g.default);t.blotName="bold",t.tagName=["STRONG","B"],p.default=t},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.addControls=p.default=void 0;var E=function(){function y(w,N){var q=[],D=!0,z=!1,K=void 0;try{for(var ee=w[Symbol.iterator](),V;!(D=(V=ee.next()).done)&&(q.push(V.value),!(N&&q.length===N));D=!0);}catch(I){z=!0,K=I}finally{try{!D&&ee.return&&ee.return()}finally{if(z)throw K}}return q}return function(w,N){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return y(w,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function(){function y(w,N){for(var q=0;q<N.length;q++){var D=N[q];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(w,D.key,D)}}return function(w,N,q){return N&&y(w.prototype,N),q&&y(w,q),w}}(),O=f(2),g=r(O),b=f(0),d=r(b),o=f(5),e=r(o),t=f(10),l=r(t),a=f(9),s=r(a);function r(y){return y&&y.__esModule?y:{default:y}}function i(y,w,N){return w in y?Object.defineProperty(y,w,{value:N,enumerable:!0,configurable:!0,writable:!0}):y[w]=N,y}function h(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function n(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function v(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var S=(0,l.default)("quill:toolbar"),T=function(y){v(w,y);function w(N,q){h(this,w);var D=n(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,N,q));if(Array.isArray(D.options.container)){var z=document.createElement("div");L(z,D.options.container),N.container.parentNode.insertBefore(z,N.container),D.container=z}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var K;return K=S.error("Container required for toolbar",D.options),n(D,K)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(ee){D.addHandler(ee,D.options.handlers[ee])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(ee){D.attach(ee)}),D.quill.on(e.default.events.EDITOR_CHANGE,function(ee,V){ee===e.default.events.SELECTION_CHANGE&&D.update(V)}),D.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var ee=D.quill.selection.getRange(),V=E(ee,1),I=V[0];D.update(I)}),D}return _(w,[{key:"addHandler",value:function(q,D){this.handlers[q]=D}},{key:"attach",value:function(q){var D=this,z=[].find.call(q.classList,function(ee){return ee.indexOf("ql-")===0});if(z){if(z=z.slice(3),q.tagName==="BUTTON"&&q.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){S.warn("ignoring attaching to disabled format",z,q);return}if(d.default.query(z)==null){S.warn("ignoring attaching to nonexistent format",z,q);return}}var K=q.tagName==="SELECT"?"change":"click";q.addEventListener(K,function(ee){var V=void 0;if(q.tagName==="SELECT"){if(q.selectedIndex<0)return;var I=q.options[q.selectedIndex];I.hasAttribute("selected")?V=!1:V=I.value||!1}else q.classList.contains("ql-active")?V=!1:V=q.value||!q.hasAttribute("value"),ee.preventDefault();D.quill.focus();var P=D.quill.selection.getRange(),B=E(P,1),M=B[0];if(D.handlers[z]!=null)D.handlers[z].call(D,V);else if(d.default.query(z).prototype instanceof d.default.Embed){if(V=prompt("Enter "+z),!V)return;D.quill.updateContents(new g.default().retain(M.index).delete(M.length).insert(i({},z,V)),e.default.sources.USER)}else D.quill.format(z,V,e.default.sources.USER);D.update(M)}),this.controls.push([z,q])}}},{key:"update",value:function(q){var D=q==null?{}:this.quill.getFormat(q);this.controls.forEach(function(z){var K=E(z,2),ee=K[0],V=K[1];if(V.tagName==="SELECT"){var I=void 0;if(q==null)I=null;else if(D[ee]==null)I=V.querySelector("option[selected]");else if(!Array.isArray(D[ee])){var P=D[ee];typeof P=="string"&&(P=P.replace(/\"/g,'\\"')),I=V.querySelector('option[value="'+P+'"]')}I==null?(V.value="",V.selectedIndex=-1):I.selected=!0}else if(q==null)V.classList.remove("ql-active");else if(V.hasAttribute("value")){var B=D[ee]===V.getAttribute("value")||D[ee]!=null&&D[ee].toString()===V.getAttribute("value")||D[ee]==null&&!V.getAttribute("value");V.classList.toggle("ql-active",B)}else V.classList.toggle("ql-active",D[ee]!=null)})}}]),w}(s.default);T.DEFAULTS={};function k(y,w,N){var q=document.createElement("button");q.setAttribute("type","button"),q.classList.add("ql-"+w),N!=null&&(q.value=N),y.appendChild(q)}function L(y,w){Array.isArray(w[0])||(w=[w]),w.forEach(function(N){var q=document.createElement("span");q.classList.add("ql-formats"),N.forEach(function(D){if(typeof D=="string")k(q,D);else{var z=Object.keys(D)[0],K=D[z];Array.isArray(K)?A(q,z,K):k(q,z,K)}}),y.appendChild(q)})}function A(y,w,N){var q=document.createElement("select");q.classList.add("ql-"+w),N.forEach(function(D){var z=document.createElement("option");D!==!1?z.setAttribute("value",D):z.setAttribute("selected","selected"),q.appendChild(z)}),y.appendChild(q)}T.DEFAULTS={container:null,handlers:{clean:function(){var w=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var q=this.quill.getFormat();Object.keys(q).forEach(function(D){d.default.query(D,d.default.Scope.INLINE)!=null&&w.quill.format(D,!1)})}else this.quill.removeFormat(N,e.default.sources.USER)},direction:function(w){var N=this.quill.getFormat().align;w==="rtl"&&N==null?this.quill.format("align","right",e.default.sources.USER):!w&&N==="right"&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",w,e.default.sources.USER)},indent:function(w){var N=this.quill.getSelection(),q=this.quill.getFormat(N),D=parseInt(q.indent||0);if(w==="+1"||w==="-1"){var z=w==="+1"?1:-1;q.direction==="rtl"&&(z*=-1),this.quill.format("indent",D+z,e.default.sources.USER)}},link:function(w){w===!0&&(w=prompt("Enter link URL:")),this.quill.format("link",w,e.default.sources.USER)},list:function(w){var N=this.quill.getSelection(),q=this.quill.getFormat(N);w==="check"?q.list==="checked"||q.list==="unchecked"?this.quill.format("list",!1,e.default.sources.USER):this.quill.format("list","unchecked",e.default.sources.USER):this.quill.format("list",w,e.default.sources.USER)}}},p.default=T,p.addControls=L},function(c,p){c.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function l(a,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,s,r){return s&&l(a.prototype,s),r&&l(a,r),a}}(),_=function l(a,s,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,s);if(i===void 0){var h=Object.getPrototypeOf(a);return h===null?void 0:l(h,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=f(28),g=b(O);function b(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(s,r){d(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(h){h.classList.add("ql-primary")}),i}return E(a,[{key:"buildItem",value:function(r){var i=_(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){_(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i);var h=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";h&&(h.tagName==="line"?h.style.stroke=n:h.style.fill=n)}}]),a}(g.default);p.default=t},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function l(a,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,s,r){return s&&l(a.prototype,s),r&&l(a,r),a}}(),_=function l(a,s,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,s);if(i===void 0){var h=Object.getPrototypeOf(a);return h===null?void 0:l(h,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=f(28),g=b(O);function b(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(s,r){d(this,a);var i=o(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,s));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(h){h.innerHTML=r[h.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return E(a,[{key:"selectItem",value:function(r,i){_(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,r,i),r=r||this.defaultItem,this.label.innerHTML=r.innerHTML}}]),a}(g.default);p.default=t},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function g(b,d){for(var o=0;o<d.length;o++){var e=d[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(b,e.key,e)}}return function(b,d,o){return d&&g(b.prototype,d),o&&g(b,o),b}}();function _(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}var O=function(){function g(b,d){var o=this;_(this,g),this.quill=b,this.boundsContainer=d||document.body,this.root=b.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return E(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var o=d.left+d.width/2-this.root.offsetWidth/2,e=d.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect(),a=0;if(l.right>t.right&&(a=t.right-l.right,this.root.style.left=o+a+"px"),l.left<t.left&&(a=t.left-l.left,this.root.style.left=o+a+"px"),l.bottom>t.bottom){var s=l.bottom-l.top,r=d.bottom-d.top+s;this.root.style.top=e-r+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g}();p.default=O},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function A(y,w){var N=[],q=!0,D=!1,z=void 0;try{for(var K=y[Symbol.iterator](),ee;!(q=(ee=K.next()).done)&&(N.push(ee.value),!(w&&N.length===w));q=!0);}catch(V){D=!0,z=V}finally{try{!q&&K.return&&K.return()}finally{if(D)throw z}}return N}return function(y,w){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return A(y,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_=function A(y,w,N){y===null&&(y=Function.prototype);var q=Object.getOwnPropertyDescriptor(y,w);if(q===void 0){var D=Object.getPrototypeOf(y);return D===null?void 0:A(D,w,N)}else{if("value"in q)return q.value;var z=q.get;return z===void 0?void 0:z.call(N)}},O=function(){function A(y,w){for(var N=0;N<w.length;N++){var q=w[N];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(y,q.key,q)}}return function(y,w,N){return w&&A(y.prototype,w),N&&A(y,N),y}}(),g=f(3),b=h(g),d=f(8),o=h(d),e=f(43),t=h(e),l=f(27),a=h(l),s=f(15),r=f(41),i=h(r);function h(A){return A&&A.__esModule?A:{default:A}}function n(A,y){if(!(A instanceof y))throw new TypeError("Cannot call a class as a function")}function v(A,y){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:A}function S(A,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);A.prototype=Object.create(y&&y.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(A,y):A.__proto__=y)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=function(A){S(y,A);function y(w,N){n(this,y),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=T);var q=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w,N));return q.quill.container.classList.add("ql-snow"),q}return O(y,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),i.default),this.tooltip=new L(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(q,D){N.handlers.link.call(N,!D.format.link)})}}]),y}(t.default);k.DEFAULTS=(0,b.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(y){if(y){var w=this.quill.getSelection();if(w==null||w.length==0)return;var N=this.quill.getText(w);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var q=this.quill.theme.tooltip;q.edit("link",N)}else this.quill.format("link",!1)}}}}});var L=function(A){S(y,A);function y(w,N){n(this,y);var q=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w,N));return q.preview=q.root.querySelector("a.ql-preview"),q}return O(y,[{key:"listen",value:function(){var N=this;_(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(q){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),q.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(q){if(N.linkRange!=null){var D=N.linkRange;N.restoreFocus(),N.quill.formatText(D,"link",!1,o.default.sources.USER),delete N.linkRange}q.preventDefault(),N.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(q,D,z){if(q!=null){if(q.length===0&&z===o.default.sources.USER){var K=N.quill.scroll.descendant(a.default,q.index),ee=E(K,2),V=ee[0],I=ee[1];if(V!=null){N.linkRange=new s.Range(q.index-I,V.length());var P=a.default.formats(V.domNode);N.preview.textContent=P,N.preview.setAttribute("href",P),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){_(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),y}(e.BaseTooltip);L.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(""),p.default=k},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(29),_=J(E),O=f(36),g=f(38),b=f(64),d=f(65),o=J(d),e=f(66),t=J(e),l=f(67),a=J(l),s=f(37),r=f(26),i=f(39),h=f(40),n=f(56),v=J(n),S=f(68),T=J(S),k=f(27),L=J(k),A=f(69),y=J(A),w=f(70),N=J(w),q=f(71),D=J(q),z=f(72),K=J(z),ee=f(73),V=J(ee),I=f(13),P=J(I),B=f(74),M=J(B),$=f(75),F=J($),j=f(57),U=J(j),G=f(41),Z=J(G),Q=f(28),re=J(Q),oe=f(59),ae=J(oe),ce=f(60),de=J(ce),be=f(61),me=J(be),Y=f(108),X=J(Y),te=f(62),ne=J(te);function J(fe){return fe&&fe.__esModule?fe:{default:fe}}_.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":O.AlignClass,"attributors/class/background":s.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":O.AlignStyle,"attributors/style/background":s.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":h.SizeStyle},!0),_.default.register({"formats/align":O.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":b.IndentClass,"formats/background":s.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":h.SizeClass,"formats/blockquote":o.default,"formats/code-block":P.default,"formats/header":t.default,"formats/list":a.default,"formats/bold":v.default,"formats/code":I.Code,"formats/italic":T.default,"formats/link":L.default,"formats/script":y.default,"formats/strike":N.default,"formats/underline":D.default,"formats/image":K.default,"formats/video":V.default,"formats/list/item":l.ListItem,"modules/formula":M.default,"modules/syntax":F.default,"modules/toolbar":U.default,"themes/bubble":X.default,"themes/snow":ne.default,"ui/icons":Z.default,"ui/picker":re.default,"ui/icon-picker":de.default,"ui/color-picker":ae.default,"ui/tooltip":me.default},!0),p.default=_.default},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.IndentClass=void 0;var E=function(){function a(s,r){for(var i=0;i<r.length;i++){var h=r[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(s,h.key,h)}}return function(s,r,i){return r&&a(s.prototype,r),i&&a(s,i),s}}(),_=function a(s,r,i){s===null&&(s=Function.prototype);var h=Object.getOwnPropertyDescriptor(s,r);if(h===void 0){var n=Object.getPrototypeOf(s);return n===null?void 0:a(n,r,i)}else{if("value"in h)return h.value;var v=h.get;return v===void 0?void 0:v.call(i)}},O=f(0),g=b(O);function b(a){return a&&a.__esModule?a:{default:a}}function d(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function o(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function e(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var t=function(a){e(s,a);function s(){return d(this,s),o(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return E(s,[{key:"add",value:function(i,h){if(h==="+1"||h==="-1"){var n=this.value(i)||0;h=h==="+1"?n+1:n-1}return h===0?(this.remove(i),!0):_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"add",this).call(this,i,h)}},{key:"canAdd",value:function(i,h){return _(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,i,h)||_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,i,parseInt(h))}},{key:"value",value:function(i){return parseInt(_(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"value",this).call(this,i))||void 0}}]),s}(g.default.Attributor.Class),l=new t("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});p.IndentClass=l},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(4),_=O(E);function O(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 b(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 d(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 o=function(e){d(t,e);function t(){return g(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);o.blotName="blockquote",o.tagName="blockquote",p.default=o},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function t(l,a){for(var s=0;s<a.length;s++){var r=a[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(l,r.key,r)}}return function(l,a,s){return a&&t(l.prototype,a),s&&t(l,s),l}}(),_=f(4),O=g(_);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,l){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}function d(t,l){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:t}function o(t,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);t.prototype=Object.create(l&&l.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(t,l):t.__proto__=l)}var e=function(t){o(l,t);function l(){return b(this,l),d(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return E(l,null,[{key:"formats",value:function(s){return this.tagName.indexOf(s.tagName)+1}}]),l}(O.default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],p.default=e},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.ListItem=void 0;var E=function(){function n(v,S){for(var T=0;T<S.length;T++){var k=S[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(v,k.key,k)}}return function(v,S,T){return S&&n(v.prototype,S),T&&n(v,T),v}}(),_=function n(v,S,T){v===null&&(v=Function.prototype);var k=Object.getOwnPropertyDescriptor(v,S);if(k===void 0){var L=Object.getPrototypeOf(v);return L===null?void 0:n(L,S,T)}else{if("value"in k)return k.value;var A=k.get;return A===void 0?void 0:A.call(T)}},O=f(0),g=t(O),b=f(4),d=t(b),o=f(25),e=t(o);function t(n){return n&&n.__esModule?n:{default:n}}function l(n,v,S){return v in n?Object.defineProperty(n,v,{value:S,enumerable:!0,configurable:!0,writable:!0}):n[v]=S,n}function a(n,v){if(!(n instanceof v))throw new TypeError("Cannot call a class as a function")}function s(n,v){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:n}function r(n,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);n.prototype=Object.create(v&&v.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(n,v):n.__proto__=v)}var i=function(n){r(v,n);function v(){return a(this,v),s(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return E(v,[{key:"format",value:function(T,k){T===h.blotName&&!k?this.replaceWith(g.default.create(this.statics.scope)):_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,T,k)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,k){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,k),this):(this.parent.unwrap(),_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"replaceWith",this).call(this,T,k))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:_(v.__proto__||Object.getPrototypeOf(v),"formats",this).call(this,T)}}]),v}(d.default);i.blotName="list-item",i.tagName="LI";var h=function(n){r(v,n),E(v,null,[{key:"create",value:function(T){var k=T==="ordered"?"OL":"UL",L=_(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,k);return(T==="checked"||T==="unchecked")&&L.setAttribute("data-checked",T==="checked"),L}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function v(S){a(this,v);var T=s(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,S)),k=function(A){if(A.target.parentNode===S){var y=T.statics.formats(S),w=g.default.find(A.target);y==="checked"?w.format("list","unchecked"):y==="unchecked"&&w.format("list","checked")}};return S.addEventListener("touchstart",k),S.addEventListener("mousedown",k),T}return E(v,[{key:"format",value:function(T,k){this.children.length>0&&this.children.tail.format(T,k)}},{key:"formats",value:function(){return l({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,k){if(T instanceof i)_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertBefore",this).call(this,T,k);else{var L=k==null?this.length():k.offset(this),A=this.split(L);A.parent.insertBefore(T,A)}}},{key:"optimize",value:function(T){_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,T);var k=this.next;k!=null&&k.prev===this&&k.statics.blotName===this.statics.blotName&&k.domNode.tagName===this.domNode.tagName&&k.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(k.moveChildren(this),k.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var k=g.default.create(this.statics.defaultChild);T.moveChildren(k),this.appendChild(k)}_(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"replace",this).call(this,T)}}]),v}(e.default);h.blotName="list",h.scope=g.default.Scope.BLOCK_BLOT,h.tagName=["OL","UL"],h.defaultChild="list-item",h.allowedChildren=[i],p.ListItem=i,p.default=h},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(56),_=O(E);function O(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 b(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 d(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 o=function(e){d(t,e);function t(){return g(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);o.blotName="italic",o.tagName=["EM","I"],p.default=o},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function l(a,s){for(var r=0;r<s.length;r++){var i=s[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(a,i.key,i)}}return function(a,s,r){return s&&l(a.prototype,s),r&&l(a,r),a}}(),_=function l(a,s,r){a===null&&(a=Function.prototype);var i=Object.getOwnPropertyDescriptor(a,s);if(i===void 0){var h=Object.getPrototypeOf(a);return h===null?void 0:l(h,s,r)}else{if("value"in i)return i.value;var n=i.get;return n===void 0?void 0:n.call(r)}},O=f(6),g=b(O);function b(l){return l&&l.__esModule?l:{default:l}}function d(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:l}function e(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}var t=function(l){e(a,l);function a(){return d(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return E(a,null,[{key:"create",value:function(r){return r==="super"?document.createElement("sup"):r==="sub"?document.createElement("sub"):_(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,r)}},{key:"formats",value:function(r){if(r.tagName==="SUB")return"sub";if(r.tagName==="SUP")return"super"}}]),a}(g.default);t.blotName="script",t.tagName=["SUB","SUP"],p.default=t},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(6),_=O(E);function O(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 b(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 d(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 o=function(e){d(t,e);function t(){return g(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);o.blotName="strike",o.tagName="S",p.default=o},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=f(6),_=O(E);function O(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 b(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 d(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 o=function(e){d(t,e);function t(){return g(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return t}(_.default);o.blotName="underline",o.tagName="U",p.default=o},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(r,i){for(var h=0;h<i.length;h++){var n=i[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,h){return i&&s(r.prototype,i),h&&s(r,h),r}}(),_=function s(r,i,h){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var v=Object.getPrototypeOf(r);return v===null?void 0:s(v,i,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},O=f(0),g=d(O),b=f(27);function d(s){return s&&s.__esModule?s:{default:s}}function o(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function e(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function t(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var l=["alt","height","width"],a=function(s){t(r,s);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(h,n){l.indexOf(h)>-1?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=_(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,h);return typeof h=="string"&&n.setAttribute("src",this.sanitize(h)),n}},{key:"formats",value:function(h){return l.reduce(function(n,v){return h.hasAttribute(v)&&(n[v]=h.getAttribute(v)),n},{})}},{key:"match",value:function(h){return/\.(jpe?g|gif|png)$/.test(h)||/^data:image\/.+;base64/.test(h)}},{key:"sanitize",value:function(h){return(0,b.sanitize)(h,["http","https","data"])?h:"//:0"}},{key:"value",value:function(h){return h.getAttribute("src")}}]),r}(g.default.Embed);a.blotName="image",a.tagName="IMG",p.default=a},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0});var E=function(){function s(r,i){for(var h=0;h<i.length;h++){var n=i[h];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,h){return i&&s(r.prototype,i),h&&s(r,h),r}}(),_=function s(r,i,h){r===null&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(n===void 0){var v=Object.getPrototypeOf(r);return v===null?void 0:s(v,i,h)}else{if("value"in n)return n.value;var S=n.get;return S===void 0?void 0:S.call(h)}},O=f(4),g=f(27),b=d(g);function d(s){return s&&s.__esModule?s:{default:s}}function o(s,r){if(!(s instanceof r))throw new TypeError("Cannot call a class as a function")}function e(s,r){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:s}function t(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r)}var l=["height","width"],a=function(s){t(r,s);function r(){return o(this,r),e(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return E(r,[{key:"format",value:function(h,n){l.indexOf(h)>-1?n?this.domNode.setAttribute(h,n):this.domNode.removeAttribute(h):_(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,h,n)}}],[{key:"create",value:function(h){var n=_(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,h);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(h)),n}},{key:"formats",value:function(h){return l.reduce(function(n,v){return h.hasAttribute(v)&&(n[v]=h.getAttribute(v)),n},{})}},{key:"sanitize",value:function(h){return b.default.sanitize(h)}},{key:"value",value:function(h){return h.getAttribute("src")}}]),r}(O.BlockEmbed);a.blotName="video",a.className="ql-video",a.tagName="IFRAME",p.default=a},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.FormulaBlot=void 0;var E=function(){function h(n,v){for(var S=0;S<v.length;S++){var T=v[S];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(n,T.key,T)}}return function(n,v,S){return v&&h(n.prototype,v),S&&h(n,S),n}}(),_=function h(n,v,S){n===null&&(n=Function.prototype);var T=Object.getOwnPropertyDescriptor(n,v);if(T===void 0){var k=Object.getPrototypeOf(n);return k===null?void 0:h(k,v,S)}else{if("value"in T)return T.value;var L=T.get;return L===void 0?void 0:L.call(S)}},O=f(35),g=t(O),b=f(5),d=t(b),o=f(9),e=t(o);function t(h){return h&&h.__esModule?h:{default:h}}function l(h,n){if(!(h instanceof n))throw new TypeError("Cannot call a class as a function")}function a(h,n){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:h}function s(h,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);h.prototype=Object.create(n&&n.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(h,n):h.__proto__=n)}var r=function(h){s(n,h);function n(){return l(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return E(n,null,[{key:"create",value:function(S){var T=_(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",S)),T}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),n}(g.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(h){s(n,h),E(n,null,[{key:"register",value:function(){d.default.register(r,!0)}}]);function n(){l(this,n);var v=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return v}return n}(e.default);p.FormulaBlot=r,p.default=i},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.CodeToken=p.CodeBlock=void 0;var E=function(){function S(T,k){for(var L=0;L<k.length;L++){var A=k[L];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(T,A.key,A)}}return function(T,k,L){return k&&S(T.prototype,k),L&&S(T,L),T}}(),_=function S(T,k,L){T===null&&(T=Function.prototype);var A=Object.getOwnPropertyDescriptor(T,k);if(A===void 0){var y=Object.getPrototypeOf(T);return y===null?void 0:S(y,k,L)}else{if("value"in A)return A.value;var w=A.get;return w===void 0?void 0:w.call(L)}},O=f(0),g=a(O),b=f(5),d=a(b),o=f(9),e=a(o),t=f(13),l=a(t);function a(S){return S&&S.__esModule?S:{default:S}}function s(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function r(S,T){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:S}function i(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(S,T):S.__proto__=T)}var h=function(S){i(T,S);function T(){return s(this,T),r(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return E(T,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),_(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),T}(l.default);h.className="ql-syntax";var n=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),v=function(S){i(T,S),E(T,null,[{key:"register",value:function(){d.default.register(n,!0),d.default.register(h,!0)}}]);function T(k,L){s(this,T);var A=r(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,k,L));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var y=null;return A.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(y),y=setTimeout(function(){A.highlight(),y=null},A.options.interval)}),A.highlight(),A}return E(T,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(h).forEach(function(y){y.highlight(L.options.highlight)}),this.quill.update(d.default.sources.SILENT),A!=null&&this.quill.setSelection(A,d.default.sources.SILENT)}}}]),T}(e.default);v.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var T=window.hljs.highlightAuto(S);return T.value}}(),interval:1e3},p.CodeBlock=h,p.CodeToken=n,p.default=v},function(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.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(c,p){c.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(c,p,f){Object.defineProperty(p,"__esModule",{value:!0}),p.default=p.BubbleTooltip=void 0;var E=function T(k,L,A){k===null&&(k=Function.prototype);var y=Object.getOwnPropertyDescriptor(k,L);if(y===void 0){var w=Object.getPrototypeOf(k);return w===null?void 0:T(w,L,A)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(A)}},_=function(){function T(k,L){for(var A=0;A<L.length;A++){var y=L[A];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(k,y.key,y)}}return function(k,L,A){return L&&T(k.prototype,L),A&&T(k,A),k}}(),O=f(3),g=s(O),b=f(8),d=s(b),o=f(43),e=s(o),t=f(15),l=f(41),a=s(l);function s(T){return T&&T.__esModule?T:{default:T}}function r(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}function i(T,k){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:T}function h(T,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(T,k):T.__proto__=k)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(T){h(k,T);function k(L,A){r(this,k),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=n);var y=i(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,L,A));return y.quill.container.classList.add("ql-bubble"),y}return _(k,[{key:"extendToolbar",value:function(A){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),a.default)}}]),k}(e.default);v.DEFAULTS=(0,g.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(k){k?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(T){h(k,T);function k(L,A){r(this,k);var y=i(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,L,A));return y.quill.on(d.default.events.EDITOR_CHANGE,function(w,N,q,D){if(w===d.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&D===d.default.sources.USER){y.show(),y.root.style.left="0px",y.root.style.width="",y.root.style.width=y.root.offsetWidth+"px";var z=y.quill.getLines(N.index,N.length);if(z.length===1)y.position(y.quill.getBounds(N));else{var K=z[z.length-1],ee=y.quill.getIndex(K),V=Math.min(K.length()-1,N.index+N.length-ee),I=y.quill.getBounds(new t.Range(ee,V));y.position(I)}}else document.activeElement!==y.textbox&&y.quill.hasFocus()&&y.hide()}),y}return _(k,[{key:"listen",value:function(){var A=this;E(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var y=A.quill.getSelection();y!=null&&A.position(A.quill.getBounds(y))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var y=E(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"position",this).call(this,A),w=this.root.querySelector(".ql-tooltip-arrow");if(w.style.marginLeft="",y===0)return y;w.style.marginLeft=-1*y-w.offsetWidth/2+"px"}}]),k}(o.BaseTooltip);S.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(""),p.BubbleTooltip=S,p.default=v},function(c,p,f){c.exports=f(63)}]).default})})(Yn);var lr=Yn.exports;const jn=Ee.getDefaultExportFromCjs(lr);var He=-1,De=1,Re=0;function Tt(m,R,c,p){if(m===R)return m?[[Re,m]]:[];if(c!=null){var f=cr(m,R,c);if(f)return f}var E=Mn(m,R),_=m.substring(0,E);m=m.substring(E),R=R.substring(E),E=Dn(m,R);var O=m.substring(m.length-E);m=m.substring(0,m.length-E),R=R.substring(0,R.length-E);var g=ar(m,R);return _&&g.unshift([Re,_]),O&&g.push([Re,O]),Xn(g,p),g}function ar(m,R){var c;if(!m)return[[De,R]];if(!R)return[[He,m]];var p=m.length>R.length?m:R,f=m.length>R.length?R:m,E=p.indexOf(f);if(E!==-1)return c=[[De,p.substring(0,E)],[Re,f],[De,p.substring(E+f.length)]],m.length>R.length&&(c[0][0]=c[2][0]=He),c;if(f.length===1)return[[He,m],[De,R]];var _=sr(m,R);if(_){var O=_[0],g=_[1],b=_[2],d=_[3],o=_[4],e=Tt(O,b),t=Tt(g,d);return e.concat([[Re,o]],t)}return ur(m,R)}function ur(m,R){for(var c=m.length,p=R.length,f=Math.ceil((c+p)/2),E=f,_=2*f,O=new Array(_),g=new Array(_),b=0;b<_;b++)O[b]=-1,g[b]=-1;O[E+1]=0,g[E+1]=0;for(var d=c-p,o=d%2!==0,e=0,t=0,l=0,a=0,s=0;s<f;s++){for(var r=-s+e;r<=s-t;r+=2){var i=E+r,h;r===-s||r!==s&&O[i-1]<O[i+1]?h=O[i+1]:h=O[i-1]+1;for(var n=h-r;h<c&&n<p&&m.charAt(h)===R.charAt(n);)h++,n++;if(O[i]=h,h>c)t+=2;else if(n>p)e+=2;else if(o){var v=E+d-r;if(v>=0&&v<_&&g[v]!==-1){var S=c-g[v];if(h>=S)return Hn(m,R,h,n)}}}for(var T=-s+l;T<=s-a;T+=2){var v=E+T,S;T===-s||T!==s&&g[v-1]<g[v+1]?S=g[v+1]:S=g[v-1]+1;for(var k=S-T;S<c&&k<p&&m.charAt(c-S-1)===R.charAt(p-k-1);)S++,k++;if(g[v]=S,S>c)a+=2;else if(k>p)l+=2;else if(!o){var i=E+d-T;if(i>=0&&i<_&&O[i]!==-1){var h=O[i],n=E+h-i;if(S=c-S,h>=S)return Hn(m,R,h,n)}}}}return[[He,m],[De,R]]}function Hn(m,R,c,p){var f=m.substring(0,c),E=R.substring(0,p),_=m.substring(c),O=R.substring(p),g=Tt(f,E),b=Tt(_,O);return g.concat(b)}function Mn(m,R){if(!m||!R||m.charAt(0)!==R.charAt(0))return 0;for(var c=0,p=Math.min(m.length,R.length),f=p,E=0;c<f;)m.substring(E,f)==R.substring(E,f)?(c=f,E=c):p=f,f=Math.floor((p-c)/2+c);return Qn(m.charCodeAt(f-1))&&f--,f}function Dn(m,R){if(!m||!R||m.slice(-1)!==R.slice(-1))return 0;for(var c=0,p=Math.min(m.length,R.length),f=p,E=0;c<f;)m.substring(m.length-f,m.length-E)==R.substring(R.length-f,R.length-E)?(c=f,E=c):p=f,f=Math.floor((p-c)/2+c);return Jn(m.charCodeAt(m.length-f))&&f--,f}function sr(m,R){var c=m.length>R.length?m:R,p=m.length>R.length?R:m;if(c.length<4||p.length*2<c.length)return null;function f(t,l,a){for(var s=t.substring(a,a+Math.floor(t.length/4)),r=-1,i="",h,n,v,S;(r=l.indexOf(s,r+1))!==-1;){var T=Mn(t.substring(a),l.substring(r)),k=Dn(t.substring(0,a),l.substring(0,r));i.length<k+T&&(i=l.substring(r-k,r)+l.substring(r,r+T),h=t.substring(0,a-k),n=t.substring(a+T),v=l.substring(0,r-k),S=l.substring(r+T))}return i.length*2>=t.length?[h,n,v,S,i]:null}var E=f(c,p,Math.ceil(c.length/4)),_=f(c,p,Math.ceil(c.length/2)),O;if(!E&&!_)return null;_?E?O=E[4].length>_[4].length?E:_:O=_:O=E;var g,b,d,o;m.length>R.length?(g=O[0],b=O[1],d=O[2],o=O[3]):(d=O[0],o=O[1],g=O[2],b=O[3]);var e=O[4];return[g,b,d,o,e]}function Xn(m,R){m.push([Re,""]);for(var c=0,p=0,f=0,E="",_="",O;c<m.length;){if(c<m.length-1&&!m[c][1]){m.splice(c,1);continue}switch(m[c][0]){case De:f++,_+=m[c][1],c++;break;case He:p++,E+=m[c][1],c++;break;case Re:var g=c-f-p-1;if(R){if(g>=0&&tr(m[g][1])){var b=m[g][1].slice(-1);if(m[g][1]=m[g][1].slice(0,-1),E=b+E,_=b+_,!m[g][1]){m.splice(g,1),c--;var d=g-1;m[d]&&m[d][0]===De&&(f++,_=m[d][1]+_,d--),m[d]&&m[d][0]===He&&(p++,E=m[d][1]+E,d--),g=d}}if(er(m[c][1])){var b=m[c][1].charAt(0);m[c][1]=m[c][1].slice(1),E+=b,_+=b}}if(c<m.length-1&&!m[c][1]){m.splice(c,1);break}if(E.length>0||_.length>0){E.length>0&&_.length>0&&(O=Mn(_,E),O!==0&&(g>=0?m[g][1]+=_.substring(0,O):(m.splice(0,0,[Re,_.substring(0,O)]),c++),_=_.substring(O),E=E.substring(O)),O=Dn(_,E),O!==0&&(m[c][1]=_.substring(_.length-O)+m[c][1],_=_.substring(0,_.length-O),E=E.substring(0,E.length-O)));var o=f+p;E.length===0&&_.length===0?(m.splice(c-o,o),c=c-o):E.length===0?(m.splice(c-o,o,[De,_]),c=c-o+1):_.length===0?(m.splice(c-o,o,[He,E]),c=c-o+1):(m.splice(c-o,o,[He,E],[De,_]),c=c-o+2)}c!==0&&m[c-1][0]===Re?(m[c-1][1]+=m[c][1],m.splice(c,1)):c++,f=0,p=0,E="",_="";break}}m[m.length-1][1]===""&&m.pop();var e=!1;for(c=1;c<m.length-1;)m[c-1][0]===Re&&m[c+1][0]===Re&&(m[c][1].substring(m[c][1].length-m[c-1][1].length)===m[c-1][1]?(m[c][1]=m[c-1][1]+m[c][1].substring(0,m[c][1].length-m[c-1][1].length),m[c+1][1]=m[c-1][1]+m[c+1][1],m.splice(c-1,1),e=!0):m[c][1].substring(0,m[c+1][1].length)==m[c+1][1]&&(m[c-1][1]+=m[c+1][1],m[c][1]=m[c][1].substring(m[c+1][1].length)+m[c+1][1],m.splice(c+1,1),e=!0)),c++;e&&Xn(m,R)}function Qn(m){return m>=55296&&m<=56319}function Jn(m){return m>=56320&&m<=57343}function er(m){return Jn(m.charCodeAt(0))}function tr(m){return Qn(m.charCodeAt(m.length-1))}function fr(m){for(var R=[],c=0;c<m.length;c++)m[c][1].length>0&&R.push(m[c]);return R}function Rn(m,R,c,p){return tr(m)||er(p)?null:fr([[Re,m],[He,R],[De,c],[Re,p]])}function cr(m,R,c){var p=typeof c=="number"?{index:c,length:0}:c.oldRange,f=typeof c=="number"?null:c.newRange,E=m.length,_=R.length;if(p.length===0&&(f===null||f.length===0)){var O=p.index,g=m.slice(0,O),b=m.slice(O),d=f?f.index:null;e:{var o=O+_-E;if(d!==null&&d!==o||o<0||o>_)break e;var e=R.slice(0,o),t=R.slice(o);if(t!==b)break e;var l=Math.min(O,o),a=g.slice(0,l),s=e.slice(0,l);if(a!==s)break e;var r=g.slice(l),i=e.slice(l);return Rn(a,r,i,b)}e:{if(d!==null&&d!==O)break e;var h=O,e=R.slice(0,h),t=R.slice(h);if(e!==g)break e;var n=Math.min(E-h,_-h),v=b.slice(b.length-n),S=t.slice(t.length-n);if(v!==S)break e;var r=b.slice(0,b.length-n),i=t.slice(0,t.length-n);return Rn(g,r,i,v)}}if(p.length>0&&f&&f.length===0)e:{var a=m.slice(0,p.index),v=m.slice(p.index+p.length),l=a.length,n=v.length;if(_<l+n)break e;var s=R.slice(0,l),S=R.slice(_-n);if(a!==s||v!==S)break e;var r=m.slice(l,E-n),i=R.slice(l,_-n);return Rn(a,r,i,v)}return null}function Gt(m,R,c){return Tt(m,R,c,!0)}Gt.INSERT=De;Gt.DELETE=He;Gt.EQUAL=Re;var hr=Gt,$t={exports:{}};$t.exports;(function(m,R){var c=200,p="__lodash_hash_undefined__",f=9007199254740991,E="[object Arguments]",_="[object Array]",O="[object Boolean]",g="[object Date]",b="[object Error]",d="[object Function]",o="[object GeneratorFunction]",e="[object Map]",t="[object Number]",l="[object Object]",a="[object Promise]",s="[object RegExp]",r="[object Set]",i="[object String]",h="[object Symbol]",n="[object WeakMap]",v="[object ArrayBuffer]",S="[object DataView]",T="[object Float32Array]",k="[object Float64Array]",L="[object Int8Array]",A="[object Int16Array]",y="[object Int32Array]",w="[object Uint8Array]",N="[object Uint8ClampedArray]",q="[object Uint16Array]",D="[object Uint32Array]",z=/[\\^$.*+?()[\]{}|]/g,K=/\w*$/,ee=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,I={};I[E]=I[_]=I[v]=I[S]=I[O]=I[g]=I[T]=I[k]=I[L]=I[A]=I[y]=I[e]=I[t]=I[l]=I[s]=I[r]=I[i]=I[h]=I[w]=I[N]=I[q]=I[D]=!0,I[b]=I[d]=I[n]=!1;var P=typeof Ee.commonjsGlobal=="object"&&Ee.commonjsGlobal&&Ee.commonjsGlobal.Object===Object&&Ee.commonjsGlobal,B=typeof self=="object"&&self&&self.Object===Object&&self,M=P||B||Function("return this")(),$=R&&!R.nodeType&&R,F=$&&!0&&m&&!m.nodeType&&m,j=F&&F.exports===$;function U(u,x){return u.set(x[0],x[1]),u}function G(u,x){return u.add(x),u}function Z(u,x){for(var C=-1,W=u?u.length:0;++C<W&&x(u[C],C,u)!==!1;);return u}function Q(u,x){for(var C=-1,W=x.length,se=u.length;++C<W;)u[se+C]=x[C];return u}function re(u,x,C,W){var se=-1,ie=u?u.length:0;for(W&&ie&&(C=u[++se]);++se<ie;)C=x(C,u[se],se,u);return C}function oe(u,x){for(var C=-1,W=Array(u);++C<u;)W[C]=x(C);return W}function ae(u,x){return u?.[x]}function ce(u){var x=!1;if(u!=null&&typeof u.toString!="function")try{x=!!(u+"")}catch{}return x}function de(u){var x=-1,C=Array(u.size);return u.forEach(function(W,se){C[++x]=[se,W]}),C}function be(u,x){return function(C){return u(x(C))}}function me(u){var x=-1,C=Array(u.size);return u.forEach(function(W){C[++x]=W}),C}var Y=Array.prototype,X=Function.prototype,te=Object.prototype,ne=M["__core-js_shared__"],J=function(){var u=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),fe=X.toString,le=te.hasOwnProperty,ue=te.toString,Se=RegExp("^"+fe.call(le).replace(z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),we=j?M.Buffer:void 0,ye=M.Symbol,We=M.Uint8Array,pe=be(Object.getPrototypeOf,Object),Ie=Object.create,St=te.propertyIsEnumerable,Zt=Y.splice,ct=Object.getOwnPropertySymbols,nt=we?we.isBuffer:void 0,Nt=be(Object.keys,Object),rt=Me(M,"DataView"),Ye=Me(M,"Map"),Be=Me(M,"Promise"),it=Me(M,"Set"),ht=Me(M,"WeakMap"),Xe=Me(Object,"create"),dt=Le(rt),Qe=Le(Ye),pt=Le(Be),vt=Le(it),yt=Le(ht),Ge=ye?ye.prototype:void 0,Pt=Ge?Ge.valueOf:void 0;function Ve(u){var x=-1,C=u?u.length:0;for(this.clear();++x<C;){var W=u[x];this.set(W[0],W[1])}}function Wt(){this.__data__=Xe?Xe(null):{}}function Yt(u){return this.has(u)&&delete this.__data__[u]}function Xt(u){var x=this.__data__;if(Xe){var C=x[u];return C===p?void 0:C}return le.call(x,u)?x[u]:void 0}function xt(u){var x=this.__data__;return Xe?x[u]!==void 0:le.call(x,u)}function gt(u,x){var C=this.__data__;return C[u]=Xe&&x===void 0?p:x,this}Ve.prototype.clear=Wt,Ve.prototype.delete=Yt,Ve.prototype.get=Xt,Ve.prototype.has=xt,Ve.prototype.set=gt;function Ae(u){var x=-1,C=u?u.length:0;for(this.clear();++x<C;){var W=u[x];this.set(W[0],W[1])}}function Qt(){this.__data__=[]}function Jt(u){var x=this.__data__,C=lt(x,u);if(C<0)return!1;var W=x.length-1;return C==W?x.pop():Zt.call(x,C,1),!0}function en(u){var x=this.__data__,C=lt(x,u);return C<0?void 0:x[C][1]}function tn(u){return lt(this.__data__,u)>-1}function nn(u,x){var C=this.__data__,W=lt(C,u);return W<0?C.push([u,x]):C[W][1]=x,this}Ae.prototype.clear=Qt,Ae.prototype.delete=Jt,Ae.prototype.get=en,Ae.prototype.has=tn,Ae.prototype.set=nn;function Ne(u){var x=-1,C=u?u.length:0;for(this.clear();++x<C;){var W=u[x];this.set(W[0],W[1])}}function rn(){this.__data__={hash:new Ve,map:new(Ye||Ae),string:new Ve}}function on(u){return et(this,u).delete(u)}function ln(u){return et(this,u).get(u)}function an(u){return et(this,u).has(u)}function un(u,x){return et(this,u).set(u,x),this}Ne.prototype.clear=rn,Ne.prototype.delete=on,Ne.prototype.get=ln,Ne.prototype.has=an,Ne.prototype.set=un;function qe(u){this.__data__=new Ae(u)}function sn(){this.__data__=new Ae}function fn(u){return this.__data__.delete(u)}function cn(u){return this.__data__.get(u)}function hn(u){return this.__data__.has(u)}function dn(u,x){var C=this.__data__;if(C instanceof Ae){var W=C.__data__;if(!Ye||W.length<c-1)return W.push([u,x]),this;C=this.__data__=new Ne(W)}return C.set(u,x),this}qe.prototype.clear=sn,qe.prototype.delete=fn,qe.prototype.get=cn,qe.prototype.has=hn,qe.prototype.set=dn;function ot(u,x){var C=Ot(u)||ut(u)?oe(u.length,String):[],W=C.length,se=!!W;for(var ie in u)(x||le.call(u,ie))&&!(se&&(ie=="length"||Sn(ie,W)))&&C.push(ie);return C}function Lt(u,x,C){var W=u[x];(!(le.call(u,x)&&Bt(W,C))||C===void 0&&!(x in u))&&(u[x]=C)}function lt(u,x){for(var C=u.length;C--;)if(Bt(u[C][0],x))return C;return-1}function Ce(u,x){return u&&_t(x,wt(x),u)}function mt(u,x,C,W,se,ie,he){var ve;if(W&&(ve=ie?W(u,se,ie,he):W(u)),ve!==void 0)return ve;if(!Ue(u))return u;var _e=Ot(u);if(_e){if(ve=Tn(u),!x)return En(u,ve)}else{var ge=$e(u),Pe=ge==d||ge==o;if(Mt(u))return at(u,x);if(ge==l||ge==E||Pe&&!ie){if(ce(u))return ie?u:{};if(ve=Fe(Pe?{}:u),!x)return wn(u,Ce(ve,u))}else{if(!I[ge])return ie?u:{};ve=kn(u,ge,mt,x)}}he||(he=new qe);var je=he.get(u);if(je)return je;if(he.set(u,ve),!_e)var Oe=C?An(u):wt(u);return Z(Oe||u,function(xe,Te){Oe&&(Te=xe,xe=u[Te]),Lt(ve,Te,mt(xe,x,C,W,Te,u,he))}),ve}function pn(u){return Ue(u)?Ie(u):{}}function vn(u,x,C){var W=x(u);return Ot(u)?W:Q(W,C(u))}function yn(u){return ue.call(u)}function gn(u){if(!Ue(u)||Pn(u))return!1;var x=Et(u)||ce(u)?Se:ee;return x.test(Le(u))}function mn(u){if(!Rt(u))return Nt(u);var x=[];for(var C in Object(u))le.call(u,C)&&C!="constructor"&&x.push(C);return x}function at(u,x){if(x)return u.slice();var C=new u.constructor(u.length);return u.copy(C),C}function bt(u){var x=new u.constructor(u.byteLength);return new We(x).set(new We(u)),x}function Je(u,x){var C=x?bt(u.buffer):u.buffer;return new u.constructor(C,u.byteOffset,u.byteLength)}function qt(u,x,C){var W=x?C(de(u),!0):de(u);return re(W,U,new u.constructor)}function jt(u){var x=new u.constructor(u.source,K.exec(u));return x.lastIndex=u.lastIndex,x}function bn(u,x,C){var W=x?C(me(u),!0):me(u);return re(W,G,new u.constructor)}function _n(u){return Pt?Object(Pt.call(u)):{}}function On(u,x){var C=x?bt(u.buffer):u.buffer;return new u.constructor(C,u.byteOffset,u.length)}function En(u,x){var C=-1,W=u.length;for(x||(x=Array(W));++C<W;)x[C]=u[C];return x}function _t(u,x,C,W){C||(C={});for(var se=-1,ie=x.length;++se<ie;){var he=x[se],ve=W?W(C[he],u[he],he,C,u):void 0;Lt(C,he,ve===void 0?u[he]:ve)}return C}function wn(u,x){return _t(u,ze(u),x)}function An(u){return vn(u,wt,ze)}function et(u,x){var C=u.__data__;return Nn(x)?C[typeof x=="string"?"string":"hash"]:C.map}function Me(u,x){var C=ae(u,x);return gn(C)?C:void 0}var ze=ct?be(ct,Object):Ln,$e=yn;(rt&&$e(new rt(new ArrayBuffer(1)))!=S||Ye&&$e(new Ye)!=e||Be&&$e(Be.resolve())!=a||it&&$e(new it)!=r||ht&&$e(new ht)!=n)&&($e=function(u){var x=ue.call(u),C=x==l?u.constructor:void 0,W=C?Le(C):void 0;if(W)switch(W){case dt:return S;case Qe:return e;case pt:return a;case vt:return r;case yt:return n}return x});function Tn(u){var x=u.length,C=u.constructor(x);return x&&typeof u[0]=="string"&&le.call(u,"index")&&(C.index=u.index,C.input=u.input),C}function Fe(u){return typeof u.constructor=="function"&&!Rt(u)?pn(pe(u)):{}}function kn(u,x,C,W){var se=u.constructor;switch(x){case v:return bt(u);case O:case g:return new se(+u);case S:return Je(u,W);case T:case k:case L:case A:case y:case w:case N:case q:case D:return On(u,W);case e:return qt(u,W,C);case t:case i:return new se(u);case s:return jt(u);case r:return bn(u,W,C);case h:return _n(u)}}function Sn(u,x){return x=x??f,!!x&&(typeof u=="number"||V.test(u))&&u>-1&&u%1==0&&u<x}function Nn(u){var x=typeof u;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?u!=="__proto__":u===null}function Pn(u){return!!J&&J in u}function Rt(u){var x=u&&u.constructor,C=typeof x=="function"&&x.prototype||te;return u===C}function Le(u){if(u!=null){try{return fe.call(u)}catch{}try{return u+""}catch{}}return""}function It(u){return mt(u,!0,!0)}function Bt(u,x){return u===x||u!==u&&x!==x}function ut(u){return xn(u)&&le.call(u,"callee")&&(!St.call(u,"callee")||ue.call(u)==E)}var Ot=Array.isArray;function st(u){return u!=null&&Dt(u.length)&&!Et(u)}function xn(u){return Ct(u)&&st(u)}var Mt=nt||qn;function Et(u){var x=Ue(u)?ue.call(u):"";return x==d||x==o}function Dt(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=f}function Ue(u){var x=typeof u;return!!u&&(x=="object"||x=="function")}function Ct(u){return!!u&&typeof u=="object"}function wt(u){return st(u)?ot(u):mn(u)}function Ln(){return[]}function qn(){return!1}m.exports=It})($t,$t.exports);var nr=$t.exports,Kt={exports:{}};Kt.exports;(function(m,R){var c=200,p="__lodash_hash_undefined__",f=1,E=2,_=9007199254740991,O="[object Arguments]",g="[object Array]",b="[object AsyncFunction]",d="[object Boolean]",o="[object Date]",e="[object Error]",t="[object Function]",l="[object GeneratorFunction]",a="[object Map]",s="[object Number]",r="[object Null]",i="[object Object]",h="[object Promise]",n="[object Proxy]",v="[object RegExp]",S="[object Set]",T="[object String]",k="[object Symbol]",L="[object Undefined]",A="[object WeakMap]",y="[object ArrayBuffer]",w="[object DataView]",N="[object Float32Array]",q="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",K="[object Int32Array]",ee="[object Uint8Array]",V="[object Uint8ClampedArray]",I="[object Uint16Array]",P="[object Uint32Array]",B=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,F={};F[N]=F[q]=F[D]=F[z]=F[K]=F[ee]=F[V]=F[I]=F[P]=!0,F[O]=F[g]=F[y]=F[d]=F[w]=F[o]=F[e]=F[t]=F[a]=F[s]=F[i]=F[v]=F[S]=F[T]=F[A]=!1;var j=typeof Ee.commonjsGlobal=="object"&&Ee.commonjsGlobal&&Ee.commonjsGlobal.Object===Object&&Ee.commonjsGlobal,U=typeof self=="object"&&self&&self.Object===Object&&self,G=j||U||Function("return this")(),Z=R&&!R.nodeType&&R,Q=Z&&!0&&m&&!m.nodeType&&m,re=Q&&Q.exports===Z,oe=re&&j.process,ae=function(){try{return oe&&oe.binding&&oe.binding("util")}catch{}}(),ce=ae&&ae.isTypedArray;function de(u,x){for(var C=-1,W=u==null?0:u.length,se=0,ie=[];++C<W;){var he=u[C];x(he,C,u)&&(ie[se++]=he)}return ie}function be(u,x){for(var C=-1,W=x.length,se=u.length;++C<W;)u[se+C]=x[C];return u}function me(u,x){for(var C=-1,W=u==null?0:u.length;++C<W;)if(x(u[C],C,u))return!0;return!1}function Y(u,x){for(var C=-1,W=Array(u);++C<u;)W[C]=x(C);return W}function X(u){return function(x){return u(x)}}function te(u,x){return u.has(x)}function ne(u,x){return u?.[x]}function J(u){var x=-1,C=Array(u.size);return u.forEach(function(W,se){C[++x]=[se,W]}),C}function fe(u,x){return function(C){return u(x(C))}}function le(u){var x=-1,C=Array(u.size);return u.forEach(function(W){C[++x]=W}),C}var ue=Array.prototype,Se=Function.prototype,we=Object.prototype,ye=G["__core-js_shared__"],We=Se.toString,pe=we.hasOwnProperty,Ie=function(){var u=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),St=we.toString,Zt=RegExp("^"+We.call(pe).replace(B,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ct=re?G.Buffer:void 0,nt=G.Symbol,Nt=G.Uint8Array,rt=we.propertyIsEnumerable,Ye=ue.splice,Be=nt?nt.toStringTag:void 0,it=Object.getOwnPropertySymbols,ht=ct?ct.isBuffer:void 0,Xe=fe(Object.keys,Object),dt=ze(G,"DataView"),Qe=ze(G,"Map"),pt=ze(G,"Promise"),vt=ze(G,"Set"),yt=ze(G,"WeakMap"),Ge=ze(Object,"create"),Pt=Le(dt),Ve=Le(Qe),Wt=Le(pt),Yt=Le(vt),Xt=Le(yt),xt=nt?nt.prototype:void 0,gt=xt?xt.valueOf:void 0;function Ae(u){var x=-1,C=u==null?0:u.length;for(this.clear();++x<C;){var W=u[x];this.set(W[0],W[1])}}function Qt(){this.__data__=Ge?Ge(null):{},this.size=0}function Jt(u){var x=this.has(u)&&delete this.__data__[u];return this.size-=x?1:0,x}function en(u){var x=this.__data__;if(Ge){var C=x[u];return C===p?void 0:C}return pe.call(x,u)?x[u]:void 0}function tn(u){var x=this.__data__;return Ge?x[u]!==void 0:pe.call(x,u)}function nn(u,x){var C=this.__data__;return this.size+=this.has(u)?0:1,C[u]=Ge&&x===void 0?p:x,this}Ae.prototype.clear=Qt,Ae.prototype.delete=Jt,Ae.prototype.get=en,Ae.prototype.has=tn,Ae.prototype.set=nn;function Ne(u){var x=-1,C=u==null?0:u.length;for(this.clear();++x<C;){var W=u[x];this.set(W[0],W[1])}}function rn(){this.__data__=[],this.size=0}function on(u){var x=this.__data__,C=at(x,u);if(C<0)return!1;var W=x.length-1;return C==W?x.pop():Ye.call(x,C,1),--this.size,!0}function ln(u){var x=this.__data__,C=at(x,u);return C<0?void 0:x[C][1]}function an(u){return at(this.__data__,u)>-1}function un(u,x){var C=this.__data__,W=at(C,u);return W<0?(++this.size,C.push([u,x])):C[W][1]=x,this}Ne.prototype.clear=rn,Ne.prototype.delete=on,Ne.prototype.get=ln,Ne.prototype.has=an,Ne.prototype.set=un;function qe(u){var x=-1,C=u==null?0:u.length;for(this.clear();++x<C;){var W=u[x];this.set(W[0],W[1])}}function sn(){this.size=0,this.__data__={hash:new Ae,map:new(Qe||Ne),string:new Ae}}function fn(u){var x=Me(this,u).delete(u);return this.size-=x?1:0,x}function cn(u){return Me(this,u).get(u)}function hn(u){return Me(this,u).has(u)}function dn(u,x){var C=Me(this,u),W=C.size;return C.set(u,x),this.size+=C.size==W?0:1,this}qe.prototype.clear=sn,qe.prototype.delete=fn,qe.prototype.get=cn,qe.prototype.has=hn,qe.prototype.set=dn;function ot(u){var x=-1,C=u==null?0:u.length;for(this.__data__=new qe;++x<C;)this.add(u[x])}function Lt(u){return this.__data__.set(u,p),this}function lt(u){return this.__data__.has(u)}ot.prototype.add=ot.prototype.push=Lt,ot.prototype.has=lt;function Ce(u){var x=this.__data__=new Ne(u);this.size=x.size}function mt(){this.__data__=new Ne,this.size=0}function pn(u){var x=this.__data__,C=x.delete(u);return this.size=x.size,C}function vn(u){return this.__data__.get(u)}function yn(u){return this.__data__.has(u)}function gn(u,x){var C=this.__data__;if(C instanceof Ne){var W=C.__data__;if(!Qe||W.length<c-1)return W.push([u,x]),this.size=++C.size,this;C=this.__data__=new qe(W)}return C.set(u,x),this.size=C.size,this}Ce.prototype.clear=mt,Ce.prototype.delete=pn,Ce.prototype.get=vn,Ce.prototype.has=yn,Ce.prototype.set=gn;function mn(u,x){var C=ut(u),W=!C&&Bt(u),se=!C&&!W&&st(u),ie=!C&&!W&&!se&&Ct(u),he=C||W||se||ie,ve=he?Y(u.length,String):[],_e=ve.length;for(var ge in u)(x||pe.call(u,ge))&&!(he&&(ge=="length"||se&&(ge=="offset"||ge=="parent")||ie&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||kn(ge,_e)))&&ve.push(ge);return ve}function at(u,x){for(var C=u.length;C--;)if(It(u[C][0],x))return C;return-1}function bt(u,x,C){var W=x(u);return ut(u)?W:be(W,C(u))}function Je(u){return u==null?u===void 0?L:r:Be&&Be in Object(u)?$e(u):Rt(u)}function qt(u){return Ue(u)&&Je(u)==O}function jt(u,x,C,W,se){return u===x?!0:u==null||x==null||!Ue(u)&&!Ue(x)?u!==u&&x!==x:bn(u,x,C,W,jt,se)}function bn(u,x,C,W,se,ie){var he=ut(u),ve=ut(x),_e=he?g:Fe(u),ge=ve?g:Fe(x);_e=_e==O?i:_e,ge=ge==O?i:ge;var Pe=_e==i,je=ge==i,Oe=_e==ge;if(Oe&&st(u)){if(!st(x))return!1;he=!0,Pe=!1}if(Oe&&!Pe)return ie||(ie=new Ce),he||Ct(u)?_t(u,x,C,W,se,ie):wn(u,x,_e,C,W,se,ie);if(!(C&f)){var xe=Pe&&pe.call(u,"__wrapped__"),Te=je&&pe.call(x,"__wrapped__");if(xe||Te){var Ze=xe?u.value():u,Ke=Te?x.value():x;return ie||(ie=new Ce),se(Ze,Ke,C,W,ie)}}return Oe?(ie||(ie=new Ce),An(u,x,C,W,se,ie)):!1}function _n(u){if(!Dt(u)||Nn(u))return!1;var x=Mt(u)?Zt:M;return x.test(Le(u))}function On(u){return Ue(u)&&Et(u.length)&&!!F[Je(u)]}function En(u){if(!Pn(u))return Xe(u);var x=[];for(var C in Object(u))pe.call(u,C)&&C!="constructor"&&x.push(C);return x}function _t(u,x,C,W,se,ie){var he=C&f,ve=u.length,_e=x.length;if(ve!=_e&&!(he&&_e>ve))return!1;var ge=ie.get(u);if(ge&&ie.get(x))return ge==x;var Pe=-1,je=!0,Oe=C&E?new ot:void 0;for(ie.set(u,x),ie.set(x,u);++Pe<ve;){var xe=u[Pe],Te=x[Pe];if(W)var Ze=he?W(Te,xe,Pe,x,u,ie):W(xe,Te,Pe,u,x,ie);if(Ze!==void 0){if(Ze)continue;je=!1;break}if(Oe){if(!me(x,function(Ke,tt){if(!te(Oe,tt)&&(xe===Ke||se(xe,Ke,C,W,ie)))return Oe.push(tt)})){je=!1;break}}else if(!(xe===Te||se(xe,Te,C,W,ie))){je=!1;break}}return ie.delete(u),ie.delete(x),je}function wn(u,x,C,W,se,ie,he){switch(C){case w:if(u.byteLength!=x.byteLength||u.byteOffset!=x.byteOffset)return!1;u=u.buffer,x=x.buffer;case y:return!(u.byteLength!=x.byteLength||!ie(new Nt(u),new Nt(x)));case d:case o:case s:return It(+u,+x);case e:return u.name==x.name&&u.message==x.message;case v:case T:return u==x+"";case a:var ve=J;case S:var _e=W&f;if(ve||(ve=le),u.size!=x.size&&!_e)return!1;var ge=he.get(u);if(ge)return ge==x;W|=E,he.set(u,x);var Pe=_t(ve(u),ve(x),W,se,ie,he);return he.delete(u),Pe;case k:if(gt)return gt.call(u)==gt.call(x)}return!1}function An(u,x,C,W,se,ie){var he=C&f,ve=et(u),_e=ve.length,ge=et(x),Pe=ge.length;if(_e!=Pe&&!he)return!1;for(var je=_e;je--;){var Oe=ve[je];if(!(he?Oe in x:pe.call(x,Oe)))return!1}var xe=ie.get(u);if(xe&&ie.get(x))return xe==x;var Te=!0;ie.set(u,x),ie.set(x,u);for(var Ze=he;++je<_e;){Oe=ve[je];var Ke=u[Oe],tt=x[Oe];if(W)var Un=he?W(tt,Ke,Oe,x,u,ie):W(Ke,tt,Oe,u,x,ie);if(!(Un===void 0?Ke===tt||se(Ke,tt,C,W,ie):Un)){Te=!1;break}Ze||(Ze=Oe=="constructor")}if(Te&&!Ze){var Ft=u.constructor,Ut=x.constructor;Ft!=Ut&&"constructor"in u&&"constructor"in x&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof Ut=="function"&&Ut instanceof Ut)&&(Te=!1)}return ie.delete(u),ie.delete(x),Te}function et(u){return bt(u,wt,Tn)}function Me(u,x){var C=u.__data__;return Sn(x)?C[typeof x=="string"?"string":"hash"]:C.map}function ze(u,x){var C=ne(u,x);return _n(C)?C:void 0}function $e(u){var x=pe.call(u,Be),C=u[Be];try{u[Be]=void 0;var W=!0}catch{}var se=St.call(u);return W&&(x?u[Be]=C:delete u[Be]),se}var Tn=it?function(u){return u==null?[]:(u=Object(u),de(it(u),function(x){return rt.call(u,x)}))}:Ln,Fe=Je;(dt&&Fe(new dt(new ArrayBuffer(1)))!=w||Qe&&Fe(new Qe)!=a||pt&&Fe(pt.resolve())!=h||vt&&Fe(new vt)!=S||yt&&Fe(new yt)!=A)&&(Fe=function(u){var x=Je(u),C=x==i?u.constructor:void 0,W=C?Le(C):"";if(W)switch(W){case Pt:return w;case Ve:return a;case Wt:return h;case Yt:return S;case Xt:return A}return x});function kn(u,x){return x=x??_,!!x&&(typeof u=="number"||$.test(u))&&u>-1&&u%1==0&&u<x}function Sn(u){var x=typeof u;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?u!=="__proto__":u===null}function Nn(u){return!!Ie&&Ie in u}function Pn(u){var x=u&&u.constructor,C=typeof x=="function"&&x.prototype||we;return u===C}function Rt(u){return St.call(u)}function Le(u){if(u!=null){try{return We.call(u)}catch{}try{return u+""}catch{}}return""}function It(u,x){return u===x||u!==u&&x!==x}var Bt=qt(function(){return arguments}())?qt:function(u){return Ue(u)&&pe.call(u,"callee")&&!rt.call(u,"callee")},ut=Array.isArray;function Ot(u){return u!=null&&Et(u.length)&&!Mt(u)}var st=ht||qn;function xn(u,x){return jt(u,x)}function Mt(u){if(!Dt(u))return!1;var x=Je(u);return x==t||x==l||x==b||x==n}function Et(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=_}function Dt(u){var x=typeof u;return u!=null&&(x=="object"||x=="function")}function Ue(u){return u!=null&&typeof u=="object"}var Ct=ce?X(ce):On;function wt(u){return Ot(u)?mn(u):En(u)}function Ln(){return[]}function qn(){return!1}m.exports=xn})(Kt,Kt.exports);var rr=Kt.exports,Cn={},ir=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(Cn,"__esModule",{value:!0});var dr=ir(nr),pr=ir(rr),Bn;(function(m){function R(E,_,O){E===void 0&&(E={}),_===void 0&&(_={}),typeof E!="object"&&(E={}),typeof _!="object"&&(_={});var g=dr.default(_);O||(g=Object.keys(g).reduce(function(d,o){return g[o]!=null&&(d[o]=g[o]),d},{}));for(var b in E)E[b]!==void 0&&_[b]===void 0&&(g[b]=E[b]);return Object.keys(g).length>0?g:void 0}m.compose=R;function c(E,_){E===void 0&&(E={}),_===void 0&&(_={}),typeof E!="object"&&(E={}),typeof _!="object"&&(_={});var O=Object.keys(E).concat(Object.keys(_)).reduce(function(g,b){return pr.default(E[b],_[b])||(g[b]=_[b]===void 0?null:_[b]),g},{});return Object.keys(O).length>0?O:void 0}m.diff=c;function p(E,_){E===void 0&&(E={}),_===void 0&&(_={}),E=E||{};var O=Object.keys(_).reduce(function(g,b){return _[b]!==E[b]&&E[b]!==void 0&&(g[b]=_[b]),g},{});return Object.keys(E).reduce(function(g,b){return E[b]!==_[b]&&_[b]===void 0&&(g[b]=null),g},O)}m.invert=p;function f(E,_,O){if(O===void 0&&(O=!1),typeof E!="object")return _;if(typeof _=="object"){if(!O)return _;var g=Object.keys(_).reduce(function(b,d){return E[d]===void 0&&(b[d]=_[d]),b},{});return Object.keys(g).length>0?g:void 0}}m.transform=f})(Bn||(Bn={}));Cn.default=Bn;var Ht={},Vt={},Vn;function vr(){if(Vn)return Vt;Vn=1;var m=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Vt,"__esModule",{value:!0});var R=m(or()),c=function(){function p(f){this.ops=f,this.index=0,this.offset=0}return p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(f){f||(f=1/0);var E=this.ops[this.index];if(E){var _=this.offset,O=R.default.length(E);if(f>=O-_?(f=O-_,this.index+=1,this.offset=0):this.offset+=f,typeof E.delete=="number")return{delete:f};var g={};return E.attributes&&(g.attributes=E.attributes),typeof E.retain=="number"?g.retain=f:typeof E.insert=="string"?g.insert=E.insert.substr(_,f):g.insert=E.insert,g}else return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?R.default.length(this.ops[this.index])-this.offset:1/0},p.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"},p.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var f=this.offset,E=this.index,_=this.next(),O=this.ops.slice(this.index);return this.offset=f,this.index=E,[_].concat(O)}else return[]},p}();return Vt.default=c,Vt}var zn;function or(){if(zn)return Ht;zn=1;var m=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ht,"__esModule",{value:!0});var R=m(vr()),c;return function(p){function f(_){return new R.default(_)}p.iterator=f;function E(_){return typeof _.delete=="number"?_.delete:typeof _.retain=="number"?_.retain:typeof _.insert=="string"?_.insert.length:1}p.length=E}(c||(c={})),Ht.default=c,Ht}var kt=Ee.commonjsGlobal&&Ee.commonjsGlobal.__importDefault||function(m){return m&&m.__esModule?m:{default:m}},zt=kt(hr),yr=kt(nr),In=kt(rr),At=kt(Cn),ke=kt(or()),gr=String.fromCharCode(0),mr=function(){function m(R){Array.isArray(R)?this.ops=R:R!=null&&Array.isArray(R.ops)?this.ops=R.ops:this.ops=[]}return m.prototype.insert=function(R,c){var p={};return typeof R=="string"&&R.length===0?this:(p.insert=R,c!=null&&typeof c=="object"&&Object.keys(c).length>0&&(p.attributes=c),this.push(p))},m.prototype.delete=function(R){return R<=0?this:this.push({delete:R})},m.prototype.retain=function(R,c){if(R<=0)return this;var p={retain:R};return c!=null&&typeof c=="object"&&Object.keys(c).length>0&&(p.attributes=c),this.push(p)},m.prototype.push=function(R){var c=this.ops.length,p=this.ops[c-1];if(R=yr.default(R),typeof p=="object"){if(typeof R.delete=="number"&&typeof p.delete=="number")return this.ops[c-1]={delete:p.delete+R.delete},this;if(typeof p.delete=="number"&&R.insert!=null&&(c-=1,p=this.ops[c-1],typeof p!="object"))return this.ops.unshift(R),this;if(In.default(R.attributes,p.attributes)){if(typeof R.insert=="string"&&typeof p.insert=="string")return this.ops[c-1]={insert:p.insert+R.insert},typeof R.attributes=="object"&&(this.ops[c-1].attributes=R.attributes),this;if(typeof R.retain=="number"&&typeof p.retain=="number")return this.ops[c-1]={retain:p.retain+R.retain},typeof R.attributes=="object"&&(this.ops[c-1].attributes=R.attributes),this}}return c===this.ops.length?this.ops.push(R):this.ops.splice(c,0,R),this},m.prototype.chop=function(){var R=this.ops[this.ops.length-1];return R&&R.retain&&!R.attributes&&this.ops.pop(),this},m.prototype.filter=function(R){return this.ops.filter(R)},m.prototype.forEach=function(R){this.ops.forEach(R)},m.prototype.map=function(R){return this.ops.map(R)},m.prototype.partition=function(R){var c=[],p=[];return this.forEach(function(f){var E=R(f)?c:p;E.push(f)}),[c,p]},m.prototype.reduce=function(R,c){return this.ops.reduce(R,c)},m.prototype.changeLength=function(){return this.reduce(function(R,c){return c.insert?R+ke.default.length(c):c.delete?R-c.delete:R},0)},m.prototype.length=function(){return this.reduce(function(R,c){return R+ke.default.length(c)},0)},m.prototype.slice=function(R,c){R===void 0&&(R=0),c===void 0&&(c=1/0);for(var p=[],f=ke.default.iterator(this.ops),E=0;E<c&&f.hasNext();){var _=void 0;E<R?_=f.next(R-E):(_=f.next(c-E),p.push(_)),E+=ke.default.length(_)}return new m(p)},m.prototype.compose=function(R){var c=ke.default.iterator(this.ops),p=ke.default.iterator(R.ops),f=[],E=p.peek();if(E!=null&&typeof E.retain=="number"&&E.attributes==null){for(var _=E.retain;c.peekType()==="insert"&&c.peekLength()<=_;)_-=c.peekLength(),f.push(c.next());E.retain-_>0&&p.next(E.retain-_)}for(var O=new m(f);c.hasNext()||p.hasNext();)if(p.peekType()==="insert")O.push(p.next());else if(c.peekType()==="delete")O.push(c.next());else{var g=Math.min(c.peekLength(),p.peekLength()),b=c.next(g),d=p.next(g);if(typeof d.retain=="number"){var o={};typeof b.retain=="number"?o.retain=g:o.insert=b.insert;var e=At.default.compose(b.attributes,d.attributes,typeof b.retain=="number");if(e&&(o.attributes=e),O.push(o),!p.hasNext()&&In.default(O.ops[O.ops.length-1],o)){var t=new m(c.rest());return O.concat(t).chop()}}else typeof d.delete=="number"&&typeof b.retain=="number"&&O.push(d)}return O.chop()},m.prototype.concat=function(R){var c=new m(this.ops.slice());return R.ops.length>0&&(c.push(R.ops[0]),c.ops=c.ops.concat(R.ops.slice(1))),c},m.prototype.diff=function(R,c){if(this.ops===R.ops)return new m;var p=[this,R].map(function(g){return g.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:gr;var d=g===R?"on":"with";throw new Error("diff() called "+d+" non-document")}).join("")}),f=new m,E=zt.default(p[0],p[1],c),_=ke.default.iterator(this.ops),O=ke.default.iterator(R.ops);return E.forEach(function(g){for(var b=g[1].length;b>0;){var d=0;switch(g[0]){case zt.default.INSERT:d=Math.min(O.peekLength(),b),f.push(O.next(d));break;case zt.default.DELETE:d=Math.min(b,_.peekLength()),_.next(d),f.delete(d);break;case zt.default.EQUAL:d=Math.min(_.peekLength(),O.peekLength(),b);var o=_.next(d),e=O.next(d);In.default(o.insert,e.insert)?f.retain(d,At.default.diff(o.attributes,e.attributes)):f.push(e).delete(d);break}b-=d}}),f.chop()},m.prototype.eachLine=function(R,c){c===void 0&&(c=`
|
|
42
|
-
`);for(var p=ke.default.iterator(this.ops),f=new m,E=0;p.hasNext();){if(p.peekType()!=="insert")return;var _=p.peek(),O=ke.default.length(_)-p.peekLength(),g=typeof _.insert=="string"?_.insert.indexOf(c,O)-O:-1;if(g<0)f.push(p.next());else if(g>0)f.push(p.next(g));else{if(R(f,p.next(1).attributes||{},E)===!1)return;E+=1,f=new m}}f.length()>0&&R(f,{},E)},m.prototype.invert=function(R){var c=new m;return this.reduce(function(p,f){if(f.insert)c.delete(ke.default.length(f));else{if(f.retain&&f.attributes==null)return c.retain(f.retain),p+f.retain;if(f.delete||f.retain&&f.attributes){var E=f.delete||f.retain,_=R.slice(p,p+E);return _.forEach(function(O){f.delete?c.push(O):f.retain&&f.attributes&&c.retain(ke.default.length(O),At.default.invert(f.attributes,O.attributes))}),p+E}}return p},0),c.chop()},m.prototype.transform=function(R,c){if(c===void 0&&(c=!1),c=!!c,typeof R=="number")return this.transformPosition(R,c);for(var p=R,f=ke.default.iterator(this.ops),E=ke.default.iterator(p.ops),_=new m;f.hasNext()||E.hasNext();)if(f.peekType()==="insert"&&(c||E.peekType()!=="insert"))_.retain(ke.default.length(f.next()));else if(E.peekType()==="insert")_.push(E.next());else{var O=Math.min(f.peekLength(),E.peekLength()),g=f.next(O),b=E.next(O);if(g.delete)continue;b.delete?_.push(b):_.retain(O,At.default.transform(g.attributes,b.attributes,c))}return _.chop()},m.prototype.transformPosition=function(R,c){c===void 0&&(c=!1),c=!!c;for(var p=ke.default.iterator(this.ops),f=0;p.hasNext()&&f<=R;){var E=p.peekLength(),_=p.peekType();if(p.next(),_==="delete"){R-=Math.min(E,R-f);continue}else _==="insert"&&(f<R||!c)&&(R+=E);f+=E}return R},m.Op=ke.default,m.AttributeMap=At.default,m}(),br=mr;const _r=Ee.getDefaultExportFromCjs(br);/*!
|
|
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 $n={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"]]},Or=H.defineComponent({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:m=>["delta","html","text"].includes(m)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:m=>["snow","bubble",""].includes(m)},toolbar:{type:[String,Array,Object],required:!1,validator:m=>typeof m=="string"&&m!==""?m.charAt(0)==="#"?!0:Object.keys($n).indexOf(m)!==-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:(m,R)=>{H.onMounted(()=>{E()}),H.onBeforeUnmount(()=>{c=null});let c,p;const f=H.ref(),E=()=>{var y;if(f.value){if(p=_(),m.modules)if(Array.isArray(m.modules))for(const w of m.modules)jn.register(`modules/${w.name}`,w.module);else jn.register(`modules/${m.modules.name}`,m.modules.module);c=new jn(f.value,p),h(m.content),c.on("text-change",o),c.on("selection-change",t),c.on("editor-change",l),m.theme!=="bubble"&&f.value.classList.remove("ql-bubble"),m.theme!=="snow"&&f.value.classList.remove("ql-snow"),(y=c.getModule("toolbar"))===null||y===void 0||y.container.addEventListener("mousedown",w=>{w.preventDefault()}),R.emit("ready",c)}},_=()=>{const y={};if(m.theme!==""&&(y.theme=m.theme),m.readOnly&&(y.readOnly=m.readOnly),m.placeholder&&(y.placeholder=m.placeholder),m.toolbar&&m.toolbar!==""&&(y.modules={toolbar:(()=>{if(typeof m.toolbar=="object")return m.toolbar;if(typeof m.toolbar=="string")return m.toolbar.charAt(0)==="#"?m.toolbar:$n[m.toolbar]})()}),m.modules){const w=(()=>{var N,q;const D={};if(Array.isArray(m.modules))for(const z of m.modules)D[z.name]=(N=z.options)!==null&&N!==void 0?N:{};else D[m.modules.name]=(q=m.modules.options)!==null&&q!==void 0?q:{};return D})();y.modules=Object.assign({},y.modules,w)}return Object.assign({},m.globalOptions,m.options,y)},O=y=>typeof y=="object"&&y?y.slice():y,g=y=>Object.values(y.ops).some(w=>!w.retain||Object.keys(w).length!==1);let b;const d=y=>{if(typeof b==typeof y){if(y===b)return!0;if(typeof y=="object"&&y&&typeof b=="object"&&b)return!g(b.diff(y))}return!1},o=(y,w,N)=>{b=O(i()),d(m.content)||R.emit("update:content",b),R.emit("textChange",{delta:y,oldContents:w,source:N})},e=H.ref(),t=(y,w,N)=>{e.value=!!c?.hasFocus(),R.emit("selectionChange",{range:y,oldRange:w,source:N})};H.watch(e,y=>{y?R.emit("focus",f):R.emit("blur",f)});const l=(...y)=>{y[0]==="text-change"&&R.emit("editorChange",{name:y[0],delta:y[1],oldContents:y[2],source:y[3]}),y[0]==="selection-change"&&R.emit("editorChange",{name:y[0],range:y[1],oldRange:y[2],source:y[3]})},a=()=>f.value,s=()=>{var y;return(y=c?.getModule("toolbar"))===null||y===void 0?void 0:y.container},r=()=>{if(c)return c;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.`},i=(y,w)=>m.contentType==="html"?S():m.contentType==="text"?n(y,w):c?.getContents(y,w),h=(y,w="api")=>{const N=y||(m.contentType==="delta"?new _r:"");m.contentType==="html"?T(N):m.contentType==="text"?v(N,w):c?.setContents(N,w),b=O(N)},n=(y,w)=>{var N;return(N=c?.getText(y,w))!==null&&N!==void 0?N:""},v=(y,w="api")=>{c?.setText(y,w)},S=()=>{var y;return(y=c?.root.innerHTML)!==null&&y!==void 0?y:""},T=y=>{c&&(c.root.innerHTML=y)},k=(y,w="api")=>{const N=c?.clipboard.convert(y);N&&c?.setContents(N,w)},L=()=>{c?.focus()},A=()=>{H.nextTick(()=>{var y;!R.slots.toolbar&&c&&((y=c.getModule("toolbar"))===null||y===void 0||y.container.remove()),E()})};return H.watch(()=>m.content,y=>{if(!c||!y||d(y))return;const w=c.getSelection();w&&H.nextTick(()=>c?.setSelection(w)),h(y)},{deep:!0}),H.watch(()=>m.enable,y=>{c&&c.enable(y)}),{editor:f,getEditor:a,getToolbar:s,getQuill:r,getContents:i,setContents:h,getHTML:S,setHTML:T,pasteHTML:k,focus:L,getText:n,setText:v,reinit:A}},render(){var m,R;return[(R=(m=this.$slots).toolbar)===null||R===void 0?void 0:R.call(m),H.h("div",{ref:"editor",...this.$attrs})]}});const Er=["name","value"],wr=["id","data-test","name","required","readonly","autocomplete","placeholder","disabled","maxlength","row"],Ar=["id","data-test","name","type","required","readonly","autocomplete","placeholder","disabled","maxlength"],Tr={key:4,class:"suffix"},kr={key:5,class:"fresh-booking-input-limit"},Sr=H.defineComponent({__name:"TextField",props:{modelValue:{},description:{},suffix:{},label:{},id:{},name:{},placeholder:{},icon:{},iconColor:{},iconType:{default:"fal"},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},type:{default:"text"},autocomplete:{},disabled:{type:Boolean,default:!1},limit:{default:1/0},rows:{default:3},inputStyle:{}},emits:["update:modelValue"],setup(m,{emit:R}){const c=m,p=H.ref(),f=H.ref(),E=c.id||H.ranId(),_=()=>{R("update:modelValue",f.value.getHTML())},O=H.ref({placeholder:c.placeholder,readOnly:c.readonly,theme:"snow"}),g=H.computed({get:()=>c.modelValue,set:l=>{R("update:modelValue",l)}}),b=H.computed(()=>{const l=c.limit;let a=0;return c.modelValue&&(a=c.modelValue.toString().length),l-a}),d=H.computed(()=>c.readonly?void 0:c.placeholder),o=H.computed(()=>!!c.name&&!!c.autocomplete);function e(){if(c.type==="textarea"){const l=p.value;l.setAttribute("style",`height:${l.scrollHeight}px`)}}function t(){const l=p.value;l.style.height="auto",l.style.height=l.scrollHeight+"px"}return H.onMounted(()=>{e()}),(l,a)=>(H.openBlock(),H.createBlock(H.InputField,{label:l.label,id:H.unref(E),icon:l.icon,"icon-color":l.iconColor,"icon-type":l.iconType,required:l.required,type:l.type,readonly:l.readonly,description:l.description,limit:l.limit},{default:H.withCtx(()=>[o.value?H.createCommentVNode("",!0):(H.openBlock(),H.createElementBlock("input",{key:0,type:"hidden",name:l.name,value:l.modelValue},null,8,Er)),l.type==="textarea"?H.withDirectives((H.openBlock(),H.createElementBlock("textarea",H.mergeProps({key:1,"onUpdate:modelValue":a[0]||(a[0]=s=>g.value=s)},l.$attrs,{ref_key:"textField",ref:p,id:H.unref(E),"data-test":H.unref(H.createTestName)(l.name),name:o.value?l.name:void 0,required:!!l.required,readonly:!!l.readonly,autocomplete:l.autocomplete||"off",placeholder:d.value,disabled:l.disabled,maxlength:l.limit,row:l.rows,style:l.inputStyle,onInput:t}),null,16,wr)),[[H.vModelText,g.value]]):l.type==="editor"?(H.openBlock(),H.createBlock(H.unref(Or),{key:2,content:l.modelValue,ref_key:"editorField",ref:f,options:O.value,"content-type":"html",id:H.unref(E),name:o.value?l.name:null,required:!!l.required,autocomplete:l.autocomplete||"off",placeholder:d.value,disabled:l.disabled,style:H.normalizeStyle(l.inputStyle),"onUpdate:content":_},null,8,["content","options","id","name","required","autocomplete","placeholder","disabled","style"])):H.withDirectives((H.openBlock(),H.createElementBlock("input",H.mergeProps({key:3,"onUpdate:modelValue":a[1]||(a[1]=s=>g.value=s)},l.$attrs,{id:H.unref(E),"data-test":H.unref(H.createTestName)(l.name),name:o.value?l.name:void 0,type:l.type,required:!!l.required,readonly:!!l.readonly,autocomplete:l.autocomplete||"off",placeholder:d.value,disabled:l.disabled,maxlength:l.limit,style:l.inputStyle}),null,16,Ar)),[[H.vModelDynamic,g.value]]),l.suffix?(H.openBlock(),H.createElementBlock("div",Tr,[H.createBaseVNode("div",null,[H.createBaseVNode("span",null,H.toDisplayString(l.suffix),1)])])):H.createCommentVNode("",!0),b.value!==1/0?(H.openBlock(),H.createElementBlock("div",kr,[H.createBaseVNode("span",{class:H.normalizeClass({danger:b.value<=15})},H.toDisplayString(b.value),3),H.createTextVNode("/"),H.createBaseVNode("small",null,H.toDisplayString(l.limit),1)])):H.createCommentVNode("",!0)]),_:1},8,["label","id","icon","icon-color","icon-type","required","type","readonly","description","limit"]))}});const Nr=H._export_sfc(Sr,[["__scopeId","data-v-a648c80a"]]);var Pr=Object.defineProperty,xr=Object.defineProperties,Lr=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Gn=(m,R,c)=>R in m?Pr(m,R,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[R]=c,ft=(m,R)=>{for(var c in R||(R={}))qr.call(R,c)&&Gn(m,c,R[c]);if(Kn)for(var c of Kn(R))jr.call(R,c)&&Gn(m,c,R[c]);return m},Zn=(m,R)=>xr(m,Lr(R));const Rr={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(m){this.autoscroll&&m&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var m;const R=((m=this.$refs.dropdownMenu)==null?void 0:m.children[this.typeAheadPointer])||!1;if(R){const c=this.getDropdownViewport(),{top:p,bottom:f,height:E}=R.getBoundingClientRect();if(p<c.top)return this.$refs.dropdownMenu.scrollTop=R.offsetTop;if(f>c.bottom)return this.$refs.dropdownMenu.scrollTop=R.offsetTop-(c.height-E)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},Ir={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let m=0;m<this.filteredOptions.length;m++)if(this.selectable(this.filteredOptions[m])){this.typeAheadPointer=m;break}},open(m){m&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let m=this.typeAheadPointer-1;m>=0;m--)if(this.selectable(this.filteredOptions[m])){this.typeAheadPointer=m;break}},typeAheadDown(){for(let m=this.typeAheadPointer+1;m<this.filteredOptions.length;m++)if(this.selectable(this.filteredOptions[m])){this.typeAheadPointer=m;break}},typeAheadSelect(){const m=this.filteredOptions[this.typeAheadPointer];m&&this.selectable(m)&&this.select(m)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},Br={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(m){this.mutableLoading=m}},methods:{toggleLoading(m=null){return m==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=m}}},Fn=(m,R)=>{const c=m.__vccOpts||m;for(const[p,f]of R)c[p]=f;return c},Mr={},Dr={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},Cr=H.createBaseVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),Fr=[Cr];function Ur(m,R){return H.openBlock(),H.createElementBlock("svg",Dr,Fr)}const Hr=Fn(Mr,[["render",Ur]]),Vr={},zr={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},$r=H.createBaseVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),Kr=[$r];function Gr(m,R){return H.openBlock(),H.createElementBlock("svg",zr,Kr)}const Zr=Fn(Vr,[["render",Gr]]),Wn={Deselect:Hr,OpenIndicator:Zr},Wr={mounted(m,{instance:R}){if(R.appendToBody){const{height:c,top:p,left:f,width:E}=R.$refs.toggle.getBoundingClientRect();let _=window.scrollX||window.pageXOffset,O=window.scrollY||window.pageYOffset;m.unbindPosition=R.calculatePosition(m,R,{width:E+"px",left:_+f+"px",top:O+p+c+"px"}),document.body.appendChild(m)}},unmounted(m,{instance:R}){R.appendToBody&&(m.unbindPosition&&typeof m.unbindPosition=="function"&&m.unbindPosition(),m.parentNode&&m.parentNode.removeChild(m))}};function Yr(m){const R={};return Object.keys(m).sort().forEach(c=>{R[c]=m[c]}),JSON.stringify(R)}let Xr=0;function Qr(){return++Xr}const Jr={components:ft({},Wn),directives:{appendToBody:Wr},mixins:[Rr,Ir,Br],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:m=>m},selectable:{type:Function,default:m=>!0},getOptionLabel:{type:Function,default(m){return typeof m=="object"?m.hasOwnProperty(this.label)?m[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(m)}.
|
|
55
|
-
https://vue-select.org/api/props.html#getoptionlabel`):m}},getOptionKey:{type:Function,default(m){if(typeof m!="object")return m;try{return m.hasOwnProperty("id")?m.id:Yr(m)}catch(R){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
|
56
|
-
https://vue-select.org/api/props.html#getoptionkey`,m,R)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(m,R,c){return(R||"").toLocaleLowerCase().indexOf(c.toLocaleLowerCase())>-1}},filter:{type:Function,default(m,R){return m.filter(c=>{let p=this.getOptionLabel(c);return typeof p=="number"&&(p=p.toString()),this.filterBy(c,p,R)})}},createOption:{type:Function,default(m){return typeof this.optionList[0]=="object"?{[this.label]:m}:m}},resetOnOptionsChange:{default:!1,validator:m=>["function","boolean"].includes(typeof m)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:m,multiple:R}){return m&&!R}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(m,R)=>m},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(m,R,{width:c,top:p,left:f}){m.style.top=p,m.style.left=f,m.style.width=c}},dropdownShouldOpen:{type:Function,default({noDrop:m,open:R,mutableLoading:c}){return m?!1:R&&!c}},uid:{type:[String,Number],default:()=>Qr()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let m=this.modelValue;return this.isTrackingValues&&(m=this.$data._value),m!=null&&m!==""?[].concat(m):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const m={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:ft({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:R=>this.search=R.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:m,listFooter:m,header:Zn(ft({},m),{deselect:this.deselect}),footer:Zn(ft({},m),{deselect:this.deselect})}},childComponents(){return ft(ft({},Wn),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const m=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return m;const R=this.search.length?this.filter(m,this.search,this):m;if(this.taggable&&this.search.length){const c=this.createOption(this.search);this.optionExists(c)||R.unshift(c)}return R},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(m,R){const c=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(m,R,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&c()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(m){this.isTrackingValues&&this.setInternalValueFromOptions(m)}},multiple(){this.clearSelection()},open(m){this.$emit(m?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(m){Array.isArray(m)?this.$data._value=m.map(R=>this.findOptionFromReducedValue(R)):this.$data._value=this.findOptionFromReducedValue(m)},select(m){this.$emit("option:selecting",m),this.isOptionSelected(m)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(m):(this.taggable&&!this.optionExists(m)&&(this.$emit("option:created",m),this.pushTag(m)),this.multiple&&(m=this.selectedValue.concat(m)),this.updateValue(m),this.$emit("option:selected",m)),this.onAfterSelect(m)},deselect(m){this.$emit("option:deselecting",m),this.updateValue(this.selectedValue.filter(R=>!this.optionComparator(R,m))),this.$emit("option:deselected",m)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(m){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(m){typeof this.modelValue>"u"&&(this.$data._value=m),m!==null&&(Array.isArray(m)?m=m.map(R=>this.reduce(R)):m=this.reduce(m)),this.$emit("update:modelValue",m)},toggleDropdown(m){const R=m.target!==this.searchEl;R&&m.preventDefault();const c=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||c.filter(Boolean).some(p=>p.contains(m.target)||p===m.target)){m.preventDefault();return}this.open&&R?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(m){return this.selectedValue.some(R=>this.optionComparator(R,m))},isOptionDeselectable(m){return this.isOptionSelected(m)&&this.deselectFromDropdown},optionComparator(m,R){return this.getOptionKey(m)===this.getOptionKey(R)},findOptionFromReducedValue(m){const R=p=>JSON.stringify(this.reduce(p))===JSON.stringify(m),c=[...this.options,...this.pushedTags].filter(R);return c.length===1?c[0]:c.find(p=>this.optionComparator(p,this.$data._value))||m},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let m=null;this.multiple&&(m=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(m)}},optionExists(m){return this.optionList.some(R=>this.optionComparator(R,m))},normalizeOptionForSlot(m){return typeof m=="object"?m:{[this.label]:m}},pushTag(m){this.pushedTags.push(m)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:m,multiple:R}=this;this.clearSearchOnBlur({clearSearchOnSelect:m,multiple:R})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(m){const R=f=>(f.preventDefault(),!this.isComposing&&this.typeAheadSelect()),c={8:f=>this.maybeDeleteValue(),9:f=>this.onTab(),27:f=>this.onEscape(),38:f=>(f.preventDefault(),this.typeAheadUp()),40:f=>(f.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(f=>c[f]=R);const p=this.mapKeydown(c,this);if(typeof p[m.keyCode]=="function")return p[m.keyCode](m)}}},ei=["dir"],ti=["id","aria-expanded","aria-owns"],ni={ref:"selectedOptions",class:"vs__selected-options"},ri=["disabled","title","aria-label","onClick"],ii={ref:"actions",class:"vs__actions"},oi=["disabled"],li={class:"vs__spinner"},ai=["id"],ui=["id","aria-selected","onMouseover","onClick"],si={key:0,class:"vs__no-options"},fi=H.createTextVNode(" Sorry, no matching options. "),ci=["id"];function hi(m,R,c,p,f,E){const _=H.resolveDirective("append-to-body");return H.openBlock(),H.createElementBlock("div",{dir:c.dir,class:H.normalizeClass(["v-select",E.stateClasses])},[H.renderSlot(m.$slots,"header",H.normalizeProps(H.guardReactiveProps(E.scope.header))),H.createBaseVNode("div",{id:`vs${c.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":E.dropdownOpen.toString(),"aria-owns":`vs${c.uid}__listbox`,"aria-label":"Search for option",onMousedown:R[1]||(R[1]=O=>E.toggleDropdown(O))},[H.createBaseVNode("div",ni,[(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(E.selectedValue,(O,g)=>H.renderSlot(m.$slots,"selected-option-container",{option:E.normalizeOptionForSlot(O),deselect:E.deselect,multiple:c.multiple,disabled:c.disabled},()=>[(H.openBlock(),H.createElementBlock("span",{key:c.getOptionKey(O),class:"vs__selected"},[H.renderSlot(m.$slots,"selected-option",H.normalizeProps(H.guardReactiveProps(E.normalizeOptionForSlot(O))),()=>[H.createTextVNode(H.toDisplayString(c.getOptionLabel(O)),1)]),c.multiple?(H.openBlock(),H.createElementBlock("button",{key:0,ref_for:!0,ref:b=>f.deselectButtons[g]=b,disabled:c.disabled,type:"button",class:"vs__deselect",title:`Deselect ${c.getOptionLabel(O)}`,"aria-label":`Deselect ${c.getOptionLabel(O)}`,onClick:b=>E.deselect(O)},[(H.openBlock(),H.createBlock(H.resolveDynamicComponent(E.childComponents.Deselect)))],8,ri)):H.createCommentVNode("",!0)]))])),256)),H.renderSlot(m.$slots,"search",H.normalizeProps(H.guardReactiveProps(E.scope.search)),()=>[H.createBaseVNode("input",H.mergeProps({class:"vs__search"},E.scope.search.attributes,H.toHandlers(E.scope.search.events)),null,16)])],512),H.createBaseVNode("div",ii,[H.withDirectives(H.createBaseVNode("button",{ref:"clearButton",disabled:c.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:R[0]||(R[0]=(...O)=>E.clearSelection&&E.clearSelection(...O))},[(H.openBlock(),H.createBlock(H.resolveDynamicComponent(E.childComponents.Deselect)))],8,oi),[[H.vShow,E.showClearButton]]),H.renderSlot(m.$slots,"open-indicator",H.normalizeProps(H.guardReactiveProps(E.scope.openIndicator)),()=>[c.noDrop?H.createCommentVNode("",!0):(H.openBlock(),H.createBlock(H.resolveDynamicComponent(E.childComponents.OpenIndicator),H.normalizeProps(H.mergeProps({key:0},E.scope.openIndicator.attributes)),null,16))]),H.renderSlot(m.$slots,"spinner",H.normalizeProps(H.guardReactiveProps(E.scope.spinner)),()=>[H.withDirectives(H.createBaseVNode("div",li,"Loading...",512),[[H.vShow,m.mutableLoading]])])],512)],40,ti),H.createVNode(H.Transition,{name:c.transition},{default:H.withCtx(()=>[E.dropdownOpen?H.withDirectives((H.openBlock(),H.createElementBlock("ul",{id:`vs${c.uid}__listbox`,ref:"dropdownMenu",key:`vs${c.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:R[2]||(R[2]=H.withModifiers((...O)=>E.onMousedown&&E.onMousedown(...O),["prevent"])),onMouseup:R[3]||(R[3]=(...O)=>E.onMouseUp&&E.onMouseUp(...O))},[H.renderSlot(m.$slots,"list-header",H.normalizeProps(H.guardReactiveProps(E.scope.listHeader))),(H.openBlock(!0),H.createElementBlock(H.Fragment,null,H.renderList(E.filteredOptions,(O,g)=>(H.openBlock(),H.createElementBlock("li",{id:`vs${c.uid}__option-${g}`,key:c.getOptionKey(O),role:"option",class:H.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":E.isOptionDeselectable(O)&&g===m.typeAheadPointer,"vs__dropdown-option--selected":E.isOptionSelected(O),"vs__dropdown-option--highlight":g===m.typeAheadPointer,"vs__dropdown-option--disabled":!c.selectable(O)}]),"aria-selected":g===m.typeAheadPointer?!0:null,onMouseover:b=>c.selectable(O)?m.typeAheadPointer=g:null,onClick:H.withModifiers(b=>c.selectable(O)?E.select(O):null,["prevent","stop"])},[H.renderSlot(m.$slots,"option",H.normalizeProps(H.guardReactiveProps(E.normalizeOptionForSlot(O))),()=>[H.createTextVNode(H.toDisplayString(c.getOptionLabel(O)),1)])],42,ui))),128)),E.filteredOptions.length===0?(H.openBlock(),H.createElementBlock("li",si,[H.renderSlot(m.$slots,"no-options",H.normalizeProps(H.guardReactiveProps(E.scope.noOptions)),()=>[fi])])):H.createCommentVNode("",!0),H.renderSlot(m.$slots,"list-footer",H.normalizeProps(H.guardReactiveProps(E.scope.listFooter)))],40,ai)),[[_]]):(H.openBlock(),H.createElementBlock("ul",{key:1,id:`vs${c.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,ci))]),_:3},8,["name"]),H.renderSlot(m.$slots,"footer",H.normalizeProps(H.guardReactiveProps(E.scope.footer)))],10,ei)}const di=Fn(Jr,[["render",hi]]),pi=["name","value"],vi=H.defineComponent({__name:"SelectField",props:{modelValue:{},label:{},options:{},labelKey:{default:"label"},valueKey:{default:"value"},name:{},icon:{},iconType:{},iconColor:{},id:{},multiple:{type:Boolean,default:!1},taggable:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},placeholder:{},autocomplete:{default:"off"},clearable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(m,{emit:R}){const c=m,p=c.id||H.ranId(),f=H.ref();function E(_){R("update:modelValue",_)}return H.watch(f,_=>{E(_)}),H.onMounted(()=>f.value=c.modelValue),(_,O)=>(H.openBlock(),H.createBlock(H.InputField,{label:_.label,id:H.unref(p),icon:_.icon,"icon-type":_.iconType,"icon-color":_.iconColor,required:_.required,type:"dropdown",readonly:_.readonly},{default:H.withCtx(()=>[H.createBaseVNode("input",{type:"hidden",name:_.name,value:_.modelValue},null,8,pi),H.createVNode(H.unref(di),{modelValue:f.value,"onUpdate:modelValue":O[0]||(O[0]=g=>f.value=g),label:_.labelKey,uid:H.unref(p),reduce:g=>g[_.valueKey],placeholder:_.placeholder,options:_.options,multiple:_.multiple,taggable:_.taggable,autocomplete:_.autocomplete,clearable:_.clearable},{option:H.withCtx(g=>[H.renderSlot(_.$slots,"option",{data:g})]),"selected-option":H.withCtx(g=>[H.renderSlot(_.$slots,"selected-option",{data:g})]),_:3},8,["modelValue","label","uid","reduce","placeholder","options","multiple","taggable","autocomplete","clearable"])]),_:3},8,["label","id","icon","icon-type","icon-color","required","readonly"]))}});exports.TextField=Nr;exports._sfc_main=vi;
|