diff --git a/main/net7.0/_content/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.lib.module.js b/main/net7.0/_content/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.lib.module.js index 2e9a8f7..f6f4450 100644 --- a/main/net7.0/_content/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.lib.module.js +++ b/main/net7.0/_content/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.lib.module.js @@ -35,7 +35,7 @@ var Mi=Object.create;var qn=Object.defineProperty;var qi=Object.getOwnPropertyDe `)){var V=H.offsetHeight+parseFloat(D(H).marginTop)+parseFloat(D(H).marginBottom);H.nextElementSibling.offsetTop>H.offsetTop+V*1.5&&z.insert(` `)}return z}function ct(H,z){var V={},Z=H.style||{};return Z.fontStyle&&D(H).fontStyle==="italic"&&(V.italic=!0),Z.fontWeight&&(D(H).fontWeight.startsWith("bold")||parseInt(D(H).fontWeight)>=700)&&(V.bold=!0),Object.keys(V).length>0&&(z=P(z,V)),parseFloat(Z.textIndent||0)>0&&(z=new o.default().insert(" ").concat(z)),z}function st(H,z){var V=H.data;if(H.parentNode.tagName==="O:P")return z.insert(V.trim());if(V.trim().length===0&&H.parentNode.classList.contains("ql-clipboard"))return z;if(!D(H.parentNode).whiteSpace.startsWith("pre")){var Z=function(X,tt){return tt=tt.replace(/[^\u00a0]/g,""),tt.length<1&&X?" ":tt};V=V.replace(/\r\n/g," ").replace(/\n/g," "),V=V.replace(/\s\s+/g,Z.bind(Z,!0)),(H.previousSibling==null&&R(H.parentNode)||H.previousSibling!=null&&R(H.previousSibling))&&(V=V.replace(/^\s+/,Z.bind(Z,!1))),(H.nextSibling==null&&R(H.parentNode)||H.nextSibling!=null&&R(H.nextSibling))&&(V=V.replace(/\s+$/,Z.bind(Z,!1)))}return z.insert(V)}t.default=N,t.matchAttributor=U,t.matchBlot=K,t.matchNewline=nt,t.matchSpacing=rt,t.matchText=st},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function v(c,p){for(var s=0;s '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function v(c,p){for(var s=0;si.right&&(c=i.right-v.right,this.root.style.left=o+c+"px"),v.lefti.bottom){var p=v.bottom-v.top,s=f.bottom-f.top+p;this.root.style.top=r-s+"px",this.root.classList.add("ql-flip")}return c}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),d}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function E(O,A){var k=[],j=!0,M=!1,B=void 0;try{for(var G=O[Symbol.iterator](),$;!(j=($=G.next()).done)&&(k.push($.value),!(A&&k.length===A));j=!0);}catch(C){M=!0,B=C}finally{try{!j&&G.return&&G.return()}finally{if(M)throw B}}return k}return function(O,A){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return E(O,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function E(O,A,k){O===null&&(O=Function.prototype);var j=Object.getOwnPropertyDescriptor(O,A);if(j===void 0){var M=Object.getPrototypeOf(O);return M===null?void 0:E(M,A,k)}else{if("value"in j)return j.value;var B=j.get;return B===void 0?void 0:B.call(k)}},h=function(){function E(O,A){for(var k=0;k','','',''].join(""),t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(29),y=W(l),h=n(36),d=n(38),g=n(64),f=n(65),o=W(f),r=n(66),i=W(r),v=n(67),c=W(v),p=n(37),s=n(26),u=n(39),m=n(40),a=n(56),b=W(a),T=n(68),w=W(T),S=n(27),x=W(S),E=n(69),O=W(E),A=n(70),k=W(A),j=n(71),M=W(j),B=n(72),G=W(B),$=n(73),C=W($),L=n(13),_=W(L),N=n(74),P=W(N),D=n(75),I=W(D),R=n(57),q=W(R),F=n(41),U=W(F),K=n(28),J=W(K),Y=n(59),Q=W(Y),nt=n(60),rt=W(nt),ct=n(61),st=W(ct),H=n(108),z=W(H),V=n(62),Z=W(V);function W(X){return X&&X.__esModule?X:{default:X}}y.default.register({"attributors/attribute/direction":d.DirectionAttribute,"attributors/class/align":h.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":s.ColorClass,"attributors/class/direction":d.DirectionClass,"attributors/class/font":u.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":h.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":s.ColorStyle,"attributors/style/direction":d.DirectionStyle,"attributors/style/font":u.FontStyle,"attributors/style/size":m.SizeStyle},!0),y.default.register({"formats/align":h.AlignClass,"formats/direction":d.DirectionClass,"formats/indent":g.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":s.ColorStyle,"formats/font":u.FontClass,"formats/size":m.SizeClass,"formats/blockquote":o.default,"formats/code-block":_.default,"formats/header":i.default,"formats/list":c.default,"formats/bold":b.default,"formats/code":L.Code,"formats/italic":w.default,"formats/link":x.default,"formats/script":O.default,"formats/strike":k.default,"formats/underline":M.default,"formats/image":G.default,"formats/video":C.default,"formats/list/item":v.ListItem,"modules/formula":P.default,"modules/syntax":I.default,"modules/toolbar":q.default,"themes/bubble":z.default,"themes/snow":Z.default,"ui/icons":U.default,"ui/picker":J.default,"ui/icon-picker":rt.default,"ui/color-picker":Q.default,"ui/tooltip":st.default},!0),t.default=y.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var l=function(){function c(p,s){for(var u=0;u0&&this.children.tail.format(w,S)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(w,S){if(w instanceof u)y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,w,S);else{var x=S==null?this.length():S.offset(this),E=this.split(x);E.parent.insertBefore(w,E)}}},{key:"optimize",value:function(w){y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,w);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(w){if(w.statics.blotName!==this.statics.blotName){var S=d.default.create(this.statics.defaultChild);w.moveChildren(S),this.appendChild(S)}y(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"replace",this).call(this,w)}}]),b}(r.default);m.blotName="list",m.scope=d.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[u],t.ListItem=u,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(56),y=h(l);function h(r){return r&&r.__esModule?r:{default:r}}function d(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function g(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function f(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var o=function(r){f(i,r);function i(){return d(this,i),g(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return i}(y.default);o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function v(c,p){for(var s=0;s-1?a?this.domNode.setAttribute(m,a):this.domNode.removeAttribute(m):y(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,m,a)}}],[{key:"create",value:function(m){var a=y(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,m);return typeof m=="string"&&a.setAttribute("src",this.sanitize(m)),a}},{key:"formats",value:function(m){return v.reduce(function(a,b){return m.hasAttribute(b)&&(a[b]=m.getAttribute(b)),a},{})}},{key:"match",value:function(m){return/\.(jpe?g|gif|png)$/.test(m)||/^data:image\/.+;base64/.test(m)}},{key:"sanitize",value:function(m){return(0,g.sanitize)(m,["http","https","data"])?m:"//:0"}},{key:"value",value:function(m){return m.getAttribute("src")}}]),s}(d.default.Embed);c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function p(s,u){for(var m=0;m-1?a?this.domNode.setAttribute(m,a):this.domNode.removeAttribute(m):y(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,m,a)}}],[{key:"create",value:function(m){var a=y(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,m);return a.setAttribute("frameborder","0"),a.setAttribute("allowfullscreen",!0),a.setAttribute("src",this.sanitize(m)),a}},{key:"formats",value:function(m){return v.reduce(function(a,b){return m.hasAttribute(b)&&(a[b]=m.getAttribute(b)),a},{})}},{key:"sanitize",value:function(m){return g.default.sanitize(m)}},{key:"value",value:function(m){return m.getAttribute("src")}}]),s}(h.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var l=function(){function m(a,b){for(var T=0;T0||this.cachedText==null)&&(this.domNode.innerHTML=x(E),this.domNode.normalize(),this.attach()),this.cachedText=E)}}]),w}(v.default);m.className="ql-syntax";var a=new d.default.Attributor.Class("token","hljs",{scope:d.default.Scope.INLINE}),b=function(T){u(w,T),l(w,null,[{key:"register",value:function(){f.default.register(a,!0),f.default.register(m,!0)}}]);function w(S,x){p(this,w);var E=s(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,x));if(typeof E.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var O=null;return E.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(O),O=setTimeout(function(){E.highlight(),O=null},E.options.interval)}),E.highlight(),E}return l(w,[{key:"highlight",value:function(){var x=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var E=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(O){O.highlight(x.options.highlight)}),this.quill.update(f.default.sources.SILENT),E!=null&&this.quill.setSelection(E,f.default.sources.SILENT)}}}]),w}(r.default);b.DEFAULTS={highlight:function(){return window.hljs==null?null:function(T){var w=window.hljs.highlightAuto(T);return w.value}}(),interval:1e3},t.CodeBlock=m,t.CodeToken=a,t.default=b},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var l=function w(S,x,E){S===null&&(S=Function.prototype);var O=Object.getOwnPropertyDescriptor(S,x);if(O===void 0){var A=Object.getPrototypeOf(S);return A===null?void 0:w(A,x,E)}else{if("value"in O)return O.value;var k=O.get;return k===void 0?void 0:k.call(E)}},y=function(){function w(S,x){for(var E=0;E0&&M===f.default.sources.USER){O.show(),O.root.style.left="0px",O.root.style.width="",O.root.style.width=O.root.offsetWidth+"px";var B=O.quill.getLines(k.index,k.length);if(B.length===1)O.position(O.quill.getBounds(k));else{var G=B[B.length-1],$=O.quill.getIndex(G),C=Math.min(G.length()-1,k.index+k.length-$),L=O.quill.getBounds(new i.Range($,C));O.position(L)}}else document.activeElement!==O.textbox&&O.quill.hasFocus()&&O.hide()}),O}return y(S,[{key:"listen",value:function(){var E=this;l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){E.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!E.root.classList.contains("ql-hidden")){var O=E.quill.getSelection();O!=null&&E.position(E.quill.getBounds(O))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(E){var O=l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,E),A=this.root.querySelector(".ql-tooltip-arrow");if(A.style.marginLeft="",O===0)return O;A.style.marginLeft=-1*O-A.offsetWidth/2+"px"}}]),S}(o.BaseTooltip);T.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=T,t.default=b},function(e,t,n){e.exports=n(63)}]).default})});var rr=St((_s,nr)=>{var ht=-1,ft=1,ut=0;function Wt(e,t,n,l,y){if(e===t)return e?[[ut,e]]:[];if(n!=null){var h=Ji(e,t,n);if(h)return h}var d=We(e,t),g=e.substring(0,d);e=e.substring(d),t=t.substring(d),d=fe(e,t);var f=e.substring(e.length-d);e=e.substring(0,e.length-d),t=t.substring(0,t.length-d);var o=Ui(e,t);return g&&o.unshift([ut,g]),f&&o.push([ut,f]),Ve(o,y),l&&Ki(o),o}function Ui(e,t){var n;if(!e)return[[ft,t]];if(!t)return[[ht,e]];var l=e.length>t.length?e:t,y=e.length>t.length?t:e,h=l.indexOf(y);if(h!==-1)return n=[[ft,l.substring(0,h)],[ut,y],[ft,l.substring(h+y.length)]],e.length>t.length&&(n[0][0]=n[2][0]=ht),n;if(y.length===1)return[[ht,e],[ft,t]];var d=zi(e,t);if(d){var g=d[0],f=d[1],o=d[2],r=d[3],i=d[4],v=Wt(g,o),c=Wt(f,r);return v.concat([[ut,i]],c)}return Hi(e,t)}function Hi(e,t){for(var n=e.length,l=t.length,y=Math.ceil((n+l)/2),h=y,d=2*y,g=new Array(d),f=new Array(d),o=0;on)c+=2;else if(T>l)v+=2;else if(i){var w=h+r-m;if(w>=0&&w=S)return Wn(e,t,b,T)}}}for(var x=-u+p;x<=u-s;x+=2){var w=h+x,S;x===-u||x!==u&&f[w-1]n)s+=2;else if(E>l)p+=2;else if(!i){var a=h+r-x;if(a>=0&&a=S)return Wn(e,t,b,T)}}}}return[[ht,e],[ft,t]]}function Wn(e,t,n,l){var y=e.substring(0,n),h=t.substring(0,l),d=e.substring(n),g=t.substring(l),f=Wt(y,h),o=Wt(d,g);return f.concat(o)}function We(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,l=Math.min(e.length,t.length),y=l,h=0;nl?e=e.substring(n-l):nt.length?e:t,l=e.length>t.length?t:e;if(n.length<4||l.length*2=c.length?[b,T,w,S,a]:null}var h=y(n,l,Math.ceil(n.length/4)),d=y(n,l,Math.ceil(n.length/2)),g;if(!h&&!d)return null;d?h?g=h[4].length>d[4].length?h:d:g=d:g=h;var f,o,r,i;e.length>t.length?(f=g[0],o=g[1],r=g[2],i=g[3]):(r=g[0],i=g[1],f=g[2],o=g[3]);var v=g[4];return[f,o,r,i,v]}function Ki(e){for(var t=!1,n=[],l=0,y=null,h=0,d=0,g=0,f=0,o=0;h0?n[l-1]:-1,d=0,g=0,f=0,o=0,y=null,t=!0)),h++;for(t&&Ve(e),Vi(e),h=1;h=c?(v>=r.length/2||v>=i.length/2)&&(e.splice(h,0,[ut,i.substring(0,v)]),e[h-1][1]=r.substring(0,r.length-v),e[h+1][1]=i.substring(v),h++):(c>=r.length/2||c>=i.length/2)&&(e.splice(h,0,[ut,r.substring(0,c)]),e[h-1][0]=ft,e[h-1][1]=i.substring(0,i.length-c),e[h+1][0]=ht,e[h+1][1]=r.substring(c),h++),h++}h++}}var Zn=/[^a-zA-Z0-9]/,Jn=/\s/,Yn=/[\r\n]/,$i=/\n\r?\n$/,Wi=/^\r?\n\r?\n/;function Vi(e){function t(c,p){if(!c||!p)return 6;var s=c.charAt(c.length-1),u=p.charAt(0),m=s.match(Zn),a=u.match(Zn),b=m&&s.match(Jn),T=a&&u.match(Jn),w=b&&s.match(Yn),S=T&&u.match(Yn),x=w&&c.match($i),E=S&&p.match(Wi);return x||E?5:w||S?4:m&&!b&&T?3:b||T?2:m||a?1:0}for(var n=1;n=i&&(i=v,f=l,o=y,r=h)}e[n-1][1]!=f&&(f?e[n-1][1]=f:(e.splice(n-1,1),n--),e[n][1]=o,r?e[n+1][1]=r:(e.splice(n+1,1),n--))}n++}}function Ve(e,t){e.push([ut,""]);for(var n=0,l=0,y=0,h="",d="",g;n=0&&er(e[f][1])){var o=e[f][1].slice(-1);if(e[f][1]=e[f][1].slice(0,-1),h=o+h,d=o+d,!e[f][1]){e.splice(f,1),n--;var r=f-1;e[r]&&e[r][0]===ft&&(y++,d=e[r][1]+d,r--),e[r]&&e[r][0]===ht&&(l++,h=e[r][1]+h,r--),f=r}}if(tr(e[n][1])){var o=e[n][1].charAt(0);e[n][1]=e[n][1].slice(1),h+=o,d+=o}}if(n0||d.length>0){h.length>0&&d.length>0&&(g=We(d,h),g!==0&&(f>=0?e[f][1]+=d.substring(0,g):(e.splice(0,0,[ut,d.substring(0,g)]),n++),d=d.substring(g),h=h.substring(g)),g=fe(d,h),g!==0&&(e[n][1]=d.substring(d.length-g)+e[n][1],d=d.substring(0,d.length-g),h=h.substring(0,h.length-g)));var i=y+l;h.length===0&&d.length===0?(e.splice(n-i,i),n=n-i):h.length===0?(e.splice(n-i,i,[ft,d]),n=n-i+1):d.length===0?(e.splice(n-i,i,[ht,h]),n=n-i+1):(e.splice(n-i,i,[ht,h],[ft,d]),n=n-i+2)}n!==0&&e[n-1][0]===ut?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,y=0,l=0,h="",d="";break}}e[e.length-1][1]===""&&e.pop();var v=!1;for(n=1;n=55296&&e<=56319}function Xn(e){return e>=56320&&e<=57343}function tr(e){return Xn(e.charCodeAt(0))}function er(e){return Qn(e.charCodeAt(e.length-1))}function Zi(e){for(var t=[],n=0;n0&&t.push(e[n]);return t}function $e(e,t,n,l){return er(e)||tr(l)?null:Zi([[ut,e],[ht,t],[ft,n],[ut,l]])}function Ji(e,t,n){var l=typeof n=="number"?{index:n,length:0}:n.oldRange,y=typeof n=="number"?null:n.newRange,h=e.length,d=t.length;if(l.length===0&&(y===null||y.length===0)){var g=l.index,f=e.slice(0,g),o=e.slice(g),r=y?y.index:null;t:{var i=g+d-h;if(r!==null&&r!==i||i<0||i>d)break t;var v=t.slice(0,i),c=t.slice(i);if(c!==o)break t;var p=Math.min(g,i),s=f.slice(0,p),u=v.slice(0,p);if(s!==u)break t;var m=f.slice(p),a=v.slice(p);return $e(s,m,a,o)}t:{if(r!==null&&r!==g)break t;var b=g,v=t.slice(0,b),c=t.slice(b);if(v!==f)break t;var T=Math.min(h-b,d-b),w=o.slice(o.length-T),S=c.slice(c.length-T);if(w!==S)break t;var m=o.slice(0,o.length-T),a=c.slice(0,c.length-T);return $e(f,m,a,w)}}if(l.length>0&&y&&y.length===0)t:{var s=e.slice(0,l.index),w=e.slice(l.index+l.length),p=s.length,T=w.length;if(d{var Yi=200,vr="__lodash_hash_undefined__",yr=9007199254740991,nn="[object Arguments]",Qi="[object Array]",gr="[object Boolean]",mr="[object Date]",Xi="[object Error]",rn="[object Function]",br="[object GeneratorFunction]",he="[object Map]",_r="[object Number]",on="[object Object]",ir="[object Promise]",Or="[object RegExp]",de="[object Set]",Er="[object String]",wr="[object Symbol]",Je="[object WeakMap]",Ar="[object ArrayBuffer]",pe="[object DataView]",Sr="[object Float32Array]",Tr="[object Float64Array]",kr="[object Int8Array]",Nr="[object Int16Array]",xr="[object Int32Array]",Lr="[object Uint8Array]",Pr="[object Uint8ClampedArray]",Rr="[object Uint16Array]",jr="[object Uint32Array]",to=/[\\^$.*+?()[\]{}|]/g,eo=/\w*$/,no=/^\[object .+?Constructor\]$/,ro=/^(?:0|[1-9]\d*)$/,it={};it[nn]=it[Qi]=it[Ar]=it[pe]=it[gr]=it[mr]=it[Sr]=it[Tr]=it[kr]=it[Nr]=it[xr]=it[he]=it[_r]=it[on]=it[Or]=it[de]=it[Er]=it[wr]=it[Lr]=it[Pr]=it[Rr]=it[jr]=!0;it[Xi]=it[rn]=it[Je]=!1;var io=typeof global=="object"&&global&&global.Object===Object&&global,oo=typeof self=="object"&&self&&self.Object===Object&&self,gt=io||oo||Function("return this")(),Mr=typeof Vt=="object"&&Vt&&!Vt.nodeType&&Vt,or=Mr&&typeof Ct=="object"&&Ct&&!Ct.nodeType&&Ct,ao=or&&or.exports===Mr;function lo(e,t){return e.set(t[0],t[1]),e}function so(e,t){return e.add(t),e}function uo(e,t){for(var n=-1,l=e?e.length:0;++n-1}function Io(e,t){var n=this.__data__,l=ge(n,e);return l<0?n.push([e,t]):n[l][1]=t,this}mt.prototype.clear=jo;mt.prototype.delete=Mo;mt.prototype.get=qo;mt.prototype.has=Do;mt.prototype.set=Io;function Bt(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=yr}function be(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Ea(e){return!!e&&typeof e=="object"}function un(e){return Hr(e)?Vo(e):ta(e)}function wa(){return[]}function Aa(){return!1}Ct.exports=ga});var En=St((Yt,Ht)=>{var Sa=200,On="__lodash_hash_undefined__",ke=1,ni=2,ri=9007199254740991,_e="[object Arguments]",pn="[object Array]",Ta="[object AsyncFunction]",ii="[object Boolean]",oi="[object Date]",ai="[object Error]",li="[object Function]",ka="[object GeneratorFunction]",Oe="[object Map]",si="[object Number]",Na="[object Null]",Ut="[object Object]",Kr="[object Promise]",xa="[object Proxy]",ui="[object RegExp]",Ee="[object Set]",fi="[object String]",La="[object Symbol]",Pa="[object Undefined]",vn="[object WeakMap]",ci="[object ArrayBuffer]",we="[object DataView]",Ra="[object Float32Array]",ja="[object Float64Array]",Ma="[object Int8Array]",qa="[object Int16Array]",Da="[object Int32Array]",Ia="[object Uint8Array]",Ca="[object Uint8ClampedArray]",Ba="[object Uint16Array]",Ga="[object Uint32Array]",Fa=/[\\^$.*+?()[\]{}|]/g,Ua=/^\[object .+?Constructor\]$/,Ha=/^(?:0|[1-9]\d*)$/,ot={};ot[Ra]=ot[ja]=ot[Ma]=ot[qa]=ot[Da]=ot[Ia]=ot[Ca]=ot[Ba]=ot[Ga]=!0;ot[_e]=ot[pn]=ot[ci]=ot[ii]=ot[we]=ot[oi]=ot[ai]=ot[li]=ot[Oe]=ot[si]=ot[Ut]=ot[ui]=ot[Ee]=ot[fi]=ot[vn]=!1;var hi=typeof global=="object"&&global&&global.Object===Object&&global,za=typeof self=="object"&&self&&self.Object===Object&&self,bt=hi||za||Function("return this")(),di=typeof Yt=="object"&&Yt&&!Yt.nodeType&&Yt,$r=di&&typeof Ht=="object"&&Ht&&!Ht.nodeType&&Ht,pi=$r&&$r.exports===di,cn=pi&&hi.process,Wr=function(){try{return cn&&cn.binding&&cn.binding("util")}catch{}}(),Vr=Wr&&Wr.isTypedArray;function Ka(e,t){for(var n=-1,l=e==null?0:e.length,y=0,h=[];++n-1}function Ol(e,t){var n=this.__data__,l=xe(n,e);return l<0?(++this.size,n.push([e,t])):n[l][1]=t,this}_t.prototype.clear=gl;_t.prototype.delete=ml;_t.prototype.get=bl;_t.prototype.has=_l;_t.prototype.set=Ol;function Mt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++tg))return!1;var o=h.get(e);if(o&&h.get(t))return o==t;var r=-1,i=!0,v=n&ni?new Se:void 0;for(h.set(e,t),h.set(t,e);++r-1&&e%1==0&&e-1&&e%1==0&&e<=ri}function wi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function te(e){return e!=null&&typeof e=="object"}var Ai=Vr?Za(Vr):Cl;function Ql(e){return Jl(e)?Ml(e):Bl(e)}function Xl(){return[]}function ts(){return!1}Ht.exports=Yl});var Si=St(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});var es=fn(),ns=En(),wn;(function(e){function t(h={},d={},g=!1){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});let f=es(d);g||(f=Object.keys(f).reduce((o,r)=>(f[r]!=null&&(o[r]=f[r]),o),{}));for(let o in h)h[o]!==void 0&&d[o]===void 0&&(f[o]=h[o]);return Object.keys(f).length>0?f:void 0}e.compose=t;function n(h={},d={}){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});let g=Object.keys(h).concat(Object.keys(d)).reduce((f,o)=>(ns(h[o],d[o])||(f[o]=d[o]===void 0?null:d[o]),f),{});return Object.keys(g).length>0?g:void 0}e.diff=n;function l(h={},d={}){h=h||{};let g=Object.keys(d).reduce((f,o)=>(d[o]!==h[o]&&h[o]!==void 0&&(f[o]=d[o]),f),{});return Object.keys(h).reduce((f,o)=>(h[o]!==d[o]&&d[o]===void 0&&(f[o]=null),f),g)}e.invert=l;function y(h,d,g=!1){if(typeof h!="object")return d;if(typeof d!="object")return;if(!g)return d;let f=Object.keys(d).reduce((o,r)=>(h[r]===void 0&&(o[r]=d[r]),o),{});return Object.keys(f).length>0?f:void 0}e.transform=y})(wn||(wn={}));An.default=wn});var kn=St(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});var Sn;(function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t})(Sn||(Sn={}));Tn.default=Sn});var ki=St(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var Ti=kn(),Nn=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);let n=this.ops[this.index];if(n){let l=this.offset,y=Ti.default.length(n);if(t>=y-l?(t=y-l,this.index+=1,this.offset=0):this.offset+=t,typeof n.delete=="number")return{delete:t};{let h={};return n.attributes&&(h.attributes=n.attributes),typeof n.retain=="number"?h.retain=t:typeof n.retain=="object"&&n.retain!==null?h.retain=n.retain:typeof n.insert=="string"?h.insert=n.insert.substr(l,t):h.insert=n.insert,h}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?Ti.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let t=this.offset,n=this.index,l=this.next(),y=this.ops.slice(this.index);return this.offset=t,this.index=n,[l].concat(y)}}else return[]}};xn.default=Nn});var xi=St((Et,Re)=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.AttributeMap=Et.OpIterator=Et.Op=void 0;var Pe=rr(),rs=fn(),Ln=En(),Dt=Si();Et.AttributeMap=Dt.default;var Ot=kn();Et.Op=Ot.default;var pt=ki();Et.OpIterator=pt.default;var is=String.fromCharCode(0),Ni=(e,t)=>{if(typeof e!="object"||e===null)throw new Error(`cannot retain a ${typeof e}`);if(typeof t!="object"||t===null)throw new Error(`cannot retain a ${typeof t}`);let n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]},wt=class e{constructor(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,n){this.handlers[t]=n}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){let n=this.handlers[t];if(!n)throw new Error(`no handlers for embed type "${t}"`);return n}insert(t,n){let l={};return typeof t=="string"&&t.length===0?this:(l.insert=t,n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(l.attributes=n),this.push(l))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,n){if(typeof t=="number"&&t<=0)return this;let l={retain:t};return n!=null&&typeof n=="object"&&Object.keys(n).length>0&&(l.attributes=n),this.push(l)}push(t){let n=this.ops.length,l=this.ops[n-1];if(t=rs(t),typeof l=="object"){if(typeof t.delete=="number"&&typeof l.delete=="number")return this.ops[n-1]={delete:l.delete+t.delete},this;if(typeof l.delete=="number"&&t.insert!=null&&(n-=1,l=this.ops[n-1],typeof l!="object"))return this.ops.unshift(t),this;if(Ln(t.attributes,l.attributes)){if(typeof t.insert=="string"&&typeof l.insert=="string")return this.ops[n-1]={insert:l.insert+t.insert},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof l.retain=="number")return this.ops[n-1]={retain:l.retain+t.retain},typeof t.attributes=="object"&&(this.ops[n-1].attributes=t.attributes),this}}return n===this.ops.length?this.ops.push(t):this.ops.splice(n,0,t),this}chop(){let t=this.ops[this.ops.length-1];return t&&typeof t.retain=="number"&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){let n=[],l=[];return this.forEach(y=>{(t(y)?n:l).push(y)}),[n,l]}reduce(t,n){return this.ops.reduce(t,n)}changeLength(){return this.reduce((t,n)=>n.insert?t+Ot.default.length(n):n.delete?t-n.delete:t,0)}length(){return this.reduce((t,n)=>t+Ot.default.length(n),0)}slice(t=0,n=1/0){let l=[],y=new pt.default(this.ops),h=0;for(;h0&&l.next(h.retain-g)}let d=new e(y);for(;n.hasNext()||l.hasNext();)if(l.peekType()==="insert")d.push(l.next());else if(n.peekType()==="delete")d.push(n.next());else{let g=Math.min(n.peekLength(),l.peekLength()),f=n.next(g),o=l.next(g);if(o.retain){let r={};if(typeof f.retain=="number")r.retain=typeof o.retain=="number"?g:o.retain;else if(typeof o.retain=="number")f.retain==null?r.insert=f.insert:r.retain=f.retain;else{let v=f.retain==null?"insert":"retain",[c,p,s]=Ni(f[v],o.retain),u=e.getHandler(c);r[v]={[c]:u.compose(p,s,v==="retain")}}let i=Dt.default.compose(f.attributes,o.attributes,typeof f.retain=="number");if(i&&(r.attributes=i),d.push(r),!l.hasNext()&&Ln(d.ops[d.ops.length-1],r)){let v=new e(n.rest());return d.concat(v).chop()}}else typeof o.delete=="number"&&(typeof f.retain=="number"||typeof f.retain=="object"&&f.retain!==null)&&d.push(o)}return d.chop()}concat(t){let n=new e(this.ops.slice());return t.ops.length>0&&(n.push(t.ops[0]),n.ops=n.ops.concat(t.ops.slice(1))),n}diff(t,n){if(this.ops===t.ops)return new e;let l=[this,t].map(f=>f.map(o=>{if(o.insert!=null)return typeof o.insert=="string"?o.insert:is;let r=f===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")),y=new e,h=Pe(l[0],l[1],n,!0),d=new pt.default(this.ops),g=new pt.default(t.ops);return h.forEach(f=>{let o=f[1].length;for(;o>0;){let r=0;switch(f[0]){case Pe.INSERT:r=Math.min(g.peekLength(),o),y.push(g.next(r));break;case Pe.DELETE:r=Math.min(o,d.peekLength()),d.next(r),y.delete(r);break;case Pe.EQUAL:r=Math.min(d.peekLength(),g.peekLength(),o);let i=d.next(r),v=g.next(r);Ln(i.insert,v.insert)?y.retain(r,Dt.default.diff(i.attributes,v.attributes)):y.push(v).delete(r);break}o-=r}}),y.chop()}eachLine(t,n=` `){let l=new pt.default(this.ops),y=new e,h=0;for(;l.hasNext();){if(l.peekType()!=="insert")return;let d=l.peek(),g=Ot.default.length(d)-l.peekLength(),f=typeof d.insert=="string"?d.insert.indexOf(n,g)-g:-1;if(f<0)y.push(l.next());else if(f>0)y.push(l.next(f));else{if(t(y,l.next(1).attributes||{},h)===!1)return;h+=1,y=new e}}y.length()>0&&t(y,{},h)}invert(t){let n=new e;return this.reduce((l,y)=>{if(y.insert)n.delete(Ot.default.length(y));else{if(typeof y.retain=="number"&&y.attributes==null)return n.retain(y.retain),l+y.retain;if(y.delete||typeof y.retain=="number"){let h=y.delete||y.retain;return t.slice(l,l+h).forEach(g=>{y.delete?n.push(g):y.retain&&y.attributes&&n.retain(Ot.default.length(g),Dt.default.invert(y.attributes,g.attributes))}),l+h}else if(typeof y.retain=="object"&&y.retain!==null){let h=t.slice(l,l+1),d=new pt.default(h.ops).next(),[g,f,o]=Ni(y.retain,d.insert),r=e.getHandler(g);return n.retain({[g]:r.invert(f,o)},Dt.default.invert(y.attributes,d.attributes)),l+1}}return l},0),n.chop()}transform(t,n=!1){if(n=!!n,typeof t=="number")return this.transformPosition(t,n);let l=t,y=new pt.default(this.ops),h=new pt.default(l.ops),d=new e;for(;y.hasNext()||h.hasNext();)if(y.peekType()==="insert"&&(n||h.peekType()!=="insert"))d.retain(Ot.default.length(y.next()));else if(h.peekType()==="insert")d.push(h.next());else{let g=Math.min(y.peekLength(),h.peekLength()),f=y.next(g),o=h.next(g);if(f.delete)continue;if(o.delete)d.push(o);else{let r=f.retain,i=o.retain,v=typeof i=="object"&&i!==null?i:g;if(typeof r=="object"&&r!==null&&typeof i=="object"&&i!==null){let c=Object.keys(r)[0];if(c===Object.keys(i)[0]){let p=e.getHandler(c);p&&(v={[c]:p.transform(r[c],i[c],n)})}}d.retain(v,Dt.default.transform(f.attributes,o.attributes,n))}}return d.chop()}transformPosition(t,n=!1){n=!!n;let l=new pt.default(this.ops),y=0;for(;l.hasNext()&&y<=t;){let h=l.peekLength(),d=l.peekType();if(l.next(),d==="delete"){t-=Math.min(h,t-y);continue}else d==="insert"&&(y{for(var n in t)Ge.o(t,n)&&!Ge.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},Un={};Ge.d(Un,{Z:()=>Fi});var Hn="#0d84fc",oe={className:"chrome__overlay",hotKeys:["ctrlKey"],style:{position:"absolute",border:`1px solid ${Hn}`}},zn={className:"chromes__resize-grip",enabled:["all"],style:{position:"absolute",height:"12px",width:"12px",color:Hn,backgroundColor:"white",boxSizing:"border-box",opacity:"0.80",border:"1px solid","border-radius":"6px"}},De={resize:!0,align:!0,inline:!0,overlay:oe,grips:zn},Kn={chromes:{image:Object.assign(Object.assign({},De),{overlay:Object.assign(Object.assign({},oe),{className:"image_chrome__overlay"})}),video:Object.assign(Object.assign({},De),{overlay:Object.assign(Object.assign({},oe),{className:"video_chrome__overlay"})}),table:Object.assign(Object.assign({},De),{inline:!1,overlay:Object.assign(Object.assign({},oe),{className:"table_chrome__overlay"}),grips:Object.assign(Object.assign({},zn),{enabled:["over","top"]})})}};function Cn({constructor:e}){return e}var Fe="align",re="left",Ie="center",Ce="right",ie="justify",Ue=class{constructor(){this.lastAlign=re,this.preWidth=0,this.preRatio=1,this.alignAttribute=Fe,this.alignments={[re]:{name:re,apply:t=>{this.setAlignment(t,re),this.setStyle(t,"inline","left","0 1em 1em 0")}},[Ie]:{name:Ie,apply:t=>{this.setAlignment(t,Ie),this.setStyle(t,"block","block","auto")}},[ie]:{name:ie,apply:t=>{this.setAlignment(t,ie),this.setStyle(t,"block","block","auto",!0)}},[Ce]:{name:Ce,apply:t=>{this.setAlignment(t,Ce),this.setStyle(t,"inline","right","0 0 1em 1em")}}}}setAlignment(t,n){this.lastAlign==ie&&n!=this.lastAlign&&this.setSize(t,`${this.preWidth}px`),this.lastAlign=n,t.setAttribute(this.alignAttribute,n)}setSize(t,n){let l=t.getBoundingClientRect();this.preWidth=l.width,this.preRatio=l.height/l.width,t.setAttribute("width",n),l=t.getBoundingClientRect(),t.setAttribute("height",l.width*this.preRatio+"px")}setStyle(t,n,l,y,h){t.style.setProperty("display",n),t.style.setProperty("float",l),t.style.setProperty("margin",y),h&&this.setSize(t,"100%")}},It=class{constructor(t){this.chromes=t,this.quill=t.quill}onCreate(){}onDestroy(){}onUpdate(){}},ae=class extends It{constructor(t){var n,l;super(t),this.alignHandler=()=>{},this.aligner=new Ue,this.target=(l=(n=this.chromes)===null||n===void 0?void 0:n.currentChrome)===null||l===void 0?void 0:l.getTargetElement()}onCreate(){var t,n;this.toolbar=this.quill.getModule("toolbar"),this.alignHandler=(t=this.toolbar)===null||t===void 0?void 0:t.handlers.align,(n=this.toolbar)===null||n===void 0||n.addHandler("align",l=>{this.setAlignment(l)})}onDestroy(){var t;(t=this.toolbar)===null||t===void 0||t.addHandler("align",this.alignHandler)}setAlignment(t){let n=t||"left";this.target&&this.aligner.alignments[n].apply(this.target)}},le=class extends It{constructor(t){super(t),this.onKeyUp=n=>{this.chromes.currentChrome&&(n.code==="Delete"||n.code==="Backspace"||n.keyCode===46||n.keyCode)}}onCreate(){document.addEventListener("keyup",this.onKeyUp,!0),this.quill.root.addEventListener("input",this.onKeyUp,!0)}onDestroy(){document.removeEventListener("keyup",this.onKeyUp),this.quill.root.removeEventListener("input",this.onKeyUp)}},Be="chrome-position",se=class extends It{constructor(t){var n;super(t),this.disabled=!1,this.onMouseDown=y=>{if(!(y.target instanceof HTMLElement)||(this.dragGrip=y.target,this.setCursor(this.dragGrip.style.cursor),!this.chromes.currentChrome))return;let h=this.chromes.currentChrome.getTargetElement();if(!h)return;let d=h.getBoundingClientRect();this.dragStartX=y.clientX,this.dragStartY=y.clientY,this.preDragWidth=d.width,this.preDragHeight=d.height,this.targetRatio=d.height/d.width,document.addEventListener("mousemove",this.onDrag),document.addEventListener("mouseup",this.onMouseUp)},this.onDrag=y=>{if(!this.chromes.currentChrome)return;let h=this.chromes.currentChrome.getTargetElement();if(!h)return;let d=y.clientX-this.dragStartX,g=y.clientY-this.dragStartY,f=this.preDragWidth,o=this.targetRatio*this.preDragWidth;this.dragGrip===this.topLeftGrip||this.dragGrip===this.bottomLeftGrip||this.dragGrip==this.leftGrip?f=Math.round(this.preDragWidth-d):this.dragGrip!==this.topRightGrip&&this.dragGrip!==this.bottomRightGrip&&this.dragGrip!=this.rightGrip||(f=Math.round(this.preDragWidth+d)),this.dragGrip!=this.rightGrip&&this.dragGrip!=this.leftGrip&&(o=this.dragGrip==this.bottomGrip?Math.round(this.preDragHeight+g):this.dragGrip==this.topGrip?Math.round(this.preDragHeight-g):this.targetRatio*f),h.setAttribute("width",`${f}px`),h.setAttribute("height",`${o}px`),Object.assign(h.style,{width:`${f}px`}),this.chromes.update()},this.onMouseUp=()=>{this.setCursor("auto"),document.removeEventListener("mousemove",this.onDrag),document.removeEventListener("mouseup",this.onMouseUp),this.dragGrip&&(this.dragGrip.style.background="white",this.dragGrip=null)};let l=t?.currentOptions;this.gripOptions=l?.grips,t.overlay&&(t.overlay.className=(n=l?.overlay.className)!==null&&n!==void 0?n:"",l?.overlay.style&&Object.assign(t.overlay.style,l.overlay.style)),this.topLeftGrip=this.createGrip("top-left"),this.topRightGrip=this.createGrip("top-right"),this.bottomRightGrip=this.createGrip("bottom-right"),this.bottomLeftGrip=this.createGrip("bottom-left"),this.topGrip=this.createGrip("top"),this.rightGrip=this.createGrip("right"),this.bottomGrip=this.createGrip("bottom"),this.leftGrip=this.createGrip("left"),this.dragGrip=null,this.dragStartX=0,this.dragStartY=0,this.preDragWidth=0,this.preDragHeight=0,this.targetRatio=0}onCreate(){var t,n,l,y;this.chromes.overlay.appendChild(this.topLeftGrip),this.chromes.overlay.appendChild(this.topRightGrip),this.chromes.overlay.appendChild(this.bottomRightGrip),this.chromes.overlay.appendChild(this.bottomLeftGrip),this.chromes.overlay.appendChild(this.topGrip),this.chromes.overlay.appendChild(this.leftGrip),this.chromes.overlay.appendChild(this.bottomGrip),this.chromes.overlay.appendChild(this.rightGrip),this.repositionHandles((n=(t=this.gripOptions)===null||t===void 0?void 0:t.style)!==null&&n!==void 0?n:{}),this.observer=new MutationObserver(d=>{d.forEach(g=>{var f,o;if(g.type=="attributes"&&g.attributeName==Fe){this.chromes.repositionOverlay();let r=(o=(f=this.chromes.currentChrome)===null||f===void 0?void 0:f.getTargetElement())===null||o===void 0?void 0:o.getAttribute(Fe);switch(r!="justify"&&this.disabled&&this.enableAll(),r){case"right":this.disableGrip(this.rightGrip),this.enableGrip(this.bottomGrip),this.enableGrip(this.leftGrip);break;case"left":this.enableGrip(this.rightGrip),this.enableGrip(this.bottomGrip),this.disableGrip(this.leftGrip);break;case"center":this.enableGrip(this.rightGrip),this.enableGrip(this.bottomGrip),this.enableGrip(this.leftGrip);break;default:this.disableAll(),this.enableGrip(this.bottomGrip)}}})});let h=(y=(l=this.chromes)===null||l===void 0?void 0:l.currentChrome)===null||y===void 0?void 0:y.getTargetElement();h&&this.observer.observe(h,{attributes:!0})}onDestroy(){var t;this.setCursor("auto"),this.chromes.overlay.removeChild(this.topLeftGrip),this.chromes.overlay.removeChild(this.topRightGrip),this.chromes.overlay.removeChild(this.bottomRightGrip),this.chromes.overlay.removeChild(this.bottomLeftGrip),this.chromes.overlay.removeChild(this.topGrip),this.chromes.overlay.removeChild(this.leftGrip),this.chromes.overlay.removeChild(this.bottomGrip),this.chromes.overlay.removeChild(this.rightGrip),(t=this.observer)===null||t===void 0||t.disconnect()}createGrip(t){var n,l;let y=document.createElement("div"),h=(n=this.gripOptions)===null||n===void 0?void 0:n.className;return h&&y.classList.add(h),y.setAttribute(Be,t),!((l=this.gripOptions)===null||l===void 0)&&l.style&&Object.assign(y.style,this.gripOptions.style),this.enableGrip(y),y.addEventListener("mouseout",()=>{y!=this.dragGrip&&(y.style.background="white")}),y.addEventListener("mouseover",()=>{y.getAttribute("handled")!="disable"&&(this.dragGrip&&y!=this.dragGrip||(y.style.background="#0d84fcb0"))}),y}repositionHandles(t){let n="0px",l="0px";t&&(t.width&&(n=-parseFloat(t.width)/2-1+"px"),t.height&&(l=-parseFloat(t.height)/2-1+"px")),Object.assign(this.topLeftGrip.style,{left:n,top:l}),Object.assign(this.topRightGrip.style,{right:n,top:l}),Object.assign(this.bottomRightGrip.style,{right:n,bottom:l}),Object.assign(this.bottomLeftGrip.style,{left:n,bottom:l}),Object.assign(this.topGrip.style,{left:"50%","margin-left":n,top:l}),Object.assign(this.leftGrip.style,{left:n,top:"50%","margin-top":l}),this.disableGrip(this.leftGrip),Object.assign(this.rightGrip.style,{right:n,top:"50%","margin-top":l}),Object.assign(this.bottomGrip.style,{left:"50%","margin-left":n,bottom:l})}checkEnableGrip(t){var n,l,y,h,d;let g=t.getAttribute(Be);if(!((l=(n=this.gripOptions)===null||n===void 0?void 0:n.enabled)===null||l===void 0)&&l.includes("all"))return!0;let f=!(!((y=this.gripOptions)===null||y===void 0)&&y.enabled.includes("over"));return f&&((h=this.gripOptions)===null||h===void 0?void 0:h.enabled.includes(g))||!f&&!(!((d=this.gripOptions)===null||d===void 0)&&d.enabled.includes(g))}enableGrip(t){t&&this.checkEnableGrip(t)&&(t.setAttribute("handled","enable"),t.addEventListener("mousedown",this.onMouseDown),Object.assign(t.style,{border:"1px solid #0d84fc",cursor:this.getCursor(t)}))}disableGrip(t){t&&this.checkEnableGrip(t)&&(t.setAttribute("handled","disable"),t.removeEventListener("mousedown",this.onMouseDown),Object.assign(t.style,{border:"1px solid rgb(156 156 156)",cursor:null}))}enableAll(){this.enableGrip(this.topLeftGrip),this.enableGrip(this.topRightGrip),this.enableGrip(this.bottomRightGrip),this.enableGrip(this.bottomLeftGrip),this.enableGrip(this.topGrip),this.enableGrip(this.leftGrip),this.enableGrip(this.bottomGrip),this.enableGrip(this.rightGrip),this.disabled=!1}disableAll(){this.disableGrip(this.leftGrip),this.disableGrip(this.bottomGrip),this.disableGrip(this.rightGrip),this.disableGrip(this.topLeftGrip),this.disableGrip(this.topRightGrip),this.disableGrip(this.bottomRightGrip),this.disableGrip(this.bottomLeftGrip),this.disabled=!0}getCursor(t){switch(t.getAttribute(Be)){case"top":case"bottom":return"ns-resize";case"right":case"left":return"ew-resize";case"top-left":case"bottom-right":return"nwse-resize";case"top-right":case"bottom-left":return"nesw-resize";default:return"auto"}}setCursor(t){if(document.body&&(document.body.style.cursor=t),this.chromes.currentChrome){let n=this.chromes.currentChrome.getOverlayElement();n&&(n.style.cursor=t)}}},$t=class{constructor(t){this.chromes=t,this.quill=t.quill}init(){}getActions(){return[ae,se,le]}getTargetElement(){return HTMLElement.prototype}getOverlayElement(){return this.getTargetElement()}setSelection(){}onHide(){}},Bn="data-blot-chromes-unhandled-bound",He=class extends $t{constructor(t,n){super(t),this.onTextChange=()=>{Array.from(document.querySelectorAll(`${this.selector}:not([${Bn}])`)).forEach(l=>{l.setAttribute(Bn,"true"),l.addEventListener("mouseenter",this.onMouseEnter)})},this.onMouseEnter=l=>{let y=l.target;y instanceof HTMLElement&&(this.nextUnhandled=y,this.repositionProxyImage(this.nextUnhandled))},this.onProxyImageClick=()=>{this.unhandled=this.nextUnhandled,this.nextUnhandled=null,this.chromes.show(this),this.hideProxyImage()},this.selector=n,this.unhandled=null,this.nextUnhandled=null}init(){var t;document.body&&document.body.appendChild(this.createProxyImage()),this.hideProxyImage(),(t=this.proxyImage)===null||t===void 0||t.addEventListener("click",this.onProxyImageClick),this.quill.on("text-change",this.onTextChange)}getTargetElement(){var t;return(t=this.unhandled)!==null&&t!==void 0?t:HTMLElement.prototype}getOverlayElement(){var t;return(t=this.unhandled)!==null&&t!==void 0?t:HTMLElement.prototype}onHide(){this.hideProxyImage(),this.nextUnhandled=null,this.unhandled=null}createProxyImage(){let t=document.createElement("canvas"),n=t.getContext("2d");return n&&(n.globalAlpha=0,n.fillRect(0,0,1,1)),this.proxyImage=document.createElement("img"),this.proxyImage.src=t.toDataURL("image/png"),this.proxyImage.classList.add("blot-chromes__proxy-image"),Object.assign(this.proxyImage.style,{position:"absolute",margin:"0"}),this.proxyImage}hideProxyImage(){this.proxyImage&&Object.assign(this.proxyImage.style,{display:"none"})}repositionProxyImage(t){let n=t.getBoundingClientRect();this.proxyImage&&Object.assign(this.proxyImage.style,{display:"block",left:`${n.left+window.pageXOffset}px`,top:`${n.top+window.pageYOffset}px`,width:`${n.width}px`,height:`${n.height}px`})}},ze=class extends It{constructor(t){var n;super(t),this.pageX=0,this.grips=[],this.onWindowResize=l=>{},this.onMouseEnter=l=>{var y;if(!(l.target instanceof HTMLDivElement))return;let h=l.target;((y=this.row)===null||y===void 0?void 0:y.parentNode).childNodes.forEach(d=>{let g=d.children[h.index];Object.assign(g.style,{"border-right":"1px solid #0d84fc"})})},this.onMouseOut=l=>{var y;if(!(l.target instanceof HTMLDivElement))return;let h=l.target;((y=this.row)===null||y===void 0?void 0:y.parentNode).childNodes.forEach(d=>{let g=d.children[h.index];Object.assign(g.style,{"border-right":""})})},this.documentMouseMove=l=>{var y,h;if(this.curGrip){let d=l.pageX-this.pageX+6,g=this.absoluteWidth(this.curGrip.endLeft)+d,f=this.curGrip.prev?this.curGrip.prev.offsetLeft:this.absoluteWidth(this.curGrip.startShift),o=this.curGrip.next?this.curGrip.next.offsetLeft:this.chromes.overlay.offsetWidth;if(d>0?gf+26){let r=this.curGrip.next?this.curGrip.next.index:this.curGrip.index+1,i=(y=this.row)===null||y===void 0?void 0:y.children[r],v=this.curGrip.next?this.absoluteWidth(this.curGrip.next.endLeft-this.curGrip.next.startShift):this.chromes.overlay.offsetWidth-this.absoluteWidth(this.curGrip.endLeft),c=this.percentWidth(v-d-1);i?.setAttribute("width",`${c}%`);let p=(h=this.row)===null||h===void 0?void 0:h.children[this.curGrip.index],s=this.curGrip.endLeft-this.curGrip.startShift+ +this.percentWidth(d);p?.setAttribute("width",`${s}%`),this.curGrip.style.left=`${this.percentWidth(g)}%`}}},this.documentMouseUp=l=>{this.curGrip&&(this.curGrip.endLeft=+this.curGrip.style.left.replace("%",""),this.curGrip.next&&(this.curGrip.next.startShift=this.curGrip.endLeft),this.curGrip=void 0)},this.onMouseDown=l=>{l.target instanceof HTMLElement&&(this.curGrip=l.target,this.curGrip.endLeft=+this.percentWidth(l.target.offsetLeft),this.curGrip.next&&(this.curGrip.next.startShift=this.curGrip.endLeft),this.pageX=l.pageX)},this.table=(n=t.currentChrome)===null||n===void 0?void 0:n.getTargetElement(),this.boundsWidth=t.overlay.clientWidth,t.quillRoot,t.quillRootContainer.clientWidth,t.quillRootContainer.offsetLeft,this.chromes=t}onCreate(){var t,n,l;if(this.row=(t=this.table)===null||t===void 0?void 0:t.getElementsByTagName("tr")[0],!this.row)return;let y=this.row.children;if(!y)return;let h=0,d=(l=(n=this.table)===null||n===void 0?void 0:n.clientHeight)!==null&&l!==void 0?l:0,g=null;for(let o=0;othis.chromes.overlay.removeChild(t));this.grips.length;){let t=this.grips.pop();t?.removeEventListener("mousedown",this.onMouseDown),t?.removeEventListener("mouseover",this.onMouseEnter),t?.removeEventListener("mouseout",this.onMouseOut)}}clearReplaceGrip(t){var n;let l=t.cloneNode(!0);(n=t?.parentNode)===null||n===void 0||n.replaceChild(t,l)}onUpdate(){}createGrip(t,n,l){let y=document.createElement("div"),h=Object.assign(y,Object.assign(Object.assign({},l),{prev:n,next:null})),d={display:"inline",top:0,width:"6px",position:"absolute",cursor:"col-resize",userSelect:"none",height:`${t}px`,"margin-left":"-4px",left:`${l.endLeft}%`};return Object.assign(h.style,d),n&&(n.next=h),h}setListeners(t){t.addEventListener("mousedown",this.onMouseDown),t.addEventListener("mouseover",this.onMouseEnter),t.addEventListener("mouseout",this.onMouseOut),document.addEventListener("mousemove",this.documentMouseMove),document.addEventListener("mouseup",this.documentMouseUp)}percentWidth(t){return(100*t/this.chromes.overlay.offsetWidth).toFixed(2)}absoluteWidth(t){return t/100*this.chromes.overlay.offsetWidth}paddingDiff(t){if(this.getStyleVal(t,"box-sizing")=="border-box")return 0;let n=this.getStyleVal(t,"padding-left"),l=this.getStyleVal(t,"padding-right");return parseInt(n)+parseInt(l)}getStyleVal(t,n){return window.getComputedStyle(t,null).getPropertyValue(n)}},Gn=["alt","height","width","style","align"],Fn=new Map([["image",class extends $t{constructor(e){super(e),this.onClick=t=>{let n=t.target;n instanceof HTMLImageElement&&n.tagName==="IMG"&&(this.img=n,this.chromes.show(this))},this.img=null,this.chromes=e}init(){this.quill.root.addEventListener("click",this.onClick)}getTargetElement(){var e;return(e=this.img)!==null&&e!==void 0?e:HTMLElement.prototype}onHide(){this.img=null}}],["video",class extends He{constructor(e){super(e,"iframe.ql-video")}}],["table",class extends $t{constructor(e){super(e),this.overHooks=[],this.ctrlHooks=[ae,ze,se,le],this.currentHooks=[],this.onClick=t=>{let n=t.target;n instanceof HTMLElement&&n.tagName==="TD"&&(this.currentHooks=t.ctrlKey?this.ctrlHooks:this.overHooks,this.currentHooks.length&&(this.table=n.closest("table"),this.chromes.show(this)))},this.table=null,this.chromes=e}getActions(){return this.currentHooks}init(){this.quill.root.addEventListener("click",this.onClick)}getTargetElement(){var e;return(e=this.table)!==null&&e!==void 0?e:HTMLElement.prototype}onHide(){this.table=null}}]]),Ke=class{constructor(t,n){this.quill=t,this.options=Object.assign(Kn,n)}},Gi=document.ondragstart,ue=class extends Ke{constructor(t,n){super(t,n),this.chromeOption=new Map,this.onClick=()=>{this.hide()},this.registerImage(Cn(t)),this.quillRoot=this.quill.root,this.quillRootContainer=this.quillRoot.parentNode,this.currentChrome=null,this.hooks=[],this.overlay=document.createElement("div"),document.execCommand("enableObjectResizing",!1,"false"),this.quillRootContainer.style.position=this.quillRootContainer.style.position||"relative",this.quill.root.addEventListener("click",this.onClick);let l=Object.keys(this.options.chromes),y=Object.values(this.options.chromes);l.map((h,d)=>{let g=Fn.get(h);g&&this.chromeOption.set(g,y[d])}),this.chromes=l.map(h=>new(Fn.get(h))(this)),this.chromes.forEach(h=>h.init())}registerImage(t){let n=t.import("formats/image");t.register(class extends n{static formats(l){return Gn.reduce(function(y,h){var d;return l.hasAttribute(h)&&(y[h]=(d=l.getAttribute(h))!==null&&d!==void 0?d:""),y},{})}format(l,y){Gn.indexOf(l)>-1?y?this.domNode.setAttribute(l,y):this.domNode.removeAttribute(l):super.format(l,y)}},!0)}show(t){this.currentChrome=t,this.currentOptions=this.chromeOption.get(Cn(t)),this.currentChrome.setSelection(),this.setUserSelect("none"),this.quillRootContainer.appendChild(this.overlay),this.repositionOverlay(),this.createActions(t)}hide(){this.currentChrome&&(this.currentChrome.onHide(),this.currentChrome=null,this.quillRootContainer.removeChild(this.overlay),this.overlay.style.setProperty("display","none"),this.setUserSelect(""),this.destroyActions())}update(){this.repositionOverlay(),this.hooks.forEach(t=>t.onUpdate())}createActions(t){this.hooks=t.getActions().map(n=>{let l=new n(this);return l.onCreate(),l}),document.addEventListener("dragstart",n=>(n.preventDefault(),document.body.style.cursor="auto",!1))}destroyActions(){this.hooks.forEach(t=>t.onDestroy()),this.hooks=[],document.ondragstart=Gi}repositionOverlay(){if(!this.currentChrome)return;let t=this.currentChrome.getOverlayElement();if(!t)return;let n=this.quillRootContainer,l=t.getBoundingClientRect(),y=n.getBoundingClientRect();Object.assign(this.overlay.style,{display:"block","margin-left":`${l.left-y.left-1+n.scrollLeft}px`,top:`${l.top-y.top+n.scrollTop}px`,width:`${l.width}px`,height:`${l.height}px`})}setUserSelect(t){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(n=>{this.quill.root.style.setProperty(n,t),document.documentElement&&document.documentElement.style.setProperty(n,t)})}};ue.DEFAULTS=Kn;var Fi=ue,$n=Un.Z;var Pi=Dn(xi(),1);var Li;(function(e){let t=[],n="__jsObjectId",l="__dotNetObject",y="__byte[]",h="__dotNetStream",d="__jsStreamReferenceLength",g,f;class o{constructor(_){this._jsObject=_,this._cachedFunctions=new Map}findFunction(_){let N=this._cachedFunctions.get(_);if(N)return N;let P=this._jsObject,D;if(_.split(".").forEach(I=>{if(I in P)D=P,P=P[I];else throw new Error(`Could not find '${_}' ('${I}' was undefined).`)}),P instanceof Function)return P=P.bind(D),this._cachedFunctions.set(_,P),P;throw new Error(`The value '${_}' is not a function.`)}getWrappedObject(){return this._jsObject}}let r=0,i={[r]:new o(window)};i[r]._cachedFunctions.set("import",L=>(typeof L=="string"&&L.startsWith("./")&&(L=new URL(L.substr(2),document.baseURI).toString()),import(L)));let v=1;function c(L){let _=new x(L);return g===void 0?g=_:g&&(g=null),_}e.attachDispatcher=c;function p(L){t.push(L)}e.attachReviver=p;function s(L,_,...N){return w().invokeDotNetStaticMethod(L,_,...N)}e.invokeMethod=s;function u(L,_,...N){return w().invokeDotNetStaticMethodAsync(L,_,...N)}e.invokeMethodAsync=u;function m(L){if(L&&typeof L=="object"){i[v]=new o(L);let _={[n]:v};return v++,_}throw new Error(`Cannot create a JSObjectReference from the value '${L}'.`)}e.createJSObjectReference=m;function a(L){let _=-1;if(L instanceof ArrayBuffer&&(L=new Uint8Array(L)),L instanceof Blob)_=L.size;else if(L.buffer instanceof ArrayBuffer){if(L.byteLength===void 0)throw new Error(`Cannot create a JSStreamReference from the value '${L}' as it doesn't have a byteLength.`);_=L.byteLength}else throw new Error("Supplied value is not a typed array or blob.");let N={[d]:_};try{let P=m(L);N[n]=P[n]}catch{throw new Error(`Cannot create a JSStreamReference from the value '${L}'.`)}return N}e.createJSStreamReference=a;function b(L){let _=L&&L[n];typeof _=="number"&&A(_)}e.disposeJSObjectReference=b;function T(L,_){f=L;let N=_?JSON.parse(_,(P,D)=>t.reduce((I,R)=>R(P,I),D)):null;return f=void 0,N}function w(){if(g===void 0)throw new Error("No call dispatcher has been set.");if(g===null)throw new Error("There are multiple .NET runtimes present, so a default dispatcher could not be resolved. Use DotNetObject to invoke .NET instance methods.");return g}let S;(function(L){L[L.Default=0]="Default",L[L.JSObjectReference=1]="JSObjectReference",L[L.JSStreamReference=2]="JSStreamReference",L[L.JSVoidResult=3]="JSVoidResult"})(S=e.JSCallResultType||(e.JSCallResultType={}));class x{constructor(_){this._dotNetCallDispatcher=_,this._byteArraysToBeRevived=new Map,this._pendingDotNetToJSStreams=new Map,this._pendingAsyncCalls={},this._nextAsyncCallId=1}getDotNetCallDispatcher(){return this._dotNetCallDispatcher}invokeJSFromDotNet(_,N,P,D){let I=T(this,N),q=O(_,D)(...I||[]),F=B(q,P);return F==null?null:$(this,F)}beginInvokeJSFromDotNet(_,N,P,D,I){let R=new Promise(q=>{let F=T(this,P),K=O(N,I)(...F||[]);q(K)});_&&R.then(q=>$(this,[_,!0,B(q,D)])).then(q=>this._dotNetCallDispatcher.endInvokeJSFromDotNet(_,!0,q),q=>this._dotNetCallDispatcher.endInvokeJSFromDotNet(_,!1,JSON.stringify([_,!1,E(q)])))}endInvokeDotNetFromJS(_,N,P){let D=N?T(this,P):new Error(P);this.completePendingCall(parseInt(_,10),N,D)}invokeDotNetStaticMethod(_,N,...P){return this.invokeDotNetMethod(_,N,null,P)}invokeDotNetStaticMethodAsync(_,N,...P){return this.invokeDotNetMethodAsync(_,N,null,P)}invokeDotNetMethod(_,N,P,D){if(this._dotNetCallDispatcher.invokeDotNetFromJS){let I=$(this,D),R=this._dotNetCallDispatcher.invokeDotNetFromJS(_,N,P,I);return R?T(this,R):null}throw new Error("The current dispatcher does not support synchronous calls from JS to .NET. Use invokeDotNetMethodAsync instead.")}invokeDotNetMethodAsync(_,N,P,D){if(_&&P)throw new Error(`For instance method calls, assemblyName should be null. Received '${_}'.`);let I=this._nextAsyncCallId++,R=new Promise((q,F)=>{this._pendingAsyncCalls[I]={resolve:q,reject:F}});try{let q=$(this,D);this._dotNetCallDispatcher.beginInvokeDotNetFromJS(I,_,N,P,q)}catch(q){this.completePendingCall(I,!1,q)}return R}receiveByteArray(_,N){this._byteArraysToBeRevived.set(_,N)}processByteArray(_){let N=this._byteArraysToBeRevived.get(_);return N?(this._byteArraysToBeRevived.delete(_),N):null}supplyDotNetStream(_,N){if(this._pendingDotNetToJSStreams.has(_)){let P=this._pendingDotNetToJSStreams.get(_);this._pendingDotNetToJSStreams.delete(_),P.resolve(N)}else{let P=new M;P.resolve(N),this._pendingDotNetToJSStreams.set(_,P)}}getDotNetStreamPromise(_){let N;if(this._pendingDotNetToJSStreams.has(_))N=this._pendingDotNetToJSStreams.get(_).streamPromise,this._pendingDotNetToJSStreams.delete(_);else{let P=new M;this._pendingDotNetToJSStreams.set(_,P),N=P.streamPromise}return N}completePendingCall(_,N,P){if(!this._pendingAsyncCalls.hasOwnProperty(_))throw new Error(`There is no pending async call with ID ${_}.`);let D=this._pendingAsyncCalls[_];delete this._pendingAsyncCalls[_],N?D.resolve(P):D.reject(P)}}function E(L){return L instanceof Error?`${L.message} -${L.stack}`:L?L.toString():"null"}function O(L,_){let N=i[_];if(N)return N.findFunction(L);throw new Error(`JS object instance with ID ${_} does not exist (has it been disposed?).`)}e.findJSFunction=O;function A(L){delete i[L]}e.disposeJSObjectReferenceById=A;class k{constructor(_,N){this._id=_,this._callDispatcher=N}invokeMethod(_,...N){return this._callDispatcher.invokeDotNetMethod(null,_,this._id,N)}invokeMethodAsync(_,...N){return this._callDispatcher.invokeDotNetMethodAsync(null,_,this._id,N)}dispose(){this._callDispatcher.invokeDotNetMethodAsync(null,"__Dispose",this._id,null).catch(N=>console.error(N))}serializeAsArg(){return{[l]:this._id}}}e.DotNetObject=k,p(function(_,N){if(N&&typeof N=="object"){if(N.hasOwnProperty(l))return new k(N[l],f);if(N.hasOwnProperty(n)){let P=N[n],D=i[P];if(D)return D.getWrappedObject();throw new Error(`JS object instance with Id '${P}' does not exist. It may have been disposed.`)}else if(N.hasOwnProperty(y)){let P=N[y],D=f.processByteArray(P);if(D===void 0)throw new Error(`Byte array index '${P}' does not exist.`);return D}else if(N.hasOwnProperty(h)){let P=N[h],D=f.getDotNetStreamPromise(P);return new j(D)}}return N});class j{constructor(_){this._streamPromise=_}stream(){return this._streamPromise}async arrayBuffer(){return new Response(await this.stream()).arrayBuffer()}}class M{constructor(){this.streamPromise=new Promise((_,N)=>{this.resolve=_,this.reject=N})}}function B(L,_){switch(_){case S.Default:return L;case S.JSObjectReference:return m(L);case S.JSStreamReference:return a(L);case S.JSVoidResult:return null;default:throw new Error(`Invalid JS call result type '${_}'.`)}}let G=0;function $(L,_){G=0,f=L;let N=JSON.stringify(_,C);return f=void 0,N}function C(L,_){if(_ instanceof k)return _.serializeAsArg();if(_ instanceof Uint8Array){f.getDotNetCallDispatcher().sendByteArray(G,_);let P={[y]:G};return G++,P}return _}})(Li||(Li={}));var je=class{constructor(t){this.source=t}source},Me=class{constructor(t,n,l){this.oldRange=t,this.newRange=n,this.source=l}oldRange;newRange;source};function Pn(e,t){let n;return function(...l){return new Promise((y,h)=>{let d=this,g=()=>{n=void 0;try{y(e.apply(d,l))}catch(f){h(f)}};clearTimeout(n),n=window.setTimeout(g,t)})}}function Ri(){window.Spillgebees=window.Spillgebees||{},window.Spillgebees.fonts=window.Spillgebees.fonts||new Set,window.Spillgebees.editorFunctions=window.Spillgebees.editorFunctions||{createEditor:os,setEditorEnabledState:hs,getContent:as,setContent:ls,getSelection:ss,setSelection:us,getText:fs,insertImage:cs,disposeEditor:ds,registerQuillEventCallback:Rn},window.Spillgebees.eventMap=window.Spillgebees.eventMap||new Map}var os=async(e,t,n,l,y,h,d,g,f=new Array,o=500)=>{if(ne.default.register("modules/blotFormatter",$n),f.length>0){window.Spillgebees.fonts=[...window.Spillgebees.fonts,...f];let v=ne.default.import("formats/font");v.whitelist=window.Spillgebees.fonts,ne.default.register(v,!0)}let r={modules:{toolbar:n,blotFormatter:{}},placeholder:h,readOnly:!l,theme:d,debug:g},i=new ne.default(t,r);window.Spillgebees.eventMap.set(i,new Map),y&&(await Rn(i,"OnContentChangedAsync","text-change",e,o),await Rn(i,"OnSelectionChangedAsync","selection-change",e,o))},as=e=>e?.__quill?.root.innerHTML,ls=(e,t)=>e?.__quill?.setContents(e.__quill.clipboard.convert(t),"api"),ss=e=>e?.__quill?.getSelection(),us=(e,t)=>e?.__quill?.setSelection(t),fs=e=>e?.__quill?.getText(),cs=(e,t)=>{if(e===null||e.__quill===null)return;let n=e.__quill?.getSelection()?.index??0;return e.__quill?.updateContents(new Pi.default().retain(n).insert({image:t},{alt:t}))},hs=(e,t)=>e?.__quill?.enable(t),ds=e=>{if(!(e===null||e.__quill===null||!window.Spillgebees.eventMap.has(e.__quill))){if(window.Spillgebees.eventMap.get(e.__quill)?.has("text-change")){let t=window.Spillgebees.eventMap.get(e.__quill).get("text-change");e.__quill.off("text-change",t)}if(window.Spillgebees.eventMap.get(e.__quill)?.has("selection-change")){let t=window.Spillgebees.eventMap.get(e.__quill).get("selection-change");e.__quill.off("selection-change",t)}window.Spillgebees.eventMap.delete(e.__quill),e.__quill=null}},Rn=async(e,t,n,l,y)=>{if(window.Spillgebees.eventMap.has(e)&&window.Spillgebees.eventMap.get(e)?.has(n))throw new Error(`Event already registered: ${n}`);if(n==="text-change"){let d=Pn(async(g,f,o)=>await l.invokeMethodAsync(t,new je(o)),y);window.Spillgebees.eventMap.get(e)?.set(n,d),e.on("text-change",d)}else if(n==="selection-change"){let d=Pn(async(g,f,o)=>await l.invokeMethodAsync(t,new Me(f,g,o)),y);window.Spillgebees.eventMap.get(e)?.set(n,d),e.on("selection-change",d)}else throw new Error(`Invalid eventName: ${n}`)};function Fs(e){window.hasBeforeStartBeenCalled||jn(e)}function Us(e){window.hasAfterStartedBeenCalled||Mn(e)}function Hs(e){window.hasBeforeStartBeenCalled||jn(e)}function zs(e){window.hasAfterStartedBeenCalled||Mn(e)}function Ks(e){window.hasBeforeStartBeenCalled||jn(e)}function $s(e){window.hasAfterStartedBeenCalled||Mn(e)}function jn(e){window.hasBeforeStartBeenCalled=!0,Ri()}function Mn(e){window.hasAfterStartedBeenCalled=!0}export{$s as afterServerStarted,Mn as afterStarted,zs as afterWebAssemblyStarted,Us as afterWebStarted,Ks as beforeServerStart,jn as beforeStart,Hs as beforeWebAssemblyStart,Fs as beforeWebStart}; +${L.stack}`:L?L.toString():"null"}function O(L,_){let N=i[_];if(N)return N.findFunction(L);throw new Error(`JS object instance with ID ${_} does not exist (has it been disposed?).`)}e.findJSFunction=O;function A(L){delete i[L]}e.disposeJSObjectReferenceById=A;class k{constructor(_,N){this._id=_,this._callDispatcher=N}invokeMethod(_,...N){return this._callDispatcher.invokeDotNetMethod(null,_,this._id,N)}invokeMethodAsync(_,...N){return this._callDispatcher.invokeDotNetMethodAsync(null,_,this._id,N)}dispose(){this._callDispatcher.invokeDotNetMethodAsync(null,"__Dispose",this._id,null).catch(N=>console.error(N))}serializeAsArg(){return{[l]:this._id}}}e.DotNetObject=k,p(function(_,N){if(N&&typeof N=="object"){if(N.hasOwnProperty(l))return new k(N[l],f);if(N.hasOwnProperty(n)){let P=N[n],D=i[P];if(D)return D.getWrappedObject();throw new Error(`JS object instance with Id '${P}' does not exist. It may have been disposed.`)}else if(N.hasOwnProperty(y)){let P=N[y],D=f.processByteArray(P);if(D===void 0)throw new Error(`Byte array index '${P}' does not exist.`);return D}else if(N.hasOwnProperty(h)){let P=N[h],D=f.getDotNetStreamPromise(P);return new j(D)}}return N});class j{constructor(_){this._streamPromise=_}stream(){return this._streamPromise}async arrayBuffer(){return new Response(await this.stream()).arrayBuffer()}}class M{constructor(){this.streamPromise=new Promise((_,N)=>{this.resolve=_,this.reject=N})}}function B(L,_){switch(_){case S.Default:return L;case S.JSObjectReference:return m(L);case S.JSStreamReference:return a(L);case S.JSVoidResult:return null;default:throw new Error(`Invalid JS call result type '${_}'.`)}}let G=0;function $(L,_){G=0,f=L;let N=JSON.stringify(_,C);return f=void 0,N}function C(L,_){if(_ instanceof k)return _.serializeAsArg();if(_ instanceof Uint8Array){f.getDotNetCallDispatcher().sendByteArray(G,_);let P={[y]:G};return G++,P}return _}})(Li||(Li={}));var je=class{constructor(t){this.source=t}source},Me=class{constructor(t,n,l){this.oldRange=t,this.newRange=n,this.source=l}oldRange;newRange;source};function Pn(e,t){let n;return function(...l){return new Promise((y,h)=>{let d=this,g=()=>{n=void 0;try{y(e.apply(d,l))}catch(f){h(f)}};clearTimeout(n),n=window.setTimeout(g,t)})}}function Ri(){window.Spillgebees=window.Spillgebees||{},window.Spillgebees.fonts=window.Spillgebees.fonts||new Set,window.Spillgebees.editorFunctions=window.Spillgebees.editorFunctions||{createEditor:os,setEditorEnabledState:hs,getContent:as,setContent:ls,getSelection:ss,setSelection:us,getText:fs,insertImage:cs,disposeEditor:ds,registerQuillEventCallback:Rn},window.Spillgebees.eventMap=window.Spillgebees.eventMap||new Map}var os=async(e,t,n,l,y,h,d,g,f,o=new Array,r=500)=>{if(ne.default.register("modules/blotFormatter",$n),o.length>0){window.Spillgebees.fonts=[...window.Spillgebees.fonts,...o];let c=ne.default.import("formats/font");c.whitelist=window.Spillgebees.fonts,ne.default.register(c,!0)}let i={modules:{toolbar:l,blotFormatter:{}},placeholder:d,readOnly:!y,theme:g,debug:f},v=new ne.default(n,i);window.Spillgebees.eventMap.set(v,new Map),h&&(await Rn(v,"OnContentChangedAsync","text-change",e,r),await Rn(v,"OnSelectionChangedAsync","selection-change",e,r)),await e.invokeMethodAsync(t)},as=e=>e?.__quill?.root.innerHTML,ls=(e,t)=>e?.__quill?.setContents(e.__quill.clipboard.convert(t),"api"),ss=e=>e?.__quill?.getSelection(),us=(e,t)=>e?.__quill?.setSelection(t),fs=e=>e?.__quill?.getText(),cs=(e,t)=>{if(e===null||e.__quill===null)return;let n=e.__quill?.getSelection()?.index??0;return e.__quill?.updateContents(new Pi.default().retain(n).insert({image:t},{alt:t}))},hs=(e,t)=>e?.__quill?.enable(t),ds=e=>{if(!(e===null||e.__quill===null||!window.Spillgebees.eventMap.has(e.__quill))){if(window.Spillgebees.eventMap.get(e.__quill)?.has("text-change")){let t=window.Spillgebees.eventMap.get(e.__quill).get("text-change");e.__quill.off("text-change",t)}if(window.Spillgebees.eventMap.get(e.__quill)?.has("selection-change")){let t=window.Spillgebees.eventMap.get(e.__quill).get("selection-change");e.__quill.off("selection-change",t)}window.Spillgebees.eventMap.delete(e.__quill),e.__quill=null}},Rn=async(e,t,n,l,y)=>{if(window.Spillgebees.eventMap.has(e)&&window.Spillgebees.eventMap.get(e)?.has(n))throw new Error(`Event already registered: ${n}`);if(n==="text-change"){let d=Pn(async(g,f,o)=>await l.invokeMethodAsync(t,new je(o)),y);window.Spillgebees.eventMap.get(e)?.set(n,d),e.on("text-change",d)}else if(n==="selection-change"){let d=Pn(async(g,f,o)=>await l.invokeMethodAsync(t,new Me(f,g,o)),y);window.Spillgebees.eventMap.get(e)?.set(n,d),e.on("selection-change",d)}else throw new Error(`Invalid eventName: ${n}`)};function Fs(e){window.hasBeforeStartBeenCalled||jn(e)}function Us(e){window.hasAfterStartedBeenCalled||Mn(e)}function Hs(e){window.hasBeforeStartBeenCalled||jn(e)}function zs(e){window.hasAfterStartedBeenCalled||Mn(e)}function Ks(e){window.hasBeforeStartBeenCalled||jn(e)}function $s(e){window.hasAfterStartedBeenCalled||Mn(e)}function jn(e){window.hasBeforeStartBeenCalled=!0,Ri()}function Mn(e){window.hasAfterStartedBeenCalled=!0}export{$s as afterServerStarted,Mn as afterStarted,zs as afterWebAssemblyStarted,Us as afterWebStarted,Ks as beforeServerStart,jn as beforeStart,Hs as beforeWebAssemblyStart,Fs as beforeWebStart}; /*! Bundled license information: quill/dist/quill.js: diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll index a2b97b7..fac89ef 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.br b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.br index 67e4869..47a66b7 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.br and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.br differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.gz b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.gz index 4040e5c..f9b867c 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.gz and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll.gz differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll index 0a10500..29d3728 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.br b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.br index fc1c256..f967c91 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.br and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.br differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.gz b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.gz index 1520ccb..07fbaa6 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.gz and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll.gz differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll index 5cc3b12..f0b9222 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.br b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.br index babc43c..cd64fc2 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.br and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.br differ diff --git a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.gz b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.gz index 74c9beb..8a695fa 100644 Binary files a/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.gz and b/main/net7.0/_framework/Spillgebees.Blazor.RichTextEditor.dll.gz differ diff --git a/main/net7.0/_framework/blazor.boot.json b/main/net7.0/_framework/blazor.boot.json index 81321e0..5e58a9e 100644 --- a/main/net7.0/_framework/blazor.boot.json +++ b/main/net7.0/_framework/blazor.boot.json @@ -1,7 +1,7 @@ { "entryAssembly": "Spillgebees.Blazor.RichTextEditor.Samples.Wasm", "resources": { - "hash": "sha256-LU1EQeCOaskbXO2vgzS/YhHNZYVWbDoGrgG9SnVm4/Y=", + "hash": "sha256-eLq19kNNIxAcm/ZcgG3kwKT2NnFValfSW4GOnn6Ss1Q=", "runtime": { "dotnet.7.0.14.mikshhdjmu.js": "sha256-YWGUknGRzP/fgO6YjvCJKPVQNZAPEd6ll+rHfQEIW+I=", "dotnet.timezones.blat": "sha256-t5xviiOQTfAsF0UDhmcyalKiaehUmf/sqJl97tmPM0M=", @@ -28,9 +28,9 @@ "Microsoft.JSInterop.dll": "sha256-TPdbCiZNjHNAftx/O5moghVYZZLPy9yvEXHIZ4Fb7fY=", "Microsoft.JSInterop.WebAssembly.dll": "sha256-LIeei4/JFd3TBbtpEc1rneu+zOw4UNmSksghADw1m1I=", "netstandard.dll": "sha256-hDxWka61DFgMUZEiM1dzJSgDW0dtIXObIUt3fFm3U1U=", - "Spillgebees.Blazor.RichTextEditor.dll": "sha256-5dpQaYP2vlC4E7/ZBjygHsIHGfIEZUhvlfpUkZhw5BE=", - "Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll": "sha256-OhBA4liC5vV27RAk+PU6/vaUM69HfIhThomvts018Z8=", - "Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll": "sha256-PIiaiQzUsoGZTWpv3085f5fN2KAm7DsZuRaowUmZp0Q=", + "Spillgebees.Blazor.RichTextEditor.dll": "sha256-0ZwzCME1zAWz56CfcyHg86vii76vz0NO1uPp02hue40=", + "Spillgebees.Blazor.RichTextEditor.Samples.Shared.dll": "sha256-zdZO0lTEn42xkQRGU+wcxd70Pewbl/8BcCY9iRDCFbU=", + "Spillgebees.Blazor.RichTextEditor.Samples.Wasm.dll": "sha256-6nkAiuJLmPHpJ+dzbqHAd0YND8AwWel4ImGlgGoAGns=", "System.Collections.Concurrent.dll": "sha256-G1mRlpJlMCbHNC6InTCARrApNxVEI8c2Qe0rwWeUtPQ=", "System.Collections.dll": "sha256-UvYdbB9BKChQyxe6UHnUTSh87zCdRaNAhAEWrE1Sw1k=", "System.Collections.NonGeneric.dll": "sha256-5q032SRTX9vL2bAreUvXg/wZcIOG4yMITdsn+bya9gg=", @@ -56,7 +56,7 @@ }, "libraryInitializers": { "_content/Spillgebees.Blazor.RichTextEditor.Samples.Shared/Spillgebees.Blazor.RichTextEditor.Samples.Shared.lib.module.js": "sha256-mtPaN+L8v9EKl15dLbRJ8IfhQiEn7ipiULgxD1kYfuQ=", - "_content/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.lib.module.js": "sha256-xklBS5Z/P8WXVmTTVNo3+Dqmd6Eo0Sm7DPDg1GBpX3M=" + "_content/Spillgebees.Blazor.RichTextEditor/Spillgebees.Blazor.RichTextEditor.lib.module.js": "sha256-5h4iBgpAmOdwfkDDgRHeiTWCO5sO3ALw8Rmm/jBxXVU=" }, "runtimeAssets": { "dotnet.wasm": { diff --git a/main/net7.0/_framework/blazor.boot.json.br b/main/net7.0/_framework/blazor.boot.json.br index 2e15330..5084134 100644 Binary files a/main/net7.0/_framework/blazor.boot.json.br and b/main/net7.0/_framework/blazor.boot.json.br differ diff --git a/main/net7.0/_framework/blazor.boot.json.gz b/main/net7.0/_framework/blazor.boot.json.gz index 39500e0..7543e6d 100644 Binary files a/main/net7.0/_framework/blazor.boot.json.gz and b/main/net7.0/_framework/blazor.boot.json.gz differ