@opentiny/fluent-editor 3.17.1 → 3.17.2

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/index.js DELETED
@@ -1,361 +0,0 @@
1
- "use strict";var eh=Object.defineProperty;var sh=(i,t,e)=>t in i?eh(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>(sh(i,typeof t!="symbol"?t+"":t,e),e);var ih=typeof global=="object"&&global&&global.Object===Object&&global;const va=ih;var nh=typeof self=="object"&&self&&self.Object===Object&&self,rh=va||nh||Function("return this")();const Zt=rh;var oh=Zt.Symbol;const Ce=oh;var wa=Object.prototype,lh=wa.hasOwnProperty,ah=wa.toString,Ks=Ce?Ce.toStringTag:void 0;function ch(i){var t=lh.call(i,Ks),e=i[Ks];try{i[Ks]=void 0;var s=!0}catch{}var n=ah.call(i);return s&&(t?i[Ks]=e:delete i[Ks]),n}var hh=Object.prototype,uh=hh.toString;function dh(i){return uh.call(i)}var fh="[object Null]",ph="[object Undefined]",Yo=Ce?Ce.toStringTag:void 0;function vs(i){return i==null?i===void 0?ph:fh:Yo&&Yo in Object(i)?ch(i):dh(i)}function re(i){return i!=null&&typeof i=="object"}var gh=Array.isArray;const He=gh;function Le(i){var t=typeof i;return i!=null&&(t=="object"||t=="function")}function Ca(i){return i}var mh="[object AsyncFunction]",bh="[object Function]",Ah="[object GeneratorFunction]",yh="[object Proxy]";function wo(i){if(!Le(i))return!1;var t=vs(i);return t==bh||t==Ah||t==mh||t==yh}var vh=Zt["__core-js_shared__"];const xr=vh;var Jo=function(){var i=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function wh(i){return!!Jo&&Jo in i}var Ch=Function.prototype,Eh=Ch.toString;function je(i){if(i!=null){try{return Eh.call(i)}catch{}try{return i+""}catch{}}return""}var Lh=/[\\^$.*+?()[\]{}|]/g,xh=/^\[object .+?Constructor\]$/,Th=Function.prototype,Nh=Object.prototype,Sh=Th.toString,qh=Nh.hasOwnProperty,Ih=RegExp("^"+Sh.call(qh).replace(Lh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Oh(i){if(!Le(i)||wh(i))return!1;var t=wo(i)?Ih:xh;return t.test(je(i))}function Rh(i,t){return i==null?void 0:i[t]}function ze(i,t){var e=Rh(i,t);return Oh(e)?e:void 0}var Mh=ze(Zt,"WeakMap");const Kr=Mh;var $o=Object.create,kh=function(){function i(){}return function(t){if(!Le(t))return{};if($o)return $o(t);i.prototype=t;var e=new i;return i.prototype=void 0,e}}();const Bh=kh;function Dh(i,t,e){switch(e.length){case 0:return i.call(t);case 1:return i.call(t,e[0]);case 2:return i.call(t,e[0],e[1]);case 3:return i.call(t,e[0],e[1],e[2])}return i.apply(t,e)}function Ea(i,t){var e=-1,s=i.length;for(t||(t=Array(s));++e<s;)t[e]=i[e];return t}var Ph=800,Hh=16,Uh=Date.now;function Fh(i){var t=0,e=0;return function(){var s=Uh(),n=Hh-(s-e);if(e=s,n>0){if(++t>=Ph)return arguments[0]}else t=0;return i.apply(void 0,arguments)}}function jh(i){return function(){return i}}var zh=function(){try{var i=ze(Object,"defineProperty");return i({},"",{}),i}catch{}}();const hn=zh;var Wh=hn?function(i,t){return hn(i,"toString",{configurable:!0,enumerable:!1,value:jh(t),writable:!0})}:Ca;const Vh=Wh;var Kh=Fh(Vh);const Xh=Kh;function _h(i,t){for(var e=-1,s=i==null?0:i.length;++e<s&&t(i[e],e,i)!==!1;);return i}var Gh=9007199254740991,Zh=/^(?:0|[1-9]\d*)$/;function La(i,t){var e=typeof i;return t=t??Gh,!!t&&(e=="number"||e!="symbol"&&Zh.test(i))&&i>-1&&i%1==0&&i<t}function Co(i,t,e){t=="__proto__"&&hn?hn(i,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[t]=e}function di(i,t){return i===t||i!==i&&t!==t}var Qh=Object.prototype,Yh=Qh.hasOwnProperty;function xa(i,t,e){var s=i[t];(!(Yh.call(i,t)&&di(s,e))||e===void 0&&!(t in i))&&Co(i,t,e)}function fi(i,t,e,s){var n=!e;e||(e={});for(var r=-1,o=t.length;++r<o;){var l=t[r],a=s?s(e[l],i[l],l,e,i):void 0;a===void 0&&(a=i[l]),n?Co(e,l,a):xa(e,l,a)}return e}var tl=Math.max;function Jh(i,t,e){return t=tl(t===void 0?i.length-1:t,0),function(){for(var s=arguments,n=-1,r=tl(s.length-t,0),o=Array(r);++n<r;)o[n]=s[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=s[n];return l[t]=e(o),Dh(i,this,l)}}function $h(i,t){return Xh(Jh(i,t,Ca),i+"")}var tu=9007199254740991;function Ta(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=tu}function vn(i){return i!=null&&Ta(i.length)&&!wo(i)}function eu(i,t,e){if(!Le(e))return!1;var s=typeof t;return(s=="number"?vn(e)&&La(t,e.length):s=="string"&&t in e)?di(e[t],i):!1}function su(i){return $h(function(t,e){var s=-1,n=e.length,r=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(r=i.length>3&&typeof r=="function"?(n--,r):void 0,o&&eu(e[0],e[1],o)&&(r=n<3?void 0:r,n=1),t=Object(t);++s<n;){var l=e[s];l&&i(t,l,s,r)}return t})}var iu=Object.prototype;function Eo(i){var t=i&&i.constructor,e=typeof t=="function"&&t.prototype||iu;return i===e}function nu(i,t){for(var e=-1,s=Array(i);++e<i;)s[e]=t(e);return s}var ru="[object Arguments]";function el(i){return re(i)&&vs(i)==ru}var Na=Object.prototype,ou=Na.hasOwnProperty,lu=Na.propertyIsEnumerable,au=el(function(){return arguments}())?el:function(i){return re(i)&&ou.call(i,"callee")&&!lu.call(i,"callee")};const Xr=au;function cu(){return!1}var Sa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,sl=Sa&&typeof module=="object"&&module&&!module.nodeType&&module,hu=sl&&sl.exports===Sa,il=hu?Zt.Buffer:void 0,uu=il?il.isBuffer:void 0,du=uu||cu;const si=du;var fu="[object Arguments]",pu="[object Array]",gu="[object Boolean]",mu="[object Date]",bu="[object Error]",Au="[object Function]",yu="[object Map]",vu="[object Number]",wu="[object Object]",Cu="[object RegExp]",Eu="[object Set]",Lu="[object String]",xu="[object WeakMap]",Tu="[object ArrayBuffer]",Nu="[object DataView]",Su="[object Float32Array]",qu="[object Float64Array]",Iu="[object Int8Array]",Ou="[object Int16Array]",Ru="[object Int32Array]",Mu="[object Uint8Array]",ku="[object Uint8ClampedArray]",Bu="[object Uint16Array]",Du="[object Uint32Array]",X={};X[Su]=X[qu]=X[Iu]=X[Ou]=X[Ru]=X[Mu]=X[ku]=X[Bu]=X[Du]=!0;X[fu]=X[pu]=X[Tu]=X[gu]=X[Nu]=X[mu]=X[bu]=X[Au]=X[yu]=X[vu]=X[wu]=X[Cu]=X[Eu]=X[Lu]=X[xu]=!1;function Pu(i){return re(i)&&Ta(i.length)&&!!X[vs(i)]}function Lo(i){return function(t){return i(t)}}var qa=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Js=qa&&typeof module=="object"&&module&&!module.nodeType&&module,Hu=Js&&Js.exports===qa,Tr=Hu&&va.process,Uu=function(){try{var i=Js&&Js.require&&Js.require("util").types;return i||Tr&&Tr.binding&&Tr.binding("util")}catch{}}();const ms=Uu;var nl=ms&&ms.isTypedArray,Fu=nl?Lo(nl):Pu;const xo=Fu;var ju=Object.prototype,zu=ju.hasOwnProperty;function Ia(i,t){var e=He(i),s=!e&&Xr(i),n=!e&&!s&&si(i),r=!e&&!s&&!n&&xo(i),o=e||s||n||r,l=o?nu(i.length,String):[],a=l.length;for(var h in i)(t||zu.call(i,h))&&!(o&&(h=="length"||n&&(h=="offset"||h=="parent")||r&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||La(h,a)))&&l.push(h);return l}function Oa(i,t){return function(e){return i(t(e))}}var Wu=Oa(Object.keys,Object);const Vu=Wu;var Ku=Object.prototype,Xu=Ku.hasOwnProperty;function _u(i){if(!Eo(i))return Vu(i);var t=[];for(var e in Object(i))Xu.call(i,e)&&e!="constructor"&&t.push(e);return t}function To(i){return vn(i)?Ia(i):_u(i)}function Gu(i){var t=[];if(i!=null)for(var e in Object(i))t.push(e);return t}var Zu=Object.prototype,Qu=Zu.hasOwnProperty;function Yu(i){if(!Le(i))return Gu(i);var t=Eo(i),e=[];for(var s in i)s=="constructor"&&(t||!Qu.call(i,s))||e.push(s);return e}function pi(i){return vn(i)?Ia(i,!0):Yu(i)}var Ju=ze(Object,"create");const ii=Ju;function $u(){this.__data__=ii?ii(null):{},this.size=0}function td(i){var t=this.has(i)&&delete this.__data__[i];return this.size-=t?1:0,t}var ed="__lodash_hash_undefined__",sd=Object.prototype,id=sd.hasOwnProperty;function nd(i){var t=this.__data__;if(ii){var e=t[i];return e===ed?void 0:e}return id.call(t,i)?t[i]:void 0}var rd=Object.prototype,od=rd.hasOwnProperty;function ld(i){var t=this.__data__;return ii?t[i]!==void 0:od.call(t,i)}var ad="__lodash_hash_undefined__";function cd(i,t){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=ii&&t===void 0?ad:t,this}function Ue(i){var t=-1,e=i==null?0:i.length;for(this.clear();++t<e;){var s=i[t];this.set(s[0],s[1])}}Ue.prototype.clear=$u;Ue.prototype.delete=td;Ue.prototype.get=nd;Ue.prototype.has=ld;Ue.prototype.set=cd;function hd(){this.__data__=[],this.size=0}function wn(i,t){for(var e=i.length;e--;)if(di(i[e][0],t))return e;return-1}var ud=Array.prototype,dd=ud.splice;function fd(i){var t=this.__data__,e=wn(t,i);if(e<0)return!1;var s=t.length-1;return e==s?t.pop():dd.call(t,e,1),--this.size,!0}function pd(i){var t=this.__data__,e=wn(t,i);return e<0?void 0:t[e][1]}function gd(i){return wn(this.__data__,i)>-1}function md(i,t){var e=this.__data__,s=wn(e,i);return s<0?(++this.size,e.push([i,t])):e[s][1]=t,this}function ce(i){var t=-1,e=i==null?0:i.length;for(this.clear();++t<e;){var s=i[t];this.set(s[0],s[1])}}ce.prototype.clear=hd;ce.prototype.delete=fd;ce.prototype.get=pd;ce.prototype.has=gd;ce.prototype.set=md;var bd=ze(Zt,"Map");const ni=bd;function Ad(){this.size=0,this.__data__={hash:new Ue,map:new(ni||ce),string:new Ue}}function yd(i){var t=typeof i;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?i!=="__proto__":i===null}function Cn(i,t){var e=i.__data__;return yd(t)?e[typeof t=="string"?"string":"hash"]:e.map}function vd(i){var t=Cn(this,i).delete(i);return this.size-=t?1:0,t}function wd(i){return Cn(this,i).get(i)}function Cd(i){return Cn(this,i).has(i)}function Ed(i,t){var e=Cn(this,i),s=e.size;return e.set(i,t),this.size+=e.size==s?0:1,this}function We(i){var t=-1,e=i==null?0:i.length;for(this.clear();++t<e;){var s=i[t];this.set(s[0],s[1])}}We.prototype.clear=Ad;We.prototype.delete=vd;We.prototype.get=wd;We.prototype.has=Cd;We.prototype.set=Ed;function Ra(i,t){for(var e=-1,s=t.length,n=i.length;++e<s;)i[n+e]=t[e];return i}var Ld=Oa(Object.getPrototypeOf,Object);const No=Ld;var xd="[object Object]",Td=Function.prototype,Nd=Object.prototype,Ma=Td.toString,Sd=Nd.hasOwnProperty,qd=Ma.call(Object);function Id(i){if(!re(i)||vs(i)!=xd)return!1;var t=No(i);if(t===null)return!0;var e=Sd.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Ma.call(e)==qd}function Od(){this.__data__=new ce,this.size=0}function Rd(i){var t=this.__data__,e=t.delete(i);return this.size=t.size,e}function Md(i){return this.__data__.get(i)}function kd(i){return this.__data__.has(i)}var Bd=200;function Dd(i,t){var e=this.__data__;if(e instanceof ce){var s=e.__data__;if(!ni||s.length<Bd-1)return s.push([i,t]),this.size=++e.size,this;e=this.__data__=new We(s)}return e.set(i,t),this.size=e.size,this}function Kt(i){var t=this.__data__=new ce(i);this.size=t.size}Kt.prototype.clear=Od;Kt.prototype.delete=Rd;Kt.prototype.get=Md;Kt.prototype.has=kd;Kt.prototype.set=Dd;function Pd(i,t){return i&&fi(t,To(t),i)}function Hd(i,t){return i&&fi(t,pi(t),i)}var ka=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rl=ka&&typeof module=="object"&&module&&!module.nodeType&&module,Ud=rl&&rl.exports===ka,ol=Ud?Zt.Buffer:void 0,ll=ol?ol.allocUnsafe:void 0;function Ba(i,t){if(t)return i.slice();var e=i.length,s=ll?ll(e):new i.constructor(e);return i.copy(s),s}function Fd(i,t){for(var e=-1,s=i==null?0:i.length,n=0,r=[];++e<s;){var o=i[e];t(o,e,i)&&(r[n++]=o)}return r}function Da(){return[]}var jd=Object.prototype,zd=jd.propertyIsEnumerable,al=Object.getOwnPropertySymbols,Wd=al?function(i){return i==null?[]:(i=Object(i),Fd(al(i),function(t){return zd.call(i,t)}))}:Da;const So=Wd;function Vd(i,t){return fi(i,So(i),t)}var Kd=Object.getOwnPropertySymbols,Xd=Kd?function(i){for(var t=[];i;)Ra(t,So(i)),i=No(i);return t}:Da;const Pa=Xd;function _d(i,t){return fi(i,Pa(i),t)}function Ha(i,t,e){var s=t(i);return He(i)?s:Ra(s,e(i))}function _r(i){return Ha(i,To,So)}function Gd(i){return Ha(i,pi,Pa)}var Zd=ze(Zt,"DataView");const Gr=Zd;var Qd=ze(Zt,"Promise");const Zr=Qd;var Yd=ze(Zt,"Set");const Qr=Yd;var cl="[object Map]",Jd="[object Object]",hl="[object Promise]",ul="[object Set]",dl="[object WeakMap]",fl="[object DataView]",$d=je(Gr),tf=je(ni),ef=je(Zr),sf=je(Qr),nf=je(Kr),De=vs;(Gr&&De(new Gr(new ArrayBuffer(1)))!=fl||ni&&De(new ni)!=cl||Zr&&De(Zr.resolve())!=hl||Qr&&De(new Qr)!=ul||Kr&&De(new Kr)!=dl)&&(De=function(i){var t=vs(i),e=t==Jd?i.constructor:void 0,s=e?je(e):"";if(s)switch(s){case $d:return fl;case tf:return cl;case ef:return hl;case sf:return ul;case nf:return dl}return t});const ri=De;var rf=Object.prototype,of=rf.hasOwnProperty;function lf(i){var t=i.length,e=new i.constructor(t);return t&&typeof i[0]=="string"&&of.call(i,"index")&&(e.index=i.index,e.input=i.input),e}var af=Zt.Uint8Array;const un=af;function qo(i){var t=new i.constructor(i.byteLength);return new un(t).set(new un(i)),t}function cf(i,t){var e=t?qo(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.byteLength)}var hf=/\w*$/;function uf(i){var t=new i.constructor(i.source,hf.exec(i));return t.lastIndex=i.lastIndex,t}var pl=Ce?Ce.prototype:void 0,gl=pl?pl.valueOf:void 0;function df(i){return gl?Object(gl.call(i)):{}}function Ua(i,t){var e=t?qo(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var ff="[object Boolean]",pf="[object Date]",gf="[object Map]",mf="[object Number]",bf="[object RegExp]",Af="[object Set]",yf="[object String]",vf="[object Symbol]",wf="[object ArrayBuffer]",Cf="[object DataView]",Ef="[object Float32Array]",Lf="[object Float64Array]",xf="[object Int8Array]",Tf="[object Int16Array]",Nf="[object Int32Array]",Sf="[object Uint8Array]",qf="[object Uint8ClampedArray]",If="[object Uint16Array]",Of="[object Uint32Array]";function Rf(i,t,e){var s=i.constructor;switch(t){case wf:return qo(i);case ff:case pf:return new s(+i);case Cf:return cf(i,e);case Ef:case Lf:case xf:case Tf:case Nf:case Sf:case qf:case If:case Of:return Ua(i,e);case gf:return new s;case mf:case yf:return new s(i);case bf:return uf(i);case Af:return new s;case vf:return df(i)}}function Fa(i){return typeof i.constructor=="function"&&!Eo(i)?Bh(No(i)):{}}var Mf="[object Map]";function kf(i){return re(i)&&ri(i)==Mf}var ml=ms&&ms.isMap,Bf=ml?Lo(ml):kf;const Df=Bf;var Pf="[object Set]";function Hf(i){return re(i)&&ri(i)==Pf}var bl=ms&&ms.isSet,Uf=bl?Lo(bl):Hf;const Ff=Uf;var jf=1,zf=2,Wf=4,ja="[object Arguments]",Vf="[object Array]",Kf="[object Boolean]",Xf="[object Date]",_f="[object Error]",za="[object Function]",Gf="[object GeneratorFunction]",Zf="[object Map]",Qf="[object Number]",Wa="[object Object]",Yf="[object RegExp]",Jf="[object Set]",$f="[object String]",t1="[object Symbol]",e1="[object WeakMap]",s1="[object ArrayBuffer]",i1="[object DataView]",n1="[object Float32Array]",r1="[object Float64Array]",o1="[object Int8Array]",l1="[object Int16Array]",a1="[object Int32Array]",c1="[object Uint8Array]",h1="[object Uint8ClampedArray]",u1="[object Uint16Array]",d1="[object Uint32Array]",K={};K[ja]=K[Vf]=K[s1]=K[i1]=K[Kf]=K[Xf]=K[n1]=K[r1]=K[o1]=K[l1]=K[a1]=K[Zf]=K[Qf]=K[Wa]=K[Yf]=K[Jf]=K[$f]=K[t1]=K[c1]=K[h1]=K[u1]=K[d1]=!0;K[_f]=K[za]=K[e1]=!1;function on(i,t,e,s,n,r){var o,l=t&jf,a=t&zf,h=t&Wf;if(e&&(o=n?e(i,s,n,r):e(i)),o!==void 0)return o;if(!Le(i))return i;var u=He(i);if(u){if(o=lf(i),!l)return Ea(i,o)}else{var g=ri(i),f=g==za||g==Gf;if(si(i))return Ba(i,l);if(g==Wa||g==ja||f&&!n){if(o=a||f?{}:Fa(i),!l)return a?_d(i,Hd(o,i)):Vd(i,Pd(o,i))}else{if(!K[g])return n?i:{};o=Rf(i,g,l)}}r||(r=new Kt);var p=r.get(i);if(p)return p;r.set(i,o),Ff(i)?i.forEach(function(y){o.add(on(y,t,e,y,i,r))}):Df(i)&&i.forEach(function(y,w){o.set(w,on(y,t,e,w,i,r))});var b=h?a?Gd:_r:a?pi:To,v=u?void 0:b(i);return _h(v||i,function(y,w){v&&(w=y,y=i[w]),xa(o,w,on(y,t,e,w,i,r))}),o}var f1=1,p1=4;function fs(i){return on(i,f1|p1)}var g1="__lodash_hash_undefined__";function m1(i){return this.__data__.set(i,g1),this}function b1(i){return this.__data__.has(i)}function dn(i){var t=-1,e=i==null?0:i.length;for(this.__data__=new We;++t<e;)this.add(i[t])}dn.prototype.add=dn.prototype.push=m1;dn.prototype.has=b1;function A1(i,t){for(var e=-1,s=i==null?0:i.length;++e<s;)if(t(i[e],e,i))return!0;return!1}function y1(i,t){return i.has(t)}var v1=1,w1=2;function Va(i,t,e,s,n,r){var o=e&v1,l=i.length,a=t.length;if(l!=a&&!(o&&a>l))return!1;var h=r.get(i),u=r.get(t);if(h&&u)return h==t&&u==i;var g=-1,f=!0,p=e&w1?new dn:void 0;for(r.set(i,t),r.set(t,i);++g<l;){var b=i[g],v=t[g];if(s)var y=o?s(v,b,g,t,i,r):s(b,v,g,i,t,r);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!A1(t,function(w,C){if(!y1(p,C)&&(b===w||n(b,w,e,s,r)))return p.push(C)})){f=!1;break}}else if(!(b===v||n(b,v,e,s,r))){f=!1;break}}return r.delete(i),r.delete(t),f}function C1(i){var t=-1,e=Array(i.size);return i.forEach(function(s,n){e[++t]=[n,s]}),e}function E1(i){var t=-1,e=Array(i.size);return i.forEach(function(s){e[++t]=s}),e}var L1=1,x1=2,T1="[object Boolean]",N1="[object Date]",S1="[object Error]",q1="[object Map]",I1="[object Number]",O1="[object RegExp]",R1="[object Set]",M1="[object String]",k1="[object Symbol]",B1="[object ArrayBuffer]",D1="[object DataView]",Al=Ce?Ce.prototype:void 0,Nr=Al?Al.valueOf:void 0;function P1(i,t,e,s,n,r,o){switch(e){case D1:if(i.byteLength!=t.byteLength||i.byteOffset!=t.byteOffset)return!1;i=i.buffer,t=t.buffer;case B1:return!(i.byteLength!=t.byteLength||!r(new un(i),new un(t)));case T1:case N1:case I1:return di(+i,+t);case S1:return i.name==t.name&&i.message==t.message;case O1:case M1:return i==t+"";case q1:var l=C1;case R1:var a=s&L1;if(l||(l=E1),i.size!=t.size&&!a)return!1;var h=o.get(i);if(h)return h==t;s|=x1,o.set(i,t);var u=Va(l(i),l(t),s,n,r,o);return o.delete(i),u;case k1:if(Nr)return Nr.call(i)==Nr.call(t)}return!1}var H1=1,U1=Object.prototype,F1=U1.hasOwnProperty;function j1(i,t,e,s,n,r){var o=e&H1,l=_r(i),a=l.length,h=_r(t),u=h.length;if(a!=u&&!o)return!1;for(var g=a;g--;){var f=l[g];if(!(o?f in t:F1.call(t,f)))return!1}var p=r.get(i),b=r.get(t);if(p&&b)return p==t&&b==i;var v=!0;r.set(i,t),r.set(t,i);for(var y=o;++g<a;){f=l[g];var w=i[f],C=t[f];if(s)var L=o?s(C,w,f,t,i,r):s(w,C,f,i,t,r);if(!(L===void 0?w===C||n(w,C,e,s,r):L)){v=!1;break}y||(y=f=="constructor")}if(v&&!y){var x=i.constructor,T=t.constructor;x!=T&&"constructor"in i&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof T=="function"&&T instanceof T)&&(v=!1)}return r.delete(i),r.delete(t),v}var z1=1,yl="[object Arguments]",vl="[object Array]",Xi="[object Object]",W1=Object.prototype,wl=W1.hasOwnProperty;function V1(i,t,e,s,n,r){var o=He(i),l=He(t),a=o?vl:ri(i),h=l?vl:ri(t);a=a==yl?Xi:a,h=h==yl?Xi:h;var u=a==Xi,g=h==Xi,f=a==h;if(f&&si(i)){if(!si(t))return!1;o=!0,u=!1}if(f&&!u)return r||(r=new Kt),o||xo(i)?Va(i,t,e,s,n,r):P1(i,t,a,e,s,n,r);if(!(e&z1)){var p=u&&wl.call(i,"__wrapped__"),b=g&&wl.call(t,"__wrapped__");if(p||b){var v=p?i.value():i,y=b?t.value():t;return r||(r=new Kt),n(v,y,e,s,r)}}return f?(r||(r=new Kt),j1(i,t,e,s,n,r)):!1}function Ka(i,t,e,s,n){return i===t?!0:i==null||t==null||!re(i)&&!re(t)?i!==i&&t!==t:V1(i,t,e,s,Ka,n)}function K1(i){return function(t,e,s){for(var n=-1,r=Object(t),o=s(t),l=o.length;l--;){var a=o[i?l:++n];if(e(r[a],a,r)===!1)break}return t}}var X1=K1();const _1=X1;function Yr(i,t,e){(e!==void 0&&!di(i[t],e)||e===void 0&&!(t in i))&&Co(i,t,e)}function G1(i){return re(i)&&vn(i)}function Jr(i,t){if(!(t==="constructor"&&typeof i[t]=="function")&&t!="__proto__")return i[t]}function Z1(i){return fi(i,pi(i))}function Q1(i,t,e,s,n,r,o){var l=Jr(i,e),a=Jr(t,e),h=o.get(a);if(h){Yr(i,e,h);return}var u=r?r(l,a,e+"",i,t,o):void 0,g=u===void 0;if(g){var f=He(a),p=!f&&si(a),b=!f&&!p&&xo(a);u=a,f||p||b?He(l)?u=l:G1(l)?u=Ea(l):p?(g=!1,u=Ba(a,!0)):b?(g=!1,u=Ua(a,!0)):u=[]:Id(a)||Xr(a)?(u=l,Xr(l)?u=Z1(l):(!Le(l)||wo(l))&&(u=Fa(a))):g=!1}g&&(o.set(a,u),n(u,a,s,r,o),o.delete(a)),Yr(i,e,u)}function Xa(i,t,e,s,n){i!==t&&_1(t,function(r,o){if(n||(n=new Kt),Le(r))Q1(i,t,o,e,Xa,s,n);else{var l=s?s(Jr(i,o),r,o+"",i,t,n):void 0;l===void 0&&(l=r),Yr(i,o,l)}},pi)}function Io(i,t){return Ka(i,t)}var Y1=su(function(i,t,e){Xa(i,t,e)});const ne=Y1;var O=(i=>(i[i.TYPE=3]="TYPE",i[i.LEVEL=12]="LEVEL",i[i.ATTRIBUTE=13]="ATTRIBUTE",i[i.BLOT=14]="BLOT",i[i.INLINE=7]="INLINE",i[i.BLOCK=11]="BLOCK",i[i.BLOCK_BLOT=10]="BLOCK_BLOT",i[i.INLINE_BLOT=6]="INLINE_BLOT",i[i.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",i[i.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",i[i.ANY=15]="ANY",i))(O||{});class _t{constructor(t,e,s={}){this.attrName=t,this.keyName=e;const n=O.TYPE&O.ATTRIBUTE;this.scope=s.scope!=null?s.scope&O.LEVEL|n:O.ATTRIBUTE,s.whitelist!=null&&(this.whitelist=s.whitelist)}static keys(t){return Array.from(t.attributes).map(e=>e.name)}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class ps extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const _a=class $r{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let s=null;try{s=t.parentNode}catch{return null}return this.find(s,e)}return null}create(t,e,s){const n=this.query(e);if(n==null)throw new ps(`Unable to create ${e} blot`);const r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(s),l=new r(t,o,s);return $r.blots.set(l.domNode,l),l}find(t,e=!1){return $r.find(t,e)}query(t,e=O.ANY){let s;return typeof t=="string"?s=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?s=this.types.text:typeof t=="number"?t&O.LEVEL&O.BLOCK?s=this.types.block:t&O.LEVEL&O.INLINE&&(s=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(n=>(s=this.classes[n],!!s)),s=s||this.tags[t.tagName]),s==null?null:"scope"in s&&e&O.LEVEL&s.scope&&e&O.TYPE&s.scope?s:null}register(...t){return t.map(e=>{const s="blotName"in e,n="attrName"in e;if(!s&&!n)throw new ps("Invalid definition");if(s&&e.blotName==="abstract")throw new ps("Cannot register abstract class");const r=s?e.blotName:n?e.attrName:void 0;return this.types[r]=e,n?typeof e.keyName=="string"&&(this.attributes[e.keyName]=e):s&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(o=>o.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(o=>{(this.tags[o]==null||e.className==null)&&(this.tags[o]=e)}))),e})}};_a.blots=new WeakMap;let bs=_a;function Cl(i,t){return(i.getAttribute("class")||"").split(/\s+/).filter(e=>e.indexOf(`${t}-`)===0)}class J1 extends _t{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){Cl(t,this.keyName).forEach(e=>{t.classList.remove(e)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(Cl(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const Ht=J1;function Sr(i){const t=i.split("-"),e=t.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return t[0]+e}class $1 extends _t{static keys(t){return(t.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(t,e){return this.canAdd(t,e)?(t.style[Sr(this.keyName)]=e,!0):!1}remove(t){t.style[Sr(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[Sr(this.keyName)];return this.canAdd(t,e)?e:""}}const xe=$1;class tp{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=bs.find(this.domNode);if(t==null)return;const e=_t.keys(this.domNode),s=Ht.keys(this.domNode),n=xe.keys(this.domNode);e.concat(s).concat(n).forEach(r=>{const o=t.scroll.query(r,O.ATTRIBUTE);o instanceof _t&&(this.attributes[o.attrName]=o)})}copy(t){Object.keys(this.attributes).forEach(e=>{const s=this.attributes[e].value(this.domNode);t.format(e,s)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}}const En=tp,Ga=class{constructor(t,e){this.scroll=t,this.domNode=e,bs.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new ps("Blot definition missing tagName");let e,s;return Array.isArray(this.tagName)?(typeof t=="string"?(s=t.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):typeof t=="number"&&(s=t),typeof s=="number"?e=document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?e=document.createElement(s):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),bs.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,s,n){const r=this.isolate(t,e);if(this.scroll.query(s,O.BLOT)!=null&&n)r.wrap(s,n);else if(this.scroll.query(s,O.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);r.wrap(o),o.format(s,n)}}insertAt(t,e,s){const n=s==null?this.scroll.create("text",e):this.scroll.create(e,s),r=this.split(t);this.parent.insertBefore(n,r||void 0)}isolate(t,e){const s=this.split(t);if(s==null)throw new Error("Attempt to isolate at end");return s.split(e),s}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new ps(`Cannot wrap ${t}`);return s.appendChild(this),s}};Ga.blotName="abstract";let Za=Ga;const Qa=class extends Za{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Qa.scope=O.INLINE_BLOT;let ep=Qa;const ct=ep;class sp{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let s=e();for(;s&&t>0;)t-=1,s=e();return s}contains(t){const e=this.iterator();let s=e();for(;s;){if(s===t)return!0;s=e()}return!1}indexOf(t){const e=this.iterator();let s=e(),n=0;for(;s;){if(s===t)return n;n+=1,s=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,s=this.head;for(;s!=null;){if(s===t)return e;e+=s.length(),s=s.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const s=this.iterator();let n=s();for(;n;){const r=n.length();if(t<r||e&&t===r&&(n.next==null||n.next.length()!==0))return[n,t];t-=r,n=s()}return[null,0]}forEach(t){const e=this.iterator();let s=e();for(;s;)t(s),s=e()}forEachAt(t,e,s){if(e<=0)return;const[n,r]=this.find(t);let o=t-r;const l=this.iterator(n);let a=l();for(;a&&o<t+e;){const h=a.length();t>o?s(a,t-o,Math.min(e,o+h-t)):s(a,0,Math.min(h,t+e-o)),o+=h,a=l()}}map(t){return this.reduce((e,s)=>(e.push(t(s)),e),[])}reduce(t,e){const s=this.iterator();let n=s();for(;n;)e=t(e,n),n=s();return e}}function El(i,t){const e=t.find(i);if(e)return e;try{return t.create(i)}catch{const s=t.create(O.INLINE);return Array.from(i.childNodes).forEach(n=>{s.domNode.appendChild(n)}),i.parentNode&&i.parentNode.replaceChild(s.domNode,i),s.attach(),s}}const Ya=class ge extends Za{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,ge.uiClass&&this.uiNode.classList.add(ge.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new sp,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=El(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(e){if(e instanceof ps)return;throw e}})}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,(s,n,r)=>{s.deleteAt(n,r)})}descendant(t,e=0){const[s,n]=this.children.find(e);return t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t?[s,n]:s instanceof ge?s.descendant(t,n):[null,-1]}descendants(t,e=0,s=Number.MAX_VALUE){let n=[],r=s;return this.children.forEachAt(e,s,(o,l,a)=>{(t.blotName==null&&t(o)||t.blotName!=null&&o instanceof t)&&n.push(o),o instanceof ge&&(n=n.concat(o.descendants(t,l,r))),r-=a}),n}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{t||this.statics.allowedChildren.some(s=>e instanceof s)||(e.statics.scope===O.BLOCK_BLOT?(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof ge?e.unwrap():e.remove())})}formatAt(t,e,s,n){this.children.forEachAt(t,e,(r,o,l)=>{r.formatAt(o,l,s,n)})}insertAt(t,e,s){const[n,r]=this.children.find(t);if(n)n.insertAt(r,e,s);else{const o=s==null?this.scroll.create("text",e):this.scroll.create(e,s);this.appendChild(o)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let s=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(s=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==s)&&this.domNode.insertBefore(t.domNode,s),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(s=>{t.insertBefore(s,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,e=!1){const[s,n]=this.children.find(t,e),r=[[this,t]];return s instanceof ge?r.concat(s.path(n,e)):(s!=null&&r.push([s,n]),r)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;return s instanceof ge&&this.moveChildren(s),super.replaceWith(s)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.clone();return this.parent&&this.parent.insertBefore(s,this.next||void 0),this.children.forEachAt(t,this.length(),(n,r,o)=>{const l=n.split(r,e);l!=null&&s.appendChild(l)}),s}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const s=[],n=[];t.forEach(r=>{r.target===this.domNode&&r.type==="childList"&&(s.push(...r.addedNodes),n.push(...r.removedNodes))}),n.forEach(r=>{if(r.parentNode!=null&&r.tagName!=="IFRAME"&&document.body.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(r);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),s.filter(r=>r.parentNode===this.domNode&&r!==this.uiNode).sort((r,o)=>r===o?0:r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(r=>{let o=null;r.nextSibling!=null&&(o=this.scroll.find(r.nextSibling));const l=El(r,this.scroll);(l.next!==o||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,o||void 0))}),this.enforceAllowedChildren()}};Ya.uiClass="";let ip=Ya;const Bt=ip;function np(i,t){if(Object.keys(i).length!==Object.keys(t).length)return!1;for(const e in i)if(i[e]!==t[e])return!1;return!0}const ls=class as extends Bt{static create(t){return super.create(t)}static formats(t,e){const s=e.query(as.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new En(this.domNode)}format(t,e){if(t===this.statics.blotName&&!e)this.children.forEach(s=>{s instanceof as||(s=s.wrap(as.blotName,!0)),this.attributes.copy(s)}),this.unwrap();else{const s=this.scroll.query(t,O.INLINE);if(s==null)return;s instanceof _t?this.attributes.attribute(s,e):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.formats()[s]!=null||this.scroll.query(s,O.ATTRIBUTE)?this.isolate(t,e).format(s,n):super.formatAt(t,e,s,n)}optimize(t){super.optimize(t);const e=this.formats();if(Object.keys(e).length===0)return this.unwrap();const s=this.next;s instanceof as&&s.prev===this&&np(e,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}wrap(t,e){const s=super.wrap(t,e);return s instanceof as&&this.attributes.move(s),s}};ls.allowedChildren=[ls,ct],ls.blotName="inline",ls.scope=O.INLINE_BLOT,ls.tagName="SPAN";let rp=ls;const Oo=rp,cs=class to extends Bt{static create(t){return super.create(t)}static formats(t,e){const s=e.query(to.blotName);if(!(s!=null&&t.tagName===s.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new En(this.domNode)}format(t,e){const s=this.scroll.query(t,O.BLOCK);s!=null&&(s instanceof _t?this.attributes.attribute(s,e):t===this.statics.blotName&&!e?this.replaceWith(to.blotName):e&&(t!==this.statics.blotName||this.formats()[t]!==e)&&this.replaceWith(t,e))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,s,n){this.scroll.query(s,O.BLOCK)!=null?this.format(s,n):super.formatAt(t,e,s,n)}insertAt(t,e,s){if(s==null||this.scroll.query(e,O.INLINE)!=null)super.insertAt(t,e,s);else{const n=this.split(t);if(n!=null){const r=this.scroll.create(e,s);n.parent.insertBefore(r,n)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const s=super.replaceWith(t,e);return this.attributes.copy(s),s}update(t,e){super.update(t,e),t.some(s=>s.target===this.domNode&&s.type==="attributes")&&this.attributes.build()}};cs.blotName="block",cs.scope=O.BLOCK_BLOT,cs.tagName="P",cs.allowedChildren=[Oo,cs,ct];let op=cs;const oi=op,eo=class extends Bt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,s,n){super.formatAt(t,e,s,n),this.enforceAllowedChildren()}insertAt(t,e,s){super.insertAt(t,e,s),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};eo.blotName="container",eo.scope=O.BLOCK_BLOT;let lp=eo;const Ln=lp;class ap extends ct{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,s,n){t===0&&e===this.length()?this.format(s,n):super.formatAt(t,e,s,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const vt=ap,cp={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},hp=100,hs=class extends Bt{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,cp),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const s=this.registry.find(t,e);return s?s.scroll===this?s:e?this.find(s.scroll.domNode.parentNode,!0):null:null}query(t,e=O.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach(s=>{s.remove()}):super.deleteAt(t,e)}formatAt(t,e,s,n){this.update(),super.formatAt(t,e,s,n)}insertAt(t,e,s){this.update(),super.insertAt(t,e,s)}optimize(t=[],e={}){super.optimize(e);const s=e.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)t.push(n.pop());const r=(a,h=!0)=>{a==null||a===this||a.domNode.parentNode!=null&&(s.has(a.domNode)||s.set(a.domNode,[]),h&&r(a.parent))},o=a=>{s.has(a.domNode)&&(a instanceof Bt&&a.children.forEach(o),s.delete(a.domNode),a.optimize(e))};let l=t;for(let a=0;l.length>0;a+=1){if(a>=hp)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(h=>{const u=this.find(h.target,!0);u!=null&&(u.domNode===h.target&&(h.type==="childList"?(r(this.find(h.previousSibling,!1)),Array.from(h.addedNodes).forEach(g=>{const f=this.find(g,!1);r(f,!1),f instanceof Bt&&f.children.forEach(p=>{r(p,!1)})})):h.type==="attributes"&&r(u.prev)),r(u))}),this.children.forEach(o),l=Array.from(this.observer.takeRecords()),n=l.slice();n.length>0;)t.push(n.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const s=new WeakMap;t.map(n=>{const r=this.find(n.target,!0);return r==null?null:s.has(r.domNode)?(s.get(r.domNode).push(n),null):(s.set(r.domNode,[n]),r)}).forEach(n=>{n!=null&&n!==this&&s.has(n.domNode)&&n.update(s.get(n.domNode)||[],e)}),e.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),e),this.optimize(t,e)}};hs.blotName="scroll",hs.defaultChild=oi,hs.allowedChildren=[oi,Ln],hs.scope=O.BLOCK_BLOT,hs.tagName="DIV";let up=hs;const Ro=up,so=class Ja extends ct{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,s){s==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,s)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Ja&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const s=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(t,e){t.some(s=>s.type==="characterData"&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};so.blotName="text",so.scope=O.INLINE_BLOT;let dp=so;const fn=dp,fp=Object.freeze(Object.defineProperty({__proto__:null,Attributor:_t,AttributorStore:En,BlockBlot:oi,ClassAttributor:Ht,ContainerBlot:Ln,EmbedBlot:vt,InlineBlot:Oo,LeafBlot:ct,ParentBlot:Bt,Registry:bs,Scope:O,ScrollBlot:Ro,StyleAttributor:xe,TextBlot:fn},Symbol.toStringTag,{value:"Module"}));var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $a(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var io={exports:{}},yt=-1,ft=1,J=0;function li(i,t,e,s,n){if(i===t)return i?[[J,i]]:[];if(e!=null){var r=Cp(i,t,e);if(r)return r}var o=Mo(i,t),l=i.substring(0,o);i=i.substring(o),t=t.substring(o),o=xn(i,t);var a=i.substring(i.length-o);i=i.substring(0,i.length-o),t=t.substring(0,t.length-o);var h=pp(i,t);return l&&h.unshift([J,l]),a&&h.push([J,a]),ko(h,n),s&&bp(h),h}function pp(i,t){var e;if(!i)return[[ft,t]];if(!t)return[[yt,i]];var s=i.length>t.length?i:t,n=i.length>t.length?t:i,r=s.indexOf(n);if(r!==-1)return e=[[ft,s.substring(0,r)],[J,n],[ft,s.substring(r+n.length)]],i.length>t.length&&(e[0][0]=e[2][0]=yt),e;if(n.length===1)return[[yt,i],[ft,t]];var o=mp(i,t);if(o){var l=o[0],a=o[1],h=o[2],u=o[3],g=o[4],f=li(l,h),p=li(a,u);return f.concat([[J,g]],p)}return gp(i,t)}function gp(i,t){for(var e=i.length,s=t.length,n=Math.ceil((e+s)/2),r=n,o=2*n,l=new Array(o),a=new Array(o),h=0;h<o;h++)l[h]=-1,a[h]=-1;l[r+1]=0,a[r+1]=0;for(var u=e-s,g=u%2!==0,f=0,p=0,b=0,v=0,y=0;y<n;y++){for(var w=-y+f;w<=y-p;w+=2){var C=r+w,L;w===-y||w!==y&&l[C-1]<l[C+1]?L=l[C+1]:L=l[C-1]+1;for(var x=L-w;L<e&&x<s&&i.charAt(L)===t.charAt(x);)L++,x++;if(l[C]=L,L>e)p+=2;else if(x>s)f+=2;else if(g){var T=r+u-w;if(T>=0&&T<o&&a[T]!==-1){var q=e-a[T];if(L>=q)return Ll(i,t,L,x)}}}for(var M=-y+b;M<=y-v;M+=2){var T=r+M,q;M===-y||M!==y&&a[T-1]<a[T+1]?q=a[T+1]:q=a[T-1]+1;for(var U=q-M;q<e&&U<s&&i.charAt(e-q-1)===t.charAt(s-U-1);)q++,U++;if(a[T]=q,q>e)v+=2;else if(U>s)b+=2;else if(!g){var C=r+u-M;if(C>=0&&C<o&&l[C]!==-1){var L=l[C],x=r+L-C;if(q=e-q,L>=q)return Ll(i,t,L,x)}}}}return[[yt,i],[ft,t]]}function Ll(i,t,e,s){var n=i.substring(0,e),r=t.substring(0,s),o=i.substring(e),l=t.substring(s),a=li(n,r),h=li(o,l);return a.concat(h)}function Mo(i,t){if(!i||!t||i.charAt(0)!==t.charAt(0))return 0;for(var e=0,s=Math.min(i.length,t.length),n=s,r=0;e<n;)i.substring(r,n)==t.substring(r,n)?(e=n,r=e):s=n,n=Math.floor((s-e)/2+e);return tc(i.charCodeAt(n-1))&&n--,n}function xl(i,t){var e=i.length,s=t.length;if(e==0||s==0)return 0;e>s?i=i.substring(e-s):e<s&&(t=t.substring(0,e));var n=Math.min(e,s);if(i==t)return n;for(var r=0,o=1;;){var l=i.substring(n-o),a=t.indexOf(l);if(a==-1)return r;o+=a,(a==0||i.substring(n-o)==t.substring(0,o))&&(r=o,o++)}}function xn(i,t){if(!i||!t||i.slice(-1)!==t.slice(-1))return 0;for(var e=0,s=Math.min(i.length,t.length),n=s,r=0;e<n;)i.substring(i.length-n,i.length-r)==t.substring(t.length-n,t.length-r)?(e=n,r=e):s=n,n=Math.floor((s-e)/2+e);return ec(i.charCodeAt(i.length-n))&&n--,n}function mp(i,t){var e=i.length>t.length?i:t,s=i.length>t.length?t:i;if(e.length<4||s.length*2<e.length)return null;function n(p,b,v){for(var y=p.substring(v,v+Math.floor(p.length/4)),w=-1,C="",L,x,T,q;(w=b.indexOf(y,w+1))!==-1;){var M=Mo(p.substring(v),b.substring(w)),U=xn(p.substring(0,v),b.substring(0,w));C.length<U+M&&(C=b.substring(w-U,w)+b.substring(w,w+M),L=p.substring(0,v-U),x=p.substring(v+M),T=b.substring(0,w-U),q=b.substring(w+M))}return C.length*2>=p.length?[L,x,T,q,C]:null}var r=n(e,s,Math.ceil(e.length/4)),o=n(e,s,Math.ceil(e.length/2)),l;if(!r&&!o)return null;o?r?l=r[4].length>o[4].length?r:o:l=o:l=r;var a,h,u,g;i.length>t.length?(a=l[0],h=l[1],u=l[2],g=l[3]):(u=l[0],g=l[1],a=l[2],h=l[3]);var f=l[4];return[a,h,u,g,f]}function bp(i){for(var t=!1,e=[],s=0,n=null,r=0,o=0,l=0,a=0,h=0;r<i.length;)i[r][0]==J?(e[s++]=r,o=a,l=h,a=0,h=0,n=i[r][1]):(i[r][0]==ft?a+=i[r][1].length:h+=i[r][1].length,n&&n.length<=Math.max(o,l)&&n.length<=Math.max(a,h)&&(i.splice(e[s-1],0,[yt,n]),i[e[s-1]+1][0]=ft,s--,s--,r=s>0?e[s-1]:-1,o=0,l=0,a=0,h=0,n=null,t=!0)),r++;for(t&&ko(i),vp(i),r=1;r<i.length;){if(i[r-1][0]==yt&&i[r][0]==ft){var u=i[r-1][1],g=i[r][1],f=xl(u,g),p=xl(g,u);f>=p?(f>=u.length/2||f>=g.length/2)&&(i.splice(r,0,[J,g.substring(0,f)]),i[r-1][1]=u.substring(0,u.length-f),i[r+1][1]=g.substring(f),r++):(p>=u.length/2||p>=g.length/2)&&(i.splice(r,0,[J,u.substring(0,p)]),i[r-1][0]=ft,i[r-1][1]=g.substring(0,g.length-p),i[r+1][0]=yt,i[r+1][1]=u.substring(p),r++),r++}r++}}var Tl=/[^a-zA-Z0-9]/,Nl=/\s/,Sl=/[\r\n]/,Ap=/\n\r?\n$/,yp=/^\r?\n\r?\n/;function vp(i){function t(p,b){if(!p||!b)return 6;var v=p.charAt(p.length-1),y=b.charAt(0),w=v.match(Tl),C=y.match(Tl),L=w&&v.match(Nl),x=C&&y.match(Nl),T=L&&v.match(Sl),q=x&&y.match(Sl),M=T&&p.match(Ap),U=q&&b.match(yp);return M||U?5:T||q?4:w&&!L&&x?3:L||x?2:w||C?1:0}for(var e=1;e<i.length-1;){if(i[e-1][0]==J&&i[e+1][0]==J){var s=i[e-1][1],n=i[e][1],r=i[e+1][1],o=xn(s,n);if(o){var l=n.substring(n.length-o);s=s.substring(0,s.length-o),n=l+n.substring(0,n.length-o),r=l+r}for(var a=s,h=n,u=r,g=t(s,n)+t(n,r);n.charAt(0)===r.charAt(0);){s+=n.charAt(0),n=n.substring(1)+r.charAt(0),r=r.substring(1);var f=t(s,n)+t(n,r);f>=g&&(g=f,a=s,h=n,u=r)}i[e-1][1]!=a&&(a?i[e-1][1]=a:(i.splice(e-1,1),e--),i[e][1]=h,u?i[e+1][1]=u:(i.splice(e+1,1),e--))}e++}}function ko(i,t){i.push([J,""]);for(var e=0,s=0,n=0,r="",o="",l;e<i.length;){if(e<i.length-1&&!i[e][1]){i.splice(e,1);continue}switch(i[e][0]){case ft:n++,o+=i[e][1],e++;break;case yt:s++,r+=i[e][1],e++;break;case J:var a=e-n-s-1;if(t){if(a>=0&&ic(i[a][1])){var h=i[a][1].slice(-1);if(i[a][1]=i[a][1].slice(0,-1),r=h+r,o=h+o,!i[a][1]){i.splice(a,1),e--;var u=a-1;i[u]&&i[u][0]===ft&&(n++,o=i[u][1]+o,u--),i[u]&&i[u][0]===yt&&(s++,r=i[u][1]+r,u--),a=u}}if(sc(i[e][1])){var h=i[e][1].charAt(0);i[e][1]=i[e][1].slice(1),r+=h,o+=h}}if(e<i.length-1&&!i[e][1]){i.splice(e,1);break}if(r.length>0||o.length>0){r.length>0&&o.length>0&&(l=Mo(o,r),l!==0&&(a>=0?i[a][1]+=o.substring(0,l):(i.splice(0,0,[J,o.substring(0,l)]),e++),o=o.substring(l),r=r.substring(l)),l=xn(o,r),l!==0&&(i[e][1]=o.substring(o.length-l)+i[e][1],o=o.substring(0,o.length-l),r=r.substring(0,r.length-l)));var g=n+s;r.length===0&&o.length===0?(i.splice(e-g,g),e=e-g):r.length===0?(i.splice(e-g,g,[ft,o]),e=e-g+1):o.length===0?(i.splice(e-g,g,[yt,r]),e=e-g+1):(i.splice(e-g,g,[yt,r],[ft,o]),e=e-g+2)}e!==0&&i[e-1][0]===J?(i[e-1][1]+=i[e][1],i.splice(e,1)):e++,n=0,s=0,r="",o="";break}}i[i.length-1][1]===""&&i.pop();var f=!1;for(e=1;e<i.length-1;)i[e-1][0]===J&&i[e+1][0]===J&&(i[e][1].substring(i[e][1].length-i[e-1][1].length)===i[e-1][1]?(i[e][1]=i[e-1][1]+i[e][1].substring(0,i[e][1].length-i[e-1][1].length),i[e+1][1]=i[e-1][1]+i[e+1][1],i.splice(e-1,1),f=!0):i[e][1].substring(0,i[e+1][1].length)==i[e+1][1]&&(i[e-1][1]+=i[e+1][1],i[e][1]=i[e][1].substring(i[e+1][1].length)+i[e+1][1],i.splice(e+1,1),f=!0)),e++;f&&ko(i,t)}function tc(i){return i>=55296&&i<=56319}function ec(i){return i>=56320&&i<=57343}function sc(i){return ec(i.charCodeAt(0))}function ic(i){return tc(i.charCodeAt(i.length-1))}function wp(i){for(var t=[],e=0;e<i.length;e++)i[e][1].length>0&&t.push(i[e]);return t}function qr(i,t,e,s){return ic(i)||sc(s)?null:wp([[J,i],[yt,t],[ft,e],[J,s]])}function Cp(i,t,e){var s=typeof e=="number"?{index:e,length:0}:e.oldRange,n=typeof e=="number"?null:e.newRange,r=i.length,o=t.length;if(s.length===0&&(n===null||n.length===0)){var l=s.index,a=i.slice(0,l),h=i.slice(l),u=n?n.index:null;t:{var g=l+o-r;if(u!==null&&u!==g||g<0||g>o)break t;var f=t.slice(0,g),p=t.slice(g);if(p!==h)break t;var b=Math.min(l,g),v=a.slice(0,b),y=f.slice(0,b);if(v!==y)break t;var w=a.slice(b),C=f.slice(b);return qr(v,w,C,h)}t:{if(u!==null&&u!==l)break t;var L=l,f=t.slice(0,L),p=t.slice(L);if(f!==a)break t;var x=Math.min(r-L,o-L),T=h.slice(h.length-x),q=p.slice(p.length-x);if(T!==q)break t;var w=h.slice(0,h.length-x),C=p.slice(0,p.length-x);return qr(a,w,C,T)}}if(s.length>0&&n&&n.length===0)t:{var v=i.slice(0,s.index),T=i.slice(s.index+s.length),b=v.length,x=T.length;if(o<b+x)break t;var y=t.slice(0,b),q=t.slice(o-x);if(v!==y||T!==q)break t;var w=i.slice(b,r-x),C=t.slice(b,o-x);return qr(v,w,C,T)}return null}function Tn(i,t,e,s){return li(i,t,e,s,!0)}Tn.INSERT=ft;Tn.DELETE=yt;Tn.EQUAL=J;var Ep=Tn,pn={exports:{}};pn.exports;(function(i,t){var e=200,s="__lodash_hash_undefined__",n=9007199254740991,r="[object Arguments]",o="[object Array]",l="[object Boolean]",a="[object Date]",h="[object Error]",u="[object Function]",g="[object GeneratorFunction]",f="[object Map]",p="[object Number]",b="[object Object]",v="[object Promise]",y="[object RegExp]",w="[object Set]",C="[object String]",L="[object Symbol]",x="[object WeakMap]",T="[object ArrayBuffer]",q="[object DataView]",M="[object Float32Array]",U="[object Float64Array]",_="[object Int8Array]",H="[object Int16Array]",Z="[object Int32Array]",$="[object Uint8Array]",Ft="[object Uint8ClampedArray]",tt="[object Uint16Array]",Yt="[object Uint32Array]",Es=/[\\^$.*+?()[\]{}|]/g,vi=/\w*$/,de=/^\[object .+?Constructor\]$/,Ge=/^(?:0|[1-9]\d*)$/,z={};z[r]=z[o]=z[T]=z[q]=z[l]=z[a]=z[M]=z[U]=z[_]=z[H]=z[Z]=z[f]=z[p]=z[b]=z[y]=z[w]=z[C]=z[L]=z[$]=z[Ft]=z[tt]=z[Yt]=!0,z[h]=z[u]=z[x]=!1;var Ls=typeof me=="object"&&me&&me.Object===Object&&me,xs=typeof self=="object"&&self&&self.Object===Object&&self,At=Ls||xs||Function("return this")(),wi=t&&!t.nodeType&&t,V=wi&&!0&&i&&!i.nodeType&&i,Ci=V&&V.exports===wi;function Pn(c,d){return c.set(d[0],d[1]),c}function St(c,d){return c.add(d),c}function Ei(c,d){for(var A=-1,E=c?c.length:0;++A<E&&d(c[A],A,c)!==!1;);return c}function Li(c,d){for(var A=-1,E=d.length,D=c.length;++A<E;)c[D+A]=d[A];return c}function Ts(c,d,A,E){var D=-1,R=c?c.length:0;for(E&&R&&(A=c[++D]);++D<R;)A=d(A,c[D],D,c);return A}function Ns(c,d){for(var A=-1,E=Array(c);++A<c;)E[A]=d(A);return E}function xi(c,d){return c==null?void 0:c[d]}function Ss(c){var d=!1;if(c!=null&&typeof c.toString!="function")try{d=!!(c+"")}catch{}return d}function Ti(c){var d=-1,A=Array(c.size);return c.forEach(function(E,D){A[++d]=[D,E]}),A}function qs(c,d){return function(A){return c(d(A))}}function Ni(c){var d=-1,A=Array(c.size);return c.forEach(function(E){A[++d]=E}),A}var Hn=Array.prototype,Un=Function.prototype,Ze=Object.prototype,Is=At["__core-js_shared__"],Si=function(){var c=/[^.]+$/.exec(Is&&Is.keys&&Is.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),qi=Un.toString,jt=Ze.hasOwnProperty,Qe=Ze.toString,Fn=RegExp("^"+qi.call(jt).replace(Es,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=Ci?At.Buffer:void 0,Ye=At.Symbol,Os=At.Uint8Array,wt=qs(Object.getPrototypeOf,Object),Ii=Object.create,Oi=Ze.propertyIsEnumerable,jn=Hn.splice,Rs=Object.getOwnPropertySymbols,Je=qe?qe.isBuffer:void 0,Ri=qs(Object.keys,Object),$e=It(At,"DataView"),Ie=It(At,"Map"),qt=It(At,"Promise"),ts=It(At,"Set"),Ms=It(At,"WeakMap"),Oe=It(Object,"create"),ks=ut($e),Re=ut(Ie),Bs=ut(qt),Ds=ut(ts),Ps=ut(Ms),fe=Ye?Ye.prototype:void 0,Mi=fe?fe.valueOf:void 0;function Jt(c){var d=-1,A=c?c.length:0;for(this.clear();++d<A;){var E=c[d];this.set(E[0],E[1])}}function zn(){this.__data__=Oe?Oe(null):{}}function Wn(c){return this.has(c)&&delete this.__data__[c]}function Vn(c){var d=this.__data__;if(Oe){var A=d[c];return A===s?void 0:A}return jt.call(d,c)?d[c]:void 0}function ki(c){var d=this.__data__;return Oe?d[c]!==void 0:jt.call(d,c)}function Hs(c,d){var A=this.__data__;return A[c]=Oe&&d===void 0?s:d,this}Jt.prototype.clear=zn,Jt.prototype.delete=Wn,Jt.prototype.get=Vn,Jt.prototype.has=ki,Jt.prototype.set=Hs;function et(c){var d=-1,A=c?c.length:0;for(this.clear();++d<A;){var E=c[d];this.set(E[0],E[1])}}function Kn(){this.__data__=[]}function Xn(c){var d=this.__data__,A=ss(d,c);if(A<0)return!1;var E=d.length-1;return A==E?d.pop():jn.call(d,A,1),!0}function _n(c){var d=this.__data__,A=ss(d,c);return A<0?void 0:d[A][1]}function Gn(c){return ss(this.__data__,c)>-1}function Zn(c,d){var A=this.__data__,E=ss(A,c);return E<0?A.push([c,d]):A[E][1]=d,this}et.prototype.clear=Kn,et.prototype.delete=Xn,et.prototype.get=_n,et.prototype.has=Gn,et.prototype.set=Zn;function rt(c){var d=-1,A=c?c.length:0;for(this.clear();++d<A;){var E=c[d];this.set(E[0],E[1])}}function Qn(){this.__data__={hash:new Jt,map:new(Ie||et),string:new Jt}}function Yn(c){return ke(this,c).delete(c)}function Jn(c){return ke(this,c).get(c)}function $n(c){return ke(this,c).has(c)}function tr(c,d){return ke(this,c).set(c,d),this}rt.prototype.clear=Qn,rt.prototype.delete=Yn,rt.prototype.get=Jn,rt.prototype.has=$n,rt.prototype.set=tr;function pt(c){this.__data__=new et(c)}function er(){this.__data__=new et}function sr(c){return this.__data__.delete(c)}function ir(c){return this.__data__.get(c)}function nr(c){return this.__data__.has(c)}function rr(c,d){var A=this.__data__;if(A instanceof et){var E=A.__data__;if(!Ie||E.length<e-1)return E.push([c,d]),this;A=this.__data__=new rt(E)}return A.set(c,d),this}pt.prototype.clear=er,pt.prototype.delete=sr,pt.prototype.get=ir,pt.prototype.has=nr,pt.prototype.set=rr;function es(c,d){var A=zs(c)||ns(c)?Ns(c.length,String):[],E=A.length,D=!!E;for(var R in c)(d||jt.call(c,R))&&!(D&&(R=="length"||yr(R,E)))&&A.push(R);return A}function Bi(c,d,A){var E=c[d];(!(jt.call(c,d)&&Fi(E,A))||A===void 0&&!(d in c))&&(c[d]=A)}function ss(c,d){for(var A=c.length;A--;)if(Fi(c[A][0],d))return A;return-1}function zt(c,d){return c&&js(d,Vs(d),c)}function Us(c,d,A,E,D,R,F){var j;if(E&&(j=R?E(c,D,R,F):E(c)),j!==void 0)return j;if(!Vt(c))return c;var Q=zs(c);if(Q){if(j=br(c),!d)return pr(c,j)}else{var W=te(c),ot=W==u||W==g;if(ji(c))return is(c,d);if(W==b||W==r||ot&&!R){if(Ss(c))return R?c:{};if(j=Wt(ot?{}:c),!d)return gr(c,zt(j,c))}else{if(!z[W])return R?c:{};j=Ar(c,W,Us,d)}}F||(F=new pt);var gt=F.get(c);if(gt)return gt;if(F.set(c,j),!Q)var Y=A?mr(c):Vs(c);return Ei(Y||c,function(lt,st){Y&&(st=lt,lt=c[st]),Bi(j,st,Us(lt,d,A,E,st,c,F))}),j}function or(c){return Vt(c)?Ii(c):{}}function lr(c,d,A){var E=d(c);return zs(c)?E:Li(E,A(c))}function ar(c){return Qe.call(c)}function cr(c){if(!Vt(c)||wr(c))return!1;var d=Ws(c)||Ss(c)?Fn:de;return d.test(ut(c))}function hr(c){if(!Hi(c))return Ri(c);var d=[];for(var A in Object(c))jt.call(c,A)&&A!="constructor"&&d.push(A);return d}function is(c,d){if(d)return c.slice();var A=new c.constructor(c.length);return c.copy(A),A}function Fs(c){var d=new c.constructor(c.byteLength);return new Os(d).set(new Os(c)),d}function Me(c,d){var A=d?Fs(c.buffer):c.buffer;return new c.constructor(A,c.byteOffset,c.byteLength)}function Di(c,d,A){var E=d?A(Ti(c),!0):Ti(c);return Ts(E,Pn,new c.constructor)}function Pi(c){var d=new c.constructor(c.source,vi.exec(c));return d.lastIndex=c.lastIndex,d}function ur(c,d,A){var E=d?A(Ni(c),!0):Ni(c);return Ts(E,St,new c.constructor)}function dr(c){return Mi?Object(Mi.call(c)):{}}function fr(c,d){var A=d?Fs(c.buffer):c.buffer;return new c.constructor(A,c.byteOffset,c.length)}function pr(c,d){var A=-1,E=c.length;for(d||(d=Array(E));++A<E;)d[A]=c[A];return d}function js(c,d,A,E){A||(A={});for(var D=-1,R=d.length;++D<R;){var F=d[D],j=E?E(A[F],c[F],F,A,c):void 0;Bi(A,F,j===void 0?c[F]:j)}return A}function gr(c,d){return js(c,$t(c),d)}function mr(c){return lr(c,Vs,$t)}function ke(c,d){var A=c.__data__;return vr(d)?A[typeof d=="string"?"string":"hash"]:A.map}function It(c,d){var A=xi(c,d);return cr(A)?A:void 0}var $t=Rs?qs(Rs,Object):Er,te=ar;($e&&te(new $e(new ArrayBuffer(1)))!=q||Ie&&te(new Ie)!=f||qt&&te(qt.resolve())!=v||ts&&te(new ts)!=w||Ms&&te(new Ms)!=x)&&(te=function(c){var d=Qe.call(c),A=d==b?c.constructor:void 0,E=A?ut(A):void 0;if(E)switch(E){case ks:return q;case Re:return f;case Bs:return v;case Ds:return w;case Ps:return x}return d});function br(c){var d=c.length,A=c.constructor(d);return d&&typeof c[0]=="string"&&jt.call(c,"index")&&(A.index=c.index,A.input=c.input),A}function Wt(c){return typeof c.constructor=="function"&&!Hi(c)?or(wt(c)):{}}function Ar(c,d,A,E){var D=c.constructor;switch(d){case T:return Fs(c);case l:case a:return new D(+c);case q:return Me(c,E);case M:case U:case _:case H:case Z:case $:case Ft:case tt:case Yt:return fr(c,E);case f:return Di(c,E,A);case p:case C:return new D(c);case y:return Pi(c);case w:return ur(c,E,A);case L:return dr(c)}}function yr(c,d){return d=d??n,!!d&&(typeof c=="number"||Ge.test(c))&&c>-1&&c%1==0&&c<d}function vr(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function wr(c){return!!Si&&Si in c}function Hi(c){var d=c&&c.constructor,A=typeof d=="function"&&d.prototype||Ze;return c===A}function ut(c){if(c!=null){try{return qi.call(c)}catch{}try{return c+""}catch{}}return""}function Ui(c){return Us(c,!0,!0)}function Fi(c,d){return c===d||c!==c&&d!==d}function ns(c){return Cr(c)&&jt.call(c,"callee")&&(!Oi.call(c,"callee")||Qe.call(c)==r)}var zs=Array.isArray;function rs(c){return c!=null&&zi(c.length)&&!Ws(c)}function Cr(c){return Wi(c)&&rs(c)}var ji=Je||Lr;function Ws(c){var d=Vt(c)?Qe.call(c):"";return d==u||d==g}function zi(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=n}function Vt(c){var d=typeof c;return!!c&&(d=="object"||d=="function")}function Wi(c){return!!c&&typeof c=="object"}function Vs(c){return rs(c)?es(c):hr(c)}function Er(){return[]}function Lr(){return!1}i.exports=Ui})(pn,pn.exports);var nc=pn.exports,gn={exports:{}};gn.exports;(function(i,t){var e=200,s="__lodash_hash_undefined__",n=1,r=2,o=9007199254740991,l="[object Arguments]",a="[object Array]",h="[object AsyncFunction]",u="[object Boolean]",g="[object Date]",f="[object Error]",p="[object Function]",b="[object GeneratorFunction]",v="[object Map]",y="[object Number]",w="[object Null]",C="[object Object]",L="[object Promise]",x="[object Proxy]",T="[object RegExp]",q="[object Set]",M="[object String]",U="[object Symbol]",_="[object Undefined]",H="[object WeakMap]",Z="[object ArrayBuffer]",$="[object DataView]",Ft="[object Float32Array]",tt="[object Float64Array]",Yt="[object Int8Array]",Es="[object Int16Array]",vi="[object Int32Array]",de="[object Uint8Array]",Ge="[object Uint8ClampedArray]",z="[object Uint16Array]",Ls="[object Uint32Array]",xs=/[\\^$.*+?()[\]{}|]/g,At=/^\[object .+?Constructor\]$/,wi=/^(?:0|[1-9]\d*)$/,V={};V[Ft]=V[tt]=V[Yt]=V[Es]=V[vi]=V[de]=V[Ge]=V[z]=V[Ls]=!0,V[l]=V[a]=V[Z]=V[u]=V[$]=V[g]=V[f]=V[p]=V[v]=V[y]=V[C]=V[T]=V[q]=V[M]=V[H]=!1;var Ci=typeof me=="object"&&me&&me.Object===Object&&me,Pn=typeof self=="object"&&self&&self.Object===Object&&self,St=Ci||Pn||Function("return this")(),Ei=t&&!t.nodeType&&t,Li=Ei&&!0&&i&&!i.nodeType&&i,Ts=Li&&Li.exports===Ei,Ns=Ts&&Ci.process,xi=function(){try{return Ns&&Ns.binding&&Ns.binding("util")}catch{}}(),Ss=xi&&xi.isTypedArray;function Ti(c,d){for(var A=-1,E=c==null?0:c.length,D=0,R=[];++A<E;){var F=c[A];d(F,A,c)&&(R[D++]=F)}return R}function qs(c,d){for(var A=-1,E=d.length,D=c.length;++A<E;)c[D+A]=d[A];return c}function Ni(c,d){for(var A=-1,E=c==null?0:c.length;++A<E;)if(d(c[A],A,c))return!0;return!1}function Hn(c,d){for(var A=-1,E=Array(c);++A<c;)E[A]=d(A);return E}function Un(c){return function(d){return c(d)}}function Ze(c,d){return c.has(d)}function Is(c,d){return c==null?void 0:c[d]}function Si(c){var d=-1,A=Array(c.size);return c.forEach(function(E,D){A[++d]=[D,E]}),A}function qi(c,d){return function(A){return c(d(A))}}function jt(c){var d=-1,A=Array(c.size);return c.forEach(function(E){A[++d]=E}),A}var Qe=Array.prototype,Fn=Function.prototype,qe=Object.prototype,Ye=St["__core-js_shared__"],Os=Fn.toString,wt=qe.hasOwnProperty,Ii=function(){var c=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Oi=qe.toString,jn=RegExp("^"+Os.call(wt).replace(xs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rs=Ts?St.Buffer:void 0,Je=St.Symbol,Ri=St.Uint8Array,$e=qe.propertyIsEnumerable,Ie=Qe.splice,qt=Je?Je.toStringTag:void 0,ts=Object.getOwnPropertySymbols,Ms=Rs?Rs.isBuffer:void 0,Oe=qi(Object.keys,Object),ks=$t(St,"DataView"),Re=$t(St,"Map"),Bs=$t(St,"Promise"),Ds=$t(St,"Set"),Ps=$t(St,"WeakMap"),fe=$t(Object,"create"),Mi=ut(ks),Jt=ut(Re),zn=ut(Bs),Wn=ut(Ds),Vn=ut(Ps),ki=Je?Je.prototype:void 0,Hs=ki?ki.valueOf:void 0;function et(c){var d=-1,A=c==null?0:c.length;for(this.clear();++d<A;){var E=c[d];this.set(E[0],E[1])}}function Kn(){this.__data__=fe?fe(null):{},this.size=0}function Xn(c){var d=this.has(c)&&delete this.__data__[c];return this.size-=d?1:0,d}function _n(c){var d=this.__data__;if(fe){var A=d[c];return A===s?void 0:A}return wt.call(d,c)?d[c]:void 0}function Gn(c){var d=this.__data__;return fe?d[c]!==void 0:wt.call(d,c)}function Zn(c,d){var A=this.__data__;return this.size+=this.has(c)?0:1,A[c]=fe&&d===void 0?s:d,this}et.prototype.clear=Kn,et.prototype.delete=Xn,et.prototype.get=_n,et.prototype.has=Gn,et.prototype.set=Zn;function rt(c){var d=-1,A=c==null?0:c.length;for(this.clear();++d<A;){var E=c[d];this.set(E[0],E[1])}}function Qn(){this.__data__=[],this.size=0}function Yn(c){var d=this.__data__,A=is(d,c);if(A<0)return!1;var E=d.length-1;return A==E?d.pop():Ie.call(d,A,1),--this.size,!0}function Jn(c){var d=this.__data__,A=is(d,c);return A<0?void 0:d[A][1]}function $n(c){return is(this.__data__,c)>-1}function tr(c,d){var A=this.__data__,E=is(A,c);return E<0?(++this.size,A.push([c,d])):A[E][1]=d,this}rt.prototype.clear=Qn,rt.prototype.delete=Yn,rt.prototype.get=Jn,rt.prototype.has=$n,rt.prototype.set=tr;function pt(c){var d=-1,A=c==null?0:c.length;for(this.clear();++d<A;){var E=c[d];this.set(E[0],E[1])}}function er(){this.size=0,this.__data__={hash:new et,map:new(Re||rt),string:new et}}function sr(c){var d=It(this,c).delete(c);return this.size-=d?1:0,d}function ir(c){return It(this,c).get(c)}function nr(c){return It(this,c).has(c)}function rr(c,d){var A=It(this,c),E=A.size;return A.set(c,d),this.size+=A.size==E?0:1,this}pt.prototype.clear=er,pt.prototype.delete=sr,pt.prototype.get=ir,pt.prototype.has=nr,pt.prototype.set=rr;function es(c){var d=-1,A=c==null?0:c.length;for(this.__data__=new pt;++d<A;)this.add(c[d])}function Bi(c){return this.__data__.set(c,s),this}function ss(c){return this.__data__.has(c)}es.prototype.add=es.prototype.push=Bi,es.prototype.has=ss;function zt(c){var d=this.__data__=new rt(c);this.size=d.size}function Us(){this.__data__=new rt,this.size=0}function or(c){var d=this.__data__,A=d.delete(c);return this.size=d.size,A}function lr(c){return this.__data__.get(c)}function ar(c){return this.__data__.has(c)}function cr(c,d){var A=this.__data__;if(A instanceof rt){var E=A.__data__;if(!Re||E.length<e-1)return E.push([c,d]),this.size=++A.size,this;A=this.__data__=new pt(E)}return A.set(c,d),this.size=A.size,this}zt.prototype.clear=Us,zt.prototype.delete=or,zt.prototype.get=lr,zt.prototype.has=ar,zt.prototype.set=cr;function hr(c,d){var A=ns(c),E=!A&&Fi(c),D=!A&&!E&&rs(c),R=!A&&!E&&!D&&Wi(c),F=A||E||D||R,j=F?Hn(c.length,String):[],Q=j.length;for(var W in c)(d||wt.call(c,W))&&!(F&&(W=="length"||D&&(W=="offset"||W=="parent")||R&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Ar(W,Q)))&&j.push(W);return j}function is(c,d){for(var A=c.length;A--;)if(Ui(c[A][0],d))return A;return-1}function Fs(c,d,A){var E=d(c);return ns(c)?E:qs(E,A(c))}function Me(c){return c==null?c===void 0?_:w:qt&&qt in Object(c)?te(c):Hi(c)}function Di(c){return Vt(c)&&Me(c)==l}function Pi(c,d,A,E,D){return c===d?!0:c==null||d==null||!Vt(c)&&!Vt(d)?c!==c&&d!==d:ur(c,d,A,E,Pi,D)}function ur(c,d,A,E,D,R){var F=ns(c),j=ns(d),Q=F?a:Wt(c),W=j?a:Wt(d);Q=Q==l?C:Q,W=W==l?C:W;var ot=Q==C,gt=W==C,Y=Q==W;if(Y&&rs(c)){if(!rs(d))return!1;F=!0,ot=!1}if(Y&&!ot)return R||(R=new zt),F||Wi(c)?js(c,d,A,E,D,R):gr(c,d,Q,A,E,D,R);if(!(A&n)){var lt=ot&&wt.call(c,"__wrapped__"),st=gt&&wt.call(d,"__wrapped__");if(lt||st){var pe=lt?c.value():c,ee=st?d.value():d;return R||(R=new zt),D(pe,ee,A,E,R)}}return Y?(R||(R=new zt),mr(c,d,A,E,D,R)):!1}function dr(c){if(!zi(c)||vr(c))return!1;var d=ji(c)?jn:At;return d.test(ut(c))}function fr(c){return Vt(c)&&Ws(c.length)&&!!V[Me(c)]}function pr(c){if(!wr(c))return Oe(c);var d=[];for(var A in Object(c))wt.call(c,A)&&A!="constructor"&&d.push(A);return d}function js(c,d,A,E,D,R){var F=A&n,j=c.length,Q=d.length;if(j!=Q&&!(F&&Q>j))return!1;var W=R.get(c);if(W&&R.get(d))return W==d;var ot=-1,gt=!0,Y=A&r?new es:void 0;for(R.set(c,d),R.set(d,c);++ot<j;){var lt=c[ot],st=d[ot];if(E)var pe=F?E(st,lt,ot,d,c,R):E(lt,st,ot,c,d,R);if(pe!==void 0){if(pe)continue;gt=!1;break}if(Y){if(!Ni(d,function(ee,Be){if(!Ze(Y,Be)&&(lt===ee||D(lt,ee,A,E,R)))return Y.push(Be)})){gt=!1;break}}else if(!(lt===st||D(lt,st,A,E,R))){gt=!1;break}}return R.delete(c),R.delete(d),gt}function gr(c,d,A,E,D,R,F){switch(A){case $:if(c.byteLength!=d.byteLength||c.byteOffset!=d.byteOffset)return!1;c=c.buffer,d=d.buffer;case Z:return!(c.byteLength!=d.byteLength||!R(new Ri(c),new Ri(d)));case u:case g:case y:return Ui(+c,+d);case f:return c.name==d.name&&c.message==d.message;case T:case M:return c==d+"";case v:var j=Si;case q:var Q=E&n;if(j||(j=jt),c.size!=d.size&&!Q)return!1;var W=F.get(c);if(W)return W==d;E|=r,F.set(c,d);var ot=js(j(c),j(d),E,D,R,F);return F.delete(c),ot;case U:if(Hs)return Hs.call(c)==Hs.call(d)}return!1}function mr(c,d,A,E,D,R){var F=A&n,j=ke(c),Q=j.length,W=ke(d),ot=W.length;if(Q!=ot&&!F)return!1;for(var gt=Q;gt--;){var Y=j[gt];if(!(F?Y in d:wt.call(d,Y)))return!1}var lt=R.get(c);if(lt&&R.get(d))return lt==d;var st=!0;R.set(c,d),R.set(d,c);for(var pe=F;++gt<Q;){Y=j[gt];var ee=c[Y],Be=d[Y];if(E)var Qo=F?E(Be,ee,Y,d,c,R):E(ee,Be,Y,c,d,R);if(!(Qo===void 0?ee===Be||D(ee,Be,A,E,R):Qo)){st=!1;break}pe||(pe=Y=="constructor")}if(st&&!pe){var Vi=c.constructor,Ki=d.constructor;Vi!=Ki&&"constructor"in c&&"constructor"in d&&!(typeof Vi=="function"&&Vi instanceof Vi&&typeof Ki=="function"&&Ki instanceof Ki)&&(st=!1)}return R.delete(c),R.delete(d),st}function ke(c){return Fs(c,Vs,br)}function It(c,d){var A=c.__data__;return yr(d)?A[typeof d=="string"?"string":"hash"]:A.map}function $t(c,d){var A=Is(c,d);return dr(A)?A:void 0}function te(c){var d=wt.call(c,qt),A=c[qt];try{c[qt]=void 0;var E=!0}catch{}var D=Oi.call(c);return E&&(d?c[qt]=A:delete c[qt]),D}var br=ts?function(c){return c==null?[]:(c=Object(c),Ti(ts(c),function(d){return $e.call(c,d)}))}:Er,Wt=Me;(ks&&Wt(new ks(new ArrayBuffer(1)))!=$||Re&&Wt(new Re)!=v||Bs&&Wt(Bs.resolve())!=L||Ds&&Wt(new Ds)!=q||Ps&&Wt(new Ps)!=H)&&(Wt=function(c){var d=Me(c),A=d==C?c.constructor:void 0,E=A?ut(A):"";if(E)switch(E){case Mi:return $;case Jt:return v;case zn:return L;case Wn:return q;case Vn:return H}return d});function Ar(c,d){return d=d??o,!!d&&(typeof c=="number"||wi.test(c))&&c>-1&&c%1==0&&c<d}function yr(c){var d=typeof c;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?c!=="__proto__":c===null}function vr(c){return!!Ii&&Ii in c}function wr(c){var d=c&&c.constructor,A=typeof d=="function"&&d.prototype||qe;return c===A}function Hi(c){return Oi.call(c)}function ut(c){if(c!=null){try{return Os.call(c)}catch{}try{return c+""}catch{}}return""}function Ui(c,d){return c===d||c!==c&&d!==d}var Fi=Di(function(){return arguments}())?Di:function(c){return Vt(c)&&wt.call(c,"callee")&&!$e.call(c,"callee")},ns=Array.isArray;function zs(c){return c!=null&&Ws(c.length)&&!ji(c)}var rs=Ms||Lr;function Cr(c,d){return Pi(c,d)}function ji(c){if(!zi(c))return!1;var d=Me(c);return d==p||d==b||d==h||d==x}function Ws(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=o}function zi(c){var d=typeof c;return c!=null&&(d=="object"||d=="function")}function Vt(c){return c!=null&&typeof c=="object"}var Wi=Ss?Un(Ss):fr;function Vs(c){return zs(c)?hr(c):pr(c)}function Er(){return[]}function Lr(){return!1}i.exports=Cr})(gn,gn.exports);var rc=gn.exports,Bo={};Object.defineProperty(Bo,"__esModule",{value:!0});const Lp=nc,xp=rc;var no;(function(i){function t(r={},o={},l=!1){typeof r!="object"&&(r={}),typeof o!="object"&&(o={});let a=Lp(o);l||(a=Object.keys(a).reduce((h,u)=>(a[u]!=null&&(h[u]=a[u]),h),{}));for(const h in r)r[h]!==void 0&&o[h]===void 0&&(a[h]=r[h]);return Object.keys(a).length>0?a:void 0}i.compose=t;function e(r={},o={}){typeof r!="object"&&(r={}),typeof o!="object"&&(o={});const l=Object.keys(r).concat(Object.keys(o)).reduce((a,h)=>(xp(r[h],o[h])||(a[h]=o[h]===void 0?null:o[h]),a),{});return Object.keys(l).length>0?l:void 0}i.diff=e;function s(r={},o={}){r=r||{};const l=Object.keys(o).reduce((a,h)=>(o[h]!==r[h]&&r[h]!==void 0&&(a[h]=o[h]),a),{});return Object.keys(r).reduce((a,h)=>(r[h]!==o[h]&&o[h]===void 0&&(a[h]=null),a),l)}i.invert=s;function n(r,o,l=!1){if(typeof r!="object")return o;if(typeof o!="object")return;if(!l)return o;const a=Object.keys(o).reduce((h,u)=>(r[u]===void 0&&(h[u]=o[u]),h),{});return Object.keys(a).length>0?a:void 0}i.transform=n})(no||(no={}));Bo.default=no;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});var ro;(function(i){function t(e){return typeof e.delete=="number"?e.delete:typeof e.retain=="number"?e.retain:typeof e.retain=="object"&&e.retain!==null?1:typeof e.insert=="string"?e.insert.length:1}i.length=t})(ro||(ro={}));Nn.default=ro;var Do={};Object.defineProperty(Do,"__esModule",{value:!0});const ql=Nn;class Tp{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const e=this.ops[this.index];if(e){const s=this.offset,n=ql.default.length(e);if(t>=n-s?(t=n-s,this.index+=1,this.offset=0):this.offset+=t,typeof e.delete=="number")return{delete:t};{const r={};return e.attributes&&(r.attributes=e.attributes),typeof e.retain=="number"?r.retain=t:typeof e.retain=="object"&&e.retain!==null?r.retain=e.retain:typeof e.insert=="string"?r.insert=e.insert.substr(s,t):r.insert=e.insert,r}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?ql.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const t=this.offset,e=this.index,s=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[s].concat(n)}}else return[]}}Do.default=Tp;(function(i,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const e=Ep,s=nc,n=rc,r=Bo;t.AttributeMap=r.default;const o=Nn;t.Op=o.default;const l=Do;t.OpIterator=l.default;const a=String.fromCharCode(0),h=(g,f)=>{if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const p=Object.keys(g)[0];if(!p||p!==Object.keys(f)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(f)[0]}`);return[p,g[p],f[p]]};class u{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,p){this.handlers[f]=p}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const p=this.handlers[f];if(!p)throw new Error(`no handlers for embed type "${f}"`);return p}insert(f,p){const b={};return typeof f=="string"&&f.length===0?this:(b.insert=f,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(b.attributes=p),this.push(b))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,p){if(typeof f=="number"&&f<=0)return this;const b={retain:f};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(b.attributes=p),this.push(b)}push(f){let p=this.ops.length,b=this.ops[p-1];if(f=s(f),typeof b=="object"){if(typeof f.delete=="number"&&typeof b.delete=="number")return this.ops[p-1]={delete:b.delete+f.delete},this;if(typeof b.delete=="number"&&f.insert!=null&&(p-=1,b=this.ops[p-1],typeof b!="object"))return this.ops.unshift(f),this;if(n(f.attributes,b.attributes)){if(typeof f.insert=="string"&&typeof b.insert=="string")return this.ops[p-1]={insert:b.insert+f.insert},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof b.retain=="number")return this.ops[p-1]={retain:b.retain+f.retain},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this}}return p===this.ops.length?this.ops.push(f):this.ops.splice(p,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const p=[],b=[];return this.forEach(v=>{(f(v)?p:b).push(v)}),[p,b]}reduce(f,p){return this.ops.reduce(f,p)}changeLength(){return this.reduce((f,p)=>p.insert?f+o.default.length(p):p.delete?f-p.delete:f,0)}length(){return this.reduce((f,p)=>f+o.default.length(p),0)}slice(f=0,p=1/0){const b=[],v=new l.default(this.ops);let y=0;for(;y<p&&v.hasNext();){let w;y<f?w=v.next(f-y):(w=v.next(p-y),b.push(w)),y+=o.default.length(w)}return new u(b)}compose(f){const p=new l.default(this.ops),b=new l.default(f.ops),v=[],y=b.peek();if(y!=null&&typeof y.retain=="number"&&y.attributes==null){let C=y.retain;for(;p.peekType()==="insert"&&p.peekLength()<=C;)C-=p.peekLength(),v.push(p.next());y.retain-C>0&&b.next(y.retain-C)}const w=new u(v);for(;p.hasNext()||b.hasNext();)if(b.peekType()==="insert")w.push(b.next());else if(p.peekType()==="delete")w.push(p.next());else{const C=Math.min(p.peekLength(),b.peekLength()),L=p.next(C),x=b.next(C);if(x.retain){const T={};if(typeof L.retain=="number")T.retain=typeof x.retain=="number"?C:x.retain;else if(typeof x.retain=="number")L.retain==null?T.insert=L.insert:T.retain=L.retain;else{const M=L.retain==null?"insert":"retain",[U,_,H]=h(L[M],x.retain),Z=u.getHandler(U);T[M]={[U]:Z.compose(_,H,M==="retain")}}const q=r.default.compose(L.attributes,x.attributes,typeof L.retain=="number");if(q&&(T.attributes=q),w.push(T),!b.hasNext()&&n(w.ops[w.ops.length-1],T)){const M=new u(p.rest());return w.concat(M).chop()}}else typeof x.delete=="number"&&(typeof L.retain=="number"||typeof L.retain=="object"&&L.retain!==null)&&w.push(x)}return w.chop()}concat(f){const p=new u(this.ops.slice());return f.ops.length>0&&(p.push(f.ops[0]),p.ops=p.ops.concat(f.ops.slice(1))),p}diff(f,p){if(this.ops===f.ops)return new u;const b=[this,f].map(L=>L.map(x=>{if(x.insert!=null)return typeof x.insert=="string"?x.insert:a;const T=L===f?"on":"with";throw new Error("diff() called "+T+" non-document")}).join("")),v=new u,y=e(b[0],b[1],p,!0),w=new l.default(this.ops),C=new l.default(f.ops);return y.forEach(L=>{let x=L[1].length;for(;x>0;){let T=0;switch(L[0]){case e.INSERT:T=Math.min(C.peekLength(),x),v.push(C.next(T));break;case e.DELETE:T=Math.min(x,w.peekLength()),w.next(T),v.delete(T);break;case e.EQUAL:T=Math.min(w.peekLength(),C.peekLength(),x);const q=w.next(T),M=C.next(T);n(q.insert,M.insert)?v.retain(T,r.default.diff(q.attributes,M.attributes)):v.push(M).delete(T);break}x-=T}}),v.chop()}eachLine(f,p=`
2
- `){const b=new l.default(this.ops);let v=new u,y=0;for(;b.hasNext();){if(b.peekType()!=="insert")return;const w=b.peek(),C=o.default.length(w)-b.peekLength(),L=typeof w.insert=="string"?w.insert.indexOf(p,C)-C:-1;if(L<0)v.push(b.next());else if(L>0)v.push(b.next(L));else{if(f(v,b.next(1).attributes||{},y)===!1)return;y+=1,v=new u}}v.length()>0&&f(v,{},y)}invert(f){const p=new u;return this.reduce((b,v)=>{if(v.insert)p.delete(o.default.length(v));else{if(typeof v.retain=="number"&&v.attributes==null)return p.retain(v.retain),b+v.retain;if(v.delete||typeof v.retain=="number"){const y=v.delete||v.retain;return f.slice(b,b+y).forEach(C=>{v.delete?p.push(C):v.retain&&v.attributes&&p.retain(o.default.length(C),r.default.invert(v.attributes,C.attributes))}),b+y}else if(typeof v.retain=="object"&&v.retain!==null){const y=f.slice(b,b+1),w=new l.default(y.ops).next(),[C,L,x]=h(v.retain,w.insert),T=u.getHandler(C);return p.retain({[C]:T.invert(L,x)},r.default.invert(v.attributes,w.attributes)),b+1}}return b},0),p.chop()}transform(f,p=!1){if(p=!!p,typeof f=="number")return this.transformPosition(f,p);const b=f,v=new l.default(this.ops),y=new l.default(b.ops),w=new u;for(;v.hasNext()||y.hasNext();)if(v.peekType()==="insert"&&(p||y.peekType()!=="insert"))w.retain(o.default.length(v.next()));else if(y.peekType()==="insert")w.push(y.next());else{const C=Math.min(v.peekLength(),y.peekLength()),L=v.next(C),x=y.next(C);if(L.delete)continue;if(x.delete)w.push(x);else{const T=L.retain,q=x.retain;let M=typeof q=="object"&&q!==null?q:C;if(typeof T=="object"&&T!==null&&typeof q=="object"&&q!==null){const U=Object.keys(T)[0];if(U===Object.keys(q)[0]){const _=u.getHandler(U);_&&(M={[U]:_.transform(T[U],q[U],p)})}}w.retain(M,r.default.transform(L.attributes,x.attributes,p))}}return w.chop()}transformPosition(f,p=!1){p=!!p;const b=new l.default(this.ops);let v=0;for(;b.hasNext()&&v<=f;){const y=b.peekLength(),w=b.peekType();if(b.next(),w==="delete"){f-=Math.min(y,f-v);continue}else w==="insert"&&(v<f||!p)&&(f+=y);v+=y}return f}}u.Op=o.default,u.OpIterator=l.default,u.AttributeMap=r.default,u.handlers={},t.default=u,i.exports=u,i.exports.default=u})(io,io.exports);var Nt=io.exports;const I=$a(Nt);let Ut=class extends vt{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};Ut.blotName="break";Ut.tagName="BR";let Pt=class extends fn{};function Sn(i){return i.replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}var xt;let Te=(xt=class extends Oo{static compare(t,e){const s=xt.order.indexOf(t),n=xt.order.indexOf(e);return s>=0||n>=0?s-n:t===e?0:t<e?-1:1}formatAt(t,e,s,n){if(xt.compare(this.statics.blotName,s)<0&&this.scroll.query(s,O.BLOT)){const r=this.isolate(t,e);n&&r.wrap(s,n)}else super.formatAt(t,e,s,n)}optimize(t){if(super.optimize(t),this.parent instanceof xt&&xt.compare(this.statics.blotName,this.parent.statics.blotName)>0){const e=this.parent.isolate(this.offset(),this.length());this.moveChildren(e),e.wrap(this)}}},S(xt,"allowedChildren",[xt,Ut,vt,Pt]),S(xt,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]),xt);const Il=1;let nt=class extends oi{constructor(){super(...arguments);S(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=oc(this)),this.cache.delta}deleteAt(e,s){super.deleteAt(e,s),this.cache={}}formatAt(e,s,n,r){s<=0||(this.scroll.query(n,O.BLOCK)?e+s===this.length()&&this.format(n,r):super.formatAt(e,Math.min(s,this.length()-e-1),n,r),this.cache={})}insertAt(e,s,n){if(n!=null){super.insertAt(e,s,n),this.cache={};return}if(s.length===0)return;const r=s.split(`
3
- `),o=r.shift();o.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let l=this;r.reduce((a,h)=>(l=l.split(a,!0),l.insertAt(0,h),h.length),e+o.length)}insertBefore(e,s){const{head:n}=this.children;super.insertBefore(e,s),n instanceof Ut&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Il),this.cache.length}moveChildren(e,s){super.moveChildren(e,s),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(s&&(e===0||e>=this.length()-Il)){const r=this.clone();return e===0?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}const n=super.split(e,s);return this.cache={},n}};nt.blotName="block";nt.tagName="P";nt.defaultChild=Ut;nt.allowedChildren=[Ut,Te,vt,Pt];class Tt extends vt{attach(){super.attach(),this.attributes=new En(this.domNode)}delta(){return new I().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const s=this.scroll.query(t,O.BLOCK_ATTRIBUTE);s!=null&&this.attributes.attribute(s,e)}formatAt(t,e,s,n){this.format(s,n)}insertAt(t,e,s){if(s!=null){super.insertAt(t,e,s);return}const n=e.split(`
4
- `),r=n.pop(),o=n.map(a=>{const h=this.scroll.create(nt.blotName);return h.insertAt(0,a),h}),l=this.split(t);o.forEach(a=>{this.parent.insertBefore(a,l)}),r&&this.parent.insertBefore(this.scroll.create("text",r),l)}}Tt.scope=O.BLOCK_BLOT;function oc(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return i.descendants(ct).reduce((e,s)=>s.length()===0?e:e.insert(s.value(),Et(s,{},t)),new I).insert(`
5
- `,Et(i))}function Et(i){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return i==null||("formats"in i&&typeof i.formats=="function"&&(t={...t,...i.formats()},e&&delete t["code-token"]),i.parent==null||i.parent.statics.blotName==="scroll"||i.parent.statics.scope!==i.statics.scope)?t:Et(i.parent,t,e)}const Ct=class Ct extends vt{static value(){}constructor(t,e,s){super(t,e),this.selection=s,this.textNode=document.createTextNode(Ct.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,e){if(this.savedLength!==0){super.format(t,e);return}let s=this,n=0;for(;s!=null&&s.statics.scope!==O.BLOCK_BLOT;)n+=s.offset(s.parent),s=s.parent;s!=null&&(this.savedLength=Ct.CONTENTS.length,s.optimize(),s.formatAt(n,Ct.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof Pt?this.prev:null,s=e?e.length():0,n=this.next instanceof Pt?this.next:null,r=n?n.text:"",{textNode:o}=this,l=o.data.split(Ct.CONTENTS).join("");o.data=Ct.CONTENTS;let a;if(e)a=e,(l||n)&&(e.insertAt(e.length(),l+r),n&&n.remove());else if(n)a=n,n.insertAt(0,l);else{const h=document.createTextNode(l);a=this.scroll.create(h),this.parent.insertBefore(a,this)}if(this.remove(),t){const h=(f,p)=>e&&f===e.domNode?p:f===o?s+p-1:n&&f===n.domNode?s+l.length+p:null,u=h(t.start.node,t.start.offset),g=h(t.end.node,t.end.offset);if(u!==null&&g!==null)return{startNode:a.domNode,startOffset:u,endNode:a.domNode,endOffset:g}}return null}update(t,e){if(t.some(s=>s.type==="characterData"&&s.target===this.textNode)){const s=this.restore();s&&(e.range=s)}}optimize(t){super.optimize(t);let{parent:e}=this;for(;e;){if(e.domNode.tagName==="A"){this.savedLength=Ct.CONTENTS.length,e.isolate(this.offset(e),this.length()).unwrap(),this.savedLength=0;break}e=e.parent}}value(){return""}};S(Ct,"blotName","cursor"),S(Ct,"className","ql-cursor"),S(Ct,"tagName","span"),S(Ct,"CONTENTS","\uFEFF");let As=Ct;var lc={exports:{}};(function(i){var t=Object.prototype.hasOwnProperty,e="~";function s(){}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(e=!1));function n(a,h,u){this.fn=a,this.context=h,this.once=u||!1}function r(a,h,u,g,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new n(u,g||a,f),b=e?e+h:h;return a._events[b]?a._events[b].fn?a._events[b]=[a._events[b],p]:a._events[b].push(p):(a._events[b]=p,a._eventsCount++),a}function o(a,h){--a._eventsCount===0?a._events=new s:delete a._events[h]}function l(){this._events=new s,this._eventsCount=0}l.prototype.eventNames=function(){var h=[],u,g;if(this._eventsCount===0)return h;for(g in u=this._events)t.call(u,g)&&h.push(e?g.slice(1):g);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(u)):h},l.prototype.listeners=function(h){var u=e?e+h:h,g=this._events[u];if(!g)return[];if(g.fn)return[g.fn];for(var f=0,p=g.length,b=new Array(p);f<p;f++)b[f]=g[f].fn;return b},l.prototype.listenerCount=function(h){var u=e?e+h:h,g=this._events[u];return g?g.fn?1:g.length:0},l.prototype.emit=function(h,u,g,f,p,b){var v=e?e+h:h;if(!this._events[v])return!1;var y=this._events[v],w=arguments.length,C,L;if(y.fn){switch(y.once&&this.removeListener(h,y.fn,void 0,!0),w){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,u),!0;case 3:return y.fn.call(y.context,u,g),!0;case 4:return y.fn.call(y.context,u,g,f),!0;case 5:return y.fn.call(y.context,u,g,f,p),!0;case 6:return y.fn.call(y.context,u,g,f,p,b),!0}for(L=1,C=new Array(w-1);L<w;L++)C[L-1]=arguments[L];y.fn.apply(y.context,C)}else{var x=y.length,T;for(L=0;L<x;L++)switch(y[L].once&&this.removeListener(h,y[L].fn,void 0,!0),w){case 1:y[L].fn.call(y[L].context);break;case 2:y[L].fn.call(y[L].context,u);break;case 3:y[L].fn.call(y[L].context,u,g);break;case 4:y[L].fn.call(y[L].context,u,g,f);break;default:if(!C)for(T=1,C=new Array(w-1);T<w;T++)C[T-1]=arguments[T];y[L].fn.apply(y[L].context,C)}}return!0},l.prototype.on=function(h,u,g){return r(this,h,u,g,!1)},l.prototype.once=function(h,u,g){return r(this,h,u,g,!0)},l.prototype.removeListener=function(h,u,g,f){var p=e?e+h:h;if(!this._events[p])return this;if(!u)return o(this,p),this;var b=this._events[p];if(b.fn)b.fn===u&&(!f||b.once)&&(!g||b.context===g)&&o(this,p);else{for(var v=0,y=[],w=b.length;v<w;v++)(b[v].fn!==u||f&&!b[v].once||g&&b[v].context!==g)&&y.push(b[v]);y.length?this._events[p]=y.length===1?y[0]:y:o(this,p)}return this},l.prototype.removeAllListeners=function(h){var u;return h?(u=e?e+h:h,this._events[u]&&o(this,u)):(this._events=new s,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=e,l.EventEmitter=l,i.exports=l})(lc);var Np=lc.exports;const Sp=$a(Np),oo=new WeakMap,lo=["error","warn","log","info"];let ao="warn";function ac(i){if(ao&&lo.indexOf(i)<=lo.indexOf(ao)){for(var t=arguments.length,e=new Array(t>1?t-1:0),s=1;s<t;s++)e[s-1]=arguments[s];console[i](...e)}}function he(i){return lo.reduce((t,e)=>(t[e]=ac.bind(console,e,i),t),{})}he.level=i=>{ao=i};ac.level=he.level;const Ir=he("quill:events"),qp=["selectionchange","mousedown","mouseup","click"];qp.forEach(i=>{document.addEventListener(i,function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{const r=oo.get(n);r&&r.emitter&&r.emitter.handleDOM(...e)})})});class N extends Sp{constructor(){super(),this.domListeners={},this.on("error",Ir.error)}emit(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];return Ir.log.call(Ir,...e),super.emit(...e)}handleDOM(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),n=1;n<e;n++)s[n-1]=arguments[n];(this.domListeners[t.type]||[]).forEach(r=>{let{node:o,handler:l}=r;(t.target===o||o.contains(t.target))&&l(t,...s)})}listenDOM(t,e,s){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:e,handler:s})}}S(N,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),S(N,"sources",{API:"api",SILENT:"silent",USER:"user"});const Or=he("quill:selection");class Gt{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=e}}class Ip{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Gt(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,N.sources.USER),1)}),this.emitter.on(N.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const s=this.getNativeRange();s!=null&&s.start.node!==this.cursor.textNode&&this.emitter.once(N.events.SCROLL_UPDATE,(n,r)=>{try{this.root.contains(s.start.node)&&this.root.contains(s.end.node)&&this.setNativeRange(s.start.node,s.start.offset,s.end.node,s.end.offset);const o=r.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(o?N.sources.SILENT:n)}catch{}})}),this.emitter.on(N.events.SCROLL_OPTIMIZE,(s,n)=>{if(n.range){const{startNode:r,startOffset:o,endNode:l,endOffset:a}=n.range;this.setNativeRange(r,o,l,a),this.update(N.sources.SILENT)}}),this.update(N.sources.SILENT)}handleComposition(){this.emitter.on(N.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(N.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(N.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const s=this.getNativeRange();if(!(s==null||!s.native.collapsed||this.scroll.query(t,O.BLOCK))){if(s.start.node!==this.cursor.textNode){const n=this.scroll.find(s.start.node,!1);if(n==null)return;if(n instanceof ct){const r=n.split(s.start.offset);n.parent.insertBefore(this.cursor,r)}else n.insertBefore(this.cursor,s.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const s=this.scroll.length();t=Math.min(t,s-1),e=Math.min(t+e,s-1)-t;let n,[r,o]=this.scroll.leaf(t);if(r==null)return null;if(e>0&&o===r.length()){const[u]=this.scroll.leaf(t+1);if(u){const[g]=this.scroll.line(t),[f]=this.scroll.line(t+1);g===f&&(r=u,o=0)}}[n,o]=r.position(o,!0);const l=document.createRange();if(e>0)return l.setStart(n,o),[r,o]=this.scroll.leaf(t+e),r==null?null:([n,o]=r.position(o,!0),l.setEnd(n,o),l.getBoundingClientRect());let a="left",h;if(n instanceof Text){if(!n.data.length)return null;o<n.data.length?(l.setStart(n,o),l.setEnd(n,o+1)):(l.setStart(n,o-1),l.setEnd(n,o),a="right"),h=l.getBoundingClientRect()}else{if(!(r.domNode instanceof Element))return null;h=r.domNode.getBoundingClientRect(),o>0&&(a="right")}return{bottom:h.top+h.height,height:h.height,left:h[a],right:h[a],top:h.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(e==null)return null;const s=this.normalizeNative(e);return Or.info("getNativeRange",s),s}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const e=this.getNativeRange();return e==null?[null,null]:[this.normalizedToRange(e),e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&Rr(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const s=e.map(o=>{const[l,a]=o,h=this.scroll.find(l,!0),u=h.offset(this.scroll);return a===0?u:h instanceof ct?u+h.index(l,a):u+h.length()}),n=Math.min(Math.max(...s),this.scroll.length()-1),r=Math.min(n,...s);return new Gt(r,n-r)}normalizeNative(t){if(!Rr(this.root,t.startContainer)||!t.collapsed&&!Rr(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(s=>{let{node:n,offset:r}=s;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>r)n=n.childNodes[r],r=0;else if(n.childNodes.length===r)n=n.lastChild,n instanceof Text?r=n.data.length:n.childNodes.length>0?r=n.childNodes.length:r=n.childNodes.length+1;else break;s.node=n,s.offset=r}),e}rangeToNative(t){const e=this.scroll.length(),s=(n,r)=>{n=Math.min(e-1,n);const[o,l]=this.scroll.leaf(n);return o?o.position(l,r):[null,-1]};return[...s(t.index,!1),...s(t.index+t.length,!0)]}setNativeRange(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:e,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Or.info("setNativeRange",t,e,s,n),t!=null&&(this.root.parentNode==null||t.parentNode==null||s.parentNode==null))return;const o=document.getSelection();if(o!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:l}=this.getNativeRange()||{};if(l==null||r||t!==l.startContainer||e!==l.startOffset||s!==l.endContainer||n!==l.endOffset){t instanceof Element&&t.tagName==="BR"&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),s instanceof Element&&s.tagName==="BR"&&(n=Array.from(s.parentNode.childNodes).indexOf(s),s=s.parentNode);const a=document.createRange();a.setStart(t,e),a.setEnd(s,n),o.removeAllRanges(),o.addRange(a)}}else o.removeAllRanges(),this.root.blur()}setRange(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:N.sources.API;if(typeof e=="string"&&(s=e,e=!1),Or.info("setRange",t),t!=null){const n=this.rangeToNative(t);this.setNativeRange(...n,e)}else this.setNativeRange(null);this.update(s)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N.sources.USER;const e=this.lastRange,[s,n]=this.getRange();if(this.lastRange=s,this.lastNative=n,this.lastRange!=null&&(this.savedRange=this.lastRange),!Io(e,this.lastRange)){if(!this.composing&&n!=null&&n.native.collapsed&&n.start.node!==this.cursor.textNode){const o=this.cursor.restore();o&&this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.endOffset)}const r=[N.events.SELECTION_CHANGE,fs(this.lastRange),fs(e),t];this.emitter.emit(N.events.EDITOR_CHANGE,...r),t!==N.sources.SILENT&&this.emitter.emit(...r)}}}function Rr(i,t){try{t.parentNode}catch{return!1}return i.contains(t)}const Op=/^[ -~]*$/;class Rp{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const s=Ol(t),n=new I;return kp(s.ops.slice()).reduce((o,l)=>{const a=Nt.Op.length(l);let h=l.attributes||{},u=!1,g=!1;if(l.insert!=null){if(n.retain(a),typeof l.insert=="string"){const b=l.insert;g=!b.endsWith(`
6
- `)&&(e<=o||!!this.scroll.descendant(Tt,o)[0]),this.scroll.insertAt(o,b);const[v,y]=this.scroll.line(o);let w=ne({},Et(v));if(v instanceof nt){const[C]=v.descendant(ct,y);C&&(w=ne(w,Et(C)))}h=Nt.AttributeMap.diff(w,h)||{}}else if(typeof l.insert=="object"){const b=Object.keys(l.insert)[0];if(b==null)return o;const v=this.scroll.query(b,O.INLINE)!=null;if(v)(e<=o||this.scroll.descendant(Tt,o)[0])&&(g=!0);else if(o>0){const[y,w]=this.scroll.descendant(ct,o-1);y instanceof Pt?y.value()[w]!==`
7
- `&&(u=!0):y instanceof vt&&y.statics.scope===O.INLINE_BLOT&&(u=!0)}if(this.scroll.insertAt(o,b,l.insert[b]),v){const[y]=this.scroll.descendant(ct,o);if(y){const w=ne({},Et(y));h=Nt.AttributeMap.diff(w,h)||{}}}}e+=a}else if(n.push(l),l.retain!==null&&typeof l.retain=="object"){const b=Object.keys(l.retain)[0];if(b==null)return o;this.scroll.updateEmbedAt(o,b,l.retain[b])}Object.keys(h).forEach(b=>{this.scroll.formatAt(o,a,b,h[b])});const f=u?1:0,p=g?1:0;return e+=f+p,n.retain(f),n.delete(p),o+a+f+p},0),n.reduce((o,l)=>typeof l.delete=="number"?(this.scroll.deleteAt(o,l.delete),o):o+Nt.Op.length(l),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(s)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update(new I().retain(t).delete(e))}formatLine(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(s).forEach(r=>{this.scroll.lines(t,Math.max(e,1)).forEach(o=>{o.format(r,s[r])})}),this.scroll.optimize();const n=new I().retain(t).retain(e,fs(s));return this.update(n)}formatText(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(s).forEach(r=>{this.scroll.formatAt(t,e,r,s[r])});const n=new I().retain(t).retain(e,fs(s));return this.update(n)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new I)}getFormat(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=[],n=[];e===0?this.scroll.path(t).forEach(l=>{const[a]=l;a instanceof nt?s.push(a):a instanceof ct&&n.push(a)}):(s=this.scroll.lines(t,e),n=this.scroll.descendants(ct,t,e));const[r,o]=[s,n].map(l=>{const a=l.shift();if(a==null)return{};let h=Et(a);for(;Object.keys(h).length>0;){const u=l.shift();if(u==null)return h;h=Mp(Et(u),h)}return h});return{...r,...o}}getHTML(t,e){const[s,n]=this.scroll.line(t);if(s){const r=s.length();return s.length()>=n+e&&!(n===0&&e===r)?ai(s,n,e,!0):ai(this.scroll,t,e,!0)}return""}getText(t,e){return this.getContents(t,e).filter(s=>typeof s.insert=="string").map(s=>s.insert).join("")}insertContents(t,e){const s=Ol(e),n=new I().retain(t).concat(s);return this.scroll.insertContents(t,s),this.update(n)}insertEmbed(t,e,s){return this.scroll.insertAt(t,e,s),this.update(new I().retain(t).insert({[e]:s}))}insertText(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e=e.replace(/\r\n/g,`
8
- `).replace(/\r/g,`
9
- `),this.scroll.insertAt(t,e),Object.keys(s).forEach(n=>{this.scroll.formatAt(t,e.length,n,s[n])}),this.update(new I().retain(t).insert(e,fs(s)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==nt.blotName)return!1;const e=t;return e.children.length>1?!1:e.children.head instanceof Ut}removeFormat(t,e){const s=this.getText(t,e),[n,r]=this.scroll.line(t+e);let o=0,l=new I;n!=null&&(o=n.length()-r,l=n.delta().slice(r,r+o-1).insert(`
10
- `));const h=this.getContents(t,e+o).diff(new I().insert(s).concat(l)),u=new I().retain(t).concat(h);return this.applyDelta(u)}update(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const n=this.delta;if(e.length===1&&e[0].type==="characterData"&&e[0].target.data.match(Op)&&this.scroll.find(e[0].target)){const r=this.scroll.find(e[0].target),o=Et(r),l=r.offset(this.scroll),a=e[0].oldValue.replace(As.CONTENTS,""),h=new I().insert(a),u=new I().insert(r.value()),g=s&&{oldRange:Rl(s.oldRange,-l),newRange:Rl(s.newRange,-l)};t=new I().retain(l).concat(h.diff(u,g)).reduce((p,b)=>b.insert?p.insert(b.insert,o):p.push(b),new I),this.delta=n.compose(t)}else this.delta=this.getDelta(),(!t||!Io(n.compose(t),this.delta))&&(t=n.diff(this.delta,s));return t}}function us(i,t,e){if(i.length===0){const[p]=Mr(e.pop());return t<=0?`</li></${p}>`:`</li></${p}>${us([],t-1,e)}`}const[{child:s,offset:n,length:r,indent:o,type:l},...a]=i,[h,u]=Mr(l);if(o>t)return e.push(l),o===t+1?`<${h}><li${u}>${ai(s,n,r)}${us(a,o,e)}`:`<${h}><li>${us(i,t+1,e)}`;const g=e[e.length-1];if(o===t&&l===g)return`</li><li${u}>${ai(s,n,r)}${us(a,o,e)}`;const[f]=Mr(e.pop());return`</li></${f}>${us(i,t-1,e)}`}function ai(i,t,e){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in i&&typeof i.html=="function")return i.html(t,e);if(i instanceof Pt)return Sn(i.value().slice(t,t+e));if(i instanceof Bt){if(i.statics.blotName==="list-container"){const h=[];return i.children.forEachAt(t,e,(u,g,f)=>{const p="formats"in u&&typeof u.formats=="function"?u.formats():{};h.push({child:u,offset:g,length:f,indent:p.indent||0,type:p.list})}),us(h,-1,[])}const n=[];if(i.children.forEachAt(t,e,(h,u,g)=>{n.push(ai(h,u,g))}),s||i.statics.blotName==="list")return n.join("");const{outerHTML:r,innerHTML:o}=i.domNode,[l,a]=r.split(`>${o}<`);return l==="<table"?`<table style="border: 1px solid #000;">${n.join("")}<${a}`:`${l}>${n.join("")}<${a}`}return i.domNode instanceof Element?i.domNode.outerHTML:""}function Mp(i,t){return Object.keys(t).reduce((e,s)=>{if(i[s]==null)return e;const n=t[s];return n===i[s]?e[s]=n:Array.isArray(n)?n.indexOf(i[s])<0?e[s]=n.concat([i[s]]):e[s]=n:e[s]=[n,i[s]],e},{})}function Mr(i){const t=i==="ordered"?"ol":"ul";switch(i){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function Ol(i){return i.reduce((t,e)=>{if(typeof e.insert=="string"){const s=e.insert.replace(/\r\n/g,`
11
- `).replace(/\r/g,`
12
- `);return t.insert(s,e.attributes)}return t.push(e)},new I)}function Rl(i,t){let{index:e,length:s}=i;return new Gt(e+t,s)}function kp(i){const t=[];return i.forEach(e=>{typeof e.insert=="string"?e.insert.split(`
13
- `).forEach((n,r)=>{r&&t.push({insert:`
14
- `,attributes:e.attributes}),n&&t.push({insert:n,attributes:e.attributes})}):t.push(e)}),t}var Wr;let Qt=(Wr=class{constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=e}},S(Wr,"DEFAULTS",{}),Wr);const _i="\uFEFF";let Po=class extends vt{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(s=>{this.contentNode.appendChild(s)}),this.leftGuard=document.createTextNode(_i),this.rightGuard=document.createTextNode(_i),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e=null,s;const n=t.data.split(_i).join("");if(t===this.leftGuard)if(this.prev instanceof Pt){const r=this.prev.length();this.prev.insertAt(r,n),e={startNode:this.prev.domNode,startOffset:r+n.length}}else s=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(s),this),e={startNode:s,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof Pt?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(s=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(s),this.next),e={startNode:s,startOffset:n.length}));return t.data=_i,e}update(t,e){t.forEach(s=>{if(s.type==="characterData"&&(s.target===this.leftGuard||s.target===this.rightGuard)){const n=this.restore(s.target);n&&(e.range=n)}})}};class Bp{constructor(t,e){S(this,"isComposing",!1);this.scroll=t,this.emitter=e,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,!0):null;e&&!(e instanceof Po)&&(this.emitter.emit(N.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(N.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(N.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(N.events.COMPOSITION_END,t),this.isComposing=!1}}const ei=class ei{constructor(t,e){S(this,"modules",{});this.quill=t,this.options=e}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}};S(ei,"DEFAULTS",{modules:{}}),S(ei,"themes",{default:ei});let ys=ei;const Dp=i=>i.parentElement||i.getRootNode().host||null,Pp=i=>{const t=i.getBoundingClientRect(),e="offsetWidth"in i&&Math.abs(t.width)/i.offsetWidth||1,s="offsetHeight"in i&&Math.abs(t.height)/i.offsetHeight||1;return{top:t.top,right:t.left+i.clientWidth*e,bottom:t.top+i.clientHeight*s,left:t.left}},Gi=i=>{const t=parseInt(i,10);return Number.isNaN(t)?0:t},Ml=(i,t,e,s,n,r)=>i<e&&t>s?0:i<e?-(e-i+n):t>s?t-i>s-e?i+n-e:t-s+r:0,Hp=(i,t)=>{var r,o,l;const e=i.ownerDocument;let s=t,n=i;for(;n;){const a=n===e.body,h=a?{top:0,right:((r=window.visualViewport)==null?void 0:r.width)??e.documentElement.clientWidth,bottom:((o=window.visualViewport)==null?void 0:o.height)??e.documentElement.clientHeight,left:0}:Pp(n),u=getComputedStyle(n),g=Ml(s.left,s.right,h.left,h.right,Gi(u.scrollPaddingLeft),Gi(u.scrollPaddingRight)),f=Ml(s.top,s.bottom,h.top,h.bottom,Gi(u.scrollPaddingTop),Gi(u.scrollPaddingBottom));if(g||f)if(a)(l=e.defaultView)==null||l.scrollBy(g,f);else{const{scrollLeft:p,scrollTop:b}=n;f&&(n.scrollTop+=f),g&&(n.scrollLeft+=g);const v=n.scrollLeft-p,y=n.scrollTop-b;s={left:s.left-v,top:s.top-y,right:s.right-v,bottom:s.bottom-y}}n=a||u.position==="fixed"?null:Dp(n)}},Up=100,Fp=["block","break","cursor","inline","scroll","text"],jp=(i,t,e)=>{const s=new bs;return Fp.forEach(n=>{const r=t.query(n);r&&s.register(r)}),i.forEach(n=>{let r=t.query(n);r||e.error(`Cannot register "${n}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;r;)if(s.register(r),r="blotName"in r?r.requiredContainer??null:null,o+=1,o>Up){e.error(`Cycle detected in registering blot requiredContainer: "${n}"`);break}}),s},gs=he("quill"),Zi=new bs;Bt.uiClass="ql-ui";const Rt=class Rt{static debug(t){t===!0&&(t="log"),he.level(t)}static find(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return oo.get(t)||Zi.find(t,e)}static import(t){return this.imports[t]==null&&gs.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const t=arguments.length<=0?void 0:arguments[0],e=!!(!(arguments.length<=1)&&arguments[1]),s="attrName"in t?t.attrName:t.blotName;typeof s=="string"?this.register(`formats/${s}`,t,e):Object.keys(t).forEach(n=>{this.register(n,t[n],e)})}else{const t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],s=!!(!(arguments.length<=2)&&arguments[2]);this.imports[t]!=null&&!s&&gs.warn(`Overwriting ${t} with`,e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&e&&typeof e!="boolean"&&e.blotName!=="abstract"&&Zi.register(e),typeof e.register=="function"&&e.register(Zi)}}constructor(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=zp(t,e),this.container=this.options.container,this.container==null){gs.error("Invalid Quill container",t);return}this.options.debug&&Rt.debug(this.options.debug);const s=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",oo.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new N;const n=Ro.blotName,r=this.options.registry.query(n);if(!r||!("blotName"in r))throw new Error(`Cannot initialize Quill without "${n}" blot`);if(this.scroll=new r(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Rp(this.scroll),this.selection=new Ip(this.scroll,this.emitter),this.composition=new Bp(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.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(N.events.EDITOR_CHANGE,o=>{o===N.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(N.events.SCROLL_UPDATE,(o,l)=>{const a=this.selection.lastRange,[h]=this.selection.getRange(),u=a&&h?{oldRange:a,newRange:h}:void 0;Ot.call(this,()=>this.editor.update(null,l,u),o)}),this.emitter.on(N.events.SCROLL_EMBED_UPDATE,(o,l)=>{const a=this.selection.lastRange,[h]=this.selection.getRange(),u=a&&h?{oldRange:a,newRange:h}:void 0;Ot.call(this,()=>{const g=new I().retain(o.offset(this)).retain({[o.statics.blotName]:l});return this.editor.update(g,[],u)},Rt.sources.USER)}),s){const o=this.clipboard.convert({html:`${s}<p><br></p>`,text:`
15
- `});this.setContents(o)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const s=t;t=document.createElement("div"),t.classList.add(s)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,s){return[t,e,,s]=se(t,e,s),Ot.call(this,()=>this.editor.deleteText(t,e),s,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:N.sources.API;return Ot.call(this,()=>{const n=this.getSelection(!0);let r=new I;if(n==null)return r;if(this.scroll.query(t,O.BLOCK))r=this.editor.formatLine(n.index,n.length,{[t]:e});else{if(n.length===0)return this.selection.format(t,e),r;r=this.editor.formatText(n.index,n.length,{[t]:e})}return this.setSelection(n,N.sources.SILENT),r},s)}formatLine(t,e,s,n,r){let o;return[t,e,o,r]=se(t,e,s,n,r),Ot.call(this,()=>this.editor.formatLine(t,e,o),r,t,0)}formatText(t,e,s,n,r){let o;return[t,e,o,r]=se(t,e,s,n,r),Ot.call(this,()=>this.editor.formatText(t,e,o),r,t,0)}getBounds(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=null;if(typeof t=="number"?s=this.selection.getBounds(t,e):s=this.selection.getBounds(t.index,t.length),!s)return null;const n=this.container.getBoundingClientRect();return{bottom:s.bottom-n.top,height:s.height,left:s.left-n.left,right:s.right-n.left,top:s.top-n.top,width:s.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,e]=se(t,e),this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e??this.getLength()-t),[t,e]=se(t,e),this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(e=e??this.getLength()-t),[t,e]=se(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,s){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Rt.sources.API;return Ot.call(this,()=>this.editor.insertEmbed(t,e,s),n,t)}insertText(t,e,s,n,r){let o;return[t,,o,r]=se(t,0,s,n,r),Ot.call(this,()=>this.editor.insertText(t,e,o),r,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(t,e,s){return[t,e,,s]=se(t,e,s),Ot.call(this,()=>this.editor.removeFormat(t,e),s,t)}scrollRectIntoView(t){Hp(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,e=t&&this.selection.getBounds(t.index,t.length);e&&this.scrollRectIntoView(e)}setContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N.sources.API;return Ot.call(this,()=>{t=new I(t);const s=this.getLength(),n=this.editor.deleteText(0,s),r=this.editor.insertContents(0,t),o=this.editor.deleteText(this.getLength()-1,1);return n.compose(r).compose(o)},e)}setSelection(t,e,s){t==null?this.selection.setRange(null,e||Rt.sources.API):([t,e,,s]=se(t,e,s),this.selection.setRange(new Gt(Math.max(0,t),e),s),s!==N.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N.sources.API;const s=new I().insert(t);return this.setContents(s,e)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N.sources.USER;const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N.sources.API;return Ot.call(this,()=>(t=new I(t),this.editor.applyDelta(t)),e,!0)}};S(Rt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Zi,theme:"default"}),S(Rt,"events",N.events),S(Rt,"sources",N.sources),S(Rt,"version","2.0.2"),S(Rt,"imports",{delta:I,parchment:fp,"core/module":Qt,"core/theme":ys});let m=Rt;function kl(i){return typeof i=="string"?document.querySelector(i):i}function kr(i){return Object.entries(i??{}).reduce((t,e)=>{let[s,n]=e;return{...t,[s]:n===!0?{}:n}},{})}function Bl(i){return Object.fromEntries(Object.entries(i).filter(t=>t[1]!==void 0))}function zp(i,t){const e=kl(i);if(!e)throw new Error("Invalid Quill container");const n=!t.theme||t.theme===m.DEFAULTS.theme?ys:m.import(`themes/${t.theme}`);if(!n)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:r,...o}=m.DEFAULTS,{modules:l,...a}=n.DEFAULTS;let h=kr(t.modules);h!=null&&h.toolbar&&h.toolbar.constructor!==Object&&(h={...h,toolbar:{container:h.toolbar}});const u=ne({},kr(r),kr(l),h),g={...o,...Bl(a),...Bl(t)};let f=t.registry;return f?t.formats&&gs.warn('Ignoring "formats" option because "registry" is specified'):f=t.formats?jp(t.formats,g.registry,gs):g.registry,{...g,registry:f,container:e,theme:n,modules:Object.entries(u).reduce((p,b)=>{let[v,y]=b;if(!y)return p;const w=m.import(`modules/${v}`);return w==null?(gs.error(`Cannot load ${v} module. Are you sure you registered it?`),p):{...p,[v]:ne({},w.DEFAULTS||{},y)}},{}),bounds:kl(g.bounds)}}function Ot(i,t,e,s){if(!this.isEnabled()&&t===N.sources.USER&&!this.allowReadOnlyEdits)return new I;let n=e==null?null:this.getSelection();const r=this.editor.delta,o=i();if(n!=null&&(e===!0&&(e=n.index),s==null?n=Dl(n,o,t):s!==0&&(n=Dl(n,e,s,t)),this.setSelection(n,N.sources.SILENT)),o.length()>0){const l=[N.events.TEXT_CHANGE,o,r,t];this.emitter.emit(N.events.EDITOR_CHANGE,...l),t!==N.sources.SILENT&&this.emitter.emit(...l)}return o}function se(i,t,e,s,n){let r={};return typeof i.index=="number"&&typeof i.length=="number"?typeof t!="number"?(n=s,s=e,e=t,t=i.length,i=i.index):(t=i.length,i=i.index):typeof t!="number"&&(n=s,s=e,e=t,t=0),typeof e=="object"?(r=e,n=s):typeof e=="string"&&(s!=null?r[e]=s:n=e),n=n||N.sources.API,[i,t,r,n]}function Dl(i,t,e,s){const n=typeof e=="number"?e:0;if(i==null)return null;let r,o;return t&&typeof t.transformPosition=="function"?[r,o]=[i.index,i.index+i.length].map(l=>t.transformPosition(l,s!==N.sources.USER)):[r,o]=[i.index,i.index+i.length].map(l=>l<t||l===t&&s===N.sources.USER?l:n>=0?l+n:Math.max(t,l+n)),new Gt(r,o-r)}let Ve=class extends Ln{};function Pl(i){return i instanceof nt||i instanceof Tt}function Hl(i){return typeof i.updateContent=="function"}class ds extends Ro{constructor(t,e,s){let{emitter:n}=s;super(t,e),this.emitter=n,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",r=>this.handleDragStart(r))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(N.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(N.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(N.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[s,n]=this.line(t),[r]=this.line(t+e);if(super.deleteAt(t,e),r!=null&&s!==r&&n>0){if(s instanceof Tt||r instanceof Tt){this.optimize();return}const o=r.children.head instanceof Ut?null:r.children.head;s.moveChildren(r,o),s.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,s,n){super.formatAt(t,e,s,n),this.optimize()}insertAt(t,e,s){if(t>=this.length())if(s==null||this.scroll.query(e,O.BLOCK)==null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n),s==null&&e.endsWith(`
16
- `)?n.insertAt(0,e.slice(0,-1),s):n.insertAt(0,e,s)}else{const n=this.scroll.create(e,s);this.appendChild(n)}else super.insertAt(t,e,s);this.optimize()}insertBefore(t,e){if(t.statics.scope===O.INLINE_BLOT){const s=this.scroll.create(this.statics.defaultChild.blotName);s.appendChild(t),super.insertBefore(s,e)}else super.insertBefore(t,e)}insertContents(t,e){const s=this.deltaToRenderBlocks(e.concat(new I().insert(`
17
- `))),n=s.pop();if(n==null)return;this.batchStart();const r=s.shift();if(r){const a=r.type==="block"&&(r.delta.length()===0||!this.descendant(Tt,t)[0]&&t<this.length()),h=r.type==="block"?r.delta:new I().insert({[r.key]:r.value});Br(this,t,h);const u=r.type==="block"?1:0,g=t+h.length()+u;a&&this.insertAt(g-1,`
18
- `);const f=Et(this.line(t)[0]),p=Nt.AttributeMap.diff(f,r.attributes)||{};Object.keys(p).forEach(b=>{this.formatAt(g-1,1,b,p[b])}),t=g}let[o,l]=this.children.find(t);if(s.length&&(o&&(o=o.split(l),l=0),s.forEach(a=>{if(a.type==="block"){const h=this.createBlock(a.attributes,o||void 0);Br(h,0,a.delta)}else{const h=this.create(a.key,a.value);this.insertBefore(h,o||void 0),Object.keys(a.attributes).forEach(u=>{h.format(u,a.attributes[u])})}})),n.type==="block"&&n.delta.length()){const a=o?o.offset(o.scroll)+l:this.length();Br(this,a,n.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const e=this.path(t).pop();if(!e)return[null,-1];const[s,n]=e;return s instanceof ct?[s,n]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Pl,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const s=(n,r,o)=>{let l=[],a=o;return n.children.forEachAt(r,o,(h,u,g)=>{Pl(h)?l.push(h):h instanceof Ln&&(l=l.concat(s(h,u,a))),a-=g}),l};return s(this,t,e)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(N.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let e=N.sources.USER;typeof t=="string"&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(s=>{let{target:n}=s;const r=this.find(n,!0);return r&&!Hl(r)}),t.length>0&&this.emitter.emit(N.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(N.events.SCROLL_UPDATE,e,t)}updateEmbedAt(t,e,s){const[n]=this.descendant(r=>r instanceof Tt,t);n&&n.statics.blotName===e&&Hl(n)&&n.updateContent(s)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let s=new I;return t.forEach(n=>{const r=n==null?void 0:n.insert;if(r)if(typeof r=="string"){const o=r.split(`
19
- `);o.slice(0,-1).forEach(a=>{s.insert(a,n.attributes),e.push({type:"block",delta:s,attributes:n.attributes??{}}),s=new I});const l=o[o.length-1];l&&s.insert(l,n.attributes)}else{const o=Object.keys(r)[0];if(!o)return;this.query(o,O.INLINE)?s.push(n):(s.length()&&e.push({type:"block",delta:s,attributes:{}}),s=new I,e.push({type:"blockEmbed",key:o,value:r[o],attributes:n.attributes??{}}))}}),s.length()&&e.push({type:"block",delta:s,attributes:{}}),e}createBlock(t,e){let s;const n={};Object.entries(t).forEach(l=>{let[a,h]=l;this.query(a,O.BLOCK&O.BLOT)!=null?s=a:n[a]=h});const r=this.create(s||this.statics.defaultChild.blotName,s?t[s]:void 0);this.insertBefore(r,e||void 0);const o=r.length();return Object.entries(n).forEach(l=>{let[a,h]=l;r.formatAt(0,o,a,h)}),r}}S(ds,"blotName","scroll"),S(ds,"className","ql-editor"),S(ds,"tagName","DIV"),S(ds,"defaultChild",nt),S(ds,"allowedChildren",[nt,Tt,Ve]);function Br(i,t,e){e.reduce((s,n)=>{const r=Nt.Op.length(n);let o=n.attributes||{};if(n.insert!=null){if(typeof n.insert=="string"){const l=n.insert;i.insertAt(s,l);const[a]=i.descendant(ct,s),h=Et(a);o=Nt.AttributeMap.diff(h,o)||{}}else if(typeof n.insert=="object"){const l=Object.keys(n.insert)[0];if(l==null)return s;if(i.insertAt(s,l,n.insert[l]),i.scroll.query(l,O.INLINE)!=null){const[h]=i.descendant(ct,s),u=Et(h);o=Nt.AttributeMap.diff(u,o)||{}}}}return Object.keys(o).forEach(l=>{i.formatAt(s,r,l,o[l])}),s+r},t)}const Ho={scope:O.BLOCK,whitelist:["right","center","justify"]},Wp=new _t("align","align",Ho),cc=new Ht("align","ql-align",Ho),hc=new xe("align","text-align",Ho);class uc extends xe{value(t){let e=super.value(t);return e.startsWith("rgb(")?(e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${e.split(",").map(n=>`00${parseInt(n,10).toString(16)}`.slice(-2)).join("")}`):e}}const Vp=new Ht("color","ql-color",{scope:O.INLINE}),Uo=new uc("color","color",{scope:O.INLINE}),Kp=new Ht("background","ql-bg",{scope:O.INLINE}),Fo=new uc("background","background-color",{scope:O.INLINE});class Ke extends Ve{static create(t){const e=super.create(t);return e.setAttribute("spellcheck","false"),e}code(t,e){return this.children.map(s=>s.length()<=1?"":s.domNode.innerText).join(`
20
- `).slice(t,t+e)}html(t,e){return`<pre>
21
- ${Sn(this.code(t,e))}
22
- </pre>`}}class ht extends nt{static register(){m.register(Ke)}}S(ht,"TAB"," ");class jo extends Te{}jo.blotName="code";jo.tagName="CODE";ht.blotName="code-block";ht.className="ql-code-block";ht.tagName="DIV";Ke.blotName="code-block-container";Ke.className="ql-code-block-container";Ke.tagName="DIV";Ke.allowedChildren=[ht];ht.allowedChildren=[Pt,Ut,As];ht.requiredContainer=Ke;const zo={scope:O.BLOCK,whitelist:["rtl"]},dc=new _t("direction","dir",zo),fc=new Ht("direction","ql-direction",zo),pc=new xe("direction","direction",zo),gc={scope:O.INLINE,whitelist:["serif","monospace"]},mc=new Ht("font","ql-font",gc);class Xp extends xe{value(t){return super.value(t).replace(/["']/g,"")}}const bc=new Xp("font","font-family",gc),Ac=new Ht("size","ql-size",{scope:O.INLINE,whitelist:["small","large","huge"]}),yc=new xe("size","font-size",{scope:O.INLINE,whitelist:["10px","18px","32px"]}),_p=he("quill:keyboard"),Gp=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class qn extends Qt{static match(t,e){return["altKey","ctrlKey","metaKey","shiftKey"].some(s=>!!e[s]!==t[s]&&e[s]!==null)?!1:e.key===t.key||e.key===t.which}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(s=>{this.options.bindings[s]&&this.addBinding(this.options.bindings[s])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qp(t);if(n==null){_p.warn("Attempted to add invalid keyboard binding",n);return}typeof e=="function"&&(e={handler:e}),typeof s=="function"&&(s={handler:s}),(Array.isArray(n.key)?n.key:[n.key]).forEach(o=>{const l={...n,key:o,...e,...s};this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;const n=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(w=>qn.match(t,w));if(n.length===0)return;const r=m.find(t.target,!0);if(r&&r.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(o==null||!this.quill.hasFocus())return;const[l,a]=this.quill.getLine(o.index),[h,u]=this.quill.getLeaf(o.index),[g,f]=o.length===0?[h,u]:this.quill.getLeaf(o.index+o.length),p=h instanceof fn?h.value().slice(0,u):"",b=g instanceof fn?g.value().slice(f):"",v={collapsed:o.length===0,empty:o.length===0&&l.length()<=1,format:this.quill.getFormat(o),line:l,offset:a,prefix:p,suffix:b,event:t};n.some(w=>{if(w.collapsed!=null&&w.collapsed!==v.collapsed||w.empty!=null&&w.empty!==v.empty||w.offset!=null&&w.offset!==v.offset)return!1;if(Array.isArray(w.format)){if(w.format.every(C=>v.format[C]==null))return!1}else if(typeof w.format=="object"&&!Object.keys(w.format).every(C=>w.format[C]===!0?v.format[C]!=null:w.format[C]===!1?v.format[C]==null:Io(w.format[C],v.format[C])))return!1;return w.prefix!=null&&!w.prefix.test(v.prefix)||w.suffix!=null&&!w.suffix.test(v.suffix)?!1:w.handler.call(this,o,v,w)!==!0})&&t.preventDefault()})}handleBackspace(t,e){const s=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let n={};const[r]=this.quill.getLine(t.index);let o=new I().retain(t.index-s).delete(s);if(e.offset===0){const[l]=this.quill.getLine(t.index-1);if(l&&!(l.statics.blotName==="block"&&l.length()<=1)){const h=r.formats(),u=this.quill.getFormat(t.index-1,1);if(n=Nt.AttributeMap.diff(h,u)||{},Object.keys(n).length>0){const g=new I().retain(t.index+r.length()-2).retain(1,n);o=o.compose(g)}}}this.quill.updateContents(o,m.sources.USER),this.quill.focus()}handleDelete(t,e){const s=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-s)return;let n={};const[r]=this.quill.getLine(t.index);let o=new I().retain(t.index).delete(s);if(e.offset>=r.length()-1){const[l]=this.quill.getLine(t.index+1);if(l){const a=r.formats(),h=this.quill.getFormat(t.index,1);n=Nt.AttributeMap.diff(a,h)||{},Object.keys(n).length>0&&(o=o.retain(l.length()-1).retain(1,n))}}this.quill.updateContents(o,m.sources.USER),this.quill.focus()}handleDeleteRange(t){Wo({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,e){const s=Object.keys(e.format).reduce((r,o)=>(this.quill.scroll.query(o,O.BLOCK)&&!Array.isArray(e.format[o])&&(r[o]=e.format[o]),r),{}),n=new I().retain(t.index).delete(t.length).insert(`
23
- `,s);this.quill.updateContents(n,m.sources.USER),this.quill.setSelection(t.index+1,m.sources.SILENT),this.quill.focus()}}const Zp={bindings:{bold:Dr("bold"),italic:Dr("italic"),underline:Dr("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(i,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",m.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(i,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",m.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(i,t){t.format.indent!=null?this.quill.format("indent","-1",m.sources.USER):t.format.list!=null&&this.quill.format("list",!1,m.sources.USER)}},"indent code-block":Ul(!0),"outdent code-block":Ul(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(i){this.quill.deleteText(i.index-1,1,m.sources.USER)}},tab:{key:"Tab",handler(i,t){if(t.format.table)return!0;this.quill.history.cutoff();const e=new I().retain(i.index).delete(i.length).insert(" ");return this.quill.updateContents(e,m.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(i.index+1,m.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,m.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(i,t){const e={list:!1};t.format.indent&&(e.indent=!1),this.quill.formatLine(i.index,i.length,e,m.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(i){const[t,e]=this.quill.getLine(i.index),s={...t.formats(),list:"checked"},n=new I().retain(i.index).insert(`
24
- `,s).retain(t.length()-e-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,m.sources.USER),this.quill.setSelection(i.index+1,m.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(i,t){const[e,s]=this.quill.getLine(i.index),n=new I().retain(i.index).insert(`
25
- `,t.format).retain(e.length()-s-1).retain(1,{header:null});this.quill.updateContents(n,m.sources.USER),this.quill.setSelection(i.index+1,m.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(i){const t=this.quill.getModule("table");if(t){const[e,s,n,r]=t.getTable(i),o=Yp(e,s,n,r);if(o==null)return;let l=e.offset();if(o<0){const a=new I().retain(l).insert(`
26
- `);this.quill.updateContents(a,m.sources.USER),this.quill.setSelection(i.index+1,i.length,m.sources.SILENT)}else if(o>0){l+=e.length();const a=new I().retain(l).insert(`
27
- `);this.quill.updateContents(a,m.sources.USER),this.quill.setSelection(l,m.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(i,t){const{event:e,line:s}=t,n=s.offset(this.quill.scroll);e.shiftKey?this.quill.setSelection(n-1,m.sources.USER):this.quill.setSelection(n+s.length(),m.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(i,t){if(this.quill.scroll.query("list")==null)return!0;const{length:e}=t.prefix,[s,n]=this.quill.getLine(i.index);if(n>e)return!0;let r;switch(t.prefix.trim()){case"[]":case"[ ]":r="unchecked";break;case"[x]":r="checked";break;case"-":case"*":r="bullet";break;default:r="ordered"}this.quill.insertText(i.index," ",m.sources.USER),this.quill.history.cutoff();const o=new I().retain(i.index-n).delete(e+1).retain(s.length()-2-n).retain(1,{list:r});return this.quill.updateContents(o,m.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(i.index-e,m.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(i){const[t,e]=this.quill.getLine(i.index);let s=2,n=t;for(;n!=null&&n.length()<=1&&n.formats()["code-block"];)if(n=n.prev,s-=1,s<=0){const r=new I().retain(i.index+t.length()-e-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(r,m.sources.USER),this.quill.setSelection(i.index-1,m.sources.SILENT),!1}return!0}},"embed left":Qi("ArrowLeft",!1),"embed left shift":Qi("ArrowLeft",!0),"embed right":Qi("ArrowRight",!1),"embed right shift":Qi("ArrowRight",!0),"table down":Fl(!1),"table up":Fl(!0)}};qn.DEFAULTS=Zp;function Ul(i){return{key:"Tab",shiftKey:!i,format:{"code-block":!0},handler(t,e){let{event:s}=e;const n=this.quill.scroll.query("code-block"),{TAB:r}=n;if(t.length===0&&!s.shiftKey){this.quill.insertText(t.index,r,m.sources.USER),this.quill.setSelection(t.index+r.length,m.sources.SILENT);return}const o=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:l,length:a}=t;o.forEach((h,u)=>{i?(h.insertAt(0,r),u===0?l+=r.length:a+=r.length):h.domNode.textContent.startsWith(r)&&(h.deleteAt(0,r.length),u===0?l-=r.length:a-=r.length)}),this.quill.update(m.sources.USER),this.quill.setSelection(l,a,m.sources.SILENT)}}}function Qi(i,t){return{key:i,shiftKey:t,altKey:null,[i==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(s){let{index:n}=s;i==="ArrowRight"&&(n+=s.length+1);const[r]=this.quill.getLeaf(n);return r instanceof vt?(i==="ArrowLeft"?t?this.quill.setSelection(s.index-1,s.length+1,m.sources.USER):this.quill.setSelection(s.index-1,m.sources.USER):t?this.quill.setSelection(s.index,s.length+1,m.sources.USER):this.quill.setSelection(s.index+s.length+1,m.sources.USER),!1):!0}}}function Dr(i){return{key:i[0],shortKey:!0,handler(t,e){this.quill.format(i,!e.format[i],m.sources.USER)}}}function Fl(i){return{key:i?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,e){const s=i?"prev":"next",n=e.line,r=n.parent[s];if(r!=null){if(r.statics.blotName==="table-row"){let o=r.children.head,l=n;for(;l.prev!=null;)l=l.prev,o=o.next;const a=o.offset(this.quill.scroll)+Math.min(e.offset,o.length()-1);this.quill.setSelection(a,0,m.sources.USER)}}else{const o=n.table()[s];o!=null&&(i?this.quill.setSelection(o.offset(this.quill.scroll)+o.length()-1,0,m.sources.USER):this.quill.setSelection(o.offset(this.quill.scroll),0,m.sources.USER))}return!1}}}function Qp(i){if(typeof i=="string"||typeof i=="number")i={key:i};else if(typeof i=="object")i=fs(i);else return null;return i.shortKey&&(i[Gp]=i.shortKey,delete i.shortKey),i}function Wo(i){let{quill:t,range:e}=i;const s=t.getLines(e);let n={};if(s.length>1){const r=s[0].formats(),o=s[s.length-1].formats();n=Nt.AttributeMap.diff(o,r)||{}}t.deleteText(e,m.sources.USER),Object.keys(n).length>0&&t.formatLine(e.index,1,n,m.sources.USER),t.setSelection(e.index,m.sources.SILENT)}function Yp(i,t,e,s){return t.prev==null&&t.next==null?e.prev==null&&e.next==null?s===0?-1:1:e.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}const Jp=/font-weight:\s*normal/,$p=["P","OL","UL"],jl=i=>i&&$p.includes(i.tagName),tg=i=>{Array.from(i.querySelectorAll("br")).filter(t=>jl(t.previousElementSibling)&&jl(t.nextElementSibling)).forEach(t=>{var e;(e=t.parentNode)==null||e.removeChild(t)})},eg=i=>{Array.from(i.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var e;return(e=t.getAttribute("style"))==null?void 0:e.match(Jp)}).forEach(t=>{var s;const e=i.createDocumentFragment();e.append(...t.childNodes),(s=t.parentNode)==null||s.replaceChild(e,t)})};function sg(i){i.querySelector('[id^="docs-internal-guid-"]')&&(eg(i),tg(i))}const ig=/\bmso-list:[^;]*ignore/i,ng=/\bmso-list:[^;]*\bl(\d+)/i,rg=/\bmso-list:[^;]*\blevel(\d+)/i,og=(i,t)=>{const e=i.getAttribute("style"),s=e==null?void 0:e.match(ng);if(!s)return null;const n=Number(s[1]),r=e==null?void 0:e.match(rg),o=r?Number(r[1]):1,l=new RegExp(`@list l${n}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),a=t.match(l),h=a&&a[1]==="bullet"?"bullet":"ordered";return{id:n,indent:o,type:h,element:i}},lg=i=>{var o,l;const t=Array.from(i.querySelectorAll("[style*=mso-list]")),e=[],s=[];t.forEach(a=>{(a.getAttribute("style")||"").match(ig)?e.push(a):s.push(a)}),e.forEach(a=>{var h;return(h=a.parentNode)==null?void 0:h.removeChild(a)});const n=i.documentElement.innerHTML,r=s.map(a=>og(a,n)).filter(a=>a);for(;r.length;){const a=[];let h=r.shift();for(;h;)a.push(h),h=r.length&&((o=r[0])==null?void 0:o.element)===h.element.nextElementSibling&&r[0].id===h.id?r.shift():null;const u=document.createElement("ul");a.forEach(p=>{const b=document.createElement("li");b.setAttribute("data-list",p.type),p.indent>1&&b.setAttribute("class",`ql-indent-${p.indent-1}`),b.innerHTML=p.element.innerHTML,u.appendChild(b)});const g=(l=a[0])==null?void 0:l.element,{parentNode:f}=g??{};g&&(f==null||f.replaceChild(u,g)),a.slice(1).forEach(p=>{let{element:b}=p;f==null||f.removeChild(b)})}};function ag(i){i.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&lg(i)}const cg=[ag,sg],hg=i=>{i.documentElement&&cg.forEach(t=>{t(i)})},ug=he("quill:clipboard"),dg=[[Node.TEXT_NODE,xg],[Node.TEXT_NODE,Wl],["br",Ag],[Node.ELEMENT_NODE,Wl],[Node.ELEMENT_NODE,bg],[Node.ELEMENT_NODE,mg],[Node.ELEMENT_NODE,Eg],["li",wg],["ol, ul",Cg],["pre",yg],["tr",Lg],["b",Pr("bold")],["i",Pr("italic")],["strike",Pr("strike")],["style",vg]],fg=[Wp,dc].reduce((i,t)=>(i[t.keyName]=t,i),{}),zl=[hc,Fo,Uo,pc,bc,yc].reduce((i,t)=>(i[t.keyName]=t,i),{});var Vr;let pg=(Vr=class extends Qt{constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",s=>this.onCaptureCopy(s,!1)),this.quill.root.addEventListener("cut",s=>this.onCaptureCopy(s,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],dg.concat(this.options.matchers??[]).forEach(s=>{let[n,r]=s;this.addMatcher(n,r)})}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:s}=t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n[ht.blotName])return new I().insert(s||"",{[ht.blotName]:n[ht.blotName]});if(!e)return new I().insert(s||"",n);const r=this.convertHTML(e);return gi(r,`
28
- `)&&(r.ops[r.ops.length-1].attributes==null||n.table)?r.compose(new I().retain(r.length()-1).delete(1)):r}normalizeHTML(t){hg(t)}convertHTML(t){const e=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(e);const s=e.body,n=new WeakMap,[r,o]=this.prepareMatching(s,n);return Vo(this.quill.scroll,s,r,o,n)}dangerouslyPasteHTML(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.sources.API;if(typeof t=="string"){const n=this.convert({html:t,text:""});this.quill.setContents(n,e),this.quill.setSelection(0,m.sources.SILENT)}else{const n=this.convert({html:e,text:""});this.quill.updateContents(new I().retain(t).concat(n),s),this.quill.setSelection(t+n.length(),m.sources.SILENT)}}onCaptureCopy(t){var o,l;let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[s]=this.quill.selection.getRange();if(s==null)return;const{html:n,text:r}=this.onCopy(s,e);(o=t.clipboardData)==null||o.setData("text/plain",r),(l=t.clipboardData)==null||l.setData("text/html",n),e&&Wo({range:s,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(e=>e[0]!=="#").join(`
29
- `)}onCapturePaste(t){var o,l,a,h,u;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(e==null)return;const s=(o=t.clipboardData)==null?void 0:o.getData("text/html");let n=(l=t.clipboardData)==null?void 0:l.getData("text/plain");if(!s&&!n){const g=(a=t.clipboardData)==null?void 0:a.getData("text/uri-list");g&&(n=this.normalizeURIList(g))}const r=Array.from(((h=t.clipboardData)==null?void 0:h.files)||[]);if(!s&&r.length>0){this.quill.uploader.upload(e,r);return}if(s&&r.length>0){const g=new DOMParser().parseFromString(s,"text/html");if(g.body.childElementCount===1&&((u=g.body.firstElementChild)==null?void 0:u.tagName)==="IMG"){this.quill.uploader.upload(e,r);return}}this.onPaste(e,{html:s,text:n})}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,e){let{text:s,html:n}=e;const r=this.quill.getFormat(t.index),o=this.convert({text:s,html:n},r);ug.log("onPaste",o,{text:s,html:n});const l=new I().retain(t.index).delete(t.length).concat(o);this.quill.updateContents(l,m.sources.USER),this.quill.setSelection(l.length()-t.length,m.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const s=[],n=[];return this.matchers.forEach(r=>{const[o,l]=r;switch(o){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:s.push(l);break;default:Array.from(t.querySelectorAll(o)).forEach(a=>{if(e.has(a)){const h=e.get(a);h==null||h.push(l)}else e.set(a,[l])});break}}),[s,n]}},S(Vr,"DEFAULTS",{matchers:[]}),Vr);function Xe(i,t,e,s){return s.query(t)?i.reduce((n,r)=>{if(!r.insert)return n;if(r.attributes&&r.attributes[t])return n.push(r);const o=e?{[t]:e}:{};return n.insert(r.insert,{...o,...r.attributes})},new I):i}function gi(i,t){let e="";for(let s=i.ops.length-1;s>=0&&e.length<t.length;--s){const n=i.ops[s];if(typeof n.insert!="string")break;e=n.insert+e}return e.slice(-1*t.length)===t}function be(i,t){if(!(i instanceof Element))return!1;const e=t.query(i);return e&&e.prototype instanceof vt?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(i.tagName.toLowerCase())}function gg(i,t){return i.previousElementSibling&&i.nextElementSibling&&!be(i.previousElementSibling,t)&&!be(i.nextElementSibling,t)}const Yi=new WeakMap;function vc(i){return i==null?!1:(Yi.has(i)||(i.tagName==="PRE"?Yi.set(i,!0):Yi.set(i,vc(i.parentNode))),Yi.get(i))}function Vo(i,t,e,s,n){return t.nodeType===t.TEXT_NODE?s.reduce((r,o)=>o(t,r,i),new I):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((r,o)=>{let l=Vo(i,o,e,s,n);return o.nodeType===t.ELEMENT_NODE&&(l=e.reduce((a,h)=>h(o,a,i),l),l=(n.get(o)||[]).reduce((a,h)=>h(o,a,i),l)),r.concat(l)},new I):new I}function Pr(i){return(t,e,s)=>Xe(e,i,!0,s)}function mg(i,t,e){const s=_t.keys(i),n=Ht.keys(i),r=xe.keys(i),o={};return s.concat(n).concat(r).forEach(l=>{let a=e.query(l,O.ATTRIBUTE);a!=null&&(o[a.attrName]=a.value(i),o[a.attrName])||(a=fg[l],a!=null&&(a.attrName===l||a.keyName===l)&&(o[a.attrName]=a.value(i)||void 0),a=zl[l],a!=null&&(a.attrName===l||a.keyName===l)&&(a=zl[l],o[a.attrName]=a.value(i)||void 0))}),Object.entries(o).reduce((l,a)=>{let[h,u]=a;return Xe(l,h,u,e)},t)}function bg(i,t,e){const s=e.query(i);if(s==null)return t;if(s.prototype instanceof vt){const n={},r=s.value(i);if(r!=null)return n[s.blotName]=r,new I().insert(n,s.formats(i,e))}else if(s.prototype instanceof oi&&!gi(t,`
30
- `)&&t.insert(`
31
- `),"blotName"in s&&"formats"in s&&typeof s.formats=="function")return Xe(t,s.blotName,s.formats(i,e),e);return t}function Ag(i,t){return gi(t,`
32
- `)||t.insert(`
33
- `),t}function yg(i,t,e){const s=e.query("code-block"),n=s&&"formats"in s&&typeof s.formats=="function"?s.formats(i,e):!0;return Xe(t,"code-block",n,e)}function vg(){return new I}function wg(i,t,e){const s=e.query(i);if(s==null||s.blotName!=="list"||!gi(t,`
34
- `))return t;let n=-1,r=i.parentNode;for(;r!=null;)["OL","UL"].includes(r.tagName)&&(n+=1),r=r.parentNode;return n<=0?t:t.reduce((o,l)=>l.insert?l.attributes&&typeof l.attributes.indent=="number"?o.push(l):o.insert(l.insert,{indent:n,...l.attributes||{}}):o,new I)}function Cg(i,t,e){const s=i;let n=s.tagName==="OL"?"ordered":"bullet";const r=s.getAttribute("data-checked");return r&&(n=r==="true"?"checked":"unchecked"),Xe(t,"list",n,e)}function Wl(i,t,e){if(!gi(t,`
35
- `)){if(be(i,e)&&(i.childNodes.length>0||i instanceof HTMLParagraphElement))return t.insert(`
36
- `);if(t.length()>0&&i.nextSibling){let s=i.nextSibling;for(;s!=null;){if(be(s,e))return t.insert(`
37
- `);const n=e.query(s);if(n&&n.prototype instanceof Tt)return t.insert(`
38
- `);s=s.firstChild}}}return t}function Eg(i,t,e){var r;const s={},n=i.style||{};return n.fontStyle==="italic"&&(s.italic=!0),n.textDecoration==="underline"&&(s.underline=!0),n.textDecoration==="line-through"&&(s.strike=!0),((r=n.fontWeight)!=null&&r.startsWith("bold")||parseInt(n.fontWeight,10)>=700)&&(s.bold=!0),t=Object.entries(s).reduce((o,l)=>{let[a,h]=l;return Xe(o,a,h,e)},t),parseFloat(n.textIndent||0)>0?new I().insert(" ").concat(t):t}function Lg(i,t,e){var n,r;const s=((n=i.parentElement)==null?void 0:n.tagName)==="TABLE"?i.parentElement:(r=i.parentElement)==null?void 0:r.parentElement;if(s!=null){const l=Array.from(s.querySelectorAll("tr")).indexOf(i)+1;return Xe(t,"table",l,e)}return t}function xg(i,t,e){var n;let s=i.data;if(((n=i.parentElement)==null?void 0:n.tagName)==="O:P")return t.insert(s.trim());if(!vc(i)){if(s.trim().length===0&&s.includes(`
39
- `)&&!gg(i,e))return t;const r=(o,l)=>{const a=l.replace(/[^\u00a0]/g,"");return a.length<1&&o?" ":a};s=s.replace(/\r\n/g," ").replace(/\n/g," "),s=s.replace(/\s\s+/g,r.bind(r,!0)),(i.previousSibling==null&&i.parentElement!=null&&be(i.parentElement,e)||i.previousSibling instanceof Element&&be(i.previousSibling,e))&&(s=s.replace(/^\s+/,r.bind(r,!1))),(i.nextSibling==null&&i.parentElement!=null&&be(i.parentElement,e)||i.nextSibling instanceof Element&&be(i.nextSibling,e))&&(s=s.replace(/\s+$/,r.bind(r,!1)))}return t.insert(s)}class wc extends Qt{constructor(e,s){super(e,s);S(this,"lastRecorded",0);S(this,"ignoreChange",!1);S(this,"stack",{undo:[],redo:[]});S(this,"currentRange",null);this.quill.on(m.events.EDITOR_CHANGE,(n,r,o,l)=>{n===m.events.SELECTION_CHANGE?r&&l!==m.sources.SILENT&&(this.currentRange=r):n===m.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===m.sources.USER?this.record(r,o):this.transform(r)),this.currentRange=co(this.currentRange,r))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",n=>{n.inputType==="historyUndo"?(this.undo(),n.preventDefault()):n.inputType==="historyRedo"&&(this.redo(),n.preventDefault())})}change(e,s){if(this.stack[e].length===0)return;const n=this.stack[e].pop();if(!n)return;const r=this.quill.getContents(),o=n.delta.invert(r);this.stack[s].push({delta:o,range:co(n.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,m.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,s){if(e.ops.length===0)return;this.stack.redo=[];let n=e.invert(s),r=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const l=this.stack.undo.pop();l&&(n=n.compose(l.delta),r=l.range)}else this.lastRecorded=o;n.length()!==0&&(this.stack.undo.push({delta:n,range:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){Vl(this.stack.undo,e),Vl(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,m.sources.USER);else{const s=Ng(this.quill.scroll,e.delta);this.quill.setSelection(s,m.sources.USER)}}}S(wc,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Vl(i,t){let e=t;for(let s=i.length-1;s>=0;s-=1){const n=i[s];i[s]={delta:e.transform(n.delta,!0),range:n.range&&co(n.range,e)},e=n.delta.transform(e),i[s].delta.length()===0&&i.splice(s,1)}}function Tg(i,t){const e=t.ops[t.ops.length-1];return e==null?!1:e.insert!=null?typeof e.insert=="string"&&e.insert.endsWith(`
40
- `):e.attributes!=null?Object.keys(e.attributes).some(s=>i.query(s,O.BLOCK)!=null):!1}function Ng(i,t){const e=t.reduce((n,r)=>n+(r.delete||0),0);let s=t.length()-e;return Tg(i,t)&&(s-=1),s}function co(i,t){if(!i)return i;const e=t.transformPosition(i.index),s=t.transformPosition(i.index+i.length);return{index:e,length:s-e}}let Cc=class extends Qt{constructor(t,e){super(t,e),t.root.addEventListener("drop",s=>{var o;s.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(s.clientX,s.clientY);else if(document.caretPositionFromPoint){const l=document.caretPositionFromPoint(s.clientX,s.clientY);n=document.createRange(),n.setStart(l.offsetNode,l.offset),n.setEnd(l.offsetNode,l.offset)}const r=n&&t.selection.normalizeNative(n);if(r){const l=t.selection.normalizedToRange(r);(o=s.dataTransfer)!=null&&o.files&&this.upload(l,s.dataTransfer.files)}})}upload(t,e){const s=[];Array.from(e).forEach(n=>{var r;n&&((r=this.options.mimetypes)!=null&&r.includes(n.type))&&s.push(n)}),s.length>0&&this.options.handler.call(this,t,s)}};Cc.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(i,t){if(!this.quill.scroll.query("image"))return;const e=t.map(s=>new Promise(n=>{const r=new FileReader;r.onload=()=>{n(r.result)},r.readAsDataURL(s)}));Promise.all(e).then(s=>{const n=s.reduce((r,o)=>r.insert({image:o}),new I().retain(i.index).delete(i.length));this.quill.updateContents(n,N.sources.USER),this.quill.setSelection(i.index+s.length,N.sources.SILENT)})}};const Sg=["insertText","insertReplacementText"];class qg extends Qt{constructor(t,e){super(t,e),t.root.addEventListener("beforeinput",s=>{this.handleBeforeInput(s)}),/Android/i.test(navigator.userAgent)||t.on(m.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){Wo({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(e){const s=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new I().retain(t.index).insert(e,s),m.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+e.length,0,m.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!Sg.includes(t.inputType))return;const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||e.collapsed===!0)return;const s=Ig(t);if(s==null)return;const n=this.quill.selection.normalizeNative(e),r=n?this.quill.selection.normalizedToRange(n):null;r&&this.replaceText(r,s)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function Ig(i){var t;return typeof i.data=="string"?i.data:(t=i.dataTransfer)!=null&&t.types.includes("text/plain")?i.dataTransfer.getData("text/plain"):null}const Og=/Mac/i.test(navigator.platform),Rg=100,Mg=i=>!!(i.key==="ArrowLeft"||i.key==="ArrowRight"||i.key==="ArrowUp"||i.key==="ArrowDown"||i.key==="Home"||Og&&i.key==="a"&&i.ctrlKey===!0);class kg extends Qt{constructor(e,s){super(e,s);S(this,"isListening",!1);S(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,s){let{line:n,event:r}=s;if(!(n instanceof Bt)||!n.uiNode)return!0;const o=getComputedStyle(n.domNode).direction==="rtl";return o&&r.key!=="ArrowRight"||!o&&r.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(r.shiftKey?1:0),m.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&Mg(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Rg,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const s=e.getRangeAt(0);if(s.collapsed!==!0||s.startOffset!==0)return;const n=this.quill.scroll.find(s.startContainer);if(!(n instanceof Bt)||!n.uiNode)return;const r=document.createRange();r.setStartAfter(n.uiNode),r.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(r)}}m.register({"blots/block":nt,"blots/block/embed":Tt,"blots/break":Ut,"blots/container":Ve,"blots/cursor":As,"blots/embed":Po,"blots/inline":Te,"blots/scroll":ds,"blots/text":Pt,"modules/clipboard":pg,"modules/history":wc,"modules/keyboard":qn,"modules/uploader":Cc,"modules/input":qg,"modules/uiNode":kg});class Bg extends Ht{add(t,e){let s=0;if(e==="+1"||e==="-1"){const n=this.value(t)||0;s=e==="+1"?n+1:n-1}else typeof e=="number"&&(s=e);return s===0?(this.remove(t),!0):super.add(t,s.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}const Dg=new Bg("indent","ql-indent",{scope:O.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class ho extends nt{}S(ho,"blotName","blockquote"),S(ho,"tagName","blockquote");var en;let Pg=(en=class extends nt{static formats(t){return this.tagName.indexOf(t.tagName)+1}},S(en,"blotName","header"),S(en,"tagName",["H1","H2","H3","H4","H5","H6"]),en),mi=class extends Ve{};mi.blotName="list-container";mi.tagName="OL";let bi=class extends nt{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){m.register(mi)}constructor(t,e){super(t,e);const s=e.ownerDocument.createElement("span"),n=r=>{if(!t.isEnabled())return;const o=this.statics.formats(e,t);o==="checked"?(this.format("list","unchecked"),r.preventDefault()):o==="unchecked"&&(this.format("list","checked"),r.preventDefault())};s.addEventListener("mousedown",n),s.addEventListener("touchstart",n),this.attachUI(s)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}};bi.blotName="list";bi.tagName="LI";mi.allowedChildren=[bi];bi.requiredContainer=mi;class ci extends Te{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}S(ci,"blotName","bold"),S(ci,"tagName",["STRONG","B"]);class uo extends ci{}S(uo,"blotName","italic"),S(uo,"tagName",["EM","I"]);var os;let mn=(os=class extends Te{static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return Ec(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t!==this.statics.blotName||!e?super.format(t,e):this.domNode.setAttribute("href",this.constructor.sanitize(e))}},S(os,"blotName","link"),S(os,"tagName","A"),S(os,"SANITIZED_URL","about:blank"),S(os,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]),os);function Ec(i,t){const e=document.createElement("a");e.href=i;const s=e.href.slice(0,e.href.indexOf(":"));return t.indexOf(s)>-1}class fo extends Te{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}S(fo,"blotName","script"),S(fo,"tagName",["SUB","SUP"]);class po extends ci{}S(po,"blotName","strike"),S(po,"tagName",["S","STRIKE"]);class go extends Te{}S(go,"blotName","underline"),S(go,"tagName","U");class ln extends Po{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return typeof t=="string"&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}S(ln,"blotName","formula"),S(ln,"className","ql-formula"),S(ln,"tagName","SPAN");const Kl=["alt","height","width"];class mo extends vt{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Kl.reduce((e,s)=>(t.hasAttribute(s)&&(e[s]=t.getAttribute(s)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return Ec(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){Kl.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}}S(mo,"blotName","image"),S(mo,"tagName","IMG");const Xl=["height","width"];var Zs;let Hg=(Zs=class extends Tt{static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","true"),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Xl.reduce((e,s)=>(t.hasAttribute(s)&&(e[s]=t.getAttribute(s)),e),{})}static sanitize(t){return mn.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){Xl.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}},S(Zs,"blotName","video"),S(Zs,"className","ql-video"),S(Zs,"tagName","IFRAME"),Zs);const Qs=new Ht("code-token","hljs",{scope:O.INLINE});class oe extends Te{static formats(t,e){for(;t!=null&&t!==e.domNode;){if(t.classList&&t.classList.contains(ht.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,s){super(t,e,s),Qs.add(this.domNode,s)}format(t,e){t!==oe.blotName?super.format(t,e):e?Qs.add(this.domNode,e):(Qs.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Qs.value(this.domNode)||this.unwrap()}}oe.blotName="code-token";oe.className="ql-token";class Lt extends ht{static create(t){const e=super.create(t);return typeof t=="string"&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),oe.blotName,!1),super.replaceWith(t,e)}}class $s extends Ke{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===Lt.blotName&&(this.forceNext=!0,this.children.forEach(s=>{s.format(t,e)}))}formatAt(t,e,s,n){s===Lt.blotName&&(this.forceNext=!0),super.formatAt(t,e,s,n)}highlight(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const n=`${Array.from(this.domNode.childNodes).filter(o=>o!==this.uiNode).map(o=>o.textContent).join(`
41
- `)}
42
- `,r=Lt.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==n){if(n.trim().length>0||this.cachedText==null){const o=this.children.reduce((a,h)=>a.concat(oc(h,!1)),new I),l=t(n,r);o.diff(l).reduce((a,h)=>{let{retain:u,attributes:g}=h;return u?(g&&Object.keys(g).forEach(f=>{[Lt.blotName,oe.blotName].includes(f)&&this.formatAt(a,u,f,g[f])}),a+u):a},0)}this.cachedText=n,this.forceNext=!1}}html(t,e){const[s]=this.children.find(t);return`<pre data-language="${s?Lt.formats(s.domNode):"plain"}">
43
- ${Sn(this.code(t,e))}
44
- </pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const e=Lt.formats(this.children.head.domNode);e!==this.uiNode.value&&(this.uiNode.value=e)}}}$s.allowedChildren=[Lt];Lt.requiredContainer=$s;Lt.allowedChildren=[oe,As,Pt,Ut];const Ug=(i,t,e)=>{if(typeof i.versionString=="string"){const s=i.versionString.split(".")[0];if(parseInt(s,10)>=11)return i.highlight(e,{language:t}).value}return i.highlight(t,e).value};class Lc extends Qt{static register(){m.register(oe,!0),m.register(Lt,!0),m.register($s,!0)}constructor(t,e){if(super(t,e),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((s,n)=>{let{key:r}=n;return s[r]=!0,s},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(m.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof $s))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(s=>{let{key:n,label:r}=s;const o=e.ownerDocument.createElement("option");o.textContent=r,o.setAttribute("value",n),e.appendChild(o)}),e.addEventListener("change",()=>{t.format(Lt.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(e),t.children.head&&(e.value=Lt.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(m.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(m.sources.USER);const s=this.quill.getSelection();(t==null?this.quill.scroll.descendants($s):[t]).forEach(r=>{r.highlight(this.highlightBlot,e)}),this.quill.update(m.sources.SILENT),s!=null&&this.quill.setSelection(s,m.sources.SILENT)}highlightBlot(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(e=this.languages[e]?e:"plain",e==="plain")return Sn(t).split(`
45
- `).reduce((n,r,o)=>(o!==0&&n.insert(`
46
- `,{[ht.blotName]:e}),n.insert(r)),new I);const s=this.quill.root.ownerDocument.createElement("div");return s.classList.add(ht.className),s.innerHTML=Ug(this.options.hljs,e,t),Vo(this.quill.scroll,s,[(n,r)=>{const o=Qs.value(n);return o?r.compose(new I().retain(r.length(),{[oe.blotName]:o})):r}],[(n,r)=>n.data.split(`
47
- `).reduce((o,l,a)=>(a!==0&&o.insert(`
48
- `,{[ht.blotName]:e}),o.insert(l)),r)],new WeakMap)}}Lc.DEFAULTS={hljs:(()=>window.hljs)(),interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};var Pe;let ie=(Pe=class extends nt{static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",Ko()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===Pe.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}},S(Pe,"blotName","table"),S(Pe,"tagName","TD"),Pe);var sn;let Fe=(sn=class extends Ve{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),e=this.children.tail.formats(),s=this.next.children.head.formats(),n=this.next.children.tail.formats();return t.table===e.table&&t.table===s.table&&t.table===n.table}return!1}optimize(t){super.optimize(t),this.children.forEach(e=>{if(e.next==null)return;const s=e.formats(),n=e.next.formats();if(s.table!==n.table){const r=this.splitAfter(e);r&&r.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}},S(sn,"blotName","table-row"),S(sn,"tagName","TR"),sn);var nn;let ye=(nn=class extends Ve{},S(nn,"blotName","table-body"),S(nn,"tagName","TBODY"),nn);var rn;let bn=(rn=class extends Ve{balanceCells(){const t=this.descendants(Fe),e=t.reduce((s,n)=>Math.max(n.children.length,s),0);t.forEach(s=>{new Array(e-s.children.length).fill(0).forEach(()=>{let n;s.children.head!=null&&(n=ie.formats(s.children.head.domNode));const r=this.scroll.create(ie.blotName,n);s.appendChild(r),r.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(ye);e==null||e.children.head==null||e.children.forEach(s=>{const n=s.children.at(t);n!=null&&n.remove()})}insertColumn(t){const[e]=this.descendant(ye);e==null||e.children.head==null||e.children.forEach(s=>{const n=s.children.at(t),r=ie.formats(s.children.head.domNode),o=this.scroll.create(ie.blotName,r);s.insertBefore(o,n)})}insertRow(t){const[e]=this.descendant(ye);if(e==null||e.children.head==null)return;const s=Ko(),n=this.scroll.create(Fe.blotName);e.children.head.children.forEach(()=>{const o=this.scroll.create(ie.blotName,s);n.appendChild(o)});const r=e.children.at(t);e.insertBefore(n,r)}rows(){const t=this.children.head;return t==null?[]:t.children.map(e=>e)}},S(rn,"blotName","table-container"),S(rn,"tagName","TABLE"),rn);bn.allowedChildren=[ye];ye.requiredContainer=bn;ye.allowedChildren=[Fe];Fe.requiredContainer=ye;Fe.allowedChildren=[ie];ie.requiredContainer=Fe;function Ko(){return`row-${Math.random().toString(36).slice(2,6)}`}class Fg extends Qt{static register(){m.register(ie),m.register(Fe),m.register(ye),m.register(bn)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(bn).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();e!=null&&(t.deleteColumn(e.cellOffset()),this.quill.update(m.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(m.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove(),this.quill.update(m.sources.USER),this.quill.setSelection(e,m.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,s]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==ie.blotName)return[null,null,null,-1];const n=e.parent;return[n.parent.parent,n,e,s]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[s,n,r]=this.getTable(e);if(r==null)return;const o=r.cellOffset();s.insertColumn(o+t),this.quill.update(m.sources.USER);let l=n.rowOffset();t===0&&(l+=1),this.quill.setSelection(e.index+l,e.length,m.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[s,n,r]=this.getTable(e);if(r==null)return;const o=n.rowOffset();s.insertRow(o+t),this.quill.update(m.sources.USER),t>0?this.quill.setSelection(e,m.sources.SILENT):this.quill.setSelection(e.index+n.children.length,e.length,m.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const s=this.quill.getSelection();if(s==null)return;const n=new Array(t).fill(0).reduce(r=>{const o=new Array(e).fill(`
49
- `).join("");return r.insert(o,{table:Ko()})},new I().retain(s.index));this.quill.updateContents(n,m.sources.USER),this.quill.setSelection(s.index,m.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(m.events.SCROLL_OPTIMIZE,t=>{t.some(e=>["TD","TR","TBODY","TABLE"].includes(e.target.tagName)?(this.quill.once(m.events.TEXT_CHANGE,(s,n,r)=>{r===m.sources.USER&&this.balanceTables()}),!0):!1)})}}const _l=he("quill:toolbar");let Xo=class extends Qt{constructor(t,e){var s,n;if(super(t,e),Array.isArray(this.options.container)){const r=document.createElement("div");r.setAttribute("role","toolbar"),jg(r,this.options.container),(n=(s=t.container)==null?void 0:s.parentNode)==null||n.insertBefore(r,t.container),this.container=r}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){_l.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{var l;const o=(l=this.options.handlers)==null?void 0:l[r];o&&this.addHandler(r,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(r=>{this.attach(r)}),this.quill.on(m.events.EDITOR_CHANGE,()=>{const[r]=this.quill.selection.getRange();this.update(r)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(n=>n.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){_l.warn("ignoring attaching to nonexistent format",e,t);return}const s=t.tagName==="SELECT"?"change":"click";t.addEventListener(s,n=>{let r;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const l=t.options[t.selectedIndex];l.hasAttribute("selected")?r=!1:r=l.value||!1}else t.classList.contains("ql-active")?r=!1:r=t.value||!t.hasAttribute("value"),n.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[e]!=null)this.handlers[e].call(this,r);else if(this.quill.scroll.query(e).prototype instanceof vt){if(r=prompt(`Enter ${e}`),!r)return;this.quill.updateContents(new I().retain(o.index).delete(o.length).insert({[e]:r}),m.sources.USER)}else this.quill.format(e,r,m.sources.USER);this.update(o)}),this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach(s=>{const[n,r]=s;if(r.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(e[n]==null)o=r.querySelector("option[selected]");else if(!Array.isArray(e[n])){let l=e[n];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),o=r.querySelector(`option[value="${l}"]`)}o==null?(r.value="",r.selectedIndex=-1):o.selected=!0}else if(t==null)r.classList.remove("ql-active"),r.setAttribute("aria-pressed","false");else if(r.hasAttribute("value")){const o=e[n],l=o===r.getAttribute("value")||o!=null&&o.toString()===r.getAttribute("value")||o==null&&!r.getAttribute("value");r.classList.toggle("ql-active",l),r.setAttribute("aria-pressed",l.toString())}else{const o=e[n]!=null;r.classList.toggle("ql-active",o),r.setAttribute("aria-pressed",o.toString())}})}};Xo.DEFAULTS={};function Gl(i,t,e){const s=document.createElement("button");s.setAttribute("type","button"),s.classList.add(`ql-${t}`),s.setAttribute("aria-pressed","false"),e!=null?(s.value=e,s.setAttribute("aria-label",`${t}: ${e}`)):s.setAttribute("aria-label",t),i.appendChild(s)}function jg(i,t){Array.isArray(t[0])||(t=[t]),t.forEach(e=>{const s=document.createElement("span");s.classList.add("ql-formats"),e.forEach(n=>{if(typeof n=="string")Gl(s,n);else{const r=Object.keys(n)[0],o=n[r];Array.isArray(o)?zg(s,r,o):Gl(s,r,o)}}),i.appendChild(s)})}function zg(i,t,e){const s=document.createElement("select");s.classList.add(`ql-${t}`),e.forEach(n=>{const r=document.createElement("option");n!==!1?r.setAttribute("value",String(n)):r.setAttribute("selected","selected"),s.appendChild(r)}),i.appendChild(s)}Xo.DEFAULTS={container:null,handlers:{clean(){const i=this.quill.getSelection();if(i!=null)if(i.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(e=>{this.quill.scroll.query(e,O.INLINE)!=null&&this.quill.format(e,!1,m.sources.USER)})}else this.quill.removeFormat(i.index,i.length,m.sources.USER)},direction(i){const{align:t}=this.quill.getFormat();i==="rtl"&&t==null?this.quill.format("align","right",m.sources.USER):!i&&t==="right"&&this.quill.format("align",!1,m.sources.USER),this.quill.format("direction",i,m.sources.USER)},indent(i){const t=this.quill.getSelection(),e=this.quill.getFormat(t),s=parseInt(e.indent||0,10);if(i==="+1"||i==="-1"){let n=i==="+1"?1:-1;e.direction==="rtl"&&(n*=-1),this.quill.format("indent",s+n,m.sources.USER)}},link(i){i===!0&&(i=prompt("Enter link URL:")),this.quill.format("link",i,m.sources.USER)},list(i){const t=this.quill.getSelection(),e=this.quill.getFormat(t);i==="check"?e.list==="checked"||e.list==="unchecked"?this.quill.format("list",!1,m.sources.USER):this.quill.format("list","unchecked",m.sources.USER):this.quill.format("list",i,m.sources.USER)}}};const Wg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Vg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',Kg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Xg='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',_g='<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"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><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"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',Gg='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',Zg='<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 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"/></svg>',Qg='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',Zl='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Yg='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',Jg='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',$g='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',tm='<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"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><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"/></svg>',em='<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>',sm='<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>',im='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,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>',nm='<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,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',rm='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,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>',om='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',lm='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',am='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',cm='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',hm='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',um='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><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 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"/></svg>',dm='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',fm='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',pm='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><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 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 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"/></svg>',gm='<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>',mm='<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>',bm='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><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 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"/></svg>',Am='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',ym='<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"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',vm='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',hi={align:{"":Wg,center:Vg,right:Kg,justify:Xg},background:_g,blockquote:Gg,bold:Zg,clean:Qg,code:Zl,"code-block":Zl,color:Yg,direction:{"":Jg,rtl:$g},formula:tm,header:{1:em,2:sm,3:im,4:nm,5:rm,6:om},italic:lm,image:am,indent:{"+1":cm,"-1":hm},link:um,list:{bullet:dm,check:fm,ordered:pm},script:{sub:gm,super:mm},strike:bm,table:Am,underline:ym,video:vm},wm='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Ql=0;function Yl(i,t){i.setAttribute(t,`${i.getAttribute(t)!=="true"}`)}let In=class{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Yl(this.label,"aria-expanded"),Yl(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item");const s=t.getAttribute("value");return s&&e.setAttribute("data-value",s),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.selectItem(e,!0),n.preventDefault();break;case"Escape":this.escape(),n.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=wm,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${Ql}`,Ql+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const s=this.buildItem(e);t.appendChild(s),e.selected===!0&&this.selectItem(s)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=this.container.querySelector(".ql-selected");t!==s&&(s!=null&&s.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}},xc=class extends In{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(s=>{s.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const s=this.label.querySelector(".ql-color-label"),n=t&&t.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=n:s.style.fill=n)}},Tc=class extends In{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(s=>{s.innerHTML=e[s.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const s=t||this.defaultItem;if(s!=null){if(this.label.innerHTML===s.innerHTML)return;this.label.innerHTML=s.innerHTML}}};const Cm=i=>{const{overflowY:t}=getComputedStyle(i,null);return t!=="visible"&&t!=="clip"};let Nc=class{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Cm(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,s=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${s}px`,this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect();let o=0;if(r.right>n.right&&(o=n.right-r.right,this.root.style.left=`${e+o}px`),r.left<n.left&&(o=n.left-r.left,this.root.style.left=`${e+o}px`),r.bottom>n.bottom){const l=r.bottom-r.top,a=t.bottom-t.top+l;this.root.style.top=`${s-a}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}};const Em=[!1,"center","right","justify"],Lm=["#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"],xm=[!1,"serif","monospace"],Tm=["1","2","3",!1],Nm=["small",!1,"large","huge"];class Ai extends ys{constructor(t,e){super(t,e);const s=n=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",s);return}this.tooltip!=null&&!this.tooltip.root.contains(n.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(r=>{r.container.contains(n.target)||r.close()})};t.emitter.listenDOM("click",document.body,s)}addModule(t){const e=super.addModule(t);return t==="toolbar"&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(s=>{(s.getAttribute("class")||"").split(/\s+/).forEach(r=>{if(r.startsWith("ql-")&&(r=r.slice(3),e[r]!=null))if(r==="direction")s.innerHTML=e[r][""]+e[r].rtl;else if(typeof e[r]=="string")s.innerHTML=e[r];else{const o=s.value||"";o!=null&&e[r][o]&&(s.innerHTML=e[r][o])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(n=>{if(n.classList.contains("ql-align")&&(n.querySelector("option")==null&&Xs(n,Em),typeof e.align=="object"))return new Tc(n,e.align);if(n.classList.contains("ql-background")||n.classList.contains("ql-color")){const r=n.classList.contains("ql-background")?"background":"color";return n.querySelector("option")==null&&Xs(n,Lm,r==="background"?"#ffffff":"#000000"),new xc(n,e[r])}return n.querySelector("option")==null&&(n.classList.contains("ql-font")?Xs(n,xm):n.classList.contains("ql-header")?Xs(n,Tm):n.classList.contains("ql-size")&&Xs(n,Nm)),new In(n)});const s=()=>{this.pickers.forEach(n=>{n.update()})};this.quill.on(N.events.EDITOR_CHANGE,s)}}Ai.DEFAULTS=ne({},ys.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let i=this.container.querySelector("input.ql-image[type=file]");i==null&&(i=document.createElement("input"),i.setAttribute("type","file"),i.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),i.classList.add("ql-image"),i.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,i.files),i.value=""}),this.container.appendChild(i)),i.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class _o extends Nc{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;e!=null?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const s=this.quill.getBounds(this.quill.selection.savedRange);s!=null&&this.position(s),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,N.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,N.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=Sm(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(e!=null){const s=e.index+e.length;this.quill.insertEmbed(s,this.root.getAttribute("data-mode"),t,N.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(s+1," ",N.sources.USER),this.quill.setSelection(s+2,N.sources.USER)}break}}this.textbox.value="",this.hide()}}function Sm(i){let t=i.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||i.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=i.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:i}function Xs(i,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(s=>{const n=document.createElement("option");s===e?n.setAttribute("selected","selected"):n.setAttribute("value",String(s)),i.appendChild(n)})}const qm=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Sc extends _o{constructor(t,e){super(t,e),this.quill.on(N.events.EDITOR_CHANGE,(s,n,r,o)=>{if(s===N.events.SELECTION_CHANGE)if(n!=null&&n.length>0&&o===N.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const l=this.quill.getLines(n.index,n.length);if(l.length===1){const a=this.quill.getBounds(n);a!=null&&this.position(a)}else{const a=l[l.length-1],h=this.quill.getIndex(a),u=Math.min(a.length()-1,n.index+n.length-h),g=this.quill.getBounds(new Gt(h,u));g!=null&&this.position(g)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(N.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);e!=null&&this.position(e)}},1)})}cancel(){this.show()}position(t){const e=super.position(t),s=this.root.querySelector(".ql-tooltip-arrow");return s.style.marginLeft="",e!==0&&(s.style.marginLeft=`${-1*e-s.offsetWidth/2}px`),e}}S(Sc,"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(""));class qc extends Ai{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=qm),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Sc(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),hi),this.buildPickers(t.container.querySelectorAll("select"),hi))}}qc.DEFAULTS=ne({},Ai.DEFAULTS,{modules:{toolbar:{handlers:{link(i){i?this.quill.theme.tooltip.edit():this.quill.format("link",!1,m.sources.USER)}}}}});const Im=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Ic extends _o{constructor(){super(...arguments);S(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const s=this.linkRange;this.restoreFocus(),this.quill.formatText(s,"link",!1,N.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(N.events.SELECTION_CHANGE,(e,s,n)=>{if(e!=null){if(e.length===0&&n===N.sources.USER){const[r,o]=this.quill.scroll.descendant(mn,e.index);if(r!=null){this.linkRange=new Gt(e.index-o,r.length());const l=mn.formats(r.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();const a=this.quill.getBounds(this.linkRange);a!=null&&this.position(a);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}S(Ic,"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(""));let Oc=class extends Ai{constructor(t,e){e.modules.toolbar!=null&&e.modules.toolbar.container==null&&(e.modules.toolbar.container=Im),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),hi),this.buildPickers(t.container.querySelectorAll("select"),hi),this.tooltip=new Ic(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,s)=>{t.handlers.link.call(t,!s.format.link)}))}};Oc.DEFAULTS=ne({},Ai.DEFAULTS,{modules:{toolbar:{handlers:{link(i){if(i){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0&&(e=`mailto:${e}`);const{tooltip:s}=this.quill.theme;s.edit("link",e)}else this.quill.format("link",!1,m.sources.USER)}}}}});m.register({"attributors/attribute/direction":dc,"attributors/class/align":cc,"attributors/class/background":Kp,"attributors/class/color":Vp,"attributors/class/direction":fc,"attributors/class/font":mc,"attributors/class/size":Ac,"attributors/style/align":hc,"attributors/style/background":Fo,"attributors/style/color":Uo,"attributors/style/direction":pc,"attributors/style/font":bc,"attributors/style/size":yc},!0);m.register({"formats/align":cc,"formats/direction":fc,"formats/indent":Dg,"formats/background":Fo,"formats/color":Uo,"formats/font":mc,"formats/size":Ac,"formats/blockquote":ho,"formats/code-block":ht,"formats/header":Pg,"formats/list":bi,"formats/bold":ci,"formats/code":jo,"formats/italic":uo,"formats/link":mn,"formats/script":fo,"formats/strike":po,"formats/underline":go,"formats/formula":ln,"formats/image":mo,"formats/video":Hg,"modules/syntax":Lc,"modules/table":Fg,"modules/toolbar":Xo,"themes/bubble":qc,"themes/snow":Oc,"ui/icons":hi,"ui/picker":In,"ui/icon-picker":Tc,"ui/color-picker":xc,"ui/tooltip":Nc},!0);const Om=`<svg width="16px" height="14px" viewBox="0 0 16 14">
50
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
51
- <g transform="translate(0.000000, -1.000000)" fill="#293040">
52
- <path d="M11,5 C13.7614237,5 16,7.23857625 16,10 C16,12.7614237 13.7614237,15 11,15 L7,15 L7,14 L11,14
53
- C13.209139,14 15,12.209139 15,10 C15,7.790861 13.209139,6 11,6 L5,6 L5,10 L0,5.5 L5,1 L5,5 L11,5 Z"></path>
54
- </g>
55
- </g>
56
- </svg>`,Rm=`<svg width="16px" height="14px" viewBox="0 0 16 14">
57
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
58
- <g transform="translate(0.000000, -1.000000)" fill="#293040">
59
- <path d="M5,5 L11,5 L11,1 L16,5.5 L11,10 L11,6 L5,6 C2.790861,6 1,7.790861 1,10 C1,12.209139 2.790861,14 5,14 L9,14
60
- L9,15 L5,15 C2.23857625,15 0,12.7614237 0,10 C0,7.23857625 2.23857625,5 5,5 Z"></path>
61
- </g>
62
- </g>
63
- </svg>`,Mm=`<svg width="16px" height="15px" viewBox="0 0 16 15">
64
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
65
- <g fill="#293040">
66
- <path d="M4.32708124,14 L8.37150583,14 L10.5729409,11.5550586 L4.6297198,6.20375828 L1.25465311,9.95542661
67
- C1.09078634,10.1375782 1.0006437,10.3742369 1.00180556,10.6192474 C1.00295568,10.8617824 1.10621221,11.092615
68
- 1.28624979,11.2551297 L4.32708124,14 Z M16,14 L16,15 L3.93760008,15 L0.597250175,11.9923354 C0.217072683,11.6500221
69
- 1.59049582e-13,11.1091757 1.59428026e-13,10.6149383 C1.59806471e-13,10.1207008 0.183000942,9.64396706 0.513710349,9.27667705
70
- L8.56855175,0.330869394 L16,7.02217546 L9.71713856,14 L16,14 Z"></path>
71
- </g>
72
- </g>
73
- </svg>`,km=`<svg width="12px" height="16px" viewBox="0 0 12 16">
74
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
75
- <g transform="translate(-2.000000, 0.000000)" fill="#293040" fill-rule="nonzero">
76
- <path d="M11.540636,7.0842147 C13.0068647,7.89340318 14,9.45459285 14,11.2477417 C14,13.8723415 11.8723415,16
77
- 9.2477417,16 L2,16 L2,7.99258423 L2,-5.06261699e-14 L9.00370789,-4.75175455e-14 C11.2107991,-4.79229815e-14 13,1.78920092
78
- 13,3.99629211 C13,5.24014846 12.4317244,6.35127692 11.540636,7.0842147 Z M3.5,1.5 L3.5,6.49258423 L9.00370789,6.49258423
79
- C10.382372,6.49258423 11.5,5.37495618 11.5,3.99629211 C11.5,2.61762805 10.382372,1.5 9.00370789,1.5 L3.5,1.5 Z M3.5,14.5
80
- L9.2477417,14.5 C11.0439144,14.5 12.5,13.0439144 12.5,11.2477417 C12.5,9.45156904 11.0439144,7.9954834 9.2477417,7.9954834
81
- L3.5,7.9954834 L3.5,14.5 Z"></path>
82
- </g>
83
- </g>
84
- </svg>`,Bm=`<svg width="9px" height="16px" viewBox="0 0 9 16">
85
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
86
- <g transform="translate(-4.000000, 0.000000)" fill="#293040">
87
- <path d="M10.2565501,1.5 L8.41332415,14.5 L12,14.5 L12,16 L4,16 L4,14.5 L6.90083611,14.5 L8.74406208,1.5 L5,1.5
88
- L5,0 L13,0 L13,1.5 L10.2565501,1.5 Z"></path>
89
- </g>
90
- </g>
91
- </svg>`,Dm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
92
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
93
- <polygon fill="#293040" points="2 14 14 14 14 16 2 16"></polygon>
94
- <path d="M4.5,3 L4.5,7 C4.5,8.93299662 6.06700338,10.5 8,10.5 C9.93299662,10.5 11.5,8.93299662 11.5,7 L11.5,1.5
95
- L11.4998322,0 L13,0 L13,7 C13,9.76142375 10.7614237,12 8,12 C5.23857625,12 3,9.76142375 3,7 L3,0 L4.49893188,0
96
- L4.49893188,3 L4.5,3 Z" fill="#293040" fill-rule="nonzero"></path>
97
- </g>
98
- </svg>`,Pm=`<svg width="14px" height="16px" viewBox="0 0 14 16">
99
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
100
- <g transform="translate(-1.000000, 0.000000)" fill="#293040">
101
- <path d="M9.93321102,9 L1,9 L1,7 L3.84197169,7 C3.31015092,6.28495098 3,5.42507332 3,4.5 C3,2.01471863
102
- 5.23857625,0 8,0 C10.5736409,0 12.6931261,1.75002477 12.969484,4 L11.4507289,4 C11.1737591,2.60626201 9.76011738,1.5 8,1.5
103
- C6.03382604,1.5 4.5,2.88044344 4.5,4.5 C4.5,5.52604325 5.11562351,6.45611494 6.06678898,7 L15,7 L15,9 L12.1580283,9
104
- C12.6898491,9.71504902 13,10.5749267 13,11.5 C13,13.9852814 10.7614237,16 8,16 C5.42635908,16 3.30687393,14.2499752
105
- 3.03051599,12 L4.54927112,12 C4.82624092,13.393738 6.23988262,14.5 8,14.5 C9.96617396,14.5 11.5,13.1195566 11.5,11.5
106
- C11.5,10.4739568 10.8843765,9.54388506 9.93321102,9 Z"></path>
107
- </g>
108
- </g>
109
- </svg>`,Hm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
110
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
111
- <polygon fill="#293040" points="2 14 14 14 14 16 2 16"></polygon>
112
- <path d="M10.9166667,8.5 L5.08333333,8.5 L4.26618123,10.461165 L3.62338765,12 L2,12 L7,0 L9,0 L14,12 L12.3824972,12
113
- L11.5753038,10.0807292 L10.9166667,8.5 Z M10.2916667,7 L8,1.5 L5.70833333,7 L10.2916667,7 Z"
114
- fill="#293040" fill-rule="nonzero"></path>
115
- </g>
116
- </svg>`,Um=` <svg width="16px" height="16px" viewBox="0 0 16 16">
117
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
118
- <path d="M4.64447006,9.66583547 L3.17597929,8.33216965 L6.15933183,5.11039074 L5.42508645,4.44355783
119
- L9.39179153,1.0658141e-13 L16,6.00149616 L12.0332949,10.445054 L11.2990495,9.77822108 L8.31569698,13 L6.84720621,11.6663342
120
- L5.69344476,12.9587937 L2.36400649,12.9587937 L2,12.6282074 L4.64447006,9.66583547 Z M4.57134219,8.25840959
121
- L8.24256911,11.5925741 L10.5648041,9.11138818 L6.89357722,5.77722364 L4.57134219,8.25840959 Z M14.6046371,6.07525623
122
- L9.4649194,1.40742588 L6.82044935,4.36979777 L11.960167,9.03762811 L14.6046371,6.07525623 Z M2,14 L14,14 L14,16 L2,16 L2,14 Z"
123
- fill="#293040"></path>
124
- </g>
125
- </svg>`,Fm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
126
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
127
- <path d="M0,0 L1.5,0 L1.5,16 L0,16 L0,0 Z M4,3 L13,3 L13,7 L4,7 L4,3 Z M5,4 L5,6 L12,6 L12,4 L5,4 Z M4,9 L16,9
128
- L16,13 L4,13 L4,9 Z M5,10 L5,12 L15,12 L15,10 L5,10 Z" fill="#293040"></path>
129
- </g>
130
- </svg>`,jm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
131
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
132
- <path d="M8.75,7 L8.75,9 L16,9 L16,13 L8.75,13 L8.75,16 L7.25,16 L7.25,13 L0,13 L0,9 L7.25,9 L7.25,7 L2,7
133
- L2,3 L7.25,3 L7.25,0 L8.75,0 L8.75,3 L14,3 L14,7 L8.75,7 Z M1,10 L1,12 L15,12 L15,10 L1,10 Z M3,4 L3,6 L13,6
134
- L13,4 L3,4 Z" fill="#293040"></path>
135
- </g>
136
- </svg>`,zm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
137
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
138
- <path d="M14.5,0 L16,0 L16,16 L14.5,16 L14.5,0 Z M3,3 L12,3 L12,7 L3,7 L3,3 Z M4,4 L4,6 L11,6 L11,4 L4,4 Z
139
- M0,9 L12,9 L12,13 L0,13 L0,9 Z M1,10 L1,12 L11,12 L11,10 L1,10 Z" fill="#293040"></path>
140
- </g>
141
- </svg>`,Wm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
142
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
143
- <g fill="#293040">
144
- <path d="M5,1 L16,1 L16,2.5 L5,2.5 L5,1 Z M2,4 C0.8954305,4 0,3.1045695 0,2 C0,0.8954305 0.8954305,0 2,0
145
- C3.1045695,0 4,0.8954305 4,2 C4,3.1045695 3.1045695,4 2,4 Z M2,3 C2.55228475,3 3,2.55228475 3,2 C3,1.44771525
146
- 2.55228475,1 2,1 C1.44771525,1 1,1.44771525 1,2 C1,2.55228475 1.44771525,3 2,3 Z M2,10 C0.8954305,10 0,9.1045695
147
- 0,8 C0,6.8954305 0.8954305,6 2,6 C3.1045695,6 4,6.8954305 4,8 C4,9.1045695 3.1045695,10 2,10 Z M2,9 C2.55228475,9
148
- 3,8.55228475 3,8 C3,7.44771525 2.55228475,7 2,7 C1.44771525,7 1,7.44771525 1,8 C1,8.55228475 1.44771525,9 2,9 Z
149
- M2,16 C0.8954305,16 0,15.1045695 0,14 C0,12.8954305 0.8954305,12 2,12 C3.1045695,12 4,12.8954305 4,14 C4,15.1045695
150
- 3.1045695,16 2,16 Z M2,15 C2.55228475,15 3,14.5522847 3,14 C3,13.4477153 2.55228475,13 2,13 C1.44771525,13 1,13.4477153
151
- 1,14 C1,14.5522847 1.44771525,15 2,15 Z M5,7 L16,7 L16,8.5 L5,8.5 L5,7 Z M5,13 L16,13 L16,14.5 L5,14.5 L5,13 Z"></path>
152
- </g>
153
- </g>
154
- </svg>`,Vm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
155
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
156
- <g fill="#293040">
157
- <path d="M5,1 L16,1 L16,2.5 L5,2.5 L5,1 Z M0,0 L2,0 L2,3 L3,3 L3,4 L0,4 L0,3 L1,3 L1,1 L0,1 L0,0 Z M5,7 L16,7
158
- L16,8.5 L5,8.5 L5,7 Z M5,13 L16,13 L16,14.5 L5,14.5 L5,13 Z M0,15 L1.75,15 C1.88807119,15 2,14.8880712 2,14.75
159
- C2,14.6119288 1.88807119,14.5 1.75,14.5 L0,14.5 L0,13.5 L1.75,13.5 C1.88807119,13.5 2,13.3880712 2,13.25 C2,13.1119288
160
- 1.88807119,13 1.75,13 L0,13 L0,12 L1.5,12 C2.32842712,12 3,12.6715729 3,13.5 C3,13.6753177 2.96992289,13.8436105
161
- 2.91464715,14 C2.96992289,14.1563895 3,14.3246823 3,14.5 C3,15.3284271 2.32842712,16 1.5,16 L0,16 L0,15 Z M2,7.5
162
- C2,7.35127258 1.9375,7.22627258 1.84375,7.13845444 C1.76307119,7.05596441 1.63807119,7 1.5,7 C1.22385763,7 1,7.22385763
163
- 1,7.5 L1.62630326e-19,7.5 C0.147399902,6.5 0.647399902,6 1.5,6 C2.32842712,6 3,6.67157288 3,7.5 C3,8.07312512
164
- 2.50016007,8.55650475 2.22821045,8.74661255 C1.95626083,8.93672035 1.77325955,8.99789088 1.76769962,9 L3,9 L3,10
165
- L0,10 L1.62630326e-19,9 C0.619515577,8.77257137 1.06188822,8.55939591 1.32711792,8.36047363 C1.6371448,8.12795347
166
- 1.87259637,7.91592701 1.96143498,7.69289356 C1.98627694,7.633537 2,7.5683711 2,7.5 Z"></path>
167
- </g>
168
- </g>
169
- </svg>`,Km=`<svg width="15px" height="14px" viewBox="0 0 15 14">
170
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
171
- <g transform="translate(-1058.000000, -97.000000)">
172
- <g transform="translate(407.000000, 93.000000)">
173
- <g transform="translate(650.000000, 2.000000)">
174
- <rect x="0" y="0" width="16" height="16"></rect>
175
- <polygon fill="#293040" fill-rule="nonzero" points="14 15 14 9.37100497 15 9.37100497 15
176
- 16 1 16 1 2 10.1946467 2 10.1946467 3 2 3 2 15"></polygon>
177
- <path d="M14.4525049,2.48740937 C14.7356009,2.1850362 15.8305911,3.21021745 15.5474951,3.51259063
178
- L8.45990379,11.0828057 L4.46558382,7.02621226 C4.17496481,6.73106236 4.17863783,6.25620283 4.47378774,5.96558382
179
- C4.76893764,5.67496481 5.24379717,5.67863783 5.53441618,5.97378774 L8.43263799,8.91719429 L14.4525049,2.48740937 Z"
180
- fill="#293040" fill-rule="nonzero"></path>
181
- </g>
182
- </g>
183
- </g>
184
- </g>
185
- </svg>`,Xm=`<svg t="1565073788159" class="icon" viewBox="0 0 1024 1024" width="16" height="16">
186
- <path d="M110.78 469.52l70.44-39.24A60 60 0 0 0 212 377.9L212 212a120 120 0 0 1 120-120l60 0a30
187
- 30 0 0 1 0 60L332 152a60 60 0 0 0-59.99999999 60l0 175.38a120 120 0 0
188
- 1-63.48000001 105.9L173.42 512l35.1 18.72A120 120 0 0 1 272 636.56L272.00000001 812a60 60 0 0 0 59.99999999 60l60 0a30 30
189
- 0 1 1 0 60L332 932a120 120 0 0 1-120-120l0-165.9a60
190
- 60 0 0 0-30.78-52.38l-70.44-39.24a45 45 0 0 1 0-84.96z m742.44 1e-8a45 45 0 0 1 0 84.95999998l-70.44 39.24000001a60
191
- 60 0 0 0-30.78000001 52.38L751.99999999 812a120 120 0 0 1-119.99999999 120L572 932a30 30
192
- 0 1 1 0-60l60 0a60 60 0 0 0 60-60l0-175.38a120 120
193
- 0 0 1 63.48-105.9L790.58 512l-35.1-18.72A120 120 0 0 1 692 387.44L692 212a60 60 0 0 0-60-60L572 152a30
194
- 30 0 0 1 0-60l60 0a120 120 0 0 1 119.99999999 120l0 165.9a60 60 0 0 0 30.78000001 52.38l70.44 39.24000001z"></path></svg>`,_m=`<svg width="16px" height="16px" viewBox="0 0 16 16">
195
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
196
- <g transform="translate(0.000000, 1.000000)" fill="#000000" fill-rule="nonzero">
197
- <path d="M6.86733556,12.5574136 L6.86733556,7.99108138 L2.52931996,7.99108138 C2.41516165,5.02296544
198
- 3.10011148,3.42474916 5.72575251,2.0548495 L5.72575251,0 C1.84437012,1.36989967 -0.0963210702,3.88138239 0.0178372352,7.76276477
199
- L0.0178372352,12.5574136 L6.86733556,12.5574136 Z M16,12.5574136 L16,7.99108138 L11.6619844,7.99108138 C11.5478261,5.02296544
200
- 12.2327759,3.42474916 14.8584169,2.0548495 L14.8584169,0 C10.9770346,1.36989967 9.03634337,3.88138239 9.15050167,7.76276477
201
- L9.15050167,12.5574136 L16,12.5574136 Z"></path>
202
- </g>
203
- </g>
204
- </svg>`,Gm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
205
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
206
- <g transform="translate(-1196.000000, -96.000000)" fill="#293040" fill-rule="nonzero">
207
- <g transform="translate(407.000000, 93.000000)">
208
- <path d="M804,4 L790,4 L790,11.940983 L794.058237,9.91186456 L798.536534,13.3949845 L801.014076,11.908459
209
- L804,13.8990748 L804,4 Z M803.72265,14.9160251 L800.985924,13.091541 L798.463466,14.6050155 L793.941763,11.0881354
210
- L790.223607,12.9472136 C790.151699,12.9831673 790.07527,13.000168 790,13.0001094 L790,18 L804,18 L804,15.0000529
211
- C803.90455,15.0001406 803.80803,14.9729453 803.72265,14.9160251 Z M789,19 L789,3 L805,3 L805,19 L789,19 Z M801,9
212
- C800.447715,9 800,8.55228475 800,8 C800,7.44771525 800.447715,7 801,7 C801.552285,7 802,7.44771525 802,8 C802,8.55228475
213
- 801.552285,9 801,9 Z"></path>
214
- </g>
215
- </g>
216
- </g>
217
- </svg>`,Zm=`<svg width="16px" height="16px" viewBox="0 0 16 16" >
218
- <g id="icon/01" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
219
- <path d="M16,16 L1,16 L1,0 L12,0 L16,4 L16,16 Z M11,1 L2,1 L2,15 L15,15 L15,
220
- 5 L11,5 L11,1 Z M12,1.533 L12,4 L14.52,4 L12,1.533 Z"
221
- id="Combined-Shape" fill="#293040" fill-rule="nonzero">
222
- </path>
223
- <polygon id="path" fill="#293040" points="8 8 6 8 8.5 5 11 8 9 8 9 12 8 12"></polygon>
224
- </g>
225
- </svg>`,Qm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
226
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
227
- <g transform="translate(-1227.000000, -96.000000)" fill="#293040">
228
- <g transform="translate(407.000000, 93.000000)">
229
- <path d="M820,3 L836,3 L836,19 L820,19 L820,3 Z M821,4 L821,8 L835,8 L835,4 L821,4 Z M821,9 L821,13 L825,
230
- 13 L825,9 L821,9 Z M821,14 L821,18 L825,18 L825,14 L821,14 Z M826,9 L826,13 L830,13 L830,9 L826,9 Z M826,
231
- 14 L826,18 L830,18 L830,14 L826,14 Z M831,9 L831,13 L835,13 L835,9 L831,9 Z M831,14 L831,18 L835,18 L835,
232
- 14 L831,14 Z"></path>
233
- </g>
234
- </g>
235
- </g>
236
- </svg>`,Ym=`<svg width="16px" height="16px" viewBox="0 0 16 16">
237
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
238
- <g transform="translate(-1258.000000, -96.000000)" fill="#293040" fill-rule="nonzero">
239
- <g transform="translate(407.000000, 93.000000)">
240
- <path d="M855.499,13.863 L861.863,7.499 L862.573,8.209 L856.209,14.573 L855.499,13.863 Z M854.646498,9.99452063
241
- C854.661947,10.0108615 854.677673,10.0270363 854.693676,10.0430391 L855.388521,10.7378841 L852.802248,13.3241571
242
- C851.732584,14.3938208 851.732584,16.1280884 852.802248,17.1977522 C853.871912,18.2674159 855.606179,18.2674159
243
- 856.675843,17.1977522 L859.262116,14.6114792 L859.956961,15.3063242 C859.972964,15.3223269 859.989138,15.3380528
244
- 860.005479,15.3535018 L857.468863,17.8901187 C855.989021,19.3699604 853.589723,19.3699604 852.109881,17.8901187
245
- C850.63004,16.4102769 850.63004,14.0109793 852.109881,12.5311375 L854.646498,9.99452063 Z M857.994521,6.64649819
246
- L860.531137,4.10988134 C862.010979,2.63003955 864.410277,2.63003955 865.890119,4.10988134 C867.36996,5.58972313
247
- 867.36996,7.98902073 865.890119,9.46886252 L863.353502,12.0054794 C863.338053,11.9891385 863.322327,11.9729637
248
- 863.306324,11.9569609 L862.611479,11.2621159 L865.197752,8.67584293 C866.267416,7.60617918 866.267416,5.87191157
249
- 865.197752,4.80224782 C864.128088,3.73258406 862.393821,3.73258406 861.324157,4.80224782 L858.737884,7.38852082
250
- L858.043039,6.69367584 C858.027036,6.67767307 858.010862,6.66194719 857.994521,6.64649819 Z"></path>
251
- </g>
252
- </g>
253
- </g>
254
- </svg>`,Jm=`<svg width="16px" height="16px" viewBox="0 0 16 16">
255
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
256
- <path d="M8,16 C3.581722,16 0,12.418278 0,8 C0,3.581722 3.581722,0 8,0 C12.418278,0 16,3.581722 16,8 C16,12.418278
257
- 12.418278,16 8,16 Z M8,15 C11.8659932,15 15,11.8659932 15,8 C15,4.13400675 11.8659932,1 8,1 C4.13400675,1 1,4.13400675
258
- 1,8 C1,11.8659932 4.13400675,15 8,15 Z M5,7 C4.44771525,7 4,6.55228475 4,6 C4,5.44771525 4.44771525,5 5,5 C5.55228475,5
259
- 6,5.44771525 6,6 C6,6.55228475 5.55228475,7 5,7 Z M11,7 C10.4477153,7 10,6.55228475 10,6 C10,5.44771525 10.4477153,5 11,5
260
- C11.5522847,5 12,5.44771525 12,6 C12,6.55228475 11.5522847,7 11,7 Z M4,10 L12,10 C11.5415129,11.7252272 9.9244686,13 8,13
261
- C6.0755314,13 4.45848714,11.7252272 4,10 Z" fill="#293040"></path>
262
- </g>
263
- </svg>`,$m=`<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1">
264
- <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
265
- <g transform="translate(-1529.000000, -96.000000)">
266
- <g transform="translate(1529.000000, 96.000000)">
267
- <rect fill="#000000" fill-rule="nonzero" opacity="0" x="0" y="0" width="16" height="16"></rect>
268
- <polyline stroke="#293040" points="16 14 2 14 2 0 2 0"></polyline>
269
- <polyline stroke="#293040" points="4 2 14 2 14 12"></polyline>
270
- <rect fill="#293040" x="0" y="1.5" width="2" height="1"></rect>
271
- <rect fill="#293040"
272
- transform="translate(14.000000, 15.000000)
273
- rotate(-90.000000)
274
- translate(-14.000000, -15.000000) " x="13" y="14.5" width="2" height="1">
275
- </rect>
276
- </g>
277
- </g>
278
- </g>
279
- </svg>`,t0='<svg t="1721956397010" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4254" width="20" height="20"><path d="M438.4 849.1l222.7-646.7c0.2-0.5 0.3-1.1 0.4-1.6L438.4 849.1z" opacity=".224" p-id="4255"></path><path d="M661.2 168.7h-67.5c-3.4 0-6.5 2.2-7.6 5.4L354.7 846c-0.3 0.8-0.4 1.7-0.4 2.6 0 4.4 3.6 8 8 8h67.8c3.4 0 6.5-2.2 7.6-5.4l0.7-2.1 223.1-648.3 7.4-21.4c0.3-0.8 0.4-1.7 0.4-2.6-0.1-4.5-3.6-8.1-8.1-8.1zM954.6 502.1c-0.8-1-1.7-1.9-2.7-2.7l-219-171.3c-3.5-2.7-8.5-2.1-11.2 1.4-1.1 1.4-1.7 3.1-1.7 4.9v81.3c0 2.5 1.1 4.8 3.1 6.3l115 90-115 90c-1.9 1.5-3.1 3.8-3.1 6.3v81.3c0 4.4 3.6 8 8 8 1.8 0 3.5-0.6 4.9-1.7l219-171.3c6.9-5.4 8.2-15.5 2.7-22.5zM291.1 328.1l-219 171.3c-1 0.8-1.9 1.7-2.7 2.7-5.4 7-4.2 17 2.7 22.5l219 171.3c1.4 1.1 3.1 1.7 4.9 1.7 4.4 0 8-3.6 8-8v-81.3c0-2.5-1.1-4.8-3.1-6.3l-115-90 115-90c1.9-1.5 3.1-3.8 3.1-6.3v-81.3c0-1.8-0.6-3.5-1.7-4.9-2.7-3.5-7.7-4.1-11.2-1.4z" p-id="4256"></path></svg>',e0='<svg t="1721963829631" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9764" width="20" height="20"><path d="M512 74.666667C270.933333 74.666667 74.666667 270.933333 74.666667 512S270.933333 949.333333 512 949.333333 949.333333 753.066667 949.333333 512 753.066667 74.666667 512 74.666667z m0 810.666666c-204.8 0-373.333333-168.533333-373.333333-373.333333S307.2 138.666667 512 138.666667 885.333333 307.2 885.333333 512 716.8 885.333333 512 885.333333z" fill="#000000" p-id="9765"></path><path d="M512 746.666667m-42.666667 0a42.666667 42.666667 0 1 0 85.333334 0 42.666667 42.666667 0 1 0-85.333334 0Z" fill="#000000" p-id="9766"></path><path d="M512 245.333333c-76.8 0-138.666667 61.866667-138.666667 138.666667 0 17.066667 14.933333 32 32 32s32-14.933333 32-32c0-40.533333 34.133333-74.666667 74.666667-74.666667s74.666667 34.133333 74.666667 74.666667c0 27.733333-53.333333 76.8-91.733334 100.266667-8.533333 6.4-14.933333 17.066667-14.933333 27.733333v106.666667c0 17.066667 14.933333 32 32 32s32-14.933333 32-32v-89.6c34.133333-25.6 106.666667-83.2 106.666667-145.066667 0-76.8-61.866667-138.666667-138.666667-138.666667z" fill="#000000" p-id="9767"></path></svg>',s0='<svg t="1721963743677" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8628" width="20" height="20"><path d="M713.130667 283.221333V228.352a9.159111 9.159111 0 0 0-9.130667-9.130667H265.102222a9.159111 9.159111 0 0 0-9.102222 9.130667v54.869333c0 5.034667 4.096 9.130667 9.130667 9.130667H704a9.159111 9.159111 0 0 0 9.130667-9.130667z m-448 100.579556a9.130667 9.130667 0 0 0-9.130667 9.130667v54.869333c0 5.006222 4.096 9.130667 9.130667 9.130667h210.289777a9.159111 9.159111 0 0 0 9.159112-9.130667v-54.869333a9.159111 9.159111 0 0 0-9.159112-9.130667H265.130667z m164.579555 516.551111H164.579556V95.800889h640v279.352889c0 5.034667 4.096 9.159111 9.130666 9.159111h64a9.159111 9.159111 0 0 0 9.130667-9.159111V50.090667c0-20.252444-16.327111-36.579556-36.551111-36.579556H118.840889c-20.195556 0-36.551111 16.327111-36.551111 36.579556v896c0 20.195556 16.327111 36.551111 36.551111 36.551111h310.869333a9.159111 9.159111 0 0 0 9.130667-9.130667v-64a9.159111 9.159111 0 0 0-9.130667-9.159111z" fill="#000000" fill-opacity=".85" p-id="8629"></path><path d="M837.859556 656.298667l-107.861334 186.794666-68.977778-39.822222 107.861334-186.794667 68.977778 39.822223z" fill="#000000" p-id="8630"></path><path d="M691.114667 514.844444a159.146667 159.146667 0 0 1 217.315555-58.225777 159.061333 159.061333 0 0 1 58.197334 217.315555l-55.637334 96.369778-68.977778-39.822222 55.637334-96.369778a79.416889 79.416889 0 1 0-137.557334-79.416889l-55.637333 96.369778-68.977778-39.822222 55.637334-96.369778V514.844444z m-28.558223 208.782223l-56.462222 97.792a79.416889 79.416889 0 0 0 137.557334 79.388444l56.462222-97.763555 68.977778 39.822222-56.462223 97.763555a159.061333 159.061333 0 1 1-275.484444-159.061333l56.433778-97.763556 68.977777 39.822223z" fill="#000000" p-id="8631"></path></svg>',i0=`<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="100%" height="100%" viewBox="0 0 1024 1024" version="1.1">
280
- <path fill="#333333" d="M64 384h96V160h224.2V64H64zM639.8 64v96H864v224h96V64zM864 864H639.8v96H960V639.61h-96zM160 639.61H64V960h320.2v-96H160z"/>
281
- </svg>`,Jl='<i class="icon-triangle-down"></i>',n0=m.imports.delta;function r0(i){let t;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(i))return t=i.substring(1).split(""),t.length===3&&(t=[t[0],t[0],t[1],t[1],t[2],t[2]]),t="0x"+t.join(""),"rgba("+[t>>16&255,t>>8&255,t&255].join(",")+",1)"}function o0(i){return new Promise((t,e)=>{const s=new FileReader;s.readAsDataURL(i),s.onload=function(n){t(n.target.result)},s.onerror=e}).catch(t=>null)}function $l(i,t){return new Promise(function(e,s){fetch(i,{method:"get",mode:"no-cors"}).then(n=>n.blob()).then(n=>{if(n.type.indexOf("image")===-1||!n.type)return s();const r=n.type.replace(/^.*\//,""),o=t?"editorx-error-image.png":`image-${new Date().getTime()}.${r}`,l=new File([n],o,n);e(l)}).catch(s)})}function Rc(i=null,t=this.quill){let e=i;e||(e=t.getSelection());const[s]=t.getLine(e.index);return s&&!!s.domNode.closest("table.quill-better-table")}function B(i){return i==null}function Go(i,t){return i&&Object.keys(i).reduce((e,s)=>t.includes(s)?e:{...e,[s]:i[s]},{})}function ta(i,t,e){let s=0;return i.reduce((n,r)=>{if(r.insert.image&&!r.insert.image.hasExisted){const o=e[s]?{...r.attributes,width:"auto",height:225}:r.attributes;n.insert({image:t[s]},o),s++}else n.insert(r.insert,r.attributes);return n},new n0)}function On(i){const t=[],e=i;let s=0;for(let r=0;r<i.length;r++)e.charAt(r)===`
282
- `&&(r===0||t.push(e.substring(s,r)),t.push(`
283
- `),s=r+1);const n=e.substring(s);return n&&t.push(n),t}function ea(i){let t;if(t=i.path||i.composedPath&&i.composedPath(),t===void 0&&i.target){t=[];let e=i.target;for(t.push(e);e&&e.parentNode;)e=e.parentNode,t.push(e)}return t}const Rn=(i,t)=>{const e=document.createElement("a");e.href=i;const s=e.href.slice(0,e.href.indexOf(":"));return t.indexOf(s)>-1},l0=(i,t)=>{const e=t.getBoundingClientRect(),{pageX:s,pageY:n}=i,r=s-window.scrollX,o=n-window.scrollY,{left:l,top:a,width:h,height:u}=e;return r>l&&r<l+h&&o>a&&o<a+u},a0=!!document.documentMode,Mc={undo:"Undo",redo:"Redo",clean:"Clear Formatting",header:"Paragraph Formatting",normal:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",font:"Font",size:"Size",lineheight:"Line Height",songti:"SimSun",yahei:"Microsoft Yahei",kaiti:"KaiTi",heiti:"SimHei",lishu:"LiSu",bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strikethrough",color:"Font Color",background:"Background Color",orderedlist:"Ordered List",bulletlist:"Unordered List",checklist:"Task List",left:"Left",center:"Centered",right:"Right",image:"Image",file:"File",table:"Table",link:"Hyperlink",code:"Inline Code",codeblock:"Code Block",blockquote:"Quote",superscript:"Superscript",subscript:"Subscript",globallink:"Link",emoji:"Emoji",fullscreen:"Full Screen","exit-fullscreen":"Exit Full Screen",help:"Help",more:"More","help-format":"Format","help-insert":"Insert","help-operation":"Edit",mention:"Mention People","quick-menu":"Shortcut","toggle-help-panel":"Open/Close Help Panel","scroll-table":"Horizontal Scroll","mouse-wheel":"Mouse Wheel",save:"Save","copy-cells":"Copy","copy-table":"Copy Table","cut-cells":"Cut","empty-cells":"Clear Contents","insert-row-up":"Insert Rows Above","insert-row-down":"Insert Rows Below","insert-column-left":"Insert Columns to the Left","insert-column-right":"Insert Columns to the Right","merge-cells":"Merge Cells","unmerge-cells":"Split Cells","delete-row":"Delete Entire Row","delete-column":"Delete Entire Column","delete-table":"Delete Table","default-link-text":"Link",basicblock:"Card",linkplaceholder:"Enter an address and press Enter.","counter-template":"{{count}}/{{totalCount}} {{countUnit}}",char:"characters",word:"words","counter-limit-tips":"The number of {{countUnit}} exceeds the maximum allowed limit.","ie-msg":"In order to have a better experience, it is recommended to use the latest version of Chrome browser.",loading:"Loading...",pasting:"A large amount of content to paste. Loading...","img-error":"Image Copy Error","img-error-info":"Failed to copy the image. Save it to your local computer and then upload it by clicking Image on the toolbar.",lastModified:"Last Modified Date:",screenshot:"Screenshot",uploading:"Uploading...",subTitleBgColor:"BackgroundColor"},kc={undo:"撤销",redo:"重做",clean:"清除格式",header:"段落格式",normal:"正文",h1:"标题1",h2:"标题2",h3:"标题3",h4:"标题4",h5:"标题5",h6:"标题6",font:"字体",size:"字号",lineheight:"行距",songti:"宋体",yahei:"微软雅黑",kaiti:"楷体",heiti:"黑体",lishu:"隶书",bold:"粗体",italic:"斜体",underline:"下划线",strike:"删除线",color:"字体颜色",background:"背景色",orderedlist:"有序列表",bulletlist:"无序列表",checklist:"任务列表",left:"左对齐",center:"居中对齐",right:"右对齐",image:"图片",file:"文件",table:"表格",link:"超链接",code:"行内代码",codeblock:"代码块",blockquote:"引用",superscript:"上标",subscript:"下标",globallink:"全局链接",emoji:"表情",fullscreen:"全屏","exit-fullscreen":"退出全屏",help:"帮助",more:"更多","help-format":"格式","help-insert":"插入","help-operation":"操作",mention:"提及某人","quick-menu":"快捷菜单","toggle-help-panel":"打开/关闭帮助面板","scroll-table":"水平滚动表格","mouse-wheel":"鼠标滚轮",save:"保存","copy-cells":"复制","copy-table":"复制表格","cut-cells":"剪切","empty-cells":"清空内容","insert-row-up":"上插入行","insert-row-down":"下插入行","insert-column-left":"左插入列","insert-column-right":"右插入列","merge-cells":"合并单元格","unmerge-cells":"拆分单元格","delete-row":"删除当前行","delete-column":"删除当前列","delete-table":"删除表格","default-link-text":"链接",basicblock:"卡片",linkplaceholder:"请输入链接地址,按回车键确认","counter-template":"{{count}}/{{totalCount}}",char:"字符",word:"单词","counter-limit-tips":"{{countUnit}}数超出最大允许值","ie-msg":"为了有更好的体验,推荐使用最新版Chrome浏览器。",loading:"正在加载中...",pasting:"您粘贴的内容较多,正在努力加载中,请耐心等待...","img-error":"图片复制出错","img-error-info":"此图片不支持复制,请将原图下载至本地后点击工具栏【插入图片】,重新上传。",lastModified:"最后修改时间:",screenshot:"截图",uploading:"上传中...",subTitleBgColor:"背景颜色"},c0=localStorage.getItem("lang")||"zh-cn",it=c0==="en-us"?Mc:kc,h0=["songti","yahei","kaiti","heiti","lishu","mono","arial","arialblack","comic","impact","times"],u0=["12px","13px","14px","15px","16px","17px","18px","19px","20px","22px","24px","26px","29px","32px","36px","40px","48px","72px"],sa={undo:Om,redo:Rm,clean:Mm,bold:km,italic:Bm,underline:Dm,strike:Pm,font:"",size:"",color:`<span class="ql-color-inner">
284
- ${Hm}
285
- ${Jl}
286
- <span class="current-color-line"></span>
287
- </span>`,background:`<span class="ql-color-inner">
288
- ${Um}
289
- ${Jl}
290
- <span class="current-color-line color-line-background"></span>
291
- </span>`,align:{"":Fm,center:jm,right:zm},list:{bullet:Wm,ordered:Vm,check:Km},code:t0,"code-block":Xm,blockquote:_m,image:Gm,file:Zm,"better-table":Qm,link:Ym,"global-link":s0,fullscreen:i0,emoji:Jm,help:e0,screenshot:$m},d0={copyCells:{text:it["copy-cells"]},copyTable:{text:it["copy-table"]},cutCells:{text:it["cut-cells"]},emptyCells:{text:it["empty-cells"]},insertRowUp:{text:it["insert-row-up"]},insertRowDown:{text:it["insert-row-down"]},insertColumnLeft:{text:it["insert-column-left"]},insertColumnRight:{text:it["insert-column-right"]},mergeCells:{text:it["merge-cells"]},unmergeCells:{text:it["unmerge-cells"]},deleteRow:{text:it["delete-row"]},deleteColumn:{text:it["delete-column"]},deleteTable:{text:it["delete-table"]}};function f0(i,t){const e=this.quill.uploader.options[i].join(", "),s=t||e;let n=this.container.querySelector(`input.ql-${i}[type=file]`);B(n)&&(n=document.createElement("input"),n.classList.add(`ql-${i}`),n.setAttribute("type","file"),n.setAttribute("accept",s),(this.quill.uploader.options.enableMultiUpload===!0||this.quill.uploader.options.enableMultiUpload.file&&i==="file"||this.quill.uploader.options.enableMultiUpload.image&&i==="image")&&n.setAttribute("multiple",""),n.addEventListener("change",()=>{const r=this.quill.getSelection(!0);this.quill.uploader.upload(r,n.files,i==="file"),n.value=""}),this.container.appendChild(n)),n.click()}function p0(i,t){let e=i;return t&&t===i?e=!1:i==="check"&&(t==="checked"||t==="unchecked"?e=!1:e="unchecked"),e}class g0{constructor(t,e){this.quill=t,this.defaultOptions={format:"text",unit:"char",template:it["counter-template"],count:500},this.renderCount=()=>{setTimeout(()=>{const{format:s,count:n,unit:r,template:o,errorTemplate:l}=this.options,a=this.getContentLength(s),h=n-a,u=r==="char"?it.char:it.word;let g=o;typeof g=="function"&&(g=g(a,h));const f=g.replace("{{count}}",a).replace("{{totalCount}}",String(n)).replace("{{restCount}}",String(h)).replace(/{{countUnit}}/g,u);let p=l||it["counter-limit-tips"];typeof p=="function"&&(p=p(a,h));const b=p.replace("{{countUnit}}",u);h<0?this.container.innerHTML=l?b:`<span style="color:red">${b}</span>`:this.container.innerHTML=f})},this.options={...this.defaultOptions,...e},this.container=t.addContainer("ql-counter"),t.on(m.events.TEXT_CHANGE,this.renderCount),this.renderCount()}getContentLength(t){let e=this.quill.getText();if(t==="html"){let n=this.quill.root.innerHTML;(n==="<p><br></p>"||n==="<div><br><div>")&&(n=""),e=n}const s=e.replace(/\s/g,"").trim();return this.options.unit==="word"?e.trim()?e.trim().split(/\s+/).length:0:s.length}}const m0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAHCCAMAAAAgvV36AAAAwFBMVEX///8zMzP7+/v+/v7o6OhUgvLY2Nj4+Pj8TCNXV1d1dXXn5+fz8/Oenp7Hx8e1tbVRUVGlpaXPz8+tra1+fn66urpsbGw3Nzfu7u47OzvBwcHr6+vc3NxERETi4uJcXFxhYWFMTEyDg4OUlJTf399qampxcXFAQEBISEiYmJhmZmZ7e3uGhoaQkJCMjIzU1NTr6v69vb1ch/ODo/VskvT8eFr9Yj+ft/fE0/mzxvr+moTT3fj+rJn/xrr/1cyuv/FbirVfAAAAAHRSTlM2uXDMAABAFklEQVR42u2dh2LiyNatJTaDBhDZWIiMbYIxhvb0nJnpE/77/m91K0pVUolkd2R9HQwYhKSqVTtU8jwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPiJoeQnEcmnhLsCblwUZEvDkgoAwBPWIvjy+c8//vjz85dAmA/IBICU4O8/flP88XcAOwKA6WX9k8hDSOQ/8nUIBAAukC+/2UiFEGwIAIx/fvstpxCCjwWA0MCnP37LK+QTwhAAhAT+/s3B35Y2dDLYHZYE4SA0BJdTFVQGfmJcBoSbkLRm0xFrQuGgzBhkf5t2NMJZAz81SYT+5z9B8M+f+tkXo1abHSNGVacgHJXLdS6QkW0uSHyGeI8KpAF+bj5rfQS8SgdaIZ/Typ7UczIcLiGOlMDQTTJUhby0cx6AnzMG0Yr4R7b7OqX1p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OZkqYTNNDXcyfY6FE+bMEPfLPElgqVS0WCe7cdSt+WSpu16Q8FAl54/3QePMEcalXu4sljFndcxVzwiYk/dSZRNig4XrpMhLH1YI/VhCdhTIVkGkem8d8f0EYRFcw4fire/6LsiS5/0W200JqYxnGr9ijPx53bD3+a+8U50Nmpbxx5FBMqX0eTtClSj6NJM9vE1SeSlslJNKmbY0XyISi3+spa9BvjhXl+ztM0GZ4O4473E71a7C5PGjp9M1+iH8f6wuYDusjZX9Qbyj6q3Gs/DmnDqHf4IOu7mc/om5WVgo8Hh8kbgBFtPLdSQ2ZQHGcWmEa+EOFkftD+ujE/TBVHZ8Pcpb1YcxR5QvgP2awHs//HCSVcYxPQl8tsFPR27ctCVa91dbrSKWzyPEA/4kPQLRRG3YxuPfO+uO5LHxz5rMyRN5iV30bnuaJ76qmcdyLPJU6rZs2mOIPKizR7fTiaDc8lyLdd77H3xhV/WJH9z55G+ctuHRXropgdf1Trj2HKz6+Ub8TcL8+feL97BeAqvMBdNvzhp8D/hZc9Mj3UCwC88Oq7qhf8oEeyt+b6cbGx/4bPQrf36qG4AXjh9fRncWgG0b87za0IouUylgNwb9di6fwrewXgX/YCZ+/HC3EYBMnuBx18sQ39lFC8YXt/+K/sFYB/l93sYfp+vCDE5MfVnnZv7QrhV40evsVeWyhsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALwB/w8sSxamI0ZlhQAAAABJRU5ErkJggg==",A0=2e3,y0=localStorage.getItem("lang")||"zh-cn",An=y0==="en-us"?Mc:kc,v0=["image/png","image/jpeg","image/gif","image/svg+xml"],w0=["text/plain","application/json","application/pdf"],C0=["audio/wave","audio/wav","audio/x-wav","audio/x-pn-wav","audio/mpeg","video/mpeg","video/x-msvideo"],E0=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"],L0=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],x0=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],T0=["application/x-tar","application/x-zip-compressed","application/zip-compressed","application/gzip",".rar",".7z"],N0=[...w0,...C0,...E0,...L0,...x0,...T0],S0=m.imports["modules/clipboard"],yn=m.imports.delta;class q0 extends S0{prepareMatching(t,e){const s=[],n=[];return this.matchers.forEach(r=>{const[o,l]=r;switch(o){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:s.push(l);break;default:{(/v:(.+)/.test(o)?Array.from(t.getElementsByTagName(o)):Array.from(t.querySelectorAll(o))).forEach(u=>{e.has(u)?e.get(u).push(l):e.set(u,[l])});break}}}),[s,n]}onCaptureCopy(t,e=!1){if(t.defaultPrevented)return;t.preventDefault();const[s]=this.quill.selection.getRange();if(B(s))return;const{html:n,text:r}=this.onCopy(s,e);t.clipboardData||(t.clipboardData={types:"text/plain",setData:(l,a)=>window.clipboardData.setData("Text",a)});let o=r;n.startsWith("<pre>")&&(o=r.replace(/\u00A0/g," ")),t.clipboardData.setData("text/html",n),t.clipboardData.setData("text/plain",o),e&&this.quill.deleteText(s,m.sources.USER)}onCapturePaste(t){var l;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(B(e))return;t.clipboardData||(t.clipboardData={types:"text/plain",getData:()=>window.clipboardData.getData("Text")});const s=t.clipboardData.getData("text/html"),n=t.clipboardData.getData("text/plain"),r=Array.from(t.clipboardData.files||[]),o=/<meta.*?Microsoft Excel\s[\d].*?>/;if(s.search(o)===-1&&((l=this.quill.options.uploadOption)!=null&&l.imageUploadToServer)&&r.length>0)this.quill.uploader.upload(e,r);else{const a=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,h=/xmlns:o="urn:schemas-microsoft-com/i,u={html:s,text:n,files:r,rtf:null};s.search(o)!==-1&&(u.html=M0(s)),(a.test(s)||h.test(s))&&(u.rtf=t.clipboardData.getData("text/rtf")),this.onPaste(e,u)}}onPaste(t,{html:e,text:s,files:n,rtf:r}){const o=this.extractImageDataFromRtf(r),l=getComputedStyle(this.quill.root).backgroundColor,a=this.quill.getFormat(t.index);let h=this.convert({text:s,html:e},a);h=R0(h,l);const u=h.ops.length;let g;u>A0&&(g=this.quill.addContainer("ql-loading-tips"),g.innerHTML=An.pasting);const f={index:t.index,length:t.length,fix:0},[p,b]=this.quill.getLine(t.index),v=Rc.call(this),y=w=>{let C=w;const L=C.ops.find(U=>U.attributes&&(U.attributes.blockquote||U.attributes["code-block"]));if(v){const U=p.domNode.closest("table.quill-better-table"),_=m.find(U),H=this.quill.getIndex(_),Z=_.length(),$=H+Z,Ft=getSelection().anchorNode;if(L)return;if(a["table-col"])f.index=H-1,f.length=0;else if(t.index===$-1&&Ft instanceof HTMLDivElement&&Ft.classList.contains("quill-better-table-wrapper")){const tt=C.filter(Yt=>Yt.attributes&&Yt.attributes.list);if(tt&&tt.length)return;f.index=$,f.length=0}else{if(!a["table-cell-line"])return;C={ops:C.filter((tt,Yt)=>{const Es=/^[\n\r]+$/,de=tt.insert&&typeof tt.insert=="string"&&Es.test(tt.insert),Ge=de&&tt.attributes&&tt.attributes["table-cell-line"],z=de&&tt.attributes&&tt.attributes.list,Ls=de&&!Ge&&!z,xs=de&&tt.attributes&&tt.attributes["table-col"],At=Ge&&Yt===u-1;return!Ls&&!xs&&!At})},C=I0(new yn(C.ops),a["table-cell-line"])}}const x=C.ops[C.ops.length-1];x&&x.attributes&&x.attributes.list&&b===0&&p&&p.cache.length===1&&(p.statics.blotName==="block"||p.statics.blotName==="table-cell-line")&&(!p.next||p.next.statics.blotName!=="table-view")&&(f.index=this.quill.getIndex(p),f.length=p.length(),f.fix=1);const M=new yn().retain(f.index).delete(f.length).concat(C);setTimeout(()=>{this.quill.updateContents(M,m.sources.USER),this.quill.setSelection(M.length()-f.length-f.fix,m.sources.SILENT),this.quill.scrollIntoView(),g&&g.remove()})};(async()=>{try{const[w,C,L,x]=this.flipFilesArray(await this.extractFilesFromDelta(h,n,o));if(w.length===0)y(h);else if(this.quill.options.editorPaste&&this.quill.options.editorPaste.observers.length!==0)this.quill.options.editorPaste.emit({files:w,callback:({code:T,message:q,data:M})=>{if(T===0){const{imageUrls:U}=M;h=ta(h,U,C),y(h)}else console.error("error message:",q)}});else{if(w[0]!==void 0||L.length===0){const T=await this.files2urls(w,C,L,h,x);h=ta(h,T,C)}y(h)}}catch{throw new Error("Paste failed.")}})()}files2urls(t,e,s,n,r){return Promise.all(t.map((o,l)=>{const a=/^((http|https)\:)?\/\/([\s\S]+)$/;if(!e[l]&&s[l]&&a.test(s[l]))return new Promise(h=>{h(s[l])});if(this.quill.options.uploadOption.imageUploadToServer){const h=this.getImgSelection(n,r[l]);this.quill.uploader.upload(h,[o])}else return o0(o)}))}flipFilesArray(t){const e=[],s=[],n=[],r=[];return t.forEach(o=>{if(o){const[l,a,h,u]=o;e.push(l),s.push(a),n.push(h),(u===0||u)&&r.push(u)}}),[e,s,n,r]}convertHexToBase64(t){return btoa(t.match(/\w{2}/g).map(e=>String.fromCharCode(parseInt(e,16))).join(""))}extractImageDataFromRtf(t){if(!t)return[];const e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,s=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),n=t.match(s),r=[];if(n)for(const o of n){let l="";o.includes("\\pngblip")?l="image/png":o.includes("\\jpegblip")&&(l="image/jpeg"),l&&r.push({hex:o.replace(e,"").replace(/[^\da-fA-F]/g,""),type:l})}return r}extractFilesFromDelta(t,e,s){let n=-1;return Promise.all(t.map(async r=>{var u;n++;const o=r.insert.image;if(!o||o.hasExisted)return;let l,a=!1,h;try{const g=s.length&&s.shift(),f=g&&`data:${g.type};base64,${this.convertHexToBase64(g.hex)}`;h=n,l=await $l(f||o.src||o)}catch{if(e.length!==0){const f=e[0],p=((u=f.type)==null?void 0:u.indexOf("image"))===-1?"image/png":f.type,b=f.slice(0,f.size,p);l=new File([b],`image-CORS-${new Date().getTime()}.png`,{type:p})}else if(!o.src.startsWith("http")){const f=An["img-error"]==="Image Copy Error"?b0:m0;l=await $l(f,!0),a=!0}}return[l,a,o,h]}))}getImgSelection(t,e){let s=0;return t.ops.every((r,o)=>o===e?!1:(typeof r.insert=="string"&&(s+=r.insert.length),!0)),{index:s,length:0}}}function I0(i,t){const{cell:e,colspan:s,row:n,rowspan:r}=t;return i.reduce((l,a)=>(a.insert&&typeof a.insert=="string"?On(a.insert).forEach(u=>{u===`
292
- `?l.insert(`
293
- `,{...a.attributes,"table-cell-line":{row:n,cell:e,rowspan:r,colspan:s}}):(u=u.endsWith("\r")?u.slice(0,-1):u,l.insert(u,Go(a.attributes,["table","table-cell-line"])))}):l.insert(a.insert,a.attributes),l),new yn)}function O0(i){const t=n=>/^(\u3000|\u0020){1}$/.test(n);let e="",s=!1;for(const n of i)t(n)&&!s?e+=" ":(e+=n,s=!0);return e}function R0(i,t){return i.reduce((e,s)=>{if(t&&s.attributes&&s.attributes.color&&!s.attributes.background){const n=s.attributes.color,r=n.indexOf("#")===0?r0(n):n;(r===t||r==="rgba(255,255,255,1)"&&t==="rgba(0, 0, 0, 0)")&&delete s.attributes.color}if(s.insert&&typeof s.insert=="string"){const n=On(s.insert);let r="";n.forEach(o=>{r+=O0(o)}),e.insert(r,s.attributes)}else e.insert(s.insert,s.attributes);return e},new yn)}function M0(i){let t=i;t=t.substring(t.indexOf("<html "),t.length),t=t.substring(0,t.lastIndexOf("</html>")+7);const e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e);const s=e.contentDocument||e.contentWindow.document;s.open(),s.write(t),s.close();let n,r;const o=s.styleSheets[s.styleSheets.length-1].cssRules;for(let a=0;a<o.length;a++)if(o[a].selectorText!=="")for(n=s.body.querySelectorAll(o[a].selectorText),r=0;r<n.length;r++)n[r].style.cssText+=o[a].style.cssText;const l=s.firstChild.outerHTML;return e.parentNode.removeChild(e),l}const k0=m.imports["blots/embed"],B0=m.imports["blots/inline"],ia=["alt","height","width","image-id"],Bc=class Dc extends k0{static create(t){const e=super.create(t),s=typeof t=="string"?t:t.src;if(s){const n=this.sanitize(s);n!=null&&n.startsWith("data:image")||(e.dataset.src=n),e.setAttribute("src",n)}return e.setAttribute("data-image-id","img"+Dc.ID_SEED++),e.setAttribute("devui-editorx-image",!0),e.style.verticalAlign="baseline",e}static formats(t){return ia.reduce((e,s)=>(t.hasAttribute(s)&&(e[s]=t.getAttribute(s)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static register(){/Firefox/i.test(navigator.userAgent)&&setTimeout(()=>{document.execCommand("enableObjectResizing",!1,null)},1)}static sanitize(t){return Rn(t,["http","https","data"])?t:"//:0"}static value(t){const e={},s=t.getAttribute("src");return e.src=this.sanitize(s),e.hasExisted=t.getAttribute("devui-editorx-image"),e.imageId=t.dataset.imageId,e}format(t,e){ia.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}unWrap(){this.parent.replaceWith(this)}wrap(t,e){const s=typeof t=="string"?this.scroll.create(t,e):t;if(B(this.parent)||this.parent.insertBefore(s,this.next||void 0),typeof s.appendChild!="function")throw new Error(`Cannot wrap ${t}`);return s.appendChild(this),s}};Bc.ID_SEED=0;let Mn=Bc;Mn.blotName="image";Mn.tagName="IMG";class yi extends B0{constructor(t,e){super(t,e),e.setAttribute("contenteditable",!1)}}yi.blotName="image-container";yi.className="ql-image-container";yi.tagName="DIV";yi.allowedChildren=[Mn];class Pc{constructor(t){this.formatter=t}onCreate(){}onDestroy(){}onUpdate(){}}const D0=40,na=i=>i.currentStyle?i.currentStyle:window.getComputedStyle(i,null);class Hc extends Pc{constructor(t){super(t),this.onMouseDown=e=>{if(!(e.target instanceof HTMLElement)||(this.dragHandle=e.target,this.setCursor(this.dragHandle.style.cursor),!this.formatter.currentSpec))return;const s=this.formatter.currentSpec.getTargetElement();if(!s)return;e.preventDefault();const n=s.getBoundingClientRect();this.dragStartX=e.clientX,this.preDragWidth=n.width,this.targetRatio=n.height/n.width;let r,o;const l=this.findTd(s,0);l?(r=l,o=na(l)):(r=this.formatter.quill.root,o=na(r)),this.maxWidth=r.clientWidth-parseFloat(o.paddingRight)-parseFloat(o.paddingLeft),document.addEventListener("mousemove",this.onDrag),document.addEventListener("mouseup",this.onMouseUp)},this.findTd=(e,s)=>{if(s>3)return null;if(e.tagName.toUpperCase()==="TD")return e;{const r=e.parentElement;return r?this.findTd(r,s+=1):null}},this.onDrag=e=>{if(!this.formatter.currentSpec)return;const s=this.formatter.currentSpec.getTargetElement();if(!s)return;const n=e.clientX-this.dragStartX;let r=0;this.dragHandle===this.topLeftHandle||this.dragHandle===this.bottomLeftHandle?r=Math.round(this.preDragWidth-n):r=Math.round(this.preDragWidth+n);let o=this.minWidth;this.maxWidth<o&&(o=this.maxWidth),r>this.maxWidth?r=this.maxWidth:r<o&&(r=o);const l=this.targetRatio*r;s.setAttribute("width",`${r}`),s.setAttribute("height",`${l}`),this.formatter.update()},this.onMouseUp=e=>{this.setCursor(""),document.removeEventListener("mousemove",this.onDrag),document.removeEventListener("mouseup",this.onMouseUp)},this.topLeftHandle=this.createHandle("top-left","nwse-resize"),this.topRightHandle=this.createHandle("top-right","nesw-resize"),this.bottomRightHandle=this.createHandle("bottom-right","nwse-resize"),this.bottomLeftHandle=this.createHandle("bottom-left","nesw-resize"),this.dragHandle=null,this.dragStartX=0,this.preDragWidth=0,this.targetRatio=0,this.maxWidth=0,this.minWidth=D0}onCreate(){const t=this.formatter.currentSpec.getTargetElement();this.formatter.overlay.setAttribute("data-image",t.src),this.formatter.overlay.appendChild(this.topLeftHandle),this.formatter.overlay.appendChild(this.topRightHandle),this.formatter.overlay.appendChild(this.bottomRightHandle),this.formatter.overlay.appendChild(this.bottomLeftHandle),this.repositionHandles(this.formatter.options.resize.handleStyle)}onDestroy(){this.setCursor(""),this.formatter.overlay.removeChild(this.topLeftHandle),this.formatter.overlay.removeChild(this.topRightHandle),this.formatter.overlay.removeChild(this.bottomRightHandle),this.formatter.overlay.removeChild(this.bottomLeftHandle)}createHandle(t,e){const s=document.createElement("div");return s.classList.add(this.formatter.options.resize.handleClassName),s.setAttribute("data-position",t),s.style.cursor=e,this.formatter.options.resize.handleStyle&&Object.assign(s.style,this.formatter.options.resize.handleStyle),s.addEventListener("mousedown",this.onMouseDown),s}repositionHandles(t){let e="0px",s="0px";t&&(t.width&&(e=`${-parseFloat(t.width)/2}px`),t.height&&(s=`${-parseFloat(t.height)/2}px`)),Object.assign(this.topLeftHandle.style,{left:e,top:s}),Object.assign(this.topRightHandle.style,{right:e,top:s}),Object.assign(this.bottomRightHandle.style,{right:e,bottom:s}),Object.assign(this.bottomLeftHandle.style,{left:e,bottom:s})}setCursor(t){if(document.body&&(document.body.style.cursor=t),this.formatter.currentSpec){const e=this.formatter.currentSpec.getOverlayElement();e&&(e.style.cursor=t)}}}class Uc extends Pc{constructor(){super(...arguments),this.onKeyUp=t=>{if(this.formatter.currentSpec&&(t.keyCode===46||t.keyCode===8)){const e=m.find(this.formatter.currentSpec.getTargetElement());e&&e.deleteAt(0),this.formatter.hide()}}}onCreate(){document.addEventListener("keyup",this.onKeyUp,!0),this.formatter.quill.root.addEventListener("input",this.onKeyUp,!0)}onDestroy(){document.removeEventListener("keyup",this.onKeyUp),this.formatter.quill.root.removeEventListener("input",this.onKeyUp)}}class P0{constructor(t){this.formatter=t}init(){}getActions(){return[Hc,Uc]}getTargetElement(){return null}getOverlayElement(){return this.getTargetElement()}setSelection(){this.formatter.quill.setSelection(null)}onHide(){}}class Fc extends P0{constructor(t){super(t),this.onClick=e=>{const s=e.target;!(s instanceof HTMLElement)||s.tagName!=="IMG"||(e.stopPropagation(),this.img=s,this.formatter.show(this))},this.img=null}init(){this.formatter.quill.root.addEventListener("click",this.onClick)}getTargetElement(){return this.img}onHide(){this.img=null}}const H0={specs:[Fc],overlay:{className:"blot-formatter__overlay",style:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"}},align:{attribute:"data-align",aligner:{applyStyle:!0},icons:{left:`
294
- <svg viewbox="0 0 18 18">
295
- <line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"></line>
296
- <line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"></line>
297
- <line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"></line>
298
- </svg>
299
- `,center:`
300
- <svg viewbox="0 0 18 18">
301
- <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
302
- <line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>
303
- <line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>
304
- </svg>
305
- `,right:`
306
- <svg viewbox="0 0 18 18">
307
- <line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
308
- <line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"></line>
309
- <line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"></line>
310
- </svg>
311
- `},toolbar:{allowDeselect:!0,mainClassName:"blot-formatter__toolbar",mainStyle:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default",zIndex:"1"},buttonClassName:"blot-formatter__toolbar-button",addButtonSelectStyle:!0,buttonStyle:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},svgStyle:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"}}},resize:{handleClassName:"blot-formatter__resize-handle",handleStyle:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"}}};class jc extends Fc{constructor(t){super(t),this.imageMouseout=e=>{if(e.target.nodeName==="IMG"||e.target.classList.contains("blot-formatter__overlay")){const s=e.target;l0(e,s)||this.removeImagePreviewOverlay()}},this.onClick=e=>{var o;const s=e.target,n=this.formatter.quill.options.readOnly;if(!(s instanceof HTMLElement)||s.tagName!=="IMG"||n)return;this.img=s,this.oldRootScrollTop=this.formatter.quill.root.scrollTop,this.resetOverlayMarginTop(),this.formatter.show(this);const r=(o=this.formatter.currentSpec)==null?void 0:o.getTargetElement();if(r){r.classList.add("current-select-img");const l=this.formatter.quill,a=l.scroll.find(this.img),h=l.getIndex(a),u=a.length();l.setSelection(h,u)}},this.formatter=t,this.oldRootScrollTop=this.formatter.quill.root.scrollTop,this.editorElem=this.formatter.quill.container,this.formatter.quill.root===this.formatter.quill.scrollingContainer&&this.formatter.quill.root.addEventListener("scroll",this.handleQuillRootScroll.bind(this))}handleQuillRootScroll(){this.formatter.overlay&&(this.formatter.overlay.style.marginTop=`${this.oldRootScrollTop-this.formatter.quill.root.scrollTop}px`)}init(){this.editorElem.addEventListener("mouseover",this.imageMouseOver.bind(this)),this.editorElem.addEventListener("mouseout",this.imageMouseout),super.init()}getActions(){return[Uc,Hc]}imageMouseOver(t){var n;const e=t.target,s=(n=e==null?void 0:e.classList)==null?void 0:n.contains("blot-formatter__overlay");e.nodeName}addImagePreviewOverlay(t){const e=t.target,{left:s,width:n}=e.getBoundingClientRect(),r=e.getBoundingClientRect().top+this.formatter.quill.container.scrollTop,{left:o,top:l}=t.currentTarget.getBoundingClientRect(),a=s-o,h=r-l,u=24,g=15,f=a+n-u-g,p=h+g,b=`
312
- left: ${f}px;
313
- top: ${p}px;
314
- width: ${u}px;
315
- `,v=e.src||e.getAttribute("data-image"),y=e.getAttribute("data-image-id");t.currentTarget.querySelector(".image-preview__overlay")||t.currentTarget.insertAdjacentHTML("beforeend",`
316
- <div class="image-preview__overlay" style="${b}">
317
- <i class="icon-maxmize" id="btn-image-preview" data-image-id="${y}"
318
- data-image="${v}"></i>
319
- </div>
320
- `)}removeImagePreviewOverlay(){const t=this.editorElem.querySelector(".image-preview__overlay");t&&t.parentNode.removeChild(t)}onHide(){this.removeImagePreviewOverlay(),super.onHide()}resetOverlayMarginTop(){this.formatter.overlay&&(this.formatter.overlay.style.marginTop="0px")}}const U0=(i,t)=>t;class F0{constructor(t,e={}){this.onClick=()=>{this.hide()},this.hideImageOverlay=s=>{var o;const n=s.target;((o=n==null?void 0:n.classList)==null?void 0:o.contains("blot-formatter__overlay"))||this.hide(),document.body.removeEventListener("click",this.hideImageOverlay)},this.quill=t,this.options=ne(H0,e,{arrayMerge:U0}),this.currentSpec=null,this.actions=[],this.overlay=document.createElement("div"),this.overlay.classList.add(this.options.overlay.className),this.options.overlay.style&&Object.assign(this.overlay.style,this.options.overlay.style),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.quill.root.addEventListener("click",this.onClick),this.specs=this.options.specs.map(s=>new s(this)),this.specs.forEach(s=>s.init())}static register(){m.register("formats/image",Mn,!0),m.register("formats/image-container",yi,!0),m.register("modules/image-spec",jc,!0)}show(t){this.currentSpec=t,this.currentSpec.setSelection(),this.setUserSelect("none"),this.quill.root.parentNode.appendChild(this.overlay),this.repositionOverlay(),this.createActions(t);const e=t.getTargetElement(),s=window,n=s.MutationObserver||s.WebKitMutationObserver||s.MozMutationObserver,r=e.parentNode;this.observer=new n(o=>{for(const l of o)l.target.querySelector("img")&&this.repositionOverlay()}),this.observer.observe(r,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0,subtree:!0}),document.body.addEventListener("click",this.hideImageOverlay,!0)}hide(){if(!this.currentSpec)return;const t=this.currentSpec.getTargetElement();t&&t.classList.remove("current-select-img"),this.currentSpec.onHide(),this.currentSpec=null,this.quill.root.parentNode.removeChild(this.overlay),this.overlay.style.setProperty("display","none"),this.setUserSelect(""),this.destroyActions()}update(){this.repositionOverlay(),this.actions.forEach(t=>t.onUpdate())}createActions(t){this.actions=t.getActions().map(e=>{const s=new e(this);return s.onCreate(),s})}destroyActions(){this.actions.forEach(t=>t.onDestroy()),this.actions=[]}repositionOverlay(){if(!this.currentSpec)return;const t=this.currentSpec.getOverlayElement();if(!t)return;const e=this.quill.root.parentNode,s=t.getBoundingClientRect(),n=e.getBoundingClientRect();Object.assign(this.overlay.style,{display:"block",left:`${s.left-n.left-1+e.scrollLeft}px`,top:`${s.top-n.top+e.scrollTop}px`,width:`${s.width}px`,height:`${s.height}px`})}setUserSelect(t){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(s=>{this.quill.root.style.setProperty(s,t),document.documentElement&&document.documentElement.style.setProperty(s,t)})}}const j0=m.imports["modules/uploader"],z0=m.imports.delta;class zc extends j0{constructor(){super(...arguments),this.isAllowedFileType=(t,e)=>{if(t){const s=e.type.replace(/\/.*$/,"");return(typeof t=="string"?t.split(","):t).some(r=>{const o=r.trim();return o.startsWith(".")?e.name.toLowerCase().indexOf(o.toLowerCase(),e.name.toLowerCase().length-o.toLowerCase().length)>-1:/\/\*$/.test(o)?s===o.replace(/\/.*$/,""):e.type===o})}return!0}}upload(t,e,s){const n=[],r=[],o={file:!1,image:!1},l=this.quill.options.uploadOption,a=l&&{image:l.imageAccept,file:l.fileAccept}||{};Array.from(e).forEach(h=>{if(h){const u=typeof s=="boolean"?s:!/^image\/[-\w.]+$/.test(h.type),g=u?"file":"image",f=a[g]||this.options[g];this.isAllowedFileType(f,h)?(n.push(h),r.push(u)):o[g]=!0}}),this.options.handler.call(this,t,n,r,o)}handleUploadFile(t,e,s){const n=this.enableMultiUpload===!0||this.enableMultiUpload.file;this.editorElem.parentElement.querySelector(".ql-file"),this.fileChange.emit({operation:"upload",data:n?{files:e}:{file:e[0]},hasRejectedFile:s,callback:r=>{r&&(n&&Array.isArray(r)?r.forEach((o,l)=>this.insertFileToEditor(t,e[l],o)):this.insertFileToEditor(t,e[0],r))}})}handleUploadImage(t,{file:e,files:s},n){if(this.imageUploadToServer){const r=this.enableMultiUpload===!0||this.enableMultiUpload.image;this.editorElem.parentElement.querySelector(".ql-image");const o={file:e,data:{files:[e]},hasRejectedImage:n,callback:l=>{l&&(r&&Array.isArray(l)?l.forEach(a=>this.insertImageToEditor(t,a)):this.insertImageToEditor(t,l))}};r&&(o.data={files:s}),this.imageUpload.emit(o)}else{const r=s.map(o=>new Promise(l=>{const a=new FileReader;a.onload=h=>{l(h.target.result)},a.readAsDataURL(o)}));Promise.all(r).then(o=>{const l=o.reduce((a,h)=>a.insert({image:h}),new z0().retain(t.index).delete(t.length));this.quill.updateContents(l,m.sources.USER),this.quill.setSelection(t.index+o.length,m.sources.SILENT)})}}}zc.DEFAULTS={file:N0,image:v0,enableMultiUpload:!1,handler(i,t,e,s){const n=[],r=[];t.forEach((o,l)=>e[l]?n.push(o):r.push(o)),this.quill.file&&(n.length||s.file)&&this.handleUploadFile(i,n,s.file),(r.length||s.image)&&this.handleUploadImage(i,{file:r[0],files:r},s.image)}};const W0=m.imports["blots/embed"],ra=["id","title","size","lastModified"];let ws=class Ys extends W0{static create(t){const e=super.create(t),s=t.size/1024,n=s?s<1?1:s.toFixed(0):0;e.classList.add("icon-file"),e.setAttribute("contenteditable",!1),e.innerText=`${t.title} (${n} KB)`;const r=Ys.sanitize(t.src);return r&&(e.href=r,e.target="_blank"),ra.forEach(o=>{t[o]&&(e.dataset[o]=t[o])}),e}static value(t){return Ys.getFormats(t)}static formats(t){return Ys.getFormats(t)}static getFormats(t){const e={},s=Ys.sanitize(t.href);return s&&(e.src=s),ra.forEach(n=>{t.dataset[n]&&(e[n]=t.dataset[n])}),e}static sanitize(t){return Rn(t,this.PROTOCOL_WHITELIST)&&t||""}};ws.blotName="file";ws.tagName="A";ws.className="ql-file-item";ws.PROTOCOL_WHITELIST=["http","https"];const V0=typeof global=="object"&&global!==null&&global.Object===Object&&global,K0=typeof globalThis=="object"&&globalThis!==null&&globalThis.Object==Object&&globalThis,X0=typeof self=="object"&&self!==null&&self.Object===Object&&self,Ji=K0||V0||X0||Function("return this")();function _0(i){const t=typeof i;return i!=null&&(t==="object"||t==="function")}function G0(i,t){if(i.length!==t.length)return!1;for(let e=0;e<i.length;e++)if(i[e]!==t[e])return!1;return!0}function Z0(i,t){let e=Object.keys(i),s=Object.keys(t);if(s.length!==e.length)return!1;for(let n=0;n<=e.length-1;n++){let r=e[n];if(!s.includes(r)||!Wc(t[r],i[r]))return!1}return!0}function Wc(i,t){return i===t?!0:i instanceof Array&&t instanceof Array?G0(i,t):i instanceof Function||t instanceof Function?!1:i instanceof Object&&t instanceof Object?Z0(i,t):!1}function $i(i,t,e){return t=t>0?t:0,e=String(typeof e<"u"&&typeof e!="object"?e:" "),i=i==null?"":String(i),i.length>=t?String(i):(t=t-i.length,t>e.length&&(e+=e.repeat(t/e.length)),e.slice(0,t)+String(i))}const Q0=m.imports.delta;class Y0{constructor(t,e){this.quill=t,this.file=e;const s=m.find(e),n=this.quill.getIndex(s),[r,o]=this.quill.scroll.descendant(ws,n),l=r&&r.length();this.fileRange=new Gt(n-o,l);const a=Number(this.file.dataset.lastModified);this.formatDate(a),this.template=[`<a class="ql-last-modified-date" href="${this.file.href}" target="_blank">${this.file.href}</a>`,'<span class="ql-split"></span>','<a class="ql-file-download"><i class="icon-download"></i></a>','<a class="ql-file-delete"><i class="icon-delete"></i></a>'].join(""),this.createFileBar()}createFileBar(){this.domNode=document.createElement("div"),this.domNode.className="ql-file-bar",this.domNode.innerHTML=this.template;const t=this.domNode.querySelector("a.ql-file-preview");t&&t.addEventListener("click",n=>{this.operateFile(n,"view")});const e=this.domNode.querySelector("a.ql-file-download");e&&e.addEventListener("click",n=>{this.operateFile(n,"download")});const s=this.domNode.querySelector("a.ql-file-delete");s&&s.addEventListener("click",n=>{this.operateFile(n,"delete");const r=new Q0().retain(this.fileRange.index).delete(this.fileRange.length);this.quill.updateContents(r,m.sources.USER),this.quill.setSelection(this.fileRange.index)}),this.setPosition(),this.quill.root.parentNode.appendChild(this.domNode)}destroy(){this.domNode&&(this.domNode.remove(),this.domNode=null,this.file=null)}operateFile(t,e){t.preventDefault();const s=this.file.dataset.id||"",n=this.file.href;s&&this.quill.emitter.emit("file-change",{operation:e,data:{fileId:s,fileDownloadUrl:n}}),this.destroy()}setPosition(){if(this.domNode&&this.file){const t=this.quill.root.parentNode,e=this.file.querySelector("span"),s=t.getBoundingClientRect(),n=e.getBoundingClientRect();this.css(this.domNode,{left:`${n.left-s.left}px`,top:`${n.top-s.top+10}px`})}}css(t,e){if(typeof e=="object")for(const s in e)s&&(Array.isArray(e[s])?e[s].forEach(n=>{t.style[s]=n}):t.style[s]=e[s])}formatDate(t){const e=new Date(t),s=e.getFullYear(),n=$i(`${e.getMonth()+1}`,2,"0"),r=$i(`${e.getDate()}`,2,"0"),o=$i(`${e.getHours()}`,2,"0"),l=$i(`${e.getMinutes()}`,2,"0");return isNaN(s)?"--":`${s}/${n}/${r} ${o}:${l}`}}const J0=m.imports["core/module"];class $0 extends J0{constructor(t,e){super(t,e),this.quill=t,t.root.addEventListener("click",s=>this.clickEvent(s),!1)}static register(){m.register("formats/file",ws,!0)}clickEvent(t){t.preventDefault();const e=t.target,s=e.closest("a.ql-file-item");s?(this.fileBar&&this.fileBar.destroy(),this.fileBar=new Y0(this.quill,s)):this.fileBar&&!e.closest(".ql-file-bar")&&(this.fileBar.destroy(),this.fileBar=null)}}const oa=m.imports.parchment,tb=new oa.StyleAttributor("lineheight","line-height",{scope:oa.Scope.INLINE,whitelist:["2","2.5","3","4","5"]}),eb=m.imports["blots/inline"];let dt=class Vc extends eb{static create(t){const e=super.create(t),s=this.sanitize(t);return e.setAttribute("href",s),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return Rn(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t!==this.statics.blotName||[!1,null].indexOf(e)!==-1?super.format(t,e):this.domNode.setAttribute("href",Vc.sanitize(e))}};dt.blotName="link";dt.tagName="A";dt.SANITIZED_URL="about:blank";dt.PROTOCOL_WHITELIST=["http","https","mailto","tel"];dt.className="ql-normal-link";function la(i,t,e=void 0){let s,n,r,o,l,a,h=0,u=!1,g=!1,f=!0;const p=!t&&t!==0&&typeof Ji.requestAnimationFrame=="function";if(typeof i!="function")throw new TypeError("Expected a function");t=+t||0,_0(e)&&(u=!!e.leading,g="maxWait"in e,r=g?Math.max(+e.maxWait||0,t):r,f="trailing"in e?!!e.trailing:f);function b(H){const Z=s,$=n;return s=n=void 0,h=H,o=i.apply($,Z),o}function v(H,Z){return p?(Ji.cancelAnimationFrame(l),Ji.requestAnimationFrame(H)):setTimeout(H,Z)}function y(H){if(p)return Ji.cancelAnimationFrame(H);clearTimeout(H)}function w(H){return h=H,l=v(x,t),u?b(H):o}function C(H){const Z=H-a,$=H-h,Ft=t-Z;return g?Math.min(Ft,r-$):Ft}function L(H){const Z=H-a,$=H-h;return a===void 0||Z>=t||Z<0||g&&$>=r}function x(){const H=Date.now();if(L(H))return T(H);l=v(x,C(H))}function T(H){return l=void 0,f&&s?b(H):(s=n=void 0,o)}function q(){l!==void 0&&y(l),h=0,s=a=n=l=void 0}function M(){return l===void 0?o:T(Date.now())}function U(){return l!==void 0}function _(...H){const Z=Date.now(),$=L(Z);if(s=H,n=this,a=Z,$){if(l===void 0)return w(a);if(g)return l=v(x,t),b(a)}return l===void 0&&(l=v(x,t)),o}return _.cancel=q,_.flush=M,_.pending=U,_}class Kc extends _o{constructor(t,e){super(t,e),this.isInputFocus=!1,this.isHover=!1,this.debouncedHideToolTip=la(this.hideToolTip,300),this.debouncedShowToolTip=la(this.showToolTip,300)}shouldHide(){return!this.isHover&&!this.isInputFocus}hideToolTip(){this.shouldHide()&&this.hide()}showToolTip(t,e,s){this.shouldHide()||this.edit(t,e,s)}handleMouseLeave(){this.isHover=!1,this.debouncedHideToolTip()}handleMouseEnter(t){if(!this.root.classList.contains("ql-hidden"))return;this.isInputFocus&&this.save(),this.isHover=!0;const s=t.target,n=dt.formats(s);if(n.startsWith("#"))return;const r=m.find(s),o=this.quill.getIndex(r),[l,a]=this.quill.scroll.descendant(dt,o),h=l&&l.length();this.linkRange=new Gt(o-a,h),this.debouncedShowToolTip("link",n,this.linkRange)}listen(){super.listen(),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(!B(this.linkRange)){const e=this.linkRange;this.restoreFocus(),this.quill.formatText(e,"link",!1,N.sources.API),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.root.addEventListener("mouseover",t=>{(t.target.tagName.toUpperCase()!=="A"||!t.target.classList.contains(dt.className))&&!t.target.closest(`a.${dt.className}`)||this.handleMouseEnter(t)},!1),this.quill.root.addEventListener("mouseout",t=>{t.target.tagName.toUpperCase()!=="A"&&!t.target.closest(`a.${dt.className}`)||this.handleMouseLeave()},!1),this.root.addEventListener("mouseenter",t=>{this.isHover=!0},!1),this.root.addEventListener("mouseleave",this.handleMouseLeave.bind(this),!1),this.root.querySelector("a.ql-preview").addEventListener("click",t=>{const e=dt.sanitize(this.textbox.value);window.open(e,"_blank"),t.preventDefault()}),this.root.querySelector('input[type="text"]').addEventListener("focus",t=>{this.isInputFocus=!0}),this.root.querySelector('input[type="text"]').addEventListener("blur",t=>{this.isInputFocus=!1,this.save()}),this.quill.on(N.events.SELECTION_CHANGE,(t,e,s)=>{if(!B(t)){if(s===N.sources.USER){const[n,r]=this.quill.scroll.descendant(dt,t.index);if(!B(n)){this.linkRange=new Gt(t.index-r,n.length());const o=dt.formats(n.domNode);o.startsWith("#")||this.edit("link",o,this.linkRange);return}}this.shouldHide()&&this.hide()}}),this.quill.on(N.events.TEXT_CHANGE,(t,e,s)=>{const n=this.quill.getSelection(),r=n&&n.index;setTimeout(()=>{this.quill.scroll.descendant(dt,r)[0]||this.handleMouseLeave()})})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root,{autoProtocol:s}=this.quill.options;s&&(t=this.addHttpProtocol(t)),this.linkRange?(this.quill.formatText(this.linkRange,"link",t,N.sources.USER),this.restoreFocus()):(this.restoreFocus(),this.quill.format("link",t,N.sources.USER)),this.quill.root.scrollTop=e;break}case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(!B(e)){const s=e.index+e.length;this.quill.insertEmbed(s,this.root.getAttribute("data-mode"),t,N.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(s+1," ",N.sources.USER),this.quill.setSelection(s+2,N.sources.USER)}break}}}position(t){const e=t.left,s=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`,this.root.style.top=`${s}px`,this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect();let o=0;if(r.right>n.right&&(o=n.right-r.right,this.root.style.left=`${e+o}px`),r.left<n.left&&(o=n.left-r.left,this.root.style.left=`${e+o}px`),r.bottom>n.bottom){const l=r.bottom-r.top,a=t.bottom-t.top+l,h=s-a;this.root.style.top=`${h<0?this.quill.root.scrollTop+t.top:h}px`,this.root.classList.add("ql-flip")}return o}edit(t="link",e=null,s){this.linkRange=s||this.quill.selection.savedRange,this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),B(e)?t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""):this.textbox.value=e,this.position(this.quill.getBounds(s||this.quill.selection.savedRange)),this.textbox.value===""&&this.textbox.focus(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}show(){super.show(),this.root.removeAttribute("data-mode")}addHttpProtocol(t){let e=t;return t?(/^(?:f|ht)tps?\:\/\//.test(t)||(e=`http://${t}`),e):""}}Kc.TEMPLATE=[`<input type="text" data-formula="e=mc^2" data-link="${An.linkplaceholder}" data-video="Embed URL" style="width: 225px;">`,'<span class="ql-split"></span>','<a class="ql-preview"><i class="icon-share"></i></a>','<a class="ql-remove"><i class="icon-delete"></i></a>'].join("");const aa=m.imports["ui/icons"],sb=m.imports["themes/snow"],ib=m.imports["core/module"];class nb extends ib{static register(){m.register("blots/link",dt,!0)}constructor(t,e){super(t,e)}}sb.prototype.extendToolbar=function(i){i.container.classList.add("ql-snow"),this.buildButtons(i.container.querySelectorAll("button"),aa),this.buildPickers(i.container.querySelectorAll("select"),aa),this.tooltip=new Kc(this.quill,this.options.bounds),i.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,e)=>{i.handlers.link.call(i,!e.format.link)})};const Xc="mention-link/remove",ca="mentionChar",_c="@",rb=m.imports["blots/embed"];class ui extends rb{constructor(t,e,s){super(t,e,s),this.mentionData=s}static create(t){const e=super.create(t);return e.dataset.mentionId=t.name||t.mention&&t.mention[t.searchKey||"name"]||"",e.setAttribute("title",t.text),e.setAttribute(ca,t.char),e.textContent=t.char+t.text,e}static value(t){const e=t.getAttribute(ca)||_c,s=t.getAttribute("title"),n=t.dataset.mentionId;return{char:e,text:s,name:n}}value(){return super.value()}remove(){return this.scroll.emitter.emit(Xc,this.mentionData),super.remove()}}ui.blotName="mention";ui.tagName="span";ui.className="ql-mention-link";const{Scope:ob}=m.imports.parchment,ha=m.imports.delta;class lb{constructor(t,e){if(this.quill=t,this.activeMentionIndex=0,this.searchTerm="",this.needInsertBr=!0,this.defaultOptions={defaultLink:"#",target:"_blank",mentionChar:_c,maxHeight:200,renderMentionItem(r){let o=r.name||r.id;this.itemKey&&(o=r[this.itemKey]);const l=document.createElement("SPAN");return l.textContent=o,l},renderMentionText(r){let o=r.name||r.id;return this.itemKey&&(o=r[this.itemKey]),`${o}`},containerClass:"ql-mention-list-container",listClass:"ql-mention-list",listHideClass:"ql-mention-list--hide",itemClass:"ql-mention-item",itemActiveClass:"ql-mention-item--active",itemKey:"name",searchKey:"name",dataAttributes:["id"],select(r){},remove(r){}},this.handleTextChange=(r,o,l)=>{setTimeout(()=>{if(m.sources.USER===l){const a=this.quill.getSelection();if(!a)return;const h=this.latestCaretPos=a.index,g=this.quill.getContents().reduce((p,b)=>typeof b.insert=="string"?p+=b.insert:p+=" ",""),f=g.lastIndexOf(this.options.mentionChar);if(f>-1){const p=g.substring(f+this.options.mentionChar.length,h);this.searchTerm=p,"".startsWith.call(p," ")?this.hideMentionList():(this.latestMentionCharPos=f,this.searchMentionListByTerm(p))}else this.hideMentionList()}})},this.handleArrowUpKey=()=>this.isOpen()?(this.activeMentionIndex=(this.activeMentionIndex+this.latestMentionList.length-1)%this.latestMentionList.length,this.highlightMentionItem(this.activeMentionIndex),!1):!0,this.handleArrowDownKey=()=>this.isOpen()?(this.activeMentionIndex=(this.activeMentionIndex+1)%this.latestMentionList.length,this.highlightMentionItem(this.activeMentionIndex),!1):!0,this.handleEnterKey=()=>(this.isOpen()&&(this.selectMentionItem(),this.needInsertBr=!1),!0),this.handleEscapeKey=()=>this.isOpen()?(this.hideMentionList(),!1):!0,!e.search){console.warn("please provide a search function!");return}this.options=Object.assign(this.defaultOptions,e);const s=document.createElement("div");s.classList.add(this.options.containerClass),this.mentionListEL=document.createElement("ul"),this.mentionListEL.classList.add(this.options.listClass,this.options.listHideClass),this.mentionListEL.style.cssText+=`
321
- max-height: ${this.options.maxHeight}px;
322
- `,t.on(m.events.TEXT_CHANGE,this.handleTextChange),t.keyboard.addBinding({key:"ArrowUp"},this.handleArrowUpKey),t.keyboard.addBinding({key:"ArrowDown"},this.handleArrowDownKey),t.keyboard.addBinding({key:"Enter"},this.handleEnterKey),t.keyboard.addBinding({key:"Tab"},this.handleEnterKey),t.keyboard.addBinding({key:"Escape"},this.handleEscapeKey),t.keyboard.bindings.Enter.unshift(t.keyboard.bindings.Enter.pop()),t.keyboard.bindings.Tab.unshift(t.keyboard.bindings.Tab.pop()),t.keyboard.bindings.Escape.unshift(t.keyboard.bindings.Escape.pop());const n={key:"Enter",shiftKey:null,handler:(r,o)=>{const l=Object.keys(o.format).reduce((u,g)=>(this.quill.scroll.query(g,ob.BLOCK)&&!Array.isArray(o.format[g])&&(u[g]=o.format[g]),u),{});let a=r.index-this.searchTerm.length,h=new ha().retain(r.index).delete(r.length);this.needInsertBr&&(h=h.insert(`
323
- `,l),a=r.index+1),this.quill.updateContents(h,m.sources.USER),this.quill.setSelection(a,m.sources.SILENT),this.quill.focus(),Object.keys(o.format).forEach(u=>{B(l[u])&&(Array.isArray(o.format[u])||u==="code"||u==="link"||this.quill.format(u,o.format[u],m.sources.USER))}),this.needInsertBr=!0}};t.keyboard.bindings.Enter=t.keyboard.bindings.Enter.map(r=>r.format===void 0&&r.shiftKey===null?n:r),this.on("click",this.handleMouseClick),this.on("mouseover",this.handleMouseEnter),t.emitter.on(Xc,async({mention:r,name:o})=>{const[l]=r&&[r]||await this.options.search(o);this.options.remove(l)}),s.appendChild(this.mentionListEL),t.container.parentElement.insertBefore(s,t.container)}static register(){m.register(ui)}on(t,e){this.mentionListEL.addEventListener(t,s=>{let n=s.target,r;for(;this.mentionListEL.contains(n)&&n!==this.mentionListEL;)n.classList.contains(this.options.itemClass)&&(r=n),n=n.parentElement;r&&e.call(this,r,this.getMentionItemIndex(r))})}getMentionItemIndex(t){return[].reduce.call(this.mentionListEL.children,(e,s,n)=>s===t?n:e,-1)}handleMouseClick(t,e){this.selectMentionItem(e,!0),this.quill.focus()}handleMouseEnter(t,e){this.activeMentionIndex=e,this.highlightMentionItem(e)}getActiveMentionItem(){return this.mentionListEL.querySelector(`.${this.options.itemActiveClass}`)}isOpen(){return!this.mentionListEL.classList.contains(this.options.listHideClass)}async searchMentionListByTerm(t){const e=await this.options.search(t);if(this.latestMentionList=e,!e||e.length===0)return this.hideMentionList();this.showMentionList(e)}showMentionList(t){this.isOpen()||this.mentionListEL.classList.remove(this.options.listHideClass),this.activeMentionIndex=0,this.setMentionListPos(),this.render(t)}hideMentionList(){this.isOpen()&&(this.activeMentionIndex=0,this.mentionListEL.classList.add(this.options.listHideClass))}setMentionListPos(){const t=this.quill.selection.savedRange.index,e=this.quill.getBounds(t),{left:s,top:n}=e,r=this.quill.container,o=r.parentNode,{left:l,top:a}=r.getBoundingClientRect(),{left:h,top:u}=o.getBoundingClientRect(),g=l-h,f=a-u,p=s+g-5,b=n+f+20;this.mentionListEL.style.cssText+=`
324
- left: ${p}px;
325
- top: ${b}px;
326
- `}render(t){const e=document.createElement("div");[].forEach.call(t,(s,n)=>{const r=document.createElement("li");r.classList.add(this.options.itemClass),n===this.activeMentionIndex&&r.classList.add(this.options.itemActiveClass);const o=this.options.renderMentionItem(s);r.insertAdjacentElement("afterbegin",o),e.appendChild(r)}),this.mentionListEL.innerHTML=e.innerHTML}highlightMentionItem(t){const e=this.getActiveMentionItem();e&&e.classList.remove(this.options.itemActiveClass);const s=this.mentionListEL.querySelector(`.${this.options.itemClass}:nth-of-type(${t+1})`);s&&(s.classList.add(this.options.itemActiveClass),this.scrollIntoView(s))}scrollIntoView(t){const e=t;if(e.scrollIntoViewIfNeeded){e.scrollIntoViewIfNeeded(!1);return}if(t.scrollIntoView){t.scrollIntoView(!1);return}}selectMentionItem(t=this.activeMentionIndex,e){const s=this.latestMentionList[t];this.insertMentionBlot(s,e),this.options.select(s),this.hideMentionList()}insertMentionBlot(t,e){const s=this.options.renderMentionText(t),n=new ha().retain(this.latestMentionCharPos).delete(this.latestCaretPos-this.latestMentionCharPos).insert({[ui.blotName]:{char:this.options.mentionChar,text:s,mention:t,link:this.options.defaultLink,target:this.options.target,searchKey:this.options.searchKey}});e?this.quill.updateContents(n,m.sources.USER):this.quill.updateContents(n,m.sources.API),this.quill.setSelection(this.latestMentionCharPos+1,m.sources.API)}}const ab=m.imports["blots/embed"];class kn extends ab{static create(){return super.create()}optimize(){this.prev===null&&this.remove()}length(){return 1}}kn.blotName="soft-break";kn.tagName="BR";kn.className="ql-soft-break";const cb=m.imports["blots/inline"];class Bn extends cb{}Bn.blotName="strike";Bn.tagName="u";Bn.className="ql-custom-strike";const hb="qlrte__op-menu-item",ub="qlrte__op-menu-dividing",db="qlrte__op-menu-subtitle",fb="qlrte__op-menu-color-picker",ua="qlrte__op-menu-color-picker-item",Hr=["width"],ti={width:100},Mt=["row","cell"],mt=["rowspan","colspan"],an={rowspan:1,colspan:1},k=5,Ur=32,da=16,Fr=16,bo=50,cn=29,Ao=["#5170ff","var(--brand-1, #5170ff)"],pb=40,fa=150,gb=205,tn=["left","right","top","bottom"],mb=m.imports["blots/block"];class ve extends mb{static create(t){typeof t=="string"&&(t={value:t});const e=super.create(t.value);return Mt.forEach(s=>{t[s]&&e.setAttribute(`data-${s}`,t[s])}),mt.forEach(s=>{t[s]&&e.setAttribute(`data-${s}`,t[s])}),e}static formats(t){const e={};return e.value=this.tagName.indexOf(t.tagName)+1,mt.concat(Mt).reduce((s,n)=>(t.hasAttribute(`data-${n}`)&&(s[n]=t.getAttribute(`data-${n}`)||void 0),s),e)}format(t,e){Object.prototype.toString.call(e)==="[object Object]"&&(e=e.value);const s=ve.formats(this.domNode),{row:n,cell:r,rowspan:o,colspan:l}=s;t===ve.blotName?e?super.format(t,{value:e,row:n,cell:r,rowspan:o,colspan:l}):n?this.replaceWith("table-cell-line",{row:n,cell:r,rowspan:o,colspan:l}):super.format(t,e):super.format(t,e)}optimize(t){const{row:e,cell:s,rowspan:n,colspan:r}=ve.formats(this.domNode);if(e&&this.parent.statics.blotName!=="table"&&this.wrap("table",{row:e,cell:s,colspan:r,rowspan:n}),this.enforceAllowedChildren(),!B(this.uiNode)&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(B(this.statics.defaultChild))this.remove();else{const o=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(o)}this.cache={}}}ve.blotName="header";ve.tagName=["H1","H2","H3","H4","H5","H6"];const bb=m.imports["blots/block"],Ab=m.imports["blots/container"];class le extends Ab{format(t,e){const{row:s,cell:n,rowspan:r,colspan:o}=this.domNode.dataset;t===le.blotName&&(e?super.format(t,{row:s,cell:n,rowspan:r,colspan:o}):s&&this.replaceWith("table-cell-line",{row:s,cell:n,rowspan:r,colspan:o}))}}le.blotName="list-container";le.tagName="OL";class ae extends bb{constructor(t,e){super(t,e);const s=m.find(t.domNode.parentNode),n=s.getSelection();if(n){const[l]=s.getLine(n.index),a=l.domNode.closest("td");a&&[...Mt,...mt].forEach(h=>a.dataset[h]&&e.setAttribute(`data-${h}`,a.dataset[h]))}const r=e.ownerDocument.createElement("span"),o=l=>{if(!t.isEnabled())return;const{value:a}=this.statics.formats(e,t);a==="checked"?(this.format("list","unchecked"),l.preventDefault()):a==="unchecked"&&(this.format("list","checked"),l.preventDefault())};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o),this.attachUI(r)}static create(t){const e=super.create();return typeof t=="string"?t={value:t}:[...Mt,...mt].forEach(s=>{t[s]&&(e.dataset[s]=t[s])}),e.classList.add(t.value),e}static formats(t){const e={};return e.value=t.classList.item(0)||void 0,[...mt,...Mt].reduce((s,n)=>(t.dataset[n]&&(s[n]=t.dataset[n]),s),e)}static register(){m.register({"formats/list-container":le},!0)}format(t,e){if(t!==ae.blotName){super.format(t,e);return}const s=e&&typeof e=="object"?e.value:e,n=this.domNode.classList[0],r=this.domNode.closest(".editing-select-able"),o=r&&m.find(r),l=this.domNode.querySelectorAll("img[data-image-id]");if(!s||s===n)if(l&&l.length&&l.forEach(a=>{a.style.verticalAlign="baseLine"}),o&&o.statics.blotName==="table"){const a=o.formats();this.replaceWith("table-cell-line",a),this.parent.statics.blotName===le.blotName&&this.parent.unwrap()}else super.format(t,e);else n?this.domNode.className=this.domNode.className.replace(n,s):this.domNode.classList.add(s)}optimize(t){const e=this.prev&&this.prev.domNode.lastChild;if(e&&e.className&&e.className.indexOf("ql-soft-break")>=0){this.domNode.childNodes.forEach((l,a)=>{a>0&&this.prev.domNode.appendChild(l)}),this.remove();return}super.optimize(t);const s=yb(this.parent.domNode),n=ae.formats(this.domNode),r=this.domNode.dataset||[],o=this.domNode.querySelectorAll("img[data-image-id]");if(s.list!==n.value){const l=this.parent.domNode.classList[0];l?this.parent.domNode.className=this.parent.domNode.className.replace(l,n.value):this.parent.domNode.classList.add(n.value)}r.cell&&!s.cell&&([...Mt,...mt].forEach(l=>(n[l]||r[l])&&this.parent.domNode.setAttribute(`data-${l}`,n[l]||r[l])),this.parent.parent.statics.blotName!=="table"&&(delete n.list,this.wrap("table",n))),o&&o.forEach(l=>{l.style.verticalAlign="top"})}}ae.blotName="list";ae.tagName="LI";le.allowedChildren=[ae];ae.requiredContainer=le;function yb(i){const t={};return i.tagName==="OL"&&(t.list=i.classList.item(0)),[...mt,...Mt].reduce((e,s)=>(i.hasAttribute(`data-${s}`)&&(e[s]=i.getAttribute(`data-${s}`)||void 0),e),t)}function P(i,t){if(typeof t=="object")for(const e in t)e&&(Array.isArray(t[e])?t[e].forEach(s=>{i.style[e]=s}):i.style[e]=t[e])}function G(i,t){const e=t.getBoundingClientRect();return{x:(i.x||i.left)-(e.x||e.left)-t.scrollLeft,y:(i.y||i.top)-(e.y||e.top)-t.scrollTop,x1:(i.x||i.left)-(e.x||e.left)-t.scrollLeft+i.width,y1:(i.y||i.top)-(e.y||e.top)-t.scrollTop+i.height,width:i.width,height:i.height}}const vb=function(i){i&&i.parentNode&&i.parentNode.removeChild(i)},pa=function(i,t,e){if(!i)throw new TypeError("Array.from requires an array-like object - not null or undefined");let s=i.length,n=[];for(let r=0;r<s;r++)typeof t=="function"?n.push(t.call(e,i[r])):n.push(i[r]);return n},ga=m.imports["blots/break"],Gc=m.imports["blots/block"],Cs=m.imports["blots/container"];class bt extends Gc{static create(t){const e=super.create(t);return t.tdBgColor&&(e.setAttribute("data-parent-bg",t.tdBgColor),delete t.tdBgColor),Mt.forEach(s=>{const n=s==="row"?Ee:Ae;e.setAttribute(`data-${s}`,t[s]||n())}),mt.forEach(s=>{e.setAttribute(`data-${s}`,t[s]||an[s])}),t.height&&e.setAttribute("height",t.height),e}static formats(t){const e={};return e.list&&(e.list=t.classList.item(0)),Zc(t,e)}toggleAttribute(t,e){e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t)}formatChildren(t,e){this.children.forEach(s=>{s.format&&s.format(t,e),s.domNode.style&&(s.domNode.tagName==="SPAN"&&e?s.domNode.style.backgroundColor=e:s.domNode.style.backgroundColor="initial")})}format(t,e){if([...mt,...Mt,"parent-bg"].indexOf(t)>-1)e?this.domNode.setAttribute(`data-${t}`,e):this.domNode.removeAttribute(`data-${t}`);else if(t==="header"){if(!e)return;const{row:s,cell:n,rowspan:r,colspan:o}=bt.formats(this.domNode);super.format(t,{value:e,row:s,cell:n,rowspan:r,colspan:o})}else super.format(t,e);switch(!0){case t==="cell-bg":this.toggleAttribute("data-cell-bg",e),this.formatChildren(t,e)}}optimize(t){super.optimize(t);const{row:e,cell:s,rowspan:n,colspan:r}=this.domNode.dataset,o=bt.formats(this.domNode),l=this.parent.formats();this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)?this.wrap(this.statics.requiredContainer.blotName,{row:e,cell:s,rowspan:n,colspan:r}):Wc(o,l)||(this.parent.format("row",o.row),this.parent.format("cell",o.cell),this.parent.format("rowspan",o.rowspan),this.parent.format("colspan",o.colspan));const a=this.domNode.getAttribute("height");a&&(this.parent.domNode.style.height=a)}tableCell(){return this.parent}}bt.blotName="table-cell-line";bt.className="qlbt-cell-line";bt.tagName="DIV";class at extends Cs{static create(t={row:Ee()}){const e=super.create(t);return Mt.forEach(s=>{e.setAttribute(`data-${s}`,t[s])}),mt.forEach(s=>{t[s]&&e.setAttribute(s,t[s])}),e}static formats(t){const e={height:void 0,row:void 0};return e.height=t.getAttribute("height")||void 0,t.hasAttribute("data-row")&&(e.row=t.getAttribute("data-row")),t.hasAttribute("data-cell-bg")&&(e["cell-bg"]=t.getAttribute("data-cell-bg")||void 0),mt.reduce((s,n)=>(t.hasAttribute(n)&&(s[n]=t.getAttribute(n)),s),e)}checkMerge(){if(super.checkMerge()&&!B(this.next.children.head)){const t=o=>o.formats&&o.formats()[o.statics.blotName]||{cell:o.domNode.getAttribute("data-cell")},e=t(this.children.head),s=t(this.children.tail),n=t(this.next.children.head),r=t(this.next.children.tail);return e.cell===s.cell&&e.cell===n.cell&&e.cell===r.cell}return!1}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}formats(){const t={};return this.domNode.hasAttribute("data-row")&&(t.row=this.domNode.getAttribute("data-row")),this.domNode.hasAttribute("data-cell")&&(t.cell=this.domNode.getAttribute("data-cell")),mt.reduce((e,s)=>(this.domNode.hasAttribute(s)&&(e[s]=this.domNode.getAttribute(s)),e),t)}toggleAttribute(t,e){e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t)}formatChildren(t,e){this.children.forEach(s=>{s.format(t,e)})}format(t,e){const s=m.find(this.scroll.domNode.parentNode);switch(!0){case mt.indexOf(t)>-1:this.toggleAttribute(t,e);break;case["row","cell"].indexOf(t)>-1:this.toggleAttribute(`data-${t}`,e);break;case t==="background":{this.domNode.querySelectorAll("div.qlbt-cell-line[data-parent-bg]").forEach(r=>r.removeAttribute("data-parent-bg")),this.domNode.style.background="",this.domNode.style.backgroundColor=e,this.children.head.format("parent-bg",e);break}case t==="size":{const n=s.getIndex(this.children.head),r=s.getIndex(this.children.tail)+this.children.tail.length(),o=r-n>0?r-n:0;s.setSelection(n,o,m.sources.USER),s.format(t,e,m.sources.USER),s.setSelection(n)}case t==="cell-bg":this.toggleAttribute("data-cell-bg",e),this.toggleAttribute("data-parent-bg",e),this.formatChildren(t,e),e?this.domNode.style.backgroundColor=e:this.domNode.style.backgroundColor="initial"}}optimize(t){const e=Array.from(this.domNode.childNodes).find(r=>r.getAttribute("data-parent-bg")),s=e&&e.getAttribute("data-parent-bg");s&&s!==this.domNode.style.backgroundColor&&(this.domNode.style.backgroundColor=s);const n=this.domNode.getAttribute("data-row");this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)?this.wrap(this.statics.requiredContainer.blotName,{row:n}):n!==this.parent.formats().row&&this.parent.format("row",n),this.children.forEach(r=>{if(B(r.next))return;const o=this.getFormat(r.domNode),l=this.getFormat(r.next.domNode);if(o.cell!==l.cell){const a=this.splitAfter(r);a&&a.optimize(),this.prev&&this.prev.optimize()}}),super.optimize(t)}getFormat(t){const e={},s=t.childNodes[0];return s&&t.tagName==="OL"&&(e.list=s.classList.item(0)),Zc(t,e)}row(){return this.parent}rowOffset(){return this.row()?-1:this.row().rowOffset()}table(){return this.row()&&this.row().table()}}at.blotName="table";at.tagName="TD";class Xt extends Cs{static create(t){const e=super.create(t);return t.row&&e.setAttribute("data-row",t.row),e}checkMerge(){if(super.checkMerge()&&!B(this.next.children.head)){const t=this.children.head.formats(),e=this.children.tail.formats(),s=this.next.children.head.formats(),n=this.next.children.tail.formats();return t.row===e.row&&t.row===s.row&&t.row===n.row}return!1}formats(){return["row"].reduce((t,e)=>(this.domNode.hasAttribute(`data-${e}`)&&(t[e]=this.domNode.getAttribute(`data-${e}`)),t),{})}format(t,e){this.domNode.setAttribute(`data-${t}`,e)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName),this.children.forEach(e=>{if(B(e.next))return;const s=e.formats(),n=e.next.formats();if(s.row!==n.row){const r=this.splitAfter(e);r&&r.optimize(),this.prev&&this.prev.optimize()}}),super.optimize(t)}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Xt.blotName="table-row";Xt.tagName="TR";class kt extends Cs{}kt.blotName="table-body";kt.tagName="TBODY";class we extends Gc{static create(t){const e=super.create(t);return Hr.forEach(s=>{e.setAttribute(`${s}`,t[s]||ti[s])}),e}static formats(t){return Hr.reduce((e,s)=>(t.hasAttribute(`${s}`)&&(e[s]=t.getAttribute(`${s}`)||void 0),e),{})}format(t,e){Hr.indexOf(t)>-1?this.domNode.setAttribute(`${t}`,e||ti[t]):super.format(t,e)}html(){return this.domNode.outerHTML}}we.blotName="table-col";we.tagName="col";class Ne extends Cs{optimize(t){if(super.optimize(t),this.parent&&this.statics.requiredContainer&&this.parent instanceof this.statics.requiredContainer&&this.parent.updateTableWidth(),this.parent.parent.domNode.className==="quill-better-table-wrapper"&&this.parent.parent.domNode.tagName==="DIV"&&this.parent.domNode.children.length>=2&&this.parent.domNode.children[0].tagName==="COLGROUP"&&this.parent.domNode.children[1].tagName==="TBODY"){let e="",s=0,n=0;for(let o=0;o<this.parent.domNode.children.length;o++)this.parent.domNode.children[o].tagName==="TBODY"?(e===""&&(e=this.parent.domNode.children[o].children[0].getAttribute("data-row")),s=this.findTdColspanInTbody(this.parent.domNode.children[o],e)):this.parent.domNode.children[o].tagName==="COLGROUP"&&(n=this.parent.domNode.children[o].children.length);let r=this.parent.domNode.nextElementSibling;for(;r&&r.tagName==="TABLE";){for(let o=0;o<r.children.length;o++)r.children[o].tagName==="TBODY"&&(s+=this.findTdColspanInTbody(r.children[o],e));r=r.nextElementSibling}if(n<s){let o=s-n;for(let l=0;l<o;l++){let a=document.createElement("col");a.width=this.parent.domNode.children[0].children[this.parent.domNode.children[0].children.length-1].width;let h=document.createElement("br");a.appendChild(h),this.parent.domNode.children[0].appendChild(a),this.parent.domNode.style.width+=a.width}}}}findTdColspanInTbody(t,e){let s=0;for(let n=0;n<t.children.length;n++){if(t.children[n].getAttribute("data-row")!==e)return s;for(let r=0;r<t.children[n].children.length;r++)t.children[n].children[r].colSpan&&(s+=t.children[n].children[r].colSpan)}return s}}Ne.blotName="table-col-group";Ne.tagName="colgroup";class ue extends Cs{constructor(t,e){super(t,e),e.setAttribute("contenteditable",!1),this.updateTableWidth()}static create(){return super.create()}updateTableWidth(){let t=this.colGroup();if(!t)if(this.parent&&this.parent.children.head&&this.domNode.hasAttribute("style"))t=this.parent.children.head.children.head,this.domNode=this.parent.children.head.domNode;else return this.domNode.tagName==="TABLE",void 0;const e=t.children.reduce((s,n)=>{const r=n.formats()[we.blotName];let o=ti.width;return r&&r.width&&(o=parseInt(r.width,10)),s=s+o,s},0);this.domNode.removeAttribute("style"),this.domNode.style.width=`${e}px`,t.next&&setTimeout(()=>{let s=0,n;const r=t.children.length,o=this.descendants(Xt);for(let l=0;l<o.length;l++){const a=o[l].domNode.querySelectorAll("td");if(a.length===r){n=a;break}}t.children.forEach(l=>{if(n&&l.domNode.width==="auto"){const a=getComputedStyle(n[s]).width,h=parseInt(a,10);l.domNode.width=h<ti.width&&ti.width||h}s++})})}cells(t){return this.rows().map(e=>e.children.at(t))}colGroup(){return this.children.head}deleteColumns(t,e=[],s){const[n]=this.descendants(kt);if(B(n)||B(n.children.head))return;const r=this.descendants(at),o=[],l=[];if(r.forEach(a=>{const h=G(a.domNode.getBoundingClientRect(),s);h.x+k>t.x&&h.x1-k<t.x1?o.push(a):h.x<t.x+k&&h.x1>t.x1-k&&l.push(a)}),o.length===r.length)return this.tableDestroy(),!0;e.forEach(()=>{let a=this.colGroup().children.at(e[0]);!a||this.colGroup().children.at(e[0]).domNode!==this.colGroup().domNode.children[e[0]]?this.colGroup().domNode.removeChild(this.colGroup().domNode.children[e[0]]):a.remove()}),o.forEach(a=>{a.remove()}),l.forEach(a=>{const h=parseInt(a.formats().colspan,10);a.format("colspan",h-e.length)}),this.updateTableWidth()}deleteRow(t,e){const[s]=this.descendants(kt);if(B(s)||B(s.children.head))return;const n=this.descendants(at),r=this.descendants(Xt),o=[],l=[],a=[];if(n.forEach(u=>{const g=G(u.domNode.getBoundingClientRect(),e);g.y>t.y-k&&g.y1<t.y1+k?o.push(u):g.y<t.y+k&&g.y1>t.y1-k&&(l.push(u),Math.abs(g.y-t.y)<k&&a.push(u))}),o.length===n.length){this.tableDestroy();return}const h=this.rows().reduce((u,g)=>{const f=G(g.domNode.getBoundingClientRect(),e);return f.y>t.y-k&&f.y1<t.y1+k&&(u+=1),u},0);a.forEach(u=>{const g=G(u.domNode.getBoundingClientRect(),e),f=u.parent.next,b=f.children.reduce((y,w)=>{const C=G(w.domNode.getBoundingClientRect(),e);return g.x1-C.x<k&&(y=w),y},null);f.insertBefore(u,b);const v=f.formats().row;u.format("row",v),u.children.forEach(y=>{y.format("row",v)})}),l.forEach(u=>{const f=parseInt(u.formats().rowspan,10)-h;u.domNode.removeAttribute("style"),u.format("rowspan",f),u.children.forEach(p=>{p.format("rowspan",f)})}),o.forEach(u=>{u.remove()}),r.forEach(u=>{u.children.length===0&&u.remove()})}tableDestroy(){const t=m.find(this.scroll.domNode.parentNode),e=t.getModule("better-table");this.remove(),e.hideTableTools(),t.update(m.sources.USER)}insertCell(t,e,s=""){const n=Ae(),r=t.formats().row,o=this.scroll.create(at.blotName,{...an,row:r});o.domNode.style.backgroundColor=s;const l=this.scroll.create(bt.blotName,{row:r,cell:n});o.appendChild(l),e?t.insertBefore(o,e):t.appendChild(o)}insertColumn(t,e,s=!0,n){const[r]=this.descendants(kt),[o]=this.descendants(Ne),l=this.descendants(we),a=[],h=[],u=[];if(B(r)||B(r.children.head))return;this.descendants(at).forEach(b=>{const v=G(b.domNode.getBoundingClientRect(),n);s?Math.abs(v.x1-t.x1)<k?a.push(b):t.x1-v.x>k&&t.x1-v.x1<-k&&h.push(b):Math.abs(v.x-t.x)<k?a.push(b):t.x-v.x>k&&t.x-v.x1<-k&&h.push(b)}),a.forEach(b=>{const v=s?b.next:b,y=Ae(),w=b.parent,C=w.formats().row,L=b.formats(),x=this.scroll.create(at.blotName,{...an,row:C,rowspan:L.rowspan}),T=this.scroll.create(bt.blotName,{row:C,cell:y,rowspan:L.rowspan});x.appendChild(T),v?w.insertBefore(x,v):w.appendChild(x),u.push(x)});const f=this.scroll.create(we.blotName,!0);let p;return s?p=l[e]&&l[e].next:p=l[e],p?o.insertBefore(f,p):o.appendChild(f),h.forEach(b=>{const v=b.formats().colspan;b.format("colspan",parseInt(v,10)+1),u.push(b)}),u.sort((b,v)=>{const y=b.domNode.getBoundingClientRect().y,w=v.domNode.getBoundingClientRect().y;return y-w}),this.updateTableWidth(),u}insertRow(t,e,s){const[n]=this.descendants(kt);if(B(n)||B(n.children.head))return;const r=this.descendants(at),o=Ee(),l=this.scroll.create(Xt.blotName,{row:o}),a=[],h=[],u=[];r.forEach(p=>{const b=G(p.domNode.getBoundingClientRect(),s);e?Math.abs(b.y1-t.y1)<k?a.push(p):t.y1-b.y>k&&t.y1-b.y1<-k&&h.push(p):Math.abs(b.y-t.y)<k?a.push(p):t.y-b.y>k&&t.y-b.y1<-k&&h.push(p)});const g=(p,b)=>{const v=p.domNode.getBoundingClientRect().x,y=b.domNode.getBoundingClientRect().x;return v-y};a.sort(g),a.forEach(p=>{const b=Ae(),v=p.formats(),y=this.scroll.create(at.blotName,{...an,row:o,cell:b,colspan:v.colspan}),w=this.scroll.create(bt.blotName,{row:o,cell:b,colspan:v.colspan}),C=this.scroll.create(ga.blotName);w.appendChild(C),y.appendChild(w),l.appendChild(y),u.push(y)}),h.forEach(p=>{const b=parseInt(p.formats().rowspan,10);p.format("rowspan",b+1),u.push(p)});const f=this.rows().find(p=>{const b=G(p.domNode.getBoundingClientRect(),s);return e?Math.abs(b.y-t.y-t.height)<k:Math.abs(b.y-t.y)<k});return n.insertBefore(l,f),u.sort(g),u}mergeCells(t,e,s,n,r){const o=e.reduce((h,u,g)=>{if(g!==0)h&&u.moveChildren(h),u.remove();else if(u.format("colspan",n),u.format("rowspan",s),h=u,s>1){const f=cn*s+s-1;(parseInt(u.domNode.style.height,10)||0)<f&&(u.domNode.style.height=`${f}px`)}return h},null),l=o.domNode.getAttribute("data-row"),a=o.children.head.domNode.getAttribute("data-cell");return o.children.forEach(h=>{h.domNode.setAttribute("data-parent-bg",o.domNode.style.backgroundColor),h.children.head.domNode.style&&(h.children.head.domNode.style.backgroundColor=o.domNode.style.backgroundColor),!h.prev||h.domNode.innerText.trim()?(h.format("cell",a),h.format("row",l),h.format("colspan",n),h.format("rowspan",s)):h.remove()}),o}unmergeCells(t,e){let s={},n=1,r=1;t.forEach(o=>{const l=o.domNode.style.backgroundColor;if(s=o.formats(),n=s.rowspan,r=s.colspan,r>1){const a=o.next,h=o.row();o.format("colspan",1),o.domNode.children&&o.domNode.children[0].tagName==="DIV"&&o.domNode.children[0].getAttribute("data-colspan")&&o.domNode.children[0].setAttribute("data-colspan",1);for(let u=r;u>1;u--)this.insertCell(h,a,l)}if(n>1){let a=n,h=o.row().next;for(;a>1;){const u=h.children.reduce((g,f)=>{const p=G(o.domNode.getBoundingClientRect(),e),b=G(f.domNode.getBoundingClientRect(),e);return Math.abs(p.x1-b.x)<k&&(g=f),g},null);for(let g=r;g>0;g--)this.insertCell(h,u,l);a-=1,h=h.next}o.domNode.removeAttribute("style"),o.domNode.children&&o.domNode.children[0].tagName==="DIV"&&o.domNode.children[0].getAttribute("data-rowspan")&&o.domNode.children[0].setAttribute("data-rowspan",1),o.format("rowspan",1)}})}emptyCells(t){t.forEach(e=>{const s=e.formats(),n=this.scroll.create(bt.blotName,{row:s.row||Ee(),cell:s.cell||Ae(),rowspan:s.rowspan,colspan:s.colspan}),r=this.scroll.create(ga.blotName);n.appendChild(r),e.domNode.innerHTML="",e.appendChild(n)})}rows(){const t=this.children.tail;return B(t)?[]:t.children.map(e=>e)}}ue.blotName="ql-table-container";ue.className="quill-better-table";ue.tagName="TABLE";class _e extends Cs{constructor(t,e){super(t,e);const s=m.find(t.domNode.parentNode);s.options.readOnly&&(e.style.overflow="auto"),e.addEventListener("scroll",n=>{const r=s.getModule("better-table");r.columnTool&&(r.columnTool.domNode.scrollLeft=n.target.scrollLeft),r.tableSelection&&r.tableSelection.selectedTds.length>0&&r.tableSelection.repositionHelpLines()},!1)}}_e.blotName="table-view";_e.className="quill-better-table-wrapper";_e.tagName="DIV";_e.allowedChildren=[ue];ue.requiredContainer=_e;ue.allowedChildren=[kt,Ne];kt.requiredContainer=ue;kt.allowedChildren=[Xt];Xt.requiredContainer=kt;Xt.allowedChildren=[at];at.requiredContainer=Xt;at.allowedChildren=[bt,ve,ae,le];bt.requiredContainer=at;Ne.allowedChildren=[we];Ne.requiredContainer=ue;we.requiredContainer=Ne;function Ee(){return`row-${Math.random().toString(36).slice(2,6)}`}function Ae(){return`cell-${Math.random().toString(36).slice(2,6)}`}function Zc(i,t){return mt.concat(Mt).reduce((e,s)=>(i.hasAttribute(`data-${s}`)&&(e[s]=i.getAttribute(`data-${s}`)||void 0),e),t)}class wb{constructor(t,e,s){if(!t)return null;this.table=t,this.quill=e,this.modulesContainer=s,this.domNode=null,this.oldRootScrollTop=this.quill.root.scrollTop,this.initColTool(),this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",this.handleQuillRootScroll.bind(this))}handleQuillRootScroll(){this.domNode&&(this.domNode.style.marginTop=`${this.oldRootScrollTop-this.quill.root.scrollTop}px`)}initColTool(){const t=this.quill.root.parentNode,e=t.getBoundingClientRect(),s=this.table.parentNode.getBoundingClientRect();this.domNode=document.createElement("div"),this.domNode.classList.add("qlbt-table-control-panel"),this.columnCtrlPanel=document.createElement("div"),this.columnCtrlPanel.classList.add("qlbt-column-control-panel"),this.domNode.appendChild(this.columnCtrlPanel),this.leftMask=document.createElement("div"),this.leftMask.classList.add("qlbt-left-mask"),P(this.leftMask,{height:`${s.height+50}px`}),this.domNode.appendChild(this.leftMask),this.rowCtrlPanel=document.createElement("div"),this.rowCtrlPanel.classList.add("qlbt-row-control-panel"),this.domNode.appendChild(this.rowCtrlPanel),this.updateRowToolCells(),this.updateColToolCells(),this.modulesContainer.appendChild(this.domNode),P(this.domNode,{width:"100%",height:`${Fr}px`,left:"0px",top:`${s.top-e.top+t.scrollTop-25}px`})}createToolCell(t){window.quillIsIntable=!0;const e=document.createElement("div"),s=document.createElement("div"),n=document.createElement("div");return t?(e.classList.add("qlbt-row-tool-cell"),s.classList.add("qlbt-row-tool-cell-selector"),n.classList.add("qlbt-row-tool-cell-holder"),P(e,{width:`${da}px`})):(e.classList.add("qlbt-col-tool-cell"),s.classList.add("qlbt-col-tool-cell-selector"),n.classList.add("qlbt-col-tool-cell-holder"),P(e,{height:`${Fr}px`})),e.appendChild(s),e.appendChild(n),e}updateColToolCells(){const t=m.find(this.table);if(!t)return;const e=t.colGroup().children,s=Math.max(Array.from(e).length,t.colGroup().domNode.children.length),n=Array.from(this.columnCtrlPanel.querySelectorAll(".qlbt-col-tool-cell")),r=Math.max(n.length,s);for(let o=0;o<r;o++){let l=e.at(o),a=0;!l||l.domNode!==t.colGroup().domNode.children[o]?(l=t.colGroup().domNode.children[o],a=l?l.width:t.colGroup().domNode.children[o-1].width):a=parseInt(l.formats()[l.statics.blotName].width,10);let h=null;n[o]?n[o]&&o>=s?n[o].remove():(h=n[o],P(h,{"min-width":`${a}px`})):(h=this.createToolCell(!1),this.columnCtrlPanel.appendChild(h),this.addColCellSelectHandler(h),this.addColCellHolderHandler(h),P(h,{"min-width":`${a}px`}))}}updateRowToolCells(){const t=m.find(this.table);if(!t)return;let e=Array.from(t.domNode.querySelectorAll("tr"));e=e.filter(r=>r.children.length);const s=Array.from(this.rowCtrlPanel.querySelectorAll(".qlbt-row-tool-cell")),n=Math.max(s.length,e.length);for(let r=0;r<n;r++){const o=e[r];let l=o&&getComputedStyle(o).height;l==="auto"&&(l=o.querySelector("td").style.height||"30px");let a=o&&parseFloat(l);a<cn&&(a=o&&o.childNodes[0]&&parseFloat(getComputedStyle(o.childNodes[0]).height));let h=null;s[r]?s[r]&&r>=e.length?s[r].remove():(h=s[r],P(h,{height:`${a}px`})):(h=this.createToolCell(!0),this.rowCtrlPanel.appendChild(h),this.addRowCellSelectHandler(h),this.addRowCellHolderHandler(h),P(h,{height:`${a}px`}))}}destroy(){return window.quillIsIntable=!1,this.domNode.remove(),null}addRowCellSelectHandler(t){const e=t.querySelector(".qlbt-row-tool-cell-selector"),s=n=>{n.preventDefault();const r=n.target.parentNode,o=r.getBoundingClientRect(),l=this.quill.root.parentNode.getBoundingClientRect(),a=this.table.getBoundingClientRect(),h=this.quill.getModule("better-table").tableSelection;h.boundary={x:a.left-l.left,x1:a.left-l.left+a.width-2,y:o.top-l.top,y1:o.top-l.top+o.height-1,width:a.width-2,height:o.height-1},h.selectedTds=h.computeSelectedTds(),h.repositionHelpLines(),r.classList.add("qlbt-tool-cell-on"),this.activeToolCell=r};e.addEventListener("click",s,!1)}addRowCellHolderHandler(t){const e=t.querySelector(".qlbt-row-tool-cell-holder");let s=!1,n=0,r=0,o=0,l=0,a={},h={},u=null;const g=b=>{b.preventDefault(),s&&(r=b.clientY,l+r-n>=cn?o=r-n:o=cn-l,P(u,{top:`${h.top+h.height+o}px`}))},f=b=>{b.preventDefault();const y=Array.from(this.domNode.querySelectorAll(".qlbt-row-tool-cell")).indexOf(t),w=Array.from(this.table.querySelectorAll("tr")),C=Array.from(w[y].childNodes),L=C.find(M=>M.getAttribute("rowspan")==="1"&&M.innerText!==`
327
- `);if(s){let M=`${l+o}px`;if(L){C.forEach(H=>H.getAttribute("rowspan")==="1"&&P(H,{height:M}));const _=getComputedStyle(L).height;M=parseInt(_,10)>l+o&&_||M}P(t,{height:M}),C.forEach(_=>_.getAttribute("rowspan")==="1"&&P(_,{height:M}));const U=this.table.parentNode.getBoundingClientRect();P(this.leftMask,{height:`${U.height+50}px`}),n=0,r=0,o=0,l=0,s=!1,e.classList.remove("dragging")}this.quill.root.parentNode.removeEventListener("mousemove",g,!1),document.removeEventListener("mouseup",f,!1),a={},h={},u.remove(),u=null;const x=this.quill.getModule("better-table");x.tableScrollBar.resetTableHeight(this.table);const q=x.tableSelection;q&&q.selectedTds.length&&q.refreshHelpLinesPosition()},p=b=>{b.preventDefault(),this.quill.root.parentNode.addEventListener("mousemove",g,!1),document.addEventListener("mouseup",f,!1),a=this.table.getBoundingClientRect();const v=this.table.parentNode.getBoundingClientRect(),y=a.width>v.width&&v.width||a.width;h=t.getBoundingClientRect(),u=document.createElement("div"),P(u,{position:"fixed",top:`${h.top+h.height}px`,left:`${h.left}px`,zIndex:"100",width:`${y+da+9}px`,height:"1px",backgroundColor:Ao}),this.quill.root.parentNode.appendChild(u),s=!0,n=b.clientY,l=h.height,e.classList.add("dragging")};e.addEventListener("mousedown",p,!1)}addColCellSelectHandler(t){const e=t.querySelector(".qlbt-col-tool-cell-selector"),s=n=>{n.preventDefault();const r=n.target.parentNode,o=r.getBoundingClientRect(),l=this.quill.root.parentNode.getBoundingClientRect(),a=this.table.getBoundingClientRect(),h=this.quill.getModule("better-table").tableSelection;h.boundary={x:o.left-l.left-1,x1:o.left-l.left+o.width-2,y:a.top-l.top,y1:a.top-l.top+a.height-2,width:o.width,height:a.height-2},h.selectedTds=h.computeSelectedTds(),h.repositionHelpLines(),r.classList.add("qlbt-tool-cell-on"),this.activeToolCell=r};e.addEventListener("click",s,!1)}addColCellHolderHandler(t){const e=m.find(this.table),s=t.querySelector(".qlbt-col-tool-cell-holder");let n=!1,r=0,o=0,l=0,a=0,h={},u=null,g={},f=null;const p=y=>{if(y.preventDefault(),n){o=y.clientX,a+o-r>=bo?l=o-r:l=bo-a;let w=g.left+g.width-1+l;u&&(w-=u.left),P(f,{left:`${w}px`})}},b=y=>{y.preventDefault();const C=Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell")).indexOf(t);let L=e.colGroup().children.at(C);if((!L||L.domNode!==e.colGroup().domNode.children[C])&&(L=e.colGroup().domNode.children[C]),n){const x=parseInt(a+l,10);L.format?L.format("width",x):L.width=x,P(t,{"min-width":`${x}px`}),r=0,o=0,l=0,a=0,n=!1,s.classList.remove("dragging")}this.quill.root.parentNode.removeEventListener("mousemove",p,!1),document.removeEventListener("mouseup",b,!1),h={},u=null,g={},f.remove(),f=null,e.updateTableWidth(),setTimeout(()=>{this.updateRowToolCells();const x=this.quill.getModule("better-table");x.tableScrollBar.updateScrollBar();const q=x.tableSelection;q&&q.selectedTds.length&&q.refreshHelpLinesPosition()})},v=y=>{y.preventDefault(),this.quill.root.parentNode.addEventListener("mousemove",p,!1),document.addEventListener("mouseup",b,!1),h=this.table.getBoundingClientRect(),g=t.getBoundingClientRect();let w="fixed",C=g.top,L=g.left+g.width-1;this.quill.root===this.quill.scrollingContainer&&(w="absolute",u=this.quill.root.getBoundingClientRect(),C-=u.top,L-=u.left),f=document.createElement("div"),P(f,{position:w,top:`${C}px`,left:`${L}px`,zIndex:"100",height:`${h.height+Fr+8}px`,width:"1px",backgroundColor:Ao}),this.quill.root.parentNode.appendChild(f),n=!0,r=y.clientX,a=g.width,s.classList.add("dragging")};s.addEventListener("mousedown",v,!1)}colToolCells(){return Array.from(this.domNode.querySelectorAll(".qlbt-col-tool-cell"))}}const ma={copyCells:{text:"Copy Cells",handler(){this.onCopy("copy")}},copyTable:{text:"Copy Table",handler(){this.tableColumnTool.destroy(),this.tableScrollBar.destroy(),this.tableSelection.clearSelection();const i=this.table.cloneNode(!0);i.querySelectorAll("tr[data-row]").forEach(e=>e.removeAttribute("data-row")),i.style.position="fixed",i.style.top=0,i.style.left=0,i.style.clip="rect(0,0,0,0)",document.body.appendChild(i),this.setCopyRange(i),document.execCommand("copy"),i.remove()}},cutCells:{text:"Cut Cells",handler(){this.onCopy("cut")}},emptyCells:{text:"Empty Cells",handler(){const i=m.find(this.table),{selectedTds:t}=this.tableSelection;i.emptyCells(t)}},insertColumnRight:{text:"Insert Column After",handler(){const i=m.find(this.table),t=ba(this.columnToolCells,this.boundary,(s,n)=>Math.abs(s.x+s.width-n.x1)<=k,this.quill.root.parentNode),e=i.insertColumn(this.boundary,t,!0,this.quill.root.parentNode);this.tableColumnTool.updateColToolCells(),this.quill.update(m.sources.USER),this.tableSelection.setSelection(e[0].domNode.getBoundingClientRect(),e[0].domNode.getBoundingClientRect()),setTimeout(()=>this.tableScrollBar.updateScrollBar())}},insertColumnLeft:{text:"Insert Column Before",handler(){const i=m.find(this.table),t=ba(this.columnToolCells,this.boundary,(s,n)=>Math.abs(s.x-n.x)<=k,this.quill.root.parentNode),e=i.insertColumn(this.boundary,t,!1,this.quill.root.parentNode);this.tableColumnTool.updateColToolCells(),this.quill.update(m.sources.USER),this.tableSelection.setSelection(e[0].domNode.getBoundingClientRect(),e[0].domNode.getBoundingClientRect()),setTimeout(()=>this.tableScrollBar.updateScrollBar())}},insertRowUp:{text:"Insert Row Above",handler(){const t=m.find(this.table).insertRow(this.boundary,!1,this.quill.root.parentNode);this.tableColumnTool.updateRowToolCells(),this.quill.update(m.sources.USER),this.tableSelection.setSelection(t[0].domNode.getBoundingClientRect(),t[0].domNode.getBoundingClientRect()),setTimeout(()=>this.tableScrollBar.resetTableHeight(this.table))}},insertRowDown:{text:"Insert Row Below",handler(){const t=m.find(this.table).insertRow(this.boundary,!0,this.quill.root.parentNode);this.tableColumnTool.updateRowToolCells(),this.quill.update(m.sources.USER),this.tableSelection.setSelection(t[0].domNode.getBoundingClientRect(),t[0].domNode.getBoundingClientRect()),setTimeout(()=>this.tableScrollBar.resetTableHeight(this.table))}},mergeCells:{text:"Merge Cells",handler(){const i=m.find(this.table),t=i.rows().reduce((n,r)=>{const o=G(r.domNode.getBoundingClientRect(),this.quill.root.parentNode);return o.y>this.boundary.y-k&&o.y+o.height<this.boundary.y+this.boundary.height+k&&(n+=1),n},0),e=this.columnToolCells.reduce((n,r)=>{const o=G(r.getBoundingClientRect(),this.quill.root.parentNode);return o.x>this.boundary.x-k&&o.x+o.width<this.boundary.x+this.boundary.width+k&&(n+=1),n},0),s=i.mergeCells(this.boundary,this.selectedTds,t,e,this.quill.root.parentNode);this.quill.update(m.sources.USER),this.tableSelection.setSelection(s.domNode.getBoundingClientRect(),s.domNode.getBoundingClientRect())}},unmergeCells:{text:"Split Cells",handler(){m.find(this.table).unmergeCells(this.selectedTds,this.quill.root.parentNode),this.quill.update(m.sources.USER),this.tableSelection.clearSelection()}},deleteColumn:{text:"Delete Columns",handler(){const i=m.find(this.table),t=xb(this.columnToolCells,this.boundary,(s,n)=>s.x+k>n.x&&s.x+s.width-k<n.x1,this.quill.root.parentNode);i.deleteColumns(this.boundary,t,this.quill.root.parentNode)||(this.tableColumnTool.updateColToolCells(),this.quill.update(m.sources.USER),this.tableSelection.clearSelection()),setTimeout(()=>this.tableScrollBar.updateScrollBar())}},deleteRow:{text:"Delete Rows",handler(){m.find(this.table).deleteRow(this.boundary,this.quill.root.parentNode)||(this.tableColumnTool.updateRowToolCells(),this.quill.update(m.sources.USER),this.tableSelection.clearSelection())}},deleteTable:{text:"Remove Table",handler(){const i=this.quill.getModule("better-table"),t=m.find(this.table);i.hideTableTools(),t.remove(),this.quill.update(m.sources.USER),this.quill.focus()}}},Cb=["white","red","yellow","blue"],jr=new WeakMap;let Eb=An.subTitleBgColor;class Lb{constructor(t,e,s){const n=e.getModule("better-table");this.tableSelection=n.tableSelection,this.table=t.table,this.quill=e,this.options=s,this.menuItems={...ma,...s.items},this.tableColumnTool=n.columnTool,this.tableScrollBar=n.tableScrollBar,this.boundary=this.tableSelection.boundary,this.selectedTds=this.tableSelection.selectedTds,this.destroyHandler=this.destroy.bind(this),this.columnToolCells=this.tableColumnTool.colToolCells(),this.colorSubTitle=s.color&&s.color.text?s.color.text:Eb,this.cellColors=s.color&&s.color.colors?s.color.colors:Cb,this.menuInitial(t),this.mount(),document.addEventListener("click",this.destroyHandler,!1)}mount(){this.quill.root.parentNode.appendChild(this.domNode)}destroy(){const t=pa(this.domNode.querySelectorAll("."+hb)),e=pa(this.domNode.querySelectorAll("."+ua));return t.concat(e).forEach(n=>{if(jr.has(n)){const r=jr.get(n);r&&typeof r=="function"&&r()}}),vb(this.domNode),document.removeEventListener("mousedown",this.destroyHandler,!1),null}menuInitial({cell:t,left:e,top:s}){const n=t.getAttribute("rowspan"),r=t.getAttribute("colspan"),o=window.innerHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight),l=Object.keys(this.menuItems)||[],a=pb*l.length||fa,h=Tb(this.quill.root.parentNode,e,s),u=e-h.offsetX,g=s-h.offsetY,f={left:`${u}px`,top:`${g}px`,"min-height":`${fa}px`,width:`${gb}px`};a+s>o&&a<o&&(delete f.top,f.bottom="10px"),this.domNode=document.createElement("div"),this.domNode.classList.add("qlbt-operation-menu"),P(this.domNode,f);for(const v in this.menuItems)if(this.menuItems[v]){const y={...ma[v],...this.menuItems[v]},w=this.menuItemCreator(y);v==="mergeCells"&&this.tableSelection.selectedTds.length===1||v==="unmergeCells"&&n===1&&r===1?w.classList.add("qlbt-operation-menu-disabled"):w.addEventListener("mouseup",y.handler.bind(this),!1),this.domNode.appendChild(w)}this.options.color&&this.options.color!==!1&&(this.domNode.appendChild(p()),this.domNode.appendChild(b(this.colorSubTitle)),this.domNode.appendChild(this.colorsItemCreator(this.cellColors)));function p(){const v=document.createElement("div");return v.classList.add(ub),v}function b(v){const y=document.createElement("div");return y.classList.add(db),y.innerText=v,y}}colorsItemCreator(t){const e=this,s=document.createElement("div");s.classList.add(fb),t.forEach(r=>{const o=n(r);s.appendChild(o)});function n(r){const o=document.createElement("div");o.classList.add(ua),o.setAttribute("data-color",r),o.style.backgroundColor=r;const l=function(){const a=e.tableSelection.selectedTds;a&&a.length>0&&a.forEach(h=>{h.domNode.children[0].setAttribute("data-parent-bg",r),h.format("cell-bg",r)})};return o.addEventListener("click",l,!1),jr.set(o,()=>{o.removeEventListener("click",l,!1)}),o}return s}menuItemCreator({text:t}){const e=document.createElement("div");return e.classList.add("qlbt-operation-menu-item"),e.innerText=t,e}onCopy(t){const{selectedTds:e}=this.tableSelection,s=this.createVirtualTable(e,t);document.body.appendChild(s),this.setCopyRange(s),this.tableSelection.preSelectedTable=s,this.tableSelection.preSelectedTds=e,document.execCommand("copy"),s.remove(),t==="cut"&&m.find(this.table).emptyCells(e)}createVirtualTable(t,e){const s=document.createElement("table");s.style.position="fixed",s.style.top=0,s.style.left=0,s.style.clip="rect(0,0,0,0)";let n="",r=null;return t.forEach(o=>{const{domNode:l,parent:a}=o,h=a.domNode.getAttribute("data-row"),u=l.firstChild.dataset.rowspan,g=l.firstChild.dataset.colspan,f=l.firstChild.dataset.row,p=l.firstChild.dataset.cell;o.dataCell=p,o.dataRow=f,o.dataColSpan=g,o.dataRowSpan=u,h!==n&&(n!==""&&s.appendChild(r),r=document.createElement("tr"),n=h);const b=l.offsetWidth,v=l.cloneNode(!0);v.setAttribute("width",b),r.appendChild(v)}),s.appendChild(r),s}setCopyRange(t){const e=document.createRange(),s=window.getSelection();e.selectNodeContents(t),s.removeAllRanges(),s.addRange(e)}groupTableCell(t){const e=[];let s="",n="",r=0;return t.forEach(o=>{s=o.parent.domNode.getAttribute("data-row"),s!==n&&(n!==""&&r++,e[r]=[],n=s),e[r].push(o)}),e}}function ba(i,t,e,s){return i.reduce((n,r)=>{const o=G(r.getBoundingClientRect(),s);return e(o,t)&&(n=i.indexOf(r)),n},!1)}function xb(i,t,e,s){return i.reduce((n,r)=>{const o=G(r.getBoundingClientRect(),s);return e(o,t)&&n.push(i.indexOf(r)),n},[])}function Tb(i,t,e){if(!i)return{offsetX:0,offsetY:0};const s=document.createElement("div");P(s,{opacity:"0",position:"fixed",left:`${t}px`,top:`${e}px`,width:"1px",height:"1px",zIndex:"-999999"}),i.appendChild(s);const n=s.getBoundingClientRect();return i.removeChild(s),{offsetX:n.left-t,offsetY:n.top-e}}class Nb{constructor(t,e,s){if(!t)return;this.table=t,this.quill=e,this.modulesContainer=s,this.domNode=null,this.oldRootScrollTop=this.quill.root.scrollTop,this.prev=0;const r=this.quill.getModule("better-table").columnTool;this.columnToolDomNode=r.domNode,this.columnCtrlPanel=r.columnCtrlPanel,this.leftMask=r.leftMask,this.updateScrollBar(),this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",this.handleQuillRootScroll.bind(this))}handleQuillRootScroll(){if(!this.domNode)return;const t=this.table.getBoundingClientRect(),e=this.quill.root.parentNode.getBoundingClientRect(),s=t.top+Ur,n=t.top+t.height-1,r=e.top+e.height;r<n&&r>s?this.isTableOverflow||(this.isTableOverflow=!0,P(this.domNode,{display:"block",top:`${this.containerRect.height-Ur}px`,marginTop:"0px"})):r<=s?(this.isTableOverflow=!1,this.domNode.style.display="none"):(this.setScrollBarToBottom(),P(this.domNode,{marginTop:`${this.oldRootScrollTop-this.quill.root.scrollTop}px`}))}setScrollBarToBottom(){if(this.isTableOverflow){this.isTableOverflow=!1;const t=this.tableRect.top+this.tableRect.height-this.containerRect.top-1;P(this.domNode,{display:"block",top:`${t}px`})}}resetTableHeight(t){this.domNode&&(this.tableRect.height=t.getBoundingClientRect().height,this.isTableOverflow=!this.isTableOverflow,this.handleQuillRootScroll())}setScrollBarMove(t,e){const s=parseInt(getComputedStyle(this.scrollBar).left,10);let n=e?t-this.prev+s:s+t;this.showMask(n),n=this.getLimitedDistance(n);const r=this.tableViewRect.width/this.tableRect.width,o=n/r,l=this.tableViewRect.left-this.containerRect.left-o;P(this.scrollBar,{left:`${n}px`}),P(this.columnCtrlPanel,{left:`${l}px`}),this.table.parentNode.scrollLeft=o,e&&(this.prev=t);const a=this.quill.getModule("better-table").tableSelection;a&&a.selectedTds.length&&a.refreshHelpLinesPosition()}handleScrollBarMouseDown(t){t.preventDefault(),this.prev=t.clientX,this.subscriber=e=>{e.preventDefault(),e.stopPropagation(),this.setScrollBarMove(e.clientX,!0)},this.quill.root.parentNode.addEventListener("mousemove",this.subscriber,!1),document.addEventListener("mouseup",this.handleScrollBarMouseup.bind(this),!1)}handleScrollBarMouseup(t){t.preventDefault(),this.quill.root.parentNode.removeEventListener("mousemove",this.subscriber),document.removeEventListener("mouseup",this.handleScrollBarMouseup.bind(this),!1)}handleWheel(t){if(t.shiftKey){const{deltaY:e}=t;this.setScrollBarMove(e,!1)}}showMask(t){t>=Math.floor(this.maxBarLeft)?P(this.leftMask,{display:"block"}):t<=0?P(this.leftMask,{display:"none"}):P(this.leftMask,{display:"block"})}getLimitedDistance(t){return t>=Math.floor(this.maxBarLeft)?t=this.maxBarLeft:t<=0&&(t=0),t}updateScrollBar(){var n;if(!((n=this.table)!=null&&n.parentNode))return;const t=this.table.getBoundingClientRect(),e=this.table.parentNode.getBoundingClientRect(),s=t.width-e.width;this.tableRect=t,this.tableViewRect=e,this.tableMoveDistance=s,this.oldRootScrollTop=this.quill.root.scrollTop,s>0?this.createScrollBar():this.destroyScrollBar()}createScrollBar(){const e=this.quill.root.parentNode.getBoundingClientRect();this.containerRect=e,P(this.columnCtrlPanel,{left:`${this.tableViewRect.left-e.left-this.table.parentNode.scrollLeft}px`}),this.domNode&&this.domNode.remove(),this.domNode=document.createElement("div"),this.domNode.classList.add("qlbt-table-scroll-bar-panel"),this.scrollBar=document.createElement("div"),this.scrollBar.classList.add("qlbt-table-scroll-bar"),this.scrollBar.addEventListener("mousedown",this.handleScrollBarMouseDown.bind(this),!1);const s=this.tableViewRect.width/this.tableRect.width,n=this.tableViewRect.width-this.tableMoveDistance*s;P(this.scrollBar,{width:`${n}px`}),this.domNode.appendChild(this.scrollBar);const r=this.table.parentNode.scrollLeft;if(this.maxBarLeft=this.tableMoveDistance*s,r){const l=r*s;this.showMask(l),P(this.scrollBar,{left:`${this.getLimitedDistance(l)}px`})}const o=this.tableRect.top+this.tableRect.height-e.top-1;this.isTableOverflow=e.top+e.height<this.tableRect.top+this.tableRect.height,this.modulesContainer.appendChild(this.domNode),P(this.domNode,{top:`${Math.min(e.height-Ur,o)}px`}),document.addEventListener("wheel",this.handleWheel.bind(this))}destroyScrollBar(){P(this.leftMask,{display:"none"}),this.columnCtrlPanel.removeAttribute("style"),this.maxBarLeft=null,this.destroy()}destroy(){this.domNode&&this.domNode.remove(),this.quill.root.removeEventListener("scroll",this.handleQuillRootScroll.bind(this)),document.removeEventListener("wheel",this.handleWheel.bind(this))}}class Sb{constructor(t,e,s){if(!t)return null;this.table=t,this.quill=e,this.modulesContainer=s,this.parent=this.quill.root.parentNode,this.boundary={},this.selectedTds=[],this.dragging=!1,this.preSelectedTable=null,this.oldRootScrollTop=this.quill.root.scrollTop,this.selectingHandler=this.mouseDownHandler.bind(this),this.tdEditHandler=this.setTdEditable.bind(this),this.tdResizeHandler=this.resizeTd.bind(this),this.helpLinesInitial(),this.isEditorHasScrollBar(),this.quill.root.parentNode.addEventListener("mousedown",this.selectingHandler,!1),this.quill.on("text-change",this.tdResizeHandler),this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",this.handleQuillRootScroll.bind(this))}handleQuillRootScroll(){tn.forEach(t=>{const e=this[t];e&&(e.style.marginTop=`${this.oldRootScrollTop-this.quill.root.scrollTop}px`)})}isEditorHasScrollBar(){this.quill.root.scrollHeight>this.quill.root.clientHeight?P(this.modulesContainer,{width:"calc(100% - 23px)"}):this.modulesContainer.removeAttribute("style")}helpLinesInitial(){tn.forEach(t=>{if(this[t]=document.createElement("div"),this[t].classList.add("qlbt-selection-line"),t==="left"){this[t].classList.add("qlbt-selection-line-first");const e=document.createElement("div");this[t].appendChild(e)}if(t==="bottom"){this[t].classList.add("qlbt-selection-line-last");const e=document.createElement("div");this[t].appendChild(e)}P(this[t],{position:"absolute",display:"none","background-color":Ao}),this.modulesContainer.appendChild(this[t])})}mouseDownHandler(t){if(t.button!==0)return;const e=this,n=this.quill.getModule("better-table").columnTool;n.activeToolCell&&(n.activeToolCell.classList.remove("qlbt-tool-cell-on"),n.activeToolCell=null),t.target.closest(".quill-better-table")?t.shiftKey?(this.endTd=t.target.closest("td[data-row]"),this.drawSelection(this,!0),this.startTd!==this.endTd&&this.quill.blur()):(this.startTd=t.target.closest("td[data-row]"),this.drawSelection(this,!1),this.dragging=!0,this.parent.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",o,!1)):t.target.closest(".qlbt-selection-line")&&(this.parent.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",o,!1));function r(l){l.stopPropagation(),!(l.button!==0||!l.target.closest(".quill-better-table"))&&(e.endTd=l.target.closest("td[data-row]"),e.endTd&&(e.drawSelection(e,!0),e.startTd!==e.endTd&&e.quill.blur()))}function o(){e.parent.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",o,!1),e.dragging=!1}}drawSelection(t,e){t.startTdRect=G(t.startTd.getBoundingClientRect(),t.quill.root.parentNode);let s=t.startTdRect;e&&(t.endTdRect=G(t.endTd.getBoundingClientRect(),t.quill.root.parentNode),s=t.endTdRect),t.boundary=_s(t.startTdRect,s),t.selectedTds=t.computeSelectedTds(),t.repositionHelpLines()}setTdEditable(t){if(!this.editTd)return;this.parent.removeEventListener("keypress",this.tdEditHandler,!1);const e=this.editTd.domNode;if(e.removeEventListener("click",this.tdEditHandler,!1),e.classList.add("editing-select-able"),e.setAttribute("contenteditable",!0),t.type==="keypress"){if(e.childNodes.length>1||e.firstChild.innerHTML!=="<br>"){const s=e.firstChild.cloneNode();s.innerHTML="<br>",e.innerHTML="",e.appendChild(s)}e.focus()}}resizeTd(){if(!this.editTd||this.left&&!this.left.offsetParent)return;if(this.selectedTds.length>1)this.refreshHelpLinesPosition();else{const n=this.editTd.domNode,r=G(n.getBoundingClientRect(),this.quill.root.parentNode);this.boundary=_s(r,r),this.repositionHelpLines()}this.isEditorHasScrollBar();const t=this.quill.getModule("better-table"),e=t.columnTool;if(e){e.updateRowToolCells();const n=this.table.parentNode.getBoundingClientRect();e.leftMask&&P(e.leftMask,{height:`${n.height+50}px`})}t.tableScrollBar.resetTableHeight(this.table)}resetTd(t){const e=t.target;e.classList.remove("editing-select-able"),e.setAttribute("contenteditable",!1),e.removeAttribute("contenteditable")}correctBoundary(){m.find(this.table).descendants(at).forEach(s=>{const{x:n,y:r,width:o,height:l}=G(s.domNode.getBoundingClientRect(),this.quill.root.parentNode);(n+k>=this.boundary.x&&n+k<=this.boundary.x1||n-k+o>=this.boundary.x&&n-k+o<=this.boundary.x1)&&(r+k>=this.boundary.y&&r+k<=this.boundary.y1||r-k+l>=this.boundary.y&&r-k+l<=this.boundary.y1)&&(this.boundary=_s(this.boundary,{x:n,y:r,width:o,height:l}))})}computeSelectedTds(){const s=m.find(this.table).descendants(at).reduce((n,r)=>{const{x:o,y:l,width:a,height:h}=G(r.domNode.getBoundingClientRect(),this.quill.root.parentNode);return o+k>=this.boundary.x&&o-k+a<=this.boundary.x1&&l+k>=this.boundary.y&&l-k+h<=this.boundary.y1&&n.push(r),n},[]);return s.length===1&&this.editTd!==s[0]&&(this.table.querySelectorAll("td[contenteditable=true]").forEach(r=>this.resetTd({target:r})),this.editTd=s[0],this.editTd.domNode.addEventListener("mousedown",this.tdEditHandler,!1),this.parent.addEventListener("keypress",this.tdEditHandler,!1)),s}repositionHelpLines(){this.oldRootScrollTop=this.quill.root.scrollTop,this.left&&(P(this.left,{display:"block",left:`${this.boundary.x-1}px`,top:`${this.boundary.y}px`,height:`${this.boundary.height+1}px`,width:"1px","margin-top":"0px"}),P(this.right,{display:"block",left:`${this.boundary.x1}px`,top:`${this.boundary.y-1}px`,height:`${this.boundary.height+1}px`,width:"1px","margin-top":"0px"}),P(this.top,{display:"block",left:`${this.boundary.x-1}px`,top:`${this.boundary.y-1}px`,width:`${this.boundary.width+1}px`,height:"1px","margin-top":"0px"}),P(this.bottom,{display:"block",left:`${this.boundary.x-1}px`,top:`${this.boundary.y1}px`,width:`${this.boundary.width+1}px`,height:"1px","margin-top":"0px"}))}refreshHelpLinesPosition(){const t=G(this.selectedTds[0].domNode.getBoundingClientRect(),this.quill.root.parentNode),e=G(this.selectedTds[this.selectedTds.length-1].domNode.getBoundingClientRect(),this.quill.root.parentNode);this.boundary=_s(t,e),this.repositionHelpLines()}destroy(){return this.table.querySelectorAll("td[contenteditable=true]").forEach(e=>this.resetTd({target:e})),tn.forEach(e=>{this[e]&&(this[e].remove(),this[e]=null)}),this.quill.root.parentNode.removeEventListener("mousedown",this.selectingHandler,!1),delete this.editTd,null}setSelection(t,e){this.boundary=_s(G(t,this.quill.root.parentNode),G(e,this.quill.root.parentNode)),this.correctBoundary(),this.selectedTds=this.computeSelectedTds(),this.repositionHelpLines()}clearSelection(){this.table.querySelectorAll("td[contenteditable=true]").forEach(e=>this.resetTd({target:e})),this.boundary={},this.selectedTds=[],tn.forEach(e=>{this[e]&&P(this[e],{display:"none"})})}}function _s(i,t){const e=Math.min(i.x,t.x,i.x+i.width-1,t.x+t.width-1),s=Math.max(i.x,t.x,i.x+i.width-1,t.x+t.width-1),n=Math.min(i.y,t.y,i.y+i.height-1,t.y+t.height-1),r=Math.max(i.y,t.y,i.y+i.height-1,t.y+t.height-1),o=s-e,l=r-n;return{x:e,x1:s,y:n,y1:r,width:o,height:l}}const Dt=m.imports.delta,yo=m.imports.parchment.InlineBlot;function qb(i,t){i.style.height.indexOf("pt")&&i.removeAttribute("style");const e=i.parentNode;let s=e.dataset.row;s||(s=e.dataset.row=Ee());let n=i.dataset.cell;(!n||n==="undefined")&&(n=Ae());const r=i.getAttribute("colspan")||1,o=i.getAttribute("rowspan")||1;if(t.length()===0)return t=new Dt().insert(`
328
- `,{"table-cell-line":{row:s,cell:n,rowspan:o,colspan:r}}),t;t=t.reduce((h,u)=>(u.insert&&typeof u.insert=="string"?On(u.insert).forEach(f=>{if(f===`
329
- `){let p={};const b={row:s,cell:n,rowspan:o,colspan:r};switch(u.attributes.table&&delete u.attributes.table,!0){case!!u.attributes.header:p=Object.assign(u.attributes.header,b);break;case!!u.attributes.list:p={list:Object.assign(u.attributes.list,b)};break;default:p={"table-cell-line":b}}u.attributes.background&&p["table-cell-line"]&&(p["table-cell-line"].tdBgColor=u.attributes.background),h.insert(`
330
- `,Object.assign(u.attributes,p))}else h.insert(f,Go(u.attributes,["table","table-cell-line","header","list"]))}):h.insert(u.insert,u.attributes),h),new Dt);const l=/^[\n]+$/,a=t.ops[0];if(t.ops.length>=3){const h=t.ops[t.ops.length-1];l.test(a.insert)&&a.attributes["table-cell-line"]&&t.ops.splice(0,1),l.test(h.insert)&&h.attributes["table-cell-line"]&&(t.ops[t.ops.length-1].insert=`
331
- `)}else t.ops.length===1&&l.test(a.insert)&&a.attributes["table-cell-line"]&&(t.ops[0].insert=`
332
- `);return t}function Ib(i,t,e){const s=i.parentNode,n=Array.from(s.querySelectorAll("th"));let r=s.dataset.row;r||(r=s.dataset.row=Ee());const o=n.indexOf(i)+1,l=i.getAttribute("colspan")||!1,a=i.getAttribute("rowspan")||!1;return t.length()===0?(t=new Dt().insert(`
333
- `,{"table-cell-line":{row:r,cell:o,rowspan:a,colspan:l}}),t):(t=t.reduce((h,u)=>{if(u.insert&&typeof u.insert=="string"){const g=On(u.insert);g[g.length-1]!==`
334
- `&&g.push(`
335
- `),g.forEach(f=>{f===`
336
- `?h.insert(`
337
- `,{"table-cell-line":{row:r,cell:o,rowspan:a,colspan:l}}):h.insert(f,u.attributes)})}else h.insert(u.insert,u.attributes);return h},new Dt),t=t.reduce((h,u)=>(u.insert&&typeof u.insert=="string"&&u.insert.startsWith(`
338
- `)?h.insert(u.insert,{"table-cell-line":{row:r,cell:o,rowspan:a,colspan:l}}):h.insert(u.insert,{...Go(u.attributes,["table","table-cell-line"])}),h),new Dt),t)}function Ob(i,t,e){let s=i.children.length===1;if(!(i instanceof Element))return;const n=y=>{if(s)return y.length;let w=0;return y.forEach(C=>{w+=C.colSpan}),Math.max(y.length,w)},r=y=>Number.isNaN(y)?{"table-col":{width:"auto"}}:y<bo?{"table-col":!0}:{"table-col":{width:y}},o=i.querySelectorAll("tr"),l=o[0],a=o.length===1&&!l.querySelector("td");if(!l||a)return new Dt().insert(`
339
- `);const h=i.querySelectorAll("col").length;let u=0,g;Array.prototype.slice.call(o).forEach(y=>{const w=y.querySelectorAll("td");u=Math.max(n(w),u),g=w});let f=0;t=t.reduce((y,w)=>{if(f===h){const L=u-f,x=f;for(let T=0;T<L;T++){const q=x+T,M=parseInt(q<g.length?g[q].width:g[g.length-1].width,10);y.insert(`
340
- `,r(M)),f++}}const C=w.attributes||{};switch(!0){case!!C["table-col"]:if(f<u){const L=w.insert.slice(0,u),x=parseInt(C["table-col"].width,10);y.insert(L,r(x)),f+=L.length}break;case!!C.notFilled:{const L=Ee();for(let x=0;x<u;x++)y.insert(`
341
- `,{"table-cell-line":{row:L,cell:Ae(),rowspan:1,colspan:1}});break}default:y.insert(w.insert,w.attributes)}return y},new Dt);const p=i.closest(".quill-better-table-wrapper")||i,b=p.previousElementSibling&&e.query(p.previousElementSibling),v=p.nextElementSibling&&e.query(p.nextElementSibling);return(!v||v.prototype instanceof yo)&&(t=t.insert(`
342
- `)),(!b||b.prototype instanceof yo)&&(t=new Dt().insert(`
343
- `).concat(t)),v===_e&&(t=t.insert(`
344
- `)),t}function Rb(i,t){return t.ops.length===1&&!t.ops[0].attributes&&(t=new Dt().insert(`
345
- `,{notFilled:!0})),t}function Mb(i,t){const e=new Dt,s=i.style.fontSize;return t.forEach(n=>{e.insert(n.insert,Object.assign(n.attributes,{size:s}))}),e}function kb(i,t){const e=i.tagName==="UL"?"bullet":"ordered";return t.forEach(s=>{typeof s.attributes.list=="string"?delete s.attributes.list:typeof s.attributes.list=="object"&&!s.attributes.list.value&&(s.attributes.list.value=e)}),t}function Bb(i,t,e){const s=m.find(e.domNode.parentNode),n=s.getSelection(),r=n&&s.getFormat(n);if(r&&r["table-cell-line"]&&i.nextElementSibling){const o=e.query(i),l=i.nextElementSibling.innerHTML,a=i.nextElementSibling.innerText;(o&&o.prototype instanceof yo||i.tagName==="P"&&l!==a)&&t.forEach(h=>{h.insert+=`
346
- `})}return t}function Db(i,t){var e;if(i){const s=(e=i.attributes.src)==null?void 0:e.nodeValue;t=new Dt().insert({image:s})}return t}function Pb(i,t,e){const s=i.dataset.mentionId;if(s){const r=m.find(e.domNode.parentNode).getModule("mention");r&&r.options.search(s).then(o=>{const[l]=o;l&&r.options.select(l)})}return t}const Hb=m.imports["blots/block"],Ub=m.imports.delta,Fb=m.imports["core/module"];class Qc extends Fb{constructor(t,e){super(t,e),this.isComposition=!1,this.quill.root.addEventListener("mousedown",n=>this.handleMouseDown(n,t),!1),this.quill.root.addEventListener("compositionend",()=>this.handleCompositionend(t),!1),this.quill.root.addEventListener("compositionstart",()=>this.handleCompositionstart(t),!1),this.quill.root.addEventListener("keypress",n=>this.handleKeyDown(n,t),!1),this.quill.root.addEventListener("contextmenu",n=>{if(!this.table)return!0;n.preventDefault();const r=ea(n);if(!r||r.length<=0)return;const o=r.filter(u=>u.tagName&&u.tagName.toUpperCase()==="TABLE"&&u.classList.contains("quill-better-table"))[0],l=r.filter(u=>u.tagName&&u.tagName.toUpperCase()==="TR"&&u.getAttribute("data-row"))[0],a=r.filter(u=>u.tagName&&u.tagName.toUpperCase()==="TD"&&u.getAttribute("data-row"))[0],h=this.tableSelection.selectedTds.map(u=>u.domNode).includes(a);(this.tableSelection.selectedTds.length<=0||!h)&&this.tableSelection.setSelection(a.getBoundingClientRect(),a.getBoundingClientRect()),this.tableOperationMenu&&(this.tableOperationMenu=this.tableOperationMenu.destroy()),o&&(this.tableOperationMenu=new Lb({table:o,row:l,cell:a,left:n.x+15,top:n.y},t,e.operationMenu))},!1),t.keyboard.addBinding({key:"Backspace"},{},(n,r)=>{if(n.index===0||this.quill.getLength()<=1)return!0;if(r.offset===0&&n.length===0){const[o]=this.quill.getLine(n.index-1),[l]=this.quill.getLine(n.index);if(!B(o)&&o.statics.blotName==="table-cell-line"&&l.statics.blotName!=="table-cell-line"){const a=this.quill.getModule("better-table");let h;try{h=o.parent.parent.parent.parent}catch{}return h&&h.domNode!==a.table&&(a.hideTableTools(),h.remove(),this.quill.update(m.sources.USER)),!1}}return!0});const s=t.keyboard.bindings.Backspace.pop();t.keyboard.bindings.Backspace.splice(1,0,s),t.clipboard.addMatcher("td",qb),t.clipboard.addMatcher("th",Ib),t.clipboard.addMatcher("table",Ob),t.clipboard.addMatcher("h1, h2, h3, h4, h5, h6",Mb),t.clipboard.addMatcher("ol, ul",kb),t.clipboard.addMatcher("span",Pb),t.clipboard.addMatcher("v:imageData",Db),t.clipboard.addMatcher(Node.ELEMENT_NODE,Bb),t.clipboard.matchers=t.clipboard.matchers.filter(n=>n[0]!=="tr"),t.clipboard.addMatcher("tr",Rb),this.quill.on("editor-change",()=>{m.find(this.table)||this.hideTableTools()}),this.quill.on(m.events.SELECTION_CHANGE,(n,r,o)=>{if(!n)return;const l=n.index,a=n.index+n.length;if(o===m.sources.USER){const h=this.quill.root.getElementsByTagName("table");h&&h.length&&[].forEach.call(h,u=>{const g=m.find(u);if(g){const f=g.offset(this.quill.scroll),p=f+g.length(),b=Array.from(u.parentNode.classList);l<=f&&p<=a?u.parentNode.classList.add("quill-better-table-selected"):b.indexOf("quill-better-table-selected")>=0&&u.parentNode.classList.remove("quill-better-table-selected")}})}})}static register(){m.register(we,!0),m.register(Ne,!0),m.register(bt,!0),m.register(at,!0),m.register(Xt,!0),m.register(kt,!0),m.register(ue,!0),m.register(_e,!0),m.register("formats/header",ve,!0),m.register("formats/list",ae,!0)}handleMouseDown(t,e){const s=ea(t);if(!s||s.length<=0)return;const n=s.filter(r=>r.tagName&&r.tagName.toUpperCase()==="TABLE"&&r.classList.contains("quill-better-table"))[0];if(n){if(n.parentNode.classList.remove("quill-better-table-selected"),this.table===n)return;this.table&&this.hideTableTools(),e.options.readOnly||this.showTableTools(n,e)}else this.table&&this.hideTableTools()}handleKeyDown(t,e){const s=t.key,n=e.getSelection();if(this.isComposition||!n)return;const[r]=e.getLine(n.index),[o]=e.getLine(n.index-1);s&&s!=="Delete"&&r&&n&&(r.statics.blotName==="table-col"?(this.quill.getModule("better-table").hideTableTools(),e.insertText(n.index-1,`
347
- `,m.sources.USER),e.setSelection(n.index,0,m.sources.USER)):o&&o.statics.blotName==="table-cell-line"&&r.statics.blotName==="block"&&(e.insertText(n.index,`
348
- `,m.sources.USER),e.setSelection(n.index,0,m.sources.USER)))}handleCompositionstart(t){this.isComposition=!0;const e=t.getSelection(),[s]=t.getLine(e.index),[n]=t.getLine(e.index-1);s&&e&&(s.statics.blotName==="table-col"?(this.quill.getModule("better-table").hideTableTools(),t.insertText(e.index-1,`
349
- `,m.sources.USER),t.setSelection(e.index,0,m.sources.USER)):n&&n.statics.blotName==="table-cell-line"&&s.statics.blotName==="block"&&t.setSelection(e.index,0,m.sources.USER))}handleCompositionend(t){const e=t.getSelection(),[s]=t.getLine(e.index),n=s.domNode,r=n.nodeName==="P",o=s.statics.blotName==="table-cell-line";(r||o)&&n.childNodes.length>1&&n.childNodes[0].nodeName==="BR"&&n.childNodes[0].remove(),a0&&s instanceof Hb&&t.setSelection(e.index,0,m.sources.SILENT),this.isComposition=!1}getTable(t=this.quill.getSelection()){if(B(t))return[null,null,null,-1];const[e,s]=this.quill.getLine(t.index);if(B(e)||e.statics.blotName!==bt.blotName)return[null,null,null,-1];const n=e.tableCell(),r=n.row();return[r.table(),r,n,s]}insertTable(t,e){const s=this.quill.getSelection(!0),n=Rc(s,this.quill);if(B(s)||n)return;let r=new Ub().retain(s.index);r.insert(`
350
- `),r=new Array(e).fill(`
351
- `).reduce((a,h)=>(a.insert(h,{"table-col":!0}),a),r),r=new Array(t).fill(0).reduce(a=>{const h=Ee();return new Array(e).fill(`
352
- `).reduce((u,g)=>(u.insert(g,{"table-cell-line":{row:h,cell:Ae()}}),u),a)},r);const[o]=this.quill.getLine(s.index);o&&o.statics.blotName==="table-col"&&r.insert(`
353
- `),this.quill.updateContents(r,m.sources.USER);const[l]=this.quill.getLine(s.index+e+1);if(l){const h=l.tableCell().domNode,u=document.createEvent("MouseEvent"),g=document.createEvent("MouseEvent"),f=document.createEvent("Event");u.initEvent("mousedown",!0,!1),g.initEvent("mouseup",!0,!1),f.initEvent("keypress",!0,!1),h.dispatchEvent(u),h.dispatchEvent(g),h.dispatchEvent(f),this.tableSelection.endTd=h}}showTableTools(t,e){this.table=t,this.modulesContainer=document.createElement("div"),this.modulesContainer.classList.add("qlbt-modules-container");const s=this.quill.root.parentNode.querySelector(".ql-tooltip ");this.quill.root.parentNode.insertBefore(this.modulesContainer,s),this.tableSelection=new Sb(t,e,this.modulesContainer),this.columnTool=new wb(t,e,this.modulesContainer),this.tableScrollBar=new Nb(t,e,this.modulesContainer);let n;this.subscriber=()=>{clearTimeout(n),n=setTimeout(this.hideTableTools,300)},window.addEventListener("resize",this.subscriber,!1)}hideTableTools(){this.columnTool&&this.columnTool.destroy(),this.tableSelection&&this.tableSelection.destroy(),this.tableOperationMenu&&this.tableOperationMenu.destroy(),this.tableScrollBar&&this.tableScrollBar.destroy(),this.modulesContainer&&this.modulesContainer.remove(),this.columnTool=null,this.tableSelection=null,this.tableOperationMenu=null,this.tableScrollBar=null,this.modulesContainer=null,this.table=null,this.subscriber&&window.removeEventListener("resize",this.subscriber)}}Qc.keyboardBindings={"line delete":{key:"Delete",shiftKey:null,format:{"table-col":!1,"table-cell-line":!1},collapsed:!0,offset:0,handler(i,t){if(i.index===0&&t.line.next&&t.line.next.statics.blotName==="table-view"){const[e]=this.quill.getLine(i.index-1),[s]=this.quill.getLine(i.index+1);if(e&&e.statics.blotName==="block"&&s&&s.statics.blotName==="table-col")return!1}return!0}},"table-col enter":{key:"Enter",shiftKey:null,format:["table-col"],collapsed:!0,offset:0,handler(i,t){if(t.offset===0&&i.length===0){const[e]=this.quill.getLine(i.index);e&&e.statics.blotName==="table-col"&&(this.quill.getModule("better-table").hideTableTools(),this.quill.insertText(i.index-1,`
354
- `,m.sources.USER),this.quill.setSelection(i.index,0,m.sources.USER))}}},"table-col delete":{key:"Delete",shiftKey:null,format:["table-col"],collapsed:!0,offset:0,handler(i,t){if(t.offset===0&&i.length===0){const[e]=this.quill.getLine(i.index);if(e&&e.statics.blotName==="table-col"){const s=this.quill.getModule("better-table");let n;try{n=e.parent.parent.parent}catch{}n&&n.domNode!==s.table&&(s.hideTableTools(),n.remove(),this.quill.update(m.sources.USER))}}}},"table-col backspace":{key:"Backspace",shiftKey:null,format:["table-col"],collapsed:!0,offset:0,handler(){}},"table-cell-line backspace":{key:"Backspace",format:["table-cell-line"],collapsed:!0,offset:0,handler(i){const[t]=this.quill.getLine(i.index);return!!t.prev}},"table-cell-line delete":{key:"Delete",format:["table-cell-line"],handler(i,t){const[e]=this.quill.getLine(i.index),s=this.quill.getIndex(e),n=e.length();return!(!e.next&&(!e.prev&&n===1||i.index!==s&&i.index+1>=s+n))}},"table-cell-line enter":{key:"Enter",shiftKey:null,format:["table-cell-line"],handler(i,t){const e=window.getSelection().anchorNode;if(e instanceof HTMLDivElement&&e.classList.contains("quill-better-table-wrapper")){this.quill.setSelection(i.index+1,0,m.sources.USER),this.quill.focus();return}if(this.quill.selection&&this.quill.selection.composing)return;const s=m.imports.parchment.Scope;i.length>0&&this.quill.scroll.deleteAt(i.index,i.length);const n=Object.keys(t.format).reduce((r,o)=>(this.quill.scroll.query(o,s.BLOCK)&&!Array.isArray(t.format[o])&&(r[o]=t.format[o]),r),{});this.quill.insertText(i.index,`
355
- `,n["table-cell-line"],m.sources.USER),this.quill.setSelection(i.index+1,m.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(r=>{B(n[r])&&(Array.isArray(t.format[r])||r!=="link"&&this.quill.format(r,t.format[r],m.sources.USER))})}}};const jb=m.imports["themes/snow"];let Aa=0;function ya(i,t){i.setAttribute(t,i.getAttribute(t)!=="true")}class Dn{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",e=>{this.togglePicker(),e.preventDefault()}),this.label.addEventListener("keydown",e=>{switch(e.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),e.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),ya(this.label,"aria-expanded"),ya(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");return e.tabIndex=0,e.setAttribute("role","button"),e.classList.add("ql-picker-item"),t.hasAttribute("value")&&e.setAttribute("data-value",t.getAttribute("value")),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",s=>{this.selectItem(e,!0)}),e.addEventListener("keydown",s=>{switch(s.key){case"Enter":this.selectItem(e,!0),s.preventDefault();break;case"Escape":this.escape(),s.preventDefault();break}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=`
356
- <svg viewbox="0 0 18 18">
357
- <polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"></polygon>
358
- <polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"></polygon>
359
- </svg>
360
- `,t.tabIndex=0,t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex=-1,t.id=`ql-picker-options-${Aa}`,Aa+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const s=this.buildItem(e);t.appendChild(s),e.selected===!0&&this.selectItem(s)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t,e=!1){const s=this.container.querySelector(".ql-selected");if(t!==s&&(B(s)||s.classList.remove("ql-selected"),!B(t)&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){let n;typeof Event=="function"?n=new Event("change"):(n=document.createEvent("Event"),n.initEvent("change",!0,!0)),this.select.dispatchEvent(n),this.close()}}update(){let t;if(this.select.selectedIndex>-1){const s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);!B(t)&&t!==this.select.querySelector("option[selected]")?this.label.classList.add("ql-active"):this.label.classList.remove("ql-active")}}class Yc extends Dn{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(s=>{s.innerHTML=e[s.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem,null)}selectItem(t,e){super.selectItem(t,e);const s=t||this.defaultItem;this.label.innerHTML!==s.innerHTML&&(this.label.innerHTML=s.innerHTML)}}class Jc extends Dn{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(s=>{s.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const s=this.label.querySelector(".ql-color-label"),n=t&&t.getAttribute("data-value")||"";s&&(s.tagName==="line"?s.style.stroke=n:s.style.fill=n)}}m.register("ui/picker",Dn,!0);m.register("ui/icon-picker",Yc,!0);m.register("ui/color-picker",Jc,!0);const zb=[!1,"center","right"],Wb=["#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"],Vb=[!1,"serif","monospace"],Kb=["1","2","3",!1],Xb=["small",!1,"large","huge"];jb.prototype.buildPickers=function(i,t){this.pickers=Array.from(i).map(s=>{if(s.classList.contains("ql-align"))return B(s.querySelector("option"))&&Gs(s,zb),new Yc(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const n=s.classList.contains("ql-background")?"background":"color";return B(s.querySelector("option"))&&Gs(s,Wb),new Jc(s,t[n])}return B(s.querySelector("option"))&&(s.classList.contains("ql-font")?Gs(s,Vb):s.classList.contains("ql-header")?Gs(s,Kb):s.classList.contains("ql-size")&&Gs(s,Xb)),new Dn(s)});const e=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(m.events.EDITOR_CHANGE,e)};function Gs(i,t,e=!1){t.forEach(s=>{const n=document.createElement("option");s===e?n.setAttribute("selected","selected"):n.setAttribute("value",s),i.appendChild(n)})}const _b=m.imports.parchment,vo=["error","warn","log","info"];let $c="warn";function th(i,...t){vo.indexOf(i)<=vo.indexOf($c)&&console[i](...t)}function Zo(i){return vo.reduce((t,e)=>(t[e]=th.bind(console,e,i),t),{})}Zo.level=i=>{$c=i};th.level=Zo.level;const Gb=Zo("quill:toolbar"),Zb=m.imports["modules/toolbar"];class Qb extends Zb{update(t){const e=B(t)?{}:this.quill.getFormat(t);this.controls.forEach(s=>{const[n,r]=s;if(r.tagName==="SELECT"){let o;if(B(t))o=null;else if(B(e[n]))o=r.querySelector("option[selected]");else if(!Array.isArray(e[n])){let l=n==="header"?e[n].value:e[n];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),o=r.querySelector(`option[value="${l}"]`)}B(o)?(r.value="",r.selectedIndex=-1):o.selected=!0}else if(B(t))r.classList.remove("ql-active");else if(r.hasAttribute("value")){let o=e[n]===r.getAttribute("value")||!B(e[n])&&(e[n].value===r.getAttribute("value")||e[n].toString()===r.getAttribute("value"))||B(e[n])&&!r.getAttribute("value");if(!o){const l=e[n];(l==="checked"||l==="unchecked")&&(o=r.getAttribute("value")==="check")}o?r.classList.add("ql-active"):r.classList.remove("ql-active")}else B(e[n])?r.classList.remove("ql-active"):r.classList.add("ql-active")})}attach(t){let e=Array.from(t.classList).find(n=>n.indexOf("ql-")===0);if(!e)return;if(e=e.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[e]==null&&this.quill.scroll.query(e)==null){Gb.warn("ignoring attaching to nonexistent format",e,t);return}const s=t.tagName==="SELECT"?"change":"click";t.addEventListener(s,n=>{let r;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const l=t.options[t.selectedIndex];l.hasAttribute("selected")?r=!1:r=l.value||!1}else t.classList.contains("ql-active")?r=!1:r=t.value||!t.hasAttribute("value"),n.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[e]!=null){if(!B(window.quillIsIntable)&&window.quillIsIntable===!0&&(e==="blockquote"||e==="code-block"||e==="list"||e==="indent"||e==="clean"))return;this.handlers[e].call(this,r)}else if(this.quill.scroll.query(e).prototype instanceof _b.EmbedBlot){if(r=prompt(`Enter ${e}`),!r)return;this.quill.updateContents(new I().retain(o.index).delete(o.length).insert({[e]:r}),m.sources.USER)}else{if(!B(window.quillIsIntable)&&window.quillIsIntable===!0&&(e==="blockquote"||e==="code-block"||e==="list"||e==="indent"||e==="clean"))return;this.quill.format(e,r,m.sources.USER)}this.update(o)}),this.controls.push([e,t])}}const Yb=m.imports["blots/embed"],zr=["id","title","src"];class Se extends Yb{static sanitize(t){return Rn(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}static create(t){const e=super.create(t);return e.setAttribute("contenteditable",!1),e.setAttribute("controls","controls"),zr.forEach(s=>{if(t[s])switch(s){case"src":{const n=Se.sanitize(t[s]);e.setAttribute(s,n);break}case"title":e.setAttribute(s,t[s]);break;default:e.dataset[s]=t[s]}}),e}static value(t){const e={};return zr.forEach(s=>{const n=t.getAttribute(s)||t.dataset[s];n&&(e[s]=n)}),e}static formats(t){const e={};return zr.forEach(s=>{const n=t.getAttribute(s)||t.dataset[s];n&&(e[s]=n)}),e}}Se.blotName="video";Se.tagName="VIDEO";Se.SANITIZED_URL="about:blank";Se.PROTOCOL_WHITELIST=["http","https"];Se.className="ql-video-item";const Jb=function(){const i=m.imports["formats/font"];i.whitelist=h0;const t=m.imports["attributors/style/size"];t.whitelist=u0;const e=m.imports["ui/icons"];Object.keys(sa).forEach(r=>{e[r]=sa[r]});const n=m.imports["themes/snow"];return n.DEFAULTS={modules:{toolbar:{handlers:{...n.DEFAULTS.modules.toolbar.handlers,undo:function(){this.quill.history.undo()},redo:function(){this.quill.history.redo()},"better-table":function(){this.quill.getModule("better-table").insertTable(3,3)},image:function(){var o,l;const r=(l=(o=this.quill.options)==null?void 0:o.uploadOption)==null?void 0:l.imageAccept;f0.call(this,"image",r)},fullscreen:function(){},list:function(r){var f,p;const o=this.quill.getSelection(),l=this.quill.getFormat(o),a=Array.isArray(l.list)?(f=l.list[0])==null?void 0:f.value:(p=l.list)==null?void 0:p.value,h=p0(r,a),g=this.quill.getLines(o.index,o.length).filter(b=>b.statics.blotName==="table-col"&&!b.prev);if(g.length){let b=o.index;g.forEach((v,y)=>{const w=v.domNode.closest("table.quill-better-table"),L=m.find(w).length(),x=this.quill.getIndex(v),T=x+L,q=x-b;this.quill.setSelection(b,q,m.sources.SILENT),this.quill.format("list",h,m.sources.USER),w.parentNode.classList.remove("quill-better-table-selected"),b=T,y===g.length-1&&(this.quill.setSelection(T,o.index+o.length-T),this.quill.format("list",h,m.sources.USER))})}else this.quill.format("list",h,m.sources.USER)}}},"better-table":{operationMenu:{items:d0,color:!0}},image:{specs:[jc],overlay:{style:{border:"1px dashed rgb(68, 68, 68)"}},align:{icons:{left:'<i class="icon-text-align-left"></i>',center:'<i class="icon-text-align-center"></i>',right:'<i class="icon-text-align-right"></i>'}}}}},m.register({"modules/toolbar":Qb,"modules/mention":lb,"modules/better-table":Qc,"modules/clipboard":q0,"modules/uploader":zc,"modules/image":F0,"modules/file":$0,"modules/counter":g0,"formats/font":i,"formats/size":t,"formats/strike":Bn,"formats/softBreak":kn,"formats/lineheight":tb,"formats/video":Se,"modules/link":nb},!0),m},$b=Jb();module.exports=$b;
361
- //# sourceMappingURL=index.js.map