Files
equalityrecord_frontend_client/dist/assets/suneditor-c3991ade.js
T

13 lines
269 KiB
JavaScript
Raw Normal View History

2025-04-04 07:29:59 +01:00
import{g as Le,d as Se}from"./vendor-8efd6c0a.js";const we={rtl:{italic:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.5 15.8" xml:space="preserve"><g><path d="M0.3,0.1c0.3,0,0.5,0,0.7,0c1,0.1,1.7,0.1,2.2,0.1H4L7.2,0l0.2,1.1H7c-0.5,0-1,0.1-1.5,0.3v0.4l0.3,1.9L6,4.4L6.3,6 l0.1,0.4l0.1,0.5c0.1,0.2,0.1,0.4,0.2,0.7s0.1,0.6,0.2,0.9L7,9.1l0.6,2.8l0.3,1.4c0.1,0.4,0.2,0.7,0.4,1c0.4,0.2,0.8,0.3,1.2,0.4 l0.8,0.2l0.2,0.9l-1.1,0c-0.9-0.1-1.5-0.1-1.8-0.1h-2c-0.9,0.1-1.4,0.2-1.5,0.2c-0.1,0-0.2,0-0.3,0H3.4c-0.1,0-0.2,0-0.2,0 l-0.1-0.4c0-0.2-0.1-0.4-0.1-0.6l0.7-0.1c0.4,0,0.8-0.1,1.2-0.2c0-0.1,0-0.2,0-0.3l-0.1-0.5l-0.4-2.4L4,9.6L3.4,6.4 C3.2,5.7,3,4.7,2.7,3.3c0-0.3-0.1-0.5-0.1-0.8C2.5,2.1,2.4,1.9,2.3,1.6C2,1.4,1.6,1.3,1.3,1.2C0.9,1.2,0.5,1.1,0.2,0.9L0,0.4L0,0 L0.3,0.1L0.3,0.1z"/></g></svg>',indent:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.7 12.4" xml:space="preserve"><g><g><path d="M15.5,10.1L15.5,10.1c0.1,0,0.3,0.1,0.3,0.3v1.7c0,0.1,0,0.1-0.1,0.2c-0.1,0.1-0.1,0.1-0.2,0.1l-15.2,0 c-0.1,0-0.1,0-0.2-0.1C0,12.2,0,12.2,0,12.1l0-1.7c0-0.1,0-0.1,0.1-0.2c0.1-0.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.7,1.7c0.4,0,0.9-0.2,1.2-0.5 c0.3-0.3,0.4-0.7,0.4-1.1c0-0.9-0.7-1.7-1.6-1.7C13.1,4.6,12.4,5.3,12.4,6.2C12.4,6.2,12.4,6.2,12.4,6.2z M0,9.8v1.7 c0,0.1,0,0.1,0.1,0.2c0.1,0.1,0.1,0.1,0.2,0.1l10.7,0c0,0,0,0,0,0c0.1,0,0.3-0.1,0.3-0.3V9.8c0-0.1,0-0.1-0.1-0.2 C11.1,9.6,11,9.6,11,9.6l-10.7,0c-0.1,0-0.1,0-0.2,0.1C0,9.7,0,9.8,0,9.8L0,9.8z M12.9,2.9c0.3,0.3,0.7,0.5,1.2,0.5 c0.4,0,0.9-0.2,1.2-0.5c0.7-0.7,0.7-1.7,0-2.4C14.9,0.2,14.5,0,14.1,0c-0.4,0-0.9,0.2-1.2,0.5c-0.3,0.3-0.5,0.7-0.5,1.2 C12.4,2.1,12.5,2.6,12.9,2.9z M0,5.3V7c0,0.1,0,0.1,0.1,0.2c0.1,0.1,0.1,0.1,0.2,0.1H11c0.1,0,0.1,0,0.2-0.1 c0.1-0.1,0.1-0.1,0.1-0.2V5.3c0,0,0,0,0,0c0-0.1-0.1-0.3-0.3-0.3H0.3c-0.1,0-0.1,0-0.2,0.1C0,5.2,0,5.3,0,5.3L0,5.3z M0,0.8v1.7 c0,0.1,0,0.1,0.1,0.2c0.1,0.1,0.1,0.1,0.2,0.1h10.7c0.1,0,0.1,0,0.2-0.1
/** Iframe height auto */
body{height: min-content; overflow: hidden;}
</style>`:"")}},j=me,be={init:function(n,l){typeof l!="object"&&(l={});const g=document;this._initOptions(n,l);const C=g.createElement("DIV");C.className="sun-editor"+(l.rtl?" se-rtl":""),n.id&&(C.id="suneditor_"+n.id);const o=g.createElement("DIV");o.className="se-container";const w=this._createToolBar(g,l.buttonList,l.plugins,l),L=w.element.cloneNode(!1);L.className+=" se-toolbar-shadow",w.element.style.visibility="hidden",w.pluginCallButtons.math&&this._checkKatexMath(l.katex);const E=g.createElement("DIV");E.className="se-arrow";const t=g.createElement("DIV");t.className="se-toolbar-sticky-dummy";const R=g.createElement("DIV");R.className="se-wrapper";const a=this._initElements(l,C,w.element,E),p=a.bottomBar,F=a.wysiwygFrame,I=a.placeholder;let K=a.codeView;const G=p.resizingBar,e=p.navigation,i=p.charWrapper,s=p.charCounter,r=g.createElement("DIV");r.className="se-loading-box sun-editor-common",r.innerHTML='<div class="se-loading-effect"></div>';const c=g.createElement("DIV");c.className="se-line-breaker",c.innerHTML='<button class="se-btn">'+l.icons.line_break+"</button>";const d=g.createElement("DIV");d.className+="se-line-breaker-component";const f=d.cloneNode(!0);d.innerHTML=f.innerHTML=l.icons.line_break;const u=g.createElement("DIV");u.className="se-resizing-back";const m=g.createElement("INPUT");m.tabIndex=-1,m.style.cssText="position: fixed !important; top: -10000px !important; display: block !important; width: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important;";const h=l.toolbarContainer;h&&(h.appendChild(w.element),h.appendChild(L));const y=l.resizingBarContainer;return G&&y&&y.appendChild(G),R.appendChild(K),I&&R.appendChild(I),h||(o.appendChild(w.element),o.appendChild(L)),o.appendChild(t),o.appendChild(R),o.appendChild(u),o.appendChild(r),o.appendChild(c),o.appendChild(d),o.appendChild(f),o.appendChild(m),G&&!y&&o.appendChild(G),C.appendChild(o),K=this._checkCodeMirror(l,K),{constructed:{_top:C,_relative:o,_toolBar:w.element,_toolbarShadow:L,_menuTray:w._menuTray,_editorArea:R,_wysiwygArea:F,_codeArea:K,_placeholder:I,_resizingBar:G,_navigation:e,_charWrapper:i,_charCounter:s,_loading:r,_lineBreaker:c,_lineBreaker_t:d,_lineBreaker_b:f,_resizeBack:u,_stickyDummy:t,_arrow:E,_focusTemp:m},options:l,plugins:w.plugins,pluginCallButtons:w.pluginCallButtons,_responsiveButtons:w.responsiveButtons}},_checkCodeMirror:function(n,l){if(n.codeMirror){const g=[{mode:"htmlmixed",htmlMode:!0,lineNumbers:!0,lineWrapping:!0},n.codeMirror.options||{}].reduce(function(o,w){for(let L in w)j.hasOwn(w,L)&&(o[L]=w[L]);return o},{});n.height==="auto"&&(g.viewportMargin=1/0,g.height="auto");const C=n.codeMirror.src.fromTextArea(l,g);C.display.wrapper.style.cssText=l.style.cssText,n.codeMirrorEditor=C,l=C.display.wrapper,l.className+=" se-wrapper-code-mirror"}return l},_checkKatexMath:function(n){if(!n)throw Error('[SUNEDITOR.create.fail] To use the math button you need to add a "katex" object to the options.');const l=[{throwOnError:!1},n.options||{}].reduce(function(g,C){for(let o in C)j.hasOwn(C,o)&&(g[o]=C[o]);return g},{});n.options=l},_setOptions:function(n,l,g){this._initOptions(l.element.originElement,n);const C=l.element,o=C.relative,w=C.editorArea,L=n.toolbarContainer&&n.toolbarContainer!==g.toolbarContainer,E=n.lang!==g.lang||n.buttonList!==g.buttonList||n.mode!==g.mode||L,t=this._createToolBar(document,E?n.buttonList:g.buttonList,n.plugins,n);t.pluginCallButtons.math&&this._checkKatexMath(n.katex);const R=document.createElement("DIV");R.className="se-arrow",E&&(t.element.style.visibility="hidden",L?(n.toolbarContainer.appendChild(t.element),C.toolbar.parentElement.removeChild(C.toolbar)):C.toolbar.parentElement.replaceChild(t.element,C.toolbar),C.toolbar=t.element,C._menuTray=t._menuTray,C._arrow=R);const a=this._initElements(n,C.topArea,E?t.element:C.toolbar,R),p=a.bottomBar,F=a.wysiwygFrame,I=a.placeholder;let K=a.codeView;return C.resizingBar&&j.removeItem(C.resizingBar),p.resizingBar&&(n.resizingBarContainer&&n.resizingBarContainer!==g.resizingBarContainer?n.resizingBarContainer.appe
<html>
`+this._wd.head.outerHTML.replace(/>(?!\n)/g,`>
`)+"<body "+s+`>
`+e+`</body>
</html>`}else i=e;n.element.code.style.display="block",n.element.wysiwygFrame.style.display="none",this._setCodeView(i)},toggleFullScreen:function(e){const i=n.element.topArea,s=n.element.toolbar,r=n.element.editorArea,c=n.element.wysiwygFrame,d=n.element.code,f=this._variable;this.controllersOff();const u=s.style.display==="none"||this._isInline&&!this._inlineToolbarAttr.isShow;f.isFullScreen?(f.isFullScreen=!1,c.style.cssText=f._wysiwygOriginCssText,d.style.cssText=f._codeOriginCssText,s.style.cssText="",r.style.cssText=f._editorAreaOriginCssText,i.style.cssText=f._originCssText,L.body.style.overflow=f._bodyOverflow,o.height==="auto"&&!o.codeMirrorEditor&&p._codeViewAutoHeight(),o.toolbarContainer&&o.toolbarContainer.appendChild(s),o.stickyToolbar>-1&&t.removeClass(s,"se-toolbar-sticky"),f._fullScreenAttrs.sticky&&!o.toolbarContainer&&(f._fullScreenAttrs.sticky=!1,n.element._stickyDummy.style.display="block",t.addClass(s,"se-toolbar-sticky")),this._isInline=f._fullScreenAttrs.inline,this._isBalloon=f._fullScreenAttrs.balloon,this._isInline&&p._showToolbarInline(),o.toolbarContainer&&t.removeClass(s,"se-toolbar-balloon"),p.onScroll_window(),e&&t.changeElement(e.firstElementChild,R.expansion),n.element.topArea.style.marginTop="",t.removeClass(this._styleCommandMap.fullScreen,"active")):(f.isFullScreen=!0,f._fullScreenAttrs.inline=this._isInline,f._fullScreenAttrs.balloon=this._isBalloon,(this._isInline||this._isBalloon)&&(this._isInline=!1,this._isBalloon=!1),o.toolbarContainer&&n.element.relative.insertBefore(s,r),i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.width="100%",i.style.maxWidth="100%",i.style.height="100%",i.style.zIndex="2147483647",n.element._stickyDummy.style.display!==""&&(f._fullScreenAttrs.sticky=!0,n.element._stickyDummy.style.display="none",t.removeClass(s,"se-toolbar-sticky")),f._bodyOverflow=L.body.style.overflow,L.body.style.overflow="hidden",f._editorAreaOriginCssText=r.style.cssText,f._wysiwygOriginCssText=c.style.cssText,f._codeOriginCssText=d.style.cssText,r.style.cssText=s.style.cssText="",c.style.cssText=(c.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0]+o._editorStyles.editor,d.style.cssText=(d.style.cssText.match(/\s?display(\s+)?:(\s+)?[a-zA-Z]+;/)||[""])[0],s.style.width=c.style.height=d.style.height="100%",s.style.position="relative",s.style.display="block",f.innerHeight_fullScreen=E.innerHeight-s.offsetHeight,r.style.height=f.innerHeight_fullScreen-o.fullScreenOffset+"px",e&&t.changeElement(e.firstElementChild,R.reduction),o.iframe&&o.height==="auto"&&(r.style.overflow="auto",this._iframeAutoHeight()),n.element.topArea.style.marginTop=o.fullScreenOffset+"px",t.addClass(this._styleCommandMap.fullScreen,"active")),u&&F.toolbar.hide(),typeof F.toggleFullScreen=="function"&&F.toggleFullScreen(this._variable.isFullScreen,this)},print:function(){const e=t.createElement("IFRAME");e.style.display="none",L.body.appendChild(e);const i=o.printTemplate?o.printTemplate.replace(/\{\{\s*contents\s*\}\}/i,this.getContents(!0)):this.getContents(!0),s=t.getIframeDocument(e),r=this._wd;if(o.iframe){const c=o._printClass!==null?'class="'+o._printClass+'"':o.fullPage?t.getAttributesToString(r.body,["contenteditable"]):'class="'+o._editableClass+'"';s.write("<!DOCTYPE html><html><head>"+r.head.innerHTML+"</head><body "+c+">"+i+"</body></html>")}else{const c=L.head.getElementsByTagName("link"),d=L.head.getElementsByTagName("style");let f="";for(let u=0,m=c.length;u<m;u++)f+=c[u].outerHTML;for(let u=0,m=d.length;u<m;u++)f+=d[u].outerHTML;s.write("<!DOCTYPE html><html><head>"+f+'</head><body class="'+(o._printClass!==null?o._printClass:o._editableClass)+'">'+i+"</body></html>")}this.showLoading(),E.setTimeout(function(){try{if(e.focus(),t.isIE_Edge||t.isChromium||L.documentMode||E.StyleMedia)try{e.contentWindow.document.execCommand("print",!1,null)}catch{e.contentWindow.print()}else e.contentWindow.print()}catch(c){throw Error("[SUNEDITOR.core.print.fail] error: "+c)}finally{a.closeLoading(),t.removeItem(e)}},1e3)},preview:function(){a.submenuOff(),a.containerOff(),a.cont
`;let m=i?0:this._variable.codeIndent*1;return m=m>0?new E.Array(m+1).join(" "):"",function h(y,B){const b=y.childNodes,S=c.test(y.nodeName),x=S?B:"";for(let D=0,z=b.length,O,H,M,T,k,_;D<z;D++){if(O=b[D],T=c.test(O.nodeName),H=T?u:"",M=f(O)&&!S&&!/^(TH|TD)$/i.test(y.nodeName)?u:"",O.nodeType===8){s+=`
<!-- `+O.textContent.trim()+" -->"+H;continue}if(O.nodeType===3){t.isList(O.parentElement)||(s+=t._HTMLConvertor(/^\n+$/.test(O.data)?"":O.data));continue}if(O.childNodes.length===0){s+=(/^HR$/i.test(O.nodeName)?u:"")+(/^PRE$/i.test(O.parentElement.nodeName)&&/^BR$/i.test(O.nodeName)?"":x)+O.outerHTML+H;continue}O.outerHTML?(k=O.nodeName.toLowerCase(),_=x||T?B:"",s+=(M||(S?"":H))+_+O.outerHTML.match(r("<"+k+"[^>]*>","i"))[0]+H,h(O,B+m),s+=(/\n$/.test(s)?_:"")+"</"+k+">"+(M||H||S||/^(TH|TD)$/i.test(O.nodeName)?u:"")):s+=new E.XMLSerializer().serializeToString(O)}}(d,""),s.trim()+u},addDocEvent:function(e,i,s){L.addEventListener(e,i,s),o.iframe&&this._wd.addEventListener(e,i)},removeDocEvent:function(e,i){L.removeEventListener(e,i),o.iframe&&this._wd.removeEventListener(e,i)},_charCount:function(e){const i=o.maxCharCount,s=o.charCounterType;let r=0;if(e&&(r=this.getCharLength(e,s)),this._setCharCount(),i>0){let c=!1;const d=F.getCharCount(s);if(d>i){if(c=!0,r>0){this._editorRange();const f=this.getRange(),u=f.endOffset-1,m=this.getSelectionNode().textContent,h=f.endOffset-(d-i);this.getSelectionNode().textContent=m.slice(0,h<0?0:h)+m.slice(f.endOffset,m.length),this.setRange(f.endContainer,u,f.endContainer,u)}}else d+r>i&&(c=!0);if(c&&(this._callCounterBlink(),r>0))return!1}return!0},checkCharCount:function(e,i){if(o.maxCharCount){const s=i||o.charCounterType,r=this.getCharLength(typeof e=="string"?e:this._charTypeHTML&&e.nodeType===1?e.outerHTML:e.textContent,s);if(r>0&&r+F.getCharCount(s)>o.maxCharCount)return this._callCounterBlink(),!1}return!0},getCharLength:function(e,i){return/byte/.test(i)?t.getByteLength(e):e.length},resetResponsiveToolbar:function(){a.controllersOff();const e=p._responsiveButtonSize;if(e){let i=0;(a._isBalloon||a._isInline)&&o.toolbarWidth==="auto"?i=n.element.topArea.offsetWidth:i=n.element.toolbar.offsetWidth;let s="default";for(let r=1,c=e.length;r<c;r++)if(i<e[r]){s=e[r]+"";break}p._responsiveCurrentSize!==s&&(p._responsiveCurrentSize=s,F.setToolbarButtons(p._responsiveButtons[s]))}},_setCharCount:function(){n.element.charCounter&&E.setTimeout((function(e,i){this.textContent&&e&&(this.textContent=e.getCharCount(i.charCounterType))}).bind(n.element.charCounter,F,o),0)},_callCounterBlink:function(){const e=n.element.charWrapper;e&&!t.hasClass(e,"se-blink")&&(t.addClass(e,"se-blink"),E.setTimeout(function(){t.removeClass(e,"se-blink")},600))},_checkComponents:function(){for(let e=0,i=this._fileInfoPluginsCheck.length;e<i;e++)this._fileInfoPluginsCheck[e]()},_resetComponents:function(){for(let e=0,i=this._fileInfoPluginsReset.length;e<i;e++)this._fileInfoPluginsReset[e]()},_setCodeView:function(e){o.codeMirrorEditor?o.codeMirrorEditor.getDoc().setValue(e):n.element.code.value=e},_getCodeView:function(){return o.codeMirrorEditor?o.codeMirrorEditor.getDoc().getValue():n.element.code.value},_setKeyEffect:function(e){const i=this.commandMap,s=this.activePlugins;for(let r in i)e.indexOf(r)>-1||!t.hasOwn(i,r)||(s.indexOf(r)>-1?g[r].active.call(this,null):i.OUTDENT&&/^OUTDENT$/i.test(r)?t.isImportantDisabled(i.OUTDENT)||i.OUTDENT.setAttribute("disabled",!0):i.INDENT&&/^INDENT$/i.test(r)?t.isImportantDisabled(i.INDENT)||i.INDENT.removeAttribute("disabled"):t.removeClass(i[r],"active"))},_init:function(e,i){const s=E.RegExp;this._ww=o.iframe?n.element.wysiwygFrame.contentWindow:E,this._wd=L,this._charTypeHTML=o.charCounterType==="byte-html",this.wwComputedStyle=E.getComputedStyle(n.element.wysiwyg),this._editorHeight=n.element.wysiwygFrame.offsetHeight,this._editorHeightPadding=t.getNumber(this.wwComputedStyle.getPropertyValue("padding-top"))+t.getNumber(this.wwComputedStyle.getPropertyValue("padding-bottom")),this._classNameFilter=(function(T){return this.test(T)?T:""}).bind(o.allowedClassNames);const r=o.__allowedScriptTag?"":"script|";if(this.__scriptTagRegExp=new s("<(script)[^>]*>([\\s\\S]*?)<\\/\\1>|<script[^>]*\\/?>","gi"),this.__disallowedTagsRegExp=new s("<("+r+"style)[^>]*>([\\s\\S]*?)<\\/\\1>|<("+r+"style)[^>]*\\/?>","gi"),this.__disallowedTagNameRegExp=new s("^("+r+"meta|link|style|[a-z]+:[a-
`+a.convertHTMLForCodeView(i,!1));else{const s=t.createElement("DIV");s.innerHTML=i;const r=n.element.wysiwyg,c=s.children;for(let d=0,f=c.length;d<f;d++)c[d]&&r.appendChild(c[d])}a.history.push(!1)},readOnly:function(e){a.isReadOnly=e,t.setDisabledButtons(!!e,a.resizingDisabledButtons),e?(a.controllersOff(),a.submenuActiveButton&&a.submenuActiveButton.disabled&&a.submenuOff(),a._moreLayerActiveButton&&a._moreLayerActiveButton.disabled&&a.moreLayerOff(),a.containerActiveButton&&a.containerActiveButton.disabled&&a.containerOff(),a.modalForm&&a.plugins.dialog.close.call(a),n.element.code.setAttribute("readOnly","true"),t.addClass(n.element.wysiwygFrame,"se-read-only")):(n.element.code.removeAttribute("readOnly"),t.removeClass(n.element.wysiwygFrame,"se-read-only")),o.codeMirrorEditor&&o.codeMirrorEditor.setOption("readOnly",!!e)},disable:function(){this.toolbar.disable(),this.wysiwyg.disable()},disabled:function(){this.disable()},enable:function(){this.toolbar.enable(),this.wysiwyg.enable()},enabled:function(){this.enable()},show:function(){const e=n.element.topArea.style;e.display==="none"&&(e.display=o.display)},hide:function(){n.element.topArea.style.display="none"},destroy:function(){a.submenuOff(),a.containerOff(),a.controllersOff(),a.notice&&a.notice.close.call(a),a.modalForm&&a.plugins.dialog.close.call(a),a.history._destroy(),p._removeEvent(),t.removeItem(n.element.toolbar),t.removeItem(n.element.topArea);for(let e in a.functions)t.hasOwn(a,e)&&delete a.functions[e];for(let e in a)t.hasOwn(a,e)&&delete a[e];for(let e in p)t.hasOwn(p,e)&&delete p[e];for(let e in n)t.hasOwn(n,e)&&delete n[e];for(let e in l)t.hasOwn(l,e)&&delete l[e];for(let e in this)t.hasOwn(this,e)&&delete this[e]},toolbar:{disable:function(){a.submenuOff(),a.moreLayerOff(),a.containerOff(),n.tool.cover.style.display="block"},disabled:function(){this.disable()},enable:function(){n.tool.cover.style.display="none"},enabled:function(){this.enable()},show:function(){a._isInline?p._showToolbarInline():(n.element.toolbar.style.display="",n.element._stickyDummy.style.display=""),p.onResize_window()},hide:function(){a._isInline?p._hideToolbar():(n.element.toolbar.style.display="none",n.element._stickyDummy.style.display="none"),p.onResize_window()}},wysiwyg:{disable:function(){a.controllersOff(),a.modalForm&&a.plugins.dialog.close.call(a),n.element.wysiwyg.setAttribute("contenteditable",!1),a.isDisabled=!0,o.codeMirrorEditor?o.codeMirrorEditor.setOption("readOnly",!0):n.element.code.setAttribute("disabled","disabled")},enable:function(){n.element.wysiwyg.setAttribute("contenteditable",!0),a.isDisabled=!1,o.codeMirrorEditor?o.codeMirrorEditor.setOption("readOnly",!1):n.element.code.removeAttribute("disabled")}}};a.functions=F,a.options=o;let I=n.element,K=I.originElement,G=I.topArea;return K.style.display="none",G.style.display="block",o.iframe&&I.wysiwygFrame.addEventListener("load",function(){t._setIframeDocument(this,o),a._editorInit(!1,o.value),o.value=null}),typeof K.nextElementSibling=="object"?K.parentNode.insertBefore(G,K.nextElementSibling):K.parentNode.appendChild(G),I.editorArea.appendChild(I.wysiwygFrame),I=K=G=null,o.iframe||(a._editorInit(!1,o.value),o.value=null),F}const Ae={init:function(n){return{create:(function(l,g){return this.create(l,g,n)}).bind(this)}},create:function(n,l,g){j._propertiesInit(),typeof l!="object"&&(l={}),g&&(l=[g,l].reduce(function(w,L){for(let E in L)if(j.hasOwn(L,E))if(E==="plugins"&&L[E]&&w[E]){let t=w[E],R=L[E];t=t.length?t:Object.keys(t).map(function(a){return t[a]}),R=R.length?R:Object.keys(R).map(function(a){return R[a]}),w[E]=R.filter(function(a){return t.indexOf(a)===-1}).concat(t)}else w[E]=L[E];return w},{}));const C=typeof n=="string"?document.getElementById(n):n;if(!C)throw Error(typeof n=="string"?'[SUNEDITOR.create.fail] The element for that id was not found (ID:"'+n+'")':"[SUNEDITOR.create.fail] suneditor requires textarea's element or id value");const o=be.init(C,l);if(o.constructed._top.id&&document.getElementById(o.constructed._top.id))throw Error('[SUNEDITOR.create.fail] The ID of the suneditor yo