UNPKG

@etsoo/editor

Version:

ETSOO Free WYSIWYG HTML Editor

1 lines 176 kB
(()=>{var t,e,n,i,o={142:(t,e,n)=>{t=n.nmd(t);var i="__lodash_hash_undefined__",o=9007199254740991,r="[object Arguments]",s="[object Array]",l="[object Boolean]",a="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",f="[object Promise]",g="[object RegExp]",m="[object Set]",b="[object String]",v="[object Symbol]",y="[object WeakMap]",C="[object ArrayBuffer]",w="[object DataView]",H=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,L={};L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L[r]=L[s]=L[C]=L[l]=L[w]=L[a]=L[c]=L[u]=L[d]=L[h]=L[p]=L[g]=L[m]=L[b]=L[y]=!1;var x="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,V="object"==typeof self&&self&&self.Object===Object&&self,A=x||V||Function("return this")(),M=e&&!e.nodeType&&e,E=M&&t&&!t.nodeType&&t,k=E&&E.exports===M,$=k&&x.process,T=function(){try{return $&&$.binding&&$.binding("util")}catch(t){}}(),j=T&&T.isTypedArray;function R(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function F(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function B(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var N,O,P,D=Array.prototype,I=Function.prototype,_=Object.prototype,q=A["__core-js_shared__"],z=I.toString,Z=_.hasOwnProperty,W=(N=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||""))?"Symbol(src)_1."+N:"",K=_.toString,U=RegExp("^"+z.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=k?A.Buffer:void 0,Y=A.Symbol,X=A.Uint8Array,J=_.propertyIsEnumerable,Q=D.splice,tt=Y?Y.toStringTag:void 0,et=Object.getOwnPropertySymbols,nt=G?G.isBuffer:void 0,it=(O=Object.keys,P=Object,function(t){return O(P(t))}),ot=Tt(A,"DataView"),rt=Tt(A,"Map"),st=Tt(A,"Promise"),lt=Tt(A,"Set"),at=Tt(A,"WeakMap"),ct=Tt(Object,"create"),ut=Bt(ot),dt=Bt(rt),ht=Bt(st),pt=Bt(lt),ft=Bt(at),gt=Y?Y.prototype:void 0,mt=gt?gt.valueOf:void 0;function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function yt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ct(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new yt;++e<n;)this.add(t[e])}function wt(t){var e=this.__data__=new vt(t);this.size=e.size}function Ht(t,e){var n=Pt(t),i=!n&&Ot(t),o=!n&&!i&&Dt(t),r=!n&&!i&&!o&&Zt(t),s=n||i||o||r,l=s?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],a=l.length;for(var c in t)!e&&!Z.call(t,c)||s&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ft(c,a))||l.push(c);return l}function St(t,e){for(var n=t.length;n--;)if(Nt(t[n][0],e))return n;return-1}function Lt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":tt&&tt in Object(t)?function(t){var e=Z.call(t,tt),n=t[tt];try{t[tt]=void 0;var i=!0}catch(t){}var o=K.call(t);i&&(e?t[tt]=n:delete t[tt]);return o}(t):function(t){return K.call(t)}(t)}function xt(t){return zt(t)&&Lt(t)==r}function Vt(t,e,n,i,o){return t===e||(null==t||null==e||!zt(t)&&!zt(e)?t!=t&&e!=e:function(t,e,n,i,o,u){var f=Pt(t),y=Pt(e),H=f?s:Rt(t),S=y?s:Rt(e),L=(H=H==r?p:H)==p,x=(S=S==r?p:S)==p,V=H==S;if(V&&Dt(t)){if(!Dt(e))return!1;f=!0,L=!1}if(V&&!L)return u||(u=new wt),f||Zt(t)?Et(t,e,n,i,o,u):function(t,e,n,i,o,r,s){switch(n){case w:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case C:return!(t.byteLength!=e.byteLength||!r(new X(t),new X(e)));case l:case a:case h:return Nt(+t,+e);case c:return t.name==e.name&&t.message==e.message;case g:case b:return t==e+"";case d:var u=F;case m:var p=1&i;if(u||(u=B),t.size!=e.size&&!p)return!1;var f=s.get(t);if(f)return f==e;i|=2,s.set(t,e);var y=Et(u(t),u(e),i,o,r,s);return s.delete(t),y;case v:if(mt)return mt.call(t)==mt.call(e)}return!1}(t,e,H,n,i,o,u);if(!(1&n)){var A=L&&Z.call(t,"__wrapped__"),M=x&&Z.call(e,"__wrapped__");if(A||M){var E=A?t.value():t,k=M?e.value():e;return u||(u=new wt),o(E,k,n,i,u)}}if(!V)return!1;return u||(u=new wt),function(t,e,n,i,o,r){var s=1&n,l=kt(t),a=l.length,c=kt(e),u=c.length;if(a!=u&&!s)return!1;var d=a;for(;d--;){var h=l[d];if(!(s?h in e:Z.call(e,h)))return!1}var p=r.get(t);if(p&&r.get(e))return p==e;var f=!0;r.set(t,e),r.set(e,t);var g=s;for(;++d<a;){var m=t[h=l[d]],b=e[h];if(i)var v=s?i(b,m,h,e,t,r):i(m,b,h,t,e,r);if(!(void 0===v?m===b||o(m,b,n,i,r):v)){f=!1;break}g||(g="constructor"==h)}if(f&&!g){var y=t.constructor,C=e.constructor;y==C||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof C&&C instanceof C||(f=!1)}return r.delete(t),r.delete(e),f}(t,e,n,i,o,u)}(t,e,n,i,Vt,o))}function At(t){return!(!qt(t)||function(t){return!!W&&W in t}(t))&&(It(t)?U:H).test(Bt(t))}function Mt(t){if(n=(e=t)&&e.constructor,i="function"==typeof n&&n.prototype||_,e!==i)return it(t);var e,n,i,o=[];for(var r in Object(t))Z.call(t,r)&&"constructor"!=r&&o.push(r);return o}function Et(t,e,n,i,o,r){var s=1&n,l=t.length,a=e.length;if(l!=a&&!(s&&a>l))return!1;var c=r.get(t);if(c&&r.get(e))return c==e;var u=-1,d=!0,h=2&n?new Ct:void 0;for(r.set(t,e),r.set(e,t);++u<l;){var p=t[u],f=e[u];if(i)var g=s?i(f,p,u,e,t,r):i(p,f,u,t,e,r);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!R(e,(function(t,e){if(s=e,!h.has(s)&&(p===t||o(p,t,n,i,r)))return h.push(e);var s}))){d=!1;break}}else if(p!==f&&!o(p,f,n,i,r)){d=!1;break}}return r.delete(t),r.delete(e),d}function kt(t){return function(t,e,n){var i=e(t);return Pt(t)?i:function(t,e){for(var n=-1,i=e.length,o=t.length;++n<i;)t[o+n]=e[n];return t}(i,n(t))}(t,Wt,jt)}function $t(t,e){var n,i,o=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Tt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return At(n)?n:void 0}bt.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},bt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bt.prototype.get=function(t){var e=this.__data__;if(ct){var n=e[t];return n===i?void 0:n}return Z.call(e,t)?e[t]:void 0},bt.prototype.has=function(t){var e=this.__data__;return ct?void 0!==e[t]:Z.call(e,t)},bt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ct&&void 0===e?i:e,this},vt.prototype.clear=function(){this.__data__=[],this.size=0},vt.prototype.delete=function(t){var e=this.__data__,n=St(e,t);return!(n<0)&&(n==e.length-1?e.pop():Q.call(e,n,1),--this.size,!0)},vt.prototype.get=function(t){var e=this.__data__,n=St(e,t);return n<0?void 0:e[n][1]},vt.prototype.has=function(t){return St(this.__data__,t)>-1},vt.prototype.set=function(t,e){var n=this.__data__,i=St(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},yt.prototype.clear=function(){this.size=0,this.__data__={hash:new bt,map:new(rt||vt),string:new bt}},yt.prototype.delete=function(t){var e=$t(this,t).delete(t);return this.size-=e?1:0,e},yt.prototype.get=function(t){return $t(this,t).get(t)},yt.prototype.has=function(t){return $t(this,t).has(t)},yt.prototype.set=function(t,e){var n=$t(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Ct.prototype.add=Ct.prototype.push=function(t){return this.__data__.set(t,i),this},Ct.prototype.has=function(t){return this.__data__.has(t)},wt.prototype.clear=function(){this.__data__=new vt,this.size=0},wt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wt.prototype.get=function(t){return this.__data__.get(t)},wt.prototype.has=function(t){return this.__data__.has(t)},wt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof vt){var i=n.__data__;if(!rt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new yt(i)}return n.set(t,e),this.size=n.size,this};var jt=et?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,i=null==t?0:t.length,o=0,r=[];++n<i;){var s=t[n];e(s,n,t)&&(r[o++]=s)}return r}(et(t),(function(e){return J.call(t,e)})))}:function(){return[]},Rt=Lt;function Ft(t,e){return!!(e=null==e?o:e)&&("number"==typeof t||S.test(t))&&t>-1&&t%1==0&&t<e}function Bt(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Nt(t,e){return t===e||t!=t&&e!=e}(ot&&Rt(new ot(new ArrayBuffer(1)))!=w||rt&&Rt(new rt)!=d||st&&Rt(st.resolve())!=f||lt&&Rt(new lt)!=m||at&&Rt(new at)!=y)&&(Rt=function(t){var e=Lt(t),n=e==p?t.constructor:void 0,i=n?Bt(n):"";if(i)switch(i){case ut:return w;case dt:return d;case ht:return f;case pt:return m;case ft:return y}return e});var Ot=xt(function(){return arguments}())?xt:function(t){return zt(t)&&Z.call(t,"callee")&&!J.call(t,"callee")},Pt=Array.isArray;var Dt=nt||function(){return!1};function It(t){if(!qt(t))return!1;var e=Lt(t);return e==u||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function _t(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function qt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function zt(t){return null!=t&&"object"==typeof t}var Zt=j?function(t){return function(e){return t(e)}}(j):function(t){return zt(t)&&_t(t.length)&&!!L[Lt(t)]};function Wt(t){return null!=(e=t)&&_t(e.length)&&!It(e)?Ht(t):Mt(t);var e}t.exports=function(t,e){return Vt(t,e)}},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,o,r){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var l=0;l<this.length;l++){var a=this[l][0];null!=a&&(s[a]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&s[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},540:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(601),o=n.n(i),r=n(314),s=n.n(r)()(o());s.push([t.id,':host {\n --color: RGB(0, 0, 0);\n --color-active-bg: RGBA(48, 58, 178, 0.2);\n --color-hover-bg: RGBA(48, 58, 178, 0.05);\n --color-active: RGB(48, 58, 178);\n --width: auto;\n --height: 60vh;\n --radius: 4px;\n user-select: none;\n}\n\n.container {\n border: 1.5px outset;\n border-radius: var(--radius);\n}\n\n.toolbar {\n padding: 0.5em;\n border-bottom: 1px #dfdfdf solid;\n display: flex;\n flex-wrap: wrap;\n}\n.toolbar svg.color-indicator {\n transform: translate(3px, -16px);\n}\n.toolbar div.separator,\neo-popup .icons div.separator {\n border-left: 1px solid #ccc;\n height: 21px;\n margin: 4px 6px;\n display: inline-block;\n}\n.toolbar button,\neo-popup .icons button {\n background-color: transparent;\n border: none;\n cursor: pointer;\n border-radius: calc(var(--radius) * 0.75);\n margin: 0px 1px;\n padding: 3px;\n width: 30px;\n height: 30px;\n text-align: left;\n}\n.toolbar button.autosize,\neo-popup .icons button.autosize {\n width: auto;\n height: auto;\n padding: 3px 6px;\n}\n.toolbar button.more {\n width: 42px;\n}\n.toolbar button.text {\n width: 98px !important;\n}\neo-popup.top-popup {\n z-index: 991;\n}\neo-popup .icons {\n display: flex;\n}\neo-popup .icons button.line {\n width: 180px !important;\n height: 56px !important;\n display: flex;\n align-items: center;\n border-radius: 0px;\n padding: 3px 9px;\n}\neo-popup .icons button.line:nth-child(2n + 1) {\n background-color: #f6f6f6;\n}\neo-popup .content {\n font-size: 12px;\n padding: 0px 1em;\n}\neo-popup .content1 {\n font-size: 12px;\n padding: 1em;\n}\neo-popup .grid {\n padding: 1em;\n font-size: 12px;\n display: grid;\n grid-template-columns: 78px 1fr 78px 1fr;\n align-items: center;\n column-gap: 9px;\n row-gap: 9px;\n}\neo-popup .grid input[type="text"],\neo-popup .grid input[type="number"] {\n width: 72px;\n}\neo-popup .grid .grid-title {\n grid-column: 1 / -1;\n font-weight: bold;\n}\neo-popup .grid .self {\n align-self: start;\n padding-top: 4px;\n}\neo-popup .grid .span3 {\n grid-column: 2 / span 3;\n}\neo-popup .grid .full-width {\n grid-column: 1 / -1;\n}\neo-popup .flex2 {\n display: flex;\n align-items: center;\n gap: 6px;\n}\neo-popup .flex2 *:first-child {\n flex-grow: 1;\n}\neo-popup button.full-width {\n width: 100%;\n}\neo-popup .icon-button {\n display: inline-flex;\n align-items: center;\n padding: 3px 9px;\n}\neo-popup .icon-button svg {\n margin-right: 4px;\n}\neo-popup .tab-page {\n padding: 12px;\n width: min(75vw, 640px);\n font-size: 14px;\n}\neo-popup .tab-page .tabs {\n display: flex;\n flex-wrap: no-wrap;\n padding-bottom: 6px;\n}\neo-popup .tab-page .tabs .tab {\n padding-right: 6px;\n}\neo-popup .tab-page .latest {\n margin-bottom: 6px;\n}\neo-popup .tab-page .tab-content {\n height: calc(var(--height) - 120px);\n overflow: auto;\n}\n\neo-popup .tab-page .tab-content .items div,\neo-popup .tab-page .latest div {\n box-sizing: border-box;\n width: 28px;\n height: 28px;\n text-align: center;\n line-height: 28px;\n vertical-align: middle;\n border: 1px outset #ccc;\n display: inline-block;\n cursor: pointer;\n}\neo-popup .tab-page .items div:hover,\neo-popup .tab-page .latest div:hover {\n color: var(--color-active);\n background-color: var(--color-active-bg);\n}\neo-popup .tab-page .items div:hover:after,\neo-popup .tab-page .latest div:hover:after {\n content: attr(data-preview);\n font-size: 60px;\n width: 60px;\n height: 60px;\n position: absolute;\n padding: 12px;\n text-align: center;\n margin-left: 9px;\n margin-top: -86px;\n line-height: 60px;\n vertical-align: middle;\n border: 1px var(--color-active) solid;\n background-color: #fff;\n}\n.toolbar button.more span.text {\n font-size: 13px;\n padding: 0px 4px;\n min-width: 72px;\n}\n.toolbar button.more span.text,\n.toolbar button.more svg,\nsvg.inline {\n vertical-align: middle;\n display: inline-block;\n}\n.toolbar button.more svg.more-icon {\n margin-left: -3px;\n margin-right: -3px;\n margin-bottom: 4px;\n}\n.toolbar button:enabled,\neo-popup .icons button {\n color: var(--color);\n}\n.toolbar button:enabled svg,\neo-popup .icons button svg {\n fill: var(--color);\n}\n.toolbar button:enabled:not(.active):hover,\neo-popup .icons button:not(.active):hover {\n background-color: var(--color-hover-bg);\n}\n.toolbar button:enabled:active,\n.toolbar button.active,\neo-popup .icons button:active,\neo-popup .icons button.active {\n background-color: var(--color-active-bg) !important;\n}\n.toolbar button:enabled:hover,\n.toolbar button.active,\neo-popup .icons button:hover,\neo-popup .icons button.active {\n color: var(--color-active);\n}\n.toolbar button:enabled:hover svg,\n.toolbar button.active svg,\neo-popup .icons button:hover svg,\neo-popup .icons button.active svg {\n fill: var(--color-active);\n}\n.toolbar button:disabled,\neo-popup button:disabled {\n color: RGBA(0, 0, 0, 0.33);\n}\n.toolbar button:disabled svg,\neo-popup button:disabled svg {\n fill: RGBA(0, 0, 0, 0.33);\n}\n\n.edit-area {\n box-sizing: border-box;\n width: var(--width);\n height: var(--height);\n overflow: hidden;\n}\n.edit-area iframe {\n box-sizing: border-box;\n border: none;\n outline: none;\n width: 100%;\n height: 100%;\n}\n.edit-area textarea {\n box-sizing: border-box;\n border: none;\n outline: none;\n padding: 0.5em;\n width: 100%;\n height: 100%;\n display: none;\n}\n\n/** Insert image **/\n.preview-container {\n position: relative;\n width: min(80vw, 480px);\n height: 320px;\n overflow: auto;\n margin: 6px 0px;\n}\n.preview-container img {\n position: absolute;\n left: 0px;\n top: 0px;\n display: none;\n}\n\n/** Insert table **/\n.table-cells td {\n width: 16px;\n height: 16px;\n border: 1px solid #ccc;\n}\n.table-cells td.hidden {\n display: none;\n}\n.table-cells td.focus {\n background-color: var(--color-active-bg);\n}\n\n/** popupTextbox **/\ndiv.narrow input {\n width: 44.5px !important;\n}\n',""]);const l=s},601:t=>{"use strict";t.exports=function(t){return t[1]}}},r={};function s(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,loaded:!1,exports:{}};return o[t](n,n.exports,s),n.loaded=!0,n.exports}s.m=o,s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var o=Object.create(null);s.r(o);var r={};t=t||[null,e({}),e([]),e(e)];for(var l=2&i&&n;"object"==typeof l&&!~t.indexOf(l);l=e(l))Object.getOwnPropertyNames(l).forEach((t=>r[t]=()=>n[t]));return r.default=()=>n,s.d(o,r),o},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,n)=>(s.f[n](t,e),e)),[])),s.u=t=>t+".eoeditor.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},i="@etsoo/editor:",s.l=(t,e,o,r)=>{if(n[t])n[t].push(e);else{var l,a;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==i+o){l=d;break}}l||(a=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,s.nc&&l.setAttribute("nonce",s.nc),l.setAttribute("data-webpack",i+o),l.src=t),n[t]=[e];var h=(e,i)=>{l.onerror=l.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((t=>t(i))),e)return e(i)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=h.bind(null,l.onerror),l.onload=h.bind(null,l.onload),a&&document.head.appendChild(l)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={792:0};s.f.j=(e,n)=>{var i=s.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise(((n,o)=>i=t[e]=[n,o]));n.push(i[2]=o);var r=s.p+s.u(e),l=new Error;s.l(r,(n=>{if(s.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;l.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",l.name="ChunkLoadError",l.type=o,l.request=r,i[1](l)}}),"chunk-"+e,e)}};var e=(e,n)=>{var i,o,r=n[0],l=n[1],a=n[2],c=0;if(r.some((e=>0!==t[e]))){for(i in l)s.o(l,i)&&(s.m[i]=l[i]);if(a)a(s)}for(e&&e(n);c<r.length;c++)o=r[c],s.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunk_etsoo_editor=self.webpackChunk_etsoo_editor||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),(()=>{"use strict";const t={name:"s",icon:"",label:""},e='<path d="M14 16.94V12.94H5.08L5.05 10.93H14V6.94L19 11.94Z" />',n='<path d="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z" />',i='<path d="M21.7,13.35L20.7,14.35L18.65,12.3L19.65,11.3C19.86,11.08 20.21,11.08 20.42,11.3L21.7,12.58C21.92,12.79 21.92,13.14 21.7,13.35M12,18.94L18.07,12.88L20.12,14.93L14.06,21H12V18.94M4,2H18A2,2 0 0,1 20,4V8.17L16.17,12H12V16.17L10.17,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M4,6V10H10V6H4M12,6V10H18V6H12M4,12V16H10V12H4Z" />',o='<path d="M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z" />',r='<path d="M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z" />',l='<path d="M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z" />',a='<path d="M5,10H3V4H11V6H5V10M19,18H13V20H21V14H19V18M5,18V14H3V20H11V18H5M21,4H13V6H19V10H21V4M8,13V15L11,12L8,9V11H3V13H8M16,11V9L13,12L16,15V13H21V11H16Z" />',c='<path d="M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z" />',u='<path d="M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z" />',d='<path d="M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z" />',h='<path d="M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z" />',p='<path d="M19 14H21V20H3V14H5V18H19V14M3 4V10H5V6H19V10H21V4H3M11 11V13H8V15L5 12L8 9V11H11M16 11V9L19 12L16 15V13H13V11H16Z" />',f='<path d="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z" />',g={about:{icon:'<path d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z" />'},align:{icon:'<path d="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z" />'},backColor:{icon:'<path d="M4,17L6.75,14.25L6.72,14.23C6.14,13.64 6.14,12.69 6.72,12.11L11.46,7.37L15.7,11.61L10.96,16.35C10.39,16.93 9.46,16.93 8.87,16.37L8.24,17H4M15.91,2.91C16.5,2.33 17.45,2.33 18.03,2.91L20.16,5.03C20.74,5.62 20.74,6.57 20.16,7.16L16.86,10.45L12.62,6.21L15.91,2.91Z" />'},bold:{icon:'<path d="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z" />',detectTag:"b",detectStyle:["fontWeight","bold"]},code:{icon:'<path d="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z" />'},copy:{icon:'<path d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" />'},custom1:{icon:""},custom2:{icon:""},custom3:{icon:""},cut:{icon:'<path d="M19,3L13,9L15,11L22,4V3M12,12.5A0.5,0.5 0 0,1 11.5,12A0.5,0.5 0 0,1 12,11.5A0.5,0.5 0 0,1 12.5,12A0.5,0.5 0 0,1 12,12.5M6,20A2,2 0 0,1 4,18C4,16.89 4.9,16 6,16A2,2 0 0,1 8,18C8,19.11 7.1,20 6,20M6,8A2,2 0 0,1 4,6C4,4.89 4.9,4 6,4A2,2 0 0,1 8,6C8,7.11 7.1,8 6,8M9.64,7.64C9.87,7.14 10,6.59 10,6A4,4 0 0,0 6,2A4,4 0 0,0 2,6A4,4 0 0,0 6,10C6.59,10 7.14,9.87 7.64,9.64L10,12L7.64,14.36C7.14,14.13 6.59,14 6,14A4,4 0 0,0 2,18A4,4 0 0,0 6,22A4,4 0 0,0 10,18C10,17.41 9.87,16.86 9.64,16.36L12,14L19,21H22V20L9.64,7.64Z" />'},decreaseFontSize:{icon:'<path d="M5.12,14L7.5,7.67L9.87,14M6.5,5L1,19H3.25L4.37,16H10.62L11.75,19H14L8.5,5H6.5M18,17L23,11.93L21.59,10.5L19,13.1V7H17V13.1L14.41,10.5L13,11.93L18,17Z" />'},delete:{icon:'<path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" />'},foreColor:{icon:'<path d="M9.62,12L12,5.67L14.37,12M11,3L5.5,17H7.75L8.87,14H15.12L16.25,17H18.5L13,3H11Z" />'},formatBlock:{icon:""},fullscreen:{icon:'<path d="M24 9h-2v-4h-4v-2h6v6zm-6 12v-2h4v-4h2v6h-6zm-18-6h2v4h4v2h-6v-6zm6-12v2h-4v4h-2v-6h6z"/>'},h1:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z" />',detectTag:"h1"},h2:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z" />',detectTag:"h2"},h3:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z" />',detectTag:"h3"},h4:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z" />',detectTag:"h4"},h5:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z" />',detectTag:"h5"},h6:{icon:'<path d="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z" />',detectTag:"h6"},hp:{icon:'<path d="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z" />',detectTag:"p"},iframe:{icon:'<path d="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" />'},increaseFontSize:{icon:'<path d="M5.12,14L7.5,7.67L9.87,14M6.5,5L1,19H3.25L4.37,16H10.62L11.75,19H14L8.5,5H6.5M18,7L13,12.07L14.41,13.5L17,10.9V17H19V10.9L21.59,13.5L23,12.07L18,7Z" />'},indent:{icon:'<path d="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z" />'},insertHorizontalRule:{icon:'<path d="M19,13H5V11H19V13Z" />'},insertImage:{icon:'<path d="M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z" />'},insertOrderedList:{icon:'<path d="M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z" />'},insertTable:{icon:'<path d="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z" />'},insertText:{icon:'<path d="M19,3H14.82C14.25,1.44 12.53,0.64 11,1.2C10.14,1.5 9.5,2.16 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7M17,11H7V9H17V11M15,15H7V13H15V15Z" />'},insertUnorderedList:{icon:'<path d="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z" />',detectTag:"ul"},italic:{icon:'<path d="M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z" />',detectTag:"i",detectStyle:["fontStyle","italic"]},justifyCenter:{icon:'<path d="M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","center"]},justifyFull:{icon:'<path d="M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","justify"]},justifyLeft:{icon:'<path d="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","left"]},justifyRight:{icon:'<path d="M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z" />',detectStyle:["textAlign","right"]},link:{icon:'<path d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />',detectTag:"a"},lock:{icon:'<path d="M17,10h-1V8c0-2.205-1.794-4-4-4S8,5.795,8,8v2H7c-1.103,0-2,0.896-2,2v7c0,1.104,0.897,2,2,2h10c1.103,0,2-0.896,2-2v-7 C19,10.896,18.103,10,17,10z M12,18.299c-0.719,0-1.3-0.58-1.3-1.299s0.581-1.301,1.3-1.301s1.3,0.582,1.3,1.301 S12.719,18.299,12,18.299z M14,11h-4V8c0-1.104,0.897-2,2-2s2,0.896,2,2V11z" />'},more:{icon:'<path d="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z" />'},object:{icon:""},outdent:{icon:'<path d="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z" />'},paste:{icon:'<path d="M19,20H5V4H7V7H17V4H19M12,2A1,1 0 0,1 13,3A1,1 0 0,1 12,4A1,1 0 0,1 11,3A1,1 0 0,1 12,2M19,2H14.82C14.4,0.84 13.3,0 12,0C10.7,0 9.6,0.84 9.18,2H5A2,2 0 0,0 3,4V20A2,2 0 0,0 5,22H19A2,2 0 0,0 21,20V4A2,2 0 0,0 19,2Z" />'},redo:{icon:'<path d="M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z" />'},removeFormat:{icon:'<path d="M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z" />'},s:{icon:"|"},source:{icon:'<path d="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z" />'},strikeThrough:{icon:'<path d="M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z" />',detectTag:"strike",detectStyle:["textDecorationLine","line-through"]},style:{icon:'<path d="M3,5A2,2 0 0,1 5,3H19A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5M12.5,11H11.5A1.5,1.5 0 0,1 10,9.5A1.5,1.5 0 0,1 11.5,8H12.5A1.5,1.5 0 0,1 14,9.5H16A3.5,3.5 0 0,0 12.5,6H11.5A3.5,3.5 0 0,0 8,9.5A3.5,3.5 0 0,0 11.5,13H12.5A1.5,1.5 0 0,1 14,14.5A1.5,1.5 0 0,1 12.5,16H11.5A1.5,1.5 0 0,1 10,14.5H8A3.5,3.5 0 0,0 11.5,18H12.5A3.5,3.5 0 0,0 16,14.5A3.5,3.5 0 0,0 12.5,11Z" />'},subscript:{icon:'<path d="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,21.03H16.97V20.03L17.86,19.23C18.62,18.58 19.18,18.04 19.56,17.6C19.93,17.16 20.12,16.75 20.13,16.36C20.14,16.08 20.05,15.85 19.86,15.66C19.68,15.5 19.39,15.38 19,15.38C18.69,15.38 18.42,15.44 18.16,15.56L17.5,15.94L17.05,14.77C17.32,14.56 17.64,14.38 18.03,14.24C18.42,14.1 18.85,14 19.32,14C20.1,14.04 20.7,14.25 21.1,14.66C21.5,15.07 21.72,15.59 21.72,16.23C21.71,16.79 21.53,17.31 21.18,17.78C20.84,18.25 20.42,18.7 19.91,19.14L19.27,19.66V19.68H21.85V21.03Z" />',detectTag:"sub"},superscript:{icon:'<path d="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,9H16.97V8L17.86,7.18C18.62,6.54 19.18,6 19.56,5.55C19.93,5.11 20.12,4.7 20.13,4.32C20.14,4.04 20.05,3.8 19.86,3.62C19.68,3.43 19.39,3.34 19,3.33C18.69,3.34 18.42,3.4 18.16,3.5L17.5,3.89L17.05,2.72C17.32,2.5 17.64,2.33 18.03,2.19C18.42,2.05 18.85,2 19.32,2C20.1,2 20.7,2.2 21.1,2.61C21.5,3 21.72,3.54 21.72,4.18C21.71,4.74 21.53,5.26 21.18,5.73C20.84,6.21 20.42,6.66 19.91,7.09L19.27,7.61V7.63H21.85V9Z" />',detectTag:"sup"},symbols:{icon:'<path d="M19.15,19H13.39V16.87C15.5,15.25 16.59,13.24 16.59,10.84C16.59,9.34 16.16,8.16 15.32,7.29C14.47,6.42 13.37,6 12.03,6C10.68,6 9.57,6.42 8.71,7.3C7.84,8.17 7.41,9.37 7.41,10.88C7.41,13.26 8.5,15.26 10.61,16.87V19H4.85V16.87H8.41C6.04,15.32 4.85,13.23 4.85,10.6C4.85,8.5 5.5,6.86 6.81,5.66C8.12,4.45 9.84,3.85 11.97,3.85C14.15,3.85 15.89,4.45 17.19,5.64C18.5,6.83 19.15,8.5 19.15,10.58C19.15,13.21 17.95,15.31 15.55,16.87H19.15V19Z" />'},textbox:{icon:'<path d="M5,3C3.89,3 3,3.89 3,5V19C3,20.11 3.89,21 5,21H19C20.11,21 21,20.11 21,19V5C21,3.89 20.11,3 19,3H5M5,5H19V19H5V5M7,7V9H17V7H7M7,11V13H17V11H7M7,15V17H14V15H7Z" />'},underline:{icon:'<path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z" />',detectTag:"u",detectStyle:["textDecorationLine","underline"]},undo:{icon:'<path d="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z" />'},unlink:{icon:'<path d="M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.43 19.12,14.63 17.79,15L19.25,16.44C20.88,15.61 22,13.95 22,12A5,5 0 0,0 17,7M16,11H13.81L15.81,13H16V11M2,4.27L5.11,7.38C3.29,8.12 2,9.91 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12C3.9,10.41 5.11,9.1 6.66,8.93L8.73,11H8V13H10.73L13,15.27V17H14.73L18.74,21L20,19.74L3.27,3L2,4.27Z" />'},video:{icon:'<path d="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z" />'}};var m,b;BigInt.prototype.toJSON=function(){return this.toString()+"n"},function(t){let e,n,i,o,r,s;function l(t,e){if(null!=t&&("string"!=typeof t||""!==t.trim())){if(e.endsWith("[]")){const n=Array.isArray(t)?t:"string"==typeof t?t.split(/,\s*/g):[t],i=e.slice(0,e.length-2);return n.map((t=>l(t,i))).filter((t=>null!=t))}if(typeof t===e)return t;if("date"!==e){if("bigint"===e)return"string"==typeof t||"number"==typeof t||"boolean"==typeof t?BigInt(t):void 0;if("boolean"===e)return"string"==typeof t||"number"==typeof t?"0"!==t&&"false"!==t&&Boolean(t):void 0;if("number"===e){const e=Number(t);return isNaN(e)?void 0:e}return"string"===e?String(t):void 0}if(t instanceof Date)return t;if("string"==typeof t||"number"==typeof t){const e=new Date(t);return null==e?void 0:e}}}function a(e){switch(e){case t.CombinedEnum.Array:return"unknown[]";case t.CombinedEnum.Bigint:return"bigint";case t.CombinedEnum.Boolean:return"boolean";case t.CombinedEnum.Date:case t.CombinedEnum.DateTime:return"date";case t.CombinedEnum.Number:case t.CombinedEnum.Int:case t.CombinedEnum.IntMoney:case t.CombinedEnum.Money:return"number";default:return"string"}}function c(t,e=!1){if(null==t)return;if(t instanceof Date)return e?"date[]":"date";const n=typeof t,i=e?n+"[]":n;return d(i)?i:void 0}function u(t,e){if(null!=t&&"string"==typeof e&&e in t)return Reflect.get(t,e)}function d(e){return t.BasicArray.includes(e)}function h(t,e=!0){if(null==t)return!0;if(t instanceof Date)return!0;if(Array.isArray(t))return!!e&&h(t.find((t=>null!=t)));const n=typeof t;return"function"!==n&&"object"!==n&&"symbol"!==n}function p(t){const e=new Map;return function(n,i){const o=e.get(this)+(Array.isArray(this)?`[${n}]`:"."+n);return i===Object(i)&&e.set(i,o),t.call(this,n,i,o.replace(/undefined\.\.?/,""))}}t.BasicArray=["number","number[]","bigint","bigint[]","date","date[]","boolean","boolean[]","string","string[]","unknown[]"],function(t){t[t.Number=1]="Number",t[t.Bigint=2]="Bigint",t[t.Date=3]="Date",t[t.Boolean=4]="Boolean",t[t.String=5]="String",t[t.Array=9]="Array"}(e=t.SimpleEnum||(t.SimpleEnum={})),function(t){t[t.Unkwown=0]="Unkwown",t[t.Int=10]="Int",t[t.Money=11]="Money",t[t.IntMoney=12]="IntMoney",t[t.DateTime=13]="DateTime",t[t.Email=21]="Email",t[t.Phone=22]="Phone",t[t.URL=23]="URL",t[t.Logo=24]="Logo"}(n=t.ExtendedEnum||(t.ExtendedEnum={})),t.CombinedEnum={...e,...n},function(t){t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right"}(i=t.HAlignEnum||(t.HAlignEnum={})),function(t){t[t.Top=1]="Top",t[t.Center=2]="Center",t[t.Bottom=3]="Bottom"}(o=t.VAlignEnum||(t.VAlignEnum={})),function(t){t[t.TopLeft=0]="TopLeft",t[t.TopCenter=1]="TopCenter",t[t.TopRight=2]="TopRight",t[t.MiddleLeft=3]="MiddleLeft",t[t.Center=4]="Center",t[t.MiddleRight=5]="MiddleRight",t[t.BottomLeft=6]="BottomLeft",t[t.BottomCenter=7]="BottomCenter",t[t.BottomRight=8]="BottomRight",t[t.Unknown=9]="Unknown"}(r=t.PlacementEnum||(t.PlacementEnum={})),function(t){t[t.False=0]="False",t[t.True=1]="True",t[t.Unsure=9]="Unsure"}(s=t.TristateEnum||(t.TristateEnum={})),t.convert=function(t,e){if(null==t)return;if(Array.isArray(e)){const n=c(e.length>0?e[0]:t,!0);return null==n?t:l(t,n)}const n=c(e,!1);return null==n?typeof t==typeof e?t:void 0:l(t,n)},t.convertByType=l,t.convertSimple=function(e,n){const i=l(e,a(n));if(null!=i){if("number"==typeof i){if(n===t.CombinedEnum.Int||n===t.CombinedEnum.IntMoney)return Math.round(i);if(n===t.CombinedEnum.Money)return Math.round(1e4*i)/1e4}return i}},t.getBasicName=a,t.getBasicNameByValue=c,t.getEnumByKey=function(t,e){if(e in t)return t[e]},t.getEnumByValue=function(t,e){if(e in t)return e},t.getEnumKey=function(t,e){return t[e].toString()},t.getEnumKeys=function(t){return Object.keys(t).filter((t=>!/^\d+$/.test(t))).map((t=>t))},t.getListItemLabel=function(t){return"label"in t?t.label:"name"in t?t.name:t.title},t.getObjectItemLabel=function(t){return"label"in t?`${t.label}`:"name"in t?`${t.name}`:"title"in t?`${t.title}`:`${t}`},t.getValue=u,t.getIdValue=function(t,e){return t[e]},t.getIdValue1=function(t,e){const n=u(t,e);if(null!=n)return"number"==typeof n?n:`${n}`},t.getStringValue=function(t,e){const n=u(t,e);if(null!=n)return"string"==typeof n?n:`${n}`},t.isBasicName=d,t.isSimpleObject=function(t,e=!0){return"object"==typeof t&&null!=t&&Object.values(t).every((t=>h(t,e)))},t.isSimpleType=h,t.jsonReplacer=p,t.jsonBigintReceiver=function(...t){return p((function(e,n,i){return(t.includes(e)||t.includes(i))&&"string"==typeof n?n.endsWith("n")?BigInt(n.slice(0,-1)):BigInt(n):n}))}}(m||(m={})),Date.prototype.substract=function(t){const e=this.valueOf()-t.valueOf(),n=e/1e3,i=n/60,o=i/60,r=o/24,s=this.getFullYear(),l=this.getMonth(),a=new Date(t);a.setFullYear(s),a.setMonth(l);const c=(new Date(this).valueOf()-a.valueOf())/864e5,u=c>0?c/b.getDays(s,l):c/b.getDays(s,l-1),d=12*(s-t.getFullYear())+(l-t.getMonth())+u;return{totalMiniseconds:e,totalSeconds:n,totalMinutes:i,totalHours:o,totalDays:r,totalMonths:d,totalYears:d/12}},function(t){function e(t){if(null!=t){if("string"!=typeof t)return t;{const e=t[0];if(e>="0"&&e<="9"&&/[-\/\s]/g.test(t)){const e=Date.parse(t);if(!isNaN(e))return new Date(e)}}}}t.DayFormat={year:"numeric",month:"2-digit",day:"2-digit"},t.MinuteFormat={...t.DayFormat,hour:"2-digit",hourCycle:"h23",minute:"2-digit"},t.SecondFormat={...t.MinuteFormat,second:"2-digit"},t.format=function(n,i,o,r){const s=e(n);if(null==s)return;let l;switch(o??(o=t.DayFormat),o){case"d":l=t.DayFormat;break;case"dm":l=t.MinuteFormat;break;case"ds":l=t.SecondFormat;break;default:l=o}const a={...l,...null!=r&&{timeZone:r}};return new Intl.DateTimeFormat(i,a).format(s).replace(/,\s*/g," ")},t.formatForInput=function(t,e){if(null==t||""===t)return;const n="string"==typeof t?new Date(t):t,i="string"==typeof e?"date"!==e||void 0:e,o=[n.getFullYear(),(n.getMonth()+1).toString().padStart(2,"0"),n.getDate().toString().padStart(2,"0")].join("-");if(null==i)return o;const r=[n.getHours().toString().padStart(2,"0"),n.getMinutes().toString().padStart(2,"0")];return i&&r.push(n.getSeconds().toString().padStart(2,"0")),`${o}T${r.join(":")}`},t.getDays=(t,e)=>new Date(t,e+1,0).getDate(),t.isExpired=function(t){if(null==t)return!1;const n=e(t);return null!=n&&n.valueOf()<(new Date).valueOf()},t.jsonParser=t=>function(n,i){if("string"==typeof i&&null!=i&&""!==i&&t.includes(n)){const t=e(i);if(null!=t)return t}return i},t.parse=e,t.sameDay=function(t,n){return t=e(t),n=e(n),null!=t&&null!=n&&t.toDateString()===n.toDateString()},t.sameMonth=function(t,n){return t=e(t),n=e(n),null!=t&&null!=n&&(t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth())}}(b||(b={}));var v,y,C=s(142),w=s.n(C);String.prototype.addUrlParam=function(t,e,n){return this.addUrlParams({[t]:e},n)},String.prototype.addUrlParams=function(t,e){if("string"==typeof t){let e=this;return e.includes("?")?e+="&":(e.endsWith("/")||(e+="/"),e+="?"),e+t}if("undefined"!=typeof URL&&this.includes("://")){const n=new URL(this);return Object.entries(t).forEach((([t,i])=>{Array.isArray(i)?null==e||!1===e?i.forEach((e=>{n.searchParams.append(t,`${e}`)})):n.searchParams.append(t,i.join(e?",":e)):i instanceof Date?n.searchParams.append(t,i.toJSON()):n.searchParams.append(t,`${null==i?"":i}`)})),n.toString()}{const n=Object.entries(t).map((([t,n])=>{let i;if(Array.isArray(n)){if(null==e||!1===e)return n.map((e=>`${t}=${encodeURIComponent(`${e}`)}`)).join("&");i=n.join(e?",":e)}else i=n instanceof Date?n.toJSON():null==n?"":`${n}`;return`${t}=${encodeURIComponent(i)}`})).join("&");return this.addUrlParams(n)}},String.prototype.containChinese=function(){return/[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]/g.test(this)},String.prototype.containKorean=function(){return/[\uac00-\ud7af\u1100-\u11ff\u3130-\u318f\ua960-\ua97f\ud7b0-\ud7ff\u3400-\u4dbf]/g.test(this)},String.prototype.containJapanese=function(){return/[\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf]/g.test(this)},String.prototype.format=function(...t){let e=this;return t.forEach(((t,n)=>{e=e.replace(new RegExp(`\\{${n}\\}`,"g"),t)})),e},String.prototype.formatInitial=function(t=!1){const e=this.charAt(0);return(t?e.toUpperCase():e.toLowerCase())+this.slice(1)},String.prototype.hideData=function(t){if(0===this.length)return this;if(null!=t){const e=this.indexOf(t);return-1===e?this.hideData():this.substring(0,e).hideData()+this.substring(e)}var e=this.length;return e<4?this.substring(0,1)+"***":e<6?this.substring(0,2)+"***":e<8?this.substring(0,2)+"***"+this.slice(-2):e<12?this.substring(0,3)+"***"+this.slice(-3):this.substring(0,4)+"***"+this.slice(-4)},String.prototype.hideEmail=function(){return this.hideData("@")},String.prototype.isDigits=function(t){return this.length>=(t??0)&&/^\d+$/.test(this)},String.prototype.isEmail=function(){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(this.toLowerCase())},String.prototype.removeNonLetters=function(){return this.replace(/[^a-zA-Z0-9]/g,"")},function(t){const e=["changedFields","id"];function n(t,e,...n){return t.filter((t=>!n.includes(t[e])))}function i(t,e){return t===e?0:-1===t?1:-1===e?-1:t-e}t.addBlankItem=function(t,e,n,i){if(e??(e="id"),0===t.length||""!==Reflect.get(t[0],e)){const o={[e]:"",["string"==typeof n?n:"label"]:i??"---"};t.unshift(o)}return t},t.charsToNumber=function(t){return("undefined"==typeof Buffer?[...atob(t)].map((t=>t.charCodeAt(0))):[...Buffer.from(t,"base64")]).reduce(((t,e,n)=>t+e*Math.pow(128,n)),0)},t.correctTypes=function(t,e){for(const n in e){const i=e[n];if(null==i)continue;const o=Reflect.get(t,n),r=m.convertByType(o,i);r!==o&&Reflect.set(t,n,r)}},t.equals=function(t,e,n=1){return null==t||null==e?n<=1&&t==e||t===e:"object"==typeof t?w()(t,e):0===n?t==e:t===e},t.exclude=n,t.excludeAsync=async function(t,e,...i){const o=await t;return null==o?o:n(o,e,...i)},t.formatInitial=function(t,e=!1){return t.formatInitial(e)},t.formatString=function(t,...e){return t.format(...e)},t.getDataChanges=function(n,i,o){const r=o??e,s=[];return Object.entries(n).forEach((([e,o])=>{if(r.includes(e))return;const l=Reflect.get(i,e);if(null!=o||null!=l){if(null!=l){if(o instanceof Date)return o.valueOf()===b.parse(l)?.valueOf()?void Reflect.deleteProperty(n,e):void s.push(e);const i=m.convert(o,l);if(t.equals(i,l))return void Reflect.deleteProperty(n,e);Reflect.set(n,e,i)}null!=o&&""!==o||Reflect.deleteProperty(n,e),s.push(e)}else Reflect.deleteProperty(n,e)})),s},t.getNestedValue=function(t,e){const n=e.split("."),i=n.length;if(1===i)return Reflect.get(t,e);{let e=t;for(let t=0;t<i;t++){const o=n[t];if(t+1===i)return Reflect.get(e,o);{let t=Reflect.get(e,o);if(null==t)return;e=t}}}},t.getResult=(t,...e)=>"function"==typeof t?t(...e):t,t.getTimeZone=t=>"object"==typeof Intl&&"function"==typeof Intl.DateTimeFormat?Intl.DateTimeFormat().resolvedOptions().timeZone:t??"UTC",t.hasHtmlEntity=function(t){return/&(lt|gt|nbsp|60|62|160|#x3C|#x3E|#xA0);/i.test(t)},t.hasHtmlTag=function(t){return/<\/?[a-z]+[^<>]*>/i.test(t)},t.isDigits=(t,e)=>null!=t&&t.isDigits(e),t.isEmail=t=>null!=t&&t.isEmail(),t.joinItems=(t,e=", ")=>t.reduce(((t,e)=>{if(e){const n=e.trim();n&&t.push(n)}return t}),[]).join(e),t.mergeClasses=(...e)=>t.joinItems(e," "),t.newGUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))},t.numberToChars=function(t){const e=[];for(;t>0;){const n=t%128;e.push(n),t=(t-n)/128}return"undefined"==typeof Buffer?btoa(String.fromCharCode(...e)):Buffer.from(e).toString("base64")},t.objectEqual=function(e,n,i=[],o=1){const r=t.objectKeys(e,n,i);for(const i of r){const r=Reflect.get(e,i),s=Reflect.get(n,i);if(!t.equals(r,s,o))return!1}return!0},t.objectKeys=function(t,e,n=[]){const i=[...Object.keys(t),...Object.keys(e)].filter((t=>!n.includes(t)));return new Set(i)},t.objectUpdated=function(e,n,i=[],o=1){const r=[],s=t.objectKeys(e,n,i);for(const i of s){const s=Reflect.get(e,i),l=Reflect.get(n,i);t.equals(s,l,o)||r.push(i)}return r},t.parseJsonArray=function(t,e){try{t.startsWith("[")||(t=`[${t}]`);const n=JSON.parse(t),i=typeof e;if(Array.isArray(n)&&(null==e||!n.some((t=>typeof t!==i))))return n}catch(e){console.error(`Utils.parseJsonArray ${t} with error`,e)}},t.parseString=function(t,e){if(null==t||""===t)return e;if("string"==typeof e)return t;try{if(e instanceof Date){const n=new Date(t);return null==n?e:n}return JSON.parse(t)}catch{return null==e?t:e}},t.removeEmptyValues=function(t){Object.keys(t).forEach((e=>{const n=Reflect.get(t,e);null!=n&&""!==n||Reflect.deleteProperty(t,e)}))},t.removeNonLetters=t=>t?.removeNonLetters(),t.replaceNullOrEmpty=(t,e)=>null==t||""===t.trim()?e:t,t.setLabels=(t,e,n)=>{Object.keys(t).forEach((i=>{const o=null==n?i:n[i]??i,r=e[o];null!=r&&Reflect.set(t,i,r)}))},t.snakeNameToWord=(t,e=!1)=>{const n=t.split("_");return e?(n[0]=n[0].formatInitial(!0),n.join(" ")):n.map((t=>t.formatInitial(!0))).join(" ")},t.setNestedValue=function t(e,n,i,o){const r=n.split("."),s=r.length;if(1===s)null==i&&!0!==o?Reflect.deleteProperty(e,n):Reflect.set(e,n,i);else{let n=e;for(let e=0;e<s;e++){const l=r[e];if(e+1===s)t(n,l,i,o);else{let t=Reflect.get(n,l);null==t&&(t={},Reflect.set(n,l,t)),n=t}}}},t.parsePath=t=>{const e=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));let n,i,o,r="",s="";if(-1===e)n=t;else{n=t.substring(e+1);const i=t.indexOf("/"),o=t.indexOf("\\"),l=-1===i?o:-1===o?i:Math.min(i,o);r=t.substring(0,l+1),s=t.substring(0,e),""===s&&(s=r)}const l=n.lastIndexOf(".");return-1===l?(o=n,i=""):(o=n.substring(0,l),i=n.substring(l)),{root:r,dir:s,base:n,ext:i,name:o}},t.sortByFavor=(t,e)=>t.sort(((t,n)=>i(e.indexOf(t),e.indexOf(n)))),t.sortByFieldFavor=(t,e,n)=>t.sort(((t,o)=>i(n.indexOf(t[e]),n.indexOf(o[e])))),t.trim=(e,...n)=>t.trimEnd(t.trimStart(e,...n),...n),t.trimEnd=(t,...e)=>{let n;for(;null!=(n=e.find((e=>t.endsWith(e))));)t=t.substring(0,t.length-n.length);return t},t.trimStart=(t,...e)=>{let n;for(;null!=(n=e.find((e=>t.startsWith(e))));)t=t.substring(n.length);return t}}(v||(v={})),"undefined"==typeof navigator&&(globalThis.navigator={language:"en-US"},globalThis.location={href:"http://localhost/"}),function(t){function e(t,e,i,r,s){const l=Object.keys(i),a=Object.entries(o(t)?n(t):t);for(const[t,n]of a){const o=l.find((e=>0===e.localeCompare(t,"en",{sensitivity:"base"})))??(r?t:void 0);if(null==o)continue;const a=Reflect.get(i,o);let c;c=null==a?n:s?m.convert(n,a):m.convertByType(n,a),Reflect.set(e,o,c)}}function n(t){const e={};for(const n of new Set(t.keys())){const i=t.getAll(n);e[n]=1==i.length?i[0]:i}return e}let i;function o(t){return"object"==typeof t&&null!=t&&"entries"in t&&"getAll"in t&&"keys"in t}function r(t){if(t??(t=globalThis.navigator.userAgent),!t)return null;const e=t.split(/(?!\(.*)\s+(?!\()(?![^(]*?\))/g);let n,i=!1,o="",r="Desktop";const s=[],l=/^[a-zA-Z0-9-\s]+\s+(0|\d+)(\.(0|\d+)){0,3}(\(|$)/,a=/^[a-zA-Z0-9]+\/(0|\d+)(\.(0|\d+)){0,3}(\(|$)/;return e.forEach((t=>{const e=t.toLowerCase();if(e.startsWith("mozilla/")){const e=/\((.*)\)$/.exec(t);if(e&&e.length>1){const t=e[1].split(/;\s*/),i=t.findIndex((t=>l.test(t)));if(-1!==i){const e=t[i].split(/\s+/);n=e.pop(),o=e.join(" ")}else{const e=/((iPhone|Mac)\s+OS(\s+\w+)?)\s+((0|\d+)(_(0|\d+)){0,3})/i;for(let i=0;i<t.length;i++){const r=e.exec(t[i]);if(r&&r.length>4){o=r[1]