const NEXT={variables:{version:"1.5",objectPrefix:"NEXT-",titleBarSuffix:"-TITLE",containerSuffix:"-CONTAINER",logPrefix:"[NEXT Framework]",errorPrefix:"(ERROR)",isInit:!1},frameworks:{dragElement(e,i){function n(e){e=e||window.event,e.preventDefault(),l=e.clientX,a=e.clientY,document.onmouseup=o,document.onmousemove=t}function t(i){i=i||window.event,i.preventDefault(),r=l-i.clientX,s=a-i.clientY,l=i.clientX,a=i.clientY,e.style.top=e.offsetTop-s+"px",e.style.left=e.offsetLeft-r+"px"}function o(){document.onmouseup=null,document.onmousemove=null}var r=0,s=0,l=0,a=0;i.onmousedown=n}},log(e,i){!0===i?console.error(this.variables.logPrefix,this.variables.errorPrefix,e):console.info(this.variables.logPrefix,e)},create(e,i){this.init();const n=document.createElement("div");n.id=this.variables.objectPrefix+e+this.variables.containerSuffix,n.className+="NEXT-Container";const t=document.createElement("div");0!=i.draggable&&this.frameworks.dragElement(n,t),t.className+="NEXT-Title NEXT-Border",t.innerHTML=i.title||e,t.id=this.variables.objectPrefix+e+this.variables.titleBarSuffix,t.style.width=i.width?i.width+"px":"250px",t.style.background=i.titleBackground||"#333";const o=document.createElement("div");o.innerHTML="x",o.className+="NEXT-Close",t.append(o),o.onclick=(()=>{t.remove()}),0==i.canExit&&(o.style.display="none");const r=document.createElement("div");r.style.width=i.width?i.width+"px":"248px",r.style.height=i.height?i.height+"px":"150px",r.style.background=i.background||"#555",r.className+="NEXT-BodyMain NEXT-Border";const s=document.createElement("div");return s.id=this.variables.objectPrefix+e,n.append(t),n.append(r),r.append(s),document.body.append(n),this.log("Created Window: "+e),s},new(e,i){const n=document.createElement(i);return this.get(e).append(n),n},get(e){const i=document.getElementById(this.variables.objectPrefix+e);return i||this.log("Error finding window '"+e+"'.",!0)},getRaw(e){const i=document.getElementById(this.variables.objectPrefix+e+this.variables.containerSuffix);return i||this.log("Error finding window '"+e+"'.",!0)},toggle(e){const i=document.getElementById(this.variables.objectPrefix+e+this.variables.containerSuffix);if(!i)return this.log("Error showing window '"+e+"'. Window not found.",!0);"visible"==i.style.visibility?(i.style.visibility="hidden",this.log("Toggle- Window Hidden: "+e)):(i.style.visibility="visible",this.log("Toggle- Window Shown: "+e))},show(e){const i=document.getElementById(this.variables.objectPrefix+e+this.variables.containerSuffix);if(!i)return this.log("Error showing window '"+e+"'. Window not found.",!0);i.style.visibility="visible",this.log("Window Shown: "+e)},hide(e){const i=document.getElementById(this.variables.objectPrefix+e+this.variables.containerSuffix);if(!i)return this.log("Error hiding window '"+e+"'. Window not found.",!0);i.style.visibility="hidden",this.log("Window Hidden: "+e)},close(e){const i=document.getElementById(this.variables.objectPrefix+e+this.variables.containerSuffix);if(!i)return this.log("Error closing window '"+e+"'. Window not found.",!0);i.remove(),this.log("Closed Window: "+e)},css(e){var i=document.createElement("style");return i.type="text/css",i.innerText=e,document.head.appendChild(i),i},init(){1!=this.variables.isInit&&(this.css("\n .NEXT-Container {\n position: absolute;\n z-index: 9998;\n }\n\n .NEXT-Title {\n z-index: 10000;\n font-family: Arial, Helvetica, sans-serif;\n color: white;\n height: 30px;\n border-radius: 5px 5px 0 0;\n padding: 5px 0 0 10px;\n box-sizing: border-box;\n border-bottom: none !important;\n cursor: move;\n }\n\n .NEXT-BodyMain {\n z-index: 9999;\n border-radius: 0 0 5px 5px;\n overflow: hidden;\n border-top: none !important;\n }\n\n .NEXT-Close {\n font-family: Arial, Helvetica, sans-serif;\n position: absolute;\n top: 3px;\n right: 7px;\n cursor: pointer;\n color: #ff5566;\n }\n\n .NEXT-Border {\n border: 1px solid rgba(255, 255, 255, 0.3);\n }\n "),this.variables.isInit=!0)}};