@bigbinary/neeto-editor 1.22.0 → 1.22.1

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -39,5 +39,5 @@ return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=i.create(
39
39
  * Released under MIT license <https://lodash.com/license>
40
40
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
41
41
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
42
- */!function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,f=1,m=2,g=1,b=2,y=4,v=8,w=16,_=32,x=64,k=128,E=256,M=512,C=30,D="...",S=800,A=16,N=1,O=2,T=3,I=1/0,L=9007199254740991,j=17976931348623157e292,R=0/0,z=4294967295,F=z-1,P=z>>>1,B=[["ary",k],["bind",g],["bindKey",b],["curry",v],["curryRight",w],["flip",M],["partial",_],["partialRight",x],["rearg",E]],U="[object Arguments]",H="[object Array]",$="[object AsyncFunction]",V="[object Boolean]",W="[object Date]",q="[object DOMException]",K="[object Error]",G="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",se="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Me=RegExp(ke.source),Ce=RegExp(Ee.source),De=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),je=/^\s+/,Re=/\s/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Xe="\\ud800-\\udfff",et="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",it="\\ufe0e\\ufe0f",ot="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",st="['’]",at="["+Xe+"]",lt="["+ot+"]",ct="["+et+"]",ut="\\d+",dt="["+tt+"]",pt="["+nt+"]",ht="[^"+Xe+ot+ut+tt+nt+rt+"]",ft="\\ud83c[\\udffb-\\udfff]",mt="[^"+Xe+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",vt="\\u200d",wt="(?:"+pt+"|"+ht+")",_t="(?:"+yt+"|"+ht+")",xt="(?:"+st+"(?:d|ll|m|re|s|t|ve))?",kt="(?:"+st+"(?:D|LL|M|RE|S|T|VE))?",Et="(?:"+ct+"|"+ft+")"+"?",Mt="["+it+"]?",Ct=Mt+Et+("(?:"+vt+"(?:"+[mt,gt,bt].join("|")+")"+Mt+Et+")*"),Dt="(?:"+[dt,gt,bt].join("|")+")"+Ct,St="(?:"+[mt+ct+"?",ct,gt,bt,at].join("|")+")",At=RegExp(st,"g"),Nt=RegExp(ct,"g"),Ot=RegExp(ft+"(?="+ft+")|"+St+Ct,"g"),Tt=RegExp([yt+"?"+pt+"+"+xt+"(?="+[lt,yt,"$"].join("|")+")",_t+"+"+kt+"(?="+[lt,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+xt,yt+"+"+kt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ut,Dt].join("|"),"g"),It=RegExp("["+vt+Xe+et+it+"]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,zt={};zt[de]=zt[pe]=zt[he]=zt[fe]=zt[me]=zt[ge]=zt[be]=zt[ye]=zt[ve]=!0,zt[U]=zt[H]=zt[ce]=zt[V]=zt[ue]=zt[W]=zt[K]=zt[G]=zt[Q]=zt[J]=zt[X]=zt[ne]=zt[re]=zt[ie]=zt[ae]=!1;var Ft={};Ft[U]=Ft[H]=Ft[ce]=Ft[ue]=Ft[V]=Ft[W]=Ft[de]=Ft[pe]=Ft[he]=Ft[fe]=Ft[me]=Ft[Q]=Ft[J]=Ft[X]=Ft[ne]=Ft[re]=Ft[ie]=Ft[oe]=Ft[ge]=Ft[be]=Ft[ye]=Ft[ve]=!0,Ft[K]=Ft[G]=Ft[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Ut=parseInt,Ht="object"==typeof Mi&&Mi&&Mi.Object===Object&&Mi,$t="object"==typeof self&&self&&self.Object===Object&&self,Vt=Ht||$t||Function("return this")(),Wt=t&&!t.nodeType&&t,qt=Wt&&"object"=="object"&&e&&!e.nodeType&&e,Kt=qt&&qt.exports===Wt,Gt=Kt&&Ht.process,Yt=function(){try{var e=qt&&qt.require&&qt.require("util").types;return e||Gt&&Gt.binding&&Gt.binding("util")}catch(e){}}(),Qt=Yt&&Yt.isArrayBuffer,Jt=Yt&&Yt.isDate,Zt=Yt&&Yt.isMap,Xt=Yt&&Yt.isRegExp,en=Yt&&Yt.isSet,tn=Yt&&Yt.isTypedArray;function nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rn(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function on(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function sn(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ln(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function cn(e,t){return!!(null==e?0:e.length)&&vn(e,t,0)>-1}function un(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function dn(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function hn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function fn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function mn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var gn=kn("length");function bn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function yn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function vn(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):yn(e,_n,n)}function wn(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function _n(e){return e!=e}function xn(e,t){var n=null==e?0:e.length;return n?Cn(e,t)/n:R}function kn(e){return function(t){return null==t?n:t[e]}}function En(e){return function(t){return null==e?n:e[t]}}function Mn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Cn(e,t){for(var r,i=-1,o=e.length;++i<o;){var s=t(e[i]);s!==n&&(r=r===n?s:r+s)}return r}function Dn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Sn(e){return e?e.slice(0,qn(e)+1).replace(je,""):e}function An(e){return function(t){return e(t)}}function Nn(e,t){return dn(t,(function(t){return e[t]}))}function On(e,t){return e.has(t)}function Tn(e,t){for(var n=-1,r=e.length;++n<r&&vn(t,e[n],0)>-1;);return n}function In(e,t){for(var n=e.length;n--&&vn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var jn=En({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Rn=En({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function zn(e){return"\\"+Pt[e]}function Fn(e){return It.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bn(e,t){return function(n){return e(t(n))}}function Un(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[i++]=n)}return o}function Hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vn(e){return Fn(e)?function(e){var t=Ot.lastIndex=0;for(;Ot.test(e);)++t;return t}(e):gn(e)}function Wn(e){return Fn(e)?function(e){return e.match(Ot)||[]}(e):function(e){return e.split("")}(e)}function qn(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Kn=En({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gn=function e(t){var Re,Xe=(t=null==t?Vt:Gn.defaults(Vt.Object(),t,Gn.pick(Vt,jt))).Array,et=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Xe.prototype,ct=nt.prototype,ut=it.prototype,dt=t["__core-js_shared__"],pt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(Re=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+Re:"",gt=ut.toString,bt=pt.call(it),yt=Vt._,vt=ot("^"+pt.call(ht).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Kt?t.Buffer:n,_t=t.Symbol,xt=t.Uint8Array,kt=wt?wt.allocUnsafe:n,Et=Bn(it.getPrototypeOf,it),Mt=it.create,Ct=ut.propertyIsEnumerable,Dt=lt.splice,St=_t?_t.isConcatSpreadable:n,Ot=_t?_t.iterator:n,It=_t?_t.toStringTag:n,Pt=function(){try{var e=Wo(it,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ht=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==Vt.Date.now&&et.now,Wt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,qt=rt.ceil,Gt=rt.floor,Yt=it.getOwnPropertySymbols,gn=wt?wt.isBuffer:n,En=t.isFinite,Yn=lt.join,Qn=Bn(it.keys,it),Jn=rt.max,Zn=rt.min,Xn=et.now,er=t.parseInt,tr=rt.random,nr=lt.reverse,rr=Wo(t,"DataView"),ir=Wo(t,"Map"),or=Wo(t,"Promise"),sr=Wo(t,"Set"),ar=Wo(t,"WeakMap"),lr=Wo(it,"create"),cr=ar&&new ar,ur={},dr=ys(rr),pr=ys(ir),hr=ys(or),fr=ys(sr),mr=ys(ar),gr=_t?_t.prototype:n,br=gr?gr.valueOf:n,yr=gr?gr.toString:n;function vr(e){if(ja(e)&&!Ea(e)&&!(e instanceof kr)){if(e instanceof xr)return e;if(ht.call(e,"__wrapped__"))return vs(e)}return new xr(e)}var wr=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function xr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function kr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function Er(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Cr;++t<n;)this.add(e[t])}function Sr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Ar(e,t){var n=Ea(e),r=!n&&ka(e),i=!n&&!r&&Sa(e),o=!n&&!r&&!i&&$a(e),s=n||r||i||o,a=s?Dn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zo(c,l))||a.push(c);return a}function Nr(e){var t=e.length;return t?e[Di(0,t-1)]:n}function Or(e,t){return ms(lo(e),Br(t,0,e.length))}function Tr(e){return ms(lo(e))}function Ir(e,t,r){(r!==n&&!wa(e[t],r)||r===n&&!(t in e))&&Fr(e,t,r)}function Lr(e,t,r){var i=e[t];ht.call(e,t)&&wa(i,r)&&(r!==n||t in e)||Fr(e,t,r)}function jr(e,t){for(var n=e.length;n--;)if(wa(e[n][0],t))return n;return-1}function Rr(e,t,n,r){return Wr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function zr(e,t){return e&&co(t,dl(t),e)}function Fr(e,t,n){"__proto__"==t&&Pt?Pt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Pr(e,t){for(var r=-1,i=t.length,o=Xe(i),s=null==e;++r<i;)o[r]=s?n:sl(e,t[r]);return o}function Br(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Ur(e,t,r,i,o,s){var a,l=t&d,c=t&p,u=t&h;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!La(e))return e;var f=Ea(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==G||m==Y;if(Sa(e))return no(e,l);if(m==X||m==U||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,pl(t),e)}(a,e)):function(e,t){return co(e,qo(e),t)}(e,zr(a,e))}else{if(!Ft[m])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case ce:return ro(e);case V:case W:return new r(+e);case ue:return function(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case pe:case he:case fe:case me:case ge:case be:case ye:case ve:return io(e,n);case Q:return new r;case J:case ie:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,Ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case oe:return i=e,br?it(br.call(i)):{}}var i}(e,m,l)}}s||(s=new Sr);var b=s.get(e);if(b)return b;s.set(e,a),Ba(e)?e.forEach((function(n){a.add(Ur(n,t,r,n,e,s))})):Ra(e)&&e.forEach((function(n,i){a.set(i,Ur(n,t,r,i,e,s))}));var y=f?n:(u?c?Fo:zo:c?pl:dl)(e);return on(y||e,(function(n,i){y&&(n=e[i=n]),Lr(a,i,Ur(n,t,r,i,e,s))})),a}function Hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=it(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $r(e,t,r){if("function"!=typeof e)throw new at(s);return ds((function(){e.apply(n,r)}),t)}function Vr(e,t,n,r){var o=-1,s=cn,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,An(n))),r?(s=un,a=!1):t.length>=i&&(s=On,a=!1,t=new Dr(t));e:for(;++o<l;){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,a&&p==p){for(var h=u;h--;)if(t[h]===p)continue e;c.push(d)}else s(t,p,r)||c.push(d)}return c}vr.templateSettings={escape:De,evaluate:Se,interpolate:Ae,variable:"",imports:{_:vr}},vr.prototype=_r.prototype,vr.prototype.constructor=vr,xr.prototype=wr(_r.prototype),xr.prototype.constructor=xr,kr.prototype=wr(_r.prototype),kr.prototype.constructor=kr,Er.prototype.clear=function(){this.__data__=lr?lr(null):{},this.size=0},Er.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Er.prototype.get=function(e){var t=this.__data__;if(lr){var r=t[e];return r===l?n:r}return ht.call(t,e)?t[e]:n},Er.prototype.has=function(e){var t=this.__data__;return lr?t[e]!==n:ht.call(t,e)},Er.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lr&&t===n?l:t,this},Mr.prototype.clear=function(){this.__data__=[],this.size=0},Mr.prototype["delete"]=function(e){var t=this.__data__,n=jr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Dt.call(t,n,1),--this.size,!0)},Mr.prototype.get=function(e){var t=this.__data__,r=jr(t,e);return r<0?n:t[r][1]},Mr.prototype.has=function(e){return jr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Cr.prototype.clear=function(){this.size=0,this.__data__={hash:new Er,map:new(ir||Mr),string:new Er}},Cr.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Cr.prototype.get=function(e){return $o(this,e).get(e)},Cr.prototype.has=function(e){return $o(this,e).has(e)},Cr.prototype.set=function(e,t){var n=$o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Dr.prototype.add=Dr.prototype.push=function(e){return this.__data__.set(e,l),this},Dr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.clear=function(){this.__data__=new Mr,this.size=0},Sr.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!ir||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cr(r)}return n.set(e,t),this.size=n.size,this};var Wr=ho(Xr),qr=ho(ei,!0);function Kr(e,t){var n=!0;return Wr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function Gr(e,t,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):r(a,l)))var l=a,c=s}return c}function Yr(e,t){var n=[];return Wr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Qr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Jo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qr(a,t-1,n,r,i):pn(i,a):r||(i[i.length]=a)}return i}var Jr=fo(),Zr=fo(!0);function Xr(e,t){return e&&Jr(e,t,dl)}function ei(e,t){return e&&Zr(e,t,dl)}function ti(e,t){return ln(t,(function(t){return Oa(e[t])}))}function ni(e,t){for(var r=0,i=(t=Zi(t,e)).length;null!=e&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function ri(e,t,n){var r=t(e);return Ea(e)?r:pn(r,n(e))}function ii(e){return null==e?e===n?se:Z:It&&It in it(e)?function(e){var t=ht.call(e,It),r=e[It];try{e[It]=n;var i=!0}catch(e){}var o=gt.call(e);i&&(t?e[It]=r:delete e[It]);return o}(e):function(e){return gt.call(e)}(e)}function oi(e,t){return e>t}function si(e,t){return null!=e&&ht.call(e,t)}function ai(e,t){return null!=e&&t in it(e)}function li(e,t,r){for(var i=r?un:cn,o=e[0].length,s=e.length,a=s,l=Xe(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=dn(d,An(t))),c=Zn(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Dr(a&&d):n}d=e[0];var p=-1,h=l[0];e:for(;++p<o&&u.length<c;){var f=d[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(h?On(h,m):i(u,m,r))){for(a=s;--a;){var g=l[a];if(!(g?On(g,m):i(e[a],m,r)))continue e}h&&h.push(m),u.push(f)}}return u}function ci(e,t,r){var i=null==(e=as(e,t=Zi(t,e)))?e:e[bs(Ns(t))];return null==i?n:nn(i,e,r)}function ui(e){return ja(e)&&ii(e)==U}function di(e,t,r,i,o){return e===t||(null==e||null==t||!ja(e)&&!ja(t)?e!=e&&t!=t:function(e,t,r,i,o,s){var a=Ea(e),l=Ea(t),c=a?H:Go(e),u=l?H:Go(t),d=(c=c==U?X:c)==X,p=(u=u==U?X:u)==X,h=c==u;if(h&&Sa(e)){if(!Sa(t))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Sr),a||$a(e)?jo(e,t,r,i,o,s):function(e,t,n,r,i,o,s){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case V:case W:case J:return wa(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case Q:var a=Pn;case re:var l=r&f;if(a||(a=Hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=m,s.set(e,t);var u=jo(a(e),a(t),r,i,o,s);return s["delete"](e),u;case oe:if(br)return br.call(e)==br.call(t)}return!1}(e,t,c,r,i,o,s);if(!(r&f)){var g=d&&ht.call(e,"__wrapped__"),b=p&&ht.call(t,"__wrapped__");if(g||b){var y=g?e.value():e,v=b?t.value():t;return s||(s=new Sr),o(y,v,r,i,s)}}if(!h)return!1;return s||(s=new Sr),function(e,t,r,i,o,s){var a=r&f,l=zo(e),c=l.length,u=zo(t).length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var p=l[d];if(!(a?p in t:ht.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var b=a;for(;++d<c;){var y=e[p=l[d]],v=t[p];if(i)var w=a?i(v,y,p,t,e,s):i(y,v,p,e,t,s);if(!(w===n?y===v||o(y,v,r,i,s):w)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,r,i,o,s)}(e,t,r,i,di,o))}function pi(e,t,r,i){var o=r.length,s=o,a=!i;if(null==e)return!s;for(e=it(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Sr;if(i)var h=i(u,d,c,e,t,p);if(!(h===n?di(d,u,f|m,i,p):h))return!1}}return!0}function hi(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Oa(e)?vt:Ke).test(ys(e));var t}function fi(e){return"function"==typeof e?e:null==e?zl:"object"==typeof e?Ea(e)?wi(e[0],e[1]):vi(e):ql(e)}function mi(e){if(!rs(e))return Qn(e);var t=[];for(var n in it(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gi(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}(e);var t=rs(e),n=[];for(var r in e)("constructor"!=r||!t&&ht.call(e,r))&&n.push(r);return n}function bi(e,t){return e<t}function yi(e,t){var n=-1,r=Ca(e)?Xe(e.length):[];return Wr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function vi(e){var t=Vo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||pi(n,e,t)}}function wi(e,t){return es(e)&&is(t)?os(bs(e),t):function(r){var i=sl(r,e);return i===n&&i===t?al(r,e):di(t,i,f|m)}}function _i(e,t,r,i,o){e!==t&&Jr(t,(function(s,a){if(o||(o=new Sr),La(s))!function(e,t,r,i,o,s,a){var l=cs(e,r),c=cs(t,r),u=a.get(c);if(u)return void Ir(e,r,u);var d=s?s(l,c,r+"",e,t,a):n,p=d===n;if(p){var h=Ea(c),f=!h&&Sa(c),m=!h&&!f&&$a(c);d=c,h||f||m?Ea(l)?d=l:Da(l)?d=lo(l):f?(p=!1,d=no(c,!0)):m?(p=!1,d=io(c,!0)):d=[]:Fa(c)||ka(c)?(d=l,ka(l)?d=Ja(l):La(l)&&!Oa(l)||(d=Qo(c))):p=!1}p&&(a.set(c,d),o(d,c,i,s,a),a["delete"](c));Ir(e,r,d)}(e,t,a,r,_i,i,o);else{var l=i?i(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),Ir(e,a,l)}}),pl)}function xi(e,t){var r=e.length;if(r)return Zo(t+=t<0?r:0,r)?e[t]:n}function ki(e,t,n){t=t.length?dn(t,(function(e){return Ea(e)?function(t){return ni(t,1===e.length?e[0]:e)}:e})):[zl];var r=-1;t=dn(t,An(Ho()));var i=yi(e,(function(e,n,i){var o=dn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=oo(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ei(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=ni(e,s);n(a,s)&&Ti(o,Zi(s,e),a)}return o}function Mi(e,t,n,r){var i=r?wn:vn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=dn(e,An(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Dt.call(a,l,1),Dt.call(e,l,1);return e}function Ci(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Zo(i)?Dt.call(e,i,1):Vi(e,i)}}return e}function Di(e,t){return e+Gt(tr()*(t-e+1))}function Si(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Gt(t/2))&&(e+=e)}while(t);return n}function Ai(e,t){return ps(ss(e,t,zl),e+"")}function Ni(e){return Nr(wl(e))}function Oi(e,t){var n=wl(e);return ms(n,Br(t,0,n.length))}function Ti(e,t,r,i){if(!La(e))return e;for(var o=-1,s=(t=Zi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=bs(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=i?i(d,c,l):n)===n&&(u=La(d)?d:Zo(t[o+1])?[]:{})}Lr(l,c,u),l=l[c]}return e}var Ii=cr?function(e,t){return cr.set(e,t),e}:zl,Li=Pt?function(e,t){return Pt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:zl;function ji(e){return ms(wl(e))}function Ri(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Xe(i);++r<i;)o[r]=e[r+t];return o}function zi(e,t){var n;return Wr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Fi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=P){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Pi(e,t,zl,n)}function Pi(e,t,r,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var d=Gt((o+s)/2),p=r(e[d]),h=p!==n,f=null===p,m=p==p,g=Ha(p);if(a)var b=i||m;else b=u?m&&(i||h):l?m&&h&&(i||!f):c?m&&h&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);b?o=d+1:s=d}return Zn(s,F)}function Bi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!wa(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function Ui(e){return"number"==typeof e?e:Ha(e)?R:+e}function Hi(e){if("string"==typeof e)return e;if(Ea(e))return dn(e,Hi)+"";if(Ha(e))return yr?yr.call(e):"";var t=e+"";return"0"==t&&1/e==-I?"-0":t}function $i(e,t,n){var r=-1,o=cn,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=un;else if(s>=i){var u=t?null:Ao(e);if(u)return Hn(u);a=!1,o=On,c=new Dr}else c=t?[]:l;e:for(;++r<s;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(d)}else o(c,p,n)||(c!==l&&c.push(p),l.push(d))}return l}function Vi(e,t){return null==(e=as(e,t=Zi(t,e)))||delete e[bs(Ns(t))]}function Wi(e,t,n,r){return Ti(e,t,n(ni(e,t)),r)}function qi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Ri(e,r?0:o,r?o+1:i):Ri(e,r?o+1:0,r?i:o)}function Ki(e,t){var n=e;return n instanceof kr&&(n=n.value()),hn(t,(function(e,t){return t.func.apply(t.thisArg,pn([e],t.args))}),n)}function Gi(e,t,n){var r=e.length;if(r<2)return r?$i(e[0]):[];for(var i=-1,o=Xe(r);++i<r;)for(var s=e[i],a=-1;++a<r;)a!=i&&(o[i]=Vr(o[i]||s,e[a],t,n));return $i(Qr(o,1),t,n)}function Yi(e,t,r){for(var i=-1,o=e.length,s=t.length,a={};++i<o;){var l=i<s?t[i]:n;r(a,e[i],l)}return a}function Qi(e){return Da(e)?e:[]}function Ji(e){return"function"==typeof e?e:zl}function Zi(e,t){return Ea(e)?e:es(e,t)?[e]:gs(Za(e))}var Xi=Ai;function eo(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Ri(e,t,r)}var to=Ht||function(e){return Vt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,r=kt?kt(n):new e.constructor(n);return e.copy(r),r}function ro(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function io(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=Ha(e),a=t!==n,l=null===t,c=t==t,u=Ha(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,r){for(var i=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Jn(o-s,0),u=Xe(l+c),d=!r;++a<l;)u[a]=t[a];for(;++i<s;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[a++]=e[i++];return u}function ao(e,t,n,r){for(var i=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Jn(o-a,0),d=Xe(u+c),p=!r;++i<u;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<a;)(p||i<o)&&(d[h+n[s]]=e[i++]);return d}function lo(e,t){var n=-1,r=e.length;for(t||(t=Xe(r));++n<r;)t[n]=e[n];return t}function co(e,t,r,i){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?Fr(r,l,c):Lr(r,l,c)}return r}function uo(e,t){return function(n,r){var i=Ea(n)?rn:Rr,o=t?t():{};return i(n,e,Ho(r,2),o)}}function po(e){return Ai((function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=it(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t}))}function ho(e,t){return function(n,r){if(null==n)return n;if(!Ca(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=it(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function fo(e){return function(t,n,r){for(var i=-1,o=it(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var r=Fn(t=Za(t))?Wn(t):n,i=r?r[0]:t.charAt(0),o=r?eo(r,1).join(""):t.slice(1);return i[e]()+o}}function go(e){return function(t){return hn(Ol(kl(t).replace(At,"")),e,"")}}function bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=wr(e.prototype),r=e.apply(n,t);return La(r)?r:n}}function yo(e){return function(t,r,i){var o=it(t);if(!Ca(t)){var s=Ho(r,3);t=dl(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,i);return a>-1?o[s?t[a]:a]:n}}function vo(e){return Ro((function(t){var r=t.length,i=r,o=xr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Bo(a))var l=new xr([],!0)}for(i=l?i:r;++i<r;){var c=Bo(a=t[i]),u="wrapper"==c?Po(a):n;l=u&&ts(u[0])&&u[1]==(k|v|_|E)&&!u[4].length&&1==u[9]?l[Bo(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ea(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function wo(e,t,r,i,o,s,a,l,c,u){var d=t&k,p=t&g,h=t&b,f=t&(v|w),m=t&M,y=h?n:bo(e);return function n(){for(var g=arguments.length,b=Xe(g),v=g;v--;)b[v]=arguments[v];if(f)var w=Uo(n),_=Ln(b,w);if(i&&(b=so(b,i,o,f)),s&&(b=ao(b,s,a,f)),g-=_,f&&g<u){var x=Un(b,w);return Do(e,t,wo,n.placeholder,r,b,x,l,c,u-g)}var k=p?r:this,E=h?k[e]:e;return g=b.length,l?b=ls(b,l):m&&g>1&&b.reverse(),d&&c<g&&(b.length=c),this&&this!==Vt&&this instanceof n&&(E=y||bo(E)),E.apply(k,b)}}function _o(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function xo(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=Hi(r),i=Hi(i)):(r=Ui(r),i=Ui(i)),o=e(r,i)}return o}}function ko(e){return Ro((function(t){return t=dn(t,An(Ho())),Ai((function(n){var r=this;return e(t,(function(e){return nn(e,r,n)}))}))}))}function Eo(e,t){var r=(t=t===n?" ":Hi(t)).length;if(r<2)return r?Si(t,e):t;var i=Si(t,qt(e/Vn(t)));return Fn(t)?eo(Wn(i),0,e).join(""):i.slice(0,e)}function Mo(e){return function(t,r,i){return i&&"number"!=typeof i&&Xo(t,r,i)&&(r=i=n),t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n,r){for(var i=-1,o=Jn(qt((t-e)/(n||1)),0),s=Xe(o);o--;)s[r?o:++i]=e,e+=n;return s}(t,r,i=i===n?t<r?1:-1:Ka(i),e)}}function Co(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Do(e,t,r,i,o,s,a,l,c,u){var d=t&v;t|=d?_:x,(t&=~(d?x:_))&y||(t&=~(g|b));var p=[e,t,o,d?s:n,d?a:n,d?n:s,d?n:a,l,c,u],h=r.apply(n,p);return ts(e)&&us(h,p),h.placeholder=i,hs(h,e,t)}function So(e){var t=rt[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Zn(Ga(n),292))&&En(e)){var r=(Za(e)+"e").split("e");return+((r=(Za(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ao=sr&&1/Hn(new sr([,-0]))[1]==I?function(e){return new sr(e)}:Hl;function No(e){return function(t){var n=Go(t);return n==Q?Pn(t):n==re?$n(t):function(e,t){return dn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Oo(e,t,r,i,o,a,l,c){var d=t&b;if(!d&&"function"!=typeof e)throw new at(s);var p=i?i.length:0;if(p||(t&=~(_|x),i=o=n),l=l===n?l:Jn(Ga(l),0),c=c===n?c:Ga(c),p-=o?o.length:0,t&x){var h=i,f=o;i=o=n}var m=d?n:Po(e),M=[e,t,r,i,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(g|b|k),s=r==k&&n==v||r==k&&n==E&&e[7].length<=t[8]||r==(k|E)&&t[7].length<=t[8]&&n==v;if(!o&&!s)return e;r&g&&(e[2]=t[2],i|=n&g?0:y);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?Un(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?Un(e[5],u):t[6]);(a=t[7])&&(e[7]=a);r&k&&(e[8]=null==e[8]?t[8]:Zn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,m),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],!(c=M[9]=M[9]===n?d?0:e.length:Jn(M[9]-p,0))&&t&(v|w)&&(t&=~(v|w)),t&&t!=g)C=t==v||t==w?function(e,t,r){var i=bo(e);return function o(){for(var s=arguments.length,a=Xe(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:Un(a,c);return(s-=u.length)<r?Do(e,t,wo,o.placeholder,n,a,u,n,n,r-s):nn(this&&this!==Vt&&this instanceof o?i:e,this,a)}}(e,t,c):t!=_&&t!=(g|_)||o.length?wo.apply(n,M):function(e,t,n,r){var i=t&g,o=bo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=r.length,u=Xe(c+a),d=this&&this!==Vt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;a--;)u[l++]=arguments[++s];return nn(d,i?n:this,u)}}(e,t,r,i);else var C=function(e,t,n){var r=t&g,i=bo(e);return function t(){return(this&&this!==Vt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return hs((m?Ii:us)(C,M),e,t)}function To(e,t,r,i){return e===n||wa(e,ut[r])&&!ht.call(i,r)?t:e}function Io(e,t,r,i,o,s){return La(e)&&La(t)&&(s.set(t,e),_i(e,t,n,Io,s),s["delete"](t)),e}function Lo(e){return Fa(e)?n:e}function jo(e,t,r,i,o,s){var a=r&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,g=r&m?new Dr:n;for(s.set(e,t),s.set(t,e);++p<l;){var b=e[p],y=t[p];if(i)var v=a?i(y,b,p,t,e,s):i(b,y,p,e,t,s);if(v!==n){if(v)continue;h=!1;break}if(g){if(!mn(t,(function(e,t){if(!On(g,t)&&(b===e||o(b,e,r,i,s)))return g.push(t)}))){h=!1;break}}else if(b!==y&&!o(b,y,r,i,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function Ro(e){return ps(ss(e,n,Ms),e+"")}function zo(e){return ri(e,dl,qo)}function Fo(e){return ri(e,pl,Ko)}var Po=cr?function(e){return cr.get(e)}:Hl;function Bo(e){for(var t=e.name+"",n=ur[t],r=ht.call(ur,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Uo(e){return(ht.call(vr,"placeholder")?vr:e).placeholder}function Ho(){var e=vr.iteratee||Fl;return e=e===Fl?fi:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Vo(e){for(var t=dl(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,is(i)]}return t}function Wo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return hi(r)?r:n}var qo=Yt?function(e){return null==e?[]:(e=it(e),ln(Yt(e),(function(t){return Ct.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)pn(t,qo(e)),e=Et(e);return t}:Yl,Go=ii;function Yo(e,t,n){for(var r=-1,i=(t=Zi(t,e)).length,o=!1;++r<i;){var s=bs(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ia(i)&&Zo(s,i)&&(Ea(e)||ka(e))}function Qo(e){return"function"!=typeof e.constructor||rs(e)?{}:wr(Et(e))}function Jo(e){return Ea(e)||ka(e)||!!(St&&e&&e[St])}function Zo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var r=typeof t;return!!("number"==r?Ca(n)&&Zo(t,n.length):"string"==r&&t in n)&&wa(n[t],e)}function es(e,t){if(Ea(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Oe.test(e)||!Ne.test(e)||null!=t&&e in it(t))}function ts(e){var t=Bo(e),n=vr[t];if("function"!=typeof n||!(t in kr.prototype))return!1;if(e===n)return!0;var r=Po(n);return!!r&&e===r[0]}(rr&&Go(new rr(new ArrayBuffer(1)))!=ue||ir&&Go(new ir)!=Q||or&&Go(or.resolve())!=ee||sr&&Go(new sr)!=re||ar&&Go(new ar)!=ae)&&(Go=function(e){var t=ii(e),r=t==X?e.constructor:n,i=r?ys(r):"";if(i)switch(i){case dr:return ue;case pr:return Q;case hr:return ee;case fr:return re;case mr:return ae}return t});var ns=dt?Oa:Ql;function rs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function is(e){return e==e&&!La(e)}function os(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in it(r)))}}function ss(e,t,r){return t=Jn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Jn(n.length-t,0),s=Xe(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Xe(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),nn(e,this,a)}}function as(e,t){return t.length<2?e:ni(e,Ri(t,0,-1))}function ls(e,t){for(var r=e.length,i=Zn(t.length,r),o=lo(e);i--;){var s=t[i];e[i]=Zo(s,r)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(Ii),ds=Wt||function(e,t){return Vt.setTimeout(e,t)},ps=fs(Li);function hs(e,t,n){var r=t+"";return ps(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return on(B,(function(n){var r="_."+n[0];t&n[1]&&!cn(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(Pe):[]}(r),n)))}function fs(e){var t=0,r=0;return function(){var i=Xn(),o=A-(i-r);if(r=i,o>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var s=Di(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Te,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function bs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-I?"-0":t}function ys(e){if(null!=e){try{return pt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function vs(e){if(e instanceof kr)return e.clone();var t=new xr(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ws=Ai((function(e,t){return Da(e)?Vr(e,Qr(t,1,Da,!0)):[]})),_s=Ai((function(e,t){var r=Ns(t);return Da(r)&&(r=n),Da(e)?Vr(e,Qr(t,1,Da,!0),Ho(r,2)):[]})),xs=Ai((function(e,t){var r=Ns(t);return Da(r)&&(r=n),Da(e)?Vr(e,Qr(t,1,Da,!0),n,r):[]}));function ks(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),yn(e,Ho(t,3),i)}function Es(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=Ga(r),o=r<0?Jn(i+o,0):Zn(o,i-1)),yn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qr(e,1):[]}function Cs(e){return e&&e.length?e[0]:n}var Ds=Ai((function(e){var t=dn(e,Qi);return t.length&&t[0]===e[0]?li(t):[]})),Ss=Ai((function(e){var t=Ns(e),r=dn(e,Qi);return t===Ns(r)?t=n:r.pop(),r.length&&r[0]===e[0]?li(r,Ho(t,2)):[]})),As=Ai((function(e){var t=Ns(e),r=dn(e,Qi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?li(r,n,t):[]}));function Ns(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Os=Ai(Ts);function Ts(e,t){return e&&e.length&&t&&t.length?Mi(e,t):e}var Is=Ro((function(e,t){var n=null==e?0:e.length,r=Pr(e,t);return Ci(e,dn(t,(function(e){return Zo(e,n)?+e:e})).sort(oo)),r}));function Ls(e){return null==e?e:nr.call(e)}var js=Ai((function(e){return $i(Qr(e,1,Da,!0))})),Rs=Ai((function(e){var t=Ns(e);return Da(t)&&(t=n),$i(Qr(e,1,Da,!0),Ho(t,2))})),zs=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,$i(Qr(e,1,Da,!0),n,t)}));function Fs(e){if(!e||!e.length)return[];var t=0;return e=ln(e,(function(e){if(Da(e))return t=Jn(e.length,t),!0})),Dn(t,(function(t){return dn(e,kn(t))}))}function Ps(e,t){if(!e||!e.length)return[];var r=Fs(e);return null==t?r:dn(r,(function(e){return nn(t,n,e)}))}var Bs=Ai((function(e,t){return Da(e)?Vr(e,t):[]})),Us=Ai((function(e){return Gi(ln(e,Da))})),Hs=Ai((function(e){var t=Ns(e);return Da(t)&&(t=n),Gi(ln(e,Da),Ho(t,2))})),$s=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,Gi(ln(e,Da),n,t)})),Vs=Ai(Fs);var Ws=Ai((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Ps(e,r)}));function qs(e){var t=vr(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=Ro((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Pr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof kr&&Zo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new xr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Fr(e,n,1)}));var Qs=yo(ks),Js=yo(Es);function Zs(e,t){return(Ea(e)?on:Wr)(e,Ho(t,3))}function Xs(e,t){return(Ea(e)?sn:qr)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Fr(e,n,[t])}));var ta=Ai((function(e,t,n){var r=-1,i="function"==typeof t,o=Ca(e)?Xe(e.length):[];return Wr(e,(function(e){o[++r]=i?nn(t,e,n):ci(e,t,n)})),o})),na=uo((function(e,t,n){Fr(e,n,t)}));function ra(e,t){return(Ea(e)?dn:yi)(e,Ho(t,3))}var ia=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Ai((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ki(e,Qr(t,1),[])})),sa=$t||function(){return Vt.Date.now()};function aa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Oo(e,k,n,n,n,n,t)}function la(e,t){var r;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ca=Ai((function(e,t,n){var r=g;if(n.length){var i=Un(n,Uo(ca));r|=_}return Oo(e,r,t,n,i)})),ua=Ai((function(e,t,n){var r=g|b;if(n.length){var i=Un(n,Uo(ua));r|=_}return Oo(t,r,e,n,i)}));function da(e,t,r){var i,o,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var r=i,s=o;return i=o=n,d=t,l=e.apply(s,r)}function g(e){return d=e,c=ds(y,t),p?m(e):l}function b(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=a}function y(){var e=sa();if(b(e))return v(e);c=ds(y,function(e){var n=t-(e-u);return h?Zn(n,a-(e-d)):n}(e))}function v(e){return c=n,f&&i?m(e):(i=o=n,l)}function w(){var e=sa(),r=b(e);if(i=arguments,o=this,u=e,r){if(c===n)return g(u);if(h)return to(c),c=ds(y,t),m(u)}return c===n&&(c=ds(y,t)),l}return t=Qa(t)||0,La(r)&&(p=!!r.leading,a=(h="maxWait"in r)?Jn(Qa(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){c!==n&&to(c),d=0,i=u=o=c=n},w.flush=function(){return c===n?l:v(sa())},w}var pa=Ai((function(e,t){return $r(e,1,t)})),ha=Ai((function(e,t,n){return $r(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(fa.Cache||Cr),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Cr;var ga=Xi((function(e,t){var n=(t=1==t.length&&Ea(t[0])?dn(t[0],An(Ho())):dn(Qr(t,1),An(Ho()))).length;return Ai((function(r){for(var i=-1,o=Zn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return nn(e,this,r)}))})),ba=Ai((function(e,t){var r=Un(t,Uo(ba));return Oo(e,_,n,t,r)})),ya=Ai((function(e,t){var r=Un(t,Uo(ya));return Oo(e,x,n,t,r)})),va=Ro((function(e,t){return Oo(e,E,n,n,n,t)}));function wa(e,t){return e===t||e!=e&&t!=t}var _a=Co(oi),xa=Co((function(e,t){return e>=t})),ka=ui(function(){return arguments}())?ui:function(e){return ja(e)&&ht.call(e,"callee")&&!Ct.call(e,"callee")},Ea=Xe.isArray,Ma=Qt?An(Qt):function(e){return ja(e)&&ii(e)==ce};function Ca(e){return null!=e&&Ia(e.length)&&!Oa(e)}function Da(e){return ja(e)&&Ca(e)}var Sa=gn||Ql,Aa=Jt?An(Jt):function(e){return ja(e)&&ii(e)==W};function Na(e){if(!ja(e))return!1;var t=ii(e);return t==K||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Fa(e)}function Oa(e){if(!La(e))return!1;var t=ii(e);return t==G||t==Y||t==$||t==te}function Ta(e){return"number"==typeof e&&e==Ga(e)}function Ia(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ja(e){return null!=e&&"object"==typeof e}var Ra=Zt?An(Zt):function(e){return ja(e)&&Go(e)==Q};function za(e){return"number"==typeof e||ja(e)&&ii(e)==J}function Fa(e){if(!ja(e)||ii(e)!=X)return!1;var t=Et(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pt.call(n)==bt}var Pa=Xt?An(Xt):function(e){return ja(e)&&ii(e)==ne};var Ba=en?An(en):function(e){return ja(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!Ea(e)&&ja(e)&&ii(e)==ie}function Ha(e){return"symbol"==typeof e||ja(e)&&ii(e)==oe}var $a=tn?An(tn):function(e){return ja(e)&&Ia(e.length)&&!!zt[ii(e)]};var Va=Co(bi),Wa=Co((function(e,t){return e<=t}));function qa(e){if(!e)return[];if(Ca(e))return Ua(e)?Wn(e):lo(e);if(Ot&&e[Ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ot]());var t=Go(e);return(t==Q?Pn:t==re?Hn:wl)(e)}function Ka(e){return e?(e=Qa(e))===I||e===-I?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Br(Ga(e),0,z):0}function Qa(e){if("number"==typeof e)return e;if(Ha(e))return R;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Sn(e);var n=qe.test(e);return n||Ge.test(e)?Ut(e.slice(2),n?2:8):We.test(e)?R:+e}function Ja(e){return co(e,pl(e))}function Za(e){return null==e?"":Hi(e)}var Xa=po((function(e,t){if(rs(t)||Ca(t))co(t,dl(t),e);else for(var n in t)ht.call(t,n)&&Lr(e,n,t[n])})),el=po((function(e,t){co(t,pl(t),e)})),tl=po((function(e,t,n,r){co(t,pl(t),e,r)})),nl=po((function(e,t,n,r){co(t,dl(t),e,r)})),rl=Ro(Pr);var il=Ai((function(e,t){e=it(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(i=1);++r<i;)for(var s=t[r],a=pl(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===n||wa(d,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Ai((function(e){return e.push(n,Io),nn(fl,n,e)}));function sl(e,t,r){var i=null==e?n:ni(e,t);return i===n?r:i}function al(e,t){return null!=e&&Yo(e,t,ai)}var ll=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(zl)),cl=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),ul=Ai(ci);function dl(e){return Ca(e)?Ar(e):mi(e)}function pl(e){return Ca(e)?Ar(e,!0):gi(e)}var hl=po((function(e,t,n){_i(e,t,n)})),fl=po((function(e,t,n,r){_i(e,t,n,r)})),ml=Ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=dn(t,(function(t){return t=Zi(t,e),r||(r=t.length>1),t})),co(e,Fo(e),n),r&&(n=Ur(n,d|p|h,Lo));for(var i=t.length;i--;)Vi(n,t[i]);return n}));var gl=Ro((function(e,t){return null==e?{}:function(e,t){return Ei(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function bl(e,t){if(null==e)return{};var n=dn(Fo(e),(function(e){return[e]}));return t=Ho(t),Ei(e,n,(function(e,n){return t(e,n[0])}))}var yl=No(dl),vl=No(pl);function wl(e){return null==e?[]:Nn(e,dl(e))}var _l=go((function(e,t,n){return t=t.toLowerCase(),e+(n?xl(t):t)}));function xl(e){return Nl(Za(e).toLowerCase())}function kl(e){return(e=Za(e))&&e.replace(Qe,jn).replace(Nt,"")}var El=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Cl=mo("toLowerCase");var Dl=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Sl=go((function(e,t,n){return e+(n?" ":"")+Nl(t)}));var Al=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Nl=mo("toUpperCase");function Ol(e,t,r){return e=Za(e),(t=r?n:t)===n?function(e){return Lt.test(e)}(e)?function(e){return e.match(Tt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Tl=Ai((function(e,t){try{return nn(e,n,t)}catch(e){return Na(e)?e:new tt(e)}})),Il=Ro((function(e,t){return on(t,(function(t){t=bs(t),Fr(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var jl=vo(),Rl=vo(!0);function zl(e){return e}function Fl(e){return fi("function"==typeof e?e:Ur(e,d))}var Pl=Ai((function(e,t){return function(n){return ci(n,e,t)}})),Bl=Ai((function(e,t){return function(n){return ci(e,n,t)}}));function Ul(e,t,n){var r=dl(t),i=ti(t,r);null!=n||La(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ti(t,dl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Oa(e);return on(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=lo(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pn([this.value()],arguments))})})),e}function Hl(){}var $l=ko(dn),Vl=ko(an),Wl=ko(mn);function ql(e){return es(e)?kn(bs(e)):function(e){return function(t){return ni(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Jl=xo((function(e,t){return e+t}),0),Zl=So("ceil"),Xl=xo((function(e,t){return e/t}),1),ec=So("floor");var tc=xo((function(e,t){return e*t}),1),nc=So("round"),rc=xo((function(e,t){return e-t}),0);return vr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},vr.ary=aa,vr.assign=Xa,vr.assignIn=el,vr.assignInWith=tl,vr.assignWith=nl,vr.at=rl,vr.before=la,vr.bind=ca,vr.bindAll=Il,vr.bindKey=ua,vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ea(e)?e:[e]},vr.chain=qs,vr.chunk=function(e,t,r){t=(r?Xo(e,t,r):t===n)?1:Jn(Ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Xe(qt(i/t));o<i;)a[s++]=Ri(e,o,o+=t);return a},vr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},vr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Xe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pn(Ea(n)?lo(n):[n],Qr(t,1))},vr.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?dn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Ai((function(n){for(var r=-1;++r<t;){var i=e[r];if(nn(i[0],this,n))return nn(i[1],this,n)}}))},vr.conforms=function(e){return function(e){var t=dl(e);return function(n){return Hr(n,e,t)}}(Ur(e,d))},vr.constant=Ll,vr.countBy=Ys,vr.create=function(e,t){var n=wr(e);return null==t?n:zr(n,t)},vr.curry=function e(t,r,i){var o=Oo(t,v,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.curryRight=function e(t,r,i){var o=Oo(t,w,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.debounce=da,vr.defaults=il,vr.defaultsDeep=ol,vr.defer=pa,vr.delay=ha,vr.difference=ws,vr.differenceBy=_s,vr.differenceWith=xs,vr.drop=function(e,t,r){var i=null==e?0:e.length;return i?Ri(e,(t=r||t===n?1:Ga(t))<0?0:t,i):[]},vr.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?Ri(e,0,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t):[]},vr.dropRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0,!0):[]},vr.dropWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0):[]},vr.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Xo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=Ga(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:Ga(i))<0&&(i+=o),i=r>i?0:Ya(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},vr.filter=function(e,t){return(Ea(e)?ln:Yr)(e,Ho(t,3))},vr.flatMap=function(e,t){return Qr(ra(e,t),1)},vr.flatMapDeep=function(e,t){return Qr(ra(e,t),I)},vr.flatMapDepth=function(e,t,r){return r=r===n?1:Ga(r),Qr(ra(e,t),r)},vr.flatten=Ms,vr.flattenDeep=function(e){return(null==e?0:e.length)?Qr(e,I):[]},vr.flattenDepth=function(e,t){return(null==e?0:e.length)?Qr(e,t=t===n?1:Ga(t)):[]},vr.flip=function(e){return Oo(e,M)},vr.flow=jl,vr.flowRight=Rl,vr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},vr.functions=function(e){return null==e?[]:ti(e,dl(e))},vr.functionsIn=function(e){return null==e?[]:ti(e,pl(e))},vr.groupBy=ea,vr.initial=function(e){return(null==e?0:e.length)?Ri(e,0,-1):[]},vr.intersection=Ds,vr.intersectionBy=Ss,vr.intersectionWith=As,vr.invert=ll,vr.invertBy=cl,vr.invokeMap=ta,vr.iteratee=Fl,vr.keyBy=na,vr.keys=dl,vr.keysIn=pl,vr.map=ra,vr.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Fr(n,t(e,r,i),e)})),n},vr.mapValues=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Fr(n,r,t(e,r,i))})),n},vr.matches=function(e){return vi(Ur(e,d))},vr.matchesProperty=function(e,t){return wi(e,Ur(t,d))},vr.memoize=fa,vr.merge=hl,vr.mergeWith=fl,vr.method=Pl,vr.methodOf=Bl,vr.mixin=Ul,vr.negate=ma,vr.nthArg=function(e){return e=Ga(e),Ai((function(t){return xi(t,e)}))},vr.omit=ml,vr.omitBy=function(e,t){return bl(e,ma(Ho(t)))},vr.once=function(e){return la(2,e)},vr.orderBy=function(e,t,r,i){return null==e?[]:(Ea(t)||(t=null==t?[]:[t]),Ea(r=i?n:r)||(r=null==r?[]:[r]),ki(e,t,r))},vr.over=$l,vr.overArgs=ga,vr.overEvery=Vl,vr.overSome=Wl,vr.partial=ba,vr.partialRight=ya,vr.partition=ia,vr.pick=gl,vr.pickBy=bl,vr.property=ql,vr.propertyOf=function(e){return function(t){return null==e?n:ni(e,t)}},vr.pull=Os,vr.pullAll=Ts,vr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,Ho(n,2)):e},vr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Mi(e,t,n,r):e},vr.pullAt=Is,vr.range=Kl,vr.rangeRight=Gl,vr.rearg=va,vr.reject=function(e,t){return(Ea(e)?ln:Yr)(e,ma(Ho(t,3)))},vr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Ho(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Ci(e,i),n},vr.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Ai(e,t=t===n?t:Ga(t))},vr.reverse=Ls,vr.sampleSize=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),(Ea(e)?Or:Oi)(e,t)},vr.set=function(e,t,n){return null==e?e:Ti(e,t,n)},vr.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ti(e,t,r,i)},vr.shuffle=function(e){return(Ea(e)?Tr:ji)(e)},vr.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Xo(e,t,r)?(t=0,r=i):(t=null==t?0:Ga(t),r=r===n?i:Ga(r)),Ri(e,t,r)):[]},vr.sortBy=oa,vr.sortedUniq=function(e){return e&&e.length?Bi(e):[]},vr.sortedUniqBy=function(e,t){return e&&e.length?Bi(e,Ho(t,2)):[]},vr.split=function(e,t,r){return r&&"number"!=typeof r&&Xo(e,t,r)&&(t=r=n),(r=r===n?z:r>>>0)?(e=Za(e))&&("string"==typeof t||null!=t&&!Pa(t))&&!(t=Hi(t))&&Fn(e)?eo(Wn(e),0,r):e.split(t,r):[]},vr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Jn(Ga(t),0),Ai((function(n){var r=n[t],i=eo(n,0,t);return r&&pn(i,r),nn(e,this,i)}))},vr.tail=function(e){var t=null==e?0:e.length;return t?Ri(e,1,t):[]},vr.take=function(e,t,r){return e&&e.length?Ri(e,0,(t=r||t===n?1:Ga(t))<0?0:t):[]},vr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Ri(e,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t,i):[]},vr.takeRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!1,!0):[]},vr.takeWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3)):[]},vr.tap=function(e,t){return t(e),e},vr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),da(e,t,{leading:r,maxWait:t,trailing:i})},vr.thru=Ks,vr.toArray=qa,vr.toPairs=yl,vr.toPairsIn=vl,vr.toPath=function(e){return Ea(e)?dn(e,bs):Ha(e)?[e]:lo(gs(Za(e)))},vr.toPlainObject=Ja,vr.transform=function(e,t,n){var r=Ea(e),i=r||Sa(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:La(e)&&Oa(o)?wr(Et(e)):{}}return(i?on:Xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},vr.unary=function(e){return aa(e,1)},vr.union=js,vr.unionBy=Rs,vr.unionWith=zs,vr.uniq=function(e){return e&&e.length?$i(e):[]},vr.uniqBy=function(e,t){return e&&e.length?$i(e,Ho(t,2)):[]},vr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$i(e,n,t):[]},vr.unset=function(e,t){return null==e||Vi(e,t)},vr.unzip=Fs,vr.unzipWith=Ps,vr.update=function(e,t,n){return null==e?e:Wi(e,t,Ji(n))},vr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Wi(e,t,Ji(r),i)},vr.values=wl,vr.valuesIn=function(e){return null==e?[]:Nn(e,pl(e))},vr.without=Bs,vr.words=Ol,vr.wrap=function(e,t){return ba(Ji(t),e)},vr.xor=Us,vr.xorBy=Hs,vr.xorWith=$s,vr.zip=Vs,vr.zipObject=function(e,t){return Yi(e||[],t||[],Lr)},vr.zipObjectDeep=function(e,t){return Yi(e||[],t||[],Ti)},vr.zipWith=Ws,vr.entries=yl,vr.entriesIn=vl,vr.extend=el,vr.extendWith=tl,Ul(vr,vr),vr.add=Jl,vr.attempt=Tl,vr.camelCase=_l,vr.capitalize=xl,vr.ceil=Zl,vr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Qa(r))==r?r:0),t!==n&&(t=(t=Qa(t))==t?t:0),Br(Qa(e),t,r)},vr.clone=function(e){return Ur(e,h)},vr.cloneDeep=function(e){return Ur(e,d|h)},vr.cloneDeepWith=function(e,t){return Ur(e,d|h,t="function"==typeof t?t:n)},vr.cloneWith=function(e,t){return Ur(e,h,t="function"==typeof t?t:n)},vr.conformsTo=function(e,t){return null==t||Hr(e,t,dl(t))},vr.deburr=kl,vr.defaultTo=function(e,t){return null==e||e!=e?t:e},vr.divide=Xl,vr.endsWith=function(e,t,r){e=Za(e),t=Hi(t);var i=e.length,o=r=r===n?i:Br(Ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},vr.eq=wa,vr.escape=function(e){return(e=Za(e))&&Ce.test(e)?e.replace(Ee,Rn):e},vr.escapeRegExp=function(e){return(e=Za(e))&&Le.test(e)?e.replace(Ie,"\\$&"):e},vr.every=function(e,t,r){var i=Ea(e)?an:Kr;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.find=Qs,vr.findIndex=ks,vr.findKey=function(e,t){return bn(e,Ho(t,3),Xr)},vr.findLast=Js,vr.findLastIndex=Es,vr.findLastKey=function(e,t){return bn(e,Ho(t,3),ei)},vr.floor=ec,vr.forEach=Zs,vr.forEachRight=Xs,vr.forIn=function(e,t){return null==e?e:Jr(e,Ho(t,3),pl)},vr.forInRight=function(e,t){return null==e?e:Zr(e,Ho(t,3),pl)},vr.forOwn=function(e,t){return e&&Xr(e,Ho(t,3))},vr.forOwnRight=function(e,t){return e&&ei(e,Ho(t,3))},vr.get=sl,vr.gt=_a,vr.gte=xa,vr.has=function(e,t){return null!=e&&Yo(e,t,si)},vr.hasIn=al,vr.head=Cs,vr.identity=zl,vr.includes=function(e,t,n,r){e=Ca(e)?e:wl(e),n=n&&!r?Ga(n):0;var i=e.length;return n<0&&(n=Jn(i+n,0)),Ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&vn(e,t,n)>-1},vr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),vn(e,t,i)},vr.inRange=function(e,t,r){return t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n){return e>=Zn(t,n)&&e<Jn(t,n)}(e=Qa(e),t,r)},vr.invoke=ul,vr.isArguments=ka,vr.isArray=Ea,vr.isArrayBuffer=Ma,vr.isArrayLike=Ca,vr.isArrayLikeObject=Da,vr.isBoolean=function(e){return!0===e||!1===e||ja(e)&&ii(e)==V},vr.isBuffer=Sa,vr.isDate=Aa,vr.isElement=function(e){return ja(e)&&1===e.nodeType&&!Fa(e)},vr.isEmpty=function(e){if(null==e)return!0;if(Ca(e)&&(Ea(e)||"string"==typeof e||"function"==typeof e.splice||Sa(e)||$a(e)||ka(e)))return!e.length;var t=Go(e);if(t==Q||t==re)return!e.size;if(rs(e))return!mi(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},vr.isEqual=function(e,t){return di(e,t)},vr.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?di(e,t,n,r):!!i},vr.isError=Na,vr.isFinite=function(e){return"number"==typeof e&&En(e)},vr.isFunction=Oa,vr.isInteger=Ta,vr.isLength=Ia,vr.isMap=Ra,vr.isMatch=function(e,t){return e===t||pi(e,t,Vo(t))},vr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,pi(e,t,Vo(t),r)},vr.isNaN=function(e){return za(e)&&e!=+e},vr.isNative=function(e){if(ns(e))throw new tt(o);return hi(e)},vr.isNil=function(e){return null==e},vr.isNull=function(e){return null===e},vr.isNumber=za,vr.isObject=La,vr.isObjectLike=ja,vr.isPlainObject=Fa,vr.isRegExp=Pa,vr.isSafeInteger=function(e){return Ta(e)&&e>=-L&&e<=L},vr.isSet=Ba,vr.isString=Ua,vr.isSymbol=Ha,vr.isTypedArray=$a,vr.isUndefined=function(e){return e===n},vr.isWeakMap=function(e){return ja(e)&&Go(e)==ae},vr.isWeakSet=function(e){return ja(e)&&ii(e)==le},vr.join=function(e,t){return null==e?"":Yn.call(e,t)},vr.kebabCase=El,vr.last=Ns,vr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Ga(r))<0?Jn(i+o,0):Zn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):yn(e,_n,o,!0)},vr.lowerCase=Ml,vr.lowerFirst=Cl,vr.lt=Va,vr.lte=Wa,vr.max=function(e){return e&&e.length?Gr(e,zl,oi):n},vr.maxBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),oi):n},vr.mean=function(e){return xn(e,zl)},vr.meanBy=function(e,t){return xn(e,Ho(t,2))},vr.min=function(e){return e&&e.length?Gr(e,zl,bi):n},vr.minBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),bi):n},vr.stubArray=Yl,vr.stubFalse=Ql,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=tc,vr.nth=function(e,t){return e&&e.length?xi(e,Ga(t)):n},vr.noConflict=function(){return Vt._===this&&(Vt._=yt),this},vr.noop=Hl,vr.now=sa,vr.pad=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Eo(Gt(i),n)+e+Eo(qt(i),n)},vr.padEnd=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?e+Eo(t-r,n):e},vr.padStart=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?Eo(t-r,n)+e:e},vr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),er(Za(e).replace(je,""),t||0)},vr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Xo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=tr();return Zn(e+o*(t-e+Bt("1e-"+((o+"").length-1))),t)}return Di(e,t)},vr.reduce=function(e,t,n){var r=Ea(e)?hn:Mn,i=arguments.length<3;return r(e,Ho(t,4),n,i,Wr)},vr.reduceRight=function(e,t,n){var r=Ea(e)?fn:Mn,i=arguments.length<3;return r(e,Ho(t,4),n,i,qr)},vr.repeat=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),Si(Za(e),t)},vr.replace=function(){var e=arguments,t=Za(e[0]);return e.length<3?t:t.replace(e[1],e[2])},vr.result=function(e,t,r){var i=-1,o=(t=Zi(t,e)).length;for(o||(o=1,e=n);++i<o;){var s=null==e?n:e[bs(t[i])];s===n&&(i=o,s=r),e=Oa(s)?s.call(e):s}return e},vr.round=nc,vr.runInContext=e,vr.sample=function(e){return(Ea(e)?Nr:Ni)(e)},vr.size=function(e){if(null==e)return 0;if(Ca(e))return Ua(e)?Vn(e):e.length;var t=Go(e);return t==Q||t==re?e.size:mi(e).length},vr.snakeCase=Dl,vr.some=function(e,t,r){var i=Ea(e)?mn:zi;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.sortedIndex=function(e,t){return Fi(e,t)},vr.sortedIndexBy=function(e,t,n){return Pi(e,t,Ho(n,2))},vr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fi(e,t);if(r<n&&wa(e[r],t))return r}return-1},vr.sortedLastIndex=function(e,t){return Fi(e,t,!0)},vr.sortedLastIndexBy=function(e,t,n){return Pi(e,t,Ho(n,2),!0)},vr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Fi(e,t,!0)-1;if(wa(e[n],t))return n}return-1},vr.startCase=Sl,vr.startsWith=function(e,t,n){return e=Za(e),n=null==n?0:Br(Ga(n),0,e.length),t=Hi(t),e.slice(n,n+t.length)==t},vr.subtract=rc,vr.sum=function(e){return e&&e.length?Cn(e,zl):0},vr.sumBy=function(e,t){return e&&e.length?Cn(e,Ho(t,2)):0},vr.template=function(e,t,r){var i=vr.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Za(e),t=tl({},t,i,To);var o,s,l=tl({},t.imports,i.imports,To),c=dl(l),u=Nn(l,c),d=0,p=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+p.source+"|"+(p===Ae?$e:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(d,l).replace(Ze,zn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(Ue.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(xe,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Tl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(b.source=h,Na(b))throw b;return b},vr.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=z,r=Zn(e,z);t=Ho(t),e-=z;for(var i=Dn(r,t);++n<e;)t(n);return i},vr.toFinite=Ka,vr.toInteger=Ga,vr.toLength=Ya,vr.toLower=function(e){return Za(e).toLowerCase()},vr.toNumber=Qa,vr.toSafeInteger=function(e){return e?Br(Ga(e),-L,L):0===e?e:0},vr.toString=Za,vr.toUpper=function(e){return Za(e).toUpperCase()},vr.trim=function(e,t,r){if((e=Za(e))&&(r||t===n))return Sn(e);if(!e||!(t=Hi(t)))return e;var i=Wn(e),o=Wn(t);return eo(i,Tn(i,o),In(i,o)+1).join("")},vr.trimEnd=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.slice(0,qn(e)+1);if(!e||!(t=Hi(t)))return e;var i=Wn(e);return eo(i,0,In(i,Wn(t))+1).join("")},vr.trimStart=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.replace(je,"");if(!e||!(t=Hi(t)))return e;var i=Wn(e);return eo(i,Tn(i,Wn(t))).join("")},vr.truncate=function(e,t){var r=C,i=D;if(La(t)){var o="separator"in t?t.separator:o;r="length"in t?Ga(t.length):r,i="omission"in t?Hi(t.omission):i}var s=(e=Za(e)).length;if(Fn(e)){var a=Wn(e);s=a.length}if(r>=s)return e;var l=r-Vn(i);if(l<1)return i;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),Pa(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=ot(o.source,Za(Ve.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(Hi(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},vr.unescape=function(e){return(e=Za(e))&&Me.test(e)?e.replace(ke,Kn):e},vr.uniqueId=function(e){var t=++ft;return Za(e)+t},vr.upperCase=Al,vr.upperFirst=Nl,vr.each=Zs,vr.eachRight=Xs,vr.first=Cs,Ul(vr,function(){var e={};return Xr(vr,(function(t,n){ht.call(vr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),vr.VERSION=r,on(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){vr[e].placeholder=vr})),on(["drop","take"],(function(e,t){kr.prototype[e]=function(r){r=r===n?1:Jn(Ga(r),0);var i=this.__filtered__&&!t?new kr(this):this.clone();return i.__filtered__?i.__takeCount__=Zn(r,i.__takeCount__):i.__views__.push({size:Zn(r,z),type:e+(i.__dir__<0?"Right":"")}),i},kr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),on(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==N||n==T;kr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),on(["head","last"],(function(e,t){var n="take"+(t?"Right":"");kr.prototype[e]=function(){return this[n](1).value()[0]}})),on(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");kr.prototype[e]=function(){return this.__filtered__?new kr(this):this[n](1)}})),kr.prototype.compact=function(){return this.filter(zl)},kr.prototype.find=function(e){return this.filter(e).head()},kr.prototype.findLast=function(e){return this.reverse().find(e)},kr.prototype.invokeMap=Ai((function(e,t){return"function"==typeof e?new kr(this):this.map((function(n){return ci(n,e,t)}))})),kr.prototype.reject=function(e){return this.filter(ma(Ho(e)))},kr.prototype.slice=function(e,t){e=Ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new kr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},kr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},kr.prototype.toArray=function(){return this.take(z)},Xr(kr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=vr[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(vr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof kr,c=a[0],u=l||Ea(t),d=function(e){var t=o.apply(vr,pn([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&u){t=m?t:new kr(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[d],thisArg:n}),new xr(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),on(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ea(i)?i:[],e)}return this[n]((function(n){return t.apply(Ea(n)?n:[],e)}))}})),Xr(kr.prototype,(function(e,t){var n=vr[t];if(n){var r=n.name+"";ht.call(ur,r)||(ur[r]=[]),ur[r].push({name:t,func:n})}})),ur[wo(n,b).name]=[{name:"wrapper",func:n}],kr.prototype.clone=function(){var e=new kr(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},kr.prototype.reverse=function(){if(this.__filtered__){var e=new kr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},kr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ea(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Zn(t,e+s);break;case"takeRight":e=Jn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,h=Zn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return Ki(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var b=u[m],y=b.iteratee,v=b.type,w=y(g);if(v==O)g=w;else if(!w){if(v==N)continue e;break e}}f[p++]=g}return f},vr.prototype.at=Gs,vr.prototype.chain=function(){return qs(this)},vr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===n&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},vr.prototype.plant=function(e){for(var t,r=this;r instanceof _r;){var i=vs(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof kr){var t=e;return this.__actions__.length&&(t=new kr(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new xr(t,this.__chain__)}return this.thru(Ls)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Ki(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Ot&&(vr.prototype[Ot]=function(){return this}),vr}();qt?((qt.exports=Gn)._=Gn,Wt._=Gn):Vt._=Gn}).call(Mi)}(Jj,Jj.exports);const Zj=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),Xj=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),eR={onMouseEnter:Zj,onMouseLeave:Xj},tR=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?eR:{}};function nR(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var rR="undefined"!=typeof window&&"undefined"!=typeof document;function iR(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function oR(){return rR&&document.createElement("div")}function sR(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!sR(e[n],t[n]))return!1}return!0}return!1}function aR(e){var t=[];return e.forEach((function(e){t.find((function(t){return sR(e,t)}))||t.push(e)})),t}var lR=rR?y:h;function cR(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var uR={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||cR(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&cR(t,"remove",e.props.className)},onAfterUpdate:r}}};function dR(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,s=t.render,a=t.reference,l=t.disabled,u=void 0!==l&&l,h=t.ignoreAttributes,f=void 0===h||h;t.__source,t.__self;var m,g,y=nR(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),v=void 0!==i,w=void 0!==o,_=d(!1),x=_[0],k=_[1],E=d({}),M=E[0],C=E[1],D=d(),S=D[0],A=D[1],N=(m=function(){return{container:oR(),renders:1}},(g=p()).current||(g.current="function"==typeof m?m():m),g.current),O=Object.assign({ignoreAttributes:f},y,{content:N.container});v&&(O.trigger="manual",O.hideOnClick=!1),w&&(u=!0);var T=O,I=O.plugins||[];s&&(T=Object.assign({},O,{plugins:w&&null!=o.data?[].concat(I,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):I,render:function(){return{popper:N.container}}}));var L=[a].concat(n?[n.type]:[]);return lR((function(){var t=a;a&&a.hasOwnProperty("current")&&(t=a.current);var n=e(t||N.ref||oR(),Object.assign({},T,{plugins:[uR].concat(O.plugins||[])}));return N.instance=n,u&&n.disable(),i&&n.show(),w&&o.hook({instance:n,content:r,props:T,setSingletonContent:A}),k(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),L),lR((function(){var e;if(1!==N.renders){var t,n,s,a,l=N.instance;l.setProps((t=l.props,n=T,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:aR([].concat((null==(s=t.popperOptions)?void 0:s.modifiers)||[],(null==(a=n.popperOptions)?void 0:a.modifiers)||[]))})}))),null==(e=l.popperInstance)||e.forceUpdate(),u?l.disable():l.enable(),v&&(i?l.show():l.hide()),w&&o.hook({instance:l,content:r,props:T,setSingletonContent:A})}else N.renders++})),lR((function(){var e;if(s){var t=N.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&M.escaped===(null==r?void 0:r.hasPopperEscaped)||C({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),c.createElement(c.Fragment,null,n?b(n,{ref:function(e){N.ref=e,iR(n.ref,e)}}):null,x&&ke(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),S,N.instance):r,N.container))}}var pR=function(e,t){return g((function(n,r){var i=n.children,o=nR(n,["children"]);return c.createElement(e,Object.assign({},t,o),i?b(i,{ref:function(e){iR(r,e),iR(i.ref,e)}}):null)}))},hR=pR(dR(xD));class fR extends c.Component{constructor(e){super(e),gb(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),gb(this,"selectItem",(e=>{const{items:t,editor:n,range:r}=this.props,i=t[e],o=i&&i.command,s=ls(i.items);o&&s&&i.command({editor:n,range:r})})),gb(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),gb(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),gb(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),gb(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),gb(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:r}=this.state,i=n[r];i&&!ls(i.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=c.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:r}=this.props,i=n===r;t!==e.items&&this.setState({selectedIndex:0}),YL({wrapperRef:this.menuRef,index:this.state.selectedIndex}),i?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:t,activeMenuIndex:n}=this.props,{selectedIndex:r}=this.state,i=t===n;return c.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,n)=>{const o=ls(e.items),s=c.createElement(mR,{index:n,item:e,key:e.title,selectItem:()=>o&&this.selectItem(n),selectedIndex:i?r:-1,onHover:()=>this.setState({selectedIndex:n})});return o?s:c.createElement(hR,{interactive:!0,key:e.title,placement:"right",visible:r===n,content:c.createElement(fR,hv({},this.props,{items:e.items,menuIndex:t+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},s)})))}}const mR=g(((e,t)=>{let{item:n,selectedIndex:r,index:i,selectItem:o,onHover:s}=e;const{Icon:a}=n;return c.createElement("div",{"data-cy":`neeto-editor-command-list-item-${i}`,ref:t,className:gl("neeto-editor-slash-commands__item",{active:i===r}),onClick:o,onMouseEnter:s},a&&c.createElement(a,{size:20}),c.createElement("div",{className:"neeto-editor-slash-commands__item-content"},c.createElement("h5",null,n.title),c.createElement("p",null,n.description)))}));class gR extends c.Component{constructor(){super(...arguments),gb(this,"state",{activeMenuIndex:0}),gb(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),gb(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return c.createElement(fR,hv({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const bR=[{optionName:er.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:$,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:er.H1,title:"H1",description:"Add a big heading.",Icon:V,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:er.H2,title:"H2",description:"Add a sub-heading.",Icon:W,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:er.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:er.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:er.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:er.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:er.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:K,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:er.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:G,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:er.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:Y,command:n},{optionName:er.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:Q,command:n},{optionName:er.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:J,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:er.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:Z,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:er.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:X,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:er.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:ee,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:er.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:te,command:n},{optionName:er.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:ne,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}},{optionName:er.TABLE,title:"Table",description:"Add a table",Icon:re,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).insertTable({rows:3,cols:3,withHeaderRow:!0}).run()}}],yR={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},vR=e=>{let{options:t,addonCommands:n,setMediaUploader:r,setIsEmbedModalOpen:i}=e;const o=bR.map((e=>e.optionName===er.IMAGE_UPLOAD?ve("command",(e=>t=>{let{editor:n,range:r}=t;e(ve("image",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===er.VIDEO_UPLOAD?ve("command",(e=>t=>{let{editor:n,range:r}=t;e(ve("video",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===er.VIDEO_EMBED?ve("command",(e=>t=>{let{editor:n,range:r}=t;e(!0),n.chain().focus().deleteRange(r).run()})(i),e):e));return[...o.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},wR=new Xn("commands");var _R=e=>{let{addonCommands:t,options:n,setMediaUploader:r,setIsEmbedModalOpen:i}=e;const o=vR({options:n,addonCommands:t,setMediaUploader:r,setIsEmbedModalOpen:i});return wE.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:wR,command:e=>{let{editor:t,range:n,props:r}=e;r.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=o.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return Jj.exports.isEmpty(n)?[yR]:n},render:()=>{let e,t;return{onStart:n=>{e=new jD(gR,{props:n,editor:n.editor}),t=xD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),Zj()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),Xj()}}}}}),addProseMirrorPlugins(){return[lT({editor:this.editor,...this.options.suggestion})]}})};const xR=new Xn("special-mention"),kR=e=>{var t;let{options:n,node:r}=e;return`${n.suggestion.char}${null!==(t=r.attrs.label)&&void 0!==t?t:r.attrs.id}`},ER={char:"@@",pluginKey:xR,render:()=>{let e,t;return{onStart:n=>{e=new jD(QL,{props:n,editor:n.editor}),t=xD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){var r;return"Escape"===n.event.key?(t[0].hide(),!0):null===(r=e.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit(){t[0].destroy(),e.destroy()}}}},MR=GL.extend({name:"special-mention",renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",nE({"data-type":this.name},this.options.HTMLAttributes,n),kR({options:this.options,node:t})]}});var CR=e=>{let{suggestion:t={},...n}=e;return MR.configure({...n,suggestion:{...ER,...t}})};let DR,SR;if("undefined"!=typeof WeakMap){let e=new WeakMap;DR=t=>e.get(t),SR=(t,n)=>(e.set(t,n),n)}else{let e=[],t=10,n=0;DR=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},SR=(r,i)=>(n==t&&(n=0),e[n++]=r,e[n++]=i)}class AR{constructor(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r}}class NR{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,o=r+1,s=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;s<this.height&&this.map[t+this.width*e]==n;e++)s++;return new AR(r,i,o,s)}throw new RangeError("No cell with offset "+e+" found")}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")}nextCell(e,t,n){let{left:r,right:i,top:o,bottom:s}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:s,right:a,top:l,bottom:c}=this.findCell(t);return new AR(Math.min(n,s),Math.min(i,l),Math.max(r,a),Math.max(o,c))}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let o=r*this.width+i,s=this.map[o];n[s]||(n[s]=!0,i==e.left&&i&&this.map[o-1]==s||r==e.top&&r&&this.map[o-this.width]==s||t.push(s))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return DR(e)||SR(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),o=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,r=[],i=0,o=null,s=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let a=0,l=0;a<n;a++){let c=e.child(a);l++;for(let e=0;;e++){for(;i<r.length&&0!=r[i];)i++;if(e==c.childCount)break;let u=c.child(e),{colspan:d,rowspan:p,colwidth:h}=u.attrs;for(let e=0;e<p;e++){if(e+a>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:l,n:p-e});break}let c=i+e*t;for(let e=0;e<d;e++){0==r[c+e]?r[c+e]=l:(o||(o=[])).push({type:"collision",row:a,pos:l,n:d-e});let n=h&&h[e];if(n){let r=(c+e)%t*2,i=s[r];null==i||i!=n&&1==s[r+1]?(s[r]=n,s[r+1]=1):i==n&&s[r+1]++}}}i+=d,l+=u.nodeSize}let u=(a+1)*t,d=0;for(;i<u;)0==r[i++]&&d++;d&&(o||(o=[])).push({type:"missing",row:a,n:d}),l++}let a=new NR(t,n,r,o),l=!1;for(let e=0;!l&&e<s.length;e+=2)null!=s[e]&&s[e+1]<n&&(l=!0);l&&function(e,t,n){e.problems||(e.problems=[]);for(let r=0,i={};r<e.map.length;r++){let o=e.map[r];if(i[o])continue;i[o]=!0;let s=n.nodeAt(o),a=null;for(let n=0;n<s.attrs.colspan;n++){let i=t[2*((r+n)%e.width)];null==i||s.attrs.colwidth&&s.attrs.colwidth[n]==i||((a||(a=OR(s.attrs)))[n]=i)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}(a,s,e);return a}(e))}}function OR(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function TR(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}const IR=new Xn("selectingCells");function LR(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function jR(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function RR(e){let t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:LR(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head)}function zR(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function FR(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function PR(e,t,n){let r=e.start(-1),i=NR.get(e.node(-1)).nextCell(e.pos-r,t,n);return null==i?null:e.node(0).resolve(r+i)}function BR(e,t,n){let r={};for(let t in e)r[t]=e[t];return r[t]=n,r}function UR(e,t,n=1){let r=BR(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some((e=>e>0))||(r.colwidth=null)),r}function HR(e,t,n=1){let r=BR(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}class $R extends Sn{constructor(e,t=e){let n=e.node(-1),r=NR.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),s=e.node(0),a=r.cellsInRect(o).filter((e=>e!=t.pos-i));a.unshift(t.pos-i);let l=a.map((e=>{let t=n.nodeAt(e),r=e+i+1;return new An(s.resolve(r),s.resolve(r+t.content.size))}));super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(e,t){let n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(zR(n)&&zR(r)&&FR(n,r)){let e=this.$anchorCell.node(-1)!=n.node(-1);return e&&this.isRowSelection()?$R.rowSelection(n,r):e&&this.isColSelection()?$R.colSelection(n,r):new $R(n,r)}return Tn.between(n,r)}content(){let e=this.$anchorCell.node(-1),t=NR.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let n=r.top;n<r.bottom;n++){let s=[];for(let o=n*t.width+r.left,a=r.left;a<r.right;a++,o++){let n=t.map[o];if(!i[n]){i[n]=!0;let o=t.findCell(n),a=e.nodeAt(n),l=r.left-o.left,c=o.right-r.right;if(l>0||c>0){let e=a.attrs;l>0&&(e=UR(e,0,l)),c>0&&(e=UR(e,e.colspan-c,c)),a=o.left<r.left?a.type.createAndFill(e):a.type.create(e,a.content)}if(o.top<r.top||o.bottom>r.bottom){let e=BR(a.attrs,"rowspan",Math.min(o.bottom,r.bottom)-Math.max(o.top,r.top));a=o.top<r.top?a.type.createAndFill(e):a.type.create(e,a.content)}s.push(a)}}o.push(e.child(n).copy(Oe.from(s)))}const s=this.isColSelection()&&this.isRowSelection()?e:o;return new ze(Oe.from(s),1,1)}replace(e,t=ze.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n);e.replace(a.map(o.pos),a.map(s.pos),i?ze.empty:t)}let i=Sn.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new ze(Oe.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=NR.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){let n=NR.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),s=e.node(0);return i.top<=o.top?(i.top>0&&(e=s.resolve(r+n.map[i.left])),o.bottom<n.height&&(t=s.resolve(r+n.map[n.width*(n.height-1)+o.right-1]))):(o.top>0&&(t=s.resolve(r+n.map[o.left])),i.bottom<n.height&&(e=s.resolve(r+n.map[n.width*(n.height-1)+i.right-1]))),new $R(e,t)}isRowSelection(){let e=NR.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),r=e.colCount(this.$headCell.pos-t);if(Math.min(n,r)>0)return!1;let i=n+this.$anchorCell.nodeAfter.attrs.colspan,o=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,o)==e.width}eq(e){return e instanceof $R&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){let n=NR.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),s=e.node(0);return i.left<=o.left?(i.left>0&&(e=s.resolve(r+n.map[i.top*n.width])),o.right<n.width&&(t=s.resolve(r+n.map[n.width*(o.top+1)-1]))):(o.left>0&&(t=s.resolve(r+n.map[o.top*n.width])),i.right<n.width&&(e=s.resolve(r+n.map[n.width*(i.top+1)-1]))),new $R(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new $R(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new $R(e.resolve(t),e.resolve(n))}getBookmark(){return new VR(this.$anchorCell.pos,this.$headCell.pos)}}$R.prototype.visible=!1,Sn.jsonID("cell",$R);class VR{constructor(e,t){this.anchor=e,this.head=t}map(e){return new VR(e.map(this.anchor),e.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&FR(t,n)?new $R(t,n):Sn.near(n,1)}}function WR(e){if(!(e.selection instanceof $R))return null;let t=[];return e.selection.forEachCell(((e,n)=>{t.push(Jx.node(n,n+e.nodeSize,{class:"selectedCell"}))})),ek.create(e.doc,t)}function qR(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole);)n--,r--,t=t.firstChild.content;let i=t.firstChild,o=i.type.spec.tableRole,s=i.type.schema,a=[];if("row"==o)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,o=e?0:Math.max(0,n-1),l=e<t.childCount-1?0:Math.max(0,r-1);(o||l)&&(i=KR(TR(s).row,new ze(i,o,l)).content),a.push(i)}else{if("cell"!=o&&"header_cell"!=o)return null;a.push(n||r?KR(TR(s).row,new ze(t,n,r)).content:t)}return function(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:i,colspan:o}=r.child(t).attrs;for(let t=e;t<e+i;t++)n[t]=(n[t]||0)+o}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(Oe.empty),n[i]<r){let o=TR(e).cell.createAndFill(),s=[];for(let e=n[i];e<r;e++)s.push(o);t[i]=t[i].append(Oe.from(s))}return{height:t.length,width:r,rows:t}}(s,a)}function KR(e,t){let n=e.createAndFill();return new Cn(n).replace(0,n.content.size,t).doc}function GR(e,t,n,r,i,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=i;c<o;c++){let i=s*t.width+c,o=t.map[i];if(t.map[i-t.width]==o){l=!0;let i=n.nodeAt(o),{top:u,left:d}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(a).map(o+r),null,BR(i.attrs,"rowspan",s-u)),e.insert(e.mapping.slice(a).map(t.positionAt(s,d,n)),i.type.createAndFill(BR(i.attrs,"rowspan",u+i.attrs.rowspan-s))),c+=i.attrs.colspan-1}}return l}function YR(e,t,n,r,i,o,s,a){if(0==s||s==t.width)return!1;let l=!1;for(let c=i;c<o;c++){let i=c*t.width+s,o=t.map[i];if(t.map[i-1]==o){l=!0;let i=n.nodeAt(o),u=t.colCount(o),d=e.mapping.slice(a).map(o+r);e.setNodeMarkup(d,null,UR(i.attrs,s-u,i.attrs.colspan-(s-u))),e.insert(d+i.nodeSize,i.type.createAndFill(UR(i.attrs,0,s-u))),c+=i.attrs.rowspan-1}}return l}function QR(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc,s=NR.get(o),{top:a,left:l}=r,c=l+i.width,u=a+i.height,d=e.tr,p=0;function h(){o=n?d.doc.nodeAt(n-1):d.doc,s=NR.get(o),p=d.mapping.maps.length}(function(e,t,n,r,i,o,s){let a,l,c=TR(e.doc.type.schema);if(i>t.width)for(let o=0,u=0;o<t.height;o++){let d=n.child(o);u+=d.nodeSize;let p,h=[];p=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):l||(l=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)h.push(p);e.insert(e.mapping.slice(s).map(u-1+r),h)}if(o>t.height){let u=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==c.header_cell;u.push(i?l||(l=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,Oe.from(u)),p=[];for(let e=t.height;e<o;e++)p.push(d);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),p)}return!(!a&&!l)})(d,s,o,n,c,u,p)&&h(),GR(d,s,o,n,l,c,a,p)&&h(),GR(d,s,o,n,l,c,u,p)&&h(),YR(d,s,o,n,a,u,l,p)&&h(),YR(d,s,o,n,a,u,c,p)&&h();for(let e=a;e<u;e++){let t=s.positionAt(e,l,o),r=s.positionAt(e,c,o);d.replace(d.mapping.slice(p).map(t+n),d.mapping.slice(p).map(r+n),new ze(i.rows[e-a],0,0))}h(),d.setSelection(new $R(d.doc.resolve(n+s.positionAt(a,l,o)),d.doc.resolve(n+s.positionAt(u-1,c-1,o)))),t(d)}const JR=Fk({ArrowLeft:XR("horiz",-1),ArrowRight:XR("horiz",1),ArrowUp:XR("vert",-1),ArrowDown:XR("vert",1),"Shift-ArrowLeft":ez("horiz",-1),"Shift-ArrowRight":ez("horiz",1),"Shift-ArrowUp":ez("vert",-1),"Shift-ArrowDown":ez("vert",1),Backspace:tz,"Mod-Backspace":tz,Delete:tz,"Mod-Delete":tz});function ZR(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function XR(e,t){return(n,r,i)=>{let o=n.selection;if(o instanceof $R)return ZR(n,r,Sn.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let s=oz(i,e,t);if(null==s)return!1;if("horiz"==e)return ZR(n,r,Sn.near(n.doc.resolve(o.head+t),t));{let i,o=n.doc.resolve(s),a=PR(o,e,t);return i=a?Sn.near(a,1):t<0?Sn.near(n.doc.resolve(o.before(-1)),-1):Sn.near(n.doc.resolve(o.after(-1)),1),ZR(n,r,i)}}}function ez(e,t){return(n,r,i)=>{let o=n.selection;if(!(o instanceof $R)){let r=oz(i,e,t);if(null==r)return!1;o=new $R(n.doc.resolve(r))}let s=PR(o.$headCell,e,t);return!!s&&ZR(n,r,new $R(o.$anchorCell,s))}}function tz(e,t){let n=e.selection;if(!(n instanceof $R))return!1;if(t){let r=e.tr,i=TR(e.schema).cell.createAndFill().content;n.forEachCell(((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new ze(i,0,0))})),r.docChanged&&t(r)}return!0}function nz(e,t){let n=LR(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new $R(n))),!0)}function rz(e,t,n){if(!jR(e.state))return!1;let r=qR(n),i=e.state.selection;if(i instanceof $R){r||(r={width:1,height:1,rows:[Oe.from(KR(TR(e.state.schema).cell,n))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=NR.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=function({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let o=n[e],s=[];for(let n=t[e]||0,i=0;n<r;i++){let a=o.child(i%o.childCount);n+a.attrs.colspan>r&&(a=a.type.create(UR(a.attrs,a.attrs.colspan,n+a.attrs.colspan-r),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;n<a.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+a.attrs.colspan}i.push(Oe.from(s))}n=i,e=r}if(t!=i){let e=[];for(let r=0,o=0;r<i;r++,o++){let s=[],a=n[o%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);r+t.attrs.rowspan>i&&(t=t.type.create(BR(t.attrs,"rowspan",Math.max(1,i-t.attrs.rowspan)),t.content)),s.push(t)}e.push(Oe.from(s))}n=e,t=i}return{width:e,height:t,rows:n}}(r,s.right-s.left,s.bottom-s.top),QR(e.state,e.dispatch,o,s,r),!0}if(r){let t=RR(e.state),n=t.start(-1);return QR(e.state,e.dispatch,n,NR.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function iz(e,t){if(t.ctrlKey||t.metaKey)return;let n,r=sz(e,t.target);if(t.shiftKey&&e.state.selection instanceof $R)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=LR(e.state.selection.$anchor))&&az(e,t).pos!=n.pos)i(n,t),t.preventDefault();else if(!r)return;function i(t,n){let r=az(e,n),i=null==IR.getState(e.state);if(!r||!FR(t,r)){if(!i)return;r=t}let o=new $R(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(IR,t.pos),e.dispatch(n)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),null!=IR.getState(e.state)&&e.dispatch(e.state.tr.setMeta(IR,-1))}function s(n){let s,a=IR.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(sz(e,n.target)!=r&&(s=az(e,t),!s))return o();s&&i(s,n)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function oz(e,t,n){if(!(e.state.selection instanceof Tn))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=r.before(i),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?o:null}}return null}function sz(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function az(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?LR(e.state.doc.resolve(n.pos)):null}const lz=new Xn("fix-tables");function cz(e,t,n,r){let i=e.childCount,o=t.childCount;e:for(let s=0,a=0;s<o;s++){let o=t.child(s);for(let t=a,r=Math.min(i,s+3);t<r;t++)if(e.child(t)==o){a=t+1,n+=o.nodeSize;continue e}r(o,n),a<i&&e.child(a).sameMarkup(o)?cz(e.child(a),o,n+1,r):o.nodesBetween(0,o.content.size,r,n+1),n+=o.nodeSize}}function uz(e,t){let n,r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let i=NR.get(t);if(!i.problems)return r;r||(r=e.tr);let o,s,a=[];for(let e=0;e<i.height;e++)a.push(0);for(let e=0;e<i.problems.length;e++){let o=i.problems[e];if("collision"==o.type){let e=t.nodeAt(o.pos);for(let t=0;t<e.attrs.rowspan;t++)a[o.row+t]+=o.n;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,UR(e.attrs,e.attrs.colspan-o.n,o.n))}else if("missing"==o.type)a[o.row]+=o.n;else if("overlong_rowspan"==o.type){let e=t.nodeAt(o.pos);r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,BR(e.attrs,"rowspan",e.attrs.rowspan-o.n))}else if("colwidth mismatch"==o.type){let e=t.nodeAt(o.pos);r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,BR(e.attrs,"colwidth",o.colwidth))}}for(let e=0;e<a.length;e++)a[e]&&(null==o&&(o=e),s=e);for(let l=0,c=n+1;l<i.height;l++){let n=t.child(l),i=c+n.nodeSize,u=a[l];if(u>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let a=[];for(let n=0;n<u;n++)a.push(TR(e.schema)[t].createAndFill());let d=0!=l&&o!=l-1||s!=l?i-1:c+1;r.insert(r.mapping.map(d),a)}c=i}return r.setMeta(lz,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&cz(t.doc,e.doc,0,r):e.doc.descendants(r),n}function dz(e){let t,n=e.selection,r=RR(e),i=r.node(-1),o=r.start(-1),s=NR.get(i);return t=n instanceof $R?s.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):s.findCell(r.pos-o),t.tableStart=o,t.map=s,t.table=i,t}function pz(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;(function(e,t,n){let r=TR(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0})(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let s=0;s<t.height;s++){let a=s*t.width+i;if(i>0&&i<t.width&&t.map[a-1]==t.map[a]){let o=t.map[a],l=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,HR(l.attrs,i-t.colCount(o))),s+=l.attrs.rowspan-1}else{let l=null==o?TR(r.type.schema).cell:r.nodeAt(t.map[a+o]).type,c=t.positionAt(s,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function hz(e,{map:t,table:n,tableStart:r},i){let o=e.mapping.maps.length;for(let s=0;s<t.height;){let a=s*t.width+i,l=t.map[a],c=n.nodeAt(l);if(i>0&&t.map[a-1]==l||i<t.width-1&&t.map[a+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,UR(c.attrs,i-t.colCount(l)));else{let t=e.mapping.slice(o).map(r+l);e.delete(t,t+c.nodeSize)}s+=c.attrs.rowspan}}function fz(e,{map:t,tableStart:n,table:r},i){let o=n;for(let e=0;e<i;e++)o+=r.child(e).nodeSize;let s=[],a=i>0?-1:0;(function(e,t,n){let r=TR(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if(t.nodeAt(e.map[i+n*e.width]).type!=r)return!1;return!0})(t,r,i+a)&&(a=0==i||i==t.height?null:0);for(let o=0,l=t.width*i;o<t.width;o++,l++)if(i>0&&i<t.height&&t.map[l]==t.map[l-t.width]){let i=t.map[l],s=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,BR(s,"rowspan",s.rowspan+1)),o+=s.colspan-1}else{let e=null==a?TR(r.type.schema).cell:r.nodeAt(t.map[l+a*t.width]).type;s.push(e.createAndFill())}return e.insert(o,TR(r.type.schema).row.create(null,s)),e}function mz(e,{map:t,table:n,tableStart:r},i){let o=0;for(let e=0;e<i;e++)o+=n.child(e).nodeSize;let s=o+n.child(i).nodeSize,a=e.mapping.maps.length;e.delete(o+r,s+r);for(let o=0,s=i*t.width;o<t.width;o++,s++){let l=t.map[s];if(i>0&&l==t.map[s-t.width]){let t=n.nodeAt(l).attrs;e.setNodeMarkup(e.mapping.slice(a).map(l+r),null,BR(t,"rowspan",t.rowspan-1)),o+=t.colspan-1}else if(i<t.width&&l==t.map[s+t.width]){let s=n.nodeAt(l),c=s.type.create(BR(s.attrs,"rowspan",s.attrs.rowspan-1),s.content),u=t.positionAt(i+1,o,n);e.insert(e.mapping.slice(a).map(r+u),c),o+=s.attrs.colspan-1}}}function gz(e){let t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function bz(e,t){let n=e.selection;if(!(n instanceof $R)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=dz(e),{map:i}=r;if(function({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,s=(r.bottom-1)*e+r.left,a=i+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[a]==n[a+1])return!0;o+=e,a+=e}for(let o=r.left;o<r.right;o++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[s]==n[s+e])return!0;i++,s++}return!1}(i,r))return!1;if(t){let n,o,s=e.tr,a={},l=Oe.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let c=i.map[e*i.width+t],u=r.table.nodeAt(c);if(!a[c])if(a[c]=!0,null==n)n=c,o=u;else{gz(u)||(l=l.append(u.content));let e=s.mapping.map(c+r.tableStart);s.delete(e,e+u.nodeSize)}}if(s.setNodeMarkup(n+r.tableStart,null,BR(HR(o.attrs,o.attrs.colspan,r.right-r.left-o.attrs.colspan),"rowspan",r.bottom-r.top)),l.size){let e=n+1+o.content.size,t=gz(o)?n+1:e;s.replaceWith(t+r.tableStart,e+r.tableStart,l)}s.setSelection(new $R(s.doc.resolve(n+r.tableStart))),t(s)}return!0}function yz(e,t){const n=TR(e.schema);return(r=({node:e})=>n[e.type.spec.tableRole],(e,t)=>{let n,i,o=e.selection;if(o instanceof $R){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;n=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{if(n=function(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from),!n)return!1;i=LR(o.$from).pos}if(1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(t){let s=n.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=BR(s,"rowspan",1)),s.colspan>1&&(s=BR(s,"colspan",1));let c,u=dz(e),d=e.tr;for(let e=0;e<u.right-u.left;e++)a.push(l?BR(s,"colwidth",l&&l[e]?[l[e]]:null):s);for(let e=u.top;e<u.bottom;e++){let t=u.map.positionAt(e,u.left,u.table);e==u.top&&(t+=n.nodeSize);for(let i=u.left,o=0;i<u.right;i++,o++)i==u.left&&e==u.top||d.insert(c=d.mapping.map(t+u.tableStart,1),r({node:n,row:e,col:i}).createAndFill(a[o]))}d.setNodeMarkup(i,r({node:n,row:u.top,col:u.left}),a[0]),o instanceof $R&&d.setSelection(new $R(d.doc.resolve(o.$anchorCell.pos),c&&d.doc.resolve(c))),t(d)}return!0})(e,t);var r}function vz(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){const i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function wz(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!jR(t))return!1;if(n){let r=TR(t.schema),i=dz(t),o=t.tr,s=i.map.cellsInRect("column"==e?new AR(i.left,0,i.right,i.map.height):"row"==e?new AR(0,i.top,i.map.width,i.bottom):i),a=s.map((e=>i.table.nodeAt(e)));for(let e=0;e<s.length;e++)a[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[e],r.cell,a[e].attrs);if(0==o.steps.length)for(let e=0;e<s.length;e++)o.setNodeMarkup(i.tableStart+s[e],r.header_cell,a[e].attrs);n(o)}return!0}}(e):function(t,n){if(!jR(t))return!1;if(n){let r=TR(t.schema),i=dz(t),o=t.tr,s=vz("row",i,r),a=vz("column",i,r),l=("column"===e?s:"row"===e&&a)?1:0,c="column"==e?new AR(0,l,1,i.map.height):"row"==e?new AR(l,0,i.map.width,1):i,u="column"==e?a?r.cell:r.header_cell:"row"==e?s?r.cell:r.header_cell:r.cell;i.map.cellsInRect(c).forEach((e=>{const t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,u,n.attrs)})),n(o)}return!0}}wz("row",{useDeprecatedLogic:!0}),wz("column",{useDeprecatedLogic:!0});let _z=wz("cell",{useDeprecatedLogic:!0});function xz(e){return function(t,n){if(!jR(t))return!1;let r=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t);if(r.childCount)return n-1-r.lastChild.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}}(RR(t),e);if(null!=r){if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(Tn.between(e,(i=e,i.node(0).resolve(i.pos+i.nodeAfter.nodeSize)))).scrollIntoView())}var i;return!0}}}class kz{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Ez(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Ez(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}}function Ez(e,t,n,r,i,o){let s=0,a=!0,l=t.firstChild,c=e.firstChild;for(let e=0,n=0;e<c.childCount;e++){let{colspan:u,colwidth:d}=c.child(e).attrs;for(let e=0;e<u;e++,n++){let c=i==n?o:d&&d[e],u=c?c+"px":"";s+=c||r,c||(a=!1),l?(l.style.width!=u&&(l.style.width=u),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=u}}for(;l;){let e=l.nextSibling;l.parentNode.removeChild(l),l=e}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}const Mz=new Xn("tableColumnResizing");function Cz({handleWidth:e=5,cellMinWidth:t=25,View:n=kz,lastColumnResizable:r=!0}={}){let i=new Qn({key:Mz,state:{init(e,r){return this.spec.props.nodeViews[TR(r.schema).table.name]=(e,r)=>new n(e,t,r),new Dz(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>Mz.getState(e).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove(t,n){!function(e,t,n,r,i){let o=Mz.getState(e.state);if(!o.dragging){let r=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;if(r){let{left:i,right:o}=r.getBoundingClientRect();t.clientX-i<=n?s=Sz(e,t,"left"):o-t.clientX<=n&&(s=Sz(e,t,"right"))}if(s!=o.activeHandle){if(!i&&-1!==s){let t=e.state.doc.resolve(s),n=t.node(-1),r=NR.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}Nz(e,s)}}}(t,n,e,0,r)},mouseleave(e){!function(e){let t=Mz.getState(e.state);t.activeHandle>-1&&!t.dragging&&Nz(e,-1)}(e)},mousedown(e,n){!function(e,t,n){let r=Mz.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;let i=e.state.doc.nodeAt(r.activeHandle),o=function(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let e=0;e<n;e++)r[e]&&(s-=r[e],a--);return s/a}(e,r.activeHandle,i.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);let r=Mz.getState(e.state);r.dragging&&(!function(e,t,n){let r=e.state.doc.resolve(t),i=r.node(-1),o=NR.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<o.height;e++){let t=e*o.width+a;if(e&&o.map[t]==o.map[t-o.width])continue;let r=o.map[t],{attrs:c}=i.nodeAt(r),u=1==c.colspan?0:a-o.colCount(r);if(c.colwidth&&c.colwidth[u]==n)continue;let d=c.colwidth?c.colwidth.slice():Oz(c.colspan);d[u]=n,l.setNodeMarkup(s+r,null,BR(c,"colwidth",d))}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,Az(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Mz,{setDragging:null})))}function a(t){if(!t.which)return s(t);let r=Mz.getState(e.state),i=Az(r.dragging,t,n);!function(e,t,n,r){let i=e.state.doc.resolve(t),o=i.node(-1),s=i.start(-1),a=NR.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.domAtPos(i.start(-1)).node;for(;"TABLE"!=l.nodeName;)l=l.parentNode;Ez(o,l.firstChild,l,r,a,n)}(e,r.activeHandle,i,n)}e.dispatch(e.state.tr.setMeta(Mz,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,n,t)}},decorations(e){let t=Mz.getState(e);if(t.activeHandle>-1)return function(e,t){let n=[],r=e.doc.resolve(t),i=r.node(-1),o=NR.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan;for(let e=0;e<o.height;e++){let t=a+e*o.width-1;if(!(a!=o.width&&o.map[t]==o.map[t+1]||0!=e&&o.map[t-1]==o.map[t-1-o.width])){let e=o.map[t],r=s+e+i.nodeAt(e).nodeSize-1,a=document.createElement("div");a.className="column-resize-handle",n.push(Jx.widget(r,a))}}return ek.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return i}class Dz{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){let t=this,n=e.getMeta(Mz);if(n&&null!=n.setHandle)return new Dz(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Dz(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let n=e.mapping.map(t.activeHandle,-1);zR(e.doc.resolve(n))||(n=null),t=new Dz(n,t.dragging)}return t}}function Sz(e,t,n){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return-1;let{pos:i}=r,o=LR(e.state.doc.resolve(i));if(!o)return-1;if("right"==n)return o.pos;let s=NR.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function Az(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function Nz(e,t){e.dispatch(e.state.tr.setMeta(Mz,{setHandle:t}))}function Oz(e){let t=[];for(let n=0;n<e;n++)t.push(0);return t}function Tz({allowTableNodeSelection:e=!1}={}){return new Qn({key:IR,state:{init:()=>null,apply(e,t){let n=e.getMeta(IR);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:WR,handleDOMEvents:{mousedown:iz},createSelectionBetween(e){if(null!=IR.getState(e.state))return e.state.selection},handleTripleClick:nz,handleKeyDown:JR,handlePaste:rz},appendTransaction:(t,n,r)=>function(e,t,n){let r,i,o=(t||e).selection,s=(t||e).doc;if(o instanceof Ln&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)r=$R.create(s,o.from);else if("row"==i){let e=s.resolve(o.from+1);r=$R.rowSelection(e,e)}else if(!n){let e=NR.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];r=$R.create(s,t+1,n)}}else o instanceof Tn&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}(o)?r=Tn.create(s,o.from):o instanceof Tn&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(o)&&(r=Tn.create(s,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t}(r,uz(r,n),e)})}function Iz(e,t,n,r,i,o){let s=0,a=!0,l=t.firstChild;const c=e.firstChild;for(let e=0,n=0;e<c.childCount;e+=1){const{colspan:u,colwidth:d}=c.child(e).attrs;for(let e=0;e<u;e+=1,n+=1){const c=i===n?o:d&&d[e],u=c?`${c}px`:"";s+=c||r,c||(a=!1),l?(l.style.width!==u&&(l.style.width=u),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=u}}for(;l;){const e=l.nextSibling;l.parentNode.removeChild(l),l=e}a?(n.style.width=`${s}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${s}px`)}class Lz{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Iz(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,Iz(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}function jz(e,t){return t?e.createChecked(null,t):e.createAndFill()}function Rz(e,t,n,r,i){const o=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;const t={};return Object.keys(e.nodes).forEach((n=>{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)})),e.cached.tableNodeTypes=t,t}(e),s=[],a=[];for(let e=0;e<n;e+=1){const e=jz(o.cell,i);if(e&&a.push(e),r){const e=jz(o.header_cell,i);e&&s.push(e)}}const l=[];for(let e=0;e<t;e+=1)l.push(o.row.createChecked(null,r&&0===e?s:a));return o.table.createChecked(null,l)}const zz=({editor:e})=>{const{selection:t}=e.state;if(!(t instanceof $R))return!1;let n=0;const r=UE(t.ranges[0].$from,(e=>"table"===e.type.name));null==r||r.node.descendants((e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}));return n===t.ranges.length&&(e.commands.deleteTable(),!0)},Fz=pM.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Lz,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:e}){return["table",nE(this.options.HTMLAttributes,e),["tbody",0]]},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{const s=Rz(o.schema,e,t,n);if(i){const e=r.selection.anchor+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(Tn.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(pz(e.tr,n,n.left))}return!0}(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(pz(e.tr,n,n.right))}return!0}(e,t),deleteColumn:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;hz(r,n,e),e!=n.left;e--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=NR.get(n.table);t(r)}return!0}(e,t),addRowBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(fz(e.tr,n,n.top))}return!0}(e,t),addRowAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(fz(e.tr,n,n.bottom))}return!0}(e,t),deleteRow:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;mz(r,n,e),e!=n.top;e--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=NR.get(n.table);t(r)}return!0}(e,t),deleteTable:()=>({state:e,dispatch:t})=>function(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}(e,t),mergeCells:()=>({state:e,dispatch:t})=>bz(e,t),splitCell:()=>({state:e,dispatch:t})=>yz(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>wz("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>wz("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>_z(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!bz(e,t)||yz(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>function(e,t){return function(n,r){if(!jR(n))return!1;let i=RR(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){let o=n.tr;n.selection instanceof $R?n.selection.forEachCell(((n,r)=>{n.attrs[e]!==t&&o.setNodeMarkup(r,null,BR(n.attrs,e,t))})):o.setNodeMarkup(i.pos,null,BR(i.nodeAfter.attrs,e,t)),r(o)}return!0}}(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>xz(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>xz(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&uz(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){const n=$R.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:zz,"Mod-Backspace":zz,Delete:zz,"Mod-Delete":zz}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Cz({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Tz({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:e=>({tableRole:oE(Zk(e,"tableRole",{name:e.name,options:e.options,storage:e.storage}))})});class Pz{constructor(e,t){gb(this,"build",(()=>{this.dom.className="neeto-editor-table",this.wrapper.className="neeto-editor-table__wrapper",this.dom.appendChild(this.wrapper),this.wrapper.appendChild(this.table),this.table.appendChild(this.colgroup),this.table.appendChild(this.contentDOM),this.wrapper.appendChild(this.buildController({className:"neeto-editor-table__add-column",handleClick:this.insertColumn})),this.dom.appendChild(this.buildController({className:"neeto-editor-table__add-row",handleClick:()=>this.table.insertRow()})),this.resizeColumns()})),gb(this,"buildController",(e=>{let{className:t="",handleClick:r=n}=e;const i=document.createElement("div"),o=document.createElement("p");return i.className=t,i.onclick=r,o.textContent="+",i.appendChild(o),i})),gb(this,"insertColumn",(()=>{const e=document.createElement("td");e.appendChild(document.createElement("p")),this.table.querySelectorAll("tr").forEach((t=>t.appendChild(e.cloneNode(!0))))})),gb(this,"resizeColumns",(()=>{let e=0,t=!0,n=this.colgroup.firstChild;const r=this.node.firstChild;for(let i=0,o=0;i<r.childCount;++i){const{colspan:s,colwidth:a}=r.child(i).attrs;for(let r=0;r<s;++r,++o){const i=a&&a[r],o=i?`${i}px`:"";e+=i||this.cellMinWidth,i||(t=!1),n?(n.style.width!==o&&(n.style.width=o),n=n.nextSibling):this.colgroup.appendChild(document.createElement("col")).style.width=o}}for(;n;){const e=n.nextSibling;n.parentNode.removeChild(n),n=e}t?(this.table.style.width=`${e}px`,this.table.style.minWidth=""):(this.table.style.width="",this.table.style.minWidth=`${e}px`)})),this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.wrapper=document.createElement("div"),this.table=document.createElement("table"),this.colgroup=document.createElement("colgroup"),this.contentDOM=document.createElement("tbody"),this.build()}}var Bz=Fz.extend({addOptions:()=>({HTMLAttributes:{},resizable:!0,handleWidth:5,cellMinWidth:100,View:Pz,lastColumnResizable:!0,allowTableNodeSelection:!0})}).configure({});const Uz=e=>{let{onClickVariable:t,variables:n}=e;const r=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map(ve("category_key",r));t.push({label:i,variables:e})}else e.push(n)})),Jj.exports.isEmpty(e)||t.push({label:Jj.exports.isEmpty(t)?null:"Others",variables:e}),t}(n);return w(n)?null:c.createElement("div",{className:"neeto-editor-variables-list"},r.map(((e,n)=>{let{label:r,variables:i}=e;return c.createElement(Hz,{index:n,key:n,title:r,variables:i,onClickItem:t})})))},Hz=e=>{let{index:t,title:n,variables:r,onClickItem:i}=e;return c.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${t}`},n&&c.createElement("h6",null,n),c.createElement("div",{className:"neeto-editor-variables-row"},r.map((e=>c.createElement("button",{className:"neeto-editor-variable","data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,type:"button",onClick:()=>i(e)},e.label)))))},$z=e=>{let{items:t,command:n}=e;return c.createElement("div",{className:"neeto-editor-variables-suggestion"},c.createElement(Uz,{variables:t,onClickVariable:e=>{const{category_key:t,key:r}=e,i=t?`${t}.${r}`:r;n({label:i,id:i})}}))},Vz=new Xn("variables"),Wz=pM.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",nE({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,r=!1;const{selection:i}=n,{empty:o,anchor:s}=i;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return r=!0,t.insertText("",n,n+e.nodeSize),!1})),r)}))}},addProseMirrorPlugins(){return[lT({editor:this.editor,...this.options.suggestion})]}}),qz={char:"{{",startOfLine:!1,pluginKey:Vz,command:e=>{let{editor:t,range:n,props:r}=e;t.chain().focus().deleteRange(n).setVariable(r).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new jD($z,{props:n,editor:n.editor}),t=xD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var Kz=e=>{let{suggestion:t={}}=e;return Wz.configure({suggestion:{...qz,...t}})};const Gz=e=>{var t;let{node:n,editor:r,getPos:i,updateAttributes:o,deleteNode:s}=e;const a=p(null),{alt:l,src:u,vidheight:d,vidwidth:h,align:f}=n.attrs,{view:m}=r;let g=d,b=h;const y=a.current?null===(t=a.current.querySelector("figcaption>div"))||void 0===t?void 0:t.textContent:l;return c.createElement(LD,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},c.createElement("figure",{ref:a},c.createElement(PL,{align:f,deleteNode:s,updateAttributes:o}),c.createElement(FL,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:b},onResizeStop:(e,t,o)=>{g=o.offsetHeight,b=o.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(i(),void 0,{...n.attrs,vidheight:g,vidwidth:b,height:g,width:b})),r.commands.focus()}},c.createElement("video",hv({controls:!0},n.attrs,{alt:y,preload:"metadata",src:u}))),c.createElement(ID,{as:"figcaption",className:gl({"is-empty":w(y)})})))},Yz=pM.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:r,src:i,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:i,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${r}`},["figure",nE(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",nE(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>zD(Gz),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:r}=e;return r().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:r,selection:i}=t,o=r.resolve(i.to).end();return n.setTextSelection(o)})).run()}}}}}),Qz=e=>{let{placeholder:t,extensions:n,mentions:r,variables:i,isSlashCommandsActive:o,options:s,addonCommands:l,onSubmit:c,keyboardShortcuts:u,uploadEndpoint:d,isVideoEmbedActive:p,setMediaUploader:h,setIsEmbedModalOpen:f}=e,m=[QD,YD,SA,eS,iT,VL,EA,yL,uL,oT,qD,JD.configure({mode:"shallowest"}),Yz,$L({uploadEndpoint:d}),RN.configure({document:!1,codeBlock:!1,code:!1}),qL({onSubmit:c,shortcuts:u}),Qj.configure({placeholder:t}),Bz.configure({resizable:!0}),DA,CA,MA];if(p&&m.push(sT),o&&m.push(_R({options:s,addonCommands:l,setMediaUploader:h,setIsEmbedModalOpen:f})),!w(r)){const e=function(){const e=qj(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);return t=>{let{query:n}=t;if(!n)return e.slice(0,10);const r=new Wj(e,{keys:["name"],threshold:.25}).search(n).slice(0,10);return a("item",r)}}(r);m.push(Yj({suggestion:{items:e}})),m.push(CR({suggestion:{items:e}}))}return w(i)||m.push(Kz({suggestion:{items:()=>i}})),m=m.concat(n),m},Jz=e=>{var t;let{uppy:n}=e;const[r,i]=d(0);h((()=>{n.on("upload-progress",((e,t)=>{let{progress:n}=t;return i(n)}))}),[n]);const o=`${r}%`;return c.createElement("div",{className:"ne-media-uploader__progress"},c.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),c.createElement("p",{className:"ne-media-uploader__progress-file"},null===(t=n.getFiles()[0])||void 0===t?void 0:t.name),c.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},c.createElement("div",{className:"neeto-editor-progress-bar__percent"},c.createElement("p",null,o),c.createElement(D,{icon:B,size:"small",style:"text",onClick:()=>n.cancelAll()})),c.createElement("div",{className:"neeto-editor-progress-bar__indicator"},c.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:o}}))))},Zz=e=>{let{isImage:t,endpoint:n,onSuccess:r}=e;const i=t?cb:ub,{uppy:o,isUploading:s}=sv({endpoint:n,uppyConfig:i,onSuccess:r});return s?c.createElement(Jz,{uppy:o}):c.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},c.createElement(Cg,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:o,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${hb(i.restrictions.maxFileSize)}`}))},Xz=e=>{let{isImage:t,url:n,editor:r,onClose:i,alt:o="",setMediaUrl:s}=e;const{t:a}=Ga(),[l,u]=d(o||""),[p,h]=d(!1),f=()=>{t?r.chain().focus().setFigure({src:n,caption:l,alt:l}).run():r.chain().focus().setVideo({src:n,caption:l,alt:l}).run(),i()};return c.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&f()}},c.createElement(D,{icon:ie,iconPosition:"left",label:a("common.back"),size:"small",style:"text",onClick:()=>s("")}),p?c.createElement("div",{className:"ne-media-editor__error"},c.createElement("h2",null,"Something Went Wrong!"),c.createElement("p",null,"The selected media cannot be displayed. Please try again.")):c.createElement(c.Fragment,null,t?c.createElement("img",{loading:"lazy",src:n,onError:e=>{let{currentTarget:t}=e;h(!0),t.onerror=null}}):c.createElement("video",{src:n,onError:e=>{let{currentTarget:t}=e;h(!0),t.onerror=null}}),c.createElement(C,{autoFocus:!0,label:a("common.caption"),placeholder:"Enter a caption",value:l,onChange:e=>u(e.target.value)})),c.createElement("div",{className:"ne-media-editor__footer"},c.createElement(D,{disabled:p,label:a("common.save-changes"),onClick:f}),c.createElement(D,{label:a("common.cancel"),style:"text",onClick:i})))};var eF={},tF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function r(e,t){return t._once=!0,n(e,t),this}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&i(e,t),t.apply(n,o)})),this}return tF({},e,{on:n,once:r,off:i,emit:o})},rF=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,d=void 0,p=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,b=e.container.nodeType?e.container:document.querySelector(e.container),y={all:function(){return k(b.children)},new:function(){return k(b.children).filter((function(e){return!e.hasAttribute(""+f)}))}},v=[C,D,S],w=[A,N,O,T],_=nF({pack:j,update:R,resize:z});return _;function x(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function C(){r=M()}function D(){i=-1===r?m[m.length-1]:m[r]}function S(){s=E(i.columns)}function A(){d=y[t?"new":"all"]()}function N(){0!==d.length&&(p=d.map((function(e){return e.clientWidth})),h=d.map((function(e){return e.clientHeight})))}function O(){d.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*p[t]+o*i.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=p[t],u=h[t],c&&u&&(s[o]+=u+i.gutter)}))}function T(){b.style.position="relative",b.style.width=i.columns*c+(i.columns-1)*i.gutter+"px",b.style.height=Math.max.apply(Math,s)-i.gutter+"px"}function I(){n||(window.requestAnimationFrame(L),n=!0)}function L(){r!==M()&&(j(),_.emit("resize",i)),n=!1}function j(){return t=!1,x(v.concat(w)),_.emit("pack")}function R(){return t=!0,x(w),_.emit("update")}function z(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",I),_}}}),iF=Di(rF),oF={exports:{}},sF={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=c,i=s(r),o=s(Im.exports);function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,r=t.element,o=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return o&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),i.default.createElement(r,c,u)}}]),t}(r.Component);a.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t["default"]}(sF,sF.exports),oF.exports=sF.exports,Object.defineProperty(eF,"__esModule",{value:!0});var aF,lF,cF=eF.default=void 0,uF=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),dF=c,pF=gF(dF),hF=gF(Im.exports),fF=gF(iF),mF=gF(oF.exports);function gF(e){return e&&e.__esModule?e:{default:e}}function bF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yF(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var vF=(lF=aF=function(e){function t(){var e,n,r;bF(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=yF(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.setContainerRef=function(e){r.masonryContainer=e},r.forcePack=function(){r.masonryContainer&&r.state.instance.pack()},r.forceUpdate=function(){r.masonryContainer&&r.state.instance.update()},r.createNewInstance=function(){var e=r.props,t=e.packed,n=e.sizes,i=e.children,o=e.position,s=(0,fF.default)({container:r.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),i.length>0&&s.pack(),r.setState((function(){return{instance:s}}))},yF(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,dF.Component),uF(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style;e.pack,e.packed,e.position,e.sizes;var i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return pF.default.createElement(mF.default,i,pF.default.createElement("div",{ref:this.setContainerRef,className:n,style:r},t))}}]),t}(),aF.propTypes={children:hF.default.arrayOf(hF.default.element).isRequired,className:hF.default.string,initialLoad:hF.default.bool,pack:hF.default.bool,packed:hF.default.string,position:hF.default.bool,sizes:hF.default.array,style:hF.default.object},aF.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},lF);cF=eF.default=vF;const wF=e=>{let{onSubmit:t,unsplashApiKey:n}=e;const r=p(null),[i,o]=d(""),[s,a]=d(!1),[l,u]=d([]),[f,m]=d(1),[g,b]=d(!0),[y,v]=d(!1),w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[n,r]=d(e);return h((()=>{const n=setTimeout((()=>{r(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}(i||"latest");h((()=>{_(1)}),[w]);const _=async e=>{try{v(!0),a(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:r}=e;return ye.get(tr,{headers:{Authorization:`Client-ID ${r}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:w,apiKey:n}),{data:{results:r,total_pages:i}}=t;u(1===e?r:[...l,...r]),m(e+1),b(e<i)}catch{a(!0)}finally{v(!1)}},x=c.createElement("div",{className:"neeto-editor-unsplash-gallery__loader"},c.createElement(T,null));return c.createElement("div",{className:"neeto-editor-unsplash-wrapper"},c.createElement(C,{autoFocus:!0,className:"neeto-editor-unsplash-search","data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:i,onChange:e=>{let{target:{value:t}}=e;o(t)}}),s&&c.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!s&&!y&&ls(l)&&c.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!s&&c.createElement("div",{className:"neeto-editor-unsplash-container"},c.createElement(cF,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:g,loadMore:()=>{!y&&g&&f>1&&_(f)},loader:x,ref:r,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},l&&l.map(((e,n)=>c.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${n}`,key:n},c.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},c.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${n}`},c.createElement("img",{src:e.urls.regular,onClick:()=>t(e.urls.small)}),c.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!g&&c.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},_F=e=>{let{buttonLabel:t="Submit",placeholder:n,onSubmit:r,className:i}=e;const{t:o}=Ga(),[s,a]=d(""),[l,u]=d("");return c.createElement("div",{className:gl("neeto-editor-url-form__wrapper",{[i]:i})},c.createElement(C,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:l,name:"url",placeholder:n,value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>u("")}),c.createElement(D,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!s,label:t,onClick:e=>{e.preventDefault(),rr.test(s)?r(s):u(o("error.invalid-url"))}}))},xF=e=>{let{mediaUploader:t,onClose:n,editor:r,uploadEndpoint:i,unsplashApiKey:o}=e;const[s,a]=d("local"),[l,u]=d(""),p=t.image||t.video;let h=o?pb:pb.slice(0,2);t.video&&(h=[]);const f=()=>{n(),u(""),a("local")};return c.createElement(O,{closeButton:!1,isOpen:p,onClose:f},c.createElement("div",{className:"ne-media-uploader"},!ls(h)&&c.createElement(L,null,h.map((e=>{let{key:t,title:n}=e;return c.createElement(L.Item,{active:s===t,key:t,onClick:()=>{u(""),a(t)}},n)}))),c.createElement("div",{className:"ne-media-uploader__content"},l?c.createElement(Xz,{editor:r,isImage:t.image,setMediaUrl:u,url:l,onClose:f}):c.createElement(c.Fragment,null,"local"===s&&c.createElement(Zz,{endpoint:i,isImage:t.image,onSuccess:u}),"link"===s&&c.createElement(_F,{placeholder:"Paste the link here...",buttonLabel:t.image?"Upload image":"Upload video",onSubmit:u}),"unsplash"===s&&c.createElement(wF,{unsplashApiKey:o,onSubmit:u})))))};var kF=[],EF=[];function MF(e,t){if(e&&"undefined"!=typeof document){var n,r=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var s=kF.indexOf(o);-1===s&&(s=kF.push(o)-1,EF[s]={}),n=EF[s]&&EF[s][r]?EF[s][r]:EF[s][r]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var s="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}MF(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const CF=e=>{let{editor:t,handleClose:n,handleAnimateInvalidLink:r}=e;const[i,o]=d("");h((()=>{o(t.getAttributes("link").href||"")}),[t]);const s=()=>{rr.test(i)?(t.chain().focus().setLink({href:i}).run(),n()):ls(i)?(t.chain().focus().unsetLink().run(),n()):(o(""),r())};return c.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?n():"Enter"===e.key&&s()}},c.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:i,onChange:e=>{let{target:{value:t}}=e;return o(t)}}),c.createElement(D,{"data-cy":"neeto-editor-link-cancel-button",icon:B,size:"small",style:"icon",onClick:()=>{i?(o(""),t.chain().focus().unsetLink().run()):n()}}))},DF=e=>{let{editor:t,handleClose:n}=e;const{t:r}=Ga(),[i,o]=d(3),[s,a]=d(3);return c.createElement("div",{className:"neeto-editor-bubble-menu__table"},c.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-table__input","data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.rows"),type:"number",value:i,onChange:e=>o(e.target.value)}),c.createElement("input",{className:"neeto-editor-bubble-menu-table__input","data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.columns"),type:"number",value:s,onChange:e=>a(e.target.value)}),c.createElement("div",null,c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-table-option-create-button",icon:oe,style:"icon",onClick:()=>{t.chain().focus().insertTable({rows:i,cols:s,withHeaderRow:!0}).run(),o(3),a(3),n()}}),c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-table-option-create-button",icon:B,style:"icon",onClick:n})))},SF=e=>{let{tooltip:t,Icon:n,command:r,active:i,optionName:o,highlight:s}=e;return c.createElement(D,hv({"data-cy":`neeto-editor-bubble-menu-${o}-option`,icon:n,key:o,size:"small",style:i?"secondary":"text",tooltipProps:{content:t,position:"bottom",theme:"dark",delay:[500]},onClick:r},tR(s)))},AF=e=>{let{editor:t,mentions:n,tooltipContent:r}=e;const i=qj(n),{Menu:o,MenuItem:s}=A;return w(i)?null:c.createElement(A,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:se,strategy:"fixed",buttonProps:{tooltipProps:{content:r,position:"bottom"},className:"neeto-editor-fixed-menu__item"}},c.createElement(o,null,i.map((e=>{let{key:n,name:r,imageUrl:i}=e;return c.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${n}`,key:n,onClick:()=>t.commands.setMention({id:n,label:r})},c.createElement(I,{size:"small",user:{name:r,imageUrl:i}}),c.createElement(S,{style:"body2"},r))}))))},NF=e=>{let{editor:t,isActive:n,setActive:r,tooltipContent:i}=e;return c.createElement(A,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:X,isOpen:n,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>r((e=>!e)),onClose:()=>r(!1)},c.createElement(lL,{editor:t,setActive:r}))},OF=e=>{let{size:t,color:n,strokeWidth:r,...i}=e;return c.createElement("svg",hv({fill:"none",height:t,viewBox:"0 0 24 24",width:t},i),c.createElement("path",{d:"M13.8791 8.37527L8.39309 13.8613C7.56709 14.6873 7.56709 16.0273 8.39309 16.8533C9.21909 17.6793 10.5591 17.6793 11.3851 16.8533L18.6171 9.62127C20.1321 8.10627 20.1321 5.65027 18.6171 4.13527C17.1021 2.62027 14.6461 2.62027 13.1311 4.13527L5.89909 11.3673C3.69509 13.5713 3.69509 17.1433 5.89909 19.3473C8.10309 21.5513 11.6751 21.5513 13.8791 19.3473L18.2681 14.9583",stroke:n,strokeWidth:r}))};OF.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},OF.propTypes={color:Im.exports.string,size:Im.exports.oneOfType([Im.exports.string,Im.exports.number]),strokeWidth:Im.exports.oneOfType([Im.exports.string,Im.exports.number])};const{t:TF}=Ea,IF=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],LF=e=>{let{tooltips:t,editor:n,options:r,setMediaUploader:i,handleUploadAttachments:o,setIsEmbedModalOpen:s}=e;const a=(e=>{let{tooltips:t,editor:n,setMediaUploader:r,handleUploadAttachments:i,setIsEmbedModalOpen:o}=e;return{font:[{Icon:ae,command:()=>n.chain().focus().toggleBold().run(),active:n.isActive("bold"),optionName:"bold",tooltip:t.bold||TF("menu.bold")},{Icon:le,command:()=>n.chain().focus().toggleItalic().run(),active:n.isActive("italic"),optionName:"italic",tooltip:t.italic||TF("menu.italic")},{Icon:ce,command:()=>n.chain().focus().toggleUnderline().run(),active:n.isActive("underline"),optionName:"underline",tooltip:t.underline||TF("menu.underline")},{Icon:ue,command:()=>n.chain().focus().toggleStrike().run(),active:n.isActive("strike"),optionName:"strike",tooltip:t.strike||TF("menu.strike")},{Icon:de,command:()=>n.chain().focus().toggleHighlight().run(),active:n.isActive("highlight"),optionName:"highlight",tooltip:t.highlight||TF("menu.highlight")}],block:[{Icon:pe,command:()=>n.chain().focus().toggleBlockquote().run(),active:n.isActive("blockquote"),optionName:"block-quote",highlight:!0,tooltip:t.blockQuote||TF("menu.block-quote")},{Icon:Z,command:()=>n.chain().focus().toggleCode().run(),active:n.isActive("code"),optionName:"code",tooltip:t.code||TF("menu.code")}],list:[{Icon:G,command:()=>n.chain().focus().toggleBulletList().run(),active:n.isActive("bulletList"),optionName:"bullet-list",highlight:!0,tooltip:t.bulletList||TF("menu.bullet-list")},{Icon:K,command:()=>n.chain().focus().toggleOrderedList().run(),active:n.isActive("orderedList"),optionName:"ordered-list",highlight:!0,tooltip:t.orderedList||TF("menu.ordered-list")}],misc:[{Icon:OF,command:i,active:!1,optionName:"attachments",tooltip:t.attachments||TF("menu.attachments")},{Icon:Y,command:()=>r(ve("image",!0)),optionName:"image-upload",tooltip:t.imageUpload||TF("menu.image-upload")},{Icon:Q,command:()=>r(ve("video",!0)),optionName:"video-upload",tooltip:t.videoUpload||TF("menu.video-upload")},{Icon:te,command:()=>o(!0),optionName:"video-embed",tooltip:t.videoEmbed||TF("menu.video-embed")}],right:[{Icon:he,command:()=>n.chain().focus().undo().run(),active:!1,disabled:!n.can().undo(),optionName:"undo",tooltip:t.undo||TF("menu.undo")},{Icon:fe,command:()=>n.chain().focus().redo().run(),active:!1,disabled:!n.can().redo(),optionName:"redo",tooltip:t.redo||TF("menu.redo")}]}})({tooltips:t,editor:n,setMediaUploader:i,handleUploadAttachments:o,setIsEmbedModalOpen:s});return Ce(["font","block","list","misc","right"].map((e=>[e,a[e].filter((e=>r.includes(e.optionName)))])))},jF=e=>{let{Icon:t,command:n,active:r,optionName:i,highlight:o,disabled:s,tooltip:a}=e;return c.createElement(D,hv({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${i}-option`,disabled:s,icon:t,key:i,style:r?"secondary":"text",tooltipProps:{content:a,position:"bottom"},onClick:n},tR(o)))},RF=e=>{let{editor:t,commands:n}=e;const{to:r}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:r,to:r}})}}}))},zF=e=>{let{editor:t,options:n,mentions:r,tooltips:i,setIsInvalidLink:o,isLinkOptionActive:s,isTableOptionActive:a,setIsLinkOptionActive:l,setIsTableOptionActive:u,setMediaUploader:d,handleUploadAttachments:p,isEmojiPickerActive:h,setIsEmojiPickerActive:f,setIsEmbedModalOpen:m,children:g}=e;const{t:b}=Ga(),{Menu:y,MenuItem:v}=A,w=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:t}),_=(e=>{var t;return(null===(t=e.find(Me("active")))||void 0===t?void 0:t.optionName)||"Text"})(w),x=n.includes(er.EMOJI),k=n.includes(er.LINK),E=n.includes(er.TABLE),{font:M,block:C,list:D}=LF({editor:t,options:n,setMediaUploader:d,tooltips:i,handleUploadAttachments:p,setIsEmbedModalOpen:m}),S=()=>{o(!0),setTimeout((()=>{o(!1)}),1e3)};return s?c.createElement(CF,{editor:t,handleAnimateInvalidLink:S,handleClose:()=>l(!1)}):a?c.createElement(DF,{editor:t,handleClose:()=>u(!1)}):c.createElement(c.Fragment,null,c.createElement(A,{buttonSize:"small",buttonStyle:"text",label:_,strategy:"fixed"},c.createElement(y,null,w.map((e=>{let{optionName:t,command:n}=e;return c.createElement(v.Button,{key:t,onClick:n},t)})))),M.map(SF),C.map(SF),x&&c.createElement(NF,{editor:t,isActive:h,setActive:f,tooltipContent:i.emoji||b("menu.emoji")}),D.map(SF),k&&SF({Icon:me,command:()=>l(!0),active:t.isActive("link"),optionName:"link",highlight:!1,tooltip:i.link||b("menu.link")}),E&&SF({Icon:re,command:()=>u(!0),active:t.isActive("table"),optionName:"table",highlight:!1,tooltip:i.table||b("menu.table")}),c.createElement(AF,{editor:t,mentions:r,tooltipContent:i.mention||b("menu.mention")}),g)},FF=e=>{let{editor:t,options:n,mentions:r=[],setMediaUploader:i,tooltips:o={},handleUploadAttachments:s,isEmojiPickerActive:a,setIsEmojiPickerActive:l,setIsEmbedModalOpen:u,children:p}=e;const[h,f]=d(!1),[m,g]=d(!1),[b,y]=d(!1),v=t&&t.view.state.selection.node,w=v&&"image"===v.type.name,_=[er.BOLD,er.ITALIC,er.UNDERLINE,er.STRIKETHROUGH,er.LINK],x=ls(n.filter((e=>_.includes(e))));return!t||!w&&x?null:c.createElement("div",null,c.createElement(CD,{editor:t,className:gl("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":h}),tippyOptions:{arrow:LC,zIndex:99999,onHide:()=>{g(!1),y(!1)},theme:"neeto-editor-bubble-menu",maxWidth:500}},c.createElement(zF,{editor:t,handleUploadAttachments:s,isEmojiPickerActive:a,isLinkOptionActive:m,isTableOptionActive:b,mentions:r,options:n,setIsEmbedModalOpen:u,setIsEmojiPickerActive:l,setIsInvalidLink:f,setIsLinkOptionActive:g,setIsTableOptionActive:y,setMediaUploader:i,tooltips:o},p)))},{Menu:PF,MenuItem:BF}=A,UF=e=>{var t;let{editor:n,tooltipContent:r}=e;const i=(null===(t=IF.find((e=>{let{value:t}=e;return r=t,n.isActive("heading",{level:r});var r})))||void 0===t?void 0:t.label)||"Paragraph";return c.createElement(A,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:i,placement:"bottom-start",buttonProps:{tooltipProps:{content:r,position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},c.createElement(PF,null,IF.map((e=>{let{label:t,value:r}=e;return c.createElement(BF.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${t}`,key:r,onClick:()=>{return(e=r)?n.chain().focus().toggleHeading({level:e}).run():n.chain().focus().setNode("paragraph").run();var e}},t)}))))},{Menu:HF}=A,$F=e=>{let{editor:t,tooltipContent:n}=e;const{t:r}=Ga(),[i,o]=d(""),[s,a]=d(""),[l,u]=d(!1),p=t.isActive("link"),h=()=>{u(!1),a(""),o("")},f=()=>{rr.test(s)?(t.chain().focus().setLink({href:s}).run(),h()):o(r("errors.invalid-url"))};return c.createElement(A,{buttonStyle:p?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:me,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:n,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>{a(t.getAttributes("link").href),u((e=>!e))},onClose:h},c.createElement(HF,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?h():"Enter"===e.key&&f()}},c.createElement(C,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:i,name:"url",placeholder:r("placeholders.url"),value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:r("menu.link"),onClick:f}),p&&c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:r("common.unlink"),style:"text",onClick:()=>{t.chain().focus().unsetLink().run(),a(""),h()}})))},{Menu:VF}=A,WF=e=>{let{editor:t,tooltipContent:n}=e;const{t:r}=Ga(),[i,o]=d(!1),[s,a]=d(3),[l,u]=d(3),p=()=>{a(3),u(3),o(!1)};return c.createElement(A,{buttonStyle:i?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:re,isOpen:i,position:"bottom",buttonProps:{tooltipProps:{content:n,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>o((e=>!e)),onClose:p},c.createElement(VF,{className:"neeto-editor-table__item"},c.createElement(C,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.rows"),size:"small",type:"number",value:s,onChange:e=>a(e.target.value)}),c.createElement(C,{"data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.rows"),size:"small",type:"number",value:l,onChange:e=>u(e.target.value)}),c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-table-option-create-button",label:r("common.create"),size:"small",onClick:()=>{t.chain().focus().insertTable({rows:s,cols:l,withHeaderRow:!0}).run(),p()}})))},{Menu:qF}=A,KF=e=>{let{editor:t,variables:n,tooltipContent:r}=e;return w(n)?null:c.createElement(A,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:ge,strategy:"fixed",buttonProps:{tooltipProps:{content:r,position:"bottom"}}},c.createElement(qF,null,c.createElement(Uz,{variables:n,onClickVariable:e=>{const{category_key:n,key:r}=e,i=n?`${n}.${r}`:r;t.chain().focus().setVariable({label:i}).run()}})))},GF=t=>{let{editor:n,options:r,mentions:i=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:u,tooltips:d={},handleUploadAttachments:p,isEmojiPickerActive:h,setIsEmojiPickerActive:f,setIsEmbedModalOpen:m,children:g}=t;const{t:b}=Ga();if(!n)return null;const{font:y,block:v,list:w,misc:_,right:x}=LF({tooltips:d,editor:n,options:r,setMediaUploader:s,handleUploadAttachments:p,setIsEmbedModalOpen:m}),k=r.filter((e=>e.match(/^h[1-6]$/))),E=e(k),M=r.includes(er.EMOJI),C=r.includes(er.LINK),D=r.includes(er.TABLE),S=RF({editor:n,commands:a});return c.createElement("div",{className:gl("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[u]:u})},c.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},E&&c.createElement(UF,{editor:n,tooltipContent:d.fontSize||b("menu.font-size")}),y.map(jF),v.map(jF),M&&c.createElement(NF,{editor:n,isActive:h,setActive:f,tooltipContent:d.emoji||b("menu.emoji")}),w.map(jF),C&&c.createElement($F,{editor:n,tooltipContent:d.link||b("menu.link")}),D&&c.createElement(WF,{editor:n,tooltipContent:d.table||b("menu.table")}),_.map(jF),c.createElement(AF,{editor:n,mentions:i,tooltipContent:d.mention||b("menu.mention")}),S.map(jF),g,c.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},x.map(jF))),c.createElement("div",{className:"neeto-editor-fixed-menu__variables"},c.createElement(KF,{editor:n,tooltipContent:d.variables||b("menu.variables"),variables:o})))},YF=e=>{let{icon:t=null,onClick:r=n,disabled:i=!1,className:o,tooltipProps:s,...a}=e;const l=t;return c.createElement(M,hv({disabled:!s,onClick:()=>r()},s),c.createElement("button",hv({className:gl("ne-headless-btn",{[o]:o}),disabled:i,type:"button",onClick:r},a),t&&c.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},QF={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:r}}=e;function i(e){"escape"===e.key.toLowerCase()&&n&&(r(),t())}return{onShow(){document.addEventListener("keydown",i)},onHide(){document.removeEventListener("keydown",i)}}}},JF=e=>{let{icon:t,isOpen:r,onClose:i=n,children:o,className:s,onClick:a,buttonProps:l={},...u}=e;const[p,h]=d(!1);return c.createElement(hR,hv({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[QF],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:r,className:gl("ne-headless-dropdown",{[s]:s}),content:p&&c.createElement("div",{className:"ne-headless-dropdown__popup"},o),onClickOutside:i,onClose:i,onHidden:()=>h(!1),onMount:()=>h(!0)},u),c.createElement("span",null,c.createElement(YF,hv({icon:t,onClick:a},l))))},ZF=e=>{let{editor:t,isActive:n,setActive:r,tooltipContent:i}=e;return c.createElement(JF,{className:"ne-headless__emoji",icon:X,isOpen:n,buttonProps:{tooltipProps:{content:i,delay:[500],position:"bottom"}},onClick:()=>r((e=>!e)),onClose:()=>r(!1)},c.createElement(lL,{editor:t,setActive:r}))},XF=e=>{let{editor:t,optionName:n,command:r,disabled:i,Icon:o,isActive:s,setActive:a,tooltip:l}=e;return n===er.EMOJI?c.createElement(ZF,{editor:t,isActive:s,setActive:a,tooltipContent:l||"Emoji"}):c.createElement(YF,{className:s?"ne-headless-btn--active":"",disabled:i,icon:o,tooltipProps:{content:l,delay:[500],position:"bottom"},onClick:r})},{t:eP}=Ea,tP=e=>{let{tooltips:r,editor:i,options:o,setMediaUploader:s,handleUploadAttachments:a,isEmojiPickerActive:l,setIsEmojiPickerActive:c,setIsEmbedModalOpen:u}=e;const d=(e=>{let{editor:t,tooltips:r,setMediaUploader:i,handleUploadAttachments:o,isEmojiPickerActive:s,setIsEmojiPickerActive:a,setIsEmbedModalOpen:l}=e;return[{Icon:ae,command:()=>t.chain().focus().toggleBold().run(),active:t.isActive("bold"),optionName:"bold",tooltip:r.bold||eP("menu.bold")},{Icon:le,command:()=>t.chain().focus().toggleItalic().run(),active:t.isActive("italic"),optionName:"italic",tooltip:r.italic||eP("menu.italic")},{Icon:ce,command:()=>t.chain().focus().toggleUnderline().run(),active:t.isActive("underline"),optionName:"underline",tooltip:r.underline||eP("menu.underline")},{Icon:ue,command:()=>t.chain().focus().toggleStrike().run(),active:t.isActive("strike"),optionName:"strike",tooltip:r.strike||eP("menu.strike")},{Icon:de,command:()=>t.chain().focus().toggleHighlight().run(),active:t.isActive("highlight"),optionName:"highlight",tooltip:r.highlight||eP("menu.highlight")},{Icon:pe,command:()=>t.chain().focus().toggleBlockquote().run(),active:t.isActive("blockquote"),optionName:"block-quote",tooltip:r.blockQuote||eP("menu.block-quote")},{Icon:Z,command:()=>t.chain().focus().toggleCode().run(),active:t.isActive("code"),optionName:"code",tooltip:r.code||eP("menu.code")},{Icon:G,command:()=>t.chain().focus().toggleBulletList().run(),active:t.isActive("bulletList"),optionName:"bullet-list",tooltip:r.bulletList||eP("menu.bullet-list")},{Icon:K,command:()=>t.chain().focus().toggleOrderedList().run(),active:t.isActive("orderedList"),optionName:"ordered-list",tooltip:r.orderedList||eP("menu.ordered-list")},{Icon:be,command:o,optionName:"attachments",tooltip:r.attachments||eP("menu.attachments")},{Icon:Y,command:()=>i(ve("image",!0)),optionName:"image-upload",tooltip:r.imageUpload||eP("menu.image-upload")},{Icon:Q,command:()=>i(ve("video",!0)),optionName:"video-upload",tooltip:r.videoUpload||eP("menu.video-upload")},{Icon:te,command:()=>l(!0),optionName:"video-embed",tooltip:r.videoEmbed||eP("menu.video-embed")},{Icon:X,command:n,optionName:"emoji",tooltip:r.emoji||eP("menu.emoji"),isActive:s,setActive:a},{Icon:re,command:()=>t.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),optionName:"table",tooltip:r.table||eP("menu.table")},{Icon:he,command:()=>t.chain().focus().undo().run(),disabled:!t.can().undo(),optionName:"undo",tooltip:r.undo||eP("menu.undo")},{Icon:fe,command:()=>t.chain().focus().redo().run(),disabled:!t.can().redo(),optionName:"redo",tooltip:r.redo||eP("menu.redo")}]})({editor:i,tooltips:r,setMediaUploader:s,handleUploadAttachments:a,isEmojiPickerActive:l,setIsEmojiPickerActive:c,setIsEmbedModalOpen:u});return o.map((e=>t({optionName:e},d))).filter(Boolean)},nP=e=>{let{editor:t,options:n,tooltips:r={},setMediaUploader:i,addonCommands:o=[],children:s,className:a,handleUploadAttachments:l,isEmojiPickerActive:u,setIsEmojiPickerActive:d,setIsEmbedModalOpen:p}=e;if(!t)return null;const h=[...tP({tooltips:r,editor:t,options:n,setMediaUploader:i,handleUploadAttachments:l,isEmojiPickerActive:u,setIsEmojiPickerActive:d,setIsEmbedModalOpen:p}),...RF({editor:t,commands:o})];return c.createElement("div",{className:gl("ne-headless",{[a]:a})},h.map((e=>c.createElement(XF,hv({editor:t,key:e.optionName},e)))),s)},rP=e=>{const[t,n]=d(!1),[r,i]=d(!1),[o,s]=d({image:!1,video:!1}),{menuType:a="fixed",addons:l=[],options:u=[],editor:p,uploadEndpoint:f=nr,editorSecrets:m={},handleUploadAttachments:g}=e,b={fixed:GF,bubble:FF,headless:nP,none:()=>c.createElement("div",null)}[a],y=w(u)?[...lr,...l]:u;return h((()=>{const e=e=>{(e.metaKey||e.ctrlKey)&&e.altKey&&("KeyE"===e.code?n((e=>!e)):"KeyA"===e.code?g():"KeyK"===e.code?s(ve("image",!0)):"KeyV"===e.code&&s(ve("video",!0)))};return"none"!==a&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[]),c.createElement(c.Fragment,null,c.createElement(b,hv({},e,{handleUploadAttachments:g,isEmojiPickerActive:t,options:y,setIsEmbedModalOpen:i,setIsEmojiPickerActive:n,setMediaUploader:s})),c.createElement(xF,{editor:p,mediaUploader:o,unsplashApiKey:m.unsplash,uploadEndpoint:f,onClose:()=>s({image:!1,video:!1})}),l.includes("video-embed")&&c.createElement(WD,{editor:p,isEmbedModalOpen:r,setIsEmbedModalOpen:i}))},iP=(e,t)=>{let{addonCommands:r=[],addons:i=[],attachments:o=[],attachmentsConfig:a={},autoFocus:l=!1,className:u,contentClassName:m,defaults:g=lr,editorSecrets:b={},error:y=null,extensions:v=[],hideSlashCommands:w=!1,initialValue:_="",isCharacterCountActive:x=!1,keyboardShortcuts:k=[],label:E="",mentions:M=[],menuType:C="fixed",placeholder:D,required:S=!1,rows:A=6,tooltips:N={},uploadEndpoint:O=nr,variables:T=[],onChange:I=n,onFocus:L=n,onBlur:R=n,onSubmit:z=n,onChangeAttachments:F=n,...P}=e;const B=p(null),U=i.includes(er.ATTACHMENTS),H=i.includes(er.VIDEO_EMBED),$="fixed"===C,V="bubble"===C,W=!w,q=!!D,[K,G]=d(!1),[Y,Q]=d({image:!1,video:!1}),J=p(null),Z=Qz({placeholder:D,extensions:v,mentions:M,variables:T,isSlashCommandsActive:W,options:[...g,...i],addonCommands:r,onSubmit:z,keyboardShortcuts:k,uploadEndpoint:O,setMediaUploader:Q,setIsEmbedModalOpen:G,isVideoEmbedActive:H});(e=>{let{initialValue:t}=e;h((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&ls(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:_});const X=gl("neeto-editor",{"slash-active":W&&!q,"fixed-menu-active border":$,"bubble-menu-active":V,"placeholder-active":q,"attachments-active":U,[m]:m}),ee=FD({extensions:Z,content:_,injectCSS:!1,autofocus:l&&"end",editorProps:{attributes:{class:X,style:pr({rows:A})},clipboardTextParser:hr},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!l&&(e=>{const{state:t,view:n}=e,r=Sn.atEnd(t.doc),i=t.tr;i.setSelection(r),n.dispatch(i)})(t)},onUpdate:e=>{let{editor:t}=e;return I(t.getHTML())},onFocus:L,onBlur:R});return f(t,(()=>({editor:ee,focus:()=>ee.commands.focus()}))),_k.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},c.createElement("div",{ref:B,className:gl({[u]:u,"ne-attachments__wrapper":U})},E&&c.createElement(j,{className:"neeto-ui-mb-2","data-cy":`${s(E)}-editor-label`,required:S},E),c.createElement(PD,{error:y},c.createElement(BD,{editor:ee,isActive:x},c.createElement(rP,{addonCommands:r,addons:i,defaults:g,editor:ee,editorSecrets:b,handleUploadAttachments:()=>{var e;return(null===(e=J.current)||void 0===e?void 0:e.handleUploadAttachments())||n()},isIndependant:!1,mentions:M,menuType:C,tooltips:N,uploadEndpoint:O,variables:T}),c.createElement(ND,hv({editor:ee},P)),c.createElement(xF,{editor:ee,mediaUploader:Y,unsplashApiKey:b.unsplash,uploadEndpoint:O,onClose:()=>Q({image:!1,video:!1})}),H&&c.createElement(WD,{editor:ee,isEmbedModalOpen:K,setIsEmbedModalOpen:G}),U&&c.createElement(gw,{attachments:o,className:"ne-attachments--integrated",config:a,dragDropRef:B,isIndependent:!1,ref:J,onChange:F}))))};var oP=c.forwardRef(iP);MF('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: auto;\n min-width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.neeto-editor.attachments-active {\n border-bottom: none;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n -moz-tab-size: 2;\n -o-tab-size: 2;\n tab-size: 2;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content [data-type=special-mention], .neeto-editor [data-type=special-mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content table, .neeto-editor table {\n overflow: hidden;\n border: 1px solid rgba(var(--neeto-ui-gray-300));\n border-collapse: separate;\n border-radius: var(--neeto-ui-rounded-sm);\n border-spacing: 0;\n table-layout: fixed;\n min-width: 300px;\n}\n.neeto-editor-content table th, .neeto-editor table th,\n.neeto-editor-content table td,\n.neeto-editor table td {\n border-left: 1px solid rgba(var(--neeto-ui-gray-300));\n border-top: 1px solid rgba(var(--neeto-ui-gray-300));\n padding: 8px 12px;\n position: relative;\n}\n.neeto-editor-content table td:first-child, .neeto-editor table td:first-child,\n.neeto-editor-content table th:first-child,\n.neeto-editor table th:first-child {\n border-left: none;\n}\n.neeto-editor-content table th, .neeto-editor table th {\n background: rgb(var(--neeto-ui-gray-100));\n border-top: none;\n}\n.neeto-editor-content table td, .neeto-editor table td {\n background: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n text-align: center;\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-gray-600));\n margin-bottom: 4px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable {\n padding: 4px 6px;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-700));\n line-height: 1;\n background-color: rgb(var(--neeto-ui-pastel-blue));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row .neeto-editor-variable:hover {\n background-color: rgb(var(--neeto-ui-info-100));\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-table__item {\n display: flex !important;\n flex-direction: row;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-table__item input {\n max-width: 60px !important;\n}\n.neeto-editor-table__options-menu {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 8px !important;\n max-height: 150px !important;\n overflow: scroll;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n gap: 1px;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text {\n color: rgb(var(--neeto-ui-gray-200));\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary {\n min-width: -moz-fit-content;\n min-width: fit-content;\n background-color: rgb(var(--neeto-ui-gray-400));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup {\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active {\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px;\n gap: 6px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input {\n background-color: rgba(var(--neeto-ui-gray-400), 0.2);\n outline: none;\n line-height: 20px;\n width: 60px;\n height: 24px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table_buttons {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search {\n padding: 0px 8px;\n margin-bottom: 16px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader {\n display: flex;\n justify-content: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion span {\n height: 16px !important;\n width: 16px !important;\n font-size: 10px;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor button {\n margin-right: auto;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 0.5rem;\n}\n.ne-media-editor .ne-media-editor__footer button {\n margin-right: 0;\n}\n.neeto-editor-table {\n display: relative;\n width: -moz-fit-content;\n width: fit-content;\n}\n.neeto-editor-table table th p,\n.neeto-editor-table table td p {\n margin: 0;\n}\n.neeto-editor-table table .column-resize-handle {\n position: absolute;\n top: 0;\n bottom: 0px;\n right: -2px;\n width: 4px;\n background-color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-table table .selectedCell:after {\n position: absolute;\n inset: 0;\n content: "";\n background: rgba(var(--neeto-ui-primary-500), 0.1);\n}\n.neeto-editor-table__wrapper {\n display: flex;\n gap: 4px;\n}\n.neeto-editor-table__add-row, .neeto-editor-table__add-column {\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n}\n.neeto-editor-table__add-row p, .neeto-editor-table__add-column p {\n background: white;\n color: rgb(var(--neeto-ui-gray-800));\n font-size: var(--neeto-ui-text-xl);\n line-height: 16px;\n padding: 4px;\n}\n.neeto-editor-table__add-row:hover, .neeto-editor-table__add-column:hover {\n background: rgba(var(--neeto-ui-gray-300));\n}\n.neeto-editor-table__add-row {\n margin: 4px 20px 4px 0;\n height: 16px;\n}\n.neeto-editor-table__add-column {\n flex-direction: column;\n width: 16px;\n}\n.ProseMirror.resize-cursor {\n cursor: col-resize;\n}\n.ne-attachments {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.ne-attachments__items {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.ne-attachments__attachment {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 2px 4px 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n border: 1px solid rgb(var(--neeto-ui-gray-200));\n background-color: rgb(var(--neeto-ui-white));\n width: 256px;\n}\n.ne-attachments__attachment-file-icon {\n height: auto;\n width: 15px;\n}\n.ne-attachments__attachment__progress {\n display: flex;\n opacity: 0.5;\n justify-content: space-between;\n width: 76%;\n}\n.ne-attachments__attachment__progress p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n.ne-attachments__attachment__progress p:nth-child(2) {\n width: -moz-fit-content;\n width: fit-content;\n}\n.ne-attachments__attachment__progress-icon {\n width: 15px;\n height: auto;\n}\n.ne-attachments__attachment p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 75%;\n}\n.ne-attachments input[type=file] {\n display: none;\n}\n.ne-attachments--integrated {\n padding: 0px 6px;\n border: 1px solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.ne-attachments__wrapper {\n position: relative;\n}\n.ne-attachments__wrapper.uppy-is-drag-over::after {\n position: absolute;\n inset: 7px;\n border-radius: 5px;\n background-color: rgba(var(--neeto-ui-gray-300), 0.5);\n border: 3px dashed rgb(var(--neeto-ui-gray-500));\n color: rgb(var(--neeto-ui-gray-700));\n content: "Drop the file here";\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.2rem;\n font-weight: bold;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const sP=(e,t)=>{let{name:n,...r}=e;return c.createElement(De,{name:n},(e=>{let{field:i,form:o,meta:s}=e;return c.createElement(oP,hv({error:s.touched?s.error:"",initialValue:i.value,ref:t,onBlur:()=>o.setFieldTouched(n,!0),onChange:e=>o.setFieldValue(n,e)},r))}))};var aP=g(sP);
42
+ */!function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,u="__lodash_placeholder__",d=1,p=2,h=4,f=1,m=2,g=1,b=2,y=4,v=8,w=16,_=32,x=64,k=128,E=256,M=512,C=30,D="...",S=800,A=16,N=1,O=2,T=3,I=1/0,L=9007199254740991,j=17976931348623157e292,R=0/0,z=4294967295,F=z-1,P=z>>>1,B=[["ary",k],["bind",g],["bindKey",b],["curry",v],["curryRight",w],["flip",M],["partial",_],["partialRight",x],["rearg",E]],U="[object Arguments]",H="[object Array]",$="[object AsyncFunction]",V="[object Boolean]",W="[object Date]",q="[object DOMException]",K="[object Error]",G="[object Function]",Y="[object GeneratorFunction]",Q="[object Map]",J="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Promise]",te="[object Proxy]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object Symbol]",se="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ce="[object ArrayBuffer]",ue="[object DataView]",de="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",me="[object Int32Array]",ge="[object Uint8Array]",be="[object Uint8ClampedArray]",ye="[object Uint16Array]",ve="[object Uint32Array]",we=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Me=RegExp(ke.source),Ce=RegExp(Ee.source),De=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),je=/^\s+/,Re=/\s/,ze=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,$e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Je=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Xe="\\ud800-\\udfff",et="\\u0300-\\u036f"+"\\ufe20-\\ufe2f"+"\\u20d0-\\u20ff",tt="\\u2700-\\u27bf",nt="a-z\\xdf-\\xf6\\xf8-\\xff",rt="A-Z\\xc0-\\xd6\\xd8-\\xde",it="\\ufe0e\\ufe0f",ot="\\xac\\xb1\\xd7\\xf7"+"\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf"+"\\u2000-\\u206f"+" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",st="['’]",at="["+Xe+"]",lt="["+ot+"]",ct="["+et+"]",ut="\\d+",dt="["+tt+"]",pt="["+nt+"]",ht="[^"+Xe+ot+ut+tt+nt+rt+"]",ft="\\ud83c[\\udffb-\\udfff]",mt="[^"+Xe+"]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",bt="[\\ud800-\\udbff][\\udc00-\\udfff]",yt="["+rt+"]",vt="\\u200d",wt="(?:"+pt+"|"+ht+")",_t="(?:"+yt+"|"+ht+")",xt="(?:"+st+"(?:d|ll|m|re|s|t|ve))?",kt="(?:"+st+"(?:D|LL|M|RE|S|T|VE))?",Et="(?:"+ct+"|"+ft+")"+"?",Mt="["+it+"]?",Ct=Mt+Et+("(?:"+vt+"(?:"+[mt,gt,bt].join("|")+")"+Mt+Et+")*"),Dt="(?:"+[dt,gt,bt].join("|")+")"+Ct,St="(?:"+[mt+ct+"?",ct,gt,bt,at].join("|")+")",At=RegExp(st,"g"),Nt=RegExp(ct,"g"),Ot=RegExp(ft+"(?="+ft+")|"+St+Ct,"g"),Tt=RegExp([yt+"?"+pt+"+"+xt+"(?="+[lt,yt,"$"].join("|")+")",_t+"+"+kt+"(?="+[lt,yt+wt,"$"].join("|")+")",yt+"?"+wt+"+"+xt,yt+"+"+kt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ut,Dt].join("|"),"g"),It=RegExp("["+vt+Xe+et+it+"]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Rt=-1,zt={};zt[de]=zt[pe]=zt[he]=zt[fe]=zt[me]=zt[ge]=zt[be]=zt[ye]=zt[ve]=!0,zt[U]=zt[H]=zt[ce]=zt[V]=zt[ue]=zt[W]=zt[K]=zt[G]=zt[Q]=zt[J]=zt[X]=zt[ne]=zt[re]=zt[ie]=zt[ae]=!1;var Ft={};Ft[U]=Ft[H]=Ft[ce]=Ft[ue]=Ft[V]=Ft[W]=Ft[de]=Ft[pe]=Ft[he]=Ft[fe]=Ft[me]=Ft[Q]=Ft[J]=Ft[X]=Ft[ne]=Ft[re]=Ft[ie]=Ft[oe]=Ft[ge]=Ft[be]=Ft[ye]=Ft[ve]=!0,Ft[K]=Ft[G]=Ft[ae]=!1;var Pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bt=parseFloat,Ut=parseInt,Ht="object"==typeof Mi&&Mi&&Mi.Object===Object&&Mi,$t="object"==typeof self&&self&&self.Object===Object&&self,Vt=Ht||$t||Function("return this")(),Wt=t&&!t.nodeType&&t,qt=Wt&&"object"=="object"&&e&&!e.nodeType&&e,Kt=qt&&qt.exports===Wt,Gt=Kt&&Ht.process,Yt=function(){try{var e=qt&&qt.require&&qt.require("util").types;return e||Gt&&Gt.binding&&Gt.binding("util")}catch(e){}}(),Qt=Yt&&Yt.isArrayBuffer,Jt=Yt&&Yt.isDate,Zt=Yt&&Yt.isMap,Xt=Yt&&Yt.isRegExp,en=Yt&&Yt.isSet,tn=Yt&&Yt.isTypedArray;function nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rn(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(r,s,n(s),e)}return r}function on(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function sn(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function an(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ln(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function cn(e,t){return!!(null==e?0:e.length)&&vn(e,t,0)>-1}function un(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function dn(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function hn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function fn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function mn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var gn=kn("length");function bn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function yn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function vn(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):yn(e,_n,n)}function wn(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function _n(e){return e!=e}function xn(e,t){var n=null==e?0:e.length;return n?Cn(e,t)/n:R}function kn(e){return function(t){return null==t?n:t[e]}}function En(e){return function(t){return null==e?n:e[t]}}function Mn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Cn(e,t){for(var r,i=-1,o=e.length;++i<o;){var s=t(e[i]);s!==n&&(r=r===n?s:r+s)}return r}function Dn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Sn(e){return e?e.slice(0,qn(e)+1).replace(je,""):e}function An(e){return function(t){return e(t)}}function Nn(e,t){return dn(t,(function(t){return e[t]}))}function On(e,t){return e.has(t)}function Tn(e,t){for(var n=-1,r=e.length;++n<r&&vn(t,e[n],0)>-1;);return n}function In(e,t){for(var n=e.length;n--&&vn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var jn=En({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Rn=En({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function zn(e){return"\\"+Pt[e]}function Fn(e){return It.test(e)}function Pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Bn(e,t){return function(n){return e(t(n))}}function Un(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==u||(e[n]=u,o[i++]=n)}return o}function Hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function $n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Vn(e){return Fn(e)?function(e){var t=Ot.lastIndex=0;for(;Ot.test(e);)++t;return t}(e):gn(e)}function Wn(e){return Fn(e)?function(e){return e.match(Ot)||[]}(e):function(e){return e.split("")}(e)}function qn(e){for(var t=e.length;t--&&Re.test(e.charAt(t)););return t}var Kn=En({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gn=function e(t){var Re,Xe=(t=null==t?Vt:Gn.defaults(Vt.Object(),t,Gn.pick(Vt,jt))).Array,et=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,ot=t.RegExp,st=t.String,at=t.TypeError,lt=Xe.prototype,ct=nt.prototype,ut=it.prototype,dt=t["__core-js_shared__"],pt=ct.toString,ht=ut.hasOwnProperty,ft=0,mt=(Re=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+Re:"",gt=ut.toString,bt=pt.call(it),yt=Vt._,vt=ot("^"+pt.call(ht).replace(Ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=Kt?t.Buffer:n,_t=t.Symbol,xt=t.Uint8Array,kt=wt?wt.allocUnsafe:n,Et=Bn(it.getPrototypeOf,it),Mt=it.create,Ct=ut.propertyIsEnumerable,Dt=lt.splice,St=_t?_t.isConcatSpreadable:n,Ot=_t?_t.iterator:n,It=_t?_t.toStringTag:n,Pt=function(){try{var e=Wo(it,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ht=t.clearTimeout!==Vt.clearTimeout&&t.clearTimeout,$t=et&&et.now!==Vt.Date.now&&et.now,Wt=t.setTimeout!==Vt.setTimeout&&t.setTimeout,qt=rt.ceil,Gt=rt.floor,Yt=it.getOwnPropertySymbols,gn=wt?wt.isBuffer:n,En=t.isFinite,Yn=lt.join,Qn=Bn(it.keys,it),Jn=rt.max,Zn=rt.min,Xn=et.now,er=t.parseInt,tr=rt.random,nr=lt.reverse,rr=Wo(t,"DataView"),ir=Wo(t,"Map"),or=Wo(t,"Promise"),sr=Wo(t,"Set"),ar=Wo(t,"WeakMap"),lr=Wo(it,"create"),cr=ar&&new ar,ur={},dr=ys(rr),pr=ys(ir),hr=ys(or),fr=ys(sr),mr=ys(ar),gr=_t?_t.prototype:n,br=gr?gr.valueOf:n,yr=gr?gr.toString:n;function vr(e){if(ja(e)&&!Ea(e)&&!(e instanceof kr)){if(e instanceof xr)return e;if(ht.call(e,"__wrapped__"))return vs(e)}return new xr(e)}var wr=function(){function e(){}return function(t){if(!La(t))return{};if(Mt)return Mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function _r(){}function xr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function kr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function Er(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Mr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Cr;++t<n;)this.add(e[t])}function Sr(e){var t=this.__data__=new Mr(e);this.size=t.size}function Ar(e,t){var n=Ea(e),r=!n&&ka(e),i=!n&&!r&&Sa(e),o=!n&&!r&&!i&&$a(e),s=n||r||i||o,a=s?Dn(e.length,st):[],l=a.length;for(var c in e)!t&&!ht.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Zo(c,l))||a.push(c);return a}function Nr(e){var t=e.length;return t?e[Di(0,t-1)]:n}function Or(e,t){return ms(lo(e),Br(t,0,e.length))}function Tr(e){return ms(lo(e))}function Ir(e,t,r){(r!==n&&!wa(e[t],r)||r===n&&!(t in e))&&Fr(e,t,r)}function Lr(e,t,r){var i=e[t];ht.call(e,t)&&wa(i,r)&&(r!==n||t in e)||Fr(e,t,r)}function jr(e,t){for(var n=e.length;n--;)if(wa(e[n][0],t))return n;return-1}function Rr(e,t,n,r){return Wr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function zr(e,t){return e&&co(t,dl(t),e)}function Fr(e,t,n){"__proto__"==t&&Pt?Pt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Pr(e,t){for(var r=-1,i=t.length,o=Xe(i),s=null==e;++r<i;)o[r]=s?n:sl(e,t[r]);return o}function Br(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function Ur(e,t,r,i,o,s){var a,l=t&d,c=t&p,u=t&h;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!La(e))return e;var f=Ea(e);if(f){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return lo(e,a)}else{var m=Go(e),g=m==G||m==Y;if(Sa(e))return no(e,l);if(m==X||m==U||g&&!o){if(a=c||g?{}:Qo(e),!l)return c?function(e,t){return co(e,Ko(e),t)}(e,function(e,t){return e&&co(t,pl(t),e)}(a,e)):function(e,t){return co(e,qo(e),t)}(e,zr(a,e))}else{if(!Ft[m])return o?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case ce:return ro(e);case V:case W:return new r(+e);case ue:return function(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case de:case pe:case he:case fe:case me:case ge:case be:case ye:case ve:return io(e,n);case Q:return new r;case J:case ie:return new r(e);case ne:return function(e){var t=new e.constructor(e.source,Ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case re:return new r;case oe:return i=e,br?it(br.call(i)):{}}var i}(e,m,l)}}s||(s=new Sr);var b=s.get(e);if(b)return b;s.set(e,a),Ba(e)?e.forEach((function(n){a.add(Ur(n,t,r,n,e,s))})):Ra(e)&&e.forEach((function(n,i){a.set(i,Ur(n,t,r,i,e,s))}));var y=f?n:(u?c?Fo:zo:c?pl:dl)(e);return on(y||e,(function(n,i){y&&(n=e[i=n]),Lr(a,i,Ur(n,t,r,i,e,s))})),a}function Hr(e,t,r){var i=r.length;if(null==e)return!i;for(e=it(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function $r(e,t,r){if("function"!=typeof e)throw new at(s);return ds((function(){e.apply(n,r)}),t)}function Vr(e,t,n,r){var o=-1,s=cn,a=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=dn(t,An(n))),r?(s=un,a=!1):t.length>=i&&(s=On,a=!1,t=new Dr(t));e:for(;++o<l;){var d=e[o],p=null==n?d:n(d);if(d=r||0!==d?d:0,a&&p==p){for(var h=u;h--;)if(t[h]===p)continue e;c.push(d)}else s(t,p,r)||c.push(d)}return c}vr.templateSettings={escape:De,evaluate:Se,interpolate:Ae,variable:"",imports:{_:vr}},vr.prototype=_r.prototype,vr.prototype.constructor=vr,xr.prototype=wr(_r.prototype),xr.prototype.constructor=xr,kr.prototype=wr(_r.prototype),kr.prototype.constructor=kr,Er.prototype.clear=function(){this.__data__=lr?lr(null):{},this.size=0},Er.prototype["delete"]=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Er.prototype.get=function(e){var t=this.__data__;if(lr){var r=t[e];return r===l?n:r}return ht.call(t,e)?t[e]:n},Er.prototype.has=function(e){var t=this.__data__;return lr?t[e]!==n:ht.call(t,e)},Er.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=lr&&t===n?l:t,this},Mr.prototype.clear=function(){this.__data__=[],this.size=0},Mr.prototype["delete"]=function(e){var t=this.__data__,n=jr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Dt.call(t,n,1),--this.size,!0)},Mr.prototype.get=function(e){var t=this.__data__,r=jr(t,e);return r<0?n:t[r][1]},Mr.prototype.has=function(e){return jr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Cr.prototype.clear=function(){this.size=0,this.__data__={hash:new Er,map:new(ir||Mr),string:new Er}},Cr.prototype["delete"]=function(e){var t=$o(this,e)["delete"](e);return this.size-=t?1:0,t},Cr.prototype.get=function(e){return $o(this,e).get(e)},Cr.prototype.has=function(e){return $o(this,e).has(e)},Cr.prototype.set=function(e,t){var n=$o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Dr.prototype.add=Dr.prototype.push=function(e){return this.__data__.set(e,l),this},Dr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.clear=function(){this.__data__=new Mr,this.size=0},Sr.prototype["delete"]=function(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n},Sr.prototype.get=function(e){return this.__data__.get(e)},Sr.prototype.has=function(e){return this.__data__.has(e)},Sr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!ir||r.length<i-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cr(r)}return n.set(e,t),this.size=n.size,this};var Wr=ho(Xr),qr=ho(ei,!0);function Kr(e,t){var n=!0;return Wr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function Gr(e,t,r){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(l===n?a==a&&!Ha(a):r(a,l)))var l=a,c=s}return c}function Yr(e,t){var n=[];return Wr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Qr(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Jo),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?Qr(a,t-1,n,r,i):pn(i,a):r||(i[i.length]=a)}return i}var Jr=fo(),Zr=fo(!0);function Xr(e,t){return e&&Jr(e,t,dl)}function ei(e,t){return e&&Zr(e,t,dl)}function ti(e,t){return ln(t,(function(t){return Oa(e[t])}))}function ni(e,t){for(var r=0,i=(t=Zi(t,e)).length;null!=e&&r<i;)e=e[bs(t[r++])];return r&&r==i?e:n}function ri(e,t,n){var r=t(e);return Ea(e)?r:pn(r,n(e))}function ii(e){return null==e?e===n?se:Z:It&&It in it(e)?function(e){var t=ht.call(e,It),r=e[It];try{e[It]=n;var i=!0}catch(e){}var o=gt.call(e);i&&(t?e[It]=r:delete e[It]);return o}(e):function(e){return gt.call(e)}(e)}function oi(e,t){return e>t}function si(e,t){return null!=e&&ht.call(e,t)}function ai(e,t){return null!=e&&t in it(e)}function li(e,t,r){for(var i=r?un:cn,o=e[0].length,s=e.length,a=s,l=Xe(s),c=1/0,u=[];a--;){var d=e[a];a&&t&&(d=dn(d,An(t))),c=Zn(d.length,c),l[a]=!r&&(t||o>=120&&d.length>=120)?new Dr(a&&d):n}d=e[0];var p=-1,h=l[0];e:for(;++p<o&&u.length<c;){var f=d[p],m=t?t(f):f;if(f=r||0!==f?f:0,!(h?On(h,m):i(u,m,r))){for(a=s;--a;){var g=l[a];if(!(g?On(g,m):i(e[a],m,r)))continue e}h&&h.push(m),u.push(f)}}return u}function ci(e,t,r){var i=null==(e=as(e,t=Zi(t,e)))?e:e[bs(Ns(t))];return null==i?n:nn(i,e,r)}function ui(e){return ja(e)&&ii(e)==U}function di(e,t,r,i,o){return e===t||(null==e||null==t||!ja(e)&&!ja(t)?e!=e&&t!=t:function(e,t,r,i,o,s){var a=Ea(e),l=Ea(t),c=a?H:Go(e),u=l?H:Go(t),d=(c=c==U?X:c)==X,p=(u=u==U?X:u)==X,h=c==u;if(h&&Sa(e)){if(!Sa(t))return!1;a=!0,d=!1}if(h&&!d)return s||(s=new Sr),a||$a(e)?jo(e,t,r,i,o,s):function(e,t,n,r,i,o,s){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ce:return!(e.byteLength!=t.byteLength||!o(new xt(e),new xt(t)));case V:case W:case J:return wa(+e,+t);case K:return e.name==t.name&&e.message==t.message;case ne:case ie:return e==t+"";case Q:var a=Pn;case re:var l=r&f;if(a||(a=Hn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=m,s.set(e,t);var u=jo(a(e),a(t),r,i,o,s);return s["delete"](e),u;case oe:if(br)return br.call(e)==br.call(t)}return!1}(e,t,c,r,i,o,s);if(!(r&f)){var g=d&&ht.call(e,"__wrapped__"),b=p&&ht.call(t,"__wrapped__");if(g||b){var y=g?e.value():e,v=b?t.value():t;return s||(s=new Sr),o(y,v,r,i,s)}}if(!h)return!1;return s||(s=new Sr),function(e,t,r,i,o,s){var a=r&f,l=zo(e),c=l.length,u=zo(t).length;if(c!=u&&!a)return!1;var d=c;for(;d--;){var p=l[d];if(!(a?p in t:ht.call(t,p)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var b=a;for(;++d<c;){var y=e[p=l[d]],v=t[p];if(i)var w=a?i(v,y,p,t,e,s):i(y,v,p,e,t,s);if(!(w===n?y===v||o(y,v,r,i,s):w)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return s["delete"](e),s["delete"](t),g}(e,t,r,i,o,s)}(e,t,r,i,di,o))}function pi(e,t,r,i){var o=r.length,s=o,a=!i;if(null==e)return!s;for(e=it(e);o--;){var l=r[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var c=(l=r[o])[0],u=e[c],d=l[1];if(a&&l[2]){if(u===n&&!(c in e))return!1}else{var p=new Sr;if(i)var h=i(u,d,c,e,t,p);if(!(h===n?di(d,u,f|m,i,p):h))return!1}}return!0}function hi(e){return!(!La(e)||(t=e,mt&&mt in t))&&(Oa(e)?vt:Ke).test(ys(e));var t}function fi(e){return"function"==typeof e?e:null==e?zl:"object"==typeof e?Ea(e)?wi(e[0],e[1]):vi(e):ql(e)}function mi(e){if(!rs(e))return Qn(e);var t=[];for(var n in it(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function gi(e){if(!La(e))return function(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}(e);var t=rs(e),n=[];for(var r in e)("constructor"!=r||!t&&ht.call(e,r))&&n.push(r);return n}function bi(e,t){return e<t}function yi(e,t){var n=-1,r=Ca(e)?Xe(e.length):[];return Wr(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}function vi(e){var t=Vo(e);return 1==t.length&&t[0][2]?os(t[0][0],t[0][1]):function(n){return n===e||pi(n,e,t)}}function wi(e,t){return es(e)&&is(t)?os(bs(e),t):function(r){var i=sl(r,e);return i===n&&i===t?al(r,e):di(t,i,f|m)}}function _i(e,t,r,i,o){e!==t&&Jr(t,(function(s,a){if(o||(o=new Sr),La(s))!function(e,t,r,i,o,s,a){var l=cs(e,r),c=cs(t,r),u=a.get(c);if(u)return void Ir(e,r,u);var d=s?s(l,c,r+"",e,t,a):n,p=d===n;if(p){var h=Ea(c),f=!h&&Sa(c),m=!h&&!f&&$a(c);d=c,h||f||m?Ea(l)?d=l:Da(l)?d=lo(l):f?(p=!1,d=no(c,!0)):m?(p=!1,d=io(c,!0)):d=[]:Fa(c)||ka(c)?(d=l,ka(l)?d=Ja(l):La(l)&&!Oa(l)||(d=Qo(c))):p=!1}p&&(a.set(c,d),o(d,c,i,s,a),a["delete"](c));Ir(e,r,d)}(e,t,a,r,_i,i,o);else{var l=i?i(cs(e,a),s,a+"",e,t,o):n;l===n&&(l=s),Ir(e,a,l)}}),pl)}function xi(e,t){var r=e.length;if(r)return Zo(t+=t<0?r:0,r)?e[t]:n}function ki(e,t,n){t=t.length?dn(t,(function(e){return Ea(e)?function(t){return ni(t,1===e.length?e[0]:e)}:e})):[zl];var r=-1;t=dn(t,An(Ho()));var i=yi(e,(function(e,n,i){var o=dn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,s=i.length,a=n.length;for(;++r<s;){var l=oo(i[r],o[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ei(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var s=t[r],a=ni(e,s);n(a,s)&&Ti(o,Zi(s,e),a)}return o}function Mi(e,t,n,r){var i=r?wn:vn,o=-1,s=t.length,a=e;for(e===t&&(t=lo(t)),n&&(a=dn(e,An(n)));++o<s;)for(var l=0,c=t[o],u=n?n(c):c;(l=i(a,u,l,r))>-1;)a!==e&&Dt.call(a,l,1),Dt.call(e,l,1);return e}function Ci(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Zo(i)?Dt.call(e,i,1):Vi(e,i)}}return e}function Di(e,t){return e+Gt(tr()*(t-e+1))}function Si(e,t){var n="";if(!e||t<1||t>L)return n;do{t%2&&(n+=e),(t=Gt(t/2))&&(e+=e)}while(t);return n}function Ai(e,t){return ps(ss(e,t,zl),e+"")}function Ni(e){return Nr(wl(e))}function Oi(e,t){var n=wl(e);return ms(n,Br(t,0,n.length))}function Ti(e,t,r,i){if(!La(e))return e;for(var o=-1,s=(t=Zi(t,e)).length,a=s-1,l=e;null!=l&&++o<s;){var c=bs(t[o]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=a){var d=l[c];(u=i?i(d,c,l):n)===n&&(u=La(d)?d:Zo(t[o+1])?[]:{})}Lr(l,c,u),l=l[c]}return e}var Ii=cr?function(e,t){return cr.set(e,t),e}:zl,Li=Pt?function(e,t){return Pt(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:zl;function ji(e){return ms(wl(e))}function Ri(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Xe(i);++r<i;)o[r]=e[r+t];return o}function zi(e,t){var n;return Wr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Fi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=P){for(;r<i;){var o=r+i>>>1,s=e[o];null!==s&&!Ha(s)&&(n?s<=t:s<t)?r=o+1:i=o}return i}return Pi(e,t,zl,n)}function Pi(e,t,r,i){var o=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,c=Ha(t),u=t===n;o<s;){var d=Gt((o+s)/2),p=r(e[d]),h=p!==n,f=null===p,m=p==p,g=Ha(p);if(a)var b=i||m;else b=u?m&&(i||h):l?m&&h&&(i||!f):c?m&&h&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);b?o=d+1:s=d}return Zn(s,F)}function Bi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!wa(a,l)){var l=a;o[i++]=0===s?0:s}}return o}function Ui(e){return"number"==typeof e?e:Ha(e)?R:+e}function Hi(e){if("string"==typeof e)return e;if(Ea(e))return dn(e,Hi)+"";if(Ha(e))return yr?yr.call(e):"";var t=e+"";return"0"==t&&1/e==-I?"-0":t}function $i(e,t,n){var r=-1,o=cn,s=e.length,a=!0,l=[],c=l;if(n)a=!1,o=un;else if(s>=i){var u=t?null:Ao(e);if(u)return Hn(u);a=!1,o=On,c=new Dr}else c=t?[]:l;e:for(;++r<s;){var d=e[r],p=t?t(d):d;if(d=n||0!==d?d:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),l.push(d)}else o(c,p,n)||(c!==l&&c.push(p),l.push(d))}return l}function Vi(e,t){return null==(e=as(e,t=Zi(t,e)))||delete e[bs(Ns(t))]}function Wi(e,t,n,r){return Ti(e,t,n(ni(e,t)),r)}function qi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Ri(e,r?0:o,r?o+1:i):Ri(e,r?o+1:0,r?i:o)}function Ki(e,t){var n=e;return n instanceof kr&&(n=n.value()),hn(t,(function(e,t){return t.func.apply(t.thisArg,pn([e],t.args))}),n)}function Gi(e,t,n){var r=e.length;if(r<2)return r?$i(e[0]):[];for(var i=-1,o=Xe(r);++i<r;)for(var s=e[i],a=-1;++a<r;)a!=i&&(o[i]=Vr(o[i]||s,e[a],t,n));return $i(Qr(o,1),t,n)}function Yi(e,t,r){for(var i=-1,o=e.length,s=t.length,a={};++i<o;){var l=i<s?t[i]:n;r(a,e[i],l)}return a}function Qi(e){return Da(e)?e:[]}function Ji(e){return"function"==typeof e?e:zl}function Zi(e,t){return Ea(e)?e:es(e,t)?[e]:gs(Za(e))}var Xi=Ai;function eo(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:Ri(e,t,r)}var to=Ht||function(e){return Vt.clearTimeout(e)};function no(e,t){if(t)return e.slice();var n=e.length,r=kt?kt(n):new e.constructor(n);return e.copy(r),r}function ro(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function io(e,t){var n=t?ro(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oo(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=Ha(e),a=t!==n,l=null===t,c=t==t,u=Ha(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}function so(e,t,n,r){for(var i=-1,o=e.length,s=n.length,a=-1,l=t.length,c=Jn(o-s,0),u=Xe(l+c),d=!r;++a<l;)u[a]=t[a];for(;++i<s;)(d||i<o)&&(u[n[i]]=e[i]);for(;c--;)u[a++]=e[i++];return u}function ao(e,t,n,r){for(var i=-1,o=e.length,s=-1,a=n.length,l=-1,c=t.length,u=Jn(o-a,0),d=Xe(u+c),p=!r;++i<u;)d[i]=e[i];for(var h=i;++l<c;)d[h+l]=t[l];for(;++s<a;)(p||i<o)&&(d[h+n[s]]=e[i++]);return d}function lo(e,t){var n=-1,r=e.length;for(t||(t=Xe(r));++n<r;)t[n]=e[n];return t}function co(e,t,r,i){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],c=i?i(r[l],e[l],l,r,e):n;c===n&&(c=e[l]),o?Fr(r,l,c):Lr(r,l,c)}return r}function uo(e,t){return function(n,r){var i=Ea(n)?rn:Rr,o=t?t():{};return i(n,e,Ho(r,2),o)}}function po(e){return Ai((function(t,r){var i=-1,o=r.length,s=o>1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Xo(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=it(t);++i<o;){var l=r[i];l&&e(t,l,i,s)}return t}))}function ho(e,t){return function(n,r){if(null==n)return n;if(!Ca(n))return e(n,r);for(var i=n.length,o=t?i:-1,s=it(n);(t?o--:++o<i)&&!1!==r(s[o],o,s););return n}}function fo(e){return function(t,n,r){for(var i=-1,o=it(t),s=r(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===n(o[l],l,o))break}return t}}function mo(e){return function(t){var r=Fn(t=Za(t))?Wn(t):n,i=r?r[0]:t.charAt(0),o=r?eo(r,1).join(""):t.slice(1);return i[e]()+o}}function go(e){return function(t){return hn(Ol(kl(t).replace(At,"")),e,"")}}function bo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=wr(e.prototype),r=e.apply(n,t);return La(r)?r:n}}function yo(e){return function(t,r,i){var o=it(t);if(!Ca(t)){var s=Ho(r,3);t=dl(t),r=function(e){return s(o[e],e,o)}}var a=e(t,r,i);return a>-1?o[s?t[a]:a]:n}}function vo(e){return Ro((function(t){var r=t.length,i=r,o=xr.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new at(s);if(o&&!l&&"wrapper"==Bo(a))var l=new xr([],!0)}for(i=l?i:r;++i<r;){var c=Bo(a=t[i]),u="wrapper"==c?Po(a):n;l=u&&ts(u[0])&&u[1]==(k|v|_|E)&&!u[4].length&&1==u[9]?l[Bo(u[0])].apply(l,u[3]):1==a.length&&ts(a)?l[c]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Ea(n))return l.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function wo(e,t,r,i,o,s,a,l,c,u){var d=t&k,p=t&g,h=t&b,f=t&(v|w),m=t&M,y=h?n:bo(e);return function n(){for(var g=arguments.length,b=Xe(g),v=g;v--;)b[v]=arguments[v];if(f)var w=Uo(n),_=Ln(b,w);if(i&&(b=so(b,i,o,f)),s&&(b=ao(b,s,a,f)),g-=_,f&&g<u){var x=Un(b,w);return Do(e,t,wo,n.placeholder,r,b,x,l,c,u-g)}var k=p?r:this,E=h?k[e]:e;return g=b.length,l?b=ls(b,l):m&&g>1&&b.reverse(),d&&c<g&&(b.length=c),this&&this!==Vt&&this instanceof n&&(E=y||bo(E)),E.apply(k,b)}}function _o(e,t){return function(n,r){return function(e,t,n,r){return Xr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function xo(e,t){return function(r,i){var o;if(r===n&&i===n)return t;if(r!==n&&(o=r),i!==n){if(o===n)return i;"string"==typeof r||"string"==typeof i?(r=Hi(r),i=Hi(i)):(r=Ui(r),i=Ui(i)),o=e(r,i)}return o}}function ko(e){return Ro((function(t){return t=dn(t,An(Ho())),Ai((function(n){var r=this;return e(t,(function(e){return nn(e,r,n)}))}))}))}function Eo(e,t){var r=(t=t===n?" ":Hi(t)).length;if(r<2)return r?Si(t,e):t;var i=Si(t,qt(e/Vn(t)));return Fn(t)?eo(Wn(i),0,e).join(""):i.slice(0,e)}function Mo(e){return function(t,r,i){return i&&"number"!=typeof i&&Xo(t,r,i)&&(r=i=n),t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n,r){for(var i=-1,o=Jn(qt((t-e)/(n||1)),0),s=Xe(o);o--;)s[r?o:++i]=e,e+=n;return s}(t,r,i=i===n?t<r?1:-1:Ka(i),e)}}function Co(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qa(t),n=Qa(n)),e(t,n)}}function Do(e,t,r,i,o,s,a,l,c,u){var d=t&v;t|=d?_:x,(t&=~(d?x:_))&y||(t&=~(g|b));var p=[e,t,o,d?s:n,d?a:n,d?n:s,d?n:a,l,c,u],h=r.apply(n,p);return ts(e)&&us(h,p),h.placeholder=i,hs(h,e,t)}function So(e){var t=rt[e];return function(e,n){if(e=Qa(e),(n=null==n?0:Zn(Ga(n),292))&&En(e)){var r=(Za(e)+"e").split("e");return+((r=(Za(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Ao=sr&&1/Hn(new sr([,-0]))[1]==I?function(e){return new sr(e)}:Hl;function No(e){return function(t){var n=Go(t);return n==Q?Pn(t):n==re?$n(t):function(e,t){return dn(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Oo(e,t,r,i,o,a,l,c){var d=t&b;if(!d&&"function"!=typeof e)throw new at(s);var p=i?i.length:0;if(p||(t&=~(_|x),i=o=n),l=l===n?l:Jn(Ga(l),0),c=c===n?c:Ga(c),p-=o?o.length:0,t&x){var h=i,f=o;i=o=n}var m=d?n:Po(e),M=[e,t,r,i,o,h,f,a,l,c];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(g|b|k),s=r==k&&n==v||r==k&&n==E&&e[7].length<=t[8]||r==(k|E)&&t[7].length<=t[8]&&n==v;if(!o&&!s)return e;r&g&&(e[2]=t[2],i|=n&g?0:y);var a=t[3];if(a){var l=e[3];e[3]=l?so(l,a,t[4]):a,e[4]=l?Un(e[3],u):t[4]}(a=t[5])&&(l=e[5],e[5]=l?ao(l,a,t[6]):a,e[6]=l?Un(e[5],u):t[6]);(a=t[7])&&(e[7]=a);r&k&&(e[8]=null==e[8]?t[8]:Zn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(M,m),e=M[0],t=M[1],r=M[2],i=M[3],o=M[4],!(c=M[9]=M[9]===n?d?0:e.length:Jn(M[9]-p,0))&&t&(v|w)&&(t&=~(v|w)),t&&t!=g)C=t==v||t==w?function(e,t,r){var i=bo(e);return function o(){for(var s=arguments.length,a=Xe(s),l=s,c=Uo(o);l--;)a[l]=arguments[l];var u=s<3&&a[0]!==c&&a[s-1]!==c?[]:Un(a,c);return(s-=u.length)<r?Do(e,t,wo,o.placeholder,n,a,u,n,n,r-s):nn(this&&this!==Vt&&this instanceof o?i:e,this,a)}}(e,t,c):t!=_&&t!=(g|_)||o.length?wo.apply(n,M):function(e,t,n,r){var i=t&g,o=bo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,c=r.length,u=Xe(c+a),d=this&&this!==Vt&&this instanceof t?o:e;++l<c;)u[l]=r[l];for(;a--;)u[l++]=arguments[++s];return nn(d,i?n:this,u)}}(e,t,r,i);else var C=function(e,t,n){var r=t&g,i=bo(e);return function t(){return(this&&this!==Vt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return hs((m?Ii:us)(C,M),e,t)}function To(e,t,r,i){return e===n||wa(e,ut[r])&&!ht.call(i,r)?t:e}function Io(e,t,r,i,o,s){return La(e)&&La(t)&&(s.set(t,e),_i(e,t,n,Io,s),s["delete"](t)),e}function Lo(e){return Fa(e)?n:e}function jo(e,t,r,i,o,s){var a=r&f,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var p=-1,h=!0,g=r&m?new Dr:n;for(s.set(e,t),s.set(t,e);++p<l;){var b=e[p],y=t[p];if(i)var v=a?i(y,b,p,t,e,s):i(b,y,p,e,t,s);if(v!==n){if(v)continue;h=!1;break}if(g){if(!mn(t,(function(e,t){if(!On(g,t)&&(b===e||o(b,e,r,i,s)))return g.push(t)}))){h=!1;break}}else if(b!==y&&!o(b,y,r,i,s)){h=!1;break}}return s["delete"](e),s["delete"](t),h}function Ro(e){return ps(ss(e,n,Ms),e+"")}function zo(e){return ri(e,dl,qo)}function Fo(e){return ri(e,pl,Ko)}var Po=cr?function(e){return cr.get(e)}:Hl;function Bo(e){for(var t=e.name+"",n=ur[t],r=ht.call(ur,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Uo(e){return(ht.call(vr,"placeholder")?vr:e).placeholder}function Ho(){var e=vr.iteratee||Fl;return e=e===Fl?fi:e,arguments.length?e(arguments[0],arguments[1]):e}function $o(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Vo(e){for(var t=dl(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,is(i)]}return t}function Wo(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return hi(r)?r:n}var qo=Yt?function(e){return null==e?[]:(e=it(e),ln(Yt(e),(function(t){return Ct.call(e,t)})))}:Yl,Ko=Yt?function(e){for(var t=[];e;)pn(t,qo(e)),e=Et(e);return t}:Yl,Go=ii;function Yo(e,t,n){for(var r=-1,i=(t=Zi(t,e)).length,o=!1;++r<i;){var s=bs(t[r]);if(!(o=null!=e&&n(e,s)))break;e=e[s]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ia(i)&&Zo(s,i)&&(Ea(e)||ka(e))}function Qo(e){return"function"!=typeof e.constructor||rs(e)?{}:wr(Et(e))}function Jo(e){return Ea(e)||ka(e)||!!(St&&e&&e[St])}function Zo(e,t){var n=typeof e;return!!(t=null==t?L:t)&&("number"==n||"symbol"!=n&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Xo(e,t,n){if(!La(n))return!1;var r=typeof t;return!!("number"==r?Ca(n)&&Zo(t,n.length):"string"==r&&t in n)&&wa(n[t],e)}function es(e,t){if(Ea(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ha(e))||(Oe.test(e)||!Ne.test(e)||null!=t&&e in it(t))}function ts(e){var t=Bo(e),n=vr[t];if("function"!=typeof n||!(t in kr.prototype))return!1;if(e===n)return!0;var r=Po(n);return!!r&&e===r[0]}(rr&&Go(new rr(new ArrayBuffer(1)))!=ue||ir&&Go(new ir)!=Q||or&&Go(or.resolve())!=ee||sr&&Go(new sr)!=re||ar&&Go(new ar)!=ae)&&(Go=function(e){var t=ii(e),r=t==X?e.constructor:n,i=r?ys(r):"";if(i)switch(i){case dr:return ue;case pr:return Q;case hr:return ee;case fr:return re;case mr:return ae}return t});var ns=dt?Oa:Ql;function rs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ut)}function is(e){return e==e&&!La(e)}function os(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==n||e in it(r)))}}function ss(e,t,r){return t=Jn(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=Jn(n.length-t,0),s=Xe(o);++i<o;)s[i]=n[t+i];i=-1;for(var a=Xe(t+1);++i<t;)a[i]=n[i];return a[t]=r(s),nn(e,this,a)}}function as(e,t){return t.length<2?e:ni(e,Ri(t,0,-1))}function ls(e,t){for(var r=e.length,i=Zn(t.length,r),o=lo(e);i--;){var s=t[i];e[i]=Zo(s,r)?o[s]:n}return e}function cs(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var us=fs(Ii),ds=Wt||function(e,t){return Vt.setTimeout(e,t)},ps=fs(Li);function hs(e,t,n){var r=t+"";return ps(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ze,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return on(B,(function(n){var r="_."+n[0];t&n[1]&&!cn(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(Pe):[]}(r),n)))}function fs(e){var t=0,r=0;return function(){var i=Xn(),o=A-(i-r);if(r=i,o>0){if(++t>=S)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r<t;){var s=Di(r,o),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var gs=function(e){var t=fa(e,(function(e){return n.size===c&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Te,(function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)})),t}));function bs(e){if("string"==typeof e||Ha(e))return e;var t=e+"";return"0"==t&&1/e==-I?"-0":t}function ys(e){if(null!=e){try{return pt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function vs(e){if(e instanceof kr)return e.clone();var t=new xr(e.__wrapped__,e.__chain__);return t.__actions__=lo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var ws=Ai((function(e,t){return Da(e)?Vr(e,Qr(t,1,Da,!0)):[]})),_s=Ai((function(e,t){var r=Ns(t);return Da(r)&&(r=n),Da(e)?Vr(e,Qr(t,1,Da,!0),Ho(r,2)):[]})),xs=Ai((function(e,t){var r=Ns(t);return Da(r)&&(r=n),Da(e)?Vr(e,Qr(t,1,Da,!0),n,r):[]}));function ks(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),yn(e,Ho(t,3),i)}function Es(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return r!==n&&(o=Ga(r),o=r<0?Jn(i+o,0):Zn(o,i-1)),yn(e,Ho(t,3),o,!0)}function Ms(e){return(null==e?0:e.length)?Qr(e,1):[]}function Cs(e){return e&&e.length?e[0]:n}var Ds=Ai((function(e){var t=dn(e,Qi);return t.length&&t[0]===e[0]?li(t):[]})),Ss=Ai((function(e){var t=Ns(e),r=dn(e,Qi);return t===Ns(r)?t=n:r.pop(),r.length&&r[0]===e[0]?li(r,Ho(t,2)):[]})),As=Ai((function(e){var t=Ns(e),r=dn(e,Qi);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?li(r,n,t):[]}));function Ns(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Os=Ai(Ts);function Ts(e,t){return e&&e.length&&t&&t.length?Mi(e,t):e}var Is=Ro((function(e,t){var n=null==e?0:e.length,r=Pr(e,t);return Ci(e,dn(t,(function(e){return Zo(e,n)?+e:e})).sort(oo)),r}));function Ls(e){return null==e?e:nr.call(e)}var js=Ai((function(e){return $i(Qr(e,1,Da,!0))})),Rs=Ai((function(e){var t=Ns(e);return Da(t)&&(t=n),$i(Qr(e,1,Da,!0),Ho(t,2))})),zs=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,$i(Qr(e,1,Da,!0),n,t)}));function Fs(e){if(!e||!e.length)return[];var t=0;return e=ln(e,(function(e){if(Da(e))return t=Jn(e.length,t),!0})),Dn(t,(function(t){return dn(e,kn(t))}))}function Ps(e,t){if(!e||!e.length)return[];var r=Fs(e);return null==t?r:dn(r,(function(e){return nn(t,n,e)}))}var Bs=Ai((function(e,t){return Da(e)?Vr(e,t):[]})),Us=Ai((function(e){return Gi(ln(e,Da))})),Hs=Ai((function(e){var t=Ns(e);return Da(t)&&(t=n),Gi(ln(e,Da),Ho(t,2))})),$s=Ai((function(e){var t=Ns(e);return t="function"==typeof t?t:n,Gi(ln(e,Da),n,t)})),Vs=Ai(Fs);var Ws=Ai((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,Ps(e,r)}));function qs(e){var t=vr(e);return t.__chain__=!0,t}function Ks(e,t){return t(e)}var Gs=Ro((function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return Pr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof kr&&Zo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Ks,args:[o],thisArg:n}),new xr(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)}));var Ys=uo((function(e,t,n){ht.call(e,n)?++e[n]:Fr(e,n,1)}));var Qs=yo(ks),Js=yo(Es);function Zs(e,t){return(Ea(e)?on:Wr)(e,Ho(t,3))}function Xs(e,t){return(Ea(e)?sn:qr)(e,Ho(t,3))}var ea=uo((function(e,t,n){ht.call(e,n)?e[n].push(t):Fr(e,n,[t])}));var ta=Ai((function(e,t,n){var r=-1,i="function"==typeof t,o=Ca(e)?Xe(e.length):[];return Wr(e,(function(e){o[++r]=i?nn(t,e,n):ci(e,t,n)})),o})),na=uo((function(e,t,n){Fr(e,n,t)}));function ra(e,t){return(Ea(e)?dn:yi)(e,Ho(t,3))}var ia=uo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var oa=Ai((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xo(e,t[0],t[1])?t=[]:n>2&&Xo(t[0],t[1],t[2])&&(t=[t[0]]),ki(e,Qr(t,1),[])})),sa=$t||function(){return Vt.Date.now()};function aa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Oo(e,k,n,n,n,n,t)}function la(e,t){var r;if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ca=Ai((function(e,t,n){var r=g;if(n.length){var i=Un(n,Uo(ca));r|=_}return Oo(e,r,t,n,i)})),ua=Ai((function(e,t,n){var r=g|b;if(n.length){var i=Un(n,Uo(ua));r|=_}return Oo(t,r,e,n,i)}));function da(e,t,r){var i,o,a,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof e)throw new at(s);function m(t){var r=i,s=o;return i=o=n,d=t,l=e.apply(s,r)}function g(e){return d=e,c=ds(y,t),p?m(e):l}function b(e){var r=e-u;return u===n||r>=t||r<0||h&&e-d>=a}function y(){var e=sa();if(b(e))return v(e);c=ds(y,function(e){var n=t-(e-u);return h?Zn(n,a-(e-d)):n}(e))}function v(e){return c=n,f&&i?m(e):(i=o=n,l)}function w(){var e=sa(),r=b(e);if(i=arguments,o=this,u=e,r){if(c===n)return g(u);if(h)return to(c),c=ds(y,t),m(u)}return c===n&&(c=ds(y,t)),l}return t=Qa(t)||0,La(r)&&(p=!!r.leading,a=(h="maxWait"in r)?Jn(Qa(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),w.cancel=function(){c!==n&&to(c),d=0,i=u=o=c=n},w.flush=function(){return c===n?l:v(sa())},w}var pa=Ai((function(e,t){return $r(e,1,t)})),ha=Ai((function(e,t,n){return $r(e,Qa(t)||0,n)}));function fa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new at(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(fa.Cache||Cr),n}function ma(e){if("function"!=typeof e)throw new at(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}fa.Cache=Cr;var ga=Xi((function(e,t){var n=(t=1==t.length&&Ea(t[0])?dn(t[0],An(Ho())):dn(Qr(t,1),An(Ho()))).length;return Ai((function(r){for(var i=-1,o=Zn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return nn(e,this,r)}))})),ba=Ai((function(e,t){var r=Un(t,Uo(ba));return Oo(e,_,n,t,r)})),ya=Ai((function(e,t){var r=Un(t,Uo(ya));return Oo(e,x,n,t,r)})),va=Ro((function(e,t){return Oo(e,E,n,n,n,t)}));function wa(e,t){return e===t||e!=e&&t!=t}var _a=Co(oi),xa=Co((function(e,t){return e>=t})),ka=ui(function(){return arguments}())?ui:function(e){return ja(e)&&ht.call(e,"callee")&&!Ct.call(e,"callee")},Ea=Xe.isArray,Ma=Qt?An(Qt):function(e){return ja(e)&&ii(e)==ce};function Ca(e){return null!=e&&Ia(e.length)&&!Oa(e)}function Da(e){return ja(e)&&Ca(e)}var Sa=gn||Ql,Aa=Jt?An(Jt):function(e){return ja(e)&&ii(e)==W};function Na(e){if(!ja(e))return!1;var t=ii(e);return t==K||t==q||"string"==typeof e.message&&"string"==typeof e.name&&!Fa(e)}function Oa(e){if(!La(e))return!1;var t=ii(e);return t==G||t==Y||t==$||t==te}function Ta(e){return"number"==typeof e&&e==Ga(e)}function Ia(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function La(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ja(e){return null!=e&&"object"==typeof e}var Ra=Zt?An(Zt):function(e){return ja(e)&&Go(e)==Q};function za(e){return"number"==typeof e||ja(e)&&ii(e)==J}function Fa(e){if(!ja(e)||ii(e)!=X)return!1;var t=Et(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pt.call(n)==bt}var Pa=Xt?An(Xt):function(e){return ja(e)&&ii(e)==ne};var Ba=en?An(en):function(e){return ja(e)&&Go(e)==re};function Ua(e){return"string"==typeof e||!Ea(e)&&ja(e)&&ii(e)==ie}function Ha(e){return"symbol"==typeof e||ja(e)&&ii(e)==oe}var $a=tn?An(tn):function(e){return ja(e)&&Ia(e.length)&&!!zt[ii(e)]};var Va=Co(bi),Wa=Co((function(e,t){return e<=t}));function qa(e){if(!e)return[];if(Ca(e))return Ua(e)?Wn(e):lo(e);if(Ot&&e[Ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ot]());var t=Go(e);return(t==Q?Pn:t==re?Hn:wl)(e)}function Ka(e){return e?(e=Qa(e))===I||e===-I?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Ga(e){var t=Ka(e),n=t%1;return t==t?n?t-n:t:0}function Ya(e){return e?Br(Ga(e),0,z):0}function Qa(e){if("number"==typeof e)return e;if(Ha(e))return R;if(La(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=La(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Sn(e);var n=qe.test(e);return n||Ge.test(e)?Ut(e.slice(2),n?2:8):We.test(e)?R:+e}function Ja(e){return co(e,pl(e))}function Za(e){return null==e?"":Hi(e)}var Xa=po((function(e,t){if(rs(t)||Ca(t))co(t,dl(t),e);else for(var n in t)ht.call(t,n)&&Lr(e,n,t[n])})),el=po((function(e,t){co(t,pl(t),e)})),tl=po((function(e,t,n,r){co(t,pl(t),e,r)})),nl=po((function(e,t,n,r){co(t,dl(t),e,r)})),rl=Ro(Pr);var il=Ai((function(e,t){e=it(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Xo(t[0],t[1],o)&&(i=1);++r<i;)for(var s=t[r],a=pl(s),l=-1,c=a.length;++l<c;){var u=a[l],d=e[u];(d===n||wa(d,ut[u])&&!ht.call(e,u))&&(e[u]=s[u])}return e})),ol=Ai((function(e){return e.push(n,Io),nn(fl,n,e)}));function sl(e,t,r){var i=null==e?n:ni(e,t);return i===n?r:i}function al(e,t){return null!=e&&Yo(e,t,ai)}var ll=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),e[t]=n}),Ll(zl)),cl=_o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ho),ul=Ai(ci);function dl(e){return Ca(e)?Ar(e):mi(e)}function pl(e){return Ca(e)?Ar(e,!0):gi(e)}var hl=po((function(e,t,n){_i(e,t,n)})),fl=po((function(e,t,n,r){_i(e,t,n,r)})),ml=Ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=dn(t,(function(t){return t=Zi(t,e),r||(r=t.length>1),t})),co(e,Fo(e),n),r&&(n=Ur(n,d|p|h,Lo));for(var i=t.length;i--;)Vi(n,t[i]);return n}));var gl=Ro((function(e,t){return null==e?{}:function(e,t){return Ei(e,t,(function(t,n){return al(e,n)}))}(e,t)}));function bl(e,t){if(null==e)return{};var n=dn(Fo(e),(function(e){return[e]}));return t=Ho(t),Ei(e,n,(function(e,n){return t(e,n[0])}))}var yl=No(dl),vl=No(pl);function wl(e){return null==e?[]:Nn(e,dl(e))}var _l=go((function(e,t,n){return t=t.toLowerCase(),e+(n?xl(t):t)}));function xl(e){return Nl(Za(e).toLowerCase())}function kl(e){return(e=Za(e))&&e.replace(Qe,jn).replace(Nt,"")}var El=go((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ml=go((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Cl=mo("toLowerCase");var Dl=go((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Sl=go((function(e,t,n){return e+(n?" ":"")+Nl(t)}));var Al=go((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Nl=mo("toUpperCase");function Ol(e,t,r){return e=Za(e),(t=r?n:t)===n?function(e){return Lt.test(e)}(e)?function(e){return e.match(Tt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Tl=Ai((function(e,t){try{return nn(e,n,t)}catch(e){return Na(e)?e:new tt(e)}})),Il=Ro((function(e,t){return on(t,(function(t){t=bs(t),Fr(e,t,ca(e[t],e))})),e}));function Ll(e){return function(){return e}}var jl=vo(),Rl=vo(!0);function zl(e){return e}function Fl(e){return fi("function"==typeof e?e:Ur(e,d))}var Pl=Ai((function(e,t){return function(n){return ci(n,e,t)}})),Bl=Ai((function(e,t){return function(n){return ci(e,n,t)}}));function Ul(e,t,n){var r=dl(t),i=ti(t,r);null!=n||La(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ti(t,dl(t)));var o=!(La(n)&&"chain"in n&&!n.chain),s=Oa(e);return on(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=lo(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pn([this.value()],arguments))})})),e}function Hl(){}var $l=ko(dn),Vl=ko(an),Wl=ko(mn);function ql(e){return es(e)?kn(bs(e)):function(e){return function(t){return ni(t,e)}}(e)}var Kl=Mo(),Gl=Mo(!0);function Yl(){return[]}function Ql(){return!1}var Jl=xo((function(e,t){return e+t}),0),Zl=So("ceil"),Xl=xo((function(e,t){return e/t}),1),ec=So("floor");var tc=xo((function(e,t){return e*t}),1),nc=So("round"),rc=xo((function(e,t){return e-t}),0);return vr.after=function(e,t){if("function"!=typeof t)throw new at(s);return e=Ga(e),function(){if(--e<1)return t.apply(this,arguments)}},vr.ary=aa,vr.assign=Xa,vr.assignIn=el,vr.assignInWith=tl,vr.assignWith=nl,vr.at=rl,vr.before=la,vr.bind=ca,vr.bindAll=Il,vr.bindKey=ua,vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ea(e)?e:[e]},vr.chain=qs,vr.chunk=function(e,t,r){t=(r?Xo(e,t,r):t===n)?1:Jn(Ga(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Xe(qt(i/t));o<i;)a[s++]=Ri(e,o,o+=t);return a},vr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},vr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Xe(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pn(Ea(n)?lo(n):[n],Qr(t,1))},vr.cond=function(e){var t=null==e?0:e.length,n=Ho();return e=t?dn(e,(function(e){if("function"!=typeof e[1])throw new at(s);return[n(e[0]),e[1]]})):[],Ai((function(n){for(var r=-1;++r<t;){var i=e[r];if(nn(i[0],this,n))return nn(i[1],this,n)}}))},vr.conforms=function(e){return function(e){var t=dl(e);return function(n){return Hr(n,e,t)}}(Ur(e,d))},vr.constant=Ll,vr.countBy=Ys,vr.create=function(e,t){var n=wr(e);return null==t?n:zr(n,t)},vr.curry=function e(t,r,i){var o=Oo(t,v,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.curryRight=function e(t,r,i){var o=Oo(t,w,n,n,n,n,n,r=i?n:r);return o.placeholder=e.placeholder,o},vr.debounce=da,vr.defaults=il,vr.defaultsDeep=ol,vr.defer=pa,vr.delay=ha,vr.difference=ws,vr.differenceBy=_s,vr.differenceWith=xs,vr.drop=function(e,t,r){var i=null==e?0:e.length;return i?Ri(e,(t=r||t===n?1:Ga(t))<0?0:t,i):[]},vr.dropRight=function(e,t,r){var i=null==e?0:e.length;return i?Ri(e,0,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t):[]},vr.dropRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0,!0):[]},vr.dropWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!0):[]},vr.fill=function(e,t,r,i){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&Xo(e,t,r)&&(r=0,i=o),function(e,t,r,i){var o=e.length;for((r=Ga(r))<0&&(r=-r>o?0:o+r),(i=i===n||i>o?o:Ga(i))<0&&(i+=o),i=r>i?0:Ya(i);r<i;)e[r++]=t;return e}(e,t,r,i)):[]},vr.filter=function(e,t){return(Ea(e)?ln:Yr)(e,Ho(t,3))},vr.flatMap=function(e,t){return Qr(ra(e,t),1)},vr.flatMapDeep=function(e,t){return Qr(ra(e,t),I)},vr.flatMapDepth=function(e,t,r){return r=r===n?1:Ga(r),Qr(ra(e,t),r)},vr.flatten=Ms,vr.flattenDeep=function(e){return(null==e?0:e.length)?Qr(e,I):[]},vr.flattenDepth=function(e,t){return(null==e?0:e.length)?Qr(e,t=t===n?1:Ga(t)):[]},vr.flip=function(e){return Oo(e,M)},vr.flow=jl,vr.flowRight=Rl,vr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},vr.functions=function(e){return null==e?[]:ti(e,dl(e))},vr.functionsIn=function(e){return null==e?[]:ti(e,pl(e))},vr.groupBy=ea,vr.initial=function(e){return(null==e?0:e.length)?Ri(e,0,-1):[]},vr.intersection=Ds,vr.intersectionBy=Ss,vr.intersectionWith=As,vr.invert=ll,vr.invertBy=cl,vr.invokeMap=ta,vr.iteratee=Fl,vr.keyBy=na,vr.keys=dl,vr.keysIn=pl,vr.map=ra,vr.mapKeys=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Fr(n,t(e,r,i),e)})),n},vr.mapValues=function(e,t){var n={};return t=Ho(t,3),Xr(e,(function(e,r,i){Fr(n,r,t(e,r,i))})),n},vr.matches=function(e){return vi(Ur(e,d))},vr.matchesProperty=function(e,t){return wi(e,Ur(t,d))},vr.memoize=fa,vr.merge=hl,vr.mergeWith=fl,vr.method=Pl,vr.methodOf=Bl,vr.mixin=Ul,vr.negate=ma,vr.nthArg=function(e){return e=Ga(e),Ai((function(t){return xi(t,e)}))},vr.omit=ml,vr.omitBy=function(e,t){return bl(e,ma(Ho(t)))},vr.once=function(e){return la(2,e)},vr.orderBy=function(e,t,r,i){return null==e?[]:(Ea(t)||(t=null==t?[]:[t]),Ea(r=i?n:r)||(r=null==r?[]:[r]),ki(e,t,r))},vr.over=$l,vr.overArgs=ga,vr.overEvery=Vl,vr.overSome=Wl,vr.partial=ba,vr.partialRight=ya,vr.partition=ia,vr.pick=gl,vr.pickBy=bl,vr.property=ql,vr.propertyOf=function(e){return function(t){return null==e?n:ni(e,t)}},vr.pull=Os,vr.pullAll=Ts,vr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mi(e,t,Ho(n,2)):e},vr.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Mi(e,t,n,r):e},vr.pullAt=Is,vr.range=Kl,vr.rangeRight=Gl,vr.rearg=va,vr.reject=function(e,t){return(Ea(e)?ln:Yr)(e,ma(Ho(t,3)))},vr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Ho(t,3);++r<o;){var s=e[r];t(s,r,e)&&(n.push(s),i.push(r))}return Ci(e,i),n},vr.rest=function(e,t){if("function"!=typeof e)throw new at(s);return Ai(e,t=t===n?t:Ga(t))},vr.reverse=Ls,vr.sampleSize=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),(Ea(e)?Or:Oi)(e,t)},vr.set=function(e,t,n){return null==e?e:Ti(e,t,n)},vr.setWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ti(e,t,r,i)},vr.shuffle=function(e){return(Ea(e)?Tr:ji)(e)},vr.slice=function(e,t,r){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&Xo(e,t,r)?(t=0,r=i):(t=null==t?0:Ga(t),r=r===n?i:Ga(r)),Ri(e,t,r)):[]},vr.sortBy=oa,vr.sortedUniq=function(e){return e&&e.length?Bi(e):[]},vr.sortedUniqBy=function(e,t){return e&&e.length?Bi(e,Ho(t,2)):[]},vr.split=function(e,t,r){return r&&"number"!=typeof r&&Xo(e,t,r)&&(t=r=n),(r=r===n?z:r>>>0)?(e=Za(e))&&("string"==typeof t||null!=t&&!Pa(t))&&!(t=Hi(t))&&Fn(e)?eo(Wn(e),0,r):e.split(t,r):[]},vr.spread=function(e,t){if("function"!=typeof e)throw new at(s);return t=null==t?0:Jn(Ga(t),0),Ai((function(n){var r=n[t],i=eo(n,0,t);return r&&pn(i,r),nn(e,this,i)}))},vr.tail=function(e){var t=null==e?0:e.length;return t?Ri(e,1,t):[]},vr.take=function(e,t,r){return e&&e.length?Ri(e,0,(t=r||t===n?1:Ga(t))<0?0:t):[]},vr.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Ri(e,(t=i-(t=r||t===n?1:Ga(t)))<0?0:t,i):[]},vr.takeRightWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3),!1,!0):[]},vr.takeWhile=function(e,t){return e&&e.length?qi(e,Ho(t,3)):[]},vr.tap=function(e,t){return t(e),e},vr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new at(s);return La(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),da(e,t,{leading:r,maxWait:t,trailing:i})},vr.thru=Ks,vr.toArray=qa,vr.toPairs=yl,vr.toPairsIn=vl,vr.toPath=function(e){return Ea(e)?dn(e,bs):Ha(e)?[e]:lo(gs(Za(e)))},vr.toPlainObject=Ja,vr.transform=function(e,t,n){var r=Ea(e),i=r||Sa(e)||$a(e);if(t=Ho(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:La(e)&&Oa(o)?wr(Et(e)):{}}return(i?on:Xr)(e,(function(e,r,i){return t(n,e,r,i)})),n},vr.unary=function(e){return aa(e,1)},vr.union=js,vr.unionBy=Rs,vr.unionWith=zs,vr.uniq=function(e){return e&&e.length?$i(e):[]},vr.uniqBy=function(e,t){return e&&e.length?$i(e,Ho(t,2)):[]},vr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?$i(e,n,t):[]},vr.unset=function(e,t){return null==e||Vi(e,t)},vr.unzip=Fs,vr.unzipWith=Ps,vr.update=function(e,t,n){return null==e?e:Wi(e,t,Ji(n))},vr.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Wi(e,t,Ji(r),i)},vr.values=wl,vr.valuesIn=function(e){return null==e?[]:Nn(e,pl(e))},vr.without=Bs,vr.words=Ol,vr.wrap=function(e,t){return ba(Ji(t),e)},vr.xor=Us,vr.xorBy=Hs,vr.xorWith=$s,vr.zip=Vs,vr.zipObject=function(e,t){return Yi(e||[],t||[],Lr)},vr.zipObjectDeep=function(e,t){return Yi(e||[],t||[],Ti)},vr.zipWith=Ws,vr.entries=yl,vr.entriesIn=vl,vr.extend=el,vr.extendWith=tl,Ul(vr,vr),vr.add=Jl,vr.attempt=Tl,vr.camelCase=_l,vr.capitalize=xl,vr.ceil=Zl,vr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=Qa(r))==r?r:0),t!==n&&(t=(t=Qa(t))==t?t:0),Br(Qa(e),t,r)},vr.clone=function(e){return Ur(e,h)},vr.cloneDeep=function(e){return Ur(e,d|h)},vr.cloneDeepWith=function(e,t){return Ur(e,d|h,t="function"==typeof t?t:n)},vr.cloneWith=function(e,t){return Ur(e,h,t="function"==typeof t?t:n)},vr.conformsTo=function(e,t){return null==t||Hr(e,t,dl(t))},vr.deburr=kl,vr.defaultTo=function(e,t){return null==e||e!=e?t:e},vr.divide=Xl,vr.endsWith=function(e,t,r){e=Za(e),t=Hi(t);var i=e.length,o=r=r===n?i:Br(Ga(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},vr.eq=wa,vr.escape=function(e){return(e=Za(e))&&Ce.test(e)?e.replace(Ee,Rn):e},vr.escapeRegExp=function(e){return(e=Za(e))&&Le.test(e)?e.replace(Ie,"\\$&"):e},vr.every=function(e,t,r){var i=Ea(e)?an:Kr;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.find=Qs,vr.findIndex=ks,vr.findKey=function(e,t){return bn(e,Ho(t,3),Xr)},vr.findLast=Js,vr.findLastIndex=Es,vr.findLastKey=function(e,t){return bn(e,Ho(t,3),ei)},vr.floor=ec,vr.forEach=Zs,vr.forEachRight=Xs,vr.forIn=function(e,t){return null==e?e:Jr(e,Ho(t,3),pl)},vr.forInRight=function(e,t){return null==e?e:Zr(e,Ho(t,3),pl)},vr.forOwn=function(e,t){return e&&Xr(e,Ho(t,3))},vr.forOwnRight=function(e,t){return e&&ei(e,Ho(t,3))},vr.get=sl,vr.gt=_a,vr.gte=xa,vr.has=function(e,t){return null!=e&&Yo(e,t,si)},vr.hasIn=al,vr.head=Cs,vr.identity=zl,vr.includes=function(e,t,n,r){e=Ca(e)?e:wl(e),n=n&&!r?Ga(n):0;var i=e.length;return n<0&&(n=Jn(i+n,0)),Ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&vn(e,t,n)>-1},vr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ga(n);return i<0&&(i=Jn(r+i,0)),vn(e,t,i)},vr.inRange=function(e,t,r){return t=Ka(t),r===n?(r=t,t=0):r=Ka(r),function(e,t,n){return e>=Zn(t,n)&&e<Jn(t,n)}(e=Qa(e),t,r)},vr.invoke=ul,vr.isArguments=ka,vr.isArray=Ea,vr.isArrayBuffer=Ma,vr.isArrayLike=Ca,vr.isArrayLikeObject=Da,vr.isBoolean=function(e){return!0===e||!1===e||ja(e)&&ii(e)==V},vr.isBuffer=Sa,vr.isDate=Aa,vr.isElement=function(e){return ja(e)&&1===e.nodeType&&!Fa(e)},vr.isEmpty=function(e){if(null==e)return!0;if(Ca(e)&&(Ea(e)||"string"==typeof e||"function"==typeof e.splice||Sa(e)||$a(e)||ka(e)))return!e.length;var t=Go(e);if(t==Q||t==re)return!e.size;if(rs(e))return!mi(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0},vr.isEqual=function(e,t){return di(e,t)},vr.isEqualWith=function(e,t,r){var i=(r="function"==typeof r?r:n)?r(e,t):n;return i===n?di(e,t,n,r):!!i},vr.isError=Na,vr.isFinite=function(e){return"number"==typeof e&&En(e)},vr.isFunction=Oa,vr.isInteger=Ta,vr.isLength=Ia,vr.isMap=Ra,vr.isMatch=function(e,t){return e===t||pi(e,t,Vo(t))},vr.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,pi(e,t,Vo(t),r)},vr.isNaN=function(e){return za(e)&&e!=+e},vr.isNative=function(e){if(ns(e))throw new tt(o);return hi(e)},vr.isNil=function(e){return null==e},vr.isNull=function(e){return null===e},vr.isNumber=za,vr.isObject=La,vr.isObjectLike=ja,vr.isPlainObject=Fa,vr.isRegExp=Pa,vr.isSafeInteger=function(e){return Ta(e)&&e>=-L&&e<=L},vr.isSet=Ba,vr.isString=Ua,vr.isSymbol=Ha,vr.isTypedArray=$a,vr.isUndefined=function(e){return e===n},vr.isWeakMap=function(e){return ja(e)&&Go(e)==ae},vr.isWeakSet=function(e){return ja(e)&&ii(e)==le},vr.join=function(e,t){return null==e?"":Yn.call(e,t)},vr.kebabCase=El,vr.last=Ns,vr.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=Ga(r))<0?Jn(i+o,0):Zn(o,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):yn(e,_n,o,!0)},vr.lowerCase=Ml,vr.lowerFirst=Cl,vr.lt=Va,vr.lte=Wa,vr.max=function(e){return e&&e.length?Gr(e,zl,oi):n},vr.maxBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),oi):n},vr.mean=function(e){return xn(e,zl)},vr.meanBy=function(e,t){return xn(e,Ho(t,2))},vr.min=function(e){return e&&e.length?Gr(e,zl,bi):n},vr.minBy=function(e,t){return e&&e.length?Gr(e,Ho(t,2),bi):n},vr.stubArray=Yl,vr.stubFalse=Ql,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=tc,vr.nth=function(e,t){return e&&e.length?xi(e,Ga(t)):n},vr.noConflict=function(){return Vt._===this&&(Vt._=yt),this},vr.noop=Hl,vr.now=sa,vr.pad=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Eo(Gt(i),n)+e+Eo(qt(i),n)},vr.padEnd=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?e+Eo(t-r,n):e},vr.padStart=function(e,t,n){e=Za(e);var r=(t=Ga(t))?Vn(e):0;return t&&r<t?Eo(t-r,n)+e:e},vr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),er(Za(e).replace(je,""),t||0)},vr.random=function(e,t,r){if(r&&"boolean"!=typeof r&&Xo(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Ka(e),t===n?(t=e,e=0):t=Ka(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var o=tr();return Zn(e+o*(t-e+Bt("1e-"+((o+"").length-1))),t)}return Di(e,t)},vr.reduce=function(e,t,n){var r=Ea(e)?hn:Mn,i=arguments.length<3;return r(e,Ho(t,4),n,i,Wr)},vr.reduceRight=function(e,t,n){var r=Ea(e)?fn:Mn,i=arguments.length<3;return r(e,Ho(t,4),n,i,qr)},vr.repeat=function(e,t,r){return t=(r?Xo(e,t,r):t===n)?1:Ga(t),Si(Za(e),t)},vr.replace=function(){var e=arguments,t=Za(e[0]);return e.length<3?t:t.replace(e[1],e[2])},vr.result=function(e,t,r){var i=-1,o=(t=Zi(t,e)).length;for(o||(o=1,e=n);++i<o;){var s=null==e?n:e[bs(t[i])];s===n&&(i=o,s=r),e=Oa(s)?s.call(e):s}return e},vr.round=nc,vr.runInContext=e,vr.sample=function(e){return(Ea(e)?Nr:Ni)(e)},vr.size=function(e){if(null==e)return 0;if(Ca(e))return Ua(e)?Vn(e):e.length;var t=Go(e);return t==Q||t==re?e.size:mi(e).length},vr.snakeCase=Dl,vr.some=function(e,t,r){var i=Ea(e)?mn:zi;return r&&Xo(e,t,r)&&(t=n),i(e,Ho(t,3))},vr.sortedIndex=function(e,t){return Fi(e,t)},vr.sortedIndexBy=function(e,t,n){return Pi(e,t,Ho(n,2))},vr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Fi(e,t);if(r<n&&wa(e[r],t))return r}return-1},vr.sortedLastIndex=function(e,t){return Fi(e,t,!0)},vr.sortedLastIndexBy=function(e,t,n){return Pi(e,t,Ho(n,2),!0)},vr.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Fi(e,t,!0)-1;if(wa(e[n],t))return n}return-1},vr.startCase=Sl,vr.startsWith=function(e,t,n){return e=Za(e),n=null==n?0:Br(Ga(n),0,e.length),t=Hi(t),e.slice(n,n+t.length)==t},vr.subtract=rc,vr.sum=function(e){return e&&e.length?Cn(e,zl):0},vr.sumBy=function(e,t){return e&&e.length?Cn(e,Ho(t,2)):0},vr.template=function(e,t,r){var i=vr.templateSettings;r&&Xo(e,t,r)&&(t=n),e=Za(e),t=tl({},t,i,To);var o,s,l=tl({},t.imports,i.imports,To),c=dl(l),u=Nn(l,c),d=0,p=t.interpolate||Je,h="__p += '",f=ot((t.escape||Je).source+"|"+p.source+"|"+(p===Ae?$e:Je).source+"|"+(t.evaluate||Je).source+"|$","g"),m="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Rt+"]")+"\n";e.replace(f,(function(t,n,r,i,a,l){return r||(r=i),h+=e.slice(d,l).replace(Ze,zn),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),a&&(s=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=l+t.length,t})),h+="';\n";var g=ht.call(t,"variable")&&t.variable;if(g){if(Ue.test(g))throw new tt(a)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(we,""):h).replace(_e,"$1").replace(xe,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\n"+"function print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=Tl((function(){return nt(c,m+"return "+h).apply(n,u)}));if(b.source=h,Na(b))throw b;return b},vr.times=function(e,t){if((e=Ga(e))<1||e>L)return[];var n=z,r=Zn(e,z);t=Ho(t),e-=z;for(var i=Dn(r,t);++n<e;)t(n);return i},vr.toFinite=Ka,vr.toInteger=Ga,vr.toLength=Ya,vr.toLower=function(e){return Za(e).toLowerCase()},vr.toNumber=Qa,vr.toSafeInteger=function(e){return e?Br(Ga(e),-L,L):0===e?e:0},vr.toString=Za,vr.toUpper=function(e){return Za(e).toUpperCase()},vr.trim=function(e,t,r){if((e=Za(e))&&(r||t===n))return Sn(e);if(!e||!(t=Hi(t)))return e;var i=Wn(e),o=Wn(t);return eo(i,Tn(i,o),In(i,o)+1).join("")},vr.trimEnd=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.slice(0,qn(e)+1);if(!e||!(t=Hi(t)))return e;var i=Wn(e);return eo(i,0,In(i,Wn(t))+1).join("")},vr.trimStart=function(e,t,r){if((e=Za(e))&&(r||t===n))return e.replace(je,"");if(!e||!(t=Hi(t)))return e;var i=Wn(e);return eo(i,Tn(i,Wn(t))).join("")},vr.truncate=function(e,t){var r=C,i=D;if(La(t)){var o="separator"in t?t.separator:o;r="length"in t?Ga(t.length):r,i="omission"in t?Hi(t.omission):i}var s=(e=Za(e)).length;if(Fn(e)){var a=Wn(e);s=a.length}if(r>=s)return e;var l=r-Vn(i);if(l<1)return i;var c=a?eo(a,0,l).join(""):e.slice(0,l);if(o===n)return c+i;if(a&&(l+=c.length-l),Pa(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=ot(o.source,Za(Ve.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var p=u.index;c=c.slice(0,p===n?l:p)}}else if(e.indexOf(Hi(o),l)!=l){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+i},vr.unescape=function(e){return(e=Za(e))&&Me.test(e)?e.replace(ke,Kn):e},vr.uniqueId=function(e){var t=++ft;return Za(e)+t},vr.upperCase=Al,vr.upperFirst=Nl,vr.each=Zs,vr.eachRight=Xs,vr.first=Cs,Ul(vr,function(){var e={};return Xr(vr,(function(t,n){ht.call(vr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),vr.VERSION=r,on(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){vr[e].placeholder=vr})),on(["drop","take"],(function(e,t){kr.prototype[e]=function(r){r=r===n?1:Jn(Ga(r),0);var i=this.__filtered__&&!t?new kr(this):this.clone();return i.__filtered__?i.__takeCount__=Zn(r,i.__takeCount__):i.__views__.push({size:Zn(r,z),type:e+(i.__dir__<0?"Right":"")}),i},kr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),on(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==N||n==T;kr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),on(["head","last"],(function(e,t){var n="take"+(t?"Right":"");kr.prototype[e]=function(){return this[n](1).value()[0]}})),on(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");kr.prototype[e]=function(){return this.__filtered__?new kr(this):this[n](1)}})),kr.prototype.compact=function(){return this.filter(zl)},kr.prototype.find=function(e){return this.filter(e).head()},kr.prototype.findLast=function(e){return this.reverse().find(e)},kr.prototype.invokeMap=Ai((function(e,t){return"function"==typeof e?new kr(this):this.map((function(n){return ci(n,e,t)}))})),kr.prototype.reject=function(e){return this.filter(ma(Ho(e)))},kr.prototype.slice=function(e,t){e=Ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new kr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=Ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},kr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},kr.prototype.toArray=function(){return this.take(z)},Xr(kr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=vr[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(vr.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,l=t instanceof kr,c=a[0],u=l||Ea(t),d=function(e){var t=o.apply(vr,pn([e],a));return i&&p?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=s&&!p,m=l&&!h;if(!s&&u){t=m?t:new kr(this);var g=e.apply(t,a);return g.__actions__.push({func:Ks,args:[d],thisArg:n}),new xr(g,p)}return f&&m?e.apply(this,a):(g=this.thru(d),f?i?g.value()[0]:g.value():g)})})),on(["pop","push","shift","sort","splice","unshift"],(function(e){var t=lt[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ea(i)?i:[],e)}return this[n]((function(n){return t.apply(Ea(n)?n:[],e)}))}})),Xr(kr.prototype,(function(e,t){var n=vr[t];if(n){var r=n.name+"";ht.call(ur,r)||(ur[r]=[]),ur[r].push({name:t,func:n})}})),ur[wo(n,b).name]=[{name:"wrapper",func:n}],kr.prototype.clone=function(){var e=new kr(this.__wrapped__);return e.__actions__=lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=lo(this.__views__),e},kr.prototype.reverse=function(){if(this.__filtered__){var e=new kr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},kr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ea(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Zn(t,e+s);break;case"takeRight":e=Jn(e,t-s)}}return{start:e,end:t}}(0,i,this.__views__),s=o.start,a=o.end,l=a-s,c=r?a:s-1,u=this.__iteratees__,d=u.length,p=0,h=Zn(l,this.__takeCount__);if(!n||!r&&i==l&&h==l)return Ki(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var b=u[m],y=b.iteratee,v=b.type,w=y(g);if(v==O)g=w;else if(!w){if(v==N)continue e;break e}}f[p++]=g}return f},vr.prototype.at=Gs,vr.prototype.chain=function(){return qs(this)},vr.prototype.commit=function(){return new xr(this.value(),this.__chain__)},vr.prototype.next=function(){this.__values__===n&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},vr.prototype.plant=function(e){for(var t,r=this;r instanceof _r;){var i=vs(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof kr){var t=e;return this.__actions__.length&&(t=new kr(this)),(t=t.reverse()).__actions__.push({func:Ks,args:[Ls],thisArg:n}),new xr(t,this.__chain__)}return this.thru(Ls)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Ki(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Ot&&(vr.prototype[Ot]=function(){return this}),vr}();qt?((qt.exports=Gn)._=Gn,Wt._=Gn):Vt._=Gn}).call(Mi)}(Jj,Jj.exports);const Zj=()=>document.documentElement.style.setProperty("--focus-background-color","rgba(234, 243, 252, 0.5)"),Xj=()=>document.documentElement.style.setProperty("--focus-background-color","transparent"),eR={onMouseEnter:Zj,onMouseLeave:Xj},tR=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?eR:{}};function nR(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var rR="undefined"!=typeof window&&"undefined"!=typeof document;function iR(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function oR(){return rR&&document.createElement("div")}function sR(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!sR(e[n],t[n]))return!1}return!0}return!1}function aR(e){var t=[];return e.forEach((function(e){t.find((function(t){return sR(e,t)}))||t.push(e)})),t}var lR=rR?y:h;function cR(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var uR={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||cR(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&cR(t,"remove",e.props.className)},onAfterUpdate:r}}};function dR(e){return function(t){var n=t.children,r=t.content,i=t.visible,o=t.singleton,s=t.render,a=t.reference,l=t.disabled,u=void 0!==l&&l,h=t.ignoreAttributes,f=void 0===h||h;t.__source,t.__self;var m,g,y=nR(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]),v=void 0!==i,w=void 0!==o,_=d(!1),x=_[0],k=_[1],E=d({}),M=E[0],C=E[1],D=d(),S=D[0],A=D[1],N=(m=function(){return{container:oR(),renders:1}},(g=p()).current||(g.current="function"==typeof m?m():m),g.current),O=Object.assign({ignoreAttributes:f},y,{content:N.container});v&&(O.trigger="manual",O.hideOnClick=!1),w&&(u=!0);var T=O,I=O.plugins||[];s&&(T=Object.assign({},O,{plugins:w&&null!=o.data?[].concat(I,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):I,render:function(){return{popper:N.container}}}));var L=[a].concat(n?[n.type]:[]);return lR((function(){var t=a;a&&a.hasOwnProperty("current")&&(t=a.current);var n=e(t||N.ref||oR(),Object.assign({},T,{plugins:[uR].concat(O.plugins||[])}));return N.instance=n,u&&n.disable(),i&&n.show(),w&&o.hook({instance:n,content:r,props:T,setSingletonContent:A}),k(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),L),lR((function(){var e;if(1!==N.renders){var t,n,s,a,l=N.instance;l.setProps((t=l.props,n=T,Object.assign({},n,{popperOptions:Object.assign({},t.popperOptions,n.popperOptions,{modifiers:aR([].concat((null==(s=t.popperOptions)?void 0:s.modifiers)||[],(null==(a=n.popperOptions)?void 0:a.modifiers)||[]))})}))),null==(e=l.popperInstance)||e.forceUpdate(),u?l.disable():l.enable(),v&&(i?l.show():l.hide()),w&&o.hook({instance:l,content:r,props:T,setSingletonContent:A})}else N.renders++})),lR((function(){var e;if(s){var t=N.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;M.placement===n.placement&&M.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&M.escaped===(null==r?void 0:r.hasPopperEscaped)||C({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[M.placement,M.referenceHidden,M.escaped].concat(L)),c.createElement(c.Fragment,null,n?b(n,{ref:function(e){N.ref=e,iR(n.ref,e)}}):null,x&&ke(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(M),S,N.instance):r,N.container))}}var pR=function(e,t){return g((function(n,r){var i=n.children,o=nR(n,["children"]);return c.createElement(e,Object.assign({},t,o),i?b(i,{ref:function(e){iR(r,e),iR(i.ref,e)}}):null)}))},hR=pR(dR(xD));class fR extends c.Component{constructor(e){super(e),gb(this,"keydownHandler",(e=>{const t={Enter:this.enterHandler,ArrowUp:this.upHandler,ArrowDown:this.downHandler,ArrowLeft:this.leftArrowHandler,ArrowRight:this.rightArrowHandler};e.key in t&&t[e.key](e)})),gb(this,"selectItem",(e=>{const{items:t,editor:n,range:r}=this.props,i=t[e],o=i&&i.command,s=ls(i.items);o&&s&&i.command({editor:n,range:r})})),gb(this,"upHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+e.length-1)%e.length})})),gb(this,"downHandler",(()=>{const{items:e}=this.props,{selectedIndex:t}=this.state;this.setState({selectedIndex:(t+1)%e.length})})),gb(this,"enterHandler",(()=>{const{selectedIndex:e}=this.state;this.selectItem(e)})),gb(this,"leftArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t}=this.props;e>0&&t(e-1)})),gb(this,"rightArrowHandler",(()=>{const{menuIndex:e,setActiveMenuIndex:t,items:n}=this.props,{selectedIndex:r}=this.state,i=n[r];i&&!ls(i.items)&&t(e+1)})),this.state={selectedIndex:0},this.menuRef=c.createRef()}componentDidMount(){const{menuIndex:e,activeMenuIndex:t}=this.props;e===t&&document.addEventListener("keydown",this.keydownHandler)}componentWillUnmount(){document.removeEventListener("keydown",this.keydownHandler)}componentDidUpdate(e){const{items:t,menuIndex:n,activeMenuIndex:r}=this.props,i=n===r;t!==e.items&&this.setState({selectedIndex:0}),YL({wrapperRef:this.menuRef,index:this.state.selectedIndex}),i?document.addEventListener("keydown",this.keydownHandler):document.removeEventListener("keydown",this.keydownHandler)}render(){const{items:e,menuIndex:t,activeMenuIndex:n}=this.props,{selectedIndex:r}=this.state,i=t===n;return c.createElement("div",{className:"neeto-editor-slash-commands__wrapper",ref:this.menuRef},e.map(((e,n)=>{const o=ls(e.items),s=c.createElement(mR,{index:n,item:e,key:e.title,selectItem:()=>o&&this.selectItem(n),selectedIndex:i?r:-1,onHover:()=>this.setState({selectedIndex:n})});return o?s:c.createElement(hR,{interactive:!0,key:e.title,placement:"right",visible:r===n,content:c.createElement(fR,hv({},this.props,{items:e.items,menuIndex:t+1})),onCreate:e=>{let{popper:t}=e;return t.style.width="max-content"},onHide:()=>{this.isSubmenuOpened=!1},onShow:()=>{this.isSubmenuOpened=!0}},s)})))}}const mR=g(((e,t)=>{let{item:n,selectedIndex:r,index:i,selectItem:o,onHover:s}=e;const{Icon:a}=n;return c.createElement("div",{"data-cy":`neeto-editor-command-list-item-${i}`,ref:t,className:gl("neeto-editor-slash-commands__item",{active:i===r}),onClick:o,onMouseEnter:s},a&&c.createElement(a,{size:20}),c.createElement("div",{className:"neeto-editor-slash-commands__item-content"},c.createElement("h5",null,n.title),c.createElement("p",null,n.description)))}));class gR extends c.Component{constructor(){super(...arguments),gb(this,"state",{activeMenuIndex:0}),gb(this,"onKeyDown",(e=>{let{event:t}=e;return["Enter","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)})),gb(this,"setActiveMenuIndex",(e=>this.setState({activeMenuIndex:e})))}render(){return c.createElement(fR,hv({},this.props,{activeMenuIndex:this.state.activeMenuIndex,items:this.props.items,menuIndex:0,setActiveMenuIndex:this.setActiveMenuIndex}))}}const bR=[{optionName:er.PARAGRAPH,title:"Paragraph",description:"Add a plain text block.",Icon:$,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("paragraph").run()}},{optionName:er.H1,title:"H1",description:"Add a big heading.",Icon:V,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:1}).run()}},{optionName:er.H2,title:"H2",description:"Add a sub-heading.",Icon:W,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:2}).run()}},{optionName:er.H3,title:"H3",description:"Add a sub-heading of level 3.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:3}).run()}},{optionName:er.H4,title:"H4",description:"Add a sub-heading of level 4.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:4}).run()}},{optionName:er.H5,title:"H5",description:"Add a sub-heading of level 5.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:5}).run()}},{optionName:er.H6,title:"H6",description:"Add a sub-heading of level 6.",Icon:q,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setNode("heading",{level:6}).run()}},{optionName:er.LIST_ORDERED,title:"Numbered list",description:"Add a list with numbering.",Icon:K,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleOrderedList().run()}},{optionName:er.LIST_BULLETS,title:"Bulleted list",description:"Add a list with bullets.",Icon:G,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBulletList().run()}},{optionName:er.IMAGE_UPLOAD,title:"Image",description:"Add an image.",Icon:Y,command:n},{optionName:er.VIDEO_UPLOAD,title:"Video",description:"Add a video.",Icon:Q,command:n},{optionName:er.BLOCKQUOTE,title:"Blockquote",description:"Add a quote.",Icon:J,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleBlockquote().run()}},{optionName:er.CODE_BLOCK,title:"Code block",description:"Add a code block with syntax highlighting.",Icon:Z,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).toggleCodeBlock().run()}},{optionName:er.EMOJI,title:"Emoji",description:"Add an emoji.",Icon:X,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).insertContent("::").run()}},{optionName:er.DIVIDER,title:"Divider",description:"Add an horizontal line to separate sections.",Icon:ee,command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).setHorizontalRule().run()}},{optionName:er.VIDEO_EMBED,title:"Embed Youtube/Loom/Vimeo",description:"Embed a video from major services.",Icon:te,command:n},{optionName:er.PASTE_UNFORMATTED,title:"Paste Unformatted",description:"Paste by removing all styles.",Icon:ne,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).pasteUnformatted().run()}},{optionName:er.TABLE,title:"Table",description:"Add a table",Icon:re,command:e=>{let{editor:t,range:n}=e;return t.chain().focus().deleteRange(n).insertTable({rows:3,cols:3,withHeaderRow:!0}).run()}}],yR={title:"No results",command:e=>{let{editor:t,range:n}=e;t.chain().focus().deleteRange(n).run()}},vR=e=>{let{options:t,addonCommands:n,setMediaUploader:r,setIsEmbedModalOpen:i}=e;const o=bR.map((e=>e.optionName===er.IMAGE_UPLOAD?ve("command",(e=>t=>{let{editor:n,range:r}=t;e(ve("image",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===er.VIDEO_UPLOAD?ve("command",(e=>t=>{let{editor:n,range:r}=t;e(ve("video",!0)),n.chain().focus().deleteRange(r).run()})(r),e):e.optionName===er.VIDEO_EMBED?ve("command",(e=>t=>{let{editor:n,range:r}=t;e(!0),n.chain().focus().deleteRange(r).run()})(i),e):e));return[...o.filter((e=>{let{optionName:n}=e;return t.includes(n)})),...n]},wR=new Xn("commands");var _R=e=>{let{addonCommands:t,options:n,setMediaUploader:r,setIsEmbedModalOpen:i}=e;const o=vR({options:n,addonCommands:t,setMediaUploader:r,setIsEmbedModalOpen:i});return wE.create({name:"slash-commands",addOptions:()=>({HTMLAttributes:{class:"commands"},suggestion:{char:"/",startOfLine:!1,pluginKey:wR,command:e=>{let{editor:t,range:n,props:r}=e;r.command({editor:t,range:n})},items:e=>{let{query:t}=e;const n=o.filter((e=>{let{title:n}=e;return n.toLowerCase().includes(t.toLowerCase())}));return Jj.exports.isEmpty(n)?[yR]:n},render:()=>{let e,t;return{onStart:n=>{e=new jD(gR,{props:n,editor:n.editor}),t=xD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",arrow:!1,zIndex:99999,role:"dropdown",theme:"neeto-editor-slash-menu"}),Zj()},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(t){var n;return null===(n=e.ref)||void 0===n?void 0:n.onKeyDown(t)},onExit(){t&&t[0].destroy(),e&&e.destroy(),Xj()}}}}}),addProseMirrorPlugins(){return[lT({editor:this.editor,...this.options.suggestion})]}})};const xR=new Xn("special-mention"),kR=e=>{var t;let{options:n,node:r}=e;return`${n.suggestion.char}${null!==(t=r.attrs.label)&&void 0!==t?t:r.attrs.id}`},ER={char:"@@",pluginKey:xR,render:()=>{let e,t;return{onStart:n=>{e=new jD(QL,{props:n,editor:n.editor}),t=xD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onKeyDown(n){var r;return"Escape"===n.event.key?(t[0].hide(),!0):null===(r=e.ref)||void 0===r?void 0:r.onKeyDown(n)},onExit(){t[0].destroy(),e.destroy()}}}},MR=GL.extend({name:"special-mention",renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",nE({"data-type":this.name},this.options.HTMLAttributes,n),kR({options:this.options,node:t})]}});var CR=e=>{let{suggestion:t={},...n}=e;return MR.configure({...n,suggestion:{...ER,...t}})};let DR,SR;if("undefined"!=typeof WeakMap){let e=new WeakMap;DR=t=>e.get(t),SR=(t,n)=>(e.set(t,n),n)}else{let e=[],t=10,n=0;DR=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},SR=(r,i)=>(n==t&&(n=0),e[n++]=r,e[n++]=i)}class AR{constructor(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r}}class NR{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,o=r+1,s=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;s<this.height&&this.map[t+this.width*e]==n;e++)s++;return new AR(r,i,o,s)}throw new RangeError("No cell with offset "+e+" found")}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")}nextCell(e,t,n){let{left:r,right:i,top:o,bottom:s}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:s,right:a,top:l,bottom:c}=this.findCell(t);return new AR(Math.min(n,s),Math.min(i,l),Math.max(r,a),Math.max(o,c))}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let o=r*this.width+i,s=this.map[o];n[s]||(n[s]=!0,i==e.left&&i&&this.map[o-1]==s||r==e.top&&r&&this.map[o-this.width]==s||t.push(s))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return DR(e)||SR(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);let t=function(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),o=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,r=[],i=0,o=null,s=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let a=0,l=0;a<n;a++){let c=e.child(a);l++;for(let e=0;;e++){for(;i<r.length&&0!=r[i];)i++;if(e==c.childCount)break;let u=c.child(e),{colspan:d,rowspan:p,colwidth:h}=u.attrs;for(let e=0;e<p;e++){if(e+a>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:l,n:p-e});break}let c=i+e*t;for(let e=0;e<d;e++){0==r[c+e]?r[c+e]=l:(o||(o=[])).push({type:"collision",row:a,pos:l,n:d-e});let n=h&&h[e];if(n){let r=(c+e)%t*2,i=s[r];null==i||i!=n&&1==s[r+1]?(s[r]=n,s[r+1]=1):i==n&&s[r+1]++}}}i+=d,l+=u.nodeSize}let u=(a+1)*t,d=0;for(;i<u;)0==r[i++]&&d++;d&&(o||(o=[])).push({type:"missing",row:a,n:d}),l++}let a=new NR(t,n,r,o),l=!1;for(let e=0;!l&&e<s.length;e+=2)null!=s[e]&&s[e+1]<n&&(l=!0);l&&function(e,t,n){e.problems||(e.problems=[]);for(let r=0,i={};r<e.map.length;r++){let o=e.map[r];if(i[o])continue;i[o]=!0;let s=n.nodeAt(o),a=null;for(let n=0;n<s.attrs.colspan;n++){let i=t[2*((r+n)%e.width)];null==i||s.attrs.colwidth&&s.attrs.colwidth[n]==i||((a||(a=OR(s.attrs)))[n]=i)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}(a,s,e);return a}(e))}}function OR(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function TR(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}const IR=new Xn("selectingCells");function LR(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function jR(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function RR(e){let t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:LR(t.$head)||function(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}(t.$head)}function zR(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function FR(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function PR(e,t,n){let r=e.start(-1),i=NR.get(e.node(-1)).nextCell(e.pos-r,t,n);return null==i?null:e.node(0).resolve(r+i)}function BR(e,t,n){let r={};for(let t in e)r[t]=e[t];return r[t]=n,r}function UR(e,t,n=1){let r=BR(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some((e=>e>0))||(r.colwidth=null)),r}function HR(e,t,n=1){let r=BR(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}class $R extends Sn{constructor(e,t=e){let n=e.node(-1),r=NR.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),s=e.node(0),a=r.cellsInRect(o).filter((e=>e!=t.pos-i));a.unshift(t.pos-i);let l=a.map((e=>{let t=n.nodeAt(e),r=e+i+1;return new An(s.resolve(r),s.resolve(r+t.content.size))}));super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(e,t){let n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(zR(n)&&zR(r)&&FR(n,r)){let e=this.$anchorCell.node(-1)!=n.node(-1);return e&&this.isRowSelection()?$R.rowSelection(n,r):e&&this.isColSelection()?$R.colSelection(n,r):new $R(n,r)}return Tn.between(n,r)}content(){let e=this.$anchorCell.node(-1),t=NR.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let n=r.top;n<r.bottom;n++){let s=[];for(let o=n*t.width+r.left,a=r.left;a<r.right;a++,o++){let n=t.map[o];if(!i[n]){i[n]=!0;let o=t.findCell(n),a=e.nodeAt(n),l=r.left-o.left,c=o.right-r.right;if(l>0||c>0){let e=a.attrs;l>0&&(e=UR(e,0,l)),c>0&&(e=UR(e,e.colspan-c,c)),a=o.left<r.left?a.type.createAndFill(e):a.type.create(e,a.content)}if(o.top<r.top||o.bottom>r.bottom){let e=BR(a.attrs,"rowspan",Math.min(o.bottom,r.bottom)-Math.max(o.top,r.top));a=o.top<r.top?a.type.createAndFill(e):a.type.create(e,a.content)}s.push(a)}}o.push(e.child(n).copy(Oe.from(s)))}const s=this.isColSelection()&&this.isRowSelection()?e:o;return new ze(Oe.from(s),1,1)}replace(e,t=ze.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:s}=r[i],a=e.mapping.slice(n);e.replace(a.map(o.pos),a.map(s.pos),i?ze.empty:t)}let i=Sn.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new ze(Oe.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=NR.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){let n=NR.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),s=e.node(0);return i.top<=o.top?(i.top>0&&(e=s.resolve(r+n.map[i.left])),o.bottom<n.height&&(t=s.resolve(r+n.map[n.width*(n.height-1)+o.right-1]))):(o.top>0&&(t=s.resolve(r+n.map[o.left])),i.bottom<n.height&&(e=s.resolve(r+n.map[n.width*(n.height-1)+i.right-1]))),new $R(e,t)}isRowSelection(){let e=NR.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),r=e.colCount(this.$headCell.pos-t);if(Math.min(n,r)>0)return!1;let i=n+this.$anchorCell.nodeAfter.attrs.colspan,o=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,o)==e.width}eq(e){return e instanceof $R&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){let n=NR.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),s=e.node(0);return i.left<=o.left?(i.left>0&&(e=s.resolve(r+n.map[i.top*n.width])),o.right<n.width&&(t=s.resolve(r+n.map[n.width*(o.top+1)-1]))):(o.left>0&&(t=s.resolve(r+n.map[o.top*n.width])),i.right<n.width&&(e=s.resolve(r+n.map[n.width*(i.top+1)-1]))),new $R(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new $R(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new $R(e.resolve(t),e.resolve(n))}getBookmark(){return new VR(this.$anchorCell.pos,this.$headCell.pos)}}$R.prototype.visible=!1,Sn.jsonID("cell",$R);class VR{constructor(e,t){this.anchor=e,this.head=t}map(e){return new VR(e.map(this.anchor),e.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&FR(t,n)?new $R(t,n):Sn.near(n,1)}}function WR(e){if(!(e.selection instanceof $R))return null;let t=[];return e.selection.forEachCell(((e,n)=>{t.push(Jx.node(n,n+e.nodeSize,{class:"selectedCell"}))})),ek.create(e.doc,t)}function qR(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;for(;1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole);)n--,r--,t=t.firstChild.content;let i=t.firstChild,o=i.type.spec.tableRole,s=i.type.schema,a=[];if("row"==o)for(let e=0;e<t.childCount;e++){let i=t.child(e).content,o=e?0:Math.max(0,n-1),l=e<t.childCount-1?0:Math.max(0,r-1);(o||l)&&(i=KR(TR(s).row,new ze(i,o,l)).content),a.push(i)}else{if("cell"!=o&&"header_cell"!=o)return null;a.push(n||r?KR(TR(s).row,new ze(t,n,r)).content:t)}return function(e,t){let n=[];for(let e=0;e<t.length;e++){let r=t[e];for(let t=r.childCount-1;t>=0;t--){let{rowspan:i,colspan:o}=r.child(t).attrs;for(let t=e;t<e+i;t++)n[t]=(n[t]||0)+o}}let r=0;for(let e=0;e<n.length;e++)r=Math.max(r,n[e]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(Oe.empty),n[i]<r){let o=TR(e).cell.createAndFill(),s=[];for(let e=n[i];e<r;e++)s.push(o);t[i]=t[i].append(Oe.from(s))}return{height:t.length,width:r,rows:t}}(s,a)}function KR(e,t){let n=e.createAndFill();return new Cn(n).replace(0,n.content.size,t).doc}function GR(e,t,n,r,i,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=i;c<o;c++){let i=s*t.width+c,o=t.map[i];if(t.map[i-t.width]==o){l=!0;let i=n.nodeAt(o),{top:u,left:d}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(a).map(o+r),null,BR(i.attrs,"rowspan",s-u)),e.insert(e.mapping.slice(a).map(t.positionAt(s,d,n)),i.type.createAndFill(BR(i.attrs,"rowspan",u+i.attrs.rowspan-s))),c+=i.attrs.colspan-1}}return l}function YR(e,t,n,r,i,o,s,a){if(0==s||s==t.width)return!1;let l=!1;for(let c=i;c<o;c++){let i=c*t.width+s,o=t.map[i];if(t.map[i-1]==o){l=!0;let i=n.nodeAt(o),u=t.colCount(o),d=e.mapping.slice(a).map(o+r);e.setNodeMarkup(d,null,UR(i.attrs,s-u,i.attrs.colspan-(s-u))),e.insert(d+i.nodeSize,i.type.createAndFill(UR(i.attrs,0,s-u))),c+=i.attrs.rowspan-1}}return l}function QR(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc,s=NR.get(o),{top:a,left:l}=r,c=l+i.width,u=a+i.height,d=e.tr,p=0;function h(){o=n?d.doc.nodeAt(n-1):d.doc,s=NR.get(o),p=d.mapping.maps.length}(function(e,t,n,r,i,o,s){let a,l,c=TR(e.doc.type.schema);if(i>t.width)for(let o=0,u=0;o<t.height;o++){let d=n.child(o);u+=d.nodeSize;let p,h=[];p=null==d.lastChild||d.lastChild.type==c.cell?a||(a=c.cell.createAndFill()):l||(l=c.header_cell.createAndFill());for(let e=t.width;e<i;e++)h.push(p);e.insert(e.mapping.slice(s).map(u-1+r),h)}if(o>t.height){let u=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==c.header_cell;u.push(i?l||(l=c.header_cell.createAndFill()):a||(a=c.cell.createAndFill()))}let d=c.row.create(null,Oe.from(u)),p=[];for(let e=t.height;e<o;e++)p.push(d);e.insert(e.mapping.slice(s).map(r+n.nodeSize-2),p)}return!(!a&&!l)})(d,s,o,n,c,u,p)&&h(),GR(d,s,o,n,l,c,a,p)&&h(),GR(d,s,o,n,l,c,u,p)&&h(),YR(d,s,o,n,a,u,l,p)&&h(),YR(d,s,o,n,a,u,c,p)&&h();for(let e=a;e<u;e++){let t=s.positionAt(e,l,o),r=s.positionAt(e,c,o);d.replace(d.mapping.slice(p).map(t+n),d.mapping.slice(p).map(r+n),new ze(i.rows[e-a],0,0))}h(),d.setSelection(new $R(d.doc.resolve(n+s.positionAt(a,l,o)),d.doc.resolve(n+s.positionAt(u-1,c-1,o)))),t(d)}const JR=Fk({ArrowLeft:XR("horiz",-1),ArrowRight:XR("horiz",1),ArrowUp:XR("vert",-1),ArrowDown:XR("vert",1),"Shift-ArrowLeft":ez("horiz",-1),"Shift-ArrowRight":ez("horiz",1),"Shift-ArrowUp":ez("vert",-1),"Shift-ArrowDown":ez("vert",1),Backspace:tz,"Mod-Backspace":tz,Delete:tz,"Mod-Delete":tz});function ZR(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function XR(e,t){return(n,r,i)=>{let o=n.selection;if(o instanceof $R)return ZR(n,r,Sn.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let s=oz(i,e,t);if(null==s)return!1;if("horiz"==e)return ZR(n,r,Sn.near(n.doc.resolve(o.head+t),t));{let i,o=n.doc.resolve(s),a=PR(o,e,t);return i=a?Sn.near(a,1):t<0?Sn.near(n.doc.resolve(o.before(-1)),-1):Sn.near(n.doc.resolve(o.after(-1)),1),ZR(n,r,i)}}}function ez(e,t){return(n,r,i)=>{let o=n.selection;if(!(o instanceof $R)){let r=oz(i,e,t);if(null==r)return!1;o=new $R(n.doc.resolve(r))}let s=PR(o.$headCell,e,t);return!!s&&ZR(n,r,new $R(o.$anchorCell,s))}}function tz(e,t){let n=e.selection;if(!(n instanceof $R))return!1;if(t){let r=e.tr,i=TR(e.schema).cell.createAndFill().content;n.forEachCell(((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new ze(i,0,0))})),r.docChanged&&t(r)}return!0}function nz(e,t){let n=LR(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new $R(n))),!0)}function rz(e,t,n){if(!jR(e.state))return!1;let r=qR(n),i=e.state.selection;if(i instanceof $R){r||(r={width:1,height:1,rows:[Oe.from(KR(TR(e.state.schema).cell,n))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),s=NR.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=function({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let o=n[e],s=[];for(let n=t[e]||0,i=0;n<r;i++){let a=o.child(i%o.childCount);n+a.attrs.colspan>r&&(a=a.type.create(UR(a.attrs,a.attrs.colspan,n+a.attrs.colspan-r),a.content)),s.push(a),n+=a.attrs.colspan;for(let n=1;n<a.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+a.attrs.colspan}i.push(Oe.from(s))}n=i,e=r}if(t!=i){let e=[];for(let r=0,o=0;r<i;r++,o++){let s=[],a=n[o%t];for(let e=0;e<a.childCount;e++){let t=a.child(e);r+t.attrs.rowspan>i&&(t=t.type.create(BR(t.attrs,"rowspan",Math.max(1,i-t.attrs.rowspan)),t.content)),s.push(t)}e.push(Oe.from(s))}n=e,t=i}return{width:e,height:t,rows:n}}(r,s.right-s.left,s.bottom-s.top),QR(e.state,e.dispatch,o,s,r),!0}if(r){let t=RR(e.state),n=t.start(-1);return QR(e.state,e.dispatch,n,NR.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function iz(e,t){if(t.ctrlKey||t.metaKey)return;let n,r=sz(e,t.target);if(t.shiftKey&&e.state.selection instanceof $R)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=LR(e.state.selection.$anchor))&&az(e,t).pos!=n.pos)i(n,t),t.preventDefault();else if(!r)return;function i(t,n){let r=az(e,n),i=null==IR.getState(e.state);if(!r||!FR(t,r)){if(!i)return;r=t}let o=new $R(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(IR,t.pos),e.dispatch(n)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),null!=IR.getState(e.state)&&e.dispatch(e.state.tr.setMeta(IR,-1))}function s(n){let s,a=IR.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(sz(e,n.target)!=r&&(s=az(e,t),!s))return o();s&&i(s,n)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function oz(e,t,n){if(!(e.state.selection instanceof Tn))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=r.before(i),s="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(s)?o:null}}return null}function sz(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function az(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?LR(e.state.doc.resolve(n.pos)):null}const lz=new Xn("fix-tables");function cz(e,t,n,r){let i=e.childCount,o=t.childCount;e:for(let s=0,a=0;s<o;s++){let o=t.child(s);for(let t=a,r=Math.min(i,s+3);t<r;t++)if(e.child(t)==o){a=t+1,n+=o.nodeSize;continue e}r(o,n),a<i&&e.child(a).sameMarkup(o)?cz(e.child(a),o,n+1,r):o.nodesBetween(0,o.content.size,r,n+1),n+=o.nodeSize}}function uz(e,t){let n,r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=function(e,t,n,r){let i=NR.get(t);if(!i.problems)return r;r||(r=e.tr);let o,s,a=[];for(let e=0;e<i.height;e++)a.push(0);for(let e=0;e<i.problems.length;e++){let o=i.problems[e];if("collision"==o.type){let e=t.nodeAt(o.pos);for(let t=0;t<e.attrs.rowspan;t++)a[o.row+t]+=o.n;r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,UR(e.attrs,e.attrs.colspan-o.n,o.n))}else if("missing"==o.type)a[o.row]+=o.n;else if("overlong_rowspan"==o.type){let e=t.nodeAt(o.pos);r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,BR(e.attrs,"rowspan",e.attrs.rowspan-o.n))}else if("colwidth mismatch"==o.type){let e=t.nodeAt(o.pos);r.setNodeMarkup(r.mapping.map(n+1+o.pos),null,BR(e.attrs,"colwidth",o.colwidth))}}for(let e=0;e<a.length;e++)a[e]&&(null==o&&(o=e),s=e);for(let l=0,c=n+1;l<i.height;l++){let n=t.child(l),i=c+n.nodeSize,u=a[l];if(u>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let a=[];for(let n=0;n<u;n++)a.push(TR(e.schema)[t].createAndFill());let d=0!=l&&o!=l-1||s!=l?i-1:c+1;r.insert(r.mapping.map(d),a)}c=i}return r.setMeta(lz,{fixTables:!0})}(e,t,r,n))};return t?t.doc!=e.doc&&cz(t.doc,e.doc,0,r):e.doc.descendants(r),n}function dz(e){let t,n=e.selection,r=RR(e),i=r.node(-1),o=r.start(-1),s=NR.get(i);return t=n instanceof $R?s.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):s.findCell(r.pos-o),t.tableStart=o,t.map=s,t.table=i,t}function pz(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;(function(e,t,n){let r=TR(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0})(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let s=0;s<t.height;s++){let a=s*t.width+i;if(i>0&&i<t.width&&t.map[a-1]==t.map[a]){let o=t.map[a],l=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,HR(l.attrs,i-t.colCount(o))),s+=l.attrs.rowspan-1}else{let l=null==o?TR(r.type.schema).cell:r.nodeAt(t.map[a+o]).type,c=t.positionAt(s,i,r);e.insert(e.mapping.map(n+c),l.createAndFill())}}return e}function hz(e,{map:t,table:n,tableStart:r},i){let o=e.mapping.maps.length;for(let s=0;s<t.height;){let a=s*t.width+i,l=t.map[a],c=n.nodeAt(l);if(i>0&&t.map[a-1]==l||i<t.width-1&&t.map[a+1]==l)e.setNodeMarkup(e.mapping.slice(o).map(r+l),null,UR(c.attrs,i-t.colCount(l)));else{let t=e.mapping.slice(o).map(r+l);e.delete(t,t+c.nodeSize)}s+=c.attrs.rowspan}}function fz(e,{map:t,tableStart:n,table:r},i){let o=n;for(let e=0;e<i;e++)o+=r.child(e).nodeSize;let s=[],a=i>0?-1:0;(function(e,t,n){let r=TR(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if(t.nodeAt(e.map[i+n*e.width]).type!=r)return!1;return!0})(t,r,i+a)&&(a=0==i||i==t.height?null:0);for(let o=0,l=t.width*i;o<t.width;o++,l++)if(i>0&&i<t.height&&t.map[l]==t.map[l-t.width]){let i=t.map[l],s=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,BR(s,"rowspan",s.rowspan+1)),o+=s.colspan-1}else{let e=null==a?TR(r.type.schema).cell:r.nodeAt(t.map[l+a*t.width]).type;s.push(e.createAndFill())}return e.insert(o,TR(r.type.schema).row.create(null,s)),e}function mz(e,{map:t,table:n,tableStart:r},i){let o=0;for(let e=0;e<i;e++)o+=n.child(e).nodeSize;let s=o+n.child(i).nodeSize,a=e.mapping.maps.length;e.delete(o+r,s+r);for(let o=0,s=i*t.width;o<t.width;o++,s++){let l=t.map[s];if(i>0&&l==t.map[s-t.width]){let t=n.nodeAt(l).attrs;e.setNodeMarkup(e.mapping.slice(a).map(l+r),null,BR(t,"rowspan",t.rowspan-1)),o+=t.colspan-1}else if(i<t.width&&l==t.map[s+t.width]){let s=n.nodeAt(l),c=s.type.create(BR(s.attrs,"rowspan",s.attrs.rowspan-1),s.content),u=t.positionAt(i+1,o,n);e.insert(e.mapping.slice(a).map(r+u),c),o+=s.attrs.colspan-1}}}function gz(e){let t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function bz(e,t){let n=e.selection;if(!(n instanceof $R)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=dz(e),{map:i}=r;if(function({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,s=(r.bottom-1)*e+r.left,a=i+(r.right-r.left-1);for(let t=r.top;t<r.bottom;t++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[a]==n[a+1])return!0;o+=e,a+=e}for(let o=r.left;o<r.right;o++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[s]==n[s+e])return!0;i++,s++}return!1}(i,r))return!1;if(t){let n,o,s=e.tr,a={},l=Oe.empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let c=i.map[e*i.width+t],u=r.table.nodeAt(c);if(!a[c])if(a[c]=!0,null==n)n=c,o=u;else{gz(u)||(l=l.append(u.content));let e=s.mapping.map(c+r.tableStart);s.delete(e,e+u.nodeSize)}}if(s.setNodeMarkup(n+r.tableStart,null,BR(HR(o.attrs,o.attrs.colspan,r.right-r.left-o.attrs.colspan),"rowspan",r.bottom-r.top)),l.size){let e=n+1+o.content.size,t=gz(o)?n+1:e;s.replaceWith(t+r.tableStart,e+r.tableStart,l)}s.setSelection(new $R(s.doc.resolve(n+r.tableStart))),t(s)}return!0}function yz(e,t){const n=TR(e.schema);return(r=({node:e})=>n[e.type.spec.tableRole],(e,t)=>{let n,i,o=e.selection;if(o instanceof $R){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;n=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{if(n=function(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from),!n)return!1;i=LR(o.$from).pos}if(1==n.attrs.colspan&&1==n.attrs.rowspan)return!1;if(t){let s=n.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=BR(s,"rowspan",1)),s.colspan>1&&(s=BR(s,"colspan",1));let c,u=dz(e),d=e.tr;for(let e=0;e<u.right-u.left;e++)a.push(l?BR(s,"colwidth",l&&l[e]?[l[e]]:null):s);for(let e=u.top;e<u.bottom;e++){let t=u.map.positionAt(e,u.left,u.table);e==u.top&&(t+=n.nodeSize);for(let i=u.left,o=0;i<u.right;i++,o++)i==u.left&&e==u.top||d.insert(c=d.mapping.map(t+u.tableStart,1),r({node:n,row:e,col:i}).createAndFill(a[o]))}d.setNodeMarkup(i,r({node:n,row:u.top,col:u.left}),a[0]),o instanceof $R&&d.setSelection(new $R(d.doc.resolve(o.$anchorCell.pos),c&&d.doc.resolve(c))),t(d)}return!0})(e,t);var r}function vz(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<r.length;e++){const i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function wz(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!jR(t))return!1;if(n){let r=TR(t.schema),i=dz(t),o=t.tr,s=i.map.cellsInRect("column"==e?new AR(i.left,0,i.right,i.map.height):"row"==e?new AR(0,i.top,i.map.width,i.bottom):i),a=s.map((e=>i.table.nodeAt(e)));for(let e=0;e<s.length;e++)a[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[e],r.cell,a[e].attrs);if(0==o.steps.length)for(let e=0;e<s.length;e++)o.setNodeMarkup(i.tableStart+s[e],r.header_cell,a[e].attrs);n(o)}return!0}}(e):function(t,n){if(!jR(t))return!1;if(n){let r=TR(t.schema),i=dz(t),o=t.tr,s=vz("row",i,r),a=vz("column",i,r),l=("column"===e?s:"row"===e&&a)?1:0,c="column"==e?new AR(0,l,1,i.map.height):"row"==e?new AR(l,0,i.map.width,1):i,u="column"==e?a?r.cell:r.header_cell:"row"==e?s?r.cell:r.header_cell:r.cell;i.map.cellsInRect(c).forEach((e=>{const t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,u,n.attrs)})),n(o)}return!0}}wz("row",{useDeprecatedLogic:!0}),wz("column",{useDeprecatedLogic:!0});let _z=wz("cell",{useDeprecatedLogic:!0});function xz(e){return function(t,n){if(!jR(t))return!1;let r=function(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let t=e.index(-1)-1,n=e.before();t>=0;t--){let r=e.node(-1).child(t);if(r.childCount)return n-1-r.lastChild.nodeSize;n-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}}(RR(t),e);if(null!=r){if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(Tn.between(e,(i=e,i.node(0).resolve(i.pos+i.nodeAfter.nodeSize)))).scrollIntoView())}var i;return!0}}}class kz{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Ez(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Ez(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}}function Ez(e,t,n,r,i,o){let s=0,a=!0,l=t.firstChild,c=e.firstChild;for(let e=0,n=0;e<c.childCount;e++){let{colspan:u,colwidth:d}=c.child(e).attrs;for(let e=0;e<u;e++,n++){let c=i==n?o:d&&d[e],u=c?c+"px":"";s+=c||r,c||(a=!1),l?(l.style.width!=u&&(l.style.width=u),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=u}}for(;l;){let e=l.nextSibling;l.parentNode.removeChild(l),l=e}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}const Mz=new Xn("tableColumnResizing");function Cz({handleWidth:e=5,cellMinWidth:t=25,View:n=kz,lastColumnResizable:r=!0}={}){let i=new Qn({key:Mz,state:{init(e,r){return this.spec.props.nodeViews[TR(r.schema).table.name]=(e,r)=>new n(e,t,r),new Dz(-1,!1)},apply:(e,t)=>t.apply(e)},props:{attributes:e=>Mz.getState(e).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove(t,n){!function(e,t,n,r,i){let o=Mz.getState(e.state);if(!o.dragging){let r=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),s=-1;if(r){let{left:i,right:o}=r.getBoundingClientRect();t.clientX-i<=n?s=Sz(e,t,"left"):o-t.clientX<=n&&(s=Sz(e,t,"right"))}if(s!=o.activeHandle){if(!i&&-1!==s){let t=e.state.doc.resolve(s),n=t.node(-1),r=NR.get(n),i=t.start(-1);if(r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1==r.width-1)return}Nz(e,s)}}}(t,n,e,0,r)},mouseleave(e){!function(e){let t=Mz.getState(e.state);t.activeHandle>-1&&!t.dragging&&Nz(e,-1)}(e)},mousedown(e,n){!function(e,t,n){let r=Mz.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;let i=e.state.doc.nodeAt(r.activeHandle),o=function(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),s=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let e=0;e<n;e++)r[e]&&(s-=r[e],a--);return s/a}(e,r.activeHandle,i.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);let r=Mz.getState(e.state);r.dragging&&(!function(e,t,n){let r=e.state.doc.resolve(t),i=r.node(-1),o=NR.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.state.tr;for(let e=0;e<o.height;e++){let t=e*o.width+a;if(e&&o.map[t]==o.map[t-o.width])continue;let r=o.map[t],{attrs:c}=i.nodeAt(r),u=1==c.colspan?0:a-o.colCount(r);if(c.colwidth&&c.colwidth[u]==n)continue;let d=c.colwidth?c.colwidth.slice():Oz(c.colspan);d[u]=n,l.setNodeMarkup(s+r,null,BR(c,"colwidth",d))}l.docChanged&&e.dispatch(l)}(e,r.activeHandle,Az(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Mz,{setDragging:null})))}function a(t){if(!t.which)return s(t);let r=Mz.getState(e.state),i=Az(r.dragging,t,n);!function(e,t,n,r){let i=e.state.doc.resolve(t),o=i.node(-1),s=i.start(-1),a=NR.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.domAtPos(i.start(-1)).node;for(;"TABLE"!=l.nodeName;)l=l.parentNode;Ez(o,l.firstChild,l,r,a,n)}(e,r.activeHandle,i,n)}e.dispatch(e.state.tr.setMeta(Mz,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,n,t)}},decorations(e){let t=Mz.getState(e);if(t.activeHandle>-1)return function(e,t){let n=[],r=e.doc.resolve(t),i=r.node(-1),o=NR.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan;for(let e=0;e<o.height;e++){let t=a+e*o.width-1;if(!(a!=o.width&&o.map[t]==o.map[t+1]||0!=e&&o.map[t-1]==o.map[t-1-o.width])){let e=o.map[t],r=s+e+i.nodeAt(e).nodeSize-1,a=document.createElement("div");a.className="column-resize-handle",n.push(Jx.widget(r,a))}}return ek.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return i}class Dz{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){let t=this,n=e.getMeta(Mz);if(n&&null!=n.setHandle)return new Dz(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Dz(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let n=e.mapping.map(t.activeHandle,-1);zR(e.doc.resolve(n))||(n=null),t=new Dz(n,t.dragging)}return t}}function Sz(e,t,n){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return-1;let{pos:i}=r,o=LR(e.state.doc.resolve(i));if(!o)return-1;if("right"==n)return o.pos;let s=NR.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function Az(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function Nz(e,t){e.dispatch(e.state.tr.setMeta(Mz,{setHandle:t}))}function Oz(e){let t=[];for(let n=0;n<e;n++)t.push(0);return t}function Tz({allowTableNodeSelection:e=!1}={}){return new Qn({key:IR,state:{init:()=>null,apply(e,t){let n=e.getMeta(IR);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:WR,handleDOMEvents:{mousedown:iz},createSelectionBetween(e){if(null!=IR.getState(e.state))return e.state.selection},handleTripleClick:nz,handleKeyDown:JR,handlePaste:rz},appendTransaction:(t,n,r)=>function(e,t,n){let r,i,o=(t||e).selection,s=(t||e).doc;if(o instanceof Ln&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)r=$R.create(s,o.from);else if("row"==i){let e=s.resolve(o.from+1);r=$R.rowSelection(e,e)}else if(!n){let e=NR.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];r=$R.create(s,t+1,n)}}else o instanceof Tn&&function({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0&&!(e.after(i+1)<e.end(i));i--,n++);for(let e=t.depth;e>=0&&!(t.before(e+1)>t.start(e));e--,r--);return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}(o)?r=Tn.create(s,o.from):o instanceof Tn&&function({$from:e,$to:t}){let n,r;for(let t=e.depth;t>0;t--){let r=e.node(t);if("cell"===r.type.spec.tableRole||"header_cell"===r.type.spec.tableRole){n=r;break}}for(let e=t.depth;e>0;e--){let n=t.node(e);if("cell"===n.type.spec.tableRole||"header_cell"===n.type.spec.tableRole){r=n;break}}return n!==r&&0===t.parentOffset}(o)&&(r=Tn.create(s,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t}(r,uz(r,n),e)})}function Iz(e,t,n,r,i,o){let s=0,a=!0,l=t.firstChild;const c=e.firstChild;for(let e=0,n=0;e<c.childCount;e+=1){const{colspan:u,colwidth:d}=c.child(e).attrs;for(let e=0;e<u;e+=1,n+=1){const c=i===n?o:d&&d[e],u=c?`${c}px`:"";s+=c||r,c||(a=!1),l?(l.style.width!==u&&(l.style.width=u),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=u}}for(;l;){const e=l.nextSibling;l.parentNode.removeChild(l),l=e}a?(n.style.width=`${s}px`,n.style.minWidth=""):(n.style.width="",n.style.minWidth=`${s}px`)}class Lz{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Iz(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type===this.node.type&&(this.node=e,Iz(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"===e.type&&(e.target===this.table||this.colgroup.contains(e.target))}}function jz(e,t){return t?e.createChecked(null,t):e.createAndFill()}function Rz(e,t,n,r,i){const o=function(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;const t={};return Object.keys(e.nodes).forEach((n=>{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)})),e.cached.tableNodeTypes=t,t}(e),s=[],a=[];for(let e=0;e<n;e+=1){const e=jz(o.cell,i);if(e&&a.push(e),r){const e=jz(o.header_cell,i);e&&s.push(e)}}const l=[];for(let e=0;e<t;e+=1)l.push(o.row.createChecked(null,r&&0===e?s:a));return o.table.createChecked(null,l)}const zz=({editor:e})=>{const{selection:t}=e.state;if(!(t instanceof $R))return!1;let n=0;const r=UE(t.ranges[0].$from,(e=>"table"===e.type.name));null==r||r.node.descendants((e=>{if("table"===e.type.name)return!1;["tableCell","tableHeader"].includes(e.type.name)&&(n+=1)}));return n===t.ranges.length&&(e.commands.deleteTable(),!0)},Fz=pM.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Lz,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:e}){return["table",nE(this.options.HTMLAttributes,e),["tbody",0]]},addCommands:()=>({insertTable:({rows:e=3,cols:t=3,withHeaderRow:n=!0}={})=>({tr:r,dispatch:i,editor:o})=>{const s=Rz(o.schema,e,t,n);if(i){const e=r.selection.anchor+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(Tn.near(r.doc.resolve(e)))}return!0},addColumnBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(pz(e.tr,n,n.left))}return!0}(e,t),addColumnAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(pz(e.tr,n,n.right))}return!0}(e,t),deleteColumn:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;hz(r,n,e),e!=n.left;e--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=NR.get(n.table);t(r)}return!0}(e,t),addRowBefore:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(fz(e.tr,n,n.top))}return!0}(e,t),addRowAfter:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e);t(fz(e.tr,n,n.bottom))}return!0}(e,t),deleteRow:()=>({state:e,dispatch:t})=>function(e,t){if(!jR(e))return!1;if(t){let n=dz(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;mz(r,n,e),e!=n.top;e--)n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=NR.get(n.table);t(r)}return!0}(e,t),deleteTable:()=>({state:e,dispatch:t})=>function(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--)if("table"==n.node(r).type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}(e,t),mergeCells:()=>({state:e,dispatch:t})=>bz(e,t),splitCell:()=>({state:e,dispatch:t})=>yz(e,t),toggleHeaderColumn:()=>({state:e,dispatch:t})=>wz("column")(e,t),toggleHeaderRow:()=>({state:e,dispatch:t})=>wz("row")(e,t),toggleHeaderCell:()=>({state:e,dispatch:t})=>_z(e,t),mergeOrSplit:()=>({state:e,dispatch:t})=>!!bz(e,t)||yz(e,t),setCellAttribute:(e,t)=>({state:n,dispatch:r})=>function(e,t){return function(n,r){if(!jR(n))return!1;let i=RR(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){let o=n.tr;n.selection instanceof $R?n.selection.forEachCell(((n,r)=>{n.attrs[e]!==t&&o.setNodeMarkup(r,null,BR(n.attrs,e,t))})):o.setNodeMarkup(i.pos,null,BR(i.nodeAfter.attrs,e,t)),r(o)}return!0}}(e,t)(n,r),goToNextCell:()=>({state:e,dispatch:t})=>xz(1)(e,t),goToPreviousCell:()=>({state:e,dispatch:t})=>xz(-1)(e,t),fixTables:()=>({state:e,dispatch:t})=>(t&&uz(e),!0),setCellSelection:e=>({tr:t,dispatch:n})=>{if(n){const n=$R.create(t.doc,e.anchorCell,e.headCell);t.setSelection(n)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:zz,"Mod-Backspace":zz,Delete:zz,"Mod-Delete":zz}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Cz({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Tz({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:e=>({tableRole:oE(Zk(e,"tableRole",{name:e.name,options:e.options,storage:e.storage}))})});class Pz{constructor(e,t){gb(this,"build",(()=>{this.dom.className="neeto-editor-table",this.wrapper.className="neeto-editor-table__wrapper",this.dom.appendChild(this.wrapper),this.wrapper.appendChild(this.table),this.table.appendChild(this.colgroup),this.table.appendChild(this.contentDOM),this.wrapper.appendChild(this.buildController({className:"neeto-editor-table__add-column",handleClick:this.insertColumn})),this.dom.appendChild(this.buildController({className:"neeto-editor-table__add-row",handleClick:()=>this.table.insertRow()})),this.resizeColumns()})),gb(this,"buildController",(e=>{let{className:t="",handleClick:r=n}=e;const i=document.createElement("div"),o=document.createElement("p");return i.className=t,i.onclick=r,o.textContent="+",i.appendChild(o),i})),gb(this,"insertColumn",(()=>{const e=document.createElement("td");e.appendChild(document.createElement("p")),this.table.querySelectorAll("tr").forEach((t=>t.appendChild(e.cloneNode(!0))))})),gb(this,"resizeColumns",(()=>{let e=0,t=!0,n=this.colgroup.firstChild;const r=this.node.firstChild;for(let i=0,o=0;i<r.childCount;++i){const{colspan:s,colwidth:a}=r.child(i).attrs;for(let r=0;r<s;++r,++o){const i=a&&a[r],o=i?`${i}px`:"";e+=i||this.cellMinWidth,i||(t=!1),n?(n.style.width!==o&&(n.style.width=o),n=n.nextSibling):this.colgroup.appendChild(document.createElement("col")).style.width=o}}for(;n;){const e=n.nextSibling;n.parentNode.removeChild(n),n=e}t?(this.table.style.width=`${e}px`,this.table.style.minWidth=""):(this.table.style.width="",this.table.style.minWidth=`${e}px`)})),this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.wrapper=document.createElement("div"),this.table=document.createElement("table"),this.colgroup=document.createElement("colgroup"),this.contentDOM=document.createElement("tbody"),this.build()}}var Bz=Fz.extend({addOptions:()=>({HTMLAttributes:{},resizable:!0,handleWidth:5,cellMinWidth:100,View:Pz,lastColumnResizable:!0,allowTableNodeSelection:!0})}).configure({});const Uz=e=>{let{onClickVariable:t,variables:n}=e;const r=function(){const e=[],t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((n=>{const{category_key:r,category_label:i,variables:o}=n;if(r&&o){const e=o.map(ve("category_key",r));t.push({label:i,variables:e})}else e.push(n)})),Jj.exports.isEmpty(e)||t.push({label:Jj.exports.isEmpty(t)?null:"Others",variables:e}),t}(n);return w(n)?null:c.createElement("div",{className:"neeto-editor-variables-list"},r.map(((e,n)=>{let{label:r,variables:i}=e;return c.createElement(Hz,{index:n,key:n,title:r,variables:i,onClickItem:t})})))},Hz=e=>{let{index:t,title:n,variables:r,onClickItem:i}=e;return c.createElement("div",{className:"neeto-editor-variables-block","data-cy":`neeto-editor-variable-option-category-${t}`},n&&c.createElement("h6",null,n),c.createElement("div",{className:"neeto-editor-variables-row"},r.map((e=>c.createElement("button",{"data-cy":`neeto-editor-variable-option-item-${e.label}--${e.value}`,key:`${e.label}--${e.value}`,onClick:()=>i(e)},e.label)))))},$z=e=>{let{items:t,command:n}=e;return c.createElement("div",{className:"neeto-editor-variables-suggestion"},c.createElement(Uz,{variables:t,onClickVariable:e=>{const{category_key:t,key:r}=e,i=t?`${t}.${r}`:r;n({label:i,id:i})}}))},Vz=new Xn("variables"),Wz=pM.create({name:"variable",addOptions:()=>({HTMLAttributes:{class:"neeto-editor-variable"},charOpen:"{{",charClose:"}}",renderLabel(e){let{options:t,node:n}=e;return`${t.charOpen}${n.attrs.label||n.attrs.id}${t.charClose}`},suggestion:{}}),group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML:()=>[{tag:"span[data-variable]"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["span",nE({"data-variable":""},this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]},renderText(e){let{node:t}=e;return this.options.renderLabel({options:this.options,node:t})},addCommands(){return{setVariable:e=>t=>{let{chain:n}=t;n().focus().insertContent([{type:this.name,attrs:e},{type:"text",text:" "}]).run()}}},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((e=>{let{tr:t,state:n}=e,r=!1;const{selection:i}=n,{empty:o,anchor:s}=i;return!!o&&(n.doc.nodesBetween(s-1,s,((e,n)=>{if(e.type.name===this.name)return r=!0,t.insertText("",n,n+e.nodeSize),!1})),r)}))}},addProseMirrorPlugins(){return[lT({editor:this.editor,...this.options.suggestion})]}}),qz={char:"{{",startOfLine:!1,pluginKey:Vz,command:e=>{let{editor:t,range:n,props:r}=e;t.chain().focus().deleteRange(n).setVariable(r).run()},items:()=>[],render:()=>{let e,t;return{onStart:n=>{e=new jD($z,{props:n,editor:n.editor}),t=xD("body",{getReferenceClientRect:n.clientRect,appendTo:()=>document.body,content:e.element,showOnCreate:!0,interactive:!0,trigger:"manual",placement:"bottom-start",zIndex:99999})},onUpdate(n){e.updateProps(n),t[0].setProps({getReferenceClientRect:n.clientRect})},onExit(){t[0].destroy(),e.destroy()}}}};var Kz=e=>{let{suggestion:t={}}=e;return Wz.configure({suggestion:{...qz,...t}})};const Gz=e=>{var t;let{node:n,editor:r,getPos:i,updateAttributes:o,deleteNode:s}=e;const a=p(null),{alt:l,src:u,vidheight:d,vidwidth:h,align:f}=n.attrs,{view:m}=r;let g=d,b=h;const y=a.current?null===(t=a.current.querySelector("figcaption>div"))||void 0===t?void 0:t.textContent:l;return c.createElement(LD,{className:`neeto-editor__image-wrapper neeto-editor__image--${f}`},c.createElement("figure",{ref:a},c.createElement(PL,{align:f,deleteNode:s,updateAttributes:o}),c.createElement(FL,{lockAspectRatio:!0,className:"neeto-editor__image",size:{height:g,width:b},onResizeStop:(e,t,o)=>{g=o.offsetHeight,b=o.offsetWidth,m.dispatch(m.state.tr.setNodeMarkup(i(),void 0,{...n.attrs,vidheight:g,vidwidth:b,height:g,width:b})),r.commands.focus()}},c.createElement("video",hv({controls:!0},n.attrs,{alt:y,preload:"metadata",src:u}))),c.createElement(ID,{as:"figcaption",className:gl({"is-empty":w(y)})})))},Yz=pM.create({name:"video",addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",draggable:!0,isolating:!0,addAttributes:()=>({src:{default:null,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("src")}},alt:{default:"",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("alt")}},vidheight:{default:288,parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidheight")}},vidwidth:{default:"fit-content",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("vidwidth")}},align:{default:"left",parseHTML:e=>{var t;return null===(t=e.querySelector("video"))||void 0===t?void 0:t.getAttribute("align")}}}),parseHTML:()=>[{tag:"figure[data-video]",getAttrs:e=>"normal"!==e.style.fontWeight&&null,contentElement:"figcaption"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;const{align:r,src:i,vidheight:o,vidwidth:s}=t.attrs,a={class:"neeto-editor__image",style:`height:${o}px;width:${s}px;`};return["a",{href:i,target:"_blank",rel:"noopener noreferrer",class:`neeto-editor__image-wrapper neeto-editor__image--${r}`},["figure",nE(this.options.HTMLAttributes,{"data-video":""}),["div",a,["video",nE(n,{preload:"metadata",controls:!0,draggable:!1,contenteditable:!1})]],["figcaption",0]]]},addNodeView:()=>zD(Gz),addCommands(){return{setVideo:e=>{let{caption:t,...n}=e;return e=>{let{chain:r}=e;return r().insertContent({type:this.name,attrs:n,content:t?[{type:"text",text:t}]:[]}).command((e=>{let{tr:t,commands:n}=e;const{doc:r,selection:i}=t,o=r.resolve(i.to).end();return n.setTextSelection(o)})).run()}}}}}),Qz=e=>{let{placeholder:t,extensions:n,mentions:r,variables:i,isSlashCommandsActive:o,options:s,addonCommands:l,onSubmit:c,keyboardShortcuts:u,uploadEndpoint:d,isVideoEmbedActive:p,setMediaUploader:h,setIsEmbedModalOpen:f}=e,m=[QD,YD,SA,eS,iT,VL,EA,yL,uL,oT,qD,JD.configure({mode:"shallowest"}),Yz,$L({uploadEndpoint:d}),RN.configure({document:!1,codeBlock:!1,code:!1}),qL({onSubmit:c,shortcuts:u}),Qj.configure({placeholder:t}),Bz.configure({resizable:!0}),DA,CA,MA];if(p&&m.push(sT),o&&m.push(_R({options:s,addonCommands:l,setMediaUploader:h,setIsEmbedModalOpen:f})),!w(r)){const e=function(){const e=qj(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);return t=>{let{query:n}=t;if(!n)return e.slice(0,10);const r=new Wj(e,{keys:["name"],threshold:.25}).search(n).slice(0,10);return a("item",r)}}(r);m.push(Yj({suggestion:{items:e}})),m.push(CR({suggestion:{items:e}}))}return w(i)||m.push(Kz({suggestion:{items:()=>i}})),m=m.concat(n),m},Jz=e=>{var t;let{uppy:n}=e;const[r,i]=d(0);h((()=>{n.on("upload-progress",((e,t)=>{let{progress:n}=t;return i(n)}))}),[n]);const o=`${r}%`;return c.createElement("div",{className:"ne-media-uploader__progress"},c.createElement("p",{className:"ne-media-uploader__progress-title"},"Uploading..."),c.createElement("p",{className:"ne-media-uploader__progress-file"},null===(t=n.getFiles()[0])||void 0===t?void 0:t.name),c.createElement("div",{className:"neeto-editor-progress-bar__wrapper","data-cy":"neeto-editor-image-upload-progress-bar"},c.createElement("div",{className:"neeto-editor-progress-bar__percent"},c.createElement("p",null,o),c.createElement(D,{icon:B,size:"small",style:"text",onClick:()=>n.cancelAll()})),c.createElement("div",{className:"neeto-editor-progress-bar__indicator"},c.createElement("div",{className:"neeto-editor-progress-bar__indicator-inner",style:{width:o}}))))},Zz=e=>{let{isImage:t,endpoint:n,onSuccess:r}=e;const i=t?cb:ub,{uppy:o,isUploading:s}=sv({endpoint:n,uppyConfig:i,onSuccess:r});return s?c.createElement(Jz,{uppy:o}):c.createElement("div",{className:"ne-media-uploader__dnd-wrapper"},c.createElement(Cg,{className:"ne-media-uploader__dnd","data-cy":"neeto-editor-media-local-uploader",uppy:o,locale:{strings:{dropHereOr:"Drop your file(s) here or %{browse}",browse:"Browse"}},note:`Max. File Size: ${hb(i.restrictions.maxFileSize)}`}))},Xz=e=>{let{isImage:t,url:n,editor:r,onClose:i,alt:o="",setMediaUrl:s}=e;const{t:a}=Ga(),[l,u]=d(o||""),[p,h]=d(!1),f=()=>{t?r.chain().focus().setFigure({src:n,caption:l,alt:l}).run():r.chain().focus().setVideo({src:n,caption:l,alt:l}).run(),i()};return c.createElement("div",{className:"ne-media-editor",onKeyDown:e=>{"Enter"===e.key&&f()}},c.createElement(D,{icon:ie,iconPosition:"left",label:a("common.back"),size:"small",style:"text",onClick:()=>s("")}),p?c.createElement("div",{className:"ne-media-editor__error"},c.createElement("h2",null,"Something Went Wrong!"),c.createElement("p",null,"The selected media cannot be displayed. Please try again.")):c.createElement(c.Fragment,null,t?c.createElement("img",{loading:"lazy",src:n,onError:e=>{let{currentTarget:t}=e;h(!0),t.onerror=null}}):c.createElement("video",{src:n,onError:e=>{let{currentTarget:t}=e;h(!0),t.onerror=null}}),c.createElement(C,{autoFocus:!0,label:a("common.caption"),placeholder:"Enter a caption",value:l,onChange:e=>u(e.target.value)})),c.createElement("div",{className:"ne-media-editor__footer"},c.createElement(D,{disabled:p,label:a("common.save-changes"),onClick:f}),c.createElement(D,{label:a("common.cancel"),style:"text",onClick:i})))};var eF={},tF=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nF=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.create(null);function n(e,n){return t[e]=t[e]||[],t[e].push(n),this}function r(e,t){return t._once=!0,n(e,t),this}function i(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?t[e].splice(t[e].indexOf(n),1):delete t[e],this}function o(e){for(var n=this,r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];var a=t[e]&&t[e].slice();return a&&a.forEach((function(t){t._once&&i(e,t),t.apply(n,o)})),this}return tF({},e,{on:n,once:r,off:i,emit:o})},rF=Object.freeze({__proto__:null,default:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,s=void 0,a=void 0,l=void 0,c=void 0,u=void 0,d=void 0,p=void 0,h=void 0,f=0===e.packed.indexOf("data-")?e.packed:"data-"+e.packed,m=e.sizes.slice().reverse(),g=!1!==e.position,b=e.container.nodeType?e.container:document.querySelector(e.container),y={all:function(){return k(b.children)},new:function(){return k(b.children).filter((function(e){return!e.hasAttribute(""+f)}))}},v=[C,D,S],w=[A,N,O,T],_=nF({pack:j,update:R,resize:z});return _;function x(e){e.forEach((function(e){return e()}))}function k(e){return Array.prototype.slice.call(e)}function E(e){return Array.apply(null,Array(e)).map((function(){return 0}))}function M(){return m.map((function(e){return e.mq&&window.matchMedia("(min-width: "+e.mq+")").matches})).indexOf(!0)}function C(){r=M()}function D(){i=-1===r?m[m.length-1]:m[r]}function S(){s=E(i.columns)}function A(){d=y[t?"new":"all"]()}function N(){0!==d.length&&(p=d.map((function(e){return e.clientWidth})),h=d.map((function(e){return e.clientHeight})))}function O(){d.forEach((function(e,t){o=s.indexOf(Math.min.apply(Math,s)),e.style.position="absolute",a=s[o]+"px",l=o*p[t]+o*i.gutter+"px",g?(e.style.top=a,e.style.left=l):e.style.transform="translate3d("+l+", "+a+", 0)",e.setAttribute(f,""),c=p[t],u=h[t],c&&u&&(s[o]+=u+i.gutter)}))}function T(){b.style.position="relative",b.style.width=i.columns*c+(i.columns-1)*i.gutter+"px",b.style.height=Math.max.apply(Math,s)-i.gutter+"px"}function I(){n||(window.requestAnimationFrame(L),n=!0)}function L(){r!==M()&&(j(),_.emit("resize",i)),n=!1}function j(){return t=!1,x(v.concat(w)),_.emit("pack")}function R(){return t=!0,x(w),_.emit("update")}function z(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";return window[t]("resize",I),_}}}),iF=Di(rF),oF={exports:{}},sF={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=c,i=s(r),o=s(Im.exports);function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){this.props.useCapture;return this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;r=this.props.isReverse?o:this.calculateOffset(e,o)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,r=t.element,o=t.hasMore;t.initialLoad;var s=t.isReverse,a=t.loader;t.loadMore,t.pageStart;var l=t.ref;t.threshold,t.useCapture,t.useWindow,t.getScrollParent;var c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return o&&(a?s?u.unshift(a):u.push(a):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),i.default.createElement(r,c,u)}}]),t}(r.Component);a.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},a.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=a,e.exports=t["default"]}(sF,sF.exports),oF.exports=sF.exports,Object.defineProperty(eF,"__esModule",{value:!0});var aF,lF,cF=eF.default=void 0,uF=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),dF=c,pF=gF(dF),hF=gF(Im.exports),fF=gF(iF),mF=gF(oF.exports);function gF(e){return e&&e.__esModule?e:{default:e}}function bF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yF(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var vF=(lF=aF=function(e){function t(){var e,n,r;bF(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=yF(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.setContainerRef=function(e){r.masonryContainer=e},r.forcePack=function(){r.masonryContainer&&r.state.instance.pack()},r.forceUpdate=function(){r.masonryContainer&&r.state.instance.update()},r.createNewInstance=function(){var e=r.props,t=e.packed,n=e.sizes,i=e.children,o=e.position,s=(0,fF.default)({container:r.masonryContainer,packed:t,sizes:n,position:o});s.resize(!0),i.length>0&&s.pack(),r.setState((function(){return{instance:s}}))},yF(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,dF.Component),uF(t,[{key:"componentDidMount",value:function(){this.createNewInstance()}},{key:"componentDidUpdate",value:function(e){var t=this.props.children,n=this.state.instance;if(0!==e.children.length||0!==t.length)return 0===e.children.length&&t.length>0?n.pack():e.children.length!==t.length?this.props.pack?n.pack():n.update():void 0}},{key:"componentWillUnmount",value:function(){this.state&&this.state.instance.resize(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style;e.pack,e.packed,e.position,e.sizes;var i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","className","style","pack","packed","position","sizes"]);return pF.default.createElement(mF.default,i,pF.default.createElement("div",{ref:this.setContainerRef,className:n,style:r},t))}}]),t}(),aF.propTypes={children:hF.default.arrayOf(hF.default.element).isRequired,className:hF.default.string,initialLoad:hF.default.bool,pack:hF.default.bool,packed:hF.default.string,position:hF.default.bool,sizes:hF.default.array,style:hF.default.object},aF.defaultProps={className:"",initialLoad:!0,pack:!1,packed:"data-packed",position:!0,sizes:[{columns:1,gutter:20},{mq:"768px",columns:2,gutter:20},{mq:"1024px",columns:3,gutter:20}],style:{}},lF);cF=eF.default=vF;const wF=e=>{let{onSubmit:t,unsplashApiKey:n}=e;const r=p(null),[i,o]=d(""),[s,a]=d(!1),[l,u]=d([]),[f,m]=d(1),[g,b]=d(!0),[y,v]=d(!1),w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:800;const[n,r]=d(e);return h((()=>{const n=setTimeout((()=>{r(e)}),t);return()=>{clearTimeout(n)}}),[e,t]),n}(i||"latest");h((()=>{_(1)}),[w]);const _=async e=>{try{v(!0),a(!1);const t=await(e=>{let{pageNo:t,query:n,apiKey:r}=e;return ye.get(tr,{headers:{Authorization:`Client-ID ${r}`},params:{page:t,per_page:30,order_by:"popular",query:n}})})({page:e,query:w,apiKey:n}),{data:{results:r,total_pages:i}}=t;u(1===e?r:[...l,...r]),m(e+1),b(e<i)}catch{a(!0)}finally{v(!1)}},x=c.createElement("div",{className:"neeto-editor-unsplash-gallery__loader"},c.createElement(T,null));return c.createElement("div",{className:"neeto-editor-unsplash-wrapper"},c.createElement(C,{autoFocus:!0,className:"neeto-editor-unsplash-search","data-cy":"neeto-editor-unsplash-image-picker-search-input",name:"text",placeholder:"Search Unsplash",value:i,onChange:e=>{let{target:{value:t}}=e;o(t)}}),s&&c.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-error"},"Something went wrong! Please try again later."),!s&&!y&&ls(l)&&c.createElement("p",{className:"neeto-editor-unsplash-gallery__text","data-cy":"neeto-editor-unsplash-image-picker-no-results-error"},"No results"),!s&&c.createElement("div",{className:"neeto-editor-unsplash-container"},c.createElement(cF,{pack:!0,position:!0,className:"neeto-editor-unsplash-gallery",hasMore:g,loadMore:()=>{!y&&g&&f>1&&_(f)},loader:x,ref:r,style:{width:"100%"},useWindow:!1,sizes:[{columns:3,gutter:0},{mq:"768px",columns:3,gutter:0},{mq:"1024px",columns:3,gutter:0}]},l&&l.map(((e,n)=>c.createElement("div",{className:"neeto-editor-unsplash-gallery__item","data-cy":`neeto-editor-unsplash-image-picker-result-${n}`,key:n},c.createElement("div",{className:"neeto-editor-unsplash-gallery__item-placeholder",style:{paddingBottom:`${e.height/e.width*100}%`}},c.createElement("div",{className:"neeto-editor-unsplash-gallery__item-inner",id:`unsplashImage${n}`},c.createElement("img",{src:e.urls.regular,onClick:()=>t(e.urls.small)}),c.createElement("a",{href:`https://unsplash.com/@${e.user.username}`,rel:"noreferrer",target:"_blank"},e.user.name," "))))))),!g&&c.createElement("p",{className:"neeto-editor-unsplash-gallery__text"},"End of results")))},_F=e=>{let{buttonLabel:t="Submit",placeholder:n,onSubmit:r,className:i}=e;const{t:o}=Ga(),[s,a]=d(""),[l,u]=d("");return c.createElement("div",{className:gl("neeto-editor-url-form__wrapper",{[i]:i})},c.createElement(C,{autoFocus:!0,"data-cy":"neeto-editor-media-upload-url-input",error:l,name:"url",placeholder:n,value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>u("")}),c.createElement(D,{"data-cy":"neeto-editor-media-upload-url-submit",disabled:!s,label:t,onClick:e=>{e.preventDefault(),rr.test(s)?r(s):u(o("error.invalid-url"))}}))},xF=e=>{let{mediaUploader:t,onClose:n,editor:r,uploadEndpoint:i,unsplashApiKey:o}=e;const[s,a]=d("local"),[l,u]=d(""),p=t.image||t.video;let h=o?pb:pb.slice(0,2);t.video&&(h=[]);const f=()=>{n(),u(""),a("local")};return c.createElement(O,{closeButton:!1,isOpen:p,onClose:f},c.createElement("div",{className:"ne-media-uploader"},!ls(h)&&c.createElement(L,null,h.map((e=>{let{key:t,title:n}=e;return c.createElement(L.Item,{active:s===t,key:t,onClick:()=>{u(""),a(t)}},n)}))),c.createElement("div",{className:"ne-media-uploader__content"},l?c.createElement(Xz,{editor:r,isImage:t.image,setMediaUrl:u,url:l,onClose:f}):c.createElement(c.Fragment,null,"local"===s&&c.createElement(Zz,{endpoint:i,isImage:t.image,onSuccess:u}),"link"===s&&c.createElement(_F,{placeholder:"Paste the link here...",buttonLabel:t.image?"Upload image":"Upload video",onSubmit:u}),"unsplash"===s&&c.createElement(wF,{unsplashApiKey:o,onSubmit:u})))))};var kF=[],EF=[];function MF(e,t){if(e&&"undefined"!=typeof document){var n,r=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,o="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var s=kF.indexOf(o);-1===s&&(s=kF.push(o)-1,EF[s]={}),n=EF[s]&&EF[s][r]?EF[s][r]:EF[s][r]=a()}else n=a();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function a(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var s="prepend"===r?"afterbegin":"beforeend";return o.insertAdjacentElement(s,e),e}}MF(".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",{});const CF=e=>{let{editor:t,handleClose:n,handleAnimateInvalidLink:r}=e;const[i,o]=d("");h((()=>{o(t.getAttributes("link").href||"")}),[t]);const s=()=>{rr.test(i)?(t.chain().focus().setLink({href:i}).run(),n()):ls(i)?(t.chain().focus().unsetLink().run(),n()):(o(""),r())};return c.createElement("div",{className:"neeto-editor-bubble-menu__link",onKeyDown:e=>{"Escape"===e.key?n():"Enter"===e.key&&s()}},c.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-link__input","data-cy":"neeto-editor-link-input",name:"url",placeholder:"Paste or type a link...",value:i,onChange:e=>{let{target:{value:t}}=e;return o(t)}}),c.createElement(D,{"data-cy":"neeto-editor-link-cancel-button",icon:B,size:"small",style:"icon",onClick:()=>{i?(o(""),t.chain().focus().unsetLink().run()):n()}}))},DF=e=>{let{editor:t,handleClose:n}=e;const{t:r}=Ga(),[i,o]=d(3),[s,a]=d(3);return c.createElement("div",{className:"neeto-editor-bubble-menu__table"},c.createElement("input",{autoFocus:!0,className:"neeto-editor-bubble-menu-table__input","data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.rows"),type:"number",value:i,onChange:e=>o(e.target.value)}),c.createElement("input",{className:"neeto-editor-bubble-menu-table__input","data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.columns"),type:"number",value:s,onChange:e=>a(e.target.value)}),c.createElement("div",null,c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-table-option-create-button",icon:oe,style:"icon",onClick:()=>{t.chain().focus().insertTable({rows:i,cols:s,withHeaderRow:!0}).run(),o(3),a(3),n()}}),c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-table-option-create-button",icon:B,style:"icon",onClick:n})))},SF=e=>{let{tooltip:t,Icon:n,command:r,active:i,optionName:o,highlight:s}=e;return c.createElement(D,hv({"data-cy":`neeto-editor-bubble-menu-${o}-option`,icon:n,key:o,size:"small",style:i?"secondary":"text",tooltipProps:{content:t,position:"bottom",theme:"dark",delay:[500]},onClick:r},tR(s)))},AF=e=>{let{editor:t,mentions:n,tooltipContent:r}=e;const i=qj(n),{Menu:o,MenuItem:s}=A;return w(i)?null:c.createElement(A,{buttonStyle:"text","data-cy":"neeto-editor-mention-option",icon:se,strategy:"fixed",buttonProps:{tooltipProps:{content:r,position:"bottom"},className:"neeto-editor-fixed-menu__item"}},c.createElement(o,null,i.map((e=>{let{key:n,name:r,imageUrl:i}=e;return c.createElement(s.Button,{"data-cy":`neeto-editor-mention-option-${n}`,key:n,onClick:()=>t.commands.setMention({id:n,label:r})},c.createElement(I,{size:"small",user:{name:r,imageUrl:i}}),c.createElement(S,{style:"body2"},r))}))))},NF=e=>{let{editor:t,isActive:n,setActive:r,tooltipContent:i}=e;return c.createElement(A,{buttonStyle:"text",closeOnSelect:!1,dropdownProps:{classNames:"neeto-editor-fixed-menu__emoji-dropdown"},icon:X,isOpen:n,position:"bottom-start",strategy:"fixed",buttonProps:{tooltipProps:{content:i,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>r((e=>!e)),onClose:()=>r(!1)},c.createElement(lL,{editor:t,setActive:r}))},OF=e=>{let{size:t,color:n,strokeWidth:r,...i}=e;return c.createElement("svg",hv({fill:"none",height:t,viewBox:"0 0 24 24",width:t},i),c.createElement("path",{d:"M13.8791 8.37527L8.39309 13.8613C7.56709 14.6873 7.56709 16.0273 8.39309 16.8533C9.21909 17.6793 10.5591 17.6793 11.3851 16.8533L18.6171 9.62127C20.1321 8.10627 20.1321 5.65027 18.6171 4.13527C17.1021 2.62027 14.6461 2.62027 13.1311 4.13527L5.89909 11.3673C3.69509 13.5713 3.69509 17.1433 5.89909 19.3473C8.10309 21.5513 11.6751 21.5513 13.8791 19.3473L18.2681 14.9583",stroke:n,strokeWidth:r}))};OF.defaultProps={color:"currentColor",size:24,strokeWidth:"1.5"},OF.propTypes={color:Im.exports.string,size:Im.exports.oneOfType([Im.exports.string,Im.exports.number]),strokeWidth:Im.exports.oneOfType([Im.exports.string,Im.exports.number])};const{t:TF}=Ea,IF=[{label:"Paragraph",value:0},{label:"Heading 1",value:1},{label:"Heading 2",value:2},{label:"Heading 3",value:3}],LF=e=>{let{tooltips:t,editor:n,options:r,setMediaUploader:i,handleUploadAttachments:o,setIsEmbedModalOpen:s}=e;const a=(e=>{let{tooltips:t,editor:n,setMediaUploader:r,handleUploadAttachments:i,setIsEmbedModalOpen:o}=e;return{font:[{Icon:ae,command:()=>n.chain().focus().toggleBold().run(),active:n.isActive("bold"),optionName:"bold",tooltip:t.bold||TF("menu.bold")},{Icon:le,command:()=>n.chain().focus().toggleItalic().run(),active:n.isActive("italic"),optionName:"italic",tooltip:t.italic||TF("menu.italic")},{Icon:ce,command:()=>n.chain().focus().toggleUnderline().run(),active:n.isActive("underline"),optionName:"underline",tooltip:t.underline||TF("menu.underline")},{Icon:ue,command:()=>n.chain().focus().toggleStrike().run(),active:n.isActive("strike"),optionName:"strike",tooltip:t.strike||TF("menu.strike")},{Icon:de,command:()=>n.chain().focus().toggleHighlight().run(),active:n.isActive("highlight"),optionName:"highlight",tooltip:t.highlight||TF("menu.highlight")}],block:[{Icon:pe,command:()=>n.chain().focus().toggleBlockquote().run(),active:n.isActive("blockquote"),optionName:"block-quote",highlight:!0,tooltip:t.blockQuote||TF("menu.block-quote")},{Icon:Z,command:()=>n.chain().focus().toggleCode().run(),active:n.isActive("code"),optionName:"code",tooltip:t.code||TF("menu.code")}],list:[{Icon:G,command:()=>n.chain().focus().toggleBulletList().run(),active:n.isActive("bulletList"),optionName:"bullet-list",highlight:!0,tooltip:t.bulletList||TF("menu.bullet-list")},{Icon:K,command:()=>n.chain().focus().toggleOrderedList().run(),active:n.isActive("orderedList"),optionName:"ordered-list",highlight:!0,tooltip:t.orderedList||TF("menu.ordered-list")}],misc:[{Icon:OF,command:i,active:!1,optionName:"attachments",tooltip:t.attachments||TF("menu.attachments")},{Icon:Y,command:()=>r(ve("image",!0)),optionName:"image-upload",tooltip:t.imageUpload||TF("menu.image-upload")},{Icon:Q,command:()=>r(ve("video",!0)),optionName:"video-upload",tooltip:t.videoUpload||TF("menu.video-upload")},{Icon:te,command:()=>o(!0),optionName:"video-embed",tooltip:t.videoEmbed||TF("menu.video-embed")}],right:[{Icon:he,command:()=>n.chain().focus().undo().run(),active:!1,disabled:!n.can().undo(),optionName:"undo",tooltip:t.undo||TF("menu.undo")},{Icon:fe,command:()=>n.chain().focus().redo().run(),active:!1,disabled:!n.can().redo(),optionName:"redo",tooltip:t.redo||TF("menu.redo")}]}})({tooltips:t,editor:n,setMediaUploader:i,handleUploadAttachments:o,setIsEmbedModalOpen:s});return Ce(["font","block","list","misc","right"].map((e=>[e,a[e].filter((e=>r.includes(e.optionName)))])))},jF=e=>{let{Icon:t,command:n,active:r,optionName:i,highlight:o,disabled:s,tooltip:a}=e;return c.createElement(D,hv({className:"neeto-editor-fixed-menu__item","data-cy":`neeto-editor-fixed-menu-${i}-option`,disabled:s,icon:t,key:i,style:r?"secondary":"text",tooltipProps:{content:a,position:"bottom"},onClick:n},tR(o)))},RF=e=>{let{editor:t,commands:n}=e;const{to:r}=t.state.selection;return n.map((e=>{var n;return{...e,active:null===(n=e.active)||void 0===n?void 0:n.call(e,{editor:t}),command:()=>{var n;return null===(n=e.command)||void 0===n?void 0:n.call(e,{editor:t,range:{from:r,to:r}})}}}))},zF=e=>{let{editor:t,options:n,mentions:r,tooltips:i,setIsInvalidLink:o,isLinkOptionActive:s,isTableOptionActive:a,setIsLinkOptionActive:l,setIsTableOptionActive:u,setMediaUploader:d,handleUploadAttachments:p,isEmojiPickerActive:h,setIsEmojiPickerActive:f,setIsEmbedModalOpen:m,children:g}=e;const{t:b}=Ga(),{Menu:y,MenuItem:v}=A,w=(e=>{let{editor:t}=e;return[{optionName:"Heading 1",active:t.isActive("heading",{level:1}),command:()=>t.chain().focus().setNode("heading",{level:1}).run()},{optionName:"Heading 2",active:t.isActive("heading",{level:2}),command:()=>t.chain().focus().setNode("heading",{level:2}).run()},{optionName:"Heading 3",active:t.isActive("heading",{level:3}),command:()=>t.chain().focus().setNode("heading",{level:3}).run()},{optionName:"Ordered List",active:t.isActive("orderedList"),command:()=>t.chain().focus().toggleOrderedList().run()},{optionName:"Bulleted List",active:t.isActive("bulletList"),command:()=>t.chain().focus().toggleBulletList().run()},{optionName:"Text",active:t.isActive("paragraph"),command:()=>t.chain().focus().setNode("paragraph").run()}]})({editor:t}),_=(e=>{var t;return(null===(t=e.find(Me("active")))||void 0===t?void 0:t.optionName)||"Text"})(w),x=n.includes(er.EMOJI),k=n.includes(er.LINK),E=n.includes(er.TABLE),{font:M,block:C,list:D}=LF({editor:t,options:n,setMediaUploader:d,tooltips:i,handleUploadAttachments:p,setIsEmbedModalOpen:m}),S=()=>{o(!0),setTimeout((()=>{o(!1)}),1e3)};return s?c.createElement(CF,{editor:t,handleAnimateInvalidLink:S,handleClose:()=>l(!1)}):a?c.createElement(DF,{editor:t,handleClose:()=>u(!1)}):c.createElement(c.Fragment,null,c.createElement(A,{buttonSize:"small",buttonStyle:"text",label:_,strategy:"fixed"},c.createElement(y,null,w.map((e=>{let{optionName:t,command:n}=e;return c.createElement(v.Button,{key:t,onClick:n},t)})))),M.map(SF),C.map(SF),x&&c.createElement(NF,{editor:t,isActive:h,setActive:f,tooltipContent:i.emoji||b("menu.emoji")}),D.map(SF),k&&SF({Icon:me,command:()=>l(!0),active:t.isActive("link"),optionName:"link",highlight:!1,tooltip:i.link||b("menu.link")}),E&&SF({Icon:re,command:()=>u(!0),active:t.isActive("table"),optionName:"table",highlight:!1,tooltip:i.table||b("menu.table")}),c.createElement(AF,{editor:t,mentions:r,tooltipContent:i.mention||b("menu.mention")}),g)},FF=e=>{let{editor:t,options:n,mentions:r=[],setMediaUploader:i,tooltips:o={},handleUploadAttachments:s,isEmojiPickerActive:a,setIsEmojiPickerActive:l,setIsEmbedModalOpen:u,children:p}=e;const[h,f]=d(!1),[m,g]=d(!1),[b,y]=d(!1),v=t&&t.view.state.selection.node,w=v&&"image"===v.type.name,_=[er.BOLD,er.ITALIC,er.UNDERLINE,er.STRIKETHROUGH,er.LINK],x=ls(n.filter((e=>_.includes(e))));return!t||!w&&x?null:c.createElement("div",null,c.createElement(CD,{editor:t,className:gl("neeto-editor-bubble-menu",{"neeto-editor-bubble-menu-animate-shake":h}),tippyOptions:{arrow:LC,zIndex:99999,onHide:()=>{g(!1),y(!1)},theme:"neeto-editor-bubble-menu",maxWidth:500}},c.createElement(zF,{editor:t,handleUploadAttachments:s,isEmojiPickerActive:a,isLinkOptionActive:m,isTableOptionActive:b,mentions:r,options:n,setIsEmbedModalOpen:u,setIsEmojiPickerActive:l,setIsInvalidLink:f,setIsLinkOptionActive:g,setIsTableOptionActive:y,setMediaUploader:i,tooltips:o},p)))},{Menu:PF,MenuItem:BF}=A,UF=e=>{var t;let{editor:n,tooltipContent:r}=e;const i=(null===(t=IF.find((e=>{let{value:t}=e;return r=t,n.isActive("heading",{level:r});var r})))||void 0===t?void 0:t.label)||"Paragraph";return c.createElement(A,{autoWidth:!0,buttonStyle:"text","data-cy":"neeto-editor-fixed-menu-font-size-option",label:i,placement:"bottom-start",buttonProps:{tooltipProps:{content:r,position:"bottom"},className:"neeto-editor-fixed-menu__item neeto-editor-font-size__wrapper"}},c.createElement(PF,null,IF.map((e=>{let{label:t,value:r}=e;return c.createElement(BF.Button,{"data-cy":`neeto-editor-fixed-menu-font-size-option-${t}`,key:r,onClick:()=>{return(e=r)?n.chain().focus().toggleHeading({level:e}).run():n.chain().focus().setNode("paragraph").run();var e}},t)}))))},{Menu:HF}=A,$F=e=>{let{editor:t,tooltipContent:n}=e;const{t:r}=Ga(),[i,o]=d(""),[s,a]=d(""),[l,u]=d(!1),p=t.isActive("link"),h=()=>{u(!1),a(""),o("")},f=()=>{rr.test(s)?(t.chain().focus().setLink({href:s}).run(),h()):o(r("errors.invalid-url"))};return c.createElement(A,{buttonStyle:p?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:me,isOpen:l,position:"bottom",buttonProps:{tooltipProps:{content:n,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>{a(t.getAttributes("link").href),u((e=>!e))},onClose:h},c.createElement(HF,{className:"neeto-editor-link__item",onKeyDown:e=>{"Escape"===e.key?h():"Enter"===e.key&&f()}},c.createElement(C,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-link-option-input",error:i,name:"url",placeholder:r("placeholders.url"),value:s,onChange:e=>{let{target:{value:t}}=e;return a(t)},onFocus:()=>o("")}),c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-link-option-link-button",label:r("menu.link"),onClick:f}),p&&c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-link-option-unlink-button",label:r("common.unlink"),style:"text",onClick:()=>{t.chain().focus().unsetLink().run(),a(""),h()}})))},{Menu:VF}=A,WF=e=>{let{editor:t,tooltipContent:n}=e;const{t:r}=Ga(),[i,o]=d(!1),[s,a]=d(3),[l,u]=d(3),p=()=>{a(3),u(3),o(!1)};return c.createElement(A,{buttonStyle:i?"secondary":"text",closeOnSelect:!1,"data-cy":"neeto-editor-fixed-menu-link-option",icon:re,isOpen:i,position:"bottom",buttonProps:{tooltipProps:{content:n,position:"bottom"},className:"neeto-editor-fixed-menu__item"},onClick:()=>o((e=>!e)),onClose:p},c.createElement(VF,{className:"neeto-editor-table__item"},c.createElement(C,{autoFocus:!0,"data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.rows"),size:"small",type:"number",value:s,onChange:e=>a(e.target.value)}),c.createElement(C,{"data-cy":"neeto-editor-fixed-menu-table-option-input",min:"1",placeholder:r("placeholders.rows"),size:"small",type:"number",value:l,onChange:e=>u(e.target.value)}),c.createElement(D,{"data-cy":"neeto-editor-fixed-menu-table-option-create-button",label:r("common.create"),size:"small",onClick:()=>{t.chain().focus().insertTable({rows:s,cols:l,withHeaderRow:!0}).run(),p()}})))},{Menu:qF}=A,KF=e=>{let{editor:t,variables:n,tooltipContent:r}=e;return w(n)?null:c.createElement(A,{buttonSize:"small",buttonStyle:"secondary","data-cy":"neeto-editor-variable-option",icon:ge,strategy:"fixed",buttonProps:{tooltipProps:{content:r,position:"bottom"}}},c.createElement(qF,null,c.createElement(Uz,{variables:n,onClickVariable:e=>{const{category_key:n,key:r}=e,i=n?`${n}.${r}`:r;t.chain().focus().setVariable({label:i}).run()}})))},GF=t=>{let{editor:n,options:r,mentions:i=[],variables:o=[],setMediaUploader:s,addonCommands:a=[],isIndependant:l=!0,className:u,tooltips:d={},handleUploadAttachments:p,isEmojiPickerActive:h,setIsEmojiPickerActive:f,setIsEmbedModalOpen:m,children:g}=t;const{t:b}=Ga();if(!n)return null;const{font:y,block:v,list:w,misc:_,right:x}=LF({tooltips:d,editor:n,options:r,setMediaUploader:s,handleUploadAttachments:p,setIsEmbedModalOpen:m}),k=r.filter((e=>e.match(/^h[1-6]$/))),E=e(k),M=r.includes(er.EMOJI),C=r.includes(er.LINK),D=r.includes(er.TABLE),S=RF({editor:n,commands:a});return c.createElement("div",{className:gl("neeto-editor-fixed-menu",{"neeto-editor-fixed-menu--independant":l,[u]:u})},c.createElement("div",{className:"neeto-editor-fixed-menu__wrapper"},E&&c.createElement(UF,{editor:n,tooltipContent:d.fontSize||b("menu.font-size")}),y.map(jF),v.map(jF),M&&c.createElement(NF,{editor:n,isActive:h,setActive:f,tooltipContent:d.emoji||b("menu.emoji")}),w.map(jF),C&&c.createElement($F,{editor:n,tooltipContent:d.link||b("menu.link")}),D&&c.createElement(WF,{editor:n,tooltipContent:d.table||b("menu.table")}),_.map(jF),c.createElement(AF,{editor:n,mentions:i,tooltipContent:d.mention||b("menu.mention")}),S.map(jF),g,c.createElement("div",{className:"neeto-editor-fixed-menu__right-options"},x.map(jF))),c.createElement("div",{className:"neeto-editor-fixed-menu__variables"},c.createElement(KF,{editor:n,tooltipContent:d.variables||b("menu.variables"),variables:o})))},YF=e=>{let{icon:t=null,onClick:r=n,disabled:i=!1,className:o,tooltipProps:s,...a}=e;const l=t;return c.createElement(M,hv({disabled:!s,onClick:()=>r()},s),c.createElement("button",hv({className:gl("ne-headless-btn",{[o]:o}),disabled:i,type:"button",onClick:r},a),t&&c.createElement(l,{"aria-hidden":"true",key:"2",size:18})))},QF={name:"hideOnEsc",defaultValue:!0,fn(e){let{hide:t,props:{hideOnEsc:n,onClose:r}}=e;function i(e){"escape"===e.key.toLowerCase()&&n&&(r(),t())}return{onShow(){document.addEventListener("keydown",i)},onHide(){document.removeEventListener("keydown",i)}}}},JF=e=>{let{icon:t,isOpen:r,onClose:i=n,children:o,className:s,onClick:a,buttonProps:l={},...u}=e;const[p,h]=d(!1);return c.createElement(hR,hv({hideOnEsc:!0,interactive:!0,animation:!1,arrow:!1,duration:0,hideOnClick:!1,maxWidth:"none",offset:0,plugins:[QF],popperOptions:{strategy:"fixed"},role:"dropdown",theme:"light",trigger:"click",visible:r,className:gl("ne-headless-dropdown",{[s]:s}),content:p&&c.createElement("div",{className:"ne-headless-dropdown__popup"},o),onClickOutside:i,onClose:i,onHidden:()=>h(!1),onMount:()=>h(!0)},u),c.createElement("span",null,c.createElement(YF,hv({icon:t,onClick:a},l))))},ZF=e=>{let{editor:t,isActive:n,setActive:r,tooltipContent:i}=e;return c.createElement(JF,{className:"ne-headless__emoji",icon:X,isOpen:n,buttonProps:{tooltipProps:{content:i,delay:[500],position:"bottom"}},onClick:()=>r((e=>!e)),onClose:()=>r(!1)},c.createElement(lL,{editor:t,setActive:r}))},XF=e=>{let{editor:t,optionName:n,command:r,disabled:i,Icon:o,isActive:s,setActive:a,tooltip:l}=e;return n===er.EMOJI?c.createElement(ZF,{editor:t,isActive:s,setActive:a,tooltipContent:l||"Emoji"}):c.createElement(YF,{className:s?"ne-headless-btn--active":"",disabled:i,icon:o,tooltipProps:{content:l,delay:[500],position:"bottom"},onClick:r})},{t:eP}=Ea,tP=e=>{let{tooltips:r,editor:i,options:o,setMediaUploader:s,handleUploadAttachments:a,isEmojiPickerActive:l,setIsEmojiPickerActive:c,setIsEmbedModalOpen:u}=e;const d=(e=>{let{editor:t,tooltips:r,setMediaUploader:i,handleUploadAttachments:o,isEmojiPickerActive:s,setIsEmojiPickerActive:a,setIsEmbedModalOpen:l}=e;return[{Icon:ae,command:()=>t.chain().focus().toggleBold().run(),active:t.isActive("bold"),optionName:"bold",tooltip:r.bold||eP("menu.bold")},{Icon:le,command:()=>t.chain().focus().toggleItalic().run(),active:t.isActive("italic"),optionName:"italic",tooltip:r.italic||eP("menu.italic")},{Icon:ce,command:()=>t.chain().focus().toggleUnderline().run(),active:t.isActive("underline"),optionName:"underline",tooltip:r.underline||eP("menu.underline")},{Icon:ue,command:()=>t.chain().focus().toggleStrike().run(),active:t.isActive("strike"),optionName:"strike",tooltip:r.strike||eP("menu.strike")},{Icon:de,command:()=>t.chain().focus().toggleHighlight().run(),active:t.isActive("highlight"),optionName:"highlight",tooltip:r.highlight||eP("menu.highlight")},{Icon:pe,command:()=>t.chain().focus().toggleBlockquote().run(),active:t.isActive("blockquote"),optionName:"block-quote",tooltip:r.blockQuote||eP("menu.block-quote")},{Icon:Z,command:()=>t.chain().focus().toggleCode().run(),active:t.isActive("code"),optionName:"code",tooltip:r.code||eP("menu.code")},{Icon:G,command:()=>t.chain().focus().toggleBulletList().run(),active:t.isActive("bulletList"),optionName:"bullet-list",tooltip:r.bulletList||eP("menu.bullet-list")},{Icon:K,command:()=>t.chain().focus().toggleOrderedList().run(),active:t.isActive("orderedList"),optionName:"ordered-list",tooltip:r.orderedList||eP("menu.ordered-list")},{Icon:be,command:o,optionName:"attachments",tooltip:r.attachments||eP("menu.attachments")},{Icon:Y,command:()=>i(ve("image",!0)),optionName:"image-upload",tooltip:r.imageUpload||eP("menu.image-upload")},{Icon:Q,command:()=>i(ve("video",!0)),optionName:"video-upload",tooltip:r.videoUpload||eP("menu.video-upload")},{Icon:te,command:()=>l(!0),optionName:"video-embed",tooltip:r.videoEmbed||eP("menu.video-embed")},{Icon:X,command:n,optionName:"emoji",tooltip:r.emoji||eP("menu.emoji"),isActive:s,setActive:a},{Icon:re,command:()=>t.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run(),optionName:"table",tooltip:r.table||eP("menu.table")},{Icon:he,command:()=>t.chain().focus().undo().run(),disabled:!t.can().undo(),optionName:"undo",tooltip:r.undo||eP("menu.undo")},{Icon:fe,command:()=>t.chain().focus().redo().run(),disabled:!t.can().redo(),optionName:"redo",tooltip:r.redo||eP("menu.redo")}]})({editor:i,tooltips:r,setMediaUploader:s,handleUploadAttachments:a,isEmojiPickerActive:l,setIsEmojiPickerActive:c,setIsEmbedModalOpen:u});return o.map((e=>t({optionName:e},d))).filter(Boolean)},nP=e=>{let{editor:t,options:n,tooltips:r={},setMediaUploader:i,addonCommands:o=[],children:s,className:a,handleUploadAttachments:l,isEmojiPickerActive:u,setIsEmojiPickerActive:d,setIsEmbedModalOpen:p}=e;if(!t)return null;const h=[...tP({tooltips:r,editor:t,options:n,setMediaUploader:i,handleUploadAttachments:l,isEmojiPickerActive:u,setIsEmojiPickerActive:d,setIsEmbedModalOpen:p}),...RF({editor:t,commands:o})];return c.createElement("div",{className:gl("ne-headless",{[a]:a})},h.map((e=>c.createElement(XF,hv({editor:t,key:e.optionName},e)))),s)},rP=e=>{const[t,n]=d(!1),[r,i]=d(!1),[o,s]=d({image:!1,video:!1}),{menuType:a="fixed",addons:l=[],options:u=[],editor:p,uploadEndpoint:f=nr,editorSecrets:m={},handleUploadAttachments:g}=e,b={fixed:GF,bubble:FF,headless:nP,none:()=>c.createElement("div",null)}[a],y=w(u)?[...lr,...l]:u;return h((()=>{const e=e=>{(e.metaKey||e.ctrlKey)&&e.altKey&&("KeyE"===e.code?n((e=>!e)):"KeyA"===e.code?g():"KeyK"===e.code?s(ve("image",!0)):"KeyV"===e.code&&s(ve("video",!0)))};return"none"!==a&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[]),c.createElement(c.Fragment,null,c.createElement(b,hv({},e,{handleUploadAttachments:g,isEmojiPickerActive:t,options:y,setIsEmbedModalOpen:i,setIsEmojiPickerActive:n,setMediaUploader:s})),c.createElement(xF,{editor:p,mediaUploader:o,unsplashApiKey:m.unsplash,uploadEndpoint:f,onClose:()=>s({image:!1,video:!1})}),l.includes("video-embed")&&c.createElement(WD,{editor:p,isEmbedModalOpen:r,setIsEmbedModalOpen:i}))},iP=(e,t)=>{let{addonCommands:r=[],addons:i=[],attachments:o=[],attachmentsConfig:a={},autoFocus:l=!1,className:u,contentClassName:m,defaults:g=lr,editorSecrets:b={},error:y=null,extensions:v=[],hideSlashCommands:w=!1,initialValue:_="",isCharacterCountActive:x=!1,keyboardShortcuts:k=[],label:E="",mentions:M=[],menuType:C="fixed",placeholder:D,required:S=!1,rows:A=6,tooltips:N={},uploadEndpoint:O=nr,variables:T=[],onChange:I=n,onFocus:L=n,onBlur:R=n,onSubmit:z=n,onChangeAttachments:F=n,...P}=e;const B=p(null),U=i.includes(er.ATTACHMENTS),H=i.includes(er.VIDEO_EMBED),$="fixed"===C,V="bubble"===C,W=!w,q=!!D,[K,G]=d(!1),[Y,Q]=d({image:!1,video:!1}),J=p(null),Z=Qz({placeholder:D,extensions:v,mentions:M,variables:T,isSlashCommandsActive:W,options:[...g,...i],addonCommands:r,onSubmit:z,keyboardShortcuts:k,uploadEndpoint:O,setMediaUploader:Q,setIsEmbedModalOpen:G,isVideoEmbedActive:H});(e=>{let{initialValue:t}=e;h((()=>{![process.env.RAILS_ENV,"production"].includes("production")&&ls(t)&&console.warn(`[neeto-editor]: Empty value of "initialValue" in needtoEditor is expected to be "<p></p>" instead of "${t}".`)}),[t])})({initialValue:_});const X=gl("neeto-editor",{"slash-active":W&&!q,"fixed-menu-active border":$,"bubble-menu-active":V,"placeholder-active":q,"attachments-active":U,[m]:m}),ee=FD({extensions:Z,content:_,injectCSS:!1,autofocus:l&&"end",editorProps:{attributes:{class:X,style:pr({rows:A})},clipboardTextParser:hr},parseOptions:{preserveWhitespace:!0},onCreate:e=>{let{editor:t}=e;return!l&&(e=>{const{state:t,view:n}=e,r=Sn.atEnd(t.doc),i=t.tr;i.setSelection(r),n.dispatch(i)})(t)},onUpdate:e=>{let{editor:t}=e;return I(t.getHTML())},onFocus:L,onBlur:R});return f(t,(()=>({editor:ee,focus:()=>ee.commands.focus()}))),_k.prototype.updateState=function(e){this.docView&&this.updateStateInner(e,this.state.plugins!==e.plugins)},c.createElement("div",{ref:B,className:gl({[u]:u,"ne-attachments__wrapper":U})},E&&c.createElement(j,{className:"neeto-ui-mb-2","data-cy":`${s(E)}-editor-label`,required:S},E),c.createElement(PD,{error:y},c.createElement(BD,{editor:ee,isActive:x},c.createElement(rP,{addonCommands:r,addons:i,defaults:g,editor:ee,editorSecrets:b,handleUploadAttachments:()=>{var e;return(null===(e=J.current)||void 0===e?void 0:e.handleUploadAttachments())||n()},isIndependant:!1,mentions:M,menuType:C,tooltips:N,uploadEndpoint:O,variables:T}),c.createElement(ND,hv({editor:ee},P)),c.createElement(xF,{editor:ee,mediaUploader:Y,unsplashApiKey:b.unsplash,uploadEndpoint:O,onClose:()=>Q({image:!1,video:!1})}),H&&c.createElement(WD,{editor:ee,isEmbedModalOpen:K,setIsEmbedModalOpen:G}),U&&c.createElement(gw,{attachments:o,className:"ne-attachments--integrated",config:a,dragDropRef:B,isIndependent:!1,ref:J,onChange:F}))))};var oP=c.forwardRef(iP);MF('@charset "UTF-8";\n@import url("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/github.min.css");\n@keyframes shake {\n 0% {\n transform: translateX(0);\n }\n 10% {\n transform: translateX(-4px);\n }\n 20% {\n transform: translateX(4px);\n }\n 30% {\n transform: translateX(-4px);\n }\n 40% {\n transform: translateX(4px);\n }\n 50% {\n transform: translateX(-4px);\n }\n 60% {\n transform: translateX(4px);\n }\n 70% {\n transform: translateX(-4px);\n }\n 80% {\n transform: translateX(4px);\n }\n 90% {\n transform: translateX(-4px);\n }\n 100% {\n transform: translateX(0);\n }\n}\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.neeto-editor-slash-commands__wrapper {\n padding: 12px;\n overflow-y: auto;\n max-height: 384px;\n width: 256px;\n max-width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item {\n width: 100%;\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 8px 12px;\n gap: 12px;\n border-radius: var(--neeto-ui-rounded);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item:hover, .neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content h5 {\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-slash-commands__wrapper .neeto-editor-slash-commands__item .neeto-editor-slash-commands__item-content p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-mentions__wrapper {\n padding: 8px;\n width: auto;\n min-width: 208px;\n max-height: 256px;\n overflow-y: auto;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 8px;\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-white));\n border-radius: var(--neeto-ui-rounded);\n gap: 8px;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item p {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.neeto-editor-mentions__wrapper .neeto-editor-mentions__item:hover, .neeto-editor-mentions__wrapper .neeto-editor-mentions__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.ProseMirror.slash-active p.is-empty:last-child::before {\n content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwIiB2aWV3Qm94PSIwIDAgMjAwIDIwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMy44MjEyOSAxNUg1LjA1MTc2VjYuMjQzMTZIOC4yMzA0N1Y1LjEzNTc0SDAuNjQyNTc4VjYuMjQzMTZIMy44MjEyOVYxNVpNOS43MjA3IDE3LjU4NEMxMS4wMjY0IDE3LjU4NCAxMS42MzQ4IDE3LjEwNTUgMTIuMjQzMiAxNS40NTEyTDE1LjEyMTEgNy42MzA4NkgxMy44NzAxTDExLjg1MzUgMTMuNjk0M0gxMS43NDQxTDkuNzIwNyA3LjYzMDg2SDguNDQ5MjJMMTEuMTc2OCAxNS4wMDY4TDExLjA0IDE1LjQ0NDNDMTAuNzczNCAxNi4yOTIgMTAuMzYzMyAxNi41OTk2IDkuNjg2NTIgMTYuNTk5NkM5LjUyMjQ2IDE2LjU5OTYgOS4zMzc4OSAxNi41OTI4IDkuMTk0MzQgMTYuNTY1NFYxNy41NDNDOS4zNTg0IDE3LjU3MDMgOS41NjM0OCAxNy41ODQgOS43MjA3IDE3LjU4NFpNMTYuNjkzNCAxNy40NjA5SDE3Ljg4MjhWMTMuODM3OUgxNy45OTIyQzE4LjM5NTUgMTQuNjI0IDE5LjI3NzMgMTUuMTI5OSAyMC4yODkxIDE1LjEyOTlDMjIuMTYyMSAxNS4xMjk5IDIzLjM3ODkgMTMuNjMyOCAyMy4zNzg5IDExLjMyMjNWMTEuMzA4NkMyMy4zNzg5IDkuMDExNzIgMjIuMTU1MyA3LjUwMDk4IDIwLjI4OTEgNy41MDA5OEMxOS4yNjM3IDcuNTAwOTggMTguNDQzNCA3Ljk4NjMzIDE3Ljk5MjIgOC44MDY2NEgxNy44ODI4VjcuNjMwODZIMTYuNjkzNFYxNy40NjA5Wk0yMC4wMTU2IDE0LjA3NzFDMTguNjc1OCAxNC4wNzcxIDE3Ljg1NTUgMTMuMDI0NCAxNy44NTU1IDExLjMyMjNWMTEuMzA4NkMxNy44NTU1IDkuNjA2NDUgMTguNjc1OCA4LjU1MzcxIDIwLjAxNTYgOC41NTM3MUMyMS4zNjIzIDguNTUzNzEgMjIuMTYyMSA5LjU5Mjc3IDIyLjE2MjEgMTEuMzA4NlYxMS4zMjIzQzIyLjE2MjEgMTMuMDM4MSAyMS4zNjIzIDE0LjA3NzEgMjAuMDE1NiAxNC4wNzcxWk0yOC4yNDYxIDE1LjEyOTlDMjkuOTgyNCAxNS4xMjk5IDMxLjAzNTIgMTQuMTQ1NSAzMS4yODgxIDEzLjE0NzVMMzEuMzAxOCAxMy4wOTI4SDMwLjExMjNMMzAuMDg1IDEzLjE1NDNDMjkuODg2NyAxMy41OTg2IDI5LjI3MTUgMTQuMDcwMyAyOC4yNzM0IDE0LjA3MDNDMjYuOTYwOSAxNC4wNzAzIDI2LjEyMDEgMTMuMTgxNiAyNi4wODU5IDExLjY1NzJIMzEuMzkwNlYxMS4xOTI0QzMxLjM5MDYgOC45OTEyMSAzMC4xNzM4IDcuNTAwOTggMjguMTcwOSA3LjUwMDk4QzI2LjE2OCA3LjUwMDk4IDI0Ljg2OTEgOS4wNTk1NyAyNC44NjkxIDExLjMzNTlWMTEuMzQyOEMyNC44NjkxIDEzLjY1MzMgMjYuMTQwNiAxNS4xMjk5IDI4LjI0NjEgMTUuMTI5OVpNMjguMTY0MSA4LjU2MDU1QzI5LjI1MSA4LjU2MDU1IDMwLjA1NzYgOS4yNTA5OCAzMC4xODA3IDEwLjcwN0gyNi4xMDY0QzI2LjIzNjMgOS4zMDU2NiAyNy4wNzAzIDguNTYwNTUgMjguMTY0MSA4LjU2MDU1WiIgZmlsbD0iIzg3OTI5RCIvPgo8cmVjdCB4PSIzNyIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiByeD0iMyIgZmlsbD0iI0U5RUJFRCIvPgo8cGF0aCBkPSJNNTAuNDI4MiA1LjkxNDQzTDQzLjU3MTggMTQuMDg1NiIgc3Ryb2tlPSIjMjUyQzMyIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02NC43MjU2IDE1LjA1NDdDNjQuOTU4IDE1LjA1NDcgNjUuMTgzNiAxNS4wMjczIDY1LjQxNiAxNC45ODYzVjEzLjk3NDZDNjUuMTk3MyAxMy45OTUxIDY1LjA4MTEgMTQuMDAyIDY0Ljg2OTEgMTQuMDAyQzY0LjEwMzUgMTQuMDAyIDYzLjgwMjcgMTMuNjUzMyA2My44MDI3IDEyLjc4NTJWOC42MTUyM0g2NS40MTZWNy42MzA4Nkg2My44MDI3VjUuNzIzNjNINjIuNTcyM1Y3LjYzMDg2SDYxLjQxMDJWOC42MTUyM0g2Mi41NzIzVjEzLjA4NTlDNjIuNTcyMyAxNC40OTQxIDYzLjIwOCAxNS4wNTQ3IDY0LjcyNTYgMTUuMDU0N1pNNzAuMTEyMyAxNS4xMjk5QzcyLjIxMDkgMTUuMTI5OSA3My41MDk4IDEzLjY4MDcgNzMuNTA5OCAxMS4zMjIzVjExLjMwODZDNzMuNTA5OCA4Ljk0MzM2IDcyLjIxMDkgNy41MDA5OCA3MC4xMTIzIDcuNTAwOThDNjguMDEzNyA3LjUwMDk4IDY2LjcxNDggOC45NDMzNiA2Ni43MTQ4IDExLjMwODZWMTEuMzIyM0M2Ni43MTQ4IDEzLjY4MDcgNjguMDEzNyAxNS4xMjk5IDcwLjExMjMgMTUuMTI5OVpNNzAuMTEyMyAxNC4wNzcxQzY4LjcxNzggMTQuMDc3MSA2Ny45MzE2IDEzLjA1ODYgNjcuOTMxNiAxMS4zMjIzVjExLjMwODZDNjcuOTMxNiA5LjU2NTQzIDY4LjcxNzggOC41NTM3MSA3MC4xMTIzIDguNTUzNzFDNzEuNTA2OCA4LjU1MzcxIDcyLjI5MyA5LjU2NTQzIDcyLjI5MyAxMS4zMDg2VjExLjMyMjNDNzIuMjkzIDEzLjA1ODYgNzEuNTA2OCAxNC4wNzcxIDcwLjExMjMgMTQuMDc3MVpNODIuMzA3NiAxNS4xMjk5Qzg0LjA3ODEgMTUuMTI5OSA4NS4wNjkzIDE0LjE3OTcgODUuMzcwMSAxMi44NDY3TDg1LjM4MzggMTIuNzcxNUw4NC4yMDggMTIuNzc4M0w4NC4xOTQzIDEyLjgxOTNDODMuOTIwOSAxMy42Mzk2IDgzLjI5MiAxNC4wNzcxIDgyLjMwMDggMTQuMDc3MUM4MC45ODgzIDE0LjA3NzEgODAuMTQwNiAxMi45OTAyIDgwLjE0MDYgMTEuMjk0OVYxMS4yODEyQzgwLjE0MDYgOS42MjAxMiA4MC45NzQ2IDguNTUzNzEgODIuMzAwOCA4LjU1MzcxQzgzLjM2MDQgOC41NTM3MSA4NC4wMTY2IDkuMTQxNiA4NC4yMDEyIDkuODY2MjFMODQuMjA4IDkuODg2NzJIODUuMzkwNkw4NS4zODM4IDkuODQ1N0M4NS4xNjUgOC41MzMyIDg0LjA5MTggNy41MDA5OCA4Mi4zMDA4IDcuNTAwOThDODAuMjM2MyA3LjUwMDk4IDc4LjkyMzggOC45OTEyMSA3OC45MjM4IDExLjI4MTJWMTEuMjk0OUM3OC45MjM4IDEzLjYzMjggODAuMjQzMiAxNS4xMjk5IDgyLjMwNzYgMTUuMTI5OVpNODcuMTk1MyAxNUg4OC4zODQ4VjEwLjYzODdDODguMzg0OCA5LjM0NjY4IDg5LjEyOTkgOC41NTM3MSA5MC4zMDU3IDguNTUzNzFDOTEuNDgxNCA4LjU1MzcxIDkyLjAyODMgOS4xODk0NSA5Mi4wMjgzIDEwLjUxNTZWMTVIOTMuMjE3OFYxMC4yMjg1QzkzLjIxNzggOC40Nzg1MiA5Mi4yOTQ5IDcuNTAwOTggOTAuNjQwNiA3LjUwMDk4Qzg5LjU1MzcgNy41MDA5OCA4OC44NjMzIDcuOTU4OTggODguNDk0MSA4LjczODI4SDg4LjM4NDhWNC43MDUwOEg4Ny4xOTUzVjE1Wk05Ny4zOTQ1IDE1LjEyOTlDOTguMzg1NyAxNS4xMjk5IDk5LjE1ODIgMTQuNjk5MiA5OS42MjMgMTMuOTEzMUg5OS43MzI0VjE1SDEwMC45MjJWOS45NTUwOEMxMDAuOTIyIDguNDIzODMgOTkuOTE3IDcuNTAwOTggOTguMTE5MSA3LjUwMDk4Qzk2LjU0NjkgNy41MDA5OCA5NS40MjU4IDguMjgwMjcgOTUuMjM0NCA5LjQzNTU1TDk1LjIyNzUgOS40NzY1Nkg5Ni40MTdMOTYuNDIzOCA5LjQ1NjA1Qzk2LjYxNTIgOC44ODE4NCA5Ny4xOTYzIDguNTUzNzEgOTguMDc4MSA4LjU1MzcxQzk5LjE3ODcgOC41NTM3MSA5OS43MzI0IDkuMDQ1OSA5OS43MzI0IDkuOTU1MDhWMTAuNjI1TDk3LjYyMDEgMTAuNzU0OUM5NS45MDQzIDEwLjg1NzQgOTQuOTMzNiAxMS42MTYyIDk0LjkzMzYgMTIuOTI4N1YxMi45NDI0Qzk0LjkzMzYgMTQuMjgyMiA5NS45OTMyIDE1LjEyOTkgOTcuMzk0NSAxNS4xMjk5Wk05Ni4xNTA0IDEyLjkxNVYxMi45MDE0Qzk2LjE1MDQgMTIuMTY5OSA5Ni42NDI2IDExLjc3MzQgOTcuNzYzNyAxMS43MDUxTDk5LjczMjQgMTEuNTgyVjEyLjI1MkM5OS43MzI0IDEzLjMwNDcgOTguODUwNiAxNC4wOTc3IDk3LjY0MDYgMTQuMDk3N0M5Ni43ODYxIDE0LjA5NzcgOTYuMTUwNCAxMy42NjAyIDk2LjE1MDQgMTIuOTE1Wk0xMDMuMDk2IDE1SDEwNC4yODVWMTAuNjM4N0MxMDQuMjg1IDkuMzQ2NjggMTA1LjAzIDguNTUzNzEgMTA2LjIwNiA4LjU1MzcxQzEwNy4zODIgOC41NTM3MSAxMDcuOTI5IDkuMTg5NDUgMTA3LjkyOSAxMC41MTU2VjE1SDEwOS4xMThWMTAuMjI4NUMxMDkuMTE4IDguNDc4NTIgMTA4LjE5NSA3LjUwMDk4IDEwNi41NDEgNy41MDA5OEMxMDUuNDU0IDcuNTAwOTggMTA0Ljc2NCA3Ljk1ODk4IDEwNC4zOTUgOC43MzgyOEgxMDQuMjg1VjcuNjMwODZIMTAzLjA5NlYxNVpNMTE0LjMwNyAxNy41OTc3QzExNi4zMTYgMTcuNTk3NyAxMTcuNTg4IDE2LjU0NDkgMTE3LjU4OCAxNC44OTc1VjcuNjMwODZIMTE2LjM5OFY4Ljg0NzY2SDExNi4zMTZDMTE1Ljg2NSA4LjAxMzY3IDExNS4wNTkgNy41MDA5OCAxMTQuMDIgNy41MDA5OEMxMTIuMDkyIDcuNTAwOTggMTEwLjkwMiA4Ljk5ODA1IDExMC45MDIgMTEuMDYyNVYxMS4wNzYyQzExMC45MDIgMTMuMTQwNiAxMTIuMDg1IDE0LjYxNzIgMTEzLjk5MiAxNC42MTcyQzExNS4wMDQgMTQuNjE3MiAxMTUuODM4IDE0LjE1OTIgMTE2LjMwMyAxMy4zNDU3SDExNi40MTJWMTQuODM1OUMxMTYuNDEyIDE1LjkyMjkgMTE1LjYyNiAxNi41NDQ5IDExNC4zMDcgMTYuNTQ0OUMxMTMuMjQ3IDE2LjU0NDkgMTEyLjU5MSAxNi4xNDg0IDExMi40NjEgMTUuNTg3OUwxMTIuNDU0IDE1LjU4MTFIMTExLjIyNEwxMTEuMjEgMTUuNTg3OUMxMTEuMzk1IDE2Ljc5NzkgMTEyLjUyOSAxNy41OTc3IDExNC4zMDcgMTcuNTk3N1pNMTE0LjI1MiAxMy41NjQ1QzExMi44ODUgMTMuNTY0NSAxMTIuMTE5IDEyLjUzOTEgMTEyLjExOSAxMS4wNzYyVjExLjA2MjVDMTEyLjExOSA5LjU5OTYxIDExMi44ODUgOC41NTM3MSAxMTQuMjUyIDguNTUzNzFDMTE1LjYxMiA4LjU1MzcxIDExNi40MzkgOS41OTk2MSAxMTYuNDM5IDExLjA2MjVWMTEuMDc2MkMxMTYuNDM5IDEyLjUzOTEgMTE1LjYxOSAxMy41NjQ1IDExNC4yNTIgMTMuNTY0NVpNMTIyLjgxMSAxNS4xMjk5QzEyNC41NDcgMTUuMTI5OSAxMjUuNiAxNC4xNDU1IDEyNS44NTMgMTMuMTQ3NUwxMjUuODY2IDEzLjA5MjhIMTI0LjY3N0wxMjQuNjQ5IDEzLjE1NDNDMTI0LjQ1MSAxMy41OTg2IDEyMy44MzYgMTQuMDcwMyAxMjIuODM4IDE0LjA3MDNDMTIxLjUyNSAxNC4wNzAzIDEyMC42ODUgMTMuMTgxNiAxMjAuNjUgMTEuNjU3MkgxMjUuOTU1VjExLjE5MjRDMTI1Ljk1NSA4Ljk5MTIxIDEyNC43MzggNy41MDA5OCAxMjIuNzM1IDcuNTAwOThDMTIwLjczMiA3LjUwMDk4IDExOS40MzQgOS4wNTk1NyAxMTkuNDM0IDExLjMzNTlWMTEuMzQyOEMxMTkuNDM0IDEzLjY1MzMgMTIwLjcwNSAxNS4xMjk5IDEyMi44MTEgMTUuMTI5OVpNMTIyLjcyOSA4LjU2MDU1QzEyMy44MTUgOC41NjA1NSAxMjQuNjIyIDkuMjUwOTggMTI0Ljc0NSAxMC43MDdIMTIwLjY3MUMxMjAuODAxIDkuMzA1NjYgMTIxLjYzNSA4LjU2MDU1IDEyMi43MjkgOC41NjA1NVpNMTM1LjQwMiAxNS4xMjk5QzEzNy4yNjkgMTUuMTI5OSAxMzguNDkyIDEzLjYxOTEgMTM4LjQ5MiAxMS4zMjIzVjExLjMwODZDMTM4LjQ5MiA4Ljk5ODA1IDEzNy4yNzUgNy41MDA5OCAxMzUuNDAyIDcuNTAwOThDMTM0LjM5MSA3LjUwMDk4IDEzMy41MDkgOC4wMDY4NCAxMzMuMTA1IDguNzkyOTdIMTMyLjk5NlY0LjcwNTA4SDEzMS44MDdWMTVIMTMyLjk5NlYxMy44MjQySDEzMy4xMDVDMTMzLjU1NyAxNC42NDQ1IDEzNC4zNzcgMTUuMTI5OSAxMzUuNDAyIDE1LjEyOTlaTTEzNS4xMjkgMTQuMDc3MUMxMzMuNzg5IDE0LjA3NzEgMTMyLjk2OSAxMy4wMjQ0IDEzMi45NjkgMTEuMzIyM1YxMS4zMDg2QzEzMi45NjkgOS42MDY0NSAxMzMuNzg5IDguNTUzNzEgMTM1LjEyOSA4LjU1MzcxQzEzNi40NzYgOC41NTM3MSAxMzcuMjc1IDkuNTkyNzcgMTM3LjI3NSAxMS4zMDg2VjExLjMyMjNDMTM3LjI3NSAxMy4wMzgxIDEzNi40NzYgMTQuMDc3MSAxMzUuMTI5IDE0LjA3NzFaTTE0MC40MDYgMTVIMTQxLjU5NlY0LjcwNTA4SDE0MC40MDZWMTVaTTE0Ni45MDcgMTUuMTI5OUMxNDkuMDA2IDE1LjEyOTkgMTUwLjMwNSAxMy42ODA3IDE1MC4zMDUgMTEuMzIyM1YxMS4zMDg2QzE1MC4zMDUgOC45NDMzNiAxNDkuMDA2IDcuNTAwOTggMTQ2LjkwNyA3LjUwMDk4QzE0NC44MDkgNy41MDA5OCAxNDMuNTEgOC45NDMzNiAxNDMuNTEgMTEuMzA4NlYxMS4zMjIzQzE0My41MSAxMy42ODA3IDE0NC44MDkgMTUuMTI5OSAxNDYuOTA3IDE1LjEyOTlaTTE0Ni45MDcgMTQuMDc3MUMxNDUuNTEzIDE0LjA3NzEgMTQ0LjcyNyAxMy4wNTg2IDE0NC43MjcgMTEuMzIyM1YxMS4zMDg2QzE0NC43MjcgOS41NjU0MyAxNDUuNTEzIDguNTUzNzEgMTQ2LjkwNyA4LjU1MzcxQzE0OC4zMDIgOC41NTM3MSAxNDkuMDg4IDkuNTY1NDMgMTQ5LjA4OCAxMS4zMDg2VjExLjMyMjNDMTQ5LjA4OCAxMy4wNTg2IDE0OC4zMDIgMTQuMDc3MSAxNDYuOTA3IDE0LjA3NzFaTTE1NS4xNjUgMTUuMTI5OUMxNTYuOTM2IDE1LjEyOTkgMTU3LjkyNyAxNC4xNzk3IDE1OC4yMjggMTIuODQ2N0wxNTguMjQxIDEyLjc3MTVMMTU3LjA2NSAxMi43NzgzTDE1Ny4wNTIgMTIuODE5M0MxNTYuNzc4IDEzLjYzOTYgMTU2LjE0OSAxNC4wNzcxIDE1NS4xNTggMTQuMDc3MUMxNTMuODQ2IDE0LjA3NzEgMTUyLjk5OCAxMi45OTAyIDE1Mi45OTggMTEuMjk0OVYxMS4yODEyQzE1Mi45OTggOS42MjAxMiAxNTMuODMyIDguNTUzNzEgMTU1LjE1OCA4LjU1MzcxQzE1Ni4yMTggOC41NTM3MSAxNTYuODc0IDkuMTQxNiAxNTcuMDU5IDkuODY2MjFMMTU3LjA2NSA5Ljg4NjcySDE1OC4yNDhMMTU4LjI0MSA5Ljg0NTdDMTU4LjAyMiA4LjUzMzIgMTU2Ljk0OSA3LjUwMDk4IDE1NS4xNTggNy41MDA5OEMxNTMuMDk0IDcuNTAwOTggMTUxLjc4MSA4Ljk5MTIxIDE1MS43ODEgMTEuMjgxMlYxMS4yOTQ5QzE1MS43ODEgMTMuNjMyOCAxNTMuMTAxIDE1LjEyOTkgMTU1LjE2NSAxNS4xMjk5Wk0xNjAuMDUzIDE1SDE2MS4yNDJWMTIuMjA0MUwxNjEuOTMzIDExLjUzNDJMMTY0LjY5NCAxNUgxNjYuMTkxTDE2Mi43NjcgMTAuNzI3NUwxNjUuOTc5IDcuNjMwODZIMTY0LjUzN0wxNjEuMzUyIDEwLjg1MDZIMTYxLjI0MlY0LjcwNTA4SDE2MC4wNTNWMTVaTTE3NC4xNDIgMTUuMDU0N0MxNzQuMzc0IDE1LjA1NDcgMTc0LjYgMTUuMDI3MyAxNzQuODMyIDE0Ljk4NjNWMTMuOTc0NkMxNzQuNjEzIDEzLjk5NTEgMTc0LjQ5NyAxNC4wMDIgMTc0LjI4NSAxNC4wMDJDMTczLjUyIDE0LjAwMiAxNzMuMjE5IDEzLjY1MzMgMTczLjIxOSAxMi43ODUyVjguNjE1MjNIMTc0LjgzMlY3LjYzMDg2SDE3My4yMTlWNS43MjM2M0gxNzEuOTg4VjcuNjMwODZIMTcwLjgyNlY4LjYxNTIzSDE3MS45ODhWMTMuMDg1OUMxNzEuOTg4IDE0LjQ5NDEgMTcyLjYyNCAxNS4wNTQ3IDE3NC4xNDIgMTUuMDU0N1pNMTc3LjIzOCAxNy41ODRDMTc4LjU0NCAxNy41ODQgMTc5LjE1MiAxNy4xMDU1IDE3OS43NjEgMTUuNDUxMkwxODIuNjM5IDcuNjMwODZIMTgxLjM4OEwxNzkuMzcxIDEzLjY5NDNIMTc5LjI2MkwxNzcuMjM4IDcuNjMwODZIMTc1Ljk2N0wxNzguNjk0IDE1LjAwNjhMMTc4LjU1OCAxNS40NDQzQzE3OC4yOTEgMTYuMjkyIDE3Ny44ODEgMTYuNTk5NiAxNzcuMjA0IDE2LjU5OTZDMTc3LjA0IDE2LjU5OTYgMTc2Ljg1NSAxNi41OTI4IDE3Ni43MTIgMTYuNTY1NFYxNy41NDNDMTc2Ljg3NiAxNy41NzAzIDE3Ny4wODEgMTcuNTg0IDE3Ny4yMzggMTcuNTg0Wk0xODQuMjExIDE3LjQ2MDlIMTg1LjRWMTMuODM3OUgxODUuNTFDMTg1LjkxMyAxNC42MjQgMTg2Ljc5NSAxNS4xMjk5IDE4Ny44MDcgMTUuMTI5OUMxODkuNjggMTUuMTI5OSAxOTAuODk2IDEzLjYzMjggMTkwLjg5NiAxMS4zMjIzVjExLjMwODZDMTkwLjg5NiA5LjAxMTcyIDE4OS42NzMgNy41MDA5OCAxODcuODA3IDcuNTAwOThDMTg2Ljc4MSA3LjUwMDk4IDE4NS45NjEgNy45ODYzMyAxODUuNTEgOC44MDY2NEgxODUuNFY3LjYzMDg2SDE4NC4yMTFWMTcuNDYwOVpNMTg3LjUzMyAxNC4wNzcxQzE4Ni4xOTMgMTQuMDc3MSAxODUuMzczIDEzLjAyNDQgMTg1LjM3MyAxMS4zMjIzVjExLjMwODZDMTg1LjM3MyA5LjYwNjQ1IDE4Ni4xOTMgOC41NTM3MSAxODcuNTMzIDguNTUzNzFDMTg4Ljg4IDguNTUzNzEgMTg5LjY4IDkuNTkyNzcgMTg5LjY4IDExLjMwODZWMTEuMzIyM0MxODkuNjggMTMuMDM4MSAxODguODggMTQuMDc3MSAxODcuNTMzIDE0LjA3NzFaTTE5NS43NjQgMTUuMTI5OUMxOTcuNSAxNS4xMjk5IDE5OC41NTMgMTQuMTQ1NSAxOTguODA2IDEzLjE0NzVMMTk4LjgxOSAxMy4wOTI4SDE5Ny42M0wxOTcuNjAzIDEzLjE1NDNDMTk3LjQwNCAxMy41OTg2IDE5Ni43ODkgMTQuMDcwMyAxOTUuNzkxIDE0LjA3MDNDMTk0LjQ3OSAxNC4wNzAzIDE5My42MzggMTMuMTgxNiAxOTMuNjA0IDExLjY1NzJIMTk4LjkwOFYxMS4xOTI0QzE5OC45MDggOC45OTEyMSAxOTcuNjkxIDcuNTAwOTggMTk1LjY4OCA3LjUwMDk4QzE5My42ODYgNy41MDA5OCAxOTIuMzg3IDkuMDU5NTcgMTkyLjM4NyAxMS4zMzU5VjExLjM0MjhDMTkyLjM4NyAxMy42NTMzIDE5My42NTggMTUuMTI5OSAxOTUuNzY0IDE1LjEyOTlaTTE5NS42ODIgOC41NjA1NUMxOTYuNzY5IDguNTYwNTUgMTk3LjU3NSA5LjI1MDk4IDE5Ny42OTggMTAuNzA3SDE5My42MjRDMTkzLjc1NCA5LjMwNTY2IDE5NC41ODggOC41NjA1NSAxOTUuNjgyIDguNTYwNTVaIiBmaWxsPSIjODc5MjlEIi8+Cjwvc3ZnPgo=");\n position: absolute;\n top: -2px;\n height: 0;\n z-index: -1;\n pointer-events: none;\n}\n.neeto-editor {\n max-width: 100% !important;\n border-radius: var(--neeto-ui-rounded);\n white-space: pre-wrap;\n padding: 16px;\n color: rgb(var(--neeto-ui-gray-800));\n background-color: rgb(var(--neeto-ui-white));\n}\n.neeto-editor:focus {\n outline: none;\n}\n.neeto-editor a {\n pointer-events: none;\n}\n.neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor .ProseMirror-separator {\n display: none;\n}\n.neeto-editor.fixed-menu-active {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.neeto-editor.attachments-active {\n border-bottom: none;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n.neeto-editor .is-empty {\n position: relative;\n}\n.neeto-editor.placeholder-active .is-editor-empty:first-child::before {\n content: attr(data-placeholder);\n float: left;\n color: #ced4da;\n pointer-events: none;\n height: 0;\n}\n.neeto-editor hr {\n margin: 8px 0;\n}\n.neeto-editor .ProseMirror-selectednode {\n outline: 3px solid rgb(var(--neeto-ui-pastel-blue));\n}\n.neeto-editor .has-focus {\n background: var(--focus-background-color);\n transition: background-color 200ms ease;\n}\n.neeto-editor-character-count {\n padding: 4px;\n color: rgb(var(--neeto-ui-gray-600));\n font-size: 12px;\n text-align: right;\n}\n.neeto-editor-error {\n color: rgb(var(--neeto-ui-error-500));\n border-width: 1px;\n border-color: rgb(var(--neeto-ui-error-500));\n border-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-error:focus-within {\n border-color: rgb(var(--neeto-ui-error-600));\n}\n.ne_variable-tag {\n border-radius: 6px !important;\n}\n.neeto-editor-content, .neeto-editor {\n white-space: pre-wrap;\n word-break: break-word;\n -moz-tab-size: 2;\n -o-tab-size: 2;\n tab-size: 2;\n}\n.neeto-editor-content h1, .neeto-editor h1,\n.neeto-editor-content h2,\n.neeto-editor h2,\n.neeto-editor-content h3,\n.neeto-editor h3,\n.neeto-editor-content h4,\n.neeto-editor h4,\n.neeto-editor-content h5,\n.neeto-editor h5,\n.neeto-editor-content h6,\n.neeto-editor h6 {\n font-size: revert;\n margin: 0 0 16px 0;\n}\n.neeto-editor-content p, .neeto-editor p {\n line-height: var(--neeto-ui-leading-normal);\n color: rgb(var(--neeto-ui-gray-700));\n margin-bottom: 8px;\n}\n.neeto-editor-content p:empty::after, .neeto-editor p:empty::after {\n content: " ";\n}\n.neeto-editor-content p:last-child, .neeto-editor p:last-child {\n margin-bottom: 0;\n}\n.neeto-editor-content code, .neeto-editor code {\n padding: 2px;\n font-size: 85%;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-200));\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n}\n.neeto-editor-content pre, .neeto-editor pre {\n background-color: #f6f8fa;\n overflow-x: auto;\n font-size: 14px;\n line-height: 20px;\n margin-top: 8px;\n margin-bottom: 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 16px;\n}\n.neeto-editor-content pre > code, .neeto-editor pre > code {\n background-color: transparent;\n border-width: 0;\n border-radius: 0;\n padding: 0;\n font-weight: 400;\n color: inherit;\n font-size: inherit;\n font-family: inherit;\n line-height: inherit;\n}\n.neeto-editor-content blockquote, .neeto-editor blockquote {\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n border-left-width: 4px;\n border-left-color: #e5e7eb;\n quotes: "“" "”" "‘" "’";\n margin: 8px 0;\n padding-left: 12px;\n}\n.neeto-editor-content blockquote > p::before, .neeto-editor blockquote > p::before {\n content: "" !important;\n}\n.neeto-editor-content blockquote > p::after, .neeto-editor blockquote > p::after {\n content: "" !important;\n}\n.neeto-editor-content ul, .neeto-editor ul,\n.neeto-editor-content ol,\n.neeto-editor ol {\n list-style: revert;\n margin: revert;\n padding: revert;\n}\n.neeto-editor-content ul > li > p, .neeto-editor ul > li > p,\n.neeto-editor-content ol > li > p,\n.neeto-editor ol > li > p {\n margin-top: 0 !important;\n margin-bottom: 0.375rem !important;\n}\n.neeto-editor-content ul li::before, .neeto-editor ul li::before,\n.neeto-editor-content ol li::before,\n.neeto-editor ol li::before {\n background-color: rgb(var(--neeto-ui-black));\n}\n.neeto-editor-content a[href], .neeto-editor a[href] {\n color: rgb(var(--neeto-ui-primary-800));\n font-weight: 500;\n}\n.neeto-editor-content .video-wrapper, .neeto-editor .video-wrapper {\n width: 560px;\n height: 315px;\n margin: auto;\n}\n.neeto-editor-content mark, .neeto-editor mark {\n background: rgb(var(--neeto-ui-pastel-green));\n border-radius: var(--neeto-ui-rounded-sm);\n padding: 0px 4px;\n color: inherit;\n}\n.neeto-editor-content [data-variable], .neeto-editor [data-variable] {\n display: inline-flex;\n color: rgb(var(--neeto-ui-gray-700));\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n padding: 4px 6px;\n}\n.neeto-editor-content [data-type=mention], .neeto-editor [data-type=mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content [data-type=special-mention], .neeto-editor [data-type=special-mention] {\n color: rgb(var(--neeto-ui-primary-800));\n}\n.neeto-editor-content table, .neeto-editor table {\n overflow: hidden;\n border: 1px solid rgba(var(--neeto-ui-gray-300));\n border-collapse: separate;\n border-radius: var(--neeto-ui-rounded-sm);\n border-spacing: 0;\n table-layout: fixed;\n min-width: 300px;\n}\n.neeto-editor-content table th, .neeto-editor table th,\n.neeto-editor-content table td,\n.neeto-editor table td {\n border-left: 1px solid rgba(var(--neeto-ui-gray-300));\n border-top: 1px solid rgba(var(--neeto-ui-gray-300));\n padding: 8px 12px;\n position: relative;\n}\n.neeto-editor-content table td:first-child, .neeto-editor table td:first-child,\n.neeto-editor-content table th:first-child,\n.neeto-editor table th:first-child {\n border-left: none;\n}\n.neeto-editor-content table th, .neeto-editor table th {\n background: rgb(var(--neeto-ui-gray-100));\n border-top: none;\n}\n.neeto-editor-content table td, .neeto-editor table td {\n background: rgb(var(--neeto-ui-white));\n}\n.neeto-editor-content--hidden {\n display: none;\n}\n.neeto-editor__image-wrapper {\n display: flex;\n color: unset !important;\n font-weight: normal !important;\n}\n.neeto-editor__image-wrapper figure {\n position: relative;\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image {\n display: inline-block;\n}\n.neeto-editor__image-wrapper .neeto-editor__image img,\n.neeto-editor__image-wrapper .neeto-editor__image video {\n display: inline-block;\n height: 100%;\n border: 2px solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-lg);\n padding: 4px;\n}\n.neeto-editor__image-wrapper figcaption {\n margin-top: 4px;\n text-align: center;\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-normal);\n}\n.neeto-editor__image-wrapper figcaption a {\n display: inline-block;\n text-align: center;\n}\n.neeto-editor__image-wrapper figcaption.is-empty div:before {\n position: absolute;\n inset: 0;\n content: "Add a caption";\n color: rgb(var(--neeto-ui-gray-500));\n}\n.neeto-editor__image--left {\n justify-content: flex-start;\n}\n.neeto-editor__image--center {\n justify-content: center;\n}\n.neeto-editor__image--right {\n justify-content: flex-end;\n}\n.neeto-editor-fixed-menu {\n border: thin solid rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded) var(--neeto-ui-rounded) 0px 0px;\n border-bottom: none;\n background-color: rgb(var(--neeto-ui-white));\n position: relative;\n}\n.neeto-editor-fixed-menu--independant {\n border-radius: unset;\n border-bottom: thin solid rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-fixed-menu__item {\n border-radius: var(--neeto-ui-rounded-sm) !important;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item {\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-fixed-menu button.neeto-editor-fixed-menu__item .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor-fixed-menu__wrapper {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n overflow: auto;\n width: 100%;\n padding: 2px;\n gap: 0 4px;\n}\n.neeto-editor-fixed-menu__variables {\n position: absolute;\n right: 8px;\n bottom: -24px;\n z-index: 10;\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item {\n padding: 4px;\n border-radius: var(--neeto-ui-rounded-sm);\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-fixed-menu__variables .neeto-editor-menu__item:hover, .neeto-editor-fixed-menu__variables .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-700));\n}\n.neeto-editor-fixed-menu__right-options {\n display: flex;\n justify-self: flex-end;\n margin-left: auto;\n}\n.neeto-editor-fixed-menu__emoji-dropdown {\n max-height: unset !important;\n}\n.neeto-editor-fixed-menu__separator {\n display: flex;\n height: 28px;\n width: 32px;\n}\n.neeto-editor-fixed-menu__separator span {\n width: 100%;\n}\n.neeto-editor-fixed-menu__separator span:first-child {\n border-right: 1px solid rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 4px;\n align-items: center;\n padding: 8px;\n cursor: pointer;\n transition: var(--neeto-ui-transition);\n border-radius: 2px;\n}\n.neeto-editor-menu__item p {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-xs);\n line-height: 1;\n white-space: nowrap;\n}\n.neeto-editor-menu__item:hover, .neeto-editor-menu__item.active {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-menu__item:focus, .neeto-editor-menu__item:focus-visible {\n outline: rgb(var(--neeto-ui-gray-300)) auto 1px;\n}\n.neeto-editor-menu__item input[type=color] {\n visibility: hidden;\n height: 0;\n width: 0;\n}\n.neeto-editor-menu__item:disabled {\n opacity: 0.5;\n background-color: rgb(var(--neeto-ui-gray-100));\n}\n.neeto-editor-variables-suggestion {\n padding: 4px 0;\n}\n.neeto-editor-variables-list {\n padding: 4px 8px;\n min-width: 184px;\n max-width: 360px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block:not(:last-child) {\n margin-bottom: 12px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block h6 {\n font-size: var(--neeto-ui-text-xs);\n font-weight: var(--neeto-ui-font-medium);\n color: rgb(var(--neeto-ui-black));\n margin-bottom: 10px;\n margin-right: 0px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row button {\n border: solid 1px rgb(var(--neeto-ui-gray-300));\n border-radius: var(--neeto-ui-rounded-md);\n color: rgb(var(--neeto-ui-black));\n padding: 6px;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row button:focus-visible,\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row button:focus,\n.neeto-editor-variables-list .neeto-editor-variables-block .neeto-editor-variables-row button:hover {\n color: rgb(var(--neeto-ui-primary-800));\n border-color: rgb(var(--neeto-ui-primary-800));\n outline: none;\n box-shadow: none;\n}\n.neeto-editor-link__item {\n display: flex !important;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-table__item {\n display: flex !important;\n flex-direction: row;\n gap: 8px;\n padding: 8px !important;\n}\n.neeto-editor-table__item input {\n max-width: 60px !important;\n}\n.neeto-editor-table__options-menu {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 8px !important;\n max-height: 150px !important;\n overflow: scroll;\n}\n.neeto-editor-font-size__wrapper {\n font-weight: var(--neeto-ui-font-normal) !important;\n padding: 8px !important;\n}\n.neeto-editor-bubble-menu {\n position: relative;\n display: flex;\n gap: 1px;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n border-radius: var(--neeto-ui-rounded);\n background: rgb(var(--neeto-ui-gray-800));\n padding: 0 4px;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text {\n color: rgb(var(--neeto-ui-gray-200));\n min-width: -moz-fit-content;\n min-width: fit-content;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-text:hover, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text:active, .neeto-editor-bubble-menu button.neeto-ui-btn--style-text.active {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu button.neeto-ui-btn--style-secondary {\n min-width: -moz-fit-content;\n min-width: fit-content;\n background-color: rgb(var(--neeto-ui-gray-400));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup {\n background-color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn {\n color: rgb(var(--neeto-ui-gray-200)) !important;\n}\n.neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:hover, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn:active, .neeto-editor-bubble-menu .neeto-ui-dropdown__popup-menu-item-btn.active {\n background-color: rgb(var(--neeto-ui-gray-600)) !important;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 6px;\n gap: 8px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input {\n background-color: transparent;\n outline: none;\n line-height: 20px;\n width: 100%;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .neeto-editor-bubble-menu-link__input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only {\n padding: 0;\n min-height: 0;\n opacity: 0.8;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__link .ne-btn--icon-only:hover {\n opacity: 1;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table {\n width: 256px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 4px;\n gap: 6px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input {\n background-color: rgba(var(--neeto-ui-gray-400), 0.2);\n outline: none;\n line-height: 20px;\n width: 60px;\n height: 24px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::-moz-placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table input::placeholder {\n color: rgba(var(--neeto-ui-white, 0.4));\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__table_buttons {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown-target {\n display: flex;\n align-items: center;\n gap: 4px;\n white-space: nowrap;\n font-size: var(--neeto-ui-text-xs);\n line-height: var(--neeto-ui-leading-normal);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item {\n width: 100%;\n text-align: left;\n padding: 8px 12px;\n font-size: var(--neeto-ui-text-xs);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:first-child {\n border-top-left-radius: var(--neeto-ui-rounded);\n border-top-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu .neeto-editor-bubble-menu__dropdown .neeto-editor-bubble-menu__dropdown-item:last-child {\n border-bottom-left-radius: var(--neeto-ui-rounded);\n border-bottom-right-radius: var(--neeto-ui-rounded);\n}\n.neeto-editor-bubble-menu-animate-shake {\n animation: 1s linear infinite alternate both shake;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup {\n display: flex;\n min-width: unset;\n}\n.neeto-editor__image-menu .neeto-ui-dropdown__popup .neeto-ui-btn .neeto-ui-btn__icon {\n height: 18px !important;\n width: 18px !important;\n}\n.neeto-editor__image-menu-btn {\n position: absolute !important;\n top: 4px;\n right: 4px;\n z-index: 1;\n padding: 2px !important;\n}\n.ne-media-uploader {\n display: flex;\n flex-direction: column;\n min-height: 184px;\n}\n.ne-media-uploader .ne-tab__wrapper .ne-tab {\n min-width: 88px;\n}\n.ne-media-uploader .ne-media-uploader__content {\n flex-grow: 1;\n display: flex;\n padding: 16px;\n}\n.ne-media-uploader .ne-media-uploader__progress {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n text-align: center;\n}\n.ne-media-uploader .ne-media-uploader__progress-title, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-label {\n color: rgb(var(--neeto-ui-gray-700));\n font-size: var(--neeto-ui-text-sm);\n margin-bottom: 4px;\n}\n.ne-media-uploader .ne-media-uploader__progress-file, .ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-note {\n color: rgb(var(--neeto-ui-gray-400));\n font-size: var(--neeto-ui-text-xs);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n border: 1px dashed rgb(var(--neeto-ui-gray-400));\n box-sizing: border-box;\n border-radius: var(--neeto-ui-rounded);\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root {\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-white));\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-Root::-moz-focus-inner {\n border: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-inner {\n display: flex;\n flex-direction: column;\n justify-content: center;\n line-height: 1.4;\n text-align: center;\n font-weight: var(--neeto-ui-font-normal);\n margin: 0;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-arrow {\n visibility: hidden;\n display: none;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop--isDraggingOver {\n background-color: rgb(var(--neeto-ui-gray-200));\n border: 2px dashed rgb(var(--neeto-ui-primary-500));\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd .uppy-DragDrop-browse {\n color: rgb(var(--neeto-ui-primary-500));\n font-size: var(--neeto-ui-text-sm);\n font-weight: var(--neeto-ui-font-semibold);\n cursor: pointer;\n}\n.ne-media-uploader .ne-media-uploader__dnd-wrapper .ne-media-uploader__dnd--error {\n color: rgb(var(--neeto-ui-error));\n font-size: var(--neeto-ui-text-xs);\n margin-top: 12px;\n text-align: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper {\n width: 100%;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-container {\n max-height: 50vh;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-search {\n padding: 0px 8px;\n margin-bottom: 16px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery {\n width: 100%;\n right: -8px;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__loader {\n display: flex;\n justify-content: center;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item {\n width: 33.3%;\n padding-right: 16px;\n padding-bottom: 16px;\n float: left;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder {\n width: 100%;\n position: relative;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner {\n position: absolute;\n width: 100%;\n height: 100%;\n background-color: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner img {\n height: 100%;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover;\n animation: fade-in 1.2s 1s cubic-bezier(0.39, 0.575, 0.565, 1) both;\n border-radius: var(--neeto-ui-rounded);\n position: relative;\n cursor: pointer;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a {\n opacity: 0;\n position: absolute;\n left: 8px;\n bottom: 8px;\n margin: auto;\n color: rgb(var(--neeto-ui-white));\n font-size: 12px;\n font-weight: var(--neeto-ui-font-normal);\n line-height: 1;\n text-transform: capitalize;\n transition: var(--neeto-ui-transition);\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner a:hover {\n text-decoration: underline;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__item-placeholder .neeto-editor-unsplash-gallery__item-inner:hover a {\n opacity: 1;\n}\n.ne-media-uploader .neeto-editor-unsplash-wrapper .neeto-editor-unsplash-gallery__text {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n text-align: center;\n margin-top: 12px;\n}\n.neeto-editor-progress-bar__wrapper {\n width: 100%;\n max-width: 256px;\n margin-top: 10px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__percent p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator {\n position: relative;\n width: 100%;\n height: 6px;\n border-radius: var(--neeto-ui-rounded-full);\n overflow: hidden;\n background-color: rgba(var(--neeto-ui-primary-500), 0.2);\n margin-top: 4px;\n}\n.neeto-editor-progress-bar__wrapper .neeto-editor-progress-bar__indicator-inner {\n height: 100%;\n background-color: rgb(var(--neeto-ui-primary-500));\n}\n.neeto-editor-url-form__wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n padding: 0 24px;\n}\n.neeto-editor-url-form__wrapper .neeto-ui-input__wrapper {\n width: 100%;\n flex-grow: 0;\n margin-bottom: 16px;\n}\n.neeto-editor-emoji {\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.emoji-mart.emoji-mart-light {\n font-size: 14px;\n color: rgb(var(--neeto-ui-gray-800));\n border: none;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor {\n color: rgb(var(--neeto-ui-gray-500));\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor svg {\n margin: auto;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor .emoji-mart-anchor-bar {\n background-color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-bar .emoji-mart-anchors .emoji-mart-anchor.emoji-mart-anchor-selected {\n color: rgb(var(--neeto-ui-gray-800)) !important;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-search input {\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-category-label span {\n padding-top: 8px;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji span {\n cursor: pointer;\n}\n.emoji-mart.emoji-mart-light .emoji-mart-category .emoji-mart-emoji:hover::before {\n background-color: rgb(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n}\n.emoji-mart.emoji-mart-light .emoji-mart-scroll {\n height: 264px;\n padding-bottom: 0px;\n}\n.neeto-editor-emoji-suggestion {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n padding: 4px;\n gap: 2px;\n font-family: apple color emoji, segoe ui emoji, noto color emoji, android emoji, emojisymbols, emojione mozilla, twemoji mozilla, segoe ui symbol;\n}\n.neeto-editor-emoji-suggestion p {\n font-size: var(--neeto-ui-text-xs);\n color: rgb(var(--neeto-ui-gray-800));\n}\n.neeto-editor-emoji-suggestion span {\n height: 16px !important;\n width: 16px !important;\n font-size: 10px;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item {\n padding: 6px;\n font-size: var(--neeto-ui-text-2xl);\n transition: var(--neeto-ui-transition);\n border-radius: var(--neeto-ui-rounded-sm);\n line-height: 1;\n cursor: pointer;\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item:hover {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.neeto-editor-emoji-suggestion .neeto-editor-emoji-suggestion__item--selected {\n background-color: rgb(var(--neeto-ui-gray-200));\n}\n.ne-media-editor {\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1.25rem;\n}\n.ne-media-editor button {\n margin-right: auto;\n}\n.ne-media-editor img,\n.ne-media-editor video {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-height: 208px;\n max-height: 400px;\n height: -moz-fit-content;\n height: fit-content;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.ne-media-editor__error {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 288px;\n max-height: 400px;\n width: 100%;\n padding: 24px;\n background: rgb(var(--neeto-ui-gray-100));\n border-radius: var(--neeto-ui-rounded-sm);\n gap: 8px;\n}\n.ne-media-editor__error h2 {\n font-size: var(--neeto-ui-text-lg);\n font-weight: var(--neeto-ui-font-medium);\n}\n.ne-media-editor .neeto-ui-input__wrapper {\n width: 100%;\n}\n.ne-media-editor .ne-media-editor__footer {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 0.5rem;\n}\n.ne-media-editor .ne-media-editor__footer button {\n margin-right: 0;\n}\n.neeto-editor-table {\n display: relative;\n width: -moz-fit-content;\n width: fit-content;\n}\n.neeto-editor-table table th p,\n.neeto-editor-table table td p {\n margin: 0;\n}\n.neeto-editor-table table .column-resize-handle {\n position: absolute;\n top: 0;\n bottom: 0px;\n right: -2px;\n width: 4px;\n background-color: rgb(var(--neeto-ui-gray-300));\n}\n.neeto-editor-table table .selectedCell:after {\n position: absolute;\n inset: 0;\n content: "";\n background: rgba(var(--neeto-ui-primary-500), 0.1);\n}\n.neeto-editor-table__wrapper {\n display: flex;\n gap: 4px;\n}\n.neeto-editor-table__add-row, .neeto-editor-table__add-column {\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(var(--neeto-ui-gray-200));\n border-radius: var(--neeto-ui-rounded-sm);\n transition: var(--neeto-ui-transition);\n cursor: pointer;\n}\n.neeto-editor-table__add-row p, .neeto-editor-table__add-column p {\n background: white;\n color: rgb(var(--neeto-ui-gray-800));\n font-size: var(--neeto-ui-text-xl);\n line-height: 16px;\n padding: 4px;\n}\n.neeto-editor-table__add-row:hover, .neeto-editor-table__add-column:hover {\n background: rgba(var(--neeto-ui-gray-300));\n}\n.neeto-editor-table__add-row {\n margin: 4px 20px 4px 0;\n height: 16px;\n}\n.neeto-editor-table__add-column {\n flex-direction: column;\n width: 16px;\n}\n.ProseMirror.resize-cursor {\n cursor: col-resize;\n}\n.ne-attachments {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n.ne-attachments__items {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n}\n.ne-attachments__attachment {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 2px 4px 8px;\n border-radius: var(--neeto-ui-rounded-sm);\n border: 1px solid rgb(var(--neeto-ui-gray-200));\n background-color: rgb(var(--neeto-ui-white));\n width: 256px;\n}\n.ne-attachments__attachment-file-icon {\n height: auto;\n width: 15px;\n}\n.ne-attachments__attachment__progress {\n display: flex;\n opacity: 0.5;\n justify-content: space-between;\n width: 76%;\n}\n.ne-attachments__attachment__progress p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n}\n.ne-attachments__attachment__progress p:nth-child(2) {\n width: -moz-fit-content;\n width: fit-content;\n}\n.ne-attachments__attachment__progress-icon {\n width: 15px;\n height: auto;\n}\n.ne-attachments__attachment p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n width: 75%;\n}\n.ne-attachments input[type=file] {\n display: none;\n}\n.ne-attachments--integrated {\n padding: 0px 6px;\n border: 1px solid rgb(var(--neeto-ui-gray-300));\n border-top: none;\n border-radius: 0px 0px var(--neeto-ui-rounded) var(--neeto-ui-rounded);\n}\n.ne-attachments__wrapper {\n position: relative;\n}\n.ne-attachments__wrapper.uppy-is-drag-over::after {\n position: absolute;\n inset: 7px;\n border-radius: 5px;\n background-color: rgba(var(--neeto-ui-gray-300), 0.5);\n border: 3px dashed rgb(var(--neeto-ui-gray-500));\n color: rgb(var(--neeto-ui-gray-700));\n content: "Drop the file here";\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.2rem;\n font-weight: bold;\n}\n.ProseMirror {\n overflow-y: auto;\n height: 100%;\n white-space: break-spaces;\n}\n.ProseMirror:focus {\n outline: none;\n}',{});const sP=(e,t)=>{let{name:n,...r}=e;return c.createElement(De,{name:n},(e=>{let{field:i,form:o,meta:s}=e;return c.createElement(oP,hv({error:s.touched?s.error:"",initialValue:i.value,ref:t,onBlur:()=>o.setFieldTouched(n,!0),onChange:e=>o.setFieldValue(n,e)},r))}))};var aP=g(sP);
43
43
  /*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */function lP(e){return lP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lP(e)}function cP(e,t){return cP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cP(e,t)}function uP(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function dP(e,t,n){return dP=uP()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&cP(i,n.prototype),i},dP.apply(null,arguments)}function pP(e){return function(e){if(Array.isArray(e))return hP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return hP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hP(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fP=Object.hasOwnProperty,mP=Object.setPrototypeOf,gP=Object.isFrozen,bP=Object.getPrototypeOf,yP=Object.getOwnPropertyDescriptor,vP=Object.freeze,wP=Object.seal,_P=Object.create,xP="undefined"!=typeof Reflect&&Reflect,kP=xP.apply,EP=xP.construct;kP||(kP=function(e,t,n){return e.apply(t,n)}),vP||(vP=function(e){return e}),wP||(wP=function(e){return e}),EP||(EP=function(e,t){return dP(e,pP(t))});var MP,CP=RP(Array.prototype.forEach),DP=RP(Array.prototype.pop),SP=RP(Array.prototype.push),AP=RP(String.prototype.toLowerCase),NP=RP(String.prototype.match),OP=RP(String.prototype.replace),TP=RP(String.prototype.indexOf),IP=RP(String.prototype.trim),LP=RP(RegExp.prototype.test),jP=(MP=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return EP(MP,t)});function RP(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return kP(e,t,r)}}function zP(e,t,n){n=n||AP,mP&&mP(e,null);for(var r=t.length;r--;){var i=t[r];if("string"==typeof i){var o=n(i);o!==i&&(gP(t)||(t[r]=o),i=o)}e[i]=!0}return e}function FP(e){var t,n=_P(null);for(t in e)kP(fP,e,[t])&&(n[t]=e[t]);return n}function PP(e,t){for(;null!==e;){var n=yP(e,t);if(n){if(n.get)return RP(n.get);if("function"==typeof n.value)return RP(n.value)}e=bP(e)}return function(e){return console.warn("fallback value for",e),null}}var BP=vP(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),UP=vP(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),HP=vP(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$P=vP(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),VP=vP(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),WP=vP(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qP=vP(["#text"]),KP=vP(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),GP=vP(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),YP=vP(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),QP=vP(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),JP=wP(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ZP=wP(/<%[\w\W]*|[\w\W]*%>/gm),XP=wP(/^data-[\-\w.\u00B7-\uFFFF]/),eB=wP(/^aria-[\-\w]+$/),tB=wP(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nB=wP(/^(?:\w+script|data):/i),rB=wP(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),iB=wP(/^html$/i),oB=function(){return"undefined"==typeof window?null:window},sB=function(e,t){if("object"!==lP(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var aB=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oB(),n=function(t){return e(t)};if(n.version="2.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,i=t.document,o=t.DocumentFragment,s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,d=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,p=t.HTMLFormElement,h=t.DOMParser,f=t.trustedTypes,m=l.prototype,g=PP(m,"cloneNode"),b=PP(m,"nextSibling"),y=PP(m,"childNodes"),v=PP(m,"parentNode");if("function"==typeof s){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var _=sB(f,r),x=_?_.createHTML(""):"",k=i,E=k.implementation,M=k.createNodeIterator,C=k.createDocumentFragment,D=k.getElementsByTagName,S=r.importNode,A={};try{A=FP(i).documentMode?i.documentMode:{}}catch(e){}var N={};n.isSupported="function"==typeof v&&E&&void 0!==E.createHTMLDocument&&9!==A;var O,T,I=JP,L=ZP,j=XP,R=eB,z=nB,F=rB,P=tB,B=null,U=zP({},[].concat(pP(BP),pP(UP),pP(HP),pP(VP),pP(qP))),H=null,$=zP({},[].concat(pP(KP),pP(GP),pP(YP),pP(QP))),V=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,q=null,K=!0,G=!0,Y=!1,Q=!1,J=!1,Z=!1,X=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,oe="user-content-",se=!0,ae=!1,le={},ce=null,ue=zP({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),de=null,pe=zP({},["audio","video","img","source","image","track"]),he=null,fe=zP({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml",ye=be,ve=!1,we=["application/xhtml+xml","text/html"],_e="text/html",xe=null,ke=i.createElement("form"),Ee=function(e){return e instanceof RegExp||e instanceof Function},Me=function(e){xe&&xe===e||(e&&"object"===lP(e)||(e={}),e=FP(e),O=O=-1===we.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,T="application/xhtml+xml"===O?function(e){return e}:AP,B="ALLOWED_TAGS"in e?zP({},e.ALLOWED_TAGS,T):U,H="ALLOWED_ATTR"in e?zP({},e.ALLOWED_ATTR,T):$,he="ADD_URI_SAFE_ATTR"in e?zP(FP(fe),e.ADD_URI_SAFE_ATTR,T):fe,de="ADD_DATA_URI_TAGS"in e?zP(FP(pe),e.ADD_DATA_URI_TAGS,T):pe,ce="FORBID_CONTENTS"in e?zP({},e.FORBID_CONTENTS,T):ue,W="FORBID_TAGS"in e?zP({},e.FORBID_TAGS,T):{},q="FORBID_ATTR"in e?zP({},e.FORBID_ATTR,T):{},le="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,Y=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,J=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,P=e.ALLOWED_URI_REGEXP||P,ye=e.NAMESPACE||be,e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ee(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(G=!1),te&&(ee=!0),le&&(B=zP({},pP(qP)),H=[],!0===le.html&&(zP(B,BP),zP(H,KP)),!0===le.svg&&(zP(B,UP),zP(H,GP),zP(H,QP)),!0===le.svgFilters&&(zP(B,HP),zP(H,GP),zP(H,QP)),!0===le.mathMl&&(zP(B,VP),zP(H,YP),zP(H,QP))),e.ADD_TAGS&&(B===U&&(B=FP(B)),zP(B,e.ADD_TAGS,T)),e.ADD_ATTR&&(H===$&&(H=FP(H)),zP(H,e.ADD_ATTR,T)),e.ADD_URI_SAFE_ATTR&&zP(he,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(ce===ue&&(ce=FP(ce)),zP(ce,e.FORBID_CONTENTS,T)),se&&(B["#text"]=!0),J&&zP(B,["html","head","body"]),B.table&&(zP(B,["tbody"]),delete W.tbody),vP&&vP(e),xe=e)},Ce=zP({},["mi","mo","mn","ms","mtext"]),De=zP({},["foreignobject","desc","title","annotation-xml"]),Se=zP({},["title","style","font","a","script"]),Ae=zP({},UP);zP(Ae,HP),zP(Ae,$P);var Ne=zP({},VP);zP(Ne,WP);var Oe=function(e){var t=v(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});var n=AP(e.tagName),r=AP(t.tagName);return e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ce[r]):Boolean(Ae[n]):e.namespaceURI===me?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&De[r]:Boolean(Ne[n]):e.namespaceURI===be&&(!(t.namespaceURI===ge&&!De[r])&&(!(t.namespaceURI===me&&!Ce[r])&&(!Ne[n]&&(Se[n]||!Ae[n]))))},Te=function(e){SP(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=x}catch(t){e.remove()}}},Ie=function(e,t){try{SP(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){SP(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Te(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t,n;if(X)e="<remove></remove>"+e;else{var r=NP(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===O&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=_?_.createHTML(e):e;if(ye===be)try{t=(new h).parseFromString(o,O)}catch(e){}if(!t||!t.documentElement){t=E.createDocument(ye,"template",null);try{t.documentElement.innerHTML=ve?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),ye===be?D.call(t,J?"html":"body")[0]:J?t.documentElement:s},je=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Re=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},ze=function(e){return"object"===lP(a)?e instanceof a:e&&"object"===lP(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Fe=function(e,t,r){N[e]&&CP(N[e],(function(e){e.call(n,t,r,xe)}))},Pe=function(e){var t;if(Fe("beforeSanitizeElements",e,null),Re(e))return Te(e),!0;if(LP(/[\u0080-\uFFFF]/,e.nodeName))return Te(e),!0;var r=T(e.nodeName);if(Fe("uponSanitizeElement",e,{tagName:r,allowedTags:B}),e.hasChildNodes()&&!ze(e.firstElementChild)&&(!ze(e.content)||!ze(e.content.firstElementChild))&&LP(/<[/\w]/g,e.innerHTML)&&LP(/<[/\w]/g,e.textContent))return Te(e),!0;if("select"===r&&LP(/<template/i,e.innerHTML))return Te(e),!0;if(!B[r]||W[r]){if(!W[r]&&Ue(r)){if(V.tagNameCheck instanceof RegExp&&LP(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(se&&!ce[r]){var i=v(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(g(o[s],!0),b(e))}return Te(e),!0}return e instanceof l&&!Oe(e)?(Te(e),!0):"noscript"!==r&&"noembed"!==r||!LP(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=OP(t,I," "),t=OP(t,L," "),e.textContent!==t&&(SP(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe("afterSanitizeElements",e,null),!1):(Te(e),!0)},Be=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in i||n in ke))return!1;if(G&&!q[t]&&LP(j,t));else if(K&&LP(R,t));else if(!H[t]||q[t]){if(!(Ue(e)&&(V.tagNameCheck instanceof RegExp&&LP(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&LP(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&LP(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(he[t]);else if(LP(P,OP(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==TP(n,"data:")||!de[e]){if(Y&&!LP(z,OP(n,F,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},He=function(e){var t,r,i,o;Fe("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(o=s.length;o--;){var l=t=s[o],c=l.name,u=l.namespaceURI;if(r="value"===c?t.value:IP(t.value),i=T(c),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,Fe("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Ie(c,e),a.keepAttr))if(LP(/\/>/i,r))Ie(c,e);else{Q&&(r=OP(r,I," "),r=OP(r,L," "));var d=T(e.nodeName);if(Be(d,i,r)){if(!ie||"id"!==i&&"name"!==i||(Ie(c,e),r=oe+r),_&&"object"===lP(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(d,i)){case"TrustedHTML":r=_.createHTML(r);break;case"TrustedScriptURL":r=_.createScriptURL(r)}try{u?e.setAttributeNS(u,c,r):e.setAttribute(c,r),DP(n.removed)}catch(e){}}}}Fe("afterSanitizeAttributes",e,null)}},$e=function e(t){var n,r=je(t);for(Fe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Fe("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof o&&e(n.content),He(n));Fe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){var i,s,l,c,u,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ve=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ze(e)){if("function"!=typeof e.toString)throw jP("toString is not a function");if("string"!=typeof(e=e.toString()))throw jP("dirty is not a string, aborting")}if(!n.isSupported){if("object"===lP(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(ze(e))return t.toStaticHTML(e.outerHTML)}return e}if(Z||Me(d),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){var p=T(e.nodeName);if(!B[p]||W[p])throw jP("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(s=(i=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!ee&&!Q&&!J&&-1===e.indexOf("<"))return _&&ne?_.createHTML(e):e;if(!(i=Le(e)))return ee?null:ne?x:""}i&&X&&Te(i.firstChild);for(var h=je(ae?e:i);l=h.nextNode();)3===l.nodeType&&l===c||Pe(l)||(l.content instanceof o&&$e(l.content),He(l),c=l);if(c=null,ae)return e;if(ee){if(te)for(u=C.call(i.ownerDocument);i.firstChild;)u.appendChild(i.firstChild);else u=i;return H.shadowroot&&(u=S.call(r,u,!0)),u}var f=J?i.outerHTML:i.innerHTML;return J&&B["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&LP(iB,i.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+f),Q&&(f=OP(f,I," "),f=OP(f,L," ")),_&&ne?_.createHTML(f):f},n.setConfig=function(e){Me(e),Z=!0},n.clearConfig=function(){xe=null,Z=!1},n.isValidAttribute=function(e,t,n){xe||Me({});var r=T(e),i=T(t);return Be(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],SP(N[e],t))},n.removeHook=function(e){if(N[e])return DP(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const lB=e=>{let{content:t="",variables:n=[],className:r,...i}=e;const o=is((e=>e.replace(ts,((e,t)=>{const n=Zo.highlightAuto(t.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")).children.map(rs);return`<pre><code>${v(n)}</code></pre>`})))(t),n),s=aB.sanitize;return c.createElement("div",hv({"data-cy":"neeto-editor-content",className:gl(Xo,{[r]:r}),dangerouslySetInnerHTML:{__html:s(o,es)}},i))};var cB;cB={translationResources:{en:{translation:Ya}}},Ea.use(za).init({resources:x({en:{translation:Ya}},cB),lng:"en",fallbackLng:"en",interpolation:{escapeValue:!1,skipOnVariables:!1}});export{gw as Attachments,oP as Editor,lB as EditorContent,aP as FormikEditor,rP as Menu,cs as isEditorEmpty,fr as isEditorOverlaysActive,is as substituteVariables};