PageSourceSearch

https://ps8083dev.com/740.26130dddb0cbabe1.js

js ps8083dev.com collected 2026-09-27 12:55:31 UTC 186,079 bytes, 1 lines download raw bytes

vendor: 9,215 bytes, line 1
1(self.webpackChunkisuite_dashboard=self.webpackChunkisuite_dashboard||[]).push([[740],{8655(Nt){var J=-1;function Tt(h,w,d,k,x){if(h===w)return h?[[0,h]]:[];if(null!=d){var N=function Ht(h,w,d){var k="number"==typeof d?{index:d,length:0}:d.oldRange,x="number"==typeof d?null:d.newRange,N=h.length,q=w.length;if(0===k.length&&(null===x||0===x.length)){var I=k.index,z=h.slice(0,I),O=h.slice(I),Y=x?x.index:null,Q=I+q-N;if(!(null!==Y&&Y!==Q||Q<0||Q>q)){var st=w.slice(0,Q);if((it=w.slice(Q))===O){var R=Math.min(I,Q);if((yt=z.slice(0,R))===(At=st.slice(0,R)))return ct(yt,z.slice(R),st.slice(R),O)}}if(null===Y||Y===I){var at=I,it=(st=w.slice(0,at),w.slice(at));if(st===z){var ut=Math.min(N-at,q-at);if((mt=O.slice(O.length-ut))===(ht=it.slice(it.length-ut)))return ct(z,O.slice(0,O.length-ut),it.slice(0,it.length-ut),mt)}}}if(k.length>0&&x&&0===x.length){var yt=h.slice(0,k.index),mt=h.slice(k.index+k.length);if(!(q<(R=yt.length)+(ut=mt.length))){var At=w.slice(0,R),ht=w.slice(q-ut);if(yt===At&&mt===ht)return ct(yt,h.slice(R,N-ut),w.slice(R,q-ut),mt)}}return null}(h,w,d);if(N)return N}var q=v(h,w),I=h.substring(0,q);q=D(h=h.substring(q),w=w.substring(q));var z=h.substring(h.length-q),O=function ft(h,w){var d;if(!h)return[[1,w]];if(!w)return[[J,h]];var k=h.length>w.length?h:w,x=h.length>w.length?w:h,N=k.indexOf(x);if(-1!==N)return d=[[1,k.substring(0,N)],[0,x],[1,k.substring(N+x.length)]],h.length>w.length&&(d[0][0]=d[2][0]=J),d;if(1===x.length)return[[J,h],[1,w]];var q=function S(h,w){var d=h.length>w.length?h:w,k=h.length>w.length?w:h;if(d.length<4||2*k.length<d.length)return null;function x(it,R,yt){for(var at,ut,mt,ht,At=it.substring(yt,yt+Math.floor(it.length/4)),G=-1,gt="";-1!==(G=R.indexOf(At,G+1));){var T=v(it.substring(yt),R.substring(G)),It=D(it.substring(0,yt),R.substring(0,G));gt.length<It+T&&(gt=R.substring(G-It,G)+R.substring(G,G+T),at=it.substring(0,yt-It),ut=it.substring(yt+T),mt=R.substring(0,G-It),ht=R.substring(G+T))}return 2*gt.length>=it.length?[at,ut,mt,ht,gt]:null}var I,z,O,Y,Q,N=x(d,k,Math.ceil(d.length/4)),q=x(d,k,Math.ceil(d.length/2));return N||q?(I=q?N&&N[4].length>q[4].length?N:q:N,h.length>w.length?(z=I[0],O=I[1],Y=I[2],Q=I[3]):(Y=I[0],Q=I[1],z=I[2],O=I[3]),[z,O,Y,Q,I[4]]):null}(h,w);if(q){var z=q[1],Y=q[3],Q=q[4],st=Tt(q[0],q[2]),it=Tt(z,Y);return st.concat([[0,Q]],it)}return function K(h,w){for(var d=h.length,k=w.length,x=Math.ceil((d+k)/2),N=x,q=2*x,I=new Array(q),z=new Array(q),O=0;O<q;O++)I[O]=-1,z[O]=-1;I[N+1]=0,z[N+1]=0;for(var Y=d-k,Q=Y%2!=0,st=0,it=0,R=0,yt=0,At=0;At<x;At++){for(var G=-At+st;G<=At-it;G+=2){for(var gt=N+G,ut=(at=G===-At||G!==At&&I[gt-1]<I[gt+1]?I[gt+1]:I[gt-1]+1)-G;at<d&&ut<k&&h.charAt(at)===w.charAt(ut);)at++,ut++;if(I[gt]=at,at>d)it+=2;else if(ut>k)st+=2;else if(Q&&(mt=N+Y-G)>=0&&mt<q&&-1!==z[mt]&&at>=(ht=d-z[mt]))return P(h,w,at,ut)}for(var T=-At+R;T<=At-yt;T+=2){for(var ht,mt=N+T,It=(ht=T===-At||T!==At&&z[mt-1]<z[mt+1]?z[mt+1]:z[mt-1]+1)-T;ht<d&&It<k&&h.charAt(d-ht-1)===w.charAt(k-It-1);)ht++,It++;if(z[mt]=ht,ht>d)yt+=2;else if(It>k)R+=2;else if(!Q){var at;if((gt=N+Y-T)>=0&&gt<q&&-1!==I[gt])if(ut=N+(at=I[gt])-gt,at>=(ht=d-ht))return P(h,w,at,ut)}}}return[[J,h],[1,w]]}(h,w)}(h=h.substring(0,h.length-q),w=w.substring(0,w.length-q));return I&&O.unshift([0,I]),z&&O.push([0,z]),_(O,x),k&&function H(h){for(var w=!1,d=[],k=0,x=null,N=0,q=0,I=0,z=0,O=0;N<h.length;)0==h[N][0]?(d[k++]=N,q=z,I=O,z=0,O=0,x=h[N][1]):(1==h[N][0]?z+=h[N][1].length:O+=h[N][1].length,x&&x.length<=Math.max(q,I)&&x.length<=Math.max(z,O)&&(h.splice(d[k-1],0,[J,x]),h[d[k-1]+1][0]=1,k--,N=--k>0?d[k-1]:-1,q=0,I=0,z=0,O=0,x=null,w=!0)),N++;for(w&&_(h),function U(h){function w(it,R){if(!it||!R)return 6;var yt=it.charAt(it.length-1),At=R.charAt(0),G=yt.match(p),gt=At.match(p),at=G&&yt.match(m),ut=gt&&At.match(m),mt=at&&yt.match(y),ht=ut&&At.match(y),T=mt&&it.match(E),It=ht&&R.match(V);return T||It?5:mt||ht?4:G&&!at&&ut?3:at||ut?2:G||gt?1:0}for(var d=1;d<h.length-1;){if(0==h[d-1][0]&&0==h[d+1][0]){var k=h[d-1][1],x=h[d][1],N=h[d+1][1],q=D(k,x);if(q){var I=x.substring(x.length-q);k=k.substring(0,k.length-q),x=I+x.substring(0,x.length-q),N=I+N}for(var z=k,O=x,Y=N,Q=w(k,x)+w(x,N);x.charAt(0)===N.charAt(0);){k+=x.charAt(0),x=x.substring(1)+N.charAt(0),N=N.substring(1);var st=w(k,x)+w(x,N);st>=Q&&(Q=st,z=k,O=x,Y=N)}h[d-1][1]!=z&&(z?h[d-1][1]=z:(h.splice(d-1,1),d--),h[d][1]=O,Y?h[d+1][1]=Y:(h.splice(d+1,1),d--))}d++}}(h),N=1;N<h.length;){if(h[N-1][0]==J&&1==h[N][0]){var Y=h[N-1][1],Q=h[N][1],st=B(Y,Q),it=B(Q,Y);st>=it?(st>=Y.length/2||st>=Q.length/2)&&(h.splice(N,0,[0,Q.substring(0,st)]),h[N-1][1]=Y.substring(0,Y.length-st),h[N+1][1]=Q.substring(st),N++):(it>=Y.length/2||it>=Q.length/2)&&(h.splice(N,0,[0,Y.substring(0,it)]),h[N-1][0]=1,h[N-1][1]=Q.substring(0,Q.length-it),h[N+1][0]=J,h[N+1][1]=Y.substring(it),N++),N++}N++}}(O),O}function P(h,w,d,k){var x=h.substring(0,d),N=w.substring(0,k),q=h.substring(d),I=w.substring(k),z=Tt(x,N),O=Tt(q,I);return z.concat(O)}function v(h,w){if(!h||!w||h.charAt(0)!==w.charAt(0))return 0;for(var d=0,k=Math.min(h.length,w.length),x=k,N=0;d<x;)h.substring(N,x)==w.substring(N,x)?N=d=x:k=x,x=Math.floor((k-d)/2+d);return tt(h.charCodeAt(x-1))&&x--,x}function B(h,w){var d=h.length,k=w.length;if(0==d||0==k)return 0;d>k?h=h.substring(d-k):d<k&&(w=w.substring(0,d));var x=Math.min(d,k);if(h==w)return x;for(var N=0,q=1;;){var I=h.substring(x-q),z=w.indexOf(I);if(-1==z)return N;q+=z,(0==z||h.substring(x-q)==w.substring(0,q))&&(N=q,q++)}}function D(h,w){if(!h||!w||h.slice(-1)!==w.slice(-1))return 0;for(var d=0,k=Math.min(h.length,w.length),x=k,N=0;d<x;)h.substring(h.length-x,h.length-N)==w.substring(w.length-x,w.length-N)?N=d=x:k=x,x=Math.floor((k-d)/2+d);return et(h.charCodeAt(h.length-x))&&x--,x}var p=/[^a-zA-Z0-9]/,m=/\s/,y=/[\r\n]/,E=/\n\r?\n$/,V=/^\r?\n\r?\n/;function _(h,w){h.push([0,""]);for(var I,d=0,k=0,x=0,N="",q="";d<h.length;)if(d<h.length-1&&!h[d][1])h.splice(d,1);else switch(h[d][0]){case 1:x++,q+=h[d][1],d++;break;case J:k++,N+=h[d][1],d++;break;case 0:var z=d-x-k-1;if(w){if(z>=0&&bt(h[z][1])){var O=h[z][1].slice(-1);if(h[z][1]=h[z][1].slice(0,-1),N=O+N,q=O+q,!h[z][1]){h.splice(z,1),d--;var Y=z-1;h[Y]&&1===h[Y][0]&&(x++,q=h[Y][1]+q,Y--),h[Y]&&h[Y][0]===J&&(k++,N=h[Y][1]+N,Y--),z=Y}}nt(h[d][1])&&(O=h[d][1].charAt(0),h[d][1]=h[d][1].slice(1),N+=O,q+=O)}if(d<h.length-1&&!h[d][1]){h.splice(d,1);break}if(N.length>0||q.length>0){N.length>0&&q.length>0&&(0!==(I=v(q,N))&&(z>=0?h[z][1]+=q.substring(0,I):(h.splice(0,0,[0,q.substring(0,I)]),d++),q=q.substring(I),N=N.substring(I)),0!==(I=D(q,N))&&(h[d][1]=q.substring(q.length-I)+h[d][1],q=q.substring(0,q.length-I),N=N.substring(0,N.length-I)));var Q=x+k;0===N.length&&0===q.length?(h.splice(d-Q,Q),d-=Q):0===N.length?(h.splice(d-Q,Q,[1,q]),d=d-Q+1):0===q.length?(h.splice(d-Q,Q,[J,N]),d=d-Q+1):(h.splice(d-Q,Q,[J,N],[1,q]),d=d-Q+2)}0!==d&&0===h[d-1][0]?(h[d-1][1]+=h[d][1],h.splice(d,1)):d++,x=0,k=0,N="",q=""}""===h[h.length-1][1]&&h.pop();var st=!1;for(d=1;d<h.length-1;)0===h[d-1][0]&&0===h[d+1][0]&&(h[d][1].substring(h[d][1].length-h[d-1][1].length)===h[d-1][1]?(h[d][1]=h[d-1][1]+h[d][1].substring(0,h[d][1].length-h[d-1][1].length),h[d+1][1]=h[d-1][1]+h[d+1][1],h.splice(d-1,1),st=!0):h[d][1].substring(0,h[d+1][1].length)==h[d+1][1]&&(h[d-1][1]+=h[d+1][1],h[d][1]=h[d][1].substring(h[d+1][1].length)+h[d+1][1],h.splice(d+1,1),st=!0)),d++;st&&_(h,w)}function tt(h){return h>=55296&&h<=56319}function et(h){return h>=56320&&h<=57343}function nt(h){return et(h.charCodeAt(0))}function bt(h){return tt(h.charCodeAt(h.length-1))}function ct(h,w,d,k){return bt(h)||nt(k)?null:function Lt(h){for(var w=[],d=0;d<h.length;d++)h[d][1].length>0&&w.push(h[d]);return w}([[0,h],[J,w],[1,d],[0,k]])}function Mt(h,w,d,k){return Tt(h,w,d,k,!0)}Mt.INSERT=1,Mt.DELETE=J,Mt.EQUAL=0,Nt.exports=Mt},8328(Nt,J,C){Nt=C.nmd(Nt);var Tt="__lodash_hash_undefined__",ft=9007199254740991,K="[object Arguments]",v="[object Boolean]",B="[object Date]",S="[object Function]",H="[object GeneratorFunction]",p="[object Map]",m="[object Number]",y="[object Object]",E="[object Promise]",V="[object RegExp]",U="[object Set]",_="[object String]",tt="[object Symbol]",et="[object WeakMap]",nt="[object ArrayBuffer]",bt="[object DataView]",Lt="[object Float32Array]",ct="[object Float64Array]",Ht="[object Int8Array]",Mt="[object Int16Array]",h="[object Int32Array]",w="[object Uint8Array]",d="[object Uint8ClampedArray]",k="[object Uint16Array]",x="[object Uint32Array]",q=/\w*$/,I=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,O={};O[K]=O["[object Array]"]=O[nt]=O[bt]=O[v]=O[B]=O[Lt]=O[ct]=O[Ht]=O[Mt]=O[h]=O[p]=O[m]=O[y]=O[V]=O[U]=O[_]=O[tt]=O[w]=O[d]=O[k]=O[x]=!0,O["[object Error]"]=O[S]=O[et]=!1;var Y="object"==typeof global&&global&&global.Object===Object&&global,Q="object"==typeof self&&self&&self.Object===Object&&self,st=Y||Q||Function("return this")(),it=J&&!J.nodeType&&J,R=it&&Nt&&!Nt.nodeType&&Nt,yt=R&&R.exports===it;function At(i,a){return i.set(a[0],a[1]),i}function G(i,a){return i.add(a),i}function ut(i,a,u,b){var W=-1,$=i?i.length:0;for(b&&$&&(u=i[++W]);++W<$;)u=a(u,i[W],W,i);return u}function T(i){var a=!1;if(null!=i&&"function"!=typeof i.toString)try{a=!!(i+"")}catch{}return a}function It(i){var a=-1,u=Array(i.size);
1return i.forEach(function(b,W){u[++a]=[W,b]}),u}function _e(i,a){return function(u){return i(a(u))}}function is(i){var a=-1,u=Array(i.size);return i.forEach(function(b){u[++a]=b}),u}var i,Ns=Array.prototype,Ae=Function.prototype,le=Object.prototype,Be=st["__core-js_shared__"],ls=(i=/[^.]+$/.exec(Be&&Be.keys&&Be.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",Ee=Ae.toString,Kt=le.hasOwnProperty,Ne=le.toString,Ts=RegExp("^"+Ee.call(Kt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=yt?st.Buffer:void 0,ae=st.Symbol,Me=st.Uint8Array,Pt=_e(Object.getPrototypeOf,Object),os=Object.create,as=le.propertyIsEnumerable,ws=Ns.splice,De=Object.getOwnPropertySymbols,Te=oe?oe.isBuffer:void 0,Ue=_e(Object.keys,Object),we=Ft(st,"DataView"),ce=Ft(st,"Map"),$t=Ft(st,"Promise"),xe=Ft(st,"Set"),je=Ft(st,"WeakMap"),ue=Ft(Object,"create"),he=Bt(we),fe=Bt(ce),Pe=Bt($t),Fe=Bt(xe),He=Bt(je),te=ae?ae.prototype:void 0,cs=te?te.valueOf:void 0;function ee(i){var a=-1,u=i?i.length:0;for(this.clear();++a<u;){var b=i[a];this.set(b[0],b[1])}}function qt(i){var a=-1,u=i?i.length:0;for(this.clear();++a<u;){var b=i[a];this.set(b[0],b[1])}}function Rt(i){var a=-1,u=i?i.length:0;for(this.clear();++a<u;){var b=i[a];this.set(b[0],b[1])}}function Dt(i){this.__data__=new qt(i)}function us(i,a,u){var b=i[a];(!Kt.call(i,a)||!ps(b,u)||void 0===u&&!(a in i))&&(i[a]=u)}function Ce(i,a){for(var u=i.length;u--;)if(ps(i[u][0],a))return u;return-1}function ze(i,a,u,b,W,$,lt){var F;if(b&&(F=$?b(i,W,$,lt):b(i)),void 0!==F)return F;if(!Zt(i))return i;var Et=Ze(i);if(Et){if(F=function Qs(i){var a=i.length,u=i.constructor(a);return a&&"string"==typeof i[0]&&Kt.call(i,"index")&&(u.index=i.index,u.input=i.input),u}(i),!a)return function Zs(i,a){var u=-1,b=i.length;for(a||(a=Array(b));++u<b;)a[u]=i[u];return a}(i,F)}else{var dt=ne(i),_t=dt==S||dt==H;if(ms(i))return function de(i,a){if(a)return i.slice();var u=new i.constructor(i.length);return i.copy(u),u}(i,a);if(dt==y||dt==K||_t&&!$){if(T(i))return $?i:{};if(F=function Wt(i){return"function"!=typeof i.constructor||gs(i)?{}:function $s(i){return Zt(i)?os(i):{}}(Pt(i))}(_t?{}:i),!a)return function Xs(i,a){return Ge(i,se(i),a)}(i,function Gt(i,a){return i&&Ge(a,Ye(a),i)}(F,i))}else{if(!O[dt])return $?i:{};F=function Js(i,a,u,b){var W=i.constructor;switch(a){case nt:return Ve(i);case v:case B:return new W(+i);case bt:return function ge(i,a){var u=a?Ve(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.byteLength)}(i,b);case Lt:case ct:case Ht:case Mt:case h:case w:case d:case k:case x:return function Ws(i,a){var u=a?Ve(i.buffer):i.buffer;return new i.constructor(u,i.byteOffset,i.length)}(i,b);case p:return function hs(i,a,u){return ut(a?u(It(i),!0):It(i),At,new i.constructor)}(i,b,u);case m:case _:return new W(i);case V:return function Ke(i){var a=new i.constructor(i.source,q.exec(i));return a.lastIndex=i.lastIndex,a}(i);case U:return function qe(i,a,u){return ut(a?u(is(i),!0):is(i),G,new i.constructor)}(i,b,u);case tt:return function fs(i){return cs?Object(cs.call(i)):{}}(i)}}(i,dt,ze,a)}}lt||(lt=new Dt);var Ut=lt.get(i);if(Ut)return Ut;if(lt.set(i,F),!Et)var St=u?function Ys(i){return function zs(i,a,u){var b=a(i);return Ze(i)?b:function at(i,a){for(var u=-1,b=a.length,W=i.length;++u<b;)i[W+u]=a[u];return i}(b,u(i))}(i,Ye,se)}(i):Ye(i);return function gt(i,a){for(var u=-1,b=i?i.length:0;++u<b&&!1!==a(i[u],u,i););}(St||i,function(wt,Ct){St&&(wt=i[Ct=wt]),us(F,Ct,ze(wt,a,u,b,Ct,i,lt))}),F}function Ve(i){var a=new i.constructor(i.byteLength);return new Me(a).set(new Me(i)),a}function Ge(i,a,u,b){u||(u={});for(var W=-1,$=a.length;++W<$;){var lt=a[W],F=b?b(u[lt],i[lt],lt,u,i):void 0;us(u,lt,void 0===F?i[lt]:F)}return u}function pe(i,a){var u=i.__data__;return function tn(i){var a=typeof i;return"string"==a||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==i:null===i}(a)?u["string"==typeof a?"string":"hash"]:u.map}function Ft(i,a){var u=function ht(i,a){return i?.[a]}(i,a);return function Ks(i){return!(!Zt(i)||function en(i){return!!ls&&ls in i}(i))&&(Xe(i)||T(i)?Ts:I).test(Bt(i))}(u)?u:void 0}ee.prototype.clear=function xs(){this.__data__=ue?ue(null):{}},ee.prototype.delete=function Ls(i){return this.has(i)&&delete this.__data__[i]},ee.prototype.get=function Ss(i){var a=this.__data__;if(ue){var u=a[i];return u===Tt?void 0:u}return Kt.call(a,i)?a[i]:void 0},ee.prototype.has=function $e(i){var a=this.__data__;return ue?void 0!==a[i]:Kt.call(a,i)},ee.prototype.set=function Le(i,a){return this.__data__[i]=ue&&void 0===a?Tt:a,this},qt.prototype.clear=function Cs(){this.__data__=[]},qt.prototype.delete=function qs(i){var a=this.__data__,u=Ce(a,i);return!(u<0||(u==a.length-1?a.pop():ws.call(a,u,1),0))},qt.prototype.get=function ks(i){var a=this.__data__,u=Ce(a,i);return u<0?void 0:a[u][1]},qt.prototype.has=function Os(i){return Ce(this.__data__,i)>-1},qt.prototype.set=function Is(i,a){var u=this.__data__,b=Ce(u,i);return b<0?u.push([i,a]):u[b][1]=a,this},Rt.prototype.clear=function Rs(){this.__data__={hash:new ee,map:new(ce||qt),string:new ee}},Rt.prototype.delete=function _s(i){return pe(this,i).delete(i)},Rt.prototype.get=function Bs(i){return pe(this,i).get(i)},Rt.prototype.has=function Ms(i){return pe(this,i).has(i)},Rt.prototype.set=function Ds(i,a){return pe(this,i).set(i,a),this},Dt.prototype.clear=function Us(){this.__data__=new qt},Dt.prototype.delete=function js(i){return this.__data__.delete(i)},Dt.prototype.get=function Ps(i){return this.__data__.get(i)},Dt.prototype.has=function Fs(i){return this.__data__.has(i)},Dt.prototype.set=function Hs(i,a){var u=this.__data__;if(u instanceof qt){var b=u.__data__;if(!ce||b.length<199)return b.push([i,a]),this;u=this.__data__=new Rt(b)}return u.set(i,a),this};var se=De?_e(De,Object):function nn(){return[]},ne=function Vs(i){return Ne.call(i)};function ds(i,a){return!!(a=a??ft)&&("number"==typeof i||z.test(i))&&i>-1&&i%1==0&&i<a}function gs(i){var a=i&&i.constructor;return i===("function"==typeof a&&a.prototype||le)}function Bt(i){if(null!=i){try{return Ee.call(i)}catch{}try{return i+""}catch{}}return""}function ps(i,a){return i===a||i!=i&&a!=a}
1(we&&ne(new we(new ArrayBuffer(1)))!=bt||ce&&ne(new ce)!=p||$t&&ne($t.resolve())!=E||xe&&ne(new xe)!=U||je&&ne(new je)!=et)&&(ne=function(i){var a=Ne.call(i),u=a==y?i.constructor:void 0,b=u?Bt(u):void 0;if(b)switch(b){case he:return bt;case fe:return p;case Pe:return E;case Fe:return U;case He:return et}return a});var Ze=Array.isArray;function me(i){return null!=i&&function bs(i){return"number"==typeof i&&i>-1&&i%1==0&&i<=ft}(i.length)&&!Xe(i)}var ms=Te||function rn(){return!1};function Xe(i){var a=Zt(i)?Ne.call(i):"";return a==S||a==H}function Zt(i){var a=typeof i;return!!i&&("object"==a||"function"==a)}function Ye(i){return me(i)?function Se(i,a){var u=Ze(i)||function ke(i){return function sn(i){return function ys(i){return!!i&&"object"==typeof i}(i)&&me(i)}(i)&&Kt.call(i,"callee")&&(!as.call(i,"callee")||Ne.call(i)==K)}(i)?function mt(i,a){for(var u=-1,b=Array(i);++u<i;)b[u]=a(u);return b}(i.length,String):[],b=u.length,W=!!b;for(var $ in i)(a||Kt.call(i,$))&&(!W||"length"!=$&&!ds($,b))&&u.push($);return u}(i):function Gs(i){if(!gs(i))return Ue(i);var a=[];for(var u in Object(i))Kt.call(i,u)&&"constructor"!=u&&a.push(u);return a}(i)}Nt.exports=function We(i){return ze(i,!0,!0)}},5667(Nt,J,C){Nt=C.nmd(Nt);var Tt="__lodash_hash_undefined__",P=9007199254740991,v="[object Arguments]",B="[object Array]",S="[object Boolean]",H="[object Date]",p="[object Error]",m="[object Function]",E="[object Map]",V="[object Number]",_="[object Object]",tt="[object Promise]",nt="[object RegExp]",bt="[object Set]",Lt="[object String]",Mt="[object WeakMap]",h="[object ArrayBuffer]",w="[object DataView]",st=/^\[object .+?Constructor\]$/,it=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[v]=R[B]=R[h]=R[S]=R[w]=R[H]=R[p]=R[m]=R[E]=R[V]=R[_]=R[nt]=R[bt]=R[Lt]=R[Mt]=!1;var yt="object"==typeof global&&global&&global.Object===Object&&global,At="object"==typeof self&&self&&self.Object===Object&&self,G=yt||At||Function("return this")(),gt=J&&!J.nodeType&&J,at=gt&&Nt&&!Nt.nodeType&&Nt,ut=at&&at.exports===gt,mt=ut&&yt.process,ht=function(){try{return mt&&mt.binding&&mt.binding("util")}catch{}}(),T=ht&&ht.isTypedArray;function is(i,a){for(var u=-1,b=null==i?0:i.length;++u<b;)if(a(i[u],u,i))return!0;return!1}function le(i,a){return i.has(a)}function ls(i){var a=-1,u=Array(i.size);return i.forEach(function(b,W){u[++a]=[W,b]}),u}function Kt(i){var a=-1,u=Array(i.size);return i.forEach(function(b){u[++a]=b}),u}var i,Ne=Array.prototype,oe=Object.prototype,ae=G["__core-js_shared__"],Me=Function.prototype.toString,Pt=oe.hasOwnProperty,os=(i=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",as=oe.toString,ws=RegExp("^"+Me.call(Pt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=ut?G.Buffer:void 0,Te=G.Symbol,Ue=G.Uint8Array,we=oe.propertyIsEnumerable,ce=Ne.splice,$t=Te?Te.toStringTag:void 0,xe=Object.getOwnPropertySymbols,je=De?De.isBuffer:void 0,ue=function Ee(i,a){return function(u){return i(a(u))}}(Object.keys,Object),he=se(G,"DataView"),fe=se(G,"Map"),Pe=se(G,"Promise"),Fe=se(G,"Set"),He=se(G,"WeakMap"),te=se(Object,"create"),cs=Bt(he),ee=Bt(fe),xs=Bt(Pe),Ls=Bt(Fe),Ss=Bt(He),$e=Te?Te.prototype:void 0,Le=$e?$e.valueOf:void 0;function qt(i){var a=-1,u=null==i?0:i.length;for(this.clear();++a<u;){var b=i[a];this.set(b[0],b[1])}}function Rt(i){var a=-1,u=null==i?0:i.length;for(this.clear();++a<u;){var b=i[a];this.set(b[0],b[1])}}function Dt(i){var a=-1,u=null==i?0:i.length;for(this.clear();++a<u;){var b=i[a];this.set(b[0],b[1])}}function Se(i){var a=-1,u=null==i?0:i.length;for(this.__data__=new Dt;++a<u;)this.add(i[a])}function Gt(i){var a=this.__data__=new Rt(i);this.size=a.size}function de(i,a){for(var u=i.length;u--;)if(We(i[u][0],a))return u;return-1}function ge(i){return null==i?void 0===i?"[object Undefined]":"[object Null]":$t&&$t in Object(i)?function ne(i){var a=Pt.call(i,$t),u=i[$t];try{i[$t]=void 0;var b=!0}catch{}var W=as.call(i);return b&&(a?i[$t]=u:delete i[$t]),W}(i):function gs(i){return as.call(i)}(i)}function hs(i){return Zt(i)&&ge(i)==v}function Ke(i,a,u,b,W){return i===a||(null==i||null==a||!Zt(i)&&!Zt(a)?i!=i&&a!=a:function qe(i,a,u,b,W,$){var lt=ke(i),F=ke(a),Et=lt?B:Wt(i),dt=F?B:Wt(a),_t=(Et=Et==v?_:Et)==_,Ut=(dt=dt==v?_:dt)==_,St=Et==dt;
1if(St&&me(i)){if(!me(a))return!1;lt=!0,_t=!1}if(St&&!_t)return $||($=new Gt),lt||ys(i)?Ge(i,a,u,b,W,$):function Xs(i,a,u,b,W,$,lt){switch(u){case w:if(i.byteLength!=a.byteLength||i.byteOffset!=a.byteOffset)return!1;i=i.buffer,a=a.buffer;case h:return!(i.byteLength!=a.byteLength||!$(new Ue(i),new Ue(a)));case S:case H:case V:return We(+i,+a);case p:return i.name==a.name&&i.message==a.message;case nt:case Lt:return i==a+"";case E:var F=ls;case bt:if(F||(F=Kt),i.size!=a.size&&!(1&b))return!1;var dt=lt.get(i);if(dt)return dt==a;b|=2,lt.set(i,a);var _t=Ge(F(i),F(a),b,W,$,lt);return lt.delete(i),_t;case"[object Symbol]":if(Le)return Le.call(i)==Le.call(a)}return!1}(i,a,Et,u,b,W,$);if(!(1&u)){var wt=_t&&Pt.call(i,"__wrapped__"),Ct=Ut&&Pt.call(a,"__wrapped__");if(wt||Ct){var be=wt?i.value():i,kt=Ct?a.value():a;return $||($=new Gt),W(be,kt,u,b,$)}}return!!St&&($||($=new Gt),function Ys(i,a,u,b,W,$){var lt=1&u,F=pe(i),Et=F.length;if(Et!=pe(a).length&&!lt)return!1;for(var Ut=Et;Ut--;){var St=F[Ut];if(!(lt?St in a:Pt.call(a,St)))return!1}var wt=$.get(i);if(wt&&$.get(a))return wt==a;var Ct=!0;$.set(i,a),$.set(a,i);for(var be=lt;++Ut<Et;){var kt=i[St=F[Ut]],Ot=a[St];if(b)var Qe=lt?b(Ot,kt,St,a,i,$):b(kt,Ot,St,i,a,$);if(!(void 0===Qe?kt===Ot||W(kt,Ot,u,b,$):Qe)){Ct=!1;break}be||(be="constructor"==St)}if(Ct&&!be){var ln=i.constructor,zt=a.constructor;ln!=zt&&"constructor"in i&&"constructor"in a&&!("function"==typeof ln&&ln instanceof ln&&"function"==typeof zt&&zt instanceof zt)&&(Ct=!1)}return $.delete(i),$.delete(a),Ct}(i,a,u,b,W,$))}(i,a,u,b,Ke,W))}function Ge(i,a,u,b,W,$){var lt=1&u,F=i.length,Et=a.length;if(F!=Et&&!(lt&&Et>F))return!1;var dt=$.get(i);if(dt&&$.get(a))return dt==a;var _t=-1,Ut=!0,St=2&u?new Se:void 0;for($.set(i,a),$.set(a,i);++_t<F;){var wt=i[_t],Ct=a[_t];if(b)var be=lt?b(Ct,wt,_t,a,i,$):b(wt,Ct,_t,i,a,$);if(void 0!==be){if(be)continue;Ut=!1;break}if(St){if(!is(a,function(kt,Ot){if(!le(St,Ot)&&(wt===kt||W(wt,kt,u,b,$)))return St.push(Ot)})){Ut=!1;break}}else if(wt!==Ct&&!W(wt,Ct,u,b,$)){Ut=!1;break}}return $.delete(i),$.delete(a),Ut}function pe(i){return function Ve(i,a,u){var b=a(i);return ke(i)?b:function _e(i,a){for(var u=-1,b=a.length,W=i.length;++u<b;)i[W+u]=a[u];return i}(b,u(i))}(i,Ye,Qs)}function Ft(i,a){var u=i.__data__;return function ds(i){var a=typeof i;return"string"==a||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==i:null===i}(a)?u["string"==typeof a?"string":"hash"]:u.map}function se(i,a){var u=function Be(i,a){return i?.[a]}(i,a);return function fs(i){return!(!bs(i)||function tn(i){return!!os&&os in i}(i))&&(ms(i)?ws:st).test(Bt(i))}(u)?u:void 0}qt.prototype.clear=function Cs(){this.__data__=te?te(null):{},this.size=0},qt.prototype.delete=function qs(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a},qt.prototype.get=function ks(i){var a=this.__data__;if(te){var u=a[i];return u===Tt?void 0:u}return Pt.call(a,i)?a[i]:void 0},qt.prototype.has=function Os(i){var a=this.__data__;return te?void 0!==a[i]:Pt.call(a,i)},qt.prototype.set=function Is(i,a){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=te&&void 0===a?Tt:a,this},Rt.prototype.clear=function Rs(){this.__data__=[],this.size=0},Rt.prototype.delete=function _s(i){var a=this.__data__,u=de(a,i);return!(u<0||(u==a.length-1?a.pop():ce.call(a,u,1),--this.size,0))},Rt.prototype.get=function Bs(i){var a=this.__data__,u=de(a,i);return u<0?void 0:a[u][1]},Rt.prototype.has=function Ms(i){return de(this.__data__,i)>-1},Rt.prototype.set=function Ds(i,a){var u=this.__data__,b=de(u,i);return b<0?(++this.size,u.push([i,a])):u[b][1]=a,this},Dt.prototype.clear=function Us(){this.size=0,this.__data__={hash:new qt,map:new(fe||Rt),string:new qt}},Dt.prototype.delete=function js(i){var a=Ft(this,i).delete(i);return this.size-=a?1:0,a},Dt.prototype.get=function Ps(i){return Ft(this,i).get(i)},Dt.prototype.has=function Fs(i){return Ft(this,i).has(i)},Dt.prototype.set=function Hs(i,a){var u=Ft(this,i),b=u.size;return u.set(i,a),this.size+=u.size==b?0:1,this},Se.prototype.add=Se.prototype.push=function us(i){return this.__data__.set(i,Tt),this},Se.prototype.has=function Ce(i){return this.__data__.has(i)},Gt.prototype.clear=function ze(){this.__data__=new Rt,this.size=0},Gt.prototype.delete=function $s(i){var a=this.__data__,u=a.delete(i);return this.size=a.size,u},Gt.prototype.get=function zs(i){return this.__data__.get(i)},Gt.prototype.has=function Vs(i){return this.__data__.has(i)},Gt.prototype.set=function Ks(i,a){var u=this.__data__;if(u instanceof Rt){var b=u.__data__;if(!fe||b.length<199)return b.push([i,a]),this.size=++u.size,this;u=this.__data__=new Dt(b)}return u.set(i,a),this.size=u.size,this};var Qs=xe?function(i){return null==i?[]:(i=Object(i),function It(i,a){for(var u=-1,b=null==i?0:i.length,W=0,$=[];++u<b;){var lt=i[u];
1a(lt,u,i)&&($[W++]=lt)}return $}(xe(i),function(a){return we.call(i,a)}))}:function nn(){return[]},Wt=ge;function Js(i,a){return!!(a=a??P)&&("number"==typeof i||it.test(i))&&i>-1&&i%1==0&&i<a}function Bt(i){if(null!=i){try{return Me.call(i)}catch{}try{return i+""}catch{}}return""}function We(i,a){return i===a||i!=i&&a!=a}(he&&Wt(new he(new ArrayBuffer(1)))!=w||fe&&Wt(new fe)!=E||Pe&&Wt(Pe.resolve())!=tt||Fe&&Wt(new Fe)!=bt||He&&Wt(new He)!=Mt)&&(Wt=function(i){var a=ge(i),u=a==_?i.constructor:void 0,b=u?Bt(u):"";if(b)switch(b){case cs:return w;case ee:return E;case xs:return tt;case Ls:return bt;case Ss:return Mt}return a});var ps=hs(function(){return arguments}())?hs:function(i){return Zt(i)&&Pt.call(i,"callee")&&!we.call(i,"callee")},ke=Array.isArray,me=je||function rn(){return!1};function ms(i){if(!bs(i))return!1;var a=ge(i);return a==m||"[object GeneratorFunction]"==a||"[object AsyncFunction]"==a||"[object Proxy]"==a}function Xe(i){return"number"==typeof i&&i>-1&&i%1==0&&i<=P}function bs(i){var a=typeof i;return null!=i&&("object"==a||"function"==a)}function Zt(i){return null!=i&&"object"==typeof i}var ys=T?function Ae(i){return function(a){return i(a)}}(T):function Ws(i){return Zt(i)&&Xe(i.length)&&!!R[ge(i)]};function Ye(i){return function Ze(i){return null!=i&&Xe(i.length)&&!ms(i)}(i)?function Gs(i,a){var u=ke(i),b=!u&&ps(i),W=!u&&!b&&me(i),$=!u&&!b&&!W&&ys(i),lt=u||b||W||$,F=lt?function Ns(i,a){for(var u=-1,b=Array(i);++u<i;)b[u]=a(u);return b}(i.length,String):[],Et=F.length;for(var dt in i)(a||Pt.call(i,dt))&&(!lt||!("length"==dt||W&&("offset"==dt||"parent"==dt)||$&&("buffer"==dt||"byteLength"==dt||"byteOffset"==dt)||Js(dt,Et)))&&F.push(dt);return F}(i):function Zs(i){if(!function en(i){var a=i&&i.constructor;return i===("function"==typeof a&&a.prototype||oe)}(i))return ue(i);var a=[];for(var u in Object(i))Pt.call(i,u)&&"constructor"!=u&&a.push(u);return a}(i)}Nt.exports=function sn(i,a){return Ke(i,a)}},1561(Nt,J,C){"use strict";Object.defineProperty(J,"__esModule",{value:!0});const X=C(8328),Tt=C(5667);var ft,K;(K=ft||(ft={})).compose=function P(S={},H={},p=!1){"object"!=typeof S&&(S={}),"object"!=typeof H&&(H={});let m=X(H);p||(m=Object.keys(m).reduce((y,E)=>(null!=m[E]&&(y[E]=m[E]),y),{}));for(const y in S)void 0!==S[y]&&void 0===H[y]&&(m[y]=S[y]);return Object.keys(m).length>0?m:void 0},K.diff=function v(S={},H={}){"object"!=typeof S&&(S={}),"object"!=typeof H&&(H={});const p=Object.keys(S).concat(Object.keys(H)).reduce((m,y)=>(Tt(S[y],H[y])||(m[y]=void 0===H[y]?null:H[y]),m),{});return Object.keys(p).length>0?p:void 0},K.invert=function B(S={},H={}){S=S||{};const p=Object.keys(H).reduce((m,y)=>(H[y]!==S[y]&&void 0!==S[y]&&(m[y]=H[y]),m),{});return Object.keys(S).reduce((m,y)=>(S[y]!==H[y]&&void 0===H[y]&&(m[y]=null),m),p)},K.transform=function D(S,H,p=!1){if("object"!=typeof S)return H;if("object"!=typeof H)return;if(!p)return H;const m=Object.keys(H).reduce((y,E)=>(void 0===S[E]&&(y[E]=H[E]),y),{});return Object.keys(m).length>0?m:void 0},J.default=ft},2577(Nt,J,C){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.AttributeMap=J.OpIterator=J.Op=void 0;const X=C(8655),Tt=C(8328),ft=C(5667),K=C(1561);J.AttributeMap=K.default;const P=C(8964);J.Op=P.default;const v=C(6366);J.OpIterator=v.default;const D=(H,p)=>{if("object"!=typeof H||null===H)throw new Error("cannot retain a "+typeof H);if("object"!=typeof p||null===p)throw new Error("cannot retain a "+typeof p);const m=Object.keys(H)[0];if(!m||m!==Object.keys(p)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(p)[0]}`);return[m,H[m],p[m]]};class S{constructor(p){this.ops=Array.isArray(p)?p:null!=p&&Array.isArray(p.ops)?p.ops:[]}static registerEmbed(p,m){this.handlers[p]=m}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const m=this.handlers[p];if(!m)throw new Error(`no handlers for embed type "${p}"`);return m}insert(p,m){const y={};return"string"==typeof p&&0===p.length?this:(y.insert=p,null!=m&&"object"==typeof m&&Object.keys(m).length>0&&(y.attributes=m),this.push(y))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,m){if("number"==typeof p&&p<=0)return this;const y={retain:p};return null!=m&&"object"==typeof m&&Object.keys(m).length>0&&(y.attributes=m),this.push(y)}push(p){let m=this.ops.length,y=this.ops[m-1];if(p=Tt(p),"object"==typeof y){if("number"==typeof p.delete&&"number"==typeof y.delete)return this.ops[m-1]={delete:y.delete+p.delete},this;if("number"==typeof y.delete&&null!=p.insert&&(m-=1,y=this.ops[m-1],"object"!=typeof y))return this.ops.unshift(p),this;if(ft(p.attributes,y.attributes)){if("string"==typeof p.insert&&"string"==typeof y.insert)return this.ops[m-1]={insert:y.insert+p.insert},"object"==typeof p.attributes&&(this.ops[m-1].attributes=p.attributes),this;if("number"==typeof p.retain&&"number"==typeof y.retain)return this.ops[m-1]={retain:y.retain+p.retain},"object"==typeof p.attributes&&(this.ops[m-1].attributes=p.attributes),this}}return m===this.ops.length?this.ops.push(p):this.ops.splice(m,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&"number"==typeof p.retain&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const m=[],y=[];return this.forEach(E=>{(p(E)?m:y).push(E)}),[m,y]}reduce(p,m){return this.ops.reduce(p,m)}changeLength(){return this.reduce((p,m)=>
vendor: 4,568 bytes, line 1
1m.insert?p+P.default.length(m):m.delete?p-m.delete:p,0)}length(){return this.reduce((p,m)=>p+P.default.length(m),0)}slice(p=0,m=1/0){const y=[],E=new v.default(this.ops);let V=0;for(;V<m&&E.hasNext();){let U;V<p?U=E.next(p-V):(U=E.next(m-V),y.push(U)),V+=P.default.length(U)}return new S(y)}compose(p){const m=new v.default(this.ops),y=new v.default(p.ops),E=[],V=y.peek();if(null!=V&&"number"==typeof V.retain&&null==V.attributes){let _=V.retain;for(;"insert"===m.peekType()&&m.peekLength()<=_;)_-=m.peekLength(),E.push(m.next());V.retain-_>0&&y.next(V.retain-_)}const U=new S(E);for(;m.hasNext()||y.hasNext();)if("insert"===y.peekType())U.push(y.next());else if("delete"===m.peekType())U.push(m.next());else{const _=Math.min(m.peekLength(),y.peekLength()),tt=m.next(_),et=y.next(_);if(et.retain){const nt={};if("number"==typeof tt.retain)nt.retain="number"==typeof et.retain?_:et.retain;else if("number"==typeof et.retain)null==tt.retain?nt.insert=tt.insert:nt.retain=tt.retain;else{const Lt=null==tt.retain?"insert":"retain",[ct,Ht,Mt]=D(tt[Lt],et.retain),h=S.getHandler(ct);nt[Lt]={[ct]:h.compose(Ht,Mt,"retain"===Lt)}}const bt=K.default.compose(tt.attributes,et.attributes,"number"==typeof tt.retain);if(bt&&(nt.attributes=bt),U.push(nt),!y.hasNext()&&ft(U.ops[U.ops.length-1],nt)){const Lt=new S(m.rest());return U.concat(Lt).chop()}}else"number"==typeof et.delete&&("number"==typeof tt.retain||"object"==typeof tt.retain&&null!==tt.retain)&&U.push(et)}return U.chop()}concat(p){const m=new S(this.ops.slice());return p.ops.length>0&&(m.push(p.ops[0]),m.ops=m.ops.concat(p.ops.slice(1))),m}diff(p,m){if(this.ops===p.ops)return new S;const y=[this,p].map(tt=>tt.map(et=>{if(null!=et.insert)return"string"==typeof et.insert?et.insert:"\0";throw new Error("diff() called "+(tt===p?"on":"with")+" non-document")}).join("")),E=new S,V=X(y[0],y[1],m,!0),U=new v.default(this.ops),_=new v.default(p.ops);return V.forEach(tt=>{let et=tt[1].length;for(;et>0;){let nt=0;switch(tt[0]){case X.INSERT:nt=Math.min(_.peekLength(),et),E.push(_.next(nt));break;case X.DELETE:nt=Math.min(et,U.peekLength()),U.next(nt),E.delete(nt);break;case X.EQUAL:nt=Math.min(U.peekLength(),_.peekLength(),et);const bt=U.next(nt),Lt=_.next(nt);ft(bt.insert,Lt.insert)?E.retain(nt,K.default.diff(bt.attributes,Lt.attributes)):E.push(Lt).delete(nt)}et-=nt}}),E.chop()}eachLine(p,m="\n"){const y=new v.default(this.ops);let E=new S,V=0;for(;y.hasNext();){if("insert"!==y.peekType())return;const U=y.peek(),_=P.default.length(U)-y.peekLength(),tt="string"==typeof U.insert?U.insert.indexOf(m,_)-_:-1;if(tt<0)E.push(y.next());else if(tt>0)E.push(y.next(tt));else{if(!1===p(E,y.next(1).attributes||{},V))return;V+=1,E=new S}}E.length()>0&&p(E,{},V)}invert(p){const m=new S;return this.reduce((y,E)=>{if(E.insert)m.delete(P.default.length(E));else{if("number"==typeof E.retain&&null==E.attributes)return m.retain(E.retain),y+E.retain;if(E.delete||"number"==typeof E.retain){const V=E.delete||E.retain;return p.slice(y,y+V).forEach(_=>{E.delete?m.push(_):E.retain&&E.attributes&&m.retain(P.default.length(_),K.default.invert(E.attributes,_.attributes))}),y+V}if("object"==typeof E.retain&&null!==E.retain){const V=p.slice(y,y+1),U=new v.default(V.ops).next(),[_,tt,et]=D(E.retain,U.insert),nt=S.getHandler(_);return m.retain({[_]:nt.invert(tt,et)},K.default.invert(E.attributes,U.attributes)),y+1}}return y},0),m.chop()}transform(p,m=!1){if(m=!!m,"number"==typeof p)return this.transformPosition(p,m);const y=p,E=new v.default(this.ops),V=new v.default(y.ops),U=new S;for(;E.hasNext()||V.hasNext();)if("insert"!==E.peekType()||!m&&"insert"===V.peekType())if("insert"===V.peekType())U.push(V.next());else{const _=Math.min(E.peekLength(),V.peekLength()),tt=E.next(_),et=V.next(_);if(tt.delete)continue;if(et.delete)U.push(et);else{const nt=tt.retain,bt=et.retain;let Lt="object"==typeof bt&&null!==bt?bt:_;if("object"==typeof nt&&null!==nt&&"object"==typeof bt&&null!==bt){const ct=Object.keys(nt)[0];if(ct===Object.keys(bt)[0]){const Ht=S.getHandler(ct);Ht&&(Lt={[ct]:Ht.transform(nt[ct],bt[ct],m)})}}U.retain(Lt,K.default.transform(tt.attributes,et.attributes,m))}}else U.retain(P.default.length(E.next()));return U.chop()}transformPosition(p,m=!1){m=!!m;const y=new v.default(this.ops);let E=0;for(;y.hasNext()&&E<=p;){const V=y.peekLength(),U=y.peekType();y.next(),"delete"!==U?("insert"===U&&(E<p||!m)&&(p+=V),E+=V):p-=Math.min(V,p-E)}return p}}S.Op=P.default,S.OpIterator=v.default,S.AttributeMap=K.default,S.handlers={},J.default=S,Nt.exports=S,Nt.exports.default=S},8964(Nt,J){"use strict";var C;
1Object.defineProperty(J,"__esModule",{value:!0}),(C||(C={})).length=function Tt(ft){return"number"==typeof ft.delete?ft.delete:"number"==typeof ft.retain?ft.retain:"object"==typeof ft.retain&&null!==ft.retain?1:"string"==typeof ft.insert?ft.insert.length:1},J.default=C},6366(Nt,J,C){"use strict";Object.defineProperty(J,"__esModule",{value:!0});const X=C(8964);J.default=class Tt{constructor(K){this.ops=K,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(K){K||(K=1/0);const P=this.ops[this.index];if(P){const v=this.offset,B=X.default.length(P);if(K>=B-v?(K=B-v,this.index+=1,this.offset=0):this.offset+=K,"number"==typeof P.delete)return{delete:K};{const D={};return P.attributes&&(D.attributes=P.attributes),"number"==typeof P.retain?D.retain=K:"object"==typeof P.retain&&null!==P.retain?D.retain=P.retain:D.insert="string"==typeof P.insert?P.insert.substr(v,K):P.insert,D}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?X.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const K=this.ops[this.index];return K?"number"==typeof K.delete?"delete":"number"==typeof K.retain||"object"==typeof K.retain&&null!==K.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const K=this.offset,P=this.index,v=this.next(),B=this.ops.slice(this.index);return this.offset=K,this.index=P,[v].concat(B)}}return[]}}},9280(Nt){"use strict";var J=Object.prototype.hasOwnProperty,C="~";function X(){}function Tt(v,B,D){this.fn=v,this.context=B,this.once=D||!1}function ft(v,B,D,S,H){if("function"!=typeof D)throw new TypeError("The listener must be a function");var p=new Tt(D,S||v,H),m=C?C+B:B;return v._events[m]?v._events[m].fn?v._events[m]=[v._events[m],p]:v._events[m].push(p):(v._events[m]=p,v._eventsCount++),v}function K(v,B){0==--v._eventsCount?v._events=new X:delete v._events[B]}function P(){this._events=new X,this._eventsCount=0}Object.create&&(X.prototype=Object.create(null),(new X).__proto__||(C=!1)),P.prototype.eventNames=function(){var D,S,B=[];if(0===this._eventsCount)return B;for(S in D=this._events)J.call(D,S)&&B.push(C?S.slice(1):S);return Object.getOwnPropertySymbols?B.concat(Object.getOwnPropertySymbols(D)):B},P.prototype.listeners=function(B){var S=this._events[C?C+B:B];if(!S)return[];if(S.fn)return[S.fn];for(var H=0,p=S.length,m=new Array(p);H<p;H++)m[H]=S[H].fn;return m},P.prototype.listenerCount=function(B){var S=this._events[C?C+B:B];return S?S.fn?1:S.length:0},P.prototype.emit=function(B,D,S,H,p,m){var y=C?C+B:B;if(!this._events[y])return!1;var U,_,E=this._events[y],V=arguments.length;if(E.fn){switch(E.once&&this.removeListener(B,E.fn,void 0,!0),V){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,D),!0;case 3:return E.fn.call(E.context,D,S),!0;case 4:return E.fn.call(E.context,D,S,H),!0;case 5:return E.fn.call(E.context,D,S,H,p),!0;case 6:return E.fn.call(E.context,D,S,H,p,m),!0}for(_=1,U=new Array(V-1);_<V;_++)U[_-1]=arguments[_];E.fn.apply(E.context,U)}else{var et,tt=E.length;for(_=0;_<tt;_++)switch(E[_].once&&this.removeListener(B,E[_].fn,void 0,!0),V){case 1:E[_].fn.call(E[_].context);break;case 2:E[_].fn.call(E[_].context,D);break;case 3:E[_].fn.call(E[_].context,D,S);break;case 4:E[_].fn.call(E[_].context,D,S,H);break;default:if(!U)for(et=1,U=new Array(V-1);et<V;et++)U[et-1]=arguments[et];E[_].fn.apply(E[_].context,U)}}return!0},P.prototype.on=function(B,D,S){return ft(this,B,D,S,!1)},P.prototype.once=function(B,D,S){return ft(this,B,D,S,!0)},P.prototype.removeListener=function(B,D,S,H){var p=C?C+B:B;if(!this._events[p])return this;if(!D)return K(this,p),this;var m=this._events[p];if(m.fn)m.fn===D&&(!H||m.once)&&(!S||m.context===S)&&K(this,p);else{for(var y=0,E=[],V=m.length;y<V;y++)(m[y].fn!==D||H&&!m[y].once||S&&m[y].context!==S)&&E.push(m[y]);E.length?this._events[p]=1===E.length?E[0]:E:K(this,p)}return this},P.prototype.removeAllListeners=function(B){var D;return B?this._events[D=C?C+B:B]&&K(this,D):(this._events=new X,this._eventsCount=0),this},P.prototype.off=P.prototype.removeListener,P.prototype.addListener=P.prototype.on,P.prefixed=C,P.EventEmitter=P,Nt.exports=P},2740(Nt,J,C){"use strict";C.d(J,{default:()=>Xl});var X={};C.r(X),C.d(X,{Attributor:()=>B,AttributorStore:()=>tt,BlockBlot:()=>O,ClassAttributor:()=>y,ContainerBlot:()=>st,EmbedBlot:()=>R,InlineBlot:()=>q,LeafBlot:()=>ct,ParentBlot:()=>d,Registry:()=>H,Scope:()=>v,ScrollBlot:()=>at,StyleAttributor:()=>U,TextBlot:()=>ht});var Tt=C(2817);const P=(0,C(2190).A)(function(r,e,t){(0,Tt.A)(r,e,t)});var v=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(v||{});class B{constructor(e,t,s={}){this.attrName=e,this.keyName=t,this.scope=null!=s.scope?s.scope&v.LEVEL|v.TYPE&v.ATTRIBUTE:v.ATTRIBUTE,null!=s.whitelist&&(this.whitelist=s.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}
vendor: 16,597 bytes, line 1
1class D extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}let H=(()=>{let r=class Yn{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,s=!1){if(null==t)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(s){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,s)}return null}create(t,s,n){const l=this.query(s);if(null==l)throw new D(`Unable to create ${s} blot`);const o=l,c=s instanceof Node||s.nodeType===Node.TEXT_NODE?s:o.create(n),f=new o(t,c,n);return Yn.blots.set(f.domNode,f),f}find(t,s=!1){return Yn.find(t,s)}query(t,s=v.ANY){let n;return"string"==typeof t?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof t?t&v.LEVEL&v.BLOCK?n=this.types.block:t&v.LEVEL&v.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(l=>(n=this.classes[l],!!n)),n=n||this.tags[t.tagName]),null==n?null:"scope"in n&&s&v.LEVEL&n.scope&&s&v.TYPE&n.scope?n:null}register(...t){return t.map(s=>{const n="blotName"in s,l="attrName"in s;if(!n&&!l)throw new D("Invalid definition");if(n&&"abstract"===s.blotName)throw new D("Cannot register abstract class");return this.types[n?s.blotName:l?s.attrName:void 0]=s,l?"string"==typeof s.keyName&&(this.attributes[s.keyName]=s):n&&(s.className&&(this.classes[s.className]=s),s.tagName&&(s.tagName=Array.isArray(s.tagName)?s.tagName.map(c=>c.toUpperCase()):s.tagName.toUpperCase(),(Array.isArray(s.tagName)?s.tagName:[s.tagName]).forEach(c=>{(null==this.tags[c]||null==s.className)&&(this.tags[c]=s)}))),s})}};return r.blots=new WeakMap,r})();function p(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>0===t.indexOf(`${e}-`))}const y=class m extends B{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){p(e,this.keyName).forEach(t=>{e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")}value(e){const t=(p(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}};function E(r){const e=r.split("-"),t=e.slice(1).map(s=>s[0].toUpperCase()+s.slice(1)).join("");return e[0]+t}const U=class V extends B{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return!!this.canAdd(e,t)&&(e.style[E(this.keyName)]=t,!0)}remove(e){e.style[E(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[E(this.keyName)];return this.canAdd(e,t)?t:""}},tt=class _{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=H.find(this.domNode);if(null==e)return;const t=B.keys(this.domNode),s=y.keys(this.domNode),n=U.keys(this.domNode);t.concat(s).concat(n).forEach(l=>{const o=e.scroll.query(l,v.ATTRIBUTE);o instanceof B&&(this.attributes[o.attrName]=o)})}copy(e){Object.keys(this.attributes).forEach(t=>{const s=this.attributes[t].value(this.domNode);e.format(t,s)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}},et=class{constructor(e,t){this.scroll=e,this.domNode=t,H.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(null==this.tagName)throw new D("Blot definition missing tagName");let t,s;return Array.isArray(this.tagName)?("string"==typeof e?(s=e.toUpperCase(),parseInt(s,10).toString()===s&&(s=parseInt(s,10))):"number"==typeof e&&(s=e),t="number"==typeof s?document.createElement(this.tagName[s-1]):s&&this.tagName.indexOf(s)>-1?document.createElement(s):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),H.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,s,n){const l=this.isolate(e,t);if(null!=this.scroll.query(s,v.BLOT)&&n)l.wrap(s,n);else if(null!=this.scroll.query(s,v.ATTRIBUTE)){const o=this.scroll.create(this.statics.scope);l.wrap(o),o.format(s,n)}}insertAt(e,t,s){const n=null==s?this.scroll.create("text",t):this.scroll.create(t,s),l=this.split(e);this.parent.insertBefore(n,l||void 0)}isolate(e,t){const s=this.split(e);if(null==s)throw new Error("Attempt to isolate at end");return s.split(t),s}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const s="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(s,this.next||void 0),this.remove()),s}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){const s="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(s,this.next||void 0),"function"!=typeof s.appendChild)throw new D(`Cannot wrap ${e}`);return s.appendChild(this),s}};et.blotName="abstract";let nt=et;const bt=class extends nt{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let s=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(s+=1),[this.parent.domNode,s]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};bt.scope=v.INLINE_BLOT;const ct=bt;class Ht{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let s=t();for(;s&&e>0;)e-=1,s=t();return s}contains(e){const t=this.iterator();let s=t();for(;s;){if(s===e)return!0;s=t()}return!1}indexOf(e){const t=this.iterator();let s=t(),n=0;for(;s;){if(s===e)return n;n+=1,s=t()}return-1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,s=this.head;for(;null!=s;){if(s===e)return t;t+=s.length(),s=s.next}return-1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){const s=this.iterator();let n=s();for(;n;){const l=n.length();if(e<l||t&&e===l&&(null==n.next||0!==n.next.length()))return[n,e];e-=l,n=s()}return[null,0]}forEach(e){const t=this.iterator();let s=t();for(;s;)e(s),s=t()}forEachAt(e,t,s){if(t<=0)return;const[n,l]=this.find(e);let o=e-l;const c=this.iterator(n);let f=c();for(;f&&o<e+t;){const g=f.length();e>o?s(f,e-o,Math.min(t,o+g-e)):s(f,0,Math.min(g,e+t-o)),o+=g,f=c()}}map(e){return this.reduce((t,s)=>(t.push(e(s)),t),[])}reduce(e,t){const s=this.iterator();let n=s();for(;n;)t=e(t,n),n=s();return t}}function Mt(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const s=e.create(v.INLINE);return Array.from(r.childNodes).forEach(n=>{s.domNode.appendChild(n)}),r.parentNode&&r.parentNode.replaceChild(s.domNode,r),s.attach(),s}}const d=(()=>{let r=class Re extends nt{constructor(t,s){super(t,s),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,Re.uiClass&&this.uiNode.classList.add(Re.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ht,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const s=Mt(t,this.scroll);this.insertBefore(s,this.children.head||void 0)}catch(s){if(s instanceof D)return;throw s}})}deleteAt(t,s){if(0===t&&s===this.length())return this.remove();this.children.forEachAt(t,s,(n,l,o)=>{n.deleteAt(l,o)})}descendant(t,s=0){const[n,l]=this.children.find(s);return null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t?[n,l]:n instanceof Re?n.descendant(t,l):[null,-1]}descendants(t,s=0,n=Number.MAX_VALUE){let l=[],o=n;return this.children.forEachAt(s,n,(c,f,g)=>{(null==t.blotName&&t(c)||null!=t.blotName&&c instanceof t)&&l.push(c),c instanceof Re&&(l=l.concat(c.descendants(t,f,o))),o-=g}),l}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(s=>{t||this.statics.allowedChildren.some(n=>s instanceof n)||(s.statics.scope===v.BLOCK_BLOT?(null!=s.next&&this.splitAfter(s),null!=s.prev&&this.splitAfter(s.prev),s.parent.unwrap(),t=!0):s instanceof Re?s.unwrap():s.remove())})}formatAt(t,s,n,l){this.children.forEachAt(t,s,(o,c,f)=>{o.formatAt(c,f,n,l)})}insertAt(t,s,n){const[l,o]=this.children.find(t);if(l)l.insertAt(o,s,n);else{const c=null==n?this.scroll.create("text",s):this.scroll.create(s,n);this.appendChild(c)}}insertBefore(t,s){null!=t.parent&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,s||null),t.parent=this,null!=s&&(n=s.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,s)=>t+s.length(),0)}moveChildren(t,s){this.children.forEach(n=>{t.insertBefore(n,s)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s)}else this.remove()}path(t,s=!1){const[n,l]=this.children.find(t,s),o=[[this,t]];return n instanceof Re?o.concat(n.path(l,s)):(null!=n&&o.push([n,l]),o)}removeChild(t){this.children.remove(t)}replaceWith(t,s){const n="string"==typeof t?this.scroll.create(t,s):t;return n instanceof Re&&this.moveChildren(n),super.replaceWith(n)}split(t,s=!1){if(!s){if(0===t)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(l,o,c)=>{const f=l.split(o,s);null!=f&&n.appendChild(f)}),n}splitAfter(t){const s=this.clone();for(;null!=t.next;)s.appendChild(t.next);return this.parent&&this.parent.insertBefore(s,this.next||void 0),s}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,s){const n=[],l=[];t.forEach(o=>{o.target===this.domNode&&"childList"===o.type&&(n.push(...o.addedNodes),l.push(...o.removedNodes))}),l.forEach(o=>{if(null!=o.parentNode&&"IFRAME"!==o.tagName&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const c=this.scroll.find(o);null!=c&&(null==c.domNode.parentNode||c.domNode.parentNode===this.domNode)&&c.detach()}),n.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,c)=>o===c?0:o.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let c=null;null!=o.nextSibling&&(c=this.scroll.find(o.nextSibling));const f=Mt(o,this.scroll);(f.next!==c||null==f.next)&&(null!=f.parent&&f.parent.removeChild(this),this.insertBefore(f,c||void 0))}),this.enforceAllowedChildren()}};return r.uiClass="",r})(),x=class Es extends d{static create(e){return super.create(e)}static formats(e,t){const s=t.query(Es.blotName);if(null==s||e.tagName!==s.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new tt(this.domNode)}format(e,t){if(e!==this.statics.blotName||t){const s=this.scroll.query(e,v.INLINE);if(null==s)return;s instanceof B?this.attributes.attribute(s,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}else this.children.forEach(s=>{s instanceof Es||(s=s.wrap(Es.blotName,!0)),this.attributes.copy(s)}),this.unwrap()}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,s,n){null!=this.formats()[s]||this.scroll.query(s,v.ATTRIBUTE)?this.isolate(e,t).format(s,n):super.formatAt(e,t,s,n)}optimize(e){super.optimize(e);const t=this.formats();if(0===Object.keys(t).length)return this.unwrap();const s=this.next;s instanceof Es&&s.prev===this&&function k(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}(t,s.formats())&&(s.moveChildren(this),s.remove())}replaceWith(e,t){const s=super.replaceWith(e,t);return this.attributes.copy(s),s}update(e,t){super.update(e,t),e.some(s=>s.target===this.domNode&&"attributes"===s.type)&&this.attributes.build()}wrap(e,t){const s=super.wrap(e,t);return s instanceof Es&&this.attributes.move(s),s}};x.allowedChildren=[x,ct],x.blotName="inline",x.scope=v.INLINE_BLOT,x.tagName="SPAN";const q=x,I=class Qn extends d{static create(e){return super.create(e)}static formats(e,t){const s=t.query(Qn.blotName);if(null==s||e.tagName!==s.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new tt(this.domNode)}format(e,t){const s=this.scroll.query(e,v.BLOCK);null!=s&&(s instanceof B?this.attributes.attribute(s,t):e!==this.statics.blotName||t?t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t):this.replaceWith(Qn.blotName))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,s,n){null!=this.scroll.query(s,v.BLOCK)?this.format(s,n):super.formatAt(e,t,s,n)}insertAt(e,t,s){if(null==s||null!=this.scroll.query(t,v.INLINE))super.insertAt(e,t,s);else{const n=this.split(e);if(null==n)throw new Error("Attempt to insertAt after block boundaries");{const l=this.scroll.create(t,s);n.parent.insertBefore(l,n)}}}replaceWith(e,t){const s=super.replaceWith(e,t);return this.attributes.copy(s),s}update(e,t){super.update(e,t),e.some(s=>s.target===this.domNode&&"attributes"===s.type)&&this.attributes.build()}};I.blotName="block",I.scope=v.BLOCK_BLOT,I.tagName="P",I.allowedChildren=[q,I,ct];const O=I,Y=class extends d{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,s,n){super.formatAt(e,t,s,n),this.enforceAllowedChildren()}insertAt(e,t,s){super.insertAt(e,t,s),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Y.blotName="container",Y.scope=v.BLOCK_BLOT;const st=Y,R=class it extends ct{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,s,n){0===e&&t===this.length()?this.format(s,n):super.formatAt(e,t,s,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},yt={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},G=class extends d{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(s=>{this.update(s)}),this.observer.observe(this.domNode,yt),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const s=this.registry.find(e,t);return s?s.scroll===this?s:t?this.find(s.scroll.domNode.parentNode,!0):null:null}query(e,t=v.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEac
1h(s=>{s.remove()}):super.deleteAt(e,t)}formatAt(e,t,s,n){this.update(),super.formatAt(e,t,s,n)}insertAt(e,t,s){this.update(),super.insertAt(e,t,s)}optimize(e=[],t={}){super.optimize(t);const s=t.mutationsMap||new WeakMap;let n=Array.from(this.observer.takeRecords());for(;n.length>0;)e.push(n.pop());const l=(f,g=!0)=>{null==f||f===this||null!=f.domNode.parentNode&&(s.has(f.domNode)||s.set(f.domNode,[]),g&&l(f.parent))},o=f=>{s.has(f.domNode)&&(f instanceof d&&f.children.forEach(o),s.delete(f.domNode),f.optimize(t))};let c=e;for(let f=0;c.length>0;f+=1){if(f>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(g=>{const L=this.find(g.target,!0);null!=L&&(L.domNode===g.target&&("childList"===g.type?(l(this.find(g.previousSibling,!1)),Array.from(g.addedNodes).forEach(j=>{const Z=this.find(j,!1);l(Z,!1),Z instanceof d&&Z.children.forEach(ot=>{l(ot,!1)})})):"attributes"===g.type&&l(L.prev)),l(L))}),this.children.forEach(o),c=Array.from(this.observer.takeRecords()),n=c.slice();n.length>0;)e.push(n.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const s=new WeakMap;e.map(n=>{const l=this.find(n.target,!0);return null==l?null:s.has(l.domNode)?(s.get(l.domNode).push(n),null):(s.set(l.domNode,[n]),l)}).forEach(n=>{null!=n&&n!==this&&s.has(n.domNode)&&n.update(s.get(n.domNode)||[],t)}),t.mutationsMap=s,s.has(this.domNode)&&super.update(s.get(this.domNode),t),this.optimize(e,t)}};G.blotName="scroll",G.defaultChild=O,G.allowedChildren=[O,st],G.scope=v.BLOCK_BLOT,G.tagName="DIV";const at=G,ut=class zr extends ct{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,s){null==s?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,s)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof zr&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const s=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(s,this.next||void 0),this.text=this.statics.value(this.domNode),s}update(e,t){e.some(s=>"characterData"===s.type&&s.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ut.blotName="text",ut.scope=v.INLINE_BLOT;const ht=ut;var T=C(2577),It=C(5401);var Ns=C(1984),Ae=C(9898),le=C(2662);var Ee=C(133);var Ts=C(9933),oe=C(4528),ae=C(5844);var os=C(2944),as=C(8010),ws=C(6032);const Ue=Object.getOwnPropertySymbols?function(r){for(var e=[];r;)(0,os.A)(e,(0,ae.A)(r)),r=(0,as.A)(r);return e}:ws.A;var $t=C(7895),xe=C(6658);const ue=function je(r){return(0,xe.A)(r,Ee.A,Ue)};var he=C(1350),Pe=Object.prototype.hasOwnProperty;var te=C(5152);var xs=/\w*$/;var $e=C(6944),Le=$e.A?$e.A.prototype:void 0,qt=Le?Le.valueOf:void 0;var ks=C(4314);const zs=function $s(r,e,t){var s=r.constructor;switch(e){case"[object ArrayBuffer]":return(0,te.A)(r);case"[object Boolean]":case"[object Date]":return new s(+r);case"[object DataView]":return function cs(r,e){var t=e?(0,te.A)(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}(r,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,ks.A)(r,t);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(r);case"[object RegExp]":return function Ls(r){var e=new r.constructor(r.source,xs.exec(r));return e.lastIndex=r.lastIndex,e}(r);case"[object Symbol]":return function Cs(r){return qt?Object(qt.call(r)):{}}(r)}};var Vs=C(923),Ks=C(3744),Gs=C(1758),de=C(2661);var Ke=C(778),qe=C(3340),fs=qe.A&&qe.A.isMap;const Zs=fs?(0,Ke.A)(fs):function ge(r){return(0,de.A)(r)&&"[object Map]"==(0,he.A)(r)};var Ge=C(554);var Ft=qe.A&&qe.A.isSet;const ne=Ft?(0,Ke.A)(Ft):function Ys(r){return(0,de.A)(r)&&"[object Set]"==(0,he.A)(r)};var ds="[object Arguments]",We="[object Function]",me="[object Object]",F={};F[ds]=F["[object Array]"]=F["[object ArrayBuffer]"]=F["[object DataView]"]=F["[object Boolean]"]=F["[object Date]"]=F["[object Float32Array]"]=F["[object Float64Array
1]"]=F["[object Int8Array]"]=F["[object Int16Array]"]=F["[object Int32Array]"]=F["[object Map]"]=F["[object Number]"]=F[me]=F["[object RegExp]"]=F["[object Set]"]=F["[object String]"]=F["[object Symbol]"]=F["[object Uint8Array]"]=F["[object Uint8ClampedArray]"]=F["[object Uint16Array]"]=F["[object Uint32Array]"]=!0,F["[object Error]"]=F[We]=F["[object WeakMap]"]=!1;const dt=function Et(r,e,t,s,n,l){var o,c=1&e,f=2&e,g=4&e;if(t&&(o=n?t(r,s,n,l):t(r)),void 0!==o)return o;if(!(0,Ge.A)(r))return r;var L=(0,Ks.A)(r);if(L){if(o=function Fe(r){var e=r.length,t=new r.constructor(e);return e&&"string"==typeof r[0]&&Pe.call(r,"index")&&(t.index=r.index,t.input=r.input),t}(r),!c)return(0,oe.A)(r,o)}else{var j=(0,he.A)(r),Z=j==We||"[object GeneratorFunction]"==j;if((0,Gs.A)(r))return(0,Ts.A)(r,c);if(j==me||j==ds||Z&&!n){if(o=f||Z?{}:(0,Vs.A)(r),!c)return f?function we(r,e){return(0,Ae.A)(r,Ue(r),e)}(r,function Kt(r,e){return r&&(0,Ae.A)(e,(0,Ee.A)(e),r)}(o,r)):function Me(r,e){return(0,Ae.A)(r,(0,ae.A)(r),e)}(r,function Be(r,e){return r&&(0,Ae.A)(e,(0,le.A)(e),r)}(o,r))}else{if(!F[j])return n?r:{};o=zs(r,j,c)}}l||(l=new It.A);var ot=l.get(r);if(ot)return ot;l.set(r,o),ne(r)?r.forEach(function(xt){o.add(Et(xt,e,t,xt,r,l))}):Zs(r)&&r.forEach(function(xt,rt){o.set(rt,Et(xt,e,t,rt,r,l))});var vt=L?void 0:(g?f?ue:$t.A:f?Ee.A:le.A)(r);return function _e(r,e){for(var t=-1,s=null==r?0:r.length;++t<s&&!1!==e(r[t],t,r););}(vt||r,function(xt,rt){vt&&(xt=r[rt=xt]),(0,Ns.A)(o,rt,Et(xt,e,t,rt,r,l))}),o},wt=function St(r){return dt(r,5)};var Ct=C(977);const kt=(()=>{class r extends R{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}return r.blotName="break",r.tagName="BR",r})();class Ot extends ht{}function Qe(r){return r.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[e]))}const zt=(()=>{class r extends q{static allowedChildren=[r,kt,R,Ot];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,s){const n=r.order.indexOf(t),l=r.order.indexOf(s);return n>=0||l>=0?n-l:t===s?0:t<s?-1:1}formatAt(t,s,n,l){if(r.compare(this.statics.blotName,n)<0&&this.scroll.query(n,v.BLOT)){const o=this.isolate(t,s);l&&o.wrap(n,l)}else super.formatAt(t,s,n,l)}optimize(t){if(super.optimize(t),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){const s=this.parent.isolate(this.offset(),this.length());this.moveChildren(s),s.wrap(this)}}}return r})();let Vt=(()=>{class r extends O{cache={};delta(){return null==this.cache.delta&&(this.cache.delta=tr(this)),this.cache.delta}deleteAt(t,s){super.deleteAt(t,s),this.cache={}}formatAt(t,s,n,l){s<=0||(this.scroll.query(n,v.BLOCK)?t+s===this.length()&&this.format(n,l):super.formatAt(t,Math.min(s,this.length()-t-1),n,l),this.cache={})}insertAt(t,s,n){if(null!=n)return super.insertAt(t,s,n),void(this.cache={});if(0===s.length)return;const l=s.split("\n"),o=l.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let c=this;l.reduce((f,g)=>(c=c.split(f,!0),c.insertAt(0,g),g.length),t+o.length)}insertBefore(t,s){const{head:n}=this.children;super.insertBefore(t,s),n instanceof kt&&n.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,s){super.moveChildren(t,s),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s&&(0===t||t>=this.length()-1)){const l=this.clone();return 0===t?(this.parent.insertBefore(l,this),this):(this.parent.insertBefore(l,this.next),l)}const n=super.split(t,s);return this.cache={},n}}return r.blotName="block",r.tagName="P",r.defaultChild=kt,r.allowedChildren=[kt,zt,R,Ot],r})();class Xt extends R{attach(){super.attach(),this.attributes=new tt(this.domNode)}delta(){return(new T).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const s=this.scroll.query(e,v.BLOCK_ATTRIBUTE);null!=s&&this.attributes.attribute(s,t)}formatAt(e,t,s,n){this.format(s,n)}insertAt(e,t,s){if(null!=s)return void super.insertAt(e,t,s);const n=t.split("\n"),l=n.pop(),o=n.map(f=>{const g=this.scroll.create(Vt.blotName);return g.insertAt(0,f),g}),c=this.split(e);o.forEach(f=>{this.parent.insertBefore(f,c)}),l&&this.parent.insertBefore(this.scroll.create("text",l),c)}}function tr(r){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return r.descendants(ct).reduce((t,s)=>0===s.length()?t:t.insert(s.value(),Yt(s,{},e)),new T).insert("\n",Yt(r))}function Yt(r){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==r||("formats"in r&&"function"==typeof r.formats&&(e={...e,...r.formats()},t&&delete e["code-token"]),null==r.parent||"scroll"===r.parent.statics.blotName||r.parent.statics.scope!==r.statics.scope)?e:Yt(r.parent,e,t)}Xt.scope=v.BLOCK_BLOT;const gn=(()=>{class r extends R{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){}constructor(t,s,n){super(t,s),this.selection=n,this.textNode=document.createTextNode(r.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,s){if(0!==this.savedLength)return void super.format(t,s);let n=this,l=0;for(;null!=n&&n.statics.scope!==v.BLOCK_BLOT;)l+=n.offset(n.parent),n=n.parent;null!=n&&(this.savedLength=r.CONTENTS.length,n.optimize(),n.formatAt(l,r.CONTENTS.length,t,s),this.savedLength=0)}index(t,s){return t===this.textNode?0:super.index(t,s)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const s=this.prev instanceof Ot?this.prev:null,n=s?s.length():0,l=this.next instanceof Ot?this.next:null,o=l?l.text:"",{textNode:c}=this,f=c.data.split(r.CONTENTS).join("");let g;if(c.data=r.CONTENTS,s)g=s,(f||l)&&(s.insertAt(s.length(),f+o),l&&l.remove());else if(l)g=l,l.insertAt(0,f);else{const L=document.createTextNode(f);g=this.scroll.create(L),this.parent.insertBefore(g,this)}if(this.remove(),t){const L=(ot,pt)=>s&&ot===s.domNode?pt:ot===c?n+pt-1:l&&ot===l.domNode?n+f.length+pt:null,j=L(t.start.node,t.start.offset),Z=L(t.end.node,t.end.offset);if(null!==j&&null!==Z)return{startNode:g.domNode,startOffset:j,endNode:g.domNode,endOffset:Z}}return null}update(t,s){if(t.some(n=>"characterData"===n.type&&n.target===this.textNode)){const n=this.restore(
vendor: 9,745 bytes, line 1
1);n&&(s.range=n)}}optimize(t){super.optimize(t);let{parent:s}=this;for(;s;){if("A"===s.domNode.tagName){this.savedLength=r.CONTENTS.length,s.isolate(this.offset(s),this.length()).unwrap(),this.savedLength=0;break}s=s.parent}}value(){return""}}return r})();var Vr=C(9280);const xn=new WeakMap,Ln=["error","warn","log","info"];let Sn="warn";function er(r){if(Sn&&Ln.indexOf(r)<=Ln.indexOf(Sn)){for(var e=arguments.length,t=new Array(e>1?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];console[r](...t)}}function Cn(r){return Ln.reduce((e,t)=>(e[t]=er.bind(console,t,r),e),{})}er.level=Cn.level=r=>{Sn=r};const Je=Cn,qn=Je("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(r=>{document.addEventListener(r,function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{const l=xn.get(n);l&&l.emitter&&l.emitter.handleDOM(...t)})})});const M=(()=>class r extends Vr{static 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"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",qn.error)}emit(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return qn.log.call(qn,...s),super.emit(...s)}handleDOM(t){for(var s=arguments.length,n=new Array(s>1?s-1:0),l=1;l<s;l++)n[l-1]=arguments[l];(this.domListeners[t.type]||[]).forEach(o=>{let{node:c,handler:f}=o;(t.target===c||c.contains(t.target))&&f(t,...n)})}listenDOM(t,s,n){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:s,handler:n})}})(),kn=Je("quill:selection");class ts{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=e,this.length=t}}function On(r,e){return r.contains(e)}const Gr=class Kr{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new ts(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,M.sources.USER),1)}),this.emitter.on(M.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const s=this.getNativeRange();null!=s&&s.start.node!==this.cursor.textNode&&this.emitter.once(M.events.SCROLL_UPDATE,(n,l)=>{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=l.some(c=>"characterData"===c.type||"childList"===c.type||"attributes"===c.type&&c.target===this.root);this.update(o?M.sources.SILENT:n)}catch{}})}),this.emitter.on(M.events.SCROLL_OPTIMIZE,(s,n)=>{if(n.range){const{startNode:l,startOffset:o,endNode:c,endOffset:f}=n.range;this.setNativeRange(l,o,c,f),this.update(M.sources.SILENT)}}),this.update(M.sources.SILENT)}handleComposition(){this.emitter.on(M.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(M.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(M.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const s=this.getNativeRange();if(null!=s&&s.native.collapsed&&!this.scroll.query(e,v.BLOCK)){if(s.start.node!==this.cursor.textNode){const n=this.scroll.find(s.start.node,!1);if(null==n)return;if(n instanceof ct){const l=n.split(s.start.offset);n.parent.insertBefore(this.cursor,l)}else n.insertBefore(this.cursor,s.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const s=this.scroll.length();e=Math.min(e,s-1),t=Math.min(e+t,s-1)-e;let n,[l,o]=this.scroll.leaf(e);if(null==l)return null;if(t>0&&o===l.length()){const[L]=this.scroll.leaf(e+1);if(L){const[j]=this.scroll.line(e),[Z]=this.scroll.line(e+1);j===Z&&(l=L,o=0)}}[n,o]=l.position(o,!0);const c=document.createRange();if(t>0)return c.setStart(n,o),[l,o]=this.scroll.leaf(e+t),null==l?null:([n,o]=l.position(o,!0),c.setEnd(n,o),c.getBoundingClientRect());let g,f="left";if(n instanceof Text){if(!n.data.length)return null;o<n.data.length?(c.setStart(n,o),c.setEnd(n,o+1)):(c.setStart(n,o-1),c.setEnd(n,o),f="right"),g=c.getBoundingClientRect()}else{if(!(l.domNode instanceof Element))return null;g=l.domNode.getBoundingClientRect(),o>0&&(f="right")}return{bottom:g.top+g.height,height:g.height,left:g[f],right:g[f],top:g.top,width:0}}getNativeRange(){const e=document.getSelection();if(null==e||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(null==t)return null;const s=this.normalizeNative(t);return kn.info("getNativeRange",s),s}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||null!=document.activeElement&&On(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const s=t.map(o=>{const[c,f]=o,g=this.scroll.find(c,!0),L=g.offset(this.scroll);return 0===f?L:g instanceof ct?L+g.index(c,f):L+g.length()}),n=Math.min(Math.max(...s),this.scroll.length()-1),l=Math.min(n,...s);return new ts(l,n-l)}normalizeNative(e){if(!On(this.root,e.startContainer)||!e.collapsed&&!On(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(s=>{let{node:n,offset:l}=s;for(;!(n instanceof Text)&&n.childNodes.length>0;)if(n.childNodes.length>l)n=n.childNodes[l],l=0;else{if(n.childNodes.length!==l)break;n=n.lastChild,l=n instanceof Text?n.data.length:n.childNodes.length>0?n.childNodes.length:n.childNodes.length+1}s.node=n,s.offset=l}),t}rangeToNative(e){const t=this.scroll.length(),s=(n,l)=>{n=Math.min(t-1,n);const[o,c]=this.scroll.leaf(n);return o?o.position(c,l):[null,-1]};return[...s(e.index,!1),...s(e.index+e.length,!0)]}setNativeRange(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(kn.info("setNativeRange",e,t,s,n),null!=e&&(null==this.root.parentNode||null==e.parentNode||null==s.parentNode))return;const o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:c}=this.getNativeRange()||{};if(null==c||l||e!==c.startContainer||t!==c.startOffset||s!==c.endContainer||n!==c.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),s instanceof Element&&"BR"===s.tagName&&(n=Array.from(s.parentNode.childNodes).indexOf(s),s=s.parentNode);const f=document.createRange();f.setStart(e,t),f.setEnd(s,n),o.removeAllRanges(),o.addRange(f)}}else o.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M.sources.API;if("string"==typeof t&&(s=t,t=!1),kn.info("setRange",e),null!=e){const n=this.rangeToNative(e);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(s)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M.sources.USER;const t=this.lastRange,[s,n]=this.getRange();if(this.lastRange=s,this.lastNative=n,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,Ct.A)(t,this.lastRange)){if(!this.composing&&null!=n&&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 l=[M.events.SELECTION_CHANGE,wt(this.lastRange),wt(t),e];this.emitter.emit(M.events.EDITOR_CHANGE,...l),e!==M.sources.SILENT&&this.emitter.emit(...l)}}},Wr=/^[ -~]*$/;function vs(r,e,t){if(0===r.length){const[ot]=In(t.pop());return e<=0?`</li></${ot}>`:`</li></${ot}>${vs([],e-1,t)}`}const[{child:s,offset:n,length:l,indent:o,type:c},...f]=r,[g,L]=In(c);if(o>e)return t.push(c),o===e+1?`<${g}><li${L}>${on(s,n,l)}${vs(f,o,t)}`:`<${g}><li>${vs(r,e+1,t)}`;if(o===e&&c===t[t.length-1])return`</li><li${L}>${on(s,n,l)}${vs(f,o,t)}`;const[Z]=In(t.pop());return`</li></${Z}>${vs(r,e-1,t)}`}function on(r,e,t){let s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in r&&"function"==typeof r.html)return r.html(e,t);if(r instanceof Ot)return Qe(r.value().slice(e,e+t));if(r instanceof d){if("list-container"===r.statics.blotName){const g=[];return r.children.forEachAt(e,t,(L,j,Z)=>{const ot="formats"in L&&"function"==typeof L.formats?L.formats():{};g.push({child:L,offset:j,length:Z,indent:ot.indent||0,type:ot.list})}),vs(g,-1,[])}const n=[];
1if(r.children.forEachAt(e,t,(g,L,j)=>{n.push(on(g,L,j))}),s||"list"===r.statics.blotName)return n.join("");const{outerHTML:l,innerHTML:o}=r.domNode,[c,f]=l.split(`>${o}<`);return"<table"===c?`<table style="border: 1px solid #000;">${n.join("")}<${f}`:`${c}>${n.join("")}<${f}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function Xr(r,e){return Object.keys(e).reduce((t,s)=>{if(null==r[s])return t;const n=e[s];return t[s]=n===r[s]?n:Array.isArray(n)?n.indexOf(r[s])<0?n.concat([r[s]]):n:[n,r[s]],t},{})}function In(r){const e="ordered"===r?"ol":"ul";switch(r){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function sr(r){return r.reduce((e,t)=>{if("string"==typeof t.insert){const s=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(s,t.attributes)}return e.push(t)},new T)}function nr(r,e){let{index:t,length:s}=r;return new ts(t+e,s)}const Qr=class Zr{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const s=sr(e),n=new T;return function Yr(r){const e=[];return r.forEach(t=>{"string"==typeof t.insert?t.insert.split("\n").forEach((n,l)=>{l&&e.push({insert:"\n",attributes:t.attributes}),n&&e.push({insert:n,attributes:t.attributes})}):e.push(t)}),e}(s.ops.slice()).reduce((o,c)=>{const f=T.Op.length(c);let g=c.attributes||{},L=!1,j=!1;if(null!=c.insert){if(n.retain(f),"string"==typeof c.insert){const pt=c.insert;j=!pt.endsWith("\n")&&(t<=o||!!this.scroll.descendant(Xt,o)[0]),this.scroll.insertAt(o,pt);const[vt,xt]=this.scroll.line(o);let rt=P({},Yt(vt));if(vt instanceof Vt){const[Jt]=vt.descendant(ct,xt);Jt&&(rt=P(rt,Yt(Jt)))}g=T.AttributeMap.diff(rt,g)||{}}else if("object"==typeof c.insert){const pt=Object.keys(c.insert)[0];if(null==pt)return o;const vt=null!=this.scroll.query(pt,v.INLINE);if(vt)(t<=o||this.scroll.descendant(Xt,o)[0])&&(j=!0);else if(o>0){const[xt,rt]=this.scroll.descendant(ct,o-1);xt instanceof Ot?"\n"!==xt.value()[rt]&&(L=!0):xt instanceof R&&xt.statics.scope===v.INLINE_BLOT&&(L=!0)}if(this.scroll.insertAt(o,pt,c.insert[pt]),vt){const[xt]=this.scroll.descendant(ct,o);if(xt){const rt=P({},Yt(xt));g=T.AttributeMap.diff(rt,g)||{}}}}t+=f}else if(n.push(c),null!==c.retain&&"object"==typeof c.retain){const pt=Object.keys(c.retain)[0];if(null==pt)return o;this.scroll.updateEmbedAt(o,pt,c.retain[pt])}Object.keys(g).forEach(pt=>{this.scroll.formatAt(o,f,pt,g[pt])});const Z=L?1:0,ot=j?1:0;return t+=Z+ot,n.retain(Z),n.delete(ot),o+f+Z+ot},0),n.reduce((o,c)=>"number"==typeof c.delete?(this.scroll.deleteAt(o,c.delete),o):o+T.Op.length(c),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(s)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update((new T).retain(e).delete(t))}formatLine(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(s).forEach(l=>{this.scroll.lines(e,Math.max(t,1)).forEach(o=>{o.format(l,s[l])})}),this.scroll.optimize();const n=(new T).retain(e).retain(t,wt(s));return this.update(n)}formatText(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(s).forEach(l=>{this.scroll.formatAt(e,t,l,s[l])});const n=(new T).retain(e).retain(t,wt(s));return this.update(n)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new T)}getFormat(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=[],n=[];0===t?this.scroll.path(e).forEach(c=>{const[f]=c;f instanceof Vt?s.push(f):f instanceof ct&&n.push(f)}):(s=this.scroll.lines(e,t),n=this.scroll.descendants(ct,e,t));const[l,o]=[s,n].map(c=>{const f=c.shift();if(null==f)return{};let g=Yt(f);for(;Object.keys(g).length>0;){const L=c.shift();if(null==L)return g;g=Xr(Yt(L),g)}return g});return{...l,...o}}getHTML(e,t){const[s,n]=this.scroll.line(e);if(s){const l=s.length();return s.length()>=n+t&&(0!==n||t!==l)?on(s,n,t,!0):on(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(s=>"string"==typeof s.insert).map(s=>s.insert).join("")}insertContents(e,t){const s=sr(t),n=(new T).retain(e).concat(s);return this.scroll.insertContents(e,s),this.update(n)}insertEmbed(e,t,s){return this.scroll.insertAt(e,t,s),this.update((new T).retain(e).insert({[t]:s}))}insertText(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(s).forEac
1h(n=>{this.scroll.formatAt(e,t.length,n,s[n])}),this.update((new T).retain(e).insert(t,wt(s)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;return e?.statics.blotName===Vt.blotName&&(!(e.children.length>1)&&e.children.head instanceof kt)}removeFormat(e,t){const s=this.getText(e,t),[n,l]=this.scroll.line(e+t);let o=0,c=new T;null!=n&&(o=n.length()-l,c=n.delta().slice(l,l+o-1).insert("\n"));const g=this.getContents(e,t+o).diff((new T).insert(s).concat(c)),L=(new T).retain(e).concat(g);return this.applyDelta(L)}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(Wr)&&this.scroll.find(t[0].target)){const l=this.scroll.find(t[0].target),o=Yt(l),c=l.offset(this.scroll),f=t[0].oldValue.replace(gn.CONTENTS,""),g=(new T).insert(f),L=(new T).insert(l.value()),j=s&&{oldRange:nr(s.oldRange,-c),newRange:nr(s.newRange,-c)};e=(new T).retain(c).concat(g.diff(L,j)).reduce((ot,pt)=>pt.insert?ot.insert(pt.insert,o):ot.push(pt),new T),this.delta=n.compose(e)}else this.delta=this.getDelta(),(!e||!(0,Ct.A)(n.compose(e),this.delta))&&(e=n.diff(this.delta,s));return e}},ie=(()=>class r{static DEFAULTS={};constructor(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=s}})(),Rn=class Jr extends R{constructor(e,t){super(e,t),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("\ufeff"),this.rightGuard=document.createTextNode("\ufeff"),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let s,t=null;const n=e.data.split("\ufeff").join("");if(e===this.leftGuard)if(this.prev instanceof Ot){const l=this.prev.length();this.prev.insertAt(l,n),t={startNode:this.prev.domNode,startOffset:l+n.length}}else s=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(s),this),t={startNode:s,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof Ot?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(s=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(s),this.next),t={startNode:s,startOffset:n.length}));return e.data="\ufeff",t}update(e,t){e.forEach(s=>{if("characterData"===s.type&&(s.target===this.leftGuard||s.target===this.rightGuard)){const n=this.restore(s.target);n&&(t.range=n)}})}},ei=class ti{isComposing=!1;constructor(e,t){this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof Rn)&&(this.emitter.emit(M.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(M.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(M.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(M.events.COMPOSITION_END,e),this.isComposing=!1}},mn=(()=>{class r{static DEFAULTS={modules:{}};static themes={default:r};modules={};constructor(t,s){this.quill=t,this.options=s}init(){Object.keys(this.options.modules).forEach(t=>{null==this.modules[t]&&this.addModule(t)})}addModule(t){const s=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new s(this.quill,this.options.modules[t]||{}),this.modules[t]}}return r})(),si=r=>r.parentElement||r.getRootNode().host||null,ni=r=>{const e=r.getBoundingClientRect(),t="offsetWidth"in r&&Math.abs(e.width)/r.offsetWidth||1,s="offsetHeight"in r&&Math.abs(e.height)/r.offsetHeight||1;return{top:e.top,right:e.left+r.clientWidth*t,bottom:e.top+r.clientHeight*s,left:e.left}},bn=r=>{const e=parseInt(r,10);return Number.isNaN(e)?0:e},rr=(r,e,t,s,n,l)=>r<t&&e>s?0:r<t?-(t-r+n):e>s?e-r>s-t?r+n-t:e-s+l:0,li=["block","break","cursor","inline","scroll","text"],As=Je("quill"),yn=new H;d.uiClass="ql-ui";class A{static DEFAULTS={bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:yn,theme:"default"};static events=M.events;static sources=M.sources;static version="2.0.2";static imports={delta:T,parchment:X,"core/module":ie,"core/theme":mn};static debug(e){!0===e&&(e="log"),Je.level(e)}static find(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return xn.get(e)||yn.find(e,t)}static import(e){return null==this.imports[e]&&As.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){const e=arguments.length<=0?void 0:arguments[0],t=!(arguments.length<=1||!arguments[1]),s="attrName"in e?e.attrName:e.blotName;"string"==typeof s?this.register(`formats/${s}`,e,t):Object.keys(e).forEach(n=>{this.register(n,e[n],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];null!=this.imports[e]&&!(!(arguments.length<=2)&&arguments[2])&&As.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&"boolean"!=typeof t&&"abstract"!==t.blotName&&yn.register(t),"function"==typeof t.register&&t.register(yn)}}constructor(e){if(this.options=function ai(r,e){const t=ir(r);if(!t)throw new Error("Invalid Quill container");const n=e.theme&&e.theme!==A.DEFAULTS.theme?A.import(`themes/${e.theme}`):mn;if(!n)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...o}=A.DEFAULTS,{modules:c,...f}=n.DEFAULTS;let g=_n(e.modules);null!=g&&g.toolbar&&g.toolbar.constructor!==Object&&(g={...g,toolbar:{container:g.toolbar}});const L=P({},_n(l),_n(c),g),j={...o,...lr(f),...lr(e)};let Z=e.registry;return Z?e.formats&&As.warn('Ignoring "formats" option because "registry" is specified'):Z=e.formats?((r,e,t)=>{const s=new H;
vendor: 6,374 bytes, line 1
1return li.forEach(n=>{const l=e.query(n);l&&s.register(l)}),r.forEach(n=>{let l=e.query(n);l||t.error(`Cannot register "${n}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;l;)if(s.register(l),l="blotName"in l?l.requiredContainer??null:null,o+=1,o>100){t.error(`Cycle detected in registering blot requiredContainer: "${n}"`);break}}),s})(e.formats,j.registry,As):j.registry,{...j,registry:Z,container:t,theme:n,modules:Object.entries(L).reduce((ot,pt)=>{let[vt,xt]=pt;if(!xt)return ot;const rt=A.import(`modules/${vt}`);return null==rt?(As.error(`Cannot load ${vt} module. Are you sure you registered it?`),ot):{...ot,[vt]:P({},rt.DEFAULTS||{},xt)}},{}),bounds:ir(j.bounds)}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.container=this.options.container,null==this.container)return void As.error("Invalid Quill container",e);this.options.debug&&A.debug(this.options.debug);const s=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",xn.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new M;const n=at.blotName,l=this.options.registry.query(n);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${n}" blot`);if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Qr(this.scroll),this.selection=new Gr(this.scroll,this.emitter),this.composition=new ei(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(M.events.EDITOR_CHANGE,o=>{o===M.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(M.events.SCROLL_UPDATE,(o,c)=>{const f=this.selection.lastRange,[g]=this.selection.getRange(),L=f&&g?{oldRange:f,newRange:g}:void 0;re.call(this,()=>this.editor.update(null,c,L),o)}),this.emitter.on(M.events.SCROLL_EMBED_UPDATE,(o,c)=>{const f=this.selection.lastRange,[g]=this.selection.getRange(),L=f&&g?{oldRange:f,newRange:g}:void 0;re.call(this,()=>{const j=(new T).retain(o.offset(this)).retain({[o.statics.blotName]:c});return this.editor.update(j,[],L)},A.sources.USER)}),s){const o=this.clipboard.convert({html:`${s}<p><br></p>`,text:"\n"});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(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){const s=e;(e=document.createElement("div")).classList.add(s)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,s){return[e,t,,s]=ye(e,t,s),re.call(this,()=>this.editor.deleteText(e,t),s,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){return re.call(this,()=>{const n=this.getSelection(!0);let l=new T;if(null==n)return l;if(this.scroll.query(e,v.BLOCK))l=this.editor.formatLine(n.index,n.length,{[e]:t});else{if(0===n.length)return this.selection.format(e,t),l;l=this.editor.formatText(n.index,n.length,{[e]:t})}return this.setSelection(n,M.sources.SILENT),l},arguments.length>2&&void 0!==arguments[2]?arguments[2]:M.sources.API)}formatLine(e,t,s,n,l){let o;return[e,t,o,l]=ye(e,t,s,n,l),re.call(this,()=>this.editor.formatLine(e,t,o),l,e,0)}formatText(e,t,s,n,l){let o;return[e,t,o,l]=ye(e,t,s,n,l),re.call(this,()=>this.editor.formatText(e,t,o),l,e,0)}getBounds(e){let s=null;if(s="number"==typeof e?this.selection.getBounds(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(e.index,e.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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e;return[e,t]=ye(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof e?this.editor.getFormat(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=ye(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"number"==typeof e&&(t=t??this.getLength()-e),[e,t]=ye(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,s){return re.call(this,()=>this.editor.insertEmbed(e,t,s),arguments.length>3&&void 0!==arguments[3]?arguments[3]:A.sources.API,e)}insertText(e,t,s,n,l){let o;return[e,,o,l]=ye(e,0,s,n,l),re.call(this,()=>this.editor.insertText(e,t,o),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}
vendor: 5,738 bytes, line 1
1removeFormat(e,t,s){return[e,t,,s]=ye(e,t,s),re.call(this,()=>this.editor.removeFormat(e,t),s,e)}scrollRectIntoView(e){((r,e)=>{const t=r.ownerDocument;let s=e,n=r;for(;n;){const l=n===t.body,o=l?{top:0,right:window.visualViewport?.width??t.documentElement.clientWidth,bottom:window.visualViewport?.height??t.documentElement.clientHeight,left:0}:ni(n),c=getComputedStyle(n),f=rr(s.left,s.right,o.left,o.right,bn(c.scrollPaddingLeft),bn(c.scrollPaddingRight)),g=rr(s.top,s.bottom,o.top,o.bottom,bn(c.scrollPaddingTop),bn(c.scrollPaddingBottom));if(f||g)if(l)t.defaultView?.scrollBy(f,g);else{const{scrollLeft:L,scrollTop:j}=n;g&&(n.scrollTop+=g),f&&(n.scrollLeft+=f);const Z=n.scrollLeft-L,ot=n.scrollTop-j;s={left:s.left-Z,top:s.top-ot,right:s.right-Z,bottom:s.bottom-ot}}n=l||"fixed"===c.position?null:si(n)}})(this.root,e)}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 e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){return re.call(this,()=>{e=new T(e);const s=this.getLength(),n=this.editor.deleteText(0,s),l=this.editor.insertContents(0,e),o=this.editor.deleteText(this.getLength()-1,1);return n.compose(l).compose(o)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.sources.API)}setSelection(e,t,s){null==e?this.selection.setRange(null,t||A.sources.API):([e,t,,s]=ye(e,t,s),this.selection.setRange(new ts(Math.max(0,e),t),s),s!==M.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.sources.API;const s=(new T).insert(e);return this.setContents(s,t)}update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){return re.call(this,()=>(e=new T(e),this.editor.applyDelta(e)),arguments.length>1&&void 0!==arguments[1]?arguments[1]:M.sources.API,!0)}}function ir(r){return"string"==typeof r?document.querySelector(r):r}function _n(r){return Object.entries(r??{}).reduce((e,t)=>{let[s,n]=t;return{...e,[s]:!0===n?{}:n}},{})}function lr(r){return Object.fromEntries(Object.entries(r).filter(e=>void 0!==e[1]))}function re(r,e,t,s){if(!this.isEnabled()&&e===M.sources.USER&&!this.allowReadOnlyEdits)return new T;let n=null==t?null:this.getSelection();const l=this.editor.delta,o=r();if(null!=n&&(!0===t&&(t=n.index),null==s?n=or(n,o,e):0!==s&&(n=or(n,t,s,e)),this.setSelection(n,M.sources.SILENT)),o.length()>0){const c=[M.events.TEXT_CHANGE,o,l,e];this.emitter.emit(M.events.EDITOR_CHANGE,...c),e!==M.sources.SILENT&&this.emitter.emit(...c)}return o}function ye(r,e,t,s,n){let l={};return"number"==typeof r.index&&"number"==typeof r.length?"number"!=typeof e?(n=s,s=t,t=e,e=r.length,r=r.index):(e=r.length,r=r.index):"number"!=typeof e&&(n=s,s=t,t=e,e=0),"object"==typeof t?(l=t,n=s):"string"==typeof t&&(null!=s?l[t]=s:n=t),[r,e,l,n=n||M.sources.API]}function or(r,e,t,s){const n="number"==typeof t?t:0;if(null==r)return null;let l,o;return[l,o]=[r.index,r.index+r.length].map(e&&"function"==typeof e.transformPosition?c=>e.transformPosition(c,s!==M.sources.USER):c=>c<e||c===e&&s===M.sources.USER?c:n>=0?c+n:Math.max(e,c+n)),new ts(l,o-l)}const es=class ci extends st{};function ar(r){return r instanceof Vt||r instanceof Xt}function cr(r){return"function"==typeof r.updateContent}let ui=(()=>class r extends at{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Vt;static allowedChildren=[Vt,Xt,es];constructor(t,s,n){let{emitter:l}=n;super(t,s),this.emitter=l,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",o=>this.handleDragStart(o))}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(M.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(M.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,s){this.emitter.emit(M.events.SCROLL_EMBED_UPDATE,t,s)}deleteAt(t,s){const[n,l]=this.line(t),[o]=this.line(t+s);if(super.deleteAt(t,s),null!=o&&n!==o&&l>0){if(n instanceof Xt||o instanceof Xt)return void this.optimize();n.moveChildren(o,o.children.head instanceof kt?null:o.children.head),n.remove()}this.optimize()}enable(){this.domNode.setAttribute("contenteditable",arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?"false":"true")}formatAt(t,s,n,l){super.formatAt(t,s,n,l),this.optimize()}insertAt(t,s,n){if(t>=this.length())if(null==n||null==this.scroll.query(s,v.BLOCK)){const l=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(l),null==n&&s.endsWith("\n")?l.insertAt(0,s.slice(0,-1),n):l.insertAt(0,s,n)}else{const l=this.scroll.create(s,n);this.appendChild(l)}else super.insertAt(t,s,n);this.optimize()}insertBefore(t,s){if(t.statics.scope===v.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(t),super.insertBefore(n,s)}else super.insertBefore(t,s)}insertContents(t,s){const n=this.deltaToRenderBlocks(s.concat((new T).insert("\n"))),l=n.pop();if(null==l)return;this.batchStart();const o=n.shift();if(o){const g="block"===o.type&&(0===o.delta.length()||!this.descendant(Xt,t)[0]&&t<this.length()),L="block"===o.type?o.delta:(new T).insert({[o.key]:o.value});Bn(this,t,L);const j="block"===o.type?1:0,Z=t+L.length()+j;g&&this.insertAt(Z-1,"\n");const ot=Yt(this.line(t)[0]),pt=T.AttributeMap.diff(ot,o.attributes)||{};Object.keys(pt).forEach(vt=>{this.formatAt(Z-1,1,vt,pt[vt])}),t=Z}let[c,f]=this.children.find(t);
1n.length&&(c&&(c=c.split(f),f=0),n.forEach(g=>{if("block"===g.type)Bn(this.createBlock(g.attributes,c||void 0),0,g.delta);else{const L=this.create(g.key,g.value);this.insertBefore(L,c||void 0),Object.keys(g.attributes).forEach(j=>{L.format(j,g.attributes[j])})}})),"block"===l.type&&l.delta.length()&&Bn(this,c?c.offset(c.scroll)+f:this.length(),l.delta),this.batchEnd(),this.optimize()}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){const s=this.path(t).pop();if(!s)return[null,-1];const[n,l]=s;return n instanceof ct?[n,l]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(ar,t)}lines(){const n=(l,o,c)=>{let f=[],g=c;return l.children.forEachAt(o,c,(L,j,Z)=>{ar(L)?f.push(L):L instanceof st&&(f=f.concat(n(L,j,g))),g-=Z}),f};return n(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}optimize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(super.optimize(t,s),t.length>0&&this.emitter.emit(M.events.SCROLL_OPTIMIZE,t,s))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));let s=M.sources.USER;"string"==typeof t&&(s=t),Array.isArray(t)||(t=this.observer.takeRecords()),(t=t.filter(n=>{let{target:l}=n;const o=this.find(l,!0);return o&&!cr(o)})).length>0&&this.emitter.emit(M.events.SCROLL_BEFORE_UPDATE,s,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(M.events.SCROLL_UPDATE,s,t)}updateEmbedAt(t,s,n){const[l]=this.descendant(o=>o instanceof Xt,t);l&&l.statics.blotName===s&&cr(l)&&l.updateContent(n)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const s=[];let n=new T;return t.forEach(l=>{const o=l?.insert;if(o)if("string"==typeof o){const c=o.split("\n");c.slice(0,-1).forEach(g=>{n.insert(g,l.attributes),s.push({type:"block",delta:n,attributes:l.attributes??{}}),n=new T});const f=c[c.length-1];f&&n.insert(f,l.attributes)}else{const c=Object.keys(o)[0];if(!c)return;this.query(c,v.INLINE)?n.push(l):(n.length()&&s.push({type:"block",delta:n,attributes:{}}),n=new T,s.push({type:"blockEmbed",key:c,value:o[c],attributes:l.attributes??{}}))}}),n.length()&&s.push({type:"block",delta:n,attributes:{}}),s}createBlock(t,s){let n;const l={};Object.entries(t).forEach(f=>{let[g,L]=f;null!=this.query(g,v.BLOCK&v.BLOT)?n=g:l[g]=L});const o=this.create(n||this.statics.defaultChild.blotName,n?t[n]:void 0);this.insertBefore(o,s||void 0);const c=o.length();return Object.entries(l).forEach(f=>{let[g,L]=f;o.formatAt(0,c,g,L)}),o}})();function Bn(r,e,t){t.reduce((s,n)=>{const l=T.Op.length(n);let o=n.attributes||{};if(null!=n.insert)if("string"==typeof n.insert){r.insertAt(s,n.insert);const[f]=r.descendant(ct,s),g=Yt(f);o=T.AttributeMap.diff(g,o)||{}}else if("object"==typeof n.insert){const c=Object.keys(n.insert)[0];if(null==c)return s;if(r.insertAt(s,c,n.insert[c]),null!=r.scroll.query(c,v.INLINE)){const[g]=r.descendant(ct,s),L=Yt(g);o=T.AttributeMap.diff(L,o)||{}}}return Object.keys(o).forEach(c=>{r.formatAt(s,l,c,o[c])}),s+l},e)}const hi=ui,Mn={scope:v.BLOCK,whitelist:["right","center","justify"]},fi=new B("align","align",Mn),ur=new y("align","ql-align",Mn),hr=new U("align","text-align",Mn);class fr extends U{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(n=>`00${parseInt(n,10).toString(16)}`.slice(-2)).join("")}`):t}}const di=new y("color","ql-color",{scope:v.INLINE}),Dn=new fr("color","color",{scope:v.INLINE}),gi=new y("background","ql-bg",{scope:v.INLINE}),Un=new fr("background","background-color",{scope:v.INLINE});class ss extends es{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(s=>s.length()<=1?"":s.domNode.innerText).join("\n").slice(e,e+t)}html(e,t){return`<pre>\n${Qe(this.code(e,t))}\n</pre>`}}let jt=(()=>class r extends Vt{static TAB="  ";static register(){A.register(ss)}})(),pi=(()=>{class r extends zt{}return r.blotName="code",r.tagName="CODE",r})();jt.blotName="code-block",jt.className="ql-code-block",jt.tagName="DIV",ss.blotName="code-block-container",ss.className="ql-code-block-container",ss.tagName="DIV",ss.allowedChildren=[jt],jt.allowedChildren=[Ot,kt,gn],jt.requiredContainer=ss;const jn={scope:v.BLOCK,whitelist:["rtl"]},dr=new B("direction","dir",jn),gr=new y("direction","ql-direction",jn),pr=ne
1w U("direction","direction",jn),mr={scope:v.INLINE,whitelist:["serif","monospace"]},br=new y("font","ql-font",mr),yr=new class mi extends U{value(e){return super.value(e).replace(/["']/g,"")}}("font","font-family",mr),vr=new y("size","ql-size",{scope:v.INLINE,whitelist:["small","large","huge"]}),Ar=new U("size","font-size",{scope:v.INLINE,whitelist:["10px","18px","32px"]}),bi=Je("quill:keyboard"),yi=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class vn extends ie{static match(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some(s=>!!t[s]!==e[s]&&null!==t[s])&&(t.key===e.key||t.key===e.which)}constructor(e,t){super(e,t),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(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=function Ai(r){if("string"==typeof r||"number"==typeof r)r={key:r};else{if("object"!=typeof r)return null;r=wt(r)}return r.shortKey&&(r[yi]=r.shortKey,delete r.shortKey),r}(e);null!=n?("function"==typeof t&&(t={handler:t}),"function"==typeof s&&(s={handler:s}),(Array.isArray(n.key)?n.key:[n.key]).forEach(o=>{const c={...n,key:o,...t,...s};this.bindings[c.key]=this.bindings[c.key]||[],this.bindings[c.key].push(c)})):bi.warn("Attempted to add invalid keyboard binding",n)}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||229===e.keyCode&&("Enter"===e.key||"Backspace"===e.key))return;const n=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(rt=>vn.match(e,rt));if(0===n.length)return;const l=A.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(null==o||!this.quill.hasFocus())return;const[c,f]=this.quill.getLine(o.index),[g,L]=this.quill.getLeaf(o.index),[j,Z]=0===o.length?[g,L]:this.quill.getLeaf(o.index+o.length),ot=g instanceof ht?g.value().slice(0,L):"",pt=j instanceof ht?j.value().slice(Z):"",vt={collapsed:0===o.length,empty:0===o.length&&c.length()<=1,format:this.quill.getFormat(o),line:c,offset:f,prefix:ot,suffix:pt,event:e};n.some(rt=>{if(null!=rt.collapsed&&rt.collapsed!==vt.collapsed||null!=rt.empty&&rt.empty!==vt.empty||null!=rt.offset&&rt.offset!==vt.offset)return!1;if(Array.isArray(rt.format)){if(rt.format.every(Jt=>null==vt.format[Jt]))return!1}else if("object"==typeof rt.format&&!Object.keys(rt.format).every(Jt=>!0===rt.format[Jt]?null!=vt.format[Jt]:!1===rt.format[Jt]?null==vt.format[Jt]:(0,Ct.A)(rt.format[Jt],vt.format[Jt])))return!1;return!(null!=rt.prefix&&!rt.prefix.test(vt.prefix)||null!=rt.suffix&&!rt.suffix.test(vt.suffix))&&!0!==rt.handler.call(this,o,vt,rt)})&&e.preventDefault()})}handleBackspace(e,t){const s=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(0===e.index||this.quill.getLength()<=1)return;let n={};const[l]=this.quill.getLine(e.index);let o=(new T).retain(e.index-s).delete(s);if(0===t.offset){const[c]=this.quill.getLine(e.index-1);if(c&&!("block"===c.statics.blotName&&c.length()<=1)){const g=l.formats(),L=this.quill.getFormat(e.index-1,1);if(n=T.AttributeMap.diff(g,L)||{},Object.keys(n).length>0){const j=(new T).retain(e.index+l.length()-2).retain(1,n);o=o.compose(j)}}}this.quill.updateContents(o,A.sources.USER),this.quill.focus()}handleDelete(e,t){const s=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-s)return;let n={};const[l]=this.quill.getLine(e.index);let o=(new T).retain(e.index).delete(s);if(t.offset>=l.length()-1){const[c]=this.quill.getLine(e.index+1);if(c){const f=l.formats(),g=this.quill.getFormat(e.index,1);n=T.AttributeMap.diff(f,g)||{},Object.keys(n).length>0&&(o=o.retain(c.length()-1).retain(1,n))}}this.quill.updateContents(o,A.sources.USER),this.quill.focus()}handleDeleteRange(e){Fn({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const s=Object.keys(t.format).reduce((l,o)=>(this.quill.scroll.query(o,v.BLOCK)&&!Array.isArray(t.format[o])&&
vendor: 6,842 bytes, line 1
1(l[o]=t.format[o]),l),{}),n=(new T).retain(e.index).delete(e.length).insert("\n",s);this.quill.updateContents(n,A.sources.USER),this.quill.setSelection(e.index+1,A.sources.SILENT),this.quill.focus()}}const vi={bindings:{bold:Pn("bold"),italic:Pn("italic"),underline:Pn("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",A.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",A.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,e){null!=e.format.indent?this.quill.format("indent","-1",A.sources.USER):null!=e.format.list&&this.quill.format("list",!1,A.sources.USER)}},"indent code-block":Er(!0),"outdent code-block":Er(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,A.sources.USER)}},tab:{key:"Tab",handler(r,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=(new T).retain(r.index).delete(r.length).insert("\t");return this.quill.updateContents(t,A.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,A.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,A.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(r.index,r.length,t,A.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[e,t]=this.quill.getLine(r.index),s={...e.formats(),list:"checked"},n=(new T).retain(r.index).insert("\n",s).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,A.sources.USER),this.quill.setSelection(r.index+1,A.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,e){const[t,s]=this.quill.getLine(r.index),n=(new T).retain(r.index).insert("\n",e.format).retain(t.length()-s-1).retain(1,{header:null});this.quill.updateContents(n,A.sources.USER),this.quill.setSelection(r.index+1,A.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(r){const e=this.quill.getModule("table");if(e){const[t,s,n,l]=e.getTable(r),o=function Ei(r,e,t,s){return null==e.prev&&null==e.next?null==t.prev&&null==t.next?0===s?-1:1:null==t.prev?-1:1:null==e.prev?-1:null==e.next?1:null}(0,s,n,l);if(null==o)return;let c=t.offset();if(o<0){const f=(new T).retain(c).insert("\n");this.quill.updateContents(f,A.sources.USER),this.quill.setSelection(r.index+1,r.length,A.sources.SILENT)}else if(o>0){c+=t.length();const f=(new T).retain(c).insert("\n");this.quill.updateContents(f,A.sources.USER),this.quill.setSelection(c,A.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,e){const{event:t,line:s}=e,n=s.offset(this.quill.scroll);this.quill.setSelection(t.shiftKey?n-1:n+s.length(),A.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,e){if(null==this.quill.scroll.query("list"))return!0;const{length:t}=e.prefix,[s,n]=this.quill.getLine(r.index);if(n>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(r.index," ",A.sources.USER),this.quill.history.cutoff();const o=(new T).retain(r.index-n).delete(t+1).retain(s.length()-2-n).retain(1,{list:l});return this.quill.updateContents(o,A.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,A.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[e,t]=this.quill.getLine(r.index);let s=2,n=e;for(;null!=n&&n.length()<=1&&n.formats()["code-block"];)if(n=n.prev,s-=1,s<=0){const l=(new T).retain(r.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,A.sources.USER),this.quill.setSelection(r.index-1,A.sources.SILENT),!1}return!0}},"embed left":An("ArrowLeft",!1),"embed left shift":An("ArrowLeft",!0),"embed right":An("ArrowRight",!1),"embed right shift":An("ArrowRight",!0),"table down":Nr(!1),"table up":Nr(!0)}};function Er(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(e,t){let{event:s}=t;const n=this.quill.scroll.query("code-block"),{TAB:l}=n;if(0===e.length&&!s.shiftKey)return this.quill.insertText(e.index,l,A.sources.USER),void this.quill.setSelection(e.index+l.length,A.sources.SILENT);const o=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:c,length:f}=e;o.forEach((g,L)=>{r?(g.insertAt(0,l),0===L?c+=l.length:f+=l.length):g.domNode.textContent.startsWith(l)&&(g.deleteAt(0,l.length),0===L?c-=l.length:f-=l.length)}),this.quill.update(A.sources.USER),this.quill.setSelection(c,f,A.sources.SILENT)}}}function An(r,e){return{key:r,shiftKey:e,altKey:null,["ArrowLeft"===r?"prefix":"suffix"]:/^$/,handler(s){let{index:n}=s;"ArrowRight"===r&&(n+=s.length+1);const[l]=this.quill.getLeaf(n);return!(l instanceof R&&("ArrowLeft"===r?e?this.quill.setSelection(s.index-1,s.length+1,A.sources.USER):this.quill.setSelection(s.index-1,A.sources.USER):e?this.quill.setSelection(s.index,s.length+1,A.sources.USER):this.quill.setSelection(s.index+s.length+1,A.sources.USER),1))}}}function Pn(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],A.sources.USER)}}}function Nr(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const s=r?"prev":"next",n=t.line,l=n.parent[s];if(null!=l){if("table-row"===l.statics.blotName){let o=l.children.head,c=n;for(;null!=c.prev;)c=c.prev,o=o.next;const f=o.offset(this.quill.scroll)+Math.min(t.offset,o.length()-1);this.quill.setSelection(f,0,A.sources.USER)}}else{const o=n.table()[s];null!=o&&this.quill.setSelection(r?o.offset(this.quill.scroll)+o.length()-1:o.offset(this.quill.scroll),0,A.sources.USER)}return!1}}}function Fn(r){let{quill:e,range:t}=r;const s=e.getLines(t);let n={};if(s.length>1){const l=s[0].formats(),o=s[s.length-1].formats();n=T.AttributeMap.diff(o,l)||{}}e.deleteText(t,A.sources.USER),Object.keys(n).length>0&&e.formatLine(t.index,1,n,A.sources.USER),e.setSelection(t.index,A.sources.SILENT)}vn.DEFAULTS=vi;
1const Ni=/font-weight:\s*normal/,Ti=["P","OL","UL"],Tr=r=>r&&Ti.includes(r.tagName),Si=/\bmso-list:[^;]*ignore/i,Ci=/\bmso-list:[^;]*\bl(\d+)/i,qi=/\bmso-list:[^;]*\blevel(\d+)/i,Ri=[function Ii(r){"urn:schemas-microsoft-com:office:word"===r.documentElement.getAttribute("xmlns:w")&&(r=>{const e=Array.from(r.querySelectorAll("[style*=mso-list]")),t=[],s=[];e.forEach(o=>{(o.getAttribute("style")||"").match(Si)?t.push(o):s.push(o)}),t.forEach(o=>o.parentNode?.removeChild(o));const n=r.documentElement.innerHTML,l=s.map(o=>((r,e)=>{const t=r.getAttribute("style"),s=t?.match(Ci);if(!s)return null;const n=Number(s[1]),l=t?.match(qi),o=l?Number(l[1]):1,c=new RegExp(`@list l${n}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),f=e.match(c);return{id:n,indent:o,type:f&&"bullet"===f[1]?"bullet":"ordered",element:r}})(o,n)).filter(o=>o);for(;l.length;){const o=[];let c=l.shift();for(;c;)o.push(c),c=l.length&&l[0]?.element===c.element.nextElementSibling&&l[0].id===c.id?l.shift():null;const f=document.createElement("ul");o.forEach(j=>{const Z=document.createElement("li");Z.setAttribute("data-list",j.type),j.indent>1&&Z.setAttribute("class","ql-indent-"+(j.indent-1)),Z.innerHTML=j.element.innerHTML,f.appendChild(Z)});const g=o[0]?.element,{parentNode:L}=g??{};g&&L?.replaceChild(f,g),o.slice(1).forEach(j=>{let{element:Z}=j;L?.removeChild(Z)})}})(r)},function Li(r){r.querySelector('[id^="docs-internal-guid-"]')&&((r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(Ni)).forEach(e=>{const t=r.createDocumentFragment();t.append(...e.childNodes),e.parentNode?.replaceChild(t,e)})})(r),(r=>{Array.from(r.querySelectorAll("br")).filter(e=>Tr(e.previousElementSibling)&&Tr(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)})})(r))}],Bi=Je("quill:clipboard"),Mi=[[Node.TEXT_NODE,function Zi(r,e,t){let s=r.data;if("O:P"===r.parentElement?.tagName)return e.insert(s.trim());if(!xr(r)){if(0===s.trim().length&&s.includes("\n")&&!function ji(r,e){return r.previousElementSibling&&r.nextElementSibling&&!Oe(r.previousElementSibling,e)&&!Oe(r.nextElementSibling,e)}(r,t))return e;const n=(l,o)=>
1{const c=o.replace(/[^\u00a0]/g,"");return c.length<1&&l?" ":c};s=s.replace(/\r\n/g," ").replace(/\n/g," "),s=s.replace(/\s\s+/g,n.bind(n,!0)),(null==r.previousSibling&&null!=r.parentElement&&Oe(r.parentElement,t)||r.previousSibling instanceof Element&&Oe(r.previousSibling,t))&&(s=s.replace(/^\s+/,n.bind(n,!1))),(null==r.nextSibling&&null!=r.parentElement&&Oe(r.parentElement,t)||r.nextSibling instanceof Element&&Oe(r.nextSibling,t))&&(s=s.replace(/\s+$/,n.bind(n,!1)))}return e.insert(s)}],[Node.TEXT_NODE,Lr],["br",function Hi(r,e){return an(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,Lr],[Node.ELEMENT_NODE,function Fi(r,e,t){const s=t.query(r);if(null==s)return e;if(s.prototype instanceof R){const n={},l=s.value(r);if(null!=l)return n[s.blotName]=l,(new T).insert(n,s.formats(r,t))}else if(s.prototype instanceof O&&!an(e,"\n")&&e.insert("\n"),"blotName"in s&&"formats"in s&&"function"==typeof s.formats)return ns(e,s.blotName,s.formats(r,t),t);return e}],[Node.ELEMENT_NODE,function Pi(r,e,t){const s=B.keys(r),n=y.keys(r),l=U.keys(r),o={};return s.concat(n).concat(l).forEach(c=>{let f=t.query(c,v.ATTRIBUTE);null!=f&&(o[f.attrName]=f.value(r),o[f.attrName])||(f=Di[c],null!=f&&(f.attrName===c||f.keyName===c)&&(o[f.attrName]=f.value(r)||void 0),f=wr[c],null!=f&&(f.attrName===c||f.keyName===c)&&(f=wr[c],o[f.attrName]=f.value(r)||void 0))}),Object.entries(o).reduce((c,f)=>{let[g,L]=f;return ns(c,g,L,t)},e)}],[Node.ELEMENT_NODE,function Gi(r,e,t){const s={},n=r.style||{};return"italic"===n.fontStyle&&(s.italic=!0),"underline"===n.textDecoration&&(s.underline=!0),"line-through"===n.textDecoration&&(s.strike=!0),(n.fontWeight?.startsWith("bold")||parseInt(n.fontWeight,10)>=700)&&(s.bold=!0),e=Object.entries(s).reduce((l,o)=>{let[c,f]=o;return ns(l,c,f,t)},e),parseFloat(n.textIndent||0)>0?(new T).insert("\t").concat(e):e}],["li",function Vi(r,e,t){const s=t.query(r);if(null==s||"list"!==s.blotName||!an(e,"\n"))return e;let n=-1,l=r.parentNode;for(;null!=l;)["OL","UL"].includes(l.tagName)&&(n+=1),l=l.parentNode;return n<=0?e:e.reduce((o,c)=>c.insert?c.attributes&&"number"==typeof c.attributes.indent?o.push(c):o.insert(c.insert,{indent:n,...c.attributes||{}}):o,new T)}],["ol, ul",function Ki(r,e,t){let n="OL"===r.tagName?"ordered":"bullet";const l=r.getAttribute("data-checked");return l&&(n="true"===l?"checked":"unchecked"),ns(e,"list",n,t)}],["pre",function $i(r,e,t){const s=t.query("code-block");return ns(e,"code-block",!s||!("formats"in s)||"function"!=typeof s.formats||s.formats(r,t),t)}],["tr",function Wi(r,e,t){const s="TABLE"===r.parentElement?.tagName?r.parentElement:r.parentElement?.parentElement;return null!=s?ns(e,"table",Array.from(s.querySelectorAll("tr")).indexOf(r)+1,t):e}],["b",$n("bold")],["i",$n("italic")],["strike",$n("strike")],["style",function zi(){return new T}]],Di=[fi,dr].reduce((r,e)=>(r[e.keyName]=e,r),{}),wr=[hr,Un,Dn,pr,yr,Ar].reduce((r,e)=>(r[e.keyName]=e,r),{});let Ui=(()=>class r extends ie{static DEFAULTS={matchers:[]};constructor(t,s){super(t,s),this.quill.root.addEventListener("copy",n=>this.onCaptureCopy(n,!1)),this.quill.root.addEventListener("cut",n=>this.onCaptureCopy(n,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Mi.concat(this.options.matchers??[]).forEach(n=>{let[l,o]=n;this.addMatcher(l,o)})}addMatcher(t,s){this.matchers.push([t,s])}convert(t){let{html:s,text:n}=t,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l[jt.blotName])return(new T).insert(n||"",{[jt.blotName]:l[jt.blotName]});if(!s)return(new T).insert(n||"",l);const o=this.convertHTML(s);return an(o,"\n")&&(null==o.ops[o.ops.length-1].attributes||l.table)?o.compose((new T).retain(o.length()-1).delete(1)):o}normalizeHTML(t){(r=>{r.documentElement&&Ri.forEach(e=>{e(r)})})(t)}convertHTML(t){const s=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(s);const n=s.body,l=new WeakMap,[o,c]=this.prepareMatching(n,l);return Hn(this.quill.scroll,n,o,c,l)}dangerouslyPasteHTML(t,s){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A.sources.API;if("string"==typeof t){const l=this.convert({html:t,text:""});this.quill.setContents(l,s),this.quill.setSelection(0,A.sources.SILENT)}else{const l=this.convert({html:s,text:""});this.quill.updateContents((new T).retain(t).concat(l),n),this.quill.setSelection(t+l.length(),A.sources.SILENT)}}onCaptureCopy(t){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.defaultPrevented)return;t.preventDefault();const[n]=this.quill.selection.getRange();if(null==n)return;const{html:l,text:o}=this.onCopy(n,s);t.clipboardData?.setData("text/plain",o),t.clipboardData?.setData("text/html",l),s&&Fn({range:n,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(s=>"#"!==s[0]).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const s=this.quill.getSelection(!0);if(null==s)return;const n=t.clipboardData?.getData("text/html");let l=t.clipboardData?.getData("text/plain");
1if(!n&&!l){const c=t.clipboardData?.getData("text/uri-list");c&&(l=this.normalizeURIList(c))}const o=Array.from(t.clipboardData?.files||[]);if(!n&&o.length>0)this.quill.uploader.upload(s,o);else{if(n&&o.length>0){const c=(new DOMParser).parseFromString(n,"text/html");if(1===c.body.childElementCount&&"IMG"===c.body.firstElementChild?.tagName)return void this.quill.uploader.upload(s,o)}this.onPaste(s,{html:n,text:l})}}onCopy(t){const s=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:s}}onPaste(t,s){let{text:n,html:l}=s;const o=this.quill.getFormat(t.index),c=this.convert({text:n,html:l},o);Bi.log("onPaste",c,{text:n,html:l});const f=(new T).retain(t.index).delete(t.length).concat(c);this.quill.updateContents(f,A.sources.USER),this.quill.setSelection(f.length()-t.length,A.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,s){const n=[],l=[];return this.matchers.forEach(o=>{const[c,f]=o;switch(c){case Node.TEXT_NODE:l.push(f);break;case Node.ELEMENT_NODE:n.push(f);break;default:Array.from(t.querySelectorAll(c)).forEach(g=>{s.has(g)?s.get(g)?.push(f):s.set(g,[f])})}}),[n,l]}})();function ns(r,e,t,s){return s.query(e)?r.reduce((n,l)=>l.insert?l.attributes&&l.attributes[e]?n.push(l):n.insert(l.insert,{...t?{[e]:t}:{},...l.attributes}):n,new T):r}function an(r,e){let t="";for(let s=r.ops.length-1;s>=0&&t.length<e.length;--s){const n=r.ops[s];if("string"!=typeof n.insert)break;t=n.insert+t}return t.slice(-1*e.length)===e}function Oe(r,e){if(!(r instanceof Element))return!1;const t=e.query(r);return!(t&&t.prototype instanceof R)&&["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(r.tagName.toLowerCase())}const En=new WeakMap;function xr(r){return null!=r&&(En.has(r)||En.set(r,"PRE"===r.tagName||xr(r.parentNode)),En.get(r))}function Hn(r,e,t,s,n){return e.nodeType===e.TEXT_NODE?s.reduce((l,o)=>o(e,l,r),new T):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,o)=>{let c=Hn(r,o,t,s,n);return o.nodeType===e.ELEMENT_NODE&&(c=t.reduce((f,g)=>g(o,f,r),c),c=(n.get(o)||[]).reduce((f,g)=>g(o,f,r),c)),l.concat(c)},new T):new T}function $n(r){return(e,t,s)=>ns(t,r,!0,s)}function Lr(r,e,t){if(!an(e,"\n")){if(Oe(r,t)&&(r.childNodes.length>0||r instanceof HTMLParagraphElement))return e.insert("\n");if(e.length()>0&&r.nextSibling){let s=r.nextSibling;for(;null!=s;){if(Oe(s,t))return e.insert("\n");const n=t.query(s);if(n&&n.prototype instanceof Xt)return e.insert("\n");s=s.firstChild}}}return e}let Xi=(()=>class r extends ie{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(t,s){super(t,s),this.quill.on(A.events.EDITOR_CHANGE,(n,l,o,c)=>{n===A.events.SELECTION_CHANGE?l&&c!==A.sources.SILENT&&(this.currentRange=l):n===A.events.TEXT_CHANGE&&(this.ignoreChange||(this.options.userOnly&&c!==A.sources.USER?this.transform(l):this.record(l,o)),this.currentRange=zn(this.currentRange,l))}),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=>{"historyUndo"===n.inputType?(this.undo(),n.preventDefault()):"historyRedo"===n.inputType&&(this.redo(),n.preventDefault())})}change(t,s){if(0===this.stack[t].length)return;const n=this.stack[t].pop();if(!n)return;const l=this.quill.getContents(),o=n.delta.invert(l);this.stack[s].push({delta:o,range:zn(n.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,A.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,s){if(0===t.ops.length)return;this.stack.redo=[];let n=t.invert(s),l=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const c=this.stack.undo.pop();c&&(n=n.compose(c.delta),l=c.range)}else this.lastRecorded=o;0!==n.length()&&(this.stack.undo.push({delta:n,range:l}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Sr(this.stack.undo,t),Sr(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,A.sources.USER);else{const s=function Qi(r,e){const t=e.reduce((n,l)=>n+(l.delete||0),0);let s=e.length()-t;
1return function Yi(r,e){const t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(s=>null!=r.query(s,v.BLOCK)))}(r,e)&&(s-=1),s}(this.quill.scroll,t.delta);this.quill.setSelection(s,A.sources.USER)}}})();function Sr(r,e){let t=e;for(let s=r.length-1;s>=0;s-=1){const n=r[s];r[s]={delta:t.transform(n.delta,!0),range:n.range&&zn(n.range,t)},t=n.delta.transform(t),0===r[s].delta.length()&&r.splice(s,1)}}function zn(r,e){if(!r)return r;const t=e.transformPosition(r.index);return{index:t,length:e.transformPosition(r.index+r.length)-t}}const Ji=(()=>{class r extends ie{constructor(t,s){super(t,s),t.root.addEventListener("drop",n=>{n.preventDefault();let l=null;if(document.caretRangeFromPoint)l=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){const c=document.caretPositionFromPoint(n.clientX,n.clientY);l=document.createRange(),l.setStart(c.offsetNode,c.offset),l.setEnd(c.offsetNode,c.offset)}const o=l&&t.selection.normalizeNative(l);if(o){const c=t.selection.normalizedToRange(o);n.dataTransfer?.files&&this.upload(c,n.dataTransfer.files)}})}upload(t,s){const n=[];Array.from(s).forEach(l=>{l&&this.options.mimetypes?.includes(l.type)&&n.push(l)}),n.length>0&&this.options.handler.call(this,t,n)}}return r.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(e,t){if(!this.quill.scroll.query("image"))return;const s=t.map(n=>new Promise(l=>{const o=new FileReader;o.onload=()=>{l(o.result)},o.readAsDataURL(n)}));Promise.all(s).then(n=>{const l=n.reduce((o,c)=>o.insert({image:c}),(new T).retain(e.index).delete(e.length));this.quill.updateContents(l,M.sources.USER),this.quill.setSelection(e.index+n.length,M.sources.SILENT)})}},r})(),tl=["insertText","insertReplacementText"],rl=/Mac/i.test(navigator.platform);A.register({"blots/block":Vt,"blots/block/embed":Xt,"blots/break":kt,"blots/container":es,"blots/cursor":gn,"blots/embed":Rn,"blots/inline":zt,"blots/scroll":hi,"blots/text":Ot,"modules/clipboard":Ui,"modules/history":Xi,"modules/keyboard":vn,"modules/uploader":Ji,"modules/input":class el extends ie{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",s=>{this.handleBeforeInput(s)}),/Android/i.test(navigator.userAgent)||e.on(A.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Fn({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){const s=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new T).retain(e.index).insert(t,s),A.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,A.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!tl.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||!0===t.collapsed)return;const s=function sl(r){return"string"==typeof r.data?r.data:r.dataTransfer?.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}(e);if(null==s)return;const n=this.quill.selection.normalizeNative(t),l=n?this.quill.selection.normalizedToRange(n):null;l&&this.replaceText(l,s)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}},"modules/uiNode":class ol extends ie{isListening=!1;selectionChangeDeadline=0;constructor(e,t){super(e,t),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,t){let{line:s,event:n}=t;if(!(s instanceof d&&s.uiNode))return!0;const l="rtl"===getComputedStyle(s.domNode).direction;return!!(l&&"ArrowRight"!==n.key||!l&&"ArrowLeft"!==n.key)||(this.quill.setSelection(e.index-1,e.length+(n.shiftKey?1:0),A.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{var r;!e.defaultPrevented&&("ArrowLeft"===(r=e).key||"ArrowRight"===r.key||"ArrowUp"===r.key||"ArrowDown"===r.key||"Home"===r.key||rl&&"a"===r.key&&!0===r.ctrlKey)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+100,this.isListening||(this.isListening=!0,document.addEventListener("selectionchange",()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()},{once:!0}))}handleSelectionChange(){const e=document.getSelection();if(!e)return;const t=e.getRangeAt(0);if(!0!==t.collapsed||0!==t.startOffset)return;const s=this.quill.scroll.find(t.startContainer);if(!(s instanceof d&&s.uiNode))return;const n=document.createRange();n.setStartAfter(s.uiNode),n.setEndAfter(s.uiNode),e.removeAllRanges(),e.addRange(n)}}});const Vn=A,ul=new class cl extends y{add(e,t){let s=0;if("+1"===t||"-1"===t){const n=this.value(e)||0;s="+1"===t?n+1:n-1}else"number"==typeof t&&(s=t);return 0===s?(this.remove(e),!0):super.add(e,s.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}("indent","ql-indent",{scope:v.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),hl=(()=>class r extends Vt{static blotName="blockquote";static tagName="blockquote"})(),fl=(()=>class r extends Vt{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}})();let Kn=(()=>{class r extends es{}return r.blotName="list-container",r.tagName="OL",r})(),Gn=(()=>{class r extends Vt{static create(t){const s=super.create();return s.setAttribute("data-list",t),s}static formats(t){return t.getAttribute("data-list")||void 0}static register(){A.register(Kn)}
1constructor(t,s){super(t,s);const n=s.ownerDocument.createElement("span"),l=o=>{if(!t.isEnabled())return;const c=this.statics.formats(s,t);"checked"===c?(this.format("list","unchecked"),o.preventDefault()):"unchecked"===c&&(this.format("list","checked"),o.preventDefault())};n.addEventListener("mousedown",l),n.addEventListener("touchstart",l),this.attachUI(n)}format(t,s){t===this.statics.blotName&&s?this.domNode.setAttribute("data-list",s):super.format(t,s)}}return r.blotName="list",r.tagName="LI",r})();Kn.allowedChildren=[Gn],Gn.requiredContainer=Kn;const Wn=(()=>class r extends zt{static blotName="bold";static tagName=["STRONG","B"];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)}})(),dl=(()=>class r extends Wn{static blotName="italic";static tagName=["EM","I"]})();let Nn=(()=>class r extends zt{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const s=super.create(t);return s.setAttribute("href",this.sanitize(t)),s.setAttribute("rel","noopener noreferrer"),s.setAttribute("target","_blank"),s}static formats(t){return t.getAttribute("href")}static sanitize(t){return Cr(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,s){t===this.statics.blotName&&s?this.domNode.setAttribute("href",this.constructor.sanitize(s)):super.format(t,s)}})();function Cr(r,e){const t=document.createElement("a");t.href=r;const s=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(s)>-1}const gl=(()=>class r extends zt{static blotName="script";static tagName=["SUB","SUP"];static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}})(),pl=(()=>class r extends Wn{static blotName="strike";static tagName=["S","STRIKE"]})(),ml=(()=>class r extends zt{static blotName="underline";static tagName="U"})(),bl=(()=>class r extends Rn{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const s=super.create(t);return"string"==typeof t&&(window.katex.render(t,s,{throwOnError:!1,errorColor:"#f00"}),s.setAttribute("data-value",t)),s}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}})(),qr=["alt","height","width"],yl=(()=>class r extends R{static blotName="image";static tagName="IMG";static create(t){const s=super.create(t);return"string"==typeof t&&s.setAttribute("src",this.sanitize(t)),s}static formats(t){return qr.reduce((s,n)=>(t.hasAttribute(n)&&(s[n]=t.getAttribute(n)),s),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return Cr(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,s){qr.indexOf(t)>-1?s?this.domNode.setAttribute(t,s):this.domNode.removeAttribute(t):super.format(t,s)}})(),kr=["height","width"],vl=(()=>class r extends Xt{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const s=super.create(t);return s.setAttribute("frameborder","0"),s.setAttribute("allowfullscreen","true"),s.setAttribute("src",this.sanitize(t)),s}static formats(t){return kr.reduce((s,n)=>(t.hasAttribute(n)&&(s[n]=t.getAttribute(n)),s),{})}static sanitize(t){return Nn.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,s){kr.indexOf(t)>-1?s?this.domNode.setAttribute(t,s):this.domNode.removeAttribute(t):super.format(t,s)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}})(),cn=new y("code-token","hljs",{scope:v.INLINE});let un=(()=>{class r extends zt{static formats(t,s){for(;null!=t&&t!==s.domNode;){if(t.classList&&t.classList.contains(jt.className))return super.formats(t,s);t=t.parentNode}}constructor(t,s,n){super(t,s,n),cn.add(this.domNode,n)}format(t,s){t!==r.blotName?super.format(t,s):s?cn.add(this.domNode,s):(cn.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),cn.value(this.domNode)||this.unwrap()}}return r.blotName="code-token",r.className="ql-token",r})();class Qt extends jt{static create(e){const t=super.create(e);return"string"==typeof e&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),un.blotName,!1),super.replaceWith(e,t)}}let Tn=(()=>{class r extends ss{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,s){t===Qt.blotName&&(this.forceNext=!0,this.children.forEac
vendor: 1,738 bytes, line 1
1h(n=>{n.format(t,s)}))}formatAt(t,s,n,l){n===Qt.blotName&&(this.forceNext=!0),super.formatAt(t,s,n,l)}highlight(t){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==this.children.head)return;const l=`${Array.from(this.domNode.childNodes).filter(c=>c!==this.uiNode).map(c=>c.textContent).join("\n")}\n`,o=Qt.formats(this.children.head.domNode);if(s||this.forceNext||this.cachedText!==l){if(l.trim().length>0||null==this.cachedText){const c=this.children.reduce((g,L)=>g.concat(tr(L,!1)),new T),f=t(l,o);c.diff(f).reduce((g,L)=>{let{retain:j,attributes:Z}=L;return j?(Z&&Object.keys(Z).forEach(ot=>{[Qt.blotName,un.blotName].includes(ot)&&this.formatAt(g,j,ot,Z[ot])}),g+j):g},0)}this.cachedText=l,this.forceNext=!1}}html(t,s){const[n]=this.children.find(t);return`<pre data-language="${n?Qt.formats(n.domNode):"plain"}">\n${Qe(this.code(t,s))}\n</pre>`}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const s=Qt.formats(this.children.head.domNode);s!==this.uiNode.value&&(this.uiNode.value=s)}}}return r.allowedChildren=[Qt],r})();Qt.requiredContainer=Tn,Qt.allowedChildren=[un,gn,Ot,kt];class Or extends ie{static register(){A.register(un,!0),A.register(Qt,!0),A.register(Tn,!0)}constructor(e,t){if(super(e,t),null==this.options.hljs)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:l}=n;return s[l]=!0,s},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(A.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Tn))return;const t=this.quill.root.ownerDocument.createElement("select");
1this.options.languages.forEach(s=>{let{key:n,label:l}=s;const o=t.ownerDocument.createElement("option");o.textContent=l,o.setAttribute("value",n),t.appendChild(o)}),t.addEventListener("change",()=>{e.format(Qt.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),null==e.uiNode&&(e.attachUI(t),e.children.head&&(t.value=Qt.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(A.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.quill.selection.composing)return;this.quill.update(A.sources.USER);const s=this.quill.getSelection();(null==e?this.quill.scroll.descendants(Tn):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update(A.sources.SILENT),null!=s&&this.quill.setSelection(s,A.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if(t=this.languages[t]?t:"plain","plain"===t)return Qe(e).split("\n").reduce((n,l,o)=>(0!==o&&n.insert("\n",{[jt.blotName]:t}),n.insert(l)),new T);const s=this.quill.root.ownerDocument.createElement("div");return s.classList.add(jt.className),s.innerHTML=((r,e,t)=>{if("string"==typeof r.versionString){const s=r.versionString.split(".")[0];if(parseInt(s,10)>=11)return r.highlight(t,{language:e}).value}return r.highlight(e,t).value})(this.options.hljs,t,e),Hn(this.quill.scroll,s,[(n,l)=>{const o=cn.value(n);return o?l.compose((new T).retain(l.length(),{[un.blotName]:o})):l}],[(n,l)=>n.data.split("\n").reduce((o,c,f)=>(0!==f&&o.insert("\n",{[jt.blotName]:t}),o.insert(c)),l)],new WeakMap)}}Or.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"}]};let ve=(()=>{class r extends Vt{static blotName="table";static tagName="TD";static create(t){const s=super.create();return s.setAttribute("data-row",t||Xn()),s}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,s){t===r.blotName&&s?this.domNode.setAttribute("data-row",s):super.format(t,s)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}return r})(),rs=(()=>class r extends es{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const t=this.children.head.formats(),s=this.children.tail.formats(),n=this.next.children.head.formats(),l=this.next.children.tail.formats();return t.table===s.table&&t.table===n.table&&t.table===l.table}return!1}optimize(t){super.optimize(t),this.children.forEach(s=>{if(null==s.next)return;const n=s.formats(),l=s.next.formats();if(n.table!==l.table){const o=this.splitAfter(s);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}})(),Ie=(()=>class r extends es{static blotName="table-body";static tagName="TBODY"})(),Zn=(()=>{class r extends es{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(rs),s=t.reduce((n,l)=>Math.max(l.children.length,n),0);t.forEach(n=>{new Array(s-n.children.length).fill(0).forEach(()=>{let l;null!=n.children.head&&(l=ve.formats(n.children.head.domNode));const o=this.scroll.create(ve.blotName,l);n.appendChild(o),o.optimize()})})}cells(t){return this.rows().map(s=>s.children.at(t))}deleteColumn(t){const[s]=this.descendant(Ie);null==s||null==s.children.head||s.children.forEach(n=>{const l=n.children.at(t);l?.remove()})}insertColumn(t){const[s]=this.descendant(Ie);
1null==s||null==s.children.head||s.children.forEach(n=>{const l=n.children.at(t),o=ve.formats(n.children.head.domNode),c=this.scroll.create(ve.blotName,o);n.insertBefore(c,l)})}insertRow(t){const[s]=this.descendant(Ie);if(null==s||null==s.children.head)return;const n=Xn(),l=this.scroll.create(rs.blotName);s.children.head.children.forEach(()=>{const c=this.scroll.create(ve.blotName,n);l.appendChild(c)});const o=s.children.at(t);s.insertBefore(l,o)}rows(){const t=this.children.head;return null==t?[]:t.children.map(s=>s)}}return r.allowedChildren=[Ie],r})();function Xn(){return`row-${Math.random().toString(36).slice(2,6)}`}Ie.requiredContainer=Zn,Ie.allowedChildren=[rs],rs.requiredContainer=Ie,rs.allowedChildren=[ve],ve.requiredContainer=rs;const Ir=Je("quill:toolbar");let Rr=(()=>{class r extends ie{constructor(t,s){if(super(t,s),Array.isArray(this.options.container)){const n=document.createElement("div");n.setAttribute("role","toolbar"),function Tl(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const s=document.createElement("span");s.classList.add("ql-formats"),t.forEach(n=>{if("string"==typeof n)_r(s,n);else{const l=Object.keys(n)[0],o=n[l];Array.isArray(o)?function wl(r,e,t){const s=document.createElement("select");s.classList.add(`ql-${e}`),t.forEach(n=>{const l=document.createElement("option");!1!==n?l.setAttribute("value",String(n)):l.setAttribute("selected","selected"),s.appendChild(l)}),r.appendChild(s)}(s,l,o):_r(s,l,o)}}),r.appendChild(s)})}(n,this.options.container),t.container?.parentNode?.insertBefore(n,t.container),this.container=n}else this.container="string"==typeof this.options.container?document.querySelector(this.options.container):this.options.container;this.container instanceof HTMLElement?(this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(n=>{const l=this.options.handlers?.[n];l&&this.addHandler(n,l)}),Array.from(this.container.querySelectorAll("button, select")).forEac
1h(n=>{this.attach(n)}),this.quill.on(A.events.EDITOR_CHANGE,()=>{const[n]=this.quill.selection.getRange();this.update(n)})):Ir.error("Container required for toolbar",this.options)}addHandler(t,s){this.handlers[t]=s}attach(t){let s=Array.from(t.classList).find(l=>0===l.indexOf("ql-"));s&&(s=s.slice(3),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null!=this.handlers[s]||null!=this.quill.scroll.query(s)?(t.addEventListener("SELECT"===t.tagName?"change":"click",l=>{let o;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const f=t.options[t.selectedIndex];o=!f.hasAttribute("selected")&&(f.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),l.preventDefault();this.quill.focus();const[c]=this.quill.selection.getRange();if(null!=this.handlers[s])this.handlers[s].call(this,o);else if(this.quill.scroll.query(s).prototype instanceof R){if(o=prompt(`Enter ${s}`),!o)return;this.quill.updateContents((new T).retain(c.index).delete(c.length).insert({[s]:o}),A.sources.USER)}else this.quill.format(s,o,A.sources.USER);this.update(c)}),this.controls.push([s,t])):Ir.warn("ignoring attaching to nonexistent format",s,t))}update(t){const s=null==t?{}:this.quill.getFormat(t);this.controls.forEach(n=>{const[l,o]=n;if("SELECT"===o.tagName){let c=null;if(null==t)c=null;else if(null==s[l])c=o.querySelector("option[selected]");else if(!Array.isArray(s[l])){let f=s[l];"string"==typeof f&&(f=f.replace(/"/g,'\\"')),c=o.querySelector(`option[value="${f}"]`)}null==c?(o.value="",o.selectedIndex=-1):c.selected=!0}else if(null==t)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const c=s[l],f=c===o.getAttribute("value")||null!=c&&c.toString()===o.getAttribute("value")||null==c&&!o.getAttribute("value");o.classList.toggle("ql-active",f),o.setAttribute("aria-pressed",f.toString())}else{const c=null!=s[l];o.classList.toggle("ql-active",c),o.setAttribute("aria-pressed",c.toString())}})}}return r.DEFAULTS={},r})();function _r(r,e,t){const s=document.createElement("button");s.setAttribute("type","button"),s.classList.add(`ql-${e}`),s.setAttribute("aria-pressed","false"),null!=t?(s.value=t,s.setAttribute("aria-label",`${e}: ${t}`)):s.setAttribute("aria-label",e),r.appendChild(s)}Rr.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(null!=r)if(0===r.length){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{null!=this.quill.scroll.query(t,v.INLINE)&&this.quill.format(t,!1,A.sources.USER)})}else this.quill.removeFormat(r.index,r.length,A.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();"rtl"===r&&null==e?this.quill.format("align","right",A.sources.USER):!r&&"right"===e&&this.quill.format("align",!1,A.sources.USER),this.quill.format("direction",r,A.sources.USER)},indent(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e),s=parseInt(t.indent||0,10);if("+1"===r||"-1"===r){let n="+1"===r?1:-1;"rtl"===t.direction&&(n*=-1),this.quill.format("indent",s+n,A.sources.USER)}},link(r){!0===r&&(r=prompt("Enter link URL:")),this.quill.format("link",r,A.sources.USER)},list(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e);this.quill.format("list","check"===r?"checked"!==t.list&&"unchecked"!==t.list&&"unchecked":r,A.sources.USER)}}};const Br='<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>',hn={align:{"":'<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>',center:'<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>',right:'<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>',justify:'<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>'},background:'<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"/>
1<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>',blockquote:'<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>',bold:'<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>',clean:'<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>',code:Br,"code-block":Br
vendor: 12,565 bytes, line 1
1,color:'<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>',direction:{"":'<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>',rtl:'<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>'},formula:'<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>',header:{1:'<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>',2:'<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>',3:'<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>',4:'<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>',5:'<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>',6:'<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>'},italic:'<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>',image:'<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>',indent:{"+1":'<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>',"-1":'<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>'},link:'<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>',list:{bullet:'<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>',check:'<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>',ordered:'<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>'},script:{sub:'<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>',super:'<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>'},strike:'<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>',table:'<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>',underline:'<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>',video:'<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>'};let 
vendor: 1,488 bytes, line 1
1Mr=0;function Dr(r,e){r.setAttribute(e,`${"true"!==r.getAttribute(e)}`)}const wn=class _l{constructor(e){this.select=e,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",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Dr(this.label,"aria-expanded"),Dr(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const s=e.getAttribute("value");return s&&t.setAttribute("data-value",s),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.selectItem(t,!0),n.preventDefault();break;case"Escape":this.escape(),n.preventDefault()}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<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>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","fal
1se"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${Mr}`,Mr+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const s=this.buildItem(t);e.appendChild(s),!0===t.selected&&this.selectItem(s)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.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(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const s=this.container.querySelector(".ql-selected");e!==s&&(s?.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const s=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(s)}else this.selectItem(null);const t=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}},Ur=class Bl extends wn{constructor(e,t){super(e),this.label.innerHTML=t,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(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const s=this.label.querySelector(".ql-color-label"),n=e&&e.getAttribute("data-value")||"";s&&("line"===s.tagName?s.style.stroke=n:s.style.fill=n)}},jr=class Ml extends wn{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(s=>{s.innerHTML=t[s.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const s=e||this.defaultItem;if(null!=s){if(this.label.innerHTML===s.innerHTML)return;this.label.innerHTML=s.innerHTML}}},Pr=class Ul{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,(r=>{const{overflowY:e}=getComputedStyle(r,null);return"visible"!==e&&"clip"!==e})(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(e){const t=e.left+e.width/2-this.root.offsetWidth/2,s=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${s}px`,this.root.classList.remove("ql-flip");const n=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let o=0;return l.right>n.right&&(o=n.right-l.right,this.root.style.left=`${t+o}px`),l.left<n.left&&(o=n.left-l.left,this.root.style.left=`${t+o}px`),l.bottom>n.bottom&&(this.root.style.top=s-(e.bottom-e.top+(l.bottom-l.top))+"px",this.root.classList.add("ql-flip")),o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}},jl=[!1,"center","right","justify"],Pl=["#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"],Fl=[!1,"serif","monospace"],Hl=["1","2","3",!1],$l=["small",!1,"large","huge"];class fn extends mn{constructor(e,t){super(e,t);const s=n=>{document.body.contains(e.root)?(null!=this.tooltip&&!this.tooltip.root.contains(n.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),null!=this.pickers&&this.pickers.forEac
vendor: 11,755 bytes, line 1
1h(l=>{l.container.contains(n.target)||l.close()})):document.body.removeEventListener("click",s)};e.emitter.listenDOM("click",document.body,s)}addModule(e){const t=super.addModule(e);return"toolbar"===e&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(s=>{(s.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),null!=t[l]))if("direction"===l)s.innerHTML=t[l][""]+t[l].rtl;else if("string"==typeof t[l])s.innerHTML=t[l];else{const o=s.value||"";null!=o&&t[l][o]&&(s.innerHTML=t[l][o])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(n=>{if(n.classList.contains("ql-align")&&(null==n.querySelector("option")&&dn(n,jl),"object"==typeof t.align))return new jr(n,t.align);if(n.classList.contains("ql-background")||n.classList.contains("ql-color")){const l=n.classList.contains("ql-background")?"background":"color";return null==n.querySelector("option")&&dn(n,Pl,"background"===l?"#ffffff":"#000000"),new Ur(n,t[l])}return null==n.querySelector("option")&&(n.classList.contains("ql-font")?dn(n,Fl):n.classList.contains("ql-header")?dn(n,Hl):n.classList.contains("ql-size")&&dn(n,$l)),new wn(n)}),this.quill.on(M.events.EDITOR_CHANGE,()=>{this.pickers.forEach(n=>{n.update()})})}}fn.DEFAULTS=P({},mn.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");null==r&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Fr extends Pr{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{"Enter"===e.key?(this.save(),e.preventDefault()):"Escape"===e.key&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null==this.textbox)return;null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const s=this.quill.getBounds(this.quill.selection.savedRange);null!=s&&this.position(s),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,M.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,M.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=function zl(r){let e=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:r}(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(null!=t){const s=t.index+t.length;this.quill.insertEmbed(s,this.root.getAttribute("data-mode"),e,M.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(s+1," ",M.sources.USER),this.quill.setSelection(s+2,M.sources.USER)}break}}this.textbox.value="",this.hide()}}function dn(r,e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(s=>{const n=document.createElement("option");s===t?n.setAttribute("selected","selected"):n.setAttribute("value",String(s)),r.appendChild(n)})}const Vl=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Kl extends Fr{static 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("");constructor(e,t){super(e,t),this.quill.on(M.events.EDITOR_CHANGE,(s,n,l,o)=>{if(s===M.events.SELECTION_CHANGE)if(null!=n&&n.length>0&&o===M.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const c=this.quill.getLines(n.index,n.length);if(1===c.length){const f=this.quill.getBounds(n);null!=f&&this.position(f)}else{const f=c[c.length-1],g=this.quill.getIndex(f),L=Math.min(f.length()-1,n.index+n.length-g),j=this.quill.getBounds(new ts(g,L));null!=j&&this.position(j)}}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(M.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(null!=e){const t=this.quill.getBounds(e);null!=t&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),s=this.root.querySelector(".ql-tooltip-arrow");return s.style.marginLeft="",0!==t&&(s.style.marginLeft=-1*t-s.offsetWidth/2+"px"),t}}class Hr extends fn{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=Vl),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Kl(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),hn),this.buildPickers(e.container.querySelectorAll("select"),hn))}}Hr.DEFAULTS=P({},fn.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,A.sources.USER)}}}}});const Gl=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Wl extends Fr{static 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("");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(null!=this.linkRange){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,M.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(M.events.SELECTION_CHANGE,(e,t,s)=>{if(null!=e){if(0===e.length&&s===M.sources.USER){const[n,l]=this.quill.scroll.descendant(Nn,e.index);if(null!=n){this.linkRange=new ts(e.index-l,n.length());const o=Nn.formats(n.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const c=this.quill.getBounds(this.linkRange);return void(null!=c&&this.position(c))}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class $r extends fn{constructor(e,t){null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=Gl),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),hn),this.buildPickers(e.container.querySelectorAll("select"),hn),this.tooltip=new Wl(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,s)=>{e.handlers.link.call(e,!s.format.link)}))}}$r.DEFAULTS=P({},fn.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const e=this.quill.getSelection();if(null==e||0===e.length)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&0!==t.indexOf("mailto:")&&(t=`mailto:${t}`);const{tooltip:s}=this.quill.theme;s.edit("link",t)}else this.quill.format("link",!1,A.sources.USER)}}}}});const Zl=$r;Vn.register({"attributors/attribute/direction":dr,"attributors/class/align":ur,"attributors/class/background":gi,"attributors/class/color":di,"attributors/class/direction":gr,"attributors/class/font":br,"attributors/class/size":vr,"attributors/style/align":hr,"attributors/style/background":Un,"attributors/style/color":Dn,"attributors/style/direction":pr,"attributors/style/font":yr,"attributors/style/size":Ar},!0),Vn.register({"formats/align":ur,"formats/direction":gr,"formats/indent":ul,"formats/background":Un,"formats/color":Dn,"formats/font":br,"formats/size":vr,"formats/blockquote":hl,"formats/code-block":jt,"formats/header":fl,"formats/list":Gn,"formats/bold":Wn,"formats/code":pi,"formats/italic":dl,"formats/link":Nn,"formats/script":gl,"formats/strike":pl,"formats/underline":ml,"formats/formula":bl,"formats/image":yl,"formats/video":vl,"modules/syntax":Or,"modules/table":class El extends ie{static register(){A.register(ve),A.register(rs),A.register(Ie),A.register(Zn)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Zn).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();null!=t&&(e.deleteColumn(t.cellOffset()),this.quill.update(A.sources.USER))}deleteRow(){const[,e]=this.getTable();null!=e&&(e.remove(),this.quill.update(A.sources.USER))}deleteTable(){const[e]=this.getTable();if(null==e)return;const t=e.offset();e.remove(),this.quill.update(A.sources.USER),this.quill.setSelection(t,A.sources.SILENT)}getTable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];const[t,s]=this.quill.getLine(e.index);if(null==t||t.statics.blotName!==ve.blotName)return[null,null,null,-1];const n=t.parent;return[n.parent.parent,n,t,s]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[s,n,l]=this.getTable(t);if(null==l)return;const o=l.cellOffset();s.insertColumn(o+e),this.quill.update(A.sources.USER);let c=n.rowOffset();0===e&&(c+=1),this.quill.setSelection(t.index+c,t.length,A.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[s,n,l]=this.getTable(t);if(null==l)return;const o=n.rowOffset();s.insertRow(o+e),this.quill.update(A.sources.USER),e>0?this.quill.setSelection(t,A.sources.SILENT):this.quill.setSelection(t.index+n.children.length,t.length,A.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const s=this.quill.getSelection();if(null==s)return;const n=new Array(e).fill(0).reduce(l=>{const o=new Array(t).fill("\n").join("");return l.insert(o,{table:Xn()})},(new T).retain(s.index));this.quill.updateContents(n,A.sources.USER),this.quill.setSelection(s.index,A.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(A.events.SCROLL_OPTIMIZE,e=>{e.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(A.events.TEXT_CHANGE,(s,n,l)=>{l===A.sources.USER&&this.balanceTables()}),!0))})}},"modules/toolbar":Rr,"themes/bubble":Hr,"themes/snow":Zl,"ui/icons":hn,"ui/picker":wn,"ui/icon-picker":jr,"ui/color-picker":Ur,"ui/tooltip":Pr},!0);const Xl=Vn}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.