@zydon/common-csr 1.1.8 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Filters/ListingRules/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAM1E,QAAA,MAAM,YAAY,2BAA4B,iBAAiB,4CAoE9D,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Filters/ListingRules/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAG1E,QAAA,MAAM,YAAY,2BAA4B,iBAAiB,4CAsE9D,CAAC;AAEF,eAAe,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -62310,16 +62310,16 @@ const X2 = /* @__PURE__ */ ug(j2), Z2 = Xt(Tr)(({ theme: r }) => ({
62310
62310
  display: "flex",
62311
62311
  justifyContent: "space-between"
62312
62312
  })), l4 = ({ rules: r, setRuleType: e }) => {
62313
- const [t, n] = wt(), { setValue: i } = hr();
62314
- Vt(() => {
62313
+ const [t, n] = wt(), { setValue: i, watch: o } = hr();
62314
+ o("name"), Vt(() => {
62315
62315
  if (r && r.length > 0 && (n(r[0].value), e))
62316
62316
  return e(r[0].value);
62317
62317
  }, []), Vt(() => () => {
62318
62318
  i("config", {});
62319
62319
  }, []);
62320
- const o = (s, l) => {
62321
- if (l !== null && (n(l), e))
62322
- return e(l);
62320
+ const s = (l, a) => {
62321
+ if (a !== null && (n(a), e))
62322
+ return e(a);
62323
62323
  };
62324
62324
  return /* @__PURE__ */ K.jsxs(tt, { gap: 2, children: [
62325
62325
  /* @__PURE__ */ K.jsx(
@@ -62341,21 +62341,21 @@ const X2 = /* @__PURE__ */ ug(j2), Z2 = Xt(Tr)(({ theme: r }) => ({
62341
62341
  value: t,
62342
62342
  size: "small",
62343
62343
  exclusive: !0,
62344
- onChange: o,
62345
- children: r.map((s, l) => /* @__PURE__ */ K.jsx(
62344
+ onChange: s,
62345
+ children: r.map((l, a) => /* @__PURE__ */ K.jsx(
62346
62346
  sG,
62347
62347
  {
62348
- value: s.value,
62348
+ value: l.value,
62349
62349
  size: "small",
62350
62350
  color: "primary",
62351
- children: /* @__PURE__ */ K.jsx(mn, { variant: "body2", children: s.toggleTitle })
62351
+ children: /* @__PURE__ */ K.jsx(mn, { variant: "body2", children: l.toggleTitle })
62352
62352
  },
62353
- l
62353
+ a
62354
62354
  ))
62355
62355
  }
62356
62356
  ),
62357
62357
  r && r.map(
62358
- (s, l) => s.value === t ? /* @__PURE__ */ K.jsx("div", { children: s.component }, l) : null
62358
+ (l, a) => l.value === t ? /* @__PURE__ */ K.jsx("div", { children: l.component }, a) : null
62359
62359
  )
62360
62360
  ] });
62361
62361
  };
@@ -143,7 +143,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),k=M,L=B),P===void 0&&(
143
143
  `),ie}function ye(ce,ie){if($(ce)&&ce.nextElementSibling!=null&&!G(ie,`
144
144
 
145
145
  `)){var Se=ce.offsetHeight+parseFloat(H(ce).marginTop)+parseFloat(H(ce).marginBottom);ce.nextElementSibling.offsetTop>ce.offsetTop+Se*1.5&&ie.insert(`
146
- `)}return ie}function Le(ce,ie){var Se={},_e=ce.style||{};return _e.fontStyle&&H(ce).fontStyle==="italic"&&(Se.italic=!0),_e.fontWeight&&(H(ce).fontWeight.startsWith("bold")||parseInt(H(ce).fontWeight)>=700)&&(Se.bold=!0),Object.keys(Se).length>0&&(ie=F(ie,Se)),parseFloat(_e.textIndent||0)>0&&(ie=new u.default().insert(" ").concat(ie)),ie}function He(ce,ie){var Se=ce.data;if(ce.parentNode.tagName==="O:P")return ie.insert(Se.trim());if(Se.trim().length===0&&ce.parentNode.classList.contains("ql-clipboard"))return ie;if(!H(ce.parentNode).whiteSpace.startsWith("pre")){var _e=function(ke,xe){return xe=xe.replace(/[^\u00a0]/g,""),xe.length<1&&ke?" ":xe};Se=Se.replace(/\r\n/g," ").replace(/\n/g," "),Se=Se.replace(/\s\s+/g,_e.bind(_e,!0)),(ce.previousSibling==null&&$(ce.parentNode)||ce.previousSibling!=null&&$(ce.previousSibling))&&(Se=Se.replace(/^\s+/,_e.bind(_e,!1))),(ce.nextSibling==null&&$(ce.parentNode)||ce.nextSibling!=null&&$(ce.nextSibling))&&(Se=Se.replace(/\s+$/,_e.bind(_e,!1)))}return ie.insert(Se)}n.default=U,n.matchAttributor=W,n.matchBlot=j,n.matchNewline=fe,n.matchSpacing=ye,n.matchText=He},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(6),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(){return c(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"optimize",value:function(_){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(a.default);h.blotName="bold",h.tagName=["STRONG","B"],n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=function(){function O(A,N){var R=[],x=!0,D=!1,M=void 0;try{for(var B=A[Symbol.iterator](),P;!(x=(P=B.next()).done)&&(R.push(P.value),!(N&&R.length===N));x=!0);}catch(L){D=!0,M=L}finally{try{!x&&B.return&&B.return()}finally{if(D)throw M}}return R}return function(A,N){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return O(A,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function O(A,N){for(var R=0;R<N.length;R++){var x=N[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}return function(A,N,R){return N&&O(A.prototype,N),R&&O(A,R),A}}(),l=i(2),a=_(l),f=i(0),c=_(f),u=i(5),d=_(u),h=i(10),p=_(h),g=i(9),m=_(g);function _(O){return O&&O.__esModule?O:{default:O}}function v(O,A,N){return A in O?Object.defineProperty(O,A,{value:N,enumerable:!0,configurable:!0,writable:!0}):O[A]=N,O}function C(O,A){if(!(O instanceof A))throw new TypeError("Cannot call a class as a function")}function b(O,A){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:O}function E(O,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);O.prototype=Object.create(A&&A.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(O,A):O.__proto__=A)}var S=(0,p.default)("quill:toolbar"),T=function(O){E(A,O);function A(N,R){C(this,A);var x=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,N,R));if(Array.isArray(x.options.container)){var D=document.createElement("div");w(D,x.options.container),N.container.parentNode.insertBefore(D,N.container),x.container=D}else typeof x.options.container=="string"?x.container=document.querySelector(x.options.container):x.container=x.options.container;if(!(x.container instanceof HTMLElement)){var M;return M=S.error("Container required for toolbar",x.options),b(x,M)}return x.container.classList.add("ql-toolbar"),x.controls=[],x.handlers={},Object.keys(x.options.handlers).forEach(function(B){x.addHandler(B,x.options.handlers[B])}),[].forEach.call(x.container.querySelectorAll("button, select"),function(B){x.attach(B)}),x.quill.on(d.default.events.EDITOR_CHANGE,function(B,P){B===d.default.events.SELECTION_CHANGE&&x.update(P)}),x.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var B=x.quill.selection.getRange(),P=o(B,1),L=P[0];x.update(L)}),x}return s(A,[{key:"addHandler",value:function(R,x){this.handlers[R]=x}},{key:"attach",value:function(R){var x=this,D=[].find.call(R.classList,function(B){return B.indexOf("ql-")===0});if(D){if(D=D.slice(3),R.tagName==="BUTTON"&&R.setAttribute("type","button"),this.handlers[D]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[D]==null){S.warn("ignoring attaching to disabled format",D,R);return}if(c.default.query(D)==null){S.warn("ignoring attaching to nonexistent format",D,R);return}}var M=R.tagName==="SELECT"?"change":"click";R.addEventListener(M,function(B){var P=void 0;if(R.tagName==="SELECT"){if(R.selectedIndex<0)return;var L=R.options[R.selectedIndex];L.hasAttribute("selected")?P=!1:P=L.value||!1}else R.classList.contains("ql-active")?P=!1:P=R.value||!R.hasAttribute("value"),B.preventDefault();x.quill.focus();var k=x.quill.selection.getRange(),U=o(k,1),F=U[0];if(x.handlers[D]!=null)x.handlers[D].call(x,P);else if(c.default.query(D).prototype instanceof c.default.Embed){if(P=prompt("Enter "+D),!P)return;x.quill.updateContents(new a.default().retain(F.index).delete(F.length).insert(v({},D,P)),d.default.sources.USER)}else x.quill.format(D,P,d.default.sources.USER);x.update(F)}),this.controls.push([D,R])}}},{key:"update",value:function(R){var x=R==null?{}:this.quill.getFormat(R);this.controls.forEach(function(D){var M=o(D,2),B=M[0],P=M[1];if(P.tagName==="SELECT"){var L=void 0;if(R==null)L=null;else if(x[B]==null)L=P.querySelector("option[selected]");else if(!Array.isArray(x[B])){var k=x[B];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),L=P.querySelector('option[value="'+k+'"]')}L==null?(P.value="",P.selectedIndex=-1):L.selected=!0}else if(R==null)P.classList.remove("ql-active");else if(P.hasAttribute("value")){var U=x[B]===P.getAttribute("value")||x[B]!=null&&x[B].toString()===P.getAttribute("value")||x[B]==null&&!P.getAttribute("value");P.classList.toggle("ql-active",U)}else P.classList.toggle("ql-active",x[B]!=null)})}}]),A}(m.default);T.DEFAULTS={};function y(O,A,N){var R=document.createElement("button");R.setAttribute("type","button"),R.classList.add("ql-"+A),N!=null&&(R.value=N),O.appendChild(R)}function w(O,A){Array.isArray(A[0])||(A=[A]),A.forEach(function(N){var R=document.createElement("span");R.classList.add("ql-formats"),N.forEach(function(x){if(typeof x=="string")y(R,x);else{var D=Object.keys(x)[0],M=x[D];Array.isArray(M)?I(R,D,M):y(R,D,M)}}),O.appendChild(R)})}function I(O,A,N){var R=document.createElement("select");R.classList.add("ql-"+A),N.forEach(function(x){var D=document.createElement("option");x!==!1?D.setAttribute("value",x):D.setAttribute("selected","selected"),R.appendChild(D)}),O.appendChild(R)}T.DEFAULTS={container:null,handlers:{clean:function(){var A=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var R=this.quill.getFormat();Object.keys(R).forEach(function(x){c.default.query(x,c.default.Scope.INLINE)!=null&&A.quill.format(x,!1)})}else this.quill.removeFormat(N,d.default.sources.USER)},direction:function(A){var N=this.quill.getFormat().align;A==="rtl"&&N==null?this.quill.format("align","right",d.default.sources.USER):!A&&N==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",A,d.default.sources.USER)},indent:function(A){var N=this.quill.getSelection(),R=this.quill.getFormat(N),x=parseInt(R.indent||0);if(A==="+1"||A==="-1"){var D=A==="+1"?1:-1;R.direction==="rtl"&&(D*=-1),this.quill.format("indent",x+D,d.default.sources.USER)}},link:function(A){A===!0&&(A=prompt("Enter link URL:")),this.quill.format("link",A,d.default.sources.USER)},list:function(A){var N=this.quill.getSelection(),R=this.quill.getFormat(N);A==="check"?R.list==="checked"||R.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",A,d.default.sources.USER)}}},n.default=T,n.addControls=w},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(28),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(m,_){c(this,g);var v=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,m));return v.label.innerHTML=_,v.container.classList.add("ql-color-picker"),[].slice.call(v.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(C){C.classList.add("ql-primary")}),v}return o(g,[{key:"buildItem",value:function(_){var v=s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,_);return v.style.backgroundColor=_.getAttribute("value")||"",v}},{key:"selectItem",value:function(_,v){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,_,v);var C=this.label.querySelector(".ql-color-label"),b=_&&_.getAttribute("data-value")||"";C&&(C.tagName==="line"?C.style.stroke=b:C.style.fill=b)}}]),g}(a.default);n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(28),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(m,_){c(this,g);var v=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,m));return v.container.classList.add("ql-icon-picker"),[].forEach.call(v.container.querySelectorAll(".ql-picker-item"),function(C){C.innerHTML=_[C.getAttribute("data-value")||""]}),v.defaultItem=v.container.querySelector(".ql-selected"),v.selectItem(v.defaultItem),v}return o(g,[{key:"selectItem",value:function(_,v){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,_,v),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),g}(a.default);n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function a(f,c){for(var u=0;u<c.length;u++){var d=c[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}return function(f,c,u){return c&&a(f.prototype,c),u&&a(f,u),f}}();function s(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}var l=function(){function a(f,c){var u=this;s(this,a),this.quill=f,this.boundsContainer=c||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"}),this.hide()}return o(a,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var u=c.left+c.width/2-this.root.offsetWidth/2,d=c.bottom+this.quill.root.scrollTop;this.root.style.left=u+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),p=this.root.getBoundingClientRect(),g=0;if(p.right>h.right&&(g=h.right-p.right,this.root.style.left=u+g+"px"),p.left<h.left&&(g=h.left-p.left,this.root.style.left=u+g+"px"),p.bottom>h.bottom){var m=p.bottom-p.top,_=c.bottom-c.top+m;this.root.style.top=d-_+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),a}();n.default=l},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function I(O,A){var N=[],R=!0,x=!1,D=void 0;try{for(var M=O[Symbol.iterator](),B;!(R=(B=M.next()).done)&&(N.push(B.value),!(A&&N.length===A));R=!0);}catch(P){x=!0,D=P}finally{try{!R&&M.return&&M.return()}finally{if(x)throw D}}return N}return function(O,A){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return I(O,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function I(O,A,N){O===null&&(O=Function.prototype);var R=Object.getOwnPropertyDescriptor(O,A);if(R===void 0){var x=Object.getPrototypeOf(O);return x===null?void 0:I(x,A,N)}else{if("value"in R)return R.value;var D=R.get;return D===void 0?void 0:D.call(N)}},l=function(){function I(O,A){for(var N=0;N<A.length;N++){var R=A[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(O,R.key,R)}}return function(O,A,N){return A&&I(O.prototype,A),N&&I(O,N),O}}(),a=i(3),f=C(a),c=i(8),u=C(c),d=i(43),h=C(d),p=i(27),g=C(p),m=i(15),_=i(41),v=C(_);function C(I){return I&&I.__esModule?I:{default:I}}function b(I,O){if(!(I instanceof O))throw new TypeError("Cannot call a class as a function")}function E(I,O){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:I}function S(I,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);I.prototype=Object.create(O&&O.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(I,O):I.__proto__=O)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(I){S(O,I);function O(A,N){b(this,O),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=T);var R=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,A,N));return R.quill.container.classList.add("ql-snow"),R}return l(O,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),v.default),this.tooltip=new w(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(R,x){N.handlers.link.call(N,!x.format.link)})}}]),O}(h.default);y.DEFAULTS=(0,f.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){if(O){var A=this.quill.getSelection();if(A==null||A.length==0)return;var N=this.quill.getText(A);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var R=this.quill.theme.tooltip;R.edit("link",N)}else this.quill.format("link",!1)}}}}});var w=function(I){S(O,I);function O(A,N){b(this,O);var R=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,A,N));return R.preview=R.root.querySelector("a.ql-preview"),R}return l(O,[{key:"listen",value:function(){var N=this;s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(R){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),R.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(R){if(N.linkRange!=null){var x=N.linkRange;N.restoreFocus(),N.quill.formatText(x,"link",!1,u.default.sources.USER),delete N.linkRange}R.preventDefault(),N.hide()}),this.quill.on(u.default.events.SELECTION_CHANGE,function(R,x,D){if(R!=null){if(R.length===0&&D===u.default.sources.USER){var M=N.quill.scroll.descendant(g.default,R.index),B=o(M,2),P=B[0],L=B[1];if(P!=null){N.linkRange=new m.Range(R.index-L,P.length());var k=g.default.formats(P.domNode);N.preview.textContent=k,N.preview.setAttribute("href",k),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),O}(d.BaseTooltip);w.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(""),n.default=y},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),s=de(o),l=i(36),a=i(38),f=i(64),c=i(65),u=de(c),d=i(66),h=de(d),p=i(67),g=de(p),m=i(37),_=i(26),v=i(39),C=i(40),b=i(56),E=de(b),S=i(68),T=de(S),y=i(27),w=de(y),I=i(69),O=de(I),A=i(70),N=de(A),R=i(71),x=de(R),D=i(72),M=de(D),B=i(73),P=de(B),L=i(13),k=de(L),U=i(74),F=de(U),H=i(75),G=de(H),$=i(57),q=de($),Y=i(41),W=de(Y),j=i(28),re=de(j),ee=i(59),ge=de(ee),fe=i(60),ye=de(fe),Le=i(61),He=de(Le),ce=i(108),ie=de(ce),Se=i(62),_e=de(Se);function de(ke){return ke&&ke.__esModule?ke:{default:ke}}s.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":m.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":C.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":m.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":C.SizeStyle},!0),s.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":f.IndentClass,"formats/background":m.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":v.FontClass,"formats/size":C.SizeClass,"formats/blockquote":u.default,"formats/code-block":k.default,"formats/header":h.default,"formats/list":g.default,"formats/bold":E.default,"formats/code":L.Code,"formats/italic":T.default,"formats/link":w.default,"formats/script":O.default,"formats/strike":N.default,"formats/underline":x.default,"formats/image":M.default,"formats/video":P.default,"formats/list/item":p.ListItem,"modules/formula":F.default,"modules/syntax":G.default,"modules/toolbar":q.default,"themes/bubble":ie.default,"themes/snow":_e.default,"ui/icons":W.default,"ui/picker":re.default,"ui/icon-picker":ye.default,"ui/color-picker":ge.default,"ui/tooltip":He.default},!0),n.default=s.default},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=function(){function g(m,_){for(var v=0;v<_.length;v++){var C=_[v];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(m,C.key,C)}}return function(m,_,v){return _&&g(m.prototype,_),v&&g(m,v),m}}(),s=function g(m,_,v){m===null&&(m=Function.prototype);var C=Object.getOwnPropertyDescriptor(m,_);if(C===void 0){var b=Object.getPrototypeOf(m);return b===null?void 0:g(b,_,v)}else{if("value"in C)return C.value;var E=C.get;return E===void 0?void 0:E.call(v)}},l=i(0),a=f(l);function f(g){return g&&g.__esModule?g:{default:g}}function c(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function u(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function d(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){d(m,g);function m(){return c(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"add",value:function(v,C){if(C==="+1"||C==="-1"){var b=this.value(v)||0;C=C==="+1"?b+1:b-1}return C===0?(this.remove(v),!0):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"add",this).call(this,v,C)}},{key:"canAdd",value:function(v,C){return s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"canAdd",this).call(this,v,C)||s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"canAdd",this).call(this,v,parseInt(C))}},{key:"value",value:function(v){return parseInt(s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,v))||void 0}}]),m}(a.default.Attributor.Class),p=new h("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=p},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="blockquote",u.tagName="blockquote",n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function h(p,g){for(var m=0;m<g.length;m++){var _=g[m];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,_.key,_)}}return function(p,g,m){return g&&h(p.prototype,g),m&&h(p,m),p}}(),s=i(4),l=a(s);function a(h){return h&&h.__esModule?h:{default:h}}function f(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function c(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return f(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,null,[{key:"formats",value:function(m){return this.tagName.indexOf(m.tagName)+1}}]),p}(l.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],n.default=d},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=function(){function b(E,S){for(var T=0;T<S.length;T++){var y=S[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(E,y.key,y)}}return function(E,S,T){return S&&b(E.prototype,S),T&&b(E,T),E}}(),s=function b(E,S,T){E===null&&(E=Function.prototype);var y=Object.getOwnPropertyDescriptor(E,S);if(y===void 0){var w=Object.getPrototypeOf(E);return w===null?void 0:b(w,S,T)}else{if("value"in y)return y.value;var I=y.get;return I===void 0?void 0:I.call(T)}},l=i(0),a=h(l),f=i(4),c=h(f),u=i(25),d=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function p(b,E,S){return E in b?Object.defineProperty(b,E,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[E]=S,b}function g(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function m(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:b}function _(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var v=function(b){_(E,b);function E(){return g(this,E),m(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(T,y){T===C.blotName&&!y?this.replaceWith(a.default.create(this.statics.scope)):s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,T,y)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,y){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,y),this):(this.parent.unwrap(),s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,T,y))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,T)}}]),E}(c.default);v.blotName="list-item",v.tagName="LI";var C=function(b){_(E,b),o(E,null,[{key:"create",value:function(T){var y=T==="ordered"?"OL":"UL",w=s(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,y);return(T==="checked"||T==="unchecked")&&w.setAttribute("data-checked",T==="checked"),w}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(S){g(this,E);var T=m(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S)),y=function(I){if(I.target.parentNode===S){var O=T.statics.formats(S),A=a.default.find(I.target);O==="checked"?A.format("list","unchecked"):O==="unchecked"&&A.format("list","checked")}};return S.addEventListener("touchstart",y),S.addEventListener("mousedown",y),T}return o(E,[{key:"format",value:function(T,y){this.children.length>0&&this.children.tail.format(T,y)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,y){if(T instanceof v)s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,T,y);else{var w=y==null?this.length():y.offset(this),I=this.split(w);I.parent.insertBefore(T,I)}}},{key:"optimize",value:function(T){s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,T);var y=this.next;y!=null&&y.prev===this&&y.statics.blotName===this.statics.blotName&&y.domNode.tagName===this.domNode.tagName&&y.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(y.moveChildren(this),y.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var y=a.default.create(this.statics.defaultChild);T.moveChildren(y),this.appendChild(y)}s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,T)}}]),E}(d.default);C.blotName="list",C.scope=a.default.Scope.BLOCK_BLOT,C.tagName=["OL","UL"],C.defaultChild="list-item",C.allowedChildren=[v],n.ListItem=v,n.default=C},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="italic",u.tagName=["EM","I"],n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(6),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(){return c(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),g}(a.default);h.blotName="script",h.tagName=["SUB","SUP"],n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="strike",u.tagName="S",n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="underline",u.tagName="U",n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,v){for(var C=0;C<v.length;C++){var b=v[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(_,b.key,b)}}return function(_,v,C){return v&&m(_.prototype,v),C&&m(_,C),_}}(),s=function m(_,v,C){_===null&&(_=Function.prototype);var b=Object.getOwnPropertyDescriptor(_,v);if(b===void 0){var E=Object.getPrototypeOf(_);return E===null?void 0:m(E,v,C)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(C)}},l=i(0),a=c(l),f=i(27);function c(m){return m&&m.__esModule?m:{default:m}}function u(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function d(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function h(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var p=["alt","height","width"],g=function(m){h(_,m);function _(){return u(this,_),d(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(C,b){p.indexOf(C)>-1?b?this.domNode.setAttribute(C,b):this.domNode.removeAttribute(C):s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,C,b)}}],[{key:"create",value:function(C){var b=s(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,C);return typeof C=="string"&&b.setAttribute("src",this.sanitize(C)),b}},{key:"formats",value:function(C){return p.reduce(function(b,E){return C.hasAttribute(E)&&(b[E]=C.getAttribute(E)),b},{})}},{key:"match",value:function(C){return/\.(jpe?g|gif|png)$/.test(C)||/^data:image\/.+;base64/.test(C)}},{key:"sanitize",value:function(C){return(0,f.sanitize)(C,["http","https","data"])?C:"//:0"}},{key:"value",value:function(C){return C.getAttribute("src")}}]),_}(a.default.Embed);g.blotName="image",g.tagName="IMG",n.default=g},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,v){for(var C=0;C<v.length;C++){var b=v[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(_,b.key,b)}}return function(_,v,C){return v&&m(_.prototype,v),C&&m(_,C),_}}(),s=function m(_,v,C){_===null&&(_=Function.prototype);var b=Object.getOwnPropertyDescriptor(_,v);if(b===void 0){var E=Object.getPrototypeOf(_);return E===null?void 0:m(E,v,C)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(C)}},l=i(4),a=i(27),f=c(a);function c(m){return m&&m.__esModule?m:{default:m}}function u(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function d(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function h(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var p=["height","width"],g=function(m){h(_,m);function _(){return u(this,_),d(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(C,b){p.indexOf(C)>-1?b?this.domNode.setAttribute(C,b):this.domNode.removeAttribute(C):s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,C,b)}}],[{key:"create",value:function(C){var b=s(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,C);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(C)),b}},{key:"formats",value:function(C){return p.reduce(function(b,E){return C.hasAttribute(E)&&(b[E]=C.getAttribute(E)),b},{})}},{key:"sanitize",value:function(C){return f.default.sanitize(C)}},{key:"value",value:function(C){return C.getAttribute("src")}}]),_}(l.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",n.default=g},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=function(){function C(b,E){for(var S=0;S<E.length;S++){var T=E[S];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,E,S){return E&&C(b.prototype,E),S&&C(b,S),b}}(),s=function C(b,E,S){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,E);if(T===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:C(y,E,S)}else{if("value"in T)return T.value;var w=T.get;return w===void 0?void 0:w.call(S)}},l=i(35),a=h(l),f=i(5),c=h(f),u=i(9),d=h(u);function h(C){return C&&C.__esModule?C:{default:C}}function p(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function g(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function m(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var _=function(C){m(b,C);function b(){return p(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(S){var T=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",S)),T}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),b}(a.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var v=function(C){m(b,C),o(b,null,[{key:"register",value:function(){c.default.register(_,!0)}}]);function b(){p(this,b);var E=g(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return b}(d.default);n.FormulaBlot=_,n.default=v},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=function(){function S(T,y){for(var w=0;w<y.length;w++){var I=y[w];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,I.key,I)}}return function(T,y,w){return y&&S(T.prototype,y),w&&S(T,w),T}}(),s=function S(T,y,w){T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,y);if(I===void 0){var O=Object.getPrototypeOf(T);return O===null?void 0:S(O,y,w)}else{if("value"in I)return I.value;var A=I.get;return A===void 0?void 0:A.call(w)}},l=i(0),a=g(l),f=i(5),c=g(f),u=i(9),d=g(u),h=i(13),p=g(h);function g(S){return S&&S.__esModule?S:{default:S}}function m(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function _(S,T){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:S}function v(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(S,T):S.__proto__=T)}var C=function(S){v(T,S);function T(){return m(this,T),_(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return o(T,[{key:"replaceWith",value:function(w){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,w)}},{key:"highlight",value:function(w){var I=this.domNode.textContent;this.cachedText!==I&&((I.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=w(I),this.domNode.normalize(),this.attach()),this.cachedText=I)}}]),T}(p.default);C.className="ql-syntax";var b=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),E=function(S){v(T,S),o(T,null,[{key:"register",value:function(){c.default.register(b,!0),c.default.register(C,!0)}}]);function T(y,w){m(this,T);var I=_(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,y,w));if(typeof I.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var O=null;return I.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(O),O=setTimeout(function(){I.highlight(),O=null},I.options.interval)}),I.highlight(),I}return o(T,[{key:"highlight",value:function(){var w=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var I=this.quill.getSelection();this.quill.scroll.descendants(C).forEach(function(O){O.highlight(w.options.highlight)}),this.quill.update(c.default.sources.SILENT),I!=null&&this.quill.setSelection(I,c.default.sources.SILENT)}}}]),T}(d.default);E.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var T=window.hljs.highlightAuto(S);return T.value}}(),interval:1e3},n.CodeBlock=C,n.CodeToken=b,n.default=E},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function T(y,w,I){y===null&&(y=Function.prototype);var O=Object.getOwnPropertyDescriptor(y,w);if(O===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:T(A,w,I)}else{if("value"in O)return O.value;var N=O.get;return N===void 0?void 0:N.call(I)}},s=function(){function T(y,w){for(var I=0;I<w.length;I++){var O=w[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}return function(y,w,I){return w&&T(y.prototype,w),I&&T(y,I),y}}(),l=i(3),a=m(l),f=i(8),c=m(f),u=i(43),d=m(u),h=i(15),p=i(41),g=m(p);function m(T){return T&&T.__esModule?T:{default:T}}function _(T,y){if(!(T instanceof y))throw new TypeError("Cannot call a class as a function")}function v(T,y){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:T}function C(T,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);T.prototype=Object.create(y&&y.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(T,y):T.__proto__=y)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=function(T){C(y,T);function y(w,I){_(this,y),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=b);var O=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w,I));return O.quill.container.classList.add("ql-bubble"),O}return s(y,[{key:"extendToolbar",value:function(I){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(I.container),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),g.default)}}]),y}(d.default);E.DEFAULTS=(0,a.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(y){y?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(T){C(y,T);function y(w,I){_(this,y);var O=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w,I));return O.quill.on(c.default.events.EDITOR_CHANGE,function(A,N,R,x){if(A===c.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&x===c.default.sources.USER){O.show(),O.root.style.left="0px",O.root.style.width="",O.root.style.width=O.root.offsetWidth+"px";var D=O.quill.getLines(N.index,N.length);if(D.length===1)O.position(O.quill.getBounds(N));else{var M=D[D.length-1],B=O.quill.getIndex(M),P=Math.min(M.length()-1,N.index+N.length-B),L=O.quill.getBounds(new h.Range(B,P));O.position(L)}}else document.activeElement!==O.textbox&&O.quill.hasFocus()&&O.hide()}),O}return s(y,[{key:"listen",value:function(){var I=this;o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){I.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!I.root.classList.contains("ql-hidden")){var O=I.quill.getSelection();O!=null&&I.position(I.quill.getBounds(O))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(I){var O=o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"position",this).call(this,I),A=this.root.querySelector(".ql-tooltip-arrow");if(A.style.marginLeft="",O===0)return O;A.style.marginLeft=-1*O-A.offsetWidth/2+"px"}}]),y}(u.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=S,n.default=E},function(t,n,i){t.exports=i(63)}]).default})})(Zb);var jU=Zb.exports,XU=Xe&&Xe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ma=Xe&&Xe.__assign||function(){return ma=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},ma.apply(this,arguments)},ZU=Xe&&Xe.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),i=0,e=0;e<t;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,i++)n[i]=o[s];return n},_a=Xe&&Xe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},er=_a(Me),JU=_a(jg),$o=_a(QU),Jb=_a(jU),e2=function(r){XU(e,r);function e(t){var n=r.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(o,s,l,a){var f,c,u,d;o==="text-change"?(c=(f=n).onEditorChangeText)===null||c===void 0||c.call(f,n.editor.root.innerHTML,s,a,n.unprivilegedEditor):o==="selection-change"&&((d=(u=n).onEditorChangeSelection)===null||d===void 0||d.call(u,s,a,n.unprivilegedEditor))};var i=n.isControlled()?t.value:t.defaultValue;return n.value=i??"",n}return e.prototype.validateProps=function(t){var n;if(er.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(er.default.Children.count(t.children)){var i=er.default.Children.only(t.children);if(((n=i)===null||n===void 0?void 0:n.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},e.prototype.shouldComponentUpdate=function(t,n){var i=this,o;if(this.validateProps(t),!this.editor||this.state.generation!==n.generation)return!0;if("value"in t){var s=this.getEditorContents(),l=(o=t.value,o??"");this.isEqualValue(l,s)||this.setEditorContents(this.editor,l)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),ZU(this.cleanProps,this.dirtyProps).some(function(a){return!$o.default(t[a],i.props[a])})},e.prototype.shouldComponentRegenerate=function(t){var n=this;return this.dirtyProps.some(function(i){return!$o.default(t[i],n.props[i])})},e.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},e.prototype.componentWillUnmount=function(){this.destroyEditor()},e.prototype.componentDidUpdate=function(t,n){var i=this;if(this.editor&&this.shouldComponentRegenerate(t)){var o=this.editor.getContents(),s=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:s},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==n.generation){var l=this.regenerationSnapshot,o=l.delta,a=l.selection;delete this.regenerationSnapshot,this.instantiateEditor();var f=this.editor;f.setContents(o),ey(function(){return i.setEditorSelection(f,a)})}},e.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},e.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},e.prototype.isControlled=function(){return"value"in this.props},e.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},e.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},e.prototype.createEditor=function(t,n){var i=new Jb.default(t,n);return n.tabIndex!=null&&this.setEditorTabIndex(i,n.tabIndex),this.hookEditor(i),i},e.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},e.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},e.prototype.getEditorContents=function(){return this.value},e.prototype.getEditorSelection=function(){return this.selection},e.prototype.isDelta=function(t){return t&&t.ops},e.prototype.isEqualValue=function(t,n){return this.isDelta(t)&&this.isDelta(n)?$o.default(t.ops,n.ops):$o.default(t,n)},e.prototype.setEditorContents=function(t,n){var i=this;this.value=n;var o=this.getEditorSelection();typeof n=="string"?t.setContents(t.clipboard.convert(n)):t.setContents(n),ey(function(){return i.setEditorSelection(t,o)})},e.prototype.setEditorSelection=function(t,n){if(this.selection=n,n){var i=t.getLength();n.index=Math.max(0,Math.min(n.index,i-1)),n.length=Math.max(0,Math.min(n.length,i-1-n.index)),t.setSelection(n)}},e.prototype.setEditorTabIndex=function(t,n){var i,o;!((o=(i=t)===null||i===void 0?void 0:i.scroll)===null||o===void 0)&&o.domNode&&(t.scroll.domNode.tabIndex=n)},e.prototype.setEditorReadOnly=function(t,n){n?t.disable():t.enable()},e.prototype.makeUnprivilegedEditor=function(t){var n=t;return{getHTML:function(){return n.root.innerHTML},getLength:n.getLength.bind(n),getText:n.getText.bind(n),getContents:n.getContents.bind(n),getSelection:n.getSelection.bind(n),getBounds:n.getBounds.bind(n)}},e.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var t=JU.default.findDOMNode(this.editingArea);if(!t)throw new Error("Cannot find element for editing area");if(t.nodeType===3)throw new Error("Editing area cannot be a text node");return t},e.prototype.renderEditingArea=function(){var t=this,n=this.props,i=n.children,o=n.preserveWhitespace,s=this.state.generation,l={key:s,ref:function(a){t.editingArea=a}};return er.default.Children.count(i)?er.default.cloneElement(er.default.Children.only(i),l):o?er.default.createElement("pre",ma({},l)):er.default.createElement("div",ma({},l))},e.prototype.render=function(){var t;return er.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(t=this.props.className,t??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},e.prototype.onEditorChangeText=function(t,n,i,o){var s,l;if(this.editor){var a=this.isDelta(this.value)?o.getContents():o.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=n,this.value=a,(l=(s=this.props).onChange)===null||l===void 0||l.call(s,t,n,i,o))}},e.prototype.onEditorChangeSelection=function(t,n,i){var o,s,l,a,f,c;if(this.editor){var u=this.getEditorSelection(),d=!u&&t,h=u&&!t;$o.default(t,u)||(this.selection=t,(s=(o=this.props).onChangeSelection)===null||s===void 0||s.call(o,t,n,i),d?(a=(l=this.props).onFocus)===null||a===void 0||a.call(l,t,n,i):h&&((c=(f=this.props).onBlur)===null||c===void 0||c.call(f,u,n,i)))}},e.prototype.focus=function(){this.editor&&this.editor.focus()},e.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},e.displayName="React Quill",e.Quill=Jb.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(er.default.Component);function ey(r){Promise.resolve().then(r)}var t2=e2;const n2=oc(t2),r2=ae.styled(ae.Box)(({theme:r})=>({overflow:"hidden",position:"relative",borderRadius:r.shape.borderRadius,border:`solid 1px ${ae.alpha(r.palette.grey[500],.32)}`,"& .ql-container.ql-snow":{borderColor:"transparent",...r.typography.body1,fontFamily:r.typography.fontFamily},"& .ql-editor":{minHeight:200,maxHeight:640,"&.ql-blank::before":{fontStyle:"normal",color:r.palette.text.disabled},"& pre.ql-syntax":{...r.typography.body2,padding:r.spacing(2),borderRadius:r.shape.borderRadius,backgroundColor:r.palette.grey[900]}}})),i2=ae.styled("div")(({theme:r})=>{const e=r.direction==="rtl";return{"& .ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button:focus .ql-fill, .ql-snow .ql-toolbar button:focus .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill":{fill:r.palette.primary.main},"& .ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected":{color:r.palette.primary.main},"& .ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button:focus .ql-stroke, .ql-snow .ql-toolbar button:focus .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-toolbar button.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow.ql-toolbar button:hover .ql-stroke-miter, .ql-snow .ql-toolbar button:hover .ql-stroke-miter, .ql-snow.ql-toolbar button:focus .ql-stroke-miter, .ql-snow .ql-toolbar button:focus .ql-stroke-miter, .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter":{stroke:r.palette.primary.main},"& .ql-stroke":{stroke:r.palette.text.primary},"& .ql-fill, .ql-stroke.ql-fill":{fill:r.palette.text.primary},"& .ql-picker, .ql-picker-options, .ql-picker-item, .ql-picker-label, button":{"&:focus":{outline:"none"}},"& .ql-toolbar.ql-snow":{border:"none",borderBottom:`solid 1px ${ae.alpha(r.palette.grey[500],.32)}`,"& .ql-formats":{"&:not(:last-of-type)":{marginRight:r.spacing(2)}},"& button":{padding:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,color:r.palette.text.primary},"& button svg, span svg":{width:20,height:20},"& .ql-picker-label":{...r.typography.subtitle2,color:r.palette.text.primary,"& .ql-stroke":{stroke:r.palette.text.primary}},"& .ql-picker-label svg":{...e&&{right:"0 !important",left:"auto !important"}},"& .ql-color,& .ql-background,& .ql-align ":{"& .ql-picker-label":{padding:0,display:"flex",alignItems:"center",justifyContent:"center"}},"& .ql-expanded":{"& .ql-picker-label":{borderRadius:4,color:r.palette.text.disabled,borderColor:"transparent !important",backgroundColor:r.palette.action.focus,"& .ql-stroke":{stroke:r.palette.text.disabled}},"& .ql-picker-options":{padding:0,marginTop:4,border:"none",maxHeight:200,overflow:"auto",boxShadow:r.customShadows.z20,borderRadius:r.shape.borderRadius,backgroundColor:r.palette.background.paper},"& .ql-picker-item":{color:r.palette.text.primary},"&.ql-align":{"& .ql-picker-options":{padding:0,display:"flex"},"& .ql-picker-item":{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"}},"&.ql-color, &.ql-background":{"& .ql-picker-options":{padding:8},"& .ql-picker-item":{margin:3,borderRadius:4,"&.ql-selected":{border:"solid 1px black"}}},"&.ql-font, &.ql-size, &.ql-header":{"& .ql-picker-options":{padding:r.spacing(1,0)},"& .ql-picker-item":{padding:r.spacing(.5,1.5)}}}}}}),o2=["Título 1","Título 2","Título 3","Título 4","Título 5","Título 6"],s2=["align","background","blockquote","bold","bullet","code","code-block","color","direction","font","formula","header","image","indent","italic","link","list","script","size","strike","table","underline","video"],a2=({id:r,isSimple:e,...t})=>K.jsx(i2,{...t,children:K.jsxs("div",{id:r,children:[K.jsx("div",{className:"ql-formats",children:K.jsxs("select",{className:"ql-header",defaultValue:"",children:[o2.map((n,i)=>K.jsx("option",{value:i+1,children:n},n)),K.jsx("option",{value:"",children:"Normal"})]})}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-bold"}),K.jsx("button",{type:"button",className:"ql-italic"}),K.jsx("button",{type:"button",className:"ql-underline"}),K.jsx("button",{type:"button",className:"ql-strike"})]}),!e&&K.jsxs("div",{className:"ql-formats",children:[K.jsx("select",{className:"ql-color"}),K.jsx("select",{className:"ql-background"})]}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-list",value:"ordered"}),K.jsx("button",{type:"button",className:"ql-list",value:"bullet"}),!e&&K.jsx("button",{type:"button",className:"ql-indent",value:"-1"}),!e&&K.jsx("button",{type:"button",className:"ql-indent",value:"+1"})]}),!e&&K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-script",value:"super"}),K.jsx("button",{type:"button",className:"ql-script",value:"sub"})]}),!e&&K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-code-block"}),K.jsx("button",{type:"button",className:"ql-blockquote"})]}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-direction",value:"rtl"}),K.jsx("select",{className:"ql-align"})]}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-link"}),K.jsx("button",{type:"button",className:"ql-image"}),K.jsx("button",{type:"button",className:"ql-video"})]}),K.jsxs("div",{className:"ql-formats",children:[!e&&K.jsx("button",{type:"button",className:"ql-formula"}),K.jsx("button",{type:"button",className:"ql-clean"})]})]})}),ty=({id:r="minimal-quill",error:e,value:t,onChange:n,simple:i=!1,helperText:o,sx:s,...l})=>{const a={toolbar:{container:`#${r}`},history:{delay:500,maxStack:100,userOnly:!0},syntax:!0,clipboard:{matchVisual:!1}};return K.jsxs(ae.Stack,{children:[K.jsxs(r2,{sx:{...e&&{border:f=>`solid 1px ${f.palette.error.main}`},...s},children:[K.jsx(a2,{id:r,isSimple:i}),K.jsx(n2,{value:t,onChange:n,modules:a,formats:s2,placeholder:"Write something awesome...",...l})]}),o&&K.jsx(ae.FormHelperText,{error:!!e,sx:{px:2},children:o})]})},l2=({name:r,helperText:e,rules:t,...n})=>{const{control:i}=un.useFormContext();return K.jsx(un.Controller,{name:r,control:i,rules:t,render:({field:{name:o,onBlur:s,onChange:l,value:a},fieldState:{error:f}})=>K.jsx(ty,{id:`quill${o}`,onBlur:s,onChange:(c,u,d,h)=>l(h.getLength()===1?"":c),value:a,error:!!f,helperText:(f==null?void 0:f.message)||e,...n})})},c2=ae.styled(Ke.Label)(({theme:r})=>({backgroundColor:`${ae.alpha(r.palette.grey[400],.2)}`,cursor:"pointer"})),u2=ae.styled(Ke.Scrollbar)(()=>({maxHeight:"260px"})),d2=({items:r})=>{const{setValue:e,getValues:t}=un.useFormContext(),[n,i]=Me.useState(-1),[o,s]=Me.useState(""),l=Object.fromEntries(r.map((m,_)=>[_,[]])),[a,f]=Me.useState(l);Me.useEffect(()=>()=>{e("config",{})},[]);const c=(m,_)=>{i(_?m:-1),_&&u()},u=()=>{s("")},d=(m,_,v)=>{const C=v.target.checked?[...a[n],_]:a[n].filter(b=>b!==_);f({...a,[n]:C}),g(m,C)},h=m=>{s(m)},p=()=>{const _=r[n].list.every(v=>a[n].includes(v.value))?[]:[...r[n].list.map(v=>v.value)];f({...a,[n]:_}),g(r[n].name,_)},g=(m,_)=>{const v={},C=t("config"),b=r[n];if(b){const E=b.list.filter(S=>a[n].includes(S.value)).map(S=>S.value);v[b.name]={type:"FIELD",values:b.name===m?_:E},e("config",{...C,...v})}};return K.jsx(K.Fragment,{children:r.map((m,_)=>K.jsxs(ae.Accordion,{expanded:n===_,onChange:(v,C)=>c(_,C),children:[K.jsx(ae.AccordionSummary,{expandIcon:K.jsx(Ke.Icon,{icon:"CHEVRON_UP"}),id:`${_}`,children:K.jsxs(ae.Stack,{alignItems:"center",direction:"row",children:[K.jsx(ae.Typography,{variant:"subtitle2",color:"grey.600",children:m.label}),K.jsxs(c2,{variant:"soft",color:"primary",marginLeft:1,children:[a[_].length," selecionados"]})]})}),K.jsxs(ae.AccordionDetails,{children:[K.jsxs(ae.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[K.jsx(Ke.SearchInput,{onSearch:h,onChange:v=>h(v.target.value),iconPosition:"start",size:"small",placeholder:"Buscar",value:o,fullWidth:!0}),K.jsx(ae.Button,{onClick:()=>p(),size:"small",children:K.jsx(ae.Typography,{variant:"overline",children:"TODOS"})})]}),K.jsx(u2,{children:K.jsx(ae.List,{children:n>-1&&(m.list.filter(v=>v.label.toLowerCase().includes(o.toLowerCase())).map((v,C)=>K.jsx(ae.ListItem,{children:K.jsx(ae.FormControlLabel,{control:K.jsx(ae.Checkbox,{size:"small",checked:a[n].includes(v.value),onChange:b=>d(m.name,v.value,b),name:v.label}),label:K.jsx(ae.Typography,{variant:"caption",color:"grey.600",children:v.label})})},C)).length===0?K.jsx(Ke.EmptyView,{sx:{svg:{height:100}},text:"Nenhum registro para ser apresentado"}):m.list.filter(v=>v.label.toLowerCase().includes(o.toLowerCase())).map((v,C)=>K.jsx(ae.ListItem,{children:K.jsx(ae.FormControlLabel,{control:K.jsx(ae.Checkbox,{size:"small",checked:a[n].includes(v.value),onChange:b=>d(m.name,v.value,b),name:v.label}),label:K.jsx(ae.Typography,{variant:"caption",color:"grey.600",children:v.label})})},C)))})})]})]},_))})},f2=({columns:r,rows:e,loading:t,fetching:n,totalRows:i,handlePaginationChange:o})=>{const{setValue:s}=un.useFormContext(),{apiRef:l,page:a,perPage:f}=Ke.useDatagrid();Me.useEffect(()=>()=>{s("config",{})},[]);const[c,u]=Me.useState([]),[d,h]=Me.useState(),p=m=>{u(m),s("config.products",{type:"FIELD",values:m})},g=()=>{const m=d==null?void 0:d.toLowerCase();return e.filter(_=>Object.values(_).some(v=>typeof v=="string"||v instanceof String?v.toLowerCase().includes(m||""):!1))};return K.jsxs(ae.Stack,{gap:2,children:[K.jsxs(ae.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[K.jsx(Ke.SearchInput,{onSearch:m=>h(m),onChange:m=>h(m.target.value),iconPosition:"start",size:"small",placeholder:"Buscar"}),K.jsxs(ae.Typography,{variant:"body1",color:"text.disabled",children:[c.length," selecionados"]})]}),K.jsx(Ke.DataGrid,{apiRef:l,columns:r,rows:g(),pagination:!0,paginationModel:{page:a,pageSize:f},rowCount:i,paginationMode:"server",onPaginationModelChange:o,initialState:{pagination:{paginationModel:{pageSize:5,page:a}}},loading:t,fetching:n,checkboxSelection:!0,onRowSelectionModelChange:p})]})},h2=en(ae.ToggleButton)(({theme:r})=>({width:"100%","&.Mui-selected":{backgroundColor:r.palette.primary.main,color:r.palette.common.white,"&:hover":{backgroundColor:r.palette.primary.main}}})),p2=en(ae.ToggleButtonGroup)(()=>({display:"flex",justifyContent:"space-between"})),g2=({rules:r,setRuleType:e})=>{const[t,n]=Me.useState(),{setValue:i}=un.useFormContext();Me.useEffect(()=>{if(r&&r.length>0&&(n(r[0].value),e))return e(r[0].value)},[]),Me.useEffect(()=>()=>{i("config",{})},[]);const o=(s,l)=>{if(l!==null&&(n(l),e))return e(l)};return K.jsxs(ae.Stack,{gap:2,children:[K.jsx(Ke.Field,{name:"name",label:"Nome da regra",required:!0,rules:{required:{value:!0,message:"Nome da regra é obrigatório"}}}),K.jsx(ae.Typography,{color:"grey.500",variant:"overline",children:"Selecione a regra"}),r&&K.jsx(p2,{color:"primary",value:t,size:"small",exclusive:!0,onChange:o,children:r.map((s,l)=>K.jsx(h2,{value:s.value,size:"small",color:"primary",children:K.jsx(ae.Typography,{variant:"body2",children:s.toggleTitle})},l))}),r&&r.map((s,l)=>s.value===t?K.jsx("div",{children:s.component},l):null)]})};function ny(r,e){if(!e||!r)return"";const n=r.map(i=>{if(!i.operator||!i.conditionals)return"";const s=i.conditionals.map(l=>{if(!l.field||!l.conditional)return"";let a="";if(l.type==="value")if(l.conditional==="IS NOT NULL"||l.conditional==="IS NULL")a=`this.${l.field} ${l.conditional}`;else if(l.conditional==="LIKE"||l.conditional==="NOT LIKE")a=`this.${l.field} ${l.conditional} '%${l.value}%'`;else if(l.conditional==="IN"||l.conditional==="NOT IN"){const f=l.value.split(",").map(c=>`'${c.trim()}'`).join(", ");a=`this.${l.field} ${l.conditional} (${f})`}else a=`this.${l.field} ${l.conditional} '${l.value}'`;else l.type==="field"&&(a=`this.${l.field} ${l.conditional} this.${l.value}`);return a}).join(` ${i.operator.toUpperCase()} `);return r.length>1?`(${s})`:s}).join(` ${e.toUpperCase()} `);return n||""}var ry={exports:{}};(function(r,e){(function(){var t="ace",n=function(){return this}();!n&&typeof window<"u"&&(n=window);var i=function(c,u,d){if(typeof c!="string"){i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(d=u),i.modules[c]||(i.payloads[c]=d,i.modules[c]=null)};i.modules={},i.payloads={};var o=function(c,u,d){if(typeof u=="string"){var h=a(c,u);if(h!=null)return d&&d(),h}else if(Object.prototype.toString.call(u)==="[object Array]"){for(var p=[],g=0,m=u.length;g<m;++g){var _=a(c,u[g]);if(_==null&&s.original)return;p.push(_)}return d&&d.apply(null,p)||!0}},s=function(c,u){var d=o("",c,u);return d==null&&s.original?s.original.apply(this,arguments):d},l=function(c,u){if(u.indexOf("!")!==-1){var d=u.split("!");return l(c,d[0])+"!"+l(c,d[1])}if(u.charAt(0)=="."){var h=c.split("/").slice(0,-1).join("/");for(u=h+"/"+u;u.indexOf(".")!==-1&&p!=u;){var p=u;u=u.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return u},a=function(c,u){u=l(c,u);var d=i.modules[u];if(!d){if(d=i.payloads[u],typeof d=="function"){var h={},p={id:u,uri:"",exports:h,packaged:!0},g=function(_,v){return o(u,_,v)},m=d(g,h,p);h=m||p.exports,i.modules[u]=h,delete i.payloads[u]}d=i.modules[u]=h||d}return d};function f(c){var u=n;n[c]||(n[c]={}),u=n[c],(!u.define||!u.define.packaged)&&(i.original=u.define,u.define=i,u.define.packaged=!0),(!u.require||!u.require.packaged)&&(s.original=u.require,u.require=s,u.require.packaged=!0)}f(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,n,i){function o(s,l,a){Object.defineProperty(s,l,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||o(String.prototype,"startsWith",function(s,l){return l=l||0,this.lastIndexOf(s,l)===l}),String.prototype.endsWith||o(String.prototype,"endsWith",function(s,l){var a=this;(l===void 0||l>a.length)&&(l=a.length),l-=s.length;var f=a.indexOf(s,l);return f!==-1&&f===l}),String.prototype.repeat||o(String.prototype,"repeat",function(s){for(var l="",a=this;s>0;)s&1&&(l+=a),(s>>=1)&&(a+=a);return l}),String.prototype.includes||o(String.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Object.assign||(Object.assign=function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var l=Object(s),a=1;a<arguments.length;a++){var f=arguments[a];f!=null&&Object.keys(f).forEach(function(c){l[c]=f[c]})}return l}),Object.values||(Object.values=function(s){return Object.keys(s).map(function(l){return s[l]})}),Array.prototype.find||o(Array.prototype,"find",function(s){for(var l=this.length,a=arguments[1],f=0;f<l;f++){var c=this[f];if(s.call(a,c,f,this))return c}}),Array.prototype.findIndex||o(Array.prototype,"findIndex",function(s){for(var l=this.length,a=arguments[1],f=0;f<l;f++){var c=this[f];if(s.call(a,c,f,this))return f}}),Array.prototype.includes||o(Array.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Array.prototype.fill||o(Array.prototype,"fill",function(s){for(var l=this,a=l.length>>>0,f=arguments[1],c=f>>0,u=c<0?Math.max(a+c,0):Math.min(c,a),d=arguments[2],h=d===void 0?a:d>>0,p=h<0?Math.max(a+h,0):Math.min(h,a);u<p;)l[u]=s,u++;return l}),Array.of||o(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,n,i){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,n,i){n.deepCopy=function o(s){if(typeof s!="object"||!s)return s;var l;if(Array.isArray(s)){l=[];for(var a=0;a<s.length;a++)l[a]=o(s[a]);return l}if(Object.prototype.toString.call(s)!=="[object Object]")return s;l={};for(var a in s)l[a]=o(s[a]);return l}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,n,i){n.last=function(l){return l[l.length-1]},n.stringReverse=function(l){return l.split("").reverse().join("")},n.stringRepeat=function(l,a){for(var f="";a>0;)a&1&&(f+=l),(a>>=1)&&(l+=l);return f};var o=/^\s\s*/,s=/\s\s*$/;n.stringTrimLeft=function(l){return l.replace(o,"")},n.stringTrimRight=function(l){return l.replace(s,"")},n.copyObject=function(l){var a={};for(var f in l)a[f]=l[f];return a},n.copyArray=function(l){for(var a=[],f=0,c=l.length;f<c;f++)l[f]&&typeof l[f]=="object"?a[f]=this.copyObject(l[f]):a[f]=l[f];return a},n.deepCopy=t("./deep_copy").deepCopy,n.arrayToMap=function(l){for(var a={},f=0;f<l.length;f++)a[l[f]]=1;return a},n.createMap=function(l){var a=Object.create(null);for(var f in l)a[f]=l[f];return a},n.arrayRemove=function(l,a){for(var f=0;f<=l.length;f++)a===l[f]&&l.splice(f,1)},n.escapeRegExp=function(l){return l.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},n.escapeHTML=function(l){return(""+l).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},n.getMatchOffsets=function(l,a){var f=[];return l.replace(a,function(c){f.push({offset:arguments[arguments.length-2],length:c.length})}),f},n.deferredCall=function(l){var a=null,f=function(){a=null,l()},c=function(u){return c.cancel(),a=setTimeout(f,u||0),c};return c.schedule=c,c.call=function(){return this.cancel(),l(),c},c.cancel=function(){return clearTimeout(a),a=null,c},c.isPending=function(){return a},c},n.delayedCall=function(l,a){var f=null,c=function(){f=null,l()},u=function(d){f==null&&(f=setTimeout(c,d||a))};return u.delay=function(d){f&&clearTimeout(f),f=setTimeout(c,d||a)},u.schedule=u,u.call=function(){this.cancel(),l()},u.cancel=function(){f&&clearTimeout(f),f=null},u.isPending=function(){return f},u},n.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},n.skipEmptyMatch=function(l,a,f){return f&&l.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,n,i){n.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},n.getOS=function(){return n.isMac?n.OS.MAC:n.isLinux?n.OS.LINUX:n.OS.WINDOWS};var o=typeof navigator=="object"?navigator:{},s=(/mac|win|linux/i.exec(o.platform)||["other"])[0].toLowerCase(),l=o.userAgent||"",a=o.appName||"";n.isWin=s=="win",n.isMac=s=="mac",n.isLinux=s=="linux",n.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((l.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((l.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),n.isOldIE=n.isIE&&n.isIE<9,n.isGecko=n.isMozilla=l.match(/ Gecko\/\d+/),n.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",n.isWebKit=parseFloat(l.split("WebKit/")[1])||void 0,n.isChrome=parseFloat(l.split(" Chrome/")[1])||void 0,n.isSafari=parseFloat(l.split(" Safari/")[1])&&!n.isChrome||void 0,n.isEdge=parseFloat(l.split(" Edge/")[1])||void 0,n.isAIR=l.indexOf("AdobeAIR")>=0,n.isAndroid=l.indexOf("Android")>=0,n.isChromeOS=l.indexOf(" CrOS ")>=0,n.isIOS=/iPad|iPhone|iPod/.test(l)&&!window.MSStream,n.isIOS&&(n.isMac=!0),n.isMobile=n.isIOS||n.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,n,i){var o=t("./useragent"),s="http://www.w3.org/1999/xhtml";n.buildDom=function d(h,p,g){if(typeof h=="string"&&h){var m=document.createTextNode(h);return p&&p.appendChild(m),m}if(!Array.isArray(h))return h&&h.appendChild&&p&&p.appendChild(h),h;if(typeof h[0]!="string"||!h[0]){for(var _=[],v=0;v<h.length;v++){var C=d(h[v],p,g);C&&_.push(C)}return _}var b=document.createElement(h[0]),E=h[1],S=1;E&&typeof E=="object"&&!Array.isArray(E)&&(S=2);for(var v=S;v<h.length;v++)d(h[v],b,g);return S==2&&Object.keys(E).forEach(function(T){var y=E[T];T==="class"?b.className=Array.isArray(y)?y.join(" "):y:typeof y=="function"||T=="value"||T[0]=="$"?b[T]=y:T==="ref"?g&&(g[y]=b):T==="style"?typeof y=="string"&&(b.style.cssText=y):y!=null&&b.setAttribute(T,y)}),p&&p.appendChild(b),b},n.getDocumentHead=function(d){return d||(d=document),d.head||d.getElementsByTagName("head")[0]||d.documentElement},n.createElement=function(d,h){return document.createElementNS?document.createElementNS(h||s,d):document.createElement(d)},n.removeChildren=function(d){d.innerHTML=""},n.createTextNode=function(d,h){var p=h?h.ownerDocument:document;return p.createTextNode(d)},n.createFragment=function(d){var h=d?d.ownerDocument:document;return h.createDocumentFragment()},n.hasCssClass=function(d,h){var p=(d.className+"").split(/\s+/g);return p.indexOf(h)!==-1},n.addCssClass=function(d,h){n.hasCssClass(d,h)||(d.className+=" "+h)},n.removeCssClass=function(d,h){for(var p=d.className.split(/\s+/g);;){var g=p.indexOf(h);if(g==-1)break;p.splice(g,1)}d.className=p.join(" ")},n.toggleCssClass=function(d,h){for(var p=d.className.split(/\s+/g),g=!0;;){var m=p.indexOf(h);if(m==-1)break;g=!1,p.splice(m,1)}return g&&p.push(h),d.className=p.join(" "),g},n.setCssClass=function(d,h,p){p?n.addCssClass(d,h):n.removeCssClass(d,h)},n.hasCssString=function(d,h){var p=0,g;if(h=h||document,g=h.querySelectorAll("style")){for(;p<g.length;)if(g[p++].id===d)return!0}},n.removeElementById=function(d,h){h=h||document,h.getElementById(d)&&h.getElementById(d).remove()};var l,a=[];n.useStrictCSP=function(d){l=d,d==!1?f():a||(a=[])};function f(){var d=a;a=null,d&&d.forEach(function(h){c(h[0],h[1])})}function c(d,h,p){if(!(typeof document>"u")){if(a){if(p)f();else if(p===!1)return a.push([d,h])}if(!l){var g=p;!p||!p.getRootNode?g=document:(g=p.getRootNode(),(!g||g==p)&&(g=document));var m=g.ownerDocument||g;if(h&&n.hasCssString(h,g))return null;h&&(d+=`
146
+ `)}return ie}function Le(ce,ie){var Se={},_e=ce.style||{};return _e.fontStyle&&H(ce).fontStyle==="italic"&&(Se.italic=!0),_e.fontWeight&&(H(ce).fontWeight.startsWith("bold")||parseInt(H(ce).fontWeight)>=700)&&(Se.bold=!0),Object.keys(Se).length>0&&(ie=F(ie,Se)),parseFloat(_e.textIndent||0)>0&&(ie=new u.default().insert(" ").concat(ie)),ie}function He(ce,ie){var Se=ce.data;if(ce.parentNode.tagName==="O:P")return ie.insert(Se.trim());if(Se.trim().length===0&&ce.parentNode.classList.contains("ql-clipboard"))return ie;if(!H(ce.parentNode).whiteSpace.startsWith("pre")){var _e=function(ke,xe){return xe=xe.replace(/[^\u00a0]/g,""),xe.length<1&&ke?" ":xe};Se=Se.replace(/\r\n/g," ").replace(/\n/g," "),Se=Se.replace(/\s\s+/g,_e.bind(_e,!0)),(ce.previousSibling==null&&$(ce.parentNode)||ce.previousSibling!=null&&$(ce.previousSibling))&&(Se=Se.replace(/^\s+/,_e.bind(_e,!1))),(ce.nextSibling==null&&$(ce.parentNode)||ce.nextSibling!=null&&$(ce.nextSibling))&&(Se=Se.replace(/\s+$/,_e.bind(_e,!1)))}return ie.insert(Se)}n.default=U,n.matchAttributor=W,n.matchBlot=j,n.matchNewline=fe,n.matchSpacing=ye,n.matchText=He},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(6),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(){return c(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"optimize",value:function(_){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(a.default);h.blotName="bold",h.tagName=["STRONG","B"],n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=function(){function O(A,N){var R=[],x=!0,D=!1,M=void 0;try{for(var B=A[Symbol.iterator](),P;!(x=(P=B.next()).done)&&(R.push(P.value),!(N&&R.length===N));x=!0);}catch(L){D=!0,M=L}finally{try{!x&&B.return&&B.return()}finally{if(D)throw M}}return R}return function(A,N){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return O(A,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function O(A,N){for(var R=0;R<N.length;R++){var x=N[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}return function(A,N,R){return N&&O(A.prototype,N),R&&O(A,R),A}}(),l=i(2),a=_(l),f=i(0),c=_(f),u=i(5),d=_(u),h=i(10),p=_(h),g=i(9),m=_(g);function _(O){return O&&O.__esModule?O:{default:O}}function v(O,A,N){return A in O?Object.defineProperty(O,A,{value:N,enumerable:!0,configurable:!0,writable:!0}):O[A]=N,O}function C(O,A){if(!(O instanceof A))throw new TypeError("Cannot call a class as a function")}function b(O,A){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:O}function E(O,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);O.prototype=Object.create(A&&A.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(O,A):O.__proto__=A)}var S=(0,p.default)("quill:toolbar"),T=function(O){E(A,O);function A(N,R){C(this,A);var x=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,N,R));if(Array.isArray(x.options.container)){var D=document.createElement("div");w(D,x.options.container),N.container.parentNode.insertBefore(D,N.container),x.container=D}else typeof x.options.container=="string"?x.container=document.querySelector(x.options.container):x.container=x.options.container;if(!(x.container instanceof HTMLElement)){var M;return M=S.error("Container required for toolbar",x.options),b(x,M)}return x.container.classList.add("ql-toolbar"),x.controls=[],x.handlers={},Object.keys(x.options.handlers).forEach(function(B){x.addHandler(B,x.options.handlers[B])}),[].forEach.call(x.container.querySelectorAll("button, select"),function(B){x.attach(B)}),x.quill.on(d.default.events.EDITOR_CHANGE,function(B,P){B===d.default.events.SELECTION_CHANGE&&x.update(P)}),x.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){var B=x.quill.selection.getRange(),P=o(B,1),L=P[0];x.update(L)}),x}return s(A,[{key:"addHandler",value:function(R,x){this.handlers[R]=x}},{key:"attach",value:function(R){var x=this,D=[].find.call(R.classList,function(B){return B.indexOf("ql-")===0});if(D){if(D=D.slice(3),R.tagName==="BUTTON"&&R.setAttribute("type","button"),this.handlers[D]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[D]==null){S.warn("ignoring attaching to disabled format",D,R);return}if(c.default.query(D)==null){S.warn("ignoring attaching to nonexistent format",D,R);return}}var M=R.tagName==="SELECT"?"change":"click";R.addEventListener(M,function(B){var P=void 0;if(R.tagName==="SELECT"){if(R.selectedIndex<0)return;var L=R.options[R.selectedIndex];L.hasAttribute("selected")?P=!1:P=L.value||!1}else R.classList.contains("ql-active")?P=!1:P=R.value||!R.hasAttribute("value"),B.preventDefault();x.quill.focus();var k=x.quill.selection.getRange(),U=o(k,1),F=U[0];if(x.handlers[D]!=null)x.handlers[D].call(x,P);else if(c.default.query(D).prototype instanceof c.default.Embed){if(P=prompt("Enter "+D),!P)return;x.quill.updateContents(new a.default().retain(F.index).delete(F.length).insert(v({},D,P)),d.default.sources.USER)}else x.quill.format(D,P,d.default.sources.USER);x.update(F)}),this.controls.push([D,R])}}},{key:"update",value:function(R){var x=R==null?{}:this.quill.getFormat(R);this.controls.forEach(function(D){var M=o(D,2),B=M[0],P=M[1];if(P.tagName==="SELECT"){var L=void 0;if(R==null)L=null;else if(x[B]==null)L=P.querySelector("option[selected]");else if(!Array.isArray(x[B])){var k=x[B];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),L=P.querySelector('option[value="'+k+'"]')}L==null?(P.value="",P.selectedIndex=-1):L.selected=!0}else if(R==null)P.classList.remove("ql-active");else if(P.hasAttribute("value")){var U=x[B]===P.getAttribute("value")||x[B]!=null&&x[B].toString()===P.getAttribute("value")||x[B]==null&&!P.getAttribute("value");P.classList.toggle("ql-active",U)}else P.classList.toggle("ql-active",x[B]!=null)})}}]),A}(m.default);T.DEFAULTS={};function y(O,A,N){var R=document.createElement("button");R.setAttribute("type","button"),R.classList.add("ql-"+A),N!=null&&(R.value=N),O.appendChild(R)}function w(O,A){Array.isArray(A[0])||(A=[A]),A.forEach(function(N){var R=document.createElement("span");R.classList.add("ql-formats"),N.forEach(function(x){if(typeof x=="string")y(R,x);else{var D=Object.keys(x)[0],M=x[D];Array.isArray(M)?I(R,D,M):y(R,D,M)}}),O.appendChild(R)})}function I(O,A,N){var R=document.createElement("select");R.classList.add("ql-"+A),N.forEach(function(x){var D=document.createElement("option");x!==!1?D.setAttribute("value",x):D.setAttribute("selected","selected"),R.appendChild(D)}),O.appendChild(R)}T.DEFAULTS={container:null,handlers:{clean:function(){var A=this,N=this.quill.getSelection();if(N!=null)if(N.length==0){var R=this.quill.getFormat();Object.keys(R).forEach(function(x){c.default.query(x,c.default.Scope.INLINE)!=null&&A.quill.format(x,!1)})}else this.quill.removeFormat(N,d.default.sources.USER)},direction:function(A){var N=this.quill.getFormat().align;A==="rtl"&&N==null?this.quill.format("align","right",d.default.sources.USER):!A&&N==="right"&&this.quill.format("align",!1,d.default.sources.USER),this.quill.format("direction",A,d.default.sources.USER)},indent:function(A){var N=this.quill.getSelection(),R=this.quill.getFormat(N),x=parseInt(R.indent||0);if(A==="+1"||A==="-1"){var D=A==="+1"?1:-1;R.direction==="rtl"&&(D*=-1),this.quill.format("indent",x+D,d.default.sources.USER)}},link:function(A){A===!0&&(A=prompt("Enter link URL:")),this.quill.format("link",A,d.default.sources.USER)},list:function(A){var N=this.quill.getSelection(),R=this.quill.getFormat(N);A==="check"?R.list==="checked"||R.list==="unchecked"?this.quill.format("list",!1,d.default.sources.USER):this.quill.format("list","unchecked",d.default.sources.USER):this.quill.format("list",A,d.default.sources.USER)}}},n.default=T,n.addControls=w},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(28),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(m,_){c(this,g);var v=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,m));return v.label.innerHTML=_,v.container.classList.add("ql-color-picker"),[].slice.call(v.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(C){C.classList.add("ql-primary")}),v}return o(g,[{key:"buildItem",value:function(_){var v=s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,_);return v.style.backgroundColor=_.getAttribute("value")||"",v}},{key:"selectItem",value:function(_,v){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,_,v);var C=this.label.querySelector(".ql-color-label"),b=_&&_.getAttribute("data-value")||"";C&&(C.tagName==="line"?C.style.stroke=b:C.style.fill=b)}}]),g}(a.default);n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(28),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(m,_){c(this,g);var v=u(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,m));return v.container.classList.add("ql-icon-picker"),[].forEach.call(v.container.querySelectorAll(".ql-picker-item"),function(C){C.innerHTML=_[C.getAttribute("data-value")||""]}),v.defaultItem=v.container.querySelector(".ql-selected"),v.selectItem(v.defaultItem),v}return o(g,[{key:"selectItem",value:function(_,v){s(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,_,v),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),g}(a.default);n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function a(f,c){for(var u=0;u<c.length;u++){var d=c[u];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(f,d.key,d)}}return function(f,c,u){return c&&a(f.prototype,c),u&&a(f,u),f}}();function s(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}var l=function(){function a(f,c){var u=this;s(this,a),this.quill=f,this.boundsContainer=c||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){u.root.style.marginTop=-1*u.quill.root.scrollTop+"px"}),this.hide()}return o(a,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var u=c.left+c.width/2-this.root.offsetWidth/2,d=c.bottom+this.quill.root.scrollTop;this.root.style.left=u+"px",this.root.style.top=d+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),p=this.root.getBoundingClientRect(),g=0;if(p.right>h.right&&(g=h.right-p.right,this.root.style.left=u+g+"px"),p.left<h.left&&(g=h.left-p.left,this.root.style.left=u+g+"px"),p.bottom>h.bottom){var m=p.bottom-p.top,_=c.bottom-c.top+m;this.root.style.top=d-_+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),a}();n.default=l},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function I(O,A){var N=[],R=!0,x=!1,D=void 0;try{for(var M=O[Symbol.iterator](),B;!(R=(B=M.next()).done)&&(N.push(B.value),!(A&&N.length===A));R=!0);}catch(P){x=!0,D=P}finally{try{!R&&M.return&&M.return()}finally{if(x)throw D}}return N}return function(O,A){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return I(O,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function I(O,A,N){O===null&&(O=Function.prototype);var R=Object.getOwnPropertyDescriptor(O,A);if(R===void 0){var x=Object.getPrototypeOf(O);return x===null?void 0:I(x,A,N)}else{if("value"in R)return R.value;var D=R.get;return D===void 0?void 0:D.call(N)}},l=function(){function I(O,A){for(var N=0;N<A.length;N++){var R=A[N];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(O,R.key,R)}}return function(O,A,N){return A&&I(O.prototype,A),N&&I(O,N),O}}(),a=i(3),f=C(a),c=i(8),u=C(c),d=i(43),h=C(d),p=i(27),g=C(p),m=i(15),_=i(41),v=C(_);function C(I){return I&&I.__esModule?I:{default:I}}function b(I,O){if(!(I instanceof O))throw new TypeError("Cannot call a class as a function")}function E(I,O){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:I}function S(I,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);I.prototype=Object.create(O&&O.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(I,O):I.__proto__=O)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(I){S(O,I);function O(A,N){b(this,O),N.modules.toolbar!=null&&N.modules.toolbar.container==null&&(N.modules.toolbar.container=T);var R=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,A,N));return R.quill.container.classList.add("ql-snow"),R}return l(O,[{key:"extendToolbar",value:function(N){N.container.classList.add("ql-snow"),this.buildButtons([].slice.call(N.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(N.container.querySelectorAll("select")),v.default),this.tooltip=new w(this.quill,this.options.bounds),N.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(R,x){N.handlers.link.call(N,!x.format.link)})}}]),O}(h.default);y.DEFAULTS=(0,f.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){if(O){var A=this.quill.getSelection();if(A==null||A.length==0)return;var N=this.quill.getText(A);/^\S+@\S+\.\S+$/.test(N)&&N.indexOf("mailto:")!==0&&(N="mailto:"+N);var R=this.quill.theme.tooltip;R.edit("link",N)}else this.quill.format("link",!1)}}}}});var w=function(I){S(O,I);function O(A,N){b(this,O);var R=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,A,N));return R.preview=R.root.querySelector("a.ql-preview"),R}return l(O,[{key:"listen",value:function(){var N=this;s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(R){N.root.classList.contains("ql-editing")?N.save():N.edit("link",N.preview.textContent),R.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(R){if(N.linkRange!=null){var x=N.linkRange;N.restoreFocus(),N.quill.formatText(x,"link",!1,u.default.sources.USER),delete N.linkRange}R.preventDefault(),N.hide()}),this.quill.on(u.default.events.SELECTION_CHANGE,function(R,x,D){if(R!=null){if(R.length===0&&D===u.default.sources.USER){var M=N.quill.scroll.descendant(g.default,R.index),B=o(M,2),P=B[0],L=B[1];if(P!=null){N.linkRange=new m.Range(R.index-L,P.length());var k=g.default.formats(P.domNode);N.preview.textContent=k,N.preview.setAttribute("href",k),N.show(),N.position(N.quill.getBounds(N.linkRange));return}}else delete N.linkRange;N.hide()}})}},{key:"show",value:function(){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),O}(d.BaseTooltip);w.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(""),n.default=y},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),s=de(o),l=i(36),a=i(38),f=i(64),c=i(65),u=de(c),d=i(66),h=de(d),p=i(67),g=de(p),m=i(37),_=i(26),v=i(39),C=i(40),b=i(56),E=de(b),S=i(68),T=de(S),y=i(27),w=de(y),I=i(69),O=de(I),A=i(70),N=de(A),R=i(71),x=de(R),D=i(72),M=de(D),B=i(73),P=de(B),L=i(13),k=de(L),U=i(74),F=de(U),H=i(75),G=de(H),$=i(57),q=de($),Y=i(41),W=de(Y),j=i(28),re=de(j),ee=i(59),ge=de(ee),fe=i(60),ye=de(fe),Le=i(61),He=de(Le),ce=i(108),ie=de(ce),Se=i(62),_e=de(Se);function de(ke){return ke&&ke.__esModule?ke:{default:ke}}s.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":m.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":C.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":m.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":C.SizeStyle},!0),s.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":f.IndentClass,"formats/background":m.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":v.FontClass,"formats/size":C.SizeClass,"formats/blockquote":u.default,"formats/code-block":k.default,"formats/header":h.default,"formats/list":g.default,"formats/bold":E.default,"formats/code":L.Code,"formats/italic":T.default,"formats/link":w.default,"formats/script":O.default,"formats/strike":N.default,"formats/underline":x.default,"formats/image":M.default,"formats/video":P.default,"formats/list/item":p.ListItem,"modules/formula":F.default,"modules/syntax":G.default,"modules/toolbar":q.default,"themes/bubble":ie.default,"themes/snow":_e.default,"ui/icons":W.default,"ui/picker":re.default,"ui/icon-picker":ye.default,"ui/color-picker":ge.default,"ui/tooltip":He.default},!0),n.default=s.default},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=function(){function g(m,_){for(var v=0;v<_.length;v++){var C=_[v];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(m,C.key,C)}}return function(m,_,v){return _&&g(m.prototype,_),v&&g(m,v),m}}(),s=function g(m,_,v){m===null&&(m=Function.prototype);var C=Object.getOwnPropertyDescriptor(m,_);if(C===void 0){var b=Object.getPrototypeOf(m);return b===null?void 0:g(b,_,v)}else{if("value"in C)return C.value;var E=C.get;return E===void 0?void 0:E.call(v)}},l=i(0),a=f(l);function f(g){return g&&g.__esModule?g:{default:g}}function c(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function u(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function d(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var h=function(g){d(m,g);function m(){return c(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"add",value:function(v,C){if(C==="+1"||C==="-1"){var b=this.value(v)||0;C=C==="+1"?b+1:b-1}return C===0?(this.remove(v),!0):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"add",this).call(this,v,C)}},{key:"canAdd",value:function(v,C){return s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"canAdd",this).call(this,v,C)||s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"canAdd",this).call(this,v,parseInt(C))}},{key:"value",value:function(v){return parseInt(s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,v))||void 0}}]),m}(a.default.Attributor.Class),p=new h("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=p},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="blockquote",u.tagName="blockquote",n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function h(p,g){for(var m=0;m<g.length;m++){var _=g[m];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,_.key,_)}}return function(p,g,m){return g&&h(p.prototype,g),m&&h(p,m),p}}(),s=i(4),l=a(s);function a(h){return h&&h.__esModule?h:{default:h}}function f(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function c(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function u(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var d=function(h){u(p,h);function p(){return f(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,null,[{key:"formats",value:function(m){return this.tagName.indexOf(m.tagName)+1}}]),p}(l.default);d.blotName="header",d.tagName=["H1","H2","H3","H4","H5","H6"],n.default=d},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=function(){function b(E,S){for(var T=0;T<S.length;T++){var y=S[T];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(E,y.key,y)}}return function(E,S,T){return S&&b(E.prototype,S),T&&b(E,T),E}}(),s=function b(E,S,T){E===null&&(E=Function.prototype);var y=Object.getOwnPropertyDescriptor(E,S);if(y===void 0){var w=Object.getPrototypeOf(E);return w===null?void 0:b(w,S,T)}else{if("value"in y)return y.value;var I=y.get;return I===void 0?void 0:I.call(T)}},l=i(0),a=h(l),f=i(4),c=h(f),u=i(25),d=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function p(b,E,S){return E in b?Object.defineProperty(b,E,{value:S,enumerable:!0,configurable:!0,writable:!0}):b[E]=S,b}function g(b,E){if(!(b instanceof E))throw new TypeError("Cannot call a class as a function")}function m(b,E){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:b}function _(b,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);b.prototype=Object.create(E&&E.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(b,E):b.__proto__=E)}var v=function(b){_(E,b);function E(){return g(this,E),m(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(T,y){T===C.blotName&&!y?this.replaceWith(a.default.create(this.statics.scope)):s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,T,y)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,y){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,y),this):(this.parent.unwrap(),s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,T,y))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,T)}}]),E}(c.default);v.blotName="list-item",v.tagName="LI";var C=function(b){_(E,b),o(E,null,[{key:"create",value:function(T){var y=T==="ordered"?"OL":"UL",w=s(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,y);return(T==="checked"||T==="unchecked")&&w.setAttribute("data-checked",T==="checked"),w}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(S){g(this,E);var T=m(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S)),y=function(I){if(I.target.parentNode===S){var O=T.statics.formats(S),A=a.default.find(I.target);O==="checked"?A.format("list","unchecked"):O==="unchecked"&&A.format("list","checked")}};return S.addEventListener("touchstart",y),S.addEventListener("mousedown",y),T}return o(E,[{key:"format",value:function(T,y){this.children.length>0&&this.children.tail.format(T,y)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,y){if(T instanceof v)s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,T,y);else{var w=y==null?this.length():y.offset(this),I=this.split(w);I.parent.insertBefore(T,I)}}},{key:"optimize",value:function(T){s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,T);var y=this.next;y!=null&&y.prev===this&&y.statics.blotName===this.statics.blotName&&y.domNode.tagName===this.domNode.tagName&&y.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(y.moveChildren(this),y.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var y=a.default.create(this.statics.defaultChild);T.moveChildren(y),this.appendChild(y)}s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,T)}}]),E}(d.default);C.blotName="list",C.scope=a.default.Scope.BLOCK_BLOT,C.tagName=["OL","UL"],C.defaultChild="list-item",C.allowedChildren=[v],n.ListItem=v,n.default=C},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="italic",u.tagName=["EM","I"],n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function p(g,m){for(var _=0;_<m.length;_++){var v=m[_];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,m,_){return m&&p(g.prototype,m),_&&p(g,_),g}}(),s=function p(g,m,_){g===null&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,m);if(v===void 0){var C=Object.getPrototypeOf(g);return C===null?void 0:p(C,m,_)}else{if("value"in v)return v.value;var b=v.get;return b===void 0?void 0:b.call(_)}},l=i(6),a=f(l);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function u(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function d(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var h=function(p){d(g,p);function g(){return c(this,g),u(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),g}(a.default);h.blotName="script",h.tagName=["SUB","SUP"],n.default=h},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="strike",u.tagName="S",n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function f(d,h){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:d}function c(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(d,h):d.__proto__=h)}var u=function(d){c(h,d);function h(){return a(this,h),f(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h}(s.default);u.blotName="underline",u.tagName="U",n.default=u},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,v){for(var C=0;C<v.length;C++){var b=v[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(_,b.key,b)}}return function(_,v,C){return v&&m(_.prototype,v),C&&m(_,C),_}}(),s=function m(_,v,C){_===null&&(_=Function.prototype);var b=Object.getOwnPropertyDescriptor(_,v);if(b===void 0){var E=Object.getPrototypeOf(_);return E===null?void 0:m(E,v,C)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(C)}},l=i(0),a=c(l),f=i(27);function c(m){return m&&m.__esModule?m:{default:m}}function u(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function d(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function h(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var p=["alt","height","width"],g=function(m){h(_,m);function _(){return u(this,_),d(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(C,b){p.indexOf(C)>-1?b?this.domNode.setAttribute(C,b):this.domNode.removeAttribute(C):s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,C,b)}}],[{key:"create",value:function(C){var b=s(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,C);return typeof C=="string"&&b.setAttribute("src",this.sanitize(C)),b}},{key:"formats",value:function(C){return p.reduce(function(b,E){return C.hasAttribute(E)&&(b[E]=C.getAttribute(E)),b},{})}},{key:"match",value:function(C){return/\.(jpe?g|gif|png)$/.test(C)||/^data:image\/.+;base64/.test(C)}},{key:"sanitize",value:function(C){return(0,f.sanitize)(C,["http","https","data"])?C:"//:0"}},{key:"value",value:function(C){return C.getAttribute("src")}}]),_}(a.default.Embed);g.blotName="image",g.tagName="IMG",n.default=g},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,v){for(var C=0;C<v.length;C++){var b=v[C];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(_,b.key,b)}}return function(_,v,C){return v&&m(_.prototype,v),C&&m(_,C),_}}(),s=function m(_,v,C){_===null&&(_=Function.prototype);var b=Object.getOwnPropertyDescriptor(_,v);if(b===void 0){var E=Object.getPrototypeOf(_);return E===null?void 0:m(E,v,C)}else{if("value"in b)return b.value;var S=b.get;return S===void 0?void 0:S.call(C)}},l=i(4),a=i(27),f=c(a);function c(m){return m&&m.__esModule?m:{default:m}}function u(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function d(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function h(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var p=["height","width"],g=function(m){h(_,m);function _(){return u(this,_),d(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(C,b){p.indexOf(C)>-1?b?this.domNode.setAttribute(C,b):this.domNode.removeAttribute(C):s(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,C,b)}}],[{key:"create",value:function(C){var b=s(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,C);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(C)),b}},{key:"formats",value:function(C){return p.reduce(function(b,E){return C.hasAttribute(E)&&(b[E]=C.getAttribute(E)),b},{})}},{key:"sanitize",value:function(C){return f.default.sanitize(C)}},{key:"value",value:function(C){return C.getAttribute("src")}}]),_}(l.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",n.default=g},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=function(){function C(b,E){for(var S=0;S<E.length;S++){var T=E[S];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,E,S){return E&&C(b.prototype,E),S&&C(b,S),b}}(),s=function C(b,E,S){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,E);if(T===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:C(y,E,S)}else{if("value"in T)return T.value;var w=T.get;return w===void 0?void 0:w.call(S)}},l=i(35),a=h(l),f=i(5),c=h(f),u=i(9),d=h(u);function h(C){return C&&C.__esModule?C:{default:C}}function p(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function g(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function m(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var _=function(C){m(b,C);function b(){return p(this,b),g(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(S){var T=s(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,S);return typeof S=="string"&&(window.katex.render(S,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",S)),T}},{key:"value",value:function(S){return S.getAttribute("data-value")}}]),b}(a.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var v=function(C){m(b,C),o(b,null,[{key:"register",value:function(){c.default.register(_,!0)}}]);function b(){p(this,b);var E=g(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return b}(d.default);n.FormulaBlot=_,n.default=v},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=function(){function S(T,y){for(var w=0;w<y.length;w++){var I=y[w];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,I.key,I)}}return function(T,y,w){return y&&S(T.prototype,y),w&&S(T,w),T}}(),s=function S(T,y,w){T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,y);if(I===void 0){var O=Object.getPrototypeOf(T);return O===null?void 0:S(O,y,w)}else{if("value"in I)return I.value;var A=I.get;return A===void 0?void 0:A.call(w)}},l=i(0),a=g(l),f=i(5),c=g(f),u=i(9),d=g(u),h=i(13),p=g(h);function g(S){return S&&S.__esModule?S:{default:S}}function m(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function _(S,T){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:S}function v(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(S,T):S.__proto__=T)}var C=function(S){v(T,S);function T(){return m(this,T),_(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return o(T,[{key:"replaceWith",value:function(w){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,w)}},{key:"highlight",value:function(w){var I=this.domNode.textContent;this.cachedText!==I&&((I.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=w(I),this.domNode.normalize(),this.attach()),this.cachedText=I)}}]),T}(p.default);C.className="ql-syntax";var b=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),E=function(S){v(T,S),o(T,null,[{key:"register",value:function(){c.default.register(b,!0),c.default.register(C,!0)}}]);function T(y,w){m(this,T);var I=_(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,y,w));if(typeof I.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var O=null;return I.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(O),O=setTimeout(function(){I.highlight(),O=null},I.options.interval)}),I.highlight(),I}return o(T,[{key:"highlight",value:function(){var w=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var I=this.quill.getSelection();this.quill.scroll.descendants(C).forEach(function(O){O.highlight(w.options.highlight)}),this.quill.update(c.default.sources.SILENT),I!=null&&this.quill.setSelection(I,c.default.sources.SILENT)}}}]),T}(d.default);E.DEFAULTS={highlight:function(){return window.hljs==null?null:function(S){var T=window.hljs.highlightAuto(S);return T.value}}(),interval:1e3},n.CodeBlock=C,n.CodeToken=b,n.default=E},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function T(y,w,I){y===null&&(y=Function.prototype);var O=Object.getOwnPropertyDescriptor(y,w);if(O===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:T(A,w,I)}else{if("value"in O)return O.value;var N=O.get;return N===void 0?void 0:N.call(I)}},s=function(){function T(y,w){for(var I=0;I<w.length;I++){var O=w[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}return function(y,w,I){return w&&T(y.prototype,w),I&&T(y,I),y}}(),l=i(3),a=m(l),f=i(8),c=m(f),u=i(43),d=m(u),h=i(15),p=i(41),g=m(p);function m(T){return T&&T.__esModule?T:{default:T}}function _(T,y){if(!(T instanceof y))throw new TypeError("Cannot call a class as a function")}function v(T,y){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:T}function C(T,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);T.prototype=Object.create(y&&y.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(T,y):T.__proto__=y)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=function(T){C(y,T);function y(w,I){_(this,y),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=b);var O=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w,I));return O.quill.container.classList.add("ql-bubble"),O}return s(y,[{key:"extendToolbar",value:function(I){this.tooltip=new S(this.quill,this.options.bounds),this.tooltip.root.appendChild(I.container),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),g.default)}}]),y}(d.default);E.DEFAULTS=(0,a.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(y){y?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var S=function(T){C(y,T);function y(w,I){_(this,y);var O=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,w,I));return O.quill.on(c.default.events.EDITOR_CHANGE,function(A,N,R,x){if(A===c.default.events.SELECTION_CHANGE)if(N!=null&&N.length>0&&x===c.default.sources.USER){O.show(),O.root.style.left="0px",O.root.style.width="",O.root.style.width=O.root.offsetWidth+"px";var D=O.quill.getLines(N.index,N.length);if(D.length===1)O.position(O.quill.getBounds(N));else{var M=D[D.length-1],B=O.quill.getIndex(M),P=Math.min(M.length()-1,N.index+N.length-B),L=O.quill.getBounds(new h.Range(B,P));O.position(L)}}else document.activeElement!==O.textbox&&O.quill.hasFocus()&&O.hide()}),O}return s(y,[{key:"listen",value:function(){var I=this;o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){I.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!I.root.classList.contains("ql-hidden")){var O=I.quill.getSelection();O!=null&&I.position(I.quill.getBounds(O))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(I){var O=o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"position",this).call(this,I),A=this.root.querySelector(".ql-tooltip-arrow");if(A.style.marginLeft="",O===0)return O;A.style.marginLeft=-1*O-A.offsetWidth/2+"px"}}]),y}(u.BaseTooltip);S.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=S,n.default=E},function(t,n,i){t.exports=i(63)}]).default})})(Zb);var jU=Zb.exports,XU=Xe&&Xe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ma=Xe&&Xe.__assign||function(){return ma=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},ma.apply(this,arguments)},ZU=Xe&&Xe.__spreadArrays||function(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),i=0,e=0;e<t;e++)for(var o=arguments[e],s=0,l=o.length;s<l;s++,i++)n[i]=o[s];return n},_a=Xe&&Xe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},er=_a(Me),JU=_a(jg),$o=_a(QU),Jb=_a(jU),e2=function(r){XU(e,r);function e(t){var n=r.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(o,s,l,a){var f,c,u,d;o==="text-change"?(c=(f=n).onEditorChangeText)===null||c===void 0||c.call(f,n.editor.root.innerHTML,s,a,n.unprivilegedEditor):o==="selection-change"&&((d=(u=n).onEditorChangeSelection)===null||d===void 0||d.call(u,s,a,n.unprivilegedEditor))};var i=n.isControlled()?t.value:t.defaultValue;return n.value=i??"",n}return e.prototype.validateProps=function(t){var n;if(er.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(er.default.Children.count(t.children)){var i=er.default.Children.only(t.children);if(((n=i)===null||n===void 0?void 0:n.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},e.prototype.shouldComponentUpdate=function(t,n){var i=this,o;if(this.validateProps(t),!this.editor||this.state.generation!==n.generation)return!0;if("value"in t){var s=this.getEditorContents(),l=(o=t.value,o??"");this.isEqualValue(l,s)||this.setEditorContents(this.editor,l)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),ZU(this.cleanProps,this.dirtyProps).some(function(a){return!$o.default(t[a],i.props[a])})},e.prototype.shouldComponentRegenerate=function(t){var n=this;return this.dirtyProps.some(function(i){return!$o.default(t[i],n.props[i])})},e.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},e.prototype.componentWillUnmount=function(){this.destroyEditor()},e.prototype.componentDidUpdate=function(t,n){var i=this;if(this.editor&&this.shouldComponentRegenerate(t)){var o=this.editor.getContents(),s=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:s},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==n.generation){var l=this.regenerationSnapshot,o=l.delta,a=l.selection;delete this.regenerationSnapshot,this.instantiateEditor();var f=this.editor;f.setContents(o),ey(function(){return i.setEditorSelection(f,a)})}},e.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},e.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},e.prototype.isControlled=function(){return"value"in this.props},e.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},e.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},e.prototype.createEditor=function(t,n){var i=new Jb.default(t,n);return n.tabIndex!=null&&this.setEditorTabIndex(i,n.tabIndex),this.hookEditor(i),i},e.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},e.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},e.prototype.getEditorContents=function(){return this.value},e.prototype.getEditorSelection=function(){return this.selection},e.prototype.isDelta=function(t){return t&&t.ops},e.prototype.isEqualValue=function(t,n){return this.isDelta(t)&&this.isDelta(n)?$o.default(t.ops,n.ops):$o.default(t,n)},e.prototype.setEditorContents=function(t,n){var i=this;this.value=n;var o=this.getEditorSelection();typeof n=="string"?t.setContents(t.clipboard.convert(n)):t.setContents(n),ey(function(){return i.setEditorSelection(t,o)})},e.prototype.setEditorSelection=function(t,n){if(this.selection=n,n){var i=t.getLength();n.index=Math.max(0,Math.min(n.index,i-1)),n.length=Math.max(0,Math.min(n.length,i-1-n.index)),t.setSelection(n)}},e.prototype.setEditorTabIndex=function(t,n){var i,o;!((o=(i=t)===null||i===void 0?void 0:i.scroll)===null||o===void 0)&&o.domNode&&(t.scroll.domNode.tabIndex=n)},e.prototype.setEditorReadOnly=function(t,n){n?t.disable():t.enable()},e.prototype.makeUnprivilegedEditor=function(t){var n=t;return{getHTML:function(){return n.root.innerHTML},getLength:n.getLength.bind(n),getText:n.getText.bind(n),getContents:n.getContents.bind(n),getSelection:n.getSelection.bind(n),getBounds:n.getBounds.bind(n)}},e.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var t=JU.default.findDOMNode(this.editingArea);if(!t)throw new Error("Cannot find element for editing area");if(t.nodeType===3)throw new Error("Editing area cannot be a text node");return t},e.prototype.renderEditingArea=function(){var t=this,n=this.props,i=n.children,o=n.preserveWhitespace,s=this.state.generation,l={key:s,ref:function(a){t.editingArea=a}};return er.default.Children.count(i)?er.default.cloneElement(er.default.Children.only(i),l):o?er.default.createElement("pre",ma({},l)):er.default.createElement("div",ma({},l))},e.prototype.render=function(){var t;return er.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(t=this.props.className,t??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},e.prototype.onEditorChangeText=function(t,n,i,o){var s,l;if(this.editor){var a=this.isDelta(this.value)?o.getContents():o.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=n,this.value=a,(l=(s=this.props).onChange)===null||l===void 0||l.call(s,t,n,i,o))}},e.prototype.onEditorChangeSelection=function(t,n,i){var o,s,l,a,f,c;if(this.editor){var u=this.getEditorSelection(),d=!u&&t,h=u&&!t;$o.default(t,u)||(this.selection=t,(s=(o=this.props).onChangeSelection)===null||s===void 0||s.call(o,t,n,i),d?(a=(l=this.props).onFocus)===null||a===void 0||a.call(l,t,n,i):h&&((c=(f=this.props).onBlur)===null||c===void 0||c.call(f,u,n,i)))}},e.prototype.focus=function(){this.editor&&this.editor.focus()},e.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},e.displayName="React Quill",e.Quill=Jb.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(er.default.Component);function ey(r){Promise.resolve().then(r)}var t2=e2;const n2=oc(t2),r2=ae.styled(ae.Box)(({theme:r})=>({overflow:"hidden",position:"relative",borderRadius:r.shape.borderRadius,border:`solid 1px ${ae.alpha(r.palette.grey[500],.32)}`,"& .ql-container.ql-snow":{borderColor:"transparent",...r.typography.body1,fontFamily:r.typography.fontFamily},"& .ql-editor":{minHeight:200,maxHeight:640,"&.ql-blank::before":{fontStyle:"normal",color:r.palette.text.disabled},"& pre.ql-syntax":{...r.typography.body2,padding:r.spacing(2),borderRadius:r.shape.borderRadius,backgroundColor:r.palette.grey[900]}}})),i2=ae.styled("div")(({theme:r})=>{const e=r.direction==="rtl";return{"& .ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button:focus .ql-fill, .ql-snow .ql-toolbar button:focus .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill, .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill":{fill:r.palette.primary.main},"& .ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected":{color:r.palette.primary.main},"& .ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button:focus .ql-stroke, .ql-snow .ql-toolbar button:focus .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-toolbar button.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke, .ql-snow.ql-toolbar button:hover .ql-stroke-miter, .ql-snow .ql-toolbar button:hover .ql-stroke-miter, .ql-snow.ql-toolbar button:focus .ql-stroke-miter, .ql-snow .ql-toolbar button:focus .ql-stroke-miter, .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter, .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter, .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter":{stroke:r.palette.primary.main},"& .ql-stroke":{stroke:r.palette.text.primary},"& .ql-fill, .ql-stroke.ql-fill":{fill:r.palette.text.primary},"& .ql-picker, .ql-picker-options, .ql-picker-item, .ql-picker-label, button":{"&:focus":{outline:"none"}},"& .ql-toolbar.ql-snow":{border:"none",borderBottom:`solid 1px ${ae.alpha(r.palette.grey[500],.32)}`,"& .ql-formats":{"&:not(:last-of-type)":{marginRight:r.spacing(2)}},"& button":{padding:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:4,color:r.palette.text.primary},"& button svg, span svg":{width:20,height:20},"& .ql-picker-label":{...r.typography.subtitle2,color:r.palette.text.primary,"& .ql-stroke":{stroke:r.palette.text.primary}},"& .ql-picker-label svg":{...e&&{right:"0 !important",left:"auto !important"}},"& .ql-color,& .ql-background,& .ql-align ":{"& .ql-picker-label":{padding:0,display:"flex",alignItems:"center",justifyContent:"center"}},"& .ql-expanded":{"& .ql-picker-label":{borderRadius:4,color:r.palette.text.disabled,borderColor:"transparent !important",backgroundColor:r.palette.action.focus,"& .ql-stroke":{stroke:r.palette.text.disabled}},"& .ql-picker-options":{padding:0,marginTop:4,border:"none",maxHeight:200,overflow:"auto",boxShadow:r.customShadows.z20,borderRadius:r.shape.borderRadius,backgroundColor:r.palette.background.paper},"& .ql-picker-item":{color:r.palette.text.primary},"&.ql-align":{"& .ql-picker-options":{padding:0,display:"flex"},"& .ql-picker-item":{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"}},"&.ql-color, &.ql-background":{"& .ql-picker-options":{padding:8},"& .ql-picker-item":{margin:3,borderRadius:4,"&.ql-selected":{border:"solid 1px black"}}},"&.ql-font, &.ql-size, &.ql-header":{"& .ql-picker-options":{padding:r.spacing(1,0)},"& .ql-picker-item":{padding:r.spacing(.5,1.5)}}}}}}),o2=["Título 1","Título 2","Título 3","Título 4","Título 5","Título 6"],s2=["align","background","blockquote","bold","bullet","code","code-block","color","direction","font","formula","header","image","indent","italic","link","list","script","size","strike","table","underline","video"],a2=({id:r,isSimple:e,...t})=>K.jsx(i2,{...t,children:K.jsxs("div",{id:r,children:[K.jsx("div",{className:"ql-formats",children:K.jsxs("select",{className:"ql-header",defaultValue:"",children:[o2.map((n,i)=>K.jsx("option",{value:i+1,children:n},n)),K.jsx("option",{value:"",children:"Normal"})]})}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-bold"}),K.jsx("button",{type:"button",className:"ql-italic"}),K.jsx("button",{type:"button",className:"ql-underline"}),K.jsx("button",{type:"button",className:"ql-strike"})]}),!e&&K.jsxs("div",{className:"ql-formats",children:[K.jsx("select",{className:"ql-color"}),K.jsx("select",{className:"ql-background"})]}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-list",value:"ordered"}),K.jsx("button",{type:"button",className:"ql-list",value:"bullet"}),!e&&K.jsx("button",{type:"button",className:"ql-indent",value:"-1"}),!e&&K.jsx("button",{type:"button",className:"ql-indent",value:"+1"})]}),!e&&K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-script",value:"super"}),K.jsx("button",{type:"button",className:"ql-script",value:"sub"})]}),!e&&K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-code-block"}),K.jsx("button",{type:"button",className:"ql-blockquote"})]}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-direction",value:"rtl"}),K.jsx("select",{className:"ql-align"})]}),K.jsxs("div",{className:"ql-formats",children:[K.jsx("button",{type:"button",className:"ql-link"}),K.jsx("button",{type:"button",className:"ql-image"}),K.jsx("button",{type:"button",className:"ql-video"})]}),K.jsxs("div",{className:"ql-formats",children:[!e&&K.jsx("button",{type:"button",className:"ql-formula"}),K.jsx("button",{type:"button",className:"ql-clean"})]})]})}),ty=({id:r="minimal-quill",error:e,value:t,onChange:n,simple:i=!1,helperText:o,sx:s,...l})=>{const a={toolbar:{container:`#${r}`},history:{delay:500,maxStack:100,userOnly:!0},syntax:!0,clipboard:{matchVisual:!1}};return K.jsxs(ae.Stack,{children:[K.jsxs(r2,{sx:{...e&&{border:f=>`solid 1px ${f.palette.error.main}`},...s},children:[K.jsx(a2,{id:r,isSimple:i}),K.jsx(n2,{value:t,onChange:n,modules:a,formats:s2,placeholder:"Write something awesome...",...l})]}),o&&K.jsx(ae.FormHelperText,{error:!!e,sx:{px:2},children:o})]})},l2=({name:r,helperText:e,rules:t,...n})=>{const{control:i}=un.useFormContext();return K.jsx(un.Controller,{name:r,control:i,rules:t,render:({field:{name:o,onBlur:s,onChange:l,value:a},fieldState:{error:f}})=>K.jsx(ty,{id:`quill${o}`,onBlur:s,onChange:(c,u,d,h)=>l(h.getLength()===1?"":c),value:a,error:!!f,helperText:(f==null?void 0:f.message)||e,...n})})},c2=ae.styled(Ke.Label)(({theme:r})=>({backgroundColor:`${ae.alpha(r.palette.grey[400],.2)}`,cursor:"pointer"})),u2=ae.styled(Ke.Scrollbar)(()=>({maxHeight:"260px"})),d2=({items:r})=>{const{setValue:e,getValues:t}=un.useFormContext(),[n,i]=Me.useState(-1),[o,s]=Me.useState(""),l=Object.fromEntries(r.map((m,_)=>[_,[]])),[a,f]=Me.useState(l);Me.useEffect(()=>()=>{e("config",{})},[]);const c=(m,_)=>{i(_?m:-1),_&&u()},u=()=>{s("")},d=(m,_,v)=>{const C=v.target.checked?[...a[n],_]:a[n].filter(b=>b!==_);f({...a,[n]:C}),g(m,C)},h=m=>{s(m)},p=()=>{const _=r[n].list.every(v=>a[n].includes(v.value))?[]:[...r[n].list.map(v=>v.value)];f({...a,[n]:_}),g(r[n].name,_)},g=(m,_)=>{const v={},C=t("config"),b=r[n];if(b){const E=b.list.filter(S=>a[n].includes(S.value)).map(S=>S.value);v[b.name]={type:"FIELD",values:b.name===m?_:E},e("config",{...C,...v})}};return K.jsx(K.Fragment,{children:r.map((m,_)=>K.jsxs(ae.Accordion,{expanded:n===_,onChange:(v,C)=>c(_,C),children:[K.jsx(ae.AccordionSummary,{expandIcon:K.jsx(Ke.Icon,{icon:"CHEVRON_UP"}),id:`${_}`,children:K.jsxs(ae.Stack,{alignItems:"center",direction:"row",children:[K.jsx(ae.Typography,{variant:"subtitle2",color:"grey.600",children:m.label}),K.jsxs(c2,{variant:"soft",color:"primary",marginLeft:1,children:[a[_].length," selecionados"]})]})}),K.jsxs(ae.AccordionDetails,{children:[K.jsxs(ae.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",gap:1,children:[K.jsx(Ke.SearchInput,{onSearch:h,onChange:v=>h(v.target.value),iconPosition:"start",size:"small",placeholder:"Buscar",value:o,fullWidth:!0}),K.jsx(ae.Button,{onClick:()=>p(),size:"small",children:K.jsx(ae.Typography,{variant:"overline",children:"TODOS"})})]}),K.jsx(u2,{children:K.jsx(ae.List,{children:n>-1&&(m.list.filter(v=>v.label.toLowerCase().includes(o.toLowerCase())).map((v,C)=>K.jsx(ae.ListItem,{children:K.jsx(ae.FormControlLabel,{control:K.jsx(ae.Checkbox,{size:"small",checked:a[n].includes(v.value),onChange:b=>d(m.name,v.value,b),name:v.label}),label:K.jsx(ae.Typography,{variant:"caption",color:"grey.600",children:v.label})})},C)).length===0?K.jsx(Ke.EmptyView,{sx:{svg:{height:100}},text:"Nenhum registro para ser apresentado"}):m.list.filter(v=>v.label.toLowerCase().includes(o.toLowerCase())).map((v,C)=>K.jsx(ae.ListItem,{children:K.jsx(ae.FormControlLabel,{control:K.jsx(ae.Checkbox,{size:"small",checked:a[n].includes(v.value),onChange:b=>d(m.name,v.value,b),name:v.label}),label:K.jsx(ae.Typography,{variant:"caption",color:"grey.600",children:v.label})})},C)))})})]})]},_))})},f2=({columns:r,rows:e,loading:t,fetching:n,totalRows:i,handlePaginationChange:o})=>{const{setValue:s}=un.useFormContext(),{apiRef:l,page:a,perPage:f}=Ke.useDatagrid();Me.useEffect(()=>()=>{s("config",{})},[]);const[c,u]=Me.useState([]),[d,h]=Me.useState(),p=m=>{u(m),s("config.products",{type:"FIELD",values:m})},g=()=>{const m=d==null?void 0:d.toLowerCase();return e.filter(_=>Object.values(_).some(v=>typeof v=="string"||v instanceof String?v.toLowerCase().includes(m||""):!1))};return K.jsxs(ae.Stack,{gap:2,children:[K.jsxs(ae.Stack,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[K.jsx(Ke.SearchInput,{onSearch:m=>h(m),onChange:m=>h(m.target.value),iconPosition:"start",size:"small",placeholder:"Buscar"}),K.jsxs(ae.Typography,{variant:"body1",color:"text.disabled",children:[c.length," selecionados"]})]}),K.jsx(Ke.DataGrid,{apiRef:l,columns:r,rows:g(),pagination:!0,paginationModel:{page:a,pageSize:f},rowCount:i,paginationMode:"server",onPaginationModelChange:o,initialState:{pagination:{paginationModel:{pageSize:5,page:a}}},loading:t,fetching:n,checkboxSelection:!0,onRowSelectionModelChange:p})]})},h2=en(ae.ToggleButton)(({theme:r})=>({width:"100%","&.Mui-selected":{backgroundColor:r.palette.primary.main,color:r.palette.common.white,"&:hover":{backgroundColor:r.palette.primary.main}}})),p2=en(ae.ToggleButtonGroup)(()=>({display:"flex",justifyContent:"space-between"})),g2=({rules:r,setRuleType:e})=>{const[t,n]=Me.useState(),{setValue:i,watch:o}=un.useFormContext();o("name"),Me.useEffect(()=>{if(r&&r.length>0&&(n(r[0].value),e))return e(r[0].value)},[]),Me.useEffect(()=>()=>{i("config",{})},[]);const s=(l,a)=>{if(a!==null&&(n(a),e))return e(a)};return K.jsxs(ae.Stack,{gap:2,children:[K.jsx(Ke.Field,{name:"name",label:"Nome da regra",required:!0,rules:{required:{value:!0,message:"Nome da regra é obrigatório"}}}),K.jsx(ae.Typography,{color:"grey.500",variant:"overline",children:"Selecione a regra"}),r&&K.jsx(p2,{color:"primary",value:t,size:"small",exclusive:!0,onChange:s,children:r.map((l,a)=>K.jsx(h2,{value:l.value,size:"small",color:"primary",children:K.jsx(ae.Typography,{variant:"body2",children:l.toggleTitle})},a))}),r&&r.map((l,a)=>l.value===t?K.jsx("div",{children:l.component},a):null)]})};function ny(r,e){if(!e||!r)return"";const n=r.map(i=>{if(!i.operator||!i.conditionals)return"";const s=i.conditionals.map(l=>{if(!l.field||!l.conditional)return"";let a="";if(l.type==="value")if(l.conditional==="IS NOT NULL"||l.conditional==="IS NULL")a=`this.${l.field} ${l.conditional}`;else if(l.conditional==="LIKE"||l.conditional==="NOT LIKE")a=`this.${l.field} ${l.conditional} '%${l.value}%'`;else if(l.conditional==="IN"||l.conditional==="NOT IN"){const f=l.value.split(",").map(c=>`'${c.trim()}'`).join(", ");a=`this.${l.field} ${l.conditional} (${f})`}else a=`this.${l.field} ${l.conditional} '${l.value}'`;else l.type==="field"&&(a=`this.${l.field} ${l.conditional} this.${l.value}`);return a}).join(` ${i.operator.toUpperCase()} `);return r.length>1?`(${s})`:s}).join(` ${e.toUpperCase()} `);return n||""}var ry={exports:{}};(function(r,e){(function(){var t="ace",n=function(){return this}();!n&&typeof window<"u"&&(n=window);var i=function(c,u,d){if(typeof c!="string"){i.original?i.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(d=u),i.modules[c]||(i.payloads[c]=d,i.modules[c]=null)};i.modules={},i.payloads={};var o=function(c,u,d){if(typeof u=="string"){var h=a(c,u);if(h!=null)return d&&d(),h}else if(Object.prototype.toString.call(u)==="[object Array]"){for(var p=[],g=0,m=u.length;g<m;++g){var _=a(c,u[g]);if(_==null&&s.original)return;p.push(_)}return d&&d.apply(null,p)||!0}},s=function(c,u){var d=o("",c,u);return d==null&&s.original?s.original.apply(this,arguments):d},l=function(c,u){if(u.indexOf("!")!==-1){var d=u.split("!");return l(c,d[0])+"!"+l(c,d[1])}if(u.charAt(0)=="."){var h=c.split("/").slice(0,-1).join("/");for(u=h+"/"+u;u.indexOf(".")!==-1&&p!=u;){var p=u;u=u.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return u},a=function(c,u){u=l(c,u);var d=i.modules[u];if(!d){if(d=i.payloads[u],typeof d=="function"){var h={},p={id:u,uri:"",exports:h,packaged:!0},g=function(_,v){return o(u,_,v)},m=d(g,h,p);h=m||p.exports,i.modules[u]=h,delete i.payloads[u]}d=i.modules[u]=h||d}return d};function f(c){var u=n;n[c]||(n[c]={}),u=n[c],(!u.define||!u.define.packaged)&&(i.original=u.define,u.define=i,u.define.packaged=!0),(!u.require||!u.require.packaged)&&(s.original=u.require,u.require=s,u.require.packaged=!0)}f(t)})(),ace.define("ace/lib/es6-shim",["require","exports","module"],function(t,n,i){function o(s,l,a){Object.defineProperty(s,l,{value:a,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||o(String.prototype,"startsWith",function(s,l){return l=l||0,this.lastIndexOf(s,l)===l}),String.prototype.endsWith||o(String.prototype,"endsWith",function(s,l){var a=this;(l===void 0||l>a.length)&&(l=a.length),l-=s.length;var f=a.indexOf(s,l);return f!==-1&&f===l}),String.prototype.repeat||o(String.prototype,"repeat",function(s){for(var l="",a=this;s>0;)s&1&&(l+=a),(s>>=1)&&(a+=a);return l}),String.prototype.includes||o(String.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Object.assign||(Object.assign=function(s){if(s==null)throw new TypeError("Cannot convert undefined or null to object");for(var l=Object(s),a=1;a<arguments.length;a++){var f=arguments[a];f!=null&&Object.keys(f).forEach(function(c){l[c]=f[c]})}return l}),Object.values||(Object.values=function(s){return Object.keys(s).map(function(l){return s[l]})}),Array.prototype.find||o(Array.prototype,"find",function(s){for(var l=this.length,a=arguments[1],f=0;f<l;f++){var c=this[f];if(s.call(a,c,f,this))return c}}),Array.prototype.findIndex||o(Array.prototype,"findIndex",function(s){for(var l=this.length,a=arguments[1],f=0;f<l;f++){var c=this[f];if(s.call(a,c,f,this))return f}}),Array.prototype.includes||o(Array.prototype,"includes",function(s,l){return this.indexOf(s,l)!=-1}),Array.prototype.fill||o(Array.prototype,"fill",function(s){for(var l=this,a=l.length>>>0,f=arguments[1],c=f>>0,u=c<0?Math.max(a+c,0):Math.min(c,a),d=arguments[2],h=d===void 0?a:d>>0,p=h<0?Math.max(a+h,0):Math.min(h,a);u<p;)l[u]=s,u++;return l}),Array.of||o(Array,"of",function(){return Array.prototype.slice.call(arguments)})}),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],function(t,n,i){t("./es6-shim")}),ace.define("ace/lib/deep_copy",["require","exports","module"],function(t,n,i){n.deepCopy=function o(s){if(typeof s!="object"||!s)return s;var l;if(Array.isArray(s)){l=[];for(var a=0;a<s.length;a++)l[a]=o(s[a]);return l}if(Object.prototype.toString.call(s)!=="[object Object]")return s;l={};for(var a in s)l[a]=o(s[a]);return l}}),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],function(t,n,i){n.last=function(l){return l[l.length-1]},n.stringReverse=function(l){return l.split("").reverse().join("")},n.stringRepeat=function(l,a){for(var f="";a>0;)a&1&&(f+=l),(a>>=1)&&(l+=l);return f};var o=/^\s\s*/,s=/\s\s*$/;n.stringTrimLeft=function(l){return l.replace(o,"")},n.stringTrimRight=function(l){return l.replace(s,"")},n.copyObject=function(l){var a={};for(var f in l)a[f]=l[f];return a},n.copyArray=function(l){for(var a=[],f=0,c=l.length;f<c;f++)l[f]&&typeof l[f]=="object"?a[f]=this.copyObject(l[f]):a[f]=l[f];return a},n.deepCopy=t("./deep_copy").deepCopy,n.arrayToMap=function(l){for(var a={},f=0;f<l.length;f++)a[l[f]]=1;return a},n.createMap=function(l){var a=Object.create(null);for(var f in l)a[f]=l[f];return a},n.arrayRemove=function(l,a){for(var f=0;f<=l.length;f++)a===l[f]&&l.splice(f,1)},n.escapeRegExp=function(l){return l.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},n.escapeHTML=function(l){return(""+l).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},n.getMatchOffsets=function(l,a){var f=[];return l.replace(a,function(c){f.push({offset:arguments[arguments.length-2],length:c.length})}),f},n.deferredCall=function(l){var a=null,f=function(){a=null,l()},c=function(u){return c.cancel(),a=setTimeout(f,u||0),c};return c.schedule=c,c.call=function(){return this.cancel(),l(),c},c.cancel=function(){return clearTimeout(a),a=null,c},c.isPending=function(){return a},c},n.delayedCall=function(l,a){var f=null,c=function(){f=null,l()},u=function(d){f==null&&(f=setTimeout(c,d||a))};return u.delay=function(d){f&&clearTimeout(f),f=setTimeout(c,d||a)},u.schedule=u,u.call=function(){this.cancel(),l()},u.cancel=function(){f&&clearTimeout(f),f=null},u.isPending=function(){return f},u},n.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch{return!1}return!0},n.skipEmptyMatch=function(l,a,f){return f&&l.codePointAt(a)>65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(t,n,i){n.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},n.getOS=function(){return n.isMac?n.OS.MAC:n.isLinux?n.OS.LINUX:n.OS.WINDOWS};var o=typeof navigator=="object"?navigator:{},s=(/mac|win|linux/i.exec(o.platform)||["other"])[0].toLowerCase(),l=o.userAgent||"",a=o.appName||"";n.isWin=s=="win",n.isMac=s=="mac",n.isLinux=s=="linux",n.isIE=a=="Microsoft Internet Explorer"||a.indexOf("MSAppHost")>=0?parseFloat((l.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((l.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),n.isOldIE=n.isIE&&n.isIE<9,n.isGecko=n.isMozilla=l.match(/ Gecko\/\d+/),n.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",n.isWebKit=parseFloat(l.split("WebKit/")[1])||void 0,n.isChrome=parseFloat(l.split(" Chrome/")[1])||void 0,n.isSafari=parseFloat(l.split(" Safari/")[1])&&!n.isChrome||void 0,n.isEdge=parseFloat(l.split(" Edge/")[1])||void 0,n.isAIR=l.indexOf("AdobeAIR")>=0,n.isAndroid=l.indexOf("Android")>=0,n.isChromeOS=l.indexOf(" CrOS ")>=0,n.isIOS=/iPad|iPhone|iPod/.test(l)&&!window.MSStream,n.isIOS&&(n.isMac=!0),n.isMobile=n.isIOS||n.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(t,n,i){var o=t("./useragent"),s="http://www.w3.org/1999/xhtml";n.buildDom=function d(h,p,g){if(typeof h=="string"&&h){var m=document.createTextNode(h);return p&&p.appendChild(m),m}if(!Array.isArray(h))return h&&h.appendChild&&p&&p.appendChild(h),h;if(typeof h[0]!="string"||!h[0]){for(var _=[],v=0;v<h.length;v++){var C=d(h[v],p,g);C&&_.push(C)}return _}var b=document.createElement(h[0]),E=h[1],S=1;E&&typeof E=="object"&&!Array.isArray(E)&&(S=2);for(var v=S;v<h.length;v++)d(h[v],b,g);return S==2&&Object.keys(E).forEach(function(T){var y=E[T];T==="class"?b.className=Array.isArray(y)?y.join(" "):y:typeof y=="function"||T=="value"||T[0]=="$"?b[T]=y:T==="ref"?g&&(g[y]=b):T==="style"?typeof y=="string"&&(b.style.cssText=y):y!=null&&b.setAttribute(T,y)}),p&&p.appendChild(b),b},n.getDocumentHead=function(d){return d||(d=document),d.head||d.getElementsByTagName("head")[0]||d.documentElement},n.createElement=function(d,h){return document.createElementNS?document.createElementNS(h||s,d):document.createElement(d)},n.removeChildren=function(d){d.innerHTML=""},n.createTextNode=function(d,h){var p=h?h.ownerDocument:document;return p.createTextNode(d)},n.createFragment=function(d){var h=d?d.ownerDocument:document;return h.createDocumentFragment()},n.hasCssClass=function(d,h){var p=(d.className+"").split(/\s+/g);return p.indexOf(h)!==-1},n.addCssClass=function(d,h){n.hasCssClass(d,h)||(d.className+=" "+h)},n.removeCssClass=function(d,h){for(var p=d.className.split(/\s+/g);;){var g=p.indexOf(h);if(g==-1)break;p.splice(g,1)}d.className=p.join(" ")},n.toggleCssClass=function(d,h){for(var p=d.className.split(/\s+/g),g=!0;;){var m=p.indexOf(h);if(m==-1)break;g=!1,p.splice(m,1)}return g&&p.push(h),d.className=p.join(" "),g},n.setCssClass=function(d,h,p){p?n.addCssClass(d,h):n.removeCssClass(d,h)},n.hasCssString=function(d,h){var p=0,g;if(h=h||document,g=h.querySelectorAll("style")){for(;p<g.length;)if(g[p++].id===d)return!0}},n.removeElementById=function(d,h){h=h||document,h.getElementById(d)&&h.getElementById(d).remove()};var l,a=[];n.useStrictCSP=function(d){l=d,d==!1?f():a||(a=[])};function f(){var d=a;a=null,d&&d.forEach(function(h){c(h[0],h[1])})}function c(d,h,p){if(!(typeof document>"u")){if(a){if(p)f();else if(p===!1)return a.push([d,h])}if(!l){var g=p;!p||!p.getRootNode?g=document:(g=p.getRootNode(),(!g||g==p)&&(g=document));var m=g.ownerDocument||g;if(h&&n.hasCssString(h,g))return null;h&&(d+=`
147
147
  /*# sourceURL=ace/css/`+h+" */");var _=n.createElement("style");_.appendChild(m.createTextNode(d)),h&&(_.id=h),g==m&&(g=n.getDocumentHead(m)),g.insertBefore(_,g.firstChild)}}}if(n.importCssString=c,n.importCssStylsheet=function(d,h){n.buildDom(["link",{rel:"stylesheet",href:d}],n.getDocumentHead(h))},n.scrollbarWidth=function(d){var h=n.createElement("ace_inner");h.style.width="100%",h.style.minWidth="0px",h.style.height="200px",h.style.display="block";var p=n.createElement("ace_outer"),g=p.style;g.position="absolute",g.left="-10000px",g.overflow="hidden",g.width="200px",g.minWidth="0px",g.height="150px",g.display="block",p.appendChild(h);var m=d&&d.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(p);var _=h.offsetWidth;g.overflow="scroll";var v=h.offsetWidth;return _===v&&(v=p.clientWidth),m.removeChild(p),_-v},n.computedStyle=function(d,h){return window.getComputedStyle(d,"")||{}},n.setStyle=function(d,h,p){d[h]!==p&&(d[h]=p)},n.HAS_CSS_ANIMATION=!1,n.HAS_CSS_TRANSFORMS=!1,n.HI_DPI=o.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,o.isChromeOS&&(n.HI_DPI=!1),typeof document<"u"){var u=document.createElement("div");n.HI_DPI&&u.style.transform!==void 0&&(n.HAS_CSS_TRANSFORMS=!0),!o.isEdge&&typeof u.style.animationName<"u"&&(n.HAS_CSS_ANIMATION=!0),u=null}n.HAS_CSS_TRANSFORMS?n.translate=function(d,h,p){d.style.transform="translate("+Math.round(h)+"px, "+Math.round(p)+"px)"}:n.translate=function(d,h,p){d.style.top=Math.round(p)+"px",d.style.left=Math.round(h)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(t,n,i){/*
148
148
  * based on code from:
149
149
  *
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@zydon/common-csr",
3
3
  "description": "Zydon common resources for React projects (only Client-Side Rendering (CSR))",
4
4
  "private": false,
5
- "version": "1.1.8",
5
+ "version": "1.1.10",
6
6
  "type": "module",
7
7
  "scripts": {
8
8
  "dev": "vite",